var isMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows()}};!function($){"use strict";$.fn.kt_imagesLoaded=function(){var t=function(t,e,n){var i,r=!1,a=$(t).parent(),o=$(""),l=$(t).attr("srcset"),u=$(t).attr("sizes")||"100vw",s=$(t).attr("src"),c=function(){o.off("load error",c),clearTimeout(i),e()};n&&(i=setTimeout(c,n)),o.on("load error",c),a.is("picture")&&(a=a.clone(),a.find("img").remove().end(),a.append(o),r=!0),l?(o.attr("sizes",u),o.attr("srcset",l),r||o.appendTo(document.createElement("div")),r=!0):s&&o.attr("src",s),r&&!window.HTMLPictureElement&&(window.respimage?window.respimage({elements:[o[0]]}):window.picturefill?window.picturefill({elements:[o[0]]}):s&&o.attr("src",s))};return function(e){var n=0,i=$("img",this).add(this.filter("img")),r=function(){n++,n>=i.length&&e()};return i.length?(i.each(function(){t(this,r)}),this):e()}}()}(jQuery),jQuery(document).ready(function($){function t(t,e){return/(png|jpg|jpeg|gif|tiff|bmp)$/.test($(e).attr("href").toLowerCase().split("?")[0].split("#")[0])}function e(){$("a[href]").filter(t).attr("data-rel","lightbox")}$("[rel=tooltip]").tooltip(),$("[data-toggle=tooltip]").tooltip(),$("[rel=popover]").popover(),$("#authorTab a").click(function(t){t.preventDefault(),$(this).tab("show")}),$(".sc_tabs a").click(function(t){t.preventDefault(),$(this).tab("show")}),$(".videofit").fitVids(),$(".woocommerce-ordering .orderby").customSelect(),$(".kad-select").customSelect(),$.extend(!0,$.magnificPopup.defaults,{tClose:"",image:{titleSrc:function(t){return t.el.find("img").attr("alt")}}}),$(".collapse-next").click(function(t){var e=$(this).siblings(".sf-dropdown-menu");e.hasClass("in")?(e.collapse("toggle"),$(this).removeClass("toggle-active")):(e.collapse("toggle"),$(this).addClass("toggle-active"))}),e(),$("a[rel^='lightbox']").magnificPopup({type:"image"}),$("a[data-rel^='lightbox']").magnificPopup({type:"image"}),$(".kad-light-gallery").each(function(){$(this).find('a[rel^="lightbox"]').magnificPopup({type:"image",gallery:{enabled:!0},image:{titleSrc:"title"}})}),$(".kad-light-gallery").each(function(){$(this).find("a[data-rel^='lightbox']").magnificPopup({type:"image",gallery:{enabled:!0},image:{titleSrc:"title"}})}),$(".kad-light-wp-gallery").each(function(){$(this).find('a[rel^="lightbox"]').magnificPopup({type:"image",gallery:{enabled:!0},image:{titleSrc:function(t){return t.el.find("img").attr("alt")}}})}),$(".kad-light-wp-gallery").each(function(){$(this).find("a[data-rel^='lightbox']").magnificPopup({type:"image",gallery:{enabled:!0},image:{titleSrc:function(t){return t.el.find("img").attr("alt")}}})}),$("ul.sf-menu").superfish({delay:200,animation:{opacity:"show",height:"show"},speed:"fast"}),$(".kt-flexslider").each(function(){var t=$(this).data("flex-speed"),e=$(this).data("flex-animation"),n=$(this).data("flex-anim-speed"),i=$(this).data("flex-auto");$(this).flexslider({animation:e,animationSpeed:n,slideshow:i,slideshowSpeed:t,start:function(t){t.removeClass("loading")}})}),$(".kt-flexslider-thumb").each(function(){var t=$(this).data("flex-speed"),e=$(this).data("flex-animation"),n=$(this).data("flex-anim-speed"),i=$(this).data("flex-auto");$("#thumbnails").flexslider({animation:"slide",controlNav:!1,animationLoop:!1,slideshow:!1,itemWidth:180,itemMargin:5,asNavFor:"#flex"}),$("#flex").flexslider({animation:e,controlNav:!1,animationLoop:!1,animationSpeed:n,slideshow:i,slideshowSpeed:t,sync:"#thumbnails",before:function(t){t.removeClass("loading")}})}),$(".init-masonry").each(function(){var t=$(this),e=$(this).data("masonry-selector");if($("body.rtl").length)var n=!1;else var n=!0;t.kt_imagesLoaded(function(){t.masonry({itemSelector:e,isOriginLeft:n})})}),$(".kt-masonry-init").each(function(){var t=$(this),e=$(this).data("masonry-selector");if($("body.rtl").length)var n=!1;else var n=!0;t.kt_imagesLoaded(function(){t.masonry({itemSelector:e,isOriginLeft:n})})}),jQuery(".initcaroufedsel").each(function(){function t(){var t;return t=jQuery(window).width()<=540?h.width()/s:jQuery(window).width()<=768?h.width()/c:jQuery(window).width()<=990?h.width()/d:h.width()/f}function e(){var e=t()-1;i.children().css({width:e})}function n(){i.carouFredSel({scroll:{items:1,easing:"swing",duration:o,pauseOnHover:!0},auto:{play:l,timeoutDuration:a},prev:"#prevport-"+u,next:"#nextport-"+u,pagination:!1,swipe:!0,items:{visible:null}})}var i=jQuery(this),r=i.data("carousel-container"),a=i.data("carousel-speed"),o=i.data("carousel-transition"),l=i.data("carousel-auto"),u=i.data("carousel-id"),s=i.data("carousel-ss"),c=i.data("carousel-xs"),d=i.data("carousel-sm"),f=i.data("carousel-md"),h=jQuery(r);e(),i.kt_imagesLoaded(function(){n()}),h.animate({opacity:1}),jQuery(window).on("debouncedresize",function(t){i.trigger("destroy"),e(),n()})}),jQuery(".initcarouselslider").each(function(){function t(){var t=n.width();n.children().css({width:t}),jQuery(window).width()<=768&&(u=null,n.children().css({height:"auto"}))}function e(){n.carouFredSel({width:"100%",height:u,align:s,auto:{play:o,timeoutDuration:r},scroll:{items:1,easing:"quadratic"},items:{visible:1,width:"variable"},prev:"#prevport-"+l,next:"#nextport-"+l,swipe:{onMouse:!1,onTouch:!0}})}var n=jQuery(this),i=n.data("carousel-container"),r=n.data("carousel-speed"),a=n.data("carousel-transition"),o=n.data("carousel-auto"),l=n.data("carousel-id"),u=n.data("carousel-height"),s="center",c=jQuery(i);t(),n.kt_imagesLoaded(function(){e(),c.animate({opacity:1}),c.css({height:"auto"}),c.parent().removeClass("loading")}),jQuery(window).on("debouncedresize",function(i){n.trigger("destroy"),t(),e()})}),$("html").removeClass("no-js"),$("html").addClass("js-running")}),isMobile.any()&&jQuery(document).ready(function($){matchMedia("only screen and (max-width: 480px)").addListener(function(t){$("select.hasCustomSelect").removeAttr("style"),$("select.hasCustomSelect").css({width:"250px"}),$(".kad-select.customSelect").remove(),$("select.kad-select").customSelect(),$(".customSelectInner").css("width","100%")})});var ua=navigator.userAgent.toLowerCase(),isAndroid=ua.indexOf("android")>-1;isAndroid&&(!function(t){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],t):t(jQuery)}(function(t){function e(e){return!e||void 0!==e.allowPageScroll||void 0===e.tswipe&&void 0===e.tswipeStatus||(e.allowPageScroll=s),void 0!==e.click&&void 0===e.tap&&(e.tap=e.click),e||(e={}),e=t.extend({},t.fn.tswipe.defaults,e),this.each(function(){var i=t(this),r=i.data(E);r||(r=new n(this,e),i.data(E,r))})}function n(e,n){function k(e){if(!(ut()||t(e.target).closest(n.excludedElements,zt).length>0)){var i=e.originalEvent?e.originalEvent:e,r,a=O?i.touches[0]:i;return Ft=b,O?qt=i.touches.length:e.preventDefault(),Ct=0,Rt=null,Bt=null,_t=0,Nt=0,It=0,Ht=1,Ut=0,Xt=ht(),Wt=wt(),ot(),!O||qt===n.fingers||n.fingers===v||B()?(ct(0,a),Yt=Et(),2==qt&&(ct(1,i.touches[1]),Nt=It=yt(Xt[0].start,Xt[1].start)),(n.tswipeStatus||n.pinchStatus)&&(r=D(i,Ft))):r=!1,r===!1?(Ft=S,D(i,Ft),r):(st(!0),null)}}function L(t){var e=t.originalEvent?t.originalEvent:t;if(Ft!==x&&Ft!==S&&!lt()){var i,r=O?e.touches[0]:e,a=dt(r);if(Vt=Et(),O&&(qt=e.touches.length),Ft=T,2==qt&&(0==Nt?(ct(1,e.touches[1]),Nt=It=yt(Xt[0].start,Xt[1].start)):(dt(e.touches[1]),It=yt(Xt[0].end,Xt[1].end),Bt=Tt(Xt[0].end,Xt[1].end)),Ht=bt(Nt,It),Ut=Math.abs(Nt-It)),qt===n.fingers||n.fingers===v||!O||B()){if(Rt=Ot(a.start,a.end),H(t,Rt),Ct=xt(a.start,a.end),_t=vt(),pt(Rt,Ct),(n.tswipeStatus||n.pinchStatus)&&(i=D(e,Ft)),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var o=!0;if(n.triggerOnTouchLeave){var l=kt(this);o=Lt(a.end,l)}!n.triggerOnTouchEnd&&o?Ft=Q(T):n.triggerOnTouchLeave&&!o&&(Ft=Q(x)),Ft!=S&&Ft!=x||D(e,Ft)}}else Ft=S,D(e,Ft);i===!1&&(Ft=S,D(e,Ft))}}function M(t){var e=t.originalEvent;return O&&e.touches.length>0?(at(),!0):(lt()&&(qt=Zt),t.preventDefault(),Vt=Et(),_t=vt(),_()?(Ft=S,D(e,Ft)):n.triggerOnTouchEnd||0==n.triggerOnTouchEnd&&Ft===T?(Ft=x,D(e,Ft)):!n.triggerOnTouchEnd&&V()?(Ft=x,C(e,Ft,h)):Ft===T&&(Ft=S,D(e,Ft)),st(!1),null)}function j(){qt=0,Vt=0,Yt=0,Nt=0,It=0,Ht=1,ot(),st(!1)}function P(t){var e=t.originalEvent;n.triggerOnTouchLeave&&(Ft=Q(x),D(e,Ft))}function A(){zt.unbind(jt,k),zt.unbind(Dt,j),zt.unbind(Pt,L),zt.unbind(At,M),Qt&&zt.unbind(Qt,P),st(!1)}function Q(t){var e=t,i=I(),r=R(),a=_();return!i||a?e=S:!r||t!=T||n.triggerOnTouchEnd&&!n.triggerOnTouchLeave?!r&&t==x&&n.triggerOnTouchLeave&&(e=S):e=x,e}function D(t,e){var n=void 0;return q()||F()?n=C(t,e,d):(W()||B())&&n!==!1&&(n=C(t,e,f)),it()&&n!==!1?n=C(t,e,p):rt()&&n!==!1?n=C(t,e,g):nt()&&n!==!1&&(n=C(t,e,h)),e===S&&j(t),e===x&&(O?0==t.touches.length&&j(t):j(t)),n}function C(e,s,c){var w=void 0;if(c==d){if(zt.trigger("tswipeStatus",[s,Rt||null,Ct||0,_t||0,qt]),n.tswipeStatus&&(w=n.tswipeStatus.call(zt,e,s,Rt||null,Ct||0,_t||0,qt),w===!1))return!1;if(s==x&&z()){if(zt.trigger("tswipe",[Rt,Ct,_t,qt]),n.tswipe&&(w=n.tswipe.call(zt,e,Rt,Ct,_t,qt),w===!1))return!1;switch(Rt){case i:zt.trigger("tswipeLeft",[Rt,Ct,_t,qt]),n.tswipeLeft&&(w=n.tswipeLeft.call(zt,e,Rt,Ct,_t,qt));break;case r:zt.trigger("tswipeRight",[Rt,Ct,_t,qt]),n.tswipeRight&&(w=n.tswipeRight.call(zt,e,Rt,Ct,_t,qt));break;case a:zt.trigger("tswipeUp",[Rt,Ct,_t,qt]),n.tswipeUp&&(w=n.tswipeUp.call(zt,e,Rt,Ct,_t,qt));break;case o:zt.trigger("tswipeDown",[Rt,Ct,_t,qt]),n.tswipeDown&&(w=n.tswipeDown.call(zt,e,Rt,Ct,_t,qt))}}}if(c==f){if(zt.trigger("pinchStatus",[s,Bt||null,Ut||0,_t||0,qt,Ht]),n.pinchStatus&&(w=n.pinchStatus.call(zt,e,s,Bt||null,Ut||0,_t||0,qt,Ht),w===!1))return!1;if(s==x&&U())switch(Bt){case l:zt.trigger("pinchIn",[Bt||null,Ut||0,_t||0,qt,Ht]),n.pinchIn&&(w=n.pinchIn.call(zt,e,Bt||null,Ut||0,_t||0,qt,Ht));break;case u:zt.trigger("pinchOut",[Bt||null,Ut||0,_t||0,qt,Ht]),n.pinchOut&&(w=n.pinchOut.call(zt,e,Bt||null,Ut||0,_t||0,qt,Ht))}}return c==h?s!==S&&s!==x||(clearTimeout(Jt),G()&&!K()?($t=Et(),Jt=setTimeout(t.proxy(function(){$t=null,zt.trigger("tap",[e.target]),n.tap&&(w=n.tap.call(zt,e,e.target))},this),n.doubleTapThreshold)):($t=null,zt.trigger("tap",[e.target]),n.tap&&(w=n.tap.call(zt,e,e.target)))):c==p?s!==S&&s!==x||(clearTimeout(Jt),$t=null,zt.trigger("doubletap",[e.target]),n.doubleTap&&(w=n.doubleTap.call(zt,e,e.target))):c==g&&(s!==S&&s!==x||(clearTimeout(Jt),$t=null,zt.trigger("longtap",[e.target]),n.longTap&&(w=n.longTap.call(zt,e,e.target)))),w}function R(){var t=!0;return null!==n.threshold&&(t=Ct>=n.threshold),t}function _(){var t=!1;return null!==n.cancelThreshold&&null!==Rt&&(t=gt(Rt)-Ct>=n.cancelThreshold),t}function N(){return null!==n.pinchThreshold?Ut>=n.pinchThreshold:!0}function I(){var t;return t=n.maxTimeThreshold?!(_t>=n.maxTimeThreshold):!0}function H(t,e){if(n.allowPageScroll===s||B())t.preventDefault();else{var l=n.allowPageScroll===c;switch(e){case i:(n.tswipeLeft&&l||!l&&n.allowPageScroll!=w)&&t.preventDefault();break;case r:(n.tswipeRight&&l||!l&&n.allowPageScroll!=w)&&t.preventDefault();break;case a:(n.tswipeUp&&l||!l&&n.allowPageScroll!=m)&&t.preventDefault();break;case o:(n.tswipeDown&&l||!l&&n.allowPageScroll!=m)&&t.preventDefault()}}}function U(){var t=X(),e=Y(),n=N();return t&&e&&n}function B(){return!!(n.pinchStatus||n.pinchIn||n.pinchOut)}function W(){return!(!U()||!B())}function z(){var t=I(),e=R(),n=X(),i=Y(),r=_(),a=!r&&i&&n&&e&&t;return a}function F(){return!!(n.tswipe||n.tswipeStatus||n.tswipeLeft||n.tswipeRight||n.tswipeUp||n.tswipeDown)}function q(){return!(!z()||!F())}function X(){return qt===n.fingers||n.fingers===v||!O}function Y(){return 0!==Xt[0].end.x}function V(){return!!n.tap}function G(){return!!n.doubleTap}function Z(){return!!n.longTap}function J(){if(null==$t)return!1;var t=Et();return G()&&t-$t<=n.doubleTapThreshold}function K(){return J()}function tt(){return(1===qt||!O)&&(isNaN(Ct)||0===Ct)}function et(){return _t>n.longTapThreshold&&y>Ct}function nt(){return!(!tt()||!V())}function it(){return!(!J()||!G())}function rt(){return!(!et()||!Z())}function at(){Gt=Et(),Zt=event.touches.length+1}function ot(){Gt=0,Zt=0}function lt(){var t=!1;if(Gt){var e=Et()-Gt;e<=n.fingerReleaseThreshold&&(t=!0)}return t}function ut(){return!(zt.data(E+"_intouch")!==!0)}function st(t){t===!0?(zt.bind(Pt,L),zt.bind(At,M),Qt&&zt.bind(Qt,P)):(zt.unbind(Pt,L,!1),zt.unbind(At,M,!1),Qt&&zt.unbind(Qt,P,!1)),zt.data(E+"_intouch",t===!0)}function ct(t,e){var n=void 0!==e.identifier?e.identifier:0;return Xt[t].identifier=n,Xt[t].start.x=Xt[t].end.x=e.pageX||e.clientX,Xt[t].start.y=Xt[t].end.y=e.pageY||e.clientY,Xt[t]}function dt(t){var e=void 0!==t.identifier?t.identifier:0,n=ft(e);return n.end.x=t.pageX||t.clientX,n.end.y=t.pageY||t.clientY,n}function ft(t){for(var e=0;e=e;e++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}function pt(t,e){e=Math.max(e,gt(t)),Wt[t].distance=e}function gt(t){return Wt[t]?Wt[t].distance:void 0}function wt(){var t={};return t[i]=mt(i),t[r]=mt(r),t[a]=mt(a),t[o]=mt(o),t}function mt(t){return{direction:t,distance:0}}function vt(){return Vt-Yt}function yt(t,e){var n=Math.abs(t.x-e.x),i=Math.abs(t.y-e.y);return Math.round(Math.sqrt(n*n+i*i))}function bt(t,e){var n=e/t*1;return n.toFixed(2)}function Tt(){return 1>Ht?u:l}function xt(t,e){return Math.round(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)))}function St(t,e){var n=t.x-e.x,i=e.y-t.y,r=Math.atan2(i,n),a=Math.round(180*r/Math.PI);return 0>a&&(a=360-Math.abs(a)),a}function Ot(t,e){var n=St(t,e);return 45>=n&&n>=0?i:360>=n&&n>=315?i:n>=135&&225>=n?r:n>45&&135>n?o:a}function Et(){var t=new Date;return t.getTime()}function kt(e){e=t(e);var n=e.offset(),i={left:n.left,right:n.left+e.outerWidth(),top:n.top,bottom:n.top+e.outerHeight()};return i}function Lt(t,e){return t.x>e.left&&t.xe.top&&t.y