1import{t as e}from"./dist.Cnxa_LV8.js";import{t}from"./store.CgJyyZdh.js";import{t as n}from"./resolveSubscriberState.BPdOVIjn.js";async function r(t,n){let r=document.createElement(`script`);if(n)try{let e=await fetch(t);if(!e.ok)throw Error(`Failed to fetch script content`);r.textContent=await e.text()}catch(t){e.error(`Error fetching script content:`,t);return}else r.src=t,r.async=!0;document.head.appendChild(r)}async function i(e=`https://www.adressa.no/polarnexus/polarnexus.js`,t=500,n=!1){await new Promise(e=>setTimeout(e,t)),await r(e,n)}function a(e){return`https://www.${e}/polarnexus/polarnexus.js`}async function o(e=`adressa.no`,t=500,n=!1){await i(a(e),t,n)}var s=class extends HTMLElement{async connectedCallback(){let e=this.dataset.publication,r=this.dataset.pageType,i=this.dataset.device,a=this.dataset.articleType,s=JSON.parse(this.dataset.adStructure||`null`),c=n(),l=await t().isLoggedIn();window.polarbearnexusADS={subscriberState:c,loggedIn:l,publication:e,device:i,pageType:r,adStructure:s,articleType:a},o(`${e}.no`)}};customElements.define(`polarnexus-script`,s);
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.