Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/eshop.codeskitter.site/assets/front_end/modern/js/
Upload File :
Current File : /home/users/unlimited/www/eshop.codeskitter.site/assets/front_end/modern/js/eshop-bundle-js.js

$(function(){$("#modal-custom").iziModal({overlayClose:!1,overlayColor:"rgba(0, 0, 0, 0.6)"}),$("#modal-custom").on("click","header a",function(e){e.preventDefault();e=$(this).index();$(this).addClass("active").siblings("a").removeClass("active"),$(this).parents("div").find("section").eq(e).removeClass("hide").siblings("section").addClass("hide"),0===$(this).index()?$("#modal-custom .iziModal-content .icon-close").css("background","#ddd"):$("#modal-custom .iziModal-content .icon-close").attr("style","")}),$("#modal-custom").on("click",".submit",function(e){e.preventDefault();var t="wobble",i=$(this).closest(".iziModal");i.hasClass(t)||(i.addClass(t),setTimeout(function(){i.removeClass(t)},1500))})}),function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),i(t),t}:i(jQuery)}(function(c){function d(e){return-1<(e=e||navigator.userAgent).indexOf("MSIE ")||-1<e.indexOf("Trident/")}function u(e){return parseInt(String(e).split(/%|px|em|cm|vh|vw/)[0])}function l(e,t){this.init(e,t)}var p=c(window),a=c(document),h="iziModal",n="closing",o="closed",f="opening",m="opened",t="destroyed",r=function(){var e,t=document.createElement("fakeelement"),i={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(e in i)if(void 0!==t.style[e])return i[e]}(),g=!!/Mobi/.test(navigator.userAgent),v=0;return l.prototype={constructor:l,init:function(e,s){var n=this;this.$element=c(e),void 0!==this.$element[0].id&&""!==this.$element[0].id?this.id=this.$element[0].id:(this.id=h+Math.floor(1e7*Math.random()+1),this.$element.attr("id",this.id)),this.classes=void 0!==this.$element.attr("class")?this.$element.attr("class"):"",this.content=this.$element.html(),this.state=o,this.options=s,this.width=0,this.timer=null,this.timerTimeout=null,this.progressBar=null,this.isPaused=!1,this.isFullscreen=!1,this.headerHeight=0,this.modalHeight=0,this.$overlay=c('<div class="'+h+'-overlay" style="background-color:'+s.overlayColor+'"></div>'),this.$navigate=c('<div class="'+h+'-navigate"><div class="'+h+'-navigate-caption">Use</div><button class="'+h+'-navigate-prev"></button><button class="'+h+'-navigate-next"></button></div>'),this.group={name:this.$element.attr("data-"+h+"-group"),index:null,ids:[]},this.$element.attr("aria-hidden","true"),this.$element.attr("aria-labelledby",this.id),this.$element.attr("role","dialog"),this.$element.hasClass("iziModal")||this.$element.addClass("iziModal"),void 0===this.group.name&&""!==s.group&&(this.group.name=s.group,this.$element.attr("data-"+h+"-group",s.group)),!0===this.options.loop&&this.$element.attr("data-"+h+"-loop",!0),c.each(this.options,function(e,t){var i=n.$element.attr("data-"+h+"-"+e);try{void 0!==i&&(s[e]=""===i||"true"==i||"false"!=i&&("function"==typeof t?new Function(i):i))}catch(e){}}),!1!==s.appendTo&&this.$element.appendTo(s.appendTo),!0===s.iframe?(this.$element.html('<div class="'+h+'-wrap"><div class="'+h+'-content"><iframe class="'+h+'-iframe"></iframe>'+this.content+"</div></div>"),null!==s.iframeHeight&&this.$element.find("."+h+"-iframe").css("height",s.iframeHeight)):this.$element.html('<div class="'+h+'-wrap"><div class="'+h+'-content">'+this.content+"</div></div>"),this.$wrap=this.$element.find("."+h+"-wrap"),null===s.zindex||isNaN(parseInt(s.zindex))||(this.$element.css("z-index",s.zindex),this.$navigate.css("z-index",s.zindex-1),this.$overlay.css("z-index",s.zindex-2)),""!==s.radius&&this.$element.css("border-radius",s.radius),""!==s.padding&&this.$element.find("."+h+"-content").css("padding",s.padding),""!==s.theme&&("light"===s.theme?this.$element.addClass(h+"-light"):this.$element.addClass(s.theme)),!0===s.rtl&&this.$element.addClass(h+"-rtl"),!0===s.openFullscreen&&(this.isFullscreen=!0,this.$element.addClass("isFullscreen")),this.createHeader(),this.recalcWidth(),this.recalcVerticalPos()},createHeader:function(){this.$header=c('<div class="'+h+'-header"><h2 class="'+h+'-header-title">'+this.options.title+'</h2><p class="'+h+'-header-subtitle">'+this.options.subtitle+'</p><div class="'+h+'-header-buttons"></div></div>'),!0===this.options.closeButton&&this.$header.find("."+h+"-header-buttons").append('<a href="javascript:void(0)" class="'+h+"-button "+h+'-button-close" data-'+h+"-close></a>"),!0===this.options.fullscreen&&this.$header.find("."+h+"-header-buttons").append('<a href="javascript:void(0)" class="'+h+"-button "+h+'-button-fullscreen" data-'+h+"-fullscreen></a>"),!0!==this.options.timeoutProgressbar||isNaN(parseInt(this.options.timeout))||!1===this.options.timeout||0===this.options.timeout||this.$header.prepend('<div class="'+h+'-progressbar"><div style="background-color:'+this.options.timeoutProgressbarColor+'"></div></div>'),""===this.options.subtitle&&this.$header.addClass(h+"-noSubtitle"),""!==this.options.title&&(null!==this.options.headerColor&&(!0===this.options.borderBottom&&this.$element.css("border-bottom","3px solid "+this.options.headerColor),this.$header.css("background",this.options.headerColor)),null===this.options.icon&&null===this.options.iconText||(this.$header.prepend('<i class="'+h+'-header-icon"></i>'),null!==this.options.icon&&this.$header.find("."+h+"-header-icon").addClass(this.options.icon).css("color",this.options.iconColor),null!==this.options.iconText&&this.$header.find("."+h+"-header-icon").html(this.options.iconText)),this.$element.css("overflow","hidden").prepend(this.$header))},setGroup:function(e){var i,s=this,t=this.group.name||e;this.group.ids=[],void 0!==e&&e!==this.group.name&&(this.group.name=t=e,this.$element.attr("data-"+h+"-group",t)),void 0!==t&&""!==t&&(i=0,c.each(c("."+h+"[data-"+h+"-group="+t+"]"),function(e,t){s.group.ids.push(c(this)[0].id),s.id==c(this)[0].id&&(s.group.index=i),i++}))},toggle:function(){this.state==m&&this.close(),this.state==o&&this.open()},open:function(i){function s(){n.state=m,n.$element.trigger(m),n.options.onOpened&&"function"==typeof n.options.onOpened&&n.options.onOpened(n)}var n=this;if(this.state==o){if(n.$element.off("click","[data-"+h+"-close]").on("click","[data-"+h+"-close]",function(e){e.preventDefault();e=c(e.currentTarget).attr("data-"+h+"-transitionOut");void 0!==e?n.close({transition:e}):n.close()}),n.$element.off("click","[data-"+h+"-fullscreen]").on("click","[data-"+h+"-fullscreen]",function(e){e.preventDefault(),!0===n.isFullscreen?(n.isFullscreen=!1,n.$element.removeClass("isFullscreen")):(n.isFullscreen=!0,n.$element.addClass("isFullscreen")),n.options.onFullscreen&&"function"==typeof n.options.onFullscreen&&n.options.onFullscreen(n),n.$element.trigger("fullscreen",n)}),n.$navigate.off("click","."+h+"-navigate-next").on("click","."+h+"-navigate-next",function(e){n.next(e)}),n.$element.off("click","[data-"+h+"-next]").on("click","[data-"+h+"-next]",function(e){n.next(e)}),n.$navigate.off("click","."+h+"-navigate-prev").on("click","."+h+"-navigate-prev",function(e){n.prev(e)}),n.$element.off("click","[data-"+h+"-prev]").on("click","[data-"+h+"-prev]",function(e){n.prev(e)}),this.setGroup(),this.state=f,this.$element.trigger(f),this.$element.attr("aria-hidden","false"),!0===this.options.iframe){this.$element.find("."+h+"-content").addClass(h+"-content-loader"),this.$element.find("."+h+"-iframe").on("load",function(){c(this).parent().removeClass(h+"-content-loader")});var e=null;try{e=""!==c(i.currentTarget).attr("href")?c(i.currentTarget).attr("href"):null}catch(e){}if(null==(e=null!==this.options.iframeURL&&null==e?this.options.iframeURL:e))throw new Error("Failed to find iframe URL");this.$element.find("."+h+"-iframe").attr("src",e)}(this.options.bodyOverflow||g)&&(c("html").addClass(h+"-isOverflow"),g&&c("body").css("overflow","hidden")),this.options.onOpening&&"function"==typeof this.options.onOpening&&this.options.onOpening(this),function(){var e;1<n.group.ids.length&&(n.$navigate.appendTo("body"),n.$navigate.addClass(n.options.transitionInOverlay),!0===n.options.navigateCaption&&n.$navigate.find("."+h+"-navigate-caption").show(),e=n.$element.outerWidth(),!1!==n.options.navigateArrows?"closeScreenEdge"===n.options.navigateArrows?(n.$navigate.find("."+h+"-navigate-prev").css("left",0).show(),n.$navigate.find("."+h+"-navigate-next").css("right",0).show()):(n.$navigate.find("."+h+"-navigate-prev").css("margin-left",-(e/2+84)).show(),n.$navigate.find("."+h+"-navigate-next").css("margin-right",-(e/2+84)).show()):(n.$navigate.find("."+h+"-navigate-prev").hide(),n.$navigate.find("."+h+"-navigate-next").hide()),0!==n.group.index||0===c("."+h+"[data-"+h+'-group="'+n.group.name+'"][data-'+h+"-loop]").length&&!1===n.options.loop&&n.$navigate.find("."+h+"-navigate-prev").hide(),n.group.index+1!==n.group.ids.length||0===c("."+h+"[data-"+h+'-group="'+n.group.name+'"][data-'+h+"-loop]").length&&!1===n.options.loop&&n.$navigate.find("."+h+"-navigate-next").hide()),!0===n.options.overlay?n.$overlay.appendTo("body"):0<c(n.options.overlay).length&&n.$overlay.appendTo(c(n.options.overlay)),n.options.transitionInOverlay&&n.$overlay.addClass(n.options.transitionInOverlay);var t=n.options.transitionIn;"object"==typeof i&&(void 0===i.transition&&void 0===i.transitionIn||(t=i.transition||i.transitionIn)),""!==t?(n.$element.addClass("transitionIn "+t).show(),n.$wrap.one(r,function(){n.$element.removeClass(t+" transitionIn"),n.$overlay.removeClass(n.options.transitionInOverlay),n.$navigate.removeClass(n.options.transitionInOverlay),s()})):(n.$element.show(),s()),!0!==n.options.pauseOnHover||!0!==n.options.pauseOnHover||!1===n.options.timeout||isNaN(parseInt(n.options.timeout))||!1===n.options.timeout||0===n.options.timeout||(n.$element.off("mouseenter").on("mouseenter",function(e){e.preventDefault(),n.isPaused=!0}),n.$element.off("mouseleave").on("mouseleave",function(e){e.preventDefault(),n.isPaused=!1}))}(),!1===this.options.timeout||isNaN(parseInt(this.options.timeout))||!1===this.options.timeout||0===this.options.timeout||(!0===this.options.timeoutProgressbar?(this.progressBar={hideEta:null,maxHideTime:null,currentTime:(new Date).getTime(),el:this.$element.find("."+h+"-progressbar > div"),updateProgress:function(){var e;n.isPaused||(n.progressBar.currentTime=n.progressBar.currentTime+10,e=(n.progressBar.hideEta-n.progressBar.currentTime)/n.progressBar.maxHideTime*100,n.progressBar.el.width(e+"%"),e<0&&n.close())}},0<this.options.timeout&&(this.progressBar.maxHideTime=parseFloat(this.options.timeout),this.progressBar.hideEta=(new Date).getTime()+this.progressBar.maxHideTime,this.timerTimeout=setInterval(this.progressBar.updateProgress,10))):this.timerTimeout=setTimeout(function(){n.close()},n.options.timeout)),this.options.overlayClose&&!this.$element.hasClass(this.options.transitionOut)&&this.$overlay.click(function(){n.close()}),this.options.focusInput&&this.$element.find(":input:not(button):enabled:visible:first").focus(),function e(){n.recalcLayout(),n.timer=setTimeout(e,100)}(),n.options.history&&(e=document.title,document.title=e+" - "+n.options.title,document.location.hash=n.id,document.title=e),a.on("keydown."+h,function(e){n.options.closeOnEscape&&27===e.keyCode&&n.close()})}},close:function(e){function t(){s.state=o,s.$element.trigger(o),!0===s.options.iframe&&s.$element.find("."+h+"-iframe").attr("src",""),(s.options.bodyOverflow||g)&&(c("html").removeClass(h+"-isOverflow"),g&&c("body").css("overflow","auto")),s.options.onClosed&&"function"==typeof s.options.onClosed&&s.options.onClosed(s),!0===s.options.restoreDefaultContent&&s.$element.find("."+h+"-content").html(s.content),0===c("."+h+":visible").length&&c("html").removeClass(h+"-isAttached")}var i,s=this;this.state!=m&&this.state!=f||(a.off("keydown."+h),this.state=n,this.$element.trigger(n),this.$element.attr("aria-hidden","true"),clearTimeout(this.timer),clearTimeout(this.timerTimeout),s.options.onClosing&&"function"==typeof s.options.onClosing&&s.options.onClosing(this),i=this.options.transitionOut,"object"==typeof e&&(void 0===e.transition&&void 0===e.transitionOut||(i=e.transition||e.transitionOut)),""!==i?(this.$element.attr("class",[this.classes,h,i,"light"==this.options.theme?h+"-light":this.options.theme,!0===this.isFullscreen?"isFullscreen":"",this.options.rtl?h+"-rtl":""].join(" ")),this.$overlay.attr("class",h+"-overlay "+this.options.transitionOutOverlay),!1!==s.options.navigateArrows&&this.$navigate.attr("class",h+"-navigate "+this.options.transitionOutOverlay),this.$element.one(r,function(){s.$element.hasClass(i)&&s.$element.removeClass(i+" transitionOut").hide(),s.$overlay.removeClass(s.options.transitionOutOverlay).remove(),s.$navigate.removeClass(s.options.transitionOutOverlay).remove(),t()})):(this.$element.hide(),this.$overlay.remove(),this.$navigate.remove(),t()))},next:function(e){var s=this,n="fadeInRight",t="fadeOutLeft",i=c("."+h+":visible"),a={};a.out=this,void 0!==e&&"object"!=typeof e?(e.preventDefault(),i=c(e.currentTarget),n=i.attr("data-"+h+"-transitionIn"),t=i.attr("data-"+h+"-transitionOut")):void 0!==e&&(void 0!==e.transitionIn&&(n=e.transitionIn),void 0!==e.transitionOut&&(t=e.transitionOut)),this.close({transition:t}),setTimeout(function(){for(var e=c("."+h+"[data-"+h+'-group="'+s.group.name+'"][data-'+h+"-loop]").length,t=s.group.index+1;t<=s.group.ids.length;t++){try{a.in=c("#"+s.group.ids[t]).data().iziModal}catch(e){}if(void 0!==a.in){c("#"+s.group.ids[t]).iziModal("open",{transition:n});break}if(t==s.group.ids.length&&0<e||!0===s.options.loop)for(var i=0;i<=s.group.ids.length;i++)if(a.in=c("#"+s.group.ids[i]).data().iziModal,void 0!==a.in){c("#"+s.group.ids[i]).iziModal("open",{transition:n});break}}},200),c(document).trigger(h+"-group-change",a)},prev:function(e){var s=this,n="fadeInLeft",t="fadeOutRight",i=c("."+h+":visible"),a={};a.out=this,void 0!==e&&"object"!=typeof e?(e.preventDefault(),i=c(e.currentTarget),n=i.attr("data-"+h+"-transitionIn"),t=i.attr("data-"+h+"-transitionOut")):void 0!==e&&(void 0!==e.transitionIn&&(n=e.transitionIn),void 0!==e.transitionOut&&(t=e.transitionOut)),this.close({transition:t}),setTimeout(function(){for(var e=c("."+h+"[data-"+h+'-group="'+s.group.name+'"][data-'+h+"-loop]").length,t=s.group.index;0<=t;t--){try{a.in=c("#"+s.group.ids[t-1]).data().iziModal}catch(e){}if(void 0!==a.in){c("#"+s.group.ids[t-1]).iziModal("open",{transition:n});break}if(0===t&&0<e||!0===s.options.loop)for(var i=s.group.ids.length-1;0<=i;i--)if(a.in=c("#"+s.group.ids[i]).data().iziModal,void 0!==a.in){c("#"+s.group.ids[i]).iziModal("open",{transition:n});break}}},200),c(document).trigger(h+"-group-change",a)},destroy:function(){var e=c.Event("destroy");this.$element.trigger(e),a.off("keydown."+h),clearTimeout(this.timer),clearTimeout(this.timerTimeout),!0===this.options.iframe&&this.$element.find("."+h+"-iframe").remove(),this.$element.html(this.$element.find("."+h+"-content").html()),this.$element.off("click","[data-"+h+"-close]"),this.$element.off("click","[data-"+h+"-fullscreen]"),this.$element.off("."+h).removeData(h).attr("style",""),this.$overlay.remove(),this.$navigate.remove(),this.$element.trigger(t),this.$element=null},getState:function(){return this.state},getGroup:function(){return this.group},setWidth:function(e){this.options.width=e,this.recalcWidth();e=this.$element.outerWidth();!0!==this.options.navigateArrows&&"closeToModal"!=this.options.navigateArrows||(this.$navigate.find("."+h+"-navigate-prev").css("margin-left",-(e/2+84)).show(),this.$navigate.find("."+h+"-navigate-next").css("margin-right",-(e/2+84)).show())},setTop:function(e){this.options.top=e,this.recalcVerticalPos(!1)},setBottom:function(e){this.options.bottom=e,this.recalcVerticalPos(!1)},setHeader:function(e){e?this.$element.find("."+h+"-header").show():(this.headerHeight=0,this.$element.find("."+h+"-header").hide())},setTitle:function(e){this.options.title=e,0===this.headerHeight&&this.createHeader(),0===this.$header.find("."+h+"-header-title").length&&this.$header.append('<h2 class="'+h+'-header-title"></h2>'),this.$header.find("."+h+"-header-title").html(e)},setSubtitle:function(e){""===e?(this.$header.find("."+h+"-header-subtitle").remove(),this.$header.addClass(h+"-noSubtitle")):(0===this.$header.find("."+h+"-header-subtitle").length&&this.$header.append('<p class="'+h+'-header-subtitle"></p>'),this.$header.removeClass(h+"-noSubtitle")),this.$header.find("."+h+"-header-subtitle").html(e),this.options.subtitle=e},setIcon:function(e){0===this.$header.find("."+h+"-header-icon").length&&this.$header.prepend('<i class="'+h+'-header-icon"></i>'),this.$header.find("."+h+"-header-icon").attr("class",h+"-header-icon "+e),this.options.icon=e},setIconText:function(e){this.$header.find("."+h+"-header-icon").html(e),this.options.iconText=e},setHeaderColor:function(e){!0===this.options.borderBottom&&this.$element.css("border-bottom","3px solid "+e),this.$header.css("background",e),this.options.headerColor=e},setZindex:function(e){isNaN(parseInt(this.options.zindex))||(this.options.zindex=e,this.$element.css("z-index",e),this.$navigate.css("z-index",e-1),this.$overlay.css("z-index",e-2))},setFullscreen:function(e){e?(this.isFullscreen=!0,this.$element.addClass("isFullscreen")):(this.isFullscreen=!1,this.$element.removeClass("isFullscreen"))},setTransitionIn:function(e){this.options.transitionIn=e},setTransitionOut:function(e){this.options.transitionOut=e},startLoading:function(){this.$element.find("."+h+"-loader").length||this.$element.append('<div class="'+h+'-loader fadeIn"></div>'),this.$element.find("."+h+"-loader").css({top:this.headerHeight,borderRadius:this.options.radius})},stopLoading:function(){var e=this.$element.find("."+h+"-loader");e.length||(this.$element.prepend('<div class="'+h+'-loader fadeIn"></div>'),e=this.$element.find("."+h+"-loader").css("border-radius",this.options.radius)),e.removeClass("fadeIn").addClass("fadeOut"),setTimeout(function(){e.remove()},600)},recalcWidth:function(){var e;this.$element.css("max-width",this.options.width),d()&&(1<(e=this.options.width).toString().split("%").length&&(e=this.$element.outerWidth()),this.$element.css({left:"50%",marginLeft:-e/2}))},recalcVerticalPos:function(e){null!==this.options.top&&!1!==this.options.top?(this.$element.css("margin-top",this.options.top),0===this.options.top&&this.$element.css({borderTopRightRadius:0,borderTopLeftRadius:0})):!1===e&&this.$element.css({marginTop:"",borderRadius:this.options.radius}),null!==this.options.bottom&&!1!==this.options.bottom?(this.$element.css("margin-bottom",this.options.bottom),0===this.options.bottom&&this.$element.css({borderBottomRightRadius:0,borderBottomLeftRadius:0})):!1===e&&this.$element.css({marginBottom:"",borderRadius:this.options.radius})},recalcLayout:function(){var e=this,t=p.height(),i=this.$element.outerHeight(),s=this.$element.outerWidth(),n=this.$element.find("."+h+"-content")[0].scrollHeight,a=n+this.headerHeight,o=this.$element.innerHeight()-this.headerHeight,r=(parseInt(-(this.$element.innerHeight()+1)/2),this.$wrap.scrollTop()),l=0;d()&&(s>=p.width()||!0===this.isFullscreen?this.$element.css({left:"",marginLeft:""}):this.$element.css({left:"50%",marginLeft:-s/2})),!0===this.options.borderBottom&&(l=3),this.$element.find("."+h+"-header").length&&this.$element.find("."+h+"-header").is(":visible")?(this.headerHeight=parseInt(this.$element.find("."+h+"-header").innerHeight()),this.$element.css("overflow","hidden")):(this.headerHeight=0,this.$element.css("overflow","")),this.$element.find("."+h+"-loader").length&&this.$element.find("."+h+"-loader").css("top",this.headerHeight),i!==this.modalHeight&&(this.modalHeight=i,this.options.onResize&&"function"==typeof this.options.onResize&&this.options.onResize(this)),this.state!=m&&this.state!=f||(!0===this.options.iframe&&(t<this.options.iframeHeight+this.headerHeight+l||!0===this.isFullscreen?this.$element.find("."+h+"-iframe").css("height",t-(this.headerHeight+l)):this.$element.find("."+h+"-iframe").css("height",this.options.iframeHeight)),i==t?this.$element.addClass("isAttached"):this.$element.removeClass("isAttached"),!1===this.isFullscreen&&this.$element.width()>=p.width()?this.$element.find("."+h+"-button-fullscreen").hide():this.$element.find("."+h+"-button-fullscreen").show(),this.recalcButtons(),(t=!1===this.isFullscreen?t-(u(this.options.top)||0)-(u(this.options.bottom)||0):t)<a?(0<this.options.top&&null===this.options.bottom&&n<p.height()&&this.$element.addClass("isAttachedBottom"),0<this.options.bottom&&null===this.options.top&&n<p.height()&&this.$element.addClass("isAttachedTop"),c("html").addClass(h+"-isAttached"),this.$element.css("height",t)):(this.$element.css("height",n+(this.headerHeight+l)),this.$element.removeClass("isAttachedTop isAttachedBottom"),c("html").removeClass(h+"-isAttached")),o<n&&t<a?(e.$element.addClass("hasScroll"),e.$wrap.css("height",i-(e.headerHeight+l))):(e.$element.removeClass("hasScroll"),e.$wrap.css("height","auto")),o+r<n-30?e.$element.addClass("hasShadow"):e.$element.removeClass("hasShadow"))},recalcButtons:function(){var e=this.$header.find("."+h+"-header-buttons").innerWidth()+10;!0===this.options.rtl?this.$header.css("padding-left",e):this.$header.css("padding-right",e)}},p.off("hashchange."+h+" load."+h).on("hashchange."+h+" load."+h,function(e){var s=document.location.hash;if(0===v)if(""!==s){c.each(c("."+h),function(e,t){var i=c(t).iziModal("getState");"opened"!=i&&"opening"!=i||"#"+c(t)[0].id!==s&&c(t).iziModal("close")});try{var t=c(s).data();void 0!==t&&("load"===e.type?!1!==t.iziModal.options.autoOpen&&c(s).iziModal("open"):setTimeout(function(){c(s).iziModal("open")},200))}catch(e){}}else c.each(c("."+h),function(e,t){var i;void 0!==c(t).data().iziModal&&("opened"!=(i=c(t).iziModal("getState"))&&"opening"!=i||c(t).iziModal("close"))});else v=0}),a.off("click","[data-"+h+"-open]").on("click","[data-"+h+"-open]",function(e){e.preventDefault();var t=c("."+h+":visible"),i=c(e.currentTarget).attr("data-"+h+"-open"),s=c(e.currentTarget).attr("data-"+h+"-transitionIn"),e=c(e.currentTarget).attr("data-"+h+"-transitionOut");void 0!==e?t.iziModal("close",{transition:e}):t.iziModal("close"),setTimeout(function(){void 0!==s?c(i).iziModal("open",{transition:s}):c(i).iziModal("open")},200)}),a.off("keyup."+h).on("keyup."+h,function(e){var t,i,s;c("."+h+":visible").length&&(t=c("."+h+":visible")[0].id,i=c("#"+t).iziModal("getGroup"),e=(s=e||window.event).target||s.srcElement,void 0===t||void 0===i.name||s.ctrlKey||s.metaKey||s.altKey||"INPUT"===e.tagName.toUpperCase()||"TEXTAREA"==e.tagName.toUpperCase()||(37===s.keyCode?c("#"+t).iziModal("prev",s):39===s.keyCode&&c("#"+t).iziModal("next",s)))}),c.fn[h]=function(e,t){if(!c(this).length&&"object"==typeof e){var i={$el:document.createElement("div"),id:this.selector.split("#"),class:this.selector.split(".")};if(1<i.id.length){try{i.$el=document.createElement(id[0])}catch(e){}i.$el.id=this.selector.split("#")[1].trim()}else if(1<i.class.length){try{i.$el=document.createElement(i.class[0])}catch(e){}for(var s=1;s<i.class.length;s++)i.$el.classList.add(i.class[s].trim())}document.body.appendChild(i.$el),this.push(c(this.selector))}for(var n=0;n<this.length;n++){var a=c(this[n]),o=a.data(h),r=c.extend({},c.fn[h].defaults,a.data(),"object"==typeof e&&e);if(o||e&&"object"!=typeof e){if("string"==typeof e&&void 0!==o)return o[e].apply(o,[].concat(t))}else a.data(h,o=new l(a,r));r.autoOpen&&(isNaN(parseInt(r.autoOpen))?!0===r.autoOpen&&o.open():setTimeout(function(){o.open()},r.autoOpen),v++)}return this},c.fn[h].defaults={title:"",subtitle:"",headerColor:"#88A0B9",theme:"",appendTo:".body",icon:null,iconText:null,iconColor:"",rtl:!1,width:600,top:null,bottom:null,borderBottom:!0,padding:0,radius:3,zindex:999,iframe:!1,iframeHeight:400,iframeURL:null,focusInput:!0,group:"",loop:!1,navigateCaption:!0,navigateArrows:!0,history:!1,restoreDefaultContent:!1,autoOpen:0,bodyOverflow:!1,fullscreen:!1,openFullscreen:!1,closeOnEscape:!0,closeButton:!0,overlay:!0,overlayClose:!0,overlayColor:"rgba(0, 0, 0, 0.4)",timeout:!1,timeoutProgressbar:!1,pauseOnHover:!1,timeoutProgressbarColor:"rgba(255,255,255,0.5)",transitionIn:"comingIn",transitionOut:"comingOut",transitionInOverlay:"fadeIn",transitionOutOverlay:"fadeOut",onFullscreen:function(){},onResize:function(){},onOpening:function(){},onOpened:function(){},onClosing:function(){},onClosed:function(){}},c.fn[h].Constructor=l,c.fn.iziModal}),function(){"use strict";function s(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function n(t,i){void 0===t&&(t={}),void 0===i&&(i={}),Object.keys(i).forEach(e=>{void 0===t[e]?t[e]=i[e]:s(i[e])&&s(t[e])&&0<Object.keys(i[e]).length&&n(t[e],i[e])})}const t={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function A(){var e="undefined"!=typeof document?document:{};return n(e,t),e}const i={document:t,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function I(){var e="undefined"!=typeof window?window:{};return n(e,i),e}function T(e){return(e=void 0===e?"":e).trim().split(" ").filter(e=>!!e.trim())}function C(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function v(){return Date.now()}function M(e,t){void 0===t&&(t="x");const i=I();let s,n,a;const o=function(e){const t=I();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i=i||e.style,i}(e);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,6<n.split(",").length&&(n=n.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix("none"===n?"":n)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),"x"===t&&(n=i.WebKitCSSMatrix?a.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?a.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function y(e){const i=Object(arguments.length<=0?void 0:e),t=["__proto__","constructor","prototype"];for(let e=1;e<arguments.length;e+=1){var s=e<0||arguments.length<=e?void 0:arguments[e];if(null!=s&&!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType))){const o=Object.keys(Object(s)).filter(e=>t.indexOf(e)<0);for(let e=0,t=o.length;e<t;e+=1){var n=o[e],a=Object.getOwnPropertyDescriptor(s,n);void 0!==a&&a.enumerable&&(c(i[n])&&c(s[n])?s[n].__swiper__?i[n]=s[n]:y(i[n],s[n]):!c(i[n])&&c(s[n])?(i[n]={},s[n].__swiper__?i[n]=s[n]:y(i[n],s[n])):i[n]=s[n])}}}var o;return i}function $(e,t,i){e.style.setProperty(t,i)}function b(e){let{swiper:i,targetPosition:s,side:n}=e;const a=I(),o=-i.translate;let r,l=null;const c=i.params.speed;i.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(i.cssModeFrameID);const d=s>o?"next":"prev",u=(e,t)=>"next"===d&&t<=e||"prev"===d&&e<=t,p=()=>{r=(new Date).getTime(),null===l&&(l=r);var e=Math.max(Math.min((r-l)/c,1),0),e=.5-Math.cos(e*Math.PI)/2;let t=o+e*(s-o);if(u(t,s)&&(t=s),i.wrapperEl.scrollTo({[n]:t}),u(t,s))return i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo({[n]:t})}),void a.cancelAnimationFrame(i.cssModeFrameID);i.cssModeFrameID=a.requestAnimationFrame(p)};p()}function r(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function O(e,t){return void 0===t&&(t=""),[...e.children].filter(e=>e.matches(t))}function P(e){try{return console.warn(e),0}catch(e){}}function L(e,t){void 0===t&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:T(t)),i}function z(e){var t=I(),i=A(),s=e.getBoundingClientRect(),n=i.body,a=e.clientTop||n.clientTop||0,i=e.clientLeft||n.clientLeft||0,n=e===t?t.scrollY:e.scrollTop,e=e===t?t.scrollX:e.scrollLeft;return{top:s.top+n-a,left:s.left+e-i}}function E(e,t){return I().getComputedStyle(e,null).getPropertyValue(t)}function k(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function D(e,t){const i=[];let s=e.parentElement;for(;s;)t&&!s.matches(t)||i.push(s),s=s.parentElement;return i}function g(i,s){s&&i.addEventListener("transitionend",function e(t){t.target===i&&(s.call(i,t),i.removeEventListener("transitionend",e))})}function N(e,t,i){const s=I();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function j(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}let a,e,d;function f(){return a=a||(e=I(),{smoothScroll:(t=A()).documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}),a;var e,t}function u(h){return void 0===h&&(h={}),e=e||function(){var e=(void 0===h?{}:h)["userAgent"];const t=f(),i=I(),s=i.navigator.platform,n=e||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,r=i.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);var d=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),e="Win32"===s;let p="MacIntel"===s;return!c&&p&&t.touch&&0<=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(o+"x"+r)&&(c=n.match(/(Version)\/([\d.]+)/),c=c||[0,1,"13_0_0"],p=!1),l&&!e&&(a.os="android",a.android=!0),(c||u||d)&&(a.os="ios",a.ios=!0),a}(),e}const p=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},o=(t,e)=>{if(t&&!t.destroyed&&t.params){const i=e.closest(t.isElement?"swiper-slide":"."+t.params.slideClass);if(i){let e=i.querySelector("."+t.params.lazyPreloaderClass);!e&&t.isElement&&(i.shadowRoot?e=i.shadowRoot.querySelector("."+t.params.lazyPreloaderClass):requestAnimationFrame(()=>{i.shadowRoot&&(e=i.shadowRoot.querySelector("."+t.params.lazyPreloaderClass),e&&e.remove())})),e&&e.remove()}}},l=(e,t)=>{if(e.slides[t]){const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")}},h=s=>{if(s&&!s.destroyed&&s.params){let i=s.params.lazyPreloadPrevNext;const n=s.slides.length;if(n&&i&&!(i<0)){i=Math.min(i,n);const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():Math.ceil(s.params.slidesPerView),o=s.activeIndex;if(s.params.grid&&1<s.params.grid.rows){const n=o,r=[n-i];return r.push(...Array.from({length:i}).map((e,t)=>n+a+t)),void s.slides.forEach((e,t)=>{r.includes(e.column)&&l(s,t)})}const r=o+a-1;if(s.params.rewind||s.params.loop)for(let t=o-i;t<=r+i;t+=1){const e=(t%n+n)%n;(e<o||e>r)&&l(s,e)}else for(let e=Math.max(o-i,0);e<=Math.min(r+i,n-1);e+=1)e!==o&&(e>r||e<o)&&l(s,e)}}};function m(e){let{swiper:t,runCallbacks:i,direction:s,step:n}=e;var{activeIndex:a,previousIndex:e}=t;let o=s;if(o=o||(e<a?"next":a<e?"prev":"reset"),t.emit("transition"+n),i&&a!==e){if("reset"===o)return t.emit("slideResetTransition"+n),0;t.emit("slideChangeTransition"+n),"next"===o?t.emit("slideNextTransition"+n):t.emit("slidePrevTransition"+n)}}function w(e,t,i){var s=I(),n=e["params"],e=n.edgeSwipeDetection,n=n.edgeSwipeThreshold;return!e||!(i<=n||i>=s.innerWidth-n)||"prevent"===e&&(t.preventDefault(),!0)}function x(){const e=this,{params:t,el:i}=e;var s,n,a,o,r;i&&0===i.offsetWidth||(t.breakpoints&&e.setBreakpoint(),{allowSlideNext:s,allowSlidePrev:n,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled,e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),r=o&&t.loop,!("auto"===t.slidesPerView||1<t.slidesPerView)||!e.isEnd||e.isBeginning||e.params.centeredSlides||r?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow())}const _=(e,t)=>{const i=A(),{params:s,el:n,wrapperEl:a,device:o}=e,r=!!s.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:r}),n[l]("touchstart",e.onTouchStart,{passive:!1}),n[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:r}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:r}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[l]("click",e.onClick,!0),s.cssMode&&a[l]("scroll",e.onScroll),s.updateOnWindowResize?e[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",x,!0):e[c]("observerUpdate",x,!0),n[l]("load",e.onLoad,{capture:!0})},S=(e,t)=>e.grid&&t.grid&&1<t.grid.rows;var H={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};const B={eventsEmitter:{on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)}),s},once(s,n,e){const a=this;return!a.eventsListeners||a.destroyed||"function"!=typeof n?a:(o.__emitterProxy=n,a.on(s,o,e));function o(){a.off(s,o),o.__emitterProxy&&delete o.__emitterProxy;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.apply(a,t)}},onAny(e,t){var i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;t=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[t](e),i},offAny(e){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;e=t.eventsAnyListeners.indexOf(e);return 0<=e&&t.eventsAnyListeners.splice(e,1),t},off(e,s){const n=this;return!n.eventsListeners||n.destroyed||n.eventsListeners&&e.split(" ").forEach(i=>{void 0===s?n.eventsListeners[i]=[]:n.eventsListeners[i]&&n.eventsListeners[i].forEach((e,t)=>{(e===s||e.__emitterProxy&&e.__emitterProxy===s)&&n.eventsListeners[i].splice(t,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return s="string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],i=a.slice(1,a.length),e):(t=a[0].events,i=a[0].data,a[0].context||e),i.unshift(s),(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(s,[t,...i])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(s,i)})}),e}},update:{updateSize:function(){var e=this;let t,i;var s=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s.clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s.clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(E(s,"padding-left")||0,10)-parseInt(E(s,"padding-right")||0,10),i=i-parseInt(E(s,"padding-top")||0,10)-parseInt(E(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const s=this;function n(e,t){return parseFloat(e.getPropertyValue(s.getDirectionLabel(t))||0)}const a=s.params,{wrapperEl:o,slidesEl:t,size:r,rtlTranslate:l,wrongRTL:c}=s,d=s.virtual&&a.virtual.enabled,e=(d?s.virtual:s).slides.length,u=O(t,`.${s.params.slideClass}, swiper-slide`),p=(d?s.virtual.slides:u).length;let h=[];const f=[],m=[];let g=a.slidesOffsetBefore;"function"==typeof g&&(g=a.slidesOffsetBefore.call(s));let v=a.slidesOffsetAfter;"function"==typeof v&&(v=a.slidesOffsetAfter.call(s));var y=s.snapGrid.length,b=s.slidesGrid.length;let w=a.spaceBetween,x=-g,_=0,S=0;if(void 0!==r){"string"==typeof w&&0<=w.indexOf("%")?w=parseFloat(w.replace("%",""))/100*r:"string"==typeof w&&(w=parseFloat(w)),s.virtualSize=-w,u.forEach(e=>{l?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),a.centeredSlides&&a.cssMode&&($(o,"--swiper-centered-offset-before",""),$(o,"--swiper-centered-offset-after",""));var T=a.grid&&1<a.grid.rows&&s.grid;let i;T?s.grid.initSlides(u):s.grid&&s.grid.unsetSlides();var C="auto"===a.slidesPerView&&a.breakpoints&&0<Object.keys(a.breakpoints).filter(e=>void 0!==a.breakpoints[e].slidesPerView).length;for(let t=0;t<p;t+=1){let e;if(i=0,u[t]&&(e=u[t]),T&&s.grid.updateSlide(t,e,u),!u[t]||"none"!==E(e,"display")){if("auto"===a.slidesPerView){C&&(u[t].style[s.getDirectionLabel("width")]="");const r=getComputedStyle(e),l=e.style.transform,c=e.style.webkitTransform;if(l&&(e.style.transform="none"),c&&(e.style.webkitTransform="none"),a.roundLengths)i=s.isHorizontal()?N(e,"width",!0):N(e,"height",!0);else{const s=n(r,"width"),a=n(r,"padding-left"),o=n(r,"padding-right"),l=n(r,"margin-left"),c=n(r,"margin-right"),d=r.getPropertyValue("box-sizing");if(d&&"border-box"===d)i=s+l+c;else{const{clientWidth:n,offsetWidth:r}=e;i=s+a+o+l+c+(r-n)}}l&&(e.style.transform=l),c&&(e.style.webkitTransform=c),a.roundLengths&&(i=Math.floor(i))}else i=(r-(a.slidesPerView-1)*w)/a.slidesPerView,a.roundLengths&&(i=Math.floor(i)),u[t]&&(u[t].style[s.getDirectionLabel("width")]=i+"px");u[t]&&(u[t].swiperSlideSize=i),m.push(i),a.centeredSlides?(x=x+i/2+_/2+w,0===_&&0!==t&&(x=x-r/2-w),0===t&&(x=x-r/2-w),Math.abs(x)<.001&&(x=0),a.roundLengths&&(x=Math.floor(x)),S%a.slidesPerGroup==0&&h.push(x),f.push(x)):(a.roundLengths&&(x=Math.floor(x)),(S-Math.min(s.params.slidesPerGroupSkip,S))%s.params.slidesPerGroup==0&&h.push(x),f.push(x),x=x+i+w),s.virtualSize+=i+w,_=i,S+=1}}if(s.virtualSize=Math.max(s.virtualSize,r)+v,l&&c&&("slide"===a.effect||"coverflow"===a.effect)&&(o.style.width=s.virtualSize+w+"px"),a.setWrapperSize&&(o.style[s.getDirectionLabel("width")]=s.virtualSize+w+"px"),T&&s.grid.updateWrapperSize(i,h),!a.centeredSlides){const n=[];for(let t=0;t<h.length;t+=1){let e=h[t];a.roundLengths&&(e=Math.floor(e)),h[t]<=s.virtualSize-r&&n.push(e)}h=n,1<Math.floor(s.virtualSize-r)-Math.floor(h[h.length-1])&&h.push(s.virtualSize-r)}if(d&&a.loop){const n=m[0]+w;if(1<a.slidesPerGroup){const o=Math.ceil((s.virtual.slidesBefore+s.virtual.slidesAfter)/a.slidesPerGroup),t=n*a.slidesPerGroup;for(let e=0;e<o;e+=1)h.push(h[h.length-1]+t)}for(let e=0;e<s.virtual.slidesBefore+s.virtual.slidesAfter;e+=1)1===a.slidesPerGroup&&h.push(h[h.length-1]+n),f.push(f[f.length-1]+n),s.virtualSize+=n}if(0===h.length&&(h=[0]),0!==w){const n=s.isHorizontal()&&l?"marginLeft":s.getDirectionLabel("marginRight");u.filter((e,t)=>!(a.cssMode&&!a.loop)||t!==u.length-1).forEach(e=>{e.style[n]=w+"px"})}if(a.centeredSlides&&a.centeredSlidesBounds){let t=0;m.forEach(e=>{t+=e+(w||0)}),t-=w;const n=t-r;h=h.map(e=>e<=0?-g:e>n?n+v:e)}if(a.centerInsufficientSlides){let t=0;if(m.forEach(e=>{t+=e+(w||0)}),t-=w,t<r){const n=(r-t)/2;h.forEach((e,t)=>{h[t]=e-n}),f.forEach((e,t)=>{f[t]=e+n})}}if(Object.assign(s,{slides:u,snapGrid:h,slidesGrid:f,slidesSizesGrid:m}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){$(o,"--swiper-centered-offset-before",-h[0]+"px"),$(o,"--swiper-centered-offset-after",s.size/2-m[m.length-1]/2+"px");const n=-s.snapGrid[0],a=-s.slidesGrid[0];s.snapGrid=s.snapGrid.map(e=>e+n),s.slidesGrid=s.slidesGrid.map(e=>e+a)}if(p!==e&&s.emit("slidesLengthChange"),h.length!==y&&(s.params.watchOverflow&&s.checkOverflow(),s.emit("snapGridLengthChange")),f.length!==b&&s.emit("slidesGridLengthChange"),a.watchSlidesProgress&&s.updateSlidesOffset(),s.emit("slidesUpdated"),!(d||a.cssMode||"slide"!==a.effect&&"fade"!==a.effect)){const n=a.containerModifierClass+"backface-hidden",o=s.el.classList.contains(n);p<=a.maxBackfaceHiddenSlides?o||s.el.classList.add(n):o&&s.el.classList.remove(n)}}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);var o=e=>s?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&1<t.params.slidesPerView)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{i.push(e)});else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const e=t.activeIndex+n;if(e>t.slides.length&&!s)break;i.push(o(e))}else i.push(o(t.activeIndex));for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const e=i[n].offsetHeight;a=e>a?e:a}!a&&0!==a||(t.wrapperEl.style.height=a+"px")},updateSlidesOffset:function(){const t=this,i=t.slides,s=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let e=0;e<i.length;e+=1)i[e].swiperSlideOffset=(t.isHorizontal()?i[e].offsetLeft:i[e].offsetTop)-s-t.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const n=this,a=n.params,{slides:o,rtlTranslate:r,snapGrid:l}=n;if(0!==o.length){void 0===o[0].swiperSlideOffset&&n.updateSlidesOffset();let i=r?e:-e;o.forEach(e=>{e.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass)}),n.visibleSlidesIndexes=[],n.visibleSlides=[];let s=a.spaceBetween;"string"==typeof s&&0<=s.indexOf("%")?s=parseFloat(s.replace("%",""))/100*n.size:"string"==typeof s&&(s=parseFloat(s));for(let t=0;t<o.length;t+=1){const f=o[t];let e=f.swiperSlideOffset;a.cssMode&&a.centeredSlides&&(e-=o[0].swiperSlideOffset);var c=(i+(a.centeredSlides?n.minTranslate():0)-e)/(f.swiperSlideSize+s),d=(i-l[0]+(a.centeredSlides?n.minTranslate():0)-e)/(f.swiperSlideSize+s),u=-(i-e),p=u+n.slidesSizesGrid[t],h=0<=u&&u<=n.size-n.slidesSizesGrid[t];(0<=u&&u<n.size-1||1<p&&p<=n.size||u<=0&&p>=n.size)&&(n.visibleSlides.push(f),n.visibleSlidesIndexes.push(t),o[t].classList.add(a.slideVisibleClass)),h&&o[t].classList.add(a.slideFullyVisibleClass),f.progress=r?-c:c,f.originalProgress=r?-d:d}}},updateProgress:function(e){var t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:a,isEnd:o,progressLoop:r}=t;const l=a,c=o;if(0===s)n=0,a=!0,o=!0;else{n=(e-t.minTranslate())/s;const i=Math.abs(e-t.minTranslate())<1,r=Math.abs(e-t.maxTranslate())<1;a=i||n<=0,o=r||1<=n,i&&(n=0),r&&(n=1)}if(i.loop){const i=t.getSlideIndexByData(0),s=t.getSlideIndexByData(t.slides.length-1),n=t.slidesGrid[i],a=t.slidesGrid[s],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);r=l>=n?(l-n)/o:(l+o-a)/o,1<r&&--r}Object.assign(t,{progress:n,progressLoop:r,isBeginning:a,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!a||c&&!o)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,a=t.virtual&&i.virtual.enabled,o=t.grid&&i.grid&&1<i.grid.rows,r=e=>O(s,`.${i.slideClass}${e}, swiper-slide`+e)[0];let l,c,d;if(a)if(i.loop){let e=n-t.virtual.slidesBefore;e<0&&(e=t.virtual.slides.length+e),e>=t.virtual.slides.length&&(e-=t.virtual.slides.length),l=r(`[data-swiper-slide-index="${e}"]`)}else l=r(`[data-swiper-slide-index="${n}"]`);else o?(l=e.filter(e=>e.column===n)[0],d=e.filter(e=>e.column===n+1)[0],c=e.filter(e=>e.column===n-1)[0]):l=e[n];l&&(o||(d=function(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t&&!s.matches(t)||i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),c=function(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t&&!s.matches(t)||i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=e[e.length-1]))),e.forEach(e=>{p(e,e===l,i.slideActiveClass),p(e,e===d,i.slideNextClass),p(e,e===c,i.slidePrevClass)}),t.emitSlidesClasses()},updateActiveIndex:function(e){const i=this,t=i.rtlTranslate?i.translate:-i.translate,{snapGrid:s,params:n,activeIndex:a,realIndex:o,snapIndex:r}=i;let l,c=e;var d=e=>{let t=e-i.virtual.slidesBefore;return t<0&&(t=i.virtual.slides.length+t),t>=i.virtual.slides.length&&(t-=i.virtual.slides.length),t};if(void 0===c&&(c=function(e){var{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let n;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?s>=t[e]&&s<t[e+1]-(t[e+1]-t[e])/2?n=e:s>=t[e]&&s<t[e+1]&&(n=e+1):s>=t[e]&&(n=e);return i.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(i)),0<=s.indexOf(t))l=s.indexOf(t);else{const u=Math.min(n.slidesPerGroupSkip,c);l=u+Math.floor((c-u)/n.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),c!==a||i.params.loop)if(c===a&&i.params.loop&&i.virtual&&i.params.virtual.enabled)i.realIndex=d(c);else{e=i.grid&&n.grid&&1<n.grid.rows;let t;if(i.virtual&&n.virtual.enabled&&n.loop)t=d(c);else if(e){const u=i.slides.filter(e=>e.column===c)[0];let e=parseInt(u.getAttribute("data-swiper-slide-index"),10);Number.isNaN(e)&&(e=Math.max(i.slides.indexOf(u),0)),t=Math.floor(e/n.grid.rows)}else if(i.slides[c]){const u=i.slides[c].getAttribute("data-swiper-slide-index");t=u?parseInt(u,10):c}else t=c;Object.assign(i,{previousSnapIndex:r,snapIndex:l,previousRealIndex:o,realIndex:t,previousIndex:a,activeIndex:c}),i.initialized&&h(i),i.emit("activeIndexChange"),i.emit("snapIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&(o!==t&&i.emit("realIndexChange"),i.emit("slideChange"))}else l!==r&&(i.snapIndex=l,i.emit("snapIndexChange"))},updateClickedSlide:function(e,t){const i=this,s=i.params;let n=e.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&t&&1<t.length&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!n&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(n=e)});let a,o=!1;if(n)for(let e=0;e<i.slides.length;e+=1)if(i.slides[e]===n){o=!0,a=e;break}if(!n||!o)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=n,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a,s.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var{params:t,rtlTranslate:i,translate:s,wrapperEl:n}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let a=M(n,e);return a+=this.cssOverflowAdjustment(),i&&(a=-a),a||0},setTranslate:function(e,t){const i=this,{rtlTranslate:s,params:n,wrapperEl:a,progress:o}=i;let r=0,l=0;i.isHorizontal()?r=s?-e:e:l=e,n.roundLengths&&(r=Math.floor(r),l=Math.floor(l)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?r:l,n.cssMode?a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-r:-l:n.virtualTranslate||(i.isHorizontal()?r-=i.cssOverflowAdjustment():l-=i.cssOverflowAdjustment(),a.style.transform=`translate3d(${r}px, ${l}px, 0px)`);var c=i.maxTranslate()-i.minTranslate();(0==c?0:(e-i.minTranslate())/c)!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);const a=this,{params:o,wrapperEl:r}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;var l=a.minTranslate(),c=a.maxTranslate(),e=s&&l<e?l:s&&e<c?c:e;if(a.updateProgress(e),o.cssMode){const d=a.isHorizontal();if(0===t)r[d?"scrollLeft":"scrollTop"]=-e;else{if(!a.support.smoothScroll)return b({swiper:a,targetPosition:-e,side:d?"left":"top"}),!0;r.scrollTo({[d?"left":"top"]:-e,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(e),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(e),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,i&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=e+"ms",this.wrapperEl.style.transitionDelay=0===e?"0ms":""),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this["params"];i.cssMode||(i.autoHeight&&this.updateAutoHeight(),m({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this["params"];this.animating=!1,i.cssMode||(this.setTransition(0),m({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,i,s,n){void 0===i&&(i=!0),"string"==typeof(e=void 0===e?0:e)&&(e=parseInt(e,10));const a=this;let o=e;o<0&&(o=0);const{params:r,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:h,enabled:f}=a;if(!f&&!s&&!n||a.destroyed||a.animating&&r.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);n=Math.min(a.params.slidesPerGroupSkip,o);let m=n+Math.floor((o-n)/a.params.slidesPerGroup);m>=l.length&&(m=l.length-1);var g=-l[m];if(r.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*g),i=Math.floor(100*c[e]),s=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<s-(s-i)/2?o=e:t>=i&&t<s&&(o=e+1):t>=i&&(o=e)}if(a.initialized&&o!==u){if(!a.allowSlideNext&&(p?g>a.translate&&g>a.minTranslate():g<a.translate&&g<a.minTranslate()))return!1;if(!a.allowSlidePrev&&g>a.translate&&g>a.maxTranslate()&&(u||0)!==o)return!1}let v;if(o!==(d||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(g),v=o>u?"next":o<u?"prev":"reset",p&&-g===a.translate||!p&&g===a.translate)return a.updateActiveIndex(o),r.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==r.effect&&a.setTranslate(g),"reset"!=v&&(a.transitionStart(i,v),a.transitionEnd(i,v)),!1;if(r.cssMode){const e=a.isHorizontal(),i=p?g:-g;if(0===t){const t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),t&&!a._cssModeVirtualInitialSet&&0<a.params.initialSlide?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=i})):h[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1})}else{if(!a.support.smoothScroll)return b({swiper:a,targetPosition:i,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(g),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,v),0===t?a.transitionEnd(i,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,v))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(n,a,o,r){void 0===o&&(o=!0),"string"==typeof(n=void 0===n?0:n)&&(n=parseInt(n,10));const l=this;if(!l.destroyed){void 0===a&&(a=l.params.speed);var c=l.grid&&l.params.grid&&1<l.params.grid.rows;let s=n;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)s+=l.virtual.slidesBefore;else{let e;if(c){const a=s*l.params.grid.rows;e=l.slides.filter(e=>+e.getAttribute("data-swiper-slide-index")==a)[0].column}else e=l.getSlideIndexByData(s);const a=c?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,o=l.params["centeredSlides"];let t=l.params.slidesPerView;"auto"===t?t=l.slidesPerViewDynamic():(t=Math.ceil(parseFloat(l.params.slidesPerView,10)),o&&t%2==0&&(t+=1));let i=a-e<t;if(o&&(i=i||e<Math.ceil(t/2)),r&&o&&"auto"!==l.params.slidesPerView&&!c&&(i=!1),i){const r=o?e<l.activeIndex?"prev":"next":e-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"==r?e+1:e-a+1,slideRealIndex:"next"==r?l.realIndex:void 0})}if(c){const n=s*l.params.grid.rows;s=l.slides.filter(e=>+e.getAttribute("data-swiper-slide-index")==n)[0].column}else s=l.getSlideIndexByData(s)}return requestAnimationFrame(()=>{l.slideTo(s,a,o,r)}),l}},slideNext:function(e,t,i){void 0===t&&(t=!0);const s=this,{enabled:n,params:a,animating:o}=s;if(!n||s.destroyed)return s;void 0===e&&(e=s.params.speed);let r=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(r=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<a.slidesPerGroupSkip?1:r,c=s.virtual&&a.virtual.enabled;if(a.loop){if(o&&!c&&a.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,e,t,i)}),!0}return a.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);const s=this,{params:n,snapGrid:a,slidesGrid:o,rtlTranslate:r,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;void 0===e&&(e=s.params.speed);var d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=u(r?s.translate:-s.translate),h=a.map(e=>u(e));let f=a[h.indexOf(p)-1];if(void 0===f&&n.cssMode){let i;a.forEach((e,t)=>{p>=e&&(i=t)}),void 0!==i&&(f=a[0<i?i-1:i])}let m=0;if(void 0!==f&&(m=o.indexOf(f),m<0&&(m=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(m=m-s.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return n.loop&&0===s.activeIndex&&n.cssMode?(requestAnimationFrame(()=>{s.slideTo(m,e,t,i)}),!0):s.slideTo(m,e,t,i)},slideReset:function(e,t,i){void 0===t&&(t=!0);if(!this.destroyed)return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(t,i,s,n){void 0===i&&(i=!0),void 0===n&&(n=.5);var a=this;if(!a.destroyed){void 0===t&&(t=a.params.speed);let e=a.activeIndex;var o=Math.min(a.params.slidesPerGroupSkip,e),r=o+Math.floor((e-o)/a.params.slidesPerGroup),o=a.rtlTranslate?a.translate:-a.translate;if(o>=a.snapGrid[r]){const t=a.snapGrid[r];o-t>(a.snapGrid[r+1]-t)*n&&(e+=a.params.slidesPerGroup)}else{const t=a.snapGrid[r-1];o-t<=(a.snapGrid[r]-t)*n&&(e-=a.params.slidesPerGroup)}return e=Math.max(e,0),e=Math.min(e,a.slidesGrid.length-1),a.slideTo(e,t,i,s)}},slideToClickedSlide:function(){const i=this;if(!i.destroyed){var{params:s,slidesEl:n}=i,a="auto"===s.slidesPerView?i.slidesPerViewDynamic():s.slidesPerView;let e,t=i.clickedIndex;var o=i.isElement?"swiper-slide":"."+s.slideClass;s.loop?i.animating||(e=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),s.centeredSlides?t<i.loopedSlides-a/2||t>i.slides.length-i.loopedSlides+a/2?(i.loopFix(),t=i.getSlideIndex(O(n,o+`[data-swiper-slide-index="${e}"]`)[0]),C(()=>{i.slideTo(t)})):i.slideTo(t):t>i.slides.length-a?(i.loopFix(),t=i.getSlideIndex(O(n,o+`[data-swiper-slide-index="${e}"]`)[0]),C(()=>{i.slideTo(t)})):i.slideTo(t)):i.slideTo(t)}}},loop:{loopCreate:function(e){const i=this,{params:s,slidesEl:t}=i;var n,a,o,r,l;!s.loop||i.virtual&&i.params.virtual.enabled||(n=()=>{O(t,`.${s.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},l=i.grid&&s.grid&&1<s.grid.rows,a=s.slidesPerGroup*(l?s.grid.rows:1),o=i.slides.length%a!=0,r=l&&i.slides.length%s.grid.rows!=0,l=t=>{for(let e=0;e<t;e+=1){const t=i.isElement?L("swiper-slide",[s.slideBlankClass]):L("div",[s.slideClass,s.slideBlankClass]);i.slidesEl.append(t)}},o?s.loopAddBlankSlides?(l(a-i.slides.length%a),i.recalcSlides(),i.updateSlides()):P("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"):r&&(s.loopAddBlankSlides?(l(s.grid.rows-i.slides.length%s.grid.rows),i.recalcSlides(),i.updateSlides()):P("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),n(),i.loopFix({slideRealIndex:e,direction:s.centeredSlides?void 0:"next"}))},loopFix:function(a){let{slideRealIndex:o,slideTo:r=!0,direction:l,setTranslate:c,activeSlideIndex:d,byController:u,byMousewheel:p}=void 0===a?{}:a;const h=this;if(h.params.loop){h.emit("beforeLoopFix");const{slides:b,allowSlidePrev:w,allowSlideNext:x,slidesEl:_,params:S}=h,T=S["centeredSlides"];if(h.allowSlidePrev=!0,h.allowSlideNext=!0,h.virtual&&S.virtual.enabled)return r&&(S.centeredSlides||0!==h.snapIndex?S.centeredSlides&&h.snapIndex<S.slidesPerView?h.slideTo(h.virtual.slides.length+h.snapIndex,0,!1,!0):h.snapIndex===h.snapGrid.length-1&&h.slideTo(h.virtual.slidesBefore,0,!1,!0):h.slideTo(h.virtual.slides.length,0,!1,!0)),h.allowSlidePrev=w,h.allowSlideNext=x,void h.emit("loopFix");let e=S.slidesPerView;"auto"===e?e=h.slidesPerViewDynamic():(e=Math.ceil(parseFloat(S.slidesPerView,10)),T&&e%2==0&&(e+=1));var f=S.slidesPerGroupAuto?e:S.slidesPerGroup;let t=f;t%f!=0&&(t+=f-t%f),t+=S.loopAdditionalSlides,h.loopedSlides=t;var m=h.grid&&S.grid&&1<S.grid.rows;b.length<e+t?P("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):m&&"row"===S.grid.fill&&P("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const C=[],E=[];let i=h.activeIndex;void 0===d?d=h.getSlideIndex(b.filter(e=>e.classList.contains(S.slideActiveClass))[0]):i=d;var g="next"===l||!l,a="prev"===l||!l;let s=0,n=0;var v=m?Math.ceil(b.length/S.grid.rows):b.length,y=(m?b[d].column:d)+(T&&void 0===c?-e/2+.5:0);if(y<t){s=Math.max(t-y,f);for(let e=0;e<t-y;e+=1){const o=e-Math.floor(e/v)*v;if(m){const k=v-o-1;for(let e=b.length-1;0<=e;--e)b[e].column===k&&C.push(e)}else C.push(v-o-1)}}else if(y+e>v-t){n=Math.max(y-(v-2*t),f);for(let e=0;e<n;e+=1){const o=e-Math.floor(e/v)*v;m?b.forEach((e,t)=>{e.column===o&&E.push(t)}):E.push(o)}}if(h.__preventObserver__=!0,requestAnimationFrame(()=>{h.__preventObserver__=!1}),a&&C.forEach(e=>{b[e].swiperLoopMoveDOM=!0,_.prepend(b[e]),b[e].swiperLoopMoveDOM=!1}),g&&E.forEach(e=>{b[e].swiperLoopMoveDOM=!0,_.append(b[e]),b[e].swiperLoopMoveDOM=!1}),h.recalcSlides(),"auto"===S.slidesPerView?h.updateSlides():m&&(0<C.length&&a||0<E.length&&g)&&h.slides.forEach((e,t)=>{h.grid.updateSlide(t,e,h.slides)}),S.watchSlidesProgress&&h.updateSlidesOffset(),r)if(0<C.length&&a){if(void 0===o){const k=h.slidesGrid[i],o=h.slidesGrid[i+s]-k;p?h.setTranslate(h.translate-o):(h.slideTo(i+Math.ceil(s),0,!1,!0),c&&(h.touchEventsData.startTranslate=h.touchEventsData.startTranslate-o,h.touchEventsData.currentTranslate=h.touchEventsData.currentTranslate-o))}else if(c){const k=m?C.length/S.grid.rows:C.length;h.slideTo(h.activeIndex+k,0,!1,!0),h.touchEventsData.currentTranslate=h.translate}}else if(0<E.length&&g)if(void 0===o){const k=h.slidesGrid[i],o=h.slidesGrid[i-n]-k;p?h.setTranslate(h.translate-o):(h.slideTo(i-n,0,!1,!0),c&&(h.touchEventsData.startTranslate=h.touchEventsData.startTranslate-o,h.touchEventsData.currentTranslate=h.touchEventsData.currentTranslate-o))}else{const k=m?E.length/S.grid.rows:E.length;h.slideTo(h.activeIndex-k,0,!1,!0)}if(h.allowSlidePrev=w,h.allowSlideNext=x,h.controller&&h.controller.control&&!u){const k={slideRealIndex:o,direction:l,setTranslate:c,activeSlideIndex:d,byController:!0};Array.isArray(h.controller.control)?h.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...k,slideTo:e.params.slidesPerView===S.slidesPerView&&r})}):h.controller.control instanceof h.constructor&&h.controller.control.params.loop&&h.controller.control.loopFix({...k,slideTo:h.controller.control.params.slidesPerView===S.slidesPerView&&r})}h.emit("loopFix")}},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!(!t.loop||e.virtual&&e.params.virtual.enabled)){e.recalcSlides();const s=[];e.slides.forEach(e=>{var t=void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;s[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),s.forEach(e=>{i.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}}},grabCursor:{setGrabCursor:function(e){const t=this;if(!(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){var e=this,t=e["params"];e.onTouchStart=function(i){const s=this,n=A();let a=i;a.originalEvent&&(a=a.originalEvent);const o=s.touchEventsData;if("pointerdown"===a.type){if(null!==o.pointerId&&o.pointerId!==a.pointerId)return;o.pointerId=a.pointerId}else"touchstart"===a.type&&1===a.targetTouches.length&&(o.touchId=a.targetTouches[0].identifier);if("touchstart"!==a.type){const{params:l,touches:c,enabled:e}=s;if(e&&(l.simulateTouch||"mouse"!==a.pointerType)&&(!s.animating||!l.preventInteractionOnTransition)){!s.animating&&l.cssMode&&l.loop&&s.loopFix();let t=a.target;if(("wrapper"!==l.touchEventsTarget||s.wrapperEl.contains(t))&&!("which"in a&&3===a.which||"button"in a&&0<a.button||o.isTouched&&o.isMoved)){var r=!!l.noSwipingClass&&""!==l.noSwipingClass,i=a.composedPath?a.composedPath():a.path;r&&a.target&&a.target.shadowRoot&&i&&(t=i[0]);r=l.noSwipingSelector||"."+l.noSwipingClass,i=!(!a.target||!a.target.shadowRoot);if(l.noSwiping&&(i?function(s,e){return function e(t){if(!t||t===A()||t===I())return null;var i=(t=t.assignedSlot?t.assignedSlot:t).closest(s);return i||t.getRootNode?i||e(t.getRootNode().host):null}(e=void 0===t?this:e)}(r,t):t.closest(r)))s.allowClick=!0;else if(!l.swipeHandler||t.closest(l.swipeHandler)){c.currentX=a.pageX,c.currentY=a.pageY;i=c.currentX,r=c.currentY;if(w(s,a,i)){Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=i,c.startY=r,o.touchStartTime=v(),s.allowClick=!0,s.updateSize(),s.swipeDirection=void 0,0<l.threshold&&(o.allowThresholdMove=!1);let e=!0;t.matches(o.focusableElements)&&(e=!1,"SELECT"===t.nodeName&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==t&&n.activeElement.blur();r=e&&s.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!r||t.isContentEditable||a.preventDefault(),l.freeMode&&l.freeMode.enabled&&s.freeMode&&s.animating&&!l.cssMode&&s.freeMode.onTouchStart(),s.emit("touchStart",a)}}}}}else w(s,a,a.targetTouches[0].pageX)}.bind(e),e.onTouchMove=function(a){const t=A(),o=this,r=o.touchEventsData,{params:l,touches:c,rtlTranslate:d,enabled:e}=o;if(e&&(l.simulateTouch||"mouse"!==a.pointerType)){let e,n=a;if(n.originalEvent&&(n=n.originalEvent),"pointermove"===n.type){if(null!==r.touchId)return;if(n.pointerId!==r.pointerId)return}if("touchmove"===n.type){if(e=[...n.changedTouches].filter(e=>e.identifier===r.touchId)[0],!e||e.identifier!==r.touchId)return}else e=n;if(r.isTouched){var u=e.pageX,p=e.pageY;if(n.preventedByNestedSwiper)return c.startX=u,void(c.startY=p);if(!o.allowTouchMove)return n.target.matches(r.focusableElements)||(o.allowClick=!1),void(r.isTouched&&(Object.assign(c,{startX:u,startY:p,currentX:u,currentY:p}),r.touchStartTime=v()));if(l.touchReleaseOnEdges&&!l.loop)if(o.isVertical()){if(p<c.startY&&o.translate<=o.maxTranslate()||p>c.startY&&o.translate>=o.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<c.startX&&o.translate<=o.maxTranslate()||u>c.startX&&o.translate>=o.minTranslate())return;if(t.activeElement&&n.target===t.activeElement&&n.target.matches(r.focusableElements))return r.isMoved=!0,void(o.allowClick=!1);r.allowTouchCallbacks&&o.emit("touchMove",n),c.previousX=c.currentX,c.previousY=c.currentY,c.currentX=u,c.currentY=p;var h=c.currentX-c.startX,a=c.currentY-c.startY;if(!(o.params.threshold&&Math.sqrt(h**2+a**2)<o.params.threshold))if(void 0===r.isScrolling&&(o.isHorizontal()&&c.currentY===c.startY||o.isVertical()&&c.currentX===c.startX?r.isScrolling=!1:25<=h*h+a*a&&(f=180*Math.atan2(Math.abs(a),Math.abs(h))/Math.PI,r.isScrolling=o.isHorizontal()?f>l.touchAngle:90-f>l.touchAngle)),r.isScrolling&&o.emit("touchMoveOpposite",n),void 0===r.startMoving&&(c.currentX===c.startX&&c.currentY===c.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===n.type&&r.preventTouchMoveFromPointerMove)r.isTouched=!1;else if(r.startMoving){o.allowClick=!1,!l.cssMode&&n.cancelable&&n.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&n.stopPropagation();let e=o.isHorizontal()?h:a,t=o.isHorizontal()?c.currentX-c.previousX:c.currentY-c.previousY;l.oneWayMovement&&(e=Math.abs(e)*(d?1:-1),t=Math.abs(t)*(d?1:-1)),c.diff=e,e*=l.touchRatio,d&&(e=-e,t=-t);var f=o.touchesDirection;o.swipeDirection=0<e?"prev":"next",o.touchesDirection=0<t?"prev":"next";h=o.params.loop&&!l.cssMode,a="next"===o.touchesDirection&&o.allowSlideNext||"prev"===o.touchesDirection&&o.allowSlidePrev;if(!r.isMoved){if(h&&a&&o.loopFix({direction:o.swipeDirection}),r.startTranslate=o.getTranslate(),o.setTransition(0),o.animating){const m=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});o.wrapperEl.dispatchEvent(m)}r.allowMomentumBounce=!1,!l.grabCursor||!0!==o.allowSlideNext&&!0!==o.allowSlidePrev||o.setGrabCursor(!0),o.emit("sliderFirstMove",n)}if((new Date).getTime(),r.isMoved&&r.allowThresholdMove&&f!==o.touchesDirection&&h&&a&&1<=Math.abs(e))return Object.assign(c,{startX:u,startY:p,currentX:u,currentY:p,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);o.emit("sliderMove",n),r.isMoved=!0,r.currentTranslate=e+r.startTranslate;let i=!0,s=l.resistanceRatio;if(l.touchReleaseOnEdges&&(s=0),0<e?(h&&a&&r.allowThresholdMove&&r.currentTranslate>(l.centeredSlides?o.minTranslate()-o.slidesSizesGrid[o.activeIndex+1]:o.minTranslate())&&o.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>o.minTranslate()&&(i=!1,l.resistance&&(r.currentTranslate=o.minTranslate()-1+(-o.minTranslate()+r.startTranslate+e)**s))):e<0&&(h&&a&&r.allowThresholdMove&&r.currentTranslate<(l.centeredSlides?o.maxTranslate()+o.slidesSizesGrid[o.slidesSizesGrid.length-1]:o.maxTranslate())&&o.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:o.slides.length-("auto"===l.slidesPerView?o.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),r.currentTranslate<o.maxTranslate()&&(i=!1,l.resistance&&(r.currentTranslate=o.maxTranslate()+1-(o.maxTranslate()-r.startTranslate-e)**s))),i&&(n.preventedByNestedSwiper=!0),!o.allowSlideNext&&"next"===o.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!o.allowSlidePrev&&"prev"===o.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),o.allowSlidePrev||o.allowSlideNext||(r.currentTranslate=r.startTranslate),0<l.threshold){if(!(Math.abs(e)>l.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,c.startX=c.currentX,c.startY=c.currentY,r.currentTranslate=r.startTranslate,void(c.diff=o.isHorizontal()?c.currentX-c.startX:c.currentY-c.startY)}l.followFinger&&!l.cssMode&&((l.freeMode&&l.freeMode.enabled&&o.freeMode||l.watchSlidesProgress)&&(o.updateActiveIndex(),o.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&o.freeMode&&o.freeMode.onTouchMove(),o.updateProgress(r.currentTranslate),o.setTranslate(r.currentTranslate))}}else r.startMoving&&r.isScrolling&&o.emit("touchMoveOpposite",n)}}.bind(e),e.onTouchEnd=function(e){const n=this,t=n.touchEventsData;let i,a=e;if(a.originalEvent&&(a=a.originalEvent),"touchend"===a.type||"touchcancel"===a.type){if(i=[...a.changedTouches].filter(e=>e.identifier===t.touchId)[0],!i||i.identifier!==t.touchId)return}else{if(null!==t.touchId)return;if(a.pointerId!==t.pointerId)return;i=a}if(!["pointercancel","pointerout","pointerleave","contextmenu"].includes(a.type)||["pointercancel","contextmenu"].includes(a.type)&&(n.browser.isSafari||n.browser.isWebView)){t.pointerId=null,t.touchId=null;var{params:o,touches:r,rtlTranslate:l,slidesGrid:c,enabled:d}=n;if(d&&(o.simulateTouch||"mouse"!==a.pointerType)){if(t.allowTouchCallbacks&&n.emit("touchEnd",a),t.allowTouchCallbacks=!1,!t.isTouched)return t.isMoved&&o.grabCursor&&n.setGrabCursor(!1),t.isMoved=!1,void(t.startMoving=!1);o.grabCursor&&t.isMoved&&t.isTouched&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!1);var u,e=v(),d=e-t.touchStartTime;if(n.allowClick){const s=a.path||a.composedPath&&a.composedPath();n.updateClickedSlide(s&&s[0]||a.target,s),n.emit("tap click",a),d<300&&e-t.lastClickTime<300&&n.emit("doubleTap doubleClick",a)}if(t.lastClickTime=v(),C(()=>{n.destroyed||(n.allowClick=!0)}),!t.isTouched||!t.isMoved||!n.swipeDirection||0===r.diff&&!t.loopSwapReset||t.currentTranslate===t.startTranslate&&!t.loopSwapReset)return t.isTouched=!1,t.isMoved=!1,void(t.startMoving=!1);if(t.isTouched=!1,t.isMoved=!1,t.startMoving=!1,u=o.followFinger?l?n.translate:-n.translate:-t.currentTranslate,!o.cssMode)if(o.freeMode&&o.freeMode.enabled)n.freeMode.onTouchEnd({currentPos:u});else{var p=u>=-n.maxTranslate()&&!n.params.loop;let t=0,i=n.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const n=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==c[e+n]?(p||u>=c[e]&&u<c[e+n])&&(t=e,i=c[e+n]-c[e]):(p||u>=c[e])&&(t=e,i=c[c.length-1]-c[c.length-2])}let e=null,s=null;o.rewind&&(n.isBeginning?s=o.virtual&&o.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(e=0));r=(u-c[t])/i,l=t<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;d>o.longSwipesMs?o.longSwipes?("next"===n.swipeDirection&&(r>=o.longSwipesRatio?n.slideTo(o.rewind&&n.isEnd?e:t+l):n.slideTo(t)),"prev"===n.swipeDirection&&(r>1-o.longSwipesRatio?n.slideTo(t+l):null!==s&&r<0&&Math.abs(r)>o.longSwipesRatio?n.slideTo(s):n.slideTo(t))):n.slideTo(n.activeIndex):o.shortSwipes?!n.navigation||a.target!==n.navigation.nextEl&&a.target!==n.navigation.prevEl?("next"===n.swipeDirection&&n.slideTo(null!==e?e:t+l),"prev"===n.swipeDirection&&n.slideTo(null!==s?s:t)):a.target===n.navigation.nextEl?n.slideTo(t+l):n.slideTo(t):n.slideTo(n.activeIndex)}}}}.bind(e),e.onDocumentTouchStart=function(){this.documentTouchHandlerProceeded||(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}.bind(e),t.cssMode&&(e.onScroll=function(){var e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;s&&(e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses(),(0==(t=e.maxTranslate()-e.minTranslate())?0:(e.translate-e.minTranslate())/t)!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1))}.bind(e)),e.onClick=function(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}.bind(e),e.onLoad=function(e){var t=this;o(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}.bind(e),_(e,"on")},detachEvents:function(){_(this,"off")}},breakpoints:{setBreakpoint:function(){const s=this,{realIndex:e,initialized:t,params:n,el:i}=s,a=n.breakpoints;if(a&&0!==Object.keys(a).length){var o=s.getBreakpoint(a,s.params.breakpointsBase,s.el);if(o&&s.currentBreakpoint!==o){const u=(o in a?a[o]:void 0)||s.originalParams,p=S(s,n),h=S(s,u),f=s.params.grabCursor,m=u.grabCursor,g=n.enabled;p&&!h?(i.classList.remove(n.containerModifierClass+"grid",n.containerModifierClass+"grid-column"),s.emitContainerClasses()):!p&&h&&(i.classList.add(n.containerModifierClass+"grid"),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===n.grid.fill)&&i.classList.add(n.containerModifierClass+"grid-column"),s.emitContainerClasses()),f&&!m?s.unsetGrabCursor():!f&&m&&s.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(e=>{var t,i;void 0!==u[e]&&(t=n[e]&&n[e].enabled,i=u[e]&&u[e].enabled,t&&!i&&s[e].disable(),!t&&i&&s[e].enable())});var r=u.direction&&u.direction!==n.direction,l=n.loop&&(u.slidesPerView!==n.slidesPerView||r),c=n.loop;r&&t&&s.changeDirection(),y(s.params,u);var d=s.params.enabled,r=s.params.loop;Object.assign(s,{allowTouchMove:s.params.allowTouchMove,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev}),g&&!d?s.disable():!g&&d&&s.enable(),s.currentBreakpoint=o,s.emit("_beforeBreakpoint",u),t&&(l?(s.loopDestroy(),s.loopCreate(e),s.updateSlides()):!c&&r?(s.loopCreate(e),s.updateSlides()):c&&!r&&s.loopDestroy()),s.emit("breakpoint",u)}}},getBreakpoint:function(e,i,s){if(void 0===i&&(i="window"),e&&("container"!==i||s)){let t=!1;const n=I(),a="window"===i?n.innerHeight:s.clientHeight,o=Object.keys(e).map(e=>{if("string"!=typeof e||0!==e.indexOf("@"))return{value:e,point:e};var t=parseFloat(e.substr(1));return{value:a*t,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){const{point:I,value:a}=o[e];"window"===i?n.matchMedia(`(min-width: ${a}px)`).matches&&(t=I):a<=s.clientWidth&&(t=I)}return t||"max"}}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,s=i["slidesOffsetBefore"];if(s){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:i,el:s,device:n}=this,a=function(e,i){const s=[];return e.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(e=>{t[e]&&s.push(i+e)}):"string"==typeof t&&s.push(i+t)}),s}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&1<t.grid.rows},{"grid-column":t.grid&&1<t.grid.rows&&"column"===t.grid.fill},{android:n.android},{ios:n.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),s.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},R={};class F{constructor(){let t,i;for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?i=s[0]:[t,i]=s,i=i||{},i=y({},i),t&&!i.el&&(i.el=t);const a=A();if(i.el&&"string"==typeof i.el&&1<a.querySelectorAll(i.el).length){const t=[];return a.querySelectorAll(i.el).forEach(e=>{e=y({},i,{el:e});t.push(new F(e))}),t}const o=this;o.__swiper__=!0,o.support=f(),o.device=u({userAgent:i.userAgent}),o.browser=(d=d||function(){const t=I(),e=u();let i=!1;function s(){const e=t.navigator.userAgent.toLowerCase();return 0<=e.indexOf("safari")&&e.indexOf("chrome")<0&&e.indexOf("android")<0}if(s()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,s]=e.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));i=t<16||16===t&&s<2}}var n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),a=s();return{isSafari:i||a,needPerspectiveFix:i,need3dFix:a||n&&e.ios,isWebView:n}}(),d),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);const r={};o.modules.forEach(e=>{var s,n;e({params:i,swiper:o,extendParams:(s=i,n=r,function(e){void 0===e&&(e={});var t=Object.keys(e)[0],i=e[t];"object"==typeof i&&null!==i&&(!0===s[t]&&(s[t]={enabled:!0}),"navigation"===t&&s[t]&&s[t].enabled&&!s[t].prevEl&&!s[t].nextEl&&(s[t].auto=!0),0<=["pagination","scrollbar"].indexOf(t)&&s[t]&&s[t].enabled&&!s[t].el&&(s[t].auto=!0),t in s&&"enabled"in i&&("object"!=typeof s[t]||"enabled"in s[t]||(s[t].enabled=!0),s[t]||(s[t]={enabled:!1}))),y(n,e)}),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});var l=y({},H,r);return o.params=y({},l,R,i),o.originalParams=y({},o.params),o.passedParams=y({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(e=>{o.on(e,o.params.on[e])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,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,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){var{slidesEl:t,params:i}=this,i=k(O(t,`.${i.slideClass}, swiper-slide`)[0]);return k(e)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(e=>+e.getAttribute("data-swiper-slide-index")===t)[0])}recalcSlides(){var{slidesEl:e,params:t}=this;this.slides=O(e,`.${t.slideClass}, swiper-slide`)}enable(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){var i=this;e=Math.min(Math.max(e,0),1);var s=i.minTranslate(),s=(i.maxTranslate()-s)*e+s;i.translateTo(s,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(t.params._emitClasses&&t.el){const e=t.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass));t.emit("_containerClasses",e.join(" "))}}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const i=this;if(i.params._emitClasses&&i.el){const s=[];i.slides.forEach(e=>{var t=i.getSlideClasses(e);s.push({slideEl:e,classNames:t}),i.emit("_slideClass",e,t)}),i.emit("_slideClasses",s)}}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);var{params:i,slides:s,slidesGrid:n,slidesSizesGrid:a,size:o,activeIndex:r}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let t,i=s[r]?Math.ceil(s[r].swiperSlideSize):0;for(let e=r+1;e<s.length;e+=1)s[e]&&!t&&(i+=Math.ceil(s[e].swiperSlideSize),l+=1,i>o&&(t=!0));for(let e=r-1;0<=e;--e)s[e]&&!t&&(i+=s[e].swiperSlideSize,l+=1,i>o&&(t=!0))}else if("current"===e)for(let e=r+1;e<s.length;e+=1)(t?n[e]+a[e]-n[r]<o:n[e]-n[r]<o)&&(l+=1);else for(let e=r-1;0<=e;--e)n[r]-n[e]<o&&(l+=1);return l}update(){const t=this;if(t&&!t.destroyed){const{snapGrid:s,params:n}=t;let e;if(n.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&o(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&t.updateAutoHeight();else{if(("auto"===n.slidesPerView||1<n.slidesPerView)&&t.isEnd&&!n.centeredSlides){const s=(t.virtual&&n.virtual.enabled?t.virtual:t).slides;e=t.slideTo(s.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||i()}function i(){var e=t.rtlTranslate?-1*t.translate:t.translate,e=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}n.watchOverflow&&s!==t.snapGrid&&t.checkOverflow(),t.emit("update")}}changeDirection(t,e){void 0===e&&(e=!0);var i=this,s=i.params.direction;return(t=t||("horizontal"===s?"vertical":"horizontal"))===s||"horizontal"!==t&&"vertical"!==t||(i.el.classList.remove(""+i.params.containerModifierClass+s),i.el.classList.add(""+i.params.containerModifierClass+t),i.emitContainerClasses(),i.params.direction=t,i.slides.forEach(e=>{"vertical"===t?e.style.width="":e.style.height=""}),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(e){var t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(t.params.containerModifierClass+"rtl"),t.el.dir="rtl"):(t.el.classList.remove(t.params.containerModifierClass+"rtl"),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const s=()=>"."+(t.params.wrapperClass||"").trim().split(" ").join(".");let n=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):O(i,s())[0];return!n&&t.params.createElements&&(n=L("div",t.params.wrapperClass),i.append(n),O(i,"."+t.params.slideClass).forEach(e=>{n.append(e)})),Object.assign(t,{el:i,wrapperEl:n,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===E(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===E(i,"direction")),wrongRTL:"-webkit-box"===E(n,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(e=>{e.complete?o(t,e):e.addEventListener("load",e=>{o(t,e.target)})}),h(t),t.initialized=!0,h(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,el:n,wrapperEl:a,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n.removeAttribute("style"),a.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el.swiper=null,function(){const t=i;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}()),i.destroyed=!0),null}static extendDefaults(e){y(R,e)}static get extendedDefaults(){return R}static get defaults(){return H}static installModule(e){F.prototype.__modules__||(F.prototype.__modules__=[]);const t=F.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>F.installModule(e)):F.installModule(e),F}}function q(i,s,n,a){return i.params.createElements&&Object.keys(a).forEach(t=>{if(!n[t]&&!0===n.auto){let e=O(i.el,"."+a[t])[0];e||(e=L("div",a[t]),e.className=a[t],i.el.append(e)),n[t]=e,s[t]=e}}),n}function W(e){return"."+(e=void 0===e?"":e).trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}function V(e){const{effect:i,swiper:s,on:t,setTranslate:n,setTransition:a,overwriteParams:o,perspective:r,recreateShadows:l,getEffectParams:c}=e;let d;t("beforeInit",()=>{var e;s.params.effect===i&&(s.classNames.push(""+s.params.containerModifierClass+i),r&&r()&&s.classNames.push(s.params.containerModifierClass+"3d"),e=o?o():{},Object.assign(s.params,e),Object.assign(s.originalParams,e))}),t("setTranslate",()=>{s.params.effect===i&&n()}),t("setTransition",(e,t)=>{s.params.effect===i&&a(t)}),t("transitionEnd",()=>{s.params.effect===i&&l&&c&&c().slideShadows&&(s.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),l())}),t("virtualUpdate",()=>{s.params.effect===i&&(s.slides.length||(d=!0),requestAnimationFrame(()=>{d&&s.slides&&s.slides.length&&(n(),d=!1)}))})}function U(e,t){const i=r(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function Y(e){let{swiper:i,duration:t,transformElements:s,allSlides:n}=e;const a=i["activeIndex"];if(i.params.virtualTranslate&&0!==t){let e,t=!1;e=n?s:s.filter(e=>{var t,e=e.classList.contains("swiper-slide-transform")?(t=e).parentElement||i.slides.filter(e=>e.shadowRoot&&e.shadowRoot===t.parentNode)[0]:e;return i.getSlideIndex(e)===a}),e.forEach(e=>{g(e,()=>{var e;t||i&&!i.destroyed&&(t=!0,i.animating=!1,e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0}),i.wrapperEl.dispatchEvent(e))})})}}function G(e,t,i){const s="swiper-slide-shadow"+(i?"-"+i:"")+(e?" swiper-slide-shadow-"+e:""),n=r(t);let a=n.querySelector("."+s.split(" ").join("."));return a||(a=L("div",s.split(" ")),n.append(a)),a}Object.keys(B).forEach(t=>{Object.keys(B[t]).forEach(e=>{F.prototype[e]=B[t][e]})}),F.use([function(e){let{swiper:a,on:t,emit:i}=e;const s=I();let n=null,o=null;const r=()=>{a&&!a.destroyed&&a.initialized&&(i("beforeResize"),i("resize"))},l=()=>{a&&!a.destroyed&&a.initialized&&i("orientationchange")};t("init",()=>{a.params.resizeObserver&&void 0!==s.ResizeObserver?a&&!a.destroyed&&a.initialized&&(n=new ResizeObserver(i=>{o=s.requestAnimationFrame(()=>{var{width:e,height:t}=a;let s=e,n=t;i.forEach(e=>{var{contentBoxSize:t,contentRect:i,target:e}=e;e&&e!==a.el||(s=i?i.width:(t[0]||t).inlineSize,n=i?i.height:(t[0]||t).blockSize)}),s===e&&n===t||r()})}),n.observe(a.el)):(s.addEventListener("resize",r),s.addEventListener("orientationchange",l))}),t("destroy",()=>{o&&s.cancelAnimationFrame(o),n&&n.unobserve&&a.el&&(n.unobserve(a.el),n=null),s.removeEventListener("resize",r),s.removeEventListener("orientationchange",l)})},function(e){let{swiper:s,extendParams:t,on:i,emit:n}=e;function a(e,t){void 0===t&&(t={});const i=new(r.MutationObserver||r.WebkitMutationObserver)(e=>{var t;s.__preventObserver__||(1!==e.length?(t=function(){n("observerUpdate",e[0])},r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)):n("observerUpdate",e[0]))});i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),o.push(i)}const o=[],r=I();t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(s.params.observer){if(s.params.observeParents){var t=D(s.hostEl);for(let e=0;e<t.length;e+=1)a(t[e])}a(s.hostEl,{childList:s.params.observeSlideChildren}),a(s.wrapperEl,{attributes:!1})}}),i("destroy",()=>{o.forEach(e=>{e.disconnect()}),o.splice(0,o.length)})}]),F.use([function(e){let t,{swiper:C,extendParams:i,on:s,emit:E}=e;i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const n=A();C.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const a=n.createElement("div");function k(e,t){const i=C.params.virtual;if(i.cache&&C.virtual.cache[t])return C.virtual.cache[t];let s;return i.renderSlide?(s=i.renderSlide.call(C,e,t),"string"==typeof s&&(a.innerHTML=s,s=a.children[0])):s=C.isElement?L("swiper-slide"):L("div",C.params.slideClass),s.setAttribute("data-swiper-slide-index",t),i.renderSlide||(s.innerHTML=e),i.cache&&(C.virtual.cache[t]=s),s}function o(o,r){var{slidesPerView:l,slidesPerGroup:c,centeredSlides:d,loop:u,initialSlide:p}=C.params;if(!(r&&!u&&0<p)){const{addSlidesBefore:m,addSlidesAfter:g}=C.params.virtual,{from:v,to:y,slides:b,slidesGrid:w,offset:x}=C.virtual;C.params.cssMode||C.updateActiveIndex();p=C.activeIndex||0;let t,e,i;t=C.rtlTranslate?"right":C.isHorizontal()?"left":"top",i=d?(e=Math.floor(l/2)+c+g,Math.floor(l/2)+c+m):(e=l+(c-1)+g,(u?l:c)+m);let s=p-i,n=p+e;u||(s=Math.max(s,0),n=Math.min(n,b.length-1));let a=(C.slidesGrid[s]||0)-(C.slidesGrid[0]||0);if(u&&p>=i?(s-=i,d||(a+=C.slidesGrid[0])):u&&p<i&&(s=-i,d&&(a+=C.slidesGrid[0])),Object.assign(C.virtual,{from:s,to:n,offset:a,slidesGrid:C.slidesGrid,slidesBefore:i,slidesAfter:e}),v===s&&y===n&&!o)return C.slidesGrid!==w&&a!==x&&C.slides.forEach(e=>{e.style[t]=a-Math.abs(C.cssOverflowAdjustment())+"px"}),C.updateProgress(),void E("virtualUpdate");if(C.params.virtual.renderExternal)return C.params.virtual.renderExternal.call(C,{offset:a,from:s,to:n,slides:function(){const t=[];for(let e=s;e<=n;e+=1)t.push(b[e]);return t}()}),void(C.params.virtual.renderExternalUpdate?f():E("virtualUpdate"));const _=[],S=[],T=e=>{let t=e;return e<0?t=b.length+e:t>=b.length&&(t-=b.length),t};if(o)C.slides.filter(e=>e.matches(`.${C.params.slideClass}, swiper-slide`)).forEach(e=>{e.remove()});else for(let e=v;e<=y;e+=1)if(e<s||e>n){const r=T(e);C.slides.filter(e=>e.matches(`.${C.params.slideClass}[data-swiper-slide-index="${r}"], swiper-slide[data-swiper-slide-index="${r}"]`)).forEach(e=>{e.remove()})}var d=u?-b.length:0,h=u?2*b.length:b.length;for(let e=d;e<h;e+=1)if(e>=s&&e<=n){const C=T(e);void 0===y||o?S.push(C):(e>y&&S.push(C),e<v&&_.push(C))}if(S.forEach(e=>{C.slidesEl.append(k(b[e],e))}),u)for(let e=_.length-1;0<=e;--e){const r=_[e];C.slidesEl.prepend(k(b[r],r))}else _.sort((e,t)=>t-e),_.forEach(e=>{C.slidesEl.prepend(k(b[e],e))});function f(){C.updateSlides(),C.updateProgress(),C.updateSlidesClasses(),E("virtualUpdate")}O(C.slidesEl,".swiper-slide, swiper-slide").forEach(e=>{e.style[t]=a-Math.abs(C.cssOverflowAdjustment())+"px"}),f()}}s("beforeInit",()=>{if(C.params.virtual.enabled){let e;if(void 0===C.passedParams.virtual.slides){const t=[...C.slidesEl.children].filter(e=>e.matches(`.${C.params.slideClass}, swiper-slide`));t&&t.length&&(C.virtual.slides=[...t],e=!0,t.forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t),(C.virtual.cache[t]=e).remove()}))}e||(C.virtual.slides=C.params.virtual.slides),C.classNames.push(C.params.containerModifierClass+"virtual"),C.params.watchSlidesProgress=!0,o(!(C.originalParams.watchSlidesProgress=!0),!0)}}),s("setTranslate",()=>{C.params.virtual.enabled&&(C.params.cssMode&&!C._immediateVirtual?(clearTimeout(t),t=setTimeout(()=>{o()},100)):o())}),s("init update resize",()=>{C.params.virtual.enabled&&C.params.cssMode&&$(C.wrapperEl,"--swiper-virtual-size",C.virtualSize+"px")}),Object.assign(C.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&C.virtual.slides.push(t[e]);else C.virtual.slides.push(t);o(!0)},prependSlide:function(s){const n=C.activeIndex;let e=n+1,a=1;if(Array.isArray(s)){for(let e=0;e<s.length;e+=1)s[e]&&C.virtual.slides.unshift(s[e]);e=n+s.length,a=s.length}else C.virtual.slides.unshift(s);if(C.params.virtual.cache){const s=C.virtual.cache,n={};Object.keys(s).forEach(e=>{const t=s[e],i=t.getAttribute("data-swiper-slide-index");i&&t.setAttribute("data-swiper-slide-index",parseInt(i,10)+a),n[parseInt(e,10)+a]=t}),C.virtual.cache=n}o(!0),C.slideTo(e,0)},removeSlide:function(i){if(null!=i){let t=C.activeIndex;if(Array.isArray(i))for(let e=i.length-1;0<=e;--e)C.params.virtual.cache&&(delete C.virtual.cache[i[e]],Object.keys(C.virtual.cache).forEach(e=>{i<e&&(C.virtual.cache[e-1]=C.virtual.cache[e],C.virtual.cache[e-1].setAttribute("data-swiper-slide-index",e-1),delete C.virtual.cache[e])})),C.virtual.slides.splice(i[e],1),i[e]<t&&--t,t=Math.max(t,0);else C.params.virtual.cache&&(delete C.virtual.cache[i],Object.keys(C.virtual.cache).forEach(e=>{i<e&&(C.virtual.cache[e-1]=C.virtual.cache[e],C.virtual.cache[e-1].setAttribute("data-swiper-slide-index",e-1),delete C.virtual.cache[e])})),C.virtual.slides.splice(i,1),i<t&&--t,t=Math.max(t,0);o(!0),C.slideTo(t,0)}},removeAllSlides:function(){C.virtual.slides=[],C.params.virtual.cache&&(C.virtual.cache={}),o(!0),C.slideTo(0,0)},update:o})},function(e){let{swiper:u,extendParams:t,on:i,emit:p}=e;const h=A(),f=I();function s(t){if(u.enabled){const i=u["rtlTranslate"];let e=t;e.originalEvent&&(e=e.originalEvent);const s=e.keyCode||e.charCode,n=u.params.keyboard.pageUpDown,a=n&&33===s,o=n&&34===s,r=37===s,l=39===s,c=38===s,d=40===s;if(!u.allowSlideNext&&(u.isHorizontal()&&l||u.isVertical()&&d||o))return!1;if(!u.allowSlidePrev&&(u.isHorizontal()&&r||u.isVertical()&&c||a))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||h.activeElement&&h.activeElement.nodeName&&("input"===h.activeElement.nodeName.toLowerCase()||"textarea"===h.activeElement.nodeName.toLowerCase()))){if(u.params.keyboard.onlyInViewport&&(a||o||r||l||c||d)){let t=!1;if(0<D(u.el,`.${u.params.slideClass}, swiper-slide`).length&&0===D(u.el,"."+u.params.slideActiveClass).length)return;const e=u.el,s=e.clientWidth,n=e.clientHeight,p=f.innerWidth,h=f.innerHeight,a=z(e);i&&(a.left-=e.scrollLeft);const o=[[a.left,a.top],[a.left+s,a.top],[a.left,a.top+n],[a.left+s,a.top+n]];for(let e=0;e<o.length;e+=1){const i=o[e];0<=i[0]&&i[0]<=p&&0<=i[1]&&i[1]<=h&&(0===i[0]&&0===i[1]||(t=!0))}if(!t)return}u.isHorizontal()?((a||o||r||l)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),((o||l)&&!i||(a||r)&&i)&&u.slideNext(),((a||r)&&!i||(o||l)&&i)&&u.slidePrev()):((a||o||c||d)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(o||d)&&u.slideNext(),(a||c)&&u.slidePrev()),p("keyPress",s)}}}function n(){u.keyboard.enabled||(h.addEventListener("keydown",s),u.keyboard.enabled=!0)}function a(){u.keyboard.enabled&&(h.removeEventListener("keydown",s),u.keyboard.enabled=!1)}u.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",()=>{u.params.keyboard.enabled&&n()}),i("destroy",()=>{u.keyboard.enabled&&a()}),Object.assign(u.keyboard,{enable:n,disable:a})},function(e){let{swiper:d,extendParams:t,on:i,emit:u}=e;const s=I();let p;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),d.mousewheel={enabled:!1};let h,n=v();const f=[];function a(){d.enabled&&(d.mouseEntered=!0)}function o(){d.enabled&&(d.mouseEntered=!1)}function m(e){return!(d.params.mousewheel.thresholdDelta&&e.delta<d.params.mousewheel.thresholdDelta)&&!(d.params.mousewheel.thresholdTime&&v()-n<d.params.mousewheel.thresholdTime)&&(6<=e.delta&&v()-n<60||(e.direction<0?d.isEnd&&!d.params.loop||d.animating||(d.slideNext(),u("scroll",e.raw)):d.isBeginning&&!d.params.loop||d.animating||(d.slidePrev(),u("scroll",e.raw)),n=(new s.Date).getTime(),0))}function r(s){let n=s,a=!0;if(d.enabled&&!s.target.closest("."+d.params.mousewheel.noMousewheelClass)){var o=d.params.mousewheel;d.params.cssMode&&n.preventDefault();let e=d.el;"container"!==d.params.mousewheel.eventsTarget&&(e=document.querySelector(d.params.mousewheel.eventsTarget));const c=e&&e.contains(n.target);if(!d.mouseEntered&&!c&&!o.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let t=0;var r=d.rtlTranslate?-1:1,l=function(e){let t=0,i=0,s=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=n,n=0),(s||n)&&e.deltaMode&&(1===e.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!t&&(t=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:n}}(n);if(o.forceToAxis)if(d.isHorizontal()){if(!(Math.abs(l.pixelX)>Math.abs(l.pixelY)))return!0;t=-l.pixelX*r}else{if(!(Math.abs(l.pixelY)>Math.abs(l.pixelX)))return!0;t=-l.pixelY}else t=Math.abs(l.pixelX)>Math.abs(l.pixelY)?-l.pixelX*r:-l.pixelY;if(0===t)return!0;o.invert&&(t=-t);let i=d.getTranslate()+t*o.sensitivity;if(i>=d.minTranslate()&&(i=d.minTranslate()),i<=d.maxTranslate()&&(i=d.maxTranslate()),a=!!d.params.loop||!(i===d.minTranslate()||i===d.maxTranslate()),a&&d.params.nested&&n.stopPropagation(),d.params.freeMode&&d.params.freeMode.enabled){const s={time:v(),delta:Math.abs(t),direction:Math.sign(t)},a=h&&s.time<h.time+500&&s.delta<=h.delta&&s.direction===h.direction;if(!a){h=void 0;let e=d.getTranslate()+t*o.sensitivity;const v=d.isBeginning,c=d.isEnd;if(e>=d.minTranslate()&&(e=d.minTranslate()),e<=d.maxTranslate()&&(e=d.maxTranslate()),d.setTransition(0),d.setTranslate(e),d.updateProgress(),d.updateActiveIndex(),d.updateSlidesClasses(),(!v&&d.isBeginning||!c&&d.isEnd)&&d.updateSlidesClasses(),d.params.loop&&d.loopFix({direction:s.direction<0?"next":"prev",byMousewheel:!0}),d.params.freeMode.sticky){clearTimeout(p),p=void 0,15<=f.length&&f.shift();const n=f.length?f[f.length-1]:void 0,a=f[0];if(f.push(s),n&&(s.delta>n.delta||s.direction!==n.direction))f.splice(0);else if(15<=f.length&&s.time-a.time<500&&1<=a.delta-s.delta&&s.delta<=6){const n=0<t?.8:.2;h=s,f.splice(0),p=C(()=>{d.slideToClosest(d.params.speed,!0,void 0,n)},0)}p=p||C(()=>{h=s,f.splice(0),d.slideToClosest(d.params.speed,!0,void 0,.5)},500)}if(a||u("scroll",n),d.params.autoplay&&d.params.autoplayDisableOnInteraction&&d.autoplay.stop(),o.releaseOnEdges&&(e===d.minTranslate()||e===d.maxTranslate()))return!0}}else{const n={time:v(),delta:Math.abs(t),direction:Math.sign(t),raw:s};2<=f.length&&f.shift();const a=f.length?f[f.length-1]:void 0;if(f.push(n),(!a||n.direction!==a.direction||n.delta>a.delta||n.time>a.time+150)&&m(n),function(e){var t=d.params.mousewheel;if(e.direction<0){if(d.isEnd&&!d.params.loop&&t.releaseOnEdges)return 1}else if(d.isBeginning&&!d.params.loop&&t.releaseOnEdges)return 1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}}function l(e){let t=d.el;"container"!==d.params.mousewheel.eventsTarget&&(t=document.querySelector(d.params.mousewheel.eventsTarget)),t[e]("mouseenter",a),t[e]("mouseleave",o),t[e]("wheel",r)}function c(){return d.params.cssMode?(d.wrapperEl.removeEventListener("wheel",r),!0):!d.mousewheel.enabled&&(l("addEventListener"),d.mousewheel.enabled=!0)}function g(){return d.params.cssMode?(d.wrapperEl.addEventListener(event,r),!0):!!d.mousewheel.enabled&&(l("removeEventListener"),!(d.mousewheel.enabled=!1))}i("init",()=>{!d.params.mousewheel.enabled&&d.params.cssMode&&g(),d.params.mousewheel.enabled&&c()}),i("destroy",()=>{d.params.cssMode&&c(),d.mousewheel.enabled&&g()}),Object.assign(d.mousewheel,{enable:c,disable:g})},function(e){let{swiper:n,extendParams:t,on:i,emit:a}=e;function o(e){let t;return e&&"string"==typeof e&&n.isElement&&(t=n.el.querySelector(e),t)?t:(e&&("string"==typeof e&&(t=[...document.querySelectorAll(e)]),n.params.uniqueNavElements&&"string"==typeof e&&t&&1<t.length&&1===n.el.querySelectorAll(e).length?t=n.el.querySelector(e):t&&1===t.length&&(t=t[0])),e&&!t?e:t)}function s(e,t){const i=n.params.navigation;(e=j(e)).forEach(e=>{e&&(e.classList[t?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=t),n.params.watchOverflow&&n.enabled&&e.classList[n.isLocked?"add":"remove"](i.lockClass))})}function r(){var{nextEl:e,prevEl:t}=n.navigation;if(n.params.loop)return s(t,!1),void s(e,!1);s(t,n.isBeginning&&!n.params.rewind),s(e,n.isEnd&&!n.params.rewind)}function l(e){e.preventDefault(),n.isBeginning&&!n.params.loop&&!n.params.rewind||(n.slidePrev(),a("navigationPrev"))}function c(e){e.preventDefault(),n.isEnd&&!n.params.loop&&!n.params.rewind||(n.slideNext(),a("navigationNext"))}function d(){const i=n.params.navigation;if(n.params.navigation=q(n,n.originalParams.navigation,n.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),i.nextEl||i.prevEl){let e=o(i.nextEl),t=o(i.prevEl);Object.assign(n.navigation,{nextEl:e,prevEl:t}),e=j(e),t=j(t);const s=(e,t)=>{e&&e.addEventListener("click","next"===t?c:l),!n.enabled&&e&&e.classList.add(...i.lockClass.split(" "))};e.forEach(e=>s(e,"next")),t.forEach(e=>s(e,"prev"))}}function u(){let{nextEl:e,prevEl:t}=n.navigation;e=j(e),t=j(t);const i=(e,t)=>{e.removeEventListener("click","next"===t?c:l),e.classList.remove(...n.params.navigation.disabledClass.split(" "))};e.forEach(e=>i(e,"next")),t.forEach(e=>i(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),n.navigation={nextEl:null,prevEl:null},i("init",()=>{!1===n.params.navigation.enabled?p():(d(),r())}),i("toEdge fromEdge lock unlock",()=>{r()}),i("destroy",()=>{u()}),i("enable disable",()=>{var{nextEl:e,prevEl:t}=n.navigation,e=j(e),t=j(t);n.enabled?r():[...e,...t].filter(e=>!!e).forEach(e=>e.classList.add(n.params.navigation.lockClass))}),i("click",(e,t)=>{let{nextEl:i,prevEl:s}=n.navigation;i=j(i),s=j(s);t=t.target;if(n.params.navigation.hideOnClick&&!s.includes(t)&&!i.includes(t)&&(!(n.pagination&&n.params.pagination&&n.params.pagination.clickable)||n.pagination.el!==t&&!n.pagination.el.contains(t))){let e;i.length?e=i[0].classList.contains(n.params.navigation.hiddenClass):s.length&&(e=s[0].classList.contains(n.params.navigation.hiddenClass)),a(!0===e?"navigationShow":"navigationHide"),[...i,...s].filter(e=>!!e).forEach(e=>e.classList.toggle(n.params.navigation.hiddenClass))}});const p=()=>{n.el.classList.add(...n.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(n.navigation,{enable:()=>{n.el.classList.remove(...n.params.navigation.navigationDisabledClass.split(" ")),d(),r()},disable:p,update:r,init:d,destroy:u})},function(e){let{swiper:c,extendParams:t,on:i,emit:d}=e;e="swiper-pagination";let u;t({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:e=>e,formatFractionTotal:e=>e,bulletClass:e+"-bullet",bulletActiveClass:e+"-bullet-active",modifierClass:e+"-",currentClass:e+"-current",totalClass:e+"-total",hiddenClass:e+"-hidden",progressbarFillClass:e+"-progressbar-fill",progressbarOppositeClass:e+"-progressbar-opposite",clickableClass:e+"-clickable",lockClass:e+"-lock",horizontalClass:e+"-horizontal",verticalClass:e+"-vertical",paginationDisabledClass:e+"-disabled"}}),c.pagination={el:null,bullets:[]};let p=0;function a(){return!c.params.pagination.el||!c.pagination.el||Array.isArray(c.pagination.el)&&0===c.pagination.el.length}function h(e,t){var i=c.params.pagination["bulletActiveClass"];(e=e&&e[("prev"===t?"previous":"next")+"ElementSibling"])&&(e.classList.add(i+"-"+t),(e=e[("prev"===t?"previous":"next")+"ElementSibling"])&&e.classList.add(i+`-${t}-`+t))}function s(e){var t=e.target.closest(W(c.params.pagination.bulletClass));t&&(e.preventDefault(),t=k(t)*c.params.slidesPerGroup,c.params.loop?c.realIndex!==t&&c.slideToLoop(t):c.slideTo(t))}function n(){const o=c.rtl,r=c.params.pagination;if(!a()){let a,e,t=c.pagination.el;t=j(t);const i=(c.virtual&&c.params.virtual.enabled?c.virtual:c).slides.length,l=c.params.loop?Math.ceil(i/c.params.slidesPerGroup):c.snapGrid.length;if(c.params.loop?(e=c.previousRealIndex||0,a=1<c.params.slidesPerGroup?Math.floor(c.realIndex/c.params.slidesPerGroup):c.realIndex):void 0!==c.snapIndex?(a=c.snapIndex,e=c.previousSnapIndex):(e=c.previousIndex||0,a=c.activeIndex||0),"bullets"===r.type&&c.pagination.bullets&&0<c.pagination.bullets.length){const d=c.pagination.bullets;let i,s,n;if(r.dynamicBullets&&(u=N(d[0],c.isHorizontal()?"width":"height",!0),t.forEach(e=>{e.style[c.isHorizontal()?"width":"height"]=u*(r.dynamicMainBullets+4)+"px"}),1<r.dynamicMainBullets&&void 0!==e&&(p+=a-(e||0),p>r.dynamicMainBullets-1?p=r.dynamicMainBullets-1:p<0&&(p=0)),i=Math.max(a-p,0),s=i+(Math.min(d.length,r.dynamicMainBullets)-1),n=(s+i)/2),d.forEach(e=>{var t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>""+r.bulletActiveClass+e)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),1<t.length)d.forEach(e=>{var t=k(e);t===a?e.classList.add(...r.bulletActiveClass.split(" ")):c.isElement&&e.setAttribute("part","bullet"),r.dynamicBullets&&(t>=i&&t<=s&&e.classList.add(...(r.bulletActiveClass+"-main").split(" ")),t===i&&h(e,"prev"),t===s&&h(e,"next"))});else{const o=d[a];if(o&&o.classList.add(...r.bulletActiveClass.split(" ")),c.isElement&&d.forEach((e,t)=>{e.setAttribute("part",t===a?"bullet-active":"bullet")}),r.dynamicBullets){const o=d[i],c=d[s];for(let e=i;e<=s;e+=1)d[e]&&d[e].classList.add(...(r.bulletActiveClass+"-main").split(" "));h(o,"prev"),h(c,"next")}}if(r.dynamicBullets){const e=Math.min(d.length,r.dynamicMainBullets+4),t=(u*e-u)/2-n*u,p=o?"right":"left";d.forEach(e=>{e.style[c.isHorizontal()?p:"top"]=t+"px"})}}t.forEach((e,s)=>{if("fraction"===r.type&&(e.querySelectorAll(W(r.currentClass)).forEach(e=>{e.textContent=r.formatFractionCurrent(a+1)}),e.querySelectorAll(W(r.totalClass)).forEach(e=>{e.textContent=r.formatFractionTotal(l)})),"progressbar"===r.type){var n=r.progressbarOpposite?c.isHorizontal()?"vertical":"horizontal":c.isHorizontal()?"horizontal":"vertical";const s=(a+1)/l;let t=1,i=1;"horizontal"==n?t=s:i=s,e.querySelectorAll(W(r.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${t}) scaleY(${i})`,e.style.transitionDuration=c.params.speed+"ms"})}"custom"===r.type&&r.renderCustom?(e.innerHTML=r.renderCustom(c,a+1,l),0===s&&d("paginationRender",e)):(0===s&&d("paginationRender",e),d("paginationUpdate",e)),c.params.watchOverflow&&c.enabled&&e.classList[c.isLocked?"add":"remove"](r.lockClass)})}}function o(){const s=c.params.pagination;if(!a()){var n=c.virtual&&c.params.virtual.enabled?c.virtual.slides.length:c.grid&&1<c.params.grid.rows?c.slides.length/Math.ceil(c.params.grid.rows):c.slides.length;let e=c.pagination.el;e=j(e);let i="";if("bullets"===s.type){let t=c.params.loop?Math.ceil(n/c.params.slidesPerGroup):c.snapGrid.length;c.params.freeMode&&c.params.freeMode.enabled&&t>n&&(t=n);for(let e=0;e<t;e+=1)s.renderBullet?i+=s.renderBullet.call(c,e,s.bulletClass):i+=`<${s.bulletElement} ${c.isElement?'part="bullet"':""} class="${s.bulletClass}"></${s.bulletElement}>`}"fraction"===s.type&&(i=s.renderFraction?s.renderFraction.call(c,s.currentClass,s.totalClass):`<span class="${s.currentClass}"></span> / <span class="${s.totalClass}"></span>`),"progressbar"===s.type&&(i=s.renderProgressbar?s.renderProgressbar.call(c,s.progressbarFillClass):`<span class="${s.progressbarFillClass}"></span>`),c.pagination.bullets=[],e.forEach(e=>{"custom"!==s.type&&(e.innerHTML=i||""),"bullets"===s.type&&c.pagination.bullets.push(...e.querySelectorAll(W(s.bulletClass)))}),"custom"!==s.type&&d("paginationRender",e[0])}}function r(){c.params.pagination=q(c,c.originalParams.pagination,c.params.pagination,{el:"swiper-pagination"});const t=c.params.pagination;if(t.el){let e;"string"==typeof t.el&&c.isElement&&(e=c.el.querySelector(t.el)),e||"string"!=typeof t.el||(e=[...document.querySelectorAll(t.el)]),e=e||t.el,e&&0!==e.length&&(c.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(e)&&1<e.length&&(e=[...c.el.querySelectorAll(t.el)],1<e.length&&(e=e.filter(e=>D(e,".swiper")[0]===c.el)[0])),Array.isArray(e)&&1===e.length&&(e=e[0]),Object.assign(c.pagination,{el:e}),e=j(e),e.forEach(e=>{"bullets"===t.type&&t.clickable&&e.classList.add(...(t.clickableClass||"").split(" ")),e.classList.add(t.modifierClass+t.type),e.classList.add(c.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(e.classList.add(""+t.modifierClass+t.type+"-dynamic"),p=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&e.classList.add(t.progressbarOppositeClass),t.clickable&&e.addEventListener("click",s),c.enabled||e.classList.add(t.lockClass)}))}}function l(){const t=c.params.pagination;if(!a()){let e=c.pagination.el;e&&(e=j(e),e.forEach(e=>{e.classList.remove(t.hiddenClass),e.classList.remove(t.modifierClass+t.type),e.classList.remove(c.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(e.classList.remove(...(t.clickableClass||"").split(" ")),e.removeEventListener("click",s))})),c.pagination.bullets&&c.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}}i("changeDirection",()=>{if(c.pagination&&c.pagination.el){const t=c.params.pagination;let e=c.pagination["el"];e=j(e),e.forEach(e=>{e.classList.remove(t.horizontalClass,t.verticalClass),e.classList.add(c.isHorizontal()?t.horizontalClass:t.verticalClass)})}}),i("init",()=>{!1===c.params.pagination.enabled?f():(r(),o(),n())}),i("activeIndexChange",()=>{void 0===c.snapIndex&&n()}),i("snapIndexChange",()=>{n()}),i("snapGridLengthChange",()=>{o(),n()}),i("destroy",()=>{l()}),i("enable disable",()=>{let e=c.pagination["el"];e&&(e=j(e),e.forEach(e=>e.classList[c.enabled?"remove":"add"](c.params.pagination.lockClass)))}),i("lock unlock",()=>{n()}),i("click",(e,t)=>{const i=t.target,s=j(c.pagination.el);if(c.params.pagination.el&&c.params.pagination.hideOnClick&&s&&0<s.length&&!i.classList.contains(c.params.pagination.bulletClass)&&(!c.navigation||!(c.navigation.nextEl&&i===c.navigation.nextEl||c.navigation.prevEl&&i===c.navigation.prevEl))){const e=s[0].classList.contains(c.params.pagination.hiddenClass);d(!0===e?"paginationShow":"paginationHide"),s.forEach(e=>e.classList.toggle(c.params.pagination.hiddenClass))}});const f=()=>{c.el.classList.add(c.params.pagination.paginationDisabledClass);let e=c.pagination["el"];e&&(e=j(e),e.forEach(e=>e.classList.add(c.params.pagination.paginationDisabledClass))),l()};Object.assign(c.pagination,{enable:()=>{c.el.classList.remove(c.params.pagination.paginationDisabledClass);let e=c.pagination["el"];e&&(e=j(e),e.forEach(e=>e.classList.remove(c.params.pagination.paginationDisabledClass))),r(),o(),n()},disable:f,render:o,update:n,init:r,destroy:l})},function(e){let{swiper:l,extendParams:t,on:i,emit:o}=e;const r=A();let c,d,u,s,p=!1,h=null,f=null;function n(){if(l.params.scrollbar.el&&l.scrollbar.el){const{scrollbar:i,rtlTranslate:s}=l,{dragEl:n,el:a}=i,o=l.params.scrollbar,r=l.params.loop?l.progressLoop:l.progress;let e=d,t=(u-d)*r;s?(t=-t,0<t?(e=d-t,t=0):-t+d>u&&(e=u+t)):t<0?(e=d+t,t=0):t+d>u&&(e=u-t),l.isHorizontal()?(n.style.transform=`translate3d(${t}px, 0, 0)`,n.style.width=e+"px"):(n.style.transform=`translate3d(0px, ${t}px, 0)`,n.style.height=e+"px"),o.hide&&(clearTimeout(h),a.style.opacity=1,h=setTimeout(()=>{a.style.opacity=0,a.style.transitionDuration="400ms"},1e3))}}function a(){if(l.params.scrollbar.el&&l.scrollbar.el){const e=l["scrollbar"],{dragEl:t,el:i}=e;t.style.width="",t.style.height="",u=l.isHorizontal()?i.offsetWidth:i.offsetHeight,s=l.size/(l.virtualSize+l.params.slidesOffsetBefore-(l.params.centeredSlides?l.snapGrid[0]:0)),d="auto"===l.params.scrollbar.dragSize?u*s:parseInt(l.params.scrollbar.dragSize,10),l.isHorizontal()?t.style.width=d+"px":t.style.height=d+"px",i.style.display=1<=s?"none":"",l.params.scrollbar.hide&&(i.style.opacity=0),l.params.watchOverflow&&l.enabled&&e.el.classList[l.isLocked?"add":"remove"](l.params.scrollbar.lockClass)}}function m(e){return l.isHorizontal()?e.clientX:e.clientY}function g(e){var{scrollbar:t,rtlTranslate:i}=l,t=t["el"];let s;s=(m(e)-z(t)[l.isHorizontal()?"left":"top"]-(null!==c?c:d/2))/(u-d),s=Math.max(Math.min(s,1),0),i&&(s=1-s);i=l.minTranslate()+(l.maxTranslate()-l.minTranslate())*s;l.updateProgress(i),l.setTranslate(i),l.updateActiveIndex(),l.updateSlidesClasses()}function v(e){const t=l.params.scrollbar,{scrollbar:i,wrapperEl:s}=l,{el:n,dragEl:a}=i;p=!0,c=e.target===a?m(e)-e.target.getBoundingClientRect()[l.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.style.transitionDuration="100ms",a.style.transitionDuration="100ms",g(e),clearTimeout(f),n.style.transitionDuration="0ms",t.hide&&(n.style.opacity=1),l.params.cssMode&&(l.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",e)}function y(e){const{scrollbar:t,wrapperEl:i}=l,{el:s,dragEl:n}=t;p&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,g(e),i.style.transitionDuration="0ms",s.style.transitionDuration="0ms",n.style.transitionDuration="0ms",o("scrollbarDragMove",e))}function b(e){const t=l.params.scrollbar,{scrollbar:i,wrapperEl:s}=l,n=i["el"];p&&(p=!1,l.params.cssMode&&(l.wrapperEl.style["scroll-snap-type"]="",s.style.transitionDuration=""),t.hide&&(clearTimeout(f),f=C(()=>{n.style.opacity=0,n.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",e),t.snapOnRelease&&l.slideToClosest())}function w(e){var{scrollbar:t,params:i}=l,t=t.el;if(t){const s=t,n=!!i.passiveListeners&&{passive:!1,capture:!1},a=!!i.passiveListeners&&{passive:!0,capture:!1};s&&(e="on"===e?"addEventListener":"removeEventListener",s[e]("pointerdown",v,n),r[e]("pointermove",y,n),r[e]("pointerup",b,a))}}function x(){const{scrollbar:i,el:s}=l;l.params.scrollbar=q(l,l.originalParams.scrollbar,l.params.scrollbar,{el:"swiper-scrollbar"});var n=l.params.scrollbar;if(n.el){let e,t;if("string"==typeof n.el&&l.isElement&&(e=l.el.querySelector(n.el)),e||"string"!=typeof n.el)e=e||n.el;else if(e=r.querySelectorAll(n.el),!e.length)return;l.params.uniqueNavElements&&"string"==typeof n.el&&1<e.length&&1===s.querySelectorAll(n.el).length&&(e=s.querySelector(n.el)),0<e.length&&(e=e[0]),e.classList.add(l.isHorizontal()?n.horizontalClass:n.verticalClass),e&&(t=e.querySelector(W(l.params.scrollbar.dragClass)),t||(t=L("div",l.params.scrollbar.dragClass),e.append(t))),Object.assign(i,{el:e,dragEl:t}),n.draggable&&l.params.scrollbar.el&&l.scrollbar.el&&w("on"),e&&e.classList[l.enabled?"remove":"add"](...T(l.params.scrollbar.lockClass))}}function _(){const e=l.params.scrollbar,t=l.scrollbar.el;t&&t.classList.remove(...T(l.isHorizontal()?e.horizontalClass:e.verticalClass)),l.params.scrollbar.el&&l.scrollbar.el&&w("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),l.scrollbar={el:null,dragEl:null},i("changeDirection",()=>{if(l.scrollbar&&l.scrollbar.el){const t=l.params.scrollbar;let e=l.scrollbar["el"];e=j(e),e.forEach(e=>{e.classList.remove(t.horizontalClass,t.verticalClass),e.classList.add(l.isHorizontal()?t.horizontalClass:t.verticalClass)})}}),i("init",()=>{!1===l.params.scrollbar.enabled?S():(x(),a(),n())}),i("update resize observerUpdate lock unlock changeDirection",()=>{a()}),i("setTranslate",()=>{n()}),i("setTransition",(e,t)=>{t=t,l.params.scrollbar.el&&l.scrollbar.el&&(l.scrollbar.dragEl.style.transitionDuration=t+"ms")}),i("enable disable",()=>{const e=l.scrollbar["el"];e&&e.classList[l.enabled?"remove":"add"](...T(l.params.scrollbar.lockClass))}),i("destroy",()=>{_()});const S=()=>{l.el.classList.add(...T(l.params.scrollbar.scrollbarDisabledClass)),l.scrollbar.el&&l.scrollbar.el.classList.add(...T(l.params.scrollbar.scrollbarDisabledClass)),_()};Object.assign(l.scrollbar,{enable:()=>{l.el.classList.remove(...T(l.params.scrollbar.scrollbarDisabledClass)),l.scrollbar.el&&l.scrollbar.el.classList.remove(...T(l.params.scrollbar.scrollbarDisabledClass)),x(),a(),n()},disable:S,updateSize:a,setTranslate:n,init:x,destroy:_})},function(e){let{swiper:d,extendParams:t,on:i}=e;t({parallax:{enabled:!1}});const a="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",o=(e,t)=>{var i=d["rtl"],s=i?-1:1,n=e.getAttribute("data-swiper-parallax")||"0";let a=e.getAttribute("data-swiper-parallax-x"),o=e.getAttribute("data-swiper-parallax-y");var r=e.getAttribute("data-swiper-parallax-scale"),l=e.getAttribute("data-swiper-parallax-opacity"),i=e.getAttribute("data-swiper-parallax-rotate");if(a||o?(a=a||"0",o=o||"0"):d.isHorizontal()?(a=n,o="0"):(o=n,a="0"),a=0<=a.indexOf("%")?parseInt(a,10)*t*s+"%":a*t*s+"px",o=0<=o.indexOf("%")?parseInt(o,10)*t+"%":o*t+"px",null!=l){const d=l-(l-1)*(1-Math.abs(t));e.style.opacity=d}let c=`translate3d(${a}, ${o}, 0px)`;null!=r&&(c+=` scale(${r-(r-1)*(1-Math.abs(t))})`),i&&null!=i&&(c+=` rotate(${i*t*-1}deg)`),e.style.transform=c},s=()=>{const{el:e,slides:t,progress:s,snapGrid:n}=d,i=O(e,a);d.isElement&&i.push(...O(d.hostEl,a)),i.forEach(e=>{o(e,s)}),t.forEach((e,t)=>{let i=e.progress;1<d.params.slidesPerGroup&&"auto"!==d.params.slidesPerView&&(i+=Math.ceil(t/2)-s*(n.length-1)),i=Math.min(Math.max(i,-1),1),e.querySelectorAll(a+", [data-swiper-parallax-rotate]").forEach(e=>{o(e,i)})})};i("beforeInit",()=>{d.params.parallax.enabled&&(d.params.watchSlidesProgress=!0,d.originalParams.watchSlidesProgress=!0)}),i("init",()=>{d.params.parallax.enabled&&s()}),i("setTranslate",()=>{d.params.parallax.enabled&&s()}),i("setTransition",(e,t)=>{d.params.parallax.enabled&&function(i){void 0===i&&(i=d.params.speed);const{el:e,hostEl:t}=d,s=[...e.querySelectorAll(a)];d.isElement&&s.push(...t.querySelectorAll(a)),s.forEach(e=>{let t=parseInt(e.getAttribute("data-swiper-parallax-duration"),10)||i;0===i&&(t=0),e.style.transitionDuration=t+"ms"})}(t)})},function(e){let{swiper:S,extendParams:t,on:i,emit:s}=e;const T=I();t({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),S.zoom={enabled:!1};let n,a,C=1,o=!1;const r=[],E={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},k={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:{}},l={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let c,d=1;function u(){if(r.length<2)return 1;var e=r[0].pageX,t=r[0].pageY,i=r[1].pageX,s=r[1].pageY;return Math.sqrt((i-e)**2+(s-t)**2)}function $(){const e=S.params.zoom,t=E.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&E.imageEl&&E.imageEl.naturalWidth){const e=E.imageEl.naturalWidth/E.imageEl.offsetWidth;return Math.min(e,t)}return t}function p(t){var e=S.isElement?"swiper-slide":"."+S.params.slideClass;return t.target.matches(e)||0<S.slides.filter(e=>e.contains(t.target)).length}function h(t){if("mouse"===t.pointerType&&r.splice(0,r.length),p(t)){var i=S.params.zoom;if(n=!1,a=!1,r.push(t),!(r.length<2)){if(n=!0,E.scaleStart=u(),!E.slideEl){E.slideEl=t.target.closest(`.${S.params.slideClass}, swiper-slide`),E.slideEl||(E.slideEl=S.slides[S.activeIndex]);let e=E.slideEl.querySelector("."+i.containerClass);if(e=e&&e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0],E.imageEl=e,E.imageWrapEl=e?D(E.imageEl,"."+i.containerClass)[0]:void 0,!E.imageWrapEl)return void(E.imageEl=void 0);E.maxRatio=$()}if(E.imageEl){const[t,S]=function(){if(r.length<2)return{x:null,y:null};var e=E.imageEl.getBoundingClientRect();return[(r[0].pageX+(r[1].pageX-r[0].pageX)/2-e.x-T.scrollX)/C,(r[0].pageY+(r[1].pageY-r[0].pageY)/2-e.y-T.scrollY)/C]}();E.originX=t,E.originY=S,E.imageEl.style.transitionDuration="0ms"}o=!0}}}function f(t){if(p(t)){const e=S.params.zoom,i=S.zoom,s=r.findIndex(e=>e.pointerId===t.pointerId);0<=s&&(r[s]=t),r.length<2||(a=!0,E.scaleMove=u(),E.imageEl&&(i.scale=E.scaleMove/E.scaleStart*C,i.scale>E.maxRatio&&(i.scale=E.maxRatio-1+(i.scale-E.maxRatio+1)**.5),i.scale<e.minRatio&&(i.scale=e.minRatio+1-(e.minRatio-i.scale+1)**.5),E.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`))}}function m(t){if(p(t)&&("mouse"!==t.pointerType||"pointerout"!==t.type)){const e=S.params.zoom,i=S.zoom,s=r.findIndex(e=>e.pointerId===t.pointerId);0<=s&&r.splice(s,1),n&&a&&(n=!1,a=!1,E.imageEl&&(i.scale=Math.max(Math.min(i.scale,E.maxRatio),e.minRatio),E.imageEl.style.transitionDuration=S.params.speed+"ms",E.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`,C=i.scale,o=!1,1<i.scale&&E.slideEl?E.slideEl.classList.add(""+e.zoomedSlideClass):i.scale<=1&&E.slideEl&&E.slideEl.classList.remove(""+e.zoomedSlideClass),1===i.scale&&(E.originX=0,E.originY=0,E.slideEl=void 0)))}}function g(){S.touchEventsData.preventTouchMoveFromPointerMove=!1}function v(e){if(p(e)&&(t=e,n="."+S.params.zoom.containerClass,t.target.matches(n)||0<[...S.hostEl.querySelectorAll(n)].filter(e=>e.contains(t.target)).length)){var t,i=S.zoom;if(E.imageEl&&k.isTouched&&E.slideEl){k.isMoved||(k.width=E.imageEl.offsetWidth||E.imageEl.clientWidth,k.height=E.imageEl.offsetHeight||E.imageEl.clientHeight,k.startX=M(E.imageWrapEl,"x")||0,k.startY=M(E.imageWrapEl,"y")||0,E.slideWidth=E.slideEl.offsetWidth,E.slideHeight=E.slideEl.offsetHeight,E.imageWrapEl.style.transitionDuration="0ms");var s=k.width*i.scale,n=k.height*i.scale;if(s<E.slideWidth&&n<E.slideHeight)g();else{if(k.minX=Math.min(E.slideWidth/2-s/2,0),k.maxX=-k.minX,k.minY=Math.min(E.slideHeight/2-n/2,0),k.maxY=-k.minY,k.touchesCurrent.x=(0<r.length?r[0]:e).pageX,k.touchesCurrent.y=(0<r.length?r[0]:e).pageY,5<Math.max(Math.abs(k.touchesCurrent.x-k.touchesStart.x),Math.abs(k.touchesCurrent.y-k.touchesStart.y))&&(S.allowClick=!1),!k.isMoved&&!o){if(S.isHorizontal()&&(Math.floor(k.minX)===Math.floor(k.startX)&&k.touchesCurrent.x<k.touchesStart.x||Math.floor(k.maxX)===Math.floor(k.startX)&&k.touchesCurrent.x>k.touchesStart.x))return k.isTouched=!1,void g();if(!S.isHorizontal()&&(Math.floor(k.minY)===Math.floor(k.startY)&&k.touchesCurrent.y<k.touchesStart.y||Math.floor(k.maxY)===Math.floor(k.startY)&&k.touchesCurrent.y>k.touchesStart.y))return k.isTouched=!1,void g()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(c),S.touchEventsData.preventTouchMoveFromPointerMove=!0,c=setTimeout(()=>{g()}),k.isMoved=!0;var n=(i.scale-C)/(E.maxRatio-S.params.zoom.minRatio),{originX:e,originY:i}=E;k.currentX=k.touchesCurrent.x-k.touchesStart.x+k.startX+n*(k.width-2*e),k.currentY=k.touchesCurrent.y-k.touchesStart.y+k.startY+n*(k.height-2*i),k.currentX<k.minX&&(k.currentX=k.minX+1-(k.minX-k.currentX+1)**.8),k.currentX>k.maxX&&(k.currentX=k.maxX-1+(k.currentX-k.maxX+1)**.8),k.currentY<k.minY&&(k.currentY=k.minY+1-(k.minY-k.currentY+1)**.8),k.currentY>k.maxY&&(k.currentY=k.maxY-1+(k.currentY-k.maxY+1)**.8),l.prevPositionX||(l.prevPositionX=k.touchesCurrent.x),l.prevPositionY||(l.prevPositionY=k.touchesCurrent.y),l.prevTime||(l.prevTime=Date.now()),l.x=(k.touchesCurrent.x-l.prevPositionX)/(Date.now()-l.prevTime)/2,l.y=(k.touchesCurrent.y-l.prevPositionY)/(Date.now()-l.prevTime)/2,Math.abs(k.touchesCurrent.x-l.prevPositionX)<2&&(l.x=0),Math.abs(k.touchesCurrent.y-l.prevPositionY)<2&&(l.y=0),l.prevPositionX=k.touchesCurrent.x,l.prevPositionY=k.touchesCurrent.y,l.prevTime=Date.now(),E.imageWrapEl.style.transform=`translate3d(${k.currentX}px, ${k.currentY}px,0)`}}}}function y(){const e=S.zoom;E.slideEl&&S.activeIndex!==S.slides.indexOf(E.slideEl)&&(E.imageEl&&(E.imageEl.style.transform="translate3d(0,0,0) scale(1)"),E.imageWrapEl&&(E.imageWrapEl.style.transform="translate3d(0,0,0)"),E.slideEl.classList.remove(""+S.params.zoom.zoomedSlideClass),e.scale=1,C=1,E.slideEl=void 0,E.imageEl=void 0,E.imageWrapEl=void 0,E.originX=0,E.originY=0)}function b(y){const b=S.zoom,w=S.params.zoom;if(!E.slideEl){y&&y.target&&(E.slideEl=y.target.closest(`.${S.params.slideClass}, swiper-slide`)),E.slideEl||(S.params.virtual&&S.params.virtual.enabled&&S.virtual?E.slideEl=O(S.slidesEl,"."+S.params.slideActiveClass)[0]:E.slideEl=S.slides[S.activeIndex]);let e=E.slideEl.querySelector("."+w.containerClass);e=e&&e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0],E.imageEl=e,E.imageWrapEl=e?D(E.imageEl,"."+w.containerClass)[0]:void 0}if(E.imageEl&&E.imageWrapEl){let e,t,i,s,n,a,o,r,l,c,d,u,p,h,f,m,g,v;S.params.cssMode&&(S.wrapperEl.style.overflow="hidden",S.wrapperEl.style.touchAction="none"),E.slideEl.classList.add(""+w.zoomedSlideClass),t=void 0===k.touchesStart.x&&y?(e=y.pageX,y.pageY):(e=k.touchesStart.x,k.touchesStart.y);var x="number"==typeof y?y:null;1===C&&x&&(e=void 0,t=void 0);var _=$();b.scale=x||_,C=x||_,!y||1===C&&x?(o=0,r=0):(g=E.slideEl.offsetWidth,v=E.slideEl.offsetHeight,i=z(E.slideEl).left+T.scrollX,s=z(E.slideEl).top+T.scrollY,n=i+g/2-e,a=s+v/2-t,l=E.imageEl.offsetWidth||E.imageEl.clientWidth,c=E.imageEl.offsetHeight||E.imageEl.clientHeight,d=l*b.scale,u=c*b.scale,f=-(p=Math.min(g/2-d/2,0)),m=-(h=Math.min(v/2-u/2,0)),o=n*b.scale,r=a*b.scale,o<p&&(o=p),o>f&&(o=f),r<h&&(r=h),r>m&&(r=m)),x&&1===b.scale&&(E.originX=0,E.originY=0),E.imageWrapEl.style.transitionDuration="300ms",E.imageWrapEl.style.transform=`translate3d(${o}px, ${r}px,0)`,E.imageEl.style.transitionDuration="300ms",E.imageEl.style.transform=`translate3d(0,0,0) scale(${b.scale})`}}function w(){const e=S.zoom,t=S.params.zoom;if(!E.slideEl){S.params.virtual&&S.params.virtual.enabled&&S.virtual?E.slideEl=O(S.slidesEl,"."+S.params.slideActiveClass)[0]:E.slideEl=S.slides[S.activeIndex];let e=E.slideEl.querySelector("."+t.containerClass);e=e&&e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0],E.imageEl=e,E.imageWrapEl=e?D(E.imageEl,"."+t.containerClass)[0]:void 0}E.imageEl&&E.imageWrapEl&&(S.params.cssMode&&(S.wrapperEl.style.overflow="",S.wrapperEl.style.touchAction=""),e.scale=1,C=1,E.imageWrapEl.style.transitionDuration="300ms",E.imageWrapEl.style.transform="translate3d(0,0,0)",E.imageEl.style.transitionDuration="300ms",E.imageEl.style.transform="translate3d(0,0,0) scale(1)",E.slideEl.classList.remove(""+t.zoomedSlideClass),E.slideEl=void 0,E.originX=0,E.originY=0)}function x(e){var t=S.zoom;t.scale&&1!==t.scale?w():b(e)}function _(){return{passiveListener:!!S.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!S.params.passiveListeners||{passive:!1,capture:!0}}}function A(){const e=S.zoom;if(!e.enabled){e.enabled=!0;const{passiveListener:t,activeListenerWithCapture:i}=_();S.wrapperEl.addEventListener("pointerdown",h,t),S.wrapperEl.addEventListener("pointermove",f,i),["pointerup","pointercancel","pointerout"].forEach(e=>{S.wrapperEl.addEventListener(e,m,t)}),S.wrapperEl.addEventListener("pointermove",v,i)}}function P(){const e=S.zoom;if(e.enabled){e.enabled=!1;const{passiveListener:t,activeListenerWithCapture:i}=_();S.wrapperEl.removeEventListener("pointerdown",h,t),S.wrapperEl.removeEventListener("pointermove",f,i),["pointerup","pointercancel","pointerout"].forEach(e=>{S.wrapperEl.removeEventListener(e,m,t)}),S.wrapperEl.removeEventListener("pointermove",v,i)}}Object.defineProperty(S.zoom,"scale",{get:()=>d,set(e){var t,i;d!==e&&(t=E.imageEl,i=E.slideEl,s("zoomChange",e,t,i)),d=e}}),i("init",()=>{S.params.zoom.enabled&&A()}),i("destroy",()=>{P()}),i("touchStart",(e,t)=>{var i;S.zoom.enabled&&(i=t,t=S.device,E.imageEl&&(k.isTouched||(t.android&&i.cancelable&&i.preventDefault(),k.isTouched=!0,i=0<r.length?r[0]:i,k.touchesStart.x=i.pageX,k.touchesStart.y=i.pageY)))}),i("touchEnd",(e,t)=>{S.zoom.enabled&&function(){var i=S.zoom;if(E.imageEl){if(!k.isTouched||!k.isMoved)return k.isTouched=!1,k.isMoved=!1;k.isTouched=!1,k.isMoved=!1;let e=300,t=300;var s=l.x*e,n=k.currentX+s,a=l.y*t,s=k.currentY+a;0!==l.x&&(e=Math.abs((n-k.currentX)/l.x)),0!==l.y&&(t=Math.abs((s-k.currentY)/l.y));a=Math.max(e,t);k.currentX=n,k.currentY=s;s=k.width*i.scale,i=k.height*i.scale;k.minX=Math.min(E.slideWidth/2-s/2,0),k.maxX=-k.minX,k.minY=Math.min(E.slideHeight/2-i/2,0),k.maxY=-k.minY,k.currentX=Math.max(Math.min(k.currentX,k.maxX),k.minX),k.currentY=Math.max(Math.min(k.currentY,k.maxY),k.minY),E.imageWrapEl.style.transitionDuration=a+"ms",E.imageWrapEl.style.transform=`translate3d(${k.currentX}px, ${k.currentY}px,0)`}}()}),i("doubleTap",(e,t)=>{!S.animating&&S.params.zoom.enabled&&S.zoom.enabled&&S.params.zoom.toggle&&x(t)}),i("transitionEnd",()=>{S.zoom.enabled&&S.params.zoom.enabled&&y()}),i("slideChange",()=>{S.zoom.enabled&&S.params.zoom.enabled&&S.params.cssMode&&y()}),Object.assign(S.zoom,{enable:A,disable:P,in:b,out:w,toggle:x})},function(e){let{swiper:r,extendParams:t,on:i}=e;function l(e,t){const i=function(){let i,s,n;return(e,t)=>{for(s=-1,i=e.length;1<i-s;)n=i+s>>1,e[n]<=t?s=n:i=n;return i}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function s(){r.controller.control&&r.controller.spline&&(r.controller.spline=void 0,delete r.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),r.controller={control:void 0},i("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof r.params.controller.control||r.params.controller.control instanceof HTMLElement)){const t=document.querySelector(r.params.controller.control);if(t&&t.swiper)r.controller.control=t.swiper;else if(t){const i=e=>{r.controller.control=e.detail[0],r.update(),t.removeEventListener("init",i)};t.addEventListener("init",i)}}else r.controller.control=r.params.controller.control}),i("update",()=>{s()}),i("resize",()=>{s()}),i("observerUpdate",()=>{s()}),i("setTranslate",(e,t,i)=>{r.controller.control&&!r.controller.control.destroyed&&r.controller.setTranslate(t,i)}),i("setTransition",(e,t,i)=>{r.controller.control&&!r.controller.control.destroyed&&r.controller.setTransition(t,i)}),Object.assign(r.controller,{setTranslate:function(e,t){var i=r.controller.control;let s,n;var a=r.constructor;function o(e){var t,i;e.destroyed||(t=r.rtlTranslate?-r.translate:r.translate,"slide"===r.params.controller.by&&(i=e,r.controller.spline=r.params.loop?new l(r.slidesGrid,i.slidesGrid):new l(r.snapGrid,i.snapGrid),n=-r.controller.spline.interpolate(-t)),n&&"container"!==r.params.controller.by||(s=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),!Number.isNaN(s)&&Number.isFinite(s)||(s=1),n=(t-r.minTranslate())*s+e.minTranslate()),r.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,r),e.updateActiveIndex(),e.updateSlidesClasses())}if(Array.isArray(i))for(let e=0;e<i.length;e+=1)i[e]!==t&&i[e]instanceof a&&o(i[e]);else i instanceof a&&t!==i&&o(i)},setTransition:function(t,e){const i=r.constructor,s=r.controller.control;let n;function a(e){e.destroyed||(e.setTransition(t,r),0!==t&&(e.transitionStart(),e.params.autoHeight&&C(()=>{e.updateAutoHeight()}),g(e.wrapperEl,()=>{s&&e.transitionEnd()})))}if(Array.isArray(s))for(n=0;n<s.length;n+=1)s[n]!==e&&s[n]instanceof i&&a(s[n]);else s instanceof i&&e!==s&&a(s)}})},function(e){let{swiper:c,extendParams:t,on:i}=e;t({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}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),c.a11y={clicked:!1};let n,a,d=null,o=(new Date).getTime();function s(e){const t=d;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function r(e){(e=j(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function l(e){(e=j(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){(e=j(e)).forEach(e=>{e.setAttribute("role",t)})}function p(e,t){(e=j(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function h(e,t){(e=j(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){(e=j(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function m(e){(e=j(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function g(e){if(13===e.keyCode||32===e.keyCode){const t=c.params.a11y,i=e.target;if(!c.pagination||!c.pagination.el||i!==c.pagination.el&&!c.pagination.el.contains(e.target)||e.target.matches(W(c.params.pagination.bulletClass))){if(c.navigation&&c.navigation.prevEl&&c.navigation.nextEl){const e=j(c.navigation.prevEl);j(c.navigation.nextEl).includes(i)&&(c.isEnd&&!c.params.loop||c.slideNext(),c.isEnd?s(t.lastSlideMessage):s(t.nextSlideMessage)),e.includes(i)&&(c.isBeginning&&!c.params.loop||c.slidePrev(),c.isBeginning?s(t.firstSlideMessage):s(t.prevSlideMessage))}c.pagination&&i.matches(W(c.params.pagination.bulletClass))&&i.click()}}}function v(){return c.pagination&&c.pagination.bullets&&c.pagination.bullets.length}function y(){return v()&&c.params.pagination.clickable}const b=(e,t,i)=>{var s;r(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),h(e,i),s=t,j(e).forEach(e=>{e.setAttribute("aria-controls",s)})},w=e=>{a&&a!==e.target&&!a.contains(e.target)&&(n=!0),c.a11y.clicked=!0},x=()=>{n=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{c.destroyed||(c.a11y.clicked=!1)})})},_=e=>{o=(new Date).getTime()},S=e=>{if(!(c.a11y.clicked||(new Date).getTime()-o<100)){const s=e.target.closest(`.${c.params.slideClass}, swiper-slide`);var t,i;s&&c.slides.includes(s)&&(a=s,t=c.slides.indexOf(s)===c.activeIndex,i=c.params.watchSlidesProgress&&c.visibleSlides&&c.visibleSlides.includes(s),t||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(c.isHorizontal()?c.el.scrollLeft=0:c.el.scrollTop=0,requestAnimationFrame(()=>{n||(c.slideTo(c.slides.indexOf(s),0),n=!1)})))}},T=()=>{const i=c.params.a11y;i.itemRoleDescriptionMessage&&p(c.slides,i.itemRoleDescriptionMessage),i.slideRole&&u(c.slides,i.slideRole);const s=c.slides.length;i.slideLabelMessage&&c.slides.forEach((e,t)=>{t=c.params.loop?parseInt(e.getAttribute("data-swiper-slide-index"),10):t;h(e,i.slideLabelMessage.replace(/\{\{index\}\}/,t+1).replace(/\{\{slidesLength\}\}/,s))})};i("beforeInit",()=>{d=L("span",c.params.a11y.notificationClass),d.setAttribute("aria-live","assertive"),d.setAttribute("aria-atomic","true")}),i("afterInit",()=>{c.params.a11y.enabled&&(()=>{const t=c.params.a11y;c.el.append(d);var e=c.el;t.containerRoleDescriptionMessage&&p(e,t.containerRoleDescriptionMessage),t.containerMessage&&h(e,t.containerMessage);const i=c.wrapperEl,s=t.id||i.getAttribute("id")||"swiper-wrapper-"+"x".repeat(n=void 0===(n=16)?16:n).replace(/x/g,()=>Math.round(16*Math.random()).toString(16));var n,a,e=c.params.autoplay&&c.params.autoplay.enabled?"off":"polite",o=s;j(i).forEach(e=>{e.setAttribute("id",o)}),n=i,a=e,(n=j(n)).forEach(e=>{e.setAttribute("aria-live",a)}),T();let{nextEl:r,prevEl:l}=c.navigation||{};r=j(r),l=j(l),r&&r.forEach(e=>b(e,s,t.nextSlideMessage)),l&&l.forEach(e=>b(e,s,t.prevSlideMessage)),y()&&j(c.pagination.el).forEach(e=>{e.addEventListener("keydown",g)}),A().addEventListener("visibilitychange",_),c.el.addEventListener("focus",S,!0),c.el.addEventListener("focus",S,!0),c.el.addEventListener("pointerdown",w,!0),c.el.addEventListener("pointerup",x,!0)})()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{c.params.a11y.enabled&&T()}),i("fromEdge toEdge afterInit lock unlock",()=>{var e,t;c.params.a11y.enabled&&(c.params.loop||c.params.rewind||!c.navigation||({nextEl:e,prevEl:t}=c.navigation,t&&(c.isBeginning?(f(t),l(t)):(m(t),r(t))),e&&(c.isEnd?(f(e),l(e)):(m(e),r(e)))))}),i("paginationUpdate",()=>{c.params.a11y.enabled&&function(){const t=c.params.a11y;v()&&c.pagination.bullets.forEach(e=>{c.params.pagination.clickable&&(r(e),c.params.pagination.renderBullet||(u(e,"button"),h(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,k(e)+1)))),e.matches(W(c.params.pagination.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}()}),i("destroy",()=>{c.params.a11y.enabled&&function(){d&&d.remove();let{nextEl:e,prevEl:t}=c.navigation||{};e=j(e),t=j(t),e&&e.forEach(e=>e.removeEventListener("keydown",g)),t&&t.forEach(e=>e.removeEventListener("keydown",g)),y()&&j(c.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)}),A().removeEventListener("visibilitychange",_),c.el.removeEventListener("focus",S,!0),c.el.removeEventListener("pointerdown",w,!0),c.el.removeEventListener("pointerup",x,!0)}()})},function(e){let{swiper:o,extendParams:t,on:i}=e;t({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,s={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),n=e=>{var t=I();let i;i=e?new URL(e):t.location;e=i.pathname.slice(1).split("/").filter(e=>""!==e),t=e.length;return{key:e[t-2],value:e[t-1]}},a=(i,s)=>{const n=I();if(r&&o.params.history.enabled){let e;e=o.params.url?new URL(o.params.url):n.location;const a=o.virtual&&o.params.virtual.enabled?o.slidesEl.querySelector(`[data-swiper-slide-index="${s}"]`):o.slides[s];let t=l(a.getAttribute("data-history"));if(0<o.params.history.root.length){let e=o.params.history.root;"/"===e[e.length-1]&&(e=e.slice(0,e.length-1)),t=e+"/"+(i?i+"/":"")+t}else e.pathname.includes(i)||(t=(i?i+"/":"")+t);o.params.history.keepQuery&&(t+=e.search);i=n.history.state;i&&i.value===t||(o.params.history.replaceState?n.history.replaceState({value:t},null,t):n.history.pushState({value:t},null,t))}},c=(i,s,n)=>{if(s)for(let e=0,t=o.slides.length;e<t;e+=1){const a=o.slides[e];if(l(a.getAttribute("data-history"))===s){const s=o.getSlideIndex(a);o.slideTo(s,i,n)}}else o.slideTo(0,i,n)},d=()=>{s=n(o.params.url),c(o.params.speed,s.value,!1)};i("init",()=>{o.params.history.enabled&&(()=>{const e=I();if(o.params.history){if(!e.history||!e.history.pushState)return o.params.history.enabled=!1,o.params.hashNavigation.enabled=!0;r=!0,s=n(o.params.url),(s.key||s.value)&&c(0,s.value,o.params.runCallbacksOnInit),o.params.history.replaceState||e.addEventListener("popstate",d)}})()}),i("destroy",()=>{o.params.history.enabled&&(()=>{const e=I();o.params.history.replaceState||e.removeEventListener("popstate",d)})()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{r&&a(o.params.history.key,o.activeIndex)}),i("slideChange",()=>{r&&o.params.cssMode&&a(o.params.history.key,o.activeIndex)})},function(e){let{swiper:i,extendParams:t,emit:s,on:n}=e,a=!1;const o=A(),r=I();t({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,t){if(i.virtual&&i.params.virtual.enabled){const e=i.slides.filter(e=>e.getAttribute("data-hash")===t)[0];return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return i.getSlideIndex(O(i.slidesEl,`.${i.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0])}}});const l=()=>{s("hashChange");const e=o.location.hash.replace("#",""),t=i.virtual&&i.params.virtual.enabled?i.slidesEl.querySelector(`[data-swiper-slide-index="${i.activeIndex}"]`):i.slides[i.activeIndex];if(e!==(t?t.getAttribute("data-hash"):"")){const t=i.params.hashNavigation.getSlideIndex(i,e);void 0===t||Number.isNaN(t)||i.slideTo(t)}},c=()=>{if(a&&i.params.hashNavigation.enabled){const e=i.virtual&&i.params.virtual.enabled?i.slidesEl.querySelector(`[data-swiper-slide-index="${i.activeIndex}"]`):i.slides[i.activeIndex],t=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";i.params.hashNavigation.replaceState&&r.history&&r.history.replaceState?r.history.replaceState(null,null,"#"+t||""):o.location.hash=t||"",s("hashSet")}};n("init",()=>{var e;i.params.hashNavigation.enabled&&(!i.params.hashNavigation.enabled||i.params.history&&i.params.history.enabled||(a=!0,(e=o.location.hash.replace("#",""))&&(e=i.params.hashNavigation.getSlideIndex(i,e),i.slideTo(e||0,0,i.params.runCallbacksOnInit,!0)),i.params.hashNavigation.watchState&&r.addEventListener("hashchange",l)))}),n("destroy",()=>{i.params.hashNavigation.enabled&&i.params.hashNavigation.watchState&&r.removeEventListener("hashchange",l)}),n("transitionEnd _freeModeNoMomentumRelease",()=>{a&&c()}),n("slideChange",()=>{a&&i.params.cssMode&&c()})},function(e){let a,o,{swiper:r,extendParams:t,on:i,emit:l,params:s}=e;r.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let c,n,d,u,p,h,f,m,g=s&&s.autoplay?s.autoplay.delay:3e3,v=s&&s.autoplay?s.autoplay.delay:3e3,y=(new Date).getTime();function b(e){r&&!r.destroyed&&r.wrapperEl&&e.target===r.wrapperEl&&(r.wrapperEl.removeEventListener("transitionend",b),m||C())}const w=()=>{var e;!r.destroyed&&r.autoplay.running&&(r.autoplay.paused?n=!0:n&&(v=c,n=!1),e=r.autoplay.paused?c:y+v-(new Date).getTime(),r.autoplay.timeLeft=e,l("autoplayTimeLeft",e,e/g),o=requestAnimationFrame(()=>{w()}))},x=t=>{if(!r.destroyed&&r.autoplay.running){cancelAnimationFrame(o),w();let e=void 0===t?r.params.autoplay.delay:t;g=r.params.autoplay.delay,v=r.params.autoplay.delay;var i=(()=>{let e;if(e=r.virtual&&r.params.virtual.enabled?r.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:r.slides[r.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(i)&&0<i&&void 0===t&&(e=i,g=i,v=i),c=e;const s=r.params.speed,n=()=>{r&&!r.destroyed&&(r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(s,!0,!0),l("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,s,!0,!0),l("autoplay")):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(s,!0,!0),l("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,s,!0,!0),l("autoplay")),r.params.cssMode&&(y=(new Date).getTime(),requestAnimationFrame(()=>{x()})))};return 0<e?(clearTimeout(a),a=setTimeout(()=>{n()},e)):requestAnimationFrame(()=>{n()}),e}},_=()=>{y=(new Date).getTime(),r.autoplay.running=!0,x(),l("autoplayStart")},S=()=>{r.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),l("autoplayStop")},T=(e,t)=>{if(!r.destroyed&&r.autoplay.running){clearTimeout(a),e||(f=!0);e=()=>{l("autoplayPause"),r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener("transitionend",b):C()};if(r.autoplay.paused=!0,t)return h&&(c=r.params.autoplay.delay),h=!1,void e();t=c||r.params.autoplay.delay;c=t-((new Date).getTime()-y),r.isEnd&&c<0&&!r.params.loop||(c<0&&(c=0),e())}},C=()=>{r.isEnd&&c<0&&!r.params.loop||r.destroyed||!r.autoplay.running||(y=(new Date).getTime(),f?(f=!1,x(c)):x(),r.autoplay.paused=!1,l("autoplayResume"))},E=()=>{var e;!r.destroyed&&r.autoplay.running&&("hidden"===(e=A()).visibilityState&&(f=!0,T(!0)),"visible"===e.visibilityState&&C())},k=e=>{"mouse"===e.pointerType&&(f=!0,m=!0,r.animating||r.autoplay.paused||T(!0))},$=e=>{"mouse"===e.pointerType&&(m=!1,r.autoplay.paused&&C())};i("init",()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener("pointerenter",k),r.el.addEventListener("pointerleave",$)),A().addEventListener("visibilitychange",E),_())}),i("destroy",()=>{r.el.removeEventListener("pointerenter",k),r.el.removeEventListener("pointerleave",$),A().removeEventListener("visibilitychange",E),r.autoplay.running&&S()}),i("_freeModeStaticRelease",()=>{(u||f)&&C()}),i("_freeModeNoMomentumRelease",()=>{r.params.autoplay.disableOnInteraction?S():T(!0,!0)}),i("beforeTransitionStart",(e,t,i)=>{!r.destroyed&&r.autoplay.running&&(i||!r.params.autoplay.disableOnInteraction?T(!0,!0):S())}),i("sliderFirstMove",()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?S():(d=!0,u=!1,f=!1,p=setTimeout(()=>{f=!0,u=!0,T(!0)},200)))}),i("touchEnd",()=>{if(!r.destroyed&&r.autoplay.running&&d){if(clearTimeout(p),clearTimeout(a),r.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&r.params.cssMode&&C(),u=!1,d=!1}}),i("slideChange",()=>{!r.destroyed&&r.autoplay.running&&(h=!0)}),Object.assign(r.autoplay,{start:_,stop:S,pause:T,resume:C})},function(e){let{swiper:l,extendParams:t,on:i}=e;t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,n=!1;function a(){const e=l.thumbs.swiper;if(e&&!e.destroyed){const i=e.clickedIndex,s=e.clickedSlide;var t;s&&s.classList.contains(l.params.thumbs.slideThumbActiveClass)||null!=i&&(t=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,l.params.loop?l.slideToLoop(t):l.slideTo(t))}}function o(){var e=l.params["thumbs"];if(s)return!1;s=!0;const t=l.constructor;return e.swiper instanceof t?(l.thumbs.swiper=e.swiper,Object.assign(l.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(l.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),l.thumbs.swiper.update()):c(e.swiper)&&(e=Object.assign({},e.swiper),Object.assign(e,{watchSlidesProgress:!0,slideToClickedSlide:!1}),l.thumbs.swiper=new t(e),n=!0),l.thumbs.swiper.el.classList.add(l.params.thumbs.thumbsContainerClass),l.thumbs.swiper.on("tap",a),!0}function r(s){const n=l.thumbs.swiper;if(n&&!n.destroyed){var a="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let t=1;const i=l.params.thumbs.slideThumbActiveClass;if(1<l.params.slidesPerView&&!l.params.centeredSlides&&(t=l.params.slidesPerView),l.params.thumbs.multipleActiveThumbs||(t=1),t=Math.floor(t),n.slides.forEach(e=>e.classList.remove(i)),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<t;e+=1)O(n.slidesEl,`[data-swiper-slide-index="${l.realIndex+e}"]`).forEach(e=>{e.classList.add(i)});else for(let e=0;e<t;e+=1)n.slides[l.realIndex+e]&&n.slides[l.realIndex+e].classList.add(i);var o=l.params.thumbs.autoScrollOffset,r=o&&!n.params.loop;if(l.realIndex!==n.realIndex||r){const e=n.activeIndex;let t,i;if(n.params.loop){const s=n.slides.filter(e=>e.getAttribute("data-swiper-slide-index")===""+l.realIndex)[0];t=n.slides.indexOf(s),i=l.activeIndex>l.previousIndex?"next":"prev"}else t=l.realIndex,i=t>l.previousIndex?"next":"prev";r&&(t+="next"===i?o:-1*o),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(t)<0&&(n.params.centeredSlides?t=t>e?t-Math.floor(a/2)+1:t+Math.floor(a/2)-1:t>e&&n.params.slidesPerGroup,n.slideTo(t,s?0:void 0))}}}l.thumbs={swiper:null},i("beforeInit",()=>{const i=l.params["thumbs"];if(i&&i.swiper)if("string"==typeof i.swiper||i.swiper instanceof HTMLElement){const s=A(),e=()=>{l.destroyed||(()=>{const t="string"==typeof i.swiper?s.querySelector(i.swiper):i.swiper;if(t&&t.swiper)i.swiper=t.swiper,o(),r(!0);else if(t){const s=e=>{i.swiper=e.detail[0],t.removeEventListener("init",s),o(),r(!0),i.swiper.update(),l.update()};t.addEventListener("init",s)}return t})()||requestAnimationFrame(e)};requestAnimationFrame(e)}else o(),r(!0)}),i("slideChange update resize observerUpdate",()=>{r()}),i("setTransition",(e,t)=>{const i=l.thumbs.swiper;i&&!i.destroyed&&i.setTransition(t)}),i("beforeDestroy",()=>{const e=l.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()}),Object.assign(l.thumbs,{init:o,update:r})},function(e){let{swiper:h,extendParams:t,emit:f,once:m}=e;t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(h,{freeMode:{onTouchStart:function(){var e;h.params.cssMode||(e=h.getTranslate(),h.setTranslate(e),h.setTransition(0),h.touchEventsData.velocities.length=0,h.freeMode.onTouchEnd({currentPos:h.rtl?h.translate:-h.translate}))},onTouchMove:function(){if(!h.params.cssMode){const{touchEventsData:e,touches:t}=h;0===e.velocities.length&&e.velocities.push({position:t[h.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:t[h.isHorizontal()?"currentX":"currentY"],time:v()})}},onTouchEnd:function(a){let o=a["currentPos"];if(!h.params.cssMode){const{params:r,wrapperEl:l,rtlTranslate:c,snapGrid:d,touchEventsData:u}=h,e=v()-u.touchStartTime;if(o<-h.minTranslate())h.slideTo(h.activeIndex);else if(o>-h.maxTranslate())h.slides.length<d.length?h.slideTo(d.length-1):h.slideTo(h.slides.length-1);else{if(r.freeMode.momentum){if(1<u.velocities.length){const p=u.velocities.pop(),o=u.velocities.pop(),f=p.position-o.position,m=p.time-o.time;h.velocity=f/m,h.velocity/=2,Math.abs(h.velocity)<r.freeMode.minimumVelocity&&(h.velocity=0),(150<m||300<v()-p.time)&&(h.velocity=0)}else h.velocity=0;h.velocity*=r.freeMode.momentumVelocityRatio,u.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const o=h.velocity*e;let i=h.translate+o;c&&(i=-i);let t,s=!1;a=20*Math.abs(h.velocity)*r.freeMode.momentumBounceRatio;let n;if(i<h.maxTranslate())r.freeMode.momentumBounce?(i+h.maxTranslate()<-a&&(i=h.maxTranslate()-a),t=h.maxTranslate(),s=!0,u.allowMomentumBounce=!0):i=h.maxTranslate(),r.loop&&r.centeredSlides&&(n=!0);else if(i>h.minTranslate())r.freeMode.momentumBounce?(i-h.minTranslate()>a&&(i=h.minTranslate()+a),t=h.minTranslate(),s=!0,u.allowMomentumBounce=!0):i=h.minTranslate(),r.loop&&r.centeredSlides&&(n=!0);else if(r.freeMode.sticky){let t;for(let e=0;e<d.length;e+=1)if(d[e]>-i){t=e;break}i=Math.abs(d[t]-i)<Math.abs(d[t-1]-i)||"next"===h.swipeDirection?d[t]:d[t-1],i=-i}if(n&&m("transitionEnd",()=>{h.loopFix()}),0!==h.velocity){if(e=c?Math.abs((-i-h.translate)/h.velocity):Math.abs((i-h.translate)/h.velocity),r.freeMode.sticky){const o=Math.abs((c?-i:i)-h.translate),f=h.slidesSizesGrid[h.activeIndex];e=o<f?r.speed:o<2*f?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void h.slideToClosest();r.freeMode.momentumBounce&&s?(h.updateProgress(t),h.setTransition(e),h.setTranslate(i),h.transitionStart(!0,h.swipeDirection),h.animating=!0,g(l,()=>{h&&!h.destroyed&&u.allowMomentumBounce&&(f("momentumBounce"),h.setTransition(r.speed),setTimeout(()=>{h.setTranslate(t),g(l,()=>{h&&!h.destroyed&&h.transitionEnd()})},0))})):h.velocity?(f("_freeModeNoMomentumRelease"),h.updateProgress(i),h.setTransition(e),h.setTranslate(i),h.transitionStart(!0,h.swipeDirection),h.animating||(h.animating=!0,g(l,()=>{h&&!h.destroyed&&h.transitionEnd()}))):h.updateProgress(i),h.updateActiveIndex(),h.updateSlidesClasses()}else{if(r.freeMode.sticky)return void h.slideToClosest();r.freeMode&&f("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||e>=r.longSwipesMs)&&(f("_freeModeStaticRelease"),h.updateProgress(),h.updateActiveIndex(),h.updateSlidesClasses())}}}}})},function(e){let d,u,p,s,{swiper:h,extendParams:t,on:i}=e;t({grid:{rows:1,fill:"column"}});const f=()=>{let e=h.params.spaceBetween;return"string"==typeof e&&0<=e.indexOf("%")?e=parseFloat(e.replace("%",""))/100*h.size:"string"==typeof e&&(e=parseFloat(e)),e};i("init",()=>{s=h.params.grid&&1<h.params.grid.rows}),i("update",()=>{const{params:e,el:t}=h,i=e.grid&&1<e.grid.rows;s&&!i?(t.classList.remove(e.containerModifierClass+"grid",e.containerModifierClass+"grid-column"),p=1,h.emitContainerClasses()):!s&&i&&(t.classList.add(e.containerModifierClass+"grid"),"column"===e.grid.fill&&t.classList.add(e.containerModifierClass+"grid-column"),h.emitContainerClasses()),s=i}),h.grid={initSlides:e=>{var t=h.params["slidesPerView"],{rows:i,fill:s}=h.params.grid,e=(h.virtual&&h.params.virtual.enabled?h.virtual.slides:e).length;p=Math.floor(e/i),d=Math.floor(e/i)===e/i?e:Math.ceil(e/i)*i,"auto"!==t&&"row"===s&&(d=Math.max(d,t*i)),u=d/i},unsetSlides:()=>{h.slides&&h.slides.forEach(e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[h.getDirectionLabel("margin-top")]="")})},updateSlide:(e,t,i)=>{var s=h.params["slidesPerGroup"],n=f(),{rows:a,fill:o}=h.params.grid,i=(h.virtual&&h.params.virtual.enabled?h.virtual.slides:i).length;let r,l,c;if("row"===o&&1<s){const u=Math.floor(e/(s*a)),p=e-a*s*u,h=0===u?s:Math.min(Math.ceil((i-u*a*s)/a),s);c=Math.floor(p/h),l=p-c*h+u*s,r=l+c*d/a,t.style.order=r}else"column"===o?(l=Math.floor(e/a),c=e-l*a,(l>p||l===p&&c===a-1)&&(c+=1,c>=a&&(c=0,l+=1))):(c=Math.floor(e/u),l=e-c*u);t.row=c,t.column=l,t.style.height=`calc((100% - ${(a-1)*n}px) / ${a})`,t.style[h.getDirectionLabel("margin-top")]=0!==c?n&&n+"px":"",t.swiperSlideGridSet=!0},updateWrapperSize:(i,s)=>{var{centeredSlides:e,roundLengths:n}=h.params,t=f(),a=h.params.grid["rows"];if(h.virtualSize=(i+t)*d,h.virtualSize=Math.ceil(h.virtualSize/a)-t,h.params.cssMode||(h.wrapperEl.style[h.getDirectionLabel("width")]=h.virtualSize+t+"px"),e){const i=[];for(let t=0;t<s.length;t+=1){let e=s[t];n&&(e=Math.floor(e)),s[t]<h.virtualSize+s[0]&&i.push(e)}s.splice(0,s.length),s.push(...i)}}}},function(e){e=e.swiper;Object.assign(e,{appendSlide:function(t){const e=this,{params:i,slidesEl:s}=e;i.loop&&e.loopDestroy();var n=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,s.append(t.children[0]),t.innerHTML=""}else s.append(e)};if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&n(t[e]);else n(t);e.recalcSlides(),i.loop&&e.loopCreate(),i.observer&&!e.isElement||e.update()}.bind(e),prependSlide:function(t){const e=this,{params:i,activeIndex:s,slidesEl:n}=e;i.loop&&e.loopDestroy();let a=s+1;var o=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,n.prepend(t.children[0]),t.innerHTML=""}else n.prepend(e)};if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&o(t[e]);a=s+t.length}else o(t);e.recalcSlides(),i.loop&&e.loopCreate(),i.observer&&!e.isElement||e.update(),e.slideTo(a,0,!1)}.bind(e),addSlide:function(t,i){const s=this,{params:n,activeIndex:e,slidesEl:a}=s;let o=e;n.loop&&(o-=s.loopedSlides,s.loopDestroy(),s.recalcSlides());var r=s.slides.length;if(t<=0)s.prependSlide(i);else if(r<=t)s.appendSlide(i);else{let e=o>t?o+1:o;const l=[];for(let e=r-1;e>=t;--e){const t=s.slides[e];t.remove(),l.unshift(t)}if("object"==typeof i&&"length"in i){for(let e=0;e<i.length;e+=1)i[e]&&a.append(i[e]);e=o>t?o+i.length:o}else a.append(i);for(let e=0;e<l.length;e+=1)a.append(l[e]);s.recalcSlides(),n.loop&&s.loopCreate(),n.observer&&!s.isElement||s.update(),n.loop?s.slideTo(e+s.loopedSlides,0,!1):s.slideTo(e,0,!1)}}.bind(e),removeSlide:function(t){var i=this,{params:e,activeIndex:s}=i;let n=s;e.loop&&(n-=i.loopedSlides,i.loopDestroy());let a,o=n;if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)a=t[e],i.slides[a]&&i.slides[a].remove(),a<o&&--o;o=Math.max(o,0)}else a=t,i.slides[a]&&i.slides[a].remove(),a<o&&--o,o=Math.max(o,0);i.recalcSlides(),e.loop&&i.loopCreate(),e.observer&&!i.isElement||i.update(),e.loop?i.slideTo(o+i.loopedSlides,0,!1):i.slideTo(o,0,!1)}.bind(e),removeAllSlides:function(){const t=[];for(let e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}.bind(e)})},function(e){let{swiper:o,extendParams:t,on:i}=e;t({fadeEffect:{crossFade:!1}}),V({effect:"fade",swiper:o,on:i,setTranslate:()=>{const s=o["slides"];o.params.fadeEffect;for(let i=0;i<s.length;i+=1){const s=o.slides[i];let e=-s.swiperSlideOffset;o.params.virtualTranslate||(e-=o.translate);let t=0;o.isHorizontal()||(t=e,e=0);const n=o.params.fadeEffect.crossFade?Math.max(1-Math.abs(s.progress),0):1+Math.min(Math.max(s.progress,-1),0),a=U(0,s);a.style.opacity=n,a.style.transform=`translate3d(${e}px, ${t}px, 0px)`}},setTransition:t=>{const e=o.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms"}),Y({swiper:o,duration:t,transformElements:e,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!o.params.cssMode})})},function(e){let{swiper:v,extendParams:t,on:i}=e;t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const y=(e,t,i)=>{let s=i?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=i?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=L("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"left":"top")).split(" ")),e.append(s)),n||(n=L("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"right":"bottom")).split(" ")),e.append(n)),s&&(s.style.opacity=Math.max(-t,0)),n&&(n.style.opacity=Math.max(t,0))};V({effect:"cube",swiper:v,on:i,setTranslate:()=>{const{el:e,wrapperEl:r,slides:l,width:t,height:i,rtlTranslate:c,size:d,browser:s}=v,u=v.params.cubeEffect,p=v.isHorizontal(),h=v.virtual&&v.params.virtual.enabled;let f,m=0;u.shadow&&(p?(f=v.wrapperEl.querySelector(".swiper-cube-shadow"),f||(f=L("div","swiper-cube-shadow"),v.wrapperEl.append(f)),f.style.height=t+"px"):(f=e.querySelector(".swiper-cube-shadow"),f||(f=L("div","swiper-cube-shadow"),e.append(f))));for(let o=0;o<l.length;o+=1){const r=l[o];let e=o;h&&(e=parseInt(r.getAttribute("data-swiper-slide-index"),10));let t=90*e,i=Math.floor(t/360);c&&(t=-t,i=Math.floor(-t/360));const f=Math.max(Math.min(r.progress,1),-1);let s=0,n=0,a=0;e%4==0?(s=4*-i*d,a=0):(e-1)%4==0?(s=0,a=4*-i*d):(e-2)%4==0?(s=d+4*i*d,a=d):(e-3)%4==0&&(s=-d,a=3*d+4*d*i),c&&(s=-s),p||(n=s,s=0);var g=`rotateX(${p?0:-t}deg) rotateY(${p?t:0}deg) translate3d(${s}px, ${n}px, ${a}px)`;f<=1&&-1<f&&(m=90*e+90*f,c&&(m=90*-e-90*f),v.browser&&v.browser.need3dFix&&Math.abs(m)/90%2==1&&(m+=.001)),r.style.transform=g,u.slideShadows&&y(r,f,p)}if(r.style.transformOrigin=`50% 50% -${d/2}px`,r.style["-webkit-transform-origin"]=`50% 50% -${d/2}px`,u.shadow)if(p)f.style.transform=`translate3d(0px, ${t/2+u.shadowOffset}px, ${-t/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${u.shadowScale})`;else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),v=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),r=u.shadowScale,l=u.shadowScale/v,y=u.shadowOffset;f.style.transform=`scale3d(${r}, 1, ${l}) translate3d(0px, ${i/2+y}px, ${-i/2/l}px) rotateX(-89.99deg)`}var n=(s.isSafari||s.isWebView)&&s.needPerspectiveFix?-d/2:0;r.style.transform=`translate3d(0px,0,${n}px) rotateX(${v.isHorizontal()?0:m}deg) rotateY(${v.isHorizontal()?-m:0}deg)`,r.style.setProperty("--swiper-cube-translate-z",n+"px")},setTransition:t=>{const{el:e,slides:i}=v;if(i.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=t+"ms"})}),v.params.cubeEffect.shadow&&!v.isHorizontal()){const v=e.querySelector(".swiper-cube-shadow");v&&(v.style.transitionDuration=t+"ms")}},recreateShadows:()=>{const i=v.isHorizontal();v.slides.forEach(e=>{var t=Math.max(Math.min(e.progress,1),-1);y(e,t,i)})},getEffectParams:()=>v.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:u,extendParams:t,on:i}=e;t({flipEffect:{slideShadows:!0,limitRotation:!0}});const p=(e,t)=>{let i=u.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),s=u.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");i=i||G("flip",e,u.isHorizontal()?"left":"top"),s=s||G("flip",e,u.isHorizontal()?"right":"bottom"),i&&(i.style.opacity=Math.max(-t,0)),s&&(s.style.opacity=Math.max(t,0))};V({effect:"flip",swiper:u,on:i,setTranslate:()=>{var{slides:o,rtlTranslate:r}=u,l=u.params.flipEffect;for(let a=0;a<o.length;a+=1){const d=o[a];let e=d.progress;u.params.flipEffect.limitRotation&&(e=Math.max(Math.min(d.progress,1),-1));var c=d.swiperSlideOffset;let t=-180*e,i=0,s=u.params.cssMode?-c-u.translate:-c,n=0;u.isHorizontal()?r&&(t=-t):(n=s,s=0,i=-t,t=0),u.browser&&u.browser.need3dFix&&(Math.abs(t)/90%2==1&&(t+=.001),Math.abs(i)/90%2==1&&(i+=.001)),d.style.zIndex=-Math.abs(Math.round(e))+o.length,l.slideShadows&&p(d,e);c=`translate3d(${s}px, ${n}px, 0px) rotateX(${i}deg) rotateY(${t}deg)`;U(0,d).style.transform=c}},setTransition:t=>{const e=u.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=t+"ms"})}),Y({swiper:u,duration:t,transformElements:e})},recreateShadows:()=>{u.params.flipEffect,u.slides.forEach(e=>{let t=e.progress;u.params.flipEffect.limitRotation&&(t=Math.max(Math.min(e.progress,1),-1)),p(e,t)})},getEffectParams:()=>u.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!u.params.cssMode})})},function(e){let{swiper:w,extendParams:t,on:i}=e;t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),V({effect:"coverflow",swiper:w,on:i,setTranslate:()=>{const{width:e,height:l,slides:c,slidesSizesGrid:d}=w,u=w.params.coverflowEffect,p=w.isHorizontal(),h=w.translate,f=p?e/2-h:l/2-h,m=p?u.rotate:-u.rotate,g=u.depth;for(let r=0,e=c.length;r<e;r+=1){const l=c[r],h=d[r],y=(f-l.swiperSlideOffset-h/2)/h,b="function"==typeof u.modifier?u.modifier(y):y*u.modifier;let e=p?m*b:0,t=p?0:m*b,i=-g*Math.abs(b),s=u.stretch;"string"==typeof s&&-1!==s.indexOf("%")&&(s=parseFloat(u.stretch)/100*h);let n=p?0:s*b,a=p?s*b:0,o=1-(1-u.scale)*Math.abs(b);Math.abs(a)<.001&&(a=0),Math.abs(n)<.001&&(n=0),Math.abs(i)<.001&&(i=0),Math.abs(e)<.001&&(e=0),Math.abs(t)<.001&&(t=0),Math.abs(o)<.001&&(o=0),w.browser&&w.browser.need3dFix&&(Math.abs(e)/90%2==1&&(e+=.001),Math.abs(t)/90%2==1&&(t+=.001));var v=`translate3d(${a}px,${n}px,${i}px)  rotateX(${t}deg) rotateY(${e}deg) scale(${o})`;if(U(0,l).style.transform=v,l.style.zIndex=1-Math.abs(Math.round(b)),u.slideShadows){let e=p?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),t=p?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");e=e||G("coverflow",l,p?"left":"top"),t=t||G("coverflow",l,p?"right":"bottom"),e&&(e.style.opacity=0<b?b:0),t&&(t.style.opacity=0<-b?-b:0)}}},setTransition:t=>{w.slides.map(e=>r(e)).forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=t+"ms"})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:b,extendParams:t,on:i}=e;t({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});V({effect:"creative",swiper:b,on:i,setTranslate:()=>{const{slides:n,wrapperEl:e,slidesSizesGrid:a}=b,o=b.params.creativeEffect,r=o["progressMultiplier"],l=b.params.centeredSlides;if(l){const n=a[0]/2-b.params.slidesOffsetBefore||0;e.style.transform=`translateX(calc(50% - ${n}px))`}for(let i=0;i<n.length;i+=1){const a=n[i],h=a.progress,f=Math.min(Math.max(a.progress,-o.limitProgress),o.limitProgress);let e=f;l||(e=Math.min(Math.max(a.originalProgress,-o.limitProgress),o.limitProgress));const m=a.swiperSlideOffset,g=[b.params.cssMode?-m-b.translate:-m,0,0],v=[0,0,0];let t=!1;b.isHorizontal()||(g[1]=g[0],g[0]=0);let s={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};f<0?(s=o.next,t=!0):0<f&&(s=o.prev,t=!0),g.forEach((e,t)=>{g[t]=`calc(${e}px + (${t=s.translate[t],"string"==typeof t?t:t+"px"} * ${Math.abs(f*r)}))`}),v.forEach((e,t)=>{let i=s.rotate[t]*Math.abs(f*r);b.browser&&b.browser.need3dFix&&Math.abs(i)/90%2==1&&(i+=.001),v[t]=i}),a.style.zIndex=-Math.abs(Math.round(h))+n.length;var c=g.join(", "),d=`rotateX(${v[0]}deg) rotateY(${v[1]}deg) rotateZ(${v[2]}deg)`,u=e<0?`scale(${1+(1-s.scale)*e*r})`:`scale(${1-(1-s.scale)*e*r})`,p=e<0?1+(1-s.opacity)*e*r:1-(1-s.opacity)*e*r,u=`translate3d(${c}) ${d} `+u;if(t&&s.shadow||!t){let e=a.querySelector(".swiper-slide-shadow");if(!e&&s.shadow&&(e=G("creative",a)),e){const b=o.shadowPerProgress?f*(1/o.limitProgress):f;e.style.opacity=Math.min(Math.max(Math.abs(b),0),1)}}const y=U(0,a);y.style.transform=u,y.style.opacity=p,s.origin&&(y.style.transformOrigin=s.origin)}},setTransition:t=>{const e=b.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=t+"ms"})}),Y({swiper:b,duration:t,transformElements:e,allSlides:!0})},perspective:()=>b.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!b.params.cssMode})})},function(e){let{swiper:w,extendParams:t,on:i}=e;t({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),V({effect:"cards",swiper:w,on:i,setTranslate:()=>{const{slides:r,activeIndex:l,rtlTranslate:c}=w,d=w.params.cardsEffect,{startTranslate:u,isTouched:p}=w.touchEventsData,h=c?-w.translate:w.translate;for(let o=0;o<r.length;o+=1){const v=r[o],y=v.progress,b=Math.min(Math.max(y,-4),4);let e=v.swiperSlideOffset;w.params.centeredSlides&&!w.params.cssMode&&(w.wrapperEl.style.transform=`translateX(${w.minTranslate()}px)`),w.params.centeredSlides&&w.params.cssMode&&(e-=r[0].swiperSlideOffset);let t=w.params.cssMode?-e-w.translate:-e,i=0;var f=-100*Math.abs(b);let s=1,n=-d.perSlideRotate*b,a=d.perSlideOffset-.75*Math.abs(b);var m=w.virtual&&w.params.virtual.enabled?w.virtual.from+o:o,g=(m===l||m===l-1)&&0<b&&b<1&&(p||w.params.cssMode)&&h<u,m=(m===l||m===l+1)&&b<0&&-1<b&&(p||w.params.cssMode)&&u<h;if(g||m){const r=(1-Math.abs((Math.abs(b)-.5)/.5))**.5;n+=-28*b*r,s+=-.5*r,a+=96*r,i=-25*r*Math.abs(b)+"%"}if(t=b<0?`calc(${t}px ${c?"-":"+"} (${a*Math.abs(b)}%))`:0<b?`calc(${t}px ${c?"-":"+"} (-${a*Math.abs(b)}%))`:t+"px",!w.isHorizontal()){const r=i;i=t,t=r}m=b<0?""+(1+(1-s)*b):""+(1-(1-s)*b),m=`
        translate3d(${t}, ${i}, ${f}px)
        rotateZ(${d.rotate?c?-n:n:0}deg)
        scale(${m})
      `;if(d.slideShadows){let e=v.querySelector(".swiper-slide-shadow");e=e||G("cards",v),e&&(e.style.opacity=Math.min(Math.max((Math.abs(b)-.5)/.5,0),1))}v.style.zIndex=-Math.abs(Math.round(y))+r.length,U(0,v).style.transform=m}},setTransition:t=>{const e=w.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=t+"ms"})}),Y({swiper:w,duration:t,transformElements:e})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!w.params.cssMode})})}]);const X=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function K(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function Q(t,i){const s=["__proto__","constructor","prototype"];Object.keys(i).filter(e=>s.indexOf(e)<0).forEach(e=>{void 0===t[e]||!(K(i[e])&&K(t[e])&&0<Object.keys(i[e]).length)||i[e].__swiper__?t[e]=i[e]:Q(t[e],i[e])})}function Z(e){return(e=void 0===e?"":e).replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}const J=i=>{if(parseFloat(i)===Number(i))return Number(i);if("true"===i)return!0;if(""===i)return!0;if("false"===i)return!1;if("null"===i)return null;if("undefined"!==i){if("string"==typeof i&&i.includes("{")&&i.includes("}")&&i.includes('"')){let t;try{t=JSON.parse(i)}catch(e){t=i}return t}return i}},ee=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function te(t,e,i){const s={},n={};Q(s,H);const a=[...X,"on"],o=a.map(e=>e.replace(/_/,""));a.forEach(e=>{e=e.replace("_",""),void 0!==t[e]&&(n[e]=t[e])});const r=[...t.attributes];return"string"==typeof e&&void 0!==i&&r.push({name:e,value:K(i)?{...i}:i}),r.forEach(t=>{const e=ee.filter(e=>0===t.name.indexOf(e+"-"))[0];if(e){var i=Z(e),s=Z(t.name.split(e+"-")[1]);void 0===n[i]&&(n[i]={}),!0===n[i]&&(n[i]={enabled:!0}),n[i][s]=J(t.value)}else{const e=Z(t.name);o.includes(e)&&(s=J(t.value),n[e]&&ee.includes(t.name)&&!K(s)?(n[e].constructor!==Object&&(n[e]={}),n[e].enabled=!!s):n[e]=s)}}),Q(s,n),s.navigation?s.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...!0!==s.navigation?s.navigation:{}}:!1===s.navigation&&delete s.navigation,s.scrollbar?s.scrollbar={el:".swiper-scrollbar",...!0!==s.scrollbar?s.scrollbar:{}}:!1===s.scrollbar&&delete s.scrollbar,s.pagination?s.pagination={el:".swiper-pagination",...!0!==s.pagination?s.pagination:{}}:!1===s.pagination&&delete s.pagination,{params:s,passedParams:n}}const ie="undefined"==typeof window||"undefined"==typeof HTMLElement?class{}:HTMLElement,se='<svg width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>\n    ',ne=(e,t)=>{if("undefined"!=typeof CSSStyleSheet&&e.adoptedStyleSheets){const i=new CSSStyleSheet;i.replaceSync(t),e.adoptedStyleSheets=[i]}else{const s=document.createElement("style");s.rel="stylesheet",s.textContent=t,e.appendChild(s)}};class ae extends ie{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return se}static get prevButtonSvg(){return se.replace("/></svg>",' transform-origin="center" transform="rotate(180)"/></svg>')}cssStyles(){return[":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join("\n")}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const t=this.slideSlots||0,e=[...this.querySelectorAll("[slot^=slide-]")].map(e=>parseInt(e.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=e.length?Math.max(...e)+1:0,this.rendered)if(this.slideSlots>t)for(let e=t;e<this.slideSlots;e+=1){const t=document.createElement("swiper-slide");t.setAttribute("part","slide slide-"+(e+1));const i=document.createElement("slot");i.setAttribute("name","slide-"+(e+1)),t.appendChild(i),this.shadowRoot.querySelector(".swiper-wrapper").appendChild(t)}else if(this.slideSlots<t){const t=this.swiper.slides;for(let e=t.length-1;0<=e;--e)e>this.slideSlots&&t[e].remove()}}render(){if(!this.rendered){this.calcSlideSlots();let e=this.cssStyles();0<this.slideSlots&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&ne(this.shadowRoot,e),this.cssLinks().forEach(e=>{if(!this.shadowRoot.querySelector(`link[href="${e}"]`)){const t=document.createElement("link");t.rel="stylesheet",t.href=e,this.shadowRoot.appendChild(t)}});const i=document.createElement("div");var t;i.classList.add("swiper"),i.part="container",i.innerHTML=`
      <slot name="container-start"></slot>
      <div class="swiper-wrapper" part="wrapper">
        <slot></slot>
        ${Array.from({length:this.slideSlots}).map((e,t)=>`
        <swiper-slide part="slide slide-${t}">
          <slot name="slide-${t}"></slot>
        </swiper-slide>
        `).join("")}
      </div>
      <slot name="container-end"></slot>
      ${t=this.passedParams,void 0===t&&(t={}),t.navigation&&void 0===t.navigation.nextEl&&void 0===t.navigation.prevEl?`
        <div part="button-prev" class="swiper-button-prev">${this.constructor.prevButtonSvg}</div>
        <div part="button-next" class="swiper-button-next">${this.constructor.nextButtonSvg}</div>
      `:""}
      ${t=this.passedParams,(t=void 0===t?{}:t).pagination&&void 0===t.pagination.el?'\n        <div part="pagination" class="swiper-pagination"></div>\n      ':""}
      ${t=this.passedParams,(t=void 0===t?{}:t).scrollbar&&void 0===t.scrollbar.el?'\n        <div part="scrollbar" class="swiper-scrollbar"></div>\n      ':""}
    `,this.shadowRoot.appendChild(i),this.rendered=!0}}initialize(){var a=this;if(!this.initialized){this.initialized=!0;const{params:o,passedParams:e}=te(this);this.swiperParams=o,this.passedParams=e,delete this.swiperParams.init,this.render(),this.swiper=new F(this.shadowRoot.querySelector(".swiper"),{...o.virtual?{}:{observer:!0,observeSlideChildren:0<this.slideSlots},...o,touchEventsTarget:"container",onAny:function(e){"observerUpdate"===e&&a.calcSlideSlots();for(var t=o.eventsPrefix?""+o.eventsPrefix+e.toLowerCase():e.toLowerCase(),i=arguments.length,s=new Array(1<i?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];e=new CustomEvent(t,{detail:s,bubbles:"hashChange"!==e,cancelable:!0});a.dispatchEvent(e)}})}}connectedCallback(){this.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||!1!==this.init&&"false"!==this.getAttribute("init")&&this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||(this.swiper&&this.swiper.destroy&&this.swiper.destroy(),this.initialized=!1)}updateSwiperOnPropChange(e,t){var{params:i,passedParams:s}=te(this,e,t);this.passedParams=s,this.swiperParams=i,this.swiper&&this.swiper.params[e]===t||function(e){let{swiper:t,slides:i,passedParams:s,changedParams:n,nextEl:a,prevEl:o,scrollbarEl:r,paginationEl:l}=e;const c=n.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:d,pagination:u,navigation:p,scrollbar:h,virtual:f,thumbs:m}=t;let g,v,y,b,w,x,_,S;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(g=!0),n.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(v=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(d.pagination||!1===d.pagination)&&u&&!u.el&&(y=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||r)&&(d.scrollbar||!1===d.scrollbar)&&h&&!h.el&&(b=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||o)&&(s.navigation.nextEl||a)&&(d.navigation||!1===d.navigation)&&p&&!p.prevEl&&!p.nextEl&&(w=!0);const T=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),d[e].prevEl=void 0,d[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),d[e].el=void 0,t[e].el=void 0))};n.includes("loop")&&t.isElement&&(d.loop&&!s.loop?x=!0:!d.loop&&s.loop?_=!0:S=!0),c.forEach(e=>{var t;K(d[e])&&K(s[e])?(Object.assign(d[e],s[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in s[e])||s[e].enabled||T(e)):!0!==(t=s[e])&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?d[e]=s[e]:!1===t&&T(e)}),c.includes("controller")&&!v&&t.controller&&t.controller.control&&d.controller&&d.controller.control&&(t.controller.control=d.controller.control),n.includes("children")&&i&&f&&d.virtual.enabled?(f.slides=i,f.update(!0)):n.includes("virtual")&&f&&d.virtual.enabled&&(i&&(f.slides=i),f.update(!0)),n.includes("children")&&i&&d.loop&&(S=!0),g&&m.init()&&m.update(!0),v&&(t.controller.control=d.controller.control),y&&(!t.isElement||l&&"string"!=typeof l||(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(d.pagination.el=l),u.init(),u.render(),u.update()),b&&(!t.isElement||r&&"string"!=typeof r||(r=document.createElement("div"),r.classList.add("swiper-scrollbar"),r.part.add("scrollbar"),t.el.appendChild(r)),r&&(d.scrollbar.el=r),h.init(),h.updateSize(),h.setTranslate()),w&&(t.isElement&&(a&&"string"!=typeof a||(a=document.createElement("div"),a.classList.add("swiper-button-next"),a.innerHTML=t.hostEl.constructor.nextButtonSvg,a.part.add("button-next"),t.el.appendChild(a)),o&&"string"!=typeof o||(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=t.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),t.el.appendChild(o))),a&&(d.navigation.nextEl=a),o&&(d.navigation.prevEl=o),p.init(),p.update()),n.includes("allowSlideNext")&&(t.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(t.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&t.changeDirection(s.direction,!1),(x||S)&&t.loopDestroy(),(_||S)&&t.loopCreate(),t.update()}({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Z(e)],..."navigation"===e&&s[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},..."pagination"===e&&s[e]?{paginationEl:".swiper-pagination"}:{},..."scrollbar"===e&&s[e]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(e,t,i){this.initialized&&this.updateSwiperOnPropChange(e,i="true"===t&&null===i?!1:i)}static get observedAttributes(){return X.filter(e=>e.includes("_")).map(e=>e.replace(/[A-Z]/g,e=>"-"+e).replace("_","").toLowerCase())}}X.forEach(t=>{"init"!==t&&(t=t.replace("_",""),Object.defineProperty(ae.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class oe extends ie{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||""===this.getAttribute("lazy")||"true"===this.getAttribute("lazy");if(ne(this.shadowRoot,"::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}"),this.shadowRoot.appendChild(document.createElement("slot")),e){const e=document.createElement("div");e.classList.add("swiper-lazy-preloader"),e.part.add("preloader"),this.shadowRoot.appendChild(e)}}initialize(){this.render()}connectedCallback(){this.initialize()}}"undefined"!=typeof window&&(window.SwiperElementRegisterParams=e=>{X.push(...e)}),"undefined"!=typeof window&&(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",ae),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",oe))}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function n(e){return e&&"[object Function]"==={}.toString.call(e)}function p(e,t){if(1!==e.nodeType)return[];e=getComputedStyle(e,null);return t?e[t]:e}function h(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function f(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=p(e),i=t.overflow,s=t.overflowX,t=t.overflowY;return/(auto|scroll)/.test(i+t+s)?e:f(h(e))}function c(e){var t=e&&e.offsetParent,i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===p(t,"position")?c(t):t:(e?e.ownerDocument:document).documentElement}function a(e){return null===e.parentNode?e:a(e.parentNode)}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var i=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,s=i?e:t,n=i?t:e,i=document.createRange();i.setStart(s,0),i.setEnd(n,0);i=i.commonAncestorContainer;if(e!==i&&t!==i||s.contains(n))return"BODY"===(n=(s=i).nodeName)||"HTML"!==n&&c(s.firstElementChild)!==s?c(i):i;i=a(e);return i.host?m(i.host,t):m(e,a(t).host)}function g(e,t){var i="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",t=e.nodeName;if("BODY"!==t&&"HTML"!==t)return e[i];t=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||t)[i]}function o(e,t){var i="x"===t?"Left":"Top",t="Left"==i?"Right":"Bottom";return parseFloat(e["border"+i+"Width"],10)+parseFloat(e["border"+t+"Width"],10)}function s(e,t,i,s){return L(t["offset"+e],t["scroll"+e],i["client"+e],i["offset"+e],i["scroll"+e],F()?i["offset"+e]+s["margin"+("Height"===e?"Top":"Left")]+s["margin"+("Height"===e?"Bottom":"Right")]:0)}function v(){var e=document.body,t=document.documentElement,i=F()&&getComputedStyle(t);return{height:s("Height",e,t,i),width:s("Width",e,t,i)}}function y(e){return W({},e,{right:e.left+e.width,bottom:e.top+e.height})}function d(e){var t={};if(F())try{var t=e.getBoundingClientRect(),i=g(e,"top"),s=g(e,"left");t.top+=i,t.left+=s,t.bottom+=i,t.right+=s}catch(e){}else t=e.getBoundingClientRect();var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?v():{},s=i.width||e.clientWidth||n.right-n.left,t=i.height||e.clientHeight||n.bottom-n.top,i=e.offsetWidth-s,s=e.offsetHeight-t;return(i||s)&&(i-=o(t=p(e),"x"),s-=o(t,"y"),n.width-=i,n.height-=s),y(n)}function b(e,t){var i=F(),s="HTML"===t.nodeName,n=d(e),a=d(t),o=f(e),r=p(t),l=parseFloat(r.borderTopWidth,10),e=parseFloat(r.borderLeftWidth,10),n=y({top:n.top-a.top-l,left:n.left-a.left-e,width:n.width,height:n.height});return n.marginTop=0,n.marginLeft=0,!i&&s&&(s=parseFloat(r.marginTop,10),r=parseFloat(r.marginLeft,10),n.top-=l-s,n.bottom-=l-s,n.left-=e-r,n.right-=e-r,n.marginTop=s,n.marginLeft=r),n=(i?t.contains(o):t===o&&"BODY"!==o.nodeName)?function(e,t,i){var s=2<arguments.length&&void 0!==i&&i,i=g(t,"top"),t=g(t,"left"),s=s?-1:1;return e.top+=i*s,e.bottom+=i*s,e.left+=t*s,e.right+=t*s,e}(n,t):n}function r(e,t,i,s){var n,a,o,r,l,c,d={top:0,left:0},u=m(e,t);return"viewport"===s?(o=(a=u).ownerDocument.documentElement,r=b(a,o),l=L(o.clientWidth,window.innerWidth||0),c=L(o.clientHeight,window.innerHeight||0),a=g(o),o=g(o,"left"),d=y({top:a-r.top+r.marginTop,left:o-r.left+r.marginLeft,width:l,height:c})):("scrollParent"===s?"BODY"===(n=f(h(t))).nodeName&&(n=e.ownerDocument.documentElement):n="window"===s?e.ownerDocument.documentElement:s,s=b(n,u),"HTML"!==n.nodeName||function e(t){var i=t.nodeName;return"BODY"!==i&&"HTML"!==i&&("fixed"===p(t,"position")||e(h(t)))}(u)?d=s:(u=(n=v()).height,n=n.width,d.top+=s.top-s.marginTop,d.bottom=u+s.top,d.left+=s.left-s.marginLeft,d.right=n+s.left)),d.left+=i,d.top+=i,d.right-=i,d.bottom-=i,d}function l(e,t,i,s,n,a){a=5<arguments.length&&void 0!==a?a:0;if(-1===e.indexOf("auto"))return e;var n=r(i,s,a,n),o={top:{width:n.width,height:t.top-n.top},right:{width:n.right-t.right,height:n.height},bottom:{width:n.width,height:n.bottom-t.bottom},left:{width:t.left-n.left,height:n.height}},t=Object.keys(o).map(function(e){return W({key:e},o[e],{area:(e=o[e]).width*e.height})}).sort(function(e,t){return t.area-e.area}),n=t.filter(function(e){var t=e.width,e=e.height;return t>=i.clientWidth&&e>=i.clientHeight}),t=(0<n.length?n:t)[0].key,e=e.split("-")[1];return t+(e?"-"+e:"")}function u(e,t,i){return b(i,m(t,i))}function w(e){var t=getComputedStyle(e),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),t=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+t,height:e.offsetHeight+i}}function x(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function _(e,t,i){i=i.split("-")[0];var s=w(e),n={width:s.width,height:s.height},a=-1!==["right","left"].indexOf(i),o=a?"top":"left",r=a?"left":"top",e=a?"height":"width",a=a?"width":"height";return n[o]=t[o]+t[e]/2-s[e]/2,n[r]=i===r?t[r]-s[a]:t[x(r)],n}function S(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function T(e,i,t){return(void 0===t?e:e.slice(0,function(e,t,i){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===i});var s=S(e,function(e){return e[t]===i});return e.indexOf(s)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&n(t)&&(i.offsets.popper=y(i.offsets.popper),i.offsets.reference=y(i.offsets.reference),i=t(i,e))}),i}function e(e,i){return e.some(function(e){var t=e.name;return e.enabled&&t===i})}function C(e){for(var t=[!1,"ms","Webkit","Moz","O"],i=e.charAt(0).toUpperCase()+e.slice(1),s=0;s<t.length-1;s++){var n=t[s],n=n?""+n+i:e;if(void 0!==document.body.style[n])return n}return null}function E(e){e=e.ownerDocument;return e?e.defaultView:window}function t(e,t,i,s){i.updateBound=s,E(e).addEventListener("resize",i.updateBound,{passive:!0});e=f(e);return function e(t,i,s,n){var a="BODY"===t.nodeName,t=a?t.ownerDocument.defaultView:t;t.addEventListener(i,s,{passive:!0}),a||e(f(t.parentNode),i,s,n),n.push(t)}(e,"scroll",i.updateBound,i.scrollParents),i.scrollElement=e,i.eventsEnabled=!0,i}function i(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,E(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function k(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function $(i,s){Object.keys(s).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&k(s[e])&&(t="px"),i.style[e]=s[e]+t})}function A(e,t,i){var s=S(e,function(e){return e.name===t}),n=!!s&&e.some(function(e){return e.name===i&&e.enabled&&e.order<s.order});return n||(e="`"+t+"`",console.warn("`"+i+"` modifier is required by "+e+" modifier in order to work, be sure to include it before "+e+"!")),n}function P(e,t){t=1<arguments.length&&void 0!==t&&t,e=U.indexOf(e),e=U.slice(e+1).concat(U.slice(0,e));return t?e.reverse():e}function I(e,r,l,t){var n=[0,0],s=-1!==["right","left"].indexOf(t),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),t=i.indexOf(S(i,function(e){return-1!==e.search(/,|\s/)}));i[t]&&-1===i[t].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");e=/\s*,\s*|\s+/;return(-1===t?[i]:[i.slice(0,t).concat([i[t].split(e)[0]]),[i[t].split(e)[1]].concat(i.slice(t+1))]).map(function(e,t){var o=(1===t?!s:s)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return i=o,s=r,n=l,e=+(a=(t=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],a=a[2],e?0!==a.indexOf("%")?"vh"!==a&&"vw"!==a?e:("vh"===a?L(document.documentElement.clientHeight,window.innerHeight||0):L(document.documentElement.clientWidth,window.innerWidth||0))/100*e:y(n="%p"===a?s:n)[i]/100*e:t;var t,i,s,n,a})}).forEach(function(i,s){i.forEach(function(e,t){k(e)&&(n[s]+=e*("-"===i[t-1]?-1:1))})}),n}for(var M=Math.min,O=Math.floor,L=Math.max,z="undefined"!=typeof window&&"undefined"!=typeof document,D=["Edge","Trident","Firefox"],N=0,j=0;j<D.length;j+=1)if(z&&0<=navigator.userAgent.indexOf(D[j])){N=1;break}function H(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var B,R=z&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},N))}},F=function(){return B=null==B?-1!==navigator.appVersion.indexOf("MSIE 10"):B},q=function(e,t,i){return t&&Q(e.prototype,t),i&&Q(e,i),e},W=Object.assign||function(e){for(var t,i=1;i<arguments.length;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},V=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],U=V.slice(3),Y="flip",G="clockwise",X="counterclockwise",q=(q(K,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=u(this.state,this.popper,this.reference),e.placement=l(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=_(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=T(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,e(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[C("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=t(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return i.call(this)}}]),K);function K(e,t){var i=this,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,K),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=R(this.update.bind(this)),this.options=W({},K.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(W({},K.Defaults.modifiers,s.modifiers)).forEach(function(e){i.options.modifiers[e]=W({},K.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return W({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&n(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();t=this.options.eventsEnabled;t&&this.enableEventListeners(),this.state.eventsEnabled=t}function Q(e,t){for(var i,s=0;s<t.length;s++)(i=t[s]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}return q.Utils=("undefined"==typeof window?global:window).PopperUtils,q.placements=V,q.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,i,s=e.placement,n=s.split("-")[0],a=s.split("-")[1];return a&&(t=(i=e.offsets).reference,s=i.popper,n=(i=-1!==["bottom","top"].indexOf(n))?"width":"height",n={start:H({},i=i?"left":"top",t[i]),end:H({},i,t[i]+t[n]-s[n])},e.offsets.popper=W({},s,n[a])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var i=t.offset,s=e.placement,t=(n=e.offsets).popper,n=n.reference,s=s.split("-")[0],n=k(+i)?[+i,0]:I(i,t,n,s);return"left"===s?(t.top+=n[0],t.left-=n[1]):"right"===s?(t.top+=n[0],t.left+=n[1]):"top"===s?(t.left+=n[0],t.top-=n[1]):"bottom"===s&&(t.left+=n[0],t.top+=n[1]),e.popper=t,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,s){var t=s.boundariesElement||c(e.instance.popper);e.instance.reference===t&&(t=c(t));var n=r(e.instance.popper,e.instance.reference,s.padding,t);s.boundaries=n;var t=s.priority,a=e.offsets.popper,i={primary:function(e){var t=a[e];return a[e]<n[e]&&!s.escapeWithReference&&(t=L(a[e],n[e])),H({},e,t)},secondary:function(e){var t="right"===e?"left":"top",i=a[t];return a[e]>n[e]&&!s.escapeWithReference&&(i=M(a[t],n[e]-("right"===e?a.width:a.height))),H({},t,i)}};return t.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";a=W({},a,i[t](e))}),e.offsets.popper=a,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,i=t.popper,s=t.reference,n=e.placement.split("-")[0],a=O,o=-1!==["top","bottom"].indexOf(n),t=o?"right":"bottom",n=o?"left":"top",o=o?"width":"height";return i[t]<a(s[n])&&(e.offsets.popper[n]=a(s[n])-i[o]),i[n]>a(s[t])&&(e.offsets.popper[n]=a(s[t])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(!A(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var s=e.placement.split("-")[0],n=e.offsets,a=n.popper,o=n.reference,r=-1!==["left","right"].indexOf(s),l=r?"height":"width",c=r?"Top":"Left",d=c.toLowerCase(),t=r?"left":"top",n=r?"bottom":"right",s=w(i)[l];o[n]-s<a[d]&&(e.offsets.popper[d]-=a[d]-(o[n]-s)),o[d]+s>a[n]&&(e.offsets.popper[d]+=o[d]+s-a[n]),e.offsets.popper=y(e.offsets.popper);r=o[d]+o[l]/2-s/2,n=p(e.instance.popper),o=parseFloat(n["margin"+c],10),c=parseFloat(n["border"+c+"Width"],10),c=r-e.offsets.popper[d]-o-c,c=L(M(a[l]-s,c),0);return e.arrowElement=i,e.offsets.arrow=(H(i={},d,Math.round(c)),H(i,t,""),i),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,c){if(e(l.instance.modifiers,"inner"))return l;if(l.flipped&&l.placement===l.originalPlacement)return l;var d=r(l.instance.popper,l.instance.reference,c.padding,c.boundariesElement),u=l.placement.split("-")[0],p=x(u),h=l.placement.split("-")[1]||"",f=[];switch(c.behavior){case Y:f=[u,p];break;case G:f=P(u);break;case X:f=P(u,!0);break;default:f=c.behavior}return f.forEach(function(e,t){if(u!==e||f.length===t+1)return l;u=l.placement.split("-")[0],p=x(u);var i=l.offsets.popper,s=l.offsets.reference,n=O,a="left"===u&&n(i.right)>n(s.left)||"right"===u&&n(i.left)<n(s.right)||"top"===u&&n(i.bottom)>n(s.top)||"bottom"===u&&n(i.top)<n(s.bottom),o=n(i.left)<n(d.left),r=n(i.right)>n(d.right),e=n(i.top)<n(d.top),s=n(i.bottom)>n(d.bottom),i="left"===u&&o||"right"===u&&r||"top"===u&&e||"bottom"===u&&s,n=-1!==["top","bottom"].indexOf(u),s=!!c.flipVariations&&(n&&"start"===h&&o||n&&"end"===h&&r||!n&&"start"===h&&e||!n&&"end"===h&&s);(a||i||s)&&(l.flipped=!0,(a||i)&&(u=f[t+1]),s&&(h="end"===(s=h)?"start":"start"===s?"end":s),l.placement=u+(h?"-"+h:""),l.offsets.popper=W({},l.offsets.popper,_(l.instance.popper,l.offsets.reference,l.placement)),l=T(l.instance.modifiers,l,"flip"))}),l},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,i=t.split("-")[0],s=e.offsets,n=s.popper,a=s.reference,o=-1!==["left","right"].indexOf(i),s=-1===["top","left"].indexOf(i);return n[o?"left":"top"]=a[i]-(s?n[o?"width":"height"]:0),e.placement=x(t),e.offsets.popper=y(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!A(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,i=S(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var i=t.x,s=t.y,n=e.offsets.popper,a=S(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0===a?t.gpuAcceleration:a,r=d(c(e.instance.popper)),l={position:n.position},t={left:O(n.left),top:O(n.top),bottom:O(n.bottom),right:O(n.right)},a="bottom"===i?"top":"bottom",n="right"===s?"left":"right",i=C("transform"),s="bottom"==a?-r.height+t.bottom:t.top,t="right"==n?-r.width+t.right:t.left;o&&i?(l[i]="translate3d("+t+"px, "+s+"px, 0)",l[a]=0,l[n]=0,l.willChange="transform"):(i="right"==n?-1:1,l[a]=s*("bottom"==a?-1:1),l[n]=t*i,l.willChange=a+", "+n);n={"x-placement":e.placement};return e.attributes=W({},n,e.attributes),e.styles=W({},l,e.styles),e.arrowStyles=W({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return $(e.instance.popper,e.styles),t=e.instance.popper,i=e.attributes,Object.keys(i).forEach(function(e){!1===i[e]?t.removeAttribute(e):t.setAttribute(e,i[e])}),e.arrowElement&&Object.keys(e.arrowStyles).length&&$(e.arrowElement,e.arrowStyles),e;var t,i},onLoad:function(e,t,i,s,n){var a=u(0,t,e),e=l(i.placement,a,t,e,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),$(t,{position:"absolute"}),i},gpuAcceleration:void 0}}},q}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t(e.bootstrap={},e.jQuery,e.Popper)}(this,function(e,t,n){"use strict";function s(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function _(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,s=arguments[t];for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e}).apply(this,arguments)}t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var a,i,o,r,l,c,d,u,p,h,f,m,g,v,y,b,w,x,T,C,E,k,$,A,P,I,M,O,L,z,D,N,j,H,B,R,F,q,W,V,U,Y,G,X,K,Q,Z,J,ee,te,ie,se,ne,ae,oe,re,le,ce,de,ue,pe,he,fe,me,ge=(he=t,fe=!1,me={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");"#"===(t=!t||"#"===t?e.getAttribute("href")||"":t).charAt(0)&&(e=t,t=e="function"==typeof he.escapeSelector?he.escapeSelector(e).substr(1):e.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return 0<he(document).find(t).length?t:null}catch(e){return null}},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){he(e).trigger(fe.end)},supportsTransitionEnd:function(){return Boolean(fe)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,i){for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var n=i[s],a=t[s],a=a&&me.isElement(a)?"element":{}.toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase();if(!new RegExp(n).test(a))throw new Error(e.toUpperCase()+': Option "'+s+'" provided type "'+a+'" but expected type "'+n+'".')}}},fe=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},he.fn.emulateTransitionEnd=function(e){var t=this,i=!1;return he(this).one(me.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||me.triggerTransitionEnd(t)},e),this},me.supportsTransitionEnd()&&(he.event.special[me.TRANSITION_END]={bindType:fe.end,delegateType:fe.end,handle:function(e){if(he(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),me),ve=(we="."+(o="bs.alert"),r=(a=t).fn[i="alert"],l={CLOSE:"close"+we,CLOSED:"closed"+we,CLICK_DATA_API:"click"+we+".data-api"},(Ce=Ie.prototype).close=function(e){e=e||this._element;e=this._getRootElement(e);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},Ce.dispose=function(){a.removeData(this._element,o),this._element=null},Ce._getRootElement=function(e){var t=ge.getSelectorFromElement(e),i=!1;return i=(i=t?a(t)[0]:i)||a(e).closest(".alert")[0]},Ce._triggerCloseEvent=function(e){var t=a.Event(l.CLOSE);return a(e).trigger(t),t},Ce._removeElement=function(t){var i=this;a(t).removeClass("show"),ge.supportsTransitionEnd()&&a(t).hasClass("fade")?a(t).one(ge.TRANSITION_END,function(e){return i._destroyElement(t,e)}).emulateTransitionEnd(150):this._destroyElement(t)},Ce._destroyElement=function(e){a(e).detach().trigger(l.CLOSED).remove()},Ie._jQueryInterface=function(i){return this.each(function(){var e=a(this),t=e.data(o);t||(t=new Ie(this),e.data(o,t)),"close"===i&&t[i](this)})},Ie._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},_(Ie,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),c=Ie,a(document).on(l.CLICK_DATA_API,'[data-dismiss="alert"]',c._handleDismiss(new c)),a.fn[i]=c._jQueryInterface,a.fn[i].Constructor=c,a.fn[i].noConflict=function(){return a.fn[i]=r,c._jQueryInterface},c),ye=(xe="."+(p="bs.button"),h=(d=t).fn[u="button"],f="active",Te='[data-toggle^="button"]',Se={CLICK_DATA_API:"click"+xe+(_e=".data-api"),FOCUS_BLUR_DATA_API:"focus"+xe+_e+" blur"+xe+_e},(Ee=Pe.prototype).toggle=function(){var e=!0,t=!0,i=d(this._element).closest('[data-toggle="buttons"]')[0];if(i){var s,n=d(this._element).find("input")[0];if(n){if("radio"===n.type&&(n.checked&&d(this._element).hasClass(f)?e=!1:(s=d(i).find(".active")[0])&&d(s).removeClass(f)),e){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!d(this._element).hasClass(f),d(n).trigger("change")}n.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!d(this._element).hasClass(f)),e&&d(this._element).toggleClass(f)},Ee.dispose=function(){d.removeData(this._element,p),this._element=null},Pe._jQueryInterface=function(t){return this.each(function(){var e=d(this).data(p);e||(e=new Pe(this),d(this).data(p,e)),"toggle"===t&&e[t]()})},_(Pe,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),m=Pe,d(document).on(Se.CLICK_DATA_API,Te,function(e){e.preventDefault();e=e.target;d(e).hasClass("btn")||(e=d(e).closest(".btn")),m._jQueryInterface.call(d(e),"toggle")}).on(Se.FOCUS_BLUR_DATA_API,Te,function(e){var t=d(e.target).closest(".btn")[0];d(t).toggleClass("focus",/^focus(in)?$/.test(e.type))}),d.fn[u]=m._jQueryInterface,d.fn[u].Constructor=m,d.fn[u].noConflict=function(){return d.fn[u]=h,m._jQueryInterface},m),be=function(d){var e,t="carousel",n="bs.carousel",i="."+n,s=d.fn[t],a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},o={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},u="next",r="prev",p={SLIDE:"slide"+i,SLID:"slid"+i,KEYDOWN:"keydown"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i,TOUCHEND:"touchend"+i,LOAD_DATA_API:"load"+i+".data-api",CLICK_DATA_API:"click"+i+".data-api"},h="active",l=".active",f=".active.carousel-item",c=".carousel-item",m=".carousel-item-next, .carousel-item-prev",g=".carousel-indicators",v="[data-slide], [data-slide-to]",y='[data-ride="carousel"]',b=((e=w.prototype).next=function(){this._isSliding||this._slide(u)},e.nextWhenVisible=function(){!document.hidden&&d(this._element).is(":visible")&&"hidden"!==d(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(r)},e.pause=function(e){e||(this._isPaused=!0),d(this._element).find(m)[0]&&ge.supportsTransitionEnd()&&(ge.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(e){var t=this;this._activeElement=d(this._element).find(f)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)d(this._element).one(p.SLID,function(){return t.to(e)});else{if(i===e)return this.pause(),void this.cycle();this._slide(i<e?u:r,this._items[e])}},e.dispose=function(){d(this._element).off(i),d.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(e){return e=S({},a,e),ge.typeCheckConfig(t,e,o),e},e._addEventListeners=function(){var t=this;this._config.keyboard&&d(this._element).on(p.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(d(this._element).on(p.MOUSEENTER,function(e){return t.pause(e)}).on(p.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&d(this._element).on(p.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},e._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},e._getItemIndex=function(e){return this._items=d.makeArray(d(e).parent().find(c)),this._items.indexOf(e)},e._getItemByDirection=function(e,t){var i=e===u,s=e===r,n=this._getItemIndex(t),a=this._items.length-1;if((s&&0===n||i&&n===a)&&!this._config.wrap)return t;e=(n+(e===r?-1:1))%this._items.length;return-1==e?this._items[this._items.length-1]:this._items[e]},e._triggerSlideEvent=function(e,t){var i=this._getItemIndex(e),s=this._getItemIndex(d(this._element).find(f)[0]),i=d.Event(p.SLIDE,{relatedTarget:e,direction:t,from:s,to:i});return d(this._element).trigger(i),i},e._setActiveIndicatorElement=function(e){this._indicatorsElement&&(d(this._indicatorsElement).find(l).removeClass(h),(e=this._indicatorsElement.children[this._getItemIndex(e)])&&d(e).addClass(h))},e._slide=function(e,t){var i,s,n,a=this,o=d(this._element).find(f)[0],r=this._getItemIndex(o),l=t||o&&this._getItemByDirection(e,o),c=this._getItemIndex(l),t=Boolean(this._interval),e=e===u?(i="carousel-item-left",s="carousel-item-next","left"):(i="carousel-item-right",s="carousel-item-prev","right");l&&d(l).hasClass(h)?this._isSliding=!1:!this._triggerSlideEvent(l,e).isDefaultPrevented()&&o&&l&&(this._isSliding=!0,t&&this.pause(),this._setActiveIndicatorElement(l),n=d.Event(p.SLID,{relatedTarget:l,direction:e,from:r,to:c}),ge.supportsTransitionEnd()&&d(this._element).hasClass("slide")?(d(l).addClass(s),ge.reflow(l),d(o).addClass(i),d(l).addClass(i),d(o).one(ge.TRANSITION_END,function(){d(l).removeClass(i+" "+s).addClass(h),d(o).removeClass(h+" "+s+" "+i),a._isSliding=!1,setTimeout(function(){return d(a._element).trigger(n)},0)}).emulateTransitionEnd(600)):(d(o).removeClass(h),d(l).addClass(h),this._isSliding=!1,d(this._element).trigger(n)),t&&this.cycle())},w._jQueryInterface=function(s){return this.each(function(){var e=d(this).data(n),t=S({},a,d(this).data());"object"==typeof s&&(t=S({},t,s));var i="string"==typeof s?s:t.slide;if(e||(e=new w(this,t),d(this).data(n,e)),"number"==typeof s)e.to(s);else if("string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}else t.interval&&(e.pause(),e.cycle())})},w._dataApiClickHandler=function(e){var t,i,s=ge.getSelectorFromElement(this);!s||(t=d(s)[0])&&d(t).hasClass("carousel")&&(i=S({},d(t).data(),d(this).data()),(s=this.getAttribute("data-slide-to"))&&(i.interval=!1),w._jQueryInterface.call(d(t),i),s&&d(t).data(n).to(s),e.preventDefault())},_(w,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),w);function w(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(t),this._element=d(e)[0],this._indicatorsElement=d(this._element).find(g)[0],this._addEventListeners()}return d(document).on(p.CLICK_DATA_API,v,b._dataApiClickHandler),d(window).on(p.LOAD_DATA_API,function(){d(y).each(function(){var e=d(this);b._jQueryInterface.call(e,e.data())})}),d.fn[t]=b._jQueryInterface,d.fn[t].Constructor=b,d.fn[t].noConflict=function(){return d.fn[t]=s,b._jQueryInterface},b}(t),we=function(o){var t="collapse",a="bs.collapse",e="."+a,i=o.fn[t],n={toggle:!0,parent:""},s={toggle:"boolean",parent:"(string|element)"},r={SHOW:"show"+e,SHOWN:"shown"+e,HIDE:"hide"+e,HIDDEN:"hidden"+e,CLICK_DATA_API:"click"+e+".data-api"},l="show",c="collapse",d="collapsing",u="collapsed",p=".show, .collapsing",h='[data-toggle="collapse"]',f=((e=m.prototype).toggle=function(){o(this._element).hasClass(l)?this.hide():this.show()},e.show=function(){var e,t,i,s,n=this;this._isTransitioning||o(this._element).hasClass(l)||(s=this._parent&&0===(s=o.makeArray(o(this._parent).find(p).filter('[data-parent="'+this._config.parent+'"]'))).length?null:s)&&(i=o(s).not(this._selector).data(a))&&i._isTransitioning||(e=o.Event(r.SHOW),o(this._element).trigger(e),e.isDefaultPrevented()||(s&&(m._jQueryInterface.call(o(s).not(this._selector),"hide"),i||o(s).data(a,null)),t=this._getDimension(),o(this._element).removeClass(c).addClass(d),(this._element.style[t]=0)<this._triggerArray.length&&o(this._triggerArray).removeClass(u).attr("aria-expanded",!0),this.setTransitioning(!0),i=function(){o(n._element).removeClass(d).addClass(c).addClass(l),n._element.style[t]="",n.setTransitioning(!1),o(n._element).trigger(r.SHOWN)},ge.supportsTransitionEnd()?(s="scroll"+(t[0].toUpperCase()+t.slice(1)),o(this._element).one(ge.TRANSITION_END,i).emulateTransitionEnd(600),this._element.style[t]=this._element[s]+"px"):i()))},e.hide=function(){var e=this;if(!this._isTransitioning&&o(this._element).hasClass(l)){var t=o.Event(r.HIDE);if(o(this._element).trigger(t),!t.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",ge.reflow(this._element),o(this._element).addClass(d).removeClass(c).removeClass(l),0<this._triggerArray.length)for(var s=0;s<this._triggerArray.length;s++){var n=this._triggerArray[s],a=ge.getSelectorFromElement(n);null!==a&&(o(a).hasClass(l)||o(n).addClass(u).attr("aria-expanded",!1))}this.setTransitioning(!0);t=function(){e.setTransitioning(!1),o(e._element).removeClass(d).addClass(c).trigger(r.HIDDEN)};this._element.style[i]="",ge.supportsTransitionEnd()?o(this._element).one(ge.TRANSITION_END,t).emulateTransitionEnd(600):t()}}},e.setTransitioning=function(e){this._isTransitioning=e},e.dispose=function(){o.removeData(this._element,a),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(e){return(e=S({},n,e)).toggle=Boolean(e.toggle),ge.typeCheckConfig(t,e,s),e},e._getDimension=function(){return o(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var i=this,e=null;ge.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=o(this._config.parent)[0];var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return o(e).find(t).each(function(e,t){i._addAriaAndCollapsedClass(m._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function(e,t){e&&(e=o(e).hasClass(l),0<t.length&&o(t).toggleClass(u,!e).attr("aria-expanded",e))},m._getTargetFromElement=function(e){e=ge.getSelectorFromElement(e);return e?o(e)[0]:null},m._jQueryInterface=function(s){return this.each(function(){var e=o(this),t=e.data(a),i=S({},n,e.data(),"object"==typeof s&&s);if(!t&&i.toggle&&/show|hide/.test(s)&&(i.toggle=!1),t||(t=new m(this,i),e.data(a,t)),"string"==typeof s){if(void 0===t[s])throw new TypeError('No method named "'+s+'"');t[s]()}})},_(m,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return n}}]),m);function m(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=o.makeArray(o('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=o(h),s=0;s<i.length;s++){var n=i[s],a=ge.getSelectorFromElement(n);null!==a&&0<o(a).filter(e).length&&(this._selector=a,this._triggerArray.push(n))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return o(document).on(r.CLICK_DATA_API,h,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=o(this),e=ge.getSelectorFromElement(this);o(e).each(function(){var e=o(this),t=e.data(a)?"toggle":i.data();f._jQueryInterface.call(e,t)})}),o.fn[t]=f._jQueryInterface,o.fn[t].Constructor=f,o.fn[t].noConflict=function(){return o.fn[t]=i,f._jQueryInterface},f}(t),xe=(J="dropdown",te="."+(ee="bs.dropdown"),Ce=".data-api",ie=(Z=t).fn[J],se=new RegExp("38|40|27"),ne={HIDE:"hide"+te,HIDDEN:"hidden"+te,SHOW:"show"+te,SHOWN:"shown"+te,CLICK:"click"+te,CLICK_DATA_API:"click"+te+Ce,KEYDOWN_DATA_API:"keydown"+te+Ce,KEYUP_DATA_API:"keyup"+te+Ce},ae="disabled",oe="show",re="dropdown-menu-right",le='[data-toggle="dropdown"]',ce=".dropdown-menu",de={offset:0,flip:!0,boundary:"scrollParent"},ue={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},(Ce=Ae.prototype).toggle=function(){if(!this._element.disabled&&!Z(this._element).hasClass(ae)){var e=Ae._getParentFromElement(this._element),t=Z(this._menu).hasClass(oe);if(Ae._clearMenus(),!t){var i={relatedTarget:this._element},t=Z.Event(ne.SHOW,i);if(Z(e).trigger(t),!t.isDefaultPrevented()){if(!this._inNavbar){if(void 0===n)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");t=this._element;Z(e).hasClass("dropup")&&(Z(this._menu).hasClass("dropdown-menu-left")||Z(this._menu).hasClass(re))&&(t=e),"scrollParent"!==this._config.boundary&&Z(e).addClass("position-static"),this._popper=new n(t,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===Z(e).closest(".navbar-nav").length&&Z("body").children().on("mouseover",null,Z.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),Z(this._menu).toggleClass(oe),Z(e).toggleClass(oe).trigger(Z.Event(ne.SHOWN,i))}}}},Ce.dispose=function(){Z.removeData(this._element,ee),Z(this._element).off(te),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},Ce.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},Ce._addEventListeners=function(){var t=this;Z(this._element).on(ne.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},Ce._getConfig=function(e){return e=S({},this.constructor.Default,Z(this._element).data(),e),ge.typeCheckConfig(J,e,this.constructor.DefaultType),e},Ce._getMenuElement=function(){var e;return this._menu||(e=Ae._getParentFromElement(this._element),this._menu=Z(e).find(ce)[0]),this._menu},Ce._getPlacement=function(){var e=Z(this._element).parent(),t="bottom-start";return e.hasClass("dropup")?(t="top-start",Z(this._menu).hasClass(re)&&(t="top-end")):e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":Z(this._menu).hasClass(re)&&(t="bottom-end"),t},Ce._detectNavbar=function(){return 0<Z(this._element).closest(".navbar").length},Ce._getPopperConfig=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=S({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},Ae._jQueryInterface=function(t){return this.each(function(){var e=Z(this).data(ee);if(e||(e=new Ae(this,"object"==typeof t?t:null),Z(this).data(ee,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},Ae._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=Z.makeArray(Z(le)),i=0;i<t.length;i++){var s,n=Ae._getParentFromElement(t[i]),a=Z(t[i]).data(ee),o={relatedTarget:t[i]};a&&(s=a._menu,!Z(n).hasClass(oe)||e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&Z.contains(n,e.target)||(a=Z.Event(ne.HIDE,o),Z(n).trigger(a),a.isDefaultPrevented()||("ontouchstart"in document.documentElement&&Z("body").children().off("mouseover",null,Z.noop),t[i].setAttribute("aria-expanded","false"),Z(s).removeClass(oe),Z(n).removeClass(oe).trigger(Z.Event(ne.HIDDEN,o)))))}},Ae._getParentFromElement=function(e){var t,i=ge.getSelectorFromElement(e);return(t=i?Z(i)[0]:t)||e.parentNode},Ae._dataApiKeydownHandler=function(e){var t,i,s;(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||Z(e.target).closest(ce).length):!se.test(e.which))||(e.preventDefault(),e.stopPropagation(),this.disabled||Z(this).hasClass(ae))||(s=Ae._getParentFromElement(this),((i=Z(s).hasClass(oe))||27===e.which&&32===e.which)&&(!i||27!==e.which&&32!==e.which)?0!==(t=Z(s).find(".dropdown-menu .dropdown-item:not(.disabled)").get()).length&&(i=t.indexOf(e.target),38===e.which&&0<i&&i--,40===e.which&&i<t.length-1&&i++,t[i=i<0?0:i].focus()):(27===e.which&&(s=Z(s).find(le)[0],Z(s).trigger("focus")),Z(this).trigger("click")))},_(Ae,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return de}},{key:"DefaultType",get:function(){return ue}}]),pe=Ae,Z(document).on(ne.KEYDOWN_DATA_API,le,pe._dataApiKeydownHandler).on(ne.KEYDOWN_DATA_API,ce,pe._dataApiKeydownHandler).on(ne.CLICK_DATA_API+" "+ne.KEYUP_DATA_API,pe._clearMenus).on(ne.CLICK_DATA_API,le,function(e){e.preventDefault(),e.stopPropagation(),pe._jQueryInterface.call(Z(this),"toggle")}).on(ne.CLICK_DATA_API,".dropdown form",function(e){e.stopPropagation()}),Z.fn[J]=pe._jQueryInterface,Z.fn[J].Constructor=pe,Z.fn[J].noConflict=function(){return Z.fn[J]=ie,pe._jQueryInterface},pe),_e=function(a){var e,o="bs.modal",t="."+o,i=a.fn.modal,s={backdrop:!0,keyboard:!0,focus:!0,show:!0},n={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},r={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,FOCUSIN:"focusin"+t,RESIZE:"resize"+t,CLICK_DISMISS:"click.dismiss"+t,KEYDOWN_DISMISS:"keydown.dismiss"+t,MOUSEUP_DISMISS:"mouseup.dismiss"+t,MOUSEDOWN_DISMISS:"mousedown.dismiss"+t,CLICK_DATA_API:"click"+t+".data-api"},l="modal-open",c="fade",d="show",u=".modal-dialog",p='[data-toggle="modal"]',h='[data-dismiss="modal"]',f=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",m=".sticky-top",g=".navbar-toggler",v=((e=y.prototype).toggle=function(e){return this._isShown?this.hide():this.show(e)},e.show=function(e){var t,i=this;this._isTransitioning||this._isShown||(ge.supportsTransitionEnd()&&a(this._element).hasClass(c)&&(this._isTransitioning=!0),t=a.Event(r.SHOW,{relatedTarget:e}),a(this._element).trigger(t),this._isShown||t.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),a(document.body).addClass(l),this._setEscapeEvent(),this._setResizeEvent(),a(this._element).on(r.CLICK_DISMISS,h,function(e){return i.hide(e)}),a(this._dialog).on(r.MOUSEDOWN_DISMISS,function(){a(i._element).one(r.MOUSEUP_DISMISS,function(e){a(e.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(e)})))},e.hide=function(e){var t=this;e&&e.preventDefault(),!this._isTransitioning&&this._isShown&&(e=a.Event(r.HIDE),a(this._element).trigger(e),this._isShown&&!e.isDefaultPrevented()&&(this._isShown=!1,(e=ge.supportsTransitionEnd()&&a(this._element).hasClass(c))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),a(document).off(r.FOCUSIN),a(this._element).removeClass(d),a(this._element).off(r.CLICK_DISMISS),a(this._dialog).off(r.MOUSEDOWN_DISMISS),e?a(this._element).one(ge.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(300):this._hideModal()))},e.dispose=function(){a.removeData(this._element,o),a(window,document,this._element,this._backdrop).off(t),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(e){return e=S({},s,e),ge.typeCheckConfig("modal",e,n),e},e._showElement=function(e){var t=this,i=ge.supportsTransitionEnd()&&a(this._element).hasClass(c);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&ge.reflow(this._element),a(this._element).addClass(d),this._config.focus&&this._enforceFocus();function s(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,a(t._element).trigger(n)}var n=a.Event(r.SHOWN,{relatedTarget:e});i?a(this._dialog).one(ge.TRANSITION_END,s).emulateTransitionEnd(300):s()},e._enforceFocus=function(){var t=this;a(document).off(r.FOCUSIN).on(r.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===a(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?a(this._element).on(r.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||a(this._element).off(r.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?a(window).on(r.RESIZE,function(e){return t.handleUpdate(e)}):a(window).off(r.RESIZE)},e._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){a(document.body).removeClass(l),e._resetAdjustments(),e._resetScrollbar(),a(e._element).trigger(r.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(a(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(e){var t,i=this,s=a(this._element).hasClass(c)?c:"";this._isShown&&this._config.backdrop?(t=ge.supportsTransitionEnd()&&s,this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",s&&a(this._backdrop).addClass(s),a(this._backdrop).appendTo(document.body),a(this._element).on(r.CLICK_DISMISS,function(e){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide())}),t&&ge.reflow(this._backdrop),a(this._backdrop).addClass(d),e&&(t?a(this._backdrop).one(ge.TRANSITION_END,e).emulateTransitionEnd(150):e())):!this._isShown&&this._backdrop?(a(this._backdrop).removeClass(d),t=function(){i._removeBackdrop(),e&&e()},ge.supportsTransitionEnd()&&a(this._element).hasClass(c)?a(this._backdrop).one(ge.TRANSITION_END,t).emulateTransitionEnd(150):t()):e&&e()},e._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var e,t,n=this;this._isBodyOverflowing&&(a(f).each(function(e,t){var i=a(t)[0].style.paddingRight,s=a(t).css("padding-right");a(t).data("padding-right",i).css("padding-right",parseFloat(s)+n._scrollbarWidth+"px")}),a(m).each(function(e,t){var i=a(t)[0].style.marginRight,s=a(t).css("margin-right");a(t).data("margin-right",i).css("margin-right",parseFloat(s)-n._scrollbarWidth+"px")}),a(g).each(function(e,t){var i=a(t)[0].style.marginRight,s=a(t).css("margin-right");a(t).data("margin-right",i).css("margin-right",parseFloat(s)+n._scrollbarWidth+"px")}),e=document.body.style.paddingRight,t=a("body").css("padding-right"),a("body").data("padding-right",e).css("padding-right",parseFloat(t)+this._scrollbarWidth+"px"))},e._resetScrollbar=function(){a(f).each(function(e,t){var i=a(t).data("padding-right");void 0!==i&&a(t).css("padding-right",i).removeData("padding-right")}),a(m+", "+g).each(function(e,t){var i=a(t).data("margin-right");void 0!==i&&a(t).css("margin-right",i).removeData("margin-right")});var e=a("body").data("padding-right");void 0!==e&&a("body").css("padding-right",e).removeData("padding-right")},e._getScrollbarWidth=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},y._jQueryInterface=function(i,s){return this.each(function(){var e=a(this).data(o),t=S({},y.Default,a(this).data(),"object"==typeof i&&i);if(e||(e=new y(this,t),a(this).data(o,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](s)}else t.show&&e.show(s)})},_(y,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return s}}]),y);function y(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=a(e).find(u)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return a(document).on(r.CLICK_DATA_API,p,function(e){var t,i=this,s=ge.getSelectorFromElement(this);s&&(t=a(s)[0]);s=a(t).data(o)?"toggle":S({},a(t).data(),a(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var n=a(t).one(r.SHOW,function(e){e.isDefaultPrevented()||n.one(r.HIDDEN,function(){a(i).is(":visible")&&i.focus()})});v._jQueryInterface.call(a(t),s,this)}),a.fn.modal=v._jQueryInterface,a.fn.modal.Constructor=v,a.fn.modal.noConflict=function(){return a.fn.modal=i,v._jQueryInterface},v}(t),Se=(N="tooltip",H="."+(j="bs.tooltip"),B=(D=t).fn[N],R=new RegExp("(^|\\s)bs-tooltip\\S+","g"),W={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(q={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(F={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},U={HIDE:"hide"+H,HIDDEN:"hidden"+H,SHOW:(V="show")+H,SHOWN:"shown"+H,INSERTED:"inserted"+H,CLICK:"click"+H,FOCUSIN:"focusin"+H,FOCUSOUT:"focusout"+H,MOUSEENTER:"mouseenter"+H,MOUSELEAVE:"mouseleave"+H},Y="fade",G="show",X="hover",K="focus",(Ee=$e.prototype).enable=function(){this._isEnabled=!0},Ee.disable=function(){this._isEnabled=!1},Ee.toggleEnabled=function(){this._isEnabled=!this._isEnabled},Ee.toggle=function(e){var t,i;this._isEnabled&&(e?(t=this.constructor.DATA_KEY,(i=D(e.currentTarget).data(t))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),D(e.currentTarget).data(t,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)):D(this.getTipElement()).hasClass(G)?this._leave(null,this):this._enter(null,this))},Ee.dispose=function(){clearTimeout(this._timeout),D.removeData(this.element,this.constructor.DATA_KEY),D(this.element).off(this.constructor.EVENT_KEY),D(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&D(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},Ee.show=function(){var t=this;if("none"===D(this.element).css("display"))throw new Error("Please use show on visible elements");var e,i,s=D.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(D(this.element).trigger(s),e=D.contains(this.element.ownerDocument.documentElement,this.element),!s.isDefaultPrevented()&&e&&(i=this.getTipElement(),s=ge.getUID(this.constructor.NAME),i.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&D(i).addClass(Y),e="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(e),this.addAttachmentClass(s),e=!1===this.config.container?document.body:D(this.config.container),D(i).data(this.constructor.DATA_KEY,this),D.contains(this.element.ownerDocument.documentElement,this.tip)||D(i).appendTo(e),D(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),D(i).addClass(G),"ontouchstart"in document.documentElement&&D("body").children().on("mouseover",null,D.noop),i=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,D(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)},ge.supportsTransitionEnd()&&D(this.tip).hasClass(Y)?D(this.tip).one(ge.TRANSITION_END,i).emulateTransitionEnd($e._TRANSITION_DURATION):i()))},Ee.hide=function(e){function t(){i._hoverState!==V&&s.parentNode&&s.parentNode.removeChild(s),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),D(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()}var i=this,s=this.getTipElement(),n=D.Event(this.constructor.Event.HIDE);D(this.element).trigger(n),n.isDefaultPrevented()||(D(s).removeClass(G),"ontouchstart"in document.documentElement&&D("body").children().off("mouseover",null,D.noop),this._activeTrigger.click=!1,this._activeTrigger[K]=!1,this._activeTrigger[X]=!1,ge.supportsTransitionEnd()&&D(this.tip).hasClass(Y)?D(s).one(ge.TRANSITION_END,t).emulateTransitionEnd(150):t(),this._hoverState="")},Ee.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},Ee.isWithContent=function(){return Boolean(this.getTitle())},Ee.addAttachmentClass=function(e){D(this.getTipElement()).addClass("bs-tooltip-"+e)},Ee.getTipElement=function(){return this.tip=this.tip||D(this.config.template)[0],this.tip},Ee.setContent=function(){var e=D(this.getTipElement());this.setElementContent(e.find(".tooltip-inner"),this.getTitle()),e.removeClass(Y+" "+G)},Ee.setElementContent=function(e,t){var i=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?i?D(t).parent().is(e)||e.empty().append(t):e.text(D(t).text()):e[i?"html":"text"](t)},Ee.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},Ee._getAttachment=function(e){return q[e.toUpperCase()]},Ee._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){var t;"click"===e?D(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)}):"manual"!==e&&(t=e===X?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,e=e===X?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,D(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(e,i.config.selector,function(e){return i._leave(e)})),D(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=S({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},Ee._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},Ee._enter=function(e,t){var i=this.constructor.DATA_KEY;(t=t||D(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),D(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusin"===e.type?K:X]=!0),D(t.getTipElement()).hasClass(G)||t._hoverState===V?t._hoverState=V:(clearTimeout(t._timeout),t._hoverState=V,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===V&&t.show()},t.config.delay.show):t.show())},Ee._leave=function(e,t){var i=this.constructor.DATA_KEY;(t=t||D(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),D(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusout"===e.type?K:X]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},Ee._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},Ee._getConfig=function(e){return"number"==typeof(e=S({},this.constructor.Default,D(this.element).data(),e)).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),ge.typeCheckConfig(N,e,this.constructor.DefaultType),e},Ee._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},Ee._cleanTipClass=function(){var e=D(this.getTipElement()),t=e.attr("class").match(R);null!==t&&0<t.length&&e.removeClass(t.join(""))},Ee._handlePopperPlacementChange=function(e){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},Ee._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(D(e).removeClass(Y),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},$e._jQueryInterface=function(i){return this.each(function(){var e=D(this).data(j),t="object"==typeof i&&i;if((e||!/dispose|hide/.test(i))&&(e||(e=new $e(this,t),D(this).data(j,e)),"string"==typeof i)){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},_($e,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return W}},{key:"NAME",get:function(){return N}},{key:"DATA_KEY",get:function(){return j}},{key:"Event",get:function(){return U}},{key:"EVENT_KEY",get:function(){return H}},{key:"DefaultType",get:function(){return F}}]),Q=$e,D.fn[N]=Q._jQueryInterface,D.fn[N].Constructor=Q,D.fn[N].noConflict=function(){return D.fn[N]=B,Q._jQueryInterface},Q),Te=(k="popover",A="."+($="bs.popover"),P=(E=t).fn[k],I=new RegExp("(^|\\s)bs-popover\\S+","g"),M=S({},Se.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),O=S({},Se.DefaultType,{content:"(string|element|function)"}),L={HIDE:"hide"+A,HIDDEN:"hidden"+A,SHOW:"show"+A,SHOWN:"shown"+A,INSERTED:"inserted"+A,CLICK:"click"+A,FOCUSIN:"focusin"+A,FOCUSOUT:"focusout"+A,MOUSEENTER:"mouseenter"+A,MOUSELEAVE:"mouseleave"+A},z=function(e){var t;function s(){return e.apply(this,arguments)||this}i=e,(t=s).prototype=Object.create(i.prototype),(t.prototype.constructor=t).__proto__=i;var i=s.prototype;return i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){E(this.getTipElement()).addClass("bs-popover-"+e)},i.getTipElement=function(){return this.tip=this.tip||E(this.config.template)[0],this.tip},i.setContent=function(){var e=E(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=E(this.getTipElement()),t=e.attr("class").match(I);null!==t&&0<t.length&&e.removeClass(t.join(""))},s._jQueryInterface=function(i){return this.each(function(){var e=E(this).data($),t="object"==typeof i?i:null;if((e||!/destroy|hide/.test(i))&&(e||(e=new s(this,t),E(this).data($,e)),"string"==typeof i)){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},_(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return M}},{key:"NAME",get:function(){return k}},{key:"DATA_KEY",get:function(){return $}},{key:"Event",get:function(){return L}},{key:"EVENT_KEY",get:function(){return A}},{key:"DefaultType",get:function(){return O}}]),s}(Se),E.fn[k]=z._jQueryInterface,E.fn[k].Constructor=z,E.fn[k].noConflict=function(){return E.fn[k]=P,z._jQueryInterface},z),Ce=function(a){var e,i="scrollspy",s="bs.scrollspy",t="."+s,n=a.fn[i],o={offset:10,method:"auto",target:""},r={offset:"number",method:"string",target:"(string|element)"},l={ACTIVATE:"activate"+t,SCROLL:"scroll"+t,LOAD_DATA_API:"load"+t+".data-api"},c="active",d='[data-spy="scroll"]',u=".active",p=".nav, .list-group",h=".nav-link",f=".nav-item",m=".list-group-item",g=".dropdown",v=".dropdown-item",y=".dropdown-toggle",b="position",w=((e=x.prototype).refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":b,s="auto"===this._config.method?e:this._config.method,n=s===b?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),a.makeArray(a(this._selector)).map(function(e){var t,i=ge.getSelectorFromElement(e);if(t=i?a(i)[0]:t){e=t.getBoundingClientRect();if(e.width||e.height)return[a(t)[s]().top+n,i]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){a.removeData(this._element,s),a(this._scrollElement).off(t),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(e){var t;return"string"!=typeof(e=S({},o,e)).target&&((t=a(e.target).attr("id"))||(t=ge.getUID(i),a(e.target).attr("id",t)),e.target="#"+t),ge.typeCheckConfig(i,e,r),e},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),i<=e){i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&e>=this._offsets[s]&&(void 0===this._offsets[s+1]||e<this._offsets[s+1])&&this._activate(this._targets[s])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=(e=this._selector.split(",")).map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),e=a(e.join(","));e.hasClass("dropdown-item")?(e.closest(g).find(y).addClass(c),e.addClass(c)):(e.addClass(c),e.parents(p).prev(h+", "+m).addClass(c),e.parents(p).prev(f).children(h).addClass(c)),a(this._scrollElement).trigger(l.ACTIVATE,{relatedTarget:t})},e._clear=function(){a(this._selector).filter(u).removeClass(c)},x._jQueryInterface=function(t){return this.each(function(){var e=a(this).data(s);if(e||(e=new x(this,"object"==typeof t&&t),a(this).data(s,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},_(x,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return o}}]),x);function x(e,t){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+h+","+this._config.target+" "+m+","+this._config.target+" "+v,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,a(this._scrollElement).on(l.SCROLL,function(e){return i._process(e)}),this.refresh(),this._process()}return a(window).on(l.LOAD_DATA_API,function(){for(var e=a.makeArray(a(d)),t=e.length;t--;){var i=a(e[t]);w._jQueryInterface.call(i,i.data())}}),a.fn[i]=w._jQueryInterface,a.fn[i].Constructor=w,a.fn[i].noConflict=function(){return a.fn[i]=n,w._jQueryInterface},w}(t),Ee=(Ee="."+(v="bs.tab"),y=(g=t).fn.tab,b={HIDE:"hide"+Ee,HIDDEN:"hidden"+Ee,SHOW:"show"+Ee,SHOWN:"shown"+Ee,CLICK_DATA_API:"click.bs.tab.data-api"},w="active",x=".active",T="> li > .active",(Ee=ke.prototype).show=function(){var e,t,i,s,n,a,o=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g(this._element).hasClass(w)||g(this._element).hasClass("disabled")||(a=g(this._element).closest(".nav, .list-group")[0],t=ge.getSelectorFromElement(this._element),a&&(n="UL"===a.nodeName?T:x,i=(i=g.makeArray(g(a).find(n)))[i.length-1]),s=g.Event(b.HIDE,{relatedTarget:this._element}),n=g.Event(b.SHOW,{relatedTarget:i}),i&&g(i).trigger(s),g(this._element).trigger(n),n.isDefaultPrevented()||s.isDefaultPrevented()||(t&&(e=g(t)[0]),this._activate(this._element,a),a=function(){var e=g.Event(b.HIDDEN,{relatedTarget:o._element}),t=g.Event(b.SHOWN,{relatedTarget:i});g(i).trigger(e),g(o._element).trigger(t)},e?this._activate(e,e.parentNode,a):a()))},Ee.dispose=function(){g.removeData(this._element,v),this._element=null},Ee._activate=function(e,t,i){function s(){return n._transitionComplete(e,a,i)}var n=this,a=("UL"===t.nodeName?g(t).find(T):g(t).children(x))[0],t=i&&ge.supportsTransitionEnd()&&a&&g(a).hasClass("fade");a&&t?g(a).one(ge.TRANSITION_END,s).emulateTransitionEnd(150):s()},Ee._transitionComplete=function(e,t,i){var s;t&&(g(t).removeClass("show "+w),(s=g(t.parentNode).find("> .dropdown-menu .active")[0])&&g(s).removeClass(w),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)),g(e).addClass(w),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),ge.reflow(e),g(e).addClass("show"),e.parentNode&&g(e.parentNode).hasClass("dropdown-menu")&&((t=g(e).closest(".dropdown")[0])&&g(t).find(".dropdown-toggle").addClass(w),e.setAttribute("aria-expanded",!0)),i&&i()},ke._jQueryInterface=function(i){return this.each(function(){var e=g(this),t=e.data(v);if(t||(t=new ke(this),e.data(v,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},_(ke,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),C=ke,g(document).on(b.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),C._jQueryInterface.call(g(this),"show")}),g.fn.tab=C._jQueryInterface,g.fn.tab.Constructor=C,g.fn.tab.noConflict=function(){return g.fn.tab=y,C._jQueryInterface},C);function ke(e){this._element=e}function $e(e,t){if(void 0===n)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}function Ae(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}function Pe(e){this._element=e}function Ie(e){this._element=e}!function(e){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");e=e.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),e.Util=ge,e.Alert=ve,e.Button=ye,e.Carousel=be,e.Collapse=we,e.Dropdown=xe,e.Modal=_e,e.Popover=Te,e.Scrollspy=Ce,e.Tab=Ee,e.Tooltip=Se,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Swiper=t()}(this,function(){"use strict";function s(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function n(t,i){void 0===t&&(t={}),void 0===i&&(i={}),Object.keys(i).forEach(e=>{void 0===t[e]?t[e]=i[e]:s(i[e])&&s(t[e])&&0<Object.keys(i[e]).length&&n(t[e],i[e])})}const t={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function $(){var e="undefined"!=typeof document?document:{};return n(e,t),e}const i={document:t,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function A(){var e="undefined"!=typeof window?window:{};return n(e,i),e}function T(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function v(){return Date.now()}function P(e,t){void 0===t&&(t="x");const i=A();let s,n,a;const o=function(e){const t=A();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i=i||e.style,i}(e);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,6<n.split(",").length&&(n=n.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix("none"===n?"":n)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),"x"===t&&(n=i.WebKitCSSMatrix?a.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?a.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(e){const i=Object(arguments.length<=0?void 0:e),t=["__proto__","constructor","prototype"];for(let e=1;e<arguments.length;e+=1){var s=e<0||arguments.length<=e?void 0:arguments[e];if(null!=s&&(r=s,!("undefined"!=typeof window&&void 0!==window.HTMLElement?r instanceof HTMLElement:r&&(1===r.nodeType||11===r.nodeType)))){var n=Object.keys(Object(s)).filter(e=>t.indexOf(e)<0);for(let e=0,t=n.length;e<t;e+=1){var a=n[e],o=Object.getOwnPropertyDescriptor(s,a);void 0!==o&&o.enumerable&&(c(i[a])&&c(s[a])?s[a].__swiper__?i[a]=s[a]:f(i[a],s[a]):!c(i[a])&&c(s[a])?(i[a]={},s[a].__swiper__?i[a]=s[a]:f(i[a],s[a])):i[a]=s[a])}}}var r;return i}function k(e,t,i){e.style.setProperty(t,i)}function y(e){let{swiper:i,targetPosition:s,side:n}=e;const a=A(),o=-i.translate;let r,l=null;const c=i.params.speed;i.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(i.cssModeFrameID);const d=s>o?"next":"prev",u=(e,t)=>"next"===d&&t<=e||"prev"===d&&e<=t,p=()=>{r=(new Date).getTime(),null===l&&(l=r);var e=Math.max(Math.min((r-l)/c,1),0),e=.5-Math.cos(e*Math.PI)/2;let t=o+e*(s-o);if(u(t,s)&&(t=s),i.wrapperEl.scrollTo({[n]:t}),u(t,s))return i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo({[n]:t})}),void a.cancelAnimationFrame(i.cssModeFrameID);i.cssModeFrameID=a.requestAnimationFrame(p)};p()}function r(e){return e.querySelector(".swiper-slide-transform")||e.shadowEl&&e.shadowEl.querySelector(".swiper-slide-transform")||e}function I(e,t){return void 0===t&&(t=""),[...e.children].filter(e=>e.matches(t))}function M(e,t){void 0===t&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:[t]),i}function O(e){var t=A(),i=$(),s=e.getBoundingClientRect(),n=i.body,a=e.clientTop||n.clientTop||0,i=e.clientLeft||n.clientLeft||0,n=e===t?t.scrollY:e.scrollTop,e=e===t?t.scrollX:e.scrollLeft;return{top:s.top+n-a,left:s.left+e-i}}function L(e,t){return A().getComputedStyle(e,null).getPropertyValue(t)}function _(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function z(e,t){const i=[];let s=e.parentElement;for(;s;)t&&!s.matches(t)||i.push(s),s=s.parentElement;return i}function g(i,s){s&&i.addEventListener("transitionend",function e(t){t.target===i&&(s.call(i,t),i.removeEventListener("transitionend",e))})}function D(e,t,i){const s=A();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}let a,d,u;function m(){return a=a||(e=A(),{smoothScroll:(t=$()).documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}),a;var e,t}const o=(e,t)=>{if(e&&!e.destroyed&&e.params){const i=t.closest(e.isElement?"swiper-slide":"."+e.params.slideClass);if(i){const t=i.querySelector("."+e.params.lazyPreloaderClass);t&&t.remove()}}},l=(e,t)=>{if(e.slides[t]){const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")}},p=s=>{if(s&&!s.destroyed&&s.params){let i=s.params.lazyPreloadPrevNext;const n=s.slides.length;if(n&&i&&!(i<0)){i=Math.min(i,n);const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():Math.ceil(s.params.slidesPerView),o=s.activeIndex;if(s.params.grid&&1<s.params.grid.rows){const n=o,r=[n-i];return r.push(...Array.from({length:i}).map((e,t)=>n+a+t)),void s.slides.forEach((e,t)=>{r.includes(e.column)&&l(s,t)})}const r=o+a-1;if(s.params.rewind||s.params.loop)for(let t=o-i;t<=r+i;t+=1){const e=(t%n+n)%n;(e<o||e>r)&&l(s,e)}else for(let e=Math.max(o-i,0);e<=Math.min(r+i,n-1);e+=1)e!==o&&(e>r||e<o)&&l(s,e)}}};function h(e){let{swiper:t,runCallbacks:i,direction:s,step:n}=e;var{activeIndex:a,previousIndex:e}=t;let o=s;if(o=o||(e<a?"next":a<e?"prev":"reset"),t.emit("transition"+n),i&&a!==e){if("reset"===o)return t.emit("slideResetTransition"+n),0;t.emit("slideChangeTransition"+n),"next"===o?t.emit("slideNextTransition"+n):t.emit("slidePrevTransition"+n)}}function b(){const e=this,{params:t,el:i}=e;var s,n,a,o,r;i&&0===i.offsetWidth||(t.breakpoints&&e.setBreakpoint(),{allowSlideNext:s,allowSlidePrev:n,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled,e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),r=o&&t.loop,!("auto"===t.slidesPerView||1<t.slidesPerView)||!e.isEnd||e.isBeginning||e.params.centeredSlides||r?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow())}let w=!1;function x(){}const S=(e,t)=>{const i=$(),{params:s,el:n,wrapperEl:a,device:o}=e,r=!!s.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;n[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:r}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[l]("click",e.onClick,!0),s.cssMode&&a[l]("scroll",e.onScroll),s.updateOnWindowResize?e[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",b,!0):e[c]("observerUpdate",b,!0),n[l]("load",e.onLoad,{capture:!0})},C=(e,t)=>e.grid&&t.grid&&1<t.grid.rows;var E={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};const N={eventsEmitter:{on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)}),s},once(s,n,e){const a=this;return!a.eventsListeners||a.destroyed||"function"!=typeof n?a:(o.__emitterProxy=n,a.on(s,o,e));function o(){a.off(s,o),o.__emitterProxy&&delete o.__emitterProxy;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.apply(a,t)}},onAny(e,t){if(!this.eventsListeners||this.destroyed)return this;if("function"!=typeof e)return this;t=t?"unshift":"push";return this.eventsAnyListeners.indexOf(e)<0&&this.eventsAnyListeners[t](e),this},offAny(e){if(!this.eventsListeners||this.destroyed)return this;if(!this.eventsAnyListeners)return this;e=this.eventsAnyListeners.indexOf(e);return 0<=e&&this.eventsAnyListeners.splice(e,1),this},off(e,s){const n=this;return!n.eventsListeners||n.destroyed||n.eventsListeners&&e.split(" ").forEach(i=>{void 0===s?n.eventsListeners[i]=[]:n.eventsListeners[i]&&n.eventsListeners[i].forEach((e,t)=>{(e===s||e.__emitterProxy&&e.__emitterProxy===s)&&n.eventsListeners[i].splice(t,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return s="string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],i=a.slice(1,a.length),e):(t=a[0].events,i=a[0].data,a[0].context||e),i.unshift(s),(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(s,[t,...i])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(s,i)})}),e}},update:{updateSize:function(){var e=this;let t,i;var s=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s.clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s.clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(L(s,"padding-left")||0,10)-parseInt(L(s,"padding-right")||0,10),i=i-parseInt(L(s,"padding-top")||0,10)-parseInt(L(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const s=this;function n(e){return s.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function a(e,t){return parseFloat(e.getPropertyValue(n(t))||0)}const o=s.params,{wrapperEl:r,slidesEl:e,size:l,rtlTranslate:c,wrongRTL:d}=s,t=s.virtual&&o.virtual.enabled,u=(t?s.virtual:s).slides.length,p=I(e,`.${s.params.slideClass}, swiper-slide`),h=(t?s.virtual.slides:p).length;let f=[];const m=[],g=[];let v=o.slidesOffsetBefore;"function"==typeof v&&(v=o.slidesOffsetBefore.call(s));let y=o.slidesOffsetAfter;"function"==typeof y&&(y=o.slidesOffsetAfter.call(s));var b=s.snapGrid.length,w=s.slidesGrid.length;let x=o.spaceBetween,_=-v,S=0,T=0;if(void 0!==l){"string"==typeof x&&0<=x.indexOf("%")?x=parseFloat(x.replace("%",""))/100*l:"string"==typeof x&&(x=parseFloat(x)),s.virtualSize=-x,p.forEach(e=>{c?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),o.centeredSlides&&o.cssMode&&(k(r,"--swiper-centered-offset-before",""),k(r,"--swiper-centered-offset-after",""));var C=o.grid&&1<o.grid.rows&&s.grid;let i;C&&s.grid.initSlides(h);var E="auto"===o.slidesPerView&&o.breakpoints&&0<Object.keys(o.breakpoints).filter(e=>void 0!==o.breakpoints[e].slidesPerView).length;for(let t=0;t<h;t+=1){let e;if(i=0,p[t]&&(e=p[t]),C&&s.grid.updateSlide(t,e,h,n),!p[t]||"none"!==L(e,"display")){if("auto"===o.slidesPerView){E&&(p[t].style[n("width")]="");const l=getComputedStyle(e),c=e.style.transform,d=e.style.webkitTransform;if(c&&(e.style.transform="none"),d&&(e.style.webkitTransform="none"),o.roundLengths)i=s.isHorizontal()?D(e,"width",!0):D(e,"height",!0);else{const s=a(l,"width"),n=a(l,"padding-left"),o=a(l,"padding-right"),r=a(l,"margin-left"),c=a(l,"margin-right"),d=l.getPropertyValue("box-sizing");if(d&&"border-box"===d)i=s+r+c;else{const{clientWidth:a,offsetWidth:l}=e;i=s+n+o+r+c+(l-a)}}c&&(e.style.transform=c),d&&(e.style.webkitTransform=d),o.roundLengths&&(i=Math.floor(i))}else i=(l-(o.slidesPerView-1)*x)/o.slidesPerView,o.roundLengths&&(i=Math.floor(i)),p[t]&&(p[t].style[n("width")]=i+"px");p[t]&&(p[t].swiperSlideSize=i),g.push(i),o.centeredSlides?(_=_+i/2+S/2+x,0===S&&0!==t&&(_=_-l/2-x),0===t&&(_=_-l/2-x),Math.abs(_)<.001&&(_=0),o.roundLengths&&(_=Math.floor(_)),T%o.slidesPerGroup==0&&f.push(_),m.push(_)):(o.roundLengths&&(_=Math.floor(_)),(T-Math.min(s.params.slidesPerGroupSkip,T))%s.params.slidesPerGroup==0&&f.push(_),m.push(_),_=_+i+x),s.virtualSize+=i+x,S=i,T+=1}}if(s.virtualSize=Math.max(s.virtualSize,l)+y,c&&d&&("slide"===o.effect||"coverflow"===o.effect)&&(r.style.width=s.virtualSize+x+"px"),o.setWrapperSize&&(r.style[n("width")]=s.virtualSize+x+"px"),C&&s.grid.updateWrapperSize(i,f,n),!o.centeredSlides){const n=[];for(let t=0;t<f.length;t+=1){let e=f[t];o.roundLengths&&(e=Math.floor(e)),f[t]<=s.virtualSize-l&&n.push(e)}f=n,1<Math.floor(s.virtualSize-l)-Math.floor(f[f.length-1])&&f.push(s.virtualSize-l)}if(t&&o.loop){const n=g[0]+x;if(1<o.slidesPerGroup){const a=Math.ceil((s.virtual.slidesBefore+s.virtual.slidesAfter)/o.slidesPerGroup),r=n*o.slidesPerGroup;for(let e=0;e<a;e+=1)f.push(f[f.length-1]+r)}for(let e=0;e<s.virtual.slidesBefore+s.virtual.slidesAfter;e+=1)1===o.slidesPerGroup&&f.push(f[f.length-1]+n),m.push(m[m.length-1]+n),s.virtualSize+=n}if(0===f.length&&(f=[0]),0!==x){const a=s.isHorizontal()&&c?"marginLeft":n("marginRight");p.filter((e,t)=>!(o.cssMode&&!o.loop)||t!==p.length-1).forEach(e=>{e.style[a]=x+"px"})}if(o.centeredSlides&&o.centeredSlidesBounds){let t=0;g.forEach(e=>{t+=e+(x||0)}),t-=x;const n=t-l;f=f.map(e=>e<=0?-v:e>n?n+y:e)}if(o.centerInsufficientSlides){let t=0;if(g.forEach(e=>{t+=e+(x||0)}),t-=x,t<l){const n=(l-t)/2;f.forEach((e,t)=>{f[t]=e-n}),m.forEach((e,t)=>{m[t]=e+n})}}if(Object.assign(s,{slides:p,snapGrid:f,slidesGrid:m,slidesSizesGrid:g}),o.centeredSlides&&o.cssMode&&!o.centeredSlidesBounds){k(r,"--swiper-centered-offset-before",-f[0]+"px"),k(r,"--swiper-centered-offset-after",s.size/2-g[g.length-1]/2+"px");const n=-s.snapGrid[0],a=-s.slidesGrid[0];s.snapGrid=s.snapGrid.map(e=>e+n),s.slidesGrid=s.slidesGrid.map(e=>e+a)}if(h!==u&&s.emit("slidesLengthChange"),f.length!==b&&(s.params.watchOverflow&&s.checkOverflow(),s.emit("snapGridLengthChange")),m.length!==w&&s.emit("slidesGridLengthChange"),o.watchSlidesProgress&&s.updateSlidesOffset(),!(t||o.cssMode||"slide"!==o.effect&&"fade"!==o.effect)){const n=o.containerModifierClass+"backface-hidden",a=s.el.classList.contains(n);h<=o.maxBackfaceHiddenSlides?a||s.el.classList.add(n):a&&s.el.classList.remove(n)}}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);var o=e=>s?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&1<t.params.slidesPerView)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{i.push(e)});else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const e=t.activeIndex+n;if(e>t.slides.length&&!s)break;i.push(o(e))}else i.push(o(t.activeIndex));for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const e=i[n].offsetHeight;a=e>a?e:a}!a&&0!==a||(t.wrapperEl.style.height=a+"px")},updateSlidesOffset:function(){const t=this.slides,i=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let e=0;e<t.length;e+=1)t[e].swiperSlideOffset=(this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop)-i-this.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const n=this,a=n.params,{slides:o,rtlTranslate:r,snapGrid:l}=n;if(0!==o.length){void 0===o[0].swiperSlideOffset&&n.updateSlidesOffset();let i=r?e:-e;o.forEach(e=>{e.classList.remove(a.slideVisibleClass)}),n.visibleSlidesIndexes=[],n.visibleSlides=[];let s=a.spaceBetween;"string"==typeof s&&0<=s.indexOf("%")?s=parseFloat(s.replace("%",""))/100*n.size:"string"==typeof s&&(s=parseFloat(s));for(let t=0;t<o.length;t+=1){const h=o[t];let e=h.swiperSlideOffset;a.cssMode&&a.centeredSlides&&(e-=o[0].swiperSlideOffset);var c=(i+(a.centeredSlides?n.minTranslate():0)-e)/(h.swiperSlideSize+s),d=(i-l[0]+(a.centeredSlides?n.minTranslate():0)-e)/(h.swiperSlideSize+s),u=-(i-e),p=u+n.slidesSizesGrid[t];(0<=u&&u<n.size-1||1<p&&p<=n.size||u<=0&&p>=n.size)&&(n.visibleSlides.push(h),n.visibleSlidesIndexes.push(t),o[t].classList.add(a.slideVisibleClass)),h.progress=r?-c:c,h.originalProgress=r?-d:d}}},updateProgress:function(e){var t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:a,isEnd:o,progressLoop:r}=t;const l=a,c=o;if(0===s)n=0,a=!0,o=!0;else{n=(e-t.minTranslate())/s;const i=Math.abs(e-t.minTranslate())<1,r=Math.abs(e-t.maxTranslate())<1;a=i||n<=0,o=r||1<=n,i&&(n=0),r&&(n=1)}if(i.loop){const i=t.getSlideIndexByData(0),s=t.getSlideIndexByData(t.slides.length-1),n=t.slidesGrid[i],a=t.slidesGrid[s],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);r=l>=n?(l-n)/o:(l+o-a)/o,1<r&&--r}Object.assign(t,{progress:n,progressLoop:r,isBeginning:a,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!a||c&&!o)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const{slides:i,params:s,slidesEl:t,activeIndex:n}=this,e=this.virtual&&s.virtual.enabled,a=e=>I(t,`.${s.slideClass}${e}, swiper-slide`+e)[0];let o;if(i.forEach(e=>{e.classList.remove(s.slideActiveClass,s.slideNextClass,s.slidePrevClass)}),e)if(s.loop){let e=n-this.virtual.slidesBefore;e<0&&(e=this.virtual.slides.length+e),e>=this.virtual.slides.length&&(e-=this.virtual.slides.length),o=a(`[data-swiper-slide-index="${e}"]`)}else o=a(`[data-swiper-slide-index="${n}"]`);else o=i[n];if(o){o.classList.add(s.slideActiveClass);let e=function(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t&&!s.matches(t)||i.push(s),e=s}return i}(o,`.${s.slideClass}, swiper-slide`)[0];s.loop&&!e&&(e=i[0]),e&&e.classList.add(s.slideNextClass);let t=function(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t&&!s.matches(t)||i.push(s),e=s}return i}(o,`.${s.slideClass}, swiper-slide`)[0];s.loop&&0===!t&&(t=i[i.length-1]),t&&t.classList.add(s.slidePrevClass)}this.emitSlidesClasses()},updateActiveIndex:function(e){const i=this,t=i.rtlTranslate?i.translate:-i.translate,{snapGrid:s,params:n,activeIndex:a,realIndex:o,snapIndex:r}=i;let l,c=e;var e=e=>{let t=e-i.virtual.slidesBefore;return t<0&&(t=i.virtual.slides.length+t),t>=i.virtual.slides.length&&(t-=i.virtual.slides.length),t};if(void 0===c&&(c=function(e){var{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let n;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?s>=t[e]&&s<t[e+1]-(t[e+1]-t[e])/2?n=e:s>=t[e]&&s<t[e+1]&&(n=e+1):s>=t[e]&&(n=e);return i.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(i)),0<=s.indexOf(t))l=s.indexOf(t);else{const d=Math.min(n.slidesPerGroupSkip,c);l=d+Math.floor((c-d)/n.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),c===a)return l!==r&&(i.snapIndex=l,i.emit("snapIndexChange")),void(i.params.loop&&i.virtual&&i.params.virtual.enabled&&(i.realIndex=e(c)));e=i.virtual&&n.virtual.enabled&&n.loop?e(c):i.slides[c]?parseInt(i.slides[c].getAttribute("data-swiper-slide-index")||c,10):c,Object.assign(i,{previousSnapIndex:r,snapIndex:l,previousRealIndex:o,realIndex:e,previousIndex:a,activeIndex:c}),i.initialized&&p(i),i.emit("activeIndexChange"),i.emit("snapIndexChange"),o!==e&&i.emit("realIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&i.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,s=e.closest(`.${i.slideClass}, swiper-slide`);let n,a=!1;if(s)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===s){a=!0,n=e;break}if(!s||!a)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=n,i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var{params:t,rtlTranslate:i,translate:s,wrapperEl:n}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let a=P(n,e);return a+=this.cssOverflowAdjustment(),i&&(a=-a),a||0},setTranslate:function(e,t){const i=this,{rtlTranslate:s,params:n,wrapperEl:a,progress:o}=i;let r=0,l=0;i.isHorizontal()?r=s?-e:e:l=e,n.roundLengths&&(r=Math.floor(r),l=Math.floor(l)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?r:l,n.cssMode?a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-r:-l:n.virtualTranslate||(i.isHorizontal()?r-=i.cssOverflowAdjustment():l-=i.cssOverflowAdjustment(),a.style.transform=`translate3d(${r}px, ${l}px, 0px)`);var c=i.maxTranslate()-i.minTranslate();(0==c?0:(e-i.minTranslate())/c)!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);const a=this,{params:o,wrapperEl:r}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;var l=a.minTranslate(),c=a.maxTranslate(),e=s&&l<e?l:s&&e<c?c:e;if(a.updateProgress(e),o.cssMode){const d=a.isHorizontal();if(0===t)r[d?"scrollLeft":"scrollTop"]=-e;else{if(!a.support.smoothScroll)return y({swiper:a,targetPosition:-e,side:d?"left":"top"}),!0;r.scrollTo({[d?"left":"top"]:-e,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(e),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(e),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,i&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=e+"ms"),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this["params"];i.cssMode||(i.autoHeight&&this.updateAutoHeight(),h({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this["params"];this.animating=!1,i.cssMode||(this.setTransition(0),h({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,i,s,n){void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),"string"==typeof(e=void 0===e?0:e)&&(e=parseInt(e,10));const a=this;let o=e;o<0&&(o=0);const{params:r,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:h,enabled:f}=a;if(a.animating&&r.preventInteractionOnTransition||!f&&!s&&!n)return!1;n=Math.min(a.params.slidesPerGroupSkip,o);let m=n+Math.floor((o-n)/a.params.slidesPerGroup);m>=l.length&&(m=l.length-1);var g=-l[m];if(r.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*g),i=Math.floor(100*c[e]),s=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<s-(s-i)/2?o=e:t>=i&&t<s&&(o=e+1):t>=i&&(o=e)}if(a.initialized&&o!==u){if(!a.allowSlideNext&&(p?g>a.translate&&g>a.minTranslate():g<a.translate&&g<a.minTranslate()))return!1;if(!a.allowSlidePrev&&g>a.translate&&g>a.maxTranslate()&&(u||0)!==o)return!1}let v;if(o!==(d||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(g),v=o>u?"next":o<u?"prev":"reset",p&&-g===a.translate||!p&&g===a.translate)return a.updateActiveIndex(o),r.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==r.effect&&a.setTranslate(g),"reset"!=v&&(a.transitionStart(i,v),a.transitionEnd(i,v)),!1;if(r.cssMode){const e=a.isHorizontal(),i=p?g:-g;if(0===t){const t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),t&&!a._cssModeVirtualInitialSet&&0<a.params.initialSlide?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=i})):h[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1})}else{if(!a.support.smoothScroll)return y({swiper:a,targetPosition:i,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(g),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,v),0===t?a.transitionEnd(i,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,v))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);let n=e="string"==typeof(e=void 0===e?0:e)?parseInt(e,10):e;return this.params.loop&&(this.virtual&&this.params.virtual.enabled?n+=this.virtual.slidesBefore:n=this.getSlideIndexByData(n)),this.slideTo(n,t,i,s)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this,{enabled:n,params:a,animating:o}=s;if(!n)return s;let r=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(r=Math.max(s.slidesPerViewDynamic("current",!0),1));var l=s.activeIndex<a.slidesPerGroupSkip?1:r,n=s.virtual&&a.virtual.enabled;if(a.loop){if(o&&!n&&a.loopPreventsSliding)return!1;s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft}return a.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const s=this,{params:n,snapGrid:a,slidesGrid:o,rtlTranslate:r,enabled:l,animating:c}=s;if(!l)return s;var d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=u(r?s.translate:-s.translate),h=a.map(e=>u(e));let f=a[h.indexOf(p)-1];if(void 0===f&&n.cssMode){let i;a.forEach((e,t)=>{p>=e&&(i=t)}),void 0!==i&&(f=a[0<i?i-1:i])}let m=0;if(void 0!==f&&(m=o.indexOf(f),m<0&&(m=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(m=m-s.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return s.slideTo(m,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t=void 0===t?!0:t,i)},slideToClosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var n=this;let a=n.activeIndex;var o=Math.min(n.params.slidesPerGroupSkip,a),r=o+Math.floor((a-o)/n.params.slidesPerGroup),o=n.rtlTranslate?n.translate:-n.translate;if(o>=n.snapGrid[r]){const e=n.snapGrid[r];o-e>(n.snapGrid[r+1]-e)*s&&(a+=n.params.slidesPerGroup)}else{const e=n.snapGrid[r-1];o-e<=(n.snapGrid[r]-e)*s&&(a-=n.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,n.slidesGrid.length-1),n.slideTo(a,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,slidesEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,a=e.clickedIndex;var o=e.isElement?"swiper-slide":"."+t.slideClass;t.loop?e.animating||(n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-s/2||a>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),a=e.getSlideIndex(I(i,o+`[data-swiper-slide-index="${n}"]`)[0]),T(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-s?(e.loopFix(),a=e.getSlideIndex(I(i,o+`[data-swiper-slide-index="${n}"]`)[0]),T(()=>{e.slideTo(a)})):e.slideTo(a)):e.slideTo(a)}},loop:{loopCreate:function(e){var{params:t,slidesEl:i}=this;!t.loop||this.virtual&&this.params.virtual.enabled||(I(i,`.${t.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}),this.loopFix({slideRealIndex:e,direction:t.centeredSlides?void 0:"next"}))},loopFix:function(n){let{slideRealIndex:a,slideTo:o=!0,direction:r,setTranslate:l,activeSlideIndex:c,byController:d,byMousewheel:u}=void 0===n?{}:n;const p=this;if(p.params.loop){p.emit("beforeLoopFix");const{slides:f,allowSlidePrev:m,allowSlideNext:g,slidesEl:v,params:y}=p;if(p.allowSlidePrev=!0,p.allowSlideNext=!0,p.virtual&&y.virtual.enabled)return o&&(y.centeredSlides||0!==p.snapIndex?y.centeredSlides&&p.snapIndex<y.slidesPerView?p.slideTo(p.virtual.slides.length+p.snapIndex,0,!1,!0):p.snapIndex===p.snapGrid.length-1&&p.slideTo(p.virtual.slidesBefore,0,!1,!0):p.slideTo(p.virtual.slides.length,0,!1,!0)),p.allowSlidePrev=m,p.allowSlideNext=g,void p.emit("loopFix");var h="auto"===y.slidesPerView?p.slidesPerViewDynamic():Math.ceil(parseFloat(y.slidesPerView,10));let t=y.loopedSlides||h;t%y.slidesPerGroup!=0&&(t+=y.slidesPerGroup-t%y.slidesPerGroup),p.loopedSlides=t;const b=[],w=[];let e=p.activeIndex;void 0===c?c=p.getSlideIndex(p.slides.filter(e=>e.classList.contains(y.slideActiveClass))[0]):e=c;n="next"===r||!r,h="prev"===r||!r;let i=0,s=0;if(c<t){i=Math.max(t-c,y.slidesPerGroup);for(let e=0;e<t-c;e+=1){const a=e-Math.floor(e/f.length)*f.length;b.push(f.length-a-1)}}else if(c>p.slides.length-2*t){s=Math.max(c-(p.slides.length-2*t),y.slidesPerGroup);for(let e=0;e<s;e+=1){const a=e-Math.floor(e/f.length)*f.length;w.push(a)}}if(h&&b.forEach(e=>{p.slides[e].swiperLoopMoveDOM=!0,v.prepend(p.slides[e]),p.slides[e].swiperLoopMoveDOM=!1}),n&&w.forEach(e=>{p.slides[e].swiperLoopMoveDOM=!0,v.append(p.slides[e]),p.slides[e].swiperLoopMoveDOM=!1}),p.recalcSlides(),"auto"===y.slidesPerView&&p.updateSlides(),y.watchSlidesProgress&&p.updateSlidesOffset(),o)if(0<b.length&&h)if(void 0===a){const x=p.slidesGrid[e],a=p.slidesGrid[e+i]-x;u?p.setTranslate(p.translate-a):(p.slideTo(e+i,0,!1,!0),l&&(p.touches[p.isHorizontal()?"startX":"startY"]+=a))}else l&&p.slideToLoop(a,0,!1,!0);else if(0<w.length&&n)if(void 0===a){const x=p.slidesGrid[e],a=p.slidesGrid[e-s]-x;u?p.setTranslate(p.translate-a):(p.slideTo(e-s,0,!1,!0),l&&(p.touches[p.isHorizontal()?"startX":"startY"]+=a))}else p.slideToLoop(a,0,!1,!0);if(p.allowSlidePrev=m,p.allowSlideNext=g,p.controller&&p.controller.control&&!d){const x={slideRealIndex:a,slideTo:!1,direction:r,setTranslate:l,activeSlideIndex:c,byController:!0};Array.isArray(p.controller.control)?p.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix(x)}):p.controller.control instanceof p.constructor&&p.controller.control.params.loop&&p.controller.control.loopFix(x)}p.emit("loopFix")}},loopDestroy:function(){const{params:e,slidesEl:t}=this;if(!(!e.loop||this.virtual&&this.params.virtual.enabled)){this.recalcSlides();const i=[];this.slides.forEach(e=>{var t=void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}}},grabCursor:{setGrabCursor:function(e){const t=this;if(!(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,t=$(),i=e["params"];e.onTouchStart=function(s){const n=this,a=$(),o=A(),r=n.touchEventsData;r.evCache.push(s);const{params:l,touches:c,enabled:e}=n;if(e&&(l.simulateTouch||"mouse"!==s.pointerType)&&(!n.animating||!l.preventInteractionOnTransition)){!n.animating&&l.cssMode&&l.loop&&n.loopFix();let t=s;t.originalEvent&&(t=t.originalEvent);let i=t.target;if(("wrapper"!==l.touchEventsTarget||n.wrapperEl.contains(i))&&!("which"in t&&3===t.which||"button"in t&&0<t.button||r.isTouched&&r.isMoved)){var d=!!l.noSwipingClass&&""!==l.noSwipingClass,u=s.composedPath?s.composedPath():s.path;d&&t.target&&t.target.shadowRoot&&u&&(i=u[0]);var p=l.noSwipingSelector||"."+l.noSwipingClass,h=!(!t.target||!t.target.shadowRoot);if(l.noSwiping&&(h?function(s,e){return function e(t){if(!t||t===$()||t===A())return null;var i=(t=t.assignedSlot?t.assignedSlot:t).closest(s);return i||t.getRootNode?i||e(t.getRootNode().host):null}(e=void 0===i?this:e)}(p,i):i.closest(p)))n.allowClick=!0;else if(!l.swipeHandler||i.closest(l.swipeHandler)){c.currentX=t.pageX,c.currentY=t.pageY;d=c.currentX,u=c.currentY,h=l.edgeSwipeDetection||l.iOSEdgeSwipeDetection,p=l.edgeSwipeThreshold||l.iOSEdgeSwipeThreshold;if(h&&(d<=p||d>=o.innerWidth-p)){if("prevent"!==h)return;s.preventDefault()}Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=d,c.startY=u,r.touchStartTime=v(),n.allowClick=!0,n.updateSize(),n.swipeDirection=void 0,0<l.threshold&&(r.allowThresholdMove=!1);let e=!0;i.matches(r.focusableElements)&&(e=!1,"SELECT"===i.nodeName&&(r.isTouched=!1)),a.activeElement&&a.activeElement.matches(r.focusableElements)&&a.activeElement!==i&&a.activeElement.blur();u=e&&n.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!u||i.isContentEditable||t.preventDefault(),l.freeMode&&l.freeMode.enabled&&n.freeMode&&n.animating&&!l.cssMode&&n.freeMode.onTouchStart(),n.emit("touchStart",t)}}}}.bind(e),e.onTouchMove=function(o){const e=$(),r=this,l=r.touchEventsData,{params:c,touches:d,rtlTranslate:u,enabled:t}=r;if(t&&(c.simulateTouch||"mouse"!==o.pointerType)){let a=o;if(a.originalEvent&&(a=a.originalEvent),l.isTouched){var i=l.evCache.findIndex(e=>e.pointerId===a.pointerId);0<=i&&(l.evCache[i]=a);var p=1<l.evCache.length?l.evCache[0]:a,o=p.pageX,i=p.pageY;if(a.preventedByNestedSwiper)return d.startX=o,void(d.startY=i);if(!r.allowTouchMove)return a.target.matches(l.focusableElements)||(r.allowClick=!1),void(l.isTouched&&(Object.assign(d,{startX:o,startY:i,prevX:r.touches.currentX,prevY:r.touches.currentY,currentX:o,currentY:i}),l.touchStartTime=v()));if(c.touchReleaseOnEdges&&!c.loop)if(r.isVertical()){if(i<d.startY&&r.translate<=r.maxTranslate()||i>d.startY&&r.translate>=r.minTranslate())return l.isTouched=!1,void(l.isMoved=!1)}else if(o<d.startX&&r.translate<=r.maxTranslate()||o>d.startX&&r.translate>=r.minTranslate())return;if(e.activeElement&&a.target===e.activeElement&&a.target.matches(l.focusableElements))return l.isMoved=!0,void(r.allowClick=!1);if(l.allowTouchCallbacks&&r.emit("touchMove",a),!(a.targetTouches&&1<a.targetTouches.length)){d.currentX=o,d.currentY=i;p=d.currentX-d.startX,o=d.currentY-d.startY;if(!(r.params.threshold&&Math.sqrt(p**2+o**2)<r.params.threshold))if(void 0===l.isScrolling&&(r.isHorizontal()&&d.currentY===d.startY||r.isVertical()&&d.currentX===d.startX?l.isScrolling=!1:25<=p*p+o*o&&(i=180*Math.atan2(Math.abs(o),Math.abs(p))/Math.PI,l.isScrolling=r.isHorizontal()?i>c.touchAngle:90-i>c.touchAngle)),l.isScrolling&&r.emit("touchMoveOpposite",a),void 0===l.startMoving&&(d.currentX===d.startX&&d.currentY===d.startY||(l.startMoving=!0)),l.isScrolling||r.zoom&&r.params.zoom&&r.params.zoom.enabled&&1<l.evCache.length)l.isTouched=!1;else if(l.startMoving){r.allowClick=!1,!c.cssMode&&a.cancelable&&a.preventDefault(),c.touchMoveStopPropagation&&!c.nested&&a.stopPropagation();let e=r.isHorizontal()?p:o,t=r.isHorizontal()?d.currentX-d.previousX:d.currentY-d.previousY;c.oneWayMovement&&(e=Math.abs(e)*(u?1:-1),t=Math.abs(t)*(u?1:-1)),d.diff=e,e*=c.touchRatio,u&&(e=-e,t=-t);p=r.touchesDirection;r.swipeDirection=0<e?"prev":"next",r.touchesDirection=0<t?"prev":"next";o=r.params.loop&&!c.cssMode;if(!l.isMoved){if(o&&r.loopFix({direction:r.swipeDirection}),l.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const h=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});r.wrapperEl.dispatchEvent(h)}l.allowMomentumBounce=!1,!c.grabCursor||!0!==r.allowSlideNext&&!0!==r.allowSlidePrev||r.setGrabCursor(!0),r.emit("sliderFirstMove",a)}let i;l.isMoved&&p!==r.touchesDirection&&o&&1<=Math.abs(e)&&(r.loopFix({direction:r.swipeDirection,setTranslate:!0}),i=!0),r.emit("sliderMove",a),l.isMoved=!0,l.currentTranslate=e+l.startTranslate;let s=!0,n=c.resistanceRatio;if(c.touchReleaseOnEdges&&(n=0),0<e?(o&&!i&&l.currentTranslate>(c.centeredSlides?r.minTranslate()-r.size/2:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),l.currentTranslate>r.minTranslate()&&(s=!1,c.resistance&&(l.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+l.startTranslate+e)**n))):e<0&&(o&&!i&&l.currentTranslate<(c.centeredSlides?r.maxTranslate()+r.size/2:r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-("auto"===c.slidesPerView?r.slidesPerViewDynamic():Math.ceil(parseFloat(c.slidesPerView,10)))}),l.currentTranslate<r.maxTranslate()&&(s=!1,c.resistance&&(l.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-l.startTranslate-e)**n))),s&&(a.preventedByNestedSwiper=!0),!r.allowSlideNext&&"next"===r.swipeDirection&&l.currentTranslate<l.startTranslate&&(l.currentTranslate=l.startTranslate),!r.allowSlidePrev&&"prev"===r.swipeDirection&&l.currentTranslate>l.startTranslate&&(l.currentTranslate=l.startTranslate),r.allowSlidePrev||r.allowSlideNext||(l.currentTranslate=l.startTranslate),0<c.threshold){if(!(Math.abs(e)>c.threshold||l.allowThresholdMove))return void(l.currentTranslate=l.startTranslate);if(!l.allowThresholdMove)return l.allowThresholdMove=!0,d.startX=d.currentX,d.startY=d.currentY,l.currentTranslate=l.startTranslate,void(d.diff=r.isHorizontal()?d.currentX-d.startX:d.currentY-d.startY)}c.followFinger&&!c.cssMode&&((c.freeMode&&c.freeMode.enabled&&r.freeMode||c.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),c.freeMode&&c.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(l.currentTranslate),r.setTranslate(l.currentTranslate))}}}else l.startMoving&&l.isScrolling&&r.emit("touchMoveOpposite",a)}}.bind(e),e.onTouchEnd=function(t){const a=this,e=a.touchEventsData,i=e.evCache.findIndex(e=>e.pointerId===t.pointerId);if(0<=i&&e.evCache.splice(i,1),!["pointercancel","pointerout","pointerleave"].includes(t.type)||"pointercancel"===t.type&&(a.browser.isSafari||a.browser.isWebView)){var{params:o,touches:r,rtlTranslate:l,slidesGrid:c,enabled:d}=a;if(d&&(o.simulateTouch||"mouse"!==t.pointerType)){let n=t;if(n.originalEvent&&(n=n.originalEvent),e.allowTouchCallbacks&&a.emit("touchEnd",n),e.allowTouchCallbacks=!1,!e.isTouched)return e.isMoved&&o.grabCursor&&a.setGrabCursor(!1),e.isMoved=!1,void(e.startMoving=!1);o.grabCursor&&e.isMoved&&e.isTouched&&(!0===a.allowSlideNext||!0===a.allowSlidePrev)&&a.setGrabCursor(!1);var u,s=v(),d=s-e.touchStartTime;if(a.allowClick){const t=n.path||n.composedPath&&n.composedPath();a.updateClickedSlide(t&&t[0]||n.target),a.emit("tap click",n),d<300&&s-e.lastClickTime<300&&a.emit("doubleTap doubleClick",n)}if(e.lastClickTime=v(),T(()=>{a.destroyed||(a.allowClick=!0)}),!e.isTouched||!e.isMoved||!a.swipeDirection||0===r.diff||e.currentTranslate===e.startTranslate)return e.isTouched=!1,e.isMoved=!1,void(e.startMoving=!1);if(e.isTouched=!1,e.isMoved=!1,e.startMoving=!1,u=o.followFinger?l?a.translate:-a.translate:-e.currentTranslate,!o.cssMode)if(o.freeMode&&o.freeMode.enabled)a.freeMode.onTouchEnd({currentPos:u});else{let t=0,i=a.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const a=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==c[e+a]?u>=c[e]&&u<c[e+a]&&(t=e,i=c[e+a]-c[e]):u>=c[e]&&(t=e,i=c[c.length-1]-c[c.length-2])}let e=null,s=null;o.rewind&&(a.isBeginning?s=o.virtual&&o.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1:a.isEnd&&(e=0));r=(u-c[t])/i,l=t<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;d>o.longSwipesMs?o.longSwipes?("next"===a.swipeDirection&&(r>=o.longSwipesRatio?a.slideTo(o.rewind&&a.isEnd?e:t+l):a.slideTo(t)),"prev"===a.swipeDirection&&(r>1-o.longSwipesRatio?a.slideTo(t+l):null!==s&&r<0&&Math.abs(r)>o.longSwipesRatio?a.slideTo(s):a.slideTo(t))):a.slideTo(a.activeIndex):o.shortSwipes?!a.navigation||n.target!==a.navigation.nextEl&&n.target!==a.navigation.prevEl?("next"===a.swipeDirection&&a.slideTo(null!==e?e:t+l),"prev"===a.swipeDirection&&a.slideTo(null!==s?s:t)):n.target===a.navigation.nextEl?a.slideTo(t+l):a.slideTo(t):a.slideTo(a.activeIndex)}}}}.bind(e),i.cssMode&&(e.onScroll=function(){var e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;s&&(e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses(),(0==(t=e.maxTranslate()-e.minTranslate())?0:(e.translate-e.minTranslate())/t)!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1))}.bind(e)),e.onClick=function(e){this.enabled&&(this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}.bind(e),e.onLoad=function(e){o(this,e.target),this.params.cssMode||"auto"!==this.params.slidesPerView&&!this.params.autoHeight||this.update()}.bind(e),w||(t.addEventListener("touchstart",x),w=!0),S(e,"on")},detachEvents:function(){S(this,"off")}},breakpoints:{setBreakpoint:function(){const s=this,{realIndex:e,initialized:t,params:n,el:i}=s,a=n.breakpoints;if(a&&0!==Object.keys(a).length){var o=s.getBreakpoint(a,s.params.breakpointsBase,s.el);if(o&&s.currentBreakpoint!==o){const c=(o in a?a[o]:void 0)||s.originalParams,d=C(s,n),u=C(s,c),p=n.enabled;d&&!u?(i.classList.remove(n.containerModifierClass+"grid",n.containerModifierClass+"grid-column"),s.emitContainerClasses()):!d&&u&&(i.classList.add(n.containerModifierClass+"grid"),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===n.grid.fill)&&i.classList.add(n.containerModifierClass+"grid-column"),s.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(e=>{var t,i;void 0!==c[e]&&(t=n[e]&&n[e].enabled,i=c[e]&&c[e].enabled,t&&!i&&s[e].disable(),!t&&i&&s[e].enable())});var r=c.direction&&c.direction!==n.direction,l=n.loop&&(c.slidesPerView!==n.slidesPerView||r);r&&t&&s.changeDirection(),f(s.params,c);r=s.params.enabled;Object.assign(s,{allowTouchMove:s.params.allowTouchMove,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev}),p&&!r?s.disable():!p&&r&&s.enable(),s.currentBreakpoint=o,s.emit("_beforeBreakpoint",c),l&&t&&(s.loopDestroy(),s.loopCreate(e),s.updateSlides()),s.emit("breakpoint",c)}}},getBreakpoint:function(e,i,s){if(void 0===i&&(i="window"),e&&("container"!==i||s)){let t=!1;const n=A(),a="window"===i?n.innerHeight:s.clientHeight,o=Object.keys(e).map(e=>{if("string"!=typeof e||0!==e.indexOf("@"))return{value:e,point:e};var t=parseFloat(e.substr(1));return{value:a*t,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){const{point:A,value:a}=o[e];"window"===i?n.matchMedia(`(min-width: ${a}px)`).matches&&(t=A):a<=s.clientWidth&&(t=A)}return t||"max"}}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,s=i["slidesOffsetBefore"];if(s){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:i,el:s,device:n}=this,a=function(e,i){const s=[];return e.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(e=>{t[e]&&s.push(i+e)}):"string"==typeof t&&s.push(i+t)}),s}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&1<t.grid.rows},{"grid-column":t.grid&&1<t.grid.rows&&"column"===t.grid.fill},{android:n.android},{ios:n.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),s.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},j={};class H{constructor(){let t,i;for(var h,e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?i=s[0]:[t,i]=s,i=i||{},i=f({},i),t&&!i.el&&(i.el=t);const a=$();if(i.el&&"string"==typeof i.el&&1<a.querySelectorAll(i.el).length){const t=[];return a.querySelectorAll(i.el).forEach(e=>{e=f({},i,{el:e});t.push(new H(e))}),t}const o=this;o.__swiper__=!0,o.support=m(),o.device=(void 0===(h={userAgent:i.userAgent})&&(h={}),d=d||function(){var e=(void 0===h?{}:h)["userAgent"];const t=m(),i=A(),s=i.navigator.platform,n=e||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,r=i.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);var d=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),e="Win32"===s;let p="MacIntel"===s;return!c&&p&&t.touch&&0<=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(o+"x"+r)&&(c=n.match(/(Version)\/([\d.]+)/),c=c||[0,1,"13_0_0"],p=!1),l&&!e&&(a.os="android",a.android=!0),(c||u||d)&&(a.os="ios",a.ios=!0),a}(),d),o.browser=(u=u||function(){const t=A();let e=!1;function i(){const e=t.navigator.userAgent.toLowerCase();return 0<=e.indexOf("safari")&&e.indexOf("chrome")<0&&e.indexOf("android")<0}if(i()){const i=String(t.navigator.userAgent);if(i.includes("Version/")){const[t,s]=i.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));e=t<16||16===t&&s<2}}return{isSafari:e||i(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}(),u),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);const r={};o.modules.forEach(e=>{var s,n;e({params:i,swiper:o,extendParams:(s=i,n=r,function(e){void 0===e&&(e={});var t=Object.keys(e)[0],i=e[t];"object"==typeof i&&null!==i&&(0<=["navigation","pagination","scrollbar"].indexOf(t)&&!0===s[t]&&(s[t]={auto:!0}),t in s&&"enabled"in i&&(!0===s[t]&&(s[t]={enabled:!0}),"object"!=typeof s[t]||"enabled"in s[t]||(s[t].enabled=!0),s[t]||(s[t]={enabled:!1}))),f(n,e)}),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});var l=f({},E,r);return o.params=f({},l,j,i),o.originalParams=f({},o.params),o.passedParams=f({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(e=>{o.on(e,o.params.on[e])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,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,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(e){var{slidesEl:t,params:i}=this,i=_(I(t,`.${i.slideClass}, swiper-slide`)[0]);return _(e)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(e=>+e.getAttribute("data-swiper-slide-index")===t)[0])}recalcSlides(){var{slidesEl:e,params:t}=this;this.slides=I(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);var i=this.minTranslate(),i=(this.maxTranslate()-i)*e+i;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){const t=this;if(t.params._emitClasses&&t.el){const e=t.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass));t.emit("_containerClasses",e.join(" "))}}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const i=this;if(i.params._emitClasses&&i.el){const s=[];i.slides.forEach(e=>{var t=i.getSlideClasses(e);s.push({slideEl:e,classNames:t}),i.emit("_slideClass",e,t)}),i.emit("_slideClasses",s)}}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);var{params:i,slides:s,slidesGrid:n,slidesSizesGrid:a,size:o,activeIndex:r}=this;let l=1;if(i.centeredSlides){let t,i=s[r]?s[r].swiperSlideSize:0;for(let e=r+1;e<s.length;e+=1)s[e]&&!t&&(i+=s[e].swiperSlideSize,l+=1,i>o&&(t=!0));for(let e=r-1;0<=e;--e)s[e]&&!t&&(i+=s[e].swiperSlideSize,l+=1,i>o&&(t=!0))}else if("current"===e)for(let e=r+1;e<s.length;e+=1)(t?n[e]+a[e]-n[r]<o:n[e]-n[r]<o)&&(l+=1);else for(let e=r-1;0<=e;--e)n[r]-n[e]<o&&(l+=1);return l}update(){const t=this;if(t&&!t.destroyed){const{snapGrid:s,params:n}=t;let e;if(n.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&o(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&t.updateAutoHeight();else{if(("auto"===n.slidesPerView||1<n.slidesPerView)&&t.isEnd&&!n.centeredSlides){const s=(t.virtual&&n.virtual.enabled?t.virtual:t).slides;e=t.slideTo(s.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||i()}function i(){var e=t.rtlTranslate?-1*t.translate:t.translate,e=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}n.watchOverflow&&s!==t.snapGrid&&t.checkOverflow(),t.emit("update")}}changeDirection(t,e){void 0===e&&(e=!0);var i=this,s=i.params.direction;return(t=t||("horizontal"===s?"vertical":"horizontal"))===s||"horizontal"!==t&&"vertical"!==t||(i.el.classList.remove(""+i.params.containerModifierClass+s),i.el.classList.add(""+i.params.containerModifierClass+t),i.emitContainerClasses(),i.params.direction=t,i.slides.forEach(e=>{"vertical"===t?e.style.width="":e.style.height=""}),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(e){var t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(t.params.containerModifierClass+"rtl"),t.el.dir="rtl"):(t.el.classList.remove(t.params.containerModifierClass+"rtl"),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.shadowEl&&(t.isElement=!0);const s=()=>"."+(t.params.wrapperClass||"").trim().split(" ").join(".");let n=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):I(i,s())[0];return!n&&t.params.createElements&&(n=M("div",t.params.wrapperClass),i.append(n),I(i,"."+t.params.slideClass).forEach(e=>{n.append(e)})),Object.assign(t,{el:i,wrapperEl:n,slidesEl:t.isElement?i:n,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===L(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===L(i,"direction")),wrongRTL:"-webkit-box"===L(n,"display")}),!0}init(e){const t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete?o(t,e):e.addEventListener("load",e=>{o(t,e.target)})}),p(t),t.initialized=!0,p(t),t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,el:n,wrapperEl:a,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n.removeAttribute("style"),a.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el.swiper=null,function(){const t=i;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}()),i.destroyed=!0),null}static extendDefaults(e){f(j,e)}static get extendedDefaults(){return j}static get defaults(){return E}static installModule(e){H.prototype.__modules__||(H.prototype.__modules__=[]);const t=H.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>H.installModule(e)):H.installModule(e),H}}function B(i,s,n,a){return i.params.createElements&&Object.keys(a).forEach(t=>{if(!n[t]&&!0===n.auto){let e=I(i.el,"."+a[t])[0];e||(e=M("div",a[t]),e.className=a[t],i.el.append(e)),n[t]=e,s[t]=e}}),n}function R(e){return"."+(e=void 0===e?"":e).trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}function F(e){const{effect:i,swiper:s,on:t,setTranslate:n,setTransition:a,overwriteParams:o,perspective:r,recreateShadows:l,getEffectParams:c}=e;let d;t("beforeInit",()=>{var e;s.params.effect===i&&(s.classNames.push(""+s.params.containerModifierClass+i),r&&r()&&s.classNames.push(s.params.containerModifierClass+"3d"),e=o?o():{},Object.assign(s.params,e),Object.assign(s.originalParams,e))}),t("setTranslate",()=>{s.params.effect===i&&n()}),t("setTransition",(e,t)=>{s.params.effect===i&&a(t)}),t("transitionEnd",()=>{s.params.effect===i&&l&&c&&c().slideShadows&&(s.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),l())}),t("virtualUpdate",()=>{s.params.effect===i&&(s.slides.length||(d=!0),requestAnimationFrame(()=>{d&&s.slides&&s.slides.length&&(n(),d=!1)}))})}function q(e,t){const i=r(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function W(e){let{swiper:i,duration:t,transformElements:s,allSlides:n}=e;const a=i["activeIndex"];if(i.params.virtualTranslate&&0!==t){let e,t=!1;e=n?s:s.filter(e=>{var t,e=e.classList.contains("swiper-slide-transform")?(t=e).parentElement||i.slides.filter(e=>e.shadowEl&&e.shadowEl===t.parentNode)[0]:e;return i.getSlideIndex(e)===a}),e.forEach(e=>{g(e,()=>{var e;t||i&&!i.destroyed&&(t=!0,i.animating=!1,e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0}),i.wrapperEl.dispatchEvent(e))})})}}function V(e,t,i){const s="swiper-slide-shadow"+(i?"-"+i:""),n=r(t);let a=n.querySelector("."+s);return a||(a=M("div","swiper-slide-shadow"+(i?"-"+i:"")),n.append(a)),a}return Object.keys(N).forEach(t=>{Object.keys(N[t]).forEach(e=>{H.prototype[e]=N[t][e]})}),H.use([function(e){let{swiper:a,on:t,emit:i}=e;const s=A();let n=null,o=null;const r=()=>{a&&!a.destroyed&&a.initialized&&(i("beforeResize"),i("resize"))},l=()=>{a&&!a.destroyed&&a.initialized&&i("orientationchange")};t("init",()=>{a.params.resizeObserver&&void 0!==s.ResizeObserver?a&&!a.destroyed&&a.initialized&&(n=new ResizeObserver(i=>{o=s.requestAnimationFrame(()=>{var{width:e,height:t}=a;let s=e,n=t;i.forEach(e=>{var{contentBoxSize:t,contentRect:i,target:e}=e;e&&e!==a.el||(s=i?i.width:(t[0]||t).inlineSize,n=i?i.height:(t[0]||t).blockSize)}),s===e&&n===t||r()})}),n.observe(a.el)):(s.addEventListener("resize",r),s.addEventListener("orientationchange",l))}),t("destroy",()=>{o&&s.cancelAnimationFrame(o),n&&n.unobserve&&a.el&&(n.unobserve(a.el),n=null),s.removeEventListener("resize",r),s.removeEventListener("orientationchange",l)})},function(e){let{swiper:s,extendParams:t,on:i,emit:n}=e;function a(e,t){void 0===t&&(t={});const i=new(r.MutationObserver||r.WebkitMutationObserver)(e=>{var t;s.__preventObserver__||(1!==e.length?(t=function(){n("observerUpdate",e[0])},r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)):n("observerUpdate",e[0]))});i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),o.push(i)}const o=[],r=A();t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(s.params.observer){if(s.params.observeParents){var t=z(s.el);for(let e=0;e<t.length;e+=1)a(t[e])}a(s.el,{childList:s.params.observeSlideChildren}),a(s.wrapperEl,{attributes:!1})}}),i("destroy",()=>{o.forEach(e=>{e.disconnect()}),o.splice(0,o.length)})}]),H.use([function(e){let t,{swiper:T,extendParams:i,on:s,emit:C}=e;i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const n=$();T.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const a=n.createElement("div");function E(e,t){const i=T.params.virtual;if(i.cache&&T.virtual.cache[t])return T.virtual.cache[t];let s;return i.renderSlide?(s=i.renderSlide.call(T,e,t),"string"==typeof s&&(a.innerHTML=s,s=a.children[0])):s=T.isElement?M("swiper-slide"):M("div",T.params.slideClass),s.setAttribute("data-swiper-slide-index",t),i.renderSlide||(s.innerHTML=e),i.cache&&(T.virtual.cache[t]=s),s}function o(t){const{slidesPerView:i,slidesPerGroup:e,centeredSlides:s,loop:n}=T.params,{addSlidesBefore:a,addSlidesAfter:o}=T.params.virtual,{from:r,to:l,slides:c,slidesGrid:d,offset:u}=T.virtual;T.params.cssMode||T.updateActiveIndex();var p=T.activeIndex||0;let h,f,m;h=T.rtlTranslate?"right":T.isHorizontal()?"left":"top",m=s?(f=Math.floor(i/2)+e+o,Math.floor(i/2)+e+a):(f=i+(e-1)+o,(n?i:e)+a);let g=p-m,v=p+f;n||(g=Math.max(g,0),v=Math.min(v,c.length-1));let y=(T.slidesGrid[g]||0)-(T.slidesGrid[0]||0);function b(){T.updateSlides(),T.updateProgress(),T.updateSlidesClasses(),C("virtualUpdate")}if(n&&p>=m?(g-=m,s||(y+=T.slidesGrid[0])):n&&p<m&&(g=-m,s&&(y+=T.slidesGrid[0])),Object.assign(T.virtual,{from:g,to:v,offset:y,slidesGrid:T.slidesGrid,slidesBefore:m,slidesAfter:f}),r===g&&l===v&&!t)return T.slidesGrid!==d&&y!==u&&T.slides.forEach(e=>{e.style[h]=y-Math.abs(T.cssOverflowAdjustment())+"px"}),T.updateProgress(),void C("virtualUpdate");if(T.params.virtual.renderExternal)return T.params.virtual.renderExternal.call(T,{offset:y,from:g,to:v,slides:function(){const t=[];for(let e=g;e<=v;e+=1)t.push(c[e]);return t}()}),void(T.params.virtual.renderExternalUpdate?b():C("virtualUpdate"));const w=[],x=[],_=e=>{let t=e;return e<0?t=c.length+e:t>=c.length&&(t-=c.length),t};if(t)T.slidesEl.querySelectorAll(`.${T.params.slideClass}, swiper-slide`).forEach(e=>{e.remove()});else for(let e=r;e<=l;e+=1)if(e<g||e>v){const i=_(e);T.slidesEl.querySelectorAll(`.${T.params.slideClass}[data-swiper-slide-index="${i}"], swiper-slide[data-swiper-slide-index="${i}"]`).forEach(e=>{e.remove()})}var p=n?-c.length:0,S=n?2*c.length:c.length;for(let e=p;e<S;e+=1)if(e>=g&&e<=v){const T=_(e);void 0===l||t?x.push(T):(e>l&&x.push(T),e<r&&w.push(T))}if(x.forEach(e=>{T.slidesEl.append(E(c[e],e))}),n)for(let e=w.length-1;0<=e;--e){const i=w[e];T.slidesEl.prepend(E(c[i],i))}else w.sort((e,t)=>t-e),w.forEach(e=>{T.slidesEl.prepend(E(c[e],e))});I(T.slidesEl,".swiper-slide, swiper-slide").forEach(e=>{e.style[h]=y-Math.abs(T.cssOverflowAdjustment())+"px"}),b()}s("beforeInit",()=>{if(T.params.virtual.enabled){let e;if(void 0===T.passedParams.virtual.slides){const t=[...T.slidesEl.children].filter(e=>e.matches(`.${T.params.slideClass}, swiper-slide`));t&&t.length&&(T.virtual.slides=[...t],e=!0,t.forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t),(T.virtual.cache[t]=e).remove()}))}e||(T.virtual.slides=T.params.virtual.slides),T.classNames.push(T.params.containerModifierClass+"virtual"),T.params.watchSlidesProgress=!0,T.originalParams.watchSlidesProgress=!0,T.params.initialSlide||o()}}),s("setTranslate",()=>{T.params.virtual.enabled&&(T.params.cssMode&&!T._immediateVirtual?(clearTimeout(t),t=setTimeout(()=>{o()},100)):o())}),s("init update resize",()=>{T.params.virtual.enabled&&T.params.cssMode&&k(T.wrapperEl,"--swiper-virtual-size",T.virtualSize+"px")}),Object.assign(T.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&T.virtual.slides.push(t[e]);else T.virtual.slides.push(t);o(!0)},prependSlide:function(s){const n=T.activeIndex;let e=n+1,a=1;if(Array.isArray(s)){for(let e=0;e<s.length;e+=1)s[e]&&T.virtual.slides.unshift(s[e]);e=n+s.length,a=s.length}else T.virtual.slides.unshift(s);if(T.params.virtual.cache){const s=T.virtual.cache,n={};Object.keys(s).forEach(e=>{const t=s[e],i=t.getAttribute("data-swiper-slide-index");i&&t.setAttribute("data-swiper-slide-index",parseInt(i,10)+a),n[parseInt(e,10)+a]=t}),T.virtual.cache=n}o(!0),T.slideTo(e,0)},removeSlide:function(i){if(null!=i){let t=T.activeIndex;if(Array.isArray(i))for(let e=i.length-1;0<=e;--e)T.virtual.slides.splice(i[e],1),T.params.virtual.cache&&delete T.virtual.cache[i[e]],i[e]<t&&--t,t=Math.max(t,0);else T.virtual.slides.splice(i,1),T.params.virtual.cache&&delete T.virtual.cache[i],i<t&&--t,t=Math.max(t,0);o(!0),T.slideTo(t,0)}},removeAllSlides:function(){T.virtual.slides=[],T.params.virtual.cache&&(T.virtual.cache={}),o(!0),T.slideTo(0,0)},update:o})},function(e){let{swiper:u,extendParams:t,on:i,emit:p}=e;const h=$(),f=A();function s(t){if(u.enabled){const i=u["rtlTranslate"];let e=t;e.originalEvent&&(e=e.originalEvent);const s=e.keyCode||e.charCode,n=u.params.keyboard.pageUpDown,a=n&&33===s,o=n&&34===s,r=37===s,l=39===s,c=38===s,d=40===s;if(!u.allowSlideNext&&(u.isHorizontal()&&l||u.isVertical()&&d||o))return!1;if(!u.allowSlidePrev&&(u.isHorizontal()&&r||u.isVertical()&&c||a))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||h.activeElement&&h.activeElement.nodeName&&("input"===h.activeElement.nodeName.toLowerCase()||"textarea"===h.activeElement.nodeName.toLowerCase()))){if(u.params.keyboard.onlyInViewport&&(a||o||r||l||c||d)){let t=!1;if(0<z(u.el,`.${u.params.slideClass}, swiper-slide`).length&&0===z(u.el,"."+u.params.slideActiveClass).length)return;const e=u.el,s=e.clientWidth,n=e.clientHeight,p=f.innerWidth,h=f.innerHeight,a=O(e);i&&(a.left-=e.scrollLeft);const o=[[a.left,a.top],[a.left+s,a.top],[a.left,a.top+n],[a.left+s,a.top+n]];for(let e=0;e<o.length;e+=1){const i=o[e];0<=i[0]&&i[0]<=p&&0<=i[1]&&i[1]<=h&&(0===i[0]&&0===i[1]||(t=!0))}if(!t)return}u.isHorizontal()?((a||o||r||l)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),((o||l)&&!i||(a||r)&&i)&&u.slideNext(),((a||r)&&!i||(o||l)&&i)&&u.slidePrev()):((a||o||c||d)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(o||d)&&u.slideNext(),(a||c)&&u.slidePrev()),p("keyPress",s)}}}function n(){u.keyboard.enabled||(h.addEventListener("keydown",s),u.keyboard.enabled=!0)}function a(){u.keyboard.enabled&&(h.removeEventListener("keydown",s),u.keyboard.enabled=!1)}u.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",()=>{u.params.keyboard.enabled&&n()}),i("destroy",()=>{u.keyboard.enabled&&a()}),Object.assign(u.keyboard,{enable:n,disable:a})},function(e){let{swiper:d,extendParams:t,on:i,emit:u}=e;const s=A();let p;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),d.mousewheel={enabled:!1};let h,n=v();const f=[];function a(){d.enabled&&(d.mouseEntered=!0)}function o(){d.enabled&&(d.mouseEntered=!1)}function m(e){return!(d.params.mousewheel.thresholdDelta&&e.delta<d.params.mousewheel.thresholdDelta)&&!(d.params.mousewheel.thresholdTime&&v()-n<d.params.mousewheel.thresholdTime)&&(6<=e.delta&&v()-n<60||(e.direction<0?d.isEnd&&!d.params.loop||d.animating||(d.slideNext(),u("scroll",e.raw)):d.isBeginning&&!d.params.loop||d.animating||(d.slidePrev(),u("scroll",e.raw)),n=(new s.Date).getTime(),0))}function r(s){let n=s,a=!0;if(d.enabled&&!s.target.closest("."+d.params.mousewheel.noMousewheelClass)){var o=d.params.mousewheel;d.params.cssMode&&n.preventDefault();let e=d.el;"container"!==d.params.mousewheel.eventsTarget&&(e=document.querySelector(d.params.mousewheel.eventsTarget));const c=e&&e.contains(n.target);if(!d.mouseEntered&&!c&&!o.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let i=0;var r=d.rtlTranslate?-1:1,l=function(e){let t=0,i=0,s=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=n,n=0),(s||n)&&e.deltaMode&&(1===e.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!t&&(t=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:n}}(n);if(o.forceToAxis)if(d.isHorizontal()){if(!(Math.abs(l.pixelX)>Math.abs(l.pixelY)))return!0;i=-l.pixelX*r}else{if(!(Math.abs(l.pixelY)>Math.abs(l.pixelX)))return!0;i=-l.pixelY}else i=Math.abs(l.pixelX)>Math.abs(l.pixelY)?-l.pixelX*r:-l.pixelY;if(0===i)return!0;o.invert&&(i=-i);let t=d.getTranslate()+i*o.sensitivity;if(t>=d.minTranslate()&&(t=d.minTranslate()),t<=d.maxTranslate()&&(t=d.maxTranslate()),a=!!d.params.loop||!(t===d.minTranslate()||t===d.maxTranslate()),a&&d.params.nested&&n.stopPropagation(),d.params.freeMode&&d.params.freeMode.enabled){const s={time:v(),delta:Math.abs(i),direction:Math.sign(i)},a=h&&s.time<h.time+500&&s.delta<=h.delta&&s.direction===h.direction;if(!a){h=void 0;let e=d.getTranslate()+i*o.sensitivity;const t=d.isBeginning,c=d.isEnd;if(e>=d.minTranslate()&&(e=d.minTranslate()),e<=d.maxTranslate()&&(e=d.maxTranslate()),d.setTransition(0),d.setTranslate(e),d.updateProgress(),d.updateActiveIndex(),d.updateSlidesClasses(),(!t&&d.isBeginning||!c&&d.isEnd)&&d.updateSlidesClasses(),d.params.loop&&d.loopFix({direction:s.direction<0?"next":"prev",byMousewheel:!0}),d.params.freeMode.sticky){clearTimeout(p),p=void 0,15<=f.length&&f.shift();const n=f.length?f[f.length-1]:void 0,a=f[0];if(f.push(s),n&&(s.delta>n.delta||s.direction!==n.direction))f.splice(0);else if(15<=f.length&&s.time-a.time<500&&1<=a.delta-s.delta&&s.delta<=6){const n=0<i?.8:.2;h=s,f.splice(0),p=T(()=>{d.slideToClosest(d.params.speed,!0,void 0,n)},0)}p=p||T(()=>{h=s,f.splice(0),d.slideToClosest(d.params.speed,!0,void 0,.5)},500)}if(a||u("scroll",n),d.params.autoplay&&d.params.autoplayDisableOnInteraction&&d.autoplay.stop(),e===d.minTranslate()||e===d.maxTranslate())return!0}}else{const n={time:v(),delta:Math.abs(i),direction:Math.sign(i),raw:s};2<=f.length&&f.shift();const a=f.length?f[f.length-1]:void 0;if(f.push(n),(!a||n.direction!==a.direction||n.delta>a.delta||n.time>a.time+150)&&m(n),function(e){var t=d.params.mousewheel;if(e.direction<0){if(d.isEnd&&!d.params.loop&&t.releaseOnEdges)return 1}else if(d.isBeginning&&!d.params.loop&&t.releaseOnEdges)return 1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}}function l(e){let t=d.el;"container"!==d.params.mousewheel.eventsTarget&&(t=document.querySelector(d.params.mousewheel.eventsTarget)),t[e]("mouseenter",a),t[e]("mouseleave",o),t[e]("wheel",r)}function c(){return d.params.cssMode?(d.wrapperEl.removeEventListener("wheel",r),!0):!d.mousewheel.enabled&&(l("addEventListener"),d.mousewheel.enabled=!0)}function g(){return d.params.cssMode?(d.wrapperEl.addEventListener(event,r),!0):!!d.mousewheel.enabled&&(l("removeEventListener"),!(d.mousewheel.enabled=!1))}i("init",()=>{!d.params.mousewheel.enabled&&d.params.cssMode&&g(),d.params.mousewheel.enabled&&c()}),i("destroy",()=>{d.params.cssMode&&c(),d.mousewheel.enabled&&g()}),Object.assign(d.mousewheel,{enable:c,disable:g})},function(e){let{swiper:n,extendParams:t,on:i,emit:a}=e;t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),n.navigation={nextEl:null,prevEl:null};const o=e=>e=Array.isArray(e)?e:[e].filter(e=>!!e);function r(e){let t;return e&&"string"==typeof e&&n.isElement&&(t=n.el.shadowRoot.querySelector(e),t)?t:(e&&("string"==typeof e&&(t=[...document.querySelectorAll(e)]),n.params.uniqueNavElements&&"string"==typeof e&&1<t.length&&1===n.el.querySelectorAll(e).length&&(t=n.el.querySelector(e))),e&&!t?e:t)}function s(e,t){const i=n.params.navigation;(e=o(e)).forEach(e=>{e&&(e.classList[t?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=t),n.params.watchOverflow&&n.enabled&&e.classList[n.isLocked?"add":"remove"](i.lockClass))})}function l(){var{nextEl:e,prevEl:t}=n.navigation;if(n.params.loop)return s(t,!1),void s(e,!1);s(t,n.isBeginning&&!n.params.rewind),s(e,n.isEnd&&!n.params.rewind)}function c(e){e.preventDefault(),n.isBeginning&&!n.params.loop&&!n.params.rewind||(n.slidePrev(),a("navigationPrev"))}function d(e){e.preventDefault(),n.isEnd&&!n.params.loop&&!n.params.rewind||(n.slideNext(),a("navigationNext"))}function u(){const i=n.params.navigation;if(n.params.navigation=B(n,n.originalParams.navigation,n.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),i.nextEl||i.prevEl){let e=r(i.nextEl),t=r(i.prevEl);Object.assign(n.navigation,{nextEl:e,prevEl:t}),e=o(e),t=o(t);const s=(e,t)=>{e&&e.addEventListener("click","next"===t?d:c),!n.enabled&&e&&e.classList.add(...i.lockClass.split(" "))};e.forEach(e=>s(e,"next")),t.forEach(e=>s(e,"prev"))}}function p(){let{nextEl:e,prevEl:t}=n.navigation;e=o(e),t=o(t);const i=(e,t)=>{e.removeEventListener("click","next"===t?d:c),e.classList.remove(...n.params.navigation.disabledClass.split(" "))};e.forEach(e=>i(e,"next")),t.forEach(e=>i(e,"prev"))}i("init",()=>{!1===n.params.navigation.enabled?h():(u(),l())}),i("toEdge fromEdge lock unlock",()=>{l()}),i("destroy",()=>{p()}),i("enable disable",()=>{var{nextEl:e,prevEl:t}=n.navigation,e=o(e),t=o(t);[...e,...t].filter(e=>!!e).forEach(e=>e.classList[n.enabled?"remove":"add"](n.params.navigation.lockClass))}),i("click",(e,t)=>{let{nextEl:i,prevEl:s}=n.navigation;i=o(i),s=o(s);t=t.target;if(n.params.navigation.hideOnClick&&!s.includes(t)&&!i.includes(t)&&(!(n.pagination&&n.params.pagination&&n.params.pagination.clickable)||n.pagination.el!==t&&!n.pagination.el.contains(t))){let e;i.length?e=i[0].classList.contains(n.params.navigation.hiddenClass):s.length&&(e=s[0].classList.contains(n.params.navigation.hiddenClass)),a(!0===e?"navigationShow":"navigationHide"),[...i,...s].filter(e=>!!e).forEach(e=>e.classList.toggle(n.params.navigation.hiddenClass))}});const h=()=>{n.el.classList.add(...n.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(n.navigation,{enable:()=>{n.el.classList.remove(...n.params.navigation.navigationDisabledClass.split(" ")),u(),l()},disable:h,update:l,init:u,destroy:p})},function(e){let{swiper:c,extendParams:t,on:i,emit:d}=e;e="swiper-pagination";let u;t({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:e=>e,formatFractionTotal:e=>e,bulletClass:e+"-bullet",bulletActiveClass:e+"-bullet-active",modifierClass:e+"-",currentClass:e+"-current",totalClass:e+"-total",hiddenClass:e+"-hidden",progressbarFillClass:e+"-progressbar-fill",progressbarOppositeClass:e+"-progressbar-opposite",clickableClass:e+"-clickable",lockClass:e+"-lock",horizontalClass:e+"-horizontal",verticalClass:e+"-vertical",paginationDisabledClass:e+"-disabled"}}),c.pagination={el:null,bullets:[]};let p=0;const h=e=>e=Array.isArray(e)?e:[e].filter(e=>!!e);function a(){return!c.params.pagination.el||!c.pagination.el||Array.isArray(c.pagination.el)&&0===c.pagination.el.length}function f(e,t){var i=c.params.pagination["bulletActiveClass"];(e=e&&e[("prev"===t?"previous":"next")+"ElementSibling"])&&(e.classList.add(i+"-"+t),(e=e[("prev"===t?"previous":"next")+"ElementSibling"])&&e.classList.add(i+`-${t}-`+t))}function s(e){const t=e.target.closest(R(c.params.pagination.bulletClass));if(t){e.preventDefault();e=_(t)*c.params.slidesPerGroup;if(c.params.loop){if(c.realIndex!==e){const i=c.getSlideIndexByData(e),t=c.getSlideIndexByData(c.realIndex);i>c.slides.length-c.loopedSlides&&c.loopFix({direction:i>t?"next":"prev",activeSlideIndex:i,slideTo:!1}),c.slideToLoop(e)}}else c.slideTo(e)}}function n(){const o=c.rtl,r=c.params.pagination;if(!a()){let a,e,t=c.pagination.el;t=h(t);const i=(c.virtual&&c.params.virtual.enabled?c.virtual:c).slides.length,l=c.params.loop?Math.ceil(i/c.params.slidesPerGroup):c.snapGrid.length;if(c.params.loop?(e=c.previousRealIndex||0,a=1<c.params.slidesPerGroup?Math.floor(c.realIndex/c.params.slidesPerGroup):c.realIndex):void 0!==c.snapIndex?(a=c.snapIndex,e=c.previousSnapIndex):(e=c.previousIndex||0,a=c.activeIndex||0),"bullets"===r.type&&c.pagination.bullets&&0<c.pagination.bullets.length){const d=c.pagination.bullets;let i,s,n;if(r.dynamicBullets&&(u=D(d[0],c.isHorizontal()?"width":"height",!0),t.forEach(e=>{e.style[c.isHorizontal()?"width":"height"]=u*(r.dynamicMainBullets+4)+"px"}),1<r.dynamicMainBullets&&void 0!==e&&(p+=a-(e||0),p>r.dynamicMainBullets-1?p=r.dynamicMainBullets-1:p<0&&(p=0)),i=Math.max(a-p,0),s=i+(Math.min(d.length,r.dynamicMainBullets)-1),n=(s+i)/2),d.forEach(e=>{var t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>""+r.bulletActiveClass+e)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),1<t.length)d.forEach(e=>{var t=_(e);t===a?e.classList.add(...r.bulletActiveClass.split(" ")):c.isElement&&e.setAttribute("part","bullet"),r.dynamicBullets&&(t>=i&&t<=s&&e.classList.add(...(r.bulletActiveClass+"-main").split(" ")),t===i&&f(e,"prev"),t===s&&f(e,"next"))});else{const o=d[a];if(o&&o.classList.add(...r.bulletActiveClass.split(" ")),c.isElement&&d.forEach((e,t)=>{e.setAttribute("part",t===a?"bullet-active":"bullet")}),r.dynamicBullets){const o=d[i],c=d[s];for(let e=i;e<=s;e+=1)d[e]&&d[e].classList.add(...(r.bulletActiveClass+"-main").split(" "));f(o,"prev"),f(c,"next")}}if(r.dynamicBullets){const e=Math.min(d.length,r.dynamicMainBullets+4),t=(u*e-u)/2-n*u,p=o?"right":"left";d.forEach(e=>{e.style[c.isHorizontal()?p:"top"]=t+"px"})}}t.forEach((e,s)=>{if("fraction"===r.type&&(e.querySelectorAll(R(r.currentClass)).forEach(e=>{e.textContent=r.formatFractionCurrent(a+1)}),e.querySelectorAll(R(r.totalClass)).forEach(e=>{e.textContent=r.formatFractionTotal(l)})),"progressbar"===r.type){var n=r.progressbarOpposite?c.isHorizontal()?"vertical":"horizontal":c.isHorizontal()?"horizontal":"vertical";const s=(a+1)/l;let t=1,i=1;"horizontal"==n?t=s:i=s,e.querySelectorAll(R(r.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${t}) scaleY(${i})`,e.style.transitionDuration=c.params.speed+"ms"})}"custom"===r.type&&r.renderCustom?(e.innerHTML=r.renderCustom(c,a+1,l),0===s&&d("paginationRender",e)):(0===s&&d("paginationRender",e),d("paginationUpdate",e)),c.params.watchOverflow&&c.enabled&&e.classList[c.isLocked?"add":"remove"](r.lockClass)})}}function o(){const s=c.params.pagination;if(!a()){var n=(c.virtual&&c.params.virtual.enabled?c.virtual:c).slides.length;let e=c.pagination.el;e=h(e);let i="";if("bullets"===s.type){let t=c.params.loop?Math.ceil(n/c.params.slidesPerGroup):c.snapGrid.length;c.params.freeMode&&c.params.freeMode.enabled&&t>n&&(t=n);for(let e=0;e<t;e+=1)s.renderBullet?i+=s.renderBullet.call(c,e,s.bulletClass):i+=`<${s.bulletElement} ${c.isElement?'part="bullet"':""} class="${s.bulletClass}"></${s.bulletElement}>`}"fraction"===s.type&&(i=s.renderFraction?s.renderFraction.call(c,s.currentClass,s.totalClass):`<span class="${s.currentClass}"></span> / <span class="${s.totalClass}"></span>`),"progressbar"===s.type&&(i=s.renderProgressbar?s.renderProgressbar.call(c,s.progressbarFillClass):`<span class="${s.progressbarFillClass}"></span>`),c.pagination.bullets=[],e.forEach(e=>{"custom"!==s.type&&(e.innerHTML=i||""),"bullets"===s.type&&c.pagination.bullets.push(...e.querySelectorAll(R(s.bulletClass)))}),"custom"!==s.type&&d("paginationRender",e[0])}}function r(){c.params.pagination=B(c,c.originalParams.pagination,c.params.pagination,{el:"swiper-pagination"});const t=c.params.pagination;if(t.el){let e;"string"==typeof t.el&&c.isElement&&(e=c.el.shadowRoot.querySelector(t.el)),e||"string"!=typeof t.el||(e=[...document.querySelectorAll(t.el)]),e=e||t.el,e&&0!==e.length&&(c.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(e)&&1<e.length&&(e=[...c.el.querySelectorAll(t.el)],1<e.length&&(e=e.filter(e=>z(e,".swiper")[0]===c.el)[0])),Array.isArray(e)&&1===e.length&&(e=e[0]),Object.assign(c.pagination,{el:e}),e=h(e),e.forEach(e=>{"bullets"===t.type&&t.clickable&&e.classList.add(t.clickableClass),e.classList.add(t.modifierClass+t.type),e.classList.add(c.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(e.classList.add(""+t.modifierClass+t.type+"-dynamic"),p=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&e.classList.add(t.progressbarOppositeClass),t.clickable&&e.addEventListener("click",s),c.enabled||e.classList.add(t.lockClass)}))}}function l(){const t=c.params.pagination;if(!a()){let e=c.pagination.el;e&&(e=h(e),e.forEach(e=>{e.classList.remove(t.hiddenClass),e.classList.remove(t.modifierClass+t.type),e.classList.remove(c.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&e.removeEventListener("click",s)})),c.pagination.bullets&&c.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}}i("changeDirection",()=>{if(c.pagination&&c.pagination.el){const t=c.params.pagination;let e=c.pagination["el"];e=h(e),e.forEach(e=>{e.classList.remove(t.horizontalClass,t.verticalClass),e.classList.add(c.isHorizontal()?t.horizontalClass:t.verticalClass)})}}),i("init",()=>{!1===c.params.pagination.enabled?m():(r(),o(),n())}),i("activeIndexChange",()=>{void 0===c.snapIndex&&n()}),i("snapIndexChange",()=>{n()}),i("snapGridLengthChange",()=>{o(),n()}),i("destroy",()=>{l()}),i("enable disable",()=>{let e=c.pagination["el"];e&&(e=h(e),e.forEach(e=>e.classList[c.enabled?"remove":"add"](c.params.pagination.lockClass)))}),i("lock unlock",()=>{n()}),i("click",(e,t)=>{const i=t.target;let s=c.pagination["el"];if(Array.isArray(s)||(s=[s].filter(e=>!!e)),c.params.pagination.el&&c.params.pagination.hideOnClick&&s&&0<s.length&&!i.classList.contains(c.params.pagination.bulletClass)&&(!c.navigation||!(c.navigation.nextEl&&i===c.navigation.nextEl||c.navigation.prevEl&&i===c.navigation.prevEl))){const e=s[0].classList.contains(c.params.pagination.hiddenClass);d(!0===e?"paginationShow":"paginationHide"),s.forEach(e=>e.classList.toggle(c.params.pagination.hiddenClass))}});const m=()=>{c.el.classList.add(c.params.pagination.paginationDisabledClass);let e=c.pagination["el"];e&&(e=h(e),e.forEach(e=>e.classList.add(c.params.pagination.paginationDisabledClass))),l()};Object.assign(c.pagination,{enable:()=>{c.el.classList.remove(c.params.pagination.paginationDisabledClass);let e=c.pagination["el"];e&&(e=h(e),e.forEach(e=>e.classList.remove(c.params.pagination.paginationDisabledClass))),r(),o(),n()},disable:m,render:o,update:n,init:r,destroy:l})},function(e){let{swiper:l,extendParams:t,on:i,emit:o}=e;const r=$();let c,d,u,s,p=!1,h=null,f=null;function n(){if(l.params.scrollbar.el&&l.scrollbar.el){const{scrollbar:i,rtlTranslate:s}=l,{dragEl:n,el:a}=i,o=l.params.scrollbar,r=l.params.loop?l.progressLoop:l.progress;let e=d,t=(u-d)*r;s?(t=-t,0<t?(e=d-t,t=0):-t+d>u&&(e=u+t)):t<0?(e=d+t,t=0):t+d>u&&(e=u-t),l.isHorizontal()?(n.style.transform=`translate3d(${t}px, 0, 0)`,n.style.width=e+"px"):(n.style.transform=`translate3d(0px, ${t}px, 0)`,n.style.height=e+"px"),o.hide&&(clearTimeout(h),a.style.opacity=1,h=setTimeout(()=>{a.style.opacity=0,a.style.transitionDuration="400ms"},1e3))}}function a(){if(l.params.scrollbar.el&&l.scrollbar.el){const e=l["scrollbar"],{dragEl:t,el:i}=e;t.style.width="",t.style.height="",u=l.isHorizontal()?i.offsetWidth:i.offsetHeight,s=l.size/(l.virtualSize+l.params.slidesOffsetBefore-(l.params.centeredSlides?l.snapGrid[0]:0)),d="auto"===l.params.scrollbar.dragSize?u*s:parseInt(l.params.scrollbar.dragSize,10),l.isHorizontal()?t.style.width=d+"px":t.style.height=d+"px",i.style.display=1<=s?"none":"",l.params.scrollbar.hide&&(i.style.opacity=0),l.params.watchOverflow&&l.enabled&&e.el.classList[l.isLocked?"add":"remove"](l.params.scrollbar.lockClass)}}function m(e){return l.isHorizontal()?e.clientX:e.clientY}function g(e){var{scrollbar:t,rtlTranslate:i}=l,t=t["el"];let s;s=(m(e)-O(t)[l.isHorizontal()?"left":"top"]-(null!==c?c:d/2))/(u-d),s=Math.max(Math.min(s,1),0),i&&(s=1-s);i=l.minTranslate()+(l.maxTranslate()-l.minTranslate())*s;l.updateProgress(i),l.setTranslate(i),l.updateActiveIndex(),l.updateSlidesClasses()}function v(e){const t=l.params.scrollbar,{scrollbar:i,wrapperEl:s}=l,{el:n,dragEl:a}=i;p=!0,c=e.target===a?m(e)-e.target.getBoundingClientRect()[l.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.style.transitionDuration="100ms",a.style.transitionDuration="100ms",g(e),clearTimeout(f),n.style.transitionDuration="0ms",t.hide&&(n.style.opacity=1),l.params.cssMode&&(l.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",e)}function y(e){const{scrollbar:t,wrapperEl:i}=l,{el:s,dragEl:n}=t;p&&(e.preventDefault?e.preventDefault():e.returnValue=!1,g(e),i.style.transitionDuration="0ms",s.style.transitionDuration="0ms",n.style.transitionDuration="0ms",o("scrollbarDragMove",e))}function b(e){const t=l.params.scrollbar,{scrollbar:i,wrapperEl:s}=l,n=i["el"];p&&(p=!1,l.params.cssMode&&(l.wrapperEl.style["scroll-snap-type"]="",s.style.transitionDuration=""),t.hide&&(clearTimeout(f),f=T(()=>{n.style.opacity=0,n.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",e),t.snapOnRelease&&l.slideToClosest())}function w(e){var{scrollbar:t,params:i}=l,t=t.el;if(t){const s=t,n=!!i.passiveListeners&&{passive:!1,capture:!1},a=!!i.passiveListeners&&{passive:!0,capture:!1};s&&(e="on"===e?"addEventListener":"removeEventListener",s[e]("pointerdown",v,n),r[e]("pointermove",y,n),r[e]("pointerup",b,a))}}function x(){const{scrollbar:i,el:s}=l;l.params.scrollbar=B(l,l.originalParams.scrollbar,l.params.scrollbar,{el:"swiper-scrollbar"});var n=l.params.scrollbar;if(n.el){let e,t;"string"==typeof n.el&&l.isElement&&(e=l.el.shadowRoot.querySelector(n.el)),e=e||"string"!=typeof n.el?e||n.el:r.querySelectorAll(n.el),l.params.uniqueNavElements&&"string"==typeof n.el&&1<e.length&&1===s.querySelectorAll(n.el).length&&(e=s.querySelector(n.el)),0<e.length&&(e=e[0]),e.classList.add(l.isHorizontal()?n.horizontalClass:n.verticalClass),e&&(t=e.querySelector("."+l.params.scrollbar.dragClass),t||(t=M("div",l.params.scrollbar.dragClass),e.append(t))),Object.assign(i,{el:e,dragEl:t}),n.draggable&&l.params.scrollbar.el&&l.scrollbar.el&&w("on"),e&&e.classList[l.enabled?"remove":"add"](l.params.scrollbar.lockClass)}}function _(){const e=l.params.scrollbar,t=l.scrollbar.el;t&&t.classList.remove(l.isHorizontal()?e.horizontalClass:e.verticalClass),l.params.scrollbar.el&&l.scrollbar.el&&w("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),l.scrollbar={el:null,dragEl:null},i("init",()=>{!1===l.params.scrollbar.enabled?S():(x(),a(),n())}),i("update resize observerUpdate lock unlock",()=>{a()}),i("setTranslate",()=>{n()}),i("setTransition",(e,t)=>{t=t,l.params.scrollbar.el&&l.scrollbar.el&&(l.scrollbar.dragEl.style.transitionDuration=t+"ms")}),i("enable disable",()=>{const e=l.scrollbar["el"];e&&e.classList[l.enabled?"remove":"add"](l.params.scrollbar.lockClass)}),i("destroy",()=>{_()});const S=()=>{l.el.classList.add(l.params.scrollbar.scrollbarDisabledClass),l.scrollbar.el&&l.scrollbar.el.classList.add(l.params.scrollbar.scrollbarDisabledClass),_()};Object.assign(l.scrollbar,{enable:()=>{l.el.classList.remove(l.params.scrollbar.scrollbarDisabledClass),l.scrollbar.el&&l.scrollbar.el.classList.remove(l.params.scrollbar.scrollbarDisabledClass),x(),a(),n()},disable:S,updateSize:a,setTranslate:n,init:x,destroy:_})},function(e){let{swiper:d,extendParams:t,on:i}=e;t({parallax:{enabled:!1}});const a=(e,t)=>{var i=d["rtl"],s=i?-1:1,n=e.getAttribute("data-swiper-parallax")||"0";let a=e.getAttribute("data-swiper-parallax-x"),o=e.getAttribute("data-swiper-parallax-y");var r=e.getAttribute("data-swiper-parallax-scale"),l=e.getAttribute("data-swiper-parallax-opacity"),i=e.getAttribute("data-swiper-parallax-rotate");if(a||o?(a=a||"0",o=o||"0"):d.isHorizontal()?(a=n,o="0"):(o=n,a="0"),a=0<=a.indexOf("%")?parseInt(a,10)*t*s+"%":a*t*s+"px",o=0<=o.indexOf("%")?parseInt(o,10)*t+"%":o*t+"px",null!=l){const d=l-(l-1)*(1-Math.abs(t));e.style.opacity=d}let c=`translate3d(${a}, ${o}, 0px)`;null!=r&&(c+=` scale(${r-(r-1)*(1-Math.abs(t))})`),i&&null!=i&&(c+=` rotate(${i*t*-1}deg)`),e.style.transform=c},s=()=>{const{el:e,slides:t,progress:s,snapGrid:n}=d;I(e,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach(e=>{a(e,s)}),t.forEach((e,t)=>{let i=e.progress;1<d.params.slidesPerGroup&&"auto"!==d.params.slidesPerView&&(i+=Math.ceil(t/2)-s*(n.length-1)),i=Math.min(Math.max(i,-1),1),e.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale], [data-swiper-parallax-rotate]").forEach(e=>{a(e,i)})})};i("beforeInit",()=>{d.params.parallax.enabled&&(d.params.watchSlidesProgress=!0,d.originalParams.watchSlidesProgress=!0)}),i("init",()=>{d.params.parallax.enabled&&s()}),i("setTranslate",()=>{d.params.parallax.enabled&&s()}),i("setTransition",(e,t)=>{d.params.parallax.enabled&&function(i){void 0===i&&(i=d.params.speed);const e=d["el"];e.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach(e=>{let t=parseInt(e.getAttribute("data-swiper-parallax-duration"),10)||i;0===i&&(t=0),e.style.transitionDuration=t+"ms"})}(t)})},function(e){let{swiper:_,extendParams:t,on:i,emit:s}=e;const S=A();t({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),_.zoom={enabled:!1};let n,a,T=1,o=!1;const r=[],C={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},E={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:{}},l={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let c=1;function d(){if(r.length<2)return 1;var e=r[0].pageX,t=r[0].pageY,i=r[1].pageX,s=r[1].pageY;return Math.sqrt((i-e)**2+(s-t)**2)}function u(t){var e=_.isElement?"swiper-slide":"."+_.params.slideClass;return t.target.matches(e)||0<_.slides.filter(e=>e.contains(t.target)).length}function p(t){if("mouse"===t.pointerType&&r.splice(0,r.length),u(t)){var i=_.params.zoom;if(n=!1,a=!1,r.push(t),!(r.length<2)){if(n=!0,C.scaleStart=d(),!C.slideEl){C.slideEl=t.target.closest(`.${_.params.slideClass}, swiper-slide`),C.slideEl||(C.slideEl=_.slides[_.activeIndex]);let e=C.slideEl.querySelector("."+i.containerClass);if(e=e&&e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0],C.imageEl=e,C.imageWrapEl=e?z(C.imageEl,"."+i.containerClass)[0]:void 0,!C.imageWrapEl)return void(C.imageEl=void 0);C.maxRatio=C.imageWrapEl.getAttribute("data-swiper-zoom")||i.maxRatio}if(C.imageEl){const[t,_]=function(){if(r.length<2)return{x:null,y:null};var e=C.imageEl.getBoundingClientRect();return[(r[0].pageX+(r[1].pageX-r[0].pageX)/2-e.x)/T,(r[0].pageY+(r[1].pageY-r[0].pageY)/2-e.y)/T]}();C.originX=t,C.originY=_,C.imageEl.style.transitionDuration="0ms"}o=!0}}}function h(t){if(u(t)){const e=_.params.zoom,i=_.zoom,s=r.findIndex(e=>e.pointerId===t.pointerId);0<=s&&(r[s]=t),r.length<2||(a=!0,C.scaleMove=d(),C.imageEl&&(i.scale=C.scaleMove/C.scaleStart*T,i.scale>C.maxRatio&&(i.scale=C.maxRatio-1+(i.scale-C.maxRatio+1)**.5),i.scale<e.minRatio&&(i.scale=e.minRatio+1-(e.minRatio-i.scale+1)**.5),C.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`))}}function f(t){if(u(t)&&("mouse"!==t.pointerType||"pointerout"!==t.type)){const e=_.params.zoom,i=_.zoom,s=r.findIndex(e=>e.pointerId===t.pointerId);0<=s&&r.splice(s,1),n&&a&&(n=!1,a=!1,C.imageEl&&(i.scale=Math.max(Math.min(i.scale,C.maxRatio),e.minRatio),C.imageEl.style.transitionDuration=_.params.speed+"ms",C.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`,T=i.scale,o=!1,1<i.scale&&C.slideEl?C.slideEl.classList.add(""+e.zoomedSlideClass):i.scale<=1&&C.slideEl&&C.slideEl.classList.remove(""+e.zoomedSlideClass),1===i.scale&&(C.originX=0,C.originY=0,C.slideEl=void 0)))}}function m(e){if(u(e)&&(t=e,n="."+_.params.zoom.containerClass,t.target.matches(n)||0<[..._.el.querySelectorAll(n)].filter(e=>e.contains(t.target)).length)){var t,i=_.zoom;if(C.imageEl&&E.isTouched&&C.slideEl){E.isMoved||(E.width=C.imageEl.offsetWidth,E.height=C.imageEl.offsetHeight,E.startX=P(C.imageWrapEl,"x")||0,E.startY=P(C.imageWrapEl,"y")||0,C.slideWidth=C.slideEl.offsetWidth,C.slideHeight=C.slideEl.offsetHeight,C.imageWrapEl.style.transitionDuration="0ms");var s=E.width*i.scale,n=E.height*i.scale;if(!(s<C.slideWidth&&n<C.slideHeight)){if(E.minX=Math.min(C.slideWidth/2-s/2,0),E.maxX=-E.minX,E.minY=Math.min(C.slideHeight/2-n/2,0),E.maxY=-E.minY,E.touchesCurrent.x=(0<r.length?r[0]:e).pageX,E.touchesCurrent.y=(0<r.length?r[0]:e).pageY,5<Math.max(Math.abs(E.touchesCurrent.x-E.touchesStart.x),Math.abs(E.touchesCurrent.y-E.touchesStart.y))&&(_.allowClick=!1),!E.isMoved&&!o){if(_.isHorizontal()&&(Math.floor(E.minX)===Math.floor(E.startX)&&E.touchesCurrent.x<E.touchesStart.x||Math.floor(E.maxX)===Math.floor(E.startX)&&E.touchesCurrent.x>E.touchesStart.x))return void(E.isTouched=!1);if(!_.isHorizontal()&&(Math.floor(E.minY)===Math.floor(E.startY)&&E.touchesCurrent.y<E.touchesStart.y||Math.floor(E.maxY)===Math.floor(E.startY)&&E.touchesCurrent.y>E.touchesStart.y))return void(E.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),E.isMoved=!0;var n=(i.scale-T)/(C.maxRatio-_.params.zoom.minRatio),{originX:e,originY:i}=C;E.currentX=E.touchesCurrent.x-E.touchesStart.x+E.startX+n*(E.width-2*e),E.currentY=E.touchesCurrent.y-E.touchesStart.y+E.startY+n*(E.height-2*i),E.currentX<E.minX&&(E.currentX=E.minX+1-(E.minX-E.currentX+1)**.8),E.currentX>E.maxX&&(E.currentX=E.maxX-1+(E.currentX-E.maxX+1)**.8),E.currentY<E.minY&&(E.currentY=E.minY+1-(E.minY-E.currentY+1)**.8),E.currentY>E.maxY&&(E.currentY=E.maxY-1+(E.currentY-E.maxY+1)**.8),l.prevPositionX||(l.prevPositionX=E.touchesCurrent.x),l.prevPositionY||(l.prevPositionY=E.touchesCurrent.y),l.prevTime||(l.prevTime=Date.now()),l.x=(E.touchesCurrent.x-l.prevPositionX)/(Date.now()-l.prevTime)/2,l.y=(E.touchesCurrent.y-l.prevPositionY)/(Date.now()-l.prevTime)/2,Math.abs(E.touchesCurrent.x-l.prevPositionX)<2&&(l.x=0),Math.abs(E.touchesCurrent.y-l.prevPositionY)<2&&(l.y=0),l.prevPositionX=E.touchesCurrent.x,l.prevPositionY=E.touchesCurrent.y,l.prevTime=Date.now(),C.imageWrapEl.style.transform=`translate3d(${E.currentX}px, ${E.currentY}px,0)`}}}}function g(){const e=_.zoom;C.slideEl&&_.activeIndex!==_.slides.indexOf(C.slideEl)&&(C.imageEl&&(C.imageEl.style.transform="translate3d(0,0,0) scale(1)"),C.imageWrapEl&&(C.imageWrapEl.style.transform="translate3d(0,0,0)"),C.slideEl.classList.remove(""+_.params.zoom.zoomedSlideClass),e.scale=1,T=1,C.slideEl=void 0,C.imageEl=void 0,C.imageWrapEl=void 0,C.originX=0,C.originY=0)}function v(y){const b=_.zoom,w=_.params.zoom;if(!C.slideEl){y&&y.target&&(C.slideEl=y.target.closest(`.${_.params.slideClass}, swiper-slide`)),C.slideEl||(_.params.virtual&&_.params.virtual.enabled&&_.virtual?C.slideEl=I(_.slidesEl,"."+_.params.slideActiveClass)[0]:C.slideEl=_.slides[_.activeIndex]);let e=C.slideEl.querySelector("."+w.containerClass);e=e&&e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0],C.imageEl=e,C.imageWrapEl=e?z(C.imageEl,"."+w.containerClass)[0]:void 0}if(C.imageEl&&C.imageWrapEl){let e,t,i,s,n,a,o,r,l,c,d,u,p,h,f,m,g,v;_.params.cssMode&&(_.wrapperEl.style.overflow="hidden",_.wrapperEl.style.touchAction="none"),C.slideEl.classList.add(""+w.zoomedSlideClass),t=void 0===E.touchesStart.x&&y?(e=y.pageX,y.pageY):(e=E.touchesStart.x,E.touchesStart.y);var x="number"==typeof y?y:null;1===T&&x&&(e=void 0,t=void 0),b.scale=x||C.imageWrapEl.getAttribute("data-swiper-zoom")||w.maxRatio,T=x||C.imageWrapEl.getAttribute("data-swiper-zoom")||w.maxRatio,!y||1===T&&x?(o=0,r=0):(g=C.slideEl.offsetWidth,v=C.slideEl.offsetHeight,i=O(C.slideEl).left+S.scrollX,s=O(C.slideEl).top+S.scrollY,n=i+g/2-e,a=s+v/2-t,l=C.imageEl.offsetWidth,c=C.imageEl.offsetHeight,d=l*b.scale,u=c*b.scale,f=-(p=Math.min(g/2-d/2,0)),m=-(h=Math.min(v/2-u/2,0)),o=n*b.scale,r=a*b.scale,o<p&&(o=p),o>f&&(o=f),r<h&&(r=h),r>m&&(r=m)),x&&1===b.scale&&(C.originX=0,C.originY=0),C.imageWrapEl.style.transitionDuration="300ms",C.imageWrapEl.style.transform=`translate3d(${o}px, ${r}px,0)`,C.imageEl.style.transitionDuration="300ms",C.imageEl.style.transform=`translate3d(0,0,0) scale(${b.scale})`}}function y(){const e=_.zoom,t=_.params.zoom;if(!C.slideEl){_.params.virtual&&_.params.virtual.enabled&&_.virtual?C.slideEl=I(_.slidesEl,"."+_.params.slideActiveClass)[0]:C.slideEl=_.slides[_.activeIndex];let e=C.slideEl.querySelector("."+t.containerClass);e=e&&e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0],C.imageEl=e,C.imageWrapEl=e?z(C.imageEl,"."+t.containerClass)[0]:void 0}C.imageEl&&C.imageWrapEl&&(_.params.cssMode&&(_.wrapperEl.style.overflow="",_.wrapperEl.style.touchAction=""),e.scale=1,T=1,C.imageWrapEl.style.transitionDuration="300ms",C.imageWrapEl.style.transform="translate3d(0,0,0)",C.imageEl.style.transitionDuration="300ms",C.imageEl.style.transform="translate3d(0,0,0) scale(1)",C.slideEl.classList.remove(""+t.zoomedSlideClass),C.slideEl=void 0,C.originX=0,C.originY=0)}function b(e){var t=_.zoom;t.scale&&1!==t.scale?y():v(e)}function w(){return{passiveListener:!!_.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!_.params.passiveListeners||{passive:!1,capture:!0}}}function x(){const e=_.zoom;if(!e.enabled){e.enabled=!0;const{passiveListener:t,activeListenerWithCapture:i}=w();_.wrapperEl.addEventListener("pointerdown",p,t),_.wrapperEl.addEventListener("pointermove",h,i),["pointerup","pointercancel","pointerout"].forEach(e=>{_.wrapperEl.addEventListener(e,f,t)}),_.wrapperEl.addEventListener("pointermove",m,i)}}function k(){const e=_.zoom;if(e.enabled){e.enabled=!1;const{passiveListener:t,activeListenerWithCapture:i}=w();_.wrapperEl.removeEventListener("pointerdown",p,t),_.wrapperEl.removeEventListener("pointermove",h,i),["pointerup","pointercancel","pointerout"].forEach(e=>{_.wrapperEl.removeEventListener(e,f,t)}),_.wrapperEl.removeEventListener("pointermove",m,i)}}Object.defineProperty(_.zoom,"scale",{get:()=>c,set(e){var t,i;c!==e&&(t=C.imageEl,i=C.slideEl,s("zoomChange",e,t,i)),c=e}}),i("init",()=>{_.params.zoom.enabled&&x()}),i("destroy",()=>{k()}),i("touchStart",(e,t)=>{var i;_.zoom.enabled&&(i=t,t=_.device,C.imageEl&&(E.isTouched||(t.android&&i.cancelable&&i.preventDefault(),E.isTouched=!0,i=0<r.length?r[0]:i,E.touchesStart.x=i.pageX,E.touchesStart.y=i.pageY)))}),i("touchEnd",(e,t)=>{_.zoom.enabled&&function(){var i=_.zoom;if(C.imageEl){if(!E.isTouched||!E.isMoved)return E.isTouched=!1,E.isMoved=!1;E.isTouched=!1,E.isMoved=!1;let e=300,t=300;var s=l.x*e,n=E.currentX+s,a=l.y*t,s=E.currentY+a;0!==l.x&&(e=Math.abs((n-E.currentX)/l.x)),0!==l.y&&(t=Math.abs((s-E.currentY)/l.y));a=Math.max(e,t);E.currentX=n,E.currentY=s;s=E.width*i.scale,i=E.height*i.scale;E.minX=Math.min(C.slideWidth/2-s/2,0),E.maxX=-E.minX,E.minY=Math.min(C.slideHeight/2-i/2,0),E.maxY=-E.minY,E.currentX=Math.max(Math.min(E.currentX,E.maxX),E.minX),E.currentY=Math.max(Math.min(E.currentY,E.maxY),E.minY),C.imageWrapEl.style.transitionDuration=a+"ms",C.imageWrapEl.style.transform=`translate3d(${E.currentX}px, ${E.currentY}px,0)`}}()}),i("doubleTap",(e,t)=>{!_.animating&&_.params.zoom.enabled&&_.zoom.enabled&&_.params.zoom.toggle&&b(t)}),i("transitionEnd",()=>{_.zoom.enabled&&_.params.zoom.enabled&&g()}),i("slideChange",()=>{_.zoom.enabled&&_.params.zoom.enabled&&_.params.cssMode&&g()}),Object.assign(_.zoom,{enable:x,disable:k,in:v,out:y,toggle:b})},function(e){let{swiper:r,extendParams:t,on:i}=e;function l(e,t){const i=function(){let i,s,n;return(e,t)=>{for(s=-1,i=e.length;1<i-s;)n=i+s>>1,e[n]<=t?s=n:i=n;return i}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function s(){r.controller.control&&r.controller.spline&&(r.controller.spline=void 0,delete r.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),r.controller={control:void 0},i("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof r.params.controller.control||r.params.controller.control instanceof HTMLElement)){const t=document.querySelector(r.params.controller.control);if(t&&t.swiper)r.controller.control=t.swiper;else if(t){const i=e=>{r.controller.control=e.detail[0],r.update(),t.removeEventListener("init",i)};t.addEventListener("init",i)}}else r.controller.control=r.params.controller.control}),i("update",()=>{s()}),i("resize",()=>{s()}),i("observerUpdate",()=>{s()}),i("setTranslate",(e,t,i)=>{r.controller.control&&!r.controller.control.destroyed&&r.controller.setTranslate(t,i)}),i("setTransition",(e,t,i)=>{r.controller.control&&!r.controller.control.destroyed&&r.controller.setTransition(t,i)}),Object.assign(r.controller,{setTranslate:function(e,t){var i=r.controller.control;let s,n;var a=r.constructor;function o(e){var t,i;e.destroyed||(t=r.rtlTranslate?-r.translate:r.translate,"slide"===r.params.controller.by&&(i=e,r.controller.spline=r.params.loop?new l(r.slidesGrid,i.slidesGrid):new l(r.snapGrid,i.snapGrid),n=-r.controller.spline.interpolate(-t)),n&&"container"!==r.params.controller.by||(s=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),!Number.isNaN(s)&&Number.isFinite(s)||(s=1),n=(t-r.minTranslate())*s+e.minTranslate()),r.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,r),e.updateActiveIndex(),e.updateSlidesClasses())}if(Array.isArray(i))for(let e=0;e<i.length;e+=1)i[e]!==t&&i[e]instanceof a&&o(i[e]);else i instanceof a&&t!==i&&o(i)},setTransition:function(t,e){const i=r.constructor,s=r.controller.control;let n;function a(e){e.destroyed||(e.setTransition(t,r),0!==t&&(e.transitionStart(),e.params.autoHeight&&T(()=>{e.updateAutoHeight()}),g(e.wrapperEl,()=>{s&&e.transitionEnd()})))}if(Array.isArray(s))for(n=0;n<s.length;n+=1)s[n]!==e&&s[n]instanceof i&&a(s[n]);else s instanceof i&&e!==s&&a(s)}})},function(e){let{swiper:c,extendParams:t,on:i}=e;t({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}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),c.a11y={clicked:!1};let d=null;function s(e){const t=d;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}const u=e=>e=Array.isArray(e)?e:[e].filter(e=>!!e);function n(e){(e=u(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function a(e){(e=u(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function o(e,t){(e=u(e)).forEach(e=>{e.setAttribute("role",t)})}function p(e,t){(e=u(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function h(e,t){(e=u(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function r(e){(e=u(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function l(e){(e=u(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function f(e){if(13===e.keyCode||32===e.keyCode){const t=c.params.a11y,i=e.target;c.pagination&&c.pagination.el&&(i===c.pagination.el||c.pagination.el.contains(e.target))&&!e.target.matches(R(c.params.pagination.bulletClass))||(c.navigation&&c.navigation.nextEl&&i===c.navigation.nextEl&&(c.isEnd&&!c.params.loop||c.slideNext(),c.isEnd?s(t.lastSlideMessage):s(t.nextSlideMessage)),c.navigation&&c.navigation.prevEl&&i===c.navigation.prevEl&&(c.isBeginning&&!c.params.loop||c.slidePrev(),c.isBeginning?s(t.firstSlideMessage):s(t.prevSlideMessage)),c.pagination&&i.matches(R(c.params.pagination.bulletClass))&&i.click())}}function m(){return c.pagination&&c.pagination.bullets&&c.pagination.bullets.length}function g(){return m()&&c.params.pagination.clickable}const v=(e,t,i)=>{var s;n(e),"BUTTON"!==e.tagName&&(o(e,"button"),e.addEventListener("keydown",f)),h(e,i),e=e,s=t,(e=u(e)).forEach(e=>{e.setAttribute("aria-controls",s)})},y=()=>{c.a11y.clicked=!0},b=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{c.destroyed||(c.a11y.clicked=!1)})})},w=e=>{var t,i,s;c.a11y.clicked||(t=e.target.closest(`.${c.params.slideClass}, swiper-slide`))&&c.slides.includes(t)&&(i=c.slides.indexOf(t)===c.activeIndex,s=c.params.watchSlidesProgress&&c.visibleSlides&&c.visibleSlides.includes(t),i||s||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(c.isHorizontal()?c.el.scrollLeft=0:c.el.scrollTop=0,c.slideTo(c.slides.indexOf(t),0)))},x=()=>{const i=c.params.a11y;i.itemRoleDescriptionMessage&&p(c.slides,i.itemRoleDescriptionMessage),i.slideRole&&o(c.slides,i.slideRole);const s=c.slides.length;i.slideLabelMessage&&c.slides.forEach((e,t)=>{t=c.params.loop?parseInt(e.getAttribute("data-swiper-slide-index"),10):t;h(e,i.slideLabelMessage.replace(/\{\{index\}\}/,t+1).replace(/\{\{slidesLength\}\}/,s))})};i("beforeInit",()=>{d=M("span",c.params.a11y.notificationClass),d.setAttribute("aria-live","assertive"),d.setAttribute("aria-atomic","true")}),i("afterInit",()=>{c.params.a11y.enabled&&(()=>{const t=c.params.a11y;(c.isElement?c.el.shadowEl:c.el).append(d);var e=c.el;t.containerRoleDescriptionMessage&&p(e,t.containerRoleDescriptionMessage),t.containerMessage&&h(e,t.containerMessage);const i=c.wrapperEl,s=t.id||i.getAttribute("id")||"swiper-wrapper-"+"x".repeat(n=void 0===(n=16)?16:n).replace(/x/g,()=>Math.round(16*Math.random()).toString(16));var n,a,e=c.params.autoplay&&c.params.autoplay.enabled?"off":"polite",o=s;u(i).forEach(e=>{e.setAttribute("id",o)}),n=i,a=e,(n=u(n)).forEach(e=>{e.setAttribute("aria-live",a)}),x();let{nextEl:r,prevEl:l}=c.navigation||{};r=u(r),l=u(l),r&&r.forEach(e=>v(e,s,t.nextSlideMessage)),l&&l.forEach(e=>v(e,s,t.prevSlideMessage)),g()&&(Array.isArray(c.pagination.el)?c.pagination.el:[c.pagination.el]).forEach(e=>{e.addEventListener("keydown",f)}),c.el.addEventListener("focus",w,!0),c.el.addEventListener("pointerdown",y,!0),c.el.addEventListener("pointerup",b,!0)})()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{c.params.a11y.enabled&&x()}),i("fromEdge toEdge afterInit lock unlock",()=>{var e,t;c.params.a11y.enabled&&(c.params.loop||c.params.rewind||!c.navigation||({nextEl:e,prevEl:t}=c.navigation,t&&(c.isBeginning?(r(t),a(t)):(l(t),n(t))),e&&(c.isEnd?(r(e),a(e)):(l(e),n(e)))))}),i("paginationUpdate",()=>{c.params.a11y.enabled&&function(){const t=c.params.a11y;m()&&c.pagination.bullets.forEach(e=>{c.params.pagination.clickable&&(n(e),c.params.pagination.renderBullet||(o(e,"button"),h(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,_(e)+1)))),e.matches(R(c.params.pagination.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}()}),i("destroy",()=>{c.params.a11y.enabled&&function(){d&&d.remove();let{nextEl:e,prevEl:t}=c.navigation||{};e=u(e),t=u(t),e&&e.forEach(e=>e.removeEventListener("keydown",f)),t&&t.forEach(e=>e.removeEventListener("keydown",f)),g()&&(Array.isArray(c.pagination.el)?c.pagination.el:[c.pagination.el]).forEach(e=>{e.removeEventListener("keydown",f)}),c.el.removeEventListener("focus",w,!0),c.el.removeEventListener("pointerdown",y,!0),c.el.removeEventListener("pointerup",b,!0)}()})},function(e){let{swiper:o,extendParams:t,on:i}=e;t({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,s={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),n=e=>{var t=A();let i;i=e?new URL(e):t.location;e=i.pathname.slice(1).split("/").filter(e=>""!==e),t=e.length;return{key:e[t-2],value:e[t-1]}},a=(i,s)=>{const n=A();if(r&&o.params.history.enabled){let e;e=o.params.url?new URL(o.params.url):n.location;const a=o.slides[s];let t=l(a.getAttribute("data-history"));if(0<o.params.history.root.length){let e=o.params.history.root;"/"===e[e.length-1]&&(e=e.slice(0,e.length-1)),t=e+"/"+(i?i+"/":"")+t}else e.pathname.includes(i)||(t=(i?i+"/":"")+t);o.params.history.keepQuery&&(t+=e.search);i=n.history.state;i&&i.value===t||(o.params.history.replaceState?n.history.replaceState({value:t},null,t):n.history.pushState({value:t},null,t))}},c=(i,s,n)=>{if(s)for(let e=0,t=o.slides.length;e<t;e+=1){const a=o.slides[e];if(l(a.getAttribute("data-history"))===s){const s=o.getSlideIndex(a);o.slideTo(s,i,n)}}else o.slideTo(0,i,n)},d=()=>{s=n(o.params.url),c(o.params.speed,s.value,!1)};i("init",()=>{o.params.history.enabled&&(()=>{const e=A();if(o.params.history){if(!e.history||!e.history.pushState)return o.params.history.enabled=!1,o.params.hashNavigation.enabled=!0;r=!0,s=n(o.params.url),(s.key||s.value)&&c(0,s.value,o.params.runCallbacksOnInit),o.params.history.replaceState||e.addEventListener("popstate",d)}})()}),i("destroy",()=>{o.params.history.enabled&&(()=>{const e=A();o.params.history.replaceState||e.removeEventListener("popstate",d)})()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{r&&a(o.params.history.key,o.activeIndex)}),i("slideChange",()=>{r&&o.params.cssMode&&a(o.params.history.key,o.activeIndex)})},function(e){let{swiper:i,extendParams:t,emit:s,on:n}=e,a=!1;const o=$(),r=A();t({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,t){if(i.virtual&&i.params.virtual.enabled){const e=i.slides.filter(e=>e.getAttribute("data-hash")===t)[0];return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return i.getSlideIndex(I(i.slidesEl,`.${i.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0])}}});const l=()=>{s("hashChange");const e=o.location.hash.replace("#",""),t=i.virtual&&i.params.virtual.enabled?i.slidesEl.querySelector(`[data-swiper-slide-index="${i.activeIndex}"]`):i.slides[i.activeIndex];if(e!==(t?t.getAttribute("data-hash"):"")){const t=i.params.hashNavigation.getSlideIndex(i,e);void 0===t||Number.isNaN(t)||i.slideTo(t)}},c=()=>{if(a&&i.params.hashNavigation.enabled){const e=i.virtual&&i.params.virtual.enabled?i.slidesEl.querySelector(`[data-swiper-slide-index="${i.activeIndex}"]`):i.slides[i.activeIndex],t=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";i.params.hashNavigation.replaceState&&r.history&&r.history.replaceState?r.history.replaceState(null,null,"#"+t||""):o.location.hash=t||"",s("hashSet")}};n("init",()=>{var e;i.params.hashNavigation.enabled&&(!i.params.hashNavigation.enabled||i.params.history&&i.params.history.enabled||(a=!0,(e=o.location.hash.replace("#",""))&&(e=i.params.hashNavigation.getSlideIndex(i,e),i.slideTo(e||0,0,i.params.runCallbacksOnInit,!0)),i.params.hashNavigation.watchState&&r.addEventListener("hashchange",l)))}),n("destroy",()=>{i.params.hashNavigation.enabled&&i.params.hashNavigation.watchState&&r.removeEventListener("hashchange",l)}),n("transitionEnd _freeModeNoMomentumRelease",()=>{a&&c()}),n("slideChange",()=>{a&&i.params.cssMode&&c()})},function(e){let a,o,{swiper:r,extendParams:t,on:i,emit:l,params:s}=e;r.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let c,n,d,u,p,h,f,m=s&&s.autoplay?s.autoplay.delay:3e3,g=s&&s.autoplay?s.autoplay.delay:3e3,v=(new Date).getTime;function y(e){r&&!r.destroyed&&r.wrapperEl&&e.target===r.wrapperEl&&(r.wrapperEl.removeEventListener("transitionend",y),T())}const b=()=>{var e;!r.destroyed&&r.autoplay.running&&(r.autoplay.paused?n=!0:n&&(g=c,n=!1),e=r.autoplay.paused?c:v+g-(new Date).getTime(),r.autoplay.timeLeft=e,l("autoplayTimeLeft",e,e/m),o=requestAnimationFrame(()=>{b()}))},w=t=>{if(!r.destroyed&&r.autoplay.running){cancelAnimationFrame(o),b();let e=void 0===t?r.params.autoplay.delay:t;m=r.params.autoplay.delay,g=r.params.autoplay.delay;var i=(()=>{let e;if(e=r.virtual&&r.params.virtual.enabled?r.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:r.slides[r.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(i)&&0<i&&void 0===t&&(e=i,m=i,g=i),c=e;const s=r.params.speed,n=()=>{r&&!r.destroyed&&(r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(s,!0,!0),l("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,s,!0,!0),l("autoplay")):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(s,!0,!0),l("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,s,!0,!0),l("autoplay")),r.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame(()=>{w()})))};return 0<e?(clearTimeout(a),a=setTimeout(()=>{n()},e)):requestAnimationFrame(()=>{n()}),e}},x=()=>{r.autoplay.running=!0,w(),l("autoplayStart")},_=()=>{r.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),l("autoplayStop")},S=(e,t)=>{if(!r.destroyed&&r.autoplay.running){clearTimeout(a),e||(f=!0);e=()=>{l("autoplayPause"),r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener("transitionend",y):T()};if(r.autoplay.paused=!0,t)return h&&(c=r.params.autoplay.delay),h=!1,void e();t=c||r.params.autoplay.delay;c=t-((new Date).getTime()-v),r.isEnd&&c<0&&!r.params.loop||(c<0&&(c=0),e())}},T=()=>{r.isEnd&&c<0&&!r.params.loop||r.destroyed||!r.autoplay.running||(v=(new Date).getTime(),f?(f=!1,w(c)):w(),r.autoplay.paused=!1,l("autoplayResume"))},C=()=>{var e;!r.destroyed&&r.autoplay.running&&("hidden"===(e=$()).visibilityState&&(f=!0,S(!0)),"visible"===e.visibilityState&&T())},E=e=>{"mouse"===e.pointerType&&(f=!0,S(!0))},k=e=>{"mouse"===e.pointerType&&r.autoplay.paused&&T()};i("init",()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener("pointerenter",E),r.el.addEventListener("pointerleave",k)),$().addEventListener("visibilitychange",C),v=(new Date).getTime(),x())}),i("destroy",()=>{r.el.removeEventListener("pointerenter",E),r.el.removeEventListener("pointerleave",k),$().removeEventListener("visibilitychange",C),r.autoplay.running&&_()}),i("beforeTransitionStart",(e,t,i)=>{!r.destroyed&&r.autoplay.running&&(i||!r.params.autoplay.disableOnInteraction?S(!0,!0):_())}),i("sliderFirstMove",()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?_():(d=!0,u=!1,f=!1,p=setTimeout(()=>{f=!0,u=!0,S(!0)},200)))}),i("touchEnd",()=>{if(!r.destroyed&&r.autoplay.running&&d){if(clearTimeout(p),clearTimeout(a),r.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&r.params.cssMode&&T(),u=!1,d=!1}}),i("slideChange",()=>{!r.destroyed&&r.autoplay.running&&(h=!0)}),Object.assign(r.autoplay,{start:x,stop:_,pause:S,resume:T})},function(e){let{swiper:l,extendParams:t,on:i}=e;t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,n=!1;function a(){const e=l.thumbs.swiper;if(e&&!e.destroyed){const i=e.clickedIndex,s=e.clickedSlide;var t;s&&s.classList.contains(l.params.thumbs.slideThumbActiveClass)||null!=i&&(t=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,l.params.loop?l.slideToLoop(t):l.slideTo(t))}}function o(){var e=l.params["thumbs"];if(s)return!1;s=!0;const t=l.constructor;return e.swiper instanceof t?(l.thumbs.swiper=e.swiper,Object.assign(l.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(l.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),l.thumbs.swiper.update()):c(e.swiper)&&(e=Object.assign({},e.swiper),Object.assign(e,{watchSlidesProgress:!0,slideToClickedSlide:!1}),l.thumbs.swiper=new t(e),n=!0),l.thumbs.swiper.el.classList.add(l.params.thumbs.thumbsContainerClass),l.thumbs.swiper.on("tap",a),!0}function r(s){const n=l.thumbs.swiper;if(n&&!n.destroyed){var a="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let t=1;const i=l.params.thumbs.slideThumbActiveClass;if(1<l.params.slidesPerView&&!l.params.centeredSlides&&(t=l.params.slidesPerView),l.params.thumbs.multipleActiveThumbs||(t=1),t=Math.floor(t),n.slides.forEach(e=>e.classList.remove(i)),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<t;e+=1)I(n.slidesEl,`[data-swiper-slide-index="${l.realIndex+e}"]`).forEach(e=>{e.classList.add(i)});else for(let e=0;e<t;e+=1)n.slides[l.realIndex+e]&&n.slides[l.realIndex+e].classList.add(i);var o=l.params.thumbs.autoScrollOffset,r=o&&!n.params.loop;if(l.realIndex!==n.realIndex||r){const e=n.activeIndex;let t,i;if(n.params.loop){const s=n.slides.filter(e=>e.getAttribute("data-swiper-slide-index")===""+l.realIndex)[0];t=n.slides.indexOf(s),i=l.activeIndex>l.previousIndex?"next":"prev"}else t=l.realIndex,i=t>l.previousIndex?"next":"prev";r&&(t+="next"===i?o:-1*o),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(t)<0&&(n.params.centeredSlides?t=t>e?t-Math.floor(a/2)+1:t+Math.floor(a/2)-1:t>e&&n.params.slidesPerGroup,n.slideTo(t,s?0:void 0))}}}l.thumbs={swiper:null},i("beforeInit",()=>{const i=l.params["thumbs"];if(i&&i.swiper)if("string"==typeof i.swiper||i.swiper instanceof HTMLElement){const s=$(),e=()=>{l.destroyed||(()=>{const t="string"==typeof i.swiper?s.querySelector(i.swiper):i.swiper;if(t&&t.swiper)i.swiper=t.swiper,o(),r(!0);else if(t){const s=e=>{i.swiper=e.detail[0],t.removeEventListener("init",s),o(),r(!0),i.swiper.update(),l.update()};t.addEventListener("init",s)}return t})()||requestAnimationFrame(e)};requestAnimationFrame(e)}else o(),r(!0)}),i("slideChange update resize observerUpdate",()=>{r()}),i("setTransition",(e,t)=>{const i=l.thumbs.swiper;i&&!i.destroyed&&i.setTransition(t)}),i("beforeDestroy",()=>{const e=l.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()}),Object.assign(l.thumbs,{init:o,update:r})},function(e){let{swiper:h,extendParams:t,emit:f,once:m}=e;t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(h,{freeMode:{onTouchStart:function(){var e;h.params.cssMode||(e=h.getTranslate(),h.setTranslate(e),h.setTransition(0),h.touchEventsData.velocities.length=0,h.freeMode.onTouchEnd({currentPos:h.rtl?h.translate:-h.translate}))},onTouchMove:function(){if(!h.params.cssMode){const{touchEventsData:e,touches:t}=h;0===e.velocities.length&&e.velocities.push({position:t[h.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:t[h.isHorizontal()?"currentX":"currentY"],time:v()})}},onTouchEnd:function(a){let o=a["currentPos"];if(!h.params.cssMode){const{params:r,wrapperEl:l,rtlTranslate:c,snapGrid:d,touchEventsData:u}=h,e=v()-u.touchStartTime;if(o<-h.minTranslate())h.slideTo(h.activeIndex);else if(o>-h.maxTranslate())h.slides.length<d.length?h.slideTo(d.length-1):h.slideTo(h.slides.length-1);else{if(r.freeMode.momentum){if(1<u.velocities.length){const p=u.velocities.pop(),o=u.velocities.pop(),f=p.position-o.position,m=p.time-o.time;h.velocity=f/m,h.velocity/=2,Math.abs(h.velocity)<r.freeMode.minimumVelocity&&(h.velocity=0),(150<m||300<v()-p.time)&&(h.velocity=0)}else h.velocity=0;h.velocity*=r.freeMode.momentumVelocityRatio,u.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const o=h.velocity*e;let i=h.translate+o;c&&(i=-i);let t,s=!1;a=20*Math.abs(h.velocity)*r.freeMode.momentumBounceRatio;let n;if(i<h.maxTranslate())r.freeMode.momentumBounce?(i+h.maxTranslate()<-a&&(i=h.maxTranslate()-a),t=h.maxTranslate(),s=!0,u.allowMomentumBounce=!0):i=h.maxTranslate(),r.loop&&r.centeredSlides&&(n=!0);else if(i>h.minTranslate())r.freeMode.momentumBounce?(i-h.minTranslate()>a&&(i=h.minTranslate()+a),t=h.minTranslate(),s=!0,u.allowMomentumBounce=!0):i=h.minTranslate(),r.loop&&r.centeredSlides&&(n=!0);else if(r.freeMode.sticky){let t;for(let e=0;e<d.length;e+=1)if(d[e]>-i){t=e;break}i=Math.abs(d[t]-i)<Math.abs(d[t-1]-i)||"next"===h.swipeDirection?d[t]:d[t-1],i=-i}if(n&&m("transitionEnd",()=>{h.loopFix()}),0!==h.velocity){if(e=c?Math.abs((-i-h.translate)/h.velocity):Math.abs((i-h.translate)/h.velocity),r.freeMode.sticky){const o=Math.abs((c?-i:i)-h.translate),f=h.slidesSizesGrid[h.activeIndex];e=o<f?r.speed:o<2*f?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void h.slideToClosest();r.freeMode.momentumBounce&&s?(h.updateProgress(t),h.setTransition(e),h.setTranslate(i),h.transitionStart(!0,h.swipeDirection),h.animating=!0,g(l,()=>{h&&!h.destroyed&&u.allowMomentumBounce&&(f("momentumBounce"),h.setTransition(r.speed),setTimeout(()=>{h.setTranslate(t),g(l,()=>{h&&!h.destroyed&&h.transitionEnd()})},0))})):h.velocity?(f("_freeModeNoMomentumRelease"),h.updateProgress(i),h.setTransition(e),h.setTranslate(i),h.transitionStart(!0,h.swipeDirection),h.animating||(h.animating=!0,g(l,()=>{h&&!h.destroyed&&h.transitionEnd()}))):h.updateProgress(i),h.updateActiveIndex(),h.updateSlidesClasses()}else{if(r.freeMode.sticky)return void h.slideToClosest();r.freeMode&&f("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||e>=r.longSwipesMs)&&(h.updateProgress(),h.updateActiveIndex(),h.updateSlidesClasses())}}}}})},function(e){let u,p,h,{swiper:f,extendParams:t}=e;t({grid:{rows:1,fill:"column"}});const m=()=>{let e=f.params.spaceBetween;return"string"==typeof e&&0<=e.indexOf("%")?e=parseFloat(e.replace("%",""))/100*f.size:"string"==typeof e&&(e=parseFloat(e)),e};f.grid={initSlides:e=>{var t=f.params["slidesPerView"],{rows:i,fill:s}=f.params.grid;h=Math.floor(e/i),u=Math.floor(e/i)===e/i?e:Math.ceil(e/i)*i,"auto"!==t&&"row"===s&&(u=Math.max(u,t*i)),p=u/i},updateSlide:(e,t,i,s)=>{var n=f.params["slidesPerGroup"],a=m(),{rows:o,fill:r}=f.params.grid;let l,c,d;if("row"===r&&1<n){const p=Math.floor(e/(n*o)),h=e-o*n*p,f=0===p?n:Math.min(Math.ceil((i-p*o*n)/o),n);d=Math.floor(h/f),c=h-d*f+p*n,l=c+d*u/o,t.style.order=l}else"column"===r?(c=Math.floor(e/o),d=e-c*o,(c>h||c===h&&d===o-1)&&(d+=1,d>=o&&(d=0,c+=1))):(d=Math.floor(e/p),c=e-d*p);t.row=d,t.column=c,t.style[s("margin-top")]=0!==d?a&&a+"px":""},updateWrapperSize:(i,s,e)=>{var{centeredSlides:t,roundLengths:n}=f.params,a=m(),o=f.params.grid["rows"];if(f.virtualSize=(i+a)*u,f.virtualSize=Math.ceil(f.virtualSize/o)-a,f.wrapperEl.style[e("width")]=f.virtualSize+a+"px",t){const i=[];for(let t=0;t<s.length;t+=1){let e=s[t];n&&(e=Math.floor(e)),s[t]<f.virtualSize+s[0]&&i.push(e)}s.splice(0,s.length),s.push(...i)}}}},function(e){e=e.swiper;Object.assign(e,{appendSlide:function(t){const{params:e,slidesEl:i}=this;e.loop&&this.loopDestroy();var s=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,i.append(t.children[0]),t.innerHTML=""}else i.append(e)};if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&s(t[e]);else s(t);this.recalcSlides(),e.loop&&this.loopCreate(),e.observer&&!this.isElement||this.update()}.bind(e),prependSlide:function(t){const{params:e,activeIndex:i,slidesEl:s}=this;e.loop&&this.loopDestroy();let n=i+1;var a=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,s.prepend(t.children[0]),t.innerHTML=""}else s.prepend(e)};if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a(t[e]);n=i+t.length}else a(t);this.recalcSlides(),e.loop&&this.loopCreate(),e.observer&&!this.isElement||this.update(),this.slideTo(n,0,!1)}.bind(e),addSlide:function(t,i){const s=this,{params:n,activeIndex:e,slidesEl:a}=s;let o=e;n.loop&&(o-=s.loopedSlides,s.loopDestroy(),s.recalcSlides());var r=s.slides.length;if(t<=0)s.prependSlide(i);else if(r<=t)s.appendSlide(i);else{let e=o>t?o+1:o;const l=[];for(let e=r-1;e>=t;--e){const t=s.slides[e];t.remove(),l.unshift(t)}if("object"==typeof i&&"length"in i){for(let e=0;e<i.length;e+=1)i[e]&&a.append(i[e]);e=o>t?o+i.length:o}else a.append(i);for(let e=0;e<l.length;e+=1)a.append(l[e]);s.recalcSlides(),n.loop&&s.loopCreate(),n.observer&&!s.isElement||s.update(),n.loop?s.slideTo(e+s.loopedSlides,0,!1):s.slideTo(e,0,!1)}}.bind(e),removeSlide:function(t){var i=this,{params:e,activeIndex:s}=i;let n=s;e.loop&&(n-=i.loopedSlides,i.loopDestroy());let a,o=n;if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)a=t[e],i.slides[a]&&i.slides[a].remove(),a<o&&--o;o=Math.max(o,0)}else a=t,i.slides[a]&&i.slides[a].remove(),a<o&&--o,o=Math.max(o,0);i.recalcSlides(),e.loop&&i.loopCreate(),e.observer&&!i.isElement||i.update(),e.loop?i.slideTo(o+i.loopedSlides,0,!1):i.slideTo(o,0,!1)}.bind(e),removeAllSlides:function(){const t=[];for(let e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}.bind(e)})},function(e){let{swiper:o,extendParams:t,on:i}=e;t({fadeEffect:{crossFade:!1}}),F({effect:"fade",swiper:o,on:i,setTranslate:()=>{const s=o["slides"];o.params.fadeEffect;for(let i=0;i<s.length;i+=1){const s=o.slides[i];let e=-s.swiperSlideOffset;o.params.virtualTranslate||(e-=o.translate);let t=0;o.isHorizontal()||(t=e,e=0);const n=o.params.fadeEffect.crossFade?Math.max(1-Math.abs(s.progress),0):1+Math.min(Math.max(s.progress,-1),0),a=q(0,s);a.style.opacity=n,a.style.transform=`translate3d(${e}px, ${t}px, 0px)`}},setTransition:t=>{const e=o.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms"}),W({swiper:o,duration:t,transformElements:e,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!o.params.cssMode})})},function(e){let{swiper:g,extendParams:t,on:i}=e;t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const v=(e,t,i)=>{let s=i?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=i?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=M("div","swiper-slide-shadow-"+(i?"left":"top")),e.append(s)),n||(n=M("div","swiper-slide-shadow-"+(i?"right":"bottom")),e.append(n)),s&&(s.style.opacity=Math.max(-t,0)),n&&(n.style.opacity=Math.max(t,0))};F({effect:"cube",swiper:g,on:i,setTranslate:()=>{const{el:e,wrapperEl:t,slides:r,width:i,height:s,rtlTranslate:l,size:c,browser:d}=g,u=g.params.cubeEffect,p=g.isHorizontal(),h=g.virtual&&g.params.virtual.enabled;let n,f=0;u.shadow&&(p?(n=g.slidesEl.querySelector(".swiper-cube-shadow"),n||(n=M("div","swiper-cube-shadow"),g.slidesEl.append(n)),n.style.height=i+"px"):(n=e.querySelector(".swiper-cube-shadow"),n||(n=M("div","swiper-cube-shadow"),e.append(n))));for(let o=0;o<r.length;o+=1){const g=r[o];let e=o;h&&(e=parseInt(g.getAttribute("data-swiper-slide-index"),10));let t=90*e,i=Math.floor(t/360);l&&(t=-t,i=Math.floor(-t/360));const d=Math.max(Math.min(g.progress,1),-1);let s=0,n=0,a=0;e%4==0?(s=4*-i*c,a=0):(e-1)%4==0?(s=0,a=4*-i*c):(e-2)%4==0?(s=c+4*i*c,a=c):(e-3)%4==0&&(s=-c,a=3*c+4*c*i),l&&(s=-s),p||(n=s,s=0);var m=`rotateX(${p?0:-t}deg) rotateY(${p?t:0}deg) translate3d(${s}px, ${n}px, ${a}px)`;d<=1&&-1<d&&(f=90*e+90*d,l&&(f=90*-e-90*d)),g.style.transform=m,u.slideShadows&&v(g,d,p)}if(t.style.transformOrigin=`50% 50% -${c/2}px`,t.style["-webkit-transform-origin"]=`50% 50% -${c/2}px`,u.shadow)if(p)n.style.transform=`translate3d(0px, ${i/2+u.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${u.shadowScale})`;else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),g=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),t=u.shadowScale,r=u.shadowScale/g,v=u.shadowOffset;n.style.transform=`scale3d(${t}, 1, ${r}) translate3d(0px, ${s/2+v}px, ${-s/2/r}px) rotateX(-90deg)`}var a=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-c/2:0;t.style.transform=`translate3d(0px,0,${a}px) rotateX(${g.isHorizontal()?0:f}deg) rotateY(${g.isHorizontal()?-f:0}deg)`,t.style.setProperty("--swiper-cube-translate-z",a+"px")},setTransition:t=>{const{el:e,slides:i}=g;if(i.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=t+"ms"})}),g.params.cubeEffect.shadow&&!g.isHorizontal()){const g=e.querySelector(".swiper-cube-shadow");g&&(g.style.transitionDuration=t+"ms")}},recreateShadows:()=>{const i=g.isHorizontal();g.slides.forEach(e=>{var t=Math.max(Math.min(e.progress,1),-1);v(e,t,i)})},getEffectParams:()=>g.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:u,extendParams:t,on:i}=e;t({flipEffect:{slideShadows:!0,limitRotation:!0}});const p=(e,t,i)=>{let s=u.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=u.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s=s||V(0,e,u.isHorizontal()?"left":"top"),n=n||V(0,e,u.isHorizontal()?"right":"bottom"),s&&(s.style.opacity=Math.max(-t,0)),n&&(n.style.opacity=Math.max(t,0))};F({effect:"flip",swiper:u,on:i,setTranslate:()=>{var{slides:o,rtlTranslate:r}=u,l=u.params.flipEffect;for(let a=0;a<o.length;a+=1){const d=o[a];let e=d.progress;u.params.flipEffect.limitRotation&&(e=Math.max(Math.min(d.progress,1),-1));var c=d.swiperSlideOffset;let t=-180*e,i=0,s=u.params.cssMode?-c-u.translate:-c,n=0;u.isHorizontal()?r&&(t=-t):(n=s,s=0,i=-t,t=0),d.style.zIndex=-Math.abs(Math.round(e))+o.length,l.slideShadows&&p(d,e);c=`translate3d(${s}px, ${n}px, 0px) rotateX(${i}deg) rotateY(${t}deg)`;q(0,d).style.transform=c}},setTransition:t=>{const e=u.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=t+"ms"})}),W({swiper:u,duration:t,transformElements:e})},recreateShadows:()=>{u.params.flipEffect,u.slides.forEach(e=>{let t=e.progress;u.params.flipEffect.limitRotation&&(t=Math.max(Math.min(e.progress,1),-1)),p(e,t)})},getEffectParams:()=>u.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!u.params.cssMode})})},function(e){let{swiper:b,extendParams:t,on:i}=e;t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),F({effect:"coverflow",swiper:b,on:i,setTranslate:()=>{const{width:e,height:l,slides:c,slidesSizesGrid:d}=b,u=b.params.coverflowEffect,p=b.isHorizontal(),h=b.translate,f=p?e/2-h:l/2-h,m=p?u.rotate:-u.rotate,g=u.depth;for(let r=0,e=c.length;r<e;r+=1){const b=c[r],l=d[r],h=(f-b.swiperSlideOffset-l/2)/l,y="function"==typeof u.modifier?u.modifier(h):h*u.modifier;let e=p?m*y:0,t=p?0:m*y,i=-g*Math.abs(y),s=u.stretch;"string"==typeof s&&-1!==s.indexOf("%")&&(s=parseFloat(u.stretch)/100*l);let n=p?0:s*y,a=p?s*y:0,o=1-(1-u.scale)*Math.abs(y);Math.abs(a)<.001&&(a=0),Math.abs(n)<.001&&(n=0),Math.abs(i)<.001&&(i=0),Math.abs(e)<.001&&(e=0),Math.abs(t)<.001&&(t=0),Math.abs(o)<.001&&(o=0);var v=`translate3d(${a}px,${n}px,${i}px)  rotateX(${t}deg) rotateY(${e}deg) scale(${o})`;if(q(0,b).style.transform=v,b.style.zIndex=1-Math.abs(Math.round(y)),u.slideShadows){let e=p?b.querySelector(".swiper-slide-shadow-left"):b.querySelector(".swiper-slide-shadow-top"),t=p?b.querySelector(".swiper-slide-shadow-right"):b.querySelector(".swiper-slide-shadow-bottom");e=e||V(0,b,p?"left":"top"),t=t||V(0,b,p?"right":"bottom"),e&&(e.style.opacity=0<y?y:0),t&&(t.style.opacity=0<-y?-y:0)}}},setTransition:t=>{b.slides.map(e=>r(e)).forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=t+"ms"})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:b,extendParams:t,on:i}=e;t({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});F({effect:"creative",swiper:b,on:i,setTranslate:()=>{const{slides:n,wrapperEl:e,slidesSizesGrid:a}=b,o=b.params.creativeEffect,r=o["progressMultiplier"],l=b.params.centeredSlides;if(l){const n=a[0]/2-b.params.slidesOffsetBefore||0;e.style.transform=`translateX(calc(50% - ${n}px))`}for(let s=0;s<n.length;s+=1){const a=n[s],h=a.progress,f=Math.min(Math.max(a.progress,-o.limitProgress),o.limitProgress);let e=f;l||(e=Math.min(Math.max(a.originalProgress,-o.limitProgress),o.limitProgress));const m=a.swiperSlideOffset,g=[b.params.cssMode?-m-b.translate:-m,0,0],v=[0,0,0];let t=!1;b.isHorizontal()||(g[1]=g[0],g[0]=0);let i={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};f<0?(i=o.next,t=!0):0<f&&(i=o.prev,t=!0),g.forEach((e,t)=>{g[t]=`calc(${e}px + (${t=i.translate[t],"string"==typeof t?t:t+"px"} * ${Math.abs(f*r)}))`}),v.forEach((e,t)=>{v[t]=i.rotate[t]*Math.abs(f*r)}),a.style.zIndex=-Math.abs(Math.round(h))+n.length;var c=g.join(", "),d=`rotateX(${v[0]}deg) rotateY(${v[1]}deg) rotateZ(${v[2]}deg)`,u=e<0?`scale(${1+(1-i.scale)*e*r})`:`scale(${1-(1-i.scale)*e*r})`,p=e<0?1+(1-i.opacity)*e*r:1-(1-i.opacity)*e*r,u=`translate3d(${c}) ${d} `+u;if(t&&i.shadow||!t){let e=a.querySelector(".swiper-slide-shadow");if(!e&&i.shadow&&(e=V(0,a)),e){const b=o.shadowPerProgress?f*(1/o.limitProgress):f;e.style.opacity=Math.min(Math.max(Math.abs(b),0),1)}}const y=q(0,a);y.style.transform=u,y.style.opacity=p,i.origin&&(y.style.transformOrigin=i.origin)}},setTransition:t=>{const e=b.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=t+"ms"})}),W({swiper:b,duration:t,transformElements:e,allSlides:!0})},perspective:()=>b.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!b.params.cssMode})})},function(e){let{swiper:w,extendParams:t,on:i}=e;t({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),F({effect:"cards",swiper:w,on:i,setTranslate:()=>{const{slides:r,activeIndex:l,rtlTranslate:c}=w,d=w.params.cardsEffect,{startTranslate:u,isTouched:p}=w.touchEventsData,h=c?-w.translate:w.translate;for(let o=0;o<r.length;o+=1){const v=r[o],y=v.progress,b=Math.min(Math.max(y,-4),4);let e=v.swiperSlideOffset;w.params.centeredSlides&&!w.params.cssMode&&(w.wrapperEl.style.transform=`translateX(${w.minTranslate()}px)`),w.params.centeredSlides&&w.params.cssMode&&(e-=r[0].swiperSlideOffset);let t=w.params.cssMode?-e-w.translate:-e,i=0;var f=-100*Math.abs(b);let s=1,n=-d.perSlideRotate*b,a=d.perSlideOffset-.75*Math.abs(b);var m=w.virtual&&w.params.virtual.enabled?w.virtual.from+o:o,g=(m===l||m===l-1)&&0<b&&b<1&&(p||w.params.cssMode)&&h<u,m=(m===l||m===l+1)&&b<0&&-1<b&&(p||w.params.cssMode)&&u<h;if(g||m){const r=(1-Math.abs((Math.abs(b)-.5)/.5))**.5;n+=-28*b*r,s+=-.5*r,a+=96*r,i=-25*r*Math.abs(b)+"%"}if(t=b<0?`calc(${t}px ${c?"-":"+"} (${a*Math.abs(b)}%))`:0<b?`calc(${t}px ${c?"-":"+"} (-${a*Math.abs(b)}%))`:t+"px",!w.isHorizontal()){const r=i;i=t,t=r}m=b<0?""+(1+(1-s)*b):""+(1-(1-s)*b),m=`
        translate3d(${t}, ${i}, ${f}px)
        rotateZ(${d.rotate?c?-n:n:0}deg)
        scale(${m})
      `;if(d.slideShadows){let e=v.querySelector(".swiper-slide-shadow");e=e||V(0,v),e&&(e.style.opacity=Math.min(Math.max((Math.abs(b)-.5)/.5,0),1))}v.style.zIndex=-Math.abs(Math.round(y))+r.length,q(0,v).style.transform=m}},setTransition:t=>{const e=w.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=t+"ms"})}),W({swiper:w,duration:t,transformElements:e})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!w.params.cssMode})})}]),H}),function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),i(t),t}:i(jQuery)}(function(t){var e,i,p,a,o,h,f,m,g,v,y,s,n,b,r=((l=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:l)&&l.requirejs||(l?i=l:l={},m={},g={},v={},y={},s=Object.prototype.hasOwnProperty,n=[].slice,b=/\.js$/,h=function(e,t){var i,s,n=d(e),a=n[0],t=t[1];return e=n[1],a&&(i=_(a=c(a,t))),a?e=i&&i.normalize?i.normalize(e,(s=t,function(e){return c(e,s)})):c(e,t):(a=(n=d(e=c(e,t)))[0],e=n[1],a&&(i=_(a))),{f:a?a+"!"+e:e,n:e,pr:a,p:i}},f={require:function(e){return x(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:(t=e,function(){return v&&v.config&&v.config[t]||{}})};var t}},a=function(e,t,i,s){var n,a,o,r,l,c=[],d=typeof i,u=S(s=s||e);if("undefined"==d||"function"==d){for(t=!t.length&&i.length?["require","exports","module"]:t,r=0;r<t.length;r+=1)if("require"===(a=(o=h(t[r],u)).f))c[r]=f.require(e);else if("exports"===a)c[r]=f.exports(e),l=!0;else if("module"===a)n=c[r]=f.module(e);else if(w(m,a)||w(g,a)||w(y,a))c[r]=_(a);else{if(!o.p)throw new Error(e+" missing "+a);o.p.load(o.n,x(s,!0),function(t){return function(e){m[t]=e}}(a),{}),c[r]=m[a]}d=i?i.apply(m[e],c):void 0,e&&(n&&n.exports!==p&&n.exports!==m[e]?m[e]=n.exports:d===p&&l||(m[e]=d))}else e&&(m[e]=i)},e=i=o=function(e,t,i,s,n){if("string"==typeof e)return f[e]?f[e](t):_(h(e,S(t)).f);if(!e.splice){if((v=e).deps&&o(v.deps,v.callback),!t)return;t.splice?(e=t,t=i,i=null):e=p}return t=t||function(){},"function"==typeof i&&(i=s,s=n),s?a(p,e,t,i):setTimeout(function(){a(p,e,t,i)},4),o},o.config=function(e){return o(e)},e._defined=m,(r=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),w(m,e)||w(g,e)||(g[e]=[e,t,i])}).amd={jQuery:!0},l.requirejs=e,l.require=i,l.define=r),l.define("almond",function(){}),l.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),l.define("select2/utils",["jquery"],function(a){var s={};function c(e){var t,i=e.prototype,s=[];for(t in i)"function"==typeof i[t]&&"constructor"!==t&&s.push(t);return s}function e(){this.listeners={}}s.Extend=function(e,t){var i,s={}.hasOwnProperty;function n(){this.constructor=e}for(i in t)s.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s.Decorate=function(s,n){var e=c(n),t=c(s);function a(){var e=Array.prototype.unshift,t=n.prototype.constructor.length,i=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),i=n.prototype.constructor),i.apply(this,arguments)}n.displayName=s.displayName,a.prototype=new function(){this.constructor=a};for(var i=0;i<t.length;i++){var o=t[i];a.prototype[o]=s.prototype[o]}for(var r=0;r<e.length;r++){var l=e[r];a.prototype[l]=function(e){var t=function(){};e in a.prototype&&(t=a.prototype[e]);var i=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),i.apply(this,arguments)}}(l)}return a},e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,i=t.call(arguments,1);this.listeners=this.listeners||{},0===(i=null==i?[]:i).length&&i.push({}),(i[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var i=0,s=e.length;i<s;i++)e[i].apply(this,t)},s.Observable=e,s.generateChars=function(e){for(var t="",i=0;i<e;i++)t+=Math.floor(36*Math.random()).toString(36);return t},s.bind=function(e,t){return function(){e.apply(t,arguments)}},s._convertData=function(e){for(var t in e){var i=t.split("-"),s=e;if(1!==i.length){for(var n=0;n<i.length;n++){var a=i[n];(a=a.substring(0,1).toLowerCase()+a.substring(1))in s||(s[a]={}),n==i.length-1&&(s[a]=e[t]),s=s[a]}delete e[t]}}return e},s.hasScroll=function(e,t){var i=a(t),s=t.style.overflowX,n=t.style.overflowY;return(s!==n||"hidden"!==n&&"visible"!==n)&&("scroll"===s||"scroll"===n||i.innerHeight()<t.scrollHeight||i.innerWidth()<t.scrollWidth)},s.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},s.appendMany=function(e,t){var i;"1.7"===a.fn.jquery.substr(0,3)&&(i=a(),a.map(t,function(e){i=i.add(e)}),t=i),e.append(t)},s.__cache={};var i=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++i),t=i.toString())),t},s.StoreData=function(e,t,i){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=i},s.GetData=function(e,t){var i=s.GetUniqueElementId(e);return t?s.__cache[i]&&null!=s.__cache[i][t]?s.__cache[i][t]:a(e).data(t):s.__cache[i]},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id")},s}),l.define("select2/results",["jquery","./utils"],function(u,p){function s(e,t,i){this.$element=e,this.data=i,this.options=t,s.__super__.constructor.call(this)}return p.Extend(s,p.Observable),s.prototype.render=function(){var e=u('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=u('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),s=this.options.get("translations").get(e.message);i.append(t(s(e.args))),i[0].className+=" select2-results__message",this.$results.append(i)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var i=0;i<e.results.length;i++){var s=e.results[i],s=this.option(s);t.push(s)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},s.prototype.position=function(e,t){t.find(".select2-results").append(e)},s.prototype.sort=function(e){return this.options.get("sorter")(e)},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=u.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=u(this),t=p.GetData(this,"data"),i=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<u.inArray(i,s)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},s.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var i,s={role:"option","aria-selected":"false"},n=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(i in(null!=e.element&&n.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete s["aria-selected"],s["aria-disabled"]="true"),null==e.id&&delete s["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(s.role="group",s["aria-label"]=e.text,delete s["aria-selected"]),s){var a=s[i];t.setAttribute(i,a)}if(e.children){var o=u(t),r=document.createElement("strong");r.className="select2-results__group",u(r),this.template(e,r);for(var l=[],c=0;c<e.children.length;c++){var d=e.children[c],d=this.option(d);l.push(d)}n=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});n.append(l),o.append(r),o.append(n)}else this.template(e,t);return p.StoreData(t,"data",e),t},s.prototype.bind=function(t,e){var n=this,i=t.id+"-results";this.$results.attr("id",i),t.on("results:all",function(e){n.clear(),n.append(e.data),t.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),t.on("results:append",function(e){n.append(e.data),t.isOpen()&&n.setClasses()}),t.on("query",function(e){n.hideMessages(),n.showLoading(e)}),t.on("select",function(){t.isOpen()&&(n.setClasses(),n.options.get("scrollAfterSelect")&&n.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(n.setClasses(),n.options.get("scrollAfterSelect")&&n.highlightFirstItem())}),t.on("open",function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()}),t.on("close",function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=n.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=n.getHighlightedResults();0!==t.length&&(e=p.GetData(t[0],"data"),"true"==t.attr("aria-selected")?n.trigger("close",{}):n.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=n.getHighlightedResults(),i=n.$results.find("[aria-selected]"),s=i.index(t);s<=0||(e=s-1,0===t.length&&(e=0),(s=i.eq(e)).trigger("mouseenter"),t=n.$results.offset().top,i=s.offset().top,s=n.$results.scrollTop()+(i-t),0===e?n.$results.scrollTop(0):i-t<0&&n.$results.scrollTop(s))}),t.on("results:next",function(){var e,t=n.getHighlightedResults(),i=n.$results.find("[aria-selected]"),s=i.index(t)+1;s>=i.length||((e=i.eq(s)).trigger("mouseenter"),t=n.$results.offset().top+n.$results.outerHeight(!1),i=e.offset().top+e.outerHeight(!1),e=n.$results.scrollTop()+i-t,0===s?n.$results.scrollTop(0):t<i&&n.$results.scrollTop(e))}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){n.displayMessage(e)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&i<=n.$results.height();t?(n.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=u(this),i=p.GetData(this,"data");"true"!==t.attr("aria-selected")?n.trigger("select",{originalEvent:e,data:i}):n.options.get("multiple")?n.trigger("unselect",{originalEvent:e,data:i}):n.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=p.GetData(this,"data");n.getHighlightedResults().removeClass("select2-results__option--highlighted"),n.trigger("results:focus",{data:t,element:u(this)})})},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var e,t,i,s,n=this.getHighlightedResults();0!==n.length&&(e=this.$results.find("[aria-selected]").index(n),s=this.$results.offset().top,t=n.offset().top,i=this.$results.scrollTop()+(t-s),s=t-s,i-=2*n.outerHeight(!1),e<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(i))},s.prototype.template=function(e,t){var i=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),e=i(e,t);null==e?t.style.display="none":"string"==typeof e?t.innerHTML=s(e):u(t).append(e)},s}),l.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),l.define("select2/selection/base",["jquery","../utils","../keys"],function(i,s,n){function a(e,t){this.$element=e,this.options=t,a.__super__.constructor.call(this)}return s.Extend(a,s.Observable),a.prototype.render=function(){var e=i('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=s.GetData(this.$element[0],"old-tabindex")?this._tabindex=s.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},a.prototype.bind=function(e,t){var i=this,s=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",s),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")}),e.on("disable",function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")})},a.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||i.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},a.prototype._attachCloseHandler=function(e){i(document.body).on("mousedown.select2."+e.id,function(e){var t=i(e.target).closest(".select2");i(".select2.select2-container--open").each(function(){this!=t[0]&&s.GetData(this,"element").select2("close")})})},a.prototype._detachCloseHandler=function(e){i(document.body).off("mousedown.select2."+e.id)},a.prototype.position=function(e,t){t.find(".selection").append(e)},a.prototype.destroy=function(){this._detachCloseHandler(this.container)},a.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},a}),l.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,i,s){function n(){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},n.prototype.bind=function(t,e){var i=this;n.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",s),this.$selection.on("mousedown",function(e){1===e.which&&i.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||i.$selection.trigger("focus")})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},n.prototype.selectionContainer=function(){return e("<span></span>")},n.prototype.update=function(e){var t,i;0!==e.length?(i=e[0],t=this.$selection.find(".select2-selection__rendered"),e=this.display(i,t),t.empty().append(e),(i=i.title||i.text)?t.attr("title",i):t.removeAttr("title")):this.clear()},n}),l.define("select2/selection/multiple",["jquery","./base","../utils"],function(s,e,r){function n(e,t){n.__super__.constructor.apply(this,arguments)}return r.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;i.options.get("disabled")||(t=s(this).parent(),t=r.GetData(t[0],"data"),i.trigger("unselect",{originalEvent:e,data:t}))})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},n.prototype.selectionContainer=function(){return s('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var s=e[i],n=this.selectionContainer(),a=this.display(s,n);n.append(a);a=s.title||s.text;a&&n.attr("title",a),r.StoreData(n[0],"data",s),t.push(n)}var o=this.$selection.find(".select2-selection__rendered");r.appendMany(o,t)}},n}),l.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i)}return t.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},t.prototype.createPlaceholder=function(e,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},t.prototype.update=function(e,t){var i=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||i)return e.call(this,t);this.clear();t=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(t)},t}),l.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,s,r){function e(){}return e.prototype.bind=function(e,t,i){var s=this;e.call(this,t,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){s._handleClear(e)}),t.on("keypress",function(e){s._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var s=r.GetData(i[0],"data"),n=this.$element.val();this.$element.val(this.placeholder.id);var a={data:s};if(this.trigger("clear",a),a.prevented)this.$element.val(n);else{for(var o=0;o<s.length;o++)if(a={data:s[o]},this.trigger("unselect",a),a.prevented)return void this.$element.val(n);this.$element.trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,i){i.isOpen()||t.which!=s.DELETE&&t.which!=s.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){e.call(this,t),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(e=this.options.get("translations").get("removeAllItems"),e=i('<span class="select2-selection__clear" title="'+e()+'">&times;</span>'),r.StoreData(e[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(e))},e}),l.define("select2/selection/search",["jquery","../utils","../keys"],function(i,o,r){function e(e,t,i){e.call(this,t,i)}return e.prototype.render=function(e){var t=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");e=e.call(this);return this._transferTabIndex(),e},e.prototype.bind=function(e,t,i){var s=this,n=t.id+"-results";e.call(this,t,i),t.on("open",function(){s.$search.attr("aria-controls",n),s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===r.BACKSPACE&&""===s.$search.val()&&0<(t=s.$searchContainer.prev(".select2-selection__choice")).length&&(t=o.GetData(t[0],"data"),s.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){s.$search.val()&&e.stopPropagation()});var t=document.documentMode,a=t&&t<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){a?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;a&&"input"===e.type?s.$selection.off("input.search input.searchcheck"):(t=e.which)!=r.SHIFT&&t!=r.CTRL&&t!=r.ALT&&t!=r.TAB&&s.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="",e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),l.define("select2/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,i){var s=this,n=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,i),t.on("*",function(e,t){var i;-1!==o.inArray(e,n)&&(i=o.Event("select2:"+e,{params:t=t||{}}),s.$element.trigger(i),-1!==o.inArray(e,a)&&(t.prevented=i.isDefaultPrevented()))})},e}),l.define("select2/translation",["jquery","require"],function(t,i){function s(e){this.dict=e||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(e){return this.dict[e]},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},s._cache={},s.loadPath=function(e){var t;return e in s._cache||(t=i(e),s._cache[e]=t),new s(s._cache[e])},s}),l.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),l.define("select2/data/base",["../utils"],function(i){function s(e,t){s.__super__.constructor.call(this)}return i.Extend(s,i.Observable),s.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},s.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},s.prototype.bind=function(e,t){},s.prototype.destroy=function(){},s.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=i.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+i.generateChars(4),e},s}),l.define("select2/data/select",["./base","../utils","jquery"],function(e,o,r){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return o.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=r(this),e=i.item(e);t.push(e)}),e(t)},i.prototype.select=function(n){var e,a=this;if(n.selected=!0,r(n.element).is("option"))return n.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(e){var t=[];(n=[n]).push.apply(n,e);for(var i=0;i<n.length;i++){var s=n[i].id;-1===r.inArray(s,t)&&t.push(s)}a.$element.val(t),a.$element.trigger("change")}):(e=n.id,this.$element.val(e),this.$element.trigger("change"))},i.prototype.unselect=function(n){var a=this;if(this.$element.prop("multiple")){if(n.selected=!1,r(n.element).is("option"))return n.element.selected=!1,void this.$element.trigger("change");this.current(function(e){for(var t=[],i=0;i<e.length;i++){var s=e[i].id;s!==n.id&&-1===r.inArray(s,t)&&t.push(s)}a.$element.val(t),a.$element.trigger("change")})}},i.prototype.bind=function(e,t){var i=this;(this.container=e).on("select",function(e){i.select(e.data)}),e.on("unselect",function(e){i.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){o.RemoveData(this)})},i.prototype.query=function(t,e){var i=[],s=this;this.$element.children().each(function(){var e=r(this);(e.is("option")||e.is("optgroup"))&&(e=s.item(e),null!==(e=s.matches(t,e))&&i.push(e))}),e({results:i})},i.prototype.addOptions=function(e){o.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=r(t),e=this._normalizeItem(e);return e.element=t,o.StoreData(t,"data",e),i},i.prototype.item=function(e){var t={};if(null!=(t=o.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){for(var t={text:e.prop("label"),children:[],title:e.prop("title")},i=e.children("option"),s=[],n=0;n<i.length;n++){var a=r(i[n]),a=this.item(a);s.push(a)}t.children=s}return(t=this._normalizeItem(t)).element=e[0],o.StoreData(e[0],"data",t),t},i.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=r.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),r.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),l.define("select2/data/array",["./select","../utils","jquery"],function(e,c,d){function s(e,t){this._dataToConvert=t.get("data")||[],s.__super__.constructor.call(this,e,t)}return c.Extend(s,e),s.prototype.bind=function(e,t){s.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},s.prototype.select=function(i){var e;0===(e=this.$element.find("option").filter(function(e,t){return t.value==i.id.toString()})).length&&(e=this.option(i),this.addOptions(e)),s.__super__.select.call(this,i)},s.prototype.convertToOptions=function(e){var t=this,i=this.$element.find("option"),s=i.map(function(){return t.item(d(this)).id}).get(),n=[];for(var a=0;a<e.length;a++){var o,r,l=this._normalizeItem(e[a]);0<=d.inArray(l.id,s)?(o=i.filter(function(e){return function(){return d(this).val()==e.id}}(l)),r=this.item(o),r=d.extend(!0,{},l,r),r=this.option(r),o.replaceWith(r)):(r=this.option(l),l.children&&(l=this.convertToOptions(l.children),c.appendMany(r,l)),n.push(r))}return n},s}),l.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,a){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){return a.extend({},{data:function(e){return a.extend({},e,{q:e.term})},transport:function(e,t,i){e=a.ajax(e);return e.then(t),e.fail(i),e}},e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(t,i){var s=this;null!=this._request&&(a.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var n=a.extend({type:"GET"},this.ajaxOptions);function e(){var e=n.transport(n,function(e){e=s.processResults(e,t);s.options.get("debug")&&window.console&&console.error&&(e&&e.results&&a.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(e)},function(){"status"in e&&(0===e.status||"0"===e.status)||s.trigger("results:message",{message:"errorLoading"})});s._request=e}"function"==typeof n.url&&(n.url=n.url.call(this.$element,t)),"function"==typeof n.data&&(n.data=n.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},i}),l.define("select2/data/tags",["jquery"],function(r){function e(e,t,i){var s=i.get("tags"),n=i.get("createTag");void 0!==n&&(this.createTag=n);n=i.get("insertTag");if(void 0!==n&&(this.insertTag=n),e.call(this,t,i),r.isArray(s))for(var a=0;a<s.length;a++){var o=s[a],o=this._normalizeItem(o),o=this.option(o);this.$element.append(o)}}return e.prototype.query=function(e,c,d){var u=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,i){for(var s=t.results,n=0;n<s.length;n++){var a=s[n],o=null!=a.children&&!e({results:a.children},!0);if((a.text||"").toUpperCase()===(c.term||"").toUpperCase()||o)return!i&&(t.data=s,void d(t))}if(i)return!0;var r,l=u.createTag(c);null!=l&&((r=u.option(l)).attr("data-select2-tag",!0),u.addOptions([r]),u.insertTag(s,l)),t.results=s,d(t)}):e.call(this,c,d)},e.prototype.createTag=function(e,t){t=r.trim(t.term);return""===t?null:{id:t,text:t}},e.prototype.insertTag=function(e,t,i){t.unshift(i)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||r(this).remove()})},e}),l.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,i){var s=i.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,i)}return e.prototype.bind=function(e,t,i){e.call(this,t,i),this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,t,i){var s=this;t.term=t.term||"";var n=this.tokenizer(t,this.options,function(e){var t=s._normalizeItem(e);s.$element.find("option").filter(function(){return c(this).val()===t.id}).length||((e=s.option(t)).attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([e])),s.trigger("select",{data:t})});n.term!==t.term&&(this.$search.length&&(this.$search.val(n.term),this.$search.trigger("focus")),t.term=n.term),e.call(this,t,i)},e.prototype.tokenizer=function(e,t,i,s){for(var n=i.get("tokenSeparators")||[],a=t.term,o=0,r=this.createTag||function(e){return{id:e.term,text:e.term}};o<a.length;){var l=a[o];-1!==c.inArray(l,n)?(l=a.substr(0,o),null!=(l=r(c.extend({},t,{term:l})))?(s(l),a=a.substr(o+1)||"",o=0):o++):o++}return{term:a}},e}),l.define("select2/data/minimumInputLength",[],function(){function e(e,t,i){this.minimumInputLength=i.get("minimumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e}),l.define("select2/data/maximumInputLength",[],function(){function e(e,t,i){this.maximumInputLength=i.get("maximumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e}),l.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.bind=function(e,t,i){var s=this;e.call(this,t,i),t.on("select",function(){s._checkIfMaximumSelected()})},e.prototype.query=function(e,t,i){var s=this;this._checkIfMaximumSelected(function(){e.call(s,t,i)})},e.prototype._checkIfMaximumSelected=function(e,t){var i=this;this.current(function(e){e=null!=e?e.length:0;0<i.maximumSelectionLength&&e>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):t&&t()})},e}),l.define("select2/dropdown",["jquery","./utils"],function(t,e){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},i.prototype.bind=function(){},i.prototype.position=function(e,t){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),l.define("select2/dropdown/search",["jquery","../utils"],function(a,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),e=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=e,this.$search=e.find("input"),t.prepend(e),t},t.prototype.bind=function(e,t,i){var s=this,n=t.id+"-results";e.call(this,t,i),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){a(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.attr("aria-controls",n),s.$search.trigger("focus"),window.setTimeout(function(){s.$search.trigger("focus")},0)}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.val(""),s.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||s.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer.removeClass("select2-search--hide"):s.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),l.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,i,s){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,s)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),s=t.length-1;0<=s;s--){var n=t[s];this.placeholder.id===n.id&&i.splice(s,1)}return i},e}),l.define("select2/dropdown/infiniteScroll",["jquery"],function(i){function e(e,t,i,s){this.lastParams={},e.call(this,t,i,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,i){var s=this;e.call(this,t,i),t.on("query",function(e){s.lastParams=e,s.loading=!0}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=i.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=i.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=i('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),l.define("select2/dropdown/attachBody",["jquery","../utils"],function(d,o){function e(e,t,i){this.$dropdownParent=d(i.get("dropdownParent")||document.body),e.call(this,t,i)}return e.prototype.bind=function(e,t,i){var s=this;e.call(this,t,i),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),s._bindContainerResultHandlers(t)}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,i){t.attr("class",i.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},e.prototype.render=function(e){var t=d("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var i;this._containerResultsHandlersBound||(i=this,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:message",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("select",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("unselect",function(){i._positionDropdown(),i._resizeDropdown()}),this._containerResultsHandlersBound=!0)},e.prototype._attachPositioningHandler=function(e,t){var i=this,s="scroll.select2."+t.id,n="resize.select2."+t.id,a="orientationchange.select2."+t.id,t=this.$container.parents().filter(o.hasScroll);t.each(function(){o.StoreData(this,"select2-scroll-position",{x:d(this).scrollLeft(),y:d(this).scrollTop()})}),t.on(s,function(e){var t=o.GetData(this,"select2-scroll-position");d(this).scrollTop(t.y)}),d(window).on(s+" "+n+" "+a,function(e){i._positionDropdown(),i._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var i="scroll.select2."+t.id,s="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(o.hasScroll).off(i),d(window).off(i+" "+s+" "+t)},e.prototype._positionDropdown=function(){var e=d(window),t=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),s=null,n=this.$container.offset();n.bottom=n.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=n.top,a.bottom=n.top+a.height;var o=this.$dropdown.outerHeight(!1),r=e.scrollTop(),l=e.scrollTop()+e.height(),c=r<n.top-o,e=l>n.bottom+o,r={left:n.left,top:a.bottom},l=this.$dropdownParent;"static"===l.css("position")&&(l=l.offsetParent());n={top:0,left:0};(d.contains(document.body,l[0])||l[0].isConnected)&&(n=l.offset()),r.top-=n.top,r.left-=n.left,t||i||(s="below"),e||!c||t?!c&&e&&t&&(s="below"):s="above",("above"==s||t&&"below"!==s)&&(r.top=a.top-n.top-o),null!=s&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+s),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+s)),this.$dropdownContainer.css(r)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),l.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,i,s){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,i,s)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var i=0,s=0;s<t.length;s++){var n=t[s];n.children?i+=e(n.children):i++}return i}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),l.define("select2/dropdown/selectOnClose",["../utils"],function(s){function e(){}return e.prototype.bind=function(e,t,i){var s=this;e.call(this,t,i),t.on("close",function(e){s._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var i=t.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var i=this.getHighlightedResults();i.length<1||(null!=(i=s.GetData(i[0],"data")).element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i}))},e}),l.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,i){var s=this;e.call(this,t,i),t.on("select",function(e){s._selectTriggered(e)}),t.on("unselect",function(e){s._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var i=t.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},e}),l.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,e="Please delete "+t+" character";return 1!=t&&(e+="s"),e},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),l.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(l,r,c,d,u,p,h,f,m,g,o,t,v,y,b,w,x,_,S,T,C,E,k,$,A,P,I,M,e){function i(){this.reset()}return i.prototype.apply=function(e){var t,i,s;null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=y:e.dataAdapter=v,0<e.minimumInputLength&&(e.dataAdapter=g.Decorate(e.dataAdapter,_)),0<e.maximumInputLength&&(e.dataAdapter=g.Decorate(e.dataAdapter,S)),0<e.maximumSelectionLength&&(e.dataAdapter=g.Decorate(e.dataAdapter,T)),e.tags&&(e.dataAdapter=g.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=g.Decorate(e.dataAdapter,x)),null!=e.query&&(t=r(e.amdBase+"compat/query"),e.dataAdapter=g.Decorate(e.dataAdapter,t)),null!=e.initSelection&&(i=r(e.amdBase+"compat/initSelection"),e.dataAdapter=g.Decorate(e.dataAdapter,i))),null==e.resultsAdapter&&(e.resultsAdapter=c,null!=e.ajax&&(e.resultsAdapter=g.Decorate(e.resultsAdapter,$)),null!=e.placeholder&&(e.resultsAdapter=g.Decorate(e.resultsAdapter,k)),e.selectOnClose&&(e.resultsAdapter=g.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=C:(i=g.Decorate(C,E),e.dropdownAdapter=i),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=g.Decorate(e.dropdownAdapter,P)),e.closeOnSelect&&(e.dropdownAdapter=g.Decorate(e.dropdownAdapter,M)),null==e.dropdownCssClass&&null==e.dropdownCss&&null==e.adaptDropdownCssClass||(s=r(e.amdBase+"compat/dropdownCss"),e.dropdownAdapter=g.Decorate(e.dropdownAdapter,s)),e.dropdownAdapter=g.Decorate(e.dropdownAdapter,A)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=u:e.selectionAdapter=d,null!=e.placeholder&&(e.selectionAdapter=g.Decorate(e.selectionAdapter,p)),e.allowClear&&(e.selectionAdapter=g.Decorate(e.selectionAdapter,h)),e.multiple&&(e.selectionAdapter=g.Decorate(e.selectionAdapter,f)),null==e.containerCssClass&&null==e.containerCss&&null==e.adaptContainerCssClass||(s=r(e.amdBase+"compat/containerCss"),e.selectionAdapter=g.Decorate(e.selectionAdapter,s)),e.selectionAdapter=g.Decorate(e.selectionAdapter,m)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var n=[],a=0;a<e.language.length;a++){var o=e.language[a];-1===n.indexOf(o)&&n.push(o)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},i.prototype.reset=function(){function r(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:g.escapeMarkup,language:{},matcher:function e(t,i){if(""===l.trim(t.term))return i;if(i.children&&0<i.children.length){for(var s=l.extend(!0,{},i),n=i.children.length-1;0<=n;n--)null==e(t,i.children[n])&&s.children.splice(n,1);return 0<s.children.length?s:e(t,s)}var a=r(i.text).toUpperCase(),o=r(t.term).toUpperCase();return-1<a.indexOf(o)?i:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},i.prototype.applyFromElement=function(e,t){var i=e.language,s=this.defaults.language,n=t.prop("lang"),t=t.closest("[lang]").prop("lang"),t=Array.prototype.concat.call(this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(s),this._resolveLanguage(t));return e.language=t,e},i.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];for(var t,i=l.isArray(e)?e:[e],s=[],n=0;n<i.length;n++)s.push(i[n]),"string"==typeof i[n]&&0<i[n].indexOf("-")&&(t=i[n].split("-")[0],s.push(t));return s},i.prototype._processTranslations=function(e,t){for(var i=new o,s=0;s<e.length;s++){var n=new o,a=e[s];if("string"==typeof a)try{n=o.loadPath(a)}catch(e){try{a=this.defaults.amdLanguageBase+a,n=o.loadPath(a)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else n=l.isPlainObject(a)?new o(a):a;i.extend(n)}return i},i.prototype.set=function(e,t){var i={};i[l.camelCase(e)]=t;i=g._convertData(i);l.extend(!0,this.defaults,i)},new i}),l.define("select2/options",["require","jquery","./defaults","./utils"],function(i,c,s,d){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=s.applyFromElement(this.options,t)),this.options=s.apply(this.options),t&&t.is("input")&&(t=i(this.get("amdBase")+"compat/inputData"),this.options.dataAdapter=d.Decorate(this.options.dataAdapter,t))}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),d.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),d.StoreData(e[0],"data",d.GetData(e[0],"select2Tags")),d.StoreData(e[0],"tags",!0)),d.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",d.GetData(e[0],"ajaxUrl")),d.StoreData(e[0],"ajax-Url",d.GetData(e[0],"ajaxUrl")));var i={};function s(e,t){return t.toUpperCase()}for(var n=0;n<e[0].attributes.length;n++){var a,o=e[0].attributes[n].name;"data-"==o.substr(0,"data-".length)&&(a=o.substring("data-".length),o=d.GetData(e[0],a),i[a.replace(/-([a-z])/g,s)]=o)}c.fn.jquery&&"1."==c.fn.jquery.substr(0,2)&&e[0].dataset&&(i=c.extend(!0,{},e[0].dataset,i));var r,l=c.extend(!0,{},d.GetData(e[0]),i);for(r in l=d._convertData(l))-1<c.inArray(r,t)||(c.isPlainObject(this.options[r])?c.extend(this.options[r],l[r]):this.options[r]=l[r]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),l.define("select2/core",["jquery","./options","./utils","./keys"],function(n,a,o,s){function r(e,t){null!=o.GetData(e[0],"select2")&&o.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new a(t=t||{},e),r.__super__.constructor.call(this);var i=e.attr("tabindex")||0;o.StoreData(e[0],"old-tabindex",i),e.attr("tabindex","-1"),t=this.options.get("dataAdapter"),this.dataAdapter=new t(e,this.options),i=this.render(),this._placeContainer(i),t=this.options.get("selectionAdapter"),this.selection=new t(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i),t=this.options.get("dropdownAdapter"),this.dropdown=new t(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i),i=this.options.get("resultsAdapter"),this.results=new i(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var s=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),o.StoreData(e[0],"select2",this),e.data("select2",this)}return o.Extend(r,o.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+o.generateChars(2):o.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var s=this._resolveWidth(e,"style");return null!=s?s:this._resolveWidth(e,"element")}if("element"==t){s=e.outerWidth(!1);return s<=0?"auto":s+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;e=e.attr("style");if("string"!=typeof e)return null;for(var n=e.split(";"),a=0,o=n.length;a<o;a+=1){var r=n[a].replace(/\s/g,"").match(i);if(null!==r&&1<=r.length)return r[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){n.each(e,t._syncA),n.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},r.prototype._registerDataEvents=function(){var i=this;this.dataAdapter.on("*",function(e,t){i.trigger(e,t)})},r.prototype._registerSelectionEvents=function(){var i=this,s=["toggle","focus"];this.selection.on("toggle",function(){i.toggleDropdown()}),this.selection.on("focus",function(e){i.focus(e)}),this.selection.on("*",function(e,t){-1===n.inArray(e,s)&&i.trigger(e,t)})},r.prototype._registerDropdownEvents=function(){var i=this;this.dropdown.on("*",function(e,t){i.trigger(e,t)})},r.prototype._registerResultsEvents=function(){var i=this;this.results.on("*",function(e,t){i.trigger(e,t)})},r.prototype._registerEvents=function(){var i=this;this.on("open",function(){i.$container.addClass("select2-container--open")}),this.on("close",function(){i.$container.removeClass("select2-container--open")}),this.on("enable",function(){i.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){i.$container.addClass("select2-container--disabled")}),this.on("blur",function(){i.$container.removeClass("select2-container--focus")}),this.on("query",function(t){i.isOpen()||i.trigger("open",{}),this.dataAdapter.query(t,function(e){i.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){i.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;i.isOpen()?t===s.ESC||t===s.TAB||t===s.UP&&e.altKey?(i.close(),e.preventDefault()):t===s.ENTER?(i.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(i.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(i.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(i.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(i.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._syncSubtree=function(e,t){var i=!1,s=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var n=0;n<t.addedNodes.length;n++)t.addedNodes[n].selected&&(i=!0);else t.removedNodes&&0<t.removedNodes.length&&(i=!0);else i=!0;i&&this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})})}},r.prototype.trigger=function(e,t){var i=r.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in s){var n={prevented:!1,name:e,args:t};if(i.call(this,s[e],n),n.prevented)return void(t.prevented=!0)}i.call(this,e,t)},r.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.trigger("query",{})},r.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');e=!(e=null==e||0===e.length?[!0]:e)[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0];n.isArray(e)&&(e=n.map(e,function(e){return e.toString()})),this.$element.val(e).trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",o.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),o.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=n('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),o.StoreData(e[0],"element",this.$element),e},r}),l.define("select2/compat/utils",["jquery"],function(o){return{syncCssClasses:function(e,t,i){var s,n,a=[];(s=o.trim(e.attr("class")))&&o((s=""+s).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&a.push(this)}),(s=o.trim(t.attr("class")))&&o((s=""+s).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(n=i(this))&&a.push(n)}),e.attr("class",a.join(" "))}}}),l.define("select2/compat/containerCss",["jquery","./utils"],function(a,o){function r(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),i=this.options.get("containerCssClass")||"";a.isFunction(i)&&(i=i(this.$element));var s,n=this.options.get("adaptContainerCssClass");n=n||r,-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),s=n,n=function(e){var t=s(e);return null!=t?t+" "+e:e});e=this.options.get("containerCss")||{};return a.isFunction(e)&&(e=e(this.$element)),o.syncCssClasses(t,this.$element,n),t.css(e),t.addClass(i),t},e}),l.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,o){function r(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),i=this.options.get("dropdownCssClass")||"";a.isFunction(i)&&(i=i(this.$element));var s,n=this.options.get("adaptDropdownCssClass");n=n||r,-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),s=n,n=function(e){var t=s(e);return null!=t?t+" "+e:e});e=this.options.get("dropdownCss")||{};return a.isFunction(e)&&(e=e(this.$element)),o.syncCssClasses(t,this.$element,n),t.css(e),t.addClass(i),t},e}),l.define("select2/compat/initSelection",["jquery"],function(s){function e(e,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=i.get("initSelection"),this._isInitialized=!1,e.call(this,t,i)}return e.prototype.current=function(e,t){var i=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){i._isInitialized=!0,s.isArray(e)||(e=[e]),t(e)})},e}),l.define("select2/compat/inputData",["jquery","../utils"],function(a,i){function e(e,t,i){this._currentData=[],this._valueSeparator=i.get("valueSeparator")||",","hidden"===t.prop("type")&&i.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,i)}return e.prototype.current=function(e,t){for(var i=[],s=0;s<this._currentData.length;s++){var n=this._currentData[s];i.push.apply(i,function e(t,i){var s=[];return t.selected||-1!==a.inArray(t.id,i)?(t.selected=!0,s.push(t)):t.selected=!1,t.children&&s.push.apply(s,e(t.children,i)),s}(n,this.$element.val().split(this._valueSeparator)))}t(i)},e.prototype.select=function(e,t){var i;this.options.get("multiple")?(i=this.$element.val(),i+=this._valueSeparator+t.id,this.$element.val(i)):(this.current(function(e){a.map(e,function(e){e.selected=!1})}),this.$element.val(t.id)),this.$element.trigger("change")},e.prototype.unselect=function(e,n){var a=this;n.selected=!1,this.current(function(e){for(var t=[],i=0;i<e.length;i++){var s=e[i];n.id!=s.id&&t.push(s.id)}a.$element.val(t.join(a._valueSeparator)),a.$element.trigger("change")})},e.prototype.query=function(e,t,i){for(var s=[],n=0;n<this._currentData.length;n++){var a=this._currentData[n],a=this.matches(t,a);null!==a&&s.push(a)}i({results:s})},e.prototype.addOptions=function(e,t){t=a.map(t,function(e){return i.GetData(e[0],"data")});this._currentData.push.apply(this._currentData,t)},e}),l.define("select2/compat/matcher",["jquery"],function(o){return function(a){return function(e,t){var i=o.extend(!0,{},t);if(null==e.term||""===o.trim(e.term))return i;if(t.children){for(var s=t.children.length-1;0<=s;s--){var n=t.children[s];a(e.term,n.text,n)||i.children.splice(s,1)}if(0<i.children.length)return i}return a(e.term,t.text,t)?i:null}}}),l.define("select2/compat/query",[],function(){function e(e,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.callback=i,this.options.get("query").call(null,t)},e}),l.define("select2/dropdown/attachContainer",[],function(){function e(e,t,i){e.call(this,t,i)}return e.prototype.position=function(e,t,i){i.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),i.addClass("select2-container--below")},e}),l.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i),this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),l.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i),this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),r=function(d){var u,p,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice;if(d.event.fixHooks)for(var i=e.length;i;)d.event.fixHooks[e[--i]]=d.event.mouseHooks;var f=d.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],s,!1);else this.onmousewheel=s;d.data(this,"mousewheel-line-height",f.getLineHeight(this)),d.data(this,"mousewheel-page-height",f.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],s,!1);else this.onmousewheel=null;d.removeData(this,"mousewheel-line-height"),d.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=d(e),e=t["offsetParent"in d.fn?"offsetParent":"parent"]();return e.length||(e=d("body")),parseInt(e.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return d(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function s(e){var t,i=e||window.event,s=h.call(arguments,1),n=0,a=0,o=0,r=0,l=0;if((e=d.event.fix(i)).type="mousewheel","detail"in i&&(o=-1*i.detail),"wheelDelta"in i&&(o=i.wheelDelta),"wheelDeltaY"in i&&(o=i.wheelDeltaY),"wheelDeltaX"in i&&(a=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(a=-1*o,o=0),n=0===o?a:o,"deltaY"in i&&(n=o=-1*i.deltaY),"deltaX"in i&&(a=i.deltaX,0===o&&(n=-1*a)),0!==o||0!==a){1===i.deltaMode?(n*=t=d.data(this,"mousewheel-line-height"),o*=t,a*=t):2===i.deltaMode&&(n*=c=d.data(this,"mousewheel-page-height"),o*=c,a*=c);var c=Math.max(Math.abs(o),Math.abs(a));return(!p||c<p)&&g(i,p=c)&&(p/=40),g(i,c)&&(n/=40,a/=40,o/=40),n=Math[1<=n?"floor":"ceil"](n/p),a=Math[1<=a?"floor":"ceil"](a/p),o=Math[1<=o?"floor":"ceil"](o/p),f.settings.normalizeOffset&&this.getBoundingClientRect&&(c=this.getBoundingClientRect(),r=e.clientX-c.left,l=e.clientY-c.top),e.deltaX=a,e.deltaY=o,e.deltaFactor=p,e.offsetX=r,e.offsetY=l,e.deltaMode=0,s.unshift(e,n,a,o),u&&clearTimeout(u),u=setTimeout(m,200),(d.event.dispatch||d.event.handle).apply(this,s)}}function m(){p=null}function g(e,t){return f.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}d.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof l.define&&l.define.amd?l.define("jquery-mousewheel",["jquery"],r):"object"==typeof exports?module.exports=r:r(t),l.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(n,e,a,t,o){var r;return null==n.fn.select2&&(r=["open","close","destroy"],n.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=n.extend(!0,{},t);new a(n(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var i,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,s)}),-1<n.inArray(t,r)?this:i}),null==n.fn.select2.defaults&&(n.fn.select2.defaults=t),a}),{define:l.define,require:l.require}),l=r.require("jquery.select2");function w(e,t){return s.call(e,t)}function c(e,t){var i,s,n,a,o,r,l,c,d,u,p=t&&t.split("/"),h=v.map,f=h&&h["*"]||{};if(e){for(t=(e=e.split("/")).length-1,v.nodeIdCompat&&b.test(e[t])&&(e[t]=e[t].replace(b,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),c=0;c<e.length;c++)if("."===(u=e[c]))e.splice(c,1),--c;else if(".."===u){if(0===c||1===c&&".."===e[2]||".."===e[c-1])continue;0<c&&(e.splice(c-1,2),c-=2)}e=e.join("/")}if((p||f)&&h){for(c=(i=e.split("/")).length;0<c;--c){if(s=i.slice(0,c).join("/"),p)for(d=p.length;0<d;--d)if(n=(n=h[p.slice(0,d).join("/")])&&n[s]){a=n,o=c;break}if(a)break;!r&&f&&f[s]&&(r=f[s],l=c)}!a&&r&&(a=r,o=l),a&&(i.splice(0,o,a),e=i.join("/"))}return e}function x(t,i){return function(){var e=n.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),o.apply(p,e.concat([t,i]))}}function _(e){var t;if(w(g,e)&&(t=g[e],delete g[e],y[e]=!0,a.apply(p,t)),!w(m,e)&&!w(y,e))throw new Error("No "+e);return m[e]}function d(e){var t,i=e?e.indexOf("!"):-1;return-1<i&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function S(e){return e?d(e):[]}return t.fn.select2.amd=r,l}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof module&&"object"==typeof module.exports?require("jquery"):window.jQuery)}(function(d){"use strict";var u,p;d.fn.ratingLocales={},d.fn.ratingThemes={},u={NAMESPACE:".rating",DEFAULT_MIN:0,DEFAULT_MAX:5,DEFAULT_STEP:.5,isEmpty:function(e,t){return null==e||0===e.length||t&&""===d.trim(e)},getCss:function(e,t){return e?" "+t:""},addCss:function(e,t){e.removeClass(t).addClass(t)},getDecimalPlaces:function(e){e=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},applyPrecision:function(e,t){return parseFloat(e.toFixed(t))},handler:function(e,t,i,s,n){t=n?t:t.split(" ").join(u.NAMESPACE+" ")+u.NAMESPACE;s||e.off(t),e.on(t,function(e){d.proxy(i,self)(e)})}},(p=function(e,t){this.$element=d(e),this._init(t)}).prototype={constructor:p,_parseAttr:function(e,t){var i,s,n=this.$element,a=n.attr("type");if("range"===a||"number"===a){switch(s=t[e]||n.data(e)||n.attr(e),e){case"min":i=u.DEFAULT_MIN;break;case"max":i=u.DEFAULT_MAX;break;default:i=u.DEFAULT_STEP}s=u.isEmpty(s)?i:s,s=parseFloat(s)}else s=parseFloat(t[e]);return isNaN(s)?i:s},_parseValue:function(e){e=parseFloat(e);return isNaN(e)&&(e=this.clearValue),!this.zeroAsNull||0!==e&&"0"!==e?e:null},_setDefault:function(e,t){u.isEmpty(this[e])&&(this[e]=t)},_initSlider:function(e){var t=this,i=t.$element.val();t.initialValue=u.isEmpty(i)?0:i,t._setDefault("min",t._parseAttr("min",e)),t._setDefault("max",t._parseAttr("max",e)),t._setDefault("step",t._parseAttr("step",e)),(isNaN(t.min)||u.isEmpty(t.min))&&(t.min=u.DEFAULT_MIN),(isNaN(t.max)||u.isEmpty(t.max))&&(t.max=u.DEFAULT_MAX),(isNaN(t.step)||u.isEmpty(t.step)||0===t.step)&&(t.step=u.DEFAULT_STEP),t.diff=t.max-t.min,t._setDefault("minThreshold",t.min),t.minThreshold<t.min&&(t.minThreshold=t.min),t.minThreshold>t.max&&(t.minThreshold=t.max)},_initHighlight:function(e){var t,i=this._getCaption();e=e||this.$element.val(),t=this.getWidthFromValue(e)+"%",this.$filledStars.width(t),this.cache={caption:i,width:t,val:e}},_getContainerCss:function(){var e=this;return"rating-container"+u.getCss(e.theme,"theme-"+e.theme)+u.getCss(e.rtl,"rating-rtl")+u.getCss(e.size,"rating-"+e.size)+u.getCss(e.animate,"rating-animate")+u.getCss(e.disabled||e.readonly,"rating-disabled")+u.getCss(e.containerClass,e.containerClass)+(e.displayOnly?" is-display-only":"")},_checkDisabled:function(){var e=this.$element,t=this.options;this.disabled=void 0===t.disabled?e.attr("disabled")||!1:t.disabled,this.readonly=void 0===t.readonly?e.attr("readonly")||!1:t.readonly,this.inactive=this.disabled||this.readonly,e.attr({disabled:this.disabled,readonly:this.readonly})},_addContent:function(e,t){var i=this.$container,e="clear"===e;return this.rtl?e?i.append(t):i.prepend(t):e?i.prepend(t):i.append(t)},_generateRating:function(){var e,t=this,i=t.$element,s=t.$container=d(document.createElement("div")).insertBefore(i);u.addCss(s,t._getContainerCss()),t.$rating=e=d(document.createElement("div")).attr("class","rating-stars").appendTo(s).append(t._getStars("empty")).append(t._getStars("filled")),t.keyboardEnabled&&t.$rating.attr("tabindex",t.tabindex),t.$emptyStars=e.find(".empty-stars"),t.$filledStars=e.find(".filled-stars"),t._renderCaption(),t._renderClear(),t._initHighlight(),t._initStarTitles(),t.rtl&&(e=Math.max(t.$emptyStars.outerWidth(),t.$filledStars.outerWidth()),t.$emptyStars.width(e)),s.insertBefore(i)},_getCaption:function(){return this.$caption&&this.$caption.length?this.$caption.html():this.defaultCaption},_setCaption:function(e){this.$caption&&this.$caption.length&&this.$caption.html(e)},_renderCaption:function(){var e=this.$element.val(),t=this.captionElement?d(this.captionElement):"";if(this.showCaption){if(e=this.fetchCaption(e),t&&t.length)return u.addCss(t,"caption"),t.html(e),void(this.$caption=t);this._addContent("caption",'<div class="caption">'+e+"</div>"),this.$caption=this.$container.find(".caption")}},_renderClear:function(){var e,t=this,i=t.clearElement?d(t.clearElement):"";if(t.showClear){if(e=t._getClearClass(),i.length)return u.addCss(i,e),i.attr({title:t.clearButtonTitle}).html(t.clearButton),void(t.$clear=i);t._addContent("clear",'<div class="'+e+'" title="'+t.clearButtonTitle+'">'+t.clearButton+"</div>"),t.$clear=t.$container.find("."+t.clearButtonBaseClass)}},_getClearClass:function(){return this.clearButtonBaseClass+" "+(this.inactive?"":this.clearButtonActiveClass)},_toggleHover:function(e){var t,i=this;e&&(i.hoverChangeStars&&(t=i.getWidthFromValue(i.clearValue),t=e.val<=i.clearValue?t+"%":e.width,i.$filledStars.css("width",t)),!i.hoverChangeCaption||(e=e.val<=i.clearValue?i.fetchCaption(i.clearValue):e.caption)&&i._setCaption(e+""))},_init:function(e){var i=this,t=i.$element.attr("tabindex",-1).addClass("rating-input"),s=i.minThreshold;return i.options=e,d.each(e,function(e,t){i[e]=t}),!i.rtl&&"rtl"!==t.attr("dir")||(i.rtl=!0,t.attr("dir","rtl")),i.starClicked=!1,i.clearClicked=!1,i._initSlider(e),i._checkDisabled(),i.displayOnly&&(i.inactive=!0,i.showClear=!1,i.hoverEnabled=!1,i.hoverChangeCaption=!1,i.hoverChangeStars=!1),i._generateRating(),i._initEvents(),i._listen(),!u.isEmpty(s)&&(u.isEmpty(t.val())||t.val()<s)&&t.val(s),s=i._parseValue(t.val()),t.val(s),t.removeClass("rating-loading")},_initCaptionTitle:function(){var e=this.fetchCaption(this.$element.val());this.$rating.attr("title",d(e).text())},_trigChange:function(e){this._initStarTitles(),this.$element.trigger("change").trigger("rating:change",e)},_initEvents:function(){var l=this;l.events={_getTouchPosition:function(e){return(u.isEmpty(e.pageX)?e.originalEvent.touches[0]:e).pageX-l.$rating.offset().left},_listenClick:function(e,t){return e.stopPropagation(),e.preventDefault(),!0!==e.handled&&(t(e),void(e.handled=!0))},_noMouseAction:function(e){return!l.mouseEnabled||!l.hoverEnabled||l.inactive||e&&e.isDefaultPrevented()},initTouch:function(e){var t,i,s=l.clearValue||0;("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch)&&!l.inactive&&(t=e.originalEvent,t=u.isEmpty(t.touches)?t.changedTouches:t.touches,t=l.events._getTouchPosition(t[0]),"touchend"===e.type?(l._setStars(t),i=[l.$element.val(),l._getCaption()],l._trigChange(i),l.starClicked=!0):(i=(e=l.calculate(t)).val<=s?l.fetchCaption(s):e.caption,t=l.getWidthFromValue(s),e=e.val<=s?t+"%":e.width,l._setCaption(i),l.$filledStars.css("width",e)))},starClick:function(e){var t;l.events._listenClick(e,function(e){return!l.inactive&&(t=l.events._getTouchPosition(e),l._setStars(t),t=[l.$element.val(),l._getCaption()],l._trigChange(t),void(l.starClicked=!0))})},clearClick:function(e){l.events._listenClick(e,function(){l.inactive||(l.clear(),l.clearClicked=!0)})},starMouseMove:function(e){l.events._noMouseAction(e)||(l.starClicked=!1,e=l.events._getTouchPosition(e),e=l.calculate(e),l._toggleHover(e),l.$element.trigger("rating:hover",[e.val,e.caption,"stars"]))},starMouseLeave:function(e){l.events._noMouseAction(e)||l.starClicked||(e=l.cache,l._toggleHover(e),l.$element.trigger("rating:hoverleave",["stars"]))},clearMouseMove:function(e){var t,i;!l.events._noMouseAction(e)&&l.hoverOnClear&&(l.clearClicked=!1,t='<span class="'+l.clearCaptionClass+'">'+l.clearCaption+"</span>",i=l.clearValue,e=l.getWidthFromValue(i)||0,l._toggleHover({caption:t,width:e,val:i}),l.$element.trigger("rating:hover",[i,t,"clear"]))},clearMouseLeave:function(e){l.events._noMouseAction(e)||l.clearClicked||!l.hoverOnClear||(e=l.cache,l._toggleHover(e),l.$element.trigger("rating:hoverleave",["clear"]))},resetForm:function(e){e&&e.isDefaultPrevented()||l.inactive||l.reset()},focus:function(){l.$rating.focus(),l.$element.trigger("rating:focus")},blur:function(){l.$element.trigger("rating:blur")},keydown:function(e){var t,i,s,n,a,o,r;!l.inactive&&l.keyboardEnabled&&(r=(t=l.$element).val(),i=!1,s=parseFloat(l.step),n=u.getDecimalPlaces(s),a=l.rtl?37:39,o=l.rtl?39:37,r=r?parseFloat(r):0,(e=parseInt(e.which||e.keyCode||0,10))===a&&r<l.max&&(r+=s,i=!0),e===o&&r>l.minThreshold&&(r-=s,i=!0),i&&(r=u.applyPrecision(r,n),t.val(r),l._trigChange([r,l._getCaption()]),l.showStars(t.val()),l.$rating.focus()),37!==e&&39!==e||t.trigger("rating:keydown",[r,l._getCaption()]))}}},_listen:function(){var n=this,e=n.$element,t=e.closest("form"),i=n.$rating,s=n.$clear,a=n.events,o=u.NAMESPACE,r="mouseenter"+o+" mouseleave"+o,o=n.$rating.find(".star");return u.handler(i,"touchstart touchmove touchend",a.initTouch),u.handler(i,"click touchstart",a.starClick),u.handler(i,"mousemove",a.starMouseMove),u.handler(i,"mouseleave",a.starMouseLeave),u.handler(i,"keydown",a.keydown),u.handler(i,"blur",a.blur),n.showClear&&s.length&&(u.handler(s,"click touchstart",a.clearClick),u.handler(s,"mousemove",a.clearMouseMove),u.handler(s,"mouseleave",a.clearMouseLeave)),t.length&&u.handler(t,"reset",a.resetForm,!0),o.off(r).on(r,function(e){var t=d(this),i=t.index(),s=t.parent().attr("class").slice(0,-1);n.$element.trigger("rating:"+e.type,[i+1,s,t])}),u.handler(n.$container,"click",a.focus),e},_getStars:function(e){for(var t='<span class="'+e+'-stars">',i=1;i<=this.stars;i++)t+='<span class="star">'+this[e+"Star"]+"</span>";return t+"</span>"},_initStarTitles:function(s){var n,e;this.showCaptionAsTitle?this._initCaptionTitle():(n=this.starTitles,(e=function(e){var i=1;e.each(function(){var e=d(this),t="function"==typeof n?(t=i===Math.floor(s)?s:i,n(t)):n[i];t&&e.attr({title:t}),i++})})(this.$emptyStars.find(".star")),e(this.$filledStars.find(".star")))},_setStars:function(e){var t=arguments.length?this.calculate(e):this.calculate(),i=this.$element,e=this._parseValue(t.val);return i.val(e),this.$filledStars.css("width",t.width),this._setCaption(t.caption),this.cache=t,this._initStarTitles(e),i},showStars:function(e){e=this._parseValue(e);return this.$element.val(e),this._setStars()},calculate:function(e){var t=u.isEmpty(this.$element.val())?0:this.$element.val(),i=arguments.length?this.getValueFromPosition(e):t,e=this.fetchCaption(i),t=this.getWidthFromValue(i);return{caption:e,width:t+="%",val:i}},getValueFromPosition:function(e){var t=this,i=u.getDecimalPlaces(t.step),s=t.$rating.width(),s=t.diff*e/(s*t.step);return s=t.rtl?Math.floor(s):Math.ceil(s),i=u.applyPrecision(parseFloat(t.min+s*t.step),i),i=Math.max(Math.min(i,t.max),t.minThreshold),t.rtl?t.max-i:i},getWidthFromValue:function(e){var t,i=this.min,s=this.max,n=this.$emptyStars;return!e||e<=this.min||i===s?0:(e=Math.max(e,this.minThreshold),t=(t=n.outerWidth())?n.width()/t:1,s<=e?100:(e-i)*t*100/(s-i))},fetchCaption:function(e){var t=this,i=parseFloat(e)||t.clearValue,s=t.starCaptions,n=t.starCaptionClasses,e=t.getWidthFromValue(i);return i&&i!==t.clearValue&&(i=u.applyPrecision(i,u.getDecimalPlaces(t.step))),n="function"==typeof n?n(i,e):n[i],s="function"==typeof s?s(i,e):s[i],s=u.isEmpty(s)?t.defaultCaption.replace(/\{rating}/g,i):s,'<span class="'+(u.isEmpty(n)?t.clearCaptionClass:n)+'">'+(i===t.clearValue?t.clearCaption:s)+"</span>"},destroy:function(){var e=this.$element;return u.isEmpty(this.$container)||this.$container.before(e).remove(),d.removeData(e.get(0)),e.off("rating").removeClass("rating rating-input")},create:function(e){e=e||this.options||{};return this.destroy().rating(e)},clear:function(){var e='<span class="'+this.clearCaptionClass+'">'+this.clearCaption+"</span>";return this.inactive||this._setCaption(e),this.showStars(this.clearValue).trigger("change").trigger("rating:clear")},reset:function(){return this.showStars(this.initialValue).trigger("rating:reset")},update:function(e){return arguments.length?this.showStars(e):this.$element},refresh:function(e){var t=this.$element;return e?this.destroy().rating(d.extend(!0,this.options,e)).trigger("rating:refresh"):t}},d.fn.rating=function(r){var l=Array.apply(null,arguments),c=[];switch(l.shift(),this.each(function(){var e=d(this),t=e.data("rating"),i="object"==typeof r&&r,s=i.theme||e.data("theme"),n=i.language||e.data("language")||"en",a={},o={};t||(s&&(a=d.fn.ratingThemes[s]||{}),"en"===n||u.isEmpty(d.fn.ratingLocales[n])||(o=d.fn.ratingLocales[n]),i=d.extend(!0,{},d.fn.rating.defaults,a,d.fn.ratingLocales.en,o,i,e.data()),t=new p(this,i),e.data("rating",t)),"string"==typeof r&&c.push(t[r].apply(t,l))}),c.length){case 0:return this;case 1:return void 0===c[0]?this:c[0];default:return c}},d.fn.rating.defaults={theme:"krajee-svg",language:"en",stars:5,tabindex:0,keyboardEnabled:!0,mouseEnabled:!0,containerClass:"",size:"md",animate:!0,displayOnly:!1,rtl:!1,showClear:!0,showCaption:!0,starCaptionClasses:{.5:"caption-badge caption-danger",1:"caption-badge caption-danger",1.5:"caption-badge caption-warning",2:"caption-badge caption-warning",2.5:"caption-badge caption-info",3:"caption-badge caption-info",3.5:"caption-badge caption-primary",4:"caption-badge caption-primary",4.5:"caption-badge caption-success",5:"caption-badge caption-success"},filledStar:'<span class="krajee-icon krajee-icon-star"></span>',emptyStar:'<span class="krajee-icon krajee-icon-star"></span>',clearButton:'<span class="krajee-icon-clear"></span>',clearButtonBaseClass:"clear-rating",clearButtonActiveClass:"clear-rating-active",clearCaptionClass:"caption-badge caption-secondary",clearValue:null,captionElement:null,clearElement:null,showCaptionAsTitle:!1,hoverEnabled:!0,hoverChangeCaption:!0,hoverChangeStars:!0,hoverOnClear:!0,zeroAsNull:!0},d.fn.ratingLocales.en={defaultCaption:"{rating} Stars",starCaptions:{.5:"Half Star",1:"One Star",1.5:"One & Half Star",2:"Two Stars",2.5:"Two & Half Stars",3:"Three Stars",3.5:"Three & Half Stars",4:"Four Stars",4.5:"Four & Half Stars",5:"Five Stars"},starTitles:{1:"One Star",2:"Two Stars",3:"Three Stars",4:"Four Stars",5:"Five Stars"},clearButtonTitle:"Clear",clearCaption:"Not Rated"},d.fn.rating.Constructor=p,d(document).ready(function(){var e=d("input.rating");e.length&&e.removeClass("rating-loading").addClass("rating-loading").rating()})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof module&&"object"==typeof module.exports?require("jquery"):window.jQuery)}(function(e){"use strict";e.fn.ratingThemes||(e.fn.ratingThemes={}),e.fn.ratingThemes["krajee-svg"]={filledStar:'<span class="krajee-icon krajee-icon-star"></span>',emptyStar:'<span class="krajee-icon krajee-icon-star"></span>',clearButton:'<span class="krajee-icon-clear"></span>'}}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(h){"use strict";function f(e,t){return null==e||0===e.length||t&&""===h.trim(e)}function a(e,t){this.$element=h(e),this.init(t),this.listen()}a.prototype={constructor:a,init:function(e){var i=this,t=i.$element;h.each(e,function(e,t){i[e]=t}),i.initCache(),i.enableCache=!!i.enableCache,f(i.addCss)||t.hasClass(i.addCss)||t.addClass(i.addCss),i.$pane=t.find(".tab-pane.active"),i.$content=t.find(".tab-content"),i.$tabs=t.find(".nav-tabs"),i.isVertical=t.hasClass("tabs-left")||t.hasClass("tabs-right"),i.isVerticalSide=i.isVertical&&t.hasClass("tab-sideways"),i.isVertical&&i.$content.css("min-height",i.$tabs.outerHeight()+1+"px")},setTitle:function(e){var t=h.trim(e.text()),i=this.isVertical,s=f(e.data("maxTitleLength"))?this.maxTitleLength:e.data("maxTitleLength");i&&t.length>s-2&&f(e.attr("title"))&&e.attr("title",t)},listen:function(){var p=this,e=p.$element;e.find(".nav-tabs li.disabled").each(function(){h(this).find('[data-toggle="tab"]').removeAttr("data-toggle")}),e.find('.nav-tabs li [data-toggle="dropdown"]').each(function(){p.setTitle(h(this))}),e.find('.nav-tabs li [data-toggle="tab"]').each(function(){var d=h(this),u=d.closest("li");u.removeAttr("data-toggle"),p.setTitle(d),d.on("click",function(e){var t,i,s,n,a,o,r,l,c;u.hasClass("disabled")?e.preventDefault():(t=h(this).attr("data-url"),i=this.hash,s=t+i,f(t)||p.enableCache&&p.cache.exist(s)?d.trigger("tabsX:click"):(e.preventDefault(),n=h(i),a=h(this),o=a,r=h(this).attr("data-loading-class")||"kv-tab-loading",e=a.closest(".dropdown"),l=p.successCallback[i]||null,c=p.errorCallback[i]||null,f(e.attr("class"))||(o=e.find(".dropdown-toggle")),t=h.extend(!0,{},{type:"post",dataType:"json",url:t,beforeSend:function(e,t){n.html("<br><br><br>"),o.removeClass(r).addClass(r),d.trigger("tabsX:beforeSend",[e,t])},success:function(e,t,i){setTimeout(function(){n.html(e),a.tab("show"),o.removeClass(r),p.enableCache&&p.cache.set(s),l&&"function"==typeof l&&l(e,t,i),d.trigger("tabsX:success",[e,t,i])},300)},error:function(e,t,i){c&&"function"==typeof c&&c(e,t,i),d.trigger("tabsX:error",[e,t,i])},complete:function(e,t){d.trigger("tabsX:click",[e,t])}},p.ajaxSettings),h.ajax(t)))})})},initCache:function(){var t=this,i=parseFloat(t.cacheTimeout);isNaN(i)&&(i=0),t.cache={data:{},create:function(){return(new Date).getTime()},exist:function(e){return!!t.cache.data[e]&&t.cache.create()-t.cache.data[e]<i},set:function(e){t.cache.data[e]=t.cache.create()}}},flushCache:function(e){var i=this;"object"!=typeof(e="string"==typeof e?[e]:e)||f(e)?i.cache.data={}:Object.values(e).forEach(function(t){Object.keys(i.cache.data).forEach(function(e){e.endsWith(t)&&delete i.cache.data[e]})})}},h.fn.tabsX=function(i){var s=Array.apply(null,arguments),n=[];switch(s.shift(),this.each(function(){var e=h(this),t=e.data("tabsX");t||(t=new a(this,h.extend(!0,{},h.fn.tabsX.defaults,"object"==typeof i&&i,h(this).data())),e.data("tabsX",t)),"string"==typeof i&&n.push(t[i].apply(t,s))}),n.length){case 0:return this;case 1:return n[0];default:return n}},h.fn.tabsX.defaults={enableCache:!0,cacheTimeout:3e5,maxTitleLength:9,ajaxSettings:{},successCallback:{},errorCallback:{},addCss:"tabs-krajee"},h.fn.tabsX.Constructor=a,h(document).on("ready",function(){h(".tabs-x").tabsX({})})}),"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(c,s){var i={init:function(e,t){var i,s,n=this;n.elem=t,n.$elem=c(t),n.options=c.extend({},c.fn.ezPlus.options,n.responsiveConfig(e||{})),n.imageSrc=n.$elem.data(n.options.attrImageZoomSrc)?n.$elem.data(n.options.attrImageZoomSrc):n.$elem.attr("src"),n.options.enabled&&(n.options.tint&&(n.options.lensColour="none",n.options.lensOpacity="1"),"inner"===n.options.zoomType&&(n.options.showLens=!1),-1===n.options.zoomId&&(n.options.zoomId=(s=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==e?t:3&t|8).toString(16)}))),n.$elem.parent().removeAttr("title").removeAttr("alt"),n.zoomImage=n.imageSrc,n.refresh(1),(i=c(n.options.gallery?"#"+n.options.gallery:n.options.gallerySelector)).on("click.zoom",n.options.galleryItem,function(e){if(n.options.galleryActiveClass&&(c(n.options.galleryItem,i).removeClass(n.options.galleryActiveClass),c(this).addClass(n.options.galleryActiveClass)),"A"===this.tagName&&e.preventDefault(),c(this).data(n.options.attrImageZoomSrc)?n.zoomImagePre=c(this).data(n.options.attrImageZoomSrc):n.zoomImagePre=c(this).data("image"),n.swaptheimage(c(this).data("image"),n.zoomImagePre),"A"===this.tagName)return!1}))},refresh:function(e){var t=this;setTimeout(function(){t.fetch(t.imageSrc)},e||t.options.refresh)},fetch:function(e){var t=this,i=new Image;i.onload=function(){t.largeWidth=i.width,t.largeHeight=i.height,t.startZoom(),t.currentImage=t.imageSrc,t.options.onZoomedImageLoaded(t.$elem)},t.setImageSource(i,e)},setImageSource:function(e,t){e.src=t},startZoom:function(){var i=this;i.nzWidth=i.$elem.width(),i.nzHeight=i.$elem.height(),i.isWindowActive=!1,i.isLensActive=!1,i.isTintActive=!1,i.overWindow=!1,i.options.imageCrossfade&&(i.zoomWrap=i.$elem.wrap('<div style="height:'+i.nzHeight+"px;width:"+i.nzWidth+'px;" class="zoomWrapper" />'),i.$elem.css("position","absolute")),i.zoomLock=1,i.scrollingLock=!1,i.changeBgSize=!1,i.currentZoomLevel=i.options.zoomLevel,i.nzOffset=i.$elem.offset(),i.widthRatio=i.largeWidth/i.currentZoomLevel/i.nzWidth,i.heightRatio=i.largeHeight/i.currentZoomLevel/i.nzHeight,"window"===i.options.zoomType&&(i.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(i.options.zoomWindowBgColour)+";width: "+String(i.options.zoomWindowWidth)+"px;height: "+String(i.options.zoomWindowHeight)+"px;float: left;background-size: "+i.largeWidth/i.currentZoomLevel+"px "+i.largeHeight/i.currentZoomLevel+"px;display: none;z-index:100;border: "+String(i.options.borderSize)+"px solid "+i.options.borderColour+";background-repeat: no-repeat;position: absolute;"),"inner"===i.options.zoomType&&(i.zoomWindowStyle=(e=i.$elem.css("border-left-width"),"overflow: hidden;margin-left: "+String(e)+";margin-top: "+String(e)+";background-position: 0px 0px;width: "+String(i.nzWidth)+"px;height: "+String(i.nzHeight)+"px;float: left;display: none;cursor:"+i.options.cursor+";border: "+String(i.options.borderSize)+"px solid "+i.options.borderColour+";background-repeat: no-repeat;position: absolute;")),"window"===i.options.zoomType&&(i.lensStyle=(i.nzHeight<i.options.zoomWindowHeight/i.heightRatio?i.lensHeight=i.nzHeight:i.lensHeight=String(i.options.zoomWindowHeight/i.heightRatio),i.largeWidth<i.options.zoomWindowWidth?i.lensWidth=i.nzWidth:i.lensWidth=String(i.options.zoomWindowWidth/i.widthRatio),"background-position: 0px 0px;width: "+String(i.options.zoomWindowWidth/i.widthRatio)+"px;height: "+String(i.options.zoomWindowHeight/i.heightRatio)+"px;float: right;display: none;overflow: hidden;z-index: 999;opacity:"+i.options.lensOpacity+";filter: alpha(opacity = "+100*i.options.lensOpacity+"); zoom:1;width:"+i.lensWidth+"px;height:"+i.lensHeight+"px;background-color:"+i.options.lensColour+";cursor:"+i.options.cursor+";border: "+i.options.lensBorderSize+"px solid "+i.options.lensBorderColour+";background-repeat: no-repeat;position: absolute;")),i.tintStyle="display: block;position: absolute;background-color: "+i.options.tintColour+";filter:alpha(opacity=0);opacity: 0;width: "+i.nzWidth+"px;height: "+i.nzHeight+"px;",i.lensRound="","lens"===i.options.zoomType&&(i.lensStyle="background-position: 0px 0px;float: left;display: none;border: "+String(i.options.borderSize)+"px solid "+i.options.borderColour+";width:"+String(i.options.lensSize)+"px;height:"+String(i.options.lensSize)+"px;background-repeat: no-repeat;position: absolute;"),"round"===i.options.lensShape&&(i.lensRound="border-top-left-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;border-top-right-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;border-bottom-left-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;border-bottom-right-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;"),i.zoomContainer=c('<div class="zoomContainer" uuid="'+i.options.zoomId+'"style="position:absolute;left:'+i.nzOffset.left+"px;top:"+i.nzOffset.top+"px;height:"+i.nzHeight+"px;width:"+i.nzWidth+"px;z-index:"+i.options.zIndex+'"></div>'),i.$elem.attr("id")&&i.zoomContainer.attr("id",i.$elem.attr("id")+"-zoomContainer"),c(i.options.zoomContainerAppendTo).append(i.zoomContainer),i.options.containLensZoom&&"lens"===i.options.zoomType&&i.zoomContainer.css("overflow","hidden"),"inner"!==i.options.zoomType&&(i.zoomLens=c('<div class="zoomLens" style="'+i.lensStyle+i.lensRound+'">&nbsp;</div>').appendTo(i.zoomContainer).click(function(){i.$elem.trigger("click")}),i.options.tint&&(i.tintContainer=c("<div/>").addClass("tintContainer"),i.zoomTint=c('<div class="zoomTint" style="'+i.tintStyle+'"></div>'),i.zoomLens.wrap(i.tintContainer),i.zoomTintcss=i.zoomLens.after(i.zoomTint),i.zoomTintImage=c('<img style="position: absolute; left: 0px; top: 0px; max-width: none; width: '+i.nzWidth+"px; height: "+i.nzHeight+'px;" src="'+i.imageSrc+'">').appendTo(i.zoomLens).click(function(){i.$elem.trigger("click")})));var e=isNaN(i.options.zoomWindowPosition)?"body":i.zoomContainer;function t(e){i.lastX===e.clientX&&i.lastY===e.clientY||(i.setPosition(e),i.currentLoc=e),i.lastX=e.clientX,i.lastY=e.clientY}i.zoomWindow=c('<div style="z-index:999;left:'+i.windowOffsetLeft+"px;top:"+i.windowOffsetTop+"px;"+i.zoomWindowStyle+'" class="zoomWindow">&nbsp;</div>').appendTo(e).click(function(){i.$elem.trigger("click")}),i.zoomWindowContainer=c("<div/>").addClass("zoomWindowContainer").css("width",i.options.zoomWindowWidth),i.zoomWindow.wrap(i.zoomWindowContainer),"lens"===i.options.zoomType&&i.zoomLens.css("background-image",'url("'+i.imageSrc+'")'),"window"===i.options.zoomType&&i.zoomWindow.css("background-image",'url("'+i.imageSrc+'")'),"inner"===i.options.zoomType&&i.zoomWindow.css("background-image",'url("'+i.imageSrc+'")'),i.options.touchEnabled&&(i.$elem.bind("touchmove.ezpspace",function(e){e.preventDefault();e=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];i.setPosition(e)}),i.zoomContainer.bind("touchmove.ezpspace",function(e){"inner"===i.options.zoomType&&i.showHideWindow("show"),e.preventDefault();e=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];i.setPosition(e)}),i.zoomContainer.bind("touchend.ezpspace",function(e){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!==i.options.zoomType&&i.showHideTint("hide")}),i.$elem.bind("touchend.ezpspace",function(e){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!==i.options.zoomType&&i.showHideTint("hide")}),i.options.showLens&&(i.zoomLens.bind("touchmove.ezpspace",function(e){e.preventDefault();e=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];i.setPosition(e)}),i.zoomLens.bind("touchend.ezpspace",function(e){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!==i.options.zoomType&&i.showHideTint("hide")}))),i.$elem.bind("mousemove.ezpspace",function(e){!1===i.overWindow&&i.setElements("show"),i.lastX===e.clientX&&i.lastY===e.clientY||(i.setPosition(e),i.currentLoc=e),i.lastX=e.clientX,i.lastY=e.clientY}),i.zoomContainer.bind("click.ezpspace",i.options.onImageClick),i.zoomContainer.bind("mousemove.ezpspace",function(e){!1===i.overWindow&&i.setElements("show"),t(e)});e=null;"inner"!==i.options.zoomType&&(e=i.zoomLens),i.options.tint&&"inner"!==i.options.zoomType&&(e=i.zoomTint),(e="inner"===i.options.zoomType?i.zoomWindow:e)&&e.bind("mousemove.ezpspace",t),i.zoomContainer.add(i.$elem).mouseenter(function(){!1===i.overWindow&&i.setElements("show")}).mouseleave(function(){i.scrollLock||(i.setElements("hide"),i.options.onDestroy(i.$elem))}),"inner"!==i.options.zoomType&&i.zoomWindow.mouseenter(function(){i.overWindow=!0,i.setElements("hide")}).mouseleave(function(){i.overWindow=!1}),i.options.minZoomLevel?i.minZoomLevel=i.options.minZoomLevel:i.minZoomLevel=2*i.options.scrollZoomIncrement,i.options.scrollZoom&&i.zoomContainer.add(i.$elem).bind("wheel DOMMouseScroll MozMousePixelScroll",function(e){i.scrollLock=!0,clearTimeout(c.data(this,"timer")),c.data(this,"timer",setTimeout(function(){i.scrollLock=!1},250));var t=e.originalEvent.deltaY||-1*e.originalEvent.detail;return e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),0<t/120?i.currentZoomLevel>=i.minZoomLevel&&i.changeZoomLevel(i.currentZoomLevel-i.options.scrollZoomIncrement):(i.fullheight||i.fullwidth)&&i.options.mantainZoomAspectRatio||(!i.options.maxZoomLevel||i.currentZoomLevel<=i.options.maxZoomLevel)&&i.changeZoomLevel(parseFloat(i.currentZoomLevel)+i.options.scrollZoomIncrement),!1})},destroy:function(){this.$elem.unbind("ezpspace"),c(this.zoomContainer).remove(),this.options.loadingIcon&&this.spinner&&this.spinner.length&&(this.spinner.remove(),delete this.spinner)},getIdentifier:function(){return this.options.zoomId},setElements:function(e){var t=this;if(!t.options.zoomEnabled)return!1;"show"===e&&t.isWindowSet&&("inner"===t.options.zoomType&&t.showHideWindow("show"),"window"===t.options.zoomType&&t.showHideWindow("show"),t.options.showLens&&t.showHideLens("show"),t.options.tint&&"inner"!==t.options.zoomType&&t.showHideTint("show")),"hide"===e&&("window"===t.options.zoomType&&t.showHideWindow("hide"),t.options.tint||t.showHideWindow("hide"),t.options.showLens&&t.showHideLens("hide"),t.options.tint&&t.showHideTint("hide"))},setPosition:function(e){var t,i,s=this;if(!s.options.zoomEnabled)return!1;s.nzHeight=s.$elem.height(),s.nzWidth=s.$elem.width(),s.nzOffset=s.$elem.offset(),s.options.tint&&"inner"!==s.options.zoomType&&s.zoomTint.css({top:0,left:0}),s.options.responsive&&!s.options.scrollZoom&&s.options.showLens&&(s.nzHeight<s.options.zoomWindowWidth/s.widthRatio?s.lensHeight=s.nzHeight:s.lensHeight=String(s.options.zoomWindowHeight/s.heightRatio),s.largeWidth<s.options.zoomWindowWidth?s.lensWidth=s.nzWidth:s.lensWidth=s.options.zoomWindowWidth/s.widthRatio,s.widthRatio=s.largeWidth/s.nzWidth,s.heightRatio=s.largeHeight/s.nzHeight,"lens"!==s.options.zoomType&&(s.nzHeight<s.options.zoomWindowWidth/s.widthRatio?s.lensHeight=s.nzHeight:s.lensHeight=String(s.options.zoomWindowHeight/s.heightRatio),s.nzWidth<s.options.zoomWindowHeight/s.heightRatio?s.lensWidth=s.nzWidth:s.lensWidth=String(s.options.zoomWindowWidth/s.widthRatio),s.zoomLens.css({width:s.lensWidth,height:s.lensHeight}),s.options.tint&&s.zoomTintImage.css({width:s.nzWidth,height:s.nzHeight})),"lens"===s.options.zoomType&&s.zoomLens.css({width:String(s.options.lensSize)+"px",height:String(s.options.lensSize)+"px"})),s.zoomContainer.css({top:s.nzOffset.top,left:s.nzOffset.left,width:s.nzWidth,height:s.nzHeight}),s.mouseLeft=parseInt(e.pageX-s.nzOffset.left),s.mouseTop=parseInt(e.pageY-s.nzOffset.top),"window"===s.options.zoomType&&(t=s.zoomLens.height()/2,i=s.zoomLens.width()/2,s.Etoppos=s.mouseTop<0+t,s.Eboppos=s.mouseTop>s.nzHeight-t-2*s.options.lensBorderSize,s.Eloppos=s.mouseLeft<0+i,s.Eroppos=s.mouseLeft>s.nzWidth-i-2*s.options.lensBorderSize),"inner"===s.options.zoomType&&(s.Etoppos=s.mouseTop<s.nzHeight/2/s.heightRatio,s.Eboppos=s.mouseTop>s.nzHeight-s.nzHeight/2/s.heightRatio,s.Eloppos=s.mouseLeft<0+s.nzWidth/2/s.widthRatio,s.Eroppos=s.mouseLeft>s.nzWidth-s.nzWidth/2/s.widthRatio-2*s.options.lensBorderSize),s.mouseLeft<0||s.mouseTop<0||s.mouseLeft>s.nzWidth||s.mouseTop>s.nzHeight?s.setElements("hide"):(s.options.showLens&&(s.lensLeftPos=String(Math.floor(s.mouseLeft-s.zoomLens.width()/2)),s.lensTopPos=String(Math.floor(s.mouseTop-s.zoomLens.height()/2))),s.Etoppos&&(s.lensTopPos=0),s.Eloppos&&(s.windowLeftPos=0,s.lensLeftPos=0,s.tintpos=0),"window"===s.options.zoomType&&(s.Eboppos&&(s.lensTopPos=Math.max(s.nzHeight-s.zoomLens.height()-2*s.options.lensBorderSize,0)),s.Eroppos&&(s.lensLeftPos=s.nzWidth-s.zoomLens.width()-2*s.options.lensBorderSize)),"inner"===s.options.zoomType&&(s.Eboppos&&(s.lensTopPos=Math.max(s.nzHeight-2*s.options.lensBorderSize,0)),s.Eroppos&&(s.lensLeftPos=s.nzWidth-s.nzWidth-2*s.options.lensBorderSize)),"lens"===s.options.zoomType&&(s.windowLeftPos=String(-1*((e.pageX-s.nzOffset.left)*s.widthRatio-s.zoomLens.width()/2)),s.windowTopPos=String(-1*((e.pageY-s.nzOffset.top)*s.heightRatio-s.zoomLens.height()/2)),s.zoomLens.css("background-position",s.windowLeftPos+"px "+s.windowTopPos+"px"),s.changeBgSize&&(s.nzHeight>s.nzWidth?("lens"===s.options.zoomType&&s.zoomLens.css("background-size",s.largeWidth/s.newvalueheight+"px "+s.largeHeight/s.newvalueheight+"px"),s.zoomWindow.css("background-size",s.largeWidth/s.newvalueheight+"px "+s.largeHeight/s.newvalueheight+"px")):("lens"===s.options.zoomType&&s.zoomLens.css("background-size",s.largeWidth/s.newvaluewidth+"px "+s.largeHeight/s.newvaluewidth+"px"),s.zoomWindow.css("background-size",s.largeWidth/s.newvaluewidth+"px "+s.largeHeight/s.newvaluewidth+"px")),s.changeBgSize=!1),s.setWindowPosition(e)),s.options.tint&&"inner"!==s.options.zoomType&&s.setTintPosition(e),"window"===s.options.zoomType&&s.setWindowPosition(e),"inner"===s.options.zoomType&&s.setWindowPosition(e),s.options.showLens&&(s.fullwidth&&"lens"!==s.options.zoomType&&(s.lensLeftPos=0),s.zoomLens.css({left:s.lensLeftPos+"px",top:s.lensTopPos+"px"})))},showHideZoomContainer:function(e){"show"===e&&this.zoomContainer&&this.zoomContainer.show(),"hide"===e&&this.zoomContainer&&this.zoomContainer.hide()},showHideWindow:function(e){var t=this;"show"===e&&!t.isWindowActive&&t.zoomWindow&&(t.options.onShow(t),t.options.zoomWindowFadeIn?t.zoomWindow.stop(!0,!0,!1).fadeIn(t.options.zoomWindowFadeIn):t.zoomWindow.show(),t.isWindowActive=!0),"hide"===e&&t.isWindowActive&&(t.options.zoomWindowFadeOut?t.zoomWindow.stop(!0,!0).fadeOut(t.options.zoomWindowFadeOut,function(){t.loop&&(clearInterval(t.loop),t.loop=!1)}):t.zoomWindow.hide(),t.isWindowActive=!1)},showHideLens:function(e){var t=this;"show"===e&&(t.isLensActive||(t.options.lensFadeIn&&t.zoomLens?t.zoomLens.stop(!0,!0,!1).fadeIn(t.options.lensFadeIn):t.zoomLens.show(),t.isLensActive=!0)),"hide"===e&&t.isLensActive&&(t.options.lensFadeOut?t.zoomLens.stop(!0,!0).fadeOut(t.options.lensFadeOut):t.zoomLens.hide(),t.isLensActive=!1)},showHideTint:function(e){var t=this;"show"===e&&!t.isTintActive&&t.zoomTint&&(t.options.zoomTintFadeIn?t.zoomTint.css("opacity",t.options.tintOpacity).animate().stop(!0,!0).fadeIn("slow"):(t.zoomTint.css("opacity",t.options.tintOpacity).animate(),t.zoomTint.show()),t.isTintActive=!0),"hide"===e&&t.isTintActive&&(t.options.zoomTintFadeOut?t.zoomTint.stop(!0,!0).fadeOut(t.options.zoomTintFadeOut):t.zoomTint.hide(),t.isTintActive=!1)},setLensPosition:function(e){},setWindowPosition:function(e){var t,i=this;if(isNaN(i.options.zoomWindowPosition))i.externalContainer=c(i.options.zoomWindowPosition),i.externalContainer.length||(i.externalContainer=c("#"+i.options.zoomWindowPosition)),i.externalContainerWidth=i.externalContainer.width(),i.externalContainerHeight=i.externalContainer.height(),i.externalContainerOffset=i.externalContainer.offset(),i.windowOffsetTop=i.externalContainerOffset.top,i.windowOffsetLeft=i.externalContainerOffset.left;else switch(i.options.zoomWindowPosition){case 1:i.windowOffsetTop=i.options.zoomWindowOffsetY,i.windowOffsetLeft=+i.nzWidth;break;case 2:i.options.zoomWindowHeight>i.nzHeight?(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=i.nzWidth):c.noop();break;case 3:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize,i.windowOffsetLeft=i.nzWidth;break;case 4:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=i.nzWidth;break;case 5:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 6:i.options.zoomWindowHeight>i.nzHeight?(i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize)):c.noop();break;case 7:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=0;break;case 8:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 9:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 10:i.options.zoomWindowHeight>i.nzHeight?(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize)):c.noop();break;case 11:i.windowOffsetTop=i.options.zoomWindowOffsetY,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 12:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 13:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=0;break;case 14:i.options.zoomWindowHeight>i.nzHeight?(i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize)):c.noop();break;case 15:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 16:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=i.nzWidth;break;default:i.windowOffsetTop=i.options.zoomWindowOffsetY,i.windowOffsetLeft=i.nzWidth}i.isWindowSet=!0,i.windowOffsetTop=i.windowOffsetTop+i.options.zoomWindowOffsetY,i.windowOffsetLeft=i.windowOffsetLeft+i.options.zoomWindowOffsetX,i.zoomWindow.css({top:i.windowOffsetTop,left:i.windowOffsetLeft}),"inner"===i.options.zoomType&&i.zoomWindow.css({top:0,left:0}),i.windowLeftPos=String(-1*((e.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2)),i.windowTopPos=String(-1*((e.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2)),i.Etoppos&&(i.windowTopPos=0),i.Eloppos&&(i.windowLeftPos=0),i.Eboppos&&(i.windowTopPos=-1*(i.largeHeight/i.currentZoomLevel-i.zoomWindow.height())),i.Eroppos&&(i.windowLeftPos=-1*(i.largeWidth/i.currentZoomLevel-i.zoomWindow.width())),i.fullheight&&(i.windowTopPos=0),i.fullwidth&&(i.windowLeftPos=0),"window"!==i.options.zoomType&&"inner"!==i.options.zoomType||(1===i.zoomLock&&(i.widthRatio<=1&&(i.windowLeftPos=0),i.heightRatio<=1&&(i.windowTopPos=0)),"window"===i.options.zoomType&&(i.largeHeight<i.options.zoomWindowHeight&&(i.windowTopPos=0),i.largeWidth<i.options.zoomWindowWidth&&(i.windowLeftPos=0)),i.options.easing?(i.xp||(i.xp=0),i.yp||(i.yp=0),t=16,Number.isInteger(parseInt(i.options.easing))&&(t=parseInt(i.options.easing)),i.loop||(i.loop=setInterval(function(){i.xp+=(i.windowLeftPos-i.xp)/i.options.easingAmount,i.yp+=(i.windowTopPos-i.yp)/i.options.easingAmount,i.scrollingLock?(clearInterval(i.loop),i.xp=i.windowLeftPos,i.yp=i.windowTopPos,i.xp=-1*((e.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2),i.yp=-1*((e.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2),i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"===i.options.zoomType&&i.zoomLens.css("background-size",i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"),i.zoomWindow.css("background-size",i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px")):("lens"!==i.options.zoomType&&i.zoomLens.css("background-size",i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvalueheight+"px"),i.zoomWindow.css("background-size",i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px")),i.changeBgSize=!1),i.zoomWindow.css("background-position",i.windowLeftPos+"px "+i.windowTopPos+"px"),i.scrollingLock=!1,i.loop=!1):Math.round(Math.abs(i.xp-i.windowLeftPos)+Math.abs(i.yp-i.windowTopPos))<1?(clearInterval(i.loop),i.zoomWindow.css("background-position",i.windowLeftPos+"px "+i.windowTopPos+"px"),i.loop=!1):(i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"===i.options.zoomType&&i.zoomLens.css("background-size",i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"),i.zoomWindow.css("background-size",i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px")):("lens"!==i.options.zoomType&&i.zoomLens.css("background-size",i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"),i.zoomWindow.css("background-size",i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px")),i.changeBgSize=!1),i.zoomWindow.css("background-position",i.xp+"px "+i.yp+"px"))},t))):(i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"===i.options.zoomType&&i.zoomLens.css("background-size",i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"),i.zoomWindow.css("background-size",i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px")):("lens"===i.options.zoomType&&i.zoomLens.css("background-size",i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"),i.largeHeight/i.newvaluewidth<i.options.zoomWindowHeight?i.zoomWindow.css("background-size",i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"):i.zoomWindow.css("background-size",i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px")),i.changeBgSize=!1),i.zoomWindow.css("background-position",i.windowLeftPos+"px "+i.windowTopPos+"px")))},setTintPosition:function(e){var t=this,i=t.zoomLens.width(),s=t.zoomLens.height();t.nzOffset=t.$elem.offset(),t.tintpos=String(-1*(e.pageX-t.nzOffset.left-i/2)),t.tintposy=String(-1*(e.pageY-t.nzOffset.top-s/2)),t.Etoppos&&(t.tintposy=0),t.Eloppos&&(t.tintpos=0),t.Eboppos&&(t.tintposy=-1*(t.nzHeight-s-2*t.options.lensBorderSize)),t.Eroppos&&(t.tintpos=-1*(t.nzWidth-i-2*t.options.lensBorderSize)),t.options.tint&&(t.fullheight&&(t.tintposy=0),t.fullwidth&&(t.tintpos=0),t.zoomTintImage.css({left:t.tintpos+"px",top:t.tintposy+"px"}))},swaptheimage:function(e,t){var i,s=this,n=new Image;s.options.loadingIcon&&!s.spinner?(i="background: url('"+s.options.loadingIcon+"') no-repeat center;height:"+s.nzHeight+"px;width:"+s.nzWidth+"px;z-index: 2000;position: absolute; background-position: center center;","inner"===s.options.zoomType&&(i+="top: 0px;"),s.spinner=c('<div class="ezp-spinner" style="'+i+'"></div>'),s.$elem.after(s.spinner)):s.spinner&&s.spinner.show(),s.options.onImageSwap(s.$elem),n.onload=function(){s.largeWidth=n.width,s.largeHeight=n.height,s.zoomImage=t,s.zoomWindow.css("background-size",s.largeWidth+"px "+s.largeHeight+"px"),s.swapAction(e,t)},s.setImageSource(n,t)},swapAction:function(e,t){var i,s,n,a=this,o=a.$elem.width(),r=a.$elem.height(),l=new Image;l.onload=function(){a.nzHeight=l.height,a.nzWidth=l.width,a.options.onImageSwapComplete(a.$elem),a.doneCallback()},a.setImageSource(l,e),a.currentZoomLevel=a.options.zoomLevel,a.options.maxZoomLevel=!1,"lens"===a.options.zoomType&&a.zoomLens.css("background-image",'url("'+t+'")'),"window"===a.options.zoomType&&a.zoomWindow.css("background-image",'url("'+t+'")'),"inner"===a.options.zoomType&&a.zoomWindow.css("background-image",'url("'+t+'")'),a.currentImage=t,a.options.imageCrossfade?(i=(s=a.$elem).clone(),a.$elem.attr("src",e),a.$elem.after(i),i.stop(!0).fadeOut(a.options.imageCrossfade,function(){c(this).remove()}),a.$elem.width("auto").removeAttr("width"),a.$elem.height("auto").removeAttr("height"),s.fadeIn(a.options.imageCrossfade),a.options.tint&&"inner"!==a.options.zoomType&&(s=(i=a.zoomTintImage).clone(),a.zoomTintImage.attr("src",t),a.zoomTintImage.after(s),s.stop(!0).fadeOut(a.options.imageCrossfade,function(){c(this).remove()}),i.fadeIn(a.options.imageCrossfade),a.zoomTint.css({height:r,width:o})),a.zoomContainer.css({height:r,width:o}),"inner"===a.options.zoomType&&(a.options.constrainType||(a.zoomWrap.parent().css({height:r,width:o}),a.zoomWindow.css({height:r,width:o})))):(a.$elem.attr("src",e),a.options.tint&&(a.zoomTintImage.attr("src",t),a.zoomTintImage.attr("height",r),a.zoomTintImage.css("height",r),a.zoomTint.css("height",r)),a.zoomContainer.css({height:r,width:o})),a.options.imageCrossfade&&a.zoomWrap.css({height:r,width:o}),a.options.constrainType&&("height"===a.options.constrainType&&(n={height:a.options.constrainSize,width:"auto"},a.zoomContainer.css(n),a.options.imageCrossfade?(a.zoomWrap.css(n),a.constwidth=a.zoomWrap.width()):(a.$elem.css(n),a.constwidth=o),n={height:a.options.constrainSize,width:a.constwidth},"inner"===a.options.zoomType&&(a.zoomWrap.parent().css(n),a.zoomWindow.css(n)),a.options.tint&&(a.tintContainer.css(n),a.zoomTint.css(n),a.zoomTintImage.css(n))),"width"===a.options.constrainType&&(n={height:"auto",width:a.options.constrainSize},a.zoomContainer.css(n),a.options.imageCrossfade?(a.zoomWrap.css(n),a.constheight=a.zoomWrap.height()):(a.$elem.css(n),a.constheight=r),r={height:a.constheight,width:a.options.constrainSize},"inner"===a.options.zoomType&&(a.zoomWrap.parent().css(r),a.zoomWindow.css(r)),a.options.tint&&(a.tintContainer.css(r),a.zoomTint.css(r),a.zoomTintImage.css(r))))},doneCallback:function(){var e=this;e.options.loadingIcon&&e.spinner&&e.spinner.length&&e.spinner.hide(),e.nzOffset=e.$elem.offset(),e.nzWidth=e.$elem.width(),e.nzHeight=e.$elem.height(),e.currentZoomLevel=e.options.zoomLevel,e.widthRatio=e.largeWidth/e.nzWidth,e.heightRatio=e.largeHeight/e.nzHeight,"window"===e.options.zoomType&&(e.nzHeight<e.options.zoomWindowHeight/e.heightRatio?e.lensHeight=e.nzHeight:e.lensHeight=String(e.options.zoomWindowHeight/e.heightRatio),e.nzWidth<e.options.zoomWindowWidth?e.lensWidth=e.nzWidth:e.lensWidth=e.options.zoomWindowWidth/e.widthRatio,e.zoomLens&&e.zoomLens.css({width:e.lensWidth,height:e.lensHeight}))},getCurrentImage:function(){return this.zoomImage},getGalleryList:function(){var t=this;return t.gallerylist=[],t.options.gallery?c("#"+t.options.gallery+" a").each(function(){var e="";c(this).data(t.options.attrImageZoomSrc)?e=c(this).data(t.options.attrImageZoomSrc):c(this).data("image")&&(e=c(this).data("image")),e===t.zoomImage?t.gallerylist.unshift({href:""+e,title:c(this).find("img").attr("title")}):t.gallerylist.push({href:""+e,title:c(this).find("img").attr("title")})}):t.gallerylist.push({href:""+t.zoomImage,title:c(this).find("img").attr("title")}),t.gallerylist},changeZoomLevel:function(e){var t=this;t.scrollingLock=!0,t.newvalue=parseFloat(e).toFixed(2);var i=t.newvalue,s=t.largeHeight/(t.options.zoomWindowHeight/t.nzHeight*t.nzHeight),e=t.largeWidth/(t.options.zoomWindowWidth/t.nzWidth*t.nzWidth);"inner"!==t.options.zoomType&&(s<=i?(t.heightRatio=t.largeHeight/s/t.nzHeight,t.newvalueheight=s,t.fullheight=!0):(t.heightRatio=t.largeHeight/i/t.nzHeight,t.newvalueheight=i,t.fullheight=!1),e<=i?(t.widthRatio=t.largeWidth/e/t.nzWidth,t.newvaluewidth=e,t.fullwidth=!0):(t.widthRatio=t.largeWidth/i/t.nzWidth,t.newvaluewidth=i,t.fullwidth=!1),"lens"===t.options.zoomType&&(s<=i?(t.fullwidth=!0,t.newvaluewidth=s):(t.widthRatio=t.largeWidth/i/t.nzWidth,t.newvaluewidth=i,t.fullwidth=!1))),"inner"===t.options.zoomType&&((s=parseFloat(t.largeHeight/t.nzHeight).toFixed(2))<=(i=(e=parseFloat(t.largeWidth/t.nzWidth).toFixed(2))<(i=s<i?s:i)?e:i)?(t.heightRatio=t.largeHeight/i/t.nzHeight,t.newvalueheight=s<i?s:i,t.fullheight=!0):(t.heightRatio=t.largeHeight/i/t.nzHeight,t.newvalueheight=s<i?s:i,t.fullheight=!1),e<=i?(t.widthRatio=t.largeWidth/i/t.nzWidth,t.newvaluewidth=e<i?e:i,t.fullwidth=!0):(t.widthRatio=t.largeWidth/i/t.nzWidth,t.newvaluewidth=i,t.fullwidth=!1));i=!1;"inner"===t.options.zoomType&&(t.nzWidth>=t.nzHeight&&(t.newvaluewidth<=e?i=!0:(t.fullheight=!(i=!1),t.fullwidth=!0)),t.nzHeight>t.nzWidth&&(t.newvaluewidth<=e?i=!0:(t.fullheight=!(i=!1),t.fullwidth=!0))),(i="inner"!==t.options.zoomType?!0:i)&&(t.zoomLock=0,t.changeZoom=!0,t.options.zoomWindowHeight/t.heightRatio<=t.nzHeight&&(t.currentZoomLevel=t.newvalueheight,"lens"!==t.options.zoomType&&"inner"!==t.options.zoomType&&(t.changeBgSize=!0,t.zoomLens.css("height",String(t.options.zoomWindowHeight/t.heightRatio)+"px")),"lens"!==t.options.zoomType&&"inner"!==t.options.zoomType||(t.changeBgSize=!0)),t.options.zoomWindowWidth/t.widthRatio<=t.nzWidth&&("inner"!==t.options.zoomType&&t.newvaluewidth>t.newvalueheight&&(t.currentZoomLevel=t.newvaluewidth),"lens"!==t.options.zoomType&&"inner"!==t.options.zoomType&&(t.changeBgSize=!0,t.zoomLens.css("width",String(t.options.zoomWindowWidth/t.widthRatio)+"px")),"lens"!==t.options.zoomType&&"inner"!==t.options.zoomType||(t.changeBgSize=!0)),"inner"===t.options.zoomType&&(t.changeBgSize=!0,(t.nzWidth>t.nzHeight||t.nzHeight>=t.nzWidth)&&(t.currentZoomLevel=t.newvaluewidth))),t.setPosition(t.currentLoc)},closeAll:function(){this.zoomWindow&&this.zoomWindow.hide(),this.zoomLens&&this.zoomLens.hide(),this.zoomTint&&this.zoomTint.hide()},changeState:function(e){"enable"===e&&(this.options.zoomEnabled=!0),"disable"===e&&(this.options.zoomEnabled=!1)},responsiveConfig:function(e){return e.respond&&0<e.respond.length?c.extend({},e,this.configByScreenWidth(e)):e},configByScreenWidth:function(e){var t=c(s).width(),i=c.grep(e.respond,function(e){e=e.range.split("-");return t>=e[0]&&t<=e[1]});return 0<i.length?i[0]:e}};c.fn.ezPlus=function(t){return this.each(function(){var e=Object.create(i);e.init(t,this),c.data(this,"ezPlus",e)})},c.fn.ezPlus.options={attrImageZoomSrc:"zoom-image",borderColour:"#888",borderSize:4,constrainSize:!1,constrainType:!1,containLensZoom:!1,cursor:"inherit",debug:!1,easing:!1,easingAmount:12,enabled:!0,gallery:!1,galleryActiveClass:"zoomGalleryActive",gallerySelector:!1,galleryItem:"a",imageCrossfade:!1,lensBorderColour:"#000",lensBorderSize:1,lensColour:"white",lensFadeIn:!1,lensFadeOut:!1,lensOpacity:.4,lensShape:"square",lensSize:200,lenszoom:!1,loadingIcon:!1,mantainZoomAspectRatio:!1,maxZoomLevel:!1,minZoomLevel:!1,onComplete:c.noop,onDestroy:c.noop,onImageClick:c.noop,onImageSwap:c.noop,onImageSwapComplete:c.noop,onShow:c.noop,onZoomedImageLoaded:c.noop,preloading:1,respond:[],responsive:!0,scrollZoom:!1,scrollZoomIncrement:.1,showLens:!0,tint:!1,tintColour:"#333",tintOpacity:.4,touchEnabled:!0,zoomActivation:"hover",zoomContainerAppendTo:"body",zoomId:-1,zoomLevel:1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,zoomType:"window",zoomWindowAlwaysShow:!1,zoomWindowBgColour:"#fff",zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowHeight:400,zoomWindowOffsetX:0,zoomWindowOffsetY:0,zoomWindowPosition:1,zoomWindowWidth:400,zoomEnabled:!0,zIndex:999}}(jQuery,window,document),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e=e||self).BootstrapTable=t(e.jQuery)}(this,function(N){"use strict";N=N&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e){return e&&e.Math==Math&&e}function c(e){try{return!!e()}catch(e){return!0}}function g(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function d(e){return x(y(e))}function s(e){return S?_.createElement(e):{}}function u(t,i){try{P(p,t,i)}catch(e){p[t]=i}return i}var p=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||Function("return this")(),h=!c(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,f={f:a&&!n.call({1:2},1)?function(e){e=a(this,e);return!!e&&e.enumerable}:n},o={}.toString,r=function(e){return o.call(e).slice(8,-1)},l="".split,x=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==r(e)?l.call(e,""):Object(e)}:Object,y=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},v=function(e,t){if(!m(e))return e;var i,s;if(t&&"function"==typeof(i=e.toString)&&!m(s=i.call(e)))return s;if("function"==typeof(i=e.valueOf)&&!m(s=i.call(e)))return s;if(!t&&"function"==typeof(i=e.toString)&&!m(s=i.call(e)))return s;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,w=function(e,t){return b.call(e,t)},_=p.document,S=m(_)&&m(_.createElement),T=!h&&!c(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}),C=Object.getOwnPropertyDescriptor,E={f:h?C:function(e,t){if(e=d(e),t=v(t,!0),T)try{return C(e,t)}catch(e){}if(w(e,t))return g(!f.f.call(e,t),e[t])}},k=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},$=Object.defineProperty,A={f:h?$:function(e,t,i){if(k(e),t=v(t,!0),k(i),T)try{return $(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},P=h?function(e,t,i){return A.f(e,t,g(1,i))}:function(e,t,i){return e[t]=i,e},I="__core-js_shared__",M=p[I]||u(I,{}),O=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(e){return O.call(e)});function L(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++X+K).toString(36)}function z(e){return Q[e]||(Q[e]=L(e))}var D,j,H,B,R,F,q,W,V=M.inspectSource,U=p.WeakMap,Y="function"==typeof U&&/native code/.test(V(U)),G=t(function(e){(e.exports=function(e,t){return M[e]||(M[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),X=0,K=Math.random(),Q=G("keys"),Z={},J=p.WeakMap;q=Y?(D=new J,j=D.get,H=D.has,B=D.set,R=function(e,t){return B.call(D,e,t),t},F=function(e){return j.call(D,e)||{}},function(e){return H.call(D,e)}):(W=z("state"),Z[W]=!0,R=function(e,t){return P(e,W,t),t},F=function(e){return w(e,W)?e[W]:{}},function(e){return w(e,W)});function ee(e){return"function"==typeof e?e:void 0}function te(e,t){return arguments.length<2?ee(me[e])||ee(p[e]):me[e]&&me[e][t]||p[e]&&p[e][t]}function ie(e){return 0<e?be(ye(e),9007199254740991):0}function se(e,t){return(e=ye(e))<0?we(e+t,0):xe(e,t)}function ne(r){return function(e,t,i){var s,n=d(e),a=ie(n.length),o=se(i,a);if(r&&t!=t){for(;o<a;)if((s=n[o++])!=s)return!0}else for(;o<a;o++)if((r||o in n)&&n[o]===t)return r||o||0;return!r&&-1}}function ae(e,t){var i,s=d(e),n=0,a=[];for(i in s)!w(Z,i)&&w(s,i)&&a.push(i);for(;t.length>n;)w(s,i=t[n++])&&(~_e(a,i)||a.push(i));return a}function oe(e,t){for(var i=ke(t),s=A.f,n=E.f,a=0;a<i.length;a++){var o=i[a];w(e,o)||s(e,o,n(t,o))}}function re(e,t){return(e=Pe[Ae(e)])==Me||e!=Ie&&("function"==typeof t?c(t):!!t)}function le(e,t){var i,s,n,a,o=e.target,r=e.global,l=e.stat;if(i=r?p:l?p[o]||u(o,{}):(p[o]||{}).prototype)for(s in t){if(n=t[s],a=e.noTargetGet?(a=Le(i,s))&&a.value:i[s],!Oe(r?s:o+(l?".":"#")+s,e.forced)&&void 0!==a){if(typeof n==typeof a)continue;oe(n,a)}(e.sham||a&&a.sham)&&P(n,"sham",!0),fe(i,s,n,e)}}function ce(e){return Object(y(e))}function de(){}function ue(e){return"<script>"+e+"<\/script>"}var pe,he={set:R,get:F,has:q,enforce:function(e){return q(e)?F(e):R(e,{})},getterFor:function(i){return function(e){var t;if(!m(e)||(t=F(e)).type!==i)throw TypeError("Incompatible receiver, "+i+" required");return t}}},fe=t(function(e){var t=he.get,o=he.enforce,r=String(String).split("String");(e.exports=function(e,t,i,s){var n=!!s&&!!s.unsafe,a=!!s&&!!s.enumerable,s=!!s&&!!s.noTargetGet;"function"==typeof i&&("string"!=typeof t||w(i,"name")||P(i,"name",t),o(i).source=r.join("string"==typeof t?t:"")),e!==p?(n?!s&&e[t]&&(a=!0):delete e[t],a?e[t]=i:P(e,t,i)):a?e[t]=i:u(t,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||V(this)})}),me=p,ge=Math.ceil,ve=Math.floor,ye=function(e){return isNaN(e=+e)?0:(0<e?ve:ge)(e)},be=Math.min,we=Math.max,xe=Math.min,e={includes:ne(!0),indexOf:ne(!1)},_e=e.indexOf,Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Te=Se.concat("length","prototype"),Ce={f:Object.getOwnPropertyNames||function(e){return ae(e,Te)}},Ee={f:Object.getOwnPropertySymbols},ke=te("Reflect","ownKeys")||function(e){var t=Ce.f(k(e)),i=Ee.f;return i?t.concat(i(e)):t},$e=/#|\.prototype\./,Ae=re.normalize=function(e){return String(e).replace($e,".").toLowerCase()},Pe=re.data={},Ie=re.NATIVE="N",Me=re.POLYFILL="P",Oe=re,Le=E.f,ze=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())}),n=ze&&!Symbol.sham&&"symbol"==typeof Symbol(),De=Array.isArray||function(e){return"Array"==r(e)},Ne=Object.keys||function(e){return ae(e,Se)},je=h?Object.defineProperties:function(e,t){k(e);for(var i,s=Ne(t),n=s.length,a=0;a<n;)A.f(e,i=s[a++],t[i]);return e},He=te("document","documentElement"),Be=z("IE_PROTO"),Re=function(){try{pe=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Re=pe?function(e){e.write(ue("")),e.close();var t=e.parentWindow.Object;return e=null,t}(pe):((t=s("iframe")).style.display="none",He.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ue("document.F=Object")),e.close(),e.F);for(var i=Se.length;i--;)delete Re.prototype[Se[i]];return Re()};Z[Be]=!0;function Fe(e){return w(at,e)||(ze&&w(ot,e)?at[e]=ot[e]:at[e]=rt("Symbol."+e)),at[e]}function qe(e){var t=me.Symbol||(me.Symbol={});w(t,e)||ct(t,e,{value:lt.f(e)})}function We(e,t,i){e&&!w(e=i?e:e.prototype,ut)&&dt(e,ut,{configurable:!0,value:t})}function Ve(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}function Ue(e,t){var i;return new(void 0===(i=De(e)&&("function"==typeof(i=e.constructor)&&(i===Array||De(i.prototype))||m(i)&&null===(i=i[pt]))?void 0:i)?Array:i)(0===t?0:t)}function Ye(f){var m=1==f,g=2==f,v=3==f,y=4==f,b=6==f,w=5==f||b;return function(e,t,i,s){for(var n,a,o,r,l=ce(e),c=x(l),d=(r=i,Ve(o=t),void 0===r?o:function(e,t,i){return o.call(r,e,t,i)}),u=ie(c.length),p=0,s=s||Ue,h=m?s(e,u):g?s(e,0):void 0;p<u;p++)if((w||p in c)&&(a=d(n=c[p],p,l),f))if(m)h[p]=a;else if(a)switch(f){case 3:return!0;case 5:return n;case 6:return p;case 2:ht.call(h,n)}else if(y)return!1;return b?-1:v||y?y:h}}function Ge(e,t){var i=Et[e]=tt(wt.prototype);return vt(i,{type:gt,tag:e,description:t}),h||(i.description=t),i}function Xe(e,t,i){return e===bt&&Xe(kt,t,i),k(e),t=v(t,!0),k(i),w(Et,t)?(i.enumerable?(w(e,mt)&&e[mt][t]&&(e[mt][t]=!1),i=tt(i,{enumerable:g(0,!1)})):(w(e,mt)||St(e,mt,g(1,{})),e[mt][t]=!0),It(e,t,i)):St(e,t,i)}function Ke(t,e){k(t);var i=d(e),e=Ne(i).concat(et(i));return ft(e,function(e){h&&!Qe.call(i,e)||Xe(t,e,i[e])}),t}function Qe(e){var t=v(e,!0),e=Ct.call(this,t);return!(this===bt&&w(Et,t)&&!w(kt,t))&&(!(e||!w(this,t)||!w(Et,t)||w(this,mt)&&this[mt][t])||e)}function Ze(e,t){var i=d(e),e=v(t,!0);if(i!==bt||!w(Et,e)||w(kt,e)){t=_t(i,e);return!t||!w(Et,e)||w(i,mt)&&i[mt][e]||(t.enumerable=!0),t}}function Je(e){var e=Tt(d(e)),t=[];return ft(e,function(e){w(Et,e)||w(Z,e)||t.push(e)}),t}function et(e){var t=e===bt,e=Tt(t?kt:d(e)),i=[];return ft(e,function(e){!w(Et,e)||t&&!w(bt,e)||i.push(Et[e])}),i}var tt=Object.create||function(e,t){var i;return null!==e?(de.prototype=k(e),i=new de,de.prototype=null,i[Be]=e):i=Re(),void 0===t?i:je(i,t)},it=Ce.f,st={}.toString,nt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],I={f:function(e){return nt&&"[object Window]"==st.call(e)?function(e){try{return it(e)}catch(e){return nt.slice()}}(e):it(d(e))}},at=G("wks"),ot=p.Symbol,rt=n?ot:L,lt={f:Fe},ct=A.f,dt=A.f,ut=Fe("toStringTag"),pt=Fe("species"),ht=[].push,U={forEach:Ye(0),map:Ye(1),filter:Ye(2),some:Ye(3),every:Ye(4),find:Ye(5),findIndex:Ye(6)},ft=U.forEach,mt=z("hidden"),gt="Symbol",Y=Fe("toPrimitive"),vt=he.set,yt=he.getterFor(gt),bt=Object.prototype,wt=p.Symbol,xt=te("JSON","stringify"),_t=E.f,St=A.f,Tt=I.f,Ct=f.f,Et=G("symbols"),kt=G("op-symbols"),$t=G("string-to-symbol-registry"),At=G("symbol-to-string-registry"),J=G("wks"),G=p.QObject,Pt=!G||!G.prototype||!G.prototype.findChild,It=h&&c(function(){return 7!=tt(St({},"a",{get:function(){return St(this,"a",{value:7}).a}})).a})?function(e,t,i){var s=_t(bt,t);s&&delete bt[t],St(e,t,i),s&&e!==bt&&St(bt,t,s)}:St,Mt=ze&&"symbol"==typeof wt.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof wt};ze||(fe((wt=function(){if(this instanceof wt)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=L(e),i=function(e){this===bt&&i.call(kt,e),w(this,mt)&&w(this[mt],t)&&(this[mt][t]=!1),It(this,t,g(1,e))};return h&&Pt&&It(bt,t,{configurable:!0,set:i}),Ge(t,e)}).prototype,"toString",function(){return yt(this).tag}),f.f=Qe,A.f=Xe,E.f=Ze,Ce.f=I.f=Je,Ee.f=et,h&&(St(wt.prototype,"description",{configurable:!0,get:function(){return yt(this).description}}),fe(bt,"propertyIsEnumerable",Qe,{unsafe:!0}))),n||(lt.f=function(e){return Ge(Fe(e),e)}),le({global:!0,wrap:!0,forced:!ze,sham:!ze},{Symbol:wt}),ft(Ne(J),function(e){qe(e)}),le({target:gt,stat:!0,forced:!ze},{for:function(e){var t=String(e);if(w($t,t))return $t[t];e=wt(t);return $t[t]=e,At[e]=t,e},keyFor:function(e){if(!Mt(e))throw TypeError(e+" is not a symbol");if(w(At,e))return At[e]},useSetter:function(){Pt=!0},useSimple:function(){Pt=!1}}),le({target:"Object",stat:!0,forced:!ze,sham:!h},{create:function(e,t){return void 0===t?tt(e):Ke(tt(e),t)},defineProperty:Xe,defineProperties:Ke,getOwnPropertyDescriptor:Ze}),le({target:"Object",stat:!0,forced:!ze},{getOwnPropertyNames:Je,getOwnPropertySymbols:et}),le({target:"Object",stat:!0,forced:c(function(){Ee.f(1)})},{getOwnPropertySymbols:function(e){return Ee.f(ce(e))}}),xt&&(J=!ze||c(function(){var e=wt();return"[null]"!=xt([e])||"{}"!=xt({a:e})||"{}"!=xt(Object(e))}),le({target:"JSON",stat:!0,forced:J},{stringify:function(e,t,i){for(var s,n=[e],a=1;a<arguments.length;)n.push(arguments[a++]);if((m(s=t)||void 0!==e)&&!Mt(e))return De(t)||(t=function(e,t){if("function"==typeof s&&(t=s.call(this,e,t)),!Mt(t))return t}),n[1]=t,xt.apply(null,n)}})),wt.prototype[Y]||P(wt.prototype,Y,wt.prototype.valueOf),We(wt,gt),Z[mt]=!0;var Ot,Lt,zt,Dt,Nt,Y=A.f,jt=p.Symbol;!h||"function"!=typeof jt||"description"in jt.prototype&&void 0===jt().description||(Ot={},oe(Lt=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Lt?new jt(e):void 0===e?jt():jt(e);return""===e&&(Ot[t]=!0),t},jt),(Rt=Lt.prototype=jt.prototype).constructor=Lt,zt=Rt.toString,Dt="Symbol(test)"==String(jt("test")),Nt=/^Symbol\((.*)\)[^)]+$/,Y(Rt,"description",{configurable:!0,get:function(){var e=m(this)?this.valueOf():this,t=zt.call(e);if(w(Ot,e))return"";t=Dt?t.slice(7,-1):t.replace(Nt,"$1");return""===t?void 0:t}}),le({global:!0,forced:!0},{Symbol:Lt})),qe("iterator");function Ht(e,t,i){(t=v(t))in e?A.f(e,t,g(0,i)):e[t]=i}var Bt,Y=te("navigator","userAgent")||"",Rt=p.process,Rt=Rt&&Rt.versions,Rt=Rt&&Rt.v8;Rt?Gt=(Bt=Rt.split("."))[0]+Bt[1]:Y&&(!(Bt=Y.match(/Edge\/(\d+)/))||74<=Bt[1])&&(Bt=Y.match(/Chrome\/(\d+)/))&&(Gt=Bt[1]);function Ft(t){return 51<=qt||!c(function(){var e=[];return(e.constructor={})[Wt]=function(){return{foo:1}},1!==e[t](Boolean).foo})}var qt=Gt&&+Gt,Wt=Fe("species"),Vt=Fe("isConcatSpreadable"),Ut=9007199254740991,Yt="Maximum allowed index exceeded",Gt=51<=qt||!c(function(){var e=[];return e[Vt]=!1,e.concat()[0]!==e}),Y=Ft("concat");le({target:"Array",proto:!0,forced:!Gt||!Y},{concat:function(e){for(var t,i,s,n=ce(this),a=Ue(n,0),o=0,r=-1,l=arguments.length;r<l;r++)if(function(e){if(!m(e))return!1;var t=e[Vt];return void 0!==t?!!t:De(e)}(s=-1===r?n:arguments[r])){if(o+(i=ie(s.length))>Ut)throw TypeError(Yt);for(t=0;t<i;t++,o++)t in s&&Ht(a,o,s[t])}else{if(Ut<=o)throw TypeError(Yt);Ht(a,o++,s)}return a.length=o,a}});var Xt=U.filter,Gt=Ft("filter"),Y=Gt&&!c(function(){[].filter.call({length:-1,0:1},function(e){throw e})});le({target:"Array",proto:!0,forced:!Gt||!Y},{filter:function(e){return Xt(this,e,1<arguments.length?arguments[1]:void 0)}});var Kt=Fe("unscopables"),Qt=Array.prototype;null==Qt[Kt]&&A.f(Qt,Kt,{configurable:!0,value:tt(null)});function Zt(e){Qt[Kt][e]=!0}var Jt=U.find,ei=!0;"find"in[]&&Array(1).find(function(){ei=!1}),le({target:"Array",proto:!0,forced:ei},{find:function(e){return Jt(this,e,1<arguments.length?arguments[1]:void 0)}}),Zt("find");var ti=U.findIndex,ii=!0;"findIndex"in[]&&Array(1).findIndex(function(){ii=!1}),le({target:"Array",proto:!0,forced:ii},{findIndex:function(e){return ti(this,e,1<arguments.length?arguments[1]:void 0)}}),Zt("findIndex");var si=e.includes;le({target:"Array",proto:!0},{includes:function(e){return si(this,e,1<arguments.length?arguments[1]:void 0)}}),Zt("includes");function ni(e,t){var i=[][e];return!i||!c(function(){i.call(null,t||function(){throw 1},1)})}var ai=e.indexOf,oi=[].indexOf,ri=!!oi&&1/[1].indexOf(1,-0)<0,Y=ni("indexOf");le({target:"Array",proto:!0,forced:ri||Y},{indexOf:function(e){return ri?oi.apply(this,arguments)||0:ai(this,e,1<arguments.length?arguments[1]:void 0)}});var e=!c(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),li=z("IE_PROTO"),ci=Object.prototype,di=e?Object.getPrototypeOf:function(e){return e=ce(e),w(e,li)?e[li]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ci:null},Y=Fe("iterator"),e=!1;[].keys&&("next"in(hi=[].keys())?(Ci=di(di(hi)))!==Object.prototype&&(ki=Ci):e=!0),w(ki=null==ki?{}:ki,Y)||P(ki,Y,function(){return this});function ui(){return this}function pi(e,t,i,s,n,a,o){function r(e){if(e===n&&f)return f;if(!vi&&e in p)return p[e];switch(e){case"keys":case bi:case"entries":return function(){return new i(this,e)}}return function(){return new i(this)}}m=t+" Iterator",(d=i).prototype=tt(fi,{next:g(1,s)}),We(d,m,!1);var l,c,d=t+" Iterator",u=!1,p=e.prototype,h=p[yi]||p["@@iterator"]||n&&p[n],f=!vi&&h||r(n),m="Array"==t&&p.entries||h;if(m&&(e=di(m.call(new e)),gi!==Object.prototype&&e.next&&(di(e)!==gi&&(mi?mi(e,gi):"function"!=typeof e[yi]&&P(e,yi,ui)),We(e,d,!0))),n==bi&&h&&h.name!==bi&&(u=!0,f=function(){return h.call(this)}),p[yi]!==f&&P(p,yi,f),n)if(l={values:r(bi),keys:a?f:r("keys"),entries:r("entries")},o)for(c in l)!vi&&!u&&c in p||fe(p,c,l[c]);else le({target:t,proto:!0,forced:vi||u},l);return l}var hi={IteratorPrototype:ki,BUGGY_SAFARI_ITERATORS:e},fi=hi.IteratorPrototype,mi=Object.setPrototypeOf||("__proto__"in{}?function(){var i,s=!1,e={};try{(i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),s=e instanceof Array}catch(i){}return function(e,t){return k(e),function(e){if(!m(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(t),s?i.call(e,t):e.__proto__=t,e}}():void 0),gi=hi.IteratorPrototype,vi=hi.BUGGY_SAFARI_ITERATORS,yi=Fe("iterator"),bi="values",wi="Array Iterator",xi=he.set,_i=he.getterFor(wi),Si=pi(Array,"Array",function(e,t){xi(this,{type:wi,target:d(e),index:0,kind:t})},function(){var e=_i(this),t=e.target,i=e.kind,s=e.index++;return!t||s>=t.length?{value:e.target=void 0,done:!0}:"keys"==i?{value:s,done:!1}:"values"==i?{value:t[s],done:!1}:{value:[s,t[s]],done:!1}},"values");Zt("keys"),Zt("values"),Zt("entries");var Ti=[].join,Ci=x!=Object,Y=ni("join",",");le({target:"Array",proto:!0,forced:Ci||Y},{join:function(e){return Ti.call(d(this),void 0===e?",":e)}});var Ei=U.map,ki=Ft("map"),e=ki&&!c(function(){[].map.call({length:-1,0:1},function(e){throw e})});le({target:"Array",proto:!0,forced:!ki||!e},{map:function(e){return Ei(this,e,1<arguments.length?arguments[1]:void 0)}});var $i=[].reverse,hi=[1,2];le({target:"Array",proto:!0,forced:String(hi)===String(hi.reverse())},{reverse:function(){return De(this)&&(this.length=this.length),$i.call(this)}});var Ai=Fe("species"),Pi=[].slice,Ii=Math.max;le({target:"Array",proto:!0,forced:!Ft("slice")},{slice:function(e,t){var i,s,n,a=d(this),o=ie(a.length),r=se(e,o),l=se(void 0===t?o:t,o);if(De(a)&&((i="function"==typeof(i=a.constructor)&&(i===Array||De(i.prototype))||m(i)&&null===(i=i[Ai])?void 0:i)===Array||void 0===i))return Pi.call(a,r,l);for(s=new(void 0===i?Array:i)(Ii(l-r,0)),n=0;r<l;r++,n++)r in a&&Ht(s,n,a[r]);return s.length=n,s}});var Mi=[],Oi=Mi.sort,Ci=c(function(){Mi.sort(void 0)}),Y=c(function(){Mi.sort(null)}),ki=ni("sort");le({target:"Array",proto:!0,forced:Ci||!Y||ki},{sort:function(e){return void 0===e?Oi.call(ce(this)):Oi.call(ce(this),Ve(e))}});var Li=Math.max,zi=Math.min;le({target:"Array",proto:!0,forced:!Ft("splice")},{splice:function(e,t){var i,s,n,a,o,r,l=ce(this),c=ie(l.length),d=se(e,c),e=arguments.length;if(0===e?i=s=0:s=1===e?(i=0,c-d):(i=e-2,zi(Li(ye(t),0),c-d)),9007199254740991<c+i-s)throw TypeError("Maximum allowed length exceeded");for(n=Ue(l,s),a=0;a<s;a++)(o=d+a)in l&&Ht(n,a,l[o]);if(i<(n.length=s)){for(a=d;a<c-s;a++)r=a+i,(o=a+s)in l?l[r]=l[o]:delete l[r];for(a=c;c-s+i<a;a--)delete l[a-1]}else if(s<i)for(a=c-s;d<a;a--)r=a+i-1,(o=a+s-1)in l?l[r]=l[o]:delete l[r];for(a=0;a<i;a++)l[a+d]=arguments[a+2];return l.length=c-s+i,n}});function Di(t){return function(e){e=String(y(e));return 1&t&&(e=e.replace(Bi,"")),e=2&t?e.replace(Ri,""):e}}function Ni(e){var t,i,s,n,a,o,r,l=v(e,!1);if("string"==typeof l&&2<l.length)if(43===(t=(l=Wi(l)).charCodeAt(0))||45===t){if(88===(e=l.charCodeAt(2))||120===e)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:i=2,s=49;break;case 79:case 111:i=8,s=55;break;default:return+l}for(a=(n=l.slice(2)).length,o=0;o<a;o++)if((r=n.charCodeAt(o))<48||s<r)return NaN;return parseInt(n,i)}return+l}var ji=function(e,t,i){var s,n;return mi&&"function"==typeof(s=t.constructor)&&s!==i&&m(n=s.prototype)&&n!==i.prototype&&mi(e,n),e},Hi="\t\n\v\f\r                 \u2028\u2029\ufeff",e="["+Hi+"]",Bi=RegExp("^"+e+e+"*"),Ri=RegExp(e+e+"*$"),hi={start:Di(1),end:Di(2),trim:Di(3)},Ci=Ce.f,Fi=E.f,qi=A.f,Wi=hi.trim,Vi="Number",Ui=p.Number,Yi=Ui.prototype,Gi=r(tt(Yi))==Vi;if(Oe(Vi,!Ui(" 0o1")||!Ui("0b1")||Ui("+0x1"))){for(var Xi,Ki=function(e){var e=arguments.length<1?0:e,t=this;return t instanceof Ki&&(Gi?c(function(){Yi.valueOf.call(t)}):r(t)!=Vi)?ji(new Ui(Ni(e)),t,Ki):Ni(e)},Qi=h?Ci(Ui):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Zi=0;Qi.length>Zi;Zi++)w(Ui,Xi=Qi[Zi])&&!w(Ki,Xi)&&qi(Ki,Xi,Fi(Ui,Xi));(Ki.prototype=Yi).constructor=Ki,fe(p,Vi,Ki)}var Ji=Object.assign,es=Object.defineProperty,Y=!Ji||c(function(){if(h&&1!==Ji({b:1},Ji(es({},"a",{enumerable:!0,get:function(){es(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return 1;var e={},t={},i=Symbol(),s="abcdefghijklmnopqrst";return e[i]=7,s.split("").forEach(function(e){t[e]=e}),7!=Ji({},e)[i]||Ne(Ji({},t)).join("")!=s})?function(e,t){for(var i=ce(e),s=arguments.length,n=1,a=Ee.f,o=f.f;n<s;)for(var r,l=x(arguments[n++]),c=a?Ne(l).concat(a(l)):Ne(l),d=c.length,u=0;u<d;)r=c[u++],h&&!o.call(l,r)||(i[r]=l[r]);return i}:Ji;le({target:"Object",stat:!0,forced:Object.assign!==Y},{assign:Y});function ts(r){return function(e){for(var t,i=d(e),s=Ne(i),n=s.length,a=0,o=[];a<n;)t=s[a++],h&&!is.call(i,t)||o.push(r?[t,i[t]]:i[t]);return o}}var is=f.f,ss=[ts(!0),ts(!1)][0];le({target:"Object",stat:!0},{entries:function(e){return ss(e)}});ki={};ki[Fe("toStringTag")]="z";var e="[object z]"===String(ki),ns=Fe("toStringTag"),as="Arguments"==r(function(){return arguments}()),os=e?r:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(e=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),ns))?e:as?r(t):"Object"==(e=r(t))&&"function"==typeof t.callee?"Arguments":e};e||fe(Object.prototype,"toString",e?{}.toString:function(){return"[object "+os(this)+"]"},{unsafe:!0});var rs=hi.trim,ls=p.parseFloat,Ci=1/ls(Hi+"-0")!=-1/0?function(e){var t=rs(String(e)),e=ls(t);return 0===e&&"-"==t.charAt(0)?-0:e}:ls;le({global:!0,forced:parseFloat!=Ci},{parseFloat:Ci});var cs=hi.trim,ds=p.parseInt,us=/^[+-]?0[Xx]/,Y=8!==ds(Hi+"08")||22!==ds(Hi+"0x16")?function(e,t){e=cs(String(e));return ds(e,t>>>0||(us.test(e)?16:10))}:ds;le({global:!0,forced:parseInt!=Y},{parseInt:Y});var ps=Fe("match"),hs=function(e){var t;return m(e)&&(void 0!==(t=e[ps])?!!t:"RegExp"==r(e))},fs=function(){var e=k(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function ms(e,t){return RegExp(e,t)}var ki={UNSUPPORTED_Y:c(function(){var e=ms("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),BROKEN_CARET:c(function(){var e=ms("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},e=Fe("species"),gs=A.f,Ci=Ce.f,vs=he.set,ys=Fe("match"),bs=p.RegExp,ws=bs.prototype,xs=/a/g,_s=/a/g,Ss=new bs(xs)!==xs,Ts=ki.UNSUPPORTED_Y;if(h&&Oe("RegExp",!Ss||Ts||c(function(){return _s[ys]=!1,bs(xs)!=xs||bs(_s)==_s||"/a/i"!=bs(xs,"i")}))){for(var Cs=function(e,t){var i,s=this instanceof Cs,n=hs(e),a=void 0===t;if(!s&&n&&e.constructor===Cs&&a)return e;Ss?n&&!a&&(e=e.source):e instanceof Cs&&(a&&(t=fs.call(e)),e=e.source),Ts&&(i=!!t&&-1<t.indexOf("y"))&&(t=t.replace(/y/g,""));s=ji(Ss?new bs(e,t):bs(e,t),s?this:ws,Cs);return Ts&&i&&vs(s,{sticky:i}),s},Es=Ci(bs),ks=0;Es.length>ks;)!function(t){t in Cs||gs(Cs,t,{configurable:!0,get:function(){return bs[t]},set:function(e){bs[t]=e}})}(Es[ks++]);(ws.constructor=Cs).prototype=ws,fe(p,"RegExp",Cs)}Y=te("RegExp"),Ci=A.f,h&&Y&&!Y[e]&&Ci(Y,e,{configurable:!0,get:function(){return this}});var $s=RegExp.prototype.exec,As=String.prototype.replace,Ci=$s,Ps=(Y=/a/,e=/b*/g,$s.call(Y,"a"),$s.call(e,"a"),0!==Y.lastIndex||0!==e.lastIndex),Is=ki.UNSUPPORTED_Y||ki.BROKEN_CARET,Ms=void 0!==/()??/.exec("")[1],Os=Ci=Ps||Ms||Is?function(e){var t,i,s,n,a=this,o=Is&&a.sticky,r=fs.call(a),l=a.source,c=0,d=e;return o&&(-1===(r=r.replace("y","")).indexOf("g")&&(r+="g"),d=String(e).slice(a.lastIndex),0<a.lastIndex&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(l="(?: "+l+")",d=" "+d,c++),i=new RegExp("^(?:"+l+")",r)),Ms&&(i=new RegExp("^"+l+"$(?!\\s)",r)),Ps&&(t=a.lastIndex),s=$s.call(o?i:a,d),o?s?(s.input=s.input.slice(c),s[0]=s[0].slice(c),s.index=a.lastIndex,a.lastIndex+=s[0].length):a.lastIndex=0:Ps&&s&&(a.lastIndex=a.global?s.index+s[0].length:t),Ms&&s&&1<s.length&&As.call(s[0],i,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(s[n]=void 0)}),s}:Ci;le({target:"RegExp",proto:!0,forced:/./.exec!==Os},{exec:Os});var Ls=RegExp.prototype,zs=Ls.toString,ki=c(function(){return"/a/b"!=zs.call({source:"a",flags:"b"})}),Ci="toString"!=zs.name;(ki||Ci)&&fe(RegExp.prototype,"toString",function(){var e=k(this),t=String(e.source),i=e.flags;return"/"+t+"/"+String(void 0===i&&e instanceof RegExp&&!("flags"in Ls)?fs.call(e):i)},{unsafe:!0});function Ds(e){if(hs(e))throw TypeError("The method doesn't accept regular expressions");return e}function Ns(t){var i=/./;try{"/./"[t](i)}catch(e){try{return i[js]=!1,"/./"[t](i)}catch(t){}}return!1}var js=Fe("match");le({target:"String",proto:!0,forced:!Ns("includes")},{includes:function(e){return!!~String(y(this)).indexOf(Ds(e),1<arguments.length?arguments[1]:void 0)}});function Hs(a){return function(e,t){var i,s=String(y(e)),n=ye(t),e=s.length;return n<0||e<=n?a?"":void 0:(t=s.charCodeAt(n))<55296||56319<t||n+1===e||(i=s.charCodeAt(n+1))<56320||57343<i?a?s.charAt(n):t:a?s.slice(n,n+2):i-56320+(t-55296<<10)+65536}}var Ci={codeAt:Hs(!1),charAt:Hs(!0)},Bs=Ci.charAt,Rs="String Iterator",Fs=he.set,qs=he.getterFor(Rs);pi(String,"String",function(e){Fs(this,{type:Rs,string:String(e),index:0})},function(){var e=qs(this),t=e.string,i=e.index;return i>=t.length?{value:void 0,done:!0}:(i=Bs(t,i),e.index+=i.length,{value:i,done:!1})});function Ws(i,e,t,s){var a,n,o=Fe(i),r=!c(function(){var e={};return e[o]=function(){return 7},7!=""[i](e)}),l=r&&!c(function(){var e=!1,t=/a/;return"split"===i&&((t={}).constructor={},t.constructor[Ys]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});r&&l&&("replace"!==i||Gs&&Xs)&&("split"!==i||Ks)||(a=/./[o],t=(l=t(o,""[i],function(e,t,i,s,n){return t.exec===Os?r&&!n?{done:!0,value:a.call(t,i,s)}:{done:!0,value:e.call(i,t,s)}:{done:!1}},{REPLACE_KEEPS_$0:Xs}))[0],n=l[1],fe(String.prototype,i,t),fe(RegExp.prototype,o,2==e?function(e,t){return n.call(e,this,t)}:function(e){return n.call(e,this)})),s&&P(RegExp.prototype[o],"sham",!0)}function Vs(e,t,i){return t+(i?Qs(e,t).length:1)}function Us(e,t){var i=e.exec;if("function"==typeof i){i=i.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return Os.call(e,t)}var Ys=Fe("species"),Gs=!c(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),Xs="$0"==="a".replace(/./,"$0"),Ks=!c(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};e="ab".split(e);return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),Qs=Ci.charAt,Zs=Math.max,Js=Math.min,en=Math.floor,tn=/\$([$&'`]|\d\d?|<[^>]*>)/g,sn=/\$([$&'`]|\d\d?)/g;Ws("replace",2,function(n,w,x,_){return[function(e,t){var i=y(this),s=null==e?void 0:e[n];return void 0!==s?s.call(e,i,t):w.call(String(i),e,t)},function(e,t){if(_.REPLACE_KEEPS_$0||"string"==typeof t&&-1===t.indexOf("$0")){var i=x(w,e,this,t);if(i.done)return i.value}var s=k(e),n=String(this),a="function"==typeof t;a||(t=String(t));var o,r=s.global;r&&(o=s.unicode,s.lastIndex=0);for(var l=[];;){var c=Us(s,n);if(null===c)break;if(l.push(c),!r)break;""===String(c[0])&&(s.lastIndex=Vs(n,ie(s.lastIndex),o))}for(var d,u="",p=0,h=0;h<l.length;h++){for(var c=l[h],f=String(c[0]),m=Zs(Js(ye(c.index),n.length),0),g=[],v=1;v<c.length;v++)g.push(void 0===(d=c[v])?d:String(d));var y,b=c.groups,b=a?(y=[f].concat(g,m,n),void 0!==b&&y.push(b),String(t.apply(void 0,y))):function(a,o,r,l,c,e){var d=r+a.length,u=l.length,t=sn;return void 0!==c&&(c=ce(c),t=tn),w.call(e,t,function(e,t){var i;switch(t.charAt(0)){case"$":return"$";case"&":return a;case"`":return o.slice(0,r);case"'":return o.slice(d);case"<":i=c[t.slice(1,-1)];break;default:var s=+t;if(0==s)return e;if(u<s){var n=en(s/10);return 0!==n&&n<=u?void 0===l[n-1]?t.charAt(1):l[n-1]+t.charAt(1):e}i=l[s-1]}return void 0===i?"":i})}(f,n,m,g,b,t);p<=m&&(u+=n.slice(p,m)+b,p=m+f.length)}return u+n.slice(p)}]});var nn=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Ws("search",1,function(s,n,a){return[function(e){var t=y(this),i=null==e?void 0:e[s];return void 0!==i?i.call(e,t):new RegExp(e)[s](String(t))},function(e){var t=a(n,e,this);if(t.done)return t.value;var i=k(e),t=String(this),e=i.lastIndex;nn(e,0)||(i.lastIndex=0);t=Us(i,t);return nn(i.lastIndex,e)||(i.lastIndex=e),null===t?-1:t.index}]});var an=Fe("species"),on=[].push,rn=Math.min,ln=4294967295,cn=!c(function(){return!RegExp(ln,"y")});Ws("split",2,function(n,m,g){var v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var i=String(y(this)),s=void 0===t?ln:t>>>0;if(0==s)return[];if(void 0===e)return[i];if(!hs(e))return m.call(i,e,s);for(var n,a,o,r=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,t+"g");(n=Os.call(c,i))&&!((a=c.lastIndex)>l&&(r.push(i.slice(l,n.index)),1<n.length&&n.index<i.length&&on.apply(r,n.slice(1)),o=n[0].length,l=a,r.length>=s));)c.lastIndex===n.index&&c.lastIndex++;return l===i.length?!o&&c.test("")||r.push(""):r.push(i.slice(l)),r.length>s?r.slice(0,s):r}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:m.call(this,e,t)}:m;return[function(e,t){var i=y(this),s=null==e?void 0:e[n];return void 0!==s?s.call(e,i,t):v.call(String(i),e,t)},function(e,t){var i=g(v,e,this,t,v!==m);if(i.done)return i.value;var s=k(e),n=String(this),i=(i=RegExp,void 0===(e=k(s).constructor)||null==(o=k(e)[an])?i:Ve(o)),a=s.unicode,o=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(cn?"y":"g"),r=new i(cn?s:"^(?:"+s.source+")",o),l=void 0===t?ln:t>>>0;if(0==l)return[];if(0===n.length)return null===Us(r,n)?[n]:[];for(var c=0,d=0,u=[];d<n.length;){r.lastIndex=cn?d:0;var p,h=Us(r,cn?n:n.slice(d));if(null===h||(p=rn(ie(r.lastIndex+(cn?0:d)),n.length))===c)d=Vs(n,d,a);else{if(u.push(n.slice(c,d)),u.length===l)return u;for(var f=1;f<=h.length-1;f++)if(u.push(h[f]),u.length===l)return u;d=c=p}}return u.push(n.slice(c)),u}]},!cn);var dn,un=hi.trim;le({target:"String",proto:!0,forced:(dn="trim",c(function(){return Hi.trim()||"​…᠎"!="​…᠎".trim()||Hi.trim.name!==dn}))},{trim:function(){return un(this)}});var pn,hn={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},fn=U.forEach,mn=ni("forEach")?function(e){return fn(this,e,1<arguments.length?arguments[1]:void 0)}:[].forEach;for(pn in hn){var gn=p[pn],gn=gn&&gn.prototype;if(gn&&gn.forEach!==mn)try{P(gn,"forEach",mn)}catch(N){gn.forEach=mn}}var vn,yn=Fe("iterator"),bn=Fe("toStringTag"),wn=Si.values;for(vn in hn){var xn=p[vn],_n=xn&&xn.prototype;if(_n){if(_n[yn]!==wn)try{P(_n,yn,wn)}catch(N){_n[yn]=wn}if(_n[bn]||P(_n,bn,vn),hn[vn])for(var Sn in Si)if(_n[Sn]!==Si[Sn])try{P(_n,Sn,Si[Sn])}catch(N){_n[Sn]=Si[Sn]}}}function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function En(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function kn(e,t,i){return t&&En(e.prototype,t),i&&En(e,i),e}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var i=[],s=!0,n=!1,a=void 0;try{for(var o,r=e[Symbol.iterator]();!(s=(o=r.next()).done)&&(i.push(o.value),!t||i.length!==t);s=!0);}catch(e){n=!0,a=e}finally{try{s||null==r.return||r.return()}finally{if(n)throw a}}return i}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function An(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}hi=4;try{var Pn=N.fn.dropdown.Constructor.VERSION;void 0!==Pn&&(hi=parseInt(Pn,10))}catch(N){}try{var In=bootstrap.Tooltip.VERSION;void 0!==In&&(hi=parseInt(In,10))}catch(N){}U={3:{iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggleOff:"glyphicon-list-alt icon-list-alt",toggleOn:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus",fullscreen:"glyphicon-fullscreen",search:"glyphicon-search",clearSearch:"glyphicon-trash"},classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],toolbarDropdownItem:'<li class="dropdown-item-marker" role="menuitem"><label>%s</label></li>',toolbarDropdownSeparator:'<li class="divider"></li>',pageDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],pageDropdownItem:'<li role="menuitem" class="%s"><a href="#">%s</a></li>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<span class="input-group-btn">%s</span></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<div class="dropdown-menu dropdown-menu-right">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<div class="input-group-append">%s</div></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},5:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<div class="dropdown-menu dropdown-menu-right">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<div class="input-group-append">%s</div></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}}}[hi],Pn={height:void 0,classes:"table table-bordered table-hover",buttons:{},theadClasses:"",headerStyle:function(e){return{}},rowStyle:function(e,t){return{}},rowAttributes:function(e,t){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:void 0,sortReset:!1,sortStable:!1,rememberOrder:!1,serverSort:!0,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(e){return e},queryParamsType:"limit",responseHandler:function(e){return e},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",footerField:"footer",pagination:!1,paginationParts:["pageInfo","pageSize","pageList"],showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"&lsaquo;",paginationNextText:"&rsaquo;",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchHighlight:!1,searchOnEnterKey:!1,strictSearch:!1,searchSelector:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(e){return{}},searchAccentNeutralise:!1,showColumns:!1,showColumnsToggleAll:!1,showColumnsSearch:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(e){e=e.tagName;return["A","BUTTON"].includes(e)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailViewAlign:"left",detailFormatter:function(e,t){return""},detailFilter:function(e,t){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsOrder:["paginationSwitch","refresh","toggle","fullscreen","columns"],buttonsPrefix:U.classes.buttonsPrefix,buttonsClass:U.classes.buttons,icons:U.icons,iconSize:void 0,iconsPrefix:U.iconsPrefix,loadingFontSize:"auto",loadingTemplate:function(e){return'<span class="loading-wrap">\n      <span class="loading-text">'.concat(e,'</span>\n      <span class="animation-wrap"><span class="animation-dot"></span></span>\n      </span>\n    ')},onAll:function(e,t){return!1},onClickCell:function(e,t,i,s){return!1},onDblClickCell:function(e,t,i,s){return!1},onClickRow:function(e,t){return!1},onDblClickRow:function(e,t){return!1},onSort:function(e,t){return!1},onCheck:function(e){return!1},onUncheck:function(e){return!1},onCheckAll:function(e){return!1},onUncheckAll:function(e){return!1},onCheckSome:function(e){return!1},onUncheckSome:function(e){return!1},onLoadSuccess:function(e){return!1},onLoadError:function(e){return!1},onColumnSwitch:function(e,t){return!1},onPageChange:function(e,t){return!1},onSearch:function(e){return!1},onToggle:function(e){return!1},onPreBody:function(e){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(e,t,i){return!1},onCollapseRow:function(e,t){return!1},onRefreshOptions:function(e){return!1},onRefresh:function(e){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},In={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(e){return"".concat(e," rows per page")},formatShowingRows:function(e,t,i,s){return void 0!==s&&0<s&&i<s?"Showing ".concat(e," to ").concat(t," of ").concat(i," rows (filtered from ").concat(s," total rows)"):"Showing ".concat(e," to ").concat(t," of ").concat(i," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(e){return"to page ".concat(e)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(e){return"Showing ".concat(e," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}};Object.assign(Pn,In);var Mn={VERSION:"1.18.0",THEME:"bootstrap".concat(hi),CONSTANTS:U,DEFAULTS:Pn,COLUMN_DEFAULTS:{field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,searchHighlightFormatter:!1,escape:!1,events:void 0},METHODS:["getOptions","refreshOptions","getData","getSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandRowByUniqueId","collapseRowByUniqueId","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],EVENTS:{"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody"},LOCALES:{en:In,"en-US":In}},Pn=c(function(){Ne(1)});le({target:"Object",stat:!0,forced:Pn},{keys:function(e){return Ne(ce(e))}});var In=E.f,On="".endsWith,Ln=Math.min,Pn=Ns("endsWith"),zn=!(Pn||(!(zn=In(String.prototype,"endsWith"))||zn.writable));le({target:"String",proto:!0,forced:!zn&&!Pn},{endsWith:function(e){var t=String(y(this));Ds(e);var i=1<arguments.length?arguments[1]:void 0,s=ie(t.length),s=void 0===i?s:Ln(ie(i),s),e=String(e);return On?On.call(t,e,s):t.slice(s-e.length,s)===e}});var zn=E.f,Dn="".startsWith,Nn=Math.min,Pn=Ns("startsWith"),jn=!(Pn||(!(jn=zn(String.prototype,"startsWith"))||jn.writable));le({target:"String",proto:!0,forced:!jn&&!Pn},{startsWith:function(e){var t=String(y(this));Ds(e);var i=ie(Nn(1<arguments.length?arguments[1]:void 0,t.length)),e=String(e);return Dn?Dn.call(t,e,i):t.slice(i,i+e.length)===e}});var Hn={getSearchInput:function(e){return"string"==typeof e.options.searchSelector?N(e.options.searchSelector):e.$toolbar.find(".search input")},sprintf:function(e){for(var t=arguments.length,i=new Array(1<t?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];var n=!0,a=0,e=e.replace(/%s/g,function(){var e=i[a++];return void 0===e?(n=!1,""):e});return n?e:""},isObject:function(e){return e instanceof Object&&!Array.isArray(e)},isEmptyObject:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.entries(e).length&&e.constructor===Object},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},getFieldTitle:function(e,t){var i=!0,s=!1,n=void 0;try{for(var a,o=e[Symbol.iterator]();!(i=(a=o.next()).done);i=!0){var r=a.value;if(r.field===t)return r.title}}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return""},setFieldIndex:function(e){var t=0,i=[],s=!0,n=!1,a=void 0;try{for(var o,r=e[0][Symbol.iterator]();!(s=(o=r.next()).done);s=!0)t+=o.value.colspan||1}catch(e){n=!0,a=e}finally{try{s||null==r.return||r.return()}finally{if(n)throw a}}for(var l=0;l<e.length;l++){i[l]=[];for(var c=0;c<t;c++)i[l][c]=!1}for(var d=0;d<e.length;d++){var u=!0,p=!1,h=void 0;try{for(var f,m=e[d][Symbol.iterator]();!(u=(f=m.next()).done);u=!0){var g=f.value,v=g.rowspan||1,y=g.colspan||1,b=i[d].indexOf(!1);g.colspanIndex=b,1===y?(g.fieldIndex=b,void 0===g.field&&(g.field=b)):g.colspanGroup=g.colspan;for(var w=0;w<v;w++)for(var x=0;x<y;x++)i[d+w][b+x]=!0}}catch(e){p=!0,h=e}finally{try{u||null==m.return||m.return()}finally{if(p)throw h}}}},normalizeAccent:function(e){return"string"!=typeof e?e:e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},updateFieldGroup:function(e){var i=(n=[]).concat.apply(n,An(e)),t=!0,s=!1,n=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var r=a.value,l=!0,c=!1,d=void 0;try{for(var u,p=r[Symbol.iterator]();!(l=(u=p.next()).done);l=!0){var h=u.value;if(1<h.colspanGroup){for(var f=0,m=h.colspanIndex;m<h.colspanIndex+h.colspanGroup;m++)!function(t){i.find(function(e){return e.fieldIndex===t}).visible&&f++}(m);h.colspan=f,h.visible=0<f}}}catch(e){c=!0,d=e}finally{try{l||null==p.return||p.return()}finally{if(c)throw d}}}}catch(e){s=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(s)throw n}}},getScrollBarWidth:function(){var e,t,i;return void 0===this.cachedWidth&&(i=N("<div/>").addClass("fixed-table-scroll-inner"),(e=N("<div/>").addClass("fixed-table-scroll-outer")).append(i),N("body").append(e),t=i[0].offsetWidth,e.css("overflow","scroll"),t===(i=i[0].offsetWidth)&&(i=e[0].clientWidth),e.remove(),this.cachedWidth=t-i),this.cachedWidth},calculateObjectValue:function(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],s=3<arguments.length?arguments[3]:void 0,n=t;if("string"==typeof t){var a=t.split(".");if(1<a.length){n=window;var o=!0,r=!1,l=void 0;try{for(var c,d=a[Symbol.iterator]();!(o=(c=d.next()).done);o=!0)n=n[c.value]}catch(e){r=!0,l=e}finally{try{o||null==d.return||d.return()}finally{if(r)throw l}}}else n=window[t]}return null!==n&&"object"===Tn(n)?n:"function"==typeof n?n.apply(e,i||[]):!n&&"string"==typeof t&&this.sprintf.apply(this,[t].concat(An(i)))?this.sprintf.apply(this,[t].concat(An(i))):s},compareObjects:function(e,t,i){var s=Object.keys(e),n=Object.keys(t);if(i&&s.length!==n.length)return!1;for(var a=0,o=s;a<o.length;a++){var r=o[a];if(n.includes(r)&&e[r]!==t[r])return!1}return!0},escapeHTML:function(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/`/g,"&#x60;"):e},unescapeHTML:function(e){return"string"==typeof e?e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/&#x60;/g,"`"):e},getRealDataAttr:function(e){for(var t=0,i=Object.entries(e);t<i.length;t++){var s=$n(i[t],2),n=s[0],a=s[1],s=n.split(/(?=[A-Z])/).join("-").toLowerCase();s!==n&&(e[s]=a,delete e[n])}return e},getItemField:function(e,t,i){var s=e;if("string"!=typeof t||e.hasOwnProperty(t))return i?this.escapeHTML(e[t]):e[t];var n=t.split("."),a=!0,o=!1,t=void 0;try{for(var r,l=n[Symbol.iterator]();!(a=(r=l.next()).done);a=!0)var c=r.value,s=s&&s[c]}catch(e){o=!0,t=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw t}}return i?this.escapeHTML(s):s},isIEBrowser:function(){return navigator.userAgent.includes("MSIE ")||/Trident.*rv:11\./.test(navigator.userAgent)},findIndex:function(e,t){var i=!0,s=!1,n=void 0;try{for(var a,o=e[Symbol.iterator]();!(i=(a=o.next()).done);i=!0){var r=a.value;if(JSON.stringify(r)===JSON.stringify(t))return e.indexOf(r)}}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return-1},trToData:function(c,e){var d=this,t=[],u=[];return e.each(function(r,e){var e=N(e),l={};l._id=e.attr("id"),l._class=e.attr("class"),l._data=d.getRealDataAttr(e.data()),l._style=e.attr("style"),e.find(">td,>th").each(function(e,t){for(var t=N(t),i=+t.attr("colspan")||1,s=+t.attr("rowspan")||1,n=e;u[r]&&u[r][n];n++);for(var a=n;a<n+i;a++)for(var o=r;o<r+s;o++)u[o]||(u[o]=[]),u[o][a]=!0;e=c[n].field;l[e]=t.html().trim(),l["_".concat(e,"_id")]=t.attr("id"),l["_".concat(e,"_class")]=t.attr("class"),l["_".concat(e,"_rowspan")]=t.attr("rowspan"),l["_".concat(e,"_colspan")]=t.attr("colspan"),l["_".concat(e,"_title")]=t.attr("title"),l["_".concat(e,"_data")]=d.getRealDataAttr(t.data()),l["_".concat(e,"_style")]=t.attr("style")}),t.push(l)}),t},sort:function(e,t,i,s,n,a){return null==e&&(e=""),null==t&&(t=""),s&&e===t&&(e=n,t=a),this.isNumeric(e)&&this.isNumeric(t)?(e=parseFloat(e))<(t=parseFloat(t))?-1*i:t<e?i:0:e===t?0:-1===(e="string"!=typeof e?e.toString():e).localeCompare(t)?-1*i:i},getEventName:function(e){var t=(t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"")||"".concat(+new Date).concat(~~(1e6*Math.random()));return"".concat(e,"-").concat(t)},hasDetailViewIcon:function(e){return e.detailView&&e.detailViewIcon&&!e.cardView},getDetailViewIndexOffset:function(e){return this.hasDetailViewIcon(e)&&"right"!==e.detailViewAlign?1:0},checkAutoMergeCells:function(e){var t=!0,i=!1,s=void 0;try{for(var n,a=e[Symbol.iterator]();!(t=(n=a.next()).done);t=!0)for(var o=n.value,r=0,l=Object.keys(o);r<l.length;r++){var c=l[r];if(c.startsWith("_")&&(c.endsWith("_rowspan")||c.endsWith("_colspan")))return!0}}catch(e){i=!0,s=e}finally{try{t||null==a.return||a.return()}finally{if(i)throw s}}return!1},deepCopy:function(e){return void 0===e?e:N.extend(!0,Array.isArray(e)?[]:{},e)}},Bn=(kn(qn,[{key:"initDOM",value:function(e,t){void 0===this.clusterHeight&&(this.cache.scrollTop=this.scrollEl.scrollTop,this.cache.data=this.contentEl.innerHTML=e[0]+e[0]+e[0],this.getRowsHeight(e));var i=this.initData(e,this.getNum(t)),s=i.rows.join(""),n=this.checkChanges("data",s),a=this.checkChanges("top",i.topOffset),o=this.checkChanges("bottom",i.bottomOffset),e=[];n&&a?(i.topOffset&&e.push(this.getExtra("top",i.topOffset)),e.push(s),i.bottomOffset&&e.push(this.getExtra("bottom",i.bottomOffset)),this.contentEl.innerHTML=e.join(""),t&&(this.contentEl.scrollTop=this.cache.scrollTop)):o&&(this.contentEl.lastChild.style.height="".concat(i.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){var e;void 0===this.itemHeight&&(e=(e=this.contentEl.children)[Math.floor(e.length/2)],this.itemHeight=e.offsetHeight),this.blockHeight=50*this.itemHeight,this.clusterRows=200,this.clusterHeight=4*this.blockHeight}},{key:"getNum",value:function(e){return this.scrollTop=(e?this.cache:this.scrollEl).scrollTop,Math.floor(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(e,t){if(e.length<50)return{topOffset:0,bottomOffset:0,rowsAbove:0,rows:e};var i=Math.max((this.clusterRows-50)*t,0),s=i+this.clusterRows,n=Math.max(i*this.itemHeight,0),a=Math.max((e.length-s)*this.itemHeight,0),o=[],t=i;n<1&&t++;for(var r=i;r<s;r++)e[r]&&o.push(e[r]);return{topOffset:n,bottomOffset:a,rowsAbove:t,rows:o}}},{key:"checkChanges",value:function(e,t){var i=t!==this.cache[e];return this.cache[e]=t,i}},{key:"getExtra",value:function(e,t){var i=document.createElement("tr");return i.className="virtual-scroll-".concat(e),t&&(i.style.height="".concat(t,"px")),i.outerHTML}}]),qn),Rn=(kn(Fn,[{key:"init",value:function(){this.initConstants(),this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:"initConstants",value:function(){var e=this.options;this.constants=Mn.CONSTANTS,this.constants.theme=N.fn.bootstrapTable.theme;var t=e.buttonsPrefix?"".concat(e.buttonsPrefix,"-"):"";this.constants.buttonsClass=[e.buttonsPrefix,t+e.buttonsClass,Hn.sprintf("".concat(t,"%s"),e.iconSize)].join(" ").trim(),this.buttons=Hn.calculateObjectValue(this,e.buttons,[],[])}},{key:"initLocale",value:function(){var e,t;this.options.locale&&(e=N.fn.bootstrapTable.locales,(t=this.options.locale.split(/-|_/))[0]=t[0].toLowerCase(),t[1]&&(t[1]=t[1].toUpperCase()),e[this.options.locale]?N.extend(this.options,e[this.options.locale]):e[t.join("-")]?N.extend(this.options,e[t.join("-")]):e[t[0]]&&N.extend(this.options,e[t[0]]))}},{key:"initContainer",value:function(){var e=["top","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination clearfix"></div>':"",t=["bottom","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination"></div>':"",i=Hn.calculateObjectValue(this.options,this.options.loadingTemplate,[this.options.formatLoadingMessage()]);this.$container=N('\n      <div class="bootstrap-table '.concat(this.constants.theme,'">\n      <div class="fixed-table-toolbar"></div>\n      ').concat(e,'\n      <div class="fixed-table-container">\n      <div class="fixed-table-header"><table></table></div>\n      <div class="fixed-table-body">\n      <div class="fixed-table-loading">\n      ').concat(i,'\n      </div>\n      </div>\n      <div class="fixed-table-footer"><table><thead><tr></tr></thead></table></div>\n      </div>\n      ').concat(t,"\n      </div>\n    ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.options.buttonsToolbar?this.$toolbar=N("body").find(this.options.buttonsToolbar):this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('<div class="fixed-table-border"></div>'),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var e,s=this,n=[];this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=N('<thead class="'.concat(this.options.theadClasses,'"></thead>')).appendTo(this.$el),this._headerTrClasses=[],this._headerTrStyles=[],this.$header.find("tr").each(function(e,t){var t=N(t),i=[];t.find("th").each(function(e,t){t=N(t);void 0!==t.data("field")&&t.data("field","".concat(t.data("field"))),i.push(N.extend({},{title:t.html(),class:t.attr("class"),titleTooltip:t.attr("title"),rowspan:t.attr("rowspan")?+t.attr("rowspan"):void 0,colspan:t.attr("colspan")?+t.attr("colspan"):void 0},t.data()))}),n.push(i),t.attr("class")&&s._headerTrClasses.push(t.attr("class")),t.attr("style")&&s._headerTrStyles.push(t.attr("style"))}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=N.extend(!0,[],n,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],Hn.setFieldIndex(this.options.columns),this.options.columns.forEach(function(e,i){e.forEach(function(e,t){e=N.extend({},Fn.COLUMN_DEFAULTS,e);void 0!==e.fieldIndex&&(s.columns[e.fieldIndex]=e,s.fieldsColumnsIndex[e.field]=e.fieldIndex),s.options.columns[i][t]=e})}),this.options.data.length||(e=Hn.trToData(this.columns,this.$el.find(">tbody>tr"))).length&&(this.options.data=e,this.fromHtml=!0),this.options.pagination&&"server"!==this.options.sidePagination||(this.footerData=Hn.trToData(this.columns,this.$el.find(">tfoot>tr"))),this.footerData&&this.$el.find("tfoot").html("<tr></tr>"),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var f=this,m={},g=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},Hn.updateFieldGroup(this.options.columns),this.options.columns.forEach(function(e,h){g.push("<tr".concat(Hn.sprintf(' class="%s"',f._headerTrClasses[h])," ").concat(Hn.sprintf(' style="%s"',f._headerTrStyles[h]),">"));var t="";(t=0===h&&Hn.hasDetailViewIcon(f.options)?'<th class="detail" rowspan="'.concat(f.options.columns.length,'">\n          <div class="fht-cell"></div>\n          </th>'):t)&&"right"!==f.options.detailViewAlign&&g.push(t),e.forEach(function(e,t){var i=Hn.sprintf(' class="%s"',e.class),s=e.widthUnit,n=parseFloat(e.width),a=Hn.sprintf("text-align: %s; ",e.halign||e.align),o=Hn.sprintf("text-align: %s; ",e.align),r=Hn.sprintf("vertical-align: %s; ",e.valign);if(r+=Hn.sprintf("width: %s; ",!e.checkbox&&!e.radio||n?n?n+s:void 0:e.showSelectTitle?void 0:"36px"),void 0!==e.fieldIndex||e.visible){var n=Hn.calculateObjectValue(null,f.options.headerStyle,[e]),l=[],s="";if(n&&n.css)for(var c=0,d=Object.entries(n.css);c<d.length;c++){var u=$n(d[c],2),p=u[0],u=u[1];l.push("".concat(p,": ").concat(u))}if(n&&n.classes&&(s=Hn.sprintf(' class="%s"',e.class?[e.class,n.classes].join(" "):n.classes)),void 0!==e.fieldIndex){if(f.header.fields[e.fieldIndex]=e.field,f.header.styles[e.fieldIndex]=o+r,f.header.classes[e.fieldIndex]=i,f.header.formatters[e.fieldIndex]=e.formatter,f.header.detailFormatters[e.fieldIndex]=e.detailFormatter,f.header.events[e.fieldIndex]=e.events,f.header.sorters[e.fieldIndex]=e.sorter,f.header.sortNames[e.fieldIndex]=e.sortName,f.header.cellStyles[e.fieldIndex]=e.cellStyle,f.header.searchables[e.fieldIndex]=e.searchable,!e.visible)return;if(f.options.cardView&&!e.cardVisible)return;m[e.field]=e}g.push("<th".concat(Hn.sprintf(' title="%s"',e.titleTooltip)),e.checkbox||e.radio?Hn.sprintf(' class="bs-checkbox %s"',e.class||""):s||i,Hn.sprintf(' style="%s"',a+r+l.join("; ")),Hn.sprintf(' rowspan="%s"',e.rowspan),Hn.sprintf(' colspan="%s"',e.colspan),Hn.sprintf(' data-field="%s"',e.field),0===t&&0<h?" data-not-first-th":"",">"),g.push(Hn.sprintf('<div class="th-inner %s">',f.options.sortable&&e.sortable?"sortable both":""));r=f.options.escape?Hn.escapeHTML(e.title):e.title,t=r;e.checkbox&&(r="",!f.options.singleSelect&&f.options.checkboxHeader&&(r='<label><input name="btSelectAll" type="checkbox" /><span></span></label>'),f.header.stateField=e.field),e.radio&&(r="",f.header.stateField=e.field),!r&&e.showSelectTitle&&(r+=t),g.push(r),g.push("</div>"),g.push('<div class="fht-cell"></div>'),g.push("</div>"),g.push("</th>")}}),t&&"right"===f.options.detailViewAlign&&g.push(t),g.push("</tr>")}),this.$header.html(g.join("")),this.$header.find("th[data-field]").each(function(e,t){N(t).data(m[N(t).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(e){var t=N(e.currentTarget);if(f.options.detailView&&!t.parent().hasClass("bs-checkbox")&&t.closest(".bootstrap-table")[0]!==f.$container[0])return!1;f.options.sortable&&t.parent().data().sortable&&f.onSort(e)}),this.$header.children().children().off("keypress").on("keypress",function(e){f.options.sortable&&N(e.currentTarget).data().sortable&&13===(e.keyCode||e.which)&&f.onSort(e)});var e=Hn.getEventName("resize.bootstrap-table",this.$el.attr("id"));N(window).off(e),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),N(window).on(e,function(){return f.resetView()})),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(e){e.stopPropagation();e=N(e.currentTarget).prop("checked");f[e?"checkAll":"uncheckAll"](),f.updateSelected()})}},{key:"initData",value:function(e,t){"append"===t?this.options.data=this.options.data.concat(e):"prepend"===t?this.options.data=[].concat(e).concat(this.options.data):(e=e||Hn.deepCopy(this.options.data),this.options.data=Array.isArray(e)?e:e[this.options.dataField]),this.data=An(this.options.data),this.options.sortReset&&(this.unsortedData=An(this.data)),"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var a=this,o=this.options.sortName,r="desc"===this.options.sortOrder?-1:1,l=this.header.fields.indexOf(this.options.sortName);-1!==l?(this.options.sortStable&&this.data.forEach(function(e,t){e.hasOwnProperty("_position")||(e._position=t)}),this.options.customSort?Hn.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(e,t){a.header.sortNames[l]&&(o=a.header.sortNames[l]);var i=Hn.getItemField(e,o,a.options.escape),s=Hn.getItemField(t,o,a.options.escape),n=Hn.calculateObjectValue(a.header,a.header.sorters[l],[i,s,e,t]);return void 0!==n?a.options.sortStable&&0===n?r*(e._position-t._position):r*n:Hn.sort(i,s,r,a.options.sortStable,e._position,t._position)}),void 0!==this.options.sortClass&&(clearTimeout(0),setTimeout(function(){a.$el.removeClass(a.options.sortClass);var e=a.$header.find('[data-field="'.concat(a.options.sortName,'"]')).index();a.$el.find("tr td:nth-child(".concat(e+1,")")).addClass(a.options.sortClass)},250))):this.options.sortReset&&(this.data=An(this.unsortedData))}},{key:"onSort",value:function(e){var t=e.type,i=e.currentTarget,e="keypress"===t?N(i):N(i).parent(),t=this.$header.find("th").eq(e.index());if(this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===e.data("field")?(void 0===(i=this.options.sortOrder)?this.options.sortOrder="asc":"asc"===i?this.options.sortOrder="desc":"desc"===this.options.sortOrder&&(this.options.sortOrder=this.options.sortReset?void 0:"asc"),void 0===this.options.sortOrder&&(this.options.sortName=void 0)):(this.options.sortName=e.data("field"),this.options.rememberOrder?this.options.sortOrder="asc"===e.data("order")?"desc":"asc":this.options.sortOrder=this.columns[this.fieldsColumnsIndex[e.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[e.data("field")]].order),this.trigger("sort",this.options.sortName,this.options.sortOrder),e.add(t).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination&&this.options.serverSort)return this.options.pageNumber=1,void this.initServer(this.options.silentSort);this.initSort(),this.initBody()}},{key:"initToolbar",value:function(){var o=this,r=this.options,e=[],i=0,l=0;this.$toolbar.find(".bs-bars").children().length&&N("body").append(N(r.toolbar)),this.$toolbar.html(""),"string"!=typeof r.toolbar&&"object"!==Tn(r.toolbar)||N(Hn.sprintf('<div class="bs-bars %s-%s"></div>',this.constants.classes.pull,r.toolbarAlign)).appendTo(this.$toolbar).append(N(r.toolbar)),e=['<div class="'.concat(["columns","columns-".concat(r.buttonsAlign),this.constants.classes.buttonsGroup,"".concat(this.constants.classes.pull,"-").concat(r.buttonsAlign)].join(" "),'">')],"string"==typeof r.icons&&(r.icons=Hn.calculateObjectValue(null,r.icons)),"string"==typeof r.buttonsOrder&&(r.buttonsOrder=r.buttonsOrder.replace(/\[|\]| |'/g,"").toLowerCase().split(",")),this.buttons=Object.assign(this.buttons,{paginationSwitch:{text:r.pagination?r.formatPaginationSwitchUp():r.formatPaginationSwitchDown(),icon:r.pagination?r.icons.paginationSwitchDown:r.icons.paginationSwitchUp,render:!1,event:this.togglePagination,attributes:{"aria-label":r.formatPaginationSwitch(),title:r.formatPaginationSwitch()}},refresh:{text:r.formatRefresh(),icon:r.icons.refresh,render:!1,event:this.refresh,attributes:{"aria-label":r.formatRefresh(),title:r.formatRefresh()}},toggle:{text:r.formatToggle(),icon:r.icons.toggleOff,render:!1,event:this.toggleView,attributes:{"aria-label":r.formatToggleOn(),title:r.formatToggleOn()}},fullscreen:{text:r.formatFullscreen(),icon:r.icons.fullscreen,render:!1,event:this.toggleFullscreen,attributes:{"aria-label":r.formatFullscreen(),title:r.formatFullscreen()}},columns:{render:!1,html:function(){var e,n=[];n.push('<div class="keep-open '.concat(o.constants.classes.buttonsDropdown,'" title="').concat(r.formatColumns(),'">\n            <button class="').concat(o.constants.buttonsClass,' dropdown-toggle" type="button" data-toggle="dropdown"\n            aria-label="Columns" title="').concat(r.formatColumns(),'">\n            ').concat(r.showButtonIcons?Hn.sprintf(o.constants.html.icon,r.iconsPrefix,r.icons.columns):"","\n            ").concat(r.showButtonText?r.formatColumns():"","\n            ").concat(o.constants.html.dropdownCaret,"\n            </button>\n            ").concat(o.constants.html.toolbarDropdown[0])),r.showColumnsSearch&&(n.push(Hn.sprintf(o.constants.html.toolbarDropdownItem,Hn.sprintf('<input type="text" class="%s" name="columnsSearch" placeholder="%s" autocomplete="off">',o.constants.classes.input,r.formatSearch()))),n.push(o.constants.html.toolbarDropdownSeparator)),r.showColumnsToggleAll&&(e=o.getVisibleColumns().length===o.columns.filter(function(e){return!o.isSelectionColumn(e)}).length,n.push(Hn.sprintf(o.constants.html.toolbarDropdownItem,Hn.sprintf('<input type="checkbox" class="toggle-all" %s> <span>%s</span>',e?'checked="checked"':"",r.formatColumnsToggleAll()))),n.push(o.constants.html.toolbarDropdownSeparator));var a=0;return o.columns.forEach(function(e,t){e.visible&&a++}),o.columns.forEach(function(e,t){var i,s;o.isSelectionColumn(e)||r.cardView&&!e.cardVisible||(i=e.visible?' checked="checked"':"",s=a<=r.minimumCountColumns&&i?' disabled="disabled"':"",e.switchable&&(n.push(Hn.sprintf(o.constants.html.toolbarDropdownItem,Hn.sprintf('<input type="checkbox" data-field="%s" value="%s"%s%s> <span>%s</span>',e.field,t,i,s,e.title))),l++))}),n.push(o.constants.html.toolbarDropdown[1],"</div>"),n.join("")}}});for(var t={},s=0,n=Object.entries(this.buttons);s<n.length;s++){var a=$n(n[s],2),c=a[0],d=a[1],u=void 0;if(d.hasOwnProperty("html"))u=Hn.calculateObjectValue(r,d.html);else{if(u='<button class="'.concat(this.constants.buttonsClass,'" type="button" name="').concat(c,'"'),d.hasOwnProperty("attributes"))for(var p=0,h=Object.entries(d.attributes);p<h.length;p++){var f=$n(h[p],2),m=f[0],f=f[1];u+=" ".concat(m,'="').concat(Hn.calculateObjectValue(r,f),'"')}u+=">",r.showButtonIcons&&d.hasOwnProperty("icon")&&(g=Hn.calculateObjectValue(r,d.icon),u+=Hn.sprintf(this.constants.html.icon,r.iconsPrefix,g)+" "),r.showButtonText&&d.hasOwnProperty("text")&&(u+=Hn.calculateObjectValue(r,d.text)),u+="</button>"}t[c]=u;var a="show".concat(c.charAt(0).toUpperCase()).concat(c.substring(1)),g=r[a];!(!d.hasOwnProperty("render")||d.hasOwnProperty("render")&&d.render)||void 0!==g&&!0!==g||(r[a]=!0),r.buttonsOrder.includes(c)||r.buttonsOrder.push(c)}var v=!0,y=!1,b=void 0;try{for(var w,x=r.buttonsOrder[Symbol.iterator]();!(v=(w=x.next()).done);v=!0){var _=w.value;r["show".concat(_.charAt(0).toUpperCase()).concat(_.substring(1))]&&e.push(t[_])}}catch(e){y=!0,b=e}finally{try{v||null==x.return||x.return()}finally{if(y)throw b}}e.push("</div>"),(this.showToolbar||2<e.length)&&this.$toolbar.append(e.join(""));for(var S,T,C,E=0,k=Object.entries(this.buttons);E<k.length;E++){var $=$n(k[E],2),A=$[0],P=$[1];if(P.hasOwnProperty("event")&&("function"!=typeof P.event&&"string"!=typeof P.event||"continue"!==function(){var e="string"==typeof P.event?window[P.event]:P.event;return o.$toolbar.find('button[name="'.concat(A,'"]')).off("click").on("click",function(){return e.call(o)}),"continue"}()))for(var I=0,M=Object.entries(P.event);I<M.length;I++)!function(){var e=$n(M[I],2),t=e[0],e=e[1],i="string"==typeof e?window[e]:e;o.$toolbar.find('button[name="'.concat(A,'"]')).off(t).on(t,function(){return i.call(o)})}()}r.showColumns&&(S=(L=this.$toolbar.find(".keep-open")).find('input[type="checkbox"]:not(".toggle-all")'),T=L.find('input[type="checkbox"].toggle-all'),l<=r.minimumCountColumns&&L.find("input").prop("disabled",!0),L.find("li, label").off("click").on("click",function(e){e.stopImmediatePropagation()}),S.off("click").on("click",function(e){e=e.currentTarget,e=N(e);o._toggleColumn(e.val(),e.prop("checked"),!1),o.trigger("column-switch",e.data("field"),e.prop("checked")),T.prop("checked",S.filter(":checked").length===o.columns.filter(function(e){return!o.isSelectionColumn(e)}).length)}),T.off("click").on("click",function(e){e=e.currentTarget;o._toggleAllColumns(N(e).prop("checked"))}),r.showColumnsSearch&&(z=L.find('[name="columnsSearch"]'),C=L.find(".dropdown-item-marker"),z.on("keyup paste change",function(e){var e=e.currentTarget,i=N(e).val().toLowerCase();C.show(),S.each(function(e,t){t=N(t).parents(".dropdown-item-marker");t.text().toLowerCase().includes(i)||t.hide()})})));function O(e){var t="keyup drop blur mouseup";e.off(t).on(t,function(e){r.searchOnEnterKey&&13!==e.keyCode||[37,38,39,40].includes(e.keyCode)||(clearTimeout(i),i=setTimeout(function(){o.onSearch({currentTarget:e.currentTarget})},r.searchTimeOut))})}var L,z,D;(r.search||this.showSearchClearButton)&&"string"!=typeof r.searchSelector?(e=[],y=Hn.sprintf(this.constants.html.searchButton,this.constants.buttonsClass,r.formatSearch(),r.showButtonIcons?Hn.sprintf(this.constants.html.icon,r.iconsPrefix,r.icons.search):"",r.showButtonText?r.formatSearch():""),b=Hn.sprintf(this.constants.html.searchClearButton,this.constants.buttonsClass,r.formatClearSearch(),r.showButtonIcons?Hn.sprintf(this.constants.html.icon,r.iconsPrefix,r.icons.clearSearch):"",r.showButtonText?r.formatClearSearch():""),z=L='<input class="'.concat(this.constants.classes.input,"\n        ").concat(Hn.sprintf(" %s%s",this.constants.classes.inputPrefix,r.iconSize),'\n        search-input" type="search" placeholder="').concat(r.formatSearch(),'" autocomplete="off">'),(r.showSearchButton||r.showSearchClearButton)&&(b=(r.showSearchButton?y:"")+(r.showSearchClearButton?b:""),z=r.search?Hn.sprintf(this.constants.html.inputGroup,L,b):b),e.push(Hn.sprintf('\n        <div class="'.concat(this.constants.classes.pull,"-").concat(r.searchAlign," search ").concat(this.constants.classes.inputGroup,'">\n          %s\n        </div>\n      '),z)),this.$toolbar.append(e.join("")),D=Hn.getSearchInput(this),r.showSearchButton?(this.$toolbar.find(".search button[name=search]").off("click").on("click",function(e){clearTimeout(i),i=setTimeout(function(){o.onSearch({currentTarget:D})},r.searchTimeOut)}),r.searchOnEnterKey&&O(D)):O(D),r.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){o.resetSearch()})):"string"==typeof r.searchSelector&&O(Hn.getSearchInput(this))}},{key:"onSearch",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.currentTarget,i=e.firedByInitSearchText,e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(void 0!==t&&N(t).length&&e){e=N(t).val().trim();if(this.options.trimOnSearch&&N(t).val()!==e&&N(t).val(e),this.searchText===e)return;t!==Hn.getSearchInput(this)[0]&&!N(t).hasClass("search-input")||(this.searchText=e,this.options.searchText=e)}i||(this.options.pageNumber=1),this.initSearch(),i&&"client"!==this.options.sidePagination||this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var u=this;if(this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination){if(this.options.customSearch)return this.data=Hn.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]),void(this.options.sortReset&&(this.unsortedData=An(this.data)));var p=this.searchText&&(this.fromHtml?Hn.escapeHTML(this.searchText):this.searchText).toLowerCase(),o=Hn.isEmptyObject(this.filterColumns)?null:this.filterColumns;"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter(function(e,t){return u.filterOptions.filterAlgorithm.apply(null,[e,o])}):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=o?this.options.data.filter(function(e,t){var i=u.filterOptions.filterAlgorithm;if("and"===i){for(var s in o)if(Array.isArray(o[s])&&!o[s].includes(e[s])||!Array.isArray(o[s])&&e[s]!==o[s])return!1}else if("or"===i){var n,a=!1;for(n in o)(Array.isArray(o[n])&&o[n].includes(e[n])||!Array.isArray(o[n])&&e[n]===o[n])&&(a=!0);return a}return!0}):An(this.options.data));var h=this.getVisibleFields();this.data=p?this.data.filter(function(e,t){for(var i=0;i<u.header.fields.length;i++)if(u.header.searchables[i]&&(!u.options.visibleSearch||-1!==h.indexOf(u.header.fields[i]))){var s=Hn.isNumeric(u.header.fields[i])?parseInt(u.header.fields[i],10):u.header.fields[i],n=u.columns[u.fieldsColumnsIndex[s]],a=void 0;if("string"==typeof s)for(var a=e,o=s.split("."),r=0;r<o.length;r++)null!==a[o[r]]&&(a=a[o[r]]);else a=e[s];if(u.options.searchAccentNeutralise&&(a=Hn.normalizeAccent(a)),"string"==typeof(a=n&&n.searchFormatter?Hn.calculateObjectValue(n,u.header.formatters[i],[a,e,t,n.field],a):a)||"number"==typeof a)if(u.options.strictSearch){if("".concat(a).toLowerCase()===p)return!0}else{var s=/(?:(<=|=>|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm.exec(p),l=!1;if(s){var n=s[1]||"".concat(s[5],"l"),s=s[2]||s[3],c=parseInt(a,10),d=parseInt(s,10);switch(n){case">":case"<l":l=d<c;break;case"<":case">l":l=c<d;break;case"<=":case"=<":case">=l":case"=>l":l=c<=d;break;case">=":case"=>":case"<=l":case"=<l":l=d<=c}}if(l||"".concat(a).toLowerCase().includes(p))return!0}}return!1}):this.data,this.options.sortReset&&(this.unsortedData=An(this.data)),this.initSort()}}},{key:"initPagination",value:function(){var i=this,s=this.options;if(s.pagination){this.$pagination.show();var e,t,n,a,o=[],r=!1,l=this.getData({includeHiddenRows:!1}),c=(c="string"==typeof(c=s.pageList)?c.replace(/\[|\]| /g,"").toLowerCase().split(","):c).map(function(e){return"string"==typeof e?e.toLowerCase()===s.formatAllRows().toLowerCase()||["all","unlimited"].includes(e.toLowerCase())?s.formatAllRows():+e:e});if(this.paginationParts=s.paginationParts,"string"==typeof this.paginationParts&&(this.paginationParts=this.paginationParts.replace(/\[|\]| |'/g,"").split(",")),"server"!==s.sidePagination&&(s.totalRows=l.length),this.totalPages=0,s.totalRows&&(s.pageSize===s.formatAllRows()&&(s.pageSize=s.totalRows,r=!0),this.totalPages=1+~~((s.totalRows-1)/s.pageSize),s.totalPages=this.totalPages),0<this.totalPages&&s.pageNumber>this.totalPages&&(s.pageNumber=this.totalPages),this.pageFrom=(s.pageNumber-1)*s.pageSize+1,this.pageTo=s.pageNumber*s.pageSize,this.pageTo>s.totalRows&&(this.pageTo=s.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&o.push('<div class="'.concat(this.constants.classes.pull,"-").concat(s.paginationDetailHAlign,' pagination-detail">')),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort"))&&(f=this.paginationParts.includes("pageInfoShort")?s.formatDetailPagination(s.totalRows):s.formatShowingRows(this.pageFrom,this.pageTo,s.totalRows,s.totalNotFiltered),o.push('<span class="pagination-info">\n      '.concat(f,"\n      </span>"))),this.paginationParts.includes("pageSize")&&(o.push('<span class="page-list">'),a=['<span class="'.concat(this.constants.classes.paginationDropdown,'">\n        <button class="').concat(this.constants.buttonsClass,' dropdown-toggle" type="button" data-toggle="dropdown">\n        <span class="page-size">\n        ').concat(r?s.formatAllRows():s.pageSize,"\n        </span>\n        ").concat(this.constants.html.dropdownCaret,"\n        </button>\n        ").concat(this.constants.html.pageDropdown[0])],c.forEach(function(e,t){(!s.smartDisplay||0===t||c[t-1]<s.totalRows)&&(t=r?e===s.formatAllRows()?i.constants.classes.dropdownActive:"":e===s.pageSize?i.constants.classes.dropdownActive:"",a.push(Hn.sprintf(i.constants.html.pageDropdownItem,t,e)))}),a.push("".concat(this.constants.html.pageDropdown[1],"</span>")),o.push(s.formatRecordsPerPage(a.join("")))),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&o.push("</span></div>"),this.paginationParts.includes("pageList")){o.push('<div class="'.concat(this.constants.classes.pull,"-").concat(s.paginationHAlign,' pagination">'),Hn.sprintf(this.constants.html.pagination[0],Hn.sprintf(" pagination-%s",s.iconSize)),Hn.sprintf(this.constants.html.paginationItem," page-pre",s.formatSRPaginationPreText(),s.paginationPreText)),t=this.totalPages<s.paginationSuccessivelySize?(n=1,this.totalPages):(n=s.pageNumber-s.paginationPagesBySide)+2*s.paginationPagesBySide,s.pageNumber<s.paginationSuccessivelySize-1&&(t=s.paginationSuccessivelySize),(n=s.paginationSuccessivelySize>this.totalPages-n?n-(s.paginationSuccessivelySize-(this.totalPages-n))+1:n)<1&&(n=1),t>this.totalPages&&(t=this.totalPages);var d=Math.round(s.paginationPagesBySide/2),u=function(e){return Hn.sprintf(i.constants.html.paginationItem,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"")+(e===s.pageNumber?" ".concat(i.constants.classes.paginationActive):""),s.formatSRPaginationPageText(e),e)};if(1<n){var p=s.paginationPagesBySide;for(n<=p&&(p=n-1),e=1;e<=p;e++)o.push(u(e));n-1===p+1?o.push(u(e=n-1)):p<n-1&&(n-2*s.paginationPagesBySide>s.paginationPagesBySide&&s.paginationUseIntermediate?(e=Math.round((n-d)/2+d),o.push(u(e," page-intermediate"))):o.push(Hn.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(e=n;e<=t;e++)o.push(u(e));if(this.totalPages>t){var h=this.totalPages-(s.paginationPagesBySide-1);for(t+1===(h=h<=t?t+1:h)-1?o.push(u(e=t+1)):t+1<h&&(this.totalPages-t>2*s.paginationPagesBySide&&s.paginationUseIntermediate?(e=Math.round((this.totalPages-d-t)/2+t),o.push(u(e," page-intermediate"))):o.push(Hn.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),e=h;e<=this.totalPages;e++)o.push(u(e))}o.push(Hn.sprintf(this.constants.html.paginationItem," page-next",s.formatSRPaginationNextText(),s.paginationNextText)),o.push(this.constants.html.pagination[1],"</div>")}this.$pagination.html(o.join(""));var f=["bottom","both"].includes(s.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > span").addClass(f),s.onlyInfoPagination||(n=this.$pagination.find(".page-list a"),d=this.$pagination.find(".page-pre"),h=this.$pagination.find(".page-next"),f=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),s.smartDisplay&&(c.length<2||s.totalRows<=c[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),s.paginationLoop||(1===s.pageNumber&&d.addClass("disabled"),s.pageNumber===this.totalPages&&h.addClass("disabled")),r&&(s.pageSize=s.formatAllRows()),n.off("click").on("click",function(e){return i.onPageListChange(e)}),d.off("click").on("click",function(e){return i.onPagePre(e)}),h.off("click").on("click",function(e){return i.onPageNext(e)}),f.off("click").on("click",function(e){return i.onPageNumber(e)}))}else this.$pagination.hide()}},{key:"updatePagination",value:function(e){e&&N(e.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize),"server"===this.options.sidePagination?this.initServer():this.initBody())}},{key:"onPageListChange",value:function(e){e.preventDefault();var t=N(e.currentTarget);return t.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=t.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+t.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1}},{key:"onPagePre",value:function(e){return e.preventDefault(),this.options.pageNumber-1==0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(e),!1}},{key:"onPageNext",value:function(e){return e.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(e),!1}},{key:"onPageNumber",value:function(e){if(e.preventDefault(),this.options.pageNumber!==+N(e.currentTarget).text())return this.options.pageNumber=+N(e.currentTarget).text(),this.updatePagination(e),!1}},{key:"initRow",value:function(C,E,e,t){var k=this,$=[],i={},A=[],s="",n={},a=[];if(!(-1<Hn.findIndex(this.hiddenRows,C))){if((i=Hn.calculateObjectValue(this.options,this.options.rowStyle,[C,E],i))&&i.css)for(var o=0,r=Object.entries(i.css);o<r.length;o++){var l=$n(r[o],2),c=l[0],l=l[1];A.push("".concat(c,": ").concat(l))}if(n=Hn.calculateObjectValue(this.options,this.options.rowAttributes,[C,E],n))for(var d=0,u=Object.entries(n);d<u.length;d++){var p=$n(u[d],2),h=p[0],p=p[1];a.push("".concat(h,'="').concat(Hn.escapeHTML(p),'"'))}if(C._data&&!Hn.isEmptyObject(C._data))for(var f=0,m=Object.entries(C._data);f<m.length;f++){var g=$n(m[f],2),v=g[0],g=g[1];if("index"===v)return;s+=" data-".concat(v,"='").concat("object"===Tn(g)?JSON.stringify(g):g,"'")}$.push("<tr",Hn.sprintf(" %s",a.length?a.join(" "):void 0),Hn.sprintf(' id="%s"',Array.isArray(C)?void 0:C._id),Hn.sprintf(' class="%s"',i.classes||(Array.isArray(C)?void 0:C._class)),Hn.sprintf(' style="%s"',Array.isArray(C)?void 0:C._style),' data-index="'.concat(E,'"'),Hn.sprintf(' data-uniqueid="%s"',Hn.getItemField(C,this.options.uniqueId,!1)),Hn.sprintf(' data-has-detail-view="%s"',this.options.detailView&&Hn.calculateObjectValue(null,this.options.detailFilter,[E,C])?"true":void 0),Hn.sprintf("%s",s),">"),this.options.cardView&&$.push('<td colspan="'.concat(this.header.fields.length,'"><div class="card-views">'));i="";return Hn.hasDetailViewIcon(this.options)&&(i="<td>",Hn.calculateObjectValue(null,this.options.detailFilter,[E,C])&&(i+='\n          <a class="detail-icon" href="#">\n          '.concat(Hn.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n          </a>\n        ")),i+="</td>"),i&&"right"!==this.options.detailViewAlign&&$.push(i),this.header.fields.forEach(function(e,t){var i="",s=Hn.getItemField(C,e,k.options.escape),n="",a="",o={},r="",l=k.header.classes[t],c="",d="",u="",p="",h="",f="",m=k.columns[t];if((!k.fromHtml&&!k.autoMergeCells||void 0!==s||m.checkbox||m.radio)&&m.visible&&(!k.options.cardView||m.cardVisible)){if(m.escape&&(s=Hn.escapeHTML(s)),A.concat([k.header.styles[t]]).length&&(d+="".concat(A.concat([k.header.styles[t]]).join("; "))),C["_".concat(e,"_style")]&&(d+="".concat(C["_".concat(e,"_style")])),d&&(c=' style="'.concat(d,'"')),C["_".concat(e,"_id")]&&(r=Hn.sprintf(' id="%s"',C["_".concat(e,"_id")])),C["_".concat(e,"_class")]&&(l=Hn.sprintf(' class="%s"',C["_".concat(e,"_class")])),C["_".concat(e,"_rowspan")]&&(p=Hn.sprintf(' rowspan="%s"',C["_".concat(e,"_rowspan")])),C["_".concat(e,"_colspan")]&&(h=Hn.sprintf(' colspan="%s"',C["_".concat(e,"_colspan")])),C["_".concat(e,"_title")]&&(f=Hn.sprintf(' title="%s"',C["_".concat(e,"_title")])),(o=Hn.calculateObjectValue(k.header,k.header.cellStyles[t],[s,C,E,e],o)).classes&&(l=' class="'.concat(o.classes,'"')),o.css){for(var g=[],v=0,y=Object.entries(o.css);v<y.length;v++){var b=$n(y[v],2),w=b[0],b=b[1];g.push("".concat(w,": ").concat(b))}c=' style="'.concat(g.concat(k.header.styles[t]).join("; "),'"')}if(n=Hn.calculateObjectValue(m,k.header.formatters[t],[s,C,E,e],s),""!==k.searchText&&k.options.searchHighlight&&(n=Hn.calculateObjectValue(m,m.searchHighlightFormatter,[n,k.searchText],n.replace(new RegExp("("+k.searchText+")","gim"),"<mark>$1</mark>"))),C["_".concat(e,"_data")]&&!Hn.isEmptyObject(C["_".concat(e,"_data")]))for(var x=0,_=Object.entries(C["_".concat(e,"_data")]);x<_.length;x++){var S=$n(_[x],2),T=S[0],S=S[1];if("index"===T)return;u+=" data-".concat(T,'="').concat(S,'"')}m.checkbox||m.radio?(a=m.checkbox?"checkbox":a,a=m.radio?"radio":a,d=m.class||"",o=Hn.isObject(n)&&n.hasOwnProperty("checked")?n.checked:(!0===n||s)&&!1!==n,m=!m.checkboxEnabled||n&&n.disabled,i=[k.options.cardView?'<div class="card-view '.concat(d,'">'):'<td class="bs-checkbox '.concat(d,'"').concat(l).concat(c,">"),'<label>\n            <input\n            data-index="'.concat(E,'"\n            name="').concat(k.options.selectItemName,'"\n            type="').concat(a,'"\n            ').concat(Hn.sprintf('value="%s"',C[k.options.idField]),"\n            ").concat(Hn.sprintf('checked="%s"',o?"checked":void 0),"\n            ").concat(Hn.sprintf('disabled="%s"',m?"disabled":void 0)," />\n            <span></span>\n            </label>"),k.header.formatters[t]&&"string"==typeof n?n:"",k.options.cardView?"</div>":"</td>"].join(""),C[k.header.stateField]=!0===n||!!s||n&&n.checked):(n=null==n?k.options.undefinedText:n,k.options.cardView?(e=k.options.showHeader?'<span class="card-view-title"'.concat(c,">").concat(Hn.getFieldTitle(k.columns,e),"</span>"):"",i='<div class="card-view">'.concat(e,'<span class="card-view-value">').concat(n,"</span></div>"),k.options.smartDisplay&&""===n&&(i='<div class="card-view"></div>')):i="<td".concat(r).concat(l).concat(c).concat(u).concat(p).concat(h).concat(f,">").concat(n,"</td>")),$.push(i)}}),i&&"right"===this.options.detailViewAlign&&$.push(i),this.options.cardView&&$.push("</div></td>"),$.push("</tr>"),$.join("")}}},{key:"initBody",value:function(e){var t=this,i=this.getData();this.trigger("pre-body",i),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=N("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=i.length);var s=[],n=N(document.createDocumentFragment()),a=!1;this.autoMergeCells=Hn.checkAutoMergeCells(i.slice(this.pageFrom-1,this.pageTo));for(var o=this.pageFrom-1;o<this.pageTo;o++){var r=i[o],r=this.initRow(r,o,i,n),a=a||!!r;r&&"string"==typeof r&&(this.options.virtualScroll?s.push(r):n.append(r))}a?this.options.virtualScroll?(this.virtualScroll&&this.virtualScroll.destroy(),this.virtualScroll=new Bn({rows:s,fixedScroll:e,scrollEl:this.$tableBody[0],contentEl:this.$body[0],itemHeight:this.options.virtualScrollItemHeight,callback:function(){t.fitHeader(),t.initBodyEvent()}})):this.$body.html(n):this.$body.html('<tr class="no-records-found">'.concat(Hn.sprintf('<td colspan="%s">%s</td>',this.getVisibleFields().length+Hn.getDetailViewIndexOffset(this.options),this.options.formatNoMatches()),"</tr>")),e||this.scrollTo(0),this.initBodyEvent(),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=i.length),this.trigger("post-body",i)}},{key:"initBodyEvent",value:function(){var c=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(e){var t,i=N(e.currentTarget),s=i.parent(),n=N(e.target).parents(".card-views").children(),a=N(e.target).parents(".card-view"),o=s.data("index"),r=c.data[o],l=c.options.cardView?n.index(a):i[0].cellIndex,n=c.getVisibleFields()[l-Hn.getDetailViewIndexOffset(c.options)],a=c.columns[c.fieldsColumnsIndex[n]],l=Hn.getItemField(r,n,c.options.escape);i.find(".detail-icon").length||(c.trigger("click"===e.type?"click-cell":"dbl-click-cell",n,l,r,i),c.trigger("click"===e.type?"click-row":"dbl-click-row",r,s,n),"click"===e.type&&c.options.clickToSelect&&a.clickToSelect&&!Hn.calculateObjectValue(c.options,c.options.ignoreClickToSelectOn,[e.target])&&(t=s.find(Hn.sprintf('[name="%s"]',c.options.selectItemName))).length&&t[0].click(),"click"===e.type&&c.options.detailViewByClick&&c.toggleDetailView(o,c.header.detailFormatters[c.fieldsColumnsIndex[n]]))}).off("mousedown").on("mousedown",function(e){c.multipleSelectRowCtrlKey=e.ctrlKey||e.metaKey,c.multipleSelectRowShiftKey=e.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(e){return e.preventDefault(),c.toggleDetailView(N(e.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(Hn.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(e){e.stopImmediatePropagation();e=N(e.currentTarget);c._toggleCheck(e.prop("checked"),e.data("index"))}),this.header.events.forEach(function(e,t){var i=e;if(i){"string"==typeof i&&(i=Hn.calculateObjectValue(null,i));var r=c.header.fields[t],l=c.getVisibleFields().indexOf(r);if(-1!==l){l+=Hn.getDetailViewIndexOffset(c.options);for(var s in i)!function(a){if(!i.hasOwnProperty(a))return;var o=i[a];c.$body.find(">tr:not(.no-records-found)").each(function(e,t){var n=N(t),i=n.find(c.options.cardView?".card-views>.card-view":">td").eq(l),s=a.indexOf(" "),t=a.substring(0,s),s=a.substring(s+1);i.find(s).off(t).on(t,function(e){var t=n.data("index"),i=c.data[t],s=i[r];o.apply(c,[e,s,i,t])})})}(s)}}})}},{key:"initServer",value:function(s,e,t){var n=this,i={},a=this.header.fields.indexOf(this.options.sortName),o={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[a]&&(o.sortName=this.header.sortNames[a]),this.options.pagination&&"server"===this.options.sidePagination&&(o.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,o.pageNumber=this.options.pageNumber),t||this.options.url||this.options.ajax){if("limit"===this.options.queryParamsType&&(o={search:o.searchText,sort:o.sortName,order:o.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(o.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),o.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===o.limit&&delete o.limit)),this.options.search&&"server"===this.options.sidePagination&&this.columns.filter(function(e){return!e.searchable}).length){var r=!0,l=!(o.searchable=[]),a=void 0;try{for(var c,d=this.columns[Symbol.iterator]();!(r=(c=d.next()).done);r=!0){var u=c.value;!u.checkbox&&u.searchable&&(this.options.visibleSearch&&u.visible||!this.options.visibleSearch)&&o.searchable.push(u.field)}}catch(e){l=!0,a=e}finally{try{r||null==d.return||d.return()}finally{if(l)throw a}}}if(Hn.isEmptyObject(this.filterColumnsPartial)||(o.filter=JSON.stringify(this.filterColumnsPartial,null)),N.extend(o,e||{}),!1!==(i=Hn.calculateObjectValue(this.options,this.options.queryParams,[o],i))){s||this.showLoading();t=N.extend({},Hn.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:t||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(i):i,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(e,t,i){e=Hn.calculateObjectValue(n.options,n.options.responseHandler,[e,i],e);n.load(e),n.trigger("load-success",e,i&&i.status,i),s||n.hideLoading(),"server"===n.options.sidePagination&&0<e[n.options.totalField]&&!e[n.options.dataField].length&&n.updatePagination()},error:function(e){var t=[];"server"===n.options.sidePagination&&((t={})[n.options.totalField]=0,t[n.options.dataField]=[]),n.load(t),n.trigger("load-error",e&&e.status,e),s||n.$tableLoading.hide()}});return this.options.ajax?Hn.calculateObjectValue(this,this.options.ajax,[t],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=N.ajax(t)),i}}}},{key:"initSearchText",value:function(){var e;this.options.search&&(this.searchText="")!==this.options.searchText&&((e=Hn.getSearchInput(this)).val(this.options.searchText),this.onSearch({currentTarget:e,firedByInitSearchText:!0}))}},{key:"getCaret",value:function(){var i=this;this.$header.find("th").each(function(e,t){N(t).find(".sortable").removeClass("desc asc").addClass(N(t).data("field")===i.options.sortName?i.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(e,t){N(t).closest("tr")[N(t).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var i=this;this.$selectItem.each(function(e,t){i.data[N(t).data("index")][i.header.stateField]=N(t).prop("checked")})}},{key:"resetRows",value:function(){var e=!0,t=!1,i=void 0;try{for(var s,n=this.data[Symbol.iterator]();!(e=(s=n.next()).done);e=!0){var a=s.value;this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(a[this.header.stateField]=!1)}}catch(e){t=!0,i=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw i}}this.initHiddenRows()}},{key:"trigger",value:function(e){for(var t="".concat(e,".bs.table"),i=arguments.length,s=new Array(1<i?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];(e=this.options)[Fn.EVENTS[t]].apply(e,[].concat(s,[this])),this.$el.trigger(N.Event(t,{sender:this}),s),(e=this.options).onAll.apply(e,[t].concat([].concat(s,[this]))),this.$el.trigger(N.Event("all.bs.table",{sender:this}),[t,s])}},{key:"resetHeader",value:function(){var e=this;clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(function(){return e.fitHeader()},this.$el.is(":hidden")?100:0)}},{key:"fitHeader",value:function(){var n=this;if(this.$el.is(":hidden"))this.timeoutId_=setTimeout(function(){return n.fitHeader()},100);else{var e=this.$tableBody.get(0),t=e.scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?Hn.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var e=N(":focus");0<e.length&&(0<(e=e.parents("th")).length&&(void 0===(e=e.attr("data-field"))||0<(e=this.$header.find("[data-field='".concat(e,"']"))).length&&e.find(":input").addClass("focus-temp"))),this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",t).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth());t=N(".focus-temp:visible:eq(0)");0<t.length&&(t.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(e,t){n.$header_.find(Hn.sprintf('th[data-field="%s"]',N(t).data("field"))).data(N(t).data())});for(var a=this.getVisibleFields(),o=this.$header_.find("th"),i=this.$body.find(">tr:not(.no-records-found,.virtual-scroll-top)").eq(0);i.length&&i.find('>td[colspan]:not([colspan="1"])').length;)i=i.next();var r=i.find("> *").length;i.find("> *").each(function(e,t){var i,s=N(t);Hn.hasDetailViewIcon(n.options)&&(0===e&&"right"!==n.options.detailViewAlign||e===r-1&&"right"===n.options.detailViewAlign)?(i=(t=o.filter(".detail")).innerWidth()-t.find(".fht-cell").width(),t.find(".fht-cell").width(s.innerWidth()-i)):(i=e-Hn.getDetailViewIndexOffset(n.options),i=(e=1<(e=n.$header_.find(Hn.sprintf('th[data-field="%s"]',a[i]))).length?N(o[s[0].cellIndex]):e).innerWidth()-e.find(".fht-cell").width(),e.find(".fht-cell").width(s.innerWidth()-i))}),this.horizontalScroll(),this.trigger("post-header")}}},{key:"initFooter",value:function(){if(this.options.showFooter&&!this.options.cardView){var e=this.getData(),t=[],i="";(i=Hn.hasDetailViewIcon(this.options)?'<th class="detail"><div class="th-inner"></div><div class="fht-cell"></div></th>':i)&&"right"!==this.options.detailViewAlign&&t.push(i);var s=!0,n=!1,a=void 0;try{for(var o,r=this.columns[Symbol.iterator]();!(s=(o=r.next()).done);s=!0){var l,c,d=o.value,u=[],p={},h=Hn.sprintf(' class="%s"',d.class);if(d.visible&&(!(this.footerData&&0<this.footerData.length)||d.field in this.footerData[0])){if(this.options.cardView&&!d.cardVisible)return;if(l=Hn.sprintf("text-align: %s; ",d.falign||d.align),c=Hn.sprintf("vertical-align: %s; ",d.valign),(p=Hn.calculateObjectValue(null,this.options.footerStyle,[d]))&&p.css)for(var f=0,m=Object.entries(p.css);f<m.length;f++){var g=$n(m[f],2),v=g[0],y=g[1];u.push("".concat(v,": ").concat(y))}p&&p.classes&&(h=Hn.sprintf(' class="%s"',d.class?[d.class,p.classes].join(" "):p.classes)),t.push("<th",h,Hn.sprintf(' style="%s"',l+c+u.concat().join("; ")));var b=0;(b=this.footerData&&0<this.footerData.length?this.footerData[0]["_"+d.field+"_colspan"]||0:b)&&t.push(' colspan="'.concat(b,'" ')),t.push(">"),t.push('<div class="th-inner">');var w="";this.footerData&&0<this.footerData.length&&(w=this.footerData[0][d.field]||""),t.push(Hn.calculateObjectValue(d,d.footerFormatter,[e,w],w)),t.push("</div>"),t.push('<div class="fht-cell"></div>'),t.push("</div>"),t.push("</th>")}}}catch(e){n=!0,a=e}finally{try{s||null==r.return||r.return()}finally{if(n)throw a}}i&&"right"===this.options.detailViewAlign&&t.push(i),this.options.height||this.$tableFooter.length||(this.$el.append("<tfoot><tr></tr></tfoot>"),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").html(t.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var n=this;if(this.$el.is(":hidden"))setTimeout(function(){return n.fitFooter()},100);else{var e=this.$tableBody.get(0),e=e.scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?Hn.getScrollBarWidth():0;this.$tableFooter.css("margin-right",e).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class")),this.getVisibleFields();var a=this.$tableFooter.find("th"),t=this.$body.find(">tr:first-child:not(.no-records-found)");for(a.find(".fht-cell").width("auto");t.length&&t.find('>td[colspan]:not([colspan="1"])').length;)t=t.next();var o=t.find("> *").length;t.find("> *").each(function(e,t){var i,s=N(t);Hn.hasDetailViewIcon(n.options)&&(0===e&&"left"===n.options.detailViewAlign||e===o-1&&"right"===n.options.detailViewAlign)?(i=(t=a.filter(".detail")).innerWidth()-t.find(".fht-cell").width(),t.find(".fht-cell").width(s.innerWidth()-i)):(e=(i=a.eq(e)).innerWidth()-i.find(".fht-cell").width(),i.find(".fht-cell").width(s.innerWidth()-e))}),this.horizontalScroll()}}},{key:"horizontalScroll",value:function(){var t=this;this.$tableBody.off("scroll").on("scroll",function(){var e=t.$tableBody.scrollLeft();t.options.showHeader&&t.options.height&&t.$tableHeader.scrollLeft(e),t.options.showFooter&&!t.options.cardView&&t.$tableFooter.scrollLeft(e),t.trigger("scroll-body",t.$tableBody)})}},{key:"getVisibleFields",value:function(){var e=[],t=!0,i=!1,s=void 0;try{for(var n,a=this.header.fields[Symbol.iterator]();!(t=(n=a.next()).done);t=!0){var o=n.value,r=this.columns[this.fieldsColumnsIndex[o]];r&&r.visible&&e.push(o)}}catch(e){i=!0,s=e}finally{try{t||null==a.return||a.return()}finally{if(i)throw s}}return e}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=N.extend({},this.options);return delete e.data,N.extend(!0,{},e)}},{key:"refreshOptions",value:function(e){Hn.compareObjects(this.options,e,!0)||(this.options=N.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(e){var t,o=this,i=this.options.data;return!this.searchText&&!this.options.customSearch&&void 0===this.options.sortName&&Hn.isEmptyObject(this.filterColumns)&&Hn.isEmptyObject(this.filterColumnsPartial)||e&&e.unfiltered||(i=this.data),e&&e.useCurrentPage&&(i=i.slice(this.pageFrom-1,this.pageTo)),e&&!e.includeHiddenRows&&(t=this.getHiddenRows(),i=i.filter(function(e){return-1===Hn.findIndex(t,e)})),e&&e.formatted&&i.forEach(function(e){for(var t=0,i=Object.entries(e);t<i.length;t++){var s=$n(i[t],2),n=s[0],a=s[1],s=o.columns[o.fieldsColumnsIndex[n]];if(!s)return;e[n]=Hn.calculateObjectValue(s,o.header.formatters[s.fieldIndex],[a,e,e.index,s.field],a)}}),i}},{key:"getSelections",value:function(){var t=this;return this.options.data.filter(function(e){return!0===e[t.header.stateField]})}},{key:"load",value:function(e){var t=e;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=t[this.options.totalField],this.options.totalNotFiltered=t[this.options.totalNotFilteredField],this.footerData=t[this.options.footerField]?[t[this.options.footerField]]:void 0),e=t.fixedScroll,t=Array.isArray(t)?t:t[this.options.dataField],this.initData(t),this.initSearch(),this.initPagination(),this.initBody(e)}},{key:"append",value:function(e){this.initData(e,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(e){this.initData(e,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(e){var t,i,s=this.options.data.length;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){for(t=s-1;0<=t;t--)((i=this.options.data[t]).hasOwnProperty(e.field)||"$index"===e.field)&&(i.hasOwnProperty(e.field)||"$index"!==e.field?e.values.includes(i[e.field]):e.values.includes(t))&&(this.options.data.splice(t,1),"server"===this.options.sidePagination&&--this.options.totalRows);s!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){0<this.options.data.length&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("row")&&(this.options.data.splice(e.index,0,e.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(t){var e=Array.isArray(t)?t:[t],i=!0,s=!1,t=void 0;try{for(var n,a=e[Symbol.iterator]();!(i=(n=a.next()).done);i=!0){var o=n.value;o.hasOwnProperty("index")&&o.hasOwnProperty("row")&&(o.hasOwnProperty("replace")&&o.replace?this.options.data[o.index]=o.row:N.extend(this.options.data[o.index],o.row))}}catch(e){s=!0,t=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw t}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(e){for(var t,i,s=this.options.uniqueId,n=e,a=null,o=this.options.data.length-1;0<=o;o--){if((t=this.options.data[o]).hasOwnProperty(s))i=t[s];else{if(!t._data||!t._data.hasOwnProperty(s))continue;i=t._data[s]}if("string"==typeof i?n=n.toString():"number"==typeof i&&(Number(i)===i&&i%1==0?n=parseInt(n):i===Number(i)&&0!==i&&(n=parseFloat(n))),i===n){a=t;break}}return a}},{key:"updateByUniqueId",value:function(t){var e=Array.isArray(t)?t:[t],i=!0,s=!1,t=void 0;try{for(var n,a=e[Symbol.iterator]();!(i=(n=a.next()).done);i=!0){var o,r=n.value;r.hasOwnProperty("id")&&r.hasOwnProperty("row")&&(-1!==(o=this.options.data.indexOf(this.getRowByUniqueId(r.id)))&&(r.hasOwnProperty("replace")&&r.replace?this.options.data[o]=r.row:N.extend(this.options.data[o],r.row)))}}catch(e){s=!0,t=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw t}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"removeByUniqueId",value:function(e){var t=this.options.data.length,e=this.getRowByUniqueId(e);e&&this.options.data.splice(this.options.data.indexOf(e),1),t!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"updateCell",value:function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("field")&&e.hasOwnProperty("value")&&(this.data[e.index][e.field]=e.value,!1!==e.reinit&&(this.initSort(),this.initBody(!0)))}},{key:"updateCellByUniqueId",value:function(e){var s=this;(Array.isArray(e)?e:[e]).forEach(function(e){var t=e.id,i=e.field,e=e.value,t=s.options.data.indexOf(s.getRowByUniqueId(t));-1!==t&&(s.options.data[t][i]=e)}),!1!==e.reinit&&(this.initSort(),this.initBody(!0))}},{key:"showRow",value:function(e){this._toggleRow(e,!0)}},{key:"hideRow",value:function(e){this._toggleRow(e,!1)}},{key:"_toggleRow",value:function(e,t){var i;e.hasOwnProperty("index")?i=this.getData()[e.index]:e.hasOwnProperty("uniqueId")&&(i=this.getRowByUniqueId(e.uniqueId)),i&&(e=Hn.findIndex(this.hiddenRows,i),t||-1!==e?t&&-1<e&&this.hiddenRows.splice(e,1):this.hiddenRows.push(i),this.initBody(!0),this.initPagination())}},{key:"getHiddenRows",value:function(e){if(e)return this.initHiddenRows(),this.initBody(!0),void this.initPagination();var t=this.getData(),i=[],s=!0,n=!1,a=void 0;try{for(var o,r=t[Symbol.iterator]();!(s=(o=r.next()).done);s=!0){var l=o.value;this.hiddenRows.includes(l)&&i.push(l)}}catch(e){n=!0,a=e}finally{try{s||null==r.return||r.return()}finally{if(n)throw a}}return this.hiddenRows=i}},{key:"showColumn",value:function(e){var t=this;(Array.isArray(e)?e:[e]).forEach(function(e){t._toggleColumn(t.fieldsColumnsIndex[e],!0,!0)})}},{key:"hideColumn",value:function(e){var t=this;(Array.isArray(e)?e:[e]).forEach(function(e){t._toggleColumn(t.fieldsColumnsIndex[e],!1,!0)})}},{key:"_toggleColumn",value:function(e,t,i){var s;-1!==e&&this.columns[e].visible!==t&&(this.columns[e].visible=t,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)&&(s=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1),i&&s.filter(Hn.sprintf('[value="%s"]',e)).prop("checked",t),s.filter(":checked").length<=this.options.minimumCountColumns&&s.filter(":checked").prop("disabled",!0))}},{key:"getVisibleColumns",value:function(){var t=this;return this.columns.filter(function(e){return e.visible&&!t.isSelectionColumn(e)})}},{key:"getHiddenColumns",value:function(){return this.columns.filter(function(e){return!e.visible})}},{key:"isSelectionColumn",value:function(e){return e.radio||e.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(t){var i,s=this,e=!0,n=!1,a=void 0;try{for(var o,r=this.columns.slice().reverse()[Symbol.iterator]();!(e=(o=r.next()).done);e=!0){var l=o.value;l.switchable&&(!t&&this.options.showColumns&&this.getVisibleColumns().length===this.options.minimumCountColumns||(l.visible=t))}}catch(e){n=!0,a=e}finally{try{e||null==r.return||r.return()}finally{if(n)throw a}}this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns&&(i=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1),t?i.prop("checked",t):i.get().reverse().forEach(function(e){i.filter(":checked").length>s.options.minimumCountColumns&&N(e).prop("checked",t)}),i.filter(":checked").length<=this.options.minimumCountColumns&&i.filter(":checked").prop("disabled",!0))}},{key:"mergeCells",value:function(e){var t,i,s=e.index,n=this.getVisibleFields().indexOf(e.field),a=e.rowspan||1,o=e.colspan||1,r=this.$body.find(">tr");n+=Hn.getDetailViewIndexOffset(this.options);e=r.eq(s).find(">td").eq(n);if(!(s<0||n<0||s>=this.data.length)){for(t=s;t<s+a;t++)for(i=n;i<n+o;i++)r.eq(t).find(">td").eq(i).hide();e.attr("rowspan",a).attr("colspan",o).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(e){var t=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.filter(":enabled").prop("checked",e),this.updateRows(),this.updateSelected();var i=this.getSelections();e?this.trigger("check-all",i,t):this.trigger("uncheck-all",i,t)}},{key:"checkInvert",value:function(){var e=this.$selectItem.filter(":enabled"),t=e.filter(":checked");e.each(function(e,t){N(t).prop("checked",!N(t).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",t),t=this.getSelections(),this.trigger("check-some",t)}},{key:"check",value:function(e){this._toggleCheck(!0,e)}},{key:"uncheck",value:function(e){this._toggleCheck(!1,e)}},{key:"_toggleCheck",value:function(e,t){var i=this.$selectItem.filter('[data-index="'.concat(t,'"]')),s=this.options.data[t];if(i.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var n=!0,a=!1,o=void 0;try{for(var r,l=this.options.data[Symbol.iterator]();!(n=(r=l.next()).done);n=!0)r.value[this.header.stateField]=!1}catch(e){a=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(a)throw o}}this.$selectItem.filter(":checked").not(i).prop("checked",!1)}if(s[this.header.stateField]=e,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&0<=this.multipleSelectRowLastSelectedIndex)for(var c=[this.multipleSelectRowLastSelectedIndex,t].sort(),d=c[0]+1;d<c[1];d++)this.data[d][this.header.stateField]=!0,this.$selectItem.filter('[data-index="'.concat(d,'"]')).prop("checked",!0);this.multipleSelectRowCtrlKey=!1,this.multipleSelectRowShiftKey=!1,this.multipleSelectRowLastSelectedIndex=e?t:-1}i.prop("checked",e),this.updateSelected(),this.trigger(e?"check":"uncheck",this.data[t],i)}},{key:"checkBy",value:function(e){this._toggleCheckBy(!0,e)}},{key:"uncheckBy",value:function(e){this._toggleCheckBy(!1,e)}},{key:"_toggleCheckBy",value:function(i,s){var n,a=this;s.hasOwnProperty("field")&&s.hasOwnProperty("values")&&(n=[],this.data.forEach(function(e,t){return!!e.hasOwnProperty(s.field)&&void(s.values.includes(e[s.field])&&(t=a.$selectItem.filter(":enabled").filter(Hn.sprintf('[data-index="%s"]',t)),(t=i?t.not(":checked"):t.filter(":checked")).length&&(t.prop("checked",i),e[a.header.stateField]=i,n.push(e),a.trigger(i?"check":"uncheck",e,t))))}),this.updateSelected(),this.trigger(i?"check-some":"uncheck-some",n))}},{key:"refresh",value:function(e){e&&e.url&&(this.options.url=e.url),e&&e.pageNumber&&(this.options.pageNumber=e.pageNumber),e&&e.pageSize&&(this.options.pageSize=e.pageSize),this.trigger("refresh",this.initServer(e&&e.silent,e&&e.query,e&&e.url))}},{key:"destroy",value:function(){this.$el.insertBefore(this.$container),N(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")}},{key:"resetView",value:function(e){var t,i,s=0;e&&e.height&&(this.options.height=e.height),this.$selectAll.prop("checked",0<this.$selectItem.length&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),s+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height&&(s+=this.$tableFooter.outerHeight(!0))),this.$container.hasClass("fullscreen")?(this.$tableContainer.css("height",""),this.$tableContainer.css("width","")):this.options.height&&(this.$tableBorder&&(this.$tableBorder.css("width",""),this.$tableBorder.css("height","")),t=this.$toolbar.outerHeight(!0),i=this.$pagination.outerHeight(!0),e=this.options.height-t-i,i=(t=this.$tableBody.find(">table")).outerHeight(),this.$tableContainer.css("height","".concat(e,"px")),this.$tableBorder&&t.is(":visible")&&(i=e-i-2,this.$tableBody[0].scrollWidth-this.$tableBody.innerWidth()&&(i-=Hn.getScrollBarWidth()),this.$tableBorder.css("width","".concat(t.outerWidth(),"px")),this.$tableBorder.css("height","".concat(i,"px")))),this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(s,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.toggleClass("open",!0);var e=this.options.loadingFontSize;"auto"===this.options.loadingFontSize&&(e=.04*this.$tableLoading.width(),e=Math.max(12,e),e=Math.min(32,e),e="".concat(e,"px")),this.$tableLoading.find(".loading-text").css("font-size",e)}},{key:"hideLoading",value:function(){this.$tableLoading.toggleClass("open",!1)}},{key:"togglePagination",value:function(){this.options.pagination=!this.options.pagination;var e=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",t=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"";this.$toolbar.find('button[name="paginationSwitch"]').html(Hn.sprintf(this.constants.html.icon,this.options.iconsPrefix,e)+" "+t),this.updatePagination()}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){this.options.cardView=!this.options.cardView,this.initHeader();var e=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",t=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"";this.$toolbar.find('button[name="toggle"]').html(Hn.sprintf(this.constants.html.icon,this.options.iconsPrefix,e)+" "+t),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(e){var t=Hn.getSearchInput(this);t.val(e||""),this.onSearch({currentTarget:t})}},{key:"filterBy",value:function(e,t){this.filterOptions=Hn.isEmptyObject(t)?this.options.filterOptions:N.extend(this.options.filterOptions,t),this.filterColumns=Hn.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function(e){var t={unit:"px",value:0};"object"===Tn(e)?t=Object.assign(t,e):"string"==typeof e&&"bottom"===e?t.value=this.$tableBody[0].scrollHeight:"string"!=typeof e&&"number"!=typeof e||(t.value=e);var i=t.value;"rows"===t.unit&&(i=0,this.$body.find("> tr:lt(".concat(t.value,")")).each(function(e,t){i+=N(t).outerHeight(!0)})),this.$tableBody.scrollTop(i)}},{key:"getScrollPosition",value:function(){return this.$tableBody.scrollTop()}},{key:"selectPage",value:function(e){0<e&&e<=this.options.totalPages&&(this.options.pageNumber=e,this.updatePagination())}},{key:"prevPage",value:function(){1<this.options.pageNumber&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())}},{key:"toggleDetailView",value:function(e,t){this.$body.find(Hn.sprintf('> tr[data-index="%s"]',e)).next().is("tr.detail-view")?this.collapseRow(e):this.expandRow(e,t),this.resetView()}},{key:"expandRow",value:function(e,t){var i=this.data[e],s=this.$body.find(Hn.sprintf('> tr[data-index="%s"][data-has-detail-view]',e));s.next().is("tr.detail-view")||(this.options.detailViewIcon&&s.find("a.detail-icon").html(Hn.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),s.after(Hn.sprintf('<tr class="detail-view"><td colspan="%s"></td></tr>',s.children("td").length)),s=s.next().find("td"),t=t||this.options.detailFormatter,t=Hn.calculateObjectValue(this.options,t,[e,i,s],""),1===s.length&&s.append(t),this.trigger("expand-row",e,i,s))}},{key:"expandRowByUniqueId",value:function(e){e=this.getRowByUniqueId(e);e&&this.expandRow(this.data.indexOf(e))}},{key:"collapseRow",value:function(e){var t=this.data[e],i=this.$body.find(Hn.sprintf('> tr[data-index="%s"][data-has-detail-view]',e));i.next().is("tr.detail-view")&&(this.options.detailViewIcon&&i.find("a.detail-icon").html(Hn.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",e,t,i.next()),i.next().remove())}},{key:"collapseRowByUniqueId",value:function(e){e=this.getRowByUniqueId(e);e&&this.collapseRow(this.data.indexOf(e))}},{key:"expandAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),t=0;t<e.length;t++)this.expandRow(N(e[t]).data("index"))}},{key:"collapseAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),t=0;t<e.length;t++)this.collapseRow(N(e[t]).data("index"))}},{key:"updateColumnTitle",value:function(i){i.hasOwnProperty("field")&&i.hasOwnProperty("title")&&(this.columns[this.fieldsColumnsIndex[i.field]].title=this.options.escape?Hn.escapeHTML(i.title):i.title,this.columns[this.fieldsColumnsIndex[i.field]].visible&&(void 0!==this.options.height?this.$tableHeader:this.$header).find("th[data-field]").each(function(e,t){if(N(t).data("field")===i.field)return N(N(t).find(".th-inner")[0]).text(i.title),!1}))}},{key:"updateFormatText",value:function(e,t){/^format/.test(e)&&this.options[e]&&("string"==typeof t?this.options[e]=function(){return t}:"function"==typeof t&&(this.options[e]=t),this.initToolbar(),this.initPagination(),this.initBody())}}]),Fn);function Fn(e,t){Cn(this,Fn),this.options=t,this.$el=N(e),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0}function qn(e){var t=this;Cn(this,qn),this.rows=e.rows,this.scrollEl=e.scrollEl,this.contentEl=e.contentEl,this.callback=e.callback,this.itemHeight=e.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows,e.fixedScroll),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;function i(){t.lastCluster!==(t.lastCluster=t.getNum())&&(t.initDOM(t.rows),t.callback())}this.scrollEl.addEventListener("scroll",i,!1),this.destroy=function(){t.contentEl.innerHtml="",t.scrollEl.removeEventListener("scroll",i,!1)}}return Rn.VERSION=Mn.VERSION,Rn.DEFAULTS=Mn.DEFAULTS,Rn.LOCALES=Mn.LOCALES,Rn.COLUMN_DEFAULTS=Mn.COLUMN_DEFAULTS,Rn.METHODS=Mn.METHODS,Rn.EVENTS=Mn.EVENTS,N.BootstrapTable=Rn,N.fn.bootstrapTable=function(n){for(var a,e=arguments.length,o=new Array(1<e?e-1:0),t=1;t<e;t++)o[t-1]=arguments[t];return this.each(function(e,t){var i=N(t).data("bootstrap.table"),s=N.extend({},Rn.DEFAULTS,N(t).data(),"object"===Tn(n)&&n);if("string"==typeof n){if(!Mn.METHODS.includes(n))throw new Error("Unknown method: ".concat(n));if(!i)return;a=i[n].apply(i,o),"destroy"===n&&N(t).removeData("bootstrap.table")}i||(i=new N.BootstrapTable(t,s),N(t).data("bootstrap.table",i),i.init())}),void 0===a?this:a},N.fn.bootstrapTable.Constructor=Rn,N.fn.bootstrapTable.theme=Mn.THEME,N.fn.bootstrapTable.VERSION=Mn.VERSION,N.fn.bootstrapTable.defaults=Rn.DEFAULTS,N.fn.bootstrapTable.columnDefaults=Rn.COLUMN_DEFAULTS,N.fn.bootstrapTable.events=Rn.EVENTS,N.fn.bootstrapTable.locales=Rn.LOCALES,N.fn.bootstrapTable.methods=Rn.METHODS,N.fn.bootstrapTable.utils=Hn,N(function(){N('[data-toggle="table"]').bootstrapTable()}),Rn}),function(){"use strict";function e(h){h.fn._fadeIn=h.fn.fadeIn;var f=h.noop||function(){},m=/MSIE/.test(navigator.userAgent),g=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),v=(document.documentMode,h.isFunction(document.createElement("div").style.setExpression));h.blockUI=function(e){i(window,e)},h.unblockUI=function(e){w(window,e)},h.growlUI=function(e,t,i,s){var n=h('<div class="growlUI"></div>');e&&n.append("<h1>"+e+"</h1>"),t&&n.append("<h2>"+t+"</h2>"),void 0===i&&(i=3e3);function a(e){h.blockUI({message:n,fadeIn:void 0!==(e=e||{}).fadeIn?e.fadeIn:700,fadeOut:void 0!==e.fadeOut?e.fadeOut:1e3,timeout:void 0!==e.timeout?e.timeout:i,centerY:!1,showOverlay:!1,onUnblock:s,css:h.blockUI.defaults.growlCSS})}a();n.css("opacity");n.mouseover(function(){a({fadeIn:0,timeout:3e4});var e=h(".blockMsg");e.stop(),e.fadeTo(300,1)}).mouseout(function(){h(".blockMsg").fadeOut(1e3)})},h.fn.block=function(e){if(this[0]===window)return h.blockUI(e),this;var t=h.extend({},h.blockUI.defaults,e||{});return this.each(function(){var e=h(this);t.ignoreIfBlocked&&e.data("blockUI.isBlocked")||e.unblock({fadeOut:0})}),this.each(function(){"static"==h.css(this,"position")&&(this.style.position="relative",h(this).data("blockUI.static",!0)),this.style.zoom=1,i(this,e)})},h.fn.unblock=function(e){return this[0]===window?(h.unblockUI(e),this):this.each(function(){w(this,e)})},h.blockUI.version=2.7,h.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var y=null,b=[];function i(e,i){var t,s,n,a,o,r,l,c,d,u=e==window,p=i&&void 0!==i.message?i.message:void 0;(i=h.extend({},h.blockUI.defaults,i||{})).ignoreIfBlocked&&h(e).data("blockUI.isBlocked")||(i.overlayCSS=h.extend({},h.blockUI.defaults.overlayCSS,i.overlayCSS||{}),n=h.extend({},h.blockUI.defaults.css,i.css||{}),i.onOverlayClick&&(i.overlayCSS.cursor="pointer"),a=h.extend({},h.blockUI.defaults.themedCSS,i.themedCSS||{}),p=void 0===p?i.message:p,u&&y&&w(window,{fadeOut:0}),p&&"string"!=typeof p&&(p.parentNode||p.jquery)&&(t=p.jquery?p[0]:p,l={},h(e).data("blockUI.history",l),l.el=t,l.parent=t.parentNode,l.display=t.style.display,l.position=t.style.position,l.parent&&l.parent.removeChild(t)),h(e).data("blockUI.onUnblock",i.onUnblock),d=i.baseZ,l=m||i.forceIframe?h('<iframe class="blockUI" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+i.iframeSrc+'"></iframe>'):h('<div class="blockUI" style="display:none"></div>'),t=i.theme?h('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+d+++';display:none"></div>'):h('<div class="blockUI blockOverlay" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),i.theme&&u?(c='<div class="blockUI '+i.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:fixed">',i.title&&(c+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(i.title||"&nbsp;")+"</div>"),c+='<div class="ui-widget-content ui-dialog-content"></div>',c+="</div>"):i.theme?(c='<div class="blockUI '+i.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:absolute">',i.title&&(c+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(i.title||"&nbsp;")+"</div>"),c+='<div class="ui-widget-content ui-dialog-content"></div>',c+="</div>"):c=u?'<div class="blockUI '+i.blockMsgClass+' blockPage" style="z-index:'+(d+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+i.blockMsgClass+' blockElement" style="z-index:'+(d+10)+';display:none;position:absolute"></div>',d=h(c),p&&(i.theme?(d.css(a),d.addClass("ui-widget-content")):d.css(n)),i.theme||t.css(i.overlayCSS),t.css("position",u?"fixed":"absolute"),(m||i.forceIframe)&&l.css("opacity",0),c=[l,t,d],s=h(u?"body":e),h.each(c,function(){this.appendTo(s)}),i.theme&&i.draggable&&h.fn.draggable&&d.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),a=v&&(!h.support.boxModel||0<h("object,embed",u?null:e).length),(g||a)&&(u&&i.allowBodyStretch&&h.support.boxModel&&h("html,body").css("height","100%"),!g&&h.support.boxModel||u||(n=S(e,"borderTopWidth"),a=S(e,"borderLeftWidth"),o=n?"(0 - "+n+")":0,r=a?"(0 - "+a+")":0),h.each(c,function(e,t){t=t[0].style;t.position="absolute",e<2?(u?t.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+i.quirksmodeOffsetHack+') + "px"'):t.setExpression("height",'this.parentNode.offsetHeight + "px"'),u?t.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):t.setExpression("width",'this.parentNode.offsetWidth + "px"'),r&&t.setExpression("left",r),o&&t.setExpression("top",o)):i.centerY?(u&&t.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),t.marginTop=0):!i.centerY&&u&&(e=i.css&&i.css.top?parseInt(i.css.top,10):0,t.setExpression("top","((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+e+') + "px"'))})),p&&((i.theme?d.find(".ui-widget-content"):d).append(p),(p.jquery||p.nodeType)&&h(p).show()),(m||i.forceIframe)&&i.showOverlay&&l.show(),i.fadeIn?(c=i.onBlock||f,l=i.showOverlay&&!p?c:f,c=p?c:f,i.showOverlay&&t._fadeIn(i.fadeIn,l),p&&d._fadeIn(i.fadeIn,c)):(i.showOverlay&&t.show(),p&&d.show(),i.onBlock&&i.onBlock.bind(d)()),x(1,e,i),u?(y=d[0],b=h(i.focusableElements,y),i.focusInput&&setTimeout(_,20)):function(e,t,i){var s=e.parentNode,n=e.style,a=(s.offsetWidth-e.offsetWidth)/2-S(s,"borderLeftWidth"),s=(s.offsetHeight-e.offsetHeight)/2-S(s,"borderTopWidth");t&&(n.left=0<a?a+"px":"0");i&&(n.top=0<s?s+"px":"0")}(d[0],i.centerX,i.centerY),i.timeout&&(d=setTimeout(function(){u?h.unblockUI(i):h(e).unblock(i)},i.timeout),h(e).data("blockUI.timeout",d)))}function w(e,t){var i,s,n=e==window,a=h(e),o=a.data("blockUI.history"),r=a.data("blockUI.timeout");r&&(clearTimeout(r),a.removeData("blockUI.timeout")),t=h.extend({},h.blockUI.defaults,t||{}),x(0,e,t),null===t.onUnblock&&(t.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),s=n?h("body").children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),t.cursorReset&&(1<s.length&&(s[1].style.cursor=t.cursorReset),2<s.length&&(s[2].style.cursor=t.cursorReset)),n&&(y=b=null),t.fadeOut?(i=s.length,s.stop().fadeOut(t.fadeOut,function(){0==--i&&l(s,o,t,e)})):l(s,o,t,e)}function l(e,t,i,s){var n=h(s);n.data("blockUI.isBlocked")||(e.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),t&&t.el&&(t.el.style.display=t.display,t.el.style.position=t.position,t.el.style.cursor="default",t.parent&&t.parent.appendChild(t.el),n.removeData("blockUI.history")),n.data("blockUI.static")&&n.css("position","static"),"function"==typeof i.onUnblock&&i.onUnblock(s,i),s=(n=h(document.body)).width(),i=n[0].style.width,n.width(s-1).width(s),n[0].style.width=i)}function x(e,t,i){var s=t==window,t=h(t);!e&&(s&&!y||!s&&!t.data("blockUI.isBlocked"))||(t.data("blockUI.isBlocked",e),s&&i.bindEvents&&(!e||i.showOverlay)&&(s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove",e?h(document).bind(s,i,n):h(document).unbind(s,n)))}function n(e){if("keydown"===e.type&&e.keyCode&&9==e.keyCode&&y&&e.data.constrainTabKey){var t=b,i=!e.shiftKey&&e.target===t[t.length-1],s=e.shiftKey&&e.target===t[0];if(i||s)return setTimeout(function(){_(s)},10),!1}t=e.data,i=h(e.target);return i.hasClass("blockOverlay")&&t.onOverlayClick&&t.onOverlayClick(e),0<i.parents("div."+t.blockMsgClass).length||0===i.parents().children().filter("div.blockUI").length}function _(e){!b||(e=b[!0===e?b.length-1:0])&&e.focus()}function S(e,t){return parseInt(h.css(e,t),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Sweetalert2=t()}(this,function(){"use strict";function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function e(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,s=arguments[t];for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e}).apply(this,arguments)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t,i){return(r=function(){if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(e){return}}}()?Reflect.construct:function(e,t,i){var s=[null];s.push.apply(s,t);s=new(Function.bind.apply(e,s));return i&&o(s,i.prototype),s}).apply(null,arguments)}function d(e,t,i){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){e=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}(e,t);if(e){t=Object.getOwnPropertyDescriptor(e,t);return t.get?t.get.call(i):t.value}})(e,t,i||e)}function u(t){return Object.keys(t).map(function(e){return t[e]})}function p(e){return Array.prototype.slice.call(e)}function h(e){console.error("".concat(D," ").concat(e))}function f(e){return e&&Promise.resolve(e)===e}function m(e){return e instanceof Element||"object"===c(e=e)&&e.jquery}function t(e){var t,i={};for(t in e)i[e[t]]="swal2-"+e[t];return i}function g(e){var t=q();return t?t.querySelector(e):null}function i(e){return g(".".concat(e))}function v(){return p(W().querySelectorAll(".".concat(R.icon)))}function y(){var e=v().filter(function(e){return de(e)});return e.length?e[0]:null}function b(){return i(R.title)}function w(){return i(R.content)}function x(){return i(R.image)}function _(){return i(R["progress-steps"])}function S(){return i(R["validation-message"])}function T(){return g(".".concat(R.actions," .").concat(R.confirm))}function C(){return g(".".concat(R.actions," .").concat(R.cancel))}function E(){return i(R.actions)}function k(){return i(R.header)}function $(){return i(R.footer)}function A(){return i(R["timer-progress-bar"])}function P(){return i(R.close)}function I(){var e=p(W().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return e=parseInt(e.getAttribute("tabindex")),(t=parseInt(t.getAttribute("tabindex")))<e?1:e<t?-1:0}),t=p(W().querySelectorAll('\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n')).filter(function(e){return"-1"!==e.getAttribute("tabindex")});return function(e){for(var t=[],i=0;i<e.length;i++)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(e.concat(t)).filter(function(e){return de(e)})}function M(){return!V()&&!document.body.classList.contains(R["no-backdrop"])}function O(t,e){t.textContent="",e&&(p((e=(new DOMParser).parseFromString(e,"text/html")).querySelector("head").childNodes).forEach(function(e){t.appendChild(e)}),p(e.querySelector("body").childNodes).forEach(function(e){t.appendChild(e)}))}function L(e,t){if(t){for(var i=t.split(/\s+/),s=0;s<i.length;s++)if(!e.classList.contains(i[s]))return;return 1}}function z(e,t,i){var s,n=t;if(p((s=e).classList).forEach(function(e){-1===u(R).indexOf(e)&&-1===u(F).indexOf(e)&&-1===u(n.showClass).indexOf(e)&&s.classList.remove(e)}),t.customClass&&t.customClass[i]){if("string"!=typeof t.customClass[i]&&!t.customClass[i].forEach)return N("Invalid type of customClass.".concat(i,'! Expected string or iterable object, got "').concat(c(t.customClass[i]),'"'));re(e,t.customClass[i])}}var D="SweetAlert2:",N=function(e){console.warn("".concat(D," ").concat(e))},j=[],H=function(e){return"function"==typeof e?e():e},B=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),R=t(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),F=t(["success","warning","info","question","error"]),q=function(){return document.body.querySelector(".".concat(R.container))},W=function(){return i(R.popup)},V=function(){return document.body.classList.contains(R["toast-shown"])},U={previousBodyPadding:null};function Y(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return ce(e,R[t]);case"checkbox":return e.querySelector(".".concat(R.checkbox," input"));case"radio":return e.querySelector(".".concat(R.radio," input:checked"))||e.querySelector(".".concat(R.radio," input:first-child"));case"range":return e.querySelector(".".concat(R.range," input"));default:return ce(e,R.input)}}function G(e){var t;e.focus(),"file"!==e.type&&(t=e.value,e.value="",e.value=t)}function X(e,t,i){e&&t&&(t="string"==typeof t?t.split(/\s+/).filter(Boolean):t).forEach(function(t){e.forEach?e.forEach(function(e){i?e.classList.add(t):e.classList.remove(t)}):i?e.classList.add(t):e.classList.remove(t)})}function K(e,t,i){i||0===parseInt(i)?e.style[t]="number"==typeof i?"".concat(i,"px"):i:e.style.removeProperty(t)}function Q(e,t){t=1<arguments.length&&void 0!==t?t:"flex";e.style.opacity="",e.style.display=t}function Z(e){e.style.opacity="",e.style.display="none"}function J(e,t,i){t?Q(e,i):Z(e)}function ee(e){var t=window.getComputedStyle(e),e=parseFloat(t.getPropertyValue("animation-duration")||"0"),t=parseFloat(t.getPropertyValue("transition-duration")||"0");return 0<e||0<t}function te(e,t){var t=1<arguments.length&&void 0!==t&&t,i=A();de(i)&&(t&&(i.style.transition="none",i.style.width="100%"),setTimeout(function(){i.style.transition="width ".concat(e/1e3,"s linear"),i.style.width="0%"},10))}function ie(){return"undefined"==typeof window||"undefined"==typeof document}function se(e){At.isVisible()&&oe!==e.target.value&&At.resetValidationMessage(),oe=e.target.value}function ne(e,t){e instanceof HTMLElement?t.appendChild(e):"object"===c(e)?pe(e,t):e&&O(t,e)}function ae(e,t){var i=E(),s=T(),n=C();t.showConfirmButton||t.showCancelButton||Z(i),z(i,t,"actions"),fe(s,"confirm",t),fe(n,"cancel",t),t.buttonsStyling?function(e,t,i){re([e,t],R.styled),i.confirmButtonColor&&(e.style.backgroundColor=i.confirmButtonColor),i.cancelButtonColor&&(t.style.backgroundColor=i.cancelButtonColor);i=window.getComputedStyle(e).getPropertyValue("background-color");e.style.borderLeftColor=i,e.style.borderRightColor=i}(s,n,t):(le([s,n],R.styled),s.style.backgroundColor=s.style.borderLeftColor=s.style.borderRightColor="",n.style.backgroundColor=n.style.borderLeftColor=n.style.borderRightColor=""),t.reverseButtons&&s.parentNode.insertBefore(n,s)}var oe,re=function(e,t){X(e,t,!0)},le=function(e,t){X(e,t,!1)},ce=function(e,t){for(var i=0;i<e.childNodes.length;i++)if(L(e.childNodes[i],t))return e.childNodes[i]},de=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},ue='\n <div aria-labelledby="'.concat(R.title,'" aria-describedby="').concat(R.content,'" class="').concat(R.popup,'" tabindex="-1">\n   <div class="').concat(R.header,'">\n     <ul class="').concat(R["progress-steps"],'"></ul>\n     <div class="').concat(R.icon," ").concat(F.error,'"></div>\n     <div class="').concat(R.icon," ").concat(F.question,'"></div>\n     <div class="').concat(R.icon," ").concat(F.warning,'"></div>\n     <div class="').concat(R.icon," ").concat(F.info,'"></div>\n     <div class="').concat(R.icon," ").concat(F.success,'"></div>\n     <img class="').concat(R.image,'" />\n     <h2 class="').concat(R.title,'" id="').concat(R.title,'"></h2>\n     <button type="button" class="').concat(R.close,'"></button>\n   </div>\n   <div class="').concat(R.content,'">\n     <div id="').concat(R.content,'" class="').concat(R["html-container"],'"></div>\n     <input class="').concat(R.input,'" />\n     <input type="file" class="').concat(R.file,'" />\n     <div class="').concat(R.range,'">\n       <input type="range" />\n       <output></output>\n     </div>\n     <select class="').concat(R.select,'"></select>\n     <div class="').concat(R.radio,'"></div>\n     <label for="').concat(R.checkbox,'" class="').concat(R.checkbox,'">\n       <input type="checkbox" />\n       <span class="').concat(R.label,'"></span>\n     </label>\n     <textarea class="').concat(R.textarea,'"></textarea>\n     <div class="').concat(R["validation-message"],'" id="').concat(R["validation-message"],'"></div>\n   </div>\n   <div class="').concat(R.actions,'">\n     <button type="button" class="').concat(R.confirm,'">OK</button>\n     <button type="button" class="').concat(R.cancel,'">Cancel</button>\n   </div>\n   <div class="').concat(R.footer,'"></div>\n   <div class="').concat(R["timer-progress-bar-container"],'">\n     <div class="').concat(R["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),pe=function(e,t){e.jquery?function(e,t){if(e.textContent="",0 in t)for(var i=0;i in t;i++)e.appendChild(t[i].cloneNode(!0));else e.appendChild(t.cloneNode(!0))}(t,e):O(t,e.toString())},he=function(){if(ie())return!1;var e,t=document.createElement("div"),i={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)&&void 0!==t.style[e])return i[e];return!1}();function fe(e,t,i){var s;J(e,i["show".concat((s=t).charAt(0).toUpperCase()+s.slice(1),"Button")],"inline-block"),O(e,i["".concat(t,"ButtonText")]),e.setAttribute("aria-label",i["".concat(t,"ButtonAriaLabel")]),e.className=R[t],z(e,i,"".concat(t,"Button")),re(e,i["".concat(t,"ButtonClass")])}function me(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)}function ge(e){return e=R[e]||R.input,ce(w(),e)}var ve={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},ye=["input","file","range","select","radio","checkbox","textarea"],be=function(e){if(!_e[e.input])return h('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var t=ge(e.input),i=_e[e.input](t,e);Q(i),setTimeout(function(){G(i)})},we=function(e,t){var i=Y(w(),e);if(i)for(var s in function(e){for(var t=0;t<e.attributes.length;t++){var i=e.attributes[t].name;-1===["type","value","style"].indexOf(i)&&e.removeAttribute(i)}}(i),t)"range"===e&&"placeholder"===s||i.setAttribute(s,t[s])},xe=function(e){var t=ge(e.input);e.customClass&&re(t,e.customClass.input)},_e={};function Se(){return q().getAttribute("data-queue-step")}function Te(e,t){var i;z(k(),t,"header"),function(n){var a=_();if(!n.progressSteps||0===n.progressSteps.length)return Z(a);Q(a),a.textContent="";var o=parseInt(void 0===n.currentProgressStep?Se():n.currentProgressStep);o>=n.progressSteps.length&&N("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.progressSteps.forEach(function(e,t){var i,s=(i=e,s=document.createElement("li"),re(s,R["progress-step"]),O(s,i),s);a.appendChild(s),t===o&&re(s,R["active-progress-step"]),t!==n.progressSteps.length-1&&(t=e,e=document.createElement("li"),re(e,R["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e=e,a.appendChild(e))})}(t),i=t,(e=ve.innerParams.get(e))&&i.icon===e.icon&&y()?z(y(),i,"icon"):($e(),i.icon&&(-1!==Object.keys(F).indexOf(i.icon)?(Q(e=g(".".concat(R.icon,".").concat(F[i.icon]))),Pe(e,i),Ae(),z(e,i,"icon"),re(e,i.showClass.icon)):h('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(i.icon,'"')))),function(e){var t=x();if(!e.imageUrl)return Z(t);Q(t),t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt),K(t,"width",e.imageWidth),K(t,"height",e.imageHeight),t.className=R.image,z(t,e,"image")}(t),e=t,J(i=b(),e.title||e.titleText),e.title&&ne(e.title,i),e.titleText&&(i.innerText=e.titleText),z(i,e,"title"),e=t,O(t=P(),e.closeButtonHtml),z(t,e,"closeButton"),J(t,e.showCloseButton),t.setAttribute("aria-label",e.closeButtonAriaLabel)}function Ce(e,t){var s,n,a,i,o,r=t,l=W();K(l,"width",r.width),K(l,"padding",r.padding),r.background&&(l.style.background=r.background),o=r,(i=l).className="".concat(R.popup," ").concat(de(i)?o.showClass.popup:""),o.toast?(re([document.documentElement,document.body],R["toast-shown"]),re(i,R.toast)):re(i,R.modal),z(i,o,"popup"),"string"==typeof o.customClass&&re(i,o.customClass),o.icon&&re(i,R["icon-".concat(o.icon)]),r=t,(l=q())&&("string"==typeof(i=r.backdrop)?l.style.background=i:i||re([document.documentElement,document.body],R["no-backdrop"]),!r.backdrop&&r.allowOutsideClick&&N('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),o=l,(i=r.position)in R?re(o,R[i]):(N('The "position" parameter is not valid, defaulting to "center"'),re(o,R.center)),i=l,!(o=r.grow)||"string"!=typeof o||(o="grow-".concat(o))in R&&re(i,R[o]),z(l,r,"container"),(r=document.body.getAttribute("data-swal2-queue-step"))&&(l.setAttribute("data-queue-step",r),document.body.removeAttribute("data-swal2-queue-step"))),Te(e,t),l=e,r=t,e=w().querySelector("#".concat(R.content)),r.html?(ne(r.html,e),Q(e,"block")):r.text?(e.textContent=r.text,Q(e,"block")):Z(e),l=l,s=r,n=w(),l=ve.innerParams.get(l),a=!l||s.input!==l.input,ye.forEach(function(e){var t=R[e],i=ce(n,t);we(e,s.inputAttributes),i.className=t,a&&Z(i)}),s.input&&(a&&be(s),xe(s)),z(w(),r,"content"),ae(0,t),l=t,J(r=$(),l.footer),l.footer&&ne(l.footer,r),z(r,l,"footer"),"function"==typeof t.onRender&&t.onRender(W())}function Ee(){return T()&&T().click()}_e.text=_e.email=_e.password=_e.number=_e.tel=_e.url=function(e,t){return"string"==typeof t.inputValue||"number"==typeof t.inputValue?e.value=t.inputValue:f(t.inputValue)||N('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(c(t.inputValue),'"')),me(e,t),e.type=t.input,e},_e.file=function(e,t){return me(e,t),e},_e.range=function(e,t){var i=e.querySelector("input"),s=e.querySelector("output");return i.value=t.inputValue,i.type=t.input,s.value=t.inputValue,e},_e.select=function(e,t){var i;return e.textContent="",t.inputPlaceholder&&(O(i=document.createElement("option"),t.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,e.appendChild(i)),e},_e.radio=function(e){return e.textContent="",e},_e.checkbox=function(e,t){var i=Y(w(),"checkbox");return i.value=1,i.id=R.checkbox,i.checked=Boolean(t.inputValue),O(e.querySelector("span"),t.inputPlaceholder),e},_e.textarea=function(t,e){var i,s;return t.value=e.inputValue,me(t,e),"MutationObserver"in window&&(i=parseInt(window.getComputedStyle(W()).width),s=parseInt(window.getComputedStyle(W()).paddingLeft)+parseInt(window.getComputedStyle(W()).paddingRight),new MutationObserver(function(){var e=t.offsetWidth+s;W().style.width=i<e?"".concat(e,"px"):null}).observe(t,{attributes:!0,attributeFilter:["style"]})),t};function ke(e){return'<div class="'.concat(R["icon-content"],'">').concat(e,"</div>")}var $e=function(){for(var e=v(),t=0;t<e.length;t++)Z(e[t])},Ae=function(){for(var e=W(),t=window.getComputedStyle(e).getPropertyValue("background-color"),i=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),s=0;s<i.length;s++)i[s].style.backgroundColor=t},Pe=function(e,t){e.textContent="",t.iconHtml?O(e,ke(t.iconHtml)):"success"===t.icon?O(e,'\n      <div class="swal2-success-circular-line-left"></div>\n      <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n      <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n      <div class="swal2-success-circular-line-right"></div>\n    '):"error"===t.icon?O(e,'\n      <span class="swal2-x-mark">\n        <span class="swal2-x-mark-line-left"></span>\n        <span class="swal2-x-mark-line-right"></span>\n      </span>\n    '):O(e,ke({question:"?",warning:"!",info:"i"}[t.icon]))},Ie=[];function Me(){(e=W())||At.fire();var e=W(),t=E(),i=T();Q(t),Q(i,"inline-block"),re([e,t],R.loading),i.disabled=!0,e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()}function Oe(){if(Ne.timeout)return function(){var e=A(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var i=parseInt(window.getComputedStyle(e).width),i=parseInt(t/i*100);e.style.removeProperty("transition"),e.style.width="".concat(i,"%")}(),Ne.timeout.stop()}function Le(){if(Ne.timeout){var e=Ne.timeout.start();return te(e),e}}function ze(e){return Object.prototype.hasOwnProperty.call(je,e)}function De(e){return Be[e]}var Ne={},je={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconHtml:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,onRender:void 0,onClose:void 0,onAfterClose:void 0,onDestroy:void 0,scrollbarPadding:!0},He=["title","titleText","text","html","icon","hideClass","customClass","allowOutsideClick","allowEscapeKey","showConfirmButton","showCancelButton","confirmButtonText","confirmButtonAriaLabel","confirmButtonColor","cancelButtonText","cancelButtonAriaLabel","cancelButtonColor","buttonsStyling","reverseButtons","imageUrl","imageWidth","imageHeight","imageAlt","progressSteps","currentProgressStep"],Be={animation:'showClass" and "hideClass'},Re=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],Fe=Object.freeze({isValidParameter:ze,isUpdatableParameter:function(e){return-1!==He.indexOf(e)},isDeprecatedParameter:De,argsToParams:function(i){var s={};return"object"!==c(i[0])||m(i[0])?["title","html","icon"].forEach(function(e,t){t=i[t];"string"==typeof t||m(t)?s[e]=t:void 0!==t&&h("Unexpected type of ".concat(e,'! Expected "string" or "Element", got ').concat(c(t)))}):l(s,i[0]),s},isVisible:function(){return de(W())},clickConfirm:Ee,clickCancel:function(){return C()&&C().click()},getContainer:q,getPopup:W,getTitle:b,getContent:w,getHtmlContainer:function(){return i(R["html-container"])},getImage:x,getIcon:y,getIcons:v,getCloseButton:P,getActions:E,getConfirmButton:T,getCancelButton:C,getHeader:k,getFooter:$,getTimerProgressBar:A,getFocusableElements:I,getValidationMessage:S,isLoading:function(){return W().hasAttribute("data-loading")},fire:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r(this,t)},mixin:function(t){return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(i,this),e(i,[{key:"_main",value:function(e){return d(a(i.prototype),"_main",this).call(this,l({},t,e))}}]),i;function i(){return s(this,i),e=this,!(t=a(i).apply(this,arguments))||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var e,t}},queue:function(e){var a=this;function o(e,t){Ie=[],e(t)}Ie=e;var r=[];return new Promise(function(n){!function t(i,s){i<Ie.length?(document.body.setAttribute("data-swal2-queue-step",i),a.fire(Ie[i]).then(function(e){void 0!==e.value?(r.push(e.value),t(i+1,s)):o(n,{dismiss:e.dismiss})})):o(n,{value:r})}(0)})},getQueueStep:Se,insertQueueStep:function(e,t){return t&&t<Ie.length?Ie.splice(t,0,e):Ie.push(e)},deleteQueueStep:function(e){void 0!==Ie[e]&&Ie.splice(e,1)},showLoading:Me,enableLoading:Me,getTimerLeft:function(){return Ne.timeout&&Ne.timeout.getTimerLeft()},stopTimer:Oe,resumeTimer:Le,toggleTimer:function(){var e=Ne.timeout;return e&&(e.running?Oe:Le)()},increaseTimer:function(e){if(Ne.timeout){e=Ne.timeout.increase(e);return te(e,!0),e}},isTimerRunning:function(){return Ne.timeout&&Ne.timeout.isRunning()}});function qe(){var e,t=ve.innerParams.get(this);t&&(e=ve.domCache.get(this),t.showConfirmButton||(Z(e.confirmButton),t.showCancelButton||Z(e.actions)),le([e.popup,e.actions],R.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.cancelButton.disabled=!1)}function We(){return window.MSInputMethodContext&&document.documentMode}function Ve(){var e=q(),t=W();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")}var Ue=function(){var t,i=q();i.ontouchstart=function(e){t=e.target===i||!(i.scrollHeight>i.clientHeight)&&"INPUT"!==e.target.tagName},i.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},Ye={swalPromiseResolve:new WeakMap};function Ge(e,t,i,s){i?Ke(e,s):(new Promise(function(e){var t=window.scrollX,i=window.scrollY;Ne.restoreFocusTimeout=setTimeout(function(){Ne.previousActiveElement&&Ne.previousActiveElement.focus?(Ne.previousActiveElement.focus(),Ne.previousActiveElement=null):document.body&&document.body.focus(),e()},100),void 0!==t&&void 0!==i&&window.scrollTo(t,i)}).then(function(){return Ke(e,s)}),Ne.keydownTarget.removeEventListener("keydown",Ne.keydownHandler,{capture:Ne.keydownListenerCapture}),Ne.keydownHandlerAdded=!1),t.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&t.parentNode.removeChild(t),M()&&(null!==U.previousBodyPadding&&(document.body.style.paddingRight="".concat(U.previousBodyPadding,"px"),U.previousBodyPadding=null),L(document.body,R.iosfix)&&(t=parseInt(document.body.style.top,10),le(document.body,R.iosfix),document.body.style.top="",document.body.scrollTop=-1*t),"undefined"!=typeof window&&We()&&window.removeEventListener("resize",Ve),p(document.body.children).forEach(function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})),le([document.documentElement,document.body],[R.shown,R["height-auto"],R["no-backdrop"],R["toast-shown"],R["toast-column"]])}function Xe(e){var t,i,s,n,a,o,r,l=W();!l||(r=ve.innerParams.get(this))&&!L(l,r.hideClass.popup)&&(t=Ye.swalPromiseResolve.get(this),le(l,r.showClass.popup),re(l,r.hideClass.popup),o=q(),le(o,r.showClass.backdrop),re(o,r.hideClass.backdrop),i=this,s=l,n=r,o=q(),l=he&&ee(s),r=n.onClose,n=n.onAfterClose,null!==r&&"function"==typeof r&&r(s),l?(a=s,s=n,Ne.swalCloseEventFinishedCallback=Ge.bind(null,i,o,V(),s),a.addEventListener(he,function(e){e.target===a&&(Ne.swalCloseEventFinishedCallback(),delete Ne.swalCloseEventFinishedCallback)})):Ge(i,o,V(),n),t(e||{}))}var Ke=function(e,t){setTimeout(function(){"function"==typeof t&&t(),e._destroy()})};function Qe(e,t,i){var s=ve.domCache.get(e);t.forEach(function(e){s[e].disabled=i})}function Ze(e,t){if(!e)return!1;if("radio"===e.type)for(var i=e.parentNode.parentNode.querySelectorAll("input"),s=0;s<i.length;s++)i[s].disabled=t;else e.disabled=t}var Je=(e(tt,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),tt),et={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function tt(e,t){s(this,tt),this.callback=e,this.remaining=t,this.running=!1,this.start()}function it(e){var t,i,s,n,a,o,r;(t=e).inputValidator||Object.keys(et).forEach(function(e){t.input===e&&(t.inputValidator=et[e])}),e.showLoaderOnConfirm&&!e.preConfirm&&N("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),e.animation=H(e.animation),(a=e).target&&("string"!=typeof a.target||document.querySelector(a.target))&&("string"==typeof a.target||a.target.appendChild)||(N('Target parameter is not valid, defaulting to "body"'),a.target="body"),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),i=e,r=!!(o=q())&&(o.parentNode.removeChild(o),le([document.documentElement,document.body],[R["no-backdrop"],R["toast-shown"],R["has-column"]]),!0),ie()?h("SweetAlert2 requires document to initialize"):((a=document.createElement("div")).className=R.container,r&&re(a,R["no-transition"]),O(a,ue),(o="string"==typeof(e=i.target)?document.querySelector(e):e).appendChild(a),r=i,(e=W()).setAttribute("role",r.toast?"alert":"dialog"),e.setAttribute("aria-live",r.toast?"polite":"assertive"),r.toast||e.setAttribute("aria-modal","true"),"rtl"===window.getComputedStyle(o).direction&&re(q(),R.rtl),a=w(),i=ce(a,R.input),r=ce(a,R.file),s=a.querySelector(".".concat(R.range," input")),n=a.querySelector(".".concat(R.range," output")),e=ce(a,R.select),o=a.querySelector(".".concat(R.checkbox," input")),a=ce(a,R.textarea),i.oninput=se,r.onchange=se,e.onchange=se,o.onchange=se,a.oninput=se,s.oninput=function(e){se(e),n.value=s.value},s.onchange=function(e){se(e),s.nextSibling.value=s.value})}function st(e){var t,i,s,n=q(),a=W();"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(a),i=a,re(n,(s=e).showClass.backdrop),Q(i),re(i,s.showClass.popup),re([document.documentElement,document.body],R.shown),s.heightAuto&&s.backdrop&&!s.toast&&re([document.documentElement,document.body],R["height-auto"]),i=n,s=a,he&&ee(s)?(i.style.overflowY="hidden",s.addEventListener(he,nt)):i.style.overflowY="auto",M()&&(t=n,i=e.scrollbarPadding,function(){var e;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!L(document.body,R.iosfix)&&(e=document.body.scrollTop,document.body.style.top="".concat(-1*e,"px"),re(document.body,R.iosfix),Ue())}(),"undefined"!=typeof window&&We()&&(Ve(),window.addEventListener("resize",Ve)),p(document.body.children).forEach(function(e){var t,i;e===q()||(t=e,i=q(),"function"==typeof t.contains&&t.contains(i))||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),!i||null===U.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(U.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(U.previousBodyPadding+function(){var e=document.createElement("div");e.className=R["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}(),"px")),setTimeout(function(){t.scrollTop=0})),V()||Ne.previousActiveElement||(Ne.previousActiveElement=document.activeElement),"function"==typeof e.onOpen&&setTimeout(function(){return e.onOpen(a)}),le(n,R["no-transition"])}function nt(e){var t=W();e.target===t&&(e=q(),t.removeEventListener(he,nt),e.style.overflowY="auto")}function at(e,t){var i,s,n,a,o,r;function l(e){return vt[o.input](r,yt(e),o)}"select"===t.input||"radio"===t.input?(a=e,o=t,r=w(),f(o.inputOptions)?(Me(),o.inputOptions.then(function(e){a.hideLoading(),l(e)})):"object"===c(o.inputOptions)?l(o.inputOptions):h("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(c(o.inputOptions)))):-1!==["text","email","number","tel","textarea"].indexOf(t.input)&&f(t.inputValue)&&(s=t,Z(n=(i=e).getInput()),s.inputValue.then(function(e){n.value="number"===s.input?parseFloat(e)||0:"".concat(e),Q(n),n.focus(),i.hideLoading()}).catch(function(e){h("Error in inputValue promise: ".concat(e)),n.value="",Q(n),n.focus(),i.hideLoading()}))}function ot(e,t){var i,s,n;e.disableButtons(),t.input?(i=e,n=function(e){var t=i.getInput();if(!t)return null;switch(e.input){case"checkbox":return ft(t);case"radio":return mt(t);case"file":return gt(t);default:return e.inputAutoTrim?t.value.trim():t.value}}(s=t),s.inputValidator?(i.disableInput(),Promise.resolve().then(function(){return s.inputValidator(n,s.validationMessage)}).then(function(e){i.enableButtons(),i.enableInput(),e?i.showValidationMessage(e):bt(i,s,n)})):i.getInput().checkValidity()?bt(i,s,n):(i.enableButtons(),i.showValidationMessage(s.validationMessage))):bt(e,t,!0)}function rt(e,t){e.closePopup({value:t})}function lt(n,e,t,a){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),t.toast||(e.keydownHandler=function(e){return t=n,i=e,s=a,(e=ve.innerParams.get(t)).stopKeydownPropagation&&i.stopPropagation(),void("Enter"===i.key?_t(t,i,e):"Tab"===i.key?St(i,e):-1!==wt.indexOf(i.key)?Tt():-1!==xt.indexOf(i.key)&&Ct(i,e,s));var t,i,s},e.keydownTarget=t.keydownListenerCapture?window:W(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)}function ct(e,t,i){var s=I();if(0<s.length)return(t+=i)===s.length?t=0:-1===t&&(t=s.length-1),s[t].focus();W().focus()}function dt(e,t,i){var s,n,a,o,r,l,c;ve.innerParams.get(e).toast?(l=e,c=i,t.popup.onclick=function(){var e=ve.innerParams.get(l);e.showConfirmButton||e.showCancelButton||e.showCloseButton||e.input||c(B.close)}):((r=t).popup.onmousedown=function(){r.container.onmouseup=function(e){r.container.onmouseup=void 0,e.target===r.container&&(Et=!0)}},(o=t).container.onmousedown=function(){o.popup.onmouseup=function(e){o.popup.onmouseup=void 0,e.target!==o.popup&&!o.popup.contains(e.target)||(Et=!0)}},s=e,a=i,(n=t).container.onclick=function(e){var t=ve.innerParams.get(s);Et?Et=!1:e.target===n.container&&H(t.allowOutsideClick)&&a(B.backdrop)})}function ut(e,t){return!t.toast&&(H(t.allowEnterKey)?t.focusCancel&&de(e.cancelButton)?e.cancelButton.focus():t.focusConfirm&&de(e.confirmButton)?e.confirmButton.focus():void ct(0,-1,1):void(document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()))}function pt(e){for(var t in e)e[t]=new WeakMap}var ht,ft=function(e){return e.checked?1:0},mt=function(e){return e.checked?e.value:null},gt=function(e){return e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},vt={select:function(e,t,s){var n=ce(e,R.select);t.forEach(function(e){var t=e[0],i=e[1],e=document.createElement("option");e.value=t,O(e,i),s.inputValue.toString()===t.toString()&&(e.selected=!0),n.appendChild(e)}),n.focus()},radio:function(e,t,n){var a=ce(e,R.radio);t.forEach(function(e){var t=e[0],i=e[1],s=document.createElement("input"),e=document.createElement("label");s.type="radio",s.name=R.radio,s.value=t,n.inputValue.toString()===t.toString()&&(s.checked=!0);t=document.createElement("span");O(t,i),t.className=R.label,e.appendChild(s),e.appendChild(t),a.appendChild(e)});t=a.querySelectorAll("input");t.length&&t[0].focus()}},yt=function(t){var i=[];return"undefined"!=typeof Map&&t instanceof Map?t.forEach(function(e,t){i.push([t,e])}):Object.keys(t).forEach(function(e){i.push([e,t[e]])}),i},bt=function(t,e,i){e.showLoaderOnConfirm&&Me(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then(function(){return e.preConfirm(i,e.validationMessage)}).then(function(e){de(S())||!1===e?t.hideLoading():rt(t,void 0===e?i:e)})):rt(t,i)},wt=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],xt=["Escape","Esc"],_t=function(e,t,i){!t.isComposing&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML&&-1===["textarea","file"].indexOf(i.input)&&(Ee(),t.preventDefault())},St=function(e){for(var t=e.target,i=I(),s=-1,n=0;n<i.length;n++)if(t===i[n]){s=n;break}e.shiftKey?ct(0,s,-1):ct(0,s,1),e.stopPropagation(),e.preventDefault()},Tt=function(){var e=T(),t=C();document.activeElement===e&&de(t)?t.focus():document.activeElement===t&&de(e)&&e.focus()},Ct=function(e,t,i){H(t.allowEscapeKey)&&(e.preventDefault(),i(B.esc))},Et=!1,kt=Object.freeze({hideLoading:qe,disableLoading:qe,getInput:function(e){var t=ve.innerParams.get(e||this),e=ve.domCache.get(e||this);return e?Y(e.content,t.input):null},close:Xe,closePopup:Xe,closeModal:Xe,closeToast:Xe,enableButtons:function(){Qe(this,["confirmButton","cancelButton"],!1)},disableButtons:function(){Qe(this,["confirmButton","cancelButton"],!0)},enableInput:function(){return Ze(this.getInput(),!1)},disableInput:function(){return Ze(this.getInput(),!0)},showValidationMessage:function(e){var t=ve.domCache.get(this);O(t.validationMessage,e);e=window.getComputedStyle(t.popup);t.validationMessage.style.marginLeft="-".concat(e.getPropertyValue("padding-left")),t.validationMessage.style.marginRight="-".concat(e.getPropertyValue("padding-right")),Q(t.validationMessage);t=this.getInput();t&&(t.setAttribute("aria-invalid",!0),t.setAttribute("aria-describedBy",R["validation-message"]),G(t),re(t,R.inputerror))},resetValidationMessage:function(){var e=ve.domCache.get(this);e.validationMessage&&Z(e.validationMessage);e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),le(e,R.inputerror))},getProgressSteps:function(){return ve.domCache.get(this).progressSteps},_main:function(e){!function(e){for(var t in e)ze(s=t)||N('Unknown parameter "'.concat(s,'"')),e.toast&&(i=t,-1!==Re.indexOf(i)&&N('The parameter "'.concat(i,'" is incompatible with toasts'))),De(i=t)&&(t=i,i=Be[i],i='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(i,'" instead.'),-1===j.indexOf(i)&&(j.push(i),N(i)));var i,s}(e),Ne.currentInstance&&Ne.currentInstance._destroy(),Ne.currentInstance=this;var t,i=(t=l({},je.showClass,(s=e).showClass),i=l({},je.hideClass,s.hideClass),(e=l({},je,s)).showClass=t,e.hideClass=i,!1===s.animation&&(e.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},e.hideClass={}),e);it(i),Object.freeze(i),Ne.timeout&&(Ne.timeout.stop(),delete Ne.timeout),clearTimeout(Ne.restoreFocusTimeout);var s,a,o,r,e=(s=this,e={popup:W(),container:q(),content:w(),actions:E(),confirmButton:T(),cancelButton:C(),closeButton:P(),validationMessage:S(),progressSteps:_()},ve.domCache.set(s,e),e);return Ce(this,i),ve.innerParams.set(this,i),a=this,o=e,r=i,new Promise(function(e){function t(e){a.closePopup({dismiss:e})}var i,s,n;Ye.swalPromiseResolve.set(a,e),o.confirmButton.onclick=function(){return ot(a,r)},o.cancelButton.onclick=function(){return e=t,a.disableButtons(),void e(B.cancel);var e},o.closeButton.onclick=function(){return t(B.close)},dt(a,o,t),lt(a,Ne,r,t),(r.toast&&(r.input||r.footer||r.showCloseButton)?re:le)(document.body,R["toast-column"]),at(a,r),st(r),i=Ne,s=r,n=t,Z(e=A()),s.timer&&(i.timeout=new Je(function(){n("timer"),delete i.timeout},s.timer),s.timerProgressBar&&(Q(e),setTimeout(function(){i.timeout.running&&te(s.timer)}))),ut(o,r),o.container.scrollTop=0})},update:function(t){var e=W(),i=ve.innerParams.get(this);if(!e||L(e,i.hideClass.popup))return N("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var s={};Object.keys(t).forEach(function(e){At.isUpdatableParameter(e)?s[e]=t[e]:N('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js'))});i=l({},i,s);Ce(this,i),ve.innerParams.set(this,i),Object.defineProperties(this,{params:{value:l({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){var e=ve.domCache.get(this),t=ve.innerParams.get(this);t&&(e.popup&&Ne.swalCloseEventFinishedCallback&&(Ne.swalCloseEventFinishedCallback(),delete Ne.swalCloseEventFinishedCallback),Ne.deferDisposalTimer&&(clearTimeout(Ne.deferDisposalTimer),delete Ne.deferDisposalTimer),"function"==typeof t.onDestroy&&t.onDestroy(),delete this.params,delete Ne.keydownHandler,delete Ne.keydownTarget,pt(ve),pt(Ye))}});function $t(){if("undefined"!=typeof window){"undefined"==typeof Promise&&h("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),ht=this;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:s,writable:!1,enumerable:!0,configurable:!0}});s=this._main(this.params);ve.promise.set(this,s)}}$t.prototype.then=function(e){return ve.promise.get(this).then(e)},$t.prototype.finally=function(e){return ve.promise.get(this).finally(e)},l($t.prototype,kt),l($t,Fe),Object.keys(kt).forEach(function(e){$t[e]=function(){if(ht)return ht[e].apply(ht,arguments)}}),$t.DismissReason=B,$t.version="9.10.8";var At=$t;return At.default=At}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(p,d,h){function r(e,t){return typeof e===t}function f(e){return"function"!=typeof d.createElement?d.createElement(e):w?d.createElementNS.call(d,"http://www.w3.org/2000/svg",e):d.createElement.apply(d,arguments)}function l(e,t,i){var s,n;for(n in e)if(e[n]in t)return!1===i?e[n]:(s=t[e[n]],r(s,"function")?function(e,t){return function(){return e.apply(t,arguments)}}(s,i||t):s);return!1}function m(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function g(e,t,i,s){var n,a,o,r="modernizr",l=f("div"),c=((o=d.body)||((o=f(w?"svg":"body")).fake=!0),o);if(parseInt(i,10))for(;i--;)(n=f("div")).id=s?s[i]:r+(i+1),l.appendChild(n);return(o=f("style")).type="text/css",o.id="s"+r,(c.fake?c:l).appendChild(o),c.appendChild(l),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(d.createTextNode(e)),l.id=r,c.fake&&(c.style.background="",c.style.overflow="hidden",a=b.style.overflow,b.style.overflow="hidden",b.appendChild(c)),e=t(l,e),c.fake?(c.parentNode.removeChild(c),b.style.overflow=a,b.offsetHeight):l.parentNode.removeChild(l),!!e}function c(e,t,i,s){function n(){o&&(delete T.style,delete T.modElem)}if(s=void 0!==s&&s,void 0!==i){var a=function(e,t){var i=e.length;if("CSS"in p&&"supports"in p.CSS){for(;i--;)if(p.CSS.supports(m(e[i]),t))return!0;return!1}if("CSSSupportsRule"in p){for(var s=[];i--;)s.push("("+m(e[i])+":"+t+")");return g("@supports ("+(s=s.join(" or "))+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return h}(e,i);if(void 0!==a)return a}for(var o,r,l,c,d,u=["modernizr","tspan","samp"];!T.style&&u.length;)o=!0,T.modElem=f(u.shift()),T.style=T.modElem.style;for(l=e.length,r=0;r<l;r++)if(c=e[r],d=T.style[c],~(""+c).indexOf("-")&&(c=c.replace(/([a-z])-([a-z])/g,function(e,t,i){return t+i.toUpperCase()}).replace(/^-/,"")),T.style[c]!==h){if(s||void 0===i)return n(),"pfx"!=t||c;try{T.style[c]=i}catch(e){}if(T.style[c]!=d)return n(),"pfx"!=t||c}return n(),!1}function s(e,t,i,s,n){var a=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+x.join(a+" ")+a).split(" ");return r(t,"string")||void 0===t?c(o,t,s,n):l(o=(e+" "+_.join(a+" ")+a).split(" "),t,i)}function e(e,t,i){return s(e,h,h,t,i)}var u=[],v=[],t={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var i=this;setTimeout(function(){t(i[e])},0)},addTest:function(e,t,i){v.push({name:e,fn:t,options:i})},addAsyncTest:function(e){v.push({name:null,fn:e})}};(y=function(){}).prototype=t;var y=new y,b=d.documentElement,w="svg"===b.nodeName.toLowerCase(),i="Moz O ms Webkit",x=t._config.usePrefixes?i.split(" "):[];t._cssomPrefixes=x;var _=t._config.usePrefixes?i.toLowerCase().split(" "):[];t._domPrefixes=_;var n={elem:f("modernizr")};y._q.push(function(){delete n.elem});var a,o,S,T={style:n.elem.style};y._q.unshift(function(){delete T.style}),t.testAllProps=s,t.testAllProps=e,y.addTest("csstransitions",e("transition","all",!0)),function(){var e,t,i,s,n,a,o;for(o in v)if(v.hasOwnProperty(o)){if(e=[],(t=v[o]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(i=0;i<t.options.aliases.length;i++)e.push(t.options.aliases[i].toLowerCase());for(s=r(t.fn,"function")?t.fn():t.fn,n=0;n<e.length;n++)1===(a=e[n].split(".")).length?y[a[0]]=s:(!y[a[0]]||y[a[0]]instanceof Boolean||(y[a[0]]=new Boolean(y[a[0]])),y[a[0]][a[1]]=s),u.push((s?"":"no-")+a.join("-"))}}(),a=u,o=b.className,S=y._config.classPrefix||"",w&&(o=o.baseVal),y._config.enableJSClass&&(i=new RegExp("(^|\\s)"+S+"no-js(\\s|$)"),o=o.replace(i,"$1"+S+"js$2")),y._config.enableClasses&&(o+=" "+S+a.join(" "+S),w?b.className.baseVal=o:b.className=o),delete t.addTest,delete t.addAsyncTest;for(var C=0;C<y._q.length;C++)y._q[C]();p.Modernizr=y}(window,document),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).LazyLoad=t()}(this,function(){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,s=arguments[t];for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e}).apply(this,arguments)}function o(e){return t({},A,e)}function n(e,t){var i,t=new e(t);try{i=new CustomEvent("LazyLoad::Initialized",{detail:{instance:t}})}catch(e){(i=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:t})}window.dispatchEvent(i)}function r(e){return"native"===M(e)}function l(e,t){e&&(e.toLoadCount=t)}function i(e){for(var t,i=[],s=0;t=e.children[s];s+=1)"SOURCE"===t.tagName&&i.push(t);return i}function s(e,t,i){i&&e.setAttribute(t,i)}function a(e,t){e.removeAttribute(t)}function c(e){return!!e.llOriginalAttrs}function d(e){var t;c(e)||((t={}).src=e.getAttribute("src"),t.srcset=e.getAttribute("srcset"),t.sizes=e.getAttribute("sizes"),e.llOriginalAttrs=t)}function u(e,t){s(e,"sizes",P(e,t.data_sizes)),s(e,"srcset",P(e,t.data_srcset)),s(e,"src",P(e,t.data_src))}function p(e,t){i(e).forEach(t)}function h(e,t){var i=U[e.tagName];i&&i(e,t)}function f(e,t){var i=G[e.tagName];i?i(e,t):(I(e=e,(t=t).data_bg,null),I(e,t.data_bg_hidpi,null))}function m(e,t){!t||0<t.loadingCount||0<t.toLoadCount||N(e.callback_finish,t)}function g(e,t,i){e.addEventListener(t,i),e.llEvLisnrs[t]=i}function v(e,t,i){delete e.llTempImage,F(i,-1),i&&--i.toLoadCount,H(e,t.class_loading),t.unobserve_completed&&R(e,i)}function y(e){return e.use_native&&"loading"in HTMLImageElement.prototype}function b(e,c,d){e.forEach(function(e){return e.isIntersecting||0<e.intersectionRatio?(a=e.target,o=e,r=c,l=d,O(a,"entered"),r.unobserve_entered&&R(a,l),N(r.callback_enter,a,o,l),void(0<=D.indexOf(M(a))||te(a,r,l))):(t=e.target,i=e,s=c,n=d,void(z(t)||(o=t,a=i,r=n,(l=s).cancel_on_exit&&"loading"===M(o)&&"IMG"===o.tagName&&(J(o),V(e=o,function(e){W(e)}),W(e),V(e=o,function(e){q(e)}),q(e),H(o,l.class_loading),F(r,-1),L(o),N(l.callback_cancel,o,a,r)),N(s.callback_exit,t,i,n))));var t,i,s,n,a,o,r,l})}function w(e){return Array.prototype.slice.call(e)}function x(e){return e.container.querySelectorAll(e.elements_selector)}function _(e){return"error"===M(e)}function S(e,t){return t=e||x(t),w(t).filter(z)}function e(e,t){var s,n,i,a,e=o(e);this._settings=e,this.loadingCount=0,i=e,a=this,E&&!y(i)&&(a._observer=new IntersectionObserver(function(e){b(e,i,a)},{root:i.container===document?null:i.container,rootMargin:i.thresholds||i.threshold+"px"})),s=e,n=this,T&&window.addEventListener("online",function(){var t,e,i;e=n,i=x(t=s),w(i).filter(_).forEach(function(e){H(e,t.class_error),L(e)}),e.update()}),this.update(t)}var T="undefined"!=typeof window,C=T&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),E=T&&"IntersectionObserver"in window,k=T&&"classList"in document.createElement("p"),$=T&&1<window.devicePixelRatio,A={elements_selector:".lazy",container:C||T?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},P=function(e,t){return e.getAttribute("data-"+t)},I=function(e,t,i){t="data-"+t;null!==i?e.setAttribute(t,i):e.removeAttribute(t)},M=function(e){return P(e,"ll-status")},O=function(e,t){return I(e,"ll-status",t)},L=function(e){return O(e,null)},z=function(e){return null===M(e)},D=["loading","loaded","applied","error"],N=function(e,t,i,s){e&&(void 0===s?void 0===i?e(t):e(t,i):e(t,i,s))},j=function(e,t){k?e.classList.add(t):e.className+=(e.className?" ":"")+t},H=function(e,t){k?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},B=function(e){return e.llTempImage},R=function(e,t){!t||(t=t._observer)&&t.unobserve(e)},F=function(e,t){e&&(e.loadingCount+=t)},q=function(e){var t;c(e)&&(t=e.llOriginalAttrs,s(e,"src",t.src),s(e,"srcset",t.srcset),s(e,"sizes",t.sizes))},W=function(e){a(e,"src"),a(e,"srcset"),a(e,"sizes")},V=function(e,t){e=e.parentNode;e&&"PICTURE"===e.tagName&&i(e).forEach(t)},U={IMG:function(e,t){V(e,function(e){d(e),u(e,t)}),d(e),u(e,t)},IFRAME:function(e,t){s(e,"src",P(e,t.data_src))},VIDEO:function(e,t){p(e,function(e){s(e,"src",P(e,t.data_src))}),s(e,"poster",P(e,t.data_poster)),s(e,"src",P(e,t.data_src)),e.load()}},Y=function(e,t,i){F(i,1),j(e,t.class_loading),O(e,"loading"),N(t.callback_loading,e,i)},G={IMG:function(e,t){I(e,t.data_src,null),I(e,t.data_srcset,null),I(e,t.data_sizes,null),V(e,function(e){I(e,t.data_srcset,null),I(e,t.data_sizes,null)})},IFRAME:function(e,t){I(e,t.data_src,null)},VIDEO:function(e,t){I(e,t.data_src,null),I(e,t.data_poster,null),p(e,function(e){I(e,t.data_src,null)})}},X=function(e,t){I(e,t.data_bg_multi,null),I(e,t.data_bg_multi_hidpi,null)},K=["IMG","IFRAME","VIDEO"],Q=function(e,t,i){e.removeEventListener(t,i)},Z=function(e){return!!e.llEvLisnrs},J=function(e){if(Z(e)){var t,i=e.llEvLisnrs;for(t in i){var s=i[t];Q(e,t,s)}delete e.llEvLisnrs}},ee=function(i,s,n){var a=B(i)||i;Z(a)||function(e){Z(e)||(e.llEvLisnrs={});var t="VIDEO"===e.tagName?"loadeddata":"load";g(e,t,function(e){!function(e,t,i,s){var n=r(t);v(t,i,s),j(t,i.class_loaded),O(t,"loaded"),f(t,i),N(i.callback_loaded,t,s),n||m(i,s)}(0,i,s,n),J(a)}),g(e,"error",function(e){!function(e,t,i,s){var n=r(t);v(t,i,s),j(t,i.class_error),O(t,"error"),N(i.callback_error,t,s),n||m(i,s)}(0,i,s,n),J(a)})}(a)},te=function(e,t,i){var s,n,a,o,r;-1<K.indexOf(e.tagName)?(ee(s=e,r=t,o=i),h(s,r),Y(s,r,o)):(n=t,a=i,(s=e).llTempImage=document.createElement("IMG"),ee(s,n,a),r=a,i=P(o=s,(t=n).data_bg),e=P(o,t.data_bg_hidpi),(i=$&&e?e:i)&&(o.style.backgroundImage='url("'.concat(i,'")'),B(o).setAttribute("src",i),Y(o,t,r)),t=a,s=P(r=s,(a=n).data_bg_multi),n=P(r,a.data_bg_multi_hidpi),(s=$&&n?n:s)&&(r.style.backgroundImage=s,t=t,j(r=r,(a=a).class_applied),O(r,"applied"),X(r,a),a.unobserve_completed&&R(r,a),N(a.callback_applied,r,t)))},ie=["IMG","IFRAME"];return e.prototype={update:function(e){var t,i,s,n=this._settings,a=S(e,n);l(this,a.length),!C&&E?y(n)?(i=n,s=this,a.forEach(function(e){var t;-1!==ie.indexOf(e.tagName)&&(e.setAttribute("loading","lazy"),ee(t=e,e=i,s),h(t,e),f(t,e),O(t,"native"))}),l(s,0)):(e=a,(n=this._observer).disconnect(),t=n,e.forEach(function(e){t.observe(e)})):this.loadAll(a)},destroy:function(){this._observer&&this._observer.disconnect(),x(this._settings).forEach(function(e){delete e.llOriginalAttrs}),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){var t=this,i=this._settings;S(e,i).forEach(function(e){R(e,t),te(e,i,t)})}},e.load=function(e,t){t=o(t);te(e,t)},e.resetStatus=function(e){L(e)},T&&function(e,t){if(t)if(t.length)for(var i,s=0;i=t[s];s+=1)n(e,i);else n(e,t)}(e,window.lazyLoadOptions),e}),function(t){"function"==typeof define&&define.amd?define(["jquery"],function(e){t(e,window,document)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window,document):t(jQuery,window,document)}(function(o,a,e,r){"use strict";var l="intlTelInput",i=1,s={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:!0,customPlaceholder:null,dropdownContainer:"",excludeCountries:[],formatOnInit:!0,geoIpLookup:null,initialCountry:"",nationalMode:!0,numberType:"MOBILE",onlyCountries:[],preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},c=38,d=40,u=13,p=27,t=43,h=65,f=90,m=32,n=9;function g(e,t){this.telInput=o(e),this.options=o.extend({},s,t),this.ns="."+l+i++,this.isGoodBrowser=Boolean(e.setSelectionRange),this.hadInitialPlaceholder=Boolean(o(e).attr("placeholder"))}o(a).on("load",function(){o.fn[l].windowLoaded=!0}),g.prototype={_init:function(){return this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1,this.options.allowDropdown=!0),this.isMobile=/Android.+Mobile|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(o("body").addClass("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer="body")),this.autoCountryDeferred=new o.Deferred,this.utilsScriptDeferred=new o.Deferred,this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests(),[this.autoCountryDeferred,this.utilsScriptDeferred]},_processCountryData:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries()},_addCountryCode:function(e,t,i){t in this.countryCodes||(this.countryCodes[t]=[]),this.countryCodes[t][i||0]=e},_filterCountries:function(e,t){for(var i=0;i<e.length;i++)e[i]=e[i].toLowerCase();for(this.countries=[],i=0;i<v.length;i++)t(o.inArray(v[i].iso2,e))&&this.countries.push(v[i])},_processAllCountries:function(){this.options.onlyCountries.length?this._filterCountries(this.options.onlyCountries,function(e){return-1!=e}):this.options.excludeCountries.length?this._filterCountries(this.options.excludeCountries,function(e){return-1==e}):this.countries=v},_processCountryCodes:function(){this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];if(this._addCountryCode(t.iso2,t.dialCode,t.priority),t.areaCodes)for(var i=0;i<t.areaCodes.length;i++)this._addCountryCode(t.iso2,t.dialCode+t.areaCodes[i])}},_processPreferredCountries:function(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var t=this.options.preferredCountries[e].toLowerCase(),t=this._getCountryData(t,!1,!0);t&&this.preferredCountries.push(t)}},_generateMarkup:function(){this.telInput.attr("autocomplete","off");var e="intl-tel-input";this.options.allowDropdown&&(e+=" allow-dropdown"),this.options.separateDialCode&&(e+=" separate-dial-code"),this.telInput.wrap(o("<div>",{class:e})),this.flagsContainer=o("<div>",{class:"flag-container"}).insertBefore(this.telInput);e=o("<div>",{class:"selected-flag"});e.appendTo(this.flagsContainer),this.selectedFlagInner=o("<div>",{class:"iti-flag"}).appendTo(e),this.options.separateDialCode&&(this.selectedDialCode=o("<div>",{class:"selected-dial-code"}).appendTo(e)),this.options.allowDropdown?(e.attr("tabindex","0"),o("<div>",{class:"iti-arrow"}).appendTo(e),this.countryList=o("<ul>",{class:"country-list hide"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"preferred"),o("<li>",{class:"divider"}).appendTo(this.countryList)),this._appendListItems(this.countries,""),this.countryListItems=this.countryList.children(".country"),this.options.dropdownContainer?this.dropdown=o("<div>",{class:"intl-tel-input iti-container"}).append(this.countryList):this.countryList.appendTo(this.flagsContainer)):this.countryListItems=o()},_appendListItems:function(e,t){for(var i="",s=0;s<e.length;s++){var n=e[s];i+="<li class='country "+t+"' data-dial-code='"+n.dialCode+"' data-country-code='"+n.iso2+"'>",i+="<div class='flag-box'><div class='iti-flag "+n.iso2+"'></div></div>",i+="<span class='country-name'>"+n.name+"</span>",i+="<span class='dial-code'>+"+n.dialCode+"</span>",i+="</li>"}this.countryList.append(i)},_setInitialState:function(){var e=this.telInput.val();this._getDialCode(e)?this._updateFlagFromNumber(e,!0):"auto"!==this.options.initialCountry&&(this.options.initialCountry?this._setFlag(this.options.initialCountry,!0):(this.defaultCountry=(this.preferredCountries.length?this.preferredCountries:this.countries)[0].iso2,e||this._setFlag(this.defaultCountry,!0)),e||this.options.nationalMode||this.options.autoHideDialCode||this.options.separateDialCode||this.telInput.val("+"+this.selectedCountryData.dialCode)),e&&this._updateValFromNumber(e,this.options.formatOnInit)},_initListeners:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initFocusListeners(),this.options.allowDropdown&&this._initDropdownListeners()},_initDropdownListeners:function(){var t=this,e=this.telInput.closest("label");e.length&&e.on("click"+this.ns,function(e){t.countryList.hasClass("hide")?t.telInput.focus():e.preventDefault()}),this.selectedFlagInner.parent().on("click"+this.ns,function(e){!t.countryList.hasClass("hide")||t.telInput.prop("disabled")||t.telInput.prop("readonly")||t._showDropdown()}),this.flagsContainer.on("keydown"+t.ns,function(e){!t.countryList.hasClass("hide")||e.which!=c&&e.which!=d&&e.which!=m&&e.which!=u||(e.preventDefault(),e.stopPropagation(),t._showDropdown()),e.which==n&&t._closeDropdown()})},_initRequests:function(){var e=this;this.options.utilsScript?o.fn[l].windowLoaded?o.fn[l].loadUtils(this.options.utilsScript,this.utilsScriptDeferred):o(a).on("load",function(){o.fn[l].loadUtils(e.options.utilsScript,e.utilsScriptDeferred)}):this.utilsScriptDeferred.resolve(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.autoCountryDeferred.resolve()},_loadAutoCountry:function(){var e=a.Cookies?Cookies.get("itiAutoCountry"):"";e&&(o.fn[l].autoCountry=e),o.fn[l].autoCountry?this.handleAutoCountry():o.fn[l].startedLoadingAutoCountry||(o.fn[l].startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(function(e){o.fn[l].autoCountry=e.toLowerCase(),a.Cookies&&Cookies.set("itiAutoCountry",o.fn[l].autoCountry,{path:"/"}),setTimeout(function(){o(".intl-tel-input input").intlTelInput("handleAutoCountry")})}))},_initKeyListeners:function(){var e=this;this.telInput.on("keyup"+this.ns,function(){e._updateFlagFromNumber(e.telInput.val())}),this.telInput.on("cut"+this.ns+" paste"+this.ns+" keyup"+this.ns,function(){setTimeout(function(){e._updateFlagFromNumber(e.telInput.val())})})},_cap:function(e){var t=this.telInput.attr("maxlength");return t&&e.length>t?e.substr(0,t):e},_initFocusListeners:function(){var i=this;this.telInput.on("mousedown"+this.ns,function(e){i.telInput.is(":focus")||i.telInput.val()||(e.preventDefault(),i.telInput.focus())}),this.telInput.on("focus"+this.ns,function(e){i.telInput.val()||i.telInput.prop("readonly")||!i.selectedCountryData.dialCode||(i.telInput.val("+"+i.selectedCountryData.dialCode),i.telInput.one("keypress.plus"+i.ns,function(e){e.which==t&&i.telInput.val("")}),setTimeout(function(){var e,t=i.telInput[0];i.isGoodBrowser&&(e=i.telInput.val().length,t.setSelectionRange(e,e))}))}),this.telInput.on("blur"+this.ns,function(){var e=i.telInput.val();"+"==e.charAt(0)&&((e=i._getNumeric(e))&&i.selectedCountryData.dialCode!=e||i.telInput.val("")),i.telInput.off("keypress.plus"+i.ns)})},_getNumeric:function(e){return e.replace(/\D/g,"")},_showDropdown:function(){this._setDropdownPosition();var e=this.countryList.children(".active");e.length&&(this._highlightListItem(e),this._scrollTo(e)),this._bindDropdownListeners(),this.selectedFlagInner.children(".iti-arrow").addClass("up")},_setDropdownPosition:function(){var e,t,i,s,n=this;this.options.dropdownContainer&&this.dropdown.appendTo(this.options.dropdownContainer),this.dropdownHeight=this.countryList.removeClass("hide").outerHeight(),this.isMobile||(t=(e=this.telInput.offset()).top,s=o(a).scrollTop(),i=t+this.telInput.outerHeight()+this.dropdownHeight<s+o(a).height(),s=t-this.dropdownHeight>s,this.countryList.toggleClass("dropup",!i&&s),this.options.dropdownContainer&&(s=!i&&s?0:this.telInput.innerHeight(),this.dropdown.css({top:t+s,left:e.left}),o(a).on("scroll"+this.ns,function(){n._closeDropdown()})))},_bindDropdownListeners:function(){var t=this;this.countryList.on("mouseover"+this.ns,".country",function(e){t._highlightListItem(o(this))}),this.countryList.on("click"+this.ns,".country",function(e){t._selectListItem(o(this))});var i=!0;o("html").on("click"+this.ns,function(e){i||t._closeDropdown(),i=!1});var s="",n=null;o(e).on("keydown"+this.ns,function(e){e.preventDefault(),e.which==c||e.which==d?t._handleUpDownKey(e.which):e.which==u?t._handleEnterKey():e.which==p?t._closeDropdown():(e.which>=h&&e.which<=f||e.which==m)&&(n&&clearTimeout(n),s+=String.fromCharCode(e.which),t._searchForCountry(s),n=setTimeout(function(){s=""},1e3))})},_handleUpDownKey:function(e){var t=this.countryList.children(".highlight").first(),t=e==c?t.prev():t.next();t.length&&(t.hasClass("divider")&&(t=e==c?t.prev():t.next()),this._highlightListItem(t),this._scrollTo(t))},_handleEnterKey:function(){var e=this.countryList.children(".highlight").first();e.length&&this._selectListItem(e)},_searchForCountry:function(e){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,e)){var i=this.countryList.children("[data-country-code="+this.countries[t].iso2+"]").not(".preferred");this._highlightListItem(i),this._scrollTo(i,!0);break}},_startsWith:function(e,t){return e.substr(0,t.length).toUpperCase()==t},_updateValFromNumber:function(e,t,i){t&&a.intlTelInputUtils&&this.selectedCountryData&&(o.isNumeric(i)||(i=this.options.nationalMode||"+"!=e.charAt(0)?intlTelInputUtils.numberFormat.NATIONAL:intlTelInputUtils.numberFormat.INTERNATIONAL),e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,i)),e=this._beforeSetNumber(e),this.telInput.val(e)},_updateFlagFromNumber:function(e,t){e&&this.options.nationalMode&&this.selectedCountryData&&"1"==this.selectedCountryData.dialCode&&"+"!=e.charAt(0)&&(e="+"+(e="1"!=e.charAt(0)?"1"+e:e));var i=this._getDialCode(e),s=null;if(i){var n=this.countryCodes[this._getNumeric(i)];if(!(this.selectedCountryData&&-1!=o.inArray(this.selectedCountryData.iso2,n))||this._isUnknownNanp(e,i))for(var a=0;a<n.length;a++)if(n[a]){s=n[a];break}}else"+"==e.charAt(0)&&this._getNumeric(e).length?s="":e&&"+"!=e||(s=this.defaultCountry);null!==s&&this._setFlag(s,t)},_isUnknownNanp:function(e,t){return"+1"==t&&4<=this._getNumeric(e).length},_highlightListItem:function(e){this.countryListItems.removeClass("highlight"),e.addClass("highlight")},_getCountryData:function(e,t,i){for(var s=t?v:this.countries,n=0;n<s.length;n++)if(s[n].iso2==e)return s[n];if(i)return null;throw new Error("No country data for '"+e+"'")},_setFlag:function(e,t){var i=this.selectedCountryData&&this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.attr("class","iti-flag "+e);var s,n=e?this.selectedCountryData.name+": +"+this.selectedCountryData.dialCode:"Unknown";this.selectedFlagInner.parent().attr("title",n),this.options.separateDialCode&&(s=this.selectedCountryData.dialCode?"+"+this.selectedCountryData.dialCode:"",n=this.telInput.parent(),i.dialCode&&n.removeClass("iti-sdc-"+(i.dialCode.length+1)),s&&n.addClass("iti-sdc-"+s.length),this.selectedDialCode.text(s)),this._updatePlaceholder(),this.countryListItems.removeClass("active"),e&&this.countryListItems.find(".iti-flag."+e).first().closest(".country").addClass("active"),t||i.iso2===e||this.telInput.trigger("countrychange",this.selectedCountryData)},_updatePlaceholder:function(){var e;a.intlTelInputUtils&&!this.hadInitialPlaceholder&&this.options.autoPlaceholder&&this.selectedCountryData&&(e=intlTelInputUtils.numberType[this.options.numberType],e=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,e):"",e=this._beforeSetNumber(e),"function"==typeof this.options.customPlaceholder&&(e=this.options.customPlaceholder(e,this.selectedCountryData)),this.telInput.attr("placeholder",e))},_selectListItem:function(e){this._setFlag(e.attr("data-country-code")),this._closeDropdown(),this._updateDialCode(e.attr("data-dial-code"),!0),this.telInput.focus(),this.isGoodBrowser&&(e=this.telInput.val().length,this.telInput[0].setSelectionRange(e,e))},_closeDropdown:function(){this.countryList.addClass("hide"),this.selectedFlagInner.children(".iti-arrow").removeClass("up"),o(e).off(this.ns),o("html").off(this.ns),this.countryList.off(this.ns),this.options.dropdownContainer&&(this.isMobile||o(a).off("scroll"+this.ns),this.dropdown.detach())},_scrollTo:function(e,t){var i=this.countryList,s=i.height(),n=i.offset().top,a=n+s,o=e.outerHeight(),r=e.offset().top,l=r+o,c=r-n+i.scrollTop(),e=s/2-o/2;r<n?(t&&(c-=e),i.scrollTop(c)):a<l&&(t&&(c+=e),i.scrollTop(c-(s-o)))},_updateDialCode:function(e,t){var i=this.telInput.val();if(e="+"+e,"+"==i.charAt(0))var s=this._getDialCode(i),s=s?i.replace(s,e):e;else{if(this.options.nationalMode||this.options.separateDialCode)return;if(i)s=e+i;else{if(!t&&this.options.autoHideDialCode)return;s=e}}this.telInput.val(s)},_getDialCode:function(e){var t="";if("+"==e.charAt(0))for(var i="",s=0;s<e.length;s++){var n=e.charAt(s);if(o.isNumeric(n)&&(i+=n,this.countryCodes[i]&&(t=e.substr(0,s+1)),4==i.length))break}return t},_getFullNumber:function(){return(this.options.separateDialCode?"+"+this.selectedCountryData.dialCode:"")+this.telInput.val()},_beforeSetNumber:function(e){var t;return!this.options.separateDialCode||(t=this._getDialCode(e))&&(t=" "===e[(t=null!==this.selectedCountryData.areaCodes?"+"+this.selectedCountryData.dialCode:t).length]||"-"===e[t.length]?t.length+1:t.length,e=e.substr(t)),this._cap(e)},handleAutoCountry:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=o.fn[l].autoCountry,this.telInput.val()||this.setCountry(this.defaultCountry),this.autoCountryDeferred.resolve())},destroy:function(){this.allowDropdown&&(this._closeDropdown(),this.selectedFlagInner.parent().off(this.ns),this.telInput.closest("label").off(this.ns)),this.telInput.off(this.ns),this.telInput.parent().before(this.telInput).remove()},getExtension:function(){return a.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""},getNumber:function(e){return a.intlTelInputUtils?intlTelInputUtils.formatNumber(this._getFullNumber(),this.selectedCountryData.iso2,e):""},getNumberType:function(){return a.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99},getSelectedCountryData:function(){return this.selectedCountryData||{}},getValidationError:function(){return a.intlTelInputUtils?intlTelInputUtils.getValidationError(this._getFullNumber(),this.selectedCountryData.iso2):-99},isValidNumber:function(){var e=o.trim(this._getFullNumber()),t=this.options.nationalMode?this.selectedCountryData.iso2:"";return a.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null},setCountry:function(e){e=e.toLowerCase(),this.selectedFlagInner.hasClass(e)||(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode,!1))},setNumber:function(e,t){this._updateFlagFromNumber(e),this._updateValFromNumber(e,o.isNumeric(t),t)},handleUtils:function(){a.intlTelInputUtils&&(this.telInput.val()&&this._updateValFromNumber(this.telInput.val(),this.options.formatOnInit),this._updatePlaceholder()),this.utilsScriptDeferred.resolve()}},o.fn[l]=function(i){var t,s=arguments;if(i===r||"object"==typeof i){var n=[];return this.each(function(){var e,t;o.data(this,"plugin_"+l)||(t=(e=new g(this,i))._init(),n.push(t[0]),n.push(t[1]),o.data(this,"plugin_"+l,e))}),o.when.apply(null,n)}if("string"==typeof i&&"_"!==i[0])return this.each(function(){var e=o.data(this,"plugin_"+l);e instanceof g&&"function"==typeof e[i]&&(t=e[i].apply(e,Array.prototype.slice.call(s,1))),"destroy"===i&&o.data(this,"plugin_"+l,null)}),t!==r?t:this},o.fn[l].getCountryData=function(){return v},o.fn[l].loadUtils=function(e,t){o.fn[l].loadedUtilsScript?t&&t.resolve():(o.fn[l].loadedUtilsScript=!0,o.ajax({url:e,complete:function(){o(".intl-tel-input input").intlTelInput("handleUtils")},dataType:"script",cache:!0}))},o.fn[l].version="8.4.7";for(var v=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81"],["Jersey","je","44",3],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy (Saint-Barthélemy)","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1]],y=0;y<v.length;y++){var b=v[y];v[y]={name:b[0],iso2:b[1],dialCode:b[2],priority:b[3]||0,areaCodes:b[4]||null}}}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.lightbox=t(e.jQuery)}(this,function(d){function e(e){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=d.extend({},this.constructor.defaults),this.option(e)}return e.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},e.prototype.option=function(e){d.extend(this.options,e)},e.prototype.imageCountLabel=function(e,t){return this.options.albumLabel.replace(/%1/g,e).replace(/%2/g,t)},e.prototype.init=function(){var e=this;d(document).ready(function(){e.enable(),e.build()})},e.prototype.enable=function(){var t=this;d("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(e){return t.start(d(e.currentTarget)),!1})},e.prototype.build=function(){var t;0<d("#lightbox").length||(t=this,d('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev" aria-label="Previous image" href="" ></a><a class="lb-next" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(d("body")),this.$lightbox=d("#lightbox"),this.$overlay=d("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return t.end(),!1}),this.$lightbox.hide().on("click",function(e){"lightbox"===d(e.target).attr("id")&&t.end()}),this.$outerContainer.on("click",function(e){return"lightbox"===d(e.target).attr("id")&&t.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===t.currentImageIndex?t.changeImage(t.album.length-1):t.changeImage(t.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return t.currentImageIndex===t.album.length-1?t.changeImage(0):t.changeImage(t.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(e){3===e.which&&(t.$nav.css("pointer-events","none"),t.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(t),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return t.end(),!1}))},e.prototype.start=function(e){var t=this,i=d(window);i.on("resize",d.proxy(this.sizeOverlay,this)),this.sizeOverlay(),this.album=[];var s=0;function n(e){t.album.push({alt:e.attr("data-alt"),link:e.attr("href"),title:e.attr("data-title")||e.attr("title")})}var a=e.attr("data-lightbox");if(a)for(var o=d(e.prop("tagName")+'[data-lightbox="'+a+'"]'),r=0;r<o.length;r=++r)n(d(o[r])),o[r]===e[0]&&(s=r);else if("lightbox"===e.attr("rel"))n(e);else{o=d(e.prop("tagName")+'[rel="'+e.attr("rel")+'"]');for(var l=0;l<o.length;l=++l)n(d(o[l])),o[l]===e[0]&&(s=l)}a=i.scrollTop()+this.options.positionFromTop,i=i.scrollLeft();this.$lightbox.css({top:a+"px",left:i+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&d("body").addClass("lb-disable-scrolling"),this.changeImage(s)},e.prototype.changeImage=function(n){var a=this,o=this.album[n].link,r=o.split(".").slice(-1)[0],l=this.$lightbox.find(".lb-image");this.disableKeyboardNav(),this.$overlay.fadeIn(this.options.fadeDuration),d(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var c=new Image;c.onload=function(){var e,t,i,s;l.attr({alt:a.album[n].alt,src:o}),d(c),l.width(c.width),l.height(c.height),s=d(window).width(),i=d(window).height(),s=s-a.containerPadding.left-a.containerPadding.right-a.imageBorderWidth.left-a.imageBorderWidth.right-20,i=i-a.containerPadding.top-a.containerPadding.bottom-a.imageBorderWidth.top-a.imageBorderWidth.bottom-a.options.positionFromTop-70,"svg"===r&&(l.width(s),l.height(i)),a.options.fitImagesInViewport?(a.options.maxWidth&&a.options.maxWidth<s&&(s=a.options.maxWidth),a.options.maxHeight&&a.options.maxHeight<i&&(i=a.options.maxHeight)):(s=a.options.maxWidth||c.width||s,i=a.options.maxHeight||c.height||i),(c.width>s||c.height>i)&&(c.width/s>c.height/i?(t=s,e=parseInt(c.height/(c.width/t),10)):(e=i,t=parseInt(c.width/(c.height/e),10)),l.width(t),l.height(e)),a.sizeContainer(l.width(),l.height())},c.src=this.album[n].link,this.currentImageIndex=n},e.prototype.sizeOverlay=function(){var e=this;setTimeout(function(){e.$overlay.width(d(document).width()).height(d(document).height())},0)},e.prototype.sizeContainer=function(e,t){var i=this,s=this.$outerContainer.outerWidth(),n=this.$outerContainer.outerHeight(),a=e+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,o=t+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;function r(){i.$lightbox.find(".lb-dataContainer").width(a),i.$lightbox.find(".lb-prevLink").height(o),i.$lightbox.find(".lb-nextLink").height(o),i.$overlay.focus(),i.showImage()}s!==a||n!==o?this.$outerContainer.animate({width:a,height:o},this.options.resizeDuration,"swing",function(){r()}):r()},e.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},e.prototype.updateNav=function(){var e=!1;try{document.createEvent("TouchEvent"),e=!!this.options.alwaysShowNavOnTouchDevices}catch(e){}this.$lightbox.find(".lb-nav").show(),1<this.album.length&&(this.options.wrapAround?(e&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(0<this.currentImageIndex&&(this.$lightbox.find(".lb-prev").show(),e&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),e&&this.$lightbox.find(".lb-next").css("opacity","1"))))},e.prototype.updateDetails=function(){var e,t=this;void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title&&(e=this.$lightbox.find(".lb-caption"),this.options.sanitizeTitle?e.text(this.album[this.currentImageIndex].title):e.html(this.album[this.currentImageIndex].title),e.fadeIn("fast")),1<this.album.length&&this.options.showImageNumberLabel?(e=this.imageCountLabel(this.currentImageIndex+1,this.album.length),this.$lightbox.find(".lb-number").text(e).fadeIn("fast")):this.$lightbox.find(".lb-number").hide(),this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return t.sizeOverlay()})},e.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link),0<this.currentImageIndex&&((new Image).src=this.album[this.currentImageIndex-1].link)},e.prototype.enableKeyboardNav=function(){this.$lightbox.on("keyup.keyboard",d.proxy(this.keyboardAction,this)),this.$overlay.on("keyup.keyboard",d.proxy(this.keyboardAction,this))},e.prototype.disableKeyboardNav=function(){this.$lightbox.off(".keyboard"),this.$overlay.off(".keyboard")},e.prototype.keyboardAction=function(e){var t=e.keyCode;27===t?(e.stopPropagation(),this.end()):37===t?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&1<this.album.length&&this.changeImage(this.album.length-1):39===t&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&1<this.album.length&&this.changeImage(0))},e.prototype.end=function(){this.disableKeyboardNav(),d(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),this.options.disableScrolling&&d("body").removeClass("lb-disable-scrolling")},new e});var quickViewgalleryThumbs,mobile_image_swiper,quickViewgalleryTop,custom_url=location.href,is_rtl=$("#body").data("is-rtl"),mode=1==is_rtl?"right":"left";const is_loggedin=$("#is_loggedin").val(),Toast=Swal.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0});function queryParams(e){return{limit:e.limit,sort:e.sort,order:e.order,offset:e.offset,search:e.search}}var currency=$("#currency").val(),auth_settings=$("#auth_settings").val(),allow_items_in_cart=$("#allow_items_in_cart").val(),decimal_point=$("#decimal_point").val(),low_stock_limit=$("#low_stock_limit").val();function onSignInSubmit(e){var t;e.preventDefault(),isPhoneNumberValid()&&($("#send-otp-button").html("Please Wait..."),t=is_user_exist(),updateSignInButtonUI(),1==t.error?($("#is-user-exist-error").html(t.message),$("#send-otp-button").html("Send OTP")):(window.signingIn=!0,e=getPhoneNumberFromUserInput(),t=window.recaptchaVerifier,firebase.auth().signInWithPhoneNumber(e,t).then(function(s){$("#send-otp-button").html("Send OTP"),$(".send-otp-form").unblock(),window.signingIn=!1,updateSignInButtonUI(),resetRecaptcha(),$("#send-otp-form").hide(),$("#otp_div").show(),$("#verify-otp-form").removeClass("d-none"),$(document).on("submit","#verify-otp-form",function(e){e.preventDefault(),$("#registration-error").html("");var e=$("#otp").val(),t=new FormData(this),i=$(this).attr("action");$("#register_submit_btn").html("Please Wait...").attr("disabled",!0),s.confirm(e).then(function(e){t.append(csrfName,csrfHash),t.append("mobile",$("#phone-number").val()),t.append("country_code",$(".selected-dial-code").text()),$.ajax({type:"POST",url:i,data:t,processData:!1,contentType:!1,cache:!1,dataType:"json",beforeSend:function(){$("#register_submit_btn").html("Please Wait...").attr("disabled",!0)},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,1==e.error?($("#register_submit_btn").html("Submit").attr("disabled",!1),Toast.fire({icon:"error",title:e.message})):(Toast.fire({icon:"success",title:e.message}),$("#register_submit_btn").html("Submit").attr("disabled",!1),$("#registration-error").html(e.message).show(),$("#modal-signup").hide(),$("#modal-signup").addClass("d-none"),$("#modal-signin").show(),$("#modal-signin").addClass("d-block show"))}})}).catch(function(e){$("#register_submit_btn").html("Please Wait...").attr("disabled",!0),$("#registration-error").html("Invalid OTP. Please Enter Valid OTP").show()})})}).catch(function(e){window.signingIn=!1,$("#is-user-exist-error").html(e.message).show(),$("#send-otp-button").html("Send OTP"),updateSignInButtonUI(),resetRecaptcha()})))}function getPhoneNumberFromUserInput(){return $(".selected-dial-code").html()+$("#phone-number").val()}function isPhoneNumberValid(){return-1!==getPhoneNumberFromUserInput().search(/^\+[0-9\s\-\(\)]+$/)}function resetRecaptcha(){return window.recaptchaVerifier.render().then(function(e){grecaptcha.reset(e)})}function updateSignInButtonUI(){}function is_user_exist(e=""){var t,i=$(".selected-dial-code").text(),e=""==e?$("#phone-number").val():e;return $.ajax({type:"POST",async:!1,url:base_url+"auth/verify_user",data:{mobile:e,country_code:i,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,t=e}}),t}function formatRepo(e){var t="";e.suggestion_keyword&&(t="<div class='select2-result-repository clearfix'><div class='select2-result-repository__meta_icon d-flex flex-row justify-content-between align-items-center'><a href="+base_url+"products/search?q="+encodeURIComponent(e.suggestion_keyword)+" class='text-dark text-decoration-none d-flex flex-row align-items-center'><div class='select2-result-repository__icon mx-0'><i class='fa fa-search'></i></div><div class='select2-result-repository__title' id='search_word'>"+e.suggestion_keyword+"</div></a><button class='select2-result-repository__icon search_btn' onclick=\"copySearchMobile('"+e.suggestion_keyword+"')\"><i class='font-weight-bold fs-20 uil uil-arrow-up-left'></i></button></div></div>");var i="<div class='select2-result-repository clearfix'>";return e.image_sm&&(i+="<div class='select2-result-repository__avatar'><img src='"+e.image_sm+"' /></div>"),i+="<div class='select2-result-repository__meta'>",e.name&&(i+="<div class='select2-result-repository__title'>"+e.name+"</div>"),e.category_name&&(i+="<div class='select2-result-repository__description'> In "+e.category_name+"</div>"),i+="</div></div>",e.loading?e.text:t+i}function copySearchMobile(e){navigator.clipboard.writeText(e).then(function(){document.querySelector(".select2-search__field").value=e,document.querySelector("#search-product").dispatchEvent(new Event("input"))}).catch(function(e){console.error("Error copying keyword: ",e)})}function copySearch(e){navigator.clipboard.writeText(e).then(function(){document.querySelector("#search-product").value=e,search_product_result()}).catch(function(e){console.error("Error copying keyword: ",e)})}function formatRepoSelection(e){const t=e.suggestion_keyword||e.name||e.text;return 40<t.length?t.substring(0,30)+"...":t}$(document).on("select2:open",()=>{document.querySelector(".select2-search__field").focus()}),$(document).ready(function(){$(".description_img img").each(function(){$("img").removeAttr("height")})}),"firebase"==auth_settings&&(window.onload=function(){document.getElementById("send-otp-form").addEventListener("submit",onSignInSubmit),document.getElementById("phone-number").addEventListener("keyup",updateSignInButtonUI),document.getElementById("phone-number").addEventListener("change",updateSignInButtonUI)}),"sms"==auth_settings&&($(document).on("click","#send-otp-button",function(e){e.preventDefault();var t=$("#phone-number").val(),e=$(".selected-dial-code").text();$.ajax({type:"POST",async:!1,url:base_url+"auth/verify_user",data:{mobile:t,country_code:e,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,1==e.error?($("#registration-user-error").html(e.message).show(),Toast.fire({icon:"error",title:e.message})):($("#send-otp-form").hide(),$("#verify-otp-form").removeClass("d-none"))}})}),$(document).on("submit","#verify-otp-form",function(e){e.preventDefault(),$("#registration-error").html("");$("#otp").val();var t=new FormData(this),e=$(this).attr("action");$("#register_submit_btn").html("Please Wait...").attr("disabled",!0),t.append(csrfName,csrfHash),t.append("mobile",$("#phone-number").val()),t.append("country_code",$(".selected-dial-code").text()),$.ajax({type:"POST",url:e,data:t,processData:!1,contentType:!1,cache:!1,dataType:"json",beforeSend:function(){$("#register_submit_btn").html("Please Wait...").attr("disabled",!0)},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,1==e.error?($("#register_submit_btn").html("Submit").attr("disabled",!1),Toast.fire({icon:"error",title:e.message})):(Toast.fire({icon:"success",title:e.message}),$("#register_submit_btn").html("Submit").attr("disabled",!1),$("#registration-error").html(e.message).show(),$("#modal-signup").hide(),$("#modal-signup").addClass("d-none"),$("#modal-signin").show(),$("#modal-signin").addClass("d-block show"),$("#modal-signup").attr("aria-hidden","true"),$("#modal-signup").attr("inert","true"),$("#main-content").removeAttr("inert"))}})}),$("#modal-signin").on("hidden.bs.modal",function(){$("#login_div").hasClass("hide")&&($("#login_div").removeClass("hide"),$("#forgot_password_div").addClass("hide"))}),$(document).on("click",".forgot-send-otp-btn",function(e){e.preventDefault();var t=$("#forgot_password_number").val(),i=$("#forget_password_val").val(),e=$(".selected-dial-code").text();$.ajax({type:"POST",async:!1,url:base_url+"auth/verify_user",data:{mobile:t,county_code:e,forget_password_val:i,[csrfName]:csrfHash},dataType:"json",success:function(e){0==e.error?(csrfName=e.csrfName,csrfHash=e.csrfHash,$("#verify_forgot_password_otp_form").removeClass("d-none"),$("#send_forgot_password_otp_form").hide(),$("#verify-otp-form").removeClass("d-none")):Toast.fire({icon:"error",title:e.message})}})}),$(document).on("submit","#verify_forgot_password_otp_form",function(e){e.preventDefault();var t=$("#reset_password_submit_btn").html(),i=($("#forgot_password_otp").val(),new FormData(this)),e=base_url+"admin/home/reset-password";$("#reset_password_submit_btn").html("Please Wait...").attr("disabled",!0),i.append(csrfName,csrfHash),i.append("mobile",$("#forgot_password_number").val()),$.ajax({type:"POST",url:e,data:i,processData:!1,contentType:!1,cache:!1,dataType:"json",beforeSend:function(){$("#reset_password_submit_btn").html("Please Wait...").attr("disabled",!0)},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,$("#reset_password_submit_btn").html(t).attr("disabled",!1),$("#set_password_error_box").html(e.message).show(),0==e.error&&setTimeout(function(){window.location.reload()},2e3)}})})),$(document).on("submit",".form-submit-event",function(e){e.preventDefault();var t=new FormData(this),i=$(this).attr("id"),s=$("#error_box",this),n=$(this).find(".submit_btn"),a=$(this).find(".submit_btn").html(),e=$(this).find(".submit_btn").val(),o=""!=a||"undefined"!=a?a:e;t.append(csrfName,csrfHash),$.ajax({type:"POST",url:$(this).attr("action"),data:t,beforeSend:function(){n.html("Please Wait.."),n.attr("disabled",!0)},cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,1==e.error?(s.addClass("rounded p-3 alert alert-danger").removeClass("d-none alert-success"),s.show().delay(5e3).fadeOut(),s.html(e.message),n.html(o),n.attr("disabled",!1)):(s.addClass("rounded p-3 alert alert-success").removeClass("d-none alert-danger"),s.show().delay(3e3).fadeOut(),s.html(e.message),n.html(o),n.attr("disabled",!1),$(".form-submit-event")[0].reset(),"login_form"==i&&cart_sync(),setTimeout(function(){location.reload()},600))}})}),$(document).on("click","#resend-otp",function(e){e.preventDefault()}),$(document).on("click","#user_logout",function(e){e.preventDefault(),Swal.fire({title:"Are You Sure!",text:"You won't to logout",type:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes!",showLoaderOnConfirm:!0,preConfirm:function(){return new Promise((e,t)=>{$.ajax({type:"POST",url:base_url+"login/logout",data:{[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,localStorage.removeItem("compare"),Swal.fire("Success","Logout successfully !","success"),setTimeout(function(){window.location.reload()},600)}})})},allowOutsideClick:!1}).then(e=>{e.dismiss===Swal.DismissReason.cancel&&Swal.fire("Cancelled!","You are logged in","error")})}),$(document).on("submit",".sign-up-form",function(e){e.preventDefault();e=$(".selected-dial-code").html();$phonenumber=$("#phone-number").val(),$username=$('input[name="username"]').val(),$email=$('input[name="email"]').val(),$passwd=$('input[name="password"]').val(),$.ajax({type:"POST",url:base_url+"auth/register_user",data:{country_code:e,type:"phone",mobile:$phonenumber,name:$username,email:$email,password:$passwd,[csrfName]:csrfHash},dataType:"json",success:function(e){1==e.error&&$("#sign-up-error").html('<span class="text-danger" >'+e.message+"</span>")}})});var search_products_mobile=$(".search_product_mobile").select2({ajax:{url:base_url+"home/get_products",dataType:"json",delay:250,data:function(e){return{search:e.term,page:e.page}},processResults:function(e,t){var i=Array.isArray(e.suggestion_keywords)?e.suggestion_keywords:[],s=Array.isArray(e.data)?e.data:[],s=i.concat(s);return console.log(e),t.page=t.page||1,{results:s,pagination:{more:30*t.page<e.total}}},cache:!0},theme:"bootstrap-5",escapeMarkup:function(e){return e},minimumInputLength:1,templateResult:formatRepo,templateSelection:formatRepoSelection,placeholder:"Search for products, brands or categories"});search_products_mobile.on("select2:select",function(e){e=e.params.data;null!=e.link&&null!=e.link&&(window.location.href=e.link)}),$("#leftside-navigation .sub-menu > a").click(function(e){$("#leftside-navigation ul ul").slideUp(),$("#leftside-navigation .sub-menu > a").next().is(":visible")||$("#leftside-navigation .sub-menu > a").find(".arrow").removeClass("fa-angle-down").addClass("fa-angle-left"),$(this).find(".arrow").hasClass("fa-angle-left")?$(this).find(".arrow").removeClass("fa-angle-left").addClass("fa-angle-down"):$(this).find(".arrow").removeClass("fa-angle-down").addClass("fa-angle-left"),$(this).next().is(":visible")||$(this).next().slideDown(),e.stopPropagation()}),$("li.has-ul").click(function(){$(this).children(".sub-ul").slideToggle(500),$(this).toggleClass("active"),event.preventDefault()}),$(".add-to-fav-btn").on("click",function(e){e.preventDefault();var t=new FormData,e=$(this).data("product-id"),i=$(this);t.append(csrfName,csrfHash),t.append("product_id",e),$.ajax({type:"POST",url:base_url+"my-account/manage-favorites",data:t,cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,1==e.error?Toast.fire({icon:"error",title:e.message}):i.hasClass("fa-heart-o")?(i.removeClass("fa-heart-o"),i.addClass("fa-heart text-danger"),Toast.fire({icon:"success",title:e.message})):i.hasClass("fa-heart")&&(i.removeClass("fa-heart text-danger"),i.addClass("fa-heart-o").css("color",""),Toast.fire({icon:"success",title:e.message}))}})}),$(document).on("click","#add_to_favorite_btn",function(e){e.preventDefault();var t=new FormData,e=$(this).data("product-id"),i=$(this);$(this).html();t.append(csrfName,csrfHash),t.append("product_id",e),$.ajax({type:"POST",url:base_url+"my-account/manage-favorites",data:t,cache:!1,contentType:!1,processData:!1,dataType:"json",beforeSend:function(){i.attr("disabled",!0),i.find("span").text("Please wait")},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,1==e.error?Toast.fire({icon:"error",title:e.message}):i.hasClass("fa-heart-o")?(i.removeClass("fa-heart-o"),i.addClass("fa-heart").css("color","red"),Toast.fire({icon:"success",title:e.message})):i.hasClass("fa-heart")&&(i.removeClass("fa-heart"),i.addClass("fa-heart-o").css("color",""),Toast.fire({icon:"success",title:e.message}))}})}),$(function(){var e,n,l;function a(e,a,o,r="#user_image_data"){$("#review-image-title").data("review-offset",o+a),$.getJSON(base_url+"products/get_rating?product_id="+e+"&has_images=1&limit="+a+"&offset="+o,function(e){$("#review-image-title").data("review-offset",o+a),l="";if(0==e.error)for(var t=0;t<e.data.product_rating.length;t++)for(var i=e.data.product_rating[t],s=0;s<i.images.length;s++){var n=i.images;l+="<div class='review-box m-2'><a href='"+n[s]+"' data-lightbox='review-images-12345' data-title='<font >"+i.rating+" ★</font></br>"+i.user_name+"<br>"+i.comment+"'><img src='"+n[s]+"' alt='Review Image' style='height: 70px; width: 70px;'></a></div>"}else $("#review-image-title").data("reached-end","true");$(r).append(l)})}$(".auth-modal").iziModal({overlayClose:!1,overlayColor:"rgba(0, 0, 0, 0.6)"}),$("#user-review-images").length&&(e=$("#review-image-title").data("review-title"),n=$("#review-image-title").data("product-id"),l="",$("#user-review-images").iziModal({overlayClose:!1,overlayColor:"rgba(0, 0, 0, 0.6)",title:e,arrowKeys:!1,fullscreen:!0,onOpening:function(e){e.startLoading();var t=$("#review-image-title").data("review-limit"),i=$("#review-image-title").data("review-offset"),s=$("#review-image-title").data("reached-end");$("#load_more_div").html('<div id="load_more"></div>'),0==s&&a(n,t,i),e.stopLoading()},onOpened:function(){$("div").bind("wheel",function(e){var t,i,s;$("#load_more").length&&$(this).scrollTop()+$(this).innerHeight()>=$(this)[0].scrollHeight&&(t=$("#review-image-title").data("product-id"),i=$("#review-image-title").data("review-limit"),s=$("#review-image-title").data("review-offset"),0==$("#review-image-title").data("reached-end")&&a(t,i,s))})}})),$("#seller_info").length&&$("#seller_info").iziModal({overlayClose:!0,overlayColor:"rgba(0, 0, 0, 0.6)",title:"Sold By",headerColor:"#f44336c4",arrowKeys:!1,fullscreen:!0,onOpening:function(e){e.startLoading(),e.stopLoading()}}),$("#quick-view").iziModal({overlayClose:!1,overlayColor:"rgba(0, 0, 0, 0.6)",width:1e3,onOpening:function(c){c.startLoading(),$("#modal-product-tags").html(""),$.getJSON(base_url+"products/get-details/"+c.$element.data("dataProductId"),function(i){var s=0;$("#modal-add-to-cart-button").attr("data-product-id",i.id),$("#modal-buy-now-button").attr("data-product-id",i.id),$("#modal-add-to-cart-button").attr("data-product-slug",i.slug),$("#modal-buy-now-button").attr("data-product-slug",i.slug),"simple_product"==i.type||"digital_product"==i.type?($("#modal-add-to-cart-button").attr("data-product-variant-id",i.variants[0].id),$("#modal-buy-now-button").attr("data-product-variant-id",i.variants[0].id)):($("#modal-add-to-cart-button").attr("data-product-variant-id",""),$("#modal-buy-now-button").attr("data-product-variant-id","")),1!=i.minimum_order_quantity&&""!=i.minimum_order_quantity&&"undefined"!=i.minimum_order_quantity?($(".in-num").attr({"data-min":i.minimum_order_quantity}),$(".minus").attr({"data-min":i.minimum_order_quantity}),$("#modal-add-to-cart-button").attr({"data-min":i.minimum_order_quantity}),$("#modal-buy-now-button").attr({"data-min":i.minimum_order_quantity})):($(".in-num").attr({"data-min":1}),$(".minus").attr({"data-min":1}),$("#modal-add-to-cart-button").attr({"data-min":1}),$("#modal-buy-now-button").attr({"data-min":1})),1!=i.quantity_step_size&&""!=i.quantity_step_size&&"undefined"!=i.quantity_step_size?($(".in-num").attr({"data-step":i.quantity_step_size}),$(".minus").attr({"data-step":i.quantity_step_size}),$(".plus").attr({"data-step":i.quantity_step_size}),$("#modal-add-to-cart-button").attr({"data-step":i.quantity_step_size}),$("#modal-buy-now-button").attr({"data-step":i.quantity_step_size})):($(".in-num").attr({"data-step":1}),$(".minus").attr({"data-step":1}),$(".plus").attr({"data-step":1}),$("#modal-add-to-cart-button").attr({"data-step":1}),$("#modal-buy-now-button").attr({"data-step":1})),""!=i.total_allowed_quantity&&"undefined"!=i.total_allowed_quantity&&null!=i.total_allowed_quantity?($(".in-num").attr({"data-max":i.total_allowed_quantity}),$(".plus").attr({"data-max":i.total_allowed_quantity}),$("#modal-add-to-cart-button").attr({"data-max":i.total_allowed_quantity}),$("#modal-buy-now-button").attr({"data-max":i.total_allowed_quantity})):($(".in-num").attr({"data-max":1}),$(".plus").attr({"data-max":1}),$("#modal-add-to-cart-button").attr({"data-max":1}),$("#modal-buy-now-button").attr({"data-max":1}));var e="";i.name&&(e='<a class="text-decoration-none" title="'+i.name+'" target="_blank" href="'+base_url+"products/details/"+i.product_slug+'"><p class="text-dark">'+i.name+"</p></a>",$("#modal-product-title").html(e)),$("#modal-product-short-description").text(processDescription(i.short_description,20)),a="simple_product"==i.type?i.stock:i.total_stock,$("#modal-product-total-stock").attr({"data-stock":a}),$("#modal-product-rating").rating("update",i.rating),i.variants[0].special_price<i.variants[0].price&&0!=i.variants[0].special_price?i.variants[0].special_price:i.variants[0].price,$("#modal-product-price").html(currency+" "+i.variants[0].special_price),$("#modal-product-special-price").html(currency+" "+i.variants[0].price),quickViewgalleryThumbs=new Swiper(".gallery-thumbs",{spaceBetween:10,slidesPerView:4,freeMode:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0}),quickViewgalleryTop=new Swiper(".gallery-top",{spaceBetween:10,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},thumbs:{swiper:quickViewgalleryThumbs},clickable:!0}),mobile_image_swiper=new Swiper(".mobile-image-swiper",{pagination:{el:".mobile-image-swiper-pagination"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},clickable:!0}),quickViewgalleryThumbs.removeAllSlides(),quickViewgalleryTop.removeAllSlides(),mobile_image_swiper.removeAllSlides();var t=$('<div class="swiper-slide" style="height:100px; width:108px;"><img src="'+base_url+"media/image?path="+i.relative_path+'&width=400&quality=80" alt="" /></div>');$(".swiper-wrapper-thumbs").append(t);var e=$('<div class="swiper-slide swiper-image"><div class=product-view-image-container" id="product-view-image-container"><img src="'+base_url+"media/image?path="+i.relative_path+'&width=900&quality=80" class="rounded" alt="" /></div></div>');$(".swiper-wrapper-main").append(e);var n=$('<div class="swiper-slide text-center"><img src="'+base_url+"media/image?path="+i.relative_path+'&width=900&quality=80"></div>');$(".mobile-swiper").append(n);var a=i.variants.map(function(e,t){return e.variant_relative_path});$.each(a,function(e,t){null!=t&&""!=t&&$.each(t,function(e,t){var i=$('<div class="swiper-slide" style="height:100px; width:108px;"><img src="'+base_url+"media/image?path="+t+'&width=400&quality=80" alt="" /></div>');$(".swiper-wrapper-thumbs").append(i);i=$('<div class="swiper-slide swiper-image"><div class=product-view-image-container"><img src="'+base_url+"media/image?path="+t+'&width=900&quality=80" class="rounded" alt="" /></div></div>');$(".swiper-wrapper-main").append(i),n=$('<div class="swiper-slide text-center"><img src="'+base_url+"media/image?path="+t+'&width=900&quality=80"></div>'),$(".mobile-swiper").append(n)})}),$.each(i.other_images_relative_path,function(e,t){s++;var i=$('<div class="swiper-slide" style="height:100px; width:108px;"><img src="'+base_url+"media/image?path="+t+'&width=400&quality=80" alt="" /></div>');$(".swiper-wrapper-thumbs").append(i);i=$('<div class="swiper-slide swiper-image"><div class="product-view-image-container"><img src="'+base_url+"media/image?path="+t+'&width=900&quality=80" class="rounded" alt="" /></div></div>');$(".swiper-wrapper-main").append(i),n=$('<div class="swiper-slide text-center"><img src="'+base_url+"media/image?path="+t+'&width=900&quality=80"></div>'),$(".mobile-swiper").append(n)}),1<t.length&&quickViewgalleryThumbs.addSlide(1,t),1<e.length&&quickViewgalleryTop.addSlide(1,e),1<n.length&&mobile_image_swiper.addSlide(1,n);var r="";$.each(i.variant_attributes,function(e,s){var t=s.ids.split(","),n=s.values.split(","),a=s.swatche_type.split(","),o=s.swatche_value.split(",");r+="<h4>"+s.attr_name+'</h4><div class="overflow-auto"><div class="btn-group btn-group-toggle gap-1" data-toggle="buttons">',$.each(t,function(e,t){var i;"1"==a[e]?(i='style="background-color:'+o[e]+'";',r+='<style> .product-page-details .btn-group>.active { border: 1px solid black;}</style><label class="btn text-center fullCircle rounded-circle p-3 h-0"'+i+'><input type="radio" name="'+s.attr_name+'" value="'+t+'" class="modal-product-attributes" autocomplete="off"><br></label>'):"2"==a[e]?r+='<style> .product-page-details .btn-group>.active { color: #000000; border: 1px solid black;}</style><label class="btn text-center bg-transparent h-10 w-10"><img class="swatche-image h-10 w-10" src="'+o[e]+'"><input type="radio" name="'+s.attr_name+'" value="'+t+'" class="modal-product-attributes" autocomplete="off"><br></label>':r+='<style> .product-page-details .btn-group>.active { background-color: var(--primary-color);color: white!important;}</style><label class="btn btn-default text-center rounded-2 btn-aqua btn-sm"><input type="radio" name="'+s.attr_name+'" value="'+t+'" class="modal-product-attributes" autocomplete="off">'+n[e]+"<br></label>"}),r+="</div></div>"});var t=0==i.is_deliverable?"danger":"success",e=0==i.is_deliverable?"not":"",t=""!=i.zipcode&&void 0!==i.zipcode?'<b class="text-'+t+'">Product is '+e+" delivarable on &quot; "+i.zipcode+" &quot; </b>":"";1==i.check_deliverability.city_wise_deliverability&&("digital_product"!=i.type?r+='<form class="mt-2 validate_city_quick_view "   method="post" ><div class="d-flex flex-nowrap input-group"><div class="pl-0"><input type="hidden" name="product_id" value="'+i.id+'"><input type="hidden" name="'+csrfName+'" value="'+csrfHash+'"><input type="text" class="form-control" id="city" placeholder="city" name="city" required value=""></div><button type="submit" class="btn btn-sm ml-0 btn-primary check-availability" data-product_id="'+i.id+'"  data-city=""  id="validate_city">Check Availability</button></div><div class="mt-2" id="error_box1">'+t+" </div> </form>":r+='<form class="mt-2 validate_city_quick_view "   method="post" ><div class="d-flex"><div class=" col-md-6 pl-0"><input type="hidden" name="product_id" value="'+i.id+'"><input type="hidden" name="'+csrfName+'" value="'+csrfHash+'"></div></div><div class="mt-2" id="error_box1">'+t+" </div> </form>"),1==i.check_deliverability.pincode_wise_deliverability&&("digital_product"!=i.type?r+='<form class="mt-2 validate_zipcode_quick_view "   method="post" ><div class="d-flex flex-nowrap input-group"><div class="pl-0"><input type="hidden" name="product_id" value="'+i.id+'"><input type="hidden" name="'+csrfName+'" value="'+csrfHash+'"><input type="text" class="form-control" id="zipcode" placeholder="Zipcode" name="zipcode" required value="'+i.zipcode+'"></div><button type="submit" class="btn btn-sm ml-0 btn-primary check-availability" data-product_id="'+i.id+'"  data-zipcode="'+i.zipcode+'"  id="validate_zipcode">Check Availability</button></div><div class="mt-2" id="error_box1">'+t+" </div> </form>":r+='<form class="mt-2 validate_zipcode_quick_view "   method="post" ><div class="d-flex"><div class=" col-md-6 pl-0"><input type="hidden" name="product_id" value="'+i.id+'"><input type="hidden" name="'+csrfName+'" value="'+csrfHash+'"></div></div><div class="mt-2" id="error_box1">'+t+" </div> </form>"),$("#modal-product-variant-attributes").html(r),0==i.is_deliverable&&""!=i.zipcode&&void 0!==i.zipcode?($("#modal-add-to-cart-button").attr("disabled","true"),$("#modal-buy-now-button").attr("disabled","true")):($("#modal-add-to-cart-button").removeAttr("disabled"),$("#modal-buy-now-button").removeAttr("disabled"));var o="",s=1;$.each(i.variants,function(e,t){o+='<input type="hidden" class="modal-product-variants" data-image-index="'+s+'" name="variants_ids" data-name="'+i.name+'" value="'+t.variant_ids+'" data-id="'+t.id+'" data-price="'+t.price+'" data-special_price="'+t.special_price+'">',s+=t.images.length}),$("#modal-product-variants-div").html(o),$("#add_to_favorite_btn").attr("data-product-id",i.id),1==i.is_favorite?($("#add_to_favorite_btn").addClass("remove-fav"),$("#add_to_favorite_btn").find("span").text("Remove From Favorite")):($("#add_to_favorite_btn").addClass("add-fav"),$("#add_to_favorite_btn").find("span").text("Add to Favorite")),$("#compare").attr("data-product-id",i.id),"simple_product"==i.type?$("#compare").attr("data-product-variant-id",i.variants[0].id):$("#compare").attr("data-product-variant-id","");var l;$.each(i,function(e,t){i.id,i.variants.id}),1<=i.no_of_ratings?$("#modal-product-no-of-ratings").text(i.no_of_ratings):$("#modal-product-no-of-ratings").text("No"),$.isEmptyObject(i.tags)||(l="Tags ",$.each(i.tags,function(e,t){l+='<a href="'+base_url+"products/tags/"+t+'" target="_blank"><span class="badge badge-secondary p-1 mr-1">'+t+"</span></a>"}),$("#modal-product-tags").html(l));e="",t="";i.brand&&(t='<h5>Brand : </h5><a class="text-decoration-none" target="_blank" href="'+base_url+"products?brand="+i.brand_slug+'"><p class="text-danger">'+i.brand+"</p></a>",$("#modal-product-brand").html(t)),i.seller_name&&(e='<p> <span class="text-secondary"> Sold by </span> <a class="text text-danger text-decoration-none" target="_blank" href="'+base_url+"products?seller="+i.seller_slug+'">'+i.seller_name+'</a> <span class="badge badge-success ">'+i.seller_rating+' <i class="fa fa-star"></i></span> <small class="text-muted"> Out of</small> <b> '+i.seller_no_of_ratings+" </b></p>",$("#modal-product-sellers").html(e)),c.stopLoading()})}}),$(document).on("change",".modal-product-attributes",function(e){e.preventDefault();var t,s,n=[],a="",o=!1,i=[],r=[],l=[],c=[],d=[],u=[];$(".modal-product-variants").each(function(){r={price:$(this).data("price"),special_price:$(this).data("special_price")},d.push($(this).data("id")),l.push(r),i=$(this).val().split(","),c.push(i),u.push($(this).data("image-index"))}),t=i.length,$(".modal-product-attributes").each(function(){var i;$(this).prop("checked")&&(n.push($(this).val()),n.length==t)&&(r=[],i="",$.each(c,function(e,t){arrays_equal(n,t)&&(o=!0,r.push(l[e]),i=d[e],s=u[e])}),o?(quickViewgalleryTop.slideTo(s,500,!1),mobile_image_swiper.slideTo(s,500,!1),r[0].special_price<r[0].price&&0!=r[0].special_price?(a=r[0].special_price,$("#modal-product-price").text(currency+" "+a),$("#modal-product-special-price").text(currency+" "+r[0].price),$("#modal-add-to-cart-button").attr("data-product-variant-id",i),$("#modal-buy-now-button").attr("data-product-variant-id",i),$("#modal-product-special-price-div").show()):(a=r[0].price,$("#modal-product-price").html(currency+" "+a),$("#modal-product-special-price-div").hide(),$("#modal-add-to-cart-button").attr("data-product-variant-id",i),$("#modal-buy-now-button").attr("data-product-variant-id",i))):$("#modal-product-special-price-div").hide())})}),$("#modal-add-to-cart-button").on("click",function(e){e.preventDefault();var o=$("#modal-product-quantity").val(),r=$("#modal-product-title").text(),l=$("#modal-product-short-description").text(),c=$("#product-view-image-container img").attr("src"),d=$("#modal-product-price").text().replace(/\D/g,"");$("#quick-view").data("data-product-id",$(this).data("productId")),$("#quick-view").data("data-product-slug",$(this).data("productId"));var u=$(this).attr("data-product-variant-id"),p=$(this).attr("data-product-slug"),h=$(this).attr("data-min"),f=$(this).attr("data-max"),m=$(this).attr("data-step"),g=$("#modal-product-total-stock").attr("data-stock"),v=$(this),y=$(this).html();u?$.ajax({type:"POST",url:base_url+"cart/manage",data:{product_variant_id:u,qty:$("#modal-product-quantity").val(),is_saved_for_later:!1,[csrfName]:csrfHash},dataType:"json",beforeSend:function(){v.html("Please Wait").text("Please Wait").attr("disabled",!0)},success:function(e){if(csrfName=e.csrfName,csrfHash=e.csrfHash,v.html(y).attr("disabled",!1),0==e.error){Toast.fire({icon:"success",title:e.message}),$("#cart-count").text(e.data.cart_count);var a="";$.each(e.data.items,function(e,t){var i,s;i=""!=t.product_variants&&""!=t.product_variants[0].images&&"[]"!=t.product_variants[0].images?JSON.parse(t.product_variants[0].images)[0]:t.image,s=""!=t.product_variants&&""!=t.product_variants[0].variant_values?t.product_variants[0].variant_values:"";var n=t.special_price<t.price&&0!=t.special_price?t.special_price:t.price;a+='<div class="shopping-cart"><div class="shopping-cart-item d-flex justify-content-between" title = "'+t.name+'"><div class="d-flex flex-row gap-3"><figure class="rounded cart-img"><a href="'+base_url+"products/details/"+t.product_slug+'"><img src="'+i+'" alt="Not Found" style="object-fit: contain;"></a></figure><div class="w-100"><a href="'+base_url+"products/details/"+t.product_slug+'"><h3 class="post-title fs-16 lh-xs mb-1 title_wrap w-19" title = " '+t.name+'">'+t.name+"</h3></a><span>"+s+'</span><p class="price mb-0"><ins><span class="amount">'+currency+" "+n+'</span></ins></p><div class="product-pricing d-flex py-2 px-1 gap-2"><div class="align-items-center d-flex py-1"><input type="number" name="header_qty" class="form-control d-flex align-items-center header_qty p-1 w-11" value="'+t.qty+'" data-id="'+t.product_variant_id+'" data-price="'+t.price+'" min="'+h+'" max="'+f+'" step="'+m+'" ></div><div class="product-line-price align-self-center px-1">'+currency+t.qty*n+'</div></div></div></div><div class="product-sm-removal"><button class="remove-product btn btn-sm btn-danger rounded-1 p-1 py-0" data-id="'+t.product_variant_id+'"><i class="uil uil-trash-alt"></i></button></div></div></div>'}),$("#cart-item-sidebar").html(a)}else{if(0==is_loggedin){Toast.fire({icon:"success",title:"Item added to cart"});var t={product_variant_id:u.trim(),title:r,slug:p,description:l,stock:g,qty:o,image:c,price:d.trim(),min:h,step:m};if(parseFloat(t.stock)<=parseFloat(low_stock_limit))return void Toast.fire({icon:"error",title:"Product is out of stock."});var i=localStorage.getItem("cart");if(null==(i=null!==i?JSON.parse(i):null))i=[t];else{for(var s=!1,n=0;n<i.length;n++)if(i[n].product_variant_id==t.product_variant_id){s=!0;break}s?Toast.fire({icon:"error",title:"Product already exists in the cart."}):i.push(t)}localStorage.setItem("cart",JSON.stringify(i)),display_cart(i)}Toast.fire({icon:"error",title:e.message})}}}):Toast.fire({icon:"error",title:"Please select variant"})}),$("#modal-buy-now-button").on("click",function(e){e.preventDefault();$("#modal-product-quantity").val(),$("#modal-product-title").text(),$("#modal-product-short-description").text(),$(".product-view-image-container img").attr("src"),$("#modal-product-price").text().replace(/\D/g,"");$("#quick-view").data("data-product-id",$(this).data("productId")),$("#quick-view").data("data-product-slug",$(this).data("productId"));var e=$(this).attr("data-product-variant-id"),t=($(this).attr("data-product-slug"),$(this).attr("data-product-type"),$(this).attr("data-min"),$(this).attr("data-max"),$(this).attr("data-step"),$(this)),i=$(this).html();e?$.ajax({type:"POST",url:base_url+"cart/manage",data:{product_variant_id:e,qty:$("#modal-product-quantity").val(),buy_now:1,is_saved_for_later:!1,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,t.html(i).attr("disabled",!1),0==e.error?(Toast.fire({icon:"success",title:e.message}),window.location.href=base_url+"cart"):(0==is_loggedin&&$(".buy_now").addClass("disabled"),Toast.fire({icon:"error",title:e.message}))}}):Toast.fire({icon:"error",title:"Please select variant"})}),$(".auth-modal").on("click","header a",function(e){e.preventDefault(),window.signingIn=!0;e=$(this).index();$(this).addClass("active").siblings("a").removeClass("active"),$(this).parents("div").find("section").eq(e).removeClass("hide").siblings("section").addClass("hide"),0===$(this).index()?$(".auth-modal .iziModal-content .icon-close").css("background","#ddd"):$(".auth-modal .iziModal-content .icon-close").attr("style","")}),null!=document.getElementById("modal-signup")&&document.getElementById("modal-signup").addEventListener("show.bs.modal",()=>{"firebase"==auth_settings&&($(".send-otp-form")[0].reset(),$(".send-otp-form").show(),$(".sign-up-form")[0].reset(),$(".sign-up-form").hide(),$("#is-user-exist-error").html(""),$("#sign-up-error").html(""),$("#recaptcha-container").html(""),window.recaptchaVerifier=new firebase.auth.RecaptchaVerifier("recaptcha-container"),window.recaptchaVerifier.render().then(function(e){grecaptcha.reset(e)}));var e=$("#phone-number"),t=$("#error-msg"),i=$("#valid-msg");e.intlTelInput({allowExtensions:!0,formatOnDisplay:!0,autoFormat:!0,autoHideDialCode:!0,autoPlaceholder:!0,defaultCountry:"in",ipinfoToken:"yolo",nationalMode:!1,numberType:"MOBILE",preferredCountries:["in","ae","qa","om","bh","kw","ma"],preventInvalidNumbers:!0,separateDialCode:!0,initialCountry:"auto",geoIpLookup:function(t){$.get("https://ipinfo.io",function(){},"jsonp").always(function(e){e=e&&e.country?e.country:"";t(e)})},utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/11.0.9/js/utils.js"});function s(){e.removeClass("error"),t.addClass("hide"),i.addClass("hide")}e.blur(function(){s(),$.trim(e.val())&&(e.intlTelInput("isValidNumber")?i.removeClass("hide"):(e.addClass("error"),t.removeClass("hide")))}),e.on("keyup change",s)}),$("#quick-view").on("click",".submit",function(e){e.preventDefault();var t="wobble",i=$(this).closest(".iziModal");i.hasClass(t)||(i.addClass(t),setTimeout(function(){i.removeClass(t)},1500))}),$("#quick-view").on("click","header a",function(e){e.preventDefault();e=$(this).index();$(this).addClass("active").siblings("a").removeClass("active"),$(this).parents("div").find("section").eq(e).removeClass("hide").siblings("section").addClass("hide"),0===$(this).index()?$("#quick-view .iziModal-content .icon-close").css("background","#ddd"):$("#quick-view .iziModal-content .icon-close").attr("style","")}),$("#quick-view").on("click",".submit",function(e){e.preventDefault();var t="wobble",i=$(this).closest(".iziModal");i.hasClass(t)||(i.addClass(t),setTimeout(function(){i.removeClass(t)},1500))}),$("#quick-view").on("click","header a",function(e){e.preventDefault();e=$(this).index();$(this).addClass("active").siblings("a").removeClass("active"),$(this).parents("div").find("section").eq(e).removeClass("hide").siblings("section").addClass("hide"),0===$(this).index()?$("#quick-view .iziModal-content .icon-close").css("background","#ddd"):$("#quick-view .iziModal-content .icon-close").attr("style","")})}),new LazyLoad({threshold:0,callback_enter:function(e){},callback_exit:function(e){},callback_cancel:function(e){},callback_loading:function(e){},callback_loaded:function(e){},callback_error:function(e){},callback_finish:function(){}}),function(){var s,n,e=document.querySelector(".range-slider");e&&(s=e.querySelectorAll("input[type=range]"),n=e.querySelectorAll("input[type=number]"),s.forEach(function(e){e.oninput=function(){var e=parseFloat(s[0].value),t=parseFloat(s[1].value);t<e&&([e,t]=[t,e]),n[0].value=e,n[1].value=t,custom_url=setUrlParameter(custom_url=setUrlParameter(location.href,"min-price",e),"max-price",t)}}),n.forEach(function(e){e.oninput=function(){var e,t=parseFloat(n[0].value),i=parseFloat(n[1].value);i<t&&(e=t,n[0].value=i,n[1].value=e),s[0].value=t,s[1].value=i}}))}(),$(document).on("change","input.in-num",function(e){e.preventDefault();e=$(this);null!=e.val()&&"string"!=typeof e.val()||$.isNumeric(e.val())&&"0"!=e.val()||e.val(1)}),$(document).on("focusout",".in-num",function(e){e.preventDefault();var t=$(this).val(),i=$(this).data("min"),e=($(this).data("step"),$(this).data("max"));t<i?($(this).val(i),Toast.fire({icon:"error",title:"Minimum allowed quantity is "+i})):e<t&&($(this).val(e),Toast.fire({icon:"error",title:"Maximum allowed quantity is "+e}))}),$(document).on("click",".num-block .num-in span",function(e){e.preventDefault();var t,i,s,e=$(this).parents(".num-block").find("input.in-num");return null==e.val()&&e.val(1),$(this).hasClass("minus")?(t=$(this).data("step"),s=parseFloat(e.val())-t,(i=$(this).data("min"))<=s?e.val(s):(e.val(i),Toast.fire({icon:"error",title:"Minimum allowed quantity is "+i}))):(t=$(this).data("step"),i=$(this).data("max"),s=parseFloat(e.val())+t,0!=i?s<=i?(e.val(s),1<s&&$(this).parents(".num-block").find(".minus").removeClass("dis")):(e.val(i),Toast.fire({icon:"error",title:"Maximum allowed quantity is "+i})):e.val(s)),e.change(),!1}),$(document).ready(function(){$(".kv-fa").rating({theme:"krajee-fa",filledStar:'<i class="fas fa-star"></i>',emptyStar:'<i class="far fa-star"></i>',showClear:!1,showCaption:!1,size:"md"});var n=.05,a=15,o=300;function r(){var e=0;$(".product").each(function(){e+=parseFloat($(this).children(".product-line-price").text())});var t=e*n,i=0<e?a:0,s=e+t+i;$(".totals-value").fadeOut(o,function(){$("#cart-subtotal").html(e.toFixed(2)),$("#cart-tax").html(t.toFixed(2)),$("#cart-shipping").html(i.toFixed(2)),$("#cart-total").html(s.toFixed(2)),0==s?$(".checkout").fadeOut(o):$(".checkout").fadeIn(o),$(".totals-value").fadeIn(o)})}function l(e,t){var i="cart"==e.data("page")?$(e).parent().parent().parent().siblings(".total-price"):$(e).parent().parent(),s=t*$(e).val();i.children(".product-line-price").each(function(){$(this).fadeOut(o,function(){$(this).text(currency+" "+s.toFixed(2)),r(),usercartTotal(),$(this).fadeIn(o)})})}function c(e){var t=$(e);t.slideUp(o,function(){t.remove(),r()})}$(document).on("change",".product-quantity input,.product-sm-quantity input,.itemQty, .header_qty",function(e){e.preventDefault();var t=$(this).data("id"),i=$(this).data("price"),s=$(this).val(),n=$(this),a=$(this).attr("step")?$(this).attr("step"):$(this).data("step"),o=$(this).attr("min"),e=$(this).attr("max"),s=parseFloat(s);(e=parseFloat(e))<=s&&Toast.fire({icon:"error",title:`Maximum allow quantity is ${e} for product`}),s<=o&&Toast.fire({icon:"error",title:`Minimum allow quantity is ${o} for product`}),s<=0?Toast.fire({icon:"error",title:`Oops! Please set minimum ${o} quantity for product`}):s%a==0?1==is_loggedin?$.ajax({url:base_url+"cart/manage",type:"POST",data:{product_variant_id:t,qty:s,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?l(n,i):Toast.fire({icon:"error",title:e.message})}}):l(n,i):Toast.fire({icon:"error",title:"Oops! you can only set quantity in step size of "+a})}),$(document).on("click",".product-removal button,.product-removal i,.product-sm-removal button",function(e){e.preventDefault();var t=$(this).data("id"),i=void 0!==$(this).data("is-save-for-later")&&1==$(this).data("is-save-for-later")?"1":"0",s=$(this).parent().parent().parent(),n=window.location.href;confirm("Are you sure want to remove this?")&&(1==is_loggedin?$.ajax({url:base_url+"cart/remove",type:"POST",data:{product_variant_id:t,is_save_for_later:i,[csrfName]:csrfHash},dataType:"json",success:function(e){var t;csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(t=$("#cart-count").text(),t--,$("#cart-count").text(t),c(s),n.includes("/cart")&&window.location.reload()):Toast.fire({icon:"error",title:e.message})}}):(c(s),e=localStorage.getItem("cart"),(e=null!==localStorage.getItem("cart")?JSON.parse(e):null)&&(i=e.filter(function(e){return e.product_variant_id!=t}),localStorage.setItem("cart",JSON.stringify(i)),e&&display_cart(i))))})}),jQuery(document).ready(function(s){function e(e){this.element=e,this.mainNavigation=this.element.find(".main-nav"),this.mainNavigationItems=this.mainNavigation.find(".has-dropdown"),this.dropdownList=this.element.find(".dropdown-list"),this.dropdownWrappers=this.dropdownList.find(".dropdown"),this.dropdownItems=this.dropdownList.find(".content"),this.dropdownBg=this.dropdownList.find(".bg-layer"),this.mq=this.checkMq(),this.bindEvents()}e.prototype.checkMq=function(){return window.getComputedStyle(this.element.get(0),"::before").getPropertyValue("content").replace(/'/g,"").replace(/"/g,"").split(", ")},e.prototype.bindEvents=function(){var i=this;this.mainNavigationItems.mouseenter(function(e){i.showDropdown(s(this))}).mouseleave(function(){setTimeout(function(){0==i.mainNavigation.find(".has-dropdown:hover").length&&0==i.element.find(".dropdown-list:hover").length&&i.hideDropdown()},50)}),this.dropdownList.mouseleave(function(){setTimeout(function(){0==i.mainNavigation.find(".has-dropdown:hover").length&&0==i.element.find(".dropdown-list:hover").length&&i.hideDropdown()},50)}),this.mainNavigationItems.on("touchstart",function(e){var t=i.dropdownList.find("#"+s(this).data("content"));i.element.hasClass("is-dropdown-visible")&&t.hasClass("active")||(e.preventDefault(),i.showDropdown(s(this)))})},e.prototype.showDropdown=function(e){var t,i,s,n,a,o;this.mq=this.checkMq(),"desktop"==this.mq&&(s=(i=(t=this).dropdownList.find("#"+e.data("content"))).innerHeight()+18,540<(o=180*i.children(".content").children("ul").children("li").length)&&(o=540),n=parseInt(o),a=e.offset().left+e.innerWidth()/2-n/2,o=e[0].offsetParent.offsetLeft,this.updateDropdown(i,parseInt(s),n,parseInt(a)),this.element.find(".active").removeClass("active"),this.element.find(".morph-dropdown-wrapper").css({"-moz-transform":"translateX(-"+o+"px)","-webkit-transform":"translateX(-"+o+"px)","-ms-transform":"translateX(-"+o+"px)","-o-transform":"translateX(-"+o+"px)",transform:"translateX(-"+o+"px)"}),i.addClass("active").removeClass("move-left move-right").prevAll().addClass("move-left").end().nextAll().addClass("move-right"),e.addClass("active"),this.element.hasClass("is-dropdown-visible")||setTimeout(function(){t.element.addClass("is-dropdown-visible")},10))},e.prototype.updateDropdown=function(e,t,i,s){this.dropdownList.css({"-moz-transform":"translateX("+s+"px)","-webkit-transform":"translateX("+s+"px)","-ms-transform":"translateX("+s+"px)","-o-transform":"translateX("+s+"px)",transform:"translateX("+s+"px)",width:i+"px",height:t+"px"}),this.dropdownBg.css({"-moz-transform":"scaleX("+i+") scaleY("+t+")","-webkit-transform":"scaleX("+i+") scaleY("+t+")","-ms-transform":"scaleX("+i+") scaleY("+t+")","-o-transform":"scaleX("+i+") scaleY("+t+")",transform:"scaleX("+i+") scaleY("+t+")"})},e.prototype.hideDropdown=function(){this.mq=this.checkMq(),"desktop"==this.mq&&this.element.removeClass("is-dropdown-visible").find(".active").removeClass("active").end().find(".move-left").removeClass("move-left").end().find(".move-right").removeClass("move-right")},e.prototype.resetDropdown=function(){this.mq=this.checkMq(),"mobile"==this.mq&&this.dropdownList.removeAttr("style")};var t,i=[];function n(){i.forEach(function(e){e.resetDropdown()}),t=!1}0<s(".cd-morph-dropdown").length&&(s(".cd-morph-dropdown").each(function(){i.push(new e(s(this)))}),t=!1,n(),s(window).on("resize",function(){t||(t=!0,window.requestAnimationFrame?window.requestAnimationFrame(n):setTimeout(n,300))}))}),$(".navbar-top-search-box input").on("focus",function(){$(".navbar-top-search-box .input-group-text").css("border-color","#0e7dd1")}),$(".navbar-top-search-box input").on("blur",function(){$(".navbar-top-search-box .input-group-text").css("border","1px solid #ced4da")});var swiper=new Swiper(".swiper1",{loop:!0,preloadImages:!1,lazy:!0,autoplay:{delay:6e3,disableOnInteraction:!1},pagination:{el:".swiper1-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}),swiperheader=new Swiper(".imageSliderHeader",{autoplay:{delay:6e3,disableOnInteraction:!1},pagination:{el:".imageSliderHeader-pagination",clickable:!0},loop:!0,grabCursor:!0}),swiperF=new Swiper(".preview-image-swiper",{pagination:{el:".preview-image-swiper-pagination",clickable:!0},loop:!0}),swiperV=new Swiper(".banner-swiper",{preloadImages:!1,lazy:!0,autoplay:!0,pagination:{el:".banner-swiper-pagination"},loop:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}),galleryThumbs=new Swiper(".gallery-thumbs-1",{spaceBetween:10,slidesPerView:4,freeMode:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0}),galleryTop=new Swiper(".gallery-top-1",{spaceBetween:10,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},thumbs:{swiper:galleryThumbs}});document.querySelectorAll(".product-image-swiper").forEach(function(e){new Swiper(e,{grabCursor:!0,preloadImages:!1,lazyLoading:!0,updateOnImagesReady:!1,lazyLoadingInPrevNextAmount:1,navigation:{nextEl:e.nextElementSibling,prevEl:e.nextElementSibling.nextElementSibling},breakpoints:{350:{slidesPerView:1,spaceBetweenSlides:10},400:{slidesPerView:1,spaceBetweenSlides:10},499:{slidesPerView:1,spaceBetweenSlides:10},550:{slidesPerView:1,spaceBetweenSlides:10},600:{slidesPerView:2,spaceBetweenSlides:10},700:{slidesPerView:3,spaceBetweenSlides:10},800:{slidesPerView:4,spaceBetweenSlides:10},999:{slidesPerView:5,spaceBetweenSlides:10},1900:{slidesPerView:6,spaceBetweenSlides:10}}})});var timer,swiperH=new Swiper(".swiper2",{slidesPerView:"auto",grabCursor:!0,spaceBetween:20,pagination:{el:".swiper2-pagination",clickable:!0}});$(document).ready(function(){jQuery(document).ready(function(){jQuery("#jquery-accordion-menu").jqueryAccordionMenu(),jQuery(".colors a").click(function(){"default"!=$(this).attr("class")?($("#jquery-accordion-menu").removeClass(),$("#jquery-accordion-menu").addClass("jquery-accordion-menu").addClass($(this).attr("class"))):($("#jquery-accordion-menu").removeClass(),$("#jquery-accordion-menu").addClass("jquery-accordion-menu"))})})}),function(n,t){var i="jqueryAccordionMenu",s={speed:300,showDelay:0,hideDelay:0,singleOpen:!0,clickEffect:!0};function a(e,t){this.element=e,this.settings=n.extend({},s,t),this._defaults=s,this._name=i,this.init()}n.extend(a.prototype,{init:function(){this.openSubmenu(),this.submenuIndicators(),s.clickEffect&&this.addClickEffect()},openSubmenu:function(){n(this.element).children("ul").find("li").bind("click touchstart",function(e){if(e.stopPropagation(),e.preventDefault(),0<n(this).children(".submenu").length){if("none"==n(this).children(".submenu").css("display"))return n(this).children(".submenu").show(s.speed),n(this).children(".submenu").siblings("a").addClass("submenu-indicator-minus"),s.singleOpen&&(n(this).siblings().children(".submenu").hide(s.speed),n(this).siblings().children(".submenu").siblings("a").removeClass("submenu-indicator-minus")),!1;n(this).children(".submenu").delay(s.hideDelay).hide(s.speed),n(this).children(".submenu").siblings("a").hasClass("submenu-indicator-minus")&&n(this).children(".submenu").siblings("a").removeClass("submenu-indicator-minus")}t.location.href=n(this).children("a").attr("href")})},submenuIndicators:function(){0<n(this.element).find(".submenu").length&&n(this.element).find(".submenu").siblings("a").append("<span class='submenu-indicator'>+</span>")},addClickEffect:function(){var t,i,s;n(this.element).find("a > .submenu-indicator").on("click touchstart",function(e){n(".ink").remove(),0===n(this).children(".ink").length&&n(this).prepend("<span class='ink'></span>"),(t=n(this).find(".ink")).removeClass("animate-ink"),t.height()||t.width()||(s=Math.max(n(this).outerWidth(),n(this).outerHeight()),t.css({height:s,width:s})),i=e.pageX-n(this).offset().left-t.width()/2,s=e.pageY-n(this).offset().top-t.height()/2,t.css({top:s+"px",left:i+"px"}).addClass("animate-ink")})}}),n.fn[i]=function(e){return this.each(function(){n.data(this,"plugin_"+i)||n.data(this,"plugin_"+i,new a(this,e))}),this}}(jQuery,window,document),document.addEventListener("DOMContentLoaded",function(e){function t(){this.classList.add("clicked")}document.querySelectorAll(".cart-button").forEach(e=>{e.addEventListener("click",t)})});var compareDate=new Date;function timeBetweenDates(e){var t=e,i=new Date,s=t.getTime()-i.getTime();s<=0?clearInterval(timer):(e=Math.floor(s/1e3),t=Math.floor(e/60),i=Math.floor(t/60),s=Math.floor(i/24),i%=24,t%=60,e%=60,$("#days").text(s),$("#hours").text(i),$("#minutes").text(t),$("#seconds").text(e))}function buildUrlParameterValue(e,t,i,s=""){e=""!=s?getUrlParameter(e,s):getUrlParameter(e);return"add"==i?(null==e?e=t:e+="|"+t,e):"remove"==i?null!=e?((e=e.split("|")).splice($.inArray(t,e),1),e.join("|")):"":void 0}function getUrlParameter(e,t=""){if(e=e.replace(/\s+/g,"-"),""!=t){if(!(-1<t.indexOf("?")))return;var i=t.substring(t.indexOf("?")+1)}else i=window.location.search.substring(1);for(var s,n=i.split("&"),a=0;a<n.length;a++)if((s=n[a].split("="))[0]===e)return void 0===s[1]||decodeURIComponent(s[1])}function checkUrlHasParam(e=""){return-1<(e=""==e?window.location.href:e).indexOf("?")||void 0}function setUrlParameter(e,t,i){if(t=t.replace(/\s+/g,"-"),null==i||""==i)return e.replace(new RegExp("[?&]"+t+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+t+"=[^&]*&"),"$1");var s=new RegExp("\\b("+t+"=).*?(&|#|$)");return 0<=e.search(s)?e.replace(s,"$1"+i+"$2"):(e=e.replace(/[?#]$/,""))+(0<e.indexOf("?")?"&":"?")+t+"="+i}compareDate.setDate(compareDate.getDate()+7),timer=setInterval(function(){timeBetweenDates(compareDate)},1e3),$(window).scroll(function(){50<$(this).scrollTop()?$(".back-to-top:hidden").stop(!0,!0).fadeIn():$(".back-to-top").stop(!0,!0).fadeOut()}),$(function(){$(".scroll").click(function(){return $("html,body").animate({scrollTop:$(".sidenav").offset().top},"1000"),!1})}),$("#newsletter-modal").on("show.bs.modal",function(e){$(e.relatedTarget).data("whatever")}),swiper=new Swiper(".swiper-container-client",{loop:!0,loopedSlides:10,autoheight:!0,slidesPerView:2,spaceBetween:30,autoplay:{delay:6e3,disableOnInteraction:!1},breakpoints:{600:{slidesPerView:6,spaceBetween:20}},pagination:{el:".swiper-pagination",clickable:!0}}),$("#back_to_top").on("click",function(){$("html, body").animate({scrollTop:0},"slow")}),$("#per_page_products a").on("click",function(e){e.preventDefault();e=$(this).data("value");$(this).parent().siblings("a.dropdown-toggle").text($(this).text()),location.href=setUrlParameter(location.href,"per-page",e)}),$("#per_page_sellers a").on("click",function(e){e.preventDefault();e=$(this).data("value");$(this).parent().siblings("a.dropdown-toggle").text($(this).text()),location.href=setUrlParameter(location.href,"per-page",e)}),$("#product_sort_by").on("change",function(e){e.preventDefault();e=$(this).val();location.href=setUrlParameter(location.href,"sort",e)}),$("#seller_search").on("focusout",function(e){e.preventDefault();e=$(this).val();location.href=setUrlParameter(location.href,"seller_search",e)}),$("#seller_search").on("keydown",function(e){"Enter"===e.key&&(e.preventDefault(),e=$(this).val(),location.href=setUrlParameter(location.href,"seller_search",e))}),$(".sub-category").on("click",function(e){e.preventDefault();e=$(this).data("value");custom_url=setUrlParameter(custom_url,"category",e),location.href=custom_url}),$(document).on("change",".brand",function(e){e.preventDefault();var t=$(this).data("value");custom_url=setUrlParameter(custom_url,"brand",t);e=getUrlParameter("brand"),t=$('[data-value="'+e+'"]');$('[data-value="'+e+'"]').attr("checked",!0);t=$(t).siblings();$(t).removeClass("selected-brand")}),$(document).on("change",".category",function(e){e.preventDefault();var t=$(this).data("value");custom_url=setUrlParameter(custom_url,"category",t);e=getUrlParameter("category"),t=$('[data-value="'+e+'"]');$('[data-value="'+e+'"]').attr("checked",!0),$(t).removeClass("selected-category")}),$(document).on("change",".product_attributes",function(e){e.preventDefault();getUrlParameter(t="filter-"+(t=$(this).data("attribute")));var t,e=$(this).val(),e=this.checked?buildUrlParameterValue(t,e,"add",custom_url):buildUrlParameterValue(t,e,"remove",custom_url);custom_url=setUrlParameter(custom_url,t,e)}),$(".product_filter_btn").on("click",function(e){e.preventDefault(),location.href=custom_url});var filters,type_url="";function arrays_equal(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;var i=e.concat().sort(),s=t.concat().sort();for(let e=0;e<i.length;e++)if(i[e]!==s[e])return!1;return!0}function display_cart(e){var t=e.length||"";$("#cart-count").text(t);var i="";null!==e&&0<e.length&&e.forEach(e=>{i+='<div class="shopping-cart"><div class="shopping-cart-item d-flex justify-content-between"><div class="d-flex flex-row gap-3"  title = " '+e.title+'"><figure class="rounded cart-img"><a href="'+base_url+"products/details/"+e.slug+'"><img src="'+e.image+'" alt="Not Found" style="object-fit: contain;"></a></figure><div class="w-100"><a href="'+base_url+"products/details/"+e.slug+'"><h3 class="post-title fs-16 lh-xs mb-1 title_wrap w-19" title = " '+e.title+'">'+e.title+'</h3></a><p class="price mb-0"><ins><span class="amount">'+currency+" "+e.price+'</span></ins></p><div class="product-pricing d-flex py-2 px-1 gap-2"><div class="align-items-center d-flex py-1"><input type="number" name="header_qty" class="form-control d-flex align-items-center header_qty p-1 w-11" value="'+e.qty+'" data-id="'+e.product_variant_id+'" data-price="'+e.price+'" min="'+e.min+'" max="'+e.max+'" step="'+e.step+'" ></div><div class="product-line-price align-self-center px-1">'+currency+e.qty*e.price+'</div></div></div></div><div class="product-sm-removal"><button class="remove-product btn btn-sm btn-danger rounded-1 p-1 py-0" data-id="'+e.product_variant_id+'"><i class="uil uil-trash-alt"></i></button>   </div></div></div>'}),$("#cart-item-sidebar").html(i)}function cart_sync(){var e=localStorage.getItem("cart");null!=e&&e&&$.ajax({type:"POST",url:base_url+"cart/cart_sync",data:{[csrfName]:csrfHash,data:e,is_saved_for_later:!1},dataType:"json",success:function(e){if(csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error)return Toast.fire({icon:"success",title:e.message}),localStorage.removeItem("cart"),!0}})}function transaction_query_params(e){return{transaction_type:"transaction",user_id:$("#transaction_user_id").val(),limit:e.limit,sort:e.sort,order:e.order,offset:e.offset,search:e.search}}function customer_wallet_query_paramss(e){return{type:"wallet",limit:e.limit,sort:e.sort,order:e.order,offset:e.offset,search:e.search}}function print_filters(e,n="",t){var a,o,r,l,c,d="";""!=e&&$.each(JSON.parse(e),function(e,t){c=t.name.replace(" ","-").toLowerCase(),c=decodeURIComponent(c),o=getUrlParameter("filter-"+c),r=null!=o?o.split("|"):"";var i=getUrlParameter("brand"),s=$('[data-value="'+i+'"]');$('[data-value="'+i+'"]').attr("checked",!0);i=$(s).siblings();$(i).addClass("selected-brand");s=getUrlParameter("category"),i=$('[data-value="'+s+'"]');$('[data-value="'+s+'"]').attr("checked",!0),$(i).addClass("selected-category"),d+='<div class="accordion accordion-wrapper" id="accordionSimpleExample"><div class="card plain accordion-item"><div class="card-header" id="h'+e+'"><button class="accordion-button text-decoration-none text-dark h6 collapsed" data-bs-toggle="collapse" data-bs-target="#'+n+e+'" aria-expanded="false" aria-controls="#'+n+e+'" style="cursor: pointer;">'+t.name+'</button></div><div id="'+n+e+'" class="accordion-collapse collapse" aria-labelledby="h'+e+'" data-bs-parent="#accordionSimpleExample"><div class="card-body-custom ml-5">',t.attribute_values_id.split(","),o=t.attribute_values.split(","),$.each(o,function(e,t){l=-1!==$.inArray(t,r)?"checked":"",d+='<div class="input-container d-flex"><input type="checkbox" name="'+t+'" value="'+t+'" class="form-check-input toggle-input product_attributes" id="'+n+(a=c+" "+t)+'" data-attribute="'+c+'" '+l+'><label class="form-check-label toggle checkbox" for="'+n+a+'"><div class="toggle-inner"></div></label><label for="'+n+a+'" class="text-label">'+t+"</label></div>"}),d+="</div></div></div></div>"}),$(t).html(d)}function usercartTotal(){var t=0;$("#cart_item_table > tbody > tr > .total-price  > .product-line-price").each(function(e){t=parseFloat(t)+parseFloat($(this).text().replace(/[^\d\.]/g,""))}),$("#final_total").text(t.toFixed(2))}function shortDescriptionWordLimit(e,t=35,i="..."){return e.length>t?e.substring(0,t-i.length)+i:e}function processDescription(e,t){let i=e.replace(/<\/?[^>]+(>|$)/g,""),s=i.replace(/\r\n/g,"&#13;&#10;"),n=s.replace("&nbsp;",""),a=n.split(" ");return a.length>t&&(n=a.slice(0,t).join(" ")+"..."),n}function display_compare(){var i=localStorage.getItem("compare"),i=null!==localStorage.getItem("compare")?i:null;$.ajax({type:"POST",url:base_url+"compare/add_to_compare",data:{product_id:i,product_variant_id:i,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash;var t=i.length||"base_url()";$("#compare_count").text(e.data.total);var c="";0==e.error?(null!==i&&0<t&&(c+='<div class="align-self-end mb-7"><div class="compare-removal"><button class="remove-compare btn btn-danger btn-sm" >Clear Compare</button></div></div></div><div class="overflow-auto"><table class="compare-table table-bordered"><tbody><tr><th class="compare-field w-19"> </th>',$.each(e.data.product,function(e,t){var i,s,n,a=0<t.variants[0].special_price&&""!=t.variants[0].special_price?t.variants[0].special_price:t.variants[0].price,o=t.minimum_order_quantity||1,r=t.minimum_order_quantity&&t.quantity_step_size?t.quantity_step_size:1,l=t.total_allowed_quantity||1;i="simple_product"==t.type?t.stock:t.total_stock,c+='<td class="compare_item text-center text-justify"><div class="p-5"><div class="text-right"><a class="remove-compare-item"data-product-id="'+t.id+'" style="padding: 4px 8px border:0px !important" ><i class="fa-times fa-times-plus fa-lg fa link-color"></i></a></div><br><div class="product-grid" style="border:1px !important; padding:0 0 0px;"><div class="product-image"><div class="rounded compare-img"><a href="products/details/'+t.slug+'"><img class="pro-img" src="'+t.image+'" style="object-fit:cover;"></a></div></div><div itemscope itemtype="https://schema.org/Product">',t.rating&&""!=t.no_of_rating?c+='<div class="col-md-12 mb-3 product-rating-small" dir="ltr" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"><meta itemprop="reviewCount" content="'+t.no_of_rating+'" /><meta itemprop="ratingValue" content="'+t.rating+'" /><input id="input" name="rating" class="kv-svg rating rating-loading d-none" data-size="xs" value="'+t.rating+'" data-show-clear="false" data-show-caption="false" readonly> <span class="my-auto mx-3"> ( '+t.no_of_ratings+" reviews) </span></div>":c+='<div class="col-md-12 mb-3 product-rating-small" dir="ltr"><input id="input" name="rating" class="kv-svg rating rating-loading d-none" data-size="xs" value="'+t.rating+'" data-show-clear="false" data-show-caption="false" readonly> <span class="my-auto mx-3"> ( '+t.no_of_ratings+" reviews) </span></div>",c+="</div>",c+=' <h4 class="data-product-title" ><a class="text-decoration-none" href="products/details/'+t.slug+'">'+shortDescriptionWordLimit(t.name)+'</a></h4>   <div class="price mb-1">'+currency+("simple_product"==t.type?'<small style="font-size: 20px;">'+t.variants[0].price+"</small>":'<small style="font-size: 20px;">'+t.min_max_price.max_special_price+'</small> - <small style="font-size: 20px;">'+t.min_max_price.max_price)+"</small> </div>",n="simple_product"==t.type?(s=t.variants[0].id,""):(s="","#quick-view"),c+='<a href="#" class="add_to_cart btn btn-xs btn-outline-primary rounded-pill" data-product-id="'+t.id+'" data-product-variant-id="'+s+'" data-product-stock="'+i+'" data-izimodal-open="'+n+'" data-product-title="'+t.name+'" data-product-slug="'+t.slug+'" data-product-image="'+t.image+'" data-product-description="'+processDescription(t.short_description,20)+'"  data-product-price="'+a+'" data-min="'+o+'" data-max="'+l+'" data-step="'+r+'"><i class="uil uil-shopping-bag"></i> &nbsp; Add to Cart</a>'}),c+="</tr>",c+='<tr><th class="compare-field text-dark fs-17 text-center">Description </th>',$.each(e.data.product,function(e,t){c+='<td class="text-center text-justify" data-title="Availability">'+(t.short_description?processDescription(t.short_description,20):t.short_description="-")+"</td>"}),c+="</tr>",c+='<tr><th class="compare-field text-dark fs-17 text-center">Variants </th>',$.each(e.data.product,function(e,t){var i=t.variants[0].attr_name.split(","),s=t.variants[0].variant_values.split(",");if("variable_product"==t.type){for(c+='<td class="text-center text-justify" data-title="variants">',e=0;e<i.length;e++)i[e]!==s[e]&&(c+=i[e]+" : "+s[e]+"<br>");c+="</td>"}else c+='<td class="text-center text-justify" data-title="variants">-</td>'}),c+="</tr>",c+='<tr><th class="compare-field text-dark fs-17 text-center">Made In </th>',$.each(e.data.product,function(e,t){c+='<td class="text-center text-justify" data-title="made in">'+(t.made_in||"-")+"</td>"}),c+="</tr>",c+='<tr><th class="compare-field text-dark fs-17 text-center">Warranty</th>',$.each(e.data.product,function(e,t){c+='<td class="text-center text-justify" data-title="warranty period">'+(t.warranty_period||"-")+"</td>"}),c+="</tr>",c+='<tr><th class="compare-field text-dark fs-17 text-center">Gaurantee</th>',$.each(e.data.product,function(e,t){c+='<td class="text-center text-justify" data-title="warranty period">'+(t.guarantee_period||"-")+"</td>"}),c+="</tr>",c+='<tr><th class="compare-field text-dark fs-17 text-center">Returnable</th>',$.each(e.data.product,function(e,t){c+='<td class="text-center text-justify" data-title="Returnable">'+("1"==t.is_returnable?t.is_returnable="Yes":t.is_returnable="No")+"</td>"}),c+="</tr>",c+='<tr><th class="compare-field text-dark fs-17 text-center">Cancellation</th>',$.each(e.data.product,function(e,t){c+='<td class="text-center text-justify" data-title="cancelable">'+("1"==t.is_cancelable?t.is_cancelable="Yes":t.is_cancelable="No")+"</td>"}),c+="</tr>",c+="</tbody></table></div>"),$("#compare-items").html(c),$(".kv-svg").rating({theme:"krajee-svg",showClear:!1,showCaption:!1,size:"md"})):Toast.fire({icon:"error",title:e.message})}})}function copyText(){var e=$("#text-to-copy").text();const t=$("<input>");t.attr("type","text"),t.val(e),$("body").append(t),t.select(),document.execCommand("copy"),t.remove();const i=$(".copy-button");i.text("Copied!"),setTimeout(function(){i.text("Tap to copy")},1e3)}$("#reload").on("click",function(e){window.location=window.location.href.split("?")[0]}),type_url=setUrlParameter(custom_url,"type",null),$("#product_grid_view_btn").attr("href",type_url),type_url=setUrlParameter(custom_url,"type","list"),$("#product_list_view_btn").attr("href",type_url),("list"==getUrlParameter("type")?$("#product_list_view_btn"):$("#product_grid_view_btn")).addClass("active"),$("#category_parent").each(function(){$(this).select2({theme:"bootstrap4",width:$(this).data("width")?$(this).data("width"):$(this).hasClass("w-100")?"100%":"style",placeholder:$(this).data("placeholder"),allowClear:Boolean($(this).data("allow-clear")),dropdownCssClass:"test",templateResult:function(e){if(!e.element)return e.text;var t=$(e.element),i=$("<span></span>");return i.addClass(t[0].className),i.text(e.text),i}})}),$("#category_parent").on("change",function(e){e.preventDefault();e=$(this).val();location.href=setUrlParameter(location.href,"category_id",e)}),$("#blog_search").on("keyup",function(e){e.preventDefault();e=$(this).val();location.href=setUrlParameter(location.href,"blog_search",e)}),$(".auth_model").on("click",function(e){e.preventDefault();e=$(this).data("value");$("#forgot_password_div").addClass("hide"),"login"==e?($("#login_div").removeClass("hide"),$("#login").addClass("active"),$("#register_div").addClass("hide"),$("#register").removeClass("active")):"register"==e&&($("#login_div").addClass("hide"),$("#login").removeClass("active"),$("#register_div").removeClass("hide"),$("#register").addClass("active"))}),$(".attributes").on("change",function(e){e.preventDefault();var s,n,a=[],o="",r=!1,t=[],l=[],c=[],d=[],u=[],p=[];$(".variants").each(function(){l={price:$(this).data("price"),special_price:$(this).data("special_price")},u.push($(this).data("id")),c.push(l),t=$(this).val().split(","),d.push(t),p.push($(this).data("image-index"))}),s=t.length,$(".attributes").each(function(e,t){var i;$(this).prop("checked")&&(a.push($(this).val()),a.length==s&&(l=[],i="",$.each(d,function(e,t){arrays_equal(a,t)&&(r=!0,l.push(c[e]),i=u[e],n=p[e])}),r?($("#add_cart").attr("data-product-variant-id",i),$(".buy_now").attr("data-product-variant-id",i),galleryTop.slideTo(n,500,!1),swiperF.slideTo(n,500,!1),l[0].special_price<l[0].price&&0!=l[0].special_price?(o=l[0].special_price,$("#price").html(currency+" "+o),$("#striped-price").html(currency+" "+l[0].price),$("#striped-price-div").show()):(o=l[0].price,$("#price").html(currency+" "+o),$("#striped-price-div").hide()),$("#add_cart").removeAttr("disabled"),$(".buy_now").removeAttr("disabled")):(o='<small class="text-danger h5">No Variant available!</small>',$("#price").html(o),$("#striped-price-div").hide(),$("#striped-price").html(""),$("#add_cart").attr("disabled","true"),$(".buy_now").attr("disabled","true"))))}),d=""}),$(document).on("click",".add_to_cart",function(e){e.preventDefault();$('[name="qty"]').val();$("#quick-view").data("data-product-id",$(this).data("productId"));var a,o=$(this).attr("data-product-variant-id"),l=($(this).attr("data-product-type"),$(this).attr("data-user-id"),$(this).attr("data-product-title")),c=$(this).attr("data-product-image"),d=$(this).attr("data-product-slug"),u=$(this).attr("data-product-price"),p=$(this).attr("data-product-description"),h=$(this).attr("data-min"),f=$(this).attr("data-max"),m=$(this).attr("data-step"),g=$(this),v=$(this).html(),e=$(this).attr("data-izimodal-open");const y=$(this).attr("data-product-stock");a=null!=$('[name="qty"]').val()?$('[name="qty"]').val():$(this).attr("data-min"),o?""!=e&&null!=e||$.ajax({type:"POST",url:base_url+"cart/manage",data:{product_variant_id:o,qty:a,is_saved_for_later:!1,[csrfName]:csrfHash},dataType:"json",beforeSend:function(){g.html("Please Wait").text("Please Wait").attr("disabled",!0)},success:function(e){if(csrfName=e.csrfName,csrfHash=e.csrfHash,g.html(v).attr("disabled",!1),0==e.error){Toast.fire({icon:"success",title:e.message}),$("#cart-count").text(e.data.cart_count);var r="";$.each(e.data.items,function(e,t){var i,s,n=void 0!==t.product_variants.variant_values&&null!=t.product_variants.variant_values?t.product_variants.variant_values:"",a=t.special_price<t.price&&0!=t.special_price?t.special_price:t.price,o=(t.qty*a).toFixed(2);i=""!=t.product_variants&&""!=t.product_variants[0].images?JSON.parse(t.product_variants[0].images)[0]:t.image,s=""!=t.product_variants&&""!=t.product_variants[0].variant_values?t.product_variants[0].variant_values:"",r+='<div class="shopping-cart"><div class="shopping-cart-item d-flex justify-content-between" title = " '+t.name+'"><div class="d-flex flex-row gap-3"><figure class="rounded cart-img"><a href="'+base_url+"products/details/"+t.product_slug+'"><img src="'+i+'" alt="Not Found" style="object-fit: contain;"></a></figure><div class="w-100"><a href="'+base_url+"products/details/"+t.product_slug+'"><h3 class="post-title fs-16 lh-xs mb-1 title_wrap w-19"  title = " '+t.name+'">'+t.name+"</h3></a><span>"+n+"</span><span>"+s+'</span><p class="price mb-0"><ins><span class="amount">'+currency+" "+a+'</span></ins></p><div class="product-pricing d-flex py-2 px-1 gap-2"><div class="align-items-center d-flex py-1"><input type="number" name="header_qty" class="form-control d-flex align-items-center header_qty  p-1 w-11" value="'+t.qty+'" data-id="'+t.product_variant_id+'" data-price="'+t.price+'" min="'+t.minimum_order_quantity+'" max="'+t.total_allowed_quantity+'" step="'+t.quantity_step_size+'" ></div><div class="product-line-price align-self-center px-1">'+currency+o+'</div></div></div></div><div class="product-sm-removal"><button class="remove-product btn btn-sm btn-danger rounded-1 p-1 py-0" data-id="'+t.product_variant_id+'"><i class="uil uil-trash-alt"></i></button></div></div></div>'}),$("#cart-item-sidebar").html(r)}else if(0==is_loggedin){var t={product_variant_id:o.trim(),title:l,slug:d,description:p,stock:y,qty:a,image:c,price:u.trim(),min:h,step:m,max:f};if(parseFloat(t.stock)<=parseFloat(low_stock_limit))Toast.fire({icon:"error",title:"Product is out of stock."});else{var i=null!==(i=localStorage.getItem("cart"))?JSON.parse(i):null;if(Toast.fire({icon:"success",title:"Item added to cart"}),null==i)i=[t];else{for(var s=!1,n=0;n<i.length;n++)if(i[n].product_variant_id==t.product_variant_id){s=!0;break}s?Toast.fire({icon:"error",title:"Product already exists in the cart."}):i.push(t)}localStorage.setItem("cart",JSON.stringify(i)),display_cart(i)}}else Toast.fire({icon:"error",title:e.message})}}):Toast.fire({icon:"error",title:"Please select variant"})}),$(document).ready(function(){var e=localStorage.getItem("cart");(e=null!==localStorage.getItem("cart")?JSON.parse(e):null)&&display_cart(e)}),$(document).ready(function(){$(document).on("click","#clear_cart",function(){confirm("Are you sure want to Clear Cart?")&&$.ajax({type:"POST",data:{[csrfName]:csrfHash},url:base_url+"cart/clear",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,location.reload()}})}),$(document).on("click","#checkout",function(e){confirm("Are You Sure want to Checkout?")||e.preventDefault()})}),$(".quick-view-btn").on("click",function(){$("#modal-buy-now-button").attr("disabled","true"),$("#quick-view").data("data-product-id",$(this).data("productId"))}),$(".save-for-later").on("click",function(e){e.preventDefault();var t=new FormData,i=$(this).data("id"),e=$(this).parent().siblings(".item-quantity").find(".itemQty").val();$(this);t.append(csrfName,csrfHash),t.append("product_variant_id",i),t.append("is_saved_for_later",1),t.append("qty",e),$.ajax({type:"POST",url:base_url+"cart/manage",data:t,cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?window.location.reload():Toast.fire({icon:"error",title:e.message})}})}),$(".move-to-cart").on("click",function(e){e.preventDefault();var t=new FormData,i=$(this).data("id"),e=$(".move-to-cart").parent().parent().siblings(".item-quantity").find(".itemQty").val();$(this),t.append(csrfName,csrfHash),t.append("product_variant_id",i),t.append("is_saved_for_later",0),t.append("qty",e),$.ajax({type:"POST",url:base_url+"cart/manage",data:t,cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?window.location.reload():Toast.fire({icon:"error",title:e.message})}})}),$(".confirmReturn").on("click",function(e){e.preventDefault(),console.log("here in click ");var i=$("#returnItemId").val(),s=$("#status").val(),n=$("input[name='return_reason']:checked").val(),e=$("#otherReasonField").val(),a=$("#return_item_image")[0].files;if(n){let t=new FormData;if(t.append("order_item_id",i),t.append("return_reason",n),t.append("status",s),"other"===n&&t.append("other_reason",e),0<a.length)for(let e=0;e<a.length;e++)t.append("return_item_images[]",a[e]);t.append(csrfName,csrfHash),$.ajax({type:"POST",url:base_url+"my-account/update-order-item-status",data:t,cache:!1,contentType:!1,processData:!1,dataType:"json",beforeSend:function(){$("#confirmReturn").prop("disabled",!0).text("Processing...")},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),setTimeout(function(){window.location.reload()},3e3)):Toast.fire({icon:"error",title:e.message}),$("#confirmReturn").prop("disabled",!1).text("Confirm Return")}})}else alert("Please select a return reason.")}),$(".update-order").on("click",function(e){e.preventDefault();var t,i,s=new FormData,n=$(this).data("order-id"),e=$(this).data("status");confirm("Are you sure you want to "+("cancelled"==e?"Cancel":"Return")+" this order ?")&&(t=$(this),i=t.text(),s.append(csrfName,csrfHash),s.append("order_id",n),s.append("status",e),$.ajax({type:"POST",url:base_url+"my-account/update-order",data:s,cache:!1,contentType:!1,processData:!1,dataType:"json",beforeSend:function(){t.html("Please Wait").attr("disabled",!0)},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),setTimeout(function(){window.location.reload()},3e3)):Toast.fire({icon:"error",title:e.message}),t.html(i).attr("disabled",!1)}}))}),$("#add-address-form").on("submit",function(e){e.preventDefault();var t=new FormData(this),i=window.location.href,e=$("#pincode option:selected").text();t.append(csrfName,csrfHash),t.append("pincode_full",e),$.ajax({type:"POST",data:t,url:$(this).attr("action"),dataType:"json",cache:!1,contentType:!1,processData:!1,success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),$("#add-address-form")[0].reset(),$("#address_list_table").bootstrapTable("refresh"),$("#add-address-modal").modal("hide"),i.includes("/checkout")&&(window.location.reload(),$("#address-modal").modal("show"))):(Toast.fire({icon:"error",title:e.message}),$("#save-address-submit-btn").val("Save").attr("disabled",!1))}})}),$("#pincode").on("change",function(e){e.preventDefault();e=$(this).val();0==e||-1==e?$(".pincode_name").removeClass("d-none"):($(".pincode_name").addClass("d-none"),$('input[name="pincode_name"]').val(""))}),$("#edit_pincode").on("change",function(e){e.preventDefault();e=$(this).val();0==e||-1==e?$(".other_pincode").removeClass("d-none"):($(".other_pincode").addClass("d-none"),$('input[name="pincode_name"]').val(""))}),$("#city").select2({ajax:{url:base_url+"my-account/get_cities",type:"GET",dataType:"json",delay:250,data:function(e){return{search:e.term}},processResults:function(e){return{results:e}},cache:!0},minimumInputLength:1,theme:"bootstrap4",placeholder:"Search for cities",containerCssClass:"city-container",dropdownCssClass:"city-dropdown",dropdownParent:$("#add-address-form")}),$("#city").on("change",function(e){e.preventDefault();e=$(this).val();0==e||-1==e?($(".city_name").removeClass("d-none"),$(".area_name").removeClass("d-none"),$(".pincode_name").removeClass("d-none"),$(".area").addClass("d-none"),$(".pincode").addClass("d-none")):($("#edit_pincode").empty(),$(".city").trigger("change"),$(".city").removeClass("d-none"),$(".area").removeClass("d-none"),$(".pincode").removeClass("d-none"),$(".city_name").addClass("d-none"),$(".area_name").addClass("d-none"),$(".pincode_name").addClass("d-none"),$.ajax({type:"POST",data:{city_id:$(this).val(),[csrfName]:csrfHash},url:base_url+"my-account/get-zipcode",dataType:"json",success:function(e){var i;csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(i="",i+='<option value="">--Select Zipcode--</option>',i+='<option value="0">Other</option>',$.each(e.data,function(e,t){i+="<option value="+t.zipcode+">"+t.zipcode+"</option>"})):(i="",i+='<option value="">--Select Zipcode--</option>',i+='<option value="0">Other</option>'),$("#pincode").html(i)}}))}),$("#edit-address-form").on("submit",function(e){e.preventDefault();var t=new FormData(this),e=$("#edit_pincode option:selected").text();t.append("pincode_full",e),t.append(csrfName,csrfHash),$.ajax({type:"POST",data:t,url:$(this).attr("action"),dataType:"json",cache:!1,contentType:!1,processData:!1,beforeSend:function(){$("#edit-address-submit-btn").val("Please Wait...").attr("disabled",!0)},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),setTimeout(function(){$("#address-modal").modal("hide")},2e3),$("#edit-address-submit-btn").val("Save").attr("disabled",!1),$("#edit-address-form")[0].reset(),$(".address_modal").modal("hide"),$("#address_list_table").bootstrapTable("refresh")):$("#edit-address-submit-btn").val("Save").attr("disabled",!1)}})}),$(document).on("click",".delete-address",function(e){e.preventDefault(),confirm("Are you sure ? You want to delete this address?")&&$.ajax({type:"POST",data:{id:$(this).data("id"),[csrfName]:csrfHash},url:base_url+"my-account/delete-address",dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),$("#address_list_table").bootstrapTable("refresh")):Toast.fire({icon:"error",title:e.message})}})}),$(document).on("click",".default-address",function(e){e.preventDefault(),confirm("Are you sure ? You want to set this address as default?")&&$.ajax({type:"POST",data:{id:$(this).data("id"),[csrfName]:csrfHash},url:base_url+"my-account/set-default-address",dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?($("#address_list_table").bootstrapTable("refresh"),Toast.fire({icon:"success",title:e.message})):Toast.fire({icon:"error",title:e.message})}})}),$(document).on("click","#forgot_password_link",function(e){e.preventDefault(),$(".auth-modal").find("header a").removeClass("active"),$("#forgot_password_div").removeClass("hide").siblings("section").addClass("hide"),"firebase"==auth_settings&&($("#recaptcha-container-2").html(""),window.recaptchaVerifier=new firebase.auth.RecaptchaVerifier("recaptcha-container-2"),window.recaptchaVerifier.render().then(function(e){grecaptcha.reset(e)})),$("#forgot_password_number").intlTelInput({allowExtensions:!0,formatOnDisplay:!0,autoFormat:!0,autoHideDialCode:!0,autoPlaceholder:!0,defaultCountry:"in",ipinfoToken:"yolo",nationalMode:!1,numberType:"MOBILE",preferredCountries:["in","ae","qa","om","bh","kw","ma"],preventInvalidNumbers:!0,separateDialCode:!0,initialCountry:"auto",geoIpLookup:function(t){$.get("https://ipinfo.io",function(){},"jsonp").always(function(e){e=e&&e.country?e.country:"";t(e)})},utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/11.0.9/js/utils.js"})}),$(document).on("submit","#send_forgot_password_otp_form",function(e){e.preventDefault();var t=$("#forgot_password_send_otp_btn").html();$("#forgot_password_send_otp_btn").html("Please Wait...").attr("disabled",!0);var i=$(".selected-dial-code").html()+$("#forgot_password_number").val(),s=is_user_exist($("#forgot_password_number").val());0==s.error?($("#forgot_pass_error_box").html("You have not registered using this number."),$("#forgot_password_send_otp_btn").html(t).attr("disabled",!1)):"firebase"==auth_settings&&(e=window.recaptchaVerifier,firebase.auth().signInWithPhoneNumber(i,e).then(function(n){resetRecaptcha(),$("#verify_forgot_password_otp_form").removeClass("d-none"),$("#send_forgot_password_otp_form").hide(),$("#forgot_pass_error_box").html(s.message),$("#forgot_password_send_otp_btn").html(t).attr("disabled",!1),$(document).on("submit","#verify_forgot_password_otp_form",function(e){e.preventDefault();var t=$("#reset_password_submit_btn").html(),e=$("#forgot_password_otp").val(),i=new FormData(this),s=base_url+"home/reset-password";$("#reset_password_submit_btn").html("Please Wait...").attr("disabled",!0),n.confirm(e).then(function(e){i.append(csrfName,csrfHash),i.append("mobile",$("#forgot_password_number").val()),$.ajax({type:"POST",url:s,data:i,processData:!1,contentType:!1,cache:!1,dataType:"json",beforeSend:function(){$("#reset_password_submit_btn").html("Please Wait...").attr("disabled",!0)},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,$("#reset_password_submit_btn").html(t).attr("disabled",!1),$("#set_password_error_box").html(e.message).show(),0==e.error&&setTimeout(function(){window.location.reload()},2e3)}})}).catch(function(e){$("#reset_password_submit_btn").html(t).attr("disabled",!1),$("#set_password_error_box").html("Invalid OTP. Please Enter Valid OTP").show()})})}).catch(function(e){$("#forgot_pass_error_box").html(e.message).show(),$("#forgot_password_send_otp_btn").html(t).attr("disabled",!1),resetRecaptcha()}))}),$("#contact-us-form").on("submit",function(e){e.preventDefault();var t=$("#contact-us-submit-btn").html(),e=new FormData(this);e.append(csrfName,csrfHash),$.ajax({type:"POST",data:e,url:$(this).attr("action"),dataType:"json",cache:!1,contentType:!1,processData:!1,beforeSend:function(){$("#contact-us-submit-btn").html("Please Wait...").attr("disabled",!0)},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),$("#contact-us-form")[0].reset()):Toast.fire({icon:"error",title:e.message}),$("#contact-us-submit-btn").html(t).attr("disabled",!1)}})}),$("#product-rating-form").on("submit",function(e){e.preventDefault();var t=$("#rating-submit-btn").html(),e=new FormData(this);e.append(csrfName,csrfHash),$.ajax({type:"POST",data:e,url:$(this).attr("action"),dataType:"json",cache:!1,contentType:!1,processData:!1,beforeSend:function(){$("#rating-submit-btn").html("Please Wait...").attr("disabled",!0)},success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),$("#product-rating-form")[0].reset(),window.location.reload()):Toast.fire({icon:"error",title:e.message}),$("#rating-submit-btn").html(t).attr("disabled",!1)}})}),$("#delete_rating").on("click",function(e){e.preventDefault(),confirm("Are you sure want to Delete Rating ?")&&(e=$(this).data("rating-id"),$.ajax({type:"POST",data:{[csrfName]:csrfHash,rating_id:e},url:$(this).attr("href"),dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),$("#delete_rating").parent().parent().parent().remove(),$("#no_ratings").text(e.data.rating[0].no_of_rating)):Toast.fire({icon:"error",title:e.message})}}))}),$("#edit_link").on("click",function(e){e.preventDefault(),$("#rating-box").removeClass("d-none")}),$("#load-user-ratings").on("click",function(e){e.preventDefault();var t=$(this).attr("data-limit"),i=$(this).attr("data-offset"),e=$(this).attr("data-product"),s=$(this).html(),n=$(this),a="";$.ajax({type:"GET",data:{limit:t,offset:i,product_id:e},url:base_url+"products/get-rating",dataType:"json",beforeSend:function(){$(this).html("Please wait..").attr("disabled",!0)},success:function(e){$(this).html(s).attr("disabled",!1),0==e.error?($.each(e.data.product_rating,function(e,t){a+='<li class="review-container"><div class="review-image"><img src="'+base_url+'assets/front_end/modern/images/user.png" alt="" width="65" height="65"></div><div class="review-comment"><div class="rating-list"><div class="product-rating"><input type="text" class="kv-fa" value="'+t.rating+'" data-size="xs" title="" readonly></div></div><div class="review-info"><h4 class="reviewer-name">'+t.user_name+'</h4> <span class="review-date text-muted">'+t.data_added+'</span></div><div class="review-text"><p class="text-muted">'+t.comment+'</p></div><div class="row reviews">',$.each(t.images,function(e,t){a+='<div class="col-md-2"><div class="review-box"><a href="'+t+'" data-lightbox="review-images"><img src="'+t+'" alt="'+t+'"></a></div></div>'}),a+="</div></div></li>"}),i+=t,$("#review-list").append(a),$(".kv-fa").rating("create",{filledStar:'<i class="fas fa-star"></i>',emptyStar:'<i class="far fa-star"></i>',size:"xs",showCaption:!1}),n.attr("data-offset",i)):Toast.fire({icon:"error",title:e.message})}})}),$("#edit_city").select2({ajax:{url:base_url+"my-account/get_cities",type:"GET",dataType:"json",delay:250,data:function(e){return{search:e.term}},processResults:function(e){return{results:e}},cache:!0},minimumInputLength:1,theme:"bootstrap4",dropdownParent:$("#edit-address-form"),placeholder:"Search for cities"}),$("#edit_city").on("change",function(e,n){e.preventDefault();$(this).val();e=$(this).val();0==e||""==e?($(".edit_area").addClass("d-none"),$("#edit_area").val(""),$(".edit_pincode").addClass("d-none"),$(".other_city").removeClass("d-none"),$(".other_areas").removeClass("d-none"),$(".other_pincode").removeClass("d-none")):($(".edit_area").removeClass("d-none"),$(".edit_pincode").removeClass("d-none"),$(".edit_city").removeClass("d-none"),$(".other_city").addClass("d-none"),$(".other_areas").addClass("d-none"),$(".other_pincode").addClass("d-none"),$.ajax({type:"POST",data:{city_id:$(this).val(),[csrfName]:csrfHash},url:base_url+"my-account/get-zipcode",dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash;var s="";0==e.error?(s+='<option value="0">Other</option>',$.each(e.data,function(e,t){var i=t.zipcode==n?"selected":"";s+="<option value="+t.zipcode+" "+i+">"+t.zipcode+"</option>"})):(Toast.fire({icon:"error",title:e.message}),s+='<option value="0">Select Pincode</option>',s+='<option value="0">Other</option>'),$("#edit_pincode").html(s)}}))}),$("#product-filters").length&&(checkUrlHasParam()&&null!=sessionStorage.getItem($("#product-filters").data("key"))||sessionStorage.setItem($("#product-filters").data("key"),$("#product-filters").val()),print_filters(filters=(filters=sessionStorage.getItem($("#product-filters").data("key"))).replace(/\\/g,""),"Desktop","#product-filters-desktop"),print_filters(filters,"Mobile","#product-filters-mobile")),$(document).ready(function(){$(".kv-svg").rating({theme:"krajee-svg",showClear:!1,showCaption:!1,size:"md"})}),$(document).on("closed","#quick-view",function(e){$("#modal-product-special-price").html("")}),$(document).ready(function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(e){var t=e.coords.latitude,e=e.coords.longitude;sessionStorage.setItem("latitude",t),sessionStorage.setItem("longitude",e)},function(e){switch(e.code){case e.PERMISSION_DENIED:null!==sessionStorage.getItem("latitude")&&sessionStorage.removeItem("latitude"),null!==sessionStorage.getItem("longitude")&&sessionStorage.removeItem("longitude");break;case e.POSITION_UNAVAILABLE:console.log("Location information is unavailable.");break;case e.TIMEOUT:console.log("The request to get user location timed out.");break;case e.UNKNOWN_ERROR:console.log("An unknown error occurred.")}})}),$("#send_bank_receipt_form").on("submit",function(e){e.preventDefault();e=new FormData(this);e.append(csrfName,csrfHash),$.ajax({type:"POST",url:$(this).attr("action"),data:e,beforeSend:function(){$("#submit_btn").html("Please Wait..").attr("disabled",!0)},cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){csrfHash=e.csrfHash,$("#submit_btn").html("Send").attr("disabled",!1),0==e.error?($("table").bootstrapTable("refresh"),Toast.fire({icon:"success",title:e.message}),window.location.reload()):Toast.fire({icon:"error",title:e.message})}})}),$(document).ready(function(){$(".hrDiv").length&&($(".hrDiv p").addClass("hrDiv"),$("div").css({"font-size":"",font:""}))}),$("#validate-zipcode-form").on("submit",function(e){e.preventDefault();e=new FormData(this);e.append(csrfName,csrfHash),$.ajax({type:"POST",url:base_url+"products/check_zipcode",data:e,beforeSend:function(){$("#validate_zipcode").html("Please Wait..").attr("disabled",!0)},cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){csrfHash=e.csrfHash,$("#validate_zipcode").html("Check Availability").attr("disabled",!1),0==e.error?($("#add_cart").removeAttr("disabled"),$(".buy_now").removeAttr("disabled")):($("#add_cart").attr("disabled","true"),$(".buy_now").attr("disabled","true")),$("#error_box").html(e.message)}})}),$("#validate-city-form").on("submit",function(e){e.preventDefault();e=new FormData(this);e.append(csrfName,csrfHash),$.ajax({type:"POST",url:base_url+"products/check_city",data:e,beforeSend:function(){$("#validate_city").html("Please Wait..").attr("disabled",!0)},cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){csrfHash=e.csrfHash,$("#validate_city").html("Check Availability").attr("disabled",!1),0==e.error?($("#add_cart").removeAttr("disabled"),$(".buy_now").removeAttr("disabled")):($("#add_cart").attr("disabled","true"),$(".buy_now").attr("disabled","true")),$("#error_box").html(e.message)}})}),$(document).on("submit",".validate_zipcode_quick_view",function(e){e.preventDefault();e=new FormData(this);e.append(csrfName,csrfHash),$.ajax({type:"post",url:base_url+"products/check-zipcode",data:e,beforeSend:function(){$("#validate_zipcode").html("Please Wait..").attr("disabled",!0)},cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){csrfHash=e.csrfHash,$("#validate_zipcode").html("Check Availability").attr("disabled",!1),0==e.error?($("#modal-add-to-cart-button").removeAttr("disabled"),$("modal-buy-now-button").removeAttr("disabled")):($("#modal-add-to-cart-button").attr("disabled","true"),$("modal-buy-now-button").attr("disabled","true")),$("#error_box1").html(e.message)}})}),$(document).on("submit",".validate_city_quick_view",function(e){e.preventDefault();e=new FormData(this);e.append(csrfName,csrfHash),$.ajax({type:"post",url:base_url+"products/check_city",data:e,beforeSend:function(){$("#validate_city").html("Please Wait..").attr("disabled",!0)},cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){csrfHash=e.csrfHash,$("#validate_city").html("Check Availability").attr("disabled",!1),0==e.error?($("#modal-add-to-cart-button").removeAttr("disabled"),$("modal-buy-now-button").removeAttr("disabled")):($("#modal-add-to-cart-button").attr("disabled","true"),$("modal-buy-now-button").attr("disabled","true")),$("#error_box1").html(e.message)}})}),$(".view_cart_button").click(function(){return 0!=is_loggedin||($("#modal-signin").show(),$("#login_div").removeClass("hide"),$("#login").addClass("active"),$("#register").removeClass("active"),!1)}),$(document).ready(function(){var e;$(location).attr("href")==base_url+"compare"&&(!localStorage.getItem("compare")||(e=null!==(e=localStorage.getItem("compare").length)?JSON.parse(e):null)&&display_compare())}),$(document).on("click",".compare",function(e){e.preventDefault();var t=$(this).attr("data-product-id"),i=$(this).attr("data-product-variant-id"),e={product_id:t.trim(),product_variant_id:i.trim()},i=localStorage.getItem("compare");if(Toast.fire({icon:"success",title:"products added to compare list"}),null!=(i=null!==i?JSON.parse(i):null)){if(i.find(e=>e.product_id===t))return void Toast.fire({icon:"error",title:"This item is already present in your compare list"});i.push(e)}else i=[e];localStorage.setItem("compare",JSON.stringify(i));e=i.length||"";if($("#compare_count").text(e),null!==i&&e<=1)return Toast.fire({icon:"warning",title:"Please select 1 more item to compare"}),!1}),$(document).on("click",".remove-compare-item",function(e){e.preventDefault();var t=$(this).attr("data-product-id");confirm("Are you sure want to remove this?")&&(e=$("#compare_count").text(),e--,$("#compare_count").text(e),e<1?($(this).parent().parent().remove(),location.reload()):$(this).parent().parent().remove(),(e=null!==(e=localStorage.getItem("compare"))?JSON.parse(e):null)&&(e=e.filter(function(e){return e.product_id!=t}),localStorage.setItem("compare",JSON.stringify(e)),display_compare()))}),$(document).on("click",".compare-removal button",function(e){e.preventDefault();var t=$(this).attr("data-product-id"),i=$(this).parent().parent().parent();confirm("Are you sure want to remove this?")&&(localStorage.removeItem("compare"),location.reload(),i=localStorage.getItem("compare"),(i=null!==localStorage.getItem("compare")?JSON.parse(i):null)&&(e=i.filter(function(e){return e.id!=t}),localStorage.setItem("compare",JSON.stringify(e)),i&&display_compare(e)))}),$(document).on("submit","#add-faqs",function(e){e.preventDefault();e=new FormData(this);e.append(csrfName,csrfHash),$.ajax({type:"POST",url:$(this).attr("action"),dataType:"json",data:e,processData:!1,contentType:!1,success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),$("#add-faqs")[0].reset()):Toast.fire({icon:"error",title:e.message}),setTimeout(function(){location.reload()},1e3)}})}),$(".search_faqs").select2({ajax:{url:base_url+"products/get_faqs_data",type:"GET",dataType:"json",delay:250,data:function(e){return{search:e.term}},processResults:function(e){return{results:e}},cache:!0},minimumInputLength:1,theme:"bootstrap4",placeholder:"Search for faqs"}),$(function(){return $("#inspect_value").data("value"),!1}),$(document).ready(function(){$("#share").jsSocials({showLabel:!1,showCount:!1,shares:["twitter","facebook","whatsapp","pinterest","linkedin","googleplus"]}),$(document).on("click","#googleLogin",function(e){e.preventDefault(),(e=new firebase.auth.GoogleAuthProvider).addScope("email"),firebase.auth().signInWithPopup(e).then(function(e){var t,i="google",s=e.user.displayName;t=(null!=e.user.email&&""!=e.user.email?e.user:null!=e.user.providerData[0].email&&""!=e.user.providerData[0].email?e.user.providerData[0]:e.additionalUserInfo.profile).email;var n=e.user.uid;$.ajax({type:"POST",url:base_url+"home/verifyUser",data:{email:t,type:i,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,1==e.error?$.ajax({type:"POST",url:base_url+"auth/register_user",data:{type:i,name:s,email:t,password:n,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error&&$.ajax({type:"POST",url:base_url+"home/login",data:{identity:t,type:i,password:n,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,cart_sync(),location.reload()}})}}):$.ajax({type:"POST",url:base_url+"home/login",data:{identity:t,type:i,password:n,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,cart_sync(),location.reload()}})}})}).catch(function(e){})}),$(document).on("click","#facebookLogin",function(e){e.preventDefault(),(e=new firebase.auth.FacebookAuthProvider).addScope("email"),firebase.auth().signInWithPopup(e).then(function(e){var t,i="facebook",s=e.user.displayName;t=(null!=e.user.email&&""!=e.user.email?e.user:null!=e.user.providerData[0].email&&""!=e.user.providerData[0].email?e.user.providerData[0]:e.additionalUserInfo.profile).email;var n=e.user.uid;$.ajax({type:"POST",url:base_url+"home/verifyUser",data:{email:t,type:i,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,1==e.error?$.ajax({type:"POST",url:base_url+"auth/register_user",data:{type:i,name:s,email:t,password:n,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error&&$.ajax({type:"POST",url:base_url+"home/login",data:{identity:t,type:i,password:n,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,cart_sync(),location.reload()}})}}):$.ajax({type:"POST",url:base_url+"home/login",data:{identity:t,type:i,password:n,[csrfName]:csrfHash},dataType:"json",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,cart_sync(),location.reload()}})}})}).catch(function(e){})}),$(document).on("click","#googleLogout",function(e){e.preventDefault(),firebase.auth().signOut().then(function(){alert("You have been logged out.")}).catch(function(e){console.error(e)})})}),swiper=new Swiper(".swiper-slide-container",{slidesPerView:1,effect:"slide",pagination:{el:".slide-swiper-pagination",dynamicBullets:!0,clickable:!0},loop:!0,autoplay:{delay:3500},on:{init(){}}}),swiper=new Swiper(".mySwiper",{slidesPerView:2,spaceBetween:30,pagination:{el:".product-swiper-pagination",dynamicBullets:!0,clickable:!0},breakpoints:{300:{slidesPerView:1,spaceBetweenSlides:10},350:{slidesPerView:2,spaceBetweenSlides:10},400:{slidesPerView:2,spaceBetweenSlides:10},499:{slidesPerView:2,spaceBetweenSlides:10},600:{slidesPerView:2,spaceBetweenSlides:10},800:{slidesPerView:2,spaceBetweenSlides:10},801:{slidesPerView:3,spaceBetweenSlides:10},999:{slidesPerView:3,spaceBetweenSlides:10},1900:{slidesPerView:3,spaceBetweenSlides:10}}}),swiper=new Swiper(".mySwiper4",{slidesPerView:2,spaceBetween:30,pagination:{el:".product-swiper-pagination",dynamicBullets:!0,clickable:!0},breakpoints:{300:{slidesPerView:1,spaceBetweenSlides:10},350:{slidesPerView:2,spaceBetweenSlides:10},400:{slidesPerView:2,spaceBetweenSlides:10},499:{slidesPerView:2,spaceBetweenSlides:10},600:{slidesPerView:2,spaceBetweenSlides:10},800:{slidesPerView:2,spaceBetweenSlides:10},801:{slidesPerView:3,spaceBetweenSlides:10},999:{slidesPerView:4,spaceBetweenSlides:10},1900:{slidesPerView:4,spaceBetweenSlides:10}}}),jQuery(document).ready(function(t){t(".color-switcher").on("click",function(){return t("#color-switcher").attr("href",t(this).data("url")),t(".logo-img").attr("src",t(this).data("image")),!1}),t("ul.color-style li a").click(function(e){e.preventDefault(),t(this).parent().parent().find("a").removeClass("active"),t(this).addClass("active")}),t("#colors-switcher .color-bottom a.settings").click(function(e){e.preventDefault(),"-189px"===t("#colors-switcher").css(mode)?t("#colors-switcher").animate({[mode]:"0px"}):t("#colors-switcher").animate({[mode]:"-189px"})}),t("#colors-switcher").animate({[mode]:"-189px"})}),$(document).ready(function(){$("#chat-button").on("click",function(e){e.preventDefault(),$("#chat-iframe").toggle(),$(this).toggleClass("opened"),$("#chat-iframe").toggleClass("opened")}),$("#chat-with-button").on("click",function(e){e.preventDefault(),$("#chat-iframe").attr("src",base_url+"my-account/floating_chat_modern?user_id="+$(this).data("id")),$("#chat-iframe").toggle(),$(this).toggleClass("opened"),$("#chat-iframe").toggleClass("opened")})}),$(document).ready(function(){$(".reorder-btn").on("click",t=>{var e=$(t.target).data("variants")+"",i=$(t.target).data("quantity")+"";let s=$(t.target).html();$.ajax({type:"POST",url:base_url+"cart/manage",data:{product_variant_id:e,qty:i,is_saved_for_later:!1,[csrfName]:csrfHash},dataType:"json",beforeSend:function(){$(t.target).text("Please Wait").attr("disabled",!0)},success:function(e){$(t.target).text(s).attr("disabled",!1),window.location.href=base_url+"cart/checkout"}})})}),$(document).on("click",".buy_now",function(e){e.preventDefault();var t,i=$(this).data("product-id"),s=$(this).data("product-title"),n=$(this).data("product-slug"),a=$(this).data("product-image"),o=$(this).data("product-price"),r=$(this).data("product-description"),l=$(this).data("step"),c=$(this).data("min"),d=$(this).data("max");$(this);t=null!=$('[name="qty"]').val()?$('[name="qty"]').val():$(this).attr("data-min");e=$(this).data("product-variant-id"),e={product_id:i,buy_now:"1",product_title:s,product_slug:n,product_image:a,product_price:o,product_description:r,step:l,min:c,max:d,qty:t,is_saved_for_later:!1,csrfName:csrfHash,product_variant_id:e};$.ajax({type:"POST",url:base_url+"cart/manage",data:e,success:function(e){e=JSON.parse(e);csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),window.location.href=base_url+"cart"):Toast.fire({icon:"error",title:e.message})}})}),$(document).ready(function(){$(".select2-container").click(function(e){e.preventDefault(),$("#offcanvas-search").hasClass("show")&&$(".select2-search--dropdown").addClass("mt-n10")})}),$(document).on("click",".ticket_button",function(e){$(".display_fields").hasClass("d-none")?$(".display_fields").removeClass("d-none"):$(".display_fields").addClass("d-none")}),$(document).on("click",".ask_question",function(){var e=$("#ticket_type").val(),t=$("#email").val(),i=$("#subject").val(),s=$("#description").val(),n=$("#user_id").val();$.ajax({type:"POST",data:{ticket_type_id:e,email:t,subject:i,description:s,user_id:n,[csrfName]:csrfHash},dataType:"json",url:base_url+"Tickets/add_ticket",success:function(e){csrfName=e.csrfName,csrfHash=e.csrfHash,0==e.error?(Toast.fire({icon:"success",title:e.message}),setTimeout(function(){location.reload()},600)):Toast.fire({icon:"error",title:e.message})}})}),$(document).ready(function(){const t=$("#passwordInput"),i=$("#togglePassword");i.click(function(){var e="password"===t.attr("type")?"text":"password";t.attr("type",e),i.html("password"==e?'<i class="uil uil-eye"></i>':'<i class="uil uil-eye-slash"></i>')})});var swiperS=new Swiper(".category-swiper",{slidesPerView:5,preloadImages:!1,updateOnImagesReady:!1,lazyLoadingInPrevNextAmount:0,pagination:{el:".category-swiper-pagination",dynamicBullets:!0,clickable:!0},breakpoints:{300:{slidesPerView:3,spaceBetweenSlides:10},350:{slidesPerView:3,spaceBetweenSlides:10},400:{slidesPerView:4,spaceBetweenSlides:10},499:{slidesPerView:4,spaceBetweenSlides:10},550:{slidesPerView:5,spaceBetweenSlides:10},600:{slidesPerView:5,spaceBetweenSlides:10},700:{slidesPerView:6,spaceBetweenSlides:10},800:{slidesPerView:8,spaceBetweenSlides:10},999:{slidesPerView:8,spaceBetweenSlides:10},1900:{slidesPerView:8,spaceBetweenSlides:10}}});const timeoutVal=100,search_product_input=$("#search-product"),search_btn=$(".search_btn");function search_product_result(){let n=$("#search-product").val();$.ajax({type:"GET",url:base_url+"home/get_products",data:{search:n},dataType:"json",success:function(e){var t=Array.isArray(e.suggestion_keywords)?e.suggestion_keywords:[],i=Array.isArray(e.data)?e.data:[];$("#header-search").attr("href",base_url+("products/search?q="+n));let s="";if(0==e.error)return null!=n&&""!=n?(s+=`<li class="item w-100 text-center text-muted">${e.data[0].name}</li>`,t.forEach(e=>{s+=`<li class="item">
                                <div class="mini-list-item d-flex align-items-center w-100 clearfix gap-4">
                                    <a class="item-title" href="${base_url+"products/search?q="+encodeURIComponent(e.suggestion_keyword)}">
                                        <div class="text-center"><i class='fa fa-search'></i></div>
                                    </a>
                                    <div class="align-items-center d-flex details justify-content-between w-100">
                                        <a class="item-title w-100" href="${base_url+"products/search?q="+encodeURIComponent(e.suggestion_keyword)}">
                                            <p class="item-title m-0 text-start">${e.suggestion_keyword}</p>
                                        </a>
                                        <button class='search_btn' onclick="copySearch('${e.suggestion_keyword}')"><i class='font-weight-bold fs-20 uil uil-arrow-up-left'></i></button>
                                    </div>
                                </div>
                            </li>`}),i.forEach(e=>{void 0!==e.product_slug&&(s+=`<li class="item pb-2"><div class="mini-list-item d-flex align-items-center w-100 clearfix">
                                    <div class="mini-image text-center"><a class="item-link" href="${base_url+"products/details/"+e.product_slug}"><img class="blur-up lazyload" data-src="${e.image_md}" src="${e.image_md}" alt="${e.name}" title="${e.name}" width="70" height="70" /></a></div>
                                    <div class="ms-3 details text-left">
                                    <div class="product-name"><a class="item-title" href="${base_url+"products/details/"+e.product_slug}">${e.name}</a></div>
                                    </div></div></li>`)})):s+='<li class="item w-100 text-center text-muted pb-2">🪄Looking for something special? Start typing and explore our recommendations!</li>',void $("#search_items").html(s);s+=`<li class="item w-100 text-center text-muted">${e.message}</li>`,$("#search_items").html(s)}})}search_product_input.on("keyup",function(e){var t=$("#search-product").val();13!==e.keyCode&&13!==e.which||(window.location.href=base_url+"products/search?q="+encodeURIComponent(t))}),search_product_input.on("keyup",search_product_result),search_btn.on("click",search_product_result),document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("offcanvas-search");e&&e.addEventListener("hide.bs.offcanvas",function(){document.querySelectorAll("#offcanvas-search input").forEach(e=>e.value=""),$("#search_items").html("")})}),$(document).ready(function(){$("#offcanvas-search").on("shown.bs.offcanvas",function(){$("#search-product").focus(),$("#search_items").html("🪄Looking for something special? Start typing and explore our recommendations!")})});var scrolled=0;function load_messages(a,e){var t,i=a.data("limit"),o=a.data("offset");a.data("offset",i+o),0==a.data("max-loaded")&&(t='<div class="loader text-center"><img src="'+base_url+'assets/pre-loader.gif" alt="Loading. please wait.. ." title="Loading. please wait.. ."></div>',$.ajax({type:"get",data:"ticket_id="+e+"&limit="+i+"&offset="+o,url:base_url+"tickets/get_ticket_messages",beforeSend:function(){$(".ticket_msg").prepend(t)},dataType:"json",cache:!1,contentType:!1,processData:!1,success:function(e){var t,i,s,n;return 0==e.error?0==e.error&&0<e.data.length&&(s=i=t="",n=1,e.data.reverse().forEach(e=>{i="user"==e.user_type?"left":"right",e.user_type,0<e.attachments.length&&e.attachments.forEach(e=>{s+="<div class='container-fluid image-upload-section'><a class='btn btn-danger btn-xs mr-1 mb-1' href='"+e.media+"'  target='_blank' alt='Attachment Not Found'>Attachment "+n+"</a><div class='col-md-3 col-sm-12 shadow p-3 mb-5 bg-white rounded m-4 text-center grow image d-none'></div></div>",n++}),t+="<div class='direct-chat-msg "+i+"'><div class='direct-chat-infos clearfix'><span class='direct-chat-name float-"+i+"' id='name'>"+e.name+"</span><span class='direct-chat-timestamp fs-12 float-"+i+"' id='last_updated'>"+e.last_updated+"</span></div><div class='direct-chat-text' id='message'>"+e.message+"</br>"+s+"</div></div>"}),$(".ticket_msg").prepend(t),$(".ticket_msg").find(".loader").remove(),$(a).animate({scrollTop:$(a).offset().top})):(a.data("offset",o),a.data("max-loaded",!0),$(".ticket_msg").find(".loader").remove(),$(".ticket_msg").prepend('<div class="text-center"> <p>You have reached the top most message!</p></div>')),$("#element").scrollTop(20),$(a).animate({scrollTop:$(a).offset().top}),!1}}))}$(document).on("click",".view_ticket_chat",function(e,t){e.preventDefault(),$(".ticket_msg").data("max-loaded",!1);var i=$(this).data("id"),s=$(this).data("username"),n=$(this).data("date_created"),a=$(this).data("subject"),o=$(this).data("status"),e=$(this).data("ticket_type");$('input[name="ticket_id"]').val(i),$("#user_name").html(s),$("#date_created").html(n),$("#subject_chat").html(a),$(".change_ticket_status").data("ticket_id",i),1==o?$("#status").html('<label class="badge badge-secondary ml-2">PENDING</label>'):2==o?$("#status").html('<label class="badge badge-info ml-2">OPENED</label>'):3==o?$("#status").html('<label class="badge badge-success ml-2">RESOLVED</label>'):4==o?$("#status").html('<label class="badge badge-danger ml-2">CLOSED</label>'):5==o&&$("#status").html('<label class="badge badge-warning ml-2">REOPENED</label>'),$("#ticket_type_chat").html(e),$(".ticket_msg").html(""),$(".ticket_msg").data("limit",5),$(".ticket_msg").data("offset",0),load_messages($(".ticket_msg"),i)}),$(document).ready(function(){$("#element").length&&($("#element").scrollTop($("#element")[0].scrollHeight),$("#element").scroll(function(){0==$("#element").scrollTop()&&load_messages($(".ticket_msg"),ticket_id)}),$("#element").bind("mousewheel",function(e){0<e.originalEvent.wheelDelta/120&&$(".ticket_msg")[0].scrollHeight<370&&0==scrolled&&(load_messages($(".ticket_msg"),ticket_id),scrolled=1)}))}),$("#ticket_send_msg_form").on("submit",function(e){e.preventDefault();e=new FormData(this);e.append(csrfName,csrfHash),$.ajax({type:"POST",url:$(this).attr("action"),data:e,beforeSend:function(){$("#submit_btn").html("Sending..").attr("disabled",!0)},cache:!1,contentType:!1,processData:!1,dataType:"json",success:function(e){if(csrfName=e.csrfName,csrfHash=e.csrfHash,$("#submit_btn").html("Send").attr("disabled",!1),0!=e.error)return Toast.fire({icon:"success",title:'<span style="text-transform:capitalize">'+e.message+"</span> "}),$("#element").data("max-loaded",!0),!1;var t,i,s,n,a;0<e.data.id&&(i="user"==(t=e.data).user_type?"left":"right",n=s="",a=1,0<t.attachments.length&&t.attachments.forEach(e=>{n+="<div class='container-fluid image-upload-section'><a class='btn btn-danger btn-xs mr-1 mb-1' href='"+e.media+"'  target='_blank' alt='Attachment Not Found'>Attachment "+a+"</a><div class='col-md-3 col-sm-12 shadow p-3 mb-5 bg-white rounded m-4 text-center grow image d-none'></div></div>",a++}),s+="<div class='direct-chat-msg "+i+"'><div class='direct-chat-infos clearfix'><span class='direct-chat-name float-"+i+"' id='name'>"+t.name+"</span><span class='direct-chat-timestamp fs-12 float-"+i+"' id='last_updated'>"+t.last_updated+"</span></div><div class='direct-chat-text' id='message'>"+t.message+"</br>"+n+"</div></div>",$(".ticket_msg").append(s),$("#message_input").val(""),$("#element").scrollTop($("#element")[0].scrollHeight),$('input[name="attachments[]"]').val("")),Toast.fire({icon:"success",title:'<span style="text-transform:capitalize">'+e.message+"</span> "})}})}),document.addEventListener("DOMContentLoaded",function(){document.getElementById("otherReasonRadio");const t=document.getElementById("otherReasonField"),e=document.querySelectorAll(".reason-radio");e.forEach(e=>{e.addEventListener("change",function(){"other"===this.value?(t.style.display="block",t.focus()):t.style.display="none"})})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){"use strict";const a=1e3,o="transitionend",t=t=>{let i=t.getAttribute("data-bs-target");if(!i||"#"===i){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),i=e&&"#"!==e?e.trim():null}return i},r=e=>{e=t(e);return e&&document.querySelector(e)?e:null},l=e=>{e=t(e);return e?document.querySelector(e):null},c=e=>{e.dispatchEvent(new Event(o))},d=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,n=e=>d(e)?e.jquery?e[0]:e:"string"==typeof e&&0<e.length?document.querySelector(e):null,s=e=>{if(!d(e)||0===e.getClientRects().length)return!1;var t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){e=e.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return t},u=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),p=e=>{if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?p(e.parentNode):null;e=e.getRootNode();return e instanceof ShadowRoot?e:null},h=()=>{},f=e=>{e.offsetHeight},m=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,i=[],g=()=>"rtl"===document.documentElement.dir;var e=s=>{var e;e=()=>{const e=m();if(e){const t=s.NAME,i=e.fn[t];e.fn[t]=s.jQueryInterface,e.fn[t].Constructor=s,e.fn[t].noConflict=()=>(e.fn[t]=i,s.jQueryInterface)}},"loading"===document.readyState?(i.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of i)e()}),i.push(e)):e()};const v=e=>{"function"==typeof e&&e()},y=(i,s,e=!0)=>{if(e){e=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);var s=Number.parseFloat(t),e=Number.parseFloat(i);return s||e?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*a):0})(s)+5;let t=!1;const n=({target:e})=>{e===s&&(t=!0,s.removeEventListener(o,n),v(i))};s.addEventListener(o,n),setTimeout(()=>{t||c(s)},e)}else v(i)},b=(e,t,i,s)=>{var n=e.length;let a=e.indexOf(t);return-1===a?!i&&s?e[n-1]:e[0]:(a+=i?1:-1,s&&(a=(a+n)%n),e[Math.max(0,Math.min(a,n-1))])},w=/[^.]*(?=\..*)\.|.*/,x=/\..*/,_=/::\d+$/,S={};let T=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},E=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function k(e,t){return t&&t+"::"+T++||e.uidEvent||T++}function $(e){var t=k(e);return e.uidEvent=t,S[t]=S[t]||{},S[t]}function A(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function P(e,t,i){var s="string"==typeof t,i=!s&&t||i;let n=O(e);return E.has(n)||(n=e),[s,i,n]}function I(s,n,a,o,r){if("string"==typeof n&&s){let[e,t,i]=P(n,a,o);var l;n in C&&(t=(l=t,function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return l.call(this,e)}));const f=$(s),m=f[i]||(f[i]={}),g=A(m,t,e?a:null);if(g)g.oneOff=g.oneOff&&r;else{var c,d,u,p,h,n=k(t,n.replace(w,""));const v=e?(u=s,p=a,h=t,function t(i){var s=u.querySelectorAll(p);for(let e=i["target"];e&&e!==this;e=e.parentNode)for(const n of s)if(n===e)return z(i,{delegateTarget:e}),t.oneOff&&L.off(u,i.type,p,h),h.apply(e,[i])}):(c=s,d=t,function e(t){return z(t,{delegateTarget:c}),e.oneOff&&L.off(c,t.type,d),d.apply(c,[t])});v.delegationSelector=e?a:null,v.callable=t,v.oneOff=r,v.uidEvent=n,m[n]=v,s.addEventListener(i,v,e)}}}function M(e,t,i,s,n){s=A(t[i],s,n);s&&(e.removeEventListener(i,s,Boolean(n)),delete t[i][s.uidEvent])}function O(e){return e=e.replace(x,""),C[e]||e}const L={on(e,t,i,s){I(e,t,i,s,!1)},one(e,t,i,s){I(e,t,i,s,!0)},off(e,t,i,s){if("string"==typeof t&&e){var[n,a,o]=P(t,i,s),r=o!==t,l=$(e),c=l[o]||{},s=t.startsWith(".");if(void 0!==a)return Object.keys(c).length?void M(e,l,o,a,n?i:null):void 0;if(s)for(const u of Object.keys(l))!function(e,t,i,s){var n,a=t[i]||{};for(const o of Object.keys(a))o.includes(s)&&M(e,t,i,(n=a[o]).callable,n.delegationSelector)}(e,l,u,t.slice(1));for(const p of Object.keys(c)){var d=p.replace(_,"");r&&!t.includes(d)||M(e,l,o,(d=c[p]).callable,d.delegationSelector)}}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=m();let n=null,a=!0,o=!0,r=!1;t!==O(t)&&s&&(n=s.Event(t,i),s(e).trigger(n),a=!n.isPropagationStopped(),o=!n.isImmediatePropagationStopped(),r=n.isDefaultPrevented());let l=new Event(t,{bubbles:a,cancelable:!0});return l=z(l,i),r&&l.preventDefault(),o&&e.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function z(t,e){for(const[i,s]of Object.entries(e||{}))try{t[i]=s}catch(e){Object.defineProperty(t,i,{configurable:!0,get(){return s}})}return t}const D=new Map,N={set(e,t,i){D.has(e)||D.set(e,new Map);const s=D.get(e);s.has(t)||0===s.size?s.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get(e,t){return D.has(e)&&D.get(e).get(t)||null},remove(e,t){if(D.has(e)){const i=D.get(e);i.delete(t),0===i.size&&D.delete(e)}}};function j(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function H(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}const B={setDataAttribute(e,t,i){e.setAttribute("data-bs-"+H(t),i)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+H(t))},getDataAttributes(t){if(!t)return{};const i={};for(const s of Object.keys(t.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let e=s.replace(/^bs/,"");e=e.charAt(0).toLowerCase()+e.slice(1,e.length),i[e]=j(t.dataset[s])}return i},getDataAttribute(e,t){return j(e.getAttribute("data-bs-"+H(t)))}};class R{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){var i=d(t)?B.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...d(t)?B.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const a of Object.keys(t)){var i=t[a],s=e[a],n=d(s)?"element":null==(n=s)?""+n:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(i).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${n}" but expected type "${i}".`)}var n}}class F extends R{constructor(e,t){super(),(e=n(e))&&(this._element=e,this._config=this._getConfig(t),N.set(this._element,this.constructor.DATA_KEY,this))}dispose(){N.remove(this._element,this.constructor.DATA_KEY),L.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){y(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return N.get(n(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.2.2"}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}static eventName(e){return""+e+this.EVENT_KEY}}var q=(i,s="hide")=>{var e="click.dismiss"+i.EVENT_KEY;const n=i.NAME;L.on(document,e,`[data-bs-dismiss="${n}"]`,function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!u(this)){e=l(this)||this.closest("."+n);const t=i.getOrCreateInstance(e);t[s]()}})};class W extends F{static get NAME(){return"alert"}close(){var e;L.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),e=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,e))}_destroyElement(){this._element.remove(),L.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=W.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}q(W,"close"),e(W);const V='[data-bs-toggle="button"]';class U extends F{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=U.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}L.on(document,"click.bs.button.data-api",V,e=>{e.preventDefault();e=e.target.closest(V);const t=U.getOrCreateInstance(e);t.toggle()}),e(U);const Y={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){const i=[];let s=e.parentNode.closest(t);for(;s;)i.push(s),s=s.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(",");return this.find(t,e).filter(e=>!u(e)&&s(e))}},G=".bs.swipe",X=(G,G,G,G,G,{endCallback:null,leftCallback:null,rightCallback:null}),K={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Q extends R{constructor(e,t){super(),(this._element=e)&&Q.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return X}static get DefaultType(){return K}static get NAME(){return"swipe"}dispose(){L.off(this._element,G)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),v(this._config.endCallback)}_move(e){this._deltaX=e.touches&&1<e.touches.length?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){var e=Math.abs(this._deltaX);e<=40||(e=e/this._deltaX,this._deltaX=0,e&&v(0<e?this._config.rightCallback:this._config.leftCallback))}_initEvents(){this._supportPointerEvents?(L.on(this._element,"pointerdown.bs.swipe",e=>this._start(e)),L.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(L.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),L.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),L.on(this._element,"touchend.bs.swipe",e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||0<navigator.maxTouchPoints}}var Z=".bs.carousel";const J="next",ee="prev",te="left",ie="right",se="slid"+Z;const ne="active",ae=".carousel-item";ae;const oe={ArrowLeft:ie,ArrowRight:te},re={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},le={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ce extends F{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Y.findOne(".carousel-indicators",this._element),this._addEventListeners(),"carousel"===this._config.ride&&this.cycle()}static get Default(){return re}static get DefaultType(){return le}static get NAME(){return"carousel"}next(){this._slide(J)}nextWhenVisible(){!document.hidden&&s(this._element)&&this.next()}prev(){this._slide(ee)}pause(){this._isSliding&&c(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?L.one(this._element,se,()=>this.cycle()):this.cycle())}to(e){var t,i=this._getItems();e>i.length-1||e<0||(this._isSliding?L.one(this._element,se,()=>this.to(e)):(t=this._getItemIndex(this._getActive()))!==e&&(t=t<e?J:ee,this._slide(t,i[e])))}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&L.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(L.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),L.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&Q.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of Y.find(".carousel-item img",this._element))L.on(t,"dragstart.bs.carousel",e=>e.preventDefault());var e={leftCallback:()=>this._slide(this._directionToOrder(te)),rightCallback:()=>this._slide(this._directionToOrder(ie)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Q(this._element,e)}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=oe[e.key])&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=Y.findOne(".active",this._indicatorsElement);t.classList.remove(ne),t.removeAttribute("aria-current");const i=Y.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(ne),i.setAttribute("aria-current","true"))}}_updateInterval(){const e=this._activeElement||this._getActive();var t;e&&(t=Number.parseInt(e.getAttribute("data-bs-interval"),10),this._config.interval=t||this._config.defaultInterval)}_slide(t,e=null){if(!this._isSliding){const s=this._getActive();var i=t===J;const n=e||b(this._getItems(),s,i,this._config.wrap);if(n!==s){const a=this._getItemIndex(n),o=e=>L.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(s),to:a});e=o("slide.bs.carousel");if(!e.defaultPrevented&&s&&n){e=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=n;const r=i?"carousel-item-start":"carousel-item-end",l=i?"carousel-item-next":"carousel-item-prev";n.classList.add(l),f(n),s.classList.add(r),n.classList.add(r);this._queueCallback(()=>{n.classList.remove(r,l),n.classList.add(ne),s.classList.remove(ne,l,r),this._isSliding=!1,o(se)},s,this._isAnimated()),e&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Y.findOne(".active.carousel-item",this._element)}_getItems(){return Y.find(ae,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return g()?e===te?ee:J:e===te?J:ee}_orderToDirection(e){return g()?e===ee?te:ie:e===ee?ie:te}static jQueryInterface(t){return this.each(function(){const e=ce.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)})}}L.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(e){const t=l(this);if(t&&t.classList.contains("carousel")){e.preventDefault();const i=ce.getOrCreateInstance(t);e=this.getAttribute("data-bs-slide-to");return e?(i.to(e),void i._maybeEnableCycle()):("next"===B.getDataAttribute(this,"slide")?i.next():i.prev(),void i._maybeEnableCycle())}}),L.on(window,"load.bs.carousel.data-api",()=>{for(const e of Y.find('[data-bs-ride="carousel"]'))ce.getOrCreateInstance(e)}),e(ce);const de="collapse",ue="collapsing",pe=(de,de,'[data-bs-toggle="collapse"]'),he={parent:null,toggle:!0},fe={parent:"(null|element)",toggle:"boolean"};class me extends F{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];for(const n of Y.find(pe)){var i=r(n),s=Y.find(i).filter(e=>e===this._element);null!==i&&s.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return he}static get DefaultType(){return fe}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>me.getOrCreateInstance(e,{toggle:!1}))),!e.length||!e[0]._isTransitioning)if(!L.trigger(this._element,"show.bs.collapse").defaultPrevented){for(const s of e)s.hide();const i=this._getDimension();this._element.classList.remove(de),this._element.classList.add(ue),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var t="scroll"+(i[0].toUpperCase()+i.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ue),this._element.classList.add(de,"show"),this._element.style[i]="",L.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[i]=this._element[t]+"px"}}}hide(){if(!this._isTransitioning&&this._isShown()&&!L.trigger(this._element,"hide.bs.collapse").defaultPrevented){var e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",f(this._element),this._element.classList.add(ue),this._element.classList.remove(de,"show");for(const i of this._triggerArray){var t=l(i);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ue),this._element.classList.add(de),L.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}_isShown(e=this._element){return e.classList.contains("show")}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=n(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent)for(const t of this._getFirstLevelChildren(pe)){var e=l(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Y.find(":scope .collapse .collapse",this._config.parent);return Y.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(t){const i={};return"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){const e=me.getOrCreateInstance(this,i);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}L.on(document,"click.bs.collapse.data-api",pe,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();e=r(this);for(const t of Y.find(e))me.getOrCreateInstance(t,{toggle:!1}).toggle()}),e(me);var ge="top",ve="bottom",ye="right",be="left",we="auto",xe=[ge,ve,ye,be],_e="start",Se="end",Te="clippingParents",Ce="viewport",Ee="popper",ke="reference",$e=xe.reduce(function(e,t){return e.concat([t+"-"+_e,t+"-"+Se])},[]),Ae=[].concat(xe,[we]).reduce(function(e,t){return e.concat([t,t+"-"+_e,t+"-"+Se])},[]),Pe="beforeRead",Ie="beforeMain",Me="beforeWrite",Oe="afterWrite",Le=[Pe,"read","afterRead",Ie,"main","afterMain",Me,"write",Oe];function ze(e){return e?(e.nodeName||"").toLowerCase():null}function De(e){if(null==e)return window;if("[object Window]"===e.toString())return e;e=e.ownerDocument;return e&&e.defaultView||window}function Ne(e){return e instanceof De(e).Element||e instanceof Element}function je(e){return e instanceof De(e).HTMLElement||e instanceof HTMLElement}function He(e){return"undefined"!=typeof ShadowRoot&&(e instanceof De(e).ShadowRoot||e instanceof ShadowRoot)}var Be={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var n=e.state;Object.keys(n.elements).forEach(function(e){var t=n.styles[e]||{},i=n.attributes[e]||{},s=n.elements[e];je(s)&&ze(s)&&(Object.assign(s.style,t),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var s=e.state,n={popper:{position:s.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(s.elements.popper.style,n.popper),s.styles=n,s.elements.arrow&&Object.assign(s.elements.arrow.style,n.arrow),function(){Object.keys(s.elements).forEach(function(e){var t=s.elements[e],i=s.attributes[e]||{},e=Object.keys((s.styles.hasOwnProperty(e)?s.styles:n)[e]).reduce(function(e,t){return e[t]="",e},{});je(t)&&ze(t)&&(Object.assign(t.style,e),Object.keys(i).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};function Re(e){return e.split("-")[0]}var Fe=Math.max,qe=Math.min,We=Math.round;function Ve(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ue(){return!/^((?!chrome|android).)*safari/i.test(Ve())}function Ye(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var s=e.getBoundingClientRect(),n=1,a=1;t&&je(e)&&(n=0<e.offsetWidth&&We(s.width)/e.offsetWidth||1,a=0<e.offsetHeight&&We(s.height)/e.offsetHeight||1);t=(Ne(e)?De(e):window).visualViewport,e=!Ue()&&i,i=(s.left+(e&&t?t.offsetLeft:0))/n,t=(s.top+(e&&t?t.offsetTop:0))/a,n=s.width/n,a=s.height/a;return{width:n,height:a,top:t,right:i+n,bottom:t+a,left:i,x:i,y:t}}function Ge(e){var t=Ye(e),i=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:s}}function Xe(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&He(i)){var s=t;do{if(s&&e.isSameNode(s))return!0}while(s=s.parentNode||s.host)}return!1}function Ke(e){return De(e).getComputedStyle(e)}function Qe(e){return((Ne(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ze(e){return"html"===ze(e)?e:e.assignedSlot||e.parentNode||(He(e)?e.host:null)||Qe(e)}function Je(e){return je(e)&&"fixed"!==Ke(e).position?e.offsetParent:null}function et(e){for(var t,i=De(e),s=Je(e);s&&(t=s,0<=["table","td","th"].indexOf(ze(t)))&&"static"===Ke(s).position;)s=Je(s);return(!s||"html"!==ze(s)&&("body"!==ze(s)||"static"!==Ke(s).position))&&(s||function(e){var t=/firefox/i.test(Ve()),i=/Trident/i.test(Ve());if(i&&je(e)&&"fixed"===Ke(e).position)return null;var s=Ze(e);for(He(s)&&(s=s.host);je(s)&&["html","body"].indexOf(ze(s))<0;){var n=Ke(s);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return s;s=s.parentNode}return null}(e))||i}function tt(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function it(e,t,i){return Fe(e,qe(t,i))}function st(){return{top:0,right:0,bottom:0,left:0}}function nt(e){return Object.assign({},st(),e)}function at(i,e){return e.reduce(function(e,t){return e[t]=i,e},{})}var ot={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,s=e.state,n=e.name,a=e.options,o=s.elements.arrow,r=s.modifiersData.popperOffsets,l=Re(s.placement),c=tt(l),d=0<=[be,ye].indexOf(l)?"height":"width";o&&r&&(t=a.padding,i=s,e=nt("number"!=typeof(t="function"==typeof t?t(Object.assign({},i.rects,{placement:i.placement})):t)?t:at(t,xe)),l=Ge(o),a="y"===c?ge:be,i="y"===c?ve:ye,t=s.rects.reference[d]+s.rects.reference[c]-r[c]-s.rects.popper[d],r=r[c]-s.rects.reference[c],o=(o=et(o))?"y"===c?o.clientHeight||0:o.clientWidth||0:0,a=e[a],i=o-l[d]-e[i],i=it(a,r=o/2-l[d]/2+(t/2-r/2),i),s.modifiersData[n]=((n={})[c]=i,n.centerOffset=i-r,n))},effect:function(e){var t=e.state;null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&Xe(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rt(e){return e.split("-")[1]}var lt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ct(e){var t=e.popper,i=e.popperRect,s=e.placement,n=e.variation,a=e.offsets,o=e.position,r=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,u=a.x,p=void 0===u?0:u,h=a.y,f=void 0===h?0:h,m="function"==typeof c?c({x:p,y:f}):{x:p,y:f},p=m.x,f=m.y,g=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=be,e=ge,u=window;l&&(h="clientHeight",m="clientWidth",(a=et(t))===De(t)&&"static"!==Ke(a=Qe(t)).position&&"absolute"===o&&(h="scrollHeight",m="scrollWidth"),s!==ge&&(s!==be&&s!==ye||n!==Se)||(e=ve,f-=(d&&a===u&&u.visualViewport?u.visualViewport.height:a[h])-i.height,f*=r?1:-1),s!==be&&(s!==ge&&s!==ve||n!==Se)||(y=ye,p-=(d&&a===u&&u.visualViewport?u.visualViewport.width:a[m])-i.width,p*=r?1:-1));var o=Object.assign({position:o},l&&lt),b=!0===c?(l=(b={x:p,y:f}).x,c=b.y,b=window.devicePixelRatio||1,{x:We(l*b)/b||0,y:We(c*b)/b||0}):{x:p,y:f};return p=b.x,f=b.y,r?Object.assign({},o,((r={})[e]=v?"0":"",r[y]=g?"0":"",r.transform=(u.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",r)):Object.assign({},o,((o={})[e]=v?f+"px":"",o[y]=g?p+"px":"",o.transform="",o))}var dt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,e=void 0===(s=i.gpuAcceleration)||s,s=void 0===(s=i.adaptive)||s,i=void 0===(i=i.roundOffsets)||i,e={placement:Re(t.placement),variation:rt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:e,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ct(Object.assign({},e,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ct(Object.assign({},e,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ut={passive:!0};var pt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,s=e.options,n=void 0===(e=s.scroll)||e,a=void 0===(s=s.resize)||s,o=De(t.elements.popper),r=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&r.forEach(function(e){e.addEventListener("scroll",i.update,ut)}),a&&o.addEventListener("resize",i.update,ut),function(){n&&r.forEach(function(e){e.removeEventListener("scroll",i.update,ut)}),a&&o.removeEventListener("resize",i.update,ut)}},data:{}},ht={left:"right",right:"left",bottom:"top",top:"bottom"};function ft(e){return e.replace(/left|right|bottom|top/g,function(e){return ht[e]})}var mt={start:"end",end:"start"};function gt(e){return e.replace(/start|end/g,function(e){return mt[e]})}function vt(e){e=De(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function yt(e){return Ye(Qe(e)).left+vt(e).scrollLeft}function bt(e){var t=Ke(e),i=t.overflow,e=t.overflowX,t=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+t+e)}function wt(e,t){void 0===t&&(t=[]);var i=function e(t){return 0<=["html","body","#document"].indexOf(ze(t))?t.ownerDocument.body:je(t)&&bt(t)?t:e(Ze(t))}(e),e=i===(null==(s=e.ownerDocument)?void 0:s.body),s=De(i),i=e?[s].concat(s.visualViewport||[],bt(i)?i:[]):i,t=t.concat(i);return e?t:t.concat(wt(Ze(i)))}function xt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _t(e,t,i){return t===Ce?xt((o=i,r=De(a=e),l=Qe(a),c=r.visualViewport,d=l.clientWidth,u=l.clientHeight,r=p=0,c&&(d=c.width,u=c.height,((l=Ue())||!l&&"fixed"===o)&&(p=c.offsetLeft,r=c.offsetTop)),{width:d,height:u,x:p+yt(a),y:r})):Ne(t)?((n=Ye(s=t,!1,"fixed"===(n=i))).top=n.top+s.clientTop,n.left=n.left+s.clientLeft,n.bottom=n.top+s.clientHeight,n.right=n.left+s.clientWidth,n.width=s.clientWidth,n.height=s.clientHeight,n.x=n.left,n.y=n.top,n):xt((r=Qe(e),t=Qe(r),i=vt(r),n=null==(s=r.ownerDocument)?void 0:s.body,e=Fe(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=Fe(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-i.scrollLeft+yt(r),i=-i.scrollTop,"rtl"===Ke(n||t).direction&&(r+=Fe(t.clientWidth,n?n.clientWidth:0)-e),{width:e,height:s,x:r,y:i}));var s,n,a,o,r,l,c,d,u,p}function St(i,e,t,s){var n,a,o,e="clippingParents"===e?(a=wt(Ze(n=i)),Ne(o=0<=["absolute","fixed"].indexOf(Ke(n).position)&&je(n)?et(n):n)?a.filter(function(e){return Ne(e)&&Xe(e,o)&&"body"!==ze(e)}):[]):[].concat(e),e=[].concat(e,[t]),t=e[0],t=e.reduce(function(e,t){t=_t(i,t,s);return e.top=Fe(t.top,e.top),e.right=qe(t.right,e.right),e.bottom=qe(t.bottom,e.bottom),e.left=Fe(t.left,e.left),e},_t(i,t,s));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function Tt(e){var t,i=e.reference,s=e.element,n=e.placement,e=n?Re(n):null,n=n?rt(n):null,a=i.x+i.width/2-s.width/2,o=i.y+i.height/2-s.height/2;switch(e){case ge:t={x:a,y:i.y-s.height};break;case ve:t={x:a,y:i.y+i.height};break;case ye:t={x:i.x+i.width,y:o};break;case be:t={x:i.x-s.width,y:o};break;default:t={x:i.x,y:i.y}}var r=e?tt(e):null;if(null!=r){var l="y"===r?"height":"width";switch(n){case _e:t[r]=t[r]-(i[l]/2-s[l]/2);break;case Se:t[r]=t[r]+(i[l]/2-s[l]/2)}}return t}function Ct(e,t){var s,i=t=void 0===t?{}:t,n=i.placement,a=void 0===n?e.placement:n,o=i.strategy,r=void 0===o?e.strategy:o,l=i.boundary,c=void 0===l?Te:l,t=i.rootBoundary,n=void 0===t?Ce:t,o=i.elementContext,l=void 0===o?Ee:o,t=i.altBoundary,o=void 0!==t&&t,t=i.padding,i=void 0===t?0:t,t=nt("number"!=typeof i?i:at(i,xe)),i=e.rects.popper,o=e.elements[o?l===Ee?ke:Ee:l],c=St(Ne(o)?o:o.contextElement||Qe(e.elements.popper),c,n,r),n=Ye(e.elements.reference),r=Tt({reference:n,element:i,strategy:"absolute",placement:a}),r=xt(Object.assign({},i,r)),n=l===Ee?r:n,d={top:c.top-n.top+t.top,bottom:n.bottom-c.bottom+t.bottom,left:c.left-n.left+t.left,right:n.right-c.right+t.right},e=e.modifiersData.offset;return l===Ee&&e&&(s=e[a],Object.keys(d).forEach(function(e){var t=0<=[ye,ve].indexOf(e)?1:-1,i=0<=[ge,ve].indexOf(e)?"y":"x";d[e]+=s[i]*t})),d}var Et={name:"flip",enabled:!0,phase:"main",fn:function(e){var u=e.state,t=e.options,i=e.name;if(!u.modifiersData[i]._skip){for(var s=t.mainAxis,n=void 0===s||s,e=t.altAxis,a=void 0===e||e,s=t.fallbackPlacements,p=t.padding,h=t.boundary,f=t.rootBoundary,o=t.altBoundary,e=t.flipVariations,m=void 0===e||e,g=t.allowedAutoPlacements,e=u.options.placement,t=Re(e),t=s||(t===e||!m?[ft(e)]:function(e){if(Re(e)===we)return[];var t=ft(e);return[gt(e),t,gt(t)]}(e)),r=[e].concat(t).reduce(function(e,t){return e.concat(Re(t)===we?(i=u,n=s=void 0===(s={placement:t,boundary:h,rootBoundary:f,padding:p,flipVariations:m,allowedAutoPlacements:g})?{}:s,e=n.placement,a=n.boundary,o=n.rootBoundary,r=n.padding,s=n.flipVariations,l=void 0===(n=n.allowedAutoPlacements)?Ae:n,c=rt(e),e=c?s?$e:$e.filter(function(e){return rt(e)===c}):xe,d=(s=0===(s=e.filter(function(e){return 0<=l.indexOf(e)})).length?e:s).reduce(function(e,t){return e[t]=Ct(i,{placement:t,boundary:a,rootBoundary:o,padding:r})[Re(t)],e},{}),Object.keys(d).sort(function(e,t){return d[e]-d[t]})):t);var i,s,n,a,o,r,l,c,d},[]),l=u.rects.reference,c=u.rects.popper,d=new Map,v=!0,y=r[0],b=0;b<r.length;b++){var w=r[b],x=Re(w),_=rt(w)===_e,S=0<=[ge,ve].indexOf(x),T=S?"width":"height",C=Ct(u,{placement:w,boundary:h,rootBoundary:f,altBoundary:o,padding:p}),S=S?_?ye:be:_?ve:ge;l[T]>c[T]&&(S=ft(S));_=ft(S),T=[];if(n&&T.push(C[x]<=0),a&&T.push(C[S]<=0,C[_]<=0),T.every(function(e){return e})){y=w,v=!1;break}d.set(w,T)}if(v)for(var E=m?3:1;0<E;E--)if("break"===function(t){var e=r.find(function(e){e=d.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return y=e,"break"}(E))break;u.placement!==y&&(u.modifiersData[i]._skip=!0,u.placement=y,u.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function kt(e,t,i){return{top:e.top-t.height-(i=void 0===i?{x:0,y:0}:i).y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function $t(t){return[ge,ye,ve,be].some(function(e){return 0<=t[e]})}var At={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,s=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,o=Ct(t,{elementContext:"reference"}),e=Ct(t,{altBoundary:!0}),s=kt(o,s),e=kt(e,n,a),n=$t(s),a=$t(e);t.modifiersData[i]={referenceClippingOffsets:s,popperEscapeOffsets:e,isReferenceHidden:n,hasPopperEscaped:a},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":n,"data-popper-escaped":a})}};var Pt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var o=e.state,t=e.options,i=e.name,r=void 0===(s=t.offset)?[0,0]:s,e=Ae.reduce(function(e,t){var i,s,n,a;return e[t]=(i=t,s=o.rects,n=r,a=Re(i),t=0<=[be,ge].indexOf(a)?-1:1,n=(n=(i="function"==typeof n?n(Object.assign({},s,{placement:i})):n)[0])||0,i=((i=i[1])||0)*t,0<=[be,ye].indexOf(a)?{x:i,y:n}:{x:n,y:i}),e},{}),s=(t=e[o.placement]).x,t=t.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=s,o.modifiersData.popperOffsets.y+=t),o.modifiersData[i]=e}};var It={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,e=e.name;t.modifiersData[e]=Tt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};Z={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,i,s,n=e.state,a=e.options,o=e.name,r=a.mainAxis,l=void 0===r||r,c=void 0!==(T=a.altAxis)&&T,d=a.boundary,u=a.rootBoundary,p=a.altBoundary,h=a.padding,f=void 0===(C=a.tether)||C,m=a.tetherOffset,g=void 0===m?0:m,v=Ct(n,{boundary:d,rootBoundary:u,padding:h,altBoundary:p}),y=Re(n.placement),b=rt(n.placement),w=!b,x="x"===(s=tt(y))?"y":"x",_=n.modifiersData.popperOffsets,S=n.rects.reference,e=n.rects.popper,T="number"==typeof(r="function"==typeof g?g(Object.assign({},n.rects,{placement:n.placement})):g)?{mainAxis:r,altAxis:r}:Object.assign({mainAxis:0,altAxis:0},r),C=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,a={x:0,y:0};_&&(l&&(m="y"===s?"height":"width",u=(t=_[s])+v[d="y"===s?ge:be],i=t-v[h="y"===s?ve:ye],p=f?-e[m]/2:0,g=(b===_e?S:e)[m],r=b===_e?-e[m]:-S[m],l=n.elements.arrow,b=f&&l?Ge(l):{width:0,height:0},d=(l=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:st())[d],h=l[h],b=it(0,S[m],b[m]),d=w?S[m]/2-p-b-d-T.mainAxis:g-b-d-T.mainAxis,r=w?-S[m]/2+p+b+h+T.mainAxis:r+b+h+T.mainAxis,h=(b=n.elements.arrow&&et(n.elements.arrow))?"y"===s?b.clientTop||0:b.clientLeft||0:0,b=t+r-(r=null!=(b=null==C?void 0:C[s])?b:0),i=it(f?qe(u,t+d-r-h):u,t,f?Fe(i,b):i),_[s]=i,a[s]=i-t),c&&(i="y"==x?"height":"width",c=(t=_[x])+v["x"===s?ge:be],v=t-v["x"===s?ve:ye],s=-1!==[ge,be].indexOf(y),C=null!=(y=null==C?void 0:C[x])?y:0,y=s?c:t-S[i]-e[i]-C+T.altAxis,C=s?t+S[i]+e[i]-C-T.altAxis:v,v=f&&s?(T=it(y,T=t,s=C),s<T?s:T):it(f?y:c,t,f?C:v),_[x]=v,a[x]=v-t),n.modifiersData[o]=a)},requiresIfExists:["offset"]};function Mt(e,t,i){void 0===i&&(i=!1);var s=je(t),n=je(t)&&(n=(o=t).getBoundingClientRect(),a=We(n.width)/o.offsetWidth||1,o=We(n.height)/o.offsetHeight||1,1!==a||1!==o),a=Qe(t),o=Ye(e,n,i),e={scrollLeft:0,scrollTop:0},n={x:0,y:0};return!s&&i||("body"===ze(t)&&!bt(a)||(e=(i=t)!==De(i)&&je(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:vt(i)),je(t)?((n=Ye(t,!0)).x+=t.clientLeft,n.y+=t.clientTop):a&&(n.x=yt(a))),{x:o.left+e.scrollLeft-n.x,y:o.top+e.scrollTop-n.y,width:o.width,height:o.height}}function Ot(e){var i=new Map,s=new Set,n=[];return e.forEach(function(e){i.set(e.name,e)}),e.forEach(function(e){s.has(e.name)||!function t(e){s.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){s.has(e)||(e=i.get(e))&&t(e)}),n.push(e)}(e)}),n}var Lt={placement:"bottom",modifiers:[],strategy:"absolute"};function zt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Dt(e){var t=e=void 0===e?{}:e,e=t.defaultModifiers,u=void 0===e?[]:e,t=t.defaultOptions,p=void 0===t?Lt:t;return function(s,n,t){void 0===t&&(t=p);var i,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lt,p),modifiersData:{},elements:{reference:s,popper:n},attributes:{},styles:{}},r=[],l=!1,c={state:o,setOptions:function(e){e="function"==typeof e?e(o.options):e;d(),o.options=Object.assign({},p,o.options,e),o.scrollParents={reference:Ne(s)?wt(s):s.contextElement?wt(s.contextElement):[],popper:wt(n)};var i,t,e=(e=[].concat(u,o.options.modifiers),t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),e=Object.keys(t).map(function(e){return t[e]}),i=Ot(e),Le.reduce(function(e,t){return e.concat(i.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=e.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,e=e.effect;"function"==typeof e&&(i=e({state:o,name:t,instance:c,options:void 0===i?{}:i}),r.push(i||function(){}))}),c.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,e=e.popper;if(zt(t,e)){o.rects={reference:Mt(t,et(e),"fixed"===o.options.strategy),popper:Ge(e)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var i,s,n,a=0;a<o.orderedModifiers.length;a++)!0!==o.reset?(i=(n=o.orderedModifiers[a]).fn,s=n.options,n=n.name,"function"==typeof i&&(o=i({state:o,options:void 0===s?{}:s,name:n,instance:c})||o)):(o.reset=!1,a=-1)}}},update:(i=function(){return new Promise(function(e){c.forceUpdate(),e(o)})},function(){return a=a||new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(i())})})}),destroy:function(){d(),l=!0}};return zt(s,n)&&c.setOptions(t).then(function(e){!l&&t.onFirstUpdate&&t.onFirstUpdate(e)}),c;function d(){r.forEach(function(e){return e()}),r=[]}}}var Nt=Dt({defaultModifiers:[pt,It,dt,Be,Pt,Et,Z,ot,At]});const jt=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:Dt,detectOverflow:Ct,createPopperBase:Dt(),createPopper:Nt,createPopperLite:Dt({defaultModifiers:[pt,It,dt,Be]}),top:ge,bottom:ve,right:ye,left:be,auto:we,basePlacements:xe,start:_e,end:Se,clippingParents:Te,viewport:Ce,popper:Ee,reference:ke,variationPlacements:$e,placements:Ae,beforeRead:Pe,read:"read",afterRead:"afterRead",beforeMain:Ie,main:"main",afterMain:"afterMain",beforeWrite:Me,write:"write",afterWrite:Oe,modifierPhases:Le,applyStyles:Be,arrow:ot,computeStyles:dt,eventListeners:pt,flip:Et,hide:At,offset:Pt,popperOffsets:It,preventOverflow:Z},Symbol.toStringTag,{value:"Module"}));Pt=".bs.dropdown",It=".data-api";Z="click"+Pt+It,It="keydown"+Pt+It;const Ht="show",Bt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Rt=(Bt,".dropdown-menu"),Ft=g()?"top-end":"top-start",qt=g()?"top-start":"top-end",Wt=g()?"bottom-end":"bottom-start",Vt=g()?"bottom-start":"bottom-end",Ut=g()?"left-start":"right-start",Yt=g()?"right-start":"left-start",Gt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Xt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Kt extends F{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Y.next(this._element,Rt)[0]||Y.prev(this._element,Rt)[0]||Y.findOne(Rt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Gt}static get DefaultType(){return Xt}static get NAME(){return"dropdown"}toggle(){return this._isShown()?this.hide():this.show()}show(){if(!u(this._element)&&!this._isShown()){var e={relatedTarget:this._element};if(!L.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))L.on(t,"mouseover",h);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ht),this._element.classList.add(Ht),L.trigger(this._element,"shown.bs.dropdown",e)}}}hide(){var e;!u(this._element)&&this._isShown()&&(e={relatedTarget:this._element},this._completeHide(e))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!L.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))L.off(t,"mouseover",h);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ht),this._element.classList.remove(Ht),this._element.setAttribute("aria-expanded","false"),B.removeDataAttribute(this._menu,"popper"),L.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!d(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError("dropdown".toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return e}_createPopper(){if(void 0===jt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:d(this._config.reference)?e=n(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);var t=this._getPopperConfig();this._popper=Nt(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Ht)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Ut;if(e.classList.contains("dropstart"))return Yt;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";var t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?qt:Ft:t?Vt:Wt}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return!this._inNavbar&&"static"!==this._config.display||(B.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const i=Y.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>s(e));i.length&&b(i,t,"ArrowDown"===e,!i.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){const e=Kt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(e){if(2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(const i of Y.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show')){const s=Kt.getInstance(i);if(s&&!1!==s._config.autoClose){const n=e.composedPath();var t=n.includes(s._menu);if(!(n.includes(s._element)||"inside"===s._config.autoClose&&!t||"outside"===s._config.autoClose&&t||s._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))){const a={relatedTarget:s._element};"click"===e.type&&(a.clickEvent=e),s._completeHide(a)}}}}static dataApiKeydownHandler(e){var t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,s=["ArrowUp","ArrowDown"].includes(e.key);if((s||i)&&(!t||i)){e.preventDefault();const n=this.matches(Bt)?this:Y.prev(this,Bt)[0]||Y.next(this,Bt)[0]||Y.findOne(Bt,e.delegateTarget.parentNode),a=Kt.getOrCreateInstance(n);if(s)return e.stopPropagation(),a.show(),void a._selectMenuItem(e);a._isShown()&&(e.stopPropagation(),a.hide(),n.focus())}}}L.on(document,It,Bt,Kt.dataApiKeydownHandler),L.on(document,It,Rt,Kt.dataApiKeydownHandler),L.on(document,Z,Kt.clearMenus),L.on(document,"keyup.bs.dropdown.data-api",Kt.clearMenus),L.on(document,Z,Bt,function(e){e.preventDefault(),Kt.getOrCreateInstance(this).toggle()}),e(Kt);const Qt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Zt=".sticky-top",Jt="padding-right",ei="margin-right";class ti{constructor(){this._element=document.body}getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Jt,e=>e+t),this._setElementAttributes(Qt,Jt,e=>e+t),this._setElementAttributes(Zt,ei,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Jt),this._resetElementAttributes(Qt,Jt),this._resetElementAttributes(Zt,ei)}isOverflowing(){return 0<this.getWidth()}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,i,s){const n=this.getWidth();this._applyManipulationCallback(e,e=>{var t;e!==this._element&&window.innerWidth>e.clientWidth+n||(this._saveInitialAttribute(e,i),t=window.getComputedStyle(e).getPropertyValue(i),e.style.setProperty(i,s(Number.parseFloat(t))+"px"))})}_saveInitialAttribute(e,t){var i=e.style.getPropertyValue(t);i&&B.setDataAttribute(e,t,i)}_resetElementAttributes(e,i){this._applyManipulationCallback(e,e=>{var t=B.getDataAttribute(e,i);null!==t?(B.removeDataAttribute(e,i),e.style.setProperty(i,t)):e.style.removeProperty(i)})}_applyManipulationCallback(e,t){if(d(e))t(e);else for(const i of Y.find(e,this._element))t(i)}}const ii="mousedown.bs.backdrop",si={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ni={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ai extends R{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return si}static get DefaultType(){return ni}static get NAME(){return"backdrop"}show(e){if(this._config.isVisible){this._append();const t=this._getElement();this._config.isAnimated&&f(t),t.classList.add("show"),this._emulateAnimation(()=>{v(e)})}else v(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),v(e)})):v(e)}dispose(){this._isAppended&&(L.off(this._element,ii),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=n(e.rootElement),e}_append(){var e;this._isAppended||(e=this._getElement(),this._config.rootElement.append(e),L.on(e,ii,()=>{v(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(e){y(e,this._getElement(),this._config.isAnimated)}}const oi=".bs.focustrap",ri=(oi,oi,{autofocus:!0,trapElement:null}),li={autofocus:"boolean",trapElement:"element"};class ci extends R{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ri}static get DefaultType(){return li}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),L.off(document,oi),L.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),L.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,L.off(document,oi))}_handleFocusin(e){const t=this._config["trapElement"];if(e.target!==document&&e.target!==t&&!t.contains(e.target)){const i=Y.focusableChildren(t);(0===i.length?t:"backward"===this._lastTabNavDirection?i[i.length-1]:i[0]).focus()}}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?"backward":"forward")}}const di=".bs.modal";di,di;const ui="hidden"+di,pi="show"+di;di,di,di,di,di;di;const hi="modal-open",fi="modal-static";const mi={backdrop:!0,focus:!0,keyboard:!0},gi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class vi extends F{constructor(e,t){super(e,t),this._dialog=Y.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ti,this._addEventListeners()}static get Default(){return mi}static get DefaultType(){return gi}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||L.trigger(this._element,pi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(hi),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(L.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){for(const e of[window,this._dialog])L.off(e,di);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ai({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ci({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=Y.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),f(this._element),this._element.classList.add("show");this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,L.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){L.on(this._element,"keydown.dismiss.bs.modal",e=>{if("Escape"===e.key)return this._config.keyboard?(e.preventDefault(),void this.hide()):void this._triggerBackdropTransition()}),L.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),L.on(this._element,"mousedown.dismiss.bs.modal",t=>{L.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(hi),this._resetAdjustments(),this._scrollBar.reset(),L.trigger(this._element,ui)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(!L.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented){var e=this._element.scrollHeight>document.documentElement.clientHeight;const t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(fi)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(fi),this._queueCallback(()=>{this._element.classList.remove(fi),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var e,t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),s=0<i;s&&!t&&(e=g()?"paddingLeft":"paddingRight",this._element.style[e]=i+"px"),!s&&t&&(t=g()?"paddingRight":"paddingLeft",this._element.style[t]=i+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){const e=vi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](i)}})}}L.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(e){const t=l(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),L.one(t,pi,e=>{e.defaultPrevented||L.one(t,ui,()=>{s(this)&&this.focus()})});e=Y.findOne(".modal.show");e&&vi.getInstance(e).hide();const i=vi.getOrCreateInstance(t);i.toggle(this)}),q(vi),e(vi);Z=".bs.offcanvas";const yi=".offcanvas.show",bi="hidePrevented"+Z,wi="hidden"+Z;const xi={backdrop:!0,keyboard:!0,scroll:!1},_i={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Si extends F{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return xi}static get DefaultType(){return _i}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||L.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ti).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("showing"),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove("showing"),L.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(L.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ti).reset(),L.trigger(this._element,wi)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var e=Boolean(this._config.backdrop);return new ai({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():L.trigger(this._element,bi)}:null})}_initializeFocusTrap(){return new ci({trapElement:this._element})}_addEventListeners(){L.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():L.trigger(this._element,bi))})}static jQueryInterface(t){return this.each(function(){const e=Si.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}L.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(e){var t=l(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!u(this)){L.one(t,wi,()=>{s(this)&&this.focus()});e=Y.findOne(yi);e&&e!==t&&Si.getInstance(e).hide();const i=Si.getOrCreateInstance(t);i.toggle(this)}}),L.on(window,"load.bs.offcanvas.data-api",()=>{for(const e of Y.find(yi))Si.getOrCreateInstance(e).show()}),L.on(window,"resize.bs.offcanvas",()=>{for(const e of Y.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Si.getOrCreateInstance(e).hide()}),q(Si),e(Si);const Ti=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]);const Ci=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ei=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;Z={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function ki(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const s=new window.DOMParser,n=s.parseFromString(e,"text/html");for(const l of[].concat(...n.body.querySelectorAll("*"))){var a=l.nodeName.toLowerCase();if(Object.keys(t).includes(a)){var o=[].concat(...l.attributes),r=[].concat(t["*"]||[],t[a]||[]);for(const c of o)((e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Ti.has(i)||Boolean(Ci.test(e.nodeValue)||Ei.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))})(c,r)||l.removeAttribute(c.nodeName)}else l.remove()}return n.body.innerHTML}const $i={allowList:Z,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ai={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Pi={entry:"(string|element|function|null)",selector:"(string|element)"};class Ii extends R{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return $i}static get DefaultType(){return Ai}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return 0<this.getContent().length}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(var[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const s=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&s.classList.add(...n.split(" ")),s}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(var[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},Pi)}_setContent(e,t,i){const s=Y.findOne(i,e);s&&((t=this._resolvePossibleFunction(t))?d(t)?this._putElementInTemplate(n(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?ki(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return"function"==typeof e?e(this):e}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Mi=new Set(["sanitize","allowList","sanitizeFn"]);const Oi="show",Li="hide.bs.modal",zi="hover",Di={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},Ni={allowList:Z,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ji={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Hi extends F{constructor(e,t){if(void 0===jt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Ni}static get DefaultType(){return ji}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),L.off(this._element.closest(".modal"),Li,this._hideModalHandler),this.tip&&this.tip.remove(),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this._isWithContent()&&this._isEnabled){var e=L.trigger(this._element,this.constructor.eventName("show"));const i=p(this._element);var t=(i||this._element.ownerDocument.documentElement).contains(this._element);if(!e.defaultPrevented&&t){this.tip&&(this.tip.remove(),this.tip=null);const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const n=this._config["container"];if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(s),L.trigger(this._element,this.constructor.eventName("inserted"))),this._popper?this._popper.update():this._popper=this._createPopper(s),s.classList.add(Oi),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))L.on(a,"mouseover",h);this._queueCallback(()=>{L.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}hide(){if(this._isShown()&&!L.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){const e=this._getTipElement();if(e.classList.remove(Oi),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))L.off(t,"mouseover",h);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger[zi]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||e.remove(),this._element.removeAttribute("aria-describedby"),L.trigger(this._element,this.constructor.eventName("hidden")),this._disposePopper())},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove("fade",Oi),t.classList.add(`bs-${this.constructor.NAME}-auto`);e=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME).toString();return t.setAttribute("id",e),this._isAnimated()&&t.classList.add("fade"),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Ii({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains("fade")}_isShown(){return this.tip&&this.tip.classList.contains(Oi)}_createPopper(e){const t="function"==typeof this._config.placement?this._config.placement.call(this,e,this._element):this._config.placement;var i=Di[t.toUpperCase()];return Nt(this._element,e,this._getPopperConfig(i))}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){var e,t;for(const i of this._config.trigger.split(" "))"click"===i?L.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t.toggle()}):"manual"!==i&&(e=i===zi?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),t=i===zi?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout"),L.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?"focus":zi]=!0,t._enter()}),L.on(this._element,t,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?"focus":zi]=t._element.contains(e.relatedTarget),t._leave()}));this._hideModalHandler=()=>{this._element&&this.hide()},L.on(this._element.closest(".modal"),Li,this._hideModalHandler)}_fixTitle(){var e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=B.getDataAttributes(this._element);for(const i of Object.keys(t))Mi.has(i)&&delete t[i];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:n(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const e=Hi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(Hi);const Bi={...Hi.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Ri={...Hi.DefaultType,content:"(null|string|element|function)"};class Fi extends Hi{static get Default(){return Bi}static get DefaultType(){return Ri}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Fi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(Fi);Z=".bs.scrollspy";const qi="click"+Z;const Wi="active",Vi="[href]";const Ui={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Yi={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Gi extends F{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ui}static get DefaultType(){return Yi}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=n(e.target)||document.body,e.rootMargin=e.offset?e.offset+"px 0px -30%":e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(L.off(this._config.target,qi),L.on(this._config.target,qi,Vi,e=>{var t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window;t=t.offsetTop-this._element.offsetTop;i.scrollTo?i.scrollTo({top:t,behavior:"smooth"}):i.scrollTop=t}}))}_getNewObserver(){var e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get("#"+e.target.id);var i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const o of e)if(o.isIntersecting){var a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&a){if(i(o),!s)return}else n||a||i(o)}else this._activeTarget=null,this._clearActiveClass(t(o))}_initializeTargetsAndObservables(){var e;this._targetLinks=new Map,this._observableSections=new Map;for(const t of Y.find(Vi,this._config.target))t.hash&&!u(t)&&(e=Y.findOne(t.hash,this._element),s(e)&&(this._targetLinks.set(t.hash,t),this._observableSections.set(t.hash,e)))}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),(this._activeTarget=e).classList.add(Wi),this._activateParents(e),L.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Y.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Wi);else for(const t of Y.parents(e,".nav, .list-group"))for(const i of Y.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))i.classList.add(Wi)}_clearActiveClass(e){e.classList.remove(Wi);for(const t of Y.find("[href].active",e))t.classList.remove(Wi)}static jQueryInterface(t){return this.each(function(){const e=Gi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}L.on(window,"load.bs.scrollspy.data-api",()=>{for(const e of Y.find('[data-bs-spy="scroll"]'))Gi.getOrCreateInstance(e)}),e(Gi);const Xi="ArrowRight",Ki="active";Z='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const Qi='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), '+Z;class Zi extends F{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),L.on(this._element,"keydown.bs.tab",e=>this._keydown(e)))}static get NAME(){return"tab"}show(){var e,t,i=this._element;this._elemIsActive(i)||(t=(e=this._getActiveElem())?L.trigger(e,"hide.bs.tab",{relatedTarget:i}):null,L.trigger(i,"show.bs.tab",{relatedTarget:e}).defaultPrevented||t&&t.defaultPrevented||(this._deactivate(e,i),this._activate(i,e)))}_activate(e,t){e&&(e.classList.add(Ki),this._activate(l(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),L.trigger(e,"shown.bs.tab",{relatedTarget:t})):e.classList.add("show")},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(Ki),e.blur(),this._deactivate(l(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),L.trigger(e,"hidden.bs.tab",{relatedTarget:t})):e.classList.remove("show")},e,e.classList.contains("fade")))}_keydown(e){if(["ArrowLeft",Xi,"ArrowUp","ArrowDown"].includes(e.key)){e.stopPropagation(),e.preventDefault();var t=[Xi,"ArrowDown"].includes(e.key);const i=b(this._getChildren().filter(e=>!u(e)),e.target,t,!0);i&&(i.focus({preventScroll:!0}),Zi.getOrCreateInstance(i).show())}}_getChildren(){return Y.find(Qi,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const i of t)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){var t=l(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby","#"+e.id))}_toggleDropDown(e,s){const n=this._getOuterElement(e);n.classList.contains("dropdown")&&((e=(e,t)=>{const i=Y.findOne(e,n);i&&i.classList.toggle(t,s)})(".dropdown-toggle",Ki),e(".dropdown-menu","show"),n.setAttribute("aria-expanded",s))}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(Ki)}_getInnerElement(e){return e.matches(Qi)?e:Y.findOne(Qi,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(t){return this.each(function(){const e=Zi.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}L.on(document,"click.bs.tab",Z,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),u(this)||Zi.getOrCreateInstance(this).show()}),L.on(window,"load.bs.tab",()=>{for(const e of Y.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))Zi.getOrCreateInstance(e)}),e(Zi);const Ji="show",es="showing",ts={animation:"boolean",autohide:"boolean",delay:"number"},is={animation:!0,autohide:!0,delay:5e3};class ss extends F{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return is}static get DefaultType(){return ts}static get NAME(){return"toast"}show(){L.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),f(this._element),this._element.classList.add(Ji,es),this._queueCallback(()=>{this._element.classList.remove(es),L.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(L.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(es),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(es,Ji),L.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ji),super.dispose()}isShown(){return this._element.classList.contains(Ji)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}t?this._clearTimeout():(e=e.relatedTarget,this._element===e||this._element.contains(e)||this._maybeScheduleHide())}_setListeners(){L.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),L.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),L.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),L.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=ss.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return q(ss),e(ss),{Alert:W,Button:U,Carousel:ce,Collapse:me,Dropdown:Kt,Modal:vi,Offcanvas:Si,Popover:Fi,ScrollSpy:Gi,Tab:Zi,Toast:ss,Tooltip:Hi}}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return i={686:function(e,t,i){"use strict";i.d(t,{default:function(){return s}});var t=i(279),o=i.n(t),t=i(370),r=i.n(t),t=i(817),l=i.n(t);function c(e){try{return document.execCommand(e)}catch(e){return}}function d(e){return e=l()(e),c("cut"),e}function u(e){var t,i,s,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},a="";return"string"==typeof e?(t=e,i="rtl"===document.documentElement.getAttribute("dir"),(s=document.createElement("textarea")).style.fontSize="12pt",s.style.border="0",s.style.padding="0",s.style.margin="0",s.style.position="absolute",s.style[i?"right":"left"]="-9999px",i=window.pageYOffset||document.documentElement.scrollTop,s.style.top="".concat(i,"px"),s.setAttribute("readonly",""),s.value=t,n.container.appendChild(s),a=l()(s),c("copy"),s.remove()):(a=l()(e),c("copy")),a}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var s=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(a,o());var e,t,i,s,n=(i=a,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e=g(i),t=s?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),e=this;return!t||"object"!==h(t)&&"function"!=typeof t?function(){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}():t});function a(e,t){var i;return function(e){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this),(i=n.call(this)).resolveOptions(t),i.listenClick(e),i}return t=[{key:"copy",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return u(e,t)}},{key:"cut",value:d},{key:"isSupported",value:function(){var e="string"==typeof(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[e]:e,t=!!document.queryCommandSupported;return e.forEach(function(e){t=t&&!!document.queryCommandSupported(e)}),t}}],f((e=a).prototype,[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=r()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,e=function(){var e=void 0===(i=(s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).action)?"copy":i,t=s.container,i=s.target,s=s.text;if("copy"!==e&&"cut"!==e)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==p(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===e&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===e&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return s?u(s,{container:t}):i?"cut"===e?d(i):u(i,{container:t}):void 0}({action:this.action(t),container:this.container,target:this.target(t),text:this.text(t)});this.emit(e?"success":"error",{action:this.action,text:e,trigger:t,clearSelection:function(){t&&t.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return v("action",e)}},{key:"defaultTarget",value:function(e){if(e=v("target",e))return document.querySelector(e)}},{key:"defaultText",value:function(e){return v("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}]),f(e,t),a}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,i){var o=i(828);function a(e,t,i,s,n){var a=function(t,i,e,s){return function(e){e.delegateTarget=o(e.target,i),e.delegateTarget&&s.call(t,e)}}.apply(this,arguments);return e.addEventListener(i,a,n),{destroy:function(){e.removeEventListener(i,a,n)}}}e.exports=function(e,t,i,s,n){return"function"==typeof e.addEventListener?a.apply(null,arguments):"function"==typeof i?a.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return a(e,t,i,s,n)}))}},879:function(e,i){i.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},i.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||i.node(e[0]))},i.string=function(e){return"string"==typeof e||e instanceof String},i.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,i){var c=i(879),d=i(438);e.exports=function(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!c.string(t))throw new TypeError("Second argument must be a String");if(!c.fn(i))throw new TypeError("Third argument must be a Function");if(c.node(e))return(o=e).addEventListener(r=t,l=i),{destroy:function(){o.removeEventListener(r,l)}};if(c.nodeList(e))return s=e,n=t,a=i,Array.prototype.forEach.call(s,function(e){e.addEventListener(n,a)}),{destroy:function(){Array.prototype.forEach.call(s,function(e){e.removeEventListener(n,a)})}};if(c.string(e))return d(document.body,e,t,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var s,n,a,o,r,l}},817:function(e){e.exports=function(e){var t,i="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),i=window.getSelection(),(t=document.createRange()).selectNodeContents(e),i.removeAllRanges(),i.addRange(t),i.toString());return i}},279:function(e){function t(){}t.prototype={on:function(e,t,i){var s=this.e||(this.e={});return(s[e]||(s[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var s=this;function n(){s.off(e,n),t.apply(i,arguments)}return n._=t,this.on(e,n,i)},emit:function(e){for(var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),s=0,n=i.length;s<n;s++)i[s].fn.apply(i[s].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),s=i[e],n=[];if(s&&t)for(var a=0,o=s.length;a<o;a++)s[a].fn!==t&&s[a].fn._!==t&&n.push(s[a]);return n.length?i[e]=n:delete i[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s(686).default;function s(e){if(n[e])return n[e].exports;var t=n[e]={exports:{}};return i[e](t,t.exports,s),t.exports}var i,n}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.counterUp=t():e.counterUp=t()}(self,function(){return(()=>{"use strict";var s={d:(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},e={};s.r(e),s.d(e,{default:()=>t,divideNumbers:()=>l});const t=(e,t={})=>{const{action:i="start",duration:s=1e3,delay:n=16}=t;if("stop"!==i){if(r(e),/[0-9]/.test(e.innerHTML)){const a=l(e.innerHTML,{duration:s||e.getAttribute("data-duration"),delay:n||e.getAttribute("data-delay")});e._countUpOrigInnerHTML=e.innerHTML,e.innerHTML=a[0]||"&nbsp;",e.style.visibility="visible";const o=function(){e.innerHTML=a.shift()||"&nbsp;",a.length?(clearTimeout(e.countUpTimeout),e.countUpTimeout=setTimeout(o,n)):e._countUpOrigInnerHTML=void 0};e.countUpTimeout=setTimeout(o,n)}}else r(e)},r=e=>{clearTimeout(e.countUpTimeout),e._countUpOrigInnerHTML&&(e.innerHTML=e._countUpOrigInnerHTML,e._countUpOrigInnerHTML=void 0),e.style.visibility=""},l=(e,t={})=>{const{duration:n=1e3,delay:i=16}=t,a=n/i,o=e.toString().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),r=[];for(let e=0;e<a;e++)r.push("");for(let t=0;t<o.length;t++)if(/([0-9.][,.0-9]*[0-9]*)/.test(o[t])&&!/<[^>]+>/.test(o[t])){let i=o[t];const n=[...i.matchAll(/[.,]/g)].map(e=>({char:e[0],i:i.length-e.index-1})).sort((e,t)=>e.i-t.i);i=i.replace(/[.,]/g,"");let s=r.length-1;for(let t=a;1<=t;t--){let e=parseInt(i/a*t,10);e=n.reduce((e,{char:t,i})=>e.length<=i?e:e.slice(0,-i)+t+e.slice(-i),e.toString()),r[s--]+=e}}else for(let e=0;e<a;e++)r[e]+=o[t];return r[r.length]=e.toString(),r};return e})()}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).GLightbox=t()}(this,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function e(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}var r=Date.now();function c(e){var i={},s=!0,t=0,n=arguments.length;"[object Boolean]"===Object.prototype.toString.call(e)&&(s=e,t++);for(;t<n;t++)!function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(s&&"[object Object]"===Object.prototype.toString.call(e[t])?i[t]=c(!0,i[t],e[t]):i[t]=e[t])}(arguments[t]);return i}function p(e,t){if(0!=f(e=!a(e=R(e)||e===window||e===document?[e]:e)&&!u(e)?[e]:e))if(a(e)&&!u(e))for(var i=e.length,s=0;s<i&&!1!==t.call(e[s],e[s],s,e);s++);else if(u(e))for(var n in e)if(x(e,n)&&!1===t.call(e[n],e[n],n,e))break}function h(e,t,i){var s=1<arguments.length&&void 0!==t?t:null,n=2<arguments.length&&void 0!==i?i:null,e=e[r]=e[r]||[],a={all:e,evt:null,found:null};return s&&n&&0<f(e)&&p(e,function(e,t){if(e.eventName==s&&e.fn.toString()==n.toString())return a.found=!0,a.evt=t,!1}),a}function M(i,e,t){var s=1<arguments.length&&void 0!==e?e:{},n=s.onElement,a=s.withCallback,e=s.avoidDuplicate,o=void 0===e||e,e=s.once,r=void 0!==e&&e,s=s.useCapture,l=void 0!==s&&s,c=2<arguments.length?t:void 0,d=n||[];function u(e){B(a)&&a.call(c,e,this),r&&u.destroy()}return w(d)&&(d=document.querySelectorAll(d)),u.destroy=function(){p(d,function(e){var t=h(e,i,u);t.found&&t.all.splice(t.evt,1),e.removeEventListener&&e.removeEventListener(i,u,l)})},p(d,function(e){var t=h(e,i,u);(e.addEventListener&&o&&!t.found||!o)&&(e.addEventListener(i,u,l),t.all.push({eventName:i,fn:u}))}),u}function O(t,e){p(e.split(" "),function(e){return t.classList.add(e)})}function L(t,e){p(e.split(" "),function(e){return t.classList.remove(e)})}function z(e,t){return e.classList.contains(t)}function D(e,t){for(;e!==document.body;){if(!(e=e.parentElement))return!1;if("function"==typeof e.matches?e.matches(t):e.msMatchesSelector(t))return e}}function N(t,e,i){var s,e=1<arguments.length&&void 0!==e?e:"",n=2<arguments.length&&void 0!==i&&i;t&&""!==e&&("none"!==e?(i=function(){var e,t=document.createElement("fakeelement"),i={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(e in i)if(void 0!==t.style[e])return i[e]}(),p(s=e.split(" "),function(e){O(t,"g"+e)}),M(i,{onElement:t,avoidDuplicate:!1,once:!0,withCallback:function(e,t){p(s,function(e){L(t,"g"+e)}),B(n)&&n()}})):B(n)&&n())}function j(e,t){t=1<arguments.length&&void 0!==t?t:"";if(""===t)return e.style.webkitTransform="",e.style.MozTransform="",e.style.msTransform="",e.style.OTransform="",e.style.transform="",!1;e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function l(e){e.style.display="block"}function d(e){e.style.display="none"}function g(e){var t=document.createDocumentFragment(),i=document.createElement("div");for(i.innerHTML=e;i.firstChild;)t.appendChild(i.firstChild);return t}function H(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}function v(e,t,i,s){var n,a;e()?t():(i=i||100,a=setInterval(function(){e()&&(clearInterval(a),n&&clearTimeout(n),t())},i),s&&(n=setTimeout(function(){clearInterval(a)},s)))}function y(e,t,i){if(F(e))console.error("Inject assets error");else if(B(t)&&(i=t,t=!1),w(t)&&t in window)B(i)&&i();else{if(-1!==e.indexOf(".css")){if((o=document.querySelectorAll('link[href="'+e+'"]'))&&0<o.length)return void(B(i)&&i());var s=document.getElementsByTagName("head")[0],n=s.querySelectorAll('link[rel="stylesheet"]'),a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",a.href=e,a.media="all",n?s.insertBefore(a,n[0]):s.appendChild(a),void(B(i)&&i())}if((o=document.querySelectorAll('script[src="'+e+'"]'))&&0<o.length){if(B(i)){if(w(t))return void v(function(){return void 0!==window[t]},function(){i()});i()}}else{var o=document.createElement("script");o.type="text/javascript",o.src=e,o.onload=function(){if(B(i)){if(w(t))return v(function(){return void 0!==window[t]},function(){i()}),!1;i()}},document.body.appendChild(o)}}}function b(){return"navigator"in window&&window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i)}function B(e){return"function"==typeof e}function w(e){return"string"==typeof e}function R(e){return e&&e.nodeType&&1==e.nodeType}function i(e){return Array.isArray(e)}function a(e){return e&&e.length&&isFinite(e.length)}function u(e){return"object"===t(e)&&null!=e&&!B(e)&&!i(e)}function F(e){return null==e}function x(e,t){return null!==e&&hasOwnProperty.call(e,t)}function f(e){if(u(e)){if(e.keys)return e.keys().length;var t,i=0;for(t in e)x(e,t)&&i++;return i}return e.length}function q(e){return!isNaN(parseFloat(e))&&isFinite(e)}function W(e){var t=0<arguments.length&&void 0!==e?e:-1,e=document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");if(!e.length)return!1;if(1==e.length)return e[0];"string"==typeof t&&(t=parseInt(t));var i=[];p(e,function(e){i.push(e.getAttribute("data-taborder"))});var e=Math.max.apply(Math,i.map(function(e){return parseInt(e)})),s=t<0?1:t+1;e<s&&(s="1");e=i.filter(function(e){return e>=parseInt(s)}).sort()[0];return document.querySelector('.gbtn[data-taborder="'.concat(e,'"]'))}function m(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function _(e,t){var i,s,n=(s=t,0==(n=m(i=e)*m(s))?0:(1<(n=(i.x*s.x+i.y*s.y)/n)&&(n=1),Math.acos(n)));return 0<e.x*t.y-t.x*e.y&&(n*=-1),180*n/Math.PI}var n=(e(S,[{key:"add",value:function(e){this.handlers.push(e)}},{key:"del",value:function(e){e||(this.handlers=[]);for(var t=this.handlers.length;0<=t;t--)this.handlers[t]===e&&this.handlers.splice(t,1)}},{key:"dispatch",value:function(){for(var e=0,t=this.handlers.length;e<t;e++){var i=this.handlers[e];"function"==typeof i&&i.apply(this.el,arguments)}}}]),S);function S(e){o(this,S),this.handlers=[],this.el=e}function T(e,t){e=new n(e);return e.add(t),e}var V=(e(C,[{key:"start",value:function(e){var t,i;e.touches&&(e.target&&e.target.nodeName&&0<=["a","button","input"].indexOf(e.target.nodeName.toLowerCase())?console.log("ignore drag for this touched element",e.target.nodeName.toLowerCase()):(this.now=Date.now(),this.x1=e.touches[0].pageX,this.y1=e.touches[0].pageY,this.delta=this.now-(this.last||this.now),this.touchStart.dispatch(e,this.element),null!==this.preTapPosition.x&&(this.isDoubleTap=0<this.delta&&this.delta<=250&&Math.abs(this.preTapPosition.x-this.x1)<30&&Math.abs(this.preTapPosition.y-this.y1)<30,this.isDoubleTap&&clearTimeout(this.singleTapTimeout)),this.preTapPosition.x=this.x1,this.preTapPosition.y=this.y1,this.last=this.now,t=this.preV,1<e.touches.length&&(this._cancelLongTap(),this._cancelSingleTap(),i={x:e.touches[1].pageX-this.x1,y:e.touches[1].pageY-this.y1},t.x=i.x,t.y=i.y,this.pinchStartLen=m(t),this.multipointStart.dispatch(e,this.element)),this._preventTap=!1,this.longTapTimeout=setTimeout(function(){this.longTap.dispatch(e,this.element),this._preventTap=!0}.bind(this),750)))}},{key:"move",value:function(e){var t,i,s,n,a,o,r;e.touches&&(t=this.preV,i=e.touches.length,s=e.touches[0].pageX,n=e.touches[0].pageY,this.isDoubleTap=!1,1<i?(o=e.touches[1].pageX,r=e.touches[1].pageY,a={x:e.touches[1].pageX-s,y:e.touches[1].pageY-n},null!==t.x&&(0<this.pinchStartLen&&(e.zoom=m(a)/this.pinchStartLen,this.pinch.dispatch(e,this.element)),e.angle=_(a,t),this.rotate.dispatch(e,this.element)),t.x=a.x,t.y=a.y,null!==this.x2&&null!==this.sx2?(e.deltaX=(s-this.x2+o-this.sx2)/2,e.deltaY=(n-this.y2+r-this.sy2)/2):(e.deltaX=0,e.deltaY=0),this.twoFingerPressMove.dispatch(e,this.element),this.sx2=o,this.sy2=r):(null!==this.x2?(e.deltaX=s-this.x2,e.deltaY=n-this.y2,o=Math.abs(this.x1-this.x2),r=Math.abs(this.y1-this.y2),(10<o||10<r)&&(this._preventTap=!0)):(e.deltaX=0,e.deltaY=0),this.pressMove.dispatch(e,this.element)),this.touchMove.dispatch(e,this.element),this._cancelLongTap(),this.x2=s,this.y2=n,1<i&&e.preventDefault())}},{key:"end",value:function(e){var t;e.changedTouches&&(this._cancelLongTap(),t=this,e.touches.length<2&&(this.multipointEnd.dispatch(e,this.element),this.sx2=this.sy2=null),this.x2&&30<Math.abs(this.x1-this.x2)||this.y2&&30<Math.abs(this.y1-this.y2)?(e.direction=this._swipeDirection(this.x1,this.x2,this.y1,this.y2),this.swipeTimeout=setTimeout(function(){t.swipe.dispatch(e,t.element)},0)):(this.tapTimeout=setTimeout(function(){t._preventTap||t.tap.dispatch(e,t.element),t.isDoubleTap&&(t.doubleTap.dispatch(e,t.element),t.isDoubleTap=!1)},0),t.isDoubleTap||(t.singleTapTimeout=setTimeout(function(){t.singleTap.dispatch(e,t.element)},250))),this.touchEnd.dispatch(e,this.element),this.preV.x=0,this.preV.y=0,this.zoom=1,this.pinchStartLen=null,this.x1=this.x2=this.y1=this.y2=null)}},{key:"cancelAll",value:function(){this._preventTap=!0,clearTimeout(this.singleTapTimeout),clearTimeout(this.tapTimeout),clearTimeout(this.longTapTimeout),clearTimeout(this.swipeTimeout)}},{key:"cancel",value:function(e){this.cancelAll(),this.touchCancel.dispatch(e,this.element)}},{key:"_cancelLongTap",value:function(){clearTimeout(this.longTapTimeout)}},{key:"_cancelSingleTap",value:function(){clearTimeout(this.singleTapTimeout)}},{key:"_swipeDirection",value:function(e,t,i,s){return Math.abs(e-t)>=Math.abs(i-s)?0<e-t?"Left":"Right":0<i-s?"Up":"Down"}},{key:"on",value:function(e,t){this[e]&&this[e].add(t)}},{key:"off",value:function(e,t){this[e]&&this[e].del(t)}},{key:"destroy",value:function(){return this.singleTapTimeout&&clearTimeout(this.singleTapTimeout),this.tapTimeout&&clearTimeout(this.tapTimeout),this.longTapTimeout&&clearTimeout(this.longTapTimeout),this.swipeTimeout&&clearTimeout(this.swipeTimeout),this.element.removeEventListener("touchstart",this.start),this.element.removeEventListener("touchmove",this.move),this.element.removeEventListener("touchend",this.end),this.element.removeEventListener("touchcancel",this.cancel),this.rotate.del(),this.touchStart.del(),this.multipointStart.del(),this.multipointEnd.del(),this.pinch.del(),this.swipe.del(),this.tap.del(),this.doubleTap.del(),this.longTap.del(),this.singleTap.del(),this.pressMove.del(),this.twoFingerPressMove.del(),this.touchMove.del(),this.touchEnd.del(),this.touchCancel.del(),this.preV=this.pinchStartLen=this.zoom=this.isDoubleTap=this.delta=this.last=this.now=this.tapTimeout=this.singleTapTimeout=this.longTapTimeout=this.swipeTimeout=this.x1=this.x2=this.y1=this.y2=this.preTapPosition=this.rotate=this.touchStart=this.multipointStart=this.multipointEnd=this.pinch=this.swipe=this.tap=this.doubleTap=this.longTap=this.singleTap=this.pressMove=this.touchMove=this.touchEnd=this.touchCancel=this.twoFingerPressMove=null,window.removeEventListener("scroll",this._cancelAllHandler),null}}]),C);function C(e,t){o(this,C),this.element="string"==typeof e?document.querySelector(e):e,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this),this.cancel=this.cancel.bind(this),this.element.addEventListener("touchstart",this.start,!1),this.element.addEventListener("touchmove",this.move,!1),this.element.addEventListener("touchend",this.end,!1),this.element.addEventListener("touchcancel",this.cancel,!1),this.preV={x:null,y:null},this.pinchStartLen=null,this.zoom=1,this.isDoubleTap=!1;function i(){}this.rotate=T(this.element,t.rotate||i),this.touchStart=T(this.element,t.touchStart||i),this.multipointStart=T(this.element,t.multipointStart||i),this.multipointEnd=T(this.element,t.multipointEnd||i),this.pinch=T(this.element,t.pinch||i),this.swipe=T(this.element,t.swipe||i),this.tap=T(this.element,t.tap||i),this.doubleTap=T(this.element,t.doubleTap||i),this.longTap=T(this.element,t.longTap||i),this.singleTap=T(this.element,t.singleTap||i),this.pressMove=T(this.element,t.pressMove||i),this.twoFingerPressMove=T(this.element,t.twoFingerPressMove||i),this.touchMove=T(this.element,t.touchMove||i),this.touchEnd=T(this.element,t.touchEnd||i),this.touchCancel=T(this.element,t.touchCancel||i),this.translateContainer=this.element,this._cancelAllHandler=this.cancelAll.bind(this),window.addEventListener("scroll",this._cancelAllHandler),this.delta=null,this.last=null,this.now=null,this.tapTimeout=null,this.singleTapTimeout=null,this.longTapTimeout=null,this.swipeTimeout=null,this.x1=this.x2=this.y1=this.y2=null,this.preTapPosition={x:null,y:null}}function U(e){var t=function(){var e,t=document.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in i)if(void 0!==t.style[e])return i[e]}(),i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,s=z(e,"gslide-media")?e:e.querySelector(".gslide-media"),n=D(s,".ginner-container"),e=e.querySelector(".gslide-description");O(s=769<i?n:s,"greset"),j(s,"translate3d(0, 0, 0)"),M(t,{onElement:s,once:!0,withCallback:function(e,t){L(s,"greset")}}),s.style.opacity="",e&&(e.style.opacity="")}var E=(e(k,[{key:"zoomIn",value:function(){var e,t=this.widowWidth();this.zoomedIn||t<=768||((e=this.img).setAttribute("data-style",e.getAttribute("style")),e.style.maxWidth=e.naturalWidth+"px",e.style.maxHeight=e.naturalHeight+"px",e.naturalWidth>t&&(e=t/2-e.naturalWidth/2,this.setTranslate(this.img.parentNode,e,0)),this.slide.classList.add("zoomed"),this.zoomedIn=!0)}},{key:"zoomOut",value:function(){this.img.parentNode.setAttribute("style",""),this.img.setAttribute("style",this.img.getAttribute("data-style")),this.slide.classList.remove("zoomed"),this.zoomedIn=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.onclose&&"function"==typeof this.onclose&&this.onclose()}},{key:"dragStart",value:function(e){e.preventDefault(),this.zoomedIn?("touchstart"===e.type?(this.initialX=e.touches[0].clientX-this.xOffset,this.initialY=e.touches[0].clientY-this.yOffset):(this.initialX=e.clientX-this.xOffset,this.initialY=e.clientY-this.yOffset),e.target===this.img&&(this.active=!0,this.img.classList.add("dragging"))):this.active=!1}},{key:"dragEnd",value:function(e){var t=this;e.preventDefault(),this.initialX=this.currentX,this.initialY=this.currentY,this.active=!1,setTimeout(function(){t.dragging=!1,t.img.isDragging=!1,t.img.classList.remove("dragging")},100)}},{key:"drag",value:function(e){this.active&&(e.preventDefault(),"touchmove"===e.type?(this.currentX=e.touches[0].clientX-this.initialX,this.currentY=e.touches[0].clientY-this.initialY):(this.currentX=e.clientX-this.initialX,this.currentY=e.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.img.isDragging=!0,this.dragging=!0,this.setTranslate(this.img,this.currentX,this.currentY))}},{key:"onMove",value:function(e){var t;this.zoomedIn&&(t=e.clientX-this.img.naturalWidth/2,e=e.clientY-this.img.naturalHeight/2,this.setTranslate(this.img,t,e))}},{key:"setTranslate",value:function(e,t,i){e.style.transform="translate3d("+t+"px, "+i+"px, 0)"}},{key:"widowWidth",value:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}}]),k);function k(e,t){var i=this,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(o(this,k),this.img=e,this.slide=t,this.onclose=s,this.img.setZoomEvents)return!1;this.active=!1,this.zoomedIn=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.img.addEventListener("mousedown",function(e){return i.dragStart(e)},!1),this.img.addEventListener("mouseup",function(e){return i.dragEnd(e)},!1),this.img.addEventListener("mousemove",function(e){return i.drag(e)},!1),this.img.addEventListener("click",function(e){return i.slide.classList.contains("dragging-nav")?(i.zoomOut(),!1):i.zoomedIn?void(i.zoomedIn&&!i.dragging&&i.zoomOut()):i.zoomIn()},!1),this.img.setZoomEvents=!0}var $=(e(A,[{key:"dragStart",value:function(e){var t;this.slide.classList.contains("zoomed")?this.active=!1:("touchstart"===e.type?(this.initialX=e.touches[0].clientX-this.xOffset,this.initialY=e.touches[0].clientY-this.yOffset):(this.initialX=e.clientX-this.xOffset,this.initialY=e.clientY-this.yOffset),t=e.target.nodeName.toLowerCase(),e.target.classList.contains("nodrag")||D(e.target,".nodrag")||-1!==["input","select","textarea","button","a"].indexOf(t)?this.active=!1:(e.preventDefault(),(e.target===this.el||"img"!==t&&D(e.target,".gslide-inline"))&&(this.active=!0,this.el.classList.add("dragging"),this.dragContainer=D(e.target,".ginner-container"))))}},{key:"dragEnd",value:function(e){var t=this;e&&e.preventDefault(),this.initialX=0,this.initialY=0,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.active=!1,this.doSlideChange&&(this.instance.preventOutsideClick=!0,"right"==this.doSlideChange&&this.instance.prevSlide(),"left"==this.doSlideChange&&this.instance.nextSlide()),this.doSlideClose&&this.instance.close(),this.toleranceReached||this.setTranslate(this.dragContainer,0,0,!0),setTimeout(function(){t.instance.preventOutsideClick=!1,t.toleranceReached=!1,t.lastDirection=null,t.dragging=!1,t.el.isDragging=!1,t.el.classList.remove("dragging"),t.slide.classList.remove("dragging-nav"),t.dragContainer.style.transform="",t.dragContainer.style.transition=""},100)}},{key:"drag",value:function(e){if(this.active){e.preventDefault(),this.slide.classList.add("dragging-nav"),"touchmove"===e.type?(this.currentX=e.touches[0].clientX-this.initialX,this.currentY=e.touches[0].clientY-this.initialY):(this.currentX=e.clientX-this.initialX,this.currentY=e.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.el.isDragging=!0,this.dragging=!0,this.doSlideChange=!1,this.doSlideClose=!1;var t=Math.abs(this.currentX),i=Math.abs(this.currentY);if(0<t&&t>=Math.abs(this.currentY)&&(!this.lastDirection||"x"==this.lastDirection)){this.yOffset=0,this.lastDirection="x",this.setTranslate(this.dragContainer,this.currentX,0);e=this.shouldChange();if(!this.instance.settings.dragAutoSnap&&e&&(this.doSlideChange=e),this.instance.settings.dragAutoSnap&&e)return this.instance.preventOutsideClick=!0,this.toleranceReached=!0,this.active=!1,this.instance.preventOutsideClick=!0,this.dragEnd(null),"right"==e&&this.instance.prevSlide(),void("left"==e&&this.instance.nextSlide())}0<this.toleranceY&&0<i&&t<=i&&(!this.lastDirection||"y"==this.lastDirection)&&(this.xOffset=0,this.lastDirection="y",this.setTranslate(this.dragContainer,0,this.currentY),i=this.shouldClose(),!this.instance.settings.dragAutoSnap&&i&&(this.doSlideClose=!0),this.instance.settings.dragAutoSnap&&i&&this.instance.close())}}},{key:"shouldChange",value:function(){var e,t=!1;return Math.abs(this.currentX)>=this.toleranceX&&(("left"==(e=0<this.currentX?"right":"left")&&this.slide!==this.slide.parentNode.lastChild||"right"==e&&this.slide!==this.slide.parentNode.firstChild)&&(t=e)),t}},{key:"shouldClose",value:function(){var e=!1;return e=Math.abs(this.currentY)>=this.toleranceY?!0:e}},{key:"setTranslate",value:function(e,t,i){e.style.transition=3<arguments.length&&void 0!==arguments[3]&&arguments[3]?"all .2s ease":"",e.style.transform="translate3d(".concat(t,"px, ").concat(i,"px, 0)")}}]),A);function A(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};o(this,A);var i=e.dragEl,s=e.toleranceX,n=void 0===s?40:s,a=e.toleranceY,s=void 0===a?65:a,a=e.slide,a=void 0===a?null:a,e=e.instance,e=void 0===e?null:e;this.el=i,this.active=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.direction=null,this.lastDirection=null,this.toleranceX=n,this.toleranceY=s,this.toleranceReached=!1,this.dragContainer=this.el,this.slide=a,this.instance=e,this.el.addEventListener("mousedown",function(e){return t.dragStart(e)},!1),this.el.addEventListener("mouseup",function(e){return t.dragEnd(e)},!1),this.el.addEventListener("mousemove",function(e){return t.drag(e)},!1)}function P(e){var t=D(e.target,".gslide-media");"enterfullscreen"===e.type&&O(t,"fullscreen"),"exitfullscreen"===e.type&&L(t,"fullscreen")}function I(e,t,i,s){var n,a,o=e.querySelector(".gslide-media"),r=(r={url:t.href,callback:s},e=r.url,s=r.allow,n=r.callback,r=r.appendTo,(a=document.createElement("iframe")).className="vimeo-video gvideo",a.src=e,a.style.width="100%",a.style.height="100%",s&&a.setAttribute("allow",s),a.onload=function(){a.onload=null,O(a,"node-ready"),B(n)&&n()},r&&r.appendChild(a),a);o.parentNode.style.maxWidth=t.width,o.parentNode.style.height=t.height,o.appendChild(r)}var Y=(e(G,[{key:"sourceType",value:function(e){var t=e;if(null!==(e=e.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/))return"image";if(e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||e.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/))return"video";if(e.match(/vimeo\.com\/([0-9]*)/))return"video";if(null!==e.match(/\.(mp4|ogg|webm|mov)/))return"video";if(null!==e.match(/\.(mp3|wav|wma|aac|ogg)/))return"audio";if(-1<e.indexOf("#")&&""!==t.split("#").pop().trim())return"inline";return-1<e.indexOf("goajax=true")?"ajax":"external"}},{key:"parseConfig",value:function(s,n){var a=this,o=c({descPosition:n.descPosition},this.defaults);if(u(s)&&!R(s)){x(s,"type")||(x(s,"content")&&s.content?s.type="inline":x(s,"href")&&(s.type=this.sourceType(s.href)));var e=c(o,s);return this.setSize(e,n),e}var r,t,i="",l=s.getAttribute("data-glightbox"),e=s.nodeName.toLowerCase();if("a"===e&&(i=s.href),"img"===e&&(i=s.src,o.alt=s.alt),o.href=i,p(o,function(e,t){x(n,t)&&"width"!==t&&(o[t]=n[t]);var i=s.dataset[t];F(i)||(o[t]=a.sanitizeValue(i))}),o.content&&(o.type="inline"),!o.type&&i&&(o.type=this.sourceType(i)),F(l)?(o.title||"a"!=e||(F(i=s.title)||""===i||(o.title=i)),o.title||"img"!=e||(F(e=s.alt)||""===e||(o.title=e))):(r=[],p(o,function(e,t){r.push(";\\s?"+t)}),r=r.join("\\s?:|"),""!==l.trim()&&p(o,function(e,t){var i=l,s=new RegExp("s?"+t+"s?:s?(.*?)("+r+"s?:|$)"),s=i.match(s);s&&s.length&&s[1]&&(s=s[1].trim().replace(/;\s*$/,""),o[t]=a.sanitizeValue(s))})),o.description&&"."===o.description.substring(0,1)){try{t=document.querySelector(o.description).innerHTML}catch(e){if(!(e instanceof DOMException))throw e}t&&(o.description=t)}return o.description||(t=s.querySelector(".glightbox-desc"))&&(o.description=t.innerHTML),this.setSize(o,n,s),this.slideConfig=o}},{key:"setSize",value:function(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,s="video"==e.type?this.checkSize(t.videosWidth):this.checkSize(t.width),t=this.checkSize(t.height);return e.width=x(e,"width")&&""!==e.width?this.checkSize(e.width):s,e.height=x(e,"height")&&""!==e.height?this.checkSize(e.height):t,i&&"image"==e.type&&(e._hasCustomWidth=!!i.dataset.width,e._hasCustomHeight=!!i.dataset.height),e}},{key:"checkSize",value:function(e){return q(e)?"".concat(e,"px"):e}},{key:"sanitizeValue",value:function(e){return"true"!==e&&"false"!==e?e:"true"===e}}]),G);function G(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};o(this,G),this.defaults={href:"",sizes:"",srcset:"",title:"",type:"",videoProvider:"",description:"",alt:"",descPosition:"bottom",effect:"",width:"",height:"",content:!1,zoomable:!0,draggable:!0},u(e)&&(this.defaults=c(this.defaults,e))}var X=(e(K,[{key:"setContent",value:function(){var t=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(z(i,"loaded"))return!1;var s=this.instance.settings,n=this.slideConfig,a=b();B(s.beforeSlideLoad)&&s.beforeSlideLoad({index:this.index,slide:i,player:!1});var o,r=n.type,l=n.descPosition,c=i.querySelector(".gslide-media"),d=i.querySelector(".gslide-title"),u=i.querySelector(".gslide-desc"),p=i.querySelector(".gdesc-inner"),h=e,f="gSlideTitle_"+this.index,m="gSlideDesc_"+this.index;if(B(s.afterSlideLoad)&&(h=function(){B(e)&&e(),s.afterSlideLoad({index:t.index,slide:i,player:t.instance.getSlidePlayerInstance(t.index)})}),""==n.title&&""==n.description?p&&p.parentNode.parentNode.removeChild(p.parentNode):(d&&""!==n.title?(d.id=f,d.innerHTML=n.title):d.parentNode.removeChild(d),u&&""!==n.description?(u.id=m,a&&0<s.moreLength?(n.smallDescription=this.slideShortDesc(n.description,s.moreLength,s.moreText),u.innerHTML=n.smallDescription,this.descriptionEvents(u,n)):u.innerHTML=n.description):u.parentNode.removeChild(u),O(c.parentNode,"desc-".concat(l)),O(p.parentNode,"description-".concat(l))),O(c,"gslide-".concat(r)),O(i,"loaded"),"video"!==r){if("external"!==r)return"inline"===r?(function(e,t,i,s){var n,a=this,o=e.querySelector(".gslide-media"),r=!(!x(t,"href")||!t.href)&&t.href.split("#").pop().trim();if((e=!(!x(t,"content")||!t.content)&&t.content)&&(w(e)&&(n=g('<div class="ginlined-content">'.concat(e,"</div>"))),R(e)&&("none"==e.style.display&&(e.style.display="block"),(l=document.createElement("div")).className="ginlined-content",l.appendChild(e),n=l)),r){var l=document.getElementById(r);if(!l)return!1;l=l.cloneNode(!0);l.style.height=t.height,l.style.maxWidth=t.width,O(l,"ginlined-content"),n=l}if(!n)return console.error("Unable to append inline slide content",t),!1;o.style.height=t.height,o.style.width=t.width,o.appendChild(n),this.events["inlineclose"+r]=M("click",{onElement:o.querySelectorAll(".gtrigger-close"),withCallback:function(e){e.preventDefault(),a.close()}}),B(s)&&s()}.apply(this.instance,[i,n,this.index,h]),void(n.draggable&&new $({dragEl:i.querySelector(".gslide-inline"),toleranceX:s.dragToleranceX,toleranceY:s.dragToleranceY,slide:i,instance:this.instance}))):"image"===r?(u=i,p=n,l=this.index,o=function(){var e=i.querySelector("img");n.draggable&&new $({dragEl:e,toleranceX:s.dragToleranceX,toleranceY:s.dragToleranceY,slide:i,instance:t.instance}),n.zoomable&&e.naturalWidth>e.offsetWidth&&(O(e,"zoomable"),new E(e,i,function(){t.instance.resize()})),B(h)&&h()},c=u.querySelector(".gslide-media"),r=new Image,u="gSlideTitle_"+l,l="gSlideDesc_"+l,r.addEventListener("load",function(){B(o)&&o()},!1),r.src=p.href,""!=p.sizes&&""!=p.srcset&&(r.sizes=p.sizes,r.srcset=p.srcset),r.alt="",F(p.alt)||""===p.alt||(r.alt=p.alt),""!==p.title&&r.setAttribute("aria-labelledby",u),""!==p.description&&r.setAttribute("aria-describedby",l),p.hasOwnProperty("_hasCustomWidth")&&p._hasCustomWidth&&(r.style.width=p.width),p.hasOwnProperty("_hasCustomHeight")&&p._hasCustomHeight&&(r.style.height=p.height),void c.insertBefore(r,c.firstChild)):void(B(h)&&h());I.apply(this,[i,n,this.index,h])}else(function(t,i,s,n){var a=this,e=t.querySelector(".ginner-container"),o="gvideo"+s,r=t.querySelector(".gslide-media"),l=this.getAllPlayers();O(e,"gvideo-container"),r.insertBefore(g('<div class="gvideo-wrapper"></div>'),r.firstChild);var c=t.querySelector(".gvideo-wrapper");y(this.settings.plyr.css,"Plyr");var d=i.href,u=null==i?void 0:i.videoProvider,p=!1;r.style.maxWidth=i.width,y(this.settings.plyr.js,"Plyr",function(){"local"!==(u=!(u=!u&&d.match(/vimeo\.com\/([0-9]*)/)?"vimeo":u)&&(d.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||d.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||d.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/))?"youtube":u)&&u||(u="local",e='<video id="'+o+'" ',e+='style="background:#000; max-width: '.concat(i.width,';" '),e+='preload="metadata" ',e+='poster="'+i.poster+'" ',e+='x-webkit-airplay="allow" ',e+="playsinline ",e+="controls ",e+='class="gvideo-local">',e+='<source src="'.concat(d,'">'),p=g(e+="</video>"));var e=p||g('<div id="'.concat(o,'" data-plyr-provider="').concat(u,'" data-plyr-embed-id="').concat(d,'"></div>'));O(c,"".concat(u,"-video gvideo")),c.appendChild(e),c.setAttribute("data-id",o),c.setAttribute("data-index",s);e=x(a.settings.plyr,"config")?a.settings.plyr.config:{},e=new Plyr("#"+o,e);e.on("ready",function(e){l[o]=e.detail.plyr,B(n)&&n()}),v(function(){return t.querySelector("iframe")&&"true"==t.querySelector("iframe").dataset.ready},function(){a.resize(t)}),e.on("enterfullscreen",P),e.on("exitfullscreen",P)})}).apply(this.instance,[i,n,this.index,h])}},{key:"slideShortDesc",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:50,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],s=document.createElement("div");s.innerHTML=e;var n=i;if((e=s.innerText.trim()).length<=t)return e;t=e.substr(0,t-1);return n?(s=null,t+'... <a href="#" class="desc-more">'+i+"</a>"):t}},{key:"descriptionEvents",value:function(e,a){var o=this,e=e.querySelector(".desc-more");if(!e)return!1;M("click",{onElement:e,withCallback:function(e,t){e.preventDefault();var i=document.body,s=D(t,".gslide-desc");if(!s)return!1;s.innerHTML=a.description,O(i,"gdesc-open");var n=M("click",{onElement:[i,D(s,".gslide-description")],withCallback:function(e,t){"a"!==e.target.nodeName.toLowerCase()&&(L(i,"gdesc-open"),O(i,"gdesc-closed"),s.innerHTML=a.smallDescription,o.descriptionEvents(s,a),setTimeout(function(){L(i,"gdesc-closed")},400),n.destroy())}})}})}},{key:"create",value:function(){return g(this.instance.settings.slideHTML)}},{key:"getConfig",value:function(){R(this.element)||this.element.hasOwnProperty("draggable")||(this.element.draggable=this.instance.settings.draggable);var e=new Y(this.instance.settings.slideExtraAttributes);return this.slideConfig=e.parseConfig(this.element,this.instance.settings),this.slideConfig}}]),K);function K(e,t,i){o(this,K),this.element=e,this.instance=t,this.index=i}var Q=b(),Z=null!==b()||void 0!==document.createTouch||"ontouchstart"in window||"onmsgesturechange"in window||navigator.msMaxTouchPoints,J=document.getElementsByTagName("html")[0],ee={selector:".glightbox",elements:null,skin:"clean",theme:"clean",closeButton:!0,startAt:null,autoplayVideos:!0,autofocusVideos:!0,descPosition:"bottom",width:"900px",height:"506px",videosWidth:"960px",beforeSlideChange:null,afterSlideChange:null,beforeSlideLoad:null,afterSlideLoad:null,slideInserted:null,slideRemoved:null,slideExtraAttributes:null,onOpen:null,onClose:null,loop:!1,zoomable:!0,draggable:!0,dragAutoSnap:!1,dragToleranceX:40,dragToleranceY:65,preload:!0,oneSlidePerOpen:!1,touchNavigation:!0,touchFollowAxis:!0,keyboardNavigation:!0,closeOnOutsideClick:!0,plugins:!1,plyr:{css:"https://cdn.plyr.io/3.6.12/plyr.css",js:"https://cdn.plyr.io/3.6.12/plyr.js",config:{ratio:"16:9",fullscreen:{enabled:!0,iosNative:!0},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}},openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",moreText:"See more",moreLength:60,cssEfects:{fade:{in:"fadeIn",out:"fadeOut"},zoom:{in:"zoomIn",out:"zoomOut"},slide:{in:"slideInRight",out:"slideOutLeft"},slideBack:{in:"slideInLeft",out:"slideOutRight"},none:{in:"none",out:"none"}},svg:{close:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>',prev:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>'},slideHTML:'<div class="gslide">\n    <div class="gslide-inner-content">\n        <div class="ginner-container">\n            <div class="gslide-media">\n            </div>\n            <div class="gslide-description">\n                <div class="gdesc-inner">\n                    <h4 class="gslide-title"></h4>\n                    <div class="gslide-desc"></div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>',lightboxHTML:'<div id="glightbox-body" class="glightbox-container" tabindex="-1" role="dialog" aria-hidden="false">\n    <div class="gloader visible"></div>\n    <div class="goverlay"></div>\n    <div class="gcontainer">\n    <div id="glightbox-slider" class="gslider"></div>\n    <button class="gclose gbtn" aria-label="Close" data-taborder="3">{closeSVG}</button>\n    <button class="gprev gbtn" aria-label="Previous" data-taborder="2">{prevSVG}</button>\n    <button class="gnext gbtn" aria-label="Next" data-taborder="1">{nextSVG}</button>\n</div>\n</div>'},te=(e(ie,[{key:"init",value:function(){var i=this,e=this.getSelector();e&&(this.baseEvents=M("click",{onElement:e,withCallback:function(e,t){e.preventDefault(),i.open(t)}})),this.elements=this.getElements()}},{key:"open",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if(0===this.elements.length)return!1;this.activeSlide=null,this.prevActiveSlideIndex=null,this.prevActiveSlide=null;var t=q(t)?t:this.settings.startAt;R(e)&&((I=e.getAttribute("data-gallery"))&&(this.fullElementsList=this.elements,this.elements=this.getGalleryElements(this.elements,I)),F(t)&&(t=this.getElementIndex(e))<0&&(t=0)),q(t)||(t=0),this.build(),N(this.overlay,"none"===this.settings.openEffect?"none":this.settings.cssEfects.fade.in);var s,n,a,o,i,r,l,c,d,u,p,h,f,m,g,v,y,b,w,x,_,S,T,C,E,k,$,A,P,I=document.body;0<window.innerWidth-document.documentElement.clientWidth&&((e=document.createElement("style")).type="text/css",e.className="gcss-styles",document.head.appendChild(e),O(I,"gscrollbar-fixer")),O(I,"glightbox-open"),O(J,"glightbox-open"),Q&&(O(document.body,"glightbox-mobile"),this.settings.slideEffect="slide",this.settings.autoplayVideos=!1),this.showSlide(t,!0),1===this.elements.length?(O(this.prevButton,"glightbox-button-hidden"),O(this.nextButton,"glightbox-button-hidden")):(L(this.prevButton,"glightbox-button-hidden"),L(this.nextButton,"glightbox-button-hidden")),this.lightboxOpen=!0,this.trigger("open"),B(this.settings.onOpen)&&this.settings.onOpen(),Z&&this.settings.touchNavigation&&((s=this).events.hasOwnProperty("touch")||(t=H(),n=t.width,a=t.height,c=o=!1,v=g=m=f=l=r=i=null,S=_=h=p=!(u=d=1),T={},C={},k=E=x=w=0,t=document.getElementById("glightbox-slider"),A=document.querySelector(".goverlay"),t=new V(t,{touchStart:function(e){o=!0,(z(e.targetTouches[0].target,"ginner-container")||D(e.targetTouches[0].target,".gslide-desc")||"a"==e.targetTouches[0].target.nodeName.toLowerCase())&&(o=!1),(o=D(e.targetTouches[0].target,".gslide-inline")&&!z(e.targetTouches[0].target.parentNode,"gslide-inline")?!1:o)&&(C=e.targetTouches[0],T.pageX=e.targetTouches[0].pageX,T.pageY=e.targetTouches[0].pageY,E=e.targetTouches[0].clientX,k=e.targetTouches[0].clientY,i=s.activeSlide,r=i.querySelector(".gslide-media"),$=i.querySelector(".gslide-inline"),l=null,z(r,"gslide-image")&&(l=r.querySelector("img")),769<(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)&&(r=i.querySelector(".ginner-container")),L(A,"greset"),20<e.pageX&&e.pageX<window.innerWidth-20||e.preventDefault())},touchMove:function(e){if(o&&(C=e.targetTouches[0],!p&&!h)){if($&&$.offsetHeight>a){var t=T.pageX-C.pageX;if(Math.abs(t)<=13)return!1}c=!0;var i,t=e.targetTouches[0].clientX,e=e.targetTouches[0].clientY,t=E-t,e=k-e;if(Math.abs(t)>Math.abs(e)?S=!(_=!1):_=!(S=!1),y=C.pageX-T.pageX,w=100*y/n,b=C.pageY-T.pageY,x=100*b/a,_&&l&&(i=1-Math.abs(b)/a,A.style.opacity=i,s.settings.touchFollowAxis&&(w=0)),S&&(i=1-Math.abs(y)/n,r.style.opacity=i,s.settings.touchFollowAxis&&(x=0)),!l)return j(r,"translate3d(".concat(w,"%, 0, 0)"));j(r,"translate3d(".concat(w,"%, ").concat(x,"%, 0)"))}},touchEnd:function(){if(o){if(c=!1,h||p)return g=f,void(v=m);var e=Math.abs(parseInt(x)),t=Math.abs(parseInt(w));if(!(29<e&&l))return e<29&&t<25?(O(A,"greset"),A.style.opacity=1,U(r)):void 0;s.close()}},multipointEnd:function(){setTimeout(function(){p=!1},50)},multipointStart:function(){p=!0,d=u||1},pinch:function(e){if(!l||c)return!1;p=!0,l.scaleX=l.scaleY=d*e.zoom;e=d*e.zoom;if(h=!0,e<=1)return h=!1,e=1,m=f=g=v=null,void l.setAttribute("style","");l.style.transform="scale3d(".concat(e=4.5<e?4.5:e,", ").concat(e,", 1)"),u=e},pressMove:function(e){var t,i;h&&!p&&(t=C.pageX-T.pageX,i=C.pageY-T.pageY,g&&(t+=g),v&&(i+=v),f=t,m=i,i="translate3d(".concat(t,"px, ").concat(i,"px, 0)"),u&&(i+=" scale3d(".concat(u,", ").concat(u,", 1)")),j(l,i))},swipe:function(e){if(!h)if(p)p=!1;else{if("Left"==e.direction){if(s.index==s.elements.length-1)return U(r);s.nextSlide()}if("Right"==e.direction){if(0==s.index)return U(r);s.prevSlide()}}}}),s.events.touch=t)),this.settings.keyboardNavigation&&((P=this).events.hasOwnProperty("keyboard")||(P.events.keyboard=M("keydown",{onElement:window,withCallback:function(e,t){var i=(e=e||window.event).keyCode;if(9==i){var s=document.querySelector(".gbtn.focused");if(!s){var n=!(!document.activeElement||!document.activeElement.nodeName)&&document.activeElement.nodeName.toLocaleLowerCase();if("input"==n||"textarea"==n||"button"==n)return}e.preventDefault();e=document.querySelectorAll(".gbtn[data-taborder]");if(!e||e.length<=0)return;if(!s){var a=W();return void(a&&(a.focus(),O(a,"focused")))}a=W(s.getAttribute("data-taborder"));L(s,"focused"),a&&(a.focus(),O(a,"focused"))}39==i&&P.nextSlide(),37==i&&P.prevSlide(),27==i&&P.close()}})))}},{key:"openAt",value:function(){this.open(null,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0)}},{key:"showSlide",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1];l(this.loader),this.index=parseInt(t);var s=this.slidesContainer.querySelector(".current");s&&L(s,"current"),this.slideAnimateOut();var n,a=this.slidesContainer.querySelectorAll(".gslide")[t];z(a,"loaded")?(this.slideAnimateIn(a,i),d(this.loader)):(l(this.loader),s=this.elements[t],n={index:this.index,slide:a,slideNode:a,slideConfig:s.slideConfig,slideIndex:this.index,trigger:s.node,player:null},this.trigger("slide_before_load",n),s.instance.setContent(a,function(){d(e.loader),e.resize(),e.slideAnimateIn(a,i),e.trigger("slide_after_load",n)})),this.slideDescription=a.querySelector(".gslide-description"),this.slideDescriptionContained=this.slideDescription&&z(this.slideDescription.parentNode,"gslide-media"),this.settings.preload&&(this.preloadSlide(t+1),this.preloadSlide(t-1)),this.updateNavigationClasses(),this.activeSlide=a}},{key:"preloadSlide",value:function(e){var t=this;if(e<0||e>this.elements.length-1)return!1;if(F(this.elements[e]))return!1;var i=this.slidesContainer.querySelectorAll(".gslide")[e];if(z(i,"loaded"))return!1;var s=this.elements[e],n=s.type,a={index:e,slide:i,slideNode:i,slideConfig:s.slideConfig,slideIndex:e,trigger:s.node,player:null};this.trigger("slide_before_load",a),"video"===n||"external"===n?setTimeout(function(){s.instance.setContent(i,function(){t.trigger("slide_after_load",a)})},200):s.instance.setContent(i,function(){t.trigger("slide_after_load",a)})}},{key:"prevSlide",value:function(){this.goToSlide(this.index-1)}},{key:"nextSlide",value:function(){this.goToSlide(this.index+1)}},{key:"goToSlide",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(this.prevActiveSlide=this.activeSlide,this.prevActiveSlideIndex=this.index,!this.loop()&&(e<0||e>this.elements.length-1))return!1;e<0?e=this.elements.length-1:e>=this.elements.length&&(e=0),this.showSlide(e)}},{key:"insertSlide",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:-1;t<0&&(t=this.elements.length);var i=new X(e,this,t),s=i.getConfig(),n=c({},s),a=i.create(),o=this.elements.length-1;n.index=t,n.node=!1,n.instance=i,n.slideConfig=s,this.elements.splice(t,0,n);e=null,i=null;this.slidesContainer&&(o<t?this.slidesContainer.appendChild(a):(o=this.slidesContainer.querySelectorAll(".gslide")[t],this.slidesContainer.insertBefore(a,o)),(this.settings.preload&&0==this.index&&0==t||this.index-1==t||this.index+1==t)&&this.preloadSlide(t),0===this.index&&0===t&&(this.index=1),this.updateNavigationClasses(),e=this.slidesContainer.querySelectorAll(".gslide")[t],i=this.getSlidePlayerInstance(t),n.slideNode=e),this.trigger("slide_inserted",{index:t,slide:e,slideNode:e,slideConfig:s,slideIndex:t,trigger:null,player:i}),B(this.settings.slideInserted)&&this.settings.slideInserted({index:t,slide:e,player:i})}},{key:"removeSlide",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:-1;if(e<0||e>this.elements.length-1)return!1;var t=this.slidesContainer&&this.slidesContainer.querySelectorAll(".gslide")[e];t&&(this.getActiveSlideIndex()==e&&(e==this.elements.length-1?this.prevSlide():this.nextSlide()),t.parentNode.removeChild(t)),this.elements.splice(e,1),this.trigger("slide_removed",e),B(this.settings.slideRemoved)&&this.settings.slideRemoved(e)}},{key:"slideAnimateIn",value:function(e,t){var i=this,s=e.querySelector(".gslide-media"),n=e.querySelector(".gslide-description"),a={index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlide,slideConfig:F(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:F(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},o={index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideConfig:this.elements[this.index].slideConfig,slideIndex:this.index,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)};0<s.offsetWidth&&n&&(d(n),n.style.display=""),L(e,this.effectsClasses),t?N(e,this.settings.cssEfects[this.settings.openEffect].in,function(){i.settings.autoplayVideos&&i.slidePlayerPlay(e),i.trigger("slide_changed",{prev:a,current:o}),B(i.settings.afterSlideChange)&&i.settings.afterSlideChange.apply(i,[a,o])}):(t="none"!==(t=this.settings.slideEffect)?this.settings.cssEfects[t].in:t,this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(t=this.settings.cssEfects.slideBack.in),N(e,t,function(){i.settings.autoplayVideos&&i.slidePlayerPlay(e),i.trigger("slide_changed",{prev:a,current:o}),B(i.settings.afterSlideChange)&&i.settings.afterSlideChange.apply(i,[a,o])})),setTimeout(function(){i.resize(e)},100),O(e,"current")}},{key:"slideAnimateOut",value:function(){if(!this.prevActiveSlide)return!1;var s=this.prevActiveSlide;L(s,this.effectsClasses),O(s,"prev");var e=this.settings.slideEffect,e="none"!==e?this.settings.cssEfects[e].out:e;this.slidePlayerPause(s),this.trigger("slide_before_change",{prev:{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlideIndex,slideConfig:F(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:F(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},current:{index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideIndex:this.index,slideConfig:this.elements[this.index].slideConfig,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)}}),B(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},{index:this.index,slide:this.activeSlide,player:this.getSlidePlayerInstance(this.index)}]),this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(e=this.settings.cssEfects.slideBack.out),N(s,e,function(){var e=s.querySelector(".ginner-container"),t=s.querySelector(".gslide-media"),i=s.querySelector(".gslide-description");e.style.transform="",t.style.transform="",L(t,"greset"),t.style.opacity="",i&&(i.style.opacity=""),L(s,"prev")})}},{key:"getAllPlayers",value:function(){return this.videoPlayers}},{key:"getSlidePlayerInstance",value:function(e){var t="gvideo"+e,e=this.getAllPlayers();return!(!x(e,t)||!e[t])&&e[t]}},{key:"stopSlideVideo",value:function(e){var t;!R(e)||(t=e.querySelector(".gvideo-wrapper"))&&(e=t.getAttribute("data-index")),console.log("stopSlideVideo is deprecated, use slidePlayerPause");e=this.getSlidePlayerInstance(e);e&&e.playing&&e.pause()}},{key:"slidePlayerPause",value:function(e){var t;!R(e)||(t=e.querySelector(".gvideo-wrapper"))&&(e=t.getAttribute("data-index"));e=this.getSlidePlayerInstance(e);e&&e.playing&&e.pause()}},{key:"playSlideVideo",value:function(e){var t;!R(e)||(t=e.querySelector(".gvideo-wrapper"))&&(e=t.getAttribute("data-index")),console.log("playSlideVideo is deprecated, use slidePlayerPlay");e=this.getSlidePlayerInstance(e);e&&!e.playing&&e.play()}},{key:"slidePlayerPlay",value:function(e){var t;(!Q||null!==(t=this.settings.plyr.config)&&void 0!==t&&t.muted)&&(!R(e)||(t=e.querySelector(".gvideo-wrapper"))&&(e=t.getAttribute("data-index")),(e=this.getSlidePlayerInstance(e))&&!e.playing&&(e.play(),this.settings.autofocusVideos&&e.elements.container.focus()))}},{key:"setElements",value:function(e){var n=this;this.settings.elements=!1;var a=[];e&&e.length&&p(e,function(e,t){var i=new X(e,n,t),s=i.getConfig(),e=c({},s);e.slideConfig=s,e.instance=i,e.index=t,a.push(e)}),this.elements=a,this.lightboxOpen&&(this.slidesContainer.innerHTML="",this.elements.length&&(p(this.elements,function(){var e=g(n.settings.slideHTML);n.slidesContainer.appendChild(e)}),this.showSlide(0,!0)))}},{key:"getElementIndex",value:function(i){var s=!1;return p(this.elements,function(e,t){if(x(e,"node")&&e.node==i)return s=t,!0}),s}},{key:"getElements",value:function(){var a=this,o=[];this.elements=this.elements||[],!F(this.settings.elements)&&i(this.settings.elements)&&this.settings.elements.length&&p(this.settings.elements,function(e,t){var i=new X(e,a,t),s=i.getConfig(),e=c({},s);e.node=!1,e.index=t,e.instance=i,e.slideConfig=s,o.push(e)});var e=!1;return(e=this.getSelector()?document.querySelectorAll(this.getSelector()):e)&&p(e,function(e,t){var i=new X(e,a,t),s=i.getConfig(),n=c({},s);n.node=e,n.index=t,n.instance=i,n.slideConfig=s,n.gallery=e.getAttribute("data-gallery"),o.push(n)}),o}},{key:"getGalleryElements",value:function(e,t){return e.filter(function(e){return e.gallery==t})}},{key:"getSelector",value:function(){return!this.settings.elements&&(this.settings.selector&&"data-"==this.settings.selector.substring(0,5)?"*[".concat(this.settings.selector,"]"):this.settings.selector)}},{key:"getActiveSlide",value:function(){return this.slidesContainer.querySelectorAll(".gslide")[this.index]}},{key:"getActiveSlideIndex",value:function(){return this.index}},{key:"getAnimationClasses",value:function(){var e,t,i=[];for(e in this.settings.cssEfects)this.settings.cssEfects.hasOwnProperty(e)&&(t=this.settings.cssEfects[e],i.push("g".concat(t.in)),i.push("g".concat(t.out)));return i.join(" ")}},{key:"build",value:function(){var i=this;if(this.built)return!1;var e=document.body.childNodes,t=[];p(e,function(e){e.parentNode==document.body&&"#"!==e.nodeName.charAt(0)&&e.hasAttribute&&!e.hasAttribute("aria-hidden")&&(t.push(e),e.setAttribute("aria-hidden","true"))});var s=x(this.settings.svg,"next")?this.settings.svg.next:"",n=x(this.settings.svg,"prev")?this.settings.svg.prev:"",a=x(this.settings.svg,"close")?this.settings.svg.close:"",e=this.settings.lightboxHTML;e=g(e=(e=(e=e.replace(/{nextSVG}/g,s)).replace(/{prevSVG}/g,n)).replace(/{closeSVG}/g,a)),document.body.appendChild(e);a=document.getElementById("glightbox-body"),e=(this.modal=a).querySelector(".gclose");this.prevButton=a.querySelector(".gprev"),this.nextButton=a.querySelector(".gnext"),this.overlay=a.querySelector(".goverlay"),this.loader=a.querySelector(".gloader"),this.slidesContainer=document.getElementById("glightbox-slider"),this.bodyHiddenChildElms=t,this.events={},O(this.modal,"glightbox-"+this.settings.skin),this.settings.closeButton&&e&&(this.events.close=M("click",{onElement:e,withCallback:function(e,t){e.preventDefault(),i.close()}})),e&&!this.settings.closeButton&&e.parentNode.removeChild(e),this.nextButton&&(this.events.next=M("click",{onElement:this.nextButton,withCallback:function(e,t){e.preventDefault(),i.nextSlide()}})),this.prevButton&&(this.events.prev=M("click",{onElement:this.prevButton,withCallback:function(e,t){e.preventDefault(),i.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=M("click",{onElement:a,withCallback:function(e,t){i.preventOutsideClick||z(document.body,"glightbox-mobile")||D(e.target,".ginner-container")||D(e.target,".gbtn")||z(e.target,"gnext")||z(e.target,"gprev")||i.close()}})),p(this.elements,function(e,t){i.slidesContainer.appendChild(e.instance.create()),e.slideNode=i.slidesContainer.querySelectorAll(".gslide")[t]}),Z&&(O(document.body,"glightbox-touch"),this.settings.autoplayVideos=!1),this.events.resize=M("resize",{onElement:window,withCallback:function(){i.resize()}}),this.built=!0}},{key:"resize",value:function(){var e,t,i,s,n,a,o,r,l,c=(c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)||this.activeSlide;c&&!z(c,"zoomed")&&(s=H(),e=c.querySelector(".gvideo-wrapper"),t=c.querySelector(".gslide-image"),i=this.slideDescription,o=s.width,r=s.height,(o<=768?O:L)(document.body,"glightbox-mobile"),(e||t)&&(c=!1,i&&(z(i,"description-bottom")||z(i,"description-top"))&&!z(i,"gabsolute")&&(c=!0),t&&(o<=768?t.querySelector("img"):c&&(s=i.offsetHeight,(a=t.querySelector("img")).setAttribute("style","max-height: calc(100vh - ".concat(s,"px)")),i.setAttribute("style","max-width: ".concat(a.offsetWidth,"px;")))),e&&((a=x(this.settings.plyr.config,"ratio")?this.settings.plyr.config.ratio:"")||(n=e.clientWidth,l=e.clientHeight,a="".concat(n/(n=n/l),":").concat(l/n)),l=a.split(":"),n=this.settings.videosWidth,a=this.settings.videosWidth,l=(a=q(n)||-1!==n.indexOf("px")?parseInt(n):-1!==n.indexOf("vw")?o*parseInt(n)/100:-1!==n.indexOf("vh")?r*parseInt(n)/100:-1!==n.indexOf("%")?o*parseInt(n)/100:parseInt(e.clientWidth))/(parseInt(l[0])/parseInt(l[1])),l=Math.floor(l),c&&(r-=i.offsetHeight),o<a||r<l||r<l&&a<o?(a=e.offsetWidth,o=e.offsetHeight,e.parentNode.setAttribute("style","max-width: ".concat((r={width:a*(r=r/o),height:o*r}).width,"px")),c&&i.setAttribute("style","max-width: ".concat(r.width,"px;"))):(e.parentNode.style.maxWidth="".concat(n),c&&i.setAttribute("style","max-width: ".concat(n,";"))))))}},{key:"reload",value:function(){this.init()}},{key:"updateNavigationClasses",value:function(){var e=this.loop();L(this.nextButton,"disabled"),L(this.prevButton,"disabled"),0==this.index&&this.elements.length-1==0?(O(this.prevButton,"disabled"),O(this.nextButton,"disabled")):0!==this.index||e?this.index!==this.elements.length-1||e||O(this.nextButton,"disabled"):O(this.prevButton,"disabled")}},{key:"loop",value:function(){var e=x(this.settings,"loopAtEnd")?this.settings.loopAtEnd:null;return e=x(this.settings,"loop")?this.settings.loop:e}},{key:"close",value:function(){var i=this;if(!this.lightboxOpen){if(this.events){for(var e in this.events)this.events.hasOwnProperty(e)&&this.events[e].destroy();this.events=null}return!1}if(this.closing)return!1;this.closing=!0,this.slidePlayerPause(this.activeSlide),this.fullElementsList&&(this.elements=this.fullElementsList),this.bodyHiddenChildElms.length&&p(this.bodyHiddenChildElms,function(e){e.removeAttribute("aria-hidden")}),O(this.modal,"glightbox-closing"),N(this.overlay,"none"==this.settings.openEffect?"none":this.settings.cssEfects.fade.out),N(this.activeSlide,this.settings.cssEfects[this.settings.closeEffect].out,function(){if(i.activeSlide=null,i.prevActiveSlideIndex=null,i.prevActiveSlide=null,i.built=!1,i.events){for(var e in i.events)i.events.hasOwnProperty(e)&&i.events[e].destroy();i.events=null}var t=document.body;L(J,"glightbox-open"),L(t,"glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"),i.modal.parentNode.removeChild(i.modal),i.trigger("close"),B(i.settings.onClose)&&i.settings.onClose();t=document.querySelector(".gcss-styles");t&&t.parentNode.removeChild(t),i.lightboxOpen=!1,i.closing=null})}},{key:"destroy",value:function(){this.close(),this.clearAllEvents(),this.baseEvents&&this.baseEvents.destroy()}},{key:"on",value:function(e,t){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(!e||!B(t))throw new TypeError("Event name and callback must be defined");this.apiEvents.push({evt:e,once:i,callback:t})}},{key:"once",value:function(e,t){this.on(e,t,!0)}},{key:"trigger",value:function(n){var t=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,o=[];p(this.apiEvents,function(e,t){var i=e.evt,s=e.once,e=e.callback;i==n&&(e(a),s&&o.push(t))}),o.length&&p(o,function(e){return t.apiEvents.splice(e,1)})}},{key:"clearAllEvents",value:function(){this.apiEvents.splice(0,this.apiEvents.length)}},{key:"version",value:function(){return"3.1.0"}}]),ie);function ie(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};o(this,ie),this.customOptions=e,this.settings=c(ee,e),this.effectsClasses=this.getAnimationClasses(),this.videoPlayers={},this.apiEvents=[],this.fullElementsList=!1}return function(){var e=new te(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{});return e.init(),e}}),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.Headhesive=t()}(this,function(){"use strict";function e(i,s){function n(){d=l(),c=null,r=i.apply(a,o),a=o=null}var a,o,r,l=Date.now||function(){return(new Date).getTime()},c=null,d=0;return function(){var e=l(),t=s-(e-d);return a=this,o=arguments,t<=0?(clearTimeout(c),c=null,d=e,r=i.apply(a,o),a=o=null):c=c||setTimeout(n,t),r}}function t(e,t){"querySelector"in document&&"addEventListener"in window&&(this.visible=!1,this.options={offset:300,offsetSide:"top",classes:{clone:"headhesive",stick:"headhesive--stick",unstick:"headhesive--unstick"},throttle:250,onInit:function(){},onStick:function(){},onUnstick:function(){},onDestroy:function(){}},this.elem="string"==typeof e?document.querySelector(e):e,this.options=s(this.options,t),this.init())}var s=function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]="object"==typeof t[i]?s(e[i],t[i]):t[i]);return e};return t.prototype={constructor:t,init:function(){if(this.clonedElem=this.elem.cloneNode(!0),this.clonedElem.className+=" "+this.options.classes.clone,document.body.insertBefore(this.clonedElem,document.body.firstChild),"number"==typeof this.options.offset)this.scrollOffset=this.options.offset;else{if("string"!=typeof this.options.offset)throw new Error("Invalid offset: "+this.options.offset);this._setScrollOffset()}this._throttleUpdate=e(this.update.bind(this),this.options.throttle),this._throttleScrollOffset=e(this._setScrollOffset.bind(this),this.options.throttle),window.addEventListener("scroll",this._throttleUpdate,!1),window.addEventListener("resize",this._throttleScrollOffset,!1),this.options.onInit.call(this)},_setScrollOffset:function(){"string"==typeof this.options.offset&&(this.scrollOffset=function(e,t){for(var i=0,s=e.offsetHeight;e;)i+=e.offsetTop,e=e.offsetParent;return"bottom"===t&&(i+=s),i}(document.querySelector(this.options.offset),this.options.offsetSide))},destroy:function(){document.body.removeChild(this.clonedElem),window.removeEventListener("scroll",this._throttleUpdate),window.removeEventListener("resize",this._throttleScrollOffset),this.options.onDestroy.call(this)},stick:function(){this.visible||(this.clonedElem.className=this.clonedElem.className.replace(new RegExp("(^|\\s)*"+this.options.classes.unstick+"(\\s|$)*","g"),""),this.clonedElem.className+=" "+this.options.classes.stick,this.visible=!0,this.options.onStick.call(this))},unstick:function(){this.visible&&(this.clonedElem.className=this.clonedElem.className.replace(new RegExp("(^|\\s)*"+this.options.classes.stick+"(\\s|$)*","g"),""),this.clonedElem.className+=" "+this.options.classes.unstick,this.visible=!1,this.options.onUnstick.call(this))},update:function(){(void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop)>this.scrollOffset?this.stick():this.unstick()}},t}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},e=i[e]=i[e]||[];return-1==e.indexOf(t)&&e.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length){t=e.indexOf(t);return-1!=t&&e.splice(t,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var s=this._onceEvents&&this._onceEvents[e],n=0;n<i.length;n++){var a=i[n];s&&s[a]&&(this.off(e,a),delete s[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(t,i){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("ev-emitter")):t.imagesLoaded=i(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function a(e,t){for(var i in t)e[i]=t[i];return e}function o(e,t,i){if(!(this instanceof o))return new o(e,t,i);var s,n=e;return(n="string"==typeof e?document.querySelectorAll(e):n)?(this.elements=(s=n,Array.isArray(s)?s:"object"==typeof s&&"number"==typeof s.length?c.call(s):[s]),this.options=a({},this.options),"function"==typeof t?i=t:a(this.options,t),i&&this.on("always",i),this.getImages(),r&&(this.jqDeferred=new r.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(n||e))}function i(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var r=t.jQuery,l=t.console,c=Array.prototype.slice;(o.prototype=Object.create(e.prototype)).options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&d[t]){for(var i=e.querySelectorAll("img"),s=0;s<i.length;s++){var n=i[s];this.addImage(n)}if("string"==typeof this.options.background)for(var a=e.querySelectorAll(this.options.background),s=0;s<a.length;s++){var o=a[s];this.addElementBackgroundImages(o)}}};var d={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,s=i.exec(t.backgroundImage);null!==s;){var n=s&&s[2];n&&this.addBackground(n,e),s=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){e=new i(e);this.images.push(e)},o.prototype.addBackground=function(e,t){t=new s(e,t);this.images.push(t)},o.prototype.check=function(){function t(e,t,i){setTimeout(function(){s.progress(e,t,i)})}var s=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(i.prototype=Object.create(e.prototype)).check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},i.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(s.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},(o.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((r=e).fn.imagesLoaded=function(e,t){return new o(this,e,t).jqDeferred.promise(r(this))})})(),o}),function(t,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("jquery")):t.jQueryBridget=i(t,t.jQuery)}(window,function(e,t){"use strict";function i(l,c,d){(d=d||t||e.jQuery)&&(c.prototype.option||(c.prototype.option=function(e){d.isPlainObject(e)&&(this.options=d.extend(!0,this.options,e))}),d.fn[l]=function(e){if("string"!=typeof e)return r=e,this.each(function(e,t){var i=d.data(t,l);i?(i.option(r),i._init()):(i=new c(t,r),d.data(t,l,i))}),this;var s,n,a,o,r,t=u.call(arguments,1);return n=t,o="$()."+l+'("'+(s=e)+'")',(e=this).each(function(e,t){var i=d.data(t,l);i?(t=i[s])&&"_"!=s.charAt(0)?(i=t.apply(i,n),a=void 0===a?i:a):p(o+" is not a valid method"):p(l+" not initialized. Cannot call methods, i.e. "+o)}),void 0!==a?a:e},s(d))}function s(e){!e||e.bridget||(e.bridget=i)}var u=Array.prototype.slice,n=e.console,p=void 0===n?function(){}:function(e){n.error(e)};return s(t||e.jQuery),i}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},e=i[e]=i[e]||[];return-1==e.indexOf(t)&&e.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length){t=e.indexOf(t);return-1!=t&&e.splice(t,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var s=this._onceEvents&&this._onceEvents[e],n=0;n<i.length;n++){var a=i[n];s&&s[a]&&(this.off(e,a),delete s[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"function"==typeof define&&define.amd?define("get-size/get-size",t):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){"use strict";function h(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function f(e){e=getComputedStyle(e);return e||t("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function m(e){if(b||(b=!0,(p=document.createElement("div")).style.width="200px",p.style.padding="1px 2px 3px 4px",p.style.borderStyle="solid",p.style.borderWidth="1px 2px 3px 4px",p.style.boxSizing="border-box",(u=document.body||document.documentElement).appendChild(p),d=f(p),g=200==Math.round(h(d.width)),m.isBoxSizeOuter=g,u.removeChild(p)),(e="string"==typeof e?document.querySelector(e):e)&&"object"==typeof e&&e.nodeType){var t=f(e);if("none"==t.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<y;t++)e[v[t]]=0;return e}();var i={};i.width=e.offsetWidth,i.height=e.offsetHeight;for(var s=i.isBorderBox="border-box"==t.boxSizing,n=0;n<y;n++){var a=v[n],o=t[a],o=parseFloat(o);i[a]=isNaN(o)?0:o}var r=i.paddingLeft+i.paddingRight,l=i.paddingTop+i.paddingBottom,c=i.marginLeft+i.marginRight,d=i.marginTop+i.marginBottom,u=i.borderLeftWidth+i.borderRightWidth,p=i.borderTopWidth+i.borderBottomWidth,e=s&&g,s=h(t.width);!1!==s&&(i.width=s+(e?0:r+u));s=h(t.height);return!1!==s&&(i.height=s+(e?0:l+p)),i.innerWidth=i.width-(r+u),i.innerHeight=i.height-(l+p),i.outerWidth=i.width+c,i.outerHeight=i.height+d,i}var p,u,d}var g,t="undefined"==typeof console?function(){}:function(e){console.error(e)},v=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],y=v.length,b=!1;return m}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var i=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var s=t[i]+"MatchesSelector";if(e[s])return s}}();return function(e,t){return e[i](t)}}),function(t,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("desandro-matches-selector")):t.fizzyUIUtils=i(t,t.matchesSelector)}(window,function(i,a){var l={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t}},t=Array.prototype.slice;l.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?t.call(e):[e]},l.removeFrom=function(e,t){t=e.indexOf(t);-1!=t&&e.splice(t,1)},l.getParent=function(e,t){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,a(e,t))return e},l.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},l.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.filterFindElements=function(e,s){e=l.makeArray(e);var n=[];return e.forEach(function(e){if(e instanceof HTMLElement)if(s){a(e,s)&&n.push(e);for(var t=e.querySelectorAll(s),i=0;i<t.length;i++)n.push(t[i])}else n.push(e)}),n},l.debounceMethod=function(e,t,s){s=s||100;var n=e.prototype[t],a=t+"Timeout";e.prototype[t]=function(){var e=this[a];clearTimeout(e);var t=arguments,i=this;this[a]=setTimeout(function(){n.apply(i,t),delete i[a]},s)}},l.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},l.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,i){return t+"-"+i}).toLowerCase()};var c=i.console;return l.htmlInit=function(o,r){l.docReady(function(){var e=l.toDashed(r),s="data-"+e,t=document.querySelectorAll("["+s+"]"),e=document.querySelectorAll(".js-"+e),e=l.makeArray(t).concat(l.makeArray(e)),n=s+"-options",a=i.jQuery;e.forEach(function(t){var e=t.getAttribute(s)||t.getAttribute(n);try{i=e&&JSON.parse(e)}catch(e){return void(c&&c.error("Error parsing "+s+" on "+t.className+": "+e))}var i=new o(t,i);a&&a.data(t,r,i)})})},l}),function(e,t){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("get-size")):(e.Outlayer={},e.Outlayer.Item=t(e.EvEmitter,e.getSize))}(window,function(e,t){"use strict";function i(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var s=document.documentElement.style,n="string"==typeof s.transition?"transition":"WebkitTransition",s="string"==typeof s.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],o={transform:s,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"},e=i.prototype=Object.create(e.prototype);e.constructor=i,e._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},e.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},e.getSize=function(){this.size=t(this.element)},e.css=function(e){var t,i=this.element.style;for(t in e)i[o[t]||t]=e[t]},e.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),s=e[t?"left":"right"],n=e[i?"top":"bottom"],a=parseFloat(s),o=parseFloat(n),e=this.layout.size;-1!=s.indexOf("%")&&(a=a/100*e.width),-1!=n.indexOf("%")&&(o=o/100*e.height),a=isNaN(a)?0:a,o=isNaN(o)?0:o,a-=t?e.paddingLeft:e.paddingRight,o-=i?e.paddingTop:e.paddingBottom,this.position.x=a,this.position.y=o},e.layoutPosition=function(){var e=this.layout.size,t={},i=this.layout._getOption("originLeft"),s=this.layout._getOption("originTop"),n=i?"right":"left",a=this.position.x+e[i?"paddingLeft":"paddingRight"];t[i?"left":"right"]=this.getXValue(a),t[n]="";n=s?"bottom":"top",e=this.position.y+e[s?"paddingTop":"paddingBottom"];t[s?"top":"bottom"]=this.getYValue(e),t[n]="",this.css(t),this.emitEvent("layout",[this])},e.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},e.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},e._transitionTo=function(e,t){this.getPosition();var i=this.position.x,s=this.position.y,n=e==this.position.x&&t==this.position.y;this.setPosition(e,t),!n||this.isTransitioning?((n={}).transform=this.getTranslate(e-i,t-s),this.transition({to:n,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},e.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},e.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},e.moveTo=e._transitionTo,e.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},e._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},e.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t,i=this._transn;for(t in e.onTransitionEnd)i.onEnd[t]=e.onTransitionEnd[t];for(t in e.to)i.ingProperties[t]=!0,e.isCleaning&&(i.clean[t]=!0);e.from&&(this.css(e.from),this.element.offsetHeight,0),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var r="opacity,"+s.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()});e.enableTransition=function(){var e;this.isTransitioning||(e="number"==typeof(e=this.layout.options.transitionDuration)?e+"ms":e,this.css({transitionProperty:r,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1))},e.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},e.onotransitionend=function(e){this.ontransitionend(e)};var l={"-webkit-transform":"transform"};e.ontransitionend=function(e){var t,i;e.target===this.element&&(t=this._transn,i=l[e.propertyName]||e.propertyName,delete t.ingProperties[i],function(e){for(var t in e)return;return 1}(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[i]),i in t.onEnd&&(t.onEnd[i].call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},e.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},e._removeStyles=function(e){var t,i={};for(t in e)i[t]="";this.css(i)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return e.removeTransitionStyles=function(){this.css(c)},e.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},e.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},e.remove=function(){return n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},e.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},e.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},e.getHideRevealTransitionEndProperty=function(e){var t,e=this.layout.options[e];if(e.opacity)return"opacity";for(t in e)return t},e.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},e.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},e.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(n,a){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(e,t,i,s){return a(n,e,t,i,s)}):"object"==typeof module&&module.exports?module.exports=a(n,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=a(n,n.EvEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)}(window,function(e,t,n,s,a){"use strict";function o(e,t){var i=s.getQueryElement(e);i?(this.element=i,c&&(this.$element=c(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(t),t=++d,this.element.outlayerGUID=t,(u[t]=this)._create(),this._getOption("initLayout")&&this.layout()):l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||e))}function r(e){function t(){e.apply(this,arguments)}return(t.prototype=Object.create(e.prototype)).constructor=t}function i(){}var l=e.console,c=e.jQuery,d=0,u={};o.namespace="outlayer",o.Item=a,o.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var p=o.prototype;s.extend(p,t.prototype),p.option=function(e){s.extend(this.options,e)},p._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},p._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},p.reloadItems=function(){this.items=this._itemize(this.element.children)},p._itemize=function(e){for(var t=this._filterFindItemElements(e),i=this.constructor.Item,s=[],n=0;n<t.length;n++){var a=new i(t[n],this);s.push(a)}return s},p._filterFindItemElements=function(e){return s.filterFindElements(e,this.options.itemSelector)},p.getItemElements=function(){return this.items.map(function(e){return e.element})},p.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),e=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},p._init=p.layout,p._resetLayout=function(){this.getSize()},p.getSize=function(){this.size=n(this.element)},p._getMeasurement=function(e,t){var i,s=this.options[e];s?("string"==typeof s?i=this.element.querySelector(s):s instanceof HTMLElement&&(i=s),this[e]=i?n(i)[t]:s):this[e]=0},p.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},p._getItemsForLayout=function(e){return e.filter(function(e){return!e.isIgnored})},p._layoutItems=function(e,i){var s;this._emitCompleteOnItems("layout",e),e&&e.length&&(s=[],e.forEach(function(e){var t=this._getItemLayoutPosition(e);t.item=e,t.isInstant=i||e.isLayoutInstant,s.push(t)},this),this._processLayoutQueue(s))},p._getItemLayoutPosition=function(){return{x:0,y:0}},p._processLayoutQueue=function(e){this.updateStagger(),e.forEach(function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)},this)},p.updateStagger=function(){var e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger=function(e){if("number"==typeof e)return e;var e=(t=e.match(/(^\d*\.?\d*)(\w*)/))&&t[1],t=t&&t[2];return e.length?(e=parseFloat(e))*(h[t]||1):0}(e),this.stagger)},p._positionItem=function(e,t,i,s,n){s?e.goTo(t,i):(e.stagger(n*this.stagger),e.moveTo(t,i))},p._postLayout=function(){this.resizeContainer()},p.resizeContainer=function(){var e;!this._getOption("resizeContainer")||(e=this._getContainerSize())&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))},p._getContainerSize=i,p._setContainerMeasure=function(e,t){var i;void 0!==e&&((i=this.size).isBorderBox&&(e+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px")},p._emitCompleteOnItems=function(t,e){function i(){a.dispatchEvent(t+"Complete",null,[e])}function s(){++n==o&&i()}var n,a=this,o=e.length;e&&o?(n=0,e.forEach(function(e){e.once(t,s)})):i()},p.dispatchEvent=function(e,t,i){var s=t?[t].concat(i):i;this.emitEvent(e,s),c&&(this.$element=this.$element||c(this.element),t?((t=c.Event(t)).type=e,this.$element.trigger(t,i)):this.$element.trigger(e,i))},p.ignore=function(e){e=this.getItem(e);e&&(e.isIgnored=!0)},p.unignore=function(e){e=this.getItem(e);e&&delete e.isIgnored},p.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},p.unstamp=function(e){(e=this._find(e))&&e.forEach(function(e){s.removeFrom(this.stamps,e),this.unignore(e)},this)},p._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),s.makeArray(e)},p._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},p._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},p._manageStamp=i,p._getElementOffset=function(e){var t=e.getBoundingClientRect(),i=this._boundingRect,e=n(e);return{left:t.left-i.left-e.marginLeft,top:t.top-i.top-e.marginTop,right:i.right-t.right-e.marginRight,bottom:i.bottom-t.bottom-e.marginBottom}},p.handleEvent=s.handleEvent,p.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},p.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},p.onresize=function(){this.resize()},s.debounceMethod(o,"onresize",100),p.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},p.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},p.addItems=function(e){e=this._itemize(e);return e.length&&(this.items=this.items.concat(e)),e},p.appended=function(e){e=this.addItems(e);e.length&&(this.layoutItems(e,!0),this.reveal(e))},p.prepended=function(e){var t=this._itemize(e);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},p.reveal=function(e){var i;this._emitCompleteOnItems("reveal",e),e&&e.length&&(i=this.updateStagger(),e.forEach(function(e,t){e.stagger(t*i),e.reveal()}))},p.hide=function(e){var i;this._emitCompleteOnItems("hide",e),e&&e.length&&(i=this.updateStagger(),e.forEach(function(e,t){e.stagger(t*i),e.hide()}))},p.revealItemElements=function(e){e=this.getItems(e);this.reveal(e)},p.hideItemElements=function(e){e=this.getItems(e);this.hide(e)},p.getItem=function(e){for(var t=0;t<this.items.length;t++){var i=this.items[t];if(i.element==e)return i}},p.getItems=function(e){e=s.makeArray(e);var t=[];return e.forEach(function(e){e=this.getItem(e);e&&t.push(e)},this),t},p.remove=function(e){e=this.getItems(e);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(e){e.remove(),s.removeFrom(this.items,e)},this)},p.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach(function(e){e.destroy()}),this.unbindResize();e=this.element.outlayerGUID;delete u[e],delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},o.data=function(e){e=(e=s.getQueryElement(e))&&e.outlayerGUID;return e&&u[e]},o.create=function(e,t){var i=r(o);return i.defaults=s.extend({},o.defaults),s.extend(i.defaults,t),i.compatOptions=s.extend({},o.compatOptions),i.namespace=e,i.data=o.data,i.Item=r(a),s.htmlInit(i,e),c&&c.bridget&&c.bridget(e,i),i};var h={ms:1,s:1e3};return o.Item=a,o}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.Item=t(e.Outlayer))}(window,function(e){"use strict";function t(){e.Item.apply(this,arguments)}var i=t.prototype=Object.create(e.Item.prototype),s=i._create;i._create=function(){this.id=this.layout.itemGUID++,s.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var e,t=this.layout.options.getSortData,i=this.layout._sorters;for(e in t){var s=i[e];this.sortData[e]=s(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("get-size"),require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.LayoutMode=t(e.getSize,e.Outlayer))}(window,function(t,i){"use strict";function s(e){(this.isotope=e)&&(this.options=e.options[this.namespace],this.element=e.element,this.items=e.filteredItems,this.size=e.size)}var n=s.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(e){n[e]=function(){return i.prototype[e].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var e=t(this.isotope.element);return this.isotope.size&&e&&e.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(e,t){var i=e+t,s="outer"+t;this._getMeasurement(i,s),this[i]||(e=this.getFirstItemSize(),this[i]=e&&e[s]||this.isotope.size["inner"+t])},n.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},s.modes={},s.create=function(e,t){function i(){s.apply(this,arguments)}return(i.prototype=Object.create(n)).constructor=i,t&&(i.options=t),s.modes[i.prototype.namespace=e]=i},s}),function(e,t){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer"),require("get-size")):e.Masonry=t(e.Outlayer,e.getSize)}(window,function(e,r){var t=e.create("masonry");t.compatOptions.fitWidth="isFitWidth";e=t.prototype;return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(i=(t=this.items[0])&&t.element,this.columnWidth=i&&r(i).outerWidth||this.containerWidth);var e=this.columnWidth+=this.gutter,t=this.containerWidth+this.gutter,i=t/e,e=e-t%e,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},e.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,e=r(e);this.containerWidth=e&&e.innerWidth},e._getItemLayoutPosition=function(e){e.getSize();for(var t=e.size.outerWidth%this.columnWidth,i=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),s=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,e),t={x:this.columnWidth*s.col,y:s.y},n=s.y+e.size.outerHeight,a=i+s.col,o=s.col;o<a;o++)this.colYs[o]=n;return t},e._getTopColPosition=function(e){var t=this._getTopColGroup(e),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],i=this.cols+1-e,s=0;s<i;s++)t[s]=this._getColGroupY(s,e);return t},e._getColGroupY=function(e,t){if(t<2)return this.colYs[e];t=this.colYs.slice(e,e+t);return Math.max.apply(Math,t)},e._getHorizontalColPosition=function(e,t){var i=this.horizontalColIndex%this.cols,i=1<e&&i+e>this.cols?0:i,t=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=t?i+e:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,e)}},e._manageStamp=function(e){var t=r(e),i=this._getElementOffset(e),s=this._getOption("originLeft")?i.left:i.right,e=s+t.outerWidth,s=Math.floor(s/this.columnWidth),s=Math.max(0,s),n=Math.floor(e/this.columnWidth);n-=e%this.columnWidth?0:1;for(var n=Math.min(this.cols-1,n),a=(this._getOption("originTop")?i.top:i.bottom)+t.outerHeight,o=s;o<=n;o++)this.colYs[o]=Math.max(a,this.colYs[o])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},e._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(e.Isotope.LayoutMode,e.Masonry)}(window,function(e,t){"use strict";var i,e=e.create("masonry"),s=e.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in t.prototype)n[i]||(s[i]=t.prototype[i]);var a=s.measureColumns;s.measureColumns=function(){this.items=this.isotope.filteredItems,a.call(this)};var o=s._getOption;return s._getOption=function(e){return"fitWidth"==e?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:o.apply(this.isotope,arguments)},e}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("fitRows"),e=t.prototype;return e._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},e._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&t+this.x>i&&(this.x=0,this.y=this.maxY);i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight),this.x+=t,i},e._getContainerSize=function(){return{height:this.maxY}},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("vertical",{horizontalAlignment:0}),e=t.prototype;return e._resetLayout=function(){this.y=0},e._getItemLayoutPosition=function(e){e.getSize();var t=(this.isotope.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=e.size.outerHeight,{x:t,y:i}},e._getContainerSize=function(){return{height:this.y}},t}),function(o,r){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(e,t,i,s,n,a){return r(o,e,0,i,s,n,a)}):"object"==typeof module&&module.exports?module.exports=r(o,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):o.Isotope=r(o,o.Outlayer,o.getSize,o.matchesSelector,o.fizzyUIUtils,o.Isotope.Item,o.Isotope.LayoutMode)}(window,function(e,i,t,s,a,n,o){var r=e.jQuery,l=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s+|\s+$/g,"")},c=i.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=n,c.LayoutMode=o;n=c.prototype;n._create=function(){for(var e in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],o.modes)this._initLayoutMode(e)},n.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},n._itemize=function(){for(var e=i.prototype._itemize.apply(this,arguments),t=0;t<e.length;t++)e[t].id=this.itemGUID++;return this._updateItemsSortData(e),e},n._initLayoutMode=function(e){var t=o.modes[e],i=this.options[e]||{};this.options[e]=t.options?a.extend(t.options,i):i,this.modes[e]=new t(this)},n.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},n._layout=function(){var e=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,e),this._isLayoutInited=!0},n.arrange=function(e){this.option(e),this._getIsInstant();e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},n._init=n.arrange,n._hideReveal=function(e){this.reveal(e.needReveal),this.hide(e.needHide)},n._getIsInstant=function(){var e=this._getOption("layoutInstant"),e=void 0!==e?e:!this._isLayoutInited;return this._isInstant=e},n._bindArrangeComplete=function(){function e(){t&&i&&s&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var t,i,s,n=this;this.once("layoutComplete",function(){t=!0,e()}),this.once("hideComplete",function(){i=!0,e()}),this.once("revealComplete",function(){s=!0,e()})},n._filter=function(e){for(var t=this.options.filter,i=[],s=[],n=[],a=this._getFilterTest(t=t||"*"),o=0;o<e.length;o++){var r,l=e[o];l.isIgnored||((r=a(l))&&i.push(l),r&&l.isHidden?s.push(l):r||l.isHidden||n.push(l))}return{matches:i,needReveal:s,needHide:n}},n._getFilterTest=function(t){return r&&this.options.isJQueryFiltering?function(e){return r(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return s(e.element,t)}},n.updateSortData=function(e){e=e?(e=a.makeArray(e),this.getItems(e)):this.items;this._getSorters(),this._updateItemsSortData(e)},n._getSorters=function(){var e,t=this.options.getSortData;for(e in t){var i=t[e];this._sorters[e]=d(i)}},n._updateItemsSortData=function(e){for(var t=e&&e.length,i=0;t&&i<t;i++)e[i].updateSortData()};var d=function(e){if("string"!=typeof e)return e;var t,i,s=l(e).split(" "),n=s[0],e=(e=n.match(/^\[(.+)\]$/))&&e[1],a=(i=n,(t=e)?function(e){return e.getAttribute(t)}:function(e){e=e.querySelector(i);return e&&e.textContent}),o=c.sortDataParsers[s[1]];return o?function(e){return e&&o(a(e))}:function(e){return e&&a(e)}};c.sortDataParsers={parseInt:function(e){return parseInt(e,10)},parseFloat:function(e){return parseFloat(e)}},n._sort=function(){var e,o,r;this.options.sortBy&&(e=a.makeArray(this.options.sortBy),this._getIsSameSortBy(e)||(this.sortHistory=e.concat(this.sortHistory)),o=this.sortHistory,r=this.options.sortAscending,this.filteredItems.sort(function(e,t){for(var i=0;i<o.length;i++){var s=o[i],n=e.sortData[s],a=t.sortData[s];if(a<n||n<a)return(a<n?1:-1)*((void 0!==r[s]?r[s]:r)?1:-1)}return 0}))},n._getIsSameSortBy=function(e){for(var t=0;t<e.length;t++)if(e[t]!=this.sortHistory[t])return!1;return!0},n._mode=function(){var e=this.options.layoutMode,t=this.modes[e];if(!t)throw new Error("No layout mode: "+e);return t.options=this.options[e],t},n._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},n._getItemLayoutPosition=function(e){return this._mode()._getItemLayoutPosition(e)},n._manageStamp=function(e){this._mode()._manageStamp(e)},n._getContainerSize=function(){return this._mode()._getContainerSize()},n.needsResizeLayout=function(){return this._mode().needsResizeLayout()},n.appended=function(e){var e=this.addItems(e);e.length&&(e=this._filterRevealAdded(e),this.filteredItems=this.filteredItems.concat(e))},n.prepended=function(e){var t=this._itemize(e);t.length&&(this._resetLayout(),this._manageStamps(),e=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=e.concat(this.filteredItems),this.items=t.concat(this.items))},n._filterRevealAdded=function(e){e=this._filter(e);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},n.insert=function(e){var t=this.addItems(e);if(t.length){for(var i,s=t.length,n=0;n<s;n++)i=t[n],this.element.appendChild(i.element);e=this._filter(t).matches;for(n=0;n<s;n++)t[n].isLayoutInstant=!0;for(this.arrange(),n=0;n<s;n++)delete t[n].isLayoutInstant;this.reveal(e)}};var u=n.remove;return n.remove=function(e){e=a.makeArray(e);var t=this.getItems(e);u.call(this,e);for(var i=t&&t.length,s=0;i&&s<i;s++){var n=t[s];a.removeFrom(this.filteredItems,n)}},n.shuffle=function(){for(var e=0;e<this.items.length;e++)this.items[e].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},n._noTransition=function(e,t){var i=this.options.transitionDuration;this.options.transitionDuration=0;t=e.apply(this,t);return this.options.transitionDuration=i,t},n.getFilteredItemElements=function(){return this.filteredItems.map(function(e){return e.element})},c});class DoubleCenterException{constructor(){window.console.error('iTooltip Error: positionX and positionY properties cannot be "center" at the same time.')}}class iTooltip{constructor(e="*"){this.objects=document.querySelectorAll("*"!==e?e:"*[title]")}init(e={}){if(this.settings=Object.assign({className:"tooltip",indentX:10,indentY:15,positionX:"right",positionY:"bottom"},e),"center"===this.settings.positionX&&"center"===this.settings.positionY)throw new DoubleCenterException;this.objects.forEach(e=>{e.getAttribute("title")&&(e.addEventListener("mouseenter",e=>this.createTooltip(e)),e.addEventListener("mouseleave",e=>this.removeTooltip(e)))})}createTooltip(e){const t=e.target;this.tooltip=document.createElement("div"),this.tooltip.classList.add(this.settings.className),this.tooltip.innerHTML=t.getAttribute("title");var i=e.target.className.split(" ").find(e=>e.startsWith("itooltip-"));i&&this.tooltip.classList.add(i),this.tooltip.style.position="absolute",this.changePosition(e),t.removeAttribute("title"),document.body.appendChild(this.tooltip),t.addEventListener("mousemove",e=>this.changePosition(e))}removeTooltip(e){e.target.setAttribute("title",this.tooltip.innerHTML),this.tooltip.remove()}changePosition(e){var[t,i]=this.getSizeTooltip(),s=this.getEdges(e),n=window.pageYOffset||document.documentElement.scrollTop;let a=e.pageY,o;if(o="right"===this.settings.positionX?s.right<=t?e.clientX-t-this.settings.indentX:e.clientX+this.settings.indentX:"left"===this.settings.positionX?s.left<=t?s.left+this.settings.indentX:e.clientX-t-this.settings.indentX:s.left<=Math.round(t/2)?e.clientX-s.left:e.clientX-Math.round(t/2),"top"===this.settings.positionY)a=s.top<=i?n+e.clientY+this.settings.indentY:e.pageY-i-this.settings.indentY;else if("bottom"===this.settings.positionY)a=s.bottom<i&&s.top>i+this.settings.indentY?e.pageY-i-this.settings.indentY:n+e.clientY+this.settings.indentY;else{let e=Math.round(i/2);s.bottom<=e&&(e=Math.round(i-s.bottom)),s.top<=e&&(e=s.top),a-=e}this.tooltip.style.top=a+"px",this.tooltip.style.left=o+"px"}getSizeTooltip(){var e=this.tooltip.getBoundingClientRect();return[e.right-e.left,e.bottom-e.top]}getEdges(e){var t=document.documentElement;return{left:e.clientX,right:t.clientWidth-e.clientX,top:e.clientY,bottom:t.clientHeight-e.clientY}}}!function(){"use strict";function t(e){if(!e)throw new Error("No options passed to Waypoint constructor");if(!e.element)throw new Error("No element option passed to Waypoint constructor");if(!e.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i,this.options=t.Adapter.extend({},t.defaults,e),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=e.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),a[this.key]=this,i+=1}var i=0,a={};t.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},t.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete a[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(e){var t,i=[];for(t in a)i.push(a[t]);for(var s=0,n=i.length;s<n;s++)i[s][e]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){for(var e in t.Context.refreshAll(),a)a[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(e){window.setTimeout(e,1e3/60)}function i(e){this.element=e,this.Adapter=h.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+s,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,n[e.waypointContextKey]=this,s+=1,h.windowContext||(h.windowContext=!0,h.windowContext=new i(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var s=0,n={},h=window.Waypoint,e=window.onload;i.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},i.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;e&&t&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},i.prototype.createThrottledResizeHandler=function(){function e(){t.handleResize(),t.didResize=!1}var t=this;this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,h.requestAnimationFrame(e))})},i.prototype.createThrottledScrollHandler=function(){function e(){t.handleScroll(),t.didScroll=!1}var t=this;this.adapter.on("scroll.waypoints",function(){t.didScroll&&!h.isTouch||(t.didScroll=!0,h.requestAnimationFrame(e))})},i.prototype.handleResize=function(){h.Context.refreshAll()},i.prototype.handleScroll=function(){var e,t,i={},s={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(e in s){var n,a=s[e],o=a.newScroll>a.oldScroll?a.forward:a.backward;for(n in this.waypoints[e]){var r,l,c=this.waypoints[e][n];null!==c.triggerPoint&&(r=a.oldScroll<c.triggerPoint,l=a.newScroll>=c.triggerPoint,(r&&l||!r&&!l)&&(c.queueTrigger(o),i[c.group.id]=c.group))}}for(t in i)i[t].flushTriggers();this.oldScroll={x:s.horizontal.newScroll,y:s.vertical.newScroll}},i.prototype.innerHeight=function(){return this.element==this.element.window?h.viewportHeight():this.adapter.innerHeight()},i.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},i.prototype.innerWidth=function(){return this.element==this.element.window?h.viewportWidth():this.adapter.innerWidth()},i.prototype.destroy=function(){var e,t=[];for(e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var s=0,n=t.length;s<n;s++)t[s].destroy()},i.prototype.refresh=function(){var e,t,i=this.element==this.element.window,s=i?void 0:this.adapter.offset(),n={};for(t in this.handleScroll(),e={horizontal:{contextOffset:i?0:s.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:s.top,contextScroll:i?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var a,o=e[t];for(a in this.waypoints[t]){var r,l=this.waypoints[t][a],c=l.options.offset,d=l.triggerPoint,u=0,p=null==d;l.element!==l.element.window&&(u=l.adapter.offset()[o.offsetProp]),"function"==typeof c?c=c.apply(l):"string"==typeof c&&(c=parseFloat(c),-1<l.options.offset.indexOf("%")&&(c=Math.ceil(o.contextDimension*c/100))),r=o.contextScroll-o.contextOffset,l.triggerPoint=Math.floor(u+r-c),r=d<o.oldScroll,c=l.triggerPoint>=o.oldScroll,d=!r&&!c,!p&&(r&&c)?(l.queueTrigger(o.backward),n[l.group.id]=l.group):(!p&&d||p&&o.oldScroll>=l.triggerPoint)&&(l.queueTrigger(o.forward),n[l.group.id]=l.group)}}return h.requestAnimationFrame(function(){for(var e in n)n[e].flushTriggers()}),this},i.findOrCreateByElement=function(e){return i.findByElement(e)||new i(e)},i.refreshAll=function(){for(var e in n)n[e].refresh()},i.findByElement=function(e){return n[e.waypointContextKey]},window.onload=function(){e&&e(),i.refreshAll()},h.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},h.Context=i}(),function(){"use strict";function a(e,t){return e.triggerPoint-t.triggerPoint}function o(e,t){return t.triggerPoint-e.triggerPoint}function t(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},s=window.Waypoint;t.prototype.add=function(e){this.waypoints.push(e)},t.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},t.prototype.flushTriggers=function(){for(var e in this.triggerQueues){var t=this.triggerQueues[e];t.sort("up"===e||"left"===e?o:a);for(var i=0,s=t.length;i<s;i+=1){var n=t[i];!n.options.continuous&&i!==t.length-1||n.trigger([e])}}this.clearTriggerQueues()},t.prototype.next=function(e){this.waypoints.sort(a);e=s.Adapter.inArray(e,this.waypoints);return e===this.waypoints.length-1?null:this.waypoints[e+1]},t.prototype.previous=function(e){this.waypoints.sort(a);e=s.Adapter.inArray(e,this.waypoints);return e?this.waypoints[e-1]:null},t.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},t.prototype.remove=function(e){e=s.Adapter.inArray(e,this.waypoints);-1<e&&this.waypoints.splice(e,1)},t.prototype.first=function(){return this.waypoints[0]},t.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},t.findOrCreate=function(e){return i[e.axis][e.name]||new t(e)},s.Group=t}(),function(){"use strict";function i(e){return e===e.window}function s(e){return i(e)?e:e.defaultView}function e(e){this.element=e,this.handlers={}}var t=window.Waypoint;e.prototype.innerHeight=function(){return i(this.element)?this.element.innerHeight:this.element.clientHeight},e.prototype.innerWidth=function(){return i(this.element)?this.element.innerWidth:this.element.clientWidth},e.prototype.off=function(e,t){function i(e,t,i){for(var s=0,n=t.length-1;s<n;s++){var a=t[s];i&&i!==a||e.removeEventListener(a)}}var e=e.split("."),s=e[0],n=e[1],a=this.element;if(n&&this.handlers[n]&&s)i(a,this.handlers[n][s],t),this.handlers[n][s]=[];else if(s)for(var o in this.handlers)i(a,this.handlers[o][s]||[],t),this.handlers[o][s]=[];else if(n&&this.handlers[n]){for(var r in this.handlers[n])i(a,this.handlers[n][r],t);this.handlers[n]={}}},e.prototype.offset=function(){if(!this.element.ownerDocument)return null;var e=this.element.ownerDocument.documentElement,t=s(this.element.ownerDocument),i={top:0,left:0};return{top:(i=this.element.getBoundingClientRect?this.element.getBoundingClientRect():i).top+t.pageYOffset-e.clientTop,left:i.left+t.pageXOffset-e.clientLeft}},e.prototype.on=function(e,t){var i=e.split("."),e=i[0],i=i[1]||"__default",i=this.handlers[i]=this.handlers[i]||{};(i[e]=i[e]||[]).push(t),this.element.addEventListener(e,t)},e.prototype.outerHeight=function(e){var t=this.innerHeight();return e&&!i(this.element)&&(e=window.getComputedStyle(this.element),t+=parseInt(e.marginTop,10),t+=parseInt(e.marginBottom,10)),t},e.prototype.outerWidth=function(e){var t=this.innerWidth();return e&&!i(this.element)&&(e=window.getComputedStyle(this.element),t+=parseInt(e.marginLeft,10),t+=parseInt(e.marginRight,10)),t},e.prototype.scrollLeft=function(){var e=s(this.element);return e?e.pageXOffset:this.element.scrollLeft},e.prototype.scrollTop=function(){var e=s(this.element);return e?e.pageYOffset:this.element.scrollTop},e.extend=function(){for(var e=Array.prototype.slice.call(arguments),t=1,i=e.length;t<i;t++)!function(e,t){if("object"==typeof e&&"object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(e[0],e[t]);return e[0]},e.inArray=function(e,t,i){return null==t?-1:t.indexOf(e,i)},e.isEmptyObject=function(e){for(var t in e)return!1;return!0},t.adapters.push({name:"noframework",Adapter:e}),t.Adapter=e}(),function(e){var t,n,i,s,a=navigator.userAgent;function o(){clearTimeout(t),t=setTimeout(i,99)}function r(){o(),s&&s.addListener&&s.addListener(o)}e.HTMLPictureElement&&/ecko/.test(a)&&a.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",(n=document.createElement("source"),i=function(){for(var e=document.querySelectorAll("picture > img, img[srcset][sizes]"),t=0;t<e.length;t++)!function(e){var t,i,s=e.parentNode;"PICTURE"===s.nodeName.toUpperCase()?(t=n.cloneNode(),s.insertBefore(t,s.firstElementChild),setTimeout(function(){s.removeChild(t)})):(!e._pfLastSize||e.offsetWidth>e._pfLastSize)&&(e._pfLastSize=e.offsetWidth,i=e.sizes,e.sizes+=",100vw",setTimeout(function(){e.sizes=i}))}(e[t])},s=e.matchMedia&&matchMedia("(orientation: landscape)"),n.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?r():document.addEventListener("DOMContentLoaded",r),o))}(window),function(e,a){"use strict";function f(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function w(e,t){return e.res-t.res}function x(e,t){var i,s,n;if(e&&t)for(n=$.parseSet(t),e=$.makeUrl(e),i=0;i<n.length;i++)if(e===$.makeUrl(n[i].url)){s=n[i];break}return s}function t(t,d){function e(e){var e=e.exec(t.substring(r));return e?(e=e[0],r+=e.length,e):void 0}function i(){for(var e,t,i,s,n,a,o,r=!1,l={},c=0;c<p.length;c++)s=(o=p[c])[o.length-1],n=o.substring(0,o.length-1),a=parseInt(n,10),o=parseFloat(n),se.test(n)&&"w"===s?((e||t)&&(r=!0),0===a?r=!0:e=a):ne.test(n)&&"x"===s?((e||t||i)&&(r=!0),o<0?r=!0:t=o):se.test(n)&&"h"===s?((i||t)&&(r=!0),0===a?r=!0:i=a):r=!0;r||(l.url=u,e&&(l.w=e),t&&(l.d=t),i&&(l.h=i),i||t||e||(l.d=1),1===l.d&&(d.has1x=!0),l.set=d,h.push(l))}for(var u,p,s,n,a,o=t.length,r=0,h=[];;){if(e(ee),o<=r)return h;u=e(te),p=[],","===u.slice(-1)?(u=u.replace(ie,""),i()):function(){for(e(J),s="",n="in descriptor";;){if(a=t.charAt(r),"in descriptor"===n)if(f(a))s&&(p.push(s),s="",n="after descriptor");else{if(","===a)return r+=1,s&&p.push(s),i();if("("===a)s+=a,n="in parens";else{if(""===a)return s&&p.push(s),i();s+=a}}else if("in parens"===n)if(")"===a)s+=a,n="in descriptor";else{if(""===a)return p.push(s),i();s+=a}else if("after descriptor"===n&&!f(a)){if(""===a)return i();n="in descriptor",--r}r+=1}}()}}function i(e){for(var t,i,s,n=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,a=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i,o=function(e){function t(){n&&(a.push(n),n="")}function i(){a[0]&&(o.push(a),a=[])}for(var s,n="",a=[],o=[],r=0,l=0,c=!1;;){if(""===(s=e.charAt(l)))return t(),i(),o;if(c)"*"!==s||"/"!==e[l+1]?l+=1:(c=!1,l+=2,t());else{if(f(s)){if(e.charAt(l-1)&&f(e.charAt(l-1))||!n){l+=1;continue}if(0===r){t(),l+=1;continue}s=" "}else if("("===s)r+=1;else if(")"===s)--r;else{if(","===s){t(),i(),l+=1;continue}if("/"===s&&"*"===e.charAt(l+1)){c=!0,l+=2;continue}}n+=s,l+=1}}}(e),r=o.length,l=0;l<r;l++)if(i=(t=o[l])[t.length-1],s=i,n.test(s)&&0<=parseFloat(s)||(a.test(s)||("0"===s||"-0"===s||"+0"===s))){if(i=i,t.pop(),0===t.length)return i;if(t=t.join(" "),$.matchesMedia(t))return i}return"100vw"}a.createElement("picture");function s(){}function n(e,t,i,s){e.addEventListener?e.addEventListener(t,i,s||!1):e.attachEvent&&e.attachEvent("on"+t,i)}function o(t){var i={};return function(e){return e in i||(i[e]=t(e)),i[e]}}function _(e,t){return e.w?(e.cWidth=$.calcListLength(t||"100vw"),e.res=e.w/e.cWidth):e.res=e.d,e}var r,c,l,d,u,p,h,m,g,v,y,b,S,T,C,E,k,$={},A=!1,P=a.createElement("img"),I=P.getAttribute,M=P.setAttribute,O=P.removeAttribute,L=a.documentElement,z={},D={algorithm:""},N="data-pfsrc",j=N+"set",H=navigator.userAgent,B=/rident/.test(H)||/ecko/.test(H)&&H.match(/rv\:(\d+)/)&&35<RegExp.$1,R="currentSrc",F=/\s+\+?\d+(e\d+)?w/,q=/(\([^)]+\))?\s*(.+)/,W=e.picturefillCFG,V="font-size:100%!important;",U=!0,Y={},G={},X=e.devicePixelRatio,K={px:1,in:96},Q=a.createElement("a"),Z=!1,J=/^[ \t\n\r\u000c]+/,ee=/^[, \t\n\r\u000c]+/,te=/^[^ \t\n\r\u000c]+/,ie=/[,]+$/,se=/^\d+$/,ne=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,ae=(d=/^([\d\.]+)(em|vw|px)$/,u=o(function(e){return"return "+function(){for(var e=arguments,t=0,i=e[0];++t in e;)i=i.replace(e[t],e[++t]);return i}((e||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"}),function(e,t){var i;if(!(e in Y))if(Y[e]=!1,t&&(i=e.match(d)))Y[e]=i[1]*K[i[2]];else try{Y[e]=new Function("e",u(e))(K)}catch(e){}return Y[e]}),oe=function(e){if(A){var t,i,s,n=e||{};if(n.elements&&1===n.elements.nodeType&&("IMG"===n.elements.nodeName.toUpperCase()?n.elements=[n.elements]:(n.context=n.elements,n.elements=null)),s=(t=n.elements||$.qsa(n.context||a,n.reevaluate||n.reselect?$.sel:$.selShort)).length){for($.setupRun(n),Z=!0,i=0;i<s;i++)$.fillImg(t[i],n);$.teardownRun(n)}}};function re(){var e=a.readyState||"";b=setTimeout(re,"loading"===e?200:999),a.body&&($.fillImgs(),(p=p||y.test(e))&&clearTimeout(b))}function le(){var e=new Date-v;e<m?g=setTimeout(le,m-e):(g=null,h())}function ce(){2===T.width&&($.supSizes=!0),c=$.supSrcset&&!$.supSizes,A=!0,setTimeout(oe)}e.console&&console.warn,R in P||(R="src"),z["image/jpeg"]=!0,z["image/gif"]=!0,z["image/png"]=!0,z["image/svg+xml"]=a.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),$.ns=("pf"+(new Date).getTime()).substr(0,9),$.supSrcset="srcset"in P,$.supSizes="sizes"in P,$.supPicture=!!e.HTMLPictureElement,$.supSrcset&&$.supPicture&&!$.supSizes&&(H=a.createElement("img"),P.srcset="data:,a",H.src="data:,a",$.supSrcset=P.complete===H.complete,$.supPicture=$.supSrcset&&$.supPicture),$.supSrcset&&!$.supSizes?(E="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",(T=a.createElement("img")).onload=ce,T.onerror=ce,T.setAttribute("sizes","9px"),T.srcset=E+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w",T.src=E):A=!0,$.selShort="picture>img,img[srcset]",$.sel=$.selShort,$.cfg=D,$.DPR=X||1,$.u=K,$.types=z,$.setSize=s,$.makeUrl=o(function(e){return Q.href=e,Q.href}),$.qsa=function(e,t){return"querySelector"in e?e.querySelectorAll(t):[]},$.matchesMedia=function(){return e.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?$.matchesMedia=function(e){return!e||matchMedia(e).matches}:$.matchesMedia=$.mMQ,$.matchesMedia.apply(this,arguments)},$.mMQ=function(e){return!e||ae(e)},$.calcLength=function(e){e=ae(e,!0)||!1;return e=e<0?!1:e},$.supportsType=function(e){return!e||z[e]},$.parseSize=o(function(e){e=(e||"").match(q);return{media:e&&e[1],length:e&&e[2]}}),$.parseSet=function(e){return e.cands||(e.cands=t(e.srcset,e)),e.cands},$.getEmValue=function(){var e,t,i,s;return!r&&(e=a.body)&&(t=a.createElement("div"),i=L.style.cssText,s=e.style.cssText,t.style.cssText="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",L.style.cssText=V,e.style.cssText=V,e.appendChild(t),r=t.offsetWidth,e.removeChild(t),r=parseFloat(r,10),L.style.cssText=i,e.style.cssText=s),r||16},$.calcListLength=function(e){var t;return e in G&&!D.uT||(t=$.calcLength(i(e)),G[e]=t||K.width),G[e]},$.setRes=function(e){if(e)for(var t,i=0,s=(t=$.parseSet(e)).length;i<s;i++)_(t[i],e.sizes);return t},$.setRes.res=_,$.applySetCandidate=function(e,t){if(e.length){var i,s,n,a,o,r,l=t[$.ns],c=$.DPR,d=l.curSrc||t[R],u=l.curCan||(y=t,b=d,u=e[0].set,(u=x(b,u=!u&&b?(u=y[$.ns].sets)&&u[u.length-1]:u))&&(b=$.makeUrl(b),y[$.ns].curSrc=b,(y[$.ns].curCan=u).res||_(u,u.set.sizes)),u);if(u&&u.set===e[0].set&&((r=B&&!t.complete&&u.res-.1>c)||(u.cached=!0,u.res>=c&&(o=u))),!o)for(e.sort(w),o=e[(a=e.length)-1],s=0;s<a;s++)if((i=e[s]).res>=c){o=e[n=s-1]&&(r||d!==$.makeUrl(i.url))&&(p=e[n].res,h=i.res,f=c,m=e[n].cached,v=g=void 0,p="saveData"===D.algorithm?2.7<p?f+1:(v=(h-f)*(g=Math.pow(p-.6,1.5)),m&&(v+=.1*g),p+v):1<f?Math.sqrt(p*h):p,f<p)?e[n]:i;break}o&&(u=$.makeUrl(o.url),l.curSrc=u,l.curCan=o,u!==d&&$.setSrc(t,o),$.setSize(t))}var p,h,f,m,g,v,y,b},$.setSrc=function(e,t){e.src=t.url,"image/svg+xml"===t.set.type&&(t=e.style.width,e.style.width=e.offsetWidth+1+"px",e.offsetWidth+1&&(e.style.width=t))},$.getSet=function(e){for(var t,i,s=!1,n=e[$.ns].sets,a=0;a<n.length&&!s;a++)if((t=n[a]).srcset&&$.matchesMedia(t.media)&&(i=$.supportsType(t.type))){s=t="pending"===i?i:t;break}return s},$.parseSets=function(e,t,i){var s,n,a,o,r=t&&"PICTURE"===t.nodeName.toUpperCase(),l=e[$.ns];void 0!==l.src&&!i.src||(l.src=I.call(e,"src"),l.src?M.call(e,N,l.src):O.call(e,N)),void 0!==l.srcset&&!i.srcset&&$.supSrcset&&!e.srcset||(s=I.call(e,"srcset"),l.srcset=s,o=!0),l.sets=[],r&&(l.pic=!0,function(e,t){for(var i,s,n=e.getElementsByTagName("source"),a=0,o=n.length;a<o;a++)(i=n[a])[$.ns]=!0,(s=i.getAttribute("srcset"))&&t.push({srcset:s,media:i.getAttribute("media"),type:i.getAttribute("type"),sizes:i.getAttribute("sizes")})}(t,l.sets)),l.srcset?(n={srcset:l.srcset,sizes:I.call(e,"sizes")},l.sets.push(n),(a=(c||l.src)&&F.test(l.srcset||""))||!l.src||x(l.src,n)||n.has1x||(n.srcset+=", "+l.src,n.cands.push({url:l.src,d:1,set:n}))):l.src&&l.sets.push({srcset:l.src,sizes:null}),l.curCan=null,l.curSrc=void 0,l.supported=!(r||n&&!$.supSrcset||a&&!$.supSizes),o&&$.supSrcset&&!l.supported&&(s?(M.call(e,j,s),e.srcset=""):O.call(e,j)),l.supported&&!l.srcset&&(!l.src&&e.src||e.src!==$.makeUrl(l.src))&&(null===l.src?e.removeAttribute("src"):e.src=l.src),l.parsed=!0},$.fillImg=function(e,t){var i,s=t.reselect||t.reevaluate;e[$.ns]||(e[$.ns]={}),i=e[$.ns],!s&&i.evaled===l||(i.parsed&&!t.reevaluate||$.parseSets(e,e.parentNode,t),i.supported?i.evaled=l:(t=e,i=$.getSet(t),e=!1,"pending"!==i&&(e=l,i&&(i=$.setRes(i),$.applySetCandidate(i,t))),t[$.ns].evaled=e))},$.setupRun=function(){Z&&!U&&X===e.devicePixelRatio||(U=!1,X=e.devicePixelRatio,Y={},G={},$.DPR=X||1,K.width=Math.max(e.innerWidth||0,L.clientWidth),K.height=Math.max(e.innerHeight||0,L.clientHeight),K.vw=K.width/100,K.vh=K.height/100,l=[K.height,K.width,X].join("-"),K.em=$.getEmValue(),K.rem=K.em)},$.supPicture?(oe=s,$.fillImg=s):(y=e.attachEvent?/d$|^c/:/d$|^c|^i/,b=setTimeout(re,a.body?9:99),S=L.clientHeight,n(e,"resize",(h=function(){U=Math.max(e.innerWidth||0,L.clientWidth)!==K.width||L.clientHeight!==S,S=L.clientHeight,U&&$.fillImgs()},m=99,function(){v=new Date,g=g||setTimeout(le,m)})),n(a,"readystatechange",re)),$.picturefill=oe,$.fillImgs=oe,$.teardownRun=s,oe._=$,e.picturefillCFG={pf:$,push:function(e){var t=e.shift();"function"==typeof $[t]?$[t].apply($,e):(D[t]=e[0],Z&&$.fillImgs({reselect:!0}))}};for(;W&&W.length;)e.picturefillCFG.push(W.shift());e.picturefill=oe,"object"==typeof module&&"object"==typeof module.exports?module.exports=oe:"function"==typeof define&&define.amd&&define("picturefill",function(){return oe}),$.supPicture||(z["image/webp"]=(C="image/webp",E="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",(k=new e.Image).onerror=function(){z[C]=!1,oe()},k.onload=function(){z[C]=1===k.width,oe()},k.src=E,"pending"))}(window,document),"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):(e="undefined"!=typeof globalThis?globalThis:e||self).Plyr=t()}(this,function(){"use strict";function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function e(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function t(t,e){var i,s=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)),s}function n(s){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?t(Object(n),!0).forEach(function(e){var t,i;t=s,e=n[i=e],i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(n,e))})}return s}var o={addCSS:!0,thumbWidth:15,watch:!0};function i(e){return null!=e?e.constructor:null}function r(e){return s(e,Element)}function l(e){return s(e,Event)}function c(e){return d(e)||(p(e)||h(e)||f(e))&&!e.length||u(e)&&!Object.keys(e).length}var s=function(e,t){return!!(e&&t&&e instanceof t)},d=function(e){return null==e},u=function(e){return i(e)===Object},p=function(e){return i(e)===String},h=function(e){return Array.isArray(e)},f=function(e){return s(e,NodeList)},m=p,g=h,v=f;var y,b=(Je=[{key:"setup",value:function(i){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=null;if(c(i)||m(i)?e=Array.from(document.querySelectorAll(m(i)?i:'input[type="range"]')):r(i)?e=[i]:v(i)?e=Array.from(i):g(i)&&(e=i.filter(r)),c(e))return null;var s=n({},o,{},t);return m(i)&&s.watch&&new MutationObserver(function(e){Array.from(e).forEach(function(e){Array.from(e.addedNodes).forEach(function(e){var t;r(e)&&function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t=i)&&new w(e,s)})})}).observe(document.body,{childList:!0,subtree:!0}),e.map(function(e){return new w(e,t)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}],e((y=w).prototype,[{key:"init",value:function(){w.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){w.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,i=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(e){t.element[i](e,function(e){return t.set(e)},!1)})}},{key:"get",value:function(e){if(!w.enabled||!l(e))return null;var t=e.target,i=e.changedTouches[0],s=parseFloat(t.getAttribute("min"))||0,n=parseFloat(t.getAttribute("max"))||100,a=parseFloat(t.getAttribute("step"))||1,e=t.getBoundingClientRect(),t=100/e.width*(this.config.thumbWidth/2)/100;return(e=100/e.width*(i.clientX-e.left))<0?e=0:100<e&&(e=100),e<50?e-=(100-2*e)*t:50<e&&(e+=2*(e-50)*t),s+function(e,t){if(t<1){i=(i="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/))?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0;return parseFloat(e.toFixed(i))}var i;return Math.round(e/t)*t}(e/100*(n-s),a)}},{key:"set",value:function(e){var t;w.enabled&&l(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),t=e.target,e="touchend"===e.type?"change":"input",t&&e&&(e=new Event(e,{bubbles:!0}),t.dispatchEvent(e)))}}]),e(y,Je),w);function w(e,t){(function(e){if(!(e instanceof w))throw new TypeError("Cannot call a class as a function")})(this),r(e)?this.element=e:m(e)&&(this.element=document.querySelector(e)),r(this.element)&&c(this.element.rangeTouch)&&(this.config=n({},o,{},t),this.init())}const x=e=>null!=e?e.constructor:null,_=(e,t)=>Boolean(e&&t&&e instanceof t),S=e=>null==e,T=e=>x(e)===Object,C=e=>x(e)===String,E=e=>x(e)===Function,k=e=>Array.isArray(e),$=e=>_(e,NodeList),A=e=>S(e)||(C(e)||k(e)||$(e))&&!e.length||T(e)&&!Object.keys(e).length;var P=S,I=T,M=e=>x(e)===Number&&!Number.isNaN(e),O=C,L=e=>x(e)===Boolean,z=E,D=k,N=$,j=e=>null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument,H=e=>_(e,Event),B=e=>_(e,KeyboardEvent),R=e=>_(e,TextTrack)||!S(e)&&C(e.kind),F=e=>{if(_(e,window.URL))return!0;if(!C(e))return!1;let t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://"+e);try{return!A(new URL(t).hostname)}catch(e){return!1}},q=A;const W=(()=>{const t=document.createElement("span"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i=Object.keys(e).find(e=>void 0!==t.style[e]);return!!O(i)&&e[i]})();function V(e,t){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}},t)}const U={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function Y(e,t){return t.split(".").reduce((e,t)=>e&&e[t],e)}function G(t={},...e){if(!e.length)return t;const i=e.shift();return I(i)?(Object.keys(i).forEach(e=>{I(i[e])?(Object.keys(t).includes(e)||Object.assign(t,{[e]:{}}),G(t[e],i[e])):Object.assign(t,{[e]:i[e]})}),G(t,...e)):t}function X(e,a){e=e.length?e:[e];Array.from(e).reverse().forEach((e,t)=>{const i=0<t?a.cloneNode(!0):a,s=e.parentNode,n=e.nextSibling;i.appendChild(e),n?s.insertBefore(i,n):s.appendChild(i)})}function K(i,e){j(i)&&!q(e)&&Object.entries(e).filter(([,e])=>!P(e)).forEach(([e,t])=>i.setAttribute(e,t))}function Q(e,t,i){const s=document.createElement(e);return I(t)&&K(s,t),O(i)&&(s.innerText=i),s}function Z(e,t,i,s){j(t)&&t.appendChild(Q(e,i,s))}function J(e){N(e)||D(e)?Array.from(e).forEach(J):j(e)&&j(e.parentNode)&&e.parentNode.removeChild(e)}function ee(t){if(j(t)){let e=t.childNodes["length"];for(;0<e;)t.removeChild(t.lastChild),--e}}function te(e,t){return j(t)&&j(t.parentNode)&&j(e)?(t.parentNode.replaceChild(e,t),e):null}function ie(e,t){if(!O(e)||q(e))return{};const o={},r=G({},t);return e.split(",").forEach(e=>{const t=e.trim(),i=t.replace(".",""),s=t.replace(/[[\]]/g,"").split("="),[n]=s,a=1<s.length?s[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":O(r.class)?o.class=r.class+" "+i:o.class=i;break;case"#":o.id=t.replace("#","");break;case"[":o[n]=a}}),G(r,o)}function se(t,i){if(j(t)){let e=i;L(e)||(e=!t.hidden),t.hidden=e}}function ne(t,i,s){if(N(t))return Array.from(t).map(e=>ne(e,i,s));if(j(t)){let e=void 0!==s?s?"add":"remove":"toggle";return t.classList[e](i),t.classList.contains(i)}return!1}function ae(e,t){return j(e)&&e.classList.contains(t)}function oe(e,t){const i=Element["prototype"];return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function re(e){return this.elements.container.querySelectorAll(e)}function le(e){return this.elements.container.querySelector(e)}function ce(e=null,t=!1){j(e)&&(e.focus({preventScroll:!0}),t&&ne(e,this.config.classNames.tabFocus))}const de={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ue={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,t,i){i=U.isIPhone&&i&&ue.playsinline,t=ue[e]||"html5"!==t;return{api:t,ui:t&&ue.rangeInput&&("video"!==e||!U.isIPhone||i)}},pip:!(U.isIPhone||!z(Q("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Q("video").disablePictureInPicture)),airplay:z(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(q(e))return!1;var[t]=e.split("/");let i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(de).includes(i)&&(i+=`; codecs="${de[e]}"`);try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return(e.type="range")===e.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==W,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},pe=(()=>{let e=!1;try{var t=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e})();function he(i,e,s,n=!1,a=!0,o=!1){if(i&&"addEventListener"in i&&!q(e)&&z(s)){const r=e.split(" ");let t=o;pe&&(t={passive:a,capture:o}),r.forEach(e=>{this&&this.eventListeners&&n&&this.eventListeners.push({element:i,type:e,callback:s,options:t}),i[n?"addEventListener":"removeEventListener"](e,s,t)})}}function fe(e,t="",i,s=!0,n=!1){he.call(this,e,t,i,!0,s,n)}function me(e,t="",i,s=!0,n=!1){he.call(this,e,t,i,!1,s,n)}function ge(t,i="",s,n=!0,a=!1){const o=(...e)=>{me(t,i,o,n,a),s.apply(this,e)};he.call(this,t,i,o,!0,n,a)}function ve(e,t="",i=!1,s={}){j(e)&&!q(t)&&(s=new CustomEvent(t,{bubbles:i,detail:{...s,plyr:this}}),e.dispatchEvent(s))}function ye(e){var t;t=e,_(t,Promise)&&E(t.then)&&e.then(null,()=>{})}function be(i){return D(i)?i.filter((e,t)=>i.indexOf(e)===t):i}function we(e,i){return D(e)&&e.length?e.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e):null}function xe(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const _e=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[t,i])=>({...e,[t/i]:[t,i]}),{});function Se(e){return(D(e)||O(e)&&e.includes(":"))&&(D(e)?e:e.split(":")).map(Number).every(M)}function Te(e){if(!D(e)||!e.every(M))return null;const[t,i]=e,s=(e,t)=>0===t?e:s(t,e%t),n=s(t,i);return[t/n,i/n]}function Ce(e){const t=e=>Se(e)?e.split(":").map(Number):null;let i=t(e);if(null===i&&(i=t(this.config.ratio)),null===i&&!q(this.embed)&&D(this.embed.ratio)&&({ratio:i}=this.embed),null===i&&this.isHTML5){const{videoWidth:e,videoHeight:t}=this.media;i=[e,t]}return Te(i)}function Ee(e){if(!this.isVideo)return{};const t=this.elements["wrapper"],i=Ce.call(this,e);if(!D(i))return{};var[s,n]=Te(i),e=100/s*n;if(xe(`aspect-ratio: ${s}/`+n)?t.style.aspectRatio=s+"/"+n:t.style.paddingBottom=e+"%",this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const a=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),i=(a-e)/(a/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${i}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:e,ratio:i}}function ke(e,t,i=.05){var s=e/t,n=we(Object.keys(_e),s);return Math.abs(n-s)<=i?_e[n]:[e,t]}const $e={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{e=e.getAttribute("type");return!!q(e)||ue.mime.call(this,e)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:$e.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(this.isHTML5){const r=this;r.options.speed=r.config.speed.options,q(this.config.ratio)||Ee.call(r),Object.defineProperty(r.media,"quality",{get(){const e=$e.getSources.call(r).find(e=>e.getAttribute("src")===r.source);return e&&Number(e.getAttribute("size"))},set(t){if(r.quality!==t){if(r.config.quality.forced&&z(r.config.quality.onChange))r.config.quality.onChange(t);else{const e=$e.getSources.call(r).find(e=>Number(e.getAttribute("size"))===t);if(!e)return;const{currentTime:i,paused:s,preload:n,readyState:a,playbackRate:o}=r.media;r.media.src=e.getAttribute("src"),"none"===n&&!a||(r.once("loadedmetadata",()=>{r.speed=o,r.currentTime=i,s||ye(r.play())}),r.media.load())}ve.call(r,r.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests(){this.isHTML5&&(J($e.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Ae(e,...i){return q(e)?e:e.toString().replace(/{(\d+)}/g,(e,t)=>i[t].toString())}const Pe=(e="",t="",i="")=>e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString()),Ie=(e="")=>e.toString().replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase());function Me(e){const t=document.createElement("div");return t.appendChild(e),t.innerHTML}const Oe={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Le={get(e="",t={}){if(q(e)||q(t))return"";let i=Y(t.i18n,e);if(q(i))return Object.keys(Oe).includes(e)?Oe[e]:"";t={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(t).forEach(([e,t])=>{i=Pe(i,e,t)}),i}};class ze{constructor(e){a(this,"get",e=>{if(!ze.supported||!this.enabled)return null;var t=window.localStorage.getItem(this.key);if(q(t))return null;t=JSON.parse(t);return O(e)&&e.length?t[e]:t}),a(this,"set",t=>{if(ze.supported&&this.enabled&&I(t)){let e=this.get();q(e)&&(e={}),G(e,t);try{window.localStorage.setItem(this.key,JSON.stringify(e))}catch(t){}}}),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;var e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}function De(e,s="text"){return new Promise((t,i)=>{try{const i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",()=>{if("text"===s)try{t(JSON.parse(i.responseText))}catch(e){t(i.responseText)}else t(i.response)}),i.addEventListener("error",()=>{throw new Error(i.status)}),i.open("GET",e,!0),i.responseType=s,i.send()}catch(e){i(e)}})}function Ne(e,t){if(O(e)){const i=O(t);const s=()=>null!==document.getElementById(t),n=(e,t)=>{e.innerHTML=t,i&&s()||document.body.insertAdjacentElement("afterbegin",e)};if(!i||!s()){const s=ze.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),i&&a.setAttribute("id",t),s){const e=window.localStorage.getItem("cache-"+t);if(null!==e){const t=JSON.parse(e);n(a,t.content)}}De(e).then(e=>{if(!q(e)){if(s)try{window.localStorage.setItem("cache-"+t,JSON.stringify({content:e}))}catch(e){}n(a,e)}}).catch(()=>{})}}}const je=e=>Math.trunc(e/60/60%60,10);function He(e=0,t=!1,i=!1){if(!M(e))return He(void 0,t,i);var s=e=>("0"+e).slice(-2);let n=je(e);var a=Math.trunc(e/60%60,10),o=Math.trunc(e%60,10);return n=t||0<n?n+":":"",(i&&0<e?"-":"")+n+s(a)+":"+s(o)}const Be={getIconUrl(){var e=new URL(this.config.iconUrl,window.location),t=window.location.host||window.top.location.host,t=e.host!==t||U.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=le.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:re.call(this,this.config.selectors.buttons.play),pause:le.call(this,this.config.selectors.buttons.pause),restart:le.call(this,this.config.selectors.buttons.restart),rewind:le.call(this,this.config.selectors.buttons.rewind),fastForward:le.call(this,this.config.selectors.buttons.fastForward),mute:le.call(this,this.config.selectors.buttons.mute),pip:le.call(this,this.config.selectors.buttons.pip),airplay:le.call(this,this.config.selectors.buttons.airplay),settings:le.call(this,this.config.selectors.buttons.settings),captions:le.call(this,this.config.selectors.buttons.captions),fullscreen:le.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=le.call(this,this.config.selectors.progress),this.elements.inputs={seek:le.call(this,this.config.selectors.inputs.seek),volume:le.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:le.call(this,this.config.selectors.display.buffer),currentTime:le.call(this,this.config.selectors.display.currentTime),duration:le.call(this,this.config.selectors.display.duration)},j(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector("."+this.config.classNames.tooltip)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,t){const i="http://www.w3.org/2000/svg",s=Be.getIconUrl.call(this),n=`${s.cors?"":s.url}#`+this.config.iconPrefix,a=document.createElementNS(i,"svg");K(a,G(t,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(i,"use"),r=n+"-"+e;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",r),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),a.appendChild(o),a},createLabel(e,t={}){e=Le.get(e,this.config);return Q("span",{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")},e)},createBadge(e){if(q(e))return null;const t=Q("span",{class:this.config.classNames.menu.value});return t.appendChild(Q("span",{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){const i=G({},t);let s=function(e=""){let t=e.toString();return t=function(e=""){e=e.toString(),e=Pe(e,"-"," ");return e=Pe(e,"_"," "),e=Ie(e),Pe(e," ","")}(t),t.charAt(0).toLowerCase()+t.slice(1)}(e);const n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(e=>{Object.keys(i).includes(e)&&(n[e]=i[e],delete i[e])}),"button"!==n.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some(e=>e===this.config.classNames.control)||G(i,{class:i.class+" "+this.config.classNames.control}):i.class=this.config.classNames.control,e){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":i.class+=` ${this.config.classNames.control}--overlaid`,s="play",n.label="play",n.icon="play";break;default:q(n.label)&&(n.label=s),q(n.icon)&&(n.icon=e)}const a=Q(n.element);return n.toggle?(a.appendChild(Be.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(Be.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(Be.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(Be.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(Be.createIcon.call(this,n.icon)),a.appendChild(Be.createLabel.call(this,n.label))),G(i,ie(this.config.selectors.buttons[s],i)),K(a,i),"play"===s?(D(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(a)):this.elements.buttons[s]=a,a},createRange(e,t){t=Q("input",G(ie(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Le.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=t,Be.updateRangeFill.call(this,t),b.setup(t),t},createProgress(e,t){const i=Q("progress",G(ie(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){i.appendChild(Q("span",null,"0"));const t={played:"played",buffer:"buffered"}[e],s=t?Le.get(t,this.config):"";i.innerText="% "+s.toLowerCase()}return this.elements.display[e]=i,i},createTime(e,t){t=ie(this.config.selectors.display[e],t),t=Q("div",G(t,{class:`${t.class||""} ${this.config.classNames.display.time} `.trim(),"aria-label":Le.get(e,this.config)}),"00:00");return this.elements.display[e]=t},bindMenuItemShortcuts(s,e){fe.call(this,s,"keydown keyup",t=>{if(["Space","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),"keydown"!==t.type)){var i=oe(s,'[role="menuitemradio"]');if(!i&&["Space","ArrowRight"].includes(t.key))Be.showMenuPanel.call(this,e,!0);else{let e;"Space"!==t.key&&("ArrowDown"===t.key||i&&"ArrowRight"===t.key?(e=s.nextElementSibling,j(e)||(e=s.parentNode.firstElementChild)):(e=s.previousElementSibling,j(e)||(e=s.parentNode.lastElementChild)),ce.call(this,e,!0))}}},!1),fe.call(this,s,"keyup",e=>{"Return"===e.key&&Be.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:t,list:e,type:i,title:s,badge:n=null,checked:a=!1}){const o=ie(this.config.selectors.inputs[i]),r=Q("button",G(o,{type:"button",role:"menuitemradio",class:(this.config.classNames.control+" "+(o.class||"")).trim(),"aria-checked":a,value:t})),l=Q("span");l.innerHTML=s,j(n)&&l.appendChild(n),r.appendChild(l),Object.defineProperty(r,"checked",{enumerable:!0,get:()=>"true"===r.getAttribute("aria-checked"),set(e){e&&Array.from(r.parentNode.children).filter(e=>oe(e,'[role="menuitemradio"]')).forEach(e=>e.setAttribute("aria-checked","false")),r.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(r,"click keyup",e=>{if(!B(e)||"Space"===e.key){switch(e.preventDefault(),e.stopPropagation(),r.checked=!0,i){case"language":this.currentTrack=Number(t);break;case"quality":this.quality=t;break;case"speed":this.speed=parseFloat(t)}Be.showMenuPanel.call(this,"home",B(e))}},i,!1),Be.bindMenuItemShortcuts.call(this,r,i),e.appendChild(r)},formatTime(e=0,t=!1){return M(e)?He(e,0<je(this.duration),t):e},updateTimeDisplay(e=null,t=0,i=!1){j(e)&&M(t)&&(e.innerText=Be.formatTime(t,i))},updateVolume(){this.supported.ui&&(j(this.elements.inputs.volume)&&Be.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),j(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(e,t=0){j(e)&&(e.value=t,Be.updateRangeFill.call(this,e))},updateProgress(e){if(this.supported.ui&&H(e)){var t,i,s=(e,t)=>{const i=M(t)?t:0,s=j(e)?e:this.elements.display.buffer;if(j(s)){s.value=i;const e=s.getElementsByTagName("span")[0];j(e)&&(e.childNodes[0].nodeValue=i)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":t=this.currentTime,i=this.duration,i=0===t||0===i||Number.isNaN(t)||Number.isNaN(i)?0:(t/i*100).toFixed(2),"timeupdate"===e.type&&Be.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":s(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill(e){const t=H(e)?e.target:e;if(j(t)&&"range"===t.getAttribute("type")){if(oe(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);const e=Be.formatTime(this.currentTime),i=Be.formatTime(this.duration),s=Le.get("seekLabel",this.config);t.setAttribute("aria-valuetext",s.replace("{currentTime}",e).replace("{duration}",i))}else if(oe(t,this.config.selectors.inputs.volume)){const e=100*t.value;t.setAttribute("aria-valuenow",e),t.setAttribute("aria-valuetext",e.toFixed(1)+"%")}else t.setAttribute("aria-valuenow",t.value);U.isWebkit&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip(t){if(this.config.tooltips.seek&&j(this.elements.inputs.seek)&&j(this.elements.display.seekTooltip)&&0!==this.duration){const n=this.elements.display.seekTooltip,a=this.config.classNames.tooltip+"--visible",o=e=>ne(n,a,e);if(this.touch)o(!1);else{let e=0;var i=this.elements.progress.getBoundingClientRect();if(H(t))e=100/i.width*(t.pageX-i.left);else{if(!ae(n,a))return;e=parseFloat(n.style.left,10)}e<0?e=0:100<e&&(e=100);const r=this.duration/100*e;n.innerText=Be.formatTime(r);var s=null===(i=this.config.markers)||void 0===i||null===(s=i.points)||void 0===s?void 0:s.find(({time:e})=>e===Math.round(r));s&&n.insertAdjacentHTML("afterbegin",s.label+"<br>"),n.style.left=e+"%",H(t)&&["mouseenter","mouseleave"].includes(t.type)&&o("mouseenter"===t.type)}}},timeUpdate(e){var t=!j(this.elements.display.duration)&&this.config.invertTime;Be.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||Be.updateProgress.call(this,e)},durationUpdate(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=2**32)return se(this.elements.display.currentTime,!0),void se(this.elements.progress,!0);j(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=j(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Be.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Be.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&Be.setMarkers.call(this),Be.updateSeekTooltip.call(this)}},toggleMenuButton(e,t){se(this.elements.settings.buttons[e],!t)},updateSetting(e,t,i){const s=this.elements.settings.panels[e];let n=null,a=t;if("captions"===e)n=this.currentTrack;else{if(n=q(i)?this[e]:i,q(n)&&(n=this.config[e].default),!q(this.options[e])&&!this.options[e].includes(n))return void this.debug.warn(`Unsupported value of '${n}' for `+e);if(!this.config[e].options.includes(n))return void this.debug.warn(`Disabled value of '${n}' for `+e)}if(j(a)||(a=s&&s.querySelector('[role="menu"]')),j(a)){this.elements.settings.buttons[e].querySelector("."+this.config.classNames.menu.value).innerHTML=Be.getLabel.call(this,e,n);const o=a&&a.querySelector(`[value="${n}"]`);j(o)&&(o.checked=!0)}},getLabel(e,t){switch(e){case"speed":return 1===t?Le.get("normal",this.config):t+"&times;";case"quality":if(M(t)){const e=Le.get("qualityLabel."+t,this.config);return e.length?e:t+"p"}return Ie(t);case"captions":return qe.getLabel.call(this);default:return null}},setQualityMenu(e){if(j(this.elements.settings.panels.quality)){const t="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');D(e)&&(this.options.quality=be(e).filter(e=>this.config.quality.options.includes(e)));e=!q(this.options.quality)&&1<this.options.quality.length;if(Be.toggleMenuButton.call(this,t,e),ee(i),Be.checkMenu.call(this),e){const s=e=>{e=Le.get("qualityBadge."+e,this.config);return e.length?Be.createBadge.call(this,e):null};this.options.quality.sort((e,t)=>{const i=this.config.quality.options;return i.indexOf(e)>i.indexOf(t)?1:-1}).forEach(e=>{Be.createMenuItem.call(this,{value:e,list:i,type:t,title:Be.getLabel.call(this,"quality",e),badge:s(e)})}),Be.updateSetting.call(this,t,i)}}},setCaptionsMenu(){if(j(this.elements.settings.panels.captions)){const i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),e=qe.getTracks.call(this),t=Boolean(e.length);if(Be.toggleMenuButton.call(this,"captions",t),ee(i),Be.checkMenu.call(this),t){const s=e.map((e,t)=>({value:t,checked:this.captions.toggled&&this.currentTrack===t,title:qe.getLabel.call(this,e),badge:e.language&&Be.createBadge.call(this,e.language.toUpperCase()),list:i,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:Le.get("disabled",this.config),list:i,type:"language"}),s.forEach(Be.createMenuItem.bind(this)),Be.updateSetting.call(this,"captions",i)}}},setSpeedMenu(){if(j(this.elements.settings.panels.speed)){const t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(e=>e>=this.minimumSpeed&&e<=this.maximumSpeed);var e=!q(this.options.speed)&&1<this.options.speed.length;Be.toggleMenuButton.call(this,"speed",e),ee(t),Be.checkMenu.call(this),e&&(this.options.speed.forEach(e=>{Be.createMenuItem.call(this,{value:e,list:t,type:"speed",title:Be.getLabel.call(this,"speed",e)})}),Be.updateSetting.call(this,"speed",t))}},checkMenu(){var e=this.elements.settings["buttons"],e=!q(e)&&Object.values(e).some(e=>!e.hidden);se(this.elements.settings.menu,!e)},focusFirstMenuItem(t,i=!1){if(!this.elements.settings.popup.hidden){let e=t;j(e)||(e=Object.values(this.elements.settings.panels).find(e=>!e.hidden));t=e.querySelector('[role^="menuitem"]');ce.call(this,t,i)}},toggleMenu(t){const i=this.elements.settings["popup"],s=this.elements.buttons.settings;if(j(i)&&j(s)){const n=i["hidden"];let e=n;if(L(t))e=t;else if(B(t)&&"Escape"===t.key)e=!1;else if(H(t)){const n=z(t.composedPath)?t.composedPath()[0]:t.target,a=i.contains(n);if(a||!a&&t.target!==s&&e)return}s.setAttribute("aria-expanded",e),se(i,!e),ne(this.elements.container,this.config.classNames.menu.open,e),e&&B(t)?Be.focusFirstMenuItem.call(this,null,!0):e||n||ce.call(this,s,B(t))}},getMenuSize(e){const t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var i=t.scrollWidth,e=t.scrollHeight;return J(t),{width:i,height:e}},showMenuPanel(e="",t=!1){e=this.elements.container.querySelector(`#plyr-settings-${this.id}-`+e);if(j(e)){const i=e.parentNode,s=Array.from(i.children).find(e=>!e.hidden);if(ue.transitions&&!ue.reducedMotion){i.style.width=s.scrollWidth+"px",i.style.height=s.scrollHeight+"px";const n=Be.getMenuSize.call(this,e),t=e=>{e.target===i&&["width","height"].includes(e.propertyName)&&(i.style.width="",i.style.height="",me.call(this,i,W,t))};fe.call(this,i,W,t),i.style.width=n.width+"px",i.style.height=n.height+"px"}se(s,!0),se(e,!1),Be.focusFirstMenuItem.call(this,e,t)}},setDownloadUrl(){const e=this.elements.buttons.download;j(e)&&e.setAttribute("href",this.download)},create(r){const{bindMenuItemShortcuts:l,createButton:i,createProgress:e,createRange:s,createTime:c,setQualityMenu:t,setSpeedMenu:n,showMenuPanel:d}=Be;this.elements.controls=null,D(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));const a=Q("div",ie(this.config.selectors.controls.wrapper));this.elements.controls=a;const u={class:"plyr__controls__item"};return be(D(this.config.controls)?this.config.controls:[]).forEach(t=>{if("restart"===t&&a.appendChild(i.call(this,"restart",u)),"rewind"===t&&a.appendChild(i.call(this,"rewind",u)),"play"===t&&a.appendChild(i.call(this,"play",u)),"fast-forward"===t&&a.appendChild(i.call(this,"fast-forward",u)),"progress"===t){const l=Q("div",{class:u.class+" plyr__progress__container"}),i=Q("div",ie(this.config.selectors.progress));if(i.appendChild(s.call(this,"seek",{id:"plyr-seek-"+r.id})),i.appendChild(e.call(this,"buffer")),this.config.tooltips.seek){const r=Q("span",{class:this.config.classNames.tooltip},"00:00");i.appendChild(r),this.elements.display.seekTooltip=r}this.elements.progress=i,l.appendChild(this.elements.progress),a.appendChild(l)}if("current-time"===t&&a.appendChild(c.call(this,"currentTime",u)),"duration"===t&&a.appendChild(c.call(this,"duration",u)),"mute"===t||"volume"===t){let e=this.elements["volume"];if(j(e)&&a.contains(e)||(e=Q("div",G({},u,{class:(u.class+" plyr__volume").trim()})),this.elements.volume=e,a.appendChild(e)),"mute"===t&&e.appendChild(i.call(this,"mute")),"volume"===t&&!U.isIos){const i={max:1,step:.05,value:this.config.volume};e.appendChild(s.call(this,"volume",G(i,{id:"plyr-volume-"+r.id})))}}if("captions"===t&&a.appendChild(i.call(this,"captions",u)),"settings"===t&&!q(this.config.settings)){const e=Q("div",G({},u,{class:(u.class+" plyr__menu").trim(),hidden:""}));e.appendChild(i.call(this,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-"+r.id,"aria-expanded":!1}));const s=Q("div",{class:"plyr__menu__container",id:"plyr-settings-"+r.id,hidden:""}),c=Q("div"),t=Q("div",{id:`plyr-settings-${r.id}-home`}),o=Q("div",{role:"menu"});t.appendChild(o),c.appendChild(t),this.elements.settings.panels.home=t,this.config.settings.forEach(e=>{const t=Q("button",G(ie(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));l.call(this,t,e),fe.call(this,t,"click",()=>{d.call(this,e,!1)});const i=Q("span",null,Le.get(e,this.config)),s=Q("span",{class:this.config.classNames.menu.value});s.innerHTML=r[e],i.appendChild(s),t.appendChild(i),o.appendChild(t);const n=Q("div",{id:`plyr-settings-${r.id}-`+e,hidden:""}),a=Q("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});a.appendChild(Q("span",{"aria-hidden":!0},Le.get(e,this.config))),a.appendChild(Q("span",{class:this.config.classNames.hidden},Le.get("menuBack",this.config))),fe.call(this,n,"keydown",e=>{"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),d.call(this,"home",!0))},!1),fe.call(this,a,"click",()=>{d.call(this,"home",!1)}),n.appendChild(a),n.appendChild(Q("div",{role:"menu"})),c.appendChild(n),this.elements.settings.buttons[e]=t,this.elements.settings.panels[e]=n}),s.appendChild(c),e.appendChild(s),a.appendChild(e),this.elements.settings.popup=s,this.elements.settings.menu=e}if("pip"===t&&ue.pip&&a.appendChild(i.call(this,"pip",u)),"airplay"===t&&ue.airplay&&a.appendChild(i.call(this,"airplay",u)),"download"===t){const r=G({},u,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(r.download="");const l=this.config.urls["download"];!F(l)&&this.isEmbed&&G(r,{icon:"logo-"+this.provider,label:this.provider}),a.appendChild(i.call(this,"download",r))}"fullscreen"===t&&a.appendChild(i.call(this,"fullscreen",u))}),this.isHTML5&&t.call(this,$e.getQualityOptions.call(this)),n.call(this),a},inject(){if(this.config.loadSprite){const t=Be.getIconUrl.call(this);t.cors&&Ne(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let t=null;this.elements.controls=null;const e={id:this.id,seektime:this.config.seekTime,title:this.config.title};let i=!0;z(this.config.controls)&&(this.config.controls=this.config.controls.call(this,e)),this.config.controls||(this.config.controls=[]),j(this.config.controls)||O(this.config.controls)?t=this.config.controls:(t=Be.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:qe.getLabel.call(this)}),i=!1);let s;if(i&&O(this.config.controls)&&(t=(()=>{let i=t;return Object.entries(e).forEach(([e,t])=>{i=Pe(i,`{${e}}`,t)}),i})()),O(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),j(s)||(s=this.elements.container),s[j(t)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",t),j(this.elements.controls)||Be.findElements.call(this),!q(this.elements.buttons)){const t=t=>{const i=this.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:()=>ae(t,i),set(e=!1){ne(t,i,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(e=>{D(e)||N(e)?Array.from(e).filter(Boolean).forEach(t):t(e)})}if(U.isEdge&&V(s),this.config.tooltips.controls){const{classNames:t,selectors:e}=this.config,i=`${e.controls.wrapper} ${e.labels} .`+t.hidden,s=re.call(this,i);Array.from(s).forEach(e=>{ne(e,this.config.classNames.hidden,!1),ne(e,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(e){}},setMarkers(){var e,t;if(this.duration&&!this.elements.markers){const i=null===(e=this.config.markers)||void 0===e||null===(t=e.points)||void 0===t?void 0:t.filter(({time:e})=>0<e&&e<this.duration);if(null!=i&&i.length){const n=document.createDocumentFragment(),a=document.createDocumentFragment();let s=null;const o=this.config.classNames.tooltip+"--visible",r=e=>ne(s,o,e);i.forEach(e=>{const t=Q("span",{class:this.config.classNames.marker},""),i=e.time/this.duration*100+"%";s&&(t.addEventListener("mouseenter",()=>{e.label||(s.style.left=i,s.innerHTML=e.label,r(!0))}),t.addEventListener("mouseleave",()=>{r(!1)})),t.addEventListener("click",()=>{this.currentTime=e.time}),t.style.left=i,a.appendChild(t)}),n.appendChild(a),this.config.tooltips.seek||(s=Q("span",{class:this.config.classNames.tooltip},""),n.appendChild(s)),this.elements.markers={points:a,tip:s},this.elements.progress.appendChild(n)}}}};function Re(e,t=!0){let i=e;if(t){const e=document.createElement("a");e.href=i,i=e.href}try{return new URL(i)}catch(e){return null}}function Fe(e){const i=new URLSearchParams;return I(e)&&Object.entries(e).forEach(([e,t])=>{i.set(e,t)}),i}const qe={setup(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!ue.textTracks)D(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Be.setCaptionsMenu.call(this);else{var i;if(j(this.elements.captions)||(this.elements.captions=Q("div",ie(this.config.selectors.captions)),i=this.elements.captions,s=this.elements.wrapper,j(i)&&j(s)&&s.parentNode.insertBefore(i,s.nextSibling)),U.isIE&&window.URL){const i=this.media.querySelectorAll("track");Array.from(i).forEach(t=>{var e=t.getAttribute("src"),i=Re(e);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&De(e,"blob").then(e=>{t.setAttribute("src",window.URL.createObjectURL(e))}).catch(()=>{J(t)})})}var s=be((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(e=>e.split("-")[0]));let e=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===e&&([e]=s);let t=this.storage.get("captions");if(L(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:e,languages:s}),this.isHTML5){const i=this.config.captions.update?"addtrack removetrack":"removetrack";fe.call(this,this.media.textTracks,i,qe.update.bind(this))}setTimeout(qe.update.bind(this),0)}},update(){const e=qe.getTracks.call(this,!0),{active:t,language:i,meta:s,currentTrackNode:n}=this.captions,a=Boolean(e.find(e=>e.language===i));this.isHTML5&&this.isVideo&&e.filter(e=>!s.get(e)).forEach(e=>{this.debug.log("Track added",e),s.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),fe.call(this,e,"cuechange",()=>qe.updateCues.call(this))}),(a&&this.language!==i||!e.includes(n))&&(qe.setLanguage.call(this,i),qe.toggle.call(this,t&&a)),this.elements&&ne(this.elements.container,this.config.classNames.captions.enabled,!q(e)),D(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Be.setCaptionsMenu.call(this)},toggle(e,t=!0){if(this.supported.ui){const i=this.captions["toggled"],s=this.config.classNames.captions.active,n=P(e)?!i:e;if(n!==i){if(t||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!t){const e=qe.getTracks.call(this),t=qe.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=t.language,void qe.set.call(this,e.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),ne(this.elements.container,s,n),this.captions.toggled=n,Be.updateSetting.call(this,"captions"),ve.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout(()=>{n&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})}},set(e,t=!0){var i,s=qe.getTracks.call(this);-1!==e?M(e)?e in s?(this.captions.currentTrack!==e&&(s=((i=s[this.captions.currentTrack=e])||{})["language"],this.captions.currentTrackNode=i,Be.updateSetting.call(this,"captions"),t||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),ve.call(this,this.media,"languagechange")),qe.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&qe.updateCues.call(this)):this.debug.warn("Track not found",e):this.debug.warn("Invalid caption argument",e):qe.toggle.call(this,!1,t)},setLanguage(e,t=!0){if(O(e)){var i=e.toLowerCase();this.captions.language=i;const s=qe.getTracks.call(this),n=qe.findTrack.call(this,[i]);qe.set.call(this,s.indexOf(n),t)}else this.debug.warn("Invalid language argument",e)},getTracks(t=!1){return Array.from((this.media||{}).textTracks||[]).filter(e=>!this.isHTML5||t||this.captions.meta.has(e)).filter(e=>["captions","subtitles"].includes(e.kind))},findTrack(e,t=!1){const i=qe.getTracks.call(this),s=e=>Number((this.captions.meta.get(e)||{}).default),n=Array.from(i).sort((e,t)=>s(t)-s(e));let a;return e.every(t=>(a=n.find(e=>e.language===t),!a)),a||(t?n[0]:void 0)},getCurrentTrack(){return qe.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!R(t)&&ue.textTracks&&this.captions.toggled&&(t=qe.getCurrentTrack.call(this)),R(t)?q(t.label)?q(t.language)?Le.get("enabled",this.config):e.language.toUpperCase():t.label:Le.get("disabled",this.config)},updateCues(t){if(this.supported.ui)if(j(this.elements.captions))if(P(t)||Array.isArray(t)){let e=t;if(!e){const t=qe.getCurrentTrack.call(this);e=Array.from((t||{}).activeCues||[]).map(e=>e.getCueAsHTML()).map(Me)}var i=e.map(e=>e.trim()).join("\n");if(i!==this.elements.captions.innerHTML){ee(this.elements.captions);const t=Q("span",ie(this.config.selectors.caption));t.innerHTML=i,this.elements.captions.appendChild(t),ve.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},We={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.2/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Ve="picture-in-picture",Ue={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Ye=()=>{};class Ge{constructor(e=!1){this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Ye}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Ye}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Ye}}class Xe{constructor(e){a(this,"onChange",()=>{if(this.enabled){const t=this.player.elements.buttons.fullscreen;j(t)&&(t.pressed=this.active);var e=this.target===this.player.media?this.target:this.player.elements.container;ve.call(this.player,e,this.active?"enterfullscreen":"exitfullscreen",!0)}}),a(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",ne(this.target,this.player.config.classNames.fullscreen.fallback,t),U.isIos){let e=document.head.querySelector('meta[name="viewport"]');const s="viewport-fit=cover";e||(e=document.createElement("meta"),e.setAttribute("name","viewport"));var i=O(e.content)&&e.content.includes(s);t?(this.cleanupViewport=!i,i||(e.content+=","+s)):this.cleanupViewport&&(e.content=e.content.split(",").filter(e=>e.trim()!==s).join(","))}this.onChange()}),a(this,"trapFocus",e=>{if(!U.isIos&&this.active&&"Tab"===e.key){const t=document.activeElement,i=re.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[s]=i,n=i[i.length-1];t!==n||e.shiftKey?t===s&&e.shiftKey&&(n.focus(),e.preventDefault()):(s.focus(),e.preventDefault())}}),a(this,"update",()=>{var e;this.enabled?(e=this.forceFallback?"Fallback (forced)":Xe.native?"Native":"Fallback",this.player.debug.log(e+" fullscreen enabled")):this.player.debug.log("Fullscreen not supported and fallback disabled"),ne(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}),a(this,"enter",()=>{this.enabled&&(U.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Xe.native||this.forceFallback?this.toggleFallback(!0):this.prefix?q(this.prefix)||this.target[this.prefix+"Request"+this.property]():this.target.requestFullscreen({navigationUI:"hide"}))}),a(this,"exit",()=>{var e;this.enabled&&(U.isIos&&this.player.config.fullscreen.iosNative?(this.target.webkitExitFullscreen(),ye(this.player.play())):!Xe.native||this.forceFallback?this.toggleFallback(!1):this.prefix?q(this.prefix)||(e="moz"===this.prefix?"Cancel":"Exit",document[this.prefix+e+this.property]()):(document.cancelFullScreen||document.exitFullscreen).call(document))}),a(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=e,this.prefix=Xe.prefix,this.property=Xe.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(e,t){const i=Element["prototype"];return(i.closest||function(){let e=this;do{if(oe.matches(e,t))return e}while(e=e.parentElement||e.parentNode,null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,e.config.fullscreen.container),fe.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":this.prefix+"fullscreenchange",()=>{this.onChange()}),fe.call(this.player,this.player.elements.container,"dblclick",e=>{j(this.player.elements.controls)&&this.player.elements.controls.contains(e.target)||this.player.listeners.proxy(e,this.toggle,"fullscreen")}),fe.call(this,this.player.elements.container,"keydown",e=>this.trapFocus(e)),this.update()}static get native(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get usingNative(){return Xe.native&&!this.forceFallback}static get prefix(){if(z(document.exitFullscreen))return"";let t="";return["webkit","moz","ms"].some(e=>!(!z(document[e+"ExitFullscreen"])&&!z(document[e+"CancelFullScreen"])||(t=e,0))),t}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get enabled(){return(Xe.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}get active(){if(!this.enabled)return!1;if(!Xe.native||this.forceFallback)return ae(this.target,this.player.config.classNames.fullscreen.fallback);var e=this.prefix?this.target.getRootNode()[""+this.prefix+this.property+"Element"]:this.target.getRootNode().fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}get target(){return U.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}function Ke(n,a=1){return new Promise((e,t)=>{const i=new Image,s=()=>{delete i.onload,delete i.onerror,(i.naturalWidth>=a?e:t)(i)};Object.assign(i,{onload:s,onerror:s,src:n})})}const Qe={addStyleHook(){ne(this.elements.container,this.config.selectors.container.replace(".",""),!0),ne(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} `+this.type),void Qe.toggleNativeControls.call(this,!0);j(this.elements.controls)||(Be.inject.call(this),this.listeners.controls()),Qe.toggleNativeControls.call(this),this.isHTML5&&qe.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Be.updateVolume.call(this),Be.timeUpdate.call(this),Be.durationUpdate.call(this),Qe.checkPlaying.call(this),ne(this.elements.container,this.config.classNames.pip.supported,ue.pip&&this.isHTML5&&this.isVideo),ne(this.elements.container,this.config.classNames.airplay.supported,ue.airplay&&this.isHTML5),ne(this.elements.container,this.config.classNames.isIos,U.isIos),ne(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{ve.call(this,this.media,"ready")},0),Qe.setTitle.call(this),this.poster&&Qe.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&Be.durationUpdate.call(this),this.config.mediaMetadata&&Be.setMediaMetadata.call(this)},setTitle(){let t=Le.get("play",this.config);if(O(this.config.title)&&!q(this.config.title)&&(t+=", "+this.config.title),Array.from(this.elements.buttons.play||[]).forEach(e=>{e.setAttribute("aria-label",t)}),this.isEmbed){const t=le.call(this,"iframe");if(j(t)){const e=q(this.config.title)?"video":this.config.title,i=Le.get("frameTitle",this.config);t.setAttribute("title",i.replace("{title}",e))}}},togglePoster(e){ne(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(t,e=!0){return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),function(){return new Promise(e=>this.ready?setTimeout(e,0):fe.call(this,this.elements.container,"ready",e)).then(()=>{})}.call(this).then(()=>Ke(t)).catch(e=>{throw t===this.poster&&Qe.togglePoster.call(this,!1),e}).then(()=>{if(t!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${t}')`,backgroundSize:""}),Qe.togglePoster.call(this,!0),t)))},checkPlaying(e){ne(this.elements.container,this.config.classNames.playing,this.playing),ne(this.elements.container,this.config.classNames.paused,this.paused),ne(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(e=>{Object.assign(e,{pressed:this.playing}),e.setAttribute("aria-label",Le.get(this.playing?"pause":"play",this.config))}),H(e)&&"timeupdate"===e.type||Qe.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{ne(this.elements.container,this.config.classNames.loading,this.loading),Qe.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){var t,i=this.elements["controls"];i&&this.config.hideControls&&(t=this.touch&&this.lastSeekTime+2e3>Date.now(),this.toggleControls(Boolean(e||this.loading||this.paused||i.pressed||i.hover||t)))},migrateStyles(){Object.values({...this.media.style}).filter(e=>!q(e)&&O(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),q(this.media.style)&&this.media.removeAttribute("style")}};class Ze{constructor(e){a(this,"firstTouch",()=>{const e=this["player"],t=e["elements"];e.touch=!0,ne(t.container,e.config.classNames.isTouch,!0)}),a(this,"setTabFocus",e=>{const t=this["player"],i=t["elements"],{key:s,type:n,timeStamp:a}=e;clearTimeout(this.focusTimer),"keydown"===n&&"Tab"!==s||("keydown"===n&&(this.lastKeyDown=a),e=a-this.lastKeyDown<=20,"focus"===n&&!e||(e=t.config.classNames.tabFocus,ne(re.call(t,"."+e),e,!1),"focusout"!==n&&(this.focusTimer=setTimeout(()=>{var e=document.activeElement;i.container.contains(e)&&ne(document.activeElement,t.config.classNames.tabFocus,!0)},10))))}),a(this,"global",(e=!0)=>{var t=this["player"];t.config.keyboard.global&&he.call(t,window,"keydown keyup",this.handleKey,e,!1),he.call(t,document.body,"click",this.toggleMenu,e),ge.call(t,document.body,"touchstart",this.firstTouch),he.call(t,document.body,"keydown focus blur focusout",this.setTabFocus,e,!1,!0)}),a(this,"container",()=>{const r=this["player"],{config:e,elements:l,timers:s}=r;!e.keyboard.global&&e.keyboard.focused&&fe.call(r,l.container,"keydown keyup",this.handleKey,!1),fe.call(r,l.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",e=>{const t=l["controls"];t&&"enterfullscreen"===e.type&&(t.pressed=!1,t.hover=!1);let i=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Qe.toggleControls.call(r,!0),i=r.touch?3e3:2e3),clearTimeout(s.controls),s.controls=setTimeout(()=>Qe.toggleControls.call(r,!1),i)});const i=()=>{if(r.isVimeo&&!r.config.vimeo.premium){const i=l.wrapper,s=r.fullscreen["active"],[n,a]=Ce.call(r),o=xe(`aspect-ratio: ${n} / `+a);var e,t;s?([t,e]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],t=n/a<t/e,o?(i.style.width=t?"auto":"100%",i.style.height=t?"100%":"auto"):(i.style.maxWidth=t?e/a*n+"px":null,i.style.margin=t?"0 auto":null)):o?(i.style.width=null,i.style.height=null):(i.style.maxWidth=null,i.style.margin=null)}},n=()=>{clearTimeout(s.resized),s.resized=setTimeout(i,50)};fe.call(r,l.container,"enterfullscreen exitfullscreen",e=>{var t=r.fullscreen["target"];t===l.container&&(!r.isEmbed&&q(r.config.ratio)||(i(),("enterfullscreen"===e.type?fe:me).call(r,window,"resize",n)))})}),a(this,"media",()=>{const i=this["player"],s=i["elements"];if(fe.call(i,i.media,"timeupdate seeking seeked",e=>Be.timeUpdate.call(i,e)),fe.call(i,i.media,"durationchange loadeddata loadedmetadata",e=>Be.durationUpdate.call(i,e)),fe.call(i,i.media,"ended",()=>{i.isHTML5&&i.isVideo&&i.config.resetOnEnd&&(i.restart(),i.pause())}),fe.call(i,i.media,"progress playing seeking seeked",e=>Be.updateProgress.call(i,e)),fe.call(i,i.media,"volumechange",e=>Be.updateVolume.call(i,e)),fe.call(i,i.media,"playing play pause ended emptied timeupdate",e=>Qe.checkPlaying.call(i,e)),fe.call(i,i.media,"waiting canplay seeked playing",e=>Qe.checkLoading.call(i,e)),i.supported.ui&&i.config.clickToPlay&&!i.isAudio){const t=le.call(i,"."+i.config.classNames.video);if(!j(t))return;fe.call(i,s.container,"click",e=>{([s.container,t].includes(e.target)||t.contains(e.target))&&(i.touch&&i.config.hideControls||(i.ended?(this.proxy(e,i.restart,"restart"),this.proxy(e,()=>{ye(i.play())},"play")):this.proxy(e,()=>{ye(i.togglePlay())},"play")))})}i.supported.ui&&i.config.disableContextMenu&&fe.call(i,s.wrapper,"contextmenu",e=>{e.preventDefault()},!1),fe.call(i,i.media,"volumechange",()=>{i.storage.set({volume:i.volume,muted:i.muted})}),fe.call(i,i.media,"ratechange",()=>{Be.updateSetting.call(i,"speed"),i.storage.set({speed:i.speed})}),fe.call(i,i.media,"qualitychange",e=>{Be.updateSetting.call(i,"quality",null,e.detail.quality)}),fe.call(i,i.media,"ready qualitychange",()=>{Be.setDownloadUrl.call(i)});const t=i.config.events.concat(["keyup","keydown"]).join(" ");fe.call(i,i.media,t,e=>{let{detail:t={}}=e;"error"===e.type&&(t=i.media.error),ve.call(i,s.container,e.type,!0,t)})}),a(this,"proxy",(e,t,i)=>{const s=this["player"],n=s.config.listeners[i];let a=!0;z(n)&&(a=n.call(s,e)),!1!==a&&z(t)&&t.call(s,e)}),a(this,"bind",(e,t,i,s,n=!0)=>{var a=this["player"],o=a.config.listeners[s],o=z(o);fe.call(a,e,t,e=>this.proxy(e,i,s),n&&!o)}),a(this,"controls",()=>{const o=this["player"],s=o["elements"],t=U.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(e=>{this.bind(e,"click",()=>{ye(o.togglePlay())},"play")}),this.bind(s.buttons.restart,"click",o.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{o.lastSeekTime=Date.now(),o.rewind()},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{o.lastSeekTime=Date.now(),o.forward()},"fastForward"),this.bind(s.buttons.mute,"click",()=>{o.muted=!o.muted},"mute"),this.bind(s.buttons.captions,"click",()=>o.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{ve.call(o,o.media,"download")},"download"),this.bind(s.buttons.fullscreen,"click",()=>{o.fullscreen.toggle()},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{o.pip="toggle"},"pip"),this.bind(s.buttons.airplay,"click",o.airplay,"airplay"),this.bind(s.buttons.settings,"click",e=>{e.stopPropagation(),e.preventDefault(),Be.toggleMenu.call(o,e)},null,!1),this.bind(s.buttons.settings,"keyup",e=>{["Space","Enter"].includes(e.key)&&("Enter"!==e.key?(e.preventDefault(),e.stopPropagation(),Be.toggleMenu.call(o,e)):Be.focusFirstMenuItem.call(o,null,!0))},null,!1),this.bind(s.settings.menu,"keydown",e=>{"Escape"===e.key&&Be.toggleMenu.call(o,e)}),this.bind(s.inputs.seek,"mousedown mousemove",e=>{var t=s.progress.getBoundingClientRect(),t=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",t)}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",e=>{const t=e.currentTarget,i="play-on-seeked";var s;B(e)&&!["ArrowLeft","ArrowRight"].includes(e.key)||(o.lastSeekTime=Date.now(),s=t.hasAttribute(i),e=["mouseup","touchend","keyup"].includes(e.type),s&&e?(t.removeAttribute(i),ye(o.play())):!e&&o.playing&&(t.setAttribute(i,""),o.pause()))}),U.isIos){const s=re.call(o,'input[type="range"]');Array.from(s).forEach(e=>this.bind(e,t,e=>V(e.target)))}this.bind(s.inputs.seek,t,e=>{const t=e.currentTarget;let i=t.getAttribute("seek-value");q(i)&&(i=t.value),t.removeAttribute("seek-value"),o.currentTime=i/t.max*o.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",e=>Be.updateSeekTooltip.call(o,e)),this.bind(s.progress,"mousemove touchmove",e=>{const t=o["previewThumbnails"];t&&t.loaded&&t.startMove(e)}),this.bind(s.progress,"mouseleave touchend click",()=>{const e=o["previewThumbnails"];e&&e.loaded&&e.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",e=>{const t=o["previewThumbnails"];t&&t.loaded&&t.startScrubbing(e)}),this.bind(s.progress,"mouseup touchend",e=>{const t=o["previewThumbnails"];t&&t.loaded&&t.endScrubbing(e)}),U.isWebkit&&Array.from(re.call(o,'input[type="range"]')).forEach(e=>{this.bind(e,"input",e=>Be.updateRangeFill.call(o,e.target))}),o.config.toggleInvert&&!j(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{0!==o.currentTime&&(o.config.invertTime=!o.config.invertTime,Be.timeUpdate.call(o))}),this.bind(s.inputs.volume,t,e=>{o.volume=e.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",e=>{s.controls.hover=!o.touch&&"mouseenter"===e.type}),s.fullscreen&&Array.from(s.fullscreen.children).filter(e=>!e.contains(s.container)).forEach(e=>{this.bind(e,"mouseenter mouseleave",e=>{s.controls&&(s.controls.hover=!o.touch&&"mouseenter"===e.type)})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",e=>{s.controls.pressed=["mousedown","touchstart"].includes(e.type)}),this.bind(s.controls,"focusin",()=>{const{config:e,timers:t}=o;ne(s.controls,e.classNames.noTransition,!0),Qe.toggleControls.call(o,!0),setTimeout(()=>{ne(s.controls,e.classNames.noTransition,!1)},0);var i=this.touch?3e3:4e3;clearTimeout(t.controls),t.controls=setTimeout(()=>Qe.toggleControls.call(o,!1),i)}),this.bind(s.inputs.volume,"wheel",e=>{const t=e.webkitDirectionInvertedFromDevice,[i,s]=[e.deltaX,-e.deltaY].map(e=>t?-e:e),n=Math.sign(Math.abs(i)>Math.abs(s)?i:s);o.increaseVolume(n/50);var a=o.media["volume"];(1===n&&a<1||-1===n&&0<a)&&e.preventDefault()},"volume",!1)}),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(e){const t=this["player"],i=t["elements"],{key:s,type:n,altKey:a,ctrlKey:o,metaKey:r,shiftKey:l}=e,c="keydown"===n,d=c&&s===this.lastKey;var u;if(!(a||o||r||l)&&s)if(c){const n=document.activeElement;if(j(n)){const s=t.config.selectors["editable"],a=i.inputs["seek"];if(n!==a&&oe(n,s))return;if("Space"===e.key&&oe(n,'button, [role^="menuitem"]'))return}switch(["Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(e.preventDefault(),e.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d||(u=parseInt(s,10),t.currentTime=t.duration/10*u);break;case"Space":case"k":d||ye(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":d||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":d||t.toggleCaptions();break;case"l":t.loop=!t.loop}"Escape"===s&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null}toggleMenu(e){Be.toggleMenu.call(this.player,e)}}var Je,et=(0,function(){var h=function(){},o={},l={},c={};function r(e,t){if(e){var i=c[e];if(l[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function d(e,t){e.call&&(e={success:e}),t.length?(e.error||h)(t):(e.success||h)(e)}function u(e,s,t){for(var n=(e=e.push?e:[e]).length,i=n,a=[],o=function(e,t,i){if("e"==t&&a.push(e),"b"==t){if(!i)return;a.push(e)}--n||s(a)},r=0;r<i;r++)!function i(s,n,a,o){var r,l,e=document,t=a.async,c=(a.numRetries||0)+1,d=a.before||h,u=s.replace(/[\?|#].*$/,""),p=s.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(u)?((l=e.createElement("link")).rel="stylesheet",l.href=p,(r="hideFocus"in l)&&l.relList&&(r=0,l.rel="preload",l.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(u)?(l=e.createElement("img")).src=p:((l=e.createElement("script")).src=s,l.async=void 0===t||t),l.onload=l.onerror=l.onbeforeload=function(e){var t=e.type[0];if(r)try{l.sheet.cssText.length||(t="e")}catch(e){18!=e.code&&(t="e")}if("e"==t){if((o+=1)<c)return i(s,n,a,o)}else if("preload"==l.rel&&"style"==l.as)return l.rel="stylesheet";n(s,t,e.defaultPrevented)},!1!==d(s,l)&&e.head.appendChild(l)}(e[r],o,t)}function i(e,t,i){var s,n;if(t&&t.trim&&(s=t),n=(s?i:t)||{},s){if(s in o)throw"LoadJS";o[s]=!0}function a(t,i){u(e,function(e){d(n,e),t&&d({success:t,error:i},e),r(s,e)},n)}if(n.returnPromise)return new Promise(a);a()}return i.ready=function(e,t){return function(e,i){e=e.push?e:[e];for(var t,s,n=[],a=e.length,o=a,r=function(e,t){t.length&&n.push(e),--o||i(n)};a--;)t=e[a],(s=l[t])?r(t,s):(c[t]=c[t]||[]).push(r)}(e,function(e){d(t,e)}),i},i.done=function(e){r(e,[])},i.reset=function(){o={},l={},c={}},i.isDefined=function(e){return e in o},i}());function tt(i){return new Promise((e,t)=>{et(i,{success:e,error:t})})}function it(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,ve.call(this,this.media,e?"play":"pause"))}const st={setup(){const t=this;ne(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,Ee.call(t),I(window.Vimeo)?st.ready.call(t):tt(t.config.urls.vimeo.sdk).then(()=>{st.ready.call(t)}).catch(e=>{t.debug.warn("Vimeo SDK (player.js) failed to load",e)})},ready(){const o=this,e=o.config.vimeo,{premium:t,referrerPolicy:i,...s}=e;let n=o.media.getAttribute("src"),a="";a=q(n)?(n=o.media.getAttribute(o.config.attributes.embed.id),o.media.getAttribute(o.config.attributes.embed.hash)):(l=n.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/))&&5===l.length?l[4]:null;var r=a?{h:a}:{};t&&Object.assign(s,{controls:!1,sidedock:!1});var l=Fe({loop:o.config.loop.active,autoplay:o.autoplay,muted:o.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative,...r,...s}),r=q(r=n)?null:!M(Number(r))&&r.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:r;const c=Q("iframe"),d=Ae(o.config.urls.vimeo.iframe,r,l);if(c.setAttribute("src",d),c.setAttribute("allowfullscreen",""),c.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),q(i)||c.setAttribute("referrerPolicy",i),t||!e.customControls)c.setAttribute("data-poster",o.poster),o.media=te(c,o.media);else{const e=Q("div",{class:o.config.classNames.embedContainer,"data-poster":o.poster});e.appendChild(c),o.media=te(e,o.media)}e.customControls||De(Ae(o.config.urls.vimeo.api,d)).then(e=>{!q(e)&&e.thumbnail_url&&Qe.setPoster.call(o,e.thumbnail_url).catch(()=>{})}),o.embed=new window.Vimeo.Player(c,{autopause:o.config.autopause,muted:o.muted}),o.media.paused=!0,o.media.currentTime=0,o.supported.ui&&o.embed.disableTextTrack(),o.media.play=()=>(it.call(o,!0),o.embed.play()),o.media.pause=()=>(it.call(o,!1),o.embed.pause()),o.media.stop=()=>{o.pause(),o.currentTime=0};let u=o.media["currentTime"];Object.defineProperty(o.media,"currentTime",{get:()=>u,set(e){const{embed:t,media:i,paused:s,volume:n}=o,a=s&&!t.hasPlayed;i.seeking=!0,ve.call(o,i,"seeking"),Promise.resolve(a&&t.setVolume(0)).then(()=>t.setCurrentTime(e)).then(()=>a&&t.pause()).then(()=>a&&t.setVolume(n)).catch(()=>{})}});let p=o.config.speed.selected;Object.defineProperty(o.media,"playbackRate",{get:()=>p,set(e){o.embed.setPlaybackRate(e).then(()=>{p=e,ve.call(o,o.media,"ratechange")}).catch(()=>{o.options.speed=[1]})}});let h=o.config["volume"];Object.defineProperty(o.media,"volume",{get:()=>h,set(e){o.embed.setVolume(e).then(()=>{h=e,ve.call(o,o.media,"volumechange")})}});let f=o.config["muted"];Object.defineProperty(o.media,"muted",{get:()=>f,set(e){const t=!!L(e)&&e;o.embed.setVolume(t?0:o.config.volume).then(()=>{f=t,ve.call(o,o.media,"volumechange")})}});let m,g=o.config["loop"];Object.defineProperty(o.media,"loop",{get:()=>g,set(e){const t=L(e)?e:o.config.loop.active;o.embed.setLoop(t).then(()=>{g=t})}}),o.embed.getVideoUrl().then(e=>{m=e,Be.setDownloadUrl.call(o)}).catch(e=>{this.debug.warn(e)}),Object.defineProperty(o.media,"currentSrc",{get:()=>m}),Object.defineProperty(o.media,"ended",{get:()=>o.currentTime===o.duration}),Promise.all([o.embed.getVideoWidth(),o.embed.getVideoHeight()]).then(e=>{var[t,e]=e;o.embed.ratio=ke(t,e),Ee.call(this)}),o.embed.setAutopause(o.config.autopause).then(e=>{o.config.autopause=e}),o.embed.getVideoTitle().then(e=>{o.config.title=e,Qe.setTitle.call(this)}),o.embed.getCurrentTime().then(e=>{u=e,ve.call(o,o.media,"timeupdate")}),o.embed.getDuration().then(e=>{o.media.duration=e,ve.call(o,o.media,"durationchange")}),o.embed.getTextTracks().then(e=>{o.media.textTracks=e,qe.setup.call(o)}),o.embed.on("cuechange",({cues:e=[]})=>{e=e.map(e=>function(e){const t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=e,t.firstChild.innerText}(e.text));qe.updateCues.call(o,e)}),o.embed.on("loaded",()=>{o.embed.getPaused().then(e=>{it.call(o,!e),e||ve.call(o,o.media,"playing")}),j(o.embed.element)&&o.supported.ui&&o.embed.element.setAttribute("tabindex",-1)}),o.embed.on("bufferstart",()=>{ve.call(o,o.media,"waiting")}),o.embed.on("bufferend",()=>{ve.call(o,o.media,"playing")}),o.embed.on("play",()=>{it.call(o,!0),ve.call(o,o.media,"playing")}),o.embed.on("pause",()=>{it.call(o,!1)}),o.embed.on("timeupdate",e=>{o.media.seeking=!1,u=e.seconds,ve.call(o,o.media,"timeupdate")}),o.embed.on("progress",e=>{o.media.buffered=e.percent,ve.call(o,o.media,"progress"),1===parseInt(e.percent,10)&&ve.call(o,o.media,"canplaythrough"),o.embed.getDuration().then(e=>{e!==o.media.duration&&(o.media.duration=e,ve.call(o,o.media,"durationchange"))})}),o.embed.on("seeked",()=>{o.media.seeking=!1,ve.call(o,o.media,"seeked")}),o.embed.on("ended",()=>{o.media.paused=!0,ve.call(o,o.media,"ended")}),o.embed.on("error",e=>{o.media.error=e,ve.call(o,o.media,"error")}),e.customControls&&setTimeout(()=>Qe.build.call(o),0)}};function nt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,ve.call(this,this.media,e?"play":"pause"))}const at={setup(){if(ne(this.elements.wrapper,this.config.classNames.embed,!0),I(window.YT)&&z(window.YT.Player))at.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{z(e)&&e(),at.ready.call(this)},tt(this.config.urls.youtube.sdk).catch(e=>{this.debug.warn("YouTube API failed to load",e)})}},getTitle(e){De(Ae(this.config.urls.youtube.api,e)).then(e=>{var t,i;I(e)&&({title:t,height:i,width:e}=e,this.config.title=t,Qe.setTitle.call(this),this.embed.ratio=ke(e,i)),Ee.call(this)}).catch(()=>{Ee.call(this)})},ready(){const a=this,o=a.config.youtube,e=a.media&&a.media.getAttribute("id");if(q(e)||!e.startsWith("youtube-")){let e=a.media.getAttribute("src");q(e)&&(e=a.media.getAttribute(this.config.attributes.embed.id));const r=q(t=e)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t;var t=Q("div",{id:a.provider+"-"+Math.floor(1e4*Math.random()),"data-poster":o.customControls?a.poster:void 0});if(a.media=te(t,a.media),o.customControls){const o=e=>`https://i.ytimg.com/vi/${r}/${e}default.jpg`;Ke(o("maxres"),121).catch(()=>Ke(o("sd"),121)).catch(()=>Ke(o("hq"))).then(e=>Qe.setPoster.call(a,e.src)).then(e=>{e.includes("maxres")||(a.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}a.embed=new window.YT.Player(a.media,{videoId:r,host:o.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0,playerVars:G({},{autoplay:a.config.autoplay?1:0,hl:a.config.hl,controls:a.supported.ui&&o.customControls?0:1,disablekb:1,playsinline:a.config.fullscreen.iosNative?0:1,cc_load_policy:a.captions.active?1:0,cc_lang_pref:a.config.captions.language,widget_referrer:window?window.location.href:null},o),events:{onError(e){var t;a.media.error||(e={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[t=e.data]||"An unknown error occured",a.media.error={code:t,message:e},ve.call(a,a.media,"error"))},onPlaybackRateChange(e){const t=e.target;a.media.playbackRate=t.getPlaybackRate(),ve.call(a,a.media,"ratechange")},onReady(e){if(!z(a.media.play)){const s=e.target;at.getTitle.call(a,r),a.media.play=()=>{nt.call(a,!0),s.playVideo()},a.media.pause=()=>{nt.call(a,!1),s.pauseVideo()},a.media.stop=()=>{s.stopVideo()},a.media.duration=s.getDuration(),a.media.paused=!0,a.media.currentTime=0,Object.defineProperty(a.media,"currentTime",{get:()=>Number(s.getCurrentTime()),set(e){a.paused&&!a.embed.hasPlayed&&a.embed.mute(),a.media.seeking=!0,ve.call(a,a.media,"seeking"),s.seekTo(e)}}),Object.defineProperty(a.media,"playbackRate",{get:()=>s.getPlaybackRate(),set(e){s.setPlaybackRate(e)}});let t=a.config["volume"];Object.defineProperty(a.media,"volume",{get:()=>t,set(e){t=e,s.setVolume(100*t),ve.call(a,a.media,"volumechange")}});let i=a.config["muted"];Object.defineProperty(a.media,"muted",{get:()=>i,set(e){e=L(e)?e:i;i=e,s[e?"mute":"unMute"](),s.setVolume(100*t),ve.call(a,a.media,"volumechange")}}),Object.defineProperty(a.media,"currentSrc",{get:()=>s.getVideoUrl()}),Object.defineProperty(a.media,"ended",{get:()=>a.currentTime===a.duration});const n=s.getAvailablePlaybackRates();a.options.speed=n.filter(e=>a.config.speed.options.includes(e)),a.supported.ui&&o.customControls&&a.media.setAttribute("tabindex",-1),ve.call(a,a.media,"timeupdate"),ve.call(a,a.media,"durationchange"),clearInterval(a.timers.buffering),a.timers.buffering=setInterval(()=>{a.media.buffered=s.getVideoLoadedFraction(),(null===a.media.lastBuffered||a.media.lastBuffered<a.media.buffered)&&ve.call(a,a.media,"progress"),a.media.lastBuffered=a.media.buffered,1===a.media.buffered&&(clearInterval(a.timers.buffering),ve.call(a,a.media,"canplaythrough"))},200),o.customControls&&setTimeout(()=>Qe.build.call(a),50)}},onStateChange(e){const t=e.target;switch(clearInterval(a.timers.playing),a.media.seeking&&[1,2].includes(e.data)&&(a.media.seeking=!1,ve.call(a,a.media,"seeked")),e.data){case-1:ve.call(a,a.media,"timeupdate"),a.media.buffered=t.getVideoLoadedFraction(),ve.call(a,a.media,"progress");break;case 0:nt.call(a,!1),a.media.loop?(t.stopVideo(),t.playVideo()):ve.call(a,a.media,"ended");break;case 1:o.customControls&&!a.config.autoplay&&a.media.paused&&!a.embed.hasPlayed?a.media.pause():(nt.call(a,!0),ve.call(a,a.media,"playing"),a.timers.playing=setInterval(()=>{ve.call(a,a.media,"timeupdate")},50),a.media.duration!==t.getDuration()&&(a.media.duration=t.getDuration(),ve.call(a,a.media,"durationchange")));break;case 2:a.muted||a.embed.unMute(),nt.call(a,!1);break;case 3:ve.call(a,a.media,"waiting")}ve.call(a,a.elements.container,"statechange",!1,{code:e.data})}}})}}},ot={setup(){this.media?(ne(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),ne(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&ne(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Q("div",{class:this.config.classNames.video}),X(this.media,this.elements.wrapper),this.elements.poster=Q("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?$e.setup.call(this):this.isYouTube?at.setup.call(this):this.isVimeo&&st.setup.call(this)):this.debug.warn("No media element found!")}};class rt{constructor(e){a(this,"load",()=>{this.enabled&&(I(window.google)&&I(window.google.ima)?this.ready():tt(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),a(this,"ready",()=>{this.enabled||(this.manager&&this.manager.destroy(),this.elements.displayContainer&&this.elements.displayContainer.destroy(),this.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),a(this,"setupIMA",()=>{this.elements.container=Q("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,e=>this.onAdsManagerLoaded(e),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e),!1),this.requestAds()}),a(this,"requestAds",()=>{var e=this.player.elements["container"];try{const t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}}),a(this,"pollCountdown",(e=!1)=>e?void(this.countdownTimer=setInterval(()=>{var e=He(Math.max(this.manager.getRemainingTime(),0)),e=Le.get("advertisement",this.player.config)+" - "+e;this.elements.container.setAttribute("data-badge-text",e)},100)):(clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text"))),a(this,"onAdsManagerLoaded",e=>{if(this.enabled){const t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e)),Object.keys(google.ima.AdEvent.Type).forEach(e=>{this.manager.addEventListener(google.ima.AdEvent.Type[e],e=>this.onAdEvent(e))}),this.trigger("loaded")}}),a(this,"addCuePoints",()=>{q(this.cuePoints)||this.cuePoints.forEach(e=>{if(0!==e&&-1!==e&&e<this.player.duration){const t=this.player.elements.progress;if(j(t)){const i=100/this.player.duration*e,s=Q("span",{class:this.player.config.classNames.cues});s.style.left=i.toString()+"%",t.appendChild(s)}}})}),a(this,"onAdEvent",e=>{const t=this.player.elements["container"],i=e.getAd(),s=e.getAdData();switch(n=e.type,ve.call(this.player,this.player.media,"ads"+n.replace(/_/g,"").toLowerCase()),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),i.isLinear()||(i.width=t.offsetWidth,i.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:s.adError&&this.player.debug.warn("Non-fatal ad error: "+s.adError.getMessage())}var n}),a(this,"onAdError",e=>{this.cancel(),this.player.debug.warn("Ads error",e)}),a(this,"listeners",()=>{const e=this.player.elements["container"];let s;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{s=this.player.currentTime}),this.player.on("seeked",()=>{const i=this.player.currentTime;q(this.cuePoints)||this.cuePoints.forEach((e,t)=>{s<e&&e<i&&(this.manager.discardAdBreak(),this.cuePoints.splice(t,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)})}),a(this,"play",()=>{const e=this.player.elements["container"];this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(e){this.onAdError(e)}}).catch(()=>{})}),a(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,ye(this.player.media.play())}),a(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),a(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),a(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(e=>{this.on("loaded",e),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),a(this,"trigger",(e,...t)=>{const i=this.events[e];D(i)&&i.forEach(e=>{z(e)&&e.apply(this,t)})}),a(this,"on",(e,t)=>(D(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this)),a(this,"startSafetyTimer",(e,t)=>{this.player.debug.log("Safety timer invoked from: "+t),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},e)}),a(this,"clearSafetyTimer",e=>{P(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: "+e),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((e,t)=>{this.on("loaded",e),this.on("error",t)}),this.load()}get enabled(){var e=this["config"];return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!q(e.publisherId)||F(e.tagUrl))}get tagUrl(){var e=this["config"];return F(e.tagUrl)?e.tagUrl:"https://go.aniview.com/api/adserver6/vast/?"+Fe({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId})}}function lt(e=0,t=0,i=255){return Math.min(Math.max(e,t),i)}const ct=(e,t)=>{const i={};return e>t.width/t.height?(i.width=t.width,i.height=1/e*t.width):(i.height=t.height,i.width=e*t.height),i};class dt{constructor(e){a(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.loaded=!0)})}),a(this,"getThumbnails",()=>new Promise(e=>{const t=this.player.config.previewThumbnails["src"];if(q(t))throw new Error("Missing previewThumbnails.src config attribute");const i=()=>{this.thumbnails.sort((e,t)=>e.height-t.height),this.player.debug.log("Preview thumbnails",this.thumbnails),e()};if(z(t))t(e=>{this.thumbnails=e,i()});else{const e=(O(t)?[t]:t).map(e=>this.getThumbnail(e));Promise.all(e).then(i)}})),a(this,"getThumbnail",n=>new Promise(s=>{De(n).then(e=>{const t={frames:(e=>{const t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(e=>{const i={};e.split(/\r\n|\n|\r/).forEach(e=>{if(M(i.startTime)){if(!q(e.trim())&&q(i.text)){const t=e.trim().split("#xywh=");[i.text]=t,t[1]&&([i.x,i.y,i.w,i.h]=t[1].split(","))}}else{e=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);e&&(i.startTime=60*Number(e[1]||0)*60+60*Number(e[2])+Number(e[3])+Number("0."+e[4]),i.endTime=60*Number(e[6]||0)*60+60*Number(e[7])+Number(e[8])+Number("0."+e[9]))}}),i.text&&t.push(i)}),t})(e),height:null,urlPrefix:""};t.frames[0].text.startsWith("/")||t.frames[0].text.startsWith("http://")||t.frames[0].text.startsWith("https://")||(t.urlPrefix=n.substring(0,n.lastIndexOf("/")+1));const i=new Image;i.onload=()=>{t.height=i.naturalHeight,t.width=i.naturalWidth,this.thumbnails.push(t),s()},i.src=t.urlPrefix+t.frames[0].text})})),a(this,"startMove",e=>{var t,i;this.loaded&&H(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration&&("touchmove"===e.type?this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100):(t=100/(t=this.player.elements.progress.getBoundingClientRect()).width*(e.pageX-t.left),this.seekTime=this.player.media.duration*(t/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=He(this.seekTime),(i=null===(e=this.player.config.markers)||void 0===e||null===(i=e.points)||void 0===i?void 0:i.find(({time:e})=>e===Math.round(this.seekTime)))&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",i.label+"<br>")),this.showImageAtCurrentTime())}),a(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),a(this,"startScrubbing",e=>{!P(e.button)&&!1!==e.button&&0!==e.button||(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),a(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):ge.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),a(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),a(this,"render",()=>{this.elements.thumb.container=Q("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=Q("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const e=Q("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=Q("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(e),j(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=Q("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),a(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),a(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const i=this.thumbnails[0].frames.findIndex(e=>this.seekTime>=e.startTime&&this.seekTime<=e.endTime),e=0<=i;let s=0;this.mouseDown||this.toggleThumbContainer(e),e&&(this.thumbnails.forEach((e,t)=>{this.loadedImages.includes(e.frames[i].text)&&(s=t)}),i!==this.showingThumb&&(this.showingThumb=i,this.loadImage(s)))}),a(this,"loadImage",(e=0)=>{const t=this.showingThumb,i=this.thumbnails[e],s=i["urlPrefix"],n=i.frames[t],a=i.frames[t].text,o=s+a;if(this.currentImageElement&&this.currentImageElement.dataset.filename===a)this.showImage(this.currentImageElement,n,e,t,a,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const i=new Image;i.src=o,i.dataset.index=t,i.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log("Loading image: "+o),i.onload=()=>this.showImage(i,n,e,t,a,!0),this.loadingImage=i,this.removeOldImages(i)}}),a(this,"showImage",(e,t,i,s,n,a=!0)=>{this.player.debug.log(`Showing thumb: ${n}. num: ${s}. qual: ${i}. newimg: `+a),this.setImageSizeAndOffset(e,t),a&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(n)||this.loadedImages.push(n)),this.preloadNearby(s,!0).then(this.preloadNearby(s,!1)).then(this.getHigherQuality(i,e,t,n))}),a(this,"removeOldImages",i=>{Array.from(this.currentImageContainer.children).forEach(e=>{if("img"===e.tagName.toLowerCase()){var t=this.usingSprites?500:1e3;if(e.dataset.index!==i.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;const i=this["currentImageContainer"];setTimeout(()=>{i.removeChild(e),this.player.debug.log("Removing thumb: "+e.dataset.filename)},t)}}})}),a(this,"preloadNearby",(t,i=!0)=>new Promise(a=>{setTimeout(()=>{const n=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===n){let e;e=i?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let s=!1;e.forEach(e=>{const t=e.text;if(t!==n&&!this.loadedImages.includes(t)){s=!0,this.player.debug.log("Preloading thumb filename: "+t);const e=this.thumbnails[0]["urlPrefix"],n=e+t,i=new Image;i.src=n,i.onload=()=>{this.player.debug.log("Preloaded thumb filename: "+t),this.loadedImages.includes(t)||this.loadedImages.push(t),a()}}}),s||a()}},300)})),a(this,"getHigherQuality",(t,i,s,n)=>{if(t<this.thumbnails.length-1){let e=i.naturalHeight;this.usingSprites&&(e=s.h),e<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===n&&(this.player.debug.log("Showing higher quality thumb for: "+n),this.loadImage(t+1))},300)}}),a(this,"toggleThumbContainer",(e=!1,t=!1)=>{var i=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(i,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}),a(this,"toggleScrubbingContainer",(e=!1)=>{var t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}),a(this,"determineContainerAutoSizing",()=>{(20<this.elements.thumb.imageContainer.clientHeight||20<this.elements.thumb.imageContainer.clientWidth)&&(this.sizeSpecifiedInCSS=!0)}),a(this,"setThumbContainerSizeAndPos",()=>{const e=this.elements.thumb["imageContainer"];var t,i;this.sizeSpecifiedInCSS?20<e.clientHeight&&e.clientWidth<20?(t=Math.floor(e.clientHeight*this.thumbAspectRatio),e.style.width=t+"px"):e.clientHeight<20&&20<e.clientWidth&&(i=Math.floor(e.clientWidth/this.thumbAspectRatio),e.style.height=i+"px"):(i=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio),e.style.height=this.thumbContainerHeight+"px",e.style.width=i+"px"),this.setThumbContainerPos()}),a(this,"setThumbContainerPos",()=>{const e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),i=this.elements.thumb["container"],s=t.left-e.left+10,n=t.right-e.left-i.clientWidth-10,a=this.mousePosX-e.left-i.clientWidth/2,o=lt(a,s,n);i.style.left=o+"px",i.style.setProperty("--preview-arrow-offset",a-o+"px")}),a(this,"setScrubbingContainerSize",()=>{var{width:e,height:t}=ct(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=e+"px",this.elements.scrubbing.container.style.height=t+"px"}),a(this,"setImageSizeAndOffset",(e,t)=>{var i;this.usingSprites&&(i=this.thumbContainerHeight/t.h,e.style.height=e.naturalHeight*i+"px",e.style.width=e.naturalWidth*i+"px",e.style.left=`-${t.x*i}px`,e.style.top=`-${t.y*i}px`)}),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){var e=ct(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight})["height"];return e}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}const ut={insertElements(t,e){O(e)?Z(t,this.media,{src:e}):D(e)&&e.forEach(e=>{Z(t,this.media,e)})},change(a){Y(a,"sources.length")?($e.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],J(this.media),this.media=null,j(this.elements.container)&&this.elements.container.removeAttribute("class");var{sources:e,type:t}=a,[{provider:i=Ue.html5,src:s}]=e,n="html5"===i?t:"div",s="html5"===i?{}:{src:s};Object.assign(this,{provider:i,type:t,supported:ue.check(t,i,this.config.playsinline),media:Q(n,s)}),this.elements.container.appendChild(this.media),L(a.autoplay)&&(this.config.autoplay=a.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),q(a.poster)||(this.poster=a.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),Qe.addStyleHook.call(this),this.isHTML5&&ut.insertElements.call(this,"source",e),this.config.title=a.title,ot.setup.call(this),this.isHTML5&&Object.keys(a).includes("tracks")&&ut.insertElements.call(this,"track",a.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Qe.build.call(this),this.isHTML5&&this.media.load(),q(a.previewThumbnails)||(Object.assign(this.config.previewThumbnails,a.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new dt(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class pt{constructor(e,t){if(a(this,"play",()=>z(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>ye(this.media.play())),this.media.play()):null),a(this,"pause",()=>this.playing&&z(this.media.pause)?this.media.pause():null),a(this,"togglePlay",e=>(L(e)?e:!this.playing)?this.play():this.pause()),a(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):z(this.media.stop)&&this.media.stop()}),a(this,"restart",()=>{this.currentTime=0}),a(this,"rewind",e=>{this.currentTime-=M(e)?e:this.config.seekTime}),a(this,"forward",e=>{this.currentTime+=M(e)?e:this.config.seekTime}),a(this,"increaseVolume",e=>{var t=this.media.muted?0:this.volume;this.volume=t+(M(e)?e:0)}),a(this,"decreaseVolume",e=>{this.increaseVolume(-e)}),a(this,"airplay",()=>{ue.airplay&&this.media.webkitShowPlaybackTargetPicker()}),a(this,"toggleControls",e=>{if(!this.supported.ui||this.isAudio)return!1;var t=ae(this.elements.container,this.config.classNames.hideControls),e=ne(this.elements.container,this.config.classNames.hideControls,void 0===e?void 0:!e);if(e&&D(this.config.controls)&&this.config.controls.includes("settings")&&!q(this.config.settings)&&Be.toggleMenu.call(this,!1),e!==t){const i=e?"controlshidden":"controlsshown";ve.call(this,this.media,i)}return!e}),a(this,"on",(e,t)=>{fe.call(this,this.elements.container,e,t)}),a(this,"once",(e,t)=>{ge.call(this,this.elements.container,e,t)}),a(this,"off",(e,t)=>{me(this.elements.container,e,t)}),a(this,"destroy",(e,t=!1)=>{var i;this.ready&&(i=()=>{document.body.style.overflow="",this.embed=null,t?(Object.keys(this.elements).length&&(J(this.elements.buttons.play),J(this.elements.captions),J(this.elements.controls),J(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),z(e)&&e()):(function(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:t,type:i,callback:s,options:n}=e;t.removeEventListener(i,s,n)}),this.eventListeners=[])}.call(this),$e.cancelRequests.call(this),te(this.elements.original,this.elements.container),ve.call(this,this.elements.original,"destroyed",!0),z(e)&&e.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))},this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(Qe.toggleNativeControls.call(this,!0),i()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&z(this.embed.destroy)&&this.embed.destroy(),i()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(i),setTimeout(i,200)))}),a(this,"supports",e=>ue.mime.call(this,e)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ue.touch,this.media=e,O(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||N(this.media)||D(this.media))&&(this.media=this.media[0]),this.config=G({},We,pt.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch(e){return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Ge(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ue),!P(this.media)&&j(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(ue.check().api){const n=this.media.cloneNode(!0);n.autoplay=!1,this.elements.original=n;var i,s=this.media.tagName.toLowerCase();let e=null,t=null;switch(s){case"div":if(e=this.media.querySelector("iframe"),j(e)){if(t=Re(e.getAttribute("src")),this.provider=(i=t.toString(),/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(i)?Ue.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(i)?Ue.vimeo:null),this.elements.container=this.media,this.media=e,this.elements.container.className="",t.search.length){const a=["1","true"];a.includes(t.searchParams.get("autoplay"))&&(this.config.autoplay=!0),a.includes(t.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=a.includes(t.searchParams.get("playsinline")),this.config.youtube.hl=t.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(q(this.provider)||!Object.values(Ue).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=s,this.provider=Ue.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=ue.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Ze(this),this.storage=new ze(this),this.media.plyr=this,j(this.elements.container)||(this.elements.container=Q("div",{tabindex:0}),X(this.media,this.elements.container)),Qe.migrateStyles.call(this),Qe.addStyleHook.call(this),ot.setup.call(this),this.config.debug&&fe.call(this,this.elements.container,this.config.events.join(" "),e=>{this.debug.log("event: "+e.type)}),this.fullscreen=new Xe(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Qe.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new rt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>ye(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new dt(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}get isHTML5(){return this.provider===Ue.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Ue.youtube}get isVimeo(){return this.provider===Ue.vimeo}get isVideo(){return"video"===this.type}get isAudio(){return"audio"===this.type}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(e){var t;this.duration&&(t=M(e)&&0<e,this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`))}get currentTime(){return Number(this.media.currentTime)}get buffered(){const e=this.media["buffered"];return M(e)?e:e&&e.length&&0<this.duration?e.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,t=M(t)&&t!==1/0?t:0;return e||t}set volume(e){let t=e;O(t)&&(t=Number(t)),M(t)||(t=this.storage.get("volume")),M(t)||({volume:t}=this.config),1<t&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!q(e)&&this.muted&&0<t&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(e){let t=e;L(t)||(t=this.storage.get("muted")),L(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(e){let t=null;M(e)&&(t=e),M(t)||(t=this.storage.get("speed")),M(t)||(t=this.config.speed.selected);var{minimumSpeed:i,maximumSpeed:e}=this;t=lt(t,i,e),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const s=this.config.quality,n=this.options.quality;if(n.length){let e=[!q(i)&&Number(i),this.storage.get("quality"),s.selected,s.default].find(M),t=!0;if(!n.includes(e)){const i=we(n,e);this.debug.warn(`Unsupported quality option: ${e}, using ${i} instead`),e=i,t=!1}s.selected=e,this.media.quality=e,t&&this.storage.set({quality:e})}}get quality(){return this.media.quality}set loop(e){e=L(e)?e:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}get loop(){return Boolean(this.media.loop)}set source(e){ut.change.call(this,e)}get source(){return this.media.currentSrc}get download(){var e=this.config.urls["download"];return F(e)?e:this.source}set download(e){F(e)&&(this.config.urls.download=e,Be.setDownloadUrl.call(this))}set poster(e){this.isVideo?Qe.setPoster.call(this,e,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const e=Te(Ce.call(this));return D(e)?e.join(":"):e}set ratio(e){this.isVideo?O(e)&&Se(e)?(this.config.ratio=Te(e),Ee.call(this)):this.debug.error(`Invalid aspect ratio specified (${e})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(e){this.config.autoplay=L(e)?e:this.config.autoplay}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(e){qe.toggle.call(this,e,!1)}set currentTrack(e){qe.set.call(this,e,!1),qe.setup.call(this)}get currentTrack(){var{toggled:e,currentTrack:t}=this.captions;return e?t:-1}set language(e){qe.setLanguage.call(this,e,!1)}get language(){return(qe.getCurrentTrack.call(this)||{}).language}set pip(e){ue.pip&&(e=L(e)?e:!this.pip,z(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?Ve:"inline"),z(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture()))}get pip(){return ue.pip?q(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Ve:null}setPreviewThumbnails(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new dt(this))}static supported(e,t,i){return ue.check(e,t,i)}static loadSprite(e,t){return Ne(e,t)}static setup(e,t={}){let i=null;return O(e)?i=Array.from(document.querySelectorAll(e)):N(e)?i=Array.from(e):D(e)&&(i=e.filter(j)),q(i)?null:i.map(e=>new pt(e,t))}}return pt.defaults=(Je=We,JSON.parse(JSON.stringify(Je))),pt});var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(l){var c=/\blang(?:uage)?-([\w-]+)\b/i,t=0,e={},P={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof I?new I(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function i(e,s){var n,t;switch(s=s||{},P.util.type(e)){case"Object":if(t=P.util.objId(e),s[t])return s[t];for(var a in n={},s[t]=n,e)e.hasOwnProperty(a)&&(n[a]=i(e[a],s));return n;case"Array":return t=P.util.objId(e),s[t]||(n=[],s[t]=n,e.forEach(function(e,t){n[t]=i(e,s)}),n);default:return e}},getLanguage:function(e){for(;e&&!c.test(e.className);)e=e.parentElement;return e?(e.className.match(c)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(e.stack)||[])[1];if(t){var i,s=document.getElementsByTagName("script");for(i in s)if(s[i].src==t)return s[i]}return null}},isActive:function(e,t,i){for(var s="no-"+t;e;){var n=e.classList;if(n.contains(t))return!0;if(n.contains(s))return!1;e=e.parentElement}return!!i}},languages:{plain:e,plaintext:e,text:e,txt:e,extend:function(e,t){var i,s=P.util.clone(P.languages[e]);for(i in t)s[i]=t[i];return s},insertBefore:function(i,e,t,s){var n,a=(s=s||P.languages)[i],o={};for(n in a)if(a.hasOwnProperty(n)){if(n==e)for(var r in t)t.hasOwnProperty(r)&&(o[r]=t[r]);t.hasOwnProperty(n)||(o[n]=a[n])}var l=s[i];return s[i]=o,P.languages.DFS(P.languages,function(e,t){t===l&&e!=i&&(this[e]=o)}),o},DFS:function e(t,i,s,n){n=n||{};var a,o,r,l=P.util.objId;for(a in t)t.hasOwnProperty(a)&&(i.call(t,a,t[a],s||a),o=t[a],"Object"!==(r=P.util.type(o))||n[l(o)]?"Array"!==r||n[l(o)]||(n[l(o)]=!0,e(o,i,a,n)):(n[l(o)]=!0,e(o,i,null,n)))}},plugins:{},highlightAll:function(e,t){P.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,i){var s={callback:i,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};P.hooks.run("before-highlightall",s),s.elements=Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)),P.hooks.run("before-all-elements-highlight",s);for(var n,a=0;n=s.elements[a++];)P.highlightElement(n,!0===t,s.callback)},highlightElement:function(e,t,i){var s=P.util.getLanguage(e),n=P.languages[s];e.className=e.className.replace(c,"").replace(/\s+/g," ")+" language-"+s;var a=e.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&(a.className=a.className.replace(c,"").replace(/\s+/g," ")+" language-"+s);var o={element:e,language:s,grammar:n,code:e.textContent};function r(e){o.highlightedCode=e,P.hooks.run("before-insert",o),o.element.innerHTML=o.highlightedCode,P.hooks.run("after-highlight",o),P.hooks.run("complete",o),i&&i.call(o.element)}if(P.hooks.run("before-sanity-check",o),(a=o.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!o.code)return P.hooks.run("complete",o),void(i&&i.call(o.element));P.hooks.run("before-highlight",o),o.grammar?t&&l.Worker?((t=new Worker(P.filename)).onmessage=function(e){r(e.data)},t.postMessage(JSON.stringify({language:o.language,code:o.code,immediateClose:!0}))):r(P.highlight(o.code,o.grammar,o.language)):r(P.util.encode(o.code))},highlight:function(e,t,i){i={code:e,grammar:t,language:i};return P.hooks.run("before-tokenize",i),i.tokens=P.tokenize(i.code,i.grammar),P.hooks.run("after-tokenize",i),I.stringify(P.util.encode(i.tokens),i.language)},tokenize:function(e,t){var i=t.rest;if(i){for(var s in i)t[s]=i[s];delete t.rest}var n=new a;return O(n,n.head,e),function e(t,i,s,n,a,o){for(var r in s)if(s.hasOwnProperty(r)&&s[r])for(var l=s[r],l=Array.isArray(l)?l:[l],c=0;c<l.length;++c){if(o&&o.cause==r+","+c)return;var d,u=l[c],p=u.inside,h=!!u.lookbehind,f=!!u.greedy,m=u.alias;f&&!u.pattern.global&&(d=u.pattern.toString().match(/[imsuy]*$/)[0],u.pattern=RegExp(u.pattern.source,d+"g"));for(var g=u.pattern||u,v=n.next,y=a;v!==i.tail&&!(o&&y>=o.reach);y+=v.value.length,v=v.next){var b=v.value;if(i.length>t.length)return;if(!(b instanceof I)){var w,x=1;if(f){if(!(w=M(g,y,t,h)))break;var _=w.index,S=w.index+w[0].length,T=y;for(T+=v.value.length;T<=_;)T+=(v=v.next).value.length;if(y=T-=v.value.length,v.value instanceof I)continue;for(var C=v;C!==i.tail&&(T<S||"string"==typeof C.value);C=C.next)x++,T+=C.value.length;x--,b=t.slice(y,T),w.index-=y}else if(!(w=M(g,0,b,h)))continue;var _=w.index,E=w[0],k=b.slice(0,_),$=b.slice(_+E.length),A=y+b.length;o&&A>o.reach&&(o.reach=A);b=v.prev;k&&(b=O(i,b,k),y+=k.length),function(e,t,i){for(var s=t.next,n=0;n<i&&s!==e.tail;n++)s=s.next;(t.next=s).prev=t,e.length-=n}(i,b,x);v=O(i,b,new I(r,p?P.tokenize(E,p):E,m,E));$&&O(i,v,$),1<x&&(e(t,i,s,v.prev,y,A={cause:r+","+c,reach:A}),o&&A.reach>o.reach&&(o.reach=A.reach))}}}}(e,n,t,n.head,0),function(e){for(var t=[],i=e.head.next;i!==e.tail;)t.push(i.value),i=i.next;return t}(n)},hooks:{all:{},add:function(e,t){var i=P.hooks.all;i[e]=i[e]||[],i[e].push(t)},run:function(e,t){var i=P.hooks.all[e];if(i&&i.length)for(var s,n=0;s=i[n++];)s(t)}},Token:I};function I(e,t,i,s){this.type=e,this.content=t,this.alias=i,this.length=0|(s||"").length}function M(e,t,i,s){e.lastIndex=t;i=e.exec(i);return i&&s&&i[1]&&(s=i[1].length,i.index+=s,i[0]=i[0].slice(s)),i}function a(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function O(e,t,i){var s=t.next,i={value:i,prev:t,next:s};return t.next=i,s.prev=i,e.length++,i}if(l.Prism=P,I.stringify=function t(e,i){if("string"==typeof e)return e;if(Array.isArray(e)){var s="";return e.forEach(function(e){s+=t(e,i)}),s}var n={type:e.type,content:t(e.content,i),tag:"span",classes:["token",e.type],attributes:{},language:i},e=e.alias;e&&(Array.isArray(e)?Array.prototype.push.apply(n.classes,e):n.classes.push(e)),P.hooks.run("wrap",n);var a,o="";for(a in n.attributes)o+=" "+a+'="'+(n.attributes[a]||"").replace(/"/g,"&quot;")+'"';return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+o+">"+n.content+"</"+n.tag+">"},!l.document)return l.addEventListener&&(P.disableWorkerMessageHandler||l.addEventListener("message",function(e){var t=JSON.parse(e.data),i=t.language,e=t.code,t=t.immediateClose;l.postMessage(P.highlight(e,P.languages[i],i)),t&&l.close()},!1)),P;var i=P.util.currentScript();function s(){P.manual||P.highlightAll()}return i&&(P.filename=i.src,i.hasAttribute("data-manual")&&(P.manual=!0)),P.manual||("loading"===(e=document.readyState)||"interactive"===e&&i&&i.defer?document.addEventListener("DOMContentLoaded",s):window.requestAnimationFrame?window.requestAnimationFrame(s):window.setTimeout(s,16)),P}(_self);"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?\]\]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var i={};i["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};i["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};t={};t[e]={pattern:RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])*?(?=</__>)".replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp("(^|[\"'\\s])(?:"+e+")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))","i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|(?:[^\\\\\r\n()\"']|\\\\[^])*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;e=e.languages.markup;e&&(e.tag.addInlined("style","css"),e.tag.addAttribute("style","css"))}(Prism),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)","javascript")),Prism.languages.js=Prism.languages.javascript,function(h){function f(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(h.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,n,e,a){var o;s.language===n&&(o=s.tokenStack=[],s.code=s.code.replace(e,function(e){if("function"==typeof a&&!a(e))return e;for(var t,i=o.length;-1!==s.code.indexOf(t=f(n,i));)++i;return o[i]=e,t}),s.grammar=h.languages.markup)}},tokenizePlaceholders:{value:function(c,d){var u,p;c.language===d&&c.tokenStack&&(c.grammar=h.languages[d],u=0,p=Object.keys(c.tokenStack),function e(t){for(var i=0;i<t.length&&!(u>=p.length);i++){var s,n,a,o,r,l=t[i];"string"==typeof l||l.content&&"string"==typeof l.content?(n=p[u],a=c.tokenStack[n],s="string"==typeof l?l:l.content,r=f(d,n),-1<(o=s.indexOf(r))&&(++u,n=s.substring(0,o),a=new h.Token(d,h.tokenize(a,c.grammar),"language-"+d,a),o=s.substring(o+r.length),r=[],n&&r.push.apply(r,e([n])),r.push(a),o&&r.push.apply(r,e([o])),"string"==typeof l?t.splice.apply(t,[i,1].concat(r)):l.content=r)):l.content&&e(l.content)}return t}(c.tokens))}}})}(Prism),function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],s=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,n=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:s,operator:n,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:s,operator:n,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(e){/<\?/.test(e.code)&&t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")})}(Prism),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/m}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,i=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|or|not)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:i}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:i,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism),Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/m,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:if|else(?: if)?|forward|for|each|while|import|use|extend|debug|warn|mixin|include|function|return|content)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|with|show|hide)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|or|not)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss,function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ProgressBar=e()}(function(){return function s(n,a,o){function r(i,e){if(!a[i]){if(!n[i]){var t="function"==typeof require&&require;if(!e&&t)return t(i,!0);if(l)return l(i,!0);t=new Error("Cannot find module '"+i+"'");throw t.code="MODULE_NOT_FOUND",t}t=a[i]={exports:{}};n[i][0].call(t.exports,function(e){var t=n[i][1][e];return r(t||e)},t,t.exports,s,n,a,o)}return a[i].exports}for(var l="function"==typeof require&&require,e=0;e<o.length;e++)r(o[e]);return r}({1:[function(e,T,C){!function(){var c,o,r,a,n,l,s,d,t,u,p,y=this||Function("return this")(),h=function(){"use strict";function n(){}function a(e,t){for(var i in e)Object.hasOwnProperty.call(e,i)&&t(i)}function o(t,i){return a(i,function(e){t[e]=i[e]}),t}function r(t,i){a(i,function(e){void 0===t[e]&&(t[e]=i[e])})}function u(e,t,i,s,n,a,o){var r,l,c=e<a?0:(e-a)/n;for(r in t)t.hasOwnProperty(r)&&(l=o[r],l="function"==typeof l?l:h[l],t[r]=d(i[r],s[r],l,c));return t}function d(e,t,i,s){return e+(t-e)*i(s)}function p(t,i){var s=e.prototype.filter,n=t._filterArgs;a(s,function(e){void 0!==s[e][i]&&s[e][i].apply(t,n)})}function l(e,t,i,s,n,a,o,r,l,c,d){g=t+i+s,f=Math.min(d||v(),g),m=g<=f,g=s-(g-f),e.isPlaying()&&(m?(l(o,e._attachment,g),e.stop(!0)):(e._scheduleId=c(e._timeoutHandler,1e3/60),p(e,"beforeTween"),f<t+i?u(1,n,a,o,1,1,r):u(f,n,a,o,s,t+i,r),p(e,"afterTween"),l(n,e._attachment,g)))}function c(e,t){var i={},s=typeof t;return a(e,"string"==s||"function"==s?function(e){i[e]=t}:function(e){i[e]||(i[e]=t[e]||"linear")}),i}function e(e,t){this._currentState=e||{},this._configured=!1,this._scheduleFunction=i,void 0!==t&&this.setConfig(t)}var h,f,m,g,t=Date.now||function(){return+new Date},v="undefined"!=typeof SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:t,i="undefined"!=typeof window&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame)||setTimeout;return e.prototype.tween=function(e){return this._isTweening?this:(void 0===e&&this._configured||this.setConfig(e),this._timestamp=v(),this._start(this.get(),this._attachment),this.resume())},e.prototype.setConfig=function(e){e=e||{},this._configured=!0,this._attachment=e.attachment,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=e.start||n,this._step=e.step||n,this._finish=e.finish||n,this._duration=e.duration||500,this._currentState=o({},e.from)||this.get(),this._originalState=this.get(),this._targetState=o({},e.to)||this.get();var t=this;this._timeoutHandler=function(){l(t,t._timestamp,t._delay,t._duration,t._currentState,t._originalState,t._targetState,t._easing,t._step,t._scheduleFunction)};var i=this._currentState,s=this._targetState;return r(s,i),this._easing=c(i,e.easing||"linear"),this._filterArgs=[i,this._originalState,s,this._easing],p(this,"tweenCreated"),this},e.prototype.get=function(){return o({},this._currentState)},e.prototype.set=function(e){this._currentState=e},e.prototype.pause=function(){return this._pausedAtTime=v(),this._isPaused=!0,this},e.prototype.resume=function(){return this._isPaused&&(this._timestamp+=v()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0,this._timeoutHandler(),this},e.prototype.seek=function(e){e=Math.max(e,0);var t=v();return this._timestamp+e===0||(this._timestamp=t-e,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,l(this,this._timestamp,this._delay,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction,t),this.pause())),this},e.prototype.stop=function(e){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=n,(y.cancelAnimationFrame||y.webkitCancelAnimationFrame||y.oCancelAnimationFrame||y.msCancelAnimationFrame||y.mozCancelRequestAnimationFrame||y.clearTimeout)(this._scheduleId),e&&(p(this,"beforeTween"),u(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),p(this,"afterTween"),p(this,"afterTweenEnd"),this._finish.call(this,this._currentState,this._attachment)),this},e.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},e.prototype.setScheduleFunction=function(e){this._scheduleFunction=e},e.prototype.dispose=function(){for(var e in this)this.hasOwnProperty(e)&&delete this[e]},e.prototype.filter={},h=e.prototype.formula={linear:function(e){return e}},o(e,{now:v,each:a,tweenProps:u,tweenProp:d,applyFilter:p,shallowCopy:o,defaults:r,composeEasingObject:c}),"function"==typeof SHIFTY_DEBUG_NOW&&(y.timeoutHandler=l),"object"==typeof C?T.exports=e:void 0===y.Tweenable&&(y.Tweenable=e),e}();function f(i){c.each(i,function(e){var t=i[e];"string"==typeof t&&t.match(s)&&(i[e]=g(s,t,m))})}function m(e){3===(e=(e=e).replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t[0]=i(e.substr(0,2)),t[1]=i(e.substr(2,2)),t[2]=i(e.substr(4,2)),e=t;return"rgb("+e[0]+","+e[1]+","+e[2]+")"}function i(e){return parseInt(e,16)}function g(e,t,i){var s=t.match(e),n=t.replace(e,d);if(s)for(var a,o=s.length,r=0;r<o;r++)a=s.shift(),n=n.replace(d,i(a));return n}function v(e){for(var t=e.match(a),i=t.length,s=e.match(l)[0],n=0;n<i;n++)s+=parseInt(t[n],10)+",";return s.slice(0,-1)+")"}function b(n){var a={};return c.each(n,function(e){var t,i,s=n[e];"string"==typeof s&&(t=_(s),a[e]={formatString:((s=(i=s).match(r))?1!==s.length&&!i[0].match(o)||s.unshift(""):s=["",""],s.join(d)),chunkNames:function(e,t){for(var i=[],s=e.length,n=0;n<s;n++)i.push("_"+t+"_"+n);return i}(t,e)})}),a}function w(n,a){c.each(a,function(e){for(var t=_(n[e]),i=t.length,s=0;s<i;s++)n[a[e].chunkNames[s]]=+t[s];delete n[e]})}function x(i,s){c.each(s,function(e){i[e];var t=function(e,t){u.length=0;for(var i=t.length,s=0;s<i;s++)u.push(e[t[s]]);return u}(function(e,t){for(var i,s={},n=t.length,a=0;a<n;a++)i=t[a],s[i]=e[i],delete e[i];return s}(i,s[e].chunkNames),s[e].chunkNames),t=function(e,t){for(var i=e,s=t.length,n=0;n<s;n++)i=i.replace(d,+t[n].toFixed(4));return i}(s[e].formatString,t);i[e]=g(n,t,v)})}function _(e){return e.match(a)}function S(e,t,i,s,n,a){function l(e){return((d*e+u)*e+p)*e}function c(e){return 0<=e?e:0-e}var d=0,u=0,p=0,o=0,r=0,h=0,d=1-(p=3*t)-(u=3*(s-t)-p),o=1-(h=3*i)-(r=3*(n-i)-h);return a=function(e,t){var i,s,n,a,o,r;for(n=e,r=0;r<8;r++){if(c(a=l(n)-e)<t)return n;if(c(o=function(e){return(3*d*e+2*u)*e+p}(n))<1e-6)break;n-=a/o}if(s=1,(i=0)>(n=e))return i;if(s<n)return s;for(;i<s;){if(c((a=l(n))-e)<t)return n;a<e?i=n:s=n,n=.5*(s-i)+i}return n}(e,a=1/(200*a)),((o*a+r)*a+h)*a}h.shallowCopy(h.prototype.formula,{easeInQuad:function(e){return Math.pow(e,2)},easeOutQuad:function(e){return-(Math.pow(e-1,2)-1)},easeInOutQuad:function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},easeInCubic:function(e){return Math.pow(e,3)},easeOutCubic:function(e){return Math.pow(e-1,3)+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},easeInQuart:function(e){return Math.pow(e,4)},easeOutQuart:function(e){return-(Math.pow(e-1,4)-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeInQuint:function(e){return Math.pow(e,5)},easeOutQuint:function(e){return Math.pow(e-1,5)+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInBack:function(e){return e*e*(2.70158*e-1.70158)},easeOutBack:function(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},elastic:function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},swingFromTo:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},swingFrom:function(e){return e*e*(2.70158*e-1.70158)},swingTo:function(e){return--e*e*(2.70158*e+1.70158)+1},bounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bouncePast:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?2-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375)},easeFromTo:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeFrom:function(e){return Math.pow(e,4)},easeTo:function(e){return Math.pow(e,.25)}}),h.setBezierFunction=function(e,t,i,s,n){var a,o,r,l,c=(a=t,o=i,r=s,l=n,function(e){return S(e,a,o,r,l,1)});return c.displayName=e,c.x1=t,c.y1=i,c.x2=s,c.y2=n,h.prototype.formula[e]=c},h.unsetBezierFunction=function(e){delete h.prototype.formula[e]},(p=new h)._filterArgs=[],h.interpolate=function(e,t,i,s,n){var a=h.shallowCopy({},e),o=n||0,n=h.composeEasingObject(e,s||"linear");p.set({});s=p._filterArgs;s.length=0,s[0]=a,s[1]=e,s[2]=t,s[3]=n,h.applyFilter(p,"tweenCreated"),h.applyFilter(p,"beforeTween");n=h.tweenProps(i,a,e,t,1,o,n);return h.applyFilter(p,"afterTween"),n},c=h,o=/(\d|\-|\.)/,r=/([^\-0-9\.]+)/g,a=/[0-9.\-]+/g,n=new RegExp("rgb\\("+a.source+/,\s*/.source+a.source+/,\s*/.source+a.source+"\\)","g"),l=/^.*\(/,s=/#([0-9]|[a-f]){3,6}/gi,d="VAL",t=[],u=[],c.prototype.filter.token={tweenCreated:function(e,t,i,s){f(e),f(t),f(i),this._tokenData=b(e)},beforeTween:function(e,t,i,s){var r,l;r=s,l=this._tokenData,c.each(l,function(e){var t=l[e].chunkNames,i=t.length,s=r[e];if("string"==typeof s)for(var n=s.split(" "),a=n[n.length-1],o=0;o<i;o++)r[t[o]]=n[o]||a;else for(o=0;o<i;o++)r[t[o]]=s;delete r[e]}),w(e,this._tokenData),w(t,this._tokenData),w(i,this._tokenData)},afterTween:function(e,t,i,s){var o,r;x(e,this._tokenData),x(t,this._tokenData),x(i,this._tokenData),o=s,r=this._tokenData,c.each(r,function(e){var t=r[e].chunkNames,i=t.length,s=o[t[0]];if("string"==typeof s){for(var n="",a=0;a<i;a++)n+=" "+o[t[a]],delete o[t[a]];o[e]=n.substr(1)}else o[e]=s})}}}.call(null)},{}],2:[function(e,t,i){function s(e,t){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,n.apply(this,arguments)}var n=e("./shape"),a=e("./utils");((s.prototype=new n).constructor=s).prototype._pathString=function(e){var t=e.strokeWidth,t=50-(t=e.trailWidth&&e.trailWidth>e.strokeWidth?e.trailWidth:t)/2;return a.render(this._pathTemplate,{radius:t,"2radius":2*t})},s.prototype._trailString=function(e){return this._pathString(e)},t.exports=s},{"./shape":7,"./utils":8}],3:[function(e,t,i){function s(e,t){this._pathTemplate="M 0,{center} L 100,{center}",n.apply(this,arguments)}var n=e("./shape"),a=e("./utils");((s.prototype=new n).constructor=s).prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 "+t.strokeWidth),e.setAttribute("preserveAspectRatio","none")},s.prototype._pathString=function(e){return a.render(this._pathTemplate,{center:e.strokeWidth/2})},s.prototype._trailString=function(e){return this._pathString(e)},t.exports=s},{"./shape":7,"./utils":8}],4:[function(e,t,i){t.exports={Line:e("./line"),Circle:e("./circle"),SemiCircle:e("./semicircle"),Path:e("./path"),Shape:e("./shape"),utils:e("./utils")}},{"./circle":2,"./line":3,"./path":5,"./semicircle":6,"./shape":7,"./utils":8}],5:[function(e,t,i){function s(e,t){if(!(this instanceof s))throw new Error("Constructor was called without new keyword");t=l.extend({duration:800,easing:"linear",from:{},to:{},step:function(){}},t),e=l.isString(e)?document.querySelector(e):e,this.path=e,this._opts=t,this._tweenable=null,t=this.path.getTotalLength(),this.path.style.strokeDasharray=t+" "+t,this.set(0)}var r=e("shifty"),l=e("./utils"),n={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"};s.prototype.value=function(){var e=this._getComputedDashOffset(),t=this.path.getTotalLength();return parseFloat((1-e/t).toFixed(6),10)},s.prototype.set=function(e){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(e);var t,i=this._opts.step;l.isFunction(i)&&(t=this._easing(this._opts.easing),i(this._calculateTo(e,t),this._opts.shape||this,this._opts.attachment))},s.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},s.prototype.animate=function(e,i,t){i=i||{},l.isFunction(i)&&(t=i,i={});var s=l.extend({},i),n=l.extend({},this._opts);i=l.extend(n,i);var a=this._easing(i.easing),n=this._resolveFromAndTo(e,a,s);this.stop(),this.path.getBoundingClientRect();var s=this._getComputedDashOffset(),e=this._progressToOffset(e),o=this;this._tweenable=new r,this._tweenable.tween({from:l.extend({offset:s},n.from),to:l.extend({offset:e},n.to),duration:i.duration,easing:a,step:function(e){o.path.style.strokeDashoffset=e.offset;var t=i.shape||o;i.step(e,t,i.attachment)},finish:function(e){l.isFunction(t)&&t()}})},s.prototype._getComputedDashOffset=function(){var e=window.getComputedStyle(this.path,null);return parseFloat(e.getPropertyValue("stroke-dashoffset"),10)},s.prototype._progressToOffset=function(e){var t=this.path.getTotalLength();return t-e*t},s.prototype._resolveFromAndTo=function(e,t,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(t),to:this._calculateTo(e,t)}},s.prototype._calculateFrom=function(e){return r.interpolate(this._opts.from,this._opts.to,this.value(),e)},s.prototype._calculateTo=function(e,t){return r.interpolate(this._opts.from,this._opts.to,e,t)},s.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(),this._tweenable=null)},s.prototype._easing=function(e){return n.hasOwnProperty(e)?n[e]:e},t.exports=s},{"./utils":8,shifty:1}],6:[function(e,t,i){function s(e,t){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,n.apply(this,arguments)}var n=e("./shape"),a=e("./circle"),o=e("./utils");((s.prototype=new n).constructor=s).prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 50")},s.prototype._initializeTextContainer=function(e,t,i){e.text.style&&(i.style.top="auto",i.style.bottom="0",e.text.alignToBottom?o.setStyle(i,"transform","translate(-50%, 0)"):o.setStyle(i,"transform","translate(-50%, 50%)"))},s.prototype._pathString=a.prototype._pathString,s.prototype._trailString=a.prototype._trailString,t.exports=s},{"./circle":2,"./shape":7,"./utils":8}],7:[function(e,t,i){function n(e,t){if(!(this instanceof n))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=o.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},t,!0),o.isObject(t)&&void 0!==t.svgStyle&&(this._opts.svgStyle=t.svgStyle),o.isObject(t)&&o.isObject(t.text)&&void 0!==t.text.style&&(this._opts.text.style=t.text.style);var i=this._createSvgView(this._opts),s=o.isString(e)?document.querySelector(e):e;if(!s)throw new Error("Container does not exist: "+e);this._container=s,this._container.appendChild(i.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&o.setStyles(i.svg,this._opts.svgStyle),this.svg=i.svg,this.path=i.path,this.trail=i.trail,this.text=null;s=o.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new a(i.path,s),o.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}}var a=e("./path"),o=e("./utils"),s="Object is destroyed";n.prototype.animate=function(e,t,i){if(null===this._progressPath)throw new Error(s);this._progressPath.animate(e,t,i)},n.prototype.stop=function(){if(null===this._progressPath)throw new Error(s);void 0!==this._progressPath&&this._progressPath.stop()},n.prototype.destroy=function(){if(null===this._progressPath)throw new Error(s);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,(this._progressPath=null)!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},n.prototype.set=function(e){if(null===this._progressPath)throw new Error(s);this._progressPath.set(e)},n.prototype.value=function(){if(null===this._progressPath)throw new Error(s);return void 0===this._progressPath?0:this._progressPath.value()},n.prototype.setText=function(e){if(null===this._progressPath)throw new Error(s);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),o.isObject(e)?(o.removeChildren(this.text),this.text.appendChild(e)):this.text.innerHTML=e},n.prototype._createSvgView=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(t,e);var i=null;(e.trailColor||e.trailWidth)&&(i=this._createTrail(e),t.appendChild(i));e=this._createPath(e);return t.appendChild(e),{svg:t,path:e,trail:i}},n.prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 100")},n.prototype._createPath=function(e){var t=this._pathString(e);return this._createPathElement(t,e)},n.prototype._createTrail=function(e){var t=this._trailString(e),e=o.extend({},e);return e.trailColor||(e.trailColor="#eee"),e.trailWidth||(e.trailWidth=e.strokeWidth),e.color=e.trailColor,e.strokeWidth=e.trailWidth,e.fill=null,this._createPathElement(t,e)},n.prototype._createPathElement=function(e,t){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",e),i.setAttribute("stroke",t.color),i.setAttribute("stroke-width",t.strokeWidth),t.fill?i.setAttribute("fill",t.fill):i.setAttribute("fill-opacity","0"),i},n.prototype._createTextContainer=function(e,t){var i=document.createElement("div");i.className=e.text.className;var s=e.text.style;return s&&(e.text.autoStyleContainer&&(t.style.position="relative"),o.setStyles(i,s),s.color||(i.style.color=e.color)),this._initializeTextContainer(e,t,i),i},n.prototype._initializeTextContainer=function(e,t,i){},n.prototype._pathString=function(e){throw new Error("Override this function for each progress bar")},n.prototype._trailString=function(e){throw new Error("Override this function for each progress bar")},n.prototype._warnContainerAspectRatio=function(e){var t,i,s;this.containerAspectRatio&&(t=window.getComputedStyle(e,null),i=parseFloat(t.getPropertyValue("width"),10),s=parseFloat(t.getPropertyValue("height"),10),o.floatEquals(this.containerAspectRatio,i/s)||(console.warn("Incorrect aspect ratio of container","#"+e.id,"detected:",t.getPropertyValue("width")+"(width)","/",t.getPropertyValue("height")+"(height)","=",i/s),console.warn("Aspect ratio of should be",this.containerAspectRatio)))},t.exports=n},{"./path":5,"./utils":8}],8:[function(e,t,i){function s(e,t,i){for(var s=e.style,n=0;n<o.length;++n)s[o[n]+a(t)]=i;s[t]=i}function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){return"[object Array]"!==Object.prototype.toString.call(e)&&("object"==typeof e&&!!e)}function n(e,t){for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)}var o="Webkit Moz O ms".split(" ");t.exports={extend:function e(t,i,s){for(var n in t=t||{},s=s||!1,i=i||{}){var a,o;i.hasOwnProperty(n)&&(a=t[n],o=i[n],s&&r(a)&&r(o)?t[n]=e(a,o,s):t[n]=o)}return t},render:function(e,t){var i,s,n,a=e;for(i in t)t.hasOwnProperty(i)&&(s=t[i],n=new RegExp("\\{"+i+"\\}","g"),a=a.replace(n,s));return a},setStyle:s,setStyles:function(i,e){n(e,function(e,t){null!=e&&(r(e)&&!0===e.prefix?s(i,t,e.value):i.style[t]=e)})},capitalize:a,isString:function(e){return"string"==typeof e||e instanceof String},isFunction:function(e){return"function"==typeof e},isObject:r,forEachObject:n,floatEquals:function(e,t){return Math.abs(e-t)<.001},removeChildren:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}}},{}]},{},[4])(4)}),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.Rellax=t()}("undefined"!=typeof window?window:global,function(){function u(e,t){var S=Object.create(u.prototype),a=0,T=0,o=0,C=0,E=[],k=!0,i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)},s=null,n=!1;try{var r=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}catch(e){}var l=window.cancelAnimationFrame||window.mozCancelAnimationFrame||clearTimeout,c=window.transformProp||function(){var e=document.createElement("div");if(null===e.style.transform){var t,i=["Webkit","Moz","ms"];for(t in i)if(void 0!==e.style[i[t]+"Transform"])return i[t]+"Transform"}return"transform"}();if(S.options={speed:-2,verticalSpeed:null,horizontalSpeed:null,breakpoints:[576,768,1201],center:!1,wrapper:null,relativeToWrapper:!1,round:!0,vertical:!0,horizontal:!1,verticalScrollAxis:"y",horizontalScrollAxis:"x",callback:function(){}},t&&Object.keys(t).forEach(function(e){S.options[e]=t[e]}),t&&t.breakpoints&&function(){if(3===S.options.breakpoints.length&&Array.isArray(S.options.breakpoints)){var t,i=!0,s=!0;if(S.options.breakpoints.forEach(function(e){"number"!=typeof e&&(s=!1),null!==t&&e<t&&(i=!1),t=e}),i&&s)return}S.options.breakpoints=[576,768,1201],console.warn("Rellax: You must pass an array of 3 numbers in ascending order to the breakpoints option. Defaults reverted")}(),0<(r="string"==typeof(e=e||".rellax")?document.querySelectorAll(e):[e]).length){if(S.elems=r,S.options.wrapper&&!S.options.wrapper.nodeType){if(!(r=document.querySelector(S.options.wrapper)))return void console.warn("Rellax: The wrapper you're trying to use doesn't exist.");S.options.wrapper=r}function $(){for(var e=0;e<E.length;e++)S.elems[e].style.cssText=E[e].style;for(E=[],T=window.innerHeight,C=window.innerWidth,e=S.options.breakpoints,A=C<e[0]?"xs":C>=e[0]&&C<e[1]?"sm":C>=e[1]&&C<e[2]?"md":"lg",P(),e=0;e<S.elems.length;e++){var t=void 0,i=S.elems[e],s=i.getAttribute("data-rellax-percentage"),n=i.getAttribute("data-rellax-speed"),a=i.getAttribute("data-rellax-xs-speed"),o=i.getAttribute("data-rellax-mobile-speed"),r=i.getAttribute("data-rellax-tablet-speed"),l=i.getAttribute("data-rellax-desktop-speed"),c=i.getAttribute("data-rellax-vertical-speed"),d=i.getAttribute("data-rellax-horizontal-speed"),u=i.getAttribute("data-rellax-vertical-scroll-axis"),p=i.getAttribute("data-rellax-horizontal-scroll-axis"),h=i.getAttribute("data-rellax-zindex")||0,f=i.getAttribute("data-rellax-min"),m=i.getAttribute("data-rellax-max"),g=i.getAttribute("data-rellax-min-x"),v=i.getAttribute("data-rellax-max-x"),y=i.getAttribute("data-rellax-min-y"),b=i.getAttribute("data-rellax-max-y"),w=!0;a||o||r||l?t={xs:a,sm:o,md:r,lg:l}:w=!1,a=S.options.wrapper?S.options.wrapper.scrollTop:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,S.options.relativeToWrapper&&(a=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)-S.options.wrapper.offsetTop);var x=S.options.vertical&&(s||S.options.center)?a:0,_=S.options.horizontal&&(s||S.options.center)?S.options.wrapper?S.options.wrapper.scrollLeft:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft:0,a=x+i.getBoundingClientRect().top,o=i.clientHeight||i.offsetHeight||i.scrollHeight,r=_+i.getBoundingClientRect().left,l=i.clientWidth||i.offsetWidth||i.scrollWidth,x=s||(x-a+T)/(o+T),s=s||(_-r+C)/(l+C);S.options.center&&(x=s=.5),t=w&&null!==t[A]?Number(t[A]):n||S.options.speed,c=c||S.options.verticalSpeed,d=d||S.options.horizontalSpeed,u=u||S.options.verticalScrollAxis,p=p||S.options.horizontalScrollAxis,n=I(s,x,t,c,d),i=i.style.cssText,w="",(s=/transform\s*:/i.exec(i))&&(w=(s=(w=i.slice(s.index)).indexOf(";"))?" "+w.slice(11,s).replace(/\s/g,""):" "+w.slice(11).replace(/\s/g,"")),E.push({baseX:n.x,baseY:n.y,top:a,left:r,height:o,width:l,speed:t,verticalSpeed:c,horizontalSpeed:d,verticalScrollAxis:u,horizontalScrollAxis:p,style:i,transform:w,zindex:h,min:f,max:m,minX:g,maxX:v,minY:y,maxY:b})}O(),k&&(window.addEventListener("resize",$),k=!1,M())}var A,P=function(){var e=a,t=o;return a=S.options.wrapper?S.options.wrapper.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,o=S.options.wrapper?S.options.wrapper.scrollLeft:(document.documentElement||document.body.parentNode||document.body).scrollLeft||window.pageXOffset,!!(e!=(a=S.options.relativeToWrapper?((document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset)-S.options.wrapper.offsetTop:a)&&S.options.vertical||t!=o&&S.options.horizontal)},I=function(e,t,i,s,n){var a={};return e=100*(n||i)*(1-e),t=100*(s||i)*(1-t),a.x=S.options.round?Math.round(e):Math.round(100*e)/100,a.y=S.options.round?Math.round(t):Math.round(100*t)/100,a},d=function(){window.removeEventListener("resize",d),window.removeEventListener("orientationchange",d),(S.options.wrapper||window).removeEventListener("scroll",d),(S.options.wrapper||document).removeEventListener("touchmove",d),s=i(M)},M=function(){P()&&!1===k?(O(),s=i(M)):(s=null,window.addEventListener("resize",d),window.addEventListener("orientationchange",d),(S.options.wrapper||window).addEventListener("scroll",d,!!n&&{passive:!0}),(S.options.wrapper||document).addEventListener("touchmove",d,!!n&&{passive:!0}))},O=function(){for(var e=0;e<S.elems.length;e++){var t=E[e].verticalScrollAxis.toLowerCase(),i=E[e].horizontalScrollAxis.toLowerCase(),s=-1!=t.indexOf("x")?a:0,t=-1!=t.indexOf("y")?a:0,n=-1!=i.indexOf("x")?o:0,i=-1!=i.indexOf("y")?o:0;i=(s=I((s+n-E[e].left+C)/(E[e].width+C),(t+i-E[e].top+T)/(E[e].height+T),E[e].speed,E[e].verticalSpeed,E[e].horizontalSpeed)).y-E[e].baseY,t=s.x-E[e].baseX,null!==E[e].min&&(S.options.vertical&&!S.options.horizontal&&(i=i<=E[e].min?E[e].min:i),S.options.horizontal&&!S.options.vertical&&(t=t<=E[e].min?E[e].min:t)),null!=E[e].minY&&(i=i<=E[e].minY?E[e].minY:i),null!=E[e].minX&&(t=t<=E[e].minX?E[e].minX:t),null!==E[e].max&&(S.options.vertical&&!S.options.horizontal&&(i=i>=E[e].max?E[e].max:i),S.options.horizontal&&!S.options.vertical&&(t=t>=E[e].max?E[e].max:t)),null!=E[e].maxY&&(i=i>=E[e].maxY?E[e].maxY:i),null!=E[e].maxX&&(t=t>=E[e].maxX?E[e].maxX:t),S.elems[e].style[c]="translate3d("+(S.options.horizontal?t:"0")+"px,"+(S.options.vertical?i:"0")+"px,"+E[e].zindex+"px) "+E[e].transform}S.options.callback(s)};return S.destroy=function(){for(var e=0;e<S.elems.length;e++)S.elems[e].style.cssText=E[e].style;k||(window.removeEventListener("resize",$),k=!0),l(s),s=null},$(),S.refresh=$,S}console.warn("Rellax: The elements you're trying to select don't exist.")}return u}),function(e,t){"use strict";function i(e,t){var i={animation:"animated fadeIn",speed:2e3,separator:",",hoverStop:!1,clickChange:!1,loopCount:"infinite",autoRun:!0,onInit:!1,onChange:!1,onComplete:!1};if(this.options="object"==typeof t?function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}(i,t):i,void 0===e)throw new Error('ReplaceMe [constructor]: "element" parameter is required');if("object"==typeof e)this.element=e;else{if("string"!=typeof e)throw new Error('ReplaceMe [constructor]: wrong "element" parameter');this.element=document.querySelector(e)}this.init()}i.prototype.init=function(){"function"==typeof this.options.onInit&&this.options.onInit(),this.words=this.escapeHTML(this.element.innerHTML).split(this.options.separator),this.count=this.words.length,this.position=this.loopCount=0,this.running=!1,this.bindAll(),!0===this.options.autoRun&&this.start()},i.prototype.bindAll=function(){!0===this.options.hoverStop&&(this.element.addEventListener("mouseover",this.pause.bind(this)),this.element.addEventListener("mouseout",this.start.bind(this))),!0===this.options.clickChange&&this.element.addEventListener("click",this.change.bind(this))},i.prototype.changeAnimation=function(){this.change(),this.loop=setTimeout(this.changeAnimation.bind(this),this.options.speed)},i.prototype.start=function(){!0!==this.running&&(this.running=!0,this.changeWord(this.words[this.position]),this.position++),this.loop=setTimeout(this.changeAnimation.bind(this),this.options.speed)},i.prototype.change=function(){return this.position>this.count-1&&(this.position=0,this.loopCount++,this.loopCount>=this.options.loopCount)?void this.stop():(this.changeWord(this.words[this.position]),this.position++,void("function"==typeof this.options.onChange&&this.options.onChange()))},i.prototype.stop=function(){this.running=!1,this.position=this.loopCount=0,this.pause(),"function"==typeof this.options.onComplete&&this.options.onComplete()},i.prototype.pause=function(){clearTimeout(this.loop)},i.prototype.changeWord=function(e){this.element.innerHTML='<span class="'+this.options.animation+'" style="display:inline-block;">'+e+"</span>"},i.prototype.escapeHTML=function(e){var t=/<\/?\w+\s*[^>]*>/g;return!0===t.test(e)?e.replace(t,""):e},e.ReplaceMe=i,"function"==typeof t&&t.fn.extend({ReplaceMe:function(e){return this.each(function(){new i(this,e)})}})}(window,window.jQuery);var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,i){return e==Array.prototype||e==Object.prototype||(e[t]=i.value),e},$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<e.length;++t){var i=e[t];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(e,t){var i=$jscomp.propertyToPolyfillSymbol[t];return null!=i&&void 0!==(i=e[i])?i:e[t]};$jscomp.polyfill=function(e,t,i,s){t&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,t,i,s):$jscomp.polyfillUnisolated(e,t,i,s))},$jscomp.polyfillUnisolated=function(e,t,i,s){for(i=$jscomp.global,e=e.split("."),s=0;s<e.length-1;s++){var n=e[s];n in i||(i[n]={}),i=i[n]}(t=t(s=i[e=e[e.length-1]]))!=s&&null!=t&&$jscomp.defineProperty(i,e,{configurable:!0,writable:!0,value:t})},$jscomp.polyfillIsolated=function(e,t,i,s){var n=e.split(".");e=1===n.length,s=n[0],s=!e&&s in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var a=0;a<n.length-1;a++){var o=n[a];o in s||(s[o]={}),s=s[o]}n=n[n.length-1],null!=(t=t(i=$jscomp.IS_SYMBOL_NATIVE&&"es6"===i?s[n]:null))&&(e?$jscomp.defineProperty($jscomp.polyfills,n,{configurable:!0,writable:!0,value:t}):t!==i&&($jscomp.propertyToPolyfillSymbol[n]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(n):$jscomp.POLYFILL_PREFIX+n,n=$jscomp.propertyToPolyfillSymbol[n],$jscomp.defineProperty(s,n,{configurable:!0,writable:!0,value:t})))},$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(e){if(e)return e;function t(e,t){this.$jscomp$symbol$id_=e,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})}t.prototype.toString=function(){return this.$jscomp$symbol$id_};function i(e){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return new t("jscomp_symbol_"+(e||"")+"_"+s++,e)}var s=0;return i},"es6","es3"),$jscomp.initSymbolIterator=function(){},$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),i=0;i<t.length;i++){var s=$jscomp.global[t[i]];"function"==typeof s&&"function"!=typeof s.prototype[e]&&$jscomp.defineProperty(s.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6","es3"),$jscomp.initSymbolAsyncIterator=function(){},$jscomp.iteratorPrototype=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e},$jscomp.iteratorFromArray=function(t,i){t instanceof String&&(t+="");var s=0,n={next:function(){if(s<t.length){var e=s++;return{value:i(e,t[e]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n},$jscomp.polyfill("Array.prototype.keys",function(e){return e||function(){return $jscomp.iteratorFromArray(this,function(e){return e})}},"es6","es3");var scrollCue=function(){var a,n,o,r={},s=0,l=!0,c=!0,d=!1,t=!1,i={duration:600,interval:-.7,percentage:.75,enable:!0,docSlider:!1,pageChangeReset:!1},r={setEvents:function(e){function t(){l&&(requestAnimationFrame(function(){l=!0,c&&(r.setQuery(),r.runQuery())}),l=!1)}if(c&&!e&&window.addEventListener("load",r.runQuery),window.addEventListener("scroll",t),d){e=docSlider.getElements().pages;for(var i=0;i<e.length;i++)e[i].addEventListener("scroll",function(e){return docSlider.getCurrentIndex()+""===(e=e.target.getAttribute("data-ds-index"))&&void(docSlider._getWheelEnable()&&t())})}window.addEventListener("resize",function(){0<s&&clearTimeout(s),s=setTimeout(function(){c&&(r.searchElements(),r.setQuery(),r.runQuery())},200)})},setOptions:function(t,i){var s={};if(void 0!==t)return Object.keys(t).forEach(function(e){"[object Object]"===Object.prototype.toString.call(t[e])?s[e]=r.setOptions(t[e],i[e]):(s[e]=t[e],void 0!==i&&void 0!==i[e]&&(s[e]=i[e]))}),s},searchElements:function(){a=[];for(var e=document.querySelectorAll("[data-cues]:not([data-disabled])"),t=0;t<e.length;t++){for(var i=e[t],s=0;s<i.children.length;s++){var n=i.children[s];r.setAttrPtoC(n,"data-cue",i,"data-cues",""),r.setAttrPtoC(n,"data-duration",i,"data-duration",!1),r.setAttrPtoC(n,"data-interval",i,"data-interval",!1),r.setAttrPtoC(n,"data-sort",i,"data-sort",!1),r.setAttrPtoC(n,"data-addClass",i,"data-addClass",!1),r.setAttrPtoC(n,"data-group",i,"data-group",!1),r.setAttrPtoC(n,"data-delay",i,"data-delay",!1)}i.setAttribute("data-disabled","true")}for(e=document.querySelectorAll('[data-cue]:not([data-show="true"])'),t=0;t<e.length;t++)i=e[t],a.push({elm:i,cue:r.getAttr(i,"data-cue","fadeIn"),duration:Number(r.getAttr(i,"data-duration",o.duration)),interval:Number(r.getAttr(i,"data-interval",o.interval)),order:r.getOrderNumber(i),sort:r.getAttr(i,"data-sort",null),addClass:r.getAttr(i,"data-addClass",null),group:r.getAttr(i,"data-group",null),delay:Number(r.getAttr(i,"data-delay",0))});if(d)for(e=docSlider.getElements().pages.length,t=0;t<e;t++)for(i=document.querySelectorAll('[data-ds-index="'+t+'"] [data-cue]:not([data-scpage])'),s=0;s<i.length;s++)i[s].setAttribute("data-scpage",t)},sortElements:function(){for(var e=arguments[0],a=[].slice.call(arguments).slice(1),t={$jscomp$loop$prop$i$4:0};t.$jscomp$loop$prop$i$4<a.length;(t={$jscomp$loop$prop$i$4:t.$jscomp$loop$prop$i$4}).$jscomp$loop$prop$i$4++)e.sort(function(n){return function(e,t){var i=void 0===a[n.$jscomp$loop$prop$i$4][1]||a[n.$jscomp$loop$prop$i$4][1],s=a[n.$jscomp$loop$prop$i$4][0];return e[s]>t[s]?i?1:-1:e[s]<t[s]?i?-1:1:0}}(t))},randElements:function(e){for(var t=e.length-1;0<t;t--){var i=Math.floor(Math.random()*(t+1)),s=e[t];e[t]=e[i],e[i]=s}return e},setDurationValue:function(e,t,i){return void 0===t?e:(t=t.duration,(e=-1===(i+"").indexOf(".")?e+t+i:e+t+t*i)<0?0:e)},getOrderNumber:function(e){return e.hasAttribute("data-order")?0<=(e=Number(e.getAttribute("data-order")))?e:Math.pow(2,53)-1+e:Math.pow(2,52)-1},setAttrPtoC:function(e,t,i,s,n){i.hasAttribute(s)?e.hasAttribute(t)||e.setAttribute(t,i.getAttribute(s)):!1!==n&&e.setAttribute(t,n)},getAttr:function(e,t,i){return e.hasAttribute(t)?e.getAttribute(t):i},getOffsetTop:function(e){return e.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop)},setClassNames:function(e,t){if(t){t=t.split(" ");for(var i=0;i<t.length;i++)e.classList.add(t[i])}},setQuery:function(){n={};for(var e=0;e<a.length;e++){var t=a[e],i=t.group||"$"+r.getOffsetTop(t.elm);if(!t.elm.hasAttribute("data-show")){if(d){var s=t.elm.getAttribute("data-scpage");if(s!==docSlider.getCurrentIndex()+""&&null!==s)continue}void 0===n[i]&&(n[i]=[]),n[i].push(t)}}},runQuery:function(){for(var e=Object.keys(n),t={},i=0;i<e.length;t={$jscomp$loop$prop$elms$6:t.$jscomp$loop$prop$elms$6,$jscomp$loop$prop$interval$7:t.$jscomp$loop$prop$interval$7},i++)if(t.$jscomp$loop$prop$elms$6=n[e[i]],r.isElementIn(t.$jscomp$loop$prop$elms$6[0].elm)){"reverse"===t.$jscomp$loop$prop$elms$6[0].sort?t.$jscomp$loop$prop$elms$6.reverse():"random"===t.$jscomp$loop$prop$elms$6[0].sort&&r.randElements(t.$jscomp$loop$prop$elms$6),r.sortElements(t.$jscomp$loop$prop$elms$6,["order"]);for(var s=t.$jscomp$loop$prop$interval$7=0;s<t.$jscomp$loop$prop$elms$6.length;s++)!function(t){return function(e){t.$jscomp$loop$prop$elms$6[e].elm.setAttribute("data-show","true"),r.setClassNames(t.$jscomp$loop$prop$elms$6[e].elm,t.$jscomp$loop$prop$elms$6[e].addClass),t.$jscomp$loop$prop$interval$7=r.setDurationValue(t.$jscomp$loop$prop$interval$7,t.$jscomp$loop$prop$elms$6[e-1],t.$jscomp$loop$prop$elms$6[e].interval),t.$jscomp$loop$prop$elms$6[e].elm.style.animationName=t.$jscomp$loop$prop$elms$6[e].cue,t.$jscomp$loop$prop$elms$6[e].elm.style.animationDuration=t.$jscomp$loop$prop$elms$6[e].duration+"ms",t.$jscomp$loop$prop$elms$6[e].elm.style.animationTimingFunction="ease",t.$jscomp$loop$prop$elms$6[e].elm.style.animationDelay=t.$jscomp$loop$prop$interval$7+t.$jscomp$loop$prop$elms$6[e].delay+"ms",t.$jscomp$loop$prop$elms$6[e].elm.style.animationDirection="normal",t.$jscomp$loop$prop$elms$6[e].elm.style.animationFillMode="both"}}(t)(s);delete n[e[i]]}},isElementIn:function(e){var t=e.hasAttribute("data-scpage")?r.isScrollEndWithDocSlider:r.isScrollEnd;return window.pageYOffset>r.getOffsetTop(e)-window.innerHeight*o.percentage||t()},isScrollEnd:function(){var e=window.document.documentElement;return(window.document.body.scrollTop||e.scrollTop)>=e.scrollHeight-e.clientHeight},isScrollEndWithDocSlider:function(){var e=docSlider.getCurrentPage();return e.scrollTop>=e.scrollHeight-e.clientHeight}};return{init:function(e){o=r.setOptions(i,e),c=o.enable,d=o.docSlider,t=o.pageChangeReset,d||(r.setEvents(),r.searchElements(),r.setQuery())},update:function(){c&&(r.searchElements(),r.setQuery(),r.runQuery())},enable:function(e){c=void 0===e?!c:e,scrollCue.update()},_hasDocSlider:function(){return d},_hasPageChangeReset:function(){return t},_initWithDocSlider:function(e){r.setEvents(e),r.searchElements(),r.setQuery()},_updateWithDocSlider:function(){c&&(r.setQuery(),r.runQuery())},_searchElements:function(){r.searchElements()}}}();function polyfill(){var e,s,r,l,i,t,c=window,d=document;function u(e,t){this.scrollLeft=e,this.scrollTop=t}function n(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function a(e,t){return"Y"===t?e.clientHeight+i<e.scrollHeight:"X"===t?e.clientWidth+i<e.scrollWidth:void 0}function o(e,t){t=c.getComputedStyle(e,null)["overflow"+t];return"auto"===t||"scroll"===t}function p(e){for(;e!==d.body&&!1===(i=void 0,i=a(t=e,"Y")&&o(t,"Y"),t=a(t,"X")&&o(t,"X"),i||t);)e=e.parentNode||e.host;var t,i;return e}function h(e){var t,i=(l()-e.startTime)/s;t=i=1<i?1:i,i=.5*(1-Math.cos(Math.PI*t)),t=e.startX+(e.x-e.startX)*i,i=e.startY+(e.y-e.startY)*i,e.method.call(e.scrollable,t,i),t===e.x&&i===e.y||c.requestAnimationFrame(h.bind(c,e))}function f(e,t,i){var s,n,a,o=l(),e=e===d.body?(n=(s=c).scrollX||c.pageXOffset,a=c.scrollY||c.pageYOffset,r.scroll):(n=(s=e).scrollLeft,a=e.scrollTop,u);h({scrollable:s,method:e,startTime:o,startX:n,startY:a,x:t,y:i})}"scrollBehavior"in d.documentElement.style&&!0!==c.__forceSmoothScrollPolyfill__||(e=c.HTMLElement||c.Element,s=468,r={scroll:c.scroll||c.scrollTo,scrollBy:c.scrollBy,elementScroll:e.prototype.scroll||u,scrollIntoView:e.prototype.scrollIntoView},l=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now,t=c.navigator.userAgent,i=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(t)?1:0,c.scroll=c.scrollTo=function(){void 0!==arguments[0]&&(!0!==n(arguments[0])?f.call(c,d.body,void 0!==arguments[0].left?~~arguments[0].left:c.scrollX||c.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:c.scrollY||c.pageYOffset):r.scroll.call(c,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:c.scrollX||c.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:c.scrollY||c.pageYOffset))},c.scrollBy=function(){void 0!==arguments[0]&&(n(arguments[0])?r.scrollBy.call(c,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(c,d.body,~~arguments[0].left+(c.scrollX||c.pageXOffset),~~arguments[0].top+(c.scrollY||c.pageYOffset)))},e.prototype.scroll=e.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==n(arguments[0])){var e=arguments[0].left,t=arguments[0].top;f.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},e.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==n(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},e.prototype.scrollIntoView=function(){var e,t,i;!0!==n(arguments[0])?(t=(e=p(this)).getBoundingClientRect(),i=this.getBoundingClientRect(),e!==d.body?(f.call(this,e,e.scrollLeft+i.left-t.left,e.scrollTop+i.top-t.top),"fixed"!==c.getComputedStyle(e).position&&c.scrollBy({left:t.left,top:t.top,behavior:"smooth"})):c.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])})}"object"==typeof exports&&"undefined"!=typeof module?module.exports={polyfill:polyfill}:polyfill(),function(r,c){var t,n,d="createElement",y="getElementsByTagName",b="length",w="style",l="title",g="undefined",x="setAttribute",_="getAttribute",S=null,v="__svgInject",T="--inject-",C=new RegExp(T+"\\d+","g"),E="LOAD_FAIL",k="SVG_INVALID",u=["src","alt","onload","onerror"],$=c[d]("a"),A=typeof SVGRect!=g,p={useCache:!0,copyAttributes:!0,makeIdsUnique:!0},P={clipPath:["clip-path"],"color-profile":S,cursor:S,filter:S,linearGradient:["fill","stroke"],marker:["marker","marker-end","marker-mid","marker-start"],mask:S,pattern:["fill","stroke"],radialGradient:["fill","stroke"]},a=1,h=2,I=1;function M(e){return(t=t||new XMLSerializer).serializeToString(e)}function O(e,t){var i,s,n,a=T+I++,o=/url\("?#([a-zA-Z][\w:.-]*)"?\)/g,r=e.querySelectorAll("[id]"),l=t?[]:S,c={},d=[],u=!1;if(r[b]){for(v=0;v<r[b];v++)(s=r[v].localName)in P&&(c[s]=1);for(s in c)(P[s]||[s]).forEach(function(e){d.indexOf(e)<0&&d.push(e)});d[b]&&d.push(w);for(var p,h,f,m=e[y]("*"),g=e,v=-1;g!=S;){if(g.localName==w)(f=(h=g.textContent)&&h.replace(o,function(e,t){return l&&(l[t]=1),"url(#"+t+a+")"}))!==h&&(g.textContent=f);else if(g.hasAttributes()){for(n=0;n<d[b];n++)p=d[n],(f=(h=g[_](p))&&h.replace(o,function(e,t){return l&&(l[t]=1),"url(#"+t+a+")"}))!==h&&g[x](p,f);["xlink:href","href"].forEach(function(e){var t=g[_](e);/^\s*#/.test(t)&&(t=t.trim(),g[x](e,t+a),l&&(l[t.substring(1)]=1))})}g=m[++v]}for(v=0;v<r[b];v++)i=r[v],l&&!l[i.id]||(i.id+=a,u=!0)}return u}function L(e,t,i,s){var n;t?(t[x]("data-inject-url",i),(n=e.parentNode)&&(s.copyAttributes&&function(e,t){for(var i,s=e.attributes,n=0;n<s[b];n++){var a,o,r=(o=s[n]).name;-1==u.indexOf(r)&&(i=o.value,r==l?((o=t.firstElementChild)&&o.localName.toLowerCase()==l?a=o:(a=c[d+"NS"]("http://www.w3.org/2000/svg",l),t.insertBefore(a,o)),a.textContent=i):t[x](r,i))}}(e,t),t=(i=s.beforeInject)&&i(e,t)||t,n.replaceChild(t,e),e[v]=a,D(e),(n=s.afterInject)&&n(e,t))):N(e,s)}function f(){for(var e={},t=arguments,i=0;i<t[b];i++){var s,n=t[i];for(s in n)n.hasOwnProperty(s)&&(e[s]=n[s])}return e}function z(e,t){if(t){try{i=e,s=(n=n||new DOMParser).parseFromString(i,"text/xml")}catch(e){return S}return s[y]("parsererror")[b]?S:s.documentElement}var i,s=c.createElement("div");return s.innerHTML=e,s.firstElementChild}function D(e){e.removeAttribute("onload")}function s(e){console.error("SVGInject: "+e)}function i(e,t,i){e[v]=h,i.onFail?i.onFail(e,t):s(t)}function N(e,t){D(e),i(e,k,t)}function j(e,t){D(e),i(e,"SVG_NOT_SUPPORTED",t)}function H(e,t){i(e,E,t)}function B(e){e.onload=S,e.onerror=S}function R(){s("no img element")}var e=function e(t,i){var s,n,a=f(p,i),m={};function o(o,r){r=f(a,r);function e(t){function e(){var e=r.onAllFinish;e&&e(),t&&t()}if(o&&typeof o[b]!=g){var i=0,s=o[b];if(0==s)e();else{function n(){++i==s&&e()}for(var a=0;a<s;a++)l(o[a],r,n)}}else l(o,r,e)}return typeof Promise==g?e():new Promise(e)}function l(a,o,e){if(a){var t=a[v];if(t)Array.isArray(t)?t.push(e):e();else{if(B(a),!A)return j(a,o),e(),0;t=o.beforeLoad,t=t&&t(a)||a[_]("src");if(!t)return""===t&&H(a,o),e(),0;var i=[];a[v]=i;function r(){e(),i.forEach(function(e){e()})}function l(t){d&&(m[c].forEach(function(e){e(t)}),m[c]=t)}var c=($.href=t,$.href),d=o.useCache,u=o.makeIdsUnique;if(d){function s(e){var t,i,s,n;e===E?H(a,o):e===k?N(a,o):(i=e[0],s=e[1],n=e[2],u&&(i===S?(i=O(t=z(s,!1),!1),e[0]=i,e[2]=i&&M(t)):i&&(s=n.replace(C,T+I++))),t=t||z(s,!1),L(a,t,c,o)),r()}if(typeof(n=m[c])!=g)return n.isCallbackQueue?n.push(s):s(n),0;(n=[]).isCallbackQueue=!0,m[c]=n}p=function(e,t){var i,s,n=e instanceof Document?e.documentElement:z(t,!0),e=o.afterLoad;!e||(s=e(n,t)||n)&&(t=(i="string"==typeof s)?s:M(n),n=i?z(s,!0):s),n instanceof SVGElement?(i=S,u&&(i=O(n,!1)),d&&(s=i&&M(n),l([i,t,s])),L(a,n,c,o)):(N(a,o),l(k)),r()},h=function(){H(a,o),l(E),r()},(n=c)&&((f=new XMLHttpRequest).onreadystatechange=function(){var e;4==f.readyState&&(200==(e=f.status)?p(f.responseXML,f.responseText.trim()):(400<=e||0==e)&&h())},f.open("GET",n,!0),f.send())}}else R();var n,p,h,f}return A&&(s='img[onload^="'+t+'("]{visibility:hidden;}',(n=c[y]("head")[0])&&((i=c[d](w)).type="text/css",i.appendChild(c.createTextNode(s)),n.appendChild(i))),o.setOptions=function(e){a=f(a,e)},o.create=e,o.err=function(e,t){e?e[v]!=h&&(B(e),A?(D(e),H(e,a)):j(e,a),t&&(D(e),e.src=t)):R()},r[t]=o}("SVGInject");"object"==typeof module&&"object"==typeof module.exports&&(module.exports=e)}(window,document),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Swiper=t()}(this,function(){"use strict";function s(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function n(t,i){void 0===t&&(t={}),void 0===i&&(i={}),Object.keys(i).forEach(e=>{void 0===t[e]?t[e]=i[e]:s(i[e])&&s(t[e])&&0<Object.keys(i[e]).length&&n(t[e],i[e])})}const t={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function T(){var e="undefined"!=typeof document?document:{};return n(e,t),e}const i={document:t,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function I(){var e="undefined"!=typeof window?window:{};return n(e,i),e}class o extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function a(e){const t=[];return(e=void 0===e?[]:e).forEach(e=>{Array.isArray(e)?t.push(...a(e)):t.push(e)}),t}function r(e,t){return Array.prototype.filter.call(e,t)}function M(e,t){const i=I(),s=T();let n=[];if(!t&&e instanceof o)return e;if(!e)return new o(n);if("string"==typeof e){const i=e.trim();if(0<=i.indexOf("<")&&0<=i.indexOf(">")){let e="div";0===i.indexOf("<li")&&(e="ul"),0===i.indexOf("<tr")&&(e="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(e="tr"),0===i.indexOf("<tbody")&&(e="table"),0===i.indexOf("<option")&&(e="select");const t=s.createElement(e);t.innerHTML=i;for(let e=0;e<t.childNodes.length;e+=1)n.push(t.childNodes[e])}else n=function(e,t){if("string"!=typeof e)return[e];const i=[],s=t.querySelectorAll(e);for(let e=0;e<s.length;e+=1)i.push(s[e]);return i}(e.trim(),t||s)}else if(e.nodeType||e===i||e===s)n.push(e);else if(Array.isArray(e)){if(e instanceof o)return e;n=e}return new o(function(t){const i=[];for(let e=0;e<t.length;e+=1)-1===i.indexOf(t[e])&&i.push(t[e]);return i}(n))}M.fn=o.prototype;const l={addClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const s=a(t.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...s)}),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const s=a(t.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...s)}),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const s=a(t.map(e=>e.split(" ")));return 0<r(this,t=>0<s.filter(e=>t.classList.contains(e)).length).length},toggleClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const s=a(t.map(e=>e.split(" ")));this.forEach(t=>{s.forEach(e=>{t.classList.toggle(e)})})},attr:function(t,i){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let e=0;e<this.length;e+=1)if(2===arguments.length)this[e].setAttribute(t,i);else for(const i in t)this[e][i]=t[i],this[e].setAttribute(i,t[i]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?t+"ms":t;return this},on:function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];let[s,n,a,o]=i;function r(t){var e=t.target;if(e){const i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),M(e).is(n))a.apply(e,i);else{const t=M(e).parents();for(let e=0;e<t.length;e+=1)M(t[e]).is(n)&&a.apply(t[e],i)}}}function l(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof i[1]&&([s,a,o]=i,n=void 0),o=o||!1;var c=s.split(" ");let d;for(let e=0;e<this.length;e+=1){const i=this[e];if(n)for(d=0;d<c.length;d+=1){const t=c[d];i.dom7LiveListeners||(i.dom7LiveListeners={}),i.dom7LiveListeners[t]||(i.dom7LiveListeners[t]=[]),i.dom7LiveListeners[t].push({listener:a,proxyListener:r}),i.addEventListener(t,r,o)}else for(d=0;d<c.length;d+=1){const t=c[d];i.dom7Listeners||(i.dom7Listeners={}),i.dom7Listeners[t]||(i.dom7Listeners[t]=[]),i.dom7Listeners[t].push({listener:a,proxyListener:l}),i.addEventListener(t,l,o)}}return this},off:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];let[t,n,a,o]=i;"function"==typeof i[1]&&([t,a,o]=i,n=void 0),o=o||!1;var r=t.split(" ");for(let e=0;e<r.length;e+=1){const i=r[e];for(let e=0;e<this.length;e+=1){const s=this[e];let t;if(!n&&s.dom7Listeners?t=s.dom7Listeners[i]:n&&s.dom7LiveListeners&&(t=s.dom7LiveListeners[i]),t&&t.length)for(let e=t.length-1;0<=e;--e){const n=t[e];!(a&&n.listener===a||a&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===a)&&a||(s.removeEventListener(i,n.proxyListener,o),t.splice(e,1))}}}return this},trigger:function(){const t=I();for(var i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];const a=s[0].split(" "),o=s[1];for(let e=0;e<a.length;e+=1){const n=a[e];for(let e=0;e<this.length;e+=1){const a=this[e];if(t.CustomEvent){const i=new t.CustomEvent(n,{detail:o,bubbles:!0,cancelable:!0});a.dom7EventData=s.filter((e,t)=>0<t),a.dispatchEvent(i),a.dom7EventData=[],delete a.dom7EventData}}}return this},transitionEnd:function(i){const s=this;return i&&s.on("transitionend",function e(t){t.target===this&&(i.call(this,t),s.off("transitionend",e))}),this},outerWidth:function(e){if(0<this.length){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(0<this.length){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=I();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(0<this.length){const e=I(),t=T(),i=this[0],s=i.getBoundingClientRect(),n=t.body,a=i.clientTop||n.clientTop||0,o=i.clientLeft||n.clientLeft||0,r=i===e?e.scrollY:i.scrollTop,l=i===e?e.scrollX:i.scrollLeft;return{top:s.top+r-a,left:s.left+l-o}}return null},css:function(e,t){const i=I();let s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s<this.length;s+=1)for(const t in e)this[s].style[t]=e[t];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}if(2!==arguments.length||"string"!=typeof e)return this;for(s=0;s<this.length;s+=1)this[s].style[e]=t;return this},each:function(i){return i&&this.forEach((e,t)=>{i.apply(e,[e,t])}),this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(e){const t=I(),i=T(),s=this[0];let n,a;if(!s||void 0===e)return!1;if("string"==typeof e){if(s.matches)return s.matches(e);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(e);if(s.msMatchesSelector)return s.msMatchesSelector(e);for(n=M(e),a=0;a<n.length;a+=1)if(n[a]===s)return!0;return!1}if(e===i)return s===i;if(e===t)return s===t;if(e.nodeType||e instanceof o){for(n=e.nodeType?[e]:e,a=0;a<n.length;a+=1)if(n[a]===s)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t=this.length;if(t-1<e)return M([]);if(e<0){t=t+e;return M(t<0?[]:[this[t]])}return M([this[e]])},append:function(){var i;const s=T();for(let e=0;e<arguments.length;e+=1){i=e<0||arguments.length<=e?void 0:arguments[e];for(let t=0;t<this.length;t+=1)if("string"==typeof i){const T=s.createElement("div");for(T.innerHTML=i;T.firstChild;)this[t].appendChild(T.firstChild)}else if(i instanceof o)for(let e=0;e<i.length;e+=1)this[t].appendChild(i[e]);else this[t].appendChild(i)}return this},prepend:function(e){const t=T();let i,s;for(i=0;i<this.length;i+=1)if("string"==typeof e){const T=t.createElement("div");for(T.innerHTML=e,s=T.childNodes.length-1;0<=s;--s)this[i].insertBefore(T.childNodes[s],this[i].childNodes[0])}else if(e instanceof o)for(s=0;s<e.length;s+=1)this[i].insertBefore(e[s],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this},next:function(e){return 0<this.length?e?this[0].nextElementSibling&&M(this[0].nextElementSibling).is(e)?M([this[0].nextElementSibling]):M([]):this[0].nextElementSibling?M([this[0].nextElementSibling]):M([]):M([])},nextAll:function(e){const t=[];let i=this[0];if(!i)return M([]);for(;i.nextElementSibling;){var s=i.nextElementSibling;e&&!M(s).is(e)||t.push(s),i=s}return M(t)},prev:function(e){if(0<this.length){var t=this[0];return e?t.previousElementSibling&&M(t.previousElementSibling).is(e)?M([t.previousElementSibling]):M([]):t.previousElementSibling?M([t.previousElementSibling]):M([])}return M([])},prevAll:function(e){const t=[];let i=this[0];if(!i)return M([]);for(;i.previousElementSibling;){var s=i.previousElementSibling;e&&!M(s).is(e)||t.push(s),i=s}return M(t)},parent:function(t){const i=[];for(let e=0;e<this.length;e+=1)null===this[e].parentNode||t&&!M(this[e].parentNode).is(t)||i.push(this[e].parentNode);return M(i)},parents:function(i){const s=[];for(let t=0;t<this.length;t+=1){let e=this[t].parentNode;for(;e;)i&&!M(e).is(i)||s.push(e),e=e.parentNode}return M(s)},closest:function(e){let t=this;return void 0===e?M([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(t){const i=[];for(let e=0;e<this.length;e+=1){var s=this[e].querySelectorAll(t);for(let e=0;e<s.length;e+=1)i.push(s[e])}return M(i)},children:function(t){const i=[];for(let e=0;e<this.length;e+=1){var s=this[e].children;for(let e=0;e<s.length;e+=1)t&&!M(s[e]).is(t)||i.push(s[e])}return M(i)},filter:function(e){return M(r(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};function C(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function v(){return Date.now()}function O(e,t){void 0===t&&(t="x");const i=I();let s,n,a;const o=function(e){const t=I();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i=i||e.style,i}(e);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,6<n.split(",").length&&(n=n.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix("none"===n?"":n)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),"x"===t&&(n=i.WebKitCSSMatrix?a.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?a.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(e){const i=Object(arguments.length<=0?void 0:e),t=["__proto__","constructor","prototype"];for(let e=1;e<arguments.length;e+=1){var s=e<0||arguments.length<=e?void 0:arguments[e];if(null!=s&&(r=s,!("undefined"!=typeof window&&void 0!==window.HTMLElement?r instanceof HTMLElement:r&&(1===r.nodeType||11===r.nodeType)))){var n=Object.keys(Object(s)).filter(e=>t.indexOf(e)<0);for(let e=0,t=n.length;e<t;e+=1){var a=n[e],o=Object.getOwnPropertyDescriptor(s,a);void 0!==o&&o.enumerable&&(c(i[a])&&c(s[a])?s[a].__swiper__?i[a]=s[a]:f(i[a],s[a]):!c(i[a])&&c(s[a])?(i[a]={},s[a].__swiper__?i[a]=s[a]:f(i[a],s[a])):i[a]=s[a])}}}var r;return i}function E(e,t,i){e.style.setProperty(t,i)}function y(e){let{swiper:i,targetPosition:s,side:n}=e;const a=I(),o=-i.translate;let r,l=null;const c=i.params.speed;i.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(i.cssModeFrameID);const d=s>o?"next":"prev",u=(e,t)=>"next"===d&&t<=e||"prev"===d&&e<=t,p=()=>{r=(new Date).getTime(),null===l&&(l=r);var e=Math.max(Math.min((r-l)/c,1),0),e=.5-Math.cos(e*Math.PI)/2;let t=o+e*(s-o);if(u(t,s)&&(t=s),i.wrapperEl.scrollTo({[n]:t}),u(t,s))return i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo({[n]:t})}),void a.cancelAnimationFrame(i.cssModeFrameID);i.cssModeFrameID=a.requestAnimationFrame(p)};p()}let e,d,u;function m(){return e=e||function(){const i=I(),e=T();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch),passiveListener:function(){let e=!1;try{var t=Object.defineProperty({},"passive",{get(){e=!0}});i.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in i}}(),e}function p(e){let{swiper:t,runCallbacks:i,direction:s,step:n}=e;var{activeIndex:a,previousIndex:e}=t;let o=s;if(o=o||(e<a?"next":a<e?"prev":"reset"),t.emit("transition"+n),i&&a!==e){if("reset"===o)return t.emit("slideResetTransition"+n),0;t.emit("slideChangeTransition"+n),"next"===o?t.emit("slideNextTransition"+n):t.emit("slidePrevTransition"+n)}}function h(){var e,t,i=this,{params:s,el:n}=i;n&&0===n.offsetWidth||(s.breakpoints&&i.setBreakpoint(),{allowSlideNext:e,allowSlidePrev:t,snapGrid:n}=i,i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses(),("auto"===s.slidesPerView||1<s.slidesPerView)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides?i.slideTo(i.slides.length-1,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.run(),i.allowSlidePrev=t,i.allowSlideNext=e,i.params.watchOverflow&&n!==i.snapGrid&&i.checkOverflow())}Object.keys(l).forEach(e=>{Object.defineProperty(M.fn,e,{value:l[e],writable:!0})});let g=!1;function b(){}const w=(e,t)=>{const i=T(),{params:s,touchEvents:n,el:a,wrapperEl:o,device:r,support:l}=e,c=!!s.nested,d="on"===t?"addEventListener":"removeEventListener",u=t;if(l.touch){const t=!("touchstart"!==n.start||!l.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};a[d](n.start,e.onTouchStart,t),a[d](n.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),a[d](n.end,e.onTouchEnd,t),n.cancel&&a[d](n.cancel,e.onTouchEnd,t)}else a[d](n.start,e.onTouchStart,!1),i[d](n.move,e.onTouchMove,c),i[d](n.end,e.onTouchEnd,!1);(s.preventClicks||s.preventClicksPropagation)&&a[d]("click",e.onClick,!0),s.cssMode&&o[d]("scroll",e.onScroll),s.updateOnWindowResize?e[u](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",h,!0):e[u]("observerUpdate",h,!0)},x=(e,t)=>e.grid&&t.grid&&1<t.grid.rows;var _={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",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,_emitClasses:!1};const S={eventsEmitter:{on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)}),s},once(s,n,e){const a=this;return!a.eventsListeners||a.destroyed||"function"!=typeof n?a:(o.__emitterProxy=n,a.on(s,o,e));function o(){a.off(s,o),o.__emitterProxy&&delete o.__emitterProxy;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.apply(a,t)}},onAny(e,t){if(!this.eventsListeners||this.destroyed)return this;if("function"!=typeof e)return this;t=t?"unshift":"push";return this.eventsAnyListeners.indexOf(e)<0&&this.eventsAnyListeners[t](e),this},offAny(e){if(!this.eventsListeners||this.destroyed)return this;if(!this.eventsAnyListeners)return this;e=this.eventsAnyListeners.indexOf(e);return 0<=e&&this.eventsAnyListeners.splice(e,1),this},off(e,s){const n=this;return!n.eventsListeners||n.destroyed||n.eventsListeners&&e.split(" ").forEach(i=>{void 0===s?n.eventsListeners[i]=[]:n.eventsListeners[i]&&n.eventsListeners[i].forEach((e,t)=>{(e===s||e.__emitterProxy&&e.__emitterProxy===s)&&n.eventsListeners[i].splice(t,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return s="string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],i=a.slice(1,a.length),e):(t=a[0].events,i=a[0].data,a[0].context||e),i.unshift(s),(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(s,[t,...i])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(s,i)})}),e}},update:{updateSize:function(){var e=this;let t,i;const s=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s[0].clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),i=i-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const i=this;function s(e){return i.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function n(e,t){return parseFloat(e.getPropertyValue(s(t))||0)}const a=i.params,{$wrapperEl:o,size:r,rtlTranslate:l,wrongRTL:c}=i,d=i.virtual&&a.virtual.enabled,e=(d?i.virtual:i).slides.length,u=o.children("."+i.params.slideClass),p=(d?i.virtual.slides:u).length;let h=[];const f=[],m=[];let g=a.slidesOffsetBefore;"function"==typeof g&&(g=a.slidesOffsetBefore.call(i));let v=a.slidesOffsetAfter;"function"==typeof v&&(v=a.slidesOffsetAfter.call(i));var y=i.snapGrid.length,b=i.slidesGrid.length;let w=a.spaceBetween,x=-g,_=0,S=0;if(void 0!==r){"string"==typeof w&&0<=w.indexOf("%")&&(w=parseFloat(w.replace("%",""))/100*r),i.virtualSize=-w,l?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),a.centeredSlides&&a.cssMode&&(E(i.wrapperEl,"--swiper-centered-offset-before",""),E(i.wrapperEl,"--swiper-centered-offset-after",""));var T=a.grid&&1<a.grid.rows&&i.grid;let t;T&&i.grid.initSlides(p);var C="auto"===a.slidesPerView&&a.breakpoints&&0<Object.keys(a.breakpoints).filter(e=>void 0!==a.breakpoints[e].slidesPerView).length;for(let e=0;e<p;e+=1){t=0;const l=u.eq(e);if(T&&i.grid.updateSlide(e,l,p,s),"none"!==l.css("display")){if("auto"===a.slidesPerView){C&&(u[e].style[s("width")]="");const r=getComputedStyle(l[0]),c=l[0].style.transform,d=l[0].style.webkitTransform;if(c&&(l[0].style.transform="none"),d&&(l[0].style.webkitTransform="none"),a.roundLengths)t=i.isHorizontal()?l.outerWidth(!0):l.outerHeight(!0);else{const i=n(r,"width"),s=n(r,"padding-left"),a=n(r,"padding-right"),o=n(r,"margin-left"),c=n(r,"margin-right"),d=r.getPropertyValue("box-sizing");if(d&&"border-box"===d)t=i+o+c;else{const{clientWidth:n,offsetWidth:r}=l[0];t=i+s+a+o+c+(r-n)}}c&&(l[0].style.transform=c),d&&(l[0].style.webkitTransform=d),a.roundLengths&&(t=Math.floor(t))}else t=(r-(a.slidesPerView-1)*w)/a.slidesPerView,a.roundLengths&&(t=Math.floor(t)),u[e]&&(u[e].style[s("width")]=t+"px");u[e]&&(u[e].swiperSlideSize=t),m.push(t),a.centeredSlides?(x=x+t/2+_/2+w,0===_&&0!==e&&(x=x-r/2-w),0===e&&(x=x-r/2-w),Math.abs(x)<.001&&(x=0),a.roundLengths&&(x=Math.floor(x)),S%a.slidesPerGroup==0&&h.push(x),f.push(x)):(a.roundLengths&&(x=Math.floor(x)),(S-Math.min(i.params.slidesPerGroupSkip,S))%i.params.slidesPerGroup==0&&h.push(x),f.push(x),x=x+t+w),i.virtualSize+=t+w,_=t,S+=1}}if(i.virtualSize=Math.max(i.virtualSize,r)+v,l&&c&&("slide"===a.effect||"coverflow"===a.effect)&&o.css({width:i.virtualSize+a.spaceBetween+"px"}),a.setWrapperSize&&o.css({[s("width")]:i.virtualSize+a.spaceBetween+"px"}),T&&i.grid.updateWrapperSize(t,h,s),!a.centeredSlides){const s=[];for(let t=0;t<h.length;t+=1){let e=h[t];a.roundLengths&&(e=Math.floor(e)),h[t]<=i.virtualSize-r&&s.push(e)}h=s,1<Math.floor(i.virtualSize-r)-Math.floor(h[h.length-1])&&h.push(i.virtualSize-r)}if(0===h.length&&(h=[0]),0!==a.spaceBetween){const n=i.isHorizontal()&&l?"marginLeft":s("marginRight");u.filter((e,t)=>!a.cssMode||t!==u.length-1).css({[n]:w+"px"})}if(a.centeredSlides&&a.centeredSlidesBounds){let t=0;m.forEach(e=>{t+=e+(a.spaceBetween||0)}),t-=a.spaceBetween;const s=t-r;h=h.map(e=>e<0?-g:e>s?s+v:e)}if(a.centerInsufficientSlides){let t=0;if(m.forEach(e=>{t+=e+(a.spaceBetween||0)}),t-=a.spaceBetween,t<r){const s=(r-t)/2;h.forEach((e,t)=>{h[t]=e-s}),f.forEach((e,t)=>{f[t]=e+s})}}if(Object.assign(i,{slides:u,snapGrid:h,slidesGrid:f,slidesSizesGrid:m}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){E(i.wrapperEl,"--swiper-centered-offset-before",-h[0]+"px"),E(i.wrapperEl,"--swiper-centered-offset-after",i.size/2-m[m.length-1]/2+"px");const s=-i.snapGrid[0],n=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(e=>e+s),i.slidesGrid=i.slidesGrid.map(e=>e+n)}if(p!==e&&i.emit("slidesLengthChange"),h.length!==y&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),f.length!==b&&i.emit("slidesGridLengthChange"),a.watchSlidesProgress&&i.updateSlidesOffset(),!(d||a.cssMode||"slide"!==a.effect&&"fade"!==a.effect)){const s=a.containerModifierClass+"backface-hidden",n=i.$el.hasClass(s);p<=a.maxBackfaceHiddenSlides?n||i.$el.addClass(s):n&&i.$el.removeClass(s)}}},updateAutoHeight:function(e){const i=this,t=[],s=i.virtual&&i.params.virtual.enabled;let n,a=0;"number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed);var o=t=>(s?i.slides.filter(e=>parseInt(e.getAttribute("data-swiper-slide-index"),10)===t):i.slides.eq(t))[0];if("auto"!==i.params.slidesPerView&&1<i.params.slidesPerView)if(i.params.centeredSlides)(i.visibleSlides||M([])).each(e=>{t.push(e)});else for(n=0;n<Math.ceil(i.params.slidesPerView);n+=1){const e=i.activeIndex+n;if(e>i.slides.length&&!s)break;t.push(o(e))}else t.push(o(i.activeIndex));for(n=0;n<t.length;n+=1)if(void 0!==t[n]){const e=t[n].offsetHeight;a=e>a?e:a}!a&&0!==a||i.$wrapperEl.css("height",a+"px")},updateSlidesOffset:function(){const t=this.slides;for(let e=0;e<t.length;e+=1)t[e].swiperSlideOffset=this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const s=this,n=s.params,{slides:a,rtlTranslate:o,snapGrid:r}=s;if(0!==a.length){void 0===a[0].swiperSlideOffset&&s.updateSlidesOffset();let i=o?e:-e;a.removeClass(n.slideVisibleClass),s.visibleSlidesIndexes=[],s.visibleSlides=[];for(let t=0;t<a.length;t+=1){const l=a[t];let e=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(e-=a[0].swiperSlideOffset);const M=(i+(n.centeredSlides?s.minTranslate():0)-e)/(l.swiperSlideSize+n.spaceBetween),c=(i-r[0]+(n.centeredSlides?s.minTranslate():0)-e)/(l.swiperSlideSize+n.spaceBetween),d=-(i-e),u=d+s.slidesSizesGrid[t];(0<=d&&d<s.size-1||1<u&&u<=s.size||d<=0&&u>=s.size)&&(s.visibleSlides.push(l),s.visibleSlidesIndexes.push(t),a.eq(t).addClass(n.slideVisibleClass)),l.progress=o?-M:M,l.originalProgress=o?-c:c}s.visibleSlides=M(s.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:a,isEnd:o}=t;var r=a,l=o;o=0==s?(n=0,a=!0):(n=(e-t.minTranslate())/s,a=n<=0,1<=n),Object.assign(t,{progress:n,isBeginning:a,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),a&&!r&&t.emit("reachBeginning toEdge"),o&&!l&&t.emit("reachEnd toEdge"),(r&&!a||l&&!o)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const{slides:e,params:t,$wrapperEl:i,activeIndex:s,realIndex:n}=this,a=this.virtual&&t.virtual.enabled;let o;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} `+t.slideDuplicatePrevClass),o=a?this.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${s}"]`):e.eq(s),o.addClass(t.slideActiveClass),t.loop&&(o.hasClass(t.slideDuplicateClass)?i.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${n}"]`):i.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${n}"]`)).addClass(t.slideDuplicateActiveClass);let r=o.nextAll("."+t.slideClass).eq(0).addClass(t.slideNextClass);t.loop&&0===r.length&&(r=e.eq(0),r.addClass(t.slideNextClass));let l=o.prevAll("."+t.slideClass).eq(0).addClass(t.slidePrevClass);t.loop&&0===l.length&&(l=e.eq(-1),l.addClass(t.slidePrevClass)),t.loop&&((r.hasClass(t.slideDuplicateClass)?i.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${r.attr("data-swiper-slide-index")}"]`):i.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${r.attr("data-swiper-slide-index")}"]`)).addClass(t.slideDuplicateNextClass),(l.hasClass(t.slideDuplicateClass)?i.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`):i.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`)).addClass(t.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:s,snapGrid:n,params:a,activeIndex:o,realIndex:r,snapIndex:l}=t;let c,d=e;if(void 0===d){for(let e=0;e<s.length;e+=1)void 0!==s[e+1]?i>=s[e]&&i<s[e+1]-(s[e+1]-s[e])/2?d=e:i>=s[e]&&i<s[e+1]&&(d=e+1):i>=s[e]&&(d=e);a.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(0<=n.indexOf(i))c=n.indexOf(i);else{const u=Math.min(a.slidesPerGroupSkip,d);c=u+Math.floor((d-u)/a.slidesPerGroup)}c>=n.length&&(c=n.length-1),d!==o?(e=parseInt(t.slides.eq(d).attr("data-swiper-slide-index")||d,10),Object.assign(t,{snapIndex:c,realIndex:e,previousIndex:o,activeIndex:d}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),r!==e&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")):c!==l&&(t.snapIndex=c,t.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this,i=t.params,s=M(e).closest("."+i.slideClass)[0];let n,a=!1;if(s)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===s){a=!0,n=e;break}if(!s||!a)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(M(s).attr("data-swiper-slide-index"),10):t.clickedIndex=n,i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var{params:t,rtlTranslate:i,translate:s,$wrapperEl:n}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let a=O(n[0],e);return i&&(a=-a),a||0},setTranslate:function(e,t){const i=this,{rtlTranslate:s,params:n,$wrapperEl:a,wrapperEl:o,progress:r}=i;let l=0,c=0;i.isHorizontal()?l=s?-e:e:c=e,n.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:n.virtualTranslate||a.transform(`translate3d(${l}px, ${c}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c;var d=i.maxTranslate()-i.minTranslate();(0==d?0:(e-i.minTranslate())/d)!==r&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);const a=this,{params:o,wrapperEl:r}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;var l=a.minTranslate(),c=a.maxTranslate(),e=s&&l<e?l:s&&e<c?c:e;if(a.updateProgress(e),o.cssMode){const d=a.isHorizontal();if(0===t)r[d?"scrollLeft":"scrollTop"]=-e;else{if(!a.support.smoothScroll)return y({swiper:a,targetPosition:-e,side:d?"left":"top"}),!0;r.scrollTo({[d?"left":"top"]:-e,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(e),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(e),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,i&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this["params"];i.cssMode||(i.autoHeight&&this.updateAutoHeight(),p({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this["params"];this.animating=!1,i.cssMode||(this.setTransition(0),p({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,i,s,n){if(void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),"number"!=typeof(e=void 0===e?0:e)&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const a=this;let o=e;o<0&&(o=0);const{params:r,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:h,enabled:f}=a;if(a.animating&&r.preventInteractionOnTransition||!f&&!s&&!n)return!1;n=Math.min(a.params.slidesPerGroupSkip,o);let m=n+Math.floor((o-n)/a.params.slidesPerGroup);m>=l.length&&(m=l.length-1),(u||r.initialSlide||0)===(d||0)&&i&&a.emit("beforeSlideChangeStart");var g=-l[m];if(a.updateProgress(g),r.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*g),i=Math.floor(100*c[e]),s=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<s-(s-i)/2?o=e:t>=i&&t<s&&(o=e+1):t>=i&&(o=e)}if(a.initialized&&o!==u){if(!a.allowSlideNext&&g<a.translate&&g<a.minTranslate())return!1;if(!a.allowSlidePrev&&g>a.translate&&g>a.maxTranslate()&&(u||0)!==o)return!1}let v;if(v=o>u?"next":o<u?"prev":"reset",p&&-g===a.translate||!p&&g===a.translate)return a.updateActiveIndex(o),r.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==r.effect&&a.setTranslate(g),"reset"!=v&&(a.transitionStart(i,v),a.transitionEnd(i,v)),!1;if(r.cssMode){const e=a.isHorizontal(),i=p?g:-g;if(0===t){const t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),h[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._swiperImmediateVirtual=!1})}else{if(!a.support.smoothScroll)return y({swiper:a,targetPosition:i,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(g),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,v),0===t?a.transitionEnd(i,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,v))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){if(void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),"string"==typeof(e=void 0===e?0:e)){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}let n=e;return this.params.loop&&(n+=this.loopedSlides),this.slideTo(n,t,i,s)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this,{animating:n,enabled:a,params:o}=s;if(!a)return s;let r=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(r=Math.max(s.slidesPerViewDynamic("current",!0),1));a=s.activeIndex<o.slidesPerGroupSkip?1:r;if(o.loop){if(n&&o.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}return o.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+a,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const s=this,{params:n,animating:a,snapGrid:o,slidesGrid:r,rtlTranslate:l,enabled:c}=s;if(!c)return s;if(n.loop){if(a&&n.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=d(l?s.translate:-s.translate),p=o.map(e=>d(e));let h=o[p.indexOf(u)-1];if(void 0===h&&n.cssMode){let i;o.forEach((e,t)=>{u>=e&&(i=t)}),void 0!==i&&(h=o[0<i?i-1:i])}let f=0;if(void 0!==h&&(f=r.indexOf(h),f<0&&(f=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(f=f-s.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return s.slideTo(f,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t=void 0===t?!0:t,i)},slideToClosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var n=this;let a=n.activeIndex;var o=Math.min(n.params.slidesPerGroupSkip,a),r=o+Math.floor((a-o)/n.params.slidesPerGroup),o=n.rtlTranslate?n.translate:-n.translate;if(o>=n.snapGrid[r]){const e=n.snapGrid[r];o-e>(n.snapGrid[r+1]-e)*s&&(a+=n.params.slidesPerGroup)}else{const e=n.snapGrid[r-1];o-e<=(n.snapGrid[r]-e)*s&&(a-=n.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,n.slidesGrid.length-1),n.slideTo(a,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,a=e.clickedIndex;t.loop?e.animating||(n=parseInt(M(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-s/2||a>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),a=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),C(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-s?(e.loopFix(),a=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),C(()=>{e.slideTo(a)})):e.slideTo(a)):e.slideTo(a)}},loop:{loopCreate:function(){const t=this,i=T(),{params:s,$wrapperEl:e}=t,n=0<e.children().length?M(e.children()[0].parentNode):e;n.children(`.${s.slideClass}.`+s.slideDuplicateClass).remove();let a=n.children("."+s.slideClass);if(s.loopFillGroupWithBlank){const t=s.slidesPerGroup-a.length%s.slidesPerGroup;if(t!==s.slidesPerGroup){for(let e=0;e<t;e+=1){const t=M(i.createElement("div")).addClass(s.slideClass+" "+s.slideBlankClass);n.append(t)}a=n.children("."+s.slideClass)}}"auto"!==s.slidesPerView||s.loopedSlides||(s.loopedSlides=a.length),t.loopedSlides=Math.ceil(parseFloat(s.loopedSlides||s.slidesPerView,10)),t.loopedSlides+=s.loopAdditionalSlides,t.loopedSlides>a.length&&t.params.loopedSlidesLimit&&(t.loopedSlides=a.length);const o=[],r=[];a.each((e,t)=>{M(e).attr("data-swiper-slide-index",t)});for(let e=0;e<t.loopedSlides;e+=1){const t=e-Math.floor(e/a.length)*a.length;r.push(a.eq(t)[0]),o.unshift(a.eq(a.length-t-1)[0])}for(let e=0;e<r.length;e+=1)n.append(M(r[e].cloneNode(!0)).addClass(s.slideDuplicateClass));for(let e=o.length-1;0<=e;--e)n.prepend(M(o[e].cloneNode(!0)).addClass(s.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var{activeIndex:t,slides:i,loopedSlides:s,allowSlidePrev:n,allowSlideNext:a,snapGrid:o,rtlTranslate:r}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;o=-o[t]-e.getTranslate();t<s?(l=i.length-3*s+t,l+=s,e.slideTo(l,0,!1,!0)&&0!=o&&e.setTranslate((r?-e.translate:e.translate)-o)):t>=i.length-s&&(l=-i.length+t+s,l+=s,e.slideTo(l,0,!1,!0)&&0!=o&&e.setTranslate((r?-e.translate:e.translate)-o)),e.allowSlidePrev=n,e.allowSlideNext=a,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.`+t.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(!(this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)){const t="container"===this.params.touchEventsTarget?this.el:this.wrapperEl;t.style.cursor="move",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this["container"===this.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=this,t=T(),{params:i,support:s}=e;e.onTouchStart=function(e){const s=this,n=T(),a=I(),o=s.touchEventsData,{params:r,touches:l,enabled:t}=s;if(t&&(!s.animating||!r.preventInteractionOnTransition)){!s.animating&&r.cssMode&&r.loop&&s.loopFix();let t=e;t.originalEvent&&(t=t.originalEvent);let i=M(t.target);if(("wrapper"!==r.touchEventsTarget||i.closest(s.wrapperEl).length)&&(o.isTouchEvent="touchstart"===t.type,(o.isTouchEvent||!("which"in t)||3!==t.which)&&!(!o.isTouchEvent&&"button"in t&&0<t.button||o.isTouched&&o.isMoved))){r.noSwipingClass&&""!==r.noSwipingClass&&t.target&&t.target.shadowRoot&&e.path&&e.path[0]&&(i=M(e.path[0]));var c=r.noSwipingSelector||"."+r.noSwipingClass,d=!(!t.target||!t.target.shadowRoot);if(r.noSwiping&&(d?function(s,e){return function e(t){if(!t||t===T()||t===I())return null;var i=(t=t.assignedSlot?t.assignedSlot:t).closest(s);return i||t.getRootNode?i||e(t.getRootNode().host):null}(e=void 0===e?this:e)}(c,i[0]):i.closest(c)[0]))s.allowClick=!0;else if(!r.swipeHandler||i.closest(r.swipeHandler)[0]){l.currentX=("touchstart"===t.type?t.targetTouches[0]:t).pageX,l.currentY=("touchstart"===t.type?t.targetTouches[0]:t).pageY;var u=l.currentX,p=l.currentY,d=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,c=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(d&&(u<=c||u>=a.innerWidth-c)){if("prevent"!==d)return;e.preventDefault()}if(Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=u,l.startY=p,o.touchStartTime=v(),s.allowClick=!0,s.updateSize(),s.swipeDirection=void 0,0<r.threshold&&(o.allowThresholdMove=!1),"touchstart"!==t.type){let e=!0;i.is(o.focusableElements)&&(e=!1,"SELECT"===i[0].nodeName&&(o.isTouched=!1)),n.activeElement&&M(n.activeElement).is(o.focusableElements)&&n.activeElement!==i[0]&&n.activeElement.blur();const T=e&&s.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!T||i[0].isContentEditable||t.preventDefault()}s.params.freeMode&&s.params.freeMode.enabled&&s.freeMode&&s.animating&&!r.cssMode&&s.freeMode.onTouchStart(),s.emit("touchStart",t)}}}}.bind(e),e.onTouchMove=function(e){const t=T(),n=this,a=n.touchEventsData,{params:o,touches:r,rtlTranslate:l,enabled:i}=n;if(i){let s=e;if(s.originalEvent&&(s=s.originalEvent),a.isTouched){if(!a.isTouchEvent||"touchmove"===s.type){var c="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),d=("touchmove"===s.type?c:s).pageX,e=("touchmove"===s.type?c:s).pageY;if(s.preventedByNestedSwiper)return r.startX=d,void(r.startY=e);if(!n.allowTouchMove)return M(s.target).is(a.focusableElements)||(n.allowClick=!1),void(a.isTouched&&(Object.assign(r,{startX:d,startY:e,currentX:d,currentY:e}),a.touchStartTime=v()));if(a.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(e<r.startY&&n.translate<=n.maxTranslate()||e>r.startY&&n.translate>=n.minTranslate())return a.isTouched=!1,void(a.isMoved=!1)}else if(d<r.startX&&n.translate<=n.maxTranslate()||d>r.startX&&n.translate>=n.minTranslate())return;if(a.isTouchEvent&&t.activeElement&&s.target===t.activeElement&&M(s.target).is(a.focusableElements))return a.isMoved=!0,void(n.allowClick=!1);if(a.allowTouchCallbacks&&n.emit("touchMove",s),!(s.targetTouches&&1<s.targetTouches.length)){r.currentX=d,r.currentY=e;c=r.currentX-r.startX,d=r.currentY-r.startY;if(!(n.params.threshold&&Math.sqrt(c**2+d**2)<n.params.threshold))if(void 0===a.isScrolling&&(n.isHorizontal()&&r.currentY===r.startY||n.isVertical()&&r.currentX===r.startX?a.isScrolling=!1:25<=c*c+d*d&&(e=180*Math.atan2(Math.abs(d),Math.abs(c))/Math.PI,a.isScrolling=n.isHorizontal()?e>o.touchAngle:90-e>o.touchAngle)),a.isScrolling&&n.emit("touchMoveOpposite",s),void 0===a.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(a.startMoving=!0)),a.isScrolling)a.isTouched=!1;else if(a.startMoving){n.allowClick=!1,!o.cssMode&&s.cancelable&&s.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&s.stopPropagation(),a.isMoved||(o.loop&&!o.cssMode&&n.loopFix(),a.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),a.allowMomentumBounce=!1,!o.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",s)),n.emit("sliderMove",s),a.isMoved=!0;let e=n.isHorizontal()?c:d;r.diff=e,e*=o.touchRatio,l&&(e=-e),n.swipeDirection=0<e?"prev":"next",a.currentTranslate=e+a.startTranslate;let t=!0,i=o.resistanceRatio;if(o.touchReleaseOnEdges&&(i=0),0<e&&a.currentTranslate>n.minTranslate()?(t=!1,o.resistance&&(a.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+a.startTranslate+e)**i)):e<0&&a.currentTranslate<n.maxTranslate()&&(t=!1,o.resistance&&(a.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-a.startTranslate-e)**i)),t&&(s.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&a.currentTranslate<a.startTranslate&&(a.currentTranslate=a.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&a.currentTranslate>a.startTranslate&&(a.currentTranslate=a.startTranslate),n.allowSlidePrev||n.allowSlideNext||(a.currentTranslate=a.startTranslate),0<o.threshold){if(!(Math.abs(e)>o.threshold||a.allowThresholdMove))return void(a.currentTranslate=a.startTranslate);if(!a.allowThresholdMove)return a.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,a.currentTranslate=a.startTranslate,void(r.diff=n.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}o.followFinger&&!o.cssMode&&((o.freeMode&&o.freeMode.enabled&&n.freeMode||o.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&o.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(a.currentTranslate),n.setTranslate(a.currentTranslate))}}}}else a.startMoving&&a.isScrolling&&n.emit("touchMoveOpposite",s)}}.bind(e),e.onTouchEnd=function(a){const o=this,e=o.touchEventsData,{params:r,touches:t,rtlTranslate:i,slidesGrid:l,enabled:s}=o;if(s){let n=a;if(n.originalEvent&&(n=n.originalEvent),e.allowTouchCallbacks&&o.emit("touchEnd",n),e.allowTouchCallbacks=!1,!e.isTouched)return e.isMoved&&r.grabCursor&&o.setGrabCursor(!1),e.isMoved=!1,void(e.startMoving=!1);r.grabCursor&&e.isMoved&&e.isTouched&&(!0===o.allowSlideNext||!0===o.allowSlidePrev)&&o.setGrabCursor(!1);var c,d=v(),u=d-e.touchStartTime;if(o.allowClick){const p=n.path||n.composedPath&&n.composedPath();o.updateClickedSlide(p&&p[0]||n.target),o.emit("tap click",n),u<300&&d-e.lastClickTime<300&&o.emit("doubleTap doubleClick",n)}if(e.lastClickTime=v(),C(()=>{o.destroyed||(o.allowClick=!0)}),!e.isTouched||!e.isMoved||!o.swipeDirection||0===t.diff||e.currentTranslate===e.startTranslate)return e.isTouched=!1,e.isMoved=!1,void(e.startMoving=!1);if(e.isTouched=!1,e.isMoved=!1,e.startMoving=!1,c=r.followFinger?i?o.translate:-o.translate:-e.currentTranslate,!r.cssMode)if(o.params.freeMode&&r.freeMode.enabled)o.freeMode.onTouchEnd({currentPos:c});else{let t=0,i=o.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const o=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==l[e+o]?c>=l[e]&&c<l[e+o]&&(t=e,i=l[e+o]-l[e]):c>=l[e]&&(t=e,i=l[l.length-1]-l[l.length-2])}let e=null,s=null;r.rewind&&(o.isBeginning?s=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1:o.isEnd&&(e=0));a=(c-l[t])/i,d=t<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;u>r.longSwipesMs?r.longSwipes?("next"===o.swipeDirection&&(a>=r.longSwipesRatio?o.slideTo(r.rewind&&o.isEnd?e:t+d):o.slideTo(t)),"prev"===o.swipeDirection&&(a>1-r.longSwipesRatio?o.slideTo(t+d):null!==s&&a<0&&Math.abs(a)>r.longSwipesRatio?o.slideTo(s):o.slideTo(t))):o.slideTo(o.activeIndex):r.shortSwipes?!o.navigation||n.target!==o.navigation.nextEl&&n.target!==o.navigation.prevEl?("next"===o.swipeDirection&&o.slideTo(null!==e?e:t+d),"prev"===o.swipeDirection&&o.slideTo(null!==s?s:t)):n.target===o.navigation.nextEl?o.slideTo(t+d):o.slideTo(t):o.slideTo(o.activeIndex)}}}.bind(e),i.cssMode&&(e.onScroll=function(){var e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;s&&(e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses(),(0==(t=e.maxTranslate()-e.minTranslate())?0:(e.translate-e.minTranslate())/t)!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1))}.bind(e)),e.onClick=function(e){this.enabled&&(this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}.bind(e),s.touch&&!g&&(t.addEventListener("touchstart",b),g=!0),w(e,"on")},detachEvents:function(){w(this,"off")}},breakpoints:{setBreakpoint:function(){const s=this,{activeIndex:e,initialized:t,loopedSlides:i=0,params:n,$el:a}=s,o=n.breakpoints;if(o&&0!==Object.keys(o).length){var r=s.getBreakpoint(o,s.params.breakpointsBase,s.el);if(r&&s.currentBreakpoint!==r){const d=(r in o?o[r]:void 0)||s.originalParams,u=x(s,n),p=x(s,d),h=n.enabled;u&&!p?(a.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),s.emitContainerClasses()):!u&&p&&(a.addClass(n.containerModifierClass+"grid"),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===n.grid.fill)&&a.addClass(n.containerModifierClass+"grid-column"),s.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(e=>{var t=n[e]&&n[e].enabled,i=d[e]&&d[e].enabled;t&&!i&&s[e].disable(),!t&&i&&s[e].enable()});var l=d.direction&&d.direction!==n.direction,c=n.loop&&(d.slidesPerView!==n.slidesPerView||l);l&&t&&s.changeDirection(),f(s.params,d);l=s.params.enabled;Object.assign(s,{allowTouchMove:s.params.allowTouchMove,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev}),h&&!l?s.disable():!h&&l&&s.enable(),s.currentBreakpoint=r,s.emit("_beforeBreakpoint",d),c&&t&&(s.loopDestroy(),s.loopCreate(),s.updateSlides(),s.slideTo(e-i+s.loopedSlides,0,!1)),s.emit("breakpoint",d)}}},getBreakpoint:function(e,i,s){if(void 0===i&&(i="window"),e&&("container"!==i||s)){let t=!1;const n=I(),a="window"===i?n.innerHeight:s.clientHeight,o=Object.keys(e).map(e=>{if("string"!=typeof e||0!==e.indexOf("@"))return{value:e,point:e};var t=parseFloat(e.substr(1));return{value:a*t,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){const{point:I,value:a}=o[e];"window"===i?n.matchMedia(`(min-width: ${a}px)`).matches&&(t=I):a<=s.clientWidth&&(t=I)}return t||"max"}}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,s=i["slidesOffsetBefore"];if(s){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:i,$el:s,device:n,support:a}=this,o=function(e,i){const s=[];return e.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(e=>{t[e]&&s.push(i+e)}):"string"==typeof t&&s.push(i+t)}),s}(["initialized",t.direction,{"pointer-events":!a.touch},{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&1<t.grid.rows},{"grid-column":t.grid&&1<t.grid.rows&&"column"===t.grid.fill},{android:n.android},{ios:n.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),s.addClass([...e].join(" ")),this.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,i,s,n,a){const o=I();let r;function l(){a&&a()}!(M(e).parent("picture")[0]||e.complete&&n)&&t?(r=new o.Image,r.onload=l,r.onerror=l,s&&(r.sizes=s),i&&(r.srcset=i),t&&(r.src=t)):l()},preloadImages:function(){const t=this;function i(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let e=0;e<t.imagesToLoad.length;e+=1){const s=t.imagesToLoad[e];t.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,i)}}}},k={};class ${constructor(){let t,i;for(var h,e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];if(1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?i=s[0]:[t,i]=s,i=i||{},i=f({},i),t&&!i.el&&(i.el=t),i.el&&1<M(i.el).length){const t=[];return M(i.el).each(e=>{e=f({},i,{el:e});t.push(new $(e))}),t}const a=this;a.__swiper__=!0,a.support=m(),a.device=(void 0===(h={userAgent:i.userAgent})&&(h={}),d=d||function(){var e=(void 0===h?{}:h)["userAgent"];const t=m(),i=I(),s=i.navigator.platform,n=e||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,r=i.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);var d=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),e="Win32"===s;let p="MacIntel"===s;return!c&&p&&t.touch&&0<=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(o+"x"+r)&&(c=n.match(/(Version)\/([\d.]+)/),c=c||[0,1,"13_0_0"],p=!1),l&&!e&&(a.os="android",a.android=!0),(c||u||d)&&(a.os="ios",a.ios=!0),a}(),d),a.browser=(u=u||function(){const t=I();return{isSafari:function(){const e=t.navigator.userAgent.toLowerCase();return 0<=e.indexOf("safari")&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}(),u),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],i.modules&&Array.isArray(i.modules)&&a.modules.push(...i.modules);const o={};a.modules.forEach(e=>{var s,n;e({swiper:a,extendParams:(s=i,n=o,function(e){void 0===e&&(e={});var t=Object.keys(e)[0],i=e[t];"object"==typeof i&&null!==i&&(0<=["navigation","pagination","scrollbar"].indexOf(t)&&!0===s[t]&&(s[t]={auto:!0}),t in s&&"enabled"in i&&(!0===s[t]&&(s[t]={enabled:!0}),"object"!=typeof s[t]||"enabled"in s[t]||(s[t].enabled=!0),s[t]||(s[t]={enabled:!1}))),f(n,e)}),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});var r,l=f({},_,o);return a.params=f({},l,k,i),a.originalParams=f({},a.params),a.passedParams=f({},i),a.params&&a.params.on&&Object.keys(a.params.on).forEach(e=>{a.on(e,a.params.on[e])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=M,Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:M(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:(r=["touchstart","touchmove","touchend","touchcancel"],l=["pointerdown","pointermove","pointerup"],a.touchEventsTouch={start:r[0],move:r[1],end:r[2],cancel:r[3]},a.touchEventsDesktop={start:l[0],move:l[1],end:l[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.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,focusableElements:a.params.focusableElements,lastClickTime:v(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);var i=this.minTranslate(),i=(this.maxTranslate()-i)*e+i;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){const t=this;if(t.params._emitClasses&&t.el){const e=t.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass));t.emit("_containerClasses",e.join(" "))}}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const i=this;if(i.params._emitClasses&&i.el){const s=[];i.slides.each(e=>{var t=i.getSlideClasses(e);s.push({slideEl:e,classNames:t}),i.emit("_slideClass",e,t)}),i.emit("_slideClasses",s)}}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);var{params:i,slides:s,slidesGrid:n,slidesSizesGrid:a,size:o,activeIndex:r}=this;let l=1;if(i.centeredSlides){let t,i=s[r].swiperSlideSize;for(let e=r+1;e<s.length;e+=1)s[e]&&!t&&(i+=s[e].swiperSlideSize,l+=1,i>o&&(t=!0));for(let e=r-1;0<=e;--e)s[e]&&!t&&(i+=s[e].swiperSlideSize,l+=1,i>o&&(t=!0))}else if("current"===e)for(let e=r+1;e<s.length;e+=1)(t?n[e]+a[e]-n[r]<o:n[e]-n[r]<o)&&(l+=1);else for(let e=r-1;0<=e;--e)n[r]-n[e]<o&&(l+=1);return l}update(){const t=this;var e,i;function s(){var e=t.rtlTranslate?-1*t.translate:t.translate,e=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}t&&!t.destroyed&&({snapGrid:e,params:i}=t,i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode&&t.params.freeMode.enabled?(s(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||1<t.params.slidesPerView)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||s(),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update"))}changeDirection(t,e){void 0===e&&(e=!0);var i=this,s=i.params.direction;return(t=t||("horizontal"===s?"vertical":"horizontal"))===s||"horizontal"!==t&&"vertical"!==t||(i.$el.removeClass(""+i.params.containerModifierClass+s).addClass(""+i.params.containerModifierClass+t),i.emitContainerClasses(),i.params.direction=t,i.slides.each(e=>{"vertical"===t?e.style.width="":e.style.height=""}),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(e){var t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(t.params.containerModifierClass+"rtl"),t.el.dir="rtl"):(t.$el.removeClass(t.params.containerModifierClass+"rtl"),t.el.dir="ltr"),t.update())}mount(t){const e=this;if(e.mounted)return!0;const i=M(t||e.params.el);if(!(t=i[0]))return!1;t.swiper=e;const s=()=>"."+(e.params.wrapperClass||"").trim().split(" ").join(".");let n=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const e=M(t.shadowRoot.querySelector(s()));return e.children=e=>i.children(e),e}return(i.children?i:M(i)).children(s())})();if(0===n.length&&e.params.createElements){const t=T().createElement("div");n=M(t),t.className=e.params.wrapperClass,i.append(t),i.children("."+e.params.slideClass).each(e=>{n.append(e)})}return Object.assign(e,{$el:i,el:t,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0}init(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,$el:n,$wrapperEl:a,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.$el[0].swiper=null,function(){const t=i;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}()),i.destroyed=!0),null}static extendDefaults(e){f(k,e)}static get extendedDefaults(){return k}static get defaults(){return _}static installModule(e){$.prototype.__modules__||($.prototype.__modules__=[]);const t=$.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>$.installModule(e)):$.installModule(e),$}}function A(i,s,n,a){const o=T();return i.params.createElements&&Object.keys(a).forEach(t=>{if(!n[t]&&!0===n.auto){let e=i.$el.children("."+a[t])[0];e||(e=o.createElement("div"),e.className=a[t],i.$el.append(e)),n[t]=e,s[t]=e}}),n}function P(e){return"."+(e=void 0===e?"":e).trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function L(e){const{effect:i,swiper:s,on:t,setTranslate:n,setTransition:a,overwriteParams:o,perspective:r,recreateShadows:l,getEffectParams:c}=e;let d;t("beforeInit",()=>{var e;s.params.effect===i&&(s.classNames.push(""+s.params.containerModifierClass+i),r&&r()&&s.classNames.push(s.params.containerModifierClass+"3d"),e=o?o():{},Object.assign(s.params,e),Object.assign(s.originalParams,e))}),t("setTranslate",()=>{s.params.effect===i&&n()}),t("setTransition",(e,t)=>{s.params.effect===i&&a(t)}),t("transitionEnd",()=>{s.params.effect===i&&l&&c&&c().slideShadows&&(s.slides.each(e=>{s.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()}),l())}),t("virtualUpdate",()=>{s.params.effect===i&&(s.slides.length||(d=!0),requestAnimationFrame(()=>{d&&s.slides&&s.slides.length&&(n(),d=!1)}))})}function z(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function D(e){let{swiper:s,duration:t,transformEl:n,allSlides:a}=e;const{slides:o,activeIndex:r,$wrapperEl:l}=s;if(s.params.virtualTranslate&&0!==t){let e,i=!1;e=a?n?o.find(n):o:n?o.eq(r).find(n):o.eq(r),e.transitionEnd(()=>{if(!i&&s&&!s.destroyed){i=!0,s.animating=!1;var t=["webkitTransitionEnd","transitionend"];for(let e=0;e<t.length;e+=1)l.trigger(t[e])}})}}function N(e,t,i){const s="swiper-slide-shadow"+(i?"-"+i:""),n=e.transformEl?t.find(e.transformEl):t;let a=n.children("."+s);return a.length||(a=M(`<div class="swiper-slide-shadow${i?"-"+i:""}"></div>`),n.append(a)),a}return Object.keys(S).forEach(t=>{Object.keys(S[t]).forEach(e=>{$.prototype[e]=S[t][e]})}),$.use([function(e){let{swiper:a,on:t,emit:i}=e;const s=I();let n=null,o=null;const r=()=>{a&&!a.destroyed&&a.initialized&&(i("beforeResize"),i("resize"))},l=()=>{a&&!a.destroyed&&a.initialized&&i("orientationchange")};t("init",()=>{a.params.resizeObserver&&void 0!==s.ResizeObserver?a&&!a.destroyed&&a.initialized&&(n=new ResizeObserver(i=>{o=s.requestAnimationFrame(()=>{var{width:e,height:t}=a;let s=e,n=t;i.forEach(e=>{var{contentBoxSize:t,contentRect:i,target:e}=e;e&&e!==a.el||(s=i?i.width:(t[0]||t).inlineSize,n=i?i.height:(t[0]||t).blockSize)}),s===e&&n===t||r()})}),n.observe(a.el)):(s.addEventListener("resize",r),s.addEventListener("orientationchange",l))}),t("destroy",()=>{o&&s.cancelAnimationFrame(o),n&&n.unobserve&&a.el&&(n.unobserve(a.el),n=null),s.removeEventListener("resize",r),s.removeEventListener("orientationchange",l)})},function(e){let{swiper:i,extendParams:t,on:s,emit:n}=e;function a(e,t){void 0===t&&(t={});const i=new(r.MutationObserver||r.WebkitMutationObserver)(e=>{var t;1!==e.length?(t=function(){n("observerUpdate",e[0])},r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)):n("observerUpdate",e[0])});i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),o.push(i)}const o=[],r=I();t({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",()=>{if(i.params.observer){if(i.params.observeParents){var t=i.$el.parents();for(let e=0;e<t.length;e+=1)a(t[e])}a(i.$el[0],{childList:i.params.observeSlideChildren}),a(i.$wrapperEl[0],{attributes:!1})}}),s("destroy",()=>{o.forEach(e=>{e.disconnect()}),o.splice(0,o.length)})}]),$.use([function(e){let t,{swiper:x,extendParams:i,on:s,emit:_}=e;function S(e,t){const i=x.params.virtual;if(i.cache&&x.virtual.cache[t])return x.virtual.cache[t];const s=i.renderSlide?M(i.renderSlide.call(x,e,t)):M(`<div class="${x.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),i.cache&&(x.virtual.cache[t]=s),s}function o(t){const{slidesPerView:e,slidesPerGroup:i,centeredSlides:s}=x.params,{addSlidesBefore:n,addSlidesAfter:a}=x.params.virtual,{from:o,to:r,slides:l,slidesGrid:c,offset:d}=x.virtual;x.params.cssMode||x.updateActiveIndex();var u=x.activeIndex||0;let p,h,f;p=x.rtlTranslate?"right":x.isHorizontal()?"left":"top",f=s?(h=Math.floor(e/2)+i+a,Math.floor(e/2)+i+n):(h=e+(i-1)+a,i+n);const m=Math.max((u||0)-f,0),g=Math.min((u||0)+h,l.length-1),v=(x.slidesGrid[m]||0)-(x.slidesGrid[0]||0);function y(){x.updateSlides(),x.updateProgress(),x.updateSlidesClasses(),x.lazy&&x.params.lazy.enabled&&x.lazy.load(),_("virtualUpdate")}if(Object.assign(x.virtual,{from:m,to:g,offset:v,slidesGrid:x.slidesGrid}),o===m&&r===g&&!t)return x.slidesGrid!==c&&v!==d&&x.slides.css(p,v+"px"),x.updateProgress(),void _("virtualUpdate");if(x.params.virtual.renderExternal)return x.params.virtual.renderExternal.call(x,{offset:v,from:m,to:g,slides:function(){const t=[];for(let e=m;e<=g;e+=1)t.push(l[e]);return t}()}),void(x.params.virtual.renderExternalUpdate?y():_("virtualUpdate"));const b=[],w=[];if(t)x.$wrapperEl.find("."+x.params.slideClass).remove();else for(let e=o;e<=r;e+=1)(e<m||e>g)&&x.$wrapperEl.find(`.${x.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let e=0;e<l.length;e+=1)e>=m&&e<=g&&(void 0===r||t?w.push(e):(e>r&&w.push(e),e<o&&b.push(e)));w.forEach(e=>{x.$wrapperEl.append(S(l[e],e))}),b.sort((e,t)=>t-e).forEach(e=>{x.$wrapperEl.prepend(S(l[e],e))}),x.$wrapperEl.children(".swiper-slide").css(p,v+"px"),y()}i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),x.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},s("beforeInit",()=>{x.params.virtual.enabled&&(x.virtual.slides=x.params.virtual.slides,x.classNames.push(x.params.containerModifierClass+"virtual"),x.params.watchSlidesProgress=!0,x.originalParams.watchSlidesProgress=!0,x.params.initialSlide||o())}),s("setTranslate",()=>{x.params.virtual.enabled&&(x.params.cssMode&&!x._immediateVirtual?(clearTimeout(t),t=setTimeout(()=>{o()},100)):o())}),s("init update resize",()=>{x.params.virtual.enabled&&x.params.cssMode&&E(x.wrapperEl,"--swiper-virtual-size",x.virtualSize+"px")}),Object.assign(x.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&x.virtual.slides.push(t[e]);else x.virtual.slides.push(t);o(!0)},prependSlide:function(s){const n=x.activeIndex;let e=n+1,a=1;if(Array.isArray(s)){for(let e=0;e<s.length;e+=1)s[e]&&x.virtual.slides.unshift(s[e]);e=n+s.length,a=s.length}else x.virtual.slides.unshift(s);if(x.params.virtual.cache){const s=x.virtual.cache,n={};Object.keys(s).forEach(e=>{const t=s[e],i=t.attr("data-swiper-slide-index");i&&t.attr("data-swiper-slide-index",parseInt(i,10)+a),n[parseInt(e,10)+a]=t}),x.virtual.cache=n}o(!0),x.slideTo(e,0)},removeSlide:function(i){if(null!=i){let t=x.activeIndex;if(Array.isArray(i))for(let e=i.length-1;0<=e;--e)x.virtual.slides.splice(i[e],1),x.params.virtual.cache&&delete x.virtual.cache[i[e]],i[e]<t&&--t,t=Math.max(t,0);else x.virtual.slides.splice(i,1),x.params.virtual.cache&&delete x.virtual.cache[i],i<t&&--t,t=Math.max(t,0);o(!0),x.slideTo(t,0)}},removeAllSlides:function(){x.virtual.slides=[],x.params.virtual.cache&&(x.virtual.cache={}),o(!0),x.slideTo(0,0)},update:o})},function(e){let{swiper:u,extendParams:t,on:i,emit:p}=e;const h=T(),f=I();function s(t){if(u.enabled){const i=u["rtlTranslate"];let e=t;e.originalEvent&&(e=e.originalEvent);const s=e.keyCode||e.charCode,n=u.params.keyboard.pageUpDown,a=n&&33===s,o=n&&34===s,r=37===s,l=39===s,c=38===s,d=40===s;if(!u.allowSlideNext&&(u.isHorizontal()&&l||u.isVertical()&&d||o))return!1;if(!u.allowSlidePrev&&(u.isHorizontal()&&r||u.isVertical()&&c||a))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||h.activeElement&&h.activeElement.nodeName&&("input"===h.activeElement.nodeName.toLowerCase()||"textarea"===h.activeElement.nodeName.toLowerCase()))){if(u.params.keyboard.onlyInViewport&&(a||o||r||l||c||d)){let t=!1;if(0<u.$el.parents("."+u.params.slideClass).length&&0===u.$el.parents("."+u.params.slideActiveClass).length)return;const e=u.$el,s=e[0].clientWidth,n=e[0].clientHeight,p=f.innerWidth,h=f.innerHeight,a=u.$el.offset();i&&(a.left-=u.$el[0].scrollLeft);const o=[[a.left,a.top],[a.left+s,a.top],[a.left,a.top+n],[a.left+s,a.top+n]];for(let e=0;e<o.length;e+=1){const i=o[e];0<=i[0]&&i[0]<=p&&0<=i[1]&&i[1]<=h&&(0===i[0]&&0===i[1]||(t=!0))}if(!t)return}u.isHorizontal()?((a||o||r||l)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),((o||l)&&!i||(a||r)&&i)&&u.slideNext(),((a||r)&&!i||(o||l)&&i)&&u.slidePrev()):((a||o||c||d)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(o||d)&&u.slideNext(),(a||c)&&u.slidePrev()),p("keyPress",s)}}}function n(){u.keyboard.enabled||(M(h).on("keydown",s),u.keyboard.enabled=!0)}function a(){u.keyboard.enabled&&(M(h).off("keydown",s),u.keyboard.enabled=!1)}u.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",()=>{u.params.keyboard.enabled&&n()}),i("destroy",()=>{u.keyboard.enabled&&a()}),Object.assign(u.keyboard,{enable:n,disable:a})},function(e){let{swiper:c,extendParams:t,on:i,emit:d}=e;const s=I();let u;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),c.mousewheel={enabled:!1};let p,n=v();const h=[];function a(){c.enabled&&(c.mouseEntered=!0)}function o(){c.enabled&&(c.mouseEntered=!1)}function f(e){return!(c.params.mousewheel.thresholdDelta&&e.delta<c.params.mousewheel.thresholdDelta)&&!(c.params.mousewheel.thresholdTime&&v()-n<c.params.mousewheel.thresholdTime)&&(6<=e.delta&&v()-n<60||(e.direction<0?c.isEnd&&!c.params.loop||c.animating||(c.slideNext(),d("scroll",e.raw)):c.isBeginning&&!c.params.loop||c.animating||(c.slidePrev(),d("scroll",e.raw)),n=(new s.Date).getTime(),0))}function r(s){let n=s,a=!0;if(c.enabled){var o=c.params.mousewheel;c.params.cssMode&&n.preventDefault();let e=c.$el;if("container"!==c.params.mousewheel.eventsTarget&&(e=M(c.params.mousewheel.eventsTarget)),!c.mouseEntered&&!e[0].contains(n.target)&&!o.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let t=0;var r=c.rtlTranslate?-1:1,l=function(e){let t=0,i=0,s=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=n,n=0),(s||n)&&e.deltaMode&&(1===e.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!t&&(t=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:n}}(n);if(o.forceToAxis)if(c.isHorizontal()){if(!(Math.abs(l.pixelX)>Math.abs(l.pixelY)))return!0;t=-l.pixelX*r}else{if(!(Math.abs(l.pixelY)>Math.abs(l.pixelX)))return!0;t=-l.pixelY}else t=Math.abs(l.pixelX)>Math.abs(l.pixelY)?-l.pixelX*r:-l.pixelY;if(0===t)return!0;o.invert&&(t=-t);let i=c.getTranslate()+t*o.sensitivity;if(i>=c.minTranslate()&&(i=c.minTranslate()),i<=c.maxTranslate()&&(i=c.maxTranslate()),a=!!c.params.loop||!(i===c.minTranslate()||i===c.maxTranslate()),a&&c.params.nested&&n.stopPropagation(),c.params.freeMode&&c.params.freeMode.enabled){const s={time:v(),delta:Math.abs(t),direction:Math.sign(t)},a=p&&s.time<p.time+500&&s.delta<=p.delta&&s.direction===p.direction;if(!a){p=void 0,c.params.loop&&c.loopFix();let e=c.getTranslate()+t*o.sensitivity;const M=c.isBeginning,v=c.isEnd;if(e>=c.minTranslate()&&(e=c.minTranslate()),e<=c.maxTranslate()&&(e=c.maxTranslate()),c.setTransition(0),c.setTranslate(e),c.updateProgress(),c.updateActiveIndex(),c.updateSlidesClasses(),(!M&&c.isBeginning||!v&&c.isEnd)&&c.updateSlidesClasses(),c.params.freeMode.sticky){clearTimeout(u),u=void 0,15<=h.length&&h.shift();const n=h.length?h[h.length-1]:void 0,a=h[0];if(h.push(s),n&&(s.delta>n.delta||s.direction!==n.direction))h.splice(0);else if(15<=h.length&&s.time-a.time<500&&1<=a.delta-s.delta&&s.delta<=6){const n=0<t?.8:.2;p=s,h.splice(0),u=C(()=>{c.slideToClosest(c.params.speed,!0,void 0,n)},0)}u=u||C(()=>{p=s,h.splice(0),c.slideToClosest(c.params.speed,!0,void 0,.5)},500)}if(a||d("scroll",n),c.params.autoplay&&c.params.autoplayDisableOnInteraction&&c.autoplay.stop(),e===c.minTranslate()||e===c.maxTranslate())return!0}}else{const n={time:v(),delta:Math.abs(t),direction:Math.sign(t),raw:s};2<=h.length&&h.shift();const a=h.length?h[h.length-1]:void 0;if(h.push(n),(!a||n.direction!==a.direction||n.delta>a.delta||n.time>a.time+150)&&f(n),function(e){var t=c.params.mousewheel;if(e.direction<0){if(c.isEnd&&!c.params.loop&&t.releaseOnEdges)return 1}else if(c.isBeginning&&!c.params.loop&&t.releaseOnEdges)return 1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}}function l(e){let t=c.$el;"container"!==c.params.mousewheel.eventsTarget&&(t=M(c.params.mousewheel.eventsTarget)),t[e]("mouseenter",a),t[e]("mouseleave",o),t[e]("wheel",r)}function m(){return c.params.cssMode?(c.wrapperEl.removeEventListener("wheel",r),!0):!c.mousewheel.enabled&&(l("on"),c.mousewheel.enabled=!0)}function g(){return c.params.cssMode?(c.wrapperEl.addEventListener(event,r),!0):!!c.mousewheel.enabled&&(l("off"),!(c.mousewheel.enabled=!1))}i("init",()=>{!c.params.mousewheel.enabled&&c.params.cssMode&&g(),c.params.mousewheel.enabled&&m()}),i("destroy",()=>{c.params.cssMode&&m(),c.mousewheel.enabled&&g()}),Object.assign(c.mousewheel,{enable:m,disable:g})},function(e){let{swiper:a,extendParams:t,on:i,emit:o}=e;function s(e){let t;return e&&(t=M(e),a.params.uniqueNavElements&&"string"==typeof e&&1<t.length&&1===a.$el.find(e).length&&(t=a.$el.find(e))),t}function n(e,t){var i=a.params.navigation;e&&0<e.length&&(e[t?"addClass":"removeClass"](i.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=t),a.params.watchOverflow&&a.enabled&&e[a.isLocked?"addClass":"removeClass"](i.lockClass))}function r(){var e,t;a.params.loop||({$nextEl:e,$prevEl:t}=a.navigation,n(t,a.isBeginning&&!a.params.rewind),n(e,a.isEnd&&!a.params.rewind))}function l(e){e.preventDefault(),a.isBeginning&&!a.params.loop&&!a.params.rewind||(a.slidePrev(),o("navigationPrev"))}function c(e){e.preventDefault(),a.isEnd&&!a.params.loop&&!a.params.rewind||(a.slideNext(),o("navigationNext"))}function d(){var e=a.params.navigation;if(a.params.navigation=A(a,a.originalParams.navigation,a.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),e.nextEl||e.prevEl){const t=s(e.nextEl),i=s(e.prevEl);t&&0<t.length&&t.on("click",c),i&&0<i.length&&i.on("click",l),Object.assign(a.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:i,prevEl:i&&i[0]}),a.enabled||(t&&t.addClass(e.lockClass),i&&i.addClass(e.lockClass))}}function u(){const{$nextEl:e,$prevEl:t}=a.navigation;e&&e.length&&(e.off("click",c),e.removeClass(a.params.navigation.disabledClass)),t&&t.length&&(t.off("click",l),t.removeClass(a.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),a.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},i("init",()=>{!1===a.params.navigation.enabled?p():(d(),r())}),i("toEdge fromEdge lock unlock",()=>{r()}),i("destroy",()=>{u()}),i("enable disable",()=>{const{$nextEl:e,$prevEl:t}=a.navigation;e&&e[a.enabled?"removeClass":"addClass"](a.params.navigation.lockClass),t&&t[a.enabled?"removeClass":"addClass"](a.params.navigation.lockClass)}),i("click",(e,t)=>{const{$nextEl:i,$prevEl:s}=a.navigation,n=t.target;if(a.params.navigation.hideOnClick&&!M(n).is(s)&&!M(n).is(i)&&(!(a.pagination&&a.params.pagination&&a.params.pagination.clickable)||a.pagination.el!==n&&!a.pagination.el.contains(n))){let e;i?e=i.hasClass(a.params.navigation.hiddenClass):s&&(e=s.hasClass(a.params.navigation.hiddenClass)),o(!0===e?"navigationShow":"navigationHide"),i&&i.toggleClass(a.params.navigation.hiddenClass),s&&s.toggleClass(a.params.navigation.hiddenClass)}});const p=()=>{a.$el.addClass(a.params.navigation.navigationDisabledClass),u()};Object.assign(a.navigation,{enable:()=>{a.$el.removeClass(a.params.navigation.navigationDisabledClass),d(),r()},disable:p,update:r,init:d,destroy:u})},function(e){let{swiper:c,extendParams:t,on:i,emit:d}=e;e="swiper-pagination";let u;t({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:e=>e,formatFractionTotal:e=>e,bulletClass:e+"-bullet",bulletActiveClass:e+"-bullet-active",modifierClass:e+"-",currentClass:e+"-current",totalClass:e+"-total",hiddenClass:e+"-hidden",progressbarFillClass:e+"-progressbar-fill",progressbarOppositeClass:e+"-progressbar-opposite",clickableClass:e+"-clickable",lockClass:e+"-lock",horizontalClass:e+"-horizontal",verticalClass:e+"-vertical",paginationDisabledClass:e+"-disabled"}}),c.pagination={el:null,$el:null,bullets:[]};let p=0;function a(){return!c.params.pagination.el||!c.pagination.el||!c.pagination.$el||0===c.pagination.$el.length}function h(e,t){var i=c.params.pagination["bulletActiveClass"];e[t]().addClass(i+"-"+t)[t]().addClass(i+`-${t}-`+t)}function s(){const t=c.rtl,o=c.params.pagination;if(!a()){const r=(c.virtual&&c.params.virtual.enabled?c.virtual:c).slides.length,l=c.pagination.$el;let a;var i=c.params.loop?Math.ceil((r-2*c.loopedSlides)/c.params.slidesPerGroup):c.snapGrid.length;if(c.params.loop?(a=Math.ceil((c.activeIndex-c.loopedSlides)/c.params.slidesPerGroup),a>r-1-2*c.loopedSlides&&(a-=r-2*c.loopedSlides),a>i-1&&(a-=i),a<0&&"bullets"!==c.params.paginationType&&(a=i+a)):a=void 0!==c.snapIndex?c.snapIndex:c.activeIndex||0,"bullets"===o.type&&c.pagination.bullets&&0<c.pagination.bullets.length){const r=c.pagination.bullets;let s,n,e;if(o.dynamicBullets&&(u=r.eq(0)[c.isHorizontal()?"outerWidth":"outerHeight"](!0),l.css(c.isHorizontal()?"width":"height",u*(o.dynamicMainBullets+4)+"px"),1<o.dynamicMainBullets&&void 0!==c.previousIndex&&(p+=a-(c.previousIndex-c.loopedSlides||0),p>o.dynamicMainBullets-1?p=o.dynamicMainBullets-1:p<0&&(p=0)),s=Math.max(a-p,0),n=s+(Math.min(r.length,o.dynamicMainBullets)-1),e=(n+s)/2),r.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>""+o.bulletActiveClass+e).join(" ")),1<l.length)r.each(e=>{const t=M(e),i=t.index();i===a&&t.addClass(o.bulletActiveClass),o.dynamicBullets&&(i>=s&&i<=n&&t.addClass(o.bulletActiveClass+"-main"),i===s&&h(t,"prev"),i===n&&h(t,"next"))});else{const t=r.eq(a),l=t.index();if(t.addClass(o.bulletActiveClass),o.dynamicBullets){const t=r.eq(s),u=r.eq(n);for(let e=s;e<=n;e+=1)r.eq(e).addClass(o.bulletActiveClass+"-main");if(c.params.loop)if(l>=r.length){for(let e=o.dynamicMainBullets;0<=e;--e)r.eq(r.length-e).addClass(o.bulletActiveClass+"-main");r.eq(r.length-o.dynamicMainBullets-1).addClass(o.bulletActiveClass+"-prev")}else h(t,"prev"),h(u,"next");else h(t,"prev"),h(u,"next")}}if(o.dynamicBullets){const d=Math.min(r.length,o.dynamicMainBullets+4),l=(u*d-u)/2-e*u,p=t?"right":"left";r.css(c.isHorizontal()?p:"top",l+"px")}}if("fraction"===o.type&&(l.find(P(o.currentClass)).text(o.formatFractionCurrent(a+1)),l.find(P(o.totalClass)).text(o.formatFractionTotal(i))),"progressbar"===o.type){var s=o.progressbarOpposite?c.isHorizontal()?"vertical":"horizontal":c.isHorizontal()?"horizontal":"vertical";const r=(a+1)/i;let e=1,t=1;"horizontal"==s?e=r:t=r,l.find(P(o.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${e}) scaleY(${t})`).transition(c.params.speed)}"custom"===o.type&&o.renderCustom?(l.html(o.renderCustom(c,a+1,i)),d("paginationRender",l[0])):d("paginationUpdate",l[0]),c.params.watchOverflow&&c.enabled&&l[c.isLocked?"addClass":"removeClass"](o.lockClass)}}function n(){const s=c.params.pagination;if(!a()){const e=(c.virtual&&c.params.virtual.enabled?c.virtual:c).slides.length,n=c.pagination.$el;let i="";if("bullets"===s.type){let t=c.params.loop?Math.ceil((e-2*c.loopedSlides)/c.params.slidesPerGroup):c.snapGrid.length;c.params.freeMode&&c.params.freeMode.enabled&&!c.params.loop&&t>e&&(t=e);for(let e=0;e<t;e+=1)s.renderBullet?i+=s.renderBullet.call(c,e,s.bulletClass):i+=`<${s.bulletElement} class="${s.bulletClass}"></${s.bulletElement}>`;n.html(i),c.pagination.bullets=n.find(P(s.bulletClass))}"fraction"===s.type&&(i=s.renderFraction?s.renderFraction.call(c,s.currentClass,s.totalClass):`<span class="${s.currentClass}"></span> / <span class="${s.totalClass}"></span>`,n.html(i)),"progressbar"===s.type&&(i=s.renderProgressbar?s.renderProgressbar.call(c,s.progressbarFillClass):`<span class="${s.progressbarFillClass}"></span>`,n.html(i)),"custom"!==s.type&&d("paginationRender",c.pagination.$el[0])}}function o(){c.params.pagination=A(c,c.originalParams.pagination,c.params.pagination,{el:"swiper-pagination"});const t=c.params.pagination;if(t.el){let e=M(t.el);0!==e.length&&(c.params.uniqueNavElements&&"string"==typeof t.el&&1<e.length&&(e=c.$el.find(t.el),1<e.length&&(e=e.filter(e=>M(e).parents(".swiper")[0]===c.el))),"bullets"===t.type&&t.clickable&&e.addClass(t.clickableClass),e.addClass(t.modifierClass+t.type),e.addClass(c.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(e.addClass(""+t.modifierClass+t.type+"-dynamic"),p=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&e.addClass(t.progressbarOppositeClass),t.clickable&&e.on("click",P(t.bulletClass),function(e){e.preventDefault();let t=M(this).index()*c.params.slidesPerGroup;c.params.loop&&(t+=c.loopedSlides),c.slideTo(t)}),Object.assign(c.pagination,{$el:e,el:e[0]}),c.enabled||e.addClass(t.lockClass))}}function r(){var e=c.params.pagination;if(!a()){const t=c.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),t.removeClass(c.isHorizontal()?e.horizontalClass:e.verticalClass),c.pagination.bullets&&c.pagination.bullets.removeClass&&c.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click",P(e.bulletClass))}}i("init",()=>{!1===c.params.pagination.enabled?l():(o(),n(),s())}),i("activeIndexChange",()=>{!c.params.loop&&void 0!==c.snapIndex||s()}),i("snapIndexChange",()=>{c.params.loop||s()}),i("slidesLengthChange",()=>{c.params.loop&&(n(),s())}),i("snapGridLengthChange",()=>{c.params.loop||(n(),s())}),i("destroy",()=>{r()}),i("enable disable",()=>{const e=c.pagination["$el"];e&&e[c.enabled?"removeClass":"addClass"](c.params.pagination.lockClass)}),i("lock unlock",()=>{s()}),i("click",(e,t)=>{const i=t.target,s=c.pagination["$el"];if(c.params.pagination.el&&c.params.pagination.hideOnClick&&s&&0<s.length&&!M(i).hasClass(c.params.pagination.bulletClass)&&(!c.navigation||!(c.navigation.nextEl&&i===c.navigation.nextEl||c.navigation.prevEl&&i===c.navigation.prevEl))){const e=s.hasClass(c.params.pagination.hiddenClass);d(!0===e?"paginationShow":"paginationHide"),s.toggleClass(c.params.pagination.hiddenClass)}});const l=()=>{c.$el.addClass(c.params.pagination.paginationDisabledClass),c.pagination.$el&&c.pagination.$el.addClass(c.params.pagination.paginationDisabledClass),r()};Object.assign(c.pagination,{enable:()=>{c.$el.removeClass(c.params.pagination.paginationDisabledClass),c.pagination.$el&&c.pagination.$el.removeClass(c.params.pagination.paginationDisabledClass),o(),n(),s()},disable:l,render:n,update:s,init:o,destroy:r})},function(e){let{swiper:c,extendParams:t,on:i,emit:o}=e;const d=T();let r,l,u,s,p=!1,h=null,f=null;function n(){if(c.params.scrollbar.el&&c.scrollbar.el){const{scrollbar:i,rtlTranslate:s,progress:n}=c,{$dragEl:a,$el:o}=i,r=c.params.scrollbar;let e=l,t=(u-l)*n;s?(t=-t,0<t?(e=l-t,t=0):-t+l>u&&(e=u+t)):t<0?(e=l+t,t=0):t+l>u&&(e=u-t),c.isHorizontal()?(a.transform(`translate3d(${t}px, 0, 0)`),a[0].style.width=e+"px"):(a.transform(`translate3d(0px, ${t}px, 0)`),a[0].style.height=e+"px"),r.hide&&(clearTimeout(h),o[0].style.opacity=1,h=setTimeout(()=>{o[0].style.opacity=0,o.transition(400)},1e3))}}function a(){if(c.params.scrollbar.el&&c.scrollbar.el){const e=c["scrollbar"],{$dragEl:t,$el:i}=e;t[0].style.width="",t[0].style.height="",u=c.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,s=c.size/(c.virtualSize+c.params.slidesOffsetBefore-(c.params.centeredSlides?c.snapGrid[0]:0)),l="auto"===c.params.scrollbar.dragSize?u*s:parseInt(c.params.scrollbar.dragSize,10),c.isHorizontal()?t[0].style.width=l+"px":t[0].style.height=l+"px",i[0].style.display=1<=s?"none":"",c.params.scrollbar.hide&&(i[0].style.opacity=0),c.params.watchOverflow&&c.enabled&&e.$el[c.isLocked?"addClass":"removeClass"](c.params.scrollbar.lockClass)}}function m(e){return c.isHorizontal()?("touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0]:e).clientX:("touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0]:e).clientY}function g(e){const{scrollbar:t,rtlTranslate:i}=c,s=t["$el"];let n;n=(m(e)-s.offset()[c.isHorizontal()?"left":"top"]-(null!==r?r:l/2))/(u-l),n=Math.max(Math.min(n,1),0),i&&(n=1-n);e=c.minTranslate()+(c.maxTranslate()-c.minTranslate())*n;c.updateProgress(e),c.setTranslate(e),c.updateActiveIndex(),c.updateSlidesClasses()}function v(e){const t=c.params.scrollbar,{scrollbar:i,$wrapperEl:s}=c,{$el:n,$dragEl:a}=i;p=!0,r=e.target===a[0]||e.target===a?m(e)-e.target.getBoundingClientRect()[c.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),a.transition(100),g(e),clearTimeout(f),n.transition(0),t.hide&&n.css("opacity",1),c.params.cssMode&&c.$wrapperEl.css("scroll-snap-type","none"),o("scrollbarDragStart",e)}function y(e){const{scrollbar:t,$wrapperEl:i}=c,{$el:s,$dragEl:n}=t;p&&(e.preventDefault?e.preventDefault():e.returnValue=!1,g(e),i.transition(0),s.transition(0),n.transition(0),o("scrollbarDragMove",e))}function b(e){const t=c.params.scrollbar,{scrollbar:i,$wrapperEl:s}=c,n=i["$el"];p&&(p=!1,c.params.cssMode&&(c.$wrapperEl.css("scroll-snap-type",""),s.transition("")),t.hide&&(clearTimeout(f),f=C(()=>{n.css("opacity",0),n.transition(400)},1e3)),o("scrollbarDragEnd",e),t.snapOnRelease&&c.slideToClosest())}function w(e){var{scrollbar:t,touchEventsTouch:i,touchEventsDesktop:s,params:n,support:a}=c,t=t.$el;if(t){const o=t[0],r=!(!a.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},l=!(!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o&&(e="on"===e?"addEventListener":"removeEventListener",a.touch?(o[e](i.start,v,r),o[e](i.move,y,r),o[e](i.end,b,l)):(o[e](s.start,v,r),d[e](s.move,y,r),d[e](s.end,b,l)))}}function x(){const{scrollbar:i,$el:s}=c;c.params.scrollbar=A(c,c.originalParams.scrollbar,c.params.scrollbar,{el:"swiper-scrollbar"});var n=c.params.scrollbar;if(n.el){let e=M(n.el);c.params.uniqueNavElements&&"string"==typeof n.el&&1<e.length&&1===s.find(n.el).length&&(e=s.find(n.el)),e.addClass(c.isHorizontal()?n.horizontalClass:n.verticalClass);let t=e.find("."+c.params.scrollbar.dragClass);0===t.length&&(t=M(`<div class="${c.params.scrollbar.dragClass}"></div>`),e.append(t)),Object.assign(i,{$el:e,el:e[0],$dragEl:t,dragEl:t[0]}),n.draggable&&c.params.scrollbar.el&&c.scrollbar.el&&w("on"),e&&e[c.enabled?"removeClass":"addClass"](c.params.scrollbar.lockClass)}}function _(){const e=c.params.scrollbar,t=c.scrollbar.$el;t&&t.removeClass(c.isHorizontal()?e.horizontalClass:e.verticalClass),c.params.scrollbar.el&&c.scrollbar.el&&w("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),c.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},i("init",()=>{!1===c.params.scrollbar.enabled?S():(x(),a(),n())}),i("update resize observerUpdate lock unlock",()=>{a()}),i("setTranslate",()=>{n()}),i("setTransition",(e,t)=>{t=t,c.params.scrollbar.el&&c.scrollbar.el&&c.scrollbar.$dragEl.transition(t)}),i("enable disable",()=>{const e=c.scrollbar["$el"];e&&e[c.enabled?"removeClass":"addClass"](c.params.scrollbar.lockClass)}),i("destroy",()=>{_()});const S=()=>{c.$el.addClass(c.params.scrollbar.scrollbarDisabledClass),c.scrollbar.$el&&c.scrollbar.$el.addClass(c.params.scrollbar.scrollbarDisabledClass),_()};Object.assign(c.scrollbar,{enable:()=>{c.$el.removeClass(c.params.scrollbar.scrollbarDisabledClass),c.scrollbar.$el&&c.scrollbar.$el.removeClass(c.params.scrollbar.scrollbarDisabledClass),x(),a(),n()},disable:S,updateSize:a,setTranslate:n,init:x,destroy:_})},function(e){let{swiper:d,extendParams:t,on:i}=e;t({parallax:{enabled:!1}});const a=(e,t)=>{const i=d["rtl"],s=M(e),n=i?-1:1,a=s.attr("data-swiper-parallax")||"0";let o=s.attr("data-swiper-parallax-x"),r=s.attr("data-swiper-parallax-y");var l=s.attr("data-swiper-parallax-scale"),e=s.attr("data-swiper-parallax-opacity");if(o||r?(o=o||"0",r=r||"0"):d.isHorizontal()?(o=a,r="0"):(r=a,o="0"),o=0<=o.indexOf("%")?parseInt(o,10)*t*n+"%":o*t*n+"px",r=0<=r.indexOf("%")?parseInt(r,10)*t+"%":r*t+"px",null!=e){const c=e-(e-1)*(1-Math.abs(t));s[0].style.opacity=c}if(null==l)s.transform(`translate3d(${o}, ${r}, 0px)`);else{const c=l-(l-1)*(1-Math.abs(t));s.transform(`translate3d(${o}, ${r}, 0px) scale(${c})`)}},s=()=>{const{$el:e,slides:t,progress:s,snapGrid:n}=d;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(e=>{a(e,s)}),t.each((e,t)=>{let i=e.progress;1<d.params.slidesPerGroup&&"auto"!==d.params.slidesPerView&&(i+=Math.ceil(t/2)-s*(n.length-1)),i=Math.min(Math.max(i,-1),1),M(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(e=>{a(e,i)})})};i("beforeInit",()=>{d.params.parallax.enabled&&(d.params.watchSlidesProgress=!0,d.originalParams.watchSlidesProgress=!0)}),i("init",()=>{d.params.parallax.enabled&&s()}),i("setTranslate",()=>{d.params.parallax.enabled&&s()}),i("setTransition",(e,t)=>{d.params.parallax.enabled&&function(s){void 0===s&&(s=d.params.speed);const e=d["$el"];e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(e=>{const t=M(e);let i=parseInt(t.attr("data-swiper-parallax-duration"),10)||s;0===s&&(i=0),t.transition(i)})}(t)})},function(e){let{swiper:x,extendParams:t,on:i,emit:s}=e;const _=I();t({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),x.zoom={enabled:!1};let n,a,o,S=1,r=!1;const T={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},C={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:{}},l={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let c=1;function d(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,e=e.targetTouches[1].pageY;return Math.sqrt((s-t)**2+(e-i)**2)}function u(e){var t=x.support,i=x.params.zoom;if(a=!1,o=!1,!t.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;a=!0,T.scaleStart=d(e)}T.$slideEl&&T.$slideEl.length||(T.$slideEl=M(e.target).closest("."+x.params.slideClass),0===T.$slideEl.length&&(T.$slideEl=x.slides.eq(x.activeIndex)),T.$imageEl=T.$slideEl.find("."+i.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),T.$imageWrapEl=T.$imageEl.parent("."+i.containerClass),T.maxRatio=T.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==T.$imageWrapEl.length)?(T.$imageEl&&T.$imageEl.transition(0),r=!0):T.$imageEl=void 0}function p(e){const t=x.support,i=x.params.zoom,s=x.zoom;if(!t.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;o=!0,T.scaleMove=d(e)}T.$imageEl&&0!==T.$imageEl.length?(t.gestures?s.scale=e.scale*S:s.scale=T.scaleMove/T.scaleStart*S,s.scale>T.maxRatio&&(s.scale=T.maxRatio-1+(s.scale-T.maxRatio+1)**.5),s.scale<i.minRatio&&(s.scale=i.minRatio+1-(i.minRatio-s.scale+1)**.5),T.$imageEl.transform(`translate3d(0,0,0) scale(${s.scale})`)):"gesturechange"===e.type&&u(e)}function h(e){const t=x.device,i=x.support,s=x.params.zoom,n=x.zoom;if(!i.gestures){if(!a||!o)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!t.android)return;a=!1,o=!1}T.$imageEl&&0!==T.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,T.maxRatio),s.minRatio),T.$imageEl.transition(x.params.speed).transform(`translate3d(0,0,0) scale(${n.scale})`),S=n.scale,r=!1,1===n.scale&&(T.$slideEl=void 0))}function f(e){var t=x.zoom;if(T.$imageEl&&0!==T.$imageEl.length&&(x.allowClick=!1,C.isTouched&&T.$slideEl)){C.isMoved||(C.width=T.$imageEl[0].offsetWidth,C.height=T.$imageEl[0].offsetHeight,C.startX=O(T.$imageWrapEl[0],"x")||0,C.startY=O(T.$imageWrapEl[0],"y")||0,T.slideWidth=T.$slideEl[0].offsetWidth,T.slideHeight=T.$slideEl[0].offsetHeight,T.$imageWrapEl.transition(0));var i=C.width*t.scale,t=C.height*t.scale;if(!(i<T.slideWidth&&t<T.slideHeight)){if(C.minX=Math.min(T.slideWidth/2-i/2,0),C.maxX=-C.minX,C.minY=Math.min(T.slideHeight/2-t/2,0),C.maxY=-C.minY,C.touchesCurrent.x=("touchmove"===e.type?e.targetTouches[0]:e).pageX,C.touchesCurrent.y=("touchmove"===e.type?e.targetTouches[0]:e).pageY,!C.isMoved&&!r){if(x.isHorizontal()&&(Math.floor(C.minX)===Math.floor(C.startX)&&C.touchesCurrent.x<C.touchesStart.x||Math.floor(C.maxX)===Math.floor(C.startX)&&C.touchesCurrent.x>C.touchesStart.x))return void(C.isTouched=!1);if(!x.isHorizontal()&&(Math.floor(C.minY)===Math.floor(C.startY)&&C.touchesCurrent.y<C.touchesStart.y||Math.floor(C.maxY)===Math.floor(C.startY)&&C.touchesCurrent.y>C.touchesStart.y))return void(C.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),C.isMoved=!0,C.currentX=C.touchesCurrent.x-C.touchesStart.x+C.startX,C.currentY=C.touchesCurrent.y-C.touchesStart.y+C.startY,C.currentX<C.minX&&(C.currentX=C.minX+1-(C.minX-C.currentX+1)**.8),C.currentX>C.maxX&&(C.currentX=C.maxX-1+(C.currentX-C.maxX+1)**.8),C.currentY<C.minY&&(C.currentY=C.minY+1-(C.minY-C.currentY+1)**.8),C.currentY>C.maxY&&(C.currentY=C.maxY-1+(C.currentY-C.maxY+1)**.8),l.prevPositionX||(l.prevPositionX=C.touchesCurrent.x),l.prevPositionY||(l.prevPositionY=C.touchesCurrent.y),l.prevTime||(l.prevTime=Date.now()),l.x=(C.touchesCurrent.x-l.prevPositionX)/(Date.now()-l.prevTime)/2,l.y=(C.touchesCurrent.y-l.prevPositionY)/(Date.now()-l.prevTime)/2,Math.abs(C.touchesCurrent.x-l.prevPositionX)<2&&(l.x=0),Math.abs(C.touchesCurrent.y-l.prevPositionY)<2&&(l.y=0),l.prevPositionX=C.touchesCurrent.x,l.prevPositionY=C.touchesCurrent.y,l.prevTime=Date.now(),T.$imageWrapEl.transform(`translate3d(${C.currentX}px, ${C.currentY}px,0)`)}}}function m(){const e=x.zoom;T.$slideEl&&x.previousIndex!==x.activeIndex&&(T.$imageEl&&T.$imageEl.transform("translate3d(0,0,0) scale(1)"),T.$imageWrapEl&&T.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,S=1,T.$slideEl=void 0,T.$imageEl=void 0,T.$imageWrapEl=void 0)}function g(y){const b=x.zoom,w=x.params.zoom;if(T.$slideEl||(y&&y.target&&(T.$slideEl=M(y.target).closest("."+x.params.slideClass)),T.$slideEl||(x.params.virtual&&x.params.virtual.enabled&&x.virtual?T.$slideEl=x.$wrapperEl.children("."+x.params.slideActiveClass):T.$slideEl=x.slides.eq(x.activeIndex)),T.$imageEl=T.$slideEl.find("."+w.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),T.$imageWrapEl=T.$imageEl.parent("."+w.containerClass)),T.$imageEl&&0!==T.$imageEl.length&&T.$imageWrapEl&&0!==T.$imageWrapEl.length){let e,t,i,s,n,a,o,r,l,c,d,u,p,h,f,m,g,v;x.params.cssMode&&(x.wrapperEl.style.overflow="hidden",x.wrapperEl.style.touchAction="none"),T.$slideEl.addClass(""+w.zoomedSlideClass),t=void 0===C.touchesStart.x&&y?(e=("touchend"===y.type?y.changedTouches[0]:y).pageX,("touchend"===y.type?y.changedTouches[0]:y).pageY):(e=C.touchesStart.x,C.touchesStart.y),b.scale=T.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,S=T.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,y?(g=T.$slideEl[0].offsetWidth,v=T.$slideEl[0].offsetHeight,i=T.$slideEl.offset().left+_.scrollX,s=T.$slideEl.offset().top+_.scrollY,n=i+g/2-e,a=s+v/2-t,l=T.$imageEl[0].offsetWidth,c=T.$imageEl[0].offsetHeight,d=l*b.scale,u=c*b.scale,f=-(p=Math.min(g/2-d/2,0)),m=-(h=Math.min(v/2-u/2,0)),o=n*b.scale,r=a*b.scale,o<p&&(o=p),o>f&&(o=f),r<h&&(r=h),r>m&&(r=m)):(o=0,r=0),T.$imageWrapEl.transition(300).transform(`translate3d(${o}px, ${r}px,0)`),T.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${b.scale})`)}}function v(){const e=x.zoom,t=x.params.zoom;T.$slideEl||(x.params.virtual&&x.params.virtual.enabled&&x.virtual?T.$slideEl=x.$wrapperEl.children("."+x.params.slideActiveClass):T.$slideEl=x.slides.eq(x.activeIndex),T.$imageEl=T.$slideEl.find("."+t.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),T.$imageWrapEl=T.$imageEl.parent("."+t.containerClass)),T.$imageEl&&0!==T.$imageEl.length&&T.$imageWrapEl&&0!==T.$imageWrapEl.length&&(x.params.cssMode&&(x.wrapperEl.style.overflow="",x.wrapperEl.style.touchAction=""),e.scale=1,S=1,T.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),T.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),T.$slideEl.removeClass(""+t.zoomedSlideClass),T.$slideEl=void 0)}function y(e){var t=x.zoom;t.scale&&1!==t.scale?v():g(e)}function b(){var e=x.support;return{passiveListener:!("touchstart"!==x.touchEvents.start||!e.passiveListener||!x.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function w(){return"."+x.params.slideClass}function E(e){var t=b()["passiveListener"],i=w();x.$wrapperEl[e]("gesturestart",i,u,t),x.$wrapperEl[e]("gesturechange",i,p,t),x.$wrapperEl[e]("gestureend",i,h,t)}function k(){n||(n=!0,E("on"))}function $(){n&&(n=!1,E("off"))}function A(){const e=x.zoom;var t,i,s,n;e.enabled||(e.enabled=!0,t=x.support,{passiveListener:i,activeListenerWithCapture:s}=b(),n=w(),t.gestures?(x.$wrapperEl.on(x.touchEvents.start,k,i),x.$wrapperEl.on(x.touchEvents.end,$,i)):"touchstart"===x.touchEvents.start&&(x.$wrapperEl.on(x.touchEvents.start,n,u,i),x.$wrapperEl.on(x.touchEvents.move,n,p,s),x.$wrapperEl.on(x.touchEvents.end,n,h,i),x.touchEvents.cancel&&x.$wrapperEl.on(x.touchEvents.cancel,n,h,i)),x.$wrapperEl.on(x.touchEvents.move,"."+x.params.zoom.containerClass,f,s))}function P(){const e=x.zoom;var t,i,s,n;e.enabled&&(t=x.support,e.enabled=!1,{passiveListener:i,activeListenerWithCapture:s}=b(),n=w(),t.gestures?(x.$wrapperEl.off(x.touchEvents.start,k,i),x.$wrapperEl.off(x.touchEvents.end,$,i)):"touchstart"===x.touchEvents.start&&(x.$wrapperEl.off(x.touchEvents.start,n,u,i),x.$wrapperEl.off(x.touchEvents.move,n,p,s),x.$wrapperEl.off(x.touchEvents.end,n,h,i),x.touchEvents.cancel&&x.$wrapperEl.off(x.touchEvents.cancel,n,h,i)),x.$wrapperEl.off(x.touchEvents.move,"."+x.params.zoom.containerClass,f,s))}Object.defineProperty(x.zoom,"scale",{get:()=>c,set(e){var t,i;c!==e&&(t=T.$imageEl?T.$imageEl[0]:void 0,i=T.$slideEl?T.$slideEl[0]:void 0,s("zoomChange",e,t,i)),c=e}}),i("init",()=>{x.params.zoom.enabled&&A()}),i("destroy",()=>{P()}),i("touchStart",(e,t)=>{var i;x.zoom.enabled&&(i=t,t=x.device,T.$imageEl&&0!==T.$imageEl.length&&(C.isTouched||(t.android&&i.cancelable&&i.preventDefault(),C.isTouched=!0,C.touchesStart.x=("touchstart"===i.type?i.targetTouches[0]:i).pageX,C.touchesStart.y=("touchstart"===i.type?i.targetTouches[0]:i).pageY)))}),i("touchEnd",(e,t)=>{x.zoom.enabled&&function(){var i=x.zoom;if(T.$imageEl&&0!==T.$imageEl.length){if(!C.isTouched||!C.isMoved)return C.isTouched=!1,C.isMoved=!1;C.isTouched=!1,C.isMoved=!1;let e=300,t=300;var s=l.x*e,n=C.currentX+s,a=l.y*t,s=C.currentY+a;0!==l.x&&(e=Math.abs((n-C.currentX)/l.x)),0!==l.y&&(t=Math.abs((s-C.currentY)/l.y));a=Math.max(e,t);C.currentX=n,C.currentY=s;s=C.width*i.scale,i=C.height*i.scale;C.minX=Math.min(T.slideWidth/2-s/2,0),C.maxX=-C.minX,C.minY=Math.min(T.slideHeight/2-i/2,0),C.maxY=-C.minY,C.currentX=Math.max(Math.min(C.currentX,C.maxX),C.minX),C.currentY=Math.max(Math.min(C.currentY,C.maxY),C.minY),T.$imageWrapEl.transition(a).transform(`translate3d(${C.currentX}px, ${C.currentY}px,0)`)}}()}),i("doubleTap",(e,t)=>{!x.animating&&x.params.zoom.enabled&&x.zoom.enabled&&x.params.zoom.toggle&&y(t)}),i("transitionEnd",()=>{x.zoom.enabled&&x.params.zoom.enabled&&m()}),i("slideChange",()=>{x.zoom.enabled&&x.params.zoom.enabled&&x.params.cssMode&&m()}),Object.assign(x.zoom,{enable:A,disable:P,in:g,out:v,toggle:y})},function(e){let{swiper:d,extendParams:t,on:i,emit:u}=e;t({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}});let c=!(d.lazy={}),p=!1;function h(e,r){void 0===r&&(r=!0);const l=d.params.lazy;if(void 0!==e&&0!==d.slides.length){const c=d.virtual&&d.params.virtual.enabled?d.$wrapperEl.children(`.${d.params.slideClass}[data-swiper-slide-index="${e}"]`):d.slides.eq(e),t=c.find(`.${l.elementClass}:not(.${l.loadedClass}):not(.${l.loadingClass})`);!c.hasClass(l.elementClass)||c.hasClass(l.loadedClass)||c.hasClass(l.loadingClass)||t.push(c[0]),0!==t.length&&t.each(e=>{const t=M(e);t.addClass(l.loadingClass);const i=t.attr("data-background"),s=t.attr("data-src"),n=t.attr("data-srcset"),a=t.attr("data-sizes"),o=t.parent("picture");d.loadImage(t[0],s||i,n,a,!1,()=>{var e;null==d||!d||d&&!d.params||d.destroyed||(i?(t.css("background-image",`url("${i}")`),t.removeAttr("data-background")):(n&&(t.attr("srcset",n),t.removeAttr("data-srcset")),a&&(t.attr("sizes",a),t.removeAttr("data-sizes")),o.length&&o.children("source").each(e=>{const t=M(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))}),s&&(t.attr("src",s),t.removeAttr("data-src"))),t.addClass(l.loadedClass).removeClass(l.loadingClass),c.find("."+l.preloaderClass).remove(),d.params.loop&&r&&(e=c.attr("data-swiper-slide-index"),c.hasClass(d.params.slideDuplicateClass)?h(d.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${d.params.slideDuplicateClass})`).index(),!1):h(d.$wrapperEl.children(`.${d.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)),u("lazyImageReady",c[0],t[0]),d.params.autoHeight&&d.updateAutoHeight())}),u("lazyImageLoad",c[0],t[0])})}}function f(){const{$wrapperEl:t,params:i,slides:s,activeIndex:n}=d,a=d.virtual&&i.virtual.enabled,e=i.lazy;let o=i.slidesPerView;function r(e){if(a){if(t.children(`.${i.slideClass}[data-swiper-slide-index="${e}"]`).length)return 1}else if(s[e])return 1}function l(e){return a?M(e).attr("data-swiper-slide-index"):M(e).index()}if("auto"===o&&(o=0),p=p||!0,d.params.watchSlidesProgress)t.children("."+i.slideVisibleClass).each(e=>{h(a?M(e).attr("data-swiper-slide-index"):M(e).index())});else if(1<o)for(let e=n;e<n+o;e+=1)r(e)&&h(e);else h(n);if(e.loadPrevNext)if(1<o||e.loadPrevNextAmount&&1<e.loadPrevNextAmount){const t=e.loadPrevNextAmount,d=Math.ceil(o),i=Math.min(n+d+Math.max(t,d),s.length),a=Math.max(n-Math.max(d,t),0);for(let e=n+d;e<i;e+=1)r(e)&&h(e);for(let e=a;e<n;e+=1)r(e)&&h(e)}else{const d=t.children("."+i.slideNextClass);0<d.length&&h(l(d));const s=t.children("."+i.slidePrevClass);0<s.length&&h(l(s))}}function m(){var e=I();if(d&&!d.destroyed){const s=d.params.lazy.scrollingElement?M(d.params.lazy.scrollingElement):M(e),n=s[0]===e,a=n?e.innerWidth:s[0].offsetWidth,o=n?e.innerHeight:s[0].offsetHeight,r=d.$el.offset(),l=d["rtlTranslate"];let t=!1;l&&(r.left-=d.$el[0].scrollLeft);var i=[[r.left,r.top],[r.left+d.width,r.top],[r.left,r.top+d.height],[r.left+d.width,r.top+d.height]];for(let e=0;e<i.length;e+=1){const d=i[e];0<=d[0]&&d[0]<=a&&0<=d[1]&&d[1]<=o&&(0===d[0]&&0===d[1]||(t=!0))}e=!("touchstart"!==d.touchEvents.start||!d.support.passiveListener||!d.params.passiveListeners)&&{passive:!0,capture:!1};t?(f(),s.off("scroll",m,e)):c||(c=!0,s.on("scroll",m,e))}}i("beforeInit",()=>{d.params.lazy.enabled&&d.params.preloadImages&&(d.params.preloadImages=!1)}),i("init",()=>{d.params.lazy.enabled&&(d.params.lazy.checkInView?m:f)()}),i("scroll",()=>{d.params.freeMode&&d.params.freeMode.enabled&&!d.params.freeMode.sticky&&f()}),i("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{d.params.lazy.enabled&&(d.params.lazy.checkInView?m:f)()}),i("transitionStart",()=>{d.params.lazy.enabled&&(d.params.lazy.loadOnTransitionStart||!d.params.lazy.loadOnTransitionStart&&!p)&&(d.params.lazy.checkInView?m:f)()}),i("transitionEnd",()=>{d.params.lazy.enabled&&!d.params.lazy.loadOnTransitionStart&&(d.params.lazy.checkInView?m:f)()}),i("slideChange",()=>{var{lazy:e,cssMode:t,watchSlidesProgress:i,touchReleaseOnEdges:s,resistanceRatio:n}=d.params;e.enabled&&(t||i&&(s||0===n))&&f()}),i("destroy",()=>{d.$el&&d.$el.find("."+d.params.lazy.loadingClass).removeClass(d.params.lazy.loadingClass)}),Object.assign(d.lazy,{load:f,loadInSlide:h})},function(e){let{swiper:r,extendParams:t,on:i}=e;function l(e,t){const i=function(){let i,s,n;return(e,t)=>{for(s=-1,i=e.length;1<i-s;)n=i+s>>1,e[n]<=t?s=n:i=n;return i}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function s(){r.controller.control&&r.controller.spline&&(r.controller.spline=void 0,delete r.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),r.controller={control:void 0},i("beforeInit",()=>{r.controller.control=r.params.controller.control}),i("update",()=>{s()}),i("resize",()=>{s()}),i("observerUpdate",()=>{s()}),i("setTranslate",(e,t,i)=>{r.controller.control&&r.controller.setTranslate(t,i)}),i("setTransition",(e,t,i)=>{r.controller.control&&r.controller.setTransition(t,i)}),Object.assign(r.controller,{setTranslate:function(e,t){var i=r.controller.control;let s,n;var a=r.constructor;function o(e){var t,i=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(t=e,r.controller.spline||(r.controller.spline=r.params.loop?new l(r.slidesGrid,t.slidesGrid):new l(r.snapGrid,t.snapGrid)),n=-r.controller.spline.interpolate(-i)),n&&"container"!==r.params.controller.by||(s=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),n=(i-r.minTranslate())*s+e.minTranslate()),r.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,r),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(i))for(let e=0;e<i.length;e+=1)i[e]!==t&&i[e]instanceof a&&o(i[e]);else i instanceof a&&t!==i&&o(i)},setTransition:function(t,e){const i=r.constructor,s=r.controller.control;let n;function a(e){e.setTransition(t,r),0!==t&&(e.transitionStart(),e.params.autoHeight&&C(()=>{e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(()=>{s&&(e.params.loop&&"slide"===r.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(s))for(n=0;n<s.length;n+=1)s[n]!==e&&s[n]instanceof i&&a(s[n]);else s instanceof i&&e!==s&&a(s)}})},function(e){let{swiper:r,extendParams:t,on:i}=e;t({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}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}});let l=null;function s(e){const t=l;0!==t.length&&(t.html(""),t.html(e))}function n(e){e.attr("tabIndex","0")}function a(e){e.attr("tabIndex","-1")}function o(e,t){e.attr("role",t)}function c(e,t){e.attr("aria-roledescription",t)}function d(e,t){e.attr("aria-label",t)}function u(e){e.attr("aria-disabled",!0)}function p(e){e.attr("aria-disabled",!1)}function h(e){if(13===e.keyCode||32===e.keyCode){const t=r.params.a11y,i=M(e.target);r.navigation&&r.navigation.$nextEl&&i.is(r.navigation.$nextEl)&&(r.isEnd&&!r.params.loop||r.slideNext(),r.isEnd?s(t.lastSlideMessage):s(t.nextSlideMessage)),r.navigation&&r.navigation.$prevEl&&i.is(r.navigation.$prevEl)&&(r.isBeginning&&!r.params.loop||r.slidePrev(),r.isBeginning?s(t.firstSlideMessage):s(t.prevSlideMessage)),r.pagination&&i.is(P(r.params.pagination.bulletClass))&&i[0].click()}}function f(){return r.pagination&&r.pagination.bullets&&r.pagination.bullets.length}function m(){return f()&&r.params.pagination.clickable}const g=(e,t,i)=>{n(e),"BUTTON"!==e[0].tagName&&(o(e,"button"),e.on("keydown",h)),d(e,i),e.attr("aria-controls",t)},v=e=>{var t,i=e.target.closest("."+r.params.slideClass);i&&r.slides.includes(i)&&(t=r.slides.indexOf(i)===r.activeIndex,e=r.params.watchSlidesProgress&&r.visibleSlides&&r.visibleSlides.includes(i),t||e||(r.isHorizontal()?r.el.scrollLeft=0:r.el.scrollTop=0,r.slideTo(r.slides.indexOf(i),0)))},y=()=>{const n=r.params.a11y;n.itemRoleDescriptionMessage&&c(M(r.slides),n.itemRoleDescriptionMessage),n.slideRole&&o(M(r.slides),n.slideRole);const a=(r.params.loop?r.slides.filter(e=>!e.classList.contains(r.params.slideDuplicateClass)):r.slides).length;n.slideLabelMessage&&r.slides.each((e,t)=>{const i=M(e),s=r.params.loop?parseInt(i.attr("data-swiper-slide-index"),10):t;d(i,n.slideLabelMessage.replace(/\{\{index\}\}/,s+1).replace(/\{\{slidesLength\}\}/,a))})};i("beforeInit",()=>{l=M(`<span class="${r.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}),i("afterInit",()=>{r.params.a11y.enabled&&(()=>{var e=r.params.a11y;r.$el.append(l);var t=r.$el;e.containerRoleDescriptionMessage&&c(t,e.containerRoleDescriptionMessage),e.containerMessage&&d(t,e.containerMessage);const i=r.$wrapperEl,s=e.id||i.attr("id")||"swiper-wrapper-"+"x".repeat(n=void 0===(n=16)?16:n).replace(/x/g,()=>Math.round(16*Math.random()).toString(16));var n=r.params.autoplay&&r.params.autoplay.enabled?"off":"polite";let a,o;i.attr("id",s),i.attr("aria-live",n),y(),r.navigation&&r.navigation.$nextEl&&(a=r.navigation.$nextEl),r.navigation&&r.navigation.$prevEl&&(o=r.navigation.$prevEl),a&&a.length&&g(a,s,e.nextSlideMessage),o&&o.length&&g(o,s,e.prevSlideMessage),m()&&r.pagination.$el.on("keydown",P(r.params.pagination.bulletClass),h),r.$el.on("focus",v,!0)})()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{r.params.a11y.enabled&&y()}),i("fromEdge toEdge afterInit lock unlock",()=>{var e,t;r.params.a11y.enabled&&(r.params.loop||r.params.rewind||!r.navigation||({$nextEl:e,$prevEl:t}=r.navigation,t&&0<t.length&&(r.isBeginning?(u(t),a(t)):(p(t),n(t))),e&&0<e.length&&(r.isEnd?(u(e),a(e)):(p(e),n(e)))))}),i("paginationUpdate",()=>{r.params.a11y.enabled&&function(){const i=r.params.a11y;f()&&r.pagination.bullets.each(e=>{const t=M(e);r.params.pagination.clickable&&(n(t),r.params.pagination.renderBullet||(o(t,"button"),d(t,i.paginationBulletMessage.replace(/\{\{index\}\}/,t.index()+1)))),t.is("."+r.params.pagination.bulletActiveClass)?t.attr("aria-current","true"):t.removeAttr("aria-current")})}()}),i("destroy",()=>{r.params.a11y.enabled&&function(){let e,t;l&&0<l.length&&l.remove(),r.navigation&&r.navigation.$nextEl&&(e=r.navigation.$nextEl),r.navigation&&r.navigation.$prevEl&&(t=r.navigation.$prevEl),e&&e.off("keydown",h),t&&t.off("keydown",h),m()&&r.pagination.$el.off("keydown",P(r.params.pagination.bulletClass),h),r.$el.off("focus",v,!0)}()})},function(e){let{swiper:o,extendParams:t,on:i}=e;t({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,s={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),n=e=>{var t=I();let i;i=e?new URL(e):t.location;e=i.pathname.slice(1).split("/").filter(e=>""!==e),t=e.length;return{key:e[t-2],value:e[t-1]}},a=(i,s)=>{const n=I();if(r&&o.params.history.enabled){let e;e=o.params.url?new URL(o.params.url):n.location;const a=o.slides.eq(s);let t=l(a.attr("data-history"));if(0<o.params.history.root.length){let e=o.params.history.root;"/"===e[e.length-1]&&(e=e.slice(0,e.length-1)),t=e+`/${i}/`+t}else e.pathname.includes(i)||(t=i+"/"+t);o.params.history.keepQuery&&(t+=e.search);i=n.history.state;i&&i.value===t||(o.params.history.replaceState?n.history.replaceState({value:t},null,t):n.history.pushState({value:t},null,t))}},c=(i,s,n)=>{if(s)for(let e=0,t=o.slides.length;e<t;e+=1){const a=o.slides.eq(e);if(l(a.attr("data-history"))===s&&!a.hasClass(o.params.slideDuplicateClass)){const s=a.index();o.slideTo(s,i,n)}}else o.slideTo(0,i,n)},d=()=>{s=n(o.params.url),c(o.params.speed,s.value,!1)};i("init",()=>{o.params.history.enabled&&(()=>{const e=I();if(o.params.history){if(!e.history||!e.history.pushState)return o.params.history.enabled=!1,o.params.hashNavigation.enabled=!0;r=!0,s=n(o.params.url),(s.key||s.value)&&(c(0,s.value,o.params.runCallbacksOnInit),o.params.history.replaceState||e.addEventListener("popstate",d))}})()}),i("destroy",()=>{o.params.history.enabled&&(()=>{const e=I();o.params.history.replaceState||e.removeEventListener("popstate",d)})()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{r&&a(o.params.history.key,o.activeIndex)}),i("slideChange",()=>{r&&o.params.cssMode&&a(o.params.history.key,o.activeIndex)})},function(e){let{swiper:n,extendParams:t,emit:i,on:s}=e,a=!1;const o=T(),r=I();t({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const l=()=>{i("hashChange");var e=o.location.hash.replace("#","");e===n.slides.eq(n.activeIndex).attr("data-hash")||void 0!==(e=n.$wrapperEl.children(`.${n.params.slideClass}[data-hash="${e}"]`).index())&&n.slideTo(e)},c=()=>{if(a&&n.params.hashNavigation.enabled)if(n.params.hashNavigation.replaceState&&r.history&&r.history.replaceState)r.history.replaceState(null,null,"#"+n.slides.eq(n.activeIndex).attr("data-hash")||""),i("hashSet");else{const e=n.slides.eq(n.activeIndex),t=e.attr("data-hash")||e.attr("data-history");o.location.hash=t||"",i("hashSet")}};s("init",()=>{n.params.hashNavigation.enabled&&(()=>{if(!(!n.params.hashNavigation.enabled||n.params.history&&n.params.history.enabled)){a=!0;const i=o.location.hash.replace("#","");if(i)for(let e=0,t=n.slides.length;e<t;e+=1){const s=n.slides.eq(e);if((s.attr("data-hash")||s.attr("data-history"))===i&&!s.hasClass(n.params.slideDuplicateClass)){const i=s.index();n.slideTo(i,0,n.params.runCallbacksOnInit,!0)}}n.params.hashNavigation.watchState&&M(r).on("hashchange",l)}})()}),s("destroy",()=>{n.params.hashNavigation.enabled&&n.params.hashNavigation.watchState&&M(r).off("hashchange",l)}),s("transitionEnd _freeModeNoMomentumRelease",()=>{a&&c()}),s("slideChange",()=>{a&&n.params.cssMode&&c()})},function(e){let i,{swiper:s,extendParams:t,on:n,emit:a}=e;function o(){if(!s.size)return s.autoplay.running=!1,void(s.autoplay.paused=!1);const e=s.slides.eq(s.activeIndex);let t=s.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(t=e.attr("data-swiper-autoplay")||s.params.autoplay.delay),clearTimeout(i),i=C(()=>{let e;s.params.autoplay.reverseDirection?s.params.loop?(s.loopFix(),e=s.slidePrev(s.params.speed,!0,!0),a("autoplay")):s.isBeginning?s.params.autoplay.stopOnLastSlide?l():(e=s.slideTo(s.slides.length-1,s.params.speed,!0,!0),a("autoplay")):(e=s.slidePrev(s.params.speed,!0,!0),a("autoplay")):s.params.loop?(s.loopFix(),e=s.slideNext(s.params.speed,!0,!0),a("autoplay")):s.isEnd?s.params.autoplay.stopOnLastSlide?l():(e=s.slideTo(0,s.params.speed,!0,!0),a("autoplay")):(e=s.slideNext(s.params.speed,!0,!0),a("autoplay")),(s.params.cssMode&&s.autoplay.running||!1===e)&&o()},t)}function r(){return void 0===i&&!s.autoplay.running&&(s.autoplay.running=!0,a("autoplayStart"),o(),!0)}function l(){return!!s.autoplay.running&&void 0!==i&&(i&&(clearTimeout(i),i=void 0),s.autoplay.running=!1,a("autoplayStop"),!0)}function c(e){s.autoplay.running&&(s.autoplay.paused||(i&&clearTimeout(i),s.autoplay.paused=!0,0!==e&&s.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach(e=>{s.$wrapperEl[0].addEventListener(e,u)}):(s.autoplay.paused=!1,o())))}function d(){var e=T();"hidden"===e.visibilityState&&s.autoplay.running&&c(),"visible"===e.visibilityState&&s.autoplay.paused&&(o(),s.autoplay.paused=!1)}function u(e){s&&!s.destroyed&&s.$wrapperEl&&e.target===s.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(e=>{s.$wrapperEl[0].removeEventListener(e,u)}),s.autoplay.paused=!1,(s.autoplay.running?o:l)())}function p(){s.params.autoplay.disableOnInteraction?l():(a("autoplayPause"),c()),["transitionend","webkitTransitionEnd"].forEach(e=>{s.$wrapperEl[0].removeEventListener(e,u)})}function h(){s.params.autoplay.disableOnInteraction||(s.autoplay.paused=!1,a("autoplayResume"),o())}s.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),n("init",()=>{s.params.autoplay.enabled&&(r(),T().addEventListener("visibilitychange",d),s.params.autoplay.pauseOnMouseEnter&&(s.$el.on("mouseenter",p),s.$el.on("mouseleave",h)))}),n("beforeTransitionStart",(e,t,i)=>{s.autoplay.running&&(i||!s.params.autoplay.disableOnInteraction?s.autoplay.pause(t):l())}),n("sliderFirstMove",()=>{s.autoplay.running&&(s.params.autoplay.disableOnInteraction?l:c)()}),n("touchEnd",()=>{s.params.cssMode&&s.autoplay.paused&&!s.params.autoplay.disableOnInteraction&&o()}),n("destroy",()=>{s.$el.off("mouseenter",p),s.$el.off("mouseleave",h),s.autoplay.running&&l(),T().removeEventListener("visibilitychange",d)}),Object.assign(s.autoplay,{pause:c,run:o,start:r,stop:l})},function(e){let{swiper:l,extendParams:t,on:i}=e;t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,n=!1;function a(){var e=l.thumbs.swiper;if(e&&!e.destroyed){const i=e.clickedIndex,s=e.clickedSlide;if(!(s&&M(s).hasClass(l.params.thumbs.slideThumbActiveClass)||null==i)){let t;if(t=e.params.loop?parseInt(M(e.clickedSlide).attr("data-swiper-slide-index"),10):i,l.params.loop){let e=l.activeIndex;l.slides.eq(e).hasClass(l.params.slideDuplicateClass)&&(l.loopFix(),l._clientLeft=l.$wrapperEl[0].clientLeft,e=l.activeIndex);const i=l.slides.eq(e).prevAll(`[data-swiper-slide-index="${t}"]`).eq(0).index(),s=l.slides.eq(e).nextAll(`[data-swiper-slide-index="${t}"]`).eq(0).index();t=void 0===i||void 0!==s&&s-e<e-i?s:i}l.slideTo(t)}}}function o(){var e=l.params["thumbs"];if(s)return!1;s=!0;const t=l.constructor;return e.swiper instanceof t?(l.thumbs.swiper=e.swiper,Object.assign(l.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(l.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):c(e.swiper)&&(e=Object.assign({},e.swiper),Object.assign(e,{watchSlidesProgress:!0,slideToClickedSlide:!1}),l.thumbs.swiper=new t(e),n=!0),l.thumbs.swiper.$el.addClass(l.params.thumbs.thumbsContainerClass),l.thumbs.swiper.on("tap",a),!0}function r(s){const n=l.thumbs.swiper;if(n&&!n.destroyed){const r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let t=1;var i=l.params.thumbs.slideThumbActiveClass;if(1<l.params.slidesPerView&&!l.params.centeredSlides&&(t=l.params.slidesPerView),l.params.thumbs.multipleActiveThumbs||(t=1),t=Math.floor(t),n.slides.removeClass(i),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<t;e+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${l.realIndex+e}"]`).addClass(i);else for(let e=0;e<t;e+=1)n.slides.eq(l.realIndex+e).addClass(i);var a=l.params.thumbs.autoScrollOffset,o=a&&!n.params.loop;if(l.realIndex!==n.realIndex||o){let e,t,i=n.activeIndex;if(n.params.loop){n.slides.eq(i).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,i=n.activeIndex);const s=n.slides.eq(i).prevAll(`[data-swiper-slide-index="${l.realIndex}"]`).eq(0).index(),r=n.slides.eq(i).nextAll(`[data-swiper-slide-index="${l.realIndex}"]`).eq(0).index();e=void 0===s?r:void 0===r?s:r-i==i-s?1<n.params.slidesPerGroup?r:i:r-i<i-s?r:s,t=l.activeIndex>l.previousIndex?"next":"prev"}else e=l.realIndex,t=e>l.previousIndex?"next":"prev";o&&(e+="next"===t?a:-1*a),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(e)<0&&(n.params.centeredSlides?e=e>i?e-Math.floor(r/2)+1:e+Math.floor(r/2)-1:e>i&&n.params.slidesPerGroup,n.slideTo(e,s?0:void 0))}}}l.thumbs={swiper:null},i("beforeInit",()=>{var e=l.params["thumbs"];e&&e.swiper&&(o(),r(!0))}),i("slideChange update resize observerUpdate",()=>{r()}),i("setTransition",(e,t)=>{const i=l.thumbs.swiper;i&&!i.destroyed&&i.setTransition(t)}),i("beforeDestroy",()=>{const e=l.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()}),Object.assign(l.thumbs,{init:o,update:r})},function(e){let{swiper:h,extendParams:t,emit:f,once:m}=e;t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(h,{freeMode:{onTouchStart:function(){var e=h.getTranslate();h.setTranslate(e),h.setTransition(0),h.touchEventsData.velocities.length=0,h.freeMode.onTouchEnd({currentPos:h.rtl?h.translate:-h.translate})},onTouchMove:function(){const{touchEventsData:e,touches:t}=h;0===e.velocities.length&&e.velocities.push({position:t[h.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:t[h.isHorizontal()?"currentX":"currentY"],time:v()})},onTouchEnd:function(a){let o=a["currentPos"];const{params:r,$wrapperEl:l,rtlTranslate:c,snapGrid:d,touchEventsData:u}=h,e=v()-u.touchStartTime;if(o<-h.minTranslate())h.slideTo(h.activeIndex);else if(o>-h.maxTranslate())h.slides.length<d.length?h.slideTo(d.length-1):h.slideTo(h.slides.length-1);else{if(r.freeMode.momentum){if(1<u.velocities.length){const p=u.velocities.pop(),o=u.velocities.pop(),f=p.position-o.position,m=p.time-o.time;h.velocity=f/m,h.velocity/=2,Math.abs(h.velocity)<r.freeMode.minimumVelocity&&(h.velocity=0),(150<m||300<v()-p.time)&&(h.velocity=0)}else h.velocity=0;h.velocity*=r.freeMode.momentumVelocityRatio,u.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const o=h.velocity*e;let i=h.translate+o;c&&(i=-i);let t,s=!1;a=20*Math.abs(h.velocity)*r.freeMode.momentumBounceRatio;let n;if(i<h.maxTranslate())r.freeMode.momentumBounce?(i+h.maxTranslate()<-a&&(i=h.maxTranslate()-a),t=h.maxTranslate(),s=!0,u.allowMomentumBounce=!0):i=h.maxTranslate(),r.loop&&r.centeredSlides&&(n=!0);else if(i>h.minTranslate())r.freeMode.momentumBounce?(i-h.minTranslate()>a&&(i=h.minTranslate()+a),t=h.minTranslate(),s=!0,u.allowMomentumBounce=!0):i=h.minTranslate(),r.loop&&r.centeredSlides&&(n=!0);else if(r.freeMode.sticky){let t;for(let e=0;e<d.length;e+=1)if(d[e]>-i){t=e;break}i=Math.abs(d[t]-i)<Math.abs(d[t-1]-i)||"next"===h.swipeDirection?d[t]:d[t-1],i=-i}if(n&&m("transitionEnd",()=>{h.loopFix()}),0!==h.velocity){if(e=c?Math.abs((-i-h.translate)/h.velocity):Math.abs((i-h.translate)/h.velocity),r.freeMode.sticky){const o=Math.abs((c?-i:i)-h.translate),f=h.slidesSizesGrid[h.activeIndex];e=o<f?r.speed:o<2*f?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void h.slideToClosest();r.freeMode.momentumBounce&&s?(h.updateProgress(t),h.setTransition(e),h.setTranslate(i),h.transitionStart(!0,h.swipeDirection),h.animating=!0,l.transitionEnd(()=>{h&&!h.destroyed&&u.allowMomentumBounce&&(f("momentumBounce"),h.setTransition(r.speed),setTimeout(()=>{h.setTranslate(t),l.transitionEnd(()=>{h&&!h.destroyed&&h.transitionEnd()})},0))})):h.velocity?(f("_freeModeNoMomentumRelease"),h.updateProgress(i),h.setTransition(e),h.setTranslate(i),h.transitionStart(!0,h.swipeDirection),h.animating||(h.animating=!0,l.transitionEnd(()=>{h&&!h.destroyed&&h.transitionEnd()}))):h.updateProgress(i),h.updateActiveIndex(),h.updateSlidesClasses()}else{if(r.freeMode.sticky)return void h.slideToClosest();r.freeMode&&f("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||e>=r.longSwipesMs)&&(h.updateProgress(),h.updateActiveIndex(),h.updateSlidesClasses())}}}})},function(e){let u,p,h,{swiper:f,extendParams:t}=e;t({grid:{rows:1,fill:"column"}}),f.grid={initSlides:e=>{var t=f.params["slidesPerView"],{rows:i,fill:s}=f.params.grid;p=u/i,h=Math.floor(e/i),u=Math.floor(e/i)===e/i?e:Math.ceil(e/i)*i,"auto"!==t&&"row"===s&&(u=Math.max(u,t*i))},updateSlide:(e,t,i,s)=>{var{slidesPerGroup:n,spaceBetween:a}=f.params,{rows:o,fill:r}=f.params.grid;let l,c,d;if("row"===r&&1<n){const p=Math.floor(e/(n*o)),h=e-o*n*p,f=0===p?n:Math.min(Math.ceil((i-p*o*n)/o),n);d=Math.floor(h/f),c=h-d*f+p*n,l=c+d*u/o,t.css({"-webkit-order":l,order:l})}else"column"===r?(c=Math.floor(e/o),d=e-c*o,(c>h||c===h&&d===o-1)&&(d+=1,d>=o&&(d=0,c+=1))):(d=Math.floor(e/p),c=e-d*p);t.css(s("margin-top"),0!==d?a&&a+"px":"")},updateWrapperSize:(i,s,e)=>{var{spaceBetween:t,centeredSlides:n,roundLengths:a}=f.params,o=f.params.grid["rows"];if(f.virtualSize=(i+t)*u,f.virtualSize=Math.ceil(f.virtualSize/o)-t,f.$wrapperEl.css({[e("width")]:f.virtualSize+t+"px"}),n){s.splice(0,s.length);const i=[];for(let t=0;t<s.length;t+=1){let e=s[t];a&&(e=Math.floor(e)),s[t]<f.virtualSize+s[0]&&i.push(e)}s.push(...i)}}}},function(e){e=e.swiper;Object.assign(e,{appendSlide:function(t){const{$wrapperEl:i,params:e}=this;if(e.loop&&this.loopDestroy(),"object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&i.append(t[e]);else i.append(t);e.loop&&this.loopCreate(),e.observer||this.update()}.bind(e),prependSlide:function(t){const{params:e,$wrapperEl:i,activeIndex:s}=this;e.loop&&this.loopDestroy();let n=s+1;if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&i.prepend(t[e]);n=s+t.length}else i.prepend(t);e.loop&&this.loopCreate(),e.observer||this.update(),this.slideTo(n,0,!1)}.bind(e),addSlide:function(t,i){const s=this,{$wrapperEl:n,params:a,activeIndex:e}=s;let o=e;a.loop&&(o-=s.loopedSlides,s.loopDestroy(),s.slides=n.children("."+a.slideClass));var r=s.slides.length;if(t<=0)s.prependSlide(i);else if(r<=t)s.appendSlide(i);else{let e=o>t?o+1:o;const l=[];for(let e=r-1;e>=t;--e){const t=s.slides.eq(e);t.remove(),l.unshift(t)}if("object"==typeof i&&"length"in i){for(let e=0;e<i.length;e+=1)i[e]&&n.append(i[e]);e=o>t?o+i.length:o}else n.append(i);for(let e=0;e<l.length;e+=1)n.append(l[e]);a.loop&&s.loopCreate(),a.observer||s.update(),a.loop?s.slideTo(e+s.loopedSlides,0,!1):s.slideTo(e,0,!1)}}.bind(e),removeSlide:function(t){const i=this,{params:e,$wrapperEl:s,activeIndex:n}=i;let a=n;e.loop&&(a-=i.loopedSlides,i.loopDestroy(),i.slides=s.children("."+e.slideClass));let o,r=a;if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)o=t[e],i.slides[o]&&i.slides.eq(o).remove(),o<r&&--r;r=Math.max(r,0)}else o=t,i.slides[o]&&i.slides.eq(o).remove(),o<r&&--r,r=Math.max(r,0);e.loop&&i.loopCreate(),e.observer||i.update(),e.loop?i.slideTo(r+i.loopedSlides,0,!1):i.slideTo(r,0,!1)}.bind(e),removeAllSlides:function(){const t=[];for(let e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}.bind(e)})},function(e){let{swiper:o,extendParams:t,on:i}=e;t({fadeEffect:{crossFade:!1,transformEl:null}}),L({effect:"fade",swiper:o,on:i,setTranslate:()=>{const s=o["slides"],n=o.params.fadeEffect;for(let i=0;i<s.length;i+=1){const s=o.slides.eq(i);let e=-s[0].swiperSlideOffset;o.params.virtualTranslate||(e-=o.translate);let t=0;o.isHorizontal()||(t=e,e=0);var a=o.params.fadeEffect.crossFade?Math.max(1-Math.abs(s[0].progress),0):1+Math.min(Math.max(s[0].progress,-1),0);z(n,s).css({opacity:a}).transform(`translate3d(${e}px, ${t}px, 0px)`)}},setTransition:e=>{var t=o.params.fadeEffect["transformEl"];(t?o.slides.find(t):o.slides).transition(e),D({swiper:o,duration:e,transformEl:t,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!o.params.cssMode})})},function(e){let{swiper:m,extendParams:t,on:i}=e;t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const g=(e,t,i)=>{let s=i?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=i?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===s.length&&(s=M(`<div class="swiper-slide-shadow-${i?"left":"top"}"></div>`),e.append(s)),0===n.length&&(n=M(`<div class="swiper-slide-shadow-${i?"right":"bottom"}"></div>`),e.append(n)),s.length&&(s[0].style.opacity=Math.max(-t,0)),n.length&&(n[0].style.opacity=Math.max(t,0))};L({effect:"cube",swiper:m,on:i,setTranslate:()=>{const{$el:e,$wrapperEl:t,slides:r,width:i,height:s,rtlTranslate:l,size:c,browser:n}=m,d=m.params.cubeEffect,u=m.isHorizontal(),p=m.virtual&&m.params.virtual.enabled;let a,h=0;d.shadow&&(u?(a=t.find(".swiper-cube-shadow"),0===a.length&&(a=M('<div class="swiper-cube-shadow"></div>'),t.append(a)),a.css({height:i+"px"})):(a=e.find(".swiper-cube-shadow"),0===a.length&&(a=M('<div class="swiper-cube-shadow"></div>'),e.append(a))));for(let o=0;o<r.length;o+=1){const m=r.eq(o);let e=o;p&&(e=parseInt(m.attr("data-swiper-slide-index"),10));let t=90*e,i=Math.floor(t/360);l&&(t=-t,i=Math.floor(-t/360));const M=Math.max(Math.min(m[0].progress,1),-1);let s=0,n=0,a=0;e%4==0?(s=4*-i*c,a=0):(e-1)%4==0?(s=0,a=4*-i*c):(e-2)%4==0?(s=c+4*i*c,a=c):(e-3)%4==0&&(s=-c,a=3*c+4*c*i),l&&(s=-s),u||(n=s,s=0);var f=`rotateX(${u?0:-t}deg) rotateY(${u?t:0}deg) translate3d(${s}px, ${n}px, ${a}px)`;M<=1&&-1<M&&(h=90*e+90*M,l&&(h=90*-e-90*M)),m.transform(f),d.slideShadows&&g(m,M,u)}if(t.css({"-webkit-transform-origin":`50% 50% -${c/2}px`,"transform-origin":`50% 50% -${c/2}px`}),d.shadow)if(u)a.transform(`translate3d(0px, ${i/2+d.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${d.shadowScale})`);else{const e=Math.abs(h)-90*Math.floor(Math.abs(h)/90),m=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),t=d.shadowScale,r=d.shadowScale/m,g=d.shadowOffset;a.transform(`scale3d(${t}, 1, ${r}) translate3d(0px, ${s/2+g}px, ${-s/2/r}px) rotateX(-90deg)`)}var o=n.isSafari||n.isWebView?-c/2:0;t.transform(`translate3d(0px,0,${o}px) rotateX(${m.isHorizontal()?0:h}deg) rotateY(${m.isHorizontal()?-h:0}deg)`),t[0].style.setProperty("--swiper-cube-translate-z",o+"px")},setTransition:e=>{const{$el:t,slides:i}=m;i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),m.params.cubeEffect.shadow&&!m.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)},recreateShadows:()=>{const i=m.isHorizontal();m.slides.each(e=>{var t=Math.max(Math.min(e.progress,1),-1);g(M(e),t,i)})},getEffectParams:()=>m.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:u,extendParams:t,on:i}=e;t({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const p=(e,t,i)=>{let s=u.isHorizontal()?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=u.isHorizontal()?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===s.length&&(s=N(i,e,u.isHorizontal()?"left":"top")),0===n.length&&(n=N(i,e,u.isHorizontal()?"right":"bottom")),s.length&&(s[0].style.opacity=Math.max(-t,0)),n.length&&(n[0].style.opacity=Math.max(t,0))};L({effect:"flip",swiper:u,on:i,setTranslate:()=>{const{slides:o,rtlTranslate:r}=u,l=u.params.flipEffect;for(let a=0;a<o.length;a+=1){const d=o.eq(a);let e=d[0].progress;u.params.flipEffect.limitRotation&&(e=Math.max(Math.min(d[0].progress,1),-1));var c=d[0].swiperSlideOffset;let t=-180*e,i=0,s=u.params.cssMode?-c-u.translate:-c,n=0;u.isHorizontal()?r&&(t=-t):(n=s,s=0,i=-t,t=0),d[0].style.zIndex=-Math.abs(Math.round(e))+o.length,l.slideShadows&&p(d,e,l);c=`translate3d(${s}px, ${n}px, 0px) rotateX(${i}deg) rotateY(${t}deg)`;z(l,d).transform(c)}},setTransition:e=>{var t=u.params.flipEffect["transformEl"];(t?u.slides.find(t):u.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),D({swiper:u,duration:e,transformEl:t})},recreateShadows:()=>{const s=u.params.flipEffect;u.slides.each(e=>{var t=M(e);let i=t[0].progress;u.params.flipEffect.limitRotation&&(i=Math.max(Math.min(e.progress,1),-1)),p(t,i,s)})},getEffectParams:()=>u.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!u.params.cssMode})})},function(e){let{swiper:b,extendParams:t,on:i}=e;t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),L({effect:"coverflow",swiper:b,on:i,setTranslate:()=>{const{width:e,height:l,slides:c,slidesSizesGrid:d}=b,u=b.params.coverflowEffect,p=b.isHorizontal(),h=b.translate,f=p?e/2-h:l/2-h,m=p?u.rotate:-u.rotate,g=u.depth;for(let r=0,e=c.length;r<e;r+=1){const b=c.eq(r),l=d[r],h=(f-b[0].swiperSlideOffset-l/2)/l,y="function"==typeof u.modifier?u.modifier(h):h*u.modifier;let e=p?m*y:0,t=p?0:m*y,i=-g*Math.abs(y),s=u.stretch;"string"==typeof s&&-1!==s.indexOf("%")&&(s=parseFloat(u.stretch)/100*l);let n=p?0:s*y,a=p?s*y:0,o=1-(1-u.scale)*Math.abs(y);Math.abs(a)<.001&&(a=0),Math.abs(n)<.001&&(n=0),Math.abs(i)<.001&&(i=0),Math.abs(e)<.001&&(e=0),Math.abs(t)<.001&&(t=0),Math.abs(o)<.001&&(o=0);var v=`translate3d(${a}px,${n}px,${i}px)  rotateX(${t}deg) rotateY(${e}deg) scale(${o})`;if(z(u,b).transform(v),b[0].style.zIndex=1-Math.abs(Math.round(y)),u.slideShadows){let e=p?b.find(".swiper-slide-shadow-left"):b.find(".swiper-slide-shadow-top"),t=p?b.find(".swiper-slide-shadow-right"):b.find(".swiper-slide-shadow-bottom");0===e.length&&(e=N(u,b,p?"left":"top")),0===t.length&&(t=N(u,b,p?"right":"bottom")),e.length&&(e[0].style.opacity=0<y?y:0),t.length&&(t[0].style.opacity=0<-y?-y:0)}}},setTransition:e=>{var t=b.params.coverflowEffect["transformEl"];(t?b.slides.find(t):b.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:b,extendParams:t,on:i}=e;t({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});L({effect:"creative",swiper:b,on:i,setTranslate:()=>{const{slides:n,$wrapperEl:e,slidesSizesGrid:a}=b,o=b.params.creativeEffect,r=o["progressMultiplier"],l=b.params.centeredSlides;if(l){const n=a[0]/2-b.params.slidesOffsetBefore||0;e.transform(`translateX(calc(50% - ${n}px))`)}for(let s=0;s<n.length;s+=1){const a=n.eq(s),h=a[0].progress,f=Math.min(Math.max(a[0].progress,-o.limitProgress),o.limitProgress);let e=f;l||(e=Math.min(Math.max(a[0].originalProgress,-o.limitProgress),o.limitProgress));const m=a[0].swiperSlideOffset,g=[b.params.cssMode?-m-b.translate:-m,0,0],v=[0,0,0];let t=!1;b.isHorizontal()||(g[1]=g[0],g[0]=0);let i={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};f<0?(i=o.next,t=!0):0<f&&(i=o.prev,t=!0),g.forEach((e,t)=>{g[t]=`calc(${e}px + (${t=i.translate[t],"string"==typeof t?t:t+"px"} * ${Math.abs(f*r)}))`}),v.forEach((e,t)=>{v[t]=i.rotate[t]*Math.abs(f*r)}),a[0].style.zIndex=-Math.abs(Math.round(h))+n.length;var c=g.join(", "),d=`rotateX(${v[0]}deg) rotateY(${v[1]}deg) rotateZ(${v[2]}deg)`,u=e<0?`scale(${1+(1-i.scale)*e*r})`:`scale(${1-(1-i.scale)*e*r})`,p=e<0?1+(1-i.opacity)*e*r:1-(1-i.opacity)*e*r,u=`translate3d(${c}) ${d} `+u;if(t&&i.shadow||!t){let e=a.children(".swiper-slide-shadow");if(0===e.length&&i.shadow&&(e=N(o,a)),e.length){const b=o.shadowPerProgress?f*(1/o.limitProgress):f;e[0].style.opacity=Math.min(Math.max(Math.abs(b),0),1)}}const y=z(o,a);y.transform(u).css({opacity:p}),i.origin&&y.css("transform-origin",i.origin)}},setTransition:e=>{var t=b.params.creativeEffect["transformEl"];(t?b.slides.find(t):b.slides).transition(e).find(".swiper-slide-shadow").transition(e),D({swiper:b,duration:e,transformEl:t,allSlides:!0})},perspective:()=>b.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!b.params.cssMode})})},function(e){let{swiper:b,extendParams:t,on:i}=e;t({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0}}),L({effect:"cards",swiper:b,on:i,setTranslate:()=>{const{slides:r,activeIndex:l}=b,c=b.params.cardsEffect,{startTranslate:d,isTouched:u}=b.touchEventsData,p=b.translate;for(let o=0;o<r.length;o+=1){const g=r.eq(o),v=g[0].progress,y=Math.min(Math.max(v,-4),4);let e=g[0].swiperSlideOffset;b.params.centeredSlides&&!b.params.cssMode&&b.$wrapperEl.transform(`translateX(${b.minTranslate()}px)`),b.params.centeredSlides&&b.params.cssMode&&(e-=r[0].swiperSlideOffset);let t=b.params.cssMode?-e-b.translate:-e,i=0;var h=-100*Math.abs(y);let s=1,n=-2*y,a=8-.75*Math.abs(y);var f=b.virtual&&b.params.virtual.enabled?b.virtual.from+o:o,m=(f===l||f===l-1)&&0<y&&y<1&&(u||b.params.cssMode)&&p<d,f=(f===l||f===l+1)&&y<0&&-1<y&&(u||b.params.cssMode)&&d<p;if(m||f){const r=(1-Math.abs((Math.abs(y)-.5)/.5))**.5;n+=-28*y*r,s+=-.5*r,a+=96*r,i=-25*r*Math.abs(y)+"%"}if(t=y<0?`calc(${t}px + (${a*Math.abs(y)}%))`:0<y?`calc(${t}px + (-${a*Math.abs(y)}%))`:t+"px",!b.isHorizontal()){const r=i;i=t,t=r}f=y<0?""+(1+(1-s)*y):""+(1-(1-s)*y),f=`
        translate3d(${t}, ${i}, ${h}px)
        rotateZ(${c.rotate?n:0}deg)
        scale(${f})
      `;if(c.slideShadows){let e=g.find(".swiper-slide-shadow");0===e.length&&(e=N(c,g)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(y)-.5)/.5,0),1))}g[0].style.zIndex=-Math.abs(Math.round(v))+r.length,z(c,g).transform(f)}},setTransition:e=>{var t=b.params.cardsEffect["transformEl"];(t?b.slides.find(t):b.slides).transition(e).find(".swiper-slide-shadow").transition(e),D({swiper:b,duration:e,transformEl:t})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!b.params.cssMode})})}]),$});var Typer=function(e){var t=(this.element=e).dataset.delim||",",i=e.dataset.words||"override these,sample typing";this.words=i.split(t).filter(e=>e),this.delayVariance=parseInt(e.dataset.delayVariance)||0,this.delay=parseInt(e.dataset.delay)||200,this.loop=e.dataset.loop||"true","false"===this.loop&&(this.loop=1),this.deleteDelay=e.dataset.deletedelay||e.dataset.deleteDelay||800,this.progress={word:0,char:0,building:!0,looped:0},this.typing=!0;e=e.dataset.colors||"black";this.colors=e.split(","),this.element.style.color=this.colors[0],this.colorIndex=0,this.doTyping()};Typer.prototype.start=function(){this.typing||(this.typing=!0,this.doTyping())},Typer.prototype.stop=function(){this.typing=!1},Typer.prototype.doTyping=function(){var e,t=this.element,i=this.progress,s=i.word,n=i.char,a=[...this.words[s]].slice(0,n).join(""),n=(2*Math.random()-1)*this.delayVariance+this.delay;this.cursor&&(this.cursor.element.style.opacity="1",this.cursor.on=!0,clearInterval(this.cursor.interval),this.cursor.interval=setInterval(()=>this.cursor.updateBlinkState(),400)),t.innerHTML=a,i.building?(e=i.char===this.words[s].length)?i.building=!1:i.char+=1:0===i.char?(i.building=!0,i.word=(i.word+1)%this.words.length,this.colorIndex=(this.colorIndex+1)%this.colors.length,this.element.style.color=this.colors[this.colorIndex]):--i.char,i.word===this.words.length-1&&(i.looped+=1),!i.building&&this.loop<=i.looped&&(this.typing=!1),setTimeout(()=>{this.typing&&this.doTyping()},e?this.deleteDelay:n)};var Cursor=function(e){this.element=e,this.cursorDisplay=e.dataset.cursordisplay||e.dataset.cursorDisplay||"|",e.innerHTML=this.cursorDisplay,this.on=!0,e.style.transition="all 0.1s",this.interval=setInterval(()=>this.updateBlinkState(),400)};function TyperSetup(){var e,t,i,s,n={};for(e of document.getElementsByClassName("typer"))n[e.id]=new Typer(e);for(t of document.getElementsByClassName("typer-stop")){let e=n[t.dataset.owner];t.onclick=()=>e.stop()}for(i of document.getElementsByClassName("typer-start")){let e=n[i.dataset.owner];i.onclick=()=>e.start()}for(s of document.getElementsByClassName("cursor")){let e=new Cursor(s);e.owner=n[s.dataset.owner]}}Cursor.prototype.updateBlinkState=function(){this.on?(this.element.style.opacity="0",this.on=!1):(this.element.style.opacity="1",this.on=!0)},TyperSetup();var theme={init:function(){theme.stickyHeader(),theme.subMenu(),theme.offCanvas(),theme.isotope(),theme.onepageHeaderOffset(),theme.spyScroll(),theme.anchorSmoothScroll(),theme.svgInject(),theme.backgroundImage(),theme.backgroundImageMobile(),theme.imageHoverOverlay(),theme.rellax(),theme.scrollCue(),theme.swiperSlider(),theme.lightbox(),theme.plyr(),theme.progressBar(),theme.loader(),theme.pageProgress(),theme.counterUp(),theme.bsTooltips(),theme.bsPopovers(),theme.bsModal(),theme.iTooltip(),theme.forms(),theme.passVisibility(),theme.pricingSwitcher(),theme.textRotator(),document.addEventListener("DOMContentLoaded",function(){theme.codeSnippet()})},stickyHeader:()=>{null!=document.querySelector(".navbar")&&new Headhesive(".navbar",{offset:350,offsetSide:"top",classes:{clone:"navbar-clone fixed"},onStick:function(){var e=this.clonedElem.classList;e.contains("transparent")&&e.contains("navbar-dark")&&(this.clonedElem.className=this.clonedElem.className.replace("navbar-dark","navbar-light"))}})},subMenu:()=>{!function(e){const t="has-child-dropdown-show";var i;e.Dropdown.prototype.toggle=(i=e.Dropdown.prototype.toggle,function(){document.querySelectorAll("."+t).forEach(function(e){e.classList.remove(t)});let e=this._element.closest(".dropdown").parentNode.closest(".dropdown");for(;e&&e!==document;e=e.parentNode.closest(".dropdown"))e.classList.add(t);return i.call(this)}),document.querySelectorAll(".dropdown").forEach(function(e){e.addEventListener("hide.bs.dropdown",function(e){this.classList.contains(t)&&(this.classList.remove(t),e.preventDefault()),e.stopPropagation()})})}(bootstrap)},offCanvas:()=>{if(null!=document.querySelector(".navbar")){const t=document.querySelectorAll(".offcanvas-nav-btn");var e=document.querySelector(".navbar:not(.navbar-clone) .offcanvas-nav");const i=new bootstrap.Offcanvas(e,{scroll:!0}),s=document.querySelectorAll(".onepage .navbar li a.scroll"),n=document.getElementById("offcanvas-search");t.forEach(e=>{e.addEventListener("click",e=>{i.show()})}),s.forEach(e=>{e.addEventListener("click",e=>{i.hide()})}),null!=n&&n.addEventListener("shown.bs.offcanvas",function(){document.getElementById("search-form").focus()})}},isotope:()=>{var e=document.querySelectorAll(".grid");null!=e&&e.forEach(e=>{var t,i=e.querySelector(".isotope"),s=e.querySelector(".isotope-filter"),n=e.querySelectorAll(".isotope-filter");if(null!=i&&(t=new Isotope(i,{itemSelector:".item",layoutMode:"masonry",masonry:{columnWidth:i.offsetWidth/12},percentPosition:!0,transitionDuration:"0.7s"}),imagesLoaded(i).on("progress",function(){t.layout({masonry:{columnWidth:i.offsetWidth/12}})}),window.addEventListener("resize",function(){t.arrange({masonry:{columnWidth:i.offsetWidth/12}})},!0)),null!=s){s.addEventListener("click",function(e){matchesSelector(e.target,".filter-item")&&(e=e.target.getAttribute("data-filter"),t.arrange({filter:e}))});for(var a=0,o=n.length;a<o;a++){var r=n[a];r.addEventListener("click",function(e){matchesSelector(e.target,".filter-item")&&(r.querySelector(".active").classList.remove("active"),e.target.classList.add("active"))})}}})},onepageHeaderOffset:()=>{if(null!=document.querySelector(".navbar")){var e=document.querySelector(".navbar").offsetHeight;const t=document.querySelectorAll(".onepage section");t.forEach(e=>{e.style.paddingTop="75px",e.style.marginTop="-75px"});const i=document.querySelector(".onepage section:first-of-type");null!=i&&(i.style.paddingTop=e+"px",i.style.marginTop="-"+e+"px")}},spyScroll:()=>{let e=document.querySelectorAll("section[id]"),a=document.querySelectorAll(".nav-link.scroll");window.onscroll=()=>{e.forEach(e=>{var t=window.scrollY,i=+e.offsetTop,s=e.offsetHeight;let n=e.getAttribute("id");i<=t&&t<i+s&&a.forEach(e=>{e.classList.remove("active"),document.querySelector(`.nav-link.scroll[href*=${n}]`).classList.add("active")})})}},anchorSmoothScroll:()=>{for(const t of document.querySelectorAll(".scroll"))t.addEventListener("click",e);function e(e){e.preventDefault(),this.blur();e=this.getAttribute("href"),e=document.querySelector(e).offsetTop;scroll({top:e,behavior:"smooth"})}},svgInject:()=>{SVGInject.setOptions({onFail:function(e,t){e.classList.remove("svg-inject")}}),SVGInject(document.querySelectorAll("img.svg-inject"),{useCache:!0})},backgroundImage:()=>{for(var e=document.querySelectorAll(".bg-image"),t=0;t<e.length;t++){var i=e[t].getAttribute("data-image-src");e[t].style.backgroundImage="url('"+i+"')"}},backgroundImageMobile:()=>{!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i))||document.querySelectorAll(".image-wrapper").forEach(e=>{e.classList.add("mobile")})},imageHoverOverlay:()=>{for(var e=document.querySelectorAll(".overlay > a, .overlay > span"),t=0;t<e.length;t++){var i=document.createElement("span");i.className="bg",e[t].appendChild(i)}},rellax:()=>{null!=document.querySelector(".rellax")&&(window.onload=function(){var e=new Rellax(".rellax",{speed:2,center:!0,breakpoints:[576,992,1201]}),t=document.querySelectorAll(".projects-overflow");imagesLoaded(t,function(){e.refresh()})})},scrollCue:()=>{scrollCue.init({interval:-400,duration:700,percentage:.8}),scrollCue.update()},swiperSlider:function(){for(var e=document.querySelectorAll(".swiper-container"),t=0;t<e.length;t++){var i=e[t];i.classList.add("swiper-container-"+t);var s=document.createElement("div");s.className="swiper-controls";var n=document.createElement("div");n.className="swiper-pagination";var a=document.createElement("div");a.className="swiper-navigation";var o=document.createElement("div");o.className="swiper-button swiper-button-prev";var r=document.createElement("div");r.className="swiper-button swiper-button-next",i.appendChild(s),s.appendChild(a),a.appendChild(o),a.appendChild(r),s.appendChild(n);var l,c,d=i.getAttribute("data-effect")?i.getAttribute("data-effect"):"slide";c="true"===i.getAttribute("data-items-auto")?(l="auto",null):(f=i.getAttribute("data-items")?i.getAttribute("data-items"):3,m=i.getAttribute("data-items-xs")?i.getAttribute("data-items-xs"):1,g=i.getAttribute("data-items-sm")?i.getAttribute("data-items-sm"):Number(m),v=i.getAttribute("data-items-md")?i.getAttribute("data-items-md"):Number(g),y=i.getAttribute("data-items-lg")?i.getAttribute("data-items-lg"):Number(v),b=i.getAttribute("data-items-xl")?i.getAttribute("data-items-xl"):Number(y),w=i.getAttribute("data-items-xxl")?i.getAttribute("data-items-xxl"):Number(b),l=f,{0:{slidesPerView:Number(m)},576:{slidesPerView:Number(g)},768:{slidesPerView:Number(v)},992:{slidesPerView:Number(y)},1200:{slidesPerView:Number(b)},1400:{slidesPerView:Number(w)}});var u,p=i.getAttribute("data-speed")?i.getAttribute("data-speed"):500,h=(i.getAttribute("data-autoplay"),i.getAttribute("data-autoplaytime")?i.getAttribute("data-autoplaytime"):5e3),o="true"===i.getAttribute("data-autoheight"),r="false"!==i.getAttribute("data-resizeupdate"),f="false"!==i.getAttribute("data-drag"),m="true"===i.getAttribute("data-reverse"),g=i.getAttribute("data-margin")?i.getAttribute("data-margin"):30,v="true"===i.getAttribute("data-loop"),y="true"===i.getAttribute("data-centered"),b=i.querySelector(".swiper:not(.swiper-thumbs)"),w=i.querySelector(".swiper-thumbs"),w=new Swiper(w,{slidesPerView:5,spaceBetween:10,loop:!1,threshold:2,slideToClickedSlide:!0});"true"===i.getAttribute("data-thumbs")?(u=w,(w=document.createElement("div")).className="swiper-main",b.parentNode.insertBefore(w,b),w.appendChild(b),i.removeChild(s),w.appendChild(s)):u=null;new Swiper(b,{on:{beforeInit:function(){"true"!==i.getAttribute("data-nav")&&"true"!==i.getAttribute("data-dots")&&s.remove(),"true"!==i.getAttribute("data-dots")&&n.remove(),"true"!==i.getAttribute("data-nav")&&a.remove()},init:function(){"true"!==i.getAttribute("data-autoplay")&&this.autoplay.stop(),this.update()}},autoplay:{delay:h,disableOnInteraction:!1,reverseDirection:m,pauseOnMouseEnter:!1},allowTouchMove:f,speed:parseInt(p),slidesPerView:l,loop:v,centeredSlides:y,spaceBetween:Number(g),effect:d,autoHeight:o,grabCursor:!0,resizeObserver:!1,updateOnWindowResize:r,breakpoints:c,pagination:{el:e[t].querySelector(".swiper-pagination"),clickable:!0},navigation:{prevEl:i.querySelector(".swiper-button-prev"),nextEl:i.querySelector(".swiper-button-next")},thumbs:{swiper:u}})}},lightbox:()=>{GLightbox({selector:"*[data-glightbox]",touchNavigation:!0,loop:!1,zoomable:!1,autoplayVideos:!0,moreLength:0,slideExtraAttributes:{poster:""},plyr:{css:"",js:"",config:{ratio:"",fullscreen:{enabled:!1,iosNative:!1},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}}})},plyr:()=>{Plyr.setup(".player",{loadSprite:!0})},progressBar:()=>{const e=document.querySelectorAll(".progressbar.line"),t=document.querySelectorAll(".progressbar.semi-circle");e.forEach(e=>{var t=new ProgressBar.Line(e,{strokeWidth:6,trailWidth:6,duration:3e3,easing:"easeInOut",text:{style:{color:"inherit",position:"absolute",right:"0",top:"-30px",padding:0,margin:0,transform:null},autoStyleContainer:!1},step:(e,t)=>{t.setText(Math.round(100*t.value())+" %")}}),i=e.getAttribute("data-value")/100;new Waypoint({element:e,handler:function(){t.animate(i)},offset:"bottom-in-view"})}),t.forEach(e=>{var t=new ProgressBar.SemiCircle(e,{strokeWidth:6,trailWidth:6,duration:2e3,easing:"easeInOut",step:(e,t)=>{t.setText(Math.round(100*t.value()))}}),i=e.getAttribute("data-value")/100;new Waypoint({element:e,handler:function(){t.animate(i)},offset:"bottom-in-view"})})},loader:()=>{var e=document.querySelector(".page-loader");null!=e&&(document.body.onload=function(){setTimeout(function(){e.classList.contains("done")||e.classList.add("done")},1e3)})},pageProgress:()=>{var s,n,a=document.querySelector(".progress-wrap");null!=a&&(s=document.querySelector(".progress-wrap path"),n=s.getTotalLength(),s.style.transition=s.style.WebkitTransition="none",s.style.strokeDasharray=n+" "+n,s.style.strokeDashoffset=n,s.getBoundingClientRect(),s.style.transition=s.style.WebkitTransition="stroke-dashoffset 10ms linear",window.addEventListener("scroll",function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,i=document.documentElement.scrollHeight-document.documentElement.clientHeight;s.style.strokeDashoffset=n-t*n/i,50<=(document.body.scrollTop||document.documentElement.scrollTop)?a.classList.add("active-progress"):a.classList.remove("active-progress")}),a.addEventListener("click",function(e){e.preventDefault(),window.scroll({top:0,left:0,behavior:"smooth"})}))},counterUp:()=>{var t=window.counterUp.default;const e=document.querySelectorAll(".counter");e.forEach(e=>{new Waypoint({element:e,handler:function(){t(e,{duration:1e3,delay:50}),this.destroy()},offset:"bottom-in-view"})})},bsTooltips:()=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new bootstrap.Tooltip(e,{trigger:"hover"})}),[].slice.call(document.querySelectorAll('[data-bs-toggle="white-tooltip"]')).map(function(e){return new bootstrap.Tooltip(e,{customClass:"white-tooltip",trigger:"hover",placement:"left"})})},bsPopovers:()=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map(function(e){return new bootstrap.Popover(e)})},bsModal:()=>{var e;null!=document.querySelector(".modal-popup")&&(e=new bootstrap.Modal(document.querySelector(".modal-popup")),setTimeout(function(){e.show()},200));var t,i,s,n=window.innerWidth;null!=document.body&&(t=n-document.body.clientWidth,n=document.querySelectorAll(".modal"),i=document.querySelector(".navbar.fixed"),s=document.querySelector(".progress-wrap"),n.forEach(e=>{e.addEventListener("show.bs.modal",function(e){null!=i&&(i.style.paddingRight=t+"px"),null!=s&&(s.style.marginRight=t+"px")}),e.addEventListener("hidden.bs.modal",function(e){null!=i&&(i.style.paddingRight=""),null!=s&&(s.style.marginRight="")})}))},iTooltip:()=>{new iTooltip(".itooltip").init({className:"itooltip-inner",indentX:15,indentY:15,positionX:"right",positionY:"bottom"})},forms:()=>{!function(){"use strict";window.addEventListener("load",function(){var e=document.querySelectorAll(".needs-validation"),t=document.querySelector("input[data-recaptcha]");window.verifyRecaptchaCallback=function(e){t.value=e,t.dispatchEvent(new Event("change"))},window.expiredRecaptchaCallback=function(){var e=document.querySelector("input[data-recaptcha]");e.value="",e.dispatchEvent(new Event("change"))};Array.prototype.filter.call(e,function(s){s.addEventListener("submit",function(e){var i;!1===s.checkValidity()&&(e.preventDefault(),e.stopPropagation()),s.classList.add("was-validated"),!0===s.checkValidity()&&(e.preventDefault(),s.classList.remove("was-validated"),s.classList.contains("contact-form")&&(e=new FormData(s),i="alert-danger",fetch("assets/php/contact.php",{method:"post",body:e}).then(e=>(e.ok&&(i="alert-success"),e.text())).then(e=>{var t='<div class="alert '+i+' alert-dismissible fade show"><button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>'+e+"</div>";i&&e&&(s.querySelector(".messages").insertAdjacentHTML("beforeend",t),s.reset(),grecaptcha.reset())}).catch(e=>{console.log(e)})))},!1)})},!1)}()},passVisibility:()=>{let s=document.querySelectorAll(".password-field");for(let e=0;e<s.length;e++){let t=s[e].querySelector(".form-control"),i=s[e].querySelector(".password-toggle > i");i.addEventListener("click",e=>{"password"===t.type?(t.type="text",i.classList.remove("uil-eye"),i.classList.add("uil-eye-slash")):(t.type="password",i.classList.remove("uil-eye-slash"),i.classList.add("uil-eye"))},!1)}},pricingSwitcher:()=>{if(null!=document.querySelector(".pricing-switchers")){const e=document.querySelectorAll(".pricing-wrapper");e.forEach(e=>{const t=e.querySelector(".pricing-switchers"),i=e.querySelectorAll(".pricing-switcher"),s=e.querySelectorAll(".price");t.addEventListener("click",e=>{i.forEach(e=>{e.classList.toggle("pricing-switcher-active")}),s.forEach(e=>{e.classList.remove("price-hidden"),e.classList.toggle("price-show"),e.classList.toggle("price-hide")})})})}},textRotator:()=>{null!=document.querySelector(".rotator-zoom")&&new ReplaceMe(document.querySelector(".rotator-zoom"),{animation:"animate__animated animate__zoomIn",speed:2500,separator:",",clickChange:!1,loopCount:"infinite"}),null!=document.querySelector(".rotator-fade")&&new ReplaceMe(document.querySelector(".rotator-fade"),{animation:"animate__animated animate__fadeInDown",speed:2500,separator:",",clickChange:!1,loopCount:"infinite"})},codeSnippet:()=>{document.querySelectorAll(".code-wrapper-inner").forEach(function(e){e.insertAdjacentHTML("beforebegin",'<button type="button" class="btn btn-sm btn-white rounded-pill btn-clipboard">Copy</button>')}),new ClipboardJS(".btn-clipboard",{target:function(e){return e.nextElementSibling}}).on("success",e=>{e.trigger.textContent="Copied!",e.clearSelection(),setTimeout(function(){e.trigger.textContent="Copy"},2e3)}),new ClipboardJS(".btn-copy-icon").on("success",function(e){e.clearSelection(),e.trigger.textContent="Copied!",window.setTimeout(function(){e.trigger.textContent="Copy"},2300)})}};theme.init(),function(n,o){function r(e,t){e=o(e);e.data(l,this),this._$element=e,this.shares=[],this._init(t),this._render()}function i(e,t){return o.isFunction(e)?e.apply(t,o.makeArray(arguments).slice(2)):e}var l="JSSocials",s=/(\.(jpeg|png|gif|bmp|svg)$|^data:image\/(jpeg|png|gif|bmp|svg\+xml);base64)/i,t=/(&?[a-zA-Z0-9]+=)?\{([a-zA-Z0-9]+)\}/g,e={G:1e9,M:1e6,K:1e3},a={};r.prototype={url:"",text:"",shareIn:"blank",showLabel:function(e){return!1===this.showCount?e>this.smallScreenWidth:e>=this.largeScreenWidth},showCount:function(e){return!(e<=this.smallScreenWidth)||"inside"},smallScreenWidth:640,largeScreenWidth:1024,resizeTimeout:200,elementClass:"jssocials",sharesClass:"jssocials-shares",shareClass:"jssocials-share",shareButtonClass:"jssocials-share-button",shareLinkClass:"jssocials-share-link",shareLogoClass:"jssocials-share-logo",shareLabelClass:"jssocials-share-label",shareLinkCountClass:"jssocials-share-link-count",shareCountBoxClass:"jssocials-share-count-box",shareCountClass:"jssocials-share-count",shareZeroCountClass:"jssocials-share-no-count",_init:function(e){this._initDefaults(),o.extend(this,e),this._initShares(),this._attachWindowResizeCallback()},_initDefaults:function(){this.url=n.location.href,this.text=o.trim(o("meta[name=description]").attr("content")||o("title").text())},_initShares:function(){this.shares=o.map(this.shares,o.proxy(function(e){var t=(e="string"==typeof e?{share:e}:e).share&&a[e.share];if(!t&&!e.renderer)throw Error("Share '"+e.share+"' is not found");return o.extend({url:this.url,text:this.text},t,e)},this))},_attachWindowResizeCallback:function(){o(n).on("resize",o.proxy(this._windowResizeHandler,this))},_detachWindowResizeCallback:function(){o(n).off("resize",this._windowResizeHandler)},_windowResizeHandler:function(){(o.isFunction(this.showLabel)||o.isFunction(this.showCount))&&(n.clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(o.proxy(this.refresh,this),this.resizeTimeout))},_render:function(){this._clear(),this._defineOptionsByScreen(),this._$element.addClass(this.elementClass),this._$shares=o("<div>").addClass(this.sharesClass).appendTo(this._$element),this._renderShares()},_defineOptionsByScreen:function(){this._screenWidth=o(n).width(),this._showLabel=i(this.showLabel,this,this._screenWidth),this._showCount=i(this.showCount,this,this._screenWidth)},_renderShares:function(){o.each(this.shares,o.proxy(function(e,t){this._renderShare(t)},this))},_renderShare:function(e){(o.isFunction(e.renderer)?o(e.renderer()):this._createShare(e)).addClass(this.shareClass).addClass(e.share?"jssocials-share-"+e.share:"").addClass(e.css).appendTo(this._$shares)},_createShare:function(e){var t,i=o("<div>"),s=this._createShareLink(e).appendTo(i);return this._showCount&&((s=(t="inside"===this._showCount)?s:o("<div>").addClass(this.shareCountBoxClass).appendTo(i)).addClass(t?this.shareLinkCountClass:this.shareCountBoxClass),this._renderShareCount(e,s)),i},_createShareLink:function(i){var s=this._getShareStrategy(i).call(i,{shareUrl:this._getShareUrl(i)});return s.addClass(this.shareLinkClass).append(this._createShareLogo(i)),this._showLabel&&s.append(this._createShareLabel(i)),o.each(this.on||{},function(e,t){o.isFunction(t)&&s.on(e,o.proxy(t,i))}),s},_getShareStrategy:function(e){e=c[e.shareIn||this.shareIn];if(!e)throw Error("Share strategy '"+this.shareIn+"' not found");return e},_getShareUrl:function(e){var t=i(e.shareUrl,e);return this._formatShareUrl(t,e)},_createShareLogo:function(e){var t=e.logo,t=s.test(t)?o("<img>").attr("src",e.logo):o("<i>").addClass(t);return t.addClass(this.shareLogoClass),t},_createShareLabel:function(e){return o("<span>").addClass(this.shareLabelClass).text(e.label)},_renderShareCount:function(e,t){var i=o("<span>").addClass(this.shareCountClass);t.addClass(this.shareZeroCountClass).append(i),this._loadCount(e).done(o.proxy(function(e){e&&(t.removeClass(this.shareZeroCountClass),i.text(e))},this))},_loadCount:function(t){var i=o.Deferred(),e=this._getCountUrl(t);if(!e)return i.resolve(0).promise();var s=o.proxy(function(e){i.resolve(this._getCountValue(e,t))},this);return o.getJSON(e).done(s).fail(function(){o.get(e).done(s).fail(function(){i.resolve(0)})}),i.promise()},_getCountUrl:function(e){var t=i(e.countUrl,e);return this._formatShareUrl(t,e)},_getCountValue:function(e,t){e=(o.isFunction(t.getCount)?t.getCount(e):e)||0;return"string"==typeof e?e:this._formatNumber(e)},_formatNumber:function(i){return o.each(e,function(e,t){return t<=i?(i=parseFloat((i/t).toFixed(2))+e,!1):void 0}),i},_formatShareUrl:function(e,s){return e.replace(t,function(e,t,i){i=s[i]||"";return i?(t||"")+n.encodeURIComponent(i):""})},_clear:function(){n.clearTimeout(this._resizeTimer),this._$element.empty()},_passOptionToShares:function(i,s){var n=this.shares;o.each(["url","text"],function(e,t){t===i&&o.each(n,function(e,t){t[i]=s})})},_normalizeShare:function(t){return o.isNumeric(t)?this.shares[t]:"string"==typeof t?o.grep(this.shares,function(e){return e.share===t})[0]:t},refresh:function(){this._render()},destroy:function(){this._clear(),this._detachWindowResizeCallback(),this._$element.removeClass(this.elementClass).removeData(l)},option:function(e,t){return 1===arguments.length?this[e]:(this[e]=t,this._passOptionToShares(e,t),void this.refresh())},shareOption:function(e,t,i){return e=this._normalizeShare(e),2===arguments.length?e[t]:(e[t]=i,void this.refresh())}},o.fn.jsSocials=function(s){var n=o.makeArray(arguments).slice(1),a=this;return this.each(function(){var e,t=o(this),i=t.data(l);if(i)if("string"==typeof s){if(void 0!==(e=i[s].apply(i,n))&&e!==i)return a=e,!1}else i._detachWindowResizeCallback(),i._init(s),i._render();else new r(t,s)}),a};var c={popup:function(e){return o("<a>").attr("href","#").on("click",function(){return n.open(e.shareUrl,null,"width=600, height=400, location=0, menubar=0, resizeable=0, scrollbars=0, status=0, titlebar=0, toolbar=0"),!1})},blank:function(e){return o("<a>").attr({target:"_blank",href:e.shareUrl})},self:function(e){return o("<a>").attr({target:"_self",href:e.shareUrl})}};n.jsSocials={Socials:r,shares:a,shareStrategies:c,setDefaults:function(e){var t;o.isPlainObject(e)?t=r.prototype:(t=a[e],e=arguments[1]||{}),o.extend(t,e)}}}(window,jQuery),function(e,t){e.extend(t.shares,{email:{label:"E-mail",logo:"fa fa-at",shareUrl:"mailto:{to}?subject={text}&body={url}",countUrl:"",shareIn:"self"},twitter:{label:"Tweet",logo:"fa fa-twitter",shareUrl:"https://twitter.com/share?url={url}&text={text}&via={via}&hashtags={hashtags}",countUrl:""},facebook:{label:"Like",logo:"fa fa-facebook-f",shareUrl:"https://facebook.com/sharer/sharer.php?u={url}",countUrl:"https://graph.facebook.com/?id={url}",getCount:function(e){return e.share&&e.share.share_count||0}},vkontakte:{label:"Like",logo:"fa fa-vk",shareUrl:"https://vk.com/share.php?url={url}&title={title}&description={text}",countUrl:"https://vk.com/share.php?act=count&index=1&url={url}",getCount:function(e){return parseInt(e.slice(15,-2).split(", ")[1])}},googleplus:{label:"+1",logo:"fa fa-google",shareUrl:"https://plus.google.com/share?url={url}",countUrl:""},linkedin:{label:"Share",logo:"fa fa-linkedin-in",shareUrl:"https://www.linkedin.com/shareArticle?mini=true&url={url}",countUrl:"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?",getCount:function(e){return e.count}},pinterest:{label:"Pin it",logo:"fa fa-pinterest",shareUrl:"https://pinterest.com/pin/create/bookmarklet/?media={media}&url={url}&description={text}",countUrl:"https://api.pinterest.com/v1/urls/count.json?&url={url}&callback=?",getCount:function(e){return e.count}},stumbleupon:{label:"Share",logo:"fa fa-stumbleupon",shareUrl:"http://www.stumbleupon.com/submit?url={url}&title={title}",countUrl:"https://cors-anywhere.herokuapp.com/https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}",getCount:function(e){return e.result.views}},telegram:{label:"Telegram",logo:"fa fa-paper-plane",shareUrl:"tg://msg?text={url} {text}",countUrl:"",shareIn:"self"},whatsapp:{label:"WhatsApp",logo:"fa fa-whatsapp",shareUrl:"whatsapp://send?text={url} {text}",countUrl:"",shareIn:"self"},line:{label:"LINE",logo:"fa fa-comment",shareUrl:"http://line.me/R/msg/text/?{text} {url}",countUrl:""},viber:{label:"Viber",logo:"fa fa-volume-control-phone",shareUrl:"viber://forward?text={url} {text}",countUrl:"",shareIn:"self"},pocket:{label:"Pocket",logo:"fa fa-get-pocket",shareUrl:"https://getpocket.com/save?url={url}&title={title}",countUrl:""},messenger:{label:"Share",logo:"fa fa-commenting",shareUrl:"fb-messenger://share?link={url}",countUrl:"",shareIn:"self"}})}((window,jQuery),window.jsSocials);