cdn.cxense.com Open in urlscan Pro
2a02:26f0:ab00:3a8::268b  Public Scan

URL: https://cdn.cxense.com/ari-ci.js
Submission: On September 16 via api from IT — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

/**
 * @license
 * Piano Browser SDK-ari-ci@2.8.77.
 * Copyright 2010-2022 Piano Software Inc.
 */
!function(){window.cX=window.cX||{};var t=window.cX;window.ari=window.ari||{};var e,n,r,o,i,a=window.ari,c=function(){var t=null;return window.__pctx_connection__=function(e){if(e){var n=e("get-data");t=Object.assign({},n.getCachedData()),n.terminate()}return"uvm42pas28m"},t},s=function(t){var e=new Date,n=function(t){t&&e.setDate(e.getDate()+t)};if(t instanceof Date)e=t;else if("number"==typeof t)n(t);else{var r=t,o=r.days,i=r.minutes;n(o),i&&e.setMinutes(e.getMinutes()+i)}return e},u=function(t){var e=t.replace(/\+/g," ").replace(/^\s+|\s+$/g,"");try{return decodeURIComponent(e)}catch(t){return e}},d=function(t){return 0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),u(t)},f=function(){var t=function(t,e,n){var r=void 0===n?{}:n,o=r.path,i=r.domain,a=r.expires,c=r.secure,u=r.samesite,d=r.raw,f=r.priority;return(d?t:encodeURIComponent(t))+"="+(d?e:encodeURIComponent(e))+(a?"; expires=".concat(s(a).toUTCString()):"")+(o?"; path=".concat(o):"")+(i?"; domain=".concat(i):"")+(c?"; secure":"")+(u?"boolean"==typeof u?"; sameSite":"; sameSite=".concat(u):"")+(f?"; priority=".concat(f):"")},e=function(e,n,r,o){var i;void 0===n||void 0!==o&&(i=n,encodeURI(i).split(/%(?:u[\dA-F]{2})?[\dA-F]{2}|./).length-1>o)||(document.cookie=t(e,n,r))},n=function(t){for(var e=document.cookie.split(";"),n=0;n<e.length;n++){var r=e[n].split("=");if(t(u(r[0]),r[1]||""))return}};function r(t){var e=null,r={};return n((function(n,o){if(t){if(n===t)return e=d(o),!0}else r[n]=d(o)})),t?e:r}var o,i,a=function(t,n){e(t,"",Object.assign({},n,{expires:-1}))},c=(o="_cookie_test",i="https:"===document.location.protocol,function(t){void 0===t&&(t=[]);var n=window.location.hostname.split("."),c=(new Date).getTime().toString(36)+Math.round(2147483647*Math.random()).toString(36),s=new Date;s.setSeconds(s.getSeconds()+30);for(var u=0;u<n.length;u++)try{var d=n.slice(-(u+1)).join(".");if(!t.includes(d)){e(o,c,{expires:s,path:"/",domain:d,secure:i});var f=r(o)===c;if(a(o,{path:"/",domain:d}),f)return d}}catch(t){}});return{set:e,get:r,getNames:function(){var t=[];return n((function(e){t.push(e)})),t},remove:a,getTopLevelDomain:c,__private__:{_generateCookieString:t}}}();e="_ls_ttl",n=function(){try{var t=window.localStorage.getItem(e);return t?JSON.parse(t):null}catch(t){return null}},r=function(t){try{Object.keys(t).length?window.localStorage.setItem(e,JSON.stringify(t)):window.localStorage.removeItem(e)}catch(t){}},o=function(){var t=i(),e=n(),o={};e&&(Object.keys(e).forEach((function(n){if(t.includes(n)){var r=e[n]?parseInt(e[n],36):null;if(!(i=r)||i>Date.now())o[n]=e[n];else try{window.localStorage.removeItem(n)}catch(t){}}var i})),JSON.stringify(e)!==JSON.stringify(o)&&r(o))},i=function(){try{return Object.keys(window.localStorage)}catch(t){return[]}},o();var l=["pantheon.io","go-vip.net","go-vip.co"];var v=document.createElement.bind(document),p=document.getElementById.bind(document),g=document.getElementsByTagName.bind(document),w=encodeURIComponent,m=parseInt,h=Object.prototype.hasOwnProperty;function y(){return"development"===t.env.nodeEnv}function I(t){y()&&console.error(t)}function b(){y()&&console.info.apply(window,Array.prototype.slice.call(arguments))}function S(t){return null===t}function E(t){return"string"==typeof t}function O(t){return"function"==typeof t}function _(t){return"[object Array]"===Object.prototype.toString.call(t)}function C(t){return"object"==typeof t&&!S(t)&&!_(t)}function A(t){return!t.length}function j(t,e,n){for(var r=0;r<t.length;r++)e.call(n,t[r],r,t)}function k(t,e){return t.indexOf(e)>-1}var T={some:function(t,e,n){var r=!1;return j(t,(function(o,i){r=r||e.call(n,o,i,t)})),r},forEach:j,remove:function(t,e){var n=t.indexOf(e);return n>-1&&t.splice(n,1),t}};function M(t,e,n){for(var r in t)h.call(t,r)&&e.call(n,t[r],r,t)}var U={forEach:M,some:function(t,e,n){var r=!1;return M(t,(function(o,i){r=r||e.call(n,o,i,t)})),r},keys:function(t){var e=[];return M(t,(function(t,n){e.push(n)})),e}};function x(t,e){return j(e,(function(e){t.push(e)})),t}var P=["__proto__","prototype","constructor"];function R(t,e){return M(e,(function(e,n){k(P,""+n)||(C(e)?(C(t[n])||(t[n]={}),R(t[n],e)):_(e)?(_(t[n])||(t[n]=[]),x(t[n],e)):t[n]=e)})),t}var L=0;function B(){}function D(t){return!!window.pdl&&(!!window.pdl.requireConsent&&(!t||window.pdl.requireConsent===t))}function N(){var t;try{t=c()}catch(e){I(e),t=null}return!S(t)&&!!t.browserId}function K(){var t,e={};try{t=c()}catch(e){I(e),t=null}var n,r=t.content,o=t.consent;return e.ckp=t.browserId,e.rnd=t.pageViewId,e.siteId=window.tp.aid,e.source="ci",R(e,{cCreatedAt:(n=r||{}).createdAt,cAuthor:n.authors?n.authors.join(","):void 0,cSection:n.section,cTags:n.tags,cType:n.type,t:n.title}),R(e,function(t){if(!D())return{};var e=t.PA?t.PA.mode:"not-acquired";return{conPurpose:D("v2")?"AM":void 0,conMode:e}}(o||{})),e}f.getTopLevelDomain(l);var X={stringify:JSON.stringify,parse:JSON.parse};function J(){try{var t=navigator.userAgent;return/Safari/.test(t)&&!/Android|Chrome|bot|link/.test(t)}catch(t){return!1}}function q(){return/Firefox/.test(navigator.userAgent)}function V(){try{return/Edg\/8/.test(navigator.userAgent)}catch(t){return!1}}var F="_cX_check";function W(){try{return window.localStorage.setItem(F,F),window.localStorage.removeItem(F),!0}catch(t){return!1}}function H(){try{return window.sessionStorage.setItem(F,F),window.sessionStorage.removeItem(F),!0}catch(t){return!1}}function z(){try{return window.history&&"pushState"in window.history}catch(t){return!1}}function G(){if(q())return!0;var t=navigator.userAgent;return function(t){if(/Chrom[[e|ium]+/i.test(t)){var e=t.match(/Chrom[^ /]+\/(\d+)/i),n=e&&e[1]&&m(e[1],10);return!!n&&(n<51||n>=67)}return!1}(t)||function(t){var e=/iP.+;\sCPU\s.*OS\s12/i.test(t),n=/Mac\sOS\sX\s10_14/i.test(t),r=/^Mozilla\/[.\d].*\(Macintosh;.*Mac OS X\s*(?:\S.*)?\) AppleWebKit\/[.\d].*\(KHTML, like Gecko.*\)/i.test(t);return(J()||r)&&!e&&!n}(t)||function(t){if(/UCBrowser/i.test(t)){var e=t.match(/UCBrowser\/(\d+)\.(\d+)\.(\d+)/i);if(e&&e.length>=4){var n=m(e[1],10),r=m(e[2],10),o=m(e[3],10);return!(n<12||12===n&&r<13||12===n&&13===r&&o<2)}}return!1}(t)}function $(){try{return"https:"===window.location.protocol}catch(t){return!1}}function Q(t,e,n,r){if(!1!==e){var o=v("script");o.async=!0,o.type="text/javascript",n&&(o.charset=n),r&&(o.id=r),o.src=t;var i=document.head||g("head")[0];i.insertBefore(o,i.firstChild)}else document.write('<script type="text/javascript" src="'+t+'"'+(r?' id="'+r+'"':"")+(n?' charset="'+n+'"':"")+"><\/script>")}function Y(t){var e={},n=t.replace(/\?/,"").replace(/#/,"").split("&");return T.forEach(n,(function(t){var n=t.split("=");if(2===n.length){var r=decodeURIComponent(n[0]),o=decodeURIComponent(n[1]);void 0!==e[r]?(_(e[r])||(e[r]=[e[r]]),e[r].push(o)):e[r]=o}})),e}var Z=["geo","device"];function tt(){if(t.library.m_noConsentCache)return t.library.m_consentParameters;var e,n,r=(e="cX_cons",t.env.hasLocalStorage&&(n=t.library._consent.localStorage.get("_"+e)),n);if(S(r))return{};var o={};return U.forEach(Y(r),(function(t,e){o[e]="true"===t})),o}function et(e){return!(2===t.library.m_consentVersion||!function(t){return k(Z,t)}(e))||!!tt()[e]}function nt(e){return t.library&&t.library.m_usesConsent?!et(e):!!D()&&!function(e){var n=t.library._consent.events.check(e);return!S(n)&&n.allowed}(e)}function rt(e,n,r){var o,i,a=r||{},c="cXJsonpCB"+(o&&(L=0),++L),s=c+"script";window[c]=function(){i&&clearTimeout(i),window[c]=B;try{O(n)&&n.apply(window,arguments)}catch(t){I(t)}var t=p(s);S(t)||S(t.parentElement)||t.parentElement.removeChild(t)},a.timeout&&(i=function(e,n){var r=window.setTimeout((function(){T.remove(t.library.m_timerIds,r),e.apply(window,arguments)}),n);return t.library.m_timerIds.push(r),r}(window[c],a.timeout)),b("== jsonp request sent",e),Q(e.replace(/\{\{callback\}\}/,w(c)),!a.synchronous,a.charset,s)}function ot(t){return t>6?10:function(t){var e=(1+Math.pow(5,.5))/2,n=(1-Math.pow(5,.5))/2;return Math.floor((Math.pow(e,t)-Math.pow(n,t))/Math.pow(5,.5))}(t+2)-1}function it(t,e,n,r,o,i){if(!nt("pv")){var c,s,u,d=R({},e),f=R(d,n),l=R(f,r),v=R(l,"in-screen"===t?{}:o),p=R(v,"in-screen"===t?{}:i),g=(c=p,s="",U.forEach(c,(function(t,e){E(t)||"number"==typeof t||"boolean"==typeof t?s+=(A(s)?"":"&")+w(e)+"="+w(""+t):_(t)&&T.forEach(t,(function(t){s+=(A(s)?"":"&")+w(e)+"="+w(""+t)}))})),s),m=function(t,e){if(e=e||4095,t.length>e){var n=t.slice(0,e),r=n.lastIndexOf("&"),o=n.lastIndexOf("%2C"),i=Math.max(r,o);return-1===i?n:n.slice(0,i)}return t}(a.statsCollectorUrl+"/"+t+"?"+g);O(window.fetch)?(u=m,window.fetch(u),b("== fetch request sent",u)):rt(m)}}function at(){return K()}function ct(){var t=window.googletag.pubads();if(O(t.getTargeting)&&O(t.getTargetingKeys)&&O(t.getAttributeKeys)){var e={},n=t.getTargeting("permutive"),r=t.getTargeting("CxSegments"),o=t.getTargetingKeys(),i=t.getAttributeKeys();return n&&!A(n)&&(e=R(e,{permutiveSids:n.join(",")})),r&&!A(r)&&(e=R(e,{cxSids:r.join(",")})),o&&!A(o)&&(e=R(e,{targKeys:o.join(",")})),i&&!A(i)&&(e=R(e,{attrKeys:i.join(",")})),e}return{}}function st(){var t,e=window.instBid&&O(window.instBid.getUserIds)?window.instBid.getUserIds():window.pbjs&&O(window.pbjs.getUserIds)?window.pbjs.getUserIds():{};return e&&(t=!0,M(e,(function(){t=!1})),!t)?{userIdSources:U.keys(e).join(",")}:{}}function ut(t,e,n){a.suspendEvents?a._eventsCache.push([t,e,n]):it(t,e,n,at(),ct(),st())}function dt(){return{location:window.location.href}}function ft(t){var e=t.getResponseInformation();return S(e)?{adId:null,bnId:null,pId:t.getAdUnitPath()}:{adId:e.lineItemId||e.sourceAgnosticLineItemId,bnId:e.creativeId||e.sourceAgnosticCreativeId,pId:t.getAdUnitPath()}}function lt(t){return t.adId+"_"+t.bnId+"_"+t.pId}x(x([],["pv","segment","ad","recs"]),Z);var vt,pt={},gt={},wt={};function mt(){return"viewability"===a.mode}function ht(t){try{if(t.slot){var e=ft(t.slot),n=lt(e);if(t.isEmpty)return;if(!e.adId&&!e.bnId)return;if(pt[n]={adId:e.adId,bnId:e.bnId,pId:e.pId},O(t.slot.getOutOfPage)&&t.slot.getOutOfPage())return;mt()||ut("imp",dt(),e)}else b("== ARI Event slot is undefined",t)}catch(t){I(t)}}function yt(t){var e=lt(t);wt[e]&&clearTimeout(wt[e]),wt[e]=window.setTimeout((function(){if(pt[e]){var n=Math.floor((Date.now()-pt[e].timeOnScreen)/1e3);if(t.timeOnScreen=n,n>=60)return void(gt[e]&&(gt[e]=0))}gt[e]++,ut("in-screen",dt(),t),yt(t)}),1e3*ot(gt[e]))}function It(t){try{if(t.slot){var e=ft(t.slot),n=lt(e);pt[n]||(pt[n]={adId:e.adId,bnId:e.bnId,pId:e.pId}),gt[n]=0,pt[n].timeOnScreen=Date.now()-1e3,O(t.slot.getOutOfPage)&&t.slot.getOutOfPage()&&(mt()||ut("imp",dt(),e)),yt(e)}else b("== ARI Event slot is undefined",t)}catch(t){I(t)}}function bt(t){try{if(t.slot){var e=lt(ft(t.slot));t.inViewPercentage<1&&(wt[e]&&clearTimeout(wt[e]),gt[e]&&(gt[e]=0))}else b("== ARI Event slot is undefined",t)}catch(t){I(t)}}function St(t){try{if(C(t)&&E(t.data)){var e=Y(t.data);"click"===e.gptEvent&&E(e.gptParams)&&!mt()&&ut("click",dt(),X.parse(e.gptParams))}}catch(t){I(t)}}function Et(){a._eventsCache=[],window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push((function(){var t,e,n,r,o=window.googletag.pubads();o.addEventListener("slotRenderEnded",ht),o.addEventListener("impressionViewable",It),o.addEventListener("slotVisibilityChanged",bt),t=window,e="message",n=St,t.addEventListener&&t.addEventListener(e,n,C(r)?r:!!r)})),window.OBREvents=window.OBREvents||[];var t={};return window.OBREvents.push({name:"rendered",widgetId:"all",callback:function(e){var n=e.servedWidgetId||e.widgetId;setTimeout((function(){t[n]||ut("wid",dt(),{adPlatform:"outbrain",pId:n})}),10)}}),window.OBREvents.push({name:"norecs",widgetId:"all",callback:function(e){t[e.servedWidgetId||e.widgetId]=!0}}),function(){var t,e,n,r;t=window,e="message",n=St,t.removeEventListener&&t.removeEventListener(e,n,C(r)?r:!!r)}}try{R(t,{env:{nodeEnv:"production",canSetSameSite:G(),isSafari:J(),isEdgeNotChromium:V(),isFirefox:q(),isSecureProtocol:$(),hasHistory:z(),hasLocalStorage:W(),hasSessionStorage:H()}}),vt=function(){Et(),a.statsCollectorUrl="https://stats-collector.cxense.com/cr-stats/event",a.suspendEvents=!N(),a.suspendEvents&&function t(){N()?(U.forEach(a._eventsCache,(function(t){it(t[0],t[1],t[2],at(),ct(),st())})),a.suspendEvents=!1,a._eventsCache=[]):setTimeout((function(){t()}),50)}()},document.prerendering?document.addEventListener("prerenderingchange",vt,{once:!0}):vt()}catch(t){I(t)}}();