(()=>{"use strict";const t=window;t.blogherads=t.blogherads||{},t.blogherads.adq=t.blogherads.adq||[];const e=()=>t.blogherads,i=window,n=()=>{const t=e();t.adq.push((()=>{i.pmcadm_options?.suppress_option&&t.disableAds("PMC Ads Suppression",i.pmcadm_options.suppress_option),i.pmcadm_options?.suppress_entries&&i.pmcadm_options.suppress_entries.forEach((e=>{if(!e.entry||!e.suppress_option)return;const i=e.entry.filter((t=>!!t)).map((t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))).join("|");if(!i)return;const n=new RegExp(i);(window.location.search&&n.test(window.location.search)||window.location.hash&&n.test(window.location.hash))&&t.disableAds("PMC Ads Suppression",e.suppress_option)}))}))},r=window;function o(){const t=document.querySelector("#pmc-adm-ad-interrupts div.pmc-adm-boomerang-pub-div div");let e="";return t&&(e=t.id),e}const a=(t,e)=>{const i=document.getElementById(t);i?.style&&(i.style.display=e)},s=window,l=s.document;class d{constructor(t){t.forEach((t=>this.push(t)))}push(t){try{t.call(null)}catch(t){}}attachConnatix(t){l.documentElement.classList.contains("floatingplayer-nofloat")?t.disableFloatingMode():s.addEventListener("message",(({data:e})=>{"pmcadm:floatingplayer=nofloat"===e&&t.disableFloatingMode()}),!1)}}const c=window;if(c.pmc=c.pmc||{},c.pmc.adm=c.pmc.adm||[],Array.isArray(c.pmc.adm)){const t=c.pmc.adm;c.pmc.adm=new d(t)}const p=()=>c.pmc,_=window,u=_.document,m=window,h=m.document,f=window,y=()=>f.pmcadm_floating_preroll_data||{},g=()=>f.pmcFloatingVideoOptions||{},v=window,w=p();v.pmc_admanager=new function(){const t=e();this.settings={interrupts_hide_container:"#container",redirect_interval:0,interrupt_counter:_.pmc_intertitial_ad_timer||0},this.show_interrupt_ads=function(){if(void 0!==navigator.userAgent&&/googlebot|googlebot-news/i.test(navigator.userAgent))return;const e=u.referrer,i=this;let n="",s=null;if(void 0!==e&&""!==e&&(n=e.match(/:\/\/(.[^/]+)/)[1],"flipboard.com"===n))return;if(r.pmc_is_adblocked)return;if(!i.apply_filters("pmc-adm-show-interrupt-ads",!0))return;i.settings.interrupt_counter=_.pmc_intertitial_ad_timer||0,this.settings.redirect_interval&&clearInterval(this.settings.redirect_interval);const l=t.getSlotById(o()),d=p();if(s=d.cookie?.get(d.pmc_adm_interstitial_ck),null!=s&&""!==s||"object"!=typeof l)this.hide_interrupt_ads();else{d.cookie?.set(d.pmc_adm_interstitial_ck,1,d.pmc_adm_interstitial_interval,"/","strictly-necessary"),i.settings.redirect_interval=setInterval((function(){i.interrupt_timer()}),1e3),u.body.classList.add("interrupt-ads"),a("pmc-adm-interrupts-container","block");try{_.postMessage("pmc_show_interrupt_ads","*"),d.hooks?.do_action("show_interrupt_ads")}catch(t){}l.display(),i.interrupt_timer()}}.bind(this),this.hide_interrupt_ads=function(){clearInterval(this.settings.redirect_interval),this.settings.redirect_interval=0,u.body.classList.remove("interrupt-ads"),_.dispatchEvent(new Event("resize")),a("pmc-adm-interrupts-container","none");const e=o(),i=new CustomEvent("pmc-hide-interrupt-ads",{detail:"Fires when the interrupt ads are done."});u.dispatchEvent(i),t.getSlots().forEach((function(i){e!==i.domId?i.display():t.destroySlots([i.domId])}));try{_.postMessage("pmc_hide_interrupt_ads","*"),p().hooks?.do_action("hide_interrupt_ads")}catch(t){}}.bind(this),this.hide_interrupt=function(){this.hide_interrupt_ads()}.bind(this),this.interrupt_timer=function(){0===this.settings.interrupt_counter?this.hide_interrupt_ads():(this.settings.redirect_interval&&this.settings.interrupt_counter--,u.getElementById("pmc_ads_interrupts_timer")&&(u.getElementById("pmc_ads_interrupts_timer").innerHTML=this.settings.interrupt_counter))}.bind(this),this.apply_filters=function(t,e,i){const n=p();return n.hooks?.apply_filters?n.hooks.apply_filters(t,e,i):e}.bind(this)},w.prerollPlayer=new function(){this.player_instance={},this.pmc_floating_ad_main_div=".floating-preroll-ad",this.pmc_floating_ad_docked_div="footer.footer",this.is_floating_ad_showed=!1,this.time_gap=0,this.cookie="",this.interval_id="",this.direct_slold=!1,this.init=function(){const t=this,e=y();if(void 0===e||!e||void 0===e.time_gap||"undefined"==typeof pmc)return!1;if(t.cookie=e.cookie_name,""===t.cookie||!t.cookie)return!1;const i=pmc.cookie.get(t.cookie);if(null!=i&&""!==i&&0!==parseInt(e.time_gap))return t.remove_floating_player(),!1;document.body.classList.contains("interrupt-ads")?t.interval_id=setInterval((function(){0===pmc_admanager.settings.redirect_interval&&t.show_floating_preroll_ad()}),1e3):t.show_floating_preroll_ad(),pmc.hooks.add_action("pmc_adm_dfp_direct_sold",(function(){t.direct_slold=!0,t.remove_floating_player()})),f.addEventListener("message",(({data:e})=>{"pmcadm:floatingplayer=nofloat"===e&&jQuery(t.pmc_floating_ad_main_div).hide()}),!1),f.blogherads.addEventListener("noFloat",(function(){jQuery(t.pmc_floating_ad_main_div).hide()})),f.blogherads.addEventListener("noFloatUnload",(function(e){void 0!==e.noFloatCount&&e.noFloatCount<=0&&jQuery(t.pmc_floating_ad_main_div).show()}))}.bind(this),this.apply_title=function(t){if("string"==typeof t&&""!==t){const e=jQuery(".floating-preroll-ad-title");e.empty();const i=jQuery("").text(t);e.append(i)}}.bind(this),this.apply_connatix_video_title=function(){jQuery("#connatix_floating_preroll_ad_div").on("cnxReady",function(t){if(t.detail&&t.detail.playerInstance){const e=t.detail.playerInstance.getVideoDetails();e&&e.title&&this.apply_title(e.title)}}.bind(this))}.bind(this),this.show_floating_preroll_ad=function(){if(window.pmc&&window.pmc.no_ads)return;const t=this,e=y(),i="connatix"===e.player_name,n=e.media_id,r=e.playlist_id;let o=!1;if(r?o="https://cdn.jwplayer.com/v2/playlists/"+r:n&&(o="https://cdn.jwplayer.com/v2/media/"+n),!o&&!i)return;let a=400,s=225;const l=e.backup_channel_id,d=e.channel_id,c=jQuery("[id ^=jwplayer_][id $=_div]"),p=e.player_id,_=jQuery(".l-pvm-video [id ^=jwplayer_][id $=_div]"),u=e.time_gap;if(""!==u&&(t.timegap=u),clearInterval(t.interval_id),1200>jQuery(window).width()&&(s=190,a=300,jQuery(".floating-preroll-ad-container").css("width","314px"),jQuery(".floating-preroll-ad-container").css("height","204px")),i&&jQuery("#connatix_floating_preroll_ad").children().length>0)this.apply_connatix_video_title(),this.show_floating_player(),jQuery(document).on("click",".floating-preroll-ad-close",(function(){t.remove_floating_player()}));else if(i||0!=c.length-_.length||"function"!=typeof window.pmc_jwplayer)jQuery(this.pmc_floating_ad_main_div).remove();else{const e={backupChannelId:l,channelId:d,playlist:o,autostart:!0,mute:!0,floating:!0,height:s,width:a},i=function(e){t.player_instance=e,!0===jQuery(t.pmc_floating_ad_main_div).hasClass("live-stream")&&t.show_floating_player(),t.player_instance.on("beforePlay",(function(){if(1===parseInt(g().jwplayer_style_v2)){const e=t.player_instance.getPlaylistItem().title;t.apply_title(e)}})),t.player_instance.on("firstFrame",(function(){t.show_floating_player()})),t.player_instance.on("adImpression",(function(){pmc.cookie.set(t.cookie,1,t.time_gap,"/","functional"),t.is_floating_ad_showed=!0,t.show_floating_player()})),t.player_instance.on("adError",(function(){!0!==t.is_floating_ad_showed&&(1===parseInt(g().preroll_not_required)?t.show_floating_player():t.remove_floating_player())}))}.bind(this),n=function(){jQuery(t.pmc_floating_ad_main_div).length&&jQuery(t.pmc_floating_ad_docked_div).length&&!jQuery(".floating-preroll-ad-container").hasClass("no-float")&&!jQuery(t.pmc_floating_ad_main_div).hasClass("live-stream")&&(jQuery(t.pmc_floating_ad_main_div).insertBefore(jQuery(t.pmc_floating_ad_docked_div)),jQuery(".floating-preroll-ad-container").addClass("no-float"))};window.pmc_jwplayer("jwplayer_floating_preroll_ad",p).setup(e).whenReady(i).whenNoFloat(n),jQuery(document).on("click",".floating-preroll-ad-close",(function(){t.remove_floating_player()}))}}.bind(this),this.show_floating_player=function(){!0!==this.is_floating_ad_showed&&(this.is_floating_ad_showed=!0,setTimeout((function(){jQuery(".floating-preroll-ad-close").show()}),5e3),jQuery(this.pmc_floating_ad_main_div).show())}.bind(this),this.remove_floating_player=function(){"function"==typeof this.player_instance.remove&&this.player_instance.remove(),jQuery(this.pmc_floating_ad_main_div).remove()}.bind(this)},w.harmony=new function(){!function(t,...e){console.debug.bind(null,t)(...e)}("pmcHarmony instance created."),this.init=function(){this.init_DOM()},this.init_DOM=function(){const t=h.querySelector(m.pmc_harmony_player_settings?m.pmc_harmony_player_settings.target_container:"body"),e=h.querySelector(".live-stream");if(!e||!t)return;t.prepend(e);"object"==typeof m.pmc_meta&&"mobile"!==m.pmc_meta.env||(null!==h.querySelector(".floating-preroll-ad-container")?m.addEventListener("scroll",(()=>{const t=h.querySelector(".jw-float-bar.jw-reset");t&&t.remove(),h.body.scrollTop>150||h.documentElement.scrollTop>150?(h.querySelector(".live-stream").classList.add("harmony-floating-player"),h.querySelector(".live-stream .floating-preroll-ad-container").style.top=m.pmc_harmony_player_settings?.top_offset||"50px"):(h.querySelector(".live-stream").classList.remove("harmony-floating-player"),h.querySelector(".live-stream .floating-preroll-ad-container").style.top="0px")}).bind(this)):null!==h.querySelector(".cbs-et-floating-player-container")&&m.addEventListener("scroll",(()=>{let t=h.querySelector(".csb-et-sticky-placeholder");const e=h.querySelector(".cbs-et-floating-player-container");t||e||(t=h.createElement("div"),t.classList.add("csb-et-sticky-placeholder"),e.parentNode.insertBefore(t,e)),m.scrollY>=300||h.documentElement.scrollTop>=300?(h.querySelector(".live-stream")?.classList.add("harmony-floating-player"),h.querySelector(".cbs-et-floating-player-container.live-stream").style.top=m.pmc_harmony_player_settings?.top_offset||"50px"):(m.scrollY<=10||h.documentElement.scrollTop<=10)&&(h.querySelector(".live-stream")?.classList.remove("harmony-floating-player"),h.querySelector(".cbs-et-floating-player-container.live-stream").style.top="0px")}).bind(this)));const i=h.querySelector(".live-stream .floating-preroll-ad-close");i&&i.addEventListener("click",(()=>{const t=h.querySelector(".live-stream");t&&t.remove()}).bind(this))}},w.skinAds=new function(){this.properties={dfpCreativeMarkup:void 0,dfpCreativeParameters:void 0,viewUrlTracked:!1},this.init=function(){this.init_DOM(),this.bind_GUI_events()}.bind(this),this.init_DOM=function(){this.dom={adSection:jQuery("#skin-ad-section"),leftRailContainer:jQuery("#skin-ad-left-rail-container"),rightRailContainer:jQuery("#skin-ad-right-rail-container")}}.bind(this),this.bind_GUI_events=function(){const t=this;jQuery(window).on("message",(function(e){const i=e.originalEvent;if("string"==typeof i.data){const e="pmcadm:dfp:skinad:markup",n="pmcadm:dfp:skinad:parameters";if(i.data.substring(0,e.length)===e)t.properties.dfpCreativeMarkup=i.data.substring(e.length)||"\x3c!-- NOOP --\x3e",t.run();else if(i.data.substring(0,n.length)===n){const e=i.data.substring(n.length);t.properties.dfpCreativeParameters=jQuery.parseJSON(e),t.run()}}})),jQuery(window).on("resize",(function(){t.refresh_skin_rails()})),jQuery(document).ready((function(){t.refresh_skin_rails()})),jQuery("body").on("prestitial-ad:stopped",(function(){t.refresh_skin_rails()})),t.dom.leftRailContainer.on("click",(function(){t.skin_clicked_EventHandler()})),t.dom.rightRailContainer.on("click",(function(){t.skin_clicked_EventHandler()}))}.bind(this),this.skin_clicked_EventHandler=function(){window.open(this.properties.dfpCreativeParameters.clickThroughURL,"_blank")}.bind(this),this.refresh_skin_rails=function(){const t=this;if(!t.properties.dfpCreativeParameters)return;const e=window.pmcadm_options?.pmcSkin?.newBreakpoints;if(e&&window.innerWidth<1420)return void t.dom.adSection.addClass("hide");t.dom.adSection.removeClass("hide");const i=t.properties.dfpCreativeParameters.creative.image,{oldBreakObj:n,newBreakObj:r}=t.compute_old_and_new_break_obj(i),o=(()=>{const t=t=>!t||!t.left||!t.right;return e?t(r)?n:r:t(n)?r:n})(),a=t.properties.viewUrlTracked?o.left:t.properties.dfpCreativeParameters.viewURLPrefix+o.left,s=t.properties.dfpCreativeParameters.bodyBackgroundColor&&jQuery.trim(t.properties.dfpCreativeParameters.bodyBackgroundColor)||null;jQuery("body").css("background-color",s),t.properties.viewUrlTracked=!0,t.dom.leftRailContainer.css("background-image",'url("'+a+'")'),t.dom.rightRailContainer.css("background-image",'url("'+o.right+'")');const l=o.right;jQuery('').on("load",(function(){const e=this.width,i=t.get_content_DOM();t.dom.leftRailContainer.width(e).offset({left:i.offset().left-e}),t.dom.rightRailContainer.width(e).offset({left:i.offset().left+i.outerWidth()})}))}.bind(this),this.compute_old_and_new_break_obj=function(t){const e={LARGE:1900,MEDIUM:1350,SMALL:1260},i=this.compute_rail_size(e),n=this.compute_rail_size({LARGE:1900,MEDIUM:1420,SMALL:1340});return{oldBreakObj:t[e[i]],newBreakObj:t[n.toLowerCase()]}}.bind(this),this.compute_rail_size=function(t){const e=jQuery(window).width();let i=0;return i=e=t.MEDIUM?"MEDIUM":"LARGE",i}.bind(this),this.get_content_DOM=function(){let t=["main-wrapper"];const e=document.querySelector("#skin-ad-section");void 0!==e&&void 0!==e.dataset.contentContainer&&(t=e.dataset.contentContainer.split(",")),t=this.apply_filters("pmc-adm-dfp-skin-main-content",t);for(let e=0;e{n(),w.skinAds.init(),w.prerollPlayer.init(),w.harmony.init()}))})();; !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=45)}({45:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46);n.n(r)},46:function(e,t){}});; !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=35)}({35:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(36);n.n(r)},36:function(e,t){}});; !function(){"use strict";var e=0,r={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e=[];for(var i in r)e.push(r[i]);for(var o=0,n=e.length;oo.oldScroll?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=o.oldScroll=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(n),t[s.group.id]=s.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?y.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?y.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;o=r.oldScroll,p=!l&&!h,!w&&(l&&h)?(u.queueTrigger(r.backward),o[u.group.id]=u.group):!w&&p?(u.queueTrigger(r.forward),o[u.group.id]=u.group):w&&r.oldScroll>=u.triggerPoint&&(u.queueTrigger(r.forward),o[u.group.id]=u.group)}}return y.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var t in o)o[t].refresh()},n.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),n.refreshAll()},y.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},y.Context=n}(),function(){"use strict";function s(t,e){return t.triggerPoint-e.triggerPoint}function a(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.Waypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t],i="up"===t||"left"===t;e.sort(i?a:s);for(var o=0,n=e.length;o=t.min},message:"{title} must be a minimum of {min} characters",expects:["min"]},max:{validate:function(e,t){return"string"==typeof e&&e.length<=t.max},message:"{title} must be a maximum of {max} characters",expects:["max"]},range:{validate:function(e,t){return"string"==typeof e?e.length>=t.min&&e.length<=t.max:"number"==typeof e&&(e>=t.min&&e<=t.max)},message:"{title} must be a minimum of {min} and a maximum of {max} characters",expects:["min","max"]},equal:{validate:function(e,t){return""+e==""+t.value},message:"{title} must be equal to {field}",expects:["value","field"]},format:{validate:function(e,t){if("[object RegExp]"===Object.prototype.toString.call(t.regex))return t.regex.test(e);throw"approve.value(): [format] - regex is not a valid regular expression."},message:"{title} did not pass the [{regex}] test",expects:["regex"]},time:{regex:/^(2[0-3]|[01]?[0-9]):([0-5]?[0-9]):([0-5]?[0-9])$/,validate:function(e){return this.regex.test(e)},message:"{title} is not a valid time",expects:!1},date:{formats:{ymd:/^(?:\2)(?:[0-9]{2})?[0-9]{2}([\/-])(1[0-2]|0?[1-9])([\/-])(3[01]|[12][0-9]|0?[1-9])$/,dmy:/^(3[01]|[12][0-9]|0?[1-9])([\/-])(1[0-2]|0?[1-9])([\/-])(?:[0-9]{2})?[0-9]{2}$/},validate:function(e,t){return this.formats[t.format].test(e)},message:"{title} is not a valid date",expects:["format"]},truthy:{regex:/^(?:1|t(?:rue)?|y(?:es)?|ok(?:ay)?)$/i,validate:function(e){return this.regex.test(e)},message:"{title} is not valid",expects:!1},falsy:{regex:/^(?:1|t(?:rue)?|y(?:es)?|ok(?:ay)?)$/i,validate:function(e){return!this.regex.test(e)},message:"{title} is not valid",expects:!1},cc:{message:"{title} is not a valid credit card number",schemes:[{regex:/^(5610|560221|560222|560223|560224|560225)/,scheme:"Australian Bank Card"},{regex:/^(2014|2149)/,scheme:"Diner's Club"},{regex:/^36/,scheme:"Diner's Club International"},{regex:/^(30[0-5]|36|38|54|55|2014|2149)/,scheme:"Diner's Club / Carte Blanche"},{regex:/^35(2[89]|[3-8][0-9])/,scheme:"Japanese Credit Bureau"},{regex:/^(5018|5020|5038|6304|6759|676[1-3])/,scheme:"Maestro"},{regex:/^5[1-5]/,scheme:"Mastercard"},{regex:/^(6304|670[69]|6771)/,scheme:"Laser"},{regex:/^(6334|6767)/,scheme:"Solo (Paymentech)"},{regex:/^(6011|622|64|65)/,scheme:"Discover"},{regex:/^3[47]/,scheme:"American Express"},{regex:/^(4026|417500|4508|4844|491(3|7))/,scheme:"Visa Electron"},{regex:/^(4)/,scheme:"Visa"}],_getScheme:function(e){e=(""+e).replace(/\D/g,"");for(var t=this.schemes.length;t--;)if(this.schemes[t].regex.test(e))return this.schemes[t].scheme},validate:function(e){e=(""+e).replace(/\D/g,"");var t,s=new function(){this.scheme="",this.valid=!1},r=e.length,a=0,i=1;if(r<12)return!1;for(;r--;)a+=(t=e.charAt(r)*i)-9*(9this.minimumBonus?(t.points+=2,t.isBonus=!0,t.isMinimum=!0):e.length>this.minimum?(t.points++,t.isMinimum=!0):(t.points=1,t.isMinimum=!1),t.hasLower=null!==e.match(/[a-z]/),t.isMinimum&&t.hasLower&&t.points++,t.hasUpper=null!==e.match(/[A-Z]/),t.isMinimum&&t.hasUpper&&t.points++,t.hasNumber=null!==e.match(/\d+/),t.isMinimum&&t.hasNumber&&t.points++,t.hasSpecial=null!==e.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/),t.isMinimum&&t.hasSpecial&&t.points++,t.percent=Math.ceil(t.points/6*100),t},_getStrength:function(e){var t=this._getScore(e);return t.strength=this.strengths[t.points],t.isMinimum||t.errors.push(this.errors.isMinimum),t.hasLower||t.errors.push(this.errors.hasLower),t.hasUpper||t.errors.push(this.errors.hasUpper),t.hasSpecial||t.errors.push(this.errors.hasSpecial),t.hasNumber||t.errors.push(this.errors.hasNumber),4Previous',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(i,e){return a('',nextArrow:'
',respondTo:"min",responsive:[{breakpoint:480,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:3}},{breakpoint:980,settings:{slidesToShow:3,arrows:!0,centerPadding:"70px"}}]}),this.$slidesContainer.on("afterChange",this.enableLazyLoad),this.$photoSlider=t;var i=$(".l-carousel__arrows");this.$photoSlider.slick({centerMode:!0,centerPadding:"25px",slidesToShow:1,lazyLoad:"progressive",mobileFirst:!0,arrows:!0,adaptiveHeight:!1,appendArrows:i,prevArrow:'',nextArrow:'',respondTo:"min",rows:0,responsive:[{breakpoint:768,settings:{centerPadding:"80px"}},{breakpoint:980,settings:{centerPadding:"140px"}}]}),this.$photoSlider.on("afterChange",this.enableLazyLoad)}},enableLazyLoad:function(){a.default.enableLazyLoad($(".lazy:not(.loaded)",this))}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={init:function(){var e=$('[data-trigger="footer-manager"]');0!==e.length&&e.on("click",".js-expander",function(e){$(e.target).toggleClass("is-active"),e.preventDefault()})}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),a=function(e){return e&&e.__esModule?e:{default:e}}(n),s={$window:{},$bodyEl:{},$htmlEl:{},$header:{},headerHeight:0,resizeTimer:0,lastScrollTopValue:0,init:function(){var e=$(".l-header");0!==e.length&&(this.$header=e,this.$window=$(window),this.$htmlEl=$("html"),this.$bodyEl=$("body"),this.initExpandableSearchForm(),this.initEditionMenu(),this.initPersistentNavigation(),this.initMegaMenuToggles(),this.initNewsletter())},initExpandableSearchForm:function(){var e=this;$("#site-top-header").on("click",".search-form",function(t){var i="";i=e.$header.hasClass("is-fixed")?e.$header.find(".l-header__sticky"):$(".c-top-bar .c-top-bar__search"),0!==i.length&&(i.hasClass("is-expanded")||(t.preventDefault(),t.stopPropagation(),i.addClass("is-expanded"),i.find('input[type="text"]').focus(),e.$bodyEl.on("click",{self:e,$search:i},e.collapseSearchForm)))})},collapseSearchForm:function(e){var t=e.data.self,i=e.data.$search;$(e.target).closest(".c-search--expandable").length||(i.removeClass("is-expanded"),i.find('[type="text"]').val(""),t.$bodyEl.off("click",t.collapseSearchForm))},initEditionMenu:function(){var e=this.$bodyEl.find('[data-toggle="header-edition"]');0!==e.length&&e.on("click","a",function(t){var i=$(t.currentTarget).parent();i.hasClass("is-current")?t.preventDefault():(e.find(".is-current").removeClass("is-current"),i.addClass("is-current")),e.toggleClass("is-expanded")})},initPersistentNavigation:function(){var e=this;this.headerHeight=this.$header.height(),this.toggleFixedHeader(),this.$header.attr("data-height",this.headerHeight),this.$window.on("resize",function(){return e.determineHeaderHeight()}),this.$window.on("scroll",function(){return e.toggleFixedHeader()})},determineHeaderHeight:(0,a.default)(function(){var e=this;clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(function(){e.$header.hasClass("is-fixed")?(e.$header.attr("data-fixed-height",e.$header.height()),e.$header.removeClass("is-fixed"),e.headerHeight=e.$header.height()+$("#leaderboard-no-padding").height(),e.$header.addClass("is-fixed")):e.headerHeight=e.$header.height()+$("#leaderboard-no-padding").height(),e.$header.attr("data-height",e.headerHeight)},240)},120),toggleFixedHeader:(0,a.default)(function(){var e=this.$window.scrollTop(),t=0>this.lastScrollTopValue-e?"down":"up",i=this.$header.hasClass("is-fixed"),n=this.$header.hasClass("is-visible"),a=this.headerHeight;this.lastScrollTopValue=e,"down"===t&&!i&&e>a&&(this.determineHeaderHeight(),this.headerHeight=this.$header.height(),a=this.headerHeight,e>a&&(this.$header.addClass("is-fixed"),this.$bodyEl.css("padding-top",a+"px"))),"down"===t&&!n&&e>a+20&&this.$header.addClass("has-transitions is-visible"),"up"===t&&n&&e=$(window).width()){var n=i.attr("href"),a=e.find(n),s=a.find("a").attr("href");s&&(window.location.href=s)}}),(!i||1024>=$(window).width())&&(i="click"),n.on(i,function(t){var i=$(t.currentTarget);if(i.hasClass("is-active"))return void t.preventDefault();var n=i.attr("href"),a=e.find(n);if(0!==a.length){var s=e.closest("[data-tabs]");t.preventDefault(),s.addClass("is-changing").find("[data-tabs-link]").attr("href",a.data("tabsHref")),e.find("[data-tabs-toggle].is-active, [data-tabs-panel].is-active").removeClass("is-active"),i.addClass("is-active"),a.addClass("is-active"),setTimeout(function(){s.removeClass("is-changing")},50)}})}};t.default=n},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var i=0;ithis.$window.width()||this.$topArea.height()===this.$fixable.height())){var a=setInterval(function(){i.toggleStickyWidget(),i.repositionCount-=1,0===i.repositionCount&&clearInterval(a)},300);this.$window.on("scroll resize",function(){return i.toggleStickyWidget()})}}return a(e,[{key:"manageStickyWidget",value:function(){this.getDimensions();var e=this.$window.scrollTop(),t=this.topAreaTop-this.siteHeaderHeight,i=t+this.topAreaHeight-(this.fixableHeight-this.topAreaMarginBottom);e>t&&ei&&!this.$fixable.hasClass("was-fixed")&&this.$fixable.removeClass("is-fixed").addClass("was-fixed").css("top","")}},{key:"manageDimensions",value:function(){this.topAreaTop=this.$topArea.offset().top,this.topAreaHeight=this.$topArea.outerHeight(),this.topAreaMarginBottom=parseInt(this.$topArea.css("margin-bottom"),0),this.fixableHeight=this.$fixable.outerHeight(),this.siteHeaderHeight=this.$siteHeader.data("fixedHeight")||0,this.$fixable.hasClass("is-fixed")&&this.$fixable.css("top",this.siteHeaderHeight+this.fixableTopMargin+"px")}}]),e}();t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={init:function(){var e=this;$("[data-dropdown]").each(function(t,i){var n=$(i);if(0===n.children(".is-active").length){var a=n.find(".is-active");0===a.length?n.children(":first").addClass("is-active"):a.removeClass("is-active").first().parent().addClass("is-active")}e.addEventHandlers(n)})},addEventHandlers:function(e){var t=this;e.on("click","> *",function(i){var n=$(i.currentTarget);if(e[0].scrollTop=0,n.hasClass("is-active"))return""===e.attr("data-dropdown")&&i.preventDefault(),t.isMobile("any")&&"mobile-only"===e.attr("data-dropdown")&&i.preventDefault(),void e.toggleClass("is-expanded");e.removeClass("is-expanded"),e.find(".is-active").removeClass("is-active"),n.addClass("is-active")})},isMobile:function(e){return"Android"===e?navigator.userAgent.match(/Android/i):"BlackBerry"===e?navigator.userAgent.match(/BlackBerry/i):"iOS"===e?navigator.userAgent.match(/iPhone|iPad|iPod/i):"Opera"===e?navigator.userAgent.match(/Opera Mini/i):"Windows"===e?navigator.userAgent.match(/IEMobile/i):"any"===e&&(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/iPhone|iPad|iPod/i)||navigator.userAgent.match(/Opera Mini/i)||navigator.userAgent.match(/IEMobile/i))}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={$html:jQuery("html"),headerHeight:33,$waypoint:{},$scrollButton:{},init:function(){var e=this,t=$(".c-button--scroll");this.$waypoint="",this.$scrollButton=t,this.$scrollButton.length&&(this.$scrollButton.each(function(t,i){var n=$(i);e.addEventHandlers(n)}),this.$waypoint=$(".l-top-articles__more").waypoint({handler:function(e,t){"down"===t?$(".c-button--scroll").css("transform","translate3d(0, 0, 0)"):"up"===t&&$(".c-button--scroll").css("transform","translate3d(0, 1430px, 0)")},offset:"50%"}),this.$waypoint=$(".l-featured").waypoint({handler:function(e,t){"down"===t?$(".c-button--scroll").css("transform","translate3d(0, 1430px, 0)"):"up"===t&&$(".c-button--scroll").css("transform","translate3d(0, 0, 0)")},offset:"50%"}))},addEventHandlers:function(e){var t=this;e.on("click touch",function(i){i.preventDefault();var n=$(e.attr("href")),a=n.offset().top;window.scrollTo(0,a-t.headerHeight)})}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a={$body:{},$cPlayer:{},init:function(){var e=this,t=$("[data-video-carousel]");this.$body=$("body"),this.$cPlayer=$(".c-player"),this.$cPlayer.each(this.setupPlayer),setTimeout(function(){0===t.length&&e.triggerAutoPlay()},1e3),document.addEventListener("pmc-hide-interrupt-ads",function(){e.triggerAutoPlay()})},setupPlayer:function(){var e=$(this),t=e.find("iframe"),i=t.data("src")||"",s=$("[id ^=jwplayer_][id $=_div]"),r=!1,o=e.find("[data-video-showcase-connatix]");if(o.length&&e.on("click",".c-player__link",function(t){t.preventDefault(),a.playConnatix(o.data("media-id"),o.data("player-id"),o.attr("id")),e.removeClass("is-static")}),t.length&&!t.parents(".jwplayer").length&&(r="youtube",""===i&&(i=t.attr("src")||""),e.hasClass("is-static")||""!==t.attr("src")||e.addClass("is-static"),""!==i&&(-1!==i.indexOf("autoplay")?i=i.replace(/autoplay=[01]/i,"autoplay=1"):i+="&autoplay=1",e.on("click",".c-player__link",function(n){n.preventDefault(),e.hasClass("is-static")&&(t.attr("src",i),e.removeClass("is-static"))}),e.on("player:reset",function(){t.attr("src",""),e.addClass("is-static")}))),0=e.length)){var t=e.data("videoid"),i=document.getElementById(this.jwplayerInstanceDOMID),n=e.data("jsonfeed");if(null!==i){void 0!==n&&n||(n="http://content.jwplatform.com/feeds/"+t+".json");var a={playlist:n,ph:2,autostart:!1};window.pmc_jwplayer&&(this.jwplayerInstance=window.pmc_jwplayer(this.jwplayerInstanceDOMID).setup(a))}}},onClickPlayerLink:function(e,t,i){var a=document.getElementById(this.jwplayerInstanceDOMID);if(void 0!==i&&"jwplayer"===i&&!1===this.isJWPlayerActive&&null!==a&&"object"===(void 0===e?"undefined":n(e))&&"function"==typeof e.getConfig){var s=$("#"+t),r=s.data("videoid"),o=s.data("jsonfeed");this.$slider.addClass("l-video__carousel--playing"),this.$jwplayerSlide.addClass("is-active"),void 0!==o&&o||(o="http://content.jwplatform.com/feeds/"+r+".json");var l={playlist:o,ph:2};window.pmc_jwplayer&&(this.jwplayerInstance=window.pmc_jwplayer(this.jwplayerInstanceDOMID).setup(l),this.jwplayerInstance.play(!0),this.isJWPlayerActive=!0)}},removeJWPlayerDOM:function(){!0===this.isJWPlayerActive&&(this.$jwplayerSlide.removeClass("is-active"),this.jwplayerInstance.stop(),this.jwplayerInstance.remove(),this.jwplayerInstance=!1,this.isJWPlayerActive=!1,this.$slider.removeClass("l-video__carousel--playing"))}};t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i(17);var n=i(22),a=function(e){return e&&e.__esModule?e:{default:e}}(n),s={allFonts:[new a.default("Benton",{weight:700}).load(),new a.default("Benton",{weight:700,style:"italic"}).load(),new a.default("Benton",{weight:300}).load(),new a.default("Benton",{weight:400}).load(),new a.default("Open Sans").load()],init:function(){sessionStorage.getItem("fontsLoaded")?this.setClass("fonts-loaded"):this.loadFonts()},setClass:function(e){var t=document.documentElement;t.classList.contains(e)||t.classList.add(e)},loadFonts:function(){var e=this;Promise.all(this.allFonts).then(function(){e.setClass("fonts-loaded"),sessionStorage.setItem("fontsLoaded","true")})}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var t=i(18),n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("unable to locate global object")}();n.Promise||(n.Promise=t.a)}.call(t,i(0))},function(e,t,i){"use strict";(function(e){function i(){}function n(e,t){return function(){e.apply(t,arguments)}}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function s(e,t){for(;3===e._state;)e=e._value;if(0===e._state)return void e._deferreds.push(t);e._handled=!0,a._immediateFn(function(){var i=1===e._state?t.onFulfilled:t.onRejected;if(null===i)return void(1===e._state?r:o)(t.promise,e._value);var n;try{n=i(e._value)}catch(e){return void o(t.promise,e)}r(t.promise,n)})}function r(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var i=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"==typeof i)return void c(n(i,t),e)}e._state=1,e._value=t,l(e)}catch(t){o(e,t)}}function o(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,i=e._deferreds.length;t=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},i(20),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,i(0))},function(e,t,i){(function(e,t){!function(e,i){"use strict";function n(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i1)for(var i=1;iparseInt(e[1],10)}else h=!1;return h}function d(){return null===v&&(v=!!document.fonts),v}function c(){if(null===p){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(e){}p=""!==e.style.font}return p}function u(e,t){return[e.style,e.weight,c()?e.stretch:"","100px",t].join(" ")}var f=null,h=null,p=null,v=null;o.prototype.load=function(e,t){var s=this,o=e||"BESbswy",c=0,h=t||3e3,p=(new Date).getTime();return new Promise(function(e,t){if(d()&&!l()){var v=new Promise(function(e,t){function i(){(new Date).getTime()-p>=h?t():document.fonts.load(u(s,'"'+s.family+'"'),o).then(function(t){1<=t.length?e():setTimeout(i,25)},function(){t()})}i()}),g=new Promise(function(e,t){c=setTimeout(t,h)});Promise.race([g,v]).then(function(){clearTimeout(c),e(s)},function(){t(s)})}else i(function(){function i(){var t;(t=-1!=m&&-1!=y||-1!=m&&-1!=w||-1!=y&&-1!=w)&&((t=m!=y&&m!=w&&y!=w)||(null===f&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),f=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=f&&(m==$&&y==$&&w==$||m==b&&y==b&&w==b||m==_&&y==_&&w==_)),t=!t),t&&(x.parentNode&&x.parentNode.removeChild(x),clearTimeout(c),e(s))}function l(){if((new Date).getTime()-p>=h)x.parentNode&&x.parentNode.removeChild(x),t(s);else{var e=document.hidden;!0!==e&&void 0!==e||(m=d.a.offsetWidth,y=v.a.offsetWidth,w=g.a.offsetWidth,i()),c=setTimeout(l,50)}}var d=new n(o),v=new n(o),g=new n(o),m=-1,y=-1,w=-1,$=-1,b=-1,_=-1,x=document.createElement("div");x.dir="ltr",a(d,u(s,"sans-serif")),a(v,u(s,"serif")),a(g,u(s,"monospace")),x.appendChild(d.a),x.appendChild(v.a),x.appendChild(g.a),document.body.appendChild(x),$=d.a.offsetWidth,b=v.a.offsetWidth,_=g.a.offsetWidth,l(),r(d,function(e){m=e,i()}),a(d,u(s,'"'+s.family+'",sans-serif')),r(v,function(e){y=e,i()}),a(v,u(s,'"'+s.family+'",serif')),r(g,function(e){w=e,i()}),a(g,u(s,'"'+s.family+'",monospace'))})})},e.exports=o}()}]); ;