@schibsted/advertory 3.16.4 → 3.16.5
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/ad-native/cjs/index.d.ts +2 -0
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.d.ts +2 -0
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.d.ts +2 -0
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-b0y6e9cl.js +1 -0
- package/aftenposten/es/{events-CUtqDcOU.js → events-DPNnYlfA.js} +1 -1
- package/aftenposten/es/{index-Bvf-9Teu.js → index-B8-3dAzZ.js} +1 -1
- package/aftenposten/es/{index-CupJFn54.js → index-BR5XIfB1.js} +1 -1
- package/aftenposten/es/{index-B1KtxFB7.js → index-CN2oVSgJ.js} +1 -1
- package/aftenposten/es/{index-CNbFQ-BX.js → index-CS7Ab372.js} +1 -1
- package/aftenposten/es/{index-BhWOnf_2.js → index-DHc_dP2Z.js} +1 -1
- package/aftenposten/es/{index-DZRcZtb_.js → index-DQGbdXJH.js} +1 -1
- package/aftenposten/es/{index-D9mCiB6g.js → index-DRw2tzN7.js} +1 -1
- package/aftenposten/es/{index-wSqbF9V9.js → index-Db4A-lKt.js} +1 -1
- package/aftenposten/es/index.d.ts +2 -0
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-ChLacMFT.js → styles-BVFhT7Fm.js} +1 -1
- package/aftenposten/es/{styles-CMrcVYVK.js → styles-BqwkhLCB.js} +1 -1
- package/aftenposten/es/{styles-C_lbyOTf.js → styles-BxGxExCF.js} +1 -1
- package/aftenposten/es/{styles-D74DSERs.js → styles-C3V8Btu3.js} +1 -1
- package/aftenposten/es/{styles-CuOMGl58.js → styles-CfAyG-Uc.js} +1 -1
- package/aftenposten/es/styles-Cmgz7g7s.js +1 -0
- package/aftenposten/es/styles-CshnwzG0.js +1 -0
- package/aftenposten/es/{styles-C89MDvVu.js → styles-D4hQIIqP.js} +1 -1
- package/aftenposten/es/{styles-DA1BMEN5.js → styles-DbteVOM6.js} +1 -1
- package/aftenposten/es/{styles-COUqZdTh.js → styles-qYagS0GU.js} +1 -1
- package/aftenposten/es/{styles-B9_JpKld.js → styles-x5cJhAzP.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BLiPUAZ4.js +1 -0
- package/aftenpostenv2/es/{events-CZIlksNN.js → events-DvmFMPMT.js} +1 -1
- package/aftenpostenv2/es/{index-DFUUvPhp.js → index-3Qxcwyk4.js} +1 -1
- package/aftenpostenv2/es/{index-CkrnkXMB.js → index-BVUcPqHw.js} +1 -1
- package/aftenpostenv2/es/{index-BahiBuCe.js → index-BZnCLvE4.js} +1 -1
- package/aftenpostenv2/es/{index-DCivBHmy.js → index-CCgqrIq1.js} +1 -1
- package/aftenpostenv2/es/{index-xY6xKAlG.js → index-CYSeTeEv.js} +1 -1
- package/aftenpostenv2/es/{index-BJ42UC0X.js → index-DiBksfGt.js} +1 -1
- package/aftenpostenv2/es/{index-Dhspki3Q.js → index-DoEPQvRY.js} +1 -1
- package/aftenpostenv2/es/{index-FLUAaRBC.js → index-lqm-o7Po.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +2 -0
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-CIVdN4uC.js → styles-BGkSuxfG.js} +1 -1
- package/aftenpostenv2/es/{styles-DxQeWNb2.js → styles-BeZfyt5D.js} +1 -1
- package/aftenpostenv2/es/{styles-EyXxOrF9.js → styles-C-SPFJ1u.js} +1 -1
- package/aftenpostenv2/es/{styles-gPdnaMff.js → styles-C23QTq8C.js} +1 -1
- package/aftenpostenv2/es/styles-CN1ZGodG.js +1 -0
- package/aftenpostenv2/es/styles-Cz4wgX8T.js +1 -0
- package/aftenpostenv2/es/{styles-D7_QuxPh.js → styles-DT0w-UuZ.js} +1 -1
- package/aftenpostenv2/es/{styles-Vxy-YYl9.js → styles-Dfd6TOhp.js} +1 -1
- package/aftenpostenv2/es/{styles-B8-WM6bt.js → styles-PnO4KF4Z.js} +1 -1
- package/aftenpostenv2/es/{styles-Dhc_HlDa.js → styles-qz3icO2I.js} +1 -1
- package/aftenpostenv2/es/{styles-BQgmHSl2.js → styles-xro3TPE2.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +2 -0
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-Bjlb4roy.js +1 -0
- package/aftonbladet/es/{events-Cb_egDqD.js → events-BajOdJr2.js} +1 -1
- package/aftonbladet/es/{index-B9ajGCH9.js → index-B-9GeVqx.js} +1 -1
- package/aftonbladet/es/{index--TTh1A6u.js → index-BiQjBDTx.js} +1 -1
- package/aftonbladet/es/{index-c_Mo0jVe.js → index-BlZB6F-_.js} +1 -1
- package/aftonbladet/es/{index-_s9zE9Rq.js → index-BrjN2etN.js} +1 -1
- package/aftonbladet/es/{index-LbTNLjZr.js → index-BxavM0ix.js} +1 -1
- package/aftonbladet/es/{index-Bum_y_ar.js → index-CACHUzk8.js} +1 -1
- package/aftonbladet/es/{index-DwgjGg7T.js → index-Cmwj6Oyf.js} +1 -1
- package/aftonbladet/es/{index-sRj7ytSE.js → index-DY3lTbNz.js} +1 -1
- package/aftonbladet/es/index.d.ts +2 -0
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-BNOhCqh6.js → styles-BUwUWMkk.js} +1 -1
- package/aftonbladet/es/styles-BwoNWGMU.js +1 -0
- package/aftonbladet/es/styles-CSY6WCee.js +1 -0
- package/aftonbladet/es/{styles-D04jNt_e.js → styles-DHhYeLQg.js} +1 -1
- package/aftonbladet/es/{styles-9qgERyeL.js → styles-DSk80Xw5.js} +1 -1
- package/aftonbladet/es/{styles--i2CdCBQ.js → styles-DdWa3WR4.js} +1 -1
- package/aftonbladet/es/{styles-kHvV6yTq.js → styles-WB5MQdr8.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Bm4ucKUa.js +1 -0
- package/aftonbladetv2/es/{events-CBAuYLGa.js → events-BoHrcmNf.js} +1 -1
- package/aftonbladetv2/es/{index-1gYyn9Yn.js → index-BAszEASA.js} +1 -1
- package/aftonbladetv2/es/{index-YwwVUflU.js → index-BS_cgiVx.js} +1 -1
- package/aftonbladetv2/es/{index-DNqCIBPb.js → index-CJK6gbdV.js} +1 -1
- package/aftonbladetv2/es/{index-BDLr498k.js → index-CMsqVKG_.js} +1 -1
- package/aftonbladetv2/es/{index-CPsvtx6Y.js → index-CmBDcRgQ.js} +1 -1
- package/aftonbladetv2/es/{index-TDDPtqNP.js → index-D2cSv_ZE.js} +1 -1
- package/aftonbladetv2/es/{index-u76eFG-7.js → index-GptaM2G6.js} +1 -1
- package/aftonbladetv2/es/{index-DLrL8-Dl.js → index-XIy7hYZP.js} +1 -1
- package/aftonbladetv2/es/index.d.ts +2 -0
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/styles-9SQCcTFw.js +1 -0
- package/aftonbladetv2/es/styles-BUZTzbbN.js +1 -0
- package/aftonbladetv2/es/{styles-Blx11MUT.js → styles-C9uP2Yjh.js} +1 -1
- package/aftonbladetv2/es/{styles-Cca7pauT.js → styles-DeL7yXUR.js} +1 -1
- package/aftonbladetv2/es/{styles-B_t9MMC_.js → styles-DrxvzT3b.js} +1 -1
- package/aftonbladetv2/es/{styles-DxWGK5FS.js → styles-DtHKest_.js} +1 -1
- package/aftonbladetv2/es/{styles-D5-nuZ90.js → styles-HIZnvE3y.js} +1 -1
- package/bt/cjs/index.d.ts +2 -0
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-DZ1dqndN.js +1 -0
- package/bt/es/{events-CswlmiIO.js → events-tSdmJX0c.js} +1 -1
- package/bt/es/{index-DLQKbZDX.js → index-BKqjZpW8.js} +1 -1
- package/bt/es/{index-DZnfKSIf.js → index-CYDruSxp.js} +1 -1
- package/{sa/es/index-QtIpNiRD.js → bt/es/index-Cd67JkoX.js} +1 -1
- package/bt/es/{index-na9kuoec.js → index-DKXXF8LP.js} +1 -1
- package/bt/es/{index-oztFxBb7.js → index-D_rnTuTK.js} +1 -1
- package/bt/es/{index-CaPEjHGL.js → index-XfeF_trd.js} +1 -1
- package/bt/es/{index-DV2S5vjT.js → index-lKXFyrjV.js} +1 -1
- package/bt/es/{index-CkeXLKkZ.js → index-vE82QAjA.js} +1 -1
- package/bt/es/index.d.ts +2 -0
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-D3PPkHNP.js → styles-6EXR5zYV.js} +1 -1
- package/bt/es/{styles-Do1o2Wz9.js → styles-BJwiaOeV.js} +1 -1
- package/bt/es/styles-C3WS_t8v.js +1 -0
- package/bt/es/{styles-9C9w_1v2.js → styles-D5T2ZpmU.js} +1 -1
- package/bt/es/{styles-DqRKLcRJ.js → styles-D5xd7Hvt.js} +1 -1
- package/{sa/es/styles-DwFobIym.js → bt/es/styles-DATz2nfg.js} +1 -1
- package/bt/es/{styles-BgN5plBg.js → styles-DI3iahFH.js} +1 -1
- package/bt/es/{styles-CgrEji-B.js → styles-D_uzW3WW.js} +1 -1
- package/bt/es/styles-Dxi9bw8S.js +1 -0
- package/bt/es/{styles-CqRPfGp7.js → styles-W-qv8i7u.js} +1 -1
- package/btv2/es/_auto-entry_btv2-DHXIwMdb.js +1 -0
- package/{omni/es/events-DdIPXeSL.js → btv2/es/events-Dy3xkIfQ.js} +1 -1
- package/{sav2/es/index-DSp1UYQR.js → btv2/es/index-CAmnFTcf.js} +1 -1
- package/btv2/es/{index-UeZmtDh2.js → index-CI9qR038.js} +1 -1
- package/btv2/es/{index-BKKmemab.js → index-CO-rmFyi.js} +1 -1
- package/btv2/es/{index-BRpv_ozi.js → index-CwQrOubz.js} +1 -1
- package/btv2/es/{index-CdJ1kkYS.js → index-D1XmRKBk.js} +1 -1
- package/btv2/es/{index-DEVM6nNl.js → index-DiDbJpSB.js} +1 -1
- package/{sav2/es/index-DjzmQjMW.js → btv2/es/index-eb9jjS0f.js} +1 -1
- package/btv2/es/{index-Dy9vnfFT.js → index-tjtRkdna.js} +1 -1
- package/btv2/es/index.d.ts +2 -0
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-Dlk_Ip0t.js → styles-B_dmaxLE.js} +1 -1
- package/{sav2/es/styles-D2ye6hfF.js → btv2/es/styles-CJqhpmvB.js} +1 -1
- package/btv2/es/styles-CYv9ccwN.js +1 -0
- package/btv2/es/styles-CjAmkfwB.js +1 -0
- package/{sav2/es/styles-BdBc77e7.js → btv2/es/styles-DF73Rp9s.js} +1 -1
- package/btv2/es/{styles-CJtG8dn-.js → styles-Drq6h0oi.js} +1 -1
- package/btv2/es/{styles-B57rZkCB.js → styles-DtOFNwbp.js} +1 -1
- package/{sav2/es/styles-UW14kTbC.js → btv2/es/styles-oQ-oCuDf.js} +1 -1
- package/{sav2/es/styles-BMfM5HTj.js → btv2/es/styles-wKCi4pBU.js} +1 -1
- package/btv2/styles.css +1 -1
- package/e24/es/_auto-entry_e24-Ccim4RT9.js +1 -0
- package/e24/es/{events-LOyJVR4y.js → events-Dsfcuo7x.js} +1 -1
- package/e24/es/{index-DDntsOiK.js → index-1AQljQ04.js} +1 -1
- package/e24/es/{index-N2iiAegk.js → index-C8tM3PuE.js} +1 -1
- package/e24/es/{index-DFYKSnGZ.js → index-CBF-dEe0.js} +1 -1
- package/e24/es/{index-D0buLN9e.js → index-CclIZUlD.js} +1 -1
- package/e24/es/{index-BxIA6OFG.js → index-CdLXLLrr.js} +1 -1
- package/e24/es/{index-BYvROhdJ.js → index-DZc8k80J.js} +1 -1
- package/e24/es/{index-pS4w5SCT.js → index-DllTZl0h.js} +1 -1
- package/e24/es/{index-CI2lUM6N.js → index-DzcT99p3.js} +1 -1
- package/e24/es/index.d.ts +2 -0
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-CHRP-b1i.js → styles-7mXTCMFW.js} +1 -1
- package/e24/es/{styles-BYVlD50k.js → styles-BA1aQZwV.js} +1 -1
- package/e24/es/{styles-CWBbja76.js → styles-BJDXJ_zX.js} +1 -1
- package/e24/es/{styles-Cv5D63_u.js → styles-CP89sUxz.js} +1 -1
- package/e24/es/styles-CcW-Lo_s.js +1 -0
- package/e24/es/{styles-DzqmIt7W.js → styles-CtBvPN4a.js} +1 -1
- package/e24/es/{styles-rhjbhrHD.js → styles-DAhegP-P.js} +1 -1
- package/e24/es/styles-DaDDz2Ik.js +1 -0
- package/{tv4/es/styles-THRKFT8J.js → e24/es/styles-MloIpb_Z.js} +1 -1
- package/e24/es/{styles-nSSEHaps.js → styles-OfdgLarb.js} +1 -1
- package/e24/es/{styles-tdhn3He4.js → styles-mu020Pov.js} +1 -1
- package/e24/es/{styles-CxQkaeVL.js → styles-xcdIFrAQ.js} +1 -1
- package/editory/cjs/index.d.ts +4 -1
- package/editory/cjs/index.js +1 -1
- package/editory/es/index.d.ts +4 -1
- package/editory/es/index.js +1 -1
- package/fotbollskanalen/cjs/index.d.ts +2 -0
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-Bmf_9elh.js +1 -0
- package/fotbollskanalen/es/{events-iE_ta5ra.js → events-Cpw3ehR3.js} +1 -1
- package/fotbollskanalen/es/{index-Dcu8YgOI.js → index-B062g8iH.js} +1 -1
- package/fotbollskanalen/es/{index-ahERvv0_.js → index-BiQvWbga.js} +1 -1
- package/fotbollskanalen/es/{index-BLCR0RCO.js → index-Bs07rQzu.js} +1 -1
- package/fotbollskanalen/es/{index-BlxTrAv0.js → index-CC5lc9r1.js} +1 -1
- package/fotbollskanalen/es/{index-ljaO7Sz6.js → index-CVZdf_Rx.js} +1 -1
- package/fotbollskanalen/es/{index-BV4LvYwd.js → index-ClH7lZYd.js} +1 -1
- package/fotbollskanalen/es/{index-Z-8x5BlG.js → index-CtOzQCgD.js} +1 -1
- package/fotbollskanalen/es/{index-COHWVoGT.js → index-Dz4VZObJ.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +2 -0
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-hJH6e6uE.js → styles-CYR96zEK.js} +1 -1
- package/fotbollskanalen/es/styles-CqUKBxOa.js +1 -0
- package/fotbollskanalen/es/{styles-BWZf0qlU.js → styles-PUd99r1p.js} +1 -1
- package/fotbollskanalen/es/{styles-2_Wg_822.js → styles-hbIy9al3.js} +1 -1
- package/fotbollskanalen/es/styles-kIeF5Tee.js +1 -0
- package/godt/cjs/index.d.ts +2 -0
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +1 -0
- package/kilkaya/es/index.d.ts +1 -0
- package/klart/cjs/index.d.ts +2 -0
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +2 -0
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-BX9WzHD2.js +1 -0
- package/koket/es/{events-DxV8ECjh.js → events-Dp2GC5Vw.js} +1 -1
- package/koket/es/{index-ZAf-EpqI.js → index-BcMo8ZRV.js} +1 -1
- package/{svdv2/es/index-ugHMFPPs.js → koket/es/index-BuYqePxS.js} +1 -1
- package/koket/es/{index-0InmJwma.js → index-CJCSxpIT.js} +1 -1
- package/koket/es/{index-qFk4Sz_e.js → index-CiNrNpCh.js} +1 -1
- package/koket/es/{index-B0W4xS8a.js → index-CjQupFNS.js} +1 -1
- package/koket/es/{index-B5gaBCJI.js → index-CyHpFA0R.js} +1 -1
- package/koket/es/{index-JLVKCZgL.js → index-DGiTI497.js} +1 -1
- package/koket/es/{index-B2Ki-Wuk.js → index-yZxvx-bT.js} +1 -1
- package/koket/es/index.d.ts +2 -0
- package/koket/es/index.js +1 -1
- package/koket/es/styles-Bk2LqxJH.js +1 -0
- package/{svdv2/es/styles-DaG-XjUb.js → koket/es/styles-CJJn5fT9.js} +1 -1
- package/{svdv2/es/styles-Bci2zQ3-.js → koket/es/styles-CaOTkmnD.js} +1 -1
- package/koket/es/styles-D4lGHCAj.js +1 -0
- package/koket/es/{styles-CZcjAa7I.js → styles-MHpJAgKy.js} +1 -1
- package/minmote/cjs/index.d.ts +2 -0
- package/minmote/cjs/index.js +1 -1
- package/mtv/es/_auto-entry_mtv-B3cjM82G.js +1 -0
- package/mtv/es/{events-BbgeuOvW.js → events-DKT9xuzN.js} +1 -1
- package/mtv/es/{index-D1Bc7pLb.js → index-3eJV2uf4.js} +1 -1
- package/mtv/es/{index-Bfjoec7X.js → index-CB2gEQ-J.js} +1 -1
- package/mtv/es/{index-BMOv7vq8.js → index-DRw9YeDg.js} +1 -1
- package/mtv/es/{index-C2Ug4z-6.js → index-DSI_fVUO.js} +1 -1
- package/mtv/es/{index-CSdaW1tz.js → index-Dbca8Wdz.js} +1 -1
- package/mtv/es/{index-CnjlNi2G.js → index-Dmzvy7Ik.js} +1 -1
- package/mtv/es/{index-Bmbw0Mdw.js → index-DvOGa6J_.js} +1 -1
- package/mtv/es/{index-BWLVs3DP.js → index-KJr93ura.js} +1 -1
- package/mtv/es/index.d.ts +2 -0
- package/mtv/es/index.js +1 -1
- package/mtv/es/styles-BmP7USe-.js +1 -0
- package/omni/es/_auto-entry_omni-h74CS6jz.js +1 -0
- package/{tvnu/es/events-BZf62V_Q.js → omni/es/events-DGa3i45v.js} +1 -1
- package/omni/es/{index-BPmV3ukJ.js → index-B5HK22Vl.js} +1 -1
- package/omni/es/{index--YEU9srd.js → index-BYeRVmag.js} +1 -1
- package/omni/es/{index-DEecaBeA.js → index-C6VmXAJr.js} +1 -1
- package/omni/es/{index-CYFN3LGC.js → index-CiPdtUk_.js} +1 -1
- package/{tvnu/es/index-bHqliccU.js → omni/es/index-CjsV26d4.js} +1 -1
- package/omni/es/{index-Df5MwZQ9.js → index-D-UZw0Ix.js} +1 -1
- package/omni/es/{index-Bg60Y4DK.js → index-DeIz92Od.js} +1 -1
- package/omni/es/{index-BfuGeAGM.js → index-azZyW1ts.js} +1 -1
- package/omni/es/index.d.ts +2 -0
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-BKxk3JDk.js → styles-5P3kLgDF.js} +1 -1
- package/omni/es/{styles-jSp_7zj-.js → styles-B2m8oYtD.js} +1 -1
- package/omni/es/styles-OyV9dOII.js +1 -0
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +2 -0
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.d.ts +2 -0
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-DtF0Jp_m.js +1 -0
- package/sa/es/{events-Cz3y619r.js → events-t6Dioh-2.js} +1 -1
- package/sa/es/{index-D0qP6RAx.js → index-9_ir-rcM.js} +1 -1
- package/sa/es/{index-D0V_DsyK.js → index-B2H4G3ec.js} +1 -1
- package/sa/es/{index-BtgtAVq2.js → index-BwYbEx4x.js} +1 -1
- package/sa/es/{index-AitKRGvz.js → index-DGgiXu9v.js} +1 -1
- package/sa/es/{index-Rb_h-DuR.js → index-DjrN0SZA.js} +1 -1
- package/sa/es/{index-CRwbNQ3b.js → index-JYy4qQG6.js} +1 -1
- package/sa/es/{index-pz6M6Pmq.js → index-YBmHpWiF.js} +1 -1
- package/{bt/es/index-WOrAp633.js → sa/es/index-tU1ZiQ84.js} +1 -1
- package/sa/es/index.d.ts +2 -0
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-B8h_RVHS.js → styles-B-0aJxO5.js} +1 -1
- package/sa/es/{styles-B-MHUdg1.js → styles-B_F8cP4o.js} +1 -1
- package/sa/es/{styles-B3YrYCtK.js → styles-BqdPsBYd.js} +1 -1
- package/sa/es/{styles-D4lj2opE.js → styles-C89JtUkk.js} +1 -1
- package/sa/es/{styles-DcRv4egL.js → styles-CDviFw25.js} +1 -1
- package/{vg/es/styles-XyCTMcby.js → sa/es/styles-CvGSGzSO.js} +1 -1
- package/sa/es/styles-D-UU6pn-.js +1 -0
- package/sa/es/{styles-CLej4Y13.js → styles-DHMlzVqk.js} +1 -1
- package/{vg/es/styles-CD6wnz_I.js → sa/es/styles-Dr725TOe.js} +1 -1
- package/sa/es/styles-h_zr_l4P.js +1 -0
- package/sav2/es/_auto-entry_sav2-B988cMVA.js +1 -0
- package/sav2/es/{events-C-sp161a.js → events-BH3lVEmT.js} +1 -1
- package/{omni/es/index-CDj2Yu0r.js → sav2/es/index-BBYMFdN4.js} +1 -1
- package/{tvnu/es/index-RTSJVboG.js → sav2/es/index-BjACVq8t.js} +1 -1
- package/sav2/es/{index-CD9wmOVo.js → index-C23z_Fdq.js} +1 -1
- package/sav2/es/{index-qSqDeIR6.js → index-ChVfVb8c.js} +1 -1
- package/{tvnu/es/index-DgVPlgaB.js → sav2/es/index-D4kR1aOA.js} +1 -1
- package/sav2/es/{index-CpEj8V6E.js → index-DG0pgqM3.js} +1 -1
- package/sav2/es/{index-CaqD4cbT.js → index-DcwVCopY.js} +1 -1
- package/sav2/es/{index-CWTv6AkX.js → index-oDkS5sGI.js} +1 -1
- package/sav2/es/index.d.ts +2 -0
- package/sav2/es/index.js +1 -1
- package/sav2/es/styles-8a9zXaFT.js +1 -0
- package/sav2/es/styles-BDOtpcw6.js +1 -0
- package/sav2/es/{styles-DP52YWuu.js → styles-BdYV3edn.js} +1 -1
- package/{vgv2/es/styles-HQUSsi3S.js → sav2/es/styles-BxI8QNaZ.js} +1 -1
- package/sav2/es/{styles-Ds283eUH.js → styles-DG_UYGmv.js} +1 -1
- package/{vgv2/es/styles-B0bV6vR2.js → sav2/es/styles-DVdw9LnQ.js} +1 -1
- package/{btv2/es/styles-CKJr-lVT.js → sav2/es/styles-JzezxrZr.js} +1 -1
- package/sav2/es/{styles-CN_iygGJ.js → styles-TjcJMIfU.js} +1 -1
- package/{btv2/es/styles-DLJVQud7.js → sav2/es/styles-ufHG0oA7.js} +1 -1
- package/svd/cjs/index.d.ts +2 -0
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-B3OGyfzI.js +1 -0
- package/{tv4/es/events-DZJEqEYo.js → svd/es/events-DRX-i4s2.js} +1 -1
- package/svd/es/{index-De60gWmg.js → index-8Ph4DfEH.js} +1 -1
- package/svd/es/{index-CHGVjXnj.js → index-AeCqP2yF.js} +1 -1
- package/svd/es/{index-Cnw5PflJ.js → index-BH-0-UAm.js} +1 -1
- package/svd/es/{index-D5Cc5pC9.js → index-BjBgwVgk.js} +1 -1
- package/svd/es/{index-BHDRFlNX.js → index-DykSatgR.js} +1 -1
- package/svd/es/{index-CpoBXJU2.js → index-EeYKrIpw.js} +1 -1
- package/svd/es/{index-keRPTHEJ.js → index-qRGuRdwE.js} +1 -1
- package/svd/es/{index-B2pFQWYH.js → index-wtkCMbUC.js} +1 -1
- package/svd/es/index.d.ts +2 -0
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-YQZsiA7w.js → styles-B5eopUSV.js} +1 -1
- package/svd/es/{styles-0pQAztut.js → styles-BChXpFwa.js} +1 -1
- package/svd/es/{styles-D5ua1JqQ.js → styles-BOkVHh6p.js} +1 -1
- package/svd/es/{styles-x6vY4er_.js → styles-D-LLlesE.js} +1 -1
- package/svd/es/styles-D3WtFJrl.js +1 -0
- package/svd/es/{styles-IkOrrSFf.js → styles-DnyHMYOV.js} +1 -1
- package/svd/es/{styles-bqyqHzrV.js → styles-b5Mbel64.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-f1IlGTNa.js +1 -0
- package/svdv2/es/{events-C443LLXR.js → events-CXtnujik.js} +1 -1
- package/svdv2/es/{index-BFM5Gu0-.js → index-B-AiFnZ_.js} +1 -1
- package/svdv2/es/{index-DbYxPAvn.js → index-BXDYT3_1.js} +1 -1
- package/svdv2/es/{index-DUaFm_HT.js → index-CmbZidp2.js} +1 -1
- package/svdv2/es/{index-4bK_U_RB.js → index-DJM2OdYx.js} +1 -1
- package/svdv2/es/{index-DLYK0QoW.js → index-DLpvDR-I.js} +1 -1
- package/{koket/es/index-CZGP5fWB.js → svdv2/es/index-Dw7hXBBy.js} +1 -1
- package/svdv2/es/{index-55C2wQXN.js → index-a1M3M8Wp.js} +1 -1
- package/svdv2/es/{index-FM_jg1Az.js → index-zYd4nbC3.js} +1 -1
- package/svdv2/es/index.d.ts +2 -0
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles-CxbAIYL-.js → svdv2/es/styles-20l0ZXp-.js} +1 -1
- package/svdv2/es/{styles-CrEG_G_M.js → styles-BH67mOg3.js} +1 -1
- package/svdv2/es/styles-BJvoH6Jk.js +1 -0
- package/svdv2/es/styles-C6NxggPn.js +1 -0
- package/svdv2/es/{styles-DgAsQPFN.js → styles-CHpGV0wA.js} +1 -1
- package/svdv2/es/{styles-Cmz2adpN.js → styles-Ci4Nbw0U.js} +1 -1
- package/{koket/es/styles-upRapWD2.js → svdv2/es/styles-DGs-Apb5.js} +1 -1
- package/svdv2/es/{styles-YOR80pd7.js → styles-DOO5Er36.js} +1 -1
- package/tek/cjs/index.d.ts +2 -0
- package/tek/cjs/index.js +1 -1
- package/tracker/cjs/index.d.ts +1 -0
- package/tracker/es/index.d.ts +1 -0
- package/tv4/cjs/index.d.ts +2 -0
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-CQCQFWRY.js +1 -0
- package/{svd/es/events-DLpjHm6K.js → tv4/es/events-CpiHfOZJ.js} +1 -1
- package/tv4/es/{index-CNLuw0Rm.js → index-BMT26b41.js} +1 -1
- package/tv4/es/{index-DFhgV9gu.js → index-CvsR27tZ.js} +1 -1
- package/tv4/es/{index-CPFfRpQa.js → index-DBPML9U9.js} +1 -1
- package/tv4/es/{index-BZA-lOUr.js → index-DY_KbzcE.js} +1 -1
- package/tv4/es/{index-DysWHEcd.js → index-DwQGPNxM.js} +1 -1
- package/tv4/es/{index-Q2ALUaQT.js → index-E2lf1BUb.js} +1 -1
- package/tv4/es/{index-DZpF5Tsb.js → index-KoUFIm4v.js} +1 -1
- package/tv4/es/{index-BJJHX2WO.js → index-Xw6gVmp3.js} +1 -1
- package/tv4/es/index.d.ts +2 -0
- package/tv4/es/index.js +1 -1
- package/tv4/es/styles-C04Zu8QC.js +1 -0
- package/tv4/es/styles-Ctd-ZhYW.js +1 -0
- package/{e24/es/styles-9j5QW9mg.js → tv4/es/styles-CyRqFFvK.js} +1 -1
- package/tv4/es/{styles-hodSozaH.js → styles-dezj9l9t.js} +1 -1
- package/tv4/es/{styles-1-RVgD3z.js → styles-lCSubF4z.js} +1 -1
- package/tvnu/cjs/index.d.ts +2 -0
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-Dlrnxn0a.js +1 -0
- package/{btv2/es/events-ylLNlZUT.js → tvnu/es/events-DTV23Jiy.js} +1 -1
- package/{btv2/es/index-QxieEVef.js → tvnu/es/index-9zzx0gCz.js} +1 -1
- package/{btv2/es/index-DAUyNa-I.js → tvnu/es/index-BYfYGSNg.js} +1 -1
- package/{sav2/es/index-ByHXpRaC.js → tvnu/es/index-C5hTShPW.js} +1 -1
- package/tvnu/es/{index-DdQufyMj.js → index-CFiCKgVo.js} +1 -1
- package/tvnu/es/{index-C1G3Nyqo.js → index-CkKHFPG2.js} +1 -1
- package/tvnu/es/{index-DgUdkX79.js → index-DxcZwOdu.js} +1 -1
- package/tvnu/es/{index-C_7uSzeI.js → index-OazPvFTJ.js} +1 -1
- package/{vgv2/es/index-DhRnUmhu.js → tvnu/es/index-vqrL4y93.js} +1 -1
- package/tvnu/es/index.d.ts +2 -0
- package/tvnu/es/index.js +1 -1
- package/tvnu/es/{styles-m4hp-sdp.js → styles-BDIRHptp.js} +1 -1
- package/tvnu/es/styles-C8-5xecc.js +1 -0
- package/{btv2/es/styles-BA3ADevc.js → tvnu/es/styles-CdRqPKMc.js} +1 -1
- package/tvnu/es/styles-Cmst0_AX.js +1 -0
- package/types/index.d.ts +3 -0
- package/vg/cjs/index.d.ts +2 -0
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-DxRZkQt7.js +1 -0
- package/vg/es/{events-CDJLCUoY.js → events-BpqeJPlQ.js} +1 -1
- package/vg/es/{index-CFaWzyJ3.js → index-446mhKqk.js} +1 -1
- package/vg/es/{index-CDt1vTzM.js → index-B1W-5bVk.js} +1 -1
- package/vg/es/{index-B98-ZBRD.js → index-BHzyngn6.js} +1 -1
- package/vg/es/{index-V14HRk-i.js → index-BRtI2l1B.js} +1 -1
- package/vg/es/{index-BIOVzdNr.js → index-C_4WJjcD.js} +1 -1
- package/vg/es/{index-b5K8EpJE.js → index-Cq6BvtL_.js} +1 -1
- package/vg/es/{index-DWodW_or.js → index-DmMlC8yI.js} +1 -1
- package/vg/es/{index-DOr3chmu.js → index-dtOp4Ft_.js} +1 -1
- package/vg/es/index.d.ts +2 -0
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-CyKpnIYw.js → styles-3vINy5hq.js} +1 -1
- package/vg/es/{styles-ZIQ90U5C.js → styles-B2_Ei2-8.js} +1 -1
- package/vg/es/styles-BMzmUOJN.js +1 -0
- package/vg/es/{styles-BvSYvxCX.js → styles-BRmjwW06.js} +1 -1
- package/{bt/es/styles-Bq0Lm1Be.js → vg/es/styles-BftlUeQl.js} +1 -1
- package/vg/es/{styles-DLY4Luu1.js → styles-BynvHO9c.js} +1 -1
- package/vg/es/styles-C0TalB3F.js +1 -0
- package/vg/es/{styles-DYSiBh3y.js → styles-C3VlGdBE.js} +1 -1
- package/vg/es/{styles-CovV6F3X.js → styles-Ca-_g_6k.js} +1 -1
- package/vg/es/{styles-k4ROb5VY.js → styles-Ctk7QEVg.js} +1 -1
- package/vg/es/{styles-BqzzSqGH.js → styles-CuM4XL4r.js} +1 -1
- package/vg/es/{styles-DCIcj14K.js → styles-D4eGgyZx.js} +1 -1
- package/vg/es/{styles-DHzExoc8.js → styles-D5X2JwN6.js} +1 -1
- package/vg/es/{styles-RP7Tt0C9.js → styles-DtXm-Ref.js} +1 -1
- package/vg/es/{styles-ytKIPmyw.js → styles-FCeEywSP.js} +1 -1
- package/{sa/es/styles-CU1qwYrK.js → vg/es/styles-oBIOt5yi.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-DXKn5yIm.js +1 -0
- package/vgv2/es/{events-CTyWfMSW.js → events-BFEoOcat.js} +1 -1
- package/vgv2/es/{index-6XNPKvow.js → index-9Lax4_hx.js} +1 -1
- package/{tvnu/es/index-B0k3dpfm.js → vgv2/es/index-ApiYb4Jt.js} +1 -1
- package/vgv2/es/{index-CMN3SAiS.js → index-BgS-z4vY.js} +1 -1
- package/vgv2/es/{index-BdA2yoZ4.js → index-C-vtYSIl.js} +1 -1
- package/vgv2/es/{index-CfZEVETQ.js → index-CHpRUEKy.js} +1 -1
- package/vgv2/es/{index-DK_TJSgW.js → index-CafbPF86.js} +1 -1
- package/vgv2/es/{index-BeDSXJeV.js → index-ClLzNthF.js} +1 -1
- package/vgv2/es/{index-HF9byTO-.js → index-xGSpaSdE.js} +1 -1
- package/vgv2/es/index.d.ts +2 -0
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-CkIBoY8c.js → styles-B3tp8X5j.js} +1 -1
- package/{tvnu/es/styles-CkP68eHH.js → vgv2/es/styles-BRaFX7WV.js} +1 -1
- package/vgv2/es/{styles-Bwmu859K.js → styles-BsM7FFsM.js} +1 -1
- package/vgv2/es/{styles-CeI6zd5f.js → styles-C-KCy1Kj.js} +1 -1
- package/vgv2/es/{styles-DOTGYvHi.js → styles-CVtSN6IJ.js} +1 -1
- package/vgv2/es/{styles-CyxMC1US.js → styles-D0HFCOfi.js} +1 -1
- package/vgv2/es/{styles-Dckq0fV4.js → styles-DH1S9E-P.js} +1 -1
- package/vgv2/es/{styles-Dv1XNiTG.js → styles-DHYmekJh.js} +1 -1
- package/vgv2/es/{styles-LBd9mR4l.js → styles-DORfMAqC.js} +1 -1
- package/vgv2/es/{styles-BSFEPLui.js → styles-DRZLQWC9.js} +1 -1
- package/{btv2/es/styles-D_Y6uiSc.js → vgv2/es/styles-DdWYCYVG.js} +1 -1
- package/vgv2/es/{styles-DnwjCVn-.js → styles-XevVA7vP.js} +1 -1
- package/vgv2/es/styles-Xi9QM1Ib.js +1 -0
- package/vgv2/es/styles-eIQqqEL1.js +1 -0
- package/vgv2/es/{styles-BtLO7og0.js → styles-jcmV6KpN.js} +1 -1
- package/vgv2/es/{styles-Cj4SftEO.js → styles-sUixzFmN.js} +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-BlE_y_Ji.js +0 -1
- package/aftenposten/es/styles-fFriAMtM.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BRo6-S5z.js +0 -1
- package/aftenpostenv2/es/styles-DAfE5V3u.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CzSNYTgl.js +0 -1
- package/aftonbladet/es/styles-Dw_fRjMe.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-9XamYl2J.js +0 -1
- package/aftonbladetv2/es/styles-BAvZX5eb.js +0 -1
- package/bt/es/_auto-entry_bt-ehwv4YhX.js +0 -1
- package/bt/es/styles-DGc5_qiR.js +0 -1
- package/btv2/es/_auto-entry_btv2-CZodFAHM.js +0 -1
- package/btv2/es/styles-Oc4pEsL9.js +0 -1
- package/e24/es/_auto-entry_e24-DUOEi-7a.js +0 -1
- package/e24/es/styles-BAlmSlo-.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-B5j5naRj.js +0 -1
- package/fotbollskanalen/es/styles-CUmxXDzi.js +0 -1
- package/koket/es/_auto-entry_koket-COl6qOAL.js +0 -1
- package/koket/es/styles-CU3u6TIz.js +0 -1
- package/mtv/es/_auto-entry_mtv-NU-FXyt_.js +0 -1
- package/omni/es/_auto-entry_omni-D0biFVKt.js +0 -1
- package/sa/es/_auto-entry_sa-D7uxt-Z4.js +0 -1
- package/sa/es/styles-qOy4_Fn8.js +0 -1
- package/sav2/es/_auto-entry_sav2-DdQQgA8a.js +0 -1
- package/sav2/es/styles-1rUHN4am.js +0 -1
- package/svd/es/_auto-entry_svd-C0xbDY3-.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-C3ebCCG0.js +0 -1
- package/svdv2/es/styles-K9B6h3Ll.js +0 -1
- package/tv4/es/_auto-entry_tv4-C-dtxWxn.js +0 -1
- package/tv4/es/styles-SjGCKDhY.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-A8X9nn0O.js +0 -1
- package/tvnu/es/styles-DiHmTFYb.js +0 -1
- package/vg/es/_auto-entry_vg-DNa6Zs9_.js +0 -1
- package/vg/es/styles-CaGAv7mD.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-CpyhfHz5.js +0 -1
- package/vgv2/es/styles-C0x5dp7q.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const o={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},i={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"},r={publisherClassName:i.KOKET,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function d(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((o=o.apply(e,t||[])).next())})}function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var p=s(function(){if(c)return l;c=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,o){return e.concat(t).map(function(e){return n(e,o)})}function i(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 a(e,t,o){var a={};return o.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],o)}),i(t).forEach(function(i){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(r(e,i)&&o.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(i,o)(e[i],t[i],o):a[i]=n(t[i],o))}),a}function d(t,i,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=n;var d=Array.isArray(i);return d===Array.isArray(t)?d?r.arrayMerge(t,i,r):a(t,i,r):n(i,r)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},l=d}());const u={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},v=(e,t)=>p(e,t,u),g=(e,t)=>Object.assign(Object.assign({},e),t),h=(e,t)=>{var n;return v(null!==(n=e)&&void 0!==n?n:{},t)},m={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},y=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},f=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},w=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||f("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||f("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||f("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||f("pageContext.deviceType is required."),n||f("pageOptions is required."),o||f("placements is required."),(null==i?void 0:i.defaultThreshold)||f("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,i;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===(o=e.widescreenSwitching)||void 0===o?void 0:o.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&f(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},b={placements:(e,t)=>t,takeover:h,refreshConfig:g,editory:h,appearanceConfig:h,pageContext:g,pageOptions:g,pageSectionsSelectors:g,tcf:g},x=(e,t)=>{const n=e;for(const e of Object.keys(b)){const o=t[e];void 0!==o&&(n[e]=b[e](n[e],o))}},C=6;class A{set(e){w(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");x(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=v(A.DEFAULT_SITE_HANDLERS,e)}}A.DEFAULT_SITE_HANDLERS={siteEvents:m,initNativeAd:()=>{}};const I=new A,E=I.modifyConfigProperties.bind(I);class S{initialize(){this.DATA=Object.assign({},S.INITIAL_DATA)}getData(e){if(!this.DATA)throw new Error("Storage was accessed with invalid data.");return this.DATA[e]}setData(e,t){if(!this.DATA)throw new Error("Storage was accessed before it had been initialized.");this.DATA[e]=Object.assign(Object.assign({},this.DATA[e]),t)}}S.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const T=new S,k=864e5,O=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return y("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=k)=>{const i={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(i))},getByTimestamp:(t,n=k)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return y("Error with parsing localStorage data"),null}}}})(),P="glimrTags",j=["glwe_","glwet_"],L={geofenceTags:[],geoTags:[],weatherTags:[]},N=e=>new URLSearchParams(window.location.search).get(e),$="takeover",q="native_override_desc2",R=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 y("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const i=e=>{o||(y("Resolving advertising permission value obtained"),o=!0,t(e))},r=setTimeout(()=>{y("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{y("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);y("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),F={NO:"no",SE:"se"},_="cmp:loaded";let M="undefined"!=typeof window?window._tcf_:void 0,D=!1;const B=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,r=N("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(y("TCF bypass param detected, returning consent: true"),!0):(y("TCF is not enabled, returning consent: true"),!0))(o,r))return!0;if(D)return null;if(!M)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=M.getConsentedToAllSync();return y(`TCF consented to all is: ${t}`),M.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(y("Getting TCF consent manager..."),window._tcf_)return y("TCF consent manager is already available"),M=window._tcf_,void e(M);y("TCF consent manager is not available");const n=()=>{y("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(M=window._tcf_,e(M)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(_,n),D=!0,t(new Error("Timeout waiting for CMP to load"))},i);y("Listening for CMP loaded event..."),document.addEventListener(_,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>d(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return y(`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===F.SE,o=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===F.NO;if(t||o)return y("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield R(e);if(!(null==e?void 0:e.enabled))return!0;const r=a();return null!==r?r:yield new Promise((e,t)=>{try{if(!M)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{y("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);M.onTcfReady(()=>{y("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),M.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},z=(e,t,n,...o)=>d(void 0,[e,t,n,...o],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return y(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return y(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=B(e,0,n);return(yield i())?(y(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(y(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),U=(...e)=>d(void 0,[...e],void 0,function*(e=I.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield z(t,n,o,"glimr")}const{getConsentAsync:i}=B(t,0,o);return yield i()}),H=()=>d(void 0,void 0,void 0,function*(){const{glimr:e}=I.get();if(!(yield U())||!(null==e?void 0:e.enabled))return void y("No consent for glimr data fetching.");const t=yield(n=500,d(void 0,void 0,void 0,function*(){return yield Promise.race([d(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)=>{O.setWithTimestamp(P,{tags:e,tagMappings:t}),n(!0)})})}catch(e){y(`Error during getting glimr data: ${e}`)}else y("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),V={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},W=e=>j.some(t=>e.startsWith(t)),K=e=>e.startsWith("glgc_"),G=e=>e.startsWith("glci_"),J=e=>!W(e)&&!K(e),X=e=>e===F.NO?"no-sno":"se-generic",Y=(e,t)=>d(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:o,pageContext:{countryCode:i}={}}=e,r=yield U(e);if(!(null==o?void 0:o.enabled)||!r)return y("No consent for getting glimr tags."),{};const a=X(i),d=Q(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),Q=(e,t)=>{const n=Z();if(!n)return L;const o=((e=[])=>e.filter(W))(n),i=((e=[])=>e.filter(K))(n),r=((e=[],t,n)=>{var o;const i=e.filter(J);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=V[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:r,geofenceTags:i,weatherTags:o}},Z=()=>{const e=O.getByTimestamp(P);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},ee=()=>{var e;return((e=[])=>e.filter(G))(null!==(e=Z())&&void 0!==e?e:[])},te=()=>(window.apntag||(window.apntag={anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}}),window.apntag),ne=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),oe=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:o=!1}={},pageContext:{countryCode:i}}=I.get(),r=[`${X(i)}-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",...o?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)}},ie="opaque",re=e=>d(void 0,void 0,void 0,function*(){if(e.type!==ie){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ae={get:(e,...t)=>d(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,o=a(t,["timeout"]);if(n)return((e,t,n)=>d(void 0,void 0,void 0,function*(){const o=new AbortController,i=setTimeout(()=>o.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:o.signal}));return re(n)}finally{clearTimeout(i)}}))(e,o,n);const i=yield fetch(e,o);return re(i)}),post:(e,t,n)=>d(void 0,void 0,void 0,function*(){const o=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:o});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},de="advertory:ppids-cache",se={[F.SE]:`SCH${F.SE.toUpperCase()}-EnvHash`,[F.NO]:`SCH${F.NO.toUpperCase()}-EnvHash`},le={[F.SE]:`SCH${F.SE.toUpperCase()}-UserHash`,[F.NO]:`SCH${F.NO.toUpperCase()}-UserHash`},ce={[F.SE]:`sch${F.SE}-envhash-v3`,[F.NO]:`sch${F.NO}-envhash-v3`},pe={[F.SE]:`sch${F.SE}-userhash-v3`,[F.NO]:`sch${F.NO}-userhash-v3`},ue={[F.SE]:`'sch${F.SE}-iosid-v3'`,[F.NO]:`'sch${F.NO}-iosid-v3'`},ve={[F.SE]:`sch${F.SE}-androidid-v3`,[F.NO]:`sch${F.NO}-androidid-v3`},ge={[F.SE]:"sdrn:schibsted.com:user",[F.NO]:"sdrn:spid.no:user"};class he{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:o})=>{t.append(e,`${o}-${n}`)}),t}}const me=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return d(this,arguments,void 0,function*(e,t=1e4){var n,o;const i=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=i.xandr)||void 0===n?void 0:n.ppId1,null===(o=i.xandr)||void 0===o?void 0:o.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||y("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},ye=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return d(this,void 0,void 0,function*(){var n,o,i,r,a,d,s,l,c,p,u;const v=O.get(de),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===(o=g.idfv)||void 0===o?void 0:o.plain,null===(i=g.anId)||void 0===i?void 0:i.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===(p=null==g?void 0:g.idfv)||void 0===p?void 0:p.plain,null===(u=null==g?void 0:g.anId)||void 0===u?void 0:u.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||y("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,o){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=o?o:null}shouldHash(e,t){var n,o;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(o=t[i])||void 0===o?void 0:o.plain))return!0}return!1}cachePPIDs(e,t,n,o){const i=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}}:{}),o?{anId:{plain:o}}:{});O.set(de,i)}hashPPIDs(e,t){return d(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ae.post(t,n,e)}catch(e){return y("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return d(this,arguments,void 0,function*({clientId:e,instance:t},n){const o=yield((e,t)=>d(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ge[t]}:${n}`:null}))(t,n),i=yield(r=t,d(void 0,void 0,void 0,function*(){const e=yield r.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var r;const a=window.advertory_idfv,s=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:o},environmentId:{plain:i},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),s?{anId:{plain:s}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:o,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:o.plain,environmentId:i.plain}}},fe=e=>d(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:o,isMobileApp:i}}=e;if(!(yield z(n,i,o,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([me.processPPIDs(t,null==n?void 0:n.timeout),ye.processPPIDs(t,o)])).forEach((e,t)=>{if("rejected"===e.status){y(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),we=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=ye.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new he).add(n,se[e]).add(t,le[e]).add(i,ce[e]).add(o,pe[e]).add(r,ue[e]).add(a,ve[e]).buildEids()}]}},be=()=>{const{ppid1:e,ppid2:t}=me.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},xe=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=ye.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new he).add(n,se[e]).add(t,le[e]).add(i,ce[e]).add(o,pe[e]).add(r,ue[e]).add(a,ve[e]).buildRyEids()}}]}}},Ce=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:o,ppid2:i}=ye.getPPIDs(),r=(new he).add(n,se[e]).add(t,le[e]).add(i,ce[e]).add(o,pe[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`},Ae=e=>{const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:o,ppid2:i}=ye.getPPIDs();return(new he).add(n,se[e]).add(t,le[e]).add(i,ce[e]).add(o,pe[e]).buildRyEids()},Ie=e=>d(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=me.getPPIDs(),{ppid1:o,ppid2:i}=ye.getPPIDs(),r=(new he).add(n,se[e]).add(t,le[e]).add(i,ce[e]).add(o,pe[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Ee=()=>d(void 0,void 0,void 0,function*(){const{ppid1:e}=ye.getPPIDs();return e}),Se=(e,...t)=>d(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,o)=>{const i=document.createElement("script");i.async=!0,i.src=e;const r=()=>{d(),n()},a=()=>{d(),o(new Error(`Failed to load ${e}`))},d=()=>{i.removeEventListener("load",r),i.removeEventListener("error",a),clearTimeout(s)};i.addEventListener("load",r),i.addEventListener("error",a);const s=setTimeout(()=>{d(),o(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),Te={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},ke={ANY_FULLSCREEN:[{width:6,height:6},{width:1920,height:1080},{width:3,height:3}],ABSOLUTE_FULLSCREEN:[{width:6,height:6}],NINESIXTEEN:[{width:1080,height:1920}],FIXED_FULLSCREEN:[{width:1920,height:1080},{width:3,height:3}],FULLWIDTH:[{width:5},{width:400,height:400}],FULLSQUARE:[{width:1080,height:1080}],NATIVE_AD:[{width:1,height:1}],TAKEOVER:[{width:4,height:4}],VELVET_TAKEOVER:[{width:7,height:7}],WALLPAPER:[{width:2,height:2}],COLLAPSE:[{width:2,height:1}]},Oe={wallpaper:1600,"l-format":1600},Pe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&He(e,Te.ANY_FULLSCREEN)},je=e=>{const{native:t}=e;return!!t},Le=e=>He(e,Te.FULLWIDTH),Ne=e=>{const{targetId:t}=e;return t.includes("takeover")||He(e,Te.TAKEOVER)},$e=e=>He(e,Te.TAKEOVER),qe=e=>He(e,Te.WALLPAPER),Re=e=>He(e,Te.COLLAPSE),Fe=e=>e.targetId.includes("sponsorstripe"),_e=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Me=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),De=e=>e.targetId.startsWith("midboard"),Be=e=>e.targetId.includes("widescreen"),ze=e=>e.width>=1260&&e.width<=1280,Ue=e=>e.width>=1600&&e.width<=1620,He=(e,t)=>{const n=ke[t];if(!n)return!1;return!!n.find(t=>{var n,o;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(o=e.banner)||void 0===o?void 0:o.height)||e.height,a=t.width===i,d=!t.height||t.height===r;return a&&d})},Ve="advertory-fullscreen-scroll",We="advertory-fullscreen-scroll-wrapper",Ke="fullscreen-scroll-in-screen",Ge="in-screen",Je=e=>e.includes("snoap.no"),Xe=e=>{var t,n,o,i,r;return!!(null===(r=null===(i=null===(o=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===o?void 0:o.adResponse)||void 0===i?void 0:i.ads[1])||void 0===r?void 0:r.rtb)},Ye=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const o=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=o.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,i).toString()},Qe=Ye([],()=>{const e=({width:e,height:t})=>{var n;const o=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!o)return;const{clientWidth:i,clientHeight:r}=o,a=e/i,d=t/r;o.style.transform=`scale(${a},${d})`,o.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),Ze=e=>{const t=Ye([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const o=n.contentDocument.createElement("style");o.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(o),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},et=e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");if(!n)return e;n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed";return t.innerHTML},tt=[],nt={},ot=(e,t)=>{var n;const o=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>it(e,o),{}),r=at(e);i.observe(e),o&&(nt[r]=lt(e,null==t?void 0:t.options))},it=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const o=at(e);n?(rt(o,n),dt(e,o,t)):(rt(o,n),st(e,o,t))})},rt=(e,t)=>{var n,o;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const r=t?"showFullscreen":"hideFullscreen";null===(o=i.contentWindow)||void 0===o||o.postMessage(`advertory:${r}-${e}`,"*")},at=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},dt=(e,t,n)=>{e.classList.add(Ge),document.body.classList.add(Ke),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),tt.includes(t)||tt.push(t),n&&window.addEventListener("scroll",nt[t],{passive:!0})},st=(e,t,n)=>{tt.includes(t)&&(n&&window.removeEventListener("scroll",nt[t]),document.body.classList.remove(Ke),e.classList.remove(Ge),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},lt=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:o=[".skyscraper_r"],headerZIndex:i=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)}),o.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&ct(e,r,i,0),a.length&&ct(e,a,i,40)}},ct=(e,t,n,o)=>{const i=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-o:(r+t-(a+i))/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 pt(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}pt('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 ut="left",vt={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 gt=null;const ht=(e,t)=>{let n=e;return n=(e=>{const t=document.createElement("script");return t.textContent="\n window.addEventListener('message', function(event) {\n if (event.data === 'advertory:showFullscreen-'+document.body.id) {\n document.body.style.display = \"block\";\n } else if (event.data === 'advertory:hideFullscreen-'+document.body.id) {\n document.body.style.display = \"none\";\n }\n });\n ",e+t.outerHTML})(e),n=(e=>{const t=document.createElement("script");return t.textContent=`(${Qe})()`,e+t.outerHTML})(n),n=et(n),n=(e=>{if(Je(e))return e;const t=document.createElement("style");return t.textContent="\n .GoogleActiveViewClass, .GoogleActiveViewElement {\n transform: translate(calc(-50% + 50vw), 0);\n width: 100vw !important;\n height: 100vh !important;\n }\n .GoogleActiveViewClass img, .GoogleActiveViewElement img {\n width: 100vw;\n height: 100vh;\n object-fit: cover;\n }\n .GoogleActiveViewClass iframe {\n width: 100vw !important;\n height: 100vh !important;\n }\n ",e+t.outerHTML})(n),(e=>e.includes("adform"))(n)&&(n=(e=>{const t=document.createElement("script");t.textContent='\n var frame = window.frameElement;\n if (frame) {\n frame.style.removeProperty("width");\n frame.style.removeProperty("height");\n frame.contentWindow.document.body.onload = onLoad;\n } else {\n document.body.onload = onLoad;\n }\n \n function onLoad() {\n var iframe = document.querySelector("adfm-ad iframe");\n if (iframe) {\n var image = iframe.contentWindow.document.getElementById("image");\n if (!image) return;\n image.style.backgroundSize = "cover";\n } else {\n var iframe = document.querySelector(".adform-adbox iframe");\n if (iframe) {\n var style = document.createElement("style");\n style.textContent = "#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}";\n iframe.contentDocument.body.append(style);\n iframe.style = "width: 100vw; height: 100vh;";\n } else {\n var observer = new MutationObserver(function(mutations, obs) {\n for (var mutation of mutations) {\n var iframe = mutation.addedNodes[0];\n if (iframe && iframe.nodeName === "IFRAME") {\n iframe.style = "width: 100vw; height: 100vh;";\n iframe.dataset.contents += "<style>#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}</style>";\n obs.disconnect();\n }\n }\n });\n observer.observe(document.body, { childList: true, subtree: true });\n }\n }\n }\n ';const n=document.createElement("style");return n.textContent="\n html, body, adfm-ad, #sf_align, .adform-adbox, .adform-adbox img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover;\n max-width: 100vw;\n }\n ",e+n.outerHTML+t.outerHTML})(n)),(e=>e.includes("529299503"))(n)&&(n=Ze(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>Je(e)?e:e.replace("<iframe ","<iframe onload=\"\n var f = document.querySelector('iframe');\n if (!f) return;\n var s = f.style;\n s.transform = 'scale(' + (window.innerHeight / Number(f.height)).toFixed(2) + ')';\n s.right = parseInt((Number(f.width) - window.innerWidth) / 2) + 'px';\n s.bottom = parseInt((Number(f.height) - window.innerHeight) / 2) + 'px';\n s.position = 'relative';\n \" "))(n)),Je(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</iframe>","</iframe><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),(e=>e.includes("kreateam.io"))(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</div>","</div><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),Xe(t)&&(n=(e=>{const t=document.createElement("script");t.textContent='var frame = window.frameElement;\n if (frame) {\n frame.style.width = "100vw";\n frame.style.height = "100vh";\n }';const n=document.createElement("div");return n.innerHTML=e,n.appendChild(t),n.innerHTML})(n)),n},mt=()=>{gt=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,o=e?e.offsetLeft:0,i=document.documentElement;i.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),i.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),i.style.setProperty("--advertory-fullscreen-scroll-left",`${o}px`)},yt=()=>{gt||(gt=window.requestAnimationFrame(mt))},ft=(e,t)=>{var n,o,i,r,a;const{pageContext:{countryCode:d,deviceType:s}}=I.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:o=1302,backgroundColor:i="#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=o/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 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!==(o=null==c?void 0:c.overlayStyles)&&void 0!==o?o:{},s);const p=document.getElementById(l),u=null==p?void 0:p.parentElement;if(!p||!u)return;ot(u,t),p.className=Ve,ot(u,t),p.className="advertory-fullscreen-scroll";const v=He(e,Te.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";p.style.position=v,u.className=We,u.dataset.showTagSubscribeId=l,p.setAttribute("data-ad-label",null!==(i=null==c?void 0:c.annonsLabel)&&void 0!==i?i:vt[d].adText),(null==c?void 0:c.annonsLabel)&&(p.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===ut&&(p.dataset.moveCogwheelToTheLeft="true"),yt(),window.addEventListener("resize",yt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",yt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",yt)},wt=e=>{if(!(null==e?void 0:e.classList.contains(Ve)))return;e.classList.remove(Ve),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(We))&&(t.classList.remove(We),t.classList.remove(Ge))};var bt=Object.freeze({__proto__:null,createFullscreenScrollAd:ft,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=Xe(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=Xe(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,ht(t,e))},undoFullscreenScrollContainer:wt});const xt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},Ct=(e,t,n)=>{var o,i,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(i=null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||void 0===i?void 0:i.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}]}})),xt(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},At="ad-loaded",It="disable-cogwheel",Et=e=>window.location.href.includes(e),St=()=>null!==N("disable_prebid"),Tt="0123456789abcdefghijklmnopqrstuvwxyz",kt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Tt[Math.floor(36*Math.random())]}return t},Ot=(e,t)=>{let n=null;return(...o)=>{null===n&&(e(...o),n=setTimeout(()=>{n=null},t))}},Pt=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),jt=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})}),Lt=(e,t,n)=>d(void 0,void 0,void 0,function*(){yield Pt,yield jt;new IntersectionObserver((t,o)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),o.unobserve(e),o.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),Nt=()=>d(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:o,deviceType:i},fullscreenScroll:r,appearanceConfig:a,placements:d}=I.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=I.getHandlers(),{getConsentAsync:l}=B(t,0,n),c=yield l(),p=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:o=>{const i=te(),{prebid:{relevantCallbackTimeout:r}={}}=I.get(),a="relevantCb"===o&&r?r:n[o].timeout,d=setTimeout(()=>{!n[o].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${o}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),u=te(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=te();return{user:e,keywords:t}})();p.failsafeOnTimeout("relevantCb");const{user:{externalUid:g=""}={},keywords:h}=v;(()=>{const e=ne();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{y("prebid relevantYieldQueue callback fired - RY took over");if(p.getCancel()||!u.loadTags)return y("core loadTags() call was cancelled",{cancel:p.getCancel(),apnTagLoadTags:!u.loadTags,condition:"or"}),void p.cleanup();const t=ne();p.events.relevantCb.done=!0,p.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};y("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},xe(n)),oe(h,g))),y("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},xe(n)),oe(h,g))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{y("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:p.getCancel()}),p.getCancel()||(p.events.auctionCb.done=!0,u.loadTags(e)),p.cleanup()}},customNativeRender:e=>{$t(e,s)},directRenderFn:e=>{var t,n,s;const{settings:l,renderFn:c}=e,{bid:p,adDiv:u}=l||{};if(!u)return;const v=u.id,g=document.getElementById(v);if(!g)return;const h=null===(t=null==d?void 0:d[i])||void 0===t?void 0:t.find(e=>e.targetId===v),m=null!==(s=null!==(n=null==h?void 0:h.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==s?s:0,f=Object.assign(Object.assign({},p),{targetId:v,banner:!0});y("prebid directRenderFn ad info",{targetId:v,width:null==p?void 0:p.width,height:null==p?void 0:p.height,adId:null==p?void 0:p.adId,creativeId:null==p?void 0:p.creativeId}),Lt(g,m,()=>{var e;const t=c(l),n=Pe(f);if(y("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==p?void 0:p.width,height:null==p?void 0:p.height}),n)y("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),ft(f,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 o=new MutationObserver(()=>{n()&&o.disconnect()});o.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),o&&g.style.setProperty("--advertory-political-box-offset","30px");else{y("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),wt(g),null===(e=null==g?void 0:g.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(g.style.width=`${n}px`)}g.classList.add(At),(null==p?void 0:p.creativeId)&&Ct(v,g,Number(null==p?void 0:p.creativeId))})}}),y("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{p.getCancel()||(p.events.auctionCb.done=!0,u.loadTags(e))}},customNativeRender:e=>{$t(e,s)},directRenderFn:()=>{}})})}),$t=(e,t)=>{var n;const{divId:o,native:i,bid:r}=e,a=document.querySelectorAll(`[id^=${o}]`)[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:i,targetId:d},I.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")};let qt=e=>{window.apntag.anq.push(e)};const Rt=e=>{qt(e)},Ft=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},_t=e=>d(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e,{getConsentAsync:i}=B(t,0,o);if(!(yield i()))return;const r=Ft("_pulse2data");return r?r.split(",")[9]:void 0}),Mt={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Dt="takeover-displayed",Bt="takeover-visit-count",zt=14400,Ut=()=>{const e=Ft(Bt);return e?parseInt(e):0},Ht=()=>{const e=Ut(),{takeover:{options:{cookieCapTime:t=zt}={}}={}}=I.get(),n=document.location.hostname;window.document.cookie=`${Bt}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Vt=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=I.get();return"0"!==N($)&&("1"===N($)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=I.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Dt;return"true"===Ft(n)})())&&(!t||Wt()))},Wt=()=>{const e=Ut();return 0===e?(Ht(),!1):1===e},Kt=(e,t)=>[[1,1],[1920,1080]].some(([n,o])=>n===e&&o===t),Gt=()=>{const{takeover:e}=I.get();return Boolean(null==e?void 0:e.topscroller)},Jt=e=>{const{width:t,height:n}=e;return Kt(t,n)?Mt.SPLASH:He(e,Te.VELVET_TAKEOVER)?Mt.VELVET:Gt()?Mt.TOPSCROLLER:Mt.WELCOME_PAGE},Xt=()=>d(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Dt,cookieCapTime:n=zt}={}}={},pageContext:{isMobileApp:o,countryCode:i},tcf:r}=I.get(),a=yield z(r,o,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Yt=e=>{var t,n;const o=!!(null===(n=null===(t=I.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ne(e)&&o},Qt=(e,t)=>{var n;if(t===Mt.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===Mt.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Zt=(e,t)=>{t!==Mt.SPLASH?(e=>{var t,n;const o=null===(t=I.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=I.get().takeover)||void 0===n?void 0:n.topscroller;if(!o||i)return;const r=document.querySelector(o),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=$e(e)?"60svh":`calc(100svh - ${l}px)`,p=$e(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.style.setProperty("bottom",p,"important")})(e):(e=>{var t;if(!(null===(t=I.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),o=document.querySelector(`#${e.targetId}`);if(!n||!o)return;const i=`calc(100svh - ${n.offsetHeight}px)`;o.style.setProperty("height",i,"important")})(e)},en=Ye([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});var tn=Object.freeze({__proto__:null,addTakeoverCookie:Xt,adjustTakeoverHeight:Zt,canDisplayTakeover:Vt,getProperWelcomePageConfig:Qt,getTakeoverVariant:Jt,handleTakeoverCookieOnAdNotShown:e=>d(void 0,void 0,void 0,function*(){Yt(e)&&(yield Xt())}),incrementArticleVisitCount:Ht,isSplashVariant:Kt,isTopscroller:Gt,scaleAd:en,shouldAddTakeoverCookieForNotShownAd:Yt});const nn=e=>`externalImpId:'${e}'`,on=(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,rn=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:o}=I.get(),{targetId:i,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:p,dynamicSizeWidthCheck:u=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Vt())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],o=Array.isArray(n)?n.filter(e=>e!==Mt.TOPSCROLLER):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":o}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:i})})(e),g=Object.assign({invCode:s,sizes:r,targetId:i,keywords:on(a,l),allowedFormats:d,dynamicSizeWidthCheck:u,globalPlacementId:v},p&&{safeframeConfig:p}),h=(e=>{var t,n;const o=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 o?(y("Pulse state pageViewId is:",o),o):(y("Pulse state does not contain field pageViewId or it is empty"),"")})(o);n&&h&&(y("External Impression ID assigned to defineTag:",nn(h)),g.externalImpId=nn(h));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,o])=>((null==e?void 0:e.includes(n))&&(t[n]=o),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(g.native=m),g},an=e=>!e.includes("takeover")||Vt(),dn={nativeAd:e=>je(e)&&!Fe(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:Le,fullscreenScroll:Pe,topscroller:e=>Ne(e)&&Gt(),splash:e=>Ne(e)&&Kt(e.width,e.height),welcomePage:Ne,wallpaper:qe,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:ze,hFormat:Ue,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Ue(e)&&!ze(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ne(e),widescreen:Be,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Fe,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Me(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!De(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:Me,midboard:De},sn=({adObj:e,preferredTestIdData:t})=>{var n,o;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const r=null===(o=document.querySelector(`#${i}`))||void 0===o?void 0:o.parentElement;if(!r)return;if(((e,t)=>{var n,o,i,r;const a=null===(r=null===(i=null===(o=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===o?void 0:o.tags)||void 0===i?void 0:i[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(i,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,o;for(const[i,r]of Object.entries(dn))if(r(e)){if("nativeAd"===i){const r="default";t.dataset.testid=`${i}-${null!==(o=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==o?o:r}`;break}t.dataset.testid=i;break}})(e,r)},ln=e=>{var t;return(null===(t=Object.entries(dn).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},cn=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},pn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=I.get(),n=X(t),o=e[`${n}-targetid`],i=o?cn(o[0]):"";return Object.assign(Object.assign({},e),o&&{[`${n}-targetid`]:[i]})},un=e=>{const{pageContext:{countryCode:t}}=I.get(),n=X(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"]})},vn=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 o=n.split(",")[0].split(":")[0],i=e.find(e=>e.invCode===o),r=document.querySelector(`[id^=${null==i?void 0:i.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e)},gn=e=>{const{source:t}=e;return"csm"===t},hn="advertory-wallpaper-background",mn="advertory-with-horseshoe",yn=()=>{const e=document.querySelector(`.${hn}`);e&&e.remove()},fn=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${hn}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},wn=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,bn=e=>wn.test(e),xn=e=>e.startsWith("wallpaper:color:"),Cn=e=>{const t=document.querySelector(`.${hn}`);t&&(t.style.backgroundImage=`url(${e})`)},An=e=>{const t=document.querySelector(`.${hn}`);t&&(t.style.backgroundColor=e)};var In=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(mn),n.classList.add(mn))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{yn();const e=document.createElement("div");e.classList.add(hn),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&&(fn(n),window.addEventListener("scroll",()=>fn(n)))})(n),e()},isShortWallpaperColorMessage:xn,isShortWallpaperUrlMessage:bn,removeWallpaperBackground:yn,setWallpaperBackgroundColor:An,setWallpaperBackgroundImage:Cn});const En=e=>{if("0"===N("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&yn())},Sn=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="")},kn=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,o=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${o}px`)},On=/_\d+$/,Pn=e=>e.replace(On,"");let jn="";const Ln=new Map,Nn=e=>{const{pageSetup:{tag:t}={}}=I.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(jn!==window.location.pathname&&(Ln.clear(),jn=window.location.pathname),e.map(e=>{var t;const n=Pn(e.invCode),o=null!==(t=Ln.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=I.get();return`${e}-${t}`})()}-count`]=o,Ln.set(n,o+1),e})):e},$n="https://inv-platform-cdn.inventory.schibsted.io",qn=5e3,Rn="editory/native-creator/native-templates",Fn=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!o)return null;return`${n||$n}/editory/editable-configurations/${t.publisherClassName}/${o.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:o}=e;return Boolean(t&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return d(this,void 0,void 0,function*(){const t=Fn(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>d(void 0,void 0,void 0,function*(){const t=Fn(e);if(!t)return null;try{return yield ae.get(t,{timeout:qn})}catch(e){throw y("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,i;const r=((e,t)=>{const{sections:n}=e,o=a(e,["sections"]),i=t?null==n?void 0:n[t]:void 0;return i?v(o,i):o})(t,null!==(i=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==i?i:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>v(t,e))(e,r)}getConfig(e){return d(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 y("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return d(this,void 0,void 0,function*(){var t,n,o,i;if(!this.localSiteConfig)return;if(x(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===(i=null===(o=this.localSiteConfig.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void y("Error fetching updated S3 config, keeping current config",{error:e})}})}},Mn=_n.getConfig.bind(_n),Dn=_n.resolveUpdatedConfig.bind(_n),Bn=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:o}=(e=>{const t=T.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=o},zn=()=>{yn();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{En(e.id),Bn(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),o=null==t?void 0:t.getAttribute("data-probable-width");n&&o&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",o+"px"))})(e.id),e.innerHTML="",e.id=cn(e.id),t.push(e.id)}),Rt(()=>window.apntag.clearRequest()),t},Un=()=>{T.setData("wallpaper",{isAvailable:!1}),T.setData("horseshoe",{isAvailable:!1})},Hn=e=>d(void 0,void 0,void 0,function*(){const t=yield Dn(e);var n;t?(I.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):E(null!=e?e:{})}),Vn="mobile",Wn="tablet",Kn="desktop",Gn="web_desktop",Jn="web_phone",Xn="wde",Yn="wph",Qn="noGroupedPlacements",Zn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},eo=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},to=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:o,pageContext:{deviceType:i}}=I.get(),r=((e,t)=>{var n;const o=null!==(n=e[t])&&void 0!==n?n:[];return t===Wn&&0===o.length?e[Kn]:o})(n,i),a=r.filter(eo),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==o?void 0:o.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], 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 o;const i=no(e,t,n);if(i.disabled)return y(`Placement ${i.targetId} is disabled - collapsing`),En(i.targetId),null;const r=i.finnBlink&&!i.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(o=i.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink),d=`${e.id}-${kt(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&&T.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},i),{targetId:d})}),c=l.filter(e=>null!=e);return Nn(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)},no=(e,t,n)=>{const o=n[t],i=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:r||i},oo=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=I.get(),o=(null==t?void 0:t[n])||{},i=Object.values(o).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=cn(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[o,i]of Object.entries(t))n[o]=e.filter(e=>i.includes(cn(e.targetId)));return n})(e,o),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(cn(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),r),{[Qn]:s})},io=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),ro=new Map,ao=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],so=".brandstudio-premium-content-widget",lo=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),co=({adWrapper:e,placementContainer:t})=>{const n=lo({adWrapper:e,placementContainer:t});var o;null==e||e.style.setProperty("height",`${n}px`),Bn(o=t),o.innerHTML=""},po=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},uo=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=I.get(),o=ao.includes(n)&&Boolean(t.closest(so));const i=o?t.closest(so):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||!o&&!a||o&&!i)return;if(a)return po(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?po(d):s.hasAttribute("style")&&po(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},vo=(e,t,n,o,i,r)=>{var a;const d=performance.now(),s=null!==(a=ro.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(o,i)&&n<0;d-s>=i&&l&&(ro.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:o}}=I.get(),i=null==n?void 0:n.parentElement;i&&n&&co({adWrapper:i,placementContainer:n}),Rt(()=>{e.setKeywords([t],{[`${X(o)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},go=(e,t,n)=>{const o=new IntersectionObserver((e,o)=>((e,t,n,o)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:r}=e;t(window.apntag,i.id,r.y,n,o,i)})})(e,vo,t,n),io(300));o.observe(e)},ho=(e,t=6)=>{const n=[];for(let o=0;o<e.length;o+=t){const i=e.slice(o,o+t);n.push(i)}return n},mo=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),yo=(e,t=0)=>{const n=e.getBoundingClientRect(),o=window.innerHeight;return n.bottom>-t&&n.top<o+t},fo=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=I.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),Ao(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},wo=(e,t,n)=>{const o=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of o){const o=e.find(e=>{var t,n;return e.targetId===(null===(t=i.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==o?void 0:o.requestThreshold;yo(i,r)&&o&&(kn(o.targetId),n.length&&i.classList.remove(...n),Ao([o],t))}},bo=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:o}}=I.get();t&&(e.forEach(({targetId:e})=>{const t=xo(e);t&&(t.dataset.bfCacheRefresh="true")}),o?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&wo(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const o=()=>{window.scrollY>0&&(window.removeEventListener("scroll",o),wo(e,!1,t))};n.persisted&&(mo()?window.addEventListener("scroll",o,{passive:!0}):wo(e,!1,t))})})(e,n))},xo=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},Co=e=>{const{targetId:t,allowedFormats:n}=e,o=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(xo(t)),i=(e=>1===e[0]&&1===e[1])(o),r={sizes:[o],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(r.native=void 0),r},Ao=(e,t=!1)=>{const{queryConfig:{batchSize:n=C}={}}=I.get(),o=e.map(({targetId:e})=>e),i=ho(o,n);if(t)for(const t of e){const e=Co(t);window.apntag.modifyTag(t.targetId,e)}for(const e of i)Rt(()=>window.apntag.refresh(e))},Io=e=>{const{apntag:t,bus:n}=e,{siteEvents:o,initNativeAd:i}=I.getHandlers(),r=[];return{adRequested:()=>{n.emit("adRequested"),o.adRequested()},adAvailable:e=>d(void 0,void 0,void 0,function*(){var t,r,a,d,s,l;y("core adAvailable start",{adObj:e,isFullscreenScrollAd:Pe(e),isFinnBlink:_e(e.targetId),isNativeAd:je(e),isMediation:gn(e),isTakeoverAd:Ne(e),isCollapseAd:Re(e),isWallpaperAd:qe(e)});const c=null===(a=null===(r=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===r?void 0:r.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(gn(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),Pe(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return bt});t(e)}const{widescreenSwitching:p,wallpaper:u,fullscreenScroll:v}=I.get();if(Be(e)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield import("./index-DGiTI497.js");e()}if(Pe(e)&&!_e(e.targetId)){y("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 bt});t(e,v)}if(!je(e)||gn(e)||_e(e.targetId)||null==i||i(e,I.get()),Ne(e)&&!Re(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield import("./index-CjQupFNS.js");t(e.targetId),yield n(e)}if(qe(e)&&(null==u?void 0:u.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return In});t(()=>Rt(()=>window.apntag.showTag(e.targetId)),u),T.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&T.setData("horseshoe",{isAvailable:!0}),o.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),y("core adAvailable stop",{adObj:e,isFullscreenScrollAd:Pe(e),isFinnBlink:_e(e.targetId),isNativeAd:je(e),isMediation:gn(e),isTakeoverAd:Ne(e),isCollapseAd:Re(e),isWallpaperAd:qe(e)})}),adLoaded:e=>d(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:a,wallpaper:d,adScaleConfig:s}=I.get(),l=document.getElementById(e.targetId);if(_e(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield import("./events-Dp2GC5Vw.js");t(e)}if(r.includes(e.targetId)&&je(e)&&(null==i||i(e,I.get()),sn({adObj:e})),!r.includes(e.targetId)&&gn(e)&&r.push(e.targetId),Re(e)&&En(e.targetId),Ne(e)){const{modifyTakeoverIframe:n}=yield import("./index-CjQupFNS.js");n(t,e.targetId)}if((e=>He(e,Te.NINESIXTEEN))(e)){const{applyNinesixteenFormat:t}=yield import("./index-CJCSxpIT.js");t(e)}if((e=>He(e,Te.FULLSQUARE))(e)){const{applyFullsquareFormat:t}=yield import("./index-CJCSxpIT.js");t(e)}if(Le(e)){const{applyFullwidthFormat:t}=yield import("./index-CJCSxpIT.js");t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,o=document.querySelector(`#${n}`),i=null==o?void 0:o.parentElement;if(!i||!o)return;uo({adWrapper:i,placementContainer:o});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();o&&"true"!==o.dataset.subscribedForRefresh&&(o.dataset.subscribedForRefresh="true",o.dataset.refresh&&go(o,a,r))})(e,n),(null==a?void 0:a.clearProbableDimensionsEnabled)&&Tn(e.targetId);if(T.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return In});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield import("./index-BuYqePxS.js");t(e),n(e)}o.adLoaded(e),xt(e.targetId),l&&(l.classList.add(At),(e=>{var t,n;const{pageSectionsSelectors:o}=I.get(),i=null==o?void 0:o.mainFirstColumn,r=i?null===(t=document.querySelector(i))||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)),sn({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const o=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;o&&((e,t)=>{const{height:n,width:o,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&o&&(t.dataset.adSizes=`[${o},${n}]`)})(e,o)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:ln(e)}}))}),adNoBid:e=>d(void 0,void 0,void 0,function*(){if(En(e.targetId),Ne(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return tn});yield t(e)}o.adNoBid(e)}),adError:(e,t)=>d(void 0,void 0,void 0,function*(){if(Ne(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return tn});yield e(t)}o.adError(e,t)}),adCollapse:()=>{o.adCollapse()},adRequestFailure:e=>d(void 0,void 0,void 0,function*(){En(e.targetId),o.adRequestFailure(e)}),adBadRequest:e=>d(void 0,void 0,void 0,function*(){En(e.targetId),o.adBadRequest(e)}),adLoadedMediated:e=>o.adLoadedMediated(e),adNoBidMediated:e=>{o.adNoBidMediated(e)}}};let Eo;const So=()=>{Eo=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=Eo,qt=e=>window.apntag.anq.push(e)},To=()=>Eo,ko={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>d(void 0,void 0,void 0,function*(){So(),yield Promise.allSettled([d(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=I.get();(yield z(e,t,n,"xandr-endpoint"))||Eo.setEndpoint("ib.adnxs-simple.com",!0)}),d(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=I.get();yield Se(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),d(void 0,void 0,void 0,function*(){if(St())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=I.get(),i=yield z(t,n,o,"prebid");(null==e?void 0:e.enabled)&&i&&(yield Se(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>d(void 0,void 0,void 0,function*(){const{pageOptions:e}=I.get(),{preparePageOptions:t}=I.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=I.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),o=yield d(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=I.get();return(yield z(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),i=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),o));(e=>{const t=T.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=un(e);T.setData("alertoryConfigKeywords",n)})(i.keywords),Rt(()=>To().setPageOpts(i))}),definePlacements:e=>{const{prepareTag:t}=I.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const o=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==o&&-1===i?-1:-1===o&&-1!==i?1:o-i})})(e).forEach(e=>{y("xandr definePlacements",{placement:e});const o=rn(e);if(an(e.targetId)){const i=t(o),r=(e=>{const{allowedFormats:t,invCode:n,keywords:o,sizes:i}=e;return{adTypes:t,invCode:n,keywords:pn(o),sizes:i}})(i);n.push(r),Rt(()=>(y("xandr definePlacements - add to the queue",{placement:e,preparedTag:i}),To().defineTag(i)))}}),(e=>{var t,n,o;(null===(o=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===o?void 0:o.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>d(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>an(e)).map(({targetId:e})=>e);t.length&&Rt(()=>(y("xandr requestPlacements",{placementsIdsToLoad:t}),To().loadTags([...t])))}),bindEvents:e=>d(void 0,void 0,void 0,function*(){var t;yield(t={apntag:To(),bus:e},d(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=Io(t);Rt(()=>{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)})}))})},Oo=(e,t,n)=>{const o=document.getElementById(`div_utif_${e}`);if(!o)return;const{apntag:i}=window,[r,a]=t;if(!o.dataset.lockedsize&&a&&r)o.style.width=`${r}px`,o.style.height=`${a}px`,n&&(i.resizeAd(o.id,[r,a]),o.dataset.lockedsize="true",o.dataset.lockedwidth=r.toString(),o.dataset.lockedheight=a.toString());else if(null==o?void 0:o.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=o.dataset;e&&t&&i.resizeAd(o.id,[e,t])}},Po="collapseAd",jo="hideAd",Lo="resizeAd",No="wallpaperImageUrl",$o="wallpaperColor",qo="velvet",Ro=[Lo,No,$o,Po,jo,qo];let Fo;const _o=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(bn(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:No,wallpaperImageUrl:t}}if(xn(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:$o,wallpaperColor:t}}if(e.startsWith(Po)||e.startsWith(jo)){const t=e.split(":")[1];return{name:Po,targetId:t}}if(e.includes("name")&&Ro.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Ro.some(e=>n.name===e))return;const{name:o,targetId:i,wallpaperImageUrl:r,wallpaperColor:a,cmd:d,size:s}=n;o===qo&&d&&(d.includes("noScroll")&&(Fo=(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==Fo||Fo(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),o!==Po&&o!==jo||!i||En(i),o===Lo&&i&&d&&Oo(i,d),"resizeMediationAd"===o&&i&&s&&Oo(i,s,!0),o===No&&r&&Cn(r),o===$o&&a&&An(a)},Mo=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=I.get(),o=window.apntag,i={publisher:e,countryCode:t,finnBlink:n},r=e=>{Sn(e),Rt(()=>o.showTag(e))};return{withXandrAd:r,withFinnBlinkAd:e=>d(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-CyHpFA0R.js");yield t(e,i,null)}),withFullAdsChain:e=>d(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void r(e);const{loadFinnBlinkAd:t}=yield import("./index-CyHpFA0R.js");yield t(e,i,r,()=>d(void 0,void 0,void 0,function*(){if(!T.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return In});t(e)}))})}},Do=(e,t)=>d(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield Lt(e,t,()=>((e,t,n)=>{const o="true"===n.dataset.isFinnBlinkOnlyPlacement;return _e(t)&&o?(y(`loading finn blink ad for blink only placement for ${t}`),void Mo().withFinnBlinkAd(t)):_e(t)?(y(`loading finn blink ad with full ads chain for ${t}`),void Mo().withFullAdsChain(t)):void Rt(()=>(y("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)))}),Bo=(e,t)=>d(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});pt(".advertory-brandmetrics-survey{width:100%}");const zo="advertory-brandmetrics-survey",Uo=()=>d(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)}}),Ho=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Vo="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Wo=()=>d(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,o)=>{var i;o||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Ko={pageContext:{publisher:"aftonbladet",countryCode:F.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"}},Go={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Jo=e=>(null==e?void 0:e.parent)?[...Jo(e.parent),e.shortPath||"unknown"]:[],Xo=(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]=Jo(e);return Go[n]||"ovrigaavdelningar"})(e)}_{position}`,Yo={aftonbladet:Ko},Qo={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Xo(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Jo(e).join(":")}}},Zo=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},ei=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),ti="se-generic",ni="aa-sch",oi="kv_",ii="pause",ri="{deviceType}",ai="{position}",di="afp_",si=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),li="1-1",ci="16-9",pi="3-4",ui="9-16",vi="responsive",gi={[li]:1,[ci]:1.78,[ui]:.56,[vi]:1},hi={[li]:1,[ci]:1.78,[pi]:1.33,[ui]:.56},mi=(e,t,n,o)=>{const{invCode:i="",videoOverlayInvCode:r}=null!=e?e:{},a=Kn===n?Xn:Yn,d=i.replace(ri,a);return(e,n)=>{if(e===ii)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(ai,ii).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&si.has(e)){return(o&&r?r:t.frontpageInvCodeTemplate).replace(ri,a).replace(ai,e)}return d.replace(ai,e)}},yi=()=>{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"},fi=e=>e===Vn,wi=853,bi=767,xi=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[o,i])=>{const r=Math.abs(e[n]-t);return Math.abs(i-t)<r?o:n},n[0][0])},Ci=()=>{var e,t;const n=jwplayer().getContainer(),o=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return o&&"number"==typeof o.offsetWidth&&"number"==typeof o.offsetHeight&&0!==o.offsetHeight?o.offsetWidth/o.offsetHeight:1},Ai=()=>{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},Ii=()=>{const e=null!==(t=Ai()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Ai()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ei=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Si=(e,t)=>d(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:o,countryCode:i}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:i,publisher:o,pageType:"front",deviceType:e.deviceType},s=(yield z(n,e.isApp,i,"video"))?"1":"0",l=yield Wo(),c=yield Ie(i),p=yield _t({tcf:n,pageContext:d}),u=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>xi(hi,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?xi(gi,Number(m.toFixed(2))):vi;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ni}-country_code`]:i,[`${ni}-publisher`]:o,[`${ni}-supply_type`]:(y=e.deviceType,y===Kn?Gn:Jn),[`kw_${ni}-page_type`]:"collection",[`${ni}-page_type`]:"collection",[`${ti}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${ti}-page`]:"index",[`${ti}-page`]:"index",[`${ti}-screenheight`]:String(window.screen.height),[`${ti}-screenwidth`]:String(window.screen.width),[`${ti}-viewportheight`]:String(a),[`${ti}-viewportwidth`]:String(r),[`${ti}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${ti}-mobile-os`]:yi(),[`${ti}-audience`]:void 0,[`${ti}-externalid_src`]:Ii(),[`${ti}-tags`]:e.tags,[`${ti}-articleid`]:u,"article-id":u},yield Y(Object.assign(Object.assign({},t),{pageContext:d}))),p&&{external_uid:p}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${ti}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Ei()).some(e=>e.includes(oi))&&(()=>{const e=Ei(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(oi)).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})}),Ti=["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"],ki=["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"],Oi=["external_uid","gdpr","gdpr_consent","eids","article-id"],Pi=(e,t)=>{const n=[...Ti,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Oi.includes(e)?e:`kw_${e}`,t]))},ji=e=>Object.fromEntries(Object.entries(e).filter(([e])=>ki.includes(e))),Li=(e,t)=>d(void 0,void 0,void 0,function*(){var n,o,i,r;const a=(e=>{var t;Yo[e]||f(`[video] No config found for publisher "${e}"`);return null!==(t=Yo[e])&&void 0!==t?t:Ko})(e.publisher),d=(e=>{var t;return null!==(t=Qo[e])&&void 0!==t?t:Qo.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,l=null===(o=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString(),c=e.assetId===l,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,u=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield Si({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:p,playerAspectRatio:Ci(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:u,playbackMethod:Zo(e.startMode)}}),Ni=(e,t)=>{const{siteConfig:n,siteVideoParams:o,isUserPresentOnFrontPage:i,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=o||{},l=mi(o,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(di)?`${di}${t}`:t)(s),p=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,i),"se-generic-playback-method":ei.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({},Pi(r,n)),ji(r)),{vskippable:"0",referrer:p,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")})}}}},$i=e=>t=>d(void 0,void 0,void 0,function*(){const n=yield Li(e,t);return Ni(n,e)}),qi={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]}]},Ri={no:"NOK",se:"SEK"},Fi={no:"no",se:"sv"};class _i{buildFetchObject(e,t,n,o){return d(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:r}=o,{invCode:a,xandrPlacementId:d}=e,s=yield Wo(),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 p=new URL(window.location.href),u=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(qi),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:kt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},u&&{native:u}),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:p.hostname,page:p.href,publisher:{id:String(r.publisherId),domain:p.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||Fi[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield _t(o),ext:{consent:s.gdpr_consent||"",eids:Ae(i)}},at:1,cur:[Ri[i]],source:{tid:kt(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,o){return d(this,void 0,void 0,function*(){try{y("Starting fetching Studio ad from Xandr:",Vo);const i=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?`${Vo}?${a.toString()}`:Vo,s=yield this.buildFetchObject(e,t,n,o),l=yield ae.post(d,i,s);return y("Fetch operation completed successfully.",l),l}catch(e){y("Error during fetch operation:",e)}return null})}}const Mi=0,Di=3,Bi=(e,t,n,o)=>{const i=t.parentElement;if(!i)return;const r=e?`-${e}`:"",a=o?`__${o}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(d),i.classList.add(s),t.dataset.adType=n},zi={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Ui=(e,t)=>{Hi(e,t),Wi(e,t)},Hi=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const o of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])Gi(o)}),t.dataset.tracked="true")})},Vi=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;o||!i?null==n||n.forEach(Ki):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},Wi=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!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:Kn])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,Vi(e),c.disconnect();break}},s);c.observe(i)},Ki=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Gi(e):window.navigator.sendBeacon(e)},Gi=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Ji=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:[]}),Xi=(e,t)=>d(void 0,void 0,void 0,function*(){var n,o;const{pageContext:{deviceType:i},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void y(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},io(d)).observe(s)});const{prepareTag:l}=I.getHandlers(),c=T.getData("alertoryConfigKeywords"),p=null!==(o=l(rn(e)).keywords)&&void 0!==o?o:{},u=new _i,v=yield u.fetchData(e,c,p,t);v&&(((e,t,n)=>{const o=n===Vn?t.mobileHTML:t.desktopHTML;if(o){if(t.adType===Mi){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>${o}`,e.appendChild(n)}else e.innerHTML=o;e.classList.add("ad-loaded")}})(s,v,i),v.adType===Di&&(Bi(t.pageContext.publisher,s,zi.NATIVE_AD,t.pageContext.pageType),Ui({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:i,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,o)=>{var i,r,a;let d;(null===(i=window.apntag.requests)||void 0===i?void 0:i.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==o?void 0:o.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),Ct(e,n,Number(null==o?void 0:o.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,v.bid))}),Yi=(e,t)=>{e.forEach(e=>Xi(e,t).catch(e=>{y("Failed to handle server-side ad:",e)}))},Qi=(e,t,n,o)=>{const r=document.querySelector(`#${e}`);r&&t&&(r.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:r}=t,a=o&&Object.values(i).includes(o);n&&a&&Bi(o,e,zi.NATIVE_AD,r)})(r,n),o())},Zi=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const o of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])or(o)}),t.dataset.tracked="true")})},er=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;o||!i?null==n||n.forEach(nr):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},tr=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!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:Kn])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,er(e),c.disconnect();break}},s);c.observe(i)},nr=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?or(e):window.navigator.sendBeacon(e)},or=e=>{ae.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},ir={"no-aftenposten":i.AFTENPOSTEN,"no-stavangeraftenblad":i.SA,"no-bergenstidende":i.BT},rr=(()=>{const e=new Map,t=new Map;return{getTemplate:t=>e.get(t),setTemplate:(t,n)=>{e.set(t,n)},deleteTemplate:t=>{e.delete(t)},getAdjustment:e=>t.get(e),setAdjustment:(e,n)=>{t.set(e,n)},clear:()=>{e.clear(),t.clear()}}})(),ar=(e,t,n)=>{if(!n)return Promise.resolve(null);const o=((e,t,n)=>`${null!=n?n:$n}/${Rn}/${e}/adjustments/${t}.json`)(e,n,t),i=rr.getAdjustment(o);if(i)return i;const r=ae.get(o,{timeout:qn}).catch(e=>(y("Failed to fetch native template adjustment",{error:e,url:o}),null));return rr.setAdjustment(o,r),r},dr=(e,t,n)=>d(void 0,void 0,void 0,function*(){const o=((e,t)=>`${null!=t?t:$n}/${Rn}/${e}/default.json`)(e,n);let i=rr.getTemplate(o);i||(i=ae.get(o,{timeout:qn}).catch(e=>{throw y("Failed to fetch native template",{error:e,url:o}),rr.deleteTemplate(o),e}),rr.setTemplate(o,i));const r=ar(e,n,t),[a,d]=yield Promise.all([i,r]);return{schema:a,adjustment:d}}),sr="data-ad-video",lr="viewable",cr="adClick",pr=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},ur=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),vr=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},gr=e=>d(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const o=document.createElement("script");o.id=e,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(o,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),hr={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return d(this,void 0,void 0,function*(){yield import("./styles-CJJn5fT9.js")})}})}},mr=(e,t)=>{null==e||e.forEach(e=>{hr[e](t)})},yr={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},fr=({container:e,native:t,type:n,publisher:o})=>{const i=e.querySelector(`[${sr}]`),{video:r,image:a,clickUrl:s=""}=t;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:l,videoLoop:c}=(e=>{var t;return null!==(t=yr[e.toLowerCase()])&&void 0!==t?t:yr.default})(n),p=Math.ceil(1e5*Math.random()),u=`ad-player-${p}`;i.id=u;const v=(({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},ur(e)?e:{}),{provider:Object.assign(Object.assign({},ur(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}))({id:p,nodeId:u,poster:(null==a?void 0:a.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:pr(r.content,s),publisher:o,videoLoop:c});d(void 0,[{playerConfig:v,clickUrl:s,pluginsNames:l}],void 0,function*({playerConfig:e,pluginsNames:t,clickUrl:n}){const o=yield gr(e);mr(t),o.once("assetReady",()=>{vr(o,t)}),o.on(lr,e=>{const{viewable:t}=e;t?o.play():o.pause()}),n&&o.on(cr,()=>{window.open(n,"_blank")}),e.repeat&&o.on("pause",()=>{o.play()})})},wr=(e,t)=>{const{adjustmentOverrides:n}=e,o=a(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},o),t.overrides&&{adjustmentOverrides:v({},t.overrides)})},br="desktop",xr="mobile",Cr="container",Ar="text",Ir="image",Er="cogwheel",Sr="video",Tr=e=>{if(e)return e===Vn?xr:br},kr=(e,t,n)=>{var o,i,r,a,d,s,l,c,p,u,v,g,h;const m=t?null===(o=e.overrides)||void 0===o?void 0:o[t]:void 0,y=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[e.id],f=t?null===(r=null==n?void 0:n[t])||void 0===r?void 0:r[e.id]:void 0;if(null!==(s=null!==(d=null!==(a=null==f?void 0:f.hidden)&&void 0!==a?a:null==y?void 0:y.hidden)&&void 0!==d?d:null==m?void 0:m.hidden)&&void 0!==s?s:e.hidden)return null;const w=Object.assign(Object.assign(Object.assign(Object.assign({},e.styles),null==m?void 0:m.styles),null==y?void 0:y.styles),null==f?void 0:f.styles),b=null!==(p=null!==(c=null!==(l=null==f?void 0:f.tag)&&void 0!==l?l:null==y?void 0:y.tag)&&void 0!==c?c:null==m?void 0:m.tag)&&void 0!==p?p:e.tag,x=null!==(g=null!==(v=null!==(u=null==f?void 0:f.text)&&void 0!==u?u:null==y?void 0:y.text)&&void 0!==v?v:null==m?void 0:m.text)&&void 0!==g?g:e.text,C=null===(h=e.children)||void 0===h?void 0:h.map(e=>kr(e,t,n)).filter(e=>null!==e),A={id:e.id,tag:b,type:e.type,name:e.name,styles:w,connections:e.connections};return void 0!==x&&(A.text=x),void 0!==C&&(A.children=C),A},Or=e=>Object.entries(e).map(([e,t])=>`${(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))(e)}:${(e=>String(e).replace(/"/g,"""))(t)}`).join(";"),Pr={microsoftMonetize:{title:"title","body-text":"body",description:"body","sponsored-by":"sponsoredBy","call-to-action":"cta","display-url":"clickUrl","desc-2":"desc2",image:"image",icon:"icon",video:"video","title-1":"customTitle1","title-2":"customTitle2","title-3":"customTitle3","title-4":"customTitle4","icon-1":"customIcon1","icon-2":"customIcon2","custom-display-url-1":"customDisplayUrl1","custom-display-url-2":"customDisplayUrl2","custom-body-1":"customBody1","custom-body-2":"customBody2","custom-body-3":"customBody3","custom-body-4":"customBody4","custom-body-5":"customBody5"}},jr=(e,t)=>{const n=e[t];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class Lr{constructor(e,t=!1){this.tag=e,this.voidElement=t,this.attributes=new Map,this.content=""}attr(e,t){return t&&this.attributes.set(e,t),this}children(e){return this.content=e,this}build(){const e=[...this.attributes].map(([e,t])=>` ${e}="${t}"`).join("");return this.voidElement?`<${this.tag}${e}>`:`<${this.tag}${e}>${this.content}</${this.tag}>`}}const Nr=(e,t,n="")=>{var o;return(null===(o=e.connections)||void 0===o?void 0:o.length)?((e,t)=>{const n=[];for(const o of e){const e=Pr[o.server];if(e)for(const i of o.properties){const o=e[i];if(!o)continue;const r=jr(t,o);r&&n.push(r)}}return n.join(" ")})(e.connections,t):n},$r=(e,t,n,o)=>{var i;const{tag:r,styles:a}=e,d=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Rr(e,t,n,!1)).join(""),s=new Lr(r);return o(s),s.attr("href","a"===r?Nr(e,t):"").attr("style",Or(a)).children(d).build()},qr={[Cr]:(e,t,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return $r(e,t,n,t=>{o&&t.attr("class",`advertory-${r}-ad-native-${e.name.toLowerCase()}`)})},[Er]:(e,t,n)=>$r(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[Ar]:(e,t)=>{var n;return new Lr(e.tag).attr("style",Or(e.styles)).children(Nr(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[Ir]:(e,t)=>new Lr("img",!0).attr("style",Or(e.styles)).attr("src",Nr(e,t)).build(),[Sr]:(e,t)=>"video"===e.tag&&Nr(e,t)?new Lr("div").attr(sr,"true").attr("style",Or(e.styles)).build():""},Rr=(e,t,n,o=!0)=>{const i=qr[e.type];return i?i(e,t,n,o):""},Fr=e=>(t,{publisher:n,containerId:o,deviceType:i})=>(({config:e,nativeData:t,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const a=o?wr(e,o):e,d=kr(a.root,n,a.adjustmentOverrides);return d?Rr(d,t,{breakpoint:n,publisher:i,containerId:r}):null})({config:e,nativeData:t,breakpoint:Tr(i),publisher:n,containerId:o}),_r="[data-carousel-track]",Mr=({image_link:e,title:t})=>{const n=document.createElement("figure"),o=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),o.className="slide-image",o.src=e,o.alt=t,o.loading="lazy",o.draggable=!1,n.appendChild(o),n},Dr=e=>Boolean(e.title&&e.link&&e.image_link),Br=(e,t)=>d(void 0,void 0,void 0,function*(){const n=e.querySelector(_r);var o;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const i=yield(e=>d(void 0,void 0,void 0,function*(){try{const t=yield ae.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(f("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return f("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!i)return void e.replaceChildren();const r=i.items.filter(Dr);if(!r.length)return void f("Carousel feed has no usable items");yield import("./styles-D4lGHCAj.js");const a={title:(o=e).querySelector("[data-product-title]"),description:o.querySelector("[data-product-description]"),price:o.querySelector("[data-product-price]"),link:o.querySelector("[data-product-link]")};n.replaceChildren(...r.map(Mr)),(({root:e,onChange:t})=>{var n;const o=e.querySelector("[data-carousel-viewport]"),i=e.querySelector(_r),r=Array.from(null!==(n=null==i?void 0:i.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!o||!i||!r.length)return;const a=r.length,d=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let s=1,l=null,c=0,p=!1;const u=e=>{const t=d[0].offsetWidth,n=Number.parseFloat(getComputedStyle(i).columnGap)||0,r=(o.clientWidth-t)/2-s*(t+n);i.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",i.style.transform=`translate3d(${r+c}px, 0, 0)`,i.offsetWidth},v=(e,n=!0)=>{s=e,u(n),d.forEach((e,t)=>e.classList.toggle("is-active",t===s)),null==t||t((s-1+a)%a)},g=()=>{0===s?v(a,!1):s===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*o.clientWidth?-Math.sign(c):0;l=null,c=0,v(s+e),window.setTimeout(()=>{p=!1})};i.replaceChildren(...d),i.addEventListener("transitionend",e=>{e.target===i&&g()}),o.addEventListener("pointerdown",e=>{g(),l=e.clientX,o.setPointerCapture(e.pointerId),u(!1)}),o.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,p=p||Math.abs(c)>6,u(!1))}),o.addEventListener("pointerup",h),o.addEventListener("pointercancel",h),o.addEventListener("click",e=>{p&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:o},i)=>{e&&(e.textContent=i.title),t&&(t.textContent=i.description),n&&(n.textContent=i.sale_price||i.price),o&&(o.href=i.link)})(a,r[e])}),y("Carousel mounted",{items:r.length})}catch(t){f("Carousel could not be rendered",t),e.replaceChildren()}else f("Carousel feed url is missing or not a valid https url",{url:t})}),zr="default",Ur=(e,t)=>d(void 0,void 0,void 0,function*(){var n,o,i,r,a,d;const s=document.querySelector(`#${e.targetId}`),{native:l}=e;if(!l||!s)return;const{desc2:c}=l,p=null==c?void 0:c.toLowerCase(),u=((e,t)=>{const n=Et(q),o=new URLSearchParams(window.location.search).get(q);return t.includes("native_recirc"),n&&o?o:(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null})(e.targetId,null!=c?c:zr),v=(null!=u?u:p)||zr,g=(null===(n=l.video)||void 0===n?void 0:n.content)?`${v}-video`:v,h=(e=>{var t;if(e)return null!==(t=ir[e])&&void 0!==t?t:e})(null===(o=t.pageContext)||void 0===o?void 0:o.publisher);try{const{schema:n,adjustment:o}=yield dr(g,h,null===(i=t.editory)||void 0===i?void 0:i.editoryUrl),c=o?wr(n,o):n,p=Fr(c),u={publisher:h,pageType:null===(r=t.pageContext)||void 0===r?void 0:r.pageType,deviceType:null===(a=t.pageContext)||void 0===a?void 0:a.deviceType,appearanceConfig:t.appearanceConfig,nativeTrackingConfig:t.nativeTrackingConfig,containerId:e.targetId,clickLinkSelector:"a"},m=p(l,u),{enabled:y=!0}=null!==(d=t.nativeTrackingConfig)&&void 0!==d?d:{};Qi(e.targetId,m,u,()=>{xt(e.targetId),fr({container:s,native:l,type:v,publisher:h}),y&&((e,t)=>{Zi(e,t),tr(e,t)})(e,u)})}catch(e){y("Failed to render native ad from config",{error:e})}}),Hr="_adchoices_non_rtb",Vr=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Hr}={}}={}}=I.get();return`${Pn(e)}${t}`},Wr=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>En(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Vr(e.invCode)})))(e)),Kr=e=>`${Math.max(0,Math.round(e))}px`,Gr=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},Jr=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const o=e[t];n.style.setProperty(t,o)}},Xr=()=>{const{pageSectionsSelectors:e}=I.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=Gr(t);Jr({"--advertory-header-height":Kr(n)})})(e.header)};let Yr=ko,Qr=[];const Zr=["takeover","wallpaper"],ea=(e,t)=>{var n,o;const{initNativeAd:i}=I.getHandlers();null==i||i(e,null!==(o=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==o?o:I.get())},ta=e=>{const t=(e=>{var t;const n=T.getData("alertoryConfigKeywords"),{queryConfig:o,placements:i,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:p,isMobileApp:u=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:y}=e,f=null!==(t=null==o?void 0:o.batchSize)&&void 0!==t?t:C;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:p,isMobileApp:u},pageSetup:g,placements:i,tcf:r,queryConfig:Object.assign(Object.assign({},o),{batchSize:f})},a&&{glimr:a}),d&&{appearanceConfig:d}),h&&{takeover:h}),m&&{fullscreenScroll:m}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.16.5",siteConfig:e,renderNativeAd:ea,alertoryConfig:t}},na=()=>d(void 0,void 0,void 0,function*(){yield Yr.setTargeting()}),oa=e=>d(void 0,void 0,void 0,function*(){var t,n;const{prebid:o,tcf:i,pageContext:{isMobileApp:r,countryCode:a}}=I.get(),d=yield z(i,r,a,"loadPlacements"),s=Wr(e,d);null===(t=Yr.definePlacements)||void 0===t||t.call(Yr,s);(null==o?void 0:o.enabled)&&d&&!St()?(y("core loadPlacements prebid enabled"),yield Nt()):(y("core load tags invoked without prebid enabled"),yield null===(n=Yr.requestPlacements)||void 0===n?void 0:n.call(Yr,s))}),ia=(e,t)=>d(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:o}}=I.get(),{requestThreshold:i,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[o];a&&(y("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:i,deviceDefaultThreshold:d}),yield Do(a,null!=i?i:d)),a&&(null==r?void 0:r.scroll)&&(y("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),ra=e=>e.some(({targetId:e})=>Zr.some(t=>e.includes(t))),aa=e=>d(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,o]=(e=>e.reduce(([e,t],n)=>{var o;return(null===(o=null==n?void 0:n.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=C}={},pageContext:{deviceType:o}}=I.get(),i=oo(e),r=Object.keys((null==t?void 0:t[o])||{}).map(e=>i[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,...ho(d,n)]})(o);for(const e of i)ra(e)?(y("core loadAds without lazy loading",{placementsToLoad:e}),yield oa(e)):e.length&&(y("core loadAds with lazy loading",{placementsToLoad:e}),yield da(e));const{finnBlink:r}=I.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-CyHpFA0R.js");yield e(n)}}),da=e=>d(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=I.get(),o=[];if(!t)return y("lazy load is not enabled",{placements:e}),void(yield oa(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{y("lazy load is enabled - handler start",{loadedTargetIds:o,placements:e});const i=e.every(e=>o.includes(e.targetId)),r=e.map(e=>e.targetId);!i&&o.push(...r),!i&&oa(e),y("lazy load is enabled - handler stop",{loadedTargetIds:o,placements:e,arePlacementsLoaded:i,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(y("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),sa=()=>d(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>d(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=>d(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=Qr.find(({targetId:t})=>t===e.targetId);t&&(yield ia(t,e),Qr=Qr.filter(e=>e.targetId!==t.targetId))})),yield Yr.bindEvents(e)}),la=(e,t)=>d(void 0,void 0,void 0,function*(){var n,o;if(y(`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 y("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:i,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:d,contextSelector:s}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let c=[];if(r)return zn(),Qr=[],Un(),[];if(i&&(c=null!==(o=zn())&&void 0!==o?o:[]),i&&!l)return[];i&&l&&(Qr=[],Un()),a&&(zn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Sn(e.id)})),yield Hn(e),(null==e?void 0:e.pageSectionsSelectors)&&Xr(),yield na();const{clientSidePlacements:p,serverSidePlacements:u}=Ji(to(s)),v=[...p,...u];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>cn(e)));e.filter(e=>n.has(e)).forEach(e=>Sn(e))})(c,v),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>cn(e)));e.filter(e=>!n.has(e)).forEach(e=>Tn(e))})(c,v);let g=p;return d&&(g=g.filter(e=>_e(e.targetId))),Yi(u,I.get()),g.length>0&&(Qr=[...Qr,...g.map(e=>Object.assign({},e))],fo(g),bo(g),yield aa(g)),Qr}),ca=(e,t,n)=>d(void 0,void 0,void 0,function*(){var o,i;const{initConsentManager:r,getConsentAsync:a}=B(e.tcf,null===(o=e.pageContext)||void 0===o||o.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),s=yield Mn(e);yield Uo(),yield Bo(r),yield Bo(a),y("TCF resolved successfully"),yield((e,t,...n)=>d(void 0,[e,t,...n],void 0,function*(e,t,n=ko){var o,i;Yr=n,I.set(e),I.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:r,kilkaya:a,rightColumnSplit:s,finnBlink:l}=e;T.initialize(),window.addEventListener("message",_o,!1);const[c]=yield Promise.allSettled([Yr.setup(),fe(e),d(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=I.get();(yield z(t,n,o,"gpt-endpoint"))&&(yield Se(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),d(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=I.get(),{getConsentAsync:r}=B(n,0,i),a=yield r();if(e&&t&&a){if(yield Se(t),document.querySelector(`.${zo}`))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(zo)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),H(),d(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=I.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Se(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(y("Driver has been set up"),null==r?void 0:r.enabled){const{loadNorstat:e}=yield import("./index-CiNrNpCh.js");yield e()}if(y("Libraries have been loaded and trackers have been set"),Xr(),yield sa(),yield na(),y("Page options have been set"),ta(e),y("Advertory is setup on window"),"dom-discovered"===Yr.capabilities.tagDefinition)return yield null===(o=Yr.requestPage)||void 0===o?void 0:o.call(Yr),void y("Ads requested via dom-discovered driver");const{clientSidePlacements:p,serverSidePlacements:u}=Ji(to());if(Qr=p,Yi(u,e),fo(Qr),bo(Qr),yield aa(Qr),y("Ads has been loaded",Qr),vn(Qr),null==l?void 0:l.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-CyHpFA0R.js");yield t(null===(i=null==e?void 0:e.pageContext)||void 0===i?void 0:i.deviceType,e.finnBlink)}if(null==s?void 0:s.enabled){const{initRightColumnSplit:t}=yield import("./index-yZxvx-bT.js");t(e.rightColumnSplit)}if(null==a?void 0:a.enabled){const{runKilkaya:t}=yield import("./index-BcMo8ZRV.js");yield t(e)}}))(s,t,n),y("Run function resolved successfully")}),pa=["sponsor","seamless"],ua=(e,t,n,o)=>{var i;const{image:r,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:p,desc2:u,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:C,customBody5:A,customIcon1:I,customIcon2:E,customDisplayUrl1:S,customDisplayUrl2:T}=e,k=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:k(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=pa.some(e=>null==u?void 0:u.includes(e))&&"dark"===(null===(e=o.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return k(t?I:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(i=null!=p?p:g)&&void 0!==i?i:"",desc2:null!=u?u:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=C?C:"",customBody5:null!=A?A:"",logo2:k(E),previewVideoSrc:null!=S?S:"",feedUrl:null!=T?T:""},t)},va=(e,t)=>{const n=Et(q),o=new URLSearchParams(window.location.search).get(q);return t.includes("native_recirc"),n&&o?o:(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},ga=(e,t,n,o)=>{const r=document.querySelector(`#${e}`);r&&t&&(r.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:r}=t,a=o&&Object.values(i).includes(o);n&&a&&Bi(o,e,zi.NATIVE_AD,r)})(r,n),o())},ha=(e,t,n)=>{var o;const i=((e,t,n)=>{var o;const{displayTemplates:i,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),p=null!==(o=va(e.targetId,l))&&void 0!==o?o:c,u=vt[t.language||F.NO],v=ua(d,u,s,t);return(d.video?r[p]:i[p]||i.default)(v,t)})(e,t,n);ga(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Ui(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&Br(r,null===(o=e.native)||void 0===o?void 0:o.customDisplayUrl2)},ma=e=>(t,n)=>{var o;const{targetId:i}=t,r=document.querySelector(`#${i}`);if(!r)return;const a=e.getOptions(null!=n?n:{});ha(t,a,e.templates),null===(o=e.postProcess)||void 0===o||o.call(e,t,r)},ya=()=>{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},fa=e=>{const{siteSpecificConfig:t}=I.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class wa{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return d(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 d(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const ba=9826;class xa{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=I.get();if(t){return{"aa-sch-supply_type":`app_${e===Vn?"phone":Wn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return d(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 d(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=Ft("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return d(this,void 0,void 0,function*(){return yield _t(I.get())})}isTrackingForbidden(){return d(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=ba}={}}=I.get();return"true"===N("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=I.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return d(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=I.get(),{getConsentAsync:o}=B(e,0,n);return{"aa-sch-cmp_advertising":(yield o())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=I.get();return{"aa-sch-page_type":e}}getCountryCodeKeywords(e){return{"aa-sch-country_code":e}}getInventoryTypeKeywords(){return{"aa-sch-inventory_type":"editorial"}}getHasContextKeywords(e){const t=e["aa-sch-context_keyword"];return{"aa-sch-has_context_keyword":Array.isArray(t)&&t.length?1:0}}getPageOptionsFormatDevice(e="desktop"){return"mobile"===e?"phone":e}}const Ca=new xa;function Aa(e=!1){var t,n;const o=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=yi();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:o.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Ca.prepare.bind(Ca);const Ia=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Ea(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Ia.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Sa extends xa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=I.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=I.get(),{OS:n,isHybridApp:o}=Aa(t);return{"no-sno-apptype":n&&e&&o?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Ea(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=I.get(),i=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":`${i.split("_").pop()||i}_${"article"===o?"article":"front"}`}}}const Ta=new class extends Sa{prepare(e){return d(this,void 0,void 0,function*(){var t,n,o,i,r,a,d;const s=I.get(),l=null!==(o=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},c=null!==(a=null===(r=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},p=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,u=new wa;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(Y(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),u.add(this.getSupplyTypeKeywords()).add(be()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==p,void 0!==p?this.getObituariesKeywords(p):{});const v=u.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},we(F.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},ka=Ta.prepare.bind(Ta);class Oa extends xa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=I.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,o=document.documentElement.clientHeight;return{width:e||n||0,height:t||o||0}}(),t={width:null!==(o=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==o?o:0,height:null!==(r=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==r?r:0};var n,o,i,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return d(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=I.get(),{appMode:t,mobileOS:n}=Aa(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:o}}=I.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===o?"article":"front"}`}}}const Pa=new class extends Oa{prepare(e){return d(this,void 0,void 0,function*(){var t,n,o,i,r,a;const s=I.get(),l=null!==(o=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},c=null!==(a=null===(r=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},p=new wa;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Y(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield p.addIfAsync(c.sdkVersion,()=>d(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),p.add(this.getSupplyTypeKeywords()).add(be()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===Ft("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const u=p.build(),v=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:u,user:Object.assign(Object.assign({},we(F.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},ja=Pa.prepare.bind(Pa),La={default:({containerId:e,url:t,adText:n,sponsoredBy:o,title:i,img:r,description:a})=>(import("./styles-MHpJAgKy.js"),`<article class="advertory-koket-ad-native-default">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}">\n <div class="ad-content">\n <div class="ad-header">\n <span class="ad-annonse">${n}</span>\n </div>\n <div class="ad-image-container">\n <img alt="${i}" class="ad-image" src="${r}" />\n </div>\n <div class="ad-data-content">\n <div class="ad-title">${i}</div>\n <div class="ad-subtitle">\n <span class="ad-sponsored">${o}</span> ${a}\n </div>\n </div>\n </div>\n </a>\n </article>`)};pt('@import"https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap";.advertory-shared-ad-native-content-display-basic{width:100%;font-family:Roboto,sans-serif;color:#6d747e;text-align:left;background:#fff;position:relative;margin:0 auto;display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic *{line-height:normal}.advertory-shared-ad-native-content-display-basic .ad-info{top:0;right:8px;position:absolute}.advertory-shared-ad-native-content-display-basic .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic .ad-link{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-link:hover{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-header{padding:5px 16px;background-color:#ffcd00;font-size:12px;text-transform:uppercase;color:#495057;font-weight:600}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper{display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{position:relative;padding-bottom:40%}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{display:none}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper{position:absolute;height:100%;width:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper .ad-large-image{object-fit:cover;min-width:100%;height:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content{box-sizing:border-box;display:flex;background-color:#fffae6}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container{flex-grow:1;padding:16px}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:20px;color:#212529;font-weight:600;margin-bottom:16px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:22px}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-sponsor{font-size:11px;color:gray;font-weight:600;text-transform:uppercase}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:none;max-width:175px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:block}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover;max-width:100%}.advertory-shared-ad-native-content-display-basic.article .ad-info{top:0;right:0;position:absolute;border-bottom-left-radius:50%;background:hsla(0,0%,100%,.6)}.advertory-shared-ad-native-content-display-basic.article .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{display:block}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container{padding:8px 16px;border-left:4px solid #ffcd00}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{display:flex;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper .ad-header{padding:2px 4px;font-size:11px}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:15px;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:18px;margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:16px 8px 16px 0}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:0}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:contain}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover}}');const Na={FRONT:"front"},$a="viewable",qa="adClick";const Ra=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},Fa=({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},ur(e)?e:{}),{provider:Object.assign(Object.assign({},ur(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}),_a=e=>d(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:o}=e,{repeat:i}=t,r=yield gr(t);mr(n),r.once("assetReady",()=>{vr(r,n)}),r.on($a,e=>{const{viewable:t}=e;t?r.play():r.pause()}),r.on(qa,()=>{window.open(o,"_blank")}),i&&r.on("pause",()=>{r.play()})}),Ma=({containerId:e,adText:t,url:n,adFrom:o,sponsoredBy:i,title:r},a,d)=>(import("./styles-CaOTkmnD.js"),`<article class="advertory-shared-ad-native-video">\n <div class="ad-info" id="${e}-button"></div>\n <div class="ad-content">\n <div class="ad-header">\n <span>${t}</span>\n </div>\n <div class="ad-image-container">\n <div class="ad-player-wrapper">\n <div id="${d}"></div>\n </div>\n </div>\n <a class="ad-link" href="${n}" target="_blank">\n <div class="ad-text-container">\n <span class="sponsored-by">\n ${o} ${i}\n </span>\n <span class="title">${r}</span>\n </div>\n </a>\n </div>\n </article>`);pt('.advertory-abo-ad-native-sponsorstripe{position:relative;top:0;left:0;width:100%;background:inherit;padding:0;margin:0;border:none;text-align:left}.advertory-abo-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:980px;height:30px;padding:5px 15px;margin:auto;font-family:"Helvetica Neue",Arial,Roboto,sans-serif}.advertory-abo-ad-native-sponsorstripe .ad-logo{flex:0;height:20px;max-width:35%;max-height:inherit}.advertory-abo-ad-native-sponsorstripe .ad-title{margin-right:10px;padding-left:34px;font-size:13px;color:#fff}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper{display:grid;position:absolute;place-content:center;height:30px;min-width:30px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{display:inline-block;height:20px;width:20px;position:relative;border:solid 1px #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{content:"i";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:13px}.advertory-abo-ad-native-sponsorstripe .ad-description{font-size:13px;color:#fff;position:absolute;top:0;max-width:980px;min-height:30px;padding:15px 35px 15px 15px;margin-left:-15px;background-color:rgba(0,0,0,.9)}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper{position:absolute;top:15px;right:15px;place-content:center;height:16px;min-width:16px}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button{display:inline-block;height:16px;width:16px;position:relative;border:1px solid #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button:before{content:"✕";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:10px;font-weight:bold}.advertory-abo-ad-native-sponsorstripe .ad-description .ad-description-readmore{color:#c7ecff}.advertory-abo-ad-native-sponsorstripe .ad-description.hide{display:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-sponsorstripe .ad-wrapper{height:50px}.advertory-abo-ad-native-sponsorstripe .ad-wrapper .ad-description{min-height:50px}.advertory-abo-ad-native-sponsorstripe .ad-logo{height:40px}.advertory-abo-ad-native-sponsorstripe .ad-title{font-size:20px;padding-left:40px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{height:30px;width:30px;border-width:2px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{font-size:20px}}');const Da={NATIVE_SEAMLESS:({containerId:e,url:t,adText:n,img:o,cta:i,description:r,logo:a,sponsoredBy:d,title:s,feedUrl:l})=>(import("./styles-Bk2LqxJH.js"),`<article class="advertory-shared-ad-native-seamless">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank" data-product-link>\n <div class="ad-content">\n <div class="ad-header">\n ${a&&`<img alt="${d}" class="ad-logo" src="${a}" loading="lazy" />`}\n <div class="ad-annons">${n}</div>\n </div>\n ${(({img:e,title:t,feedUrl:n})=>n?'<div class="ad-carousel">\n <div class="carousel-window" data-carousel-viewport>\n <div class="carousel-track" data-carousel-track></div>\n </div>\n </div>':`<div class="ad-image-container">\n <img alt="${t}" class="ad-image" src="${e}" loading="lazy">\n </div>`)({img:o,title:s,feedUrl:l})}\n <div class="ad-footer">\n <div class="ad-row">\n <div class="ad-text-wrapper">\n <div class="ad-description" data-product-description>${r}</div>\n <h2 class="ad-headline" data-product-title>${s}</h2>\n </div>\n <div class="ad-purchase">\n <span class="ad-price" data-product-price></span>\n <div class="ad-action">${i}</div>\n </div>\n </div>\n </div>\n </div>\n </a>\n </article>`),VIDEO:(e,t)=>{return import("./styles-CaOTkmnD.js"),(n=Ma,(e,t,o)=>{const{video:i,img:r,url:a}=e,{publisher:d,productTag:s}=t,{pluginsNames:l,videoLoop:c}=o||{};if(!(null==i?void 0:i.content))return null;const p=Math.ceil(1e5*Math.random()),u=r||"https://custom.inventory.schibsted.io/1x1-00000000.png",v=`ad-player-${p}`,g=Ra(i.content,a),h=Fa({id:p,nodeId:v,poster:u,tagURL:g,publisher:d,productTag:s,videoLoop:c});return _a({playerConfig:h,clickUrl:a,pluginsNames:l}),`${n(e,t,v)}`})(e,t);var n}},Ba={displayTemplates:{default:La.default,seamless:Da.NATIVE_SEAMLESS},videoTemplates:{default:Da.VIDEO}};pt(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:auto}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const za=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),t("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:[e("span",{id:"advertory-splash-close-label"}),e("svg",{id:"advertory-splash-close-image",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e("path",{d:"M6 3l5 5-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})});var Ua="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",Ha="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";pt(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const Va=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:Ua,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:Ha,width:"54",height:"54"})]}),{})]});pt(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const Wa=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:Ua,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:Ha,width:"54",height:"54"})]}),{})]});pt(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:auto}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const Ka=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(za,{}),e(Va,{}),e(Wa,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),Ga={prepareTag:e=>{var t;const{keywords:n,targetId:o,invCode:i,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=I.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=I.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(i,l),p=(e=>{const{pageContext:{countryCode:t}}=I.get(),{keywords:n,dynamicSizeWidthCheck:o}=e,i=`${X(t)}-adformat`,r=n?n[i]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Oe)||window.innerWidth>=Oe[e]);return{[i]:o?a:r}})(e),u=(e=>{const{pageContext:{countryCode:t}}=I.get(),n=`${X(t)}-targetid`;return e?{[n]:[e]}:{}})(o),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=ya(),h=(e=>fa(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),m=((e,t)=>fa(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),y=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new wa).add(null!=n?n:{}).add(p).add(u).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${X(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>d(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=I.get();return yield t===F.SE?ja(e):ka(e)}),siteEvents:o,initNativeAd:(e,t)=>{var n,o,r;if(null===(o=null===(n=null==t?void 0:t.editory)||void 0===n?void 0:n.adNativeBuilder)||void 0===o?void 0:o.enabled)return void Ur(e,t);const{targetId:a}=e;if(!document.querySelector(`#${a}`))return;const{pageType:d=Na.FRONT,deviceType:s}=null!==(r=null==t?void 0:t.pageContext)&&void 0!==r?r:{},{nativeTrackingConfig:l,appearanceConfig:c}=null!=t?t:{},p={language:F.SE,publisher:i.KOKET,deviceType:s,pageType:d,nativeTrackingConfig:l,appearanceConfig:c};ha(e,p,Ba)}},Ja=((e,t,n)=>({init:o=>{return i=Object.assign(Object.assign({},o),{siteSpecificConfig:t}),r=e,a=n,d(void 0,void 0,void 0,function*(){y(`Received configuration passed to Advertory: ${JSON.stringify(i)}`),yield ca(i,r,a)});var i,r,a},update:la,renderNativeAd:ea,getVideoPPIDs:Ie,createInitNativeAd:ma,getVideoAdsConfig:$i}))(Ga,r,ko);export{zi as A,Xe as B,F as C,vt as D,et as E,It as F,sn as G,Pe as H,ft as I,je as J,fi as K,bi as L,wi as M,i as N,ln as O,Na as P,He as Q,Zn as R,Te as S,Mt as T,Ja as U,Ka as V,d as _,Ee as a,En as b,I as c,a as d,Ho as e,Bi as f,cn as g,z as h,pt as i,Ce as j,Gr as k,y as l,Jr as m,Kr as n,ee as o,Sn as p,Se as q,yo as r,Do as s,Ot as t,Mo as u,Qt as v,en as w,Jt as x,Xt as y,Zt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,F as t,f as r,A as s,G as n,H as a,I as i,J as o}from"./_auto-entry_koket-
|
|
1
|
+
import{c as e,F as t,f as r,A as s,G as n,H as a,I as i,J as o}from"./_auto-entry_koket-BX9WzHD2.js";import"react/jsx-runtime";const l=(a,i)=>{const{siteSpecificConfig:{publisherClassName:o}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${a}`);if(!c)return;if(c.classList.add(t),!o)return;r(o,c,s.FINN_BLINK,null!=i?i:l);n({preferredTestIdData:{targetId:a,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();a(t)&&i(t,r),o(t)&&(null==s||s(t,e.get()))},u=t=>{const{pageContext:{publisher:r=""}}=e.get(),s=document.querySelector(`#${t}`);if(!s)return;const n=`-${r}`;s.classList.remove(`advertory${n}-finn-blink`),s.classList.remove(`advertory${n}-finn-blink-wrapper`)};export{c as displaySpecialFormatsForFinnFallback,l as finnBlinkLoaded,u as xandrAdLoaded};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,C as t,l as n,o as a,P as r,p as i,q as l,h as s,N as o}from"./_auto-entry_koket-COl6qOAL.js";import{jsxs as d,jsx as c}from"react/jsx-runtime";class u{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class p{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(d=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===d||d.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class v extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:d,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:d},page:{"@id":null!=p?p:c,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const h=/^glci_/,m="gender_",y="geo_",f="male",k="female";class b extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:a="",clientName:r="",creativeId:i="",link:l=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:o}=this.getPlacementData(e),d={publicUrl:l,urlPath:l?new URL(l).pathname:""},{publicUrl:c,urlPath:u}=l&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,l))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:s,primaryPosition:o},tags:[r,a,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":i,pageTitle:a,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const w="[data-k5a-teaser-analytics]",I=(e,n,a,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const l=new(r===t.SE?b:v)(e,n,a),s=new WeakMap,o=e=>{const t=s.get(e);t&&(t.disconnect(),s.delete(e))},d=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(w);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(l.trackContentView(n),t.unobserve(e.target),o(n)):((e,t)=>{if(s.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(w);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(l.trackContentView(e),t.unobserve(e),o(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),s.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{d.observe(e),e.addEventListener("click",()=>l.trackContentClick(e))})};class P{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return e(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return n("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return e(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const E=()=>e(void 0,void 0,void 0,function*(){try{const n=yield(t=500,e(void 0,void 0,void 0,function*(){return Promise.race([e(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(e=>setTimeout(()=>e(void 0),t))])})),a=new P(n),r=yield a.getIdentityUser(),{gender:i}=null!=r?r:{};return i===f||i===k?`${m}${i}`:void 0}catch(e){return}var t}),T=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),n=(()=>{const e=a().map(e=>`${y}${e.replace(h,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class U{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class L{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class D{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class K{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:a}}){if(!(null==e?void 0:e.instance))return;const r={[o.VG]:new u,[o.E24]:new U,"no-aftenposten":new S,[o.BT]:new L,"no-bergenstidende":new L,[o.SA]:new A,"no-stavangeraftenblad":new A,[o.SVD]:new C,[o.AFTONBLADET]:new D}[n]||new p;I(e.instance,r,t,a)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield T();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const a=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(n(`Kilkaya event for slot: ${a}`),!a)return void n("Kilkaya slot empty, Xandr backfill won't be loaded");const r=a.parentElement;r?(n(`Kilkaya placement ${a.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):n("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="flex";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";i(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield l(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const o=yield s(a,r,i,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t)})}}const O=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[c("div",{className:"inscreen-target"}),c("k5a-stream",{name:e,"slot-tag":t}),c("div",{className:"container"}),c("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},j=t=>e(void 0,void 0,void 0,function*(){const e=new K;yield e.run(t)});export{O as Kilkaya,j as runKilkaya};
|
|
1
|
+
import{_ as e,C as t,l as n,o as a,P as r,p as i,q as l,h as s,N as o}from"./_auto-entry_koket-BX9WzHD2.js";import{jsxs as d,jsx as c}from"react/jsx-runtime";class u{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class p{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class g{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:a}=this.parseKilkayaData(e);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l,s,o,d;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(e=this.parseKilkayaData(t))||void 0===e?void 0:e.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(t,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(r=null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)||void 0===r||r.call(a,u):(null===(i=this.pulse)||void 0===i?void 0:i.trackViewUIElement)?null===(s=null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)||void 0===s||s.call(l,u):null===(d=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===d||d.call(o,u)})}trackContentClick(t){return e(this,void 0,void 0,function*(){var e,n,a,r,i,l;if(!this.pulse)return;const s=this.getEventInput(t,"click");this.pulse.trackLegacyClickUIElement?null===(n=(e=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(e,s):this.pulse.trackClickUIElement?null===(r=(a=this.pulse).trackClickUIElement)||void 0===r||r.call(a,s):null===(l=(i=this.pulse).trackElementClick)||void 0===l||l.call(i,s)})}}class v extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,a,r,i,l;const{clientName:s,creativeId:o,itemId:d,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(r=null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===a?void 0:a.call(n))&&void 0!==r?r:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:d},page:{"@id":null!=p?p:c,"@type":u,url:location.origin},tags:null===(l=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getTags)||void 0===l?void 0:l.call(i,e)}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const h=/^glci_/,m="gender_",y="geo_",f="male",k="female";class b extends g{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getPlacementData(e){var t;const n=e.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0}}getEventBaseData(e){var t,n;const{title:a="",clientName:r="",creativeId:i="",link:l=""}=this.parseKilkayaData(e),{columnName:s,primaryPosition:o}=this.getPlacementData(e),d={publicUrl:l,urlPath:l?new URL(l).pathname:""},{publicUrl:c,urlPath:u}=l&&(null===(n=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===n?void 0:n.call(t,l))||d;return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:s,primaryPosition:o},tags:[r,a,c,u].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:r,"spt:creativeId":i,pageTitle:a,publicUrl:c,urlPath:u},url:location.origin}}getEventTarget(e){const{link:t,itemId:n,title:a}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}getEventInput(e){return{object:this.getEventBaseData(e),target:this.getEventTarget(e)}}}const w="[data-k5a-teaser-analytics]",I=(e,n,a,r)=>{const i=document.querySelectorAll("k5a-stream");if(!i.length)return;const l=new(r===t.SE?b:v)(e,n,a),s=new WeakMap,o=e=>{const t=s.get(e);t&&(t.disconnect(),s.delete(e))},d=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,a=n.querySelector(w);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)?(l.trackContentView(n),t.unobserve(e.target),o(n)):((e,t)=>{if(s.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(w);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(l.trackContentView(e),t.unobserve(e),o(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),s.set(e,n)})(n,t)})},{threshold:.5});i.forEach(e=>{d.observe(e),e.addEventListener("click",()=>l.trackContentClick(e))})};class P{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return e(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return n("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return e(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const E=()=>e(void 0,void 0,void 0,function*(){try{const n=yield(t=500,e(void 0,void 0,void 0,function*(){return Promise.race([e(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(e=>setTimeout(()=>e(void 0),t))])})),a=new P(n),r=yield a.getIdentityUser(),{gender:i}=null!=r?r:{};return i===f||i===k?`${m}${i}`:void 0}catch(e){return}var t}),T=()=>e(void 0,void 0,void 0,function*(){const e=[],t=yield E(),n=(()=>{const e=a().map(e=>`${y}${e.replace(h,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class U{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class S{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class L{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class A{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class C{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===r.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class D{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class K{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:a}}){if(!(null==e?void 0:e.instance))return;const r={[o.VG]:new u,[o.E24]:new U,"no-aftenposten":new S,[o.BT]:new L,"no-bergenstidende":new L,[o.SA]:new A,"no-stavangeraftenblad":new A,[o.SVD]:new C,[o.AFTONBLADET]:new D}[n]||new p;I(e.instance,r,t,a)}injectKilkayaMeta(t){return e(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield T();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const a=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(n(`Kilkaya event for slot: ${a}`),!a)return void n("Kilkaya slot empty, Xandr backfill won't be loaded");const r=a.parentElement;r?(n(`Kilkaya placement ${a.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(r)):n("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="flex";const a=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";i(a)}loadKilkayaScript(t){return e(this,void 0,void 0,function*(){yield l(t)})}run(t){return e(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:l}=t;if(!(null==l?void 0:l.enabled))return;const o=yield s(a,r,i,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(n=null===(e=l.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t)})}}const O=({placementName:e,slotTag:t,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const l=(e,t)=>{const n={};if(!e)return n;for(const[a,r]of Object.entries(e)){n[t?`${t}-${a}`:a]=String(r)}return n},s=l(r,"data-pulse"),o=l(i,"data");return d("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,o,{children:[c("div",{className:"inscreen-target"}),c("k5a-stream",{name:e,"slot-tag":t}),c("div",{className:"container"}),c("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},j=t=>e(void 0,void 0,void 0,function*(){const e=new K;yield e.run(t)});export{O as Kilkaya,j as runKilkaya};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as e,M as t,O as n,c as r,Q as o,S as i,R as d}from"./_auto-
|
|
1
|
+
import{L as e,M as t,O as n,c as r,Q as o,S as i,R as d}from"./_auto-entry_koket-BX9WzHD2.js";import"react/jsx-runtime";const s=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},l=(e,t=window.screen.width,n,r)=>{const o=s(e,t);if(n&&n(e,o),r)return void r(e);const i=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);i&&(i.style.transform=`scale(${o})`,i.style.transformOrigin="left top")},c=(e,t)=>{if(e&&t)return t/e},a=new Map;a.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),a.set("panorama",{scale:.79,transformOrigin:"center center"}),a.set("outstream",{scale:.79,transformOrigin:"center center"}),a.set("integration",{scale:.79,transformOrigin:"center center"}),a.set("toppanorama",{scale:.8,transformOrigin:"left center"});const u=r=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>e&&(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.clientWidth)<=t))return;var o,i;const d=n(r),s=a.get(d),l=document.querySelector(`#${r.targetId}`);if(!l||!s)return;if(l.style.transformOrigin=s.transformOrigin,l.style.transform=`scale(${s.scale})`,!(null==s?void 0:s.cogwheelAdjust))return;const c=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==l?void 0:l.offsetWidth;c&&"number"==typeof u&&!isNaN(u)&&c.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,s,c,a,u;const{adScaleConfig:f,pageContext:{deviceType:m}}=r.get();if(!(null==f?void 0:f.enabled))return;if(o(e,i.ANY_FULLSCREEN))return;const v=null!==(t=f.adsToBeScaled[m])&&void 0!==t?t:[],g=d(e.targetId.split("-")[0]);if(!v.includes(g))return;const w=null!==(s=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==s?s:0,p=document.getElementById(e.targetId),y=null!==(c=null==p?void 0:p.offsetWidth)&&void 0!==c?c:window.screen.width,h=null!==(u=null===(a=null==p?void 0:p.parentElement)||void 0===a?void 0:a.offsetWidth)&&void 0!==u?u:window.screen.width;l(e,(y<h?y:h)-w)};export{s as calculateScaleFactor,c as getAspectRatio,l as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,K as e,l as n}from"./_auto-entry_koket-
|
|
1
|
+
import{c as t,K as e,l as n}from"./_auto-entry_koket-BX9WzHD2.js";import"react/jsx-runtime";const i=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},l=(n,l,r)=>{var o,a;const d=document.querySelector(`#${n.targetId}`),{siteSpecificConfig:{publisherClassName:s,fullWidthFormatClassName:u}={},fullWidth:c,pageContext:{deviceType:f}}=t.get();if(!d)return null;const p=d.parentElement,m=e(f)||r;if(d.style.width=m?"100vw":"100%",d.style.position="relative",p&&(p.style.width=m?"100vw":"100%",p.style.position="relative"),s&&u){const t=`advertory-${s}-${u}`;d.classList.add(`${t}__${l}`),null==p||p.classList.add(`${t}-wrapper__${l}`)}const v=null===(a=null===(o=null==c?void 0:c.options)||void 0===o?void 0:o.styles)||void 0===a?void 0:a[f],y=(null==c?void 0:c.enabled)&&v;return!y&&p&&m&&(p.style.left="50%",p.style.marginLeft="-50vw"),y&&v.adContainer&&i(d,v.adContainer),y&&v.adContainerWrapper&&p&&i(p,v.adContainerWrapper),d},r=(t,e,i,r,o)=>{var a;const d=l(t,r,o);if(!d)return void n("[Ad full width] adContainer not found");const s=d.querySelector("iframe"),u=null==s?void 0:s.parentElement;if(!s||!u)return void n("[Ad full width] iframe or iframeWrapper not found");const c=parseFloat(window.getComputedStyle(d,"::before").height)||0,f="undefined"!=typeof CSS&&CSS.supports("transform","scale(calc(100vw / 1080px))")?`calc(100vw / ${e}px)`:String((null===(a=null===document||void 0===document?void 0:document.documentElement)||void 0===a?void 0:a.clientWidth)/e);n(`[Ad full width] ratioWidth ${e}, ratioHeight ${i}, adObjWidth: ${t.width}, scaleFactor ${f}`),u.style.transform=`scale(${f})`,u.style.transformOrigin="left top",d.style.height=`calc(100vw / ${e} * ${i} + ${c}px)`},o=n=>{const i=l(n,"fullwidth-ad",!1);if(!i)return;const r=i.querySelector("iframe");if(!r)return;const{deviceType:o}=t.get().pageContext;r.style.width=e(o)?"100vw":"100%",(null==r?void 0:r.parentElement)&&(r.parentElement.style.width=e(o)?"100vw":"100%")},a=t=>{r(t,1080,1920,"ninesixteen-ad",!0)},d=t=>{r(t,1080,1080,"fullsquare-ad",!0)};export{d as applyFullsquareFormat,o as applyFullwidthFormat,a as applyNinesixteenFormat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,c as e,h as o,j as n,C as s}from"./_auto-entry_koket-
|
|
1
|
+
import{_ as t,c as e,h as o,j as n,C as s}from"./_auto-entry_koket-BX9WzHD2.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:c}=e.get(),r=yield o(c,a,d,"norstat");if(!s||a||!r)return;const m=n(d);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e,v as o,D as t,c as r,w as l,_ as s,x as a,y as n,z as c,B as d,E as i}from"./_auto-entry_koket-
|
|
1
|
+
import{T as e,v as o,D as t,c as r,w as l,_ as s,x as a,y as n,z as c,B as d,E as i}from"./_auto-entry_koket-BX9WzHD2.js";import"react/jsx-runtime";const u="#fff",y="#0098da",v=e=>"dark"===e,p=(t,r,l,s)=>{if(!l)return;const a={[e.WELCOME_PAGE]:()=>{const{buttonLabel:e}=o(l,r);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(r.innerText=null!=e?e:"")})},[e.SPLASH]:()=>{const{themeColors:e,logotype:a,buttonLabel:n,showArrowIcon:c}=o(l,r),d=((e,o)=>{var t,r,l,s;if(!e)return;const a=v(o)?e.darkMode:void 0;return{backgroundColor:null!==(r=null!==(t=null==a?void 0:a.backgroundColor)&&void 0!==t?t:e.backgroundColor)&&void 0!==r?r:u,color:null!==(s=null!==(l=null==a?void 0:a.color)&&void 0!==l?l:e.color)&&void 0!==s?s:y}})(e,s),i=((e,o)=>{var t,r;if(!e)return;const l=v(o)?e.darkMode:void 0;return{url:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:e.url,alt:null!==(r=null==l?void 0:l.alt)&&void 0!==r?r:e.alt}})(a,s);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(e=>{const o=t.querySelector(`${e}`);if(o){if("#advertory-splash-close-label"===e&&(o.innerText=null!=n?n:""),".advertory-splash-close"===e&&!c){const e=o.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===e&&d&&(o.style.color=d.color),"#advertory-splash-logotype"===e&&i&&(o.setAttribute("src",i.url),o.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===e&&d&&(o.style.setProperty("background-color",d.backgroundColor,"important"),o.style.color=d.color)}})},[e.TOPSCROLLER]:()=>{const{buttonLabel:e,showArrowIcon:s,showCloseButton:a=!0}=o(l,r);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(o=>{const r=t.querySelector(`${o}`);r&&(".advertory-topscroller-close"!==o||a||(r.style.display="none"),"#advertory-topscroller-scroll-image"!==o||s||(r.style.display="none"),"#advertory-topscroller-scroll-label"===o&&(r.innerText=null!=e?e:""))})},[e.VELVET]:()=>{}};a[r]()},w=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},m=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},g=new WeakMap,b=(e,o,t)=>{var r;window.addEventListener(o,t),g.set(e,[...null!==(r=g.get(e))&&void 0!==r?r:[],()=>window.removeEventListener(o,t)])},h=e=>{document.body.style.overflow=e?"initial":"hidden"},f=e=>{(e=>{var o;null===(o=g.get(e))||void 0===o||o.forEach(e=>e()),g.delete(e)})(e),m(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),h(!0),e.style.display="none"},E=e=>{const o=()=>f(e);return b(e,"advertory:closeTakeover",o),m(),o},L=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&((e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&f(e)};m(),b(e,"keydown",o)})(e),E(e),m(),o.addEventListener("click",()=>{f(e)}),h(!1))},k=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const o=e.getBoundingClientRect().bottom;e.style.opacity=""+o/e.offsetHeight})(e)},{passive:!0})})(e),E(e);const o=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==o?void 0:o.scrollIntoView({behavior:"smooth"})))},S=e=>{(e=>{b(e,"advertory:closeTakeover",()=>f(e))})(e)},T=e=>{const{takeover:{splash:{showAnnonsLabel:o=!1}={}}={}}=r.get(),l=e.querySelectorAll(".advertory-splash-navbar-wrapper"),s=document.querySelector(".advertory-takeover-label");Array.from(l).forEach(e=>e.style.display="flex"),o&&s&&(s.style.display="flex",s.innerText=t.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},x=e=>{const o=document.querySelectorAll(".advertory-topscroller-elements");Array.from(o).forEach(e=>e.style.display="flex");const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.no.adText,r.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},A=e=>{const o=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(o).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const r=document.querySelector(".advertory-takeover-label");r&&(r.style.display="flex",r.innerText=t.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},q=e=>{const o=document.querySelector(".advertory-takeover-label");o&&(o.style.display="flex",o.innerText=t.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},C=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let o=0;new IntersectionObserver(e=>{e.forEach(e=>{var t;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(t=Array.from(e.target.classList))&&void 0!==t?t:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),o++}else o>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},O=(e,o)=>{let t=e;return e.includes("529299503")&&(t=(e=>{const o=document.createElement("script");return o.textContent=`(${l})()`,e+o.outerHTML})(e)),t=i(t),t},P=e=>{const o=(e=>{var o;const{requests:t}=window.apntag,r=d(e)?1:0;return null===(o=null==t?void 0:t.tags[e].adResponse.ads[r].rtb)||void 0===o?void 0:o.banner.content})(e);if(!o)return;((e,o)=>{const{requests:t}=window.apntag,r=d(e)?1:0,l=null==t?void 0:t.tags[e].adResponse.ads[r].rtb;l&&(l.banner.content=o)})(e,O(o))},R=(e,o)=>{var t;const r="100%",l="100%";e.resizeAd(o,[r,l]);const s=null===(t=document.querySelector(`#div_utif_${o}`))||void 0===t?void 0:t.querySelector("iframe");if(!s)return;new MutationObserver(e=>{for(const o of e)if("attributes"===o.type&&"style"===o.attributeName){const e=window.getComputedStyle(s),o=e.width,t=e.height;o===r&&t===l||(s.style.width=r,s.style.height=l)}}).observe(s,{attributes:!0,attributeFilter:["style"]})},M=o=>s(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:l}=r.get(),{targetId:s}=o,d=document.querySelector(`#${s}`),i=document.querySelector(".advertory-takeover-wrapper");if(!d||!i||!t)return;const u=a(o),y=i.offsetHeight,v=window.scrollY>y;i.style.display="block",!v&&w(u,!1),((o,t)=>{({[e.WELCOME_PAGE]:A,[e.SPLASH]:T,[e.TOPSCROLLER]:x,[e.VELVET]:q})[t](o)})(i,u),C(),((o,t)=>{({[e.WELCOME_PAGE]:k,[e.TOPSCROLLER]:k,[e.SPLASH]:L,[e.VELVET]:S})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&w(u,!0),c(o,u)});export{M as createTakeoverAd,P as modifyTakeoverAdContent,R as modifyTakeoverIframe};
|