@schibsted/advertory 3.10.2 → 3.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aftenposten/cjs/index.d.ts +1 -0
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/{_auto-entry_aftenposten-CfxmA6Sz.js → _auto-entry_aftenposten-DbDAcKMR.js} +1 -1
- package/aftenposten/es/{events-D5BK_FjH.js → events-C6lx6b5V.js} +1 -1
- package/aftenposten/es/{index-BoV9_ZRb.js → index-2EE_kvhj.js} +1 -1
- package/aftenposten/es/{index-B7fWQoNH.js → index-BYQDsrN-.js} +1 -1
- package/aftenposten/es/{index-D7LDwNiz.js → index-CRD-sp2y.js} +1 -1
- package/aftenposten/es/{index-ovJpscDM.js → index-CTJfq2r_.js} +1 -1
- package/aftenposten/es/{index-CRIkhrs0.js → index-Ch8vbZJb.js} +1 -1
- package/aftenposten/es/{index-CLz2ZrJo.js → index-Cm-Yhi1C.js} +1 -1
- package/{aftonbladet/es/index-AcwQn_AF.js → aftenposten/es/index-D9n1OIqx.js} +1 -1
- package/aftenposten/es/{index-CD8kgVAe.js → index-DUo24LKw.js} +1 -1
- package/aftenposten/es/{index-fXD-E25z.js → index-Hx2PtuZR.js} +1 -1
- package/aftenposten/es/index.d.ts +1 -0
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-BuBHRZAA.js → styles-BIYFEU6L.js} +1 -1
- package/aftenposten/es/{styles-DiMWswaB.js → styles-BuBaDo2y.js} +1 -1
- package/aftenposten/es/{styles-6cSerhxF.js → styles-C4QlrSfM.js} +1 -1
- package/aftenposten/es/{styles-CENeKsau.js → styles-CAfnOa-6.js} +1 -1
- package/aftenposten/es/{styles-DKDtEErf.js → styles-CGKGEXEp.js} +1 -1
- package/aftenposten/es/{styles-BLC6D36_.js → styles-CNTWmAu-.js} +1 -1
- package/aftenposten/es/{styles-BE8Jhsvc.js → styles-CaSlg_e4.js} +1 -1
- package/aftenposten/es/{styles-lBs-Vv6p.js → styles-Da7Ox-gt.js} +1 -1
- package/aftenposten/es/{styles-CQVBlvO-.js → styles-F14z1KQJ.js} +1 -1
- package/aftenposten/es/{styles-0TG4Gt1h.js → styles-Ww_8S9E1.js} +1 -1
- package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-DpSt04Hy.js → _auto-entry_aftenpostenv2-BcvXG_-u.js} +1 -1
- package/aftenpostenv2/es/{events-DNBenqqw.js → events-Dl2Ux8JO.js} +1 -1
- package/aftenpostenv2/es/{index-CSemVhhs.js → index--BfgIguc.js} +1 -1
- package/aftenpostenv2/es/{index-BuO48dsR.js → index-8z4PrAm8.js} +1 -1
- package/aftenpostenv2/es/{index-DTCnZrKE.js → index-BClNfnS3.js} +1 -1
- package/aftenpostenv2/es/{index-xmDgfcm6.js → index-Bj6swo7s.js} +1 -1
- package/aftenpostenv2/es/{index-BvFRch7F.js → index-CKJZp9yB.js} +1 -1
- package/aftenpostenv2/es/{index-padX4wW4.js → index-CNh9dVQ7.js} +1 -1
- package/{aftonbladetv2/es/index-DhC3vj9h.js → aftenpostenv2/es/index-CuQNWSBq.js} +1 -1
- package/aftenpostenv2/es/{index-BH9Q1LRu.js → index-DboUPv_H.js} +1 -1
- package/aftenpostenv2/es/{index-iu7u8q3_.js → index-Do3x1282.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +1 -0
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-B0k9t7dS.js → styles-B8adubYN.js} +1 -1
- package/aftenpostenv2/es/{styles-NHzn3GB0.js → styles-BDuWBeiC.js} +1 -1
- package/aftenpostenv2/es/{styles-BRb-b463.js → styles-BY_BN8s7.js} +1 -1
- package/aftenpostenv2/es/{styles-DYitsqbR.js → styles-BfefU2nr.js} +1 -1
- package/aftenpostenv2/es/{styles-D670f_yr.js → styles-BvsDKnWn.js} +1 -1
- package/aftenpostenv2/es/{styles-m_bOPe3-.js → styles-C38VZ9_c.js} +1 -1
- package/aftenpostenv2/es/{styles-ZAsWjqFd.js → styles-D0XEPJ4V.js} +1 -1
- package/aftenpostenv2/es/{styles-B8ZvEgHw.js → styles-DC4lWj1y.js} +1 -1
- package/aftenpostenv2/es/{styles-CVpMqPrZ.js → styles-p2-rbMQq.js} +1 -1
- package/aftenpostenv2/es/{styles-CEy2oTnP.js → styles-pSNAuvpV.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +1 -0
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/{_auto-entry_aftonbladet-CR16KCDx.js → _auto-entry_aftonbladet-YEax92eA.js} +1 -1
- package/aftonbladet/es/{events-Bvh_6jxa.js → events-DEoMgr4t.js} +1 -1
- package/aftonbladet/es/{index-EKC-Twlr.js → index-3TKTOC33.js} +1 -1
- package/aftonbladet/es/{index-DYNB-45Y.js → index-7WJ-v2Kb.js} +1 -1
- package/aftonbladet/es/{index-B0biY21K.js → index-B0gjRkc2.js} +1 -1
- package/aftonbladet/es/{index-BMW8bIDx.js → index-BnFbH6xB.js} +1 -1
- package/aftonbladet/es/{index-B1ERZvIq.js → index-C722TQc1.js} +1 -1
- package/{aftenposten/es/index-Bo60x3kZ.js → aftonbladet/es/index-CK9lQTO0.js} +1 -1
- package/aftonbladet/es/{index-CCWI9z3_.js → index-Chp9Fg_1.js} +1 -1
- package/aftonbladet/es/{index-BAVT-rAm.js → index-DVvNFHZH.js} +1 -1
- package/aftonbladet/es/{index-D5pZNy1E.js → index-DcUQd3xA.js} +1 -1
- package/aftonbladet/es/index.d.ts +1 -0
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-dm8JPLdN.js → styles-BQhvmmtV.js} +1 -1
- package/aftonbladet/es/{styles-WvWD9ESg.js → styles-Cf-6myf-.js} +1 -1
- package/aftonbladet/es/{styles-c-BgWOZH.js → styles-DWnh_JRF.js} +1 -1
- package/aftonbladet/es/{styles-D9xQPSiV.js → styles-D_KBEeRj.js} +1 -1
- package/aftonbladet/es/{styles-Pf7GGY1D.js → styles-dRBDMq4l.js} +1 -1
- package/aftonbladet/es/{styles-CmEYksOo.js → styles-gY21K5kn.js} +1 -1
- package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-DNYykorK.js → _auto-entry_aftonbladetv2-7OrZekHP.js} +1 -1
- package/aftonbladetv2/es/{events-Dw9ZbynX.js → events-BXSpCzwS.js} +1 -1
- package/aftonbladetv2/es/{index-WTmQL0-f.js → index-B8yyBBTb.js} +1 -1
- package/aftonbladetv2/es/{index-CtnO8QSI.js → index-BpRdxD6I.js} +1 -1
- package/aftonbladetv2/es/{index-BotJKtLK.js → index-C-KL6up_.js} +1 -1
- package/aftonbladetv2/es/{index-Chmtx3Ub.js → index-C38WMBVv.js} +1 -1
- package/aftonbladetv2/es/{index-ftxi3ksg.js → index-CD_XMKd1.js} +1 -1
- package/aftonbladetv2/es/{index-DPjtzM_d.js → index-CTVPMMVX.js} +1 -1
- package/{aftenpostenv2/es/index-CovGINUT.js → aftonbladetv2/es/index-DQ7QRdQx.js} +1 -1
- package/aftonbladetv2/es/{index-DUyfv07Q.js → index-DjFd1_aT.js} +1 -1
- package/aftonbladetv2/es/{index-UBHRoKSn.js → index-IKT28CPm.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +1 -0
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-D7lpavUi.js → styles-CekmirGE.js} +1 -1
- package/aftonbladetv2/es/{styles-D5SbeQZq.js → styles-D9lEkYBp.js} +1 -1
- package/aftonbladetv2/es/{styles-BkftGGMD.js → styles-DbNvX375.js} +1 -1
- package/aftonbladetv2/es/{styles-CVRa5YlA.js → styles-DwmnRtch.js} +1 -1
- package/aftonbladetv2/es/{styles-B2gFwWJu.js → styles-igwSFitu.js} +1 -1
- package/aftonbladetv2/es/{styles-kBEWQbuF.js → styles-n2QPHQcU.js} +1 -1
- package/bt/cjs/index.d.ts +1 -0
- package/bt/cjs/index.js +1 -1
- package/bt/es/{_auto-entry_bt-BK7Unx_d.js → _auto-entry_bt-D-GrQA20.js} +1 -1
- package/bt/es/{events-DuZUIBSC.js → events-wk91hgf4.js} +1 -1
- package/{sa/es/index-CvRkm6hO.js → bt/es/index-1jfDN2Sg.js} +1 -1
- package/bt/es/{index-BR0gAgOE.js → index-BA5EprcN.js} +1 -1
- package/bt/es/{index-BX7nDIU6.js → index-BE_KNO8D.js} +1 -1
- package/bt/es/{index-DTuerL5f.js → index-BMQoGqfh.js} +1 -1
- package/bt/es/{index-pIhy6ZDE.js → index-CgFuVmFx.js} +1 -1
- package/bt/es/{index-CAFDwDWc.js → index-Cu2s3pfI.js} +1 -1
- package/bt/es/{index-CNVHNPdL.js → index-DUjeLgrr.js} +1 -1
- package/{sa/es/index-B_kX-D9U.js → bt/es/index-Dqf0uxgu.js} +1 -1
- package/bt/es/{index-Dx9slRzW.js → index-vuCqU2RA.js} +1 -1
- package/bt/es/index.d.ts +1 -0
- package/bt/es/index.js +1 -1
- package/{sa/es/styles-Ct0gNo_w.js → bt/es/styles-9-_XXeQL.js} +1 -1
- package/bt/es/{styles-CJA_lrQl.js → styles-Bg77RNtx.js} +1 -1
- package/{sa/es/styles-C35eDf0k.js → bt/es/styles-BgVnB1n4.js} +1 -1
- package/bt/es/{styles-BvMG41ze.js → styles-Bkq2cnpc.js} +1 -1
- package/bt/es/{styles-BWFXPAcu.js → styles-C2Va8soF.js} +1 -1
- package/bt/es/{styles-nKm0Vh5F.js → styles-CZcpb_cW.js} +1 -1
- package/{sa/es/styles-DJyevuPj.js → bt/es/styles-CmpIaROj.js} +1 -1
- package/bt/es/{styles-vfpH8IhJ.js → styles-CrvpJ1b1.js} +1 -1
- package/bt/es/{styles-CGrq08M4.js → styles-Dz4lNFwI.js} +1 -1
- package/btv2/es/{_auto-entry_btv2-DDlJ2rNT.js → _auto-entry_btv2-C3SH3J_V.js} +1 -1
- package/{omni/es/events-s7M_BIZf.js → btv2/es/events-Bwds9f5V.js} +1 -1
- package/btv2/es/{index-CXBlT7aa.js → index-0R87ZG3W.js} +1 -1
- package/btv2/es/{index-C0R90pvz.js → index-1f4qDgbl.js} +1 -1
- package/{omni/es/index-DbU616q2.js → btv2/es/index-1fwUQjrp.js} +1 -1
- package/btv2/es/{index-bsdtXr9s.js → index-CjqbcHT9.js} +1 -1
- package/btv2/es/{index-Di77ZZwe.js → index-DQ5fNYr6.js} +1 -1
- package/{omni/es/index-qnl_keQC.js → btv2/es/index-DiL7N4lv.js} +1 -1
- package/{vgv2/es/index-Da4oVrjM.js → btv2/es/index-Ylp_oC63.js} +1 -1
- package/{omni/es/index-G1VotTxH.js → btv2/es/index-geSLw6Pe.js} +1 -1
- package/{omni/es/index-BGv9kjCm.js → btv2/es/index-q2Tv9zGk.js} +1 -1
- package/btv2/es/index.d.ts +1 -0
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-CWelmzPA.js → styles-7f1VgtNQ.js} +1 -1
- package/{vgv2/es/styles-CJwj3aJ6.js → btv2/es/styles-BhDf5sDR.js} +1 -1
- package/{sav2/es/styles-DprmmaR9.js → btv2/es/styles-CeEwYZpq.js} +1 -1
- package/btv2/es/{styles-B8opdIuf.js → styles-D18HQlop.js} +1 -1
- package/{sav2/es/styles-DqKMHAsS.js → btv2/es/styles-DyfFQ2hL.js} +1 -1
- package/{sav2/es/styles-BYi6wl_B.js → btv2/es/styles-RL0uSsb5.js} +1 -1
- package/btv2/es/{styles-Dpp_lBCH.js → styles-X1LXnRvz.js} +1 -1
- package/{sav2/es/styles-CQ6A7ukE.js → btv2/es/styles-bnEE5jff.js} +1 -1
- package/e24/es/{_auto-entry_e24-O_4Bc5km.js → _auto-entry_e24-DaPjWKd-.js} +1 -1
- package/e24/es/{events-CrQFeT1k.js → events-Dtf8ByEY.js} +1 -1
- package/e24/es/{index-Dn24MFLp.js → index-0J6hANSm.js} +1 -1
- package/e24/es/{index-74ld5BQ2.js → index-B0oipmks.js} +1 -1
- package/e24/es/{index-pgnnXWcu.js → index-B3nwc0B1.js} +1 -1
- package/e24/es/{index-DOlXP8v2.js → index-BMzrJBUc.js} +1 -1
- package/e24/es/{index-Ic7OI_Sr.js → index-BPIphy4r.js} +1 -1
- package/e24/es/{index-D86ttP18.js → index-ChuuD-zm.js} +1 -1
- package/{tv4/es/index-DuZk2Gu9.js → e24/es/index-CzDKaZTt.js} +1 -1
- package/e24/es/{index-DBu5NzAR.js → index-RNVwYnz9.js} +1 -1
- package/e24/es/{index-DfJXfpBA.js → index-sqjoD6oc.js} +1 -1
- package/e24/es/index.d.ts +1 -0
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-Dck1P_6i.js → styles-36trcs0l.js} +1 -1
- package/e24/es/{styles-BUVVMkht.js → styles-C7_mOdY8.js} +1 -1
- package/e24/es/{styles-DIG0wB9C.js → styles-CRok5PYn.js} +1 -1
- package/e24/es/{styles-6M2QJ97O.js → styles-CoW2gwfN.js} +1 -1
- package/e24/es/{styles-CoB5ytG1.js → styles-CuQikkRI.js} +1 -1
- package/e24/es/{styles-9904XWpX.js → styles-DV8i508W.js} +1 -1
- package/e24/es/{styles-UQPGJkgc.js → styles-Dayigryp.js} +1 -1
- package/e24/es/{styles-4ETUIe9U.js → styles-QX3q1Rhp.js} +1 -1
- package/{tv4/es/styles-R6HFQW4L.js → e24/es/styles-U1tl07o7.js} +1 -1
- package/e24/es/{styles-7G5deHiD.js → styles-sVYplqet.js} +1 -1
- package/e24/es/{styles-jrjuCf_A.js → styles-vOc5jXTH.js} +1 -1
- package/fotbollskanalen/cjs/index.d.ts +1 -0
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-Dd2ZUktK.js → _auto-entry_fotbollskanalen-bYXB-tie.js} +1 -1
- package/fotbollskanalen/es/{events-DARnayac.js → events-BbHOO97m.js} +1 -1
- package/fotbollskanalen/es/{index-oMq_hcQU.js → index-B7q_ravI.js} +1 -1
- package/fotbollskanalen/es/{index-BnRtqH81.js → index-BL4n2cjV.js} +1 -1
- package/fotbollskanalen/es/{index-BnOqhool.js → index-BgFmUgRP.js} +1 -1
- package/fotbollskanalen/es/{index-CUJeyBHW.js → index-BlwYqBNu.js} +1 -1
- package/fotbollskanalen/es/{index-KoIcy_OM.js → index-CQrJLlHH.js} +1 -1
- package/fotbollskanalen/es/{index--LOmSqwk.js → index-CVIqyLF8.js} +1 -1
- package/fotbollskanalen/es/{index-6YGAxy4M.js → index-CkqqFFJ8.js} +1 -1
- package/fotbollskanalen/es/{index-DVYIl4J1.js → index-DLpBVmyb.js} +1 -1
- package/fotbollskanalen/es/{index-B-1pnCde.js → index-_FdSMO4y.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +1 -0
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-BzZnBkIV.js → styles-BtQuav7t.js} +1 -1
- package/fotbollskanalen/es/{styles-Vq6mjn9w.js → styles-CWe7VmfK.js} +1 -1
- package/fotbollskanalen/es/{styles-COVqK-7B.js → styles-DR4Wgoap.js} +1 -1
- package/godt/cjs/index.d.ts +1 -0
- package/godt/cjs/index.js +1 -1
- package/klart/cjs/index.d.ts +1 -0
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +1 -0
- package/koket/cjs/index.js +1 -1
- package/koket/es/{_auto-entry_koket-C6PWUDH1.js → _auto-entry_koket-BCfP477v.js} +1 -1
- package/koket/es/{events-BmHAioCv.js → events-DAUbuQrY.js} +1 -1
- package/koket/es/{index-LyPBDvyr.js → index--SmDei_W.js} +1 -1
- package/{svdv2/es/index-BbJJeO67.js → koket/es/index-B7pT6G7c.js} +1 -1
- package/koket/es/{index-DA3_TmVi.js → index-BTgkVfR-.js} +1 -1
- package/koket/es/{index-DksR9jJv.js → index-Bst9cqeM.js} +1 -1
- package/koket/es/{index-JSS6zxGH.js → index-CTMmatR9.js} +1 -1
- package/koket/es/{index-Hb34Fjg8.js → index-CtnDguhQ.js} +1 -1
- package/koket/es/{index-W1--RhCx.js → index-DwuSsgf3.js} +1 -1
- package/koket/es/{index-CiWAwKf0.js → index-XIeiosBZ.js} +1 -1
- package/koket/es/{index-BFI3SvdD.js → index-bMajsUvf.js} +1 -1
- package/koket/es/index.d.ts +1 -0
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-pUhmUrSX.js → styles-BTDtdsDG.js} +1 -1
- package/{svdv2/es/styles-BDu2ZrAm.js → koket/es/styles-BwZ3CCpX.js} +1 -1
- package/koket/es/{styles-Cqj8IPA5.js → styles-CAOnP8FK.js} +1 -1
- package/minmote/cjs/index.d.ts +1 -0
- package/minmote/cjs/index.js +1 -1
- package/omni/es/{_auto-entry_omni-DEbFXIPP.js → _auto-entry_omni-DqAmvdIZ.js} +1 -1
- package/{tvnu/es/events-C390CeeZ.js → omni/es/events-D8La7bJW.js} +1 -1
- package/{btv2/es/index-Csf1U6vg.js → omni/es/index-1N-5CJp5.js} +1 -1
- package/{sav2/es/index-_14Pynfv.js → omni/es/index-3sceQoUU.js} +1 -1
- package/omni/es/{index-Bt_9C7cT.js → index-BP-VFLA4.js} +1 -1
- package/{btv2/es/index-CS4z77wW.js → omni/es/index-CHyfG5KH.js} +1 -1
- package/omni/es/{index-BOILkVtF.js → index-ClvpjnBa.js} +1 -1
- package/{btv2/es/index-neAX6nLz.js → omni/es/index-CuNFqYQQ.js} +1 -1
- package/omni/es/{index-DqPMqpt5.js → index-H4vrn8v9.js} +1 -1
- package/omni/es/{index-ByI-pcbZ.js → index-YHUwTTd6.js} +1 -1
- package/omni/es/{index-DEJ_hkCf.js → index-uRooiXKL.js} +1 -1
- package/omni/es/index.d.ts +1 -0
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-DtUKhhz1.js → styles-BNR2cXTq.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +1 -0
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +1 -0
- package/sa/cjs/index.js +1 -1
- package/sa/es/{_auto-entry_sa-BkYbwAd1.js → _auto-entry_sa-BoE6uefy.js} +1 -1
- package/sa/es/{events-CgE-hy7W.js → events-cx0Hvyzd.js} +1 -1
- package/sa/es/{index-CcWwfCfX.js → index--izQWs8A.js} +1 -1
- package/{bt/es/index-BQAhJ1I3.js → sa/es/index-BVp0_Kdv.js} +1 -1
- package/sa/es/{index-UFQEw2S6.js → index-Biy9pu22.js} +1 -1
- package/sa/es/{index-Dajd_xSt.js → index-BqJNfMNf.js} +1 -1
- package/{bt/es/index-BIZrLSm4.js → sa/es/index-CJIR6GeK.js} +1 -1
- package/sa/es/{index-DUaOfqg_.js → index-CeBdx0qa.js} +1 -1
- package/{vg/es/index-PGqNtXNR.js → sa/es/index-Cp29FwEy.js} +1 -1
- package/sa/es/{index-PfCWrlNE.js → index-DhVw8BNp.js} +1 -1
- package/sa/es/{index-DjZul_dC.js → index-LeBPz_l8.js} +1 -1
- package/sa/es/index.d.ts +1 -0
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-CddaurTU.js → styles-BC5ZsG9L.js} +1 -1
- package/{bt/es/styles-DQxXSt_E.js → sa/es/styles-Bi64KuSq.js} +1 -1
- package/sa/es/{styles-DDUNXGZu.js → styles-CXaujrue.js} +1 -1
- package/{vg/es/styles-yPGwfMKh.js → sa/es/styles-Cbi4HnoO.js} +1 -1
- package/sa/es/{styles-BnpxSiqe.js → styles-DOCH73K2.js} +1 -1
- package/sa/es/{styles-DlMSCcQC.js → styles-iH6xSdkD.js} +1 -1
- package/{bt/es/styles-mp7-tauJ.js → sa/es/styles-qQ_OQgd9.js} +1 -1
- package/sa/es/{styles-DB-lQnRO.js → styles-tNHRJht0.js} +1 -1
- package/{vg/es/styles-DO1WM037.js → sa/es/styles-ze4N0ze1.js} +1 -1
- package/sav2/es/{_auto-entry_sav2-DAAErDbm.js → _auto-entry_sav2-DE7nVVyA.js} +1 -1
- package/sav2/es/{events-Cm6_V0Bn.js → events-VZfEsXKj.js} +1 -1
- package/{btv2/es/index-BxtryKML.js → sav2/es/index-BISwSuV9.js} +1 -1
- package/sav2/es/{index-B39uzh-E.js → index-BJ0XOFeR.js} +1 -1
- package/sav2/es/{index-CqqCCuAs.js → index-BPWgRxbo.js} +1 -1
- package/{btv2/es/index-BhVu3nAT.js → sav2/es/index-BvEX_1Sm.js} +1 -1
- package/sav2/es/{index-emj7a3AL.js → index-CGPrQ4Sb.js} +1 -1
- package/sav2/es/{index-DmgVfc-L.js → index-CUxYPZTC.js} +1 -1
- package/sav2/es/{index-Murg4k2B.js → index-DGxOj4Go.js} +1 -1
- package/{vgv2/es/index-D6O720Nu.js → sav2/es/index-TDVHd9K0.js} +1 -1
- package/sav2/es/{index-BOZwYIvr.js → index-lYkBLWrR.js} +1 -1
- package/sav2/es/index.d.ts +1 -0
- package/sav2/es/index.js +1 -1
- package/{btv2/es/styles-BQFgLvfw.js → sav2/es/styles-9TiPx6Gh.js} +1 -1
- package/sav2/es/{styles-DTVbU6_f.js → styles-B2ElwHUf.js} +1 -1
- package/sav2/es/{styles-bREDShMq.js → styles-BYk4g0_D.js} +1 -1
- package/{btv2/es/styles-0IyKaKeC.js → sav2/es/styles-C2aw2kUs.js} +1 -1
- package/{vgv2/es/styles-D1t6uurz.js → sav2/es/styles-C2eenXRw.js} +1 -1
- package/sav2/es/{styles-CGVNAf-X.js → styles-CNnzt0UG.js} +1 -1
- package/{vgv2/es/styles-CeosZ_uD.js → sav2/es/styles-CcmiPxEE.js} +1 -1
- package/{vgv2/es/styles-GSHPW9nk.js → sav2/es/styles-DdFdZqSM.js} +1 -1
- package/svd/cjs/index.d.ts +1 -0
- package/svd/cjs/index.js +1 -1
- package/svd/es/{_auto-entry_svd-rqHJkFqg.js → _auto-entry_svd-DXViyvAp.js} +1 -1
- package/svd/es/{events-C54D9CLs.js → events-CcO2mg74.js} +1 -1
- package/svd/es/{index-B6uzadCk.js → index-9zw_ajuS.js} +1 -1
- package/svd/es/{index-i8EH1ugD.js → index-BUWzBIpA.js} +1 -1
- package/{e24/es/index-CJjBbPQL.js → svd/es/index-CZe3mcRX.js} +1 -1
- package/svd/es/{index-BVLW4O3t.js → index-CaqgRfZu.js} +1 -1
- package/svd/es/{index-DU8extUB.js → index-Cg_UnB2f.js} +1 -1
- package/svd/es/{index-huEfDuMB.js → index-CrZ3wx2U.js} +1 -1
- package/svd/es/{index-VePBoLTn.js → index-rfr7chX9.js} +1 -1
- package/svd/es/{index-DIlIWWka.js → index-xhU-Udma.js} +1 -1
- package/svd/es/{index-CrQOrzCS.js → index-z-SCeQvy.js} +1 -1
- package/svd/es/index.d.ts +1 -0
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-Cv3Ag4kN.js → styles-B0UIQ2NB.js} +1 -1
- package/{tv4/es/styles-CfjbYsTS.js → svd/es/styles-CYr7VKsT.js} +1 -1
- package/svd/es/{styles-D9G98plw.js → styles-CZWLomLC.js} +1 -1
- package/svd/es/{styles-C4lyWBqI.js → styles-CkAccAG2.js} +1 -1
- package/svd/es/{styles-DoJrlftc.js → styles-D6UZzQrR.js} +1 -1
- package/svd/es/{styles-DKlj1xfj.js → styles-DIWvDqqZ.js} +1 -1
- package/svdv2/es/{_auto-entry_svdv2-DUbGPvAo.js → _auto-entry_svdv2-CVpUpAXY.js} +1 -1
- package/svdv2/es/{events-BpylTjt0.js → events-DJ_aSczY.js} +1 -1
- package/svdv2/es/{index-DH8TWS2G.js → index-CdQOfWMN.js} +1 -1
- package/{koket/es/index-CQQjR0dc.js → svdv2/es/index-Coz_liEV.js} +1 -1
- package/svdv2/es/{index-7L6GOEcY.js → index-DSersSuL.js} +1 -1
- package/svdv2/es/{index-BJolBzAq.js → index-Dc-GFLtP.js} +1 -1
- package/svdv2/es/{index-DwX9_N1J.js → index-DtGkFtDC.js} +1 -1
- package/svdv2/es/{index-D-__1qKd.js → index-cvMqyyOE.js} +1 -1
- package/svdv2/es/{index-CvAMVxop.js → index-gdhtKhL0.js} +1 -1
- package/svdv2/es/{index-_6MokU4g.js → index-n3YIa6To.js} +1 -1
- package/svdv2/es/{index-Ci31S_cI.js → index-vIb2-Qpy.js} +1 -1
- package/svdv2/es/index.d.ts +1 -0
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-XjAAdIhb.js → styles--cjOrFiS.js} +1 -1
- package/svdv2/es/{styles-D6UbxUjq.js → styles-5xbpAmyZ.js} +1 -1
- package/svdv2/es/{styles-DTkufDwb.js → styles-B-smMvu0.js} +1 -1
- package/{koket/es/styles-t7FqgPGh.js → svdv2/es/styles-BiS9GDMV.js} +1 -1
- package/svdv2/es/{styles-DncgBPAW.js → styles-Bjy-dXOS.js} +1 -1
- package/svdv2/es/{styles-CHVopxcA.js → styles-nggLkjmj.js} +1 -1
- package/tek/cjs/index.d.ts +1 -0
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.d.ts +1 -0
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/{_auto-entry_tv4-D2LUPwoc.js → _auto-entry_tv4-Czrv9igA.js} +1 -1
- package/tv4/es/{events-DT9QhbzN.js → events-RHbzVovL.js} +1 -1
- package/tv4/es/{index-Hdl3waaw.js → index-BTFOQHop.js} +1 -1
- package/tv4/es/{index-Ch-gVM1R.js → index-CfkwXRrW.js} +1 -1
- package/tv4/es/{index-ByKiJjOy.js → index-CgFmQ9K3.js} +1 -1
- package/tv4/es/{index-bJoB9mAg.js → index-D50VhTOf.js} +1 -1
- package/tv4/es/{index-D9S2cCxr.js → index-DUoRgwNr.js} +1 -1
- package/tv4/es/{index-DnqArFwz.js → index-Dusr2png.js} +1 -1
- package/tv4/es/{index-Dw5mfzbv.js → index-PC1ziNpr.js} +1 -1
- package/tv4/es/{index-BtGUspMD.js → index-aTRqAFaY.js} +1 -1
- package/{svd/es/index-D_oQj3Xt.js → tv4/es/index-eGjLUAGZ.js} +1 -1
- package/tv4/es/index.d.ts +1 -0
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-BC_f7KSS.js → styles-BBfV6m0L.js} +1 -1
- package/{e24/es/styles-CAyjmgPZ.js → tv4/es/styles-Bgg91kzu.js} +1 -1
- package/{svd/es/styles-u9ZnoWTJ.js → tv4/es/styles-Da_L2G0P.js} +1 -1
- package/tvnu/cjs/index.d.ts +1 -0
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/{_auto-entry_tvnu-CqoU0IXF.js → _auto-entry_tvnu-DRPNtVUr.js} +1 -1
- package/{btv2/es/events-BD4zr3fc.js → tvnu/es/events-BIVdgk4r.js} +1 -1
- package/tvnu/es/{index-fJy6hdcp.js → index-0NbjWbNs.js} +1 -1
- package/tvnu/es/{index-BUSsSqB0.js → index-Bwa0Via8.js} +1 -1
- package/tvnu/es/{index-CJyhCgQB.js → index-C5IrNmHN.js} +1 -1
- package/tvnu/es/{index-DS6FI8f_.js → index-CBVu_Jg0.js} +1 -1
- package/{vgv2/es/index-C1S7jUbo.js → tvnu/es/index-CKI3emZT.js} +1 -1
- package/{sav2/es/index-D6yLmPBl.js → tvnu/es/index-CWS7tXhn.js} +1 -1
- package/tvnu/es/{index-DGLFfSVY.js → index-CdH0cLfL.js} +1 -1
- package/tvnu/es/{index-p-6XHngr.js → index-TfKn8pDI.js} +1 -1
- package/tvnu/es/{index-DRWjvco2.js → index-Yc93YE0l.js} +1 -1
- package/tvnu/es/index.d.ts +1 -0
- package/tvnu/es/index.js +1 -1
- package/{btv2/es/styles-DyME_pzd.js → tvnu/es/styles-BtXzq5gW.js} +1 -1
- package/tvnu/es/{styles-Bk-wqWYG.js → styles-DKceDPKd.js} +1 -1
- package/types/index.d.ts +1 -0
- package/vg/cjs/index.d.ts +1 -0
- package/vg/cjs/index.js +1 -1
- package/vg/es/{_auto-entry_vg-DJn1N7L-.js → _auto-entry_vg-COG-aR0U.js} +1 -1
- package/vg/es/{events-D-RmmjAD.js → events-TFxPpVn1.js} +1 -1
- package/vg/es/{index-Cy--3dbA.js → index-B2Ls2dAG.js} +1 -1
- package/vg/es/{index-X5UUksnA.js → index-BKJWWuut.js} +1 -1
- package/vg/es/{index-Dj0JDiRo.js → index-BV_CNvPF.js} +1 -1
- package/vg/es/{index-BTnYavtj.js → index-BXmmU8qT.js} +1 -1
- package/vg/es/{index-CMlhhadG.js → index-CpFtK4uR.js} +1 -1
- package/{sa/es/index-CkKcBPdO.js → vg/es/index-DRPsaj6X.js} +1 -1
- package/vg/es/{index-Cnzf7bSt.js → index-DWgwQhvK.js} +1 -1
- package/vg/es/{index-CIDflsKH.js → index-DvIwobAe.js} +1 -1
- package/vg/es/{index-D_wz3vTE.js → index-HLLLKDs6.js} +1 -1
- package/vg/es/index.d.ts +1 -0
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-BhQRBj_I.js → styles--uX9UcpX.js} +1 -1
- package/vg/es/{styles-XQb0C0py.js → styles-B-h7nJB9.js} +1 -1
- package/vg/es/{styles-DmaryQGU.js → styles-BY2PcUh9.js} +1 -1
- package/vg/es/{styles-CLsNBm5e.js → styles-Bb1yzk1s.js} +1 -1
- package/vg/es/{styles-hzC9-7ZQ.js → styles-C6SV3YnI.js} +1 -1
- package/vg/es/{styles-Blblcos3.js → styles-CIHzvxee.js} +1 -1
- package/vg/es/{styles-0vZbXMU2.js → styles-CNRyPmef.js} +1 -1
- package/vg/es/{styles-G4L7KsOB.js → styles-CRZzywaM.js} +1 -1
- package/vg/es/{styles-8-TUi3FI.js → styles-D0zfS-un.js} +1 -1
- package/{sa/es/styles-omXIOq4S.js → vg/es/styles-D1tFEWuD.js} +1 -1
- package/vg/es/{styles-BgOzuIVQ.js → styles-DHovYVSp.js} +1 -1
- package/vg/es/{styles-Nb4lDLU9.js → styles-IO_j92C2.js} +1 -1
- package/vg/es/{styles-B1fg-eeV.js → styles-VQuhY7Nh.js} +1 -1
- package/vg/es/{styles-CmHH7Qsm.js → styles-e4QHFUp6.js} +1 -1
- package/{bt/es/styles-D_EmOU-M.js → vg/es/styles-nISuP3YT.js} +1 -1
- package/vgv2/es/{_auto-entry_vgv2-1bhhiBCr.js → _auto-entry_vgv2-CnHof460.js} +1 -1
- package/vgv2/es/{events-DvfYVt2r.js → events-BcemnoPf.js} +1 -1
- package/{tvnu/es/index-DC0PL22p.js → vgv2/es/index-B1q1ozoh.js} +1 -1
- package/vgv2/es/{index-DtgmRVgN.js → index-CFbI1kAJ.js} +1 -1
- package/vgv2/es/{index-FK-JpFgj.js → index-CRjMM7fj.js} +1 -1
- package/vgv2/es/{index-ytXDEmdI.js → index-CSmeRQWR.js} +1 -1
- package/vgv2/es/{index-DD3IpPlw.js → index-CazRixyv.js} +1 -1
- package/{tvnu/es/index-Dt05Vcc7.js → vgv2/es/index-ClWmjNys.js} +1 -1
- package/vgv2/es/{index-DFNSdbx-.js → index-DqcrGnX3.js} +1 -1
- package/vgv2/es/{index-CEe-5Q1h.js → index-G_ZZZeYK.js} +1 -1
- package/{sav2/es/index-CgUEK1uZ.js → vgv2/es/index-OaBFBZQy.js} +1 -1
- package/vgv2/es/index.d.ts +1 -0
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-DXXTblXP.js → styles--HZ9mMnV.js} +1 -1
- package/{tvnu/es/styles-bYE_i6tN.js → vgv2/es/styles-72boFI-1.js} +1 -1
- package/vgv2/es/{styles-DPWlCXEM.js → styles-BQXYy3Uy.js} +1 -1
- package/vgv2/es/{styles-B9UcxZ4c.js → styles-BSKIOG4k.js} +1 -1
- package/vgv2/es/{styles-B89wdj0X.js → styles-C3ojXd1v.js} +1 -1
- package/vgv2/es/{styles-2Uwumnsx.js → styles-C3uVdvba.js} +1 -1
- package/{sav2/es/styles-4ZUqvXlb.js → vgv2/es/styles-C7tdihSr.js} +1 -1
- package/vgv2/es/{styles-BR97GkKx.js → styles-CDqusSfu.js} +1 -1
- package/vgv2/es/{styles-RwNHR2DO.js → styles-CL8QKIyB.js} +1 -1
- package/vgv2/es/{styles-ytWLYmf8.js → styles-CNfPFlA1.js} +1 -1
- package/vgv2/es/{styles-UrLUFwd4.js → styles-CdtGl9hn.js} +1 -1
- package/{btv2/es/styles-DlCvU34q.js → vgv2/es/styles-D-d93BZg.js} +1 -1
- package/vgv2/es/{styles-Cw12tBlm.js → styles-DVvHOh2D.js} +1 -1
- package/vgv2/es/{styles-BI1mPsld.js → styles-PgQRRYw5.js} +1 -1
- package/{btv2/es/styles-CtTssJkI.js → vgv2/es/styles-q9ErfZzV.js} +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const i={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},r={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni"},o={publisherClassName:r.OMNI,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=d(function(){if(c)return l;c=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var a={};return i.isMergeableObject(e)&&r(e).forEach(function(t){a[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?a[r]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(r,i)(e[r],t[r],i):a[r]=n(t[r],i))}),a}function s(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(t)?s?o.arrayMerge(t,r,o):a(t,r,o):n(r,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}());const p={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},v=(e,t)=>u(e,t,p),g={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},h=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},m=(e,t)=>{console.warn("[Advertory WARN]: ",e)},y=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||m("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||m("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||m("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||m("pageContext.deviceType is required."),n||m("pageOptions is required."),i||m("placements is required."),(null==r?void 0:r.defaultThreshold)||m("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&m(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},f=["placements","takeover","refreshConfig","editory"],w=(e,t)=>Object.assign(Object.assign({},e),t),b={editory:(e,t)=>{var n;return v(null!==(n=e)&&void 0!==n?n:{},t)},pageContext:w,pageOptions:w,tcf:w},x=(e,t)=>{const n={};for(const e of f){const i=t[e];void 0===i||e in b||(n[e]=i)}Object.assign(e,n);const i=e;for(const e of Object.keys(b))Object.hasOwn(t,e)&&void 0!==t[e]&&(i[e]=b[e](i[e],t[e]))},E=6;class C{set(e){y(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");x(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=v(C.DEFAULT_SITE_HANDLERS,e)}}C.DEFAULT_SITE_HANDLERS={siteEvents:g,initNativeAd:()=>{}};const I=new C,A=I.modifyConfigProperties.bind(I);class S{initialize(){this.DATA=Object.assign({},S.INITIAL_DATA)}getData(e){if(!this.DATA)throw new Error("Storage was accessed with invalid data.");return this.DATA[e]}setData(e,t){if(!this.DATA)throw new Error("Storage was accessed before it had been initialized.");this.DATA[e]=Object.assign(Object.assign({},this.DATA[e]),t)}}S.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const T=new S,k=864e5,P=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return h("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=k)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=k)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return h("Error with parsing localStorage data"),null}}}})(),O="glimrTags",L=["glwe_","glwet_"],j={geofenceTags:[],geoTags:[],weatherTags:[]},N=e=>new URLSearchParams(window.location.search).get(e),D="takeover",M="native_override_desc2",F=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return h("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(h("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{h("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{h("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);h("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),_={NO:"no",SE:"se"},R="cmp:loaded";let q="undefined"!=typeof window?window._tcf_:void 0,$=!1;const B=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=N("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(h("TCF bypass param detected, returning consent: true"),!0):(h("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if($)return null;if(!q)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=q.getConsentedToAllSync();return h(`TCF consented to all is: ${t}`),q.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(h("Getting TCF consent manager..."),window._tcf_)return h("TCF consent manager is already available"),q=window._tcf_,void e(q);h("TCF consent manager is not available");const n=()=>{h("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(q=window._tcf_,e(q)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(R,n),$=!0,t(new Error("Timeout waiting for CMP to load"))},r);h("Listening for CMP loaded event..."),document.addEventListener(R,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.NO;if(t||i)return h("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield F(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!q)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{h("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);q.onTcfReady(()=>{h("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),q.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},U=(e,t,n,...i)=>s(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return h(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=B(e,0,n);return(yield r())?(h(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(h(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),V=(...e)=>s(void 0,[...e],void 0,function*(e=I.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield U(t,n,i,"glimr")}const{getConsentAsync:r}=B(t,0,i);return yield r()}),H=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=I.get();if(!(yield V())||!(null==e?void 0:e.enabled))return void h("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{P.setWithTimestamp(O,{tags:e,tagMappings:t}),n(!0)})})}catch(e){h(`Error during getting glimr data: ${e}`)}else h("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),z={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},W=e=>L.some(t=>e.startsWith(t)),K=e=>e.startsWith("glgc_"),G=e=>e.startsWith("glci_"),J=e=>!W(e)&&!K(e),Q=e=>e===_.NO?"no-sno":"se-generic",Y=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield V(e);if(!(null==i?void 0:i.enabled)||!o)return h("No consent for getting glimr tags."),{};const a=Q(r),s=X(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),X=(e,t)=>{const n=Z();if(!n)return j;const i=((e=[])=>e.filter(W))(n),r=((e=[])=>e.filter(K))(n),o=((e=[],t,n)=>{var i;const r=e.filter(J);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=z[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},Z=()=>{const e=P.getByTimestamp(O);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},ee=()=>{var e;return((e=[])=>e.filter(G))(null!==(e=Z())&&void 0!==e?e:[])},te=()=>(window.apntag||(window.apntag={anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}}),window.apntag),ne=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),ie=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:r}}=I.get(),o=[`${Q(r)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...i?o:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},re="opaque",oe=e=>s(void 0,void 0,void 0,function*(){if(e.type!==re){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ae={get:(e,...t)=>s(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,i=a(t,["timeout"]);if(n)return((e,t,n)=>s(void 0,void 0,void 0,function*(){const i=new AbortController,r=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return oe(n)}finally{clearTimeout(r)}}))(e,i,n);const r=yield fetch(e,i);return oe(r)}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},se="advertory:ppids-cache",de={[_.SE]:`SCH${_.SE.toUpperCase()}-EnvHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-EnvHash`},le={[_.SE]:`SCH${_.SE.toUpperCase()}-UserHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-UserHash`},ce={[_.SE]:`sch${_.SE}-envhash-v3`,[_.NO]:`sch${_.NO}-envhash-v3`},ue={[_.SE]:`sch${_.SE}-userhash-v3`,[_.NO]:`sch${_.NO}-userhash-v3`},pe={[_.SE]:`'sch${_.SE}-iosid-v3'`,[_.NO]:`'sch${_.NO}-iosid-v3'`},ve={[_.SE]:`sch${_.SE}-androidid-v3`,[_.NO]:`sch${_.NO}-androidid-v3`},ge={[_.SE]:"sdrn:schibsted.com:user",[_.NO]:"sdrn:spid.no:user"};class he{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const me=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||h("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},ye=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,i,r,o,a,s,d,l,c,u,p;const v=P.get(se),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||h("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});P.set(se,r)}hashPPIDs(e,t){return s(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ae.post(t,n,e)}catch(e){return h("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ge[t]}:${n}`:null}))(t,n),r=yield(o=t,s(void 0,void 0,void 0,function*(){const e=yield o.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var o;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:i},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},fe=e=>s(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield U(n,r,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([me.processPPIDs(t,null==n?void 0:n.timeout),ye.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){h(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),we=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ye.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]).add(o,pe[e]).add(a,ve[e]).buildEids()}]}},be=()=>{const{ppid1:e,ppid2:t}=me.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},xe=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ye.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]).add(o,pe[e]).add(a,ve[e]).buildRyEids()}}]}}},Ee=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r}=ye.getPPIDs(),o=(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},Ce=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r}=ye.getPPIDs();return(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]).buildRyEids()},Ie=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r}=ye.getPPIDs(),o=(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),Ae=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=ye.getPPIDs();return e}),Se=(e,...t)=>s(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),clearTimeout(d)};r.addEventListener("load",o),r.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),Te={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},ke={ANY_FULLSCREEN:[{width:6,height:6},{width:1920,height:1080},{width:3,height:3}],ABSOLUTE_FULLSCREEN:[{width:6,height:6}],NINESIXTEEN:[{width:1080,height:1920}],FIXED_FULLSCREEN:[{width:1920,height:1080},{width:3,height:3}],FULLWIDTH:[{width:5},{width:400,height:400}],FULLSQUARE:[{width:1080,height:1080}],NATIVE_AD:[{width:1,height:1}],TAKEOVER:[{width:4,height:4}],VELVET_TAKEOVER:[{width:7,height:7}],WALLPAPER:[{width:2,height:2}],COLLAPSE:[{width:2,height:1}]},Pe={wallpaper:1600,"l-format":1600},Oe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&He(e,Te.ANY_FULLSCREEN)},Le=e=>{const{native:t}=e;return!!t},je=e=>He(e,Te.FULLWIDTH),Ne=e=>{const{targetId:t}=e;return t.includes("takeover")||He(e,Te.TAKEOVER)},De=e=>He(e,Te.TAKEOVER),Me=e=>He(e,Te.WALLPAPER),Fe=e=>He(e,Te.COLLAPSE),_e=e=>e.targetId.includes("sponsorstripe"),Re=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},qe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),$e=e=>e.targetId.startsWith("midboard"),Be=e=>e.targetId.includes("widescreen"),Ue=e=>e.width>=1260&&e.width<=1280,Ve=e=>e.width>=1600&&e.width<=1620,He=(e,t)=>{const n=ke[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===r,s=!t.height||t.height===o;return a&&s})},ze="advertory-fullscreen-scroll",We="advertory-fullscreen-scroll-wrapper",Ke="fullscreen-scroll-in-screen",Ge="in-screen",Je=e=>e.includes("snoap.no"),Qe=e=>{var t,n,i,r,o;return!!(null===(o=null===(r=null===(i=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===i?void 0:i.adResponse)||void 0===r?void 0:r.ads[1])||void 0===o?void 0:o.rtb)},Ye=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},Xe=Ye([],()=>{const e=({width:e,height:t})=>{var n;const i=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!i)return;const{clientWidth:r,clientHeight:o}=i,a=e/r,s=t/o;i.style.transform=`scale(${a},${s})`,i.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),Ze=e=>{const t=Ye([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const i=n.contentDocument.createElement("style");i.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(i),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},et=e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");if(!n)return e;n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed";return t.innerHTML},tt=[],nt={},it=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,r=new IntersectionObserver(e=>rt(e,i),{}),o=at(e);r.observe(e),i&&(nt[o]=lt(e,null==t?void 0:t.options))},rt=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=at(e);n?(ot(i,n),st(e,i,t)):(ot(i,n),dt(e,i,t))})},ot=(e,t)=>{var n,i;const r=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;const o=t?"showFullscreen":"hideFullscreen";null===(i=r.contentWindow)||void 0===i||i.postMessage(`advertory:${o}-${e}`,"*")},at=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},st=(e,t,n)=>{e.classList.add(Ge),document.body.classList.add(Ke),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),tt.includes(t)||tt.push(t),n&&window.addEventListener("scroll",nt[t],{passive:!0})},dt=(e,t,n)=>{tt.includes(t)&&(n&&window.removeEventListener("scroll",nt[t]),document.body.classList.remove(Ke),e.classList.remove(Ge),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},lt=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:r=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&ct(e,o,r,0),a.length&&ct(e,a,r,40)}},ct=(e,t,n,i)=>{const r=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-i:(o+t-(a+r))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};function ut(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}ut('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const pt="left",vt={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN"}};let gt=null;const ht=(e,t)=>{let n=e;return n=(e=>{const t=document.createElement("script");return t.textContent="\n window.addEventListener('message', function(event) {\n if (event.data === 'advertory:showFullscreen-'+document.body.id) {\n document.body.style.display = \"block\";\n } else if (event.data === 'advertory:hideFullscreen-'+document.body.id) {\n document.body.style.display = \"none\";\n }\n });\n ",e+t.outerHTML})(e),n=(e=>{const t=document.createElement("script");return t.textContent=`(${Xe})()`,e+t.outerHTML})(n),n=et(n),n=(e=>{if(Je(e))return e;const t=document.createElement("style");return t.textContent="\n .GoogleActiveViewClass, .GoogleActiveViewElement {\n transform: translate(calc(-50% + 50vw), 0);\n width: 100vw !important;\n height: 100vh !important;\n }\n .GoogleActiveViewClass img, .GoogleActiveViewElement img {\n width: 100vw;\n height: 100vh;\n object-fit: cover;\n }\n .GoogleActiveViewClass iframe {\n width: 100vw !important;\n height: 100vh !important;\n }\n ",e+t.outerHTML})(n),(e=>e.includes("adform"))(n)&&(n=(e=>{const t=document.createElement("script");t.textContent='\n var frame = window.frameElement;\n if (frame) {\n frame.style.removeProperty("width");\n frame.style.removeProperty("height");\n frame.contentWindow.document.body.onload = onLoad;\n } else {\n document.body.onload = onLoad;\n }\n \n function onLoad() {\n var iframe = document.querySelector("adfm-ad iframe");\n if (iframe) {\n var image = iframe.contentWindow.document.getElementById("image");\n if (!image) return;\n image.style.backgroundSize = "cover";\n } else {\n var iframe = document.querySelector(".adform-adbox iframe");\n if (iframe) {\n var style = document.createElement("style");\n style.textContent = "#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}";\n iframe.contentDocument.body.append(style);\n iframe.style = "width: 100vw; height: 100vh;";\n } else {\n var observer = new MutationObserver(function(mutations, obs) {\n for (var mutation of mutations) {\n var iframe = mutation.addedNodes[0];\n if (iframe && iframe.nodeName === "IFRAME") {\n iframe.style = "width: 100vw; height: 100vh;";\n iframe.dataset.contents += "<style>#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}</style>";\n obs.disconnect();\n }\n }\n });\n observer.observe(document.body, { childList: true, subtree: true });\n }\n }\n }\n ';const n=document.createElement("style");return n.textContent="\n html, body, adfm-ad, #sf_align, .adform-adbox, .adform-adbox img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover;\n max-width: 100vw;\n }\n ",e+n.outerHTML+t.outerHTML})(n)),(e=>e.includes("529299503"))(n)&&(n=Ze(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>Je(e)?e:e.replace("<iframe ","<iframe onload=\"\n var f = document.querySelector('iframe');\n if (!f) return;\n var s = f.style;\n s.transform = 'scale(' + (window.innerHeight / Number(f.height)).toFixed(2) + ')';\n s.right = parseInt((Number(f.width) - window.innerWidth) / 2) + 'px';\n s.bottom = parseInt((Number(f.height) - window.innerHeight) / 2) + 'px';\n s.position = 'relative';\n \" "))(n)),Je(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</iframe>","</iframe><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),(e=>e.includes("kreateam.io"))(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</div>","</div><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),Qe(t)&&(n=(e=>{const t=document.createElement("script");t.textContent='var frame = window.frameElement;\n if (frame) {\n frame.style.width = "100vw";\n frame.style.height = "100vh";\n }';const n=document.createElement("div");return n.innerHTML=e,n.appendChild(t),n.innerHTML})(n)),n},mt=()=>{gt=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,r=document.documentElement;r.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),r.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),r.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},yt=()=>{gt||(gt=window.requestAnimationFrame(mt))},ft=(e,t)=>{var n,i,r,o,a;const{pageContext:{countryCode:s,deviceType:d}}=I.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:r="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=i/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${r} 0px,\n ${r} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${r} calc(50% + ${l}px),\n ${r} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==c?void 0:c.overlayStyles)&&void 0!==i?i:{},d);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;it(p,t),u.className=ze,it(p,t),u.className="advertory-fullscreen-scroll";const v=He(e,Te.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=We,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(r=null==c?void 0:c.annonsLabel)&&void 0!==r?r:vt[s].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===pt&&(u.dataset.moveCogwheelToTheLeft="true"),yt(),window.addEventListener("resize",yt),null===(o=window.visualViewport)||void 0===o||o.addEventListener("resize",yt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",yt)},wt=e=>{if(!(null==e?void 0:e.classList.contains(ze)))return;e.classList.remove(ze),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(We))&&(t.classList.remove(We),t.classList.remove(Ge))};var bt=Object.freeze({__proto__:null,createFullscreenScrollAd:ft,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=Qe(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[i].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,i=Qe(e)?1:0,r=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;r&&(r.banner.content=t)})(e,ht(t,e))},undoFullscreenScrollContainer:wt});const xt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},Et=(e,t,n)=>{var i,r,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),xt(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},Ct="ad-loaded",It="disable-cogwheel",At=()=>null!==N("disable_prebid"),St="0123456789abcdefghijklmnopqrstuvwxyz",Tt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=St[Math.floor(36*Math.random())]}return t},kt=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},Pt=e=>{window.apntag.anq.push(e)},Ot=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Lt=new Promise(e=>{if("undefined"==typeof document||!document.hidden)return void e();const t=()=>{document.hidden||(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t,{once:!0})}),jt=(e,t,n)=>s(void 0,void 0,void 0,function*(){yield Ot,yield Lt;new IntersectionObserver((t,i)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),i.unobserve(e),i.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),Nt=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:r},fullscreenScroll:o,appearanceConfig:a,placements:s}=I.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=I.getHandlers(),{getConsentAsync:l}=B(t,0,n),c=yield l(),u=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const r=te(),{prebid:{relevantCallbackTimeout:o}={}}=I.get(),a="relevantCb"===i&&o?o:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,r.loadTags&&r.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=te(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=te();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:g=""}={},keywords:m}=v;(()=>{const e=ne();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{h("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return h("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=ne();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};h("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},xe(n)),ie(m,g))),h("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},xe(n)),ie(m,g))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{h("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:u.getCancel()}),u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e)),u.cleanup()}},customNativeRender:e=>{Dt(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const v=p.id,g=document.getElementById(v);if(!g)return;const m=null===(t=null==s?void 0:s[r])||void 0===t?void 0:t.find(e=>e.targetId===v),y=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[r])&&void 0!==d?d:0,f=Object.assign(Object.assign({},u),{targetId:v,banner:!0});h("prebid directRenderFn ad info",{targetId:v,width:null==u?void 0:u.width,height:null==u?void 0:u.height,adId:null==u?void 0:u.adId,creativeId:null==u?void 0:u.creativeId}),jt(g,y,()=>{var e;const t=c(l),n=Oe(f);if(h("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)h("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),ft(f,o),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const i=new MutationObserver(()=>{n()&&i.disconnect()});i.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),i&&g.style.setProperty("--advertory-political-box-offset","30px");else{h("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),wt(g),null===(e=null==g?void 0:g.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(g.style.width=`${n}px`)}g.classList.add(Ct),(null==u?void 0:u.creativeId)&&Et(v,g,Number(null==u?void 0:u.creativeId))})}}),h("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e))}},customNativeRender:e=>{Dt(e,d)},directRenderFn:()=>{}})})}),Dt=(e,t)=>{var n;const{divId:i,native:r,bid:o}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:r,targetId:s},I.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")},Mt=/_\d+$/,Ft=e=>e.replace(Mt,"");let _t="";const Rt=new Map,qt=e=>{const{pageSetup:{tag:t}={}}=I.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(_t!==window.location.pathname&&(Rt.clear(),_t=window.location.pathname),e.map(e=>{var t;const n=Ft(e.invCode),i=null!==(t=Rt.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=I.get();return`${e}-${t}`})()}-count`]=i,Rt.set(n,i+1),e})):e},$t=e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e},Bt="advertory-wallpaper-background",Ut="advertory-with-horseshoe",Vt=()=>{const e=document.querySelector(`.${Bt}`);e&&e.remove()},Ht=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Bt}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},zt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,Wt=e=>zt.test(e),Kt=e=>e.startsWith("wallpaper:color:"),Gt=e=>{const t=document.querySelector(`.${Bt}`);t&&(t.style.backgroundImage=`url(${e})`)},Jt=e=>{const t=document.querySelector(`.${Bt}`);t&&(t.style.backgroundColor=e)};var Qt=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(Ut),n.classList.add(Ut))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{Vt();const e=document.createElement("div");e.classList.add(Bt),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--advertory-header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(Ht(n),window.addEventListener("scroll",()=>Ht(n)))})(n),e()},isShortWallpaperColorMessage:Kt,isShortWallpaperUrlMessage:Wt,removeWallpaperBackground:Vt,setWallpaperBackgroundColor:Jt,setWallpaperBackgroundImage:Gt});const Yt=e=>{if("0"===N("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&Vt())},Xt=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},Zt=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},en=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,i=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${i}px`)},tn=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const nn=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return s(this,void 0,void 0,function*(){const t=tn(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>s(void 0,void 0,void 0,function*(){const t=tn(e);if(!t)return null;try{return yield ae.get(t,{timeout:5e3})}catch(e){throw h("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,i,r;const o=((e,t)=>{const{sections:n}=e,i=a(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?v(i,r):i})(t,null!==(r=null===(i=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===i?void 0:i.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>v(t,e))(e,o)}getConfig(e){return s(this,void 0,void 0,function*(){var t,n;const i=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(i))return i;try{const e=yield this.fetchEditableConfig(i);return e?(this.lastFetchedPageType=null===(n=null===(t=i.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,this.resolveRemoteConfig(i,e)):i}catch(e){return h("Error fetching S3 config, using site config",{error:e}),i}})}resolveUpdatedConfig(e){return s(this,void 0,void 0,function*(){var t,n,i,r;if(!this.localSiteConfig)return;if(x(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const o=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch;if(o===this.lastFetchedPageType)return;const a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(r=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===r?void 0:r.pageTypeToFetch)!==o)return;if(!e)return;return this.lastFetchedPageType=o,this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void h("Error fetching updated S3 config, keeping current config",{error:e})}})}},rn=nn.getConfig.bind(nn),on=nn.resolveUpdatedConfig.bind(nn),an=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=T.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=i},sn=()=>{Vt();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{Yt(e.id),an(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),i=null==t?void 0:t.getAttribute("data-probable-width");n&&i&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",i+"px"))})(e.id),e.innerHTML="",e.id=$t(e.id),t.push(e.id)}),Pt(()=>window.apntag.clearRequest()),t},dn=e=>s(void 0,void 0,void 0,function*(){const t=yield on(e);var n;t?(I.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):A(null!=e?e:{})}),ln="mobile",cn="tablet",un="desktop",pn="web_desktop",vn="web_phone",gn="wde",hn="wph",mn="noGroupedPlacements",yn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},fn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},wn=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:i,pageContext:{deviceType:r}}=I.get(),o=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===cn&&0===i.length?e[un]:i})(n,r),a=o.filter(fn),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=yn(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),o=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${r}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(o),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const r=bn(e,t,n),o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${Tt(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),o&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&T.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},r),{targetId:s})});return qt(l)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(d)},bn=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:o||r},xn=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=I.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=$t(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes($t(e.targetId)));return n})(e,i),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has($t(e.targetId))))(e,new Set([...s,...r]));return Object.assign(Object.assign(Object.assign({},a),o),{[mn]:d})},En=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:r}=window,[o,a]=t;if(!i.dataset.lockedsize&&a&&o)i.style.width=`${o}px`,i.style.height=`${a}px`,n&&(r.resizeAd(i.id,[o,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=o.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&r.resizeAd(i.id,[e,t])}},Cn=["netboard","board"];class In{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:r}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",r),o&&s.searchParams.append("urlData",o),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return s(this,void 0,void 0,function*(){var t,n,i;const r=yield this.identityFacade.getIdentityUser(),o=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",a=(null==r?void 0:r.userId)?String(r.userId):"",s=this.buildUrl(e,{envId:o,spid:a});try{h("Starting fetching DrEdition ad from URL:",s);const e=yield ae.get(s);return h("Fetch operation completed successfully."),e}catch(e){h("Error during fetch operation:",e)}return null})}}class An{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:r,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:r,utm_medium:s},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),r=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{r.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const r=this.getDrEditionUTMParams(e,t),o=new URL(i);return Object.entries(r).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return s(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:r,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:r,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:r}=new URL(n);if(!i.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const o=r.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const Sn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):h("Dr. Edition container does not have a parent element, cannot remove height lock.")};class Tn{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return s(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:o=!1}=t,a=e.querySelector(r);if(!a)return void h(`Container with selector "${r}" not found.`);const s=yield this.drEditionService.fetchData(t);return(null==s?void 0:s.itemId)||o?!(null==s?void 0:s.itemId)&&o?(h("No Dr. Edition ads available to render. Collapsing whole placement."),Yt(e.id),void Sn(a)):((null==s?void 0:s.itemId)&&o&&(h("Dr. Edition ad available to render as a Xandr backfill."),Xt(e.id)),void(s?(s.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(s.css,"style"),yield this.rendererManager.render(a,s,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(s,t),Sn(a),this.drEditionAds.push(s),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(s.itemId),this.observeAdView(e,s,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):Sn(a))):(h("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void Sn(a))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";Xt(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let r=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(r&&clearTimeout(r),r=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{o.observe(e)}),!0}}const kn=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},Pn=e=>e===ln,On=853,Ln=767;class jn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return s(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:i}=B(n.tcf,n.isMobileApp,n.country),r=yield i(),o=Pn(n.device)?t.mobileHTML:t.desktopHTML,a=r?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var i,r,o;e.search=null!==(o=null===(r=(i=this.newsroomStrategy).getUrlSearchParams)||void 0===r?void 0:r.call(i,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class Nn{constructor(e){this.strategy=e}handle(e,t){return s(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return s(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,n=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!n)try{yield Se(t)}catch(e){h("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return s(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,r=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==r||r.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==r?void 0:r.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,r;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",o),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(r=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===r||r.call(i,s),!0))}}class Dn{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,r=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const p=this.getEventInput(e,t,n,"view");(null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)?null===(o=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===o||o.call(r,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,p):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,p)})}trackContentClick(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(r=(i=this.pulse).trackLegacyClickUIElement)||void 0===r||r.call(i,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class Mn extends Dn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(o=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===r?void 0:r.call(i,l))&&void 0!==o?o:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:p,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class Fn extends Dn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulseObjectId)||void 0===o?void 0:o.call(r))&&void 0!==a?a:p,"@type":"UIElement",position:p,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:p,"@type":v,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var r,o,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:p,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),f=this.getTeaserElementText(e,"image"),w=null!==(s=null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getUrlWithParams)||void 0===o?void 0:o.call(r,t,n))&&void 0!==a?a:v)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:p,link:w,placement:n.editionName,subtitle:y,time:h,title:m,type:i,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const _n={FRONT:"front"},Rn=e=>s(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),qn={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return s(this,void 0,void 0,function*(){yield import("./styles-DtUKhhz1.js")})}})}};class $n{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){yield s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const a=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=a)||l.forEach(e=>{qn[e](c)});const u={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},p=yield Rn(u);p.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(p,a)}),p.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),p.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield p.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===_n.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),r=i.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const Bn="https://www.aftonbladet.se/video-player-extras/latest/";class Un{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${Bn}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${Bn}external-link.js`]:{name:"ExternalLink"}}};yield Rn(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const Vn=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class Hn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},Vn(e)?e:{}),{provider:Object.assign(Object.assign({},Vn(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${t}`]},requestSettings:{}}}},d=yield Rn(a);d.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===_n.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class zn{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const Wn=(e,t,n)=>{const{publisher:i,pageType:o,country:a}=e,s={[r.VG]:new An,[r.E24]:new $n,[r.AFTONBLADET]:new Un,[r.SVD]:new Hn}[i]||new zn,d=new(a===_.SE?Mn:Fn)(n,s,o),l=new In(t,n),c=new jn(s,d),u=new Nn(s);return new Tn(l,c,u,d)},Kn=()=>s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class Gn{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return s(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return h("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return s(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const Jn=(e,t,n)=>{const{wrapperSelector:i}=e.drEditionConfig.options,r=document.querySelectorAll(i),o=new IntersectionObserver((i,r)=>((e,t,n,i,r)=>{const o=Wn(n,i,r);e.forEach(e=>{var i,r;if(!e.isIntersecting)return;const a=e.target,s=null!==(i=a.dataset.editionName)&&void 0!==i?i:"",d=null!==(r=a.dataset.pulseColumnname)&&void 0!==r?r:"",l=Number(a.dataset.pulsePrimaryposition)||0;o.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:s,columnName:d,primaryPosition:l})),t.unobserve(a)})})(i,r,e,t,n),{rootMargin:"400% 0px"});r.forEach(e=>o.observe(e))},Qn=()=>s(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),Yn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Xn=[],Zn=(e,t)=>s(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:r,drEdition:o,pageContext:{deviceType:a,publisher:s,pageType:d,countryCode:l,isMobileApp:c}}=e;if(!(yield U(r,c,l,"handleDrEditionBackfill")))return;const u=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:o,drEdition:a}=e,s=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,d=o[r]||o.desktop,l=$t(t.targetId),c=d.find(e=>e.targetId===l),u=Cn.some(e=>l.startsWith(e)),p=Xn.includes(l),v=(null===(i=null==c?void 0:c.drEdition)||void 0===i?void 0:i.editionName)||s;return c&&u&&!p&&v?(Xn.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!u)return;if(!(null==i?void 0:i.instance))return void h("Pulse has not been passed as a prop, aborting");const p=yield Kn(),v=new Gn(p),g=Wn({publisher:s,pageType:d,country:l},v,null==i?void 0:i.instance),m=document.getElementById(t.targetId);if(!m||!o)return;m.classList.value="";const y=document.createElement("div");y.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==u?void 0:u.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:r,isMobileApp:c,country:l,renderAsBackfill:!0};yield g.fetchAndRenderAd(m,f)}),ei=e=>s(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield U(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield Kn(),i=new Gn(n);Jn({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),ti=(e,t)=>{var n,i,r;if(!Yn())return void h("Ad block not enabled, Dr. Edition backfills will not be rendered");h("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(i=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===i?void 0:i[o],l=null!==(r=null==d?void 0:d.map(([e])=>e))&&void 0!==r?r:[],c=new IntersectionObserver((t,n)=>s(void 0,void 0,void 0,function*(){for(const i of t){if(!i.isIntersecting)continue;const t=i.target;n.unobserve(t),yield Zn(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!l.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&c.observe(t)})},ni="collapseAd",ii="hideAd",ri="resizeAd",oi="renderDrEditionFallback",ai="wallpaperImageUrl",si="wallpaperColor",di="velvet",li=[ri,ai,si,ni,ii,oi,di];let ci;const ui=e=>{if(!["http://acdn.adnxs-simple.com","https://acdn.adnxs-simple.com","https://crcdn01.adnxs-simple.com","http://crcdn01.adnxs-simple.com","https://acdn.adnxs.com","http://acdn.adnxs.com","https://adsdk.microsoft.com","https://adsdk.bing.net","https://adsdkprod.azureedge.net"].includes(e.origin.trim()))return;const{data:t}=e;if(!t)return;const n=(e=>{if("object"==typeof e)return e;if(Wt(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:ai,wallpaperImageUrl:t}}if(Kt(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:si,wallpaperColor:t}}if(e.startsWith(oi)){const t=e.split(":")[1];return{name:oi,targetId:t}}if(e.startsWith(ni)||e.startsWith(ii)){const t=e.split(":")[1];return{name:ni,targetId:t}}if(e.includes("name")&&li.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!li.some(e=>n.name===e))return;const{name:i,targetId:r,wallpaperImageUrl:o,wallpaperColor:a,cmd:s,size:d}=n;i===di&&s&&(s.includes("noScroll")&&(ci=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(s.includes("close")||s.includes("ended"))&&(null==ci||ci(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==ni&&i!==ii||!r||Yt(r),i===ri&&r&&s&&En(r,s),i===oi&&r&&(Yt(r),Zn(I.get(),{targetId:r})),"resizeMediationAd"===i&&r&&d&&En(r,d,!0),i===ai&&o&&Gt(o),i===si&&a&&Jt(a)},pi=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=I.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},o=e=>{Xt(e),Pt(()=>i.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-DEJ_hkCf.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-DEJ_hkCf.js");yield t(e,r,o,()=>s(void 0,void 0,void 0,function*(){if(!T.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Qt});t(e)}))})}},vi=(e,t)=>s(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield jt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Re(t)&&i?(h(`loading finn blink ad for blink only placement for ${t}`),void pi().withFinnBlinkAd(t)):Re(t)?(h(`loading finn blink ad with full ads chain for ${t}`),void pi().withFullAdsChain(t)):void Pt(()=>(h("core showTag",{id:t}),e.showTag(t)))})(window.apntag,(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),gi=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),hi=new Map,mi=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],yi=".brandstudio-premium-content-widget",fi=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),wi=({adWrapper:e,placementContainer:t})=>{const n=fi({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),an(i=t),i.innerHTML=""},bi=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},xi=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=I.get(),i=mi.includes(n)&&Boolean(t.closest(yi));const r=i?t.closest(yi):null,o=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!i&&!a||i&&!r)return;if(a)return bi(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=r;s&&d.contains(s)?bi(s):d.hasAttribute("style")&&bi(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},Ei=(e,t,n,i,r,o)=>{var a;const s=performance.now(),d=null!==(a=hi.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,r)&&n<0;s-d>=r&&l&&(hi.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=I.get(),r=null==n?void 0:n.parentElement;r&&n&&wi({adWrapper:r,placementContainer:n}),Pt(()=>{e.setKeywords([t],{[`${Q(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},Ci=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:r,boundingClientRect:o}=e;t(window.apntag,r.id,o.y,n,i,r)})})(e,Ei,t,n),gi(300));i.observe(e)},Ii=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},Ai=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Si=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},Ti=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=I.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),ji(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},ki=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;Si(r,o)&&i&&(en(i.targetId),n.length&&r.classList.remove(...n),ji([i],t))}},Pi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=I.get();t&&(e.forEach(({targetId:e})=>{const t=Oi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&ki(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),ki(e,!1,t))};n.persisted&&(Ai()?window.addEventListener("scroll",i,{passive:!0}):ki(e,!1,t))})})(e,n))},Oi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},Li=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Oi(t)),r=(e=>1===e[0]&&1===e[1])(i),o={sizes:[i],allowedFormats:r?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return r||(o.native=void 0),o},ji=(e,t=!1)=>{const{queryConfig:{batchSize:n=E}={}}=I.get(),i=e.map(({targetId:e})=>e),r=Ii(i,n);if(t)for(const t of e){const e=Li(t);window.apntag.modifyTag(t.targetId,e)}for(const e of r)Pt(()=>window.apntag.refresh(e))},Ni=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Di=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=B(t,0,i);if(!(yield r()))return;const o=Ni("_pulse2data");return o?o.split(",")[9]:void 0}),Mi={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Fi="takeover-displayed",_i="takeover-visit-count",Ri=14400,qi=()=>{const e=Ni(_i);return e?parseInt(e):0},$i=()=>{const e=qi(),{takeover:{options:{cookieCapTime:t=Ri}={}}={}}=I.get(),n=document.location.hostname;window.document.cookie=`${_i}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Bi=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=I.get();return"0"!==N(D)&&("1"===N(D)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=I.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Fi;return"true"===Ni(n)})())&&(!t||Ui()))},Ui=()=>{const e=qi();return 0===e?($i(),!1):1===e},Vi=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Hi=()=>{const{takeover:e}=I.get();return Boolean(null==e?void 0:e.topscroller)},zi=e=>{const{width:t,height:n}=e;return Vi(t,n)?Mi.SPLASH:He(e,Te.VELVET_TAKEOVER)?Mi.VELVET:Hi()?Mi.TOPSCROLLER:Mi.WELCOME_PAGE},Wi=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Fi,cookieCapTime:n=Ri}={}}={},pageContext:{isMobileApp:i,countryCode:r},tcf:o}=I.get(),a=yield U(o,i,r,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Ki=e=>{var t,n;const i=!!(null===(n=null===(t=I.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ne(e)&&i},Gi=(e,t)=>{var n;if(t===Mi.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===Mi.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Ji=(e,t)=>{t!==Mi.SPLASH?(e=>{var t,n;const i=null===(t=I.get().pageSectionsSelectors)||void 0===t?void 0:t.header,r=null===(n=I.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||r)return;const o=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=De(e)?"60svh":`calc(100svh - ${l}px)`,u=De(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),s.style.setProperty("height",c,"important"),d.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=I.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),i=document.querySelector(`#${e.targetId}`);if(!n||!i)return;const r=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",r,"important")})(e)},Qi=Ye([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});var Yi=Object.freeze({__proto__:null,addTakeoverCookie:Wi,adjustTakeoverHeight:Ji,canDisplayTakeover:Bi,getProperWelcomePageConfig:Gi,getTakeoverVariant:zi,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){Ki(e)&&(yield Wi())}),incrementArticleVisitCount:$i,isSplashVariant:Vi,isTopscroller:Hi,scaleAd:Qi,shouldAddTakeoverCookieForNotShownAd:Ki});const Xi=e=>`externalImpId:'${e}'`,Zi=(e,t)=>t?Object.assign(Object.assign({},e),{"aa-sch-ssa-native-ad":"true","aa-sch-ssa-format":"NATIVE_CONTENT","aa-sch-ssa-market":"XNO","aa-sch-ssa-cat":["ssa_1","ssa_2","ssa_3","ssa_4","ssa_5","ssa_6","ssa_7","ssa_8","ssa_9","ssa_10","ssa_11","ssa_12","ssa_13","ssa_14","ssa_15","ssa_16","ssa_17","ssa_18","ssa_19","ssa_20","ssa_21","ssa_22","ssa_23","ssa_24","ssa_25","ssa_26","ssa_27","ssa_28","ssa_29","ssa_30"]}):e,er=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=I.get(),{targetId:r,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Bi())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],i=Array.isArray(n)?n.filter(e=>e!==Mi.TOPSCROLLER):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),g=Object.assign({invCode:d,sizes:o,targetId:r,keywords:Zi(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),m=(e=>{var t,n;const i=null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId;return i?(h("Pulse state pageViewId is:",i),i):(h("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&m&&(h("External Impression ID assigned to defineTag:",Xi(m)),g.externalImpId=Xi(m));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(g.native=y),g},tr=e=>!e.includes("takeover")||Bi(),nr=e=>{const{source:t}=e;return"csm"===t},ir={nativeAd:e=>Le(e)&&!_e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:je,fullscreenScroll:Oe,topscroller:e=>Ne(e)&&Hi(),splash:e=>Ne(e)&&Vi(e.width,e.height),welcomePage:Ne,wallpaper:Me,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Ue,hFormat:Ve,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Ve(e)&&!Ue(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ne(e),widescreen:Be,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:_e,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!qe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!$e(e),outstream:e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,netboard:e=>(e=>e.targetId.startsWith("netboard"))(e)||(e=>e.targetId.startsWith("board"))(e),panorama:qe,midboard:$e},rr=({adObj:e,preferredTestIdData:t})=>{var n,i;const r=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!r)return;const o=null===(i=document.querySelector(`#${r}`))||void 0===i?void 0:i.parentElement;if(!o)return;if(((e,t)=>{var n,i,r,o;const a=null===(o=null===(r=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===r?void 0:r[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(r,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,i;for(const[r,o]of Object.entries(ir))if(o(e)){if("nativeAd"===r){const o="default";t.dataset.testid=`${r}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:o}`;break}t.dataset.testid=r;break}})(e,o)},or=e=>{var t;return(null===(t=Object.entries(ir).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},ar=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=I.get(),n=Q(t),i=e[`${n}-targetid`],r=i?$t(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[r]})},sr=e=>{const{pageContext:{countryCode:t}}=I.get(),n=Q(t);return Object.assign(Object.assign(Object.assign(Object.assign({},e),e[`${n}-geo`]&&{[`${n}-geo`]:["geo-test-value"]}),e[`${n}-geofence`]&&{[`${n}-geofence`]:["geofence-test-value"]}),e[`${n}-weather`]&&{[`${n}-weather`]:["weather-test-value"]})},dr=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const i=n.split(",")[0].split(":")[0],r=e.find(e=>e.invCode===i),o=document.querySelector(`[id^=${null==r?void 0:r.targetId}]`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{var e;const t=new URLSearchParams(window.location.search).get("scrollToDrEditionPlacement");if(!t)return;const n=null!==(e=document.querySelector(`[id*="${t}}"]`))&&void 0!==e?e:document.querySelector(`a[aria-label*="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})()},lr=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});ut(".advertory-brandmetrics-survey{width:100%}");const cr="advertory-brandmetrics-survey",ur="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",pr=()=>s(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),vr={pageContext:{publisher:"aftonbladet",countryCode:_.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},gr={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},hr=e=>(null==e?void 0:e.parent)?[...hr(e.parent),e.shortPath||"unknown"]:[],mr=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=hr(e);return gr[n]||"ovrigaavdelningar"})(e)}_{position}`,yr={aftonbladet:vr},fr={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:mr(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:hr(e).join(":")}}},wr=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},br=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),xr="se-generic",Er="aa-sch",Cr="kv_",Ir="pause",Ar="{deviceType}",Sr="{position}",Tr="afp_",kr=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),Pr="1-1",Or="16-9",Lr="3-4",jr="9-16",Nr="responsive",Dr={[Pr]:1,[Or]:1.78,[jr]:.56,[Nr]:1},Mr={[Pr]:1,[Or]:1.78,[Lr]:1.33,[jr]:.56},Fr=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},a=un===n?gn:hn,s=r.replace(Ar,a);return(e,n)=>{if(e===Ir)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Sr,Ir).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&kr.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(Ar,a).replace(Sr,e)}return s.replace(Sr,e)}},_r=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Rr=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},qr=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},$r=()=>{const e=null!==(t=qr()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=qr()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Br=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Ur=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield U(n,e.isApp,r,"video"))?"1":"0",l=yield pr(),c=yield Ie(r),u=yield Di({tcf:n,pageContext:s}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>_r(Mr,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?_r(Dr,Number(m.toFixed(2))):Nr;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Er}-country_code`]:r,[`${Er}-publisher`]:i,[`${Er}-supply_type`]:(y=e.deviceType,y===un?pn:vn),[`kw_${Er}-page_type`]:"collection",[`${Er}-page_type`]:"collection",[`${xr}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${xr}-page`]:"index",[`${xr}-page`]:"index",[`${xr}-screenheight`]:String(window.screen.height),[`${xr}-screenwidth`]:String(window.screen.width),[`${xr}-viewportheight`]:String(a),[`${xr}-viewportwidth`]:String(o),[`${xr}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${xr}-mobile-os`]:kn(),[`${xr}-audience`]:void 0,[`${xr}-externalid_src`]:$r(),[`${xr}-tags`]:e.tags,[`${xr}-articleid`]:p,"article-id":p},yield Y(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${xr}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Br()).some(e=>e.includes(Cr))&&(()=>{const e=Br(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Cr)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":d,"kw_aa-sch-cmp_advertising":d,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Vr=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],Hr=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],zr=["external_uid","gdpr","gdpr_consent","eids","article-id"],Wr=(e,t)=>{const n=[...Vr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||zr.includes(e)?e:`kw_${e}`,t]))},Kr=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Hr.includes(e))),Gr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i,r,o;const a=(e=>{var t;yr[e]||m(`[video] No config found for publisher "${e}"`);return null!==(t=yr[e])&&void 0!==t?t:vr})(e.publisher),s=(e=>{var t;return null!==(t=fr[e])&&void 0!==t?t:fr.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Ur({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Rr(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:wr(e.startMode)}}),Jr=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=Fr(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Tr)?`${Tr}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,r),"se-generic-playback-method":br.get(s),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Wr(o,n)),Kr(o)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Qr=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield Gr(e,t);return Jr(n,e)}),Yr={plcmtcnt:1,context:1,contextsubtype:10,plcmttype:1,assets:[{id:1,title:{len:100},required:0},{id:2,img:{type:1,hmin:10,wmin:10},required:0},{id:3,img:{type:3,hmin:10,wmin:10},required:0},{id:4,data:{type:2},required:0},{id:5,data:{type:12},required:0}],ver:"1.2",eventtrackers:[{event:1,methods:[1,2]}]},Xr={no:"NOK",se:"SEK"},Zr={no:"no",se:"sv"};class eo{buildFetchObject(e,t,n,i){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:r},pageOptions:o}=i,{invCode:a,xandrPlacementId:s}=e,d=yield pr(),l=(c=Object.assign(Object.assign({},t),n),Object.entries(c).flatMap(([e,t])=>void 0===t?[]:Array.isArray(t)?t.map(t=>`${e}=${t}`):[`${e}=${t}`]).join(","));var c;const u=new URL(window.location.href),p=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(Yr),ver:"1.1"}})(e),v=(e=>{const{sizes:t,allowedFormats:n}=e;if((null==n?void 0:n.includes("banner"))&&t&&0!==t.length)return{format:t.map(([e,t])=>({w:e,h:t})),w:t[0][0],h:t[0][1]}})(e);return{id:Tt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(o.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Zr[r]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield Di(i),ext:{consent:d.gdpr_consent||"",eids:Ce(r)}},at:1,cur:[Xr[r]],source:{tid:Tt(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,i){return s(this,void 0,void 0,function*(){try{h("Starting fetching Studio ad from Xandr:",ur);const r=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${ur}?${a.toString()}`:ur,d=yield this.buildFetchObject(e,t,n,i),l=yield ae.post(s,r,d);return h("Fetch operation completed successfully.",l),l}catch(e){h("Error during fetch operation:",e)}return null})}}const to=0,no=3,io=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(s),r.classList.add(d),t.dataset.adType=n},ro={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},oo=(e,t)=>{ao(e,t),lo(e,t)},ao=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const i of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])uo(i)}),t.dataset.tracked="true")})},so=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(co):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},lo=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:un])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!i)for(const n of t)if(n.isIntersecting){i=!0,so(e),c.disconnect();break}},d);c.observe(r)},co=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?uo(e):window.navigator.sendBeacon(e)},uo=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},po=e=>e.reduce((e,t)=>{if(!t.serverSidePlacement)return e.clientSidePlacements.push(t),e;const n=Math.random()<.5;return t.keywords=Object.assign(Object.assign({},t.keywords),{"aa-sch-prerenderer":n?"true":"false"}),n?e.serverSidePlacements.push(t):e.clientSidePlacements.push(t),e},{clientSidePlacements:[],serverSidePlacements:[]}),vo=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[r],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void h(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},gi(s)).observe(d)});const{prepareTag:l}=I.getHandlers(),c=T.getData("alertoryConfigKeywords"),u=null!==(i=l(er(e)).keywords)&&void 0!==i?i:{},p=new eo,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===ln?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===to){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(d,v,r),v.adType===no&&(io(t.pageContext.publisher,d,ro.NATIVE_AD,t.pageContext.pageType),oo({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,a;let s;(null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),Et(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),go=(e,t)=>{e.forEach(e=>vo(e,t).catch(e=>{h("Failed to handle server-side ad:",e)}))},ho="_adchoices_non_rtb",mo=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=ho}={}}={}}=I.get();return`${Ft(e)}${t}`},yo=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>Yt(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:mo(e.invCode)})))(e)),fo=e=>`${Math.max(0,Math.round(e))}px`,wo=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},bo=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},xo=()=>{const{pageSectionsSelectors:e}=I.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=wo(t);bo({"--advertory-header-height":fo(n)})})(e.header)};let Eo,Co=[];const Io=["takeover","wallpaper"],Ao=e=>{const t=(e=>{var t;const n=T.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:y}=e,f=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:E;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:f})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.10.2",siteConfig:e,alertoryConfig:t}},So=()=>s(void 0,void 0,void 0,function*(){const{pageOptions:e}=I.get(),{preparePageOptions:t}=I.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=I.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),i=yield s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=I.get();return(yield U(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),r=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),i));(e=>{const t=T.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=sr(e);T.setData("alertoryConfigKeywords",n)})(r.keywords),Pt(()=>Eo.setPageOpts(r))}),To=e=>s(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=I.get(),o=yield U(n,i,r,"loadPlacements"),a=yo(e,o);ko(a);(null==t?void 0:t.enabled)&&o&&!At()?(h("core loadPlacements prebid enabled"),yield Nt()):(h("core load tags invoked without prebid enabled"),Po(a))}),ko=e=>{const{prepareTag:t}=I.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const i=t.findIndex(t=>e.targetId.includes(t)),r=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===r?-1:-1===i&&-1!==r?1:i-r})})(e).forEach(e=>{h("core defineTags",{placement:e});const i=er(e);if(tr(e.targetId)){const r=t(i),o=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:r}=e;return{adTypes:t,invCode:n,keywords:ar(i),sizes:r}})(r);n.push(o),Pt(()=>(h("core defineTag - add to the queue",{placement:e,preparedTag:r}),Eo.defineTag(r)))}}),(e=>{var t,n,i;(null===(i=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===i?void 0:i.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},Po=e=>{const t=e.filter(({targetId:e})=>tr(e)).map(({targetId:e})=>e);t.length&&Pt(()=>(h("core loadTags",{placementsIdsToLoad:t}),Eo.loadTags([...t])))},Oo=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=I.get(),{requestThreshold:r,refresh:o}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[i];a&&(h("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:r,deviceDefaultThreshold:s}),yield vi(a,null!=r?r:s)),a&&(null==o?void 0:o.scroll)&&(h("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),Lo=e=>e.some(({targetId:e})=>Io.some(t=>e.includes(t))),jo=e=>s(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=E}={},pageContext:{deviceType:i}}=I.get(),r=xn(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...Ii(s,n)]})(i);for(const e of r)Lo(e)?(h("core loadAds without lazy loading",{placementsToLoad:e}),yield To(e)):e.length&&(h("core loadAds with lazy loading",{placementsToLoad:e}),yield No(e));const{finnBlink:o}=I.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-DEJ_hkCf.js");yield e(n)}}),No=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=I.get(),i=[];if(!t)return h("lazy load is not enabled",{placements:e}),void(yield To(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{h("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&To(e),h("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(h("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),Do=()=>s(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=I.getHandlers(),n=[];Pt(()=>{Eo.onEvent("adRequested",()=>{e.adRequested()}),Eo.onEvent("adAvailable",n=>s(void 0,void 0,void 0,function*(){var i,r,o,a,s,d;h("core adAvailable start",{placementsAvailable:Co,adObj:n,isFullscreenScrollAd:Oe(n),isFinnBlink:Re(n.targetId),isNativeAd:Le(n),isMediation:nr(n),isTakeoverAd:Ne(n),isCollapseAd:Fe(n),isWallpaperAd:Me(n)});const l=null===(o=null===(r=null===(i=null===window||void 0===window?void 0:window.apntag)||void 0===i?void 0:i.requests)||void 0===r?void 0:r.tags[n.targetId])||void 0===o?void 0:o.adResponse.ads;if(nr(n)&&l&&(null===(a=l[1])||void 0===a?void 0:a.rtb)&&(n.banner=null===(d=null===(s=l[1])||void 0===s?void 0:s.rtb)||void 0===d?void 0:d.banner),Oe(n)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return bt});e(n)}const{widescreenSwitching:c,wallpaper:u,fullscreenScroll:p}=I.get();if(Be(n)&&(null==c?void 0:c.enabled)){const{initWidescreenSwitching:e}=yield import("./index-BOILkVtF.js");e()}if(Oe(n)&&!Re(n.targetId)){h("core adAvailable: creating fullscreen scroll container",{targetId:n.targetId,width:n.width,height:n.height,bannerWidth:n.banner&&"object"==typeof n.banner?n.banner.width:n.banner,bannerHeight:n.banner&&"object"==typeof n.banner?n.banner.height:void 0});const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return bt});e(n,p)}if(!Le(n)||nr(n)||Re(n.targetId)||null==t||t(n,I.get()),Ne(n)&&!Fe(n)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-DbU616q2.js");e(n.targetId),yield t(n)}if(Me(n)&&(null==u?void 0:u.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return Qt});e(()=>Pt(()=>window.apntag.showTag(n.targetId)),u),T.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(n)&&T.setData("horseshoe",{isAvailable:!0}),e.adAvailable(n);const v=Co.find(({targetId:e})=>e===n.targetId);v&&(yield Oo(v,n),Co=Co.filter(e=>e.targetId!==v.targetId)),h("core adAvailable stop",{placementsAvailable:Co,adObj:n,isFullscreenScrollAd:Oe(n),isFinnBlink:Re(n.targetId),isNativeAd:Le(n),isMediation:nr(n),isTakeoverAd:Ne(n),isCollapseAd:Fe(n),isWallpaperAd:Me(n)})})),Eo.onEvent("adLoaded",i=>s(void 0,void 0,void 0,function*(){const{refreshConfig:r,appearanceConfig:o,wallpaper:a,adScaleConfig:s}=I.get(),d=document.getElementById(i.targetId);if(Re(i.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-s7M_BIZf.js");e(i)}if(n.includes(i.targetId)&&Le(i)&&(null==t||t(i,I.get()),rr({adObj:i})),!n.includes(i.targetId)&&nr(i)&&n.push(i.targetId),Fe(i)&&Yt(i.targetId),Ne(i)){const{modifyTakeoverIframe:e}=yield import("./index-DbU616q2.js");e(Eo,i.targetId)}if((e=>He(e,Te.NINESIXTEEN))(i)){const{applyNinesixteenFormat:e}=yield import("./index-qnl_keQC.js");e(i)}if((e=>He(e,Te.FULLSQUARE))(i)){const{applyFullsquareFormat:e}=yield import("./index-qnl_keQC.js");e(i)}if(je(i)){const{applyFullwidthFormat:e}=yield import("./index-qnl_keQC.js");e(i)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),r=null==i?void 0:i.parentElement;if(!r||!i)return;xi({adWrapper:r,placementContainer:i});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&Ci(i,a,o))})(i,r),(null==o?void 0:o.clearProbableDimensionsEnabled)&&Zt(i.targetId);if(T.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return Qt});e(i.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-BGv9kjCm.js");e(i),t(i)}e.adLoaded(i),xt(i.targetId),d&&(d.classList.add(Ct),(e=>{var t,n;const{pageSectionsSelectors:i}=I.get(),r=null==i?void 0:i.mainFirstColumn,o=r?null===(t=document.querySelector(r))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(d)),rr({adObj:i}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const i=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;i&&((e,t)=>{const{height:n,width:i,native:r}=e;r?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(i),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:i.targetId,adFormat:or(i)}}))})),Eo.onEvent("adNoBid",t=>s(void 0,void 0,void 0,function*(){var n;if(Yt(t.targetId),null===(n=I.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-G1VotTxH.js");yield e(I.get(),t)}if(Ne(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yi});yield e(t)}e.adNoBid(t)})),Eo.onEvent("adError",(t,n)=>s(void 0,void 0,void 0,function*(){if(Ne(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yi});yield e(n)}e.adError(t,n)})),Eo.onEvent("adCollapse",()=>{e.adCollapse()}),Eo.onEvent("adRequestFailure",t=>s(void 0,void 0,void 0,function*(){Yt(t.targetId),yield Zn(I.get(),t),e.adRequestFailure(t)})),Eo.onEvent("adBadRequest",t=>s(void 0,void 0,void 0,function*(){Yt(t.targetId),yield Zn(I.get(),t),e.adBadRequest(t)})),Eo.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),Eo.onEvent("adNoBidMediated",t=>s(void 0,void 0,void 0,function*(){yield Zn(I.get(),t),e.adNoBidMediated(t)}))})}),Mo=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{clearAds:r,reloadExistingAds:o,renderFinnBlinkPlacements:a,contextSelector:s}=null!=t?t:{},d=Object.keys(null!=e?e:{}).length>0;let l=[];if(r&&(l=null!==(i=sn())&&void 0!==i?i:[]),r&&!d)return[];r&&d&&(Co=[],T.setData("wallpaper",{isAvailable:!1}),T.setData("horseshoe",{isAvailable:!1})),o&&(sn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Xt(e.id)})),yield dn(e),yield So();const{clientSidePlacements:c,serverSidePlacements:u}=po(wn(s)),p=[...c,...u];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>$t(e)));e.filter(e=>n.has(e)).forEach(e=>Xt(e))})(l,p),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>$t(e)));e.filter(e=>!n.has(e)).forEach(e=>Zt(e))})(l,p);let v=c;return a&&(v=v.filter(e=>Re(e.targetId))),go(u,I.get()),v.length>0&&(Co=[...Co,...v.map(e=>Object.assign({},e))],Ti(v),Pi(v),yield jo(v)),Co}),Fo=(e,t)=>s(void 0,void 0,void 0,function*(){var n;I.set(e),I.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:i,kilkaya:r,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(T.initialize(),window.addEventListener("message",ui,!1),Eo=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=Eo,h("Apn tag is set up on window"),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=I.get();(yield U(e,t,n,"xandr-endpoint"))||Eo.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){if(At())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=I.get(),r=yield U(t,n,i,"prebid");(null==e?void 0:e.enabled)&&r&&(yield Se(null==e?void 0:e.prebidUrl))}),fe(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=I.get();yield Se(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=I.get();(yield U(t,n,i,"gpt-endpoint"))&&(yield Se(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=I.get(),{getConsentAsync:o}=B(n,0,r),a=yield o();if(e&&t&&a){if(yield Se(t),document.querySelector(`.${cr}`))return window._brandmetrics=window._brandmetrics||[],void window._brandmetrics.push({cmd:"_loadsurvey"});new MutationObserver((e,t)=>{for(const n of e){if("childList"!==n.type)return;Array.from(n.addedNodes).some(e=>{var t;return null===(t=e.outerHTML)||void 0===t?void 0:t.includes(cr)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),H(),s(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=I.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Se(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==i?void 0:i.enabled){const{loadNorstat:e}=yield import("./index-DqPMqpt5.js");yield e()}h("Libraries have been loaded and trackers have been set"),xo(),yield Do(),yield So(),h("Page options have been set"),Ao(e),h("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=po(wn());if(Co=l,go(c,e),Ti(Co),Pi(Co),yield jo(Co),h("Ads has been loaded",Co),ti(e,Co),dr(Co),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-DEJ_hkCf.js");yield t(null===(n=null==e?void 0:e.pageContext)||void 0===n?void 0:n.deviceType,e.finnBlink)}if(null==a?void 0:a.enabled){const{handleDrEdition:t}=yield import("./index-G1VotTxH.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-Bt_9C7cT.js");t(e.rightColumnSplit)}if(null==r?void 0:r.enabled){const{runKilkaya:t}=yield import("./index-ByI-pcbZ.js");yield t(e)}}),_o=(e,t)=>s(void 0,void 0,void 0,function*(){yield((e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{initConsentManager:r,getConsentAsync:o}=B(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),a=yield rn(e);yield Qn(),yield lr(r),yield lr(o),h("TCF resolved successfully"),yield Fo(a,t),h("Run function resolved successfully")}))(e,t)}),Ro=(e,t,n,i)=>{var r;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:E,customBody5:C,customIcon1:I,customIcon2:A,customDisplayUrl1:S}=e,T=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:T(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return T(t?I:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=E?E:"",customBody5:null!=C?C:"",logo2:T(A),previewVideoSrc:null!=S?S:""},t)},qo=(e,t)=>{const n=(i=M,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(M),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},$o=(e,t,n,i)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:o}=t,a=i&&Object.values(r).includes(i);n&&a&&io(i,e,ro.NATIVE_AD,o)})(o,n),i())},Bo=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=qo(e.targetId,l))&&void 0!==i?i:c,p=vt[t.language||_.NO],v=Ro(s,p,d,t);return(s.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);$o(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&oo(e,t)})},Uo=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const a=e.getOptions(null!=n?n:{});Bo(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},Vo=()=>{if(!window.location.search.includes("kv_"))return{};const e={},t=(()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e)})();return Object.keys(t).forEach(n=>{n.startsWith("kv_")&&(e[n.slice(3)]=t[n])}),e},Ho=e=>{const{siteSpecificConfig:t}=I.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class zo{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Wo=9826;class Ko{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=I.get();if(t){return{"aa-sch-supply_type":`app_${e===ln?"phone":cn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=Ni("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield Di(I.get())})}isTrackingForbidden(){return s(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=Wo}={}}=I.get();return"true"===N("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=I.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=I.get(),{getConsentAsync:i}=B(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=I.get();return{"aa-sch-page_type":e}}getCountryCodeKeywords(e){return{"aa-sch-country_code":e}}getInventoryTypeKeywords(){return{"aa-sch-inventory_type":"editorial"}}getHasContextKeywords(e){const t=e["aa-sch-context_keyword"];return{"aa-sch-has_context_keyword":Array.isArray(t)&&t.length?1:0}}getPageOptionsFormatDevice(e="desktop"){return"mobile"===e?"phone":e}}const Go=new Ko;function Jo(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),r=kn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Go.prepare.bind(Go);const Qo=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Yo(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Qo.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Xo extends Ko{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=I.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=I.get(),{OS:n,isHybridApp:i}=Jo(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Yo(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=I.get(),r=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const Zo=new class extends Xo{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a,s;const d=I.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new zo;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Y(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(be()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},we(_.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},ea=Zo.prepare.bind(Zo);class ta extends Ko{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=I.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return{width:e||n||0,height:t||i||0}}(),t={width:null!==(i=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==i?i:0,height:null!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=I.get(),{appMode:t,mobileOS:n}=Jo(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=I.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===i?"article":"front"}`}}}const na=new class extends ta{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a;const d=I.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new zo;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(Y(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>s(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(be()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===Ni("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=u.build(),v=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},we(_.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},ia=na.prepare.bind(na);ut(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const ra=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),t("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:[e("span",{id:"advertory-splash-close-label"}),e("svg",{id:"advertory-splash-close-image",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e("path",{d:"M6 3l5 5-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})});var oa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",aa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";ut(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const sa=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:oa,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:aa,width:"54",height:"54"})]}),{})]});ut(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const da=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:oa,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:aa,width:"54",height:"54"})]}),{})]});ut(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const la=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(ra,{}),e(sa,{}),e(da,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),ca={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=I.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=I.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(r,l),u=(e=>{const{pageContext:{countryCode:t}}=I.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${Q(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in Pe)||window.innerWidth>=Pe[e]);return{[r]:i?a:o}})(e),p=(e=>{const{pageContext:{countryCode:t}}=I.get(),n=`${Q(t)}-targetid`;return e?{[n]:[e]}:{}})(i),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=Vo(),h=(e=>Ho(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(r),m=((e,t)=>Ho(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(r,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new zo).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==s?void 0:s.tag)||void 0===t?void 0:t.reloadKeywords,{[`${Q(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=I.get();return yield t===_.SE?ia(e):ea(e)}),siteEvents:i},ua=((e,t)=>({init:n=>_o(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:Mo,getVideoPPIDs:Ie,createInitNativeAd:Uo,getVideoAdsConfig:Qr}))(ca,o);export{ua as $,ro as A,Pn as B,On as C,vt as D,or as E,He as F,yn as G,Wn as H,Ln as I,ei as J,Zn as K,ti as L,Ee as M,_ as N,wo as O,bo as P,fo as Q,Gn as R,Te as S,Mi as T,ee as U,Kn as V,_n as W,Xt as X,Se as Y,r as Z,s as _,Ae as a,la as a0,Yt as b,I as c,a as d,Yn as e,io as f,$t as g,U as h,ut as i,Si as j,Gi as k,h as l,Qi as m,zi as n,Wi as o,Ji as p,Qe as q,et as r,vi as s,kt as t,pi as u,It as v,rr as w,Oe as x,ft as y,Le as z};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const i={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},r={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni"},o={publisherClassName:r.OMNI,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=d(function(){if(c)return l;c=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var a={};return i.isMergeableObject(e)&&r(e).forEach(function(t){a[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?a[r]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(r,i)(e[r],t[r],i):a[r]=n(t[r],i))}),a}function s(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(t)?s?o.arrayMerge(t,r,o):a(t,r,o):n(r,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}());const p={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},v=(e,t)=>u(e,t,p),g={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},h=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},m=(e,t)=>{console.warn("[Advertory WARN]: ",e)},y=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||m("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||m("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||m("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||m("pageContext.deviceType is required."),n||m("pageOptions is required."),i||m("placements is required."),(null==r?void 0:r.defaultThreshold)||m("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&m(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},f=["placements","takeover","refreshConfig","editory"],w=(e,t)=>Object.assign(Object.assign({},e),t),b={editory:(e,t)=>{var n;return v(null!==(n=e)&&void 0!==n?n:{},t)},pageContext:w,pageOptions:w,tcf:w},x=(e,t)=>{const n={};for(const e of f){const i=t[e];void 0===i||e in b||(n[e]=i)}Object.assign(e,n);const i=e;for(const e of Object.keys(b))Object.hasOwn(t,e)&&void 0!==t[e]&&(i[e]=b[e](i[e],t[e]))},E=6;class C{set(e){y(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");x(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=v(C.DEFAULT_SITE_HANDLERS,e)}}C.DEFAULT_SITE_HANDLERS={siteEvents:g,initNativeAd:()=>{}};const I=new C,A=I.modifyConfigProperties.bind(I);class S{initialize(){this.DATA=Object.assign({},S.INITIAL_DATA)}getData(e){if(!this.DATA)throw new Error("Storage was accessed with invalid data.");return this.DATA[e]}setData(e,t){if(!this.DATA)throw new Error("Storage was accessed before it had been initialized.");this.DATA[e]=Object.assign(Object.assign({},this.DATA[e]),t)}}S.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const T=new S,k=864e5,P=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return h("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=k)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=k)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return h("Error with parsing localStorage data"),null}}}})(),O="glimrTags",L=["glwe_","glwet_"],j={geofenceTags:[],geoTags:[],weatherTags:[]},N=e=>new URLSearchParams(window.location.search).get(e),D="takeover",M="native_override_desc2",F=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return h("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(h("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{h("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{h("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);h("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),_={NO:"no",SE:"se"},R="cmp:loaded";let q="undefined"!=typeof window?window._tcf_:void 0,$=!1;const B=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=N("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(h("TCF bypass param detected, returning consent: true"),!0):(h("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if($)return null;if(!q)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=q.getConsentedToAllSync();return h(`TCF consented to all is: ${t}`),q.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(h("Getting TCF consent manager..."),window._tcf_)return h("TCF consent manager is already available"),q=window._tcf_,void e(q);h("TCF consent manager is not available");const n=()=>{h("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(q=window._tcf_,e(q)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(R,n),$=!0,t(new Error("Timeout waiting for CMP to load"))},r);h("Listening for CMP loaded event..."),document.addEventListener(R,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.NO;if(t||i)return h("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield F(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!q)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{h("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);q.onTcfReady(()=>{h("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),q.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},U=(e,t,n,...i)=>s(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return h(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=B(e,0,n);return(yield r())?(h(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(h(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),V=(...e)=>s(void 0,[...e],void 0,function*(e=I.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield U(t,n,i,"glimr")}const{getConsentAsync:r}=B(t,0,i);return yield r()}),H=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=I.get();if(!(yield V())||!(null==e?void 0:e.enabled))return void h("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{P.setWithTimestamp(O,{tags:e,tagMappings:t}),n(!0)})})}catch(e){h(`Error during getting glimr data: ${e}`)}else h("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),z={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},W=e=>L.some(t=>e.startsWith(t)),K=e=>e.startsWith("glgc_"),G=e=>e.startsWith("glci_"),J=e=>!W(e)&&!K(e),Q=e=>e===_.NO?"no-sno":"se-generic",Y=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield V(e);if(!(null==i?void 0:i.enabled)||!o)return h("No consent for getting glimr tags."),{};const a=Q(r),s=X(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),X=(e,t)=>{const n=Z();if(!n)return j;const i=((e=[])=>e.filter(W))(n),r=((e=[])=>e.filter(K))(n),o=((e=[],t,n)=>{var i;const r=e.filter(J);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=z[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},Z=()=>{const e=P.getByTimestamp(O);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},ee=()=>{var e;return((e=[])=>e.filter(G))(null!==(e=Z())&&void 0!==e?e:[])},te=()=>(window.apntag||(window.apntag={anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}}),window.apntag),ne=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),ie=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:r}}=I.get(),o=[`${Q(r)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...i?o:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},re="opaque",oe=e=>s(void 0,void 0,void 0,function*(){if(e.type!==re){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ae={get:(e,...t)=>s(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,i=a(t,["timeout"]);if(n)return((e,t,n)=>s(void 0,void 0,void 0,function*(){const i=new AbortController,r=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return oe(n)}finally{clearTimeout(r)}}))(e,i,n);const r=yield fetch(e,i);return oe(r)}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},se="advertory:ppids-cache",de={[_.SE]:`SCH${_.SE.toUpperCase()}-EnvHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-EnvHash`},le={[_.SE]:`SCH${_.SE.toUpperCase()}-UserHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-UserHash`},ce={[_.SE]:`sch${_.SE}-envhash-v3`,[_.NO]:`sch${_.NO}-envhash-v3`},ue={[_.SE]:`sch${_.SE}-userhash-v3`,[_.NO]:`sch${_.NO}-userhash-v3`},pe={[_.SE]:`'sch${_.SE}-iosid-v3'`,[_.NO]:`'sch${_.NO}-iosid-v3'`},ve={[_.SE]:`sch${_.SE}-androidid-v3`,[_.NO]:`sch${_.NO}-androidid-v3`},ge={[_.SE]:"sdrn:schibsted.com:user",[_.NO]:"sdrn:spid.no:user"};class he{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const me=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||h("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},ye=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,i,r,o,a,s,d,l,c,u,p;const v=P.get(se),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||h("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});P.set(se,r)}hashPPIDs(e,t){return s(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ae.post(t,n,e)}catch(e){return h("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ge[t]}:${n}`:null}))(t,n),r=yield(o=t,s(void 0,void 0,void 0,function*(){const e=yield o.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var o;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:i},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},fe=e=>s(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield U(n,r,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([me.processPPIDs(t,null==n?void 0:n.timeout),ye.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){h(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),we=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ye.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]).add(o,pe[e]).add(a,ve[e]).buildEids()}]}},be=()=>{const{ppid1:e,ppid2:t}=me.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},xe=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ye.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]).add(o,pe[e]).add(a,ve[e]).buildRyEids()}}]}}},Ee=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r}=ye.getPPIDs(),o=(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},Ce=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r}=ye.getPPIDs();return(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]).buildRyEids()},Ie=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:i,ppid2:r}=ye.getPPIDs(),o=(new he).add(n,de[e]).add(t,le[e]).add(r,ce[e]).add(i,ue[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),Ae=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=ye.getPPIDs();return e}),Se=(e,...t)=>s(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),clearTimeout(d)};r.addEventListener("load",o),r.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),Te={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},ke={ANY_FULLSCREEN:[{width:6,height:6},{width:1920,height:1080},{width:3,height:3}],ABSOLUTE_FULLSCREEN:[{width:6,height:6}],NINESIXTEEN:[{width:1080,height:1920}],FIXED_FULLSCREEN:[{width:1920,height:1080},{width:3,height:3}],FULLWIDTH:[{width:5},{width:400,height:400}],FULLSQUARE:[{width:1080,height:1080}],NATIVE_AD:[{width:1,height:1}],TAKEOVER:[{width:4,height:4}],VELVET_TAKEOVER:[{width:7,height:7}],WALLPAPER:[{width:2,height:2}],COLLAPSE:[{width:2,height:1}]},Pe={wallpaper:1600,"l-format":1600},Oe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&He(e,Te.ANY_FULLSCREEN)},Le=e=>{const{native:t}=e;return!!t},je=e=>He(e,Te.FULLWIDTH),Ne=e=>{const{targetId:t}=e;return t.includes("takeover")||He(e,Te.TAKEOVER)},De=e=>He(e,Te.TAKEOVER),Me=e=>He(e,Te.WALLPAPER),Fe=e=>He(e,Te.COLLAPSE),_e=e=>e.targetId.includes("sponsorstripe"),Re=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},qe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),$e=e=>e.targetId.startsWith("midboard"),Be=e=>e.targetId.includes("widescreen"),Ue=e=>e.width>=1260&&e.width<=1280,Ve=e=>e.width>=1600&&e.width<=1620,He=(e,t)=>{const n=ke[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===r,s=!t.height||t.height===o;return a&&s})},ze="advertory-fullscreen-scroll",We="advertory-fullscreen-scroll-wrapper",Ke="fullscreen-scroll-in-screen",Ge="in-screen",Je=e=>e.includes("snoap.no"),Qe=e=>{var t,n,i,r,o;return!!(null===(o=null===(r=null===(i=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===i?void 0:i.adResponse)||void 0===r?void 0:r.ads[1])||void 0===o?void 0:o.rtb)},Ye=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},Xe=Ye([],()=>{const e=({width:e,height:t})=>{var n;const i=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!i)return;const{clientWidth:r,clientHeight:o}=i,a=e/r,s=t/o;i.style.transform=`scale(${a},${s})`,i.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),Ze=e=>{const t=Ye([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const i=n.contentDocument.createElement("style");i.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(i),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},et=e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");if(!n)return e;n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed";return t.innerHTML},tt=[],nt={},it=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,r=new IntersectionObserver(e=>rt(e,i),{}),o=at(e);r.observe(e),i&&(nt[o]=lt(e,null==t?void 0:t.options))},rt=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=at(e);n?(ot(i,n),st(e,i,t)):(ot(i,n),dt(e,i,t))})},ot=(e,t)=>{var n,i;const r=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;const o=t?"showFullscreen":"hideFullscreen";null===(i=r.contentWindow)||void 0===i||i.postMessage(`advertory:${o}-${e}`,"*")},at=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},st=(e,t,n)=>{e.classList.add(Ge),document.body.classList.add(Ke),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),tt.includes(t)||tt.push(t),n&&window.addEventListener("scroll",nt[t],{passive:!0})},dt=(e,t,n)=>{tt.includes(t)&&(n&&window.removeEventListener("scroll",nt[t]),document.body.classList.remove(Ke),e.classList.remove(Ge),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},lt=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:r=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&ct(e,o,r,0),a.length&&ct(e,a,r,40)}},ct=(e,t,n,i)=>{const r=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-i:(o+t-(a+r))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};function ut(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}ut('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const pt="left",vt={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN"}};let gt=null;const ht=(e,t)=>{let n=e;return n=(e=>{const t=document.createElement("script");return t.textContent="\n window.addEventListener('message', function(event) {\n if (event.data === 'advertory:showFullscreen-'+document.body.id) {\n document.body.style.display = \"block\";\n } else if (event.data === 'advertory:hideFullscreen-'+document.body.id) {\n document.body.style.display = \"none\";\n }\n });\n ",e+t.outerHTML})(e),n=(e=>{const t=document.createElement("script");return t.textContent=`(${Xe})()`,e+t.outerHTML})(n),n=et(n),n=(e=>{if(Je(e))return e;const t=document.createElement("style");return t.textContent="\n .GoogleActiveViewClass, .GoogleActiveViewElement {\n transform: translate(calc(-50% + 50vw), 0);\n width: 100vw !important;\n height: 100vh !important;\n }\n .GoogleActiveViewClass img, .GoogleActiveViewElement img {\n width: 100vw;\n height: 100vh;\n object-fit: cover;\n }\n .GoogleActiveViewClass iframe {\n width: 100vw !important;\n height: 100vh !important;\n }\n ",e+t.outerHTML})(n),(e=>e.includes("adform"))(n)&&(n=(e=>{const t=document.createElement("script");t.textContent='\n var frame = window.frameElement;\n if (frame) {\n frame.style.removeProperty("width");\n frame.style.removeProperty("height");\n frame.contentWindow.document.body.onload = onLoad;\n } else {\n document.body.onload = onLoad;\n }\n \n function onLoad() {\n var iframe = document.querySelector("adfm-ad iframe");\n if (iframe) {\n var image = iframe.contentWindow.document.getElementById("image");\n if (!image) return;\n image.style.backgroundSize = "cover";\n } else {\n var iframe = document.querySelector(".adform-adbox iframe");\n if (iframe) {\n var style = document.createElement("style");\n style.textContent = "#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}";\n iframe.contentDocument.body.append(style);\n iframe.style = "width: 100vw; height: 100vh;";\n } else {\n var observer = new MutationObserver(function(mutations, obs) {\n for (var mutation of mutations) {\n var iframe = mutation.addedNodes[0];\n if (iframe && iframe.nodeName === "IFRAME") {\n iframe.style = "width: 100vw; height: 100vh;";\n iframe.dataset.contents += "<style>#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}</style>";\n obs.disconnect();\n }\n }\n });\n observer.observe(document.body, { childList: true, subtree: true });\n }\n }\n }\n ';const n=document.createElement("style");return n.textContent="\n html, body, adfm-ad, #sf_align, .adform-adbox, .adform-adbox img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover;\n max-width: 100vw;\n }\n ",e+n.outerHTML+t.outerHTML})(n)),(e=>e.includes("529299503"))(n)&&(n=Ze(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>Je(e)?e:e.replace("<iframe ","<iframe onload=\"\n var f = document.querySelector('iframe');\n if (!f) return;\n var s = f.style;\n s.transform = 'scale(' + (window.innerHeight / Number(f.height)).toFixed(2) + ')';\n s.right = parseInt((Number(f.width) - window.innerWidth) / 2) + 'px';\n s.bottom = parseInt((Number(f.height) - window.innerHeight) / 2) + 'px';\n s.position = 'relative';\n \" "))(n)),Je(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</iframe>","</iframe><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),(e=>e.includes("kreateam.io"))(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</div>","</div><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),Qe(t)&&(n=(e=>{const t=document.createElement("script");t.textContent='var frame = window.frameElement;\n if (frame) {\n frame.style.width = "100vw";\n frame.style.height = "100vh";\n }';const n=document.createElement("div");return n.innerHTML=e,n.appendChild(t),n.innerHTML})(n)),n},mt=()=>{gt=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,r=document.documentElement;r.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),r.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),r.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},yt=()=>{gt||(gt=window.requestAnimationFrame(mt))},ft=(e,t)=>{var n,i,r,o,a;const{pageContext:{countryCode:s,deviceType:d}}=I.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:r="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=i/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${r} 0px,\n ${r} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${r} calc(50% + ${l}px),\n ${r} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==c?void 0:c.overlayStyles)&&void 0!==i?i:{},d);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;it(p,t),u.className=ze,it(p,t),u.className="advertory-fullscreen-scroll";const v=He(e,Te.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=We,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(r=null==c?void 0:c.annonsLabel)&&void 0!==r?r:vt[s].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===pt&&(u.dataset.moveCogwheelToTheLeft="true"),yt(),window.addEventListener("resize",yt),null===(o=window.visualViewport)||void 0===o||o.addEventListener("resize",yt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",yt)},wt=e=>{if(!(null==e?void 0:e.classList.contains(ze)))return;e.classList.remove(ze),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(We))&&(t.classList.remove(We),t.classList.remove(Ge))};var bt=Object.freeze({__proto__:null,createFullscreenScrollAd:ft,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=Qe(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[i].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,i=Qe(e)?1:0,r=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;r&&(r.banner.content=t)})(e,ht(t,e))},undoFullscreenScrollContainer:wt});const xt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},Et=(e,t,n)=>{var i,r,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),xt(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},Ct="ad-loaded",It="disable-cogwheel",At=()=>null!==N("disable_prebid"),St="0123456789abcdefghijklmnopqrstuvwxyz",Tt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=St[Math.floor(36*Math.random())]}return t},kt=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},Pt=e=>{window.apntag.anq.push(e)},Ot=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Lt=new Promise(e=>{if("undefined"==typeof document||!document.hidden)return void e();const t=()=>{document.hidden||(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t,{once:!0})}),jt=(e,t,n)=>s(void 0,void 0,void 0,function*(){yield Ot,yield Lt;new IntersectionObserver((t,i)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),i.unobserve(e),i.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),Nt=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:r},fullscreenScroll:o,appearanceConfig:a,placements:s}=I.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=I.getHandlers(),{getConsentAsync:l}=B(t,0,n),c=yield l(),u=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const r=te(),{prebid:{relevantCallbackTimeout:o}={}}=I.get(),a="relevantCb"===i&&o?o:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,r.loadTags&&r.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=te(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=te();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:g=""}={},keywords:m}=v;(()=>{const e=ne();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{h("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return h("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=ne();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};h("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},xe(n)),ie(m,g))),h("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},xe(n)),ie(m,g))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{h("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:u.getCancel()}),u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e)),u.cleanup()}},customNativeRender:e=>{Dt(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const v=p.id,g=document.getElementById(v);if(!g)return;const m=null===(t=null==s?void 0:s[r])||void 0===t?void 0:t.find(e=>e.targetId===v),y=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[r])&&void 0!==d?d:0,f=Object.assign(Object.assign({},u),{targetId:v,banner:!0});h("prebid directRenderFn ad info",{targetId:v,width:null==u?void 0:u.width,height:null==u?void 0:u.height,adId:null==u?void 0:u.adId,creativeId:null==u?void 0:u.creativeId}),jt(g,y,()=>{var e;const t=c(l),n=Oe(f);if(h("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)h("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),ft(f,o),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const i=new MutationObserver(()=>{n()&&i.disconnect()});i.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),i&&g.style.setProperty("--advertory-political-box-offset","30px");else{h("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),wt(g),null===(e=null==g?void 0:g.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(g.style.width=`${n}px`)}g.classList.add(Ct),(null==u?void 0:u.creativeId)&&Et(v,g,Number(null==u?void 0:u.creativeId))})}}),h("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e))}},customNativeRender:e=>{Dt(e,d)},directRenderFn:()=>{}})})}),Dt=(e,t)=>{var n;const{divId:i,native:r,bid:o}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:r,targetId:s},I.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")},Mt=/_\d+$/,Ft=e=>e.replace(Mt,"");let _t="";const Rt=new Map,qt=e=>{const{pageSetup:{tag:t}={}}=I.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(_t!==window.location.pathname&&(Rt.clear(),_t=window.location.pathname),e.map(e=>{var t;const n=Ft(e.invCode),i=null!==(t=Rt.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=I.get();return`${e}-${t}`})()}-count`]=i,Rt.set(n,i+1),e})):e},$t=e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e},Bt="advertory-wallpaper-background",Ut="advertory-with-horseshoe",Vt=()=>{const e=document.querySelector(`.${Bt}`);e&&e.remove()},Ht=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Bt}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},zt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,Wt=e=>zt.test(e),Kt=e=>e.startsWith("wallpaper:color:"),Gt=e=>{const t=document.querySelector(`.${Bt}`);t&&(t.style.backgroundImage=`url(${e})`)},Jt=e=>{const t=document.querySelector(`.${Bt}`);t&&(t.style.backgroundColor=e)};var Qt=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(Ut),n.classList.add(Ut))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{Vt();const e=document.createElement("div");e.classList.add(Bt),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--advertory-header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(Ht(n),window.addEventListener("scroll",()=>Ht(n)))})(n),e()},isShortWallpaperColorMessage:Kt,isShortWallpaperUrlMessage:Wt,removeWallpaperBackground:Vt,setWallpaperBackgroundColor:Jt,setWallpaperBackgroundImage:Gt});const Yt=e=>{if("0"===N("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&Vt())},Xt=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},Zt=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},en=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,i=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${i}px`)},tn=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const nn=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return s(this,void 0,void 0,function*(){const t=tn(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>s(void 0,void 0,void 0,function*(){const t=tn(e);if(!t)return null;try{return yield ae.get(t,{timeout:5e3})}catch(e){throw h("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,i,r;const o=((e,t)=>{const{sections:n}=e,i=a(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?v(i,r):i})(t,null!==(r=null===(i=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===i?void 0:i.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>v(t,e))(e,o)}getConfig(e){return s(this,void 0,void 0,function*(){var t,n;const i=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(i))return i;try{const e=yield this.fetchEditableConfig(i);return e?(this.lastFetchedPageType=null===(n=null===(t=i.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,this.resolveRemoteConfig(i,e)):i}catch(e){return h("Error fetching S3 config, using site config",{error:e}),i}})}resolveUpdatedConfig(e){return s(this,void 0,void 0,function*(){var t,n,i,r;if(!this.localSiteConfig)return;if(x(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const o=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch;if(o===this.lastFetchedPageType)return;const a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(r=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===r?void 0:r.pageTypeToFetch)!==o)return;if(!e)return;return this.lastFetchedPageType=o,this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void h("Error fetching updated S3 config, keeping current config",{error:e})}})}},rn=nn.getConfig.bind(nn),on=nn.resolveUpdatedConfig.bind(nn),an=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=T.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=i},sn=()=>{Vt();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{Yt(e.id),an(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),i=null==t?void 0:t.getAttribute("data-probable-width");n&&i&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",i+"px"))})(e.id),e.innerHTML="",e.id=$t(e.id),t.push(e.id)}),Pt(()=>window.apntag.clearRequest()),t},dn=e=>s(void 0,void 0,void 0,function*(){const t=yield on(e);var n;t?(I.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):A(null!=e?e:{})}),ln="mobile",cn="tablet",un="desktop",pn="web_desktop",vn="web_phone",gn="wde",hn="wph",mn="noGroupedPlacements",yn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},fn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},wn=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:i,pageContext:{deviceType:r}}=I.get(),o=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===cn&&0===i.length?e[un]:i})(n,r),a=o.filter(fn),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=yn(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),o=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${r}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(o),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const r=bn(e,t,n),o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${Tt(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),o&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&T.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},r),{targetId:s})});return qt(l)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(d)},bn=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:o||r},xn=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=I.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=$t(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes($t(e.targetId)));return n})(e,i),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has($t(e.targetId))))(e,new Set([...s,...r]));return Object.assign(Object.assign(Object.assign({},a),o),{[mn]:d})},En=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:r}=window,[o,a]=t;if(!i.dataset.lockedsize&&a&&o)i.style.width=`${o}px`,i.style.height=`${a}px`,n&&(r.resizeAd(i.id,[o,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=o.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&r.resizeAd(i.id,[e,t])}},Cn=["netboard","board"];class In{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:r}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",r),o&&s.searchParams.append("urlData",o),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return s(this,void 0,void 0,function*(){var t,n,i;const r=yield this.identityFacade.getIdentityUser(),o=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",a=(null==r?void 0:r.userId)?String(r.userId):"",s=this.buildUrl(e,{envId:o,spid:a});try{h("Starting fetching DrEdition ad from URL:",s);const e=yield ae.get(s);return h("Fetch operation completed successfully."),e}catch(e){h("Error during fetch operation:",e)}return null})}}class An{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:r,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:r,utm_medium:s},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),r=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{r.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const r=this.getDrEditionUTMParams(e,t),o=new URL(i);return Object.entries(r).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return s(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:r,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:r,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:r}=new URL(n);if(!i.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const o=r.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const Sn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):h("Dr. Edition container does not have a parent element, cannot remove height lock.")};class Tn{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return s(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:o=!1}=t,a=e.querySelector(r);if(!a)return void h(`Container with selector "${r}" not found.`);const s=yield this.drEditionService.fetchData(t);return(null==s?void 0:s.itemId)||o?!(null==s?void 0:s.itemId)&&o?(h("No Dr. Edition ads available to render. Collapsing whole placement."),Yt(e.id),void Sn(a)):((null==s?void 0:s.itemId)&&o&&(h("Dr. Edition ad available to render as a Xandr backfill."),Xt(e.id)),void(s?(s.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(s.css,"style"),yield this.rendererManager.render(a,s,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(s,t),Sn(a),this.drEditionAds.push(s),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(s.itemId),this.observeAdView(e,s,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):Sn(a))):(h("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void Sn(a))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";Xt(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let r=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(r&&clearTimeout(r),r=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{o.observe(e)}),!0}}const kn=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},Pn=e=>e===ln,On=853,Ln=767;class jn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return s(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:i}=B(n.tcf,n.isMobileApp,n.country),r=yield i(),o=Pn(n.device)?t.mobileHTML:t.desktopHTML,a=r?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var i,r,o;e.search=null!==(o=null===(r=(i=this.newsroomStrategy).getUrlSearchParams)||void 0===r?void 0:r.call(i,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class Nn{constructor(e){this.strategy=e}handle(e,t){return s(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return s(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,n=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!n)try{yield Se(t)}catch(e){h("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return s(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,r=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==r||r.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==r?void 0:r.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,r;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",o),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(r=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===r||r.call(i,s),!0))}}class Dn{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,r=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const p=this.getEventInput(e,t,n,"view");(null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)?null===(o=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===o||o.call(r,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,p):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,p)})}trackContentClick(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(r=(i=this.pulse).trackLegacyClickUIElement)||void 0===r||r.call(i,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class Mn extends Dn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(o=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===r?void 0:r.call(i,l))&&void 0!==o?o:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:p,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class Fn extends Dn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulseObjectId)||void 0===o?void 0:o.call(r))&&void 0!==a?a:p,"@type":"UIElement",position:p,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:p,"@type":v,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var r,o,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:p,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),f=this.getTeaserElementText(e,"image"),w=null!==(s=null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getUrlWithParams)||void 0===o?void 0:o.call(r,t,n))&&void 0!==a?a:v)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:p,link:w,placement:n.editionName,subtitle:y,time:h,title:m,type:i,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const _n={FRONT:"front"},Rn=e=>s(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),qn={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return s(this,void 0,void 0,function*(){yield import("./styles-BNR2cXTq.js")})}})}};class $n{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){yield s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const a=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=a)||l.forEach(e=>{qn[e](c)});const u={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},p=yield Rn(u);p.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(p,a)}),p.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),p.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield p.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===_n.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),r=i.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const Bn="https://www.aftonbladet.se/video-player-extras/latest/";class Un{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${Bn}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${Bn}external-link.js`]:{name:"ExternalLink"}}};yield Rn(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const Vn=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class Hn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},Vn(e)?e:{}),{provider:Object.assign(Object.assign({},Vn(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${t}`]},requestSettings:{}}}},d=yield Rn(a);d.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===_n.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class zn{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const Wn=(e,t,n)=>{const{publisher:i,pageType:o,country:a}=e,s={[r.VG]:new An,[r.E24]:new $n,[r.AFTONBLADET]:new Un,[r.SVD]:new Hn}[i]||new zn,d=new(a===_.SE?Mn:Fn)(n,s,o),l=new In(t,n),c=new jn(s,d),u=new Nn(s);return new Tn(l,c,u,d)},Kn=()=>s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class Gn{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return s(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return h("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return s(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const Jn=(e,t,n)=>{const{wrapperSelector:i}=e.drEditionConfig.options,r=document.querySelectorAll(i),o=new IntersectionObserver((i,r)=>((e,t,n,i,r)=>{const o=Wn(n,i,r);e.forEach(e=>{var i,r;if(!e.isIntersecting)return;const a=e.target,s=null!==(i=a.dataset.editionName)&&void 0!==i?i:"",d=null!==(r=a.dataset.pulseColumnname)&&void 0!==r?r:"",l=Number(a.dataset.pulsePrimaryposition)||0;o.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:s,columnName:d,primaryPosition:l})),t.unobserve(a)})})(i,r,e,t,n),{rootMargin:"400% 0px"});r.forEach(e=>o.observe(e))},Qn=()=>s(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),Yn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Xn=[],Zn=(e,t)=>s(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:r,drEdition:o,pageContext:{deviceType:a,publisher:s,pageType:d,countryCode:l,isMobileApp:c}}=e;if(!(yield U(r,c,l,"handleDrEditionBackfill")))return;const u=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:o,drEdition:a}=e,s=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,d=o[r]||o.desktop,l=$t(t.targetId),c=d.find(e=>e.targetId===l),u=Cn.some(e=>l.startsWith(e)),p=Xn.includes(l),v=(null===(i=null==c?void 0:c.drEdition)||void 0===i?void 0:i.editionName)||s;return c&&u&&!p&&v?(Xn.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!u)return;if(!(null==i?void 0:i.instance))return void h("Pulse has not been passed as a prop, aborting");const p=yield Kn(),v=new Gn(p),g=Wn({publisher:s,pageType:d,country:l},v,null==i?void 0:i.instance),m=document.getElementById(t.targetId);if(!m||!o)return;m.classList.value="";const y=document.createElement("div");y.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==u?void 0:u.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:r,isMobileApp:c,country:l,renderAsBackfill:!0};yield g.fetchAndRenderAd(m,f)}),ei=e=>s(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield U(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield Kn(),i=new Gn(n);Jn({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),ti=(e,t)=>{var n,i,r;if(!Yn())return void h("Ad block not enabled, Dr. Edition backfills will not be rendered");h("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(i=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===i?void 0:i[o],l=null!==(r=null==d?void 0:d.map(([e])=>e))&&void 0!==r?r:[],c=new IntersectionObserver((t,n)=>s(void 0,void 0,void 0,function*(){for(const i of t){if(!i.isIntersecting)continue;const t=i.target;n.unobserve(t),yield Zn(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!l.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&c.observe(t)})},ni="collapseAd",ii="hideAd",ri="resizeAd",oi="renderDrEditionFallback",ai="wallpaperImageUrl",si="wallpaperColor",di="velvet",li=[ri,ai,si,ni,ii,oi,di];let ci;const ui=e=>{if(!["http://acdn.adnxs-simple.com","https://acdn.adnxs-simple.com","https://crcdn01.adnxs-simple.com","http://crcdn01.adnxs-simple.com","https://acdn.adnxs.com","http://acdn.adnxs.com","https://adsdk.microsoft.com","https://adsdk.bing.net","https://adsdkprod.azureedge.net"].includes(e.origin.trim()))return;const{data:t}=e;if(!t)return;const n=(e=>{if("object"==typeof e)return e;if(Wt(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:ai,wallpaperImageUrl:t}}if(Kt(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:si,wallpaperColor:t}}if(e.startsWith(oi)){const t=e.split(":")[1];return{name:oi,targetId:t}}if(e.startsWith(ni)||e.startsWith(ii)){const t=e.split(":")[1];return{name:ni,targetId:t}}if(e.includes("name")&&li.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!li.some(e=>n.name===e))return;const{name:i,targetId:r,wallpaperImageUrl:o,wallpaperColor:a,cmd:s,size:d}=n;i===di&&s&&(s.includes("noScroll")&&(ci=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(s.includes("close")||s.includes("ended"))&&(null==ci||ci(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==ni&&i!==ii||!r||Yt(r),i===ri&&r&&s&&En(r,s),i===oi&&r&&(Yt(r),Zn(I.get(),{targetId:r})),"resizeMediationAd"===i&&r&&d&&En(r,d,!0),i===ai&&o&&Gt(o),i===si&&a&&Jt(a)},pi=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=I.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},o=e=>{Xt(e),Pt(()=>i.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-uRooiXKL.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-uRooiXKL.js");yield t(e,r,o,()=>s(void 0,void 0,void 0,function*(){if(!T.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Qt});t(e)}))})}},vi=(e,t)=>s(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield jt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Re(t)&&i?(h(`loading finn blink ad for blink only placement for ${t}`),void pi().withFinnBlinkAd(t)):Re(t)?(h(`loading finn blink ad with full ads chain for ${t}`),void pi().withFullAdsChain(t)):void Pt(()=>(h("core showTag",{id:t}),e.showTag(t)))})(window.apntag,(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),gi=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),hi=new Map,mi=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],yi=".brandstudio-premium-content-widget",fi=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),wi=({adWrapper:e,placementContainer:t})=>{const n=fi({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),an(i=t),i.innerHTML=""},bi=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},xi=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=I.get(),i=mi.includes(n)&&Boolean(t.closest(yi));const r=i?t.closest(yi):null,o=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!i&&!a||i&&!r)return;if(a)return bi(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=r;s&&d.contains(s)?bi(s):d.hasAttribute("style")&&bi(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},Ei=(e,t,n,i,r,o)=>{var a;const s=performance.now(),d=null!==(a=hi.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,r)&&n<0;s-d>=r&&l&&(hi.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=I.get(),r=null==n?void 0:n.parentElement;r&&n&&wi({adWrapper:r,placementContainer:n}),Pt(()=>{e.setKeywords([t],{[`${Q(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},Ci=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:r,boundingClientRect:o}=e;t(window.apntag,r.id,o.y,n,i,r)})})(e,Ei,t,n),gi(300));i.observe(e)},Ii=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},Ai=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Si=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},Ti=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=I.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),ji(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},ki=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;Si(r,o)&&i&&(en(i.targetId),n.length&&r.classList.remove(...n),ji([i],t))}},Pi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=I.get();t&&(e.forEach(({targetId:e})=>{const t=Oi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&ki(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),ki(e,!1,t))};n.persisted&&(Ai()?window.addEventListener("scroll",i,{passive:!0}):ki(e,!1,t))})})(e,n))},Oi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},Li=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Oi(t)),r=(e=>1===e[0]&&1===e[1])(i),o={sizes:[i],allowedFormats:r?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return r||(o.native=void 0),o},ji=(e,t=!1)=>{const{queryConfig:{batchSize:n=E}={}}=I.get(),i=e.map(({targetId:e})=>e),r=Ii(i,n);if(t)for(const t of e){const e=Li(t);window.apntag.modifyTag(t.targetId,e)}for(const e of r)Pt(()=>window.apntag.refresh(e))},Ni=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Di=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=B(t,0,i);if(!(yield r()))return;const o=Ni("_pulse2data");return o?o.split(",")[9]:void 0}),Mi={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Fi="takeover-displayed",_i="takeover-visit-count",Ri=14400,qi=()=>{const e=Ni(_i);return e?parseInt(e):0},$i=()=>{const e=qi(),{takeover:{options:{cookieCapTime:t=Ri}={}}={}}=I.get(),n=document.location.hostname;window.document.cookie=`${_i}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Bi=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=I.get();return"0"!==N(D)&&("1"===N(D)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=I.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Fi;return"true"===Ni(n)})())&&(!t||Ui()))},Ui=()=>{const e=qi();return 0===e?($i(),!1):1===e},Vi=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Hi=()=>{const{takeover:e}=I.get();return Boolean(null==e?void 0:e.topscroller)},zi=e=>{const{width:t,height:n}=e;return Vi(t,n)?Mi.SPLASH:He(e,Te.VELVET_TAKEOVER)?Mi.VELVET:Hi()?Mi.TOPSCROLLER:Mi.WELCOME_PAGE},Wi=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Fi,cookieCapTime:n=Ri}={}}={},pageContext:{isMobileApp:i,countryCode:r},tcf:o}=I.get(),a=yield U(o,i,r,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Ki=e=>{var t,n;const i=!!(null===(n=null===(t=I.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ne(e)&&i},Gi=(e,t)=>{var n;if(t===Mi.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===Mi.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Ji=(e,t)=>{t!==Mi.SPLASH?(e=>{var t,n;const i=null===(t=I.get().pageSectionsSelectors)||void 0===t?void 0:t.header,r=null===(n=I.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||r)return;const o=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=De(e)?"60svh":`calc(100svh - ${l}px)`,u=De(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),s.style.setProperty("height",c,"important"),d.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=I.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),i=document.querySelector(`#${e.targetId}`);if(!n||!i)return;const r=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",r,"important")})(e)},Qi=Ye([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});var Yi=Object.freeze({__proto__:null,addTakeoverCookie:Wi,adjustTakeoverHeight:Ji,canDisplayTakeover:Bi,getProperWelcomePageConfig:Gi,getTakeoverVariant:zi,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){Ki(e)&&(yield Wi())}),incrementArticleVisitCount:$i,isSplashVariant:Vi,isTopscroller:Hi,scaleAd:Qi,shouldAddTakeoverCookieForNotShownAd:Ki});const Xi=e=>`externalImpId:'${e}'`,Zi=(e,t)=>t?Object.assign(Object.assign({},e),{"aa-sch-ssa-native-ad":"true","aa-sch-ssa-format":"NATIVE_CONTENT","aa-sch-ssa-market":"XNO","aa-sch-ssa-cat":["ssa_1","ssa_2","ssa_3","ssa_4","ssa_5","ssa_6","ssa_7","ssa_8","ssa_9","ssa_10","ssa_11","ssa_12","ssa_13","ssa_14","ssa_15","ssa_16","ssa_17","ssa_18","ssa_19","ssa_20","ssa_21","ssa_22","ssa_23","ssa_24","ssa_25","ssa_26","ssa_27","ssa_28","ssa_29","ssa_30"]}):e,er=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=I.get(),{targetId:r,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Bi())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],i=Array.isArray(n)?n.filter(e=>e!==Mi.TOPSCROLLER):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),g=Object.assign({invCode:d,sizes:o,targetId:r,keywords:Zi(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),m=(e=>{var t,n;const i=null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId;return i?(h("Pulse state pageViewId is:",i),i):(h("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&m&&(h("External Impression ID assigned to defineTag:",Xi(m)),g.externalImpId=Xi(m));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(g.native=y),g},tr=e=>!e.includes("takeover")||Bi(),nr=e=>{const{source:t}=e;return"csm"===t},ir={nativeAd:e=>Le(e)&&!_e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:je,fullscreenScroll:Oe,topscroller:e=>Ne(e)&&Hi(),splash:e=>Ne(e)&&Vi(e.width,e.height),welcomePage:Ne,wallpaper:Me,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Ue,hFormat:Ve,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Ve(e)&&!Ue(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ne(e),widescreen:Be,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:_e,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!qe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!$e(e),outstream:e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,netboard:e=>(e=>e.targetId.startsWith("netboard"))(e)||(e=>e.targetId.startsWith("board"))(e),panorama:qe,midboard:$e},rr=({adObj:e,preferredTestIdData:t})=>{var n,i;const r=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!r)return;const o=null===(i=document.querySelector(`#${r}`))||void 0===i?void 0:i.parentElement;if(!o)return;if(((e,t)=>{var n,i,r,o;const a=null===(o=null===(r=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===r?void 0:r[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(r,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,i;for(const[r,o]of Object.entries(ir))if(o(e)){if("nativeAd"===r){const o="default";t.dataset.testid=`${r}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:o}`;break}t.dataset.testid=r;break}})(e,o)},or=e=>{var t;return(null===(t=Object.entries(ir).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},ar=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=I.get(),n=Q(t),i=e[`${n}-targetid`],r=i?$t(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[r]})},sr=e=>{const{pageContext:{countryCode:t}}=I.get(),n=Q(t);return Object.assign(Object.assign(Object.assign(Object.assign({},e),e[`${n}-geo`]&&{[`${n}-geo`]:["geo-test-value"]}),e[`${n}-geofence`]&&{[`${n}-geofence`]:["geofence-test-value"]}),e[`${n}-weather`]&&{[`${n}-weather`]:["weather-test-value"]})},dr=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const i=n.split(",")[0].split(":")[0],r=e.find(e=>e.invCode===i),o=document.querySelector(`[id^=${null==r?void 0:r.targetId}]`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{var e;const t=new URLSearchParams(window.location.search).get("scrollToDrEditionPlacement");if(!t)return;const n=null!==(e=document.querySelector(`[id*="${t}}"]`))&&void 0!==e?e:document.querySelector(`a[aria-label*="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})()},lr=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});ut(".advertory-brandmetrics-survey{width:100%}");const cr="advertory-brandmetrics-survey",ur="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",pr=()=>s(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),vr={pageContext:{publisher:"aftonbladet",countryCode:_.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},gr={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},hr=e=>(null==e?void 0:e.parent)?[...hr(e.parent),e.shortPath||"unknown"]:[],mr=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=hr(e);return gr[n]||"ovrigaavdelningar"})(e)}_{position}`,yr={aftonbladet:vr},fr={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:mr(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:hr(e).join(":")}}},wr=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},br=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),xr="se-generic",Er="aa-sch",Cr="kv_",Ir="pause",Ar="{deviceType}",Sr="{position}",Tr="afp_",kr=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),Pr="1-1",Or="16-9",Lr="3-4",jr="9-16",Nr="responsive",Dr={[Pr]:1,[Or]:1.78,[jr]:.56,[Nr]:1},Mr={[Pr]:1,[Or]:1.78,[Lr]:1.33,[jr]:.56},Fr=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},a=un===n?gn:hn,s=r.replace(Ar,a);return(e,n)=>{if(e===Ir)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Sr,Ir).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&kr.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(Ar,a).replace(Sr,e)}return s.replace(Sr,e)}},_r=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Rr=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},qr=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},$r=()=>{const e=null!==(t=qr()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=qr()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Br=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Ur=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield U(n,e.isApp,r,"video"))?"1":"0",l=yield pr(),c=yield Ie(r),u=yield Di({tcf:n,pageContext:s}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>_r(Mr,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?_r(Dr,Number(m.toFixed(2))):Nr;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Er}-country_code`]:r,[`${Er}-publisher`]:i,[`${Er}-supply_type`]:(y=e.deviceType,y===un?pn:vn),[`kw_${Er}-page_type`]:"collection",[`${Er}-page_type`]:"collection",[`${xr}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${xr}-page`]:"index",[`${xr}-page`]:"index",[`${xr}-screenheight`]:String(window.screen.height),[`${xr}-screenwidth`]:String(window.screen.width),[`${xr}-viewportheight`]:String(a),[`${xr}-viewportwidth`]:String(o),[`${xr}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${xr}-mobile-os`]:kn(),[`${xr}-audience`]:void 0,[`${xr}-externalid_src`]:$r(),[`${xr}-tags`]:e.tags,[`${xr}-articleid`]:p,"article-id":p},yield Y(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${xr}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Br()).some(e=>e.includes(Cr))&&(()=>{const e=Br(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Cr)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":d,"kw_aa-sch-cmp_advertising":d,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Vr=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],Hr=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],zr=["external_uid","gdpr","gdpr_consent","eids","article-id"],Wr=(e,t)=>{const n=[...Vr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||zr.includes(e)?e:`kw_${e}`,t]))},Kr=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Hr.includes(e))),Gr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i,r,o;const a=(e=>{var t;yr[e]||m(`[video] No config found for publisher "${e}"`);return null!==(t=yr[e])&&void 0!==t?t:vr})(e.publisher),s=(e=>{var t;return null!==(t=fr[e])&&void 0!==t?t:fr.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Ur({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Rr(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:wr(e.startMode)}}),Jr=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=Fr(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Tr)?`${Tr}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,r),"se-generic-playback-method":br.get(s),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Wr(o,n)),Kr(o)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Qr=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield Gr(e,t);return Jr(n,e)}),Yr={plcmtcnt:1,context:1,contextsubtype:10,plcmttype:1,assets:[{id:1,title:{len:100},required:0},{id:2,img:{type:1,hmin:10,wmin:10},required:0},{id:3,img:{type:3,hmin:10,wmin:10},required:0},{id:4,data:{type:2},required:0},{id:5,data:{type:12},required:0}],ver:"1.2",eventtrackers:[{event:1,methods:[1,2]}]},Xr={no:"NOK",se:"SEK"},Zr={no:"no",se:"sv"};class eo{buildFetchObject(e,t,n,i){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:r},pageOptions:o}=i,{invCode:a,xandrPlacementId:s}=e,d=yield pr(),l=(c=Object.assign(Object.assign({},t),n),Object.entries(c).flatMap(([e,t])=>void 0===t?[]:Array.isArray(t)?t.map(t=>`${e}=${t}`):[`${e}=${t}`]).join(","));var c;const u=new URL(window.location.href),p=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(Yr),ver:"1.1"}})(e),v=(e=>{const{sizes:t,allowedFormats:n}=e;if((null==n?void 0:n.includes("banner"))&&t&&0!==t.length)return{format:t.map(([e,t])=>({w:e,h:t})),w:t[0][0],h:t[0][1]}})(e);return{id:Tt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(o.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Zr[r]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield Di(i),ext:{consent:d.gdpr_consent||"",eids:Ce(r)}},at:1,cur:[Xr[r]],source:{tid:Tt(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,i){return s(this,void 0,void 0,function*(){try{h("Starting fetching Studio ad from Xandr:",ur);const r=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${ur}?${a.toString()}`:ur,d=yield this.buildFetchObject(e,t,n,i),l=yield ae.post(s,r,d);return h("Fetch operation completed successfully.",l),l}catch(e){h("Error during fetch operation:",e)}return null})}}const to=0,no=3,io=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(s),r.classList.add(d),t.dataset.adType=n},ro={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},oo=(e,t)=>{ao(e,t),lo(e,t)},ao=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const i of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])uo(i)}),t.dataset.tracked="true")})},so=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(co):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},lo=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:un])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!i)for(const n of t)if(n.isIntersecting){i=!0,so(e),c.disconnect();break}},d);c.observe(r)},co=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?uo(e):window.navigator.sendBeacon(e)},uo=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},po=e=>e.reduce((e,t)=>{if(!t.serverSidePlacement)return e.clientSidePlacements.push(t),e;const n=Math.random()<.5;return t.keywords=Object.assign(Object.assign({},t.keywords),{"aa-sch-prerenderer":n?"true":"false"}),n?e.serverSidePlacements.push(t):e.clientSidePlacements.push(t),e},{clientSidePlacements:[],serverSidePlacements:[]}),vo=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[r],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void h(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},gi(s)).observe(d)});const{prepareTag:l}=I.getHandlers(),c=T.getData("alertoryConfigKeywords"),u=null!==(i=l(er(e)).keywords)&&void 0!==i?i:{},p=new eo,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===ln?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===to){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(d,v,r),v.adType===no&&(io(t.pageContext.publisher,d,ro.NATIVE_AD,t.pageContext.pageType),oo({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,a;let s;(null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),Et(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),go=(e,t)=>{e.forEach(e=>vo(e,t).catch(e=>{h("Failed to handle server-side ad:",e)}))},ho="_adchoices_non_rtb",mo=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=ho}={}}={}}=I.get();return`${Ft(e)}${t}`},yo=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>Yt(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:mo(e.invCode)})))(e)),fo=e=>`${Math.max(0,Math.round(e))}px`,wo=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},bo=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},xo=()=>{const{pageSectionsSelectors:e}=I.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=wo(t);bo({"--advertory-header-height":fo(n)})})(e.header)};let Eo,Co=[];const Io=["takeover","wallpaper"],Ao=(e,t)=>{var n,i;const{initNativeAd:r}=I.getHandlers();null==r||r(e,null!==(i=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==i?i:I.get())},So=e=>{const t=(e=>{var t;const n=T.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:y}=e,f=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:E;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:f})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.10.3",siteConfig:e,alertoryConfig:t,renderNativeAd:Ao}},To=()=>s(void 0,void 0,void 0,function*(){const{pageOptions:e}=I.get(),{preparePageOptions:t}=I.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=I.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),i=yield s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=I.get();return(yield U(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),r=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),i));(e=>{const t=T.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=sr(e);T.setData("alertoryConfigKeywords",n)})(r.keywords),Pt(()=>Eo.setPageOpts(r))}),ko=e=>s(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=I.get(),o=yield U(n,i,r,"loadPlacements"),a=yo(e,o);Po(a);(null==t?void 0:t.enabled)&&o&&!At()?(h("core loadPlacements prebid enabled"),yield Nt()):(h("core load tags invoked without prebid enabled"),Oo(a))}),Po=e=>{const{prepareTag:t}=I.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const i=t.findIndex(t=>e.targetId.includes(t)),r=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===r?-1:-1===i&&-1!==r?1:i-r})})(e).forEach(e=>{h("core defineTags",{placement:e});const i=er(e);if(tr(e.targetId)){const r=t(i),o=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:r}=e;return{adTypes:t,invCode:n,keywords:ar(i),sizes:r}})(r);n.push(o),Pt(()=>(h("core defineTag - add to the queue",{placement:e,preparedTag:r}),Eo.defineTag(r)))}}),(e=>{var t,n,i;(null===(i=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===i?void 0:i.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},Oo=e=>{const t=e.filter(({targetId:e})=>tr(e)).map(({targetId:e})=>e);t.length&&Pt(()=>(h("core loadTags",{placementsIdsToLoad:t}),Eo.loadTags([...t])))},Lo=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=I.get(),{requestThreshold:r,refresh:o}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[i];a&&(h("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:r,deviceDefaultThreshold:s}),yield vi(a,null!=r?r:s)),a&&(null==o?void 0:o.scroll)&&(h("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),jo=e=>e.some(({targetId:e})=>Io.some(t=>e.includes(t))),No=e=>s(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=E}={},pageContext:{deviceType:i}}=I.get(),r=xn(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...Ii(s,n)]})(i);for(const e of r)jo(e)?(h("core loadAds without lazy loading",{placementsToLoad:e}),yield ko(e)):e.length&&(h("core loadAds with lazy loading",{placementsToLoad:e}),yield Do(e));const{finnBlink:o}=I.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-uRooiXKL.js");yield e(n)}}),Do=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=I.get(),i=[];if(!t)return h("lazy load is not enabled",{placements:e}),void(yield ko(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{h("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&ko(e),h("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(h("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),Mo=()=>s(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=I.getHandlers(),n=[];Pt(()=>{Eo.onEvent("adRequested",()=>{e.adRequested()}),Eo.onEvent("adAvailable",n=>s(void 0,void 0,void 0,function*(){var i,r,o,a,s,d;h("core adAvailable start",{placementsAvailable:Co,adObj:n,isFullscreenScrollAd:Oe(n),isFinnBlink:Re(n.targetId),isNativeAd:Le(n),isMediation:nr(n),isTakeoverAd:Ne(n),isCollapseAd:Fe(n),isWallpaperAd:Me(n)});const l=null===(o=null===(r=null===(i=null===window||void 0===window?void 0:window.apntag)||void 0===i?void 0:i.requests)||void 0===r?void 0:r.tags[n.targetId])||void 0===o?void 0:o.adResponse.ads;if(nr(n)&&l&&(null===(a=l[1])||void 0===a?void 0:a.rtb)&&(n.banner=null===(d=null===(s=l[1])||void 0===s?void 0:s.rtb)||void 0===d?void 0:d.banner),Oe(n)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return bt});e(n)}const{widescreenSwitching:c,wallpaper:u,fullscreenScroll:p}=I.get();if(Be(n)&&(null==c?void 0:c.enabled)){const{initWidescreenSwitching:e}=yield import("./index-ClvpjnBa.js");e()}if(Oe(n)&&!Re(n.targetId)){h("core adAvailable: creating fullscreen scroll container",{targetId:n.targetId,width:n.width,height:n.height,bannerWidth:n.banner&&"object"==typeof n.banner?n.banner.width:n.banner,bannerHeight:n.banner&&"object"==typeof n.banner?n.banner.height:void 0});const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return bt});e(n,p)}if(!Le(n)||nr(n)||Re(n.targetId)||null==t||t(n,I.get()),Ne(n)&&!Fe(n)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-3sceQoUU.js");e(n.targetId),yield t(n)}if(Me(n)&&(null==u?void 0:u.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return Qt});e(()=>Pt(()=>window.apntag.showTag(n.targetId)),u),T.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(n)&&T.setData("horseshoe",{isAvailable:!0}),e.adAvailable(n);const v=Co.find(({targetId:e})=>e===n.targetId);v&&(yield Lo(v,n),Co=Co.filter(e=>e.targetId!==v.targetId)),h("core adAvailable stop",{placementsAvailable:Co,adObj:n,isFullscreenScrollAd:Oe(n),isFinnBlink:Re(n.targetId),isNativeAd:Le(n),isMediation:nr(n),isTakeoverAd:Ne(n),isCollapseAd:Fe(n),isWallpaperAd:Me(n)})})),Eo.onEvent("adLoaded",i=>s(void 0,void 0,void 0,function*(){const{refreshConfig:r,appearanceConfig:o,wallpaper:a,adScaleConfig:s}=I.get(),d=document.getElementById(i.targetId);if(Re(i.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-D8La7bJW.js");e(i)}if(n.includes(i.targetId)&&Le(i)&&(null==t||t(i,I.get()),rr({adObj:i})),!n.includes(i.targetId)&&nr(i)&&n.push(i.targetId),Fe(i)&&Yt(i.targetId),Ne(i)){const{modifyTakeoverIframe:e}=yield import("./index-3sceQoUU.js");e(Eo,i.targetId)}if((e=>He(e,Te.NINESIXTEEN))(i)){const{applyNinesixteenFormat:e}=yield import("./index-CHyfG5KH.js");e(i)}if((e=>He(e,Te.FULLSQUARE))(i)){const{applyFullsquareFormat:e}=yield import("./index-CHyfG5KH.js");e(i)}if(je(i)){const{applyFullwidthFormat:e}=yield import("./index-CHyfG5KH.js");e(i)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),r=null==i?void 0:i.parentElement;if(!r||!i)return;xi({adWrapper:r,placementContainer:i});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&Ci(i,a,o))})(i,r),(null==o?void 0:o.clearProbableDimensionsEnabled)&&Zt(i.targetId);if(T.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return Qt});e(i.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-1N-5CJp5.js");e(i),t(i)}e.adLoaded(i),xt(i.targetId),d&&(d.classList.add(Ct),(e=>{var t,n;const{pageSectionsSelectors:i}=I.get(),r=null==i?void 0:i.mainFirstColumn,o=r?null===(t=document.querySelector(r))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(d)),rr({adObj:i}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const i=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;i&&((e,t)=>{const{height:n,width:i,native:r}=e;r?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(i),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:i.targetId,adFormat:or(i)}}))})),Eo.onEvent("adNoBid",t=>s(void 0,void 0,void 0,function*(){var n;if(Yt(t.targetId),null===(n=I.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-CuNFqYQQ.js");yield e(I.get(),t)}if(Ne(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yi});yield e(t)}e.adNoBid(t)})),Eo.onEvent("adError",(t,n)=>s(void 0,void 0,void 0,function*(){if(Ne(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yi});yield e(n)}e.adError(t,n)})),Eo.onEvent("adCollapse",()=>{e.adCollapse()}),Eo.onEvent("adRequestFailure",t=>s(void 0,void 0,void 0,function*(){Yt(t.targetId),yield Zn(I.get(),t),e.adRequestFailure(t)})),Eo.onEvent("adBadRequest",t=>s(void 0,void 0,void 0,function*(){Yt(t.targetId),yield Zn(I.get(),t),e.adBadRequest(t)})),Eo.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),Eo.onEvent("adNoBidMediated",t=>s(void 0,void 0,void 0,function*(){yield Zn(I.get(),t),e.adNoBidMediated(t)}))})}),Fo=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{clearAds:r,reloadExistingAds:o,renderFinnBlinkPlacements:a,contextSelector:s}=null!=t?t:{},d=Object.keys(null!=e?e:{}).length>0;let l=[];if(r&&(l=null!==(i=sn())&&void 0!==i?i:[]),r&&!d)return[];r&&d&&(Co=[],T.setData("wallpaper",{isAvailable:!1}),T.setData("horseshoe",{isAvailable:!1})),o&&(sn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Xt(e.id)})),yield dn(e),yield To();const{clientSidePlacements:c,serverSidePlacements:u}=po(wn(s)),p=[...c,...u];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>$t(e)));e.filter(e=>n.has(e)).forEach(e=>Xt(e))})(l,p),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>$t(e)));e.filter(e=>!n.has(e)).forEach(e=>Zt(e))})(l,p);let v=c;return a&&(v=v.filter(e=>Re(e.targetId))),go(u,I.get()),v.length>0&&(Co=[...Co,...v.map(e=>Object.assign({},e))],Ti(v),Pi(v),yield No(v)),Co}),_o=(e,t)=>s(void 0,void 0,void 0,function*(){var n;I.set(e),I.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:i,kilkaya:r,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(T.initialize(),window.addEventListener("message",ui,!1),Eo=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=Eo,h("Apn tag is set up on window"),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=I.get();(yield U(e,t,n,"xandr-endpoint"))||Eo.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){if(At())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=I.get(),r=yield U(t,n,i,"prebid");(null==e?void 0:e.enabled)&&r&&(yield Se(null==e?void 0:e.prebidUrl))}),fe(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=I.get();yield Se(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=I.get();(yield U(t,n,i,"gpt-endpoint"))&&(yield Se(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=I.get(),{getConsentAsync:o}=B(n,0,r),a=yield o();if(e&&t&&a){if(yield Se(t),document.querySelector(`.${cr}`))return window._brandmetrics=window._brandmetrics||[],void window._brandmetrics.push({cmd:"_loadsurvey"});new MutationObserver((e,t)=>{for(const n of e){if("childList"!==n.type)return;Array.from(n.addedNodes).some(e=>{var t;return null===(t=e.outerHTML)||void 0===t?void 0:t.includes(cr)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),H(),s(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=I.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Se(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==i?void 0:i.enabled){const{loadNorstat:e}=yield import("./index-H4vrn8v9.js");yield e()}h("Libraries have been loaded and trackers have been set"),xo(),yield Mo(),yield To(),h("Page options have been set"),So(e),h("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=po(wn());if(Co=l,go(c,e),Ti(Co),Pi(Co),yield No(Co),h("Ads has been loaded",Co),ti(e,Co),dr(Co),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-uRooiXKL.js");yield t(null===(n=null==e?void 0:e.pageContext)||void 0===n?void 0:n.deviceType,e.finnBlink)}if(null==a?void 0:a.enabled){const{handleDrEdition:t}=yield import("./index-CuNFqYQQ.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-BP-VFLA4.js");t(e.rightColumnSplit)}if(null==r?void 0:r.enabled){const{runKilkaya:t}=yield import("./index-YHUwTTd6.js");yield t(e)}}),Ro=(e,t)=>s(void 0,void 0,void 0,function*(){yield((e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{initConsentManager:r,getConsentAsync:o}=B(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),a=yield rn(e);yield Qn(),yield lr(r),yield lr(o),h("TCF resolved successfully"),yield _o(a,t),h("Run function resolved successfully")}))(e,t)}),qo=(e,t,n,i)=>{var r;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:E,customBody5:C,customIcon1:I,customIcon2:A,customDisplayUrl1:S}=e,T=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:T(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return T(t?I:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=E?E:"",customBody5:null!=C?C:"",logo2:T(A),previewVideoSrc:null!=S?S:""},t)},$o=(e,t)=>{const n=(i=M,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(M),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Bo=(e,t,n,i)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:o}=t,a=i&&Object.values(r).includes(i);n&&a&&io(i,e,ro.NATIVE_AD,o)})(o,n),i())},Uo=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=$o(e.targetId,l))&&void 0!==i?i:c,p=vt[t.language||_.NO],v=qo(s,p,d,t);return(s.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);Bo(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&oo(e,t)})},Vo=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const a=e.getOptions(null!=n?n:{});Uo(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},Ho=()=>{if(!window.location.search.includes("kv_"))return{};const e={},t=(()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e)})();return Object.keys(t).forEach(n=>{n.startsWith("kv_")&&(e[n.slice(3)]=t[n])}),e},zo=e=>{const{siteSpecificConfig:t}=I.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Wo{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Ko=9826;class Go{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=I.get();if(t){return{"aa-sch-supply_type":`app_${e===ln?"phone":cn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=Ni("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield Di(I.get())})}isTrackingForbidden(){return s(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=Ko}={}}=I.get();return"true"===N("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=I.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=I.get(),{getConsentAsync:i}=B(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=I.get();return{"aa-sch-page_type":e}}getCountryCodeKeywords(e){return{"aa-sch-country_code":e}}getInventoryTypeKeywords(){return{"aa-sch-inventory_type":"editorial"}}getHasContextKeywords(e){const t=e["aa-sch-context_keyword"];return{"aa-sch-has_context_keyword":Array.isArray(t)&&t.length?1:0}}getPageOptionsFormatDevice(e="desktop"){return"mobile"===e?"phone":e}}const Jo=new Go;function Qo(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),r=kn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Jo.prepare.bind(Jo);const Yo=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Xo(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Yo.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Zo extends Go{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=I.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=I.get(),{OS:n,isHybridApp:i}=Qo(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Xo(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=I.get(),r=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const ea=new class extends Zo{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a,s;const d=I.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Wo;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Y(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(be()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},we(_.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},ta=ea.prepare.bind(ea);class na extends Go{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=I.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return{width:e||n||0,height:t||i||0}}(),t={width:null!==(i=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==i?i:0,height:null!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=I.get(),{appMode:t,mobileOS:n}=Qo(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=I.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===i?"article":"front"}`}}}const ia=new class extends na{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a;const d=I.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new Wo;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(Y(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>s(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(be()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===Ni("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=u.build(),v=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},we(_.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},ra=ia.prepare.bind(ia);ut(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const oa=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),t("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:[e("span",{id:"advertory-splash-close-label"}),e("svg",{id:"advertory-splash-close-image",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e("path",{d:"M6 3l5 5-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})});var aa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",sa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";ut(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const da=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:aa,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:sa,width:"54",height:"54"})]}),{})]});ut(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const la=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:aa,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:sa,width:"54",height:"54"})]}),{})]});ut(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const ca=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(oa,{}),e(da,{}),e(la,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),ua={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=I.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=I.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(r,l),u=(e=>{const{pageContext:{countryCode:t}}=I.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${Q(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in Pe)||window.innerWidth>=Pe[e]);return{[r]:i?a:o}})(e),p=(e=>{const{pageContext:{countryCode:t}}=I.get(),n=`${Q(t)}-targetid`;return e?{[n]:[e]}:{}})(i),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=Ho(),h=(e=>zo(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(r),m=((e,t)=>zo(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(r,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new Wo).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==s?void 0:s.tag)||void 0===t?void 0:t.reloadKeywords,{[`${Q(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=I.get();return yield t===_.SE?ra(e):ta(e)}),siteEvents:i},pa=((e,t)=>({init:n=>Ro(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:Fo,renderNativeAd:Ao,getVideoPPIDs:Ie,createInitNativeAd:Vo,getVideoAdsConfig:Qr}))(ua,o);export{pa as $,ro as A,Pn as B,On as C,vt as D,or as E,He as F,yn as G,Wn as H,Ln as I,ei as J,Zn as K,ti as L,Ee as M,_ as N,wo as O,bo as P,fo as Q,Gn as R,Te as S,Mi as T,ee as U,Kn as V,_n as W,Xt as X,Se as Y,r as Z,s as _,Ae as a,ca as a0,Yt as b,I as c,a as d,Yn as e,io as f,$t as g,U as h,ut as i,Si as j,Gi as k,h as l,Qi as m,zi as n,Wi as o,Ji as p,Qe as q,et as r,vi as s,kt as t,pi as u,It as v,rr as w,Oe as x,ft as y,Le as z};
|