1(()=>{var e={};(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var s=globalThis.document;if(!t&&s&&(s.currentScript&&"SCRIPT"===s.currentScript.tagName.toUpperCase()&&(t=s.currentScript.src),!t)){var o=s.getElementsByTagName("script");if(o.length)for(var a=o.length-1;a>-1&&(!t||!/^http(s?):/.test(t));)t=o[a--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t})(),e.p=window.wcpayAssets.url,(()=>{"use strict";window.wp.domReady;const e=e=>"undefined"!=typeof wcpayConfig&&void 0!==wcpayConfig[e]?wcpayConfig[e]:t(e),t=e=>{let t=null;if("undefined"!=typeof wcpay_upe_config)t=wcpay_upe_config;else{if("object"!=typeof wc||void 0===wc.wcSettings)return null;t=wc.wcSettings.getSetting("woocommerce_payments_data")||{}}return t[e]||null},s=e=>"object"==typeof wcpayExpressCheckoutParams&&wcpayExpressCheckoutParams.hasOwnProperty(e)?wcpayExpressCheckoutParams[e]:null,o=(e,t,s="wcpay_")=>e.toString().replace("%%endpoint%%",s+t);function a(e,t="",s){for(const o in e){const n=e[o],i=t?t+"["+o+"]":o;"string"==typeof n||"number"==typeof n?s.append(i,n):"object"==typeof n&&a(n,i,s)}return s}async function n(e,t,s){const o=a(t,"",new FormData),n=await fetch(e,{method:"POST",body:o,...s});return await n.json()}const i=window.React,r=window.wp.i18n;function c(e){window.WooPayConnect||(window.WooPayConnect={}),window.WooPayConnect.iframeInjectedState=e}function l(){return window?.WooPayConnect?.postMessageTimeout||5e3}const d=window.ReactJSXRuntime,u=()=>{const t=(0,i.useRef)(),[o,a]=(0,i.useState)("");return(0,i.useEffect)(()=>{(async()=>{const t=e("testMode"),o=e("woopayHost"),n=e("woopayMerchantId"),i=new URLSearchParams({testMode:t,source_url:window.location.href,blogId:n}),r=await(async()=>{let t=(()=>{const e=document.cookie.split(";");for(let t=0;t<e.length;t++){let s=e[t];for(;" "===s.charAt(0);)s=s.substring(1,s.length);if(0===s.indexOf("tk_ai="))return s.substring(6,s.length)}})();if(t){const e={_ut:"anon",_ui:t};return JSON.stringify(e)}const o=e("platformTrackerNonce")??s("nonce")?.platform_tracker,a=e("ajaxUrl")??s("ajax_url"),n=new FormData;n.append("tracksNonce",o),n.append("action","get_identity");try{const e=await fetch(a,{method:"post",body:n});if(!e.ok)return;const t=await e.json();return t.success&&t.data&&t.data._ui&&t.data._ut?JSON.stringify(t.data):void 0}catch(e){return}})();r&&i.append("tracksUserIdentity",r),a(`${o}/connect/?${i.toString()}`)})()},[]),(0,i.useEffect)(()=>{if(!o||!t.current)return;const s=t.current,a=()=>{c(2),window.dispatchEvent(new MessageEvent("message",{source:window,origin:e("woopayHost"),data:{action:"get_iframe_post_message_success",value:t=>s.contentWindow.postMessage(t,e("woopayHost"))}}))};return s.addEventListener("load",a),()=>{s.removeEventListener("load",a)}},[o]),o?(0,d.jsx)("iframe",{ref:t,id:"woopay-connect-iframe",src:o,style:{height:0,width:0,border:"none",margin:0,padding:0,overflow:"hidden",display:"block",visibility:"hidden",position:"fixed",pointerEvents:"none",userSelect:"none"},title:(0,r.__)("WooPay Connect Direct Checkout","woocommerce-payments")}):null},h=window.ReactDOM,y=class{iframePostMessage=null;listeners={};constructor(){this.listeners={getIframePostMessageCallback:()=>{},getPostMessageTimeoutCallback:()=>{}},this.removeMessageListener=this.attachMessageListener(),this.injectWooPayConnectIframe()}attachMessageListener(){const t=t=>{const s=new URL(e("woopayHost")).origin;t.origin===s&&this.callbackFn(t.data)};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}}detachMessageListener(){"function"==typeof this.removeMessageListener&&this.removeMessageListener()}injectWooPayConnectIframe(){const t=window?.WooPayConnect?.iframeInjectedState||0;if(2===t){const t=document.querySelector("#woopay-connect-iframe");return void(t&&(this.iframePostMessage=Promise.resolve(s=>{t.contentWindow.postMessage(s,e("woopayHost"))})))}if(1===t)return void(this.iframePostMessage=new Promise(e=>{this.listeners.getIframePostMessageCallback=e}));c(1);const s=document.createElement("div");s.style.visibility="hidden",s.style.position="fixed",s.style.height="0",s.style.width="0",s.style.bottom="0",s.style.right="0",s.id="woopay-connect-iframe-container",document.body.appendChild(s);const o=this;this.iframePostMessage=new Promise(e=>{o.listeners.getIframePostMessageCallback=e}),(0,h.createRoot)(s).render((0,d.jsx)(u,{}))}injectTemporaryWooPayConnectIframe(){let t;const s=new Promise(e=>{t=e}),o=document.createElement("iframe");return o.id="temp-woopay-connect-iframe",o.src=e("woopayHost")+"/connect/",o.height=0,o.width=0,o.border="none",o.margin=0,o.padding=0,o.overflow="hidden",o.display="block",o.visibility="hidden",o.position="fixed",o.pointerEvents="none",o.userSelect="none",o.addEventListener("load",()=>{t(t=>o.contentWindow.postMessage(t,e("woopayHost")))}),document.body.appendChild(o),{resolvePostMessagePromise:s,removeTemporaryIframe:()=>{document.body.removeChild(o)}}}async sendMessageAndListenWith(e,t){const s=new Promise((e,s)=>{let o=!1;const a=setTimeout(()=>{o=!0,s(new Error("WooPayConnectIframe did not respond within the allotted time."))},l());this.listeners[t]=t=>{o||(a&&clearTimeout(a),e(t))}});if("function"!=typeof this.iframePostMessage?.then)throw new Error("iframePostMessage is not set");return(await this.iframePostMessage)(e),await s}async getPostMessageTimeout(){try{return await this.sendMessageAndListenWith({action:"getPostMessageTimeout"},"getPostMessageTimeoutCallback")}catch(e){return null}}callbackFn(e){switch(e.action){case"get_iframe_post_message_success":this.listeners.getIframePostMessageCallback(e.value);break;case"get_post_message_timeout_success":this.listeners.getPostMessageTimeoutCallback(e.value)}}},p=class extends y{constructor(){super(),this.listeners={...this.listeners,getIsUserLoggedInCallback:()=>{},getEncryptedDataCallback:()=>{},getPreferredPaymentMethodCallback:()=>{}}}async isUserLoggedIn(){try{return await this.sendMessageAndListenWith({action:"getIsUserLoggedIn"},"getIsUserLoggedInCallback")}catch(e){return!1}}async getEncryptedData(){try{return await this.sendMessageAndListenWith({action:"getEncryptedData"},"getEncryptedDataCallback")}catch(e){return null}}async getPreferredPaymentMethod(){try{return await this.sendMessageAndListenWith({action:"getPreferredPaymentMethod"},"getPreferredPaymentMethodCallback")}catch(e){return null}}callbackFn(e){switch(super.callbackFn(e),e.action){case"get_is_user_logged_in_success":this.listeners.getIsUserLoggedInCallback(e.value);break;case"get_encrypted_data_success":this.listeners.getEncryptedDataCallback(e.value);break;case"get_preferred_payment_method_success":this.listeners.getPreferredPaymentMethodCallback(e.value)}}},m=class extends y{constructor(){super(),this.listeners={...this.listeners,setRedirectSessionDataCallback:()=>{},setTempThirdPartyCookieCallback:()=>{},getIsWooPayReachableCallback:()=>{},getIsThirdPartyCookiesEnabledCallback:()=>{},setPreemptiveSessionDataCallback:()=>{}}}async isWooPayThirdPartyCookiesEnabled(){const{resolvePostMessagePromise:e,removeTemporaryIframe:t}=this.injectTemporaryWooPayConnectIframe(),s=new Promise((e,t)=>
1{let s=!1;const o=setTimeout(()=>{s=!0,t(new Error("WooPayConnectIframe did not respond within the allotted time."))},l());this.listeners.setTempThirdPartyCookieCallback=t=>{s||(o&&clearTimeout(o),e(t))}});if("function"!=typeof e?.then)return!1;const o=await e;o({action:"setTempThirdPartyCookie"});try{if(!await s)return t(),!1}catch(e){return t(),!1}const a=new Promise((e,t)=>{let s=!1;const o=setTimeout(()=>{s=!0,t(new Error("WooPayConnectIframe did not respond within the allotted time."))},l());this.listeners.getIsThirdPartyCookiesEnabledCallback=t=>{s||(o&&clearTimeout(o),e(t))}});o({action:"getIsThirdPartyCookiesEnabled"});try{return await a}catch(e){return!1}finally{t()}}async sendRedirectSessionDataToWooPay(e){try{return await super.sendMessageAndListenWith({action:"setRedirectSessionData",value:e},"setRedirectSessionDataCallback")}catch(e){return null}}async setPreemptiveSessionData(e){try{return await super.sendMessageAndListenWith({action:"setPreemptiveSessionData",value:e},"setPreemptiveSessionDataCallback")}catch(e){return null}}async isWooPayReachable(){try{return await this.sendMessageAndListenWith({action:"isWooPayReachable"},"getIsWooPayReachableCallback")}catch(e){return!1}}callbackFn(e){switch(super.callbackFn(e),e.action){case"set_redirect_session_data_success":this.listeners.setRedirectSessionDataCallback(e.value);break;case"set_redirect_session_data_error":this.listeners.setRedirectSessionDataCallback({is_error:!0});break;case"set_temp_third_party_cookie_success":this.listeners.setTempThirdPartyCookieCallback(e.value);break;case"get_is_third_party_cookies_enabled_success":this.listeners.getIsThirdPartyCookiesEnabledCallback(e.value);break;case"get_is_woopay_reachable_success":this.listeners.getIsWooPayReachableCallback(e.value);break;case"set_preemptive_session_data_success":this.listeners.setPreemptiveSessionDataCallback(e.value);break;case"set_preemptive_session_data_error":this.listeners.setPreemptiveSessionDataCallback({is_error:!0})}}},w=class{static userConnect;static sessionConnect;static encryptedSessionDataPromise;static redirectElements={CLASSIC_CART_PROCEED_BUTTON:".wc-proceed-to-checkout .checkout-button",BLOCKS_CART_PROCEED_BUTTON:".wp-block-woocommerce-proceed-to-checkout-block",BLOCKS_MINI_CART_PROCEED_BUTTON:"a.wp-block-woocommerce-mini-cart-checkout-button-block",BLOCKS_FOOTER_MINI_CART_PROCEED_BUTTON:"a.wc-block-mini-cart__footer-checkout",CLASSIC_MINI_CART_PROCEED_BUTTON:".widget_shopping_cart a.button.checkout"};static init(){this.getSessionConnect()}static getUserConnect(){return this.userConnect||(this.userConnect=new p),this.userConnect}static getSessionConnect(){return this.sessionConnect||(this.sessionConnect=new m),this.sessionConnect}static teardown(){this.sessionConnect?.detachMessageListener(),this.userConnect?.detachMessageListener(),this.sessionConnect=null,this.userConnect=null}static isWooPayDirectCheckoutEnabled(){return e("isWooPayDirectCheckoutEnabled")}static async isWooPayReachable(){return this.getSessionConnect().isWooPayReachable()}static async isUserLoggedIn(){return this.getUserConnect().isUserLoggedIn()}static async getEncryptedData(){return this.getUserConnect().getEncryptedData()}static async isWooPayThirdPartyCookiesEnabled(){return this.getSessionConnect().isWooPayThirdPartyCookiesEnabled()}
1static async initPostMessageTimeout(){const e=await this.getSessionConnect().getPostMessageTimeout();var t;e&&(t=e,window.WooPayConnect||(window.WooPayConnect={}),window.WooPayConnect.postMessageTimeout=t)}static async getWooPayCheckoutUrl(){try{let e;if(e=this.isEncryptedSessionDataPrefetched()?await this.encryptedSessionDataPromise:await this.getEncryptedSessionData(),!this.isValidEncryptedSessionData(e))throw new Error("Could not retrieve encrypted session data from store.");const t=await this.getSessionConnect().sendRedirectSessionDataToWooPay(e);if(!t?.redirect_url)throw new Error("Could not retrieve WooPay checkout URL.");const{redirect_url:s}=t;if(!this.validateRedirectUrl(s,"platform_checkout_key"))throw new Error("Invalid WooPay session URL: "+s);return t.redirect_url}catch(e){throw new Error(e.message)}}static isValidEncryptedSessionData(e){return e&&e?.blog_id&&e?.data?.session&&e?.data?.iv&&e?.data?.hash}static async getWooPayMinimumSessionUrl(){const t=await this.getWooPayMinimumSesssionDataFromMerchant();if(!1===t?.success)throw new Error("Could not retrieve redirect data from merchant.");if(!this.isValidEncryptedSessionData(t))throw new Error("Invalid encrypted session data.");const{blog_id:s,data:{session:o,iv:a,hash:n}}=t,i=new URLSearchParams({checkout_redirect:1,blog_id:s,session:o,iv:a,hash:n});return e("woopayHost")+"/woopay/?"+i.toString()}static getCheckoutButtonElements(){const e=[],t=t=>{const s=document.querySelector(t);s&&e.push(s)};return t(this.redirectElements.CLASSIC_CART_PROCEED_BUTTON),t(this.redirectElements.BLOCKS_CART_PROCEED_BUTTON),t(this.redirectElements.CLASSIC_MINI_CART_PROCEED_BUTTON),e}static getClassicProceedToCheckoutButton(){return document.querySelector(this.redirectElements.CLASSIC_CART_PROCEED_BUTTON)}static getMiniCartProceedToCheckoutButton(){return document.querySelector(this.redirectElements.BLOCKS_MINI_CART_PROCEED_BUTTON)}static getFooterMiniCartProceedToCheckoutButton(){return document.querySelector(this.redirectElements.BLOCKS_FOOTER_MINI_CART_PROCEED_BUTTON)}static addRedirectToWooPayEventListener(e,t=!1){e.forEach(e=>{const s={is_loading:!1};e.addEventListener("click",async o=>{if(s.is_loading)return void o.preventDefault();let a;if(s.is_loading=!0,(e=>{if(e.classList.contains("wp-block-woocommerce-mini-cart-checkout-button-block")||e.classList.contains("wc-block-mini-cart__footer-checkout"))return!0;const t=e.classList.contains("checkout-button"),s=e.parentElement?.classList?.contains("wc-proceed-to-checkout");return t&&s})(e)&&(e=>{const t=window.getComputedStyle(e,null).getPropertyValue("color"),s=document.createElement("span");s.classList.add("wc-block-components-spinner"),s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%",s.style.color=t,s.style.fontSize="unset",s.style.display="inline",s.style.lineHeight="0",s.style.margin="0",s.style.border="0",s.style.padding="0",e.style.color="rgba( 0, 0, 0, 0 )",e.style.position="relative",e.appendChild(s)})(e),a="a"===e.tagName.toLowerCase()?e.href:e.querySelector("a")?.href,a){o.preventDefault();try{let e="";if(t)e=await this.getWooPayCheckoutUrl();else{if(!await this.isWooPayReachable())throw new Error("WooPay is currently not available.");e=await this.getWooPayMinimumSessionUrl()}this.teardown(),window.location.href=e}catch(e){console.warn(e),this.teardown(),window.location.href=a}}else this.teardown()})})}static async getEncryptedSessionData(){const t=await this.getEncryptedData();return n(o(e("wcAjaxUrl"),"get_woopay_session"),{_ajax_nonce:e("woopaySessionNonce"),...t&&{encrypted_data:t}})}static async getWooPayMinimumSesssionDataFromMerchant(){return e("woopayMinimumSessionData")?e("woopayMinimumSessionData"):n(o(e("wcAjaxUrl"),"get_woopay_minimum_session_data"),{_ajax_nonce:e("woopaySessionNonce")})}static validateRedirectUrl(t,s){try{const o=new URL(t);return!(o.origin!==e("woopayHost")||!o.searchParams.has(s))}catch(e){return!1}}static maybePrefetchEncryptedSessionData(){const e=window?.wcpayWooPayDirectCheckout?.params?.is_product_page;void 0===e||e||(this.encryptedSessionDataPromise=new Promise(e=>{e(this.getEncryptedSessionData())}))}static setEncryptedSessionDataAsNotPrefetched(){this.encryptedSessionDataPromise=null}static isEncryptedSessionDataPrefetched(){return"function"==typeof this.encryptedSessionDataPromise?.then}},g=()=>{const e=document.cookie.split(";").find(e=>e.includes("skip_woopay"));if(!e)return!1;const t=e?.split("=");return"skip_woopay"===t[0].trim()&&"1"===t[1].trim()},_=()=>{((t,o={})=>
1{if(!1===(e("isShopperTrackingEnabled")??s("is_shopper_tracking_enabled")))return;const a=e("platformTrackerNonce")??s("nonce")?.platform_tracker,n=e("ajaxUrl")??s("ajax_url"),i=new FormData;i.append("tracksNonce",a),i.append("action","platform_tracks"),i.append("tracksEventName",t),i.append("tracksEventProp",JSON.stringify(o)),fetch(n,{method:"post",body:i}).then(e=>e.json())})("wcpay_proceed_to_checkout_button_click",{woopay_direct_checkout:Boolean(e("isWooPayDirectCheckoutEnabled"))&&!g()})};window.addEventListener("load",()=>{Object.values(w.redirectElements).forEach(e=>{const t=document.querySelector(e);t&&t.addEventListener("click",_)}),(()=>{const e=document.querySelector(".cart-collaterals");e&&new MutationObserver(()=>{const e=document.querySelector(w.redirectElements.CLASSIC_CART_PROCEED_BUTTON);e&&e.addEventListener("click",_)}).observe(e,{childList:!0,subtree:!0})})()})})()})(); 2!function(Z){var U={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0},onAutoChange:function(){return!0}};Z.fn.bxSlider=function(e){if(0===this.length)return this;if(1<this.length)return this.each(function(){Z(this).bxSlider(e)}),this;var c={},g=this,n=Z(window).width(),s=Z(window).height();if(!Z(g).data("bxSlider")){function o(){Z(g).data("bxSlider")||(c.settings=Z.extend({},U,e),c.settings.slideWidth=parseInt(c.settings.slideWidth),c.children=g.children(c.settings.slideSelector),c.children.length<c.settings.minSlides&&(c.settings.minSlides=c.children.length),c.children.length<c.settings.maxSlides&&(c.settings.maxSlides=c.children.length),c.settings.randomStart&&(c.settings.startSlide=Math.floor(Math.random()*c.children.length)),c.active={index:c.settings.startSlide},c.carousel=1<c.settings.minSlides||1<c.settings.maxSlides,c.carousel&&(c.settings.preloadImages="all"),c.minThreshold=c.settings.minSlides*c.settings.slideWidth+(c.settings.minSlides-1)*c.settings.slideMargin,c.maxThreshold=c.settings.maxSlides*c.settings.slideWidth+(c.settings.maxSlides-1)*c.settings.slideMargin,c.working=!1,c.controls={},c.interval=null,c.animProp="vertical"===c.settings.mode?"top":"left",c.usingCSS=c.settings.useCSS&&"fade"!==c.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return c.cssPrefix=e[i].replace("Perspective","").toLowerCase(),c.animProp="-"+c.cssPrefix+"-transform",!0;return!1}(),"vertical"===c.settings.mode&&(c.settings.maxSlides=c.settings.minSlides),g.data("origStyle",g.attr("style")),g.children(c.settings.slideSelector).each(function(){Z(this).data("origStyle",Z(this).attr("style"))}),d())}function r(){var t=1,e=null;return"horizontal"===c.settings.mode&&0<c.settings.slideWidth?t=c.viewport.width()<c.minThreshold?c.settings.minSlides:c.viewport.width()>c.maxThreshold?c.settings.maxSlides:(e=c.children.first().width()+c.settings.slideMargin,Math.floor((c.viewport.width()+c.settings.slideMargin)/e)||1):"vertical"===c.settings.mode&&(t=c.settings.minSlides),t}function t(){for(var t="",e="",i=m(),n=0;n<i;n++)e="",c.settings.buildPager&&Z.isFunction(c.settings.buildPager)||c.settings.pagerCustom?(e=c.settings.buildPager(n),c.pagerEl.addClass("bx-custom-pager")):(e=n+1,c.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item">
2<a href="" data-slide-index="'+n+'" class="bx-pager-link">'+e+"</a></div>";c.pagerEl.html(t)}function a(){g.startAuto()}function l(){g.stopAuto()}function p(t){var e=r();c.settings.ariaHidden&&!c.settings.ticker&&(c.children.attr("aria-hidden","true"),c.children.slice(t,t+e).attr("aria-hidden","false"))}var d=function(){var t=c.children.eq(c.settings.startSlide);g.wrap('<div class="'+c.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),c.viewport=g.parent(),c.settings.ariaLive&&!c.settings.ticker&&c.viewport.attr("aria-live","polite"),c.loader=Z('<div class="bx-loading" />'),c.viewport.prepend(c.loader),g.css({width:"horizontal"===c.settings.mode?1e3*c.children.length+215+"%":"auto",position:"relative"}),c.usingCSS&&c.settings.easing?g.css("-"+c.cssPrefix+"-transition-timing-function",c.settings.easing):c.settings.easing||(c.settings.easing="swing"),c.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),c.viewport.parent().css({maxWidth:f()}),c.children.css({float:"horizontal"===c.settings.mode?"left":"none",listStyle:"none",position:"relative"}),c.children.css("width",x()),"horizontal"===c.settings.mode&&0<c.settings.slideMargin&&c.children.css("marginRight",c.settings.slideMargin),"vertical"===c.settings.mode&&0<c.settings.slideMargin&&c.children.css("marginBottom",c.settings.slideMargin),"fade"===c.settings.mode&&(c.children.css({position:"absolute",zIndex:0,display:"none"}),c.children.eq(c.settings.startSlide).css({zIndex:c.settings.slideZIndex,display:"block"})),c.controls.el=Z('<div class="bx-controls" />'),c.settings.captions&&P(),c.active.last=c.settings.startSlide===m()-1,c.settings.video&&g.fitVids(),"none"===c.settings.preloadImages?t=null:"all"!==c.settings.preloadImages&&!c.settings.ticker||(t=c.children),c.settings.ticker?c.settings.pager=!1:(c.settings.controls&&T(),c.settings.auto&&c.settings.autoControls&&k(),c.settings.pager&&C(),(c.settings.controls||c.settings.autoControls||c.settings.pager)&&c.viewport.after(c.controls.el)),null===t?h():u(t,h)},u=function(t,e){var i=t.find('img:not([src=""]), iframe').length,n=0;0!==i?t.find('img:not([src=""]), iframe').each(function(){Z(this).one("load error",function(){++n===i&&e()}).each(function(){Z(this).trigger("load")})}):e()},h=function(){if(c.settings.infiniteLoop&&"fade"!==c.settings.mode&&!c.settings.ticker){var t="vertical"===c.settings.mode?c.settings.minSlides:c.settings.maxSlides,e=c.children.slice(0,t).clone(!0).addClass("bx-clone"),i=c.children.slice(-t).clone(!0).addClass("bx-clone");c.settings.ariaHidden&&(e.attr("aria-hidden",!0),i.attr("aria-hidden",!0)),g.append(e).prepend(i)}c.loader.remove(),w(),"vertical"===c.settings.mode&&(c.settings.adaptiveHeight=!0),c.viewport.height(v()),g.redrawSlider(),c.settings.onSliderLoad.call(g,c.active.index),c.initialized=!0,c.settings.responsive&&Z(window).on("resize",R),c.settings.auto&&c.settings.autoStart&&(1<m()||c.settings.autoSlideForOnePage)&&W(),c.settings.ticker&&L(),c.settings.pager&&A(c.settings.startSlide),c.settings.controls&&H(),1<navigator.maxTouchPoints&&N(),c.settings.keyboardEnabled&&!c.settings.ticker&&Z(document).keydown(F)},v=function(){var e=0,t=Z();if("vertical"===c.settings.mode||c.settings.adaptiveHeight)if(c.carousel){var n=1===c.settings.moveSlides?c.active.index:c.active.index*S();for(t=c.children.eq(n),i=1;i<=c.settings.maxSlides-1;i++)t=n+i>=c.children.length?t.add(c.children.eq(i-1)):t.add(c.children.eq(n+i))}else t=c.children.eq(c.active.index);else t=c.children;return"vertical"===c.settings.mode?(t.each(function(t){e+=Z(this).outerHeight()}),0<c.settings.slideMargin&&(e+=c.settings.slideMargin*(c.settings.minSlides-1))):e=Math.max.apply(Math,t.map(function(){return Z(this).outerHeight(!1)}).get()),"border-box"===c.viewport.css("box-sizing")?e+=parseFloat(c.viewport.css("padding-top"))+parseFloat(c.viewport.css("padding-bottom"))+parseFloat(c.viewport.css("border-top-width"))+parseFloat(c.viewport.css("border-bottom-width")):"padding-box"===c.viewport.css("box-sizing")&&(e+=parseFloat(c.viewport.css("padding-top"))+parseFloat(c.viewport.css("padding-bottom"))),e},f=function(){var t="100%";return 0<c.settings.slideWidth&&(t="horizontal"===c.settings.mode?c.settings.maxSlides*c.settings.slideWidth+(c.settings.maxSlides-1)*c.settings.slideMargin:c.settings.slideWidth),t},x=function(){var t=c.settings.slideWidth,e=c.viewport.width();if(0===c.settings.slideWidth||c.settings.slideWidth>e&&!c.carousel||"vertical"===c.settings.mode)t=e;else if(1<c.settings.maxSlides&&"horizontal"===c.settings.mode){if(e>c.maxThreshold)return t;e<c.minThreshold?t=(e-c.settings.slideMargin*(c.settings.minSlides-1))/c.settings.minSlides:c.settings.shrinkItems&&(t=Math.floor((e+c.settings.slideMargin)/Math.ceil((e+c.settings.slideMargin)/(t+c.settings.slideMargin))-c.settings.slideMargin))}return t},m=function(){var t=0,e=0,i=0;if(0<c.settings.moveSlides){if(!c.settings.infiniteLoop){for(;e<c.children.length;)++t,e=i+r(),i+=c.settings.moveSlides<=r()?c.settings.moveSlides:r();return i}t=Math.ceil(c.children.length/S())}else t=Math.ceil(c.children.length/r());return t},S=function(){return 0<c.settings.moveSlides&&c.settings.moveSlides<=r()?c.settings.moveSlides:r()},w=function(){var t,e,i;c.children.length>c.settings.maxSlides&&c.active.last&&!c.settings.infiniteLoop?"horizontal"===c.settings.mode?(t=(e=c.children.last(
vendor: 6,289 bytes, line 2
2)).position(),b(-(t.left-(c.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===c.settings.mode&&(i=c.children.length-c.settings.minSlides,t=c.children.eq(i).position(),b(-t.top,"reset",0)):(t=c.children.eq(c.active.index*S()).position(),c.active.index===m()-1&&(c.active.last=!0),void 0!==t&&("horizontal"===c.settings.mode?b(-t.left,"reset",0):"vertical"===c.settings.mode&&b(-t.top,"reset",0)))},b=function(t,e,i,n){var s,o;c.usingCSS?(o="vertical"===c.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",g.css("-"+c.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===e?(g.css(c.animProp,o),0!==i?g.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){Z(t.target).is(g)&&(g.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),q())}):q()):"reset"===e?g.css(c.animProp,o):"ticker"===e&&(g.css("-"+c.cssPrefix+"-transition-timing-function","linear"),g.css(c.animProp,o),0!==i?g.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){Z(t.target).is(g)&&(g.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(n.resetValue,"reset",0),O())}):(b(n.resetValue,"reset",0),O()))):((s={})[c.animProp]=t,"slide"===e?g.animate(s,i,c.settings.easing,function(){q()}):"reset"===e?g.css(c.animProp,t):"ticker"===e&&g.animate(s,i,"linear",function(){b(n.resetValue,"reset",0),O()}))},C=function(){c.settings.pagerCustom?c.pagerEl=Z(c.settings.pagerCustom):(c.pagerEl=Z('<div class="bx-pager" />'),c.settings.pagerSelector?Z(c.settings.pagerSelector).html(c.pagerEl):c.controls.el.addClass("bx-has-pager").append(c.pagerEl),t()),c.pagerEl.on("click touchend","a",z)},T=function(){c.controls.next=Z('<a class="bx-next" href="">'+c.settings.nextText+"</a>"),c.controls.prev=Z('<a class="bx-prev" href="">'+c.settings.prevText+"</a>"),c.controls.next.on("click touchend",E),c.controls.prev.on("click touchend",M),c.settings.nextSelector&&Z(c.settings.nextSelector).append(c.controls.next),c.settings.prevSelector&&Z(c.settings.prevSelector).append(c.controls.prev),c.settings.nextSelector||c.settings.prevSelector||(c.controls.directionEl=Z('<div class="bx-controls-direction" />'),c.controls.directionEl.append(c.controls.prev).append(c.controls.next),c.controls.el.addClass("bx-has-controls-direction").append(c.controls.directionEl))},k=function(){c.controls.start=Z('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+c.settings.startText+"</a></div>"),c.controls.stop=Z('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+c.settings.stopText+"</a></div>"),c.controls.autoEl=Z('<div class="bx-controls-auto" />'),c.controls.autoEl.on("click",".bx-start",y),c.controls.autoEl.on("click",".bx-stop",I),c.settings.autoControlsCombine?c.controls.autoEl.append(c.controls.start):c.controls.autoEl.append(c.controls.start).append(c.controls.stop),c.settings.autoControlsSelector?Z(c.settings.autoControlsSelector).html(c.controls.autoEl):c.controls.el.addClass("bx-has-controls-auto").append(c.controls.autoEl),D(c.settings.autoStart?"stop":"start")},P=function(){c.children.each(function(t){var e=Z(this).find("img:first").attr("title");void 0!==e&&(""+e).length&&Z(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},E=function(t){t.preventDefault(),c.controls.el.hasClass("disabled")||(c.settings.auto&&c.settings.stopAutoOnClick&&g.stopAuto(),g.goToNextSlide())},M=function(t){t.preventDefault(),c.controls.el.hasClass("disabled")||(c.settings.auto&&c.settings.stopAutoOnClick&&g.stopAuto(),g.goToPrevSlide())},y=function(t){g.startAuto(),t.preventDefault()},I=function(t){g.stopAuto(),t.preventDefault()},z=function(t){var e,i;t.preventDefault(),c.controls.el.hasClass("disabled")||(c.settings.auto&&c.settings.stopAutoOnClick&&g.stopAuto(),void 0!==(e=Z(t.currentTarget)).attr("data-slide-index")&&(i=parseInt(e.attr("data-slide-index")))!==c.active.index&&g.goToSlide(i))},A=function(i){var t=c.children.length;if("short"===c.settings.pagerType)return 1<c.settings.maxSlides&&(t=Math.ceil(c.children.length/c.settings.maxSlides)),void c.pagerEl.html(i+1+c.settings.pagerShortSeparator+t);c.pagerEl.find("a").removeClass("active"),c.pagerEl.each(function(t,e){Z(e).find("a").eq(i).addClass("active")})},q=function(){if(c.settings.infiniteLoop){var t="";0===c.active.index?t=c.children.eq(0).position():c.active.index===m()-1&&c.carousel?t=c.children.eq((m()-1)*S()).position():c.active.index===c.children.length-1&&(t=c.children.eq(c.children.length-1).position()),t&&("horizontal"===c.settings.mode?b(-t.left,"reset",0):"vertical"===c.settings.mode&&b(-t.top,"reset",0))}c.working=!1,c.settings.onSlideAfter.call(g,c.children.eq(c.active.index),c.oldIndex,c.active.index)},D=function(t){c.settings.autoControlsCombine?c.controls.autoEl.html(c.controls[t]):(c.controls.autoEl.find("a").removeClass("active"),c.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},H=function(){1===m()?(c.controls.prev.addClass("disabled"),c.controls.next.addClass("disabled")):!c.settings.infiniteLoop&&c.settings.hideControlOnEnd&&(0===c.active.index?(c.controls.prev.addClass("disabled"),c.controls.next.removeClass("disabled")):c.active.index===m()-1?(c.controls.next.addClass("disabled"),c.controls.prev.removeClass("disabled")):(c.controls.prev.removeClass("disabled"),c.controls.next.removeClass("disabled")))},W=function(){0<c.settings.autoDelay?setTimeout(g.startAuto,c.settings.autoDelay):(g.startAuto(),Z(window).focus(a).blur(l)),c.settings.autoHover&&g.hover(function(){c.interval&&(g.stopAuto(!0),c.autoPaused=!0)},function(){c.autoPaused&&(g.startAuto(!0),c.autoPaused=null)})},L=function(){var t,e,i,n,s,o,r,a,l=0;"next"===c.settings.autoDirection?g.append(c.children.clone().addClass("bx-clone")):(g.prepend(c.children.clone().addClass("bx-clone")),t=c.children.first().position(),l="horizontal"===c.settings.mode?-t.left:-t.top),b(l,"reset",0),c.settings.pager=!1,c.settings.controls=!1,c.settings.autoControls=!1,c.settings.tickerHover&&(c.usingCSS?(n="horizontal"===c.settings.mode?4:5,c.viewport.hover(function(){e=g.css("-"+c.cssPrefix+"-transform"),i=parseFloat(e.split(",")[n]),b(i,"reset",0)},function(){a=0,c.children.each(function(t){a+="horizontal"===c.settings.mode?Z(this).outerWidth(!0):Z(this).outerHeight(!0)}
2),s=c.settings.speed/a,o="horizontal"===c.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(i))),O(r)})):c.viewport.hover(function(){g.stop()},function(){a=0,c.children.each(function(t){a+="horizontal"===c.settings.mode?Z(this).outerWidth(!0):Z(this).outerHeight(!0)}),s=c.settings.speed/a,o="horizontal"===c.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(g.css(o)))),O(r)})),O()},O=function(t){var e,i,n=t||c.settings.speed,s={left:0,top:0},o={left:0,top:0};"next"===c.settings.autoDirection?s=g.find(".bx-clone").first().position():o=c.children.first().position(),e="horizontal"===c.settings.mode?-s.left:-s.top,i="horizontal"===c.settings.mode?-o.left:-o.top,b(e,"ticker",n,{resetValue:i})},F=function(t){var e=document.activeElement.tagName.toLowerCase();if(null==new RegExp(e,["i"]).exec("input|textarea")&&function(t){var e=Z(window),i={top:e.scrollTop(),left:e.scrollLeft()},n=t.offset();return i.right=i.left+e.width(),i.bottom=i.top+e.height(),n.right=n.left+t.outerWidth(),n.bottom=n.top+t.outerHeight(),!(i.right<n.left||i.left>n.right||i.bottom<n.top||i.top>n.bottom)}(g)){if(39===t.keyCode)return E(t),!1;if(37===t.keyCode)return M(t),!1}},N=function(){c.touch={start:{x:0,y:0},end:{x:0,y:0}},(!!("ontouchstart"in window)||0<window.navigator.msMaxTouchPoints)&&c.viewport.bind("touchstart MSPointerDown pointerdown",B),c.viewport.on("click",".bxslider a",function(t){c.viewport.hasClass("click-disabled")&&(t.preventDefault(),c.viewport.removeClass("click-disabled"))})},B=function(t){if("touchstart"===t.type||0===t.button)if(c.controls.el.addClass("disabled"),c.working)c.controls.el.removeClass("disabled");else{c.touch.originalPos=g.position();var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e];if("function"==typeof PointerEvent&&void 0===e.pointerId)return;c.touch.start.x=i[0].pageX,c.touch.start.y=i[0].pageY,c.viewport.get(0).setPointerCapture&&(c.pointerId=e.pointerId,c.viewport.get(0).setPointerCapture(c.pointerId)),c.originalClickTarget=e.originalTarget||e.target,c.originalClickButton=e.button,c.originalClickButtons=e.buttons,c.originalEventType=e.type,c.hasMove=!1,c.viewport.on("touchmove MSPointerMove pointermove",Y),c.viewport.on("touchend MSPointerUp pointerup",V),c.viewport.on("MSPointerCancel pointercancel",X)}},X=function(t){t.preventDefault(),b(c.touch.originalPos.left,"reset",0),c.controls.el.removeClass("disabled"),c.viewport.off("MSPointerCancel pointercancel",X),c.viewport.off("touchmove MSPointerMove pointermove",Y),c.viewport.off("touchend MSPointerUp pointerup",V),c.viewport.get(0).releasePointerCapture&&c.viewport.get(0).releasePointerCapture(c.pointerId)},Y=function(t){var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],n=Math.abs(i[0].pageX-c.touch.start.x),s=Math.abs(i[0].pageY-c.touch.start.y),o=0,r=0;c.hasMove=!0,s<3*n&&c.settings.preventDefaultSwipeX?t.preventDefault():n<3*s&&c.settings.preventDefaultSwipeY&&t.preventDefault(),"touchmove"!==t.type&&t.preventDefault(),"fade"!==c.settings.mode&&c.settings.oneToOneTouch&&(o="horizontal"===c.settings.mode?(r=i[0].pageX-c.touch.start.x,c.touch.originalPos.left+r):(r=i[0].pageY-c.touch.start.y,c.touch.originalPos.top+r),b(o,"reset",0))},V=function(t){t.preventDefault(),c.viewport.off("touchmove MSPointerMove pointermove",Y),c.controls.el.removeClass("disabled");var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],n=0,s=0;c.touch.end.x=i[0].pageX,c.touch.end.y=i[0].pageY,"fade"===c.settings.mode?(s=Math.abs(c.touch.start.x-c.touch.end.x))>=c.settings.swipeThreshold&&(c.touch.start.x>c.touch.end.x?g.goToNextSlide():g.goToPrevSlide(),g.stopAuto()):(n="horizontal"===c.settings.mode?(s=c.touch.end.x-c.touch.start.x,c.touch.originalPos.left):(s=c.touch.end.y-c.touch.start.y,c.touch.originalPos.top),!c.settings.infiniteLoop&&(0===c.active.index&&0<s||c.active.last&&s<0)?b(n,"reset",200):Math.abs(s)>=c.settings.swipeThreshold?(s<0?g.goToNextSlide():g.goToPrevSlide(),g.stopAuto()):b(n,"reset",200)),c.viewport.off("touchend MSPointerUp pointerup",V),c.viewport.get(0).releasePointerCapture&&c.viewport.get(0).releasePointerCapture(c.pointerId),!1!==c.hasMove||0!==c.originalClickButton&&"touchstart"!==c.originalEventType||Z(c.originalClickTarget).trigger({type:"click",button:c.originalClickButton,buttons:c.originalClickButtons})},R=function(t){if(c.initialized)if(c.working)window.setTimeout(R,10);else{var e=Z(window).width(),i=Z(window).height();n===e&&s===i||(n=e,s=i,g.redrawSlider(),c.settings.onSliderResize.call(g,c.active.index))}};return g.goToSlide=function(t,e){var i,n,s,o,r=!0,a=0,l={left:0,top:0},d=null;if(c.oldIndex=c.active.index,c.active.index=function(t){return t<0?c.settings.infiniteLoop?m()-1:c.active.index:t>=m()?c.settings.infiniteLoop?0:c.active.index:t}(t),!c.working&&c.active.index!==c.oldIndex){if(c.working=!0,void 0!==(r=c.settings.onSlideBefore.call(g,c.children.eq(c.active.index),c.oldIndex,c.active.index))&&!r)return c.active.index=c.oldIndex,void(c.working=!1);"next"===e?c.settings.onSlideNext.call(g,c.children.eq(c.active.index),c.oldIndex,c.active.index)||(r=!1):"prev"===e&&(c.settings.onSlidePrev.call(g,c.children.eq(c.active.index),c.oldIndex,c.active.index)||(r=!1)),c.active.last=c.active.index>=m()-1,(c.settings.pager||c.settings.pagerCustom)&&A(c.active.index),c.settings.controls&&H(),"fade"===c.settings.mode?(c.settings.adaptiveHeight&&c.viewport.height()!==v()&&c.viewport.animate({height:v()},c.settings.adaptiveHeightSpeed),c.children.filter(":visible").fadeOut(c.settings.speed).css({zIndex:0}),c.children.eq(c.active.index).css("zIndex",c.settings.slideZIndex+1).fadeIn(c.settings.speed,function(){Z(this).css("zIndex",c.settings.slideZIndex),q()}
2)):(c.settings.adaptiveHeight&&c.viewport.height()!==v()&&c.viewport.animate({height:v()},c.settings.adaptiveHeightSpeed),!c.settings.infiniteLoop&&c.carousel&&c.active.last?"horizontal"===c.settings.mode?(l=(d=c.children.eq(c.children.length-1)).position(),a=c.viewport.width()-d.outerWidth()):(i=c.children.length-c.settings.minSlides,l=c.children.eq(i).position()):c.carousel&&c.active.last&&"prev"===e?(n=1===c.settings.moveSlides?c.settings.maxSlides-S():(m()-1)*S()-(c.children.length-c.settings.maxSlides),l=(d=g.children(".bx-clone").eq(n)).position()):"next"===e&&0===c.active.index?(l=g.find("> .bx-clone").eq(c.settings.maxSlides).position(),c.active.last=!1):0<=t&&(o=t*parseInt(S()),l=c.children.eq(o).position()),void 0!==l&&(s="horizontal"===c.settings.mode?-(l.left-a):-l.top,b(s,"slide",c.settings.speed)),c.working=!1),c.settings.ariaHidden&&p(c.active.index*S())}},g.goToNextSlide=function(){if((c.settings.infiniteLoop||!c.active.last)&&!0!==c.working){var t=parseInt(c.active.index)+1;g.goToSlide(t,"next")}},g.goToPrevSlide=function(){if((c.settings.infiniteLoop||0!==c.active.index)&&!0!==c.working){var t=parseInt(c.active.index)-1;g.goToSlide(t,"prev")}},g.startAuto=function(t){c.interval||(c.interval=setInterval(function(){"next"===c.settings.autoDirection?g.goToNextSlide():g.goToPrevSlide()},c.settings.pause),c.settings.onAutoChange.call(g,!0),c.settings.autoControls&&!0!==t&&D("stop"))},g.stopAuto=function(t){c.autoPaused&&(c.autoPaused=!1),c.interval&&(clearInterval(c.interval),c.interval=null,c.settings.onAutoChange.call(g,!1),c.settings.autoControls&&!0!==t&&D("start"))},g.getCurrentSlide=function(){return c.active.index},g.getCurrentSlideElement=function(){return c.children.eq(c.active.index)},g.getSlideElement=function(t){return c.children.eq(t)},g.getSlideCount=function(){return c.children.length},g.isWorking=function(){return c.working},g.redrawSlider=function(){c.children.add(g.find(".bx-clone")).outerWidth(x()),c.viewport.css("height",v()),c.settings.ticker||w(),c.active.last&&(c.active.index=m()-1),c.active.index>=m()&&(c.active.last=!0),c.settings.pager&&!c.settings.pagerCustom&&(t(),A(c.active.index)),c.settings.ariaHidden&&p(c.active.index*S())},g.destroySlider=function(){c.initialized&&(c.initialized=!1,Z(".bx-clone",this).remove(),c.children.each(function(){void 0!==Z(this).data("origStyle")?Z(this).attr("style",Z(this).data("origStyle")):Z(this).removeAttr("style")}),void 0!==Z(this).data("origStyle")?this.attr("style",Z(this).data("origStyle")):Z(this).removeAttr("style"),Z(this).unwrap().unwrap(),c.controls.el&&c.controls.el.remove(),c.controls.next&&c.controls.next.remove(),c.controls.prev&&c.controls.prev.remove(),c.pagerEl&&c.settings.controls&&!c.settings.pagerCustom&&c.pagerEl.remove(),Z(".bx-caption",this).remove(),c.controls.autoEl&&c.controls.autoEl.remove(),clearInterval(c.interval),c.settings.responsive&&Z(window).off("resize",R),c.settings.keyboardEnabled&&Z(document).off("keydown",F),Z(this).removeData("bxSlider"),Z(window).off("blur",l).off("focus",a))},g.reloadSlider=function(t){void 0!==t&&(e=t),g.destroySlider(),o(),Z(g).data("bxSlider",this)},o(),Z(g).data("bxSlider",this),this}}}(jQuery);; 3!function(a,b){"use strict";var c=function(){var c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},d=function(){var b=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return b&&a("html").css("cursor","pointer").on("click",a.noop),b}(),e=function(){var a=document.documentElement.style;return"behavior"in a&&"fill"in a&&/iemobile/i.test(navigator.userAgent)}(),f=function(){return!!b.PointerEvent}(),g=function(a,b){var d=c.menuClass;b.cssArrows&&(d+=" "+c.menuArrowClass),a.toggleClass(d)},h=function(b,d){return b.find("li."+d.pathClass).slice(0,d.pathLevels).addClass(d.hoverClass+" "+c.bcClass).filter(function(){return a(this).children(d.popUpSelector).hide().show().length}).removeClass(d.pathClass)},i=function(a){a.children("a").toggleClass(c.anchorClass)},j=function(a){var b=a.css("ms-touch-action"),c=a.css("touch-action");c=c||b,c="pan-y"===c?"auto":"pan-y",a.css({"ms-touch-action":c,"touch-action":c})},k=function(b,c){var g="li:has("+c.popUpSelector+")";a.fn.hoverIntent&&!c.disableHI?b.hoverIntent(m,n,g):b.on("mouseenter.superfish",g,m).on("mouseleave.
3superfish",g,n);var h="MSPointerDown.superfish";f&&(h="pointerdown.superfish"),d||(h+=" touchend.superfish"),e&&(h+=" mousedown.superfish"),b.on("focusin.superfish","li",m).on("focusout.superfish","li",n).on(h,"a",c,l)},l=function(b){var c=a(this),d=q(c),e=c.siblings(b.data.popUpSelector);return d.onHandleTouch.call(e)===!1?this:void(e.length>0&&e.is(":hidden")&&(c.one("click.superfish",!1),"MSPointerDown"===b.type||"pointerdown"===b.type?c.trigger("focus"):a.proxy(m,c.parent("li"))()))},m=function(){var b=a(this),c=q(b);clearTimeout(c.sfTimer),b.siblings().superfish("hide").end().superfish("show")},n=function(){var b=a(this),c=q(b);d?a.proxy(o,b,c)():(clearTimeout(c.sfTimer),c.sfTimer=setTimeout(a.proxy(o,b,c),c.delay))},o=function(b){b.retainPath=a.inArray(this[0],b.$path)>-1,this.superfish("hide"),this.parents("."+b.hoverClass).length||(b.onIdle.call(p(this)),b.$path.length&&a.proxy(m,b.$path)())},p=function(a){return a.closest("."+c.menuClass)},q=function(a){return p(a).data("sf-options")};return{hide:function(b){if(this.length){var c=this,d=q(c);if(!d)return this;var e=d.retainPath===!0?d.$path:"",f=c.find("li."+d.hoverClass).add(this).not(e).removeClass(d.hoverClass).children(d.popUpSelector),g=d.speedOut;if(b&&(f.show(),g=0),d.retainPath=!1,d.onBeforeHide.call(f)===!1)return this;f.stop(!0,!0).animate(d.animationOut,g,function(){var b=a(this);d.onHide.call(b)})}return this},show:function(){var a=q(this);if(!a)return this;var b=this.addClass(a.hoverClass),c=b.children(a.popUpSelector);return a.onBeforeShow.call(c)===!1?this:(c.stop(!0,!0).animate(a.animation,a.speed,function(){a.onShow.call(c)}),this)},destroy:function(){return this.each(function(){var b,d=a(this),e=d.data("sf-options");return!!e&&(b=d.find(e.popUpSelector).parent("li"),clearTimeout(e.sfTimer),g(d,e),i(b),j(d),d.off(".superfish").off(".hoverIntent"),b.children(e.popUpSelector).attr("style",function(a,b){return b.replace(/display[^;]+;?/g,"")}),e.$path.removeClass(e.hoverClass+" "+c.bcClass).addClass(e.pathClass),d.find("."+e.hoverClass).removeClass(e.hoverClass),e.onDestroy.call(d),void d.removeData("sf-options"))})},init:function(b){return this.each(function(){var d=a(this);if(d.data("sf-options"))return!1;var e=a.extend({},a.fn.superfish.defaults,b),f=d.find(e.popUpSelector).parent("li");e.$path=h(d,e),d.data("sf-options",e),g(d,e),i(f),j(d),k(d,e),f.not("."+c.bcClass).superfish("hide",!0),e.onInit.call(this)})}}}();a.fn.superfish=function(b,d){return c[b]?c[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?a.error("Method "+b+" does not exist on jQuery.fn.superfish"):c.init.apply(this,arguments)},a.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:a.noop,onBeforeShow:a.noop,onShow:a.noop,onBeforeHide:a.noop,onHide:a.noop,onIdle:a.noop,onDestroy:a.noop,onHandleTouch:a.noop}}(jQuery,window);; 4(function(){var isIe=/(trident|msie)/i.test(navigator.userAgent);if(isIe&&document.getElementById&&window.addEventListener){window.addEventListener('hashchange',function(){var id=location.hash.substring(1),element;if(!(/^[A-z0-9_-]+$/.test(id))){return} 5element=document.getElementById(id);if(element){if(!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName))){element.tabIndex=-1} 6element.focus()}},!1)}})(); 7jQuery(document).ready(function(){!function(){var a,b,c;if(a=document.getElementsByClassName("header-search-box")[0],c=document.getElementsByClassName("search-wrapper"),b=c[0]?c[0].getElementsByClassName("search-icon")[0]:""){var d=function(b){return"hide"===b?void a.classList.remove("active"):(a.classList.toggle("active"),void(a.classList.contains("active")&&a.getElementsByTagName("input")[0].focus()))};b.onclick=function(){d()},document.addEventListener("keyup",function(b){a.classList.contains("active")&&27===b.keyCode&&d("hide")}),document.addEventListener("click",function(a){a.target.closest(".header-search-box")||a.target.closest(".search-icon")||d("hide")})}}
7(),jQuery(".bottom-header-wrapper .category-toggle").click(function(){jQuery("#category-navigation").slideToggle("slow"),jQuery(this).toggleClass("active")}),jQuery(window).scroll(function(){jQuery(this).scrollTop()>1e3?jQuery(".scrollup").fadeIn():jQuery(".scrollup").fadeOut()}),jQuery(".scrollup").click(function(){return jQuery("html, body").animate({scrollTop:0},2e3),!1})}),jQuery(window).on("load",function(){var a=Math.max(window.innerWidth,document.documentElement.clientWidth);a&&a>=768&&jQuery("#primary-menu").superfish({animation:{height:"show"},delay:.5}),jQuery(".category-slider .home-slider").bxSlider({caption:!0,auto:!0,controls:!0,pager:!1,nextText:'<i class="fa fa-angle-right"> </i>',prevText:'<i class="fa fa-angle-left"> </i>',infiniteLoop:!0,onSliderLoad:function(){jQuery(".home-slider").css("visibility","visible")}}),jQuery(".product-slider .home-slider").bxSlider({caption:!0,auto:!0,controls:!0,pager:!1,nextText:'<i class="fa fa-angle-right"> </i>',prevText:'<i class="fa fa-angle-left"> </i>',infiniteLoop:!0,onSliderLoad:function(){jQuery(".home-slider").css("visibility","visible")}}),jQuery(".featured-slider").bxSlider({caption:!0,auto:!1,controls:!0,pager:!1,nextText:'<i class="fa fa-angle-right"> </i>',prevText:'<i class="fa fa-angle-left"> </i>',minSlides:1,maxSlides:5,slideWidth:224,slideMargin:20,onSliderLoad:function(){jQuery(".featured-slider").css("visibility","visible")}})}),jQuery(".add_to_wishlist").click(function(a){jQuery(this).parent(".yith-wcwl-add-to-wishlist").children(".ajax-loading").css("display","block !important")}),jQuery(".toggle-wrap .toggle").click(function(a){jQuery("#primary-menu,#menu-mobile").slideToggle("slow")}),jQuery("#site-navigation .menu-item-has-children, #primary-menu .page_item_has_children").append('<span class="sub-toggle"> <i class="fa fa-angle-right"></i> </span>'),jQuery("#site-navigation .sub-toggle").click(function(){jQuery(this).parent(".menu-item-has-children").children("ul.sub-menu").first().slideToggle("1000"),jQuery(this).children(".fa-angle-right").first().toggleClass("fa-angle-down"),jQuery(this).parent(".page_item_has_children").children("ul.children").first().slideToggle("1000")}),jQuery(function(a){a(document).on("added_to_wishlist removed_from_wishlist",function(){var b=a(this).find(".cart-wishlist-btn .single_add_to_wishlist");b.removeClass("add_to_wishlist"),a.get(yith_wcwl_l10n.ajax_url,{action:"yith_wcwl_update_wishlist_count"},function(b){a(".wishlist-value").html(b.count)})})});;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.