(function () {
const links = document.getElementsByTagName('a');
for (let i = 0; i < links.length; i++) {
if (links[i].hostname != window.location.hostname) {
links[i].target = '_blank';
}
}
})();
;
jQuery(function($) {
$('[data-opinionstage-embed-url]').each(function( ) {
var $widgetEmbedded = $(this)
var url = $widgetEmbedded.data('opinionstage-embed-url')
$.getJSON( url ).
done( function( data ) {
$widgetEmbedded.after(data.code)
})
.fail(function(jqxhr, textStatus, error) {
console.error( "[social-polls-by-opinionstage] can't load widget embed code" )
})
})
})
;
(()=>{"use strict";const e={init(){this.pageSkinAds()},pageSkinAds(){const e=()=>{if(this.breakpoint=window.matchMedia("(max-width: 1850px)"),this.breakpoint.matches)return;const e=document.querySelector(".js-pageskin-ads");if(e){const t=document.querySelector("#content > .wrapper"),s=e.querySelector(".page-skin-ad--left"),a=e.querySelector(".page-skin-ad--right");if(t&&(s||a)){const i=t.getBoundingClientRect(),n=(window.innerWidth-i.width)/2,o=160;let r=n-o-20,d=n-o-20;r<0&&(r=0),d<0&&(d=0);let c=i.top>0?i.top:50;document.body.classList.contains("admin-bar")&&(c+=32),e.style.top=`${c}px`,s&&(s.style.left=`${r}px`),a&&(a.style.right=`${d}px`),e.classList.add("show")}}};let t;e(),window.addEventListener("jumpPoints:added",(()=>{e()})),document.addEventListener("scroll",e),window.addEventListener("resize",(()=>{clearTimeout(t),t=setTimeout((()=>{e()}),500)}))}};var t;jQuery(document).ready((function(){if(jQuery(".post-content").length&&jQuery(window).width()<979){let n=jQuery(".post-content .editable-content");n.length||(n=jQuery(".post-content"));var e=n.find("> p").size(),t=Math.round(e/3),s=2*t,a=jQuery("#aside .cta.side-ad-1").html(),i=jQuery("#aside .cta.side-ad-2").html();jQuery(".post-content p:eq("+t+")").after('
'+a+"
"),jQuery(".post-content p:eq("+s+")").after(''+i+"
"),jQuery("#aside .cta.side-ad").each((function(){jQuery(this).remove()}))}jQuery("body").hasClass("archive")&&jQuery(window).width()<979&&jQuery("#aside .cta.side-ad").each((function(){jQuery(this).remove()})),jQuery("body").attr("data-theme-path"),jQuery(".content-form .text, .content-form .textarea, .content-form .email, .content-form .tel, .content-form .date, .content-form .password").each((function(){var e=jQuery(this).find("label").text();jQuery(this).find('input[type!="hidden"], textarea').attr("placeholder",e)})),jQuery(".content-form .select select").length&&jQuery(".content-form .select select").customSelect(),jQuery("#header .nav-toggle").click((function(){return jQuery("body").toggleClass("side-nav-active"),!1})),jQuery("#main-nav .menu > li > a").each((function(){var e=jQuery(this),t=jQuery(this).parent();e.wrap(''),t.hasClass("menu-item-has-children")&&(t.append(''),t.find(".more").click((function(){var e=jQuery(this),t=e.parentsUntil(".menu").find(".sub-menu");jQuery(".main-nav .more").not(e).removeClass("active"),jQuery(".main-nav .sub-menu").not(t).removeClass("active").slideUp(),e.hasClass("active")?(e.removeClass("active"),t.removeClass("active").slideUp()):(e.addClass("active"),t.addClass("active").slideDown())})))})),jQuery(".filter-form select").change((function(){window.location=jQuery(this).val()})),jQuery("#aside .facetwp header button").click((function(){return jQuery(this).toggleClass("active"),jQuery(this).closest(".cta").find(".filters").slideToggle(),!1})),jQuery(".scroll").click((function(){var e=jQuery(this).attr("href");return jQuery("html, body").animate({scrollTop:jQuery(e).offset().top-100},1e3),!1})),jQuery("p").each((function(){var e=jQuery(this);0==e.html().replace(/\s| /g,"").length&&e.remove()})),jQuery(".editable-content table").each((function(){jQuery(this).wrap('')})),jQuery('iframe[src*="youtube.com"], iframe[src*="vimeo.com"]').each((function(){var e=jQuery(this).attr("src");jQuery(this).attr("src",e+"?rel=0").width("100%").height("100%").wrap('')})),jQuery('iframe[src*="https://www.google.com/maps/"]').each((function(){jQuery(this).width("100%").height("100%").wrap('')})),jQuery(".video-link").magnificPopup({disableOn:0,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1}),jQuery(".gallery-list li a, .gallery .gallery-item a").magnificPopup({type:"image",gallery:{enabled:!0}}),jQuery(".button.login-form").magnificPopup({type:"inline",midClick:!0}),jQuery(".button.newsletter").magnificPopup({midClick:!0,items:{src:"#newsletter-form",type:"inline"}}),jQuery("#trending-posts .posts ul li:nth-child(2)").length&&jQuery("#trending-posts .posts ul").slick({autoplay:!0,autoplaySpeed:5e3,speed:1e3,arrows:!1,fade:!0,pauseOnHover:!0,dots:!1}),jQuery("#content .cta-posts").each((function(){var e=jQuery(this);e.find(".posts-list li:nth-child(2)").length&&(e.append(''),e.find(".posts-list").slick({autoplay:!0,autoplaySpeed:5e3,speed:1e3,arrows:!1,fade:!0,pauseOnHover:!0,dots:!1,arrows:!0,prevArrow:'',nextArrow:'',appendArrows:e.find(".controls")}))})),jQuery(".info-list").each((function(){var e=jQuery(this);e.find("li:first .toggle").addClass("active"),e.find("li:not(:first) .info").hide(),e.find(".toggle").each((function(){jQuery(this).click((function(){var t=jQuery(this),s=t.attr("href");return t.hasClass("active")?(t.removeClass("active"),e.find(s).slideUp()):(e.find("li .toggle").each((function(){jQuery(this).removeClass("active")})),t.addClass("active"),e.find("li .info").each((function(){jQuery(this).slideUp()})),e.find(s).slideDown()),!1}))}))})),jQuery(document).on("facetwp-loaded",(function(){FWP.loaded&&jQuery("html, body").animate({scrollTop:jQuery("body").offset().top},0)}))})),jQuery(window).load((function(){setTimeout((function(){var e=new ScrollMagic.Controller,t=130;jQuery("body").hasClass("logged-in")&&(t=98),new ScrollMagic.Scene({triggerElement:"#header",triggerHook:0}).setClassToggle("body","nav-active").offset(t).addTo(e);var s=-30;if(jQuery("body").hasClass("logged-in")&&(s=-52),jQuery("#content .header-ad iframe").length&&90==jQuery("#content .header-ad iframe").outerHeight()&&(jQuery("#content .header-ad").addClass("sml"),new ScrollMagic.Scene({triggerElement:"#content .header-ad",triggerHook:0,duration:80}).setClassToggle("#content .header-ad","active").offset(s+80).addTo(e),new ScrollMagic.Scene({triggerElement:"#content .header-ad",triggerHook:0,duration:90}).setClassToggle("#content .header-ad","sticky").offset(s+160).addTo(e)),jQuery("#aside .side-ad-1 iframe").length&&250==jQuery("#aside .side-ad-1 iframe").outerHeight()&&(new ScrollMagic.Scene({triggerElement:"#aside .side-ad-1",triggerHook:0,duration:350}).setClassToggle("#aside .side-ad-1 .ad","active").offset(s).addTo(e),new ScrollMagic.Scene({triggerElement:"#aside .side-ad-1",triggerHook:0}).setClassToggle("#aside .side-ad-1 .ad","sticky").offset(s+350).addTo(e)),jQuery("#aside .side-ad-2 iframe").length){var a=jQuery("#aside").outerHeight(),i=jQuery("#aside .ctas").outerHeight();if(jQuery("#aside .side-ad-2 iframe").outerHeight(),postHeight=jQuery("#main").outerHeight(),i").addClass(i("Inner")),r=t("");n.after(r.append(o)),r.addClass(s),e.mapClass&&r.addClass(n.attr("class")),e.mapStyle&&r.attr("style",n.attr("style")),n.addClass("hasCustomSelect").on("render.customSelect",(function(){a(n,r),n.css("width","");var e=parseInt(n.outerWidth(),10)-(parseInt(r.outerWidth(),10)-parseInt(r.width(),10));r.css({display:"inline-block"});var t=r.outerHeight();n.attr("disabled")?r.addClass(i("Disabled")):r.removeClass(i("Disabled")),o.css({width:e,display:"inline-block"}),n.css({"-webkit-appearance":"menulist-button",width:r.outerWidth(),position:"absolute",opacity:0,height:t,fontSize:r.css("font-size")})})).on("change.customSelect",(function(){r.addClass(i("Changed")),a(n,r)})).on("keyup.customSelect",(function(e){r.hasClass(i("Open"))?13!=e.which&&27!=e.which||a(n,r):(n.trigger("blur.customSelect"),n.trigger("focus.customSelect"))})).on("mousedown.customSelect",(function(){r.removeClass(i("Changed"))})).on("mouseup.customSelect",(function(e){r.hasClass(i("Open"))||(t("."+i("Open")).not(r).length>0&&"undefined"!=typeof InstallTrigger?n.trigger("focus.customSelect"):(r.addClass(i("Open")),e.stopPropagation(),t(document).one("mouseup.customSelect",(function(e){e.target!=n.get(0)&&t.inArray(e.target,n.find("*").get())<0?n.trigger("blur.customSelect"):a(n,r)}))))})).on("focus.customSelect",(function(){r.removeClass(i("Changed")).addClass(i("Focus"))})).on("blur.customSelect",(function(){r.removeClass(i("Focus")+" "+i("Open"))})).on("mouseenter.customSelect",(function(){r.addClass(i("Hover"))})).on("mouseleave.customSelect",(function(){r.removeClass(i("Hover"))})).trigger("render.customSelect")}))}}),document.addEventListener("DOMContentLoaded",(()=>{e.init()}))})();;
/*! This file is auto-generated */
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>P,addAction:()=>A,addFilter:()=>m,applyFilters:()=>w,applyFiltersAsync:()=>I,createHooks:()=>h,currentAction:()=>x,currentFilter:()=>T,defaultHooks:()=>f,didAction:()=>j,didFilter:()=>z,doAction:()=>g,doActionAsync:()=>k,doingAction:()=>O,doingFilter:()=>S,filters:()=>Z,hasAction:()=>_,hasFilter:()=>v,removeAction:()=>p,removeAllActions:()=>F,removeAllFilters:()=>b,removeFilter:()=>y});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=a:t.splice(e,0,a),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[a],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n,r){return function(o,...i){const s=t[e];s[o]||(s[o]={handlers:[],runs:0}),s[o].runs++;const c=s[o].handlers;if(!c||!c.length)return n?i[0]:void 0;const l={name:o,currentIndex:0};return(r?async function(){try{s.__current.add(l);let t=n?i[0]:void 0;for(;l.currentIndex0:Array.from(r.__current).some((t=>t.name===n))}};const u=function(t,e){return function(n){const o=t[e];if(r(n))return o[n]&&o[n].runs?o[n].runs:0}};class d{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=i(this,"actions"),this.removeFilter=i(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=i(this,"actions",!0),this.removeAllFilters=i(this,"filters",!0),this.doAction=c(this,"actions",!1,!1),this.doActionAsync=c(this,"actions",!1,!0),this.applyFilters=c(this,"filters",!0,!1),this.applyFiltersAsync=c(this,"filters",!0,!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=a(this,"actions"),this.doingFilter=a(this,"filters"),this.didAction=u(this,"actions"),this.didFilter=u(this,"filters")}}const h=function(){return new d},f=h(),{addAction:A,addFilter:m,removeAction:p,removeFilter:y,hasAction:_,hasFilter:v,removeAllActions:F,removeAllFilters:b,doAction:g,doActionAsync:k,applyFilters:w,applyFiltersAsync:I,currentAction:x,currentFilter:T,doingAction:O,doingFilter:S,didAction:j,didFilter:z,actions:P,filters:Z}=f;(window.wp=window.wp||{}).hooks=e})();;