!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(jQuery)}(function($){var menuTrees=[],mouse=!1,touchEvents="ontouchstart"in window,mouseDetectionEnabled=!1,requestAnimationFrame=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||function(t){clearTimeout(t)},canAnimate=!!$.fn.animate;function initMouseDetection(t){var i=".smartmenus_mouse";if(mouseDetectionEnabled||t)mouseDetectionEnabled&&t&&($(document).off(i),mouseDetectionEnabled=!1);else{var s=!0,e=null,o={mousemove:function(t){var i={x:t.pageX,y:t.pageY,timeStamp:new Date().getTime()};if(e){var o=Math.abs(e.x-i.x),a=Math.abs(e.y-i.y);if((o>0||a>0)&&o<=2&&a<=2&&i.timeStamp-e.timeStamp<=300&&(mouse=!0,s)){var r=$(t.target).closest("a");r.is("a")&&$.each(menuTrees,function(){if($.contains(this.$root[0],r[0]))return this.itemEnter({currentTarget:r[0]}),!1}),s=!1}}e=i}};o[touchEvents?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(t){isTouchEvent(t.originalEvent)&&(mouse=!1)},$(document).on(getEventsNS(o,i)),mouseDetectionEnabled=!0}}function isTouchEvent(t){return!/^(4|mouse)$/.test(t.pointerType)}function getEventsNS(t,i){i||(i="");var s={};for(var e in t)s[e.split(" ").join(i+" ")+i]=t[e];return s}return $.SmartMenus=function(t,i){this.$root=$(t),this.opts=i,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in t.style||"webkitPerspective"in t.style,this.wasCollapsible=!1,this.init()},$.extend($.SmartMenus,{hideAll:function(){$.each(menuTrees,function(){this.menuHideAll()})},destroy:function(){for(;menuTrees.length;)menuTrees[0].destroy();initMouseDetection(!0)},prototype:{init:function(t){var i=this;if(!t){menuTrees.push(this),this.rootId=(new Date().getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var s=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(getEventsNS({"mouseover focusin":$.proxy(this.rootOver,this),"mouseout focusout":$.proxy(this.rootOut,this),keydown:$.proxy(this.rootKeyDown,this)},s)).on(getEventsNS({mouseenter:$.proxy(this.itemEnter,this),mouseleave:$.proxy(this.itemLeave,this),mousedown:$.proxy(this.itemDown,this),focus:$.proxy(this.itemFocus,this),blur:$.proxy(this.itemBlur,this),click:$.proxy(this.itemClick,this)},s),"a"),s+=this.rootId,this.opts.hideOnClick&&$(document).on(getEventsNS({touchstart:$.proxy(this.docTouchStart,this),touchmove:$.proxy(this.docTouchMove,this),touchend:$.proxy(this.docTouchEnd,this),click:$.proxy(this.docClick,this)},s)),$(window).on(getEventsNS({"resize orientationchange":$.proxy(this.winResize,this)},s)),this.opts.subIndicators&&(this.$subArrow=$("<span/>").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),initMouseDetection()}if(this.$firstSub=this.$root.find("ul.submenu, ul.sub-menu").each(function(){i.menuInit($(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var e=/(index|default)\.[^#\?\/]*/i,o=/#.*/,a=window.location.href.replace(e,""),r=a.replace(o,"");this.$root.find("a").each(function(){var t=this.href.replace(e,""),s=$(this);(t==a||t==r)&&(s.addClass("current"),i.opts.markCurrentTree&&s.parentsUntil("[data-smartmenus-id]","ul").each(function(){$(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(t){if(!t){var i=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(i),i+=this.rootId,$(document).off(i),$(window).off(i),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var s=this;this.$root.find("ul").each(function(){var t=$(this);t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.dataSM("shown-before")&&((s.opts.subMenusMinWidth||s.opts.subMenusMaxWidth)&&t.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(t.attr("id")||"").indexOf(s.accessIdPrefix)&&t.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var t=$(this);0==t.attr("id").indexOf(s.accessIdPrefix)&&t.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),t||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),menuTrees.splice($.inArray(this,menuTrees),1))},disable:function(t){if(!this.disabled){if(this.menuHideAll(),!t&&!this.opts.isPopup&&this.$root.is(":visible")){var i=this.$root.offset();this.$disableOverlay=$('<div class="sm-jquery-disable-overlay"/>').css({position:"absolute",top:i.top,left:i.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(t){if(this.$touchScrollingSub){this.$touchScrollingSub=null;return}(this.visibleSubMenus.length&&!$.contains(this.$root[0],t.target)||$(t.target).closest("a").length)&&this.menuHideAll()},docTouchEnd:function(t){if(this.lastTouch){if(this.visibleSubMenus.length&&(void 0===this.lastTouch.x2||this.lastTouch.x1==this.lastTouch.x2)&&(void 0===this.lastTouch.y2||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!$.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var i=this;this.hideTimeout=setTimeout(function(){i.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(t){if(this.lastTouch){var i=t.originalEvent.touches[0];this.lastTouch.x2=i.pageX,this.lastTouch.y2=i.pageY}},docTouchStart:function(t){var i=t.originalEvent.touches[0];this.lastTouch={x1:i.pageX,y1:i.pageY,target:i.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(t){for(var i=$(t).closest("ul");i.dataSM("in-mega");)i=i.parent().closest("ul");return i[0]||null},getHeight:function(t){return this.getOffset(t,!0)},getOffset:function(t,i){"none"==t.css("display")&&(s={position:t[0].style.position,visibility:t[0].style.visibility},t.css({position:"absolute",visibility:"hidden"}).show());var s,e=t[0].getBoundingClientRect&&t[0].getBoundingClientRect(),o=e&&(i?e.height||e.bottom-e.top:e.width||e.right-e.left);return o||0===o||(o=i?t[0].offsetHeight:t[0].offsetWidth),s&&t.hide().css(s),o},getStartZIndex:function(t){var i=parseInt(this[t?"$root":"$firstSub"].css("z-index"));return!t&&isNaN(i)&&(i=parseInt(this.$root.css("z-index"))),isNaN(i)?1:i},getTouchPoint:function(t){return t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0]||t},getViewport:function(t){var i=t?"Height":"Width",s=document.documentElement["client"+i],e=window["inner"+i];return e&&(s=Math.min(s,e)),s},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(t){return this.getOffset(t)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(t){return this.handleEvents()&&!this.isLinkInMegaMenu(t)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var t="fixed"==this.$root.css("position");return t||this.$root.parentsUntil("body").each(function(){if("fixed"==$(this).css("position"))return t=!0,!1}),t},isLinkInMegaMenu:function(t){return $(this.getClosestMenu(t[0])).hasClass("mega-menu")},isTouchMode:function(){return!mouse||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(t,i){var s=t.closest("ul"),e=s.dataSM("level");if(e>1&&(!this.activatedItems[e-2]||this.activatedItems[e-2][0]!=s.dataSM("parent-a")[0])){var o=this;$(s.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(s).each(function(){o.itemActivate($(this).dataSM("parent-a"))})}if($(s).parents(".raven-megamenu-wrapper").length>0&&(e+=$(s).parents(".raven-megamenu-wrapper").length),(!this.isCollapsible()||i)&&this.menuHideSubMenus(this.activatedItems[e-1]&&this.activatedItems[e-1][0]==t[0]?e:e-1),this.activatedItems[e-1]=t,!1!==this.$root.triggerHandler("activate.smapi",t[0])){var a=t.dataSM("sub");a&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(a)}},itemBlur:function(t){var i=$(t.currentTarget);this.handleItemEvents(i)&&this.$root.triggerHandler("blur.smapi",i[0])},itemClick:function(t){var i=$(t.currentTarget);if(this.handleItemEvents(i)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==i.closest("ul")[0])return this.$touchScrollingSub=null,t.stopPropagation(),!1;if(!1===this.$root.triggerHandler("click.smapi",i[0]))return!1;var s=$(t.target).is(".sub-arrow"),e=i.dataSM("sub"),o=!!e&&2==e.dataSM("level"),a=this.isCollapsible(),r=/toggle$/.test(this.opts.collapsibleBehavior),n=/link$/.test(this.opts.collapsibleBehavior),h=/^accordion/.test(this.opts.collapsibleBehavior);if(e&&!e.is(":visible")){if((!n||!a||s)&&(this.opts.showOnClick&&o&&(this.clickActivated=!0),this.itemActivate(i,h),e.is(":visible")))return this.focusActivated=!0,!1}else if(a&&(r||s))return this.itemActivate(i,h),this.menuHide(e),r&&(this.focusActivated=!1),!1;if(this.opts.showOnClick&&o||i.hasClass("disabled")||!1===this.$root.triggerHandler("select.smapi",i[0]))return!1}},itemDown:function(t){var i=$(t.currentTarget);this.handleItemEvents(i)&&i.dataSM("mousedown",!0)},itemEnter:function(t){var i=$(t.currentTarget);if(this.handleItemEvents(i)&&!this.opts.showOnClick){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var s=this;this.showTimeout=setTimeout(function(){s.itemActivate(i)},this.opts.showOnClick&&1==i.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",i[0])}},itemFocus:function(t){var i=$(t.currentTarget);this.handleItemEvents(i)&&(!this.focusActivated||this.isTouchMode()&&i.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==i[0]||this.itemActivate(i,!0),this.$root.triggerHandler("focus.smapi",i[0]))},itemLeave:function(t){var i=$(t.currentTarget);this.handleItemEvents(i)&&(!this.isTouchMode()&&(i[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),i.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",i[0]))},menuHide:function(t){if(!1!==this.$root.triggerHandler("beforehide.smapi",t[0])&&(canAnimate&&t.stop(!0,!0),"none"!=t.css("display"))){var i=function(){t.css("z-index","")};this.isCollapsible()?canAnimate&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,t,i):t.hide(this.opts.collapsibleHideDuration,i):canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,t,i):t.hide(this.opts.hideDuration,i),t.dataSM("scroll")&&(this.menuScrollStop(t),t.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),t.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),t.attr({"aria-expanded":"false","aria-hidden":"true"});var s=t.dataSM("level");this.activatedItems.splice(s-1,1),this.visibleSubMenus.splice($.inArray(t,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",t[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var t=this.opts.isPopup?1:0,i=this.visibleSubMenus.length-1;i>=t;i--)this.menuHide(this.visibleSubMenus[i]);this.opts.isPopup&&(canAnimate&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(t){for(var i=this.activatedItems.length-1;i>=t;i--){var s=this.activatedItems[i].dataSM("sub");s&&this.menuHide(s)}},menuInit:function(t){if(!t.dataSM("in-mega")){t.hasClass("mega-menu")&&t.find("ul").dataSM("in-mega",!0);for(var i=2,s=t[0];(s=s.parentNode.parentNode)!=this.$root[0];)i++;var e=t.prevAll("a").eq(-1);e.length||(e=t.prevAll().find("a").eq(-1)),e.addClass("has-submenu").dataSM("sub",t),t.dataSM("parent-a",e).dataSM("level",i).parent().dataSM("sub",t);var o=e.attr("id")||this.accessIdPrefix+ ++this.idInc,a=t.attr("id")||this.accessIdPrefix+ ++this.idInc;e.attr({id:o,"aria-haspopup":"true","aria-controls":a,"aria-expanded":"false"}),t.attr({id:a,role:"group","aria-hidden":"true","aria-labelledby":o,"aria-expanded":"false"}),this.opts.subIndicators&&e[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(t){var i,s,e=t.dataSM("parent-a"),o=e.closest("li"),a=o.parent(),r=t.dataSM("level"),n=this.getWidth(t),h=this.getHeight(t),u=e.offset(),l=u.left,c=u.top,d=this.getWidth(e),m=this.getHeight(e),p=$(window),f=p.scrollLeft(),v=p.scrollTop(),b=this.getViewportWidth(),S=this.getViewportHeight(),g=a.parent().is("[data-sm-horizontal-sub]")||2==r&&!a.hasClass("sm-vertical"),M=this.opts.rightToLeftSubMenus&&!o.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&o.is("[data-sm-reverse]"),w=2==r?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,T=2==r?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(g?(i=M?d-n-w:w,s=this.opts.bottomToTopSubMenus?-h-T:m+T):(i=M?w-n:d-w,s=this.opts.bottomToTopSubMenus?m-T-h:T),this.opts.keepInViewport){var y=l+i,x=c+s;if(M&&y<f?i=g?f-y+i:d-w:!M&&y+n>f+b&&(i=g?f+b-n-y+i:w-n),!g&&(h<S&&x+h>v+S?s+=v+S-h-x:(h>=S||x<v)&&(s+=v-x)),g&&(x+h>v+S+.49||x<v)||!g&&h>S+.49){var I=this;t.dataSM("scroll-arrows")||t.dataSM("scroll-arrows",$([$('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0],$('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]).on({mouseenter:function(){t.dataSM("scroll").up=$(this).hasClass("scroll-up"),I.menuScroll(t)},mouseleave:function(i){I.menuScrollStop(t),I.menuScrollOut(t,i)},"mousewheel DOMMouseScroll":function(t){t.preventDefault()}}).insertAfter(t));var _=".smartmenus_scroll";if(t.dataSM("scroll",{y:this.cssTransforms3d?0:s-m,step:1,itemH:m,subH:h,arrowDownH:this.getHeight(t.dataSM("scroll-arrows").eq(1))}).on(getEventsNS({mouseover:function(i){I.menuScrollOver(t,i)},mouseout:function(i){I.menuScrollOut(t,i)},"mousewheel DOMMouseScroll":function(i){I.menuScrollMousewheel(t,i)}},_)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:i+(parseInt(t.css("border-left-width"))||0),width:n-(parseInt(t.css("border-left-width"))||0)-(parseInt(t.css("border-right-width"))||0),zIndex:t.css("z-index")}).eq(g&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var C={};C[touchEvents?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(i){I.menuScrollTouch(t,i)},t.css({"touch-action":"none","-ms-touch-action":"none"}).on(getEventsNS(C,_))}}}t.css({top:"auto",left:"0",marginLeft:i,marginTop:s-m})},menuScroll:function(t,i,s){var e,o=t.dataSM("scroll"),a=t.dataSM("scroll-arrows"),r=o.up?o.upEnd:o.downEnd;if(!i&&o.momentum){if(o.momentum*=.92,(e=o.momentum)<.5){this.menuScrollStop(t);return}}else e=s||(i||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(o.step));var n=t.dataSM("level");if(this.activatedItems[n-1]&&this.activatedItems[n-1].dataSM("sub")&&this.activatedItems[n-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(n-1),o.y=o.up&&r<=o.y||!o.up&&r>=o.y?o.y:Math.abs(r-o.y)>e?o.y+(o.up?e:-e):r,t.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+o.y+"px, 0)",transform:"translate3d(0, "+o.y+"px, 0)"}:{marginTop:o.y}),mouse&&(o.up&&o.y>o.downEnd||!o.up&&o.y<o.upEnd)&&a.eq(o.up?1:0).show(),o.y==r)mouse&&a.eq(o.up?0:1).hide(),this.menuScrollStop(t);else if(!i){this.opts.scrollAccelerate&&o.step<this.opts.scrollStep&&(o.step+=.2);var h=this;this.scrollTimeout=requestAnimationFrame(function(){h.menuScroll(t)})}},menuScrollMousewheel:function(t,i){if(this.getClosestMenu(i.target)==t[0]){var s=((i=i.originalEvent).wheelDelta||-i.detail)>0;t.dataSM("scroll-arrows").eq(s?0:1).is(":visible")&&(t.dataSM("scroll").up=s,this.menuScroll(t,!0))}i.preventDefault()},menuScrollOut:function(t,i){!mouse||/^scroll-(up|down)/.test((i.relatedTarget||"").className)||(t[0]==i.relatedTarget||$.contains(t[0],i.relatedTarget))&&this.getClosestMenu(i.relatedTarget)==t[0]||t.dataSM("scroll-arrows").css("visibility","hidden")},menuScrollOver:function(t,i){if(mouse&&!/^scroll-(up|down)/.test(i.target.className)&&this.getClosestMenu(i.target)==t[0]){this.menuScrollRefreshData(t);var s=t.dataSM("scroll"),e=$(window).scrollTop()-t.dataSM("parent-a").offset().top-s.itemH;t.dataSM("scroll-arrows").eq(0).css("margin-top",e).end().eq(1).css("margin-top",e+this.getViewportHeight()-s.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(t){var i=t.dataSM("scroll"),s=$(window).scrollTop()-t.dataSM("parent-a").offset().top-i.itemH;this.cssTransforms3d&&(s=-(parseFloat(t.css("margin-top"))-s)),$.extend(i,{upEnd:s,downEnd:s+this.getViewportHeight()-i.subH})},menuScrollStop:function(t){if(this.scrollTimeout)return cancelAnimationFrame(this.scrollTimeout),this.scrollTimeout=0,t.dataSM("scroll").step=1,!0},menuScrollTouch:function(t,i){if(isTouchEvent(i=i.originalEvent)){var s=this.getTouchPoint(i);if(this.getClosestMenu(s.target)==t[0]){var e=t.dataSM("scroll");if(/(start|down)$/i.test(i.type))this.menuScrollStop(t)?(i.preventDefault(),this.$touchScrollingSub=t):this.$touchScrollingSub=null,this.menuScrollRefreshData(t),$.extend(e,{touchStartY:s.pageY,touchStartTime:i.timeStamp});else if(/move$/i.test(i.type)){var o=void 0!==e.touchY?e.touchY:e.touchStartY;if(void 0!==o&&o!=s.pageY){this.$touchScrollingSub=t;var a=o<s.pageY;void 0!==e.up&&e.up!=a&&$.extend(e,{touchStartY:s.pageY,touchStartTime:i.timeStamp}),$.extend(e,{up:a,touchY:s.pageY}),this.menuScroll(t,!0,Math.abs(s.pageY-o))}i.preventDefault()}else void 0!==e.touchY&&((e.momentum=15*Math.pow(Math.abs(s.pageY-e.touchStartY)/(i.timeStamp-e.touchStartTime),2))&&(this.menuScrollStop(t),this.menuScroll(t),i.preventDefault()),delete e.touchY)}}},menuShow:function(t){if((t.dataSM("beforefirstshowfired")||(t.dataSM("beforefirstshowfired",!0),!1!==this.$root.triggerHandler("beforefirstshow.smapi",t[0])))&&!1!==this.$root.triggerHandler("beforeshow.smapi",t[0])&&(t.dataSM("shown-before",!0),canAnimate&&t.stop(!0,!0),!t.is(":visible"))){var i=t.dataSM("parent-a"),s=this.isCollapsible();if((this.opts.keepHighlighted||s)&&i.addClass("highlighted"),s)t.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(t.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(t.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&t.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var e=this.getWidth(t);t.css("max-width",this.opts.subMenusMaxWidth),e>this.getWidth(t)&&t.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(t)}var o=function(){t.css("overflow","")};s?canAnimate&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,t,o):t.show(this.opts.collapsibleShowDuration,o):canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,t,o):t.show(this.opts.showDuration,o),i.attr("aria-expanded","true"),t.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(t),this.$root.triggerHandler("show.smapi",t[0])}},popupHide:function(t){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var i=this;this.hideTimeout=setTimeout(function(){i.menuHideAll()},t?1:this.opts.hideTimeout)},popupShow:function(t,i){if(!this.opts.isPopup){alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');return}if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),canAnimate&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:t,top:i});var s=this,e=function(){s.$root.css("overflow","")};canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,e):this.$root.show(this.opts.showDuration,e),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(t){if(this.handleEvents())switch(t.keyCode){case 27:var i=this.activatedItems[0];if(i){this.menuHideAll(),i[0].focus();var s=i.dataSM("sub");s&&this.menuHide(s)}break;case 32:var e=$(t.target);if(e.is("a")&&this.handleItemEvents(e)){var s=e.dataSM("sub");s&&!s.is(":visible")&&(this.itemClick({currentTarget:t.target}),t.preventDefault())}}},rootOut:function(t){if(!(!this.handleEvents()||this.isTouchMode())&&t.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var i=this;this.hideTimeout=setTimeout(function(){i.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(t){!(!this.handleEvents()||this.isTouchMode())&&t.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(t){if(!this.handleEvents()){if(this.$disableOverlay){var i=this.$root.offset();this.$disableOverlay.css({top:i.top,left:i.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}return}if(!("onorientationchange"in window)||"orientationchange"==t.type){var s=this.isCollapsible();this.wasCollapsible&&s||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=s}}}}),$.fn.dataSM=function(t,i){return i?this.data(t+"_smartmenus",i):this.data(t+"_smartmenus")},$.fn.removeDataSM=function(t){return this.removeData(t+"_smartmenus")},$.fn.smartmenus=function(options){if("string"==typeof options){var args=arguments,method=options;return Array.prototype.shift.call(args),this.each(function(){var t=$(this).data("smartmenus");t&&t[method]&&t[method].apply(t,args)})}return this.each(function(){var dataOpts=$(this).data("sm-options")||null;if(dataOpts)try{dataOpts=eval("("+dataOpts+")")}catch(e){dataOpts=null,alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.')}new $.SmartMenus(this,$.extend({},$.fn.smartmenus.defaults,options,dataOpts))})},$.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(t,i){t.fadeOut(200,i)},collapsibleShowDuration:0,collapsibleShowFunction:function(t,i){t.slideDown(200,i)},collapsibleHideDuration:0,collapsibleHideFunction:function(t,i){t.slideUp(200,i)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},$});
(function(t){var e=function(){try{return!!Symbol.iterator}catch(e){return false}};var r=e();var n=function(t){var e={next:function(){var e=t.shift();return{done:e===void 0,value:e}}};if(r){e[Symbol.iterator]=function(){return e}}return e};var i=function(e){return encodeURIComponent(e).replace(/%20/g,"+")};var o=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};var a=function(){var a=function(e){Object.defineProperty(this,"_entries",{writable:true,value:{}});var t=typeof e;if(t==="undefined"){}else if(t==="string"){if(e!==""){this._fromString(e)}}else if(e instanceof a){var r=this;e.forEach(function(e,t){r.append(t,e)})}else if(e!==null&&t==="object"){if(Object.prototype.toString.call(e)==="[object Array]"){for(var n=0;n<e.length;n++){var i=e[n];if(Object.prototype.toString.call(i)==="[object Array]"||i.length!==2){this.append(i[0],i[1])}else{throw new TypeError("Expected [string, any] as entry at index "+n+" of URLSearchParams's input")}}}else{for(var o in e){if(e.hasOwnProperty(o)){this.append(o,e[o])}}}}else{throw new TypeError("Unsupported input's type for URLSearchParams")}};var e=a.prototype;e.append=function(e,t){if(e in this._entries){this._entries[e].push(String(t))}else{this._entries[e]=[String(t)]}};e.delete=function(e){delete this._entries[e]};e.get=function(e){return e in this._entries?this._entries[e][0]:null};e.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]};e.has=function(e){return e in this._entries};e.set=function(e,t){this._entries[e]=[String(t)]};e.forEach=function(e,t){var r;for(var n in this._entries){if(this._entries.hasOwnProperty(n)){r=this._entries[n];for(var i=0;i<r.length;i++){e.call(t,r[i],n,this)}}}};e.keys=function(){var r=[];this.forEach(function(e,t){r.push(t)});return n(r)};e.values=function(){var t=[];this.forEach(function(e){t.push(e)});return n(t)};e.entries=function(){var r=[];this.forEach(function(e,t){r.push([t,e])});return n(r)};if(r){e[Symbol.iterator]=e.entries}e.toString=function(){var r=[];this.forEach(function(e,t){r.push(i(t)+"="+i(e))});return r.join("&")};t.URLSearchParams=a};var s=function(){try{var e=t.URLSearchParams;return new e("?a=1").toString()==="a=1"&&typeof e.prototype.set==="function"}catch(e){return false}};if(!s()){a()}var f=t.URLSearchParams.prototype;if(typeof f.sort!=="function"){f.sort=function(){var r=this;var n=[];this.forEach(function(e,t){n.push([t,e]);if(!r._entries){r.delete(t)}});n.sort(function(e,t){if(e[0]<t[0]){return-1}else if(e[0]>t[0]){return+1}else{return 0}});if(r._entries){r._entries={}}for(var e=0;e<n.length;e++){this.append(n[e][0],n[e][1])}}}if(typeof f._fromString!=="function"){Object.defineProperty(f,"_fromString",{enumerable:false,configurable:false,writable:false,value:function(e){if(this._entries){this._entries={}}else{var r=[];this.forEach(function(e,t){r.push(t)});for(var t=0;t<r.length;t++){this.delete(r[t])}}e=e.replace(/^\?/,"");var n=e.split("&");var i;for(var t=0;t<n.length;t++){i=n[t].split("=");this.append(o(i[0]),i.length>1?o(i[1]):"")}}})}})(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:this);(function(h){var e=function(){try{var e=new h.URL("b","http://a");e.pathname="c%20d";return e.href==="http://a/c%20d"&&e.searchParams}catch(e){return false}};var t=function(){var t=h.URL;var e=function(e,t){if(typeof e!=="string")e=String(e);var r=document,n;if(t&&(h.location===void 0||t!==h.location.href)){r=document.implementation.createHTMLDocument("");n=r.createElement("base");n.href=t;r.head.appendChild(n);try{if(n.href.indexOf(t)!==0)throw new Error(n.href)}catch(e){throw new Error("URL unable to set base "+t+" due to "+e)}}var i=r.createElement("a");i.href=e;if(n){r.body.appendChild(i);i.href=i.href}if(i.protocol===":"||!/:/.test(i.href)){throw new TypeError("Invalid URL")}Object.defineProperty(this,"_anchorElement",{value:i});var o=new h.URLSearchParams(this.search);var a=true;var s=true;var f=this;["append","delete","set"].forEach(function(e){var t=o[e];o[e]=function(){t.apply(o,arguments);if(a){s=false;f.search=o.toString();s=true}}});Object.defineProperty(this,"searchParams",{value:o,enumerable:true});var c=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:false,configurable:false,writable:false,value:function(){if(this.search!==c){c=this.search;if(s){a=false;this.searchParams._fromString(this.search);a=true}}}})};var r=e.prototype;var n=function(t){Object.defineProperty(r,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:true})};["hash","host","hostname","port","protocol"].forEach(function(e){n(e)});Object.defineProperty(r,"search",{get:function(){return this._anchorElement["search"]},set:function(e){this._anchorElement["search"]=e;this._updateSearchParams()},enumerable:true});Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e;this._updateSearchParams()},enumerable:true},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:true},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol];var t=this._anchorElement.port!=e&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:true},password:{get:function(){return""},set:function(e){},enumerable:true},username:{get:function(){return""},set:function(e){},enumerable:true}});e.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)};e.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)};h.URL=e};if(!e()){t()}if(h.location!==void 0&&!("origin"in h.location)){var r=function(){return h.location.protocol+"//"+h.location.hostname+(h.location.port?":"+h.location.port:"")};try{Object.defineProperty(h.location,"origin",{get:r,enumerable:true})}catch(e){setInterval(function(){h.location.origin=r()},100)}}})(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:this);
;
function _typeof(e){return(_typeof="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(e){(window.FooGallery=window.FooGallery||{}).$=e}(jQuery),function(e){e?function(){try{return window.FooGallery.utils}catch(e){}}()||(window.FooGallery.utils={$:e,version:"1.0.0"}):console.warn("jQuery must be included in the page prior to the FooGallery.utils library.")}(jQuery),function(t,i){"1.0.0"===i.version&&(i.is={},i.is.array=function(e){return"[object Array]"===Object.prototype.toString.call(e)},i.is.boolean=function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},i.is.element=function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":_typeof(HTMLElement))?e instanceof HTMLElement:!!e&&"object"===_typeof(e)&&1===e.nodeType&&"string"==typeof e.nodeName},i.is.empty=function(e){if(i.is.undef(e)||null===e)return!0;if(i.is.number(e)&&0===e)return!0;if(i.is.boolean(e)&&!1===e)return!0;if(i.is.string(e)&&0===e.length)return!0;if(i.is.array(e)&&0===e.length)return!0;if(i.is.jq(e)&&0===e.length)return!0;if(i.is.hash(e)){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}return!1},i.is.error=function(e){return"[object Error]"===Object.prototype.toString.call(e)},i.is.fn=function(e){return e===window.alert||"[object Function]"===Object.prototype.toString.call(e)},i.is.hash=function(e){return i.is.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},i.is.jq=function(e){return!i.is.undef(t)&&e instanceof t},i.is.number=function(e){return"[object Number]"===Object.prototype.toString.call(e)&&!isNaN(e)},i.is.object=function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!i.is.undef(e)&&null!==e},i.is.promise=function(e){return i.is.object(e)&&i.is.fn(e.then)&&i.is.fn(e.promise)},i.is.size=function(e){return!!(i.is.string(e)&&!i.is.empty(e)||i.is.number(e))&&/^(auto|none|(?:[\d.]*)+?(?:%|px|mm|q|cm|in|pt|pc|em|ex|ch|rem|vh|vw|vmin|vmax)?)$/.test(e)},i.is.string=function(e){return"[object String]"===Object.prototype.toString.call(e)},i.is.undef=function(e){return void 0===e})}(FooGallery.utils.$,FooGallery.utils),function(l,c,u){var a;"1.0.0"===c.version&&(c.fn={},a=Function.prototype.toString,c.fn.CONTAINS_SUPER=/xyz/.test(a.call(function(){xyz}))?/\b_super\b/:/.*/,c.fn.noop=function(){},c.fn.addOrOverride=function(e,t,i){var n,s,r,o;u.object(e)&&u.string(t)&&!u.empty(t)&&u.fn(i)&&(n=e[t],s=u.fn(n)&&c.fn.CONTAINS_SUPER.test(a.call(i)),e[t]=s?(r=n,o=i,function(){var e=this._super,t=(this._super=r,o.apply(this,arguments));return this._super=e,t}):i)},c.fn.expose=function(t,i,e,n){u.object(t)&&u.object(i)&&u.array(e)&&(n=u.undef(n)?t:n,e.forEach(function(e){u.string(e)&&u.fn(t[e])&&(i[e]=t[e].bind(n))}))},c.fn.apply=function(e,t){return t.unshift(e),new(Function.prototype.bind.apply(e,t))},c.fn.arg2arr=function(e){return Array.prototype.slice.call(e)},c.fn.debounce=function(i,n){var s;return function(){var e=this,t=c.fn.arg2arr(arguments);clearTimeout(s),s=setTimeout(function(){i.apply(e,t)},n)}},c.fn.throttle=function(i,n){var s,r;return function(){var e=this,t=c.fn.arg2arr(arguments);s?(clearTimeout(r),r=setTimeout(function(){Date.now()-s>=n&&(i.apply(e,t),s=Date.now())},n-(Date.now()-s))):(i.apply(e,t),s=Date.now())}},c.fn.resolved=l.Deferred().resolve().promise(),c.fn.rejected=l.Deferred().reject().promise(),c.fn.reject=function(e,t){var i=l.Deferred(),n=c.fn.arg2arr(arguments);return i.reject.apply(i,n).promise()},c.fn.resolve=function(e,t){var i=l.Deferred(),n=c.fn.arg2arr(arguments);return i.resolve.apply(i,n).promise()},c.fn.rejectWith=function(e,t,i){var n=l.Deferred(),s=c.fn.arg2arr(arguments);return s.shift(),n.rejectWith(e,s).promise()},c.fn.resolveWith=function(e,t,i){var n=l.Deferred(),s=c.fn.arg2arr(arguments);return s.shift(),n.resolveWith(e,s).promise()},c.fn.all=function(t){var i=l.Deferred(),n=[];if(u.array(t)&&0<t.length){function s(e,t){o||(n[e]=0===t.length?void 0:1===t.length?t[0]:t,--r||i.resolve(n))}for(var r=t.length,o=!1,a=0,e=t.length;a<e&&"break"!==function(){if(o)return"break";var e=a;u.promise(t[e])?t[e].then(function(){s(e,c.fn.arg2arr(arguments))},function(){o||(o=!0,i.reject.apply(i,c.fn.arg2arr(arguments)))}):s(e,[t[e]])}();a++);}else i.resolve(n);return i.promise()},c.fn.allSettled=function(t){var n=l.Deferred(),s=[];if(u.array(t)&&0<t.length){function i(e,t,i){s[e]={status:t},0<i.length&&(s[e]["rejected"===t?"reason":"value"]=1===i.length?i[0]:i),--r||n.resolve(s)}for(var r=t.length,o=0,e=t.length;o<e;o++)!function(){var e=o;u.promise(t[e])?t[e].then(function(){i(e,"fulfilled",c.fn.arg2arr(arguments))},function(){i(e,"rejected",c.fn.arg2arr(arguments))}):i(e,"fulfilled",[t[e]])}()}else n.resolve(s);return n.promise()})}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(e,r){var s;"1.0.0"===e.version&&(e.url={},s=document.createElement("a"),e.url.parts=function(e){s.href=e;var e=s.port||(-1!==["http:","https:"].indexOf(s.protocol)?"https:"===s.protocol?"443":"80":""),t=s.hostname+(e?":"+e:""),i=s.origin||s.protocol+"//"+t,n="/"===s.pathname.slice(0,1)?s.pathname:"/"+s.pathname;return{hash:s.hash,host:t,hostname:s.hostname,href:s.href,origin:i,pathname:n,port:e,protocol:s.protocol,search:s.search}},e.url.full=function(e){return!r.string(e)||r.empty(e)?null:(s.href=e,s.href)},e.url.param=function(e,t,i){var n,s;return r.string(e)&&r.string(t)&&!r.empty(t)?r.undef(i)?(s=((n=new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)")).exec(e)||["",""])[1].replace(/\+/g,"%20"),r.string(s)&&!r.empty(s)?decodeURIComponent(s):null):(r.empty(i)?(n=new RegExp("^([^#]*?)(([^#]*)&)?"+t+"(=[^&#]*)?(&|#|$)"),s=e.replace(n,"$1$3$5").replace(/^([^#]*)((\?)&|\?(#|$))/,"$1$3$4")):(n=new RegExp("([?&])"+t+"[^&]*"),t=t+"="+encodeURIComponent(i),(s=e.replace(n,"$1"+t))!==e||n.test(s)||(s+=(-1!==s.indexOf("?")?"&":"?")+t)),s):e})}(FooGallery.utils,FooGallery.utils.is),function(a,l,c){"1.0.0"===a.version&&(a.str={},a.str.trim=function(e){return l.string(e)?e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""):null},a.str.camel=function(e){return l.string(e)?e.toUpperCase()===e?e.toLowerCase():e.replace(/^([A-Z])|[-\s_]+(\w)/g,function(e,t,i){return l.string(i)?i.toUpperCase():t.toLowerCase()}):e},a.str.kebab=function(e){return l.string(e)?e.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g).filter(Boolean).map(function(e){return e.toLowerCase()}).join("-"):e},a.str.contains=function(e,t,i){return!(!l.string(e)||l.empty(e)||!l.string(t)||l.empty(t))&&(t.length<=e.length&&-1!==(i?e.toUpperCase().indexOf(t.toUpperCase()):e.indexOf(t)))},a.str.containsWord=function(e,t,i){if(!(!l.string(e)||l.empty(e)||!l.string(t)||l.empty(t)||e.length<t.length))for(var n=e.split(/\W/),s=0,r=n.length;s<r;s++)if(i?n[s].toUpperCase()===t.toUpperCase():n[s]===t)return!0;return!1},a.str.endsWith=function(e,t){return!(!l.string(e)||!l.string(t)||t.length>e.length)&&e.slice(e.length-t.length)===t},a.str.startsWith=function(e,t){return!l.empty(e)&&!l.empty(t)&&e.slice(0,t.length)===t},a.str.escapeRegExp=function(e){return l.string(e)?e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):e},a.str.fnv1a=function(e){if(!l.string(e)||l.empty(e))return null;for(var t=2166136261,i=0,n=e.length;i<n;i++)t=(t^=e.charCodeAt(i))+((t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24));return t>>>0},a.str.from=function(e,t){return a.str.contains(e,t)?e.substring(e.indexOf(t)+t.length):null},a.str.join=function(e,t,i){if(!l.string(e)||!l.string(t))return null;var n=c.arg2arr(arguments);e=n.shift();for(var s=n.shift(),r=0,o=n.length;r<o;r++)t=n[r],l.empty(t)||(a.str.endsWith(s,e)&&(s=s.slice(0,s.length-e.length)),s+=e+(t=a.str.startsWith(t,e)?t.slice(e.length):t));return s},a.str.until=function(e,t){return a.str.contains(e,t)?e.substring(0,e.indexOf(t)):e},a.str.format=function(i,e,t){var n=c.arg2arr(arguments);return i=n.shift(),l.string(i)&&0<n.length&&(1===n.length&&(l.array(n[0])||l.object(n[0]))&&(n=n[0]),a.each(n,function(e,t){i=i.replace(new RegExp("\\{"+t+"\\}","gi"),e+"")})),i})}(FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn),function(a,l,s,r){"1.0.0"===a.version&&(a.obj={},a.obj.create=function(e){if(l.object(e))return t.prototype=e,new t;throw TypeError("Argument must be an object");function t(){}},a.obj.extend=function(t,e,i){t=l.object(t)?t:{};var n=s.arg2arr(arguments);return n.shift(),a.each(n,function(e){a.obj.merge(t,e)}),t},a.obj.merge=function(e,t){for(var i in e=l.hash(e)?e:{},t=l.hash(t)?t:{})t.hasOwnProperty(i)&&(l.hash(t[i])?(e[i]=l.hash(e[i])?e[i]:{},a.obj.merge(e[i],t[i])):l.array(t[i])?e[i]=t[i].slice():e[i]=t[i]);return e},a.obj.mergeValid=function(t,i,n,e){var s,r,o;if(l.hash(n)&&l.hash(i))for(s in i=l.hash(i)?i:{},e=l.hash(e)?e:{},i)i.hasOwnProperty(s)&&l.fn(i[s])&&(r=l.array(e[s])?e[s]:l.string(e[s])?[e[s]]:[s],a.each(r,function(e){return o=a.obj.prop(n,e),!l.undef(o)&&i[s](o)?(a.obj.prop(t,s,o),!1):void 0}));return t},a.obj.prop=function(i,e,n){var t,s;if(l.object(i)&&!l.empty(e))return l.undef(n)?(r.contains(e,".")?(t=e.split("."),s=t.length-1,a.each(t,function(e,t){if(t===s)n=i[e];else{if(!l.hash(i[e]))return!1;i=i[e]}})):l.undef(i[e])||(n=i[e]),n):void(r.contains(e,".")?(t=e.split("."),s=t.length-1,a.each(t,function(e,t){t===s?i[e]=n:i=l.hash(i[e])?i[e]:i[e]={}})):l.undef(i[e])||(i[e]=n))})}((FooGallery.utils.$,FooGallery.utils),FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.str),function(t,s,o){"1.0.0"===s.version&&(s.ready=function(e){function t(){try{e.call(window,s.$)}catch(e){console.error(e)}}(Function("/*@cc_on return true@*/")()?"complete"===document.readyState:"loading"!==document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},s.find=function(e,t,i){if(o.fn(t))if(i=o.undef(i)?t:i,o.array(e)){for(s=0,r=e.length;s<r;s++)if(t.call(i,e[s],s,e))return e[s]}else if(o.object(e))for(var n=Object.keys(e),s=0,r=n.length;s<r;s++)if(t.call(i,e[n[s]],n[s],e))return e[n[s]]},s.each=function(e,t,i){if(o.fn(t))if(i=o.undef(i)?t:i,o.array(e))for(s=0,r=e.length;s<r&&!1!==t.call(i,e[s],s,e);s++);else if(o.object(e))for(var n=Object.keys(e),s=0,r=n.length;s<r&&!1!==t.call(i,e[n[s]],n[s],e);s++);},s.inArray=function(e,t){return o.array(t)?t.indexOf(e):-1},s.selectify=function(e){if(o.empty(e))return null;if(o.hash(e)){var t,i,n={};for(i in e)e.hasOwnProperty(i)&&(t=s.selectify(e[i]))&&(n[i]=t);return n}return o.string(e)||o.array(e)?(e=o.string(e)?[e]:e).map(function(e){return o.string(e)?"."+e.split(/\s/g).join("."):null}).join(","):null},s.requestFrame=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)}).bind(window),s.cancelFrame=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window),s.nextFrame=function(e,i){return t.Deferred(function(t){o.fn(e)?(i=o.undef(i)?e:i,s.requestFrame(function(){try{t.resolve(e.call(i))}catch(e){t.reject(e)}})):t.reject(new Error("Provided callback is not a function."))}).promise()})}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(s,r,o,a){"1.0.0"===s.version&&(s.Class=function(){},s.Class.extend=function(e){e=r.hash(e)?e:{};var t,i=o.create(this.prototype);for(t in e)e.hasOwnProperty(t)&&a.addOrOverride(i,t,e[t]);function n(){if(!r.fn(this.construct))throw new SyntaxError('FooGallery.utils.Class objects must be constructed with the "new" keyword.');this.construct.apply(this,arguments)}return i.construct=r.fn(i.construct)?i.construct:function(){},(n.prototype=i).constructor=r.fn(i.__ctor__)?i.__ctor__:n,n.extend=s.Class.extend,n.override=s.Class.override,n.getBaseClasses=s.Class.getBaseClasses,n.__baseClass__=this,n},s.Class.override=function(e,t){a.addOrOverride(this.prototype,e,t)},s.Class.__baseClass__=null,s.Class.getBaseClasses=function(){return function e(t,i){return r.array(i)||(i=[]),r.fn(t)&&null!==t.__baseClass__?(i.unshift(t.__baseClass__),e(t.__baseClass__,i)):i}(this,[])})}((FooGallery.utils.$,FooGallery.utils),FooGallery.utils.is,FooGallery.utils.obj,FooGallery.utils.fn),function(e,a,l,s){e.ClassRegistry=e.Class.extend({construct:function(e){this.opt=s.extend({allowBase:!0,beforeCreate:null},e),this.registered={}},register:function(e,t,i,n){var s;return!(!a.string(e)||a.empty(e)||!a.fn(t))&&(n=a.number(n)?n:0,s=this.registered[e],this.registered[e]={name:e,ctor:t,config:a.hash(i)?i:{},priority:a.undef(s)?n:s.priority},!0)},each:function(e,t,i){t=!!a.boolean(t)&&t,i=a.undef(i)?e:i;for(var n=this,s=Object.keys(n.registered).map(function(e){return n.registered[e]}),r=(t&&s.sort(function(e,t){return t.priority-e.priority}),0),o=s.length;r<o&&!1!==e.call(i,s[r],r);r++);},find:function(e,t,i){t=!!a.boolean(t)&&t,i=a.undef(i)?e:i;for(var n=this,s=Object.keys(n.registered).map(function(e){return n.registered[e]}),r=(t&&s.sort(function(e,t){return t.priority-e.priority}),0),o=s.length;r<o;r++)if(e.call(i,s[r],r))return s[r];return null},create:function(e,t,i){var n=this,s=l.arg2arr(arguments);if(e=s.shift(),a.string(e)&&n.registered.hasOwnProperty(e)){var r=n.registered[e],o=!0;if((o=r.priority<0&&!n.opt.allowBase?!1:o)&&a.fn(r.ctor))return t=s.shift(),t=n.mergeConfigurations(r.name,t),s.unshift.apply(s,[r.name,t]),l.apply(r.ctor,n.onBeforeCreate(r,s))}return null},onBeforeCreate:function(e,t){return null!==this.opt.beforeCreate&&a.fn(this.opt.beforeCreate)?this.opt.beforeCreate.call(this,e,t):t},mergeConfigurations:function(e,t){var i,n;return a.string(e)&&this.registered.hasOwnProperty(e)?(t=a.hash(t)?t:{},i=this.getBaseClasses(e),n=[{}],i.push(this.registered[e]),i.forEach(function(e){n.push(e.config)}),n.push(t),s.extend.apply(s,n)):{}},getBaseClass:function(){return this.find(function(e){return e.priority<0},!0)},getBaseClasses:function(e){var t=this,e=t.registered[e],i=[];return a.undef(e)||e.ctor.getBaseClasses().forEach(function(e){e=t.fromType(e);a.hash(e)&&i.push(e)}),i},fromType:function(t){if(a.fn(t))return this.find(function(e){return e.ctor===t})}})}((FooGallery.utils.$,FooGallery.utils),FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(r,o,i){"1.0.0"===r.version&&(r.Event=r.Class.extend({construct:function(e){if(o.empty(e))throw new SyntaxError("FooGallery.utils.Event objects must be supplied a `type`.");e=r.Event.parse(e);this.type=e.type,this.namespace=e.namespace,this.defaultPrevented=!1,this.target=null},preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented}}),r.Event.parse=function(e){e=o.string(e)&&!o.empty(e)?e:null;var t=i.contains(e,".");return{namespaced:t,type:t?i.startsWith(e,".")?null:i.until(e,"."):e,namespace:t?i.from(e,"."):null}},r.EventClass=r.Class.extend({construct:function(){this.events={}},destroy:function(){this.events={}},on:function(i,t,n){var s=this;return o.object(i)?(n=t,Object.keys(i).forEach(function(t){o.fn(i[t])&&t.split(" ").forEach(function(e){s.addListener(e,i[t],n)})})):o.string(i)&&o.fn(t)&&i.split(" ").forEach(function(e){s.addListener(e,t,n)}),s},addListener:function(e,t,i){var n,s;return!(!o.string(e)||/\s/.test(e)||!o.fn(t))&&(n=this,s=r.Event.parse(e),i=o.undef(i)?n:i,o.array(n.events[s.type])||(n.events[s.type]=[]),!n.events[s.type].some(function(e){return e.namespace===s.namespace&&e.fn===t&&e.thisArg===i})&&(n.events[s.type].push({namespace:s.namespace,fn:t,thisArg:i}),!0))},off:function(i,t,n){var s=this;return o.object(i)?(n=t,Object.keys(i).forEach(function(t){t.split(" ").forEach(function(e){s.removeListener(e,i[t],n)})})):o.string(i)&&i.split(" ").forEach(function(e){s.removeListener(e,t,n)}),s},removeListener:function(e,t,i){var n,s;return!(!o.string(e)||/\s/.test(e))&&(n=this,s=r.Event.parse(e),e=[],i=o.undef(i)?n:i,o.empty(s.type)?o.empty(s.namespace)||e.push.apply(e,Object.keys(n.events)):e.push(s.type),e.forEach(function(e){o.array(n.events[e])&&(n.events[e]=n.events[e].filter(function(e){return null!=t?!(e.namespace===s.namespace&&e.fn===t&&e.thisArg===i):null!=s.namespace&&e.namespace!==s.namespace}),0===n.events[e].length&&delete n.events[e])}),!0)},trigger:function(e,t){t=o.array(t)?t:[];var i=this,n=[];return e instanceof r.Event?(n.push(e),i.emit(e,t)):o.string(e)&&e.split(" ").forEach(function(e){e=new r.Event(e);n.push(e),i.emit(e,t)}),o.empty(n)?null:1===n.length?n[0]:n},emit:function(t,i){var e;t instanceof FooGallery.utils.Event&&(e=this,i=o.array(i)?i:[],null===t.target&&(t.target=e),o.array(e.events[t.type])&&e.events[t.type].forEach(function(e){null!=t.namespace&&e.namespace!==t.namespace||e.fn.apply(e.thisArg,[t].concat(i))}),o.array(e.events.__all__)&&e.events.__all__.forEach(function(e){e.fn.apply(e.thisArg,[t].concat(i))}))}}))}(FooGallery.utils,FooGallery.utils.is,FooGallery.utils.str),function(e,n,t){"1.0.0"===e.version&&(e.Timer=e.EventClass.extend({construct:function(e){var t=this;t._super(),t.interval=n.number(e)?e:1e3,t.isRunning=!1,t.isPaused=!1,t.canResume=!1,t.canRestart=!1,t.__timeout=null,t.__decrement=!1,t.__time=0,t.__remaining=0,t.__current=0,t.__finish=0,t.__restart=[]},__reset:function(){var e=this;clearTimeout(e.__timeout),e.__timeout=null,e.__decrement=!1,e.__time=0,e.__remaining=0,e.__current=0,e.__finish=0,e.isRunning=!1,e.isPaused=!1,e.canResume=!1},__eventArgs:function(e){return[this.__current,this.__time,this.__decrement].concat(t.arg2arr(arguments))},__tick:function(){var e=this;e.trigger("tick",e.__eventArgs()),e.__current===e.__finish?(e.trigger("complete",e.__eventArgs()),e.__reset()):(e.__decrement?e.__current--:e.__current++,e.__remaining--,e.canResume=0<e.__remaining,e.__timeout=setTimeout(function(){e.__tick()},e.interval))},start:function(e,t){var i=this;i.isRunning||(t=!!n.boolean(t)&&t,i.__restart=[e,t],i.__decrement=t,i.__time=e,i.__remaining=e,i.__current=t?e:0,i.__finish=t?0:e,i.canRestart=!0,i.isRunning=!0,i.isPaused=!1,i.trigger("start",i.__eventArgs()),i.__tick())},countdown:function(e){this.start(e,!0)},countup:function(e){this.start(e,!1)},restart:function(){var e=this;e.stop(),e.canRestart&&e.start.apply(e,e.__restart)},stop:function(){var e=this;(e.isRunning||e.isPaused)&&(e.__reset(),e.trigger("stop",e.__eventArgs()))},pause:function(){var e=this;return null!=e.__timeout&&(clearTimeout(e.__timeout),e.__timeout=null),e.isRunning&&(e.isRunning=!1,e.isPaused=!0,e.trigger("pause",e.__eventArgs())),e.__remaining},resume:function(){var e=this;e.canResume&&(e.isRunning=!0,e.isPaused=!1,e.trigger("resume",e.__eventArgs()),e.__tick())},reset:function(){this.__reset(),this.trigger("reset",this.__eventArgs())}}))}((FooGallery.utils.$,FooGallery.utils),FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(r,e,t){"1.0.0"===e.version&&(e.FullscreenAPI=e.EventClass.extend({construct:function(){this._super(),this.apis={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",events:{change:"fullscreenchange",error:"fullscreenerror"}},webkit:{enabled:"webkitFullscreenEnabled",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",events:{change:"webkitfullscreenchange",error:"webkitfullscreenerror"}},moz:{enabled:"mozFullScreenEnabled",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",events:{change:"mozfullscreenchange",error:"mozfullscreenerror"}},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",events:{change:"MSFullscreenChange",error:"MSFullscreenError"}}},this.api=this.getAPI(),this.supported=null!=this.api,this.__listen()},destroy:function(){return this.__stopListening(),this._super()},getAPI:function(){for(var e in this.apis)if(this.apis.hasOwnProperty(e)&&this.apis[e].enabled in document)return this.apis[e];return null},element:function(){return this.supported?document[this.api.element]:null},request:function(e){return this.supported&&e[this.api.request]?e[this.api.request]()||r.Deferred(this.__resolver(this.api.request)).promise():t.rejected},exit:function(){return this.supported&&this.element()?document[this.api.exit]()||r.Deferred(this.__resolver(this.api.exit)).promise():t.rejected},toggle:function(e){return this.element()?this.exit():this.request(e)},__listen:function(){var e=this;e.supported&&r(document).on(e.api.events.change+".utils",function(){e.trigger("change")}).on(e.api.events.error+".utils",function(){e.trigger("error")})},__stopListening:function(){this.supported&&r(document).off(this.api.events.change+".utils").off(this.api.events.error+".utils")},__resolver:function(n){var s=this;return function(e){function t(){e.resolve(),r(document).off(s.api.events.change,t).off(s.api.events.error,i)}function i(){e.reject(new TypeError),r(document).off(s.api.events.change,t).off(s.api.events.error,i)}n===s.api.exit&&s.element()?setTimeout(function(){e.reject(new TypeError)},1):r(document).on(s.api.events.change,t).on(s.api.events.error,i)}}}))}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.fn),function(l,c,u,a){"1.0.0"===c.version&&(c.transition={},c.transition.dataName="__foo-transition__",c.transition.disableClassName=null,c.transition.timeout=3e3,c.transition.disable=function(e,t){var i,n,s,e=u.jq(e)?e:l(e);0<e.length&&u.fn(t)&&(i=e.get(0),s=null,(n=u.string(c.transition.disableClassName))?e.addClass(c.transition.disableClassName):(s={value:i.style.getPropertyValue("transition"),priority:i.style.getPropertyPriority("transition")},i.style.setProperty("transition","none","important")),t.call(t,e),e.prop("offsetWidth"),n?e.removeClass(c.transition.disableClassName):(i.style.removeProperty("transition"),u.string(s.value)&&0<s.value.length&&i.style.setProperty("transition",s.value,s.priority)))},c.transition.stop=function(e){var t=l.Deferred(),i=u.jq(e)?e:l(e);return 0<i.length?(e=i.data(c.transition.dataName),u.promise(e)?e.always(function(){c.requestFrame(function(){t.resolve(i)})}).reject(new Error("Transition cancelled.")):t.resolve(i)):t.reject(new Error("Unable to stop transition. Make sure the element exists.")),t.promise()},c.transition.createListener=function(e,t,i){var n=e,s=t,r=i,o=u.string(i);return function(e){var t=e.originalEvent instanceof TransitionEvent?e.originalEvent:e,i=!1;(i=t.target===n?!o||t.propertyName===r:i)&&s.apply(s,a.arg2arr(arguments))}},c.transition.start=function(e,i,n,s){var r,o=l.Deferred(),a=u.jq(e)?e:l(e);return 0<a.length&&u.fn(i)?(r=a.get(0),c.transition.stop(a).always(function(){var t=c.transition.createListener(r,function(){o.resolve(a)},n);a.data(c.transition.dataName,o).on("transitionend.foo-utils",t).prop("offsetWidth"),c.requestFrame(function(){var e=setTimeout(function(){o.reject(new Error("Transition safety timeout triggered."))},u.number(s)?s:c.transition.timeout);o.always(function(){clearTimeout(e),a.removeData(c.transition.dataName).off("transitionend.foo-utils",t)}),i.call(i,a)})})):o.reject(new Error("Unable to perform transition. Make sure the element exists and a trigger function is supplied.")),o.promise()},c.transition.modify=function(e,t,i,n){e=u.jq(e)?e:l(e);return 0<e.length&&u.fn(t)?i?(c.transition.disable(e,t),a.resolve()):c.transition.start(e,t,n):a.reject(new Error("Unable to perform modification. Make sure the element exists and a modify function is supplied."))})}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn),function(r,o,t,a,n,e){o.DATA_TEMPLATE="__FooGallery__",o.DATA_ITEM="__FooGalleryItem__",o.get=function(e){return r(e).data(o.DATA_TEMPLATE)},o.init=function(t,i){if(0<(i=a.jq(i)?i:r(i)).length){var e=i.data(o.DATA_TEMPLATE);if(e instanceof o.Template)return e.destroy(!0).then(function(){var e=o.template.make(t,i);return e instanceof o.Template?e.initialize():n.rejected})}e=o.template.make(t,i);return e instanceof o.Template?e.initialize():n.rejected},r.fn.foogallery=function(n,s){return s=a.fn(s)?s:r.noop,this.each(function(e,t){if(a.string(n)){var i=r.data(t,o.DATA_TEMPLATE);if(i instanceof o.Template)switch(n){case"layout":return void i.layout();case"destroy":return void i.destroy()}}else o.init(n,t).then(s)})};var i=globalThis?.FooGallery_mobileSize??"782px",s=(o.isMobile=!(!globalThis.matchMedia||!globalThis.matchMedia(`(max-width: ${i})`).matches),o.isCached=function(e){var t=new Image,e=(t.src=e,t.complete);return t.src="",t=null,e},o.supportedExifProperties=["camera","aperture","created_timestamp","shutter_speed","focal_length","iso","orientation"],a.exif=function(t){var e;return!!a.object(t)&&(0<(e=Object.keys(t)).length&&e.some(function(e){return-1!==o.supportedExifProperties.indexOf(e)&&!a.empty(t[e])}))},e.trimTo=function(e,t,i){return a.string(e)&&a.number(t)&&0<t&&e.length>t?e.substr(0,t)+(a.string(i)?i:"&hellip;"):e},t.getResizeObserverSize=function(e){var t,e=e.contentBoxSize?(e.contentBoxSize[0]?(t=e.contentBoxSize[0].inlineSize,e.contentBoxSize[0]):(t=e.contentBoxSize.inlineSize,e.contentBoxSize)).blockSize:(t=e.contentRect.width,e.contentRect.height);return{width:t,height:e}},o.supportsWebP=!1,new Image);s.onload=function(){o.supportsWebP=0<s.width&&0<s.height},s.onerror=function(){o.supportsWebP=!1},s.src="data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",o.supportsPicture=!!window.HTMLPictureElement,t.DOMEventListeners=t.Class.extend({construct:function(){this.eventTargets=new Map},add:function(e,t,i,n){e.addEventListener(t,i,n);let s=this.eventTargets.get(e);return s||(s=new Map,this.eventTargets.set(e,s)),!s.get(t)&&(s.set(t,{listener:i,options:n}),!0)},remove:function(e,t){let i=this.eventTargets.get(e);var n;!i||(n=i.get(t))&&(e.removeEventListener(t,n.listener,n.options),i.delete(t),0===i.size&&this.eventTargets.delete(e))},clear:function(){this.eventTargets.forEach(function(e,i){e.forEach(function(e,t){i.removeEventListener(t,e.listener,e.options)})}),this.eventTargets.clear()}}),t.Timeouts=t.Class.extend({construct:function(){this.instances=new Map},has:function(e){return this.instances.has(e)},get:function(e){return this.instances.get(e)},set:function(e,t,i){const n=this;n.delete(e);i={id:setTimeout(function(){n.instances.delete(e),t.call(n)},i),delay:i,fn:t};return this.instances.set(e,i),n},delete:function(e){var t;return!!this.instances.has(e)&&(t=this.instances.get(e),clearTimeout(t.id),this.instances.delete(e))},clear:function(){this.instances.forEach(function(e){clearTimeout(e.id)}),this.instances.clear()}}),o.isCrossOrigin=function(e){e=t.url.parts(e);return null!==e&&e.origin!==window.location.origin},o.generateGUID=()=>window.crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)});const l=new DOMParser;o.decodeHTMLEntities=t=>{let e="";try{e=l.parseFromString(t,"text/html").documentElement.textContent}catch(e){console.error(`Error decoding HTMLEntities in string "${t}".`,e)}return e},o.downloadImage=function(e,i="image"){return fetch(e).then(function(e){if(e.ok)return e.blob();throw new Error(`Failed to fetch image: ${e.status} `+e.statusText)}).then(function(e){e=window.URL.createObjectURL(e);try{const t=document.createElement("a");t.href=e,t.download=i,document.body.appendChild(t),t.click(),t.remove()}finally{window.URL.revokeObjectURL(e)}})}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.str),function(e){const n=new globalThis.Set(["accesskey","autocapitalize","autofocus","class","contenteditable","data-","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","role","slot","spellcheck","style","tabindex","title","translate"]),s=new globalThis.Map([["html",["xmlns"]],["base",["href","target"]],["head",[]],["link",["as","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","sizes","type"]],["meta",["charset","content","http-equiv","name"]],["style",["media"]],["title",[]],["body",["onafterprint","onbeforeprint","onbeforeunload","onblur","onerror","onfocus","onhashchange","onlanguagechange","onload","onmessage","onoffline","ononline","onpopstate","onresize","onstorage","onunload"]],["address",[]],["article",[]],["aside",[]],["footer",[]],["header",[]],["h1",[]],["h2",[]],["h3",[]],["h4",[]],["h5",[]],["h6",[]],["hgroup",[]],["main",[]],["nav",[]],["section",[]],["search",[]],["blockquote",["cite"]],["dd",[]],["div",[]],["dl",[]],["dt",[]],["figcaption",[]],["figure",[]],["hr",[]],["li",["value"]],["menu",[]],["ol",["reversed","start","type"]],["p",[]],["pre",[]],["ul",[]],["a",["download","href","hreflang","ping","referrerpolicy","rel","target","type"]],["abbr",[]],["b",[]],["bdi",[]],["bdo",[]],["br",[]],["cite",[]],["code",[]],["data",["value"]],["dfn",[]],["em",[]],["i",[]],["kbd",[]],["mark",[]],["q",["cite"]],["rp",[]],["rt",[]],["ruby",[]],["s",[]],["samp",[]],["small",[]],["span",[]],["strong",[]],["sub",[]],["sup",[]],["time",["datetime"]],["u",[]],["var",[]],["wbr",[]],["area",["alt","coords","download","href","ping","referrerpolicy","rel","shape","target"]],["audio",["autoplay","controls","controlslist","crossorigin","disableremoteplayback","loop","muted","preload","src"]],["img",["alt","crossorigin","decoding","elementtiming","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"]],["map",["name"]],["track",["default","kind","label","src","srclang"]],["video",["autoplay","controls","controlslist","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"]],["embed",["height","src","type","width"]],["iframe",["allow","allowfullscreen","height","loading","name","referrerpolicy","sandbox","src","srcdoc","width"]],["object",["data","form","height","name","type","width"]],["picture",[]],["portal",["referrerpolicy","src"]],["source",["height","media","sizes","src","srcset","type","width"]],["svg",["height","preserveaspectratio","viewbox","width","x","y"]],["canvas",["height","width"]],["noscript",[]],["script",["async","crossorigin","defer","fetchpriority","integrity","nomodule","referrerpolicy","src","type"]],["del",["cite","datetime"]],["ins",["cite","datetime"]],["caption",[]],["col",["span"]],["colgroup",["span"]],["table",[]],["tbody",[]],["td",["colspan","headers","rowspan"]],["tfoot",[]],["th",["abbr","colspan","headers","rowspan","scope"]],["thead",[]],["tr",[]],["button",["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"]],["datalist",[]],["fieldset",["disabled","form","name"]],["form",["accept-charset","autocomplete","name","rel"]],["input",[]],["label",["for"]],["legend",[]],["meter",["form","high","low","max","min","optimum","value"]],["optgroup",["disabled","label"]],["option",["disabled","label","selected","value"]],["output",["for","form","name"]],["progress",["max","value"]],["select",["autocomplete","disabled","form","multiple","name","required","size"]],["textarea",["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"]],["details",["name","open"]],["dialog",["open"]],["summary",[]],["slot",["name"]],["template",["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"]]]),r=new globalThis.Set(["code","codebase","src","href","formaction","ping","cite","action","background","poster","profile","manifest","data"]),o=(["script","embed","object"].forEach(e=>s.delete(e)),e=>(e instanceof globalThis.Node?e.nodeName:"string"==typeof e?e:"").toLowerCase()),a=/^(?!javascript|vbscript|livescript|mocha)(?:[a-z0-9+.-]+:[^<>]*$|[^&:\/?#]*(?:[\/?#]|$))/i,t=/@import|expression|behaviou?r|binding|(?:javascript|vbscript|livescript|mocha):|[\x00-\x08\x0E-\x1F\x7F-\uFFFF]|\/\*.*?\*\/|<--.*?-->/i,l=e=>!t.test(e.replace(/\s+/g," ")),i=/^[a-z](?:[\x2D.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,c=/^[a-z](?:[.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*-(?:[\x2D.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,u=e=>c.test(o(e)),h=e=>u(e?.ownerElement)&&(e=>i.test(o(e)))(e),d=e=>{const t=o(e);var i;return!t.startsWith("on")&&(!(!t.startsWith("aria-")&&!t.startsWith("data-"))||(n.has(t)||(e=>{if(e instanceof globalThis.Attr){var t=o(e.ownerElement);if(s.has(t))return s.get(t).includes(e.name)}return!1})(e)?r.has(t)?(i=e.value,a.test(i)):"style"!==t||l(e.value):h(e)))},p=e=>{if(e instanceof globalThis.Element){var t=o(e);if(s.has(t)||u(e)){for(const i of e.attributes)if(!d(i))return!1;return"style"===t?l(e.textContent):!0}}return!1},f=(e,t=!1)=>{const i=[];for(const s of e){var n=((e,t=!1)=>{if(e instanceof globalThis.Element){if(p(e)){const i=e.cloneNode(!1);return t&&e.hasChildNodes()&&i.append(...f(e.childNodes,t)),i}throw new TypeError("UNSAFE_NODE")}return e instanceof globalThis.Text?e.cloneNode():null})(s,t);n instanceof globalThis.Node&&i.push(n)}return i};let g;e.safeParse=e=>{if("string"==typeof e)try{const t=(g instanceof globalThis.DOMParser?g:g=new globalThis.DOMParser).parseFromString(e,"text/html");if(t.body.hasChildNodes())return f(t.body.childNodes,!0).map(e=>1===e.nodeType?e.outerHTML:3===e.nodeType?e.nodeValue:"").join("")}catch(e){"UNSAFE_NODE"!==e.message&&console.error("FooGallery.safeParse: Unexpected Error",e)}return""}}(window.FooGallery),function(r,e,t,a,l){e.Icons=t.Class.extend({construct:function(){this.className="fg-icon",this.registered={default:{close:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M13.957 3.457l-1.414-1.414-4.543 4.543-4.543-4.543-1.414 1.414 4.543 4.543-4.543 4.543 1.414 1.414 4.543-4.543 4.543 4.543 1.414-1.414-4.543-4.543z"></path></svg>',"arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M10.5 16l1.5-1.5-6.5-6.5 6.5-6.5-1.5-1.5-8 8 8 8z"></path></svg>',"arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M5.5 0l-1.5 1.5 6.5 6.5-6.5 6.5 1.5 1.5 8-8-8-8z"></path></svg>',"arrow-down":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M3.5 6l4.5 4.5 4.5-4.5h-9z"></path></svg>',maximize:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M2 2v4h-2v-5c0-0.552 0.448-1 1-1h14c0.552 0 1 0.448 1 1v14c0 0.552-0.448 1-1 1h-14c-0.552 0-1-0.448-1-1v-9h9c0.552 0 1 0.448 1 1v7h4v-12h-12z"/></svg>',expand:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M2 5h-2v-4c0-0.552 0.448-1 1-1h4v2h-3v3z"></path><path d="M16 5h-2v-3h-3v-2h4c0.552 0 1 0.448 1 1v4z"></path><path d="M15 16h-4v-2h3v-3h2v4c0 0.552-0.448 1-1 1z"></path><path d="M5 16h-4c-0.552 0-1-0.448-1-1v-4h2v3h3v2z"></path></svg>',shrink:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M3 0h2v4c0 0.552-0.448 1-1 1h-4v-2h3v-3z"></path><path d="M11 0h2v3h3v2h-4c-0.552 0-1-0.448-1-1v-4z"></path><path d="M12 11h4v2h-3v3h-2v-4c0-0.552 0.448-1 1-1z"></path><path d="M0 11h4c0.552 0 1 0.448 1 1v4h-2v-3h-3v-2z"></path></svg>',info:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M7 4.75c0-0.412 0.338-0.75 0.75-0.75h0.5c0.412 0 0.75 0.338 0.75 0.75v0.5c0 0.412-0.338 0.75-0.75 0.75h-0.5c-0.412 0-0.75-0.338-0.75-0.75v-0.5z"></path><path d="M10 12h-4v-1h1v-3h-1v-1h3v4h1z"></path><path d="M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 14.5c-3.59 0-6.5-2.91-6.5-6.5s2.91-6.5 6.5-6.5 6.5 2.91 6.5 6.5-2.91 6.5-6.5 6.5z"></path></svg>',comment:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M3 4h10v1h-10zM3 6h8v1h-8zM3 8h4v1h-4zM14.5 1h-13c-0.825 0-1.5 0.675-1.5 1.5v8c0 0.825 0.675 1.5 1.5 1.5h2.5v4l4.8-4h5.7c0.825 0 1.5-0.675 1.5-1.5v-8c0-0.825-0.675-1.5-1.5-1.5zM14 10h-5.924l-3.076 2.73v-2.73h-3v-7h12v7z"></path></svg>',thumbs:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M3 3v10h-2v-11c0-0.552 0.448-1 1-1h12c0.552 0 1 0.448 1 1v12c0 0.552-0.448 1-1 1h-12c-0.552 0-1-0.448-1-1v-1h4v-2h-2v-2h2v-2h-2v-2h2v-2h2v10h6v-10h-10z"></path></svg>',cart:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M13.238 9c0.55 0 1.124-0.433 1.275-0.962l1.451-5.077c0.151-0.529-0.175-0.962-0.725-0.962h-10.238c0-1.105-0.895-2-2-2h-3v2h3v8.5c0 0.828 0.672 1.5 1.5 1.5h9.5c0.552 0 1-0.448 1-1s-0.448-1-1-1h-9v-1h8.238zM5 4h9.044l-0.857 3h-8.187v-3z"></path><path d="M6 14.5c0 0.828-0.672 1.5-1.5 1.5s-1.5-0.672-1.5-1.5c0-0.828 0.672-1.5 1.5-1.5s1.5 0.672 1.5 1.5z"></path><path d="M15 14.5c0 0.828-0.672 1.5-1.5 1.5s-1.5-0.672-1.5-1.5c0-0.828 0.672-1.5 1.5-1.5s1.5 0.672 1.5 1.5z"></path></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M2.5 7l5.5 5.5 5.5-5.5h-3.5v-6h-4v6z"></path><path d="M14 8v6h-12v-6h-2v6.5c0 0.825 0.675 1.5 1.5 1.5h13c0.825 0 1.5-0.675 1.5-1.5v-6.5h-2z"></path></svg>',"circle-close":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 14.5c-3.59 0-6.5-2.91-6.5-6.5s2.91-6.5 6.5-6.5 6.5 2.91 6.5 6.5-2.91 6.5-6.5 6.5z"></path><path d="M10.5 4l-2.5 2.5-2.5-2.5-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 2.5-2.5 2.5 2.5 1.5-1.5-2.5-2.5 2.5-2.5z"></path></svg>',"circle-plus":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 14c-3.314 0-6-2.686-6-6s2.686-6 6-6c3.314 0 6 2.686 6 6s-2.686 6-6 6zM12 9h-3v3h-2v-3h-3v-2h3v-3h2v3h3z"></path></svg>',"circle-minus":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 14c-3.314 0-6-2.686-6-6s2.686-6 6-6c3.314 0 6 2.686 6 6s-2.686 6-6 6zM4 7h8v2h-8z"></path></svg>',heart:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M16 5.596c0 1.349-0.582 2.563-1.508 3.404h0.008l-5 5c-0.5 0.5-1 1-1.5 1s-1-0.5-1.5-1l-4.992-5c-0.926-0.841-1.508-2.054-1.508-3.404 0-2.538 2.058-4.596 4.596-4.596 1.349 0 2.563 0.582 3.404 1.508 0.841-0.926 2.054-1.508 3.404-1.508 2.538 0 4.596 2.058 4.596 4.596z"></path></svg>',"heart-outline":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M16 5.596c0-2.538-2.058-4.596-4.596-4.596-1.349 0-2.563 0.582-3.404 1.508-0.841-0.926-2.054-1.508-3.404-1.508-2.538 0-4.596 2.058-4.596 4.596 0 1.349 0.582 2.563 1.508 3.404h-0.008l5 5c0.5 0.5 1 1 1.5 1s1-0.5 1.5-1l4.992-5c0.926-0.841 1.508-2.054 1.508-3.404zM13.148 7.519l-5.062 5.067c-0.026 0.026-0.055 0.055-0.086 0.086-0.031-0.030-0.060-0.059-0.086-0.086l-5.062-5.066c-0.549-0.499-0.852-1.182-0.852-1.923 0-1.432 1.165-2.596 2.596-2.596 0.741 0 1.424 0.303 1.923 0.852l1.481 1.631 1.481-1.631c0.499-0.55 1.182-0.852 1.923-0.852 1.432 0 2.596 1.165 2.596 2.596 0 0.741-0.303 1.424-0.852 1.923z"></path></svg>',"auto-progress":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path class="[ICON_CLASS]-idle" d="M11.39 8c2.152-1.365 3.61-3.988 3.61-7 0-0.339-0.019-0.672-0.054-1h-13.891c-0.036 0.328-0.054 0.661-0.054 1 0 3.012 1.457 5.635 3.609 7-2.152 1.365-3.609 3.988-3.609 7 0 0.339 0.019 0.672 0.054 1h13.891c0.036-0.328 0.054-0.661 0.054-1 0-3.012-1.457-5.635-3.609-7zM2.5 15c0-2.921 1.253-5.397 3.5-6.214v-1.572c-2.247-0.817-3.5-3.294-3.5-6.214v0h11c0 2.921-1.253 5.397-3.5 6.214v1.572c2.247 0.817 3.5 3.294 3.5 6.214h-11zM9.462 10.462c-1.12-0.635-1.181-1.459-1.182-1.959v-1.004c0-0.5 0.059-1.327 1.184-1.963 0.602-0.349 1.122-0.88 1.516-1.537h-6.4c0.395 0.657 0.916 1.188 1.518 1.538 1.12 0.635 1.181 1.459 1.182 1.959v1.004c0 0.5-0.059 1.327-1.184 1.963-1.135 0.659-1.98 1.964-2.236 3.537h7.839c-0.256-1.574-1.102-2.879-2.238-3.538z"/><circle class="[ICON_CLASS]-circle" r="4" cx="8" cy="8"/><path class="[ICON_CLASS]-play" d="M3 2l10 6-10 6z"/><path class="[ICON_CLASS]-pause" d="M2 2h5v12h-5zM9 2h5v12h-5z"/></svg>',search:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M16 13.5l-4.695-4.695c0.444-0.837 0.695-1.792 0.695-2.805 0-3.314-2.686-6-6-6s-6 2.686-6 6 2.686 6 6 6c1.013 0 1.968-0.252 2.805-0.695l4.695 4.695 2.5-2.5zM2 6c0-2.209 1.791-4 4-4s4 1.791 4 4-1.791 4-4 4-4-1.791-4-4z"></path></svg>',spinner:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8 16c-2.137 0-4.146-0.832-5.657-2.343s-2.343-3.52-2.343-5.657c0-1.513 0.425-2.986 1.228-4.261 0.781-1.239 1.885-2.24 3.193-2.895l0.672 1.341c-1.063 0.533-1.961 1.347-2.596 2.354-0.652 1.034-0.997 2.231-0.997 3.461 0 3.584 2.916 6.5 6.5 6.5s6.5-2.916 6.5-6.5c0-1.23-0.345-2.426-0.997-3.461-0.635-1.008-1.533-1.822-2.596-2.354l0.672-1.341c1.308 0.655 2.412 1.656 3.193 2.895 0.803 1.274 1.228 2.748 1.228 4.261 0 2.137-0.832 4.146-2.343 5.657s-3.52 2.343-5.657 2.343z"></path></svg>',"exif-aperture":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M 8,0 C 3.5876443,0 0,3.5876443 0,8 c 0,4.412356 3.5876443,8 8,8 4.412356,0 8,-3.587644 8,-8 C 16,3.5876443 12.412356,0 8,0 Z m 0,1 c 3.871916,0 7,3.1280844 7,7 0,3.871916 -3.128084,7 -7,7 C 4.1280844,15 1,11.871916 1,8 1,4.1280844 4.1280844,1 8,1 Z M 7.53125,2.0214844 A 6,6 0 0 0 3.1835938,4.4335938 H 8.9257812 Z M 8.6132812,2.03125 C 9.5587451,3.6702105 10.504247,5.3091484 11.451172,6.9472656 L 12.863281,4.5 A 6,6 0 0 0 8.6132812,2.03125 Z M 2.5957031,5.4101562 A 6,6 0 0 0 2,8 6,6 0 0 0 2.5273438,10.439453 L 5.4296875,5.4101562 Z m 10.8261719,0.033203 -2.855469,4.9433598 h 2.935547 A 6,6 0 0 0 14,8 6,6 0 0 0 13.421875,5.4433592 Z M 4.5722656,8.8945312 3.0996094,11.449219 a 6,6 0 0 0 4.40625,2.527343 z m 2.5820313,2.4707028 1.4960937,2.591797 a 6,6 0 0 0 4.3144534,-2.591797 z"></path></svg>',"exif-camera":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="m 8.0000002,5 a 4,4 0 0 0 -4,4 4,4 0 0 0 4,4 A 4,4 0 0 0 12,9 4,4 0 0 0 8.0000002,5 Z m 0.019531,1.015625 a 3,2.9814477 0 0 1 2.9804688,3 l -1,-0.00586 a 2,2 0 0 0 0,-0.00976 2,2 0 0 0 -1.9863279,-2 z M 5.125,1 C 4.5,1 4,1.5 4,2.125 V 3.0000004 L 1.125,3 C 0.5,2.9999999 0,3.5 0,4.125 v 9.75 C 0,14.5 0.5,15 1.125,15 h 13.75 C 15.5,15 16,14.5 16,13.875 V 4.125 C 16,3.5 15.5,3 14.875,3 H 12 V 2.125 C 12,1.5 11.5,1 10.875,1 Z M 5.25,2.0000004 h 5.5 c 0.125,0 0.25,0.1249996 0.25,0.25 v 1.75 h 3.75 c 0.125,0 0.25,0.1249996 0.25,0.25 V 13.75 C 15,13.875 14.875,14 14.75,14 H 1.25 C 1.125,14 1,13.875 1,13.75 V 4.25 C 1,4.125 1.125,4 1.25,4 l 3.75,4e-7 v -1.75 c 0,-0.1250004 0.125,-0.25 0.25,-0.25 z"></path></svg>',"exif-created-timestamp":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M 3,1 V 2 H 1 V 15 H 16 V 2 H 14 V 1 H 13 V 2 H 4 V 1 Z M 2,4 H 15 V 14 H 2 Z M 6,5 V 7 H 8 V 5 Z m 3,0 v 2 h 2 V 5 Z m 3,0 v 2 h 2 V 5 Z M 3,8 v 2 H 5 V 8 Z m 3,0 v 2 H 8 V 8 Z m 3,0 v 2 h 2 V 8 Z m 3,0 v 2 h 2 V 8 Z m -9,3 v 2 h 2 v -2 z m 3,0 v 2 h 2 v -2 z m 3,0 v 2 h 2 v -2 z"></path></svg>',"exif-shutter-speed":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M 8,0 C 3.5876443,0 -2.9415707e-8,3.5876443 0,8 c 2.3532563e-7,4.412356 3.5876445,8 8,8 4.412356,0 8,-3.587644 8,-8 C 16,3.5876443 12.412356,0 8,0 Z m 0,1 c 3.871916,0 7,3.1280844 7,7 0,3.871915 -3.128085,7 -7,7 -3.8719154,0 -6.9999998,-3.128085 -7,-7 -3e-8,-3.8719156 3.1280844,-7 7,-7 z M 11.646484,3.6464844 8.6445312,6.6484375 A 1.5,1.5 0 0 0 8,6.5 1.5,1.5 0 0 0 6.5,8 1.5,1.5 0 0 0 8,9.5 1.5,1.5 0 0 0 9.5,8 1.5,1.5 0 0 0 9.3515625,7.3554688 L 12.353516,4.3535156 Z M 2,7.5 v 1 h 2 v -1 z M 7.5,12 v 2 h 1 V 12 Z M 12,7.5 v 1 h 2 v -1 z M 7.5,2 v 2 h 1 V 2 Z"></path></svg>',"exif-focal-length":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="m 1,4.125 -1,0.25 v 7.25 l 1,0.25 z M 5,1 2,4 v 8 l 3,3 h 6.875 C 12.500003,15 13,14.5 13,13.875 V 2.125 C 13,1.4999986 12.5,1 11.875,1 9.576807,0.99914375 7.1414067,0.96597644 5,1 Z M 5.5,2 H 6 V 14 H 5.5 L 3,11.5 v -7 z M 7,2 h 4.75 C 11.875,2 12,2.1249997 12,2.25 v 11.5 c 0,0.125 -0.125,0.250622 -0.25,0.25 H 7 Z m 7,0 c 1,2.2 1.5,4.35 1.5,6 0,1.65 -0.5,3.8 -1.5,6"></path></svg>',"exif-iso":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M 7.5,0 V 1.6015625 C 6.0969201,1.7146076 4.8392502,2.256185 3.828125,3.1210938 L 2.6035156,1.8964844 1.8964844,2.6035156 3.1210938,3.828125 C 2.256185,4.8392502 1.7146076,6.0969201 1.6015625,7.5 H 0 v 1 h 1.6015625 c 0.1130451,1.4030799 0.6546225,2.66075 1.5195313,3.671875 l -1.2246094,1.224609 0.7070312,0.707032 1.2246094,-1.22461 C 4.8392502,13.743815 6.0969201,14.285392 7.5,14.398438 V 16 h 1 v -1.601562 c 1.4030799,-0.113046 2.66075,-0.654623 3.671875,-1.519532 l 1.224609,1.22461 0.707032,-0.707032 -1.22461,-1.224609 C 13.743815,11.16075 14.285392,9.9030799 14.398438,8.5 H 16 v -1 H 14.398438 C 14.285392,6.0969201 13.743815,4.8392502 12.878906,3.828125 L 14.103516,2.6035156 13.396484,1.8964844 12.171875,3.1210938 C 11.16075,2.256185 9.9030799,1.7146076 8.5,1.6015625 V 0 Z M 8,2.5 c 3.043488,0 5.5,2.4565116 5.5,5.5 0,3.043488 -2.456512,5.5 -5.5,5.5 C 4.9565116,13.5 2.5,11.043488 2.5,8 2.5,4.9565116 4.9565116,2.5 8,2.5 Z"></path></svg>',"exif-orientation":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M 1.25,0 C 0.625,0 0,0.625 0,1.25 V 5 H 1 V 3 h 8 v 2 h 1 V 1.25 C 10,0.625 9.375,0 8.75,0 Z m 0,1 h 7.5 C 8.875,1 9,1.125 9,1.25 V 2 H 1 V 1.25 C 1,1.125 1.125,1 1.25,1 Z m 0,5 C 0.625,6 0,6.625 0,7.25 v 7.5 C 0,15.375 0.625,16 1.25,16 h 13.5 C 15.375,16 16,15.375 16,14.75 V 7.25 C 16,6.625 15.375,6 14.75,6 Z m 0,1 H 2 v 3 H 1 V 7.25 C 1,7.125 1.125,7 1.25,7 Z M 3,7 h 10 v 8 H 3 Z m 11,0 h 0.75 C 14.875,7 15,7.125 15,7.25 v 7.5 C 15,14.875 14.875,15 14.75,15 H 14 Z M 1,12 h 1 v 3 H 1.25 C 1.125,15 1,14.875 1,14.75 Z"></path></svg>',"social-share":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M13.5 11c-0.706 0-1.342 0.293-1.797 0.763l-6.734-3.367c0.021-0.129 0.032-0.261 0.032-0.396s-0.011-0.267-0.032-0.396l6.734-3.367c0.455 0.47 1.091 0.763 1.797 0.763 1.381 0 2.5-1.119 2.5-2.5s-1.119-2.5-2.5-2.5-2.5 1.119-2.5 2.5c0 0.135 0.011 0.267 0.031 0.396l-6.734 3.367c-0.455-0.47-1.091-0.763-1.797-0.763-1.381 0-2.5 1.119-2.5 2.5s1.119 2.5 2.5 2.5c0.706 0 1.343-0.293 1.797-0.763l6.734 3.367c-0.021 0.129-0.031 0.261-0.031 0.396 0 1.381 1.119 2.5 2.5 2.5s2.5-1.119 2.5-2.5c0-1.381-1.119-2.5-2.5-2.5z"></path></svg>',"social-facebook":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M9.5 3h2.5v-3h-2.5c-1.93 0-3.5 1.57-3.5 3.5v1.5h-2v3h2v8h3v-8h2.5l0.5-3h-3v-1.5c0-0.271 0.229-0.5 0.5-0.5z"></path></svg>',"social-linkedin":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M6 6h2.767v1.418h0.040c0.385-0.691 1.327-1.418 2.732-1.418 2.921 0 3.461 1.818 3.461 4.183v4.817h-2.885v-4.27c0-1.018-0.021-2.329-1.5-2.329-1.502 0-1.732 1.109-1.732 2.255v4.344h-2.883v-9z"></path><path d="M1 6h3v9h-3v-9z"></path><path d="M4 3.5c0 0.828-0.672 1.5-1.5 1.5s-1.5-0.672-1.5-1.5c0-0.828 0.672-1.5 1.5-1.5s1.5 0.672 1.5 1.5z"></path></svg>',"social-pinterest":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8 1.069c-3.828 0-6.931 3.103-6.931 6.931 0 2.938 1.828 5.444 4.406 6.453-0.059-0.547-0.116-1.391 0.025-1.988 0.125-0.541 0.813-3.444 0.813-3.444s-0.206-0.416-0.206-1.028c0-0.963 0.559-1.684 1.253-1.684 0.591 0 0.878 0.444 0.878 0.975 0 0.594-0.378 1.484-0.575 2.306-0.166 0.691 0.344 1.253 1.025 1.253 1.231 0 2.178-1.3 2.178-3.175 0-1.659-1.194-2.819-2.894-2.819-1.972 0-3.128 1.478-3.128 3.009 0 0.597 0.228 1.234 0.516 1.581 0.056 0.069 0.066 0.128 0.047 0.2-0.053 0.219-0.169 0.691-0.194 0.787-0.031 0.128-0.1 0.153-0.231 0.094-0.866-0.403-1.406-1.669-1.406-2.684 0-2.188 1.587-4.194 4.578-4.194 2.403 0 4.272 1.712 4.272 4.003 0 2.388-1.506 4.313-3.597 4.313-0.703 0-1.362-0.366-1.588-0.797 0 0-0.347 1.322-0.431 1.647-0.156 0.603-0.578 1.356-0.862 1.816 0.65 0.2 1.337 0.309 2.053 0.309 3.828 0 6.931-3.103 6.931-6.931 0-3.831-3.103-6.934-6.931-6.934z"></path></svg>',"social-reddit":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M4 10c0-0.552 0.448-1 1-1s1 0.448 1 1c0 0.552-0.448 1-1 1s-1-0.448-1-1zM10 10c0-0.552 0.448-1 1-1s1 0.448 1 1c0 0.552-0.448 1-1 1s-1-0.448-1-1zM10.049 12.137c0.258-0.203 0.631-0.159 0.834 0.099s0.159 0.631-0.099 0.834c-0.717 0.565-1.81 0.93-2.783 0.93s-2.066-0.365-2.784-0.93c-0.258-0.203-0.302-0.576-0.099-0.834s0.576-0.302 0.834-0.099c0.413 0.325 1.23 0.675 2.049 0.675s1.636-0.35 2.049-0.675zM16 8c0-1.105-0.895-2-2-2-0.752 0-1.406 0.415-1.748 1.028-1.028-0.562-2.28-0.926-3.645-1.010l1.193-2.68 2.284 0.659c0.206 0.583 0.761 1.002 1.415 1.002 0.828 0 1.5-0.672 1.5-1.5s-0.672-1.5-1.5-1.5c-0.571 0-1.068 0.319-1.321 0.789l-2.545-0.735c-0.285-0.082-0.587 0.058-0.707 0.329l-1.621 3.641c-1.33 0.094-2.551 0.453-3.557 1.004-0.342-0.613-0.996-1.028-1.748-1.028-1.105 0-2 0.895-2 2 0 0.817 0.491 1.52 1.193 1.83-0.126 0.375-0.193 0.767-0.193 1.17 0 2.761 3.134 5 7 5s7-2.239 7-5c0-0.403-0.067-0.795-0.193-1.17 0.703-0.31 1.193-1.013 1.193-1.83zM13.5 2.938c0.311 0 0.563 0.252 0.563 0.563s-0.252 0.563-0.563 0.563-0.563-0.252-0.563-0.563 0.252-0.563 0.563-0.563zM1 8c0-0.551 0.449-1 1-1 0.399 0 0.743 0.234 0.904 0.573-0.523 0.396-0.956 0.854-1.276 1.355-0.368-0.148-0.628-0.508-0.628-0.928zM8 14.813c-3.21 0-5.813-1.707-5.813-3.813s2.602-3.813 5.813-3.813c3.21 0 5.813 1.707 5.813 3.813s-2.602 3.813-5.813 3.813zM14.372 8.928c-0.32-0.502-0.753-0.959-1.276-1.355 0.161-0.338 0.505-0.573 0.904-0.573 0.551 0 1 0.449 1 1 0 0.42-0.26 0.78-0.628 0.928z"></path></svg>',"social-tumblr":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M9.001 7l-0 3.659c0 0.928-0.012 1.463 0.086 1.727 0.098 0.262 0.342 0.534 0.609 0.691 0.354 0.212 0.758 0.318 1.214 0.318 0.81 0 1.289-0.107 2.090-0.633v2.405c-0.683 0.321-1.279 0.509-1.833 0.639-0.555 0.129-1.154 0.194-1.798 0.194-0.732 0-1.163-0.092-1.725-0.276-0.562-0.185-1.042-0.45-1.438-0.79-0.398-0.343-0.672-0.706-0.826-1.091s-0.23-0.944-0.23-1.676v-5.611h-2.147v-2.266c0.628-0.204 1.331-0.497 1.778-0.877 0.449-0.382 0.809-0.839 1.080-1.374 0.272-0.534 0.459-1.214 0.561-2.039h2.579l-0 4h3.999v3h-3.999z"></path></svg>',"social-twitter":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M12.163 1.5h2.205l-4.818 5.507 5.668 7.493h-4.438l-3.476-4.545-3.977 4.545h-2.207l5.153-5.89-5.437-7.11h4.551l3.142 4.154zM11.389 13.18h1.222l-7.888-10.429h-1.311z"></path></svg>',"social-vk":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><path d="M14.977 4.063c0.117 0.32-0.25 1.070-1.172 2.297-1.516 2.016-1.68 1.828-0.43 2.992 1.203 1.117 1.453 1.656 1.492 1.727 0 0 0.5 0.875-0.555 0.883l-2 0.031c-0.43 0.086-1-0.305-1-0.305-0.75-0.516-1.453-1.852-2-1.68 0 0-0.563 0.18-0.547 1.383 0.008 0.258-0.117 0.398-0.117 0.398s-0.141 0.148-0.414 0.172h-0.898c-1.977 0.125-3.719-1.695-3.719-1.695s-1.906-1.969-3.578-5.898c-0.109-0.258 0.008-0.383 0.008-0.383s0.117-0.148 0.445-0.148l2.141-0.016c0.203 0.031 0.344 0.141 0.344 0.141s0.125 0.086 0.187 0.25c0.352 0.875 0.805 1.672 0.805 1.672 0.781 1.609 1.313 1.883 1.617 1.719 0 0 0.398-0.242 0.312-2.188-0.031-0.703-0.227-1.023-0.227-1.023-0.18-0.242-0.516-0.312-0.664-0.336-0.117-0.016 0.078-0.297 0.336-0.422 0.383-0.187 1.062-0.195 1.867-0.187 0.633 0.008 0.813 0.047 1.055 0.102 0.742 0.18 0.492 0.867 0.492 2.523 0 0.531-0.102 1.273 0.281 1.516 0.164 0.109 0.57 0.016 1.57-1.688 0 0 0.469-0.813 0.836-1.758 0.062-0.172 0.195-0.242 0.195-0.242s0.125-0.070 0.297-0.047l2.25-0.016c0.68-0.086 0.789 0.227 0.789 0.227z"></path></svg>',"social-email":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M15 2h-14c-0.55 0-1 0.45-1 1v10c0 0.55 0.45 1 1 1h14c0.55 0 1-0.45 1-1v-10c0-0.55-0.45-1-1-1zM14 4v0.719l-6 3.536-6-3.536v-0.719h12zM2 12v-5.54l6 3.536 6-3.536v5.54h-12z"></path></svg>',"social-download":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M2.5 7l5.5 5.5 5.5-5.5h-3.5v-6h-4v6z"></path><path d="M14 8v6h-12v-6h-2v6.5c0 0.825 0.675 1.5 1.5 1.5h13c0.825 0 1.5-0.675 1.5-1.5v-6.5h-2z"></path></svg>'}}},register:function(e,t){return!(a.empty(e)||a.empty(t)||!a.string(e)||!a.hash(t))&&(this.registered[e]=l.extend({},this.registered.default,t),!0)},get:function(e,t){var i=this,n="default",s=l.extend({},i.registered.default),t=(a.string(t)&&"default"!==t?s=l.extend(s,i.registered[n=t]):a.hash(t)&&(n="custom",s=l.extend(s,t)),a.string(e)&&s.hasOwnProperty(e)?s[e].replace(/\[ICON_CLASS]/g,i.className+"-"+e):null),s=[!1,e,n].map(function(e){return!1===e?i.className:i.className+"-"+e}).join(" ");return r(t).addClass(s)},element:function(e,t){const i=this;let n="default",s=l.extend({},i.registered.default);a.string(t)&&"default"!==t?(n=t,s=l.extend(s,i.registered[t])):a.hash(t)&&(n="custom",s=l.extend(s,t));t=a.string(e)&&s.hasOwnProperty(e)?s[e].replace(/\[ICON_CLASS]/g,i.className+"-"+e):null;if(null!==t){const r=document.createRange().createContextualFragment(t),o=r.querySelector("svg");if(o)return["","-"+e,"-"+n].forEach(function(e){o.classList.add(i.className+e)}),o}return null}}),e.icons=new e.Icons}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj),function(s,i,n,r,o){var a="__FooGallerySwipe__",e="ontouchstart"in window,l=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!e,c=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!e,u=e||c;i.Swipe=n.Class.extend({construct:function(e,t){var i=this,n=".fgswipe";i.$el=s(e),i.opt=o.extend({threshold:20,allowPageScroll:!1,swipe:s.noop,data:{}},t),i.active=!1,i.startPoint=null,i.endPoint=null,i.events={start:(u?c?l?"MSPointerDown":"pointerdown":"touchstart":"mousedown")+n,move:(u?c?l?"MSPointerMove":"pointermove":"touchmove":"mousemove")+n,end:(u?c?l?"MSPointerUp":"pointerup":"touchend":"mouseup")+n,leave:(!u||c?"mouseleave":null)+n}},init:function(){var e=this;e.$el.on(e.events.start,{self:e},e.onStart),e.$el.on(e.events.move,{self:e},e.onMove),e.$el.on(e.events.end,{self:e},e.onEnd),r.string(e.events.leave)&&e.$el.on(e.events.leave,{self:e},e.onEnd),e.$el.data(a,e)},destroy:function(){var e=this;e.$el.off(e.events.start,e.onStart),e.$el.off(e.events.move,e.onMove),e.$el.off(e.events.end,e.onEnd),r.string(e.events.leave)&&e.$el.off(e.events.leave,e.onEnd),e.$el.removeData(a)},getAngle:function(e,t){e=Math.atan2(e.x-t.x,e.y-t.y),t=Math.round(180*e/Math.PI);return 360-(t<0?360-Math.abs(t):t)},getDistance:function(e,t){var i=t.x-e.x,t=t.y-e.y;return i*=i,t*=t,Math.sqrt(i+t)},getDirection:function(e,t){e=this.getAngle(e,t);return 337.5<e||e<=22.5?"N":22.5<e&&e<=67.5?"NE":67.5<e&&e<=112.5?"E":112.5<e&&e<=157.5?"SE":157.5<e&&e<=202.5?"S":202.5<e&&e<=247.5?"SW":247.5<e&&e<=292.5?"W":292.5<e&&e<=337.5?"NW":"NONE"},getPoint:function(e){var t;return u&&!r.empty(t=e.originalEvent.touches||e.touches)?{x:t[0].pageX,y:t[0].pageY}:r.number(e.pageX)&&r.number(e.pageY)?{x:e.pageX,y:e.pageY}:null},getOffset:function(e){var t=this.$el.offset();return{left:e.x-t.left,top:e.y-t.top}},onStart:function(e){var t=e.data.self,e=t.getPoint(e);r.empty(e)||(t.active=!0,t.startPoint=t.endPoint=e)},onMove:function(e){var t=e.data.self,i=t.getPoint(e);t.active&&!r.empty(i)&&(t.endPoint=i,t.opt.allowPageScroll?r.hash(t.opt.allowPageScroll)&&(i=t.getDirection(t.startPoint,t.endPoint),t.opt.allowPageScroll.x||-1===n.inArray(i,["NE","E","SE","NW","W","SW"])||e.preventDefault(),t.opt.allowPageScroll.y||-1===n.inArray(i,["NW","N","NE","SW","S","SE"])||e.preventDefault()):e.preventDefault())},onEnd:function(e){var t,e=e.data.self;e.active&&(e.active=!1,t={startPoint:e.startPoint,endPoint:e.endPoint,startOffset:e.getOffset(e.startPoint),endOffset:e.getOffset(e.endPoint),angle:e.getAngle(e.startPoint,e.endPoint),distance:e.getDistance(e.startPoint,e.endPoint),direction:e.getDirection(e.startPoint,e.endPoint)},0<e.opt.threshold&&t.distance<e.opt.threshold||(e.opt.swipe.apply(this,[t,e.opt.data]),e.startPoint=null,e.endPoint=null))}}),s.fn.fgswipe=function(t){return this.each(function(){var e=s(this).data(a);if(e instanceof i.Swipe){if(r.string(t)&&r.fn(e[t]))return void e[t]();e.destroy()}r.hash(t)&&(e=new i.Swipe(this,t)).init()})}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj),function(e,t,r,a,o){e.Factory=t.Class.extend({construct:function(){this.registered={}},contains:function(e){return!r.undef(this.registered[e])},make:function(e,t,i){var n,s=a.arg2arr(arguments);return e=s.shift(),n=this.registered[e],r.hash(n)&&r.fn(n.klass)?a.apply(n.klass,s):null},names:function(e){e=!!r.boolean(e)&&e;var t,i=[];if(e){var n=[];for(t in this.registered)this.registered.hasOwnProperty(t)&&n.push(this.registered[t]);n.sort(function(e,t){return t.priority-e.priority}),n.forEach(function(e){i.push(e.name)})}else for(t in this.registered)this.registered.hasOwnProperty(t)&&i.push(t);return i},register:function(e,t,i){if(!r.string(e)||r.empty(e)||!r.fn(t))return!1;i=r.number(i)?i:0;var n=this.registered[e];return this.registered[e]={name:e,klass:t,priority:r.undef(n)?i:n.priority},!0},load:function(e,t){var i,n=this,s=a.arg2arr(arguments),r=[],o=[];for(i in n.registered)n.registered.hasOwnProperty(i)&&o.push(n.registered[i]);return o.sort(function(e,t){return t.priority-e.priority}),o.forEach(function(e){var t=s.slice();t.unshift(e.name),r.push(n.make.apply(n,t))}),r},configure:function(e,t,i,n){var s;this.contains(e)&&(s=this.registered,o.extend(s[e].opt,t),o.extend(s[e].cls,i),o.extend(s[e].il8n,n))}})}((FooGallery.$,FooGallery),FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(l,o,c,u,a){o.TemplateFactory=o.Factory.extend({construct:function(){this.registered={}},register:function(e,t,i,n,s,r){t=this._super(e,t,r);return t&&((r=this.registered)[e].opt=u.hash(i)?i:{},r[e].cls=u.hash(n)?n:{},r[e].il8n=u.hash(s)?s:{}),t},make:function(e,t){t=u.jq(t)?t:l(t),e=a.extend({},e,t.data("foogallery")),o.isMobile&&(e=a.extend({},e,t.data("foogalleryMobile")));var i=this.type(e,t);return this.contains(i)?(e=this.options(i,e),this._super(i,e,t)):null},type:function(e,t){t=u.jq(t)?t:l(t);var i=u.hash(e)&&u.hash(e)&&u.string(e.type)&&this.contains(e.type)?e.type:null;if(null===i&&0<t.length)for(var n=this.registered,s=this.names(!0),r=0,o=s.length;r<o;r++)if(n.hasOwnProperty(s[r])&&"core"!==s[r]){var a=n[s[r]].cls;if(u.string(a.container)){a=c.selectify(a.container);if(t.is(a)){i=s[r];break}}}return i},options:function(e,t){t=a.extend({type:e},t);var i=this.registered,n=i.core.opt,s=i.core.cls,r=i.core.il8n;return u.hash(t.cls)||(t.cls={}),u.hash(t.il8n)||(t.il8n={}),u.undef(o.filtering)||(t=o.filtering.merge(t)),u.undef(o.paging)||(t=o.paging.merge(t)),"core"!==e&&this.contains(e)?((t=a.extend({},n,i[e].opt,t)).cls=a.extend({},s,i[e].cls,t.cls),t.il8n=a.extend({},r,i[e].il8n,t.il8n)):((t=a.extend({},n,t)).cls=a.extend({},s,t.cls),t.il8n=a.extend({},r,t.il8n)),t}}),o.template=new o.TemplateFactory}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,(FooGallery.utils.fn,FooGallery.utils.obj)),function(n,s,r,o,a){var l=0;s.Template=r.EventClass.extend({construct:function(e,t){var i=this;i._super(),i.namespace=".foogallery-"+ ++l,i.$el=o.jq(t)?t:n(t),i.el=i.$el.get(0)||null,i.$scrollParent=null,i.opt=e,i.template=e.template,i.id=i.$el.prop("id")||e.id,i.cls=e.cls,i.il8n=e.il8n,i.sel=r.selectify(i.cls),i.items=s.components.make("items",i),i.pages=o.undef(s.paging)?null:s.paging.make(e.paging.type,i),i.filter=o.undef(s.filtering)?null:s.filtering.make(e.filtering.type,i),i.state=s.components.make("state",i),i._initialize=null,i._layoutTimeout=null,i._layoutWidths=[],i.lastWidth=0,i.initializing=!1,i.initialized=!1,i.destroying=!1,i.destroyed=!1,i._undo={classes:"",style:"",create:!1,children:!1},i.robserver=new ResizeObserver(a.throttle(function(e){i.destroying||i.destroyed||1!==e.length||e[0].target!==i.el||(e=r.getResizeObserverSize(e[0]),i.layout(e.width))},50))},initialize:function(t){var i=this;return o.promise(i._initialize)?i._initialize:i._initialize=n.Deferred(function(e){i.preInit(t)?i.init().then(function(){i.postInit()?(i.ready(),e.resolve(i)):e.reject("post-init failed")}).catch(e.reject):e.reject("pre-init failed")}).catch(function(e){return console.log("initialize failed",i,e),i.destroy()}).promise()},preInit:function(e){var t=this;if(t.destroying)return!1;if(e=o.jq(e)?e:n(e),t.initializing=!0,0===e.length&&0===t.$el.parent().length)return!1;0===t.$el.length&&(t.$el=t.create(),t.el=t.$el.get(0),t._undo.create=!0),0<e.length&&t.$el.appendTo(e),o.empty(t.opt.scrollParent)||0===(e=n(t.opt.scrollParent)).length?t.$scrollParent=n(document):t.$scrollParent=e.is("html")?n(document):e,t.$el.data(s.DATA_TEMPLATE,t),o.empty(t.opt.on)||t.on(t.opt.on),t._undo.classes=t.$el.attr("class"),t._undo.style=t.$el.attr("style"),t.$el.is(t.sel.container)||t.$el.addClass(t.cls.container);e=r.selectify(t.opt.classes);return null==e||t.$el.is(e)||t.$el.addClass(t.opt.classes),0===t.$el.children().not(t.sel.item.elem).length&&(t.$el.append(t.createChildren()),t._undo.children=!0),t.opt.protected&&(t.el.oncontextmenu=function(e){return e.preventDefault(),!1}),!t.trigger("pre-init").isDefaultPrevented()},init:function(){return this.trigger("init").isDefaultPrevented()?a.reject("init default prevented"):this.items.fetch()},postInit:function(){var e=this;return!e.destroying&&(!e.trigger("post-init").isDefaultPrevented()&&(e.state.init(),e.pages&&e.pages.init(),n(window).on("popstate"+e.namespace,{self:e},e.onWindowPopState),e.robserver.observe(e.el),!0))},ready:function(){return!this.destroying&&(this.initializing=!1,this.initialized=!0,this.trigger("ready"),!0)},create:function(){return n("<div/>",{id:this.id,class:this.cls.container}).addClass(this.opt.classes)},createChildren:function(){return n()},destroy:function(t){var i=this,e=i._super.bind(i);return i.destroyed?a.resolved:(i.destroying=!0,n.Deferred(function(e){i.initializing&&o.promise(i._initialize)?i._initialize.always(function(){i.destroying=!1,i.doDestroy(t),e.resolve()}):(i.destroying=!1,i.doDestroy(t),e.resolve())}).then(function(){e()}).promise())},doDestroy:function(e){var t=this;t.destroyed||(t.trigger("destroy"),t.robserver.disconnect(),n(window).off(t.namespace),t.state.destroy(e),t.filter&&t.filter.destroy(),t.pages&&t.pages.destroy(),t.items.destroy(),o.empty(t.opt.on)||t.$el.off(t.opt.on),t.trigger("destroyed"),t.$el.removeData(s.DATA_TEMPLATE),o.empty(t._undo.classes)?t.$el.removeAttr("class"):t.$el.attr("class",t._undo.classes),o.empty(t._undo.style)?t.$el.removeAttr("style"):t.$el.attr("style",t._undo.style),t._undo.children&&t.destroyChildren(),t._undo.create&&t.$el.remove(),t.$el=t.state=t.items=t.pages=null,t.destroyed=!0,t.initializing=!1,t.initialized=!1)},destroyChildren:function(){},getAvailable:function(){return(this.pages||this.items).available()},layout:function(e){var t=this;null===t._initialize||0===(e=o.number(e)?e:t.el.getBoundingClientRect().width)||t._checkWidth(e)||(t.lastWidth=e,t.trigger("layout",[e]))},_checkWidth:function(e){var t,i=this;return(t=-1!==i._layoutWidths.indexOf(e))||(i._layoutWidths.unshift(e),i._layoutWidths.splice(2,i._layoutWidths.length-2),null!=i._layoutTimeout&&clearTimeout(i._layoutTimeout),i._layoutTimeout=setTimeout(function(){i._layoutWidths.splice(0,i._layoutWidths.length)},100)),t},getCSSClass:function(e,t){t=o.empty(t)?"":t;var e=e instanceof RegExp?e:o.string(e)&&this.opt.regex.hasOwnProperty(e)?this.opt.regex[e]:null,i=this.$el.prop("className")||"",i=null!=e?i.match(e):null;return null!=i&&2<=i.length?i[1]:t},getLanguage:function(){return(""!==document.documentElement.lang?document.documentElement:this.opt).lang},onWindowPopState:function(e){var t=e.data.self,e=e.originalEvent.state;o.empty(e)||e.id!==t.id||t.state.set(e)}}),s.template.register("core",s.Template,{id:null,type:"core",classes:"",on:{},lazy:!0,items:[],scrollParent:null,delay:0,throttle:50,shortpixel:!1,srcset:"data-srcset-fg",src:"data-src-fg",protected:!1,lang:"en",cors:null,template:{},regex:{theme:/(?:\s|^)(fg-(?:light|dark|custom))(?:\s|$)/,loadingIcon:/(?:\s|^)(fg-loading-(?:default|bars|dots|partial|pulse|trail))(?:\s|$)/,hoverIcon:/(?:\s|^)(fg-hover-(?:zoom|zoom2|zoom3|zoom4|zoom5|plus|plus2|plus3|circle-plus|circle-plus2|square-plus|eye|external|tint))(?:\s|$)/,videoIcon:/(?:\s|^)(fg-video-(?:default|1|2|3|4))(?:\s|$)/,border:/(?:\s|^)(fg-border-(?:thin|medium|thick))(?:\s|$)/,hoverColor:/(?:\s|^)(fg-hover-(?:colorize|grayscale))(?:\s|$)/,hoverScale:/(?:\s|^)(fg-hover-scale)(?:\s|$)/,stickyVideoIcon:/(?:\s|^)(fg-video-sticky)(?:\s|$)/,insetShadow:/(?:\s|^)(fg-shadow-inset-(?:small|medium|large))(?:\s|$)/,filter:/(?:\s|^)(fg-filter-(?:1977|amaro|brannan|clarendon|earlybird|lofi|poprocket|reyes|toaster|walden|xpro2|xtreme))(?:\s|$)/}},{container:"foogallery"},{},-100)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.str),function(e,t){e.Component=t.EventClass.extend({construct:function(e){this._super(),this.tmpl=e},destroy:function(){this.tmpl=null,this._super()}}),e.components=new e.Factory}(FooGallery,FooGallery.utils,FooGallery.utils.is),function(t,r,i,o,a,l){r.State=r.Component.extend({construct:function(e){var t=this,e=(t._super(e),t.apiEnabled=!!window.history&&!!history.replaceState,t.opt=t.tmpl.opt.state,t.enabled=t.opt.enabled,t.current={filter:[],page:0,item:null},t.pushOrReplace=t.isPushOrReplace(t.opt.pushOrReplace)?t.opt.pushOrReplace:"replace",t.defaultMask="foogallery-gallery-{id}",a.escapeRegExp(t.tmpl.id)),i=a.escapeRegExp(t.getMasked()),n=a.escapeRegExp(t.opt.values),s=a.escapeRegExp(t.opt.pair);t.regex={exists:new RegExp("^#"+e+"\\"+n+".+?"),masked:new RegExp("^#"+i+"\\"+n+".+?"),values:new RegExp("(\\w+)"+s+"([^"+n+"]+)","g")},t.usePopState=t.opt.usePopState,t.onPopState=t.onPopState.bind(t)},init:function(){var e=this;e.set(e.initial()),e.enabled&&e.apiEnabled&&e.usePopState&&window.addEventListener("popstate",e.onPopState)},destroy:function(e){var t=this;t.enabled&&t.apiEnabled&&t.usePopState&&window.removeEventListener("popstate",t.onPopState),e||t.clear(),t.opt=t.regex={},t._super()},getIdNumber:function(){return this.tmpl.id.match(/\d+/g)[0]},getMasked:function(){var e=a.contains(this.opt.mask,"{id}")?this.opt.mask:this.defaultMask;return a.format(e,{id:this.getIdNumber()})},isPushOrReplace:function(e){return-1!==i.inArray(e,["push","replace"])},exists:function(){return this.regex.values.lastIndex=0,(this.regex.exists.test(location.hash)||this.regex.masked.test(location.hash))&&this.regex.values.test(location.hash)},parse:function(){var e,s=this,r=s.tmpl,o={};return s.exists()&&(s.enabled?(o.id=s.tmpl.id,s.regex.values.lastIndex=0,e=location.hash.match(s.regex.values),t.each(e,function(e,t){var i,n=t.split(s.opt.pair);if(2===n.length)switch(n[0]){case s.opt.itemKey:null!==(i=r.items.fromHash(n[1]))&&(o.item=i);break;case s.opt.pageKey:r.pages&&null!==(i=r.pages.fromHash(n[1]))&&(o.page=i);break;case s.opt.filterKey:r.filter&&null!==(i=r.filter.fromHash(n[1]))&&(o.filter=i)}})):s.apiEnabled?history.replaceState(null,"",location.pathname+location.search):location.hash="#"),o},hashify:function(e){var t,i,n=this,s=n.tmpl;return o.hash(e)?(t=[],null!==(i=s.items.toHash(e.item))&&t.push(n.opt.itemKey+n.opt.pair+i),s.filter&&null!==(i=s.filter.toHash(e.filter))&&t.push(n.opt.filterKey+n.opt.pair+i),s.pages&&null!==(i=s.pages.toHash(e.page))&&t.push(n.opt.pageKey+n.opt.pair+i),0<t.length&&t.unshift("#"+n.getMasked()),t.join(n.opt.values)):""},replace:function(e){var t,i;this.enabled&&this.apiEnabled&&(e.id=this.tmpl.id,t=this.hashify(e),i=o.empty(t),e=l.extend({},e,{item:e.item instanceof r.Item?e.item.id:e.item}),history.replaceState(i?null:e,"",i?location.pathname+location.search:t))},push:function(e){var t,i;this.enabled&&this.apiEnabled&&(e.id=this.tmpl.id,t=this.hashify(e),i=o.empty(t),e=l.extend({},e,{item:e.item instanceof r.Item?e.item.id:e.item}),history.pushState(i?null:e,"",i?location.pathname+location.search:t))},update:function(e,t){var i=this;i.enabled&&i.apiEnabled&&(t=i.isPushOrReplace(t)?t:i.pushOrReplace,i[t](e))},clear:function(){this.exists()&&this.replace({})},initial:function(){var e=this.parse();return o.empty(e)?this.get():l.extend({filter:[],page:1,item:null},e)},get:function(e){var t,i=this.tmpl,n={};return e instanceof r.Item&&(n.item=e),i.filter&&null!==(t=i.filter.getState())&&(n.filter=t),i.pages&&null!==(t=i.pages.getState())&&(n.page=t),l.extend({filter:[],page:1,item:null},n)},set:function(e){var t,i,n,s=this.tmpl;o.hash(e)&&(t=l.extend({filter:[],page:1,item:null},e),s.items.reset(),s.trigger("before-state",[t]).isDefaultPrevented()||(s.filter&&s.filter.setState(t),s.pages?s.pages.setState(t):(i=s.items.available(),s.items.isAll(i)||(n=s.items.not(i),s.items.detach(n)),s.items.create(i,!0)),t.item instanceof r.Item&&(this.opt.scrollTo&&t.item.scrollTo(),o.empty(e.item)||(e.item=null,this.replace(e))),this.current=t,s.trigger("after-state",[t])))},getItemHash:function(e){return this.enabled&&e instanceof r.Item?(e=this.get(e),this.hashify(e)):""},onPopState:function(e){var t=this.parse();Object.keys(t).length&&this.set(t)}}),r.template.configure("core",{state:{enabled:!1,scrollTo:!0,pushOrReplace:"replace",mask:"foogallery-gallery-{id}",usePopState:!0,values:"/",pair:":",array:"+",arraySeparator:",",itemKey:"i",filterKey:"f",pageKey:"p"}}),r.components.register("state",r.State)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.str,FooGallery.utils.obj),function(o,r,i,a,n,l){r.Items=r.Component.extend({construct:function(e){var t=this,e=(t.ALLOW_CREATE=!0,t.ALLOW_APPEND=!0,t.LAYOUT_AFTER_LOAD=!0,t._super(e),t._typeRegex=/(?:^|\s)?fg-type-(.*?)(?:$|\s)/,t._fetched=null,t._all=[],t._available=[],t._unavailable=[],t._observed=new Map,t.tmpl.cls.item.caption);t.tmpl.sel.item.caption.all=i.selectify([e.elem,e.inner,e.title,e.description]),t._wait=[],t._layoutTimeout=null,t.iobserver=new IntersectionObserver(function(e){t.tmpl.destroying||t.tmpl.destroyed||(t.LAYOUT_AFTER_LOAD&&clearTimeout(t._layoutTimeout),e.forEach(function(e){e.isIntersecting&&(e=t._observed.get(e.target))instanceof r.Item&&t._wait.push(e.load())}),t.LAYOUT_AFTER_LOAD&&(t._layoutTimeout=setTimeout(function(){0<t._wait.length&&n.allSettled(t._wait.splice(0)).then(function(){t.tmpl.layout()})},100)))})},fromHash:function(t){return this.find(this._all,function(e){return e.id===t})},toHash:function(e){return e instanceof r.Item?e.id:null},destroy:function(){var e=this,t=e.all();e.iobserver.disconnect(),0<t.length&&(e.tmpl.trigger("destroy-items",[t]),0<(t=o.map(t,function(e){return e.destroy()?e:null})).length&&e.tmpl.trigger("destroyed-items",[t])),e._fetched=null,e._all=[],e._available=[],e._unavailable=[],e._observed.clear(),e._super()},fetch:function(e){var t,n,s,r,i=this;return!e&&a.promise(i._fetched)?i._fetched:(e=i.tmpl.id+"_items",t=i.tmpl.sel,n=i.tmpl.opt.items,s=o.Deferred(),r=i.make(i.tmpl.$el.find(t.item.elem)),a.empty(n)?(a.array(window[e])&&r.push.apply(r,i.make(window[e])),s.resolve(r)):a.array(n)?(r.push.apply(r,i.make(n)),s.resolve(r)):a.string(n)?o.get(n).then(function(e){r.push.apply(r,i.make(e)),s.resolve(r)},function(e,t,i){console.log("FooGallery: GET items error.",n,e,t,i),s.resolve(r)}):s.resolve(r),s.then(function(e){i.setAll(e)}),i._fetched=s.promise())},toJSON:function(e){return(e?this.all():this.available()).map(function(e){return e.toJSON()})},all:function(){return this._all.slice()},count:function(e){return(e?this.all():this.available()).length},available:function(e){return a.fn(e)?this._available.filter(e,this):this._available.slice()},unavailable:function(e){return a.fn(e)?this._unavailable.filter(e,this):this._unavailable.slice()},setAll:function(e){this._all=a.array(e)?e:[],this._all.forEach(function(e,t){e.index=t,a.empty(e.id)&&(e.id=t+1+"")}),this._available=this.all(),this._unavailable=[]},setAvailable:function(e){var t=this;t._available=a.array(e)?e:[],t._all.length!==t._available.length?t._unavailable=t._all.filter(function(e){return-1===t._available.indexOf(e)}):t._unavailable=[]},reset:function(){this.setAvailable(this.all())},find:function(e,t){if(t=a.fn(t)?t:function(){return!0},a.array(e))for(var i=0,n=e.length;i<n;i++)if(!0===t.call(this,e[i]))return e[i];return null},not:function(t){var e=this.all();return a.array(t)?e.filter(function(e){return-1===t.indexOf(e)}):e},isAll:function(e){return!!a.array(e)&&this._all.length===e.length},first:function(e){return this.find(this._available,e)},last:function(e){return this.find(this._available.slice().reverse(),e)},next:function(e,t,i){if(!(e instanceof r.Item))return null;i=!!a.boolean(i)&&i;var n,s=this._available.slice(),e=s.indexOf(e);return-1!==e?(n=s.slice(0,e),s=s.slice(e+1),i&&(s=s.concat(n)),this.find(s,t)):null},prev:function(e,t,i){if(!(e instanceof r.Item))return null;i=!!a.boolean(i)&&i;var n,s=this._available.slice().reverse(),e=s.indexOf(e);return-1!==e?(n=s.slice(0,e),s=s.slice(e+1),i&&(s=s.concat(n)),this.find(s,t)):null},get:function(t,e){e=e?this._all:this._available;return a.number(t)?0<=t&&t<this._all.length?e[t]:null:this.find(e,function(e){return e.el===t})},indexOf:function(e,t){return(t?this._all:this._available).indexOf(e)},creatable:function(e){return this.ALLOW_CREATE&&a.array(e)?o.map(e,function(e){return e instanceof r.Item&&!e.isCreated?e:null}):[]},appendable:function(e){return this.ALLOW_APPEND&&a.array(e)?o.map(e,function(e){return e instanceof r.Item&&e.isCreated&&!e.isAttached?e:null}):[]},detachable:function(e){return a.array(e)?o.map(e,function(e){return e instanceof r.Item&&e.isCreated&&e.isAttached?e:null}):[]},jquerify:function(e){return o(o.map(e,function(e){return e.$el.get()}))},make:function(e){var n=this,t=[];if(a.jq(e)||a.array(e)){var s=[],e=o.makeArray(e);if(0===e.length)return t;0<(t=n.tmpl.trigger("make-items",[e]).isDefaultPrevented()?t:o.map(e,function(e){var t=n.type(e),i=l.extend(a.hash(e)?e:{},{type:t}),t=r.components.make(t,n.tmpl,i);return a.element(e)?t.parse(e)?(s.push(t),n.ALLOW_APPEND||t.detach(),t):null:t})).length&&n.tmpl.trigger("made-items",[t]),0<s.length&&n.tmpl.trigger("parsed-items",[s])}return t},type:function(e){var t;return a.hash(e)?t=e.type:a.element(e)&&null!==(e=e.className.match(this._typeRegex))&&2===e.length&&(t=e[1]),a.string(t)&&r.components.contains(t)?t:"image"},create:function(e,t){var i=[],n=this.creatable(e);return 0<n.length&&0<(i=this.tmpl.trigger("create-items",[n]).isDefaultPrevented()?i:o.map(n,function(e){return e.create()?e:null})).length&&this.tmpl.trigger("created-items",[i]),a.boolean(t)&&t?this.append(e):i},append:function(e){var t=[],e=this.appendable(e);return 0<e.length&&0<(t=this.tmpl.trigger("append-items",[e]).isDefaultPrevented()?t:o.map(e,function(e){return e.append()?e:null})).length&&this.tmpl.trigger("appended-items",[t]),t},detach:function(e){var t=[],e=this.detachable(e);return 0<e.length&&0<(t=this.tmpl.trigger("detach-items",[e]).isDefaultPrevented()?t:o.map(e,function(e){return e.detach()?e:null})).length&&this.tmpl.trigger("detached-items",[t]),t},observe:function(e){!(this.iobserver&&e.isCreated&&e.isAttached)||e.isLoading&&e.isLoaded||(this.iobserver.observe(e.el),this._observed.set(e.el,e))},unobserve:function(e){this.iobserver&&(this.iobserver.unobserve(e.el),this._observed.delete(e.el))}}),r.components.register("items",r.Items)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(y,b,x,w,r,C){b.Item=b.Component.extend({construct:function(e,t){var i=this;i._super(e),i.cls=e.cls.item,i.il8n=e.il8n.item,i.sel=e.sel.item,i.opt=r.extend({},e.opt.item,t),i.isAttached=!1,i.isCreated=!1,i.isDestroyed=!1,i.isLoading=!1,i.isLoaded=!1,i.isError=!1,i.isParsed=!1,i.isPicture=!1,i.$el=null,i.el=null,i.$inner=null,i.$anchor=null,i.$overlay=null,i.$wrap=null,i.$image=null,i.$caption=null,i.$loader=null,i.index=-1,i.type=i.opt.type,i.id=""+i.opt.id,i.productId=i.opt.productId,i.href=i.opt.href,i.download=i.opt.download,i.placeholder=i.opt.placeholder,i.src=i.opt.src,i.srcset=i.opt.srcset,i.sources=i.opt.sources,i.width=i.opt.width,i.height=i.opt.height,i.title=i.opt.title,i.alt=i.opt.alt,i.caption=i.opt.caption,i.description=i.opt.description,i.attr=i.opt.attr,i.tags=i.opt.tags,i.maxCaptionLength=i.opt.maxCaptionLength,i.maxDescriptionLength=i.opt.maxDescriptionLength,i.showCaptionTitle=i.opt.showCaptionTitle,i.showCaptionDescription=i.opt.showCaptionDescription,i.noLightbox=i.opt.noLightbox,i.panelHide=i.opt.panelHide,i.exif=i.opt.exif,i.hasExif=w.exif(i.exif),i.ribbon=i.opt.ribbon,i.hasRibbon=w.hash(i.ribbon)&&w.string(i.ribbon.text)&&w.string(i.ribbon.type),i.buttons=i.opt.buttons,i._load=null,i._undo={classes:"",style:"",placeholder:!1}},destroy:function(){var e=this;return e.tmpl.trigger("destroy-item",[e]).isDefaultPrevented()||(e.isDestroyed=e.doDestroyItem()),e.isDestroyed&&(e.tmpl.trigger("destroyed-item",[e]),e._super()),e.isDestroyed},doDestroyItem:function(){var e=this;return e.isParsed?(e.$anchor.add(e.$caption).off("click.foogallery"),e.append(),e.tmpl.items.unobserve(e),w.empty(e._undo.classes)?e.$el.removeAttr("class"):e.$el.attr("class",e._undo.classes),w.empty(e._undo.style)?e.$el.removeAttr("style"):e.$el.attr("style",e._undo.style),e._undo.placeholder&&e.$image.prop("src")===e.placeholder&&e.$image.removeAttr("src")):e.isCreated&&(e.detach(),e.$el.remove()),!0},parse:function(e){var t=this,e=y(e);return!t.tmpl.trigger("parse-item",[t,e]).isDefaultPrevented()&&(t.isCreated=e.is(t.sel.elem))&&(t.isParsed=t.doParseItem(e)),t.isParsed&&(t.isLoaded||t.tmpl.items.observe(t),t.tmpl.trigger("parsed-item",[t])),t.isParsed},doParseItem:function(e){var i=this,t=i.cls,n=i.sel,s=e.get(0);if(i._undo.classes=e.attr("class")||"",i._undo.style=e.attr("style")||"",i.$el=e.data(b.DATA_ITEM,i),i.el=s,i.$inner=y(s.querySelector(n.inner)),i.$anchor=y(s.querySelector(n.anchor)).on("click.foogallery",{self:i},i.onAnchorClick),i.$image=y(s.querySelector(n.image)),i.$caption=y(s.querySelector(n.caption.elem)).on("click.foogallery",{self:i},i.onCaptionClick),i.$overlay=y(s.querySelector(n.overlay)),i.$wrap=y(s.querySelector(n.wrap)),i.$loader=y(s.querySelector(n.loader)),!(i.$el.length&&i.$inner.length&&i.$anchor.length&&i.$image.length))return console.error("FooGallery Error: Invalid HTML markup. Check the item markup for additional elements or malformed HTML in the title or description.",i),i.isError=!0,i.tmpl.trigger("error-item",[i]),0!==i.$el.length&&i.$el.remove(),!1;i.isAttached=null!==s.parentNode,i.isLoading=i.$el.hasClass(t.loading),i.isLoaded=i.$el.hasClass(t.loaded),i.isError=i.$el.hasClass(t.error);var e=i.$anchor.data(),e=(i.id=""+(e.id||e.attachmentId||i.id),i.productId=e.productId||i.productId,i.tags=e.tags||i.tags,i.href=e.href||i.$anchor.attr("href")||i.href,i.download=e.download||i.download||i.href,s=i.$image.is("picture")?(i.isPicture=!0,i.sources=i.$image.find("source").map(function(e,t){return{srcset:t.getAttribute(i.tmpl.opt.srcset),type:t.getAttribute("type"),media:t.getAttribute("media"),sizes:t.getAttribute("sizes")}}).get(),i.$image.find("img")):i.$image,i.src=s.attr(i.tmpl.opt.src)||i.src,i.srcset=s.attr(i.tmpl.opt.srcset)||i.srcset,i.width=parseInt(s.attr("width"))||i.width,i.height=parseInt(s.attr("height"))||i.height,i.title=b.safeParse(s.attr("title")||i.title),i.alt=b.safeParse(s.attr("alt")||i.alt),i.caption=b.safeParse(e.title||e.captionTitle||i.caption),i.description=b.safeParse(e.description||e.captionDesc||i.description),i.noLightbox=i.$anchor.hasClass(t.noLightbox),i.panelHide=i.$anchor.hasClass(t.panelHide),w.exif(e.exif)&&(i.exif=r.extend(i.exif,e.exif),i.hasExif=!0),0<i.maxCaptionLength&&((e=C.trimTo(i.caption,i.maxCaptionLength))!==i.caption&&i.$caption.find(n.caption.title).html(e)),!i.maxDescriptionLength||(e=C.trimTo(i.description,i.maxDescriptionLength))!==i.description&&i.$caption.find(n.caption.description).html(e),i.showCaptionTitle||i.$caption.find(n.caption.title).remove(),i.showCaptionDescription||i.$caption.find(n.caption.description).remove(),s.get(0)),n=(w.string(e.src)&&0!==e.src.length||(w.string(i.placeholder)&&0!==i.placeholder.length||(i.placeholder=i.createPlaceholder(i.width,i.height)),0<i.placeholder.length&&(e.src=i.placeholder,i._undo.placeholder=!0)),i.getTypeClass());return i.$el.hasClass(n)||i.$el.addClass(n),i.hasExif&&!i.$el.hasClass(t.exif)&&i.$el.addClass(t.exif),!i.isCreated||!i.isAttached||i.isLoading||i.isLoaded||i.isError||i.$el.hasClass(t.idle)||i.$el.addClass(t.idle),i.doShortPixel(),!0},create:function(){var e=this;return!e.isCreated&&w.string(e.href)&&w.string(e.src)&&w.number(e.width)&&w.number(e.height)&&(e.tmpl.trigger("create-item",[e]).isDefaultPrevented()||(e.isCreated=e.doCreateItem()),e.isCreated&&e.tmpl.trigger("created-item",[e])),e.isCreated},_setAttributes:function(n,e){Object.entries(e).forEach(([e,t])=>{var i;w.empty(t)||("class"===e?(i=(w.array(t)?t:[t]).flatMap(e=>w.string(e)?e.split(" "):[]).map(e=>e.trim()).filter(Boolean),n.classList.add(...i)):n.setAttribute(e,w.string(t)?t:JSON.stringify(t)))})},doShortPixel:function(){var e,t=this;function i(e,t,i){return"/"===t||"/"===i?"/":t}t.tmpl.opt.shortpixel&&!b.supportsWebP&&(t.href=t.href.replace(e=/([\/,+])to_webp([\/,+])/i,i),t.src=t.src.replace(e,i),t.srcset=t.srcset.replace(e,i))},doCreateItem:function(){var n,e,s=this,t=s.cls,i=s.attr,r=s.hasExif?t.exif:"",o=(s.isLoaded=!s.tmpl.opt.lazy,s.isPicture=0<s.sources.length,s.doShortPixel(),document.createElement("div")),r=(s._setAttributes(o,i.elem),s._setAttributes(o,{class:[t.elem,s.getTypeClass(),r,s.isLoaded?t.loaded:t.idle]}),document.createElement("figure")),a=(s._setAttributes(r,i.inner),s._setAttributes(r,{class:t.inner}),[t.anchor]),l=(s.noLightbox&&a.push(t.noLightbox),s.panelHide&&a.push(t.panelHide),document.createElement("a")),a=(s._setAttributes(l,i.anchor),s._setAttributes(l,{class:a.join(" "),href:s.href,"data-id":s.id,"data-type":s.type,"data-title":s.caption,"data-description":s.description,"data-tags":s.tags,"data-exif":s.exif,"data-product-id":s.productId,"data-download":s.download}),w.string(s.placeholder)&&0!==s.placeholder.length||(s.placeholder=s.createPlaceholder(s.width,s.height)),document.createElement("img")),c=(s._setAttributes(a,i.image),{class:t.image,src:s.placeholder,width:s.width+"",height:s.height+"",title:s.title,alt:s.alt}),c=(s.isLoaded?(c.src=s.src,c.srcset=s.srcset):(c[s.tmpl.opt.src]=s.src,c[s.tmpl.opt.srcset]=s.srcset),s._setAttributes(a,c),s.isPicture&&(n=document.createElement("picture"),s._setAttributes(n,i.picture),s.sources.forEach(function(e){var t=document.createElement("source"),i={media:e.media,sizes:e.sizes,type:e.type};s.isLoaded?i.srcset=e.srcset:i[s.tmpl.opt.srcset]=e.srcset,s._setAttributes(t,i),n.appendChild(t)}),n.appendChild(a)),s.hasRibbon&&((e=document.createElement("div")).className=s.ribbon.type,(c=document.createElement("span")).innerHTML=s.ribbon.text,e.appendChild(c)),document.createElement("span")),u=(c.className=t.overlay,document.createElement("span")),h=(u.className=t.wrap,document.createElement("div")),d=(h.className=t.loader,document.createElement("figcaption")),p=(s._setAttributes(d,i.caption.elem),s._setAttributes(d,{class:t.caption.elem}),document.createElement("div")),f=(s._setAttributes(p,i.caption.inner),s._setAttributes(p,{class:t.caption.inner}),null),g=s.showCaptionTitle&&w.string(s.caption)&&0<s.caption.length,f=(g&&(f=document.createElement("div"),s._setAttributes(f,i.caption.title),f.className=t.caption.title,f.innerHTML=0<s.maxCaptionLength?C.trimTo(s.caption,s.maxCaptionLength):s.caption,p.appendChild(f)),null),m=s.showCaptionDescription&&w.string(s.description)&&0<s.description.length,v=(m&&(f=document.createElement("div"),s._setAttributes(f,i.caption.description),f.className=t.caption.description,f.innerHTML=0<s.maxDescriptionLength?C.trimTo(s.description,s.maxDescriptionLength):s.description,p.appendChild(f)),null),i=w.array(s.buttons)&&0<s.buttons.length;return i&&((v=document.createElement("div")).className=t.caption.buttons,x.each(s.buttons,function(e){var t;w.hash(e)&&w.string(e.text)&&((t=document.createElement("a")).innerHTML=e.text,w.string(e.url)&&0<e.url.length&&(t.href=e.url),w.string(e.rel)&&0<e.rel.length&&(t.rel=e.rel),w.string(e.target)&&0<e.target.length&&(t.target=e.target),w.string(e.classes)&&0<e.classes.length&&(t.className=e.classes),w.hash(e.attr)&&s._setAttributes(t,e.attr),v.appendChild(t))}),p.appendChild(v)),d.appendChild(p),s.isPicture?u.appendChild(n):u.appendChild(a),l.appendChild(c),l.appendChild(u),r.appendChild(l),(g||m||i)&&r.appendChild(d),s.hasRibbon&&o.appendChild(e),o.appendChild(r),o.appendChild(h),s.$el=y(o).data(b.DATA_ITEM,s),s.el=o,s.$inner=y(r),s.$anchor=y(l).on("click.foogallery",{self:s},s.onAnchorClick),s.$overlay=y(c),s.$wrap=y(u),s.isPicture?s.$image=y(n):s.$image=y(a),s.$caption=y(d).on("click.foogallery",{self:s},s.onCaptionClick),s.$loader=y(h),!0},append:function(){var e=this;return e.isCreated&&!e.isAttached&&(e.tmpl.trigger("append-item",[e]).isDefaultPrevented()||(e.tmpl.$el.append(e.$el.removeClass(e.cls.hidden)),e.isAttached=!0),e.isAttached&&(e.isLoaded||e.tmpl.items.observe(e),e.tmpl.trigger("appended-item",[e]))),e.isAttached},detach:function(){var e=this;return e.isCreated&&e.isAttached&&(e.tmpl.items.unobserve(e),e.tmpl.trigger("detach-item",[e]).isDefaultPrevented()||(e.$el.detach().removeClass(e.cls.hidden),e.isAttached=!1),e.isAttached||e.tmpl.trigger("detached-item",[e])),!e.isAttached},load:function(){var i=this;return w.promise(i._load)?i._load:i._load=y.Deferred(function(t){return i.isLoaded?t.resolve(i):i.isCreated&&i.isAttached?i.tmpl.trigger("load-item",[i]).isDefaultPrevented()?t.reject("default prevented"):(i.isLoading=!0,i.tmpl.items.unobserve(i),i.$el.removeClass(i.cls.idle).removeClass(i.cls.hidden).removeClass(i.cls.loaded).removeClass(i.cls.error).addClass(i.cls.loading),void i.loadIMG().then(function(){i.isLoading=!1,i.isLoaded=!0,i.$el.removeClass(i.cls.loading).addClass(i.cls.loaded),i.tmpl.trigger("loaded-item",[i]),t.resolve(i)},function(e){i.isLoading=!1,i.isError=!0,i.$el.removeClass(i.cls.loading).addClass(i.cls.error),i.tmpl.trigger("error-item",[i]),t.reject(e)})):t.reject("not created or attached")}).promise()},loadIMG:function(){var r=this;return new y.Deferred(function(e){var t=r.getImageElement();if(!t)return e.reject("Unable to find img element.");var i=t.src,n=t.srcset,{cors:s}=(t.onload=function(){t.onload=t.onerror=null,e.resolve(t)},t.onerror=function(){t.onload=t.onerror=null,w.empty(i)?t.removeAttribute("src"):t.src=i,w.empty(n)?t.removeAttribute("srcset"):t.srcset=n,e.reject(t)},r.isPicture&&r.$image.find("source").each(function(e,t){var i=t.getAttribute(r.tmpl.opt.srcset);w.empty(i)||(t.srcset=i)}),r.tmpl)["opt"];w.string(s)&&null===t.crossOrigin&&b.isCrossOrigin(r.src)&&(t.crossOrigin=s),w.empty(r.srcset)||(t.srcset=r.srcset),t.src=r.src,t.complete&&t.onload()}).promise()},getImageElement:function(){return(this.isPicture?this.$image.find("img"):this.$image).get(0)},createPlaceholder:function(e,t){return w.number(e)&&w.number(t)?"data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22"+e+"%22%20height=%22"+t+"%22%20viewBox=%220%200%20"+e+"%20"+t+"%22%3E%3C/svg%3E":""},getTypeClass:function(){return this.cls.types[this.type]||""},scrollTo:function(e){var t;return this.isAttached&&((t=this.$el.get(0)).scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():t.scrollIntoView("top"===e)),this},updateState:function(){this.tmpl.state.update(this.tmpl.state.get(this))},toJSON:function(){return{type:this.type,id:this.id,productId:this.productId,href:this.href,src:this.src,srcset:this.srcset,width:this.width,height:this.height,alt:this.alt,title:this.title,caption:this.caption,description:this.description,tags:this.tags.slice(),maxCaptionLength:this.maxCaptionLength,maxDescriptionLength:this.maxDescriptionLength,showCaptionTitle:this.showCaptionTitle,showCaptionDescription:this.showCaptionDescription,noLightbox:this.noLightbox,panelHide:this.panelHide,attr:r.extend({},this.attr)}},onAnchorClick:function(e){var t=e.data.self;t.tmpl.trigger("anchor-click-item",[t]).isDefaultPrevented()?e.preventDefault():t.updateState()},onCaptionClick:function(e){var t=e.data.self;!t.tmpl.trigger("caption-click-item",[t]).isDefaultPrevented()&&0<t.$anchor.length&&!y(e.target).is("a[href],:input")&&t.$anchor.get(0).click()}}),b.template.configure("core",{item:{type:"item",id:"",href:"",placeholder:"",src:"",srcset:"",sources:[],width:0,height:0,title:"",alt:"",caption:"",description:"",tags:[],maxCaptionLength:0,maxDescriptionLength:0,showCaptionTitle:!0,showCaptionDescription:!0,noLightbox:!1,panelHide:!1,buttons:[],ribbon:{type:null,text:null},exif:{aperture:null,camera:null,created_timestamp:null,shutter_speed:null,focal_length:null,iso:null,orientation:null},attr:{elem:{},inner:{},anchor:{},image:{},picture:{},caption:{elem:{},inner:{},title:{},description:{}}}}},{item:{elem:"fg-item",inner:"fg-item-inner",exif:"fg-item-exif",anchor:"fg-thumb",overlay:"fg-image-overlay",wrap:"fg-image-wrap",image:"fg-image",loader:"fg-loader",idle:"fg-idle",loading:"fg-loading",loaded:"fg-loaded",error:"fg-error",hidden:"fg-hidden",noLightbox:"fg-no-lightbox",panelHide:"fg-panel-hide",types:{item:"fg-type-unknown"},caption:{elem:"fg-caption",inner:"fg-caption-inner",title:"fg-caption-title",description:"fg-caption-desc",buttons:"fg-caption-buttons",button:"fg-caption-button"}}},{item:{exif:{aperture:"Aperture",camera:"Camera",created_timestamp:"Date",shutter_speed:"Exposure",focal_length:"Focal Length",iso:"ISO",orientation:"Orientation"}}}),b.components.register("item",b.Item)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,(FooGallery.utils.fn,FooGallery.utils.obj),FooGallery.utils.str),function(e){e.Image=e.Item.extend({}),e.template.configure("core",null,{item:{types:{image:"fg-type-image"}}}),e.components.register("image",e.Image)}((FooGallery.$,FooGallery),(FooGallery.utils,FooGallery.utils.is)),function(e,c,u){e.PagingFactory=e.Factory.extend({construct:function(){this.registered={}},register:function(e,t,i,n,s,r,o){t=this._super(e,t,o);return t&&((o=this.registered)[e].ctrl=c.fn(i)?i:null,o[e].opt=c.hash(n)?n:{},o[e].cls=c.hash(s)?s:{},o[e].il8n=c.hash(r)?r:{}),t},type:function(e){return c.hash(e)&&c.hash(e=e.paging)&&c.string(e.type)&&this.contains(e.type)?e.type:null},merge:function(e){e=u.extend({},e);var t=this.type(e),i=this.registered,n=i.default.opt,s=i.default.cls,r=i.default.il8n,o=c.hash(e.paging)?e.paging:{},a=c.hash(e.cls)&&c.hash(e.cls.paging)?u.extend({},e.cls.paging):{},l=c.hash(e.il8n)&&c.hash(e.il8n.paging)?u.extend({},e.il8n.paging):{};return c.hash(e.cls)||(e.cls={}),c.hash(e.il8n)||(e.il8n={}),"default"!==t&&this.contains(t)?(e.paging=u.extend({},n,i[t].opt,o,{type:t}),e.cls=u.extend(e.cls,{paging:s},{paging:i[t].cls},{paging:a}),e.il8n=u.extend(e.il8n,{paging:r},{paging:i[t].il8n},{paging:l})):(e.paging=u.extend({},n,o,{type:t}),e.cls=u.extend(e.cls,{paging:s},{paging:a}),e.il8n=u.extend(e.il8n,{paging:r},{paging:l})),e},hasCtrl:function(e){e=this.registered[e];return c.hash(e)&&c.fn(e.ctrl)},makeCtrl:function(e,t,i,n){e=this.registered[e];return c.hash(e)&&c.fn(e.ctrl)?new e.ctrl(t,i,n):null}}),e.paging=new e.PagingFactory}(FooGallery,FooGallery.utils.is,(FooGallery.utils.fn,FooGallery.utils.obj)),function(t,r,n,l){r.Paging=r.Component.extend({construct:function(e){var t=this;t._super(e),t.opt=t.tmpl.opt.paging,t.cls=t.tmpl.cls.paging,t.il8n=t.tmpl.il8n.paging,t.sel=t.tmpl.sel.paging,t.pushOrReplace=t.opt.pushOrReplace,t.type=t.opt.type,t.theme=t.opt.theme??e.getCSSClass("theme"),t.size=t.opt.size,t.position=t.opt.position,t.scrollToTop=t.opt.scrollToTop,t.current=0,t.total=0,t.ctrls=[],t._pages=[]},init:function(){},fromHash:function(e){e=parseInt(e);return isNaN(e)?null:e},toHash:function(e){return l.number(e)&&0<e?e.toString():null},getState:function(){return this.isValid(this.current)?this.current:null},setState:function(e){this.rebuild();var t=!1;e.item&&!this.contains(e.page,e.item)&&(e.page=this.find(e.item),e.page=0!==e.page?e.page:1,t=!0),this.set(e.page,t,!1,!1)},destroy:function(){var e=this;e._pages.splice(0,e._pages.length),t.each(e.ctrls.splice(0,e.ctrls.length),function(e,t){t.destroy()}),e._super()},build:function(){var e=this,t=e.tmpl.items.available();e.total=0<e.size&&0<t.length?Math.ceil(t.length/e.size):1;for(var i,n,s=0;s<e.total;s++)e._pages.push(t.splice(0,e.size));1<e.total&&r.paging.hasCtrl(e.type)&&("both"!==(i=e.position)&&"top"!==i||(n=r.paging.makeCtrl(e.type,e.tmpl,e,"top")).create()&&(n.append(),e.ctrls.push(n)),"both"!==i&&"bottom"!==i||(n=r.paging.makeCtrl(e.type,e.tmpl,e,"bottom")).create()&&(n.append(),e.ctrls.push(n)))},rebuild:function(){var e=this;e.current=0,e.total=0,e._pages.splice(0,e._pages.length),t.each(e.ctrls.splice(0,e.ctrls.length),function(e,t){t.destroy()}),e.build()},all:function(){return this._pages.slice()},available:function(){return this.get(this.current)},controls:function(i){this.isValid(i)&&t.each(this.ctrls,function(e,t){t.update(i)})},isValid:function(e){return l.number(e)&&0<e&&e<=this.total},number:function(e){return this.isValid(e)?e:0===this.current?1:this.current},create:function(e,t){var i=this,n=(e=i.number(e))-1,s=i._pages[n],t=t?i.tmpl.items.all():i._pages.reduce(function(e,t,i){return i===n?e:e.concat(t)},i.tmpl.items.unavailable());i.current=e,i.tmpl.items.detach(t),i.tmpl.items.create(s,!0)},get:function(e){return this.isValid(e)?(e=this.number(e),this._pages[e-1]):[]},set:function(e,t,i,n){var s=this;if(s.isValid(e)){s.controls(e);var r,o,a=s.number(e);if(a!==s.current)return o=s.current,!s.tmpl.trigger("before-page-change",[s.current,a,e=function(){var e;i=!l.boolean(i)||i,n=!!l.boolean(n)&&n,i&&1===s.current&&!s.tmpl.state.exists()&&(r=s.tmpl.state.get(),s.tmpl.state.update(r,s.pushOrReplace)),s.create(a,n),i&&(r=s.tmpl.state.get(),s.tmpl.state.update(r,s.pushOrReplace)),s.tmpl.trigger("page-change",[s.current,o,n]),s.scrollToTop&&l.boolean(t)&&t&&(0<(e=s.get(s.current)).length&&e[0].scrollTo("top")),s.tmpl.trigger("after-page-change",[s.current,o,n])},n]).isDefaultPrevented()&&(e(),!0)}return!1},find:function(e){for(var t=0,i=this._pages.length;t<i;t++)if(-1!==n.inArray(e,this._pages[t]))return t+1;return 0},contains:function(e,t){e=this.get(e);return-1!==n.inArray(t,e)},first:function(){this.goto(1)},last:function(){this.goto(this._pages.length)},prev:function(){this.goto(this.current-1)},next:function(){this.goto(this.current+1)},goto:function(e){this.set(e,!0)}}),r.PagingControl=r.Component.extend({construct:function(e,t,i){var n=this;n._super(e),n.pages=t,n.position=i,n.$container=null,n._containerExisted=!1,n._placeholderClasses=[]},create:function(){var i=this;return i.$container=t("#"+i.tmpl.id+"_paging-"+i.position),0<i.$container.length?(i._containerExisted=!0,i.$container.removeClass(function(e,t){return i._placeholderClasses=t.match(/(^|\s)fg-ph-\S+/g)||[],i._placeholderClasses.join(" ")}).addClass([i.pages.cls.container,i.pages.theme].join(" "))):i.$container=t("<nav/>",{class:[i.pages.cls.container,i.pages.theme].join(" ")}),!0},destroy:function(){var e=this;e._containerExisted?e.$container.empty().removeClass().addClass(e._placeholderClasses.join(" ")):e.$container.remove(),e.$container=null},append:function(){var e=this;e._containerExisted||("top"===e.position?e.$container.insertBefore(e.tmpl.$el):e.$container.insertAfter(e.tmpl.$el))},update:function(e){}}),r.paging.register("default",r.Paging,null,{type:"none",theme:null,size:30,pushOrReplace:"push",position:"none",scrollToTop:!0},{container:"fg-paging-container"},null,-100)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(l,e,a){e.Dots=e.Paging.extend({}),e.DotsControl=e.PagingControl.extend({construct:function(e,t,i){this._super(e,t,i),this.$list=null,this.$items=null},create:function(){var e=this;if(e._super()){for(var t,i=e.pages.cls,n=e.pages.il8n,s=[],r=l("<ul/>",{class:i.list}),o=0,a=e.pages.total;o<a;o++)s.push(t=e.createItem(o+1,n.page)),r.append(t);return e.$list=r,e.$items=l(l.map(s,function(e){return e.get()})),e.$container.append(r),!0}return!1},destroy:function(){var e=this,t=e.pages.sel;e.$list.find(t.link).off("click.foogallery",e.onLinkClick),e.$list=l(),e.$items=l(),e._super()},update:function(e){this.setSelected(e-1)},setSelected:function(e){var t=this,i=t.pages.cls,s=t.pages.il8n,r=t.pages.sel;t.$items.filter(r.selected).removeClass(i.selected).each(function(e,t){var t=l(t),i=t.data("label"),t=t.find(r.reader);a.string(i)&&0!==t.length&&t.html(i)}),t.$items.eq(e).addClass(i.selected).each(function(e,t){var t=l(t),i=t.find(r.reader),n=i.html();a.string(n)&&0!==i.length&&(t.data("label",n),i.html(s.current))})},createItem:function(e,t,i,n,s){i=a.string(i)?i:e,t=a.string(t)?t:"";var r=this.pages.opt,o=this.pages.cls,i=l("<a/>",{class:o.link,href:"#page-"+e}).html(i).on("click.foogallery",{self:this,page:e},this.onLinkClick),e=(a.empty(t)||i.attr("title",t.replace(/\{PAGE}/g,e).replace(/\{LIMIT}/g,r.limit+"")),s=a.string(s)?s:t,a.empty(s)||i.prepend(l("<span/>",{class:o.reader,text:s.replace(/\{PAGE}/g,"").replace(/\{LIMIT}/g,r.limit+"")})),l("<li/>",{class:o.item}).append(i));return n=a.string(n)?n:"",a.empty(n)||e.addClass(n),e},onLinkClick:function(e){e.preventDefault();var t=e.data.self,e=e.data.page,i=t.pages.sel;l(this).closest(i.item).is(i.disabled)||t.pages.set(e,!0)}}),e.paging.register("dots",e.Dots,e.DotsControl,{type:"dots",position:"both",pushOrReplace:"push"},{list:"fg-dots",item:"fg-dot-item",link:"fg-dot-link",disabled:"fg-disabled",selected:"fg-selected",visible:"fg-visible",reader:"fg-sr-only"},{current:"Current page",page:"Page {PAGE}"})}(FooGallery.$,FooGallery,(FooGallery.utils,FooGallery.utils.is)),function(r,l,c,u,h,d){var p=0;l.Panel=l.Component.extend({construct:function(e,t,i,n){var s=this,r=(s.instanceId=++p,s._super(e),s.opt=h.extend({},s.tmpl.opt.panel,t),s.cls=h.extend({},s.tmpl.cls.panel,i),s.il8n=h.extend({},s.tmpl.il8n.panel,n),s.cls.states);s.cls.states.all=Object.keys(r).map(function(e){return r[e]}).join(" "),s.cls.states.allLoading=[r.idle,r.loading,r.loaded,r.error].join(" "),s.cls.states.allProgress=[r.idle,r.started,r.stopped,r.paused].join(" "),s.sel=c.selectify(s.cls),s.videoSources=u.undef(l.Panel.Video)?[]:l.Panel.Video.sources.load(s),s.buttons=new l.Panel.Buttons(s),s.content=new l.Panel.Content(s),s.info=new l.Panel.Info(s),s.thumbs=new l.Panel.Thumbs(s),s.areas=[s.content,s.info,s.thumbs],l.Panel.Cart&&(s.cart=new l.Panel.Cart(s),s.areas.push(s.cart)),l.Panel.Comments&&(s.comments=new l.Panel.Comments(s),s.areas.push(s.comments));const o=s.areas.filter(e=>e instanceof l.Panel.SideArea&&e.isVisible&&"overlay"===e.opt.group);for(;0<o.length;){const a=o.shift();o.forEach(e=>{e.isTargetingSamePosition(a)&&(e.isVisible=!1,e.button.isPressed=!1)})}s.$el=null,s.el=null,s.isCreated=!1,s.isDestroyed=!1,s.isDestroying=!1,s.isAttached=!1,s.isLoading=!1,s.isLoaded=!1,s.isError=!1,s.isInline=!1,s.isMaximized=!1,s.isFullscreen=!1,s.hasTransition=!u.empty(s.cls.transition[s.opt.transition]),s.currentItem=null,s.prevItem=null,s.nextItem=null,s.lastBreakpoint=null,s.isSmallScreen=!1,s.isMediumScreen=!1,s.isLargeScreen=!1,s.isMobileLayout=!1,s.breakpointClassNames=s.opt.breakpoints.map(function(e){return"fg-"+e.name+" fg-"+e.name+"-width fg-"+e.name+"-height"}).concat(["fg-landscape","fg-portrait"]).join(" "),s.robserver=new ResizeObserver(d.throttle(function(e){s.destroying||s.destroyed||e.forEach(function(e){e.target===s.el&&(e=c.getResizeObserverSize(e),s.onResize(e.width,e.height))})},50)),s.__media={},s.__loading=null,s.tmpl.destroying||s.tmpl.destroyed||s.tmpl.on({"after-filter-change":s.onItemsChanged},s)},isVisible:function(e){return e instanceof l.Item&&!e.noLightbox&&!e.panelHide},onItemsChanged:function(e){var t=this;t.thumbs.isCreated&&t.tmpl.initialized&&(t.thumbs.doCreateThumbs(t.tmpl.items.available(t.isVisible)),t.isAttached&&t.load(t.tmpl.items.first(t.isVisible)))},create:function(){var e=this;return e.isCreated||(e.trigger("create").isDefaultPrevented()||(e.isCreated=e.doCreate()),e.isCreated&&e.trigger("created")),e.isCreated},doCreate:function(){var t=this;return t.$el=t.createElem(),t.el=t.$el.get(0),t.tmpl.opt.protected&&(t.el.oncontextmenu=function(e){return e.preventDefault(),!1}),t.opt.keyboard&&t.$el.attr("tabindex",-1).on("keydown.foogallery",{self:t},t.onKeyDown),t.areas.forEach(function(e){e.appendTo(t.$el)}),t.buttons.appendTo(t.$el),!0},createElem:function(){var e=this,t=e.cls.transition[e.opt.transition]||"",t=(e.hasTransition=!u.empty(t),[e.cls.elem,t,e.cls.buttons.portrait[e.opt.buttonsPortrait]||"",e.cls.buttons.landscape[e.opt.buttonsLandscape]||"",u.string(e.opt.theme)?e.opt.theme:e.tmpl.getCSSClass("theme","fg-dark"),u.string(e.opt.loadingIcon)?e.opt.loadingIcon:e.tmpl.getCSSClass("loadingIcon"),u.string(e.opt.hoverIcon)?e.opt.hoverIcon:e.tmpl.getCSSClass("hoverIcon"),u.string(e.opt.videoIcon)?e.opt.videoIcon:e.tmpl.getCSSClass("videoIcon"),u.boolean(e.opt.stickyVideoIcon)&&e.opt.stickyVideoIcon?e.cls.stickyVideoIcon:e.tmpl.getCSSClass("stickyVideoIcon"),u.string(e.opt.insetShadow)?e.opt.insetShadow:e.tmpl.getCSSClass("insetShadow"),u.string(e.opt.filter)?e.opt.filter:e.tmpl.getCSSClass("filter"),u.string(e.opt.hoverColor)?e.opt.hoverColor:e.tmpl.getCSSClass("hoverColor"),u.boolean(e.opt.hoverScale)&&e.opt.hoverScale?e.cls.hoverScale:e.tmpl.getCSSClass("hoverScale"),u.string(e.opt.button)?e.opt.button:"",u.string(e.opt.highlight)?e.opt.highlight:"",e.opt.stackSideAreas?e.cls.stackSideAreas:"",e.opt.preserveButtonSpace?e.cls.preserveButtonSpace:"",e.opt.fitMedia?e.cls.fitMedia:"",e.opt.noMobile?e.cls.noMobile:"",e.opt.hoverButtons?e.cls.hoverButtons:"",e.opt.classNames]);return r("<div/>").addClass(t.join(" "))},destroy:function(){var i=this,e=i._super.bind(i);return i.isDestroyed?d.resolved:(i.isDestroying=!0,r.Deferred(function(t){var e;i.isLoading&&u.promise(i.__loading)?i.__loading.always(function(){var e=i.trigger("destroy");i.isDestroying=!1,e.isDefaultPrevented()||(i.isDestroyed=i.doDestroy()),i.isDestroyed&&i.trigger("destroyed"),t.resolve()}):(e=i.trigger("destroy"),i.isDestroying=!1,e.isDefaultPrevented()||(i.isDestroyed=i.doDestroy()),i.isDestroyed&&i.trigger("destroyed"),t.resolve())}).then(function(){e()}).promise())},doDestroy:function(){var e=this;return e.buttons.destroy(),e.areas.reverse(),e.areas.forEach(function(e){e.destroy()}),e.detach(),e.isCreated&&e.$el.remove(),!0},appendTo:function(e){var t=this;return!t.isCreated&&!t.create()||t.isAttached||(t.trigger("append",[e]).isDefaultPrevented()||(t.isAttached=t.doAppendTo(e)),t.isAttached&&t.trigger("appended",[e])),t.isAttached},doAppendTo:function(e){var t=this,e=r(e),i=t.buttons.get("maximize");return t.isInline=!e.is("body"),t.$el.appendTo(e),i.set(!t.isInline,t.isInline&&i.isEnabled()),t.robserver.observe(t.el),t.areas.forEach(function(e){e.listen()}),null!==t.el.parentNode},detach:function(){var e=this;return e.isCreated&&e.isAttached&&(e.trigger("detach").isDefaultPrevented()||(e.isAttached=!e.doDetach()),e.isAttached||e.trigger("detached")),!e.isAttached},doDetach:function(){return this.robserver.unobserve(this.el),this.areas.forEach(function(e){e.stopListening()}),this.$el.detach(),!0},resize:function(){var e=this;e.$el.removeClass(e.breakpointClassNames).addClass(e.lastBreakpoint),e.isMediumScreen=e.$el.hasClass("fg-medium"),e.isLargeScreen=e.$el.hasClass("fg-large"),e.isXLargeScreen=e.$el.hasClass("fg-x-large"),e.isSmallScreen=!e.isMediumScreen&&!e.isLargeScreen&&!e.isXLargeScreen,e.isMobileLayout=e.isSmallScreen&&!e.opt.noMobile,e.areas.forEach(function(e){e.resize()}),e.buttons.resize()},onResize:function(e,t){e=this.getBreakpoint(e,t);this.lastBreakpoint!==e&&(this.lastBreakpoint=e,this.resize())},getBreakpoint:function(n,s){var r=[];return this.opt.breakpoints.forEach(function(e){var t=e.width<=n,i=e.height<=s;t&&i&&r.push("fg-"+e.name),t&&r.push("fg-"+e.name+"-width"),i&&r.push("fg-"+e.name+"-height")}),r.push(s<n?"fg-landscape":"fg-portrait"),0<r.length?r.join(" "):null},getMedia:function(e){return e instanceof l.Item?this.__media.hasOwnProperty(e.id)?this.__media[e.id]:this.__media[e.id]=l.Panel.media.make(e.type,this,e):null},getItem:function(e){var t=this,i=e;return(i=i instanceof l.Item?i:t.currentItem)instanceof l.Item||(i=t.tmpl.items.first(t.isVisible)),e instanceof l.Item&&!t.isVisible(e)&&((i=t.tmpl.items.next(e,t.isVisible,t.opt.loop))instanceof l.Item||(i=t.tmpl.items.prev(e,t.isVisible,t.opt.loop))),i},load:function(i){var n=this;return(i=n.getItem(i))instanceof l.Item?i===n.currentItem?d.reject("item is currently loaded"):(n.isLoading=!0,n.isLoaded=!1,n.isError=!1,n.__loading=r.Deferred(function(e){var t;n.isCreated&&n.isAttached?(t=n.getMedia(i))instanceof l.Panel.Media?n.trigger("load",[t,i]).isDefaultPrevented()?e.rejectWith("default prevented"):(n.currentItem=i,n.prevItem=n.tmpl.items.prev(i,n.isVisible,n.opt.loop),n.nextItem=n.tmpl.items.next(i,n.isVisible,n.opt.loop),n.doLoad(t).then(e.resolve).catch(e.reject)):e.rejectWith("no media to load"):e.rejectWith("not created or attached")}).always(function(){n.isLoading=!1}).then(function(){n.isLoaded=!0,n.trigger("loaded",[i]),i.updateState()}).catch(function(){n.isError=!0,n.trigger("error",[i])}).promise()):d.reject("no item to load")},doLoad:function(t){var e=this,i=[];return e.buttons.beforeLoad(t),e.areas.forEach(function(e){i.push(e.load(t))}),r.when.apply(r,i).then(function(){e.buttons.afterLoad(t)}).promise()},open:function(e,t){var i=this;return e=i.getItem(e),i.trigger("open",[e,t]).isDefaultPrevented()?d.reject("default prevented"):i.doOpen(e,t).then(function(){i.trigger("opened",[e,t])})},doOpen:function(t,i){var n=this;return r.Deferred(function(e){t instanceof l.Item?(i=u.empty(i)?"body":i,n.isAttached||n.appendTo(i),n.isAttached?n.load(t).then(e.resolve).catch(e.reject):e.rejectWith("not attached")):e.rejectWith("item not instanceof FooGallery.Item")}).promise()},next:function(){var e=this,t=e.currentItem,i=e.nextItem;return i instanceof l.Item?e.trigger("next",[t,i]).isDefaultPrevented()?d.reject("default prevented"):e.doNext(i).then(function(){e.trigger("after-next",[t,i])}):d.reject("no next item")},doNext:function(e){return this.load(e)},prev:function(){var e=this,t=e.currentItem,i=e.prevItem;return i instanceof l.Item?e.trigger("prev",[t,i]).isDefaultPrevented()?d.reject("default prevented"):e.doPrev(i).then(function(){e.trigger("after-prev",[t,i])}):d.reject("no prev item")},doPrev:function(e){return this.load(e)},close:function(e){var t=this;return t.isClosing?r.Deferred().reject():t.trigger("close",[t.currentItem]).isDefaultPrevented()?d.reject("default prevented"):t.doClose(e).then(function(){t.trigger("closed")})},doClose:function(i,e){e=!u.boolean(e)||e;var n=this;return n.isClosing=!0,r.Deferred(function(e){n.content.close(i).then(function(){var t=[];n.areas.forEach(function(e){e!==n.content&&t.push(e.close(i))}),r.when.apply(r,t).then(e.resolve).catch(e.reject)})}).always(function(){n.isClosing=!1,n.currentItem=null,n.buttons.close(),e&&n.detach(),n.tmpl.state.clear()}).promise()},trapFocus:function(){this.isCreated&&this.$el.on("keydown",{self:this},this.onTrapFocusKeydown)},releaseFocus:function(){this.isCreated&&this.$el.off("keydown",this.onTrapFocusKeydown)},onTrapFocusKeydown:function(e){var t,i,n,s;9===e.keyCode&&(i=e.data.self,(s=(t=r(e.target)).parents("[role=dialog]")).length&&(i=(s=s.find(i.opt.focusable.include).not(i.opt.focusable.exclude)).first(),s=s.last(),n=e.shiftKey?i:s,s=e.shiftKey?s:i,n.length&&t.is(n)&&(e.preventDefault(),s.trigger("focus"))))},onKeyDown:function(e){var t=e.data.self;switch(e.which){case 39:case 40:t.next();break;case 37:case 38:t.prev();break;case 27:t.isFullscreen?t.buttons.get("fullscreen").exit():t.isMaximized&&t.isInline?t.buttons.get("maximize").exit():t.opt.buttons.close&&t.close()}}}),l.template.configure("core",{panel:{classNames:"",noMobile:!1,hoverButtons:!1,icons:"default",transition:"none",theme:null,button:null,highlight:null,loadingIcon:null,hoverIcon:null,videoIcon:null,stickyVideoIcon:null,hoverColor:null,hoverScale:null,insetShadow:null,filter:null,loop:!0,autoProgress:0,autoProgressStart:!0,fitMedia:!1,keyboard:!0,noScrollbars:!0,swipe:!0,stackSideAreas:!0,preserveButtonSpace:!0,buttonsPortrait:"top",buttonsLandscape:"right",admin:!1,info:"bottom",infoVisible:!1,infoOverlay:!0,infoAutoHide:!0,infoAlign:"default",exif:"none",cart:"none",cartAutoHide:!0,cartVisible:!1,cartOriginal:!1,cartOverlay:!0,cartAjax:null,cartNonce:null,cartTimeout:null,thumbs:"none",thumbsVisible:!0,thumbsCaptions:!0,thumbsCaptionsAlign:"default",thumbsSmall:!1,thumbsBestFit:!0,focusable:{include:"a[href], area[href], input, select, textarea, button, iframe, object, embed, [tabindex], [contenteditable]",exclude:"[tabindex=-1], [disabled], :hidden"},buttons:{prev:!0,next:!0,close:!0,maximize:!0,fullscreen:!0,autoProgress:!0,info:!0,thumbs:!1,cart:!0,download:!1},breakpoints:[{name:"medium",width:800,height:800},{name:"large",width:1024,height:1024},{name:"x-large",width:1280,height:1280}]}},{panel:{elem:"fg-panel",maximized:"fg-panel-maximized",fullscreen:"fg-panel-fullscreen",fitMedia:"fg-panel-fit-media",noScrollbars:"fg-panel-no-scroll",stackSideAreas:"fg-panel-area-stack",preserveButtonSpace:"fg-panel-preserve-button-space",hoverButtons:"fg-panel-hover-buttons",stickyVideoIcon:"fg-video-sticky",hoverScale:"fg-hover-scale",noMobile:"fg-panel-no-mobile",loader:"fg-loader",states:{idle:"fg-idle",loading:"fg-loading",loaded:"fg-loaded",error:"fg-error",visible:"fg-visible",reverse:"fg-reverse",toggled:"fg-toggled",selected:"fg-selected",disabled:"fg-disabled",hidden:"fg-hidden",started:"fg-started",stopped:"fg-stopped",paused:"fg-paused",noTransitions:"fg-no-transitions"},buttons:{portrait:{top:"fg-panel-buttons-top",bottom:"fg-panel-buttons-bottom"},landscape:{right:"fg-panel-buttons-right",left:"fg-panel-buttons-left"},container:"fg-panel-buttons",prev:"fg-panel-button fg-panel-button-prev",next:"fg-panel-button fg-panel-button-next",autoProgress:"fg-panel-button fg-panel-button-progress",close:"fg-panel-button fg-panel-button-close",fullscreen:"fg-panel-button fg-panel-button-fullscreen",maximize:"fg-panel-button fg-panel-button-maximize",info:"fg-panel-button fg-panel-button-info",thumbs:"fg-panel-button fg-panel-button-thumbs",cart:"fg-panel-button fg-panel-button-cart",download:"fg-panel-button fg-panel-button-download"},transition:{fade:"fg-panel-fade",horizontal:"fg-panel-horizontal",vertical:"fg-panel-vertical"},area:{elem:"fg-panel-area",inner:"fg-panel-area-inner"},content:{buttons:"fg-panel-content-buttons"},sideArea:{toggle:"fg-panel-area-toggle",button:"fg-panel-area-button",visible:"fg-panel-area-visible",overlay:"fg-panel-area-overlay",position:{top:"fg-panel-area-top",right:"fg-panel-area-right",bottom:"fg-panel-area-bottom",left:"fg-panel-area-left"}},info:{overlay:"fg-panel-info-overlay",align:{left:"fg-panel-media-caption-left",center:"fg-panel-media-caption-center",right:"fg-panel-media-caption-right",justified:"fg-panel-media-caption-justified"}},cart:{original:"fg-panel-cart-original"},thumbs:{prev:"fg-panel-thumbs-button fg-panel-thumbs-prev",next:"fg-panel-thumbs-button fg-panel-thumbs-next",viewport:"fg-panel-thumbs-viewport",stage:"fg-panel-thumbs-stage",noCaptions:"fg-panel-thumbs-no-captions",small:"fg-panel-thumbs-small",spacer:"fg-panel-thumb-spacer",thumb:{elem:"fg-panel-thumb",media:"fg-panel-thumb-media",overlay:"fg-panel-thumb-overlay",wrap:"fg-panel-thumb-wrap",image:"fg-panel-thumb-image",caption:"fg-panel-thumb-caption",title:"fg-panel-thumb-title",description:"fg-panel-thumb-description"},align:{left:"fg-panel-thumb-caption-left",center:"fg-panel-thumb-caption-center",right:"fg-panel-thumb-caption-right",justified:"fg-panel-thumb-caption-justified"}}}},{panel:{buttons:{prev:"Previous Media",next:"Next Media",close:"Close Modal",maximize:"Toggle Maximize",fullscreen:"Toggle Fullscreen",autoProgress:"Auto Progress",info:"Toggle Information",thumbs:"Toggle Thumbnails",cart:"Toggle Cart",download:"Download Media"}}})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj,FooGallery.utils.fn,FooGallery.utils.transition),function(e,s,t,r){s.Panel.Buttons=t.Class.extend({construct:function(e){this.panel=e,this.opt=e.opt.buttons,this.cls=e.cls.buttons,this.sel=e.sel.buttons,this.il8n=e.il8n.buttons,this.$el=null,this.isCreated=!1,this.isAttached=!1,this.__registered=[],this.registerCore()},registerCore:function(){this.register(new s.Panel.Button(this.panel,"prev",{icon:"arrow-left",label:this.il8n.prev,click:this.panel.prev.bind(this.panel),beforeLoad:function(e){this.disable(null==this.panel.prevItem)}}),10),this.register(new s.Panel.Button(this.panel,"next",{icon:"arrow-right",label:this.il8n.next,click:this.panel.next.bind(this.panel),beforeLoad:function(e){this.disable(null==this.panel.nextItem)}}),20),this.register(new s.Panel.AutoProgress(this.panel),30),this.register(new s.Panel.Download(this.panel),170),this.register(new s.Panel.Maximize(this.panel),180),this.register(new s.Panel.Fullscreen(this.panel),190),this.register(new s.Panel.Button(this.panel,"close",{icon:"close",label:this.il8n.close,click:this.panel.close.bind(this.panel)}),200)},register:function(e,t){return e instanceof s.Panel.Button?this.__registered.push({name:e.name,button:e,priority:r.number(t)?t:99})-1:-1},get:function(e){for(var t=null,i=0,n=this.__registered.length;i<n;i++)if(this.__registered[i].name===e){t=this.__registered[i].button;break}return t},each:function(t,e){var i=this;e&&i.__registered.sort(function(e,t){return e.priority-t.priority}),i.__registered.forEach(function(e){t.call(i,e.button)})},toggle:function(e,t){e=this.get(e);null!=e&&e.toggle(t)},disable:function(e,t){e=this.get(e);null!=e&&e.disable(t)},press:function(e,t){var i=this,n=i.get(e);t&&r.string(n.groupName)&&i.each(function(e){n!==e&&e instanceof s.Panel.SideAreaButton&&n.groupName===e.groupName&&(i.panel.isSmallScreen||e.isTargetingSamePosition(n))&&e.area.toggle(!1)}),n.press(t)},destroy:function(){var e=this;return e.panel.trigger("buttons-destroy",[e]).isDefaultPrevented()||(e.isCreated=!e.doDestroy()),e.isCreated||e.panel.trigger("buttons-destroyed",[e]),!e.isCreated},doDestroy:function(){return this.each(function(e){e.destroy()}),this.isCreated&&(this.detach(),this.$el.remove()),!0},create:function(){var e=this;return e.isCreated||(e.panel.trigger("buttons-create",[e]).isDefaultPrevented()||(e.isCreated=e.doCreate()),e.isCreated&&e.panel.trigger("buttons-created",[e])),e.isCreated},doCreate:function(){var t=this;return t.$el=e("<div/>").addClass(t.cls.container),t.each(function(e){e.appendTo(t.$el)},!0),!0},appendTo:function(e){var t=this;return t.isCreated||t.create(),t.isCreated&&!t.isAttached&&(t.panel.trigger("buttons-append",[t,e]).isDefaultPrevented()||(t.isAttached=t.doAppendTo(e)),t.isAttached&&t.panel.trigger("buttons-appended",[t,e])),t.isAttached},doAppendTo:function(e){return this.$el.appendTo(e),0<this.$el.parent().length},detach:function(){var e=this;return e.isCreated&&e.isAttached&&(e.panel.trigger("buttons-detach",[e]).isDefaultPrevented()||(e.isAttached=!e.doDetach()),e.isAttached||e.panel.trigger("buttons-detached",[e])),!e.isAttached},doDetach:function(){return this.$el.detach(),!0},beforeLoad:function(t){this.each(function(e){e.beforeLoad(t)})},afterLoad:function(t){this.each(function(e){e.afterLoad(t)})},close:function(){this.each(function(e){e.close()})},resize:function(){const e=this.get("prev"),t=this.get("next");var i=this.panel.isMobileLayout?this.$el:this.panel.content.$buttons;t&&t.prependTo(i),e&&e.prependTo(i),this.each(function(e){e.resize()})}})}(FooGallery.$,FooGallery,(FooGallery.icons,FooGallery.utils),FooGallery.utils.is),function(n,e,i,t,s,r){e.Panel.Button=t.Class.extend({construct:function(e,t,i){this.panel=e,this.name=t,this.opt=r.extend({icon:null,label:null,visible:!!e.opt.buttons[t],disabled:!1,toggle:!1,pressed:!1,group:null,click:n.noop,beforeLoad:n.noop,afterLoad:n.noop,close:n.noop,resize:n.noop},i),this.cls={elem:e.cls.buttons[t],states:e.cls.states},this.$el=null,this.groupName=this.opt.group,this.isVisible=this.opt.visible,this.isDisabled=this.opt.disabled,this.isToggle=this.opt.toggle,this.isPressed=this.opt.pressed,this.isCreated=!1,this.isAttached=!1},isEnabled:function(){return this.panel.opt.buttons.hasOwnProperty(this.name)&&this.panel.opt.buttons[this.name]},create:function(){var e,t=this;return t.isCreated||(t.$el=n("<button/>",{type:"button","aria-label":t.opt.label,"aria-disabled":t.isDisabled,"aria-hidden":!t.isVisible}).addClass(t.cls.elem).on("click.foogallery",{self:t},t.onButtonClick),s.string(t.opt.icon)?t.$el.append(i.get(t.opt.icon,t.panel.opt.icons)):s.array(t.opt.icon)?t.opt.icon.forEach(function(e){t.$el.append(i.get(e,t.panel.opt.icons))}):s.fn(t.opt.icon)&&t.$el.append(t.opt.icon.call(this)),t.isCreated=!0,e=t.isEnabled(),t.toggle(e),t.disable(!e),t.isToggle&&t.press(t.isPressed)),t.isCreated},destroy:function(){return this.isCreated&&(this.$el.off("click.foogallery").remove(),this.isCreated=!1),!this.isCreated},appendTo:function(e){return this.isAttached&&this.detach(),!this.isCreated&&!this.create()||this.isAttached||(this.$el.appendTo(e),this.isAttached=!0),this.isAttached},prependTo:function(e){return this.isAttached&&this.detach(),!this.isCreated&&!this.create()||this.isAttached||(this.$el.prependTo(e),this.isAttached=!0),this.isAttached},detach:function(){return this.isCreated&&this.isAttached&&(this.$el.detach(),this.isAttached=!1),this.isAttached},toggle:function(e){this.isCreated&&(this.isVisible=s.boolean(e)?e:!this.isVisible,this.$el.toggleClass(this.cls.states.hidden,!this.isVisible).attr("aria-hidden",!this.isVisible))},disable:function(e){this.isCreated&&(this.isDisabled=s.boolean(e)?e:!this.isDisabled,this.$el.toggleClass(this.cls.states.disabled,this.isDisabled).attr({"aria-disabled":this.isDisabled,disabled:this.isDisabled}))},press:function(e){this.isCreated&&(this.isPressed=e,this.$el.attr("aria-pressed",this.isPressed))},beforeLoad:function(e){this.opt.beforeLoad.call(this,e)},afterLoad:function(e){this.opt.afterLoad.call(this,e)},close:function(){this.opt.close.call(this)},click:function(){this.opt.click.call(this)},resize:function(){this.opt.resize.call(this)},onButtonClick:function(e){e.preventDefault(),e.data.self.click()}})}(FooGallery.$,FooGallery,FooGallery.icons,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj),function(t,n){t.Panel.SideAreaButton=t.Panel.Button.extend({construct:function(e){this._super(e.panel,e.name,{icon:e.opt.icon,label:e.opt.label,autoHideArea:e.opt.autoHide,click:e.toggle.bind(e),toggle:!0,pressed:e.opt.visible,group:e.opt.group}),this.area=e,this.__isVisible=null,this.__autoHide=null},beforeLoad:function(e){var t=this.area.isEnabled(),i=t&&this.area.canLoad(e);i||null!=this.__isVisible?i&&n.boolean(this.__isVisible)&&(this.area.toggle(this.__isVisible),this.__isVisible=null):(this.__isVisible=this.area.isVisible,this.area.toggle(!1)),t?this.disable(!i):this.toggle(i),this.checkAutoHide(t,i),this.opt.beforeLoad.call(this,e)},checkAutoHide:function(e,t){e&&t&&!0===this.opt.autoHideArea&&(null==this.__autoHide&&this.panel.isSmallScreen?(this.__autoHide=this.area.isVisible,this.area.toggle(!1),this.area.button.toggle(!0)):n.boolean(this.__autoHide)&&!this.panel.isSmallScreen&&(this.area.button.toggle(this.area.button.isEnabled()&&this.area.opt.toggle),this.area.toggle(this.__autoHide),this.__autoHide=null))},isTargetingSamePosition:function(e){return e instanceof t.Panel.SideAreaButton&&e.area.isTargetingSamePosition(this.area)},resize:function(){var e=this.area.isEnabled(),t=e&&this.area.canLoad(this.area.currentMedia);this.checkAutoHide(e,t)}})}((FooGallery.$,FooGallery),FooGallery.utils.is),function(e,i){e.Panel.AutoProgress=e.Panel.Button.extend({construct:function(e){var t=this;t.__stopped=!e.opt.autoProgressStart,t.__timer=new i.Timer,t._super(e,"autoProgress",{icon:"auto-progress",label:e.il8n.buttons.autoProgress}),t.$icon=null,t.$circle=null,t.circumference=0},isEnabled:function(){return this._super()&&0<this.panel.opt.autoProgress},create:function(){var e;return this._super()&&(this.$icon=this.$el.find("svg"),this.$circle=this.$icon.find("circle"),e=parseFloat(this.$circle.attr("r")),this.circumference=2*e*Math.PI,this.$circle.css({"stroke-dasharray":this.circumference+" "+this.circumference,"stroke-dashoffset":this.circumference+""}),this.__timer.on({"start resume":this.onStartOrResume,pause:this.onPause,stop:this.onStop,tick:this.onTick,"complete reset":this.onCompleteOrReset,complete:this.onComplete},this)),this.isCreated},close:function(){this.__timer.pause(),this._super()},destroy:function(){return this.__timer.destroy(),this._super()},beforeLoad:function(e){this.isEnabled()&&this.__timer.reset(),this._super(e)},afterLoad:function(e){this.isEnabled()&&(this.__timer.countdown(this.panel.opt.autoProgress),this.__stopped&&this.__timer.pause()),this._super(e)},click:function(){this.__timer.isRunning?(this.__stopped=!0,this.__timer.pause()):this.__timer.canResume?(this.__stopped=!1,this.__timer.resume()):(this.__stopped=!1,this.__timer.restart()),this._super()},onStartOrResume:function(){this.$icon.removeClass(this.cls.states.allProgress).addClass(this.cls.states.started)},onPause:function(){this.$icon.removeClass(this.cls.states.allProgress).addClass(this.cls.states.paused)},onStop:function(){this.$icon.removeClass(this.cls.states.allProgress).addClass(this.cls.states.stopped)},onTick:function(e,t,i){this.$circle.css("stroke-dashoffset",this.circumference-t/i*100/100*this.circumference)},onCompleteOrReset:function(){this.$icon.removeClass(this.cls.states.allProgress)},onComplete:function(){this.panel.next()}})}((FooGallery.$,FooGallery),FooGallery.utils),function(i,e){i.fullscreen=new e.FullscreenAPI,i.Panel.Fullscreen=i.Panel.Button.extend({construct:function(e){this._super(e,"fullscreen",{icon:["expand","shrink"],label:e.il8n.buttons.fullscreen,toggle:!0})},isEnabled:function(){return this._super()&&i.fullscreen.supported},click:function(){var e=this,t=e.panel.el;i.fullscreen.toggle(t).then(function(){i.fullscreen.element()===t?(i.fullscreen.on("change error",e.onFullscreenChange,e),e.enter()):(i.fullscreen.off("change error",e.onFullscreenChange,e),e.exit())},function(e){console.debug("Error toggling fullscreen on element.",e,t)}),e._super()},onFullscreenChange:function(){i.fullscreen.element()!==this.panel.el&&this.exit()},enter:function(){this.panel.isFullscreen||(this.panel.isFullscreen=!0,this.panel.$el.addClass(this.panel.cls.fullscreen),this.panel.isMaximized||(this.panel.$el.attr({role:"dialog","aria-modal":!0}).trigger("focus"),this.panel.trapFocus()),this.panel.buttons.press("fullscreen",!0),this.panel.buttons.toggle("maximize",!1))},exit:function(){this.panel.isFullscreen&&(this.panel.$el.removeClass(this.panel.cls.fullscreen),this.panel.isMaximized||(this.panel.$el.attr({role:null,"aria-modal":null}).trigger("focus"),this.panel.releaseFocus()),this.panel.buttons.press("fullscreen",!1),this.panel.buttons.toggle("maximize",this.panel.isInline&&this.panel.buttons.opt.maximize),this.panel.isFullscreen=!1)}})}((FooGallery.$,FooGallery),FooGallery.utils),function(t,e,i){e.Panel.Maximize=e.Panel.Button.extend({construct:function(e){this._super(e,"maximize",{icon:"maximize",label:e.il8n.buttons.maximize,toggle:!0}),this.scrollPosition=[],this.$placeholder=t("<span/>")},click:function(){this.set(!this.panel.isMaximized),this._super()},close:function(){this.exit(),this._super()},set:function(e,t){e?this.enter():this.exit(),t=i.boolean(t)?t:this.isVisible,this.toggle(t)},enter:function(){this.panel.isMaximized||(this.panel.isMaximized=!0,this.$placeholder.insertAfter(this.panel.$el),this.panel.$el.appendTo("body").addClass(this.panel.cls.maximized).attr({role:"dialog","aria-modal":!0}).trigger("focus"),this.panel.buttons.press("maximize",!0),this.panel.trapFocus(),this.panel.opt.noScrollbars&&(this.scrollPosition=[window.scrollX,window.scrollY],t("html").addClass(this.panel.cls.noScrollbars)))},exit:function(){this.panel.isMaximized&&(this.panel.isMaximized=!1,this.panel.$el.removeClass(this.panel.cls.maximized).attr({role:null,"aria-modal":null}).insertBefore(this.$placeholder),this.panel.isInline&&this.panel.$el.trigger("focus"),this.$placeholder.detach(),this.panel.buttons.press("maximize",!1),this.panel.releaseFocus(),this.panel.opt.noScrollbars&&(t("html").removeClass(this.panel.cls.noScrollbars).prop("clientWidth"),i.array(this.scrollPosition)&&2===this.scrollPosition.length&&window.scrollTo(this.scrollPosition[0],this.scrollPosition[1]),this.scrollPosition=[]))}})}(FooGallery.$,FooGallery,FooGallery.utils.is),function(t,i){t.Panel.Download=t.Panel.Button.extend({construct:function(e){this._super(e,"download",{icon:"download",label:e.il8n.buttons.download,toggle:!1}),this.downloadable=["image"]},beforeLoad:function(e){this._super(e),this.isEnabled()&&this.toggle(this.downloadable.includes(e?.item?.type))},click:function(){this._super();var e=this.panel.currentItem;e instanceof t.Item&&i.string(e.download)&&(this.disable(!0),t.downloadImage(e.download).catch(e=>console.error(e)).finally(()=>this.disable(!1)))}})}((FooGallery.$,FooGallery),FooGallery.utils.is),function(e,o,s,n,r){o.Panel.Area=s.Class.extend({construct:function(e,t,i,n){this.panel=e,this.name=t,this.opt=r.extend({waitForUnload:!0},i),this.cls=r.extend({elem:this.__cls(e.cls.area.elem,t,!0),inner:this.__cls(e.cls.area.inner,t,!0)},n),this.sel=s.selectify(this.cls),this.currentMedia=null,this.$el=null,this.$inner=null,this.isCreated=!1,this.isAttached=!1},__cls:function(e,t,i){t=e.replace(/-area($|-)/,"-"+t+"$1");return i?[e,t].join(" "):t},create:function(){var e=this;return e.isCreated||(e.panel.trigger("area-create",[e]).isDefaultPrevented()||(e.isCreated=e.doCreate()),e.isCreated&&e.panel.trigger("area-created",[e])),e.isCreated},doCreate:function(){return this.$el=e("<div/>").addClass(this.cls.elem),this.$inner=e("<div/>").addClass(this.cls.inner).appendTo(this.$el),!0},destroy:function(){var e=this;return e.isCreated&&(e.panel.trigger("area-destroy",[e]).isDefaultPrevented()||(e.isCreated=!e.doDestroy()),e.isCreated||e.panel.trigger("area-destroyed",[e])),!e.isCreated},doDestroy:function(){return this.currentMedia instanceof o.Panel.Media&&this.currentMedia.detach(),this.$el.remove(),!0},appendTo:function(e){var t=this;return t.isCreated||t.create(),t.isCreated&&!t.isAttached&&(t.panel.trigger("area-append",[t,e]).isDefaultPrevented()||(t.isAttached=t.doAppendTo(e)),t.isAttached&&t.panel.trigger("area-appended",[t,e])),t.isAttached},doAppendTo:function(e){return this.$el.appendTo(e),0<this.$el.parent().length},detach:function(){var e=this;return e.isCreated&&e.isAttached&&(e.panel.trigger("area-detach",[e]).isDefaultPrevented()||(e.isAttached=!e.doDetach()),e.isAttached||e.panel.trigger("area-detached",[e])),!e.isAttached},doDetach:function(){return this.$el.detach(),!0},load:function(s){var r=this;return s instanceof o.Panel.Media?e.Deferred(function(e){var t,i,n=r.shouldReverseTransition(r.currentMedia,s);r.panel.trigger("area-load",[r,s,n]).isDefaultPrevented()?e.rejectWith("default prevented"):(t=r.currentMedia instanceof o.Panel.Media,i=r.currentMedia,(r.opt.waitForUnload&&t?(r.panel.trigger("area-unload",[r,i]),r.doUnload(i,n).then(function(){r.panel.trigger("area-unloaded",[r,i]),r.currentMedia=s,r.panel.trigger("area-load",[r,s]),r.doLoad(s,n).then(e.resolve).catch(e.reject)})):(t&&(r.panel.trigger("area-unload",[r,i]),r.doUnload(i,n).then(function(){r.panel.trigger("area-unloaded",[r,i])})),r.currentMedia=s,r.panel.trigger("area-load",[r,s]),r.doLoad(s,n).then(e.resolve))).catch(e.reject))}).then(function(){r.panel.trigger("area-loaded",[r,s])}).catch(function(){r.panel.trigger("area-error",[r,s])}).promise():n.reject("unable to load media")},doLoad:function(e,t){return n.resolved},doUnload:function(e,t){return n.resolved},close:function(e){var t=this;if(t.currentMedia instanceof o.Panel.Media){var i=t.currentMedia;if(!e)return t.panel.trigger("area-unload",[t,i]),t.doUnload(i,!1).then(function(){t.panel.trigger("area-unloaded",[t,i]),t.currentMedia=null});t.panel.trigger("area-unload",[t,i]),t.doUnload(i,!1).then(function(){t.panel.trigger("area-unloaded",[t,i])}),t.currentMedia=null}return n.resolved},shouldReverseTransition:function(e,t){var i,n;return!(e instanceof o.Panel.Media&&t instanceof o.Panel.Media)||(i=e.item.index<t.item.index,(n=this.panel.tmpl.items.last(this.panel.isVisible))instanceof o.Item&&(0===t.item.index&&e.item.index===n.index||t.item.index===n.index&&0===e.item.index)?!i:i)},listen:function(){},stopListening:function(){},resize:function(){}})}(FooGallery.$,FooGallery,FooGallery.utils,(FooGallery.utils.is,FooGallery.utils.fn),FooGallery.utils.obj,FooGallery.utils.str),function(o,t,i,a){t.Panel.Content=t.Panel.Area.extend({construct:function(e){this._super(e,"content",{waitForUnload:!1},e.cls.content),this.$buttons=null,this.robserver=null},doCreate:function(){var e=this;return!!e._super()&&(e.$buttons=o("<div/>").addClass(e.cls.buttons).appendTo(e.$el),e.panel.opt.swipe&&e.$inner.fgswipe({data:{self:e},swipe:e.onSwipe,allowPageScroll:!0}),e.robserver=new ResizeObserver(i.throttle(function(){e.panel instanceof t.Panel&&!e.panel.destroying&&!e.panel.destroyed&&e.resize()},50)),e.robserver.observe(e.$inner.get(0)),!0)},doDestroy:function(){return this.robserver instanceof ResizeObserver&&this.robserver.disconnect(),this.$inner.fgswipe("destroy"),this._super()},doLoad:function(i,n){var s=this,r=s.panel.cls.states;return o.Deferred(function(e){i.isCreated||i.create(),i.$el.toggleClass(r.reverse,n),i.appendTo(s.$inner);var t=[];s.panel.hasTransition?t.push(a.start(i.$el,function(e){e.addClass(r.visible)},null,350)):i.$el.addClass(r.visible),t.push(i.load()),o.when.apply(o,t).then(e.resolve).catch(e.reject)}).promise()},doUnload:function(i,n){var s=this,r=s.panel.cls.states;return o.Deferred(function(e){var t=[];i.isCreated&&(i.$el.toggleClass(r.reverse,!n),s.panel.hasTransition?t.push(a.start(i.$el,function(e){e.removeClass(r.visible)},null,350)):i.$el.removeClass(r.visible)),t.push(i.unload()),o.when.apply(o,t).then(e.resolve).catch(e.reject)}).always(function(){i.isCreated&&i.$el.removeClass(r.reverse),i.detach()}).promise()},onSwipe:function(e,t){t=t.self;"E"===e.direction&&t.panel.prev(),"W"===e.direction&&t.panel.next()},resize:function(){this.currentMedia instanceof t.Panel.Media&&this.currentMedia.resize()}})}(FooGallery.$,FooGallery,FooGallery.utils.fn,FooGallery.utils.transition),function(i,n,o){i.Panel.SideArea=i.Panel.Area.extend({construct:function(e,t,i,n){var s=this,r=e.cls.sideArea;s._super(e,t,o.extend({icon:null,label:null,position:null,overlay:!1,visible:!0,autoHide:!1,toggle:!!e.opt.buttons[t],priority:99},i),o.extend({toggle:this.__cls(r.toggle,t,!0),visible:this.__cls(r.visible,t),overlay:this.__cls(r.overlay,t),position:{top:this.__cls(r.position.top,t),right:this.__cls(r.position.right,t),bottom:this.__cls(r.position.bottom,t),left:this.__cls(r.position.left,t)}},n)),s.isVisible=s.opt.visible,s.allPositionClasses=Object.keys(s.cls.position).map(function(e){return s.cls.position[e]}).join(" ")+" "+s.cls.overlay,s.button=s.registerButton()},registerButton:function(){var e=new i.Panel.SideAreaButton(this);return this.panel.buttons.register(e,this.opt.priority),e},doCreate:function(){return!!this._super()&&(this.isEnabled()&&(this.panel.$el.toggleClass(this.cls.visible,this.isVisible),this.setPosition(this.opt.position)),!0)},isEnabled:function(){return this.cls.position.hasOwnProperty(this.opt.position)},canLoad:function(e){return this.isEnabled()&&e instanceof i.Panel.Media},getPosition:function(){var e;return this.isEnabled()?(e=this.cls.position[this.opt.position],this.opt.overlay?e+" "+this.cls.overlay:e):null},setPosition:function(e,t=null){this.opt.position=this.cls.position.hasOwnProperty(e)?e:null,n.boolean(t)&&(this.opt.overlay=t),n.jq(this.panel.$el)&&this.panel.$el.removeClass(this.allPositionClasses).addClass(this.getPosition())},toggle:function(e){this.isVisible=n.boolean(e)?e:!this.isVisible,n.jq(this.panel.$el)&&this.panel.$el.toggleClass(this.cls.visible,this.isVisible),this.panel.buttons.press(this.name,this.isVisible)},onToggleClick:function(e){e.preventDefault(),e.data.self.toggle()},isTargetingSamePosition:function(e){var t;return e instanceof i.Panel.SideArea&&(t=this.opt.position,e=e.opt.position,n.string(t)&&n.string(e)&&t===e)}})}((FooGallery.$,FooGallery),(FooGallery.icons,FooGallery.utils,FooGallery.utils.is),(FooGallery.utils.fn,FooGallery.utils.obj)),function(e,t,i){e.Panel.Info=e.Panel.SideArea.extend({construct:function(e){this._super(e,"info",{icon:"info",label:e.il8n.buttons.info,position:e.opt.info,overlay:e.opt.infoOverlay,visible:e.opt.infoVisible,autoHide:e.opt.infoAutoHide,align:e.opt.infoAlign,waitForUnload:!1,group:"overlay",priority:90},e.cls.info)},doCreate:function(){var e=this;return!(!e.isEnabled()||!e._super())&&(t.string(e.opt.align)&&e.cls.align.hasOwnProperty(e.opt.align)&&e.panel.$el.addClass(e.cls.align[e.opt.align]),!0)},canLoad:function(e){return this._super(e)&&e.caption.canLoad()},doLoad:function(e,t){return this.canLoad(e)&&(e.caption.appendTo(this.$inner),e.caption.load()),i.resolved},doUnload:function(e,t){return e.caption.unload(),e.caption.detach(),i.resolved}})}((FooGallery.$,FooGallery),FooGallery.utils.is,FooGallery.utils.fn),function(s,r,e,o,i,u,h){r.Panel.Thumbs=r.Panel.SideArea.extend({construct:function(e){this._super(e,"thumbs",{icon:"thumbs",label:e.il8n.buttons.thumbs,position:e.opt.thumbs,captions:e.opt.thumbsCaptions,align:e.opt.thumbsCaptionsAlign,small:e.opt.thumbsSmall,bestFit:e.opt.thumbsBestFit,toggle:!1,waitForUnload:!1},e.cls.thumbs),this.iobserver=null,this.robserver=null,this.$prev=null,this.$next=null,this.$viewport=null,this.$stage=null,this.$dummy=null,this.__items=[],this.__animationFrameId=null,this.info=this.getInfo(),this.selectedIndex=0,this.scrollIndex=0,this.lastIndex=0},isHorizontal:function(){return-1!==["top","bottom"].indexOf(this.opt.position)},doCreate:function(){var n=this;return!(!n.isEnabled()||!n._super())&&(n.opt.captions||n.panel.$el.addClass(n.cls.noCaptions),n.opt.small&&n.panel.$el.addClass(n.cls.small),i.string(n.opt.align)&&n.cls.align.hasOwnProperty(n.opt.align)&&n.panel.$el.addClass(n.cls.align[n.opt.align]),n.$prev=s("<button/>",{type:"button"}).addClass(n.cls.prev).append(e.get("arrow-left",n.panel.opt.icons)).on("click.foogallery",{self:n},n.onPrevClick).prependTo(n.$inner),n.$viewport=s("<div/>").addClass(n.cls.viewport).appendTo(n.$inner),n.$next=s("<button/>",{type:"button"}).addClass(n.cls.next).append(e.get("arrow-right",n.panel.opt.icons)).on("click.foogallery",{self:n},n.onNextClick).appendTo(n.$inner),n.$stage=s("<div/>").addClass(n.cls.stage).appendTo(n.$viewport),n.$dummy=s("<div/>").addClass(n.cls.thumb.elem).appendTo(n.$viewport),n.iobserver=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(n.iobserver.unobserve(e.target),n.loadThumbElement(e.target))})},{root:n.$inner.get(0),rootMargin:"82px 300px"}),n.robserver=new ResizeObserver(u.throttle(function(e){var t,i;0<e.length&&n.panel instanceof r.Panel&&!n.panel.destroying&&!n.panel.destroyed&&(e=o.getResizeObserverSize(e[0]),t=n.info.viewport,i=Math.floor(Math.abs(e.width-t.width)),e=Math.floor(Math.abs(e.height-t.height)),n.isVisible&&(1<i||1<e)&&n.resize())},50)),n.doCreateThumbs(n.panel.tmpl.items.available(n.panel.isVisible)),!0)},doCreateThumbs:function(e){var t;i.empty(e)||((t=this).iobserver instanceof IntersectionObserver&&t.iobserver.takeRecords().forEach(function(e){t.iobserver.unobserve(e.target)}),t.__items=e,t.selectedIndex=0,t.scrollIndex=0,t.lastIndex=t.__items.length-1,t.$stage.empty(),e.forEach(function(e){e=t.doCreateThumb(e).appendTo(t.$stage);t.iobserver.observe(e.get(0))}),t.$stage.append(s("<div/>").addClass(t.cls.spacer)))},doCreateThumb:function(e){var t=this,i=t.cls.thumb;return s("<figure/>").addClass(i.elem).addClass(e.getTypeClass()).addClass(t.panel.cls.states.idle).append(s("<div/>").addClass(i.media).append(s("<div/>").addClass(i.overlay),s("<div/>").addClass(i.wrap).append(s("<img/>",{title:e.title,alt:e.alt}).attr({draggable:!1}).addClass(i.image)),s("<div/>").addClass(t.panel.cls.loader)),s("<div/>").addClass(i.caption).append(s("<div/>").addClass(i.title).html(e.caption),s("<div/>").addClass(i.description).html(e.description))).data("item",e).on("click",{self:t,item:e},t.onThumbClick)},doDestroy:function(){return this.stopListening(),this.iobserver instanceof IntersectionObserver&&this.iobserver.disconnect(),this.robserver instanceof ResizeObserver&&this.robserver.disconnect(),this._super()},doLoad:function(e,t){return this.isCreated&&-1!==(e=this.__items.indexOf(e.item))&&(this.makeVisible(e),this.$stage.find(this.sel.thumb.elem).removeClass(this.panel.cls.states.selected).eq(e).addClass(this.panel.cls.states.selected),this.selectedIndex=e),u.resolved},makeVisible:function(e,t){(e<=this.scrollIndex||e>=this.scrollIndex+this.info.count)&&this.goto(e,t)},listen:function(){var e=this;e.stopListening(),e.isCreated&&(e.resize(),e.robserver.observe(e.$viewport.get(0)),e.$inner.fgswipe({data:{self:e},swipe:e.onSwipe,allowPageScroll:!0}).on("DOMMouseScroll.foogallery-panel-thumbs mousewheel.foogallery-panel-thumbs",{self:e},e.onMouseWheel))},stopListening:function(){this.isCreated&&(this.$inner.fgswipe("destroy").off(".foogallery-panel-thumbs"),this.$stage.find(this.sel.thumb).css({width:"",minWidth:"",height:"",minHeight:""}),this.robserver.unobserve(this.$viewport.get(0)))},loadThumbElement:function(e){var t=s(e),e=t.data("item"),i=t.find(this.sel.thumb.image).get(0),n=this.panel.cls.states;t.removeClass(n.allLoading).addClass(n.loading),i.onload=function(){i.onload=i.onerror=null,t.removeClass(n.allLoading).addClass(n.loaded)},i.onerror=function(){i.onload=i.onerror=null,t.removeClass(n.allLoading).addClass(n.error)},i.src=e.src,i.srcset=e.srcset,i.complete&&i.onload()},goto:function(e,o){var a=this;if(!a.isCreated)return u.reject("thumbs not created");e=e<0?0:e>a.lastIndex?a.lastIndex:e;var l=a.panel.cls.states,c=e>=a.scrollIndex+a.info.count?e-(a.info.count-1):e,t=a.lastIndex-(a.info.count-1);return(t=t<0?0:t)<(c=c<0?0:c)&&(c=t),s.Deferred(function(e){var t,i,n,s,r=a.$stage.find(a.sel.thumb.elem).eq(c);0<r.length?(t=c>a.scrollIndex,i=a.__items.length>=a.info.count,s=a.info.isHorizontal?(n=-r.prop("offsetLeft"),t&&(n+=a.info.remaining.width),"translateX("+((n=i&&a.info.stage.width-Math.abs(n)<a.info.viewport.width?a.info.viewport.width-a.info.stage.width:n)-1)+"px)"):(n=-r.prop("offsetTop"),t&&(n+=a.info.remaining.height),"translateY("+((n=i&&a.info.stage.height-Math.abs(n)<a.info.viewport.height?a.info.viewport.height-a.info.stage.height:n)-1)+"px)"),a.panel.hasTransition&&!o?h.start(a.$stage,function(e){e.css("transform",s)},null,350).then(function(){e.resolve()}).catch(e.reject):(a.$stage.addClass(l.noTransitions).css("transform",s),a.$stage.prop("offsetHeight"),a.$stage.removeClass(l.noTransitions),e.resolve())):e.resolve()}).always(function(){a.scrollIndex=c,a.$prev.toggleClass(l.disabled,c<=0),a.$next.toggleClass(l.disabled,t<=c)}).promise()},getInfo:function(){var e=this.isHorizontal(),t={width:0,height:0},i={width:0,height:0},n={width:0,height:0},s={horizontal:0,vertical:0},r={width:0,height:0},o={width:0,height:0},a=0,l=0,c=this.__items.length;return this.isCreated&&(t={width:this.$viewport.innerWidth()+1,height:this.$viewport.innerHeight()+1},n={width:this.$dummy.outerWidth(),height:this.$dummy.outerHeight()},s={horizontal:Math.floor(t.width/n.width),vertical:Math.floor(t.height/n.height)},r={width:t.width/Math.min(c,s.horizontal),height:t.height/Math.min(c,s.vertical)},a=(this.opt.bestFit?r:n).width,l=(this.opt.bestFit?r:n).height,i={width:e?this.__items.length*a:a,height:e?l:this.__items.length*l},o={width:Math.floor(t.width-s.horizontal*a),height:Math.floor(t.height-s.vertical*l)}),{isHorizontal:e,viewport:t,stage:i,original:n,adjusted:r,remaining:o,counts:s,count:e?s.horizontal:s.vertical,width:a,height:l}},resize:function(){this.isCreated&&(this.info=this.getInfo(),this.opt.bestFit&&(this.info.isHorizontal?this.$stage.find(this.sel.thumb.elem).css({width:this.info.width,minWidth:this.info.width,height:"",minHeight:""}):this.$stage.find(this.sel.thumb.elem).css({height:this.info.height,minHeight:this.info.height,width:"",minWidth:""})),this.goto(this.scrollIndex,!0))},onThumbClick:function(e){e.preventDefault(),e.data.self.panel.load(e.data.item)},onPrevClick:function(e){e.preventDefault();e=e.data.self;e.goto(e.scrollIndex-(e.info.count-1||1))},onNextClick:function(e){e.preventDefault();e=e.data.self;e.goto(e.scrollIndex+(e.info.count-1||1))},onSwipe:function(e,t){var t=t.self,i=1;t.info.isHorizontal?(i=Math.ceil(e.distance/t.info.width),"E"===e.direction&&t.goto(t.scrollIndex-i),"W"===e.direction&&t.goto(t.scrollIndex+i)):(i=Math.ceil(e.distance/t.info.height),"S"===e.direction&&t.goto(t.scrollIndex-i),"N"===e.direction&&t.goto(t.scrollIndex+i))},onMouseWheel:function(e){var t=e.data.self,i=Math.max(-1,Math.min(1,e.originalEvent.wheelDelta||-e.originalEvent.detail));0<i?(t.goto(t.scrollIndex-1),e.preventDefault()):i<0&&(t.goto(t.scrollIndex+1),e.preventDefault())}})}(FooGallery.$,FooGallery,FooGallery.icons,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.transition),function(n,s,e,r,t,o){s.Panel.Media=e.Class.extend({construct:function(e,t){var i=this;i.panel=e,i.item=t,i.opt=o.extend({},e.opt.media),i.cls=o.extend({},e.cls.media),i.sel=o.extend({},e.sel.media),i.il8n=o.extend({},e.il8n.media),i.caption=new s.Panel.Media.Caption(e,i),s.Panel.Media.Product&&(i.product=new s.Panel.Media.Product(e,i)),s.Panel.Media.Comments&&(i.comments=new s.Panel.Media.Comments(e,i)),i.$el=null,i.$content=null,i.isCreated=!1,i.isAttached=!1,i.isLoading=!1,i.isLoaded=!1,i.isError=!1},getSize:function(e,t,i,n){var s={};return r.string(e)&&r.string(t)&&(s[e]=r.size(i)?i:null,s[t]=r.size(n)?n:null,this.item.isCreated&&(s[e]=this.item.$anchor.data(e)||s[e],s[t]=this.item.$anchor.data(t)||s[t])),s},getSizes:function(){var e=this,t=e.getSize("width","height",e.opt.width,e.opt.height),i=e.getSize("maxWidth","maxHeight",e.opt.maxWidth,e.opt.maxHeight),e=e.getSize("minWidth","minHeight",e.opt.minWidth,e.opt.minHeight);return o.extend(t,i,e)},destroy:function(){var e=this;return e.panel.trigger("media-destroy",[e]).isDefaultPrevented()||(e.isCreated=!e.doDestroy()),e.isCreated||e.panel.trigger("media-destroyed",[e]),!e.isCreated},doDestroy:function(){return this.isCreated&&(this.caption.destroy(),this.detach(),this.$el.remove()),!0},create:function(){var e=this;return!e.isCreated&&r.string(e.item.href)&&(e.panel.trigger("media-create",[e]).isDefaultPrevented()||(e.isCreated=e.doCreate()),e.isCreated&&e.panel.trigger("media-created",[e])),e.isCreated},doCreate:function(){var e=this;return e.$el=n("<div/>").addClass([e.cls.elem,e.cls.type].join(" ")).append(n("<div/>").addClass(e.panel.cls.loader)),e.$content=e.doCreateContent().addClass(e.cls.content).css(e.getSizes()).appendTo(e.$el),!0},doCreateContent:function(){return n()},appendTo:function(e){var t=this;return t.isCreated||t.create(),t.isCreated&&!t.isAttached&&(t.panel.trigger("media-append",[t,e]).isDefaultPrevented()||(t.isAttached=t.doAppendTo(e)),t.isAttached&&t.panel.trigger("media-appended",[t,e])),t.isAttached},doAppendTo:function(e){return this.$el.appendTo(e),0<this.$el.parent().length},detach:function(){var e=this;return e.isCreated&&e.isAttached&&(e.panel.trigger("media-detach",[e]).isDefaultPrevented()||(e.isAttached=!e.doDetach()),e.isAttached||e.panel.trigger("media-detached",[e])),!e.isAttached},doDetach:function(){return this.$el.detach(),!0},load:function(){var t=this,i=t.panel.cls.states;return n.Deferred(function(e){t.panel.trigger("media-load",[t]).isDefaultPrevented()?e.rejectWith("default prevented"):t.isLoaded?e.resolve():t.isError?e.reject("previous error"):(t.isLoading=!0,t.$el.removeClass(i.allLoading).addClass(i.loading),t.doLoad().then(e.resolve).catch(e.reject))}).always(function(){t.isLoading=!1,t.$el.removeClass(i.loading)}).then(function(){t.isLoaded=!0,t.$el.addClass(i.loaded),t.panel.trigger("media-loaded",[t])}).catch(function(){t.isError=!0,t.$el.addClass(i.loaded),t.panel.trigger("media-error",[t])}).promise()},doLoad:function(){return t.resolved},unload:function(){var t=this;return n.Deferred(function(e){t.isCreated&&t.isAttached?t.panel.trigger("media-unload",[t]).isDefaultPrevented()?e.rejectWith("default prevented"):t.doUnload().then(e.resolve).catch(e.reject):e.rejectWith("not created or attached")}).then(function(){t.panel.trigger("media-unloaded",[t])}).promise()},doUnload:function(){return t.resolved},resize:function(){}}),s.template.configure("core",{panel:{media:{width:null,height:null,minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,attrs:{}}}},{panel:{media:{elem:"fg-media",type:"fg-media-unknown",content:"fg-media-content",caption:{elem:"fg-media-caption",title:"fg-media-caption-title",description:"fg-media-caption-description",exif:{elem:"fg-media-caption-exif",auto:"fg-media-caption-exif-auto",full:"fg-media-caption-exif-full",partial:"fg-media-caption-exif-partial",minimal:"fg-media-caption-exif-minimal",prop:"fg-media-caption-exif-prop",icon:"fg-media-caption-exif-icon",content:"fg-media-caption-exif-content",label:"fg-media-caption-exif-label",value:"fg-media-caption-exif-value",tooltip:"fg-media-caption-exif-tooltip",tooltipPointer:"fg-media-caption-exif-tooltip-pointer",showTooltip:"fg-media-caption-exif-show-tooltip"}},product:{elem:"fg-media-product",inner:"fg-media-product-inner",header:"fg-media-product-header",body:"fg-media-product-body",footer:"fg-media-product-footer",button:"fg-panel-button",primary:"fg-panel-button-primary",secondary:"fg-panel-button-secondary",hidden:"fg-hidden",disabled:"fg-disabled",loading:"fg-loading"}}}},{panel:{media:{product:{title:"Product Information",addToCart:"Add to Cart",viewProduct:"View Product",goToCheckout:"Go to Checkout",success:"Successfully added to cart.",error:"Something went wrong adding to cart."}}}}),s.Panel.media=new s.Factory}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj,(FooGallery.utils.str,FooGallery.utils.transition)),function(o,a,l,c,u,e,h){var d=!!window.matchMedia&&window.matchMedia("(hover: hover)").matches;a.Panel.Media.Caption=c.Class.extend({construct:function(e,t){var i=this;i.panel=e,i.media=t,i.opt=e.opt,i.cls=t.cls.caption,i.sel=t.sel.caption,i.$el=null,i.title=null,i.description=null,i.isCreated=!1,i.isAttached=!1,i.hasTitle=!1,i.hasDescription=!1,i.hasExif=!1,i.init(t.item)},canLoad:function(){return this.hasTitle||this.hasDescription||this.hasExif},init:function(e){var t,i,n,s,r;e instanceof a.Item&&(t=this,i=!1,e.isCreated?(r=e.$anchor.data()||{},n=u.string(r.lightboxTitle),s=u.string(r.lightboxDescription),(n||s)&&(i=!0,t.title=a.safeParse(n?r.lightboxTitle:""),t.description=a.safeParse(s?r.lightboxDescription:""))):(r=e.attr.anchor,n=u.string(r["data-lightbox-title"]),s=u.string(r["data-lightbox-description"]),(n||s)&&(i=!0,t.title=a.safeParse(n?r["data-lightbox-title"]:""),t.description=a.safeParse(s?r["data-lightbox-description"]:""))),i||(t.title=e.caption,t.description=e.description),t.hasTitle=!u.empty(t.title),t.hasDescription=!u.empty(t.description),t.hasExif=e.hasExif&&-1!==c.inArray(t.opt.exif,["auto","full","partial","minimal"]))},create:function(){return this.isCreated||this.panel.trigger("caption-create",[this]).isDefaultPrevented()||(this.isCreated=this.doCreate(),this.isCreated&&this.panel.trigger("caption-created",[this])),this.isCreated},doCreate:function(){var n,s,r=this;return r.$el=o("<div/>").addClass(r.cls.elem),r.hasTitle&&r.$el.append(o("<div/>").addClass(r.cls.title).html(r.title)),r.hasDescription&&r.$el.append(o("<div/>").addClass(r.cls.description).html(r.description)),r.hasExif&&(n=r.media.item.exif,s=o("<div/>",{class:r.cls.exif.elem}).addClass(r.cls.exif[r.opt.exif]),a.supportedExifProperties.forEach(function(e){var t,i;u.empty(n[e])||(i="exif-"+h.kebab(e),t=r.media.item.il8n.exif[e],e=n[e],i=o("<div/>",{class:r.cls.exif.prop}).append(o("<div/>",{class:r.cls.exif.icon}).append(l.get(i,r.opt.icons)),o("<div/>",{class:r.cls.exif.content}).append(o("<div/>",{class:r.cls.exif.label}).text(t),o("<div/>",{class:r.cls.exif.value}).text(e)),o("<span/>",{class:r.cls.exif.tooltip}).text(t+": "+e).append(o("<span/>",{class:r.cls.exif.tooltipPointer}))),d||i.on("click",{self:r},r.onExifClick),s.append(i))}),r.$el.append(s)),!0},onExifClick:function(e){e.preventDefault();var t,e=e.data.self,i=o(this),n=i.find(e.sel.exif.tooltip),s=o(e.sel.exif.showTooltip);o(e.sel.exif.prop).removeClass(e.cls.exif.showTooltip).find(e.sel.exif.tooltip).css("left","").find(e.sel.exif.tooltipPointer).css("left",""),s.is(i)||(n.css("display","inline-block"),t=(s=n.offset().left)+n.outerWidth(),0<(t=Math.ceil(t-window.innerWidth))&&n.css("left","calc(50% - "+t+"px)").find(e.sel.exif.tooltipPointer).css("left","calc(50% + "+t+"px)"),s<0&&(s=Math.abs(s),n.css("left","calc(50% + "+s+"px)").find(e.sel.exif.tooltipPointer).css("left","calc(50% - "+s+"px)")),n.css("display",""),i.addClass(e.cls.exif.showTooltip))},destroy:function(){return this.isCreated&&!this.panel.trigger("caption-destroy",[this]).isDefaultPrevented()&&(this.isCreated=!this.doDestroy(),this.isCreated||this.panel.trigger("caption-destroyed",[this])),!this.isCreated},doDestroy:function(){return this.$el.remove(),!0},appendTo:function(e){var t=this;return t.isCreated||t.create(),t.isCreated&&!t.isAttached&&(t.panel.trigger("caption-append",[t,e]).isDefaultPrevented()||(t.isAttached=t.doAppendTo(e)),t.isAttached&&t.panel.trigger("caption-appended",[t,e])),t.isAttached},doAppendTo:function(e){return this.$el.appendTo(e),0<this.$el.parent().length},detach:function(){var e=this;return e.isCreated&&e.isAttached&&(e.panel.trigger("caption-detach",[e]).isDefaultPrevented()||(e.isAttached=!e.doDetach()),e.isAttached||e.panel.trigger("caption-detached",[e])),!e.isAttached},doDetach:function(){return this.$el.detach(),!0},load:function(){var t=this,i=t.panel.cls.states;return o.Deferred(function(e){t.panel.trigger("caption-load",[t]).isDefaultPrevented()?e.rejectWith("default prevented"):(t.$el.removeClass(i.allLoading).addClass(i.loading),t.doLoad().then(e.resolve).catch(e.reject))}).always(function(){t.$el.removeClass(i.loading)}).then(function(){t.$el.addClass(i.loaded),t.panel.trigger("caption-loaded",[t])}).catch(function(){t.$el.addClass(i.loaded),t.panel.trigger("caption-error",[t])}).promise()},doLoad:function(){return e.resolved},unload:function(){var t=this;return o.Deferred(function(e){t.isCreated&&t.isAttached?t.panel.trigger("caption-unload",[t]).isDefaultPrevented()?e.rejectWith("default prevented"):t.doUnload().then(e.resolve).catch(e.reject):e.rejectWith("not created or attached")}).then(function(){t.panel.trigger("caption-unloaded",[t])}).promise()},doUnload:function(){return e.resolved}})}(FooGallery.$,FooGallery,FooGallery.icons,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,(FooGallery.utils.obj,FooGallery.utils.str),FooGallery.utils.transition),function(e,s,a,r,i){s.Panel.Image=s.Panel.Media.extend({construct:function(e,t){this._super(e,t),i.extend(this.opt,e.opt.image),i.extend(this.cls,e.cls.image),i.extend(this.sel,e.sel.image),this.allFullClasses=[this.cls.fullWidth,this.cls.fullHeight].join(" ")},doCreateContent:function(){return e("<img/>").attr(this.opt.attrs)},resize:function(){var e,t,i,n,s,r,o=this;o.isCreated&&o.panel.opt.fitMedia&&((e=o.$content.get(0)).naturalWidth&&e.naturalHeight&&(t=e.naturalWidth>=e.naturalHeight,i=t,n=o.$el.innerWidth(),s=o.$el.innerHeight(),t?(r=n/e.naturalWidth,e.naturalHeight*r<s&&(i=!1)):(r=s/e.naturalHeight,e.naturalWidth*r<n&&(i=!0)),a.requestFrame(function(){o.$content.removeClass(o.allFullClasses).addClass(i?o.cls.fullWidth:o.cls.fullHeight)})))},doLoad:function(){var n=this;return e.Deferred(function(e){var t=n.$content.get(0),{cors:i}=(t.alt=n.item.alt,t.onload=function(){t.onload=t.onerror=null,e.resolve(n)},t.onerror=function(){t.onload=t.onerror=null,e.rejectWith("error loading image")},n.panel.tmpl)["opt"];r.string(i)&&null===t.crossOrigin&&s.isCrossOrigin(n.item.href)&&(t.crossOrigin=i),t.src=n.item.href,t.complete&&t.onload()}).then(function(){n.resize()}).promise()}}),s.Panel.media.register("image",s.Panel.Image),s.template.configure("core",{panel:{image:{attrs:{draggable:!1}}}},{panel:{image:{type:"fg-media-image",fullWidth:"fg-media-full-width",fullHeight:"fg-media-full-height"}}})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj),function(e,t,i){t.Panel.Iframe=t.Panel.Media.extend({construct:function(e,t){this._super(e,t),i.extend(this.opt,e.opt.iframe),i.extend(this.cls,e.cls.iframe),i.extend(this.sel,e.sel.iframe)},doCreateContent:function(){return e("<iframe/>").attr(this.opt.attrs)},doLoad:function(){var t=this;return e.Deferred(function(e){t.$content.off("load error").on({load:function(){t.$content.off("load error"),e.resolve(t)},error:function(){t.$content.off("load error"),e.reject(t)}}),t.$content.attr("src",t.item.href)}).promise()}}),t.Panel.media.register("iframe",t.Panel.Iframe),t.template.configure("core",{panel:{iframe:{attrs:{src:"",frameborder:"no",allow:"autoplay; fullscreen",allowfullscreen:!0}}}},{panel:{iframe:{type:"fg-media-iframe"}}})}(FooGallery.$,FooGallery,(FooGallery.utils,FooGallery.utils.obj)),function(e,t,i,n){t.Panel.Html=t.Panel.Media.extend({construct:function(e,t){this._super(e,t),i.extend(this.opt,e.opt.html),i.extend(this.cls,e.cls.html),i.extend(this.sel,e.sel.html),this.$target=null},doCreate:function(){return!!this._super()&&(!(!n.startsWith(this.item.href,"#")||0===(this.$target=e(this.item.href)).length)||(this.$target=null,!1))},doCreateContent:function(){return e("<div/>").attr(this.opt.attrs)},doAppendTo:function(e){return!!this._super(e)&&(this.$content.append(this.$target.contents()),!0)},doDetach:function(){return this.$target.append(this.$content.contents()),this._super()}}),t.Panel.media.register("html",t.Panel.Html),t.template.configure("core",{panel:{html:{}}},{panel:{html:{type:"fg-media-html"}}})}(FooGallery.$,FooGallery,(FooGallery.utils,FooGallery.utils.obj),FooGallery.utils.str),function(n,i,s){n.Lightbox=n.Panel.extend({construct:function(e,t){var i=this;i._super(e,t),i.opt.enabled&&i.tmpl instanceof n.Template&&!i.tmpl.destroying&&!i.tmpl.destroyed&&i.tmpl.on({"after-state":i.onAfterState,"anchor-click-item":i.onAnchorClickItem,destroyed:i.onDestroyedTemplate},i)},onAnchorClickItem:function(e,t){if(!t.noLightbox){e.preventDefault();try{this.open(t)}catch(e){console.error(e)}}},onDestroyedTemplate:function(){this.destroy()},onAfterState:function(e,t){if(t.item instanceof n.Item&&!t.item.noLightbox)try{this.open(t.item)}catch(e){console.error(e)}}}),n.template.configure("core",{lightbox:{enabled:!1}},{}),n.Template.override("construct",function(e,t){this._super(e,t);e=this.$el.data("foogalleryLightbox"),t=this.opt.lightbox.enabled||i.hash(e)||0<this.$el.length&&this.el.hasAttribute("data-foogallery-lightbox");this.opt.lightbox=s.extend({},this.opt.panel,this.opt.lightbox,{enabled:t},e),this.lightbox=t?new n.Lightbox(this,this.opt.lightbox):null})}((FooGallery.$,FooGallery),FooGallery.utils.is,FooGallery.utils.obj),function(e){e.DefaultTemplate=e.Template.extend({}),e.template.register("default",e.DefaultTemplate,null,{container:"foogallery fg-default"})}((FooGallery.$,FooGallery),FooGallery.utils),function(e){e.MasonryTemplate=e.Template.extend({construct:function(e,t){var i=this;i._super(e,t),i.masonry=null,i.on({"pre-init":i.onPreInit,destroyed:i.onDestroyed,"appended-items":i.onAppendedItems,"detach-item":i.onDetachItem,"layout after-filter-change":i.onLayoutRequired,"page-change":i.onPageChange},i)},onPreInit:function(){var e=this,t=e.sel,i=e.$el.hasClass("fg-fixed");e.template.isFitWidth=i,e.template.percentPosition=!i,e.template.transitionDuration=0,e.template.itemSelector=t.item.elem,i||(e.template.gutter=t.gutterWidth,e.template.columnWidth=t.columnWidth),e.masonry=new Masonry(e.el,e.template)},onDestroyed:function(){this.masonry instanceof Masonry&&this.masonry.destroy()},onLayoutRequired:function(){this.masonry.layout()},onPageChange:function(e,t,i,n){n||this.masonry.layout()},onAppendedItems:function(e,t){t=t.map(function(e){return e.el}),t=this.masonry.addItems(t);this.masonry.layoutItems(t,!0)},onDetachItem:function(e,t){e.isDefaultPrevented()||(e.preventDefault(),this.masonry.remove(t.el),t.$el.removeClass(this.cls.hidden),t.isAttached=!1)}}),e.template.register("masonry",e.MasonryTemplate,{template:{}},{container:"foogallery fg-masonry",columnWidth:"fg-column-width",gutterWidth:"fg-gutter-width"})}((FooGallery.$,FooGallery),(FooGallery.utils,FooGallery.utils.is)),function(n,s,e,r){s.Justified=e.Class.extend({construct:function(e,t){var i=this;i.tmpl=e,i.$el=e.$el,i.options=n.extend(!0,{},s.Justified.defaults,t),i._items=[],i.maxRowHeight=0,i.borderSize=0,i.align=-1!==["left","center","right"].indexOf(i.options.align)?i.options.align:"center"},init:function(){var e=this;e.maxRowHeight=e.getMaxRowHeight(e.options.maxRowHeight,e.options.rowHeight),e.borderSize=e.getBorderSize()},destroy:function(){this.$el.removeAttr("style")},getBorderSize:function(){switch(this.tmpl.getCSSClass("border","")){case"fg-border-thin":return 4;case"fg-border-medium":return 10;case"fg-border-thick":return 16;default:return 0}},getMaxRowHeight:function(e,t){var i;return r.string(e)?(i=parseInt(e),isNaN(i)?t:i<=0?1/0:-1!==e.indexOf("%")?t*(i/100):i):r.number(e)?e<=0?1/0:e:t},layout:function(e){var i,n=this;0<(e=r.number(e)?e:n.$el.width())&&(0!==(i=n.createRows(e)).height&&0<i.rows.length&&(n.$el.height(i.height),i.rows.forEach(function(e,t){n.render(e,t===i.rows.length-1)})))},render:function(t,e){var i=this,n=!e&&"justify"!==i.options.lastRow;t.items.forEach(function(e){e.elem&&(t.visible?(e.elem.style.setProperty("position","absolute"),e.elem.style.setProperty("width",e.width+"px"),e.elem.style.setProperty("height",e.height+"px"),e.elem.style.setProperty("top",e.top+"px"),e.elem.style.setProperty("left",e.left+"px"),e.elem.style.setProperty("margin","0"),e.elem.style.removeProperty("display"),0<i.maxRowHeight&&n?e.elem.style.setProperty("max-height",i.maxRowHeight+2*i.borderSize+"px"):e.elem.style.removeProperty("max-height"),e.elem.classList.contains("fg-positioned")||e.elem.classList.add("fg-positioned")):e.elem.style.setProperty("display","none"))})},justify:function(i,n,e,t){var s=this,r=s.options.margins,o=r*(i.items.length-1),e=e-o,a=i.width-o,l=e/a,c=(i.width=a*l,i.height=i.height*l,i.height>t+2*s.borderSize&&(a=(t+2*s.borderSize)/i.height,i.width=i.width*a,i.height=i.height*a),i.top=n,i.left=0,"left"!==s.align&&i.width<e&&("right"===s.align?i.left=e-i.width:i.left=(e-i.width)/2),i.width+=o,i.left);return i.items.forEach(function(e,t){0<t&&(c+=r),e.left=c,e.top=n;t=i.height/e.height;e.width=e.width*t,e.height=e.height*t,c+=e.width}),i.height},createRows:function(r){var o=this,a=o.options.margins,e=o.tmpl.getAvailable(),l=[],t=-1;function c(){return{index:++t,visible:!0,width:0,height:o.options.rowHeight+2*o.borderSize,top:0,left:0,items:[]}}var u=c(),h=0,d=0;if(e.forEach(function(e){s=u.height,t=e.width,(i=e.height)!==s&&(i*=n=s/i,t*=n),n=o.maxRowHeight/s;var t,i,n,s={__item:e,elem:e.el,width:t,height:i,maxWidth:t*n,maxHeight:i*n,top:0,left:0};u.width+s.width>r&&0<u.items.length&&(0<l.length&&(h+=a),e=o.justify(u,h,r,o.maxRowHeight),d<e&&(d=e),h+=e,l.push(u),u=c()),0<u.items.length&&(u.width+=a),u.width+=s.width,u.items.push(s)}),0<u.items.length){var i=h+a;switch(o.options.lastRow){case"smart":var n,s,p=o.justify(u,i,r,o.maxRowHeight);0!==d&&d<p&&(n=d/p,s=u.width*n/r,(n<.9||s<.9)&&(p=o.justify(u,i,r,d-2*o.borderSize)));break;case"justify":p=o.justify(u,i,r,99999);break;case"hide":p=o.justify(u,i,r,o.maxRowHeight),u.width<r&&1<l.length&&(u.visible=!1)}u.visible&&(h+=p+a),l.push(u)}return{height:h,rows:l}}}),s.Justified.defaults={rowHeight:150,maxRowHeight:"200%",margins:0,align:"center",lastRow:"smart"}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(e){e.JustifiedTemplate=e.Template.extend({construct:function(e,t){var i=this;i._super(e,t),i.justified=null,i.on({"pre-init":i.onPreInit,init:i.onInit,destroyed:i.onDestroyed,"layout after-filter-change":i.onLayoutRequired,"page-change":i.onPageChange},i)},onPreInit:function(){this.justified=new e.Justified(this,this.template)},onInit:function(){this.justified.init()},onDestroyed:function(){this.justified instanceof e.Justified&&this.justified.destroy()},onLayoutRequired:function(){this.justified.layout(this.lastWidth)},onPageChange:function(e,t,i,n){n||this.justified.layout(this.lastWidth)}}),e.template.register("justified",e.JustifiedTemplate,null,{container:"foogallery fg-justified"})}((FooGallery.$,FooGallery)),function(e){e.PortfolioTemplate=e.Template.extend({}),e.template.register("simple_portfolio",e.PortfolioTemplate,{},{container:"foogallery fg-simple_portfolio"})}((FooGallery.$,FooGallery),(FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn)),function(s,r,o){r.ImageViewerTemplate=r.Template.extend({construct:function(e,t){var i,n=this;e=t.hasClass("fg-overlay-controls")&&r.paging?.contains("dots")?(i=r.paging.registered.dots,o.extend({cls:{paging:i.cls},il8n:{paging:i.il8n}},e,{paging:{pushOrReplace:"replace",type:"dots",size:1,position:t.hasClass("fg-dots-none")?"none":"bottom",scrollToTop:!1}})):o.extend({},e,{paging:{pushOrReplace:"replace",type:"default",size:1,position:"none",scrollToTop:!1}}),n._super(e,t),n.$inner=s(),n.$current=s(),n.$total=s(),n.$prev=s(),n.$next=s(),n.on({"loaded-item error-item":n.onFirstItemReady,"pre-init":n.onPreInit,init:n.onInit,destroy:n.onDestroy,"append-item":n.onAppendItem,"after-page-change":n.onAfterPageChange,"after-filter-change":n.onAfterFilterChange},n)},createChildren:function(){var e=this;return s("<div/>",{class:e.cls.inner}).append(s("<div/>",{class:e.cls.innerContainer}),s("<div/>",{class:e.cls.controls}).append(s("<button/>",{class:e.cls.prev,type:"button",title:e.il8n.prev}).append(s("<span/>",{text:e.il8n.prev})),s("<label/>",{class:e.cls.count,text:e.il8n.count}).prepend(s("<span/>",{class:e.cls.countCurrent,text:"0"})).append(s("<span/>",{class:e.cls.countTotal,text:"0"})),s("<button/>",{class:e.cls.next,type:"button",title:e.il8n.next}).append(s("<span/>",{text:e.il8n.next}))))},destroyChildren:function(){this.$el.find(this.sel.inner).remove()},onFirstItemReady:function(e){this.$el.removeClass("fg-not-ready")},onPreInit:function(e){var t=this;t.$el.addClass("fg-not-ready"),t.$inner=t.$el.find(t.sel.innerContainer),t.$current=t.$el.find(t.sel.countCurrent),t.$total=t.$el.find(t.sel.countTotal),t.$prev=t.$el.find(t.sel.prev),t.$prev.attr("title")||t.$prev.attr("title",t.il8n.prev),t.$next=t.$el.find(t.sel.next),t.$next.attr("title")||t.$next.attr("title",t.il8n.next)},onInit:function(e){var t=this;t.template.attachFooBox&&t.$el.on("foobox.previous",{self:t},t.onFooBoxPrev).on("foobox.next",{self:t},t.onFooBoxNext),t.$prev.on("click",{self:t},t.onPrevClick),t.$next.on("click",{self:t},t.onNextClick)},onDestroy:function(e){var t=this;t.template.attachFooBox&&t.$el.off({"foobox.previous":t.onFooBoxPrev,"foobox.next":t.onFooBoxNext}),t.$prev.off("click",t.onPrevClick),t.$next.off("click",t.onNextClick)},onAppendItem:function(e,t){e.preventDefault(),this.$inner.append(t.$el),t.isAttached=!0},onAfterPageChange:function(e,t,i,n){n||this.update()},onAfterFilterChange:function(e){this.update()},update:function(){this.pages&&(this.$current.text(this.pages.current),this.$total.text(this.pages.total))},prev:function(){this.pages&&(this.template.loop&&1===this.pages.current?this.pages.last():this.pages.prev(),this.update())},next:function(){this.pages&&(this.template.loop&&this.pages.current===this.pages.total?this.pages.first():this.pages.next(),this.update())},onFooBoxPrev:function(e){e.data.self.prev()},onFooBoxNext:function(e){e.data.self.next()},onPrevClick:function(e){e.preventDefault(),e.stopPropagation(),e.data.self.prev()},onNextClick:function(e){e.preventDefault(),e.stopPropagation(),e.data.self.next()}}),r.template.register("image-viewer",r.ImageViewerTemplate,{template:{attachFooBox:!1,loop:!1}},{container:"foogallery fg-image-viewer",inner:"fiv-inner",innerContainer:"fiv-inner-container",controls:"fiv-ctrls",prev:"fiv-prev",next:"fiv-next",count:"fiv-count",countCurrent:"fiv-count-current",countTotal:"fiv-count-total"},{prev:"Prev",next:"Next",count:"of"})}(FooGallery.$,FooGallery,(FooGallery.utils,FooGallery.utils.obj)),function(i,e,n){e.ThumbnailTemplate=e.Template.extend({construct:function(e,t){this._super(n.extend({},e,{filtering:{type:"none"},paging:{pushOrReplace:"replace",theme:"fg-light",type:"default",size:i(t).hasClass(e.cls.stacked)?3:1,position:"none",scrollToTop:!1}}),t)}}),e.template.register("thumbnail",e.ThumbnailTemplate,{template:{}},{container:"foogallery fg-thumbnail",stacked:"fg-stacked"})}(FooGallery.$,FooGallery,FooGallery.utils.obj),function(n,r,e,l,s,o){r.StackAlbum=e.Class.extend({construct:function(e,t){var i=this;i.$el=l.jq(e)?e:n(e),i.el=i.$el.get(0),i.opt=s.extend({},r.StackAlbum.defaults,t,i.$el.data("foogallery")),i.$back=i.$el.find(".fg-header-back"),i.$active=i.$el.find(".fg-header-active"),i.$piles=i.$el.find(".fg-piles"),i.piles=i.$piles.find(".fg-pile").map(function(e,t){return new r.StackAlbum.Pile(i,t,{index:e})}).get(),i.ignoreResize=!1,i.info=i.getLayoutInfo(),i.robserver=new ResizeObserver(function(e){var t;!i.ignoreResize&&i.$el.is(":visible")&&(t=i.$el.width(),i.info.maxWidth!==t&&(i.info=i.getLayoutInfo(),i.layout(!0)))})},init:function(){var e=this;e.info=e.getLayoutInfo(),e.piles.forEach(function(e){e.init()}),e.$back.on("click.foogallery",{self:e},e.onBackClick),e.layout(!0),e.robserver.observe(e.el)},destroy:function(){this.robserver.disconnect(),this.$back.off(".foogallery"),this.piles.forEach(function(e){e.destroy()})},getLayoutInfo:function(){var e=this,t=e.$el.width(),i=2*e.opt.border,n=e.opt.gutter+i,s=t-n;let r=1;e.opt.itemWidth>s&&(r=s/e.opt.itemWidth);var s=e.opt.itemWidth*r,o=e.opt.itemHeight*r;return{maxWidth:t,space:n,halfSpace:n/2,itemWidth:s,itemHeight:o,itemOuterWidth:s+i,itemOuterHeight:o+i,blockWidth:s+n,blockHeight:o+n,border:e.opt.border,doubleBorder:i,gutter:e.opt.gutter,halfGutter:e.opt.gutter/2}},layout:function(e){var t,i=this;e&&(i.$el.addClass("fg-disable-transitions"),i.$el.prop("offsetWidth")),i.hasActive?(t=i.activePile.layout(),i.activePile.setPosition(0,0,t.width,t.height)):t=i.layoutPiles(),i.$piles.css({width:t.width+"px",height:t.height+"px"}),e&&setTimeout(function(){i.$el.removeClass("fg-disable-transitions")},0)},layoutPiles:function(n){var s=this,r=0,o=1,a=0;return n=l.fn(n)?n:function(){},s.piles.forEach(function(e){var t=r,i=((r+=s.info.blockWidth)>s.info.maxWidth&&0<t&&(t=0,r=s.info.blockWidth,o++),s.info.blockHeight*(o-1));n(e,s.info),e.layoutCollapsed(),e.setPosition(i,t,s.info.blockWidth,s.info.blockHeight),a<r&&(a=r)}),{width:a,height:s.info.blockHeight*o}},setActive:function(t){var i,n=this,e=n.activePile,s=e instanceof r.StackAlbum.Pile;t=t instanceof r.StackAlbum.Pile?t:null,n.activePile=t,n.hasActive=null!==t,s&&e.collapse(),n.ignoreResize=!0,n.hasActive?(n.piles.forEach(function(e){e!==t&&e.hide(n.activePile)}),i=n.activePile.expand (),n.$active.text(t.title),n.$el.addClass("fg-has-active")):(i=n.layoutPiles(function(e){e.show()}),n.$el.removeClass("fg-has-active")),o.start(n.$piles,function(e){e.css({width:i.width+"px",height:i.height+"px"})},null,350).then(function(){n.ignoreResize=!1})},onBackClick:function(e){e.preventDefault(),e.stopPropagation(),e.data.self.setActive(null)}}),r.StackAlbum.defaults={gutter:50,itemWidth:150,itemHeight:150,border:10,angleStep:1,randomAngle:!1}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj,FooGallery.utils.transition),function(o,s,e,r,a){s.StackAlbum.Pile=e.Class.extend({construct:function(e,t,i){var n=this;n.album=e,n.$el=r.jq(t)?t:o(t),n.opt=a.extend({},s.StackAlbum.Pile.defaults,i,n.$el.data()),n.title=n.opt.title,n.items=n.$el.find(".fg-pile-item").map(function(e,t){return new s.StackAlbum.Item(n,t,{index:e})}).get(),n.$cover=n.$el.find(".fg-pile-cover").first(),n.top=0,n.left=0,n.isExpanded=!1},init:function(){var i=this,n=i.album.opt,s=i.getAngles(n.angleStep),r=n.randomAngle?i.randomAngle(s):n.angleStep;0===i.$cover.length&&0<i.items.length&&(i.$cover=o("<div/>",{class:"fg-pile-cover"}).append(o("<div/>",{class:"fg-pile-cover-content"}).append(o("<span/>",{class:"fg-pile-cover-title",text:i.opt.title}),o("<span/>",{class:"fg-pile-cover-count",text:i.items.length}))),i.items[0].$el.addClass("fg-has-cover").append(i.$cover)),i.$cover.on("click.foogallery",{self:i},i.onCoverClick),i.items.forEach(function(e,t){e.init(),3<t||(0===t?e.load():(t%2==0?e.setAngle(-r):e.setAngle(r),n.randomAngle?r=i.randomAngle(s):r+=n.angleStep))})},destroy:function(){this.$cover.remove(),this.items.forEach(function(e,t){0===t&&e.$el.removeClass("fg-has-cover"),e.destroy()})},getAngles:function(e){for(var t=[],i=1;i<=3;i++)t.push(i*e);return t},randomAngle:function(e){var t=e.length,t=Math.floor(Math.random()*+t+0),e=e.splice(t,1);return 1===e.length?e[0]:0},setPosition:function(e,t,i,n){this.top=e,this.left=t,r.number(i)&&r.number(n)?this.$el.css({top:e+"px",left:t+"px",width:i+"px",height:n+"px"}):this.$el.css({top:e+"px",left:t+"px"})},layout:function(){const n=this.album.info;if(!this.isExpanded)return this.layoutCollapsed();let s=0,r=1,o=!1,a=0;return this.items.forEach(function(e){(s+=n.halfGutter)>n.maxWidth&&(s=n.halfGutter,r++,o=!0,console.log("A"));var t=s,i=(s+=n.itemOuterWidth+n.halfGutter,!o&&s>n.maxWidth&&(t=n.halfGutter,s=n.blockWidth,r++,console.log("B")),n.blockHeight*(r-1)+n.halfGutter);o=!1,e.setPosition(i,t,n.itemOuterWidth,n.itemOuterHeight),e.isLoaded||e.load(),s>a&&(a=s)}),{width:a,height:n.blockHeight*r}},layoutCollapsed:function(){const t=this.album.info;return this.items.forEach(function(e){e.setPosition(t.halfGutter,t.halfGutter,t.itemOuterWidth,t.itemOuterHeight)}),{width:t.blockWidth,height:t.blockHeight}},expand:function(){var e;return this.$el.removeClass("fg-collapsed").addClass("fg-expanded"),this.isExpanded=!0,e=this.layout(),this.setPosition(0,0,e.width,e.height),e},collapse:function(){var e;return this.$el.removeClass("fg-expanded").addClass("fg-collapsed"),this.isExpanded=!1,e=this.layout(),this.setPosition(0,0,e.width,e.height),e},show:function(){this.$el.removeClass("fg-hidden fg-expanded fg-collapsed")},hide:function(e){e instanceof s.StackAlbum.Pile&&this.setPosition(e.top,e.left),this.$el.addClass("fg-hidden")},onCoverClick:function(e){e.preventDefault(),e.stopPropagation();e=e.data.self;e.album.setActive(e)}}),s.StackAlbum.Pile.defaults={index:-1,title:null}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj),function(s,r,e,o,a){r.StackAlbum.Item=e.Class.extend({construct:function(e,t,i){var n=this;n.pile=e,n.$el=o.jq(t)?t:s(t),n.opt=a.extend({},r.StackAlbum.Item.defaults,i,n.$el.data()),n.$thumb=n.$el.find(".fg-pile-item-thumb"),n.$image=n.$el.find(".fg-pile-item-image"),n.isLoaded=!1,n.isLoading=!1,n._loading=null},init:function(){var e=this.pile.album.info;this.$el.css({width:e.itemOuterWidth+"px",height:e.itemOuterHeight+"px"})},destroy:function(){this.$el.css({top:"",left:"",width:"",height:"",transform:""})},setAngle:function(e){this.$el.css({transform:"rotate("+e+"deg)"})},setPosition:function(e,t,i,n){this.$el.css({top:e+"px",left:t+"px",width:i+"px",height:n+"px"})},load:function(){var t=this;return o.promise(t._loading)?t._loading:t._loading=s.Deferred(function(e){t.$el.addClass("fg-loading"),t.isLoading=!0,t.$image.on({"load.foogallery":function(){t.$image.off(".foogallery"),t.$el.removeClass("fg-loading"),t.isLoading=!1,t.isLoaded=!0,e.resolve()},"error.foogallery":function(){t.$image.off(".foogallery"),t.$el.removeClass("fg-loading"),t.isLoading=!1,t.isLoaded=!0,e.reject()}}),t.$image.prop("src",t.$image.attr(t.opt.src)).prop("srcset",t.$image.attr(t.opt.srcset))}).promise()}}),r.StackAlbum.Item.defaults={index:-1,src:"data-src-fg",srcset:"data-srcset-fg"}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj),function(n,s,e){n.fn.foogalleryStackAlbum=function(e){return this.each(function(e,t){var t=n(t),i=t.data("__FooGalleryAlbum__");i instanceof s.StackAlbum&&i.destroy(),(i=new s.StackAlbum(t)).init(),t.data("__FooGalleryAlbum__",i)})},s.loadStackAlbums=s.reloadStackAlbums=function(){n(function(){n(".foogallery-stack-album:not(.fg-ready)").foogalleryStackAlbum()}),e.ready(function(){n(".foogallery-stack-album.fg-ready").foogalleryStackAlbum()})},s.loadStackAlbums()}(FooGallery.$,FooGallery,FooGallery.utils),function(d,e,o,p){o.Progress=o.EventClass.extend({construct:function(e){var t=this;t._super(),t.percent=0,t.tickRate=p.number(e)?e:100,t.isPaused=!1,t.isActive=!1,t._intervalId=null,t._total=0,t._target=null,t.onTick=t.onTick.bind(t)},destroy:function(){this._reset(),this._super()},_reset:function(){var e=this;null!==e._intervalId&&clearInterval(e._intervalId),e.percent=0,e._total=0,e._intervalId=null,e._target=null,e.isActive=!1,e.isPaused=!1},stop:function(){this.isActive&&(this._reset(),this.trigger("stop"))},start:function(e){var t=this;t.stop(),!t.isActive&&p.number(e)&&0<e&&(t._total=1e3*e,t._target=Date.now()+t._total,t._intervalId=setInterval(t.onTick,t.tickRate),t.isActive=!0,t.trigger("start"))},pause:function(){var e=this;e.isActive&&!e.isPaused&&e.percent<100&&(null!==e._intervalId&&clearInterval(e._intervalId),e._intervalId=null,e._target=null,e.isPaused=!0,e.trigger("pause"))},resume:function(){var e,t=this;t.isActive&&t.isPaused?(e=t._total-t._total*t.percent/100,t._target=Date.now()+e,t._intervalId=setInterval(t.onTick,t.tickRate),t.isPaused=!1,t.trigger("resume")):0<t._total&&t.start(t._total/1e3)},onTick:function(){var e=this,t=e._total-Math.max(e._target-Date.now(),0);e.percent=Math.min(t/e._total*100,100),e.trigger("tick",[e.percent]),100<=e.percent&&(null!==e._intervalId&&clearInterval(e._intervalId),e._intervalId=null,e._target=null,e.isActive=!1,e.trigger("complete"))}}),d.Carousel=o.Class.extend({construct:function(e,t,i,n,s){var r=this;r.tmpl=e,r.el=e.el,r.opt=t,r.cls=i,r.sel=n,r.i18n=s,r.elem={inner:null,center:null,bottom:null,prev:null,next:null,progress:null},r.activeItem=null,r._itemWidth=0,r._leftExclude=[r.sel.activeItem,r.sel.nextItem].join(","),r._rightExclude=[r.sel.activeItem,r.sel.prevItem].join(","),r._centerListeners=new o.DOMEventListeners,r._listeners=new o.DOMEventListeners,r._progress=new o.Progress,r._canHover=window.matchMedia("(hover: hover)").matches,r.cache=new Map,r.timeouts=new o.Timeouts,r.interacted=!1,r.isRTL=!1,r._firstLayout=!0},getScreenX:function(e,t,i){return i/(i+t)*e},getVectorX:function(e,t,i){return(i+t)/i*e},getSequentialZFromScale:function(e,t,i){return i*(t*(e+1))},scaleToZ:function(e,t,i){return e*(1-t/(i+t))},getDiff:function(e,t){return t<e?e-t:t-e},pause:function(){this._progress.pause()},resume:function(){this._progress.resume()},start:function(){"disable"===this.opt.autoplay.interaction&&this.interacted||this._progress.start(this.opt.autoplay.time)},stop:function(){this._progress.stop()},init:function(){var e=this;e.isRTL="rtl"===window.getComputedStyle(e.el).direction,e.elem={inner:e.el.querySelector(e.sel.inner),center:e.el.querySelector(e.sel.center),bottom:e.el.querySelector(e.sel.bottom),prev:e.el.querySelector(e.sel.prev),next:e.el.querySelector(e.sel.next),progress:e.el.querySelector(e.sel.progress)},150!==e.opt.perspective&&e.el.style.setProperty("--fg-carousel-perspective",e.opt.perspective+"px")},postInit:function(){var e=this;e.activeItem=e.tmpl.items.first(),e.initNavigation(),e.initPagination(),e.initSwipe(),e.initAutoplay()},initNavigation:function(){const t=this;t._listeners.add(t.elem.prev,"click",function(e){e.preventDefault(),t.interacted=!0,t.previous()}),"button"!==t.elem.prev.type&&(t.elem.prev.type="button"),t.elem.prev.appendChild(e.element("arrow-left")),t.elem.prev.title?.length||(t.elem.prev.title=t.i18n.prev),t._listeners.add(t.elem.next,"click",function(e){e.preventDefault(),t.interacted=!0,t.next()}),"button"!==t.elem.next.type&&(t.elem.next.type="button"),t.elem.next.appendChild(e.element("arrow-right")),t.elem.next.title?.length||(t.elem.next.title=t.i18n.next)},getBulletTitle:function(e,t){return e.replace(/\{ITEM}/g,""+t)},initPagination:function(){const i=this;var e=i.tmpl.items.count();for(let t=0;t<e;t++){const n=document.createElement("button");n.type="button",n.classList.add(i.cls.bullet),n.title=i.getBulletTitle(i.i18n.bullet,t+1),0===t&&(n.classList.add(i.cls.activeBullet),n.title=i.getBulletTitle(i.i18n.activeBullet,t+1)),i._listeners.add(n,"click",function(e){e.preventDefault(),i.interacted=!0,i.goto(i.tmpl.items.get(t))}),i.elem.bottom.appendChild(n)}},initSwipe:function(){const t=this;let i=0,n=0,s=25*(window.devicePixelRatio||1);t._listeners.add(t.elem.inner,"touchstart",function(e){t.interacted=!0,i=e.changedTouches[0].screenX},{passive:!0}),t._listeners.add(t.elem.inner,"touchend",function(e){n=e.changedTouches[0].screenX,t.getDiff(i,n)>s&&(n<i?t.next():t.previous()),n=0,i=0},{passive:!0})},initAutoplay:function(){const i=this,t=i.opt.autoplay;if(!(t.time<=0)&&i.elem.progress instanceof HTMLElement){const n=i.elem.progress.style;function e(e,t){o.cancelFrame(null),o.requestFrame(function(){n.setProperty("width",e+"%"),t?n.setProperty("transition-duration","0s"):n.setProperty("transition-duration",i._progress.tickRate+"ms")})}i._progress.on({"start stop":function(){e(0,!0)},"pause resume":function(){e(i._progress.percent,!0)},tick:function(){e(i._progress.percent,!1)},complete:function(){i.next(function(){i._progress.start(t.time)})}}),"pause"===t.interaction&&(i._canHover?(i._listeners.add(i.el,"mouseenter",function(e){i._progress.pause()},{passive:!0}),i._listeners.add(i.el,"mouseleave",function(e){i._progress.resume()},{passive:!0})):(i._listeners.add(i.el,"touchstart",function(e){i.timeouts.delete("autoplay"),i._progress.pause()},{passive:!0}),i._listeners.add(i.el,"touchend",function(e){i.timeouts.set("autoplay",function(){i._progress.resume()},1e3*t.time)},{passive:!0}))),i._progress.start(t.time)}},getFirst:function(){return this.tmpl.items.first()},getNext:function(e){return this.tmpl.items.next(e instanceof d.Item?e:this.activeItem,null,!0)},getPrev:function(e){return this.tmpl.items.prev(e instanceof d.Item?e:this.activeItem,null,!0)},goto:function(e,t){const i=this;if(e instanceof d.Item){const n=i.opt.autoplay,s=!i._canHover&&i.timeouts.has("autoplay"),r=(i.timeouts.delete("autoplay"),i.timeouts.delete("navigation"),i._progress.isPaused);i._progress.isActive&&i._progress.stop(),i.activeItem=e,i.layout(),i.timeouts.set("navigation",function(){0<n.time&&("pause"===n.interaction||"disable"===n.interaction&&!i.interacted)&&(i._progress.start(n.time),r&&i._progress.pause(),s&&i.timeouts.set("autoplay",function(){i._progress.resume()},1e3*n.time)),p.fn(t)&&t.call(i)},i.opt.speed)}},next:function(e){this.goto(this.getNext(),e)},previous:function(e){this.goto(this.getPrev(),e)},destroy:function(){var e=this;e.cache.clear(),e.timeouts.clear(),e._listeners.clear(),e._centerListeners.clear(),150!==e.opt.perspective&&e.el.style.removeProperty("--fg-carousel-perspective")},getSize:function(e,t){var i=e.getBoundingClientRect();const n={width:i.width,height:i.height};return t&&(i=getComputedStyle(e),n.width-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),n.height-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)),n},layout:function(e){const t=this;if(null===t.activeItem&&(t.activeItem=t.tmpl.items.first()),!p.number(e)&&t.cache.has("width")&&(e=t.cache.get("width")),p.number(e)){const i=t.getLayout(e);null!==t._layoutFrame&&o.cancelFrame(t._layoutFrame),t._layoutFrame=o.requestFrame(function(){t._layoutFrame=null,t.renderActive(i)&&(t.renderSide("left",t.sel.prevItem,t._leftExclude,t.cls.prevItem,i),t.renderSide("right",t.sel.nextItem,t._rightExclude,t.cls.nextItem,i),t._firstLayout=!1)})}},getLayout:function(e){var s=this,r=s.getActivePosition(),o="center"!==r,t=r+"|"+s.getAlign();if(s.cache.has("layout")&&s.cache.get("width")===e&&s.cache.get("layoutMode")===t)return s.cache.get("layout");var a=s.getSize(s.elem.center).width,l=s.getSize(s.elem.inner,!0).width;const c=s.calculate(a,l/2+a/2);if(c.activeX=0,c.sideBySide=null,o){var o=s.isRTL?"right":"left",u=s.isRTL?"left":"right",h="start"===r?u:o;let e=Math.max(0,2*s.getShowPerSide()),t=null,i=[],n={width:a,center:0};for(;0<=e&&(t=s.calculate(a,l+a/2,s.opt.gutter.max,e),i=t.side,!((n=s.measureAlignedFit(a,i,h)).width<=l));)--e;c.activeX=-n.center,c.sideBySide={},c.sideBySide.left=[],c.sideBySide.right=[],c.sideBySide[h]=i,t&&p.number(t.zIndex)&&(c.zIndex=t.zIndex)}return s.applyVisualAlign(c,a,l),s.cache.set("width",e),s.cache.set("layoutMode",t),0<c?.side?.length&&s.cache.set("layout",c),c},getActivePosition:function(){var e=p.string(this.opt.activePosition)?this.opt.activePosition.toLowerCase():"center";return-1!==["start","end"].indexOf(e)?e:"center"},getAlign:function(){var e=p.string(this.opt.align)?this.opt.align.toLowerCase():"center";return-1!==["left","right"].indexOf(e)?e:"center"},applyVisualAlign:function(e,t,i){var n=this.getAlign();"center"!==n&&(t=this.measureVisibleBounds(t,e),i="left"===n?-i/2:i/2,n="left"===n?i-t.min:i-t.max,e.activeX=(p.number(e.activeX)?e.activeX:0)+n)},measureVisibleBounds:function(o,e){const a=this,l=p.number(e?.activeX)?e.activeX:0;var t=e?.sideBySide?.left||e.side||[],e=e?.sideBySide?.right||e.side||[];const c={min:l-o/2,max:l+o/2},u=a.opt.perspective;function i(t,i){for(let e=0;e<i.length;e++){var n=i[e],s="left"===t&&!a.isRTL||"right"===t&&a.isRTL?-n.x:n.x,s=a.getScreenX(s,n.z,u)+l,n=a.scaleToZ(o,n.z,u),r=s-n/2,s=s+n/2;r<c.min&&(c.min=r),s>c.max&&(c.max=s)}}return i("left",t),i("right",e),c},measureAlignedFit:function(t,i,n){var s=this;const r={min:-t/2,max:t/2,width:t,center:0};for(let e=0;e<i.length;e++){var o=i[e],a="left"===n&&!s.isRTL||"right"===n&&s.isRTL?-o.x:o.x,a=s.getScreenX(a,o.z,s.opt.perspective),o=s.scaleToZ(t,o.z,s.opt.perspective),l=a-o/2,a=a+o/2;l<r.min&&(r.min=l),a>r.max&&(r.max=a)}return r.width=r.max-r.min,r.center=(r.min+r.max)/2,r},round:function(e,t){t=Math.pow(10,t||0);return Math.round(e*t)/t},getShowPerSide:function(){var e=this.tmpl.items.count();let t=this.opt.maxItems;return(t="auto"===t||t<=0?e%2==0?e-1:e:t)%2==0&&--t,((t=(t=t<1?1:t)>e?e%2==0?e-1:e:t)-1)/2},calculate:function(n,s,r,o){var a=this;p.number(r)||(r=a.opt.gutter.max);const l={zIndex:(o=p.number(o)?o:a.getShowPerSide())+10,gutter:r,perSide:o,side:[]};if(0<n){let t=n,i=l.zIndex-1;for(let e=0;e<o;e++,i--){var c=a.getSequentialZFromScale(e,a.opt.scale,a.opt.perspective),u=a.scaleToZ(n,c,a.opt.perspective),h=(n-u)/2,d=(t-=h,"%"===a.opt.gutter.unit?n*Math.abs(r/100):Math.abs(r)),d="%"===a.opt.gutter.unit?a.scaleToZ(d,c,a.opt.perspective):d;if(0<r?t+=d:t-=d,t+u+h>s)return r-1<a.opt.gutter.min?a.calculate(n,s,a.opt.gutter.max,o-1):a.calculate(n,s,r-1,o);d=a.getVectorX(t,c,a.opt.perspective);t+=u+h,l.side.push({x:d,z:c,zIndex:i})}}return l},cleanup:function(e,t,i){const n=this,s=p.string(i);Array.from(n.el.querySelectorAll(e)).forEach(function(e){e.classList.remove(t),n.opt.centerOnClick&&n._centerListeners.remove(e,"click"),s&&e.matches(i)||(e.style.removeProperty("transition-duration"),e.style.removeProperty("transform"),e.style.removeProperty("z-index"))})},renderActive:function(e){const i=this;if(!(i.activeItem instanceof d.Item))return!1;const t=i.activeItem.el,n=(i.cleanup(i.sel.activeItem,i.cls.activeItem),t.classList.add(i.cls.activeItem),t.style.setProperty("transition-duration",(i._firstLayout?0:i.opt.speed)+"ms"),t.style.setProperty("z-index",e.zIndex),p.number(e.activeX)&&0!==e.activeX?t.style.setProperty("transform","translate3d("+e.activeX+"px, 0, 0)"):t.style.removeProperty("transform"),i.tmpl.items.indexOf(i.activeItem));return Array.from(i.el.querySelectorAll(i.sel.bullet)).forEach(function(e,t){e.classList.remove(i.cls.activeBullet),e.title=i.getBulletTitle(i.i18n.bullet,t+1),t===n&&(e.classList.add(i.cls.activeBullet),e.title=i.getBulletTitle(i.i18n.activeBullet,t+1))}),!0},renderSide:function(i,e,n,s,r){const o=this;if(-1!==["left","right"].indexOf(i)){o.cleanup(e,s,n);var a=r?.sideBySide?.[i]||r.side,l=p.number(r?.activeX)?r.activeX:0;let t=o.activeItem;for(let e=0;e<a.length;e++){var c=a[e];const h="left"===i?o.getPrev(t):o.getNext(t);if(!(h instanceof d.Item))break;{var u="left"===i&&!o.isRTL||"right"===i&&o.isRTL?-c.x:c.x;let e=u;0!==l&&(u=o.getScreenX(u,c.z,o.opt.perspective)+l,e=o.getVectorX(u,c.z,o.opt.perspective));u="translate3d("+e+"px, 0,-"+c.z+"px)";h.el.classList.add(s),h.isLoaded||(h.el.style.setProperty("transition-duration","0ms"),h.el.style.setProperty("transform","translate3d(0,0,-"+o.opt.perspective+"px)"),h.el.offsetHeight),h.el.style.setProperty("transition-duration",(o._firstLayout?0:o.opt.speed)+"ms"),h.el.style.setProperty("transform",u),h.el.style.setProperty("z-index",c.zIndex),o.opt.centerOnClick&&o._centerListeners.add(h.el,"click",function(e){e.preventDefault(),e.stopPropagation(),o.interacted=!0,o.goto(h)},!0),t=h}}}}})}((FooGallery.$,FooGallery),FooGallery.icons,FooGallery.utils,FooGallery.utils.is),function(n,s){n.CarouselTemplate=n.Template.extend({construct:function(e,t){var i=this;i._super(s.extend({},e,{paging:{type:"none"}}),t),i.items.LAYOUT_AFTER_LOAD=!1,i.carousel=null,i.on({"pre-init":i.onPreInit,init:i.onInit,"post-init":i.onPostInit,destroyed:i.onDestroyed,"append-item":i.onAppendItem,"after-filter-change":i.onAfterFilterChange,layout:i.onLayout},i),n.Panel&&i.lightbox instanceof n.Panel&&i.lightbox.on({open:i.onLightboxOpen,closed:i.onLightboxClosed,next:i.onLightboxNext,prev:i.onLightboxPrev},i)},onPreInit:function(){var e=this;e.carousel=new n.Carousel(e,e.template,e.cls.carousel,e.sel.carousel,e.il8n)},onInit:function(){this.carousel.init()},onPostInit:function(){this.carousel.postInit()},onDestroyed:function(){this.carousel instanceof n.Carousel&&this.carousel.destroy()},onAppendItem:function(e,t){e.preventDefault(),this.carousel.elem.inner.appendChild(t.el),t.isAttached=!0},onAfterFilterChange:function(){this.carousel.cache.delete("layout"),this.carousel.interacted=!0,this.carousel.goto(this.carousel.getFirst())},onLayout:function(){this.carousel.layout(this.lastWidth)},onLightboxOpen:function(){this.carousel.interacted=!0,this.carousel.stop()},onLightboxClosed:function(){this.carousel.start()},onLightboxNext:function(){this.carousel.next()},onLightboxPrev:function(){this.carousel.previous()}}),n.template.register("carousel",n.CarouselTemplate,{template:{maxItems:0,perspective:150,scale:.12,speed:300,align:"center",activePosition:"center",centerOnClick:!0,gutter:{min:-40,max:-20,unit:"%"},autoplay:{time:0,interaction:"pause"}}},{container:"foogallery fg-carousel",carousel:{inner:"fg-carousel-inner",center:"fg-carousel-center",bottom:"fg-carousel-bottom",prev:"fg-carousel-prev",next:"fg-carousel-next",bullet:"fg-carousel-bullet",activeBullet:"fg-bullet-active",activeItem:"fg-item-active",prevItem:"fg-item-prev",nextItem:"fg-item-next",progress:"fg-carousel-progress"}},{prev:"Previous",next:"Next",bullet:"Item {ITEM}",activeBullet:"Item {ITEM} - Current"})}((FooGallery.$,FooGallery),FooGallery.utils.obj);
!function(n,r,t,a,l){r.__foobox__={owns:function(o){return 0<o.parents(".fbx-item").length},handles:function(o){return o.$el.hasClass("fbx-instance")&&l.object(window.FOOBOX)&&!!n.fn.foobox},update:function(o){const e=[{}];l.object(window.FOOBOX.o)&&e.push(window.FOOBOX.o),o.opt.protected&&e.push({images:{noRightClick:!0}}),l.fn(o.$el.foobox)&&o.$el.foobox(a.extend.apply(null,e))}},r.triggerPostLoad=function(o,e,t,a){var l=o.target;if(l instanceof r.Template&&l.initialized&&("ready"===o.type||"after-page-change"===o.type&&!a||"after-filter-change"===o.type))try{r.__foobox__.owns(l.$el)||(r.__foobox__.handles(l)?r.__foobox__.update(l):n("body").trigger("post-load"))}catch(o){console.error(o)}},r.autoDefaults={on:{"ready after-page-change after-filter-change":r.triggerPostLoad}},r.autoEnabled=!0,r.auto=function(o){return r.autoDefaults=a.merge(r.autoDefaults,o)},r.globalsMerged=!1,r.mergeGlobals=function(){!0!==r.globalsMerged&&(l.object(window.FooGallery_auto)&&r.auto(window.FooGallery_auto),l.object(window.FooGallery_il8n)&&r.merge_il8n(window.FooGallery_il8n),r.globalsMerged=!0)},r.merge_il8n=function(a){l.object(a)&&Object.keys(a).forEach(o=>{if(l.object(a[o])&&r[o]instanceof r.Factory){const e=r[o],t=a[o];Object.keys(t).forEach(o=>{l.object(t[o])&&e.configure(o,null,null,t[o])})}})},r.load=r.reload=function(){let o=!1,e=!1;n(function(){r.mergeGlobals(),r.autoEnabled&&n('[id^="foogallery-gallery-"]:not(.fg-ready)').foogallery(r.autoDefaults),(o=!0)&&e&&document.dispatchEvent(new CustomEvent("foogallery-loaded",{detail:r}))}),t.ready(function(){r.mergeGlobals(),r.autoEnabled&&n('[id^="foogallery-gallery-"].fg-ready').foogallery(r.autoDefaults),e=!0,o&&e&&document.dispatchEvent(new CustomEvent("foogallery-loaded",{detail:r}))})},document.dispatchEvent(new CustomEvent("foogallery-ready",{detail:r})),r.load()}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.obj,FooGallery.utils.is);
USR_PREFS_CK_NAME="undefined"!=typeof USR_PREFS_CK_NAME?USR_PREFS_CK_NAME:"lwaio_consent_preferences",ACTED_CONSENT_CK_NAME="undefined"!=typeof ACTED_CONSENT_CK_NAME?ACTED_CONSENT_CK_NAME:"lwaio_consent_acted",EXP_CK_NAME="undefined"!=typeof EXP_CK_NAME?EXP_CK_NAME:"1 Year",function(e){"use strict";let t={set:function(e,t,o,i=""){let s="";if(o){let e=new Date;e.setTime(e.getTime()+24*o*60*60*1e3),s="; expires="+e.toGMTString()}i&&(i="; domain="+i),document.cookie=e+"="+t+s+"; path=/"+i},read:function(e){let t=e+"=",o=document.cookie.split(";"),i=o.length;for(let e=0;e<i;e++){let i=o[e];for(;" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},exists:function(e){return null!==this.read(e)},getallcookies:function(){let e=document.cookie.split(";"),t={},o=e.length;for(let i=0;i<o;i++){let o=e[i].split("=");t[(o[0]+"").trim()]=unescape(o[1])}return t},erase:function(e,t){t?this.set(e,"",-10,t):this.set(e,"",-10)}},o={bar_config:{},show_config:{},allowed_categories:[],set:function(e){if("function"!=typeof JSON.parse)return void console.log("LWAIOCookieConsent requires JSON.parse but your browser doesn't support it");this.settings=JSON.parse(e.settings),EXP_CK_NAME=this.settings.cookie_expiry,this.bar_elm=jQuery(this.settings.notify_div_id),this.show_again_elm=jQuery(this.settings.show_again_div_id),this.details_elm=this.bar_elm.find(".lwaio_messagebar_detail"),this.main_button=jQuery("#cookie_action_accept"),this.main_link=jQuery("#cookie_action_link"),this.reject_button=jQuery("#cookie_action_reject"),this.settings_button=jQuery("#cookie_action_settings"),this.save_button=jQuery("#cookie_action_save"),this.confirm_button=jQuery("#cookie_action_confirm"),this.cancel_button=jQuery("#cookie_action_cancel"),this.accept_all_button=jQuery("#cookie_action_accept_all"),this.configBar(),this.toggleBar(),this.attachEvents(),this.configButtons(),this.settings.auto_scroll&&window.addEventListener("scroll",o.acceptOnScroll,!1);let i=JSON.parse(t.read(USR_PREFS_CK_NAME)),s=t.read(ACTED_CONSENT_CK_NAME),n="";n=new CustomEvent("LwAioCookieConsentOnLoad",{detail:{lwaio_consent_preferences:i,lwaio_consent_acted:s}}),window.dispatchEvent(n)},attachEvents:function(){jQuery(".lwaio_action_button").click(function(e){e.preventDefault();let i="",s="",n="",a="",c=jQuery(this).attr("data-lwaio_action");if("accept_all"==c)o.enableAllCookies(),o.accept_all_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),a=t.read(ACTED_CONSENT_CK_NAME),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAcceptAll",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i),o.logConsent(c);else if("accept"==c)o.accept_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),a=t.read(ACTED_CONSENT_CK_NAME),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAccept",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i),o.logConsent(c);else if("reject"==c){o.reject_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),a=t.read(ACTED_CONSENT_CK_NAME),t.erase(USR_PREFS_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnReject",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i);let e=t.getallcookies();"object"==typeof e&&null!==e&&jQuery.each(e,function(e,o){e!=ACTED_CONSENT_CK_NAME&&t.erase(e,"."+window.location.host)}),o.logConsent(c)}else"settings"==c?(o.bar_elm.slideUp(o.settings.animate_speed_hide),o.show_again_elm.slideUp(o.settings.animate_speed_hide)):"close"==c?o.displayHeader():"show_settings"==c?o.show_details():"hide_settings"==c?o.hide_details():"close_banner"==c&&(o.hideHeader(),o.accept_close(),"yes"!=(a=t.read(ACTED_CONSENT_CK_NAME))&&(s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAccept",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i)))}),jQuery(".group-switch-buttons input").each(function(){let e=jQuery(this).val(),i={},s="";if(t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME))),"necessary"==e||jQuery(this).is(":checked"))i[e]="yes",o.allowed_categories.push(e);else{i[e]="no";let t=o.allowed_categories.length;for(let i=0;i<t;i++)o.allowed_categories[i]==e&&o.allowed_categories.splice(i,1)}s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME)}),jQuery(document).on("click","#lwaio-consent-show-again",function(t){t.preventDefault(),jQuery(o.settings.notify_div_id).find("p.lwaio").show(),jQuery(o.settings.notify_div_id).find(".lwaio.group-description-buttons").show(),o.displayHeader(),e(this).hide()}),jQuery(document).on("click",".group-switch-buttons input",function(){let e=jQuery(this).val(),i={},s="";if(t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME))),jQuery(this).is(":checked"))i[e]="yes",o.allowed_categories.push(e);else{i[e]="no";let t=o.allowed_categories.length;for(let i=0;i<t;i++)o.allowed_categories[i]==e&&o.allowed_categories.splice(i,1)}s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME)}),jQuery(document).on("click","#lwaio_consent_tabs_overview",function(e){e.preventDefault();let t=jQuery(this);jQuery("#lwaio_consent_tabs").find("a").removeClass("tab_selected"),t.addClass("tab_selected"),t.css("border-bottom-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color),jQuery("#lwaio_consent_tabs_about").css("border-bottom-color",o.settings.border_color),jQuery("#lwaio_consent_tabs_about").css("background-color",o.settings.background_color),jQuery("#lwaio_consent_about").hide(),jQuery("#lwaio_consent_overview").show()}),jQuery(document).on("click","#lwaio_consent_tabs_about",function(e){e.preventDefault();let t=jQuery(this);jQuery("#lwaio_consent_tabs").find("a").removeClass("tab_selected"),t.addClass("tab_selected"),t.css("border-bottom-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color),jQuery("#lwaio_consent_tabs_overview").css("border-bottom-color",o.settings.border_color),jQuery("#lwaio_consent_tabs_overview").css("background-color",o.settings.background_color),jQuery("#lwaio_consent_overview").hide(),jQuery("#lwaio_consent_about").show()}),jQuery(document).on("click","#lwaio_consent_overview_cookie_container_types a",function(e){e.preventDefault();let t=jQuery(this),i=t.parent();i.find("a").removeClass("lwaio_consent_overview_cookie_container_type_selected"),i.find("a").css("border-right-color",o.settings.border_color),i.find("a").css("background-color",o.settings.background_color),t.addClass("lwaio_consent_overview_cookie_container_type_selected"),t.css("border-right-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color);let s=jQuery(this).attr("data-target"),n=i.siblings("#lwaio_consent_overview_cookie_container_type_details");n.find(".lwaio_consent_cookie_type_details").hide(),n.find("#"+s).show()})},configButtons:function(){this.settings_button.attr("style",`color: ${this.settings.button_link_color} !important; background-color: ${this.settings.secondary_color} !important`),this.main_button.css("color",this.settings.button_link_color),this.main_button.css("background-color",this.settings.primary_color),this.accept_all_button.css("color",this.settings.button_link_color),this.accept_all_button.css("background-color",this.settings.primary_color),this.confirm_button.css("color",this.settings.button_link_color),this.confirm_button.css("background-color",this.settings.primary_color),this.main_link.css("color",this.settings.secondary_color),this.reject_button.css("display","inline-block"),this.reject_button.attr("style",`color: ${this.settings.button_link_color} !important; background-color: ${this.settings.secondary_color} !important`),this.cancel_button.css("color",this.settings.button_link_color),this.cancel_button.css("display","inline-block"),this.cancel_button.css("background-color",this.settings.secondary_color),this.save_button.css("color",this.settings.button_link_color),this.save_button.css("background-color",this.settings.primary_color),this.details_elm.find("table.lwaio_consent_cookie_type_table tr").css("border-color",o.settings.border_color),this.details_elm.find(".lwaio_consent_cookie_type_intro").css("border-color",o.settings.border_color),this.details_elm.find("a").each(function(){jQuery(this).css("border-color",o.settings.border_color),jQuery(this).css("background-color",o.settings.background_color)}),this.details_elm.find("a.lwaio_consent_overview_cookie_container_type_selected").css("border-right-color",o.settings.border_active_color),this.details_elm.find("a.lwaio_consent_overview_cookie_container_type_selected").css("background-color",o.settings.background_active_color),this.details_elm.find("#lwaio_consent").css("border-color",o.settings.border_color),this.details_elm.find("#lwaio_consent_tabs").css("border-color",o.settings.border_color),this.details_elm.find("#lwaio_consent_tabs .tab_selected").css("border-bottom-color",o.settings.border_active_color),this.details_elm.find("#lwaio_consent_tabs .tab_selected").css("background-color",o.settings.background_active_color)},configBar:function(){this.bar_config={"background-color":this.settings.background,color:this.settings.text,"border-top":"1px solid "+this.settings.secondary_color},this.show_config={width:"auto","background-color":this.settings.background,color:this.settings.text,position:"fixed",opacity:this.settings.opacity,bottom:"0","border-top":"1px solid "+this.settings.secondary_color},"right"==this.settings.show_again_position?this.show_config.right=this.settings.show_again_margin+"%":this.show_config.left=this.settings.show_again_margin+"%",this.bar_config.position="fixed",this.bar_config.opacity=this.settings.opacity,this.bar_elm.find(".lwaio_messagebar_content").css("max-width","800px"),"bottom"==this.settings.banner_position?this.bar_config.bottom="0":this.bar_config.top="0",this.bar_elm.css(this.bar_config).hide(),this.show_again_elm.css(this.show_config).hide()},toggleBar:function(){t.exists(ACTED_CONSENT_CK_NAME)?this.hideHeader():(this.displayHeader(),this.settings.auto_hide&&setTimeout(function(){o.accept_close()},this.settings.auto_hide_delay))},accept_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.accept_reload&&window.location.reload(!0),!1},accept_all_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.accept_reload&&window.location.reload(!0),!1},reject_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),o.disableAllCookies(),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.decline_reload&&window.location.reload(!0),!1},logConsent:function(e){this.settings.logging_on&&jQuery.ajax({url:log_obj.ajax_url,type:"POST",data:{action:"lwaio_log_consent_action",lwaio_user_action:e,cookie_list:t.getallcookies()},success:function(e){}})},disableAllCookies:function(){let i={},s="";t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME)),jQuery.each(i,function(t,s){if("necessary"!=t){i[t]="no",e('.group-switch-buttons input[value="'+t+'"]').prop("checked",!1);let s=o.allowed_categories.length;for(let e=0;e<s;e++)o.allowed_categories[e]==t&&o.allowed_categories.splice(e,1)}}),s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME))},enableAllCookies:function(){let i={},s="";t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME)),jQuery.each(i,function(t,s){if("necessary"!=t){i[t]="yes",e('.group-switch-buttons input[value="'+t+'"]').prop("checked",!0);let s=o.allowed_categories.length;for(let e=0;e<s;e++)o.allowed_categories[e]==t&&o.allowed_categories.splice(e,1)}}),s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME))},show_details:function(){this.details_elm.show(),this.bar_elm.css("opacity",1),this.details_elm.css("border-top-color",o.settings.border_color),this.settings_button.attr("data-lwaio_action","hide_settings")},hide_details:function(){this.details_elm.hide(),this.bar_elm.css("opacity",o.settings.opacity),this.settings_button.attr("data-lwaio_action","show_settings")},displayHeader:function(e,t){this.bar_elm.show(),e&&(jQuery(o.settings.notify_div_id).find("p.lwaio").hide(),jQuery(o.settings.notify_div_id).find(".lwaio.group-description-buttons").hide()),this.show_again_elm.slideUp(this.settings.animate_speed_hide)},hideHeader:function(e){this.bar_elm.slideUp(this.settings.animate_speed_hide),e||this.show_again_elm.slideDown(this.settings.animate_speed_hide)},acceptOnScroll:function(){let i=e(window).scrollTop()/(e(document).height()-e(window).height());Math.round(100*i)>o.settings.auto_scroll_offset&&!t.exists(ACTED_CONSENT_CK_NAME)&&(o.accept_close(),window.removeEventListener("scroll",o.acceptOnScroll,!1),1==o.settings.auto_scroll_reload&&window.location.reload())}},i={blockingStatus:!0,scriptsLoaded:!1,set:function(e){"function"==typeof JSON.parse?this.cookies=JSON.parse(e.cookies):console.log("LWAIOCookieConsent requires JSON.parse but your browser doesn't support it")},removeCookieByCategory:function(){if(1==i.blockingStatus)for(let e in i.cookies){let s=i.cookies[e],n=s.lwaio_category_slug;if(-1===o.allowed_categories.indexOf(n)){let e=s.data;if(e&&0!=e.length)for(let o in e){let i=e[o];t.erase(i.name)}}}},runScripts:function(){let e=["iframe","IFRAME","EMBED","embed","OBJECT","object","IMG","img"],s=function(e){n.renderScripts(),a.renderSrcElement(),e(),i.scriptsLoaded=!0},n={scriptsDone:function(){let e=document.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),window.document.dispatchEvent(e)},seq:function(e,t,o){void 0===o&&(o=0),e[o](function(){++o===e.length?t():n.seq(e,t,o)})},insertScript:function(e,s){let n=["data-wpl-class","data-wpl-label","data-wpl-placeholder","data-wpl-script-type","data-wpl-src"],a=e.getAttribute("data-wpl-script-type"),c=e.getAttribute("data-wpl-element-position"),r=e.getAttribute("data-wpl-block"),l=document.createElement("script");l.type="text/plain",e.async&&(l.async=e.async),e.defer&&(l.defer=e.defer),e.src?(l.onload=s,l.onerror=s,l.src=e.src):l.textContent=e.innerText;let _=jQuery(e).prop("attributes"),d=_.length;for(let e=0;e<d;++e)"id"!==_[e].nodeName&&-1!==n.indexOf(_[e].nodeName)&&l.setAttribute(_[e].nodeName,_[e].value);!0===i.blockingStatus?("yes"==t.read(ACTED_CONSENT_CK_NAME)&&-1!==o.allowed_categories.indexOf(a)||null==t.read(ACTED_CONSENT_CK_NAME)&&"false"===r)&&(l.setAttribute("data-wpl-consent","accepted"),l.type="text/javascript"):l.type="text/javascript",e.type!=l.type&&("head"===c?(document.head.appendChild(l),e.src||s(),e.parentNode.removeChild(e)):(document.body.appendChild(l),e.src||s(),e.parentNode.removeChild(e)))},renderScripts:function(){let e=document.querySelectorAll('script[data-wpl-class="wpl-blocker-script"]');if(e.length>0){let t,o=[];Array.prototype.forEach.call(e,function(e){t=e.getAttribute("type");e.tagName;o.push(function(t){n.insertScript(e,t)})}),n.seq(o,n.scriptsDone)}}},a={renderSrcElement:function(){let s=document.querySelectorAll('[data-wpl-class="wpl-blocker-script"]'),n=s.length;for(let a=0;a<n;a++){let n=s[a],c=n.tagName;if(-1!==e.indexOf(c)){let e=n.getAttribute("data-wpl-script-type"),s=n.getAttribute("data-wpl-block");!0===i.blockingStatus?"yes"==t.read(ACTED_CONSENT_CK_NAME)&&-1!==o.allowed_categories.indexOf(e)||null!=t.read(ACTED_CONSENT_CK_NAME)&&"false"===s?this.replaceSrc(n):this.addPlaceholder(n):this.replaceSrc(n)}}},addPlaceholder:function(e){if(0===jQuery(e).prev(".wpl-iframe-placeholder").length){let t=e.getAttribute("data-wpl-placeholder"),o=e.getAttribute("width"),i=e.getAttribute("height");null==o&&(o=e.offsetWidth),null==i&&(i=e.offsetHeight);let s=/px/,n='<div style="width:'+(o=s.test(o)?o:o+"px")+"; height:"+(i=s.test(i)?i:i+"px")+';" class="wpl-iframe-placeholder"><div class="wpl-inner-text">'+t+"</div></div>";"IMG"!==e.tagName&&jQuery(n).insertBefore(e),e.removeAttribute("src"),e.style.display="none"}},replaceSrc:function(e){if(!e.hasAttribute("src")){let t=e.getAttribute("data-wpl-src");e.setAttribute("src",t),jQuery(e).prev(".wpl-iframe-placeholder").length>0&&jQuery(e).prev(".wpl-iframe-placeholder").remove(),e.style.display="block"}}};(function(){jQuery(document).on("click",".wpl_manage_current_consent",function(){o.displayHeader()})})(),s(i.removeCookieByCategory)}};e(document).ready(function(){"undefined"!=typeof lwaiobar_settings&&o.set({settings:lwaiobar_settings}),"undefined"!=typeof lwaios_list&&(i.set({cookies:lwaios_list}),i.runScripts())}),e(document).ready(function(){e(".lwaio-column").click(function(){e(".lwaio-column",this),e(this).children(".lwaio-columns").hasClass("active-group")||(e(".lwaio-columns").removeClass("active-group"),e(this).children(".lwaio-columns").addClass("active-group")),e(this).siblings(".description-container").hasClass("hide")&&(e(".description-container").addClass("hide"),e(this).siblings(".description-container").removeClass("hide"))})})}(jQuery);
(function($, elementor){
'use strict';
window.JetPopupElementorFrontend={
init: function(){
if(! elementor){
return false;
}
elementor.hooks.addAction('frontend/element_ready/widget', JetPopupElementorFrontend.elementorWidget);
const widgets={
'jet-popup-action-button.default':JetPopupElementorFrontend.widgetPopupActionButton,
'jet-popup-mailchimp.default':JetPopupElementorFrontend.widgetPopupMailchimp
};
$.each(widgets, function(widget, callback){
elementor.hooks.addAction('frontend/element_ready/' + widget, callback);
});
},
elementorWidget: function($scope){
let widget_id=$scope.data('id'),
widgetType=$scope.data('element_type'),
popupSettings=$scope.data('jet-popup')||false;
if(popupSettings){
let openEvent=popupSettings[ 'trigger-type' ],
customSelector=popupSettings[ 'trigger-custom-selector' ],
popupData={
popupId: popupSettings[ 'attached-popup' ]
};
if($scope.hasClass('jet-popup-attach-event-inited') ){
return false;
}
$scope.addClass('jet-popup-attach-event-inited');
switch(openEvent){
case 'click-self':
$scope.addClass('jet-popup-cursor-pointer');
$scope.on('click.JetPopup', function(event){
event.preventDefault();
var $target=$(this);
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $scope,
});
return false;
});
break;
case 'click':
$scope.on('click.JetPopup', '.elementor-button, .jet-button__instance .jet-popup-action-button__instance', function(event){
event.preventDefault();
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $(this),
});
return false;
});
break;
case 'click-selector':
if(''!==customSelector){
$(customSelector).addClass('jet-popup-cursor-pointer');
$scope.on('click.JetPopup', customSelector, function(event){
event.preventDefault();
var $target=$(event.currentTarget);
$target.addClass('jet-popup-cursor-pointer');
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $target,
});
return false;
});
}
break;
case 'hover':
$scope.on('mouseenter.JetPopup', function(event){
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $scope,
});
});
break;
case 'scroll-to':
elementor.waypoint($scope, function(event){
if(elementor.hooks){
popupData=elementor.hooks.applyFilters('jet-popup/widget-extensions/popup-data',
popupData,
popupSettings,
$scope,
event
);
}
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: popupData,
triggeredBy: $scope,
});
}, {
offset: 'bottom-in-view'
});
break;
}}
},
widgetPopupActionButton: function($scope){
var $button=$('.jet-popup-action-button__instance', $scope),
settings=$button.data('settings'),
actionType=settings['action-type'];
window.JetPopupFrontend.actionButtonHandle($button, actionType);
},
widgetPopupMailchimp: function($scope){
var $target=$scope.find('.jet-popup-mailchimp'),
scoreId=$scope.data('id'),
settings=$target.data('settings'),
$subscribeForm=$('.jet-popup-mailchimp__form', $target),
$fields=$('.jet-popup-mailchimp__fields', $target),
$mailField=$('.jet-popup-mailchimp__mail-field', $target),
$inputData=$mailField.data('instance-data'),
$submitButton=$('.jet-popup-mailchimp__submit', $target),
$subscribeFormMessage=$('.jet-popup-mailchimp__message', $target),
invalidMailMessage='Please specify a valid email',
timeout=null,
ajaxRequest=null,
$currentPopup=$target.closest('.jet-popup');
$mailField.on('focus', function(){
$mailField.removeClass('mail-invalid');
});
$(document).keydown(function(event){
if(13===event.keyCode&&$mailField.is(':focus') ){
subscribeHandle();
return false;
}});
$submitButton.on('click', function(){
subscribeHandle();
return false;
});
self.subscribeHandle=function(){
var inputValue=$mailField.val(),
sendData={
'email': inputValue,
'target_list_id': settings['target_list_id']||'',
'data': $inputData
},
serializeArray=$subscribeForm.serializeArray(),
additionalFields={};
if(validateEmail(inputValue) ){
$.each(serializeArray, function(key, fieldData){
if('email'===fieldData.name){
sendData[ fieldData.name ]=fieldData.value;
}else{
additionalFields[ fieldData.name ]=fieldData.value;
}});
sendData['additional']=additionalFields;
ajaxRequest=jQuery.ajax({
type: 'POST',
url: window.jetPopupData.ajax_url,
data: {
'action': 'jet_popup_mailchimp_ajax',
'data': sendData
},
beforeSend: function(jqXHR, ajaxSettings){
if(null!==ajaxRequest){
ajaxRequest.abort();
}},
error: function(jqXHR, ajaxSettings){
},
success: function(data, textStatus, jqXHR){
var successType=data.type,
message=data.message||'',
responceClass='jet-popup-mailchimp--response-' + successType;
$submitButton.removeClass('loading');
$target.removeClass('jet-popup-mailchimp--response-error');
$target.addClass(responceClass);
$('span', $subscribeFormMessage).html(message);
$subscribeFormMessage.css({ 'visibility': 'visible' });
timeout=setTimeout(function(){
$subscribeFormMessage.css({ 'visibility': 'hidden' });
$target.removeClass(responceClass);
}, 10000);
if(settings['redirect']){
window.location.href=settings['redirect_url'];
}
$(window).trigger({
type: 'jet-popup/mailchimp',
elementId: scoreId,
successType: successType,
inputData: $inputData
});
if(true===settings['close_popup_when_success']&&$currentPopup[0]&&'success'===successType){
var popupId=$currentPopup.attr('id');
timeout=setTimeout(function(){
$(window).trigger({
type: 'jet-popup-close-trigger',
popupData: {
popupId: popupId,
constantly: false
}});
}, 3000);
}}
});
$submitButton.addClass('loading');
}else{
$mailField.addClass('mail-invalid');
$target.addClass('jet-popup-mailchimp--response-error');
$('span', $subscribeFormMessage).html(invalidMailMessage);
$subscribeFormMessage.css({ 'visibility': 'visible' });
timeout=setTimeout(function(){
$target.removeClass('jet-popup-mailchimp--response-error');
$subscribeFormMessage.css({ 'visibility': 'hidden' });
$mailField.removeClass('mail-invalid');
}, 10000);
}}
function validateEmail(email){
var re=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}},
};
$(window).on('elementor/frontend/init', ()=> {
window.JetPopupElementorFrontend.init();
});
}(jQuery, window.elementorFrontend) );
window.wp=window.wp||{},function(r){var t="undefined"==typeof _wpUtilSettings?{}:_wpUtilSettings;wp.template=_.memoize(function(a){var n,s={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(t){var e=document.querySelector("script#tmpl-"+a);if(e)return(n=n||_.template(r(e).html(),s))(t);throw new Error("Template not found: #tmpl-"+a)}}),wp.ajax={settings:t.ajax||{},post:function(t,e){return wp.ajax.send({data:_.isObject(t)?t:_.extend(e||{},{action:t})})},send:function(n,t){var e,a;return _.isObject(n)?t=n:(t=t||{}).data=_.extend(t.data||{},{action:n}),t=_.defaults(t||{},{type:"POST",url:wp.ajax.settings.url,context:this}),(e=(a=r.Deferred(function(a){t.success&&a.done(t.success),t.error&&a.fail(t.error),delete t.success,delete t.error,a.jqXHR=r.ajax(t).done(function(t){var e;"1"!==t&&1!==t||(t={success:!0}),_.isObject(t)&&!_.isUndefined(t.success)?(e=this,a.done(function(){n&&n.data&&"query-attachments"===n.data.action&&a.jqXHR.hasOwnProperty("getResponseHeader")&&a.jqXHR.getResponseHeader("X-WP-Total")?e.totalAttachments=parseInt(a.jqXHR.getResponseHeader("X-WP-Total"),10):e.totalAttachments=0}),a[t.success?"resolveWith":"rejectWith"](this,[t.data])):a.rejectWith(this,[t])}).fail(function(){a.rejectWith(this,arguments)})})).promise()).abort=function(){return a.jqXHR.abort(),this},e}}}(jQuery);
!function n(s,a,o){function r(t,e){if(!a[t]){if(!s[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}i=a[t]={exports:{}},s[t][0].call(i.exports,function(e){return r(s[t][1][e]||e)},i,i.exports,n,s,a,o)}return a[t].exports}for(var l="function"==typeof require&&require,e=0;e<o.length;e++)r(o[e]);return r}({1:[function(s,e,t){var a;a=jQuery,window.ravenFrontend=new function(){function e(e){let t=window.ravenTools.activeElements;return!!(t="object"==typeof window.ravenTools.activeElements?Object.values(window.ravenTools.activeElements):t).includes(e)}let i=function(){var e;window.ravenTools&&window.ravenTools.globalTypography&&(e=window.ravenTools.globalTypography,e.fontFamily||e.fontSize?.size||e.lineHeight?.size||e.color)&&a("body .jupiterx-site").addClass("jupiterx-global-style")},n={"raven-button.default":e("button")&&s("./widgets/button").default,"raven-product-add-to-cart.default":e("add-to-cart")&&s("./widgets/add-to-cart").default,"raven-alert.default":e("alert")&&s("./widgets/alert").default,"raven-advanced-accordion.default":e("advanced-accordion")&&s("./widgets/advanced-accordion").default,"raven-countdown.default":e("countdown")&&s("./widgets/countdown").default,"raven-counter.default":e("counter")&&s("./widgets/counter").default,"raven-code-highlight.default":e("code-highlight")&&s("./widgets/code-highlight").default,"raven-form.default":e("forms")&&s("./widgets/form").default,"raven-reset-password.default":e("forms")&&s("./widgets/form").default,"raven-login.default":e("forms")&&s("./widgets/form").default,"raven-register.default":e("forms")&&s("./widgets/form").default,"raven-social-login.default":e("forms")&&s("./widgets/social-login").default,"raven-photo-roller.default":e("photo-roller")&&s("./widgets/photo-roller").default,"raven-tabs.default":e("tabs")&&s("./widgets/tabs").default,"raven-video.default":e("video")&&s("./widgets/video").default,"raven-video-playlist.default":e("video-playlist")&&s("./widgets/video-playlist/handler").default,"raven-categories.outer_content":e("categories")&&s("./widgets/categories").default,"raven-categories.inner_content":e("categories")&&s("./widgets/categories").default,"raven-posts.classic":e("posts")&&s("./widgets/posts").classic,"raven-posts.cover":e("posts")&&s("./widgets/posts").cover,"raven-post-comments.default":e("post-comments")&&s("./widgets/post-comments").default,"raven-posts-carousel.classic":e("posts")&&s("./widgets/posts-carousel").classic,"raven-posts-carousel.cover":e("posts")&&s("./widgets/posts-carousel").cover,"raven-progress-tracker.default":e("progress-tracker")&&s("./widgets/progress-tracker").default,"raven-photo-album.cover":e("photo-album")&&s("./widgets/photo-album").default,"raven-photo-album.stack":e("photo-album")&&s("./widgets/photo-album").default,"raven-product-reviews.default":e("product-reviews")&&s("./widgets/product-reviews").default,"raven-media-gallery.default":e("media-gallery")&&s("./widgets/media-gallery").default,"raven-search-form.classic":e("search-form")&&s("./widgets/search-form").classic,"raven-search-form.full":e("search-form")&&s("./widgets/search-form").full,"raven-table-of-contents.default":e("table-of-contents")&&s("./widgets/table-of-content").default,"raven-nav-menu.default":e("nav-menu")&&s("./widgets/nav-menu").default,"raven-advanced-nav-menu.default":e("advanced-nav-menu")&&s("./widgets/advanced-nav-menu").default,"raven-sticky-media-scroller.default":e("sticky-media-scroller")&&s("./widgets/sticky-media-scroller").default,"raven-wc-products.default":e("products")&&s("./widgets/wc-products").default,"raven-content-switch.default":e("content-switch")&&s("./widgets/content-switch").default,"raven-product-gallery.default":e("product-gallery")&&s("./widgets/product-gallery").default,"raven-product-data-tabs.default":e("product-data-tabs")&&s("./widgets/product-data-tabs").default,"raven-my-account.default":e("my-account")&&s("./widgets/my-account").default,"raven-image-comparison.default":e("image-comparison")&&s("./widgets/image-comparison").default,"raven-image-accordion.default":e("image-accordion")&&s("./widgets/image-accordion").default,"raven-animated-heading.default":e("animated-heading")&&s("./widgets/animated-heading").default,"raven-hotspot.default":e("hotspot")&&s("./widgets/hotspot").default,"raven-media-carousel.default":e("carousel")&&s("./widgets/carousel/media-carousel").default,"raven-testimonial-carousel.default":e("carousel")&&s("./widgets/carousel/testimonial-carousel").default,"raven-slider.default":e("slider")&&s("./widgets/slider").default,"raven-social-share.default":e("social-share")&&s("./widgets/social-share").default,"raven-reviews.default":e("carousel")&&s("./widgets/carousel/testimonial-carousel").default,"raven-stripe-button.default":e("stripe")&&s("./widgets/stripe-button").default,"raven-paypal-button.default":e("paypal")&&s("./widgets/paypal-button").default,"raven-lottie.default":e("lottie")&&s("./widgets/lottie").default,"raven-cart.default":e("cart")&&s("./widgets/cart").default,"raven-advanced-posts.default":e("advanced-posts")&&s("./widgets/advanced-posts").default,"raven-post-navigation.default":e("post-navigation")&&s("./widgets/post-navigation").default,"raven-products-carousel.default":e("products-carousel")&&s("./widgets/products-carousel").default,"raven-shopping-cart.default":e("shopping-cart")&&s("./widgets/shopping-cart").default,"raven-circle-progress.default":e("circle-progress")&&s("./widgets/circle-progress").default};function t(){for(var e in n)elementorFrontend.hooks.addAction("frontend/element_ready/"+e,n[e]);var t;new(s("./utils/motion-effects/luncher").default),"undefined"==typeof elementorPro&&void 0!==window.elementor&&0<a(".elementor").length&&((t=s("./utils/full-page-editor")).handleFullPageEditorBtn(),t.handleHeaderBtns()),i(),s("./utils/wrapper-link"),s("./widgets/column"),s("./popup/popup").default.init(),s("./utils/tooltip"),s("./utils/animated-gradient"),s("./utils/header")}this.Module=s("./utils/module"),this.utils={Masonry:s("./utils/masonry"),Sortable:s("./utils/sortable"),Pagination:s("./utils/pagination"),Detector:s("./utils/detectr"),SmoothScroll:s("./utils/smoothscroll-jx-polyfill"),GoogleLogin:s("./widgets/social-login")},this.init=()=>{a(window).on("elementor/frontend/init",t)},this.init()}},{"./popup/popup":3,"./utils/animated-gradient":4,"./utils/detectr":5,"./utils/full-page-editor":6,"./utils/header":7,"./utils/masonry":8,"./utils/module":9,"./utils/motion-effects/luncher":16,"./utils/pagination":20,"./utils/smoothscroll-jx-polyfill":21,"./utils/sortable":22,"./utils/tooltip":23,"./utils/wrapper-link":24,"./widgets/add-to-cart":25,"./widgets/advanced-accordion":26,"./widgets/advanced-nav-menu":27,"./widgets/advanced-posts":28,"./widgets/alert":29,"./widgets/animated-heading":30,"./widgets/button":31,"./widgets/carousel/media-carousel":33,"./widgets/carousel/testimonial-carousel":34,"./widgets/cart":35,"./widgets/categories":36,"./widgets/circle-progress":37,"./widgets/code-highlight":38,"./widgets/column":39,"./widgets/content-switch":40,"./widgets/countdown":41,"./widgets/counter":42,"./widgets/form":43,"./widgets/hotspot":44,"./widgets/image-accordion":45,"./widgets/image-comparison":46,"./widgets/lottie":47,"./widgets/media-gallery":48,"./widgets/my-account":49,"./widgets/nav-menu":50,"./widgets/paypal-button":51,"./widgets/photo-album":52,"./widgets/photo-roller":53,"./widgets/post-comments":54,"./widgets/post-navigation":55,"./widgets/posts":57,"./widgets/posts-carousel":56,"./widgets/product-data-tabs":58,"./widgets/product-gallery":59,"./widgets/product-reviews":60,"./widgets/products-carousel":61,"./widgets/progress-tracker":62,"./widgets/search-form":63,"./widgets/shopping-cart":64,"./widgets/slider":65,"./widgets/social-login":66,"./widgets/social-share":67,"./widgets/sticky-media-scroller":68,"./widgets/stripe-button":69,"./widgets/table-of-content":70,"./widgets/tabs":71,"./widgets/video":83,"./widgets/video-playlist/handler":74,"./widgets/wc-products":84}],2:[function(e,t,i){let w=jQuery;window.jupiterxPopupSettings=function(o,e,t){let r=w(window),i=w(document),l=e,n=t,s=l.id,a=l.jupiterx_popup_id,d=Boolean(elementorFrontend.isEditMode()),c=[],u=!1,p=!1,h=!1,m="or",g=!1,f,v,y=[];this.init=function(){if(d||1<w(".jupiterx-popup").length&&this.handleAvoidMultiplePopups())return!1;var e,t,i;this.handlePopupCloseActionLocalStorage(),this.handleButtonWidgetClick(),this.handlePopupLocalStorage(),"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+s)&&(this.handlePopupAction(),l.custom_selector&&this.onCustomSelector(l.custom_selector),this.initOpenEvent(),this.initCloseEvent(),0===n.length&&this.removeEntranceAnimationClass(),n.relation_logic&&(m=n.relation_logic?.control),n.on_date&&(i=new Date,e=new Date(1e3*n.on_date.control),i.toDateString()!==e.toDateString()?h=!0:(u=!0,p=!0)),n?.on_date_range?.control&&(i=new Date,e=new Date(1e3*n.on_date_range.control.start_date),t=new Date(1e3*n.on_date_range.control.end_date),e<=i&&i<=t?(u=!0,p=!0):h=!0),n?.time_range?.control&&(e=(new Date).toLocaleTimeString("en-US",{timeZone:n.time_range.control.timezone}),i=new Date((new Date).toLocaleDateString()+" "+n.time_range.control.start_time).getTime(),t=new Date((new Date).toLocaleDateString()+" "+n.time_range.control.due_time).getTime(),i<=(i=new Date((new Date).toLocaleDateString()+" "+e).getTime())&&i<=t?(u=!0,p=!0):h=!0),n?.on_page_exit_intent&&(u=!0,c.push({key:"on_page_exit_intent",value:n?.on_page_exit_intent,canRun:!1})),n?.on_page_load&&(u=!0,c.push({key:"on_page_load",value:n?.on_page_load,canRun:!1})),n?.on_scroll?.control?.direction&&(u=!0,c.push({key:"on_page_scroll",value:n?.on_scroll,canRun:!1})),n?.on_scroll_to_element?.control&&(u=!0,c.push({key:"on_scroll_to_element",value:n?.on_scroll_to_element,canRun:!1})),n?.show_after_x_page_views?.control&&(u=!0,c.push({key:"show_after_x_page_views",value:n?.show_after_x_page_views,canRun:!1})),n?.show_after_x_visits?.control&&(u=!0,c.push({key:"show_after_x_visits",value:n?.show_after_x_visits,canRun:!1})),n?.url_referrer?.control&&(u=!0,c.push({key:"url_referrer",value:n?.url_referrer,canRun:!1})),n?.user_browser_language?.control&&(u=!0,c.push({key:"user_browser_language",value:n?.user_browser_language,canRun:!1})),n?.user_browser?.control&&(u=!0,c.push({key:"user_browser",value:n?.user_browser,canRun:!1})),n?.user_device?.control&&(this.userDevice(n.user_device.control,n.user_device.operator)?(u=!0,p=!0):h=!0),n?.user_role?.result&&(!0===n?.user_role?.result?(u=!0,p=!0):h=!0),n?.user_type?.result&&(!0===n?.user_type?.result?(u=!0,p=!0):h=!0),n?.utm_campaign?.control&&((v=this.utmUrl(n?.utm_campaign,"utm_campaign"))?(u=!0,p=!0):h=!0),n?.utm_content?.control&&((v=this.utmUrl(n?.utm_content,"utm_content"))?(u=!0,p=!0):h=!0),n?.utm_source?.control&&((v=this.utmUrl(n.utm_source,"utm_source"))?(u=!0,p=!0):h=!0),n?.utm_term?.control&&((v=this.utmUrl(n?.utm_term,"utm_term"))?(u=!0,p=!0):h=!0),n?.utm_medium?.control&&((v=this.utmUrl(n?.utm_medium,"utm_medium"))?(u=!0,p=!0):h=!0),n?.after_inactivity&&(u=!0,c.push({key:"after_inactivity",value:n?.after_inactivity.control,canRun:!1})),u&&"or"===m&&0===c.length&&this.showPopup(),u&&"or"===m&&0<c.length&&(p?this.showPopup():this.runTriggerFunction()),h||"and"!==m||0!==c.length||this.showPopup(),!h)&&"and"===m&&0<c.length&&this.runTriggerFunction()},this.runTriggerFunction=function(){for(let e of c)switch(e.key){case"on_page_exit_intent":this.removeEntranceAnimationClass(),i.mouseleave(()=>{e.canRun=!0,this.showPopup()});break;case"on_page_load":setTimeout(()=>{e.canRun=!0,this.showPopup()},1e3*e.value?.control);break;case"on_page_scroll":this.removeEntranceAnimationClass(),this.onScroll(e);break;case"on_scroll_to_element":this.removeEntranceAnimationClass(),this.onScrollElement(e);break;case"show_after_x_page_views":this.onAfterXPageViews(e);break;case"show_after_x_visits":this.onAfterXVisits(e);break;case"url_referrer":this.urlReferrer(e);break;case"user_browser_language":this.userBrowserLanguage(e);break;case"user_browser":this.userBrowser(e);break;case"after_inactivity":this.onAfterInactivity(e)}},this.handleButtonWidgetClick=function(){w(document).on("popup-button-clicked",(e,t)=>{if(parseInt(t.popupId)===s)switch(t.actionType){case"close-popup":this.hidePopup({constantly:l.show_once});break;case"close-all-popups":this.closeAllPopups();break;case"close-popup-permanently":this.hidePopup({constantly:l.show_once}),window.localStorage.setItem("jupiterx_popup_closed_permanently_"+a,!0);break;case"close-all-popups-permanently":this.closeAllPopupsPermanently()}})},this.handlePopupLocalStorage=function(){w(".jupiterx-popup:not(.jupiterx-popup--edit-mode)").each(function(e,t){var i,n=w(t).find(".elementor-widget-raven-form"),t=w(t).data("settings").id;0<n.length&&({popup_action:n,popup_action_do_not_show_again:i}=n.data("settings"),t===s)&&"close"===n&&_.isEmpty(i)&&window.localStorage.removeItem("jupiterx_popup_closed_permanently_"+s)})},this.handlePopupAction=function(){elementorFrontend.on("components:init",()=>{elementorFrontend.utils.urlActions.addAction("raven_popup_"+l.id+":open",e=>{parseInt(e.id)===parseInt(s)&&(!e.toggle&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+s)||o.hasClass("jupiterx-popup--hide-state")&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+s)?this.showPopup():o.hasClass("jupiterx-popup--show-state")&&this.hidePopup({constantly:!1}))}),elementorFrontend.utils.urlActions.addAction("raven_popup:close",(e,t)=>{var i=w(t.target).closest(".jupiterx-popup").attr("id");let n=0;i&&(n=i.split("-").pop()),parseInt(e.id)===parseInt(n)&&(this.hidePopup({popupElement:w(t.target).closest(".jupiterx-popup"),constantly:!1}),e.do_not_show_again)&&window.localStorage.setItem("jupiterx_popup_closed_permanently_"+n,!0)})})},this.handlePopupCloseActionLocalStorage=function(){w(".jupiterx-popup:not(.jupiterx-popup--edit-mode)").each(function(e,t){var t=w(t).find('[href^="#elementor-action%3Aaction%3Draven_popup%3Aclose"]');0<t.length&&(t=t.closest("[data-elementor-id]").attr("data-elementor-id"),""===window["raven_popup_close_action_"+t]?.do_not_show_again)&&window.localStorage.removeItem("jupiterx_popup_closed_permanently_"+t)})},this.closeAllPopups=function(){w(".jupiterx-popup:not(.jupiterx-popup--edit-mode)").each(function(){var e={popupId:w(this).data("settings").jupiterx_popup_id,constantly:w(this).data("settings").show_once};w(document).trigger("jupiterx-popup-close-trigger",e)})},this.closeAllPopupsPermanently=function(){w(".jupiterx-popup:not(.jupiterx-popup--edit-mode)").each(function(){var e={popupId:w(this).data("settings").jupiterx_popup_id,constantly:!1};w(document).trigger("jupiterx-popup-close-trigger",e),window.localStorage.setItem("jupiterx_popup_closed_permanently_"+w(this).data("settings").jupiterx_popup_id,!0)})},this.handleAvoidMultiplePopups=function(){if(!l.avoid_multiple_popups)return!1;var e=w(".jupiterx-popup:not(.jupiterx-popup--edit-mode)"),e=w(e.get().reverse());let t,i;return e.each(function(){if(!w(this).data("settings").avoid_multiple_popups)return!(i=!0);t=w(this).data("settings")}),i||t.id!==l.id},this.initOpenEvent=function(){let n=this;r.on("jupiterx-popup-open-trigger",function(e,t={}){e=e.popupData||{};(e.popupId||!1)===a&&n.showPopup(e),!_.isEmpty(t)&&t?.popupId&&"jupiterx-popup-"+t.popupId===a&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+t.popupId)&&(e.popupId=t.popupId,n.showPopup(e))}),r.on("jupiterx-popup-close-trigger",function(e,t){var i=t.popupId,t=t.constantly;i===a&&n.hidePopup({constantly:t})}),r.on("jupiterx-popup-close-form-trigger",function(e,t){var i=t.constantly,t=t.popupId;i&&t===s&&window.localStorage.setItem("jupiterx_popup_closed_permanently_"+s,!0),t===s&&n.hidePopup({constantly:i})})},this.initCloseEvent=function(){o.on("click",".jupiterx-popup__close-button",()=>{this.hidePopup({constantly:l.show_once})}),l.prevent_close_on_background_click||o.on("click",".jupiterx-popup__overlay",()=>{this.hidePopup({constantly:l.show_once})}),l.prevent_close_on_esc_key||i.on("keyup.jupiterxPopup",e=>{27===e.keyCode&&this.hidePopup({constantly:l.show_once})})},this.onCustomSelector=function(e){w(e)[0]&&w("body").on("click",e,e=>{e.preventDefault(),"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&this.showPopup()})},this.onAfterInactivity=function(e){"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+s)&&(this.resetTimer(e),i.on("mousemove keydown",()=>{this.resetTimer(e)}))},this.resetTimer=function(t){clearTimeout(f),y.includes(l.id)||(this.removeEntranceAnimationClass(),f=setTimeout(()=>{var e;"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+s)&&((e=c.find(e=>e.key===t?.key))&&(e.canRun=!0),this.showPopup(),y.push(l.id))},1e3*t?.value))},this.onScroll=function(n){if("up"===n?.value?.control?.direction){let i=r.scrollTop();r.scroll(()=>{var e,t=r.scrollTop();t<i&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&((e=c.find(e=>e.key===n?.key))&&(e.canRun=!0),this.showPopup()),i=t})}if("down"===n?.value?.control?.direction){let t=!1;r.scroll(()=>{var e;r.scrollTop()/(i.height()-r.height())*100>=n?.value?.control?.value&&!t&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&((e=c.find(e=>e.key===n?.key))&&(e.canRun=!0),this.showPopup(),t=!0)})}},this.onScrollElement=function(t){let i=!1;r.scroll(()=>{var e=r.scrollTop();w(t?.value.control).offset().top<=e+r.height()&&!i&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&((e=c.find(e=>e.key===t?.key))&&(e.canRun=!0),this.showPopup(),i=!0)})},this.onAfterXPageViews=function(t){var e;elementorFrontend.storage.get("pageViews")>=t?.value?.control&&((e=c.find(e=>e.key===t?.key))&&(e.canRun=!0),this.showPopup())},this.onAfterXVisits=function(t){var e;elementorFrontend.storage.get("sessions")>=t?.value?.control&&((e=c.find(e=>e.key===t?.key))&&(e.canRun=!0),this.showPopup())},this.urlReferrer=function(t){let i=t?.value?.operator,n=t?.value?.control;r.on("load",()=>{var e;("is"===i&&document.referrer===n||"is-not"===i&&document.referrer!==n||"contains"===i&&document.referrer.includes(n)||"does-not-contains"===i&&!document.referrer.includes(n)||"starts-with"===i&&document.referrer.startsWith(n)||"ends-with"===i&&document.referrer.endsWith(n))&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&((e=c.find(e=>e.key===t?.key))&&(e.canRun=!0),this.showPopup())})},this.userBrowserLanguage=function(t){let i=t?.value?.operator,e=t?.value?.control,n=e;-1===l.browser_language.indexOf("-")&&(n=e.split("-")[0]),r.on("load",()=>{var e;("is"===i&&l.browser_language===n||"is-not"===i&&l.browser_language!==n||"contains"===i&&l.browser_language.includes(n)||"does-not-contains"===i&&!l.browser_language.includes(n)||"starts-with"===i&&l.browser_language.startsWith(n)||"ends-with"===i&&l.browser_language.endsWith(n))&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&((e=c.find(e=>e.key===t?.key))&&(e.canRun=!0),this.showPopup())})},this.userBrowser=function(t){var e=t?.value?.operator,i=t?.value?.control,n=r[0].navigator.userAgent.toLowerCase();let s=!1;for(let e=0;e<i.length;e++){var a=i[e].value.toLowerCase();if(n.includes(a)){s=!0;break}}("is-any-of"===e&&s||"is-none-of"===e&&!s)&&((e=c.find(e=>e.key===t?.key))&&(e.canRun=!0),this.showPopup())},this.userDevice=function(t,e){let i=!1;for(let e=0;e<t.length;e++){var n=t[e].value.toLowerCase();if("mobile"===n){if(this.isMobile()){i=!0;break}}else if("tablet"===n){if(this.isTablet()){i=!0;break}}else if("desktop"===n&&!this.isMobile()&&!this.isTablet()){i=!0;break}}return!("is-any-of"!==e||!i)||"is-none-of"===e&&!i},this.utmUrl=function(e,t){var i,t=new URLSearchParams(window.location.search.toLowerCase()).get(t);return!!t&&(i=e.control.toLowerCase(),this.utmCondition(i,t,e.operator))},this.utmCondition=function(e,t,i){switch(i){case"is":return t===e;case"is-not":return t!==e;case"contains":return t.includes(e);case"does-not-contains":return!t.includes(e);case"starts-with":return t.startsWith(e);case"ends-with":return t.endsWith(e);default:return!1}},this.isMobile=function(){var t=window.navigator.userAgent.toLowerCase(),i=["mobile","android","iphone"];for(let e=0;e<i.length;e++)if(-1<t.indexOf(i[e]))return!0;return window.screen.width<768},this.isTablet=function(){var t=window.navigator.userAgent.toLowerCase(),i=["ipad","tablet"];for(let e=0;e<i.length;e++)if(-1<t.indexOf(i[e]))return!0;return 768<=window.screen.width&&window.screen.width<1024},this.handleConvertToolbar=function(t){var i=w(".jupiterx-popup__container",o),n=0<w("#wpadminbar").length;let s=i.height(),a=1.2;if(n&&(s+=w("#wpadminbar").height()),l.animation_duration.size&&(a=l.animation_duration.size),"show"===t){o.hasClass("jupiterx-popup--hide-state")&&(o.toggleClass("jupiterx-popup--hide-state jupiterx-popup--show-state"),s=i.height(),n&&(s+=w("#wpadminbar").height()),o.toggleClass("jupiterx-popup--show-state jupiterx-popup--hide-state"));let e="0px";n&&(e=w("#wpadminbar").height()+"px"),i.css("top",`-${s}px`);t=parseInt(w("body").css("padding-top"))+s;w("body").animate({"padding-top":t},1e3*a),void i.animate({top:e},1e3*a)}else w("body").animate({"padding-top":0},1e3*a),w(".jupiterx-popup__container",o).removeClass("animated "+l.entrance_animation),i.animate({top:`-${s}px`},1e3*a,()=>{o.toggleClass("jupiterx-popup--show-state jupiterx-popup--hide-state")})},this.showPopup=function(e){e=e||{};return!(d||"and"===m&&c.find(e=>!1===e.canRun))&&void(l.show_once?this.handleShowAgainDelay(e):this.showPopupContent(e))},this.showContainer=function(e){e=e||{};let t={forceLoad:l.force_loading||!1},n=w(".jupiterx-popup__container-content",o);if(e=jQuery.extend(t,e),g=e.forceLoad?!1:g)return!1;e=jQuery.extend(e,{popup_id:s}),o.addClass("jupiterx-popup--loading-state"),wp.ajax.post({action:"jupiterx_popup_get_content",data:e}).always(e=>{var t=e.type,i=e.content||"";o.removeClass("jupiterx-popup--loading-state"),"error"===t&&(e=e.message,n.html("<h3>"+e+"</h3>")),"success"===t&&(n.html(i),g=!0)})},this.showPopupContent=function(e){l.convert_to_header_toolbar&&"top"===l.vertical_position&&this.handleConvertToolbar("show"),o.hasClass("jupiterx-popup--hide-state")&&(o.toggleClass("jupiterx-popup--hide-state jupiterx-popup--show-state"),l.entrance_animation)&&w(".jupiterx-popup__container",o).addClass("animated "+l.entrance_animation),l.prevent_scrolling&&w("body").addClass("jupiterx-popup-prevent-scroll"),l.close_button_delay&&l.close_button&&(w(".jupiterx-popup__close-button",o).hide(),setTimeout(function(){w(".jupiterx-popup__close-button",o).show()},1e3*l.close_button_delay)),l.close_automatically&&setTimeout(()=>{this.hidePopup({constantly:l.show_once})},1e3*l.close_automatically),l.use_ajax&&this.showContainer(e)},this.hidePopup=function(e){let i=o,t=(e.popupElement&&(i=e.popupElement),e||{}),n=w(".jupiterx-popup__container-content",i),s=t.constantly||!1,a=i.data("settings");if(i.hasClass("jupiterx-popup--show-state"))if(!a.entrance_animation||a.convert_to_header_toolbar&&"top"===a.vertical_position||this.removeEntranceAnimationClass(),!a.exit_animation||"none"===a.exit_animation||a.convert_to_header_toolbar&&"top"===a.vertical_position)a.convert_to_header_toolbar&&"top"===a.vertical_position?this.handleConvertToolbar("hide"):i.toggleClass("jupiterx-popup--show-state jupiterx-popup--hide-state"),a.use_ajax&&a.force_loading&&n.html("");else{let e=a.exit_animation.replace("In","Out"),t=(w(".jupiterx-popup__container",i).addClass("animate__animated animate__"+e),1.2);a.animation_duration.size&&(t=a.animation_duration.size),setTimeout(()=>{w(".jupiterx-popup__container",i).removeClass("animate__animated animate__"+e),a.prevent_scrolling&&w("body").removeClass("jupiterx-popup-prevent-scroll"),i.toggleClass("jupiterx-popup--show-state jupiterx-popup--hide-state"),a.use_ajax&&a.force_loading&&n.html("")},1e3*t)}l.prevent_scrolling&&!w(".jupiterx-popup--show-state")[0]&&w("body").removeClass("jupiterx-popup-prevent-scroll"),s&&this.handleShowAgainDelay(t,!0),this.handlePauseVideo()},this.handleShowAgainDelay=function(t,i=!1){let e=Date.now(),n=l.show_again_delay,s=0!==n?e+n:"none";if("none"!==s){("true"!==window.localStorage.getItem("jupiterx_popup_showed_"+a)||+window.localStorage.getItem("jupiterx_popup_show_again_"+a)<Date.now())&&window.localStorage.setItem("jupiterx_popup_showed_"+a,!1);let e=setInterval(()=>{i&&(window.localStorage.setItem("jupiterx_popup_show_again_"+a,s),window.localStorage.setItem("jupiterx_popup_showed_"+a,!0)),!window.localStorage.getItem("jupiterx_popup_show_again_"+a)&&o.hasClass("jupiterx-popup--hide-state")&&(window.localStorage.setItem("jupiterx_popup_show_again_"+a,Date.now()),window.localStorage.setItem("jupiterx_popup_showed_"+a,!1)),+window.localStorage.getItem("jupiterx_popup_show_again_"+a)<Date.now()&&"false"===window.localStorage.getItem("jupiterx_popup_showed_"+a)&&"true"!==window.localStorage.getItem("jupiterx_popup_closed_permanently_"+a)&&(clearInterval(e),this.showPopupContent(t),s=Date.now()+n,window.localStorage.setItem("jupiterx_popup_show_again_"+a,s),window.localStorage.setItem("jupiterx_popup_showed_"+a,!0))},1e3)}},this.handlePauseVideo=function(){let e=w(".jupiterx-popup__container-content video",o);0<e.length&&e.each(function(){w(this)[0].pause()}),0<(e=w(".jupiterx-popup__container-content iframe.raven-video-mejs-player",o)).length&&e.each(function(){w(this)[0].player.media.pause()})},this.removeEntranceAnimationClass=function(){w(".jupiterx-popup__container",o).removeClass("animated "+l.entrance_animation)}}},{}],3:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("./popup-settings");let n=jQuery;i.default={init:function(){var e=n(".jupiterx-popup:not(.jupiterx-popup--edit-mode)");Boolean(elementorFrontend.isEditMode())||e.each(function(){var e=n(this),t=e.data("settings"),i=e.data("trigger");elementorFrontend.storage.set("jupiterx_popup_"+t.id,t);new window.jupiterxPopupSettings(e,t,i).init()}),elementorFrontend.isEditMode()||elementorFrontend.isWPPreviewMode()||(n(this),e=elementorFrontend.storage.get("pageViews")||0,elementorFrontend.storage.set("pageViews",e+1),e=elementorFrontend.storage.get("activeSession",{session:!0}))||(elementorFrontend.storage.set("activeSession",!0,{session:!0}),e=elementorFrontend.storage.get("sessions")||0,elementorFrontend.storage.set("sessions",e+1))}}},{"./popup-settings":2}],4:[function(e,t,i){let n={RavenAnimatedGradientInstance(t){if(t.hasClass("raven-animated-gradient-yes")){let e="";var i=(t=(t=(t=t.hasClass("elementor-widget-raven-button")?t.find(".raven-button-overlay"):t).hasClass("elementor-widget-raven-heading")?e=(e=t.find(".raven-heading-title-inner")).hasClass("raven-heading-title-inner")?e:t.find(".raven-heading-title"):t).hasClass("elementor-widget-raven-text-marquee")?t.find(".raven-marquee-text-item"):t).data("color"),i="linear-gradient("+t.data("angle")+","+i+")",n=t.data("speed"),s=t.data("background-size"),a=t.data("animation-name");t.css("background-image",i),t.css("animation-duration",n),t.css("background-size",s),t.css("animation-name",a)}}};elementorFrontend.hooks.addAction("frontend/element_ready/global",function(e){n.RavenAnimatedGradientInstance(e)})},{}],5:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;function n(p){function e(e){function o(e){return-1<r.indexOf(e)}let r=e.toLowerCase(),l=p.outerWidth||t.clientWidth,d=p.outerHeight||t.clientHeight,c="webkit",u="mobile",i=(e=function(){var e,t,i=[],n=h.implementation,s=!!/applewebkit\/(\d{1,})/.test(r)&&RegExp.$1;let a="";switch(!0){case o("msie")&&!o("opera")&&!o("webtv")||o("trident")||o("edge"):a=o("edge")?/edge\/(\w+)/.test(r)?" edge ie"+RegExp.$1:" ie11":o("msie 8.0")||o("trident/7.0")?" ie11":/msie\s(\d+)/.test(r)?" ie"+RegExp.$1:"",i.push("ie"+a);break;case o("iron/")||o("iron"):a=/iron\/(\d+)/.test(r)?" iron"+RegExp.$1:"",i.push(c+" iron"+a);break;case o("android")&&o("u;")&&(!o("chrome")||o("chrome")&&s&&s<=534):i.push("android-browser");break;case o("chrome/")||o("chrome"):a=/chrome\/(\d+)/.test(r)?" chrome"+RegExp.$1:"",i.push(c+" chrome"+a);break;case o("firefox/")||o("firefox"):a=/firefox\/(\d+)/.test(r)?" firefox"+RegExp.$1:"",i.push("gecko firefox"+a);break;case o("opera/")||o("opera"):a=/version(\s|\/)(\d+)/.test(r)||/opera(\s|\/)(\d+)/.test(r)?" opera"+RegExp.$2:"",i.push("opera"+a);break;case o("konqueror"):i.push(u+" konqueror");break;case o("blackberry")||o("bb"):i.push(u+" blackberry"),o("bb")&&(a=/bb(\d{1,2})(;{0,1})/.test(r)?"bb"+RegExp.$1:"",i.push(a));break;case o("safari/")||o("safari"):a=/version\/(\d+)/.test(r)||/safari\/(\d+)/.test(r)?" safari"+RegExp.$1:"",i.push(c+" safari"+a);break;case o("applewebkit/")||o("applewebkit"):a=/applewebkit\/(\d+)/.test(r)?" "+c+RegExp.$1:"",i.push(c+" "+a);break;case o("gecko")||o("mozilla/"):i.push("gecko")}switch(!0){case o("iphone")||o("ios"):" ios10"===(a=/iphone\sos\s(\d{1,2})/.test(r)?" ios"+RegExp.$1:"")&&(e=/(\d{1,2})/.test(a)?RegExp.$1:0,t=/\sversion\/(\d{1,2})/.test(r)?RegExp.$1:"",parseInt(e,10)>parseInt(t,10))&&(a=" ios"+t),i.push("ios"+a);break;case o("mac")||o("macintosh")||o("darwin"):a=/mac\sos\sx\s(\d{1,2}_\d{1,2})/.test(r)?" osx"+RegExp.$1:"",i.push("mac"+a);break;case o("windows")||o("win"):switch(a=/windows\s(nt\s{0,1})(\d{1,2}\.\d)/.test(r)?""+RegExp.$2:""){case"5.0":a=" win2k";break;case"5.01":a=" win2k sp1";break;case"5.1":case"5.2":a=" xp";break;case"6.0":a=" vista";break;case"6.1":a=" win7";break;case"6.2":a=" win8";break;case"6.3":a=" win8_1";break;case"6.4":a=" win10";break;default:a=" nt nt"+a}i.push("windows"+a);break;case o("webtv"):i.push("webtv");break;case o("freebsd"):i.push("freebsd");break;case o("android")||o("linux")&&o("mobile"):i.push("android");break;case o("linux")||o("x11"):i.push("linux")}switch(!0){case o("wow64")||o("x64"):i.push("x64");break;case o("arm"):i.push("arm");break;default:i.push("x32")}switch(!0){case o("j2me"):i.push(u+" j2me");break;case/(iphone|ipad|ipod)/.test(r):i.push(u+" "+RegExp.$1);break;case o("mobile"):i.push(u)}return/touch/.test(r)&&i.push("touch"),i.push("js"),i.push(void 0!==n&&"function"==typeof n.hasFeature&&n.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")?"svg":"no-svg"),i.push(void 0!==p.devicePixelRatio&&1<p.devicePixelRatio?"retina":"no-retina"),i.push(l<d?"portrait":"landscape"),i},h.documentElement.className.split(" "));return e=e(),i=(i=i.concat(e)).filter((e,t)=>i.indexOf(e)===t),t.className=i.join(" ").trim(),{detected:e.join(" ").trim(),version:"1.8.1"}}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});let h=p.document,t=h.documentElement;function i(){p.detectr=e(p.navigator.userAgent)}p.detectr=e(p.navigator.userAgent),p.attachEvent?p.attachEvent("onresize",i):p.addEventListener&&p.addEventListener("resize",i,!0)}n(window),i.default=n},{}],6:[function(e,t,i){let n={},s=jQuery;window.ravenChangeDocument=function(e){s(".elementor").find(".raven-document-handle-parent").remove(),window.elementorCommon.api.internal("panel/state-loading"),window.elementorCommon.api.run("editor/documents/switch",{id:e}).finally(function(){return n.handleFullPageEditorBtn(),window.elementorCommon.api.internal("panel/state-ready")})},n.handleFullPageEditorBtn=function(){s(".elementor").each(function(){var e;0<s(this).find(".raven-document-handle-parent").length&&0<s(this).find(".raven-document-handle-parent").children().length||s(this).hasClass("elementor-edit-area-active")||void 0!==(e=this.dataset.elementorTitle)&&(e='<div class="raven-document-handle" onclick="window.ravenChangeDocument('+s(this).attr("data-elementor-id")+')"><i class="fas fa-edit"></i>Edit '+e+"</div>",s(this).prepend('<div class="raven-document-handle-parent" style="display:none;"></div>'),s(this).find(".raven-document-handle-parent").append(e))})},n.handleHeaderBtns=function(){let t=0;s("main").length&&(t=s("main").offset().top),s(document).on("mouseenter","header",function(){var e;0<t||0!==(e=s("main .raven-document-handle-parent .raven-document-handle").clone().addClass("fixed-top-btn")).length&&(0===s("header .elementor").find(".raven-document-handle-parent").length&&(s("header .elementor").prepend('<div class="raven-document-handle-parent"></div>'),s("header .elementor .raven-document-handle-parent").prepend(e)),0<s("header .elementor").find(".raven-document-handle-parent").length)&&s("header .elementor .raven-document-handle-parent").append(e)}),s(document).on("mouseleave","header",function(){0===s("main .raven-document-handle-parent .raven-document-handle").length||0<t||s("header .elementor .raven-document-handle-parent .raven-document-handle.fixed-top-btn").remove()})},t.exports=n},{}],7:[function(e,t,i){let a={headerBehavior:!1,overlayContent:!1,normalizeHeaderSettings:e=>{var t,e=e&&"object"==typeof e?{...e}:{};return void 0===e.elementor_header_behavior&&(t=e.behavior,e.elementor_header_behavior=void 0===t||"static"===t?"normal":t),void 0===e.elementor_header_overlay_content&&(t=e.overlap,e.elementor_header_overlay_content=null!=t&&0<String(t).length?"yes":"no"),void 0===e.elementor_header_fixed_position&&void 0!==e.position&&(e.elementor_header_fixed_position=e.position),void 0===e.elementor_header_sticky_offset&&void 0!==e.offset&&(e.elementor_header_sticky_offset=e.offset),e},headerInstance(e){var t,i,n=e.parents(".jupiterx-header"),e=e.parents("body"),s=n.data("jupiterx-settings"),s=a.normalizeHeaderSettings(s);n.length<1||({elementor_header_behavior:t,elementor_header_overlay_content:i}=s,"normal"!==t&&a.handleHeaderBehavior(s,n,e),"yes"===i&&a.hadnleOverlayContent(e))},handleHeaderBehavior:(t,i,n)=>{var e=t.elementor_header_behavior;a.headerBehavior||(a.headerBehavior=!0,"sticky"===e&&jupiterx&&jupiterx.pubsub.subscribe("scroll",function(e){a.handleStickyHeader(e,t,i,n)}),"fixed"===e&&a.handleFixedHeader(t,i,n))},handleFixedHeader:(t,i,n)=>{var t=t.elementor_header_fixed_position,s=n.find(".jupiterx-site"),a=i.outerHeight(),t=t||"top";if(n.addClass("jupiterx-header-fixed"),i.addClass("jupiterx-header-custom"),"bottom"===t)s.css("padding-"+t,a),n.addClass("jupiterx-header-bottom");else{i.css("position","fixed"),s.css("padding-"+t,a);let e=a;s=n.offset();n.hasClass("admin-bar")&&(e=s.top),i.css("top",e)}},handleStickyHeader:(e,t,i,n)=>{i.height()<e?(n.addClass("jupiterx-header-stick"),(s=$(".jupiterx-header.jupiterx-header-sticky-custom.jupiterx-header-custom > .elementor:last-of-type:not(:first-of-type)")).length&&0<s.height()&&i.height(s.height())):(n.removeClass("jupiterx-header-stick"),i.attr("style",function(e,t){return t&&t.replace(/height[^;]+;?/g,"")}));var s=a.getOffset(t);s<e?n.addClass("jupiterx-header-sticked"):n.removeClass("jupiterx-header-sticked")},getOffset:e=>{var t=elementorFrontend.getCurrentDeviceMode(),i=e.elementor_header_sticky_offset,i=i||0;return"desktop"!==t&&e["elementor_header_sticky_offset_"+t]||i},hadnleOverlayContent:e=>{a.overlayContent||(a.overlayContent=!0,e.addClass("jupiterx-header-overlapped"))}};elementorFrontend.hooks.addAction("frontend/element_ready/global",function(e){a.headerInstance(e)})},{}],8:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e=((e=e("./module"))&&e.__esModule?e:{default:e}).default.extend({getDefaultSettings(){return{masonryContainer:".raven-masonry",columnClass:"raven-masonry-column",columns:this.getInstanceValue("columns")||3,columnsTablet:this.getInstanceValue("columns_tablet")||2,columnsMobile:this.getInstanceValue("columns_mobile")||1}},getDefaultElements(){return{$masonryContainer:this.$element.find(this.getSettings("masonryContainer"))}},run(){var e=this.getSettings(),t=`.elementor-element-${this.getID()} `+e.masonryContainer;savvior.grids[t]&&delete savvior.grids[t],savvior.init(t,{"screen and (min-width: 1025px)":{columnClasses:e.columnClass,columns:e.columns},"screen and (max-width: 1024px) and (min-width: 768px)":{columnClasses:e.columnClass,columns:e.columnsTablet},"screen and (max-width: 767px)":{columnClasses:e.columnClass,columns:e.columnsMobile}})},push(e){if(e){var i=this.getSettings(),i=`.elementor-element-${this.getID()} `+i.masonryContainer;let t=[];e.forEach(function(e){e=$(e);t.push(e[0])}),savvior.grids[i]&&savvior.addItems(i,t,{method:"append",clone:!1})}}});i.default=e},{"./module":9}],9:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=elementorModules.frontend.handlers.Base.extend({onSectionActivated:null,onEditorClosed:null,getInstanceValue(e){return $=jQuery,this.getElementSettings(this.getControlID(e))},getControlID(e){var t=this.getElementSettings("_skin");return t?t+"_"+e:e},scrollToContainer(e){let t=e.offset().top-50;var i=$("header").height(),n=document.querySelector("body");(n.classList.contains("jupiterx-header-fixed")||n.classList.contains("jupiterx-header-sticked"))&&(t=e.offset().top-i-50),window.scroll({top:t,behavior:"smooth"})},initEditorListeners(){let i=this;elementorModules.frontend.handlers.Base.prototype.initEditorListeners.apply(this,arguments),i.onSectionActivated&&i.editorListeners.push({event:"section:activated",to:elementor.channels.editor,callback(e,t){t.model.id===i.getID()&&i.onSectionActivated(e,t)}}),i.onEditorClosed&&i.editorListeners.push({event:"set:page:editor",to:elementor.getPanelView(),callback(e){e.model.id===i.getID()&&e.model.once("editor:close",function(){i.onEditorClosed()})}})},onMobile(){return jQuery(window).width()<=575.98},onTablet(){var e=jQuery(window).width();return 575.98<e&&e<=767.98},onDesktop(){return 767.98<jQuery(window).width()},isRtl(){return jQuery("body").hasClass("rtl")}});i.default=n},{}],10:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;class n extends elementorModules.Module{onInit(){this.$element=this.getSettings("$targetElement"),this.refresh()}refresh(){this.rulesVariables={},this.CSSTransformVariables=[],this.$element.css({transform:"",filter:"",opacity:"","will-change":""})}translateX(e,t){e.axis="x",e.unit="px",this.transform("translateX",t,e)}translateY(e,t){e.axis="y",e.unit="px",this.transform("translateY",t,e)}translateXY(e,t,i){this.translateX(e,t),this.translateY(e,i)}rotateX(e,t){e.axis="x",e.unit="deg",this.transform("rotateX",t,e)}rotateY(e,t){e.axis="y",e.unit="deg",this.transform("rotateY",t,e)}rotateZ(e,t){e.unit="deg",this.transform("rotateZ",t,e)}tilt(e,t,i){e={intensity:e.intensity/10,direction:e.direction};this.rotateX(e,i),this.rotateY(e,100-t)}opacity(e,t){t=this.getDirectionMovePoint(t,e.direction,e.viewport),e=e.intensity/10;this.$element.css({opacity:1-e+e*t/100,"will-change":"opacity"})}blur(e,t){t=this.getDirectionMovePoint(t,e.direction,e.viewport),e=e.intensity;this.updateRulePart("filter","blur",e-e*t/100+"px")}scale(e,t){t=this.getDirectionMovePoint(t,e.direction,e.viewport);this.updateRulePart("transform","scale",1+e.intensity*t/1e3)}transform(e,t,i){i.direction&&(t=100-t),this.updateRulePart("transform",e,this.getStep(t,i)+i.unit)}getDirectionMovePoint(t,i,n){if(t<n.start){let e=this.getMovePointFromPassedPercents(n.start,t);switch(i){case"out-in":return 0;case"in-out":return 100;case"out-in-out":return e;case"in-out-in":return 100-e}}if(t<n.end){let e=this.getMovePointFromPassedPercents(n.end-n.start,t-n.start);switch(i){case"out-in":return e;case"in-out":return 100-e;case"out-in-out":return 100;case"in-out-in":return 0}}let e=this.getMovePointFromPassedPercents(100-n.end,100-t);switch(i){case"out-in":return 100;case"in-out":return 0;case"out-in-out":return e;case"in-out-in":return 100-e}}getMovePointFromPassedPercents(e,t){return+(t/e*100).toFixed(2)}getStep(e,t){return"element"===this.getSettings("effectTarget")?-(e-50)*t.intensity:-this.getSettings("dimensions.movable"+t.axis.toUpperCase())*e/100}updateRulePart(e,t,i){this.rulesVariables[e]||(this.rulesVariables[e]={}),this.rulesVariables[e][t]||(this.rulesVariables[e][t]=!0,this.updateRule(e)),this.$element[0].style.setProperty("--"+t,i)}updateRule(e){var t="",t=(t+=this.concatTransformCSSProperties(e))+this.concatTransformMotionEffectCSSProperties(e);this.$element.css(e,t)}concatTransformCSSProperties(e){let s="";return"transform"===e&&jQuery.each(this.CSSTransformVariables,(e,t)=>{var i=t,n=(t=t.startsWith("flip")?t.replace("flip","scale"):t).startsWith("rotate")||t.startsWith("skew")?"deg":"px",n=t.startsWith("scale")?1:0+n;s+=t+`(var(--e-transform-${i}, ${n}))`}),s}concatTransformMotionEffectCSSProperties(e){let t="";return jQuery.each(this.rulesVariables[e],e=>{t+=e+`(var(--${e}))`}),t}setCSSTransformVariables(e){this.CSSTransformVariables=[],jQuery.each(e,(e,t)=>{e=e.match(/_transform_(.+?)_effect/m);e&&t&&("perspective"===e[1]?this.CSSTransformVariables.unshift(e[1]):this.CSSTransformVariables.includes(e[1])||this.CSSTransformVariables.push(e[1]))})}runAction(e,t,i,...n){["translateX","translateY","rotateZ"].includes(e)&&(t.viewport.start>i&&(i=t.viewport.start),t.viewport.end<i)&&(i=t.viewport.end),this[e](t,i,...n)}}i.default=n},{}],11:[function(i,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class n extends elementorModules.frontend.handlers.Base{__construct(...e){super.__construct(...e),this.normalMotion="raven_motion_effects",this.backgroundMotion="background_"+this.normalMotion,this.toggle=elementorFrontend.debounce(this.toggle,200)}onInit(){super.onInit(),this.initEffects(),this.addCSSTransformEvents(),this.toggle()}getDefaultSettings(){return{selectors:{container:".elementor-widget-container"},isOptimizedMarkupEnabled:"undefined"!=typeof elementorFrontend&&elementorFrontend?.config?.experimentalFeatures?.e_optimized_markup,isDefaultContainerExist:0<jQuery(this.$element).find(".elementor-widget-container")?.length}}getDefaultElements(){var e=this.getSettings("selectors"),t=this.getSettings("isOptimizedMarkupEnabled"),i=this.getSettings("isDefaultContainerExist");return t&&!i?{$container:jQuery(this.$element)}:{$container:jQuery(this.$element).find(e.container)}}bindEvents(){elementorFrontend.elements.$window.on("resize",this.toggle)}unbindEvents(){elementorFrontend.elements.$window.off("resize",this.toggle)}initEffects(){this.effects={translateY:{interaction:"scroll",actions:["translateY"]},translateX:{interaction:"scroll",actions:["translateX"]},rotateZ:{interaction:"scroll",actions:["rotateZ"]},scale:{interaction:"scroll",actions:["scale"]},opacity:{interaction:"scroll",actions:["opacity"]},blur:{interaction:"scroll",actions:["blur"]},mouseTrack:{interaction:"mouseMove",actions:["translateXY"]},tilt:{interaction:"mouseMove",actions:["tilt"]}}}addCSSTransformEvents(){this.getElementSettings(this.normalMotion+"_scrolling")&&!this.isTransitionEventAdded&&(this.isTransitionEventAdded=!0,this.elements.$container.on("mouseenter",()=>{this.elements.$container.css("--e-transform-transition-duration","")}))}prepareOptions(a){let o=this.getElementSettings();var e=this.normalMotion===a?"element":"background";let r={},t=(jQuery.each(o,(e,t)=>{var i=new RegExp("^"+a+"_(.+?)_fx"),e=e.match(i);if(e&&t){let n={},s=e[1];jQuery.each(o,(e,t)=>{var i=new RegExp(a+"_"+s+"_fx_(.+)"),e=e.match(i);e&&"fx"!==(i=e[1])&&("object"==typeof t&&(t=Object.keys(t.sizes).length?t.sizes:t.size),n[i]=t)});i=this.effects[s];let t=i.interaction;r[t]||(r[t]={}),i.actions.forEach(e=>r[t][e]=n)}}),this.$element),i;var n=this.getElementType(),s="section"===n||"container"===n||"column"===n;if(!0!==this.getSettings("isOptimizedMarkupEnabled")||this.getSettings("isDefaultContainerExist")||s||(s=[".elementor-element-overlay",".elementor-editor-element-settings",".elementor-editor-highlighted",".elementor-editor-section-settings",".elementor-editor-widget-settings",".elementor-editor-column-settings",".elementor-editor-active",".elementor-editor-lock"].join(", "),t=t.children().not(s).first()),"element"==e&&"section"!==n&&"container"!==n){i=t;let e;e="column"===n?elementorFrontend.config.legacyMode.elementWrappers?".elementor-column-wrap":".elementor-widget-wrap":".elementor-widget-container",0<jQuery(this.$element).find(e)?.length&&(t=t.find("> "+e))}s={effectTarget:e,interactions:r,elementSettings:o,$element:t,$dimensionsElement:i,refreshDimensions:this.isEdit,range:o[a+"_range"],classes:{element:"raven-motion-effects-element",parent:"raven-motion-effects-parent",perspective:"raven-motion-effects-perspective",backgroundType:"elementor-motion-effects-element-type-background",container:"elementor-motion-effects-container",layer:"elementor-motion-effects-layer"}};return s.range||"fixed"!==this.getCurrentDeviceSetting("_position")||(s.range="page"),"fixed"===this.getCurrentDeviceSetting("_position")&&(s.isFixedPosition=!0),"background"==e&&"column"===this.getElementType()&&(s.addBackgroundLayerTo=" > .elementor-element-populated"),s}activate(e){var t=this.prepareOptions(e);jQuery.isEmptyObject(t.interactions)||(this[e]=new(i("./motion-effects").default)(t))}deactivate(e){this[e]&&(this[e].destroy(),delete this[e])}toggle(){let n=elementorFrontend.getCurrentDeviceMode(),s=this.getElementSettings();[this.normalMotion,this.backgroundMotion].forEach(e=>{var t=s[e+"_devices"],t=!t||-1!==t.indexOf(n),i=s[e+"_scrolling"]||s[e+"_mouse"];if(t&&i)return this[e]?void this.refreshInstance(e):void this.activate(e);this.deactivate(e)})}refreshInstance(e){var t=this[e];t&&(e=this.prepareOptions(e),t.setSettings(e),t.refresh())}onElementChange(e){var t;/raven_motion_effects_((scrolling)|(mouse)|(devices))$/.test(e)?(this.normalMotion+"_scrolling"===e&&this.addCSSTransformEvents(),this.toggle()):((t=e.match(`.*?(${this.normalMotion}|_transform)`))&&(t=t[0].match("(_transform)")?this.normalMotion:t[0],this.refreshInstance(t),this[t]||this.activate(t)),/^_position/.test(e)&&[this.normalMotion,this.backgroundMotion].forEach(e=>{this.refreshInstance(e)}))}onDestroy(){super.onDestroy(),[this.normalMotion,this.backgroundMotion].forEach(e=>{this.deactivate(e)})}}t.default=n},{"./motion-effects":15}],12:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;class n extends elementorModules.ViewModule{constructor(...e){var t,i;super(...e),e=()=>{this.run(),this.animationFrameRequest=window.requestAnimationFrame(this.onInsideViewport)},(i="onInsideViewport")in(t=this)?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e}__construct(e){this.motionFX=e.motionFX,this.intersectionObservers||this.setElementInViewportObserver()}setElementInViewportObserver(){this.intersectionObserver=elementorModules.utils.Scroll.scrollObserver({callback:e=>{e.isInViewport?this.onInsideViewport():this.removeAnimationFrameRequest()}});var e=("page"===this.motionFX.getSettings("range")?elementorFrontend.elements.$body:this.motionFX.elements.$parent)[0];this.intersectionObserver.observe(e)}runCallback(...e){this.getSettings("callback")(...e)}removeIntersectionObserver(){this.intersectionObserver&&this.intersectionObserver.unobserve(this.motionFX.elements.$parent[0])}removeAnimationFrameRequest(){this.animationFrameRequest&&window.cancelAnimationFrame(this.animationFrameRequest)}destroy(){this.removeAnimationFrameRequest(),this.removeIntersectionObserver()}onInit(){super.onInit()}}i.default=n},{}],13:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e=(e=e("./base"))&&e.__esModule?e:{default:e};class n extends e.default{onInit(){this.mousePosition={},this.oldMousePosition={},super.onInit()}bindEvents(){n.mouseTracked||(elementorFrontend.elements.$window.on("mousemove",this.updateMousePosition),n.mouseTracked=!0)}run(){var e=n.mousePosition,t=this.oldMousePosition;t.x===e.x&&t.y===e.y||(this.oldMousePosition={x:e.x,y:e.y},t=100/window.innerWidth*e.x,this.runCallback(t,100/window.innerHeight*e.y))}updateMousePosition(e){n.mousePosition={x:e.clientX,y:e.clientY}}}n.mousePosition={};i.default=n},{"./base":12}],14:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e=(e=e("./base"))&&e.__esModule?e:{default:e};class n extends e.default{run(){if(window.scrollY===this.currentScrollFromTop)return!1;this.onScrollMovement(),this.currentScrollFromTop=window.scrollY}onScrollMovement(){this.updateMotionFxDimensions(),this.updateAnimation(),this.resetTransitionVariable()}resetTransitionVariable(){this.motionFX.$element.css("--e-transform-transition-duration","100ms")}updateMotionFxDimensions(){this.motionFX.getSettings().refreshDimensions&&this.motionFX.defineDimensions()}updateAnimation(){let e;e="page"===this.motionFX.getSettings("range")?elementorModules.utils.Scroll.getPageScrollPercentage():this.motionFX.getSettings("isFixedPosition")?elementorModules.utils.Scroll.getPageScrollPercentage({},window.innerHeight):elementorModules.utils.Scroll.getElementViewportPercentage(this.motionFX.elements.$parent),this.runCallback(e)}}i.default=n},{"./base":12}],15:[function(t,e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;class n extends elementorModules.ViewModule{getDefaultSettings(){return{effectTarget:"element",$element:null,$dimensionsElement:null,addBackgroundLayerTo:null,interactions:{},refreshDimensions:!1,range:"viewport",classes:{element:"raven-motion-effects-element",parent:"raven-motion-effects-parent",perspective:"raven-motion-effects-perspective",backgroundType:"elementor-motion-effects-element-type-background",container:"elementor-motion-effects-container",layer:"elementor-motion-effects-layer"}}}bindEvents(){this.onWindowResize=this.onWindowResize.bind(this),elementorFrontend.elements.$window.on("resize",this.onWindowResize)}unbindEvents(){elementorFrontend.elements.$window.off("resize",this.onWindowResize)}onInit(){super.onInit();var e=this.getSettings();this.$element=e.$element,this.$element.addClass(e.classes.element),this.elements.$parent=this.$element.parent(),this.elements.$parent.addClass(e.classes.parent),"background"===e.effectTarget&&(this.$element.addClass(e.classes.backgroundType),this.addBackgroundLayer()),this.defineDimensions(),e.$targetElement="element"===e.effectTarget?this.$element:this.elements.$motionFXLayer,this.interactions={},this.actions=new(t("./actions").default)(e),this.initInteractionsTypes(),this.runInteractions()}defineDimensions(){var e=this.getSettings("$dimensionsElement")||this.$element,t=e.offset(),t={elementHeight:e.outerHeight(),elementWidth:e.outerWidth(),elementTop:t.top,elementLeft:t.left,elementRange:e.outerHeight()+window.innerHeight};this.setSettings("dimensions",t),"background"===this.getSettings("effectTarget")&&this.defineBackgroundLayerDimensions()}initInteractionsTypes(){this.interactionsTypes={scroll:t("./interactions/scroll").default,mouseMove:t("./interactions/mouse").default}}runInteractions(){var e=this.getSettings();this.actions.setCSSTransformVariables(e.elementSettings),this.prepareSpecialActions(),jQuery.each(e.interactions,(e,t)=>{this.interactions[e]=new this.interactionsTypes[e]({motionFX:this,callback:(...i)=>{jQuery.each(t,(e,t)=>this.actions.runAction(e,t,...i))}}),this.interactions[e].run()})}prepareSpecialActions(){var e=this.getSettings(),t=!(!e.interactions.mouseMove||!e.interactions.mouseMove.tilt);this.elements.$parent.toggleClass(e.classes.perspective,t)}cleanSpecialActions(){var e=this.getSettings();this.elements.$parent.removeClass(e.classes.perspective)}destroyInteractions(){this.cleanSpecialActions(),jQuery.each(this.interactions,(e,t)=>t.destroy()),this.interactions={}}refresh(){this.actions.setSettings(this.getSettings()),"background"===this.getSettings("effectTarget")&&(this.updateBackgroundLayerSize(),this.defineBackgroundLayerDimensions()),this.actions.refresh(),this.destroyInteractions(),this.runInteractions()}destroy(){this.destroyInteractions(),this.actions.refresh();var e=this.getSettings();this.$element.removeClass(e.classes.element),this.elements.$parent.removeClass(e.classes.parent),"background"===e.effectTarget&&(this.$element.removeClass(e.classes.backgroundType),this.removeBackgroundLayer())}onWindowResize(){this.defineDimensions()}defineBackgroundLayerDimensions(){var e=this.getSettings("dimensions");e.layerHeight=this.elements.$motionFXLayer.height(),e.layerWidth=this.elements.$motionFXLayer.width(),e.movableX=e.layerWidth-e.elementWidth,e.movableY=e.layerHeight-e.elementHeight,this.setSettings("dimensions",e)}addBackgroundLayer(){var e=this.getSettings();this.elements.$motionFXContainer=jQuery("<div>",{class:e.classes.container}),this.elements.$motionFXLayer=jQuery("<div>",{class:e.classes.layer}),this.updateBackgroundLayerSize(),this.elements.$motionFXContainer.prepend(this.elements.$motionFXLayer),(e.addBackgroundLayerTo?this.$element.find(e.addBackgroundLayerTo):this.$element).prepend(this.elements.$motionFXContainer)}removeBackgroundLayer(){this.elements.$motionFXContainer.remove()}updateBackgroundLayerSize(){var e=this.getSettings(),t={x:0,y:0},i=e.interactions.mouseMove,e=e.interactions.scroll;i&&i.translateXY&&(t.x=10*i.translateXY.intensity,t.y=10*i.translateXY.intensity),e&&(e.translateX&&(t.x=10*e.translateX.intensity),e.translateY)&&(t.y=10*e.translateY.intensity),this.elements.$motionFXLayer.css({width:100+t.x+"%",height:100+t.y+"%"})}}i.default=n},{"./actions":10,"./interactions/mouse":13,"./interactions/scroll":14}],16:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;class n extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("global",e("./effects/handler").default,null),elementorFrontend.elementsHandler.attachHandler("section",e("./sticky/handler").default,null),elementorFrontend.elementsHandler.attachHandler("container",e("./sticky/handler").default,null),elementorFrontend.elementsHandler.attachHandler("widget",e("./sticky/handler").default,null),e("./sticky/sticky-script-manager")}}i.default=n},{"./effects/handler":11,"./sticky/handler":17,"./sticky/sticky-script-manager":18}],17:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=elementorModules.frontend.handlers.Base.extend({settingPrefix:"raven_motion_effects",stickyFunction:"ravenSticky",bindEvents(){elementorFrontend.addListenerOnce(this.getUniqueHandlerID()+this.stickyFunction,"resize",this.refresh)},unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID()+this.stickyFunction+"Sticky","resize",this.refresh)},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),elementorFrontend.isEditMode()&&elementor.listenTo(elementor.channels.deviceMode,"change",()=>this.onDeviceModeChange()),this.run()},run(e){var t;!this.getElementSettings(this.settingPrefix+"sticky")||(t=elementorFrontend.getCurrentDeviceMode(),-1===this.getElementSettings(this.settingPrefix+"sticky_on").indexOf(t))?this.deactivate():!0===e?this.reactivate():this.isStickyInstanceActive()||this.activate()},activate(){var e=this.getElementSettings(),t={to:e[this.settingPrefix+"sticky"],offset:this.getResponsiveSetting(this.settingPrefix+"sticky_offset"),effectsOffset:this.getResponsiveSetting(this.settingPrefix+"sticky_effects_offset"),classes:{sticky:"raven-sticky",stickyActive:"raven-sticky--active raven-section--handles-inside",stickyEffects:"raven-sticky--effects",spacer:"raven-sticky__spacer"}},e=(e[this.settingPrefix+"sticky_parent"]&&(t.parent=".e-container, .elementor-widget-wrap, .e-con"),elementorFrontend.elements.$wpAdminBar);e.length&&"top"===t.to&&"fixed"===e.css("position")&&(t.offset+=e.height()),this.$element[this.stickyFunction](t)},getResponsiveSetting(e){var t=this.getElementSettings();return elementorFrontend.getCurrentDeviceSetting(t,e)},getResponsiveSettingList(t){return["",...Object.keys(elementorFrontend.config.responsive.activeBreakpoints)].map(e=>e?t+"_"+e:t)},refresh(){this.run(!0)},reactivate(){this.deactivate(),this.activate()},deactivate(){this.isStickyInstanceActive()&&this.$element[this.stickyFunction]("destroy")},isStickyInstanceActive(){return void 0!==this.$element.data(this.stickyFunction)},onElementChange(e){var t=this.getElementSettings(this.settingPrefix+"sticky_on"),i=elementorFrontend.getCurrentDeviceMode();t?.includes(i)&&(-1!==[this.settingPrefix+"sticky",this.settingPrefix+"sticky_on"].indexOf(e)&&this.run(!0),-1!==[...this.getResponsiveSettingList(this.settingPrefix+"sticky_offset"),...this.getResponsiveSettingList(this.settingPrefix+"sticky_effects_offset"),this.settingPrefix+"sticky_parent"].indexOf(e))&&this.reactivate()},onDeviceModeChange(){setTimeout(this.refresh)},onDestroy(){elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this,arguments),this.deactivate()}});i.default=n},{}],18:[function(e,t,i){var n,s=(e=e("./sticky-script"))&&e.__esModule?e:{default:e};let a="ravenSticky";(n=jQuery).fn[a]=function(t){let i="string"==typeof t;return this.each(function(){if(i){var e=n(this).data(a);if(!e)throw Error("Trying to perform the `"+t+"` method prior to initialization");if(!e[t])throw ReferenceError("Method `"+t+"` not found in sticky instance");e[t].apply(e,Array.prototype.slice.call(arguments,1)),"destroy"===t&&n(this).removeData(a)}else n(this).data(a,new s.default(this,t))}),this},window[a]=s.default},{"./sticky-script":19}],19:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=class{constructor(e,t){this.prefix="raven",this.userSettings=t,this.element=e,this.$element=null,this.isSticky=!1,this.isFollowingParent=!1,this.isReachedEffectsPoint=!1,this.elements={},this.settings=null,this.defaultSettings={to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"raven-sticky",stickyActive:"raven-sticky--active raven-section--handles-inside",stickyEffects:"raven-sticky--effects",spacer:"raven-sticky__spacer"}},this.init()}init(){this.initSettings(),this.initElements(),this.bindEvents(),this.checkPosition()}initSettings(){this.settings=jQuery.extend(!0,this.defaultSettings,this.userSettings)}initElements(){this.$element=jQuery(this.element).addClass(this.settings.classes.sticky),this.elements.$window=jQuery(window),this.settings.parent&&(this.elements.$parent=this.$element.parent(),"parent"!==this.settings.parent)&&(this.elements.$parent=this.elements.$parent.closest(this.settings.parent))}checkPosition(){var e,t=this.settings.offset;let i;this.isSticky?(e=this.getElementViewportOffset(this.elements.$spacer),i="top"===this.settings.to?e.top.fromTop-t:-e.bottom.fromBottom-t,this.settings.parent&&this.checkParent(),0<i&&this.unstick()):(e=this.getElementViewportOffset(this.$element),(i="top"===this.settings.to?e.top.fromTop-t:-e.bottom.fromBottom-t)<=0&&(this.stick(),this.settings.parent)&&this.checkParent()),this.checkEffectsPoint(i)}backupCSS(e,t,i){let n=e[0].style,s={};i.forEach(e=>{s[e]=void 0!==n[e]?n[e]:""}),e.data(this.prefix+"-css-backup-"+t,s)}getCSSBackup(e,t){return e.data(this.prefix+"-css-backup-"+t)}addSpacer(){this.elements.$spacer=this.$element.clone().addClass(this.settings.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),this.$element.after(this.elements.$spacer)}removeSpacer(){this.elements.$spacer.remove()}stickElement(){this.backupCSS(this.$element,"unsticky",["position","width","margin-top","margin-bottom","top","bottom"]);var e={position:"fixed",width:this.getElementOuterSize(this.$element,"width"),marginTop:0,marginBottom:0};e[this.settings.to]=this.settings.offset,e["top"===this.settings.to?"bottom":"top"]="",this.$element.css(e).addClass(this.settings.classes.stickyActive)}unstickElement(){this.$element.css(this.getCSSBackup(this.$element,"unsticky")).removeClass(this.settings.classes.stickyActive)}followParent(){this.backupCSS(this.elements.$parent,"childNotFollowing",["position"]),this.elements.$parent.css("position","relative"),this.backupCSS(this.$element,"notFollowing",["position","top","bottom"]);var e={position:"absolute"};e[this.settings.to]="",e["top"===this.settings.to?"bottom":"top"]=0,this.$element.css(e),this.isFollowingParent=!0}unfollowParent(){this.elements.$parent.css(this.getCSSBackup(this.elements.$parent,"childNotFollowing")),this.$element.css(this.getCSSBackup(this.$element,"notFollowing")),this.isFollowingParent=!1}getElementOuterSize(e,t,i){let n=window.getComputedStyle(e[0]),s="height"===t?["top","bottom"]:["left","right"],a=parseFloat(n[t]);e=[];return"border-box"!==n.boxSizing&&e.push("border","padding"),i&&e.push("margin"),e.forEach(t=>{s.forEach(e=>{a+=parseFloat(n[t+"-"+e])})}),a}getElementViewportOffset(e){var t=this.elements.$window.scrollTop(),i=this.getElementOuterSize(e,"height"),n=window.innerHeight,e=e.offset().top-t,t=e-n;return{top:{fromTop:e,fromBottom:t},bottom:{fromTop:e+i,fromBottom:t+i}}}stick(){this.addSpacer(),this.stickElement(),this.isSticky=!0,this.$element.trigger(this.prefix+"Sticky:stick")}unstick(){this.unstickElement(),this.removeSpacer(),this.isSticky=!1,this.$element.trigger(this.prefix+"Sticky:unstick")}checkParent(){var e,t,i=this.getElementViewportOffset(this.$element),n="top"===this.settings.to;this.isFollowingParent?(n?i.top.fromTop>this.settings.offset:i.bottom.fromBottom<-this.settings.offset)&&this.unfollowParent():(t=this.getElementViewportOffset(this.elements.$parent),e=window.getComputedStyle(this.elements.$parent[0]),e=parseFloat(e[n?"borderBottomWidth":"borderTopWidth"]),t=n?t.bottom.fromTop-e:t.top.fromBottom+e,(n?t<=i.bottom.fromTop:t>=i.top.fromBottom)&&this.followParent())}checkEffectsPoint(e){this.isReachedEffectsPoint&&-e<this.settings.effectsOffset?(this.$element.removeClass(this.settings.classes.stickyEffects),this.isReachedEffectsPoint=!1):!this.isReachedEffectsPoint&&-e>=this.settings.effectsOffset&&(this.$element.addClass(this.settings.classes.stickyEffects),this.isReachedEffectsPoint=!0)}bindEvents(){this.scrollHandler=this.onWindowScroll.bind(this),this.resizeHandler=this.onWindowResize.bind(this),this.elements.$window.on({scroll:this.scrollHandler,resize:this.resizeHandler})}unbindEvents(){this.elements.$window.off("scroll",this.scrollHandler).off("resize",this.resizeHandler)}onWindowScroll(){this.checkPosition()}onWindowResize(){this.isSticky&&(this.unstickElement(),this.stickElement(),this.settings.parent)&&(this.isFollowingParent=!1,this.checkParent())}destroy(){this.isSticky&&this.unstick(),this.unbindEvents(),this.$element.removeClass(this.settings.classes.sticky)}}},{}],20:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e=((e=e("./module"))&&e.__esModule?e:{default:e}).default.extend({$clickedItem:null,getDefaultSettings(){return{classes:{fetching:"raven-pagination-fetching",disabled:"raven-pagination-disabled",reading:"raven-pagination-reading",spinner:"raven-pagination-spinner",activePage:"raven-pagination-active",item:"raven-pagination-item",pageNum:"raven-pagination-num",prevButton:"raven-pagination-prev",nextButton:"raven-pagination-next"},selectors:{activePage:".raven-pagination-active",pageNum:".raven-pagination-num",prevButton:".raven-pagination-prev",nextButton:".raven-pagination-next",spinner:".raven-pagination-spinner"},isEnabled:!0,activePage:1,totalPages:this.getElementSettings("total_pages"),pagesVisible:this.getElementSettings("pages_visible")}},getDefaultElements(){var e=this.getSettings("selectors");return{$prevButton:this.$element.find(e.prevButton),$nextButton:this.$element.find(e.nextButton)}},bindEvents(){this.$element.on("click",this.getSettings("selectors.pageNum"),this.handlePageNum),this.elements.$prevButton.on("click",this.handlePrev),this.elements.$nextButton.on("click",this.handleNext)},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments)},getTotalPages(){return parseInt(this.getSettings("totalPages"))},setTotalPages(e){this.setSettings("totalPages",parseInt(e))},getPagesVisible(){return parseInt(this.getSettings("pagesVisible"))},getActivePage(){return parseInt(this.getSettings("activePage"))},setActivePage(e){this.setSettings("activePage",parseInt(e))},setEnabled(e){this.setSettings("isEnabled",e)},isEnabled(){return this.getSettings("isEnabled")},recreatePagination(e,t=1){this.setTotalPages(e),this.setActivePage(t),this.renderUpdate()},renderUpdate(){var e=this.getSettings("classes"),t=this.getSettings("selectors");this.$element.removeClass(e.fetching),this.$clickedItem&&(this.$clickedItem.find(t.spinner).remove(),this.$clickedItem.removeClass(e.reading),this.$clickedItem=null),this.setEnabled(!0),this.renderNumbers(),this.updatePrevNext()},renderNumbers(){var e=this.getPages();if(e.length){var i=this.getSettings("selectors");let t=[];e.forEach(e=>{t.push(this.numberTemplate(e))}),this.$element.find(i.pageNum).remove(),this.elements.$prevButton.after(t)}},numberTemplate(e){var t=this.getSettings("classes"),i=$("<a></a>");return i.addClass(t.pageNum),i.addClass(t.item),i.toggleClass(t.activePage,e===this.getActivePage()),i.attr("href","#"),i.attr("data-page-num",e),i.html(e),i},updateActivePage(e){var t=this.getSettings("classes");this.$element.addClass(t.fetching),this.$clickedItem&&(this.$clickedItem.addClass(t.reading),this.$clickedItem.append(`<span class="${t.spinner}"></span>`)),this.setEnabled(!1),this.setActivePage(e)},updatePrevNext(){var e,t,i;this.getPages().length&&(e=this.getSettings("classes"),t=this.getActivePage(),i=this.getTotalPages(),this.elements.$prevButton.toggleClass(e.disabled,t<=1),this.elements.$nextButton.toggleClass(e.disabled,i<=t))},handlePageNum(e){e.preventDefault();var e=$(e.target),t=parseInt(e.data("page-num"));this.getActivePage()!==t&&this.triggerPagination(e,t)},handlePrev(e){e.preventDefault();var t=this.getSettings("classes"),e=$(e.target),i=this.getActivePage()-1;1<=i&&!e.hasClass(t.disabled)&&this.triggerPagination(e,i)},handleNext(e){e.preventDefault();var t=this.getSettings("classes"),e=$(e.target),i=this.getTotalPages(),n=this.getActivePage()+1;n<=i&&!e.hasClass(t.disabled)&&this.triggerPagination(e,n)},triggerPagination(e,t){this.isEnabled()&&(this.$clickedItem=e,this.updateActivePage(t),this.handlePagination(t))},getPages(){var e=this.getActivePage(),t=this.getPagesVisible(),i=this.getTotalPages(),n=[],s=Math.floor(t/2);let a=e-s,o=e+s,r=(a<=0&&(a=1,o=t),o>i&&(o=i),a);for(;r<=o;)n.push(r),r++;return n},handlePagination(){this.renderUpdate()}});i.default=e},{"./module":9}],21:[function(e,t,i){function n(){var e,n,r,l,i,t,d=window,c=document;function u(e,t){this.scrollLeft=e,this.scrollTop=t}function s(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){e=d.getComputedStyle(e,null)["overflow"+t];return"auto"===e||"scroll"===e}function p(e){for(var t,i;!1===((e=e.parentNode)===c.body)&&!1===(i=void 0,i=a(t=e,"Y")&&o(t,"Y"),t=a(t,"X")&&o(t,"X"),i||t););return e}function h(e){var t,i=l(),i=1<(i=(i-e.startTime)/n)?1:i,i=.5*(1-Math.cos(Math.PI*i));e.method.call(e.scrollable,t=e.startX+(e.x-e.startX)*i,i=e.startY+(e.y-e.startY)*i),t===e.x&&i===e.y||d.requestAnimationFrame(h.bind(d,e))}function m(e,t,i){var n,s,a,o=l(),e=e===c.body?(s=(n=d).scrollX||d.pageXOffset,a=d.scrollY||d.pageYOffset,r.scroll):(s=(n=e).scrollLeft,a=e.scrollTop,u);h({scrollable:n,method:e,startTime:o,startX:s,startY:a,x:t,y:i})}"scrollBehavior"in c.documentElement.style&&!0!==d.__forceSmoothScrollPolyfill__||(e=d.HTMLElement||d.Element,n=468,r={scroll:d.scroll||d.scrollTo,scrollBy:d.scrollBy,elementScroll:e.prototype.scroll||u,scrollIntoView:e.prototype.scrollIntoView},l=d.performance&&d.performance.now?d.performance.now.bind(d.performance):Date.now,t=d.navigator.userAgent,i=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(t)?1:0,d.scroll=d.scrollTo=function(){void 0!==arguments[0]&&(!0===s(arguments[0])?r.scroll.call(d,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:d.scrollX||d.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:d.scrollY||d.pageYOffset):m.call(d,c.body,void 0!==arguments[0].left?~~arguments[0].left:d.scrollX||d.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:d.scrollY||d.pageYOffset))},d.scrollBy=function(){void 0!==arguments[0]&&(s(arguments[0])?r.scrollBy.call(d,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):m.call(d,c.body,~~arguments[0].left+(d.scrollX||d.pageXOffset),~~arguments[0].top+(d.scrollY||d.pageYOffset)))},e.prototype.scroll=e.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0===s(arguments[0])){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)}else{var e=arguments[0].left,t=arguments[0].top;m.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}},e.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0===s(arguments[0])?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):this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}))},e.prototype.scrollIntoView=function(){var e,t,i;!0===s(arguments[0])?r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]):(t=(e=p(this)).getBoundingClientRect(),i=this.getBoundingClientRect(),e!==c.body?(m.call(this,e,e.scrollLeft+i.left-t.left,e.scrollTop+i.top-t.top),"fixed"!==d.getComputedStyle(e).position&&d.scrollBy({left:t.left,top:t.top,behavior:"smooth"})):d.scrollBy({left:i.left,top:i.top,behavior:"smooth"}))})}"object"==typeof i&&void 0!==t&&(t.exports={polyfill:n}),n()},{}],22:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e=((e=e("./module"))&&e.__esModule?e:{default:e}).default.extend({$clickedItem:null,getDefaultSettings(){return{classes:{fetching:"raven-sortable-fetching",reading:"raven-sortable-reading",spinner:"raven-sortable-spinner",activeItem:"raven-sortable-active"},selectors:{item:".raven-sortable-item",activeItem:".raven-sortable-active",spinner:".raven-sortable-spinner"},activeID:-1,isEnabled:!0}},getDefaultElements(){return{}},bindEvents(){this.$element.on("click",this.getSettings("selectors.item"),this.handleItemClick)},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments)},getActiveID(){return parseInt(this.getSettings("activeID"))},setActiveID(e){this.setSettings("activeID",parseInt(e))},setEnabled(e){this.setSettings("isEnabled",e)},isEnabled(){return this.getSettings("isEnabled")},renderUpdate(){var e=this.getSettings("classes"),t=this.getSettings("selectors");this.$element.removeClass(e.fetching),this.$element.find(t.activeItem).removeClass(e.activeItem),this.$clickedItem&&(this.$clickedItem.find(t.spinner).remove(),this.$clickedItem.removeClass(e.reading),this.$clickedItem.addClass(e.activeItem),this.$clickedItem=null),this.setEnabled(!0)},updateActiveItem(e){var t=this.getSettings("classes");this.$element.addClass(t.fetching),this.$clickedItem&&(this.$clickedItem.addClass(t.reading),this.$clickedItem.append(`<span class="${t.spinner}"></span>`)),this.setEnabled(!1),this.setActiveID(e)},handleItemClick(e){e.preventDefault();var e=$(e.target),t=parseInt(e.data("category")),i=this.getActiveID(),n=this.urlAnalyze();i!==t&&this.triggerSort(e,t),-1===i&&n.category&&-1!==n.category&&this.triggerSort(e,t)},triggerSort(e,t){this.isEnabled()&&(this.$clickedItem=e,this.updateActiveItem(t),this.handleSort(t))},handleSort(){this.renderUpdate()},urlAnalyze(){var e=new URL(window.location.href);return"1"===e.searchParams.get("jupiterx_filters")&&{paged:e.searchParams.get("jupiterx_page")?Number(e.searchParams.get("jupiterx_page")):1,category:e.searchParams.get("category")?Number(e.searchParams.get("category")):-1}}});i.default=e},{"./module":9}],23:[function(e,t,i){var r=(e=e("tippy.js"))&&e.__esModule?e:{default:e};let l=jQuery,d={widgetEditorSettings:i=>{let e,n={};if(!window.elementor.hasOwnProperty("elements"))return!1;if(!(e=window.elementor.elements).models)return!1;let s=!1;return l.each(e.models,function(e,t){"container"===t.attributes.elType&&(s=!0),l.each(t.attributes.elements.models,function(e,t){l.each(t.attributes.elements.models,function(e,t){i===t.id&&(n=t.attributes.settings.attributes)})})}),s&&l.each(e.models,function(e,t){l.each(t.attributes.elements.models,function(e,t){i===t.id&&(n=t.attributes.settings.attributes)})}),{tooltip:n.jupiter_widget_tooltip||"false",tooltipDescription:n.jupiter_widget_tooltip_description||"Lorem Ipsum",tooltipPlacement:n.jupiter_widget_tooltip_placement||"top",tooltipArrow:"yes"===n.jupiter_widget_tooltip_arrow,xOffset:n.jupiter_widget_tooltip_x_offset||0,yOffset:n.jupiter_widget_tooltip_y_offset||0,tooltipAnimation:n.jupiter_widget_tooltip_animation||"shift-toward",tooltipTrigger:n.jupiter_widget_tooltip_trigger||"mouseenter",customSelector:n.jupiter_widget_tooltip_custom_selector||"",zIndex:n.jupiter_widget_tooltip_z_index||"999",delay:n.jupiter_widget_tooltip_delay||"0",triggerTarget:l(n.jupiter_widget_tooltip_custom_selector)}},jupiterTooltipInstance(e){var t=e.data("id"),i=e[0],n=Boolean(elementorFrontend.isEditMode()),s=i;let o={},a=[];if(!l(i).hasClass("jet-tooltip-widget"))return o=n?d.widgetEditorSettings(t):e.data("jupiter-tooltip-settings"),i._tippy&&i._tippy.destroy(),!!o&&void 0!==o&&"true"===o.tooltip&&void 0!==o.tooltip&&""!==o.tooltipDescription&&(e.addClass("jupiter-tooltip-widget"),o.customSelector&&(a=l(o.customSelector)),n&&!l("#jupiter-tooltip-content-"+t)[0]&&((t=l("<div>",{id:"jupiter-tooltip-content-"+t,class:"jupiter-tooltip-widget__content"})).html(o.tooltipDescription),e.append(t)),(0,r.default)([s],{content:e.find(".jupiter-tooltip-widget__content")[0]?.innerHTML,allowHTML:!0,appendTo:i,arrow:!!o.tooltipArrow,placement:o.tooltipPlacement,offset:[o.xOffset,o.yOffset],animation:o.tooltipAnimation,trigger:o.tooltipTrigger,triggerTarget:0<a.length?[...a]:null,interactive:!0,zIndex:o.zIndex,maxWidth:"none",delay:o.delay.size||0,popperOptions:{strategy:"fixed"},onMount(e){var t=l("#tippy-"+e.id+" .tippy-box[data-placement^=top]>.tippy-arrow"),i=l("#tippy-"+e.id+" .tippy-box[data-placement^=bottom]>.tippy-arrow"),n=l("#tippy-"+e.id+" .tippy-box[data-placement^=left]>.tippy-arrow"),s=l("#tippy-"+e.id+" .tippy-box[data-placement^=right]>.tippy-arrow"),a=l("#tippy-"+e.id+" .tippy-box");switch(o.tooltipPlacement){case"top-start":case"top":case"top-end":t.css("bottom","-"+a.css("border-bottom-width"));break;case"right-start":case"right":case"right-end":s.css("left","-"+a.css("border-left-width"));break;case"bottom-start":case"bottom":case"bottom-end":i.css("top","-"+a.css("border-top-width"));break;case"left-start":case"left":case"left-end":n.css("right","-"+a.css("border-right-width"))}}}),void(n&&i._tippy&&i._tippy.show()))}};elementorFrontend.hooks.addAction("frontend/element_ready/widget",function(e){d.jupiterTooltipInstance(e)})},{"tippy.js":112}],24:[function(e,t,i){let n={RavenWrapperLinkInstance(a){a.data("raven-element-link")&&a.on("click.onWrapperLink",()=>{var e=a.data("raven-element-link"),t=a.data("id"),i=document.createElement("a");/^https?:\/\//i.test(e.url)||(e.url="http://"+e.url),i.id="raven-wrapper-link-"+t,i.href=e.url,i.target=e.is_external?"_blank":"_self",i.rel=e.nofollow?"nofollow noreferer":"",i.style.display="none",document.body.appendChild(i);let n=document.getElementById(i.id),s=(n.click(),setTimeout(()=>{document.body.removeChild(n),clearTimeout(s)}))})}};elementorFrontend.hooks.addAction("frontend/element_ready/global",function(e){n.RavenWrapperLinkInstance(e)})},{}],25:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};$=jQuery;let n=e.default.extend({getDefaultSettings(){return{selectors:{wrapper:".raven-product-add-to-cart",cartForm:"form.cart",tableBody:"tbody",singleVariationWrapper:".single_variation_wrap",variationFormHolder:".raven-variations-form-holder",qty:".quantity > div",plusMinus:".plus-minus-btn",qtyInput:".quantity .raven-qty-button-holder-inner input[type=number]",qtyInputText:".quantity input[type=text]",formResetButton:".artbees-was-reset-options"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$wrapper:this.$element.find(e.wrapper),$cartForm:this.$element.find(e.cartForm),$tableBody:this.$element.find(e.tableBody),$singleVariationWrapper:this.$element.find(e.singleVariationWrapper),$variationFormHolder:this.$element.find(e.variationFormHolder),$qty:this.$element.find(e.qty),$plusMinus:this.$element.find(e.plusMinus),$qtyInput:this.$element.find(e.qtyInput),$qtyInputText:this.$element.find(e.qtyInputText),$formResetButton:this.$element.find(e.formResetButton)}},bindEvents(){this.detectSellKitSwatch(),this.detectPlusMinus(),this.detectInputFocused(),this.removeInputSpinner(),this.moveResetButtonToTableBody(),this.onResetClearButton(),this.addDummyPriceToEditor(),0<this.$element.find(".sellkit-pro-deactive").length&&this.fixResetButtonIcon()},detectSellKitSwatch(){var e;this.isElementorEditor()&&(e=new CustomEvent("sellkitpro:swatches"),document.dispatchEvent(e))},detectPlusMinus(){this.elements.$plusMinus.on("click",e=>{var e=$(e.currentTarget),t=e.closest("form.cart").find(".qty"),i=parseFloat(t.attr("max")),n=parseFloat(t.attr("min")),s=parseFloat(t.attr("step"));let a=parseFloat(t.val());this.elements.$wrapper.hasClass("raven-product-grouped")&&isNaN(a)&&(a=0),e.is(".plus")?i&&i<=a?t.val(i):t.val(a+s):e.is(".minus")&&(n&&n>=a?t.val(n):1<a&&t.val(a-s))})},detectInputFocused(){this.elements.$qtyInput.on("focus",e=>{$(e.currentTarget).closest(".raven-qty-button-holder-inner").addClass("focused")}),this.elements.$qtyInput.on("focusout",e=>{$(e.currentTarget).closest(".raven-qty-button-holder-inner").removeClass("focused")})},removeInputSpinner(){this.elements.$qty.removeClass("input-group"),this.elements.$qty.removeClass("qty"),this.elements.$qty.find(".input-group-prepend").remove(),this.elements.$qty.find(".input-group-append").remove(),this.elements.$qtyInputText.attr("type","number")},moveResetButtonToTableBody(){var e=this.elements.$formResetButton;this.elements.$formResetButton.remove(),this.elements.$tableBody.append(e)},onResetClearButton(){0!==this.elements.$formResetButton.length&&this.elements.$formResetButton[0].addEventListener("click",()=>{var e=document.getElementsByClassName("artbees-was-content");e&&Object.entries(e).forEach(e=>{e[1].classList.remove("selected-attribute")})})},addDummyPriceToEditor(){if(this.isVariableProduct()&&$("form.variations_form.cart").wc_variation_form(),this.isElementorEditor()&&this.isVariableProduct()&&!this.hasDefaultAttributes()){let e="";var t='<div class="raven-dummy-price woocommerce-variation-price"><span class="price"><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>'+(e=(e=this.elements.$wrapper.data("price")?parseFloat(this.elements.$wrapper.data("price")).toFixed(2):e)||20)+"</bdi></span></span></div>";this.elements.$singleVariationWrapper.prepend(t),this.elements.$variationFormHolder.change(()=>{this.$element.find(".raven-dummy-price").hide()})}},fixResetButtonIcon(){var e=this.$element.find("#jupiterx-clear-variable-button-single-page"),t=e.text();e.wrapInner("<span>"),e.find("span").before('<i class="fa fa-refresh"></i>'),e.find("span").text(t)},isElementorEditor(){return document.body.classList.contains("elementor-editor-active")},isVariableProduct(){if(0!==this.elements.$cartForm.length)return this.elements.$cartForm[0].classList.contains("variations_form")},hasDefaultAttributes(){return 0!==this.$element.find(".has-default-attributes").length}})},{"../utils/module":9}],26:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let r=jQuery,n=e.default.extend({onInit(){this.accordionOnClick()},accordionOnClick(){let a=!1,e=this.getElementSettings(),o=this;e.collapsible&&"yes"===e.collapsible&&(a=!0),r(".jx-single-accordion-header").off().on("click",function(){var e=r(this).parents(".jupiterx-single-advanced-accordion-wrapper"),t=e.find(".jx-single-accordion-body"),i=t.css("display"),n=r(this).parents(".jupiterx-advanced-accordion-wrapper").find(".jx-single-accordion-body");let s;""!==i&&"none"!==i||(a&&n.slideUp("fast").addClass("jx-ac-body-none").removeClass("jx-ac-body-block").parent().addClass("jx-ac-inactive").removeClass("jx-ac-active"),t.slideDown("fast"),e.addClass("jx-ac-active").removeClass("jx-ac-inactive"),s=!1),"block"!==i||a||(t.slideUp("fast"),e.addClass("jx-ac-inactive").removeClass("jx-ac-active"),s=!0),s||o.handleScrollToContent(t),e.hasClass("jx-ac-last")&&(s&&e.find(".jx-single-accordion-header").removeClass("border-not-radius"),s||(e.find(".jx-single-accordion-header").addClass("border-not-radius"),e.find(".jx-single-accordion-body").addClass("border-is-radius")))})},handleScrollToContent(n){if("yes"===this.getElementSettings("scroll_to_content")){let e=0,t=(0<r("#wpadminbar").length&&(e=r("#wpadminbar").height()),this.getElementSettings("scrolling_delay")),i=this.getElementSettings("content_offset");setTimeout(()=>{r("html, body").animate({scrollTop:n.offset().top-i.size-e},t)},200)}}})},{"../utils/module":9}],27:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let u=jQuery,n=e.default.extend({mainLayout:null,mobileLayout:null,isRtl:!1,widgetParents:{},getDefaultSettings(){return{selectors:{menus:"ul.raven-adnav-menu",mainNav:"nav.raven-adnav-menu-main",mainMenu:"nav.raven-adnav-menu-main ul.raven-adnav-menu",mobileNav:"nav.raven-adnav-menu-mobile",mobileMenu:"nav.raven-adnav-menu-mobile ul.raven-adnav-menu",inPageMenuItems:'a[href*="#"]',toggleButton:".raven-adnav-menu-toggle-button",closeButton:".raven-adnav-menu-close-button",rootListItems:"ul.raven-adnav-menu > li",submenuLinks:"ul.raven-adnav-menu .submenu a"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$body:u("body"),$menus:this.$element.find(e.menus),$mainNav:this.$element.find(e.mainNav),$mainMenu:this.$element.find(e.mainMenu),$mobileNav:this.$element.find(e.mobileNav),$mobileMenu:this.$element.find(e.mobileMenu),$inPageMenuItems:this.$element.find(e.inPageMenuItems),$toggleButton:this.$element.find(e.toggleButton),$closeButton:this.$element.find(e.closeButton),$rootListItems:this.$element.find(e.rootListItems),$submenuLinks:this.$element.find(e.submenuLinks),$elementorElement:this.$element.closest(".elementor-element"),$parentSegment:this.$element.parentsUntil("div.jupiterx-site").last()}},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.mainLayout=this.elements.$mainNav.attr("data-layout"),this.mobileLayout=!!this.elements.$mobileNav.length&&this.elements.$mobileNav.attr("data-layout"),this.isRtl=u("body").hasClass("rtl"),this.initWidth=0===window.orientation||0===window.screen.orientation.angle?u(window).width():u(window).height(),this.isEdit&&"section_submenu"===elementor.panel.currentView.currentPageView.activeSection&&this.onSectionActivated("section_submenu"),this.deactivateMenu(),u(window).off("resize",this.deactivateMenu.bind(this)).on("resize",this.deactivateMenu.bind(this)),this.widgetParents={widget:this.$element,column:this.getParentColumn(),section:this.getParentSection(),container:this.getParentContainer()},this.initMainSmartMenu(),this.initMobileSmartMenu(),this.updateActiveListItems(),this.inPageMenuClick(),this.mobileMenuScroll(),this.handleLinksOnSubmenu(),this.bindEmptyHrefGuard()},bindEvents(){var e,t=this.elements.$mainNav.attr("data-layout"),t=("dropdown"===t&&this.elements.$toggleButton.on("click",this.toggleDropdown.bind(this)),"offcanvas"===t&&(this.elements.$toggleButton.on("click",this.toggleMenu.bind(this)),this.elements.$closeButton.on("click",this.toggleMenu.bind(this)),this.elements.$menus.on("select.smapi",this.onSideMenuItemClick.bind(this)),t=this.getElementSettings("offcanvas_appear_effect"),this.elements.$body.addClass("raven-adnav-menu-effect-"+t),this.elements.$toggleButton.on("click",this.doSideMenuEffects.bind(this)),this.elements.$closeButton.on("click",this.doSideMenuEffects.bind(this))),this.elements.$mobileNav.attr("data-layout"));"dropdown"===t?this.elements.$toggleButton.on("click",this.toggleDropdown.bind(this)):"side"===t?(this.elements.$toggleButton.on("click",this.toggleMenu.bind(this)),this.elements.$closeButton.on("click",this.toggleMenu.bind(this)),this.elements.$menus.on("select.smapi",this.onSideMenuItemClick.bind(this)),e=this.getElementSettings("side_menu_effect"),this.elements.$body.addClass("raven-adnav-menu-effect-"+e),this.elements.$toggleButton.on("click",this.doSideMenuEffects.bind(this)),this.elements.$closeButton.on("click",this.doSideMenuEffects.bind(this))):("full-screen"===t&&(this.elements.$toggleButton.on("click",this.toggleMenu.bind(this)),this.elements.$closeButton.on("click",this.toggleMenu.bind(this))),this.elements.$menus.on("show.smapi",(e,t)=>{t=u(t),t=t.dataSM?t.dataSM("parent-a"):null;t&&t.length&&(t.addClass("submenu-opened"),t.closest("li").addClass("submenu-opened"))}),this.elements.$menus.on("hide.smapi",(e,t)=>{t=u(t),t=t.dataSM?t.dataSM("parent-a"):null;t&&t.length&&(t.removeClass("submenu-opened"),t.closest("li").removeClass("submenu-opened"))}))},initMainSmartMenu(){let e={subIndicators:!1,rightToLeftSubMenus:this.isRtl},s=getComputedStyle(this.$element[0]).getPropertyValue("--submenu-spacing")&&this.$element?.css("--submenu-spacing")?parseInt(this.$element?.css("--submenu-spacing")):0;if("horizontal"===this.mainLayout||"vertical"===this.mainLayout){let i=this.elements.$elementorElement,n=this.getElementSettings("content_effect_content_overlay");0!==u(i[0]).parents(".jupiterx-header")&&"enabled"===n&&"horizontal"===this.mainLayout&&0===u(".jupiterx-main").find(".jupiterx-advanced-nav-content-effect-enabled-overlay").length&&u(".jupiterx-main").append('<div class="jupiterx-advanced-nav-content-effect-enabled-overlay"></div>'),e={...e,hideTimeout:300,hideFunction:e=>{e.removeClass("submenu-shown"),setTimeout(()=>{e.css("display","none"),"horizontal"===this.mainLayout&&(this.handleContentEffectsBlur("remove"),this.handleContentEffectsOverlay("remove"))},0)},showTimeout:0,showFunction:e=>{var t;this.setSubmenuWidth(e,s),this.setSubmenuPosition(e),e.css("display","block"),"horizontal"===this.mainLayout&&(t=this.getElementSettings("content_effect_blur_content"),0===u(i[0]).parents(".jupiterx-header")||"enabled"!==n&&"enabled"!==t||0===u(".jupiterx-main").find(".jupiterx-advanced-nav-content-effect-enabled-overlay").length&&u(".jupiterx-main").append('<div class="jupiterx-advanced-nav-content-effect-enabled-overlay"></div>'),"enabled"!==n&&"enabled"!==t||this.elements.$body[0].classList.add("jupiterx-advanced-nav-content-effect-enabled")),setTimeout(()=>{e.addClass("submenu-shown"),"horizontal"===this.mainLayout&&(this.handleContentEffectsBlur("add"),this.handleContentEffectsOverlay("add"))})},showOnClick:"click"===this.getElementSettings("submenu_trigger"),subMenusMinWidth:"0",subMenusMaxWidth:"110vw"}}"horizontal"===this.mainLayout&&(e={...e,bottomToTopSubMenus:"top"===this.getElementSettings("submenu_opening_position"),mainMenuSubOffsetY:s}),"vertical"===this.mainLayout&&this.elements.$mainMenu.addClass("sm-vertical"),this.elements.$mainMenu.smartmenus(e)},handleContentEffectsOverlay(e){var t,i=this.elements.$elementorElement;i[0].classList.contains("raven-blur-content-overlay-enabled")&&0!==u(i[0]).parents(".jupiterx-header").length&&(t=this.getElementSettings("content_effect_content_overlay"),0!==u(i[0]).parents(".jupiterx-header")&&"enabled"===t&&this.elements.$body[0].classList.add("jupiterx-advanced-nav-overlay-enabled"),"remove"===e?(this.elements.$body[0].classList.remove("jupiterx-advanced-nav-overlay-enabled"),u(".jupiterx-advanced-nav-content-effect-enabled-overlay").removeClass("jupiterx-advanced-nav-overlay-activated")):u(".jupiterx-advanced-nav-content-effect-enabled-overlay").addClass("jupiterx-advanced-nav-overlay-activated"))},handleContentEffectsBlur(e){var t=this.elements.$elementorElement;t[0].classList.contains("raven-blur-content-enabled")&&0!==u(t[0]).parents(".jupiterx-header").length&&(t=this.getElementSettings("content_effect_blur_intensity")?.size||5,"remove"===e?(u(".jupiterx-advanced-nav-content-effect-enabled-overlay").css("backdrop-filter",""),u(".jupiterx-advanced-nav-content-effect-enabled-overlay").removeClass("jupiterx-advanced-nav-overlay-activated")):(u(".jupiterx-advanced-nav-content-effect-enabled-overlay").addClass("jupiterx-advanced-nav-overlay-activated"),u(".jupiterx-advanced-nav-content-effect-enabled-overlay").css("backdrop-filter",`blur(${t}px)`)))},initMobileSmartMenu(){var e;this.elements.$mobileMenu.length&&(e={subIndicators:!1,subMenusMaxWidth:"1500px",rightToLeftSubMenus:this.isRtl,hideOnClick:!1,showOnClick:!0,collapsibleBehavior:"default"},this.elements.$mobileMenu.smartmenus(e))},toggleDropdown(){this.elements.$toggleButton.find(".hamburger").toggleClass("is-active"),"dropdown"===this.mainLayout?this.elements.$mainNav.slideToggle(250):(this.dropdownFullWidth(),this.elements.$mobileNav.slideToggle(250),this.dropdownFullWidth())},dropdownFullWidth(){var e,t,i=this.elements.$mobileNav;"stretch"===this.getElementSettings("full_width")&&(t=i[0]?.getBoundingClientRect().x,this.elements.$mobileNav.css("width",this.$element.closest("body")[0].getBoundingClientRect().width+"px").css("left",-t+"px"),t=this.elements.$elementorElement,e=this.elements.$toggleButton,t=t.offset().top+t.outerHeight()-e.offset().top,i.css("top",t))},doSideMenuEffects(){var t="offcanvas"===this.mainLayout;if("overlay"===this.getElementSettings(t?"offcanvas_appear_effect":"side_menu_effect"))this.elements.$body.hasClass("raven-adnav-menu-effect-overlayed")?(this.elements.$body.toggleClass("raven-adnav-menu-effect-overlayed"),this.togglePrepareParentForPushEffect(!1)):(this.elements.$body.addClass("raven-adnav-menu-effect-overlayed"),this.togglePrepareParentForPushEffect());else{var i=this.getElementSettings(t?"offcanvas_position":"side_menu_alignment");let e=parseInt(this.$element.css(t?"--offcanvas-box-width":"--menu-container-width"))||250;"right"===i&&(e=`-${e}px`),this.elements.$body.hasClass("raven-adnav-menu-effect-pushed")?(this.elements.$body.removeClass("raven-adnav-menu-effect-pushed").removeAttr("style"),this.togglePrepareParentForPushEffect(!1)):(t=this.isRtl?"margin-right":"margin-left",this.elements.$body.addClass("raven-adnav-menu-effect-pushed").css(t,e),this.togglePrepareParentForPushEffect())}},togglePrepareParentForPushEffect(e=!0){e?this.elements.$parentSegment.addClass("raven-adnav-menu-parent-segment").css("--adnav-menu-overlay-color",this.getElementSettings("offcanvas_overlay_color")):this.elements.$parentSegment.removeClass("raven-adnav-menu-parent-segment")},toggleMenu(){var e="offcanvas"===this.mainLayout?this.elements.$mainNav:this.elements.$mobileNav;e.toggleClass("raven-adnav-menu-active"),"full-screen"===this.mobileLayout&&this.elements.$body.toggleClass("raven-adnav-menu-effect-overlayed"),e.hasClass("raven-adnav-menu-active")?e.parents(".animated").addClass("raven-adnav-menu-parents-animation"):e.parents(".animated").removeClass("raven-adnav-menu-parents-animation"),0!==this.elements.$toggleButton.find(".hamburger").length&&this.elements.$toggleButton.find(".hamburger").toggleClass("is-active")},mobileMenuScroll(){let n=document.querySelectorAll(".raven-adnav-menu-mobile.raven-adnav-menu-full-screen"),s=null;for(let i=0;i<n.length;i++)n[i].addEventListener("touchstart",function(e){1===e.targetTouches.length&&(s=e.targetTouches[0].clientY)},{capture:!1,passive:!0}),n[i].addEventListener("touchmove",function(e){var t;1===e.targetTouches.length&&(t=e.targetTouches[0].clientY-s,0===n[i].scrollTop&&0<t&&e.cancelable&&0===u(e.target).parents(".raven-container").length&&e.preventDefault(),n[i].scrollHeight-n[i].scrollTop<=n[i].clientHeight)&&t<0&&e.cancelable&&0===u(e.target).parents(".raven-container").length&&e.preventDefault()},{capture:!1,passive:!0})},handleLinksOnSubmenu(){this.elements.$submenuLinks.on("click",e=>{e.stopPropagation()})},bindEmptyHrefGuard(){var e=this.elements.$mobileMenu;e.length&&e.off("click.adnavGuard").on("click.adnavGuard","a.raven-menu-item.has-submenu",function(e){var t=(u(e.currentTarget).attr("href")||"").trim().toLowerCase();""!==t&&"#"!==t&&"javascript:void(0)"!==t&&"javascript:;"!==t||e.preventDefault()})},inPageMenuClick(){let c=this;this.elements.$inPageMenuItems.on("click",t=>{var i=u(t.currentTarget).prop("href");let e=null;try{e=new window.URL(i)}catch(e){return}if(e.hash&&e.pathname===window.location.pathname){t.preventDefault(),c.deactivateMenu(),c.changeHamburgerState(!1),window.history.pushState(null,null,e.hash);i=u(e.hash);if(0!==i.length){var{behavior:t,overlap:n,position:s,template:a,stickyTemplate:o}=u(".jupiterx-header").data("jupiterx-settings"),o="sticky"===t&&(!o||o!==a),a=0<u(".jupiterx-header-sticked").length,r=u(".jupiterx-tbar").outerHeight()||0,l=u("#wpadminbar").height()||0,d=parseInt(u(".jupiterx-site-body-border").css("border-width"))||0;let e=i.offset().top;e=(e-=l)-d-r,a||t&&("sticky"!==t||!n)||(e-=r),o&&(i=u(".jupiterx-header-custom .elementor:last-of-type").outerHeight()||0,e-=i),o||"sticky"!==t&&("fixed"!==t||"top"!==s)||(e-=c.getHeaderHeight()),u("html, body").stop().animate({scrollTop:e},500,"swing")}}})},getHeaderHeight(){var e,t=u(".jupiterx-header");return 0!==t.length&&(e=t.data("jupiterx-settings").behavior,"fixed"===e||"sticky"===e||window.pageYOffset<t.height())?t.height():0},onElementChange(e){if("full_width"===e&&this.dropdownFullWidth(),(e.startsWith("menu_container_width")||e.startsWith("offcanvas_box_width"))&&this.elements.$body.hasClass("raven-adnav-menu-effect-pushed")){var t="offcanvas"===this.mainLayout,i=this.getElementSettings(t?"offcanvas_position":"side_menu_alignment");let e=parseInt(this.$element.css(t?"--offcanvas-box-width":"--menu-container-width"))||250;"right"===i&&(e=`-${e}px`);t=this.isRtl?"margin-right":"margin-left";this.elements.$body.css(t,e)}"submenu_space_between"===e&&(this.elements.$menus.smartmenus("destroy"),this.initMainSmartMenu())},onSectionActivated(e){"section_submenu"===e?(this.forceShowSubmenu(),this.showSubMenuInterval=setInterval(this.forceShowSubmenu,1e3)):clearInterval(this.showSubMenuInterval)},forceShowSubmenu(){var e=this.elements.$mainMenu.find("li ul.submenu");let t;e.each(function(){u(this).find("li:not(.submenu-template)").length&&(t=u(this).prev("a.raven-menu-item"))}),t?.length&&"none"===t.next("ul").css("display")&&this.elements.$menus.smartmenus("itemActivate",t)},onSideMenuItemClick(e,t){var t=u(t);0!==t.closest(".raven-adnav-menu-side,.raven-adnav-menu-offcanvas").length&&-1===(t=t.attr("href")).search(/^#/)&&0!==t.trim().length&&this.elements.$closeButton.trigger("click")},changeHamburgerState(e){var t=this.elements.$toggleButton.find(".hamburger");0!==t.length&&(e?t.addClass("is-active"):t.removeClass("is-active"))},updateActiveListItems(){this.elements.$rootListItems.each(function(){var e=0<u(this).children("a.active-link").length;u(this).toggleClass("current-menu-item",e)})},setSubmenuWidth(t,i){var e=t.closest("li.menu-item"),n=e.data("width_type");if("custom"===n)e=e.data("custom_width"),t.css("width",e);else if("vertical"===this.mainLayout){if("default"===n)return void t.css({width:"fit-content","max-width":this.widgetParents.widget.get(0).getBoundingClientRect().width-this.elements.$mainMenu.get(0).getBoundingClientRect().width-i+"px"});let e=this.widgetParents[n].get(0).getBoundingClientRect().width-this.elements.$mainMenu.get(0).getBoundingClientRect().width-i;void t.css("width",e+"px")}else if("default"===n)t.css({width:"fit-content","max-width":this.widgetParents.widget.get(0).getBoundingClientRect().width+"px"});else{let e=this.widgetParents[n].get(0).getBoundingClientRect().width;t.css("width",e+"px")}},setSubmenuPosition(n){var s=n.closest("li.menu-item");if("vertical"===this.mainLayout){let e=s.data("submenu_pos");e&&"center"!==e||(e=this.isRtl?"left":"right");var a=getComputedStyle(this.$element[0]).getPropertyValue("--submenu-spacing")&&this.$element?.css("--submenu-spacing")?parseInt(this.$element?.css("--submenu-spacing")):0,a=s.get(0).getBoundingClientRect().width+a;let t="right"===e?"unset":a,i="right"===e?a:"unset";void n.css({left:i,right:t})}else{a=s.data("width_type");if(["default","custom"].includes(a)){var i,o=s.data("submenu_pos");let e="unset",t="0";"right"===o&&(e="0",t="unset"),"center"===o&&(o=s.get(0).getBoundingClientRect().width,i=parseInt(n.css("width")),t=(o-i)/2+"px"),n.css({left:t,right:e})}else o=this.widgetParents[a].get(0).getBoundingClientRect().x,i=s.get(0).getBoundingClientRect().x,n.css("left",o-i+"px")}},getParentSection(){var e=this.$element.closest('section[data-element_type="section"]');return e.length||(e=this.$element.parents('[data-element_type="container"]').last()).length?e:void 0},getParentColumn(){var e=this.$element.closest('div[data-element_type="column"]');return e.length||(e=this.$element.closest('[data-element_type="container"]')).length?e:void 0},getParentContainer(){var e=this.$element.closest('[data-element_type="container"]');return e.length||(e=this.$element.closest('section[data-element_type="section"]')).length?e:void 0},deactivateMenu(){var e,t=0===window.orientation||0===window.screen.orientation.angle?u(window).width():u(window).height();"yes"!==this.getElementSettings("close_menu_on_scroll")&&t===this.initWidth||(t=this.elements.$mobileNav.hasClass("raven-adnav-menu-dropdown"),e=this.elements.$mainNav.css("display"),t&&"none"===e?(this.elements.$toggleButton.find(".hamburger").removeClass("is-active"),this.elements.$mobileNav.slideUp(250)):(this.elements.$body.removeClass(["raven-adnav-menu-effect-pushed","raven-adnav-menu-effect-overlayed"]).removeAttr("style"),this.elements.$parentSegment.removeClass("raven-adnav-menu-parent-segment"),this.elements.$mainNav.removeClass("raven-adnav-menu-active"),this.elements.$mobileNav.removeClass("raven-adnav-menu-active"),this.elements.$toggleButton.find(".hamburger").removeClass("is-active"),this.elements.$menus.find("a.raven-menu-item").removeClass("submenu-opened"),"dropdown"===this.mobileLayout&&this.elements.$mobileNav.slideUp(250),"dropdown"===this.mainLayout&&this.elements.$mainNav.slideUp(250)))}})},{"../utils/module":9}],28:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new o({$element:e})};var i=a(e("../utils/module")),n=a(e("../utils/pagination")),s=a(e("../utils/sortable"));function a(e){return e&&e.__esModule?e:{default:e}}let o=i.default.extend({Pagination:null,Sortable:null,getDefaultSettings(){return{classes:{postMirrored:"data-mirrored"},selectors:{posts:".advanced-posts-content",postItem:".raven-posts-item",postImage:".raven-post-image",pagination:".raven-pagination",loadMore:".raven-load-more",loadMoreButton:".raven-load-more-button",postImageFit:".raven-image-fit img",postMirrored:"[data-mirrored]",sortable:".raven-sortable",preLoader:".raven-posts-preloader",sortPreLoader:".raven-posts-sortable-preloader",postOverlay:".content-layout-overlay",infinteLoadIndicator:".raven-infinite-load"},state:{paged:1,category:-1,maxNumPages:1,isLoading:!1,renderedPosts:[]}}},getDefaultElements(){var e=this.getSettings("selectors");return{$postsWrapper:this.$element,$postsContainer:this.$element.find(e.posts),$postsImages:this.$element.find(e.postImage),$pagination:this.$element.find(e.pagination),$loadMore:this.$element.find(e.loadMore),$loadMoreButton:this.$element.find(e.loadMoreButton),$preLoader:this.$element.find(e.preLoader),$sortPreLoader:this.$element.find(e.sortPreLoader),$sortable:this.$element.find(e.sortable),$postOverlay:this.$element.find(e.postOverlay),$infinteLoadIndicator:this.$element.find(e.infinteLoadIndicator),$showedItems:0}},bindEvents(){this.handleQueryOnLoad(),this.handlePopstate(),"yes"===this.getInstanceValue("mirror_rows")&&elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.mirrorRows.bind(this));let e=this;window.addEventListener("resize",()=>{setTimeout(()=>{"masonry"===e.getInstanceValue("general_layout")&&e.masonryRun(),"matrix"===e.getInstanceValue("general_layout")&&e.matrixRun(500),"metro"===e.getInstanceValue("general_layout")&&e.metroRun(500)},500)})},onDeviceModeChange(){setTimeout(this.initialize(),0)},onElementChange(e){"metro_matrix_rows_gap"===e&&("metro"===this.getInstanceValue("general_layout")&&this.metroRun(0),"matrix"===this.getInstanceValue("general_layout"))&&this.matrixRun(0),"stroke_width"===e&&setTimeout(()=>{"masonry"===this.getInstanceValue("general_layout")&&this.masonryRun()},0),"metro_matrix_large_aspect_ratio"!==e&&"metro_matrix_small_aspect_ratio"!==e||setTimeout(()=>{"metro"===this.getInstanceValue("general_layout")&&this.metroRun(0),"matrix"===this.getInstanceValue("general_layout")&&this.matrixRun(0)},0),"rows_spacing"!==e&&"block_column_spacing"!==e||"masonry"===this.getInstanceValue("general_layout")&&setTimeout(()=>{this.masonryRun()},500)},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initializeOnce(),this.initialize(),elementorFrontend.isEditMode()&&elementor.listenTo(elementor.channels.deviceMode,"change",()=>this.onDeviceModeChange())},initialize(){"masonry"===this.getInstanceValue("general_layout")&&this.masonryRun(),"metro"===this.getInstanceValue("general_layout")&&this.elements.$postsContainer.imagesLoaded().progress(()=>{this.metroRun(0)}),"matrix"===this.getInstanceValue("general_layout")&&this.matrixRun(0),"yes"===this.getInstanceValue("mirror_rows")&&this.mirrorRows(),this.handleAnitmation(),this.handleFeaturedIamageEffect(),objectFitPolyfill(this.$element.find(this.getSettings("selectors.postImageFit")))},initializeOnce(){"yes"===this.getInstanceValue("show_sortable")&&this.sortableModule(),"page_based"===this.getInstanceValue("pagination_type")&&this.paginationModule(),"load_more"===this.getInstanceValue("pagination_type")&&this.elements.$loadMore.length&&this.loadMore(),"infinite_load"===this.getInstanceValue("pagination_type")&&this.infiniteLoadObserver()},handlePostsOrder(e){return"metro"===this.getInstanceValue("general_layout")&&e[0].classList.contains("raven-posts-full-width")?[...e.slice(1,3).reverse(),e[0],...e.slice(3,e.length)]:e[0].classList.contains("raven-posts-full-width")?[e[0],...e.slice(1,e.length).reverse()]:"matrix"===this.getInstanceValue("general_layout")?[...e]:[...e.reverse()]},createAnimationObserver(t,i,e,n,s){let a=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting&&!i.classList.contains("raven-advanced-posts-loaded")){let e=0<t.elements.$showedItems?n-t.elements.$showedItems:n;"slide-right"===s&&(e>t.elements.$showedItems&&(e-=t.elements.$showedItems),t.elements.$showedItems>e)&&(e=t.elements.$showedItems-e),setTimeout(()=>{i.classList.add("raven-advanced-posts-loaded"),t.elements.$showedItems=n,a.unobserve(i)},100*e)}})},e);a.observe(i)},handleAnitmation(){let o=[...this.elements.$postsContainer[0].querySelectorAll(".raven-posts-item:not(.raven-advanced-posts-loaded)")],r=this.getInstanceValue("load_effect"),l=this;this.elements.$postsContainer.imagesLoaded().done(()=>{let n=0;if("slide-right"===r){this.setColumnsCount();let i=this.getSettings().columnsCount;i||("metro"===this.getInstanceValue("general_layout")&&(i=3),"matrix"===this.getInstanceValue("general_layout")&&(i=4));var e=parseInt(o.length/i),t=o.length%i;if(o.length/i<=1)o=[...this.handlePostsOrder(o)];else{var s=[],a=[];for(let t=1;t<=e;++t){a=[];for(let e=s.length;e<t*i;++e)a.push(o[e]);s.push(...this.handlePostsOrder(a))}0<t&&s.push(...o.slice(-t).reverse()),o=s}}o.forEach((e,t)=>{var i;r&&!document.body.classList.contains("elementor-editor-active")||e.classList.contains("raven-advanced-posts-loaded")||(++n,setTimeout(()=>{e.classList.add("raven-advanced-posts-loaded")},200+100*n)),r&&(i={threshold:.4},l.createAnimationObserver(l,e,i,t,r))})})},addPosts(e,t=!1){var i=this.getSettings("state");return!(i.isLoading||i.paged<1||(this.ajaxPosts(e,this.appendPosts,t),0))},setPosts(e,t=!1,i=!1){return!this.getSettings("state").isLoading&&(this.ajaxPosts(e,this.renderPosts,t,i),!0)},handleSort(e){this.setPosts({paged:1,category:e})&&this.setSettings("state.category",e)},sortableModule(){var e;document.body.classList.contains("elementor-editor-active")||(e=s.default.extend({handleSort:this.handleSort.bind(this)}),this.Sortable=new e({$element:this.$element.find(this.getSettings("selectors.sortable"))}),this.elements.$sortable.on("click",".raven-sortable-item",e=>{e.currentTarget.classList.contains("raven-sortable-active")||(this.elements.$sortPreLoader[0].classList.add("active-preloader"),this.elements.$postsContainer.find(".raven-posts-item").delay("100").addClass("raven-posts-remove-animation"))}))},paginationModule(){var e;document.body.classList.contains("elementor-editor-active")||(e=n.default.extend({handlePagination:this.handlePagination.bind(this)}),this.Pagination=new e({$element:this.$element.find(this.getSettings("selectors.pagination"))}),this.elements.$pagination.on("click",".raven-pagination-item",e=>{e.currentTarget.classList.contains("raven-pagination-active")||(this.elements.$showedItems=0,this.elements.$preLoader[0].classList.add("active-preloader"))}))},loadMore(){let i=this.getSettings("state"),e=this.elements.$loadMore.data("settings");this.setPaged({paged:i.paged,maxNumPages:e.maxNumPages,renderedPosts:i.renderedPosts}),this.elements.$loadMoreButton.on("click",e=>{var t;e.preventDefault(),document.body.classList.contains("elementor-editor-active")||(this.elements.$preLoader[0].classList.add("active-preloader"),0===i.renderedPosts.length&&"rand"===this.getInstanceValue("query_orderby")&&"yes"===this.getInstanceValue("ignore_repetitive")&&this.setRenderedPost(),t=(e=this.getSettings("state")).paged+1,this.addPosts({paged:t,category:e.category,is_appended:!0,renderedPosts:this.getSettings("state.renderedPosts")}))})},createObserver(e,i,n){if(!(e.length<1)){let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(i(),t.disconnect())})},n);t.observe(e[0])}},infiniteLoadObserver(){let i=this;i.elements.$postsContainer.imagesLoaded().always(()=>{document.body.classList.contains("elementor-editor-active")||(0===i.getSettings("state.renderedPosts").length&&"rand"===i.getInstanceValue("query_orderby")&&"yes"===i.getInstanceValue("ignore_repetitive")&&i.setRenderedPost(),i.createObserver(i.elements.$infinteLoadIndicator,()=>{var e=i.getSettings("state"),t=e.paged+1;i.addPosts({paged:t,category:e.category,is_appended:!0,renderedPosts:e.renderedPosts})},{threshold:1}))})},handlePagination(e){this.scrollToContainer(this.elements.$postsContainer),0===this.getSettings("state.renderedPosts").length&&"rand"===this.getInstanceValue("query_orderby")&&"yes"===this.getInstanceValue("ignore_repetitive")&&this.setRenderedPost(),this.elements.$postsContainer.find(".raven-posts-item").delay("100").addClass("raven-posts-remove-animation"),this.setPosts({paged:e,category:this.getSettings("state.category"),renderedPosts:this.getSettings("state.renderedPosts")})},renderPosts(e,t=!1){this.elements.$postsContainer.empty(),this.elements.$postsContainer.append(e.posts),this.Sortable&&!this.Sortable.isEnabled()&&(this.Sortable.renderUpdate(),this.Pagination)&&this.Pagination.isEnabled()&&this.Pagination.recreatePagination(e.max_num_pages),this.Pagination&&!this.Pagination.isEnabled()&&this.Pagination.renderUpdate(),this.setPaged({paged:1,maxNumPages:e.max_num_pages,renderedPosts:e.rendered_posts}),t&&(t=this.urlAnalyze(),"page_based"===this.getInstanceValue("pagination_type")&&this.Pagination.recreatePagination(e.max_num_pages,t.paged),this.setPaged({paged:t.paged,maxNumPages:e.max_num_pages,renderedPosts:e.rendered_posts})),this.elements.$preLoader[0]?.classList?.remove("active-preloader"),this.elements.$sortPreLoader[0]?.classList?.remove("active-preloader"),this.initialize()},appendPosts(e,t=!1){var i=this.getSettings("state"),e=(this.elements.$postsContainer.append(e.posts),{paged:i.paged+1,maxNumPages:e.max_num_pages,renderedPosts:e.rendered_posts});t&&(e.paged=i.paged),this.setPaged(e),this.afterAppend()},afterAppend(){"yes"===this.getInstanceValue("mirror_rows")&&this.mirrorRows(),"infinite_load"===this.getInstanceValue("pagination_type")&&this.infiniteLoadObserver(),"masonry"===this.getInstanceValue("general_layout")&&this.masonryRun(),"metro"===this.getInstanceValue("general_layout")&&this.metroRun(0),"matrix"===this.getInstanceValue("general_layout")&&this.matrixRun(0),["metro","matrix"].includes(this.getInstanceValue("general_layout"))||this.handleAnitmation(),this.handleFeaturedIamageEffect(),this.elements.$preLoader[0]?.classList?.remove("active-preloader"),this.elements.$sortPreLoader[0]?.classList?.remove("active-preloader")},ajaxPosts(a,o,r=!1,l=!1){let e=this.elements.$postsContainer.data("archive-query"),d=this;var t={action:"raven_render_advanced_posts",post_id:this.getCurrentPostId(),model_id:this.getID(),paged:a.paged,category:a.category,renderedPosts:JSON.stringify(a.renderedPosts),nonce:ravenTools.nonce,main_post_id:elementorFrontendConfig?.post?.id};a.should_append&&(t.should_append=!0),e&&(t.archive_query=JSON.stringify(e));this.setSettings("state.isLoading",!0),wp.ajax.post(t).done(function(e){(e=e).posts&&(r?o(e,r):o(e)),d.setSettings("state.isLoading",!1);var t,i,e={jupiterx_filters:1,jupiterx_page:a.paged},n=(a.category&&(e.category=a.category),a.is_appended&&(e.is_appended=a.is_appended),window.location.href),n=new URL(n),s=new URLSearchParams(n.search);for([t,i]of Object.entries(e))s.set(t,i);n.search=s.toString(),e=n.toString(),l||window.history.pushState({path:e},"",e)})},getCurrentPostId(){return parseInt(this.elements.$postsContainer.data("post-id"))},setPaged(e){let{paged:t,maxNumPages:i,renderedPosts:n}=e;this.elements.$loadMore.attr("data-paged",t),t>=i&&(t=-1),this.elements.$loadMore.attr("data-paged-next",t),this.elements.$loadMore.show(),-1===t&&this.elements.$loadMore.hide(),this.setSettings("state.paged",t),this.setSettings("state.maxNumPages",i),this.setSettings("state.renderedPosts",n)},mirrorRows(){this.setColumnsCount();var t=this.getSettings(),i=this.$element.find(t.selectors.postItem);if(i.filter(t.selectors.postMirrored).removeAttr(t.classes.postMirrored),i.length&&i.length>t.columnsCount){var n=i.length/t.columnsCount;for(let e=1;e<n;e+=2){var s=e*t.columnsCount;i.slice(s,s+t.columnsCount).attr(t.classes.postMirrored,!0)}}},setColumnsCount(){var e=elementorFrontend.getCurrentDeviceMode();let t="desktop"===e?"columns":"columns_"+e;this.setSettings("columnsCount",parseInt(this.getInstanceValue(t)))},setGapSize(){var e=elementorFrontend.getCurrentDeviceMode();let t="desktop"===e?"metro_matrix_rows_gap":"metro_matrix_rows_gap_"+e;this.setSettings("gapSize",parseInt(this.getInstanceValue(t)?.size))},masonryRun(){var e=!document.body.classList.contains("rtl");this.elements.$postsContainer.data("isotope")&&this.elements.$postsContainer.isotope("reloadItems").isotope(),this.elements.$postsContainer.isotope({itemSelector:".raven-masonry-item",masonry:{layoutMode:"fitRows"},transitionDuration:0,sortBy:"original-order",isOriginLeft:e})},metroRun(e){this.setGapSize();let s=this,t=this.getSettings().gapSize?this.getSettings().gapSize:0,i=elementorFrontend.getCurrentDeviceMode(),n=!document.body.classList.contains("rtl"),a=(s.elements.$postsContainer.data("isotope")&&s.elements.$postsContainer.isotope("reloadItems").isotope(),Math.floor((s.elements.$postsContainer.parent().width()+t)/4)),o=2*a;"tablet"===i&&(a*=2,o=2*a),"mobile"===i&&(a*=4,o=a),s.elements.$postsContainer.find(".raven-metro-item").each((e,t)=>{let i=a,n=a;t.classList.contains("raven-posts-full-width")&&(i=o,n=o),i&&(t.style.width=i+"px"),s.elements.$postsContainer[0].classList.contains("content-layout-under-image")||(t.style.height=n+"px")}),setTimeout(()=>{s.elements.$postsContainer.isotope({itemSelector:".raven-metro-item",layoutMode:"packery",percentPosition:!0,sortBy:"original-order",transitionDuration:0,gutter:10,isOriginLeft:n}),s.elements.$postsContainer.isotope("once","arrangeComplete",()=>{setTimeout(()=>s.handleAnitmation(),100)})},e)},matrixRun(e){let t=this,n=elementorFrontend.getCurrentDeviceMode(),i=!document.body.classList.contains("rtl"),s=(t.elements.$postsContainer.data("isotope")&&t.elements.$postsContainer.isotope("reloadItems").isotope(),Math.floor(t.elements.$postsContainer.width()/3)),a=3*s;"mobile"===n&&(s*=3,a=s),t.elements.$postsContainer.find(".raven-matrix-item").each((e,t)=>{let i=s;(i=t.classList.contains("raven-posts-full-width")?a:i)&&(t.style.width=i+"px"),"mobile"===n&&(t.style.paddingRight=0)}),setTimeout(()=>{t.elements.$postsContainer.isotope({itemSelector:".raven-matrix-item",layoutMode:"packery",packery:{isFitWidth:!0},percentPosition:!0,sortBy:"original-order",transitionDuration:0,isOriginLeft:i}),t.elements.$postsContainer.isotope("once","arrangeComplete",()=>{setTimeout(()=>t.handleAnitmation(),100)})},e)},handleFeaturedIamageEffect(){var e=this.getInstanceValue("featured_image_hover");if(e&&"zoom-move"===e&&!(this.elements.$postsImages.length<1)){let e=this.elements.$postsContainer.find(".raven-posts-item:not(.raven-advanced-posts-loaded)").find(".raven-post-image");(e=0<this.elements.$postOverlay.length?this.elements.$postOverlay.find(".raven-posts-item:not(.raven-advanced-posts-loaded)").find(".raven-post-wrapper"):e).on("mouseout",e=>{e=e.currentTarget.querySelector(".raven-posts-zoom-move-wrapper");e&&(e.style.transform="perspective(900px) translate3d(0px, 0px, 0px) scale(1)")}),e.on("mousemove",e=>{var t=e.currentTarget.getBoundingClientRect(),i=((t.width+35)/t.width).toFixed(2),n=((t.height+35)/t.height).toFixed(2),s=e.currentTarget.querySelector(".raven-posts-zoom-move-wrapper"),a=t.width/2-(e.clientX-t.left),e=t.height/2-(e.clientY-t.top),a=a/t.width*30,e=e/t.height*30;s&&(s.style.transform=`perspective(900px) translate3d(${a}px, ${e}px, 0px) scale(${Math.max(i,n)})`)}),this.elements.$postOverlay.length<1||document.body.classList.contains("elementor-editor-active")||e.on("click",e=>{e=e.currentTarget.querySelector(".raven-post-image").href;e&&window.location.assign(e)})}},handleQueryOnLoad(){var e=this.urlAnalyze();e&&(this.setSettings("state.paged",e.paged),this.setSettings("state.category",e.category),this.elements.$postsContainer.find(".raven-posts-item").delay("100").addClass("raven-posts-remove-animation"),"yes"===this.getInstanceValue("show_sortable")&&(this.elements.$sortable.find(".raven-sortable-item").removeClass("raven-sortable-active"),this.elements.$sortable.find(`.raven-sortable-item[data-category="${e.category}"]`).addClass("raven-sortable-active")),!0===e.should_append&&this.elements.$infinteLoadIndicator.length?(this.elements.$postsContainer.empty(),this.addPosts(e,!0),this.afterAppend()):this.setPosts(e,!0))},handlePopstate(){"page_based"!==this.getInstanceValue("pagination_type")&&!this.urlAnalyze()||window.addEventListener("popstate",()=>{let e=this.urlAnalyze();e=e||{paged:1,category:-1},this.elements.$postsContainer.empty(),this.setPosts(e,!0,!0)})},urlAnalyze(){var e,t=new URL(window.location.href);return"1"===t.searchParams.get("jupiterx_filters")&&(e={paged:t.searchParams.get("jupiterx_page")?Number(t.searchParams.get("jupiterx_page")):1,category:t.searchParams.get("category")?Number(t.searchParams.get("category")):-1},t.searchParams.get("is_appended")&&(e.should_append=!0),e)},setRenderedPost(){var e=this.$element.find(".raven-post-content"),t={};let i=[];e.each(function(){var e=$(this).data("id");i.push(e)}),t.page="1",t.ids=i,this.setSettings("state.renderedPosts",[t])}})},{"../utils/module":9,"../utils/pagination":20,"../utils/sortable":22}],29:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){t.find(".raven-alert-dismiss").on("click",e=>{e.preventDefault(),t.fadeOut()})}},{}],30:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let r=jQuery,n=e.default.extend({svgPaths:{circle:["M325,18C228.7-8.3,118.5,8.3,78,21C22.4,38.4,4.6,54.6,5.6,77.6c1.4,32.4,52.2,54,142.6,63.7 c66.2,7.1,212.2,7.5,273.5-8.3c64.4-16.6,104.3-57.6,33.8-98.2C386.7-4.9,179.4-1.4,126.3,20.7"],underline_zigzag:["M9.3,127.3c49.3-3,150.7-7.6,199.7-7.4c121.9,0.4,189.9,0.4,282.3,7.2C380.1,129.6,181.2,130.6,70,139 c82.6-2.9,254.2-1,335.9,1.3c-56,1.4-137.2-0.3-197.1,9"],x:["M497.4,23.9C301.6,40,155.9,80.6,4,144.4","M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7"],strikethrough:["M3,75h493.5"],curly:["M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6"],diagonal:["M13.5,15.5c131,13.7,289.3,55.5,475,125.5"],double:["M8.4,143.1c14.2-8,97.6-8.8,200.6-9.2c122.3-0.4,287.5,7.2,287.5,7.2","M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8"],double_underline:["M5,125.4c30.5-3.8,137.9-7.6,177.3-7.6c117.2,0,252.2,4.7,312.7,7.6","M26.9,143.8c55.1-6.1,126-6.3,162.2-6.1c46.5,0.2,203.9,3.2,268.9,6.4"],underline:["M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7"]},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.intersectionObservers={startAnimation:{observer:null,element:null}},this.isLoopMode="yes"===this.getElementSettings("loop"),this._headingInitialized=!1,this._clipLoopToken=0,this.activateScrollListener()},applyBaseStyles(){var e=this.getElementSettings("animation_type"),t="clip"===e,e=-1!==["flip","slide","slide-down","drop-in"].indexOf(e);this.elements.$dynamicWrapper.css({display:"inline-block",overflow:t?"hidden":"visible",whiteSpace:"normal",width:"",minWidth:"",height:"",minHeight:"",position:t?"relative":"static",verticalAlign:"baseline"}),this.$element.find(".raven-heading-text-wrapper").css({verticalAlign:"baseline"}),e?this.elements.$dynamicText.css({display:"",position:"",whiteSpace:"inherit",lineHeight:"inherit",verticalAlign:"baseline"}):this.elements.$dynamicText.css({display:"inline",position:"static",whiteSpace:"inherit",lineHeight:"inherit",verticalAlign:"baseline"})},getDefaultSettings(){var e=this.getElementSettings("rotate_iteration_delay"),e={animationDelay:e||2500,lettersDelay:.02*e||50,typeLettersDelay:.06*e||150,selectionDuration:.2*e||500,revealDuration:.24*e||600,revealAnimationDelay:.6*e||1500,highlightAnimationDuration:this.getElementSettings("highlight_animation_duration")||1200,highlightAnimationDelay:this.getElementSettings("highlight_iteration_delay")||8e3};return e.typeAnimationDelay=e.selectionDuration+800,e.selectors={heading:".raven-heading",dynamicWrapper:".raven-heading-dynamic-wrapper",dynamicText:".raven-heading-dynamic-text"},e.classes={dynamicText:"raven-heading-dynamic-text",dynamicLetter:"raven-heading-dynamic-letter",textActive:"raven-heading-text-active",textInactive:"raven-heading-text-inactive",letters:"raven-heading-letters",animationIn:"raven-heading-animation-in",typeSelected:"raven-heading-typing-selected",activateHighlight:"raven-animated",hideHighlight:"raven-hide-highlight",typingCursor:"raven-heading-typing-cursor",clipRail:"raven-heading-clip-rail",clipCursor:"raven-heading-clip-cursor"},e},getDefaultElements(){var e=this.getSettings("selectors");return{$heading:this.$element.find(e.heading),$dynamicWrapper:this.$element.find(e.dynamicWrapper),$dynamicText:this.$element.find(e.dynamicText)}},ensureClipInner(e){let t=e.children(".raven-clip-inner");return t.length||((t=r("<span>",{class:"raven-clip-inner"})).append(e.contents()),e.append(t),t.css({display:"inline-block",whiteSpace:"inherit",overflow:"visible",verticalAlign:"baseline",position:"relative"})),t},ensureClipOverlay(e){let t=e.children(".raven-clip-overlay");return t.length||(t=r("<span>",{class:"raven-clip-overlay"}),e.append(t),t.css({position:"absolute",top:0,left:0,width:0,height:0,backgroundColor:"transparent",borderRight:"none",borderLeft:"none",pointerEvents:"none",zIndex:2,willChange:"left,width,right"}),e.css({position:"relative",zIndex:1})),t.css({boxShadow:"none",borderLeft:"2px solid currentColor",borderRight:"0"}),t},ensureClipVeil(e,t){let i=e.children(".raven-clip-veil");return i.length||(i=r("<span>",{class:"raven-clip-veil"}),e.append(i),t=this.getEffectiveBackgroundColor(t[0]),i.css({position:"absolute",left:0,right:0,top:0,height:0,backgroundColor:t,pointerEvents:"none",zIndex:1}),e.css({position:"relative"})),i},ensureClipCustomCss(){var e;document.getElementById("raven-clip-custom-style")||((e=document.createElement("style")).id="raven-clip-custom-style",e.textContent=".raven-heading-animation-type-clip .raven-heading-dynamic-wrapper.raven-clip-custom::after{display:none!important;content:none!important;}",document.head.appendChild(e))},getLineRectsRelative(e){var i=[],n=e[0];if(n&&n.firstChild){e=e.children(".raven-clip-overlay, .raven-clip-veil");let t=[];e.each(function(){t.push(this.style.display),this.style.display="none"});var s=document.createRange(),a=(s.selectNodeContents(n),s.getClientRects()),o=n.getBoundingClientRect();for(let e=0;e<a.length;e++){var r=a[e];i.push({top:r.top-o.top,bottom:r.bottom-o.top,left:r.left-o.left,right:r.right-o.left,width:r.width,height:r.height})}s.detach(),e.each(function(e){this.style.display=t[e]||""})}return i},normalizeLineRects(e){if(!e||!e.length)return[];e=e.slice().filter(e=>.5<e.width&&.5<e.height).sort((e,t)=>e.top-t.top||e.left-t.left);let a=[];return e.forEach(e=>{var t=e.top+e.height/2;let i=null;for(let e=0;e<a.length;e++){var n=a[e],s=n.top+n.height/2;if(Math.abs(t-s)<=.75){i=n;break}}i?(i.left=Math.min(i.left,e.left),i.right=Math.max(i.right,e.right),i.width=i.right-i.left,i.top=Math.min(i.top,e.top),i.bottom=Math.max(i.bottom,e.bottom),i.height=i.bottom-i.top):a.push({top:e.top,bottom:e.bottom,left:e.left,right:e.right,width:e.width,height:e.height})}),a.sort((e,t)=>e.top-t.top)},getInlineDirection(e){try{return"rtl"===window.getComputedStyle(e[0]).direction?"rtl":"ltr"}catch(e){return"ltr"}},getEffectiveBackgroundColor(e){let t=e;for(var i=e=>!e||"transparent"===(e=String(e).trim().toLowerCase())||/^rgba\([^,]+,[^,]+,[^,]+,\s*0\s*\)$/.test(e);t;){try{var n=window.getComputedStyle(t).backgroundColor;if(!i(n))return n}catch(e){}t=t.parentElement}try{var s=window.getComputedStyle(document.body).backgroundColor;if(!i(s))return s}catch(e){}return"#ffffff"},animateClip(n,s,a,o,r,l){let d=Date.now(),c=()=>{var e=Date.now(),e=Math.min(1,(e-d)/o),t=s+(a-s)*e,i="inset(0 "+(100-t)+"% 0 0)";n.css({clipPath:i,WebkitClipPath:i}),r&&r(t),e<1?setTimeout(c,16):l&&l()};var e="inset(0 "+(100-s)+"% 0 0)";n.css({clipPath:e,WebkitClipPath:e}),setTimeout(c,0)},getNaturalOuterWidth(e){var e=e.clone(),t=(e.css({position:"absolute",visibility:"hidden",left:"-9999px",top:"-9999px",display:"inline-block",whiteSpace:"normal",width:"auto"}),r(document.body).append(e),e.outerWidth());return e.remove(),t},getInlineFlowWidth(e){var t,i;return e&&e.length?(t={display:e[0].style.display,visibility:e[0].style.visibility,position:e[0].style.position,left:e[0].style.left,top:e[0].style.top},e.css({display:"inline",visibility:"hidden",position:"static",left:"",top:""}),i=e.outerWidth(),e[0].style.display=t.display||"",e[0].style.visibility=t.visibility||"",e[0].style.position=t.position||"",e[0].style.left=t.left||"",e[0].style.top=t.top||"",i):0},getWrapperAutoWidthForWord(e){var t=this.elements.$dynamicWrapper;if(!t||!t.length)return 0;e=e&&e.length?e:this.elements.$dynamicText.filter("."+this.getSettings("classes").textActive).eq(0);if(!e.length)return Math.max(0,t.outerWidth()||0);var i={width:t[0].style.width,visibility:t[0].style.visibility,position:t[0].style.position,display:t[0].style.display},n=e[0].style.display;try{t.css({width:"auto",visibility:"hidden",display:"inline-block"}),e.css({display:"inline"}),t[0].offsetWidth;var s=t[0].getBoundingClientRect();return Math.max(0,Math.ceil(s.width)+1)}finally{t[0].style.width=i.width||"",t[0].style.visibility=i.visibility||"",t[0].style.position=i.position||"",t[0].style.display=i.display||"",e[0].style.display=n||""}},sleep(t){return new Promise(function(e){setTimeout(e,t)})},waitForAnimationEnd(n,s){return new Promise(function(e){let t=!1;function i(){t||(t=!0,n.off("animationend.ravenEngine animationcancel.ravenEngine"),e())}n.off("animationend.ravenEngine animationcancel.ravenEngine").one("animationend.ravenEngine animationcancel.ravenEngine",i),s&&setTimeout(i,s+50)})},waitForWidthTransition(n,s){return new Promise(function(t){let i=!1;function e(e){i||e&&"width"!==e.propertyName||(i=!0,n.off("transitionend.ravenEngine"),t())}n.off("transitionend.ravenEngine").one("transitionend.ravenEngine",e),s&&setTimeout(e,s+50)})},showClipWord(t){let e=this.getSettings(),s=(t.addClass(e.classes.textActive).removeClass(e.classes.textInactive),t.css({display:"inline",position:"static",opacity:1,verticalAlign:"baseline"}),t.siblings(this.getSettings("selectors").dynamicText).css({display:"none"}),this.ensureClipInner(t)),a=this.ensureClipOverlay(s);a.stop(!0),a.css({display:"block",height:"100%"});let o="rtl"===this.getInlineDirection(t),r=this.getNaturalOuterWidth(t),i=(s.css({willChange:"clip-path, -webkit-clip-path",display:"inline-block"}),e=>{var t=s[0]?s[0].getBoundingClientRect():null,t=t?t.width:r,e=Math.max(0,t*e/100),i=Math.round(e),n=Math.max(2,i+2);this.elements.$dynamicWrapper.width(n),o?(n=Math.max(0,Math.round(t-e)-1),a.css({left:"auto",right:n,width:0})):(t=Math.max(0,i-1),a.css({left:t,right:"auto",width:0}))});let n=()=>{this.animateClip(s,100,0,e.revealDuration,i,()=>{var e=this.getNextWord(t);t.css({display:"none"}),this.switchWord(t,e),this.showClipWord(e)})};this.elements.$dynamicWrapper.width(2),this.animateClip(s,0,100,e.revealDuration,i,()=>{setTimeout(()=>n(),e.selectionDuration)})},debugLog(){},getComputedSnapshot(e){try{var t,i;return e&&e[0]?(i=(t=e[0]).getBoundingClientRect(),{exists:!0,tag:t.tagName,className:t.className,rect:{top:Math.round(i.top),left:Math.round(i.left),width:Math.round(i.width),height:Math.round(i.height)}}):{exists:!1}}catch(e){return{exists:!1}}},forceReflow(e){try{e&&e[0]&&e[0].offsetWidth}catch(e){}},getWordsSnapshot(){return[]},logOverlayState(){},computeNaturalSizes(){let s=this.getSettings("classes"),a=0,o=0;this.elements.$dynamicText.each(function(){var e=r(this),t=e.clone(),i=(t.removeClass(s.textActive+" "+s.textInactive+" "+s.animationIn),t.find("."+s.dynamicLetter).removeClass(s.animationIn),t.css({position:"absolute",visibility:"hidden",left:"-9999px",top:"-9999px",width:"auto",height:"auto",whiteSpace:"normal",display:"inline-block"}),r(document.body).append(t),t.outerWidth()),n=t.outerHeight();e.data("natural-width",i),e.data("natural-height",n),n>a&&(a=n),i>o&&(o=i),t.remove()}),"clip"===this.getElementSettings("animation_type")?this.elements.$dynamicWrapper.css({display:"inline",minWidth:"",width:"",overflow:"visible"}):this.elements.$dynamicWrapper.css({display:"inline-block",minWidth:"",width:"",overflow:"visible"}),this.maxWordHeight=a},getNextWord(e){return e.is(":last-child")?e.parent().children().eq(0):e.next()},switchWord(e,t){e.removeClass("raven-heading-text-active").addClass("raven-heading-text-inactive"),t.removeClass("raven-heading-text-inactive").addClass("raven-heading-text-active");var i=this.elements.$heading.hasClass(this.getSettings("classes").letters),n=this.getElementSettings("animation_type"),s=["flip","slide","slide-down","drop-in"],i=(i||-1!==s.indexOf(n)?(e.css({position:"absolute",left:0,top:0,display:"inline",pointerEvents:"none"}),t.css({position:"static",display:"inline",pointerEvents:""})):(e.css({display:"none",position:"",visibility:""}),t.css({display:"inline",position:"",visibility:""})),!i&&-1===s.indexOf(n)&&"clip"!==n&&"typing"!==n);i&&this.setDynamicWrapperWidth(t,!0),t&&t[0]&&t[0].offsetWidth,this.elements.$dynamicWrapper&&this.elements.$dynamicWrapper[0]&&this.elements.$dynamicWrapper[0].offsetWidth,this.debugLog("switchWord",{from:e&&e.text&&e.text(),to:t&&t.text&&t.text()}),this.setDynamicWrapperWidth(t)},singleLetters(){let s=this.getSettings("classes");this.elements.$dynamicText.each(function(){let i=r(this),n=i.hasClass(s.textActive),e=i.contents().toArray();i.empty(),e.forEach(e=>{3===e.nodeType?e.nodeValue.split("").forEach(e=>{var t=r("<span>",{class:s.dynamicLetter});" "===e?t.html("&nbsp;"):t.text(e),n&&t.addClass(s.animationIn),i.append(t)}):1===e.nodeType&&"BR"===e.nodeName?i.append("<br>"):1===e.nodeType&&i.append(r(e).clone())}),i.css("opacity",1)}),"typing"===this.getElementSettings("animation_type")&&this.createTypingCursor()},createTypingCursor(){var e=this.getSettings("classes");this.elements.$dynamicWrapper.find("."+e.typingCursor).remove(),this.$cursor=r("<span>",{class:e.typingCursor,"aria-hidden":"true"}).text("|"),this.positionCursor()},positionCursor(){var e=this.getSettings("classes"),t=this.elements.$dynamicText.filter("."+e.textActive);this.$cursor&&t.length&&(this.$cursor.detach(),0<(e=t.find("."+e.dynamicLetter+"."+e.animationIn)).length?e.last().after(this.$cursor):t.prepend(this.$cursor))},getNextLetter(e){var t=this.getSettings("classes");return e.nextAll("."+t.dynamicLetter).eq(0)},showLetter(e,t,i,n){let s=this,a=this.getSettings("classes"),o=(e.addClass(a.animationIn),"typing"===this.getElementSettings("animation_type")&&this.positionCursor(),this.getNextLetter(e));o&&o.length?setTimeout(function(){s.showLetter(o,t,i,n)},n):i||setTimeout(function(){s.hideWord(t)},s.getSettings("animationDelay"))},hideLetter(e,t,i,n){let s=this,a=this.getSettings(),o=(e.removeClass(a.classes.animationIn),"typing"===this.getElementSettings("animation_type")&&this.positionCursor(),this.getNextLetter(e));o&&o.length?setTimeout(function(){s.hideLetter(o,t,i,n)},n):(i&&setTimeout(function(){s.hideWord(s.getNextWord(t))},s.getSettings("animationDelay")),t.css({position:"absolute",left:0,top:0,opacity:0,display:"inline",pointerEvents:"none"}))},showWord(e,t){var i=this.getSettings(),n=this.getElementSettings("animation_type");if("typing"!==n)return"clip"===n?this.showClipWord(e):void 0;e.css({display:"inline",position:"static",opacity:1,pointerEvents:""}),this.elements.$dynamicWrapper.css("width",""),e.siblings(i.selectors&&i.selectors.dynamicText?i.selectors.dynamicText:"."+i.classes.dynamicText).css({display:"none"}),this.showLetter(e.find("."+i.classes.dynamicLetter).eq(0),e,!1,t),e.addClass(i.classes.textActive).removeClass(i.classes.textInactive)},hideWord(t){let i=this,e=i.getSettings(),n=e.classes,s="."+n.dynamicLetter,a=i.getElementSettings("animation_type"),o=i.getNextWord(t);if(this.isLoopMode||!t.is(":last-child"))if("typing"===a)o.css({display:"inline",position:"static",opacity:1,pointerEvents:""}),this.elements.$dynamicWrapper.css("width",""),i.$cursor&&i.$cursor.hide(),i.elements.$dynamicWrapper.addClass(n.typeSelected),setTimeout(function(){i.elements.$dynamicWrapper.removeClass(n.typeSelected),t.addClass(e.classes.textInactive).removeClass(n.textActive).children(s).removeClass(n.animationIn),i.$cursor&&i.$cursor.show()},e.selectionDuration),setTimeout(function(){i.showWord(o,e.typeLettersDelay)},e.typeAnimationDelay);else if(i.elements.$heading.hasClass(n.letters))t.removeClass(n.textActive).addClass(n.textInactive),o.removeClass(n.textInactive).addClass(n.textActive),o.css({position:"static",opacity:1,display:"inline",pointerEvents:""}),t.css({display:"none",position:"absolute",left:0,top:0,opacity:0,pointerEvents:"none"}),r=t.children(s).length>=o.children(s).length,i.hideLetter(t.find(s).eq(0),t,r,e.lettersDelay),i.showLetter(o.find(s).eq(0),o,r,e.lettersDelay),i.setDynamicWrapperWidth(o);else if("clip"===a)t.css({display:"none"}),i.switchWord(t,o),i.showWord(o);else if(-1!==["flip","slide","slide-down","drop-in"].indexOf(a)){var r=t.data("natural-width")||i.getNaturalOuterWidth(t);let e=o.data("natural-width")||i.getNaturalOuterWidth(o);i.elements.$dynamicWrapper.css("width",Math.max(2,r)),o.removeClass(n.textActive).addClass(n.textInactive),o.css({display:"none",position:"static",opacity:1,pointerEvents:""}),t.removeClass(n.textActive).addClass(n.textInactive),void t.off("animationend.ravenAH").one("animationend.ravenAH",function(){t.css({display:"none"}),o.css({display:"inline"}),o[0]&&o[0].offsetWidth,o.removeClass(n.textInactive).addClass(n.textActive),i.elements.$dynamicWrapper.css("width",Math.max(2,e)),setTimeout(function(){i.hideWord(o)},500)})}else i.switchWord(t,o),setTimeout(function(){i.hideWord(o)},e.animationDelay)},setDynamicWrapperWidth(i,n=!1){var s=this.getElementSettings("animation_type");if("clip"!==s&&"typing"!==s&&this.elements.$dynamicWrapper&&this.elements.$dynamicWrapper[0]){let t=this.elements.$dynamicWrapper;s=i&&i.length?i:this.elements.$dynamicText.filter("."+this.getSettings("classes").textActive).eq(0),i=this.elements.$heading.hasClass(this.getSettings("classes").letters);let e=Math.max(2,this.getWrapperAutoWidthForWord(s)+(i?2:0));var s=parseFloat(t[0].style.width)||0,a=Math.max(2,Math.round(t[0].getBoundingClientRect().width||0));n&&!i?(s||(t.css("width",a),t[0].offsetWidth),t.off("transitionend.ahWidth").on("transitionend.ahWidth",e=>{e&&"width"!==e.propertyName||t.off("transitionend.ahWidth")}),(window.requestAnimationFrame||window.setTimeout)(()=>{t.css("width",e)},16)):t.css("width",e)}},animateHeading(){let e=this,t=e.getElementSettings("animation_type"),i=e.elements.$dynamicWrapper;e.computeNaturalSizes(),"clip"!==t&&"typing"!==t?(s=e.elements.$dynamicText.filter("."+e.getSettings("classes").textActive),e.setDynamicWrapperWidth(s.length?s:e.elements.$dynamicText.eq(0))):"clip"===t?(s=e.elements.$dynamicText.eq(0).data("natural-width")||e.elements.$dynamicText.eq(0).outerWidth(),e.elements.$dynamicWrapper.width(Math.max(2,s+10))):e.elements.$dynamicWrapper.css("width",""),"clip"===t&&i.width(Math.max(2,i.width()+10));let n=e.elements.$dynamicText.eq(0);var s=e.getNextWord(n);-1!==["flip","slide","slide-down","drop-in"].indexOf(t)&&e.elements.$dynamicText.not(n).removeClass(e.getSettings("classes").textActive+" "+e.getSettings("classes").textInactive),s.addClass(e.getSettings("classes").textInactive).removeClass(e.getSettings("classes").textActive),"clip"===t?(e.elements.$dynamicText.not(n).css({display:"none"}),e.showWord(n)):(n.addClass(e.getSettings("classes").textActive).removeClass(e.getSettings("classes").textInactive),e.elements.$heading.hasClass(e.getSettings("classes").letters)&&n.find("."+e.getSettings("classes").dynamicLetter).addClass(e.getSettings("classes").animationIn),setTimeout(function(){e.hideWord(n)},e.getSettings("animationDelay")))},getSvgPaths(e){e=this.svgPaths[e];let t=r();return e.forEach(function(e){t=t.add(r("<path>",{d:e}))}),t},addHighlight(){var e=this.getElementSettings(),e=r("<svg>",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"}).html(this.getSvgPaths(e.marker));this.elements.$dynamicWrapper.append(e[0].outerHTML)},rotateHeading(){var t=this.getSettings();if(this.elements.$heading.hasClass(t.classes.letters)&&this.singleLetters(),this.applyBaseStyles(),this.elements.$heading.hasClass(t.classes.letters))this.elements.$dynamicWrapper.css({position:"relative"}),this.elements.$dynamicText.not("."+t.classes.textActive).css({display:"inline",position:"absolute",left:0,top:0,opacity:0,pointerEvents:"none"}),this.elements.$dynamicText.filter("."+t.classes.textActive).css({display:"inline",position:"static",opacity:1,whiteSpace:"normal",maxWidth:"100%",overflow:"visible"});else{this.elements.$dynamicText.not("."+t.classes.textActive).css({display:"none",position:"",visibility:""}),this.elements.$dynamicText.filter("."+t.classes.textActive).css({display:"inline",position:"static",visibility:"",whiteSpace:"normal",maxWidth:"100%",overflow:"visible"});let e=["flip","slide","slide-down","drop-in"];if(-1!==e.indexOf(this.getElementSettings("animation_type"))){this.elements.$dynamicWrapper.css({position:"relative"});let e=this.elements.$dynamicText.filter("."+t.classes.textActive);e.length||(e=this.elements.$dynamicText.eq(0).addClass(t.classes.textActive)),this.elements.$dynamicText.not(e).removeClass(t.classes.textActive+" "+t.classes.textInactive),this.elements.$dynamicText.not(e).css({display:"",position:"absolute",left:0,top:0,pointerEvents:"none"}),e.css({display:"",position:"static",pointerEvents:""})}}"clip"===this.getElementSettings("animation_type")&&(this.elements.$dynamicWrapper.addClass("raven-clip-custom"),this.ensureClipCustomCss());t=this.getElementSettings("animation_type");let e=["flip","slide","slide-down","drop-in"];if(-1!==e.indexOf(t))return this.runOverlayLoop();this.animateHeading()},getOverlayOutDurationMs(){switch(this.getElementSettings("animation_type")){case"flip":return 1200;case"slide":case"slide-down":return 600;default:return 800}},async runOverlayLoop(){var e=this.getSettings().classes,t=this.getElementSettings("animation_type"),i=this.elements.$dynamicText;let n=i.filter("."+e.textActive).eq(0);n.length||(n=i.eq(0)).addClass(e.textActive).removeClass(e.textInactive),-1!==["flip","slide","slide-down","drop-in"].indexOf(t)?(i.not(n).css({position:"absolute",left:0,top:0,pointerEvents:"none"}),n.css({position:"static",pointerEvents:""})):(i.not(n).css({display:"none",position:"static",opacity:1}),n.css({display:"inline",position:"static",opacity:1})),this.elements.$dynamicWrapper.css("width","");for(var s=this.getOverlayOutDurationMs();;){var a=this.getNextWord(n);if(-1!==["flip","slide","slide-down","drop-in"].indexOf(t)?(this.elements.$dynamicText.not(n).removeClass(e.textActive+" "+e.textInactive),a.removeClass(e.textActive+" "+e.textInactive),a.css({position:"absolute",left:0,top:0,pointerEvents:"none"})):a.removeClass(e.textActive).addClass(e.textInactive).css({display:"none",position:"static",opacity:1}),await this.sleep(this.getSettings("animationDelay")),n.removeClass(e.textActive).addClass(e.textInactive),await this.waitForAnimationEnd(n,s),-1===["flip","slide","slide-down","drop-in"].indexOf(t)&&n.css({display:"none"}),-1!==["flip","slide","slide-down","drop-in"].indexOf(t)?this.forceReflow(a):a.css({display:"inline",position:"static",opacity:1,pointerEvents:""}),a[0]&&a[0].offsetWidth,a.removeClass(e.textInactive).addClass(e.textActive),-1!==["flip","slide","slide-down","drop-in"].indexOf(t)&&(this.forceReflow(a),n.css({position:"absolute",left:0,top:0,pointerEvents:"none"}),a.css({position:"static",pointerEvents:""})),n=a,!this.isLoopMode&&n.is(":last-child"))break}},initHeading(){var e=this.getElementSettings("heading_style");this._headingInitialized||("rotate"===e?this.rotateHeading():"highlight"===e&&(this.addHighlight(),this.activateHighlightAnimation()),this.deactivateScrollListener(),this._headingInitialized=!0)},activateHighlightAnimation(){let e=this.getSettings(),t=e.classes,i=this.elements.$heading;i.removeClass(t.hideHighlight).addClass(t.activateHighlight),this.isLoopMode&&(setTimeout(()=>{i.removeClass(t.activateHighlight).addClass(t.hideHighlight)},e.highlightAnimationDuration+.8*e.highlightAnimationDelay),setTimeout(()=>{this.activateHighlightAnimation(!1)},e.highlightAnimationDuration+e.highlightAnimationDelay))},activateScrollListener(){this.elements.$heading&&this.elements.$heading.length&&(this.intersectionObservers.startAnimation.observer=elementorModules.utils.Scroll.scrollObserver({offset:"0px 0px -100px",callback:e=>{e.isInViewport&&this.initHeading()}}),this.intersectionObservers.startAnimation.element=this.elements.$heading[0],this.intersectionObservers.startAnimation.element)&&this.intersectionObservers.startAnimation.observer.observe(this.intersectionObservers.startAnimation.element)},deactivateScrollListener(){var e=this.intersectionObservers.startAnimation&&this.intersectionObservers.startAnimation.observer,t=this.intersectionObservers.startAnimation&&this.intersectionObservers.startAnimation.element;e&&t&&e.unobserve(t)}})},{"../utils/module":9}],31:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),"yes"===this.getInstanceValue("turn_to_popup_action_button")&&this.registerEventForPopup()},registerEventForPopup(){let t=this;this.$element.find(".raven-button").on("click",function(){var e={actionType:t.getInstanceValue("popup_action_type"),popupId:$(this).closest('[data-elementor-type="jupiterx-popups"]').attr("data-elementor-id")};$(document).trigger("popup-button-clicked",e)})}})},{"../utils/module":9}],32:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;class n extends elementorModules.frontend.handlers.SwiperBase{async onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments);var e,t=this.getElementSettings();this.getSlidesCount()<=1||(e=elementorFrontend.utils.swiper,this.swiper=await new e(this.elements.$swiperContainer,this.getSwiperOptions()),"yes"===t.pause_on_hover&&this.togglePauseOnHover(!0),this.elements.$swiperContainer.data("swiper",this.swiper))}getDefaultSettings(){return{selectors:{swiperContainer:".raven-main-swiper",swiperSlide:".swiper-slide"},slidesPerView:{widescreen:3,desktop:3,laptop:3,tablet_extra:3,tablet:2,mobile_extra:2,mobile:1}}}getDefaultElements(){var e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.swiperContainer)};return t.$slides=t.$swiperContainer.find(e.swiperSlide),t}getEffect(){return this.getElementSettings("effect")}getDeviceSlidesPerView(e){var t="slides_per_view"+("desktop"===e?"":"_"+e);return this.getElementSettings(t)?.size?Math.min(this.getSlidesCount(),+this.getElementSettings(t)?.size||this.getSettings("slidesPerView")[e]):Math.min(this.getSlidesCount(),+this.getElementSettings(t)||this.getSettings("slidesPerView")[e])}getSlidesPerView(e){return"slide"===this.getEffect()?this.getDeviceSlidesPerView(e):1}getDeviceSlidesToScroll(e){e="slides_to_scroll"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getElementSettings(e)||1)}getSlidesToScroll(e){return"slide"===this.getEffect()||"coverflow"===this.getElementSettings("skin")?this.getDeviceSlidesToScroll(e):1}getSpaceBetween(e){let t="space_between";return e&&"desktop"!==e&&(t+="_"+e),Number(this.getElementSettings(t).size)||0}getSwiperOptions(){var e=this.getElementSettings(),n={grabCursor:!0,initialSlide:this.getInitialSlide(),slidesPerView:this.getSlidesPerView("desktop"),slidesPerGroup:this.getSlidesToScroll("desktop"),spaceBetween:this.getSpaceBetween(),loop:"yes"===e.loop,loopedSlides:e.loopedSlides,speed:e.speed,effect:this.getEffect(),preventClicksPropagation:!1,slideToClickedSlide:!0,handleElementorBreakpoints:!0,centeredSlides:"yes"===e.overflow_visible||"yes"===e.centered_slides};if("yes"!==e.lazyload&&!this.elements.$swiperContainer.find("img").hasClass("swiper-lazy")||(n.lazy={loadPrevNext:!0,loadPrevNextAmount:1}),e.show_arrows&&(n.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),e.pagination&&(n.pagination={el:".swiper-pagination",type:e.pagination,clickable:!0}),"cube"!==this.getEffect()){let t={},i=elementorFrontend.config.responsive.activeBreakpoints;Object.keys(i).forEach(e=>{t[i[e].value]={slidesPerView:this.getSlidesPerView(e),slidesPerGroup:this.getSlidesToScroll(e),spaceBetween:this.getSpaceBetween(e)}}),n.breakpoints=t}e.autoplay&&(n.autoplay={delay:e.autoplay_speed,disableOnInteraction:!!e.pause_on_interaction});let t=this.findElement(".raven-swiper");return this.$element[0]?.classList?.contains("elementor-widget-raven-media-carousel")&&(n.on={init:()=>{t[0].classList.add("media-carousel-initiated"),t[1]&&t[1].classList.add("media-carousel-initiated")}}),n}getDeviceBreakpointValue(e){if(!this.breakpointsDictionary){let t=elementorFrontend.config.responsive.activeBreakpoints;this.breakpointsDictionary={},Object.keys(t).forEach(e=>{this.breakpointsDictionary[e]=t[e].value})}return this.breakpointsDictionary[e]}updateSpaceBetween(e){var e=e.match("space_between_(.*)"),e=e?e[1]:"desktop",t=this.getSpaceBetween(e);"desktop"!==e&&(this.swiper.params.breakpoints[this.getDeviceBreakpointValue(e)].spaceBetween=t),this.swiper.params.spaceBetween=t,this.swiper.update()}getChangeableProperties(){return{autoplay:"autoplay",pause_on_hover:"pauseOnHover",pause_on_interaction:"disableOnInteraction",autoplay_speed:"delay",speed:"speed",width:"width"}}updateSwiperOption(i){if(0!==i.indexOf("width")){var n=this.getElementSettings(),s=n[i];let e=this.getChangeableProperties()[i],t=s;switch(i){case"autoplay":t=!1,s&&(t={delay:n.autoplay_speed,disableOnInteraction:"yes"===n.pause_on_interaction});break;case"autoplay_speed":e="autoplay",t={delay:s,disableOnInteraction:"yes"===n.pause_on_interaction};break;case"pause_on_hover":this.togglePauseOnHover("yes"===s);break;case"pause_on_interaction":t="yes"===s}"pause_on_hover"!==i&&(this.swiper.params[e]=t)}this.swiper.update()}onElementChange(e){this.getSlidesCount()<=1||(0===e.indexOf("width")?(this.swiper.update(),this.thumbsSwiper&&this.thumbsSwiper.update()):0===e.indexOf("space_between")?this.updateSpaceBetween(e):0===e.indexOf("pagination_gap")?(this.handlePaginationGap(),this.swiper&&this.swiper.update()):this.getChangeableProperties().hasOwnProperty(e)&&this.updateSwiperOption(e))}onEditSettingsChange(e){this.getSlidesCount()<=1||"activeItemIndex"===e&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}paginationGapPx(e){return e&&""!==e.size&&null!=e.size&&(e=parseFloat(e.size),isFinite(e))?e:0}isPaginationGapTotalAllowed(e,t){return isFinite(e)&&0<e&&e<=t}getMainSwiperGapSelector(){return".elementor-element-"+this.getID()+" "+(elementorFrontend.config.experimentalFeatures?.e_swiper_latest?".raven-main-swiper.swiper":".raven-main-swiper")}shouldApplyContentBoxForPaginationGap(){return this.$element.hasClass("elementor-widget-raven-media-carousel")}formatPaginationGapRule(e,t){t=["padding-bottom: "+t+"px !important"];return this.shouldApplyContentBoxForPaginationGap()&&t.push("box-sizing: content-box !important"),e+"{ "+t.join("; ")+"; }"}cachePaginationPaddingBaseline(e){void 0===this._ravenPaginationPaddingBasePx&&(e=parseInt(e.css("padding-bottom"),10),this._ravenPaginationPaddingBasePx=isNaN(e)?0:e)}wrapPaginationGapMediaQuery(e,t){return" @media screen and (max-width:"+t+"px){ "+e+" }"}persistPaginationGapStyles(e){var t=this.elements.$swiperContainer,i="raven-pagination-gap-"+this.getID(),n=t.find("#"+i);e?n.length?n.text(e):t.append('<style id="'+i+'">'+e+"</style>"):n.remove()}handlePaginationGap(){var e=this.elements&&this.elements.$swiperContainer;if(e&&e.length){this.cachePaginationPaddingBaseline(e);let n=this.getMainSwiperGapSelector(),s=this.getElementSettings(),a=this._ravenPaginationPaddingBasePx,o=elementorFrontend.config.responsive.activeBreakpoints,r="";var e=this.paginationGapPx(s.pagination_gap);s.pagination_gap&&0<e&&(e=a+e,this.isPaginationGapTotalAllowed(e,8e3))&&(r+=this.formatPaginationGapRule(n,e)),Object.keys(o).reverse().forEach(e=>{var t=s["pagination_gap_"+e],i=this.paginationGapPx(t);!t||i<=0||(t=a+i,this.isPaginationGapTotalAllowed(t,8e3)&&(i=this.formatPaginationGapRule(n,t),t=o[e].value,r+=this.wrapPaginationGapMediaQuery(i,t)))}),this.persistPaginationGapStyles(r)}}}i.default=n},{}],33:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../carousel/base"))&&i.__esModule?i:{default:i};class n extends e.default{async onInit(){await super.onInit();var a=this.getSlidesCount();if(this.handlePaginationGap(),this.isSlideshow()&&!(a<=1)){let e=this.getElementSettings(),t="yes"===e.loop,i={},n=elementorFrontend.config.responsive.activeBreakpoints,s=this.getDeviceSlidesPerView("desktop");Object.keys(n).forEach(e=>{i[n[e].value]={slidesPerView:this.getDeviceSlidesPerView(e),spaceBetween:this.getSpaceBetween(e)}});var a={slidesPerView:s,initialSlide:this.getInitialSlide(),centeredSlides:e.centered_slides,slideToClickedSlide:!0,spaceBetween:this.getSpaceBetween(),loopedSlides:a,loop:t,breakpoints:i,handleElementorBreakpoints:!0},o=("yes"===e.lazyload&&(a.lazy={loadPrevNext:!0,loadPrevNextAmount:1}),elementorFrontend.utils.swiper);this.swiper.controller.control=this.thumbsSwiper=await new o(this.elements.$thumbsSwiper,a),this.elements.$thumbsSwiper.data("swiper",this.thumbsSwiper),this.thumbsSwiper.controller.control=this.swiper}}isSlideshow(){return"slideshow"===this.getElementSettings("skin")}getDefaultSettings(...e){e=super.getDefaultSettings(...e);return this.isSlideshow()&&(e.selectors.thumbsSwiper=".raven-thumbnails-swiper",e.slidesPerView={widescreen:5,desktop:5,laptop:5,tablet_extra:5,tablet:4,mobile_extra:4,mobile:3}),e}getSlidesPerViewSettingNames(){var e;return this.slideshowElementSettings||(this.slideshowElementSettings=["slides_per_view"],e=elementorFrontend.config.responsive.activeBreakpoints,Object.keys(e).forEach(e=>{this.slideshowElementSettings.push("slides_per_view_"+e)})),this.slideshowElementSettings}getElementSettings(e){return-1!==this.getSlidesPerViewSettingNames().indexOf(e)&&this.isSlideshow()&&(e="slideshow_"+e),super.getElementSettings(e)}getDefaultElements(...e){var t=this.getSettings("selectors"),e=super.getDefaultElements(...e);return this.isSlideshow()&&(e.$thumbsSwiper=this.$element.find(t.thumbsSwiper)),e}getEffect(){return"coverflow"===this.getElementSettings("skin")?"coverflow":super.getEffect()}getSlidesPerView(e){return this.isSlideshow()?1:"coverflow"===this.getElementSettings("skin")?this.getDeviceSlidesPerView(e):"carousel"===this.getElementSettings("skin")&&"slide"===this.getElementSettings("effect")&&"yes"===this.getElementSettings("overflow_visible")?this.getDeviceSlidesPerView(e)+.5:super.getSlidesPerView(e)}getSwiperOptions(){var e=super.getSwiperOptions();return this.isSlideshow()&&(e.loopedSlides=this.getSlidesCount(),delete e.pagination,delete e.breakpoints),e}}},{"../carousel/base":32}],34:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../carousel/base"))&&i.__esModule?i:{default:i};class n extends e.default{async onInit(){await super.onInit(),this.handlePaginationGap()}getDefaultSettings(){let t=super.getDefaultSettings();return t.slidesPerView={desktop:1},Object.keys(elementorFrontend.config.responsive.activeBreakpoints).forEach(e=>{t.slidesPerView[e]=1}),t.loop&&(t.loopedSlides=this.getSlidesCount()),t}getEffect(){return"slide"}}},{"../carousel/base":32}],35:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};$=jQuery;let n=e.default.extend({getDefaultSettings(){return{selectors:{shippingMethods:"ul.woocommerce-shipping-methods li",productName:".cart_item .product-name",productQuantity:".cart_item .product-quantity"}}},bindEvents(){this.fixVariationStyle(),this.fixDividerStyle(),this.fixShippingAjaxStyle(),this.handleShippingMethodList(),this.handleQuantityInput(),this.fixQuantityStyle(),this.addClassToWooWrapper(),jQuery(document.body).on("updated_wc_div",this.handleShippingMethodList),jQuery(document.body).on("updated_cart_totals",this.handleShippingMethodList),jQuery(document.body).on("updated_cart_totals",this.handleQuantityInput)},onElementChange(e){"sections_titles_typography_font_size"===e&&this.fixVariationStyle(),"cart_divider_weight"!==e&&"cart_divider_gap"!==e||this.fixDividerStyle(),"cart_quantity_width"===e&&this.fixQuantityStyle()},addClassToWooWrapper(){document.body.classList.contains("woocommerce-cart")&&document.body.classList.add("raven-cart-wiget-cart-page")},fixVariationStyle(){var e=this.getSettings("selectors"),t=this.$element.find(e.productName).find("a").css("font-size"),e=this.$element.find(e.productName).find(".product-variations");t&&(e.find("div").css("font-size","calc("+t+" * 0.7)"),e.find("span").css("font-size","calc("+t+" * 0.7)"))},fixDividerStyle(){var e=parseFloat(this.$element.find(".cart_item").find("td").css("padding-top")),t=this.getInstanceValue("cart_divider_weight");t.size&&(this.$element.find(".woocommerce-cart-form__contents").find("tbody").find(".cart_item:not(:first-child)").find("td").css("padding-top",t.size+e),this.$element.find(".woocommerce-cart-form__contents").find("tbody").find(".actions").css("padding-top",t.size+e))},fixQuantityStyle(){var t=this.getSettings("selectors");if(this.getInstanceValue("cart_quantity_width"))if("px"===this.getInstanceValue("cart_quantity_width")?.unit)this.$element.find(t.productQuantity).find("input").css("width",this.getInstanceValue("cart_quantity_width")?.size+"px");else{var i=parseFloat(this.$element.find(t.productQuantity).css("width")),n=this.getInstanceValue("cart_quantity_width").unit,s=this.getInstanceValue("cart_quantity_width").size;let e=0;"%"===n?e=s/100*i:"em"===n&&(e=s*i),0!==e&&("plus_minus"===this.getInstanceValue("cart_quantity_view")&&(n=parseFloat(this.$element.find(t.productQuantity).find(".input-group-prepend").css("width")),e-=2*n,this.$element.find(t.productQuantity).find("input").css("flex","inherit")),this.$element.find(t.productQuantity).find("input").css("width",e+"px"))}},fixShippingAjaxStyle(){$(document).ajaxComplete((e,t,i)=>{-1!==i.url.indexOf("wc-ajax=update_shipping_method")&&(this.getInstanceValue("cart_items_continue_shopping")||$(".elementor-widget-raven-cart.elementor-element-"+this.getID()+" .jupiterx-continue-shopping").hide(),$(".elementor-widget-raven-cart.elementor-element-"+this.getID()+" .checkout-button").text(this.getInstanceValue("checkout_button_text")),$(".elementor-widget-raven-cart.elementor-element-"+this.getID()+" .cart_totals h2").text(this.getInstanceValue("totals_section_title")))})},handleShippingMethodList(){var e=this.getSettings("selectors");this.$element.find(e.shippingMethods).length<1||(this.$element.find(e.shippingMethods).each((e,t)=>{$(t).find(".raven-cart-shipping-method-radio").length<1&&$(t).find("input").after('<span class="raven-cart-shipping-method-radio"></span>')}),this.handleRadioSpan())},handleQuantityInput(){"plus_minus"===this.getInstanceValue("cart_quantity_view")&&this.$element.find(".cart_item").each((e,t)=>{0===$(t).find(".input-group-prepend").length&&($(t).find(".input-text.qty").hide(),$(t).find(".input-text.qty").after('<div class="input-group input-text qty text custom-qty-input "><div class="input-group-prepend"><button style="min-width: 0; box-shadow: none;" class="btn btn-decrement btn-sm btn-outline-secondary" type="button" tabindex="-1"><span>-</span></button></div><input type="text" value="" style="text-align: center" class="form-control input-text qty text" placeholder="" tabindex="-1"><div class="input-group-append"><button style="min-width: 0; box-shadow: none;" class="btn btn-increment btn-sm btn-outline-secondary" type="button" tabindex="-1"><span>+</span></button></div></div>'),$(t).find(".custom-qty-input").find(".input-text.qty").val($(t).find(".input-text.qty").val()),$(t).on("paste change",".custom-qty-input .qty",()=>{$(t).find(".input-text.qty").val($(t).find(".custom-qty-input").find(".input-text.qty").val())}),$(t).on("click",".btn-increment",()=>{$(t).find(".input-text.qty").val((e,t)=>parseInt(t,10)+1).trigger("change")}),$(t).on("click",".btn-decrement",()=>{$(t).find(".input-text.qty").val((e,t)=>1<parseInt(t,10)?parseInt(t,10)-1:parseInt(t,10)).trigger("change")}))})},handleRadioSpan(){var e=document.getElementsByClassName("raven-cart-shipping-method-radio");Object.values(e).forEach((e,t)=>{e.addEventListener("click",e=>{e.currentTarget.previousElementSibling.click()})})}})},{"../utils/module":9}],36:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new a({$element:e})};var i=s(e("../utils/module")),n=s(e("../utils/masonry"));function s(e){return e&&e.__esModule?e:{default:e}}let a=i.default.extend({Masonry:null,onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),"masonry"===this.getInstanceValue("layout")&&this.createMasonry()},createMasonry(){this.Masonry=new n.default({$element:this.$element}),this.Masonry.run()}})},{"../utils/masonry":8,"../utils/module":9}],37:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({breakpoints:{},animation:!1,progress:0,value:0,circumference:0,getDefaultSettings(){return{selectors:{wrapper:".raven-circle-progress-container",counterNumber:".raven-circle-progress-counter-number",bar:".raven-circle-progress-bar",meter:".raven-circle-progress-meter",value:".raven-circle-progress-value"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$wrapper:this.$element.find(e.wrapper),$counterNumber:this.$element.find(e.counterNumber),$bar:this.$element.find(e.bar),$meter:this.$element.find(e.meter),$value:this.$element.find(e.value)}},bindEvents(){this.setValues(),0!==parseInt(this.value)&&(this.handleBar(),this.handleCounter(),this.handleResize())},setValues(){this.progress=this.elements.$bar[0].getAttribute("value")/100,this.value=this.elements.$value[0].getAttribute("data-value"),this.circumference=parseInt(this.elements.$bar[0].getAttribute("circumference"))},createObserver(e,t){let i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(t.fromValue=0,t.toValue=this.value,t.duration=this.getInstanceValue("duration"),this.elements.$counterNumber.numerator(t),this.animation=!0,e=this.circumference*(1-this.progress),this.elements.$value.css({transitionDuration:t.duration+"ms",strokeDashoffset:e}),i.disconnect())})},{threshold:.8});i.observe(e[0])},handleCounter(){var e={fromValue:0};"yes"===this.getInstanceValue("separate_Ttousands")&&(e.delimiter=","),this.createObserver(this.elements.$wrapper,e)},handleBar(){let e=elementorFrontend.config.responsive.activeBreakpoints,t=elementorFrontend.getCurrentDeviceMode(),d=this.getElementSettings(),c=this;e.desktop=[],e[t]&&Object.keys(e).reverse().forEach(e=>{var t=("desktop"===e?d.circle_size:d["circle_size_"+e]).size,i=("desktop"===e?d.progress_circle_thickness:d["progress_circle_thickness_"+e]).size,n=("desktop"===e?d.progress_indicator_thickness:d["progress_indicator_thickness_"+e]).size,s=`0 0 ${t=c.handleEmptyValues(t,"size")} `+t,a=t/2,o=(i=c.handleEmptyValues(i,"meter"))<=(n=c.handleEmptyValues(n,"value"))?n:i,r=a-o/2,l=2*Math.PI*r;c.breakpoints[e]={size:t,meter:i,value:n,viewBox:s,center:a,thickness:o,radius:r,circumference:l}}),c.updateSvg(c.breakpoints[t].size,c.breakpoints[t].viewBox,c.breakpoints[t].center,c.breakpoints[t].radius,c.breakpoints[t].value,c.breakpoints[t].meter,c.breakpoints[t].circumference)},handleEmptyValues(e,t){var i;return e||((i=Object.keys(this.breakpoints).length-1)<0?e:(e=Object.keys(this.breakpoints)[i],this.breakpoints[e][t]))},handleResize(){let t=this;$(window).on("resize orientationchange",()=>{var e=elementorFrontend.getCurrentDeviceMode();document.body.classList.contains("elementor-editor-active")?(t.breakpoints={},setTimeout(()=>t.handleBar())):t.updateSvg(t.breakpoints[e].size,t.breakpoints[e].viewBox,t.breakpoints[e].center,t.breakpoints[e].radius,t.breakpoints[e].value,t.breakpoints[e].meter,t.breakpoints[e].circumference)})},updateSvg(e,t,i,n,s,a,o){var r=o*(1-this.progress);this.elements.$bar.attr({width:e,height:e,"data-radius":n,"data-circumference":o}),this.elements.$bar[0].setAttribute("viewBox",t),this.elements.$meter.attr({cx:i,cy:i,r:n,"stroke-width":a}),this.animation&&this.elements.$value.css({transitionDuration:""}),this.elements.$value.attr({cx:i,cy:i,r:n,"stroke-width":s}),this.elements.$value.css({strokeDasharray:o,strokeDashoffset:this.animation?r:o})}})},{"../utils/module":9}],38:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new s({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let n=jQuery,s=e.default.extend({onInit(){Prism.highlightAllUnder(this.$element[0],!1),this.changeActiveTabEvent()},onElementChange(e){"code"!==e&&"height"!==e&&("src"===e&&(e=this.getElementSettings("src"),this.addRelatedJs(e)),setTimeout(()=>{Prism.highlightAllUnder(this.$element[0],!1)},1500))},addRelatedJs(e){var t='div[data-id="'+this.getID()+'"]',t=n(t);t.empty(),"cpp"!==e&&"objectivec"!==e||t.append('<script src="'+elementor.config.jx_assets_url+'/lib/code-highlight/prism-c.min.js" ><\/script>'),"scala"===e&&t.append('<script src="'+elementor.config.jx_assets_url+'/lib/code-highlight/prism-java.min.js" ><\/script>'),"scss"!==e&&"sass"!==e||t.append('<script src="'+elementor.config.jx_assets_url+'/lib/code-highlight/prism-css.min.js" ><\/script>')},changeActiveTabEvent(){document.addEventListener("jupiterxcore:advancedtabs:changeactivetab",()=>{Prism.highlightAllUnder(this.$element[0],!1)})}})},{"../utils/module":9}],39:[function(e,t,i){var s;(s=jQuery)(document).on("click",".raven-column-link",function(e){var t=s(this).data("ravenLink"),i=s(this).data("ravenLinkTarget"),n=s(this);if(!s(e.target).filter("a, a *, .no-link, .no-link *").length)if(t.match(/^#elementor-action/))n.find(".raven-column-link-dynamic").length||n.append(`<a class="raven-column-link-dynamic" href="${t}"></a>`),n.find(".raven-column-link-dynamic").trigger("click");else if(t.match(/^#/)){if(s(t).length)document.querySelector(t).scrollIntoView({behavior:"smooth"})}else window.open(t,i)})},{}],40:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){let t=e.find(".raven-content-switch-container"),i=t.find(".raven-content-switch-input"),n=t.find(".raven-content-switch-two-content"),s=t.data("default_state"),a=n.find('li[data-type="raven-content-switch-monthly"]'),o=n.find('li[data-type="raven-content-switch-yearly"]'),r=e.find(".raven-content-switch-primary-label"),l=e.find(".raven-content-switch-secondary-label"),d=e.find(".raven-content-switch-button"),c={};function u(e,t){$.each(e,function(e){Number.parseInt(e)!==Number.parseInt(t)?$(this).removeClass("raven-content-switch-is-visible").addClass("raven-content-switch-is-hidden"):$(this).addClass("raven-content-switch-is-visible").removeClass("raven-content-switch-is-hidden")})}i.prop("checked","primary"===s),c[0]=a,c[1]=o,i.on("click",function(e){let t=$(e.target).val();$(this).hasClass("raven-content-switch-input-active")?(t=1,l.toggleClass("selected"),r.toggleClass("selected"),$(this).toggleClass("raven-content-switch-input-normal raven-content-switch-input-active"),d.toggleClass("primary secondary"),u(c,t)):$(this).hasClass("raven-content-switch-input-normal")&&(t=0,l.toggleClass("selected"),r.toggleClass("selected"),$(this).toggleClass("raven-content-switch-input-normal raven-content-switch-input-active"),d.toggleClass("primary secondary"),u(c,t))})}},{}],41:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){let t=e.find("[data-raven-countdown]"),i=t.data("raven-countdown"),n=void 0!==t.data("raven-days")?t.data("raven-days"):"Day%!D",s=void 0!==t.data("raven-hours")?t.data("raven-hours"):"Hour%!H",a=void 0!==t.data("raven-minutes")?t.data("raven-minutes"):"Minute%!M",o=void 0!==t.data("raven-seconds")?t.data("raven-seconds"):"Second%!S";t.countdown(i,e=>{t.html(e.strftime(e.strftime(`
<div class="raven-countdown-box raven-flex-1">
<span class="raven-countdown-number">%D</span>
<span class="raven-countdown-title"> ${n}</span>
</div>
<div class="raven-countdown-box raven-flex-1">
<span class="raven-countdown-number">%H</span>
<span class="raven-countdown-title"> ${s}</span>
</div>
<div class="raven-countdown-box raven-flex-1">
<span class="raven-countdown-number">%M</span>
<span class="raven-countdown-title"> ${a}</span>
</div>
<div class="raven-countdown-box raven-flex-1">
<span class="raven-countdown-number">%S</span>
<span class="raven-countdown-title"> ${o}</span>
</div>
`)))})}},{}],42:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){$=jQuery;let t=e.find("[data-raven-counter]");t.each(function(){(i=>{let n=new IntersectionObserver(e=>{e.forEach(e=>{var t;e.isIntersecting&&((t=(e=i.data()).toValue.toString().match(/\.(.*)/))&&(e.rounding=t[1].length),e.fromValue=$.trim(i.text()),i.numerator(e),n.disconnect())})});n.observe(i[0])})($(this))})}},{}],43:[function(t,e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};var i=(i=t("../utils/module"))&&i.__esModule?i:{default:i},a=t("@wordpress/i18n");let u=null,n=i.default.extend({form:null,captchaV3Ids:[],reCaptchaCheckTimeout:null,isMultiStep:!1,itiCountry:null,onInit(){this.form=this.$element.find(".raven-form"),this.isMultiStep=void 0!==this.form.attr("data-step"),this.isMultiStep&&this.handleMultiStep(this.form),this.initializeITI();var e=this.form.find(".flatpickr[type=text]");let t={firstDayOfWeek:1};var i=e.data("locale");void 0!==i&&"default"!==i&&(t=i),e.flatpickr({locale:t,minuteIncrement:1,disableMobile:"true"}),this.initCaptcha(),this.onSubmit(),window.onInvalidRavenFormField=this.onInvalidRavenFormField},onSubmit(){let t=this,i=t.form;i.on("submit",e=>{e.preventDefault(),this.checkSaveState()&&(i.css("opacity",.5),this.fixTelBeforeSubmit(),e=new FormData(i[0]),this.validateFormData(e,i)?(e.append("action","raven_form_frontend"),e.append("referrer",location.toString()),jQuery.ajax({url:_wpUtilSettings.ajax.url,type:"POST",dataType:"json",data:e,processData:!1,contentType:!1,success:t.doSuccess})):i.css("opacity",1))})},validateFormData(e,t){var i=window.ravenTools.maxFileUploadSize;if(!_.isEmpty(i))for(var[n,s]of e.entries())if(s instanceof File&&s.size>i)return(s=t.find(`input[name="${n}"]`).parents(".raven-field-group")).find("small").remove(),s.removeClass("raven-field-invalid"),s.addClass("raven-field-invalid"),s.append(`<small class="raven-form-text">${(0,a.__)("This file size is not allowed.","jupiterx-core")}</small>`),!1;return!0},checkSaveState(){var e;return!this.isEdit||(!(e=jQuery(elementor.panel.el).find("button#elementor-panel-saver-button-publish")).length||e.hasClass("elementor-disabled")?(this.form.prev("div.elementor-alert.elementor-alert-info").remove(),!0):(e=`
<div class="elementor-alert elementor-alert-info" role="alert">
<span class="elementor-alert-title">
${(0,a.__)("Please first update/publish the changes.","jupiterx-core")}
</span>
</div>
`,this.form.before(e),!1))},doSuccess(e){if(this.showMessage(e),e.data.download_url&&window.open(e.data.download_url,"_blank"),$.isEmptyObject(e.data.redirect_to)||(window.location.href=e.data.redirect_to),!$.isEmptyObject(e.data.popup)){var t={},i=this.form.parents(".jupiterx-popup");if("close"===e.data.popup[0].type&&0!==i.length)return t.constantly="yes"===e.data.popup[0].constantly,(i=i?.data("settings")?.id)&&(t.popupId=i),void $(document).trigger("jupiterx-popup-close-form-trigger",t);t.popupId=e.data.popup[0].popupId,$(document).trigger("jupiterx-popup-open-trigger",t)}$.isEmptyObject(e.data.admin_errors)||this.showAdminErrors(e.data.admin_errors),this.captchaV3Ids.forEach(function(e){return window.grecaptcha.reset(e)})},onInvalidRavenFormField(e){let t=e.target;var e=t.dataset.type,i=t.validity,n=window.ravenFormsTranslations.validation;if(i.valueMissing)return t.setCustomValidity(n.required),null!==u?void 0:(u=t.id,void window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{var e=(e=>{var e=$(e),t=$(".jupiterx-header"),i=t.data("jupiterx-settings")||{},n=0<$(".jupiterx-header-sticked").length,s=document.body,a=$("#wpadminbar").height()||0,o=$(".jupiterx-tbar").outerHeight()||0,r=parseInt($(".jupiterx-site-body-border").css("border-width"),10)||0,l=e.offset().top,e=e.outerHeight()||0;let d=a+r+o;a="sticky"===i.behavior,r="fixed"===i.behavior,!n&&(!i.behavior||a&&i.overlap)&&(d+=o),n=a&&(!i.stickyTemplate||i.stickyTemplate!==i.template),n&&(o=$(".jupiterx-header-custom .elementor:last-of-type").outerHeight()||0,d+=o),!n&&(a||r&&"top"===i.position)&&(d+=t.height()||0),i.behavior||!s.classList.contains("jupiterx-header-fixed")&&!s.classList.contains("jupiterx-header-sticked")||(d+=t.height()||0),o=window.innerHeight,n=o-d,a=l-d-(n-e)/2;return Math.max(a,0)})(t);window.scrollTo({top:e,behavior:"smooth"}),setTimeout(()=>{u=null},100)})}));let s="";switch(e){case"email":(i.typeMismatch||i.patternMismatch)&&(s=n.invalidEmail);break;case"tel":if(t.hasAttribute("data-iti-tel")){var a=window.ravenFormsTranslations.itiValidation,o=window.intlTelInputGlobals.getInstance(t),r=o.getValidationError(),l=t.hasAttribute("data-iti-area-required"),d=t.getAttribute("data-iti-tel-type"),c=""+o.getNumberType();switch(r){case 1:s=a.invalidCountryCode;break;case 2:s=a.tooShort;break;case 3:s=a.tooLong;break;case 4:s=l?a.areaCodeMissing:"";break;case 5:s=a.invalidLength;break;case-99:s=a.invalidGeneral;break;default:"all"!==d&&c!==d&&(s=a.typeMismatch[d])}}else(i.typeMismatch||i.patternMismatch)&&(s=n.invalidPhone);break;case"number":i.typeMismatch||i.patternMismatch?s=n.invalidNumber:i.rangeOverflow?s=n.invalidMaxValue.replace("MAX_VALUE",t.max):i.rangeUnderflow&&(s=n.invalidMinValue.replace("MIN_VALUE",t.min))}t.setCustomValidity(s)},showMessage(e){var t=this.form;t.css("opacity",1),$(".raven-form-response").remove(),t.parent().find(".elementor-alert").remove(),t.find("small").remove(),t.find(".raven-field-group").removeClass("raven-field-invalid"),t.parent().removeClass("raven-form-success"),t.parent().addClass("raven-form-error"),e.success&&(t.trigger("reset"),t.parent().removeClass("raven-form-error"),t.parent().addClass("raven-form-success"),t.trigger("submit_success",e.data)),$.each(e.data.errors,function(e,t){e=$("#raven-field-group-"+e);e.addClass("raven-field-invalid"),e.append('<small class="raven-form-text">'+t+"</small>")}),t.after('<div class="raven-form-response">'+e.data.message+"</div>")},showAdminErrors(e){let i="";$.each(e,function(e,t){i+=`<li>${t}</li>`}),this.form.before(`
<div class="elementor-alert elementor-alert-info" role="alert">
<span class="elementor-alert-title">
${(0,a.__)("Following messages are visible only for admin users.","jupiterx-core")}
</span>
<div class="elementor-alert-description">
<ul>${i}</ul>
</div>
</div>
`)},initCaptcha(){var e=this.form.find(".raven-g-recaptcha:last");e.length&&(window.grecaptcha?.render?(this.addRecaptcha(e),clearTimeout(this.reCaptchaCheckTimeout)):this.reCaptchaCheckTimeout=setTimeout(this.initCaptcha,350))},addRecaptcha(t){var e=t.data(),i="v3"===e.type;this.captchaV3Ids.forEach(e=>window.grecaptcha.reset(e));let n=window.grecaptcha.render(t[0],e);this.form.on("reset error",()=>window.grecaptcha.reset(n)),i?(this.captchaV3Ids.push(n),this.form.find('button[type="submit"]').on("click",e=>{e.preventDefault(),window.grecaptcha.ready(()=>{window.grecaptcha.execute(n,{action:t.data("action")}).then(e=>{this.form.find('[name="g-recaptcha-response"]').remove(),this.form.append(jQuery("<input>",{type:"hidden",value:e,name:"g-recaptcha-response"})),this.form.submit()})})})):t.data("widgetId",n)},steps:[],indicators:[],buttons:[],stepsValidableFields:[],isProgressBar:!1,progressMeter:null,handleMultiStep(e){var t=e.children(".fields-step-wrapper"),i=e.children(".raven-form__indicators").children().not(".raven-form__indicators__indicator__separator"),e=e.find(".step-button-next,.step-button-prev");this.steps=this.jqueryToArray(t),this.indicators=this.jqueryToArray(i),this.buttons=this.jqueryToArray(e),this.stepsValidableFields=this.getStepsValidableFields(),this.isProgressBar=this.isIndicatorProgressBar(),this.progressMeter=this.isProgressBar?this.indicators[0].find(".raven-form__indicators__indicator__progress__meter"):null,this.isProgressBar&&this.updateProgressMeter(0),this.setStepButtonsOnClicks()},jqueryToArray(e){let i=[];return e.each((e,t)=>{i.push($(t))}),i},getStepsValidableFields(){let n=Array(this.steps.length);return _.each(this.steps,(e,i)=>{n[i]=[],e.find("*[oninvalid]").each((e,t)=>{n[i].push($(t))})}),n},setStepButtonsOnClicks(){_.each(this.buttons,e=>{var t=e.attr("data-step-key"),i=e.hasClass("step-button-next");t&&(i&&e.click({destStep:+t+1,totalSteps:this.steps.length,inputsToValidate:this.stepsValidableFields[+t]},t=>{let i=!0;_.each(t.data.inputsToValidate,e=>{e[0].checkValidity()||(i=!1,t.data.destStep-1<t.data.totalSteps-1&&e[0].reportValidity())}),i&&this.moveToStep(t.data.destStep)}),i||e.click({destStep:+t-1},e=>{this.moveToStep(e.data.destStep)}))})},moveToStep(i){_.each(this.steps,(e,t)=>{t===i?e.removeClass("elementor-hidden"):e.addClass("elementor-hidden")}),this.isProgressBar?this.updateProgressMeter(i):this.updateNormalIndicators(i)},isIndicatorProgressBar(){return this.indicators[0].hasClass("raven-form__indicators__indicator__progress")},updateNormalIndicators(i){_.each(this.indicators,(e,t)=>{t===i?(this.stripStateClasses(e),e.addClass("raven-form__indicators__indicator--state-active")):i<t?(this.stripStateClasses(e),e.addClass("raven-form__indicators__indicator--state-inactive")):(this.stripStateClasses(e),e.addClass("raven-form__indicators__indicator--state-completed"))})},stripStateClasses(e){e.removeClass("raven-form__indicators__indicator--state-active"),e.removeClass("raven-form__indicators__indicator--state-inactive"),e.removeClass("raven-form__indicators__indicator--state-completed")},updateProgressMeter(e){e=(e+1)/this.steps.length*100;this.progressMeter.css({width:e+"%"}),this.progressMeter.html(Math.round(e)+"%")},initializeITI(){let t=this.form.find("input[data-iti-tel]");t.length&&(window.itiCountry?this.setupTelFields(t):$.get("https://ipwho.is/",()=>{},"json").always(e=>{window.itiCountry=e&&e.country_code?e.country_code.toLowerCase():"us",this.setupTelFields(t)}))},setupTelFields(e){let l=t("intl-tel-input");if(l){let o=window.intlTelInputGlobals.getCountryData().map(e=>e.iso2),r=["FIXED_LINE","MOBILE","FIXED_LINE_OR_MOBILE","TOLL_FREE","PREMIUM_RATE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];_.each(e,e=>{var t=e.hasAttribute("data-iti-allow-dropdown"),i=e.getAttribute("data-iti-country-include"),i=i?i.split(" "):null,n=i&&i.length,s=e.hasAttribute("data-iti-ip-detect"),a=e.getAttribute("data-iti-tel-type"),t={allowDropdown:t,utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.16/js/utils.min.js",separateDialCode:!0,placeholderNumberType:"all"===a?"MOBILE":r[+a],onlyCountries:n?i:o,initialCountry:"",geoIpLookup:null};s&&(t.initialCountry=n&&!i.includes(window.itiCountry)?i[0]:"auto",t.geoIpLookup=e=>e(window.itiCountry)),l(e,t)})}},fixTelBeforeSubmit(){var e=this.form.find("input[data-iti-tel]");_.each(e,e=>{var t;e.hasAttribute("data-iti-internationalize")&&(t=window.intlTelInputGlobals.getInstance(e),e.value=t.getNumber())})}})},{"../utils/module":9,"@wordpress/i18n":104,"intl-tel-input":107}],44:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let a=jQuery,n=e.default.extend({getDefaultSettings(){return{selectors:{hotspot:".raven-hotspot",tooltip:".raven-hotspot__tooltip"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$hotspot:this.$element.find(e.hotspot),$hotspotsExcludesLinks:this.$element.find(e.hotspot).filter(":not(.raven-hotspot--no-tooltip)"),$tooltip:this.$element.find(e.tooltip)}},bindEvents(){var e=this.getCurrentDeviceSetting("tooltip_trigger"),e="mouseenter"===e?"mouseleave mouseenter":e;"none"!==e&&this.elements.$hotspotsExcludesLinks.on(e,e=>this.onHotspotTriggerEvent(e))},onDeviceModeChange(){this.elements.$hotspotsExcludesLinks.off(),this.bindEvents()},onHotspotTriggerEvent(e){var t=a(e.target),i=t.closest(".raven-hotspot__button").length,n="mouseleave"===e.type&&(t.is(".raven-hotspot--tooltip-position")||t.parents(".raven-hotspot--tooltip-position").length),s="mobile"===elementorFrontend.getCurrentDeviceMode();t.closest(".raven-hotspot--link").length&&s&&("mouseleave"===e.type||"mouseenter"===e.type)||!i&&!n||(t=a(e.currentTarget),this.elements.$hotspot.not(t).removeClass("raven-hotspot--active"),t.toggleClass("raven-hotspot--active"))},editorAddSequencedAnimation(){this.elements.$hotspot.toggleClass("raven-hotspot--sequenced","yes"===this.getElementSettings("hotspot_sequenced_animation"))},hotspotSequencedAnimation(){var e=this.getElementSettings("hotspot_sequenced_animation");let i=this.getElementSettings("hotspot_sequenced_animation_duration");if("no"!==e){let t=elementorModules.utils.Scroll.scrollObserver({callback:e=>{e.isInViewport&&(t.unobserve(this.$element[0]),this.elements.$hotspot.each((e,t)=>{0!==e&&(e=e*((i?i.size:1e3)/this.elements.$hotspot.length),t.style.animationDelay=e+"ms")}))}});t.observe(this.$element[0])}},setTooltipPositionControl(){var e=this.getElementSettings("tooltip_animation");void 0!==e&&e.match(/^raven-hotspot--(slide|fade)-direction/)&&(e=this.getElementSettings("tooltip_position"),this.elements.$tooltip.removeClass("raven-hotspot--tooltip-animation-from-left raven-hotspot--tooltip-animation-from-top raven-hotspot--tooltip-animation-from-right raven-hotspot--tooltip-animation-from-bottom"),this.elements.$tooltip.addClass("raven-hotspot--tooltip-animation-from-"+e))},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.hotspotSequencedAnimation(),this.setTooltipPositionControl(),window.elementor&&elementor.listenTo(elementor.channels.deviceMode,"change",()=>this.onDeviceModeChange())},onElementChange(e){e.startsWith("tooltip_position")&&this.setTooltipPositionControl(),e.startsWith("hotspot_sequenced_animation")&&this.editorAddSequencedAnimation()}})},{"../utils/module":9}],45:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let a=jQuery,n=e.default.extend({onInit(){this.addOnHover()},addOnHover(){let e=this.getElementSettings(),t=this.$element,i=a(t).find(".jupiterx-image-accordion-item").length,n=e.active_size.size,s=n/((100-n)/(i-1));this.onMouseLeave(s),a(t).find(".jupiterx-image-accordion-item").on("mouseover",function(){a(t).find(".jupiterx-image-accordion-item").removeClass("jupiterx-active-image-accordion-item").css({"flex-grow":1}),a(this).addClass("jupiterx-active-image-accordion-item").css({"flex-grow":s})}),a(t).find(".jupiterx-default-active-image-accordion-item").addClass("jupiterx-active-image-accordion-item").css({"flex-grow":s})},onMouseLeave(e){let t=this.$element;a(t).find(".jupiterx-image-accordion-item").on("mouseleave",function(){a(t).find(".jupiterx-image-accordion-item").css({"flex-grow":1}).removeClass("jupiterx-active-image-accordion-item"),a(t).find(".jupiterx-default-active-image-accordion-item").addClass("jupiterx-active-image-accordion-item").css({"flex-grow":e})})}})},{"../utils/module":9}],46:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{carouselWrapper:".raven-swiper-slider",sliderWrapper:".raven-image-comparison-swiper-container",itemsSlider:".swiper-wrapper",slides:".swiper-slide",comparison:".raven-image-comparison-container"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$carouselWrapper:this.$element.find(e.carouselWrapper),$sliderWrapper:this.$element.find(e.sliderWrapper),$itemsSlider:this.$element.find(e.itemsSlider),$slides:this.$element.find(e.slides),$comparison:this.$element.find(e.comparison)}},getCarouselSettings(){return{slides_view:this.getInstanceValue("slides_view")||1,slides_view_tablet:this.getInstanceValue("slides_view_tablet")||1,slides_view_mobile:this.getInstanceValue("slides_view_mobile")||1,slides_scroll:this.getInstanceValue("slides_scroll")||1,slides_scroll_tablet:this.getInstanceValue("slides_scroll_tablet")||1,slides_scroll_mobile:this.getInstanceValue("slides_scroll_mobile")||1,enable_autoplay:this.getInstanceValue("autoplay"),autoplay_speed:this.getInstanceValue("autoplay_speed"),effect:this.getInstanceValue("effect"),transition_speed:this.getInstanceValue("speed"),show_dots:this.getInstanceValue("dots"),pause_on_hover:this.getInstanceValue("pause_on_hover")}},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments);let n=this,s=this.getCarouselSettings(),a={allowTouchMove:!1,draggable:!1,slidesPerColumn:0,slidesPerView:+s.slides_view_mobile,slidesToScroll:+s.slides_scroll_mobile||1,spaceBetween:24,slidesPerGroup:+s.slides_scroll_mobile||1,slidesPerGroupSkip:0,autoplay:"yes"===s.enable_autoplay&&{delay:s.autoplay_speed},watchOverflow:!1,speed:+s.transition_speed,navigation:{nextEl:".swiper-next-arrow",prevEl:".swiper-prev-arrow"},appendArrows:this.elements.$sliderWrapper,autoHeight:!0,breakpoints:{360:{slidesPerView:+s.slides_view_mobile,slidesToScroll:+s.slides_scroll_mobile||1,spaceBetween:24,slidesPerGroup:+s.slides_scroll_mobile||1,slidesPerGroupSkip:0},768:{slidesPerView:+s.slides_view_tablet,slidesToScroll:+s.slides_scroll_tablet||1,spaceBetween:24,slidesPerGroup:+s.slides_scroll_tablet||1,slidesPerGroupSkip:0},1024:{slidesPerView:+s.slides_view,slidesToScroll:+s.slides_scroll||1,spaceBetween:24,slidesPerGroup:+s.slides_scroll||1,slidesPerGroupSkip:0}}};this.elements.$sliderWrapper.each(function(e,t){$(this).parents(".elementor-widget-raven-image-comparison").find(".raven-image-comparison").addClass("swiper-"+e),a.navigation&&(a.navigation={nextEl:$(t).parents(".raven-image-comparison.swiper-"+e).find(".swiper-next-arrow")[0],prevEl:$(t).parents(".raven-image-comparison.swiper-"+e).find(".swiper-prev-arrow")[0]}),a.pagination=!1,"yes"===s.show_dots&&(a.pagination={el:$(t).parents(".raven-image-comparison.swiper-"+e).find(".swiper-pagination")[0],type:"bullets",clickable:!0}),"fade"===n.getInstanceValue("effect")&&(a.effect="fade",a.fadeEffect={crossFade:!0}),"function"==typeof juxtapose.scanPage&&juxtapose.scanPage(".raven-image-comparison .raven-juxtapose"),a.on={},a.on.init=function(){n.setJXDimensions(),n.elements.$carouselWrapper.addClass("raven-image-comparison-active")},a.on.update=a.on.init;let i=null;"undefined"==typeof Swiper?new elementorFrontend.utils.swiper(t,a).then(e=>{i=e}):i=new Swiper(t,a),"yes"===s.pause_on_hover&&"yes"===s.enable_autoplay&&$(t).on({mouseenter(){i.autoplay.stop()},mouseleave(){i.autoplay.start()}}),window.addEventListener("resize",()=>{i=new Swiper(t,a)}),new ResizeObserver(()=>{n.setJXDimensions()}).observe(t)})},bindEvents(){let e=this;setTimeout(()=>{e.setJXDimensions()},1)},setJXDimensions(){this.elements.$slides.each((e,t)=>{var i=$(t).find(".placeholder-image"),n=i[0].clientHeight,t=t.clientWidth,s=$(i).parents(".swiper-wrapper").height(),s=($(i).parents(".swiper-slide").find(".raven-juxtapose")[0].style.height=n+"px",parseInt(s)<1&&"object"==typeof elementor&&$(i).parents(".swiper-wrapper").css("height",n),$(i).parents(".swiper-slide").find(".raven-juxtapose img"));0<s.length&&(s[0].style.width=t+"px",s[1].style.width=t+"px")})}})},{"../utils/module":9}],47:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};class n extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{container:".raven-lottie__container",containerLink:".raven-lottie__container__link",animation:".raven-lottie__animation",caption:".raven-lottie__caption"},classes:{caption:"raven-lottie__caption"}}}getDefaultElements(){var e=this.getSettings().selectors;return{$widgetWrapper:this.$element,$container:this.$element.find(e.container),$containerLink:this.$element.find(e.containerLink),$animation:this.$element.find(e.animation),$caption:this.$element.find(e.caption),$sectionParent:this.$element.closest(".elementor-section"),$columnParent:this.$element.closest(".elementor-column")}}onInit(...e){super.onInit(...e),this.lottie=null,this.state={isAnimationScrollUpdateNeededOnFirstLoad:!0,isNewLoopCycle:!1,isInViewport:!1,loop:!1,animationDirection:"forward",currentAnimationTrigger:"",effectsRelativeTo:"",hoverOutMode:"",hoverArea:"",caption:"",playAnimationCount:0,animationSpeed:0,linkTimeout:0,viewportOffset:{start:0,end:100}},this.intersectionObservers={animation:{observer:null,element:null},lazyload:{observer:null,element:null}},this.animationFrameRequest={timer:null,lastScrollY:0},this.listeners={collection:[],elements:{$widgetArea:{triggerAnimationHoverIn:null,triggerAnimationHoverOut:null},$container:{triggerAnimationClick:null}}},this.initLottie()}initLottie(){this.getLottieSettings().lazyload?this.lazyloadLottie():this.generateLottie()}lazyloadLottie(){this.intersectionObservers.lazyload.observer=elementorModules.utils.Scroll.scrollObserver({offset:"0px 0px 200px",callback:e=>{e.isInViewport&&(this.generateLottie(),this.intersectionObservers.lazyload.observer.unobserve(this.intersectionObservers.lazyload.element))}}),this.intersectionObservers.lazyload.element=this.elements.$container[0],this.intersectionObservers.lazyload.observer.observe(this.intersectionObservers.lazyload.element)}generateLottie(){this.createLottieInstance(),this.setLottieEvents()}createLottieInstance(){var e=this.getLottieSettings();this.lottie=window.bodymovin.loadAnimation({container:this.elements.$animation[0],path:this.getAnimationPath(),renderer:e.renderer,autoplay:!1,name:"lottie-widget"}),this.elements.$animation.data("lottie",this.lottie)}getAnimationPath(){var e=this.getLottieSettings();return(e.source_json?.url&&"json"===e.source_json.url.toLowerCase().substr(-4)?e.source_json:e.source_external_url?.url?e.source_external_url:window.lottie_defaultAnimationUrl).url}setCaption(){var e=this.getLottieSettings();("external_url"===e.source||"media_file"===e.source&&"custom"===e.caption_source)&&this.getCaptionElement().text(e.caption)}getCaptionElement(){var e;return this.elements.$caption.length||(e=this.getSettings().classes,this.elements.$caption=jQuery("<p>",{class:e.caption}),this.elements.$container.append(this.elements.$caption)),this.elements.$caption}setLottieEvents(){this.lottie.addEventListener("DOMLoaded",()=>this.onLottieDomLoaded()),this.lottie.addEventListener("complete",()=>this.onComplete())}saveInitialValues(){var e=this.getLottieSettings();this.lottie.__initialTotalFrames=this.lottie.totalFrames,this.lottie.__initialFirstFrame=this.lottie.firstFrame,this.state.currentAnimationTrigger=e.trigger,this.state.effectsRelativeTo=e.effects_relative_to,this.state.viewportOffset.start=e.viewport?e.viewport.sizes.start:0,this.state.viewportOffset.end=e.viewport?e.viewport.sizes.end:100,this.state.animationSpeed=e.play_speed?.size,this.state.linkTimeout=e.link_timeout,this.state.caption=e.caption,this.state.loop=e.loop}setAnimationFirstFrame(){var e=this.getAnimationFrames();e.first=e.first-this.lottie.__initialFirstFrame,this.lottie.goToAndStop(e.first,!0)}initAnimationTrigger(){switch(this.getLottieSettings().trigger){case"none":this.playLottie();break;case"arriving_to_viewport":this.playAnimationWhenArrivingToViewport();break;case"bind_to_scroll":this.playAnimationWhenBindToScroll();break;case"on_click":this.bindAnimationClickEvents();break;case"on_hover":this.bindAnimationHoverEvents()}}playAnimationWhenArrivingToViewport(){var e=this.getOffset();this.intersectionObservers.animation.observer=elementorModules.utils.Scroll.scrollObserver({offset:e.end+`% 0% ${e.start}%`,callback:e=>{e.isInViewport?(this.state.isInViewport=!0,this.playLottie()):(this.state.isInViewport=!1,this.lottie.pause())}}),this.intersectionObservers.animation.element=this.elements.$widgetWrapper[0],this.intersectionObservers.animation.observer.observe(this.intersectionObservers.animation.element)}getOffset(){var e=this.getLottieSettings();return{start:-e.viewport.sizes.start||0,end:-(100-e.viewport.sizes.end)||0}}playAnimationWhenBindToScroll(){var e=this.getLottieSettings(),t=this.getOffset();this.intersectionObservers.animation.observer=elementorModules.utils.Scroll.scrollObserver({offset:t.end+`% 0% ${t.start}%`,callback:e=>this.onLottieIntersection(e)}),this.intersectionObservers.animation.element="viewport"===e.effects_relative_to?this.elements.$widgetWrapper[0]:document.documentElement,this.intersectionObservers.animation.observer.observe(this.intersectionObservers.animation.element)}updateAnimationByScrollPosition(){var e=this.getLottieSettings();let t;t="page"===e.effects_relative_to?this.getLottiePagePercentage():"fixed"===this.getCurrentDeviceSetting("_position")?this.getLottieViewportHeightPercentage():this.getLottieViewportPercentage();e=this.getFrameNumberByPercent(t);e-=this.lottie.__initialFirstFrame,this.lottie.goToAndStop(e,!0)}getLottieViewportPercentage(){return elementorModules.utils.Scroll.getElementViewportPercentage(this.elements.$widgetWrapper,this.getOffset())}getLottiePagePercentage(){return elementorModules.utils.Scroll.getPageScrollPercentage(this.getOffset())}getLottieViewportHeightPercentage(){return elementorModules.utils.Scroll.getPageScrollPercentage(this.getOffset(),window.innerHeight)}getFrameNumberByPercent(e){var t=this.getAnimationFrames();return e=Math.min(100,Math.max(0,e)),t.first+(t.last-t.first)*(e/100)}getAnimationFrames(){var e=this.getLottieSettings(),t=this.getAnimationCurrentFrame(),i=this.getAnimationRange().start,n=this.getAnimationRange().end;let s=this.lottie.__initialFirstFrame,a=0===this.lottie.__initialFirstFrame?this.lottie.__initialTotalFrames:this.lottie.__initialFirstFrame+this.lottie.__initialTotalFrames;return i&&i>s&&(s=i),n&&n<a&&(a=n),this.state.isNewLoopCycle||"bind_to_scroll"===e.trigger||(s=i&&t<i?i:t),"backward"===this.state.animationDirection&&this.isReverseMode()&&(s=t,a=i&&i>this.lottie.__initialFirstFrame?i:this.lottie.__initialFirstFrame),{first:s,last:a,current:t,total:this.lottie.__initialTotalFrames}}getAnimationRange(){var e=this.getLottieSettings();return{start:this.getInitialFrameNumberByPercent(e.start_point.size),end:this.getInitialFrameNumberByPercent(e.end_point.size)}}getInitialFrameNumberByPercent(e){return e=Math.min(100,Math.max(0,e)),this.lottie.__initialFirstFrame+(this.lottie.__initialTotalFrames-this.lottie.__initialFirstFrame)*(e/100)}getAnimationCurrentFrame(){return 0===this.lottie.firstFrame?this.lottie.currentFrame:this.lottie.firstFrame+this.lottie.currentFrame}setLinkTimeout(){let t=this.getLottieSettings();"on_click"===t.trigger&&t.custom_link?.url&&t.link_timeout&&this.elements.$containerLink.on("click",e=>{e.preventDefault(),this.isEdit||setTimeout(()=>{var e="on"===t.custom_link.is_external?"_blank":"_self";window.open(t.custom_link.url,e)},t.link_timeout)})}bindAnimationClickEvents(){this.listeners.elements.$container.triggerAnimationClick=()=>{this.playLottie()},this.addSessionEventListener(this.elements.$container,"click",this.listeners.elements.$container.triggerAnimationClick)}getLottieSettings(){var e=this.getElementSettings();return{...e,lazyload:"yes"===e.lazyload,loop:"yes"===e.loop}}playLottie(){var e=this.getAnimationFrames();this.lottie.stop(),this.lottie.playSegments([e.first,e.last],!0),this.state.isNewLoopCycle=!1}bindAnimationHoverEvents(){this.createAnimationHoverInEvents(),this.createAnimationHoverOutEvents()}createAnimationHoverInEvents(){var e=this.getLottieSettings(),t=this.getHoverAreaElement();this.state.hoverArea=e.hover_area,this.listeners.elements.$widgetArea.triggerAnimationHoverIn=()=>{this.state.animationDirection="forward",this.playLottie()},this.addSessionEventListener(t,"mouseenter",this.listeners.elements.$widgetArea.triggerAnimationHoverIn)}addSessionEventListener(e,t,i){e.on(t,i),this.listeners.collection.push({$el:e,event:t,callback:i})}createAnimationHoverOutEvents(){let e=this.getLottieSettings(),t=this.getHoverAreaElement();"pause"!==e.on_hover_out&&"reverse"!==e.on_hover_out||(this.state.hoverOutMode=e.on_hover_out,this.listeners.elements.$widgetArea.triggerAnimationHoverOut=()=>{"pause"===e.on_hover_out?this.lottie.pause():(this.state.animationDirection="backward",this.playLottie())},this.addSessionEventListener(t,"mouseleave",this.listeners.elements.$widgetArea.triggerAnimationHoverOut))}getHoverAreaElement(){var e=this.getLottieSettings();return"section"===e.hover_area?this.elements.$sectionParent:"column"===e.hover_area?this.elements.$columnParent:this.elements.$container}setLoopOnAnimationComplete(){var e=this.getLottieSettings();this.state.isNewLoopCycle=!0,e.loop&&!this.isReverseMode()?this.setLoopWhenNotReverse():e.loop&&this.isReverseMode()?this.setReverseAnimationOnLoop():!e.loop&&this.isReverseMode()&&this.setReverseAnimationOnSingleTrigger()}isReverseMode(){var e=this.getLottieSettings();return"yes"===e.reverse_animation||"reverse"===e.on_hover_out&&"backward"===this.state.animationDirection}setLoopWhenNotReverse(){var e=this.getLottieSettings();if(0<e.number_of_times)return this.state.playAnimationCount++,this.state.playAnimationCount<e.number_of_times?void this.playLottie():void(this.state.playAnimationCount=0);this.playLottie()}setReverseAnimationOnLoop(){var e=this.getLottieSettings();!e.number_of_times||this.state.playAnimationCount<e.number_of_times?(this.state.animationDirection="forward"===this.state.animationDirection?"backward":"forward",this.playLottie(),"backward"===this.state.animationDirection&&this.state.playAnimationCount++):(this.state.playAnimationCount=0,this.state.animationDirection="forward")}setReverseAnimationOnSingleTrigger(){this.state.playAnimationCount<1?(this.state.playAnimationCount++,this.state.animationDirection="backward",this.playLottie()):1<=this.state.playAnimationCount&&"forward"===this.state.animationDirection?(this.state.animationDirection="backward",this.playLottie()):(this.state.playAnimationCount=0,this.state.animationDirection="forward")}setAnimationSpeed(){var e=this.getLottieSettings();e.play_speed&&this.lottie.setSpeed(e.play_speed.size)}onElementChange(){this.updateLottieValues(),this.resetAnimationTrigger()}updateLottieValues(){var e=this.getLottieSettings();[{sourceVal:e.play_speed?.size,stateProp:"animationSpeed",callback:()=>this.setAnimationSpeed()},{sourceVal:e.link_timeout,stateProp:"linkTimeout",callback:()=>this.setLinkTimeout()},{sourceVal:e.caption,stateProp:"caption",callback:()=>this.setCaption()},{sourceVal:e.effects_relative_to,stateProp:"effectsRelativeTo",callback:()=>this.updateAnimationByScrollPosition()},{sourceVal:e.loop,stateProp:"loop",callback:()=>this.onLoopStateChange()}].forEach(e=>{void 0!==e.sourceVal&&e.sourceVal!==this.state[e.stateProp]&&(this.state[e.stateProp]=e.sourceVal,e.callback())})}onLoopStateChange(){var e="arriving_to_viewport"===this.state.currentAnimationTrigger&&this.state.isInViewport;this.state.loop&&(e||"none"===this.state.currentAnimationTrigger)&&this.playLottie()}resetAnimationTrigger(){var e=this.getLottieSettings(),t=e.trigger!==this.state.currentAnimationTrigger,i=!!e.viewport&&this.isViewportOffsetChange(),n=!!e.on_hover_out&&this.isHoverOutModeChange(),e=!!e.hover_area&&this.isHoverAreaChange();(t||i||n||e)&&(this.removeAnimationFrameRequests(),this.removeObservers(),this.removeEventListeners(),this.initAnimationTrigger())}isViewportOffsetChange(){var e=this.getLottieSettings(),t=e.viewport.sizes.start!==this.state.viewportOffset.start,e=e.viewport.sizes.end!==this.state.viewportOffset.end;return t||e}isHoverOutModeChange(){return this.getLottieSettings().on_hover_out!==this.state.hoverOutMode}isHoverAreaChange(){return this.getLottieSettings().hover_area!==this.state.hoverArea}removeEventListeners(){this.listeners.collection.forEach(e=>{e.$el.off(e.event,null,e.callback)})}removeObservers(){for(var e in this.intersectionObservers)this.intersectionObservers[e].observer&&this.intersectionObservers[e].element&&this.intersectionObservers[e].observer.unobserve(this.intersectionObservers[e].element)}removeAnimationFrameRequests(){window.cancelAnimationFrame(this.animationFrameRequest.timer)}onDestroy(){super.onDestroy(),this.destroyLottie()}destroyLottie(){this.removeAnimationFrameRequests(),this.removeObservers(),this.removeEventListeners(),this.elements.$animation.removeData("lottie"),this.lottie&&this.lottie.destroy()}onLottieDomLoaded(){this.saveInitialValues(),this.setAnimationSpeed(),this.setLinkTimeout(),this.setCaption(),this.setAnimationFirstFrame(),this.initAnimationTrigger()}onComplete(){this.setLoopOnAnimationComplete()}onLottieIntersection(e){var t;e.isInViewport?(this.state.isAnimationScrollUpdateNeededOnFirstLoad&&(this.state.isAnimationScrollUpdateNeededOnFirstLoad=!1,this.updateAnimationByScrollPosition()),this.animationFrameRequest.timer=window.requestAnimationFrame(()=>this.onAnimationFrameRequest())):(t=this.getAnimationFrames(),e="up"===e.intersectionScrollDirection?t.first:t.last,this.state.isAnimationScrollUpdateNeededOnFirstLoad=!1,window.cancelAnimationFrame(this.animationFrameRequest.timer),this.lottie.goToAndStop(e,!0))}onAnimationFrameRequest(){window.scrollY!==this.animationFrameRequest.lastScrollY&&(this.updateAnimationByScrollPosition(),this.animationFrameRequest.lastScrollY=window.scrollY),this.animationFrameRequest.timer=window.requestAnimationFrame(()=>this.onAnimationFrameRequest())}}},{}],48:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{tabsWrapper:".raven-media-gallery-tabs",contentsWrapper:".raven-media-gallery-tab-contents",tabs:".raven-media-gallery-tabs button.tab-item",contents:".raven-media-gallery-tab-contents .content",items:'.gallery-item [class*="type-"]',galleryItems:".gallery-item"},state:{activeIndex:0}}},getDefaultElements(){var e=this.getSettings("selectors");return{$tabsWrapper:this.$element.find(e.tabsWrapper),$contentsWrapper:this.$element.find(e.contentsWrapper),$tabs:this.$element.find(e.tabs),$contents:this.$element.find(e.contents),$items:this.$element.find(e.items),$galleryItems:this.$element.find(e.galleryItems)}},bindEvents(){let e=this;this.zoom(),this.zoomMove(),setTimeout(()=>{e.setHeight()},1),jQuery(window).resize(()=>{e.setHeight()}),this.elements.$tabsWrapper[0]&&this.elements.$tabsWrapper[0].addEventListener("click",t=>{if(t.target.classList.contains("tab-item")){let e=this.getSettings("state.activeIndex");"show"!==this.getInstanceValue("all_filter")&&0===e&&(e=1);var i=this.elements.$tabsWrapper[0].querySelector('[data-raven-tab-index="'+e+'"]'),n=this.elements.$contentsWrapper[0].querySelector('[data-raven-content-index="'+e+'"]'),i=(i.classList.remove("active"),n.classList.remove("active"),n.querySelectorAll(".gallery-item").forEach(e=>{e.classList.remove("show-animation")}),this.setSettings("state.activeIndex",t.target.dataset.ravenTabIndex),this.elements.$contentsWrapper[0].querySelector('[data-raven-content-index="'+t.target.dataset.ravenTabIndex+'"]'));t.target.classList.add("active"),i.classList.add("active"),i.querySelectorAll(".gallery-item").forEach((e,t)=>{setTimeout(()=>{e.classList.add("show-animation")},100*t)}),this.setHeight()}})},zoom(){"zoom"===this.getInstanceValue("image_hover_animation")&&this.elements.$items.find(".poster").zoom()},zoomMove(){"3d-zoom"===this.getInstanceValue("image_hover_animation")&&[...this.elements.$galleryItems].forEach(e=>{let a=e.querySelector("img");a&&((e=0<$(e).parents(".content-layout-under-image").length?e.querySelector('[class*="type-"]'):e).addEventListener("mouseout",()=>{a.style.transform="perspective(900px) translate3d(0px, 0px, 0px) scale(1)"}),e.addEventListener("mousemove",e=>{var t=e.currentTarget.getBoundingClientRect(),i=((t.width+35)/t.width).toFixed(2),n=((t.height+35)/t.height).toFixed(2),s=t.width/2-(e.clientX-t.left),e=t.height/2-(e.clientY-t.top),s=s/t.width*40,e=e/t.height*40;a.style.transform=`perspective(900px) translate3d(${s}px, ${e}px, 0px) scale(${Math.max(i,n)})`}))})},handleAnimation(){this.elements.$contentsWrapper[0].querySelectorAll(".active .gallery-item").forEach((e,t)=>{setTimeout(()=>{e.classList.add("show-animation")},100*t)})},setHeight(){var e;this.$element.parents()[0].classList.contains("e-con-inner")&&(e=this.$element.find(".raven-media-gallery-wrapper")[0].clientHeight,this.$element[0].style.height=e+"px")},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.handleAnimation()}})},{"../utils/module":9}],49:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({pageWrapperAttr:"raven-my-account-page",currentPage:null,onInit(){this.initElements(),this.bindEvents(),this.isEdit&&(this.editorInitTabs(),this.currentPage=this.$element.attr(this.pageWrapperAttr),this.currentPage||(this.currentPage="dashboard"),this.editorShowTab()),this.applyButtonsHoverAnimation(),this.doHeightEqualizations(),this.setContentMinHeight(),this.removePaddingBetweenPurchaseNote(this.elements.$purchasenote)},getDefaultSettings(){return{selectors:{address:"address",tabLinks:".woocommerce-MyAccount-navigation-link a",viewOrderButtons:".my_account_orders .woocommerce-button.view",viewOrderLinks:".woocommerce-orders-table__cell-order-number a",authForms:"form.login, form.register",tabWrapper:".raven-my-account-tab",tabItem:".woocommerce-MyAccount-navigation li",allPageElements:`[${this.pageWrapperAttr}]`,purchasenote:"tr.product-purchase-note",stickyRightColumn:".e-sticky-right-column"},classes:{stickyRightColumnActive:"e-sticky-right-column--active"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$address:this.$element.find(e.address),$tabLinks:this.$element.find(e.tabLinks),$viewOrderButtons:this.$element.find(e.viewOrderButtons),$viewOrderLinks:this.$element.find(e.viewOrderLinks),$authForms:this.$element.find(e.authForms),$tabWrapper:this.$element.find(e.tabWrapper),$tabItem:this.$element.find(e.tabItem),$allPageElements:this.$element.find(e.allPageElements),$purchasenote:this.$element.find(e.purchasenote),$stickyRightColumn:this.$element.find(e.stickyRightColumn)}},bindEvents(){elementorFrontend.elements.$document.on("select2:open",this.addSelect2Wrapper),elementorFrontend.elements.$body.on("keyup change",".register #reg_password",this.doHeightEqualizations)},editorInitTabs(){this.elements.$allPageElements.each((e,t)=>{t=t.getAttribute(this.pageWrapperAttr);let i;i=this.$element.find(".woocommerce-MyAccount-navigation-link--"+t),(i="view-order"===t?this.elements.$viewOrderLinks.add(this.elements.$viewOrderButtons):i).on("click",{endpoint:t},this.editorShowTab)}),this.elements.$tabWrapper.find(".woocommerce-MyAccount-navigation li").first().trigger("click")},editorShowTab(e=null){e&&(this.currentPage=e.data.endpoint),"customer-logout"!==this.currentPage&&(e=this.$element.find(`[${this.pageWrapperAttr}="${this.currentPage}"]`),this.$element.attr(this.pageWrapperAttr,this.currentPage),this.elements.$allPageElements.hide(),e.show(),this.toggleEndpointClasses(),"view-order"!==this.currentPage&&(this.elements.$tabItem.removeClass("is-active"),this.$element.find(".woocommerce-MyAccount-navigation-link--"+this.currentPage).addClass("is-active")),"edit-address"===this.currentPage||"view-order"===this.currentPage)&&this.doHeightEqualizations()},toggleEndpointClasses(){var e=["dashboard","orders","view-order","downloads","edit-account","edit-address","payment-methods"];this.elements.$tabWrapper.removeClass("raven-my-account-tab__"+e.join(" raven-my-account-tab__")),e.includes(this.currentPage)&&this.elements.$tabWrapper.addClass("raven-my-account-tab__"+this.currentPage)},applyButtonsHoverAnimation(){var e=this.getElementSettings();e.forms_buttons_hover_animation&&this.$element.find(".woocommerce button.button").addClass("elementor-animation-"+e.forms_buttons_hover_animation),e.tables_button_hover_animation&&this.$element.find(".order-again .button, td .button, .woocommerce-pagination .button").addClass("elementor-animation-"+e.tables_button_hover_animation)},doHeightEqualizations(){this.equalizeElementHeight(this.elements.$address),this.isEdit||this.equalizeElementHeight(this.elements.$authForms)},equalizeElementHeight(e){if(e.length){e.removeAttr("style");let i=0;e.each((e,t)=>{i=Math.max(i,t.offsetHeight)}),0<i&&e.css("height",i+"px")}},setContentMinHeight(){var e=jQuery(".custom-my-account-nav-vertical"),t=jQuery(".woocommerce-MyAccount-content-wrapper");e.length&&(e=window.getComputedStyle(e[0]).height,t.css("min-height",e)),t.css("visibility","visible")},removePaddingBetweenPurchaseNote(e){e&&e.each(e=>{jQuery(e).prev().children("td").addClass("product-purchase-note-is-below")})},onElementChange(e){0!==e.indexOf("general_text_typography")&&0!==e.indexOf("sections_padding")||this.doHeightEqualizations(),0===e.indexOf("forms_rows_gap")&&this.removePaddingBetweenPurchaseNote(this.elements.$purchasenote)},addSelect2Wrapper(e){e=jQuery(e.target).data("select2");e.$dropdown&&e.$dropdown.addClass("e-woo-select2-wrapper")},isStickyRightColumnActive(){var e=this.getSettings("classes");return this.elements.$stickyRightColumn.hasClass(e.stickyRightColumnActive)},activateStickyRightColumn(){var e=this.getElementSettings(),t=elementorFrontend.elements.$wpAdminBar,i=this.getSettings("classes");let n=e.sticky_right_column_offset||0;t.length&&"fixed"===t.css("position")&&(n+=t.height()),"yes"===this.getElementSettings("sticky_right_column")&&(this.elements.$stickyRightColumn.addClass(i.stickyRightColumnActive),this.elements.$stickyRightColumn.css("top",n+"px"))},deactivateStickyRightColumn(){var e;this.isStickyRightColumnActive()&&(e=this.getSettings("classes"),this.elements.$stickyRightColumn.removeClass(e.stickyRightColumnActive))},toggleStickyRightColumn(){this.getElementSettings("sticky_right_column")?this.isStickyRightColumnActive()||this.activateStickyRightColumn():this.deactivateStickyRightColumn()}})},{"../utils/module":9}],50:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let a=jQuery,n=e.default.extend({getDefaultSettings(){return{selectors:{menus:".raven-nav-menu",inPageMenuItems:'a[href*="#"]',toggleButton:".raven-nav-menu-toggle-button",closeButton:".raven-nav-menu-close-button",mobileMenu:".raven-nav-menu-mobile",mobileContainer:".raven-nav-menu-mobile .raven-container",megaMenu:".submenu .raven-megamenu-wrapper",liNavItem:".raven-nav-menu-main .raven-nav-menu li"}}},getDefaultElements(){var e=this.getSettings("selectors"),e={$body:a("body"),$menus:this.$element.find(e.menus),$inPageMenuItems:this.$element.find(e.inPageMenuItems),$toggleButton:this.$element.find(e.toggleButton),$closeButton:this.$element.find(e.closeButton),$mobileMenu:this.$element.find(e.mobileMenu),$mobileContainer:this.$element.find(e.mobileContainer),$elementorElement:this.$element.closest(".elementor-element"),$elementorContainer:this.$element.parents(".elementor-container").last(),$megaMenu:this.$element.find(e.megaMenu),$navMenuItem:this.$element.find(e.$menus).find("li"),$liNavItem:this.$element.find(e.liNavItem)};return e.$elementorContainer.length||(e.$elementorContainer=this.$element.closest(".e-con")),e},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initSmartMenu(),this.inPageMenuClick(),this.inPageMenuScroll(),this.mobileMenuScroll(),this.mobileMenuPageRedirection(),this.setMegaMenuWidth(),this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.elements.$mobileMenu,selectors:{container:this.elements.$mobileMenu.parents(".elementor-top-section")}})},bindEvents(){switch(this.getElementSettings("mobile_layout")){case"dropdown":this.elements.$toggleButton.on("click",this.toggleDropdown.bind(this)),elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.dropdownFullWidth.bind(this)),a(window).on("resize",this.setMegaMenuWidth.bind(this));break;case"side":var e=this.getElementSettings("side_menu_alignment"),t=this.getElementSettings("side_menu_effect");this.elements.$mobileMenu.addClass("raven-side-menu-"+e),this.elements.$mobileMenu.addClass("raven-side-menu-"+e),this.elements.$toggleButton.on("click",this.toggleMobileMenu.bind(this)),this.elements.$closeButton.on("click",this.toggleMobileMenu.bind(this)),"push"===t&&(this.elements.$body.addClass("raven-nav-menu-effect-push"),this.elements.$toggleButton.on("click",this.sideMenuPush.bind(this)),this.elements.$closeButton.on("click",this.sideMenuPush.bind(this))),this.elements.$menus.on("select.smapi",this.onSideMenuItemClick.bind(this));break;case"full-screen":"yes"===this.getElementSettings("mobile_menu_item_full_width")&&this.elements.$mobileMenu.addClass("raven-nav-menu-item-full-width"),this.elements.$toggleButton.on("click",this.toggleMobileMenu.bind(this)),this.elements.$closeButton.on("click",this.toggleMobileMenu.bind(this))}this.elements.$liNavItem.on("hover",this.setMegaMenuWidth)},initSmartMenu(){var e=this.getElementSettings("submenu_icon"),t=this.getElementSettings("submenu_space_between"),e={subIndicatorsText:e,subIndicators:""!==e,subIndicatorsPos:"append",subMenusMaxWidth:"1500px"};this.elements.$body.hasClass("rtl")&&(e.rightToLeftSubMenus=!0),this.elements.$megaMenu.length&&(e.keepInViewport=!1),"object"==typeof t&&""!==t.size&&(e.mainMenuSubOffsetY=parseInt(t.size)),"top"===this.getElementSettings("submenu_opening_position")&&(e.bottomToTopSubMenus=!0),this.excludeOtherUl(),this.elements.$menus.smartmenus(e)},toggleDropdown(){let e=this.elements.$mobileMenu;this.elements.$toggleButton.find(".hamburger").toggleClass("is-active"),e.slideToggle(250,()=>{e.toggleClass("raven-nav-menu-active").css("display","")}),this.dropdownFullWidth()},dropdownFullWidth(){var e,t,i,n,s,a=this.elements.$mobileMenu;a.css("max-height",document.documentElement.clientHeight-a.get(0).getBoundingClientRect().top),"stretch"===this.getElementSettings("full_width")&&(e=this.elements.$elementorElement,t=this.elements.$elementorContainer,i=this.elements.$toggleButton,n=this.elements.$mobileContainer,s=window.innerWidth,this.stretchElement.stretch(),a.css("top",e.offset().top+e.outerHeight()-i.offset().top),n.css("max-width",1024<s?t.outerWidth():"none"))},sideMenuPush(){var e=this.getElementSettings("side_menu_alignment");let t=parseInt(this.$element.css("--menu-container-width"))||250;"right"===e&&(t=-t),this.elements.$body.hasClass("raven-nav-menu-effect-pushed")?this.elements.$body.removeClass("raven-nav-menu-effect-pushed").removeAttr("style"):this.elements.$body.addClass("raven-nav-menu-effect-pushed").css("margin-"+(this.isRtl()?"right":"left"),t)},toggleMobileMenu(){this.elements.$mobileMenu.toggleClass("raven-nav-menu-active"),this.elements.$mobileMenu.hasClass("raven-nav-menu-active")?this.elements.$mobileMenu.parents(".animated").addClass("raven-nav-menu-parents-animation"):this.elements.$mobileMenu.parents(".animated").removeClass("raven-nav-menu-parents-animation"),0!==this.elements.$toggleButton.find(".hamburger").length&&this.elements.$toggleButton.find(".hamburger").toggleClass("is-active")},mobileMenuScroll(){let n=document.querySelectorAll(".raven-nav-menu-mobile.raven-nav-menu-dropdown, .raven-nav-menu-mobile.raven-nav-menu-full-screen"),s=null;for(let i=0;i<n.length;i++)n[i].addEventListener("touchstart",function(e){1===e.targetTouches.length&&(s=e.targetTouches[0].clientY)},{capture:!1,passive:!0}),n[i].addEventListener("touchmove",function(e){var t;1===e.targetTouches.length&&(t=e.targetTouches[0].clientY-s,0===n[i].scrollTop&&0<t&&e.cancelable&&e.preventDefault(),n[i].scrollHeight-n[i].scrollTop<=n[i].clientHeight)&&t<0&&e.cancelable&&e.preventDefault()},{capture:!1,passive:!0})},mobileMenuPageRedirection(){var e=this.elements.$mobileMenu.find(".menu-item-has-children"),t=e.find("> .raven-link-item"),i=t.find("> .sub-arrow");0!==e.length&&0!==t.length&&i.on("click",function(e){a(e.currentTarget).parent().hasClass("highlighted")&&e.preventDefault()})},inPageMenuClick(){let n=this,s=this.getHeaderSettings(),e;this.elements.$menus.on("click",t=>{e=t.target.getAttribute("href")||"";let i=null;try{i=new window.URL(a(t.target).prop("href"))}catch(e){return}if((i.href.replace(i.hash,"")===window.location.href.replace(window.location.hash,"")||-1!==e.search(/^#/))&&-1!==i.hash.search(/^#/)){e=i.hash,t.preventDefault();t=a(e);if(0!==t.length){let e=t.offset().top;return e=(e-=n.getAdminbarHeight())-n.getBodyBorderWidth(),s&&"sticky"===s.behavior&&s.overlap||s&&!s.behavior?e-=n.isHeaderSticked()?n.tbarHeight():2*n.tbarHeight():e-=n.tbarHeight(),n.hasCustomStickyHeader()?e-=n.getCustomStickyHeaderHeight():(s&&"fixed"===s.behavior&&"top"===s.position||s&&"sticky"===s.behavior)&&(e-=n.getHeaderHeight()),n.elements.$body.hasClass("raven-nav-menu-effect-pushed")&&n.sideMenuPush(),n.elements.$mobileMenu.removeClass("raven-nav-menu-active"),n.changeHamburgerState(!1),window.history.pushState(null,null,i.hash),a("html, body").stop().animate({scrollTop:e},500,"swing"),!1}n.elements.$body.hasClass("raven-nav-menu-effect-pushed")&&n.sideMenuPush(),n.elements.$mobileMenu.removeClass("raven-nav-menu-active"),n.changeHamburgerState(!1),window.history.pushState(null,null,i.hash)}})},inPageMenuScroll(){let i=this;i.elements.$inPageMenuItems.length&&i.elements.$inPageMenuItems.each(function(e,t){if(!(t.hash<1)){let e=a('[id="'+t.hash.replace("#","")+'"]');e.length&&(t=a(t),window.location.hash||i.activateMenuItem(e,t),window.addEventListener("scroll",_.throttle(function(){i.activateMenuItem(e,t)})))}})},activateMenuItem(e,t){let i=!1;var n=this.getHeaderHeight()+this.getAdminbarHeight(),s=e.offset().top,a=s-1-n,s=s-2+e.outerHeight()-n,e=window.pageYOffset;a<=e&&e<=s&&(i=!0),t.toggleClass("raven-menu-item-active",i)},getHeaderHeight(){var e,t=a(".jupiterx-header");return 0!==t.length&&(e=t.data("jupiterx-settings").behavior,"fixed"===e||"sticky"===e||window.pageYOffset<t.height())?t.height():0},hasCustomStickyHeader(){var e=this.getHeaderSettings();return!!e&&!(!e.behavior||"sticky"!==e.behavior||e.stickyTemplate&&e.stickyTemplate===e.template)},getHeaderSettings(){return a(".jupiterx-header").data("jupiterx-settings")},getCustomStickyHeaderHeight(){var e;return!this.hasCustomStickyHeader()||0===(e=a(".jupiterx-header-custom .elementor:last-of-type")).length?0:e.outerHeight()},getBodyBorderWidth(){var e=a(".jupiterx-site-body-border");return 0!==e.length&&(e=e.css("border-width"))?parseInt(e.replace("px","")):0},getAdminbarHeight(){var e=a("#wpadminbar");return e.length?e.height():0},tbarHeight(){var e=a(".jupiterx-tbar");return e.length?e.outerHeight():0},onElementChange(e){var t,i;"stretch"!==this.getElementSettings("full_width")?(this.stretchElement.reset(),this.elements.$mobileMenu.removeAttr("style"),this.elements.$mobileMenu.find(".raven-container").removeAttr("style")):this.dropdownFullWidth(),"mobile_layout"!==e&&"side_menu_effect"!==e||(this.elements.$body.removeClass("raven-nav-menu-effect-pushed").removeAttr("style"),this.elements.$mobileMenu.removeClass("raven-nav-menu-active")),"side"===this.getElementSettings("mobile_layout")&&e.startsWith("menu_container_width")&&this.elements.$body.hasClass("raven-nav-menu-effect-pushed")&&(i=this.getElementSettings("side_menu_alignment"),t=parseInt(this.$element.css("--menu-container-width"))||250,this.elements.$body.css("margin-left","left"===i?t:-t)),"submenu_space_between"===e&&"object"==typeof(i=this.getElementSettings("submenu_space_between"))&&(this.findElement(".raven-submenu").first().css("margin-top",""===i.size?"0":i.size+"px"),this.elements.$menus.smartmenus("destroy"),this.initSmartMenu())},onSectionActivated(e){this.editShowSubmenu("section_submenu"===e)},onEditorClosed(){this.editShowSubmenu(!1)},editShowSubmenu(e){var t=this.findElement(".raven-submenu").first(),i=this.getElementSettings("submenu_space_between");t.toggleClass("raven-show-submenu",e),"object"==typeof i&&t.css("margin-top",""===i.size?"0":i.size+"px")},onSideMenuItemClick(e,t){var t=a(t);0!==t.closest(".raven-nav-menu-side").length&&-1===(t=t.attr("href")).search(/^#/)&&0!==t.trim().length&&this.elements.$closeButton.trigger("click")},isHeaderSticked(){return 0<a(".jupiterx-header-sticked").length},setMegaMenuWidth(){let e=this.elements.$liNavItem.find(".submenu .raven-megamenu-wrapper"),t=this.elements.$elementorContainer,i=t.offset().left,n=t.outerWidth();e.each(function(){var e=a(this),t=e.parent().parent().offset().left,t=-Math.abs(t-i);e.parent().css("transform",`translateX(${t}px)`)}),e.css("width",n+"px")},excludeOtherUl(){this.elements.$liNavItem.find(".submenu .raven-megamenu-wrapper").each(function(){a(this).find("ul").attr("data-sm-skip","true")})},changeHamburgerState(e){var t=this.elements.$toggleButton.find(".hamburger");0!==t.length&&(e?t.addClass("is-active"):t.removeClass("is-active"))}})},{"../utils/module":9}],51:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};class n extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{button:".elementor-button.elementor-paypal-legacy",errors:".elementor-message-danger"}}}getDefaultElements(){var e=this.getSettings();return{wrapper:this.$element[0],button:this.$element[0].querySelector(e.selectors.button),errors:this.$element[0].querySelectorAll(e.selectors.errors)}}handleClick(e){0<this.elements.errors.length&&(e.preventDefault(),this.elements.errors.forEach(e=>{e.classList.remove("elementor-hidden")}))}bindEvents(){_.isNull(this.elements.button)||this.elements.button.addEventListener("click",this.handleClick.bind(this))}}},{}],52:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new a({$element:e})};var i=s(e("../utils/module")),n=s(e("../utils/masonry"));function s(e){return e&&e.__esModule?e:{default:e}}let a=i.default.extend({Masonry:null,onInit(){$(this.$element).on("add-stack-effect",this.addStackEffect),"masonry"===this.getInstanceValue("layout")&&this.createMasonry(),"stack"===this.getElementSettings("_skin")&&$(this.$element).trigger("add-stack-effect")},addStackEffect(){let i=this.getElementSettings("stack_hover_effect");$.each(this.$element.find(".raven-photo-album-item"),(e,t)=>{new window[i+"Fx"]({el:t})})},createMasonry(){let e=this;e.Masonry=new n.default({$element:e.$element}),e.Masonry.run(),"stack"===e.getElementSettings("_skin")&&setTimeout(()=>{$(e.$element).trigger("add-stack-effect")},50)}})},{"../utils/masonry":8,"../utils/module":9}],53:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{container:".raven-photo-roller",frame:".raven-photo-roller-frame",image:".raven-photo-roller-frame img"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$container:this.$element.find(e.container),$frame:this.$element.find(e.frame),$image:this.$element.find(e.image)}},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.getElementSettings("max_height").size&&this.calculateNewWidth(),void 0!==window.safari&&(this.redraw(),$(window).resize(this.redraw))},redraw(){this.elements.$container.hide().show(0)},calculateNewWidth(){var e,t=this.getElementSettings("max_height"),i=parseFloat(this.elements.$image.css("width"),10),n=parseFloat(this.elements.$image.css("height"),10);this.elements.$frame.css("max-height",t.size+t.unit),this.elements.$frame.after().css("max-height",t.size+t.unit),"px"===t.unit&&t.size<n?(e=t.size/n*i,this.elements.$frame.css("width",e),this.elements.$image.css("width",e)):"%"===t.unit&&t.size<100&&(e=n*t.size/100,this.elements.$frame.css("width",t=e*(i/n)),this.elements.$frame.css("height",e),this.elements.$image.css("width",t),this.elements.$image.css("height",e))}})},{"../utils/module":9}],54:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({onInit(){$("body").find("li.depth-1").each(function(e,t){$(t).find(".children").last().find(".comment").last().find(".jupiterx-comment-body").css({"border-bottom":"none","padding-bottom":"5px"})}),this.actionLinkIconOnHover()},onElementChange(){this.actionLinkIconOnHover()},getWrapper(){return'div[data-id="'+this.getID()+'"]'},actionLinkIconOnHover(){var e=this.getWrapper();let t=$(e).css("--action-links-icon-color-hover"),i=$(e).find(".fa-comment-dots").css("color");t&&($(e).find(".jupiterx-comment-links i").on("mouseover",function(){$(this).css("color",t)}),$(e).find(".jupiterx-comment-links i").on("mouseleave",function(){$(this).css("color",i)}),$(e).find(".comment-reply-link").on("mouseover",function(){$(this).parents(".jupiterx-comment-links").find(".fa-comment-dots").css("color",t)}),$(e).find(".comment-reply-link").on("mouseleave",function(){$(this).parents(".jupiterx-comment-links").find(".fa-comment-dots").css("color",i)}),$(e).find(".jupiterx-comment-links li:last-child").on("mouseover",function(){$(this).parents(".jupiterx-comment-links").find(".fa-paper-plane").css("color",t)}),$(e).find(".jupiterx-comment-links li:last-child").on("mouseleave",function(){$(this).parents(".jupiterx-comment-links").find(".fa-paper-plane").css("color",i)}))}})},{"../utils/module":9}],55:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{image:".raven-post-navigation-featured-image"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$navigation:this.$element,$image:this.$element.find(e.image)}},bindEvents(){this.handleZoomAndMove()},handleZoomAndMove(){var e=this.getInstanceValue("hover_animation_featured_image");!e||"zoom-move"!==e||this.elements.$image.length<1||(this.elements.$image.on("mouseout",e=>{e.currentTarget.style.transform="perspective(900px) translate3d(0px, 0px, 0px) scale(1)"}),this.elements.$image.on("mousemove",e=>{var t=e.currentTarget.getBoundingClientRect(),i=((t.width+35)/t.width).toFixed(2),n=((t.height+35)/t.height).toFixed(2),s=t.width/2-(e.clientX-t.left),a=t.height/2-(e.clientY-t.top),s=s/t.width*30,a=a/t.height*30;e.currentTarget.style.transform=`perspective(900px) translate3d(${s}px, ${a}px, 0px)  scale(`+Math.max(i,n)}))}})},{"../utils/module":9}],56:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.classic=function(e){new n({$element:e})},i.cover=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{classes:{dots:"swiper-pager"},selectors:{postImageFit:".raven-image-fit img",carouselWrapper:".raven-swiper-slider",sliderWrapper:".raven-posts-carousel-swiper-container",itemsSlider:".swiper-wrapper"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$carouselWrapper:this.$element.find(e.carouselWrapper),$sliderWrapper:this.$element.find(e.sliderWrapper),$itemsSlider:this.$element.find(e.itemsSlider)}},getCarouselSettings(){return{slides_view:this.getInstanceValue("slides_view"),slides_view_tablet:this.getInstanceValue("slides_view_tablet"),slides_view_mobile:this.getInstanceValue("slides_view_mobile"),slides_scroll:this.getInstanceValue("slides_scroll"),slides_scroll_tablet:this.getInstanceValue("slides_scroll_tablet"),slides_scroll_mobile:this.getInstanceValue("slides_scroll_mobile"),enable_autoplay:this.getInstanceValue("enable_autoplay"),autoplay_speed:this.getInstanceValue("autoplay_speed"),enable_infinite_loop:this.getInstanceValue("enable_infinite_loop"),enable_hover_pause:this.getInstanceValue("enable_hover_pause"),overflow_visible:this.getInstanceValue("overflow_visible"),transition_speed:this.getInstanceValue("transition_speed"),show_navigation:this.getInstanceValue("show_arrows"),show_pagination:this.getInstanceValue("show_pagination"),pagination_position:this.getInstanceValue("pagination_position"),columns_space_between:this.getInstanceValue("columns_space_between"),columns_space_between_mobile:this.getInstanceValue("columns_space_between_mobile"),columns_space_between_tablet:this.getInstanceValue("columns_space_between_tablet")}},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments);let n=this.getCarouselSettings(),s={draggable:!1,slidesPerColumn:0,centeredSlides:"yes"===n.overflow_visible,centeredSlidesBounds:"yes"===n.overflow_visible,spaceBetween:n.columns_space_between_mobile.size,slidesPerView:"yes"===n.overflow_visible?+n.slides_view_mobile+.5:+n.slides_view_mobile,slidesPerGroup:+n.slides_scroll_mobile,autoplay:"yes"===n.enable_autoplay&&{delay:n.autoplay_speed},loop:"yes"===n.enable_infinite_loop,speed:+n.transition_speed,navigation:"yes"===n.show_navigation&&{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},appendArrows:this.elements.$sliderWrapper,pagination:"yes"===n.show_pagination&&{el:".swiper-pagination",type:"bullets",clickable:!0},breakpoints:{360:{slidesPerView:"yes"===n.overflow_visible?+n.slides_view_mobile+.5:+n.slides_view_mobile,slidesPerGroup:+n.slides_scroll_mobile,spaceBetween:n.columns_space_between_mobile.size},768:{slidesPerView:"yes"===n.overflow_visible?+n.slides_view_tablet+.5:+n.slides_view_tablet,slidesPerGroup:+n.slides_scroll_tablet,spaceBetween:n.columns_space_between_tablet.size},1024:{slidesPerView:"yes"===n.overflow_visible?+n.slides_view+.5:+n.slides_view,slidesPerGroup:+n.slides_scroll,spaceBetween:n.columns_space_between.size}}},a=("yes"===n.overflow_visible&&(this.elements.$carouselWrapper.find(".swiper-button-next").css("right","40px"),this.elements.$carouselWrapper.find(".swiper-button-prev").css("left","40px")),this);this.elements.$sliderWrapper.each(function(e,t){$(this).parents(".elementor-widget-raven-posts-carousel").find(".raven-posts-carousel").addClass("swiper-"+e),$(this).parents(".elementor-widget-raven-posts-carousel").find(".raven-posts-carousel").addClass("swiper-"+e),s.navigation&&(s.navigation={nextEl:$(t).parents(".raven-posts-carousel").find(".swiper-button-next")[0],prevEl:$(t).parents(".raven-posts-carousel").find(".swiper-button-prev")[0]});let i=null;s.on={},s.on.init=function(){a.handleAnitmation(),a.handleFeaturedIamageEffect()},"undefined"==typeof Swiper?new elementorFrontend.utils.swiper(t,s).then(e=>{i=e}):i=new Swiper(t,s),"yes"===n.enable_autoplay&&"yes"===n.enable_hover_pause&&$(t).on({mouseenter(){i.autoplay.stop()},mouseleave(){i.autoplay.start()}})})},handleAnitmation(){this.elements.$sliderWrapper.imagesLoaded().done(()=>{let e=[...this.elements.$sliderWrapper[0].querySelectorAll(".swiper-slide")];this.getInstanceValue("load_effect")?(e="slide-right"===this.getInstanceValue("load_effect")?e.slice().reverse():e).forEach((e,t)=>{setTimeout(()=>{e.classList.add("raven-posts-carousel-loaded")},200+100*t),setTimeout(()=>{e.querySelector(".raven-posts-carousel-load-effect").classList.remove("raven-post-carousel-effect-"+this.getInstanceValue("load_effect"),"raven-posts-carousel-load-effect")},1500+100*t)}):e.forEach(e=>{e.classList.add("raven-posts-carousel-loaded")})})},handleFeaturedIamageEffect(){var e=this.getInstanceValue("post_image_hover_effect");if(e&&"zoom-move"===e){let e=this.elements.$sliderWrapper.find(".raven-post-image");(e="cover"===this.getElementSettings("_skin")?this.elements.$sliderWrapper.find(".raven-post-wrapper"):e).on("mouseout",e=>{e=e.currentTarget.querySelector(".raven-posts-carousel-zoom-move-wrapper");e&&(e.style.transform="perspective(900px) translate3d(0px, 0px, 0px) scale(1)")}),e.on("mousemove",e=>{var t=e.currentTarget.getBoundingClientRect(),i=((t.width+35)/t.width).toFixed(2),n=((t.height+35)/t.height).toFixed(2),s=e.currentTarget.querySelector(".raven-posts-carousel-zoom-move-wrapper"),a=t.width/2-(e.clientX-t.left),e=t.height/2-(e.clientY-t.top),a=a/t.width*30,e=e/t.height*30;s&&(s.style.transform=`perspective(900px) translate3d(${a}px, ${e}px, 0px) scale(${Math.max(i,n)})`)}),"cover"!==this.getElementSettings("_skin")||document.body.classList.contains("elementor-editor-active")||e.on("click",e=>{e=e.currentTarget.querySelector(".raven-post-image").getAttribute("data-href");e&&window.location.assign(e)})}}})},{"../utils/module":9}],57:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.classic=function(e){new r({$element:e})},i.cover=function(e){new r({$element:e})};var i=o(e("../utils/module")),n=o(e("../utils/sortable")),s=o(e("../utils/pagination")),a=o(e("../utils/masonry"));function o(e){return e&&e.__esModule?e:{default:e}}let r=i.default.extend({Sortable:null,Pagination:null,Masonry:null,getDefaultSettings(){return{classes:{postMirrored:"data-mirrored"},selectors:{posts:".raven-posts",postItem:".raven-post-item",postImageFit:".raven-image-fit img",postMirrored:"[data-mirrored]",loadMore:".raven-load-more",loadMoreButton:".raven-load-more-button",pagination:".raven-pagination",sortable:".raven-sortable",infinteLoadIndicator:".raven-infinite-load"},state:{paged:1,category:-1,maxNumPages:1,isLoading:!1}}},getDefaultElements(){var e=this.getSettings("selectors");return{$postsContainer:this.$element.find(e.posts),$loadMore:this.$element.find(e.loadMore),$loadMoreButton:this.$element.find(e.loadMoreButton),$pagination:this.$element.find(e.pagination),$infinteLoadIndicator:this.$element.find(e.infinteLoadIndicator)}},bindEvents(){var e,t;"yes"===this.getInstanceValue("mirror_rows")&&elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.mirrorRows.bind(this)),"load_more"===this.getInstanceValue("pagination_type")&&this.elements.$loadMore.length&&(e=this.getSettings("state"),t=this.elements.$loadMore.data("settings"),this.setPaged({paged:e.paged,maxNumPages:t.maxNumPages}),this.elements.$loadMoreButton.on("click",this.handleLoadMore.bind(this)))},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initializeOnce(),this.initialize()},initializeOnce(){"page_based"===this.getInstanceValue("pagination_type")&&this.paginationModule(),"yes"===this.getInstanceValue("show_sortable")&&this.sortableModule()},initialize(){"masonry"===this.getInstanceValue("layout")&&this.runMasonry(),"yes"===this.getInstanceValue("mirror_rows")&&this.mirrorRows(),"infinite_load"===this.getInstanceValue("pagination_type")&&this.infiniteLoadObserver(),objectFitPolyfill(this.$element.find(this.getSettings("selectors.postImageFit")))},paginationModule(){var e=s.default.extend({handlePagination:this.handlePagination.bind(this)});this.Pagination=new e({$element:this.$element.find(this.getSettings("selectors.pagination"))})},sortableModule(){var e=n.default.extend({handleSort:this.handleSort.bind(this)});this.Sortable=new e({$element:this.$element.find(this.getSettings("selectors.sortable"))})},afterAppend(){"yes"===this.getInstanceValue("mirror_rows")&&this.mirrorRows(),"infinite_load"===this.getInstanceValue("pagination_type")&&this.infiniteLoadObserver()},setColumnsCount(){var e=elementorFrontend.getCurrentDeviceMode();let t="desktop"===e?"columns":"columns_"+e;this.setSettings("columnsCount",parseInt(this.getInstanceValue(t)))},runMasonry(){this.Masonry=new a.default({$element:this.$element}),this.Masonry.run()},mirrorRows(){this.setColumnsCount();var t=this.getSettings(),i=this.$element.find(t.selectors.postItem);if(i.filter(t.selectors.postMirrored).removeAttr(t.classes.postMirrored),i.length&&i.length>t.columnsCount){var n=i.length/t.columnsCount;for(let e=1;e<n;e+=2){var s=e*t.columnsCount;i.slice(s,s+t.columnsCount).attr(t.classes.postMirrored,!0)}}},createObserver(e,i,n){if(!(e.length<1)){let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(i(),t.disconnect())})},n);t.observe(e[0])}},infiniteLoadObserver(){let i=this;i.createObserver(i.elements.$infinteLoadIndicator,()=>{var e=i.getSettings("state"),t=e.paged+1;i.addPosts({paged:t,category:e.category})},{threshold:1})},ajaxPosts(e,t){var e={action:"raven_get_render_posts",post_id:this.getCurrentPostId(),model_id:this.getID(),paged:e.paged,category:e.category,lang:this.elements.$postsContainer.data("lang")},i=this.elements.$postsContainer.data("archive-query");i&&(e.archive_query=JSON.stringify(i));this.setSettings("state.isLoading",!0),$.ajax({type:"POST",url:_wpUtilSettings.ajax.url,data:e,success:function(e){e.success&&e.data.posts&&t(e)},complete:function(){this.setSettings("state.isLoading",!1)}.bind(this)})},addPosts(e){var t=this.getSettings("state");return!(t.isLoading||t.paged<1||(this.ajaxPosts(e,this.appendPosts),0))},appendPosts(e){var t=this.getSettings("state");"masonry"===this.getInstanceValue("layout")?this.Masonry.push(e.data.posts):this.elements.$postsContainer.append(e.data.posts),this.setPaged({paged:t.paged+1,maxNumPages:e.data.max_num_pages}),this.afterAppend()},setPosts(e){return!this.getSettings("state").isLoading&&(this.ajaxPosts(e,this.renderPosts),!0)},renderPosts(e){this.elements.$postsContainer.empty(),this.elements.$postsContainer.append(e.data.posts),this.Sortable&&!this.Sortable.isEnabled()&&(this.Sortable.renderUpdate(),this.Pagination)&&this.Pagination.isEnabled()&&this.Pagination.recreatePagination(e.data.max_num_pages),this.Pagination&&!this.Pagination.isEnabled()&&this.Pagination.renderUpdate(),this.setPaged({paged:1,maxNumPages:e.data.max_num_pages}),this.initialize()},handleLoadMore(e){e.preventDefault();var e=this.getSettings("state"),t=e.paged+1;this.addPosts({paged:t,category:e.category})},handleInfiniteLoad(){var e=this.getSettings("state"),t=e.paged+1;this.addPosts({paged:t,category:e.category})},handlePagination(e){this.scrollToContainer(this.elements.$postsContainer),this.setPosts({paged:e,category:this.getSettings("state.category")})},handleSort(e){this.setPosts({paged:1,category:e})&&this.setSettings("state.category",e)},setPaged(e){let{paged:t,maxNumPages:i}=e;-1===(t=t>=i?-1:t)?this.elements.$loadMore.hide():this.elements.$loadMore.show(),this.setSettings("state.paged",t),this.setSettings("state.maxNumPages",i)},getCurrentPostId(){return parseInt(this.elements.$postsContainer.data("post-id"))},onSectionActivated(e){e&&this.editOverlayIcons(-1!==e.indexOf("section_icons"))},onEditorClosed(){this.editOverlayIcons(!1)},editOverlayIcons(e){this.$element.toggleClass("raven-edit-icons",e)}})},{"../utils/masonry":8,"../utils/module":9,"../utils/pagination":20,"../utils/sortable":22}],58:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{standardTab:".raven-product-data-tabs.standard-tab-style .woocommerce-tabs ul.tabs a"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$standardTab:this.$element.find(e.standardTab)}},bindEvents(){document.body.classList.contains("elementor-editor-active")&&$(".wc-tabs-wrapper, .woocommerce-tabs, #rating").trigger("init"),this.elements.$standardTab.on("click",function(e){$(".raven-product-data-tabs.standard-tab-style .woocommerce-tabs ul.tabs li").removeClass("previous-tab"),$(e.currentTarget).parent().prev().addClass("previous-tab")})}})},{"../utils/module":9}],59:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{gallery:".raven-product-gallery-wrapper",galleryItemsWrapper:".raven-product-gallery-items",galleryItems:".raven-product-gallery-items li",galleryBase:".woocommerce-product-gallery-raven-widget",galleryThumbs:".flex-control-thumbs",galleryImageFit:".raven-image-fit img"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$gallery:this.$element.find(e.gallery),$galleryItemsWrapper:this.$element.find(e.galleryItemsWrapper),$galleryItems:this.$element.find(e.galleryItems),$galleryBase:this.$element.find(e.galleryBase),$galleryThumbs:this.$element.find(e.galleryThumbs)}},getGallerylSettings(){return{layout:this.getInstanceValue("gallery_layout"),thumbnails:this.getInstanceValue("thumbnails")||"",carousel:this.getInstanceValue("carousel"),lightbox:this.getInstanceValue("lightbox"),zoom:this.getInstanceValue("zoom"),wcZoomDisabled:this.$element.data("wc-disable-zoom")||"",wcLighboxDisabled:this.$element.data("wc-disable-lightbox")||"",videoIsEnable:"1"===this.getInstanceValue("video_enable"),aspectIsEnabled:"true"===this.getInstanceValue("enable_aspect_ratio")}},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments);var e=this.getGallerylSettings();"stack"===e.layout&&e.aspectIsEnabled&&objectFitPolyfill(this.$element.find(this.getSettings("selectors.galleryImageFit"))),this.galleryItemsHtml=[]},bindEvents(){this.galleryEvent()},onElementChange(e){var t=this.getGallerylSettings();if("aspect_ratio"===e&&t.videoIsEnable){let e=this.$element.find(".raven-product-gallery-wrapper").find(".raven-product-gallery-stack-wrapper"),t=e.find(".jupiterx-product-gallery-stack-video"),i=e.find(".raven-product-gallery-stack-image"),n=i.height();if(t.css("height","auto"),0===i.length)return void setTimeout(()=>t.css("height","max-content"));setTimeout(()=>t.height(n))}["product_thumbnail_width","product_thumbnail_width"].includes(e)&&new window.jupiterxProductGallery(jQuery(".raven-product-gallery-wrapper"),!0)},galleryEvent(){this.ProductGalleryInstance();this.resetButtonOnClick(),this.updateGalleryPictures(this),this.singleSlideOnClick()},ProductGalleryInstance(){let r=jQuery,s=this.getGallerylSettings(),a=this.elements.$galleryBase.find(".raven-product-gallery-slider-wrapper"),i=this.getWrapper(),o=this,t=(r(a).removeClass("jupiterx-product-gallery-vertical jupiterx-product-gallery-horizontal jupiterx-product-gallery-none"),this.getThumbnail(o)),l=(window.innerWidth<768&&(s.thumbnails="horizontal",r(i).find(".woocommerce-product-gallery-raven-widget").removeClass("raven-product-gallery-left raven-product-gallery-right").addClass("raven-product-gallery-horizontal").find("ol").removeClass("slick-vertical")),function(e,t=!1){if(this.$target=e,!0===t)return this;"stack"===s.layout&&(s.zoom&&this.initZoom("li"),s.zoom&&this.lightbox(),s.videoIsEnable)&&(this.controlVideoOnload(),this.endedVideo(),this.handleVideoHeight()),"standard"===s.layout&&(this.slider(),s.carousel||this.carousel(),s.zoom&&this.zoomIcon(),s.lightbox&&this.standardLightbox(),s.lightbox||this.$target.find(".woocommerce-product-gallery__image").find("a").css("pointer-events","none"),s.wcZoomDisabled&&s.zoom&&setTimeout(()=>{this.initZoom(".woocommerce-product-gallery__image")},100),s.wcLighboxDisabled&&s.lightbox&&!s.videoIsEnable&&this.initPhotoswipe(),this.disableProductElementorLighBox(),this.createSlickThumbnailsSlider(),this.repositionDirectionNav(),s.videoIsEnable)&&(this.handleIframe(),this.handleVideoOnChangeSlide(),this.handlePhotoswipe(),this.endedVideo())});this.handleWcModal(),l.prototype.endedVideo=function(){r("video").on("ended",function(e){r(e.currentTarget).parent().find("i").removeClass("circle-pause").addClass("circle-play")})},l.prototype.handleIframe=function(){var e=this.$target;let t=e.find(".flex-active-slide");(t=0===t.length?e.find(".woocommerce-product-gallery__image"):t).find("iframe").on("load",function(e){r(e.currentTarget).parent().removeClass("iframe-on-load"),r(e.currentTarget).show(),r(e.currentTarget).next().hide()})},l.prototype.handleVideoHeight=function(){var e=this.$target.find(".raven-product-gallery-stack-wrapper"),t=e.find(".jupiterx-product-gallery-stack-video"),e=e.find(".raven-product-gallery-stack-image"),i=e.height();0===e.length?t.css("height","max-content"):t.height(i)},l.prototype.slider=function(){var e=!!document.body.classList.contains("rtl");let t='<svg fill="#333333" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="7.2px" height="12px" viewBox="0 0 7.2 12" style="enable-background:new 0 0 7.2 12;" xml:space="preserve"><path class="st0" d="M4.8,6l-4.5,4.3c-0.4,0.4-0.4,1,0,1.4c0.4,0.4,1,0.4,1.4,0l5.2-5C7.1,6.5,7.2,6.3,7.2,6S7.1,5.5,6.9,5.3l-5.2-5C1.5,0.1,1.2,0,1,0C0.7,0,0.5,0.1,0.3,0.3c-0.4,0.4-0.4,1,0,1.4L4.8,6z"/></svg>',i='<svg fill="#333333" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="7.2px" height="12px" viewBox="0 0 7.2 12" style="enable-background:new 0 0 7.2 12;" xml:space="preserve"><path class="st0" d="M2.4,6l4.5-4.3c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0l-5.2,5C0.1,5.5,0,5.7,0,6s0.1,0.5,0.3,0.7l5.2,5\tC5.7,11.9,6,12,6.2,12c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L2.4,6z"/></svg>';e&&(t='<svg fill="#333333" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="7.2px" height="12px" viewBox="0 0 7.2 12" style="enable-background:new 0 0 7.2 12;" xml:space="preserve"><path class="st0" d="M2.4,6l4.5-4.3c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0l-5.2,5C0.1,5.5,0,5.7,0,6s0.1,0.5,0.3,0.7l5.2,5\tC5.7,11.9,6,12,6.2,12c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L2.4,6z"/></svg>',i='<svg fill="#333333" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="7.2px" height="12px" viewBox="0 0 7.2 12" style="enable-background:new 0 0 7.2 12;" xml:space="preserve"><path class="st0" d="M4.8,6l-4.5,4.3c-0.4,0.4-0.4,1,0,1.4c0.4,0.4,1,0.4,1.4,0l5.2-5C7.1,6.5,7.2,6.3,7.2,6S7.1,5.5,6.9,5.3l-5.2-5C1.5,0.1,1.2,0,1,0C0.7,0,0.5,0.1,0.3,0.3c-0.4,0.4-0.4,1,0,1.4L4.8,6z"/></svg>');e={flexslider:{allowOneSlide:!1,animation:"slide",animationLoop:!1,animationSpeed:500,controlNav:"thumbnails",directionNav:!0,nextText:t,prevText:i,rtl:e,slideshow:!1,smoothHeight:!1},photoswipe_enabled:!(!s.lightbox||s.videoIsEnable),zoom_enabled:!!s.zoom};a.wc_product_gallery(e),this.smoothHeight()},l.prototype.smoothHeight=function(e=400){setTimeout(()=>{var e=r(i).find(".flex-viewport"),t=r(i).find(".flex-active-slide").height(),e=(e.animate({height:t}),t/2);r(".flex-direction-nav").css("top",e+"px")},e)},l.prototype.getGalleryItems=function(){let e=r(".woocommerce-product-gallery__image"),o=[];return 0<e.length&&e.each(function(e,t){var i,n,s,a=r(t).find("img");0<a.length?(n=a.attr("data-large_image"),s=a.attr("data-large_image_width"),i=a.attr("data-large_image_height"),n={alt:a.attr("alt"),src:n,w:s,h:i,title:a.attr("data-caption")?a.attr("data-caption"):a.attr("title")},o.push(n)):(r(t).find(".jupiterx-attachment-media-custom-video-icons").css("max-width","inherit"),s=r(t).find(".jupiterx-attachment-media-iframe").parent().html(),o.push({html:'<div class="jupiterx-pswp-attachment-media-iframe">'+s+"</div>"}))}),o},l.prototype.handlePhotoswipe=function(){if(s.lightbox&&(this.$target.off("click",".woocommerce-product-gallery__trigger"),this.$target.off("click",".woocommerce-product-gallery__image a"),this.$target.on("click",".woocommerce-product-gallery__trigger",this.openPhotoswipe),this.$target.on("click",".woocommerce-product-gallery__image a",function(e){e.preventDefault()}),s.zoom)){0===this.$target.find(".woocommerce-product-gallery__trigger").length&&this.$target.append('<a href="#" class="woocommerce-product-gallery__trigger"></a>');let e=r(this.$target).find(".woocommerce-product-gallery__trigger");r(e).hide(),r(document).on("click",".zoomImg, .woocommerce-product-gallery__image a",function(){r(e).click()})}},l.prototype.initPhotoswipe=function(){var e=this.$target;if(0<e.find("img").length&&(this.$target.prepend('<a href="#" class="woocommerce-product-gallery__trigger"></a>'),this.$target.on("click",".woocommerce-product-gallery__trigger",this.openPhotoswipe),this.$target.on("click",".woocommerce-product-gallery__image a",function(e){e.preventDefault()})),s.zoom){let t=e.find(".woocommerce-product-gallery__trigger");r(document).on("click",".flex-active-slide",function(e){0<r(e.currentTarget).find(".jupiterx-attachment-media-iframe").length||r(t).click()})}},l.prototype.handleVideoOnPhotoSwipe=function(n,e){r(n).hasClass("pswp--open")&&(e.listen("beforeChange",function(){let i=r(n).find("video"),e=r(n).find("iframe"),t=r(n).find(".pswp__item");0<i.length&&(i.parent().find("i").removeClass("circle-pause").addClass("circle-play"),i.get(0).pause()),0<e.length&&(l.prototype.resetIframes(e),r(n).find("iframe").on("load",function(e){r(e.currentTarget).parent().removeClass("iframe-on-load"),r(e.currentTarget).show(),r(e.currentTarget).next().hide()})),t.each(function(e,t){"block"===r(t).css("display")&&void 0!==r(t).find("video").attr("autoplay")&&(i.parent().find("i").removeClass("circle-play").addClass("circle-pause"),r(t).find("video").get(0).play())})}),l.prototype.handleVideoOnClick(r(n)))},l.prototype.openPhotoswipe=function(e){e.preventDefault();var t,i=r(".pswp")[0],n=l.prototype.getGalleryItems(),e=r(e.target);let s;e.is(".woocommerce-product-gallery__trigger")||e.is(".woocommerce-product-gallery__trigger img")?(s=a.find(".flex-active-slide"),t=r.extend({index:r(s).index(),addCaptionHTMLFn:(e,t)=>e.title?(t.children[0].textContent=e.title,!0):(t.children[0].textContent="",!1)},{closeOnScroll:!1,history:!1,hideAnimationDuration:0,showAnimationDuration:0}),(n=new PhotoSwipe(i,PhotoSwipeUI_Default,n,t)).init(),l.prototype.handleVideoOnPhotoSwipe(i,n)):s=e.closest(".woocommerce-product-gallery__image")},l.prototype.disableProductElementorLighBox=function(){var e=r(this.$target).find("a");s.lightbox&&document.body.classList.contains("elementor-editor-active")?r(e).attr("data-elementor-open-lightbox","yes"):r(e).attr("data-elementor-open-lightbox","no")},l.prototype.initZoom=function(e){r.isFunction(r.fn.zoom)&&(e=this.$target.find(e),r(e).each(function(e,t){var i=r(t).find("img"),n=r(t).width();i.data("large_image_width")>n&&(i={touch:!1},"ontouchstart"in window&&(i.on="click"),r(t).trigger("zoom.destroy"),r(t).zoom(i))}))},l.prototype.carousel=function(){var e=this.$target.find(".flex-direction-nav");r(e).remove()},l.prototype.lightbox=function(){let e=this;setTimeout(function(){e.$target.on("click",".zoomImg",function(e){r(e.currentTarget).prev().click()})},100)},l.prototype.standardLightbox=function(){if(!s.zoom){var t=this.$target;0===t.find(".woocommerce-product-gallery__trigger").length&&this.$target.append('<a href="#" class="woocommerce-product-gallery__trigger"></a>');let e;e=t.find(".woocommerce-product-gallery__trigger"),r(e).hide(),r(document).on("click",".zoomImg, .woocommerce-product-gallery__image a",function(){r(e).click()})}},l.prototype.zoomIcon=function(){let e=this.$target,t=e.find(".woocommerce-product-gallery__trigger");r(t).hide(),s.lightbox&&e.on("click",".zoomImg, .woocommerce-product-gallery__image a",function(){r(t).click()})},l.prototype.createSlickThumbnailsSlider=function(){let n=this.$target.find(".raven-product-gallery-slider-wrapper"),e={infinite:!1,draggable:!1,slidesToShow:7,slidesToScroll:1,prevArrow:'<button class="slick-prev" aria-label="Prev" type="button"><svg fill="#333333" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="7.2px" height="12px" viewBox="0 0 7.2 12" style="enable-background:new 0 0 7.2 12;" xml:space="preserve"><path class="st0" d="M2.4,6l4.5-4.3c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0l-5.2,5C0.1,5.5,0,5.7,0,6s0.1,0.5,0.3,0.7l5.2,5\tC5.7,11.9,6,12,6.2,12c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L2.4,6z"/></svg></button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button"><svg fill="#333333" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="7.2px" height="12px" viewBox="0 0 7.2 12" style="enable-background:new 0 0 7.2 12;" xml:space="preserve"><path class="st0" d="M4.8,6l-4.5,4.3c-0.4,0.4-0.4,1,0,1.4c0.4,0.4,1,0.4,1.4,0l5.2-5C7.1,6.5,7.2,6.3,7.2,6S7.1,5.5,6.9,5.3l-5.2-5C1.5,0.1,1.2,0,1,0C0.7,0,0.5,0.1,0.3,0.3c-0.4,0.4-0.4,1,0,1.4L4.8,6z"/></svg></button>'};["left","right"].includes(o.getThumbnail(o))&&(e=r.extend(e,{vertical:!0,slidesToShow:5}),setTimeout(function(){var e=n.find(".slick-active"),t=e.length;let i=e.height()*t;0<parseInt(e.css("margin-bottom"))&&(i+=parseInt(e.css("margin-bottom"))*t),0<parseInt(e.css("border-bottom-width"))&&(i+=parseInt(e.css("border-bottom-width"))*t),0<parseInt(e.css("border-top-width"))&&(i+=parseInt(e.css("border-top-width"))*t),n.find(".slick-track, .slick-list").css("height",i+"px")},100)),"horizontal"===o.getThumbnail(o)?(e.arrows=!1,e.useTransform=!1):(e.arrows=!0,e.useTransform=!0),r(".flex-control-thumbs").hasClass("slick-initialized")&&r(".flex-control-thumbs").slick("destroy"),r(".flex-control-thumbs").slick(e),s.videoIsEnable&&n.find(".woocommerce-product-gallery__image").each(function(e,t){void 0!==r(t).data("poster")&&r(".flex-control-nav").find("li[data-slick-index="+e+"]").prepend('<i class="jupiterx-product-single-play-icon"></i>')});let t=this;n.on("click",".flex-direction-nav a",function(){n.find(".flex-control-nav").slick("slickGoTo",n.find(".flex-active-slide").index()),n.find(".slick-track li").removeClass("active-slick-slide"),n.find(".flex-active").parent().addClass("active-slick-slide"),t.smoothHeight(0)})},l.prototype.repositionDirectionNav=function(){let s=this.$target.find(".raven-product-gallery-slider-wrapper");function e(){var e=s.find(".flex-direction-nav"),t=s.find(".flex-control-thumbs"),i=s.find(".jupiterx-attachment-media-custom-video-icons"),n=s.find(".flex-viewport"),t=t.outerWidth(!0);"right"===o.getThumbnail(o)&&e.css("right",t),"left"===o.getThumbnail(o)&&e.css("left",t),i.css("max-width",n.width())}r(window).resize(e),e()},l.prototype.handleVideoOnClick=function(a){a.off("click",".jupiterx-attachment-media-custom-video-icons").on("click",".jupiterx-attachment-media-custom-video-icons",function(e){var t=r(e.currentTarget),e=r(e.currentTarget).find("i"),t=t.prev(),i=a.find(".jupiterx-attachment-media-iframe"),n=a.find("video"),s=a.find("iframe");0<s.length&&l.prototype.resetIframes(s),t.get(0).paused?(i.find("i").removeClass("circle-pause").addClass("circle-play"),n.trigger("pause"),e.removeClass("circle-play").addClass("circle-pause"),t.get(0).play()):(e.removeClass("circle-pause").addClass("circle-play"),t.get(0).pause())})},l.prototype.controlVideoOnload=function(){var e=this.$target.find(".raven-product-gallery-stack-wrapper"),t=e.find("video"),i=e.find("iframe");let n=e.find("li:first-child");0!==e.length&&(0<t.length&&t.each(function(){r(this).parent().find("i").removeClass("circle-pause").addClass("circle-play"),r(this).get(0).pause()}),0<i.length&&(l.prototype.resetIframes(i),i.on("load",function(e){r(e.currentTarget).parent().removeClass("iframe-on-load"),r(e.currentTarget).show(),r(e.currentTarget).next().hide()})),0<t.length&&0===n.find("video").length&&(i=t[0],n=r(i).parent()),0<n.length&&0<n.find("video").length&&void 0!==n.find("video").attr("autoplay")&&(n.find("video").parent().find("i").removeClass("circle-play").addClass("circle-pause"),n.find("video").get(0).play()),l.prototype.handleVideoOnClick(e))},l.prototype.handleVideoOnChangeSlide=function(){let n=this.$target;n.on("click",".flex-direction-nav a, .flex-control-thumbs li, .flex-control-thumbs li .jupiterx-product-single-play-icon, .woocommerce-product-gallery__image a, .woocommerce-product-gallery__trigger",function(){var e=n.find("video"),t=n.find("iframe"),i=n.find(".flex-active-slide");0<e.length&&(e.parent().find("i").removeClass("circle-pause").addClass("circle-play"),e.each(function(e,t){r(t).get(0).pause()})),0<t.length&&(l.prototype.resetIframes(t),t.on("load",function(e){r(e.currentTarget).parent().removeClass("iframe-on-load"),r(e.currentTarget).show(),r(e.currentTarget).next().hide()})),0<i.length&&void 0!==i.find("video").attr("autoplay")&&(e.parent().find("i").removeClass("circle-play").addClass("circle-pause"),i.find("video").get(0).play())}),l.prototype.handleVideoOnClick(n)},l.prototype.resetIframes=function(e){e.each(function(e,t){var i=r(t).attr("src");r(t).attr("src",i)})},new l(jQuery(".raven-product-gallery-wrapper")),window.jupiterxProductGallery=l;window.addEventListener("resize",this.debounce(()=>{var e=window.innerWidth;(e<768||"horizontal"===o.getThumbnail(o))&&(s.thumbnails="horizontal",r(i).find(".woocommerce-product-gallery-raven-widget").removeClass("raven-product-gallery-left raven-product-gallery-right").addClass("raven-product-gallery-horizontal").find("ol").removeClass("slick-vertical")),768<=e&&"horizontal"!==t&&(s.thumbnails=t,r(i).find(".woocommerce-product-gallery-raven-widget").removeClass("raven-product-gallery-horizontal raven-product-gallery-right raven-product-gallery-left").addClass("raven-product-gallery-"+t).find("ol").addClass("slick-vertical")),new l(jQuery(".raven-product-gallery-wrapper")),e<768&&r(i).find("div.flex-active-slide").css("width",e-40)},100))},debounce(i,n){let s;return function(){let e=this,t=arguments;clearTimeout(s),s=setTimeout(function(){s=null,i.apply(e,t)},n)}},handleWcModal(){$(".pswp__button--close").off().on("click touchend",function(e){$(e.target).closest(".pswp--open").removeClass("pswp--open"),setTimeout(()=>{$(e.target).closest(".pswp--open").removeClass("pswp--open")})}),$(".pswp__item").off().on("click touched",function(e){$(e.target).closest("img.pswp__img").length||$(e.target).closest(".jupiterx-pswp-attachment-media-iframe").length||$(e.target).closest(".pswp--open").removeClass("pswp--open")})},onFullScreenClose(){let e=this;$(".pswp__button--fs").on("click",function(){e.handleWcModal()})},updateGallery(i){if(!1!==i.replace){var n=this.getWrapper(),s=i.content,a=this.getGallerylSettings();if("stack"===i.layout){$(n).find(".raven-product-gallery-wrapper").html(s);let e=new window.jupiterxProductGallery(jQuery(".raven-product-gallery-wrapper"),!0);void(a.videoIsEnable&&e.controlVideoOnload())}else{$(n).find(".woocommerce-product-gallery-raven-widget").html(s);let e=0;$(n).find(".flex-control-nav li").each(function(){0===e?$(this).addClass("slick-slide slick-current slick-active"):$(this).addClass("slick-slide slick-active"),$(this).attr("style","width: 61px;"),$(this).attr("tabindex","0"),$(this).attr("aria-hidden","false"),$(this).attr("data-slick-index",e),e++});var i=$(n).find(".flex-control-nav").html(),s=document.createElement("ol"),o=document.createElement("div"),r=document.createElement("div"),i=(s.setAttribute("class","flex-control-nav flex-control-thumbs slick-initialized slick-slider"),o.setAttribute("class","slick-list"),r.setAttribute("class","slick-track"),$(r).append(i),o.appendChild(r),s.appendChild(o),$(n).find("ol.flex-control-nav").remove(),$(n).find(".flex-viewport"));$(s).insertAfter(i),this.galleryEvent(),this.singleSlideOnClick(),this.handleWcModal(),this.onFullScreenClose();let t=new window.jupiterxProductGallery(jQuery(".raven-product-gallery-wrapper"),!0);a.videoIsEnable&&t.controlVideoOnload(),t.createSlickThumbnailsSlider()}}},restButtonAjax(){let t=this,s=t.getWrapper(),e=$(s).find('input[name="product_id"]').val(),i=$('input[name="variation_id"]').val(),n=t.galleryItemsHtml.findIndex(e=>"reset"===e.key);var a;0===i||_.isEmpty(i)?document.getElementById("jupiterx-clear-variable-button-single-page").removeEventListener("click",this.restButtonAjax):-1!==n?(a=t.galleryItemsHtml[n].value,t.updateGallery(a)):wp.ajax.post({beforeSend:()=>{var e=$(s).find(".flex-active").outerHeight(),t=$(s).find(".flex-viewport").outerHeight(),i=$(s).find(".flex-control-nav"),e='<div class="temporary-style"><style>'+`.raven-product-gallery-wrapper-placeholder .slick-slide { min-height: ${e}px };`+"</style></div>",n=$(".jupiterx-product-gallery-stack-item").outerHeight();$(s).find(".raven-product-gallery-wrapper").append(e),$(s).find(".flex-viewport").remove(),$(`<div class="flex-viewport" style="width:100%; height:${t}px;"></div>`).insertBefore(i),$(s).find(".raven-product-gallery-wrapper").addClass("raven-product-gallery-wrapper-placeholder"),$(s).find(".jupiterx-product-gallery-stack-item").css("height",n),$("#variation-previous-number").val(0)},action:"jupiterx_product_gallery_get_gallery_items",variation:"0",post_id:$(s).find('input[name="post_id"]').val(),form_id:$(s).find('input[name="form_id"]').val(),product_id:e,nonce:ravenTools.nonce}).always(function(){$(".raven-product-gallery-wrapper").removeClass("raven-product-gallery-wrapper-placeholder"),$(s).find(".raven-product-gallery-wrapper").find(".temporary-style").remove(),document.getElementById("jupiterx-clear-variable-button-single-page").removeEventListener("click",this.restButtonAjax)}).done(function(e){t.galleryItemsHtml.push({key:"reset",value:e}),t.updateGallery(e)})},resetButtonOnClick(){var e=document.getElementById("jupiterx-clear-variable-button-single-page");_.isNull(e)||e.addEventListener("click",this.restButtonAjax)},updateGalleryPictures(o){let r=this.getWrapper();var e=$(".raven-product-add-to-cart input.variation_id").val();$("body").append('<input type="hidden" id="variation-first-load" value="true">'),$("body").append(`<input type="hidden" id="variation-previous-number" value="${e}">`),$(".variation_id").off().on("change",function(){let s=$('input[name="variation_id"]').val(),e=$("#variation-first-load").val(),t=$("#variation-previous-number").val(),i=$(r).find('input[name="product_id"]').val(),n=o.galleryItemsHtml.findIndex(e=>e.key===s);var a;_.isEmpty(s)||"true"===e||s===t?$("#variation-first-load").val("false"):-1!==n?(a=o.galleryItemsHtml[n].value,o.updateGallery(a)):wp.ajax.post({beforeSend:()=>{var e=$(r).find(".flex-active").outerHeight(),t=$(r).find(".flex-viewport").outerHeight(),i=$(r).find(".flex-control-nav"),e='<div class="temporary-style"><style>'+`.raven-product-gallery-wrapper-placeholder .slick-slide { min-height: ${e}px };`+"</style></div>",n=$(".jupiterx-product-gallery-stack-item").outerHeight();$(r).find(".raven-product-gallery-wrapper").append(e),$(r).find(".flex-viewport").remove(),$(`<div class="flex-viewport" style="width:100%; height:${t}px;"></div>`).insertBefore(i),$(r).find(".raven-product-gallery-wrapper").addClass("raven-product-gallery-wrapper-placeholder"),$(r).find(".jupiterx-product-gallery-stack-item").css("height",n),$("#variation-previous-number").val(s)},action:"jupiterx_product_gallery_get_gallery_items",variation:s,post_id:$(r).find('input[name="post_id"]').val(),form_id:$(r).find('input[name="form_id"]').val(),product_id:i,nonce:ravenTools.nonce}).always(function(){$(".raven-product-gallery-wrapper").removeClass("raven-product-gallery-wrapper-placeholder"),$(r).find(".raven-product-gallery-wrapper").find(".temporary-style").remove()}).done(function(e){o.galleryItemsHtml.push({key:s,value:e}),o.updateGallery(e)})})},getWrapper(){return'div[data-id="'+this.getID()+'"]'},singleSlideOnClick(){let e=this.getWrapper(),t=this;$(e).find(".slick-current").addClass("active-slick-slide"),$(e).find("li.slick-slide").on("click",function(){$(e).find("li.slick-slide").removeClass("active-slick-slide"),$(this).addClass("active-slick-slide"),t.smoothHeight()})},smoothHeight(i=0){let n=this.getWrapper();setTimeout(()=>{var e=$(n).find(".flex-viewport"),t=$(n).find(".flex-active-slide").height(),e=(e.animate({height:t},i),t/2);$(".flex-direction-nav").css("top",e+"px")})},getThumbnail(e){return"stack"!==e.getGallerylSettings().layout&&0===e.elements.$gallery.data("has-gallery")?"horizontal":e.getElementSettings().thumbnails}})},{"../utils/module":9}],60:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){a(),s(),n()};let o=jQuery;let n=()=>{o(".jupiterx-product-review-submit-new").on("click",function(){o(".jupiterx-product-review-alarm").css("display","none"),o(".jupiterx-product-review-global-error").css("display","none");var e=o("#jupiterx-product-review-input-rating"),t=o(".jupiterx-product-review-textarea"),i=o(".jupiterx-product-review-name"),n=o(".jupiterx-product-review-email"),s=o("#jupiterx-product-review-related");let a=!1;[e,t,i,n].forEach(e=>{""===e.val()&&(a=!0,e.parent().find(".jupiterx-product-review-alarm").css("display","block"))}),!0!==a&&(0<o("#jupiterx-product-review-acceptance").length&&o("#jupiterx-product-review-acceptance").is(":checked")&&r(i.val(),n.val()),wp.ajax.post({beforeSend:()=>{o(".jupiterx-product-review-form-wrapper").css("opacity",.5)},action:"jupiterx_product_review_submitter",score:e.val(),content:t.val(),name:i.val(),email:n.val(),post_id:s.val(),nonce:ravenTools.nonce}).always(function(){o(".jupiterx-product-review-form-wrapper").css("opacity",1)}).done(function(){location.reload()}).fail(function(){o(".jupiterx-product-review-global-error").css("display","block")}))})},s=()=>{var e=document.querySelectorAll(".jupiterx-product-review-rating-selector");let t="jupiterx-product-review-rating-selector ",i=t+" jupiterx-product-review-marked",n=t+" jupiterx-product-review-unmarked",s=!0;e.forEach(e=>e.addEventListener("click",()=>{o(".jupiterx-product-review-rating-selector").attr("class",n),o(e).attr("class",i),o(e).prevAll().attr("class",i),o("#jupiterx-product-review-input-rating").val(o(e).attr("data-rate")),s=!1})),e.forEach(e=>e.addEventListener("mouseover",()=>{!1!==s&&(o(e).attr("class",i),o(e).prevAll().attr("class",i))})),e.forEach(e=>e.addEventListener("mouseout",()=>{!1!==s&&(o(e).attr("class",n),o(e).prevAll().attr("class",n))}))},a=()=>{null!==localStorage.getItem("jupiterx-product-review-name")&&o(".jupiterx-product-review-name").val(localStorage.getItem("jupiterx-product-review-name")),null!==localStorage.getItem("jupiterx-product-review-email")&&o(".jupiterx-product-review-email").val(localStorage.getItem("jupiterx-product-review-email"))},r=(e,t)=>{localStorage.setItem("jupiterx-product-review-name",e),localStorage.setItem("jupiterx-product-review-email",t)}},{}],61:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{carouselWrapper:".raven-swiper-slider",sliderWrapper:".raven-products-carousel-swiper-container",itemsSlider:".swiper-wrapper",productData:".jupiterx-product-container",productImage:".jupiterx-wc-loop-product-image > img",categories:".posted_in",addToCartButton:"a.add_to_cart_button",productTitle:".woocommerce-loop-product__title",productPrice:".price",ratingWrapper:".rating-wrapper",product_type_external:"a.product_type_external",product_type_grouped:"a.product_type_grouped",product_type_simple:"a.product_type_simple"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$carouselWrapper:this.$element.find(e.carouselWrapper),$sliderWrapper:this.$element.find(e.sliderWrapper),$itemsSlider:this.$element.find(e.itemsSlider),$productData:this.$element.find(e.productData),$productImage:this.$element.find(e.productImage),$categories:this.$element.find(e.categories),$addToCartButton:this.$element.find(e.addToCartButton),$productTitle:this.$element.find(e.productTitle),$productPrice:this.$element.find(e.productPrice),$ratingWrapper:this.$element.find(e.ratingWrapper),$product_type_external:this.$element.find(e.product_type_external),$product_type_grouped:this.$element.find(e.product_type_grouped),$product_type_simple:this.$element.find(e.product_type_simple)}},getCarouselSettings(){return{atc_button_location:this.getInstanceValue("pc_atc_button_location"),load_effect:this.getInstanceValue("load_effect"),overflow_visible:this.getInstanceValue("overflow_visible"),slides_view:this.getInstanceValue("slides_view"),slides_scroll:this.getInstanceValue("slides_scroll"),enable_autoplay:this.getInstanceValue("enable_autoplay"),autoplay_speed:this.getInstanceValue("autoplay_speed"),enable_infinite_loop:this.getInstanceValue("enable_infinite_loop"),enable_hover_pause:this.getInstanceValue("enable_hover_pause"),transition_speed:this.getInstanceValue("transition_speed"),show_pagination:this.getInstanceValue("show_pagination"),pagination_type:this.getInstanceValue("pagination_type"),pagination_position:this.getInstanceValue("pagination_position"),pause_on_hover:this.getInstanceValue("pause_on_hover"),columns_space_between:this.getInstanceValue("columns_space_between")}},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.addClassToContent(),this.wrapAllContents();let n=this.getCarouselSettings(),e=elementorFrontend.config.responsive.activeBreakpoints,i={};var t=Object.entries(e).sort(([,e],[,t])=>e.value-t.value);let s=0,a=0,o=(t.forEach(([e,t])=>{"max"===t.direction?(i[s]={slidesPerView:this.getDeviceSlidesPerView(e),slidesPerGroup:this.getDeviceSlidesToScroll(e),spaceBetween:this.getSpaceBetween(e)},a=Math.max(a,t.value)):i[t.value]={slidesPerView:this.getDeviceSlidesPerView(e),slidesPerGroup:this.getDeviceSlidesToScroll(e),spaceBetween:this.getSpaceBetween(e)},s=t.value}),{draggable:!(i[a]={slidesPerView:this.getDeviceSlidesPerView("desktop"),slidesPerGroup:this.getDeviceSlidesToScroll("desktop"),spaceBetween:this.getSpaceBetween("desktop")}),autoplay:"yes"===n.enable_autoplay&&{delay:n.autoplay_speed},loop:"yes"===n.enable_infinite_loop,watchOverflow:"yes"===n.enable_hover_pause,speed:+n.transition_speed,slidesPerView:this.getDeviceSlidesPerView("desktop"),slidesPerGroup:this.getDeviceSlidesToScroll("desktop"),spaceBetween:this.getSpaceBetween("desktop"),navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},appendArrows:this.elements.$sliderWrapper,breakpoints:i,handleElementorBreakpoints:!0}),r=this;this.elements.$sliderWrapper.each(function(e,t){$(this).parents(".elementor-widget-raven-products-carousel").find(".raven-products-carousel").addClass("swiper-"+e),o.navigation&&(o.navigation={nextEl:$(t).parents(".raven-products-carousel.swiper-"+e).find(".swiper-button-next")[0],prevEl:$(t).parents(".raven-products-carousel.swiper-"+e).find(".swiper-button-prev")[0]}),o.pagination=!1,"yes"===n.show_pagination&&(o.pagination={el:$(t).parents(".raven-products-carousel.swiper-"+e).find(".swiper-pagination")[0],type:n.pagination_type,clickable:!0});let i=null;o.on={},o.on.init=function(){r.handleAnimation(),r.zoom()},$(t)[0].style.opacity=0,setInterval(()=>{$(t)[0].style.opacity=1},700),"undefined"==typeof Swiper?new elementorFrontend.utils.swiper(t,o).then(e=>{i=e}):i=new Swiper(t,o),"yes"===n.pause_on_hover&&$(t).on({mouseenter(){i.autoplay.stop()},mouseleave(){i.autoplay.start()}}),r.elements.$itemsSlider.data("swiper",i)})},handleAnimation(){let n=this.getCarouselSettings();this.elements.$sliderWrapper.load().after(()=>{let i=[...this.elements.$carouselWrapper[0].querySelectorAll(".swiper-slide")];"slide-right"===this.getInstanceValue("load_effect")&&(i=i.slice().reverse()),n.overflow_visible&&"slide-right"!==this.getInstanceValue("load_effect")&&i[i.length-1].classList.add("raven-load-effect-"+n.load_effect),i.forEach((e,t)=>{setTimeout(()=>{e.classList.add("raven-load-effect-"+n.load_effect),t===i.length-1&&(this.elements.$itemsSlider[0].classList.add("raven-products-loaded"),setInterval(()=>{this.elements.$itemsSlider[0].classList.remove("raven-products-load-effect")},1500),this.setSettings("state.loaded",!0))},100*t)})})},bindEvents(){this.zoom(),"show"===this.getInstanceValue("wishlist")&&this.wishlist(),this.getInstanceValue("overflow_visible")&&(window["jupiterx-main"].style.overflow="hidden")},onEditSettingsChange(e){"activeItemIndex"===e&&elementorFrontend.utils.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)},zoom(){"zoom_hover"===this.getInstanceValue("swap_effect")&&this.elements.$sliderWrapper.find(".jupiterx-wc-loop-product-image").zoom()},wishlist(){$(document).on("click",".jupiterx-wishlist",function(e){e.preventDefault();let t=$(this),i="add_to_wishlist";var e={},n=t.data("state"),s=t.data("productId"),a=t.data("nonceAdd"),o=t.data("nonceRemove");e.nonce=a,e.add_to_wishlist=s,e.remove_from_wishlist=s,"remove"===n&&(i="remove_from_wishlist",e.nonce=o),wp.ajax.send(i,{type:"GET",data:e}).always(e=>{"add_to_wishlist"===i&&"true"===e.result&&(t.addClass("jupiterx-wishlist-remove"),t.data("state","remove")),"remove_from_wishlist"===i&&0===e.fragments.length&&(t.removeClass("jupiterx-wishlist-remove"),t.data("state","add"))})})},addClassToContent(){var e=this.getCarouselSettings(),t=[this.elements.$productPrice,this.elements.$productTitle,this.elements.$categories,this.elements.$ratingWrapper];"outside"===e.atc_button_location&&(t.push(this.elements.$addToCartButton),t.push(this.elements.$product_type_external),t.push(this.elements.$product_type_grouped),t.push(this.elements.$product_type_simple)),t.forEach(e=>{[...e].forEach(e=>{e.classList.add("raven-product-item-content")})})},wrapAllContents(){[...this.elements.$carouselWrapper[0].querySelectorAll(".swiper-slide")].forEach(e=>{$(e).find(".raven-product-item-content").wrapAll('<div class="raven-product-data" />')})},getSpaceBetween(e){let t="columns_space_between";return e&&"desktop"!==e&&(t+="_"+e),this.getElementSettings(t).size||10},getDeviceSlidesToScroll(e){return+this.getElementSettings("slides_scroll"+("desktop"===e?"":"_"+e))||1},getDeviceSlidesPerView(e){return+this.getElementSettings("slides_view"+("desktop"===e?"":"_"+e))||1}})},{"../utils/module":9}],62:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new s({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let n=jQuery,s=e.default.extend({onInit(){var e=this.getElementSettings();this.selector=this.getTrackingElementSelector(),"circular"===e.type?this.circularOnScroll(e):this.createHorizontalScroll(),this.progressUpdate()},onElementChange(e){var t=this.getElementSettings();"relative_to"!==e&&"selector"!==e&&"type"!==e||(window.removeEventListener("scroll",this.progressUpdate),this.selector=this.getTrackingElementSelector(),!1!==this.selector&&(this.circle||"circular"!==t.type||this.createCircle(t),this.horizontal||"horizontal"!==t.type||this.createHorizontalScroll(),this.initListeners()))},createHorizontalScroll(){!1!==this.selector&&(this.horizontal=document.querySelector(".jupiterx-progress-tracker-horizontal-"+this.getID()),this.initListeners())},circularOnScroll(e){this.createCircle(e),!1!==this.selector&&this.initListeners()},createCircle(e){var t=this.getCircularWrapper(e),e=this.defaultGlobalConfig(e);this.circle=new CircularProgressBar(t,e),this.circle.initial()},initListeners(){window.addEventListener("scroll",this.progressUpdate)},progressUpdate(){var e,t;!1!==this.selector&&(e=this.getElementSettings(),t=this.calculateScroll(),"circular"===e.type?this.circle.animationTo({percent:t.toFixed(0),index:1}):(t=t.toFixed(0)+"%",this.horizontal.querySelector(".progress-indicator").style.width=t,"yes"===e.percentage&&(this.horizontal.querySelector(".percentage-text").innerText=t)))},calculateScroll(){var e=this.selector.is(elementorFrontend.elements.$body)||this.selector.is(n("#e-scroll-snap-container"))?-100:0;return elementorModules.utils.Scroll.getElementViewportPercentage(this.selector,{start:e,end:-100})},getWrapper(){return'div[data-id="'+this.getID()+'"]'},getCircularWrapper(){return"jupiterx-progress-tracker-circular-"+this.getID()},getTrackingElementSelector(){let e;switch(this.getElementSettings().relative_to){case"selector":e=n(this.getElementSettings().selector);break;case"post_content":0<n(".elementor-widget-raven-post-content").length?e=n(".elementor-widget-raven-post-content"):e=!!n(".elementor-widget-theme-post-content").length&&n(".elementor-widget-theme-post-content");break;default:e=this.isScrollSnap()?n("#e-scroll-snap-container"):elementorFrontend.elements.$body}return!1===e||e.length<=0?(this.onDestroy(),!1):e},isScrollSnap(){return"yes"===(this.isEdit?elementor.settings.page.model.attributes:elementorFrontend.config.settings.page).scroll_snap},defaultGlobalConfig(e){var t={size:100,stroke:4,strokeBottom:4,colorSlice:"#61ce70",colorCircle:"#eee",round:!0,number:"yes"===e.percentage,inverse:"rtl"===e.direction,fill:"none",animationOff:!0};return _.isEmpty(e.circular_size.size)||(t.size=e.circular_size.size),t},onDestroy(){window.removeEventListener("scroll",this.progressUpdate)}})},{"../utils/module":9}],63:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.classic=function(e){let t=e.find(".raven-search-form");e.on("focus",".raven-search-form-input",()=>{t.addClass("raven-search-form-focus")}),e.on("blur",".raven-search-form-input",()=>{t.removeClass("raven-search-form-focus")})},i.full=function(e){let t={lightbox:e.find(".raven-search-form-lightbox"),inputSearch:e.find(".raven-search-form-input")};e.on("click",".raven-search-form-button",e=>{e.preventDefault(),t.lightbox.addClass("raven-search-form-lightbox-open"),window.setTimeout(()=>{t.inputSearch.focus()},100)}),e.on("click",".raven-search-form-close",e=>{e.preventDefault(),t.lightbox.removeClass("raven-search-form-lightbox-open")}),jQuery(document).keyup(function(e){27===e.keyCode&&t.lightbox.removeClass("raven-search-form-lightbox-open")})}},{}],64:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let o=jQuery,n=e.default.extend({getDefaultSettings(){return{selectors:{shoppingCart:".raven-shopping-cart",closeButton:".jupiterx-raven-mini-cart-close",cartWrapper:".raven-shopping-cart-wrap",overlay:".jupiterx-shopping-cart-content-effect-enabled-overlay"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$body:o("body"),$header:o(".jupiterx-header"),$hasProductWidget:0<o(".elementor-widget-raven-wc-products").length||0<o(".elementor-widget-shortcode .products").length||0<o(".elementor-widget-woocommerce-products").length,$elementorElement:this.$element.closest(".elementor-element"),$cartWrapper:this.$element.find(e.cartWrapper),$overlay:this.$element.find(e.overlay),$shoppingCart:this.$element.find(e.shoppingCart),$closeButton:this.$element.find(e.closeButton)}},bindEvents(){elementorFrontend.elements.$body.on("updated_wc_div update_checkout",()=>{this.refreshFragments()});var e,t,i=this.elements.$body.hasClass("woocommerce-page")&&this.elements.$body.hasClass("archive");window?.ravenTools&&i&&({wcAjaxAddToCart:e,disableAjaxToCartInArchive:t}=window.ravenTools.wc||{},"yes"!==e)&&t&&(o(document.body).off("click",".add_to_cart_button.ajax_add_to_cart"),o(".add_to_cart_button.ajax_add_to_cart").removeClass("ajax_add_to_cart").addClass("no_ajax_add_to_cart")),"yes"!==this.getElementSettings("enable_ajax_add_to_cart")&&i&&this.handleAjaxAddToCartOnPage(),"yes"!==this.getElementSettings("enable_ajax_add_to_cart")&&!i&&this.elements.$hasProductWidget&&this.handleAjaxAddToCartOnPage(),"yes"!==this.getElementSettings("show_cart_quick_view")&&(this.elements.$body.find("form.cart").hasClass("bundle_form")||this.elements.$body.find("form.cart").hasClass("grouped_form"))||("yes"===this.getElementSettings("show_cart_quick_view")&&"yes"===this.getElementSettings("enable_ajax_add_to_cart")&&(this.elements.$body.find("form.cart").hasClass("bundle_form")||this.elements.$body.find("form.cart").hasClass("grouped_form"))?(this.handleMiniCartOpenClose(),this.handleTapToCloseOutside()):"yes"===this.getElementSettings("show_cart_quick_view")&&"yes"!==this.getElementSettings("enable_ajax_add_to_cart")?(this.handleMiniCartOpenClose(),this.handleRemoveFromCart(),this.handleTapToCloseOutside()):"yes"===this.getElementSettings("show_cart_quick_view")&&(this.handleMiniCartOpenClose(),this.handleMiniCartOnAddToCart(),this.ajaxAddToCart(),this.handleRemoveFromCart(),this.handleTapToCloseOutside()))},handleAjaxAddToCartOnPage(){elementorFrontend.elements.$body.find(".add_to_cart_button.ajax_add_to_cart").attr("data-has_raven_shopping_cart","exists"),elementorFrontend.elements.$body.on("wc_fragments_refreshed removed_from_cart added_to_cart",()=>{this.refreshFragments()})},refreshFragments(){let t=[];o.each(elementorFrontend.documentsManager.documents,e=>{t.push(e)}),o.ajax({type:"POST",url:_wpUtilSettings.ajax.url,context:this,data:{action:"cart_checkout_page_shopping_cart_fragments",templates:t},success(e){e?.fragments&&o.each(e.fragments,(e,t)=>{o(e).replaceWith(t)}),this.handleRemoveFromCart()}})},handleMiniCartOpenClose(){let n=this,e=this.getElementSettings("content_effect_blur_content"),s=this.getElementSettings("content_effect_content_overlay");this.elements.$shoppingCart.on("click",function(t){if("#"===o(this).attr("href")){t.preventDefault();var i=n.elements.$header.data("jupiterx-settings");if(0<o(t.target).closest(".raven-sticky--effects").length&&n.elements.$header.hasClass("jupiterx-header-sticky-custom")){let e=n.elements.$header.find('[data-elementor-id]:not([data-elementor-id="'+i.stickyTemplate+'"])');if("header"===e.attr("data-elementor-type"))return 0<o(t.target).closest(".raven-sticky--effects").length&&e.children().each(function(){if("none"!==o(this).css("display"))return e=o(this),!1}),e.find(".jupiterx-cart-quick-view").css("visibility","visible"),void e.find(".raven-shopping-cart").click()}n.$element.addClass("jupiterx-raven-cart-quick-view-overlay"),"enabled"!==e&&"enabled"!==s||n.elements.$overlay.addClass("jupiterx-shopping-cart-overlay-activated")}}),this.elements.$closeButton.on("click",function(){n.$element.alterClass("jupiterx-raven-cart-quick-view-overlay"),"enabled"!==e&&"enabled"!==s||n.elements.$overlay.removeClass("jupiterx-shopping-cart-overlay-activated")})},handleMiniCartOnAddToCart(){let n=this,e=!1;(e="undefined"!=typeof elementor?elementor.helpers.hasPro():e)&&document.body.classList.contains("elementor-editor-active")||(o(document.body).on("adding_to_cart",function(e,t,i){0<o(".raven-shopping-cart-count").length&&"object"==typeof i&&(i.raven_shopping_cart="exists")}),o(document.body).on("added_to_cart",function(){let e=n.elements.$shoppingCart;var t,i=o(".jupiterx-header-sticky-custom .elementor[data-elementor-type=header]");n.elements.$header.hasClass("jupiterx-header-sticky-custom")&&2===i.length&&"visible"!==n.elements.$shoppingCart.parents(".elementor[data-elementor-type=header]").css("visibility")||(i=n.elements.$body.find(".raven-sticky--effects"),0<(t=e.parents(".raven-sticky--active")).length&&!t.hasClass("raven-sticky--effects"))||(e=0!==i.length&&i.find(".raven-shopping-cart")?i.find(".raven-shopping-cart"):e).click()}))},ajaxAddToCart(){var e=this.elements.$elementorElement;0!==o(e[0]).parents(".jupiterx-header").length&&this.elements.$cartWrapper.data("is-product")&&o(document.body).find("form.cart").off("submit").on("submit",function(e){e.preventDefault();let t=o(this);var i={},n=new FormData(t[0]);if(!t.hasClass("grouped_form")&&!t.hasClass("bundle_form")){for(var[s,a]of n.entries()){let e=s;i[e="add-to-cart"===e?"raven-add-to-cart":e]=a}if(i.hasOwnProperty("raven-add-to-cart")||(i["raven-add-to-cart"]=t.find('[name="add-to-cart"]').val()),i.raven_shopping_cart="exists",i.nonce=ravenTools.nonce,i.action="raven_shopping_cart_single_insert_to_cart",e.hasOwnProperty("originalEvent"))return o.ajax({type:"post",url:wc_add_to_cart_params.ajax_url,data:i,beforeSend:()=>{t.addClass("loading")},complete:()=>{t.removeClass("loading"),t.removeClass("added"),t.next().hide()},success:e=>{if(e.error&&e.product_url)return window.location=e.product_url,!1;e=e.data;e.error||o(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,t])}}),!1}})},handleRemoveFromCart(){o(document.body).on("click",".jupiterx_remove_from_cart",function(t){t.preventDefault();var e=o(t.target).data("cart_item_key");o(t.target).closest(".woocommerce-mini-cart-item").block({message:null,overlayCSS:{opacity:.6}}),o.ajax({type:"post",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:e,raven_shopping_cart:"exists"},success:e=>{o(document.body).trigger("removed_from_cart",[e.fragments,e.cart_hash,o(t.target)])},error:()=>{window.location=o(t.target).attr("href")},dataType:"json"})})},handleTapToCloseOutside(){if("yes"===this.getElementSettings("tap_outside_close")){let t=this.getElementSettings("content_effect_blur_content"),i=this.getElementSettings("content_effect_content_overlay"),n=document.getElementsByClassName("raven-shopping-cart")[0],s=document.getElementsByClassName("jupiterx-cart-quick-view")[0];document.addEventListener("click",e=>{n?.contains(e.target)||s?.contains(e.target)||!this.$element?.hasClass("jupiterx-raven-cart-quick-view-overlay")||e.target.classList?.contains("add_to_cart_button")||e.target.classList?.contains("single_add_to_cart_button")||(this.$element.alterClass("jupiterx-raven-cart-quick-view-overlay"),"enabled"!==i&&"enabled"!==t)||this.elements.$overlay.removeClass("jupiterx-shopping-cart-overlay-activated")})}}})},{"../utils/module":9}],65:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new s({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let n=jQuery,s=e.default.extend({getDefaultSettings(){return{selectors:{slider:".raven-slider-wrapper",slide:".swiper-slide",slideInnerContents:".swiper-slide-contents",activeSlide:".swiper-slide-active",activeDuplicate:".swiper-slide-duplicate-active"},classes:{animated:"animated",kenBurnsActive:"elementor-ken-burns--active",slideBackground:"swiper-slide-bg"},attributes:{dataSliderOptions:"slider_options",dataAnimation:"animation"}}},getDefaultElements(){var e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.slider)};return t.$slides=t.$swiperContainer.find(e.slide),t},getSwiperOptions(){var e={autoplay:this.getAutoplayConfig(),grabCursor:!0,initialSlide:this.getInitialSlide(),slidesPerView:1,slidesPerGroup:1,loop:"yes"===this.getElementSettings("infinite"),speed:this.getElementSettings("transition_speed"),effect:this.getElementSettings("transition"),observeParents:!0,observer:!0,handleElementorBreakpoints:!0,on:{slideChange:()=>{this.handleKenBurns()}}},t=this.getElementSettings("navigation"),i="dots"===t||"both"===t;return("arrows"===t||"both"===t)&&(e.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),i&&(e.pagination={el:".swiper-pagination",type:"bullets",clickable:!0}),!0===e.loop&&(e.loopedSlides=this.getSlidesCount()),"fade"===e.effect&&(e.fadeEffect={crossFade:!0}),e},getAutoplayConfig(){return"yes"===this.getElementSettings("autoplay")&&{stopOnLastSlide:!0,delay:this.getElementSettings("autoplay_speed"),disableOnInteraction:"yes"===this.getElementSettings("pause_on_interaction")}},initSingleSlideAnimations(){var e=this.getSettings(),t=this.elements.$swiperContainer.data(e.attributes.dataAnimation);this.elements.$swiperContainer.find("."+e.classes.slideBackground).addClass(e.classes.kenBurnsActive),t&&this.elements.$swiperContainer.find(e.selectors.slideInnerContents).addClass(e.classes.animated+" "+t)},async initSlider(){let e=this.elements.$swiperContainer,t=this.getSettings(),i=e.data(t.attributes.dataAnimation);var n;!e.length||this.getSlidesCount()<=1||(n=elementorFrontend.utils.swiper,this.swiper=await new n(e,this.getSwiperOptions()),e.data("swiper",this.swiper),this.handleKenBurns(),this.getElementSettings("pause_on_hover")&&this.togglePauseOnHover(!0),i&&(this.swiper.on("slideChangeTransitionStart",function(){e.find(t.selectors.slideInnerContents).removeClass(t.classes.animated+" "+i).hide()}),this.swiper.on("slideChangeTransitionEnd",function(){e.find(t.selectors.slideInnerContents).show().addClass(t.classes.animated+" "+i)})))},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.getSlidesCount()<2?this.initSingleSlideAnimations():this.initSlider()},getChangeableProperties(){return{pause_on_hover:"pauseOnHover",pause_on_interaction:"disableOnInteraction",autoplay_speed:"delay",transition_speed:"speed"}},updateSwiperOption(i){if(0!==i.indexOf("width")){var n=this.getElementSettings(i);let e=this.getChangeableProperties()[i],t=n;switch(i){case"autoplay_speed":e="autoplay",t={delay:n,disableOnInteraction:"yes"===this.getElementSettings("pause_on_interaction")};break;case"pause_on_hover":this.togglePauseOnHover("yes"===n);break;case"pause_on_interaction":t="yes"===n}"pause_on_hover"!==i&&(this.swiper.params[e]=t)}this.swiper.update()},getSlidesCount(){return this.elements.$slides.length},getInitialSlide(){var e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0},handleKenBurns(){var e=this.getSettings();this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=n(this.swiper.slides[this.activeItemIndex]).children("."+e.classes.slideBackground):this.$activeImageBg=n(this.elements.$slides[0]).children("."+e.classes.slideBackground),this.$activeImageBg.addClass(e.classes.kenBurnsActive)},togglePauseOnHover(e){e?this.elements.$swiperContainer.on({mouseenter:()=>{this.swiper.autoplay.stop()},mouseleave:()=>{this.swiper.autoplay.start()}}):this.elements.$swiperContainer.off("mouseenter mouseleave")},onElementChange(e){this.getSlidesCount()<=1||this.getChangeableProperties().hasOwnProperty(e)&&this.updateSwiperOption(e)},onEditSettingsChange(e){this.getSlidesCount()<=1||"activeItemIndex"===e&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}})},{"../utils/module":9}],66:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.Google=void 0,i.default=function(e){0<n("#jupiterx-raven-social-login-widget-facebook").length&&s();0<n("#jupiterx-raven-social-login-widget-twitter").length&&a()};e("@wordpress/i18n");let n=jQuery;let s=()=>{window.fbAsyncInit=function(){FB.init({appId:jxRavenFacebookAppId,cookie:!0,xfbml:!0,version:"v10.0"})},document.getElementById("jupiterx-raven-social-login-widget-facebook").addEventListener("click",()=>{FB.login(function(n){n.authResponse&&"connected"===n.status&&FB.api("/me",{fields:"name, email"},function(e){var t=e.email,e=e.name,i=n.authResponse.accessToken;s(t,e,i)})})},!1);let s=(e,t,i)=>{n.ajax({url:_wpUtilSettings.ajax.url,type:"POST",beforeSend:()=>{jQuery(".raven-social-login-wrap .facebook").css("opacity","0.5"),n(".jx-social-login-errors-wrapper").hide().text("")},data:{action:"raven_form_frontend",email:e,name:t,access_token:i,post_id:document.getElementById("jx-raven-social-widget-post").value,form_id:document.getElementById("jx-raven-social-widget-form").value,social_network:"Facebook"}}).always(e=>{n(".raven-social-login-wrap .facebook").css("opacity","1.0"),!0===e.success?e.data.redirectUrl?window.location.href=e.data.redirectUrl:window.location.href=e.data.siteURL:n(".jx-social-login-errors-wrapper").show().text(e.data)})}},a=()=>{document.getElementById("jupiterx-raven-social-login-widget-twitter").addEventListener("click",()=>{n.ajax({url:_wpUtilSettings.ajax.url,type:"POST",beforeSend:()=>{n(".raven-social-login-wrap .twitter").css("opacity","0.5"),n(".jx-social-login-errors-wrapper").hide().text("")},data:{action:"raven_form_frontend",post_id:document.getElementById("jx-raven-social-widget-post").value,form_id:document.getElementById("jx-raven-social-widget-form").value,social_network:"Twitter"}}).always(e=>{n(".raven-social-login-wrap .twitter").css("opacity","1.0"),!0===e.success?(win=window.open(e.data,"_blank")).focus():n(".jx-social-login-errors-wrapper").show().text(e.data)})},!1)};i.Google=e=>{n.ajax({url:_wpUtilSettings.ajax.url,type:"POST",beforeSend:()=>{n(".raven-social-login-wrap .google").css("opacity","0.5"),n(".jx-social-login-errors-wrapper").hide().text("")},data:{token:e.credential,action:"raven_form_frontend",post_id:document.getElementById("jx-raven-social-widget-post").value,form_id:document.getElementById("jx-raven-social-widget-form").value,social_network:"Google"}}).always(e=>{n(".raven-social-login-wrap .google").css("opacity","1.0"),!0===e.success?e.data.redirectUrl?window.location.href=e.data.redirectUrl:window.location.href=e.data.siteURL:n(".jx-social-login-errors-wrapper").show().text(e.data)})}},{"@wordpress/i18n":104}],67:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=()=>{let a={facebook:"https://www.facebook.com/sharer.php?u={url}",twitter:"https://twitter.com/intent/tweet?text={text} {url}",linkedin:"https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={text}&source={url}",pinterest:"https://www.pinterest.com/pin/create/button/?url={url}&media={image}",reddit:"https://reddit.com/submit?url={url}&title={title}",vk:"https://vkontakte.ru/share.php?url={url}&title={title}&description={text}&image={image}",odnoklassniki:"https://connect.ok.ru/offer?url={url}&title={title}&imageUrl={image}",tumblr:"https://tumblr.com/share/link?url={url}",digg:"https://digg.com/submit?url={url}",skype:"https://web.skype.com/share?url={url}",stumbleupon:"https://www.stumbleupon.com/submit?url={url}",telegram:"https://telegram.me/share/url?url={url}&text={text}",pocket:"https://getpocket.com/edit?url={url}",xing:"https://www.xing.com/app/user?op=share&url={url}",whatsapp:"https://api.whatsapp.com/send?text=*{title}*%0A{text}%0A{url}",email:"mailto:?subject={title}&body={text}\n{url}",print:"javascript:print()"},s=e=>{let t=document.getElementById("jupiterx-social-share-target").value;var i=encodeURIComponent(document.getElementById("jupiterx-social-share-title").value),n=document.getElementById("jupiterx-social-share-image").value;!1===(e=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol})(t)&&(t="https://"+t);let s=a[e];return s=(s=(s=(s=s.replace(/{text}/g,"")).replace(/{url}/g,t)).replace(/{title}/g,i)).replace("{image}",n)};document.querySelectorAll(".jupiterx-social-share-button").forEach(n=>{n.addEventListener("click",()=>{var e=n.getAttribute("data-network"),t=s(e),i=e.charAt(0).toUpperCase()+e.slice(1);"print"===e?print():window.open(t,i,(()=>{let e=window.screen.width/2,t=window.screen.height/2,i=window.screen.width/4,n=window.screen.height/4;return window.screen.width<600&&(e=window.screen.width,t=window.screen.height-150,i=10,n=75),"toolbar=0,status=0,width="+e+",height="+t+",left="+i+",top="+n})())})})}},{}],68:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{mediaColumn:".media-column",contentColumn:".content-column",mediaItem:".media-column .section",contentItem:".content-column .section",stickyModeWrapper:".sticky-mode-wrapper",responsiveModeWrapper:".responsive-mode-wrapper"},state:{lastScroll:0,scrollDirection:""}}},getDefaultElements(){var e=this.getSettings("selectors");return{$mediaColumn:this.$element.find(e.mediaColumn),$contentColumn:this.$element.find(e.contentColumn),$mediaItem:this.$element.find(e.mediaItem),$contentItem:this.$element.find(e.contentItem),$stickyModeWrapper:this.$element.find(e.stickyModeWrapper),$responsiveModeWrapper:this.$element.find(e.responsiveModeWrapper)}},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.setMediaHeight(),this.setStickPosition(),this.pauseAllVideosOnFirstScroll()},bindEvents(){let s=this;window.addEventListener("scroll",s.detectScrollDirection),window.addEventListener("resize",()=>{s.setMediaHeight(),s.setStickPosition()}),[...this.elements.$contentItem].forEach(e=>{new IntersectionObserver(function(n){n.forEach(e=>{var t=100*e.intersectionRatio,i=s.getSettings("state.scrollDirection");0<e.intersectionRatio&&!i&&(s.elements.$mediaColumn.find(".section").removeClass("active"),s.elements.$mediaColumn.find(`[data-section-index="${$(e.target).index()}"]`).addClass("active")),"up"===i&&s.handleScrollUp(t,n),"down"===i&&s.handleScrollDown(t,n)})},{threshold:[.4,.9]}).observe(e)})},detectScrollDirection(){var e=this.getSettings("state.lastScroll"),t=window.scrollY;0<t-e?this.setSettings("state.scrollDirection","down"):t-e<0&&this.setSettings("state.scrollDirection","up"),this.setSettings("state.lastScroll",t)},handleScrollUp(e,t){e<90||(e=this.elements.$mediaColumn.find(".section.active"),t=t[0].target.dataset.sectionIndex,t=this.elements.$mediaColumn.find(`[data-section-index="${t}"]`),this.activateMediaSection(t[0],e[0]))},handleScrollDown(t,i){if(!(40<t)){t=this.elements.$mediaColumn.find(".section.active");let e=+i[0].target.dataset.sectionIndex+1;e===this.elements.$contentItem.length&&(e=this.elements.$contentItem.length-1);i=this.elements.$mediaColumn.find(`[data-section-index="${e}"]`);this.activateMediaSection(i[0],t[0])}},activateMediaSection(e,t){t.classList.remove("active"),e.classList.add("active");var i,n=t.querySelector("video"),s=e.querySelector("video"),t=t.querySelector("iframe"),a=e.querySelector("iframe");(n||t)&&((i=t?.src)&&(t.src="",t.dataset.src=i),n)&&(n.currentTime=n.dataset.startTime,n.pause()),a&&a.dataset&&a.dataset.src&&(a.src=a.dataset.src),s&&s.autoplay&&s.muted&&s.play(),this.setStickPosition(e)},setMediaHeight(){this.elements.$mediaColumn.each((e,t)=>{var i=t.querySelector(".section").clientHeight;t.style.height=i+"px"}),this.elements.$mediaColumn.find(".section").each((e,t)=>{var i=t.querySelector(".raven-sticky-media-scroller-content")?.clientHeight;t.style.height=i+"px"}),this.elements.$responsiveModeWrapper.find(".section:first-child").each((e,t)=>{var i=t.querySelector(".raven-sticky-media-scroller-content")?.clientHeight,n=t.parentElement.querySelector(".section:last-child")?.clientHeight;n<i&&"none"!==this.elements.$responsiveModeWrapper.css("display")&&t.classList.contains("elementor-repeater-item-media-type-video")&&(t.style.height=i-n+"px",!document.body.classList.contains("elementor-editor-active"))||(t.style.height=i+"px")})},setStickPosition(e={}){var e=(e=e.length?e:this.elements.$mediaColumn.find(".section.active")[0]).clientHeight,t=this.getElementSettings("stick_position"),i=window.innerHeight;this.elements.$mediaColumn[0].style.height=e+"px","bottom"===t&&(this.elements.$mediaColumn[0].style.top=i-e-40+"px"),"center"===t&&(this.elements.$mediaColumn[0].style.top=(i-e)/2+"px")},pauseAllVideosOnFirstScroll(){var e=this.elements.$stickyModeWrapper[0].querySelectorAll(".section:not(.active)");e&&e.forEach(e=>{e=e.querySelector("video");e&&e.pause()})}})},{"../utils/module":9}],69:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{form:".elementor-stripe-form",errors:".elementor-message-danger",button:".elementor-payment-button"}}},getDefaultElements(){var e=this.getSettings();return{form:this.$element[0].querySelector(e.selectors.form),errors:this.$element[0].querySelectorAll(e.selectors.errors)}},bindEvents(){var e=document.querySelector(".elementor-payment-button");_.isNull(this.elements.form)&&_.isNull(e)||e.addEventListener("click",e=>this.handleSubmit(e))},handleSubmit(h){if(h.preventDefault(),!elementorFrontend.isEditMode()){""!==this.elements.errors.innerHTML&&document.querySelectorAll(".elementor-stripe-error-message").forEach(e=>e.remove());let i=this.elements.form,e=new FormData(i),t=e.get("action"),n=e.get("post_id"),s=e.get("widget_id"),a=e.get("custom_error_msg"),o=e.get("custom_error_msg_global"),r=e.get("custom_error_msg_payment"),l=e.get("stripe_form_submit_nonce"),d=document.URL,c=e.get("open_in_new_window"),u="yes"===c?"_blank":"_self",p=e=>{var t=document.createElement("div"),t=i.appendChild(t);t.className="elementor-message elementor-stripe-error-message elementor-message-danger",t.innerHTML=e};h={action:t,postId:n,widgetId:s,pageUrl:d,nonce:l};void 0!==this.elements.errors&&0<this.elements.errors.length&&this.elements.errors.forEach(e=>{e.classList.remove("elementor-hidden")}),wp.ajax.post({action:t,data:h,nonce:l}).done(e=>{var t=e.response.code,i=e.body&&JSON.parse(e.body);switch(t){case 200:window.open(i.url,u);break;case 401:case 403:a?p(r):p(i.error.message);break;default:a?p(o):p(i.error.message)}}).fail(e=>{e=e.body&&JSON.parse(e.body),a?p(o):p(e.error.message)})}}})},{"../utils/module":9}],70:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new s({$element:e})};var i=(i=e("../utils/module"))&&i.__esModule?i:{default:i},n=e("@wordpress/i18n");let p=jQuery,s=i.default.extend({onInit(){this.setLoader();var e,t=this.getElementSettings();this.addCollpaseIcons(t),_.isEmpty(t.headings_by_tags)||(e=this.findWanted(t),_.isEmpty(e)?this.manageNotFound():(this.manageToAppendFound(e,t),"object"==typeof elementor&&this.autoSlide(t)))},onElementChange(){var e=this.getElementSettings();this.addCollpaseIcons(e,!0)},autoSlide(e){var t=this.getWrapper();"yes"===e.collapse_subitems&&p(t).find(".jupiterx-table-of-content-main-list > li > ol").hide(),"undefined"==typeof elementor&&window.addEventListener("scroll",this.onScrollEvent)},onScrollEvent(){let e=this.getWrapper(),t=this.getElementSettings(),i=this,n=0;var s;p(`[data-${i.getID()}-jxtoc]`).each((e,t)=>{t=p(t).attr(`data-${i.getID()}-jxtoc`);if(i.isElementInView(t)[0])return n=t,!0}),p(e).find(".jupiterx-table-of-contents-item-link").removeClass("jupiterx-table-of-contents-item-link-active"),p(e).find(`.jupiterx-table-of-contents-item-link[data-id=${n}]`).addClass("jupiterx-table-of-contents-item-link-active"),"yes"===t.collapse_subitems&&(s=p(e).find(`li[data-key=${n}] > ol`),p(e).find(`.jupiterx-table-of-contents-item-wrapper[data-key=${n}]`).parent().hasClass("jupiterx-table-of-content-main-list")?(p(e).find(".jupiterx-table-of-content-main-list > li > ol").not(s).hide("fast"),s.slideDown()):(p(e).find(`.jupiterx-table-of-contents-item-wrapper[data-key=${n}]`).parents(".jupiterx-table-of-contents-nested-list").show(),p(e).find(".jupiterx-table-of-content-main-list > li > ol").not(p(`.jupiterx-table-of-contents-item-wrapper[data-key=${n}]`).parents(".jupiterx-table-of-contents-nested-list")).hide()))},isElementInView(e){let a=!1,t=this.getWrapper(),o=this,i=p(t).find(`.jupiterx-table-of-contents-item-wrapper[data-key="${e}"]`),n=p(`[data-${this.getID()}-jxtoc="${e}"]`),s=n.offset().top+25,r=s+n.outerHeight(),l=p(window).scrollTop(),d=l+p(window).height();return(a=l<r&&s<d)?[!0,e]:(i.find("li").each((e,t)=>{var t=p(t).attr("data-key"),t=p(`[data-${o.getID()}-jxtoc=${t}]`),i=t.offset().top,t=i+t.outerHeight(),n=p(window).scrollTop(),s=n+p(window).height();n<t&&i<s&&(a=!0)}),[a,e])},addCollpaseIcons(c,u=!1){if("yes"===c.minimize_box){let t=this.getWrapper(),e=p(t).find(".jupiterx-table-of-contents-list-icon-expand").html(),i=p(t).find(".jupiterx-table-of-contents-list-icon-collapse").html(),n=p(t).find(".jupiterx-toc-body-maximized"),s=window.innerWidth,a=p(t).find(".jupiterx-table-of-contents-widget"),o=a.css("min-height"),r=p(t).find(".jupiterx-table-of-contents-header"),l=(u&&p(t).find(".jxtoc").length<0&&p(t).append('<input type="hidden" value="0" class="jxtoc-checker">'),u&&"0"!==p(t).find(".jxtoc-checker").val()||(n.append(e),n.append(i)),u&&p(t).find(".jxtoc-checker").val("1"),r.css("cursor","pointer"),p(t).find(".jupiterx-table-of-contents-expand-icon")),d=p(t).find(".jupiterx-table-of-contents-collapse-icon");r.off().on("click",()=>{var e=p(t).find(".jupiterx-table-of-contents-body");(e.is(":visible")?(e.slideUp(),p(t).find("table").css("min-height","auto"),d.hide(),l):(e.slideDown(),p(t).find("table").css("min-height",o),l.hide(),d)).show()}),l.hide(),d.show(),"desktop"===c.minimized_on&&1024<=s&&(l.show(),d.hide(),r.trigger("click")),"tablet"===c.minimized_on&&s<1024&&767<s&&(l.show(),d.hide(),r.trigger("click")),"mobile"===c.minimized_on&&s<767&&(l.show(),d.hide(),r.trigger("click"))}},setLoader(){var e=p(".jupiterx-table-of-contents-loader-icon").html();p(".jupiterx-table-of-contents-body").append(e)},findWanted(n){let s={},e=n.headings_by_tags.join(),t="body",a=0;return _.isEmpty(n.container)||(t=n.container),p(t).find(e).each((e,t)=>{var i=p(t).prop("tagName");p(t).hasClass("jupiterx-table-of-contents-native-exclude")||1===p(t).parents("header").length&&!n.container?.includes("header")&&1!==p(t).parents("#jupiterx-primary").length||1===p(t).parents("footer").length&&!n.container?.includes("footer")&&1!==p(t).parents("#jupiterx-primary").length||1===p(t).parents("aside").length&&!n.container?.includes("aside")&&1!==p(t).parents("#jupiterx-primary").length||1===p(t).parents(".jupiterx-main-header").length&&!n.container?.includes(".jupiterx-main-header")||!_.isEmpty(n.exclude_headings_by_selector)&&!this.checkExcludes(t,n.exclude_headings_by_selector,i)||(p(t).attr(`data-${this.getID()}-jxtoc`,a),s[a]={type:i,text:p(t).text().trim(),id:a},a++)}),s},checkExcludes(n,e,s){e.includes(",")||(e+=",");let a=!0,o="";return e.split(",").map(e=>e.trim()).forEach(e=>{var t,i;""!==e&&(t=e.charAt(0),i=p(e),"."===t?(o=e.substring(1),(p(n).hasClass(o)||_.some(i,e=>e?.offsetParent?.classList===n?.offsetParent?.classList))&&(a=!1)):"#"===t?(o=e.substring(1))!==p(n).attr("id")&&!_.some(i,e=>e?.offsetParent?.id===n?.offsetParent?.id)||(a=!1):(o=e.toUpperCase())===s&&(a=!1))}),a},getWrapper(){return'div[data-id="'+this.getID()+'"]'},manageNotFound(){var e=this.getWrapper();p(e).find(".jupiterx-table-of-contents-body").text((0,n.__)("No headings were found on this page.","jupiterx-core"))},activeLoading(){var e=this.getWrapper();p(e).find(".jupiterx-table-of-contents-body").empty()},buildItem(t,e,i,n){var s=this.getWrapper(),e=e[i],a=document.createElement("li"),o=document.createElement("div"),i=(a.setAttribute("class","jupiterx-table-of-contents-item-wrapper"),a.setAttribute("data-tag",e.type),o.setAttribute("class","jupiterx-table-of-contents-inner-wrapper"),"yes"!==t.word_wrap&&a.classList.add("jupiterx-toc-word-wrap"),"yes"===t.hierarchical_view&&a.setAttribute("data-key",i),document.createElement("span")),r=document.createElement("span"),n=(r.setAttribute("class","jupiterx-table-of-contents-list-pointer"),"numbers"===t.marker_view&&(i.innerText=n,r.innerText="."),"bullets"===t.marker_view&&(i.innerHTML=p(s).find(".jupiterx-table-of-contents-list-icon-wrapper").html()),_.isEmpty(t.hierarchical_view)&&(o.appendChild(i),o.appendChild(r)),_.isEmpty(t.hierarchical_view)||"bullets"!==t.marker_view||(a.classList.add("wrapper-with-no-number"),o.appendChild(i)),document.createElement("a"));return n.setAttribute("class","jupiterx-table-of-contents-item-link"),n.setAttribute("data-text",e.text),n.setAttribute("data-id",e.id),n.setAttribute("href","#"),p(n).off().on("click",e=>{e.preventDefault(),this.collapseSubmenus(e,t)}),n.innerText=e.text,o.appendChild(n),a.appendChild(o),{type:"li",content:a,tag:e.type}},manageToAppendFound(n,e){let t=1,i=this.getWrapper(),s=p(i).find(".jupiterx-table-of-contents-body"),a=_.isEmpty(e.hierarchical_view)?"ul":"ol",o=document.createElement(a);for(var r in o.setAttribute("type","1"),o.setAttribute("class","jupiterx-table-of-content-main-list"),n){var l=this.buildItem(e,n,r,t);let i=parseInt(r);if(t++,0===i||_.isEmpty(e.hierarchical_view))o.appendChild(l.content);else{var d=this.convertTagToNumber(l.tag);for(i-=1;0<=i;){let e=this.convertTagToNumber(n[i].type),t=p(o).find('[data-key="'+i+'"]');if(d===e){t.parent().append(l.content);break}if(e<d&&0<t.children("ol").length){t.append(l.content);break}if(e<d&&0===t.children("ol").length){var c=document.createElement("ol");c.appendChild(l.content),c.setAttribute("class","jupiterx-table-of-contents-nested-list"),t.append(c);break}if(d<e){c=i-1;if(c<0){p(o).find('[data-key="0"]').parent().append(l.content);break}if(e=this.convertTagToNumber(n[c].type),t=p(o).find('[data-key="'+c+'"]'),e<d&&0<t.children("ol").length){t.find("ol").append(l.content);break}if(e<d&&0===t.children("ol").length){var u=document.createElement("ol");u.appendChild(l.content),u.setAttribute("class","jupiterx-table-of-contents-nested-list"),t.append(u);break}}i--}}}"undefined"==typeof elementor?setTimeout(()=>{p(".jupiterx-table-of-contents-loader").css("display","none"),s.append(o),this.autoSlide(e)},500):(p(".jupiterx-table-of-contents-loader").css("display","none"),s.append(o))},convertTagToNumber(e){return parseInt(e.replace("H",""))},collapseSubmenus(e,t){window.removeEventListener("scroll",this.onScrollEvent);var i=p(e.target).attr("data-id");p(".jupiterx-table-of-contents-item-link").removeClass("jupiterx-table-of-contents-item-link-active"),e.target.classList.add("jupiterx-table-of-contents-item-link-active"),"undefined"==typeof elementor&&p("html, body").animate({scrollTop:p(`[data-${this.getID()}-jxtoc="`+i+'"]').offset().top-100},500),"yes"===t.collapse_subitems&&(i=e.target.getAttribute("data-id"),t=this.getWrapper(),p(e.target).parent().parent().parent().hasClass("jupiterx-table-of-content-main-list"))&&(p(t).find(`li[data-key=${i}] > ol`).slideToggle("fast"),p(t).find(`.jupiterx-table-of-content-main-list > li[data-key!=${i}] > ol`).hide()),setTimeout(()=>{window.addEventListener("scroll",this.onScrollEvent)},0)}})},{"../utils/module":9,"@wordpress/i18n":104}],71:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e,toggleSelf:!1})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({$activeContent:null,interval:null,getDefaultSettings(){return{selectors:{tabTitle:".raven-tabs-title",tabContent:".raven-tabs-content"},classes:{active:"raven-tabs-active"},showTabFn:"show",hideTabFn:"hide",toggleSelf:!0,hidePrevious:!0,autoExpand:!0}},getDefaultElements(){var e=this.getSettings("selectors");return{$tabTitles:this.findElement(e.tabTitle),$tabContents:this.findElement(e.tabContent)}},activateDefaultTab(){var e,t=this.getSettings();(t.autoExpand&&"editor"!==t.autoExpand||this.isEdit)&&(e=this.getEditSettings("activeItemIndex")||1,t={showTabFn:t.showTabFn,hideTabFn:t.hideTabFn},this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(e),this.setSettings(t))},deactivateActiveTab(e){var t=this.getSettings(),i=t.classes.active,e=e?'[data-tab="'+e+'"]':"."+i,n=this.elements.$tabTitles.filter(e),e=this.elements.$tabContents.filter(e);n.add(e).removeClass(i),e[t.hideTabFn]()},activateTab(e){var t=this.getSettings(),i=t.classes.active,n=this.elements.$tabTitles.filter('[data-tab="'+e+'"]'),e=this.elements.$tabContents.filter('[data-tab="'+e+'"]'),s=this.getElementSettings("scroll_to_beginning");n.add(e).addClass(i),e[t.showTabFn](),n.hasClass("raven-tabs-mobile-title")&&"yes"===s&&window.innerWidth<1025&&(i=$("header").outerHeight(),window.scroll({top:e.offset().top-i-100,behavior:"smooth"}))},isActiveTab(e){return this.elements.$tabTitles.filter('[data-tab="'+e+'"]').hasClass(this.getSettings("classes.active"))},useAjax(){if("yes"===this.getElementSettings("use_ajax_loading")){let t=$(".raven-tabs-content.raven-tabs-active .raven-ajax-content-template");var e=t.attr("data-id");wp.ajax.post({action:"jupiterx_load_content_template",nonce:ravenTools.nonce,template_id:e}).done(function(e){t.html(e)}).fail(function(){t.html("Oops! Something went wrong")})}},bindEvents(){let t=this;var e=t.getElementSettings("tabs_event");t.elements.$tabTitles.on(e,e=>{t.changeActiveTab(e.currentTarget.dataset.tab),t.useAjax(),clearInterval(t.interval)})},onInit(){var i=this,n=(elementorModules.frontend.handlers.Base.prototype.onInit.apply(i,arguments),i.activateDefaultTab(),i.getElementSettings("auto_switch"));if("yes"===n){n=i.getElementSettings("auto_swtich_delay");let e=1,t=i.getDefaultElements().$tabContents.length;i.interval=setInterval(()=>{++e>t&&(e=1),this.changeActiveTab(e)},n)}},onEditSettingsChange(e){"activeItemIndex"===e&&this.activateDefaultTab()},changeActiveTab(e){var t=this.isActiveTab(e),i=this.getSettings(),i=(!i.toggleSelf&&t||!i.hidePrevious||this.deactivateActiveTab(),!i.hidePrevious&&t&&this.deactivateActiveTab(e),t||this.activateTab(e),new CustomEvent("jupiterxcore:advancedtabs:changeactivetab"));document.dispatchEvent(i)}})},{"../utils/module":9}],72:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;class n extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{tablist:'[role="tablist"]',tabTitle:".raven-tab-title",tabContent:".raven-tab-content"},classes:{active:"e-active"},showTabFn:"show",hideTabFn:"hide",toggleSelf:!0,hidePrevious:!0,autoExpand:!0,keyDirection:{ArrowLeft:window.elementorFrontendConfig.is_rtl?1:-1,ArrowUp:-1,ArrowRight:window.elementorFrontendConfig.is_rtl?-1:1,ArrowDown:1}}}getDefaultElements(){var e=this.getSettings("selectors");return{$tabTitles:this.findElement(e.tabTitle),$tabContents:this.findElement(e.tabContent)}}activateDefaultTab(e){var t=this.getSettings();t.autoExpand&&("editor"!==t.autoExpand||this.isEdit)&&(e=this.getEditSettings("activeItemIndex")||e||1,t={showTabFn:t.showTabFn,hideTabFn:t.hideTabFn},this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(e),this.setSettings(t))}handleKeyboardNavigation(e){var t=e.currentTarget,i=jQuery(t.closest(this.getSettings("selectors").tablist)),n=i.find(this.getSettings("selectors").tabTitle),s="vertical"===i.attr("aria-orientation");switch(e.key){case"ArrowLeft":case"ArrowRight":if(s)return;break;case"ArrowUp":case"ArrowDown":if(!s)return;e.preventDefault();break;case"Home":return e.preventDefault(),void n.first().trigger("focus");case"End":return e.preventDefault(),void n.last().trigger("focus");default:return}var i=t.getAttribute("data-tab")-1,t=this.getSettings("keyDirection")[e.key],a=n[i+t];a?a.focus():(-1===i+t?n.last():n.first()).trigger("focus")}deactivateActiveTab(e){var t=this.getSettings(),i=t.classes.active,e=e?'[data-tab="'+e+'"]':"."+i,n=this.elements.$tabTitles.filter(e),e=this.elements.$tabContents.filter(e);n.add(e).removeClass(i),n.attr({tabindex:"-1","aria-selected":"false"}),e[t.hideTabFn](),e.attr("hidden","hidden")}activateTab(e){var t=this.getSettings(),i=t.classes.active,n=this.elements.$tabTitles.filter('[data-tab="'+e+'"]'),e=this.elements.$tabContents.filter('[data-tab="'+e+'"]'),s="show"===t.showTabFn?0:400;n.add(e).addClass(i),n.attr({tabindex:"0","aria-selected":"true"}),e[t.showTabFn](s,()=>elementorFrontend.elements.$window.trigger("resize")),e.removeAttr("hidden")}isActiveTab(e){return this.elements.$tabTitles.filter('[data-tab="'+e+'"]').hasClass(this.getSettings("classes.active"))}bindEvents(){this.elements.$tabTitles.on({keydown:e=>{jQuery(e.target).is("a")&&"Enter"===e.key&&e.preventDefault(),["End","Home","ArrowUp","ArrowDown"].includes(e.key)&&this.handleKeyboardNavigation(e)},keyup:e=>{switch(e.key){case"ArrowLeft":case"ArrowRight":this.handleKeyboardNavigation(e);break;case"Enter":case"Space":e.preventDefault(),this.changeActiveTab(e.currentTarget.getAttribute("data-tab"))}},click:e=>{e.preventDefault(),this.changeActiveTab(e.currentTarget.getAttribute("data-tab"))}})}onInit(){super.onInit(...arguments)}changeActiveTab(e){var t=this.isActiveTab(e),i=this.getSettings();!i.toggleSelf&&t||!i.hidePrevious||this.deactivateActiveTab(),!i.hidePrevious&&t&&this.deactivateActiveTab(e),t||this.activateTab(e)}}i.default=n},{}],73:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.triggerEvent=async function(e,t,i,n){t=new s.default({event:await(async(e,t,i,n)=>(n=n||e.currentPlaylistItemIndex,n=e.playlistItemsArray[n-1],{type:t,time:await n.playerInstance.getCurrentTime(),element:e.$element,trigger:i,watchCount:n.playerInstance.watchCount}))(e,t,i,n),tab:(e=>(e=e.elements.$innerTabs.filter(".e-active").find(".raven-inner-tabs-wrapper .raven-inner-tab-title")).length?{name:(e=e.filter(".raven-inner-tab-active")).text().trim(),index:e.index()+1}:{name:"none",index:"none"})(e),playlist:((e,t)=>(t=t||e.currentPlaylistItemIndex,{name:e.getElementSettings("playlist_title"),currentItem:t,amount:e.playlistItemsArray.filter(e=>"section"!==e.videoType).length}))(e,n),video:((e,t)=>(t=t||e.currentPlaylistItemIndex,{provider:(e=e.playlistItemsArray[t-1]).videoType,url:e.videoUrl,title:e.videoTitle,duration:e.videoDuration}))(e,n)});jQuery("body").trigger("raven-video-playList",t)};var s=(i=e("../video-playlist/playlist-event"))&&i.__esModule?i:{default:i}},{"../video-playlist/playlist-event":80}],74:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new u({$element:e})};var i=c(e("../video-playlist/base-tabs")),n=c(e("../video-playlist/player-youtube")),s=c(e("../video-playlist/player-vimeo")),a=c(e("../video-playlist/player-hosted")),o=e("../video-playlist/scroll-utils"),r=e("../video-playlist/inner-tabs"),l=e("../video-playlist/url-params"),d=e("../video-playlist/event-trigger");function c(e){return e&&e.__esModule?e:{default:e}}class u extends i.default{getDefaultSettings(){var e=super.getDefaultSettings();return{...e,selectors:{...e.selectors,tabsWrapper:".raven-tabs-items-wrapper",tabsItems:".raven-tabs-items",toggleVideosDisplayButton:".raven-tabs-toggle-videos-display-button",videos:".raven-tabs-content-wrapper .raven-tab-content",innerTabs:".raven-tabs-inner-tabs .raven-tab-content",imageOverlay:".raven-custom-embed-image-overlay"}}}getDefaultElements(){var e=super.getDefaultElements(),t=this.getSettings("selectors");return{...e,$tabsWrapper:this.findElement(t.tabsWrapper),$tabsItems:this.findElement(t.tabsItems),$toggleVideosDisplayButton:this.findElement(t.toggleVideosDisplayButton),$videos:this.findElement(t.videos),$innerTabs:this.findElement(t.innerTabs),$imageOverlay:this.findElement(t.imageOverlay)}}initEditorListeners(){super.initEditorListeners();let t=this;this.editorListeners.push({event:"ravenPlaylistWidget:fetchVideoData",to:elementor.channels.editor,callback:e=>{t.getCurrentPlayerSelected().setVideoProviderData().then(()=>{e.currentItem=t.getCurrentItemSelected(),elementor.channels.editor.trigger("ravenPlaylistWidget:setVideoData",e)})}})}bindEvents(){super.bindEvents(),this.elements.$imageOverlay.on({click:e=>{e.currentTarget.remove(),this.getCurrentPlayerSelected().play()}}),this.elements.$innerTabs.on({click:e=>{(0,r.handleInnerTabs)(e,this)}}),this.elements.$tabsItems.on({scroll:e=>{(0,o.handleVideosPanelScroll)(this.elements,e)}}),this.elements.$toggleVideosDisplayButton.on({click:e=>{jQuery(e.target).toggleClass("rotate-up"),jQuery(e.target).toggleClass("rotate-down"),this.elements.$tabsWrapper.slideToggle("slow")}})}onInit(){super.onInit(...arguments),this.playlistId=this.getID(),this.storageKey="watched_videos_"+this.getID();var e=elementorFrontend.storage.get(this.storageKey);this.watchedVideosArray=[],e&&(this.watchedVideosArray=JSON.parse(e)),this.watchedIndication=this.getElementSettings("show_watched_indication"),(0,o.handleVideosPanelScroll)(this.elements),this.isAutoplayOnLoad="yes"===this.getElementSettings("autoplay_on_load"),this.isAutoplayNextUp="yes"===this.getElementSettings("autoplay_next"),this.isFirstVideoActivated=!0,this.createPlaylistItems(),this.isCollapsible=this.getElementSettings("inner_tab_is_content_collapsible"),this.innerTabsHeightLimit=this.getElementSettings("inner_tab_collapsible_height"),this.currentPlayingPlaylistItemIndex=1,this.activateInitialVideo(),this.activateInnerTabInEditMode()}onEditSettingsChange(e){"panel"===e&&(this.preventTabActivation=!0),"activeItemIndex"===e&&(this.preventTabActivation?this.preventTabActivation=!1:this.activateDefaultTab())}activateInitialVideo(){this.isPageOnLoad=!0;var e=!!this.getElementSettings("lazy_load"),t=(0,l.handleURLParams)(this.playlistId,this.playlistItemsArray);let i=!1;this.currentPlaylistItemIndex=1,this.currentPlayingPlaylistItemIndex=1,t&&(this.currentPlaylistItemIndex=t,this.currentPlayingPlaylistItemIndex=t,i=!0),this.isAutoplayOnLoad&&!i&&(0,l.setVideoParams)(this.playlistId,this.playlistItemsArray,this.currentPlaylistItemIndex),i&&this.$element[0]?.scrollIntoView({behavior:"smooth"}),this.handleFirstVideoActivation(e)}handleFirstVideoActivation(e){if(e){let t=document.querySelector(".elementor-element-"+this.playlistId+" .raven-tabs-main-area"),i=elementorModules.utils.Scroll.scrollObserver({callback:e=>{e.isInViewport&&(this.activateDefaultTab(this.currentPlaylistItemIndex),i.unobserve(t))}});i.observe(t)}else this.activateDefaultTab(this.currentPlaylistItemIndex)}getCurrentItemSelected(){return this.playlistItemsArray[this.currentPlaylistItemIndex-1]}getCurrentPlayerSelected(){return this.getCurrentItemSelected().playerInstance}getCurrentPlayerPlaying(){return this.playlistItemsArray[this.currentPlayingPlaylistItemIndex-1].playerInstance}isVideoShouldBePlayed(){if(this.currentPlayingPlaylistItemIndex!==this.currentPlaylistItemIndex)this.getCurrentPlayerPlaying()&&this.getCurrentPlayerPlaying().pause(),this.currentPlayingPlaylistItemIndex=this.currentPlaylistItemIndex;else if(this.getCurrentPlayerPlaying().isVideoPlaying)return this.getCurrentPlayerPlaying().pause(),!1;return!0}activateInnerTabInEditMode(){var e;this.isEdit&&this.getEditSettings("innerActiveIndex")&&(e=this.getEditSettings("innerActiveIndex"),jQuery(this.elements.$innerTabs.eq(this.currentPlaylistItemIndex-1).find(".raven-inner-tab-title a"))[e].click())}handleVideo(i){var e;i.playerInstance?this.isVideoShouldBePlayed()&&(1===this.currentPlaylistItemIndex&&this.elements.$imageOverlay&&this.elements.$imageOverlay.remove(),this.playVideoAfterCreation(i)):(e={youtube:n.default,vimeo:s.default,hosted:a.default},i.playerInstance=new e[i.videoType](i,this.currentPlaylistItemIndex),i.playerInstance.create().then(()=>{this.isVideoShouldBePlayed()&&this.playVideoOnCreation(i),i.playerInstance.handleFullScreenChange(e=>{(0,d.triggerEvent)(this,e?"videoFullScreen":"videoExitFullScreen","click")}),i.playerInstance.handlePlayed(()=>{var e=this.getCurrentItemSelected();let t="click";e.isAutoplayOnLoad?(t="onLoad",i.isAutoplayOnLoad=!1):e.isAutoPlayNextUp&&(t="nextVideo"),(0,d.triggerEvent)(this,e.playerInstance.isVideoPausedLocal?"videoResume":"videoStart",t)}),i.playerInstance.handleEnded(()=>{(0,d.triggerEvent)(this,"videoEnded","click"),this.watchedIndication&&this.elements.$tabTitles.filter(".e-active").addClass("watched-video");var e=this.getCurrentItemSelected().dataItemId;if(!this.watchedVideosArray.includes(e)&&this.watchedIndication&&(this.watchedVideosArray.push(this.getCurrentItemSelected().dataItemId),elementorFrontend.storage.set(this.storageKey,JSON.stringify(this.watchedVideosArray))),this.isAutoplayNextUp&&this.playlistItemsArray.length>=++this.currentPlaylistItemIndex){for(;"section"===this.getCurrentItemSelected().videoType;)if(this.currentPlaylistItemIndex++,this.playlistItemsArray.length<this.currentPlaylistItemIndex)return void(this.currentPlaylistItemIndex=this.playlistItemsArray.length);this.changeActiveTab(this.currentPlaylistItemIndex,!0)}}),i.playerInstance.handlePaused(e=>{(0,d.triggerEvent)(this,"videoPaused","click",e)})}))}playVideoAfterCreation(e){e.playerInstance.play()}playVideoOnCreation(e){this.isAutoplayOnLoad?(e.isAutoplayOnLoad=!0,e.playerInstance.mute(),e.playerInstance.play(),this.isAutoplayOnLoad=!1):this.isFirstVideoActivated||(e.isAutoPlayNextUp=!0,e.playerInstance.play()),this.isFirstVideoActivated=!1}createPlaylistItems(){this.playlistItemsArray=[],this.elements.$videos.each((e,t)=>{var i={},n=jQuery(t);i.videoUrl=n.attr("data-video-url"),i.videoType=n.attr("data-video-type"),i.videoTitle=n.attr("data-video-title"),i.videoDuration=n.attr("data-video-duration"),i.tabContent=t,i.dataTab=e+1,i.dataItemId=this.getElementSettings().tabs[e]._id,this.playlistItemsArray.push(i)}),0<this.watchedVideosArray.length&&this.watchedIndication&&this.watchedVideosArray.forEach(t=>{var e=this.playlistItemsArray.find(e=>e.dataItemId===t);this.elements.$tabTitles.filter('[data-tab="'+e.dataTab+'"]').addClass("watched-video")})}changeActiveTab(e,t){super.changeActiveTab(e),this.playlistItemsArray[e-1]&&"section"!==this.playlistItemsArray[e-1]?.videoType&&(this.currentPlaylistItemIndex=parseInt(e),t&&(this.currentPlayingPlaylistItemIndex=this.currentPlaylistItemIndex),this.handleVideo(this.getCurrentItemSelected(),t),this.isPageOnLoad||(0,l.setVideoParams)(this.playlistId,this.playlistItemsArray,this.currentPlaylistItemIndex),this.isPageOnLoad=!1,0<jQuery(this.elements.$innerTabs.eq(e-1)).find(".raven-inner-tab-content").length)&&(t=this.elements.$innerTabs.filter(".e-active").find(".raven-inner-tab-content"),(0,r.handleInnerTabsButtonsDisplay)(t.toArray(),this.isCollapsible,this.innerTabsHeightLimit))}}},{"../video-playlist/base-tabs":72,"../video-playlist/event-trigger":73,"../video-playlist/inner-tabs":75,"../video-playlist/player-hosted":77,"../video-playlist/player-vimeo":78,"../video-playlist/player-youtube":79,"../video-playlist/scroll-utils":81,"../video-playlist/url-params":82}],75:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.handleInnerTabs=function(e,t){var i=e.target,n=i.tagName;i.classList.contains("raven-inner-tab-title-text")&&(e.preventDefault(),s=jQuery(i).parent(".raven-inner-tab-title"),a(e,s,t));{var s;i.classList.contains("raven-tab-mobile-title")&&(s=jQuery(i),a(e,s,t))}"button"===n.toLowerCase()&&r(e,t)},i.handleInnerTabsButtonsDisplay=o,i.onTabContentButtonsClick=r;var s=e("../video-playlist/event-trigger");function a(e,t,i){var e=e.currentTarget,n=e.querySelectorAll(".raven-inner-tab-title");t.hasClass("raven-inner-tab-active")||n.length<2||(t=e.querySelectorAll(".raven-inner-tab-content"),n.forEach(e=>{e.classList.toggle("raven-inner-tab-active")}),t.forEach(e=>{e.toggleAttribute("hidden"),e.classList.toggle("raven-inner-tab-active")}),o(Array.from(t),i.isCollapsible,i.innerTabsHeightLimit),(0,s.triggerEvent)(i,"tabOpened","click"))}function o(e,t,i){t&&(e=(t=e.filter(e=>e.classList.contains("raven-inner-tab-active")))[0].querySelector(".raven-inner-tab-text > div").offsetHeight,i=parseInt(i.size))&&i<e&&t[0].classList.add("show-inner-tab-buttons")}function r(e,t){e=jQuery(e.currentTarget).find(".raven-inner-tab-content").filter(".raven-inner-tab-active"),e.find("button").toggleClass("show-button"),e.toggleClass("show-full-height"),e=e.hasClass("show-full-height")?"tabExpanded":"tabCollapsed";(0,s.triggerEvent)(t,e,"click")}},{"../video-playlist/event-trigger":73}],76:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=class{constructor(e,t){this.playlistItem=e,this.positionInVideoList=t}formatDuration(e){var e=new Date(1e3*e),t=e.getUTCHours(),i=e.getUTCMinutes(),e=e.getSeconds();return 0!==t?`${t.toString()}:${i.toString().padStart(2,"0")}:`+e.toString().padStart(2,"0"):i.toString()+":"+e.toString().padStart(2,"0")}}},{}],77:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e=(e=e("../video-playlist/player-base"))&&e.__esModule?e:{default:e};class n extends e.default{constructor(e,t){super(e,t),this.playerObject=null,this.watchCount=0,this.isVideoPlaying=!1,this.isVideoPausedLocal=!1,this.isVideoSeeking=!1,this.isVideoEnded=!1,this.isReady=!1}create(){return new Promise(e=>{var t=document.createElement("video"),i=(t.setAttribute("controls",""),document.createTextNode("Sorry, your browser doesn't support embedded videos.")),n=document.createElement("source");n.setAttribute("src",this.playlistItem.videoUrl),n.setAttribute("type","video/"+this.playlistItem.videoUrl.split(".").pop()),t.appendChild(n),t.appendChild(i),this.playerObject=t,this.playlistItem.tabContent.querySelector("div").replaceWith(this.playerObject),this.playerObject.addEventListener("canplay",()=>{this.isReady=!0,e()}),this.playerObject.addEventListener("seeked",()=>{this.isVideoSeeking=!1}),this.playerObject.addEventListener("seeking",()=>{clearTimeout(this.seekTimeOut),this.isVideoSeeking=!0})})}handleEnded(e){this.playerObject.addEventListener("ended",()=>{this.watchCount++,this.isVideoEnded=!0,this.isVideoPlaying=!1,e(this.playlistItem)})}handlePaused(e){this.playerObject.addEventListener("pause",()=>{this.seekTimeOut=setTimeout(()=>{this.isVideoSeeking||this.isVideoEnded?this.isVideoEnded=!1:(e(this.positionInVideoList),this.isVideoPausedLocal=!0)},30)})}handlePlayed(e){this.playerObject.addEventListener("play",()=>{this.isVideoSeeking||e(this.playlistItem)})}handleFullScreenChange(e){jQuery(this.playerObject).on("webkitfullscreenchange mozfullscreenchange fullscreenchange",()=>{e(document.fullscreenElement)})}getCurrentTime(){return this.playerObject.currentTime}play(){this.isReady&&(this.isVideoPlaying=!0,this.playerObject.play())}pause(){this.isReady&&(this.isVideoPlaying=!1,this.playerObject.pause())}mute(){this.playerObject.muted=!0}}i.default=n},{"../video-playlist/player-base":76}],78:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e=(e=e("../video-playlist/player-base"))&&e.__esModule?e:{default:e};class n extends e.default{constructor(e,t){super(e,t),this.apiProvider=elementorFrontend.utils.vimeo,this.playerObject=null,this.watchCount=0,this.isVideoInFullScreenChange=!1,this.isReady=!1}create(){return this.currentVideoID=this.apiProvider.getVideoIDFromURL(this.playlistItem.videoUrl),new Promise(i=>{this.apiProvider.onApiReady(e=>{var t={id:this.currentVideoID,autoplay:!1};this.playerObject=new e.Player(this.playlistItem.tabContent.querySelector("div"),t),this.playerObject.ready().then(()=>{this.isReady=!0,i()})})})}handleEnded(e){this.playerObject.on("ended",()=>{this.watchCount++,e(this.playlistItem)})}handlePaused(t){this.playerObject.on("pause",e=>{0===e.percent||1<=e.percent||this.isVideoInFullScreenChange||t(this.positionInVideoList)})}handlePlayed(e){this.playerObject.on("play",()=>{this.isVideoInFullScreenChange?this.isVideoInFullScreenChange=!1:e(this.playlistItem)})}handleFullScreenChange(e){this.playerObject.element.addEventListener("fullscreenchange",()=>{e(document.fullscreenElement),this.isVideoInFullScreenChange=!0})}getCurrentTime(){return this.playerObject.getCurrentTime().then(e=>e)}play(){this.isReady&&this.playerObject.play()}pause(){this.isReady&&this.playerObject.pause()}mute(){this.playerObject.setMuted(!0)}async setVideoProviderData(){var e;if(this.currentVideoID||9!==!this.currentVideoID?.length)return e=await this.playerObject.getVideoId(),e=await(await window.fetch("https://vimeo.com/api/v2/video/"+e+".json")).json(),this.playlistItem.duration=this.formatDuration(e[0].duration),this.playlistItem.video_title=e[0].title,this.playlistItem.thumbnail={url:e[0].thumbnail_medium},this.playlistItem}}i.default=n},{"../video-playlist/player-base":76}],79:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e=(e=e("../video-playlist/player-base"))&&e.__esModule?e:{default:e};class n extends e.default{constructor(e,t){super(e,t),this.apiProvider=elementorFrontend.utils.youtube,this.playerObject=null,this.watchCount=0,this.isVideoPlaying=!1,this.isVideoPausedLocal=!1,this.isVideoEnded=!1,this.seekSequenceArray=[],this.pauseCurrentTime=null,this.isReady=!1}create(){return this.currentVideoID=this.apiProvider.getVideoIDFromURL(this.playlistItem.videoUrl),new Promise(i=>{this.apiProvider.onApiReady(e=>{var t={width:"773",videoId:this.currentVideoID,playerVars:{rel:0,showinfo:0,ecver:2},events:{onReady:()=>{this.isReady=!0,i()}}};this.playerObject=new e.Player(this.playlistItem.tabContent.querySelector("div"),t),this.playerObject.addEventListener("onStateChange",e=>{3===e.data&&(2===this.seekSequenceArray[this.seekSequenceArray.length-1]?this.seekSequenceArray.push(3):(this.seekSequenceArray=[],clearTimeout(this.seekTimeOut)))})})})}handleEnded(t){this.playerObject.addEventListener("onStateChange",e=>{0===e.data&&(this.watchCount++,this.isVideoEnded=!0,e.target.seekTo(0),e.target.stopVideo(),this.isVideoPlaying=!1,t())})}handlePaused(t){this.playerObject.addEventListener("onStateChange",e=>{2===e.data&&(this.seekSequenceArray=[],this.seekSequenceArray.push(2),this.pauseCurrentTime=this.playerObject.playerInfo.currentTime,this.seekTimeOut=setTimeout(()=>{2===this.seekSequenceArray.length&&2===this.seekSequenceArray[0]&&3===this.seekSequenceArray[1]?(this.seekSequenceArray=[],clearTimeout(this.seekTimeOut)):(t(this.positionInVideoList),this.isVideoPausedLocal=!0)},1e3))})}handlePlayed(t){this.playerObject.addEventListener("onStateChange",e=>{1!==e.data||this.isVideoEnded?this.isVideoEnded=!1:2===this.seekSequenceArray.length&&2===this.seekSequenceArray[0]&&3===this.seekSequenceArray[1]||t()})}handleError(e){this.playerObject.addEventListener("onError",()=>{e()})}handleFullScreenChange(e){this.playerObject.addEventListener("fullscreenchange",()=>{e(document.fullscreenElement)})}getCurrentTime(){var e=this.pauseCurrentTime||this.playerObject.playerInfo.currentTime;return this.pauseCurrentTime=null,e}play(){this.isReady&&(this.isVideoPlaying=!0,this.playerObject.playVideo())}pause(){this.isReady&&(this.isVideoPlaying=!1,this.playerObject.pauseVideo())}mute(){this.playerObject.mute()}async setVideoProviderData(){this.isReady&&(this.currentVideoID&&11===this.currentVideoID?.length?(this.playlistItem.thumbnail={url:"http://img.youtube.com/vi/"+this.playerObject.getVideoData().video_id+"/maxresdefault.jpg"},this.playlistItem.video_title=this.playerObject.getVideoData().title,this.playlistItem.duration=this.formatDuration(this.playerObject.getDuration())):(this.playlistItem.thumbnail={url:""},this.playlistItem.video_title="",this.playlistItem.duration=""))}}i.default=n},{"../video-playlist/player-base":76}],80:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=class{constructor(e){var{event:e,tab:t,playlist:i,video:n}=e;this.event={type:e.type||"",time:e.time||0,element:e.element,trigger:e.trigger||"",watchCount:e.watchCount||0},this.tab={name:t.name,index:t.index},this.playlist={name:i.name,currentItem:i.currentItem,amount:i.amount},this.video={provider:n.provider,url:n.url,title:n.title,duration:n.duration}}}},{}],81:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.handleVideosPanelScroll=function(e,t){t?(0<t.target.scrollTop?e.$tabsWrapper.addClass("top-shadow"):e.$tabsWrapper.removeClass("top-shadow"),t.target.offsetHeight+t.target.scrollTop>=t.target.scrollHeight?e.$tabsWrapper.removeClass("bottom-shadow"):e.$tabsWrapper.addClass("bottom-shadow")):e.$tabsItems[0].offsetHeight<e.$tabsItems[0].scrollHeight&&e.$tabsWrapper.addClass("bottom-shadow")}},{}],82:[function(e,t,i){function a(e,t,i){var n=new URLSearchParams(location.search);n.set("playlist",e),n.set("video",t[i-1].dataItemId),window.history.replaceState({},"",location.pathname+"?"+n)}Object.defineProperty(i,"__esModule",{value:!0}),i.handleURLParams=function(e,i){var n=new URLSearchParams(location.search),s=n.get("playlist");if(!s)return!1;if(s===e){let t=n.get("video");s=i.find(e=>t===e.dataItemId),n=s?s.dataTab:1;return n||a(e,i,1),n||!1}},i.setVideoParams=a},{}],83:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};e=(i=e("../utils/module"))&&i.__esModule?i:{default:i};let s=jQuery,n=e.default.extend({getDefaultSettings(){return{selectors:{widgetContainer:".elementor-widget-container",widgetWrapper:".raven-widget-wrapper",imageOverlay:".raven-video-thumbnail",videoWrapper:".raven-video",videoFrame:"iframe",videoCloseButton:".raven-video-close",videoPlayPreviewButton:".raven-video-play-button-preview",videoModal:".raven-modal",mejsPlayer:".raven-video-mejs-hosted"}}},getDefaultElements(){var e=this.getSettings("selectors"),t={$widgetContainer:this.$element.find(e.widgetContainer),$widgetWrapper:this.$element.find(e.widgetWrapper),$imageOverlay:this.$element.find(e.imageOverlay),$videoWrapper:this.$element.find(e.videoWrapper),$videoCloseButton:this.$element.find(e.videoCloseButton),$videoPlayPreviewButton:this.$element.find(e.videoPlayPreviewButton),$videoModal:this.$element.find(e.videoModal),$mejsPlayer:this.$element.find(e.mejsPlayer)};return t.$videoFrame=t.$videoWrapper.find(e.videoFrame),t},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),"yes"===this.getElementSettings("lazyload")&&this.handleLazyLoad(),"yes"===this.getElementSettings("muted_autoplay_preview")?this.handleMutedPreview():"yes"===this.getElementSettings("lazyload")?this.handleLazyLoad():this.handleMediaElement(),"yes"===this.getElementSettings("progress_bar")?s(".elementor-widget-raven-video.raven-player-style2 .mejs-time").css("display","contents"):(s(".elementor-widget-raven-video.raven-player-style3 .mejs-volume-button").css("width","100%"),s(".elementor-widget-raven-video.raven-player-style3 .mejs-volume-button button").css("float","right")),this.updateWidgetContainerMargin()},handleLazyLoad(){s(window).on("scroll",()=>{var e=this.elements.$widgetWrapper.offset().top,t=e+this.elements.$widgetWrapper.outerHeight(),i=s(window).scrollTop(),n=i+s(window).height();i<t&&e<n&&(t=(i=this.elements.$videoFrame).data("lazy-load"))&&(i.attr("src",t),this.handleMediaElement())})},handleStickyScroll(){let t=this.elements.$widgetWrapper.outerHeight(!0),i=this.elements.$widgetWrapper.offset().top;s(window).on("scroll",()=>{var e;this.elements.$widgetWrapper.hasClass("sticky-close")||(e=s(window).scrollTop(),i+t/2<e?(this.elements.$widgetContainer.css("height",t),this.elements.$widgetWrapper.addClass("sticky"),this.elements.$videoCloseButton.show()):(this.elements.$widgetWrapper.removeClass("sticky"),this.elements.$videoCloseButton.hide()))}),this.elements.$videoCloseButton.on("click",()=>{this.elements.$widgetWrapper.removeClass("sticky"),this.elements.$widgetWrapper.addClass("sticky-close"),this.elements.$videoCloseButton.hide()})},handleMutedPreview(){let n=this.elements.$videoFrame,e=("hosted"===this.getElementSettings("video_type")&&(n=this.elements.$mejsPlayer),[]),s=this;this.getElementSettings("fast_forward")&&e.push("skipback"),e.push("playpause"),this.getElementSettings("fast_forward")&&e.push("jumpforward"),this.getElementSettings("current_time")&&e.push("current"),this.getElementSettings("progress_bar")&&e.push("progress"),e.push("duration","volume"),this.getElementSettings("speed_options")&&e.push("speed"),this.getElementSettings("fullscreen")&&e.push("fullscreen"),n.mediaelementplayer({videoVolume:"horizontal",pauseOtherPlayers:!1,hideVolumeOnTouchDevices:!1,enableProgressTooltip:!1,alwaysShowControls:"yes"!==this.getElementSettings("auto_hide_controls"),autoRewind:"yes"===this.getElementSettings("rewind"),jumpForwardInterval:10,skipBackInterval:10,youtube:{controls:0,autoplay:1,start:this.getElementSettings("start_time"),end:this.getElementSettings("end_time"),mute:1,loop:"yes"===this.getElementSettings("youtube_loop")?1:0,playlist:"youtube"===this.getElementSettings("video_type")?this.YouTubeGetID(this.elements.$videoFrame.attr("src")):0,rel:0,modestbranding:"yes"===this.getElementSettings("hide_youtube_ui")?1:0,cc_load_policy:"yes"===this.getElementSettings("turn_on_captions_by_default")?1:0,origin:window.location.href},features:e,success:e=>{var t=s.elements.$widgetWrapper.find(".mejs-time-current")[0],i=new window.MutationObserver(e=>{e.forEach(e=>{var t;"attributes"===e.type&&(t=(e=s.elements.$widgetWrapper.find(".mejs-time-current")).attr("style"))&&(t=t.match(/scaleX\([0-9.]*\)/gi)[0].replace("scaleX(","").replace(")",""))&&e.css("width",100*t+"%")})});t&&i.observe(t,{attributes:!0,attributeFilter:["style"]}),"yes"===s.getElementSettings("show_device_frame")&&s.elements.$widgetWrapper.find(".mejs-overlay-play:not(.raven-video-play-button-preview)").addClass("hide-large-button"),e.addEventListener("play",()=>{"yes"!==s.getElementSettings("sticky_on_scroll")||s.getElementSettings("use_lightbox")||s.handleStickyScroll(),"yes"===s.getElementSettings("show_device_frame")&&s.elements.$widgetWrapper.find(".mejs-overlay-play:not(.raven-video-play-button-preview)").removeClass("hide-large-button")},!1),s.elements.$widgetWrapper.find(".mejs-controls").hide(),"vimeo"!==s.getElementSettings("video_type")&&"hosted"!==s.getElementSettings("video_type")||(n[0].player.play(),n[0].player.options.startVolume=0,n[0].player.setMuted(!0)),this.elements.$videoPlayPreviewButton.on("click",()=>{let e=s.getElementSettings("youtube_controls");"hosted"===s.getElementSettings("video_type")&&(e=s.getElementSettings("hosted_controls")),this.elements.$videoPlayPreviewButton.hide(),("yes"!==s.getElementSettings("youtube_mute")&&"youtube"===s.getElementSettings("video_type")||"yes"!==s.getElementSettings("vimeo_mute")&&"vimeo"===s.getElementSettings("video_type")||"yes"!==s.getElementSettings("hosted_muted")&&"hosted"===s.getElementSettings("video_type"))&&(n[0].player.setMuted(!1),n[0].player.setVolume(.5)),"yes"!==e&&"vimeo"!==s.getElementSettings("video_type")||s.elements.$widgetWrapper.find(".mejs-controls").show(),s.elements.$widgetWrapper.find(".raven-video-muted-overlay").hide(),n[0].player.play()})}})},handleMediaElement(){let n=this.elements.$videoFrame,e=("hosted"===this.getElementSettings("video_type")&&(n=this.elements.$mejsPlayer),[]),s=this;this.getElementSettings("fast_forward")&&e.push("skipback"),e.push("playpause"),this.getElementSettings("fast_forward")&&e.push("jumpforward"),this.getElementSettings("current_time")&&e.push("current"),this.getElementSettings("progress_bar")&&e.push("progress"),e.push("duration","volume"),this.getElementSettings("speed_options")&&e.push("speed"),this.getElementSettings("fullscreen")&&e.push("fullscreen"),n.mediaelementplayer({videoVolume:"horizontal",pauseOtherPlayers:!1,hideVolumeOnTouchDevices:!1,enableProgressTooltip:!1,alwaysShowControls:"yes"!==this.getElementSettings("auto_hide_controls"),autoRewind:"yes"===this.getElementSettings("rewind"),jumpForwardInterval:10,skipBackInterval:10,youtube:{controls:0,autoplay:"yes"===this.getElementSettings("youtube_autoplay")?1:0,start:this.getElementSettings("start_time"),end:this.getElementSettings("end_time"),mute:"yes"===this.getElementSettings("youtube_mute")||"yes"===this.getElementSettings("youtube_autoplay")?1:0,loop:"yes"===this.getElementSettings("youtube_loop")?1:0,playlist:"youtube"===this.getElementSettings("video_type")?this.YouTubeGetID(this.elements.$videoFrame.attr("src")):0,rel:0,modestbranding:"yes"===this.getElementSettings("hide_youtube_ui")?1:0,cc_load_policy:"yes"===this.getElementSettings("turn_on_captions_by_default")?1:0,origin:window.location.href},features:e,success:e=>{var t=s.elements.$widgetWrapper.find(".mejs-time-current")[0],i=new window.MutationObserver(e=>{e.forEach(e=>{var t;"attributes"===e.type&&(t=(e=s.elements.$widgetWrapper.find(".mejs-time-current")).attr("style"))&&(t=t.match(/scaleX\([0-9.]*\)/gi)[0].replace("scaleX(","").replace(")",""))&&e.css("width",100*t+"%")})});t&&i.observe(t,{attributes:!0,attributeFilter:["style"]}),e.addEventListener("play",()=>{"yes"!==this.getElementSettings("sticky_on_scroll")||s.getElementSettings("use_lightbox")||this.handleStickyScroll(),"yes"===this.getElementSettings("hosted_autoplay")&&s.elements.$widgetWrapper.find(".raven-video-mejs-hosted").css("visibility","visible")},!1),"yes"!==s.getElementSettings("large_play_button")?s.elements.$widgetWrapper.find(".mejs-overlay-button").hide():s.elements.$widgetWrapper.find(".mejs-overlay-play").show(),"vimeo"!==s.getElementSettings("video_type")||"yes"!==s.getElementSettings("vimeo_mute")&&"yes"!==s.getElementSettings("vimeo_autoplay")||(n[0].player.options.startVolume=0,n[0].player.setMuted(!0))}}),("yes"!==this.getElementSettings("youtube_controls")&&"youtube"===this.getElementSettings("video_type")||"yes"!==this.getElementSettings("hosted_controls")&&"hosted"===this.getElementSettings("video_type"))&&this.elements.$widgetWrapper.find(".mejs-controls").hide()},YouTubeGetID(e){if(!e)return 0;let t="";e=e.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);return t=void 0!==e[2]?(t=e[2].split(/[^0-9a-z_\-]/i))[0]:e},handleVideo(){let e=this.elements.$videoFrame;var t,i;"hosted"===this.getElementSettings("video_type")&&(e=this.elements.$mejsPlayer),this.getElementSettings("use_lightbox")?(t=this.elements.$videoWrapper.find(".raven-modal"),i=s(".jupiterx-main"),"none"===t.css("display")&&(t.show(),i.addClass("raven-lightbox-open"),this.$element.css("z-index",parseInt(this.$element.css("z-index"))+1))):(this.elements.$imageOverlay.remove(),e[0].player.play())},hideModal(e){e.stopPropagation();let t=this.elements.$videoFrame;"hosted"===this.getElementSettings("video_type")&&(t=this.elements.$mejsPlayer);var e=this.elements.$videoWrapper.find(".raven-modal"),i=s(".jupiterx-main");"block"===e.css("display")&&(e.hide(),i.removeClass("raven-lightbox-open"),this.$element.css("z-index",9999),t[0].player.pause())},updateWidgetContainerMargin(){var e;0<this.elements.$widgetContainer.closest(".elementor-container").length&&(this.elements.$widgetContainer.removeAttr("style"),e=this.elements.$widgetContainer.css("margin"))&&(this.$element.css("margin",e),this.elements.$widgetContainer.css("margin","0"))},bindEvents(){this.elements.$imageOverlay.on("click",this.handleVideo),this.elements.$videoModal.find(".close").on("click",this.hideModal)},onElementChange(e){"_margin"===e&&this.updateWidgetContainerMargin()}})},{"../utils/module":9}],84:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){new n({$element:e})};let n=((i=e("../utils/module"))&&i.__esModule?i:{default:i}).default.extend({getDefaultSettings(){return{selectors:{productsWrapper:".raven-wc-products-wrapper",productsContainer:".products",products:".products .product",paginationContainer:".woocommerce-pagination",loadMoreButton:".raven-load-more-button",postImageFit:".raven-image-fit img:not(.zoomImg)",preLoader:".raven-products-preloader",addToCartButton:'.add_to_cart_button, .button[class*="product_type_"]',categories:".posted_in",productTitle:".woocommerce-loop-product__title",productPrice:".price",ratingWrapper:".rating-wrapper",infinteLoadIndicator:".raven-infinite-load"},state:{isLoading:!1,paged:2}}},getDefaultElements(){var e=this.getSettings("selectors");return{$productsWrapper:this.$element.find(e.productsWrapper),$productsContainer:this.$element.find(e.productsContainer),$products:this.$element.find(e.products),$paginationContainer:this.$element.find(e.paginationContainer),$loadMoreButton:this.$element.find(e.loadMoreButton),$preLoader:this.$element.find(e.preLoader),$infinteLoadIndicator:this.$element.find(e.infinteLoadIndicator),$showedItems:0}},bindEvents(){var e,t,i=this.elements.$productsWrapper.data("settings").total_pages||0;"load_more"===this.getInstanceValue("pagination_type")&&1<i&&this.loadMore(),"infinite_load"===this.getInstanceValue("pagination_type")&&1<i&&(i=new URLSearchParams(window.location.search),e=null!==document.querySelector(".elementor-widget-sellkit-product-filter"),t=[...i.keys()].some(e=>!["sellkit_filters","page"].includes(e)),e&&"1"===i.get("sellkit_filters")&&t||this.infiniteLoad()),this.zoom(),this.flexslider(),this.wrapContentData(),"show"===this.getInstanceValue("wishlist")&&this.wishlist(),this.initialize(),"grid"===this.getInstanceValue("general_layout")&&(this.gridRun(),$(window).on("resize",()=>{setTimeout(()=>this.gridRun(),500)}));let n=this;document.addEventListener("sellkitpro:filterproducts:showproducts",()=>{n.refreshElements(),n.zoom(),n.flexslider(),n.wrapContentData(),n.initialize(),"grid"===this.getInstanceValue("general_layout")&&setTimeout(()=>this.gridRun(),100)}),window.addEventListener("resize",function(){"masonry"===n.getInstanceValue("general_layout")&&n.masonryRun(),"matrix"===n.getInstanceValue("general_layout")&&n.matrixRun(),"metro"===n.getInstanceValue("general_layout")&&n.metroRun()})},initialize(){let e=!0,t=((e=void 0!==this.getInstanceValue("swap_effect")&&this.getInstanceValue("swap_effect").includes("gallery")?!1:e)&&"masonry"===this.getInstanceValue("general_layout")&&this.masonryRun(),this);e&&"matrix"===this.getInstanceValue("general_layout")&&this.elements.$productsWrapper.imagesLoaded().progress(()=>{t.matrixRun()}),e&&"metro"===this.getInstanceValue("general_layout")&&this.elements.$productsWrapper.imagesLoaded().progress(()=>{t.metroRun()}),this.getInstanceValue("load_effect")&&this.handleAnitmation(),objectFitPolyfill(this.$element.find(this.getSettings("selectors.postImageFit")))},initializeOnFetch(){let e=!0,t=((e=void 0!==this.getInstanceValue("swap_effect")&&this.getInstanceValue("swap_effect").includes("gallery")?!1:e)&&"masonry"===this.getInstanceValue("general_layout")&&this.masonryRun(),this);e&&"matrix"===this.getInstanceValue("general_layout")&&this.elements.$productsWrapper.imagesLoaded().progress(()=>{t.matrixRun()}),e&&"metro"===this.getInstanceValue("general_layout")&&this.elements.$productsWrapper.imagesLoaded().progress(()=>{t.metroRun()}),!["metro","matrix"].includes(this.getInstanceValue("general_layout"))&&this.getInstanceValue("load_effect")&&this.handleAnitmation(),objectFitPolyfill(this.$element.find(this.getSettings("selectors.postImageFit")))},onElementChange(e){"metro_matrix_rows_gap"===e&&("metro"===this.getInstanceValue("general_layout")&&this.metroRun(),"matrix"===this.getInstanceValue("general_layout"))&&this.matrixRun(),"metro_matrix_large_aspect_ratio"===e&&setTimeout(()=>{"metro"===this.getInstanceValue("general_layout")&&this.metroRun(),"matrix"===this.getInstanceValue("general_layout")&&this.matrixRun()},300),"box_rows_gap"!==e&&"box_columns_gap"!==e&&"stroke_width"!==e||"masonry"===this.getInstanceValue("general_layout")&&setTimeout(()=>{this.masonryRun()},300)},handleProductsOrder(e){return"metro"===this.getInstanceValue("general_layout")&&e[0]?.parentNode?.parentNode.classList.contains("raven-product-full-width")?[...e.slice(1,3).reverse(),e[0],...e.slice(3,e.length)]:e[0]?.parentNode?.parentNode.classList.contains("raven-product-full-width")?[e[0],...e.slice(1,e.length).reverse()]:"matrix"===this.getInstanceValue("general_layout")?[...e]:[...e.reverse()]},createAnimationObserver(t,i,e,n,s){let a=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting&&!i.classList.contains("raven-product-loaded")){let e=0<t.elements.$showedItems?n-t.elements.$showedItems:n;"slide-right"===s&&(e>t.elements.$showedItems&&(e-=t.elements.$showedItems),t.elements.$showedItems>e)&&(e=t.elements.$showedItems-e),setTimeout(()=>{i.classList.add("raven-product-loaded"),t.elements.$showedItems=n,a.unobserve(i)},100*e)}})},e);a.observe(i)},handleAnitmation(){let o=[...this.elements.$productsWrapper[0].querySelectorAll(".jupiterx-product-container")],r=this.getInstanceValue("load_effect"),l=this;this.elements.$productsWrapper.imagesLoaded().done(()=>{let n=0;if("slide-right"===r){this.setColumnsCount();var i=this.getSettings(),e=parseInt(o.length/i.columnsCount),t=o.length%i.columnsCount;if(o.length/i.columnsCount<=1)o=[...this.handleProductsOrder(o)];else{var s=[],a=[];for(let t=1;t<=e;++t){a=[];for(let e=s.length;e<t*i.columnsCount;++e)a.push(o[e]);s.push(...this.handleProductsOrder(a))}0<t&&s.push(...o.slice(-t).reverse()),o=s}}o.forEach((e,t)=>{var i;r&&!document.body.classList.contains("elementor-editor-active")||e.classList.contains("raven-product-loaded")||(++n,setTimeout(()=>{e.classList.add("raven-product-loaded")},200+100*n)),r&&(i={threshold:.4},l.createAnimationObserver(l,e,i,t,r))})})},setColumnsCount(){var e=elementorFrontend.getCurrentDeviceMode();let t="desktop"===e?"columns_custom":"columns_custom"+e,i=("metro"!==this.getInstanceValue("general_layout")&&"matrix"!==this.getInstanceValue("general_layout")||(t="number_of_products"),this.getInstanceValue(t));this.getInstanceValue(t)||(i=1),this.setSettings("columnsCount",parseInt(i))},zoom(){"zoom_hover"===this.getInstanceValue("swap_effect")&&this.elements.$productsWrapper.find(".jupiterx-wc-loop-product-image").zoom()},flexslider(){if(void 0!==this.getInstanceValue("swap_effect")&&this.getInstanceValue("swap_effect").includes("gallery")){let e=this,t=!1,i=!1;"gallery_arrows"===this.getInstanceValue("swap_effect")&&(i=!0),"gallery_pagination"===this.getInstanceValue("swap_effect")&&(t=!0),e.elements.$productsWrapper.find(".jupiterx-wc-loop-product-image").flexslider({selector:".raven-swap-effect-gallery-slides > li",animation:"slide",slideshow:!1,controlNav:t,directionNav:i,prevText:'<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 7.2 12" style="enable-background:new 0 0 7.2 12;" xml:space="preserve"><path class="st0" d="M2.4,6l4.5-4.3c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0l-5.2,5C0.1,5.5,0,5.7,0,6s0.1,0.5,0.3,0.7l5.2,5\tC5.7,11.9,6,12,6.2,12c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L2.4,6z"></path></svg>',nextText:'<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 7.2 12" style="enable-background:new 0 0 7.2 12;" xml:space="preserve"><path class="st0" d="M4.8,6l-4.5,4.3c-0.4,0.4-0.4,1,0,1.4c0.4,0.4,1,0.4,1.4,0l5.2-5C7.1,6.5,7.2,6.3,7.2,6S7.1,5.5,6.9,5.3l-5.2-5C1.5,0.1,1.2,0,1,0C0.7,0,0.5,0.1,0.3,0.3c-0.4,0.4-0.4,1,0,1.4L4.8,6z"></path></svg>',init(){e.elements.$productsWrapper.addClass("raven-swap-effect-gallery-loaded")},start(){"masonry"===e.getInstanceValue("general_layout")&&e.masonryRun(),"matrix"===e.getInstanceValue("general_layout")&&e.matrixRun(),"metro"===e.getInstanceValue("general_layout")&&e.metroRun()}})}},loadMore(){let t=this;t.elements.$loadMoreButton.on("click",e=>{e.preventDefault(),t.fetch()})},createObserver(e,i,n){if(!(e.length<1)){let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(i.fetch(),t.disconnect())})},n);t.observe(e[0])}},infiniteLoad(){let e=this;e.elements.$paginationContainer.length||e.elements.$productsContainer.imagesLoaded().always(()=>{e.createObserver(e.elements.$infinteLoadIndicator,e,{threshold:1})})},fetch(){let n=this;var e,t;n.getSettings("state.isLoading")||(n.setSettings("state.isLoading",!0),e={post_id:elementorFrontend.config.post.id,model_id:this.getID(),"product-page":n.getSettings("state.paged")},(t=jQuery("[data-elementor-type=product-archive], [data-elementor-type=jet-woo-builder-archive]")).data("elementor-id")&&(e.raven_archive_query=JSON.stringify(jQuery("[data-raven-archive-query]").data("raven-archive-query")),e.post_id=t.data("elementor-id")),null!==(t=new URLSearchParams(window.location.search)).get("orderby")&&t.get("orderby").length&&(e.orderby=t.get("orderby")),n.elements.$preLoader&&n.elements.$preLoader[0].classList.add("active-preloader"),wp.ajax.send("raven_products_query",{type:"GET",data:e,success(e){n.setSettings("state.paged",n.getSettings("state.paged")+1),n.elements.$productsContainer.append(e.products);let t=n.elements.$productsContainer.siblings(".woocommerce-result-count");(t=0===t.length?n.elements.$productsContainer.siblings(".raven-products-ordering-result-wrapper").find(".woocommerce-result-count"):t).html(e.result_count),"load_more"===n.getInstanceValue("pagination_type")&&e.query_results.current_page===e.query_results.total_pages&&n.elements.$loadMoreButton.hide();var i=n.elements.$productsWrapper.data("settings").total_pages||0;"infinite_load"===n.getInstanceValue("pagination_type")&&e.query_results.current_page!==e.query_results.total_pages&&1<i&&n.infiniteLoad(),n.zoom(),n.flexslider(),n.initializeOnFetch(),n.wrapContentData()},error(e){},complete(){n.setSettings("state.isLoading",!1),n.elements.$preLoader&&n.elements.$preLoader[0].classList.remove("active-preloader")}}))},wishlist(){$(document).on("click",".jupiterx-wishlist",function(e){e.preventDefault();let t=$(this),i="add_to_wishlist";var e={},n=t.data("state"),s=t.data("productId"),a=t.data("nonceAdd"),o=t.data("nonceRemove");e.nonce=a,e.add_to_wishlist=s,e.remove_from_wishlist=s,"remove"===n&&(i="remove_from_wishlist",e.nonce=o),wp.ajax.send(i,{type:"GET",data:e}).always(e=>{"add_to_wishlist"===i&&"true"===e.result&&(t.addClass("jupiterx-wishlist-remove"),t.data("state","remove")),"remove_from_wishlist"===i&&0===e.fragments.length&&(t.removeClass("jupiterx-wishlist-remove"),t.data("state","add"))})})},setGapSize(){var e=elementorFrontend.getCurrentDeviceMode();let t="desktop"===e?"metro_matrix_rows_gap":"metro_matrix_rows_gap_"+e;this.setSettings("gapSize",parseInt(this.getInstanceValue(t)?.size))},gridRun(){var e=this.elements.$productsContainer[0]?.clientHeight,t=this.$element[0]?.clientHeight;elementorFrontend?.config?.experimentalFeatures?.container&&(this.$element[0].style.minHeight=e<=t?"unset":this.elements.$productsContainer[0]?.clientHeight+"px")},masonryRun(){var e=!document.body.classList.contains("rtl");this.elements.$productsContainer.data("isotope")&&this.elements.$productsContainer.isotope("reloadItems").isotope(),this.elements.$productsContainer.isotope({itemSelector:".product",masonry:{layoutMode:"fitRows"},transitionDuration:0,sortBy:"original-order",isOriginLeft:e})},matrixRun(){this.setGapSize();let e=this,t=this.getSettings().gapSize?this.getSettings().gapSize:0,n=elementorFrontend.getCurrentDeviceMode(),i=!document.body.classList.contains("rtl"),s=(e.elements.$productsContainer.data("isotope")&&e.elements.$productsContainer.isotope("reloadItems").isotope(),Math.floor((e.elements.$productsContainer.parent().width()+t)/3)),a=3*s,o=("mobile"===n&&(s=3*s-t,a=s),0);e.elements.$productsContainer.find("li.product").each((e,t)=>{let i=s;0!==e&&o+4!==e||(i=a,o=e,t.classList.contains("raven-product-full-width"))||t.classList.add("raven-product-full-width"),i&&(t.style.width=i+"px"),"mobile"===n&&(t.style.paddingRight=0)}),e.elements.$productsContainer.find("li.product").addClass("matrix-loaded"),e.elements.$productsContainer.isotope({itemSelector:"li.product",layoutMode:"packery",packery:{isFitWidth:!0},percentPosition:!0,sortBy:"original-order",transitionDuration:0,isOriginLeft:i}),e.elements.$productsContainer.isotope("once","arrangeComplete",()=>{setTimeout(()=>e.handleAnitmation(),100)})},metroRun(){this.setGapSize();let s=this,e=this.getSettings().gapSize?this.getSettings().gapSize:0,t=elementorFrontend.getCurrentDeviceMode(),i=!document.body.classList.contains("rtl"),a=(s.elements.$productsContainer.data("isotope")&&s.elements.$productsContainer.isotope("reloadItems").isotope(),Math.floor((s.elements.$productsContainer.parent().width()+e)/4)),o=2*a,r=("tablet"===t&&(a*=2,o=2*a),"mobile"===t&&(a*=4,o=a),0);s.elements.$productsContainer.find("li.product").each((e,t)=>{let i=a,n=a;0!==e&&r+3!==e||(i=o,n=o,r=e,t.classList.contains("raven-product-full-width"))||t.classList.add("raven-product-full-width"),i&&(t.style.width=i+"px"),"overlay"===s.getInstanceValue("metro_matrix_content_layout")&&(t.style.height=n+"px")}),s.elements.$productsContainer.find("li.product").addClass("metro-loaded"),s.elements.$productsContainer.isotope({itemSelector:"li.product",layoutMode:"packery",percentPosition:!0,sortBy:"original-order",transitionDuration:0,isOriginLeft:i}),s.elements.$productsContainer.isotope("once","arrangeComplete",()=>{setTimeout(()=>s.handleAnitmation(),100)})},wrapContentData(){var e=this.getSettings("selectors");let i=[e.productPrice,e.productTitle,e.categories,e.ratingWrapper];var t=this.getInstanceValue("pc_atc_button_location"),n=this.getInstanceValue("pc_atc_button_location_overlay");(t&&"outside"===t||n&&"outside"===n)&&i.push(e.addToCartButton),this.elements.$productsContainer.find(".product").each((e,t)=>{i.forEach(e=>{e=$(t).find(e)[0];e&&e.classList.add("raven-product-item-content")}),t.classList.contains("has-data-wrapper")||$(t).find(".raven-product-item-content").wrapAll('<div class="raven-product-data" />'),t.classList.add("has-data-wrapper")})},refreshElements(){var e=this.getSettings("selectors");this.elements.$productsWrapper=this.$element.find(e.productsWrapper),this.elements.$productsContainer=this.$element.find(e.productsContainer),this.elements.$products=this.$element.find(e.products),this.elements.$paginationContainer=this.$element.find(e.paginationContainer),this.elements.$loadMoreButton=this.$element.find(e.loadMoreButton),this.elements.$preLoader=this.$element.find(e.preLoader)}})},{"../utils/module":9}],85:[function(e,t,i){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],86:[function(t,i,e){function w(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function h(e){return e instanceof w(e).Element||e instanceof Element}function l(e){return e instanceof w(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof w(e).ShadowRoot||e instanceof ShadowRoot)}Object.defineProperty(e,"__esModule",{value:!0});var k=Math.max,I=Math.min,b=Math.round;function o(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function S(){return!/^((?!chrome|android).)*safari/i.test(o())}function u(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,a=1;t&&l(e)&&(s=0<e.offsetWidth&&b(n.width)/e.offsetWidth||1,a=0<e.offsetHeight&&b(n.height)/e.offsetHeight||1);t=(h(e)?w(e):window).visualViewport,e=!S()&&i,i=(n.left+(e&&t?t.offsetLeft:0))/s,e=(n.top+(e&&t?t.offsetTop:0))/a,t=n.width/s,s=n.height/a;return{width:t,height:s,top:e,right:i+t,bottom:e+s,left:i,x:i,y:e}}function p(e){e=w(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function d(e){return e?(e.nodeName||"").toLowerCase():null}function _(e){return((h(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return u(_(e)).left+p(e).scrollLeft}function x(e){return w(e).getComputedStyle(e)}function c(e){var e=x(e),t=e.overflow;return/auto|scroll|overlay|hidden/.test(t+e.overflowY+e.overflowX)}function $(e,t,i){void 0===i&&(i=!1);var n=l(t),s=l(t)&&(o=(s=t).getBoundingClientRect(),a=b(o.width)/s.offsetWidth||1,o=b(o.height)/s.offsetHeight||1,1!==a||1!==o),a=_(t),o=u(e,s,i),e={scrollLeft:0,scrollTop:0},r={x:0,y:0};return!n&&i||("body"===d(t)&&!c(a)||(e=(n=t)!==w(n)&&l(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:p(n)),l(t)?((r=u(t,!0)).x+=t.clientLeft,r.y+=t.clientTop):a&&(r.x=m(a))),{x:o.left+e.scrollLeft-r.x,y:o.top+e.scrollTop-r.y,width:o.width,height:o.height}}function E(e){var t=u(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function r(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||_(e)}function g(e,t){void 0===t&&(t=[]);var i=function e(t){return 0<=["html","body","#document"].indexOf(d(t))?t.ownerDocument.body:l(t)&&c(t)?t:e(r(t))}(e),e=i===(null==(e=e.ownerDocument)?void 0:e.body),n=w(i),n=e?[n].concat(n.visualViewport||[],c(i)?i:[]):i,i=t.concat(n);return e?i:i.concat(g(r(n)))}function s(e){return l(e)&&"fixed"!==x(e).position?e.offsetParent:null}function P(e){for(var t,i=w(e),n=s(e);n&&(t=n,0<=["table","td","th"].indexOf(d(t)))&&"static"===x(n).position;)n=s(n);return(!n||"html"!==d(n)&&("body"!==d(n)||"static"!==x(n).position))&&(n||(e=>{var t=/firefox/i.test(o()),i=/Trident/i.test(o());if(!i||!l(e)||"fixed"!==x(e).position){var n=r(e);for(a(n)&&(n=n.host);l(n)&&["html","body"].indexOf(d(n))<0;){var s=x(n);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return n;n=n.parentNode}}return null})(e))||i}var j="top",T="bottom",L="right",M="left",A="auto",O=[j,T,L,M],D="start",C="end",z="clippingParents",N="viewport",f="popper",H="reference",q=O.reduce(function(e,t){return e.concat([t+"-"+D,t+"-"+C])},[]),U=[].concat(O,[A]).reduce(function(e,t){return e.concat([t,t+"-"+D,t+"-"+C])},[]),G=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Q(e){var i=new Map,n=new Set,s=[];return e.forEach(function(e){i.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||!function t(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){n.has(e)||(e=i.get(e))&&t(e)}),s.push(e)}(e)}),s}function X(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&a(i)){var n=t;do{if(n&&e.isSameNode(n))return!0}while(n=n.parentNode||n.host)}return!1}function v(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y(e,t,i){return t===N?v((s=i,o=w(n=e),r=_(n),o=o.visualViewport,l=r.clientWidth,r=r.clientHeight,c=d=0,o&&(l=o.width,r=o.height,(a=S())||!a&&"fixed"===s)&&(d=o.offsetLeft,c=o.offsetTop),{width:l,height:r,x:d+m(n),y:c})):h(t)?((s=u(a=t,!1,"fixed"===(s=i))).top=s.top+a.clientTop,s.left=s.left+a.clientLeft,s.bottom=s.top+a.clientHeight,s.right=s.left+a.clientWidth,s.width=a.clientWidth,s.height=a.clientHeight,s.x=s.left,s.y=s.top,s):v((o=_(e),l=_(o),r=p(o),d=null==(d=o.ownerDocument)?void 0:d.body,n=k(l.scrollWidth,l.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),c=k(l.scrollHeight,l.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),o=-r.scrollLeft+m(o),r=-r.scrollTop,"rtl"===x(d||l).direction&&(o+=k(l.clientWidth,d?d.clientWidth:0)-n),{width:n,height:c,x:o,y:r}));var n,s,a,o,r,l,d,c}function K(i,e,t,n){var s,a="clippingParents"===e?(o=g(r(a=i)),h(s=0<=["absolute","fixed"].indexOf(x(a).position)&&l(a)?P(a):a)?o.filter(function(e){return h(e)&&X(e,s)&&"body"!==d(e)}):[]):[].concat(e),o=[].concat(a,[t]),e=o[0],t=o.reduce(function(e,t){t=Y(i,t,n);return e.top=k(t.top,e.top),e.right=I(t.right,e.right),e.bottom=I(t.bottom,e.bottom),e.left=k(t.left,e.left),e},Y(i,e,n));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function F(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function J(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function Z(e){var t,i=e.reference,n=e.element,e=e.placement,s=e?F(e):null,e=e?V(e):null,a=i.x+i.width/2-n.width/2,o=i.y+i.height/2-n.height/2;switch(s){case j:t={x:a,y:i.y-n.height};break;case T:t={x:a,y:i.y+i.height};break;case L:t={x:i.x+i.width,y:o};break;case M:t={x:i.x-n.width,y:o};break;default:t={x:i.x,y:i.y}}var r=s?J(s):null;if(null!=r){var l="y"===r?"height":"width";switch(e){case D:t[r]=t[r]-(i[l]/2-n[l]/2);break;case C:t[r]=t[r]+(i[l]/2-n[l]/2)}}return t}function ee(){return{top:0,right:0,bottom:0,left:0}}function te(e){return Object.assign({},ee(),e)}function ie(i,e){return e.reduce(function(e,t){return e[t]=i,e},{})}function B(e,t){var n,t=t=void 0===t?{}:t,i=t.placement,i=void 0===i?e.placement:i,s=t.strategy,s=void 0===s?e.strategy:s,a=t.boundary,a=void 0===a?z:a,o=t.rootBoundary,o=void 0===o?N:o,r=t.elementContext,r=void 0===r?f:r,l=t.altBoundary,l=void 0!==l&&l,t=t.padding,t=void 0===t?0:t,t=te("number"!=typeof t?t:ie(t,O)),d=e.rects.popper,l=e.elements[l?r===f?H:f:r],l=K(h(l)?l:l.contextElement||_(e.elements.popper),a,o,s),a=u(e.elements.reference),o=Z({reference:a,element:d,strategy:"absolute",placement:i}),s=v(Object.assign({},d,o)),d=r===f?s:a,c={top:l.top-d.top+t.top,bottom:d.bottom-l.bottom+t.bottom,left:l.left-d.left+t.left,right:d.right-l.right+t.right},o=e.modifiersData.offset;return r===f&&o&&(n=o[i],Object.keys(c).forEach(function(e){var t=0<=[L,T].indexOf(e)?1:-1,i=0<=[j,T].indexOf(e)?"y":"x";c[e]+=n[i]*t})),c}var ne={placement:"bottom",modifiers:[],strategy:"absolute"};function se(){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 n(e){var e=e=void 0===e?{}:e,t=e.defaultModifiers,u=void 0===t?[]:t,t=e.defaultOptions,p=void 0===t?ne:t;return function(n,s,t){void 0===t&&(t=p);var i,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ne,p),modifiersData:{},elements:{reference:n,popper:s},attributes:{},styles:{}},r=[],l=!1,d={state:o,setOptions:function(e){var i,t,e="function"==typeof e?e(o.options):e,e=(c(),o.options=Object.assign({},p,o.options,e),o.scrollParents={reference:h(n)?g(n):n.contextElement?g(n.contextElement):[],popper:g(s)},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=Q(e),G.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&&(e=e({state:o,name:t,instance:d,options:void 0===i?{}:i}),r.push(e||function(){}))}),d.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,e=e.popper;if(se(t,e)){o.rects={reference:$(t,P(e),"fixed"===o.options.strategy),popper:E(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,n,s,a=0;a<o.orderedModifiers.length;a++)!0===o.reset?(o.reset=!1,a=-1):(n=(i=o.orderedModifiers[a]).fn,s=i.options,"function"==typeof n&&(o=n({state:o,options:void 0===s?{}:s,name:i.name,instance:d})||o))}}},update:(i=function(){return new Promise(function(e){d.forceUpdate(),e(o)})},function(){return a=a||new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(i())})})}),destroy:function(){c(),l=!0}};return se(n,s)&&d.setOptions(t).then(function(e){!l&&t.onFirstUpdate&&t.onFirstUpdate(e)}),d;function c(){r.forEach(function(e){return e()}),r=[]}}}var y={passive:!0};var ae={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=(e=e.options).scroll,s=void 0===n||n,a=void 0===(n=e.resize)||n,o=w(t.elements.popper),r=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&r.forEach(function(e){e.addEventListener("scroll",i.update,y)}),a&&o.addEventListener("resize",i.update,y),function(){s&&r.forEach(function(e){e.removeEventListener("scroll",i.update,y)}),a&&o.removeEventListener("resize",i.update,y)}},data:{}};var oe={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(e){var t,i=e.popper,n=e.popperRect,s=e.placement,a=e.variation,o=e.offsets,r=e.position,l=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,e=e.isFixed,u=o.x,u=void 0===u?0:u,p=o.y,p=void 0===p?0:p,h="function"==typeof c?c({x:u,y:p}):{x:u,y:p},h=(u=h.x,p=h.y,o.hasOwnProperty("x")),o=o.hasOwnProperty("y"),m=M,g=j,f=window,v=(d&&(v="clientHeight",t="clientWidth",(y=P(i))===w(i)&&"static"!==x(y=_(i)).position&&"absolute"===r&&(v="scrollHeight",t="scrollWidth"),s!==j&&(s!==M&&s!==L||a!==C)||(g=T,p=(p-((e&&y===f&&f.visualViewport?f.visualViewport.height:y[v])-n.height))*(l?1:-1)),s!==M&&(s!==j&&s!==T||a!==C)||(m=L,u=(u-((e&&y===f&&f.visualViewport?f.visualViewport.width:y[t])-n.width))*(l?1:-1))),Object.assign({position:r},d&&re)),y=!0===c?(s={x:u,y:p},a=w(i),e=s.x,s=s.y,a=a.devicePixelRatio||1,{x:b(e*a)/a||0,y:b(s*a)/a||0}):{x:u,y:p};return u=y.x,p=y.y,l?Object.assign({},v,((t={})[g]=o?"0":"",t[m]=h?"0":"",t.transform=(f.devicePixelRatio||1)<=1?"translate("+u+"px, "+p+"px)":"translate3d("+u+"px, "+p+"px, 0)",t)):Object.assign({},v,((n={})[g]=o?p+"px":"",n[m]=h?u+"px":"",n.transform="",n))}var de={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=void 0===(i=(e=e.options).gpuAcceleration)||i,n=void 0===(n=e.adaptive)||n,e=void 0===(e=e.roundOffsets)||e,i={placement:F(t.placement),variation:V(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,le(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,le(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ce={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var s=e.state;Object.keys(s.elements).forEach(function(e){var t=s.styles[e]||{},i=s.attributes[e]||{},n=s.elements[e];l(n)&&d(n)&&(Object.assign(n.style,t),Object.keys(i).forEach(function(e){var t=i[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var n=e.state,s={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,s.popper),n.styles=s,n.elements.arrow&&Object.assign(n.elements.arrow.style,s.arrow),function(){Object.keys(n.elements).forEach(function(e){var t=n.elements[e],i=n.attributes[e]||{},e=Object.keys((n.styles.hasOwnProperty(e)?n.styles:s)[e]).reduce(function(e,t){return e[t]="",e},{});l(t)&&d(t)&&(Object.assign(t.style,e),Object.keys(i).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};var ue={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var o=e.state,t=e.name,r=void 0===(e=e.options.offset)?[0,0]:e,e=U.reduce(function(e,t){var i,n,s,a;return e[t]=(t=t,i=o.rects,n=r,s=F(t),a=0<=[M,j].indexOf(s)?-1:1,t=(i="function"==typeof n?n(Object.assign({},i,{placement:t})):n)[0]||0,n=(i[1]||0)*a,0<=[M,L].indexOf(s)?{x:n,y:t}:{x:t,y:n}),e},{}),i=(n=e[o.placement]).x,n=n.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=i,o.modifiersData.popperOffsets.y+=n),o.modifiersData[t]=e}},pe={left:"right",right:"left",bottom:"top",top:"bottom"};function R(e){return e.replace(/left|right|bottom|top/g,function(e){return pe[e]})}var he={start:"end",end:"start"};function me(e){return e.replace(/start|end/g,function(e){return he[e]})}var ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var u=e.state,t=e.options,e=e.name;if(!u.modifiersData[e]._skip){for(var i=t.mainAxis,n=void 0===i||i,i=t.altAxis,s=void 0===i||i,i=t.fallbackPlacements,p=t.padding,h=t.boundary,m=t.rootBoundary,a=t.altBoundary,o=t.flipVariations,g=void 0===o||o,f=t.allowedAutoPlacements,o=u.options.placement,t=F(o),i=i||(t===o||!g?[R(o)]:F(i=o)===A?[]:(t=R(i),[me(i),t,me(t)])),r=[o].concat(i).reduce(function(e,t){return e.concat(F(t)===A?(i=u,n=(e=e=void 0===(e={placement:t,boundary:h,rootBoundary:m,padding:p,flipVariations:g,allowedAutoPlacements:f})?{}:e).placement,s=e.boundary,a=e.rootBoundary,o=e.padding,r=e.flipVariations,l=void 0===(e=e.allowedAutoPlacements)?U:e,d=V(n),e=d?r?q:q.filter(function(e){return V(e)===d}):O,c=(n=0===(n=e.filter(function(e){return 0<=l.indexOf(e)})).length?e:n).reduce(function(e,t){return e[t]=B(i,{placement:t,boundary:s,rootBoundary:a,padding:o})[F(t)],e},{}),Object.keys(c).sort(function(e,t){return c[e]-c[t]})):t);var i,n,s,a,o,r,l,d,c},[]),l=u.rects.reference,d=u.rects.popper,c=new Map,v=!0,y=r[0],w=0;w<r.length;w++){var b=r[w],_=F(b),x=V(b)===D,C=0<=[j,T].indexOf(_),S=C?"width":"height",$=B(u,{placement:b,boundary:h,rootBoundary:m,altBoundary:a,padding:p}),C=C?x?L:M:x?T:j,x=(l[S]>d[S]&&(C=R(C)),R(C)),S=[];if(n&&S.push($[_]<=0),s&&S.push($[C]<=0,$[x]<=0),S.every(function(e){return e})){y=b,v=!1;break}c.set(b,S)}if(v)for(var k=g?3:1;0<k;k--)if("break"===(t=>{var e=r.find(function(e){e=c.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return y=e,"break"})(k))break;u.placement!==y&&(u.modifiersData[e]._skip=!0,u.placement=y,u.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function W(e,t,i){return k(e,I(t,i))}var fe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,i,n,s,a,o,r,l,d,c=e.state,u=e.options,e=e.name,p=void 0===(p=u.mainAxis)||p,h=void 0!==(h=u.altAxis)&&h,m=void 0===(m=u.tether)||m,g=void 0===(g=u.tetherOffset)?0:g,u=B(c,{boundary:u.boundary,rootBoundary:u.rootBoundary,padding:u.padding,altBoundary:u.altBoundary}),f=F(c.placement),v=V(c.placement),y=!v,w=J(f),b="x"===w?"y":"x",_=c.modifiersData.popperOffsets,x=c.rects.reference,C=c.rects.popper,g="number"==typeof(g="function"==typeof g?g(Object.assign({},c.rects,{placement:c.placement})):g)?{mainAxis:g,altAxis:g}:Object.assign({mainAxis:0,altAxis:0},g),S=c.modifiersData.offset?c.modifiersData.offset[c.placement]:null,$={x:0,y:0};_&&(p&&(p="y"===w?"height":"width",o=(r=_[w])+u[i="y"===w?j:M],l=r-u[d="y"===w?T:L],t=m?-C[p]/2:0,s=(v===D?x:C)[p],v=v===D?-C[p]:-x[p],a=c.elements.arrow,a=m&&a?E(a):{width:0,height:0},i=(n=c.modifiersData["arrow#persistent"]?c.modifiersData["arrow#persistent"].padding:ee())[i],n=n[d],d=W(0,x[p],a[p]),a=y?x[p]/2-t-d-i-g.mainAxis:s-d-i-g.mainAxis,s=y?-x[p]/2+t+d+n+g.mainAxis:v+d+n+g.mainAxis,y=(i=c.elements.arrow&&P(c.elements.arrow))?"y"===w?i.clientTop||0:i.clientLeft||0:0,v=r+s-(t=null!=(p=null==S?void 0:S[w])?p:0),d=W(m?I(o,r+a-t-y):o,r,m?k(l,v):l),_[w]=d,$[w]=d-r),h&&(n="y"==b?"height":"width",s=(i=_[b])+u["x"===w?j:M],p=i-u["x"===w?T:L],a=-1!==[j,M].indexOf(f),y=null!=(t=null==S?void 0:S[b])?t:0,o=a?s:i-x[n]-C[n]-y+g.altAxis,v=a?i+x[n]+C[n]-y-g.altAxis:p,r=m&&a?(l=W(l=o,i,d=v),d<l?d:l):W(m?o:s,i,m?v:p),_[b]=r,$[b]=r-i),c.modifiersData[e]=$)},requiresIfExists:["offset"]};var ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n,s,a=e.state,o=e.name,e=e.options,r=a.elements.arrow,l=a.modifiersData.popperOffsets,d=J(c=F(a.placement)),c=0<=[M,L].indexOf(c)?"height":"width";r&&l&&(e=e.padding,i=a,i=te("number"!=typeof(e="function"==typeof e?e(Object.assign({},i.rects,{placement:i.placement})):e)?e:ie(e,O)),e=E(r),s="y"===d?j:M,n="y"===d?T:L,t=a.rects.reference[c]+a.rects.reference[d]-l[d]-a.rects.popper[c],l=l[d]-a.rects.reference[d],r=(r=P(r))?"y"===d?r.clientHeight||0:r.clientWidth||0:0,s=i[s],i=r-e[c]-i[n],s=W(s,n=r/2-e[c]/2+(t/2-l/2),i),a.modifiersData[o]=((r={})[d]=s,r.centerOffset=s-n,r))},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)))&&X(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(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 we(t){return[j,L,T,M].some(function(e){return 0<=t[e]})}var be={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,e=e.name,i=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,a=B(t,{elementContext:"reference"}),o=B(t,{altBoundary:!0}),a=ye(a,i),i=ye(o,n,s),o=we(a),n=we(i);t.modifiersData[e]={referenceClippingOffsets:a,popperEscapeOffsets:i,isReferenceHidden:o,hasPopperEscaped:n},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":o,"data-popper-escaped":n})}},_e=n({defaultModifiers:[ae,oe,de,ce]}),xe=[ae,oe,de,ce,ue,ge,fe,ve,be],Ce=n({defaultModifiers:xe});e.applyStyles=ce,e.arrow=ve,e.computeStyles=de,e.createPopper=Ce,e.createPopperLite=_e,e.defaultModifiers=xe,e.detectOverflow=B,e.eventListeners=ae,e.flip=ge,e.hide=be,e.offset=ue,e.popperGenerator=n,e.popperOffsets=oe,e.preventOverflow=fe},{}],87:[function(e,t,i){function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var s=n(e("@tannin/postfix")),a=n(e("@tannin/evaluate"));t.exports=function(e){var t=s(e);return function(e){return a(t,e)}}},{"@tannin/evaluate":88,"@tannin/postfix":90}],88:[function(e,t,i){var d={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return t<e},">=":function(e,t){return t<=e},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,i){if(e)throw t;return i}};t.exports=function(e,t){for(var i,n,s,a,o,r=[],l=0;l<e.length;l++){if(s=d[a=e[l]]){for(i=s.length,n=Array(i);i--;)n[i]=r.pop();try{o=s.apply(null,n)}catch(e){return e}}else o=t.hasOwnProperty(a)?t[a]:+a;r.push(o)}return r[0]}},{}],89:[function(e,t,i){var n=(e=e("@tannin/compile"))&&"object"==typeof e&&"default"in e?e.default:e;t.exports=function(e){var t=n(e);return function(e){return+t({n:e})}}},{"@tannin/compile":87}],90:[function(e,t,i){var r,l,d,c;r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},l=["(","?"],d={")":["("],":":["?","?:"]},c=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/,t.exports=function(e){for(var t,i,n,s,a=[],o=[];t=e.match(c);){for(i=t[0],(n=e.substr(0,t.index).trim())&&a.push(n);s=o.pop();){if(d[i]){if(d[i][0]===s){i=d[i][1]||i;break}}else if(0<=l.indexOf(s)||r[s]<r[i]){o.push(s);break}a.push(s)}d[i]||o.push(i),e=e.substr(t.index+i.length)}return(e=e.trim())&&a.push(e),a.concat(o.reverse())}},{}],91:[function(e,t,i){var n=e("@babel/runtime/helpers/interopRequireDefault"),d=(Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,n(e("./validateNamespace.js"))),c=n(e("./validateHookName.js"));i.default=function(r,l){return function(i,e,t,n=10){var s=r[l];if((0,c.default)(i)&&(0,d.default)(e)&&"function"==typeof t&&"number"==typeof n){var a={callback:t,priority:n,namespace:e};if(s[i]){var o=s[i].handlers;let t;for(t=o.length;0<t&&!(n>=o[t-1].priority);t--);t===o.length?o[t]=a:o.splice(t,0,a),s.__current.forEach(e=>{e.name===i&&e.currentIndex>=t&&e.currentIndex++})}else s[i]={handlers:[a],runs:0};"hookAdded"!==i&&r.doAction("hookAdded",i,e,t,n)}}}},{"./validateHookName.js":100,"./validateNamespace.js":101,"@babel/runtime/helpers/interopRequireDefault":85}],92:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=function(t,i){return function(){var e=t[i];return null!=(e=e.__current[e.__current.length-1]?.name)?e:null}}},{}],93:[function(e,t,i){var n=e("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,n(e("./validateHookName.js")));i.default=function(i,n){return function(e){var t=i[n];if((0,s.default)(e))return t[e]&&t[e].runs?t[e].runs:0}}},{"./validateHookName.js":100,"@babel/runtime/helpers/interopRequireDefault":85}],94:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=function(i,n){return function(e){var t=i[n];return void 0===e?void 0!==t.__current[0]:!!t.__current[0]&&e===t.__current[0].name}}},{}],95:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=function(n,s){return function(e,t){var i=n[s];return void 0!==t?e in i&&i[e].handlers.some(e=>e.namespace===t):e in i}}},{}],96:[function(e,t,i){var n=e("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(i,"__esModule",{value:!0}),i.default=i._Hooks=void 0,n(e("./createAddHook"))),a=n(e("./createRemoveHook")),o=n(e("./createHasHook")),r=n(e("./createRunHook")),l=n(e("./createCurrentHook")),d=n(e("./createDoingHook")),c=n(e("./createDidHook"));class u{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=(0,s.default)(this,"actions"),this.addFilter=(0,s.default)(this,"filters"),this.removeAction=(0,a.default)(this,"actions"),this.removeFilter=(0,a.default)(this,"filters"),this.hasAction=(0,o.default)(this,"actions"),this.hasFilter=(0,o.default)(this,"filters"),this.removeAllActions=(0,a.default)(this,"actions",!0),this.removeAllFilters=(0,a.default)(this,"filters",!0),this.doAction=(0,r.default)(this,"actions"),this.applyFilters=(0,r.default)(this,"filters",!0),this.currentAction=(0,l.default)(this,"actions"),this.currentFilter=(0,l.default)(this,"filters"),this.doingAction=(0,d.default)(this,"actions"),this.doingFilter=(0,d.default)(this,"filters"),this.didAction=(0,c.default)(this,"actions"),this.didFilter=(0,c.default)(this,"filters")}}i._Hooks=u;i.default=function(){return new u}},{"./createAddHook":91,"./createCurrentHook":92,"./createDidHook":93,"./createDoingHook":94,"./createHasHook":95,"./createRemoveHook":97,"./createRunHook":98,"@babel/runtime/helpers/interopRequireDefault":85}],97:[function(e,t,i){var n=e("@babel/runtime/helpers/interopRequireDefault"),r=(Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,n(e("./validateNamespace.js"))),l=n(e("./validateHookName.js"));i.default=function(t,e,o=!1){return function(i,n){var s=t[e];if((0,l.default)(i)&&(o||(0,r.default)(n))){if(!s[i])return 0;let e=0;if(o)e=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else{var a=s[i].handlers;for(let t=a.length-1;0<=t;t--)a[t].namespace===n&&(a.splice(t,1),e++,s.__current.forEach(e=>{e.name===i&&e.currentIndex>=t&&e.currentIndex--}))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,n),e}}}},{"./validateHookName.js":100,"./validateNamespace.js":101,"@babel/runtime/helpers/interopRequireDefault":85}],98:[function(e,t,i){!function(d){!function(){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=function(o,r,l=!1){return function(e,...t){var i=o[r],n=(i[e]||(i[e]={handlers:[],runs:0}),i[e].runs++,i[e].handlers);if("production"!==d.env.NODE_ENV&&"hookAdded"!==e&&i.all&&n.push(...i.all.handlers),n&&n.length){var s={name:e,currentIndex:0};for(i.__current.push(s);s.currentIndex<n.length;){var a=n[s.currentIndex].callback.apply(null,t);l&&(t[0]=a),s.currentIndex++}i.__current.pop()}return l?t[0]:void 0}}}.call(this)}.call(this,e("_process"))},{_process:109}],99:[function(e,t,i){var n=e("@babel/runtime/helpers/interopRequireDefault"),s=(Object.defineProperty(i,"__esModule",{value:!0}),i.applyFilters=i.addFilter=i.addAction=i.actions=void 0,Object.defineProperty(i,"createHooks",{enumerable:!0,get:function(){return s.default}}),i.removeFilter=i.removeAllFilters=i.removeAllActions=i.removeAction=i.hasFilter=i.hasAction=i.filters=i.doingFilter=i.doingAction=i.doAction=i.didFilter=i.didAction=i.defaultHooks=i.currentFilter=i.currentAction=void 0,n(e("./createHooks"))),{addAction:n,addFilter:e,removeAction:a,removeFilter:o,hasAction:r,hasFilter:l,removeAllActions:d,removeAllFilters:c,doAction:u,applyFilters:p,currentAction:h,currentFilter:m,doingAction:g,doingFilter:f,didAction:v,didFilter:y,actions:w,filters:b}=i.defaultHooks=(0,s.default)();i.filters=b,i.actions=w,i.didFilter=y,i.didAction=v,i.doingFilter=f,i.doingAction=g,i.currentFilter=m,i.currentAction=h,i.applyFilters=p,i.doAction=u,i.removeAllFilters=c,i.removeAllActions=d,i.hasFilter=l,i.hasAction=r,i.removeFilter=o,i.removeAction=a,i.addFilter=e,i.addAction=n},{"./createHooks":96,"@babel/runtime/helpers/interopRequireDefault":85}],100:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=function(e){return"string"==typeof e&&""!==e&&!/^__/.test(e)&&!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)}},{}],101:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=function(e){return"string"==typeof e&&""!==e&&!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)}},{}],102:[function(e,t,i){var n=e("@babel/runtime/helpers/interopRequireDefault"),u=(Object.defineProperty(i,"__esModule",{value:!0}),i.createI18n=void 0,n(e("tannin")));let p={"":{plural_forms(e){return 1===e?0:1}}},h=/^i18n\.(n?gettext|has_translation)(_|$)/;i.createI18n=(e,t,o)=>{let a=new u.default({}),i=new Set,n=()=>{i.forEach(e=>e())};let r=(e,t="default")=>{a.data[t]={...a.data[t],...e},a.data[t][""]={...p[""],...a.data[t]?.[""]},delete a.pluralForms[t]},s=(e,t)=>{r(e,t),n()};let l=(e="default",t,i,n,s)=>(a.data[e]||r(void 0,e),a.dcnpgettext(e,t,i,n,s)),d=(e="default")=>e;let c=(e,t,i)=>{var n=l(i,t,e);return o?(n=o.applyFilters("i18n.gettext_with_context",n,e,t,i),o.applyFilters("i18n.gettext_with_context_"+d(i),n,e,t,i)):n};return e&&s(e,t),o&&(o.addAction("hookAdded","core/i18n",e=e=>{h.test(e)&&n()}),o.addAction("hookRemoved","core/i18n",e)),{getLocaleData:(e="default")=>a.data[e],setLocaleData:s,addLocaleData:(e,t="default")=>{a.data[t]={...a.data[t],...e,"":{...p[""],...a.data[t]?.[""],...e?.[""]}},delete a.pluralForms[t],n()},resetLocaleData:(e,t)=>{a.data={},a.pluralForms={},s(e,t)},subscribe:e=>(i.add(e),()=>i.delete(e)),__:(e,t)=>{var i=l(t,void 0,e);return o?(i=o.applyFilters("i18n.gettext",i,e,t),o.applyFilters("i18n.gettext_"+d(t),i,e,t)):i},_x:c,_n:(e,t,i,n)=>{var s=l(n,void 0,e,t,i);return o?(s=o.applyFilters("i18n.ngettext",s,e,t,i,n),o.applyFilters("i18n.ngettext_"+d(n),s,e,t,i,n)):s},_nx:(e,t,i,n,s)=>{var a=l(s,n,e,t,i);return o?(a=o.applyFilters("i18n.ngettext_with_context",a,e,t,i,n,s),o.applyFilters("i18n.ngettext_with_context_"+d(s),a,e,t,i,n,s)):a},isRTL:()=>"rtl"===c("ltr","text direction"),hasTranslation:(e,t,i)=>{var n=t?t+""+e:e;let s=!!a.data?.[null!=i?i:"default"]?.[n];return o&&(s=o.applyFilters("i18n.has_translation",s,e,t,i),s=o.applyFilters("i18n.has_translation_"+d(i),s,e,t,i)),s}}}},{"@babel/runtime/helpers/interopRequireDefault":85,tannin:111}],103:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.subscribe=i.setLocaleData=i.resetLocaleData=i.isRTL=i.hasTranslation=i.getLocaleData=i.default=i._x=i._nx=i._n=i.__=void 0;var n=e("./create-i18n"),e=e("@wordpress/hooks"),n=(0,n.createI18n)(void 0,void 0,e.defaultHooks);i.default=n,i.getLocaleData=n.getLocaleData.bind(n),i.setLocaleData=n.setLocaleData.bind(n),i.resetLocaleData=n.resetLocaleData.bind(n),i.subscribe=n.subscribe.bind(n),i.__=n.__.bind(n),i._x=n._x.bind(n),i._n=n._n.bind(n),i._nx=n._nx.bind(n),i.isRTL=n.isRTL.bind(n),i.hasTranslation=n.hasTranslation.bind(n)},{"./create-i18n":102,"@wordpress/hooks":99}],104:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0});var n={sprintf:!0,defaultI18n:!0,setLocaleData:!0,resetLocaleData:!0,getLocaleData:!0,subscribe:!0,__:!0,_x:!0,_n:!0,_nx:!0,isRTL:!0,hasTranslation:!0},s=(Object.defineProperty(i,"__",{enumerable:!0,get:function(){return o.__}}),Object.defineProperty(i,"_n",{enumerable:!0,get:function(){return o._n}}),Object.defineProperty(i,"_nx",{enumerable:!0,get:function(){return o._nx}}),Object.defineProperty(i,"_x",{enumerable:!0,get:function(){return o._x}}),Object.defineProperty(i,"defaultI18n",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"getLocaleData",{enumerable:!0,get:function(){return o.getLocaleData}}),Object.defineProperty(i,"hasTranslation",{enumerable:!0,get:function(){return o.hasTranslation}}),Object.defineProperty(i,"isRTL",{enumerable:!0,get:function(){return o.isRTL}}),Object.defineProperty(i,"resetLocaleData",{enumerable:!0,get:function(){return o.resetLocaleData}}),Object.defineProperty(i,"setLocaleData",{enumerable:!0,get:function(){return o.setLocaleData}}),Object.defineProperty(i,"sprintf",{enumerable:!0,get:function(){return s.sprintf}}),Object.defineProperty(i,"subscribe",{enumerable:!0,get:function(){return o.subscribe}}),e("./sprintf")),a=e("./create-i18n"),o=(Object.keys(a).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e)||e in i&&i[e]===a[e]||Object.defineProperty(i,e,{enumerable:!0,get:function(){return a[e]}})}),((e,t)=>{if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=r(t))&&t.has(e))return t.get(e);var i,n,s={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((n=a?Object.getOwnPropertyDescriptor(e,i):null)&&(n.get||n.set)?Object.defineProperty(s,i,n):s[i]=e[i]);return s.default=e,t&&t.set(e,s),s})(e("./default-i18n")));function r(e){var t,i;return"function"!=typeof WeakMap?null:(t=new WeakMap,i=new WeakMap,(r=function(e){return e?i:t})(e))}},{"./create-i18n":102,"./default-i18n":103,"./sprintf":105}],105:[function(e,t,i){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=(Object.defineProperty(i,"__esModule",{value:!0}),i.sprintf=function(t,...e){try{return s.default.sprintf(t,...e)}catch(e){return e instanceof Error&&a("sprintf error: \n\n"+e.toString()),t}},n(e("memize"))),s=n(e("sprintf-js"));let a=(0,i.default)(console.error)},{"@babel/runtime/helpers/interopRequireDefault":85,memize:108,"sprintf-js":110}],106:[function(e,t,i){var n;n=function(a){for(var o=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["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","1",11,["284"]],["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,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["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","1",13,["767"]],["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"],["Eswatini","sz","268"],["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","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["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,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["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"],["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,["269","639"]],["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","1",16,["664"]],["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"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["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","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["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","1",20,["784"]],["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","1",21,["721"]],["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,["79"]],["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","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["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,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],e=0;e<o.length;e++){var t=o[e];o[e]={name:t[0],iso2:t[1],dialCode:t[2],priority:t[3]||0,areaCodes:t[4]||null}}function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){for(var i=Object.keys(e),n=0;n<i.length;n++)t(i[n],e[i[n]])}function l(t){r(window.intlTelInputGlobals.instances,function(e){window.intlTelInputGlobals.instances[e][t]()})}function s(e,t,i){var n=document.createElement("script");n.onload=function(){l("handleUtils"),t&&t()},n.onerror=function(){l("rejectUtilsScriptPromise"),i&&i()},n.className="iti-load-utils",n.async=!0,n.src=e,document.body.appendChild(n)}var i={getInstance:function(e){e=e.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[e]},instances:{},documentReady:function(){return"complete"===document.readyState}},d=("object"==typeof window&&(window.intlTelInputGlobals=i),0),c={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},u=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],p=(()=>{function s(e,t){var i=this;if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");this.id=d++,this.telInput=e,this.activeItem=null,this.highlightedItem=null;var n=t||{};this.options={},r(c,function(e,t){i.options[e]=n.hasOwnProperty(e)?n[e]:t}),this.hadInitialPlaceholder=Boolean(e.getAttribute("placeholder"))}var e,t,i;return e=s,(t=[{key:"_init",value:function(){var e,t,i=this;this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(document.body.classList.add("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer=document.body)),"undefined"!=typeof Promise?(e=new Promise(function(e,t){i.resolveAutoCountryPromise=e,i.rejectAutoCountryPromise=t}),t=new Promise(function(e,t){i.resolveUtilsScriptPromise=e,i.rejectUtilsScriptPromise=t}),this.promise=Promise.all([e,t])):(this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){}),this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(e,t,i){t.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=t.length),this.countryCodes.hasOwnProperty(t)||(this.countryCodes[t]=[]);for(var n=0;n<this.countryCodes[t].length;n++)if(this.countryCodes[t][n]===e)return;i=i!==a?i:this.countryCodes[t].length;this.countryCodes[t][i]=e}},{key:"_processAllCountries",value:function(){var t,i;this.options.onlyCountries.length?(t=this.options.onlyCountries.map(function(e){return e.toLowerCase()}),this.countries=o.filter(function(e){return-1<t.indexOf(e.iso2)})):this.options.excludeCountries.length?(i=this.options.excludeCountries.map(function(e){return e.toLowerCase()}),this.countries=o.filter(function(e){return-1===i.indexOf(e.iso2)})):this.countries=o}},{key:"_translateCountriesByLocale",value:function(){for(var e=0;e<this.countries.length;e++){var t=this.countries[e].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(t)&&(this.countries[e].name=this.options.localizedCountries[t])}}},{key:"_countryNameSort",value:function(e,t){return e.name.localeCompare(t.name)}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];this.dialCodes[t.dialCode]||(this.dialCodes[t.dialCode]=!0),this._addCountryCode(t.iso2,t.dialCode,t.priority)}for(var i=0;i<this.countries.length;i++){var n=this.countries[i];if(n.areaCodes)for(var s=this.countryCodes[n.dialCode][0],a=0;a<n.areaCodes.length;a++){for(var o=n.areaCodes[a],r=1;r<o.length;r++){var l=n.dialCode+o.substr(0,r);this._addCountryCode(s,l),this._addCountryCode(n.iso2,l)}this._addCountryCode(n.iso2,n.dialCode+o)}}}},{key:"_processPreferredCountries",value: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)}}},{key:"_createEl",value:function(e,t,i){var n=document.createElement(e);return t&&r(t,function(e,t){n.setAttribute(e,t)}),i&&i.appendChild(n),n}},{key:"_generateMarkup",value:function(){this.telInput.hasAttribute("autocomplete")||this.telInput.form&&this.telInput.form.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off");var e,t,i,n="iti",n=(this.options.allowDropdown&&(n+=" iti--allow-dropdown"),this.options.separateDialCode&&(n+=" iti--separate-dial-code"),this.options.customContainer&&(n=n+" "+this.options.customContainer),this._createEl("div",{class:n}));this.telInput.parentNode.insertBefore(n,this.telInput),this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},n),n.appendChild(this.telInput),this.selectedFlag=this._createEl("div",{class:"iti__selected-flag",role:"combobox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.flagsContainer),this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag),this.options.separateDialCode&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),this.options.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),(this.options.dropdownContainer?(this.dropdown=this._createEl("div",{class:"iti iti--container"}),this.dropdown):this.flagsContainer).appendChild(this.countryList)),this.options.hiddenInput&&(e=this.options.hiddenInput,(t=this.telInput.getAttribute("name"))&&-1!==(i=t.lastIndexOf("["))&&(e="".concat(t.substr(0,i),"[").concat(e,"]")),this.hiddenInput=this._createEl("input",{type:"hidden",name:e}),n.appendChild(this.hiddenInput))}},{key:"_appendListItems",value:function(e,t,i){for(var n="",s=0;s<e.length;s++)var a=e[s],o=i?"-preferred":"",n=(n=(n=(n+="<li class='iti__country ".concat(t,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(a.iso2).concat(o,"' role='option' data-dial-code='").concat(a.dialCode,"' data-country-code='").concat(a.iso2,"' aria-selected='false'>"))+"<div class='iti__flag-box'><div class='iti__flag iti__".concat(a.iso2,"'></div></div>"))+"<span class='iti__country-name'>".concat(a.name,"</span>"))+"<span class='iti__dial-code'>+".concat(a.dialCode,"</span>")+"</li>";this.countryList.insertAdjacentHTML("beforeend",n)}},{key:"_setInitialState",value:function(){var e=this.telInput.getAttribute("value"),t=this.telInput.value,e=e&&"+"===e.charAt(0)&&(!t||"+"!==t.charAt(0))?e:t,t=this._getDialCode(e),i=this._isRegionlessNanp(e),n=this.options,s=n.initialCountry,a=n.nationalMode,o=n.autoHideDialCode,n=n.separateDialCode;t&&!i?this._updateFlagFromNumber(e):"auto"!==s&&(s?this._setFlag(s.toLowerCase()):t&&i?this._setFlag("us"):(this.defaultCountry=(this.preferredCountries.length?this.preferredCountries:this.countries)[0].iso2,e||this._setFlag(this.defaultCountry)),e||a||o||n||(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),e&&this._updateValFromNumber(e)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var e=this;this._handleHiddenInputSubmit=function(){e.hiddenInput.value=e.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var e=this.telInput;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_initDropdownListeners",value:function(){var t=this,e=(this._handleLabelClick=function(e){t.countryList.classList.contains("iti__hide")?t.telInput.focus():e.preventDefault()},this._getClosestLabel());e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!t.countryList.classList.contains("iti__hide")||t.telInput.disabled||t.telInput.readOnly||t._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(e){t.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(e.key)&&(e.preventDefault(),e.stopPropagation(),t._showDropdown()),"Tab"===e.key&&t._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var e=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(e.options.utilsScript)}):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout(function(){return l("handleAutoCountry")})},function(){return l("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var e=this;this._handleKeyupEvent=function(){e._updateFlagFromNumber(e.telInput.value)&&e._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(e._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(e){var t=this.telInput.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_initBlurListeners",value:function(){var e=this;this._handleSubmitOrBlurEvent=function(){e._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){var e;"+"!==this.telInput.value.charAt(0)||(e=this._getNumeric(this.telInput.value))&&this.selectedCountryData.dialCode!==e||(this.telInput.value="")}},{key:"_getNumeric",value:function(e){return e.replace(/\D/g,"")}},{key:"_trigger",value:function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),this.telInput.dispatchEvent(t)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(e,t,i){i&&!e.classList.contains(t)?e.classList.add(t):!i&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var e,t,i,n,s,a=this;this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),this.isMobile||(e=this.telInput.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,t=e.top+n,s=this.countryList.offsetHeight,i=t+this.telInput.offsetHeight+s<n+window.innerHeight,n=n<t-s,this._toggleClass(this.countryList,"iti__country-list--dropup",!i&&n),this.options.dropdownContainer&&(s=!i&&n?0:this.telInput.offsetHeight,this.dropdown.style.top="".concat(t+s,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return a._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)))}},{key:"_getClosestListItem",value:function(e){for(var t=e;t&&t!==this.countryList&&!t.classList.contains("iti__country");)t=t.parentNode;return t===this.countryList?null:t}},{key:"_bindDropdownListeners",value:function(){var t=this,e=(this._handleMouseoverCountryList=function(e){e=t._getClosestListItem(e.target);e&&t._highlightListItem(e,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(e){e=t._getClosestListItem(e.target);e&&t._selectListItem(e)},this.countryList.addEventListener("click",this._handleClickCountryList),!0),i=(this._handleClickOffToClose=function(){e||t._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose),""),n=null;this._handleKeydownOnDropdown=function(e){e.preventDefault(),"ArrowUp"===e.key||"Up"===e.key||"ArrowDown"===e.key||"Down"===e.key?t._handleUpDownKey(e.key):"Enter"===e.key?t._handleEnterKey():"Escape"===e.key?t._closeDropdown():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e.key)&&(n&&clearTimeout(n),i+=e.key.toLowerCase(),t._searchForCountry(i),n=setTimeout(function(){i=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(e){var t="ArrowUp"===e||"Up"===e?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;t&&(t.classList.contains("iti__divider")&&(t="ArrowUp"===e||"Up"===e?t.previousElementSibling:t.nextElementSibling),this._highlightListItem(t,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(e){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,e)){var i=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(this.countries[t].iso2));this._highlightListItem(i,!1),this._scrollTo(i,!0);break}}},{key:"_startsWith",value:function(e,t){return e.substr(0,t.length).toLowerCase()===t}},{key:"_updateValFromNumber",value:function(e){var t,i,n;this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData&&(t=!this.options.separateDialCode&&(this.options.nationalMode||"+"!==e.charAt(0)),n=(i=intlTelInputUtils.numberFormat).NATIONAL,e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,t?n:i.INTERNATIONAL)),e=this._beforeSetNumber(e),this.telInput.value=e}},{key:"_updateFlagFromNumber",value:function(e){var t=this.selectedCountryData.dialCode,i=(e&&this.options.nationalMode&&"1"===t&&"+"!==e.charAt(0)&&("1"!==e.charAt(0)&&(e="1".concat(e)),e="+".concat(e)),this.options.separateDialCode&&t&&"+"!==e.charAt(0)&&(e="+".concat(t).concat(e)),this._getDialCode(e,!0)),n=this._getNumeric(e),s=null;if(i){var a=this.countryCodes[this._getNumeric(i)],i=-1!==a.indexOf(this.selectedCountryData.iso2)&&n.length<=i.length-1;if(!("1"===t&&this._isRegionlessNanp(n))&&!i)for(var o=0;o<a.length;o++)if(a[o]){s=a[o];break}}else"+"===e.charAt(0)&&n.length?s="":e&&"+"!==e||(s=this.defaultCountry);return null!==s&&this._setFlag(s)}},{key:"_isRegionlessNanp",value:function(e){var e=this._getNumeric(e);return"1"===e.charAt(0)&&(e=e.substr(1,3),-1!==u.indexOf(e))}},{key:"_highlightListItem",value:function(e,t){var i=this.highlightedItem;i&&i.classList.remove("iti__highlight"),this.highlightedItem=e,this.highlightedItem.classList.add("iti__highlight"),t&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(e,t,i){for(var n=t?o:this.countries,s=0;s<n.length;s++)if(n[s].iso2===e)return n[s];if(i)return null;throw new Error("No country data for '".concat(e,"'"))}},{key:"_setFlag",value:function(e){var t=this.selectedCountryData.iso2?this.selectedCountryData:{},i=(this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(e)),e?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown");return this.selectedFlag.setAttribute("title",i),this.options.separateDialCode&&(i=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"",this.selectedDialCode.innerHTML=i,i=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth(),this.telInput.style.paddingLeft="".concat(i+6,"px")),this._updatePlaceholder(),this.options.allowDropdown&&((i=this.activeItem)&&(i.classList.remove("iti__active"),i.setAttribute("aria-selected","false")),e)&&((i=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e))).setAttribute("aria-selected","true"),i.classList.add("iti__active"),this.activeItem=i,this.selectedFlag.setAttribute("aria-activedescendant",i.getAttribute("id"))),t.iso2!==e}},{key:"_getHiddenSelectedFlagWidth",value:function(){var e=this.telInput.parentNode.cloneNode(),t=(e.style.visibility="hidden",document.body.appendChild(e),this.flagsContainer.cloneNode()),i=(e.appendChild(t),this.selectedFlag.cloneNode(!0)),t=(t.appendChild(i),i.offsetWidth);return e.parentNode.removeChild(e),t}},{key:"_updatePlaceholder",value:function(){var e="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&"polite"===this.options.autoPlaceholder;window.intlTelInputUtils&&e&&(e=intlTelInputUtils.numberType[this.options.placeholderNumberType],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.setAttribute("placeholder",e))}},{key:"_selectListItem",value:function(e){var t=this._setFlag(e.getAttribute("data-country-code")),e=(this._closeDropdown(),this._updateDialCode(e.getAttribute("data-dial-code"),!0),this.telInput.focus(),this.telInput.value.length);this.telInput.setSelectionRange(e,e),t&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.isMobile||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode)&&this.dropdown.parentNode.removeChild(this.dropdown),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(e,t){var i=this.countryList,n=window.pageYOffset||document.documentElement.scrollTop,s=i.offsetHeight,a=i.getBoundingClientRect().top+n,o=a+s,r=e.offsetHeight,e=e.getBoundingClientRect().top+n,n=e+r,l=e-a+i.scrollTop,d=s/2-r/2;e<a?(t&&(l-=d),i.scrollTop=l):o<n&&(t&&(l+=d),i.scrollTop=l-(s-r))}},{key:"_updateDialCode",value:function(e,t){var i=this.telInput.value,e="+".concat(e);if("+"===i.charAt(0))var n=this._getDialCode(i),n=n?i.replace(n,e):e;else{if(this.options.nationalMode||this.options.separateDialCode)return;if(i)n=e+i;else{if(!t&&this.options.autoHideDialCode)return;n=e}}this.telInput.value=n}},{key:"_getDialCode",value:function(e,t){var i="";if("+"===e.charAt(0))for(var n="",s=0;s<e.length;s++){var a=e.charAt(s);if(!isNaN(parseInt(a,10))){if(n+=a,t)this.countryCodes[n]&&(i=e.substr(0,s+1));else if(this.dialCodes[n]){i=e.substr(0,s+1);break}if(n.length===this.countryCodeMaxLen)break}}return i}},{key:"_getFullNumber",value:function(){var e=this.telInput.value.trim(),t=this.selectedCountryData.dialCode,i=this._getNumeric(e),i=this.options.separateDialCode&&"+"!==e.charAt(0)&&t&&i?"+".concat(t):"";return i+e}},{key:"_beforeSetNumber",value:function(e){var t;return this.options.separateDialCode&&this._getDialCode(e)&&(t=" "===e[(t="+".concat(this.selectedCountryData.dialCode)).length]||"-"===e[t.length]?t.length+1:t.length,e=e.substr(t)),this._cap(e)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var e=this.telInput.form,t=(this.options.allowDropdown&&(this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown),t=this._getClosestLabel())&&t.removeEventListener("click",this._handleLabelClick),this.hiddenInput&&e&&e.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoHideDialCode&&(e&&e.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id"),this.telInput.parentNode);t.parentNode.insertBefore(this.telInput,t),t.parentNode.removeChild(t),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(e){var t;return window.intlTelInputUtils?(t=this.selectedCountryData.iso2,intlTelInputUtils.formatNumber(this._getFullNumber(),t,e)):""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){var e;return window.intlTelInputUtils?(e=this.selectedCountryData.iso2,intlTelInputUtils.getValidationError(this._getFullNumber(),e)):-99}},{key:"isValidNumber",value:function(){var e=this._getFullNumber().trim(),t=this.options.nationalMode?this.selectedCountryData.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null}},{key:"setCountry",value:function(e){e=e.toLowerCase();this.selectedFlagInner.classList.contains("iti__".concat(e))||(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())}},{key:"setNumber",value:function(e){var t=this._updateFlagFromNumber(e);this._updateValFromNumber(e),t&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(e){this.options.placeholderNumberType=e,this._updatePlaceholder()}}])&&n(e.prototype,t),i&&n(e,i),s})();return i.getCountryData=function(){return o},i.loadUtils=function(i){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(e,t){return s(i,e,t)});s(i)}return null},i.defaults=c,i.version="17.0.21",function(e,t){t=new p(e,t);return t._init(),e.setAttribute("data-intl-tel-input-id",t.id),window.intlTelInputGlobals.instances[t.id]=t}},"object"==typeof t&&t.exports?t.exports=n():window.intlTelInput=n()},{}],107:[function(e,t,i){t.exports=e("./build/js/intlTelInput")},{"./build/js/intlTelInput":106}],108:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(s,a){var o,r,l=0;function e(){var e,t,i=o,n=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(t=0;t<n;t++)if(i.args[t]!==arguments[t]){i=i.next;continue e}return i!==o&&(i===r&&(r=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=o,i.prev=null,o.prev=i,o=i),i.val}i=i.next}for(e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return i={args:e,val:s.apply(null,e)},o?(o.prev=i).next=o:r=i,l===a.maxSize?(r=r.prev).next=null:l++,(o=i).val}return a=a||{},e.clear=function(){r=o=null,l=0},e}},{}],109:[function(e,t,i){var n,s,t=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{s="function"==typeof clearTimeout?clearTimeout:o}catch(e){s=o}function r(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return(n=setTimeout)(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var l,d=[],c=!1,u=-1;function p(){c&&l&&(c=!1,l.length?d=l.concat(d):u=-1,d.length)&&h()}function h(){if(!c){for(var e=r(p),t=(c=!0,d.length);t;){for(l=d,d=[];++u<t;)l&&l[u].run();u=-1,t=d.length}l=null,c=!1,!function(t){if(s===clearTimeout)return clearTimeout(t);if((s===o||!s)&&clearTimeout)return(s=clearTimeout)(t);try{s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];d.push(new m(e,t)),1!==d.length||c||r(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=g,t.addListener=g,t.once=g,t.off=g,t.removeListener=g,t.removeAllListeners=g,t.emit=g,t.prependListener=g,t.prependOnceListener=g,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],110:[function(e,t,i){function m(e){var t,i,n,s,a,o,r,l,d=(e=>{if(f[e])return f[e];for(var t,i=e,n=[],s=0;i;){if(null!==(t=g.text.exec(i)))n.push(t[0]);else if(null!==(t=g.modulo.exec(i)))n.push("%");else{if(null===(t=g.placeholder.exec(i)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){s|=1;var a=[],o=t[2],r=[];if(null===(r=g.key.exec(o)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(r[1]);""!==(o=o.substring(r[0].length));){if(null===(r=g.key_access.exec(o))&&null===(r=g.index_access.exec(o)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(r[1])}t[2]=a}else s|=2;if(3===s)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}i=i.substring(t[0].length)}return f[e]=n})(e),c=arguments,u=1,p=d.length,h="";for(i=0;i<p;i++)if("string"==typeof d[i])h+=d[i];else if("object"==typeof d[i]){if((s=d[i]).keys)for(t=c[u],n=0;n<s.keys.length;n++){if(null==t)throw new Error(m('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[n],s.keys[n-1]));t=t[s.keys[n]]}else t=s.param_no?c[s.param_no]:c[u++];if(g.not_type.test(s.type)&&g.not_primitive.test(s.type)&&t instanceof Function&&(t=t()),g.numeric_arg.test(s.type)&&"number"!=typeof t&&isNaN(t))throw new TypeError(m("[sprintf] expecting number but found %T",t));switch(g.number.test(s.type)&&(r=0<=t),s.type){case"b":t=parseInt(t,10).toString(2);break;case"c":t=String.fromCharCode(parseInt(t,10));break;case"d":case"i":t=parseInt(t,10);break;case"j":t=JSON.stringify(t,null,s.width?parseInt(s.width):0);break;case"e":t=s.precision?parseFloat(t).toExponential(s.precision):parseFloat(t).toExponential();break;case"f":t=s.precision?parseFloat(t).toFixed(s.precision):parseFloat(t);break;case"g":t=s.precision?String(Number(t.toPrecision(s.precision))):parseFloat(t);break;case"o":t=(parseInt(t,10)>>>0).toString(8);break;case"s":t=String(t),t=s.precision?t.substring(0,s.precision):t;break;case"t":t=String(!!t),t=s.precision?t.substring(0,s.precision):t;break;case"T":t=Object.prototype.toString.call(t).slice(8,-1).toLowerCase(),t=s.precision?t.substring(0,s.precision):t;break;case"u":t=parseInt(t,10)>>>0;break;case"v":t=t.valueOf(),t=s.precision?t.substring(0,s.precision):t;break;case"x":t=(parseInt(t,10)>>>0).toString(16);break;case"X":t=(parseInt(t,10)>>>0).toString(16).toUpperCase()}g.json.test(s.type)?h+=t:(!g.number.test(s.type)||r&&!s.sign?l="":(l=r?"+":"-",t=t.toString().replace(g.sign,"")),a=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",o=s.width-(l+t).length,o=s.width&&0<o?a.repeat(o):"",h+=s.align?l+t+o:"0"===a?l+o+t:o+l+t)}return h}function n(e,t){return m.apply(null,[e].concat(t||[]))}var g,f;g={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/},f=Object.create(null),void 0!==i&&(i.sprintf=m,i.vsprintf=n),"undefined"!=typeof window&&(window.sprintf=m,window.vsprintf=n,"function"==typeof define)&&define.amd&&define(function(){return{sprintf:m,vsprintf:n}})},{}],111:[function(e,t,i){var a=(e=e("@tannin/plural-forms"))&&"object"==typeof e&&"default"in e?e.default:e,n={contextDelimiter:"",onMissingKey:null};function s(e,t){for(var i in this.data=e,this.pluralForms={},this.options={},n)this.options[i]=(void 0!==t&&i in t?t:n)[i]}s.prototype.getPluralForm=function(e,t){var i,n,s=this.pluralForms[e];return s||("function"!=typeof(n=(i=this.data[e][""])["Plural-Forms"]||i["plural-forms"]||i.plural_forms)&&(i=(e=>{for(var t,i=e.split(";"),n=0;n<i.length;n++)if(0===(t=i[n].trim()).indexOf("plural="))return t.substr(7)})(i["Plural-Forms"]||i["plural-forms"]||i.plural_forms),n=a(i)),s=this.pluralForms[e]=n),s(t)},s.prototype.dcnpgettext=function(e,t,i,n,s){var s=void 0===s?0:this.getPluralForm(e,s),a=i;return t&&(a=t+this.options.contextDelimiter+i),(t=this.data[e][a])&&t[s]?t[s]:(this.options.onMissingKey&&this.options.onMissingKey(i,e),0===s?i:n)},t.exports=s},{"@tannin/plural-forms":89}],112:[function(D,e,F){!function(je){!function(){Object.defineProperty(F,"__esModule",{value:!0});var ee=D("@popperjs/core"),n="tippy-content",a="tippy-backdrop",i="tippy-arrow",s="tippy-svg-arrow",te={passive:!0,capture:!0},ie=function(){return document.body};function ne(e,t,i){var n;return Array.isArray(e)?null==(n=e[t])?Array.isArray(i)?i[t]:i:n:e}function o(e,t){e={}.toString.call(e);return 0===e.indexOf("[object")&&-1<e.indexOf(t+"]")}function se(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ae(t,i){var n;return 0===i?t:function(e){clearTimeout(n),n=setTimeout(function(){t(e)},i)}}function v(e,t){var i=Object.assign({},e);return t.forEach(function(e){delete i[e]}),i}function oe(e){return[].concat(e)}function re(e,t){-1===e.indexOf(t)&&e.push(t)}function le(e){return e.split("-")[0]}function de(e){return[].slice.call(e)}function ce(i){return Object.keys(i).reduce(function(e,t){return void 0!==i[t]&&(e[t]=i[t]),e},{})}function ue(){return document.createElement("div")}function r(t){return["Element","Fragment"].some(function(e){return o(t,e)})}function pe(e){return o(e,"MouseEvent")}function c(e){return e&&e._tippy&&e._tippy.reference===e}function u(e){return r(e)?[e]:o(e,"NodeList")?de(e):Array.isArray(e)?e:de(document.querySelectorAll(e))}function he(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function me(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Se(e){var t,e=oe(e)[0];return null!=e&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}function ge(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(e){t[n](e,i)})}function $e(e,t){for(var i,n=t;n;){if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var fe={isTouch:!1},t=0;function p(){fe.isTouch||(fe.isTouch=!0,window.performance&&document.addEventListener("mousemove",h))}function h(){var e=performance.now();e-t<20&&(fe.isTouch=!1,document.removeEventListener("mousemove",h)),t=e}function f(){var e,t=document.activeElement;c(t)&&(e=t._tippy,t.blur)&&!e.state.isVisible&&t.blur()}var l,ke="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.msCrypto;function ve(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function w(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function b(e){return[w("\n  %ctippy.js\n\n  %c"+w(e)+"\n\n  %c👷‍ This is a development-only message. It will be removed in production.\n  "),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function ye(e,t){e&&!l.has(t)&&(l.add(t),(e=console).warn.apply(e,b(t)))}function we(e,t){e&&!l.has(t)&&(l.add(t),(e=console).error.apply(e,b(t)))}"production"!==je.env.NODE_ENV&&(l=new Set);var _={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},be=Object.assign({appendTo:ie,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},_,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),x=Object.keys(be);function Ie(n){var e=(n.plugins||[]).reduce(function(e,t){var i=t.name;return i&&(e[i]=void 0!==n[i]?n[i]:null!=(i=be[i])?i:t.defaultValue),e},{});return Object.assign({},n,e)}function Ee(e,t){var s,e=Object.assign({},t,{content:se(t.content,[e])},t.ignoreAttributes?{}:(s=e,((e=t.plugins)?Object.keys(Ie(Object.assign({},be,{plugins:e}))):x).reduce(function(t,i){var n=(s.getAttribute("data-tippy-"+i)||"").trim();if(n)if("content"===i)t[i]=n;else try{t[i]=JSON.parse(n)}catch(e){t[i]=n}return t},{})));return e.aria=Object.assign({},be.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function C(e,i){void 0===e&&(e={}),void 0===i&&(i=[]),Object.keys(e).forEach(function(t){var e=v(be,Object.keys(_));ye(!{}.hasOwnProperty.call(e,t)&&0===i.filter(function(e){return e.name===t}).length,["`"+t+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var S=function(){return"innerHTML"};function d(e,t){e[S()]=t}function $(e){var t=ue();return!0===e?t.className=i:(t.className=s,r(e)?t.appendChild(e):d(t,e)),t}function k(e,t){r(t.content)?(d(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?d(e,t.content):e.textContent=t.content)}function _e(e){var e=e.firstElementChild,t=de(e.children);return{box:e,content:t.find(function(e){return e.classList.contains(n)}),arrow:t.find(function(e){return e.classList.contains(i)||e.classList.contains(s)}),backdrop:t.find(function(e){return e.classList.contains(a)})}}function e(a){var o=ue(),e=ue(),t=(e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1"),ue());function i(e,t){var i=_e(o),n=i.box,s=i.content,i=i.arrow;t.theme?n.setAttribute("data-theme",t.theme):n.removeAttribute("data-theme"),"string"==typeof t.animation?n.setAttribute("data-animation",t.animation):n.removeAttribute("data-animation"),t.inertia?n.setAttribute("data-inertia",""):n.removeAttribute("data-inertia"),n.style.maxWidth="number"==typeof t.maxWidth?t.maxWidth+"px":t.maxWidth,t.role?n.setAttribute("role",t.role):n.removeAttribute("role"),e.content===t.content&&e.allowHTML===t.allowHTML||k(s,a.props),t.arrow?i?e.arrow!==t.arrow&&(n.removeChild(i),n.appendChild($(t.arrow))):n.appendChild($(t.arrow)):i&&n.removeChild(i)}return t.className=n,t.setAttribute("data-state","hidden"),k(t,a.props),o.appendChild(e),e.appendChild(t),i(a.props,a.props),{popper:o,onUpdate:i}}e.$$tippy=!0;var Pe=1,xe=[],Ce=[];function I(o,e){var n,t,i,s,a,r,l,d,c,u,p,h,m=Ee(o,Object.assign({},be,Ie(ce(e)))),g=!1,f=!1,v=!1,y=!1,w=[],b=ae(G,m.interactiveDebounce),e=Pe++,_=(d=m.plugins).filter(function(e,t){return d.indexOf(e)===t}),x={id:e,reference:o,popper:ue(),popperInstance:null,props:m,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:_,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(t),cancelAnimationFrame(i)},setProps:function(e){"production"!==je.env.NODE_ENV&&ye(x.state.isDestroyed,ve("setProps"));var t,i;x.state.isDestroyed||(E("onBeforeUpdate",[x,e]),q(),t=x.props,i=Ee(o,Object.assign({},t,ce(e),{ignoreAttributes:!0})),x.props=i,H(),t.interactiveDebounce!==i.interactiveDebounce&&(j(),b=ae(G,i.interactiveDebounce)),t.triggerTarget&&!i.triggerTarget?oe(t.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&o.removeAttribute("aria-expanded"),P(),I(),u&&u(t,i),x.popperInstance&&(K(),A().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),E("onAfterUpdate",[x,e]))},setContent:function(e){x.setProps({content:e})},show:function(){"production"!==je.env.NODE_ENV&&ye(x.state.isDestroyed,ve("show"));var e=x.state.isVisible,t=x.state.isDestroyed,i=!x.state.isEnabled,n=fe.isTouch&&!x.props.touch,s=ne(x.props.duration,0,be.duration);e||t||i||n||S().hasAttribute("disabled")||(E("onShow",[x],!1),!1!==x.props.onShow(x)&&(x.state.isVisible=!0,C()&&(c.style.visibility="visible"),I(),z(),x.state.isMounted||(c.style.transition="none"),C()&&he([(e=k()).box,e.content],0),r=function(){var e,t;x.state.isVisible&&!y&&(y=!0,c.offsetHeight,c.style.transition=x.props.moveTransition,C()&&x.props.animation&&(he([e=(t=k()).box,t=t.content],s),me([e,t],"visible")),B(),P(),re(Ce,x),null!=(e=x.popperInstance)&&e.forceUpdate(),E("onMount",[x]),x.props.animation)&&C()&&N(s,function(){x.state.isShown=!0,E("onShown",[x])})},t=x.props.appendTo,i=S(),(n=x.props.interactive&&t===ie||"parent"===t?i.parentNode:se(t,[i])).contains(c)||n.appendChild(c),x.state.isMounted=!0,K(),"production"!==je.env.NODE_ENV)&&ye(x.props.interactive&&t===be.appendTo&&i.nextElementSibling!==c,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" ")))},hide:function(){"production"!==je.env.NODE_ENV&&ye(x.state.isDestroyed,ve("hide"));var e,t=!x.state.isVisible,i=x.state.isDestroyed,n=!x.state.isEnabled,s=ne(x.props.duration,1,be.duration);t||i||n||(E("onHide",[x],!1),!1!==x.props.onHide(x)&&(x.state.isVisible=!1,x.state.isShown=!1,g=y=!1,C()&&(c.style.visibility="hidden"),j(),L(),I(!0),C()&&(t=k(),i=t.box,n=t.content,x.props.animation)&&(he([i,n],s),me([i,n],"hidden")),B(),P(),x.props.animation?C()&&(e=x.unmount,N(s,function(){!x.state.isVisible&&c.parentNode&&c.parentNode.contains(c)&&e()})):x.unmount()))},hideWithInteractivity:function(e){"production"!==je.env.NODE_ENV&&ye(x.state.isDestroyed,ve("hideWithInteractivity"));$().addEventListener("mousemove",b),re(xe,b),b(e)},enable:function(){x.state.isEnabled=!0},disable:function(){x.hide(),x.state.isEnabled=!1},unmount:function(){"production"!==je.env.NODE_ENV&&ye(x.state.isDestroyed,ve("unmount"));x.state.isVisible&&x.hide();x.state.isMounted&&(J(),A().forEach(function(e){e._tippy.unmount()}),c.parentNode&&c.parentNode.removeChild(c),Ce=Ce.filter(function(e){return e!==x}),x.state.isMounted=!1,E("onHidden",[x]))},destroy:function(){"production"!==je.env.NODE_ENV&&ye(x.state.isDestroyed,ve("destroy"));x.state.isDestroyed||(x.clearDelayTimeouts(),x.unmount(),q(),delete o._tippy,x.state.isDestroyed=!0,E("onDestroy",[x]))}};return m.render?(e=m.render(x),c=e.popper,u=e.onUpdate,p=(c.setAttribute("data-tippy-root",""),c.id="tippy-"+x.id,x.popper=c,o._tippy=x,c._tippy=x,_.map(function(e){return e.fn(x)})),h=o.hasAttribute("aria-expanded"),H(),P(),I(),E("onCreate",[x]),m.showOnCreate&&Z(),c.addEventListener("mouseenter",function(){x.props.interactive&&x.state.isVisible&&x.clearDelayTimeouts()}),c.addEventListener("mouseleave",function(){x.props.interactive&&0<=x.props.trigger.indexOf("mouseenter")&&$().addEventListener("mousemove",b)})):"production"!==je.env.NODE_ENV&&we(!0,"render() function has not been supplied."),x;function D(){var e=x.props.touch;return Array.isArray(e)?e:[e,0]}function F(){return"hold"===D()[0]}function C(){var e;return null!=(e=x.props.render)&&e.$$tippy}function S(){return l||o}function $(){var e=S().parentNode;return e?Se(e):document}function k(){return _e(c)}function V(e){return x.state.isMounted&&!x.state.isVisible||fe.isTouch||s&&"focus"===s.type?0:ne(x.props.delay,e?0:1,be.delay)}function I(e){void 0===e&&(e=!1),c.style.pointerEvents=x.props.interactive&&!e?"":"none",c.style.zIndex=""+x.props.zIndex}function E(t,i,e){void 0===e&&(e=!0),p.forEach(function(e){e[t]&&e[t].apply(e,i)}),e&&(e=x.props)[t].apply(e,i)}function B(){var i,n,e=x.props.aria;e.content&&(i="aria-"+e.content,n=c.id,oe(x.props.triggerTarget||o).forEach(function(e){var t=e.getAttribute(i);x.state.isVisible?e.setAttribute(i,t?t+" "+n:n):(t=t&&t.replace(n,"").trim())?e.setAttribute(i,t):e.removeAttribute(i)}))}function P(){!h&&x.props.aria.expanded&&oe(x.props.triggerTarget||o).forEach(function(e){x.props.interactive?e.setAttribute("aria-expanded",x.state.isVisible&&e===S()?"true":"false"):e.removeAttribute("aria-expanded")})}function j(){$().removeEventListener("mousemove",b),xe=xe.filter(function(e){return e!==b})}function T(e){if(!fe.isTouch||!v&&"mousedown"!==e.type){var t=e.composedPath&&e.composedPath()[0]||e.target;if(!x.props.interactive||!$e(c,t)){if(oe(x.props.triggerTarget||o).some(function(e){return $e(e,t)})){if(fe.isTouch)return;if(x.state.isVisible&&0<=x.props.trigger.indexOf("click"))return}else E("onClickOutside",[x,e]);!0===x.props.hideOnClick&&(x.clearDelayTimeouts(),x.hide(),f=!0,setTimeout(function(){f=!1}),x.state.isMounted||L())}}}function R(){v=!0}function W(){v=!1}function z(){var e=$();e.addEventListener("mousedown",T,!0),e.addEventListener("touchend",T,te),e.addEventListener("touchstart",W,te),e.addEventListener("touchmove",R,te)}function L(){var e=$();e.removeEventListener("mousedown",T,!0),e.removeEventListener("touchend",T,te),e.removeEventListener("touchstart",W,te),e.removeEventListener("touchmove",R,te)}function N(e,t){var i=k().box;function n(e){e.target===i&&(ge(i,"remove",n),t())}if(0===e)return t();ge(i,"remove",a),ge(i,"add",n),a=n}function M(t,i,n){void 0===n&&(n=!1),oe(x.props.triggerTarget||o).forEach(function(e){e.addEventListener(t,i,n),w.push({node:e,eventType:t,handler:i,options:n})})}function H(){F()&&(M("touchstart",U,{passive:!0}),M("touchend",Q,{passive:!0})),x.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(M(e,U),e){case"mouseenter":M("mouseleave",Q);break;case"focus":M(ke?"focusout":"blur",X);break;case"focusin":M("focusout",X)}})}function q(){w.forEach(function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)}),w=[]}function U(t){var e,i=!1;!x.state.isEnabled||Y(t)||f||(e="focus"===(null==s?void 0:s.type),l=(s=t).currentTarget,P(),!x.state.isVisible&&pe(t)&&xe.forEach(function(e){return e(t)}),"click"===t.type&&(x.props.trigger.indexOf("mouseenter")<0||g)&&!1!==x.props.hideOnClick&&x.state.isVisible?i=!0:Z(t),"click"===t.type&&(g=!i),i&&!e&&O(t))}function G(e){var r,l,t=e.target,t=S().contains(t)||c.contains(t);"mousemove"===e.type&&t||(t=A().concat(c).map(function(e){var t=null==(t=e._tippy.popperInstance)?void 0:t.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:m}:null}).filter(Boolean),r=e.clientX,l=e.clientY,t.every(function(e){var t,i,n,s=e.popperRect,a=e.popperState,e=e.props.interactiveBorder,o=le(a.placement),a=a.modifiersData.offset;return!a||(t="bottom"===o?a.top.y:0,i="top"===o?a.bottom.y:0,n="right"===o?a.left.x:0,o="left"===o?a.right.x:0,s.top-l+t>e)||e<l-s.bottom-i||e<s.left-r+n||e<r-s.right-o})&&(j(),O(e)))}function Q(e){Y(e)||0<=x.props.trigger.indexOf("click")&&g||(x.props.interactive?x.hideWithInteractivity(e):O(e))}function X(e){x.props.trigger.indexOf("focusin")<0&&e.target!==S()||x.props.interactive&&e.relatedTarget&&c.contains(e.relatedTarget)||O(e)}function Y(e){return!!fe.isTouch&&F()!==0<=e.type.indexOf("touch")}function K(){J();var e=x.props,t=e.popperOptions,i=e.placement,n=e.offset,s=e.getReferenceClientRect,e=e.moveTransition,a=C()?_e(c).arrow:null,s=s?{getBoundingClientRect:s,contextElement:s.contextElement||S()}:o,n=[{name:"offset",options:{offset:n}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!e}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,i=e.state;C()&&(t=k().box,["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?t.setAttribute("data-placement",i.placement):i.attributes.popper["data-popper-"+e]?t.setAttribute("data-"+e,""):t.removeAttribute("data-"+e)}),i.attributes.popper={})}}];C()&&a&&n.push({name:"arrow",options:{element:a,padding:3}}),n.push.apply(n,(null==t?void 0:t.modifiers)||[]),x.popperInstance=ee.createPopper(s,c,Object.assign({},t,{placement:i,onFirstUpdate:r,modifiers:n}))}function J(){x.popperInstance&&(x.popperInstance.destroy(),x.popperInstance=null)}function A(){return de(c.querySelectorAll("[data-tippy-root]"))}function Z(e){x.clearDelayTimeouts(),e&&E("onTrigger",[x,e]),z();var e=V(!0),t=D(),i=t[0],t=t[1];(e=fe.isTouch&&"hold"===i&&t?t:e)?n=setTimeout(function(){x.show()},e):x.show()}function O(e){x.clearDelayTimeouts(),E("onUntrigger",[x,e]),x.state.isVisible?0<=x.props.trigger.indexOf("mouseenter")&&0<=x.props.trigger.indexOf("click")&&0<=["mouseleave","mousemove"].indexOf(e.type)&&g||((e=V(!1))?t=setTimeout(function(){x.state.isVisible&&x.hide()},e):i=requestAnimationFrame(function(){x.hide()})):L()}}function y(e,t){var i,n,s=be.plugins.concat((t=void 0===t?{}:t).plugins||[]),a=("production"!==je.env.NODE_ENV&&(o=!(i=e),n="[object Object]"===Object.prototype.toString.call(i)&&!i.addEventListener,we(o,["tippy() was passed","`"+String(i)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),we(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" ")),C(t,s)),document.addEventListener("touchstart",p,te),window.addEventListener("blur",f),Object.assign({},t,{plugins:s})),o=u(e),t=("production"!==je.env.NODE_ENV&&(i=r(a.content),n=1<o.length,ye(i&&n,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: ()=> element.cloneNode(true)"].join(" "))),o.reduce(function(e,t){t=t&&I(t,a);return t&&e.push(t),e},[]));return r(e)?t[0]:t}y.defaultProps=be,y.setDefaultProps=function(t){"production"!==je.env.NODE_ENV&&C(t,[]),Object.keys(t).forEach(function(e){be[e]=t[e]})},y.currentInput=fe;var E=Object.assign({},ee.applyStyles,{effect:function(e){var e=e.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow)}}),P={mouseover:"mouseenter",focusin:"focus",click:"click"};var j={name:"animateFill",defaultValue:!1,fn:function(e){var i,n,s,t;return null!=(t=e.props.render)&&t.$$tippy?(t=_e(e.popper),i=t.box,n=t.content,s=e.props.animateFill?((t=ue()).className=a,me([t],"hidden"),t):null,{onCreate:function(){s&&(i.insertBefore(s,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){var e,t;s&&(e=i.style.transitionDuration,t=Number(e.replace("ms","")),n.style.transitionDelay=Math.round(t/10)+"ms",s.style.transitionDuration=e,me([s],"visible"))},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&me([s],"hidden")}}):("production"!==je.env.NODE_ENV&&we(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{})}};var m={clientX:0,clientY:0},g=[];function T(e){var t=e.clientX;m={clientX:t,clientY:e.clientY}}var L={name:"followCursor",defaultValue:!1,fn:function(i){var c=i.reference,t=Se(i.props.triggerTarget||c),n=!1,s=!1,e=!0,a=i.props;function o(){return"initial"===i.props.followCursor&&i.state.isVisible}function r(){t.addEventListener("mousemove",u)}function l(){t.removeEventListener("mousemove",u)}function d(){n=!0,i.setProps({getReferenceClientRect:null}),n=!1}function u(e){var t=!e.target||c.contains(e.target),a=i.props.followCursor,o=e.clientX,r=e.clientY,e=c.getBoundingClientRect(),l=o-e.left,d=r-e.top;!t&&i.props.interactive||i.setProps({getReferenceClientRect:function(){var e=c.getBoundingClientRect(),t=o,i=r,n=("initial"===a&&(t=e.left+l,i=e.top+d),"horizontal"===a?e.top:i),s="vertical"===a?e.right:t,i="horizontal"===a?e.bottom:i,e="vertical"===a?e.left:t;return{width:s-e,height:i-n,top:n,right:s,bottom:i,left:e}}})}function p(){i.props.followCursor&&(g.push({instance:i,doc:t}),t.addEventListener("mousemove",T))}function h(){0===(g=g.filter(function(e){return e.instance!==i})).filter(function(e){return e.doc===t}).length&&t.removeEventListener("mousemove",T)}return{onCreate:p,onDestroy:h,onBeforeUpdate:function(){a=i.props},onAfterUpdate:function(e,t){t=t.followCursor;n||void 0!==t&&a.followCursor!==t&&(h(),t?(p(),!i.state.isMounted||s||o()||r()):(l(),d()))},onMount:function(){i.props.followCursor&&!s&&(e&&(u(m),e=!1),o()||r())},onTrigger:function(e,t){pe(t)&&(m={clientX:t.clientX,clientY:t.clientY}),s="focus"===t.type},onHidden:function(){i.props.followCursor&&(d(),l(),e=!0)}}}};var M={name:"inlinePositioning",defaultValue:!1,fn:function(s){var t,h=s.reference;var m=-1,i=!1,n=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(e){var p=e.state;s.props.inlinePositioning&&(-1!==n.indexOf(p.placement)&&(n=[]),t!==p.placement&&-1===n.indexOf(p.placement)&&(n.push(p.placement),s.setProps({getReferenceClientRect:function(){var t=le(p.placement),e=h.getBoundingClientRect(),i=de(h.getClientRects()),n=m;if(i.length<2||null===t)return e;if(2===i.length&&0<=n&&i[0].left>i[1].right)return i[n]||e;switch(t){case"top":case"bottom":var s=i[0],a=i[i.length-1],o="top"===t,r=s.top,l=a.bottom,d=(o?s:a).left,o=(o?s:a).right;return{top:r,bottom:l,left:d,right:o,width:o-d,height:l-r};case"left":case"right":var c=Math.min.apply(Math,i.map(function(e){return e.left})),u=Math.max.apply(Math,i.map(function(e){return e.right})),s=i.filter(function(e){return"left"===t?e.left===c:e.right===u}),a=s[0].top,o=s[s.length-1].bottom;return{top:a,bottom:o,left:c,right:u,width:u-c,height:o-a};default:return e}}})),t=p.placement)}};function e(){var e,t;i||(e=s.props,t=a,e={popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(e=e.popperOptions)?void 0:e.modifiers)||[]).filter(function(e){return e.name!==t.name}),[t])})},i=!0,s.setProps(e),i=!1)}return{onCreate:e,onAfterUpdate:e,onTrigger:function(e,t){var i,n;pe(t)&&(i=(n=de(s.reference.getClientRects())).find(function(e){return e.left-2<=t.clientX&&e.right+2>=t.clientX&&e.top-2<=t.clientY&&e.bottom+2>=t.clientY}),n=n.indexOf(i),m=-1<n?n:m)},onHidden:function(){m=-1}}}};var A={name:"sticky",defaultValue:!1,fn:function(i){var n=i.reference,s=i.popper;function a(e){return!0===i.props.sticky||i.props.sticky===e}var o=null,r=null;function l(){var e=a("reference")?(i.popperInstance?i.popperInstance.state.elements.reference:n).getBoundingClientRect():null,t=a("popper")?s.getBoundingClientRect():null;(e&&O(o,e)||t&&O(r,t))&&i.popperInstance&&i.popperInstance.update(),o=e,r=t,i.state.isMounted&&requestAnimationFrame(l)}return{onMount:function(){i.props.sticky&&l()}}}};function O(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}y.setDefaultProps({render:e}),F.animateFill=j,F.createSingleton=function(e,t){void 0===t&&(t={}),"production"!==je.env.NODE_ENV&&we(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var s,a=e,n=[],o=[],r=t.overrides,i=[],l=!1;function d(){o=a.map(function(e){return oe(e.props.triggerTarget||e.reference)}).reduce(function(e,t){return e.concat(t)},[])}function c(){n=a.map(function(e){return e.reference})}function u(t){a.forEach(function(e){t?e.enable():e.disable()})}function p(n){return a.map(function(t){var i=t.setProps;return t.setProps=function(e){i(e),t.reference===s&&n.setProps(e)},function(){t.setProps=i}})}function h(e,t){var i=o.indexOf(t);t!==s&&(s=t,t=(r||[]).concat("content").reduce(function(e,t){return e[t]=a[i].props[t],e},{}),e.setProps(Object.assign({},t,{getReferenceClientRect:"function"==typeof t.getReferenceClientRect?t.getReferenceClientRect:function(){var e;return null==(e=n[i])?void 0:e.getBoundingClientRect()}})))}u(!1),c(),d();var e={fn:function(){return{onDestroy:function(){u(!0)},onHidden:function(){s=null},onClickOutside:function(e){e.props.showOnCreate&&!l&&(l=!0,s=null)},onShow:function(e){e.props.showOnCreate&&!l&&(l=!0,h(e,n[0]))},onTrigger:function(e,t){h(e,t.currentTarget)}}}},m=y(ue(),Object.assign({},v(t,["overrides"]),{plugins:[e].concat(t.plugins||[]),triggerTarget:o,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(e=t.popperOptions)?void 0:e.modifiers)||[],[E])})})),g=m.show,f=(m.show=function(e){var t;return g(),s||null!=e?s&&null==e?void 0:"number"==typeof e?n[e]&&h(m,n[e]):0<=a.indexOf(e)?(t=e.reference,h(m,t)):0<=n.indexOf(e)?h(m,e):void 0:h(m,n[0])},m.showNext=function(){var e=n[0];if(!s)return m.show(0);var t=n.indexOf(s);m.show(n[t+1]||e)},m.showPrevious=function(){var e=n[n.length-1];if(!s)return m.show(e);var t=n.indexOf(s),t=n[t-1]||e;m.show(t)},m.setProps);return m.setProps=function(e){r=e.overrides||r,f(e)},m.setInstances=function(e){u(!0),i.forEach(function(e){return e()}),a=e,u(!1),c(),d(),i=p(m),m.setProps({triggerTarget:o})},i=p(m),m},F.default=y,F.delegate=function(e,n){"production"!==je.env.NODE_ENV&&we(!(n&&n.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var s=[],a=[],o=!1,r=n.target,t=v(n,["target"]),i=Object.assign({},t,{trigger:"manual",touch:!1}),l=Object.assign({touch:be.touch},t,{showOnCreate:!0});function d(e){var t,i;e.target&&!o&&(t=e.target.closest(r))&&(i=t.getAttribute("data-tippy-trigger")||n.trigger||be.trigger,t._tippy||"touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&i.indexOf(P[e.type])<0||(i=y(t,l))&&(a=a.concat(i)))}function c(e,t,i,n){e.addEventListener(t,i,n=void 0===n?!1:n),s.push({node:e,eventType:t,handler:i,options:n})}return oe(t=y(e,i)).forEach(function(e){var t=e.destroy,i=e.enable,n=e.disable;e.destroy=function(e){(e=void 0===e?!0:e)&&a.forEach(function(e){e.destroy()}),a=[],s.forEach(function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)}),s=[],t()},e.enable=function(){i(),a.forEach(function(e){return e.enable()}),o=!1},e.disable=function(){n(),a.forEach(function(e){return e.disable()}),o=!0},c(e=(e=e).reference,"touchstart",d,te),c(e,"mouseover",d),c(e,"focusin",d),c(e,"click",d)}),t},F.followCursor=L,F.hideAll=function(e){var e=void 0===e?{}:e,i=e.exclude,n=e.duration;Ce.forEach(function(e){var t=!1;(t=i?c(i)?e.reference===i:e.popper===i.popper:t)||(t=e.props.duration,e.setProps({duration:n}),e.hide(),e.state.isDestroyed)||e.setProps({duration:t})})},F.inlinePositioning=M,F.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',F.sticky=A}.call(this)}.call(this,D("_process"))},{"@popperjs/core":86,_process:109}]},{},[1]);
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=n()}(this,(function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function n(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var a=Array(e),i=0;for(n=0;n<t;n++)for(var o=arguments[n],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a}var t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],a={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var n=new Date(e.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var t=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var n=e%100;if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=function(e,n){return void 0===n&&(n=2),("000"+e).slice(-1*n)},r=function(e){return!0===e?1:0};function l(e,n){var t;return function(){var a=this,i=arguments;clearTimeout(t),t=setTimeout((function(){return e.apply(a,i)}),n)}}var c=function(e){return e instanceof Array?e:[e]};function s(e,n,t){if(!0===t)return e.classList.add(n);e.classList.remove(n)}function d(e,n,t){var a=window.document.createElement(e);return n=n||"",t=t||"",a.className=n,void 0!==t&&(a.textContent=t),a}function u(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function f(e,n){return n(e)?e:e.parentNode?f(e.parentNode,n):void 0}function m(e,n){var t=d("div","numInputWrapper"),a=d("input","numInput "+e),i=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==n)for(var r in n)a.setAttribute(r,n[r]);return t.appendChild(a),t.appendChild(i),t.appendChild(o),t}function g(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(n){return e.target}}var p=function(){},h=function(e,n,t){return t.months[n?"shorthand":"longhand"][e]},v={D:p,F:function(e,n,t){e.setMonth(t.months.longhand.indexOf(n))},G:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},H:function(e,n){e.setHours(parseFloat(n))},J:function(e,n){e.setDate(parseFloat(n))},K:function(e,n,t){e.setHours(e.getHours()%12+12*r(new RegExp(t.amPM[1],"i").test(n)))},M:function(e,n,t){e.setMonth(t.months.shorthand.indexOf(n))},S:function(e,n){e.setSeconds(parseFloat(n))},U:function(e,n){return new Date(1e3*parseFloat(n))},W:function(e,n,t){var a=parseInt(n),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+t.firstDayOfWeek),i},Y:function(e,n){e.setFullYear(parseFloat(n))},Z:function(e,n){return new Date(n)},d:function(e,n){e.setDate(parseFloat(n))},h:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},i:function(e,n){e.setMinutes(parseFloat(n))},j:function(e,n){e.setDate(parseFloat(n))},l:p,m:function(e,n){e.setMonth(parseFloat(n)-1)},n:function(e,n){e.setMonth(parseFloat(n)-1)},s:function(e,n){e.setSeconds(parseFloat(n))},u:function(e,n){return new Date(parseFloat(n))},w:p,y:function(e,n){e.setFullYear(2e3+parseFloat(n))}},D={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},w={Z:function(e){return e.toISOString()},D:function(e,n,t){return n.weekdays.shorthand[w.w(e,n,t)]},F:function(e,n,t){return h(w.n(e,n,t)-1,!1,n)},G:function(e,n,t){return o(w.h(e,n,t))},H:function(e){return o(e.getHours())},J:function(e,n){return void 0!==n.ordinal?e.getDate()+n.ordinal(e.getDate()):e.getDate()},K:function(e,n){return n.amPM[r(e.getHours()>11)]},M:function(e,n){return h(e.getMonth(),!0,n)},S:function(e){return o(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,n,t){return t.getWeek(e)},Y:function(e){return o(e.getFullYear(),4)},d:function(e){return o(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return o(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,n){return n.weekdays.longhand[e.getDay()]},m:function(e){return o(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},b=function(e){var n=e.config,t=void 0===n?a:n,o=e.l10n,r=void 0===o?i:o,l=e.isMobile,c=void 0!==l&&l;return function(e,n,a){var i=a||r;return void 0===t.formatDate||c?n.split("").map((function(n,a,o){return w[n]&&"\\"!==o[a-1]?w[n](e,i,t):"\\"!==n?n:""})).join(""):t.formatDate(e,n,i)}},C=function(e){var n=e.config,t=void 0===n?a:n,o=e.l10n,r=void 0===o?i:o;return function(e,n,i,o){if(0===e||e){var l,c=o||r,s=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var d=n||(t||a).dateFormat,u=String(e).trim();if("today"===u)l=new Date,i=!0;else if(t&&t.parseDate)l=t.parseDate(e,d);else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else{for(var f=void 0,m=[],g=0,p=0,h="";g<d.length;g++){var w=d[g],b="\\"===w,C="\\"===d[g-1]||b;if(D[w]&&!C){h+=D[w];var M=new RegExp(h).exec(e);M&&(f=!0)&&m["Y"!==w?"push":"unshift"]({fn:v[w],val:M[++p]})}else b||(h+=".")}l=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),m.forEach((function(e){var n=e.fn,t=e.val;return l=n(l,t,c)||l})),l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===i&&l.setHours(0,0,0,0),l;t.errorHandler(new Error("Invalid date provided: "+s))}}};function M(e,n,t){return void 0===t&&(t=!0),!1!==t?new Date(e.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):e.getTime()-n.getTime()}var y=function(e,n,t){return 3600*e+60*n+t},x=864e5;function E(e){var n=e.defaultHour,t=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var i=e.minDate.getHours(),o=e.minDate.getMinutes(),r=e.minDate.getSeconds();n<i&&(n=i),n===i&&t<o&&(t=o),n===i&&t===o&&a<r&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var l=e.maxDate.getHours(),c=e.maxDate.getMinutes();(n=Math.min(n,l))===l&&(t=Math.min(c,t)),n===l&&t===c&&(a=e.maxDate.getSeconds())}return{hours:n,minutes:t,seconds:a}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(n){n&&Object.keys(n).forEach((function(t){return e[t]=n[t]}))},i=0,o=n;i<o.length;i++){var r=o[i];a(r)}return e});function k(p,v){var w={config:e(e({},a),I.defaultConfig),l10n:i};function k(){var e;return(null===(e=w.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function T(e){return e.bind(w)}function S(){var e=w.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==w.calendarContainer&&(w.calendarContainer.style.visibility="hidden",w.calendarContainer.style.display="block"),void 0!==w.daysContainer){var n=(w.days.offsetWidth+1)*e.showMonths;w.daysContainer.style.width=n+"px",w.calendarContainer.style.width=n+(void 0!==w.weekWrapper?w.weekWrapper.offsetWidth:0)+"px",w.calendarContainer.style.removeProperty("visibility"),w.calendarContainer.style.removeProperty("display")}}))}function _(e){if(0===w.selectedDates.length){var n=void 0===w.config.minDate||M(new Date,w.config.minDate)>=0?new Date:new Date(w.config.minDate.getTime()),t=E(w.config);n.setHours(t.hours,t.minutes,t.seconds,n.getMilliseconds()),w.selectedDates=[n],w.latestSelectedDateObj=n}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var n="keydown"===e.type,t=g(e),a=t;void 0!==w.amPM&&t===w.amPM&&(w.amPM.textContent=w.l10n.amPM[r(w.amPM.textContent===w.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),l=parseFloat(a.getAttribute("max")),c=parseFloat(a.getAttribute("step")),s=parseInt(a.value,10),d=e.delta||(n?38===e.which?1:-1:0),u=s+c*d;if(void 0!==a.value&&2===a.value.length){var f=a===w.hourElement,m=a===w.minuteElement;u<i?(u=l+u+r(!f)+(r(f)&&r(!w.amPM)),m&&L(void 0,-1,w.hourElement)):u>l&&(u=a===w.hourElement?u-l-r(!w.amPM):i,m&&L(void 0,1,w.hourElement)),w.amPM&&f&&(1===c?u+s===23:Math.abs(u-s)>c)&&(w.amPM.textContent=w.l10n.amPM[r(w.amPM.textContent===w.l10n.amPM[0])]),a.value=o(u)}}(e);var a=w._input.value;O(),ye(),w._input.value!==a&&w._debouncedChange()}function O(){if(void 0!==w.hourElement&&void 0!==w.minuteElement){var e,n,t=(parseInt(w.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(w.minuteElement.value,10)||0)%60,i=void 0!==w.secondElement?(parseInt(w.secondElement.value,10)||0)%60:0;void 0!==w.amPM&&(e=t,n=w.amPM.textContent,t=e%12+12*r(n===w.l10n.amPM[1]));var o=void 0!==w.config.minTime||w.config.minDate&&w.minDateHasTime&&w.latestSelectedDateObj&&0===M(w.latestSelectedDateObj,w.config.minDate,!0),l=void 0!==w.config.maxTime||w.config.maxDate&&w.maxDateHasTime&&w.latestSelectedDateObj&&0===M(w.latestSelectedDateObj,w.config.maxDate,!0);if(void 0!==w.config.maxTime&&void 0!==w.config.minTime&&w.config.minTime>w.config.maxTime){var c=y(w.config.minTime.getHours(),w.config.minTime.getMinutes(),w.config.minTime.getSeconds()),s=y(w.config.maxTime.getHours(),w.config.maxTime.getMinutes(),w.config.maxTime.getSeconds()),d=y(t,a,i);if(d>s&&d<c){var u=function(e){var n=Math.floor(e/3600),t=(e-3600*n)/60;return[n,t,e-3600*n-60*t]}(c);t=u[0],a=u[1],i=u[2]}}else{if(l){var f=void 0!==w.config.maxTime?w.config.maxTime:w.config.maxDate;(t=Math.min(t,f.getHours()))===f.getHours()&&(a=Math.min(a,f.getMinutes())),a===f.getMinutes()&&(i=Math.min(i,f.getSeconds()))}if(o){var m=void 0!==w.config.minTime?w.config.minTime:w.config.minDate;(t=Math.max(t,m.getHours()))===m.getHours()&&a<m.getMinutes()&&(a=m.getMinutes()),a===m.getMinutes()&&(i=Math.max(i,m.getSeconds()))}}A(t,a,i)}}function F(e){var n=e||w.latestSelectedDateObj;n&&n instanceof Date&&A(n.getHours(),n.getMinutes(),n.getSeconds())}function A(e,n,t){void 0!==w.latestSelectedDateObj&&w.latestSelectedDateObj.setHours(e%24,n,t||0,0),w.hourElement&&w.minuteElement&&!w.isMobile&&(w.hourElement.value=o(w.config.time_24hr?e:(12+e)%12+12*r(e%12==0)),w.minuteElement.value=o(n),void 0!==w.amPM&&(w.amPM.textContent=w.l10n.amPM[r(e>=12)]),void 0!==w.secondElement&&(w.secondElement.value=o(t)))}function N(e){var n=g(e),t=parseInt(n.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&ee(t)}function P(e,n,t,a){return n instanceof Array?n.forEach((function(n){return P(e,n,t,a)})):e instanceof Array?e.forEach((function(e){return P(e,n,t,a)})):(e.addEventListener(n,t,a),void w._handlers.push({remove:function(){return e.removeEventListener(n,t,a)}}))}function Y(){De("onChange")}function j(e,n){var t=void 0!==e?w.parseDate(e):w.latestSelectedDateObj||(w.config.minDate&&w.config.minDate>w.now?w.config.minDate:w.config.maxDate&&w.config.maxDate<w.now?w.config.maxDate:w.now),a=w.currentYear,i=w.currentMonth;try{void 0!==t&&(w.currentYear=t.getFullYear(),w.currentMonth=t.getMonth())}catch(e){e.message="Invalid date supplied: "+t,w.config.errorHandler(e)}n&&w.currentYear!==a&&(De("onYearChange"),q()),!n||w.currentYear===a&&w.currentMonth===i||De("onMonthChange"),w.redraw()}function H(e){var n=g(e);~n.className.indexOf("arrow")&&L(e,n.classList.contains("arrowUp")?1:-1)}function L(e,n,t){var a=e&&g(e),i=t||a&&a.parentNode&&a.parentNode.firstChild,o=we("increment");o.delta=n,i&&i.dispatchEvent(o)}function R(e,n,t,a){var i=ne(n,!0),o=d("span",e,n.getDate().toString());return o.dateObj=n,o.$i=a,o.setAttribute("aria-label",w.formatDate(n,w.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===M(n,w.now)&&(w.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,be(n)&&(o.classList.add("selected"),w.selectedDateElem=o,"range"===w.config.mode&&(s(o,"startRange",w.selectedDates[0]&&0===M(n,w.selectedDates[0],!0)),s(o,"endRange",w.selectedDates[1]&&0===M(n,w.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===w.config.mode&&function(e){return!("range"!==w.config.mode||w.selectedDates.length<2)&&(M(e,w.selectedDates[0])>=0&&M(e,w.selectedDates[1])<=0)}(n)&&!be(n)&&o.classList.add("inRange"),w.weekNumbers&&1===w.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&w.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+w.config.getWeek(n)+"</span>"),De("onDayCreate",o),o}function W(e){e.focus(),"range"===w.config.mode&&oe(e)}function B(e){for(var n=e>0?0:w.config.showMonths-1,t=e>0?w.config.showMonths:-1,a=n;a!=t;a+=e)for(var i=w.daysContainer.children[a],o=e>0?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&ne(c.dateObj))return c}}function J(e,n){var t=k(),a=te(t||document.body),i=void 0!==e?e:a?t:void 0!==w.selectedDateElem&&te(w.selectedDateElem)?w.selectedDateElem:void 0!==w.todayDateElem&&te(w.todayDateElem)?w.todayDateElem:B(n>0?1:-1);void 0===i?w._input.focus():a?function(e,n){for(var t=-1===e.className.indexOf("Month")?e.dateObj.getMonth():w.currentMonth,a=n>0?w.config.showMonths:-1,i=n>0?1:-1,o=t-w.currentMonth;o!=a;o+=i)for(var r=w.daysContainer.children[o],l=t-w.currentMonth===o?e.$i+n:n<0?r.children.length-1:0,c=r.children.length,s=l;s>=0&&s<c&&s!=(n>0?c:-1);s+=i){var d=r.children[s];if(-1===d.className.indexOf("hidden")&&ne(d.dateObj)&&Math.abs(e.$i-s)>=Math.abs(n))return W(d)}w.changeMonth(i),J(B(i),0)}(i,n):W(i)}function K(e,n){for(var t=(new Date(e,n,1).getDay()-w.l10n.firstDayOfWeek+7)%7,a=w.utils.getDaysInMonth((n-1+12)%12,e),i=w.utils.getDaysInMonth(n,e),o=window.document.createDocumentFragment(),r=w.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-t,u=0;s<=a;s++,u++)o.appendChild(R("flatpickr-day "+l,new Date(e,n-1,s),0,u));for(s=1;s<=i;s++,u++)o.appendChild(R("flatpickr-day",new Date(e,n,s),0,u));for(var f=i+1;f<=42-t&&(1===w.config.showMonths||u%7!=0);f++,u++)o.appendChild(R("flatpickr-day "+c,new Date(e,n+1,f%i),0,u));var m=d("div","dayContainer");return m.appendChild(o),m}function U(){if(void 0!==w.daysContainer){u(w.daysContainer),w.weekNumbers&&u(w.weekNumbers);for(var e=document.createDocumentFragment(),n=0;n<w.config.showMonths;n++){var t=new Date(w.currentYear,w.currentMonth,1);t.setMonth(w.currentMonth+n),e.appendChild(K(t.getFullYear(),t.getMonth()))}w.daysContainer.appendChild(e),w.days=w.daysContainer.firstChild,"range"===w.config.mode&&1===w.selectedDates.length&&oe()}}function q(){if(!(w.config.showMonths>1||"dropdown"!==w.config.monthSelectorType)){var e=function(e){return!(void 0!==w.config.minDate&&w.currentYear===w.config.minDate.getFullYear()&&e<w.config.minDate.getMonth())&&!(void 0!==w.config.maxDate&&w.currentYear===w.config.maxDate.getFullYear()&&e>w.config.maxDate.getMonth())};w.monthsDropdownContainer.tabIndex=-1,w.monthsDropdownContainer.innerHTML="";for(var n=0;n<12;n++)if(e(n)){var t=d("option","flatpickr-monthDropdown-month");t.value=new Date(w.currentYear,n).getMonth().toString(),t.textContent=h(n,w.config.shorthandCurrentMonth,w.l10n),t.tabIndex=-1,w.currentMonth===n&&(t.selected=!0),w.monthsDropdownContainer.appendChild(t)}}}function $(){var e,n=d("div","flatpickr-month"),t=window.document.createDocumentFragment();w.config.showMonths>1||"static"===w.config.monthSelectorType?e=d("span","cur-month"):(w.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),w.monthsDropdownContainer.setAttribute("aria-label",w.l10n.monthAriaLabel),P(w.monthsDropdownContainer,"change",(function(e){var n=g(e),t=parseInt(n.value,10);w.changeMonth(t-w.currentMonth),De("onMonthChange")})),q(),e=w.monthsDropdownContainer);var a=m("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",w.l10n.yearAriaLabel),w.config.minDate&&i.setAttribute("min",w.config.minDate.getFullYear().toString()),w.config.maxDate&&(i.setAttribute("max",w.config.maxDate.getFullYear().toString()),i.disabled=!!w.config.minDate&&w.config.minDate.getFullYear()===w.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),t.appendChild(o),n.appendChild(t),{container:n,yearElement:i,monthElement:e}}function V(){u(w.monthNav),w.monthNav.appendChild(w.prevMonthNav),w.config.showMonths&&(w.yearElements=[],w.monthElements=[]);for(var e=w.config.showMonths;e--;){var n=$();w.yearElements.push(n.yearElement),w.monthElements.push(n.monthElement),w.monthNav.appendChild(n.container)}w.monthNav.appendChild(w.nextMonthNav)}function z(){w.weekdayContainer?u(w.weekdayContainer):w.weekdayContainer=d("div","flatpickr-weekdays");for(var e=w.config.showMonths;e--;){var n=d("div","flatpickr-weekdaycontainer");w.weekdayContainer.appendChild(n)}return G(),w.weekdayContainer}function G(){if(w.weekdayContainer){var e=w.l10n.firstDayOfWeek,t=n(w.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=n(t.splice(e,t.length),t.splice(0,e)));for(var a=w.config.showMonths;a--;)w.weekdayContainer.children[a].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+t.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function Z(e,n){void 0===n&&(n=!0);var t=n?e:e-w.currentMonth;t<0&&!0===w._hidePrevMonthArrow||t>0&&!0===w._hideNextMonthArrow||(w.currentMonth+=t,(w.currentMonth<0||w.currentMonth>11)&&(w.currentYear+=w.currentMonth>11?1:-1,w.currentMonth=(w.currentMonth+12)%12,De("onYearChange"),q()),U(),De("onMonthChange"),Ce())}function Q(e){return w.calendarContainer.contains(e)}function X(e){if(w.isOpen&&!w.config.inline){var n=g(e),t=Q(n),a=!(n===w.input||n===w.altInput||w.element.contains(n)||e.path&&e.path.indexOf&&(~e.path.indexOf(w.input)||~e.path.indexOf(w.altInput)))&&!t&&!Q(e.relatedTarget),i=!w.config.ignoredFocusElements.some((function(e){return e.contains(n)}));a&&i&&(w.config.allowInput&&w.setDate(w._input.value,!1,w.config.altInput?w.config.altFormat:w.config.dateFormat),void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement&&""!==w.input.value&&void 0!==w.input.value&&_(),w.close(),w.config&&"range"===w.config.mode&&1===w.selectedDates.length&&w.clear(!1))}}function ee(e){if(!(!e||w.config.minDate&&e<w.config.minDate.getFullYear()||w.config.maxDate&&e>w.config.maxDate.getFullYear())){var n=e,t=w.currentYear!==n;w.currentYear=n||w.currentYear,w.config.maxDate&&w.currentYear===w.config.maxDate.getFullYear()?w.currentMonth=Math.min(w.config.maxDate.getMonth(),w.currentMonth):w.config.minDate&&w.currentYear===w.config.minDate.getFullYear()&&(w.currentMonth=Math.max(w.config.minDate.getMonth(),w.currentMonth)),t&&(w.redraw(),De("onYearChange"),q())}}function ne(e,n){var t;void 0===n&&(n=!0);var a=w.parseDate(e,void 0,n);if(w.config.minDate&&a&&M(a,w.config.minDate,void 0!==n?n:!w.minDateHasTime)<0||w.config.maxDate&&a&&M(a,w.config.maxDate,void 0!==n?n:!w.maxDateHasTime)>0)return!1;if(!w.config.enable&&0===w.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!w.config.enable,o=null!==(t=w.config.enable)&&void 0!==t?t:w.config.disable,r=0,l=void 0;r<o.length;r++){if("function"==typeof(l=o[r])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var c=w.parseDate(l,void 0,!0);return c&&c.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function te(e){return void 0!==w.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&w.daysContainer.contains(e))}function ae(e){var n=e.target===w._input,t=w._input.value.trimEnd()!==Me();!n||!t||e.relatedTarget&&Q(e.relatedTarget)||w.setDate(w._input.value,!0,e.target===w.altInput?w.config.altFormat:w.config.dateFormat)}function ie(e){var n=g(e),t=w.config.wrap?p.contains(n):n===w._input,a=w.config.allowInput,i=w.isOpen&&(!a||!t),o=w.config.inline&&t&&!a;if(13===e.keyCode&&t){if(a)return w.setDate(w._input.value,!0,n===w.altInput?w.config.altFormat:w.config.dateFormat),w.close(),n.blur();w.open()}else if(Q(n)||i||o){var r=!!w.timeContainer&&w.timeContainer.contains(n);switch(e.keyCode){case 13:r?(e.preventDefault(),_(),fe()):me(e);break;case 27:e.preventDefault(),fe();break;case 8:case 46:t&&!w.config.allowInput&&(e.preventDefault(),w.clear());break;case 37:case 39:if(r||t)w.hourElement&&w.hourElement.focus();else{e.preventDefault();var l=k();if(void 0!==w.daysContainer&&(!1===a||l&&te(l))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),Z(c),J(B(1),0)):J(void 0,c)}}break;case 38:case 40:e.preventDefault();var s=40===e.keyCode?1:-1;w.daysContainer&&void 0!==n.$i||n===w.input||n===w.altInput?e.ctrlKey?(e.stopPropagation(),ee(w.currentYear-s),J(B(1),0)):r||J(void 0,7*s):n===w.currentYearElement?ee(w.currentYear-s):w.config.enableTime&&(!r&&w.hourElement&&w.hourElement.focus(),_(e),w._debouncedChange());break;case 9:if(r){var d=[w.hourElement,w.minuteElement,w.secondElement,w.amPM].concat(w.pluginElements).filter((function(e){return e})),u=d.indexOf(n);if(-1!==u){var f=d[u+(e.shiftKey?-1:1)];e.preventDefault(),(f||w._input).focus()}}else!w.config.noCalendar&&w.daysContainer&&w.daysContainer.contains(n)&&e.shiftKey&&(e.preventDefault(),w._input.focus())}}if(void 0!==w.amPM&&n===w.amPM)switch(e.key){case w.l10n.amPM[0].charAt(0):case w.l10n.amPM[0].charAt(0).toLowerCase():w.amPM.textContent=w.l10n.amPM[0],O(),ye();break;case w.l10n.amPM[1].charAt(0):case w.l10n.amPM[1].charAt(0).toLowerCase():w.amPM.textContent=w.l10n.amPM[1],O(),ye()}(t||Q(n))&&De("onKeyDown",e)}function oe(e,n){if(void 0===n&&(n="flatpickr-day"),1===w.selectedDates.length&&(!e||e.classList.contains(n)&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():w.days.firstElementChild.dateObj.getTime(),a=w.parseDate(w.selectedDates[0],void 0,!0).getTime(),i=Math.min(t,w.selectedDates[0].getTime()),o=Math.max(t,w.selectedDates[0].getTime()),r=!1,l=0,c=0,s=i;s<o;s+=x)ne(new Date(s),!0)||(r=r||s>i&&s<o,s<a&&(!l||s>l)?l=s:s>a&&(!c||s<c)&&(c=s));Array.from(w.rContainer.querySelectorAll("*:nth-child(-n+"+w.config.showMonths+") > ."+n)).forEach((function(n){var i,o,s,d=n.dateObj.getTime(),u=l>0&&d<l||c>0&&d>c;if(u)return n.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){n.classList.remove(e)}));r&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){n.classList.remove(e)})),void 0!==e&&(e.classList.add(t<=w.selectedDates[0].getTime()?"startRange":"endRange"),a<t&&d===a?n.classList.add("startRange"):a>t&&d===a&&n.classList.add("endRange"),d>=l&&(0===c||d<=c)&&(o=a,s=t,(i=d)>Math.min(o,s)&&i<Math.max(o,s))&&n.classList.add("inRange")))}))}}function re(){!w.isOpen||w.config.static||w.config.inline||de()}function le(e){return function(n){var t=w.config["_"+e+"Date"]=w.parseDate(n,w.config.dateFormat),a=w.config["_"+("min"===e?"max":"min")+"Date"];void 0!==t&&(w["min"===e?"minDateHasTime":"maxDateHasTime"]=t.getHours()>0||t.getMinutes()>0||t.getSeconds()>0),w.selectedDates&&(w.selectedDates=w.selectedDates.filter((function(e){return ne(e)})),w.selectedDates.length||"min"!==e||F(t),ye()),w.daysContainer&&(ue(),void 0!==t?w.currentYearElement[e]=t.getFullYear().toString():w.currentYearElement.removeAttribute(e),w.currentYearElement.disabled=!!a&&void 0!==t&&a.getFullYear()===t.getFullYear())}}function ce(){return w.config.wrap?p.querySelector("[data-input]"):p}function se(){"object"!=typeof w.config.locale&&void 0===I.l10ns[w.config.locale]&&w.config.errorHandler(new Error("flatpickr: invalid locale "+w.config.locale)),w.l10n=e(e({},I.l10ns.default),"object"==typeof w.config.locale?w.config.locale:"default"!==w.config.locale?I.l10ns[w.config.locale]:void 0),D.D="("+w.l10n.weekdays.shorthand.join("|")+")",D.l="("+w.l10n.weekdays.longhand.join("|")+")",D.M="("+w.l10n.months.shorthand.join("|")+")",D.F="("+w.l10n.months.longhand.join("|")+")",D.K="("+w.l10n.amPM[0]+"|"+w.l10n.amPM[1]+"|"+w.l10n.amPM[0].toLowerCase()+"|"+w.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},v),JSON.parse(JSON.stringify(p.dataset||{}))).time_24hr&&void 0===I.defaultConfig.time_24hr&&(w.config.time_24hr=w.l10n.time_24hr),w.formatDate=b(w),w.parseDate=C({config:w.config,l10n:w.l10n})}function de(e){if("function"!=typeof w.config.position){if(void 0!==w.calendarContainer){De("onPreCalendarPosition");var n=e||w._positionElement,t=Array.prototype.reduce.call(w.calendarContainer.children,(function(e,n){return e+n.offsetHeight}),0),a=w.calendarContainer.offsetWidth,i=w.config.position.split(" "),o=i[0],r=i.length>1?i[1]:null,l=n.getBoundingClientRect(),c=window.innerHeight-l.bottom,d="above"===o||"below"!==o&&c<t&&l.top>t,u=window.pageYOffset+l.top+(d?-t-2:n.offsetHeight+2);if(s(w.calendarContainer,"arrowTop",!d),s(w.calendarContainer,"arrowBottom",d),!w.config.inline){var f=window.pageXOffset+l.left,m=!1,g=!1;"center"===r?(f-=(a-l.width)/2,m=!0):"right"===r&&(f-=a-l.width,g=!0),s(w.calendarContainer,"arrowLeft",!m&&!g),s(w.calendarContainer,"arrowCenter",m),s(w.calendarContainer,"arrowRight",g);var p=window.document.body.offsetWidth-(window.pageXOffset+l.right),h=f+a>window.document.body.offsetWidth,v=p+a>window.document.body.offsetWidth;if(s(w.calendarContainer,"rightMost",h),!w.config.static)if(w.calendarContainer.style.top=u+"px",h)if(v){var D=function(){for(var e=null,n=0;n<document.styleSheets.length;n++){var t=document.styleSheets[n];if(t.cssRules){try{t.cssRules}catch(e){continue}e=t;break}}return null!=e?e:(a=document.createElement("style"),document.head.appendChild(a),a.sheet);var a}();if(void 0===D)return;var b=window.document.body.offsetWidth,C=Math.max(0,b/2-a/2),M=D.cssRules.length,y="{left:"+l.left+"px;right:auto;}";s(w.calendarContainer,"rightMost",!1),s(w.calendarContainer,"centerMost",!0),D.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+y,M),w.calendarContainer.style.left=C+"px",w.calendarContainer.style.right="auto"}else w.calendarContainer.style.left="auto",w.calendarContainer.style.right=p+"px";else w.calendarContainer.style.left=f+"px",w.calendarContainer.style.right="auto"}}}else w.config.position(w,e)}function ue(){w.config.noCalendar||w.isMobile||(q(),Ce(),U())}function fe(){w._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(w.close,0):w.close()}function me(e){e.preventDefault(),e.stopPropagation();var n=f(g(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==n){var t=n,a=w.latestSelectedDateObj=new Date(t.dateObj.getTime()),i=(a.getMonth()<w.currentMonth||a.getMonth()>w.currentMonth+w.config.showMonths-1)&&"range"!==w.config.mode;if(w.selectedDateElem=t,"single"===w.config.mode)w.selectedDates=[a];else if("multiple"===w.config.mode){var o=be(a);o?w.selectedDates.splice(parseInt(o),1):w.selectedDates.push(a)}else"range"===w.config.mode&&(2===w.selectedDates.length&&w.clear(!1,!1),w.latestSelectedDateObj=a,w.selectedDates.push(a),0!==M(a,w.selectedDates[0],!0)&&w.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()})));if(O(),i){var r=w.currentYear!==a.getFullYear();w.currentYear=a.getFullYear(),w.currentMonth=a.getMonth(),r&&(De("onYearChange"),q()),De("onMonthChange")}if(Ce(),U(),ye(),i||"range"===w.config.mode||1!==w.config.showMonths?void 0!==w.selectedDateElem&&void 0===w.hourElement&&w.selectedDateElem&&w.selectedDateElem.focus():W(t),void 0!==w.hourElement&&void 0!==w.hourElement&&w.hourElement.focus(),w.config.closeOnSelect){var l="single"===w.config.mode&&!w.config.enableTime,c="range"===w.config.mode&&2===w.selectedDates.length&&!w.config.enableTime;(l||c)&&fe()}Y()}}w.parseDate=C({config:w.config,l10n:w.l10n}),w._handlers=[],w.pluginElements=[],w.loadedPlugins=[],w._bind=P,w._setHoursFromDate=F,w._positionCalendar=de,w.changeMonth=Z,w.changeYear=ee,w.clear=function(e,n){void 0===e&&(e=!0);void 0===n&&(n=!0);w.input.value="",void 0!==w.altInput&&(w.altInput.value="");void 0!==w.mobileInput&&(w.mobileInput.value="");w.selectedDates=[],w.latestSelectedDateObj=void 0,!0===n&&(w.currentYear=w._initialDate.getFullYear(),w.currentMonth=w._initialDate.getMonth());if(!0===w.config.enableTime){var t=E(w.config),a=t.hours,i=t.minutes,o=t.seconds;A(a,i,o)}w.redraw(),e&&De("onChange")},w.close=function(){w.isOpen=!1,w.isMobile||(void 0!==w.calendarContainer&&w.calendarContainer.classList.remove("open"),void 0!==w._input&&w._input.classList.remove("active"));De("onClose")},w.onMouseOver=oe,w._createElement=d,w.createDay=R,w.destroy=function(){void 0!==w.config&&De("onDestroy");for(var e=w._handlers.length;e--;)w._handlers[e].remove();if(w._handlers=[],w.mobileInput)w.mobileInput.parentNode&&w.mobileInput.parentNode.removeChild(w.mobileInput),w.mobileInput=void 0;else if(w.calendarContainer&&w.calendarContainer.parentNode)if(w.config.static&&w.calendarContainer.parentNode){var n=w.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else w.calendarContainer.parentNode.removeChild(w.calendarContainer);w.altInput&&(w.input.type="text",w.altInput.parentNode&&w.altInput.parentNode.removeChild(w.altInput),delete w.altInput);w.input&&(w.input.type=w.input._type,w.input.classList.remove("flatpickr-input"),w.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete w[e]}catch(e){}}))},w.isEnabled=ne,w.jumpToDate=j,w.updateValue=ye,w.open=function(e,n){void 0===n&&(n=w._positionElement);if(!0===w.isMobile){if(e){e.preventDefault();var t=g(e);t&&t.blur()}return void 0!==w.mobileInput&&(w.mobileInput.focus(),w.mobileInput.click()),void De("onOpen")}if(w._input.disabled||w.config.inline)return;var a=w.isOpen;w.isOpen=!0,a||(w.calendarContainer.classList.add("open"),w._input.classList.add("active"),De("onOpen"),de(n));!0===w.config.enableTime&&!0===w.config.noCalendar&&(!1!==w.config.allowInput||void 0!==e&&w.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return w.hourElement.select()}),50))},w.redraw=ue,w.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(w.config,e),e)void 0!==ge[a]&&ge[a].forEach((function(e){return e()}));else w.config[e]=n,void 0!==ge[e]?ge[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(w.config[e]=c(n));w.redraw(),ye(!0)},w.setDate=function(e,n,t){void 0===n&&(n=!1);void 0===t&&(t=w.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return w.clear(n);pe(e,t),w.latestSelectedDateObj=w.selectedDates[w.selectedDates.length-1],w.redraw(),j(void 0,n),F(),0===w.selectedDates.length&&w.clear(!1);ye(n),n&&De("onChange")},w.toggle=function(e){if(!0===w.isOpen)return w.close();w.open(e)};var ge={locale:[se,G],showMonths:[V,S,z],minDate:[j],maxDate:[j],positionElement:[ve],clickOpens:[function(){!0===w.config.clickOpens?(P(w._input,"focus",w.open),P(w._input,"click",w.open)):(w._input.removeEventListener("focus",w.open),w._input.removeEventListener("click",w.open))}]};function pe(e,n){var t=[];if(e instanceof Array)t=e.map((function(e){return w.parseDate(e,n)}));else if(e instanceof Date||"number"==typeof e)t=[w.parseDate(e,n)];else if("string"==typeof e)switch(w.config.mode){case"single":case"time":t=[w.parseDate(e,n)];break;case"multiple":t=e.split(w.config.conjunction).map((function(e){return w.parseDate(e,n)}));break;case"range":t=e.split(w.l10n.rangeSeparator).map((function(e){return w.parseDate(e,n)}))}else w.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));w.selectedDates=w.config.allowInvalidPreload?t:t.filter((function(e){return e instanceof Date&&ne(e,!1)})),"range"===w.config.mode&&w.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()}))}function he(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?w.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:w.parseDate(e.from,void 0),to:w.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ve(){w._positionElement=w.config.positionElement||w._input}function De(e,n){if(void 0!==w.config){var t=w.config[e];if(void 0!==t&&t.length>0)for(var a=0;t[a]&&a<t.length;a++)t[a](w.selectedDates,w.input.value,w,n);"onChange"===e&&(w.input.dispatchEvent(we("change")),w.input.dispatchEvent(we("input")))}}function we(e){var n=document.createEvent("Event");return n.initEvent(e,!0,!0),n}function be(e){for(var n=0;n<w.selectedDates.length;n++){var t=w.selectedDates[n];if(t instanceof Date&&0===M(t,e))return""+n}return!1}function Ce(){w.config.noCalendar||w.isMobile||!w.monthNav||(w.yearElements.forEach((function(e,n){var t=new Date(w.currentYear,w.currentMonth,1);t.setMonth(w.currentMonth+n),w.config.showMonths>1||"static"===w.config.monthSelectorType?w.monthElements[n].textContent=h(t.getMonth(),w.config.shorthandCurrentMonth,w.l10n)+" ":w.monthsDropdownContainer.value=t.getMonth().toString(),e.value=t.getFullYear().toString()})),w._hidePrevMonthArrow=void 0!==w.config.minDate&&(w.currentYear===w.config.minDate.getFullYear()?w.currentMonth<=w.config.minDate.getMonth():w.currentYear<w.config.minDate.getFullYear()),w._hideNextMonthArrow=void 0!==w.config.maxDate&&(w.currentYear===w.config.maxDate.getFullYear()?w.currentMonth+1>w.config.maxDate.getMonth():w.currentYear>w.config.maxDate.getFullYear()))}function Me(e){var n=e||(w.config.altInput?w.config.altFormat:w.config.dateFormat);return w.selectedDates.map((function(e){return w.formatDate(e,n)})).filter((function(e,n,t){return"range"!==w.config.mode||w.config.enableTime||t.indexOf(e)===n})).join("range"!==w.config.mode?w.config.conjunction:w.l10n.rangeSeparator)}function ye(e){void 0===e&&(e=!0),void 0!==w.mobileInput&&w.mobileFormatStr&&(w.mobileInput.value=void 0!==w.latestSelectedDateObj?w.formatDate(w.latestSelectedDateObj,w.mobileFormatStr):""),w.input.value=Me(w.config.dateFormat),void 0!==w.altInput&&(w.altInput.value=Me(w.config.altFormat)),!1!==e&&De("onValueUpdate")}function xe(e){var n=g(e),t=w.prevMonthNav.contains(n),a=w.nextMonthNav.contains(n);t||a?Z(t?-1:1):w.yearElements.indexOf(n)>=0?n.select():n.classList.contains("arrowUp")?w.changeYear(w.currentYear+1):n.classList.contains("arrowDown")&&w.changeYear(w.currentYear-1)}return function(){w.element=w.input=p,w.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e(e({},JSON.parse(JSON.stringify(p.dataset||{}))),v),o={};w.config.parseDate=i.parseDate,w.config.formatDate=i.formatDate,Object.defineProperty(w.config,"enable",{get:function(){return w.config._enable},set:function(e){w.config._enable=he(e)}}),Object.defineProperty(w.config,"disable",{get:function(){return w.config._disable},set:function(e){w.config._disable=he(e)}});var r="time"===i.mode;if(!i.dateFormat&&(i.enableTime||r)){var l=I.defaultConfig.dateFormat||a.dateFormat;o.dateFormat=i.noCalendar||r?"H:i"+(i.enableSeconds?":S":""):l+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||r)&&!i.altFormat){var s=I.defaultConfig.altFormat||a.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):s+" h:i"+(i.enableSeconds?":S":"")+" K"}Object.defineProperty(w.config,"minDate",{get:function(){return w.config._minDate},set:le("min")}),Object.defineProperty(w.config,"maxDate",{get:function(){return w.config._maxDate},set:le("max")});var d=function(e){return function(n){w.config["min"===e?"_minTime":"_maxTime"]=w.parseDate(n,"H:i:S")}};Object.defineProperty(w.config,"minTime",{get:function(){return w.config._minTime},set:d("min")}),Object.defineProperty(w.config,"maxTime",{get:function(){return w.config._maxTime},set:d("max")}),"time"===i.mode&&(w.config.noCalendar=!0,w.config.enableTime=!0);Object.assign(w.config,o,i);for(var u=0;u<n.length;u++)w.config[n[u]]=!0===w.config[n[u]]||"true"===w.config[n[u]];t.filter((function(e){return void 0!==w.config[e]})).forEach((function(e){w.config[e]=c(w.config[e]||[]).map(T)})),w.isMobile=!w.config.disableMobile&&!w.config.inline&&"single"===w.config.mode&&!w.config.disable.length&&!w.config.enable&&!w.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(u=0;u<w.config.plugins.length;u++){var f=w.config.plugins[u](w)||{};for(var m in f)t.indexOf(m)>-1?w.config[m]=c(f[m]).map(T).concat(w.config[m]):void 0===i[m]&&(w.config[m]=f[m])}i.altInputClass||(w.config.altInputClass=ce().className+" "+w.config.altInputClass);De("onParseConfig")}(),se(),function(){if(w.input=ce(),!w.input)return void w.config.errorHandler(new Error("Invalid input element specified"));w.input._type=w.input.type,w.input.type="text",w.input.classList.add("flatpickr-input"),w._input=w.input,w.config.altInput&&(w.altInput=d(w.input.nodeName,w.config.altInputClass),w._input=w.altInput,w.altInput.placeholder=w.input.placeholder,w.altInput.disabled=w.input.disabled,w.altInput.required=w.input.required,w.altInput.tabIndex=w.input.tabIndex,w.altInput.type="text",w.input.setAttribute("type","hidden"),!w.config.static&&w.input.parentNode&&w.input.parentNode.insertBefore(w.altInput,w.input.nextSibling));w.config.allowInput||w._input.setAttribute("readonly","readonly");ve()}(),function(){w.selectedDates=[],w.now=w.parseDate(w.config.now)||new Date;var e=w.config.defaultDate||("INPUT"!==w.input.nodeName&&"TEXTAREA"!==w.input.nodeName||!w.input.placeholder||w.input.value!==w.input.placeholder?w.input.value:null);e&&pe(e,w.config.dateFormat);w._initialDate=w.selectedDates.length>0?w.selectedDates[0]:w.config.minDate&&w.config.minDate.getTime()>w.now.getTime()?w.config.minDate:w.config.maxDate&&w.config.maxDate.getTime()<w.now.getTime()?w.config.maxDate:w.now,w.currentYear=w._initialDate.getFullYear(),w.currentMonth=w._initialDate.getMonth(),w.selectedDates.length>0&&(w.latestSelectedDateObj=w.selectedDates[0]);void 0!==w.config.minTime&&(w.config.minTime=w.parseDate(w.config.minTime,"H:i"));void 0!==w.config.maxTime&&(w.config.maxTime=w.parseDate(w.config.maxTime,"H:i"));w.minDateHasTime=!!w.config.minDate&&(w.config.minDate.getHours()>0||w.config.minDate.getMinutes()>0||w.config.minDate.getSeconds()>0),w.maxDateHasTime=!!w.config.maxDate&&(w.config.maxDate.getHours()>0||w.config.maxDate.getMinutes()>0||w.config.maxDate.getSeconds()>0)}(),w.utils={getDaysInMonth:function(e,n){return void 0===e&&(e=w.currentMonth),void 0===n&&(n=w.currentYear),1===e&&(n%4==0&&n%100!=0||n%400==0)?29:w.l10n.daysInMonth[e]}},w.isMobile||function(){var e=window.document.createDocumentFragment();if(w.calendarContainer=d("div","flatpickr-calendar"),w.calendarContainer.tabIndex=-1,!w.config.noCalendar){if(e.appendChild((w.monthNav=d("div","flatpickr-months"),w.yearElements=[],w.monthElements=[],w.prevMonthNav=d("span","flatpickr-prev-month"),w.prevMonthNav.innerHTML=w.config.prevArrow,w.nextMonthNav=d("span","flatpickr-next-month"),w.nextMonthNav.innerHTML=w.config.nextArrow,V(),Object.defineProperty(w,"_hidePrevMonthArrow",{get:function(){return w.__hidePrevMonthArrow},set:function(e){w.__hidePrevMonthArrow!==e&&(s(w.prevMonthNav,"flatpickr-disabled",e),w.__hidePrevMonthArrow=e)}}),Object.defineProperty(w,"_hideNextMonthArrow",{get:function(){return w.__hideNextMonthArrow},set:function(e){w.__hideNextMonthArrow!==e&&(s(w.nextMonthNav,"flatpickr-disabled",e),w.__hideNextMonthArrow=e)}}),w.currentYearElement=w.yearElements[0],Ce(),w.monthNav)),w.innerContainer=d("div","flatpickr-innerContainer"),w.config.weekNumbers){var n=function(){w.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",w.l10n.weekAbbreviation));var n=d("div","flatpickr-weeks");return e.appendChild(n),{weekWrapper:e,weekNumbers:n}}(),t=n.weekWrapper,a=n.weekNumbers;w.innerContainer.appendChild(t),w.weekNumbers=a,w.weekWrapper=t}w.rContainer=d("div","flatpickr-rContainer"),w.rContainer.appendChild(z()),w.daysContainer||(w.daysContainer=d("div","flatpickr-days"),w.daysContainer.tabIndex=-1),U(),w.rContainer.appendChild(w.daysContainer),w.innerContainer.appendChild(w.rContainer),e.appendChild(w.innerContainer)}w.config.enableTime&&e.appendChild(function(){w.calendarContainer.classList.add("hasTime"),w.config.noCalendar&&w.calendarContainer.classList.add("noCalendar");var e=E(w.config);w.timeContainer=d("div","flatpickr-time"),w.timeContainer.tabIndex=-1;var n=d("span","flatpickr-time-separator",":"),t=m("flatpickr-hour",{"aria-label":w.l10n.hourAriaLabel});w.hourElement=t.getElementsByTagName("input")[0];var a=m("flatpickr-minute",{"aria-label":w.l10n.minuteAriaLabel});w.minuteElement=a.getElementsByTagName("input")[0],w.hourElement.tabIndex=w.minuteElement.tabIndex=-1,w.hourElement.value=o(w.latestSelectedDateObj?w.latestSelectedDateObj.getHours():w.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),w.minuteElement.value=o(w.latestSelectedDateObj?w.latestSelectedDateObj.getMinutes():e.minutes),w.hourElement.setAttribute("step",w.config.hourIncrement.toString()),w.minuteElement.setAttribute("step",w.config.minuteIncrement.toString()),w.hourElement.setAttribute("min",w.config.time_24hr?"0":"1"),w.hourElement.setAttribute("max",w.config.time_24hr?"23":"12"),w.hourElement.setAttribute("maxlength","2"),w.minuteElement.setAttribute("min","0"),w.minuteElement.setAttribute("max","59"),w.minuteElement.setAttribute("maxlength","2"),w.timeContainer.appendChild(t),w.timeContainer.appendChild(n),w.timeContainer.appendChild(a),w.config.time_24hr&&w.timeContainer.classList.add("time24hr");if(w.config.enableSeconds){w.timeContainer.classList.add("hasSeconds");var i=m("flatpickr-second");w.secondElement=i.getElementsByTagName("input")[0],w.secondElement.value=o(w.latestSelectedDateObj?w.latestSelectedDateObj.getSeconds():e.seconds),w.secondElement.setAttribute("step",w.minuteElement.getAttribute("step")),w.secondElement.setAttribute("min","0"),w.secondElement.setAttribute("max","59"),w.secondElement.setAttribute("maxlength","2"),w.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),w.timeContainer.appendChild(i)}w.config.time_24hr||(w.amPM=d("span","flatpickr-am-pm",w.l10n.amPM[r((w.latestSelectedDateObj?w.hourElement.value:w.config.defaultHour)>11)]),w.amPM.title=w.l10n.toggleTitle,w.amPM.tabIndex=-1,w.timeContainer.appendChild(w.amPM));return w.timeContainer}());s(w.calendarContainer,"rangeMode","range"===w.config.mode),s(w.calendarContainer,"animate",!0===w.config.animate),s(w.calendarContainer,"multiMonth",w.config.showMonths>1),w.calendarContainer.appendChild(e);var i=void 0!==w.config.appendTo&&void 0!==w.config.appendTo.nodeType;if((w.config.inline||w.config.static)&&(w.calendarContainer.classList.add(w.config.inline?"inline":"static"),w.config.inline&&(!i&&w.element.parentNode?w.element.parentNode.insertBefore(w.calendarContainer,w._input.nextSibling):void 0!==w.config.appendTo&&w.config.appendTo.appendChild(w.calendarContainer)),w.config.static)){var l=d("div","flatpickr-wrapper");w.element.parentNode&&w.element.parentNode.insertBefore(l,w.element),l.appendChild(w.element),w.altInput&&l.appendChild(w.altInput),l.appendChild(w.calendarContainer)}w.config.static||w.config.inline||(void 0!==w.config.appendTo?w.config.appendTo:window.document.body).appendChild(w.calendarContainer)}(),function(){w.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(w.element.querySelectorAll("[data-"+e+"]"),(function(n){return P(n,"click",w[e])}))}));if(w.isMobile)return void function(){var e=w.config.enableTime?w.config.noCalendar?"time":"datetime-local":"date";w.mobileInput=d("input",w.input.className+" flatpickr-mobile"),w.mobileInput.tabIndex=1,w.mobileInput.type=e,w.mobileInput.disabled=w.input.disabled,w.mobileInput.required=w.input.required,w.mobileInput.placeholder=w.input.placeholder,w.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",w.selectedDates.length>0&&(w.mobileInput.defaultValue=w.mobileInput.value=w.formatDate(w.selectedDates[0],w.mobileFormatStr));w.config.minDate&&(w.mobileInput.min=w.formatDate(w.config.minDate,"Y-m-d"));w.config.maxDate&&(w.mobileInput.max=w.formatDate(w.config.maxDate,"Y-m-d"));w.input.getAttribute("step")&&(w.mobileInput.step=String(w.input.getAttribute("step")));w.input.type="hidden",void 0!==w.altInput&&(w.altInput.type="hidden");try{w.input.parentNode&&w.input.parentNode.insertBefore(w.mobileInput,w.input.nextSibling)}catch(e){}P(w.mobileInput,"change",(function(e){w.setDate(g(e).value,!1,w.mobileFormatStr),De("onChange"),De("onClose")}))}();var e=l(re,50);w._debouncedChange=l(Y,300),w.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&P(w.daysContainer,"mouseover",(function(e){"range"===w.config.mode&&oe(g(e))}));P(w._input,"keydown",ie),void 0!==w.calendarContainer&&P(w.calendarContainer,"keydown",ie);w.config.inline||w.config.static||P(window,"resize",e);void 0!==window.ontouchstart?P(window.document,"touchstart",X):P(window.document,"mousedown",X);P(window.document,"focus",X,{capture:!0}),!0===w.config.clickOpens&&(P(w._input,"focus",w.open),P(w._input,"click",w.open));void 0!==w.daysContainer&&(P(w.monthNav,"click",xe),P(w.monthNav,["keyup","increment"],N),P(w.daysContainer,"click",me));if(void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement){var n=function(e){return g(e).select()};P(w.timeContainer,["increment"],_),P(w.timeContainer,"blur",_,{capture:!0}),P(w.timeContainer,"click",H),P([w.hourElement,w.minuteElement],["focus","click"],n),void 0!==w.secondElement&&P(w.secondElement,"focus",(function(){return w.secondElement&&w.secondElement.select()})),void 0!==w.amPM&&P(w.amPM,"click",(function(e){_(e)}))}w.config.allowInput&&P(w._input,"blur",ae)}(),(w.selectedDates.length||w.config.noCalendar)&&(w.config.enableTime&&F(w.config.noCalendar?w.latestSelectedDateObj:void 0),ye(!1)),S();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!w.isMobile&&n&&de(),De("onReady")}(),w}function T(e,n){for(var t=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<t.length;i++){var o=t[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=k(o,n||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return T(this,e)},HTMLElement.prototype.flatpickr=function(e){return T([this],e)});var I=function(e,n){return"string"==typeof e?T(window.document.querySelectorAll(e),n):e instanceof Node?T([e],n):T(e,n)};return I.defaultConfig={},I.l10ns={en:e({},i),default:e({},i)},I.localize=function(n){I.l10ns.default=e(e({},I.l10ns.default),n)},I.setDefaults=function(n){I.defaultConfig=e(e({},I.defaultConfig),n)},I.parseDate=C({}),I.formatDate=b({}),I.compareDates=M,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return T(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=I),I}));