e.server,keywords:e.keywords,channel:e.channel||"misc",subchannel:e.subchannel,subsubchannel:e.subsubchannel,device:n,templatetype:e.templatetype,contenttype:e.contenttype,forchildren:e[g.forchildren],slotnames:v,network:getnetwork(),brand:getbrandadunitid(),requestviewportrange:getviewportrange(a,n,"request_vp_range"),adunit:getadunit(),isverso:getversoflag(e),useroadblock:getconfig$1().useroadblock,lazyloadsettings:getviewportrange(a,n,"lazyload_settings"),pagerefresh:getpagerefreshtime()}),freeze(this)};function _(t){var o=new regexp(/cm/),a=m[t],s=o.test(a.suffix);function c(e,n,o){var a=this;void 0===o&&(o={}),e=void 0!==e?e:r.next(t),definereadonlyproperties(this,{id:t+"_"+e,slotcount:e,positioncount:n=void 0!==n?n:i.next(this.position),positionid:(this.position&&slugify(this.position))+"_"+n,data:o}),this.getadunitpath=function(){return getadunitpath(a,y)},freeze(this)}this.getrenderblock=function(){return p(a)},this.getsizes=function(){return a.sizes[n]},this.getsizesarray=function(){return sizestoarray(a.sizes[n])},this.getsizemapping=function(){var e=window.googletag.sizemapping();return e.addsize([1024,0],sizestoarray(a.sizes.desktop)).addsize([768,0],sizestoarray(a.sizes.tablet)).addsize([0,0],sizestoarray(a.sizes.mobile)),e.build()},this.shouldwaituntilvisiblebeforedisplay=function(){var e=a[g.canbehidden];return!s&&!e},this.getcustomdata=function(){return a.data},c.prototype=this,this.getslotdefinition=function(){for(var e=arguments.length,t=new array(e),n=0;n
1?arguments[1]:void 0)}});var eval2=eval;function gettext(e){for(var t="",n=e.childnodes,r=0;r=(e||0)})}function getintersectionobserveroptions(e){return object.assign({},defaultintersectionobserveroptions,pick(e,allowedintersectionoptions))}function observeevents(e,t,n,r){fastdom.measure(function(){try{var i=new intersectionobserver(function(r){hashigherintersectionratio(t.intersectionratio,r)&&isintersecting(r)?(debug$1("visible",{el:e,entries:r}),n(!0,i)):(debug$1("notvisible",{el:e,entries:r}),n(!1,i))},getintersectionobserveroptions(t));i.observe(e)}catch(e){r(e)}})}function onintersection(e,t,n){observeevents(e,t,function(e){return n(e)},function(e){return error$1("onintersection",e)})}function oncevisible(e,t){return new promise(function(n,r){observeevents(e,t,function(e,t){e&&(n(),t.disconnect())},r)})}function reactrule(e,t){return!e||t}function targetingrule(e,t,n){void 0===e&&(e=[]);var r=object.keys(n),i=object.keys(t);return all(e,function(e){return find(r,function(t){return t===e})||find(i,function(t){return t===e})})}function canrequest(e){var t=e.slottypedefinition,n=e.pagetargeting,r=e.slottargeting,i=e.reactready,o=e.oophasrendered,a=e.excludedpositions,s=!!r,c=targetingrule(t.requiredtargeting,r,n),u=reactrule(t.shouldwaitforreact,i),l=t.shouldwaitforoop,f=t.position,d=a.has(f),g=s&&c&&u&&!d&&!(l&&!o);return debug("canrequest."+t.slotname+"."+g,{slottypedefinition:t,pagetargeting:n,slottargeting:r,reactready:i,oophasrendered:o,excludedpositions:a}),g}var handlemoatyieldintelligenceready=function(e){try{window.moatprebidapi.setmoattargetingforallslots()}catch(t){return e({moatyieldintelligenceunavailable:!0})}return e({moatyieldintelligenceloaded:!0})},moatyieldintelligence={load:function(){return new promise(function(e){window.moatyieldready=function(){handlemoatyieldintelligenceready(e)}})},slotdataavailable:function(){try{return!!window.moatprebidapi.slotdataavailable()}catch(e){return!1}},setmoattargetingforslot:function(e){window.moatprebidapi.setmoattargetingforslot(e)}};function unassuminginsert(e,t,n,r){window.googletag=window.googletag||{};var i=window.googletag,o=t.withtargeting,a=r.getsingleinstance().getpagedefinition().isverso,s=new injectrefreshdisplayinjectionstrategy(o,r,n,a),c=new set,u=!1,l=!1;function f(e,t){return r.getsingleinstance().getslotstatestore().setslotstate(e.id,{nodeid:e.data&&e.data["node-id"]}),t?i.defineoutofpageslot(e.getadunitpath(),e.id):i.defineslot(e.getadunitpath(),e.getsizesarray(),e.id).definesizemapping(e.getsizemapping())}var d,g,p=(new promiselock)(function(e){var t=e.getsingleinstance().getpagedefinition();return o(["service"],{pagedefinition:t},function(n){if(n)return applytargeting(i.pubads(),n),promise.all(t.slotnames.map(function(r){var a,d,g,p,h=e.getsingleinstance().getslottypedefinition(r);return d=function(e,r){return o(["slot"],{pagetargeting:n,slottypedefinition:h,reactready:l,el:e},function(a){if(a)if(canrequest({slottypedefinition:h,pagetargeting:n,slottargeting:a,reactready:l,oophasrendered:u,excludedpositions:c})){var d=e.dataset.nodeid,g=h.getslotdefinition(void 0,void 0,object.assign({},d&&{"node-id":d})),p=g.isoutofpage,m=f(g,p);if(m){moatyieldintelligence.slotdataavailable()&&moatyieldintelligence.setmoattargetingforslot(m),m.addservice(window.googletag.pubads()),p&&m.addservice(window.googletag.companionads());var v=object.assign({},a);m.updatetargetingfrommap(v),o(["define"],{slotdefinition:g},function(e){applytargeting(m,e)}),s.insertslot(m,g,e,r,function(e,t){return function(n,r,o){var a=function(e){if(e.shouldwaituntilvisiblebeforedisplay())return oncevisible}(r),s=function(){var e=r.id;debug("insert.display",e),i.display(e),o()},c=e.requestviewportrange,u=t.overriderequestviewportrange;if(a)return a(n,{rootmargin:(void 0!==u?u:c)+"% 0%"}).then(s);s()}}(t,h))}else error("the slot cannot be defined",g,m)}else debug(h.slotname+".notrequestable",h,l,n,a);else error("slot type targeting is missing",t,h)})},p=(a=h).getrenderblock(),g=getcandidateelementsfromrenderblock(p),promise.all(object.keys(g).map(function(e){return debug("candidatesbymethod."+a.slotname,{method:e,els:g[e],definition:a}),promise.all(g[e].map(function(t){return d(t,e)}))}))}));error("page targeting is missing",t)}).catch(handlepromiseerror("insert error")).then(function(){return new promise(function(e){return fastdom.mutate(function(){return settimeout(e,1e3)})})}).catch(handlepromiseerror("impossible mutate error"))});d=function(){l=!0},e.history("react.ready").length?d():e.on("react.ready",d),g=e.on("#.slotrenderended.#",function(t,n){n.topic&&n.topic.includes("out_of_page")&&(u=!0,g(),e.emit("ads.componentdidupdate"))}),e.on("ads.excludepositions",function(e){e.foreach(c.add,c)}),this.insert=function(t){var n;n=function(){var n;p(t),n=debounce(function(){return p(t)},500),e.on("react.ready",n),e.on("#.componentdidmount.#",n),e.on("#.componentdidupdate.#",n)},i.pubadsready?n():e.on("ads.pubadsready",n)}}var always=function(){return!0};function lifecycleregistrar(e){var t=new eventemitter("lifecycleregistrar").warn,n={};function r(e){return e&&"object"==typeof e&&"function"==typeof e.then}function i(e){var n={};e.unshift({});for(var r=0;r1?t-1:0),a=1;a-1}function areauctionsenabled(e){return!!ishostwhitelisted(e)&&!!hasconsenttoauction()&&!featureflags.ads_disable_auctions}function isauctionenabled(e,t){return!!(e&&e.plugins||{})[t]}function createslotauctioneligible(e){return function(t){var n=t.slotdefinition,r=t.slot,i=get(window,"cns.flags.shouldnotauction"),o=e.market;return!("prebid"===o&&!get(window,"pbjs.libloaded"))&&!("a9"===o&&!window.apstagloaded)&&!i&&!n.isoutofpage&&!n.iscm&&e.issloteligible(r)}}function createstartauction(e){return collectpromises(function(t){return e.startauction(t.map(function(e){return e.slot}))})}var auctioneer={areauctionsenabled:areauctionsenabled,isauctionenabled:isauctionenabled,createslotauctioneligible:createslotauctioneligible,createstartauction:createstartauction},cookiecachename="cn_4dsgcache";function gather4dvalues(e,t){var n=(get(window,e)||[]).map(function(e){return e[t]});return n.length&&n||""}function get4dsg(e){var t=[],n="0";if(e){t=e;var r=new date;r.settime(r.gettime()+6048e5),document.cookie=cookiecachename+"="+t.join(":")+"; expires="+r.togmtstring()+"; path=/;samesite=lax;secure"}else{var i=getcookie(cookiecachename);i&&(t=i.split(":"),n="1")}return{sgdata:t,iscached:n}}function get4dtargeting(){var e=window,t="_4d.user",n="sparrowcache.event",r=get4dsg(get(e,t+".sg"));return{vnd_4d_sg:r.sgdata,vnd_4d_cached:r.iscached,vnd_4d_ctx_sg:get(e,"_4d.context.sg")||"",vnd_4d_ctx_topics:gather4dvalues("_4d.context.entities","name"),vnd_4d_ctx_entities:gather4dvalues("_4d.context.entities","name"),vnd_4d_ctx_keywords:gather4dvalues("_4d.context.keywords.list","keyword"),vnd_4d_sid:get(e,n+".sid")||getcookie("sid"),vnd_4d_pid:get(e,n+".pid")||getcookie("pid"),vnd_4d_usr_topics:gather4dvalues(t+".topics","name"),vnd_4d_usr_wt:get(e,t+".wt")||"",vnd_4d_xid:get(e,t+".xid")||getcookie("cn_xid")||""}}function getusersegments(){var e=getcookie("cn_segments");return{usr_segments:e?e.split("|"):[]}}function getreferrer(e){var t;try{t=new url(e).hostname}catch(e){t="none"}var n="none",r=sessionstorage.getitem("ctx_ses_soc")||"none",i={fb:"facebook.com",tw:"t.co",rd:"reddit.com",pn:"pinterest.com",ig:"instagram.com",glp:"plus.url.google.com",tbl:"t.umblr.com",qq:"qzone.qq.com",we:"weibo.com",hb:"habbo.com",vk:"vk.com",rr:"renren.com",or:"orkut.google.com",sn:"snapchat.com"};return object.keys(i).foreach(function(t){var o=i[t];e.includes(o)&&(n=t,r=t,sessionstorage.setitem("ctx_ses_soc",t))}),{ctx_ses_soc:r,ctx_ref_soc:n,ctx_ref_url:t}}var crc32=createcommonjsmodule(function(e,t){var n;n=function(e){e.version="1.2.0";var t=function(){for(var e=0,t=new array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof int32array?new int32array(t):t}();e.table=t,e.bstr=function(e,n){for(var r=-1^n,i=e.length-1,o=0;o>>8^t[255&(r^e.charcodeat(o++))])>>>8^t[255&(r^e.charcodeat(o++))];return o===i&&(r=r>>>8^t[255&(r^e.charcodeat(o))]),-1^r},e.buf=function(e,n){if(e.length>1e4)return function(e,n){for(var r=-1^n,i=e.length-7,o=0;o>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])];for(;o>>8^t[255&(r^e[o++])];return-1^r}(e,n);for(var r=-1^n,i=e.length-3,o=0;o>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])])>>>8^t[255&(r^e[o++])];for(;o>>8^t[255&(r^e[o++])];return-1^r},e.str=function(e,n){for(var r,i,o=-1^n,a=0,s=e.length;a>>8^t[255&(o^r)]:r<2048?o=(o=o>>>8^t[255&(o^(192|r>>6&31))])>>>8^t[255&(o^(128|63&r))]:r>=55296&&r<57344?(r=64+(1023&r),i=1023&e.charcodeat(a++),o=(o=(o=(o=o>>>8^t[255&(o^(240|r>>8&7))])>>>8^t[255&(o^(128|r>>2&63))])>>>8^t[255&(o^(128|i>>6&15|(3&r)<<4))])>>>8^t[255&(o^(128|63&i))]):o=(o=(o=o>>>8^t[255&(o^(224|r>>12&15))])>>>8^t[255&(o^(128|r>>6&63))])>>>8^t[255&(o^(128|63&r))];return-1^o}},"undefined"==typeof do_not_export_crc?n(t):n({})}),userdata;function generateeva(e){if(!e)return 100;try{var t=crc32.str(e);return math.abs(t%100)+1}catch(e){return console.error("generateeva",e),100}}function findorcreateeva(e,t){void 0===t&&(t={});var n=t.storage.getitem("usr_bkt_eva"),r=generateeva(e).tostring();return n!==r&&t.storage.setitem("usr_bkt_eva",r),parseint(r,10)}function isstorageenabled(){try{return window.localstorage.setitem("testkey","1"),window.localstorage.removeitem("testkey"),!0}catch(e){return!1}}function checkdate(e,t){return t>e}function trimdate(e,t){return e?e.tostring().split(",").filter(function(e){var n=parseint(e,10);return checkdate(t,n)}):[]}function timetravel(e,t){var n=new date(e).getdate()-t;return new date(e).setdate(n)}function getsessiondata(){var e=(new date).gettime(),t=timetravel(e,1),n=timetravel(e,30),r=parseint(sessionstorage.getitem("session-visits"),10)||0;sessionstorage.setitem("session-visits",(r+1).tostring());var i=sessionstorage.getitem("session-visits"),o=localstorage.getitem("session-visit-dates"),a=localstorage.getitem("total-visits");r||(o=o?o+","+e:e);var s=a?a+","+e:e,c=trimdate(s,t),u=trimdate(s,n),l=trimdate(o,n);return localstorage.setitem("total-visits",u.join(",")),localstorage.setitem("session-visit-dates",l.join(",")),{usr_pvc_bs:i,usr_pvc_24hr:c.length,usr_pvc_30d:u.length,usr_svc_30d:l.length}}function getuserbuckets(){var e=sessionstorage.getitem("usr_bkt_ses"),t=findorcreateeva(getcookie("cn_xid"),{storage:localstorage});return e||(e=math.floor(100*math.random())+1,sessionstorage.setitem("usr_bkt_ses",e)),{usr_bkt_eva:t,usr_bkt_ses:e,usr_bkt_pv:math.floor(100*math.random())+1}}function getmediabuy(){return{mbid:(parse(document.location.search)||{}).mbid}}function getuserauth(){return{usr_auth:(!!getcookie("pay_ent_sub")||!!getcookie("ee_status")).tostring()}}function resetuserdata(){userdata=!1}function getusergid(){var e,t=getcookie("_ga");return new regexp(/^ga1.2./).test(t)&&(e=t.split("ga1.2.")[1]),{usr_gid:e}}function getuserdatapagetargeting(){if(!isstorageenabled())return{};if(userdata)return userdata;var e=document.referrer;return userdata=object.assign({},getuserbuckets(),getsessiondata(),getreferrer(e),getmediabuy(),getuserauth(),getusergid())}var isstickyeligible=function(e){return e.issticky?"sticky-eligible":null},getflagtargeting=function(e){var t=e.slottypedefinition;return{"feature-flags":[isstickyeligible(t)]}},getgeotargeting=function(){var e=getcookie("cn_geo_country_code");return e?{fastly_geo:e}:{}};function adobeaudiencemanager(){function e(e,t){var n=t[0],r=t[1],i="vnd_aam_"+n.tolowercase(),o=e[i]||[];return o.push(r),e[i]=o,e}this.gettargeting=function(){var t=getcookie("aamconde"),n=getcookie("aam_uuid"),r=t&&function(t){return decodeuricomponent(t).split(";").map(function(e){return e.split("=")}).reduce(e,{})}(t),i=n&&{vnd_aam_uuid:[decodeuricomponent(n)]};return object.assign({},i,r)}}function proximic(){var e={vnd_prx_segments:[]},t="https://segment-data.zqtk.net/condenast-amp?url="+encodeuricomponent(window.location.href),n=new eventemitter("proximic").warn,r=new xmlhttprequest;r.addeventlistener("load",function(){if(200===this.status){var t=json.parse(this.response);e=t&&t.targeting}else n("servererror",this.status)}),r.open("get",t),r.send(),this.gettargeting=function(){return e}}function fromcameltosnake(e){return e.replace(/([a-z])([a-z])/g,"$1_$2").tolowercase()}function set$2(e,t,n){void 0===e[t]&&(e[t]=n)}function push$1(e,t,n){e[t]=e[t]||[],e[t].push(n)}function contains(e,t){return-1!==e.indexof(t)}function startswith(e,t){return e.slice(0,t.length)===t}function gettargeting(e,t,n,r){for(var i=r.el,o=e.length,a={},s=i;s;)1===s.nodetype&&function(){var r=s.dataset;object.keys(r).foreach(function(i){var s=r[i];if(startswith(i,e)&&"string"==typeof s){var c=fromcameltosnake(i.slice(o)),u=contains(t,c)?s.split(","):s;contains(n,c)?push$1(a,c,u):set$2(a,c,u)}})}(),s=s.parentnode;return a}var getorsetcache=function(e){try{return caches.open(e)}catch(e){return promise.reject(error("ie does not support caching: ",e))}},getcachedresponse=function(){var e=_asynctogenerator(regeneratorruntime.mark(function e(t){var n,r,i,o;return regeneratorruntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cachename,r=t.requestpath,i=t.requestoptions,e.next=3,getorsetcache(n);case 3:return o=e.sent,e.abrupt("return",o.match(r,i));case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),setcachedresponse=function(){var e=_asynctogenerator(regeneratorruntime.mark(function e(t){var n,r,i;return regeneratorruntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.cachename,r=t.requestpath,i=t.response,r&&i.ok){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,getorsetcache(n).then(function(e){e.put(r,i).catch(function(){})}).catch(function(){});case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),segmentator_api_uri="https://segmentator.condenast.ru/api",getgcnidcookie=function(){return getcookie("g_cnid")||"0"},callsegmentatorapi=function(){var e=_asynctogenerator(regeneratorruntime.mark(function e(t,n){var r,i,o,a,s,c,u;return regeneratorruntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.origin,i=n.domain,o=n.identifier,a=segmentator_api_uri+"/"+t,s={method:"post",headers:new headers({"x-g-cnid":getgcnidcookie(),origin:r,"content-type":"application/json"}),body:json.stringify({domain:i,path:o})},c={cachename:"segmentator-cache",requestpath:a},u=function(e){return e.json().then(function(t){if("ok"!==t.status)throw new error("segmentator response status not ok");var n=t.response_map;return n&&object.keys(n).length?(setcachedresponse(object.assign({},c,{response:e})),n):{}})},e.abrupt("return",getcachedresponse(object.assign({},c,{requestoptions:s})).then(function(e){return u(e)}).catch(function(){return fetch(a,s).then(function(e){return u(e)})}));case 6:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),api_version="0.1",getsegmentatortargeting=function(e){var t=e.pagedefinition;return t&&t.segmentatordata&&t.segmentatordata.origin?callsegmentatorapi("get_segment_names/"+api_version+"/",t.segmentatordata).then(function(e){var t=e.segment_names,n=t?{interests:t}:{};return promise.resolve(n)}).catch(function(){return promise.resolve({})}):promise.resolve({})};function getreportingtargeting(e){var t=e.liveramp,n=[],r=t.getstatus(),i=t.getoriginfromcookie();return r&&n.push(r),i&&n.push("lr_origin-"+i),{cn_metrics:n}}var setemailhashcookie=function(e){var t=e.hasha,n=e.hashb,r=e.hashc,i=new date;i.settime(i.gettime()+2592e6),document.cookie="cn_nleh="+encodeuricomponent(json.stringify({md5:t,sha1:n,sha256:r}))+";expires="+i.togmtstring()+";path=/;samesite=lax;secure"};function getemailhashesfromcookie(){var e=decodeuricomponent(getcookie("cn_nleh"));if(!e)return!1;try{return json.parse(e)}catch(e){return!1}}function getemailhashesfromsearch(){var e=getemailhashesfromcookie();if(e)return e;var t=queryparameters.hasha,n=queryparameters.hashb,r=queryparameters.hashc;return!!(t||n||r)&&(setemailhashcookie({hasha:t,hashb:n,hashc:r}),{md5:t,sha1:n,sha256:r})}function getemailhashesfromlogin(){var e=decodeuricomponent(getcookie("cn_ipeh"));if(!e)return!1;try{return json.parse(e)}catch(e){return!1}}function liveramp(e){function t(){var e=getcookie("idl_env");if(e)return e.startswith('{"')?e:json.stringify({envelope:e})}function n(){window.ats={retrieveenvelope:t}}function r(e){var t="ads -- live ramp envelope unavailable";if(e){var r=json.parse(e).envelope;r?(function(e){var t=getemailhashesfromsearch()?"newsletter":getemailhashesfromlogin()?"login":"unknown",n=new date;n.settime(n.gettime()+2592e6),document.cookie="idl_env="+json.stringify({envelope:e,origin:t})+";expires="+n.togmtstring()+";path=/;samesite=lax;secure"}(r),n()):warn(t)}else warn(t)}this.getstatus=function(){var e=getemailhashesfromsearch()||getemailhashesfromlogin(),n=t(),r="lr-0";return e&&!n&&(r="lr-1"),!e&&n&&(r="lr-2"),e&&n&&(r="lr-3"),r},this.getoriginfromcookie=function(){var e=getcookie("idl_env"),t="";if(!e)return t;if(!e.startswith('{"'))return"thirdparty";try{t=(json.parse(decodeuricomponent(e))||{}).origin||"thirdparty"}catch(e){warn("ads -- unable to parse live ramp cookie")}return t};var i=getcookie("idl_env");if(i&&n(),!i||!i.includes('"origin":')){var o=getconsentstring(),a=getemailhashesfromsearch()||getemailhashesfromlogin();(function(e,t){return!(shouldapplygdpr()&&!e||!t)})(o,a)&&function(e){window.fetch(e).then(function(e){return e.text()}).then(r).catch(function(e){console.error(e),error("ads -- live ramp request error")})}(function(e,t,n){var r=["md5","sha1","sha256"],i="https://api.rlcdn.com/api/identity/envelope?pid="+e;return object.keys(n).foreach(function(e){r.includes(e)&&n[e]&&(i+="&it=4&iv="+n[e])}),t&&(i+="&ct=4&cv="+t),i}(e,o,a))}}function getallkeywordtargeting(e){void 0===e&&(e={});var t={};return object.keys(e).foreach(function(n){t["cnt_"+n]=e[n]}),t}function getgeneralservicetargeting(e){var t=e.pagedefinition;return object.assign({env_device_type:t.device,ctx_template:t.templatetype,content_type:t.contenttype,ctx_page_channel:sanitizewithdashes(t.channel),ctx_page_sub_channel:t.subchannel,sub_sub_channel:t.subsubchannel,env_server:t.server,ctx_cns_version:version,ctx_page_slug:t.slug},getallkeywordtargeting(t.keywords),getgeotargeting(),t.clientpagetargeting)}function ispluginenabled(e,t){return e&&e.plugins&&!!e.plugins[t]}function targetinglifecycle(e,t){var n,r=new lifecycleregistrar(["service","slot","define","refresh","refreshlc-servicelt"]),i=(get(e,"config")||{}).useblueprinttargeting,o=gettargetingobjecttranslator(void 0!==i&&i),a=(get(e,"plugins.lr")||{}).pid;function s(e){if(!1===e)return e;var t=sanitize(e),n=t.errors,r=t.sanitized;return n&&object.keys(n).length&&debug("targetingsanitizationerrors",{errors:n,sanitized:r}),r}if(a&&(n=new liveramp(a)),r.register("service",getsegmentatortargeting),r.register("service",getgeneralservicetargeting),r.register("service",t.gettargeting),r.register("service",getuserdatapagetargeting),r.register("service",getusersegments),ispluginenabled(e,"aam")){var c=new adobeaudiencemanager;r.register("service",c.gettargeting)}if(ispluginenabled(e,"proximic")){var u=new proximic;r.register("service",u.gettargeting)}if(ispluginenabled(e,"4d")&&r.register("refreshlc-servicelt",get4dtargeting),object.keys(queryparameters).length&&r.register("service",function(){var e=queryparameters.ao_test,t=queryparameters.service_targeting,n=queryparameters.adtest,r={};if(e&&(r.ao_test=e.split(",")),n&&(r.adtest=n.split(",")),t){var i=json.parse(t);object.keys(i).foreach(function(e){r[e]=i[e]})}return r}),r.register("slot",function(e){var t=e.slottypedefinition;return{pos:t.position,ctx_slot_type:t.slotname,ctx_slot_rn:0}}),r.register("slot",gettargeting.bind(null,"ads",["cnt_tags","cnt_cm"],[])),r.register("slot",getflagtargeting),n&&r.register("refresh",getreportingtargeting.bind(null,{liveramp:n})),r.register("define",function(e){var t=e.slotdefinition;return{pos_instance:t.positioncount,ctx_slot_instance:t.slotcount,ctx_slot_name:t.id,slot_name:t.positionid}}),auctioneer.areauctionsenabled(e)){if(auctioneer.isauctionenabled(e,"amazon_match_buy")){var l=new amazonmatchbuy;r.register("refresh",auctioneer.createslotauctioneligible(l),auctioneer.createstartauction(l))}if(auctioneer.isauctionenabled(e,"prebid")){var f=new prebid(e);r.register("refresh",auctioneer.createslotauctioneligible(f),auctioneer.createstartauction(f))}}this.register=r.register,this.withtargeting=function(e,t,n){return promise.resolve(r.apply(e,t)).then(s).then(o).then(n)}}function uniquetimerstore(){var e={};function t(t){var n=e[t];n&&(cleartimeout(n),e[t]=null)}this.starttimer=function(n,r,i){t(n),e[n]=settimeout(function(){t(n),r()},i)},this.endtimer=t}function keycounter(){var e={};this.increment=function(t){e[t]||(e[t]=0),e[t]+=1},this.remove=function(t){e[t]&&delete e[t]},this.getcount=function(t){return e[t]||0}}function refreshcontrol(e,t){var n=t.withtargeting,r=new eventemitter("refreshcontrol").debug,i=new keycounter,o=new keycounter,a=new set,s=new set,c=new set,u=new uniquetimerstore,l=3e4,f=[["aged",function(e){return a.has(e)}],["impressions",function(e){return o.getcount(e)}],["visible",function(e){return c.has(e)}]],d=function(e){return!number.isnan(parsefloat(e))},g=function(e){return e+".refresh_"+i.getcount(e)},p=function(t){return e.getsingleinstance().getslotdefinitionfromgptslot(t)},h=function(){return e.getsingleinstance().getpagedefinition()},m=cumulativeargumentdebounce(function(e){var t=uniq(e.map(function(e){return e[0]}));window.cns.flags.shouldnotrefresh?r("window.cns.flags.shouldnotrefresh"):(r("refreshing."+t.map(function(e){return g(e)}).join(",")),t.foreach(function(e){return _(p(getslotbyid(e)))}),get(window,"cns.config.config.useroadblock")||window.googletag.pubads().refresh(t.map(getslotbyid),{changecorrelator:!1}))},100);function v(e){r("onchange."+e+".("+f.map(function(t){return t[0]+":"+t[1](e)}).join(",")+")"),all(f,function(t){return t[1](e)})&&function(e){var t=h(),o=getslotbyid(e),a=p(o);r("settargeting."+g(e));var s=getconfig(window).config.useblueprinttargeting,c=gettargetingkeytranslator(void 0!==s&&s)("ctx_slot_rn");return o.settargeting(c,i.getcount(e)),n(["refreshlc-servicelt"],{pagedefinition:t},function(e){return applytargeting(window.googletag.pubads(),e),n(["refresh"],{pagedefinition:t,slotdefinition:a,slot:o},function(e){object.keys(e).foreach(function(t){return o.settargeting(t,e[t])})})})}(e).then(function(){m(e)})}function y(e,t){var n;n=t,n=parseint(n,10),t=d(n)&&n>l?n:l,u.starttimer(e,function(){a.add(e),v(e)},t),r("willrefreshin."+e+"."+t)}function _(e){var t=e.id;o.remove(t),a.delete(t),y(t,e.refresh)}function b(e){return!e.iscm&&!e.isoutofpage&&!window.cns.flags.shouldnotrefresh&&!1!==e.refresh}function w(e){u.endtimer(e)}this.reset=function(e){b(e)?_(e):r("slotnotrefreshable."+e.id)},this.onslotrenderended=function(e){var t=e.advertiserid,n=e.slot,r=p(n).id;i.getcount(r)&&4552798968===t&&w(n.getslotelementid()),i.increment(r)},this.onimpressionviewable=function(e){var t=e.slot.getslotelementid();o.increment(t),r(t+".impressionincremented"),v(t),b(p(e.slot))&&function(e){if(!s.has(e)){var t=getelementbyid(e);s.add(e),onintersection(t,{},function(t){t?(c.add(e),v(e)):c.delete(e)})}}(t)},this.disablerefresh=w,this.delayrefresh=y}function shareofvoice(){var e=[],t=[],n=[];function r(e,t){t&&-1===e.indexof(t)&&e.push(t)}this.gettargeting=function(){return{ctx_advertisers:e,ctx_line_items:t,ctx_creatives:n}},this.onslotrenderended=function(i){var o=i.advertiserid,a=i.lineitemid,s=i.creativeid;r(e,o),r(t,a),r(n,s)}}function setsheet(){var e=document.createelement("style");return e.id="cns_version",e.appendchild(document.createtextnode("")),document.head.appendchild(e),e.sheet}function addcssrule(e,t,n){return e.insertrule&&e.insertrule(t+"{"+n+"}",0)||e.addrule&&e.addrule(t,n,0)}function renderversion(){var e='content: "ads v:'+version+'";color:#fff;background-color:#f00;position:fixed;top:0;right:0;padding:4px 8px;z-index:2147483647;';addcssrule(setsheet(),"body::after",e)}function cnsmetricsapi(){return function(e){e({emit:pixel})}}_export(_export.s,"number",{isnan:function(e){return e!=e}});var updaterefresh=function(e){var t=e.refreshcontrol;return function(e){var n=e.slotname,r=e.refresh;"number"==typeof r&&r>0?t.delayrefresh(n,r):t.disablerefresh(n)}};function cnsadsapi(e,t,n,r){function i(e){var t=e.device,n=void 0===t?"desktop":t,r=e.server,i=void 0===r?"staging":r;return new promise(function(e,t){i&&n||t(),e()})}function o(){return!0===get(window,"cns.pagecontext.adblock")}var a=updaterefresh({refreshcontrol:t});function s(e,t){var n=e.frameelement.parentelement.parentelement.id;a({slotname:n,refresh:t})}function c(e){var t=window.cns.pagecontext,i=new completedefiner(object.assign({},t,e),null,getviewporttemplate());n.reset(function(){return i}),r.insert(n)}function u(){resetuserdata(),window.googletag.cmd.push(function(){window.googletag.pubads().clear(),window.googletag.destroyslots()}),fastdom.mutate(function(){for(var e=document.queryselectorall(".cns-ads-stage"),t=0;t1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:_toabsoluteindex(o,n);a>i;)t[i++]=e;return t},_typedbuffer=createcommonjsmodule(function(e,t){var n=_objectgopn.f,r=_objectdp.f,i="prototype",o="wrong index!",a=_global.arraybuffer,s=_global.dataview,c=_global.math,u=_global.rangeerror,l=_global.infinity,f=a,d=c.abs,g=c.pow,p=c.floor,h=c.log,m=c.ln2,v=_descriptors?"_b":"buffer",y=_descriptors?"_l":"bytelength",_=_descriptors?"_o":"byteoffset";function b(e,t,n){var r,i,o,a=new array(n),s=8*n-t-1,c=(1<>1,f=23===t?g(2,-24)-g(2,-77):0,v=0,y=e<0||0===e&&1/e<0?1:0;for((e=d(e))!=e||e===l?(i=e!=e?1:0,r=c):(r=p(h(e)/m),e*(o=g(2,-r))<1&&(r--,o*=2),(e+=r+u>=1?f/o:f*g(2,1-u))*o>=2&&(r++,o/=2),r+u>=c?(i=0,r=c):r+u>=1?(i=(e*o-1)*g(2,t),r+=u):(i=e*g(2,u-1)*g(2,t),r=0));t>=8;a[v++]=255&i,i/=256,t-=8);for(r=r<0;a[v++]=255&r,r/=256,s-=8);return a[--v]|=128*y,a}function w(e,t,n){var r,i=8*n-t-1,o=(1<>1,s=i-7,c=n-1,u=e[c--],f=127&u;for(u>>=7;s>0;f=256*f+e[c],c--,s-=8);for(r=f&(1<<-s)-1,f>>=-s,s+=t;s>0;r=256*r+e[c],c--,s-=8);if(0===f)f=1-a;else{if(f===o)return r?nan:u?-l:l;r+=g(2,t),f-=a}return(u?-1:1)*r*g(2,f-t)}function s(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function t(e){return[255&e]}function e(e){return[255&e,e>>8&255]}function p(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function a(e){return b(e,52,8)}function i(e){return b(e,23,4)}function r(e,t,n){r(e[i],t,{get:function(){return this[n]}})}function x(e,t,n,r){var i=_toindex(+n);if(i+t>e[y])throw u(o);var a=e[v]._b,s=i+e[_],c=a.slice(s,s+t);return r?c:c.reverse()}function c(e,t,n,r,i,a){var s=_toindex(+n);if(s+t>e[y])throw u(o);for(var c=e[v]._b,l=s+e[_],f=r(+i),d=0;dm;)(o=j[m++])in a||_hide(a,o,f[o]);_library||(k.constructor=a)}var f=new s(new a(2)),d=s[i].setint8;f.setint8(0,2147483648),f.setint8(1,2147483649),!f.getint8(0)&&f.getint8(1)||_redefineall(s[i],{setint8:function(e,t){d.call(this,e,t<<24>>24)},setuint8:function(e,t){d.call(this,e,t<<24>>24)}},!0)}else a=function(e){_aninstance(this,a,"arraybuffer");var t=_toindex(e);this._b=_arrayfill.call(new array(t),0),this[y]=t},s=function(e,t,n){_aninstance(this,s,"dataview"),_aninstance(e,a,"dataview");var r=e[y],i=_tointeger(t);if(i<0||i>r)throw u("wrong offset!");if(i+(n=void 0===n?r-i:_tolength(n))>r)throw u("wrong length!");this[v]=e,this[_]=i,this[y]=n},_descriptors&&(r(a,"bytelength","_l"),r(s,"buffer","_b"),r(s,"bytelength","_l"),r(s,"byteoffset","_o")),_redefineall(s[i],{getint8:function(e){return x(this,1,e)[0]<<24>>24},getuint8:function(e){return x(this,1,e)[0]},getint16:function(e){var t=x(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getuint16:function(e){var t=x(this,2,e,arguments[1]);return t[1]<<8|t[0]},getint32:function(e){return s(x(this,4,e,arguments[1]))},getuint32:function(e){return s(x(this,4,e,arguments[1]))>>>0},getfloat32:function(e){return w(x(this,4,e,arguments[1]),23,4)},getfloat64:function(e){return w(x(this,8,e,arguments[1]),52,8)},setint8:function(e,t){c(this,1,e,t,t)},setuint8:function(e,t){c(this,1,e,t,t)},setint16:function(e,t){c(this,2,e,e,t,arguments[2])},setuint16:function(e,t){c(this,2,e,e,t,arguments[2])},setint32:function(e,t){c(this,4,e,p,t,arguments[2])},setuint32:function(e,t){c(this,4,e,p,t,arguments[2])},setfloat32:function(e,t){c(this,4,e,i,t,arguments[2])},setfloat64:function(e,t){c(this,8,e,a,t,arguments[2])}});_settostringtag(a,"arraybuffer"),_settostringtag(s,"dataview"),_hide(s[i],_typed.view,!0),t.arraybuffer=a,t.dataview=s}),_isarray=array.isarray||function(e){return"array"==_cof(e)},species$2=_wks("species"),_arrayspeciesconstructor=function(e){var t;return _isarray(e)&&("function"!=typeof(t=e.constructor)||t!==array&&!_isarray(t.prototype)||(t=void 0),_isobject(t)&&null===(t=t[species$2])&&(t=void 0)),void 0===t?array:t},_arrayspeciescreate=function(e,t){return new(_arrayspeciesconstructor(e))(t)},_arraymethods=function(e,t){var n=1==e,r=2==e,i=3==e,o=4==e,a=6==e,s=5==e||a,c=t||_arrayspeciescreate;return function(t,u,l){for(var f,d,g=_toobject(t),p=_iobject(g),h=_ctx(u,l,3),m=_tolength(p.length),v=0,y=n?c(t,m):r?c(t,0):void 0;m>v;v++)if((s||v in p)&&(d=h(f=p[v],v,g),e))if(n)y[v]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:y.push(f)}else if(o)return!1;return a?-1:i||o?o:y}},_arraycopywithin=[].copywithin||function(e,t){var n=_toobject(this),r=_tolength(n.length),i=_toabsoluteindex(e,r),o=_toabsoluteindex(t,r),a=arguments.length>2?arguments[2]:void 0,s=math.min((void 0===a?r:_toabsoluteindex(a,r))-o,r-i),c=1;for(o0;)o in n?n[i]=n[o]:delete n[i],i+=c,o+=c;return n},_typedarray=createcommonjsmodule(function(e){if(_descriptors){var t=_library,n=_global,r=_fails,i=_export,o=_typed,a=_typedbuffer,s=_ctx,c=_aninstance,u=_propertydesc,l=_hide,f=_redefineall,d=_tointeger,g=_tolength,p=_toindex,h=_toabsoluteindex,m=_toprimitive,v=_has,y=_classof,_=_isobject,b=_toobject,w=_isarrayiter,s=_objectcreate,t=_objectgpo,e=_objectgopn.f,p=core_getiteratormethod,a=_uid,i=_wks,r=_arraymethods,x=_arrayincludes,c=_speciesconstructor,o=es6_array_iterator,k=_iterators,j=_iterdetect,m=_setspecies,f=_arrayfill,d=_arraycopywithin,l=_objectdp,n=_objectgopd,$=l.f,v=n.f,b=n.rangeerror,u=n.typeerror,q=n.uint8array,z=array.prototype,g=a.arraybuffer,w=a.dataview,h=r(0),k=r(2),y=r(3),j=r(4),z=r(5),q=r(6),x=x(!0),ee=x(!1),te=o.values,ne=o.keys,re=o.entries,ie=z.lastindexof,oe=z.reduce,ae=z.reduceright,se=z.join,ce=z.sort,ue=z.slice,le=z.tostring,fe=z.tolocalestring,de=i("iterator"),ge=i("tostringtag"),pe=a("typed_constructor"),he=a("def_constructor"),me=o.constr,ve=o.typed,ye=o.view,_e=r(1,function(e,t){return ee(c(e,e[he]),t)}),be=r(function(){return 1===new q(new uint16array([1]).buffer)[0]}),we=!!q&&!!q.prototype.set&&r(function(){new q(1).set({})}),se=function(e,t){var n=d(e);if(n<0||n%t)throw b("wrong offset!");return n},te=function(e){if(_(e)&&ve in e)return e;throw u(e+" is not a typed array!")},ee=function(e,t){if(!(_(e)&&pe in e))throw u("it is not a typed array constructor!");return new e(t)},pe=function(e,t){return ae(c(e,e[he]),t)},ae=function(e,t){for(var n=0,r=t.length,i=ee(e,r);r>n;)i[n]=t[n++];return i},ie=function(e,t,n){$(e,t,{get:function(){return this._d[n]}})},re=function(e){var t,n,r,i,o,a,c=b(e),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,d=p(c);if(void 0!=d&&!w(d)){for(a=d.call(c),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);c=r}for(f&&u>2&&(l=s(l,arguments[2],2)),t=0,n=g(c.length),i=ee(this,n);n>t;t++)i[t]=f?l(c[t],t):c[t];return i},xe=function(){for(var e=0,t=arguments.length,n=ee(this,t);t>e;)n[e]=arguments[e++];return n},ce=!!q&&r(function(){fe.call(new q(1))}),oe=function(){return fe.apply(ce?ue.call(te(this)):te(this),arguments)},ke={copywithin:function(e,t){return d.call(te(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return j(te(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return f.apply(te(this),arguments)},filter:function(e){return pe(this,k(te(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return z(te(this),e,arguments.length>1?arguments[1]:void 0)},findindex:function(e){return q(te(this),e,arguments.length>1?arguments[1]:void 0)},foreach:function(e){h(te(this),e,arguments.length>1?arguments[1]:void 0)},indexof:function(e){return ee(te(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return x(te(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return se.apply(te(this),arguments)},lastindexof:function(e){return ie.apply(te(this),arguments)},map:function(e){return _e(te(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return oe.apply(te(this),arguments)},reduceright:function(e){return ae.apply(te(this),arguments)},reverse:function(){for(var e,t=te(this).length,n=math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ce.call(te(this),e)},subarray:function(e,t){var n=te(this),r=n.length,i=h(e,r);return new(c(n,n[he]))(n.buffer,n.byteoffset+i*n.bytes_per_element,g((void 0===t?r:h(t,r))-i))}},je=function(e,t){return pe(this,ue.call(te(this),e,t))},me=function(e){te(this);var t=se(arguments[1],1),n=this.length,r=b(e),i=g(r.length),o=0;if(i+t>n)throw b("wrong length!");for(;o255?255:255&n),r.v[h](t*a+r.o,n,be)}(this,t,e)},enumerable:!0})};w?(m=s(function(e,t,n,r){c(e,m,f,"_d");var i,o,s,u,d=0,h=0;if(_(t)){if(!(t instanceof g||"arraybuffer"==(u=y(t))||"sharedarraybuffer"==u))return ve in t?ae(m,t):re.call(m,t);i=t,h=se(n,a);var v=t.bytelength;if(void 0===r){if(v%a)throw b("wrong length!");if((o=v-h)<0)throw b("wrong length!")}else if((o=g(r)*a)+h>v)throw b("wrong length!");s=o/a}else s=p(t),i=new g(o=s*a);for(l(e,"_d",{b:i,o:h,l:o,e:s,v:new w(i)});d