!function(t){var o=function(o,s){var i,e,n,r,a=!1,c=!1,f=!1,p={},l={to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"},isRTL:!1,handleScrollbarWidth:!1},d=function(t,o,s){var i={},e=t[0].style;s.forEach((function(t){i[t]=void 0!==e[t]?e[t]:""})),t.data("css-backup-"+o,i)},m=function(t,o){return t.data("css-backup-"+o)};const u=()=>{if(r=b(i,"width"),n=i.offset().left,e.isRTL){const t=e.handleScrollbarWidth?window.innerWidth:document.body.offsetWidth;n=Math.max(t-r-n,0)}};var h=function(){p.$spacer=i.clone().addClass(e.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),i.after(p.$spacer)},y=function(){p.$spacer.remove()},k=function(){d(i,"unsticky",["position","width","margin-top","margin-bottom","top","bottom","inset-inline-start"]);const t={position:"fixed",width:r,marginTop:0,marginBottom:0};t[e.to]=e.offset,t["top"===e.to?"bottom":"top"]="",n&&(t["inset-inline-start"]=n+"px"),i.css(t).addClass(e.classes.stickyActive)},v=function(){i.css(m(i,"unsticky")).removeClass(e.classes.stickyActive)},b=function(t,o,s){var i=getComputedStyle(t[0]),e=parseFloat(i[o]),n="height"===o?["top","bottom"]:["left","right"],r=[];return"border-box"!==i.boxSizing&&r.push("border","padding"),s&&r.push("margin"),r.forEach((function(t){n.forEach((function(o){e+=parseFloat(i[t+"-"+o])}))})),e},w=function(t){var o=p.$window.scrollTop(),s=b(t,"height"),i=innerHeight,e=t.offset().top-o,n=e-i;return{top:{fromTop:e,fromBottom:n},bottom:{fromTop:e+s,fromBottom:n+s}}},g=function(){v(),y(),a=!1,i.trigger("sticky:unstick")},$=function(){var t=w(i),o="top"===e.to;if(c){(o?t.top.fromTop>e.offset:t.bottom.fromBottom<-e.offset)&&(p.$parent.css(m(p.$parent,"childNotFollowing")),i.css(m(i,"notFollowing")),c=!1)}else{var s=w(p.$parent),a=getComputedStyle(p.$parent[0]),f=parseFloat(a[o?"borderBottomWidth":"borderTopWidth"]),l=o?s.bottom.fromTop-f:s.top.fromBottom+f;(o?l<=t.bottom.fromTop:l>=t.top.fromBottom)&&function(){d(p.$parent,"childNotFollowing",["position"]),p.$parent.css("position","relative"),d(i,"notFollowing",["position","inset-inline-start","top","bottom"]);const t={position:"absolute"};if(n=p.$spacer.position().left,e.isRTL){const t=i.parent().outerWidth(),o=p.$spacer.position().left;r=p.$spacer.outerWidth(),n=Math.max(t-r-o,0)}t["inset-inline-start"]=n+"px",t[e.to]="",t["top"===e.to?"bottom":"top"]=0,i.css(t),c=!0}()}},T=function(){var t,o=e.offset;if(a){var s=w(p.$spacer);t="top"===e.to?s.top.fromTop-o:-s.bottom.fromBottom-o,e.parent&&$(),t>0&&g()}else{var n=w(i);(t="top"===e.to?n.top.fromTop-o:-n.bottom.fromBottom-o)<=0&&(u(),h(),k(),a=!0,i.trigger("sticky:stick"),e.parent&&$())}!function(t){f&&-t<e.effectsOffset?(i.removeClass(e.classes.stickyEffects),f=!1):!f&&-t>=e.effectsOffset&&(i.addClass(e.classes.stickyEffects),f=!0)}(t)},B=function(){T()},C=function(){a&&(v(),y(),u(),h(),k(),e.parent&&(c=!1,$()))};this.destroy=function(){a&&g(),p.$window.off("scroll",B).off("resize",C),i.removeClass(e.classes.sticky)},e=jQuery.extend(!0,l,s),i=t(o).addClass(e.classes.sticky),p.$window=t(window),e.parent&&(p.$parent=i.parent(),"parent"!==e.parent&&(p.$parent=p.$parent.closest(e.parent))),p.$window.on({scroll:B,resize:C}),T()};t.fn.sticky=function(s){var i="string"==typeof s;return this.each((function(){var e=t(this);if(i){var n=e.data("sticky");if(!n)throw Error("Trying to perform the `"+s+"` method prior to initialization");if(!n[s])throw ReferenceError("Method `"+s+"` not found in sticky instance");n[s].apply(n,Array.prototype.slice.call(arguments,1)),"destroy"===s&&e.removeData("sticky")}else e.data("sticky",new o(this,s))})),this},window.Sticky=o}(jQuery);
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function b(b){var i=".smartmenus_mouse";if(h||b)h&&b&&(a(document).off(i),h=!1);else{var j=!0,k=null,l={mousemove:function(b){var c={x:b.pageX,y:b.pageY,timeStamp:(new Date).getTime()};if(k){var d=Math.abs(k.x-c.x),g=Math.abs(k.y-c.y);if((d>0||g>0)&&d<=4&&g<=4&&c.timeStamp-k.timeStamp<=300&&(f=!0,j)){var h=a(b.target).closest("a");h.is("a")&&a.each(e,function(){if(a.contains(this.$root[0],h[0]))return this.itemEnter({currentTarget:h[0]}),!1}),j=!1}}k=c}};l[g?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(a){c(a.originalEvent)&&(f=!1)},a(document).on(d(l,i)),h=!0}}function c(a){return!/^(4|mouse)$/.test(a.pointerType)}function d(a,b){b||(b="");var c={};for(var d in a)c[d.split(" ").join(b+" ")+b]=a[d];return c}var e=[],f=!1,g="ontouchstart"in window,h=!1,i=window.requestAnimationFrame||function(a){return setTimeout(a,1e3/60)},j=window.cancelAnimationFrame||function(a){clearTimeout(a)},k=!!a.fn.animate;return a.SmartMenus=function(b,c){this.$root=a(b),this.opts=c,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 b.style||"webkitPerspective"in b.style,this.wasCollapsible=!1,this.init()},a.extend(a.SmartMenus,{hideAll:function(){a.each(e,function(){this.menuHideAll()})},destroy:function(){for(;e.length;)e[0].destroy();b(!0)},prototype:{init:function(c){var f=this;if(!c){e.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 g=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(d({"mouseover focusin":a.proxy(this.rootOver,this),"mouseout focusout":a.proxy(this.rootOut,this),keydown:a.proxy(this.rootKeyDown,this)},g)).on(d({mouseenter:a.proxy(this.itemEnter,this),mouseleave:a.proxy(this.itemLeave,this),mousedown:a.proxy(this.itemDown,this),focus:a.proxy(this.itemFocus,this),blur:a.proxy(this.itemBlur,this),click:a.proxy(this.itemClick,this)},g),"a"),g+=this.rootId,this.opts.hideOnClick&&a(document).on(d({touchstart:a.proxy(this.docTouchStart,this),touchmove:a.proxy(this.docTouchMove,this),touchend:a.proxy(this.docTouchEnd,this),click:a.proxy(this.docClick,this)},g)),a(window).on(d({"resize orientationchange":a.proxy(this.winResize,this)},g)),this.opts.subIndicators&&(this.$subArrow=a("<span/>").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),b()}if(this.$firstSub=this.$root.find("ul").each(function(){f.menuInit(a(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var h=/(index|default)\.[^#\?\/]*/i,i=/#.*/,j=window.location.href.replace(h,""),k=j.replace(i,"");this.$root.find("a:not(.mega-menu a)").each(function(){var b=this.href.replace(h,""),c=a(this);b!=j&&b!=k||(c.addClass("current"),f.opts.markCurrentTree&&c.parentsUntil("[data-smartmenus-id]","ul").each(function(){a(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(b){if(!b){var c=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(c),c+=this.rootId,a(document).off(c),a(window).off(c),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var d=this;this.$root.find("ul").each(function(){var b=a(this);b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.dataSM("shown-before")&&((d.opts.subMenusMinWidth||d.opts.subMenusMaxWidth)&&b.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(b.attr("id")||"").indexOf(d.accessIdPrefix)&&b.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 b=a(this);0==b.attr("id").indexOf(d.accessIdPrefix)&&b.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"),b||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),e.splice(a.inArray(this,e),1))},disable:function(b){if(!this.disabled){if(this.menuHideAll(),!b&&!this.opts.isPopup&&this.$root.is(":visible")){var c=this.$root.offset();this.$disableOverlay=a('<div class="sm-jquery-disable-overlay"/>').css({position:"absolute",top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(b){return this.$touchScrollingSub?void(this.$touchScrollingSub=null):void((this.visibleSubMenus.length&&!a.contains(this.$root[0],b.target)||a(b.target).closest("a").length)&&this.menuHideAll())},docTouchEnd:function(b){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||!a.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var c=this;this.hideTimeout=setTimeout(function(){c.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(a){if(this.lastTouch){var b=a.originalEvent.touches[0];this.lastTouch.x2=b.pageX,this.lastTouch.y2=b.pageY}},docTouchStart:function(a){var b=a.originalEvent.touches[0];this.lastTouch={x1:b.pageX,y1:b.pageY,target:b.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(b){for(var c=a(b).closest("ul");c.dataSM("in-mega");)c=c.parent().closest("ul");return c[0]||null},getHeight:function(a){return this.getOffset(a,!0)},getOffset:function(a,b){var c;"none"==a.css("display")&&(c={position:a[0].style.position,visibility:a[0].style.visibility},a.css({position:"absolute",visibility:"hidden"}).show());var d=a[0].getBoundingClientRect&&a[0].getBoundingClientRect(),e=d&&(b?d.height||d.bottom-d.top:d.width||d.right-d.left);return e||0===e||(e=b?a[0].offsetHeight:a[0].offsetWidth),c&&a.hide().css(c),e},getStartZIndex:function(a){var b=parseInt(this[a?"$root":"$firstSub"].css("z-index"));return!a&&isNaN(b)&&(b=parseInt(this.$root.css("z-index"))),isNaN(b)?1:b},getTouchPoint:function(a){return a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0]||a},getViewport:function(a){var b=a?"Height":"Width",c=document.documentElement["client"+b],d=window["inner"+b];return d&&(c=Math.min(c,d)),c},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(a){return this.getOffset(a)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(a){return this.handleEvents()&&!this.isLinkInMegaMenu(a)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var b="fixed"==this.$root.css("position");return b||this.$root.parentsUntil("body").each(function(){if("fixed"==a(this).css("position"))return b=!0,!1}),b},isLinkInMegaMenu:function(b){return a(this.getClosestMenu(b[0])).hasClass("mega-menu")},isTouchMode:function(){return!f||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(b,c){var d=b.closest("ul"),e=d.dataSM("level");if(e>1&&(!this.activatedItems[e-2]||this.activatedItems[e-2][0]!=d.dataSM("parent-a")[0])){var f=this;a(d.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(d).each(function(){f.itemActivate(a(this).dataSM("parent-a"))})}if(this.isCollapsible()&&!c||this.menuHideSubMenus(this.activatedItems[e-1]&&this.activatedItems[e-1][0]==b[0]?e:e-1),this.activatedItems[e-1]=b,this.$root.triggerHandler("activate.smapi",b[0])!==!1){var g=b.dataSM("sub");g&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(g)}},itemBlur:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&this.$root.triggerHandler("blur.smapi",c[0])},itemClick:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==c.closest("ul")[0])return this.$touchScrollingSub=null,b.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",c[0])===!1)return!1;var d=c.dataSM("sub"),e=!!d&&2==d.dataSM("level");if(d){var f=a(b.target).is(".sub-arrow"),g=this.isCollapsible(),h=/toggle$/.test(this.opts.collapsibleBehavior),i=/link$/.test(this.opts.collapsibleBehavior),j=/^accordion/.test(this.opts.collapsibleBehavior);if(d.is(":visible")){if(!g&&this.opts.showOnClick&&e)return this.menuHide(d),this.clickActivated=!1,this.focusActivated=!1,!1;if(g&&(h||f))return this.itemActivate(c,j),this.menuHide(d),!1}else if((!i||!g||f)&&(!g&&this.opts.showOnClick&&e&&(this.clickActivated=!0),this.itemActivate(c,j),d.is(":visible")))return this.focusActivated=!0,!1}return!(!g&&this.opts.showOnClick&&e||c.hasClass("disabled")||this.$root.triggerHandler("select.smapi",c[0])===!1)&&void 0}},itemDown:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&c.dataSM("mousedown",!0)},itemEnter:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var d=this;this.showTimeout=setTimeout(function(){d.itemActivate(c)},this.opts.showOnClick&&1==c.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",c[0])}},itemFocus:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(!this.focusActivated||this.isTouchMode()&&c.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==c[0]||this.itemActivate(c,!0),this.$root.triggerHandler("focus.smapi",c[0]))},itemLeave:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(this.isTouchMode()||(c[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),c.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",c[0]))},menuHide:function(b){if(this.$root.triggerHandler("beforehide.smapi",b[0])!==!1&&(k&&b.stop(!0,!0),"none"!=b.css("display"))){var c=function(){b.css("z-index","")};this.isCollapsible()?k&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,b,c):b.hide(this.opts.collapsibleHideDuration,c):k&&this.opts.hideFunction?this.opts.hideFunction.call(this,b,c):b.hide(this.opts.hideDuration,c),b.dataSM("scroll")&&(this.menuScrollStop(b),b.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),b.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),b.attr({"aria-expanded":"false","aria-hidden":"true"});var d=b.dataSM("level");this.activatedItems.splice(d-1,1),this.visibleSubMenus.splice(a.inArray(b,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",b[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var a=this.opts.isPopup?1:0,b=this.visibleSubMenus.length-1;b>=a;b--)this.menuHide(this.visibleSubMenus[b]);this.opts.isPopup&&(k&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(k&&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(a){for(var b=this.activatedItems.length-1;b>=a;b--){var c=this.activatedItems[b].dataSM("sub");c&&this.menuHide(c)}},menuInit:function(a){if(!a.dataSM("in-mega")){a.hasClass("mega-menu")&&a.find("ul").dataSM("in-mega",!0);for(var b=2,c=a[0];(c=c.parentNode.parentNode)!=this.$root[0];)b++;var d=a.prevAll("a").eq(-1);d.length||(d=a.prevAll().find("a").eq(-1)),d.addClass("has-submenu").dataSM("sub",a),a.dataSM("parent-a",d).dataSM("level",b).parent().dataSM("sub",a);var e=d.attr("id")||this.accessIdPrefix+ ++this.idInc,f=a.attr("id")||this.accessIdPrefix+ ++this.idInc;d.attr({id:e,"aria-haspopup":"true","aria-controls":f,"aria-expanded":"false"}),a.attr({id:f,role:"group","aria-hidden":"true","aria-labelledby":e,"aria-expanded":"false"}),this.opts.subIndicators&&d[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(b){var c,e,f=b.dataSM("parent-a"),h=f.closest("li"),i=h.parent(),j=b.dataSM("level"),k=this.getWidth(b),l=this.getHeight(b),m=f.offset(),n=m.left,o=m.top,p=this.getWidth(f),q=this.getHeight(f),r=a(window),s=r.scrollLeft(),t=r.scrollTop(),u=this.getViewportWidth(),v=this.getViewportHeight(),w=i.parent().is("[data-sm-horizontal-sub]")||2==j&&!i.hasClass("sm-vertical"),x=this.opts.rightToLeftSubMenus&&!h.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&h.is("[data-sm-reverse]"),y=2==j?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,z=2==j?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(w?(c=x?p-k-y:y,e=this.opts.bottomToTopSubMenus?-l-z:q+z):(c=x?y-k:p-y,e=this.opts.bottomToTopSubMenus?q-z-l:z),this.opts.keepInViewport){var A=n+c,B=o+e;if(x&&A<s?c=w?s-A+c:p-y:!x&&A+k>s+u&&(c=w?s+u-k-A+c:y-k),w||(l<v&&B+l>t+v?e+=t+v-l-B:(l>=v||B<t)&&(e+=t-B)),w&&(B+l>t+v+.49||B<t)||!w&&l>v+.49){var C=this;b.dataSM("scroll-arrows")||b.dataSM("scroll-arrows",a([a('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0],a('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]).on({mouseenter:function(){b.dataSM("scroll").up=a(this).hasClass("scroll-up"),C.menuScroll(b)},mouseleave:function(a){C.menuScrollStop(b),C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){a.preventDefault()}}).insertAfter(b));var D=".smartmenus_scroll";if(b.dataSM("scroll",{y:this.cssTransforms3d?0:e-q,step:1,itemH:q,subH:l,arrowDownH:this.getHeight(b.dataSM("scroll-arrows").eq(1))}).on(d({mouseover:function(a){C.menuScrollOver(b,a)},mouseout:function(a){C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){C.menuScrollMousewheel(b,a)}},D)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:c+(parseInt(b.css("border-left-width"))||0),width:k-(parseInt(b.css("border-left-width"))||0)-(parseInt(b.css("border-right-width"))||0),zIndex:b.css("z-index")}).eq(w&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var E={};E[g?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(a){C.menuScrollTouch(b,a)},b.css({"touch-action":"none","-ms-touch-action":"none"}).on(d(E,D))}}}b.css({top:"auto",left:"0",marginLeft:c,marginTop:e-q})},menuScroll:function(a,b,c){var d,e=a.dataSM("scroll"),g=a.dataSM("scroll-arrows"),h=e.up?e.upEnd:e.downEnd;if(!b&&e.momentum){if(e.momentum*=.92,d=e.momentum,d<.5)return void this.menuScrollStop(a)}else d=c||(b||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(e.step));var j=a.dataSM("level");if(this.activatedItems[j-1]&&this.activatedItems[j-1].dataSM("sub")&&this.activatedItems[j-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(j-1),e.y=e.up&&h<=e.y||!e.up&&h>=e.y?e.y:Math.abs(h-e.y)>d?e.y+(e.up?d:-d):h,a.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+e.y+"px, 0)",transform:"translate3d(0, "+e.y+"px, 0)"}:{marginTop:e.y}),f&&(e.up&&e.y>e.downEnd||!e.up&&e.y<e.upEnd)&&g.eq(e.up?1:0).show(),e.y==h)f&&g.eq(e.up?0:1).hide(),this.menuScrollStop(a);else if(!b){this.opts.scrollAccelerate&&e.step<this.opts.scrollStep&&(e.step+=.2);var k=this;this.scrollTimeout=i(function(){k.menuScroll(a)})}},menuScrollMousewheel:function(a,b){if(this.getClosestMenu(b.target)==a[0]){b=b.originalEvent;var c=(b.wheelDelta||-b.detail)>0;a.dataSM("scroll-arrows").eq(c?0:1).is(":visible")&&(a.dataSM("scroll").up=c,this.menuScroll(a,!0))}b.preventDefault()},menuScrollOut:function(b,c){f&&(/^scroll-(up|down)/.test((c.relatedTarget||"").className)||(b[0]==c.relatedTarget||a.contains(b[0],c.relatedTarget))&&this.getClosestMenu(c.relatedTarget)==b[0]||b.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(b,c){if(f&&!/^scroll-(up|down)/.test(c.target.className)&&this.getClosestMenu(c.target)==b[0]){this.menuScrollRefreshData(b);var d=b.dataSM("scroll"),e=a(window).scrollTop()-b.dataSM("parent-a").offset().top-d.itemH;b.dataSM("scroll-arrows").eq(0).css("margin-top",e).end().eq(1).css("margin-top",e+this.getViewportHeight()-d.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(b){var c=b.dataSM("scroll"),d=a(window).scrollTop()-b.dataSM("parent-a").offset().top-c.itemH;this.cssTransforms3d&&(d=-(parseFloat(b.css("margin-top"))-d)),a.extend(c,{upEnd:d,downEnd:d+this.getViewportHeight()-c.subH})},menuScrollStop:function(a){if(this.scrollTimeout)return j(this.scrollTimeout),this.scrollTimeout=0,a.dataSM("scroll").step=1,!0},menuScrollTouch:function(b,d){if(d=d.originalEvent,c(d)){var e=this.getTouchPoint(d);if(this.getClosestMenu(e.target)==b[0]){var f=b.dataSM("scroll");if(/(start|down)$/i.test(d.type))this.menuScrollStop(b)?(d.preventDefault(),this.$touchScrollingSub=b):this.$touchScrollingSub=null,this.menuScrollRefreshData(b),a.extend(f,{touchStartY:e.pageY,touchStartTime:d.timeStamp});else if(/move$/i.test(d.type)){var g=void 0!==f.touchY?f.touchY:f.touchStartY;if(void 0!==g&&g!=e.pageY){this.$touchScrollingSub=b;var h=g<e.pageY;void 0!==f.up&&f.up!=h&&a.extend(f,{touchStartY:e.pageY,touchStartTime:d.timeStamp}),a.extend(f,{up:h,touchY:e.pageY}),this.menuScroll(b,!0,Math.abs(e.pageY-g))}d.preventDefault()}else void 0!==f.touchY&&((f.momentum=15*Math.pow(Math.abs(e.pageY-f.touchStartY)/(d.timeStamp-f.touchStartTime),2))&&(this.menuScrollStop(b),this.menuScroll(b),d.preventDefault()),delete f.touchY)}}},menuShow:function(a){if((a.dataSM("beforefirstshowfired")||(a.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",a[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",a[0])!==!1&&(a.dataSM("shown-before",!0),k&&a.stop(!0,!0),!a.is(":visible"))){var b=a.dataSM("parent-a"),c=this.isCollapsible();if((this.opts.keepHighlighted||c)&&b.addClass("highlighted"),c)a.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(a.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(a.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&a.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var d=this.getWidth(a);a.css("max-width",this.opts.subMenusMaxWidth),d>this.getWidth(a)&&a.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(a)}var e=function(){a.css("overflow","")};c?k&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,a,e):a.show(this.opts.collapsibleShowDuration,e):k&&this.opts.showFunction?this.opts.showFunction.call(this,a,e):a.show(this.opts.showDuration,e),b.attr("aria-expanded","true"),a.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(a),this.$root.triggerHandler("show.smapi",a[0])}},popupHide:function(a){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},a?1:this.opts.hideTimeout)},popupShow:function(a,b){if(!this.opts.isPopup)return void alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),k&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:a,top:b});var c=this,d=function(){c.$root.css("overflow","")};k&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,d):this.$root.show(this.opts.showDuration,d),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(b){if(this.handleEvents())switch(b.keyCode){case 27:var c=this.activatedItems[0];if(c){this.menuHideAll(),c[0].focus();var d=c.dataSM("sub");d&&this.menuHide(d)}break;case 32:var e=a(b.target);if(e.is("a")&&this.handleItemEvents(e)){var d=e.dataSM("sub");d&&!d.is(":visible")&&(this.itemClick({currentTarget:b.target}),b.preventDefault())}}},rootOut:function(a){if(this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(a){this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(a){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==a.type){var b=this.isCollapsible();this.wasCollapsible&&b||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=b}}else if(this.$disableOverlay){var c=this.$root.offset();this.$disableOverlay.css({top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),a.fn.dataSM=function(a,b){return b?this.data(a+"_smartmenus",b):this.data(a+"_smartmenus")},a.fn.removeDataSM=function(a){return this.removeData(a+"_smartmenus")},a.fn.smartmenus=function(b){if("string"==typeof b){var c=arguments,d=b;return Array.prototype.shift.call(c),this.each(function(){var b=a(this).data("smartmenus");b&&b[d]&&b[d].apply(b,c)})}return this.each(function(){var c=a(this).data("sm-options")||null;c&&"object"!=typeof c&&(c=null,alert('ERROR\n\nSmartMenus jQuery init:\nThe value of the "data-sm-options" attribute must be valid JSON.')),c&&a.each(["showFunction","hideFunction","collapsibleShowFunction","collapsibleHideFunction"],function(){this in c&&delete c[this]}),new a.SmartMenus(this,a.extend({},a.fn.smartmenus.defaults,b,c))})},a.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(a,b){a.fadeOut(200,b)},collapsibleShowDuration:0,collapsibleShowFunction:function(a,b){a.slideDown(200,b)},collapsibleHideDuration:0,collapsibleHideFunction:function(a,b){a.slideUp(200,b)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},a});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){document.querySelectorAll("wc-order-attribution-inputs").forEach((t,e)=>{e>0&&t.remove()});for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}function r(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function c(){return"undefined"!=typeof sbjs}function d(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),r(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&c()?n:i,o=c()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!c())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();a(i),r(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);
yay_swatch_frontend_init=function (yaySwatches, is_ajax=false){
jQuery(".variations_form:not(.yay-swatch-init)").each(function (
index,
element
){
var _form=jQuery(this);
if(is_ajax){
_form.wc_variation_form();
}
_form.addClass("yay-swatch-init");
const yay_product=_form.yay_variation_form();
if("yes"===yaySwatches.is_product_page){
window.yay_product=yay_product;
}
const yay_variant_wrapper=_form.find(".yay-variant-wrapper");
if(yay_variant_wrapper.length){
yay_variant_wrapper.each(function (){
if("yes"===jQuery(this).data("show-tooltip")){
const tooltip_options={
arrow: jQuery(this).data("arrow"),
shadow: jQuery(this).data("shadow"),
animation: jQuery(this).data("animation"),
showImage: jQuery(this).data("show-image")==="yes" ? "yes":"no",
};
const tippySelector =
".yay-swatches-attribute-term[data-type='swatch'], .yay-swatches-attribute-term[data-type='variant_image']";
tippy(tippySelector, {
animation:
"yes"===tooltip_options.animation ? "shift-toward":"fade",
animateFill: false,
duration: 250,
arrowType: "sharp",
arrow: "yes"===tooltip_options.arrow ? true:false,
theme: "yes"===tooltip_options.shadow ? "shadow":"",
allowHTML: tooltip_options.showImage==="yes" ? true:false,
content(reference){
const text=reference.getAttribute("data-tippy-text")||"";
const img=reference.getAttribute("data-tooltip-img");
if(tooltip_options.showImage==="yes"){
if(img){
const wrapper=document.createElement("div");
wrapper.style.textAlign="center";
wrapper.innerHTML=`
<img src="${img}" style="display:block; margin:0 auto 6px; max-width:150px; height:auto;" />
<span>${text}</span>
`;
return wrapper;
}
return text;
}
return text;
},
});
}});
}});
};
yay_swatch_frontend_start=function (yaySwatches){
yay_swatch_frontend_init(yaySwatches);
const observer=new MutationObserver((mutationsList)=> {
mutationsList.forEach((mutation)=> {
if(mutation.type==="childList"){
mutation.addedNodes.forEach((node)=> {
if(node.nodeType===1){
if(jQuery(".variations_form:not(.yay-swatch-init)").length){
yay_swatch_frontend_init(yaySwatches, true);
}}
});
}});
});
observer.observe(document.body, { childList: true, subtree: true });
};
yay_swatch_archive_change_image=function (form, variation){
if(variation &&
variation.image &&
variation.image.src &&
variation.image.thumb_src &&
variation.image.thumb_src.length > 1
){
form._imageWrapper.wc_set_variation_attr("alt", variation.image.alt);
form._imageWrapper.wc_set_variation_attr("sizes",
variation.image.thumb_sizes
);
form._imageWrapper.wc_set_variation_attr("src", variation.image.src);
form._imageWrapper.wc_set_variation_attr("height",
variation.image.thumb_src_h
);
form._imageWrapper.wc_set_variation_attr("width",
variation.image.thumb_src_w
);
form._imageWrapper.wc_set_variation_attr("srcset", variation.image.srcset);
form._imageWrapper.wc_set_variation_attr("title", variation.image.title);
}};
yay_swatch_is_soldout_hide_interact=function (yaySwatches){
const soldOutShowHide=yaySwatches.sold_out.soldOutShowHideOptions;
const hideStyle=yaySwatches.sold_out.soldOutHideStyle;
return "hide"===soldOutShowHide&&"interactive"===hideStyle;
};
yay_swatch_get_field_by_term_selected=function (
form,
dataset,
attribute_fields,
yaySwatches
){
var field=attribute_fields.filter((index, attribute)=> attribute.id===dataset.attribute
);
if(yaySwatches.wc_product_bundles_active){
form.find(".reset_bundled_variations_fixed").show();
field=attribute_fields.filter((index, attribute)=>
jQuery(attribute).data("attribute_name")==="attribute_" + dataset.attribute
);
}
return field;
};
yay_swatch_get_key_by_term_selected=function (event, yaySwatches){
var get_attribute_name=jQuery(event.target).data("attribute_name");
get_attribute_name=get_attribute_name.split("attribute_");
var key_selected =
undefined!=get_attribute_name[1]
? get_attribute_name[1]
: event.target.id;
return key_selected;
};
yay_swatch_get_label_by_term_selected=function (
form,
current_attributes,
getLableName,
yaySwatches
){
for (const [key, value] of Object.entries(current_attributes)){
var form_element=form.find('select[data-attribute_name="attribute_' + key + '"]'
);
if(!form_element){
form_element=form.find("#" + key);
}
const text=form_element.find(`option[value="${value}"]`).text();
getLableName(form_element, { text: text });
}};
yay_swatch_product_change_image_compatibles=function (theme, variation){
if("oxygen"===theme){
var img_selector =
".yay-swatches-product-details-wrapper .st-product-container .st-product-image img";
jQuery(img_selector).attr("src", variation.image.url);
}};
yay_swatch_product_hide_clear_button_compatibles=function (
form,
yaySwatches
){
if(yaySwatches.wc_product_bundles_active){
form.find(".reset_bundled_variations_fixed").hide();
}};
yay_swatch_compatibles=function (){
yay_swatch_wc_composite_products_compatibles();
};
yay_swatch_product_bundle_compatibles=function (yaySwatches){
if(jQuery(".bundle_form .bundle_data").length > 0){
yay_swatch_frontend_init(yaySwatches);
}
jQuery(document.body).on("click",
"input.bundled_product_checkbox",
function (event){
var _input=jQuery(this),
is_checked=_input.is(":checked"),
_content=_input
.closest(".details")
.find(".bundled_item_cart_content.variations_form.yay-swatch-init");
if(is_checked){
_content.addClass("yay-swatch-clicked");
}else{
_content.removeClass("yay-swatch-clicked");
}}
);
};
yay_swatch_wc_composite_products_compatibles=function (){
if(window.yaySwatches.wc_composite_products_active){
jQuery(document.body).on("wc-composite-initializing",
function (event, composite){
if(typeof jQuery.fn.yay_variation_form==="function"){
composite.actions.add_action("component_scripts_initialized",
function (step){
if("variable"===step.get_selected_product_type()){
step.$component_summary_content.yay_variation_form();
}},
10,
this
);
}}
);
}};
jQuery(function ($){
$(".variations_form").each(function (){
const _form=$(this);
const yay_variant_wrapper=_form.find(".yay-variant-wrapper");
if(yay_variant_wrapper.length){
const clearButton=yay_variant_wrapper.data("clear-button");
const resetLink=_form.find(".reset_variations").filter(function (){
return !$(this).closest(".yay-swatch-reset-variations").length;
});
if(clearButton!=="enable"){
resetLink.remove();
}}
});
});
jQuery(function ($){
yay_swatch_get_all_products_attributes=function ($wrapper){
const allAttr={};
$wrapper.find("select[data-attribute_name]").each(function (){
const $select=$(this);
const attrName=$select.data("attribute_name");
const values=[];
$select.find("option").each(function (){
const val=$(this).val();
if(val) values.push(val);
});
allAttr[attrName]=values;
});
return allAttr;
};});
function parseColorToRgb(colorString){
const backgroundOnly=colorString.split(";")[0].trim();
const hexMatches=backgroundOnly.match(/#([0-9a-f]{3,6})/gi);
if(hexMatches&&hexMatches.length){
return hexMatches.map((hex)=> {
hex=hex.replace(/^#/, "");
if(hex.length===3){
hex=hex
.split("")
.map((c)=> c + c)
.join("");
}
const num=parseInt(hex, 16);
return {
r: (num >> 16) & 255,
g: (num >> 8) & 255,
b: num & 255,
};});
}
const rgbMatches=backgroundOnly.match(/rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)/gi
);
if(rgbMatches&&rgbMatches.length){
return rgbMatches.map((rgb)=> {
const parts=rgb.match(/rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)/i);
return {
r: parseInt(parts[1], 10),
g: parseInt(parts[2], 10),
b: parseInt(parts[3], 10),
};});
}
return null;
}
function getLuminance({ r, g, b }){
const srgb=[r, g, b].map((v)=> {
v /=255;
return v <=0.03928 ? v / 12.92:Math.pow((v + 0.055) / 1.055, 2.4);
});
return 0.2126 * srgb[0] + 0.7152 * srgb[1] + 0.0722 * srgb[2];
}
function getTickColor(backgroundStyle){
if(backgroundStyle.includes("url(")){
return "#000";
}
if(backgroundStyle.includes("linear-gradient")){
const rgbs=parseColorToRgb(backgroundStyle);
if(rgbs&&rgbs.length >=2){
const avg={
r: Math.round((rgbs[0].r + rgbs[1].r) / 2),
g: Math.round((rgbs[0].g + rgbs[1].g) / 2),
b: Math.round((rgbs[0].b + rgbs[1].b) / 2),
};
const luminance=getLuminance(avg);
return luminance > 0.5 ? "#000":"#fff";
}}
const rgbs=parseColorToRgb(backgroundStyle);
if(rgbs&&rgbs.length){
const luminance=getLuminance(rgbs[0]);
return luminance > 0.5 ? "#000":"#fff";
}
return "#000";
};
(function (e, t){
"object"==typeof exports&&"undefined"!=typeof module
? (module.exports=t())
: "function"==typeof define&&define.amd
? define(t)
: (e.Popper=t());
})(this, function (){
"use strict";
function e(e){
return e&&"[object Function]"==={}.toString.call(e);
}
function t(e, t){
if(1!==e.nodeType) return [];
var o=e.ownerDocument.defaultView,
n=o.getComputedStyle(e, null);
return t ? n[t]:n;
}
function o(e){
return "HTML"===e.nodeName ? e:e.parentNode||e.host;
}
function n(e){
if(!e) return document.body;
switch (e.nodeName){
case "HTML":
case "BODY":
return e.ownerDocument.body;
case "#document":
return e.body;
}
var i=t(e),
r=i.overflow,
p=i.overflowX,
s=i.overflowY;
return /(auto|scroll|overlay)/.test(r + s + p) ? e:n(o(e));
}
function i(e){
return e&&e.referenceNode ? e.referenceNode:e;
}
function r(e){
return 11===e ? re:10===e ? pe:re||pe;
}
function p(e){
if(!e) return document.documentElement;
for (
var o=r(10) ? document.body:null, n=e.offsetParent||null;
n===o&&e.nextElementSibling;
)
n=(e=e.nextElementSibling).offsetParent;
var i=n&&n.nodeName;
return i&&"BODY"!==i&&"HTML"!==i
? -1!==["TH", "TD", "TABLE"].indexOf(n.nodeName) &&
"static"===t(n, "position")
? p(n)
: n
: e
? e.ownerDocument.documentElement
: document.documentElement;
}
function s(e){
var t=e.nodeName;
return "BODY"!==t&&("HTML"===t||p(e.firstElementChild)===e);
}
function d(e){
return null===e.parentNode ? e:d(e.parentNode);
}
function a(e, t){
if(!e||!e.nodeType||!t||!t.nodeType) return document.documentElement;
var o=e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING,
n=o ? e:t,
i=o ? t:e,
r=document.createRange();
r.setStart(n, 0), r.setEnd(i, 0);
var l=r.commonAncestorContainer;
if((e!==l&&t!==l)||n.contains(i)) return s(l) ? l:p(l);
var f=d(e);
return f.host ? a(f.host, t):a(e, d(t).host);
}
function l(e){
var t =
1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:"top",
o="top"===t ? "scrollTop":"scrollLeft",
n=e.nodeName;
if("BODY"===n||"HTML"===n){
var i=e.ownerDocument.documentElement,
r=e.ownerDocument.scrollingElement||i;
return r[o];
}
return e[o];
}
function f(e, t){
var o=2 < arguments.length&&void 0!==arguments[2]&&arguments[2],
n=l(t, "top"),
i=l(t, "left"),
r=o ? -1:1;
return (
(e.top +=n * r),
(e.bottom +=n * r),
(e.left +=i * r),
(e.right +=i * r),
e
);
}
function m(e, t){
var o="x"===t ? "Left":"Top",
n="Left"==o ? "Right":"Bottom";
return (
parseFloat(e["border" + o + "Width"]) +
parseFloat(e["border" + n + "Width"])
);
}
function h(e, t, o, n){
return ee(
t["offset" + e],
t["scroll" + e],
o["client" + e],
o["offset" + e],
o["scroll" + e],
r(10)
? parseInt(o["offset" + e]) +
parseInt(n["margin" + ("Height"===e ? "Top":"Left")]) +
parseInt(n["margin" + ("Height"===e ? "Bottom":"Right")])
: 0
);
}
function c(e){
var t=e.body,
o=e.documentElement,
n=r(10)&&getComputedStyle(o);
return { height: h("Height", t, o, n), width: h("Width", t, o, n) };}
function g(e){
return le({}, e, { right: e.left + e.width, bottom: e.top + e.height });
}
function u(e){
var o={};
try {
if(r(10)){
o=e.getBoundingClientRect();
var n=l(e, "top"),
i=l(e, "left");
(o.top +=n), (o.left +=i), (o.bottom +=n), (o.right +=i);
} else o=e.getBoundingClientRect();
} catch (t){}
var p={
left: o.left,
top: o.top,
width: o.right - o.left,
height: o.bottom - o.top,
},
s="HTML"===e.nodeName ? c(e.ownerDocument):{},
d=s.width||e.clientWidth||p.width,
a=s.height||e.clientHeight||p.height,
f=e.offsetWidth - d,
h=e.offsetHeight - a;
if(f||h){
var u=t(e);
(f -=m(u, "x")), (h -=m(u, "y")), (p.width -=f), (p.height -=h);
}
return g(p);
}
function b(e, o){
var i=2 < arguments.length&&void 0!==arguments[2]&&arguments[2],
p=r(10),
s="HTML"===o.nodeName,
d=u(e),
a=u(o),
l=n(e),
m=t(o),
h=parseFloat(m.borderTopWidth),
c=parseFloat(m.borderLeftWidth);
i&&s && ((a.top=ee(a.top, 0)), (a.left=ee(a.left, 0)));
var b=g({
top: d.top - a.top - h,
left: d.left - a.left - c,
width: d.width,
height: d.height,
});
if(((b.marginTop=0), (b.marginLeft=0), !p&&s)){
var w=parseFloat(m.marginTop),
y=parseFloat(m.marginLeft);
(b.top -=h - w),
(b.bottom -=h - w),
(b.left -=c - y),
(b.right -=c - y),
(b.marginTop=w),
(b.marginLeft=y);
}
return (
(p&&!i ? o.contains(l):o===l&&"BODY"!==l.nodeName) &&
(b=f(b, o)),
b
);
}
function w(e){
var t=1 < arguments.length&&void 0!==arguments[1]&&arguments[1],
o=e.ownerDocument.documentElement,
n=b(e, o),
i=ee(o.clientWidth, window.innerWidth||0),
r=ee(o.clientHeight, window.innerHeight||0),
p=t ? 0:l(o),
s=t ? 0:l(o, "left"),
d={
top: p - n.top + n.marginTop,
left: s - n.left + n.marginLeft,
width: i,
height: r,
};
return g(d);
}
function y(e){
var n=e.nodeName;
if("BODY"===n||"HTML"===n) return !1;
if("fixed"===t(e, "position")) return !0;
var i=o(e);
return !!i&&y(i);
}
function E(e){
if(!e||!e.parentElement||r()) return document.documentElement;
for (var o=e.parentElement; o&&"none"===t(o, "transform");)
o=o.parentElement;
return o||document.documentElement;
}
function v(e, t, r, p){
var s=4 < arguments.length&&void 0!==arguments[4]&&arguments[4],
d={ top: 0, left: 0 },
l=s ? E(e):a(e, i(t));
if("viewport"===p) d=w(l, s);
else {
var f;
"scrollParent"===p
? ((f=n(o(t))),
"BODY"===f.nodeName&&(f=e.ownerDocument.documentElement))
: "window"===p
? (f=e.ownerDocument.documentElement)
: (f=p);
var m=b(f, l, s);
if("HTML"===f.nodeName&&!y(l)){
var h=c(e.ownerDocument),
g=h.height,
u=h.width;
(d.top +=m.top - m.marginTop),
(d.bottom=g + m.top),
(d.left +=m.left - m.marginLeft),
(d.right=u + m.left);
} else d=m;
}
r=r||0;
var v="number"==typeof r;
return (
(d.left +=v ? r:r.left||0),
(d.top +=v ? r:r.top||0),
(d.right -=v ? r:r.right||0),
(d.bottom -=v ? r:r.bottom||0),
d
);
}
function x(e){
var t=e.width,
o=e.height;
return t * o;
}
function O(e, t, o, n, i){
var r=5 < arguments.length&&void 0!==arguments[5] ? arguments[5]:0;
if(-1===e.indexOf("auto")) return e;
var p=v(o, n, r, i),
s={
top: { width: p.width, height: t.top - p.top },
right: { width: p.right - t.right, height: p.height },
bottom: { width: p.width, height: p.bottom - t.bottom },
left: { width: t.left - p.left, height: p.height },
},
d=Object.keys(s)
.map(function (e){
return le({ key: e }, s[e], { area: x(s[e]) });
})
.sort(function (e, t){
return t.area - e.area;
}),
a=d.filter(function (e){
var t=e.width,
n=e.height;
return t >=o.clientWidth&&n >=o.clientHeight;
}),
l=0 < a.length ? a[0].key:d[0].key,
f=e.split("-")[1];
return l + (f ? "-" + f:"");
}
function L(e, t, o){
var n =
3 < arguments.length&&void 0!==arguments[3] ? arguments[3]:null,
r=n ? E(t):a(t, i(o));
return b(o, r, n);
}
function S(e){
var t=e.ownerDocument.defaultView,
o=t.getComputedStyle(e),
n=parseFloat(o.marginTop||0) + parseFloat(o.marginBottom||0),
i=parseFloat(o.marginLeft||0) + parseFloat(o.marginRight||0),
r={ width: e.offsetWidth + i, height: e.offsetHeight + n };
return r;
}
function T(e){
var t={ left: "right", right: "left", bottom: "top", top: "bottom" };
return e.replace(/left|right|bottom|top/g, function (e){
return t[e];
});
}
function C(e, t, o){
o=o.split("-")[0];
var n=S(e),
i={ width: n.width, height: n.height },
r=-1!==["right", "left"].indexOf(o),
p=r ? "top":"left",
s=r ? "left":"top",
d=r ? "height":"width",
a=r ? "width":"height";
return (
(i[p]=t[p] + t[d] / 2 - n[d] / 2),
(i[s]=o===s ? t[s] - n[a]:t[T(s)]),
i
);
}
function D(e, t){
return Array.prototype.find ? e.find(t):e.filter(t)[0];
}
function N(e, t, o){
if(Array.prototype.findIndex)
return e.findIndex(function (e){
return e[t]===o;
});
var n=D(e, function (e){
return e[t]===o;
});
return e.indexOf(n);
}
function P(t, o, n){
var i=void 0===n ? t:t.slice(0, N(t, "name", n));
return (
i.forEach(function (t){
t["function"] &&
console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
var n=t["function"]||t.fn;
t.enabled &&
e(n) &&
((o.offsets.popper=g(o.offsets.popper)),
(o.offsets.reference=g(o.offsets.reference)),
(o=n(o, t)));
}),
o
);
}
function k(){
if(!this.state.isDestroyed){
var e={
instance: this,
styles: {},
arrowStyles: {},
attributes: {},
flipped: !1,
offsets: {},
};
(e.offsets.reference=L(
this.state,
this.popper,
this.reference,
this.options.positionFixed
)),
(e.placement=O(
this.options.placement,
e.offsets.reference,
this.popper,
this.reference,
this.options.modifiers.flip.boundariesElement,
this.options.modifiers.flip.padding
)),
(e.originalPlacement=e.placement),
(e.positionFixed=this.options.positionFixed),
(e.offsets.popper=C(this.popper, e.offsets.reference, e.placement)),
(e.offsets.popper.position=this.options.positionFixed
? "fixed"
: "absolute"),
(e=P(this.modifiers, e)),
this.state.isCreated
? this.options.onUpdate(e)
: ((this.state.isCreated = !0), this.options.onCreate(e));
}}
function W(e, t){
return e.some(function (e){
var o=e.name,
n=e.enabled;
return n&&o===t;
});
}
function B(e){
for (
var t=[!1, "ms", "Webkit", "Moz", "O"],
o=e.charAt(0).toUpperCase() + e.slice(1),
n=0;
n < t.length;
n++
){
var i=t[n],
r=i ? "" + i + o:e;
if("undefined"!=typeof document.body.style[r]) return r;
}
return null;
}
function H(){
return (
(this.state.isDestroyed = !0),
W(this.modifiers, "applyStyle") &&
(this.popper.removeAttribute("x-placement"),
(this.popper.style.position=""),
(this.popper.style.top=""),
(this.popper.style.left=""),
(this.popper.style.right=""),
(this.popper.style.bottom=""),
(this.popper.style.willChange=""),
(this.popper.style[B("transform")]="")),
this.disableEventListeners(),
this.options.removeOnDestroy &&
this.popper.parentNode.removeChild(this.popper),
this
);
}
function A(e){
var t=e.ownerDocument;
return t ? t.defaultView:window;
}
function M(e, t, o, i){
var r="BODY"===e.nodeName,
p=r ? e.ownerDocument.defaultView:e;
p.addEventListener(t, o, { passive: !0 }),
r||M(n(p.parentNode), t, o, i),
i.push(p);
}
function F(e, t, o, i){
(o.updateBound=i),
A(e).addEventListener("resize", o.updateBound, { passive: !0 });
var r=n(e);
return (
M(r, "scroll", o.updateBound, o.scrollParents),
(o.scrollElement=r),
(o.eventsEnabled = !0),
o
);
}
function I(){
this.state.eventsEnabled ||
(this.state=F(
this.reference,
this.options,
this.state,
this.scheduleUpdate
));
}
function R(e, t){
return (
A(e).removeEventListener("resize", t.updateBound),
t.scrollParents.forEach(function (e){
e.removeEventListener("scroll", t.updateBound);
}),
(t.updateBound=null),
(t.scrollParents=[]),
(t.scrollElement=null),
(t.eventsEnabled = !1),
t
);
}
function U(){
this.state.eventsEnabled &&
(cancelAnimationFrame(this.scheduleUpdate),
(this.state=R(this.reference, this.state)));
}
function Y(e){
return ""!==e&&!isNaN(parseFloat(e))&&isFinite(e);
}
function V(e, t){
Object.keys(t).forEach(function (o){
var n="";
-1!==["width", "height", "top", "right", "bottom", "left"].indexOf(o) &&
Y(t[o]) &&
(n="px"),
(e.style[o]=t[o] + n);
});
}
function j(e, t){
Object.keys(t).forEach(function (o){
var n=t[o];
!1===n ? e.removeAttribute(o):e.setAttribute(o, t[o]);
});
}
function q(e, t){
var o=e.offsets,
n=o.popper,
i=o.reference,
r=$,
p=function (e){
return e;
},
s=r(i.width),
d=r(n.width),
a=-1!==["left", "right"].indexOf(e.placement),
l=-1!==e.placement.indexOf("-"),
f=t ? (a||l || s % 2==d % 2 ? r:Z):p,
m=t ? r:p;
return {
left: f(1==s % 2&&1==d % 2&&!l&&t ? n.left - 1:n.left),
top: m(n.top),
bottom: m(n.bottom),
right: f(n.right),
};}
function K(e, t, o){
var n=D(e, function (e){
var o=e.name;
return o===t;
}),
i =
!!n &&
e.some(function (e){
return e.name===o&&e.enabled&&e.order < n.order;
});
if(!i){
var r="`" + t + "`";
console.warn("`" +
o +
"`" +
" modifier is required by " +
r +
" modifier in order to work, be sure to include it before " +
r +
"!"
);
}
return i;
}
function z(e){
return "end"===e ? "start":"start"===e ? "end":e;
}
function G(e){
var t=1 < arguments.length&&void 0!==arguments[1]&&arguments[1],
o=he.indexOf(e),
n=he.slice(o + 1).concat(he.slice(0, o));
return t ? n.reverse():n;
}
function _(e, t, o, n){
var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),
r=+i[1],
p=i[2];
if(!r) return e;
if(0===p.indexOf("%")){
var s;
switch (p){
case "%p":
s=o;
break;
case "%":
case "%r":
default:
s=n;
}
var d=g(s);
return (d[t] / 100) * r;
}
if("vh"===p||"vw"===p){
var a;
return (
(a =
"vh"===p
? ee(document.documentElement.clientHeight, window.innerHeight||0)
: ee(document.documentElement.clientWidth, window.innerWidth||0)),
(a / 100) * r
);
}
return r;
}
function X(e, t, o, n){
var i=[0, 0],
r=-1!==["right", "left"].indexOf(n),
p=e.split(/(\+|\-)/).map(function (e){
return e.trim();
}),
s=p.indexOf(D(p, function (e){
return -1!==e.search(/,|\s/);
})
);
p[s] &&
-1===p[s].indexOf(",") &&
console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."
);
var d=/\s*,\s*|\s+/,
a =
-1===s
? [p]
: [
p.slice(0, s).concat([p[s].split(d)[0]]),
[p[s].split(d)[1]].concat(p.slice(s + 1)),
];
return (
(a=a.map(function (e, n){
var i=(1===n ? !r:r) ? "height":"width",
p = !1;
return e
.reduce(function (e, t){
return ""===e[e.length - 1]&&-1!==["+", "-"].indexOf(t)
? ((e[e.length - 1]=t), (p = !0), e)
: p
? ((e[e.length - 1] +=t), (p = !1), e)
: e.concat(t);
}, [])
.map(function (e){
return _(e, i, t, o);
});
})),
a.forEach(function (e, t){
e.forEach(function (o, n){
Y(o)&&(i[t] +=o * ("-"===e[n - 1] ? -1:1));
});
}),
i
);
}
function J(e, t){
var o,
n=t.offset,
i=e.placement,
r=e.offsets,
p=r.popper,
s=r.reference,
d=i.split("-")[0];
return (
(o=Y(+n) ? [+n, 0]:X(n, p, s, d)),
"left"===d
? ((p.top +=o[0]), (p.left -=o[1]))
: "right"===d
? ((p.top +=o[0]), (p.left +=o[1]))
: "top"===d
? ((p.left +=o[0]), (p.top -=o[1]))
: "bottom"===d&&((p.left +=o[0]), (p.top +=o[1])),
(e.popper=p),
e
);
}
var Q=Math.min,
Z=Math.floor,
$=Math.round,
ee=Math.max,
te =
"undefined"!=typeof window &&
"undefined"!=typeof document &&
"undefined"!=typeof navigator,
oe=(function (){
for (var e=["Edge", "Trident", "Firefox"], t=0; t < e.length; t +=1)
if(te&&0 <=navigator.userAgent.indexOf(e[t])) return 1;
return 0;
})(),
ne=te&&window.Promise,
ie=ne
? function (e){
var t = !1;
return function (){
t ||
((t = !0),
window.Promise.resolve().then(function (){
(t = !1), e();
}));
};}
: function (e){
var t = !1;
return function (){
t ||
((t = !0),
setTimeout(function (){
(t = !1), e();
}, oe));
};},
re=te&&!!(window.MSInputMethodContext&&document.documentMode),
pe=te&&/MSIE 10/.test(navigator.userAgent),
se=function (e, t){
if(!(e instanceof t))
throw new TypeError("Cannot call a class as a function");
},
de=(function (){
function e(e, t){
for (var o, n=0; n < t.length; n++)
(o=t[n]),
(o.enumerable=o.enumerable||!1),
(o.configurable = !0),
"value" in o&&(o.writable = !0),
Object.defineProperty(e, o.key, o);
}
return function (t, o, n){
return o&&e(t.prototype, o), n&&e(t, n), t;
};})(),
ae=function (e, t, o){
return (
t in e
? Object.defineProperty(e, t, {
value: o,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (e[t]=o),
e
);
},
le =
Object.assign ||
function (e){
for (var t, o=1; o < arguments.length; o++)
for (var n in ((t=arguments[o]), t))
Object.prototype.hasOwnProperty.call(t, n)&&(e[n]=t[n]);
return e;
},
fe=te&&/Firefox/i.test(navigator.userAgent),
me=[
"auto-start",
"auto",
"auto-end",
"top-start",
"top",
"top-end",
"right-start",
"right",
"right-end",
"bottom-end",
"bottom",
"bottom-start",
"left-end",
"left",
"left-start",
],
he=me.slice(3),
ce={
FLIP: "flip",
CLOCKWISE: "clockwise",
COUNTERCLOCKWISE: "counterclockwise",
},
ge=(function (){
function t(o, n){
var i=this,
r =
2 < arguments.length&&void 0!==arguments[2] ? arguments[2]:{};
se(this, t),
(this.scheduleUpdate=function (){
return requestAnimationFrame(i.update);
}),
(this.update=ie(this.update.bind(this))),
(this.options=le({}, t.Defaults, r)),
(this.state={ isDestroyed: !1, isCreated: !1, scrollParents: [] }),
(this.reference=o&&o.jquery ? o[0]:o),
(this.popper=n&&n.jquery ? n[0]:n),
(this.options.modifiers={}),
Object.keys(le({}, t.Defaults.modifiers, r.modifiers)).forEach(function (e){
i.options.modifiers[e]=le(
{},
t.Defaults.modifiers[e]||{},
r.modifiers ? r.modifiers[e]:{}
);
}
),
(this.modifiers=Object.keys(this.options.modifiers)
.map(function (e){
return le({ name: e }, i.options.modifiers[e]);
})
.sort(function (e, t){
return e.order - t.order;
})),
this.modifiers.forEach(function (t){
t.enabled &&
e(t.onLoad) &&
t.onLoad(i.reference, i.popper, i.options, t, i.state);
}),
this.update();
var p=this.options.eventsEnabled;
p&&this.enableEventListeners(), (this.state.eventsEnabled=p);
}
return (
de(t, [
{
key: "update",
value: function (){
return k.call(this);
},
},
{
key: "destroy",
value: function (){
return H.call(this);
},
},
{
key: "enableEventListeners",
value: function (){
return I.call(this);
},
},
{
key: "disableEventListeners",
value: function (){
return U.call(this);
},
},
]),
t
);
})();
return (
(ge.Utils=("undefined"==typeof window ? global:window).PopperUtils),
(ge.placements=me),
(ge.Defaults={
placement: "bottom",
positionFixed: !1,
eventsEnabled: !0,
removeOnDestroy: !1,
onCreate: function (){},
onUpdate: function (){},
modifiers: {
shift: {
order: 100,
enabled: !0,
fn: function (e){
var t=e.placement,
o=t.split("-")[0],
n=t.split("-")[1];
if(n){
var i=e.offsets,
r=i.reference,
p=i.popper,
s=-1!==["bottom", "top"].indexOf(o),
d=s ? "left":"top",
a=s ? "width":"height",
l={
start: ae({}, d, r[d]),
end: ae({}, d, r[d] + r[a] - p[a]),
};
e.offsets.popper=le({}, p, l[n]);
}
return e;
},
},
offset: { order: 200, enabled: !0, fn: J, offset: 0 },
preventOverflow: {
order: 300,
enabled: !0,
fn: function (e, t){
var o=t.boundariesElement||p(e.instance.popper);
e.instance.reference===o&&(o=p(o));
var n=B("transform"),
i=e.instance.popper.style,
r=i.top,
s=i.left,
d=i[n];
(i.top=""), (i.left=""), (i[n]="");
var a=v(
e.instance.popper,
e.instance.reference,
t.padding,
o,
e.positionFixed
);
(i.top=r), (i.left=s), (i[n]=d), (t.boundaries=a);
var l=t.priority,
f=e.offsets.popper,
m={
primary: function (e){
var o=f[e];
return (
f[e] < a[e] &&
!t.escapeWithReference &&
(o=ee(f[e], a[e])),
ae({}, e, o)
);
},
secondary: function (e){
var o="right"===e ? "left":"top",
n=f[o];
return (
f[e] > a[e] &&
!t.escapeWithReference &&
(n=Q(
f[o],
a[e] - ("right"===e ? f.width:f.height)
)),
ae({}, o, n)
);
},
};
return (
l.forEach(function (e){
var t =
-1===["left", "top"].indexOf(e) ? "secondary":"primary";
f=le({}, f, m[t](e));
}),
(e.offsets.popper=f),
e
);
},
priority: ["left", "right", "top", "bottom"],
padding: 5,
boundariesElement: "scrollParent",
},
keepTogether: {
order: 400,
enabled: !0,
fn: function (e){
var t=e.offsets,
o=t.popper,
n=t.reference,
i=e.placement.split("-")[0],
r=Z,
p=-1!==["top", "bottom"].indexOf(i),
s=p ? "right":"bottom",
d=p ? "left":"top",
a=p ? "width":"height";
return (
o[s] < r(n[d])&&(e.offsets.popper[d]=r(n[d]) - o[a]),
o[d] > r(n[s])&&(e.offsets.popper[d]=r(n[s])),
e
);
},
},
arrow: {
order: 500,
enabled: !0,
fn: function (e, o){
var n;
if(!K(e.instance.modifiers, "arrow", "keepTogether")) return e;
var i=o.element;
if("string"==typeof i){
if(((i=e.instance.popper.querySelector(i)), !i)) return e;
}else if(!e.instance.popper.contains(i))
return (
console.warn("WARNING: `arrow.element` must be child of its popper element!"
),
e
);
var r=e.placement.split("-")[0],
p=e.offsets,
s=p.popper,
d=p.reference,
a=-1!==["left", "right"].indexOf(r),
l=a ? "height":"width",
f=a ? "Top":"Left",
m=f.toLowerCase(),
h=a ? "left":"top",
c=a ? "bottom":"right",
u=S(i)[l];
d[c] - u < s[m]&&(e.offsets.popper[m] -=s[m] - (d[c] - u)),
d[m] + u > s[c]&&(e.offsets.popper[m] +=d[m] + u - s[c]),
(e.offsets.popper=g(e.offsets.popper));
var b=d[m] + d[l] / 2 - u / 2,
w=t(e.instance.popper),
y=parseFloat(w["margin" + f]),
E=parseFloat(w["border" + f + "Width"]),
v=b - e.offsets.popper[m] - y - E;
return (
(v=ee(Q(s[l] - u, v), 0)),
(e.arrowElement=i),
(e.offsets.arrow=((n={}), ae(n, m, $(v)), ae(n, h, ""), n)),
e
);
},
element: "[x-arrow]",
},
flip: {
order: 600,
enabled: !0,
fn: function (e, t){
if(W(e.instance.modifiers, "inner")) return e;
if(e.flipped&&e.placement===e.originalPlacement) return e;
var o=v(
e.instance.popper,
e.instance.reference,
t.padding,
t.boundariesElement,
e.positionFixed
),
n=e.placement.split("-")[0],
i=T(n),
r=e.placement.split("-")[1]||"",
p=[];
switch (t.behavior){
case ce.FLIP:
p=[n, i];
break;
case ce.CLOCKWISE:
p=G(n);
break;
case ce.COUNTERCLOCKWISE:
p=G(n, !0);
break;
default:
p=t.behavior;
}
return (
p.forEach(function (s, d){
if(n!==s||p.length===d + 1) return e;
(n=e.placement.split("-")[0]), (i=T(n));
var a=e.offsets.popper,
l=e.offsets.reference,
f=Z,
m =
("left"===n&&f(a.right) > f(l.left)) ||
("right"===n&&f(a.left) < f(l.right)) ||
("top"===n&&f(a.bottom) > f(l.top)) ||
("bottom"===n&&f(a.top) < f(l.bottom)),
h=f(a.left) < f(o.left),
c=f(a.right) > f(o.right),
g=f(a.top) < f(o.top),
u=f(a.bottom) > f(o.bottom),
b =
("left"===n&&h) ||
("right"===n&&c) ||
("top"===n&&g) ||
("bottom"===n&&u),
w=-1!==["top", "bottom"].indexOf(n),
y =
!!t.flipVariations &&
((w&&"start"===r&&h) ||
(w&&"end"===r&&c) ||
(!w&&"start"===r&&g) ||
(!w&&"end"===r&&u)),
E =
!!t.flipVariationsByContent &&
((w&&"start"===r&&c) ||
(w&&"end"===r&&h) ||
(!w&&"start"===r&&u) ||
(!w&&"end"===r&&g)),
v=y||E;
(m||b || v) &&
((e.flipped = !0),
(m||b)&&(n=p[d + 1]),
v&&(r=z(r)),
(e.placement=n + (r ? "-" + r:"")),
(e.offsets.popper=le(
{},
e.offsets.popper,
C(e.instance.popper, e.offsets.reference, e.placement)
)),
(e=P(e.instance.modifiers, e, "flip")));
}),
e
);
},
behavior: "flip",
padding: 5,
boundariesElement: "viewport",
flipVariations: !1,
flipVariationsByContent: !1,
},
inner: {
order: 700,
enabled: !1,
fn: function (e){
var t=e.placement,
o=t.split("-")[0],
n=e.offsets,
i=n.popper,
r=n.reference,
p=-1!==["left", "right"].indexOf(o),
s=-1===["top", "left"].indexOf(o);
return (
(i[p ? "left":"top"] =
r[o] - (s ? i[p ? "width":"height"]:0)),
(e.placement=T(t)),
(e.offsets.popper=g(i)),
e
);
},
},
hide: {
order: 800,
enabled: !0,
fn: function (e){
if(!K(e.instance.modifiers, "hide", "preventOverflow")) return e;
var t=e.offsets.reference,
o=D(e.instance.modifiers, function (e){
return "preventOverflow"===e.name;
}).boundaries;
if(t.bottom < o.top ||
t.left > o.right ||
t.top > o.bottom ||
t.right < o.left
){
if(!0===e.hide) return e;
(e.hide = !0), (e.attributes["x-out-of-boundaries"]="");
}else{
if(!1===e.hide) return e;
(e.hide = !1), (e.attributes["x-out-of-boundaries"] = !1);
}
return e;
},
},
computeStyle: {
order: 850,
enabled: !0,
fn: function (e, t){
var o=t.x,
n=t.y,
i=e.offsets.popper,
r=D(e.instance.modifiers, function (e){
return "applyStyle"===e.name;
}).gpuAcceleration;
void 0!==r &&
console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"
);
var s,
d,
a=void 0===r ? t.gpuAcceleration:r,
l=p(e.instance.popper),
f=u(l),
m={ position: i.position },
h=q(e, 2 > window.devicePixelRatio||!fe),
c="bottom"===o ? "top":"bottom",
g="right"===n ? "left":"right",
b=B("transform");
if(((d =
"bottom"==c
? "HTML"===l.nodeName
? -l.clientHeight + h.bottom
: -f.height + h.bottom
: h.top),
(s =
"right"==g
? "HTML"===l.nodeName
? -l.clientWidth + h.right
: -f.width + h.right
: h.left),
a&&b)
)
(m[b]="translate3d(" + s + "px, " + d + "px, 0)"),
(m[c]=0),
(m[g]=0),
(m.willChange="transform");
else {
var w="bottom"==c ? -1:1,
y="right"==g ? -1:1;
(m[c]=d * w), (m[g]=s * y), (m.willChange=c + ", " + g);
}
var E={ "x-placement": e.placement };
return (
(e.attributes=le({}, E, e.attributes)),
(e.styles=le({}, m, e.styles)),
(e.arrowStyles=le({}, e.offsets.arrow, e.arrowStyles)),
e
);
},
gpuAcceleration: !0,
x: "bottom",
y: "right",
},
applyStyle: {
order: 900,
enabled: !0,
fn: function (e){
return (
V(e.instance.popper, e.styles),
j(e.instance.popper, e.attributes),
e.arrowElement &&
Object.keys(e.arrowStyles).length &&
V(e.arrowElement, e.arrowStyles),
e
);
},
onLoad: function (e, t, o, n, i){
var r=L(i, t, e, o.positionFixed),
p=O(
o.placement,
r,
t,
e,
o.modifiers.flip.boundariesElement,
o.modifiers.flip.padding
);
return (
t.setAttribute("x-placement", p),
V(t, { position: o.positionFixed ? "fixed":"absolute" }),
o
);
},
gpuAcceleration: void 0,
},
},
}),
ge
);
});
//Tippy.js version 4
!(function (t, e){
"object"==typeof exports&&"undefined"!=typeof module
? (module.exports=e(require("popper.js")))
: "function"==typeof define&&define.amd
? define(["popper.js"], e)
: ((t=t||self).tippy=e(t.Popper));
})(this, function (t){
"use strict";
t=t&&t.hasOwnProperty("default") ? t.default:t;
function e(){
return (e =
Object.assign ||
function (t){
for (var e=1; e < arguments.length; e++){
var a=arguments[e];
for (var r in a)
Object.prototype.hasOwnProperty.call(a, r)&&(t[r]=a[r]);
}
return t;
}).apply(this, arguments);
}
var a="undefined"!=typeof window&&"undefined"!=typeof document,
r=a ? navigator.userAgent:"",
n=/MSIE |Trident\//.test(r),
i=/UCBrowser\//.test(r),
o=a&&/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,
p={
a11y: !0,
allowHTML: !0,
animateFill: !0,
animation: "shift-away",
appendTo: function (){
return document.body;
},
aria: "describedby",
arrow: !1,
arrowType: "sharp",
boundary: "scrollParent",
content: "",
delay: 0,
distance: 10,
duration: [325, 275],
flip: !0,
flipBehavior: "flip",
flipOnUpdate: !1,
followCursor: !1,
hideOnClick: !0,
ignoreAttributes: !1,
inertia: !1,
interactive: !1,
interactiveBorder: 2,
interactiveDebounce: 0,
lazy: !0,
maxWidth: 350,
multiple: !1,
offset: 0,
onHidden: function (){},
onHide: function (){},
onMount: function (){},
onShow: function (){},
onShown: function (){},
onTrigger: function (){},
placement: "top",
popperOptions: {},
role: "tooltip",
showOnInit: !1,
size: "regular",
sticky: !1,
target: "",
theme: "dark",
touch: !0,
touchHold: !1,
trigger: "mouseenter focus",
triggerTarget: null,
updateDuration: 0,
wait: null,
zIndex: 9999,
},
s=[
"arrow",
"arrowType",
"boundary",
"distance",
"flip",
"flipBehavior",
"flipOnUpdate",
"offset",
"placement",
"popperOptions",
],
c=a ? Element.prototype:{},
l =
c.matches ||
c.matchesSelector ||
c.webkitMatchesSelector ||
c.mozMatchesSelector ||
c.msMatchesSelector;
function d(t){
return [].slice.call(t);
}
function f(t, e){
return m(t, function (t){
return l.call(t, e);
});
}
function m(t, e){
for (; t;){
if(e(t)) return t;
t=t.parentElement;
}
return null;
}
var u={ passive: !0 },
b=4,
y="x-placement",
v="x-out-of-boundaries",
h="tippy-iOS",
x="tippy-active",
g="tippy-popper",
w="tippy-tooltip",
k="tippy-content",
A="tippy-backdrop",
E="tippy-arrow",
C="tippy-roundarrow",
L=".".concat(g),
X=".".concat(w),
Y=".".concat(k),
T=".".concat(A),
I=".".concat(E),
S=".".concat(C),
O = !1;
function z(){
O ||
((O = !0),
o&&document.body.classList.add(h),
window.performance&&document.addEventListener("mousemove", H));
}
var M=0;
function H(){
var t=performance.now();
t - M < 20 &&
((O = !1),
document.removeEventListener("mousemove", H),
o||document.body.classList.remove(h)),
(M=t);
}
function V(){
var t=document.activeElement;
t&&t.blur&&t._tippy&&t.blur();
}
var _=Object.keys(p);
function N(t, e){
return {}.hasOwnProperty.call(t, e);
}
function P(t, e, a){
if(Array.isArray(t)){
var r=t[e];
return null==r ? a:r;
}
return t;
}
function D(t, e){
return 0===e
? t
: function (r){
clearTimeout(a),
(a=setTimeout(function (){
t(r);
}, e));
};
var a;
}
function q(t, e){
return t&&t.modifiers&&t.modifiers[e];
}
function B(t, e){
return t.indexOf(e) > -1;
}
function F(t){
return t instanceof Element;
}
function j(t){
return !(!t||!N(t, "isVirtual"))||F(t);
}
function U(t, e){
return "function"==typeof t ? t.apply(null, e):t;
}
function W(t, e){
t.filter(function (t){
return "flip"===t.name;
})[0].enabled=e;
}
function R(){
return document.createElement("div");
}
function J(t, e){
t.forEach(function (t){
t&&(t.style.transitionDuration="".concat(e, "ms"));
});
}
function G(t, e){
t.forEach(function (t){
t&&t.setAttribute("data-state", e);
});
}
function K(t, a){
var r=e(
{},
a,
{ content: U(a.content, [t]) },
a.ignoreAttributes
? {}
: (function (t){
return _.reduce(function (e, a){
var r=(t.getAttribute("data-tippy-".concat(a))||"").trim();
if(!r) return e;
if("content"===a) e[a]=r;
else
try {
e[a]=JSON.parse(r);
} catch (t){
e[a]=r;
}
return e;
}, {});
})(t)
);
return (r.arrow||i)&&(r.animateFill = !1), r;
}
function Q(t, e){
Object.keys(t).forEach(function (t){
if(!N(e, t))
throw new Error("[tippy]: `".concat(t, "` is not a valid option"));
});
}
function Z(t, e){
t.innerHTML=F(e) ? e.innerHTML:e;
}
function $(t, e){
if(F(e.content)) Z(t, ""), t.appendChild(e.content);
else if("function"!=typeof e.content){
t[e.allowHTML ? "innerHTML":"textContent"]=e.content;
}}
function tt(t){
return {
tooltip: t.querySelector(X),
backdrop: t.querySelector(T),
content: t.querySelector(Y),
arrow: t.querySelector(I)||t.querySelector(S),
};}
function et(t){
t.setAttribute("data-inertia", "");
}
function at(t){
var e=R();
return (
"round"===t
? ((e.className=C),
Z(
e,
'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>'
))
: (e.className=E),
e
);
}
function rt(){
var t=R();
return (t.className=A), t.setAttribute("data-state", "hidden"), t;
}
function nt(t, e){
t.setAttribute("tabindex", "-1"), e.setAttribute("data-interactive", "");
}
function it(t, e, a){
var r =
i&&void 0!==document.body.style.webkitTransition
? "webkitTransitionEnd"
: "transitionend";
t[e + "EventListener"](r, a);
}
function ot(t){
var e=t.getAttribute(y);
return e ? e.split("-")[0]:"";
}
function pt(t, e, a){
a.split(" ").forEach(function (a){
t.classList[e](a + "-theme");
});
}
function st(t, e){
var a=R();
(a.className=g),
(a.id="tippy-".concat(t)),
(a.style.zIndex="" + e.zIndex),
(a.style.position="absolute"),
(a.style.top="0"),
(a.style.left="0"),
e.role&&a.setAttribute("role", e.role);
var r=R();
(r.className=w),
(r.style.maxWidth =
e.maxWidth + ("number"==typeof e.maxWidth ? "px":"")),
r.setAttribute("data-size", e.size),
r.setAttribute("data-animation", e.animation),
r.setAttribute("data-state", "hidden"),
pt(r, "add", e.theme);
var n=R();
return (
(n.className=k),
n.setAttribute("data-state", "hidden"),
e.interactive&&nt(a, r),
e.arrow&&r.appendChild(at(e.arrowType)),
e.animateFill &&
(r.appendChild(rt()), r.setAttribute("data-animatefill", "")),
e.inertia&&et(r),
$(n, e),
r.appendChild(n),
a.appendChild(r),
a
);
}
function ct(t, e, a){
var r=tt(t),
n=r.tooltip,
i=r.content,
o=r.backdrop,
p=r.arrow;
(t.style.zIndex="" + a.zIndex),
n.setAttribute("data-size", a.size),
n.setAttribute("data-animation", a.animation),
(n.style.maxWidth =
a.maxWidth + ("number"==typeof a.maxWidth ? "px":"")),
a.role ? t.setAttribute("role", a.role):t.removeAttribute("role"),
e.content!==a.content&&$(i, a),
!e.animateFill&&a.animateFill
? (n.appendChild(rt()), n.setAttribute("data-animatefill", ""))
: e.animateFill &&
!a.animateFill &&
(n.removeChild(o), n.removeAttribute("data-animatefill")),
!e.arrow&&a.arrow
? n.appendChild(at(a.arrowType))
: e.arrow&&!a.arrow&&n.removeChild(p),
e.arrow &&
a.arrow &&
e.arrowType!==a.arrowType &&
n.replaceChild(at(a.arrowType), p),
!e.interactive&&a.interactive
? nt(t, n)
: e.interactive &&
!a.interactive &&
(function (t, e){
t.removeAttribute("tabindex"),
e.removeAttribute("data-interactive");
})(t, n),
!e.inertia&&a.inertia
? et(n)
: e.inertia &&
!a.inertia &&
(function (t){
t.removeAttribute("data-inertia");
})(n),
e.theme!==a.theme&&(pt(n, "remove", e.theme), pt(n, "add", a.theme));
}
var lt=1,
dt=[];
function ft(a, r){
var i,
o,
c,
h,
g,
w=K(a, r);
if(!w.multiple&&a._tippy) return null;
var k,
A,
E,
C,
X,
Y = !1,
T = !1,
I = !1,
S = !1,
z=[],
M=D(ht, w.interactiveDebounce),
H=lt++,
V=st(H, w),
_=tt(V),
j={
id: H,
reference: a,
popper: V,
popperChildren: _,
popperInstance: null,
props: w,
state: {
isEnabled: !0,
isVisible: !1,
isDestroyed: !1,
isMounted: !1,
isShown: !1,
},
clearDelayTimeouts: Tt,
set: It,
setContent: function (t){
It({ content: t });
},
show: St,
hide: Ot,
enable: function (){
j.state.isEnabled = !0;
},
disable: function (){
j.state.isEnabled = !1;
},
destroy: function (t){
if(j.state.isDestroyed) return;
(T = !0), j.state.isMounted&&Ot(0);
bt(), delete a._tippy;
var e=j.props.target;
e &&
t &&
F(a) &&
d(a.querySelectorAll(e)).forEach(function (t){
t._tippy&&t._tippy.destroy();
});
j.popperInstance&&j.popperInstance.destroy();
(T = !1), (j.state.isDestroyed = !0);
},
};
return (
(a._tippy=j),
(V._tippy=j),
ut(),
w.lazy||Ct(),
w.showOnInit&&Lt(),
!w.a11y ||
w.target ||
!F((X=$())) ||
(l.call(X,
"a[href],area[href],button,details,input,textarea,select,iframe,[tabindex]"
) &&
!X.hasAttribute("disabled")) ||
$().setAttribute("tabindex", "0"),
V.addEventListener("mouseenter", function (t){
j.props.interactive &&
j.state.isVisible &&
"mouseenter"===i &&
Lt(t, !0);
}),
V.addEventListener("mouseleave", function (){
j.props.interactive &&
"mouseenter"===i &&
document.addEventListener("mousemove", M);
}),
j
);
function R(){
document.removeEventListener("mousemove", yt);
}
function Z(){
document.body.removeEventListener("mouseleave", Xt),
document.removeEventListener("mousemove", M),
(dt=dt.filter(function (t){
return t!==M;
}));
}
function $(){
return j.props.triggerTarget||a;
}
function et(){
document.addEventListener("click", Yt, !0);
}
function at(){
document.removeEventListener("click", Yt, !0);
}
function rt(){
return [
j.popperChildren.tooltip,
j.popperChildren.backdrop,
j.popperChildren.content,
];
}
function nt(){
var t=j.props.followCursor;
return (t&&"focus"!==i)||(O&&"initial"===t);
}
function pt(t, e){
var a=j.popperChildren.tooltip;
function r(t){
t.target===a&&(it(a, "remove", r), e());
}
if(0===t) return e();
it(a, "remove", E), it(a, "add", r), (E=r);
}
function mt(t, e){
var a=arguments.length > 2&&void 0!==arguments[2]&&arguments[2];
$().addEventListener(t, e, a),
z.push({ eventType: t, handler: e, options: a });
}
function ut(){
j.props.touchHold &&
!j.props.target &&
(mt("touchstart", vt, u), mt("touchend", xt, u)),
j.props.trigger
.trim()
.split(" ")
.forEach(function (t){
if("manual"!==t)
if(j.props.target)
switch (t){
case "mouseenter":
mt("mouseover", wt), mt("mouseout", kt);
break;
case "focus":
mt("focusin", wt), mt("focusout", kt);
break;
case "click":
mt(t, wt);
}
else
switch ((mt(t, vt), t)){
case "mouseenter":
mt("mouseleave", xt);
break;
case "focus":
mt(n ? "focusout":"blur", gt);
}});
}
function bt(){
z.forEach(function (t){
var e=t.eventType,
a=t.handler,
r=t.options;
$().removeEventListener(e, a, r);
}),
(z=[]);
}
function yt(t){
var r=(o=t),
n=r.clientX,
i=r.clientY;
if(C){
var p=m(t.target, function (t){
return t===a;
}),
s=a.getBoundingClientRect(),
c=j.props.followCursor,
l="horizontal"===c,
d="vertical"===c,
f=B(["top", "bottom"], ot(V)),
u=V.getAttribute(y),
b = !!u&&!!u.split("-")[1],
v=f ? V.offsetWidth:V.offsetHeight,
h=v / 2,
x=f ? 0:b ? v:h,
g=f ? (b ? v:h):0;
(!p&&j.props.interactive) ||
((j.popperInstance.reference=e({}, j.popperInstance.reference, {
referenceNode: a,
clientWidth: 0,
clientHeight: 0,
getBoundingClientRect: function (){
return {
width: f ? v:0,
height: f ? 0:v,
top: (l ? s.top:i) - x,
bottom: (l ? s.bottom:i) + x,
left: (d ? s.left:n) - g,
right: (d ? s.right:n) + g,
};},
})),
j.popperInstance.update()),
"initial"===c&&j.state.isVisible&&R();
}}
function vt(t){
j.state.isEnabled &&
!At(t) &&
(j.state.isVisible ||
((i=t.type),
t instanceof MouseEvent &&
((o=t),
dt.forEach(function (e){
return e(t);
}))),
"click"===t.type&&!1!==j.props.hideOnClick&&j.state.isVisible
? Xt()
: Lt(t));
}
function ht(t){
var e=f(t.target, L)===V,
r=m(t.target, function (t){
return t===a;
});
e ||
r ||
((function (t, e, a, r){
if(!t) return !0;
var n=a.clientX,
i=a.clientY,
o=r.interactiveBorder,
p=r.distance,
s=e.top - i > ("top"===t ? o + p:o),
c=i - e.bottom > ("bottom"===t ? o + p:o),
l=e.left - n > ("left"===t ? o + p:o),
d=n - e.right > ("right"===t ? o + p:o);
return s||c || l||d;
})(ot(V), V.getBoundingClientRect(), t, j.props) &&
(Z(), Xt()));
}
function xt(t){
if(!At(t))
return j.props.interactive
? (document.body.addEventListener("mouseleave", Xt),
document.addEventListener("mousemove", M),
void dt.push(M))
: void Xt();
}
function gt(t){
t.target===$() &&
((j.props.interactive &&
t.relatedTarget &&
V.contains(t.relatedTarget)) ||
Xt());
}
function wt(t){
f(t.target, j.props.target)&&Lt(t);
}
function kt(t){
f(t.target, j.props.target)&&Xt();
}
function At(t){
var e="ontouchstart" in window,
a=B(t.type, "touch"),
r=j.props.touchHold;
return (e&&O && r&&!a)||(O&&!r&&a);
}
function Et(){
!S &&
A &&
((S = !0),
(function (t){
t.offsetHeight;
})(V),
A());
}
function Ct(){
var r=j.props.popperOptions,
n=j.popperChildren,
i=n.tooltip,
o=n.arrow,
p=q(r, "preventOverflow");
function s(t){
j.props.flip &&
!j.props.flipOnUpdate &&
(t.flipped&&(j.popperInstance.options.placement=t.placement),
W(j.popperInstance.modifiers, !1)),
i.setAttribute(y, t.placement),
!1!==t.attributes[v] ? i.setAttribute(v, ""):i.removeAttribute(v),
k &&
k!==t.placement &&
I &&
((i.style.transition="none"),
requestAnimationFrame(function (){
i.style.transition="";
})),
(k=t.placement),
(I=j.state.isVisible);
var a=ot(V),
r=i.style;
(r.top=r.bottom=r.left=r.right=""),
(r[a]=-(j.props.distance - 10) + "px");
var n=p&&void 0!==p.padding ? p.padding:b,
o="number"==typeof n,
s=e(
{
top: o ? n:n.top,
bottom: o ? n:n.bottom,
left: o ? n:n.left,
right: o ? n:n.right,
},
!o&&n
);
(s[a]=o ? n + j.props.distance:(n[a]||0) + j.props.distance),
(j.popperInstance.modifiers.filter(function (t){
return "preventOverflow"===t.name;
})[0].padding=s),
(C=s);
}
var c=e({ eventsEnabled: !1, placement: j.props.placement }, r, {
modifiers: e({}, r ? r.modifiers:{}, {
preventOverflow: e(
{ boundariesElement: j.props.boundary, padding: b },
p
),
arrow: e({ element: o, enabled: !!o }, q(r, "arrow")),
flip: e(
{
enabled: j.props.flip,
padding: j.props.distance + b,
behavior: j.props.flipBehavior,
},
q(r, "flip")
),
offset: e({ offset: j.props.offset }, q(r, "offset")),
}),
onCreate: function (t){
s(t), Et(), r&&r.onCreate&&r.onCreate(t);
},
onUpdate: function (t){
s(t), Et(), r&&r.onUpdate&&r.onUpdate(t);
},
});
j.popperInstance=new t(a, V, c);
}
function Lt(t, a){
if((Tt(), !j.state.isVisible)){
if(j.props.target)
return (function (t){
if(t){
var a=f(t.target, j.props.target);
a &&
!a._tippy &&
ft(
a,
e({}, j.props, {
content: U(r.content, [a]),
appendTo: r.appendTo,
target: "",
showOnInit: !0,
})
);
}})(t);
if(((Y = !0), t&&!a&&j.props.onTrigger(j, t), j.props.wait))
return j.props.wait(j, t);
nt() &&
!j.state.isMounted &&
(j.popperInstance||Ct(),
document.addEventListener("mousemove", yt)),
et();
var n=P(j.props.delay, 0, p.delay);
n
? (c=setTimeout(function (){
St();
}, n))
: St();
}}
function Xt(){
if((Tt(), !j.state.isVisible)) return R(), void at();
Y = !1;
var t=P(j.props.delay, 1, p.delay);
t
? (h=setTimeout(function (){
j.state.isVisible&&Ot();
}, t))
: (g=requestAnimationFrame(function (){
Ot();
}));
}
function Yt(t){
if(!j.props.interactive||!V.contains(t.target)){
if($().contains(t.target)){
if(O) return;
if(j.state.isVisible&&B(j.props.trigger, "click")) return;
}
!0===j.props.hideOnClick&&(Tt(), Ot());
}}
function Tt(){
clearTimeout(c), clearTimeout(h), cancelAnimationFrame(g);
}
function It(t){
Q((t=t||{}), p), bt();
var r=j.props,
n=K(a, e({}, j.props, {}, t, { ignoreAttributes: !0 }));
(n.ignoreAttributes=N(t, "ignoreAttributes")
? t.ignoreAttributes||!1
: r.ignoreAttributes),
(j.props=n),
ut(),
Z(),
(M=D(ht, n.interactiveDebounce)),
ct(V, r, n),
(j.popperChildren=tt(V)),
j.popperInstance &&
(s.some(function (e){
return N(t, e)&&t[e]!==r[e];
})
? (j.popperInstance.destroy(),
Ct(),
j.state.isVisible&&j.popperInstance.enableEventListeners(),
j.props.followCursor&&o && yt(o))
: j.popperInstance.update());
}
function St(){
var t =
arguments.length > 0&&void 0!==arguments[0]
? arguments[0]
: P(j.props.duration, 0, p.duration[1]);
if(!j.state.isDestroyed &&
j.state.isEnabled &&
(!O||j.props.touch) &&
!$().hasAttribute("disabled") &&
!1!==j.props.onShow(j)
){
et(),
(V.style.visibility="visible"),
(j.state.isVisible = !0),
j.props.interactive&&$().classList.add(x);
var e=rt();
J(e.concat(V), 0),
(A=function (){
if(j.state.isVisible){
var r=nt();
r&&o ? yt(o):r||j.popperInstance.update(),
j.popperChildren.backdrop &&
(j.popperChildren.content.style.transitionDelay =
Math.round(t / 12) + "ms"),
j.props.sticky &&
(function (){
J([V], n ? 0:j.props.updateDuration);
var t=a.getBoundingClientRect();
!(function e(){
var r=a.getBoundingClientRect();
(t.top===r.top &&
t.right===r.right &&
t.bottom===r.bottom &&
t.left===r.left) ||
j.popperInstance.scheduleUpdate(),
(t=r),
j.state.isMounted&&requestAnimationFrame(e);
})();
})(),
J([V], j.props.updateDuration),
J(e, t),
G(e, "visible"),
(function (t, e){
pt(t, e);
})(t, function (){
j.props.aria &&
$().setAttribute("aria-".concat(j.props.aria), V.id),
j.props.onShown(j),
(j.state.isShown = !0);
});
}}),
(function (){
S = !1;
var t=nt();
j.popperInstance
? (W(j.popperInstance.modifiers, j.props.flip),
t ||
((j.popperInstance.reference=a),
j.popperInstance.enableEventListeners()),
j.popperInstance.scheduleUpdate())
: (Ct(), t||j.popperInstance.enableEventListeners());
var e=j.props.appendTo,
r="parent"===e ? a.parentNode:U(e, [a]);
r.contains(V) ||
(r.appendChild(V), j.props.onMount(j), (j.state.isMounted = !0));
})();
}}
function Ot(){
var t =
arguments.length > 0&&void 0!==arguments[0]
? arguments[0]
: P(j.props.duration, 1, p.duration[1]);
if(!j.state.isDestroyed &&
(j.state.isEnabled||T) &&
(!1!==j.props.onHide(j)||T)
){
at(),
(V.style.visibility="hidden"),
(j.state.isVisible = !1),
(j.state.isShown = !1),
(I = !1),
j.props.interactive&&$().classList.remove(x);
var e=rt();
J(e, t),
G(e, "hidden"),
(function (t, e){
pt(t, function (){
!j.state.isVisible &&
V.parentNode &&
V.parentNode.contains(V) &&
e();
});
})(t, function (){
Y||R(),
j.props.aria&&$().removeAttribute("aria-".concat(j.props.aria)),
j.popperInstance.disableEventListeners(),
(j.popperInstance.options.placement=j.props.placement),
V.parentNode.removeChild(V),
j.props.onHidden(j),
(j.state.isMounted = !1);
});
}}
}
var mt = !1;
function ut(t, a){
Q(a||{}, p),
mt ||
(document.addEventListener("touchstart", z, u),
window.addEventListener("blur", V),
(mt = !0));
var r,
n=e({}, p, {}, a);
(r=t),
"[object Object]"!=={}.toString.call(r) ||
r.addEventListener ||
(function (t){
var e={
isVirtual: !0,
attributes: t.attributes||{},
contains: function (){},
setAttribute: function (e, a){
t.attributes[e]=a;
},
getAttribute: function (e){
return t.attributes[e];
},
removeAttribute: function (e){
delete t.attributes[e];
},
hasAttribute: function (e){
return e in t.attributes;
},
addEventListener: function (){},
removeEventListener: function (){},
classList: {
classNames: {},
add: function (e){
t.classList.classNames[e] = !0;
},
remove: function (e){
delete t.classList.classNames[e];
},
contains: function (e){
return e in t.classList.classNames;
},
},
};
for (var a in e) t[a]=e[a];
})(t);
var i=(function (t){
if(j(t)) return [t];
if(t instanceof NodeList) return d(t);
if(Array.isArray(t)) return t;
try {
return d(document.querySelectorAll(t));
} catch (t){
return [];
}})(t).reduce(function (t, e){
var a=e&&ft(e, n);
return a&&t.push(a), t;
}, []);
return j(t) ? i[0]:i;
}
return (
(ut.version="4.3.5"),
(ut.defaults=p),
(ut.setDefaults=function (t){
Object.keys(t).forEach(function (e){
p[e]=t[e];
});
}),
(ut.hideAll=function (){
var t =
arguments.length > 0&&void 0!==arguments[0] ? arguments[0]:{},
e=t.exclude,
a=t.duration;
d(document.querySelectorAll(L)).forEach(function (t){
var r,
n=t._tippy;
if(n){
var i = !1;
e &&
(i =
(r=e)._tippy&&!l.call(r, L)
? n.reference===e
: t===e.popper),
i||n.hide(a);
}});
}),
(ut.group=function (t){
var a =
arguments.length > 1&&void 0!==arguments[1] ? arguments[1]:{},
r=a.delay,
n=void 0===r ? t[0].props.delay:r,
i=a.duration,
o=void 0===i ? 0:i,
p = !1;
function s(t){
(p=t), f();
}
function c(e){
e._originalProps.onShow(e),
t.forEach(function (t){
t.set({ duration: o }), t.state.isVisible&&t.hide();
}),
s(!0);
}
function l(t){
t._originalProps.onHide(t), s(!1);
}
function d(t){
t._originalProps.onShown(t),
t.set({ duration: t._originalProps.duration });
}
function f(){
t.forEach(function (t){
t.set({
onShow: c,
onShown: d,
onHide: l,
delay: p ? [0, Array.isArray(n) ? n[1]:n]:n,
duration: p ? o:t._originalProps.duration,
});
});
}
t.forEach(function (t){
t._originalProps
? t.set(t._originalProps)
: (t._originalProps=e({}, t.props));
}),
f();
}),
a &&
setTimeout(function (){
d(document.querySelectorAll("[data-tippy]")).forEach(function (t){
var e=t.getAttribute("data-tippy");
e&&ut(t, { content: e });
});
}),
(function (t){
if(a){
var e=document.createElement("style");
(e.type="text/css"),
(e.textContent=t),
e.setAttribute("data-tippy-stylesheet", "");
var r=document.head,
n=r.querySelector("style,link");
n ? r.insertBefore(e, n):r.appendChild(e);
}})(
'.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{transition-timing-function:cubic-bezier(.165,.84,.44,1);max-width:calc(100% - 8px);pointer-events:none;outline:0}.tippy-popper[x-placement^=top] .tippy-backdrop{border-radius:40% 40% 0 0}.tippy-popper[x-placement^=top] .tippy-roundarrow{bottom:-7px;bottom:-6.5px;-webkit-transform-origin:50% 0;transform-origin:50% 0;margin:0 3px}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tippy-popper[x-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;bottom:-7px;margin:0 3px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=top] .tippy-backdrop{-webkit-transform-origin:0 25%;transform-origin:0 25%}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-55%);transform:scale(1) translate(-50%,-55%)}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%,-45%);transform:scale(.2) translate(-50%,-45%);opacity:0}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateY(-10px);transform:perspective(700px) translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateX(60deg);transform:perspective(700px) rotateX(60deg)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=top] [data-animation=scale]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px) scale(.5);transform:translateY(-10px) scale(.5)}.tippy-popper[x-placement^=bottom] .tippy-backdrop{border-radius:0 0 30% 30%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow{top:-7px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;margin:0 3px}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{position:absolute;left:0}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;top:-7px;margin:0 3px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.tippy-popper[x-placement^=bottom] .tippy-backdrop{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-45%);transform:scale(1) translate(-50%,-45%)}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%);transform:scale(.2) translate(-50%);opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateY(10px);transform:perspective(700px) translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateX(-60deg);transform:perspective(700px) rotateX(-60deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=scale]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px) scale(.5);transform:translateY(10px) scale(.5)}.tippy-popper[x-placement^=left] .tippy-backdrop{border-radius:50% 0 0 50%}.tippy-popper[x-placement^=left] .tippy-roundarrow{right:-12px;-webkit-transform-origin:33.33333333% 50%;transform-origin:33.33333333% 50%;margin:3px 0}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.tippy-popper[x-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;right:-7px;margin:3px 0;-webkit-transform-origin:0 50%;transform-origin:0 50%}.tippy-popper[x-placement^=left] .tippy-backdrop{-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-75%,-50%);transform:scale(.2) translate(-75%,-50%);opacity:0}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(-20px);transform:translateX(-20px)}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateX(-10px);transform:perspective(700px) translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateY(-60deg);transform:perspective(700px) rotateY(-60deg)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=left] [data-animation=scale]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px) scale(.5);transform:translateX(-10px) scale(.5)}.tippy-popper[x-placement^=right] .tippy-backdrop{border-radius:0 50% 50% 0}.tippy-popper[x-placement^=right] .tippy-roundarrow{left:-12px;-webkit-transform-origin:66.66666666% 50%;transform-origin:66.66666666% 50%;margin:3px 0}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.tippy-popper[x-placement^=right] .tippy-arrow{border-right:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;left:-7px;margin:3px 0;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.tippy-popper[x-placement^=right] .tippy-backdrop{-webkit-transform-origin:-50% 0;transform-origin:-50% 0}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-25%,-50%);transform:scale(.2) translate(-25%,-50%);opacity:0}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateX(10px);transform:perspective(700px) translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateY(60deg);transform:perspective(700px) rotateY(60deg)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=right] [data-animation=scale]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px) scale(.5);transform:translateX(10px) scale(.5)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;padding:.3125rem .5625rem;line-height:1.4;text-align:center;background-color:#333}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:initial}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] .tippy-roundarrow path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow,.tippy-roundarrow{position:absolute;width:0;height:0}.tippy-roundarrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}'
),
ut
);
});
(function name($, window, document){
var yayVariationForm=function ($form){
var self=this;
self.$form=$form;
self.initStock={};
self.variantWrapperClass=".yay-variant-wrapper";
self.termClass=".yay-swatches-attribute-term";
self.swatchActive="yay-swatches-active";
self.swatchActiveClass=".yay-swatches-active";
self.swatchTickSelected="yay-swatches-tick-selected";
self.swatchRadioClass="yay-swatches-swatch-radio";
self.attrPreviewWrapper="span.yay-swatches-attribute-preview-wrapper";
self.unavailableClass="disabled wc-variation-is-unavailable";
self.$swatches=$form.find(self.termClass);
self.$variantions=$form.find(".variations");
self.$swatchWrapper=$form.find(self.variantWrapperClass);
self.$attributeFields=$form.find(".variations select");
self.$singleVariation=$form.find(".single_variation");
self.variationData=$form.data("product_variations");
self.useAjax=false===self.variationData;
self.currentOptions={};
self.globalAvailableOptions=[];
self.termSelected={};
self.inStockVariants={};
self.getAvailableOptions=self.getAvailableOptions.bind(self);
self.resetSwatches=self.resetSwatches.bind(self);
self.getChosenAttributes=self.getChosenAttributes.bind(self);
self.soldOutClass=self.getSoldOutClasessName.bind(self);
self.getLableName=self.getLableName.bind(self);
self.reloadPage=self.reloadPage.bind(self);
self.lockSwatch=self.lockSwatch.bind(self);
self.doSelect=self.doSelect.bind(self);
self.variantAvailableToObj=self.variantAvailableToObj.bind(self);
self.handleSoldOutSwatch=self.handleSoldOutSwatch.bind(self);
self.getAttributesFromVariation =
self.getAttributesFromVariation.bind(self);
self.onChangeSelect=self.onChangeSelect.bind(self);
self.autoResetSwatches=self.autoResetSwatches.bind(self);
$form.on("click", self.termClass, { yayVariationForm: self }, self.onClick);
$form.on("change",
".variations select",
{ yayVariationForm: self },
self.onSelect
);
$form.on("check_variations",
{ yayVariationForm: self },
self.onFindVariation
);
$form.on("found_variation",
{ yayVariationForm: self },
self.onFoundVariation
);
$form.find(".reset_variations").on("click",
{
yayVariationForm: self,
},
self.resetSwatches
);
self.reloadPage(self);
};
yayVariationForm.prototype.doSelect=function (selectKey, value){
const { currentOptions, globalAvailableOptions, inStockVariants }=this;
let stock=inStockVariants;
const varis=globalAvailableOptions;
if(!selectKey||!value){
return;
}
currentOptions[selectKey]=value;
const newStock=JSON.parse(JSON.stringify(this.initStock));
newStock[selectKey]=stock[selectKey];
stock=newStock;
const stockKeys=Object.keys(stock);
varis.forEach((vari)=> {
stockKeys.forEach((checkKey)=> {
if(selectKey===checkKey){
return;
}
for (let index=0; index < stockKeys.length; index++){
const compareKey=stockKeys[index];
if(compareKey===checkKey){
continue;
}
if(currentOptions[compareKey] &&
vari[compareKey]!==currentOptions[compareKey]
){
return;
}}
stock[checkKey][vari[checkKey]]=true;
});
});
this.inStockVariants=stock;
};
yayVariationForm.prototype.reloadPage=function (form){
const { variationData, getAvailableOptions, $form }=form;
if(form.useAjax){
$form.block({
message: null,
overlayCSS: { background: "#fff", opacity: 0.6 },
});
$.ajax({
url: yaySwatches.ajaxurl,
type: "POST",
data: {
action: "get_available_variation",
product_id: $form.data("product_id"),
_wpnonce: yaySwatches.nonce,
},
success: function success(res){
form.handleSoldOutSwatch(res);
},
complete: function complete(){
$form.unblock();
$form.css({ visibility: "visible", height: "auto", opacity: 1 });
},
});
}else{
const availableVariations=getAvailableOptions(variationData);
form.handleSoldOutSwatch(availableVariations);
$form.css({ visibility: "visible", height: "auto", opacity: 1 });
}};
yayVariationForm.prototype.handleSoldOutSwatch=function (args_available){
this.globalAvailableOptions=args_available;
this.variantAvailableToObj(args_available);
const attributes_data=this.getChosenAttributes().data;
const attributes=this.getAttributesFromVariation(attributes_data);
for (const [key, value] of Object.entries(attributes)){
this.doSelect(key, value);
}
if(yay_swatch_is_soldout_hide_interact(yaySwatches, this.$form)){
if(Object.keys(this.currentOptions).length){
this.lockSwatch();
}}else{
this.lockSwatch();
}
this.autoResetSwatches();
};
yayVariationForm.prototype.variantAvailableToObj=function (res){
if(!res.length) return;
let stock={};
Object.keys(res[0]).forEach((k)=> {
stock[k]={};});
this.initStock=JSON.parse(JSON.stringify(stock));
res.forEach((vari)=> {
for (const [attr, val] of Object.entries(vari)){
stock[attr][val]=true;
}});
this.inStockVariants=stock;
};
yayVariationForm.prototype.lockSwatch=function (){
const { $swatchWrapper, soldOutClass, termClass }=this;
const yaySoldOutClass=soldOutClass();
$swatchWrapper.each((index, swatchWrap)=> {
const $swatch=$(swatchWrap).find(termClass);
$swatch.each((idx, swatch)=> {
const swatchAttr=swatch.dataset.attribute;
const swatchValue=swatch.dataset.term;
if(this?.inStockVariants[swatchAttr]?.[swatchValue]){
swatch.classList.remove(...yaySoldOutClass.split(" "));
if(swatch.dataset.type==="radio"){
const $label=$(swatch).closest("label");
$label.removeClass("yay-swatches-non-interactive");
}}else{
swatch.classList.add(...yaySoldOutClass.split(" "));
if(swatch.dataset.type==="radio" &&
yaySwatches?.sold_out?.soldOutShowHideOptions==="show_disable"
){
const $label=$(swatch).closest("label");
$label.addClass("yay-swatches-non-interactive");
}}
});
});
};
yayVariationForm.prototype.onClick=function (event){
const yayVariationForm=event.data.yayVariationForm;
const {
$form,
$attributeFields,
swatchActive,
variantWrapperClass,
swatchActiveClass,
unavailableClass,
getLableName,
swatchTickSelected,
}=yayVariationForm;
let _this=event.target,
no_matching_txt =
wc_add_to_cart_variation_params.i18n_no_matching_variations_text,
dataset=_this.dataset;
if(!dataset.attribute&&$(this)[0]){
_this=$(this)[0];
dataset=_this.dataset;
}
if("radio"!==$(_this).data("type")){
event.stopPropagation();
event.preventDefault();
}
const field=yay_swatch_get_field_by_term_selected(
$form,
dataset,
$attributeFields,
yaySwatches
);
if(field&&field.find(`option[value="${dataset.term}"]`).length){
yayVariationForm.termSelected={
key: dataset.attribute,
value: dataset.term,
};
field.val(dataset.term).change();
}else{
if($attributeFields.length > 1){
alert(no_matching_txt);
return;
}
if(yay_swatch_is_soldout_hide_interact(yaySwatches, $form)){
yayVariationForm.lockSwatch();
}
$form.find(".reset_variations").css("visibility", "visible");
$form
.find(".single_variation")
.show()
.html("<p>" + no_matching_txt + "</p>");
$(".single_add_to_cart_button").addClass(unavailableClass);
}
$(swatchActiveClass, _this.closest(variantWrapperClass)).removeClass(swatchActive
);
_this.classList.add(swatchActive);
const $variantWrapper=_this.closest(variantWrapperClass);
$($variantWrapper)
.find(".yay-swatches-color")
.removeClass(swatchTickSelected);
if($variantWrapper?.dataset.tickSelected==="enable" &&
($variantWrapper?.dataset.type==="variant_image" ||
$variantWrapper?.dataset.type==="custom")
){
const $color=$(_this).find(".yay-swatches-color");
$color.addClass(swatchTickSelected);
const tickColor=getTickColor($color.attr("style")||"");
$color.css("--yay-swatches-tick-color", tickColor);
}
getLableName($(this));
};
yayVariationForm.prototype.resetSwatches=function (event){
const {
$form,
$swatches,
$variantions,
attrPreviewWrapper,
swatchRadioClass,
soldOutClass,
swatchActive,
variantAvailableToObj,
globalAvailableOptions,
swatchTickSelected,
}=this;
const sold_out_class=soldOutClass();
$swatches.removeClass(`${sold_out_class} ${swatchActive}`);
$swatches.find(".yay-swatches-color").removeClass(swatchTickSelected);
yay_swatch_product_hide_clear_button_compatibles($form, yaySwatches);
if($swatches.hasClass(swatchRadioClass)){
$swatches.prop("checked", false);
}
$variantions.find(attrPreviewWrapper).remove();
this.termSelected={ key: "", value: "" };
variantAvailableToObj(globalAvailableOptions);
};
yayVariationForm.prototype.getChosenAttributes=function (){
var data={};
var count=0;
var chosen=0;
this.$attributeFields.each(function (){
var attribute_name =
$(this).data("attribute_name")||$(this).attr("name");
var value=$(this).val()||"";
if(value.length > 0){
chosen++;
}
count++;
data[attribute_name]=value;
});
return {
count: count,
chosenCount: chosen,
data: data,
};};
yayVariationForm.prototype.onSelect=function (event){
const { yayVariationForm }=event.data;
const key_selected=yay_swatch_get_key_by_term_selected(
event,
yaySwatches
);
yayVariationForm.termSelected={
key: key_selected,
value: event.target.value,
};
if(!$(event.target).parent().hasClass("yay-swatch-variant-default-wrapper")
){
if(event.target.value===""){
$(event.target)
.closest("tr")
.find(yayVariationForm.attrPreviewWrapper)
.remove();
yayVariationForm.termSelected={
key: key_selected,
value: "",
};}}
yayVariationForm.onChangeSelect();
};
yayVariationForm.prototype.onChangeSelect=function (){
const {
getAttributesFromVariation,
getChosenAttributes,
termSelected,
doSelect,
lockSwatch,
}=this;
const attributes_data=getChosenAttributes().data;
currentOptions=getAttributesFromVariation(attributes_data);
this.currentOptions=currentOptions;
doSelect(termSelected.key, termSelected.value);
if(yay_swatch_is_soldout_hide_interact(yaySwatches, this.$form)){
if(termSelected.key!=""&&termSelected.value!=""){
lockSwatch();
}}else{
lockSwatch();
}};
yayVariationForm.prototype.autoResetSwatches=function (){
for (const [key, value] of Object.entries(this.currentOptions)){
if(!this?.inStockVariants[key]?.[value]){
setTimeout(()=> {
this.$form.find(".reset_variations").trigger("click");
}, 0);
break;
}}
};
yayVariationForm.prototype.onFindVariation=function (event){
const {
getLableName,
getChosenAttributes,
$form,
getAttributesFromVariation,
}=event.data.yayVariationForm;
const attributes=getChosenAttributes();
const current_attributes=getAttributesFromVariation(attributes.data);
yay_swatch_get_label_by_term_selected(
$form,
current_attributes,
getLableName,
yaySwatches
);
};
yayVariationForm.prototype.onFoundVariation=function (
event,
variation,
purchasable
){
yay_swatch_product_change_image_compatibles(
yaySwatches.is_theme_active,
variation
);
};
yayVariationForm.prototype.getAvailableOptions=function (variationData){
const options=[];
const attrDefaults=yay_swatch_get_all_products_attributes(
this.$form.closest(".product")
);
variationData.forEach((variation)=> {
if(!variation.is_in_stock) return;
const attrs=variation.attributes;
const emptyAttributes=Object.entries(attrs).filter(([key, value])=> value===""
);
if(emptyAttributes.length > 0){
let expanded=[attrs];
emptyAttributes.forEach(([key])=> {
const defaults=attrDefaults[key]||[""];
const newExpanded=[];
expanded.forEach((base)=> {
defaults.forEach((val)=> {
newExpanded.push({
...base,
[key]: val,
});
});
});
expanded=newExpanded;
});
expanded.forEach((exp)=> {
options.push(this.getAttributesFromVariation(exp));
});
}else{
options.push(this.getAttributesFromVariation(attrs));
}});
return options;
};
yayVariationForm.prototype.getSoldOutClasessName=function (){
let classes_name="yay-swatches-disabled";
switch (yaySwatches.sold_out.soldOutShowHideOptions){
case "show":
switch (yaySwatches.sold_out.soldOutShowStyle){
case "no_effect":
classes_name="yay-swatches-no-effect";
break;
default:
break;
}
break;
case "show_disable":
switch (yaySwatches.sold_out.soldOutShowStyle){
case "no_effect":
classes_name =
"yay-swatches-no-effect yay-swatches-non-interactive";
break;
default:
classes_name="yay-swatches-disabled yay-swatches-non-interactive";
break;
}
break;
default:
classes_name="yay-swatches-disabled-hide";
break;
}
return classes_name;
};
yayVariationForm.prototype.getLableName=function (_this, autoSet=false){
const label_html=".label strong.yay-swatches-attribute-preview",
_label_text = !autoSet ? _this.data("label-text"):autoSet.text,
_parent=".variations tr";
if(_this.closest(_parent).find(label_html).html()){
_this.closest(_parent).find(label_html).text(_label_text);
}else{
const html=`<span class="yay-swatches-attribute-preview-wrapper">: <strong class="yay-swatches-attribute-preview">${_label_text}</strong></span>`;
_this.closest(_parent).find(".label label").append(html);
}};
yayVariationForm.prototype.getAttributesFromVariation=function (
attributes
){
const currentOptions={};
const AttributePrefix="attribute_";
for (const [attr, val] of Object.entries(attributes)){
const haveAttributePrefix=attr.indexOf(AttributePrefix);
currentOptions[
haveAttributePrefix!==-1
? attr.substring(AttributePrefix.length)
: attr
]=val;
}
return currentOptions;
};
$.fn.yay_variation_form=function (){
return new yayVariationForm(this);
};
$(function (){
if(typeof wc_add_to_cart_variation_params!=="undefined"){
yay_swatch_frontend_start(yaySwatches);
yay_swatch_compatibles();
}});
})(jQuery, window, document);
jQuery(function(e){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,r=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function n(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function o(e){t&&(localStorage.setItem(r,e),sessionStorage.setItem(r,e))}var a={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(r){r&&r.fragments&&(e.each(r.fragments,function(t,r){e(t).replaceWith(r)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(r.fragments)),o(r.cart_hash),r.cart_hash&&n()),e(document.body).trigger("wc_fragments_refreshed"))},error:function(){e(document.body).trigger("wc_fragments_ajax_error")}};function s(){e.ajax(a)}if(t){var i=null;e(document.body).on("wc_fragment_refresh updated_wc_div",function(){s()}),e(document.body).on("added_to_cart removed_from_cart",function(e,t,a){var s=sessionStorage.getItem(r);null!==s&&s!==undefined&&""!==s||n(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),o(a)}),e(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(s,864e5)}),e(window).on("storage onstorage",function(e){r===e.originalEvent.key&&localStorage.getItem(r)!==sessionStorage.getItem(r)&&s()}),e(window).on("pageshow",function(t){t.originalEvent.persisted&&(e(".widget_shopping_cart_content").empty(),e(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(r),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(s,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";e.each(c,function(t,r){e(t).replaceWith(r)}),e(document.body).trigger("wc_fragments_loaded")}catch(f){s()}}else s();Cookies.get("woocommerce_items_in_cart")>0?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})});
(()=>{"use strict";var e,r,a,n={},c={};function __webpack_require__(e){var r=c[e];if(void 0!==r)return r.exports;var a=c[e]={exports:{}};return n[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.m=n,e=[],__webpack_require__.O=(r,a,n,c)=>{if(!a){var b=1/0;for(o=0;o<e.length;o++){for(var[a,n,c]=e[o],i=!0,t=0;t<a.length;t++)(!1&c||b>=c)&&Object.keys(__webpack_require__.O).every(e=>__webpack_require__.O[e](a[t]))?a.splice(t--,1):(i=!1,c<b&&(b=c));if(i){e.splice(o--,1);var _=n();void 0!==_&&(r=_)}}return r}c=c||0;for(var o=e.length;o>0&&e[o-1][2]>c;o--)e[o]=e[o-1];e[o]=[a,n,c]},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((r,a)=>(__webpack_require__.f[a](e,r),r),[])),__webpack_require__.u=e=>635===e?"code-highlight.38ec4828db8d33cccbe9.bundle.min.js":519===e?"video-playlist.d48e1a11007fe8c248f8.bundle.min.js":375===e?"paypal-button.5c63e4c8f36fb06aff31.bundle.min.js":786===e?"bd4b7d0b3467c3b749da.bundle.min.js":857===e?"stripe-button.b7e32b5d713d60752c7e.bundle.min.js":581===e?"progress-tracker.7b160888e308c5f64701.bundle.min.js":961===e?"animated-headline.bc08854fb1e1a80434b2.bundle.min.js":692===e?"media-carousel.87c2cf115553a2c4f709.bundle.min.js":897===e?"carousel.e2af910b095554625156.bundle.min.js":416===e?"countdown.05b148ca20af32fc8e9f.bundle.min.js":292===e?"hotspot.737497535441dc0bc037.bundle.min.js":325===e?"form.cfd61a9174be80f835c6.bundle.min.js":543===e?"gallery.cca2358f59857ce6f62f.bundle.min.js":970===e?"lottie.55ad84218daed1323133.bundle.min.js":334===e?"nav-menu.3afa8f5eb1fef7c22561.bundle.min.js":887===e?"popup.61d4fcab8891b2e07802.bundle.min.js":535===e?"load-more.7c4417f8a727b79f546f.bundle.min.js":396===e?"posts.844727d8428792223d2f.bundle.min.js":726===e?"portfolio.3d0e387cc28c07bae511.bundle.min.js":316===e?"share-buttons.b99b5ff11c944a3a8ea9.bundle.min.js":829===e?"slides.8e9b74f1b31471377df8.bundle.min.js":158===e?"social.de5cec83bf689b2f1f01.bundle.min.js":404===e?"table-of-contents.485ffc086d8923139868.bundle.min.js":345===e?"archive-posts.0b71f7023819e3872142.bundle.min.js":798===e?"search-form.9abeafeecde90cf7e0f4.bundle.min.js":6===e?"woocommerce-menu-cart.33fbf47b819947e7a2a7.bundle.min.js":80===e?"woocommerce-purchase-summary.118e54b95a68f0ad8c09.bundle.min.js":354===e?"woocommerce-checkout-page.8391e03a51a57a42528a.bundle.min.js":4===e?"woocommerce-cart.9131ef5e40333f8066dd.bundle.min.js":662===e?"woocommerce-my-account.ab469f426496c628ac6c.bundle.min.js":621===e?"woocommerce-notices.181b8701c45ec5374829.bundle.min.js":787===e?"product-add-to-cart.a4f88a0c19e95b3912b6.bundle.min.js":993===e?"loop.1594a1df76e87a11eda2.bundle.min.js":932===e?"loop-carousel.881847b13e8fe1f8bfc2.bundle.min.js":550===e?"ajax-pagination.505018eb312c83998279.bundle.min.js":727===e?"mega-menu.857df1cf3198ae47b617.bundle.min.js":87===e?"mega-menu-stretch-content.7ed04741ba7d5a80c556.bundle.min.js":912===e?"menu-title-keyboard-handler.b3891112675eb0b0c4d5.bundle.min.js":33===e?"nested-carousel.659b0373371215e60dab.bundle.min.js":225===e?"taxonomy-filter.6526351a1205655def47.bundle.min.js":579===e?"off-canvas.82d118980fb5aa03c82b.bundle.min.js":1===e?"contact-buttons.e1605c5cfaccbff3c14b.bundle.min.js":61===e?"contact-buttons-var-10.11bf4233106e1245bd61.bundle.min.js":249===e?"floating-bars-var-2.5287acd8570f1ce2dde3.bundle.min.js":440===e?"floating-bars-var-3.e9e9c0ea3c6fb0e51c58.bundle.min.js":187===e?"search.f239247b514b4d0e8743.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},a="elementor-pro:",__webpack_require__.l=(e,n,c,b)=>{if(r[e])r[e].push(n);else{var i,t;if(void 0!==c)for(var _=document.getElementsByTagName("script"),o=0;o<_.length;o++){var u=_[o];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+c){i=u;break}}i||(t=!0,(i=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",a+c),i.src=e),r[e]=[n];var onScriptComplete=(a,n)=>{i.onerror=i.onload=null,clearTimeout(d);var c=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),c&&c.forEach(e=>e(n)),a)return a(n)},d=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=onScriptComplete.bind(null,i.onerror),i.onload=onScriptComplete.bind(null,i.onload),t&&document.head.appendChild(i)}},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var a=r.getElementsByTagName("script");if(a.length)for(var n=a.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=a[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={978:0};__webpack_require__.f.j=(r,a)=>{var n=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==n)if(n)a.push(n[2]);else if(978!=r){var c=new Promise((a,c)=>n=e[r]=[a,c]);a.push(n[2]=c);var b=__webpack_require__.p+__webpack_require__.u(r),i=new Error;__webpack_require__.l(b,a=>{if(__webpack_require__.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var c=a&&("load"===a.type?"missing":a.type),b=a&&a.target&&a.target.src;i.message="Loading chunk "+r+" failed.\n("+c+": "+b+")",i.name="ChunkLoadError",i.type=c,i.request=b,n[1](i)}},"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,a)=>{var n,c,[b,i,t]=a,_=0;if(b.some(r=>0!==e[r])){for(n in i)__webpack_require__.o(i,n)&&(__webpack_require__.m[n]=i[n]);if(t)var o=t(__webpack_require__)}for(r&&r(a);_<b.length;_++)c=b[_],__webpack_require__.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return __webpack_require__.O(o)},r=self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})();
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[313],{6550(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScrollSnapActive=t.escapeHTML=void 0;t.escapeHTML=e=>{const t={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"};return e.replace(/[&<>'"]/g,e=>t[e]||e)};t.isScrollSnapActive=()=>"yes"===(elementorFrontend.isEditMode()?elementor.settings.page.model.attributes?.scroll_snap:elementorFrontend.config.settings.page?.scroll_snap)},3e3(e,t,n){"use strict";var s=n(6784);n(2258);var i=s(n(4906)),o=s(n(2450)),r=s(n(4409)),a=s(n(7937)),l=s(n(8098)),c=s(n(6275)),d=s(n(3268)),u=s(n(4992));class ElementorProFrontend extends elementorModules.ViewModule{onInit(){super.onInit(),this.config=ElementorProFrontendConfig,this.modules={},this.initOnReadyComponents()}bindEvents(){jQuery(window).on("elementor/frontend/init",this.onElementorFrontendInit.bind(this))}initModules(){let e={motionFX:i.default,sticky:o.default,codeHighlight:r.default,videoPlaylist:a.default,payments:l.default,progressTracker:c.default};elementorProFrontend.trigger("elementor-pro/modules/init/before"),e=elementorFrontend.hooks.applyFilters("elementor-pro/frontend/handlers",e),jQuery.each(e,(e,t)=>{this.modules[e]=new t}),this.modules.linkActions={addAction:(...e)=>{elementorFrontend.utils.urlActions.addAction(...e)}}}onElementorFrontendInit(){this.initModules()}initOnReadyComponents(){this.utils={controls:new d.default,DropdownMenuHeightController:u.default}}}window.elementorProFrontend=new ElementorProFrontend},3268(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Controls{getControlValue(e,t,n){let s;return s="object"==typeof e[t]&&n?e[t][n]:e[t],s}getResponsiveControlValue(e,t,n=""){const s=elementorFrontend.getCurrentDeviceMode(),i=this.getControlValue(e,t,n);if("widescreen"===s){const s=this.getControlValue(e,`${t}_widescreen`,n);return s||0===s?s:i}const o=elementorFrontend.breakpoints.getActiveBreakpointsList({withDesktop:!0});let r=s,a=o.indexOf(s),l="";for(;a<=o.length;){if("desktop"===r){l=i;break}const s=`${t}_${r}`,c=this.getControlValue(e,s,n);if(c||0===c){l=c;break}a++,r=o[a]}return l}}},4992(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class DropdownMenuHeightController{constructor(e){this.widgetConfig=e}calculateStickyMenuNavHeight(){this.widgetConfig.elements.$dropdownMenuContainer.css(this.widgetConfig.settings.menuHeightCssVarName,"");const e=this.widgetConfig.elements.$dropdownMenuContainer.offset().top-jQuery(window).scrollTop();return elementorFrontend.elements.$window.height()-e}calculateMenuTabContentHeight(e){return elementorFrontend.elements.$window.height()-e[0].getBoundingClientRect().top}isElementSticky(){return this.widgetConfig.elements.$element.hasClass("elementor-sticky")||this.widgetConfig.elements.$element.parents(".elementor-sticky").length}getMenuHeight(){return this.isElementSticky()?this.calculateStickyMenuNavHeight()+"px":this.widgetConfig.settings.dropdownMenuContainerMaxHeight}setMenuHeight(e){this.widgetConfig.elements.$dropdownMenuContainer.css(this.widgetConfig.settings.menuHeightCssVarName,e)}reassignMobileMenuHeight(){const e=this.isToggleActive()?this.getMenuHeight():0;return this.setMenuHeight(e)}reassignMenuHeight(e){if(!this.isElementSticky()||0===e.length)return;const t=elementorFrontend.elements.$window.height()-e[0].getBoundingClientRect().top;e.height()>t&&(e.css("height",this.calculateMenuTabContentHeight(e)+"px"),e.css("overflow-y","scroll"))}resetMenuHeight(e){this.isElementSticky()&&(e.css("height","initial"),e.css("overflow-y","visible"))}isToggleActive(){const e=this.widgetConfig.elements.$menuToggle;return this.widgetConfig.attributes?.menuToggleState?"true"===e.attr(this.widgetConfig.attributes.menuToggleState):e.hasClass(this.widgetConfig.classes.menuToggleActiveClass)}}},2258(e,t,n){"use strict";n.p=ElementorProFrontendConfig.urls.assets+"js/"},4409(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("code-highlight",()=>n.e(635).then(n.bind(n,7193)))}}t.default=_default},4906(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(820));class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("global",i.default,null)}}t.default=_default},820(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(739));class _default extends elementorModules.frontend.handlers.Base{__construct(...e){super.__construct(...e),this.toggle=elementorFrontend.debounce(this.toggle,200)}getDefaultSettings(){return{selectors:{container:".elementor-widget-container"}}}getDefaultElements(){const e=this.getSettings("selectors");let t=this.$element.find(e.container);return 0===t.length&&(t=this.$element),{$container:t}}bindEvents(){elementorFrontend.elements.$window.on("resize",this.toggle)}unbindEvents(){elementorFrontend.elements.$window.off("resize",this.toggle)}addCSSTransformEvents(){this.getElementSettings("motion_fx_motion_fx_scrolling")&&!this.isTransitionEventAdded&&(this.isTransitionEventAdded=!0,this.elements.$container.on("mouseenter",()=>{this.elements.$container.css("--e-transform-transition-duration","")}))}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"]}}}prepareOptions(e){const t=this.getElementSettings(),n="motion_fx"===e?"element":"background",s={};jQuery.each(t,(n,i)=>{const o=new RegExp("^"+e+"_(.+?)_effect"),r=n.match(o);if(!r||!i)return;const a={},l=r[1];jQuery.each(t,(t,n)=>{const s=new RegExp(e+"_"+l+"_(.+)"),i=t.match(s);if(!i)return;"effect"!==i[1]&&("object"==typeof n&&(n=Object.keys(n.sizes).length?n.sizes:n.size),a[i[1]]=n)});const c=this.effects[l],d=c.interaction;s[d]||(s[d]={}),c.actions.forEach(e=>s[d][e]=a)});let i,o,r=this.$element;const a=this.getElementType();if("element"===n&&!["section","container"].includes(a)){let e;i=r,e="column"===a?".elementor-widget-wrap":".elementor-widget-container",o=r.find("> "+e),r=0===o.length?this.$element:o}const l={type:n,interactions:s,elementSettings:t,$element:r,$dimensionsElement:i,refreshDimensions:this.isEdit,range:t[e+"_range"],classes:{element:"elementor-motion-effects-element",parent:"elementor-motion-effects-parent",backgroundType:"elementor-motion-effects-element-type-background",container:"elementor-motion-effects-container",layer:"elementor-motion-effects-layer",perspective:"elementor-motion-effects-perspective"}};return l.range||"fixed"!==this.getCurrentDeviceSetting("_position")||(l.range="page"),"fixed"===this.getCurrentDeviceSetting("_position")&&(l.isFixedPosition=!0),"background"===n&&"column"===this.getElementType()&&(l.addBackgroundLayerTo=" > .elementor-element-populated"),l}activate(e){const t=this.prepareOptions(e);jQuery.isEmptyObject(t.interactions)||(this[e]=new i.default(t))}deactivate(e){this[e]&&(this[e].destroy(),delete this[e])}toggle(){const e=elementorFrontend.getCurrentDeviceMode(),t=this.getElementSettings();["motion_fx","background_motion_fx"].forEach(n=>{const s=t[n+"_devices"];(!s||-1!==s.indexOf(e))&&(t[n+"_motion_fx_scrolling"]||t[n+"_motion_fx_mouse"])?this[n]?this.refreshInstance(n):this.activate(n):this.deactivate(n)})}refreshInstance(e){const t=this[e];if(!t)return;const n=this.prepareOptions(e);t.setSettings(n),t.refresh()}onInit(){super.onInit();const e=window.matchMedia("(prefers-reduced-motion: reduce)");e&&e.matches||(this.initEffects(),this.addCSSTransformEvents(),this.toggle())}onElementChange(e){if(/motion_fx_((scrolling)|(mouse)|(devices))$/.test(e))return"motion_fx_motion_fx_scrolling"===e&&this.addCSSTransformEvents(),void this.toggle();const t=e.match(".*?(motion_fx|_transform)");if(t){const e=t[0].match("(_transform)")?"motion_fx":t[0];this.refreshInstance(e),this[e]||this.activate(e)}/^_position/.test(e)&&["motion_fx","background_motion_fx"].forEach(e=>{this.refreshInstance(e)})}onDestroy(){super.onDestroy(),["motion_fx","background_motion_fx"].forEach(e=>{this.deactivate(e)})}}t.default=_default},3039(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{getMovePointFromPassedPercents(e,t){return+(t/e*100).toFixed(2)}getEffectValueFromMovePoint(e,t){return e*t/100}getStep(e,t){return"element"===this.getSettings("type")?this.getElementStep(e,t):this.getBackgroundStep(e,t)}getElementStep(e,t){return-(e-50)*t.speed}getBackgroundStep(e,t){const n=this.getSettings("dimensions.movable"+t.axis.toUpperCase());return-this.getEffectValueFromMovePoint(n,e)}getDirectionMovePoint(e,t,n){let s;return e<n.start?"out-in"===t?s=0:"in-out"===t?s=100:(s=this.getMovePointFromPassedPercents(n.start,e),"in-out-in"===t&&(s=100-s)):e<n.end?"in-out-in"===t?s=0:"out-in-out"===t?s=100:(s=this.getMovePointFromPassedPercents(n.end-n.start,e-n.start),"in-out"===t&&(s=100-s)):"in-out"===t?s=0:"out-in"===t?s=100:(s=this.getMovePointFromPassedPercents(100-n.end,100-e),"in-out-in"===t&&(s=100-s)),s}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,n){this.translateX(e,t),this.translateY(e,n)}tilt(e,t,n){const s={speed:e.speed/10,direction:e.direction};this.rotateX(s,n),this.rotateY(s,100-t)}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)}scale(e,t){const n=this.getDirectionMovePoint(t,e.direction,e.range);this.updateRulePart("transform","scale",1+e.speed*n/1e3)}transform(e,t,n){n.direction&&(t=100-t),this.updateRulePart("transform",e,this.getStep(t,n)+n.unit)}setCSSTransformVariables(e){this.CSSTransformVariables=[],jQuery.each(e,(e,t)=>{const n=e.match(/_transform_(.+?)_effect/m);if(n&&t){if("perspective"===n[1])return void this.CSSTransformVariables.unshift(n[1]);if(this.CSSTransformVariables.includes(n[1]))return;this.CSSTransformVariables.push(n[1])}})}opacity(e,t){const n=this.getDirectionMovePoint(t,e.direction,e.range),s=e.level/10,i=1-s+this.getEffectValueFromMovePoint(s,n);this.$element.css({opacity:i,"will-change":"opacity"})}blur(e,t){const n=this.getDirectionMovePoint(t,e.direction,e.range),s=e.level-this.getEffectValueFromMovePoint(e.level,n);this.updateRulePart("filter","blur",s+"px")}updateRulePart(e,t,n){this.rulesVariables[e]||(this.rulesVariables[e]={}),this.rulesVariables[e][t]||(this.rulesVariables[e][t]=!0,this.updateRule(e));const s=`--${t}`;this.$element[0].style.setProperty(s,n)}updateRule(e){let t="";t+=this.concatTransformCSSProperties(e),t+=this.concatTransformMotionEffectCSSProperties(e),this.$element.css(e,t)}concatTransformCSSProperties(e){let t="";return"transform"===e&&jQuery.each(this.CSSTransformVariables,(e,n)=>{const s=n;n.startsWith("flip")&&(n=n.replace("flip","scale"));const i=n.startsWith("rotate")||n.startsWith("skew")?"deg":"px",o=n.startsWith("scale")?1:0+i;t+=`${n}(var(--e-transform-${s}, ${o}))`}),t}concatTransformMotionEffectCSSProperties(e){let t="";return jQuery.each(this.rulesVariables[e],e=>{t+=`${e}(var(--${e}))`}),t}runAction(e,t,n,...s){t.affectedRange&&(t.affectedRange.start>n&&(n=t.affectedRange.start),t.affectedRange.end<n&&(n=t.affectedRange.end)),this[e](t,n,...s)}refresh(){this.rulesVariables={},this.CSSTransformVariables=[],this.$element.css({transform:"",filter:"",opacity:"","will-change":""})}onInit(){this.$element=this.getSettings("$targetElement"),this.refresh()}}t.default=_default},3323(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.ViewModule{__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()}});const e="page"===this.motionFX.getSettings("range")?elementorFrontend.elements.$body[0]:this.motionFX.elements.$parent[0];this.intersectionObserver.observe(e)}onInsideViewport=()=>{this.run(),this.animationFrameRequest=requestAnimationFrame(this.onInsideViewport)};runCallback(...e){this.getSettings("callback")(...e)}removeIntersectionObserver(){this.intersectionObserver&&this.intersectionObserver.unobserve(this.motionFX.elements.$parent[0])}removeAnimationFrameRequest(){this.animationFrameRequest&&cancelAnimationFrame(this.animationFrameRequest)}destroy(){this.removeAnimationFrameRequest(),this.removeIntersectionObserver()}onInit(){super.onInit()}}t.default=_default},5481(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(3323));class MouseMoveInteraction extends i.default{bindEvents(){MouseMoveInteraction.mouseTracked||(elementorFrontend.elements.$window.on("mousemove",MouseMoveInteraction.updateMousePosition),MouseMoveInteraction.mouseTracked=!0)}run(){const e=MouseMoveInteraction.mousePosition,t=this.oldMousePosition;if(t.x===e.x&&t.y===e.y)return;this.oldMousePosition={x:e.x,y:e.y};const n=100/innerWidth*e.x,s=100/innerHeight*e.y;this.runCallback(n,s)}onInit(){this.oldMousePosition={},super.onInit()}}t.default=MouseMoveInteraction,MouseMoveInteraction.mousePosition={},MouseMoveInteraction.updateMousePosition=e=>{MouseMoveInteraction.mousePosition={x:e.clientX,y:e.clientY}}},2647(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(3323));class _default extends i.default{run(){if(pageYOffset===this.windowScrollTop)return!1;this.onScrollMovement(),this.windowScrollTop=pageYOffset}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)}}t.default=_default},739(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(2647)),o=s(n(5481)),r=s(n(3039));class _default extends elementorModules.ViewModule{getDefaultSettings(){return{type:"element",$element:null,$dimensionsElement:null,addBackgroundLayerTo:null,interactions:{},refreshDimensions:!1,range:"viewport",classes:{element:"motion-fx-element",parent:"motion-fx-parent",backgroundType:"motion-fx-element-type-background",container:"motion-fx-container",layer:"motion-fx-layer",perspective:"motion-fx-perspective"}}}bindEvents(){this.defineDimensions=this.defineDimensions.bind(this),elementorFrontend.elements.$window.on("resize elementor-pro/motion-fx/recalc",this.defineDimensions)}unbindEvents(){elementorFrontend.elements.$window.off("resize elementor-pro/motion-fx/recalc",this.defineDimensions)}addBackgroundLayer(){const 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(){const e=this.getSettings(),t={x:0,y:0},n=e.interactions.mouseMove,s=e.interactions.scroll;n&&n.translateXY&&(t.x=10*n.translateXY.speed,t.y=10*n.translateXY.speed),s&&(s.translateX&&(t.x=10*s.translateX.speed),s.translateY&&(t.y=10*s.translateY.speed)),this.elements.$motionFXLayer.css({width:100+t.x+"%",height:100+t.y+"%"})}defineDimensions(){const e=this.getSettings("$dimensionsElement")||this.$element,t=e.offset(),n={elementHeight:e.outerHeight(),elementWidth:e.outerWidth(),elementTop:t.top,elementLeft:t.left};n.elementRange=n.elementHeight+innerHeight,this.setSettings("dimensions",n),"background"===this.getSettings("type")&&this.defineBackgroundLayerDimensions()}defineBackgroundLayerDimensions(){const 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)}initInteractionsTypes(){this.interactionsTypes={scroll:i.default,mouseMove:o.default}}prepareSpecialActions(){const e=this.getSettings(),t=!(!e.interactions.mouseMove||!e.interactions.mouseMove.tilt);this.elements.$parent.toggleClass(e.classes.perspective,t)}cleanSpecialActions(){const e=this.getSettings();this.elements.$parent.removeClass(e.classes.perspective)}runInteractions(){const 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:(...e)=>{jQuery.each(t,(t,n)=>this.actions.runAction(t,n,...e))}}),this.interactions[e].run()})}destroyInteractions(){this.cleanSpecialActions(),jQuery.each(this.interactions,(e,t)=>t.destroy()),this.interactions={}}refresh(){this.actions.setSettings(this.getSettings()),"background"===this.getSettings("type")&&(this.updateBackgroundLayerSize(),this.defineBackgroundLayerDimensions()),this.actions.refresh(),this.destroyInteractions(),this.runInteractions()}destroy(){this.destroyInteractions(),this.actions.refresh();const e=this.getSettings();this.$element.removeClass(e.classes.element),this.elements.$parent.removeClass(e.classes.parent),"background"===e.type&&(this.$element.removeClass(e.classes.backgroundType),this.removeBackgroundLayer())}onInit(){super.onInit();const e=this.getSettings();this.$element=e.$element,this.elements.$parent=this.$element.parent(),this.$element.addClass(e.classes.element),this.elements.$parent=this.$element.parent(),this.elements.$parent.addClass(e.classes.parent),"background"===e.type&&(this.$element.addClass(e.classes.backgroundType),this.addBackgroundLayer()),this.defineDimensions(),e.$targetElement="element"===e.type?this.$element:this.elements.$motionFXLayer,this.interactions={},this.actions=new r.default(e),this.initInteractionsTypes(),this.runInteractions()}}t.default=_default},8098(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("paypal-button",()=>n.e(375).then(n.bind(n,466))),elementorFrontend.elementsHandler.attachHandler("stripe-button",()=>Promise.all([n.e(786),n.e(857)]).then(n.bind(n,9036)))}}t.default=_default},6275(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("progress-tracker",()=>n.e(581).then(n.bind(n,287)))}}t.default=_default},2450(e,t,n){"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(2121));class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("section",i.default,null),elementorFrontend.elementsHandler.attachHandler("container",i.default,null),elementorFrontend.elementsHandler.attachHandler("widget",i.default,null)}}t.default=_default},2121(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(6550);t.default=elementorModules.frontend.handlers.Base.extend({currentConfig:{},debouncedReactivate:null,bindEvents(){elementorFrontend.addListenerOnce(this.getUniqueHandlerID()+"sticky","resize",this.reactivateOnResize)},unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID()+"sticky","resize",this.reactivateOnResize)},isStickyInstanceActive(){return void 0!==this.$element.data("sticky")},getResponsiveSetting(e){const t=this.getElementSettings();return elementorFrontend.getCurrentDeviceSetting(t,e)},getResponsiveSettingList:e=>["",...Object.keys(elementorFrontend.config.responsive.activeBreakpoints)].map(t=>t?`${e}_${t}`:e),getConfig(){const e=this.getElementSettings(),t={to:e.sticky,offset:this.getResponsiveSetting("sticky_offset"),effectsOffset:this.getResponsiveSetting("sticky_effects_offset"),classes:{sticky:"elementor-sticky",stickyActive:"elementor-sticky--active elementor-section--handles-inside",stickyEffects:"elementor-sticky--effects",spacer:"elementor-sticky__spacer"},isRTL:elementorFrontend.config.is_rtl,isScrollSnapActive:(0,s.isScrollSnapActive)(),handleScrollbarWidth:elementorFrontend.isEditMode()},n=elementorFrontend.elements.$wpAdminBar,i=this.isContainerElement(this.$element[0])&&!this.isContainerElement(this.$element[0].parentElement);return n.length&&"top"===e.sticky&&"fixed"===n.css("position")&&(t.offset+=n.height()),e.sticky_parent&&!i&&(t.parent=".e-con, .e-con-inner, .elementor-widget-wrap"),t},activate(){this.currentConfig=this.getConfig(),this.$element.sticky(this.currentConfig)},deactivate(){this.isStickyInstanceActive()&&this.$element.sticky("destroy")},run(e){if(this.getElementSettings("sticky")){var t=elementorFrontend.getCurrentDeviceMode();-1!==this.getElementSettings("sticky_on").indexOf(t)?!0===e?this.reactivate():this.isStickyInstanceActive()||this.activate():this.deactivate()}else this.deactivate()},reactivateOnResize(){clearTimeout(this.debouncedReactivate),this.debouncedReactivate=setTimeout(()=>{const e=this.getConfig();JSON.stringify(e)!==JSON.stringify(this.currentConfig)&&this.run(!0)},300)},reactivate(){this.deactivate(),this.activate()},onElementChange(e){-1!==["sticky","sticky_on"].indexOf(e)&&this.run(!0);-1!==[...this.getResponsiveSettingList("sticky_offset"),...this.getResponsiveSettingList("sticky_effects_offset"),"sticky_parent"].indexOf(e)&&this.reactivate()},onDeviceModeChange(){setTimeout(()=>this.run(!0))},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),elementorFrontend.isEditMode()&&elementor.listenTo(elementor.channels.deviceMode,"change",()=>this.onDeviceModeChange()),this.run()},onDestroy(){elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this,arguments),this.deactivate()},isContainerElement:e=>["e-con","e-con-inner"].some(t=>e?.classList.contains(t))})},7937(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.hooks.addAction("frontend/element_ready/video-playlist.default",e=>{n.e(519).then(n.bind(n,4161)).then(({default:t})=>{elementorFrontend.elementsHandler.addHandler(t,{$element:e,toggleSelf:!1})})})}}t.default=_default},6784(e){e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},e=>{var t;t=3e3,e(e.s=t)}]);