PageSourceSearch

https://www.billedbladet.dk/dtnl/blink/blink-bundle.js?rnd=1497190999

js billedbladet.dk collected 2026-10-02 03:08:42 UTC 80,629 bytes, 1 lines download raw bytes

1!function(){"use strict";const e="9.31.0";function t(){return crypto.randomUUID?crypto.randomUUID():function(){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;const t=Array.from(e,e=>e.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}()}function i(i){const n={id:t(),pageView:i.pageView,hardPageView:i.hardPageView,pageUrl:i.url,version:e};return i.referrer&&(n.referrer=i.referrer),i.pageReferrer&&(n.pageReferrer=i.pageReferrer),void 0!==i.customUserAgent&&(n.customUserAgent=i.customUserAgent),void 0!==i.dkLoggedIn&&(n.dkLoggedIn=i.dkLoggedIn),void 0!==i.fiLoginId&&(n.fiLoginId=i.fiLoginId),n}function n(){const e=s(location.pathname);return location.origin+e+location.search}function a(e){const t=new URL(e),i=s(t.pathname);return t.origin+i+t.search}function s(e){return e.replace(/\/index\.html$/,"/")}function o(e,t,i){if(!t)return e;const n=Math.max(0,i.getTime()-t.getTime());return e+Math.min(n,1e4)}function r(e,t){const{url:n}=e.general,s=o(e.activeTime.accumulatedTimeMs,e.activeTime.lastInteractionTime,t.time),r=s>e.activeTime.lastSentActiveTimeMs,l=e.activeTime.pageScrollYMax>e.activeTime.lastSentScrollYMax;if(!r&&!l)return;const c=e.activeTime.lastSentActiveTimeMs<5e3&&s>=5e3;if(!("type"in t&&"stop"===t.type)&&e.activeTime.lastSentTime){if(t.time.getTime()-e.activeTime.lastSentTime.getTime()<12e3&&!c)return}const d={...i(e.general),type:"activeTime",activeTime:s,pageScrollLatestOffsetY:e.activeTime.pageScrollYLatest,pageScrollMaxOffsetY:e.activeTime.pageScrollYMax},u=e.general?.pageMetadataByPageUrl?.[a(n)];return void 0!==u?.pageAccessType&&(d.pageAccessType=u.pageAccessType),void 0!==e.general?.userPaywallAccess&&(d.userPaywallAccess=e.general.userPaywallAccess),d}class l{constructor(){this.state=void 0}getState(){if(!this.state)throw new Error("GeneralStore state accessed before initialization");return this.state}handlePageInit(i){const n=this.state?.url??i.referrer??void 0,a=i.pageView??t(),s=this.state?.hardPageView??a,o={customUserAgent:i.customUserAgent,pageType:i.pageType??"",pageView:a,hardPageView:s,previousPageView:i.previousPageView??this.state?.pageView??void 0,referrer:i.referrer,pageReferrer:n,url:i.url,version:e,pageMetadataByPageUrl:this.state?.pageMetadataByPageUrl??{},userPaywallAccess:this.state?.userPaywallAccess??void 0};void 0!==this.state?.dkLoggedIn&&(o.dkLoggedIn=this.state.dkLoggedIn),void 0!==this.state?.fiLoginId&&(o.fiLoginId=this.state.fiLoginId),this.state=o}setDKUserLoggedIn(e){this.state&&(this.state.dkLoggedIn=e)}setFILoginId(e){this.state&&(this.state.fiLoginId=e)}setPageAccessType(e,t){if(this.state){const i=a(e);this.state.pageMetadataByPageUrl||(this.state.pageMetadataByPageUrl={}),this.state.pageMetadataByPageUrl[i]||(this.state.pageMetadataByPageUrl[i]={}),this.state.pageMetadataByPageUrl[i].pageAccessType=t}}setUserPaywallAccess(e){this.state&&(this.state.userPaywallAccess=e)}}class c{constructor(){this.state=d()}getState(){return this.state}handlePageActivity(e){const t=o(this.state.accumulatedTimeMs,this.state.lastInteractionTime,e.time);"start"===e.type||"interaction"===e.type?this.state.lastInteractionTime=e.time:"stop"===e.type&&this.state.lastInteractionTime&&(this.state.lastInteractionTime=void 0),this.state.accumulatedTimeMs=t,void 0!==e.scrollY&&(this.state.pageScrollYLatest=e.scrollY,this.state.pageScrollYMax=Math.max(e.scrollY,this.state.pageScrollYMax))}handleActiveTimePulse(e){this.state.pageScrollYLatest=e.scrollY,this.state.pageScrollYMax=Math.max(e.scrollY,this.state.pageScrollYMax)}markEventSent(e,t){this.state.lastSentTime=t,this.state.lastSentActiveTimeMs=e,this.state.lastSentScrollYMax=this.state.pageScrollYMax}reset(){this.state=d()}}function d(){return{lastInteractionTime:void 0,accumulatedTimeMs:0,pageScrollYMax:0,pageScrollYLatest:0,lastSentTime:void 0,lastSentActiveTimeMs:0,lastSentScrollYMax:0}}class u{constructor(){this.state={}}getState(){return this.state}handleJWEvent(e){const t=e.player.playerInstanceId;this.state[t]||(this.state[t]=[]);const i=this.state[t],n=i.length;"time"===e.type&&n>=2&&"time"===i[n-1].type&&"time"===i[n-2].type?i[n-1]=e:i.push(e)}reset(){this.state={}}}class p{constructor(){this.cumulativeTime=0,this.lastEnterTime=null}get isInscreen(){return null!==this.lastEnterTime}handleEnter(e){null===this.lastEnterTime&&(this.lastEnterTime=e)}handleExit(e){if(null===this.lastEnterTime)return;const t=e.getTime()-this.lastEnterTime.getTime();this.cumulativeTime+=Math.max(0,t),this.lastEnterTime=null}getTotalTime(e){let t=this.cumulativeTime;return null!==this.lastEnterTime&&(t+=Math.max(0,e.getTime()-this.lastEnterTime.getTime())),t}}class h{constructor(){this.state={}}getState(){return this.state}handleSlotRenderEnded(e){this._initAdIfNeeded(e.id),this.state[e.id].slotRenderEnded=e,this.state[e.id].shouldSe
1nd=!0}handleSlotOnload(e){this._initAdIfNeeded(e.id),this.state[e.id].slotOnload=e,this.state[e.id].shouldSend=!0}handleImpressionViewable(e){this._initAdIfNeeded(e.id),this.state[e.id].impressionViewable=e,this.state[e.id].shouldSend=!0}handleAdLoadStart(e){this._initAdIfNeeded(e.id),this.state[e.id].adLoad=e}handleLabels(e){this._initAdIfNeeded(e.id),this.state[e.id].labels=e.labels}handleScreenEnter(e){this._initAdIfNeeded(e.id),this.state[e.id].inscreen.handleEnter(e.time)}handleScreenExit(e){this._initAdIfNeeded(e.id),this.state[e.id].inscreen.handleExit(e.time),this.state[e.id].shouldSend=!0}handleScreenEnter0(e){this._initAdIfNeeded(e.id),this.state[e.id].inscreen0.handleEnter(e.time)}handleScreenExit0(e){this._initAdIfNeeded(e.id),this.state[e.id].inscreen0.handleExit(e.time),this.state[e.id].shouldSend=!0}clearAllShouldSendFlags(){for(const e of Object.values(this.state))e.shouldSend=!1}_initAdIfNeeded(e){this.state[e]||(this.state[e]={inscreen:new p,inscreen0:new p,shouldSend:!1})}reset(){this.state={}}}class m{constructor(){this.generalStore=new l,this.activeTimeStore=new c,this.playerStore=new u,this.adStore=new h}getPageState(){return{general:this.generalStore.getState(),activeTime:this.activeTimeStore.getState(),player:this.playerStore.getState(),ads:this.adStore.getState()}}}function g(e,t,i){return"dvr"===e?function(e,t){let i=e;void 0!==i&&(i=Math.abs(i));let n;void 0!==e&&void 0!==t&&(n=Math.abs(e-t));return{duration:i,position:n}}(t,i):{duration:t,position:i}}function y(e,t,n=void 0){const a={...i(e.general),type:"videoLoad",playerInstanceId:t.player.playerInstanceId,videoId:t.player.mediaId,withAdBlock:t.withAdBlock},{duration:s,position:o}=g(t.player.playbackMode,t.player.duration,t.player.position);Number.isFinite(s)&&(a.videoDuration=s),Number.isFinite(o)&&(a.videoPlayPosition=o),void 0!==t.player.viewable&&(a.videoViewable=t.player.viewable),void 0!==t.player.muted&&(a.videoPlayMuted=t.player.muted),void 0!==t.player.channelId&&(a.channelId=t.player.channelId),void 0!==t.player.playbackMode&&(a.videoPlaybackMode=t.player.playbackMode),void 0!==t.player.streamingMode&&(a.streamingMode=t.player.streamingMode),void 0!==t.player.labels&&(a.labels=t.player.labels);const r=n?n.player:t.player;return void 0!==r.width&&(a.width=r.width),void 0!==r.height&&(a.height=r.height),a}function f(e,t){const n={...i(e.general),type:"videoPlay",playerInstanceId:t.player.playerInstanceId,videoId:t.player.mediaId},{duration:a,position:s}=g(t.player.playbackMode,t.player.duration,t.player.position);return Number.isFinite(a)&&(n.videoDuration=a),Number.isFinite(s)&&(n.videoPlayPosition=s),void 0!==t.player.muted&&(n.videoPlayMuted=t.player.muted),void 0!==t.event.playReason&&(n.videoPlayReason=t.event.playReason),void 0!==t.player.playbackMode&&(n.videoPlaybackMode=t.player.playbackMode),void 0!==t.player.streamingMode&&(n.streamingMode=t.player.streamingMode),void 0!==t.player.channelId&&(n.channelId=t.player.channelId),void 0!==t.player.labels&&(n.labels=t.player.labels),n}function v(e,t,n,a,s){const o=function(e){switch(e.type){case"pause":return"pause";case"complete":return"complete";case"seek":return"seek";default:return"exit"}}(n),r={...i(e.general),type:"videoWatch",playerInstanceId:n.player.playerInstanceId,videoId:n.player.mediaId,videoStopReason:o};void 0!==t.player.volume&&(r.videoPlayVolume=Math.floor(t.player.volume)),void 0!==n.player.volume&&(r.videoStopVolume=Math.floor(n.player.volume));const{playPosition:l,stopPosition:c,duration:d}=function(e,t,i,n){const a=t.player.playbackMode,s=function(e,t,i){const{position:n}=g(i,e.player.duration,e.player.position);if(!t)return n;const{position:a}=g(i,t.event.duration,t.event.position);if(void 0!==n&&void 0!==a){const i=a-n,s=(t.player.timestamp-e.player.timestamp)/1e3;if(Math.abs(i-s)<=1)return n}return a??n}(e,i,a),{stopPosition:o,duration:r}=function(e,t,i){const{position:n,duration:a}=g(i,e.player.duration,function(e,t){if("seek"===e.type)return"dvr"===t?void 0:e.event.position;return e.player.position}(e,i));if(!t)return{stopPosition:n,duration:a};const{position:s}=g(i,t.event.duration,t.event.position);if(void 0!==n&&void 0!==s){const i=n-s,o=(e.player.timestamp-t.player.timestamp)/1e3;if(Math.abs(i-o)<=1)return{stopPosition:n,duration:a}}return{stopPosition:s??n,duration:a}}(t,n,a);if(!function(e,t,i,n){if(void 0===e||void 0===t)return!0;
1if(t<e)return!1;const a=(n-i)/1e3,s=t-e,o=Math.abs(s-a),r=Math.abs(s)>10*a;if(o>1&&r)return!1;return!0}(s,o,e.player.timestamp,t.player.timestamp))return{duration:r};return{playPosition:s,stopPosition:o,duration:r}}(t,n,a,s);return Number.isFinite(d)&&(r.videoDuration=d),Number.isFinite(l)&&(r.videoPlayPosition=l),Number.isFinite(c)&&(r.videoStopPosition=c),void 0!==t.event.playReason&&(r.videoPlayReason=t.event.playReason),void 0!==t.player.muted&&(r.videoPlayMuted=t.player.muted),void 0!==n.player.muted&&(r.videoStopMuted=n.player.muted),void 0!==n.player.playbackMode&&(r.videoPlaybackMode=n.player.playbackMode),void 0!==n.player.streamingMode&&(r.streamingMode=n.player.streamingMode),void 0!==n.player.channelId&&(r.channelId=n.player.channelId),void 0!==n.player.labels&&(r.labels=n.player.labels),r.videoWatchClockDurationSeconds=(n.player.timestamp-t.player.timestamp)/1e3,r}function b(e){const{adId:t,ad:n,state:a,time:s}=e,o=n.inscreen.getTotalTime(s),r=n.inscreen0.getTotalTime(s),l={...i(a.general),type:"ads",inscreenTime:o,inscreenTime0:r};t&&(l.adId=t),n.labels&&(l.labels=n.labels);const c=n.adLoad?.scrollTop,d=n.impressionViewable?.scrollTop,u=n.slotOnload?.scrollTop,p=n.slotRenderEnded?.scrollTop;let h;void 0===c&&void 0===d&&void 0===u&&void 0===p||(h={},void 0!==c&&(h.adLoad=c),void 0!==d&&(h.inscreenDFP=d),void 0!==u&&(h.slotOnload=u),void 0!==p&&(h.slotRenderEnded=p));const m=n.adLoad?.offsetTop,g=n.adLoad?.offsetHeight;let y;(h||void 0!==m||void 0!==g)&&(y={},h&&(y.pos=h),void 0!==m&&(y.offsetTop=m),void 0!==g&&(y.offsetHeight=g)),y&&(l.scroll=y);const f={inscreen:void 0!==n.impressionViewable?1:0,rendered:void 0!==n.slotRenderEnded?1:0,loaded:void 0!==n.slotOnload?1:0};!0===n.slotRenderEnded?.isEmpty&&(f.renderedEmpty=!0);const v=n.slotRenderEnded?.timestamp;void 0!==v&&(f.renderedMs=v);const b=n.slotRenderEnded?.adUnitPath;b&&(f.adUnitPath=b);const w=n.slotRenderEnded?.advertiserId;void 0!==w&&(f.advertiserId=w);const I=n.slotRenderEnded?.bidder;I&&(f.bidder=I);const E=n.slotOnload?.name;E&&(f.name=E);const k=n.slotRenderEnded?.campaignId;void 0!==k&&(f.campaignId=k);const T=n.slotRenderEnded?.creativeId;void 0!==T&&(f.creativeId=T);const S=n.slotRenderEnded?.lineItemId;void 0!==S&&(f.lineItemId=S);const P=n.slotRenderEnded?.prebidWinningBid;void 0!==P&&(f.prebidWinningBid=P);const _=n.slotRenderEnded?.size;void 0!==_&&_.length>0&&(f.size=_);const A=n.slotRenderEnded?.sourceAgnosticCreativeId;void 0!==A&&(f.sourceAgnosticCreativeId=A);const L=n.slotRenderEnded?.sourceAgnosticLineItemId;return void 0!==L&&(f.sourceAgnosticLineItemId=L),l.dfp=f,l}function w(e,t){const n={...i(e.general),type:t.data.type};return t.data.ecommerce&&(n.ecommerce=t.data.ecommerce),t.data.collection&&(n.collection=t.data.collection),t.data.labels&&(n.labels=t.data.labels),t.data.params&&(n.params=t.data.params),t.raw&&(n.diagnostics={dataLayerEventRaw:t.raw}),n}function I({send:e}){const t=new m;return{pageInit(e){t.generalStore.handlePageInit(e),t.activeTimeStore.reset(),t.adStore.reset()},pageLoad(n){const s=function(e,t){const{url:n}=e.general,s={...i(e.general),type:"pageLoad"},o=e.general;o.pageType&&(s.pageType=o.pageType),o.previousPageView&&(s.previousPageView=o.previousPageView),t.clientHeight&&(s.clientHeight=t.clientHeight),t.clientWidth&&(s.clientWidth=t.clientWidth),t.scrollHeight&&(s.scroll={scrollHeight:t.scrollHeight}),"soft-nav-scroll"===t.softNavClassification&&(s.isSoftNavScroll=!0);const r=e.general?.pageMetadataByPageUrl?.[a(n)];return void 0!==r?.pageAccessType&&(s.pageAccessType=r.pageAccessType),void 0!==e.general?.userPaywallAccess&&(s.userPaywallAccess=e.general.userPaywallAccess),s}(t.getPageState(),n);e([s])},click(n){const a=function(e,t){const n={...i(e.general),type:"click"};return t.context&&(n.context=t.context),t.clickId&&(n.clickId=t.clickId),t.url&&!t.clickId&&(n.targetUrl=t.url),t.title&&(n.title=t.title),t.personalizationParametersRequested&&(n.personalizationParametersRequested=t.personalizationParametersRequested),t.personalizationSystemUsed&&(n.personalizationSystemUsed=t.personalizationSystemUsed),t.labels&&(n.labels=t.labels),t.fromIframe&&(n.fromIframe=!0),n}(t.getPageState(),n);e([a])},jwEvent(n){const a=t.getPageState();switch(n.type){case"playlistItem":if(1===n.player.viewable){const t=y(a,n);e([t])}break;case"play":if(1===n.player.viewable){const t=f(a,n);e([t])}break;
1case"viewable":{const t=[],i=function(e,t){if(1!==t.event.viewable)return;const i=t.player.playerInstanceId,n=t.player.mediaId,a=e.player[i]??[];for(let i=a.length-1;i>=0;i--){const s=a[i];if(s.player.mediaId===n){if("viewable"===s.type&&1===s.event.viewable)return;if("playlistItem"===s.type&&1!==s.player.viewable)return y(e,s,t)}}}(a,n);i&&t.push(i);const s=function(e,t){if(1!==t.event.viewable)return;const i=t.player.playerInstanceId,n=t.player.mediaId,a=e.player[i]??[];for(let t=a.length-1;t>=0;t--){const i=a[t];if(i.player.mediaId===n){if("viewable"===i.type&&1===i.event.viewable)return;if("play"===i.type&&1!==i.player.viewable)return f(e,i)}}}(a,n);s&&t.push(s),t.length>0&&e(t);break}case"adImpression":{const t=function(e,t){const n={...i(e.general),type:"videoAd",playerInstanceId:t.player.playerInstanceId,videoId:t.player.mediaId,videoAdPosition:t.event.adposition||"pre"};return void 0!==t.event.client&&(n.client=t.event.client),void 0!==t.event.adsystem&&(n.system=t.event.adsystem),void 0!==t.event.adtitle&&(n.title=t.event.adtitle),void 0!==t.event.viewable&&(n.viewable=t.event.viewable),void 0!==t.ad.adId&&(n.adId=t.ad.adId),void 0!==t.ad.creativeId&&(n.creativeId=t.ad.creativeId),void 0!==t.ad.dealId&&(n.dealId=t.ad.dealId),void 0!==t.ad.duration&&(n.duration=Math.floor(t.ad.duration)),void 0!==t.ad.isBumper&&(n.isBumper=t.ad.isBumper),void 0!==t.player.labels&&(n.labels=t.player.labels),n}(a,n);e([t]);break}case"pause":case"seek":case"complete":case"nextClick":case"remove":case"beforeUnloadDOM":{const t=function(e,t){const i=e.player[t.player.playerInstanceId]??[];let n,a,s=1===t.player.viewable;for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.player.mediaId===t.player.mediaId)switch(r.type){case"pause":case"seek":case"complete":case"nextClick":case"remove":case"beforeUnloadDOM":return null;case"time":a||(a=r),n=r;break;case"viewable":1===r.event.viewable&&(s=!0);break;case"play":return 1===r.player.viewable&&(s=!0),s?v(e,r,t,n,a):null}}return null}(a,n);t&&e([t]);break}}t.playerStore.handleJWEvent(n)},performance(n){const a=function(e,t){return{...i(e.general),performanceTimings:t.performanceTimings,type:"performance"}}(t.getPageState(),n);e([a])},webVitals(n){const a=function(e,t){return{...i(e.general),webVitals:t.webVitals,type:"webVitals"}}(t.getPageState(),n);e([a])},consent(n){const a=function(e,t){return{...i(e.general),type:"consentV2",consent:{uuid:t.uuid,tcfV2:t.tcfV2,kind:t.kind,consentGranted:t.consentGranted,consentedToAll:t.consentedToAll,applies:t.applies}}}(t.getPageState(),n);e([a])},tcfConsent(n){const a=function(e,t){if(!t.tcData.tcString||!t.tcData.eventStatus)throw new Error("TCF consent event requires tcString and eventStatus in tcData");return{...i(e.general),type:"tcfConsent",tcData:{tcString:t.tcData.tcString,eventStatus:t.tcData.eventStatus}}}(t.getPageState(),n);e([a])},custom(n){const a=function(e,t){const n={...i(e.general),type:"custom",customType:t.customType};return t.customDomain&&(n.customDomain=t.customDomain),t.customContent&&(n.customContent=t.customContent),void 0!==t.customValue&&(n.customValue=t.customValue),n}(t.getPageState(),n);e([a])},adScreenEnter(e){t.adStore.handleScreenEnter(e)},adScreenExit(e){t.adStore.handleScreenExit(e)},adScreenEnter0(e){t.adStore.handleScreenEnter0(e)},adScreenExit0(e){t.adStore.handleScreenExit0(e)},articlePreviewScreenEnter(n){const a=function(e,t){const n={...i(e.general),type:"impression"};return t.context&&(n.context=t.context),t.url&&(n.targetUrl=t.url),t.title&&(n.title=t.title),t.personalizationParametersRequested&&(n.personalizationParametersRequested=t.personalizationParametersRequested),t.personalizationSystemUsed&&(n.personalizationSystemUsed=t.personalizationSystemUsed),void 0!==t.height&&(n.height=t.height),void 0!==t.width&&(n.width=t.width),t.labels&&(n.labels=t.labels),t.fromIframe&&(n.fromIframe=!0),n}(t.getPageState(),n);e([a])},boxScreenEnter(n){const a=function(e,t){const n={...i(e.general),boxId:t.id,type:"box"};return t.labels&&(n.labels=t.labels),t.fromIframe&&(n.fromIframe=!0),n}(t.getPageState(),n);e([a])}
1,pageActivity(i){if(t.activeTimeStore.handlePageActivity(i),"stop"===i.type){const n=r(t.getPageState(),i);n&&(e([n]),t.activeTimeStore.markEventSent(n.activeTime??0,i.time))}},activeTimePulse(i){t.activeTimeStore.handleActiveTimePulse(i);const n=r(t.getPageState(),i);n&&(e([n]),t.activeTimeStore.markEventSent(n.activeTime??0,i.time))},adSlotRenderEnded(e){t.adStore.handleSlotRenderEnded(e)},adImpressionViewable(e){t.adStore.handleImpressionViewable(e)},adSlotOnload(e){t.adStore.handleSlotOnload(e)},adLoad(e){t.adStore.handleAdLoadStart(e)},adLabels(e){t.adStore.handleLabels(e)},domainEvents(i){for(const n of i){const i=w(t.getPageState(),n);i&&e([i])}},sendAdEvents(i){const n=function(e,t){if(!e)return[];const i=[];for(const[n,a]of Object.entries(e.ads)){if(!a.shouldSend)continue;const s=b({adId:n,ad:a,state:e,time:t});s&&i.push(s)}return i}(t.getPageState(),i);t.adStore.clearAllShouldSendFlags(),n.length>0&&e(n)},setDKLoggedIn(e){t.generalStore.setDKUserLoggedIn(e)},setFILoginId(e){t.generalStore.setFILoginId(e)},setPageAccessType(e,i){t.generalStore.setPageAccessType(e,i)},setUserPaywallAccess(e){t.generalStore.setUserPaywallAccess(e)},pageView:()=>t.generalStore.getState().pageView}}function E(){return"undefined"!=typeof window&&void 0!==window.ia_document?"fb instant article":"undefined"!=typeof window&&void 0!==window.paywallVersion?`paywall-${window.paywallVersion}`:""}const k=e=>{const t="number"==typeof e?e:0;return Number.isFinite(t)&&t>0?Math.round(t):0};function T(e){return{domContentLoadedEventEnd:k(e.domContentLoadedEventEnd),domContentLoadedEventStart:k(e.domContentLoadedEventStart),domInteractive:k(e.domInteractive),loadEventEnd:k(e.loadEventEnd),loadEventStart:k(e.loadEventStart)}}let S=-1;const P=()=>S,_=e=>{addEventListener("pageshow",t=>{t.persisted&&(S=t.timeStamp,e(t))},!0)},A=(e,t,i,n)=>{let a,s;return o=>{t.value>=0&&(o||n)&&(s=t.value-(a??0),(s||void 0===a)&&(a=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,i),e(t)))}},L=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},C=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},M=()=>C()?.activationStart??0;let x=-1;const O=new Set,U=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,V=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of O)e();isFinite(x)||(x="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",V,!0))}},R=(e=!1)=>{if(e&&(x=1/0),x<0){const e=M(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(t=>"hidden"===t.name&&t.startTime>=e)?.startTime;x=t??U(),addEventListener("visibilitychange",V,!0),addEventListener("prerenderingchange",V,!0),_(()=>{setTimeout(()=>{x=U()})})}return{get firstHiddenTime(){return x},onHidden(e){O.add(e)}}},N=(e,t=-1,i,n=0,a,s,o)=>{const r=C(),l=r?.navigationId||0;let c="navigate";return i?c=i:P()>=0?c="back-forward-cache":r&&(document.prerendering||M()>0?c="prerender":document.wasDiscarded?c="restore":r.type&&(c=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:c,navigationId:n||l,navigationInteractionId:a,navigationURL:s||r?.name,navigationStartTime:o||0}},D=new WeakMap;function B(e,t){let i=D.get(t);return i||(i=new WeakMap,D.set(t,i)),i.get(e)||i.set(e,new t),i.get(e)}class F{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],i=this.o.at(-1);this.i&&t&&i&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}const j=(e,t,i={})=>{try{const n=e.filter(e=>PerformanceObserver.supportedEntryTypes.includes(e));if(n.length>0){const e=new PerformanceObserver(e=>{queueMicrotask(()=>{const i=e.getEntries();n.length>1&&i.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(i)})});for(const t of n)e.observe({type:t,buffered:!0,...i});return e}}catch{}},W=e=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes("soft-navigation")&&"function"==typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint&&e&&e.reportSoftNavs,Y=(e,t)=>
1{if(e.set(t.navigationId,t),e.size>2){const t=e.keys().next().value;void 0!==t&&e.delete(t)}},q=e=>{let t=!1;return()=>{t||(e(),t=!0)}};class Q{l}const z=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},H=[1800,3e3],K=(e,t={})=>{const i=W(t);z(()=>{const n=B(t,Q),a=R();let s,o=N("FCP");const r=j(["paint"],e=>{for(const t of e)"first-contentful-paint"===t.name&&(r.disconnect(),t.startTime<a.firstHiddenTime&&(o.value=Math.max(t.startTime-M(),0),o.entries.push(t),o.navigationId=t.navigationId||o.navigationId,s(!0)))});r&&(s=A(e,o,H,t.reportAllChanges),_(i=>{o=N("FCP",-1,"back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,P()),s=A(e,o,H,t.reportAllChanges),L(()=>{o.value=performance.now()-i.timeStamp,s(!0)})})),i&&j(["soft-navigation"],i=>{i.forEach(i=>{n.l&&i.navigationId&&Y(n.l,i);const a=Math.max((i.presentationTime||i.paintTime||0)-i.startTime,0);o=N("FCP",a,"soft-navigation",i.navigationId,i.interactionId,i.name,i.startTime),s=A(e,o,H,t.reportAllChanges),s(!0)})},t)})},$=[.1,.25];let X=0,G=1/0,J=0;const Z=e=>{for(const t of e)t.interactionId&&(G=Math.min(G,t.interactionId),J=Math.max(J,t.interactionId),X=J?(J-G)/7+1:0)};let ee;const te=()=>ee?X:performance.interactionCount??0;class ie{u=0;v=[];m=new Map;p;T;_(){return te()-this.u}M(){this.u=te(),this.v.length=0,this.m.clear()}L(e){const t=this._(),i=Math.min(this.v.length-1,Math.floor(t/50));return!t||-1!==i||"soft-navigation"!==e&&"back-forward-cache"!==e?this.v[i]:{P:8,id:-1,entries:[]}}h(e){if(this.p?.(e),!e.interactionId)return;const t=this.v.at(-1);let i=this.m.get(e.interactionId);if(i||this.v.length<10||e.duration>t.P){if(i?e.duration>i.P?(i.entries=[e],i.P=e.duration):e.duration===i.P&&e.startTime===i.entries[0].startTime&&i.entries.push(e):(i={id:e.interactionId,entries:[e],P:e.duration},this.m.set(i.id,i),this.v.push(i)),this.v.sort((e,t)=>t.P-e.P),this.v.length>10){const e=this.v.splice(10);for(const t of e)this.m.delete(t.id)}this.T?.(i)}}}const ne=e=>{const t="requestIdleCallback"in globalThis?1e3:0,i=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{const a=q(e);let s=-1;const o=()=>{n(s),a()};addEventListener("visibilitychange",o,{once:!0,capture:!0}),s=i(()=>{removeEventListener("visibilitychange",o,{capture:!0}),a()},{timeout:t})}},ae=[200,500],se=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const i=R();z(()=>{"interactionCount"in performance||ee||(ee=j(["event"],Z,{durationThreshold:0}));let n,a=N("INP");const s=B(t,ie),o=(i,o,r,l,c)=>{s.M(),a=N("INP",-1,i,o,r,l,c),n=A(e,a,ae,t.reportAllChanges)},r=()=>{const e=s.L(a.navigationType);e&&e.P!==a.value&&(a.value=e.P,a.entries=e.entries,n())},l=e=>{r(),n(!0),o("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},c=(e,t=!1)=>{ne(()=>{for(const t of e)"soft-navigation"!==t.entryType?s.h(t):l(t);r(),t&&n(!0)})},d=["event","first-input"];W(t)&&d.push("soft-navigation");const u=j(d,c,{...t,durationThreshold:t.durationThreshold??40});n=A(e,a,ae,t.reportAllChanges),u&&(i.onHidden(()=>{c(u.takeRecords(),!0)}),_(()=>{o("back-forward-cache",a.navigationId,a.navigationInteractionId,a.navigationURL,P())}))})};class oe{p;l;h(e){this.p?.(e)}}const re=[2500,4e3],le=[800,1800],ce=e=>{document.prerendering?z(()=>ce(e)):"complete"!==document.readyState?addEventListener("load",()=>ce(e),!0):setTimeout(e)};function de(e,t=0){return Number(`${Math.round(Number(`${e}e${t}`))}e-${t}`)}function ue(e){const t={visitDurationAtSend:performance.now()};let i=!1;const n=()=>{i||(i=!0,t.visitDurationAtSend=Math.ceil(performance.now()),e(t))},a=e=>{t[e.name]=function(e){if("CLS"===e.name)return{value:de(e.value,4)};return{value:de(e.value,0)}}(e)};return((e,t={})=>{const i=R();K(q(()=>{let n,a=N("CLS",0);const s=B(t,F),o=(i,o,r,l,c)=>{a=N("CLS",0,i,o,r,l,c),s.i=0,n=A(e,a,$,t.reportAllChanges)},r=(e=!1)=>{s.i>a.value&&(a.value=s.i,a.entries=s.o),n(e)},l=e=>{r(!0),o("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},c=e=>{for(const t of e)"soft-navigation"!==t.entryType?s.h(t):l(t);r()},d=["layout-shift"];W(t)&&d.push("soft-navigation");const u=j(d,c);u&&(n=A(e,a,$,t.reportAllChanges),i.onHidden(()=>{c(u.takeRecords()),n(!0)}),_(()=>{o("back-forward-cache",a.navigationId,a.navigationInteractionId,a.navigationURL,P()),L(n)}),setTimeout(n))}))})(a,{reportAllChanges:!0}),((e,t={})=>{const i=W(t);let n=N("TTFB"),a=A(e,n,le,t.reportAllChanges);ce(()=>{const s=C();if(s){const o=s.responseStart;n.value=Math.max(o-M(),0),n.entries=[s],a(!0),_(()=>{n=N("TTFB",0,"back-forward-cache",n.navigationId,n.navigationInteractionId,n.navigationURL,P()),a=A(e,n,le,t.reportAllChanges),a(!0)}),i&&j(["soft-navigation"],i=>
1{i.forEach(i=>{i.navigationId&&(n=N("TTFB",0,"soft-navigation",i.navigationId,i.interactionId,i.name,i.startTime),n.entries=[i],a=A(e,n,le,t.reportAllChanges),a(!0))})},t)}})})(a,{reportAllChanges:!0}),((e,t={})=>{let i=!1;const n=W(t);z(()=>{let a,s=R(),o=N("LCP");const r=B(t,oe),l=(n,r,l,c,d)=>{o=N("LCP",-1,n,r,l,c,d),a=A(e,o,re,t.reportAllChanges),i=!1,"soft-navigation"===n&&(s=R(!0))},c=e=>{r.l&&e.navigationId&&Y(r.l,e),i||a(!0),l("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime);const t=e.getLargestInteractionContentfulPaint?.();t&&d([t])},d=e=>{t.reportAllChanges||n||(e=e.slice(-1));for(const t of e){if(!t)continue;if("soft-navigation"===t.entryType){c(t);continue}let e=0,i=[],n=t.startTime;if("largest-contentful-paint"===t.entryType)e=Math.max(t.startTime-M(),0),r.h(t),i=[t];else if("interaction-contentful-paint"===t.entryType){const a=t;if(!o.navigationId)continue;if("interactionId"in a&&a.interactionId!=o.navigationInteractionId)continue;n=a.largestContentfulPaint?.renderTime||0,e=Math.max(n-t.startTime,0),a.largestContentfulPaint&&(r.h(a.largestContentfulPaint),i=[a.largestContentfulPaint])}n<s.firstHiddenTime&&(o.value=e,o.entries=i,a())}},u=["largest-contentful-paint"];n&&u.push("interaction-contentful-paint","soft-navigation");const p=j(u,d);if(p){a=A(e,o,re,t.reportAllChanges);const s=["keydown","click","visibilitychange"],r=e=>{if(e.isTrusted&&!i){const e=o.id;ne(()=>{if(!i){if(!n){p.disconnect();for(const e of s)removeEventListener(e,r,{capture:!0})}e===o.id&&(i=!0,a(!0))}})}};for(const e of s)addEventListener(e,r,{capture:!0});_(n=>{l("back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,P()),a=A(e,o,re,t.reportAllChanges),L(()=>{o.value=performance.now()-n.timeStamp,i=!0,a(!0)})})}})})(a,{reportAllChanges:!0}),se(a,{reportAllChanges:!0}),K(a,{reportAllChanges:!0}),setTimeout(n,1e4),n}const pe="blink.lastPageview",he=";";function me(e,t){const i=function(e,t){return`${e};${t}`}(t,e);try{window.sessionStorage.setItem(pe,i)}catch(e){return!1}return!0}function ge(e){let t;try{t=window.sessionStorage.getItem(pe)}catch(e){return}if(!t)return;const i=function(e){const t=e.indexOf(he);if(-1===t)return;const i=e.substring(0,t),n=e.substring(t+1);return{pageView:i,url:n}}(t);return i&&i.url===e?i.pageView:void 0}const ye=e=>new Promise(t=>setTimeout(t,e)),fe=()=>!(window.pbjs&&"function"==typeof window.pbjs.getConfig),ve="data-am-label-";function be(e){const t={};let i=!1;const n=e.attributes;for(let e=0;e<n.length;e++){const a=n[e];if(a.name.startsWith(ve)){const e=a.name.slice(14);e&&(t[e]=a.value,i=!0)}}return i?t:void 0}function we(e,t){return e?t?{...e,...t}:e:t}function Ie(e){const t=[];for(let i=e;i;i=i.parentElement)i.hasAttribute("data-am-area-context")&&t.push(i);let i;for(let e=t.length-1;e>=0;e--)i=we(i,be(t[e]));return i}function Ee(e){return we(Ie(e),be(e))}function ke(e){const t=e.closest("[data-am-video-context]"),i=t?be(t):void 0;return we(Ie(e),i)}function Te(e,t){return window.Aller?.player?.[e]?.getVideoMode?.(t)??void 0}class Se{constructor(e){this.jwPlayerInstances=new Map,this.sendEvent=e}trackPlayer(e){if(!e)return;if(this.jwPlayerInstances.has(e))return;const t=new Pe(this.sendEvent,e);this.jwPlayerInstances.set(e,t),t.subscribeToJW()}captureAllPlayersOnBeforeUnload(){this.jwPlayerInstances.forEach(e=>{e.captureBeforeUnload()})}}class Pe{constructor(e,t){this.eventQueue=[],this.hasBeenVisible=!1,this.sendEvent=e,this.player=t;const i=t.getConfig();this.playerInstanceId=i?.id||t.getContainer()?.id||"";const n=t.getContainer?.();this.labels=n?ke(n):void 0}sendOrQueueEvent(e){if(this.hasBeenVisible)this.sendEvent(e);else{const t=this.eventQueue.length;"time"===e.type&&t>=2&&"time"===this.eventQueue[t-1].type&&"time"===this.eventQueue[t-2].type?this.eventQueue[t-1]=e:this.eventQueue.push(e)}}async processQueue(){if(!this.hasBeenVisible&&(this.hasBeenVisible=!0,0!==this.eventQueue.length)){if(this.eventQueue[0]?.player?.playerInstanceId.startsWith("reels-")){const e=this.eventQueue[0]?.player?.mediaId;if(e&&!window.location.href.includes(e))for(let t=0;t<5&&!window.location.href.includes(e);t++)await ye(100)}
1this.hasBeenVisible=!0,this.eventQueue.forEach(e=>this.sendEvent(e)),this.eventQueue=[]}}capturePlayerState(e){const t=this.player.getConfig(),i={playerInstanceId:this.playerInstanceId,mediaId:e.mediaid,position:this.player.getPosition(),duration:this.player.getDuration(),muted:this.player.getMute(),width:this.player.getWidth(),height:this.player.getHeight(),viewable:this.player.getViewable(),channelId:e.channelId,volume:this.player.getVolume(),timestamp:performance.now()},n=Te(t?.indexedId,e.mediaid);void 0!==n&&(i.streamingMode=n);const a=(s=t?.streamType,"VOD"===s?"vod":"LIVE"===s?"live":"DVR"===s?"dvr":void 0);var s;return void 0!==a&&(i.playbackMode=a),this.labels&&(i.labels=this.labels),i}captureMinimalPlayerState(e){return{playerInstanceId:this.playerInstanceId,mediaId:e.mediaid,timestamp:performance.now()}}subscribeToJW(){const e=this.player;let t=null;e.getViewable&&1===e.getViewable()&&(this.hasBeenVisible=!0),e.on("playlistItem",()=>{const t=e.getPlaylistItem(),i={type:"playlistItem",player:this.capturePlayerState(t),withAdBlock:fe()};this.sendOrQueueEvent(i)}),e.on("play",t=>{if("playing"===t.oldstate||"stalled"===t.oldstate)return;const i=e.getPlaylistItem(),n={type:"play",event:t,player:this.capturePlayerState(i)};this.sendOrQueueEvent(n)}),e.on("time",t=>{const i=e.getPlaylistItem(),n={type:"time",event:t,player:this.captureMinimalPlayerState(i)};this.sendOrQueueEvent(n)}),e.on("pause",()=>{const t=e.getPlaylistItem(),i={type:"pause",player:this.capturePlayerState(t)};this.sendOrQueueEvent(i)}),e.on("seek",t=>{const i=e.getPlaylistItem(),n={type:"seek",event:t,player:this.capturePlayerState(i)};this.sendOrQueueEvent(n)}),e.on("beforeComplete",()=>{e.getPlaylist&&e.getPlaylist().length>1&&(t=e.getPlaylistItem())}),e.on("complete",()=>{const i=t??e.getPlaylistItem();t=null;const n={type:"complete",player:this.capturePlayerState(i)};this.sendOrQueueEvent(n)}),e.on("nextClick",()=>{const t=e.getPlaylistItem(),i={type:"nextClick",player:this.capturePlayerState(t)};this.sendOrQueueEvent(i)}),e.on("remove",()=>{const t=e.getPlaylistItem(),i={type:"remove",player:this.capturePlayerState(t)};this.sendOrQueueEvent(i)}),e.on("viewable",async t=>{1===t.viewable&&await this.processQueue();const i=e.getPlaylistItem(),n={type:"viewable",event:t,player:this.capturePlayerState(i)};this.sendOrQueueEvent(n)}),e.on("adImpression",t=>{const i=e.getPlaylistItem(),n=((e,t)=>e.reduce((e,t)=>e&&e[t]?e[t]:null,t))(["ima","ad"],t);if(null===n)return void console.warn("adImpression event: ad was not found, `ima > ad` does not exist");const a=n.getAdPodInfo();let s=n.getCreativeId();if(!s){const e=n.getWrapperCreativeIds();e&&e.length>0&&(s=e[0])}const o=a?a.getIsBumper():void 0,r={type:"adImpression",event:t,player:this.capturePlayerState(i),ad:{adId:n.getAdId(),creativeId:s,dealId:n.getDealId(),duration:n.getDuration(),isBumper:o}};this.sendOrQueueEvent(r)})}captureBeforeUnload(){const e=this.player.getPlaylistItem(),t={type:"beforeUnloadDOM",player:this.capturePlayerState(e)};this.sendOrQueueEvent(t)}}class _e{constructor(e){this.instances=new Map,this.sendEvent=e}trackVideo(e){if(!e)return;if(this.instances.has(e))return;const t=new Ae(this.sendEvent,e,()=>this.instances.delete(e));this.instances.set(e,t),t.subscribe()}captureAllPlayersOnBeforeUnload(){this.instances.forEach(e=>e.captureBeforeUnload())}notifyNextClick(e){this.instances.get(e)?.captureNextClick()}}class Ae{constructor(e,t,i){this.eventQueue=[],this.hasBeenVisible=!1,this.hasLoaded=!1,this.hasRemoved=!1,this.isPlaying=!1,this.isIntersecting=!1,this.viewable=0,this.lastKnownPosition=0,this.videoListeners=[],this.sendEvent=e,this.video=t,this.onCleanup=i,this.labels=ke(t)}sendOrQueueEvent(e){this.hasBeenVisible?this.sendEvent(e):this.eventQueue.push(e)}processQueue(){this.hasBeenVisible||(this.hasBeenVisible=!0,this.eventQueue.forEach(e=>this.sendEvent(e)),this.eventQueue=[])}getPlaybackMode(){const e=this.video.duration;if(!Number.isNaN(e))return Number.isFinite(e)?"vod":"live"}capturePlayerState(){const e=this.video,t={playerInstanceId:e.dataset.playerInstanceId||e.id,mediaId:e.dataset.mediaId||e.currentSrc,position:e.currentTime,duration:Number.isFinite(e.duration)?e.duration:void 0,muted:e.muted,width:e.clientWidth,height:e.clientHeight,viewable:this.viewable,volume:Math.round(100*e.volume),timestamp:performance.now()};e.dataset.channelId&&(t.channelId=e.dataset.channelId),this.labels&&(t.labels=this.labels);const i=this.getPlaybackMode();return void 0!==i&&(t.playbackMode=i),t}subscribe(){const e=this.video,t=(t,i)=>{e.addEventListener(t,i),this.videoListeners.push([t,i])};t("timeupdate",()=>{this.lastKnownPosition=e.currentTime}),t("loadedmetadata",()=>{if(this.hasLoaded)return;this.hasLoaded=!0;const e={type:"playlistItem",player:this.capturePlayerState(),withAdBlock:fe()};this.sendOrQueueEvent(e)}),t("play",()=>{if(this.isPlaying)return;this.isPlaying=!0;const e={type:"play",event:{},player:this.capturePlayerState()};this.sendOrQueueEvent(e)}),t("pause",()=>{if(e.ended)return;this.isPlaying=!1;const t={type:"pause",player:this.capturePlayerState()};this.sendOrQueueEvent(t)}),t("seeking",()=>{const e={type:"seek",event:{currentTime:this.lastKnownPosition},player:this.capturePlayerState()};this.sendOrQueueEvent(e)}),t("ended",()=>{this.isPlaying=!1;const e={type:"complete",player:this.capturePlayerState()};this.sendOrQueueEvent(e)}),t("adImpression",e=>{this.captureImaAdImpression(e.detail)}),this.subscribeToVisibility(),this.subscribeToRemoval()}subscribeToVisibility(){const e=()=>{const e=this.isIntersecting&&!document.hidden?1:0;if(e===this.viewable)return;this.viewable=e,1===e&&this.processQueue();const t={type:"viewable",event:{viewable:e},player:this.capturePlayerState()};this.sendOrQueueEvent(t)};this.intersectionObserver=new IntersectionObserver(t=>{t.forEach(t=>{this.isIntersecting=t.intersectionRatio>=.5,e()})},{threshold:.5}),this.intersectionObserver.observe(this.video),this.onDocumentVisibilityChange=e,document.addEventListener("visibilitychange",this.onDocumentVisibilityChange)}subscribeToRemoval(){this.removalObserver=new MutationObserver(e=>
1{for(const t of e)for(const e of Array.from(t.removedNodes))if(e===this.video||e instanceof Element&&e.contains(this.video))return void queueMicrotask(()=>{this.video.isConnected||(this.captureRemove(),this.cleanupSubscriptions())})}),this.removalObserver.observe(document.body,{childList:!0,subtree:!0})}captureRemove(){if(this.hasRemoved)return;this.hasRemoved=!0;const e={type:"remove",player:this.capturePlayerState()};this.sendOrQueueEvent(e)}cleanupSubscriptions(){this.removalObserver?.disconnect(),this.intersectionObserver?.disconnect(),this.onDocumentVisibilityChange&&(document.removeEventListener("visibilitychange",this.onDocumentVisibilityChange),this.onDocumentVisibilityChange=void 0);for(const[e,t]of this.videoListeners)this.video.removeEventListener(e,t);this.videoListeners=[],this.onCleanup&&(this.onCleanup(),this.onCleanup=void 0)}captureBeforeUnload(){const e={type:"beforeUnloadDOM",player:this.capturePlayerState()};this.sendOrQueueEvent(e)}captureNextClick(){const e={type:"nextClick",player:this.capturePlayerState()};this.sendOrQueueEvent(e)}captureImaAdImpression(e){const t=e;if(!t||"function"!=typeof t.getAdId)return void console.warn("captureImaAdImpression: received object is not a valid google.ima.Ad");this.eventQueue.some(e=>"play"===e.type)&&(this.eventQueue=this.eventQueue.filter(e=>"play"!==e.type),this.isPlaying=!1);let i=t.getCreativeId?.()||void 0;if(!i){const e=t.getWrapperCreativeIds?.();e&&e.length>0&&(i=e[0])}const n=t.getAdPodInfo?.(),a=n?.getIsBumper?.()??void 0,s={adId:t.getAdId?.()||void 0,creativeId:i,dealId:t.getDealId?.()||void 0,duration:t.getDuration?.()??void 0,isBumper:a},o={type:"adImpression",event:{adsystem:t.getAdSystem?.()||void 0,adtitle:t.getTitle?.()||void 0,client:"googima",viewable:1},player:this.capturePlayerState(),ad:s};this.sendEvent(o)}}function Le(e,t,i){let n=!0;return function(...i){n&&(e.apply(null,i),n=!1,setTimeout(()=>{n=!0},t))}}class Ce{isInitialized(){return"object"==typeof window.top?.kilkaya}createClient(){this.kilkayaClient=window.top?.kilkaya}getClient(){return this.kilkayaClient}getGlobalTracker(){if(window?.top?.kilkaya)return window.top.kilkaya}getOrCreateExistingClient(e,t,i=!1){if(!window.top)return;if(this.kilkayaClient&&!i)return;let n=`${window.top.location.origin}/video/${t}`;window.top.location.pathname.includes("/reels/")&&window.top.location.pathname.includes(t)&&(n=`${window.top.location.origin}${window.top.location.pathname}`);const a=window.top.kilkaya.getVideo(n,!1);e.startsWith("reels-inserted-")?a.setField("contenttag","video_shorts"):e.startsWith("reels-")&&a.setField("contenttag","video_reels"),this.kilkayaClient=a}load(){return this.getClient().load()}setStart(e){return this.getClient().start(e)}setLive(){return this.getClient().setLive()}setStop(){return this.getClient().stop()}setRestart(e){return this.getClient().restart(e)}setResume(){return this.getClient().resume()}setPaused(){return this.getClient().pause()}setPageData(e){const t=this.getGlobalTracker(),{title:i,image:n,tags:a,duration:s}=e,o=this.getDuration(s);this.setVideoTags(a),this.setVideoDuration(o),this.setVideoTitle(i),this.setVideoImage(n),t?.pageData.setData({title:i,image:n,url:window.location.href,duration:o})}getDuration(e){return(e===1/0||Number.isNaN(e))&&(e=0),Math.floor(e)}sanitizeTags(e){return e=(e=(e=(e=(e=(e=e.replace(new RegExp(": ","g"),"_")).replace(new RegExp(":","g"),"_")).replace(new RegExp(" ","g"),"_")).replace(new RegExp("æ","g"),"ae")).replace(new RegExp("ø","g"),"o")).replace(new RegExp("å","g"),"a")}setVideoDuration(e){this.getClient().setField("duration",e)}shouldTagsUpdate(e,t){return e.join("|")===t.join("|")}setVideoTags(e){if(!e)return null;const t=e.map(e=>this.sanitizeTags(e));this.shouldTagsUpdate(t,this.getClient().getField("tag"))||t.forEach(e=>this.getClient().setField("tag",e))}setVideoTitle(e){this.getClient().setField("title",e)}setVideoImage(e){this.getClient().setField("image",e)}}var Me;!function(e){e.PAUSE="pause",e.PLAY="play",e.RESUME="resume",e.AUTO="auto",e.MANUAL="manual",e.NEXT_AUTO="nextauto",e.NEXT_MANUAL="nextmanual",e.RESTART="restart",e.RESTART_MANUA
1L="restart_manual",e.STOP="stop",e.SEEK="seek",e.LIVE="live",e.TIME="time",e.NEW_PLAYLIST_ITEM="newplaylistitem",e.EXTERNAL_PLAY="externalplay"}(Me||(Me={}));class xe{constructor(){this.videoId=null,this.kilkayaClient=new Ce,this.hasWarnedNotInitialized=!1}log(e,t){if(this.kilkayaClient.isInitialized())try{this.processEvent(e,t)}catch(e){console.warn(`Kilkaya video event processing failed: ${t.type}`,e)}else this.hasWarnedNotInitialized||(console.warn(`Kilkaya is not initialized and cannot track video event (suppressing further warnings): ${t.type}`),this.hasWarnedNotInitialized=!0)}processEvent(e,t){const i=t.data.videoId!==this.videoId;switch(this.kilkayaClient.getClient()&&!i||(this.kilkayaClient.getOrCreateExistingClient(e,t.data.videoId,i),this.setupClient(t.data),this.kilkayaClient.load()),t.type){case Me.NEW_PLAYLIST_ITEM:break;case Me.PLAY:case Me.AUTO:this.setupClient(t.data),t.data.videoId===this.videoId?this.processPlay(t):this.processNextPlay();break;case Me.RESTART:this.kilkayaClient.setRestart(Me.AUTO);break;case Me.RESTART_MANUAL:this.kilkayaClient.setRestart(Me.MANUAL);break;case Me.RESUME:this.kilkayaClient.setResume();break;case Me.PAUSE:this.kilkayaClient.setPaused();break;case Me.STOP:this.kilkayaClient.setStop();break;case Me.EXTERNAL_PLAY:this.processExternalPlay();break;case Me.LIVE:this.kilkayaClient.setLive()}}processNextPlay(){this.kilkayaClient.setStart(Me.NEXT_AUTO)}processPlay(e){const t=e.type===Me.AUTO?Me.AUTO:Me.MANUAL;this.kilkayaClient.setStart(t)}processExternalPlay(){this.kilkayaClient.setStart(Me.AUTO)}setupClient(e){const{videoId:t}=e;this.kilkayaClient.setPageData(e),this.videoId=t}}const Oe={};function Ue(e,t,i,n=e.getPlaylistItem()){if(!e||!e.getConfig())return!0;if(!n.channelId)return!0;const a=e.getConfig().indexedId;if(Oe[t]||(Oe[t]={}),Oe[t][n.mediaid]||(Oe[t][n.mediaid]={videoLoad:!1,videoPlay:!1,videoStop:!1}),Oe[t][n.mediaid][i])return!1;return"live"===Te(a,n.mediaid)||(Oe[t][n.mediaid][i]=!0),!0}var Ve;!function(e){e.PAUSE="pause",e.PLAY="play",e.PLAYLIST_ITEM="playlistItem",e.COMPLETE="complete",e.REMOVE="remove",e.BEFORE_COMPLETE="beforeComplete",e.TIME="time",e.SEEK="seek",e.VIEWABLE="viewable",e.EXIT="exit"}(Ve||(Ve={}));const Re={};function Ne(e,t){Re[e]||(Re[e]={previousEvent:null,previousPosition:null});let i=0;return Re&&Re[e]&&null!==Re[e].previousPosition&&(i=Math.abs(t-(Re[e].previousPosition||0))),"play"===Re[e].previousEvent&&i>1||"play"!==Re[e].previousEvent}function De(e,t,i){Re[e]||(Re[e]={previousEvent:null,previousPosition:null}),Re[e]={...Re[e],previousEvent:t,previousPosition:i||0}}const Be="kilkaya";var Fe;!function(e){e.PAUSE="pause",e.PLAY="play",e.PLAYLIST_ITEM="playlistItem",e.COMPLETE="complete",e.REMOVE="remove",e.BEFORE_COMPLETE="beforeComplete",e.TIME="time",e.SEEK="seek",e.VIEWABLE="viewable"}(Fe||(Fe={}));const je=["autostart","related-auto","viewable","playlist"],We=["interaction","related-interaction"],Ye=[],qe=[],Qe=[],ze={},He=new Set;function Ke(e){let t=null;if(!e)return;const i=e.getConfig().id;if(Qe.includes(i))return;Qe.push(i),ze[i]=[];const n=new xe,a=e.getConfig()?.id||e.getContainer()?.id;function s(e,t){He.has(i)?n.log(a,{type:e,data:t}):ze[i].push({type:e,data:t})}e.getViewable&&1===e.getViewable()&&He.add(i),e.on(Fe.VIEWABLE,async t=>{1===t.viewable&&await async function(){if(!He.has(i)&&0!==ze[i].length){if(a.startsWith("reels-")){const t=e.getPlaylistItem()?.mediaid;if(t&&!window.location.href.includes(t))for(let e=0;e<5&&!window.location.href.includes(t);e++)await ye(100)}He.has(i)||(He.add(i),ze[i].forEach(e=>{n.log(a,e)}),ze[i]=[])}}()}),e.on(Fe.SEEK,t=>{s(Me.SEEK,{...$e(e,e.getPlaylistItem()),offset:t.offset})}),e.on(Fe.TIME,()=>{s(Me.TIME,$e(e,e.getPlaylistItem()))}),e.on(Fe.PAUSE,()=>{Ue(e,Be,"videoStop")&&(De(Be,Fe.PAUSE,e.getPosition()),t=null,s(Me.PAUSE,$e(e,e.getPlaylistItem())))}),e.on(Fe.BEFORE_COMPLETE,()=>{e.getPlaylist&&e.getPlaylist().length>1&&(t=e.getPlaylistItem())}),e.on(Fe.COMPLETE,()=>{const i=t||e.getPlaylistItem();De(Be,Fe.COMPLETE,e.getPosition()),t=null,Ue(e,Be,"videoStop",i)&&s(Me.STOP,$e(e,i))}),e.on(Fe.REMOVE,()=>{const i=t||e.getPlaylistItem();Ue(e,Be,"videoStop",i)&&s(Me.STOP,$e(e,i))}),e.on(Fe.PLAY,t=>{if(Ue(e,Be,"videoPlay")){if(Ne(Be,e.getPosition())){const i=$e(e,e.getPlaylistItem());if("live"===i.videoType&&s(Me.LIVE,i),qe.includes(i.videoId)){return void s("interaction"===t.playReason?Me.RESTART_MANUA
1L:Me.RESTART,i)}je.includes(t.playReason)&&s(Me.AUTO,i),We.includes(t.playReason)&&(i.position>0?s(Me.RESUME,i):s(Me.PLAY,i)),"external"===t.playReason&&s(Me.EXTERNAL_PLAY,i)}De(Be,Fe.PLAY,e.getPosition())}}),e.on(Fe.PLAYLIST_ITEM,()=>{if(!Ue(e,Be,"videoLoad"))return;const t=$e(e,e.getPlaylistItem());Ye.includes(t.indexedId)?qe.push(t.indexedId):Ye.push(t.indexedId),s(Me.NEW_PLAYLIST_ITEM,t),De(Be,Fe.PLAYLIST_ITEM,0)})}function $e(e,t){const i=e.getConfig();let n=i.image;t&&t.image&&(n={url:t.image}),t&&t.thumbnails&&(n=t.thumbnails.find(e=>720===e.width&&e.url));const a=t.tags?t.tags:i.tags;let s=[];"string"==typeof a?s=a.split(","):"object"==typeof a&&(s=a&&a.map(e=>e.name));let o=i.duration;const r=i.indexedId;t&&t.duration&&(o=t.duration);const l=!!e.getPlaylistItem().channelId;return{videoId:t.mediaid,title:t.title,duration:o,videoType:l?"live":"clip",sourceType:t.sourceType?t.sourceType:i.sourceType,file:t.file,image:n&&n.url?n.url:i.image,position:e.getPosition(),tags:s,indexedId:r,offset:0}}const Xe="kilkaya",Ge=[],Je=[],Ze=[],et={},tt=new Set;function it(e){if(!e)return null;const t=e.split(",").map(e=>e.trim()).filter(Boolean);return t.length>0?t:null}function nt(e){const t=e.dataset.mediaId||e.currentSrc,i=e.duration===1/0;return{videoId:t,title:e.dataset.title||"",duration:Number.isFinite(e.duration)?e.duration:0,videoType:i?"live":"clip",sourceType:e.dataset.sourceType||"",file:e.currentSrc,image:e.dataset.image||e.poster||"",position:e.currentTime,tags:it(e.dataset.tags),indexedId:e.dataset.indexedId||t,offset:0}}function at(e){const t=Math.ceil(e/.01);return[...Array.from({length:t},(e,t)=>.01*t),e]}function st(e,t,i,n={threshold:.5}){const{threshold:a,hiddenAttribute:s,scaleThresholdToViewport:o,requireFullExit:r}=n,l=new Set,c=new WeakSet;function d(e){return!!s&&"true"===e.getAttribute(s)}function u(e,n){n&&!l.has(e)?(l.add(e),t(e)):!n&&l.has(e)&&(l.delete(e),i(e))}const p=new IntersectionObserver(e=>{e.forEach(e=>{const t=e.target;if(d(t))return void u(t,!1);const i=o?a*function(e){const t=e.boundingClientRect,i=e.rootBounds;return!i||t.width<=0||t.height<=0?1:Math.min(1,i.width/t.width)*Math.min(1,i.height/t.height)}(e):a;e.isIntersecting&&e.intersectionRatio>=i?u(t,!0):e.isIntersecting&&r||u(t,!1)})},{threshold:o?at(a):a}),h=t=>{c.has(t)||t.matches&&t.matches(e)&&(c.add(t),p.observe(t))};document.querySelectorAll(e).forEach(e=>{h(e)});const m=new MutationObserver(t=>{t.forEach(t=>{var i;"attributes"===t.type&&(i=t.target,c.has(i)&&(d(i)?u(i,!1):(p.unobserve(i),p.observe(i)))),"childList"===t.type&&t.addedNodes.length>0&&t.addedNodes.forEach(t=>{t.nodeType===Node.ELEMENT_NODE&&(t=>{h(t),t.querySelectorAll&&t.querySelectorAll(e).forEach(e=>{h(e)})})(t)})})}),g={childList:!0,subtree:!0};return s&&(g.attributes=!0,g.attributeFilter=[s]),m.observe(document.body,g),{intersectionObserver:p,mutationObserver:m,visibleElements:l,triggerExitForAll:()=>{l.forEach(e=>{i(e)}),l.clear()},disconnect:()=>{p.disconnect(),m.disconnect()}}}function ot(e,t){const i=new WeakSet;return function(e,t){document.querySelectorAll(e).forEach(e=>{t(e)});const i=new MutationObserver(i=>{i.forEach(i=>{"childList"===i.type&&i.addedNodes.length>0&&i.addedNodes.forEach(i=>{i.nodeType===Node.ELEMENT_NODE&&i.matches(e)&&t(i),i.nodeType===Node.ELEMENT_NODE&&i.querySelectorAll(e).forEach(e=>{t(e)})})})});return i.observe(document.body,{childList:!0,subtree:!0}),{observer:i,disconnect:()=>i.disconnect()}}(e,e=>{i.has(e)||(i.add(e),t(e))})}class rt{constructor(e){this.domElement=e}get personalizationParametersRequested(){return this.domElement.getAttribute("data-cxence_widget")}get personalizationSystemUsed(){return this.domElement.getAttribute("data-cxense_tag")}get fullTitle(){const e=this.domElement.querySelector("h1,.headline");if(e){const t=Array.prototype.slice.call(e.childNodes).filter(e=>"STYLE"!==e.tagName).map(e=>{const t=window.getComputedStyle(3===e.nodeType?e.parentNode:e,null);return{text:e.textContent.trim(),fontSize:t.getPropertyValue("font-size")}}).filter(e=>!!e.text);return{fullTitle:t.map(e=>e.text).join(" "),titleParts:t}}return{fullTitle:"",titleParts:[]}}get title(){const e=this.domElement.querySelector("h4");if(e&&e.textContent)return e.textContent.trim();const t=this.domElement.querySelector('h3[itemprop="headline"]');if(t&&t.textContent)return t.textContent.trim();const i=this.domElement.querySelector("h1,.headline");if(i)return Array.prototype.slice.call(i.childNodes).filter(e=>"STYLE"!==e.tagName).map(e=>e.textContent.trim()).filter(e=>!!e).join(" ");const n=this.domElement.querySelector("a span");return n&&n.textContent?n.textContent.trim():null}get nodeId(){return this.domElement.getAttribute("data-id")}}function lt(e,t){const i=new rt(t);i.title&&(e.title=i.title),i.personalizationSystemUsed&&(e.personalizationSystemUsed=i.personalizationSystemUsed),i.personalizationParametersRequested&&(e.personalizationParametersRequested=i.personalizationParametersRequested)}function ct(e){const t=function(e){return e instanceof HTMLAnchorElement&&e.hasAttribute("href")?e:e.querySelector("a[href]")}(e);if(t)return t.getAttribute("href")||void 0}function dt(e,t,i){let n=e.parentElement;for(;n&&n!==document.body;){if(n.matches(t)&&i(n))return n;n=n.parentElement}return null}function ut(e){if(e)try{const t=document.baseURI,i=new URL(e,t);if("http:"!==i.protocol&&"https:"!==i.protocol)return;return i.href}catch{return}}const pt=/^\d{7,}$/;function ht(e,t,i){const n=e.classList.contains("cts-tracking-object");
1if(mt(e))return!0;if(!n&&e.closest(".cts-tracking-object"))return!0;return!!dt(e,i,e=>!mt(e)&&ut(ct(e))===t)||!n&&!function(e){try{const t=new URL(e).pathname;return t.split("/").filter(Boolean).some(e=>pt.test(e))}catch{return!1}}(t)}function mt(e){return!!e.closest(".jwplayer")||!!e.querySelector(".jwplayer")}function gt(e){if("undefined"==typeof window)return;const t=()=>{window.__tcfapi?.("addEventListener",2,(t,i)=>{i&&t&&e(t)})};window.__tcfapi?t():async function(e=5e3){if("undefined"==typeof window)return!1;if(window.__tcfapi)return!0;const t=Math.ceil(e/100);for(let e=0;e<t;e++){if(window.__tcfapi)return!0;await ye(100)}return!1}().then(e=>{e&&t()})}class yt{constructor(e,t){this.queue=[],this.sendFn=e,this.sendInterval=t}start(){this.timerId=setInterval(()=>this.flush(),this.sendInterval)}stop(){this.timerId&&(clearInterval(this.timerId),this.timerId=void 0)}addEvents(e){this.queue.push(...e)}flush(){0!==this.queue.length&&(this.sendFn(this.queue),this.queue=[])}}function ft(e,t,i){const n=e.slot,a=n?.getSlotElementId();if("string"!=typeof a||0===a.length)return;const s={id:a,scrollTop:t,timestamp:i},o=n?.getAdUnitPath();"string"==typeof o&&o.length>0&&(s.adUnitPath=o);const r=e.advertiserId;Number.isInteger(r)&&(s.advertiserId=r);const l=n?.getTargeting("hb_bidder");Array.isArray(l)&&l.length>0&&(s.bidder=l.join(","));const c=e.campaignId;Number.isInteger(c)&&(s.campaignId=c);const d=e.creativeId;Number.isInteger(d)&&(s.creativeId=d);const u=e.isEmpty;"boolean"==typeof u&&(s.isEmpty=u);const p=e.lineItemId;Number.isInteger(p)&&(s.lineItemId=p);const h=n?.getTargeting("hb_pb"),m=function(e){if(!Array.isArray(e)||1!==e.length)return;const t=parseFloat(e[0]);return isFinite(t)?t:void 0}(h);void 0!==m&&(s.prebidWinningBid=m);const g=e.size;Array.isArray(g)&&2===g.length&&Number.isInteger(g[0])&&Number.isInteger(g[1])&&(s.size=g);const y=e.sourceAgnosticCreativeId;Number.isInteger(y)&&(s.sourceAgnosticCreativeId=y);const f=e.sourceAgnosticLineItemId;return Number.isInteger(f)&&(s.sourceAgnosticLineItemId=f),s}const vt=["add_payment_info","add_shipping_info","add_to_cart","add_to_wishlist","begin_checkout","purchase","refund","remove_from_cart","select_item","select_promotion","view_cart","view_item","view_item_list","view_promotion","login","sign_up","collection_add_item","collection_remove_item","collection_set"];function bt(e){if(!function(e){if(!("ecommerce"in e)||"object"!=typeof e.ecommerce||null===e.ecommerce)return!1;const t=e.ecommerce;return"purchase"in t&&"object"==typeof t.purchase}(e))return;const t=e,i=t.ecommerce,n=t.ecommerce.purchase,a="actionField"in n&&"object"==typeof n.actionField&&null!==n.actionField?n.actionField:void 0,s="products"in n&&Array.isArray(n.products)?n.products:void 0,o={};if(a&&("id"in a&&"string"==typeof a.id&&(o.transaction_id=a.id),"revenue"in a&&"number"==typeof a.revenue&&(o.value=a.revenue),"tax"in a&&"number"==typeof a.tax&&(o.tax=a.tax),"shipping"in a&&"number"==typeof a.shipping&&(o.shipping=a.shipping),"coupon"in a&&"string"==typeof a.coupon&&(o.coupon=a.coupon)),!o.coupon&&"coupon"in i&&"string"==typeof i.coupon&&i.coupon&&(o.coupon=i.coupon),"currencyCode"in i&&"string"==typeof i.currencyCode&&(o.currency=i.currencyCode),s&&s.length>0){const e=a&&"affiliation"in a&&"string"==typeof a.affiliation?a.affiliation:void 0;o.items=s.map(t=>function(e,t){if("object"!=typeof e||null===e)return;const i=e,n={};"id"in i&&"string"==typeof i.id&&(n.item_id=i.id);"name"in i&&"string"==typeof i.name&&(n.item_name=i.name);"brand"in i&&"string"==typeof i.brand&&(n.item_brand=i.brand);"category"in i&&"string"==typeof i.category&&(n.item_category=i.category);"variant"in i&&"string"==typeof i.variant&&(n.item_variant=i.variant);"price"in i&&"number"==typeof i.price&&(n.price=i.price);"quantity"in i&&"number"==typeof i.quantity&&Number.isInteger(i.quantity)&&(n.quantity=i.quantity);"coupon"in i&&"string"==typeof i.coupon&&(n.coupon=i.coupon);"position"in i&&"number"==typeof i.position&&Number.isInteger(i.position)&&(n.index=i.position);t&&!n.affiliation&&(n.affiliation=t);return n}(t,e)).filter(e=>void 0!==e)}return o}function wt(e){const t=function(e){if("event"in e&&"string"==typeof e.event)return e.event}(e)??"",i=bt(e);if(i)return{data:{type:"purchase",ecommerce:i},raw:e};if(n=t,!vt.includes(n))return;var n;const a={type:t};"ecommerce"in e&&"object"==typeof e.ecommerce&&null!==e.ecommerce&&(a.ecommerce=function(e){const t={};"coupon"in e&&"string"==typeof e.coupon&&(t.coupon=e.coupon);"creative_name"in e&&"string"==typeof e.creative_name&&(t.creative_name=e.creative_name);"creative_slot"in e&&"string"==typeof e.creative_slot&&(t.creative_slot=e.creative_slot);"currency"in e&&"string"==typeof e.currency&&(t.currency=e.currency);"customer_type"in e&&"string"==typeof e.customer_type&&(t.customer_type=e.customer_type);"item_list_id"in e&&"string"==typeof e.item_list_id&&(t.item_list_id=e.item_list_id);"item_list_name"in e&&"string"==typeof e.item_list_name&&(t.item_list_name=e.item_list_name);"payment_type"in e&&"string"==typeof e.payment_type&&(t.payment_type=e.payment_type);"promotion_id"in e&&"string"==typeof e.promotion_id&&(t.promotion_id=e.promotion_id);"promotion_name"in e&&"string"==typeof e.promotion_name&&(t.promotion_name=e.promotion_name);"shipping_tier"in e&&"string"==typeof e.shipping_tier&&(t.shipping_tier=e.shipping_tier);"transaction_id"in e&&"string"==typeof e.transaction_id&&(t.transaction_id=e.transaction_id);"shipping"in e&&"number"==typeof e.shipping&&(t.shipping=e.shipping);"tax"in e&&"number"==typeof e.tax&&(t.tax=e.tax);"value"in e&&"number"==typeof e.value&&(t.value=e.value);"items"in e&&Array.isArray(e.items)&&(t.items=e.items.map(It).filter(e=>void 0!==e));return t}(e.ecommerce)),"labels"in e&&"object"==typeof e.labels&&null!==e.labels&&(a.labels=Et(e.labels)),"collection"in e&&"object"==typeof e.collection&&null!==e.collection&&(a.collection=function(e){const t={};"collection_id"in e&&"string"==typeof e.collection_id&&(t.collection_id=e.collection_id);"items"in e&&Array.isArray(e.items)&&(t.items=e.items.map(kt).filter(e=>void 0!==e));return t}(e.collection));const s=function(e){if("method"in e&&"string"==typeof e.method)return{method:e.method};return}(e);return s&&(a.params=s),{data:a,raw:e}}function It(e){if("object"!=typeof e||null===e)return;const t={};return"affiliation"in e&&"string"==typeof e.affiliation&&(t.affiliation=e.affiliation),"coupon"in e&&"string"==typeof e.coupon&&(t.coupon=e.coupon),"creative_name"in e&&"string"==typeof e.creative_name&&(t.creative_name=e.creative_name),"creative_slot"in e&&"string"==typeof e.creative_slot&&(t.creative_slot=e.creative_slot),"google_business_vertical"in e&&"string"==typeof e.google_business_vertical&&(t.google_business_vertical=e.google_business_vertical),"item_brand"in e&&"string"==typeof e.item_brand&&(t.item_brand=e.item_brand),"item_category"in e&&"string"==typeof e.item_category&&(t.item_category=e.item_category),"item_category2"in e&&"string"==typeof e.item_category2&&(t.item_category2=e.item_category2),"item_category3"in e&&"string"==typeof e.item_category3&&(t.item_category3=e.item_category3),"item_category4"in e&&"string"==typeof e.item_category4&&(t.item_category4=e.item_category4),"item_category5"in e&&"string"==typeof e.item_category5&&(t.item_category5=e.item_category5),"item_id"in e&&"string"==typeof e.item_id&&(t.item_id=e.item_id),"item_list_id"in e&&"string"==typeof e.item_list_id&&(t.item_list_id=e.item_list_id),"item_list_name"in e&&"string"==typeof e.item_list_name&&(t.item_list_name=e.item_list_name),"item_name"in e&&"string"==typeof e.item_name&&(t.item_name=e.item_name),"item_variant"in e&&"string"==typeof e.item_variant&&(t.item_variant=e.item_variant),"location_id"in e&&"string"==typeof e.location_id&&(t.location_id=e.location_id),"promotion_id"in e&&"string"==typeof e.promotion_id&&(t.promotion_id=e.promotion_id),"promotion_name"in e&&"string"==typeof e.promotion_name&&(t.promotion_name=e.promotion_name),"discount"in e&&"number"==typeof e.discount&&(t.discount=e.discount),"index"in e&&"number"==typeof e.index&&Number.isInteger(e.index)&&(t.index=e.index),"price"in e&&"number"==typeof e.price&&(t.price=e.price),"quantity"in e&&"number"==typeof e.quantity&&Number.isInteger(e.quantity)&&(t.quantity=e.quantity),t}function Et(e){const t={};for(const[i,n]of Object.entries(e))"string"==typeof i&&"string"==typeof n&&(t[i]=n);return t}function kt(e){if("object"!=typeof e||null===e)return;const t={};return"item_id"in e&&"string"==typeof e.item_id&&(t.item_id=e.item_id),"labels"in e&&"object"==typeof e.labels&&null!==e.labels&&(t.labels=Et(e.labels)),t}function Tt(e){"navigation"in window?function(e,t){let i;e.addEventListener("navigate",e=>
1{i={destinationUrl:e.destination.url,info:e.info}}),e.addEventListener("currententrychange",e=>{const s=n();if(!e.from.url)return;const o=a(e.from.url);if(o===s)return;const r=!!i&&a(i.destinationUrl)===s;t(o,s,r?i:void 0)})}(window.navigation,e):function(e){let t=n();const i=()=>{const i=n();if(i!==t){const n=t;t=i,e(n,i)}};function a(e){return function(...t){const n=e.apply(this,t);return i(),n}}history.pushState=a(history.pushState),history.replaceState=a(history.replaceState),window.addEventListener("popstate",i)}(e)}const St="data-click-id";function Pt(e){return!!e&&(i="/",!(!(t=e)||!i||-1===t.indexOf(i))||"#"===e[0]);var t,i}function _t(e){let t=null;const i=function(e,t){let i;return()=>{i&&clearTimeout(i),i=setTimeout(()=>{e()},t)}}(()=>{t=null},2e3);function n(n){const{element:a,clickId:s,url:o}=function(e){const t=e.target?.closest?.(`a, [${St}]`);if(!t||"true"===t.getAttribute("data-am-click-ignore"))return{clickId:null,url:null,element:null};let i;t.hasAttribute("href")&&(i=t.getAttribute("href"));const n=t.getAttribute(St);return{element:t,url:Pt(i)?i:null,clickId:n}}(n);a&&a!==t&&(t=a,e({clickEvent:n,element:a,clickId:s,url:o}),i())}const a={capture:!0};document.addEventListener("contextmenu",Le(n,100),a),document.addEventListener("click",Le(n,100),a),document.addEventListener("mousedown",Le(function(e){0!==e.button&&n(e)},100),a)}class At{constructor(){this.lastClickTs=0,this.lastScrollTs=0,this.started=!1,this.onClick=e=>{this.lastClickTs=e.timeStamp},this.onScroll=e=>{this.lastScrollTs=e.timeStamp}}start(){this.started||(this.started=!0,window.addEventListener("click",this.onClick,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onScroll,{capture:!0,passive:!0}))}classifyOnUrlChange(){const e=performance.now(),t=this.lastClickTs>e-900,i=this.lastScrollTs>e-50,n=window.scrollY>100;if(i&&n&&!t)return"soft-nav-scroll"}}const Lt=["[data-am-content-preview]","article.preview","article.preview-blink",".article-list>li",".related-list>li",".aller-video-container div.carousel-slide"].join(","),Ct=["[data-am-content-preview]",'article[itemscope][itemtype="http://schema.org/NewsArticle"]','article:has(> a[href^="http"])','article:has(> a[href^="/"])','div:has(> a[href^="http"])','div:has(> a[href^="/"])'].join(","),Mt=["[data-am-content-preview]",'article[itemscope][itemtype="http://schema.org/NewsArticle"]','a[aria-label][class*="card_"][href]:has(img)','article:has(div.content):has(a[href][itemprop="url"])',"article.k5a-slot"].join(","),xt=["[data-am-content-preview]",".cts-tracking-object",'article:has(> a[href^="http"])','article:has(> a[href^="/"])','div:has(> a[href^="http"])','div:has(> a[href^="/"])'].join(",");class Ot{constructor(e){this.boxSelector="[data-am-track-box]",this.adSelector="[data-aller-ad-placement]",this.impressionSelector="[data-am-content-preview]",this.enableLegacyImpressionDeduplicationSE=!1,this.enableLegacyImpressionDeduplicationDK=!1,this.enableLegacyImpressionEnrichmentNO=!1,this.enableLegacyClickEnrichmentNO=!1,this.enableLegacyKilkayaVideoTrackingNO=!1,this.enableLegacySEPageAccessTypeEnrichment=!1,this.enableLegacySEUserPaywallAccessEnrichment=!1,this.enableLegacyDataLayerEnrichmentFI=!1,this.enableLegacyDataLayerEnrichmentDK=!1,Object.assign(this,e)}}const Ut=function(){const e={};let t=1;return{set:function(i,n){i.__dataid||(i.__dataid="context"+t++),e[i.__dataid]=n},get:function(t){return e[t.__dataid]}}}();function Vt(e){if(!e)return{};const t=Ut.get(e);if(t)return t;let i=1,n=e;for(;n=n.previousElementSibling;)i++;const a={tag:e.tagName.toLowerCase(),id:e.getAttribute("id")??"",class:Array.prototype.slice.call(e.classList).sort().join(","),dataId:e.getAttribute("data-id")??"",i:""+i,n:e.parentElement?e.parentElement.children.length+"":"1"};return Ut.set(e,a),a}function Rt(e){return Object.keys(e).map(t=>e[t]?`${t}=${e[t]}`:null).filter(e=>!!e).join("&")}function Nt(e){const t=[];let i=e;for(let e=0;e<10;e++){t.push(Vt(i));const e=i.parentElement;if(!e||"BODY"===e.tagName)break;i=e}return t.map(Rt)}function Dt(e){let t=0;window.addEventListener("message",i=>{const n=function(e){if("object"!=typeof e||null===e)return;const t=e,i=function(e){if("object"!=typeof e||null===e||Array.isArray(e))return;const t={};let i=!1;for(const[n,a]of Object.entries(e))"string"==typeof a&&0!==n.length&&(t[n]=a,i=!0);return i?t:void 0}(t.labels);switch(t.type){case"blink-iframe-impression":{const e=Bt(t.targetUrl);
1if(!e)return;const n={url:e,fromIframe:!0};return i&&(n.labels=i),{type:"blink-iframe-impression",input:n}}case"blink-iframe-box":{const e=Ft(t.boxId);if(!e)return;const n={id:e,fromIframe:!0};return i&&(n.labels=i),{type:"blink-iframe-box",input:n}}case"blink-iframe-click":{const e=Bt(t.targetUrl),n=Ft(t.clickId);if(!e&&!n)return;const a={fromIframe:!0};return e&&(a.url=e),n&&(a.clickId=n),i&&(a.labels=i),{type:"blink-iframe-click",input:a}}default:return}}(i.data);if(n&&!(t++>=1e3))switch(n.type){case"blink-iframe-impression":e.onImpression(n.input);break;case"blink-iframe-box":e.onBox(n.input);break;case"blink-iframe-click":e.onClick(n.input)}})}function Bt(e){if("string"==typeof e)try{const t=new URL(e);if("http:"!==t.protocol&&"https:"!==t.protocol)return;return t.href}catch{return}}function Ft(e){if("string"==typeof e&&0!==e.length)return e}function jt(e){return e.offsetHeight*e.offsetWidth>=242500?.3:.5}class Wt{constructor(e){this.consented=!1,this.currentPageUrl=n(),this.dataLayerProcessedIndex=0,this._pageInit=()=>{this.blink.pageInit({url:window.location.href,referrer:document.referrer,pageType:E()})},this._onClick=({clickId:e,url:t,element:i})=>{const n=ut(t);if(!n&&!e)return;const a={};n&&(a.url=n),e&&(a.clickId=e);const s=function(e){const t=e.closest("[data-am-click-context]"),i=t?be(t):void 0;return we(we(Ie(e),i),be(e))}(i);s&&(a.labels=s),this.config.enableLegacyClickEnrichmentNO&&this._applyLegacyClickEnrichmentNO(a,i),this.blink.click(a),this.sender.flush()},this.trackVideos=()=>ot(".jwplayer",e=>{const t=window.jwplayer?.(e);if(!t)return;const i=()=>{this.jwTracker.trackPlayer(t),this.config.enableLegacyKilkayaVideoTrackingNO&&Ke(t)};void 0===t.getState()?t.once("ready",()=>{i()}):i()}),this.trackHtmlVideos=(e='[data-track-player="hls"]')=>ot(e,e=>{e instanceof HTMLVideoElement&&(e.closest(".jwplayer")||(this.htmlVideoTracker.trackVideo(e),this.config.enableLegacyKilkayaVideoTrackingNO&&function(e){if(!e)return;const t=function(e){return e.dataset.playerInstanceId||e.id}(e);if(!t||Ze.includes(t))return;Ze.push(t),et[t]=[];const i=new xe;let n=0,a=!1;function s(e,n){tt.has(t)?i.log(t,{type:e,data:n}):(et[t].push({type:e,data:n}),a&&!document.hidden&&o())}async function o(){if(!tt.has(t)&&0!==et[t].length){if(t.startsWith("reels-")){const t=e.dataset.mediaId;if(t&&!window.location.href.includes(t))for(let e=0;e<5&&!window.location.href.includes(t);e++)await ye(100)}tt.has(t)||(tt.add(t),et[t].forEach(e=>{i.log(t,e)}),et[t]=[])}}const r=()=>{a&&!document.hidden&&o()},l=new IntersectionObserver(e=>{e.forEach(e=>{a=e.intersectionRatio>=.5,r()})},{threshold:.5});l.observe(e),document.addEventListener("visibilitychange",r);let c=!1;const d=new MutationObserver(t=>{for(const i of t)for(const t of Array.from(i.removedNodes))if(t===e||t instanceof Element&&t.contains(e))return void queueMicrotask(()=>{e.isConnected||(s(Me.STOP,nt(e)),c||(c=!0,l.disconnect(),document.removeEventListener("visibilitychange",r),d.disconnect()))})});d.observe(document.body,{childList:!0,subtree:!0}),e.addEventListener("timeupdate",()=>{n=e.currentTime}),e.addEventListener("loadedmetadata",()=>{const t=nt(e);Ge.includes(t.indexedId)?Je.push(t.indexedId):Ge.push(t.indexedId),s(Me.NEW_PLAYLIST_ITEM,t),De(Xe,Ve.PLAYLIST_ITEM,0)}),e.addEventListener("play",()=>{if(Ne(Xe,e.currentTime)){const t=nt(e);"live"===t.videoType&&s(Me.LIVE,t),Je.includes(t.indexedId)?s(Me.RESTART_MANUAL,t):e.autoplay?s(Me.AUTO,t):t.position>0?s(Me.RESUME,t):s(Me.PLAY,t)}De(Xe,Ve.PLAY,e.currentTime)}),e.addEventListener("pause",()=>{e.ended||(s(Me.PAUSE,nt(e)),De(Xe,Ve.PAUSE,e.currentTime))}),e.addEventListener("seeking",()=>{s(Me.SEEK,{...nt(e),offset:n})}),e.addEventListener("ended",()=>{s(Me.STOP,nt(e)),De(Xe,Ve.COMPLETE,e.currentTime)})}(e)))}),this.trackCustom=e=>{"string"==typeof e?.customType&&""!==e.customType.trim()?"customDomain"in e&&"string"!=typeof e.customDomain?console.warn("trackCustom: customDomain must be a string"):"customContent"in e&&"string"!=typeof e.customContent?console.warn("trackCustom: customContent must be a string"):"customValue"in e&&"number"!=typeof e.customValue?console.warn("trackCustom: customValue must be a number"):this.blink.custom(e):console.warn("trackCustom: customType is required and must be a non-empty string")},this._onImpressionEnter=e=>{const t=ct(e);if(!t)return;const i=ut(t);if(!i)return;const n={url:i};if(this.config.enableLegacyImpressionDeduplicationSE&&ht(e,i,this.config.impressionSelector))return;if(this.config.enableLegacyImpressionDeduplicationDK&&function(e,t,i){return!t.startsWith("/")||(!!dt(e,i,e=>
1ct(e)===t)||t.split(/[?#]/)[0].split("/").filter(Boolean).length<2)}(e,t,this.config.impressionSelector))return;this.config.enableLegacyImpressionEnrichmentNO&&(n.context=Nt(e),lt(n,e));const a=Ee(e);a&&(n.labels=a),this.blink.articlePreviewScreenEnter(n)},this.trackConsent=e=>{this.blink.consent(e)},this.trackTCFConsent=()=>{gt(e=>{e.tcString&&e.eventStatus&&(this._handleTCFConsentChange(e),this.blink.tcfConsent({tcData:e}))})},this._handleTCFConsentChange=e=>{"tcf"===this.config.consentCheckMode&&function(e){const t=e?.publisher?.consents??e?.purpose?.consents;if(!t)return!1;const i=!0===t[1],n=!0===t[3]||!0===t[4]||!0===t[5]||!0===t[6]||!0===t[7]||!0===t[8]||!0===t[9];return i&&n}(e)&&!this.consented&&(this.consented=!0,this._setPageview())},this.config=new Ot(e);var i;this.sender=new yt((i="/dtnl/blink-collector/api/ingest/blink-web",e=>{const t=JSON.stringify(e);if("sendBeacon"in navigator&&void 0===window?.ia_document)navigator.sendBeacon(i,new Blob([t],{type:"application/json"}));else{const e=new XMLHttpRequest;e.open("POST",i,!0),e.setRequestHeader("Content-Type","application/json"),e.send(t)}}),2e3),this.sender.start(),this.blink=I({send:e=>this.sender.addEvents(e)}),this.jwTracker=new Se(e=>{this.blink.jwEvent(e)}),this.htmlVideoTracker=new _e(e=>{this.blink.jwEvent(e)}),this.softNavViewportTracker=new At,this.softNavViewportTracker.start();const a=document.referrer,s={url:window.location.href,pageView:t(),referrer:a,pageType:E()},o=ge(a);o&&(s.previousPageView=o);const r=window?.navigator?.userAgent;r&&(s.customUserAgent=r),this.blink.pageInit(s)}start(){return this.trackInitialPageviewAndActiveTime(),this.trackTCFConsent(),this.trackChromeWebVitals(),this.trackPerformance(),this.trackVideos(),this.trackHtmlVideos(),this.trackLinkClicks(),this.trackBoxes(),this.trackContentImpressions(),this.trackIframeEvents(),this.trackAds(),this.trackNewPageviewOnUrlChange(),this}trackInitialPageviewAndActiveTime(){this._checkUserPaywallAccess(),this._checkPageAccess(),this.systemPulseIntervalId=window.setInterval(()=>{this._handleSystemPulse()},2e3);const e=Le(()=>{const e=new Date;this.sendPerformanceReportOnce?.(),this.sendWebVitalsReportOnce?.(),this.blink.pageActivity({type:"stop",time:e}),this.blink.sendAdEvents(e),this.sender.flush()},500);window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),document.addEventListener("visibilitychange",e),window.addEventListener("beforeunload",Le(()=>{this.jwTracker.captureAllPlayersOnBeforeUnload(),this.htmlVideoTracker.captureAllPlayersOnBeforeUnload(),this.sender.flush()},500));const t=new Date,i=this._processDataLayerEntries();this._trackHardPageload(),this._trackActiveTimeStart(t),this._trackActivityInteractions(),this._setPageview(),this.blink.domainEvents(i)}trackNewPageviewOnUrlChange(){Tt((e,t,i)=>{this._trackNewPageview(e,t,i)})}_trackNewPageview(e,t,i){const n=new Date;this.currentPageUrl=t,this.blink.pageActivity({type:"stop",time:n}),this.blink.sendAdEvents(n),this._pageInit(),this._checkPageAccess(),this._trackSoftPageload(),this._trackActiveTimeStart(n),this._setPageview()}_handleSystemPulse(){const e=new Date;this._checkUserPaywallAccess(),this._checkPageAccess(),this._setPageview(),this.blink.domainEvents(this._processDataLayerEntries()),this.blink.activeTimePulse({time:e,scrollY:window.scrollY}),this.blink.sendAdEvents(e),this.sender.flush()}_trackHardPageload(){this.blink.pageLoad({clientHeight:document.documentElement.clientHeight,clientWidth:document.documentElement.clientWidth,scrollHeight:document.documentElement.scrollHeight})}_trackSoftPageload(){this.blink.pageLoad({clientHeight:document.documentElement.clientHeight,clientWidth:document.documentElement.clientWidth,scrollHeight:document.documentElement.scrollHeight,softNavClassification:this.softNavViewportTracker.classifyOnUrlChange()})}_setPageview(){this._canTrackPersonalized()&&me(window.location.href,this.blink.pageView())}trackPerformance(){this.sendPerformanceReportOnce=function(e){let t=!1;const i=()=>{if(t)return;t=!0;const i=performance?.getEntriesByType?.("navigation")[0];i&&e(i)};return setTimeout(i,1e4),i}(e=>{this.blink.performance({performanceTimings:T(e)})})}trackChromeWebVitals(){this.sendWebVitalsReportOnce=ue(e=>{this.blink.webVitals({webVitals:e})})}trackAds(){this._trackAdInscreen(this.config.adSelector),this._trackAdInscreen0(this.config.adSelector),this._trackAdLabels(this.config.adSelector),this._trackAdGPT()}_trackAdInscreen(e){st(e,e=>{.3===jt(e)&&this.blink.adScreenEnter({id:e.getAttribute("id")??"",time:new Date})},e=>{.3===jt(e)&&this.blink.adScreenExit({id:e.getAttribute("id")??"",time:new Date})},{threshold:.3}),st(e,e=>{.5===jt(e)&&this.blink.adScreenEnter({id:e.getAttribute("id")??"",time:new Date})},e=>{.5===jt(e)&&this.blink.adScreenExit({id:e.getAttribute("id")??"",time:new Date})},{threshold:.5})}_trackAdInscreen0(e){return st(e,e=>{this._adLoad(e),this.blink.adScreenEnter0({id:e.getAttribute("id")??"",time:new Date})},e=>{this.blink.adScreenExit0({id:e.getAttribute("id")??"",time:new Date})},{threshold:0})}_trackAdLabels(e){return ot(e,e=>{const t=e.id;if(!t)return;const i=Ee(e);i&&this.blink.adLabels({id:t,labels:i})})}_adLoad(e){const t=e.id;if(!t)return;const i=window.scrollY;this.blink.adLoad({id:t,offsetHeight:e.offsetHeight,offsetTop:Math.round(e.getBoundingClientRect().top+i),scrollTop:i})}_trackAdGPT(){window.googletag=window.googletag??{},window.googletag.cmd=window.googletag.cmd??[],window.googletag.cmd.push(()=>{window.googletag.pubads().addEventListener("impressionViewable",e=>{const t=function(e,t){const i=e.slot,n=i?.getSlotElementId();if("string"!=typeof n||0===n.length)return;return{id:n,scrollTop:t}}(e,document.documentElement.scrollTop);t&&this.blink.adImpressionViewable(t)}
1),window.googletag.pubads().addEventListener("slotRenderEnded",e=>{const t=ft(e,document.documentElement.scrollTop,Math.round(performance.now()));t&&this.blink.adSlotRenderEnded(t)}),window.googletag.pubads().addEventListener("slotOnload",e=>{const t=function(e,t){const i=e.slot,n=i?.getSlotElementId();if("string"!=typeof n||0===n.length)return;const a={id:n,scrollTop:t},s=i?.getTargeting("pos")?.[0];return"string"==typeof s&&s.length>0&&(a.name=s),a}(e,document.documentElement.scrollTop);t&&this.blink.adSlotOnload(t)})})}trackLinkClicks(){_t(this._onClick)}_applyLegacyClickEnrichmentNO(e,t){const i=t.closest(this.config.impressionSelector);e.context=Nt(i??t),i&&lt(e,i)}_trackActiveTimeStart(e){this.blink.pageActivity({type:"start",time:e,scrollY:window.scrollY})}_trackActivityInteractions(){const e=Le(()=>{this.blink.pageActivity({type:"interaction",time:new Date,scrollY:window.scrollY})},2e3);document.addEventListener("keydown",e,{passive:!0}),document.addEventListener("mousemove",e,{passive:!0}),document.addEventListener("scroll",e,{passive:!0})}trackContentImpressions(){return st(this.config.impressionSelector,e=>{this._onImpressionEnter(e)},e=>{},{threshold:.5,hiddenAttribute:"data-am-impression-hidden",requireFullExit:!0})}trackIframeEvents(){Dt({onImpression:e=>this.blink.articlePreviewScreenEnter(e),onBox:e=>this.blink.boxScreenEnter(e),onClick:e=>{this.blink.click(e),this.sender.flush()}})}trackBoxes(){st(this.config.boxSelector,e=>{const t=e.getAttribute("id");if(!t)return;const i={id:t},n=Ee(e);n&&(i.labels=n),this.blink.boxScreenEnter(i);const a=new CustomEvent("boxImpression",{detail:{id:t}});dispatchEvent(a)},e=>{},{threshold:.5,hiddenAttribute:"data-am-box-hidden",scaleThresholdToViewport:!0,requireFullExit:!0})}_processDataLayerEntries(){const e=window.dataLayer;if(!Array.isArray(e))return[];const t=[];for(;this.dataLayerProcessedIndex<e.length;){const i=e[this.dataLayerProcessedIndex++];if(!i||"object"!=typeof i)continue;this.config.enableLegacyDataLayerEnrichmentDK?this._enrichDKLegacyStateFromDataLayer(i):this.config.enableLegacyDataLayerEnrichmentFI&&this._enrichFILegacyStateFromDataLayer(i);const n=wt(i);n&&t.push(n)}return t}_enrichDKLegacyStateFromDataLayer(e){const t=function(e){const t={};return function(e){return"event"in e&&"page_view"===e.event}(e)&&("user_logged_in"in e&&"boolean"==typeof e.user_logged_in&&(t.dkLoggedIn=e.user_logged_in),"page_paywall_status"in e&&"boolean"==typeof e.page_paywall_status&&"page_url"in e&&"string"==typeof e.page_url&&(t.pageAccessTypeEnrichment={pageAccessType:e.page_paywall_status?"purchase":"open",pageUrl:e.page_url}),"user_paywall_access"in e&&"boolean"==typeof e.user_paywall_access&&(t.userPaywallAccess=e.user_paywall_access)),t}(e);void 0!==t.dkLoggedIn&&this.blink.setDKLoggedIn(t.dkLoggedIn),t.pageAccessTypeEnrichment&&this.blink.setPageAccessType(t.pageAccessTypeEnrichment.pageUrl,t.pageAccessTypeEnrichment.pageAccessType),void 0!==t.userPaywallAccess&&this.blink.setUserPaywallAccess(t.userPaywallAccess)}_enrichFILegacyStateFromDataLayer(e){const t=function(e){const t={};if("user"in e&&"object"==typeof e.user&&null!==e.user){const i=e.user;if("id"in i&&"string"==typeof i.id){const e=i.id.trim();e&&(t.fiLoginId=e)}}return t}(e);void 0!==t.fiLoginId&&this.blink.setFILoginId(t.fiLoginId)}_canTrackPersonalized(){return this.consented||"legitimate-interest"===this.config.ruleset}_checkPageAccess(){if(this.config.enableLegacySEPageAccessTypeEnrichment){const e=function(){const e=window?.cts?.metadata;return"purchase"===e?.page_paywall_status?"purchase":"login"===e?.page_paywall_status?"login":"open"===e?.page_paywall_status?"open":void 0}(this.currentPageUrl);e&&this.blink.setPageAccessType(this.currentPageUrl,e)}}_checkUserPaywallAccess(){if(this.config.enableLegacySEUserPaywallAccessEnrichment){const e=function(){const e=window?.cts?.metadata?.user_paywall_access;return!0===(t=e)||!1!==t&&void 0;var t}();void 0!==e&&this.blink.setUserPaywallAccess(e)}}}const Yt=["aller.no","dagbladet.no","elbil24.no","kk.no","kode24.no","kvasir.no","pling.no","seher.no","sol.no"];window.Blink={setupTracking(e){if(window.BlinkConfigured)return void console.log("Blink tracking has already been configured.");window.BlinkConfigured=!0;const t=new Wt(e);return t.start(),t}},function(){if(!1===window.BlinkAutoInit)return;const e=window.location.hostname,t=Yt.some(t=>e===t||e.endsWith(`.${t}`));if(e.endsWith(".dk"))window.Blink.setupTracking({consentCheckMode:"tcf",ruleset:"default",impressionSelector:Ct,enableLegacyImpressionDeduplicationDK:!0,enableLegacyDataLayerEnrichmentDK:!0});else if(e.endsWith("recept.se")||e.endsWith("femina.se"))window.Blink.setupTracking({consentCheckMode:"tcf",ruleset:"default",enableLegacySEPageAccessTypeEnrichment:!0,enableLegacySEUserPaywallAccessEnrichment:!0});else if(e.endsWith(".se")||e.endsWith(".mabra.com"))window.Blink.setupTracking({consentCheckMode:"tcf",ruleset:"default",impressionSelector:xt,enableLegacyImpressionDeduplicationSE:!0,enableLegacySEPageAccessTypeEnrichment:!0,enableLegacySEUserPaywallAccessEnrichment:!0});else if(t){const e=window.Blink.setupTracking({consentCheckMode:"none",ruleset:"legitimate-interest",boxSelector:".track-element, [data-am-track-box]",adSelector:".adunit, [data-aller-ad-placement]",impressionSelector:Lt,enableLegacyImpressionEnrichmentNO:!0,enableLegacyClickEnrichmentNO:!0,enableLegacyKilkayaVideoTrackingNO:!0});e&&(window.trackCustom=e?.trackCustom,window.trackConsent=e?.trackConsent)}else e.endsWith("femina.fi")?window.Blink.setupTracking({consentCheckMode:"tcf",ruleset:"legitimate-interest"}):e.endsWith("seiska.fi")?window.Blink.setupTracking({consentCheckMode:"none",ruleset:"legitimate-interest",impressionSelector:Mt,enableLegacyDataLayerEnrichmentFI:!0}):window.Blink.setupTracking({consentCheckMode:"tcf",ruleset:"default"})}()}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.