@schibsted/advertory 3.17.2 → 3.17.3-inv-2796.0
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 +6 -1
- package/ad-native/cjs/index.js +1 -1
- package/ad-native/es/index.d.ts +6 -1
- package/ad-native/es/index.js +1 -1
- package/aftenposten/cjs/index.d.ts +25 -4
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-Ds8cNqYo.js +1 -0
- package/aftenposten/es/{events-TWNxI4to.js → events-CPdcmwCr.js} +1 -1
- package/aftenposten/es/{index-D4KUQKgW.js → index-02slsXRn.js} +1 -1
- package/{aftonbladet/es/index-CmKOZgDC.js → aftenposten/es/index-BY2jO_3i.js} +1 -1
- package/aftenposten/es/{index-ClBTEmsK.js → index-BwS5AGoB.js} +1 -1
- package/aftenposten/es/index-CPFL7hWJ.js +1 -0
- package/aftenposten/es/{index-Bi-KmXsq.js → index-Chmr963Y.js} +1 -1
- package/aftenposten/es/{index-CW8aWYUM.js → index-Di3Fm8bW.js} +1 -1
- package/aftenposten/es/{index-DDy74zBr.js → index-DifRFdNW.js} +1 -1
- package/aftenposten/es/{index-D6_Yj8hd.js → index-fGUcYCNE.js} +1 -1
- package/aftenposten/es/index.d.ts +25 -4
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-DkMBhV77.js → styles-B_o3X--b.js} +1 -1
- package/aftenposten/es/{styles-9XXpEmtJ.js → styles-C4H1xR4H.js} +1 -1
- package/aftenposten/es/{styles-BJGmzwu-.js → styles-CIgARN3I.js} +1 -1
- package/aftenposten/es/{styles-BdYQxTGg.js → styles-CXjuz1DQ.js} +1 -1
- package/aftenposten/es/{styles-D6rFftzW.js → styles-CiJriV0r.js} +1 -1
- package/aftenposten/es/{styles-DCkWdvwe.js → styles-Cjl6cmrX.js} +1 -1
- package/aftenposten/es/{styles-k_PXsj0Z.js → styles-CklY0QS2.js} +1 -1
- package/aftenposten/es/{styles-Bdk3if2-.js → styles-D1k4cmZM.js} +1 -1
- package/aftenposten/es/{styles-BiLaOx_6.js → styles-D2toNeWl.js} +1 -1
- package/aftenposten/es/{styles-DzvbCWwT.js → styles-DJJip96D.js} +1 -1
- package/aftenposten/es/{styles-C1QysWf_.js → styles-DWHJYz-q.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CmvL1lbn.js +1 -0
- package/aftenpostenv2/es/{events-D2-X_tTa.js → events-DKK2cYHA.js} +1 -1
- package/aftenpostenv2/es/{index-BhhwYmyT.js → index-Bnv7nGny.js} +1 -1
- package/aftenpostenv2/es/index-Br116h6q.js +1 -0
- package/aftenpostenv2/es/{index-7kgEBv2Y.js → index-BzMujg0A.js} +1 -1
- package/aftenpostenv2/es/{index-BEBGpvIG.js → index-CCqMf2p0.js} +1 -1
- package/{aftonbladetv2/es/index-ozE-SX9U.js → aftenpostenv2/es/index-CkeZERKJ.js} +1 -1
- package/aftenpostenv2/es/{index-CAMGSuzl.js → index-Dw1Big_e.js} +1 -1
- package/aftenpostenv2/es/{index-DpgFevAU.js → index-GW-0x1lb.js} +1 -1
- package/aftenpostenv2/es/{index-DQZt2yTJ.js → index-k7sg6-f-.js} +1 -1
- package/aftenpostenv2/es/index.d.ts +25 -4
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-pc2s7OL6.js → styles-7Yi6_MSq.js} +1 -1
- package/aftenpostenv2/es/{styles-DS6h0sIy.js → styles-B0eGYARy.js} +1 -1
- package/aftenpostenv2/es/{styles-CoJeTPIw.js → styles-B1xIC595.js} +1 -1
- package/aftenpostenv2/es/{styles-wEK54cl7.js → styles-Bo5k-PH1.js} +1 -1
- package/aftenpostenv2/es/{styles-C6N3zWTD.js → styles-CEvztRod.js} +1 -1
- package/aftenpostenv2/es/{styles-BoI8VgRj.js → styles-CIiw3Ay4.js} +1 -1
- package/aftenpostenv2/es/{styles-w3q_Mv85.js → styles-Dp3RXqfZ.js} +1 -1
- package/aftenpostenv2/es/{styles-Dg240p5Q.js → styles-DrF3L76Z.js} +1 -1
- package/aftenpostenv2/es/{styles-BkXlbu0T.js → styles-JlXRDtJe.js} +1 -1
- package/aftenpostenv2/es/{styles-DST549t3.js → styles-VMuQJPct.js} +1 -1
- package/aftenpostenv2/es/{styles-yw4HnZqd.js → styles-w3Y5nsup.js} +1 -1
- package/aftonbladet/cjs/index.d.ts +25 -4
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-DcgjnMFc.js +1 -0
- package/aftonbladet/es/{events-B24rSciV.js → events-BqKclKPc.js} +1 -1
- package/aftonbladet/es/{index-BOnZW3Aw.js → index-4N9rkR-m.js} +1 -1
- package/aftonbladet/es/{index-Dpm13HRo.js → index-B-M0eq2m.js} +1 -1
- package/{aftenposten/es/index-413au3tT.js → aftonbladet/es/index-BxbvI1nu.js} +1 -1
- package/aftonbladet/es/{index-BSp4bbj2.js → index-C8uhD2IQ.js} +1 -1
- package/aftonbladet/es/{index-DqMYzdr0.js → index-CPRYs-hn.js} +1 -1
- package/aftonbladet/es/{index-BtD2ivGA.js → index-CsuvK-50.js} +1 -1
- package/aftonbladet/es/{index-BVaeigcG.js → index-DvgYwjEJ.js} +1 -1
- package/aftonbladet/es/index-SqHEKvdJ.js +1 -0
- package/aftonbladet/es/index.d.ts +25 -4
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-CpTTQKBP.js → styles-067J-teF.js} +1 -1
- package/aftonbladet/es/{styles-BlCQKx_D.js → styles-CIk9yhDO.js} +1 -1
- package/aftonbladet/es/{styles-D5kEIOBk.js → styles-C_2bmR5Y.js} +1 -1
- package/aftonbladet/es/{styles-CUA0e-Nh.js → styles-Czu9cJpU.js} +1 -1
- package/aftonbladet/es/{styles-B1iB14ox.js → styles-LQqCx4ZX.js} +1 -1
- package/aftonbladet/es/{styles-B3QEpA7g.js → styles-PQkwqxTf.js} +1 -1
- package/aftonbladet/es/{styles-DCS6N5RP.js → styles-V84JvIml.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-BEy7-wN5.js +1 -0
- package/aftonbladetv2/es/{events-BcJ-JmOi.js → events-_WH6_Krs.js} +1 -1
- package/aftonbladetv2/es/{index-B7bwFN2A.js → index-B3LL7CEM.js} +1 -1
- package/aftonbladetv2/es/{index-D8lDaMcl.js → index-B7MhFcrs.js} +1 -1
- package/aftonbladetv2/es/{index-PSeJonhi.js → index-CqrxCIGl.js} +1 -1
- package/aftonbladetv2/es/{index-CVL2dQge.js → index-DRpuaKX0.js} +1 -1
- package/{aftenpostenv2/es/index-ExTFf_Iq.js → aftonbladetv2/es/index-DnNQblf_.js} +1 -1
- package/aftonbladetv2/es/{index--Axj_kEb.js → index-SGD1Yw5z.js} +1 -1
- package/aftonbladetv2/es/{index-DY7Z77dw.js → index-ZGqPkYw6.js} +1 -1
- package/aftonbladetv2/es/index-lmb1G9rR.js +1 -0
- package/aftonbladetv2/es/index.d.ts +25 -4
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-q_NZgp-i.js → styles-BXgO0TxT.js} +1 -1
- package/aftonbladetv2/es/{styles-Chid9PzN.js → styles-BhwotrMZ.js} +1 -1
- package/aftonbladetv2/es/{styles-DkLXxApC.js → styles-CMV1u-bz.js} +1 -1
- package/aftonbladetv2/es/{styles-BPL9WBWt.js → styles-CjjPdBGQ.js} +1 -1
- package/aftonbladetv2/es/{styles-CTL3ZpGF.js → styles-D7hiBnxX.js} +1 -1
- package/aftonbladetv2/es/{styles-Z71vuQGT.js → styles-PM2QDYU3.js} +1 -1
- package/aftonbladetv2/es/{styles-DGtyZUEq.js → styles-yKSCIdPT.js} +1 -1
- package/brandmetrics/cjs/index.js +1 -1
- package/brandmetrics/es/index.js +1 -1
- package/bt/cjs/index.d.ts +25 -4
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-Bwq67IUD.js +1 -0
- package/bt/es/{events-y2UgrLCs.js → events-CXWtuSdg.js} +1 -1
- package/bt/es/{index-CY-uJsn1.js → index-BV702J7R.js} +1 -1
- package/bt/es/{index-DLMAYp5X.js → index-BpMrI4jI.js} +1 -1
- package/bt/es/index-ByHZzvcc.js +1 -0
- package/{sa/es/index-OANfC5qG.js → bt/es/index-CuXjLICe.js} +1 -1
- package/bt/es/{index-HsdnA2Xk.js → index-D6ZxkQBI.js} +1 -1
- package/bt/es/{index-B8BGk6yA.js → index-DEYiXEL3.js} +1 -1
- package/bt/es/{index-64yqQV_y.js → index-DbIKO5Yf.js} +1 -1
- package/{sa/es/index-CUR2EZv0.js → bt/es/index-DrCbWeUk.js} +1 -1
- package/bt/es/index.d.ts +25 -4
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-iz_7xJ07.js → styles-4SHhbdgb.js} +1 -1
- package/bt/es/{styles-C1DRXDqr.js → styles-BmoPCDm6.js} +1 -1
- package/{sa/es/styles-CA2Kx-8R.js → bt/es/styles-CApdS7k8.js} +1 -1
- package/bt/es/{styles-DMudUCQt.js → styles-CLAxbSqD.js} +1 -1
- package/bt/es/{styles-Dx6UBH7z.js → styles-CqZf0Ni5.js} +1 -1
- package/bt/es/{styles-DNnNANZp.js → styles-DVfAq7WO.js} +1 -1
- package/bt/es/{styles-BDK8cIRo.js → styles-DqyjCy0K.js} +1 -1
- package/bt/es/{styles-CdNNEYaL.js → styles-Dwi46Ja-.js} +1 -1
- package/{vg/es/styles-C6W-uxHU.js → bt/es/styles-PfNeJbx3.js} +1 -1
- package/bt/es/{styles-DMiL3cEL.js → styles-Z5kS_cmb.js} +1 -1
- package/btv2/es/_auto-entry_btv2-D68vKEfZ.js +1 -0
- package/{sav2/es/events-DyYIRoxN.js → btv2/es/events-NhqE6YjF.js} +1 -1
- package/btv2/es/index-BNHVmkea.js +1 -0
- package/{omni/es/index-BmkNPspV.js → btv2/es/index-BVk-4m90.js} +1 -1
- package/{sav2/es/index-D68X7wEU.js → btv2/es/index-C0CuDqXj.js} +1 -1
- package/btv2/es/{index-DPqPFbQL.js → index-CLCrCkis.js} +1 -1
- package/btv2/es/{index-CHwjkS6r.js → index-DH1Td-u6.js} +1 -1
- package/btv2/es/{index-9UIElfbk.js → index-DYkzWEox.js} +1 -1
- package/btv2/es/{index-D2m0YyxL.js → index-Doeb93Zo.js} +1 -1
- package/btv2/es/{index-BQOUfUqI.js → index-tSHQXHkb.js} +1 -1
- package/btv2/es/index.d.ts +25 -4
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-CpFp63If.js → styles-7d9AKrmQ.js} +1 -1
- package/btv2/es/{styles-BLC8ggjb.js → styles-BHobiBk4.js} +1 -1
- package/{sav2/es/styles-DvEpZ-z0.js → btv2/es/styles-BqRo18hF.js} +1 -1
- package/btv2/es/{styles-DW6SEFkC.js → styles-BsAlkvnI.js} +1 -1
- package/btv2/es/{styles-DZhqkoyQ.js → styles-DBmDdR1k.js} +1 -1
- package/btv2/es/{styles-B2Igxtin.js → styles-DClaKMJb.js} +1 -1
- package/{sav2/es/styles-DdGmWcED.js → btv2/es/styles-I1VaC1RM.js} +1 -1
- package/{sav2/es/styles-DxDpEnDs.js → btv2/es/styles-PegAUJ4J.js} +1 -1
- package/{sav2/es/styles-BGSeVp8P.js → btv2/es/styles-gxNp7QtR.js} +1 -1
- package/common/cjs/index.js +1 -1
- package/common/es/index.js +1 -1
- package/e24/es/_auto-entry_e24-CiaCyj8Y.js +1 -0
- package/e24/es/{events-DYuVZK1d.js → events-CE0Jo91V.js} +1 -1
- package/e24/es/{index-C5VIZpYO.js → index-BnaiwvPQ.js} +1 -1
- package/e24/es/{index-5-riUpJq.js → index-C-h6be7t.js} +1 -1
- package/e24/es/{index-DlAHU4eb.js → index-CLLdnLnZ.js} +1 -1
- package/e24/es/{index-S0mJGul7.js → index-DWnZT-mn.js} +1 -1
- package/e24/es/{index-CX2lGGt-.js → index-D_jRyLWB.js} +1 -1
- package/e24/es/{index-DxFUGs92.js → index-DyKsGsmI.js} +1 -1
- package/e24/es/{index-BYwrWPXy.js → index-jLiSixh3.js} +1 -1
- package/e24/es/index-qakHLPvO.js +1 -0
- package/e24/es/index.d.ts +25 -4
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-DCLVSFrt.js → styles-B5PhYjze.js} +1 -1
- package/e24/es/{styles-DF_OO1b7.js → styles-BJWSMQtQ.js} +1 -1
- package/e24/es/{styles-1rPwY1JA.js → styles-BnTUsnr-.js} +1 -1
- package/{tv4/es/styles-BoJDjtkB.js → e24/es/styles-BneqqRyC.js} +1 -1
- package/e24/es/{styles-DNB8kFou.js → styles-BpBJIGpX.js} +1 -1
- package/e24/es/{styles-BvWKfJPl.js → styles-Bu8icqw0.js} +1 -1
- package/e24/es/{styles-BK4Wtt6t.js → styles-CiSl5Z7i.js} +1 -1
- package/e24/es/{styles-DyqVm7OX.js → styles-D7Z06qrc.js} +1 -1
- package/e24/es/{styles-Ckge3z56.js → styles-DLl4XCz8.js} +1 -1
- package/e24/es/{styles-GT_CDGYR.js → styles-DtBS-_JD.js} +1 -1
- package/e24/es/{styles-BFM1W3Aw.js → styles-VtVg121G.js} +1 -1
- package/e24/es/{styles-CCw-MaHN.js → styles-oFRZS45s.js} +1 -1
- package/editory/cjs/index.d.ts +6 -1
- package/editory/es/index.d.ts +6 -1
- package/fotbollskanalen/cjs/index.d.ts +25 -4
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DQJ4MzUm.js +1 -0
- package/fotbollskanalen/es/{events-DBTPm2vd.js → events-B9E1uC_s.js} +1 -1
- package/fotbollskanalen/es/index-20pT8inY.js +1 -0
- package/fotbollskanalen/es/{index-1Z407iH2.js → index-Ba-n3Jf-.js} +1 -1
- package/fotbollskanalen/es/{index-Cs8K1Rqh.js → index-Db8xdPEB.js} +1 -1
- package/fotbollskanalen/es/{index-BSdqxtEG.js → index-Qt-OnbBN.js} +1 -1
- package/fotbollskanalen/es/{index-nr7d2jKv.js → index-ZINhlydX.js} +1 -1
- package/fotbollskanalen/es/{index-fym6FCW1.js → index-pmjo2aig.js} +1 -1
- package/fotbollskanalen/es/{index-BH-c3BJS.js → index-tMOATVvt.js} +1 -1
- package/fotbollskanalen/es/{index-C5a8CZdr.js → index-uwAHSiFZ.js} +1 -1
- package/fotbollskanalen/es/index.d.ts +25 -4
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-BsQmpCle.js → styles-0B0zxPAl.js} +1 -1
- package/fotbollskanalen/es/{styles-rZ7wn8e-.js → styles-Ckqnv5h-.js} +1 -1
- package/fotbollskanalen/es/{styles-Df6v8rQb.js → styles-DHLbUiXk.js} +1 -1
- package/fotbollskanalen/es/{styles-DMP8-ZV6.js → styles-Dgqkya3C.js} +1 -1
- package/fotbollskanalen/es/{styles-CMSwd-cn.js → styles-pSMTmJJg.js} +1 -1
- package/glimr/cjs/index.js +1 -1
- package/glimr/es/index.js +1 -1
- package/godt/cjs/index.d.ts +25 -4
- package/godt/cjs/index.js +1 -1
- package/kilkaya/cjs/index.d.ts +6 -1
- package/kilkaya/cjs/index.js +1 -1
- package/kilkaya/es/index.d.ts +6 -1
- package/kilkaya/es/index.js +1 -1
- package/klart/cjs/index.d.ts +25 -4
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.d.ts +25 -4
- package/koket/cjs/index.js +1 -1
- package/koket/es/_auto-entry_koket-D0BNGAEl.js +1 -0
- package/koket/es/{events-CGDhgKWT.js → events-C8elx-0g.js} +1 -1
- package/koket/es/{index-CEkpIq5n.js → index-BF16eze_.js} +1 -1
- package/koket/es/{index-D5UA7fY7.js → index-BHia_771.js} +1 -1
- package/koket/es/index-BJnEOyeV.js +1 -0
- package/koket/es/{index-DqHliJAq.js → index-BQTDHSgt.js} +1 -1
- package/koket/es/{index-CGGU-BuS.js → index-CGFWlNnq.js} +1 -1
- package/{svdv2/es/index-C2G_GmGb.js → koket/es/index-D1lfTrrK.js} +1 -1
- package/koket/es/{index-DxNyy37z.js → index-DgW3023C.js} +1 -1
- package/koket/es/{index-BuKzvzt7.js → index-vzFXhYXk.js} +1 -1
- package/koket/es/index.d.ts +25 -4
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-5tZp9yTR.js → styles-BL36yBDG.js} +1 -1
- package/{svdv2/es/styles-C3isjnpF.js → koket/es/styles-CIYY9jOX.js} +1 -1
- package/koket/es/{styles-qi6cffR5.js → styles-Cd7CWPBN.js} +1 -1
- package/{svdv2/es/styles-DCXkP6kx.js → koket/es/styles-CxQTWfWP.js} +1 -1
- package/koket/es/{styles-h_G-qm7j.js → styles-DCejA25y.js} +1 -1
- package/minmote/cjs/index.d.ts +25 -4
- package/minmote/cjs/index.js +1 -1
- package/mtv/es/_auto-entry_mtv-C6v-4gAO.js +1 -0
- package/mtv/es/index-7jTguWod.js +1 -0
- package/mtv/es/{index-fCJM11YZ.js → index-Be4wUqMv.js} +1 -1
- package/mtv/es/index-C-ef_-ej.js +1 -0
- package/mtv/es/{index-SkYMOZBq.js → index-bEHwaRVo.js} +1 -1
- package/mtv/es/index.d.ts +27 -6
- package/mtv/es/index.js +1 -1
- package/mtv/es/{styles-DwgOS0V0.js → styles-ZTFo0spB.js} +1 -1
- package/omni/es/_auto-entry_omni-C6uQL09Q.js +1 -0
- package/omni/es/{events-Cd84HHgJ.js → events-dtI_CFVN.js} +1 -1
- package/omni/es/index-B6qhtfsv.js +1 -0
- package/omni/es/{index-Df0qCA3E.js → index-B6r4P-fF.js} +1 -1
- package/omni/es/{index-w2egIre_.js → index-BeBpQoPN.js} +1 -1
- package/omni/es/{index-CHiNj_3w.js → index-C08apncl.js} +1 -1
- package/omni/es/{index-DC2lG49K.js → index-CCfFj3yg.js} +1 -1
- package/{btv2/es/index-DfTW7_Rp.js → omni/es/index-Cq7J_ppL.js} +1 -1
- package/omni/es/{index-Nylcwumh.js → index-DTFX9Az9.js} +1 -1
- package/omni/es/{index-CQKaIWe_.js → index-TuJy31qY.js} +1 -1
- package/omni/es/index.d.ts +25 -4
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-BYzexKAk.js → styles-BGJxbW7y.js} +1 -1
- package/omni/es/{styles-C5J6UYw1.js → styles-Bxh6hWXj.js} +1 -1
- package/omni/es/{styles-D6yW07yS.js → styles-D5WJet9y.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.d.ts +25 -4
- package/pent/cjs/index.js +1 -1
- package/pulse/cjs/index.d.ts +8 -3
- package/pulse/cjs/index.js +1 -1
- package/pulse/es/index.d.ts +8 -3
- package/pulse/es/index.js +1 -1
- package/sa/cjs/index.d.ts +25 -4
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-FOl5JX9b.js +1 -0
- package/sa/es/{events-Dy1zgzdi.js → events-DMSd42_-.js} +1 -1
- package/sa/es/{index-DtrmucR8.js → index-B7dZhBOj.js} +1 -1
- package/{bt/es/index-DT1gmmKp.js → sa/es/index-Bx7UQ35a.js} +1 -1
- package/sa/es/index-ClBdyNsR.js +1 -0
- package/{bt/es/index-Y_ycciUS.js → sa/es/index-CsN5MW0q.js} +1 -1
- package/sa/es/{index-DjpAq_M-.js → index-DdXoO5fa.js} +1 -1
- package/sa/es/{index-bLzKiBuA.js → index-KIc9WQH7.js} +1 -1
- package/sa/es/{index-Blf084NB.js → index-UQ893xOp.js} +1 -1
- package/sa/es/{index-DDVxz7K7.js → index-WI2-5JDV.js} +1 -1
- package/sa/es/index.d.ts +25 -4
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-Dg4aBMq3.js → styles-B8BDRtAg.js} +1 -1
- package/sa/es/{styles-Cyq_QVa6.js → styles-BGZxabVU.js} +1 -1
- package/sa/es/{styles-B5iBDr4D.js → styles-Bmqp_4oP.js} +1 -1
- package/sa/es/{styles-CBVGhV_0.js → styles-BqBmel5r.js} +1 -1
- package/sa/es/{styles-CXVmmu1_.js → styles-BuMd7wJZ.js} +1 -1
- package/sa/es/{styles-lvoNZzz6.js → styles-C0tVO40w.js} +1 -1
- package/{vg/es/styles-DdRXpd-l.js → sa/es/styles-C7IpjXac.js} +1 -1
- package/{vg/es/styles-C2XKknnc.js → sa/es/styles-CPKWnnjT.js} +1 -1
- package/sa/es/{styles-BFonXJLD.js → styles-DnmdiTlf.js} +1 -1
- package/sa/es/{styles-BCA6CCVu.js → styles-DxRLlq8_.js} +1 -1
- package/sav2/es/_auto-entry_sav2-MvOaKwHM.js +1 -0
- package/{tvnu/es/events-BEvMEgZn.js → sav2/es/events-BV5x5p_A.js} +1 -1
- package/{tvnu/es/index-Dw60Sfah.js → sav2/es/index-BSgTbeC1.js} +1 -1
- package/sav2/es/{index-nS-sZflp.js → index-BefdMm74.js} +1 -1
- package/sav2/es/{index-Blv4GiEP.js → index-BhsJ5rNK.js} +1 -1
- package/sav2/es/{index-vNePTBVO.js → index-CDgRmGjZ.js} +1 -1
- package/sav2/es/{index-f6UbI2UT.js → index-Crf4ie2P.js} +1 -1
- package/sav2/es/{index-CZncTx2C.js → index-D2Tw3QhL.js} +1 -1
- package/{tvnu/es/index-u1YueAMx.js → sav2/es/index-H75gMrq6.js} +1 -1
- package/sav2/es/index-msih7Z2T.js +1 -0
- package/sav2/es/index.d.ts +25 -4
- package/sav2/es/index.js +1 -1
- package/sav2/es/{styles-2YutrlNN.js → styles-4RT9ut-s.js} +1 -1
- package/sav2/es/{styles-iY7NOVnb.js → styles-BFdAH8Rx.js} +1 -1
- package/sav2/es/{styles-DQyQF-kq.js → styles-BklehtA7.js} +1 -1
- package/{vgv2/es/styles-CB79ES-f.js → sav2/es/styles-CLR34xyU.js} +1 -1
- package/{btv2/es/styles-VylNvuVY.js → sav2/es/styles-Co9d2ty9.js} +1 -1
- package/{btv2/es/styles-CQ83NXH1.js → sav2/es/styles-DFyscjiI.js} +1 -1
- package/{vgv2/es/styles-chG7ew5W.js → sav2/es/styles-DK6Edg_O.js} +1 -1
- package/sav2/es/{styles-mrycupoK.js → styles-Dpqw2Yi_.js} +1 -1
- package/{vgv2/es/styles-DWK1cSbz.js → sav2/es/styles-Dz7iyaQ7.js} +1 -1
- package/svd/cjs/index.d.ts +25 -4
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-BISuJA_O.js +1 -0
- package/svd/es/{events-CeknbVJz.js → events-Cg1Z959q.js} +1 -1
- package/svd/es/{index-C6Cqh76D.js → index-B3l4rzy_.js} +1 -1
- package/{tv4/es/index-BFKV0bna.js → svd/es/index-BTss05qr.js} +1 -1
- package/svd/es/{index-BoQu6wIh.js → index-CUCfxapG.js} +1 -1
- package/svd/es/{index-Caynhz0-.js → index-CaXNOm-T.js} +1 -1
- package/svd/es/{index-BUmxcYHK.js → index-CdZursq2.js} +1 -1
- package/svd/es/{index-B5hcY3e7.js → index-Cy4f12dm.js} +1 -1
- package/svd/es/{index-NW8Thjb0.js → index-D2aZ3Euk.js} +1 -1
- package/svd/es/index-d5qKAixK.js +1 -0
- package/svd/es/index.d.ts +25 -4
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-D7iMK6R-.js → styles-BKaE5-YG.js} +1 -1
- package/svd/es/{styles-CK_Kqb7j.js → styles-DV6YyZBO.js} +1 -1
- package/svd/es/{styles-Dnnkp2Js.js → styles-FXoqmEKB.js} +1 -1
- package/svd/es/{styles-ejjuPfQv.js → styles-ZBuFkm3q.js} +1 -1
- package/svd/es/{styles-DN8VgCSE.js → styles-_sJdcGwo.js} +1 -1
- package/svd/es/{styles-TnyYcf_K.js → styles-aypaiEMr.js} +1 -1
- package/svd/es/{styles-3MZKD1yf.js → styles-m_yMp8yU.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-B61ZLpzM.js +1 -0
- package/svdv2/es/{events-BsnvMA_d.js → events-C7cIGE17.js} +1 -1
- package/svdv2/es/{index-DukZ5KwG.js → index-ACSWVWA8.js} +1 -1
- package/svdv2/es/{index-DOVc8sPh.js → index-BH00_sXO.js} +1 -1
- package/svdv2/es/{index-Cmb9cyi_.js → index-C3XiwLwk.js} +1 -1
- package/svdv2/es/{index-UspxBOzg.js → index-CAB-TLnu.js} +1 -1
- package/svdv2/es/{index-YfOyNnzq.js → index-DAw4Yz0R.js} +1 -1
- package/svdv2/es/index-DWwoU3eS.js +1 -0
- package/svdv2/es/{index-kPkkxWgx.js → index-pwrsb82E.js} +1 -1
- package/{koket/es/index-CBAWQ2bO.js → svdv2/es/index-xLdHfQTv.js} +1 -1
- package/svdv2/es/index.d.ts +25 -4
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-BBZ0jnjD.js → styles-2KLZrRLg.js} +1 -1
- package/svdv2/es/{styles-CzNruk16.js → styles-B3x0sCPB.js} +1 -1
- package/svdv2/es/{styles-C9fgA72C.js → styles-B6xKjqAt.js} +1 -1
- package/svdv2/es/{styles-BKg3D8q6.js → styles-B7BT7RKV.js} +1 -1
- package/{koket/es/styles-Cb3sG_iL.js → svdv2/es/styles-BE-iepbD.js} +1 -1
- package/svdv2/es/{styles-Caau42vL.js → styles-SELEokyV.js} +1 -1
- package/svdv2/es/{styles-CwaGlRPm.js → styles-mDkZ7BJ7.js} +1 -1
- package/{koket/es/styles-Uc2sAu96.js → svdv2/es/styles-yYbG6KP6.js} +1 -1
- package/tek/cjs/index.d.ts +25 -4
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.d.ts +25 -4
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-QFnOvxz_.js +1 -0
- package/{mtv/es/events-DrwOr2mO.js → tv4/es/events-BM-pcue8.js} +1 -1
- package/tv4/es/{index-CHGqBUmY.js → index-BRk-HQWc.js} +1 -1
- package/{svd/es/index-53leQeD5.js → tv4/es/index-Bno5O8Dz.js} +1 -1
- package/tv4/es/index-BzvJlMBK.js +1 -0
- package/tv4/es/{index-D2y2_oOf.js → index-CGTUArDJ.js} +1 -1
- package/tv4/es/{index-hiFVXdU9.js → index-CeUGtbee.js} +1 -1
- package/tv4/es/{index-BvDpKJ7b.js → index-Cf9MaXt8.js} +1 -1
- package/tv4/es/{index-DVK4E_Yk.js → index-DxeDoSN2.js} +1 -1
- package/tv4/es/{index-CdoSm60u.js → index-mmbbyNOt.js} +1 -1
- package/tv4/es/index.d.ts +25 -4
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-B8fnfbb0.js → tv4/es/styles-B28jUGNV.js} +1 -1
- package/tv4/es/{styles-UWSm2Yqy.js → styles-BDcU3xM3.js} +1 -1
- package/tv4/es/{styles-JomwBXHX.js → styles-D2XUz3_5.js} +1 -1
- package/tv4/es/{styles-BCxLuhZQ.js → styles-D4sOd8Ci.js} +1 -1
- package/tv4/es/{styles-DBu4cV0b.js → styles-DF2vbwNX.js} +1 -1
- package/tvnu/cjs/index.d.ts +25 -4
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/_auto-entry_tvnu-DBPwskqR.js +1 -0
- package/{btv2/es/events-2-po856p.js → tvnu/es/events-Z-3LCRcN.js} +1 -1
- package/{btv2/es/index-dF-wL2Ue.js → tvnu/es/index-BeudnL9o.js} +1 -1
- package/tvnu/es/{index-Dx5kcPSM.js → index-CHtt_a1m.js} +1 -1
- package/{sav2/es/index-DgSOSNcf.js → tvnu/es/index-CPBuaAMt.js} +1 -1
- package/tvnu/es/{index-DyyzdbeF.js → index-CfRPMux8.js} +1 -1
- package/tvnu/es/{index-DqQxCI7E.js → index-DHcWnr4f.js} +1 -1
- package/tvnu/es/{index-TnVozZ6U.js → index-DTuLVwj7.js} +1 -1
- package/tvnu/es/index-VpboUai0.js +1 -0
- package/tvnu/es/{index-C7wPDiH0.js → index-yo75mDLH.js} +1 -1
- package/tvnu/es/index.d.ts +25 -4
- package/tvnu/es/index.js +1 -1
- package/tvnu/es/{styles-C8V8x5tX.js → styles-1OK_5ID0.js} +1 -1
- package/tvnu/es/{styles-Klnb8ver.js → styles-B060kT3M.js} +1 -1
- package/{btv2/es/styles-CA601nDs.js → tvnu/es/styles-BHUTSS9O.js} +1 -1
- package/tvnu/es/{styles-B-s3rhQq.js → styles-aENthiKo.js} +1 -1
- package/types/index.d.ts +6 -1
- package/vg/cjs/index.d.ts +25 -4
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-DUMdJJm8.js +1 -0
- package/vg/es/{events-B7VhBLKl.js → events-Zy57B8jn.js} +1 -1
- package/vg/es/{index-CGv6k5zc.js → index-B-bIpaJ8.js} +1 -1
- package/vg/es/{index-BogJAvQu.js → index-BK6_Qyse.js} +1 -1
- package/vg/es/{index-COEXL19m.js → index-Cnc--E5L.js} +1 -1
- package/vg/es/{index-KK0qY8aM.js → index-DFVCbsL1.js} +1 -1
- package/vg/es/{index-D3qGO23L.js → index-DTMAP4Mf.js} +1 -1
- package/vg/es/{index-CUWE2oVG.js → index-DUJCoM96.js} +1 -1
- package/vg/es/index-Dr8zUzYM.js +1 -0
- package/vg/es/{index-Dq-A7QzZ.js → index-MlVj9rd_.js} +1 -1
- package/vg/es/index.d.ts +25 -4
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-DCrteQhO.js → styles-1tFsX2Rx.js} +1 -1
- package/vg/es/{styles-CqM4rVxY.js → styles-BHImrMNc.js} +1 -1
- package/{bt/es/styles-BdBKS9YD.js → vg/es/styles-BRdzTEld.js} +1 -1
- package/vg/es/{styles-J6N0oR1y.js → styles-Bn3h8hlk.js} +1 -1
- package/vg/es/{styles-B0dh4AYy.js → styles-C4c4Mzep.js} +1 -1
- package/vg/es/{styles-BHzG4OIH.js → styles-CVHMNiEk.js} +1 -1
- package/vg/es/{styles-Bd6MA-4r.js → styles-D5wwgjnb.js} +1 -1
- package/vg/es/{styles-CtQ00cCl.js → styles-D8x_KPxP.js} +1 -1
- package/{bt/es/styles-dbB6RW1W.js → vg/es/styles-DEZwgwbH.js} +1 -1
- package/vg/es/{styles-Bb1y_xsL.js → styles-DGZcyvZr.js} +1 -1
- package/{sa/es/styles-C_wUKb-W.js → vg/es/styles-DPhhi93o.js} +1 -1
- package/vg/es/{styles-BVq-e1HW.js → styles-DXDVWmBM.js} +1 -1
- package/vg/es/{styles-T_8VvPzG.js → styles-DxKWVU1A.js} +1 -1
- package/vg/es/{styles-DFdGCXg7.js → styles-GVqRzki3.js} +1 -1
- package/vg/es/{styles-GaFSQGoe.js → styles-c6iSy7pU.js} +1 -1
- package/vg/es/{styles-Dy97a4gi.js → styles-hiALc-xJ.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-CGtSUv-E.js +1 -0
- package/vgv2/es/{events-B__-sgCg.js → events--8I7sSDL.js} +1 -1
- package/vgv2/es/{index-1UFai7qP.js → index-BStPlEzq.js} +1 -1
- package/vgv2/es/{index-CrNSihAa.js → index-BUpTofgv.js} +1 -1
- package/vgv2/es/{index-BKeHgheu.js → index-Bc8ibOnF.js} +1 -1
- package/vgv2/es/{index-DTS66kBN.js → index-BtPBlolZ.js} +1 -1
- package/vgv2/es/{index-CD1SInD4.js → index-D3YvxjqW.js} +1 -1
- package/vgv2/es/index-D4VmvCEu.js +1 -0
- package/vgv2/es/{index-CtzuuTN4.js → index-Rt8T13iL.js} +1 -1
- package/vgv2/es/{index-B-DjwSkV.js → index-fz6837Zf.js} +1 -1
- package/vgv2/es/index.d.ts +25 -4
- package/vgv2/es/index.js +1 -1
- package/vgv2/es/{styles-gn_AufCT.js → styles-533VFDO_.js} +1 -1
- package/vgv2/es/{styles-CfW3UCFV.js → styles-8sk5Mvcf.js} +1 -1
- package/{sav2/es/styles-CQSIER_D.js → vgv2/es/styles-B08LQkRC.js} +1 -1
- package/vgv2/es/{styles-DlLLpXDY.js → styles-BCXJr8nz.js} +1 -1
- package/{btv2/es/styles-D5hQw5jD.js → vgv2/es/styles-Bc-6RLX5.js} +1 -1
- package/vgv2/es/{styles-DUdyxcjX.js → styles-BdGMqHRt.js} +1 -1
- package/vgv2/es/{styles-q13AUrRw.js → styles-BrLyMPQu.js} +1 -1
- package/vgv2/es/{styles-BlgE8-dH.js → styles-Bw6Uxr4v.js} +1 -1
- package/vgv2/es/{styles-C4DfODDi.js → styles-C1znjmLl.js} +1 -1
- package/vgv2/es/{styles-xcBLjlpk.js → styles-C32ZusM_.js} +1 -1
- package/vgv2/es/{styles-DPsYKiCh.js → styles-C5QSP32w.js} +1 -1
- package/{tvnu/es/styles-YxFXFmN8.js → vgv2/es/styles-CQQxeZ4C.js} +1 -1
- package/vgv2/es/styles-CaZlcVc1.js +1 -0
- package/vgv2/es/{styles-Cv1VkehV.js → styles-JRj98TCG.js} +1 -1
- package/vgv2/es/{styles-DdEFzbvI.js → styles-fmihV2lo.js} +1 -1
- package/vgv2/es/{styles-4ncNYQ7c.js → styles-wpMfaJ6T.js} +1 -1
- package/video/cjs/index.js +1 -1
- package/video/es/index.js +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-oBhKyAoZ.js +0 -1
- package/aftenposten/es/index-aZPk2dct.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-gGBl1MgO.js +0 -1
- package/aftenpostenv2/es/index-D_qwr4qT.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CryWprCD.js +0 -1
- package/aftonbladet/es/index-DD_la3Rw.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DCZUJPtO.js +0 -1
- package/aftonbladetv2/es/index-Dc3UTSx5.js +0 -1
- package/bt/es/_auto-entry_bt-BCpuzRtH.js +0 -1
- package/bt/es/index-DuI_5JY1.js +0 -1
- package/btv2/es/_auto-entry_btv2-Cb0hWN2k.js +0 -1
- package/btv2/es/index-DqXN8D3H.js +0 -1
- package/e24/es/_auto-entry_e24-3H8zlkMp.js +0 -1
- package/e24/es/index-CNcwgeAl.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-D402iYd_.js +0 -1
- package/fotbollskanalen/es/index-DfOX8PHl.js +0 -1
- package/koket/es/_auto-entry_koket-C44xH11E.js +0 -1
- package/koket/es/index-B2-fzJ5-.js +0 -1
- package/mtv/es/_auto-entry_mtv-DBXSgxts.js +0 -1
- package/mtv/es/index-BEe1lZD-.js +0 -1
- package/mtv/es/index-B_FeSE0i.js +0 -1
- package/mtv/es/index-CED5rLcJ.js +0 -1
- package/mtv/es/index-ColYO0Br.js +0 -1
- package/mtv/es/index-DNFwMO0x.js +0 -1
- package/mtv/es/index-Kf3qZpof.js +0 -1
- package/omni/es/_auto-entry_omni-z0It26Fq.js +0 -1
- package/omni/es/index-GfFaiR7Y.js +0 -1
- package/sa/es/_auto-entry_sa-DG3-9ORc.js +0 -1
- package/sa/es/index-CLn3FAH1.js +0 -1
- package/sav2/es/_auto-entry_sav2-CbjO8fv8.js +0 -1
- package/sav2/es/index-Bo1hec9T.js +0 -1
- package/svd/es/_auto-entry_svd-DXD04_P9.js +0 -1
- package/svd/es/index-CcFfeUyy.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-ghKmaGHa.js +0 -1
- package/svdv2/es/index-05ohyCV4.js +0 -1
- package/tv4/es/_auto-entry_tv4-CPjlIs09.js +0 -1
- package/tv4/es/events-M4ewIjOJ.js +0 -1
- package/tv4/es/index-CBa0Cyg6.js +0 -1
- package/tvnu/es/_auto-entry_tvnu-CcKddcjH.js +0 -1
- package/tvnu/es/index-DoAhsJS8.js +0 -1
- package/vg/es/_auto-entry_vg-DMv_a-hJ.js +0 -1
- package/vg/es/index-DVC1Ri7F.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-X452a6gh.js +0 -1
- package/vgv2/es/index-CRRh5eM9.js +0 -1
- package/vgv2/es/styles-CrSC2t3F.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"react/jsx-runtime";const e={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},t={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni",MTV:"mtv"},n={publisherClassName:t.MTV,classesToRemoveOnRefresh:[]};function i(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function o(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,s;"function"==typeof SuppressedError&&SuppressedError;var d=r(function(){if(s)return a;s=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function r(e,t){try{return t in e}catch(e){return!1}}function d(e,t,i){var a={};return i.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],i)}),o(t).forEach(function(o){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r(e,o)&&i.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,i)(e[o],t[o],i):a[o]=n(t[o],i))}),a}function l(t,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(o);return a===Array.isArray(t)?a?r.arrayMerge(t,o,r):d(t,o,r):n(o,r)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},a=l}());const l={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},c=(e,t)=>d(e,t,l),u=(e,t)=>Object.assign(Object.assign({},e),t),p=(e,t)=>{var n;return c(null!==(n=e)&&void 0!==n?n:{},t)},v=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},g=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},h=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||g("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||g("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||g("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||g("pageContext.deviceType is required."),n||g("pageOptions is required."),i||g("placements is required."),(null==o?void 0:o.defaultThreshold)||g("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,o;const r=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&g(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},m={placements:(e,t)=>t,takeover:p,refreshConfig:u,editory:p,appearanceConfig:p,pageContext:u,pageOptions:u,pageSectionsSelectors:u,tcf:u},f=(e,t)=>{const n=e;for(const e of Object.keys(m)){const i=t[e];void 0!==i&&(n[e]=m[e](n[e],i))}},y=6;class b{set(e){h(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");f(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=c(b.DEFAULT_SITE_HANDLERS,e)}}b.DEFAULT_SITE_HANDLERS={siteEvents:e,initNativeAd:()=>{}};const w=new b,C=w.modifyConfigProperties.bind(w);class I{initialize(){this.DATA=Object.assign({},I.INITIAL_DATA)}getData(e){if(!this.DATA)throw new Error("Storage was accessed with invalid data.");return this.DATA[e]}setData(e,t){if(!this.DATA)throw new Error("Storage was accessed before it had been initialized.");this.DATA[e]=Object.assign(Object.assign({},this.DATA[e]),t)}}I.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const E=new I,T=864e5,S=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return v("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=T)=>{const o={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(o))},getByTimestamp:(t,n=T)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return v("Error with parsing localStorage data"),null}}}})(),A="glimrTags",O=["glwe_","glwet_"],x={geofenceTags:[],geoTags:[],weatherTags:[]},k=e=>new URLSearchParams(window.location.search).get(e),P="takeover",L="native_override_desc2",j=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return v("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(v("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{v("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{v("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);v("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),_={NO:"no",SE:"se"},$="cmp:loaded";let N="undefined"!=typeof window?window._tcf_:void 0,q=!1;const F=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,a=k("bypass_tcf"),s=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(v("TCF bypass param detected, returning consent: true"),!0):(v("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(q)return null;if(!N)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=N.getConsentedToAllSync();return v(`TCF consented to all is: ${t}`),N.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(v("Getting TCF consent manager..."),window._tcf_)return v("TCF consent manager is already available"),N=window._tcf_,void e(N);v("TCF consent manager is not available");const n=()=>{v("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(N=window._tcf_,e(N)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener($,n),q=!0,t(new Error("Timeout waiting for CMP to load"))},r);v("Listening for CMP loaded event..."),document.addEventListener($,n,{once:!0})}):Promise.resolve(null),getConsentSync:s,getConsentAsync:()=>o(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.NO;if(t||i)return v("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield j(e);if(!(null==e?void 0:e.enabled))return!0;const o=s();return null!==o?o:yield new Promise((e,t)=>{try{if(!N)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{v("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);N.onTcfReady(()=>{v("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),N.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},R=(e,t,n,...i)=>o(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return v(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=F(e,0,n);return(yield o())?(v(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(v(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),M=(...e)=>o(void 0,[...e],void 0,function*(e=w.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield R(t,n,i,"glimr")}const{getConsentAsync:o}=F(t,0,i);return yield o()}),D=()=>o(void 0,void 0,void 0,function*(){const{glimr:e}=w.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void v("No consent for glimr data fetching.");const t=yield(n=500,o(void 0,void 0,void 0,function*(){return yield Promise.race([o(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{S.setWithTimestamp(A,{tags:e,tagMappings:t}),n(!0)})})}catch(e){v(`Error during getting glimr data: ${e}`)}else v("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),B={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},U=e=>O.some(t=>e.startsWith(t)),H=e=>e.startsWith("glgc_"),W=e=>e.startsWith("glci_"),V=e=>!U(e)&&!H(e),z=e=>e===_.NO?"no-sno":"se-generic",K=(e,t)=>o(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:o}={}}=e,r=yield M(e);if(!(null==i?void 0:i.enabled)||!r)return v("No consent for getting glimr tags."),{};const a=z(o),s=G(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),G=(e,t)=>{const n=X();if(!n)return x;const i=((e=[])=>e.filter(U))(n),o=((e=[])=>e.filter(H))(n),r=((e=[],t,n)=>{var i;const o=e.filter(V);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=B[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:r,geofenceTags:o,weatherTags:i}},X=()=>{const e=S.getByTimestamp(A);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},J=()=>{var e;return((e=[])=>e.filter(W))(null!==(e=X())&&void 0!==e?e:[])},Q=()=>(window.apntag||(window.apntag={anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}}),window.apntag),Y=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Z=()=>{const e=Y();return e.cmd||(e.cmd=[]),e.cmd},ee=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:o}}=w.get(),r=[`${z(o)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...i?r:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},te="opaque",ne=e=>o(void 0,void 0,void 0,function*(){if(e.type!==te){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ie={get:(e,...t)=>o(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,r=i(t,["timeout"]);if(n)return((e,t,n)=>o(void 0,void 0,void 0,function*(){const i=new AbortController,o=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return ne(n)}finally{clearTimeout(o)}}))(e,r,n);const a=yield fetch(e,r);return ne(a)}),post:(e,t,n)=>o(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),o=yield fetch(e,{method:"POST",headers:t,body:i});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},oe="advertory:ppids-cache",re={[_.SE]:`SCH${_.SE.toUpperCase()}-EnvHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-EnvHash`},ae={[_.SE]:`SCH${_.SE.toUpperCase()}-UserHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-UserHash`},se={[_.SE]:`sch${_.SE}-envhash-v3`,[_.NO]:`sch${_.NO}-envhash-v3`},de={[_.SE]:`sch${_.SE}-userhash-v3`,[_.NO]:`sch${_.NO}-userhash-v3`},le={[_.SE]:`'sch${_.SE}-iosid-v3'`,[_.NO]:`'sch${_.NO}-iosid-v3'`},ce={[_.SE]:`sch${_.SE}-androidid-v3`,[_.NO]:`sch${_.NO}-androidid-v3`},ue={[_.SE]:"sdrn:schibsted.com:user",[_.NO]:"sdrn:spid.no:user"};class pe{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const ve=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return o(this,arguments,void 0,function*(e,t=1e4){var n,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=o.xandr)||void 0===n?void 0:n.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||v("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},ge=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return o(this,void 0,void 0,function*(){var n,i,o,r,a,s,d,l,c,u,p;const v=S.get(oe),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||v("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const o in e){if((null===(n=e[o])||void 0===n?void 0:n.plain)!==(null===(i=t[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const o=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});S.set(oe,o)}hashPPIDs(e,t){return o(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ie.post(t,n,e)}catch(e){return v("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return o(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>o(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ue[t]}:${n}`:null}))(t,n),r=yield(a=t,o(void 0,void 0,void 0,function*(){const e=yield a.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var a;const s=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:i},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},s?{idfv:{plain:s}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:o.plain}}},he=e=>o(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:o}}=e;if(!(yield R(n,o,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([ve.processPPIDs(t,null==n?void 0:n.timeout),ge.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){v(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),me=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]).add(r,le[e]).add(a,ce[e]).buildEids()}]}},fe=()=>{const{ppid1:e,ppid2:t}=ve.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ye=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]).add(r,le[e]).add(a,ce[e]).buildRyEids()}}]}}},be=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs();return(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]).buildRyEids()},Ce=e=>o(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Ie=()=>o(void 0,void 0,void 0,function*(){const{ppid1:e}=ge.getPPIDs();return e}),Ee=(e,...t)=>o(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(d)};o.addEventListener("load",r),o.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).catch(e=>{console.error(e)}))}),Te={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},Se={ANY_FULLSCREEN:[{width:6,height:6},{width:1920,height:1080},{width:3,height:3}],ABSOLUTE_FULLSCREEN:[{width:6,height:6}],NINESIXTEEN:[{width:1080,height:1920}],FIXED_FULLSCREEN:[{width:1920,height:1080},{width:3,height:3}],FULLWIDTH:[{width:5},{width:400,height:400}],FULLSQUARE:[{width:1080,height:1080}],NATIVE_AD:[{width:1,height:1}],TAKEOVER:[{width:4,height:4}],VELVET_TAKEOVER:[{width:7,height:7}],WALLPAPER:[{width:2,height:2}],COLLAPSE:[{width:2,height:1}]},Ae={wallpaper:1600,"l-format":1600},Oe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Be(e,Te.ANY_FULLSCREEN)},xe=e=>{const{native:t}=e;return!!t},ke=e=>Be(e,Te.FULLWIDTH),Pe=e=>{const{targetId:t}=e;return t.includes("takeover")||Be(e,Te.TAKEOVER)},Le=e=>Be(e,Te.TAKEOVER),je=e=>Be(e,Te.WALLPAPER),_e=e=>Be(e,Te.COLLAPSE),$e=e=>e.targetId.includes("sponsorstripe"),Ne=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},qe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Fe=e=>e.targetId.startsWith("midboard"),Re=e=>e.targetId.includes("widescreen"),Me=e=>e.width>=1260&&e.width<=1280,De=e=>e.width>=1600&&e.width<=1620,Be=(e,t)=>{const n=Se[t];if(!n)return!1;return!!n.find(t=>{var n,i;const o=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===o,s=!t.height||t.height===r;return a&&s})},Ue="advertory-fullscreen-scroll",He="advertory-fullscreen-scroll-wrapper",We="fullscreen-scroll-in-screen",Ve="in-screen",ze=e=>e.includes("snoap.no"),Ke=e=>{var t,n,i,o,r;return!!(null===(r=null===(o=null===(i=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===i?void 0:i.adResponse)||void 0===o?void 0:o.ads[1])||void 0===r?void 0:r.rtb)},Ge=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),o=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,o).toString()},Xe=Ge([],()=>{const e=({width:e,height:t})=>{var n;const i=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!i)return;const{clientWidth:o,clientHeight:r}=i,a=e/o,s=t/r;i.style.transform=`scale(${a},${s})`,i.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),Je=e=>{const t=Ge([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const i=n.contentDocument.createElement("style");i.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(i),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},Qe=e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");if(!n)return e;n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed";return t.innerHTML},Ye=[],Ze={},et=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,o=new IntersectionObserver(e=>tt(e,i),{}),r=it(e);o.observe(e),i&&(Ze[r]=at(e,null==t?void 0:t.options))},tt=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=it(e);n?(nt(i,n),ot(e,i,t)):(nt(i,n),rt(e,i,t))})},nt=(e,t)=>{var n,i;const o=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!o)return;const r=t?"showFullscreen":"hideFullscreen";null===(i=o.contentWindow)||void 0===i||i.postMessage(`advertory:${r}-${e}`,"*")},it=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},ot=(e,t,n)=>{e.classList.add(Ve),document.body.classList.add(We),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ye.includes(t)||Ye.push(t),n&&window.addEventListener("scroll",Ze[t],{passive:!0})},rt=(e,t,n)=>{Ye.includes(t)&&(n&&window.removeEventListener("scroll",Ze[t]),document.body.classList.remove(We),e.classList.remove(Ve),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},at=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:o=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&st(e,r,o,0),a.length&&st(e,a,o,40)}},st=(e,t,n,i)=>{const o=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>r?(a-r)/t-i:(r+t-(a+o))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};function dt(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}dt('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const lt="left",ct={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}};let ut=null;const pt=(e,t)=>{let n=e;return n=(e=>{const t=document.createElement("script");return t.textContent="\n window.addEventListener('message', function(event) {\n if (event.data === 'advertory:showFullscreen-'+document.body.id) {\n document.body.style.display = \"block\";\n } else if (event.data === 'advertory:hideFullscreen-'+document.body.id) {\n document.body.style.display = \"none\";\n }\n });\n ",e+t.outerHTML})(e),n=(e=>{const t=document.createElement("script");return t.textContent=`(${Xe})()`,e+t.outerHTML})(n),n=Qe(n),n=(e=>{if(ze(e))return e;const t=document.createElement("style");return t.textContent="\n .GoogleActiveViewClass, .GoogleActiveViewElement {\n transform: translate(calc(-50% + 50vw), 0);\n width: 100vw !important;\n height: 100vh !important;\n }\n .GoogleActiveViewClass img, .GoogleActiveViewElement img {\n width: 100vw;\n height: 100vh;\n object-fit: cover;\n }\n .GoogleActiveViewClass iframe {\n width: 100vw !important;\n height: 100vh !important;\n }\n ",e+t.outerHTML})(n),(e=>e.includes("adform"))(n)&&(n=(e=>{const t=document.createElement("script");t.textContent='\n var frame = window.frameElement;\n if (frame) {\n frame.style.removeProperty("width");\n frame.style.removeProperty("height");\n frame.contentWindow.document.body.onload = onLoad;\n } else {\n document.body.onload = onLoad;\n }\n \n function onLoad() {\n var iframe = document.querySelector("adfm-ad iframe");\n if (iframe) {\n var image = iframe.contentWindow.document.getElementById("image");\n if (!image) return;\n image.style.backgroundSize = "cover";\n } else {\n var iframe = document.querySelector(".adform-adbox iframe");\n if (iframe) {\n var style = document.createElement("style");\n style.textContent = "#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}";\n iframe.contentDocument.body.append(style);\n iframe.style = "width: 100vw; height: 100vh;";\n } else {\n var observer = new MutationObserver(function(mutations, obs) {\n for (var mutation of mutations) {\n var iframe = mutation.addedNodes[0];\n if (iframe && iframe.nodeName === "IFRAME") {\n iframe.style = "width: 100vw; height: 100vh;";\n iframe.dataset.contents += "<style>#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}</style>";\n obs.disconnect();\n }\n }\n });\n observer.observe(document.body, { childList: true, subtree: true });\n }\n }\n }\n ';const n=document.createElement("style");return n.textContent="\n html, body, adfm-ad, #sf_align, .adform-adbox, .adform-adbox img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover;\n max-width: 100vw;\n }\n ",e+n.outerHTML+t.outerHTML})(n)),(e=>e.includes("529299503"))(n)&&(n=Je(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>ze(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)),ze(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)),Ke(t)&&(n=(e=>{const t=document.createElement("script");t.textContent='var frame = window.frameElement;\n if (frame) {\n frame.style.width = "100vw";\n frame.style.height = "100vh";\n }';const n=document.createElement("div");return n.innerHTML=e,n.appendChild(t),n.innerHTML})(n)),n},vt=()=>{ut=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,o=document.documentElement;o.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),o.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),o.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},gt=()=>{ut||(ut=window.requestAnimationFrame(vt))},ht=(e,t)=>{var n,i,o,r,a;const{pageContext:{countryCode:s,deviceType:d}}=w.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:o="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=i/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${o} 0px,\n ${o} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${o} calc(50% + ${l}px),\n ${o} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==c?void 0:c.overlayStyles)&&void 0!==i?i:{},d);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;et(p,t),u.className=Ue,et(p,t),u.className="advertory-fullscreen-scroll";const v=Be(e,Te.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=He,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(o=null==c?void 0:c.annonsLabel)&&void 0!==o?o:ct[s].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===lt&&(u.dataset.moveCogwheelToTheLeft="true"),gt(),window.addEventListener("resize",gt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",gt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",gt)},mt=e=>{if(!(null==e?void 0:e.classList.contains(Ue)))return;e.classList.remove(Ue),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(He))&&(t.classList.remove(He),t.classList.remove(Ve))};var ft=Object.freeze({__proto__:null,createFullscreenScrollAd:ht,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=Ke(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[i].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,i=Ke(e)?1:0,o=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;o&&(o.banner.content=t)})(e,pt(t,e))},undoFullscreenScrollContainer:mt});const yt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},bt=(e,t,n)=>{var i,o,r,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(o=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===o?void 0:o.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),yt(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},wt="ad-loaded",Ct="disable-cogwheel",It=()=>null!==k("disable_prebid"),Et="0123456789abcdefghijklmnopqrstuvwxyz",Tt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Et[Math.floor(36*Math.random())]}return t},St=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},At=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Ot=new Promise(e=>{if("undefined"==typeof document||!document.hidden)return void e();const t=()=>{document.hidden||(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t,{once:!0})}),xt=(e,t,n)=>o(void 0,void 0,void 0,function*(){yield At,yield Ot;new IntersectionObserver((t,i)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),i.unobserve(e),i.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),kt=()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:o},fullscreenScroll:r,appearanceConfig:a,placements:s}=w.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=w.getHandlers(),{getConsentAsync:l}=F(t,0,n),c=yield l(),u=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const o=Q(),{prebid:{relevantCallbackTimeout:r}={}}=w.get(),a="relevantCb"===i&&r?r:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,o.loadTags&&o.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Q(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Q();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:m}=g;Z().push(()=>{v("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return v("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=Y();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};v("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(m,h))),v("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(m,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{v("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:u.getCancel()}),u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e)),u.cleanup()}},customNativeRender:e=>{Pt(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const g=p.id,h=document.getElementById(g);if(!h)return;const m=null===(t=null==s?void 0:s[o])||void 0===t?void 0:t.find(e=>e.targetId===g),f=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[o])&&void 0!==d?d:0,y=Object.assign(Object.assign({},u),{targetId:g,banner:!0});v("prebid directRenderFn ad info",{targetId:g,width:null==u?void 0:u.width,height:null==u?void 0:u.height,adId:null==u?void 0:u.adId,creativeId:null==u?void 0:u.creativeId}),xt(h,f,()=>{var e;const t=c(l),n=Oe(y);if(v("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)v("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),ht(y,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const i=new MutationObserver(()=>{n()&&i.disconnect()});i.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),i&&h.style.setProperty("--advertory-political-box-offset","30px");else{v("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),mt(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(wt),(null==u?void 0:u.creativeId)&&bt(g,h,Number(null==u?void 0:u.creativeId))})}}),v("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e))}},customNativeRender:e=>{Pt(e,d)},directRenderFn:()=>{}})})}),Pt=(e,t)=>{var n;const{divId:i,native:o,bid:r}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:o,targetId:s},w.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")};let Lt=e=>{window.apntag.anq.push(e)};const jt=e=>{Lt=e},_t=e=>{Lt(e)},$t=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Nt=e=>o(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:o}=F(t,0,i);if(!(yield o()))return;const r=$t("_pulse2data");return r?r.split(",")[9]:void 0}),qt={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Ft="takeover-displayed",Rt="takeover-visit-count",Mt=14400,Dt=()=>{const e=$t(Rt);return e?parseInt(e):0},Bt=()=>{const e=Dt(),{takeover:{options:{cookieCapTime:t=Mt}={}}={}}=w.get(),n=document.location.hostname;window.document.cookie=`${Rt}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Ut=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=w.get();return"0"!==k(P)&&("1"===k(P)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=w.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Ft;return"true"===$t(n)})())&&(!t||Ht()))},Ht=()=>{const e=Dt();return 0===e?(Bt(),!1):1===e},Wt=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Vt=()=>{const{takeover:e}=w.get();return Boolean(null==e?void 0:e.topscroller)},zt=e=>{const{width:t,height:n}=e;return Wt(t,n)?qt.SPLASH:Be(e,Te.VELVET_TAKEOVER)?qt.VELVET:Vt()?qt.TOPSCROLLER:qt.WELCOME_PAGE},Kt=()=>o(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Ft,cookieCapTime:n=Mt}={}}={},pageContext:{isMobileApp:i,countryCode:o},tcf:r}=w.get(),a=yield R(r,i,o,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Gt=e=>{var t,n;const i=!!(null===(n=null===(t=w.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Pe(e)&&i},Xt=(e,t)=>{var n;if(t===qt.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===qt.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Jt=(e,t)=>{t!==qt.SPLASH?(e=>{var t,n;const i=null===(t=w.get().pageSectionsSelectors)||void 0===t?void 0:t.header,o=null===(n=w.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||o)return;const r=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&d&&s))return;const l=null==r?void 0:r.offsetHeight,c=Le(e)?"60svh":`calc(100svh - ${l}px)`,u=Le(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),s.style.setProperty("height",c,"important"),d.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=w.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),i=document.querySelector(`#${e.targetId}`);if(!n||!i)return;const o=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",o,"important")})(e)},Qt=Ge([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});var Yt=Object.freeze({__proto__:null,addTakeoverCookie:Kt,adjustTakeoverHeight:Jt,canDisplayTakeover:Ut,getProperWelcomePageConfig:Xt,getTakeoverVariant:zt,handleTakeoverCookieOnAdNotShown:e=>o(void 0,void 0,void 0,function*(){Gt(e)&&(yield Kt())}),incrementArticleVisitCount:Bt,isSplashVariant:Wt,isTopscroller:Vt,scaleAd:Qt,shouldAddTakeoverCookieForNotShownAd:Gt});const Zt=e=>`externalImpId:'${e}'`,en=(e,t)=>t?Object.assign(Object.assign({},e),{"aa-sch-ssa-native-ad":"true","aa-sch-ssa-format":"NATIVE_CONTENT","aa-sch-ssa-market":"XNO","aa-sch-ssa-cat":["ssa_1","ssa_2","ssa_3","ssa_4","ssa_5","ssa_6","ssa_7","ssa_8","ssa_9","ssa_10","ssa_11","ssa_12","ssa_13","ssa_14","ssa_15","ssa_16","ssa_17","ssa_18","ssa_19","ssa_20","ssa_21","ssa_22","ssa_23","ssa_24","ssa_25","ssa_26","ssa_27","ssa_28","ssa_29","ssa_30"]}):e,tn=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=w.get(),{targetId:o,sizes:r,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Ut())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],i=Array.isArray(n)?n.filter(e=>e!==qt.TOPSCROLLER):n,o=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:o})})(e),h=Object.assign({invCode:d,sizes:r,targetId:o,keywords:en(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:g},u&&{safeframeConfig:u}),m=(e=>{var t,n;const i=null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId;return i?(v("Pulse state pageViewId is:",i),i):(v("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&m&&(v("External Impression ID assigned to defineTag:",Zt(m)),h.externalImpId=Zt(m));const f=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},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"))&&(h.native=f),h},nn=e=>!e.includes("takeover")||Ut(),on={nativeAd:e=>xe(e)&&!$e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ke,fullscreenScroll:Oe,topscroller:e=>Pe(e)&&Vt(),splash:e=>Pe(e)&&Wt(e.width,e.height),welcomePage:Pe,wallpaper:je,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Me,hFormat:De,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!De(e)&&!Me(e),topboard:e=>e.targetId.startsWith("topboard")&&!Pe(e),widescreen:Re,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:$e,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!qe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Fe(e),outstream:e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,netboard:e=>(e=>e.targetId.startsWith("netboard"))(e)||(e=>e.targetId.startsWith("board"))(e),panorama:qe,midboard:Fe},rn=({adObj:e,preferredTestIdData:t})=>{var n,i;const o=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!o)return;const r=null===(i=document.querySelector(`#${o}`))||void 0===i?void 0:i.parentElement;if(!r)return;if(((e,t)=>{var n,i,o,r;const a=null===(r=null===(o=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===o?void 0:o[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(o,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,i;for(const[o,r]of Object.entries(on))if(r(e)){if("nativeAd"===o){const r="default";t.dataset.testid=`${o}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:r}`;break}t.dataset.testid=o;break}})(e,r)},an=e=>{var t;return(null===(t=Object.entries(on).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},sn=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},dn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=w.get(),n=z(t),i=e[`${n}-targetid`],o=i?sn(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[o]})},ln=e=>{const{pageContext:{countryCode:t}}=w.get(),n=z(t);return Object.assign(Object.assign(Object.assign(Object.assign({},e),e[`${n}-geo`]&&{[`${n}-geo`]:["geo-test-value"]}),e[`${n}-geofence`]&&{[`${n}-geofence`]:["geofence-test-value"]}),e[`${n}-weather`]&&{[`${n}-weather`]:["weather-test-value"]})},cn=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const i=n.split(",")[0].split(":")[0],o=e.find(e=>e.invCode===i),r=document.querySelector(`[id^=${null==o?void 0:o.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e)},un=e=>{const{source:t}=e;return"csm"===t},pn="advertory-wallpaper-background",vn="advertory-with-horseshoe",gn=()=>{const e=document.querySelector(`.${pn}`);e&&e.remove()},hn=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${pn}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},mn=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,fn=e=>mn.test(e),yn=e=>e.startsWith("wallpaper:color:"),bn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundImage=`url(${e})`)},wn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundColor=e)};var Cn=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(vn),n.classList.add(vn))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{gn();const e=document.createElement("div");e.classList.add(pn),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--advertory-header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(hn(n),window.addEventListener("scroll",()=>hn(n)))})(n),e()},isShortWallpaperColorMessage:yn,isShortWallpaperUrlMessage:fn,removeWallpaperBackground:gn,setWallpaperBackgroundColor:wn,setWallpaperBackgroundImage:bn});const In=e=>{if("0"===k("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&gn())},En=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},Tn=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},Sn=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,i=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${i}px`)},An=/_\d+$/,On=e=>e.replace(An,"");let xn="";const kn=new Map,Pn=e=>{const{pageSetup:{tag:t}={}}=w.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(xn!==window.location.pathname&&(kn.clear(),xn=window.location.pathname),e.map(e=>{var t;const n=On(e.invCode),i=null!==(t=kn.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=w.get();return`${e}-${t}`})()}-count`]=i,kn.set(n,i+1),e})):e},Ln=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const jn=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return o(this,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>o(void 0,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;try{return yield ie.get(t,{timeout:5e3})}catch(e){throw v("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,r;const a=((e,t)=>{const{sections:n}=e,o=i(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?c(o,r):o})(t,null!==(r=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>c(t,e))(e,a)}getConfig(e){return o(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return v("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return o(this,void 0,void 0,function*(){var t,n,i,o;if(!this.localSiteConfig)return;if(f(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(o=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void v("Error fetching updated S3 config, keeping current config",{error:e})}})}},_n=jn.getConfig.bind(jn),$n=jn.resolveUpdatedConfig.bind(jn),Nn=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=E.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=i},qn=()=>{gn();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{In(e.id),Nn(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),i=null==t?void 0:t.getAttribute("data-probable-width");n&&i&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",i+"px"))})(e.id),e.innerHTML="",e.id=sn(e.id),t.push(e.id)}),_t(()=>window.apntag.clearRequest()),t},Fn=()=>{E.setData("wallpaper",{isAvailable:!1}),E.setData("horseshoe",{isAvailable:!1})},Rn=e=>o(void 0,void 0,void 0,function*(){const t=yield $n(e);var n;t?(w.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):C(null!=e?e:{})}),Mn="mobile",Dn="tablet",Bn="desktop",Un="web_desktop",Hn="web_phone",Wn="wde",Vn="wph",zn="noGroupedPlacements",Kn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Gn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Xn=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:i,pageContext:{deviceType:o}}=w.get(),r=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Dn&&0===i.length?e[Bn]:i})(n,o),a=r.filter(Gn),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=Kn(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),r=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${o}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(r),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const o=Jn(e,t,n);if(o.disabled)return v(`Placement ${o.targetId} is disabled - collapsing`),In(o.targetId),null;const r=o.finnBlink&&!o.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(i=o.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${Tt(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),r&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&E.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},o),{targetId:s})}),c=l.filter(e=>null!=e);return Pn(c)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(d)},Jn=(e,t,n)=>{const i=n[t],o=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:r||o},Qn=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=w.get(),i=(null==t?void 0:t[n])||{},o=Object.values(i).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=sn(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,o]of Object.entries(t))n[i]=e.filter(e=>o.includes(sn(e.targetId)));return n})(e,i),s=Object.keys(r),d=((e,t)=>e.filter(e=>!t.has(sn(e.targetId))))(e,new Set([...s,...o]));return Object.assign(Object.assign(Object.assign({},a),r),{[zn]:d})},Yn=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Zn=new Map,ei=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],ti=".brandstudio-premium-content-widget",ni=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ii=({adWrapper:e,placementContainer:t})=>{const n=ni({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Nn(i=t),i.innerHTML=""},oi=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},ri=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=w.get(),i=ei.includes(n)&&Boolean(t.closest(ti));const o=i?t.closest(ti):null,r=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!i&&!a||i&&!o)return;if(a)return oi(e),void r.disconnect();const s=t.closest('[style*="height"]'),d=o;s&&d.contains(s)?oi(s):d.hasAttribute("style")&&oi(d),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},ai=(e,t,n,i,o,r)=>{var a;const s=performance.now(),d=null!==(a=Zn.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,o)&&n<0;s-d>=o&&l&&(Zn.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=w.get(),o=null==n?void 0:n.parentElement;o&&n&&ii({adWrapper:o,placementContainer:n}),_t(()=>{e.setKeywords([t],{[`${z(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},si=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:o,boundingClientRect:r}=e;t(window.apntag,o.id,r.y,n,i,o)})})(e,ai,t,n),Yn(300));i.observe(e)},di=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const o=e.slice(i,i+t);n.push(o)}return n},li=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),ci=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},ui=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=w.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),mi(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},pi=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const o of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=o.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==i?void 0:i.requestThreshold;ci(o,r)&&i&&(Sn(i.targetId),n.length&&o.classList.remove(...n),mi([i],t))}},vi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=w.get();t&&(e.forEach(({targetId:e})=>{const t=gi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&pi(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),pi(e,!1,t))};n.persisted&&(li()?window.addEventListener("scroll",i,{passive:!0}):pi(e,!1,t))})})(e,n))},gi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},hi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(gi(t)),o=(e=>1===e[0]&&1===e[1])(i),r={sizes:[i],allowedFormats:o?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return o||(r.native=void 0),r},mi=(e,t=!1)=>{const{queryConfig:{batchSize:n=y}={}}=w.get(),i=e.map(({targetId:e})=>e),o=di(i,n);if(t)for(const t of e){const e=hi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of o)_t(()=>window.apntag.refresh(e))},fi=e=>{const{apntag:t,bus:n}=e,{siteEvents:i,initNativeAd:r}=w.getHandlers(),a=[];return{adRequested:()=>{n.emit("adRequested"),i.adRequested()},adAvailable:e=>o(void 0,void 0,void 0,function*(){var t,o,a,s,d,l;v("core adAvailable start",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:_e(e),isWallpaperAd:je(e)});const c=null===(a=null===(o=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===o?void 0:o.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(un(e)&&c&&(null===(s=c[1])||void 0===s?void 0:s.rtb)&&(e.banner=null===(l=null===(d=c[1])||void 0===d?void 0:d.rtb)||void 0===l?void 0:l.banner),Oe(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return ft});t(e)}const{widescreenSwitching:u,wallpaper:p,fullscreenScroll:g}=w.get();if(Re(e)&&(null==u?void 0:u.enabled)){const{initWidescreenSwitching:e}=yield import("./index-Kf3qZpof.js");e()}if(Oe(e)&&!Ne(e.targetId)){v("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return ft});t(e,g)}if(!xe(e)||un(e)||Ne(e.targetId)||null==r||r(e,w.get()),Pe(e)&&!_e(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield import("./index-CED5rLcJ.js");t(e.targetId),yield n(e)}if(je(e)&&(null==p?void 0:p.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return Cn});t(()=>_t(()=>window.apntag.showTag(e.targetId)),p),E.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&E.setData("horseshoe",{isAvailable:!0}),i.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),v("core adAvailable stop",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:_e(e),isWallpaperAd:je(e)})}),adLoaded:e=>o(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:o,wallpaper:s,adScaleConfig:d,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=w.get(),v=document.getElementById(e.targetId);if(Ne(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield import("./events-DrwOr2mO.js");t(e)}if(a.includes(e.targetId)&&xe(e)&&(null==r||r(e,w.get()),rn({adObj:e})),!a.includes(e.targetId)&&un(e)&&a.push(e.targetId),_e(e)&&In(e.targetId),Pe(e)){const{modifyTakeoverIframe:n}=yield import("./index-CED5rLcJ.js");n(t,e.targetId)}if((e=>Be(e,Te.NINESIXTEEN))(e)){const{applyNinesixteenFormat:t}=yield import("./index-DNFwMO0x.js");t(e)}if((e=>Be(e,Te.FULLSQUARE))(e)){const{applyFullsquareFormat:t}=yield import("./index-DNFwMO0x.js");t(e)}if(ke(e)){const{applyFullwidthFormat:t}=yield import("./index-DNFwMO0x.js");t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),o=null==i?void 0:i.parentElement;if(!o||!i)return;ri({adWrapper:o,placementContainer:i});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&si(i,a,r))})(e,n),(null==o?void 0:o.clearProbableDimensionsEnabled)&&Tn(e.targetId);if(E.getData("horseshoe").isAvailable&&(null==s?void 0:s.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e.targetId)}if(null==d?void 0:d.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield import("./index-B_FeSE0i.js");t(e),n(e)}if(i.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return Do}),n=new t(w.get(),e);n.trackLoad(),n.trackImpression()}yt(e.targetId),v&&(v.classList.add(wt),(e=>{var t,n;const{pageSectionsSelectors:i}=w.get(),o=null==i?void 0:i.mainFirstColumn,r=o?null===(t=document.querySelector(o))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),rn({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const i=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;i&&((e,t)=>{const{height:n,width:i,native:o}=e;o?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:an(e)}}))}),adNoBid:e=>o(void 0,void 0,void 0,function*(){if(In(e.targetId),Pe(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Yt});yield t(e)}i.adNoBid(e)}),adError:(e,t)=>o(void 0,void 0,void 0,function*(){if(Pe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yt});yield e(t)}i.adError(e,t)}),adCollapse:()=>{i.adCollapse()},adRequestFailure:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adRequestFailure(e)}),adBadRequest:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adBadRequest(e)}),adLoadedMediated:e=>i.adLoadedMediated(e),adNoBidMediated:e=>{i.adNoBidMediated(e)}}};let yi;const bi=()=>yi,wi={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>o(void 0,void 0,void 0,function*(){yi=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=yi,jt(e=>window.apntag.anq.push(e)),yield Promise.allSettled([o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();(yield R(e,t,n,"xandr-endpoint"))||yi.setEndpoint("ib.adnxs-simple.com",!0)}),o(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=w.get();yield Ee(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),o(void 0,void 0,void 0,function*(){if(It())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get(),o=yield R(t,n,i,"prebid");(null==e?void 0:e.enabled)&&o&&(yield Ee(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>o(void 0,void 0,void 0,function*(){const{pageOptions:e}=w.get(),{preparePageOptions:t}=w.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=w.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),i=yield o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();return(yield R(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),r=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),i));(e=>{const t=E.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=ln(e);E.setData("alertoryConfigKeywords",n)})(r.keywords),_t(()=>bi().setPageOpts(r))}),definePlacements:e=>{const{prepareTag:t}=w.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const i=t.findIndex(t=>e.targetId.includes(t)),o=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===o?-1:-1===i&&-1!==o?1:i-o})})(e).forEach(e=>{v("xandr definePlacements",{placement:e});const i=tn(e);if(nn(e.targetId)){const o=t(i),r=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:o}=e;return{adTypes:t,invCode:n,keywords:dn(i),sizes:o}})(o);n.push(r),_t(()=>(v("xandr definePlacements - add to the queue",{placement:e,preparedTag:o}),bi().defineTag(o)))}}),(e=>{var t,n,i;(null===(i=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===i?void 0:i.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>o(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>nn(e)).map(({targetId:e})=>e);t.length&&_t(()=>(v("xandr requestPlacements",{placementsIdsToLoad:t}),bi().loadTags([...t])))}),bindEvents:e=>o(void 0,void 0,void 0,function*(){var t;yield(t={apntag:bi(),bus:e},o(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=fi(t);_t(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))})},Ci=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:o}=window,[r,a]=t;if(!i.dataset.lockedsize&&a&&r)i.style.width=`${r}px`,i.style.height=`${a}px`,n&&(o.resizeAd(i.id,[r,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=r.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&o.resizeAd(i.id,[e,t])}},Ii="collapseAd",Ei="hideAd",Ti="resizeAd",Si="wallpaperImageUrl",Ai="wallpaperColor",Oi="velvet",xi=[Ti,Si,Ai,Ii,Ei,Oi];let ki;const Pi=e=>{if(!["http://acdn.adnxs-simple.com","https://acdn.adnxs-simple.com","https://crcdn01.adnxs-simple.com","http://crcdn01.adnxs-simple.com","https://acdn.adnxs.com","http://acdn.adnxs.com","https://adsdk.microsoft.com","https://adsdk.bing.net","https://adsdkprod.azureedge.net"].includes(e.origin.trim()))return;const{data:t}=e;if(!t)return;const n=(e=>{if("object"==typeof e)return e;if(fn(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Si,wallpaperImageUrl:t}}if(yn(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Ai,wallpaperColor:t}}if(e.startsWith(Ii)||e.startsWith(Ei)){const t=e.split(":")[1];return{name:Ii,targetId:t}}if(e.includes("name")&&xi.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!xi.some(e=>n.name===e))return;const{name:i,targetId:o,wallpaperImageUrl:r,wallpaperColor:a,cmd:s,size:d}=n;i===Oi&&s&&(s.includes("noScroll")&&(ki=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(s.includes("close")||s.includes("ended"))&&(null==ki||ki(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==Ii&&i!==Ei||!o||In(o),i===Ti&&o&&s&&Ci(o,s),"resizeMediationAd"===i&&o&&d&&Ci(o,d,!0),i===Si&&r&&bn(r),i===Ai&&a&&wn(a)},Li=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=w.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},a=e=>{En(e),_t(()=>i.showTag(e))};return{withXandrAd:a,withFinnBlinkAd:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-BEe1lZD-.js");yield t(e,r,null)}),withFullAdsChain:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void a(e);const{loadFinnBlinkAd:t}=yield import("./index-BEe1lZD-.js");yield t(e,r,a,()=>o(void 0,void 0,void 0,function*(){if(!E.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e)}))})}},ji=(e,t)=>o(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield xt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Ne(t)&&i?(v(`loading finn blink ad for blink only placement for ${t}`),void Li().withFinnBlinkAd(t)):Ne(t)?(v(`loading finn blink ad with full ads chain for ${t}`),void Li().withFullAdsChain(t)):void _t(()=>(v("core showTag",{id:t}),e.showTag(t)))})(window.apntag,(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),_i=(e,t)=>o(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});dt(".advertory-brandmetrics-survey{width:100%}");const $i="advertory-brandmetrics-survey",Ni=()=>o(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),qi=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Fi="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Ri=()=>o(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var o;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(o=n.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Mi={pageContext:{publisher:"aftonbladet",countryCode:_.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},Di={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Bi=e=>(null==e?void 0:e.parent)?[...Bi(e.parent),e.shortPath||"unknown"]:[],Ui=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=Bi(e);return Di[n]||"ovrigaavdelningar"})(e)}_{position}`,Hi={aftonbladet:Mi},Wi={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Ui(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Bi(e).join(":")}}},Vi=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},zi=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),Ki="se-generic",Gi="aa-sch",Xi="kv_",Ji="pause",Qi="{deviceType}",Yi="{position}",Zi="afp_",eo=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),to="1-1",no="16-9",io="3-4",oo="9-16",ro="responsive",ao={[to]:1,[no]:1.78,[oo]:.56,[ro]:1},so={[to]:1,[no]:1.78,[io]:1.33,[oo]:.56},lo=(e,t,n,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},a=Bn===n?Wn:Vn,s=o.replace(Qi,a);return(e,n)=>{if(e===Ji)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Yi,Ji).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&eo.has(e)){return(i&&r?r:t.frontpageInvCodeTemplate).replace(Qi,a).replace(Yi,e)}return s.replace(Yi,e)}},co=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},uo=e=>e===Mn,po=853,vo=767,go=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,o])=>{const r=Math.abs(e[n]-t);return Math.abs(o-t)<r?i:n},n[0][0])},ho=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},mo=()=>{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},fo=()=>{const e=null!==(t=mo()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=mo()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},yo=()=>Object.fromEntries(new URLSearchParams(window.location.search)),bo=(e,t)=>o(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:o}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:o,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield R(n,e.isApp,o,"video"))?"1":"0",l=yield Ri(),c=yield Ce(o),u=yield Nt({tcf:n,pageContext:s}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>go(so,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?go(ao,Number(m.toFixed(2))):ro;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Gi}-country_code`]:o,[`${Gi}-publisher`]:i,[`${Gi}-supply_type`]:(f=e.deviceType,f===Bn?Un:Hn),[`kw_${Gi}-page_type`]:"collection",[`${Gi}-page_type`]:"collection",[`${Ki}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${Ki}-page`]:"index",[`${Ki}-page`]:"index",[`${Ki}-screenheight`]:String(window.screen.height),[`${Ki}-screenwidth`]:String(window.screen.width),[`${Ki}-viewportheight`]:String(a),[`${Ki}-viewportwidth`]:String(r),[`${Ki}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${Ki}-mobile-os`]:co(),[`${Ki}-audience`]:void 0,[`${Ki}-externalid_src`]:fo(),[`${Ki}-tags`]:e.tags,[`${Ki}-articleid`]:p,"article-id":p},yield K(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${Ki}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(yo()).some(e=>e.includes(Xi))&&(()=>{const e=yo(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Xi)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":d,"kw_aa-sch-cmp_advertising":d,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),wo=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],Co=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],Io=["external_uid","gdpr","gdpr_consent","eids","article-id"],Eo=(e,t)=>{const n=[...wo,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Io.includes(e)?e:`kw_${e}`,t]))},To=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Co.includes(e))),So=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i,o,r;const a=(e=>{var t;Hi[e]||g(`[video] No config found for publisher "${e}"`);return null!==(t=Hi[e])&&void 0!==t?t:Mi})(e.publisher),s=(e=>{var t;return null!==(t=Wi[e])&&void 0!==t?t:Wi.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(o=Number(e.aspectRatio))&&void 0!==o?o:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield bo({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==s?void 0:s.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:ho(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:Vi(e.startMode)}}),Ao=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=lo(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Zi)?`${Zi}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,o),"se-generic-playback-method":zi.get(s),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Eo(r,n)),To(r)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Oo=e=>t=>o(void 0,void 0,void 0,function*(){const n=yield So(e,t);return Ao(n,e)}),xo={plcmtcnt:1,context:1,contextsubtype:10,plcmttype:1,assets:[{id:1,title:{len:100},required:0},{id:2,img:{type:1,hmin:10,wmin:10},required:0},{id:3,img:{type:3,hmin:10,wmin:10},required:0},{id:4,data:{type:2},required:0},{id:5,data:{type:12},required:0}],ver:"1.2",eventtrackers:[{event:1,methods:[1,2]}]},ko={no:"NOK",se:"SEK"},Po={no:"no",se:"sv"};class Lo{buildFetchObject(e,t,n,i){return o(this,void 0,void 0,function*(){const{pageContext:{countryCode:o},pageOptions:r}=i,{invCode:a,xandrPlacementId:s}=e,d=yield Ri(),l=(c=Object.assign(Object.assign({},t),n),Object.entries(c).flatMap(([e,t])=>void 0===t?[]:Array.isArray(t)?t.map(t=>`${e}=${t}`):[`${e}=${t}`]).join(","));var c;const u=new URL(window.location.href),p=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(xo),ver:"1.1"}})(e),v=(e=>{const{sizes:t,allowedFormats:n}=e;if((null==n?void 0:n.includes("banner"))&&t&&0!==t.length)return{format:t.map(([e,t])=>({w:e,h:t})),w:t[0][0],h:t[0][1]}})(e);return{id:Tt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Po[o]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield Nt(i),ext:{consent:d.gdpr_consent||"",eids:we(o)}},at:1,cur:[ko[o]],source:{tid:Tt(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,i){return o(this,void 0,void 0,function*(){try{v("Starting fetching Studio ad from Xandr:",Fi);const o=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${Fi}?${a.toString()}`:Fi,d=yield this.buildFetchObject(e,t,n,i),l=yield ie.post(s,o,d);return v("Fetch operation completed successfully.",l),l}catch(e){v("Error during fetch operation:",e)}return null})}}const jo=0,_o=3,$o=(e,t,n,i)=>{const o=t.parentElement;if(!o)return;const r=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${r}-${n}${a}`,d=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),o.classList.remove(...o.classList),t.classList.add(s),o.classList.add(d),t.dataset.adType=n},No={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},qo=(e,t,n)=>{var i;const o=t.replace(/-[^-]*$/,"");return null===(i=null==n?void 0:n[e].find(e=>e.targetId===o))||void 0===i?void 0:i.invCode},Fo=(e,t)=>{new IntersectionObserver((e,n)=>{for(const i of e)if(i.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class Ro{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&Fo(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class Mo extends Ro{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return qo(e,this.adObj.targetId,t)}buildAdObject(){const e=Mo.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}var Do=Object.freeze({__proto__:null,XandrAdTracker:Mo});const Bo=(e,t)=>{Uo(e,t),Wo(e,t)},Uo=(e,t)=>{var n,i;const o=document.querySelector(`#${e.targetId}`);if(!o||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==o?void 0:o.querySelectorAll(r)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,i,o,r,a,s;for(const t of null!==(i=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==i?i:[])zo(t);if((null===(o=null==t?void 0:t.pulse)||void 0===o?void 0:o.instance)&&(null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(s=t.deviceType)&&void 0!==s?s:Bn};new Mo({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},Ho=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),o="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!o?null==n||n.forEach(Vo):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},Wo=(e,t)=>{var n;let i=!1;const o=document.querySelector(`#${e.targetId}`);if(!o||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Bn])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!i)for(const n of t)if(n.isIntersecting){i=!0,Ho(e),c.disconnect();break}},d);c.observe(o)},Vo=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?zo(e):window.navigator.sendBeacon(e)},zo=e=>{ie.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Ko=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:[]}),Go=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:o},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[o],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void v(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Yn(s)).observe(d)});const{prepareTag:l}=w.getHandlers(),c=E.getData("alertoryConfigKeywords"),u=null!==(i=l(tn(e)).keywords)&&void 0!==i?i:{},p=new Lo,g=yield p.fetchData(e,c,u,t);g&&(((e,t,n)=>{const i=n===Mn?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===jo){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(d,g,o),g.adType===_o&&($o(t.pageContext.publisher,d,No.NATIVE_AD,t.pageContext.pageType),Bo({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:o,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var o,r,a;let s;(null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),bt(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,g.bid))}),Xo=(e,t)=>{e.forEach(e=>Go(e,t).catch(e=>{v("Failed to handle server-side ad:",e)}))},Jo="[data-carousel-track]",Qo=({image_link:e,title:t})=>{const n=document.createElement("figure"),i=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),i.className="slide-image",i.src=e,i.alt=t,i.loading="lazy",i.draggable=!1,n.appendChild(i),n},Yo=e=>Boolean(e.title&&e.link&&e.image_link),Zo=(e,t)=>o(void 0,void 0,void 0,function*(){const n=e.querySelector(Jo);var i;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const r=yield(e=>o(void 0,void 0,void 0,function*(){try{const t=yield ie.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(g("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return g("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!r)return void e.replaceChildren();const a=r.items.filter(Yo);if(!a.length)return void g("Carousel feed has no usable items");yield import("./styles-DwgOS0V0.js");const s={title:(i=e).querySelector("[data-product-title]"),description:i.querySelector("[data-product-description]"),price:i.querySelector("[data-product-price]"),link:i.querySelector("[data-product-link]")};n.replaceChildren(...a.map(Qo)),(({root:e,onChange:t})=>{var n;const i=e.querySelector("[data-carousel-viewport]"),o=e.querySelector(Jo),r=Array.from(null!==(n=null==o?void 0:o.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!i||!o||!r.length)return;const a=r.length,s=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let d=1,l=null,c=0,u=!1;const p=e=>{const t=s[0].offsetWidth,n=Number.parseFloat(getComputedStyle(o).columnGap)||0,r=(i.clientWidth-t)/2-d*(t+n);o.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",o.style.transform=`translate3d(${r+c}px, 0, 0)`,o.offsetWidth},v=(e,n=!0)=>{d=e,p(n),s.forEach((e,t)=>e.classList.toggle("is-active",t===d)),null==t||t((d-1+a)%a)},g=()=>{0===d?v(a,!1):d===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*i.clientWidth?-Math.sign(c):0;l=null,c=0,v(d+e),window.setTimeout(()=>{u=!1})};o.replaceChildren(...s),o.addEventListener("transitionend",e=>{e.target===o&&g()}),i.addEventListener("pointerdown",e=>{g(),l=e.clientX,i.setPointerCapture(e.pointerId),p(!1)}),i.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),i.addEventListener("pointerup",h),i.addEventListener("pointercancel",h),i.addEventListener("click",e=>{u&&(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:i},o)=>{e&&(e.textContent=o.title),t&&(t.textContent=o.description),n&&(n.textContent=o.sale_price||o.price),i&&(i.href=o.link)})(s,a[e])}),v("Carousel mounted",{items:a.length})}catch(t){g("Carousel could not be rendered",t),e.replaceChildren()}else g("Carousel feed url is missing or not a valid https url",{url:t})}),er="_adchoices_non_rtb",tr=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=er}={}}={}}=w.get();return`${On(e)}${t}`},nr=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>In(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:tr(e.invCode)})))(e)),ir=e=>`${Math.max(0,Math.round(e))}px`,or=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},rr=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},ar=()=>{const{pageSectionsSelectors:e}=w.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=or(t);rr({"--advertory-header-height":ir(n)})})(e.header)};let sr=wi,dr=[];const lr=["takeover","wallpaper"],cr=(e,t)=>{var n,i;const{initNativeAd:o}=w.getHandlers();null==o||o(e,null!==(i=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==i?i:w.get())},ur=e=>{const t=(e=>{var t;const n=E.getData("alertoryConfigKeywords"),{queryConfig:i,placements:o,tcf:r,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:f}=e,b=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:y;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:o,tcf:r,queryConfig:Object.assign(Object.assign({},i),{batchSize:b})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.17.2",siteConfig:e,renderNativeAd:cr,alertoryConfig:t}},pr=()=>o(void 0,void 0,void 0,function*(){yield sr.setTargeting()}),vr=e=>o(void 0,void 0,void 0,function*(){var t,n;const{prebid:i,tcf:o,pageContext:{isMobileApp:r,countryCode:a}}=w.get(),s=yield R(o,r,a,"loadPlacements"),d=nr(e,s);null===(t=sr.definePlacements)||void 0===t||t.call(sr,d);(null==i?void 0:i.enabled)&&s&&!It()?(v("core loadPlacements prebid enabled"),yield kt()):(v("core load tags invoked without prebid enabled"),yield null===(n=sr.requestPlacements)||void 0===n?void 0:n.call(sr,d))}),gr=(e,t)=>o(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=w.get(),{requestThreshold:o,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[i];a&&(v("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:o,deviceDefaultThreshold:s}),yield ji(a,null!=o?o:s)),a&&(null==r?void 0:r.scroll)&&(v("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),hr=e=>e.some(({targetId:e})=>lr.some(t=>e.includes(t))),mr=e=>o(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),o=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=y}={},pageContext:{deviceType:i}}=w.get(),o=Qn(e),r=Object.keys((null==t?void 0:t[i])||{}).map(e=>o[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...r,...di(s,n)]})(i);for(const e of o)hr(e)?(v("core loadAds without lazy loading",{placementsToLoad:e}),yield vr(e)):e.length&&(v("core loadAds with lazy loading",{placementsToLoad:e}),yield fr(e));const{finnBlink:r}=w.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-BEe1lZD-.js");yield e(n)}}),fr=e=>o(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=w.get(),i=[];if(!t)return v("lazy load is not enabled",{placements:e}),void(yield vr(e));const o=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{v("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const o=e.every(e=>i.includes(e.targetId)),r=e.map(e=>e.targetId);!o&&i.push(...r),!o&&vr(e),v("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:o,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(v("lazy loading - observe element",{targetId:e.targetId,element:t}),o.observe(t))})}),yr=()=>o(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>o(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>o(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=dr.find(({targetId:t})=>t===e.targetId);t&&(yield gr(t,e),dr=dr.filter(e=>e.targetId!==t.targetId))})),yield sr.bindEvents(e)}),br=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;if(v(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return v("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:o,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:s,contextSelector:d}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let c=[];if(r)return qn(),dr=[],Fn(),[];if(o&&(c=null!==(i=qn())&&void 0!==i?i:[]),o&&!l)return[];o&&l&&(dr=[],Fn()),a&&(qn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{En(e.id)})),yield Rn(e),(null==e?void 0:e.pageSectionsSelectors)&&ar(),yield pr();const{clientSidePlacements:u,serverSidePlacements:p}=Ko(Xn(d)),g=[...u,...p];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>sn(e)));e.filter(e=>n.has(e)).forEach(e=>En(e))})(c,g),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>sn(e)));e.filter(e=>!n.has(e)).forEach(e=>Tn(e))})(c,g);let h=u;return s&&(h=h.filter(e=>Ne(e.targetId))),Xo(p,w.get()),h.length>0&&(dr=[...dr,...h.map(e=>Object.assign({},e))],ui(h),vi(h),yield mr(h)),dr}),wr=(e,t,n)=>o(void 0,void 0,void 0,function*(){var i,r;const{initConsentManager:a,getConsentAsync:s}=F(e.tcf,null===(i=e.pageContext)||void 0===i||i.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),d=yield _n(e);yield Ni(),yield _i(a),yield _i(s),v("TCF resolved successfully"),yield((e,t,...n)=>o(void 0,[e,t,...n],void 0,function*(e,t,n=wi){var i,r;sr=n,w.set(e),w.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:a,kilkaya:s,rightColumnSplit:d,finnBlink:l}=e;E.initialize(),window.addEventListener("message",Pi,!1);const[c]=yield Promise.allSettled([sr.setup(),he(e),o(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get();(yield R(t,n,i,"gpt-endpoint"))&&(yield Ee(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),o(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:o}}=w.get(),{getConsentAsync:r}=F(n,0,o),a=yield r();if(e&&t&&a){if(yield Ee(t),document.querySelector(`.${$i}`))return window._brandmetrics=window._brandmetrics||[],void window._brandmetrics.push({cmd:"_loadsurvey"});new MutationObserver((e,t)=>{for(const n of e){if("childList"!==n.type)return;Array.from(n.addedNodes).some(e=>{var t;return null===(t=e.outerHTML)||void 0===t?void 0:t.includes($i)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),D(),o(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=w.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Ee(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(v("Driver has been set up"),null==a?void 0:a.enabled){const{loadNorstat:e}=yield import("./index-fCJM11YZ.js");yield e()}if(v("Libraries have been loaded and trackers have been set"),ar(),yield yr(),yield pr(),v("Page options have been set"),ur(e),v("Advertory is setup on window"),"dom-discovered"===sr.capabilities.tagDefinition)return yield null===(i=sr.requestPage)||void 0===i?void 0:i.call(sr),void v("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=Ko(Xn());if(dr=u,Xo(p,e),ui(dr),vi(dr),yield mr(dr),v("Ads has been loaded",dr),cn(dr),null==l?void 0:l.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-BEe1lZD-.js");yield t(null===(r=null==e?void 0:e.pageContext)||void 0===r?void 0:r.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield import("./index-ColYO0Br.js");t(e.rightColumnSplit)}if(null==s?void 0:s.enabled){const{runKilkaya:t}=yield import("./index-SkYMOZBq.js");yield t(e)}}))(d,t,n),v("Run function resolved successfully")}),Cr=["sponsor","seamless"],Ir=["shopping"],Er=(e,t,n,i)=>{var o;const{image:r,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:f,customTitle4:y,customBody1:b,customBody2:w,customBody3:C,customBody4:I,customBody5:E,customIcon1:T,customIcon2:S,customDisplayUrl1:A,customDisplayUrl2:O}=e,x=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:x(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=Cr.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&T;return x(t?T:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(o=null!=u?u:g)&&void 0!==o?o:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=f?f:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=C?C:"",customBody4:null!=I?I:"",customBody5:null!=E?E:"",logo2:x(S),previewVideoSrc:null!=A?A:"",feedUrl:null!=O?O:""},t)},Tr=(e,t)=>{const n=(i=L,window.location.href.includes(i));var i;const o=new URLSearchParams(window.location.search).get(L),r=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!Ir.includes(t.toLowerCase())?r?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Sr=(e,n,i,o)=>{const r=document.querySelector(`#${e}`);r&&n&&(r.innerHTML=n,((e,n)=>{const i=e.parentElement,{publisher:o,pageType:r}=n,a=o&&Object.values(t).includes(o);i&&a&&$o(o,e,No.NATIVE_AD,r)})(r,i),o())},Ar=(e,t,n)=>{var i;const o=((e,t,n)=>{var i;const{displayTemplates:o,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=Tr(e.targetId,l))&&void 0!==i?i:c,p=ct[t.language||_.NO],v=Er(s,p,d,t);return(s.video?r[u]:o[u]||o.default)(v,t)})(e,t,n);Sr(e.targetId,o,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Bo(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&Zo(r,null===(i=e.native)||void 0===i?void 0:i.customDisplayUrl2)},Or=e=>(t,n)=>{var i;const{targetId:o}=t,r=document.querySelector(`#${o}`);if(!r)return;const a=e.getOptions(null!=n?n:{});Ar(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,r)},xr=()=>{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},kr=e=>{const{siteSpecificConfig:t}=w.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Pr{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return o(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return o(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Lr=9826;class jr{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=w.get();if(t){return{"aa-sch-supply_type":`app_${e===Mn?"phone":Dn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return o(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return o(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=$t("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return o(this,void 0,void 0,function*(){return yield Nt(w.get())})}isTrackingForbidden(){return o(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=Lr}={}}=w.get();return"true"===k("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=w.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return o(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get(),{getConsentAsync:i}=F(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=w.get();return{"aa-sch-page_type":e}}getCountryCodeKeywords(e){return{"aa-sch-country_code":e}}getInventoryTypeKeywords(){return{"aa-sch-inventory_type":"editorial"}}getHasContextKeywords(e){const t=e["aa-sch-context_keyword"];return{"aa-sch-has_context_keyword":Array.isArray(t)&&t.length?1:0}}getPageOptionsFormatDevice(e="desktop"){return"mobile"===e?"phone":e}}const _r=new jr;function $r(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),o=co();return{OS:o,mobileOS:["ios","android"].includes(o)?o:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}_r.prepare.bind(_r);const Nr=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function qr(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Nr.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Fr extends jr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=w.get(),{OS:n,isHybridApp:i}=$r(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return qr(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get(),o=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${o.split("_").pop()||o}_${"article"===i?"article":"front"}`}}}const Rr=new class extends Fr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,o,r,a,s;const d=w.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(r=null===(o=d.pageSetup)||void 0===o?void 0:o.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Pr;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(K(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},me(_.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Mr=Rr.prepare.bind(Rr);class Dr extends jr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return{width:e||n||0,height:t||i||0}}(),t={width:null!==(i=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==i?i:0,height:null!==(r=null===(o=window.screen)||void 0===o?void 0:o.height)&&void 0!==r?r:0};var n,i,o,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return o(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=w.get(),{appMode:t,mobileOS:n}=$r(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===i?"article":"front"}`}}}const Br=new class extends Dr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,r,a,s;const d=w.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(s=null===(a=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===a?void 0:a.keywords)&&void 0!==s?s:{},u=new Pr;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(K(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>o(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===$t("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=u.build(),v=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},me(_.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Ur=Br.prepare.bind(Br);let Hr;const Wr=()=>{(()=>{var e;const{placements:t,pageContext:{deviceType:n}}=w.get(),i=null!==(e=t[n])&&void 0!==e?e:[];return"tablet"===n&&0===i.length?t.desktop:i})().forEach(({targetId:e,adUnitId:t})=>{if(!t)return;const n=document.getElementById(e);n?n.dataset.adUnitId=t:v("relevant-managed requestPage - placement container was not found",{targetId:e})})},Vr=()=>{const{prebid:e}=w.get();return Boolean((null==e?void 0:e.enabled)&&e.manageAdserver&&!It())},zr={name:"relevant-managed",capabilities:{tagDefinition:"dom-discovered",deferredRequest:!1,deferredRender:!1,refresh:!1},setup:()=>o(void 0,void 0,void 0,function*(){var e;const{prebid:t}=w.get();Vr()?(null==t?void 0:t.prebidUrl)?(jt(e=>Z().push(e)),yield Ee(null!==(e=null==t?void 0:t.adServerUrl)&&void 0!==e?e:"https://s1.adform.net/banners/scripts/adx.js"),yield Ee(t.prebidUrl)):v("relevant-managed setup - prebidUrl is required, skipping script loading"):v("relevant-managed setup - managed prebid is disabled, skipping script loading")}),setTargeting:()=>o(void 0,void 0,void 0,function*(){if(!Vr())return;const{pageOptions:e}=w.get(),t={site:{keywords:(n=null==e?void 0:e.keywords,Object.values(null!=n?n:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))}};var n;Z().push(()=>{Y().addPrebidConfig({ortb2:t})})}),requestPage:()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:n}=w.get();if(!Vr())return void v("relevant-managed requestPage - managed prebid is disabled, skipping");if(!(null==e?void 0:e.configId))return void v("relevant-managed requestPage - configId is required, skipping");(yield R(t,null==n?void 0:n.isMobileApp,null==n?void 0:n.countryCode,"relevant-managed-requestPage"))?(Wr(),null==Hr||Hr.emit("adRequested"),Z().push(()=>{v("relevant-managed requestPage - loadPrebid",{configId:e.configId}),Y().loadPrebid({configId:e.configId,noGpt:!0,manageAdserver:!0})})):v("relevant-managed requestPage - consent not granted, skipping")}),bindEvents:e=>o(void 0,void 0,void 0,function*(){Hr=e})},Kr={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:o,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=w.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=w.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(o,l),u=(e=>{const{pageContext:{countryCode:t}}=w.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,o=`${z(t)}-adformat`,r=n?n[o]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Ae)||window.innerWidth>=Ae[e]);return{[o]:i?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=w.get(),n=`${z(t)}-targetid`;return e?{[n]:[e]}:{}})(i),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=xr(),h=(e=>kr(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(o),m=((e,t)=>kr(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(o,{safeFrameAutoInitialSize:!0}),f=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,y=(new Pr).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==s?void 0:s.tag)||void 0===t?void 0:t.reloadKeywords,{[`${z(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:f,invCode:c,keywords:y,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>o(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=w.get();return yield t===_.SE?Ur(e):Mr(e)}),siteEvents:e},Gr=((e,t,n)=>({init:i=>{return r=Object.assign(Object.assign({},i),{siteSpecificConfig:t}),a=e,s=n,o(void 0,void 0,void 0,function*(){v(`Received configuration passed to Advertory: ${JSON.stringify(r)}`),yield wr(r,a,s)});var r,a,s},update:br,renderNativeAd:cr,getVideoPPIDs:Ce,createInitNativeAd:Or,getVideoAdsConfig:Oo}))(Kr,n,zr);export{No as A,Kt as B,_ as C,ct as D,Jt as E,Ke as F,Qe as G,qo as H,Ct as I,rn as J,Oe as K,ht as L,xe as M,t as N,uo as O,vo as P,po as Q,an as R,Be as S,qt as T,Te as U,Kn as V,Gr as W,o as _,Ie as a,In as b,w as c,i as d,qi as e,$o as f,sn as g,R as h,dt as i,be as j,or as k,v as l,rr as m,ir as n,Ro as o,J as p,En as q,Ee as r,ji as s,ci as t,Li as u,St as v,Fo as w,Xt as x,Qt as y,zt as z};
|
package/mtv/es/index-BEe1lZD-.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as n,_ as e,c as i,l as t,g as o,a as r,b as d,d as l,h as a,e as s,u as c,f as u,A as f,s as v}from"./_auto-entry_mtv-DBXSgxts.js";import{xandrAdLoaded as p,finnBlinkLoaded as m}from"./events-DrwOr2mO.js";import"react/jsx-runtime";n('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const y={Blink:"Blink"},h=new Map,g=n=>{var e;if(!h.has(n)){const e=import(/* webpackIgnore: true */n).then(n=>(n=>{for(const[e,i]of Object.entries(y)){const t=n[e];null!=t&&(window[i]=t)}})(n)).catch(e=>{throw h.delete(n),e});h.set(n,e)}return null!==(e=h.get(n))&&void 0!==e?e:Promise.resolve()},b="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",k=n=>{var e,i;const t=document.querySelector(`[id^="${n}"]`);return null!==(i=null===(e=null==t?void 0:t.dataset)||void 0===e?void 0:e.finnBlinkId)&&void 0!==i?i:n},$=(n,e)=>{const{finnBlink:{enabled:t}={}}=i.get(),o=(null==e?void 0:e.enabled)||(n=>{var e;const i=document.querySelector(`[id^="${n}"]`);return!!(null===(e=null==i?void 0:i.dataset)||void 0===e?void 0:e.noBidAd)})(n);if(!o||!t)return null;const{height:r,requireImage:d,position:l,offset:a}=(null==e?void 0:e.sdkPayload)||{};return{selector:`#${k(n)}`,enabled:o,position:null!=l?l:n,height:null!=r?r:100,offset:null!=a?a:200,requireImage:d,advertoryTheme:null==e?void 0:e.advertoryTheme}},w=(n,a,s)=>e(void 0,void 0,void 0,function*(){const{placements:c,pageContext:{deviceType:u},appearanceConfig:f}=i.get();t(`rendering finn blink ad for ${n}`);const v=o(n),h=c[u].find(n=>n.targetId===v),g=$(n,null==h?void 0:h.finnBlink);if(!(null==g?void 0:g.enabled))return t(`Finn blink is not enabled on placement: ${n}`),s&&s(n),void p(n);if((n=>{var e;const i=k(n),t=document.querySelector(`[id^="${i}"]`);return!!(null===(e=null==t?void 0:t.classList)||void 0===e?void 0:e.contains("finn"))})(n))return void t(`Finn blink already loaded ${n}`);const{publisher:b,countryCode:w,finnBlink:C}=a,{sdkPayload:{channel:x}={}}=null!=C?C:{},I=null!=x?x:`${b}.${w}`,j="dark"===(null==f?void 0:f.theme)?"dark":"light";try{const n=yield r();yield(B=Object.assign(Object.assign({},g),{channel:I,userId:n,theme:j}),e(void 0,void 0,void 0,function*(){const{userId:n,theme:e}=B,i=l(B,["userId","theme"]),t=window[y.Blink];if(!t)return;const o=new t({remote:"https://www.finn.no/distribution-front/external/carousel",userId:n,theme:e});yield o.inject(Object.assign({},i))})),m(g.selector.replace("#",""),g.advertoryTheme)}catch(e){t(`Finn blink error ${e}`),s&&s(n),!s&&d(n),p(n)}var B}),C=()=>e(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{isMobileApp:e,countryCode:o}}=i.get();return!!(yield a(n,e,o,"finn-blink"))||(t("Skip loading finn blink ad due to missing TCF consent."),!1)}),x=(n,o,r,l)=>e(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:e}}=i.get();if(t(`loadFinnBlinkAd: loading finn blink ad for ${n}`),!(yield C())||e)return r&&r(n),p(n),void(!r&&d(n));try{yield g(b)}catch(n){console.error(n)}yield w(n,o,r),l&&l()}),I=(n,e)=>{var i;(t(`Appending ${e.id} after ${n.id}`),n.parentElement&&(i=n.parentElement,!Array.from(i.children).some(n=>n.classList.contains("advertory-finn-blink-wrapper"))))?(n.parentElement.style.display="none",n.parentElement.insertAdjacentElement("afterend",e)):t(`Cannot perform afterend on: ${n.id}`)},j=(n,o)=>e(void 0,void 0,void 0,function*(){var e,r;if(!o)return;const{replacementConfig:d}=o,l=null===(e=null==d?void 0:d.adsToReplace)||void 0===e?void 0:e[n],a=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[n];s()&&l&&a?(yield C())&&(yield g(b),l.forEach(([n,e])=>{const o=document.querySelector(`[id^="${n}"]`);if(!o)return;const r=(n=>{const{siteSpecificConfig:{publisherClassName:e}={}}=i.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=n,o.appendChild(r),u(e,r,f.FINN_BLINK),t(`Creating blink container for: ${n}`),o})(e);(n=>{t(`Hiding old ad container: ${n.id}`),n.style.setProperty("display","none","important")})(o),I(o,r),o.dataset.finnBlinkId=e,c().withFullAdsChain(n)})):t(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),B=n=>document.querySelector(`#${n}`),A=n=>e(void 0,void 0,void 0,function*(){if(!n.length)return;const{appearanceConfig:e,pageContext:{deviceType:t}}=i.get(),o=null==e?void 0:e.defaultThreshold[t];for(const e of n){const{requestThreshold:n,targetId:i}=e,t=B(i);t&&(yield v(t,null!=n?n:o))}});export{A as handleFinnBlinkOnlyPlacements,x as loadFinnBlinkAd,j as replaceAdsWithFinnBlink};
|
package/mtv/es/index-B_FeSE0i.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as e,Q as t,R as n,c as r,S as o,U as i,V as d}from"./_auto-entry_mtv-DBXSgxts.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};
|
package/mtv/es/index-CED5rLcJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,x as o,D as t,c as r,y as l,_ as s,z as a,B as n,E as c,F as d,G as i}from"./_auto-entry_mtv-DBXSgxts.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]()},m=(o,t=!0)=>{(o===e.WELCOME_PAGE||o===e.TOPSCROLLER)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},w=()=>{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),w(),(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),w(),o},L=e=>{const o=e.querySelector(".advertory-splash-navbar-wrapper");o&&((e=>{const o=o=>{["Enter","Escape"].includes(o.key)&&f(e)};w(),b(e,"keydown",o)})(e),E(e),w(),o.addEventListener("click",()=>{f(e)}),h(!1))},S=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"})))},k=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&&m(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]:S,[e.TOPSCROLLER]:S,[e.SPLASH]:L,[e.VELVET]:k})[t](o)})(i,u),p(i,u,t,null==l?void 0:l.theme),yield n(),!v&&m(u,!0),c(o,u)});export{M as createTakeoverAd,P as modifyTakeoverAdContent,R as modifyTakeoverIframe};
|
package/mtv/es/index-ColYO0Br.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as t,m as e,n}from"./_auto-entry_mtv-DBXSgxts.js";import"react/jsx-runtime";const r=".advertory-right-column-track",o="--advertory-right-column-track-height",i=t=>t.getBoundingClientRect().top+window.scrollY,a=(t,e)=>`${t}-${e}`,d=(r,d,l)=>{var c;const s=Array.from(null!==(c=r.querySelectorAll(d))&&void 0!==c?c:[]),u=(t=>t.map(t=>{var e;return null===(e=document.querySelector(`[id^="${t}"]`))||void 0===e?void 0:e.parentElement}).map((t,e)=>({point:t,originalIndex:e})).filter(t=>Boolean(t.point)))(l);if(0===u.length)return;const m=i(r);u.forEach(({point:r,originalIndex:d})=>{((r,d,l)=>{const c=i(r),s=a(o,d),u=c-l,m=a("--advertory-right-column-split-point-height",d),v=t(r);e({[s]:n(u),[m]:n(v)})})(r,d+1,m),(r=>{const o=null==r?void 0:r.id;if(!o)return;const i=a("--advertory-right-column-ad-height",o),d=t(r);e({[i]:n(d)})})(s[d])});((t,r)=>{const a=i(t)-r;e({[o]:n(a)})})(u[Math.min(s.length,u.length-1)].point,m)};let l=!1;const c=t=>{if(!(null==t?void 0:t.enabled)||l)return;const{splitPointIDs:e,adSelector:n,trackSelector:o=r}=t,i=document.querySelector(o);if(!i)return;l=!0;const a=()=>{d(i,n,e)};a(),window.addEventListener("resize",a),window.addEventListener("orientationchange",a),window.addEventListener("load",a),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(a)});new ResizeObserver(a).observe(i)};export{c as initRightColumnSplit};
|
package/mtv/es/index-DNFwMO0x.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,O as e,l as n}from"./_auto-entry_mtv-DBXSgxts.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};
|
package/mtv/es/index-Kf3qZpof.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,t,v as o}from"./_auto-entry_mtv-DBXSgxts.js";import"react/jsx-runtime";const r=1e4,n=e=>e.some(e=>e.some(e=>!!e&&t(e,0)));let s;const i=()=>{const{widescreenSwitching:t}=e.get(),{enabled:i,options:{rotationInterval:a=r,widescreenIdPrefix:c}={}}=null!=t?t:{};if(!i)return;const l=((t="widescreen")=>{const{pageSectionsSelectors:{right:o}={}}=e.get();return o?Array.from(document.querySelectorAll(o)).map(e=>Array.from(e.querySelectorAll(`div[id^="${t}"]`))):[]})(c);let y=0,p=Date.now(),d=n(l);if(!l.length)return;s&&window.removeEventListener("scroll",s);const m=(e,t,o)=>{e.forEach(e=>{e&&e.style.setProperty(t,o)})},w=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(l);const u=o(()=>{d||(d=n(l)||d,p=Date.now());Date.now()-p>=a&&((()=>{const e=w(y),t=l.map(e=>e[y]),o=l.map(t=>t[e]);m(t,"opacity","0"),setTimeout(()=>{m(t,"display","none"),m(o,"opacity","0"),m(o,"display","block"),setTimeout(()=>{m(o,"opacity","1")},450)},450)})(),y=w(y),p=Date.now())},1e3);s=u,window.addEventListener("scroll",u)};export{i as initWidescreenSwitching};
|