@schibsted/advertory 3.16.2 → 3.16.4
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.js +1 -1
- package/aftenposten/es/{_auto-entry_aftenposten-B1qXLAMp.js → _auto-entry_aftenposten-BlE_y_Ji.js} +1 -1
- package/aftenposten/es/{events-D_uMtsHS.js → events-CUtqDcOU.js} +1 -1
- package/aftenposten/es/{index-6u6m1kKG.js → index-B1KtxFB7.js} +1 -1
- package/aftenposten/es/{index-C-4Xnyp8.js → index-BhWOnf_2.js} +1 -1
- package/aftenposten/es/{index-DL54H7dW.js → index-Bvf-9Teu.js} +1 -1
- package/aftenposten/es/{index-B2RoGBFe.js → index-CNbFQ-BX.js} +1 -1
- package/aftenposten/es/{index-Cxg6ZL8q.js → index-CupJFn54.js} +1 -1
- package/aftenposten/es/{index-Cbd3tGT7.js → index-D9mCiB6g.js} +1 -1
- package/aftenposten/es/{index-CFKYN9_Q.js → index-DZRcZtb_.js} +1 -1
- package/aftenposten/es/{index-DPeQzy9l.js → index-wSqbF9V9.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-C7uefJk3.js → styles-B9_JpKld.js} +1 -1
- package/aftenposten/es/{styles-3wcBxoVm.js → styles-C89MDvVu.js} +1 -1
- package/aftenposten/es/{styles-CjPginiC.js → styles-CMrcVYVK.js} +1 -1
- package/aftenposten/es/{styles-CMbCXBMC.js → styles-COUqZdTh.js} +1 -1
- package/aftenposten/es/{styles-BH6M7tn5.js → styles-C_lbyOTf.js} +1 -1
- package/aftenposten/es/{styles-BGQXBidn.js → styles-ChLacMFT.js} +1 -1
- package/aftenposten/es/{styles-tVhBhYG5.js → styles-CuOMGl58.js} +1 -1
- package/aftenposten/es/{styles-Bjrz23-R.js → styles-D74DSERs.js} +1 -1
- package/aftenposten/es/{styles-DHgqbFm6.js → styles-DA1BMEN5.js} +1 -1
- package/aftenposten/es/{styles-6pOXHYRj.js → styles-fFriAMtM.js} +1 -1
- package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-BcOVCt6j.js → _auto-entry_aftenpostenv2-BRo6-S5z.js} +1 -1
- package/aftenpostenv2/es/{events-wtHbbAfu.js → events-CZIlksNN.js} +1 -1
- package/aftenpostenv2/es/{index-CwU8zp8d.js → index-BJ42UC0X.js} +1 -1
- package/aftenpostenv2/es/{index-DOYQ0kyH.js → index-BahiBuCe.js} +1 -1
- package/aftenpostenv2/es/{index-BpVC8vDw.js → index-CkrnkXMB.js} +1 -1
- package/aftenpostenv2/es/{index-CHeaUKsw.js → index-DCivBHmy.js} +1 -1
- package/aftenpostenv2/es/{index-DWlUEmgC.js → index-DFUUvPhp.js} +1 -1
- package/aftenpostenv2/es/{index-CFJnRcTK.js → index-Dhspki3Q.js} +1 -1
- package/aftenpostenv2/es/{index-BmO701Iw.js → index-FLUAaRBC.js} +1 -1
- package/aftenpostenv2/es/{index-DQIHkqSI.js → index-xY6xKAlG.js} +1 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-CKsAwzJW.js → styles-B8-WM6bt.js} +1 -1
- package/aftenpostenv2/es/{styles-B6qwKW1F.js → styles-BQgmHSl2.js} +1 -1
- package/aftenpostenv2/es/{styles-aW73vSB9.js → styles-CIVdN4uC.js} +1 -1
- package/aftenpostenv2/es/{styles-B7ddk9XD.js → styles-D7_QuxPh.js} +1 -1
- package/aftenpostenv2/es/{styles-CMt0N0Ld.js → styles-DAfE5V3u.js} +1 -1
- package/aftenpostenv2/es/{styles-bBRWtqAi.js → styles-Dhc_HlDa.js} +1 -1
- package/aftenpostenv2/es/{styles-Bi4rqMX5.js → styles-DxQeWNb2.js} +1 -1
- package/aftenpostenv2/es/{styles-DaTbtDcl.js → styles-EyXxOrF9.js} +1 -1
- package/aftenpostenv2/es/{styles-DaC-C5KQ.js → styles-Vxy-YYl9.js} +1 -1
- package/aftenpostenv2/es/{styles-BUCva-uk.js → styles-gPdnaMff.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/{_auto-entry_aftonbladet-Bpg-L9Im.js → _auto-entry_aftonbladet-CzSNYTgl.js} +1 -1
- package/aftonbladet/es/{events-BhcDA_mF.js → events-Cb_egDqD.js} +1 -1
- package/aftonbladet/es/{index-IGRjL2qd.js → index--TTh1A6u.js} +1 -1
- package/aftonbladet/es/{index-DLu6p4I4.js → index-B9ajGCH9.js} +1 -1
- package/aftonbladet/es/{index-C_cvevdm.js → index-Bum_y_ar.js} +1 -1
- package/aftonbladet/es/{index-DQZxTKpK.js → index-DwgjGg7T.js} +1 -1
- package/aftonbladet/es/{index-BDJXLm0D.js → index-LbTNLjZr.js} +1 -1
- package/aftonbladet/es/{index-DSYh2LiV.js → index-_s9zE9Rq.js} +1 -1
- package/aftonbladet/es/{index-n44Bg1NS.js → index-c_Mo0jVe.js} +1 -1
- package/aftonbladet/es/{index-plhW3GAe.js → index-sRj7ytSE.js} +1 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-BHHZZJLK.js → styles--i2CdCBQ.js} +1 -1
- package/aftonbladet/es/{styles-DBIfhN0m.js → styles-9qgERyeL.js} +1 -1
- package/aftonbladet/es/{styles-BaZpvKy7.js → styles-BNOhCqh6.js} +1 -1
- package/aftonbladet/es/{styles-jL2xUCuO.js → styles-D04jNt_e.js} +1 -1
- package/aftonbladet/es/{styles-DohjfNit.js → styles-Dw_fRjMe.js} +1 -1
- package/aftonbladet/es/{styles-CmaMJLch.js → styles-kHvV6yTq.js} +1 -1
- package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-Do9-CHsr.js → _auto-entry_aftonbladetv2-9XamYl2J.js} +1 -1
- package/aftonbladetv2/es/{events-shRkJF5d.js → events-CBAuYLGa.js} +1 -1
- package/aftonbladetv2/es/{index-Brw03OTC.js → index-1gYyn9Yn.js} +1 -1
- package/aftonbladetv2/es/{index-CQ65U3Gx.js → index-BDLr498k.js} +1 -1
- package/aftonbladetv2/es/{index-fEuuxsSb.js → index-CPsvtx6Y.js} +1 -1
- package/aftonbladetv2/es/{index-DvxP1nHF.js → index-DLrL8-Dl.js} +1 -1
- package/aftonbladetv2/es/{index-2r7fPABq.js → index-DNqCIBPb.js} +1 -1
- package/aftonbladetv2/es/{index-Bs3XYsDb.js → index-TDDPtqNP.js} +1 -1
- package/aftonbladetv2/es/{index-CnhXlTT_.js → index-YwwVUflU.js} +1 -1
- package/aftonbladetv2/es/{index-CsR58KCp.js → index-u76eFG-7.js} +1 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-BeUetSrI.js → styles-BAvZX5eb.js} +1 -1
- package/aftonbladetv2/es/{styles-BBoG4Gla.js → styles-B_t9MMC_.js} +1 -1
- package/aftonbladetv2/es/{styles-pXneNop5.js → styles-Blx11MUT.js} +1 -1
- package/aftonbladetv2/es/{styles-CtnB_Vs0.js → styles-Cca7pauT.js} +1 -1
- package/aftonbladetv2/es/{styles-BJap_se9.js → styles-D5-nuZ90.js} +1 -1
- package/aftonbladetv2/es/{styles-DYcJf6S_.js → styles-DxWGK5FS.js} +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/{_auto-entry_bt-CLb_PCzh.js → _auto-entry_bt-ehwv4YhX.js} +1 -1
- package/bt/es/{events-i55m-fyY.js → events-CswlmiIO.js} +1 -1
- package/bt/es/{index-B-fW6wPr.js → index-CaPEjHGL.js} +1 -1
- package/bt/es/{index-DQPAO5by.js → index-CkeXLKkZ.js} +1 -1
- package/bt/es/{index-0G9hZXQV.js → index-DLQKbZDX.js} +1 -1
- package/bt/es/{index-DTvrjnpx.js → index-DV2S5vjT.js} +1 -1
- package/bt/es/{index-ByJfVuVF.js → index-DZnfKSIf.js} +1 -1
- package/{sa/es/index-RcjYgQuc.js → bt/es/index-WOrAp633.js} +1 -1
- package/bt/es/{index-2xhU3Mnd.js → index-na9kuoec.js} +1 -1
- package/bt/es/{index-BWspzt58.js → index-oztFxBb7.js} +1 -1
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-xkUqfhdm.js → styles-9C9w_1v2.js} +1 -1
- package/bt/es/{styles-DCjGBzDv.js → styles-BgN5plBg.js} +1 -1
- package/{sa/es/styles-CAqSGv_R.js → bt/es/styles-Bq0Lm1Be.js} +1 -1
- package/bt/es/{styles-DmJDIc9A.js → styles-CgrEji-B.js} +1 -1
- package/bt/es/{styles-Cg3Md_nX.js → styles-CqRPfGp7.js} +1 -1
- package/bt/es/{styles-5Xb6Z7Ab.js → styles-D3PPkHNP.js} +1 -1
- package/bt/es/{styles-BijH4c1y.js → styles-DGc5_qiR.js} +1 -1
- package/bt/es/{styles-DvpbRbeS.js → styles-Do1o2Wz9.js} +1 -1
- package/bt/es/{styles-BI39vQ_L.js → styles-DqRKLcRJ.js} +1 -1
- package/btv2/es/{_auto-entry_btv2-HS8Sqs9N.js → _auto-entry_btv2-CZodFAHM.js} +1 -1
- package/{omni/es/events-DAa4O10W.js → btv2/es/events-ylLNlZUT.js} +1 -1
- package/btv2/es/{index-bvPy2Rzw.js → index-BKKmemab.js} +1 -1
- package/btv2/es/{index-B1mRTWim.js → index-BRpv_ozi.js} +1 -1
- package/btv2/es/{index-C7UBOydN.js → index-CdJ1kkYS.js} +1 -1
- package/{omni/es/index-iNGHttDP.js → btv2/es/index-DAUyNa-I.js} +1 -1
- package/btv2/es/{index-B1M2e1Je.js → index-DEVM6nNl.js} +1 -1
- package/btv2/es/{index-DNMpXXc5.js → index-Dy9vnfFT.js} +1 -1
- package/{sav2/es/index-DL2lRJur.js → btv2/es/index-QxieEVef.js} +1 -1
- package/btv2/es/{index-Sm6cPLFZ.js → index-UeZmtDh2.js} +1 -1
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-CRQ-qWJt.js → styles-B57rZkCB.js} +1 -1
- package/{sav2/es/styles-Bq1OB23Y.js → btv2/es/styles-BA3ADevc.js} +1 -1
- package/btv2/es/{styles-CbI2Kwv2.js → styles-CJtG8dn-.js} +1 -1
- package/{sav2/es/styles-BhzlmK8c.js → btv2/es/styles-CKJr-lVT.js} +1 -1
- package/{sav2/es/styles-CwiXKpbk.js → btv2/es/styles-DLJVQud7.js} +1 -1
- package/{sav2/es/styles-tZ63l3jP.js → btv2/es/styles-D_Y6uiSc.js} +1 -1
- package/btv2/es/{styles-D6bbED88.js → styles-Dlk_Ip0t.js} +1 -1
- package/btv2/es/{styles-CCjpkpYS.js → styles-Oc4pEsL9.js} +1 -1
- package/btv2/styles.css +1 -1
- package/e24/es/{_auto-entry_e24-rymDwEuc.js → _auto-entry_e24-DUOEi-7a.js} +1 -1
- package/e24/es/{events-B44J80Yw.js → events-LOyJVR4y.js} +1 -1
- package/e24/es/{index-B4qMrV3u.js → index-BYvROhdJ.js} +1 -1
- package/e24/es/{index-SBetL1bs.js → index-BxIA6OFG.js} +1 -1
- package/e24/es/{index-BpHwgNWK.js → index-CI2lUM6N.js} +1 -1
- package/e24/es/{index-Dv2-HSUt.js → index-D0buLN9e.js} +1 -1
- package/e24/es/{index-DERM4Kn4.js → index-DDntsOiK.js} +1 -1
- package/e24/es/{index-BRWSbGY-.js → index-DFYKSnGZ.js} +1 -1
- package/e24/es/{index-DzhIcBep.js → index-N2iiAegk.js} +1 -1
- package/e24/es/{index-DU8GbQ7X.js → index-pS4w5SCT.js} +1 -1
- package/e24/es/index.js +1 -1
- package/{tv4/es/styles-Hf0TczXZ.js → e24/es/styles-9j5QW9mg.js} +1 -1
- package/e24/es/{styles-EWzKTzHW.js → styles-BAlmSlo-.js} +1 -1
- package/e24/es/{styles-CoK0Suc1.js → styles-BYVlD50k.js} +1 -1
- package/e24/es/{styles-C9vFD5g3.js → styles-CHRP-b1i.js} +1 -1
- package/e24/es/{styles-BUO57GaH.js → styles-CWBbja76.js} +1 -1
- package/e24/es/{styles-DaP1vRGX.js → styles-Cv5D63_u.js} +1 -1
- package/e24/es/{styles-CUOxyjVS.js → styles-CxQkaeVL.js} +1 -1
- package/e24/es/{styles-CUemn1LO.js → styles-DzqmIt7W.js} +1 -1
- package/e24/es/{styles-Bl-FlvVo.js → styles-nSSEHaps.js} +1 -1
- package/e24/es/{styles-DRTDxRhD.js → styles-rhjbhrHD.js} +1 -1
- package/e24/es/{styles-CBK84aAT.js → styles-tdhn3He4.js} +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-BsvJG3bT.js → _auto-entry_fotbollskanalen-B5j5naRj.js} +1 -1
- package/fotbollskanalen/es/{events-U1PAHSie.js → events-iE_ta5ra.js} +1 -1
- package/fotbollskanalen/es/{index-CcDczicS.js → index-BLCR0RCO.js} +1 -1
- package/fotbollskanalen/es/{index-X9O_SnPI.js → index-BV4LvYwd.js} +1 -1
- package/fotbollskanalen/es/{index-B_-428Tz.js → index-BlxTrAv0.js} +1 -1
- package/fotbollskanalen/es/{index-jm_EtnPl.js → index-COHWVoGT.js} +1 -1
- package/fotbollskanalen/es/{index-CrAYKGWF.js → index-Dcu8YgOI.js} +1 -1
- package/fotbollskanalen/es/{index-BcLQVK_R.js → index-Z-8x5BlG.js} +1 -1
- package/fotbollskanalen/es/{index-CRfxnewr.js → index-ahERvv0_.js} +1 -1
- package/fotbollskanalen/es/{index-lYEeMuk9.js → index-ljaO7Sz6.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-M1Y_hOJY.js → styles-2_Wg_822.js} +1 -1
- package/fotbollskanalen/es/{styles-BActnTj4.js → styles-BWZf0qlU.js} +1 -1
- package/fotbollskanalen/es/{styles-CEF07njO.js → styles-CUmxXDzi.js} +1 -1
- package/fotbollskanalen/es/{styles-BbGftZIN.js → styles-hJH6e6uE.js} +1 -1
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/{_auto-entry_koket-C0ktrXrV.js → _auto-entry_koket-COl6qOAL.js} +1 -1
- package/koket/es/{events-BovmkQVb.js → events-DxV8ECjh.js} +1 -1
- package/koket/es/{index-BezAAWBN.js → index-0InmJwma.js} +1 -1
- package/koket/es/{index-BAN5nYuS.js → index-B0W4xS8a.js} +1 -1
- package/koket/es/{index-BX3TIHCj.js → index-B2Ki-Wuk.js} +1 -1
- package/koket/es/{index-D4iiE_kO.js → index-B5gaBCJI.js} +1 -1
- package/{svdv2/es/index-BFqr1sCP.js → koket/es/index-CZGP5fWB.js} +1 -1
- package/koket/es/{index-CMuJp9d-.js → index-JLVKCZgL.js} +1 -1
- package/koket/es/{index-C9hbuAmi.js → index-ZAf-EpqI.js} +1 -1
- package/koket/es/{index-BB_MtprY.js → index-qFk4Sz_e.js} +1 -1
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-hEjIGwof.js → styles-CU3u6TIz.js} +1 -1
- package/koket/es/{styles-C0HS3OLm.js → styles-CZcjAa7I.js} +1 -1
- package/{svdv2/es/styles-DOv8lf2Y.js → koket/es/styles-CxbAIYL-.js} +1 -1
- package/{svdv2/es/styles-BFc0NbWI.js → koket/es/styles-upRapWD2.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/mtv/es/{_auto-entry_mtv-PapZnH4W.js → _auto-entry_mtv-NU-FXyt_.js} +1 -1
- package/mtv/es/{events-BCVnwxmr.js → events-BbgeuOvW.js} +1 -1
- package/mtv/es/{index-Cj-7zBIk.js → index-BMOv7vq8.js} +1 -1
- package/mtv/es/{index-C_K15-N2.js → index-BWLVs3DP.js} +1 -1
- package/mtv/es/{index-DHJi2AoA.js → index-Bfjoec7X.js} +1 -1
- package/mtv/es/{index-iEmKomsz.js → index-Bmbw0Mdw.js} +1 -1
- package/mtv/es/{index-Bq-dre8e.js → index-C2Ug4z-6.js} +1 -1
- package/mtv/es/{index-D3znrlvr.js → index-CSdaW1tz.js} +1 -1
- package/mtv/es/{index-CXCyp7D9.js → index-CnjlNi2G.js} +1 -1
- package/{svd/es/index-vQo3voNo.js → mtv/es/index-D1Bc7pLb.js} +1 -1
- package/mtv/es/index.js +1 -1
- package/omni/es/{_auto-entry_omni-tnUYzloM.js → _auto-entry_omni-D0biFVKt.js} +1 -1
- package/{tvnu/es/events-DjK5W8oQ.js → omni/es/events-DdIPXeSL.js} +1 -1
- package/omni/es/{index-l3N6EL0C.js → index--YEU9srd.js} +1 -1
- package/omni/es/{index-DpvQhzJk.js → index-BPmV3ukJ.js} +1 -1
- package/omni/es/{index-DCZ7L5WC.js → index-BfuGeAGM.js} +1 -1
- package/omni/es/{index-CoYdSw_v.js → index-Bg60Y4DK.js} +1 -1
- package/{tvnu/es/index-DCcyV8vv.js → omni/es/index-CDj2Yu0r.js} +1 -1
- package/omni/es/{index-B7YFCJkD.js → index-CYFN3LGC.js} +1 -1
- package/{btv2/es/index-hCK0IPjO.js → omni/es/index-DEecaBeA.js} +1 -1
- package/omni/es/{index-DViuPIrZ.js → index-Df5MwZQ9.js} +1 -1
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-8iCz1vgS.js → styles-BKxk3JDk.js} +1 -1
- package/omni/es/{styles-DcFUZPbk.js → styles-jSp_7zj-.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/{_auto-entry_sa-D8DHT4og.js → _auto-entry_sa-D7uxt-Z4.js} +1 -1
- package/sa/es/{events--OYD4uSp.js → events-Cz3y619r.js} +1 -1
- package/sa/es/{index-B8ZUvfqU.js → index-AitKRGvz.js} +1 -1
- package/sa/es/{index-vpbcNbZm.js → index-BtgtAVq2.js} +1 -1
- package/sa/es/{index-C1TSyiDe.js → index-CRwbNQ3b.js} +1 -1
- package/sa/es/{index-C7Ca92qe.js → index-D0V_DsyK.js} +1 -1
- package/sa/es/{index-s2Kchy8N.js → index-D0qP6RAx.js} +1 -1
- package/{bt/es/index-D3WJoyU8.js → sa/es/index-QtIpNiRD.js} +1 -1
- package/sa/es/{index-Ds0AUAxf.js → index-Rb_h-DuR.js} +1 -1
- package/sa/es/{index-ClPS6mNs.js → index-pz6M6Pmq.js} +1 -1
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-4JFiFkQM.js → styles-B-MHUdg1.js} +1 -1
- package/sa/es/{styles-CKSAaiVF.js → styles-B3YrYCtK.js} +1 -1
- package/sa/es/{styles-D02qwbqo.js → styles-B8h_RVHS.js} +1 -1
- package/sa/es/{styles-CZpmTskg.js → styles-CLej4Y13.js} +1 -1
- package/{vg/es/styles-i54p_GZQ.js → sa/es/styles-CU1qwYrK.js} +1 -1
- package/sa/es/{styles-CWgWthWE.js → styles-D4lj2opE.js} +1 -1
- package/sa/es/{styles-o7-4kP1n.js → styles-DcRv4egL.js} +1 -1
- package/{vg/es/styles-C_lMPwsL.js → sa/es/styles-DwFobIym.js} +1 -1
- package/sa/es/{styles-BmE4BFB_.js → styles-qOy4_Fn8.js} +1 -1
- package/sav2/es/{_auto-entry_sav2-BpwtgIN3.js → _auto-entry_sav2-DdQQgA8a.js} +1 -1
- package/sav2/es/{events-Bc1PzFLM.js → events-C-sp161a.js} +1 -1
- package/{omni/es/index-Bt7hkwEA.js → sav2/es/index-ByHXpRaC.js} +1 -1
- package/sav2/es/{index-B7aLPTGG.js → index-CD9wmOVo.js} +1 -1
- package/sav2/es/{index-BWKo_MdR.js → index-CWTv6AkX.js} +1 -1
- package/sav2/es/{index-CEm8rXba.js → index-CaqD4cbT.js} +1 -1
- package/sav2/es/{index-DPLWBjgt.js → index-CpEj8V6E.js} +1 -1
- package/{tvnu/es/index-Ckrhaaso.js → sav2/es/index-DSp1UYQR.js} +1 -1
- package/sav2/es/{index-D_IDf3_s.js → index-DjzmQjMW.js} +1 -1
- package/sav2/es/{index-BhLyW5hO.js → index-qSqDeIR6.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/sav2/es/{styles-D54W_5G1.js → styles-1rUHN4am.js} +1 -1
- package/{vgv2/es/styles-Bu_xPKbr.js → sav2/es/styles-BMfM5HTj.js} +1 -1
- package/{btv2/es/styles-QryraLih.js → sav2/es/styles-BdBc77e7.js} +1 -1
- package/sav2/es/{styles-SiZpJ80D.js → styles-CN_iygGJ.js} +1 -1
- package/{vgv2/es/styles-BNZVwUCa.js → sav2/es/styles-D2ye6hfF.js} +1 -1
- package/sav2/es/{styles-DYJCOF4k.js → styles-DP52YWuu.js} +1 -1
- package/{vgv2/es/styles-rfto978F.js → sav2/es/styles-Ds283eUH.js} +1 -1
- package/{btv2/es/styles-idxgaQUk.js → sav2/es/styles-UW14kTbC.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/{_auto-entry_svd-Cd7f0R9Z.js → _auto-entry_svd-C0xbDY3-.js} +1 -1
- package/{tv4/es/events-RebxTAyP.js → svd/es/events-DLpjHm6K.js} +1 -1
- package/svd/es/{index-DTALsVOk.js → index-B2pFQWYH.js} +1 -1
- package/svd/es/{index-CfWJzVY9.js → index-BHDRFlNX.js} +1 -1
- package/svd/es/{index-DyyX5ap9.js → index-CHGVjXnj.js} +1 -1
- package/svd/es/{index-CgANpoPE.js → index-Cnw5PflJ.js} +1 -1
- package/svd/es/{index-CXNHZrgw.js → index-CpoBXJU2.js} +1 -1
- package/{mtv/es/index-BOVIWQ-8.js → svd/es/index-D5Cc5pC9.js} +1 -1
- package/svd/es/{index-CQ661Xvb.js → index-De60gWmg.js} +1 -1
- package/svd/es/{index-Gq-Ql3_Q.js → index-keRPTHEJ.js} +1 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-M2SRThP2.js → styles-0pQAztut.js} +1 -1
- package/svd/es/{styles-CucZviuO.js → styles-D5ua1JqQ.js} +1 -1
- package/svd/es/{styles-ebvjh3II.js → styles-IkOrrSFf.js} +1 -1
- package/svd/es/{styles-w1_Tjjf1.js → styles-YQZsiA7w.js} +1 -1
- package/svd/es/{styles-ChI9QyDm.js → styles-bqyqHzrV.js} +1 -1
- package/svd/es/{styles-BlpnIMAA.js → styles-x6vY4er_.js} +1 -1
- package/svdv2/es/{_auto-entry_svdv2-BDn1Q9XV.js → _auto-entry_svdv2-C3ebCCG0.js} +1 -1
- package/svdv2/es/{events-BGDs6NQb.js → events-C443LLXR.js} +1 -1
- package/svdv2/es/{index-D8DCR2IF.js → index-4bK_U_RB.js} +1 -1
- package/svdv2/es/{index-xJhtZxT9.js → index-55C2wQXN.js} +1 -1
- package/svdv2/es/{index-DbIjGiin.js → index-BFM5Gu0-.js} +1 -1
- package/svdv2/es/{index-CBTqCYTq.js → index-DLYK0QoW.js} +1 -1
- package/svdv2/es/{index-CQZNvCA7.js → index-DUaFm_HT.js} +1 -1
- package/svdv2/es/{index-B3Sz92t0.js → index-DbYxPAvn.js} +1 -1
- package/svdv2/es/{index-Chgbk0yn.js → index-FM_jg1Az.js} +1 -1
- package/{koket/es/index-CZiGJACJ.js → svdv2/es/index-ugHMFPPs.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles-DWE-fYIe.js → svdv2/es/styles-Bci2zQ3-.js} +1 -1
- package/svdv2/es/{styles-DTkKb7gv.js → styles-Cmz2adpN.js} +1 -1
- package/svdv2/es/{styles-BgAa5_sm.js → styles-CrEG_G_M.js} +1 -1
- package/{koket/es/styles-CXH6miLx.js → svdv2/es/styles-DaG-XjUb.js} +1 -1
- package/svdv2/es/{styles-QXYvDja1.js → styles-DgAsQPFN.js} +1 -1
- package/svdv2/es/{styles-DVTfeGB1.js → styles-K9B6h3Ll.js} +1 -1
- package/svdv2/es/{styles-D-NNSAhr.js → styles-YOR80pd7.js} +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/{_auto-entry_tv4-GaCM0Lzx.js → _auto-entry_tv4-C-dtxWxn.js} +1 -1
- package/{svd/es/events-sP-h-HNo.js → tv4/es/events-DZJEqEYo.js} +1 -1
- package/tv4/es/{index-BbMM8XVf.js → index-BJJHX2WO.js} +1 -1
- package/tv4/es/{index-DciuzESQ.js → index-BZA-lOUr.js} +1 -1
- package/tv4/es/{index-vfK21mrZ.js → index-CNLuw0Rm.js} +1 -1
- package/tv4/es/{index-BrL5n1jS.js → index-CPFfRpQa.js} +1 -1
- package/tv4/es/{index-tDimum_4.js → index-DFhgV9gu.js} +1 -1
- package/tv4/es/{index-TMi7DEVO.js → index-DZpF5Tsb.js} +1 -1
- package/tv4/es/{index-COB1Mt-X.js → index-DysWHEcd.js} +1 -1
- package/tv4/es/{index-BTMzJQuh.js → index-Q2ALUaQT.js} +1 -1
- package/tv4/es/index.js +1 -1
- package/tv4/es/{styles-BBYtRDZ-.js → styles-1-RVgD3z.js} +1 -1
- package/tv4/es/{styles-v4eFBECR.js → styles-SjGCKDhY.js} +1 -1
- package/{e24/es/styles-BcOm89oW.js → tv4/es/styles-THRKFT8J.js} +1 -1
- package/tv4/es/{styles-ASWqfgyJ.js → styles-hodSozaH.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/{_auto-entry_tvnu-hrDQ5eUr.js → _auto-entry_tvnu-A8X9nn0O.js} +1 -1
- package/{btv2/es/events-BlA_3Ekx.js → tvnu/es/events-BZf62V_Q.js} +1 -1
- package/{vgv2/es/index-BHHPBWuu.js → tvnu/es/index-B0k3dpfm.js} +1 -1
- package/tvnu/es/{index-0L89OFLm.js → index-C1G3Nyqo.js} +1 -1
- package/tvnu/es/{index-CSf_y-Ex.js → index-C_7uSzeI.js} +1 -1
- package/tvnu/es/{index-Bm54mu2z.js → index-DdQufyMj.js} +1 -1
- package/tvnu/es/{index-BaCS1JZg.js → index-DgUdkX79.js} +1 -1
- package/{btv2/es/index-xJsGJ-2I.js → tvnu/es/index-DgVPlgaB.js} +1 -1
- package/tvnu/es/{index-CyZjkHD0.js → index-RTSJVboG.js} +1 -1
- package/{sav2/es/index-BpKgei7N.js → tvnu/es/index-bHqliccU.js} +1 -1
- package/tvnu/es/index.js +1 -1
- package/{btv2/es/styles-BcV7jAZp.js → tvnu/es/styles-CkP68eHH.js} +1 -1
- package/tvnu/es/{styles-BI29wY3Y.js → styles-DiHmTFYb.js} +1 -1
- package/tvnu/es/{styles-iZv_wcR1.js → styles-m4hp-sdp.js} +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/{_auto-entry_vg-D2lReLEt.js → _auto-entry_vg-DNa6Zs9_.js} +1 -1
- package/vg/es/{events-CvmjPWyG.js → events-CDJLCUoY.js} +1 -1
- package/vg/es/{index-034Z_DDL.js → index-B98-ZBRD.js} +1 -1
- package/vg/es/{index-DR4phW5U.js → index-BIOVzdNr.js} +1 -1
- package/vg/es/{index-CXpYusGo.js → index-CDt1vTzM.js} +1 -1
- package/vg/es/{index-BJmnLSx_.js → index-CFaWzyJ3.js} +1 -1
- package/vg/es/{index-BwBOUE0L.js → index-DOr3chmu.js} +1 -1
- package/vg/es/{index-CaqAfC1G.js → index-DWodW_or.js} +1 -1
- package/vg/es/{index-DWLgT_Vh.js → index-V14HRk-i.js} +1 -1
- package/vg/es/{index-Dfqo8KTg.js → index-b5K8EpJE.js} +1 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-C-y7RTe6.js → styles-BqzzSqGH.js} +1 -1
- package/vg/es/{styles-gdn-bSE7.js → styles-BvSYvxCX.js} +1 -1
- package/{sa/es/styles-e-WfvyQA.js → vg/es/styles-CD6wnz_I.js} +1 -1
- package/vg/es/{styles-CoKxZHrs.js → styles-CaGAv7mD.js} +1 -1
- package/vg/es/{styles-CgXjTYoM.js → styles-CovV6F3X.js} +1 -1
- package/vg/es/{styles-Cz6pROmm.js → styles-CyKpnIYw.js} +1 -1
- package/vg/es/{styles-BznanjlT.js → styles-DCIcj14K.js} +1 -1
- package/vg/es/{styles-Dz_pB6tU.js → styles-DHzExoc8.js} +1 -1
- package/vg/es/{styles-5PHx6-IY.js → styles-DLY4Luu1.js} +1 -1
- package/vg/es/{styles-nQ4QGPrT.js → styles-DYSiBh3y.js} +1 -1
- package/vg/es/{styles-CMRzLEuB.js → styles-RP7Tt0C9.js} +1 -1
- package/{bt/es/styles-DnCYeIp4.js → vg/es/styles-XyCTMcby.js} +1 -1
- package/vg/es/{styles-CEqMGExn.js → styles-ZIQ90U5C.js} +1 -1
- package/vg/es/{styles-6ycxvabw.js → styles-k4ROb5VY.js} +1 -1
- package/vg/es/{styles-C9Y37Uo4.js → styles-ytKIPmyw.js} +1 -1
- package/vgv2/es/{_auto-entry_vgv2-M_Gc7YYW.js → _auto-entry_vgv2-CpyhfHz5.js} +1 -1
- package/vgv2/es/{events-BIsyZr7G.js → events-CTyWfMSW.js} +1 -1
- package/vgv2/es/{index-CBrUGzNu.js → index-6XNPKvow.js} +1 -1
- package/vgv2/es/{index-iFtnD3MK.js → index-BdA2yoZ4.js} +1 -1
- package/vgv2/es/{index-XNdmVwjt.js → index-BeDSXJeV.js} +1 -1
- package/vgv2/es/{index-DZdfKL9H.js → index-CMN3SAiS.js} +1 -1
- package/vgv2/es/{index-Rm5ketJd.js → index-CfZEVETQ.js} +1 -1
- package/vgv2/es/{index-fqmHcq5_.js → index-DK_TJSgW.js} +1 -1
- package/{tvnu/es/index-DBlMhAgk.js → vgv2/es/index-DhRnUmhu.js} +1 -1
- package/vgv2/es/{index-CSsr8Jjy.js → index-HF9byTO-.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/{btv2/es/styles-DZiZUSGn.js → vgv2/es/styles-B0bV6vR2.js} +1 -1
- package/vgv2/es/{styles-T7N4v0yp.js → styles-BSFEPLui.js} +1 -1
- package/vgv2/es/{styles-Dp-scnt2.js → styles-BtLO7og0.js} +1 -1
- package/vgv2/es/{styles-Xss3AJbe.js → styles-Bwmu859K.js} +1 -1
- package/vgv2/es/{styles-BIYViMHc.js → styles-C0x5dp7q.js} +1 -1
- package/vgv2/es/{styles-FN3vEV-X.js → styles-CeI6zd5f.js} +1 -1
- package/vgv2/es/{styles-BLz4Y1Vc.js → styles-Cj4SftEO.js} +1 -1
- package/vgv2/es/{styles-BoFWnu0n.js → styles-CkIBoY8c.js} +1 -1
- package/vgv2/es/{styles-BNP6iNE-.js → styles-CyxMC1US.js} +1 -1
- package/{sav2/es/styles-CVpHwV9A.js → vgv2/es/styles-DOTGYvHi.js} +1 -1
- package/vgv2/es/{styles-Du6_Nwi7.js → styles-Dckq0fV4.js} +1 -1
- package/vgv2/es/{styles-CRXC6umW.js → styles-DnwjCVn-.js} +1 -1
- package/vgv2/es/{styles-Bupc-l79.js → styles-Dv1XNiTG.js} +1 -1
- package/{tvnu/es/styles-8CQ77QKW.js → vgv2/es/styles-HQUSsi3S.js} +1 -1
- package/vgv2/es/{styles-CAlAHhk9.js → styles-LBd9mR4l.js} +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react/jsx-runtime";const e={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},t={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",MTV:"mtv"},n={publisherClassName:t.MTV,classesToRemoveOnRefresh:[]};function i(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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function o(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{s(i.next(e))}catch(e){r(e)}}function d(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((i=i.apply(e,t||[])).next())})}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,d;"function"==typeof SuppressedError&&SuppressedError;var s=r(function(){if(d)return a;d=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)?l((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 o(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 r(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var a={};return i.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],i)}),o(t).forEach(function(o){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r(e,o)&&i.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,i)(e[o],t[o],i):a[o]=n(t[o],i))}),a}function l(t,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(o);return a===Array.isArray(t)?a?r.arrayMerge(t,o,r):s(t,o,r):n(o,r)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},a=l}());const l={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},c=(e,t)=>s(e,t,l),u=(e,t)=>Object.assign(Object.assign({},e),t),p=(e,t)=>{var n;return c(null!==(n=e)&&void 0!==n?n:{},t)},v=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},g=(e,t)=>{console.warn("[Advertory WARN]: ",e)},h=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||g("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||g("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||g("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||g("pageContext.deviceType is required."),n||g("pageOptions is required."),i||g("placements is required."),(null==o?void 0:o.defaultThreshold)||g("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,o;const r=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===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&g(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},f={placements:(e,t)=>t,takeover:p,refreshConfig:u,editory:p,appearanceConfig:p,pageContext:u,pageOptions:u,pageSectionsSelectors:u,tcf:u},m=(e,t)=>{const n=e;for(const e of Object.keys(f)){const i=t[e];void 0!==i&&(n[e]=f[e](n[e],i))}},y=6;class b{set(e){h(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");m(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=c(b.DEFAULT_SITE_HANDLERS,e)}}b.DEFAULT_SITE_HANDLERS={siteEvents:e,initNativeAd:()=>{}};const w=new b,C=w.modifyConfigProperties.bind(w);class I{initialize(){this.DATA=Object.assign({},I.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)}}I.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const E=new I,T=864e5,S=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return v("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=T)=>{const o={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(o))},getByTimestamp:(t,n=T)=>{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 v("Error with parsing localStorage data"),null}}}})(),A="glimrTags",O=["glwe_","glwet_"],x={geofenceTags:[],geoTags:[],weatherTags:[]},k=e=>new URLSearchParams(window.location.search).get(e),P="takeover",L="native_override_desc2",_=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 v("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(v("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{v("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{v("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);v("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),j={NO:"no",SE:"se"},$="cmp:loaded";let N="undefined"!=typeof window?window._tcf_:void 0,q=!1;const F=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,a=k("bypass_tcf"),d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(v("TCF bypass param detected, returning consent: true"),!0):(v("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(q)return null;if(!N)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=N.getConsentedToAllSync();return v(`TCF consented to all is: ${t}`),N.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(v("Getting TCF consent manager..."),window._tcf_)return v("TCF consent manager is already available"),N=window._tcf_,void e(N);v("TCF consent manager is not available");const n=()=>{v("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(N=window._tcf_,e(N)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener($,n),q=!0,t(new Error("Timeout waiting for CMP to load"))},r);v("Listening for CMP loaded event..."),document.addEventListener($,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>o(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`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===j.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===j.NO;if(t||i)return v("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield _(e);if(!(null==e?void 0:e.enabled))return!0;const o=d();return null!==o?o:yield new Promise((e,t)=>{try{if(!N)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(()=>{v("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);N.onTcfReady(()=>{v("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),N.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},R=(e,t,n,...i)=>o(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return v(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`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:o}=F(e,0,n);return(yield o())?(v(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(v(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),M=(...e)=>o(void 0,[...e],void 0,function*(e=w.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield R(t,n,i,"glimr")}const{getConsentAsync:o}=F(t,0,i);return yield o()}),D=()=>o(void 0,void 0,void 0,function*(){const{glimr:e}=w.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void v("No consent for glimr data fetching.");const t=yield(n=500,o(void 0,void 0,void 0,function*(){return yield Promise.race([o(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)=>{S.setWithTimestamp(A,{tags:e,tagMappings:t}),n(!0)})})}catch(e){v(`Error during getting glimr data: ${e}`)}else v("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),B={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"},U=e=>O.some(t=>e.startsWith(t)),H=e=>e.startsWith("glgc_"),V=e=>e.startsWith("glci_"),W=e=>!U(e)&&!H(e),K=e=>e===j.NO?"no-sno":"se-generic",z=(e,t)=>o(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:o}={}}=e,r=yield M(e);if(!(null==i?void 0:i.enabled)||!r)return v("No consent for getting glimr tags."),{};const a=K(o),d=G(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),G=(e,t)=>{const n=X();if(!n)return x;const i=((e=[])=>e.filter(U))(n),o=((e=[])=>e.filter(H))(n),r=((e=[],t,n)=>{var i;const o=e.filter(W);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=B[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:r,geofenceTags:o,weatherTags:i}},X=()=>{const e=S.getByTimestamp(A);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},J=()=>{var e;return((e=[])=>e.filter(V))(null!==(e=X())&&void 0!==e?e:[])},Q=()=>(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),Y=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Z=()=>{const e=Y();return e.cmd||(e.cmd=[]),e.cmd},ee=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:o}}=w.get(),r=[`${K(o)}-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?r:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},te="opaque",ne=e=>o(void 0,void 0,void 0,function*(){if(e.type!==te){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ie={get:(e,...t)=>o(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,r=i(t,["timeout"]);if(n)return((e,t,n)=>o(void 0,void 0,void 0,function*(){const i=new AbortController,o=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return ne(n)}finally{clearTimeout(o)}}))(e,r,n);const a=yield fetch(e,r);return ne(a)}),post:(e,t,n)=>o(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),o=yield fetch(e,{method:"POST",headers:t,body:i});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},oe="advertory:ppids-cache",re={[j.SE]:`SCH${j.SE.toUpperCase()}-EnvHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-EnvHash`},ae={[j.SE]:`SCH${j.SE.toUpperCase()}-UserHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-UserHash`},de={[j.SE]:`sch${j.SE}-envhash-v3`,[j.NO]:`sch${j.NO}-envhash-v3`},se={[j.SE]:`sch${j.SE}-userhash-v3`,[j.NO]:`sch${j.NO}-userhash-v3`},le={[j.SE]:`'sch${j.SE}-iosid-v3'`,[j.NO]:`'sch${j.NO}-iosid-v3'`},ce={[j.SE]:`sch${j.SE}-androidid-v3`,[j.NO]:`sch${j.NO}-androidid-v3`},ue={[j.SE]:"sdrn:schibsted.com:user",[j.NO]:"sdrn:spid.no:user"};class pe{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 ve=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return o(this,arguments,void 0,function*(e,t=1e4){var n,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=o.xandr)||void 0===n?void 0:n.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||v("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:""}},ge=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return o(this,void 0,void 0,function*(){var n,i,o,r,a,d,s,l,c,u,p;const v=S.get(oe),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===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.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||v("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 o in e){if((null===(n=e[o])||void 0===n?void 0:n.plain)!==(null===(i=t[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const o=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}}:{});S.set(oe,o)}hashPPIDs(e,t){return o(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ie.post(t,n,e)}catch(e){return v("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return o(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>o(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ue[t]}:${n}`:null}))(t,n),r=yield(a=t,o(void 0,void 0,void 0,function*(){const e=yield a.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var a;const d=window.advertory_idfv,s=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"}},d?{idfv:{plain:d}}:{}),s?{anId:{plain:s}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:o.plain}}},he=e=>o(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:o}}=e;if(!(yield R(n,o,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([ve.processPPIDs(t,null==n?void 0:n.timeout),ge.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){v(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),fe=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]).add(r,le[e]).add(a,ce[e]).buildEids()}]}},me=()=>{const{ppid1:e,ppid2:t}=ve.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ye=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]).add(r,le[e]).add(a,ce[e]).buildRyEids()}}]}}},be=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs();return(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]).buildRyEids()},Ce=e=>o(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Ie=()=>o(void 0,void 0,void 0,function*(){const{ppid1:e}=ge.getPPIDs();return e}),Ee=(e,...t)=>o(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 o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{d(),n()},a=()=>{d(),i(new Error(`Failed to load ${e}`))},d=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(s)};o.addEventListener("load",r),o.addEventListener("error",a);const s=setTimeout(()=>{d(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).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"},Se={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}]},Ae={wallpaper:1600,"l-format":1600},Oe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Be(e,Te.ANY_FULLSCREEN)},xe=e=>{const{native:t}=e;return!!t},ke=e=>Be(e,Te.FULLWIDTH),Pe=e=>{const{targetId:t}=e;return t.includes("takeover")||Be(e,Te.TAKEOVER)},Le=e=>Be(e,Te.TAKEOVER),_e=e=>Be(e,Te.WALLPAPER),je=e=>Be(e,Te.COLLAPSE),$e=e=>e.targetId.includes("sponsorstripe"),Ne=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},qe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Fe=e=>e.targetId.startsWith("midboard"),Re=e=>e.targetId.includes("widescreen"),Me=e=>e.width>=1260&&e.width<=1280,De=e=>e.width>=1600&&e.width<=1620,Be=(e,t)=>{const n=Se[t];if(!n)return!1;return!!n.find(t=>{var n,i;const o=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===o,d=!t.height||t.height===r;return a&&d})},Ue="advertory-fullscreen-scroll",He="advertory-fullscreen-scroll-wrapper",Ve="fullscreen-scroll-in-screen",We="in-screen",Ke=e=>e.includes("snoap.no"),ze=e=>{var t,n,i,o,r;return!!(null===(r=null===(o=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===o?void 0:o.ads[1])||void 0===r?void 0:r.rtb)},Ge=(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()),o=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,o).toString()},Xe=Ge([],()=>{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:o,clientHeight:r}=i,a=e/o,d=t/r;i.style.transform=`scale(${a},${d})`,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}),Je=e=>{const t=Ge([],()=>{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},Qe=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},Ye=[],Ze={},et=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,o=new IntersectionObserver(e=>tt(e,i),{}),r=it(e);o.observe(e),i&&(Ze[r]=at(e,null==t?void 0:t.options))},tt=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=it(e);n?(nt(i,n),ot(e,i,t)):(nt(i,n),rt(e,i,t))})},nt=(e,t)=>{var n,i;const o=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!o)return;const r=t?"showFullscreen":"hideFullscreen";null===(i=o.contentWindow)||void 0===i||i.postMessage(`advertory:${r}-${e}`,"*")},it=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},ot=(e,t,n)=>{e.classList.add(We),document.body.classList.add(Ve),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ye.includes(t)||Ye.push(t),n&&window.addEventListener("scroll",Ze[t],{passive:!0})},rt=(e,t,n)=>{Ye.includes(t)&&(n&&window.removeEventListener("scroll",Ze[t]),document.body.classList.remove(Ve),e.classList.remove(We),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},at=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:o=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&dt(e,r,o,0),a.length&&dt(e,a,o,40)}},dt=(e,t,n,i)=>{const o=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>r?(a-r)/t-i:(r+t-(a+o))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};function st(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}st('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 lt="left",ct={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}};let ut=null;const pt=(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=Qe(n),n=(e=>{if(Ke(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=Je(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>Ke(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)),Ke(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)),ze(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},vt=()=>{ut=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,o=document.documentElement;o.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),o.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),o.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},gt=()=>{ut||(ut=window.requestAnimationFrame(vt))},ht=(e,t)=>{var n,i,o,r,a;const{pageContext:{countryCode:d,deviceType:s}}=w.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:o="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=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 ${o} 0px,\n ${o} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${o} calc(50% + ${l}px),\n ${o} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"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: '${d}' !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:{},s);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;et(p,t),u.className=Ue,et(p,t),u.className="advertory-fullscreen-scroll";const v=Be(e,Te.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=He,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(o=null==c?void 0:c.annonsLabel)&&void 0!==o?o:ct[d].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===lt&&(u.dataset.moveCogwheelToTheLeft="true"),gt(),window.addEventListener("resize",gt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",gt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",gt)},ft=e=>{if(!(null==e?void 0:e.classList.contains(Ue)))return;e.classList.remove(Ue),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(He))&&(t.classList.remove(He),t.classList.remove(We))};var mt=Object.freeze({__proto__:null,createFullscreenScrollAd:ht,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=ze(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=ze(e)?1:0,o=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;o&&(o.banner.content=t)})(e,pt(t,e))},undoFullscreenScrollContainer:ft});const yt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},bt=(e,t,n)=>{var i,o,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(o=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===o?void 0:o.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),yt(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},wt="ad-loaded",Ct="disable-cogwheel",It=()=>null!==k("disable_prebid"),Et="0123456789abcdefghijklmnopqrstuvwxyz",Tt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Et[Math.floor(36*Math.random())]}return t},St=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},At=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Ot=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})}),xt=(e,t,n)=>o(void 0,void 0,void 0,function*(){yield At,yield Ot;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)}),kt=()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:o},fullscreenScroll:r,appearanceConfig:a,placements:d}=w.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=w.getHandlers(),{getConsentAsync:l}=F(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 o=Q(),{prebid:{relevantCallbackTimeout:r}={}}=w.get(),a="relevantCb"===i&&r?r:n[i].timeout,d=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,o.loadTags&&o.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Q(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Q();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:f}=g;Z().push(()=>{v("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return v("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=Y();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};v("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(f,h))),v("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(f,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{v("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=>{Pt(e,s)},directRenderFn:e=>{var t,n,s;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const g=p.id,h=document.getElementById(g);if(!h)return;const f=null===(t=null==d?void 0:d[o])||void 0===t?void 0:t.find(e=>e.targetId===g),m=null!==(s=null!==(n=null==f?void 0:f.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[o])&&void 0!==s?s:0,y=Object.assign(Object.assign({},u),{targetId:g,banner:!0});v("prebid directRenderFn ad info",{targetId:g,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}),xt(h,m,()=>{var e;const t=c(l),n=Oe(y);if(v("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)v("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),ht(y,r),(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&&h.style.setProperty("--advertory-political-box-offset","30px");else{v("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),ft(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(wt),(null==u?void 0:u.creativeId)&&bt(g,h,Number(null==u?void 0:u.creativeId))})}}),v("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=>{Pt(e,s)},directRenderFn:()=>{}})})}),Pt=(e,t)=>{var n;const{divId:i,native:o,bid:r}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],d=`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,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:o,targetId:d},w.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")};let Lt=e=>{window.apntag.anq.push(e)};const _t=e=>{Lt=e},jt=e=>{Lt(e)},$t=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Nt=e=>o(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:o}=F(t,0,i);if(!(yield o()))return;const r=$t("_pulse2data");return r?r.split(",")[9]:void 0}),qt={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Ft="takeover-displayed",Rt="takeover-visit-count",Mt=14400,Dt=()=>{const e=$t(Rt);return e?parseInt(e):0},Bt=()=>{const e=Dt(),{takeover:{options:{cookieCapTime:t=Mt}={}}={}}=w.get(),n=document.location.hostname;window.document.cookie=`${Rt}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Ut=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=w.get();return"0"!==k(P)&&("1"===k(P)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=w.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Ft;return"true"===$t(n)})())&&(!t||Ht()))},Ht=()=>{const e=Dt();return 0===e?(Bt(),!1):1===e},Vt=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Wt=()=>{const{takeover:e}=w.get();return Boolean(null==e?void 0:e.topscroller)},Kt=e=>{const{width:t,height:n}=e;return Vt(t,n)?qt.SPLASH:Be(e,Te.VELVET_TAKEOVER)?qt.VELVET:Wt()?qt.TOPSCROLLER:qt.WELCOME_PAGE},zt=()=>o(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Ft,cookieCapTime:n=Mt}={}}={},pageContext:{isMobileApp:i,countryCode:o},tcf:r}=w.get(),a=yield R(r,i,o,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Gt=e=>{var t,n;const i=!!(null===(n=null===(t=w.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Pe(e)&&i},Xt=(e,t)=>{var n;if(t===qt.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===qt.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Jt=(e,t)=>{t!==qt.SPLASH?(e=>{var t,n;const i=null===(t=w.get().pageSectionsSelectors)||void 0===t?void 0:t.header,o=null===(n=w.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||o)return;const r=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&s&&d))return;const l=null==r?void 0:r.offsetHeight,c=Le(e)?"60svh":`calc(100svh - ${l}px)`,u=Le(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=w.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 o=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",o,"important")})(e)},Qt=Ge([],()=>{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 Yt=Object.freeze({__proto__:null,addTakeoverCookie:zt,adjustTakeoverHeight:Jt,canDisplayTakeover:Ut,getProperWelcomePageConfig:Xt,getTakeoverVariant:Kt,handleTakeoverCookieOnAdNotShown:e=>o(void 0,void 0,void 0,function*(){Gt(e)&&(yield zt())}),incrementArticleVisitCount:Bt,isSplashVariant:Vt,isTopscroller:Wt,scaleAd:Qt,shouldAddTakeoverCookieForNotShownAd:Gt});const Zt=e=>`externalImpId:'${e}'`,en=(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,tn=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=w.get(),{targetId:o,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Ut())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!==qt.TOPSCROLLER):n,o=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:o})})(e),h=Object.assign({invCode:s,sizes:r,targetId:o,keywords:en(a,l),allowedFormats:d,dynamicSizeWidthCheck:p,globalPlacementId:g},u&&{safeframeConfig:u}),f=(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?(v("Pulse state pageViewId is:",i),i):(v("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&f&&(v("External Impression ID assigned to defineTag:",Zt(f)),h.externalImpId=Zt(f));const m=(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"))&&(h.native=m),h},nn=e=>!e.includes("takeover")||Ut(),on={nativeAd:e=>xe(e)&&!$e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ke,fullscreenScroll:Oe,topscroller:e=>Pe(e)&&Wt(),splash:e=>Pe(e)&&Vt(e.width,e.height),welcomePage:Pe,wallpaper:_e,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Me,hFormat:De,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!De(e)&&!Me(e),topboard:e=>e.targetId.startsWith("topboard")&&!Pe(e),widescreen:Re,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)&&!Fe(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:Fe},rn=({adObj:e,preferredTestIdData:t})=>{var n,i;const o=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!o)return;const r=null===(i=document.querySelector(`#${o}`))||void 0===i?void 0:i.parentElement;if(!r)return;if(((e,t)=>{var n,i,o,r;const a=null===(r=null===(o=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===o?void 0:o[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(o,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,i;for(const[o,r]of Object.entries(on))if(r(e)){if("nativeAd"===o){const r="default";t.dataset.testid=`${o}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:r}`;break}t.dataset.testid=o;break}})(e,r)},an=e=>{var t;return(null===(t=Object.entries(on).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},dn=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},sn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=w.get(),n=K(t),i=e[`${n}-targetid`],o=i?dn(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[o]})},ln=e=>{const{pageContext:{countryCode:t}}=w.get(),n=K(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"]})},cn=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],o=e.find(e=>e.invCode===i),r=document.querySelector(`[id^=${null==o?void 0:o.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e)},un=e=>{const{source:t}=e;return"csm"===t},pn="advertory-wallpaper-background",vn="advertory-with-horseshoe",gn=()=>{const e=document.querySelector(`.${pn}`);e&&e.remove()},hn=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${pn}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},fn=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,mn=e=>fn.test(e),yn=e=>e.startsWith("wallpaper:color:"),bn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundImage=`url(${e})`)},wn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundColor=e)};var Cn=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(vn),n.classList.add(vn))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{gn();const e=document.createElement("div");e.classList.add(pn),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&&(hn(n),window.addEventListener("scroll",()=>hn(n)))})(n),e()},isShortWallpaperColorMessage:yn,isShortWallpaperUrlMessage:mn,removeWallpaperBackground:gn,setWallpaperBackgroundColor:wn,setWallpaperBackgroundImage:bn});const In=e=>{if("0"===k("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")&&gn())},En=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"))},Tn=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},Sn=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`)},An=/_\d+$/,On=e=>e.replace(An,"");let xn="";const kn=new Map,Pn=e=>{const{pageSetup:{tag:t}={}}=w.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(xn!==window.location.pathname&&(kn.clear(),xn=window.location.pathname),e.map(e=>{var t;const n=On(e.invCode),i=null!==(t=kn.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=w.get();return`${e}-${t}`})()}-count`]=i,kn.set(n,i+1),e})):e},Ln=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const _n=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 o(this,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>o(void 0,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;try{return yield ie.get(t,{timeout:5e3})}catch(e){throw v("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,o,r;const a=((e,t)=>{const{sections:n}=e,o=i(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?c(o,r):o})(t,null!==(r=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>c(t,e))(e,a)}getConfig(e){return o(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return v("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return o(this,void 0,void 0,function*(){var t,n,i,o;if(!this.localSiteConfig)return;if(m(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(o=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void v("Error fetching updated S3 config, keeping current config",{error:e})}})}},jn=_n.getConfig.bind(_n),$n=_n.resolveUpdatedConfig.bind(_n),Nn=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=E.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},qn=()=>{gn();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{In(e.id),Nn(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=dn(e.id),t.push(e.id)}),jt(()=>window.apntag.clearRequest()),t},Fn=()=>{E.setData("wallpaper",{isAvailable:!1}),E.setData("horseshoe",{isAvailable:!1})},Rn=e=>o(void 0,void 0,void 0,function*(){const t=yield $n(e);var n;t?(w.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):C(null!=e?e:{})}),Mn="mobile",Dn="tablet",Bn="desktop",Un="web_desktop",Hn="web_phone",Vn="wde",Wn="wph",Kn="noGroupedPlacements",zn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Gn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Xn=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:o}}=w.get(),r=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Dn&&0===i.length?e[Bn]:i})(n,o),a=r.filter(Gn),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=zn(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)),r=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${o}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,s=d.querySelectorAll(r),l=Array.from(s).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const o=Jn(e,t,n);if(o.disabled)return v(`Placement ${o.targetId} is disabled - collapsing`),In(o.targetId),null;const r=o.finnBlink&&!o.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(i=o.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),d=`${e.id}-${Tt(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),r&&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&&E.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({},o),{targetId:d})}),c=l.filter(e=>null!=e);return Pn(c)});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))})(s)},Jn=(e,t,n)=>{const i=n[t],o=n[n.length-1],r=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==o?void 0:o.targetId)?o:r||o},Qn=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=w.get(),i=(null==t?void 0:t[n])||{},o=Object.values(i).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=dn(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,o]of Object.entries(t))n[i]=e.filter(e=>o.includes(dn(e.targetId)));return n})(e,i),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(dn(e.targetId))))(e,new Set([...d,...o]));return Object.assign(Object.assign(Object.assign({},a),r),{[Kn]:s})},Yn=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Zn=new Map,ei=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],ti=".brandstudio-premium-content-widget",ni=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ii=({adWrapper:e,placementContainer:t})=>{const n=ni({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Nn(i=t),i.innerHTML=""},oi=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},ri=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=w.get(),i=ei.includes(n)&&Boolean(t.closest(ti));const o=i?t.closest(ti):null,r=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&&!o)return;if(a)return oi(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=o;d&&s.contains(d)?oi(d):s.hasAttribute("style")&&oi(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},ai=(e,t,n,i,o,r)=>{var a;const d=performance.now(),s=null!==(a=Zn.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,o)&&n<0;d-s>=o&&l&&(Zn.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:i}}=w.get(),o=null==n?void 0:n.parentElement;o&&n&&ii({adWrapper:o,placementContainer:n}),jt(()=>{e.setKeywords([t],{[`${K(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},di=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:o,boundingClientRect:r}=e;t(window.apntag,o.id,r.y,n,i,o)})})(e,ai,t,n),Yn(300));i.observe(e)},si=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const o=e.slice(i,i+t);n.push(o)}return n},li=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),ci=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},ui=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=w.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),fi(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},pi=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const o of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=o.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==i?void 0:i.requestThreshold;ci(o,r)&&i&&(Sn(i.targetId),n.length&&o.classList.remove(...n),fi([i],t))}},vi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=w.get();t&&(e.forEach(({targetId:e})=>{const t=gi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&pi(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),pi(e,!1,t))};n.persisted&&(li()?window.addEventListener("scroll",i,{passive:!0}):pi(e,!1,t))})})(e,n))},gi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},hi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(gi(t)),o=(e=>1===e[0]&&1===e[1])(i),r={sizes:[i],allowedFormats:o?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return o||(r.native=void 0),r},fi=(e,t=!1)=>{const{queryConfig:{batchSize:n=y}={}}=w.get(),i=e.map(({targetId:e})=>e),o=si(i,n);if(t)for(const t of e){const e=hi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of o)jt(()=>window.apntag.refresh(e))},mi=e=>{const{apntag:t,bus:n}=e,{siteEvents:i,initNativeAd:r}=w.getHandlers(),a=[];return{adRequested:()=>{n.emit("adRequested"),i.adRequested()},adAvailable:e=>o(void 0,void 0,void 0,function*(){var t,o,a,d,s,l;v("core adAvailable start",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:je(e),isWallpaperAd:_e(e)});const c=null===(a=null===(o=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===o?void 0:o.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(un(e)&&c&&(null===(d=c[1])||void 0===d?void 0:d.rtb)&&(e.banner=null===(l=null===(s=c[1])||void 0===s?void 0:s.rtb)||void 0===l?void 0:l.banner),Oe(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return mt});t(e)}const{widescreenSwitching:u,wallpaper:p,fullscreenScroll:g}=w.get();if(Re(e)&&(null==u?void 0:u.enabled)){const{initWidescreenSwitching:e}=yield import("./index-iEmKomsz.js");e()}if(Oe(e)&&!Ne(e.targetId)){v("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return mt});t(e,g)}if(!xe(e)||un(e)||Ne(e.targetId)||null==r||r(e,w.get()),Pe(e)&&!je(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield import("./index-BOVIWQ-8.js");t(e.targetId),yield n(e)}if(_e(e)&&(null==p?void 0:p.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return Cn});t(()=>jt(()=>window.apntag.showTag(e.targetId)),p),E.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&E.setData("horseshoe",{isAvailable:!0}),i.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),v("core adAvailable stop",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:je(e),isWallpaperAd:_e(e)})}),adLoaded:e=>o(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:o,wallpaper:d,adScaleConfig:s}=w.get(),l=document.getElementById(e.targetId);if(Ne(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield import("./events-BCVnwxmr.js");t(e)}if(a.includes(e.targetId)&&xe(e)&&(null==r||r(e,w.get()),rn({adObj:e})),!a.includes(e.targetId)&&un(e)&&a.push(e.targetId),je(e)&&In(e.targetId),Pe(e)){const{modifyTakeoverIframe:n}=yield import("./index-BOVIWQ-8.js");n(t,e.targetId)}if((e=>Be(e,Te.NINESIXTEEN))(e)){const{applyNinesixteenFormat:t}=yield import("./index-Bq-dre8e.js");t(e)}if((e=>Be(e,Te.FULLSQUARE))(e)){const{applyFullsquareFormat:t}=yield import("./index-Bq-dre8e.js");t(e)}if(ke(e)){const{applyFullwidthFormat:t}=yield import("./index-Bq-dre8e.js");t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),o=null==i?void 0:i.parentElement;if(!o||!i)return;ri({adWrapper:o,placementContainer:i});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&di(i,a,r))})(e,n),(null==o?void 0:o.clearProbableDimensionsEnabled)&&Tn(e.targetId);if(E.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield import("./index-DHJi2AoA.js");t(e),n(e)}i.adLoaded(e),yt(e.targetId),l&&(l.classList.add(wt),(e=>{var t,n;const{pageSectionsSelectors:i}=w.get(),o=null==i?void 0:i.mainFirstColumn,r=o?null===(t=document.querySelector(o))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(l)),rn({adObj:e}),(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:o}=e;o?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:an(e)}}))}),adNoBid:e=>o(void 0,void 0,void 0,function*(){if(In(e.targetId),Pe(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Yt});yield t(e)}i.adNoBid(e)}),adError:(e,t)=>o(void 0,void 0,void 0,function*(){if(Pe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yt});yield e(t)}i.adError(e,t)}),adCollapse:()=>{i.adCollapse()},adRequestFailure:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adRequestFailure(e)}),adBadRequest:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adBadRequest(e)}),adLoadedMediated:e=>i.adLoadedMediated(e),adNoBidMediated:e=>{i.adNoBidMediated(e)}}};let yi;const bi=()=>yi,wi={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>o(void 0,void 0,void 0,function*(){yi=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=yi,_t(e=>window.apntag.anq.push(e)),yield Promise.allSettled([o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();(yield R(e,t,n,"xandr-endpoint"))||yi.setEndpoint("ib.adnxs-simple.com",!0)}),o(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=w.get();yield Ee(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),o(void 0,void 0,void 0,function*(){if(It())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get(),o=yield R(t,n,i,"prebid");(null==e?void 0:e.enabled)&&o&&(yield Ee(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>o(void 0,void 0,void 0,function*(){const{pageOptions:e}=w.get(),{preparePageOptions:t}=w.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=w.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 o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();return(yield R(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=E.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=ln(e);E.setData("alertoryConfigKeywords",n)})(r.keywords),jt(()=>bi().setPageOpts(r))}),definePlacements:e=>{const{prepareTag:t}=w.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)),o=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===o?-1:-1===i&&-1!==o?1:i-o})})(e).forEach(e=>{v("xandr definePlacements",{placement:e});const i=tn(e);if(nn(e.targetId)){const o=t(i),r=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:o}=e;return{adTypes:t,invCode:n,keywords:sn(i),sizes:o}})(o);n.push(r),jt(()=>(v("xandr definePlacements - add to the queue",{placement:e,preparedTag:o}),bi().defineTag(o)))}}),(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)},requestPlacements:e=>o(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>nn(e)).map(({targetId:e})=>e);t.length&&jt(()=>(v("xandr requestPlacements",{placementsIdsToLoad:t}),bi().loadTags([...t])))}),bindEvents:e=>o(void 0,void 0,void 0,function*(){var t;yield(t={apntag:bi(),bus:e},o(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=mi(t);jt(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))})},Ci=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:o}=window,[r,a]=t;if(!i.dataset.lockedsize&&a&&r)i.style.width=`${r}px`,i.style.height=`${a}px`,n&&(o.resizeAd(i.id,[r,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=r.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&o.resizeAd(i.id,[e,t])}},Ii="collapseAd",Ei="hideAd",Ti="resizeAd",Si="wallpaperImageUrl",Ai="wallpaperColor",Oi="velvet",xi=[Ti,Si,Ai,Ii,Ei,Oi];let ki;const Pi=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(mn(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Si,wallpaperImageUrl:t}}if(yn(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Ai,wallpaperColor:t}}if(e.startsWith(Ii)||e.startsWith(Ei)){const t=e.split(":")[1];return{name:Ii,targetId:t}}if(e.includes("name")&&xi.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!xi.some(e=>n.name===e))return;const{name:i,targetId:o,wallpaperImageUrl:r,wallpaperColor:a,cmd:d,size:s}=n;i===Oi&&d&&(d.includes("noScroll")&&(ki=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(d.includes("close")||d.includes("ended"))&&(null==ki||ki(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==Ii&&i!==Ei||!o||In(o),i===Ti&&o&&d&&Ci(o,d),"resizeMediationAd"===i&&o&&s&&Ci(o,s,!0),i===Si&&r&&bn(r),i===Ai&&a&&wn(a)},Li=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=w.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},a=e=>{En(e),jt(()=>i.showTag(e))};return{withXandrAd:a,withFinnBlinkAd:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-CXCyp7D9.js");yield t(e,r,null)}),withFullAdsChain:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void a(e);const{loadFinnBlinkAd:t}=yield import("./index-CXCyp7D9.js");yield t(e,r,a,()=>o(void 0,void 0,void 0,function*(){if(!E.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e)}))})}},_i=(e,t)=>o(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield xt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Ne(t)&&i?(v(`loading finn blink ad for blink only placement for ${t}`),void Li().withFinnBlinkAd(t)):Ne(t)?(v(`loading finn blink ad with full ads chain for ${t}`),void Li().withFullAdsChain(t)):void jt(()=>(v("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)))}),ji=(e,t)=>o(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});st(".advertory-brandmetrics-survey{width:100%}");const $i="advertory-brandmetrics-survey",Ni=()=>o(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)}}),qi=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Fi="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Ri=()=>o(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 o;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(o=n.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Mi={pageContext:{publisher:"aftonbladet",countryCode:j.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"}},Di={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Bi=e=>(null==e?void 0:e.parent)?[...Bi(e.parent),e.shortPath||"unknown"]:[],Ui=(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]=Bi(e);return Di[n]||"ovrigaavdelningar"})(e)}_{position}`,Hi={aftonbladet:Mi},Vi={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Ui(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Bi(e).join(":")}}},Wi=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},Ki=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),zi="se-generic",Gi="aa-sch",Xi="kv_",Ji="pause",Qi="{deviceType}",Yi="{position}",Zi="afp_",eo=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),to="1-1",no="16-9",io="3-4",oo="9-16",ro="responsive",ao={[to]:1,[no]:1.78,[oo]:.56,[ro]:1},so={[to]:1,[no]:1.78,[io]:1.33,[oo]:.56},lo=(e,t,n,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},a=Bn===n?Vn:Wn,d=o.replace(Qi,a);return(e,n)=>{if(e===Ji)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Yi,Ji).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&eo.has(e)){return(i&&r?r:t.frontpageInvCodeTemplate).replace(Qi,a).replace(Yi,e)}return d.replace(Yi,e)}},co=()=>{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"},uo=e=>e===Mn,po=853,vo=767,go=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,o])=>{const r=Math.abs(e[n]-t);return Math.abs(o-t)<r?i:n},n[0][0])},ho=()=>{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},fo=()=>{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},mo=()=>{const e=null!==(t=fo()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=fo()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},yo=()=>Object.fromEntries(new URLSearchParams(window.location.search)),bo=(e,t)=>o(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:o}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:o,publisher:i,pageType:"front",deviceType:e.deviceType},s=(yield R(n,e.isApp,o,"video"))?"1":"0",l=yield Ri(),c=yield Ce(o),u=yield Nt({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>go(so,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(f=e.playerAspectRatio)?go(ao,Number(f.toFixed(2))):ro;var f,m;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Gi}-country_code`]:o,[`${Gi}-publisher`]:i,[`${Gi}-supply_type`]:(m=e.deviceType,m===Bn?Un:Hn),[`kw_${Gi}-page_type`]:"collection",[`${Gi}-page_type`]:"collection",[`${zi}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${zi}-page`]:"index",[`${zi}-page`]:"index",[`${zi}-screenheight`]:String(window.screen.height),[`${zi}-screenwidth`]:String(window.screen.width),[`${zi}-viewportheight`]:String(a),[`${zi}-viewportwidth`]:String(r),[`${zi}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${zi}-mobile-os`]:co(),[`${zi}-audience`]:void 0,[`${zi}-externalid_src`]:mo(),[`${zi}-tags`]:e.tags,[`${zi}-articleid`]:p,"article-id":p},yield z(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${zi}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(yo()).some(e=>e.includes(Xi))&&(()=>{const e=yo(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Xi)).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":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),wo=["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"],Co=["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"],Io=["external_uid","gdpr","gdpr_consent","eids","article-id"],Eo=(e,t)=>{const n=[...wo,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Io.includes(e)?e:`kw_${e}`,t]))},To=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Co.includes(e))),So=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i,o,r;const a=(e=>{var t;Hi[e]||g(`[video] No config found for publisher "${e}"`);return null!==(t=Hi[e])&&void 0!==t?t:Mi})(e.publisher),d=(e=>{var t;return null!==(t=Vi[e])&&void 0!==t?t:Vi.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===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!==(o=Number(e.aspectRatio))&&void 0!==o?o:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield bo({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==d?void 0:d.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:ho(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:Wi(e.startMode)}}),Ao=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=i||{},l=lo(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Zi)?`${Zi}${t}`:t)(s),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,o),"se-generic-playback-method":Ki.get(d),"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({},Eo(r,n)),To(r)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Oo=e=>t=>o(void 0,void 0,void 0,function*(){const n=yield So(e,t);return Ao(n,e)}),xo={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]}]},ko={no:"NOK",se:"SEK"},Po={no:"no",se:"sv"};class Lo{buildFetchObject(e,t,n,i){return o(this,void 0,void 0,function*(){const{pageContext:{countryCode:o},pageOptions:r}=i,{invCode:a,xandrPlacementId:d}=e,s=yield Ri(),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(xo),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({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.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||Po[o]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield Nt(i),ext:{consent:s.gdpr_consent||"",eids:we(o)}},at:1,cur:[ko[o]],source:{tid:Tt(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,i){return o(this,void 0,void 0,function*(){try{v("Starting fetching Studio ad from Xandr:",Fi);const o=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${Fi}?${a.toString()}`:Fi,s=yield this.buildFetchObject(e,t,n,i),l=yield ie.post(d,o,s);return v("Fetch operation completed successfully.",l),l}catch(e){v("Error during fetch operation:",e)}return null})}}const _o=0,jo=3,$o=(e,t,n,i)=>{const o=t.parentElement;if(!o)return;const r=e?`-${e}`:"",a=i?`__${i}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),o.classList.remove(...o.classList),t.classList.add(d),o.classList.add(s),t.dataset.adType=n},No={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},qo=(e,t)=>{Fo(e,t),Mo(e,t)},Fo=(e,t)=>{var n,i;const o=document.querySelector(`#${e.targetId}`);if(!o||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==o?void 0:o.querySelectorAll(r)).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:[])Bo(i)}),t.dataset.tracked="true")})},Ro=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),o="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!o?null==n||n.forEach(Do):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},Mo=(e,t)=>{var n;let i=!1;const o=document.querySelector(`#${e.targetId}`);if(!o||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Bn])&&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,Ro(e),c.disconnect();break}},s);c.observe(o)},Do=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Bo(e):window.navigator.sendBeacon(e)},Bo=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Uo=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:[]}),Ho=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:o},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[o],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void v(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Yn(d)).observe(s)});const{prepareTag:l}=w.getHandlers(),c=E.getData("alertoryConfigKeywords"),u=null!==(i=l(tn(e)).keywords)&&void 0!==i?i:{},p=new Lo,g=yield p.fetchData(e,c,u,t);g&&(((e,t,n)=>{const i=n===Mn?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===_o){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")}})(s,g,o),g.adType===jo&&($o(t.pageContext.publisher,s,No.NATIVE_AD,t.pageContext.pageType),qo({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:o,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var o,r,a;let d;(null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),bt(e,n,Number(null==i?void 0:i.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,g.bid))}),Vo=(e,t)=>{e.forEach(e=>Ho(e,t).catch(e=>{v("Failed to handle server-side ad:",e)}))},Wo="_adchoices_non_rtb",Ko=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Wo}={}}={}}=w.get();return`${On(e)}${t}`},zo=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>In(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Ko(e.invCode)})))(e)),Go=e=>`${Math.max(0,Math.round(e))}px`,Xo=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},Jo=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},Qo=()=>{const{pageSectionsSelectors:e}=w.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=Xo(t);Jo({"--advertory-header-height":Go(n)})})(e.header)};let Yo=wi,Zo=[];const er=["takeover","wallpaper"],tr=(e,t)=>{var n,i;const{initNativeAd:o}=w.getHandlers();null==o||o(e,null!==(i=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==i?i:w.get())},nr=e=>{const t=(e=>{var t;const n=E.getData("alertoryConfigKeywords"),{queryConfig:i,placements:o,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:f,fullWidth:m}=e,b=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:y;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:o,tcf:r,queryConfig:Object.assign(Object.assign({},i),{batchSize:b})},a&&{glimr:a}),d&&{appearanceConfig:d}),h&&{takeover:h}),f&&{fullscreenScroll:f}),m&&{fullWidth:m})}})(e);window.advertory={initialized:!0,version:"3.16.2",siteConfig:e,renderNativeAd:tr,alertoryConfig:t}},ir=()=>o(void 0,void 0,void 0,function*(){yield Yo.setTargeting()}),or=e=>o(void 0,void 0,void 0,function*(){var t,n;const{prebid:i,tcf:o,pageContext:{isMobileApp:r,countryCode:a}}=w.get(),d=yield R(o,r,a,"loadPlacements"),s=zo(e,d);null===(t=Yo.definePlacements)||void 0===t||t.call(Yo,s);(null==i?void 0:i.enabled)&&d&&!It()?(v("core loadPlacements prebid enabled"),yield kt()):(v("core load tags invoked without prebid enabled"),yield null===(n=Yo.requestPlacements)||void 0===n?void 0:n.call(Yo,s))}),rr=(e,t)=>o(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=w.get(),{requestThreshold:o,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[i];a&&(v("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:o,deviceDefaultThreshold:d}),yield _i(a,null!=o?o:d)),a&&(null==r?void 0:r.scroll)&&(v("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),ar=e=>e.some(({targetId:e})=>er.some(t=>e.includes(t))),dr=e=>o(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),o=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=y}={},pageContext:{deviceType:i}}=w.get(),o=Qn(e),r=Object.keys((null==t?void 0:t[i])||{}).map(e=>o[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...r,...si(d,n)]})(i);for(const e of o)ar(e)?(v("core loadAds without lazy loading",{placementsToLoad:e}),yield or(e)):e.length&&(v("core loadAds with lazy loading",{placementsToLoad:e}),yield sr(e));const{finnBlink:r}=w.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-CXCyp7D9.js");yield e(n)}}),sr=e=>o(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=w.get(),i=[];if(!t)return v("lazy load is not enabled",{placements:e}),void(yield or(e));const o=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{v("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const o=e.every(e=>i.includes(e.targetId)),r=e.map(e=>e.targetId);!o&&i.push(...r),!o&&or(e),v("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:o,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(v("lazy loading - observe element",{targetId:e.targetId,element:t}),o.observe(t))})}),lr=()=>o(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>o(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>o(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=Zo.find(({targetId:t})=>t===e.targetId);t&&(yield rr(t,e),Zo=Zo.filter(e=>e.targetId!==t.targetId))})),yield Yo.bindEvents(e)}),cr=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;if(v(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return v("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:o,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:d,contextSelector:s}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let c=[];if(r)return qn(),Zo=[],Fn(),[];if(o&&(c=null!==(i=qn())&&void 0!==i?i:[]),o&&!l)return[];o&&l&&(Zo=[],Fn()),a&&(qn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{En(e.id)})),yield Rn(e),(null==e?void 0:e.pageSectionsSelectors)&&Qo(),yield ir();const{clientSidePlacements:u,serverSidePlacements:p}=Uo(Xn(s)),g=[...u,...p];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>dn(e)));e.filter(e=>n.has(e)).forEach(e=>En(e))})(c,g),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>dn(e)));e.filter(e=>!n.has(e)).forEach(e=>Tn(e))})(c,g);let h=u;return d&&(h=h.filter(e=>Ne(e.targetId))),Vo(p,w.get()),h.length>0&&(Zo=[...Zo,...h.map(e=>Object.assign({},e))],ui(h),vi(h),yield dr(h)),Zo}),ur=(e,t,n)=>o(void 0,void 0,void 0,function*(){var i,r;const{initConsentManager:a,getConsentAsync:d}=F(e.tcf,null===(i=e.pageContext)||void 0===i||i.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),s=yield jn(e);yield Ni(),yield ji(a),yield ji(d),v("TCF resolved successfully"),yield((e,t,...n)=>o(void 0,[e,t,...n],void 0,function*(e,t,n=wi){var i,r;Yo=n,w.set(e),w.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:a,kilkaya:d,rightColumnSplit:s,finnBlink:l}=e;E.initialize(),window.addEventListener("message",Pi,!1);const[c]=yield Promise.allSettled([Yo.setup(),he(e),o(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get();(yield R(t,n,i,"gpt-endpoint"))&&(yield Ee(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),o(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:o}}=w.get(),{getConsentAsync:r}=F(n,0,o),a=yield r();if(e&&t&&a){if(yield Ee(t),document.querySelector(`.${$i}`))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($i)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),D(),o(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=w.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Ee(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(v("Driver has been set up"),null==a?void 0:a.enabled){const{loadNorstat:e}=yield import("./index-C_K15-N2.js");yield e()}if(v("Libraries have been loaded and trackers have been set"),Qo(),yield lr(),yield ir(),v("Page options have been set"),nr(e),v("Advertory is setup on window"),"dom-discovered"===Yo.capabilities.tagDefinition)return yield null===(i=Yo.requestPage)||void 0===i?void 0:i.call(Yo),void v("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=Uo(Xn());if(Zo=u,Vo(p,e),ui(Zo),vi(Zo),yield dr(Zo),v("Ads has been loaded",Zo),cn(Zo),null==l?void 0:l.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-CXCyp7D9.js");yield t(null===(r=null==e?void 0:e.pageContext)||void 0===r?void 0:r.deviceType,e.finnBlink)}if(null==s?void 0:s.enabled){const{initRightColumnSplit:t}=yield import("./index-D3znrlvr.js");t(e.rightColumnSplit)}if(null==d?void 0:d.enabled){const{runKilkaya:t}=yield import("./index-Cj-7zBIk.js");yield t(e)}}))(s,t,n),v("Run function resolved successfully")}),pr=["sponsor","seamless"],vr=["shopping"],gr=(e,t,n,i)=>{var o;const{image:r,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:f,customTitle3:m,customTitle4:y,customBody1:b,customBody2:w,customBody3:C,customBody4:I,customBody5:E,customIcon1:T,customIcon2:S,customDisplayUrl1:A}=e,O=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:O(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=pr.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&T;return O(t?T:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(o=null!=u?u:g)&&void 0!==o?o:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=f?f:"",customTitle3:null!=m?m:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=C?C:"",customBody4:null!=I?I:"",customBody5:null!=E?E:"",logo2:O(S),previewVideoSrc:null!=A?A:""},t)},hr=(e,t)=>{const n=(i=L,window.location.href.includes(i));var i;const o=new URLSearchParams(window.location.search).get(L),r=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!vr.includes(t.toLowerCase())?r?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},fr=(e,n,i,o)=>{const r=document.querySelector(`#${e}`);r&&n&&(r.innerHTML=n,((e,n)=>{const i=e.parentElement,{publisher:o,pageType:r}=n,a=o&&Object.values(t).includes(o);i&&a&&$o(o,e,No.NATIVE_AD,r)})(r,i),o())},mr=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:o,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=hr(e.targetId,l))&&void 0!==i?i:c,p=ct[t.language||j.NO],v=gr(d,p,s,t);return(d.video?r[u]:o[u]||o.default)(v,t)})(e,t,n);fr(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&qo(e,t)})},yr=e=>(t,n)=>{var i;const{targetId:o}=t,r=document.querySelector(`#${o}`);if(!r)return;const a=e.getOptions(null!=n?n:{});mr(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,r)},br=()=>{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},wr=e=>{const{siteSpecificConfig:t}=w.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Cr{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return o(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 o(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Ir=9826;class Er{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=w.get();if(t){return{"aa-sch-supply_type":`app_${e===Mn?"phone":Dn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return o(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 o(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=$t("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return o(this,void 0,void 0,function*(){return yield Nt(w.get())})}isTrackingForbidden(){return o(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=Ir}={}}=w.get();return"true"===k("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=w.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return o(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get(),{getConsentAsync:i}=F(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=w.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 Tr=new Er;function Sr(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(),o=co();return{OS:o,mobileOS:["ios","android"].includes(o)?o:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Tr.prepare.bind(Tr);const Ar=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Or(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Ar.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class xr extends Er{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=w.get(),{OS:n,isHybridApp:i}=Sr(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Or(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get(),o=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":`${o.split("_").pop()||o}_${"article"===i?"article":"front"}`}}}const kr=new class extends xr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,o,r,a,d;const s=w.get(),l=null!==(i=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(r=null===(o=s.pageSetup)||void 0===o?void 0:o.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new Cr;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(z(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(me()).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({},fe(j.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Pr=kr.prepare.bind(kr);class Lr extends Er{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.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!==(r=null===(o=window.screen)||void 0===o?void 0:o.height)&&void 0!==r?r:0};var n,i,o,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return o(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}}=w.get(),{appMode:t,mobileOS:n}=Sr(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}}=w.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 _r=new class extends Lr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,r,a,d;const s=w.get(),l=null!==(i=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(d=null===(a=null===(r=s.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===a?void 0:a.keywords)&&void 0!==d?d:{},u=new Cr;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(z(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>o(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(me()).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"===$t("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({},fe(j.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},jr=_r.prepare.bind(_r);let $r;const Nr=()=>{(()=>{var e;const{placements:t,pageContext:{deviceType:n}}=w.get(),i=null!==(e=t[n])&&void 0!==e?e:[];return"tablet"===n&&0===i.length?t.desktop:i})().forEach(({targetId:e,adUnitId:t})=>{if(!t)return;const n=document.getElementById(e);n?n.dataset.adUnitId=t:v("relevant-managed requestPage - placement container was not found",{targetId:e})})},qr=()=>{const{prebid:e}=w.get();return Boolean((null==e?void 0:e.enabled)&&e.manageAdserver&&!It())},Fr={name:"relevant-managed",capabilities:{tagDefinition:"dom-discovered",deferredRequest:!1,deferredRender:!1,refresh:!1},setup:()=>o(void 0,void 0,void 0,function*(){var e;const{prebid:t}=w.get();qr()?(null==t?void 0:t.prebidUrl)?(_t(e=>Z().push(e)),yield Ee(null!==(e=null==t?void 0:t.adServerUrl)&&void 0!==e?e:"https://s1.adform.net/banners/scripts/adx.js"),yield Ee(t.prebidUrl)):v("relevant-managed setup - prebidUrl is required, skipping script loading"):v("relevant-managed setup - managed prebid is disabled, skipping script loading")}),setTargeting:()=>o(void 0,void 0,void 0,function*(){if(!qr())return;const{pageOptions:e}=w.get(),t={site:{keywords:(n=null==e?void 0:e.keywords,Object.values(null!=n?n:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))}};var n;Z().push(()=>{Y().addPrebidConfig({ortb2:t})})}),requestPage:()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:n}=w.get();if(!qr())return void v("relevant-managed requestPage - managed prebid is disabled, skipping");if(!(null==e?void 0:e.configId))return void v("relevant-managed requestPage - configId is required, skipping");(yield R(t,null==n?void 0:n.isMobileApp,null==n?void 0:n.countryCode,"relevant-managed-requestPage"))?(Nr(),null==$r||$r.emit("adRequested"),Z().push(()=>{v("relevant-managed requestPage - loadPrebid",{configId:e.configId}),Y().loadPrebid({configId:e.configId,noGpt:!0,manageAdserver:!0})})):v("relevant-managed requestPage - consent not granted, skipping")}),bindEvents:e=>o(void 0,void 0,void 0,function*(){$r=e})},Rr={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:o,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=w.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=w.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(o,l),u=(e=>{const{pageContext:{countryCode:t}}=w.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,o=`${K(t)}-adformat`,r=n?n[o]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Ae)||window.innerWidth>=Ae[e]);return{[o]:i?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=w.get(),n=`${K(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=br(),h=(e=>wr(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(o),f=((e,t)=>wr(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(o,{safeFrameAutoInitialSize:!0}),m=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,y=(new Cr).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${K(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:m,invCode:c,keywords:y,rendererOptions:f,globalPlacementId:a||c})},preparePageOptions:e=>o(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=w.get();return yield t===j.SE?jr(e):Pr(e)}),siteEvents:e},Mr=((e,t,n)=>({init:i=>{return r=Object.assign(Object.assign({},i),{siteSpecificConfig:t}),a=e,d=n,o(void 0,void 0,void 0,function*(){v(`Received configuration passed to Advertory: ${JSON.stringify(r)}`),yield ur(r,a,d)});var r,a,d},update:cr,renderNativeAd:tr,getVideoPPIDs:Ce,createInitNativeAd:yr,getVideoAdsConfig:Oo}))(Rr,n,Fr);export{No as A,ze as B,j as C,ct as D,Qe as E,Ct as F,rn as G,Oe as H,ht as I,xe as J,uo as K,vo as L,po as M,t as N,an as O,Be as P,zn as Q,Mr as R,Te as S,qt as T,o as _,Ie as a,In as b,w as c,i as d,qi as e,$o as f,dn as g,R as h,st as i,be as j,Xo as k,v as l,Jo as m,Go as n,J as o,En as p,Ee as q,ci as r,_i as s,St as t,Li as u,Xt as v,Qt as w,Kt as x,zt as y,Jt as z};
|
|
1
|
+
import"react/jsx-runtime";const e={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},t={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",MTV:"mtv"},n={publisherClassName:t.MTV,classesToRemoveOnRefresh:[]};function i(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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function o(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{s(i.next(e))}catch(e){r(e)}}function d(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((i=i.apply(e,t||[])).next())})}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,d;"function"==typeof SuppressedError&&SuppressedError;var s=r(function(){if(d)return a;d=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)?l((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 o(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 r(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var a={};return i.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],i)}),o(t).forEach(function(o){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r(e,o)&&i.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,i)(e[o],t[o],i):a[o]=n(t[o],i))}),a}function l(t,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(o);return a===Array.isArray(t)?a?r.arrayMerge(t,o,r):s(t,o,r):n(o,r)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},a=l}());const l={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},c=(e,t)=>s(e,t,l),u=(e,t)=>Object.assign(Object.assign({},e),t),p=(e,t)=>{var n;return c(null!==(n=e)&&void 0!==n?n:{},t)},v=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},g=(e,t)=>{console.warn("[Advertory WARN]: ",e)},h=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||g("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||g("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||g("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||g("pageContext.deviceType is required."),n||g("pageOptions is required."),i||g("placements is required."),(null==o?void 0:o.defaultThreshold)||g("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,o;const r=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===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&g(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},f={placements:(e,t)=>t,takeover:p,refreshConfig:u,editory:p,appearanceConfig:p,pageContext:u,pageOptions:u,pageSectionsSelectors:u,tcf:u},m=(e,t)=>{const n=e;for(const e of Object.keys(f)){const i=t[e];void 0!==i&&(n[e]=f[e](n[e],i))}},y=6;class b{set(e){h(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");m(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=c(b.DEFAULT_SITE_HANDLERS,e)}}b.DEFAULT_SITE_HANDLERS={siteEvents:e,initNativeAd:()=>{}};const w=new b,C=w.modifyConfigProperties.bind(w);class I{initialize(){this.DATA=Object.assign({},I.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)}}I.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const E=new I,T=864e5,S=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return v("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=T)=>{const o={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(o))},getByTimestamp:(t,n=T)=>{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 v("Error with parsing localStorage data"),null}}}})(),A="glimrTags",O=["glwe_","glwet_"],x={geofenceTags:[],geoTags:[],weatherTags:[]},k=e=>new URLSearchParams(window.location.search).get(e),P="takeover",L="native_override_desc2",_=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 v("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(v("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{v("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{v("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);v("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),j={NO:"no",SE:"se"},$="cmp:loaded";let N="undefined"!=typeof window?window._tcf_:void 0,q=!1;const F=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,a=k("bypass_tcf"),d=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(v("TCF bypass param detected, returning consent: true"),!0):(v("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(q)return null;if(!N)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=N.getConsentedToAllSync();return v(`TCF consented to all is: ${t}`),N.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(v("Getting TCF consent manager..."),window._tcf_)return v("TCF consent manager is already available"),N=window._tcf_,void e(N);v("TCF consent manager is not available");const n=()=>{v("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(N=window._tcf_,e(N)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener($,n),q=!0,t(new Error("Timeout waiting for CMP to load"))},r);v("Listening for CMP loaded event..."),document.addEventListener($,n,{once:!0})}):Promise.resolve(null),getConsentSync:d,getConsentAsync:()=>o(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`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===j.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===j.NO;if(t||i)return v("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield _(e);if(!(null==e?void 0:e.enabled))return!0;const o=d();return null!==o?o:yield new Promise((e,t)=>{try{if(!N)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(()=>{v("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);N.onTcfReady(()=>{v("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),N.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},R=(e,t,n,...i)=>o(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return v(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`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:o}=F(e,0,n);return(yield o())?(v(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(v(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),M=(...e)=>o(void 0,[...e],void 0,function*(e=w.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield R(t,n,i,"glimr")}const{getConsentAsync:o}=F(t,0,i);return yield o()}),D=()=>o(void 0,void 0,void 0,function*(){const{glimr:e}=w.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void v("No consent for glimr data fetching.");const t=yield(n=500,o(void 0,void 0,void 0,function*(){return yield Promise.race([o(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)=>{S.setWithTimestamp(A,{tags:e,tagMappings:t}),n(!0)})})}catch(e){v(`Error during getting glimr data: ${e}`)}else v("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),B={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"},U=e=>O.some(t=>e.startsWith(t)),H=e=>e.startsWith("glgc_"),V=e=>e.startsWith("glci_"),W=e=>!U(e)&&!H(e),K=e=>e===j.NO?"no-sno":"se-generic",z=(e,t)=>o(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:o}={}}=e,r=yield M(e);if(!(null==i?void 0:i.enabled)||!r)return v("No consent for getting glimr tags."),{};const a=K(o),d=G(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),G=(e,t)=>{const n=X();if(!n)return x;const i=((e=[])=>e.filter(U))(n),o=((e=[])=>e.filter(H))(n),r=((e=[],t,n)=>{var i;const o=e.filter(W);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=B[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:r,geofenceTags:o,weatherTags:i}},X=()=>{const e=S.getByTimestamp(A);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},J=()=>{var e;return((e=[])=>e.filter(V))(null!==(e=X())&&void 0!==e?e:[])},Q=()=>(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),Y=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Z=()=>{const e=Y();return e.cmd||(e.cmd=[]),e.cmd},ee=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:o}}=w.get(),r=[`${K(o)}-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?r:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},te="opaque",ne=e=>o(void 0,void 0,void 0,function*(){if(e.type!==te){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ie={get:(e,...t)=>o(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,r=i(t,["timeout"]);if(n)return((e,t,n)=>o(void 0,void 0,void 0,function*(){const i=new AbortController,o=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return ne(n)}finally{clearTimeout(o)}}))(e,r,n);const a=yield fetch(e,r);return ne(a)}),post:(e,t,n)=>o(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),o=yield fetch(e,{method:"POST",headers:t,body:i});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},oe="advertory:ppids-cache",re={[j.SE]:`SCH${j.SE.toUpperCase()}-EnvHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-EnvHash`},ae={[j.SE]:`SCH${j.SE.toUpperCase()}-UserHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-UserHash`},de={[j.SE]:`sch${j.SE}-envhash-v3`,[j.NO]:`sch${j.NO}-envhash-v3`},se={[j.SE]:`sch${j.SE}-userhash-v3`,[j.NO]:`sch${j.NO}-userhash-v3`},le={[j.SE]:`'sch${j.SE}-iosid-v3'`,[j.NO]:`'sch${j.NO}-iosid-v3'`},ce={[j.SE]:`sch${j.SE}-androidid-v3`,[j.NO]:`sch${j.NO}-androidid-v3`},ue={[j.SE]:"sdrn:schibsted.com:user",[j.NO]:"sdrn:spid.no:user"};class pe{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 ve=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return o(this,arguments,void 0,function*(e,t=1e4){var n,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=o.xandr)||void 0===n?void 0:n.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||v("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:""}},ge=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return o(this,void 0,void 0,function*(){var n,i,o,r,a,d,s,l,c,u,p;const v=S.get(oe),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===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.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||v("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 o in e){if((null===(n=e[o])||void 0===n?void 0:n.plain)!==(null===(i=t[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const o=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}}:{});S.set(oe,o)}hashPPIDs(e,t){return o(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ie.post(t,n,e)}catch(e){return v("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return o(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>o(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ue[t]}:${n}`:null}))(t,n),r=yield(a=t,o(void 0,void 0,void 0,function*(){const e=yield a.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var a;const d=window.advertory_idfv,s=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"}},d?{idfv:{plain:d}}:{}),s?{anId:{plain:s}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:o.plain}}},he=e=>o(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:o}}=e;if(!(yield R(n,o,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([ve.processPPIDs(t,null==n?void 0:n.timeout),ge.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){v(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),fe=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]).add(r,le[e]).add(a,ce[e]).buildEids()}]}},me=()=>{const{ppid1:e,ppid2:t}=ve.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ye=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]).add(r,le[e]).add(a,ce[e]).buildRyEids()}}]}}},be=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs();return(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]).buildRyEids()},Ce=e=>o(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,de[e]).add(i,se[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Ie=()=>o(void 0,void 0,void 0,function*(){const{ppid1:e}=ge.getPPIDs();return e}),Ee=(e,...t)=>o(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 o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{d(),n()},a=()=>{d(),i(new Error(`Failed to load ${e}`))},d=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(s)};o.addEventListener("load",r),o.addEventListener("error",a);const s=setTimeout(()=>{d(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).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"},Se={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}]},Ae={wallpaper:1600,"l-format":1600},Oe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Be(e,Te.ANY_FULLSCREEN)},xe=e=>{const{native:t}=e;return!!t},ke=e=>Be(e,Te.FULLWIDTH),Pe=e=>{const{targetId:t}=e;return t.includes("takeover")||Be(e,Te.TAKEOVER)},Le=e=>Be(e,Te.TAKEOVER),_e=e=>Be(e,Te.WALLPAPER),je=e=>Be(e,Te.COLLAPSE),$e=e=>e.targetId.includes("sponsorstripe"),Ne=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},qe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Fe=e=>e.targetId.startsWith("midboard"),Re=e=>e.targetId.includes("widescreen"),Me=e=>e.width>=1260&&e.width<=1280,De=e=>e.width>=1600&&e.width<=1620,Be=(e,t)=>{const n=Se[t];if(!n)return!1;return!!n.find(t=>{var n,i;const o=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===o,d=!t.height||t.height===r;return a&&d})},Ue="advertory-fullscreen-scroll",He="advertory-fullscreen-scroll-wrapper",Ve="fullscreen-scroll-in-screen",We="in-screen",Ke=e=>e.includes("snoap.no"),ze=e=>{var t,n,i,o,r;return!!(null===(r=null===(o=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===o?void 0:o.ads[1])||void 0===r?void 0:r.rtb)},Ge=(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()),o=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,o).toString()},Xe=Ge([],()=>{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:o,clientHeight:r}=i,a=e/o,d=t/r;i.style.transform=`scale(${a},${d})`,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}),Je=e=>{const t=Ge([],()=>{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},Qe=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},Ye=[],Ze={},et=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,o=new IntersectionObserver(e=>tt(e,i),{}),r=it(e);o.observe(e),i&&(Ze[r]=at(e,null==t?void 0:t.options))},tt=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=it(e);n?(nt(i,n),ot(e,i,t)):(nt(i,n),rt(e,i,t))})},nt=(e,t)=>{var n,i;const o=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!o)return;const r=t?"showFullscreen":"hideFullscreen";null===(i=o.contentWindow)||void 0===i||i.postMessage(`advertory:${r}-${e}`,"*")},it=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},ot=(e,t,n)=>{e.classList.add(We),document.body.classList.add(Ve),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ye.includes(t)||Ye.push(t),n&&window.addEventListener("scroll",Ze[t],{passive:!0})},rt=(e,t,n)=>{Ye.includes(t)&&(n&&window.removeEventListener("scroll",Ze[t]),document.body.classList.remove(Ve),e.classList.remove(We),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},at=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:o=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&dt(e,r,o,0),a.length&&dt(e,a,o,40)}},dt=(e,t,n,i)=>{const o=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>r?(a-r)/t-i:(r+t-(a+o))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};function st(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}st('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 lt="left",ct={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}};let ut=null;const pt=(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=Qe(n),n=(e=>{if(Ke(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=Je(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>Ke(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)),Ke(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)),ze(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},vt=()=>{ut=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,o=document.documentElement;o.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),o.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),o.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},gt=()=>{ut||(ut=window.requestAnimationFrame(vt))},ht=(e,t)=>{var n,i,o,r,a;const{pageContext:{countryCode:d,deviceType:s}}=w.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:o="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=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 ${o} 0px,\n ${o} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${o} calc(50% + ${l}px),\n ${o} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"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: '${d}' !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:{},s);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;et(p,t),u.className=Ue,et(p,t),u.className="advertory-fullscreen-scroll";const v=Be(e,Te.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=He,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(o=null==c?void 0:c.annonsLabel)&&void 0!==o?o:ct[d].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===lt&&(u.dataset.moveCogwheelToTheLeft="true"),gt(),window.addEventListener("resize",gt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",gt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",gt)},ft=e=>{if(!(null==e?void 0:e.classList.contains(Ue)))return;e.classList.remove(Ue),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(He))&&(t.classList.remove(He),t.classList.remove(We))};var mt=Object.freeze({__proto__:null,createFullscreenScrollAd:ht,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=ze(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=ze(e)?1:0,o=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;o&&(o.banner.content=t)})(e,pt(t,e))},undoFullscreenScrollContainer:ft});const yt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},bt=(e,t,n)=>{var i,o,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(o=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===o?void 0:o.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),yt(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},wt="ad-loaded",Ct="disable-cogwheel",It=()=>null!==k("disable_prebid"),Et="0123456789abcdefghijklmnopqrstuvwxyz",Tt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Et[Math.floor(36*Math.random())]}return t},St=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},At=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Ot=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})}),xt=(e,t,n)=>o(void 0,void 0,void 0,function*(){yield At,yield Ot;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)}),kt=()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:o},fullscreenScroll:r,appearanceConfig:a,placements:d}=w.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=w.getHandlers(),{getConsentAsync:l}=F(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 o=Q(),{prebid:{relevantCallbackTimeout:r}={}}=w.get(),a="relevantCb"===i&&r?r:n[i].timeout,d=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,o.loadTags&&o.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Q(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Q();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:f}=g;Z().push(()=>{v("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return v("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=Y();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};v("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(f,h))),v("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(f,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{v("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=>{Pt(e,s)},directRenderFn:e=>{var t,n,s;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const g=p.id,h=document.getElementById(g);if(!h)return;const f=null===(t=null==d?void 0:d[o])||void 0===t?void 0:t.find(e=>e.targetId===g),m=null!==(s=null!==(n=null==f?void 0:f.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[o])&&void 0!==s?s:0,y=Object.assign(Object.assign({},u),{targetId:g,banner:!0});v("prebid directRenderFn ad info",{targetId:g,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}),xt(h,m,()=>{var e;const t=c(l),n=Oe(y);if(v("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)v("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),ht(y,r),(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&&h.style.setProperty("--advertory-political-box-offset","30px");else{v("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),ft(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(wt),(null==u?void 0:u.creativeId)&&bt(g,h,Number(null==u?void 0:u.creativeId))})}}),v("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=>{Pt(e,s)},directRenderFn:()=>{}})})}),Pt=(e,t)=>{var n;const{divId:i,native:o,bid:r}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],d=`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,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:o,targetId:d},w.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")};let Lt=e=>{window.apntag.anq.push(e)};const _t=e=>{Lt=e},jt=e=>{Lt(e)},$t=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Nt=e=>o(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:o}=F(t,0,i);if(!(yield o()))return;const r=$t("_pulse2data");return r?r.split(",")[9]:void 0}),qt={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Ft="takeover-displayed",Rt="takeover-visit-count",Mt=14400,Dt=()=>{const e=$t(Rt);return e?parseInt(e):0},Bt=()=>{const e=Dt(),{takeover:{options:{cookieCapTime:t=Mt}={}}={}}=w.get(),n=document.location.hostname;window.document.cookie=`${Rt}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Ut=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=w.get();return"0"!==k(P)&&("1"===k(P)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=w.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Ft;return"true"===$t(n)})())&&(!t||Ht()))},Ht=()=>{const e=Dt();return 0===e?(Bt(),!1):1===e},Vt=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Wt=()=>{const{takeover:e}=w.get();return Boolean(null==e?void 0:e.topscroller)},Kt=e=>{const{width:t,height:n}=e;return Vt(t,n)?qt.SPLASH:Be(e,Te.VELVET_TAKEOVER)?qt.VELVET:Wt()?qt.TOPSCROLLER:qt.WELCOME_PAGE},zt=()=>o(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Ft,cookieCapTime:n=Mt}={}}={},pageContext:{isMobileApp:i,countryCode:o},tcf:r}=w.get(),a=yield R(r,i,o,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Gt=e=>{var t,n;const i=!!(null===(n=null===(t=w.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Pe(e)&&i},Xt=(e,t)=>{var n;if(t===qt.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===qt.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Jt=(e,t)=>{t!==qt.SPLASH?(e=>{var t,n;const i=null===(t=w.get().pageSectionsSelectors)||void 0===t?void 0:t.header,o=null===(n=w.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||o)return;const r=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&s&&d))return;const l=null==r?void 0:r.offsetHeight,c=Le(e)?"60svh":`calc(100svh - ${l}px)`,u=Le(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=w.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 o=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",o,"important")})(e)},Qt=Ge([],()=>{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 Yt=Object.freeze({__proto__:null,addTakeoverCookie:zt,adjustTakeoverHeight:Jt,canDisplayTakeover:Ut,getProperWelcomePageConfig:Xt,getTakeoverVariant:Kt,handleTakeoverCookieOnAdNotShown:e=>o(void 0,void 0,void 0,function*(){Gt(e)&&(yield zt())}),incrementArticleVisitCount:Bt,isSplashVariant:Vt,isTopscroller:Wt,scaleAd:Qt,shouldAddTakeoverCookieForNotShownAd:Gt});const Zt=e=>`externalImpId:'${e}'`,en=(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,tn=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=w.get(),{targetId:o,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Ut())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!==qt.TOPSCROLLER):n,o=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:o})})(e),h=Object.assign({invCode:s,sizes:r,targetId:o,keywords:en(a,l),allowedFormats:d,dynamicSizeWidthCheck:p,globalPlacementId:g},u&&{safeframeConfig:u}),f=(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?(v("Pulse state pageViewId is:",i),i):(v("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&f&&(v("External Impression ID assigned to defineTag:",Zt(f)),h.externalImpId=Zt(f));const m=(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"))&&(h.native=m),h},nn=e=>!e.includes("takeover")||Ut(),on={nativeAd:e=>xe(e)&&!$e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ke,fullscreenScroll:Oe,topscroller:e=>Pe(e)&&Wt(),splash:e=>Pe(e)&&Vt(e.width,e.height),welcomePage:Pe,wallpaper:_e,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Me,hFormat:De,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!De(e)&&!Me(e),topboard:e=>e.targetId.startsWith("topboard")&&!Pe(e),widescreen:Re,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)&&!Fe(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:Fe},rn=({adObj:e,preferredTestIdData:t})=>{var n,i;const o=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!o)return;const r=null===(i=document.querySelector(`#${o}`))||void 0===i?void 0:i.parentElement;if(!r)return;if(((e,t)=>{var n,i,o,r;const a=null===(r=null===(o=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===o?void 0:o[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(o,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,i;for(const[o,r]of Object.entries(on))if(r(e)){if("nativeAd"===o){const r="default";t.dataset.testid=`${o}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:r}`;break}t.dataset.testid=o;break}})(e,r)},an=e=>{var t;return(null===(t=Object.entries(on).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},dn=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},sn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=w.get(),n=K(t),i=e[`${n}-targetid`],o=i?dn(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[o]})},ln=e=>{const{pageContext:{countryCode:t}}=w.get(),n=K(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"]})},cn=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],o=e.find(e=>e.invCode===i),r=document.querySelector(`[id^=${null==o?void 0:o.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e)},un=e=>{const{source:t}=e;return"csm"===t},pn="advertory-wallpaper-background",vn="advertory-with-horseshoe",gn=()=>{const e=document.querySelector(`.${pn}`);e&&e.remove()},hn=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${pn}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},fn=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,mn=e=>fn.test(e),yn=e=>e.startsWith("wallpaper:color:"),bn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundImage=`url(${e})`)},wn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundColor=e)};var Cn=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(vn),n.classList.add(vn))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{gn();const e=document.createElement("div");e.classList.add(pn),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&&(hn(n),window.addEventListener("scroll",()=>hn(n)))})(n),e()},isShortWallpaperColorMessage:yn,isShortWallpaperUrlMessage:mn,removeWallpaperBackground:gn,setWallpaperBackgroundColor:wn,setWallpaperBackgroundImage:bn});const In=e=>{if("0"===k("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")&&gn())},En=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"))},Tn=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},Sn=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`)},An=/_\d+$/,On=e=>e.replace(An,"");let xn="";const kn=new Map,Pn=e=>{const{pageSetup:{tag:t}={}}=w.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(xn!==window.location.pathname&&(kn.clear(),xn=window.location.pathname),e.map(e=>{var t;const n=On(e.invCode),i=null!==(t=kn.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=w.get();return`${e}-${t}`})()}-count`]=i,kn.set(n,i+1),e})):e},Ln=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const _n=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 o(this,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>o(void 0,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;try{return yield ie.get(t,{timeout:5e3})}catch(e){throw v("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,o,r;const a=((e,t)=>{const{sections:n}=e,o=i(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?c(o,r):o})(t,null!==(r=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>c(t,e))(e,a)}getConfig(e){return o(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return v("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return o(this,void 0,void 0,function*(){var t,n,i,o;if(!this.localSiteConfig)return;if(m(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(o=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void v("Error fetching updated S3 config, keeping current config",{error:e})}})}},jn=_n.getConfig.bind(_n),$n=_n.resolveUpdatedConfig.bind(_n),Nn=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=E.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},qn=()=>{gn();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{In(e.id),Nn(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=dn(e.id),t.push(e.id)}),jt(()=>window.apntag.clearRequest()),t},Fn=()=>{E.setData("wallpaper",{isAvailable:!1}),E.setData("horseshoe",{isAvailable:!1})},Rn=e=>o(void 0,void 0,void 0,function*(){const t=yield $n(e);var n;t?(w.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):C(null!=e?e:{})}),Mn="mobile",Dn="tablet",Bn="desktop",Un="web_desktop",Hn="web_phone",Vn="wde",Wn="wph",Kn="noGroupedPlacements",zn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Gn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Xn=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:o}}=w.get(),r=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Dn&&0===i.length?e[Bn]:i})(n,o),a=r.filter(Gn),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=zn(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)),r=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${o}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,s=d.querySelectorAll(r),l=Array.from(s).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const o=Jn(e,t,n);if(o.disabled)return v(`Placement ${o.targetId} is disabled - collapsing`),In(o.targetId),null;const r=o.finnBlink&&!o.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(i=o.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),d=`${e.id}-${Tt(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),r&&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&&E.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({},o),{targetId:d})}),c=l.filter(e=>null!=e);return Pn(c)});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))})(s)},Jn=(e,t,n)=>{const i=n[t],o=n[n.length-1],r=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==o?void 0:o.targetId)?o:r||o},Qn=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=w.get(),i=(null==t?void 0:t[n])||{},o=Object.values(i).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=dn(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,o]of Object.entries(t))n[i]=e.filter(e=>o.includes(dn(e.targetId)));return n})(e,i),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(dn(e.targetId))))(e,new Set([...d,...o]));return Object.assign(Object.assign(Object.assign({},a),r),{[Kn]:s})},Yn=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Zn=new Map,ei=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],ti=".brandstudio-premium-content-widget",ni=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ii=({adWrapper:e,placementContainer:t})=>{const n=ni({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Nn(i=t),i.innerHTML=""},oi=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},ri=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=w.get(),i=ei.includes(n)&&Boolean(t.closest(ti));const o=i?t.closest(ti):null,r=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&&!o)return;if(a)return oi(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=o;d&&s.contains(d)?oi(d):s.hasAttribute("style")&&oi(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},ai=(e,t,n,i,o,r)=>{var a;const d=performance.now(),s=null!==(a=Zn.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,o)&&n<0;d-s>=o&&l&&(Zn.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:i}}=w.get(),o=null==n?void 0:n.parentElement;o&&n&&ii({adWrapper:o,placementContainer:n}),jt(()=>{e.setKeywords([t],{[`${K(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},di=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:o,boundingClientRect:r}=e;t(window.apntag,o.id,r.y,n,i,o)})})(e,ai,t,n),Yn(300));i.observe(e)},si=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const o=e.slice(i,i+t);n.push(o)}return n},li=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),ci=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},ui=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=w.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),fi(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},pi=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const o of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=o.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==i?void 0:i.requestThreshold;ci(o,r)&&i&&(Sn(i.targetId),n.length&&o.classList.remove(...n),fi([i],t))}},vi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=w.get();t&&(e.forEach(({targetId:e})=>{const t=gi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&pi(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),pi(e,!1,t))};n.persisted&&(li()?window.addEventListener("scroll",i,{passive:!0}):pi(e,!1,t))})})(e,n))},gi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},hi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(gi(t)),o=(e=>1===e[0]&&1===e[1])(i),r={sizes:[i],allowedFormats:o?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return o||(r.native=void 0),r},fi=(e,t=!1)=>{const{queryConfig:{batchSize:n=y}={}}=w.get(),i=e.map(({targetId:e})=>e),o=si(i,n);if(t)for(const t of e){const e=hi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of o)jt(()=>window.apntag.refresh(e))},mi=e=>{const{apntag:t,bus:n}=e,{siteEvents:i,initNativeAd:r}=w.getHandlers(),a=[];return{adRequested:()=>{n.emit("adRequested"),i.adRequested()},adAvailable:e=>o(void 0,void 0,void 0,function*(){var t,o,a,d,s,l;v("core adAvailable start",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:je(e),isWallpaperAd:_e(e)});const c=null===(a=null===(o=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===o?void 0:o.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(un(e)&&c&&(null===(d=c[1])||void 0===d?void 0:d.rtb)&&(e.banner=null===(l=null===(s=c[1])||void 0===s?void 0:s.rtb)||void 0===l?void 0:l.banner),Oe(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return mt});t(e)}const{widescreenSwitching:u,wallpaper:p,fullscreenScroll:g}=w.get();if(Re(e)&&(null==u?void 0:u.enabled)){const{initWidescreenSwitching:e}=yield import("./index-Bmbw0Mdw.js");e()}if(Oe(e)&&!Ne(e.targetId)){v("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return mt});t(e,g)}if(!xe(e)||un(e)||Ne(e.targetId)||null==r||r(e,w.get()),Pe(e)&&!je(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield import("./index-D1Bc7pLb.js");t(e.targetId),yield n(e)}if(_e(e)&&(null==p?void 0:p.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return Cn});t(()=>jt(()=>window.apntag.showTag(e.targetId)),p),E.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&E.setData("horseshoe",{isAvailable:!0}),i.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),v("core adAvailable stop",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:je(e),isWallpaperAd:_e(e)})}),adLoaded:e=>o(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:o,wallpaper:d,adScaleConfig:s}=w.get(),l=document.getElementById(e.targetId);if(Ne(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield import("./events-BbgeuOvW.js");t(e)}if(a.includes(e.targetId)&&xe(e)&&(null==r||r(e,w.get()),rn({adObj:e})),!a.includes(e.targetId)&&un(e)&&a.push(e.targetId),je(e)&&In(e.targetId),Pe(e)){const{modifyTakeoverIframe:n}=yield import("./index-D1Bc7pLb.js");n(t,e.targetId)}if((e=>Be(e,Te.NINESIXTEEN))(e)){const{applyNinesixteenFormat:t}=yield import("./index-C2Ug4z-6.js");t(e)}if((e=>Be(e,Te.FULLSQUARE))(e)){const{applyFullsquareFormat:t}=yield import("./index-C2Ug4z-6.js");t(e)}if(ke(e)){const{applyFullwidthFormat:t}=yield import("./index-C2Ug4z-6.js");t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),o=null==i?void 0:i.parentElement;if(!o||!i)return;ri({adWrapper:o,placementContainer:i});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&di(i,a,r))})(e,n),(null==o?void 0:o.clearProbableDimensionsEnabled)&&Tn(e.targetId);if(E.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield import("./index-Bfjoec7X.js");t(e),n(e)}i.adLoaded(e),yt(e.targetId),l&&(l.classList.add(wt),(e=>{var t,n;const{pageSectionsSelectors:i}=w.get(),o=null==i?void 0:i.mainFirstColumn,r=o?null===(t=document.querySelector(o))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(l)),rn({adObj:e}),(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:o}=e;o?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:an(e)}}))}),adNoBid:e=>o(void 0,void 0,void 0,function*(){if(In(e.targetId),Pe(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Yt});yield t(e)}i.adNoBid(e)}),adError:(e,t)=>o(void 0,void 0,void 0,function*(){if(Pe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yt});yield e(t)}i.adError(e,t)}),adCollapse:()=>{i.adCollapse()},adRequestFailure:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adRequestFailure(e)}),adBadRequest:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adBadRequest(e)}),adLoadedMediated:e=>i.adLoadedMediated(e),adNoBidMediated:e=>{i.adNoBidMediated(e)}}};let yi;const bi=()=>yi,wi={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>o(void 0,void 0,void 0,function*(){yi=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=yi,_t(e=>window.apntag.anq.push(e)),yield Promise.allSettled([o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();(yield R(e,t,n,"xandr-endpoint"))||yi.setEndpoint("ib.adnxs-simple.com",!0)}),o(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=w.get();yield Ee(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),o(void 0,void 0,void 0,function*(){if(It())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get(),o=yield R(t,n,i,"prebid");(null==e?void 0:e.enabled)&&o&&(yield Ee(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>o(void 0,void 0,void 0,function*(){const{pageOptions:e}=w.get(),{preparePageOptions:t}=w.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=w.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 o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();return(yield R(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=E.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=ln(e);E.setData("alertoryConfigKeywords",n)})(r.keywords),jt(()=>bi().setPageOpts(r))}),definePlacements:e=>{const{prepareTag:t}=w.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)),o=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===o?-1:-1===i&&-1!==o?1:i-o})})(e).forEach(e=>{v("xandr definePlacements",{placement:e});const i=tn(e);if(nn(e.targetId)){const o=t(i),r=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:o}=e;return{adTypes:t,invCode:n,keywords:sn(i),sizes:o}})(o);n.push(r),jt(()=>(v("xandr definePlacements - add to the queue",{placement:e,preparedTag:o}),bi().defineTag(o)))}}),(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)},requestPlacements:e=>o(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>nn(e)).map(({targetId:e})=>e);t.length&&jt(()=>(v("xandr requestPlacements",{placementsIdsToLoad:t}),bi().loadTags([...t])))}),bindEvents:e=>o(void 0,void 0,void 0,function*(){var t;yield(t={apntag:bi(),bus:e},o(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=mi(t);jt(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))})},Ci=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:o}=window,[r,a]=t;if(!i.dataset.lockedsize&&a&&r)i.style.width=`${r}px`,i.style.height=`${a}px`,n&&(o.resizeAd(i.id,[r,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=r.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&o.resizeAd(i.id,[e,t])}},Ii="collapseAd",Ei="hideAd",Ti="resizeAd",Si="wallpaperImageUrl",Ai="wallpaperColor",Oi="velvet",xi=[Ti,Si,Ai,Ii,Ei,Oi];let ki;const Pi=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(mn(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Si,wallpaperImageUrl:t}}if(yn(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Ai,wallpaperColor:t}}if(e.startsWith(Ii)||e.startsWith(Ei)){const t=e.split(":")[1];return{name:Ii,targetId:t}}if(e.includes("name")&&xi.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!xi.some(e=>n.name===e))return;const{name:i,targetId:o,wallpaperImageUrl:r,wallpaperColor:a,cmd:d,size:s}=n;i===Oi&&d&&(d.includes("noScroll")&&(ki=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(d.includes("close")||d.includes("ended"))&&(null==ki||ki(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==Ii&&i!==Ei||!o||In(o),i===Ti&&o&&d&&Ci(o,d),"resizeMediationAd"===i&&o&&s&&Ci(o,s,!0),i===Si&&r&&bn(r),i===Ai&&a&&wn(a)},Li=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=w.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},a=e=>{En(e),jt(()=>i.showTag(e))};return{withXandrAd:a,withFinnBlinkAd:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-CnjlNi2G.js");yield t(e,r,null)}),withFullAdsChain:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void a(e);const{loadFinnBlinkAd:t}=yield import("./index-CnjlNi2G.js");yield t(e,r,a,()=>o(void 0,void 0,void 0,function*(){if(!E.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e)}))})}},_i=(e,t)=>o(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield xt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Ne(t)&&i?(v(`loading finn blink ad for blink only placement for ${t}`),void Li().withFinnBlinkAd(t)):Ne(t)?(v(`loading finn blink ad with full ads chain for ${t}`),void Li().withFullAdsChain(t)):void jt(()=>(v("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)))}),ji=(e,t)=>o(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});st(".advertory-brandmetrics-survey{width:100%}");const $i="advertory-brandmetrics-survey",Ni=()=>o(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)}}),qi=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Fi="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Ri=()=>o(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 o;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(o=n.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Mi={pageContext:{publisher:"aftonbladet",countryCode:j.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"}},Di={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Bi=e=>(null==e?void 0:e.parent)?[...Bi(e.parent),e.shortPath||"unknown"]:[],Ui=(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]=Bi(e);return Di[n]||"ovrigaavdelningar"})(e)}_{position}`,Hi={aftonbladet:Mi},Vi={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Ui(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Bi(e).join(":")}}},Wi=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},Ki=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),zi="se-generic",Gi="aa-sch",Xi="kv_",Ji="pause",Qi="{deviceType}",Yi="{position}",Zi="afp_",eo=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),to="1-1",no="16-9",io="3-4",oo="9-16",ro="responsive",ao={[to]:1,[no]:1.78,[oo]:.56,[ro]:1},so={[to]:1,[no]:1.78,[io]:1.33,[oo]:.56},lo=(e,t,n,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},a=Bn===n?Vn:Wn,d=o.replace(Qi,a);return(e,n)=>{if(e===Ji)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Yi,Ji).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&eo.has(e)){return(i&&r?r:t.frontpageInvCodeTemplate).replace(Qi,a).replace(Yi,e)}return d.replace(Yi,e)}},co=()=>{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"},uo=e=>e===Mn,po=853,vo=767,go=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,o])=>{const r=Math.abs(e[n]-t);return Math.abs(o-t)<r?i:n},n[0][0])},ho=()=>{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},fo=()=>{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},mo=()=>{const e=null!==(t=fo()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=fo()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},yo=()=>Object.fromEntries(new URLSearchParams(window.location.search)),bo=(e,t)=>o(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:o}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:o,publisher:i,pageType:"front",deviceType:e.deviceType},s=(yield R(n,e.isApp,o,"video"))?"1":"0",l=yield Ri(),c=yield Ce(o),u=yield Nt({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>go(so,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(f=e.playerAspectRatio)?go(ao,Number(f.toFixed(2))):ro;var f,m;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Gi}-country_code`]:o,[`${Gi}-publisher`]:i,[`${Gi}-supply_type`]:(m=e.deviceType,m===Bn?Un:Hn),[`kw_${Gi}-page_type`]:"collection",[`${Gi}-page_type`]:"collection",[`${zi}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${zi}-page`]:"index",[`${zi}-page`]:"index",[`${zi}-screenheight`]:String(window.screen.height),[`${zi}-screenwidth`]:String(window.screen.width),[`${zi}-viewportheight`]:String(a),[`${zi}-viewportwidth`]:String(r),[`${zi}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${zi}-mobile-os`]:co(),[`${zi}-audience`]:void 0,[`${zi}-externalid_src`]:mo(),[`${zi}-tags`]:e.tags,[`${zi}-articleid`]:p,"article-id":p},yield z(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${zi}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(yo()).some(e=>e.includes(Xi))&&(()=>{const e=yo(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Xi)).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":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),wo=["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"],Co=["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"],Io=["external_uid","gdpr","gdpr_consent","eids","article-id"],Eo=(e,t)=>{const n=[...wo,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Io.includes(e)?e:`kw_${e}`,t]))},To=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Co.includes(e))),So=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i,o,r;const a=(e=>{var t;Hi[e]||g(`[video] No config found for publisher "${e}"`);return null!==(t=Hi[e])&&void 0!==t?t:Mi})(e.publisher),d=(e=>{var t;return null!==(t=Vi[e])&&void 0!==t?t:Vi.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===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!==(o=Number(e.aspectRatio))&&void 0!==o?o:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield bo({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==d?void 0:d.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:ho(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:Wi(e.startMode)}}),Ao=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=i||{},l=lo(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Zi)?`${Zi}${t}`:t)(s),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,o),"se-generic-playback-method":Ki.get(d),"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({},Eo(r,n)),To(r)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Oo=e=>t=>o(void 0,void 0,void 0,function*(){const n=yield So(e,t);return Ao(n,e)}),xo={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]}]},ko={no:"NOK",se:"SEK"},Po={no:"no",se:"sv"};class Lo{buildFetchObject(e,t,n,i){return o(this,void 0,void 0,function*(){const{pageContext:{countryCode:o},pageOptions:r}=i,{invCode:a,xandrPlacementId:d}=e,s=yield Ri(),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(xo),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({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.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||Po[o]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield Nt(i),ext:{consent:s.gdpr_consent||"",eids:we(o)}},at:1,cur:[ko[o]],source:{tid:Tt(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,i){return o(this,void 0,void 0,function*(){try{v("Starting fetching Studio ad from Xandr:",Fi);const o=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${Fi}?${a.toString()}`:Fi,s=yield this.buildFetchObject(e,t,n,i),l=yield ie.post(d,o,s);return v("Fetch operation completed successfully.",l),l}catch(e){v("Error during fetch operation:",e)}return null})}}const _o=0,jo=3,$o=(e,t,n,i)=>{const o=t.parentElement;if(!o)return;const r=e?`-${e}`:"",a=i?`__${i}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),o.classList.remove(...o.classList),t.classList.add(d),o.classList.add(s),t.dataset.adType=n},No={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},qo=(e,t)=>{Fo(e,t),Mo(e,t)},Fo=(e,t)=>{var n,i;const o=document.querySelector(`#${e.targetId}`);if(!o||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==o?void 0:o.querySelectorAll(r)).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:[])Bo(i)}),t.dataset.tracked="true")})},Ro=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),o="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!o?null==n||n.forEach(Do):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},Mo=(e,t)=>{var n;let i=!1;const o=document.querySelector(`#${e.targetId}`);if(!o||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Bn])&&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,Ro(e),c.disconnect();break}},s);c.observe(o)},Do=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Bo(e):window.navigator.sendBeacon(e)},Bo=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Uo=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:[]}),Ho=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:o},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[o],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void v(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Yn(d)).observe(s)});const{prepareTag:l}=w.getHandlers(),c=E.getData("alertoryConfigKeywords"),u=null!==(i=l(tn(e)).keywords)&&void 0!==i?i:{},p=new Lo,g=yield p.fetchData(e,c,u,t);g&&(((e,t,n)=>{const i=n===Mn?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===_o){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")}})(s,g,o),g.adType===jo&&($o(t.pageContext.publisher,s,No.NATIVE_AD,t.pageContext.pageType),qo({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:o,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var o,r,a;let d;(null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),bt(e,n,Number(null==i?void 0:i.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,g.bid))}),Vo=(e,t)=>{e.forEach(e=>Ho(e,t).catch(e=>{v("Failed to handle server-side ad:",e)}))},Wo="_adchoices_non_rtb",Ko=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Wo}={}}={}}=w.get();return`${On(e)}${t}`},zo=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>In(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Ko(e.invCode)})))(e)),Go=e=>`${Math.max(0,Math.round(e))}px`,Xo=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},Jo=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},Qo=()=>{const{pageSectionsSelectors:e}=w.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=Xo(t);Jo({"--advertory-header-height":Go(n)})})(e.header)};let Yo=wi,Zo=[];const er=["takeover","wallpaper"],tr=(e,t)=>{var n,i;const{initNativeAd:o}=w.getHandlers();null==o||o(e,null!==(i=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==i?i:w.get())},nr=e=>{const t=(e=>{var t;const n=E.getData("alertoryConfigKeywords"),{queryConfig:i,placements:o,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:f,fullWidth:m}=e,b=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:y;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:o,tcf:r,queryConfig:Object.assign(Object.assign({},i),{batchSize:b})},a&&{glimr:a}),d&&{appearanceConfig:d}),h&&{takeover:h}),f&&{fullscreenScroll:f}),m&&{fullWidth:m})}})(e);window.advertory={initialized:!0,version:"3.16.4",siteConfig:e,renderNativeAd:tr,alertoryConfig:t}},ir=()=>o(void 0,void 0,void 0,function*(){yield Yo.setTargeting()}),or=e=>o(void 0,void 0,void 0,function*(){var t,n;const{prebid:i,tcf:o,pageContext:{isMobileApp:r,countryCode:a}}=w.get(),d=yield R(o,r,a,"loadPlacements"),s=zo(e,d);null===(t=Yo.definePlacements)||void 0===t||t.call(Yo,s);(null==i?void 0:i.enabled)&&d&&!It()?(v("core loadPlacements prebid enabled"),yield kt()):(v("core load tags invoked without prebid enabled"),yield null===(n=Yo.requestPlacements)||void 0===n?void 0:n.call(Yo,s))}),rr=(e,t)=>o(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=w.get(),{requestThreshold:o,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[i];a&&(v("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:o,deviceDefaultThreshold:d}),yield _i(a,null!=o?o:d)),a&&(null==r?void 0:r.scroll)&&(v("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),ar=e=>e.some(({targetId:e})=>er.some(t=>e.includes(t))),dr=e=>o(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),o=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=y}={},pageContext:{deviceType:i}}=w.get(),o=Qn(e),r=Object.keys((null==t?void 0:t[i])||{}).map(e=>o[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...r,...si(d,n)]})(i);for(const e of o)ar(e)?(v("core loadAds without lazy loading",{placementsToLoad:e}),yield or(e)):e.length&&(v("core loadAds with lazy loading",{placementsToLoad:e}),yield sr(e));const{finnBlink:r}=w.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-CnjlNi2G.js");yield e(n)}}),sr=e=>o(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=w.get(),i=[];if(!t)return v("lazy load is not enabled",{placements:e}),void(yield or(e));const o=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{v("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const o=e.every(e=>i.includes(e.targetId)),r=e.map(e=>e.targetId);!o&&i.push(...r),!o&&or(e),v("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:o,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(v("lazy loading - observe element",{targetId:e.targetId,element:t}),o.observe(t))})}),lr=()=>o(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>o(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>o(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=Zo.find(({targetId:t})=>t===e.targetId);t&&(yield rr(t,e),Zo=Zo.filter(e=>e.targetId!==t.targetId))})),yield Yo.bindEvents(e)}),cr=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;if(v(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return v("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:o,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:d,contextSelector:s}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let c=[];if(r)return qn(),Zo=[],Fn(),[];if(o&&(c=null!==(i=qn())&&void 0!==i?i:[]),o&&!l)return[];o&&l&&(Zo=[],Fn()),a&&(qn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{En(e.id)})),yield Rn(e),(null==e?void 0:e.pageSectionsSelectors)&&Qo(),yield ir();const{clientSidePlacements:u,serverSidePlacements:p}=Uo(Xn(s)),g=[...u,...p];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>dn(e)));e.filter(e=>n.has(e)).forEach(e=>En(e))})(c,g),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>dn(e)));e.filter(e=>!n.has(e)).forEach(e=>Tn(e))})(c,g);let h=u;return d&&(h=h.filter(e=>Ne(e.targetId))),Vo(p,w.get()),h.length>0&&(Zo=[...Zo,...h.map(e=>Object.assign({},e))],ui(h),vi(h),yield dr(h)),Zo}),ur=(e,t,n)=>o(void 0,void 0,void 0,function*(){var i,r;const{initConsentManager:a,getConsentAsync:d}=F(e.tcf,null===(i=e.pageContext)||void 0===i||i.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),s=yield jn(e);yield Ni(),yield ji(a),yield ji(d),v("TCF resolved successfully"),yield((e,t,...n)=>o(void 0,[e,t,...n],void 0,function*(e,t,n=wi){var i,r;Yo=n,w.set(e),w.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:a,kilkaya:d,rightColumnSplit:s,finnBlink:l}=e;E.initialize(),window.addEventListener("message",Pi,!1);const[c]=yield Promise.allSettled([Yo.setup(),he(e),o(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get();(yield R(t,n,i,"gpt-endpoint"))&&(yield Ee(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),o(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:o}}=w.get(),{getConsentAsync:r}=F(n,0,o),a=yield r();if(e&&t&&a){if(yield Ee(t),document.querySelector(`.${$i}`))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($i)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),D(),o(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=w.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Ee(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(v("Driver has been set up"),null==a?void 0:a.enabled){const{loadNorstat:e}=yield import("./index-BWLVs3DP.js");yield e()}if(v("Libraries have been loaded and trackers have been set"),Qo(),yield lr(),yield ir(),v("Page options have been set"),nr(e),v("Advertory is setup on window"),"dom-discovered"===Yo.capabilities.tagDefinition)return yield null===(i=Yo.requestPage)||void 0===i?void 0:i.call(Yo),void v("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=Uo(Xn());if(Zo=u,Vo(p,e),ui(Zo),vi(Zo),yield dr(Zo),v("Ads has been loaded",Zo),cn(Zo),null==l?void 0:l.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-CnjlNi2G.js");yield t(null===(r=null==e?void 0:e.pageContext)||void 0===r?void 0:r.deviceType,e.finnBlink)}if(null==s?void 0:s.enabled){const{initRightColumnSplit:t}=yield import("./index-CSdaW1tz.js");t(e.rightColumnSplit)}if(null==d?void 0:d.enabled){const{runKilkaya:t}=yield import("./index-BMOv7vq8.js");yield t(e)}}))(s,t,n),v("Run function resolved successfully")}),pr=["sponsor","seamless"],vr=["shopping"],gr=(e,t,n,i)=>{var o;const{image:r,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:f,customTitle3:m,customTitle4:y,customBody1:b,customBody2:w,customBody3:C,customBody4:I,customBody5:E,customIcon1:T,customIcon2:S,customDisplayUrl1:A}=e,O=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:O(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=pr.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&T;return O(t?T:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(o=null!=u?u:g)&&void 0!==o?o:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=f?f:"",customTitle3:null!=m?m:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=C?C:"",customBody4:null!=I?I:"",customBody5:null!=E?E:"",logo2:O(S),previewVideoSrc:null!=A?A:""},t)},hr=(e,t)=>{const n=(i=L,window.location.href.includes(i));var i;const o=new URLSearchParams(window.location.search).get(L),r=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!vr.includes(t.toLowerCase())?r?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},fr=(e,n,i,o)=>{const r=document.querySelector(`#${e}`);r&&n&&(r.innerHTML=n,((e,n)=>{const i=e.parentElement,{publisher:o,pageType:r}=n,a=o&&Object.values(t).includes(o);i&&a&&$o(o,e,No.NATIVE_AD,r)})(r,i),o())},mr=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:o,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=hr(e.targetId,l))&&void 0!==i?i:c,p=ct[t.language||j.NO],v=gr(d,p,s,t);return(d.video?r[u]:o[u]||o.default)(v,t)})(e,t,n);fr(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&qo(e,t)})},yr=e=>(t,n)=>{var i;const{targetId:o}=t,r=document.querySelector(`#${o}`);if(!r)return;const a=e.getOptions(null!=n?n:{});mr(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,r)},br=()=>{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},wr=e=>{const{siteSpecificConfig:t}=w.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Cr{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return o(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 o(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Ir=9826;class Er{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=w.get();if(t){return{"aa-sch-supply_type":`app_${e===Mn?"phone":Dn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return o(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 o(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=$t("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return o(this,void 0,void 0,function*(){return yield Nt(w.get())})}isTrackingForbidden(){return o(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=Ir}={}}=w.get();return"true"===k("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=w.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return o(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get(),{getConsentAsync:i}=F(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=w.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 Tr=new Er;function Sr(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(),o=co();return{OS:o,mobileOS:["ios","android"].includes(o)?o:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Tr.prepare.bind(Tr);const Ar=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Or(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Ar.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class xr extends Er{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=w.get(),{OS:n,isHybridApp:i}=Sr(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Or(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get(),o=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":`${o.split("_").pop()||o}_${"article"===i?"article":"front"}`}}}const kr=new class extends xr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,o,r,a,d;const s=w.get(),l=null!==(i=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(r=null===(o=s.pageSetup)||void 0===o?void 0:o.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new Cr;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(z(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(me()).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({},fe(j.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Pr=kr.prepare.bind(kr);class Lr extends Er{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.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!==(r=null===(o=window.screen)||void 0===o?void 0:o.height)&&void 0!==r?r:0};var n,i,o,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return o(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}}=w.get(),{appMode:t,mobileOS:n}=Sr(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}}=w.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 _r=new class extends Lr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,r,a,d;const s=w.get(),l=null!==(i=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(d=null===(a=null===(r=s.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===a?void 0:a.keywords)&&void 0!==d?d:{},u=new Cr;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(z(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>o(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(me()).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"===$t("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({},fe(j.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},jr=_r.prepare.bind(_r);let $r;const Nr=()=>{(()=>{var e;const{placements:t,pageContext:{deviceType:n}}=w.get(),i=null!==(e=t[n])&&void 0!==e?e:[];return"tablet"===n&&0===i.length?t.desktop:i})().forEach(({targetId:e,adUnitId:t})=>{if(!t)return;const n=document.getElementById(e);n?n.dataset.adUnitId=t:v("relevant-managed requestPage - placement container was not found",{targetId:e})})},qr=()=>{const{prebid:e}=w.get();return Boolean((null==e?void 0:e.enabled)&&e.manageAdserver&&!It())},Fr={name:"relevant-managed",capabilities:{tagDefinition:"dom-discovered",deferredRequest:!1,deferredRender:!1,refresh:!1},setup:()=>o(void 0,void 0,void 0,function*(){var e;const{prebid:t}=w.get();qr()?(null==t?void 0:t.prebidUrl)?(_t(e=>Z().push(e)),yield Ee(null!==(e=null==t?void 0:t.adServerUrl)&&void 0!==e?e:"https://s1.adform.net/banners/scripts/adx.js"),yield Ee(t.prebidUrl)):v("relevant-managed setup - prebidUrl is required, skipping script loading"):v("relevant-managed setup - managed prebid is disabled, skipping script loading")}),setTargeting:()=>o(void 0,void 0,void 0,function*(){if(!qr())return;const{pageOptions:e}=w.get(),t={site:{keywords:(n=null==e?void 0:e.keywords,Object.values(null!=n?n:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))}};var n;Z().push(()=>{Y().addPrebidConfig({ortb2:t})})}),requestPage:()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:n}=w.get();if(!qr())return void v("relevant-managed requestPage - managed prebid is disabled, skipping");if(!(null==e?void 0:e.configId))return void v("relevant-managed requestPage - configId is required, skipping");(yield R(t,null==n?void 0:n.isMobileApp,null==n?void 0:n.countryCode,"relevant-managed-requestPage"))?(Nr(),null==$r||$r.emit("adRequested"),Z().push(()=>{v("relevant-managed requestPage - loadPrebid",{configId:e.configId}),Y().loadPrebid({configId:e.configId,noGpt:!0,manageAdserver:!0})})):v("relevant-managed requestPage - consent not granted, skipping")}),bindEvents:e=>o(void 0,void 0,void 0,function*(){$r=e})},Rr={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:o,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=w.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=w.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(o,l),u=(e=>{const{pageContext:{countryCode:t}}=w.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,o=`${K(t)}-adformat`,r=n?n[o]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Ae)||window.innerWidth>=Ae[e]);return{[o]:i?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=w.get(),n=`${K(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=br(),h=(e=>wr(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(o),f=((e,t)=>wr(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(o,{safeFrameAutoInitialSize:!0}),m=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,y=(new Cr).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${K(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:m,invCode:c,keywords:y,rendererOptions:f,globalPlacementId:a||c})},preparePageOptions:e=>o(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=w.get();return yield t===j.SE?jr(e):Pr(e)}),siteEvents:e},Mr=((e,t,n)=>({init:i=>{return r=Object.assign(Object.assign({},i),{siteSpecificConfig:t}),a=e,d=n,o(void 0,void 0,void 0,function*(){v(`Received configuration passed to Advertory: ${JSON.stringify(r)}`),yield ur(r,a,d)});var r,a,d},update:cr,renderNativeAd:tr,getVideoPPIDs:Ce,createInitNativeAd:yr,getVideoAdsConfig:Oo}))(Rr,n,Fr);export{No as A,ze as B,j as C,ct as D,Qe as E,Ct as F,rn as G,Oe as H,ht as I,xe as J,uo as K,vo as L,po as M,t as N,an as O,Be as P,zn as Q,Mr as R,Te as S,qt as T,o as _,Ie as a,In as b,w as c,i as d,qi as e,$o as f,dn as g,R as h,st as i,be as j,Xo as k,v as l,Jo as m,Go as n,J as o,En as p,Ee as q,ci as r,_i as s,St as t,Li as u,Xt as v,Qt as w,Kt as x,zt as y,Jt as z};
|