(function(n,t){"use strict";var i="!important;",r="position:absolute"+i+"visibility:hidden"+i+"width:1em"+i+"font-size:1em"+i+"padding:0"+i;window.getEmPixels=function(u){var f,e,o;return u||(u=f=n.createElement("body"),f.style.cssText="font-size:1em"+i,t.insertBefore(f,n.body)),e=n.createElement("i"),e.style.cssText=r,u.appendChild(e),o=e.clientWidth,f?t.removeChild(f):u.removeChild(e),o}})(document,document.documentElement);(function(n,t,i){"use strict";var e=n.Sizzle||jQuery.find,r={},o=function(n,t,u,o,s){if(n=f(n),n!=""){var h;o||s||(h=/^([0-9]*.?[0-9]+)(px|em)$/.exec(u),h!=null&&(o=Number(h[1]),o+""!="NaN"&&(s=h[2]))),s&&(e.compile&&e.compile(n),r[n]===i&&(r[n]={}),r[n][t]===i&&(r[n][t]={}),r[n][t][u]=[o,s])}},h=function(n,t){var i,r,f;for(i in n)for(r in n[i])if(typeof n[i][r]=="string")o(i,r,n[i][r]);else if(typeof n[i][r]=="object")for(f=0;f=0;)r=r.replace(" "+u+" "," "),e=!0;e&&n.setAttribute(t,f(r))}},u=function(){var o,h,i,s,a,u,f,v;for(o in r)if(a=e(o),a.length>0)for(h=0;h=f||i=="max-width"&&u.offsetWidth<=f||i=="min-height"&&u.offsetHeight>=f||i=="max-height"&&u.offsetHeight<=f?c(u,i,s):l(u,i,s)}!n.addEventListener&&n.attachEvent&&(v=t.documentElement.className,t.documentElement.className=" "+v,t.documentElement.className=v)};n.elementQuery=function(n,t){!n||typeof n!="object"||n.cssRules||n.rules?n||t||u():h(n,t)},n.elementQuery.selectors=function(){},n.addEventListener?(n.addEventListener("resize",u,!1),n.addEventListener("DOMContentLoaded",u,!1),n.addEventListener("load",u,!1)):n.attachEvent&&(n.attachEvent("onresize",u),n.attachEvent("onload",u))})(this,document,undefined);jQuery(document).ready(function(i){i(".bsp-wrapper").on("click",".bsp-videos-items a",function(e){e.preventDefault();var l=i(this),r=l.closest(".bsp-wrapper"),s=l.closest(".bsp-wrapper").find(".bsp-player"),t=i(this).data("video-id"),n=s.data("frame-url").replace("{video-id}",t);s.html(''),l.closest("li").addClass("bsp-current-item").siblings("li").removeClass("bsp-current-item");var a=r.find(".bsp-current-item .bsp-video-index").html();r.find(".bsp-current-playing .bsp-current-index").html(a)}),"function"==typeof elementQuery&&elementQuery({".bsp-wrapper":{"max-width":["480px","680px","780px"]}})});var Better_Social_Counter=function(){"use strict";return{init:function(){this.fix_element_query()},fix_element_query:function(){"function"==typeof elementQuery&&elementQuery({".better-social-counter":{"max-width":["358px","199px","230px","900px","530px","750px"]},".better-social-banner":{"max-width":["250px"]}})}}}(jQuery);jQuery(function(e){Better_Social_Counter.init()});!function(d){"use strict";var o={},n={};function l(e){(e=void 0===e||e)&&d(window).scroll()}function t(e){return this.prefix="bs_ajax_paginate_",this.deferredPrefix="bs_deferred_loading_",this.isPrevPage=!1,this.$link_el=!1,this.id=!1,this.paginationStyle=!1,this.settings=d.extend({afterSuccessDeferredAjax:function(){}},e),this}t.prototype.init=function(e){var o=this;d(e).on("click",".bs-ajax-pagination a",function(e){e.preventDefault();var a=d(this),t=a.parent();if(a.hasClass("disabled")||t.hasClass("bs-pagination-loading"))return!1;t.addClass("bs-pagination-loading");var n=a.closest(".bs-pagination");o.$link_el=a,o.id=a.data("id");try{if(!o.id)throw"invalid element";o.setNewPageNumber(),o.paginationStyle=o.getPaginationStyle();var i=o.getAjaxProps(),s=n.prevAll(".bs-pagination-wrapper"),r=o.cache_get(i.current_page,o.id);if("object"==typeof r)s.addClass("bs-pagination-cached"),o.handle_response(r),t.removeClass("bs-pagination-loading");else{switch(s.removeClass("bs-pagination-cached"),2==i.current_page&&o.cache_add(1,{output:s.html(),label:n.find(".bs-pagination-label").html(),have_next:!0,have_prev:!1},o.id),o.paginationStyle){case"next_prev":s.children().addClass("bs-pagination-in-loading"),s.prepend(o.getLoadingRawHtml());break;case"more_btn_infinity":a.find(".loaded").hide(),a.find(".loading").show(),a.removeClass("more_btn_infinity").addClass("infinity").addClass("bs-pagination-in-loading"),n.removeClass("more_btn_infinity").addClass("infinity");break;case"infinity":case"more_btn":a.addClass("bs-pagination-in-loading"),a.find(".loaded").hide(),a.find(".loading").show()}d.ajax({url:i.ajax_url,type:"POST",dataType:"json",data:i}).fail(function(e){switch(t.removeClass("bs-pagination-loading"),o.paginationStyle){case"more_btn_infinity":case"next_prev":s.find(".bs-pagin-loading-wrapper").remove(),a.addClass("bs-pagination-in-loading");break;case"infinity":case"more_btn":a.addClass("bs-pagination-in-loading"),a.find(".loaded").show(),a.find(".loading").hide()}"abort"!==e.statusText&&alert("cannot load data. please check your internet connection!")}).done(function(e){switch(o.handle_response(e),o.cacheThisStyle(o.paginationStyle)&&o.cache_add(i.current_page,e,o.id),o.paginationStyle){case"more_btn_infinity":a.removeClass("bs-pagination-in-loading"),s.find(".bs-pagin-loading-wrapper").remove();break;case"next_prev":a.removeClass("bs-pagination-in-loading"),s.find(".bs-pagin-loading-wrapper").remove(),s.children().removeClass("bs-pagination-in-loading");break;case"infinity":case"more_btn":a.removeClass("bs-pagination-in-loading"),a.find(".loaded").show(),a.find(".loading").hide()}t.removeClass("bs-pagination-loading")})}}catch(e){o.debug(e)}}),"function"==typeof OnScreen&&new OnScreen({tolerance:0,debounce:100,container:window}).on("enter",".bs-ajax-pagination.infinity",function(e){d(e).find("a").click()})},t.prototype.filter_slider_params=function(e){return void 0!==e.autoplayspeed&&(e.autoplaySpeed=e.autoplayspeed),e.dots=void 0!==e.sliderControlDots&&"off"!==e.sliderControlDots,e.autoplay=void 0!==e.sliderAutoplay&&parseInt(e.sliderAutoplay),e.speed=e.sliderAnimationSpeed,void 0!==e.sliderControlNextPrev&&"off"==e.sliderControlNextPrev&&(e.appendArrows=!1),e},t.prototype.handler_slider=function(e){var i=this;d.fn.slick&&(d(".bs-slider-items-container",e).each(function(){var e=d(this),a=d(document.body).hasClass("rtl");if(!e.hasClass("slick-ready")){var t=e.data(),n=i.filter_slider_params(d.extend({sliderControlDots:"off",prevArrow:'',nextArrow:'',rtl:a,slideMargin:25,slide:".bs-slider-item",appendArrows:e.find(".bs-slider-controls .bs-control-nav"),classPrefix:"bs-slider-",dotsClass:"bs-slider-dots",customPaging:function(e,a){return d('').text(a+1)}},t));n.sliderControlDots&&t.sliderControlDots&&(n.appendDots=e.find(".bs-slider-controls"),n.dotsClass+=" "+n.dotsClass+"-"+t.sliderControlDots),e.slick(n),e.addClass("slick-ready")}}),d(".multi-tab").on("shown.bs.tab",'a[data-toggle="tab"]:not([data-deferred-init])',function(e){var a=d(e.target).attr("href");d(a).find(".bs-slider-items-container").slick("setPosition"),l()}))},t.prototype.refreshLazyImages=function(){Publisher_Theme&&Publisher_Theme.refreshLazyImages&&Publisher_Theme.refreshLazyImages()},t.prototype.bindDeferredEvents=function(e){var i=200,s=this,r=0;d(".multi-tab",e).on("show.bs.tab","a[data-deferred-init]",function(e){var a=d(this).closest(".multi-tab").find(".active").attr("href");i=d(a).height()}),d(".tabs-section",e).on("show.bs.tab","a[data-deferred-init]",function(e){var a=d(this).closest(".tabs-section").find(".active:visible a").data("target"),t=d(a);i=t.height()}).on("show.bs.tab","a",function(){s.refreshLazyImages();var e=d(this).closest(".tabs-section").find(".active:visible a").data("target"),a=d(e),t=a.outerHeight();if(t){var n=a.closest(".tab-content");if(n.length){var i=Math.max(t,parseInt(n.outerHeight()));i=Math.max(i,r),n.css("min-height",i).data("bs-height",i),r=i}}}),d("a[data-deferred-init]",e).each(function(e){var a=d(this),t=a.data("deferred-event")||"click";0",{class:"deferred-loading-container",height:i.loadingHeight}),t=a.find(".bs-pagination");!i.loadingMinHeight||t&&t.hasClass("more_btn")||e.css("min-height",i.loadingMinHeight),e.append(r.getLoadingRawHtml()),e.appendTo(a)}r.id=a.attr("id");var n=r.getAjaxProps("deferred");"object"==typeof o[r.id]&&o[r.id].abort(),o[r.id]=d.ajax({url:n.ajax_url,type:"POST",dataType:"json",data:n}).done(function(e){a.find(".deferred-loading-container").remove(),delete o[r.id],a.addClass("deferred-html-exists").append(e.output),r.handler_slider(a),s&&s.call(a,e),l(!a.closest(".bs-pinning-block.pinned").length),r.settings.afterSuccessDeferredAjax.call(r,a,e)})}})},t.prototype.getLoadingRawHtml=function(){return'
'+bs_pagination_loc.loading+"
"},t.prototype.getAjaxProps=function(e){var a,t=("deferred"===(e=e||"pagination")?this.deferredPrefix:this.prefix)+this.id;if(void 0===window[t])throw"pagination settings not set";switch((a=jQuery.parseJSON(window[t]))._data=a.data,e.toLowerCase()){case"pagination":a.action="pagination_ajax",a.current_page=this.$link_el.parent().data("current-page")||1,a.pagin_type=this.paginationStyle;break;case"deferred":a.action="deferred_loading",a.current_page=1}if(this.$link_el){var n=this.$link_el.closest(".bs-pagination").data("bs-pagin-data");n&&(a._data=n)}return a},t.prototype.setNewPageNumber=function(){var e=this.$link_el.parent(),a=e.data("current-page")||1;if(this.isPrevPage=this.$link_el.hasClass("prev"),this.isPrevPage){if(a<2)throw"Wrong page number!";a--}else a++;e.data("current-page",a)},t.prototype.debug=function(e){console.error(e)},t.prototype.cacheThisStyle=function(e){return"next_prev"===e},t.prototype.getPaginationStyle=function(){for(var e,a=["next_prev","more_btn","more_btn_infinity","infinity"],t=this.$link_el.closest(".bs-pagination"),n=0;nPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('