/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}); ; var strict;jQuery(document).ready(function(t){function n(e){if("undefined"!=typeof mashsb&&1==mashsb.round_shares){if(e>1e6)return shares=Math.round(e/1e6*10)/10+"M",shares;if(e>1e3)return shares=Math.round(e/1e3*10)/10+"k",shares}return e.toFixed(0)}(navigator.userAgent.match(/(iPhone)/i)||navigator.userAgent.match(/(Android)/i))&&t(".mashicon-whatsapp").show();t("body").off("click",".mashicon-pinterest").on("click",".mashicon-pinterest",function(e){e.preventDefault(),console.log("preventDefault:"+e),winWidth=520,winHeight=350;var n=screen.height/2-winHeight/2,i=screen.width/2-winWidth/2,s=t(this).attr("data-mashsb-url");window.open(s,"sharer","top="+n+",left="+i+",toolbar=0,status=0,width="+winWidth+",height="+winHeight+",resizable=yes")}),""==t(".mashsbcount").text()&&t(".mashsbcount").text(0),t(".onoffswitch").on("click",function(){var e=t(this).parents(".mashsb-container");e.find(".onoffswitch").hide(),e.find(".secondary-shares").show(),e.find(".onoffswitch2").show()}),t(".onoffswitch2").on("click",function(){var e=t(this).parents(".mashsb-container");e.find(".onoffswitch").show(),e.find(".secondary-shares").hide()}),"undefined"==typeof lashare_fb&&"undefined"!=typeof mashsb&&t(".mashicon-facebook").click(function(){winWidth=520,winHeight=550;var n=screen.height/2-winHeight/2,i=screen.width/2-winWidth/2,s=t(this).attr("href");return window.open(s,"sharer","top="+n+",left="+i+",toolbar=0,status=0,width="+winWidth+",height="+winHeight),e.preventDefault(),!1}),"undefined"!=typeof mashsb&&t(".mashicon-twitter").click(function(e){winWidth=520,winHeight=350;var n=screen.height/2-winHeight/2,i=screen.width/2-winWidth/2,s=t(this).attr("href");return"1"===mashsb.twitter_popup&&window.open(s,"sharer","top="+n+",left="+i+",toolbar=0,status=0,width="+winWidth+",height="+winHeight),e.preventDefault(),!1}),"undefined"!=typeof mashsb&&"content"===mashsb.subscribe&&(t(".mashicon-subscribe").not(".trigger_active").nearest(".mashsb-toggle-container").hide(),t(".mashicon-subscribe").click(function(){var e=t(this);return e.hasClass("trigger_active")?(t(e).nearest(".mashsb-toggle-container").slideToggle("fast"),e.removeClass("trigger_active")):(t(".trigger_active").nearest(".mashsb-toggle-container").slideToggle("slow"),t(".trigger_active").removeClass("trigger_active"),t(e).nearest(".mashsb-toggle-container").slideToggle("fast"),e.addClass("trigger_active")),!1})),"undefined"!=typeof mashsb&&"link"===mashsb.subscribe&&t(".mashicon-subscribe").click(function(){var e=mashsb.subscribe_url;t(this).attr("href",e)}),function(e){e.fn.countTo=function(t){return t=t||{},e(this).each(function(){function n(){f+=r,c++,i(f),"function"==typeof s.onUpdate&&s.onUpdate.call(o,f),c>=a&&(h.removeData("countTo"),clearInterval(l.interval),f=s.to,"function"==typeof s.onComplete&&s.onComplete.call(o,f))}function i(e){var t=s.formatter.call(o,e,s);h.text(t)}var s=e.extend({},e.fn.countTo.defaults,{from:e(this).data("from"),to:e(this).data("to"),speed:e(this).data("speed"),refreshInterval:e(this).data("refresh-interval"),decimals:e(this).data("decimals")},t),a=Math.ceil(s.speed/s.refreshInterval),r=(s.to-s.from)/a,o=this,h=e(this),c=0,f=s.from,l=h.data("countTo")||{};h.data("countTo",l),l.interval&&clearInterval(l.interval),l.interval=setInterval(n,s.refreshInterval),i(f)})},e.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:n,onUpdate:null,onComplete:null}}(jQuery),"undefined"!=typeof mashsb&&1==mashsb.animate_shares&&t(".mashsbcount").length&&t(".mashsbcount").countTo({from:0,to:mashsb.shares,speed:1e3,refreshInterval:100})}),function(e,t){e.fn.nearest=function(n){function i(t){a=a?a.add(t):e(t)}var s,a,r,o,h,c=t.querySelectorAll;return this.each(function(){s=this,e.each(n.split(","),function(){if(o=e.trim(this),o.indexOf("#"))for(h=s.parentNode;h;){if(r=c?h.querySelectorAll(o):e(h).find(o),r.length){i(r);break}h=h.parentNode}else i(c?t.querySelectorAll(o):e(o))})}),a||e()}}(jQuery,document);; (function($){function isInViewport(element){var bounding=element.getBoundingClientRect();if(bounding.top>=0&&bounding.left>=0&&bounding.right<=(window.innerWidth||document.documentElement.clientWidth)&&bounding.bottom<=(window.innerHeight||document.documentElement.clientHeight)){return!0} return!1} var newsletterFocus=!1;var newsletterUnfocus=!1})(jQuery);