(function($){var XT_Ajax_Queue=$({});$.XT_Ajax_Queue=function(ajaxOpts){var jqXHR,dfd=$.Deferred(),promise=dfd.promise();function doRequest(next){jqXHR=$.ajax(ajaxOpts);jqXHR.done(dfd.resolve).fail(dfd.reject).then(next,next)}XT_Ajax_Queue.queue(doRequest);promise.abort=function(statusText){if(jqXHR){return jqXHR.abort(statusText)}var queue=XT_Ajax_Queue.queue(),index=$.inArray(doRequest,queue);if(index>-1){queue.splice(index,1)}dfd.rejectWith(ajaxOpts.context||ajaxOpts,[promise,statusText,""]);return promise};return promise}})(jQuery);
!function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),v=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+U+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(U+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(U+10)+';display:none;position:absolute"></div>',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
(function($){"use strict";window.XT_ATC=window.XT_ATC||{};$(function(){var startButtonLoaderTimeout;var stopButtonLoaderTimeout;var singleAddedParams;XT_ATC.ajaxAddToCart=!!XT_ATC.ajaxAddToCart;XT_ATC.ajaxSinglePageAddToCart=!!XT_ATC.ajaxSinglePageAddToCart;XT_ATC.isProductPage=!!XT_ATC.isProductPage;XT_ATC.singleRefreshFragments=!!XT_ATC.singleRefreshFragments;XT_ATC.singleScrollToNotice=!!XT_ATC.singleScrollToNotice;XT_ATC.singleScrollToNoticeTimeout=parseInt(XT_ATC.singleScrollToNoticeTimeout);XT_ATC.overrideSpinner=!!XT_ATC.overrideSpinner;XT_ATC.redirectionEnabled=!!XT_ATC.redirectionEnabled;function init(){fixCartForms();observeCartForms();$(document.body).on("should_send_ajax_request.adding_to_cart",shouldAddToCart);$(document.body).on("adding_to_cart",onAddingToCart);$(document.body).on("added_to_cart",onAddedToCart);$(document.body).on("click.xt_atc",".single_add_to_cart_button",onSingleAddToCart);$(document.body).on("wc_fragments_refreshed",onSingleFragmentsRefreshed);moveEventToTheTop()}function fixCartForms(){$("form .add_to_cart_button").each(function(){if($(this).closest(".product-type-grouped").length===0){$(this).removeClass("add_to_cart_button").addClass("single_add_to_cart_button")}});$("form.cart").each(function(){var trigger=$(this).find('[type="submit"]').not(".single_add_to_cart_button");if(trigger.length){trigger.addClass("single_add_to_cart_button")}})}function observeCartForms(){var observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){if(mutation.addedNodes&&mutation.addedNodes.length>0){var isCartForm=[].some.call(mutation.addedNodes,function(el){return $(el).find("form.cart").length});if(isCartForm){fixCartForms()}}})});observer.observe(document.body,{attributes:true,childList:true,characterData:true})}function moveEventToTheTop(){var interval=setInterval(function(){if(!isEventBindedFirst(document.body,"click","xt_atc")){eventBindFirst(document.body,"click","xt_atc")}else{clearInterval(interval)}},1e3)}function isEventBindedFirst(element,type,namespace){var events=$._data(element).events[type];if(events&&events.length>0){return events[0].namespace===namespace}return false}function eventBindFirst(element,type,namespace){var events=$._data(element).events[type];if(events&&events.length>0){events.find(function(event,index){if(namespace===event.namespace){events.unshift(events.splice(index,1)[0])}})}}function shouldAddToCart(evt,trigger){return!isButtonLoading(trigger)}function onAddingToCart(evt,trigger){if(trigger){startButtonLoader(trigger)}$(document.body).trigger("xt_atc_adding_to_cart",[trigger])}function onAddedToCart(evt,fragments,cart_hash,trigger){if(trigger){stopButtonLoader(trigger)}if(!cartHasErrors(fragments)){$(document.body).trigger("xt_atc_added_to_cart",[{fragments:fragments},trigger,cart_hash])}}function onSingleAddToCart(evt){var trigger=$(evt.currentTarget);var form=trigger.closest("form");if(!skipSingleAddToCart(trigger)){evt.preventDefault();evt.stopImmediatePropagation();if(!isButtonLoading(trigger)&&!isButtonDisabled(trigger)&&validSingleAddToCart(form,trigger)){singleAddToCart(form,trigger)}}}function cartHasErrors(fragments){if(fragments&&fragments.hasOwnProperty(".woocommerce-notices-wrapper")&&$(fragments[".woocommerce-notices-wrapper"]).length){return $(fragments[".woocommerce-notices-wrapper"]).find(".woocommerce-error").length>0}return false}function validSingleAddToCart(form,trigger){var errors=0;var is_grouped=form.hasClass("grouped_form");var $qty_input=form.find(".quantity input.qty:visible");if($qty_input.length){$qty_input.each(function(){$(this).removeClass("xt_atc-error");var value=$(this).val()!==""?parseInt($(this).val()):0;var has_min=$(this).get(0).hasAttribute("min");var min=has_min?parseInt($(this).attr("min")):1;if(value<min||!is_grouped&&value<=0){$(this).addClass("xt_atc-error");errors++}});if(is_grouped){var total_empty=0;$qty_input.each(function(){var value=$(this).val()!==""?parseInt($(this).val()):0;if(value<=0){total_empty++}});if(total_empty>0&&$qty_input.length===total_empty){$qty_input.addClass("xt_atc-error");errors++}}}var $elements=form.find(".wc-pao-required-addon, .required-product-addon");$elements=$.merge($elements,form.find(".tm-has-required + div.tm-extra-product-options-container").not(".tc-hidden div.tm-extra-product-options-container"));$elements=$.merge($elements,form.find(".ppom-field-wrapper .show_required").closest(".form-group"));$elements=$.merge($elements,form.find(".gfield_contains_required"));$elements.each(function(){var $row=$(this);if($row.is(":visible")){var $input=$row.find(":input");if($input.attr("type")==="checkbox"||$input.attr("type")==="radio"){$row.removeClass("xt_atc-error");if(!$input.is(":checked")){errors++;$row.addClass("xt_atc-error")}}else{$row.removeClass("xt_atc-error");if($input.val()===""){errors++;$row.addClass("xt_atc-error")}}}else{$row.removeClass("xt_atc-error")}});if(errors>0){var $firstError=form.find(".xt_atc-error").first();var $scrollElm=maybeInQuickView(trigger)?form:$("html,body");if($firstError.length){$scrollElm.animate({scrollTop:$firstError.offset().top-100},500)}}return errors===0}function skipSingleAddToCart(trigger){if(trigger.closest(".wc-product-table").length||trigger.closest(".product").hasClass("product-type-external")||trigger.hasClass("wps_ubo_bump_add_to_cart_button")||hasClassRegEx(trigger,[/buy-now/,/buy_now/,/buynow/])){return true}if(!XT_ATC.ajaxAddToCart&&!isSingleProductPage(trigger)){return true}if(!XT_ATC.ajaxSinglePageAddToCart&&isSingleProductPage(trigger)){return true}return false}function hasClassRegEx(el,regex){var classes=$(el).attr("class");if(!classes||!regex){return false}classes=classes.split(" ");for(var i=0;i<classes.length;i++){if(typeof regex==="object"&&regex.hasOwnProperty("length")){for(var r=0;r<regex.length;r++){if(classes[i].match(regex[r])!==null){return true}}}else{if(classes[i].match(regex)!==null){return true}}}return false}function isButtonLoading(trigger){return!!trigger.data("loading")}function isButtonDisabled(trigger){return trigger.hasClass("disabled")}function startButtonLoader(trigger){trigger.data("loading",true);trigger.removeClass("added loading");if(XT_ATC.overrideSpinner){if(startButtonLoaderTimeout){clearTimeout(startButtonLoaderTimeout)}var trigger_html=trigger.html();var computedStyles=window.getComputedStyle(trigger.get(0));var trigger_bgcolor=computedStyles.backgroundColor;var trigger_color=computedStyles.color;var trigger_width=computedStyles.width;var trigger_height=computedStyles.height;trigger.data("html",trigger_html);trigger.addClass("xt_atc-loading");trigger.css({backgroundColor:trigger_bgcolor,color:trigger_color,width:trigger_width,height:trigger_height});var $spinnerWrap=trigger.find(".xt_atc-button-spinner-wrap");var $spinner;if($spinnerWrap.length===0){$spinnerWrap=$('<span class="xt_atc-button-spinner-wrap"></span>');$spinner=$('<span class="xt_atc-button-spinner '+XT_ATC.spinnerIcon+'"></span>');$spinnerWrap.html($spinner);trigger.html($spinnerWrap)}else{$spinner=$spinnerWrap.find(".xt_atc-button-spinner");$spinner.removeClass(XT_ATC.checkmarkIcon).addClass(XT_ATC.spinnerIcon)}startButtonLoaderTimeout=setTimeout(function(){$spinnerWrap.addClass("xt_atc-button-spinner-ready")},5)}else{trigger.addClass("loading")}}function stopButtonLoader(trigger){if(XT_ATC.overrideSpinner){if(stopButtonLoaderTimeout){clearTimeout(stopButtonLoaderTimeout)}var $spinnerWrap=trigger.find(".xt_atc-button-spinner-wrap");if($spinnerWrap.length){$spinnerWrap.removeClass("xt_atc-button-spinner-ready");var $spinner=$spinnerWrap.find(".xt_atc-button-spinner");var resetStyles={backgroundColor:"",color:"",width:"",height:""};stopButtonLoaderTimeout=setTimeout(function(){$spinner.removeClass(XT_ATC.spinnerIcon).addClass(XT_ATC.checkmarkIcon);$spinnerWrap.addClass("xt_atc-button-spinner-ready");setTimeout(function(){trigger.html(trigger.data("html"));trigger.removeClass("xt_atc-loading").addClass("added");trigger.removeData("loading");trigger.css(resetStyles)},2e3)},300)}}else{trigger.removeClass("loading").addClass("added");trigger.removeData("loading")}}function getFormData(form,trigger){var formData=new FormData(form.get(0));form.find("button").each(function(){var key=$(this).attr("name");var value=$(this).val();if(key&&value&&!formData.has(key)){formData.append(key,value)}});$.each(trigger.data(),function(key,value){if(!formData.has(key)){formData.append(key,value)}});$.each(trigger[0].dataset,function(key,value){if(!formData.has(key)){formData.append(key,value)}});if(!formData.has("add-to-cart")&&!formData.has("product_id")&&form.attr("action")){var is_url=form.attr("action").match(/add-to-cart=([0-9]+)/);var productID=is_url?is_url[1]:false;if(productID){formData.append("add-to-cart",productID)}}if(!formData.has("add-to-cart")&&formData.has("product_id")){formData.append("add-to-cart",formData.get("product_id"))}return formData}function singleAddToCart(form,trigger){trigger.removeClass("added");var data=getFormData(form,trigger);if(false===$(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[trigger])){$(document.body).trigger("ajax_request_not_sent.adding_to_cart",[false,false,trigger]);return true}$(document.body).trigger("adding_to_cart",[trigger,data]);$.ajaxPrefilter(function(options,originalOptions){if(options.url.search("xt_atc_single")!==-1){options.data=originalOptions.data}});$.XT_Ajax_Queue({url:XT_ATC.ajaxUrl.toString().replace("%%endpoint%%","xt_atc_single"),enctype:"multipart/form-data",type:"post",data:data,processData:false,contentType:false,cache:false,timeout:6e5}).done(function(data){if(XT_ATC.redirectionEnabled){window.location=XT_ATC.redirectionTo;return}if(!isSingleProductPage(trigger)&&!maybeInQuickView(trigger)&&!wc_add_to_cart_params.is_cart&&trigger.parent().find(".added_to_cart").length===0){trigger.after('<a href="'+wc_add_to_cart_params.cart_url+'" class="added_to_cart wc-forward" title="'+wc_add_to_cart_params.i18n_view_cart+'">'+wc_add_to_cart_params.i18n_view_cart+"</a>")}if(!isSingleProductPage(trigger)&&data.fragments&&data.fragments.hasOwnProperty(".woocommerce-notices-wrapper")){delete data.fragments[".woocommerce-notices-wrapper"]}if(XT_ATC.singleRefreshFragments){singleAddedParams={fragments:data.fragments,cart_hash:data.cart_hash,trigger:trigger};$(document.body).trigger("wc_fragment_refresh")}else{triggerSingleAddedToCart(data.fragments,data.cart_hash,trigger)}}).fail(function(){stopButtonLoader(trigger)})}function triggerSingleAddedToCart(fragments,cart_hash,trigger){singleAddedParams=null;$(document.body).trigger("added_to_cart",[fragments,cart_hash,trigger]);maybeScrollToNotice(trigger)}function onSingleFragmentsRefreshed(){if(singleAddedParams){triggerSingleAddedToCart(singleAddedParams.fragments,singleAddedParams.cart_hash,singleAddedParams.trigger)}}function maybeInQuickView(trigger){var maybeQuickViewContainer=trigger.closest(".single-product");return maybeQuickViewContainer.length>0&&maybeQuickViewContainer.prop("tagName")!=="BODY"}function maybeInProductList(trigger){var maybeProductListContainer=trigger.closest(".products");var maybeVariableProductOnArchivePage=trigger.closest(".xt_woovs-archives-product");return maybeProductListContainer.length>0||maybeVariableProductOnArchivePage.length>0}function isSingleProductPage(trigger){return maybeInQuickView(trigger)||maybeInProductList(trigger)?false:XT_ATC.isProductPage}function maybeScrollToNotice(trigger){var wooNotices=$(".woocommerce-notices-wrapper");if(isSingleProductPage(trigger)&&wooNotices.length&&XT_ATC.singleScrollToNotice){setTimeout(function(){var scrollTop=$(window).scrollTop();var offset=wooNotices.offset().top-100;if(scrollTop>=offset){$("html,body").animate({scrollTop:offset},500)}},XT_ATC.singleScrollToNoticeTimeout+500)}}init()})})(jQuery,window);
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(f){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});
function on_keydown_remove_from_cart(e){" "===e.key&&(e.preventDefault(),e.currentTarget.click())}function focus_populate_live_region(){var e=["woocommerce-message","woocommerce-error","wc-block-components-notice-banner"].map(function(e){return"."+e+'[role="alert"]'}).join(", "),o=document.querySelectorAll(e);if(0!==o.length){var t=o[0];t.setAttribute("tabindex","-1");var n=setTimeout(function(){t.focus(),clearTimeout(n)},500)}}function refresh_sorted_by_live_region(){var e=document.querySelector(".woocommerce-result-count");if(e){var o=e.innerHTML;e.setAttribute("aria-hidden","true");var t=setTimeout(function(){e.setAttribute("aria-hidden","false"),e.innerHTML="",e.innerHTML=o,clearTimeout(t)},2e3)}}function on_document_ready(){focus_populate_live_region(),refresh_sorted_by_live_region()}jQuery(function(e){e(".woocommerce-ordering").on("change","select.orderby",function(){e(this).closest("form").trigger("submit")}),e("input.qty:not(.product-quantity input.qty)").each(function(){var o=parseFloat(e(this).attr("min"));o>=0&&parseFloat(e(this).val())<o&&e(this).val(o)});var o="store_notice"+(e(".woocommerce-store-notice").data("noticeId")||"");if("hidden"===Cookies.get(o))e(".woocommerce-store-notice").hide();else{function t(o){["Enter"," "].includes(o.key)&&(o.preventDefault(),e(".woocommerce-store-notice__dismiss-link").click())}e(".woocommerce-store-notice").show(),e(".woocommerce-store-notice__dismiss-link").on("click",function n(r){Cookies.set(o,"hidden",{path:"/"}),e(".woocommerce-store-notice").hide(),r.preventDefault(),e(".woocommerce-store-notice__dismiss-link").off("click",n).off("keydown",t)}).on("keydown",t)}e(".woocommerce-input-wrapper span.description").length&&e(document.body).on("click",function(){e(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),e(".woocommerce-input-wrapper").on("click",function(e){e.stopPropagation()}),e(".woocommerce-input-wrapper :input").on("keydown",function(o){var t=e(this).parent().find("span.description");if(27===o.which&&t.length&&t.is(":visible"))return t.prop("aria-hidden",!0).slideUp(250),o.preventDefault(),!1}).on("click focus",function(){var o=e(this).parent(),t=o.find("span.description");o.addClass("currentTarget"),e(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),t.length&&t.is(":hidden")&&t.prop("aria-hidden",!1).slideDown(250),o.removeClass("currentTarget")}),e.scroll_to_notices=function(o){o.length&&e("html, body").animate({scrollTop:o.offset().top-100},1e3)},e('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").each(function(){const o=e(this).find("input").attr("id");e(this).append('<button type="button" class="show-password-input" aria-label="'+woocommerce_params.i18n_password_show+'" aria-describedBy="'+o+'"></button>')}),e(".show-password-input").on("click",function(o){o.preventDefault(),e(this).hasClass("display-password")?(e(this).removeClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_show)):(e(this).addClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_hide)),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password"),e(this).siblings("input").focus()}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})}),"undefined"==typeof wc_add_to_cart_params&&e(document.body).on("keydown",".remove_from_cart_button",on_keydown_remove_from_cart),e(document.body).on("item_removed_from_classic_cart updated_wc_div",focus_populate_live_region)}),document.addEventListener("DOMContentLoaded",on_document_ready);
jQuery(function(t){if("undefined"==typeof wc_country_select_params)return!1;if(t().selectWoo){var e=function(){t("select.country_select:visible, select.state_select:visible").each(function(){var e=t(this),n=t.extend({placeholder:e.attr("data-placeholder")||e.attr("placeholder")||"",label:e.attr("data-label")||null,required:"true"===e.attr("aria-required")||null,width:"100%"},{language:{errorLoading:function(){return wc_country_select_params.i18n_searching},inputTooLong:function(t){var e=t.input.length-t.maximum;return 1===e?wc_country_select_params.i18n_input_too_long_1:wc_country_select_params.i18n_input_too_long_n.replace("%qty%",e)},inputTooShort:function(t){var e=t.minimum-t.input.length;return 1===e?wc_country_select_params.i18n_input_too_short_1:wc_country_select_params.i18n_input_too_short_n.replace("%qty%",e)},loadingMore:function(){return wc_country_select_params.i18n_load_more},maximumSelected:function(t){return 1===t.maximum?wc_country_select_params.i18n_selection_too_long_1:wc_country_select_params.i18n_selection_too_long_n.replace("%qty%",t.maximum)},noResults:function(){return wc_country_select_params.i18n_no_matches},searching:function(){return wc_country_select_params.i18n_searching}}});t(this).on("select2:select",function(){t(this).trigger("focus")}).selectWoo(n)})};e(),t(document.body).on("country_to_state_changed",function(){e()})}var n=wc_country_select_params.countries.replace(/&quot;/g,'"'),a=JSON.parse(n),o=".woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-address-fields,.woocommerce-shipping-calculator";t(document.body).on("change refresh","select.country_to_state, input.country_to_state",function(){var e=t(this).closest(o);e.length||(e=t(this).closest(".form-row").parent());var n,c=t(this).val(),r=e.find("#billing_state, #shipping_state, #calc_shipping_state"),i=r.closest(".form-row"),s=r.attr("name"),_=r.attr("id"),l=r.attr("data-input-classes"),p=r.val(),u=r.attr("placeholder")||r.attr("data-placeholder")||"";if(u===wc_country_select_params.i18n_select_state_text&&(u=""),a[c])if(t.isEmptyObject(a[c]))n=t('<input type="hidden" />').prop("id",_).prop("name",s).attr("data-input-classes",l).addClass("hidden "+l),i.hide().find(".select2-container").remove(),r.replaceWith(n),t(document.body).trigger("country_to_state_changed",[c,e]);else{var d=a[c],m=t('<option value=""></option>').text(wc_country_select_params.i18n_select_state_text);u||(u=wc_country_select_params.i18n_select_state_text),i.show(),r.is("input")&&(n=t("<select></select>").prop("id",_).prop("name",s).data("placeholder",u).attr("data-input-classes",l).addClass("state_select "+l),r.replaceWith(n),r=e.find("#billing_state, #shipping_state, #calc_shipping_state")),r.empty().append(m),t.each(d,function(e){var n=t("<option></option>").prop("value",e).text(d[e]);r.append(n)}),r.val(p).trigger("change"),t(document.body).trigger("country_to_state_changed",[c,e])}else r.is('select, input[type="hidden"]')&&(n=t('<input type="text" />').prop("id",_).prop("name",s).prop("placeholder",u).attr("data-input-classes",l).addClass("input-text  "+l),i.show().find(".select2-container").remove(),r.replaceWith(n),t(document.body).trigger("country_to_state_changed",[c,e]));t(document.body).trigger("country_to_state_changing",[c,e])}),t(document.body).on("wc_address_i18n_ready",function(){t(o).each(function(){var e=t(this).find("#billing_country, #shipping_country, #calc_shipping_country");0!==e.length&&0!==e.val().length&&e.trigger("refresh")})})});
jQuery(function(e){if("undefined"==typeof wc_address_i18n_params)return!1;var a=wc_address_i18n_params.locale.replace(/&quot;/g,'"'),i=JSON.parse(a);function d(e,a){a?(e.find("label .optional").remove(),e.addClass("validate-required"),0===e.find('label .required[aria-hidden="true"]').length&&e.find("label").append('&nbsp;<span class="required" aria-hidden="true">*</span>')):(e.find("label .required").remove(),e.removeClass("validate-required woocommerce-invalid woocommerce-invalid-required-field"),0===e.find("label .optional").length&&e.find("label").append('&nbsp;<span class="optional">('+wc_address_i18n_params.i18n_optional_text+")</span>"))}e(document.body).on("country_to_state_changing",function(a,r,t){var l,n=t;l="undefined"!=typeof i[r]?i[r]:i["default"];var o=n.find("#billing_postcode_field, #shipping_postcode_field, #calc_shipping_postcode_field"),s=n.find("#billing_city_field, #shipping_city_field, #calc_shipping_city_field"),p=n.find("#billing_state_field, #shipping_state_field, #calc_shipping_state_field");o.attr("data-o_class")||(o.attr("data-o_class",o.attr("class")),s.attr("data-o_class",s.attr("class")),p.attr("data-o_class",p.attr("class")));var c=JSON.parse(wc_address_i18n_params.locale_fields);e.each(c,function(a,r){var t=n.find(r),o=e.extend(!0,{},i["default"][a],l[a]);"undefined"!=typeof o.label&&t.find("label").html(o.label),"undefined"!=typeof o.placeholder&&(t.find(":input").attr("placeholder",o.placeholder),t.find(":input").attr("data-placeholder",o.placeholder),t.find(".select2-selection__placeholder").text(o.placeholder)),"undefined"!=typeof o.placeholder||"undefined"==typeof o.label||t.find("label:not(.screen-reader-text)").length||(t.find(":input").attr("placeholder",o.label),t.find(":input").attr("data-placeholder",o.label),t.find(".select2-selection__placeholder").text(o.label)),"undefined"!=typeof o.required?d(t,o.required):d(t,!1),"undefined"!=typeof o.priority&&t.data("priority",o.priority),"state"!==a&&("undefined"!=typeof o.hidden&&!0===o.hidden?t.hide().find(":input").val(""):t.show()),Array.isArray(o["class"])&&(t.removeClass("form-row-first form-row-last form-row-wide"),t.addClass(o["class"].join(" ")))}),e(".woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-address-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper .woocommerce-account-fields").each(function(a,i){var d=e(i).find(".form-row"),r=d.first().parent(),t=0;d.each(function(){e(this).data("priority")||e(this).data("priority",t+1),t=e(this).data("priority")}),d.sort(function(a,i){var d=parseInt(e(a).data("priority"),10),r=parseInt(e(i).data("priority"),10);return d>r?1:d<r?-1:0}),d.detach().appendTo(r)})}).trigger("wc_address_i18n_ready")});
!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.7",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,o){return o=null==o?u.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+o];switch(o){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(o+1),r=0;r<o;r++)e[r]=arguments[r];return e[o]=t,u.apply(this,e)}}function o(n){var t=typeof n;return"function"==t||"object"==t&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function i(n){var t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),tn=i("Error"),rn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=i("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(new Map),u=i("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,v=U||i("Array");function y(n,t){return null!=n&&q.call(n,t)}var on=i("Arguments"),an=(!function(){on(arguments)||(on=function(n){return y(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}var d=sn("byteLength"),pn=ln(d),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,o="constructor";for(y(n,o)&&!t.contains(o)&&t.push(o);r--;)(o=J[r])in n&&n[o]!==u[o]&&!t.contains(o)&&t.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var t,r=[];for(t in n)y(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=b(t),e=r.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=r[o];if(t[i]!==u[i]||!(i in u))return!1}return!0}function m(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,d(n))}m.VERSION=n,m.prototype.valueOf=m.prototype.toJSON=m.prototype.value=function(){return this._wrapped},m.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function mn(n,t,r,e){var u;return n===t?0!==n||1/n==1/t:null!=n&&null!=t&&(n!=n?t!=t:("function"==(u=typeof n)||"object"==u||"object"==typeof t)&&function n(t,r,e,u){t instanceof m&&(t=t._wrapped);r instanceof m&&(r=r._wrapped);var o=s.call(t);if(o!==s.call(r))return!1;if(un&&"[object Object]"==o&&h(t)){if(!h(r))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+r;case"[object Number]":return+t!=+t?+r!=+r:0==+t?1/+t==1/r:+t==+r;case"[object Date]":case"[object Boolean]":return+t==+r;case"[object Symbol]":return F.valueOf.call(t)===F.valueOf.call(r);case"[object ArrayBuffer]":case bn:return n(gn(t),gn(r),e,u)}o="[object Array]"===o;if(!o&&vn(t)){var i=d(t);if(i!==d(r))return!1;if(t.buffer===r.buffer&&t.byteOffset===r.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof r)return!1;var i=t.constructor,a=r.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in t&&"constructor"in r)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===t)return u[f]===r;e.push(t);u.push(r);if(o){if((f=t.length)!==r.length)return!1;for(;f--;)if(!mn(t[f],r[f],e,u))return!1}else{var c,l=b(t);if(f=l.length,b(r).length!==f)return!1;for(;f--;)if(c=l[f],!y(r,c)||!mn(t[c],r[c],e,u))return!1}e.pop();u.pop();return!0}(n,t,r,e))}function c(n){if(!o(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var t=c(n);if(g(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==_n||!p(n[wn])}}var wn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(wn,u),_n=t.concat(u),r=["add"].concat(t,wn,"has"),u=a?jn(U):i("Map"),t=a?jn(_n):i("WeakMap"),U=a?jn(r):i("Set"),a=i("WeakSet");function j(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function An(n){for(var t={},r=b(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function xn(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function Sn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],u=f(e),o=u.length,i=0;i<o;i++){var a=u[i];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var On=Sn(c),w=Sn(b),Mn=Sn(c,!0);function En(n){var t;return o(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function _(n){return m.toPath(n)}function Nn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function In(n,t,r){n=Nn(n,_(t));return H(n)?r:n}function Tn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function kn(t){return t=_(t),function(n){return Nn(n,t)}}function x(u,o,n){if(void 0===o)return u;switch(null==n?3:n){case 1:return function(n){return u.call(o,n)};case 3:return function(n,t,r){return u.call(o,n,t,r)};case 4:return function(n,t,r,e){return u.call(o,n,t,r,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,t,r){return null==n?Tn:p(n)?x(n,t,r):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,t){return Dn(n,t,1/0)}function S(n,t,r){return m.iteratee!==Rn?m.iteratee(n,t):Dn(n,t,r)}function Vn(){}function Fn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(t){function r(n){return t[n]}var n="(?:"+b(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qn=Pn(r),r=Pn(An(r)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,t,r,e,u){return e instanceof t?(e=En(n.prototype),o(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,o){function i(){for(var n=0,t=o.length,r=Array(t),e=0;e<t;e++)r[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)r.push(arguments[n++]);return Jn(u,i,this,this,r)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Jn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,t,r,e){if(e=e||[],t||0===t){if(t<=0)return e.concat(n)}else t=1/0;for(var u=e.length,o=0,i=g(n);o<i;o++){var a=n[o];if(E(a)&&(v(a)||an(a)))if(1<t)B(a,t-1,r,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else r||(e[u++]=a)}return e}var Hn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var nt=M(Zn,2);function tt(n,t,r){t=S(t,r);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(t(n[e=u[o]],e,n))return e}function rt(o){return function(n,t,r){t=S(t,r);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(t(n[u],u,n))return u;return-1}}var et=rt(1),ut=rt(-1);function ot(n,t,r,e){for(var u=(r=S(r,e,1))(t),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);r(n[a])<u?o=a+1:i=a}return o}function it(o,i,a){return function(n,t,r){var e=0,u=g(n);if("number"==typeof r)0<o?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=i(f.call(n,e,u),fn))?r+e:-1;for(r=0<o?e:u-1;0<=r&&r<u;r+=o)if(n[r]===t)return r;return-1}}var at=it(1,et,ot),ft=it(-1,ut);function ct(n,t,r){t=(E(n)?et:tt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,o=n.length;u<o;u++)t(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)t(n[e[u]],e[u],n);return n}function I(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=t(n[a],a,n)}return o}function lt(f){return function(n,t,r,e){var u=3<=arguments.length;return function(n,t,r,e){var u=!E(n)&&b(n),o=(u||n).length,i=0<f?0:o-1;for(e||(r=n[u?u[i]:i],i+=f);0<=i&&i<o;i+=f){var a=u?u[i]:i;r=t(r,n[a],a,n)}return r}(n,x(t,e,4),r,u)}}var st=lt(1),pt=lt(-1);function T(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!t(n[i],i,n))return!1}return!0}function vt(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(t(n[i],i,n))return!0}return!1}function k(n,t,r,e){return E(n)||(n=j(n)),0<=at(n,t,r="number"==typeof r&&!e?r:0)}var yt=l(function(n,r,e){var u,o;return p(r)?o=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),I(n,function(n){var t=o;if(!t){if(null==(n=u&&u.length?Nn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function dt(n,t){return I(n,kn(t))}function gt(n,e,t){var r,u,o=-1/0,i=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&o<r&&(o=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var bt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mt(n){return n?v(n)?f.call(n):X(n)?n.match(bt):E(n)?I(n,Tn):j(n):[]}function jt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Fn(n.length-1)];for(var e=mt(n),r=g(e),u=(t=Math.max(Math.min(t,r),0),r-1),o=0;o<t;o++){var i=Fn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,t)}function D(o,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);o(u,n,t)}),u}}var wt=D(function(n,t,r){y(n,r)?n[r].push(t):n[r]=[t]}),_t=D(function(n,t,r){n[r]=t}),At=D(function(n,t,r){y(n,r)?n[r]++:n[r]=1}),xt=D(function(n,t,r){n[r?0:1].push(t)},!0);function St(n,t,r){return t in r}var Ot=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=c(n)):(e=St,t=B(t,!1,!1),n=Object(n));for(var u=0,o=t.length;u<o;u++){var i=t[u],a=n[i];e(a,i,n)&&(r[i]=a)}}return r}),Mt=l(function(n,r){var t,e=r[0];return p(e)?(e=Yn(e),1<r.length&&(t=r[1])):(r=I(B(r,!1,!1),String),e=function(n,t){return!k(r,t)}),Ot(n,e,t)});function Et(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Bt(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Et(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Nt=l(function(n,t){return t=B(t,!0,!0),T(n,function(n){return!k(t,n)})}),It=l(function(n,t){return Nt(n,t)});function Tt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=r?r(f,i,n):f;t&&!r?(i&&o===c||u.push(f),o=c):r?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kt=l(function(n){return Tt(B(n,!0,!0))});function Dt(n){for(var t=n&&gt(n,g).length||0,r=Array(t),e=0;e<t;e++)r[e]=dt(n,e);return r}var Rt=l(Dt);function Vt(n,t){return n._chain?m(t).chain():t}function Ft(r){return N(xn(r),function(n){var t=m[n]=r[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Vt(this,t.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];m.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Vt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];m.prototype[n]=function(){var n=this._wrapped;return Vt(this,n=null!=n?t.apply(n,arguments):n)}});n=Ft({__proto__:null,VERSION:n,restArguments:l,isObject:o,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=g(n))&&(v(n)||X(n)||an(n))?0===t:0===g(b(n)))},isMatch:dn,isEqual:function(n,t){return mn(n,t)},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:w,assign:w,defaults:Mn,create:function(n,t){return n=En(n),t&&w(n,t),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,t){return t(n),n},get:In,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!y(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=t(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Vn,toPath:Bn,property:kn,propertyOf:function(t){return null==t?Vn:function(n){return In(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Fn,now:O,escape:qn,unescape:r,templateSettings:Un,template:function(o,n,t){n=Mn({},n=!n&&t?t:n,m.templateSettings);var r,t=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(t,function(n,t,r,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!Cn.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,m)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var o=null==n?void 0:n[t[u]];void 0===o&&(o=r,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var t=++Kn+"";return n?n+t:t},chain:function(n){return(n=m(n))._chain=!0,n},iteratee:Rn,partial:M,bind:Gn,bindAll:Hn,memoize:function(e,u){function o(n){var t=o.cache,r=""+(u?u.apply(this,arguments):n);return y(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(r,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=r.apply(a,f),i||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(i&&(clearTimeout(i),i=null),l=n,c=r.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,t)),c}var i,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(i),l=0,i=a=f=null},n},debounce:function(t,r,e){function u(){var n=O()-i;n<r?o=setTimeout(u,r-n):(o=null,e||(f=t.apply(c,a)),o||(a=c=null))}var o,i,a,f,c,n=l(function(n){return c=this,a=n,i=O(),o||(o=setTimeout(u,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Yn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Zn,once:nt,findKey:tt,findIndex:et,findLastIndex:ut,sortedIndex:ot,indexOf:at,lastIndexOf:ft,find:ct,detect:ct,findWhere:function(n,t){return ct(n,A(t))},each:N,forEach:N,map:I,collect:I,reduce:st,foldl:st,inject:st,reduceRight:pt,foldr:pt,filter:T,select:T,reject:function(n,t,r){return T(n,Yn(S(t)),r)},every:ht,all:ht,some:vt,any:vt,contains:k,includes:k,include:k,invoke:yt,pluck:dt,where:function(n,t){return T(n,A(t))},max:gt,min:function(n,e,t){var r,u,o=1/0,i=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&r<o&&(o=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jt(n,1/0)},sample:jt,sortBy:function(n,e,t){var u=0;return e=S(e,t),dt(I(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:wt,indexBy:_t,countBy:At,partition:xt,toArray:mt,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Ot,omit:Mt,first:Bt,head:Bt,take:Bt,initial:Et,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:It,uniq:Tt,unique:Tt,union:kt,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(t,o)){for(var i=1;i<r&&k(arguments[i],o);i++);i===r&&t.push(o)}}return t},difference:Nt,unzip:Dt,transpose:Dt,zip:Rt,object:function(n,t){for(var r={},e=0,u=g(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),o=0;o<e;o++,n+=r)u[o]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Ft,default:m});return n._=n});
window.wp=window.wp||{},function(r){var t="undefined"==typeof _wpUtilSettings?{}:_wpUtilSettings;wp.template=_.memoize(function(a){var n,s={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(t){var e=document.querySelector("script#tmpl-"+a);if(e)return(n=n||_.template(r(e).html(),s))(t);throw new Error("Template not found: #tmpl-"+a)}}),wp.ajax={settings:t.ajax||{},post:function(t,e){return wp.ajax.send({data:_.isObject(t)?t:_.extend(e||{},{action:t})})},send:function(n,t){var e,a;return _.isObject(n)?t=n:(t=t||{}).data=_.extend(t.data||{},{action:n}),t=_.defaults(t||{},{type:"POST",url:wp.ajax.settings.url,context:this}),(e=(a=r.Deferred(function(a){t.success&&a.done(t.success),t.error&&a.fail(t.error),delete t.success,delete t.error,a.jqXHR=r.ajax(t).done(function(t){var e;"1"!==t&&1!==t||(t={success:!0}),_.isObject(t)&&!_.isUndefined(t.success)?(e=this,a.done(function(){n&&n.data&&"query-attachments"===n.data.action&&a.jqXHR.hasOwnProperty("getResponseHeader")&&a.jqXHR.getResponseHeader("X-WP-Total")?e.totalAttachments=parseInt(a.jqXHR.getResponseHeader("X-WP-Total"),10):e.totalAttachments=0}),a[t.success?"resolveWith":"rejectWith"](this,[t.data])):a.rejectWith(this,[t])}).fail(function(){a.rejectWith(this,arguments)})})).promise()).abort=function(){return a.jqXHR.abort(),this},e}}}(jQuery);
(function(window){"use strict";if(window.jQuery){return}var $=function(selector,context){return new $.fn.init(selector,context)};$.isWindow=function(obj){return obj&&obj===obj.window};$.type=function(obj){if(!obj){return obj+""}return typeof obj==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":typeof obj};$.isArray=Array.isArray||function(obj){return $.type(obj)==="array"};function isArraylike(obj){var length=obj.length,type=$.type(obj);if(type==="function"||$.isWindow(obj)){return false}if(obj.nodeType===1&&length){return true}return type==="array"||length===0||typeof length==="number"&&length>0&&length-1 in obj}$.isPlainObject=function(obj){var key;if(!obj||$.type(obj)!=="object"||obj.nodeType||$.isWindow(obj)){return false}try{if(obj.constructor&&!hasOwn.call(obj,"constructor")&&!hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false}}catch(e){return false}for(key in obj){}return key===undefined||hasOwn.call(obj,key)};$.each=function(obj,callback,args){var value,i=0,length=obj.length,isArray=isArraylike(obj);if(args){if(isArray){for(;i<length;i++){value=callback.apply(obj[i],args);if(value===false){break}}}else{for(i in obj){if(!obj.hasOwnProperty(i)){continue}value=callback.apply(obj[i],args);if(value===false){break}}}}else{if(isArray){for(;i<length;i++){value=callback.call(obj[i],i,obj[i]);if(value===false){break}}}else{for(i in obj){if(!obj.hasOwnProperty(i)){continue}value=callback.call(obj[i],i,obj[i]);if(value===false){break}}}}return obj};$.data=function(node,key,value){if(value===undefined){var getId=node[$.expando],store=getId&&cache[getId];if(key===undefined){return store}else if(store){if(key in store){return store[key]}}}else if(key!==undefined){var setId=node[$.expando]||(node[$.expando]=++$.uuid);cache[setId]=cache[setId]||{};cache[setId][key]=value;return value}};$.removeData=function(node,keys){var id=node[$.expando],store=id&&cache[id];if(store){if(!keys){delete cache[id]}else{$.each(keys,function(_,key){delete store[key]})}}};$.extend=function(){var src,copyIsArray,copy,name,options,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[i]||{};i++}if(typeof target!=="object"&&$.type(target)!=="function"){target={}}if(i===length){target=this;i--}for(;i<length;i++){if(options=arguments[i]){for(name in options){if(!options.hasOwnProperty(name)){continue}src=target[name];copy=options[name];if(target===copy){continue}if(deep&&copy&&($.isPlainObject(copy)||(copyIsArray=$.isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&$.isArray(src)?src:[]}else{clone=src&&$.isPlainObject(src)?src:{}}target[name]=$.extend(deep,clone,copy)}else if(copy!==undefined){target[name]=copy}}}}return target};$.queue=function(elem,type,data){function $makeArray(arr,results){var ret=results||[];if(arr){if(isArraylike(Object(arr))){(function(first,second){var len=+second.length,j=0,i=first.length;while(j<len){first[i++]=second[j++]}if(len!==len){while(second[j]!==undefined){first[i++]=second[j++]}}first.length=i;return first})(ret,typeof arr==="string"?[arr]:arr)}else{[].push.call(ret,arr)}}return ret}if(!elem){return}type=(type||"fx")+"queue";var q=$.data(elem,type);if(!data){return q||[]}if(!q||$.isArray(data)){q=$.data(elem,type,$makeArray(data))}else{q.push(data)}return q};$.dequeue=function(elems,type){$.each(elems.nodeType?[elems]:elems,function(i,elem){type=type||"fx";var queue=$.queue(elem,type),fn=queue.shift();if(fn==="inprogress"){fn=queue.shift()}if(fn){if(type==="fx"){queue.unshift("inprogress")}fn.call(elem,function(){$.dequeue(elem,type)})}})};$.fn=$.prototype={init:function(selector){if(selector.nodeType){this[0]=selector;return this}else{throw new Error("Not a DOM node.")}},offset:function(){var box=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:box.top+(window.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:box.left+(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function offsetParentFn(elem){var offsetParent=elem.offsetParent;while(offsetParent&&offsetParent.nodeName.toLowerCase()!=="html"&&offsetParent.style&&offsetParent.style.position==="static"){offsetParent=offsetParent.offsetParent}return offsetParent||document}var elem=this[0],offsetParent=offsetParentFn(elem),offset=this.offset(),parentOffset=/^(?:body|html)$/i.test(offsetParent.nodeName)?{top:0,left:0}:$(offsetParent).offset();offset.top-=parseFloat(elem.style.marginTop)||0;offset.left-=parseFloat(elem.style.marginLeft)||0;if(offsetParent.style){parentOffset.top+=parseFloat(offsetParent.style.borderTopWidth)||0;parentOffset.left+=parseFloat(offsetParent.style.borderLeftWidth)||0}return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}};var cache={};$.expando="velocity"+(new Date).getTime();$.uuid=0;var class2type={},hasOwn=class2type.hasOwnProperty,toString=class2type.toString;var types="Boolean Number String Function Array Date RegExp Object Error".split(" ");for(var i=0;i<types.length;i++){class2type["[object "+types[i]+"]"]=types[i].toLowerCase()}$.fn.init.prototype=$.fn;window.Velocity={Utilities:$}})(window);(function(factory){"use strict";if(typeof module==="object"&&typeof module.exports==="object"){module.exports=factory()}else if(typeof define==="function"&&define.amd){define(factory)}else{factory()}})(function(){"use strict";return function(global,window,document,undefined){var IE=function(){if(document.documentMode){return document.documentMode}else{for(var i=7;i>4;i--){var div=document.createElement("div");div.innerHTML="\x3c!--[if IE "+i+"]><span></span><![endif]--\x3e";if(div.getElementsByTagName("span").length){div=null;return i}}}return undefined}();var rAFShim=function(){var timeLast=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback){var timeCurrent=(new Date).getTime(),timeDelta;timeDelta=Math.max(0,16-(timeCurrent-timeLast));timeLast=timeCurrent+timeDelta;return setTimeout(function(){callback(timeCurrent+timeDelta)},timeDelta)}}();var performance=function(){var perf=window.performance||{};if(!perf.hasOwnProperty("now")){var nowOffset=perf.timing&&perf.timing.domComplete?perf.timing.domComplete:(new Date).getTime();perf.now=function(){return(new Date).getTime()-nowOffset}}return perf}();function compactSparseArray(array){var index=-1,length=array?array.length:0,result=[];while(++index<length){var value=array[index];if(value){result.push(value)}}return result}function sanitizeElements(elements){if(Type.isWrapped(elements)){elements=[].slice.call(elements)}else if(Type.isNode(elements)){elements=[elements]}return elements}var Type={isNumber:function(variable){return typeof variable==="number"},isString:function(variable){return typeof variable==="string"},isArray:Array.isArray||function(variable){return Object.prototype.toString.call(variable)==="[object Array]"},isFunction:function(variable){return Object.prototype.toString.call(variable)==="[object Function]"},isNode:function(variable){return variable&&variable.nodeType},isWrapped:function(variable){return variable&&Type.isNumber(variable.length)&&!Type.isString(variable)&&!Type.isFunction(variable)&&!Type.isNode(variable)&&(variable.length===0||Type.isNode(variable[0]))},isSVG:function(variable){return window.SVGElement&&variable instanceof window.SVGElement},isEmptyObject:function(variable){for(var name in variable){if(variable.hasOwnProperty(name)){return false}}return true}};var $,isJQuery=false;if(global.fn&&global.fn.jquery){$=global;isJQuery=true}else{$=window.Velocity.Utilities}if(IE<=8&&!isJQuery){throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.")}else if(IE<=7){jQuery.fn.velocity=jQuery.fn.animate;return}var DURATION_DEFAULT=400,EASING_DEFAULT="swing";var Velocity={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:window.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:document.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:false,calls:[],delayedElements:{count:0}},CSS:{},Utilities:$,Redirects:{},Easings:{},Promise:window.Promise,defaults:{queue:"",duration:DURATION_DEFAULT,easing:EASING_DEFAULT,begin:undefined,complete:undefined,progress:undefined,display:undefined,visibility:undefined,loop:false,delay:false,mobileHA:true,_cacheValues:true,promiseRejectEmpty:true},init:function(element){$.data(element,"velocity",{isSVG:Type.isSVG(element),isAnimating:false,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:false,version:{major:1,minor:4,patch:1},debug:false,timestamp:true,pauseAll:function(queueName){var currentTime=(new Date).getTime();$.each(Velocity.State.calls,function(i,activeCall){if(activeCall){if(queueName!==undefined&&(activeCall[2].queue!==queueName||activeCall[2].queue===false)){return true}activeCall[5]={resume:false}}});$.each(Velocity.State.delayedElements,function(k,element){if(!element){return}pauseDelayOnElement(element,currentTime)})},resumeAll:function(queueName){var currentTime=(new Date).getTime();$.each(Velocity.State.calls,function(i,activeCall){if(activeCall){if(queueName!==undefined&&(activeCall[2].queue!==queueName||activeCall[2].queue===false)){return true}if(activeCall[5]){activeCall[5].resume=true}}});$.each(Velocity.State.delayedElements,function(k,element){if(!element){return}resumeDelayOnElement(element,currentTime)})}};if(window.pageYOffset!==undefined){Velocity.State.scrollAnchor=window;Velocity.State.scrollPropertyLeft="pageXOffset";Velocity.State.scrollPropertyTop="pageYOffset"}else{Velocity.State.scrollAnchor=document.documentElement||document.body.parentNode||document.body;Velocity.State.scrollPropertyLeft="scrollLeft";Velocity.State.scrollPropertyTop="scrollTop"}function Data(element){var response=$.data(element,"velocity");return response===null?undefined:response}function pauseDelayOnElement(element,currentTime){var data=Data(element);if(data&&data.delayTimer&&!data.delayPaused){data.delayRemaining=data.delay-currentTime+data.delayBegin;data.delayPaused=true;clearTimeout(data.delayTimer.setTimeout)}}function resumeDelayOnElement(element,currentTime){var data=Data(element);if(data&&data.delayTimer&&data.delayPaused){data.delayPaused=false;data.delayTimer.setTimeout=setTimeout(data.delayTimer.next,data.delayRemaining)}}function generateStep(steps){return function(p){return Math.round(p*steps)*(1/steps)}}function generateBezier(mX1,mY1,mX2,mY2){var NEWTON_ITERATIONS=4,NEWTON_MIN_SLOPE=.001,SUBDIVISION_PRECISION=1e-7,SUBDIVISION_MAX_ITERATIONS=10,kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1),float32ArraySupported="Float32Array"in window;if(arguments.length!==4){return false}for(var i=0;i<4;++i){if(typeof arguments[i]!=="number"||isNaN(arguments[i])||!isFinite(arguments[i])){return false}}mX1=Math.min(mX1,1);mX2=Math.min(mX2,1);mX1=Math.max(mX1,0);mX2=Math.max(mX2,0);var mSampleValues=float32ArraySupported?new Float32Array(kSplineTableSize):new Array(kSplineTableSize);function A(aA1,aA2){return 1-3*aA2+3*aA1}function B(aA1,aA2){return 3*aA2-6*aA1}function C(aA1){return 3*aA1}function calcBezier(aT,aA1,aA2){return((A(aA1,aA2)*aT+B(aA1,aA2))*aT+C(aA1))*aT}function getSlope(aT,aA1,aA2){return 3*A(aA1,aA2)*aT*aT+2*B(aA1,aA2)*aT+C(aA1)}function newtonRaphsonIterate(aX,aGuessT){for(var i=0;i<NEWTON_ITERATIONS;++i){var currentSlope=getSlope(aGuessT,mX1,mX2);if(currentSlope===0){return aGuessT}var currentX=calcBezier(aGuessT,mX1,mX2)-aX;aGuessT-=currentX/currentSlope}return aGuessT}function calcSampleValues(){for(var i=0;i<kSplineTableSize;++i){mSampleValues[i]=calcBezier(i*kSampleStepSize,mX1,mX2)}}function binarySubdivide(aX,aA,aB){var currentX,currentT,i=0;do{currentT=aA+(aB-aA)/2;currentX=calcBezier(currentT,mX1,mX2)-aX;if(currentX>0){aB=currentT}else{aA=currentT}}while(Math.abs(currentX)>SUBDIVISION_PRECISION&&++i<SUBDIVISION_MAX_ITERATIONS);return currentT}function getTForX(aX){var intervalStart=0,currentSample=1,lastSample=kSplineTableSize-1;for(;currentSample!==lastSample&&mSampleValues[currentSample]<=aX;++currentSample){intervalStart+=kSampleStepSize}--currentSample;var dist=(aX-mSampleValues[currentSample])/(mSampleValues[currentSample+1]-mSampleValues[currentSample]),guessForT=intervalStart+dist*kSampleStepSize,initialSlope=getSlope(guessForT,mX1,mX2);if(initialSlope>=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT)}else if(initialSlope===0){return guessForT}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize)}}var _precomputed=false;function precompute(){_precomputed=true;if(mX1!==mY1||mX2!==mY2){calcSampleValues()}}var f=function(aX){if(!_precomputed){precompute()}if(mX1===mY1&&mX2===mY2){return aX}if(aX===0){return 0}if(aX===1){return 1}return calcBezier(getTForX(aX),mY1,mY2)};f.getControlPoints=function(){return[{x:mX1,y:mY1},{x:mX2,y:mY2}]};var str="generateBezier("+[mX1,mY1,mX2,mY2]+")";f.toString=function(){return str};return f}var generateSpringRK4=function(){function springAccelerationForState(state){return-state.tension*state.x-state.friction*state.v}function springEvaluateStateWithDerivative(initialState,dt,derivative){var state={x:initialState.x+derivative.dx*dt,v:initialState.v+derivative.dv*dt,tension:initialState.tension,friction:initialState.friction};return{dx:state.v,dv:springAccelerationForState(state)}}function springIntegrateState(state,dt){var a={dx:state.v,dv:springAccelerationForState(state)},b=springEvaluateStateWithDerivative(state,dt*.5,a),c=springEvaluateStateWithDerivative(state,dt*.5,b),d=springEvaluateStateWithDerivative(state,dt,c),dxdt=1/6*(a.dx+2*(b.dx+c.dx)+d.dx),dvdt=1/6*(a.dv+2*(b.dv+c.dv)+d.dv);state.x=state.x+dxdt*dt;state.v=state.v+dvdt*dt;return state}return function springRK4Factory(tension,friction,duration){var initState={x:-1,v:0,tension:null,friction:null},path=[0],time_lapsed=0,tolerance=1/1e4,DT=16/1e3,have_duration,dt,last_state;tension=parseFloat(tension)||500;friction=parseFloat(friction)||20;duration=duration||null;initState.tension=tension;initState.friction=friction;have_duration=duration!==null;if(have_duration){time_lapsed=springRK4Factory(tension,friction);dt=time_lapsed/duration*DT}else{dt=DT}while(true){last_state=springIntegrateState(last_state||initState,dt);path.push(1+last_state.x);time_lapsed+=16;if(!(Math.abs(last_state.x)>tolerance&&Math.abs(last_state.v)>tolerance)){break}}return!have_duration?time_lapsed:function(percentComplete){return path[percentComplete*(path.length-1)|0]}}}();Velocity.Easings={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2},spring:function(p){return 1-Math.cos(p*4.5*Math.PI)*Math.exp(-p*6)}};$.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(i,easingArray){Velocity.Easings[easingArray[0]]=generateBezier.apply(null,easingArray[1])});function getEasing(value,duration){var easing=value;if(Type.isString(value)){if(!Velocity.Easings[value]){easing=false}}else if(Type.isArray(value)&&value.length===1){easing=generateStep.apply(null,value)}else if(Type.isArray(value)&&value.length===2){easing=generateSpringRK4.apply(null,value.concat([duration]))}else if(Type.isArray(value)&&value.length===4){easing=generateBezier.apply(null,value)}else{easing=false}if(easing===false){if(Velocity.Easings[Velocity.defaults.easing]){easing=Velocity.defaults.easing}else{easing=EASING_DEFAULT}}return easing}var CSS=Velocity.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+([0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var i=0;i<CSS.Lists.colors.length;i++){var rgbComponents=CSS.Lists.colors[i]==="color"?"0 0 0 1":"255 255 255 1";CSS.Hooks.templates[CSS.Lists.colors[i]]=["Red Green Blue Alpha",rgbComponents]}var rootProperty,hookTemplate,hookNames;if(IE){for(rootProperty in CSS.Hooks.templates){if(!CSS.Hooks.templates.hasOwnProperty(rootProperty)){continue}hookTemplate=CSS.Hooks.templates[rootProperty];hookNames=hookTemplate[0].split(" ");var defaultValues=hookTemplate[1].match(CSS.RegEx.valueSplit);if(hookNames[0]==="Color"){hookNames.push(hookNames.shift());defaultValues.push(defaultValues.shift());CSS.Hooks.templates[rootProperty]=[hookNames.join(" "),defaultValues.join(" ")]}}}for(rootProperty in CSS.Hooks.templates){if(!CSS.Hooks.templates.hasOwnProperty(rootProperty)){continue}hookTemplate=CSS.Hooks.templates[rootProperty];hookNames=hookTemplate[0].split(" ");for(var j in hookNames){if(!hookNames.hasOwnProperty(j)){continue}var fullHookName=rootProperty+hookNames[j],hookPosition=j;CSS.Hooks.registered[fullHookName]=[rootProperty,hookPosition]}}},getRoot:function(property){var hookData=CSS.Hooks.registered[property];if(hookData){return hookData[0]}else{return property}},getUnit:function(str,start){var unit=(str.substr(start||0,5).match(/^[a-z%]+/)||[])[0]||"";if(unit&&CSS.Lists.units.indexOf(unit)>=0){return unit}return""},fixColors:function(str){return str.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function($0,$1,$2){if(CSS.Lists.colorNames.hasOwnProperty($2)){return($1?$1:"rgba(")+CSS.Lists.colorNames[$2]+($1?"":",1)")}return $1+$2})},cleanRootPropertyValue:function(rootProperty,rootPropertyValue){if(CSS.RegEx.valueUnwrap.test(rootPropertyValue)){rootPropertyValue=rootPropertyValue.match(CSS.RegEx.valueUnwrap)[1]}if(CSS.Values.isCSSNullValue(rootPropertyValue)){rootPropertyValue=CSS.Hooks.templates[rootProperty][1]}return rootPropertyValue},extractValue:function(fullHookName,rootPropertyValue){var hookData=CSS.Hooks.registered[fullHookName];if(hookData){var hookRoot=hookData[0],hookPosition=hookData[1];rootPropertyValue=CSS.Hooks.cleanRootPropertyValue(hookRoot,rootPropertyValue);return rootPropertyValue.toString().match(CSS.RegEx.valueSplit)[hookPosition]}else{return rootPropertyValue}},injectValue:function(fullHookName,hookValue,rootPropertyValue){var hookData=CSS.Hooks.registered[fullHookName];if(hookData){var hookRoot=hookData[0],hookPosition=hookData[1],rootPropertyValueParts,rootPropertyValueUpdated;rootPropertyValue=CSS.Hooks.cleanRootPropertyValue(hookRoot,rootPropertyValue);rootPropertyValueParts=rootPropertyValue.toString().match(CSS.RegEx.valueSplit);rootPropertyValueParts[hookPosition]=hookValue;rootPropertyValueUpdated=rootPropertyValueParts.join(" ");return rootPropertyValueUpdated}else{return rootPropertyValue}}},Normalizations:{registered:{clip:function(type,element,propertyValue){switch(type){case"name":return"clip";case"extract":var extracted;if(CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)){extracted=propertyValue}else{extracted=propertyValue.toString().match(CSS.RegEx.valueUnwrap);extracted=extracted?extracted[1].replace(/,(\s+)?/g," "):propertyValue}return extracted;case"inject":return"rect("+propertyValue+")"}},blur:function(type,element,propertyValue){switch(type){case"name":return Velocity.State.isFirefox?"filter":"-webkit-filter";case"extract":var extracted=parseFloat(propertyValue);if(!(extracted||extracted===0)){var blurComponent=propertyValue.toString().match(/blur\(([0-9]+[A-z]+)\)/i);if(blurComponent){extracted=blurComponent[1]}else{extracted=0}}return extracted;case"inject":if(!parseFloat(propertyValue)){return"none"}else{return"blur("+propertyValue+")"}}},opacity:function(type,element,propertyValue){if(IE<=8){switch(type){case"name":return"filter";case"extract":var extracted=propertyValue.toString().match(/alpha\(opacity=(.*)\)/i);if(extracted){propertyValue=extracted[1]/100}else{propertyValue=1}return propertyValue;case"inject":element.style.zoom=1;if(parseFloat(propertyValue)>=1){return""}else{return"alpha(opacity="+parseInt(parseFloat(propertyValue)*100,10)+")"}}}else{switch(type){case"name":return"opacity";case"extract":return propertyValue;case"inject":return propertyValue}}}},register:function(){if((!IE||IE>9)&&!Velocity.State.isGingerbread){CSS.Lists.transformsBase=CSS.Lists.transformsBase.concat(CSS.Lists.transforms3D)}for(var i=0;i<CSS.Lists.transformsBase.length;i++){(function(){var transformName=CSS.Lists.transformsBase[i];CSS.Normalizations.registered[transformName]=function(type,element,propertyValue){switch(type){case"name":return"transform";case"extract":if(Data(element)===undefined||Data(element).transformCache[transformName]===undefined){return/^scale/i.test(transformName)?1:0}return Data(element).transformCache[transformName].replace(/[()]/g,"");case"inject":var invalid=false;switch(transformName.substr(0,transformName.length-1)){case"translate":invalid=!/(%|px|em|rem|vw|vh|\d)$/i.test(propertyValue);break;case"scal":case"scale":if(Velocity.State.isAndroid&&Data(element).transformCache[transformName]===undefined&&propertyValue<1){propertyValue=1}invalid=!/(\d)$/i.test(propertyValue);break;case"skew":invalid=!/(deg|\d)$/i.test(propertyValue);break;case"rotate":invalid=!/(deg|\d)$/i.test(propertyValue);break}if(!invalid){Data(element).transformCache[transformName]="("+propertyValue+")"}return Data(element).transformCache[transformName]}}})()}for(var j=0;j<CSS.Lists.colors.length;j++){(function(){var colorName=CSS.Lists.colors[j];CSS.Normalizations.registered[colorName]=function(type,element,propertyValue){switch(type){case"name":return colorName;case"extract":var extracted;if(CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)){extracted=propertyValue}else{var converted,colorNames={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};if(/^[A-z]+$/i.test(propertyValue)){if(colorNames[propertyValue]!==undefined){converted=colorNames[propertyValue]}else{converted=colorNames.black}}else if(CSS.RegEx.isHex.test(propertyValue)){converted="rgb("+CSS.Values.hexToRgb(propertyValue).join(" ")+")"}else if(!/^rgba?\(/i.test(propertyValue)){converted=colorNames.black}extracted=(converted||propertyValue).toString().match(CSS.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}if((!IE||IE>8)&&extracted.split(" ").length===3){extracted+=" 1"}return extracted;case"inject":if(/^rgb/.test(propertyValue)){return propertyValue}if(IE<=8){if(propertyValue.split(" ").length===4){propertyValue=propertyValue.split(/\s+/).slice(0,3).join(" ")}}else if(propertyValue.split(" ").length===3){propertyValue+=" 1"}return(IE<=8?"rgb":"rgba")+"("+propertyValue.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}})()}function augmentDimension(name,element,wantInner){var isBorderBox=CSS.getPropertyValue(element,"boxSizing").toString().toLowerCase()==="border-box";if(isBorderBox===(wantInner||false)){var i,value,augment=0,sides=name==="width"?["Left","Right"]:["Top","Bottom"],fields=["padding"+sides[0],"padding"+sides[1],"border"+sides[0]+"Width","border"+sides[1]+"Width"];for(i=0;i<fields.length;i++){value=parseFloat(CSS.getPropertyValue(element,fields[i]));if(!isNaN(value)){augment+=value}}return wantInner?-augment:augment}return 0}function getDimension(name,wantInner){return function(type,element,propertyValue){switch(type){case"name":return name;case"extract":return parseFloat(propertyValue)+augmentDimension(name,element,wantInner);case"inject":return parseFloat(propertyValue)-augmentDimension(name,element,wantInner)+"px"}}}CSS.Normalizations.registered.innerWidth=getDimension("width",true);CSS.Normalizations.registered.innerHeight=getDimension("height",true);CSS.Normalizations.registered.outerWidth=getDimension("width");CSS.Normalizations.registered.outerHeight=getDimension("height")}},Names:{camelCase:function(property){return property.replace(/-(\w)/g,function(match,subMatch){return subMatch.toUpperCase()})},SVGAttribute:function(property){var SVGAttributes="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";if(IE||Velocity.State.isAndroid&&!Velocity.State.isChrome){SVGAttributes+="|transform"}return new RegExp("^("+SVGAttributes+")$","i").test(property)},prefixCheck:function(property){if(Velocity.State.prefixMatches[property]){return[Velocity.State.prefixMatches[property],true]}else{var vendors=["","Webkit","Moz","ms","O"];for(var i=0,vendorsLength=vendors.length;i<vendorsLength;i++){var propertyPrefixed;if(i===0){propertyPrefixed=property}else{propertyPrefixed=vendors[i]+property.replace(/^\w/,function(match){return match.toUpperCase()})}if(Type.isString(Velocity.State.prefixElement.style[propertyPrefixed])){Velocity.State.prefixMatches[property]=propertyPrefixed;return[propertyPrefixed,true]}}return[property,false]}}},Values:{hexToRgb:function(hex){var shortformRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,longformRegex=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgbParts;hex=hex.replace(shortformRegex,function(m,r,g,b){return r+r+g+g+b+b});rgbParts=longformRegex.exec(hex);return rgbParts?[parseInt(rgbParts[1],16),parseInt(rgbParts[2],16),parseInt(rgbParts[3],16)]:[0,0,0]},isCSSNullValue:function(value){return!value||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(value)},getUnitType:function(property){if(/^(rotate|skew)/i.test(property)){return"deg"}else if(/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(property)){return""}else{return"px"}},getDisplayType:function(element){var tagName=element&&element.tagName.toString().toLowerCase();if(/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(tagName)){return"inline"}else if(/^(li)$/i.test(tagName)){return"list-item"}else if(/^(tr)$/i.test(tagName)){return"table-row"}else if(/^(table)$/i.test(tagName)){return"table"}else if(/^(tbody)$/i.test(tagName)){return"table-row-group"}else{return"block"}},addClass:function(element,className){if(element){if(element.classList){element.classList.add(className)}else if(Type.isString(element.className)){element.className+=(element.className.length?" ":"")+className}else{var currentClass=element.getAttribute(IE<=7?"className":"class")||"";element.setAttribute("class",currentClass+(currentClass?" ":"")+className)}}},removeClass:function(element,className){if(element){if(element.classList){element.classList.remove(className)}else if(Type.isString(element.className)){element.className=element.className.toString().replace(new RegExp("(^|\\s)"+className.split(" ").join("|")+"(\\s|$)","gi")," ")}else{var currentClass=element.getAttribute(IE<=7?"className":"class")||"";element.setAttribute("class",currentClass.replace(new RegExp("(^|s)"+className.split(" ").join("|")+"(s|$)","gi")," "))}}}},getPropertyValue:function(element,property,rootPropertyValue,forceStyleLookup){function computePropertyValue(element,property){var computedValue=0;if(IE<=8){computedValue=$.css(element,property)}else{var toggleDisplay=false;if(/^(width|height)$/.test(property)&&CSS.getPropertyValue(element,"display")===0){toggleDisplay=true;CSS.setPropertyValue(element,"display",CSS.Values.getDisplayType(element))}var revertDisplay=function(){if(toggleDisplay){CSS.setPropertyValue(element,"display","none")}};if(!forceStyleLookup){if(property==="height"&&CSS.getPropertyValue(element,"boxSizing").toString().toLowerCase()!=="border-box"){var contentBoxHeight=element.offsetHeight-(parseFloat(CSS.getPropertyValue(element,"borderTopWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"borderBottomWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingTop"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingBottom"))||0);revertDisplay();return contentBoxHeight}else if(property==="width"&&CSS.getPropertyValue(element,"boxSizing").toString().toLowerCase()!=="border-box"){var contentBoxWidth=element.offsetWidth-(parseFloat(CSS.getPropertyValue(element,"borderLeftWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"borderRightWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingLeft"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingRight"))||0);revertDisplay();return contentBoxWidth}}var computedStyle;if(Data(element)===undefined){computedStyle=window.getComputedStyle(element,null)}else if(!Data(element).computedStyle){computedStyle=Data(element).computedStyle=window.getComputedStyle(element,null)}else{computedStyle=Data(element).computedStyle}if(property==="borderColor"){property="borderTopColor"}if(IE===9&&property==="filter"){computedValue=computedStyle.getPropertyValue(property)}else{computedValue=computedStyle[property]}if(computedValue===""||computedValue===null){computedValue=element.style[property]}revertDisplay()}if(computedValue==="auto"&&/^(top|right|bottom|left)$/i.test(property)){var position=computePropertyValue(element,"position");if(position==="fixed"||position==="absolute"&&/top|left/i.test(property)){computedValue=$(element).position()[property]+"px"}}return computedValue}var propertyValue;if(CSS.Hooks.registered[property]){var hook=property,hookRoot=CSS.Hooks.getRoot(hook);if(rootPropertyValue===undefined){rootPropertyValue=CSS.getPropertyValue(element,CSS.Names.prefixCheck(hookRoot)[0])}if(CSS.Normalizations.registered[hookRoot]){rootPropertyValue=CSS.Normalizations.registered[hookRoot]("extract",element,rootPropertyValue)}propertyValue=CSS.Hooks.extractValue(hook,rootPropertyValue)}else if(CSS.Normalizations.registered[property]){var normalizedPropertyName,normalizedPropertyValue;normalizedPropertyName=CSS.Normalizations.registered[property]("name",element);if(normalizedPropertyName!=="transform"){normalizedPropertyValue=computePropertyValue(element,CSS.Names.prefixCheck(normalizedPropertyName)[0]);if(CSS.Values.isCSSNullValue(normalizedPropertyValue)&&CSS.Hooks.templates[property]){normalizedPropertyValue=CSS.Hooks.templates[property][1]}}propertyValue=CSS.Normalizations.registered[property]("extract",element,normalizedPropertyValue)}if(!/^[\d-]/.test(propertyValue)){var data=Data(element);if(data&&data.isSVG&&CSS.Names.SVGAttribute(property)){if(/^(height|width)$/i.test(property)){try{propertyValue=element.getBBox()[property]}catch(error){propertyValue=0}}else{propertyValue=element.getAttribute(property)}}else{propertyValue=computePropertyValue(element,CSS.Names.prefixCheck(property)[0])}}if(CSS.Values.isCSSNullValue(propertyValue)){propertyValue=0}if(Velocity.debug>=2){console.log("Get "+property+": "+propertyValue)}return propertyValue},setPropertyValue:function(element,property,propertyValue,rootPropertyValue,scrollData){var propertyName=property;if(property==="scroll"){if(scrollData.container){scrollData.container["scroll"+scrollData.direction]=propertyValue}else{if(scrollData.direction==="Left"){window.scrollTo(propertyValue,scrollData.alternateValue)}else{window.scrollTo(scrollData.alternateValue,propertyValue)}}}else{if(CSS.Normalizations.registered[property]&&CSS.Normalizations.registered[property]("name",element)==="transform"){CSS.Normalizations.registered[property]("inject",element,propertyValue);propertyName="transform";propertyValue=Data(element).transformCache[property]}else{if(CSS.Hooks.registered[property]){var hookName=property,hookRoot=CSS.Hooks.getRoot(property);rootPropertyValue=rootPropertyValue||CSS.getPropertyValue(element,hookRoot);propertyValue=CSS.Hooks.injectValue(hookName,propertyValue,rootPropertyValue);property=hookRoot}if(CSS.Normalizations.registered[property]){propertyValue=CSS.Normalizations.registered[property]("inject",element,propertyValue);property=CSS.Normalizations.registered[property]("name",element)}propertyName=CSS.Names.prefixCheck(property)[0];if(IE<=8){try{element.style[propertyName]=propertyValue}catch(error){if(Velocity.debug){console.log("Browser does not support ["+propertyValue+"] for ["+propertyName+"]")}}}else{var data=Data(element);if(data&&data.isSVG&&CSS.Names.SVGAttribute(property)){element.setAttribute(property,propertyValue)}else{element.style[propertyName]=propertyValue}}if(Velocity.debug>=2){console.log("Set "+property+" ("+propertyName+"): "+propertyValue)}}}return[propertyName,propertyValue]},flushTransformCache:function(element){var transformString="",data=Data(element);if((IE||Velocity.State.isAndroid&&!Velocity.State.isChrome)&&data&&data.isSVG){var getTransformFloat=function(transformProperty){return parseFloat(CSS.getPropertyValue(element,transformProperty))};var SVGTransforms={translate:[getTransformFloat("translateX"),getTransformFloat("translateY")],skewX:[getTransformFloat("skewX")],skewY:[getTransformFloat("skewY")],scale:getTransformFloat("scale")!==1?[getTransformFloat("scale"),getTransformFloat("scale")]:[getTransformFloat("scaleX"),getTransformFloat("scaleY")],rotate:[getTransformFloat("rotateZ"),0,0]};$.each(Data(element).transformCache,function(transformName){if(/^translate/i.test(transformName)){transformName="translate"}else if(/^scale/i.test(transformName)){transformName="scale"}else if(/^rotate/i.test(transformName)){transformName="rotate"}if(SVGTransforms[transformName]){transformString+=transformName+"("+SVGTransforms[transformName].join(" ")+")"+" ";delete SVGTransforms[transformName]}})}else{var transformValue,perspective;$.each(Data(element).transformCache,function(transformName){transformValue=Data(element).transformCache[transformName];if(transformName==="transformPerspective"){perspective=transformValue;return true}if(IE===9&&transformName==="rotateZ"){transformName="rotate"}transformString+=transformName+transformValue+" "});if(perspective){transformString="perspective"+perspective+" "+transformString}}CSS.setPropertyValue(element,"transform",transformString)}};CSS.Hooks.register();CSS.Normalizations.register();Velocity.hook=function(elements,arg2,arg3){var value;elements=sanitizeElements(elements);$.each(elements,function(i,element){if(Data(element)===undefined){Velocity.init(element)}if(arg3===undefined){if(value===undefined){value=CSS.getPropertyValue(element,arg2)}}else{var adjustedSet=CSS.setPropertyValue(element,arg2,arg3);if(adjustedSet[0]==="transform"){Velocity.CSS.flushTransformCache(element)}value=adjustedSet}});return value};var animate=function(){var opts;function getChain(){if(isUtility){return promiseData.promise||null}else{return elementsWrapped}}var syntacticSugar=arguments[0]&&(arguments[0].p||($.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||Type.isString(arguments[0].properties))),isUtility,elementsWrapped,argumentIndex;var elements,propertiesMap,options;if(Type.isWrapped(this)){isUtility=false;argumentIndex=0;elements=this;elementsWrapped=this}else{isUtility=true;argumentIndex=1;elements=syntacticSugar?arguments[0].elements||arguments[0].e:arguments[0]}var promiseData={promise:null,resolver:null,rejecter:null};if(isUtility&&Velocity.Promise){promiseData.promise=new Velocity.Promise(function(resolve,reject){promiseData.resolver=resolve;promiseData.rejecter=reject})}if(syntacticSugar){propertiesMap=arguments[0].properties||arguments[0].p;options=arguments[0].options||arguments[0].o}else{propertiesMap=arguments[argumentIndex];options=arguments[argumentIndex+1]}elements=sanitizeElements(elements);if(!elements){if(promiseData.promise){if(!propertiesMap||!options||options.promiseRejectEmpty!==false){promiseData.rejecter()}else{promiseData.resolver()}}return}var elementsLength=elements.length,elementsIndex=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(propertiesMap)&&!$.isPlainObject(options)){var startingArgumentPosition=argumentIndex+1;options={};for(var i=startingArgumentPosition;i<arguments.length;i++){if(!Type.isArray(arguments[i])&&(/^(fast|normal|slow)$/i.test(arguments[i])||/^\d/.test(arguments[i]))){options.duration=arguments[i]}else if(Type.isString(arguments[i])||Type.isArray(arguments[i])){options.easing=arguments[i]}else if(Type.isFunction(arguments[i])){options.complete=arguments[i]}}}var action;switch(propertiesMap){case"scroll":action="scroll";break;case"reverse":action="reverse";break;case"pause":var currentTime=(new Date).getTime();$.each(elements,function(i,element){pauseDelayOnElement(element,currentTime)});$.each(Velocity.State.calls,function(i,activeCall){var found=false;if(activeCall){$.each(activeCall[1],function(k,activeElement){var queueName=options===undefined?"":options;if(queueName!==true&&activeCall[2].queue!==queueName&&!(options===undefined&&activeCall[2].queue===false)){return true}$.each(elements,function(l,element){if(element===activeElement){activeCall[5]={resume:false};found=true;return false}});if(found){return false}})}});return getChain();case"resume":$.each(elements,function(i,element){resumeDelayOnElement(element,currentTime)});$.each(Velocity.State.calls,function(i,activeCall){var found=false;if(activeCall){$.each(activeCall[1],function(k,activeElement){var queueName=options===undefined?"":options;if(queueName!==true&&activeCall[2].queue!==queueName&&!(options===undefined&&activeCall[2].queue===false)){return true}if(!activeCall[5]){return true}$.each(elements,function(l,element){if(element===activeElement){activeCall[5].resume=true;found=true;return false}});if(found){return false}})}});return getChain();case"finish":case"finishAll":case"stop":$.each(elements,function(i,element){if(Data(element)&&Data(element).delayTimer){clearTimeout(Data(element).delayTimer.setTimeout);if(Data(element).delayTimer.next){Data(element).delayTimer.next()}delete Data(element).delayTimer}if(propertiesMap==="finishAll"&&(options===true||Type.isString(options))){$.each($.queue(element,Type.isString(options)?options:""),function(_,item){if(Type.isFunction(item)){item()}});$.queue(element,Type.isString(options)?options:"",[])}});var callsToStop=[];$.each(Velocity.State.calls,function(i,activeCall){if(activeCall){$.each(activeCall[1],function(k,activeElement){var queueName=options===undefined?"":options;if(queueName!==true&&activeCall[2].queue!==queueName&&!(options===undefined&&activeCall[2].queue===false)){return true}$.each(elements,function(l,element){if(element===activeElement){if(options===true||Type.isString(options)){$.each($.queue(element,Type.isString(options)?options:""),function(_,item){if(Type.isFunction(item)){item(null,true)}});$.queue(element,Type.isString(options)?options:"",[])}if(propertiesMap==="stop"){var data=Data(element);if(data&&data.tweensContainer&&queueName!==false){$.each(data.tweensContainer,function(m,activeTween){activeTween.endValue=activeTween.currentValue})}callsToStop.push(i)}else if(propertiesMap==="finish"||propertiesMap==="finishAll"){activeCall[2].duration=1}}})})}});if(propertiesMap==="stop"){$.each(callsToStop,function(i,j){completeCall(j,true)});if(promiseData.promise){promiseData.resolver(elements)}}return getChain();default:if($.isPlainObject(propertiesMap)&&!Type.isEmptyObject(propertiesMap)){action="start"}else if(Type.isString(propertiesMap)&&Velocity.Redirects[propertiesMap]){opts=$.extend({},options);var durationOriginal=opts.duration,delayOriginal=opts.delay||0;if(opts.backwards===true){elements=$.extend(true,[],elements).reverse()}$.each(elements,function(elementIndex,element){if(parseFloat(opts.stagger)){opts.delay=delayOriginal+parseFloat(opts.stagger)*elementIndex}else if(Type.isFunction(opts.stagger)){opts.delay=delayOriginal+opts.stagger.call(element,elementIndex,elementsLength)}if(opts.drag){opts.duration=parseFloat(durationOriginal)||(/^(callout|transition)/.test(propertiesMap)?1e3:DURATION_DEFAULT);opts.duration=Math.max(opts.duration*(opts.backwards?1-elementIndex/elementsLength:(elementIndex+1)/elementsLength),opts.duration*.75,200)}Velocity.Redirects[propertiesMap].call(element,element,opts||{},elementIndex,elementsLength,elements,promiseData.promise?promiseData:undefined)});return getChain()}else{var abortError="Velocity: First argument ("+propertiesMap+") was not a property map, a known action, or a registered redirect. Aborting.";if(promiseData.promise){promiseData.rejecter(new Error(abortError))}else{console.log(abortError)}return getChain()}}var callUnitConversionData={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null};var call=[];function processElement(element,elementArrayIndex){var opts=$.extend({},Velocity.defaults,options),tweensContainer={},elementUnitConversionData;if(Data(element)===undefined){Velocity.init(element)}if(parseFloat(opts.delay)&&opts.queue!==false){$.queue(element,opts.queue,function(next){Velocity.velocityQueueEntryFlag=true;var callIndex=Velocity.State.delayedElements.count++;Velocity.State.delayedElements[callIndex]=element;var delayComplete=function(index){return function(){Velocity.State.delayedElements[index]=false;next()}}(callIndex);Data(element).delayBegin=(new Date).getTime();Data(element).delay=parseFloat(opts.delay);Data(element).delayTimer={setTimeout:setTimeout(next,parseFloat(opts.delay)),next:delayComplete}})}switch(opts.duration.toString().toLowerCase()){case"fast":opts.duration=200;break;case"normal":opts.duration=DURATION_DEFAULT;break;case"slow":opts.duration=600;break;default:opts.duration=parseFloat(opts.duration)||1}if(Velocity.mock!==false){if(Velocity.mock===true){opts.duration=opts.delay=1}else{opts.duration*=parseFloat(Velocity.mock)||1;opts.delay*=parseFloat(Velocity.mock)||1}}opts.easing=getEasing(opts.easing,opts.duration);if(opts.begin&&!Type.isFunction(opts.begin)){opts.begin=null}if(opts.progress&&!Type.isFunction(opts.progress)){opts.progress=null}if(opts.complete&&!Type.isFunction(opts.complete)){opts.complete=null}if(opts.display!==undefined&&opts.display!==null){opts.display=opts.display.toString().toLowerCase();if(opts.display==="auto"){opts.display=Velocity.CSS.Values.getDisplayType(element)}}if(opts.visibility!==undefined&&opts.visibility!==null){opts.visibility=opts.visibility.toString().toLowerCase()}opts.mobileHA=opts.mobileHA&&Velocity.State.isMobile&&!Velocity.State.isGingerbread;function buildQueue(next){var data,lastTweensContainer;if(opts.begin&&elementsIndex===0){try{opts.begin.call(elements,elements)}catch(error){setTimeout(function(){throw error},1)}}if(action==="scroll"){var scrollDirection=/^x$/i.test(opts.axis)?"Left":"Top",scrollOffset=parseFloat(opts.offset)||0,scrollPositionCurrent,scrollPositionCurrentAlternate,scrollPositionEnd;if(opts.container){if(Type.isWrapped(opts.container)||Type.isNode(opts.container)){opts.container=opts.container[0]||opts.container;scrollPositionCurrent=opts.container["scroll"+scrollDirection];scrollPositionEnd=scrollPositionCurrent+$(element).position()[scrollDirection.toLowerCase()]+scrollOffset}else{opts.container=null}}else{scrollPositionCurrent=Velocity.State.scrollAnchor[Velocity.State["scrollProperty"+scrollDirection]];scrollPositionCurrentAlternate=Velocity.State.scrollAnchor[Velocity.State["scrollProperty"+(scrollDirection==="Left"?"Top":"Left")]];scrollPositionEnd=$(element).offset()[scrollDirection.toLowerCase()]+scrollOffset}tweensContainer={scroll:{rootPropertyValue:false,startValue:scrollPositionCurrent,currentValue:scrollPositionCurrent,endValue:scrollPositionEnd,unitType:"",easing:opts.easing,scrollData:{container:opts.container,direction:scrollDirection,alternateValue:scrollPositionCurrentAlternate}},element:element};if(Velocity.debug){console.log("tweensContainer (scroll): ",tweensContainer.scroll,element)}}else if(action==="reverse"){data=Data(element);if(!data){return}if(!data.tweensContainer){$.dequeue(element,opts.queue);return}else{if(data.opts.display==="none"){data.opts.display="auto"}if(data.opts.visibility==="hidden"){data.opts.visibility="visible"}data.opts.loop=false;data.opts.begin=null;data.opts.complete=null;if(!options.easing){delete opts.easing}if(!options.duration){delete opts.duration}opts=$.extend({},data.opts,opts);lastTweensContainer=$.extend(true,{},data?data.tweensContainer:null);for(var lastTween in lastTweensContainer){if(lastTweensContainer.hasOwnProperty(lastTween)&&lastTween!=="element"){var lastStartValue=lastTweensContainer[lastTween].startValue;lastTweensContainer[lastTween].startValue=lastTweensContainer[lastTween].currentValue=lastTweensContainer[lastTween].endValue;lastTweensContainer[lastTween].endValue=lastStartValue;if(!Type.isEmptyObject(options)){lastTweensContainer[lastTween].easing=opts.easing}if(Velocity.debug){console.log("reverse tweensContainer ("+lastTween+"): "+JSON.stringify(lastTweensContainer[lastTween]),element)}}}tweensContainer=lastTweensContainer}}else if(action==="start"){data=Data(element);if(data&&data.tweensContainer&&data.isAnimating===true){lastTweensContainer=data.tweensContainer}var parsePropertyValue=function(valueData,skipResolvingEasing){var endValue,easing,startValue;if(Type.isFunction(valueData)){valueData=valueData.call(element,elementArrayIndex,elementsLength)}if(Type.isArray(valueData)){endValue=valueData[0];if(!Type.isArray(valueData[1])&&/^[\d-]/.test(valueData[1])||Type.isFunction(valueData[1])||CSS.RegEx.isHex.test(valueData[1])){startValue=valueData[1]}else if(Type.isString(valueData[1])&&!CSS.RegEx.isHex.test(valueData[1])&&Velocity.Easings[valueData[1]]||Type.isArray(valueData[1])){easing=skipResolvingEasing?valueData[1]:getEasing(valueData[1],opts.duration);startValue=valueData[2]}else{startValue=valueData[1]||valueData[2]}}else{endValue=valueData}if(!skipResolvingEasing){easing=easing||opts.easing}if(Type.isFunction(endValue)){endValue=endValue.call(element,elementArrayIndex,elementsLength)}if(Type.isFunction(startValue)){startValue=startValue.call(element,elementArrayIndex,elementsLength)}return[endValue||0,easing,startValue]};var fixPropertyValue=function(property,valueData){var rootProperty=CSS.Hooks.getRoot(property),rootPropertyValue=false,endValue=valueData[0],easing=valueData[1],startValue=valueData[2],pattern;if((!data||!data.isSVG)&&rootProperty!=="tween"&&CSS.Names.prefixCheck(rootProperty)[1]===false&&CSS.Normalizations.registered[rootProperty]===undefined){if(Velocity.debug){console.log("Skipping ["+rootProperty+"] due to a lack of browser support.")}return}if((opts.display!==undefined&&opts.display!==null&&opts.display!=="none"||opts.visibility!==undefined&&opts.visibility!=="hidden")&&/opacity|filter/.test(property)&&!startValue&&endValue!==0){startValue=0}if(opts._cacheValues&&lastTweensContainer&&lastTweensContainer[property]){if(startValue===undefined){startValue=lastTweensContainer[property].endValue+lastTweensContainer[property].unitType}rootPropertyValue=data.rootPropertyValueCache[rootProperty]}else{if(CSS.Hooks.registered[property]){if(startValue===undefined){rootPropertyValue=CSS.getPropertyValue(element,rootProperty);startValue=CSS.getPropertyValue(element,property,rootPropertyValue)}else{rootPropertyValue=CSS.Hooks.templates[rootProperty][1]}}else if(startValue===undefined){startValue=CSS.getPropertyValue(element,property)}}var separatedValue,endValueUnitType,startValueUnitType,operator=false;var separateValue=function(property,value){var unitType,numericValue;numericValue=(value||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(match){unitType=match;return""});if(!unitType){unitType=CSS.Values.getUnitType(property)}return[numericValue,unitType]};if(startValue!==endValue&&Type.isString(startValue)&&Type.isString(endValue)){pattern="";var iStart=0,iEnd=0,aStart=[],aEnd=[],inCalc=0,inRGB=0,inRGBA=0;startValue=CSS.Hooks.fixColors(startValue);endValue=CSS.Hooks.fixColors(endValue);while(iStart<startValue.length&&iEnd<endValue.length){var cStart=startValue[iStart],cEnd=endValue[iEnd];if(/[\d\.]/.test(cStart)&&/[\d\.]/.test(cEnd)){var tStart=cStart,tEnd=cEnd,dotStart=".",dotEnd=".";while(++iStart<startValue.length){cStart=startValue[iStart];if(cStart===dotStart){dotStart=".."}else if(!/\d/.test(cStart)){break}tStart+=cStart}while(++iEnd<endValue.length){cEnd=endValue[iEnd];if(cEnd===dotEnd){dotEnd=".."}else if(!/\d/.test(cEnd)){break}tEnd+=cEnd}var uStart=CSS.Hooks.getUnit(startValue,iStart),uEnd=CSS.Hooks.getUnit(endValue,iEnd);iStart+=uStart.length;iEnd+=uEnd.length;if(uStart===uEnd){if(tStart===tEnd){pattern+=tStart+uStart}else{pattern+="{"+aStart.length+(inRGB?"!":"")+"}"+uStart;aStart.push(parseFloat(tStart));aEnd.push(parseFloat(tEnd))}}else{var nStart=parseFloat(tStart),nEnd=parseFloat(tEnd);pattern+=(inCalc<5?"calc":"")+"("+(nStart?"{"+aStart.length+(inRGB?"!":"")+"}":"0")+uStart+" + "+(nEnd?"{"+(aStart.length+(nStart?1:0))+(inRGB?"!":"")+"}":"0")+uEnd+")";if(nStart){aStart.push(nStart);aEnd.push(0)}if(nEnd){aStart.push(0);aEnd.push(nEnd)}}}else if(cStart===cEnd){pattern+=cStart;iStart++;iEnd++;if(inCalc===0&&cStart==="c"||inCalc===1&&cStart==="a"||inCalc===2&&cStart==="l"||inCalc===3&&cStart==="c"||inCalc>=4&&cStart==="("){inCalc++}else if(inCalc&&inCalc<5||inCalc>=4&&cStart===")"&&--inCalc<5){inCalc=0}if(inRGB===0&&cStart==="r"||inRGB===1&&cStart==="g"||inRGB===2&&cStart==="b"||inRGB===3&&cStart==="a"||inRGB>=3&&cStart==="("){if(inRGB===3&&cStart==="a"){inRGBA=1}inRGB++}else if(inRGBA&&cStart===","){if(++inRGBA>3){inRGB=inRGBA=0}}else if(inRGBA&&inRGB<(inRGBA?5:4)||inRGB>=(inRGBA?4:3)&&cStart===")"&&--inRGB<(inRGBA?5:4)){inRGB=inRGBA=0}}else{inCalc=0;break}}if(iStart!==startValue.length||iEnd!==endValue.length){if(Velocity.debug){console.error('Trying to pattern match mis-matched strings ["'+endValue+'", "'+startValue+'"]')}pattern=undefined}if(pattern){if(aStart.length){if(Velocity.debug){console.log('Pattern found "'+pattern+'" -> ',aStart,aEnd,"["+startValue+","+endValue+"]")}startValue=aStart;endValue=aEnd;endValueUnitType=startValueUnitType=""}else{pattern=undefined}}}if(!pattern){separatedValue=separateValue(property,startValue);startValue=separatedValue[0];startValueUnitType=separatedValue[1];separatedValue=separateValue(property,endValue);endValue=separatedValue[0].replace(/^([+-\/*])=/,function(match,subMatch){operator=subMatch;return""});endValueUnitType=separatedValue[1];startValue=parseFloat(startValue)||0;endValue=parseFloat(endValue)||0;if(endValueUnitType==="%"){if(/^(fontSize|lineHeight)$/.test(property)){endValue=endValue/100;endValueUnitType="em"}else if(/^scale/.test(property)){endValue=endValue/100;endValueUnitType=""}else if(/(Red|Green|Blue)$/i.test(property)){endValue=endValue/100*255;endValueUnitType=""}}}var calculateUnitRatios=function(){var sameRatioIndicators={myParent:element.parentNode||document.body,position:CSS.getPropertyValue(element,"position"),fontSize:CSS.getPropertyValue(element,"fontSize")},samePercentRatio=sameRatioIndicators.position===callUnitConversionData.lastPosition&&sameRatioIndicators.myParent===callUnitConversionData.lastParent,sameEmRatio=sameRatioIndicators.fontSize===callUnitConversionData.lastFontSize;callUnitConversionData.lastParent=sameRatioIndicators.myParent;callUnitConversionData.lastPosition=sameRatioIndicators.position;callUnitConversionData.lastFontSize=sameRatioIndicators.fontSize;var measurement=100,unitRatios={};if(!sameEmRatio||!samePercentRatio){var dummy=data&&data.isSVG?document.createElementNS("http://www.w3.org/2000/svg","rect"):document.createElement("div");Velocity.init(dummy);sameRatioIndicators.myParent.appendChild(dummy);$.each(["overflow","overflowX","overflowY"],function(i,property){Velocity.CSS.setPropertyValue(dummy,property,"hidden")});Velocity.CSS.setPropertyValue(dummy,"position",sameRatioIndicators.position);Velocity.CSS.setPropertyValue(dummy,"fontSize",sameRatioIndicators.fontSize);Velocity.CSS.setPropertyValue(dummy,"boxSizing","content-box");$.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(i,property){Velocity.CSS.setPropertyValue(dummy,property,measurement+"%")});Velocity.CSS.setPropertyValue(dummy,"paddingLeft",measurement+"em");unitRatios.percentToPxWidth=callUnitConversionData.lastPercentToPxWidth=(parseFloat(CSS.getPropertyValue(dummy,"width",null,true))||1)/measurement;unitRatios.percentToPxHeight=callUnitConversionData.lastPercentToPxHeight=(parseFloat(CSS.getPropertyValue(dummy,"height",null,true))||1)/measurement;unitRatios.emToPx=callUnitConversionData.lastEmToPx=(parseFloat(CSS.getPropertyValue(dummy,"paddingLeft"))||1)/measurement;sameRatioIndicators.myParent.removeChild(dummy)}else{unitRatios.emToPx=callUnitConversionData.lastEmToPx;unitRatios.percentToPxWidth=callUnitConversionData.lastPercentToPxWidth;unitRatios.percentToPxHeight=callUnitConversionData.lastPercentToPxHeight}if(callUnitConversionData.remToPx===null){callUnitConversionData.remToPx=parseFloat(CSS.getPropertyValue(document.body,"fontSize"))||16}if(callUnitConversionData.vwToPx===null){callUnitConversionData.vwToPx=parseFloat(window.innerWidth)/100;callUnitConversionData.vhToPx=parseFloat(window.innerHeight)/100}unitRatios.remToPx=callUnitConversionData.remToPx;unitRatios.vwToPx=callUnitConversionData.vwToPx;unitRatios.vhToPx=callUnitConversionData.vhToPx;if(Velocity.debug>=1){console.log("Unit ratios: "+JSON.stringify(unitRatios),element)}return unitRatios};if(/[\/*]/.test(operator)){endValueUnitType=startValueUnitType}else if(startValueUnitType!==endValueUnitType&&startValue!==0){if(endValue===0){endValueUnitType=startValueUnitType}else{elementUnitConversionData=elementUnitConversionData||calculateUnitRatios();var axis=/margin|padding|left|right|width|text|word|letter/i.test(property)||/X$/.test(property)||property==="x"?"x":"y";switch(startValueUnitType){case"%":startValue*=axis==="x"?elementUnitConversionData.percentToPxWidth:elementUnitConversionData.percentToPxHeight;break;case"px":break;default:startValue*=elementUnitConversionData[startValueUnitType+"ToPx"]}switch(endValueUnitType){case"%":startValue*=1/(axis==="x"?elementUnitConversionData.percentToPxWidth:elementUnitConversionData.percentToPxHeight);break;case"px":break;default:startValue*=1/elementUnitConversionData[endValueUnitType+"ToPx"]}}}switch(operator){case"+":endValue=startValue+endValue;break;case"-":endValue=startValue-endValue;break;case"*":endValue=startValue*endValue;break;case"/":endValue=startValue/endValue;break}tweensContainer[property]={rootPropertyValue:rootPropertyValue,startValue:startValue,currentValue:startValue,endValue:endValue,unitType:endValueUnitType,easing:easing};if(pattern){tweensContainer[property].pattern=pattern}if(Velocity.debug){console.log("tweensContainer ("+property+"): "+JSON.stringify(tweensContainer[property]),element)}};for(var property in propertiesMap){if(!propertiesMap.hasOwnProperty(property)){continue}var propertyName=CSS.Names.camelCase(property),valueData=parsePropertyValue(propertiesMap[property]);if(CSS.Lists.colors.indexOf(propertyName)>=0){var endValue=valueData[0],easing=valueData[1],startValue=valueData[2];if(CSS.RegEx.isHex.test(endValue)){var colorComponents=["Red","Green","Blue"],endValueRGB=CSS.Values.hexToRgb(endValue),startValueRGB=startValue?CSS.Values.hexToRgb(startValue):undefined;for(var i=0;i<colorComponents.length;i++){var dataArray=[endValueRGB[i]];if(easing){dataArray.push(easing)}if(startValueRGB!==undefined){dataArray.push(startValueRGB[i])}fixPropertyValue(propertyName+colorComponents[i],dataArray)}continue}}fixPropertyValue(propertyName,valueData)}tweensContainer.element=element}if(tweensContainer.element){CSS.Values.addClass(element,"velocity-animating");call.push(tweensContainer);data=Data(element);if(data){if(opts.queue===""){data.tweensContainer=tweensContainer;data.opts=opts}data.isAnimating=true}if(elementsIndex===elementsLength-1){Velocity.State.calls.push([call,elements,opts,null,promiseData.resolver,null,0]);if(Velocity.State.isTicking===false){Velocity.State.isTicking=true;tick()}}else{elementsIndex++}}}if(opts.queue===false){if(opts.delay){var callIndex=Velocity.State.delayedElements.count++;Velocity.State.delayedElements[callIndex]=element;var delayComplete=function(index){return function(){Velocity.State.delayedElements[index]=false;buildQueue()}}(callIndex);Data(element).delayBegin=(new Date).getTime();Data(element).delay=parseFloat(opts.delay);Data(element).delayTimer={setTimeout:setTimeout(buildQueue,parseFloat(opts.delay)),next:delayComplete}}else{buildQueue()}}else{$.queue(element,opts.queue,function(next,clearQueue){if(clearQueue===true){if(promiseData.promise){promiseData.resolver(elements)}return true}Velocity.velocityQueueEntryFlag=true;buildQueue(next)})}if((opts.queue===""||opts.queue==="fx")&&$.queue(element)[0]!=="inprogress"){$.dequeue(element)}}$.each(elements,function(i,element){if(Type.isNode(element)){processElement(element,i)}});opts=$.extend({},Velocity.defaults,options);opts.loop=parseInt(opts.loop,10);var reverseCallsCount=opts.loop*2-1;if(opts.loop){for(var x=0;x<reverseCallsCount;x++){var reverseOptions={delay:opts.delay,progress:opts.progress};if(x===reverseCallsCount-1){reverseOptions.display=opts.display;reverseOptions.visibility=opts.visibility;reverseOptions.complete=opts.complete}animate(elements,"reverse",reverseOptions)}}return getChain()};Velocity=$.extend(animate,Velocity);Velocity.animate=animate;var ticker=window.requestAnimationFrame||rAFShim;if(!Velocity.State.isMobile&&document.hidden!==undefined){var updateTicker=function(){if(document.hidden){ticker=function(callback){return setTimeout(function(){callback(true)},16)};tick()}else{ticker=window.requestAnimationFrame||rAFShim}};updateTicker();document.addEventListener("visibilitychange",updateTicker)}function tick(timestamp){if(timestamp){var timeCurrent=Velocity.timestamp&&timestamp!==true?timestamp:performance.now();var callsLength=Velocity.State.calls.length;if(callsLength>1e4){Velocity.State.calls=compactSparseArray(Velocity.State.calls);callsLength=Velocity.State.calls.length}for(var i=0;i<callsLength;i++){if(!Velocity.State.calls[i]){continue}var callContainer=Velocity.State.calls[i],call=callContainer[0],opts=callContainer[2],timeStart=callContainer[3],firstTick=!!timeStart,tweenDummyValue=null,pauseObject=callContainer[5],millisecondsEllapsed=callContainer[6];if(!timeStart){timeStart=Velocity.State.calls[i][3]=timeCurrent-16}if(pauseObject){if(pauseObject.resume===true){timeStart=callContainer[3]=Math.round(timeCurrent-millisecondsEllapsed-16);callContainer[5]=null}else{continue}}millisecondsEllapsed=callContainer[6]=timeCurrent-timeStart;var percentComplete=Math.min(millisecondsEllapsed/opts.duration,1);for(var j=0,callLength=call.length;j<callLength;j++){var tweensContainer=call[j],element=tweensContainer.element;if(!Data(element)){continue}var transformPropertyExists=false;if(opts.display!==undefined&&opts.display!==null&&opts.display!=="none"){if(opts.display==="flex"){var flexValues=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];$.each(flexValues,function(i,flexValue){CSS.setPropertyValue(element,"display",flexValue)})}CSS.setPropertyValue(element,"display",opts.display)}if(opts.visibility!==undefined&&opts.visibility!=="hidden"){CSS.setPropertyValue(element,"visibility",opts.visibility)}for(var property in tweensContainer){if(tweensContainer.hasOwnProperty(property)&&property!=="element"){var tween=tweensContainer[property],currentValue,easing=Type.isString(tween.easing)?Velocity.Easings[tween.easing]:tween.easing;if(Type.isString(tween.pattern)){var patternReplace=percentComplete===1?function($0,index,round){var result=tween.endValue[index];return round?Math.round(result):result}:function($0,index,round){var startValue=tween.startValue[index],tweenDelta=tween.endValue[index]-startValue,result=startValue+tweenDelta*easing(percentComplete,opts,tweenDelta);return round?Math.round(result):result};currentValue=tween.pattern.replace(/{(\d+)(!)?}/g,patternReplace)}else if(percentComplete===1){currentValue=tween.endValue}else{var tweenDelta=tween.endValue-tween.startValue;currentValue=tween.startValue+tweenDelta*easing(percentComplete,opts,tweenDelta)}if(!firstTick&&currentValue===tween.currentValue){continue}tween.currentValue=currentValue;if(property==="tween"){tweenDummyValue=currentValue}else{var hookRoot;if(CSS.Hooks.registered[property]){hookRoot=CSS.Hooks.getRoot(property);var rootPropertyValueCache=Data(element).rootPropertyValueCache[hookRoot];if(rootPropertyValueCache){tween.rootPropertyValue=rootPropertyValueCache}}var adjustedSetData=CSS.setPropertyValue(element,property,tween.currentValue+(IE<9&&parseFloat(currentValue)===0?"":tween.unitType),tween.rootPropertyValue,tween.scrollData);if(CSS.Hooks.registered[property]){if(CSS.Normalizations.registered[hookRoot]){Data(element).rootPropertyValueCache[hookRoot]=CSS.Normalizations.registered[hookRoot]("extract",null,adjustedSetData[1])}else{Data(element).rootPropertyValueCache[hookRoot]=adjustedSetData[1]}}if(adjustedSetData[0]==="transform"){transformPropertyExists=true}}}}if(opts.mobileHA){if(Data(element).transformCache.translate3d===undefined){Data(element).transformCache.translate3d="(0px, 0px, 0px)";transformPropertyExists=true}}if(transformPropertyExists){CSS.flushTransformCache(element)}}if(opts.display!==undefined&&opts.display!=="none"){Velocity.State.calls[i][2].display=false}if(opts.visibility!==undefined&&opts.visibility!=="hidden"){Velocity.State.calls[i][2].visibility=false}if(opts.progress){opts.progress.call(callContainer[1],callContainer[1],percentComplete,Math.max(0,timeStart+opts.duration-timeCurrent),timeStart,tweenDummyValue)}if(percentComplete===1){completeCall(i)}}}if(Velocity.State.isTicking){ticker(tick)}}function completeCall(callIndex,isStopped){if(!Velocity.State.calls[callIndex]){return false}var call=Velocity.State.calls[callIndex][0],elements=Velocity.State.calls[callIndex][1],opts=Velocity.State.calls[callIndex][2],resolver=Velocity.State.calls[callIndex][4];var remainingCallsExist=false;for(var i=0,callLength=call.length;i<callLength;i++){var element=call[i].element;if(!isStopped&&!opts.loop){if(opts.display==="none"){CSS.setPropertyValue(element,"display",opts.display)}if(opts.visibility==="hidden"){CSS.setPropertyValue(element,"visibility",opts.visibility)}}var data=Data(element);if(opts.loop!==true&&($.queue(element)[1]===undefined||!/\.velocityQueueEntryFlag/i.test($.queue(element)[1]))){if(data){data.isAnimating=false;data.rootPropertyValueCache={};var transformHAPropertyExists=false;$.each(CSS.Lists.transforms3D,function(i,transformName){var defaultValue=/^scale/.test(transformName)?1:0,currentValue=data.transformCache[transformName];if(data.transformCache[transformName]!==undefined&&new RegExp("^\\("+defaultValue+"[^.]").test(currentValue)){transformHAPropertyExists=true;delete data.transformCache[transformName]}});if(opts.mobileHA){transformHAPropertyExists=true;delete data.transformCache.translate3d}if(transformHAPropertyExists){CSS.flushTransformCache(element)}CSS.Values.removeClass(element,"velocity-animating")}}if(!isStopped&&opts.complete&&!opts.loop&&i===callLength-1){try{opts.complete.call(elements,elements)}catch(error){setTimeout(function(){throw error},1)}}if(resolver&&opts.loop!==true){resolver(elements)}if(data&&opts.loop===true&&!isStopped){$.each(data.tweensContainer,function(propertyName,tweenContainer){if(/^rotate/.test(propertyName)&&(parseFloat(tweenContainer.startValue)-parseFloat(tweenContainer.endValue))%360===0){var oldStartValue=tweenContainer.startValue;tweenContainer.startValue=tweenContainer.endValue;tweenContainer.endValue=oldStartValue}if(/^backgroundPosition/.test(propertyName)&&parseFloat(tweenContainer.endValue)===100&&tweenContainer.unitType==="%"){tweenContainer.endValue=0;tweenContainer.startValue=100}});Velocity(element,"reverse",{loop:true,delay:opts.delay})}if(opts.queue!==false){$.dequeue(element,opts.queue)}}Velocity.State.calls[callIndex]=false;for(var j=0,callsLength=Velocity.State.calls.length;j<callsLength;j++){if(Velocity.State.calls[j]!==false){remainingCallsExist=true;break}}if(remainingCallsExist===false){Velocity.State.isTicking=false;delete Velocity.State.calls;Velocity.State.calls=[]}}global.Velocity=Velocity;if(global!==window){global.fn.velocity=animate;global.fn.velocity.defaults=Velocity.defaults}$.each(["Down","Up"],function(i,direction){Velocity.Redirects["slide"+direction]=function(element,options,elementsIndex,elementsSize,elements,promiseData){var opts=$.extend({},options),begin=opts.begin,complete=opts.complete,inlineValues={},computedValues={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};if(opts.display===undefined){opts.display=direction==="Down"?Velocity.CSS.Values.getDisplayType(element)==="inline"?"inline-block":"block":"none"}opts.begin=function(){if(elementsIndex===0&&begin){begin.call(elements,elements)}for(var property in computedValues){if(!computedValues.hasOwnProperty(property)){continue}inlineValues[property]=element.style[property];var propertyValue=CSS.getPropertyValue(element,property);computedValues[property]=direction==="Down"?[propertyValue,0]:[0,propertyValue]}inlineValues.overflow=element.style.overflow;element.style.overflow="hidden"};opts.complete=function(){for(var property in inlineValues){if(inlineValues.hasOwnProperty(property)){element.style[property]=inlineValues[property]}}if(elementsIndex===elementsSize-1){if(complete){complete.call(elements,elements)}if(promiseData){promiseData.resolver(elements)}}};Velocity(element,computedValues,opts)}});$.each(["In","Out"],function(i,direction){Velocity.Redirects["fade"+direction]=function(element,options,elementsIndex,elementsSize,elements,promiseData){var opts=$.extend({},options),complete=opts.complete,propertiesMap={opacity:direction==="In"?1:0};if(elementsIndex!==0){opts.begin=null}if(elementsIndex!==elementsSize-1){opts.complete=null}else{opts.complete=function(){if(complete){complete.call(elements,elements)}if(promiseData){promiseData.resolver(elements)}}}if(opts.display===undefined){opts.display=direction==="In"?"auto":"none"}Velocity(this,propertiesMap,opts)}});return Velocity}(window.jQuery||window.Zepto||window,window,window?window.document:undefined)});
(function($,undefined){"use strict";var defaults={item:3,autoWidth:false,slideMove:1,slideMargin:10,addClass:"",mode:"slide",useCSS:true,cssEasing:"ease",easing:"linear",speed:400,auto:false,pauseOnHover:false,loop:false,slideEndAnimation:true,pause:2e3,keyPress:false,controls:true,prevHtml:"",nextHtml:"",rtl:false,adaptiveHeight:false,vertical:false,verticalHeight:500,vThumbWidth:100,thumbItem:10,pager:true,gallery:false,galleryMargin:5,thumbMargin:5,currentPagerPosition:"middle",enableTouch:true,enableDrag:true,freeMove:true,swipeThreshold:40,responsive:[],onBeforeStart:function($el){},onSliderLoad:function($el){},onBeforeSlide:function($el,scene){},onAfterSlide:function($el,scene){},onBeforeNextSlide:function($el,scene){},onBeforePrevSlide:function($el,scene){}};$.fn.lightSlider=function(options){if(this.length===0){return this}if(this.length>1){this.each(function(){$(this).lightSlider(options)});return this}var plugin={},settings=$.extend(true,{},defaults,options),settingsTemp={},$el=this;plugin.$el=this;if(settings.mode==="fade"){settings.vertical=false}var $children=$el.children(),windowW=$(window).width(),breakpoint=null,resposiveObj=null,length=0,w=0,on=false,elSize=0,$slide="",scene=0,property=settings.vertical===true?"height":"width",gutter=settings.vertical===true?"margin-bottom":"margin-right",slideValue=0,pagerWidth=0,slideWidth=0,thumbWidth=0,interval=null,isTouch="ontouchstart"in document.documentElement;var refresh={};refresh.chbreakpoint=function(){windowW=$(window).width();if(settings.responsive.length){var item;if(settings.autoWidth===false){item=settings.item}if(windowW<settings.responsive[0].breakpoint){for(var i=0;i<settings.responsive.length;i++){if(windowW<settings.responsive[i].breakpoint){breakpoint=settings.responsive[i].breakpoint;resposiveObj=settings.responsive[i]}}}if(typeof resposiveObj!=="undefined"&&resposiveObj!==null){for(var j in resposiveObj.settings){if(resposiveObj.settings.hasOwnProperty(j)){if(typeof settingsTemp[j]==="undefined"||settingsTemp[j]===null){settingsTemp[j]=settings[j]}settings[j]=resposiveObj.settings[j]}}}if(!$.isEmptyObject(settingsTemp)&&windowW>settings.responsive[0].breakpoint){for(var k in settingsTemp){if(settingsTemp.hasOwnProperty(k)){settings[k]=settingsTemp[k]}}}if(settings.autoWidth===false){if(slideValue>0&&slideWidth>0){if(item!==settings.item){scene=Math.round(slideValue/((slideWidth+settings.slideMargin)*settings.slideMove))}}}}};refresh.calSW=function(){if(settings.autoWidth===false){slideWidth=(elSize-(settings.item*settings.slideMargin-settings.slideMargin))/settings.item}};refresh.calWidth=function(cln){var ln=cln===true?$slide.find(".lslide").length:$children.length;if(settings.autoWidth===false){w=ln*(slideWidth+settings.slideMargin)}else{w=0;for(var i=0;i<ln;i++){w+=parseInt($children.eq(i).width())+settings.slideMargin}}return w};plugin={doCss:function(){var support=function(){var transition=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"];var root=document.documentElement;for(var i=0;i<transition.length;i++){if(transition[i]in root.style){return true}}};if(settings.useCSS&&support()){return true}return false},keyPress:function(){if(settings.keyPress){$(document).on("keyup.lightslider",function(e){if(!$(":focus").is("input, textarea")){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}if(e.keyCode===37){$el.goToPrevSlide()}else if(e.keyCode===39){$el.goToNextSlide()}}})}},controls:function(){if(settings.controls){$el.after('<div class="lSAction"><a class="lSPrev">'+settings.prevHtml+'</a><a class="lSNext">'+settings.nextHtml+"</a></div>");if(!settings.autoWidth){if(length<=settings.item){$slide.find(".lSAction").hide()}}else{if(refresh.calWidth(false)<elSize){$slide.find(".lSAction").hide()}}$slide.find(".lSAction a").on("click",function(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}if($(this).attr("class")==="lSPrev"){$el.goToPrevSlide()}else{$el.goToNextSlide()}return false})}},initialStyle:function(){var $this=this;if(settings.mode==="fade"){settings.autoWidth=false;settings.slideEndAnimation=false}if(settings.auto){settings.slideEndAnimation=false}if(settings.autoWidth){settings.slideMove=1;settings.item=1}if(settings.loop){settings.slideMove=1;settings.freeMove=false}settings.onBeforeStart.call(this,$el);refresh.chbreakpoint();$el.addClass("lightSlider").wrap('<div class="lSSlideOuter '+settings.addClass+'"><div class="lSSlideWrapper"></div></div>');$slide=$el.parent(".lSSlideWrapper");if(settings.rtl===true){$slide.parent().addClass("lSrtl")}if(settings.vertical){$slide.parent().addClass("vertical");elSize=settings.verticalHeight;$slide.css("height",elSize+"px")}else{elSize=$el.outerWidth()}$children.addClass("lslide");if(settings.loop===true&&settings.mode==="slide"){refresh.calSW();refresh.clone=function(){if(refresh.calWidth(true)>elSize){var tWr=0,tI=0;for(var k=0;k<$children.length;k++){tWr+=parseInt($el.find(".lslide").eq(k).width())+settings.slideMargin;tI++;if(tWr>=elSize+settings.slideMargin){break}}var tItem=settings.autoWidth===true?tI:settings.item;if(tItem<$el.find(".clone.left").length){for(var i=0;i<$el.find(".clone.left").length-tItem;i++){$children.eq(i).remove()}}if(tItem<$el.find(".clone.right").length){for(var j=$children.length-1;j>$children.length-1-$el.find(".clone.right").length;j--){scene--;$children.eq(j).remove()}}for(var n=$el.find(".clone.right").length;n<tItem;n++){$el.find(".lslide").eq(n).clone().removeClass("lslide").addClass("clone right").appendTo($el);scene++}for(var m=$el.find(".lslide").length-$el.find(".clone.left").length;m>$el.find(".lslide").length-tItem;m--){$el.find(".lslide").eq(m-1).clone().removeClass("lslide").addClass("clone left").prependTo($el)}$children=$el.children()}else{if($children.hasClass("clone")){$el.find(".clone").remove();$this.move($el,0)}}};refresh.clone()}refresh.sSW=function(){length=$children.length;if(settings.rtl===true&&settings.vertical===false){gutter="margin-left"}if(settings.autoWidth===false){$children.css(property,slideWidth+"px")}$children.css(gutter,settings.slideMargin+"px");w=refresh.calWidth(false);$el.css(property,w+"px");if(settings.loop===true&&settings.mode==="slide"){if(on===false){scene=$el.find(".clone.left").length}}};refresh.calL=function(){$children=$el.children();length=$children.length};if(this.doCss()){$slide.addClass("usingCss")}refresh.calL();if(settings.mode==="slide"){refresh.calSW();refresh.sSW();if(settings.loop===true){slideValue=$this.slideValue();this.move($el,slideValue)}if(settings.vertical===false){this.setHeight($el,false)}}else{this.setHeight($el,true);$el.addClass("lSFade");if(!this.doCss()){$children.fadeOut(0);$children.eq(scene).fadeIn(0)}}if(settings.loop===true&&settings.mode==="slide"){$children.eq(scene).addClass("active")}else{$children.first().addClass("active")}},pager:function(){var $this=this;refresh.createPager=function(){thumbWidth=(elSize-(settings.thumbItem*settings.thumbMargin-settings.thumbMargin))/settings.thumbItem;var $children=$slide.find(".lslide");var length=$slide.find(".lslide").length;var i=0,pagers="",v=0;for(i=0;i<length;i++){if(settings.mode==="slide"){if(!settings.autoWidth){v=i*((slideWidth+settings.slideMargin)*settings.slideMove)}else{v+=(parseInt($children.eq(i).width())+settings.slideMargin)*settings.slideMove}}var thumb=$children.eq(i*settings.slideMove).attr("data-thumb");if(settings.gallery===true){pagers+='<li style="width:100%;'+property+":"+thumbWidth+"px;"+gutter+":"+settings.thumbMargin+'px"><a href="#"><img src="'+thumb+'" /></a></li>'}else{pagers+='<li><a href="#">'+(i+1)+"</a></li>"}if(settings.mode==="slide"){if(v>=w-elSize-settings.slideMargin){i=i+1;var minPgr=2;if(settings.autoWidth){pagers+='<li><a href="#">'+(i+1)+"</a></li>";minPgr=1}if(i<minPgr){pagers=null;$slide.parent().addClass("noPager")}else{$slide.parent().removeClass("noPager")}break}}}var $cSouter=$slide.parent();$cSouter.find(".lSPager").html(pagers);if(settings.gallery===true){if(settings.vertical===true){$cSouter.find(".lSPager").css("width",settings.vThumbWidth+"px")}pagerWidth=i*(settings.thumbMargin+thumbWidth)+.5;$cSouter.find(".lSPager").css({property:pagerWidth+"px","transition-duration":settings.speed+"ms"});if(settings.vertical===true){$slide.parent().css("padding-right",settings.vThumbWidth+settings.galleryMargin+"px")}$cSouter.find(".lSPager").css(property,pagerWidth+"px")}var $pager=$cSouter.find(".lSPager").find("li");$pager.first().addClass("active");$pager.on("click",function(){if(settings.loop===true&&settings.mode==="slide"){scene=scene+($pager.index(this)-$cSouter.find(".lSPager").find("li.active").index())}else{scene=$pager.index(this)}$el.mode(false);if(settings.gallery===true){$this.slideThumb()}return false})};if(settings.pager){var cl="lSpg";if(settings.gallery){cl="lSGallery"}$slide.after('<ul class="lSPager '+cl+'"></ul>');var gMargin=settings.vertical?"margin-left":"margin-top";$slide.parent().find(".lSPager").css(gMargin,settings.galleryMargin+"px");refresh.createPager()}setTimeout(function(){refresh.init()},0)},setHeight:function(ob,fade){var obj=null,$this=this;if(settings.loop){obj=ob.children(".lslide ").first()}else{obj=ob.children().first()}var setCss=function(){var tH=obj.outerHeight(),tP=0,tHT=tH;if(fade){tH=0;tP=tHT*100/elSize}ob.css({height:tH+"px","padding-bottom":tP+"%"})};setCss();if(obj.find("img").length){if(obj.find("img")[0].complete){setCss();if(!interval){$this.auto()}}else{obj.find("img").on("load",function(){setTimeout(function(){setCss();if(!interval){$this.auto()}},100)})}}else{if(!interval){$this.auto()}}},active:function(ob,t){if(this.doCss()&&settings.mode==="fade"){$slide.addClass("on")}var sc=0;if(scene*settings.slideMove<length){ob.removeClass("active");if(!this.doCss()&&settings.mode==="fade"&&t===false){ob.fadeOut(settings.speed)}if(t===true){sc=scene}else{sc=scene*settings.slideMove}var l,nl;if(t===true){l=ob.length;nl=l-1;if(sc+1>=l){sc=nl}}if(settings.loop===true&&settings.mode==="slide"){if(t===true){sc=scene-$el.find(".clone.left").length}else{sc=scene*settings.slideMove}if(t===true){l=ob.length;nl=l-1;if(sc+1===l){sc=nl}else if(sc+1>l){sc=0}}}if(!this.doCss()&&settings.mode==="fade"&&t===false){ob.eq(sc).fadeIn(settings.speed)}ob.eq(sc).addClass("active")}else{ob.removeClass("active");ob.eq(ob.length-1).addClass("active");if(!this.doCss()&&settings.mode==="fade"&&t===false){ob.fadeOut(settings.speed);ob.eq(sc).fadeIn(settings.speed)}}},move:function(ob,v){if(settings.rtl===true){v=-v}if(this.doCss()){if(settings.vertical===true){ob.css({transform:"translate3d(0px, "+-v+"px, 0px)","-webkit-transform":"translate3d(0px, "+-v+"px, 0px)"})}else{ob.css({transform:"translate3d("+-v+"px, 0px, 0px)","-webkit-transform":"translate3d("+-v+"px, 0px, 0px)"})}}else{if(settings.vertical===true){ob.css("position","relative").animate({top:-v+"px"},settings.speed,settings.easing)}else{ob.css("position","relative").animate({left:-v+"px"},settings.speed,settings.easing)}}var $thumb=$slide.parent().find(".lSPager").find("li");this.active($thumb,true)},fade:function(){this.active($children,false);var $thumb=$slide.parent().find(".lSPager").find("li");this.active($thumb,true)},slide:function(){var $this=this;refresh.calSlide=function(){if(w>elSize){slideValue=$this.slideValue();$this.active($children,false);if(slideValue>w-elSize-settings.slideMargin){slideValue=w-elSize-settings.slideMargin}else if(slideValue<0){slideValue=0}$this.move($el,slideValue);if(settings.loop===true&&settings.mode==="slide"){if(scene>=length-$el.find(".clone.left").length/settings.slideMove){$this.resetSlide($el.find(".clone.left").length)}if(scene===0){$this.resetSlide($slide.find(".lslide").length)}}}};refresh.calSlide()},resetSlide:function(s){var $this=this;$slide.find(".lSAction a").addClass("disabled");setTimeout(function(){scene=s;$slide.css("transition-duration","0ms");slideValue=$this.slideValue();$this.active($children,false);plugin.move($el,slideValue);setTimeout(function(){$slide.css("transition-duration",settings.speed+"ms");$slide.find(".lSAction a").removeClass("disabled")},50)},settings.speed+100)},slideValue:function(){var _sV=0;if(settings.autoWidth===false){_sV=scene*((slideWidth+settings.slideMargin)*settings.slideMove)}else{_sV=0;for(var i=0;i<scene;i++){_sV+=parseInt($children.eq(i).width())+settings.slideMargin}}return _sV},slideThumb:function(){var position;switch(settings.currentPagerPosition){case"left":position=0;break;case"middle":position=elSize/2-thumbWidth/2;break;case"right":position=elSize-thumbWidth}var sc=scene-$el.find(".clone.left").length;var $pager=$slide.parent().find(".lSPager");if(settings.mode==="slide"&&settings.loop===true){if(sc>=$pager.children().length){sc=0}else if(sc<0){sc=$pager.children().length}}var thumbSlide=sc*(thumbWidth+settings.thumbMargin)-position;if(thumbSlide+elSize>pagerWidth){thumbSlide=pagerWidth-elSize-settings.thumbMargin}if(thumbSlide<0){thumbSlide=0}this.move($pager,thumbSlide)},auto:function(){if(settings.auto){clearInterval(interval);interval=setInterval(function(){$el.goToNextSlide()},settings.pause)}},pauseOnHover:function(){var $this=this;if(settings.auto&&settings.pauseOnHover){$slide.on("mouseenter",function(){$(this).addClass("ls-hover");$el.pause();settings.auto=true});$slide.on("mouseleave",function(){$(this).removeClass("ls-hover");if(!$slide.find(".lightSlider").hasClass("lsGrabbing")){$this.auto()}})}},touchMove:function(endCoords,startCoords){$slide.css("transition-duration","0ms");if(settings.mode==="slide"){var distance=endCoords-startCoords;var swipeVal=slideValue-distance;if(swipeVal>=w-elSize-settings.slideMargin){if(settings.freeMove===false){swipeVal=w-elSize-settings.slideMargin}else{var swipeValT=w-elSize-settings.slideMargin;swipeVal=swipeValT+(swipeVal-swipeValT)/5}}else if(swipeVal<0){if(settings.freeMove===false){swipeVal=0}else{swipeVal=swipeVal/5}}this.move($el,swipeVal)}},touchEnd:function(distance){$slide.css("transition-duration",settings.speed+"ms");if(settings.mode==="slide"){var mxVal=false;var _next=true;slideValue=slideValue-distance;if(slideValue>w-elSize-settings.slideMargin){slideValue=w-elSize-settings.slideMargin;if(settings.autoWidth===false){mxVal=true}}else if(slideValue<0){slideValue=0}var gC=function(next){var ad=0;if(!mxVal){if(next){ad=1}}if(!settings.autoWidth){var num=slideValue/((slideWidth+settings.slideMargin)*settings.slideMove);scene=parseInt(num)+ad;if(slideValue>=w-elSize-settings.slideMargin){if(num%1!==0){scene++}}}else{var tW=0;for(var i=0;i<$children.length;i++){tW+=parseInt($children.eq(i).width())+settings.slideMargin;scene=i+ad;if(tW>=slideValue){break}}}};if(distance>=settings.swipeThreshold){gC(false);_next=false}else if(distance<=-settings.swipeThreshold){gC(true);_next=false}$el.mode(_next);this.slideThumb()}else{if(distance>=settings.swipeThreshold){$el.goToPrevSlide()}else if(distance<=-settings.swipeThreshold){$el.goToNextSlide()}}},enableDrag:function(){var $this=this;if(!isTouch){var startCoords=0,endCoords=0,isDraging=false;$slide.find(".lightSlider").addClass("lsGrab");$slide.on("mousedown",function(e){if(w<elSize){if(w!==0){return false}}if($(e.target).attr("class")!=="lSPrev"&&$(e.target).attr("class")!=="lSNext"){startCoords=settings.vertical===true?e.pageY:e.pageX;isDraging=true;if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}$slide.scrollLeft+=1;$slide.scrollLeft-=1;$slide.find(".lightSlider").removeClass("lsGrab").addClass("lsGrabbing");clearInterval(interval)}});$(window).on("mousemove",function(e){if(isDraging){endCoords=settings.vertical===true?e.pageY:e.pageX;$this.touchMove(endCoords,startCoords)}});$(window).on("mouseup",function(e){if(isDraging){$slide.find(".lightSlider").removeClass("lsGrabbing").addClass("lsGrab");isDraging=false;endCoords=settings.vertical===true?e.pageY:e.pageX;var distance=endCoords-startCoords;if(Math.abs(distance)>=settings.swipeThreshold){$(window).on("click.ls",function(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}e.stopImmediatePropagation();e.stopPropagation();$(window).off("click.ls")})}$this.touchEnd(distance)}})}},enableTouch:function(){var $this=this;if(isTouch){var startCoords={},endCoords={};$slide.on("touchstart",function(e){endCoords=e.originalEvent.targetTouches[0];startCoords.pageX=e.originalEvent.targetTouches[0].pageX;startCoords.pageY=e.originalEvent.targetTouches[0].pageY;clearInterval(interval)});$slide.on("touchmove",function(e){if(w<elSize){if(w!==0){return false}}var orig=e.originalEvent;endCoords=orig.targetTouches[0];var xMovement=Math.abs(endCoords.pageX-startCoords.pageX);var yMovement=Math.abs(endCoords.pageY-startCoords.pageY);if(settings.vertical===true){if(yMovement*3>xMovement){e.preventDefault()}$this.touchMove(endCoords.pageY,startCoords.pageY)}else{if(xMovement*3>yMovement){e.preventDefault()}$this.touchMove(endCoords.pageX,startCoords.pageX)}});$slide.on("touchend",function(){if(w<elSize){if(w!==0){return false}}var distance;if(settings.vertical===true){distance=endCoords.pageY-startCoords.pageY}else{distance=endCoords.pageX-startCoords.pageX}$this.touchEnd(distance)})}},build:function(){var $this=this;$this.initialStyle();if(this.doCss()){if(settings.enableTouch===true){$this.enableTouch()}if(settings.enableDrag===true){$this.enableDrag()}}$(window).on("focus",function(){$this.auto()});$(window).on("blur",function(){clearInterval(interval)});$this.pager();$this.pauseOnHover();$this.controls();$this.keyPress()}};plugin.build();refresh.init=function(){refresh.chbreakpoint();if(settings.vertical===true){if(settings.item>1){elSize=settings.verticalHeight}else{elSize=$children.outerHeight()}$slide.css("height",elSize+"px")}else{elSize=$slide.outerWidth()}if(settings.loop===true&&settings.mode==="slide"){refresh.clone()}refresh.calL();if(settings.mode==="slide"){$el.removeClass("lSSlide")}if(settings.mode==="slide"){refresh.calSW();refresh.sSW()}setTimeout(function(){if(settings.mode==="slide"){$el.addClass("lSSlide")}},1e3);if(settings.pager){refresh.createPager()}if(settings.adaptiveHeight===true&&settings.vertical===false){$el.css("height",$children.eq(scene).outerHeight(true))}if(settings.adaptiveHeight===false){if(settings.mode==="slide"){if(settings.vertical===false){plugin.setHeight($el,false)}else{plugin.auto()}}else{plugin.setHeight($el,true)}}if(settings.gallery===true){plugin.slideThumb()}if(settings.mode==="slide"){plugin.slide()}if(settings.autoWidth===false){if($children.length<=settings.item){$slide.find(".lSAction").hide()}else{$slide.find(".lSAction").show()}}else{if(refresh.calWidth(false)<elSize&&w!==0){$slide.find(".lSAction").hide()}else{$slide.find(".lSAction").show()}}};$el.goToPrevSlide=function(){if(scene>0){settings.onBeforePrevSlide.call(this,$el,scene);scene--;$el.mode(false);if(settings.gallery===true){plugin.slideThumb()}}else{if(settings.loop===true){settings.onBeforePrevSlide.call(this,$el,scene);if(settings.mode==="fade"){var l=length-1;scene=parseInt(l/settings.slideMove)}$el.mode(false);if(settings.gallery===true){plugin.slideThumb()}}else if(settings.slideEndAnimation===true){$el.addClass("leftEnd");setTimeout(function(){$el.removeClass("leftEnd")},400)}}};$el.goToNextSlide=function(){var nextI=true;if(settings.mode==="slide"){var _slideValue=plugin.slideValue();nextI=_slideValue<w-elSize-settings.slideMargin}if(scene*settings.slideMove<length-settings.slideMove&&nextI){settings.onBeforeNextSlide.call(this,$el,scene);scene++;$el.mode(false);if(settings.gallery===true){plugin.slideThumb()}}else{if(settings.loop===true){settings.onBeforeNextSlide.call(this,$el,scene);scene=0;$el.mode(false);if(settings.gallery===true){plugin.slideThumb()}}else if(settings.slideEndAnimation===true){$el.addClass("rightEnd");setTimeout(function(){$el.removeClass("rightEnd")},400)}}};$el.mode=function(_touch){if(settings.adaptiveHeight===true&&settings.vertical===false){$el.css("height",$children.eq(scene).outerHeight(true))}if(on===false){if(settings.mode==="slide"){if(plugin.doCss()){$el.addClass("lSSlide");if(settings.speed!==""){$slide.css("transition-duration",settings.speed+"ms")}if(settings.cssEasing!==""){$slide.css("transition-timing-function",settings.cssEasing)}}}else{if(plugin.doCss()){if(settings.speed!==""){$el.css("transition-duration",settings.speed+"ms")}if(settings.cssEasing!==""){$el.css("transition-timing-function",settings.cssEasing)}}}}if(!_touch){settings.onBeforeSlide.call(this,$el,scene)}if(settings.mode==="slide"){plugin.slide()}else{plugin.fade()}if(!$slide.hasClass("ls-hover")){plugin.auto()}setTimeout(function(){if(!_touch){settings.onAfterSlide.call(this,$el,scene)}},settings.speed);on=true};$el.play=function(){$el.goToNextSlide();settings.auto=true;plugin.auto()};$el.pause=function(){settings.auto=false;clearInterval(interval)};$el.refresh=function(){refresh.init()};$el.getCurrentSlideCount=function(){var sc=scene;if(settings.loop){var ln=$slide.find(".lslide").length,cl=$el.find(".clone.left").length;if(scene<=cl-1){sc=ln+(scene-cl)}else if(scene>=ln+cl){sc=scene-ln-cl}else{sc=scene-cl}}return sc+1};$el.getTotalSlideCount=function(){return $slide.find(".lslide").length};$el.goToSlide=function(s){if(settings.loop){scene=s+$el.find(".clone.left").length-1}else{scene=s}$el.mode(false);if(settings.gallery===true){plugin.slideThumb()}};$el.destroy=function(){if($el.lightSlider){$el.goToPrevSlide=function(){};$el.goToNextSlide=function(){};$el.mode=function(){};$el.play=function(){};$el.pause=function(){};$el.refresh=function(){};$el.getCurrentSlideCount=function(){};$el.getTotalSlideCount=function(){};$el.goToSlide=function(){};$el.lightSlider=null;refresh={init:function(){}};$el.parent().parent().find(".lSAction, .lSPager").remove();$el.removeClass("lightSlider lSFade lSSlide lsGrab lsGrabbing leftEnd right").removeAttr("style").unwrap().unwrap();$el.children().removeAttr("style");$children.removeClass("lslide active");$el.find(".clone").remove();$children=null;interval=null;on=false;scene=0}};setTimeout(function(){settings.onSliderLoad.call(this,$el)},10);$(window).on("resize orientationchange",function(e){setTimeout(function(){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}refresh.init()},200)});return this}})(jQuery);
(function(root,doc,factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){factory($,root,doc);return $.mobile})}else{factory(root.jQuery,root,doc)}})(this,document,function(jQuery,window,document,undefined){(function(factory){if(typeof define==="function"&&define.amd){define("vmouse",["jquery"],factory)}else{factory(jQuery)}})(function($){var dataPropertyName="virtualMouseBindings",touchTargetPropertyName="virtualTouchID",touchEventProps="clientX clientY pageX pageY screenX screenY".split(" "),virtualEventNames="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),generalProps=("altKey bubbles cancelable ctrlKey currentTarget detail eventPhase "+"metaKey relatedTarget shiftKey target timeStamp view which").split(" "),mouseHookProps=$.event.mouseHooks?$.event.mouseHooks.props:[],mouseEventProps=generalProps.concat(mouseHookProps),activeDocHandlers={},resetTimerID=0,startX=0,startY=0,didScroll=false,clickBlockList=[],blockMouseTriggers=false,blockTouchTriggers=false,eventCaptureSupported="addEventListener"in document,$document=$(document),nextTouchID=1,lastTouchID=0,threshold,i;$.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500,maximumTimeBetweenTouches:100};function getNativeEvent(event){while(event&&typeof event.originalEvent!=="undefined"){event=event.originalEvent}return event}function createVirtualEvent(event,eventType){var t=event.type,oe,props,ne,prop,ct,touch,i,j,len;event=$.Event(event);event.type=eventType;oe=event.originalEvent;props=generalProps;if(t.search(/^(mouse|click)/)>-1){props=mouseEventProps}if(oe){for(i=props.length;i;){prop=props[--i];event[prop]=oe[prop]}}if(t.search(/mouse(down|up)|click/)>-1&&!event.which){event.which=1}if(t.search(/^touch/)!==-1){ne=getNativeEvent(oe);t=ne.touches;ct=ne.changedTouches;touch=t&&t.length?t[0]:ct&&ct.length?ct[0]:undefined;if(touch){for(j=0,len=touchEventProps.length;j<len;j++){prop=touchEventProps[j];event[prop]=touch[prop]}}}return event}function getVirtualBindingFlags(element){var flags={},b,k;while(element){b=$.data(element,dataPropertyName);for(k in b){if(b[k]){flags[k]=flags.hasVirtualBinding=true}}element=element.parentNode}return flags}function getClosestElementWithVirtualBinding(element,eventType){var b;while(element){b=$.data(element,dataPropertyName);if(b&&(!eventType||b[eventType])){return element}element=element.parentNode}return null}function enableTouchBindings(){blockTouchTriggers=false}function disableTouchBindings(){blockTouchTriggers=true}function enableMouseBindings(){lastTouchID=0;clickBlockList.length=0;blockMouseTriggers=false;disableTouchBindings()}function disableMouseBindings(){enableTouchBindings()}function clearResetTimer(){if(resetTimerID){clearTimeout(resetTimerID);resetTimerID=0}}function startResetTimer(){clearResetTimer();resetTimerID=setTimeout(function(){resetTimerID=0;enableMouseBindings()},$.vmouse.resetTimerDuration)}function triggerVirtualEvent(eventType,event,flags){var ve;if(flags&&flags[eventType]||!flags&&getClosestElementWithVirtualBinding(event.target,eventType)){ve=createVirtualEvent(event,eventType);$(event.target).trigger(ve)}return ve}function mouseEventCallback(event){var touchID=$.data(event.target,touchTargetPropertyName),ve;if(event.type==="click"&&$.data(event.target,"lastTouchType")==="touchstart"){setTimeout(function(){if($.data(event.target,"lastTouchType")==="touchstart"){enableMouseBindings();delete $.data(event.target).lastTouchType;mouseEventCallback(event)}},$.vmouse.maximumTimeBetweenTouches)}if(!blockMouseTriggers&&(!lastTouchID||lastTouchID!==touchID)){ve=triggerVirtualEvent("v"+event.type,event);if(ve){if(ve.isDefaultPrevented()){event.preventDefault()}if(ve.isPropagationStopped()){event.stopPropagation()}if(ve.isImmediatePropagationStopped()){event.stopImmediatePropagation()}}}}function handleTouchStart(event){var touches=getNativeEvent(event).touches,target,flags,t;if(touches&&touches.length===1){target=event.target;flags=getVirtualBindingFlags(target);$.data(event.target,"lastTouchType",event.type);if(flags.hasVirtualBinding){lastTouchID=nextTouchID++;$.data(target,touchTargetPropertyName,lastTouchID);clearResetTimer();disableMouseBindings();didScroll=false;t=getNativeEvent(event).touches[0];startX=t.pageX;startY=t.pageY;triggerVirtualEvent("vmouseover",event,flags);triggerVirtualEvent("vmousedown",event,flags)}}}function handleScroll(event){if(blockTouchTriggers){return}if(!didScroll){triggerVirtualEvent("vmousecancel",event,getVirtualBindingFlags(event.target))}$.data(event.target,"lastTouchType",event.type);didScroll=true;startResetTimer()}function handleTouchMove(event){if(blockTouchTriggers){return}var t=getNativeEvent(event).touches[0],didCancel=didScroll,moveThreshold=$.vmouse.moveDistanceThreshold,flags=getVirtualBindingFlags(event.target);$.data(event.target,"lastTouchType",event.type);didScroll=didScroll||(Math.abs(t.pageX-startX)>moveThreshold||Math.abs(t.pageY-startY)>moveThreshold);if(didScroll&&!didCancel){triggerVirtualEvent("vmousecancel",event,flags)}triggerVirtualEvent("vmousemove",event,flags);startResetTimer()}function handleTouchEnd(event){if(blockTouchTriggers||$.data(event.target,"lastTouchType")===undefined){return}disableTouchBindings();delete $.data(event.target).lastTouchType;var flags=getVirtualBindingFlags(event.target),ve,t;triggerVirtualEvent("vmouseup",event,flags);if(!didScroll){ve=triggerVirtualEvent("vclick",event,flags);if(ve&&ve.isDefaultPrevented()){t=getNativeEvent(event).changedTouches[0];clickBlockList.push({touchID:lastTouchID,x:t.clientX,y:t.clientY});blockMouseTriggers=true}}triggerVirtualEvent("vmouseout",event,flags);didScroll=false;startResetTimer()}function hasVirtualBindings(ele){var bindings=$.data(ele,dataPropertyName),k;if(bindings){for(k in bindings){if(bindings[k]){return true}}}return false}function dummyMouseHandler(){}function getSpecialEventObject(eventType){var realType=eventType.substr(1);return{setup:function(){if(!hasVirtualBindings(this)){$.data(this,dataPropertyName,{})}var bindings=$.data(this,dataPropertyName);bindings[eventType]=true;activeDocHandlers[eventType]=(activeDocHandlers[eventType]||0)+1;if(activeDocHandlers[eventType]===1){$document.bind(realType,mouseEventCallback)}$(this).bind(realType,dummyMouseHandler);if(eventCaptureSupported){activeDocHandlers["touchstart"]=(activeDocHandlers["touchstart"]||0)+1;if(activeDocHandlers["touchstart"]===1){$document.bind("touchstart",handleTouchStart).bind("touchend",handleTouchEnd).bind("touchmove",handleTouchMove).bind("scroll",handleScroll)}}},teardown:function(){--activeDocHandlers[eventType];if(!activeDocHandlers[eventType]){$document.unbind(realType,mouseEventCallback)}if(eventCaptureSupported){--activeDocHandlers["touchstart"];if(!activeDocHandlers["touchstart"]){$document.unbind("touchstart",handleTouchStart).unbind("touchmove",handleTouchMove).unbind("touchend",handleTouchEnd).unbind("scroll",handleScroll)}}var $this=$(this),bindings=$.data(this,dataPropertyName);if(bindings){bindings[eventType]=false}$this.unbind(realType,dummyMouseHandler);if(!hasVirtualBindings(this)){$this.removeData(dataPropertyName)}}}}for(i=0;i<virtualEventNames.length;i++){$.event.special[virtualEventNames[i]]=getSpecialEventObject(virtualEventNames[i])}if(eventCaptureSupported){document.addEventListener("click",function(e){var cnt=clickBlockList.length,target=e.target,x,y,ele,i,o,touchID;if(cnt){x=e.clientX;y=e.clientY;threshold=$.vmouse.clickDistanceThreshold;ele=target;while(ele){for(i=0;i<cnt;i++){o=clickBlockList[i];touchID=0;if(ele===target&&Math.abs(o.x-x)<threshold&&Math.abs(o.y-y)<threshold||$.data(ele,touchTargetPropertyName)===o.touchID){e.preventDefault();e.stopPropagation();return}}ele=ele.parentNode}}},true)}});(function(factory){if(typeof define==="function"&&define.amd){define("ns",["jquery"],factory)}else{factory(jQuery)}})(function($){$.mobile={version:"@VERSION"};return $.mobile});(function(factory){if(typeof define==="function"&&define.amd){define("support/touch",["jquery","../ns"],factory)}else{factory(jQuery)}})(function($){var support={touch:"ontouchend"in document};$.mobile.support=$.mobile.support||{};$.extend($.support,support);$.extend($.mobile.support,support);return $.support});(function(factory){if(typeof define==="function"&&define.amd){define("events/touch",["jquery","../vmouse","../support/touch"],factory)}else{factory(jQuery)}})(function($){var $document=$(document),supportTouch=$.mobile.support.touch,touchStartEvent=supportTouch?"touchstart":"mousedown",touchStopEvent=supportTouch?"touchend":"mouseup",touchMoveEvent=supportTouch?"touchmove":"mousemove";$.each(("touchstart touchmove touchend "+"tap taphold "+"swipe swipeleft swiperight").split(" "),function(i,name){$.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});function triggerCustomEvent(obj,eventType,event,bubble){var originalType=event.type;event.type=eventType;if(bubble){$.event.trigger(event,undefined,obj)}else{$.event.dispatch.call(obj,event)}event.type=originalType}$.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:true,setup:function(){var thisObject=this,$this=$(thisObject),isTaphold=false;$this.bind("vmousedown",function(event){isTaphold=false;if(event.which&&event.which!==1){return true}var origTarget=event.target,timer,clickHandler;function clearTapTimer(){if(timer){$this.bind("vclick",clickHandler);clearTimeout(timer)}}function clearTapHandlers(){clearTapTimer();$this.unbind("vclick",clickHandler).unbind("vmouseup",clearTapTimer);$document.unbind("vmousecancel",clearTapHandlers)}clickHandler=function(event){clearTapHandlers();if(!isTaphold&&origTarget===event.target){triggerCustomEvent(thisObject,"tap",event)}else if(isTaphold){event.preventDefault()}};$this.bind("vmouseup",clearTapTimer);$document.bind("vmousecancel",clearTapHandlers);timer=setTimeout(function(){if(!$.event.special.tap.emitTapOnTaphold){isTaphold=true}timer=0;triggerCustomEvent(thisObject,"taphold",$.Event("taphold",{target:origTarget}))},$.event.special.tap.tapholdThreshold)})},teardown:function(){$(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup");$document.unbind("vmousecancel")}};$.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:window.devicePixelRatio>=2?15:30,verticalDistanceThreshold:window.devicePixelRatio>=2?15:30,getLocation:function(event){var winPageX=window.pageXOffset,winPageY=window.pageYOffset,x=event.clientX,y=event.clientY;if(event.pageY===0&&Math.floor(y)>Math.floor(event.pageY)||event.pageX===0&&Math.floor(x)>Math.floor(event.pageX)){x=x-winPageX;y=y-winPageY}else if(y<event.pageY-winPageY||x<event.pageX-winPageX){x=event.pageX-winPageX;y=event.pageY-winPageY}return{x:x,y:y}},start:function(event){var data=event.originalEvent.touches?event.originalEvent.touches[0]:event,location=$.event.special.swipe.getLocation(data);return{time:(new Date).getTime(),coords:[location.x,location.y],origin:$(event.target)}},stop:function(event){var data=event.originalEvent.touches?event.originalEvent.touches[0]:event,location=$.event.special.swipe.getLocation(data);return{time:(new Date).getTime(),coords:[location.x,location.y]}},handleSwipe:function(start,stop,thisObject,origTarget){if(stop.time-start.time<$.event.special.swipe.durationThreshold&&Math.abs(start.coords[0]-stop.coords[0])>$.event.special.swipe.horizontalDistanceThreshold&&Math.abs(start.coords[1]-stop.coords[1])<$.event.special.swipe.verticalDistanceThreshold){var direction=start.coords[0]>stop.coords[0]?"swipeleft":"swiperight";triggerCustomEvent(thisObject,"swipe",$.Event("swipe",{target:origTarget,swipestart:start,swipestop:stop}),true);triggerCustomEvent(thisObject,direction,$.Event(direction,{target:origTarget,swipestart:start,swipestop:stop}),true);return true}return false},eventInProgress:false,setup:function(){var events,thisObject=this,$this=$(thisObject),context={};events=$.data(this,"mobile-events");if(!events){events={length:0};$.data(this,"mobile-events",events)}events.length++;events.swipe=context;context.start=function(event){if($.event.special.swipe.eventInProgress){return}$.event.special.swipe.eventInProgress=true;var stop,start=$.event.special.swipe.start(event),origTarget=event.target,emitted=false;context.move=function(event){if(!start||event.isDefaultPrevented()){return}stop=$.event.special.swipe.stop(event);if(!emitted){emitted=$.event.special.swipe.handleSwipe(start,stop,thisObject,origTarget);if(emitted){$.event.special.swipe.eventInProgress=false}}if(Math.abs(start.coords[0]-stop.coords[0])>$.event.special.swipe.scrollSupressionThreshold){event.preventDefault()}};context.stop=function(){emitted=true;$.event.special.swipe.eventInProgress=false;$document.off(touchMoveEvent,context.move);context.move=null};$document.on(touchMoveEvent,context.move).one(touchStopEvent,context.stop)};$this.on(touchStartEvent,context.start)},teardown:function(){var events,context;events=$.data(this,"mobile-events");if(events){context=events.swipe;delete events.swipe;events.length--;if(events.length===0){$.removeData(this,"mobile-events")}}if(context){if(context.start){$(this).off(touchStartEvent,context.start)}if(context.move){$document.off(touchMoveEvent,context.move)}if(context.stop){$document.off(touchStopEvent,context.stop)}}}};$.each({taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(event,sourceEvent){$.event.special[event]={setup:function(){$(this).bind(sourceEvent,$.noop)},teardown:function(){$(this).unbind(sourceEvent)}}});return $.event.special})});
(function($){"use strict";$(function(){var customizer=false,quickView=$(".xt-woo-quick-view"),resizeTimeout,currentSlider,mobileSliderWidth=350,mobileSliderHeight=350,desktopSliderWidth=400,desktopSliderHeight=400,defaultMaxQuickWidth=900,defaultMaxQuickHeight=755,defaultSliderWidth,defaultSliderHeight,sliderFinalWidth,sliderFinalHeight,maxQuickWidth=defaultMaxQuickWidth,maxQuickHeight=defaultMaxQuickHeight,closeOnOverlayClick=true,isVisible=false,animationComplete=false,recentProduct=null,recentVariation=null,mobileScreen=false,tabletScreen=false,winWidth,winHeight,mobileBrowserFooterBarHeight=0,productSelector=".product:not(.xt_wooqv-product), .jet-woo-builder-product",clickSelector="click";if(XT_WOOQV.is_inline){$("html").addClass("xt_wooqv-is-inline")}function initVars(){customizer=typeof wp!=="undefined"&&typeof wp.customize!=="undefined";desktopSliderWidth=getOption("xt_wooqv-desktop-slider-width",400,true);desktopSliderHeight=getOption("xt_wooqv-desktop-slider-height",400,true);if(XT_WOOQV.is_fullscreen){desktopSliderWidth=getOption("xt_wooqv-desktop-slider-width-fullscreen",40,true)}else if(XT_WOOQV.is_inline){desktopSliderWidth=getOption("xt_wooqv-desktop-slider-width-inline",400,true);desktopSliderHeight=getOption("xt_wooqv-desktop-slider-height-inline",400,true)}}function updateResponsiveVars(){winWidth=$(window).width(),winHeight=$(window).height(),tabletScreen=winWidth<=XT_WOOQV.layouts.M,mobileScreen=winWidth<=XT_WOOQV.layouts.S,defaultSliderWidth=tabletScreen?parseInt(mobileSliderWidth):parseInt(desktopSliderWidth);defaultSliderHeight=tabletScreen?parseInt(mobileSliderHeight):parseInt(desktopSliderHeight)}function getSelectedImage(productElem){if(productElem&&productElem.length){var selectedImage=productElem.find("img.attachment-shop_catalog");if(selectedImage.length===0){selectedImage=productElem.find(".woocommerce-LoopProduct-link > img");if(selectedImage.length===0){selectedImage=productElem.find(".woocommerce-LoopProduct-link img").first();if(selectedImage.length===0){selectedImage=productElem.find(".attachment-woocommerce_thumbnail").first();if(selectedImage.length===0){selectedImage=productElem.find(".woocommerce-LoopProduct-link").first();if(selectedImage.length===0){selectedImage=productElem.find(".wp-post-image").first()}}}}}}else{selectedImage=productElem}if(selectedImage&&selectedImage.length===0){if($(".empty-box img").length){selectedImage=$(".empty-box img")}else{selectedImage=productElem}}return selectedImage}function throttle(callback,limit){var wait=false;return function(){if(!wait){callback.call(this);wait=true;setTimeout(function(){wait=false},limit)}}}function initEvents(){var handler;var bodyEvents=$._data(document.body).events;if(bodyEvents&&typeof bodyEvents.click!=="undefined"){var bodyClickEvents=bodyEvents.click;for(var i=0;i<bodyClickEvents.length;i++){if(bodyClickEvents[i].namespace==="preview"){handler=bodyClickEvents[i].handler;break}}if(handler){$(document.body).off("click.preview","a");$(document.body).on("click.preview","a",function(e){if(!$(e.target).hasClass("xt_wooqv-trigger")&&!$(e.target).hasClass("xt_wooqv-trigger-icon")){handler(e)}})}}if(customizer&&XT_WOOQV.can_use_premium_code){if(typeof wp.customize!=="undefined"&&typeof wp.customize.preview!=="undefined"){quickView.attrchange({trackValues:true,callback:function(e){if(e.attributeName.search("xt_wooqv-")!==-1){initVars();setTimeout(function(){triggerQuickViewResize();triggerQuickViewResize()},1)}}});var requireWindowResize=["modal_slider_width_desktop","modal_slider_width_desktop_fullscreen","modal_slider_width_desktop_inline","modal_slider_height_desktop","modal_slider_height_mobile","modal_slider_height_mobile_fullscreen","modal_slider_height_mobile_inline"];requireWindowResize.forEach(function(setting){wp.customize.value("xt_wooqv["+setting+"]").bind(function(){triggerQuickViewResize()})})}}var initQuickViewAnimation=function(productId,variationId,productElem){var selectedImage=getSelectedImage(productElem);preloadImage(selectedImage.attr("src"),function(){animateQuickView(productId,variationId,productElem,selectedImage,sliderFinalWidth,maxQuickWidth,"open")})};$("body").on(clickSelector,function(evt){var trigger,product,productId,variationId;if($(evt.target).is(".xt_wooqv-shortcode-trigger:not(.xt_wooqv-shortcode-in-loop)")||$(evt.target).closest(".xt_wooqv-shortcode-trigger:not(.xt_wooqv-shortcode-in-loop)").length){evt.preventDefault();evt.stopPropagation();if(XT_WOOQV.can_use_premium_code){trigger=$(evt.target).hasClass(".xt_wooqv-shortcode-trigger")?$(evt.target):$(evt.target).closest(".xt_wooqv-shortcode-trigger");productId=trigger.data("id");variationId=trigger.data("variation");product=trigger.closest(productSelector).first();if(XT_WOOQV.is_redirect){location.href=trigger.data("url")}else{if(!isVisible){initQuickViewAnimation(productId,variationId,product)}else{triggerProductQuickView(productId)}}}}else if($(evt.target).is(".xt_wooqv-product-overlay")){evt.preventDefault();evt.stopPropagation();$(evt.target).next().find(".xt_wooqv-trigger").trigger(clickSelector)}else if($(evt.target).is(".xt_wooqv-trigger")||$(evt.target).closest(".xt_wooqv-trigger").length){evt.preventDefault();evt.stopPropagation();trigger=$(evt.target).hasClass(".xt_wooqv-trigger")?$(evt.target):$(evt.target).closest(".xt_wooqv-trigger");product=trigger.closest(productSelector).first();productId=trigger.data("id");variationId=trigger.data("variation");if(XT_WOOQV.is_redirect){location.href=trigger.data("url")}else{if(!isVisible){initQuickViewAnimation(productId,variationId,product)}else{triggerProductQuickView(productId)}}}else if($(evt.target).is(".xt_wooqv-close-icon")||$(evt.target).is("html.xt_wooqv-active")||($(evt.target).is(".xt_wooqv-overlay")||$(evt.target).is(".xt_wooqv-nav"))&&closeOnOverlayClick){if(animationComplete&&isVisible){closeQuickView(sliderFinalWidth,maxQuickWidth)}}else if($(evt.target).is(".xt_wooqv-prev")||$(evt.target).closest(".xt_wooqv-prev").length){previousProduct()}else if($(evt.target).is(".xt_wooqv-next")||$(evt.target).closest(".xt_wooqv-next").length){nextProduct()}});if(customizer){var disableClickSelectors=["a .xt_wooqv-trigger","a .xt_wooqv-product-overlay"];disableClickSelectors=disableClickSelectors.join(",");$("body").on("mouseover",disableClickSelectors,function(){var $link=$(this).closest("a");$link.attr("data-href",$link.attr("href")).attr("href","#")}).on("mouseout",disableClickSelectors,function(){var $link=$(this).closest("a");$link.attr("href",$link.attr("data-href"))})}if(XT_WOOQV.can_use_premium_code){document.addEventListener("keyup",function(event){if(event.defaultPrevented){return}var key=event.key||event.keyCode;if(key==="Escape"||key==="Esc"||key===27){closeQuickView(sliderFinalWidth,maxQuickWidth)}})}$(window).on("resize",function(){resizeQuickView();resizeQuickView()});$(document.body).on("xt_wooqv-animation-end",function(){triggerQuickViewResize();if(XT_WOOQV.can_use_premium_code){checkNavigation()}setTimeout(function(){if(isVisible){$("html").addClass("xt_wooqv-ready")}else{$("html").removeClass("xt_wooqv-ready");if(XT_WOOQV.is_inline){resetInlineQuickView()}}},10);animationComplete=true});if(!!XT_WOOQV.close_on_added){var closeModal=function(){if(isVisible){closeQuickView(sliderFinalWidth,maxQuickWidth)}};$(document.body).on("xt_atc_added_to_cart",closeModal)}}function relocateInlineQuickView(product,trigger){var position=XT_WOOQV.inline_position;var is_shortcode=trigger.hasClass("xt_wooqv-shortcode-trigger");var found_shortcode_product=false;if(is_shortcode){if(trigger.closest(productSelector).length){product=trigger.closest(productSelector);found_shortcode_product=true}else{product=trigger}}if(!is_shortcode||found_shortcode_product){var first_product=findRowProduct(product,"first");if(position==="below"){product=findRowProduct(product,"last")}else{product=first_product}}var quickViewWrapper=$(".xt_wooqv-inline-wrap");if(quickViewWrapper.length===0){quickView.wrap('<div class="xt_wooqv-inline-wrap"></div>');quickViewWrapper=$(".xt_wooqv-inline-wrap")}if(!is_shortcode||found_shortcode_product){quickViewWrapper.css({padding:first_product.css("padding"),margin:first_product.css("margin")});quickViewWrapper.removeClass("xt_wooqv-inline-shortcode")}else{quickViewWrapper.css({margin:"20px 0"});quickViewWrapper.addClass("xt_wooqv-inline-shortcode")}if(position==="below"){quickViewWrapper.removeClass("xt_wooqv-inline-above");quickViewWrapper.addClass("xt_wooqv-inline-below");quickViewWrapper.insertAfter(product)}else{quickViewWrapper.removeClass("xt_wooqv-inline-below");quickViewWrapper.addClass("xt_wooqv-inline-above");quickViewWrapper.insertBefore(product)}}function resetInlineQuickView(){$(".xt_wooqv-inline-wrap").removeAttr("style")}function scrollToInlineQuickView(){var elOffset=$(".xt_wooqv-inline-wrap").offset().top;var offset=elOffset-25;if(!tabletScreen){var elHeight=400;var windowHeight=$(window).height();if(elHeight<windowHeight){offset=elOffset-(windowHeight/2-elHeight/2)}else{offset=elOffset}}$("html, body").animate({scrollTop:offset},400)}function findRowProduct(product,location){var previous_product;var product_top=product.offset().top;var func=location==="last"?"next":"prev";do{previous_product=product;product=product[func]()}while(product.length&&product.offset().top===product_top);return previous_product}function getOption(key,defaultVal,isInt){var val;isInt=isInt?isInt:false;if(quickView.attr(key)){val=quickView.attr(key)}else{val=defaultVal}if(isInt){val=parseInt(val)}return val}function customizerValuesChanged(){if(!tabletScreen){var width_units=XT_WOOQV.is_fullscreen?"vw":"px";var height_units=XT_WOOQV.is_fullscreen?"vh":"px";quickView.css("width","");if(XT_WOOQV.is_fullscreen){$(".xt_wooqv-slider-wrapper, .xt_wooqv-slider li").css("width",desktopSliderWidth+width_units);$(".xt_wooqv-item-info").css("width",100-parseInt(desktopSliderWidth)+width_units)}else{$(".xt_wooqv-slider-wrapper, .xt_wooqv-slider li").css({width:desktopSliderWidth+width_units,height:desktopSliderHeight+height_units});quickView.css("height",desktopSliderHeight+height_units);$(".xt_wooqv-item-info").css({width:"calc(100% - "+(desktopSliderWidth+width_units)+")",height:desktopSliderHeight+height_units})}}else{$(".xt-woo-quick-view, .xt_wooqv-slider-wrapper, .xt_wooqv-slider, .xt_wooqv-slider li").css("height","")}resetSlider()}function resizeQuickView(){if(!$("html").hasClass("xt_wooqv-resizing")){$("html").addClass("xt_wooqv-resizing");if(resizeTimeout){clearTimeout(resizeTimeout)}resizeTimeout=setTimeout(function(){$("html").removeClass("xt_wooqv-resizing")},500)}window.requestAnimationFrame(function(){updateResponsiveVars();if(customizer&&XT_WOOQV.can_use_premium_code){customizerValuesChanged()}if(winWidth<=defaultSliderWidth){sliderFinalWidth=winWidth;maxQuickWidth=sliderFinalWidth}else{sliderFinalWidth=defaultSliderWidth;maxQuickWidth=defaultMaxQuickWidth}if(winHeight<=defaultSliderHeight){sliderFinalHeight=winHeight;maxQuickHeight=sliderFinalHeight}else{sliderFinalHeight=defaultSliderHeight;maxQuickHeight=defaultMaxQuickHeight}var quickViewLeft=(winWidth-quickView.width())/2,quickViewTop=(winHeight-quickView.height())/2,quickViewWidth=winWidth*.8<maxQuickWidth?winWidth*.8:maxQuickWidth;quickView.css({top:quickViewTop>0?quickViewTop:0,left:quickViewLeft>0?quickViewLeft:0,width:quickViewWidth});resetSlider();resizeInfoBoxHeight()})}function resizeInfoBoxHeight(){if(tabletScreen){var height=quickView.find(".xt_wooqv-item-info .xt_wooqv-item-info-inner").outerHeight(true)+mobileBrowserFooterBarHeight;quickView.find(".xt_wooqv-item-info").css("height",height)}else{if(!XT_WOOQV.is_inline){quickView.find(".xt_wooqv-item-info").css("height","100%")}}}function triggerQuickViewResize(){$(window).trigger("resize")}function closeQuickView(finalWidth,maxQuickWidth,noAnimation,callback){if(!isVisible){return false}var productId=getRecentProductId();var variationId=getRecentVariationId();noAnimation=typeof noAnimation!=="undefined"?noAnimation:false;var productElem=getProductById(productId);var selectedImage=getSelectedImage(productElem);if(!noAnimation&&!quickView.hasClass("velocity-animating")){animateQuickView(productId,variationId,productElem,selectedImage,finalWidth,maxQuickWidth,"close",callback)}else{closeNoAnimation(selectedImage,finalWidth,maxQuickWidth,callback)}}function animateQuickView(productId,variationId,productElem,image,finalWidth,maxQuickWidth,animationType,callback){var topSelected=image.length?image.offset().top-$(window).scrollTop():0,leftSelected=image.length?image.offset().left:0,widthSelected=image.length?image.width():0,finalLeft=(winWidth-finalWidth)/2,finalTop=(winHeight-sliderFinalHeight)/2,quickViewWidth=winWidth*.8<maxQuickWidth?winWidth*.8:maxQuickWidth,quickViewLeft=(winWidth-quickViewWidth)/2,quickViewTop=finalTop;animationComplete=false;var initialStyles,animationStyles,animationEasing,animationDuration,finalStyles;var translateX=XT_WOOQV.is_fullscreen?winWidth:winWidth*.2;var translateY=XT_WOOQV.is_fullscreen?winHeight:winHeight*.2;var triggerOpen=function(){$("html").addClass("xt_wooqv-active");loadProductInfo(productId,variationId,function(){updateResponsiveVars();productElem.addClass("empty-box");if(!!XT_WOOQV.is_fullscreen||!!XT_WOOQV.is_inline){if(XT_WOOQV.animation_type==="none"){initialStyles={opacity:1};animationStyles={opacity:1}}else if(XT_WOOQV.animation_type==="fade"){initialStyles={opacity:0};animationStyles={opacity:1}}else if(XT_WOOQV.animation_type==="slide-top"){initialStyles={translateY:-translateY,opacity:1};animationStyles={translateY:0,opacity:1}}else if(XT_WOOQV.animation_type==="slide-bottom"){initialStyles={translateY:translateY,opacity:1};animationStyles={translateY:0,opacity:1}}else if(XT_WOOQV.animation_type==="slide-left"){initialStyles={translateX:-translateX,opacity:1};animationStyles={translateX:0,opacity:1}}else if(XT_WOOQV.animation_type==="slide-right"){initialStyles={translateX:translateX,opacity:1};animationStyles={translateX:0,opacity:1}}animationEasing="easeInOut";animationDuration=250}else{initialStyles={width:widthSelected,top:topSelected>0?topSelected:0,left:leftSelected>0?leftSelected:0,scaleX:tabletScreen?"1":"0.5",scaleY:tabletScreen?"1":"0.5",opacity:0};animationStyles={width:finalWidth,top:finalTop>0?finalTop:0,left:finalLeft>0?finalLeft:0,scaleX:"1",scaleY:"1",opacity:1};animationEasing=tabletScreen?"easeInOut":[400,20];animationDuration=tabletScreen?250:800}quickView.velocity(initialStyles,0).velocity(animationStyles,animationDuration,animationEasing,function(){quickView.addClass("xt_wooqv-animate-width");if(tabletScreen){quickView.addClass("xt_wooqv-add-content")}finalStyles={top:quickViewTop,left:quickViewLeft,width:quickViewWidth};quickView.velocity(finalStyles,XT_WOOQV.is_fullscreen||XT_WOOQV.is_inline||tabletScreen?100:300,"ease",function(){resetSlider();triggerQuickViewResize();quickView.addClass("xt_wooqv-add-content");setTimeout(function(){quickView.addClass("xt_wooqv-preview-gallery")},50);setTimeout(function(){quickView.removeClass("xt_wooqv-preview-gallery")},2e3);isVisible=true;$(document.body).trigger("xt_wooqv-animation-end");if(typeof callback!=="undefined"){callback()}})}).addClass("xt_wooqv-is-visible")})};var triggerClose=function(){$("html").removeClass("xt_wooqv-ready");resetSlider(true);if(XT_WOOQV.is_inline){resetInlineQuickView()}if(tabletScreen){quickView.removeClass("xt_wooqv-add-content xt_wooqv-animate-width")}if(!!XT_WOOQV.is_fullscreen||!!XT_WOOQV.is_inline){if(XT_WOOQV.animation_type==="none"){initialStyles={opacity:0};animationStyles={opacity:0}}else if(XT_WOOQV.animation_type==="fade"){initialStyles={opacity:1};animationStyles={opacity:0}}else if(XT_WOOQV.animation_type==="slide-top"){initialStyles={translateY:0,opacity:1};animationStyles={translateY:-translateY,opacity:1}}else if(XT_WOOQV.animation_type==="slide-bottom"){initialStyles={translateY:0,opacity:1};animationStyles={translateY:translateY,opacity:1}}else if(XT_WOOQV.animation_type==="slide-left"){initialStyles={translateX:0,opacity:1};animationStyles={translateX:-translateX,opacity:1}}else if(XT_WOOQV.animation_type==="slide-right"){initialStyles={translateX:0,opacity:1};animationStyles={translateX:translateX,opacity:1}}}else{var left=tabletScreen?quickView.position().left:finalLeft;initialStyles={width:finalWidth,top:finalTop>0?finalTop:0,left:left>0?left:0};animationStyles={width:widthSelected,top:topSelected>0?topSelected:0,left:leftSelected>0?leftSelected:0,scaleX:tabletScreen?"1":"0.5",scaleY:tabletScreen?"1":"0.5",opacity:0}}quickView.removeClass("xt_wooqv-add-content").velocity(initialStyles,XT_WOOQV.is_fullscreen||XT_WOOQV.is_inline||tabletScreen?0:300,"ease",function(){$("html").removeClass("xt_wooqv-active");quickView.removeClass("xt_wooqv-animate-width").velocity(animationStyles,XT_WOOQV.is_fullscreen||XT_WOOQV.is_inline||tabletScreen?500:500,"ease",function(){isVisible=false;quickView.removeClass("xt_wooqv-no-transitions xt_wooqv-is-visible");productElem.removeClass("empty-box");triggerQuickViewResize();$(document.body).trigger("xt_wooqv-animation-end");if(typeof callback!=="undefined"){callback()}})});recentProduct=null};if(animationType==="open"&&!isVisible){triggerOpen()}else if(isVisible||animationType==="close"){triggerClose()}}function closeNoAnimation(image,finalWidth,maxQuickWidth,callback){resetSlider(true);image=image.length?image:$(".empty-box");var topSelected=image.offset().top-$(window).scrollTop(),leftSelected=image.offset().left,widthSelected=image.width();$("html").removeClass("xt_wooqv-active xt_wooqv-ready");$(".empty-box").removeClass(".empty-box");quickView.velocity("stop").removeClass("xt_wooqv-add-content xt_wooqv-no-transitions xt_wooqv-animate-width xt_wooqv-is-visible").css({top:topSelected,left:leftSelected,width:widthSelected});isVisible=false;triggerQuickViewResize();if(XT_WOOQV.is_inline){resetInlineQuickView()}if(typeof callback!=="undefined"){callback()}}function loadProductInfo(id,variation_id,callback){var slider_only=isVisible?1:0;if(slider_only&&!animationComplete){$(document.body).one("xt_wooqv-animation-end",function(){if(isVisible){setTimeout(function(){loadProductInfo(id,variation_id,callback)},50)}});return}if(typeof xt_woofc_is_cart_open!=="undefined"&&xt_woofc_is_cart_open()){xt_woofc_close_cart()}variation_id=variation_id?variation_id:0;variation_id=variation_id===-1?0:variation_id;recentProduct=recentProduct?recentProduct:0;recentVariation=recentVariation?recentVariation:0;if(!slider_only&&XT_WOOQV.is_inline){relocateInlineQuickView(getProductById(id),getProductTriggerById(id));scrollToInlineQuickView()}if(animationComplete){if(slider_only){quickView.find(".xt_wooqv-slider-wrapper").block({message:null})}else{quickView.block({message:null});$("html").addClass("xt_wooqv-loading")}}else{getProductTriggerById(id).block({message:null})}recentProduct=id;recentVariation=variation_id;if(slider_only&&variation_id){var params={action:"xt_wooqv_quick_view",id:id,variation_id:variation_id,slider_only:slider_only};$.ajax({url:XT_WOOQV.wc_ajax_url.toString().replace("%%endpoint%%","xt_wooqv_quick_view"),data:params,type:"get",success:function(data){replaceSliderWrapper($(data.quickview));onProductLoaded(id,variation_id,data,slider_only,callback)}})}else{getProductContentById(id,function($product,data){replaceProduct($product);onProductLoaded(id,variation_id,data,slider_only,callback)})}}function replaceSliderWrapper($elem){var sliderWrapper=quickView.find(".xt_wooqv-slider-wrapper");if(sliderWrapper.length>1){sliderWrapper.not(":first").remove()}sliderWrapper.addClass("ontop").before($elem);sliderWrapper.css({transition:"opacity 0.5s",opacity:0});setTimeout(function(){sliderWrapper.remove()},500)}function replaceProduct($product){quickView.find(".xt_wooqv-product").replaceWith($product);$("body").trigger("quick-view-displayed");$("body").trigger("xt-woo-quick-view-displayed");window.dispatchEvent(new Event("load",{bubbles:true}))}function onProductLoaded(id,variation_id,data,slider_only,callback){data=data?data:null;recentProduct=id;recentVariation=variation_id;if(customizer){customizerValuesChanged()}if(slider_only){resetSlider()}else{initProductVariationsEvents();initProductBundleEvents();initProductCompositeEvents()}triggerQuickViewResize();if(XT.isTouchDevice()){quickView.find(".xt_wooqv-product").off("scroll",throttle(checkMobileOverflowBar,100));quickView.find(".xt_wooqv-product").on("scroll",throttle(checkMobileOverflowBar,100))}if(XT_WOOQV.can_use_premium_code){initLightSlider(data,callback);if(!slider_only){checkNavigation()}}else{if(typeof callback!=="undefined"){callback(data)}}if(!slider_only){$(document.body).trigger("xt_wooqv-product-loaded")}if(animationComplete){if(slider_only){quickView.find(".xt_wooqv-slider-wrapper").unblock()}else{quickView.unblock()}setTimeout(function(){if(!slider_only){$("html").removeClass("xt_wooqv-loading")}},slider_only?0:300)}else{getProductTriggerById(id).unblock()}isVisible=true}function checkNavigation(){if(!!XT_WOOQV.modal_nav_enabled){if(moreProductsAvailable()){$("html").removeClass("xt_wooqv-hide-nav");if(isFirstProduct()){$("html").addClass("xt_wooqv-first-product")}else{$("html").removeClass("xt_wooqv-first-product")}if(isLastProduct()){$("html").addClass("xt_wooqv-last-product")}else{$("html").removeClass("xt_wooqv-last-product")}if(getPrevProduct()===null){$("html").addClass("xt_wooqv-prev-hidden")}else{$("html").removeClass("xt_wooqv-prev-hidden")}if(getNextProduct()===null){$("html").addClass("xt_wooqv-next-hidden")}else{$("html").removeClass("xt_wooqv-next-hidden")}}else{$("html").addClass("xt_wooqv-hide-nav")}}}function initProductVariationsEvents(){if(typeof $.fn.wc_variation_form==="function"){quickView.find(".variations_form").each(function(){$(this).wc_variation_form();$(this).off("found_variation",onFoundVariation);$(this).find(".reset_variations").off("click",onResetVariation);$(this).find(".reset_variations").off(clickSelector,onResetVariation);$(this).on("found_variation",onFoundVariation);$(this).find(".reset_variations").on(clickSelector,onResetVariation)})}}function initProductBundleEvents(){if(typeof $.fn.wc_pb_bundle_form==="function"){quickView.find(".bundle_form").each(function(){$(this).wc_pb_bundle_form();var $bundle_button=$(this).find(".bundle_button");var $more_info_button=$(this).find(".xt_wooqv-more-info");if($bundle_button.length&&$more_info_button.length){$more_info_button.appendTo($bundle_button)}})}}function initProductCompositeEvents(){if(typeof $.fn.wc_composite_form==="function"){quickView.find(".composite_form").each(function(){$(this).wc_composite_form();var $composite_button=$(this).find(".composite_button");var $more_info_button=$(this).find(".xt_wooqv-more-info");if($composite_button.length&&$more_info_button.length){$more_info_button.appendTo($composite_button)}})}}function onFoundVariation(event,variation){loadVariation(variation)}function onResetVariation(){getProductContentById(recentProduct,function($product,data){if($product.length){replaceSliderWrapper($product.find(".xt_wooqv-slider-wrapper"));onProductLoaded(recentProduct,null,data,true)}})}function loadVariation(variation){var id=getRecentProductId();var variation_id=variation?variation.variation_id:-1;loadProductInfo(id,variation_id,function(){resizeInfoBoxHeight()})}function initLightSlider(data,callback){var attachments=parseInt(quickView.find(".xt_wooqv-slider-wrapper").attr("data-attachments"));if(attachments<=1){if(typeof callback!=="undefined"){callback(data)}return false}currentSlider=quickView.find(".xt_wooqv-slider").lightSlider({mode:XT_WOOQV.slider_animation,auto:!!XT_WOOQV.slider_autoplay,pauseOnHover:true,pause:3e3,item:!!XT_WOOQV.slider_vertical?1:XT_WOOQV.slider_items_desktop,loop:true,gallery:!!XT_WOOQV.slider_gallery,thumbItem:7,thumbMargin:0,slideMargin:0,vertical:!!XT_WOOQV.slider_vertical,vThumbWidth:60,verticalHeight:sliderFinalHeight*.7,enableDrag:XT.isTouchDevice(),currentPagerPosition:"left",controls:!!XT_WOOQV.slider_arrows_enabled,prevHtml:'<span class="xt_wooqv-arrow-icon '+XT_WOOQV.slider_arrow+'"></span>',nextHtml:'<span class="xt_wooqv-arrow-icon '+XT_WOOQV.slider_arrow+'"></span>',responsive:[{breakpoint:XT_WOOQV.layouts.M,settings:{thumbItem:11,item:1}},{breakpoint:XT_WOOQV.layouts.S,settings:{thumbItem:9,item:1}}],onSliderLoad:function(el){repositionSliderGalleryImages();if(!!XT_WOOQV.slider_lightbox){el.lightGallery({selector:".xt_wooqv-slider .lslide",mode:"lg-"+XT_WOOQV.slider_animation,prevHtml:'<span class="xt_wooqv-arrow-icon '+XT_WOOQV.slider_arrow+'"></span>',nextHtml:'<span class="xt_wooqv-arrow-icon '+XT_WOOQV.slider_arrow+'"></span>',showAfterLoad:false,enableDrag:XT.isTouchDevice()});el.on("onAfterOpen.lg",function(){var slide=el.find(".lslide.active").index();el.data("lightGallery").slide(slide-1)})}if(typeof callback!=="undefined"){callback(data)}}})}function resetSlider(destroyGallery){if(!!XT_WOOQV.can_use_premium_code){if(currentSlider&&typeof currentSlider.refresh==="function"){currentSlider.refresh();currentSlider.goToSlide(1);repositionSliderGalleryImages();if(typeof destroyGallery!=="undefined"&&destroyGallery&&!!XT_WOOQV.slider_lightbox&&currentSlider.data("lightGallery")){currentSlider.data("lightGallery").destroy()}}}}function repositionSliderGalleryImages(){if(!!XT_WOOQV.slider_gallery&&quickView.find(".lSGallery").length){var $slider=quickView.find(".xt_wooqv-slider-wrapper");var $gallery=$slider.find(".lSGallery");if(!!XT_WOOQV.slider_vertical){var height=$gallery.height();var top=($slider.height()-height)/2;top=top<0?0:top;$gallery.css({height:height,top:top})}else{var width=$gallery.width();var left=($slider.width()-width)/2;left=left<0?0:left;$gallery.css({width:width,left:left})}}}function _open(id){id=typeof id!=="undefined"?id:null;if(isVisible){return}var $product=id!==null?getProductById(id):getFirstProduct();$product.find(".xt_wooqv-trigger").trigger(clickSelector)}function _close(){closeQuickView(sliderFinalWidth,maxQuickWidth)}function previousProduct(){if(!isVisible||!recentProduct){return}var product=getPrevProduct();if(product){triggerProductQuickView(product)}}function nextProduct(){if(!isVisible||!recentProduct){return}var product=getNextProduct();if(product){triggerProductQuickView(product)}}function getPrevProduct(){var prev=getCurrentIndex()-1;var product=getProductByIndex(prev);if(XT_WOOQV.is_inline&&product&&product.length&&product.hasClass("xt_wooqv-inline-wrap")){prev--;product=getProductByIndex(prev)}return product&&product.length?product:null}function getNextProduct(){var next=getCurrentIndex()+1;var product=getProductByIndex(next);if(XT_WOOQV.is_inline&&product&&product.length&&product.hasClass("xt_wooqv-inline-wrap")){next++;product=getProductByIndex(next)}return product&&product.length?product:null}function moreProductsAvailable(){return getTotalProducts()>1}function isFirstProduct(){if(!isVisible||!recentProduct){return false}return recentProduct===getFirstProductId()}function isLastProduct(){if(!isVisible||!recentProduct){return false}return recentProduct===getLastProductId()}function getRecentProduct(){return getProductById(getRecentProductId())}function getRecentProductId(){if(recentProduct===null||getProductTriggerById(recentProduct).length===0){recentProduct=getFirstProductId()}return recentProduct}function getRecentVariationId(){return recentVariation}function getAllProductTriggers(){return $(productSelector).find(".xt_wooqv-trigger")}function getTotalProducts(){return getAllProductTriggers().length}function getFirstProduct(){return getAllProductTriggers().first().closest(productSelector).first()}function getLastProduct(){return getAllProductTriggers().last().closest(productSelector).first()}function getFirstProductId(){return getProductId(getFirstProduct())}function getLastProductId(){return getProductId(getLastProduct())}function getProductById(id){return getProductTriggerById(id).closest(productSelector).first()}function getProductByIndex(index){var product_id;var product_triggers=getAllProductTriggers().toArray();if(index>=0&&index<product_triggers.length){product_id=$(product_triggers[index]).data("id");return getProductById(product_id)}return null}function getCurrentIndex(){var product_triggers=getAllProductTriggers().toArray();return product_triggers.findIndex(function(trigger){return $(trigger).data("id")===getRecentProductId()})}function getProductTriggerById(id){return $(".xt_wooqv-trigger[data-id="+id+"]").first()}function getProductContentById(id,callback){var $product;var trigger=getProductTriggerById(id);if(trigger.length&&trigger.data("uniqid")){var uniqid=trigger.data("uniqid");$product=$($("#xt_wooqv-quickview-"+uniqid).html())}if($product&&$product.length){setTimeout(function(){callback($product,null)},animationComplete?300:0)}else{var params={action:"xt_wooqv_quick_view",id:id};$.ajax({url:XT_WOOQV.wc_ajax_url.toString().replace("%%endpoint%%","xt_wooqv_quick_view"),data:params,type:"get",success:function(data){callback($(data.quickview),data)}})}}function getProductId(product){return product.length?product.find(".xt_wooqv-trigger").data("id"):null}function triggerProductQuickView(product){var id;if(typeof product==="number"){id=product}else{var trigger=product.find(".xt_wooqv-trigger");if(trigger.length){id=trigger.data("id")}}if(id){var variation_id=getProductTriggerById(id).data("variation");quickView.velocity("stop");isVisible=false;recentProduct=null;loadProductInfo(id,variation_id,function(){isVisible=true})}}function preloadImage(src,callback){if(src){var img=new Image;img.src=src;img.onload=function(){callback(true);img.remove()};img.onerror=function(){callback(false);img.remove()}}else{callback(false)}}function checkMobileOverflowBar(){var elementHeight=Math.floor($(this).height());if(window.innerHeight<elementHeight){mobileBrowserFooterBarHeight=elementHeight-window.innerHeight;resizeInfoBoxHeight();$("html").addClass("xt_wooqv-mobile-bar-visible")}else{mobileBrowserFooterBarHeight=0;$("html").removeClass("xt_wooqv-mobile-bar-visible");resizeInfoBoxHeight()}}$(function(){initVars();updateResponsiveVars();initEvents();triggerQuickViewResize()});window.xt_wooqv_resize=triggerQuickViewResize;window.xt_wooqv_resize_info=resizeInfoBoxHeight;window.xt_wooqv_open=_open;window.xt_wooqv_close=_close;window.xt_wooqv_is_modal_open=function(){return isVisible};if(!!XT_WOOQV.can_use_premium_code){window.xt_wooqv_previous=previousProduct;window.xt_wooqv_is_first=isFirstProduct;window.xt_wooqv_is_last=isLastProduct;window.xt_wooqv_next=nextProduct}})})(jQuery);