!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(F){var O="all",W=!1,j=!1,S=loftloaderProWaitForMediaSettings&&loftloaderProWaitForMediaSettings.detectAutoplayVideo;loftloaderProWaitForMediaSettings&&void 0!==loftloaderProWaitForMediaSettings.detectElement&&(O=loftloaderProWaitForMediaSettings.detectElement),F.loftloaderProWaitForMedia={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"],hasIframeVideos:[/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|\&v(?:i)?=))([^#\&\?'"]*).*/,/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)/]},F.expr[":"]["has-src"]=function(e){return F(e).is('img[src][src!=""]')},F.expr[":"].uncached=function(e){return!!F(e).is(":has-src")&&!e.complete},F.fn.loftloaderProWaitForMedia=function(){var e,t,r,a,i=F(this).first(),o=!1,n="all"===O,s=!1,c=!1,d=(F.Deferred(),5),l=5;function f(){s||(s=!0,e.call(i,d)),c&&(clearInterval(c),c=!1)}function u(e){e.done||(b(e.src),e.done=!0)}function m(e){var t;e.done||(b(e.src),(t=e).timer&&(clearTimeout(t.timer),t.timer=!1),e.done=!0)}if(F.isPlainObject(arguments[0])&&(r=arguments[0].waitForAll,t=arguments[0].each,e=arguments[0].finished),e=e||F.noop,r=!!r,(t=t||F.noop).call(i,l),c=setInterval(function(){l<95?n?(d=l+=5,t.call(i,l)):5<=parseInt(l,10)-parseInt(d,10)&&(d=l,t.call(i,l)):(clearInterval(c),c=!1)},700),F(window).on("load",function(e){o||f()}),!n){var p=0,h=0,v=[],y=[],g=[],w=-1!==["video","media"].indexOf(O),M=-1!==["image","media"].indexOf(O),x=F.loftloaderProWaitForMedia.hasImageProperties||[],P=F.loftloaderProWaitForMedia.hasImageAttributes||[],I=/url\(\s*(['"]?)(.*?)\1\s*\)/g;function b(){h++,l=Math.floor(h/p*100),h===p&&f()}r&&(i=i.find("*").addBack()).not(F("#loftloader-wrapper").find("*").addBack()).each(function(){var i=F(this);if(M&&(i.is("img:has-src")&&!i.is("[srcset]")&&-1===g.indexOf(i.attr("src"))&&(y.push({src:i.attr("src"),element:i[0]}),g.push(i.attr("src"))),F.each(x,function(e,t){var r,a=i.css(t);if(!a)return!0;for(;r=I.exec(a);)-1===g.indexOf(r[2])&&(y.push({src:r[2],element:i[0]}),g.push(r[2]))}),F.each(P,function(e,t){if(!i.attr(t))return!0;-1===g.indexOf(i.attr("src"))&&(y.push({src:i.attr("src"),srcset:i.attr("srcset"),element:i[0]}),g.push(i.attr("src")))})),w)if(i.is("iframe")){var r=i.attr("src"),e=F.loftloaderProWaitForMedia.hasIframeVideos||[],a=!1;-1===g.indexOf(r)&&F.each(e,function(e,t){if(t.exec(r))return v.push(r),a=function(e){if(e&&F(e).length){var t=F(e),r=t.attr("allow"),a=t.attr("src");return a&&-1!==a.indexOf("autoplay=1")&&(!r||-1!==r.indexOf("autoplay;"))}return!1}(i[0]),y.push({src:r,isMedia:!0,type:"iframe",element:i[0],autoplay:a,from:1===e?"vimeo":"youtube"}),g.push(r),S&&a&&(o=!0,0===e?(function(e){if(!e.id){for(var t="lofltoader-pro-iframe-"+Math.round(1e5*Math.random());F("#"+t).length;)t="lofltoader-pro-iframe-"+Math.round(1e5*Math.random());F(e).attr("id",t)}}(i[0]),W=!0):j=!0),!1})}else if(i.is("video")&&(i.attr("src")||i.find('[src!=""]').length)){var t=i.attr("src")?i.attr("src"):i.find('[src!=""]').attr("src");-1===g.indexOf(t)&&(v.push(t),y.push({src:t,isMedia:!0,type:"video",element:i[0]}),g.push(t))}}),y&&y.length&&(y=y.filter(function(e){return e.src&&void 0!==e.src})),0===(p=y.length)&&f(),a=F("<div>"),!W||"YT"in window||a.append(F("<script>",{src:"//www.youtube.com/iframe_api",type:"text/javascript"})),!j||"Vimeo"in window||a.append(F("<script>",{src:"//player.vimeo.com/api/player.js",type:"text/javascript"})),a.children().length&&F("head").append(a.children()),F.each(y,function(e,t){if(t.isMedia)if("video"==t.type){var r=document.createElement("video");F(r).one("loadeddata error",function(e){b(t.src)}),r.src=t.src}else F(t.element).one("load",function(e){"youtube"==t.from&&t.autoplay&&S&&"YT"in window&&YT.Player?(new YT.Player(F(t.element).attr("id"),{events:{onStateChange:function(e){m(t)}}}),t.timer=setTimeout(function(){u(t)},2e4)):"vimeo"==t.from&&t.autoplay&&S&&"Vimeo"in window&&Vimeo.Player?(new Vimeo.Player(t.element).play().then(function(){m(t)},function(){m(t)}),t.timer=setTimeout(function(){u(t)},2e4)):b(t.src)}).one("error",function(e){b(t.src)});else{var a=new Image;F(a).one("load  error",function(e){b(t.src)}),t.srcset&&(a.srcset=t.srcset),a.src=t.src}})}}});
!function(p){"use strict";var n=["jpg","jpeg","png","gif","mov","avi","mpg","3gp","3g2","midi","mid","pdf","doc","ppt","odt","pptx","docx","pps","ppsx","xls","xlsx","key","mp3","ogg","wma","m4a","wav","mp4","m4v","webm","ogv","wmv","flv","svg","svgz"],a=p("body"),l="undefined"!==loftloaderPro.insiteTransitionShowAll&&loftloaderPro.insiteTransitionShowAll,s=void 0===loftloaderPro.leavingProgressMax?60:loftloaderPro.leavingProgressMax,i=p(),e="",o="",d=parseInt(.9*s,10),f={getItem:function(t){try{return sessionStorage.getItem(t)}catch(t){return!1}},setItem:function(t,e){try{sessionStorage.setItem(t,e)}catch(t){}}};function r(t){if(t&&t.length){var e=t.attr("target"),r=t.attr("href");return(void 0===e||"_blank"!==e.toLowerCase())&&function(t){p("#loftloader-wrapper");var e=t.attr("class"),r=e&&-1!==e.indexOf("ajax"),o=t.parent(".site-header-cart").length,e=loftloaderPro.insiteTransitionCustomExcluded||!1;return e=!(!e||!p(e).length)&&p(e),!t.parent(".product-remove").length&&(!i.length||t.not(i).length)&&(e&&t.not(e).length||!e)&&void 0===t.attr("onclick")&&!r&&!o}(t)&&r&&function(t){if(t){var e=!1,r=document.createElement("a"),o=document.createElement("a"),a=document.createElement("a");return a.href=t,o.href=window.location.href,r.href=loftloaderPro.siteRootURL,e=a.pathname.split(".").pop(),0===a.href.replace(/https?:\/\//i,"").indexOf(r.href.replace(/https?:\/\//i,""))&&"#"!==t.substr(0,1)&&(o.pathname!=a.pathname||!a.hash&&-1===t.indexOf("#"))&&-1===n.indexOf(e)}return}(r)}}function c(){var t=p("#loftloader-wrapper .loader-message"),e=w();t.length&&e&&(t.html(e),f.setItem("loftloader-pro-next-random-message",e))}function h(t){var o=t.attr("href");t.data("loftloader-pro-checked")||(o&&r(t)&&t.off("click").on("click",function(t){t.preventDefault();var e,t=p("#loftloader-wrapper"),r=t.find(".loader-close-button");c(),p(document).trigger("loftloaderpro.spt.start"),p("html").removeClass("loftloader-pro-spt-hide"),t.length&&!loftloaderPro.insiteTransitionDisplayOption&&t.css("transition-delay",""),a.addClass("leaves"),l?(e=void 0===loftloaderPro.leavingTimer?900:loftloaderPro.leavingTimer,e=isNaN(e)?900:Math.max(0,parseInt(e,10)),a.addClass("spt-show-all"),p(document).trigger("loftloaderpro.image.check"),P.initValue=0,P.reset(),P.render(d,.7*e),setTimeout(function(){P.render(loftloaderPro.insiteTransitionDisplayOnCurrent?100:s,.3*e)},.7*e),f.setItem("loftloader-pro-smooth-transition","on"),setTimeout(function(){window.location.href=o,r.length&&loftloaderPro.insiteTransitionShowCloseButton&&r.css({display:"",opacity:1})},e)):window.location.href=o}),t.data("loftloader-pro-checked",!0))}function x(t){g("loftloader-pro-progress-percentage-style",'#loftloader-wrapper span.percentage:after, #loftloader-wrapper .load-count:after { content: "'+Math.ceil(t)+'%"; };')}function u(t,e){var r;e&&e.length&&(r=e.next(".load-count"),t=(t=e.width()*t/100)>r.width()?t-r.width():0,e=e.parent().hasClass("bottom")?"-100%":"100%",r.css("transform","translate("+t+"px, "+e+")"))}function g(t,e){var r=p("head").find("#"+t);r.length||(r=p("<style>").attr("id",t).html("").appendTo(p("head"))),r.html(e)}function m(t,e){var r,o;t.length&&e.length&&(r=(o=function(t){if(t.length){t=t[0].getBoundingClientRect();return{width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}return!1}(e))&&o.width?parseInt(1e4*o.width)/1e4:"100%",o=o&&o.height?parseInt(1e4*o.height)/1e4:"100%",t.css({width:r,height:o,display:""}),e.length&&e.attr("width",r).attr("height",o))}function w(){var t=void 0!==loftloaderPro.randomMessage&&loftloaderPro.randomMessage;if(p.isArray(t)&&0<t.length){var e=t.length,e=Math.random()*(e-1);return t[Math.round(e)]}return!1}p(window).bind("pageshow",function(t){var e;t.originalEvent.persisted&&(e=p("body"),(t=p("#loftloader-wrapper")).length&&t.css("transition-delay","0s"),e.length&&e.hasClass("leaves")&&e.removeClass("leaves"),e.length&&!e.hasClass("loftloader-loaded")&&e.addClass("loaded loftloader-loaded"))}),p.fn.llpHasAnyClass=function(t){var r=p(p(this)[0]),o=!1;return p.each(t,function(t,e){if(r.hasClass(e))return!(o=!0)}),o};var t,C,v,y,b,P,T=p("#loftloader-wrapper"),_=loftloaderPro&&loftloaderPro.isLoaderPreview&&"on"==loftloaderPro.isLoaderPreview,k=_&&void 0!==parent.wp.customize.settings.settings.loftloader_pro_main_switch,I=_&&void 0===parent.wp.customize.settings.settings.loftloader_pro_main_switch,L=!!loftloaderPro.minimalLoadTime&&parseFloat(loftloaderPro.minimalLoadTime),M=!!L,A=!0;I&&p("#loftloader-preview-style-css").remove(),t=p("#loftloader-wrapper .loader-message"),C=w(),v=f.getItem("loftloader-pro-next-random-message"),t.length&&C&&t.html(v||C),p(document).on("loftloaderpro.image.check",function(){var e,r=p("#loftloader-wrapper .imgloading-container span");r.length&&(e=p("#loftloader-wrapper #loader img"),m(r,e),e.on("load",function(t){m(r,e)}),p(window).on("resize",function(t){m(r,e)}))}).ready(function(){p(this).trigger("loftloaderpro.image.check")}),k&&(p("html").hasClass("loftloader-smooth-transition")&&((y=p("html")).attr("data-original-styles")?y.attr("style",y.attr("data-original-styles")):y.removeAttr("style"),y.removeAttr("data-original-styles").removeClass("loftloader-smooth-transition")),(p("#loftloader-wrapper .percentage").length||p("#loftloader-wrapper .bar .load-count").length)&&(T=p("#loftloader-wrapper .percentage").length?p("#loftloader-wrapper .percentage"):p("#loftloader-wrapper .bar .load-count"),(y=p("#loftloader-wrapper .bar")).children(".load-count").length&&u(100,y.children(".load")),T.prop("percentage",0),p("body").hover(function(){T.prop("percentage",0).animate({percentage:100},{duration:2850,easing:"linear",step:function(t){p(this).text(Math.ceil(t)+"%"),p(this).hasClass("load-count")&&u(t,p(this).prev(".load"))}})},function(){T.stop(!0,!0).text("100%").prop("percentage",0),T.hasClass("load-count")&&u(100,T.prev(".load"))}))),_&&!I||(b=p("#loftloader-wrapper .percentage"),_=T.hasClass("loftloader-once")&&T.llpHasAnyClass(["loftloader-imgloading","loftloader-rainbow","loftloader-circlefilling","loftloader-waterfilling","loftloader-petals"]),I=b.hasClass("percentage")?"percentage":"bar",b=b.length?b:T.find(".bar .load"),P={finishPause:800,$el:T,runDuration:700,initValue:0,startPercentage:0,progress:b,type:I,once:_,max_timeup:!1,start:function(){f.getItem("loftloader-pro-smooth-transition")&&"on"===f.getItem("loftloader-pro-smooth-transition")&&(this.initValue=s/100,f.setItem("loftloader-pro-smooth-transition",0)),p("body").removeClass("loaded loftloader-loaded"),this.reset()},reset:function(){"percentage"==this.type?x(100*this.initValue):b.css("transform","scaleX("+this.initValue+")"),this.current=100*this.initValue,this.startPercentage=100*this.initValue,this.$el.prop("percentage",this.startPercentage),this.render(this.startPercentage,1)},stop:function(t){var e=this.finish;this.render(100,this.finishPause),t&&(this.timeup=!0),setTimeout(function(){e()},this.finishPause+100)},update:function(t){this.render(t)},render:function(t,e){if(this.timeup||!this.$el||!this.$el.animate)return"";var r=this;e=void 0===e?this.runDuration:e,100===t?this.$el.stop(!0,!1).animate({percentage:100},{duration:e,easing:"swing",step:function(t){r.renderProgress(r,t)}}):this.$el.animate({percentage:t},{duration:e,easing:"linear",step:function(t){r.renderProgress(r,t)}})},renderProgress:function(t,r){var e,o,a,n,l,s=t.once,i=t.type,t=t.progress;"percentage"==i?x(Math.ceil(r)):(t.css("transform","scaleX("+r/100+")"),t.next(".load-count").length&&(x(Math.ceil(r)),u(r,t))),s&&(T.hasClass("loftloader-imgloading")?(e=T.find(".imgloading-container"),T.hasClass("imgloading-horizontal")?e.css("width",r+"%"):e.css("height",r+"%")):T.hasClass("loftloader-rainbow")?g("loftloader_pro_once_rainbow","#loftloader-wrapper.loftloader-rainbow #loader span { -webkit-transform: rotate("+(e=1.8*r-180)+"deg); transform: rotate("+e+"deg); }"):T.hasClass("loftloader-circlefilling")?g("loftloader_pro_once_circlefilling","#loftloader-wrapper.loftloader-circlefilling #loader span { -webkit-transform: scaleY("+(o=r/100)+"); transform: scaleY("+o+"); }"):T.hasClass("loftloader-waterfilling")?g("loftloader_pro_once_waterfilling","#loftloader-wrapper.loftloader-waterfilling #loader:before { transform: scaleY("+(o=r/100)+"); } #loftloader-wrapper.loftloader-waterfilling #loader span {-webkit-transform: translateY("+(o=r-100)+"%); transform: translateY("+o+"%); }"):T.hasClass("loftloader-petals")&&(a={petal0:"{box-shadow: 0 -15px 0 -15px transparent, 10.5px -10.5px 0 -15px transparent, 15px 0 0 -15px transparent, 10.5px 10.5px 0 -15px transparent, 0 15px 0 -15px transparent, -10.5px 10.5px 0 -15px transparent, -15px 0 0 -15px transparent, -10.5px -10.5px 0 -15px transparent;}",petal1:"{box-shadow: 0 -25px 0 -15px currentColor, 10.5px -10.5px 0 -15px transparent, 15px 0 0 -15px transparent, 10.5px 10.5px 0 -15px transparent, 0 15px 0 -15px transparent, -10.5px 10.5px 0 -15px transparent, -15px 0 0 -15px transparent, -10.5px -10.5px 0 -15px transparent;}",petal2:"{box-shadow: 0 -25px 0 -15px currentColor, 17.5px -17.5px 0 -15px currentColor, 15px 0 0 -15px transparent, 10.5px 10.5px 0 -15px transparent, 0 15px 0 -15px transparent, -10.5px 10.5px 0 -15px transparent, -15px 0 0 -15px transparent, -10.5px -10.5px 0 -15px transparent;}",petal3:"{box-shadow: 0 -25px 0 -15px currentColor, 17.5px -17.5px 0 -15px currentColor, 25px 0 0 -15px currentColor, 10.5px 10.5px 0 -15px transparent, 0 15px 0 -15px transparent, -10.5px 10.5px 0 -15px transparent, -15px 0 0 -15px transparent, -10.5px -10.5px 0 -15px transparent;}",petal4:"{box-shadow: 0 -25px 0 -15px currentColor, 17.5px -17.5px 0 -15px currentColor, 25px 0 0 -15px currentColor, 17.5px 17.5px 0 -15px currentColor, 0 15px 0 -15px transparent, -10.5px 10.5px 0 -15px transparent, -15px 0 0 -15px transparent, -10.5px -10.5px 0 -15px transparent;}",petal5:"{box-shadow: 0 -25px 0 -15px currentColor, 17.5px -17.5px 0 -15px currentColor, 25px 0 0 -15px currentColor, 17.5px 17.5px 0 -15px currentColor, 0 25px 0 -15px currentColor, -10.5px 10.5px 0 -15px transparent, -15px 0 0 -15px transparent, -10.5px -10.5px 0 -15px transparent;}",petal6:"{box-shadow: 0 -25px 0 -15px currentColor, 17.5px -17.5px 0 -15px currentColor, 25px 0 0 -15px currentColor, 17.5px 17.5px 0 -15px currentColor, 0 25px 0 -15px currentColor, -17.5px 17.5px 0 -15px currentColor, -15px 0 0 -15px transparent, -10.5px -10.5px 0 -15px transparent;}",petal7:"{box-shadow: 0 -25px 0 -15px currentColor, 17.5px -17.5px 0 -15px currentColor, 25px 0 0 -15px currentColor, 17.5px 17.5px 0 -15px currentColor, 0 25px 0 -15px currentColor, -17.5px 17.5px 0 -15px currentColor, -25px 0 0 -15px currentColor, -10.5px -10.5px 0 -15px transparent;}",petal8:"{box-shadow: 0 -25px 0 -15px currentColor, 17.5px -17.5px 0 -15px currentColor, 25px 0 0 -15px currentColor, 17.5px 17.5px 0 -15px currentColor, 0 25px 0 -15px currentColor, -17.5px 17.5px 0 -15px currentColor, -25px 0 0 -15px currentColor, -17.5px -17.5px 0 -15px currentColor;}"},n="",l={88:"petal7",75:"petal6",63:"petal5",50:"petal4",38:"petal3",25:"petal2",13:"petal1"},p.each([88,75,63,50,38,25,13],function(t,e){if(e<=r)return n=a[l[e]],!1}),g("loftloader_pro_once_petals","#loftloader-wrapper.loftloader-petals #loader span"+(n=0===r?a.petal0:98<r?a.petal8:n))))},finish:function(){p("body").addClass("loaded loftloader-loaded").removeClass("leaves spt-show-all"),setTimeout(function(){p("body").removeClass("loftloader-disable-scrolling"),p("#loftloader-pro-always-show-scrollbar").length&&p("#loftloader-pro-always-show-scrollbar").remove()},1e3),p("html").hasClass("loftloader-smooth-transition")&&((t=p("html")).attr("data-original-styles")?t.attr("style",t.attr("data-original-styles")):t.removeAttr("style"),t.removeAttr("data-original-styles").removeClass("loftloader-smooth-transition"));var t=p("#loftloader-wrapper");t.hasClass("split-diagonally")&&t.find(".loader-bg").css("background","none"),setTimeout(function(){P.timeup=!1,p(document).trigger("loftloaderprodone")},1100),o&&clearTimeout(o),e&&clearTimeout(e)}},p("html").hasClass("loftloader-pro-spt-hide")?(p("body").addClass("loaded loftloader-loaded").removeClass("loftloader-disable-scrolling"),p("head").append(p("<style>",{text:"#loftloader-wrapper.end-split-v.split-diagonally .loader-bg, #loftloader-wrapper.end-split-h.split-diagonally .loader-bg { background: none; }"})),p("html").removeClass("loftloader-pro-spt-hide")):(P.start(),b.length||_?(L&&(e=setTimeout(function(){A||P.stop(),M=!1},L)),p("body").loftloaderProWaitForMedia({waitForAll:!0,each:function(t){t>P.startPercentage&&P.update(t)},finished:function(t){M?P.render(Math.max(95,t),L):P.stop(),A=!1}})):(L&&(e=setTimeout(function(){A||P.finish(),M=!1},L)),p("body").loftloaderProWaitForMedia({waitForAll:!0,each:function(t){},finished:function(t){M?P.render(Math.max(95,t),L):P.finish(),A=!1}})),document.addEventListener("DOMContentLoaded",function(){p("#loftloader-wrapper");var t,e,r=p("#loftloader-wrapper .loader-close-button");r.length&&loftloaderPro.showCloseBtnTime&&(t=parseInt(loftloaderPro.showCloseBtnTime,10))&&(setTimeout(function(){r.css("display","")},t),r.on("click",function(){P.finish(),p(this).css("opacity","")})),loftloaderPro.maximalLoadTime&&(e=parseInt(loftloaderPro.maximalLoadTime,10))&&(o=setTimeout(function(){P.stop(!0)},e))})),p(window).one("load",function(t){var e;loftloaderPro&&loftloaderPro.insiteTransition&&"on"==loftloaderPro.insiteTransition&&loftloaderPro.siteRootURL&&(loftloaderPro.insiteTransitionURLExcluded&&Array.isArray(loftloaderPro.insiteTransitionURLExcluded)&&loftloaderPro.insiteTransitionURLExcluded.length&&loftloaderPro.insiteTransitionURLExcluded.forEach(function(t){p('a[href^="'+t+'"]').length&&(i=i.add(p('a[href^="'+t+'"]')))}),!loftloaderPro.insiteTransitionButtons||(e=p(loftloaderPro.insiteTransitionButtons)).length&&e.on("click",function(t){var e=p("#loftloader-wrapper");c(),p(document).trigger("loftloaderpro.spt.start"),p("html").removeClass("loftloader-pro-spt-hide"),e.length&&!loftloaderPro.insiteTransitionDisplayOption&&e.css("transition-delay",""),a.addClass("leaves"),l&&(a.addClass("spt-show-all"),p(document).trigger("loftloaderpro.image.check"),P.initValue=0,P.reset(),P.render(loftloaderPro.insiteTransitionDisplayOnCurrent?100:s,400),f.setItem("loftloader-pro-smooth-transition","on"))}),p("body a").each(function(){h(p(this))}),e=a.get(0),new MutationObserver(function(t,e){t.forEach(function(t){"childList"!==t.type||(t="A"===t.target.tagName?p(t.target):p(t.target).find("a")).length&&t.each(function(){h(p(this))})})}).observe(e,{attributes:!1,childList:!0,subtree:!0}))}))}(jQuery);