@schibsted/advertory 3.4.13 → 3.4.14

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.
Files changed (316) hide show
  1. package/aftenposten/cjs/index.js +1 -1
  2. package/aftenposten/es/{_auto-entry_aftenposten-Cl0fdATI.js → _auto-entry_aftenposten-EtY8GywO.js} +1 -1
  3. package/aftenposten/es/{events-DKEPGfkM.js → events-aNNPNIqz.js} +1 -1
  4. package/aftenposten/es/{index-CCE-C1HN.js → index-C0GWciD3.js} +1 -1
  5. package/aftenposten/es/{index-BNB3C6E-.js → index-CGWeMiyd.js} +1 -1
  6. package/aftenposten/es/{index-CHRLj_VV.js → index-Celgx891.js} +1 -1
  7. package/aftenposten/es/{index-C9D1A7fz.js → index-DKswyaY6.js} +1 -1
  8. package/aftenposten/es/{index-JUbNdRuz.js → index-DiTRkWxo.js} +1 -1
  9. package/aftenposten/es/{index-DWEtV0NR.js → index-GljCR_Yl.js} +1 -1
  10. package/aftenposten/es/{index-B9jM8uJp.js → index-R-_EwTMJ.js} +1 -1
  11. package/aftenposten/es/{index-BhbxE_25.js → index-YhGb4swR.js} +1 -1
  12. package/aftenposten/es/index.js +1 -1
  13. package/aftenposten/es/{styles-Cdv34tFr.js → styles-1J1dVECT.js} +1 -1
  14. package/aftenposten/es/{styles-CbWNyowJ.js → styles-BB2SvrTn.js} +1 -1
  15. package/aftenposten/es/{styles-Drrmd6ic.js → styles-BfpczqmL.js} +1 -1
  16. package/aftenposten/es/{styles-CVdL3mGq.js → styles-Blfzermq.js} +1 -1
  17. package/aftenposten/es/{styles-DRo2gfi-.js → styles-Bo8FUe1n.js} +1 -1
  18. package/aftenposten/es/{styles-DhO41e2R.js → styles-CuY2GV3h.js} +1 -1
  19. package/aftenposten/es/{styles-DPLTaMqa.js → styles-DBMUr5Jo.js} +1 -1
  20. package/aftenposten/es/{styles-2jZnGzOL.js → styles-DEM3Gi4L.js} +1 -1
  21. package/aftenposten/es/{styles-BSf3bvgL.js → styles-PAkuxweI.js} +1 -1
  22. package/aftenposten/es/{styles-CkK0N-wj.js → styles-ztiWgibq.js} +1 -1
  23. package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-DmzCVOLI.js → _auto-entry_aftenpostenv2-DHJZKdQn.js} +1 -1
  24. package/aftenpostenv2/es/{events-cGs04mSN.js → events-VvzSMsl7.js} +1 -1
  25. package/aftenpostenv2/es/{index-DWvJchU6.js → index-BT7e8g0Z.js} +1 -1
  26. package/aftenpostenv2/es/{index-CLljdOgE.js → index-BnCsGsiy.js} +1 -1
  27. package/aftenpostenv2/es/{index-Dxxj-XUF.js → index-BzptQywS.js} +1 -1
  28. package/aftenpostenv2/es/{index-BDTGsSwd.js → index-CfiF-crx.js} +1 -1
  29. package/aftenpostenv2/es/{index-BhSR3kGL.js → index-D-wLI-V3.js} +1 -1
  30. package/aftenpostenv2/es/{index-D7ptGGO-.js → index-DBsl_S5J.js} +1 -1
  31. package/aftenpostenv2/es/{index-kaOiEg3O.js → index-LsjimNAy.js} +1 -1
  32. package/aftenpostenv2/es/{index-aNIUHXze.js → index-iU3UTSv8.js} +1 -1
  33. package/aftenpostenv2/es/index.js +1 -1
  34. package/aftenpostenv2/es/{styles-CWIHh5ES.js → styles-BooZMo4j.js} +1 -1
  35. package/aftenpostenv2/es/{styles-BQRJOeWA.js → styles-CAdaLqhC.js} +1 -1
  36. package/aftenpostenv2/es/{styles-Jd_XZ1sX.js → styles-CEK4LgyA.js} +1 -1
  37. package/aftenpostenv2/es/{styles-Bb8KCS67.js → styles-CbL4pB-1.js} +1 -1
  38. package/aftenpostenv2/es/{styles-DcbX8XpP.js → styles-ChnqRzhg.js} +1 -1
  39. package/aftenpostenv2/es/{styles-CjWMsJWa.js → styles-Ci9J7jKv.js} +1 -1
  40. package/aftenpostenv2/es/{styles-BUi1KOiu.js → styles-D08iDSOO.js} +1 -1
  41. package/aftenpostenv2/es/{styles-Cf3flzw_.js → styles-Dg9pvL6a.js} +1 -1
  42. package/aftenpostenv2/es/{styles-Dqbg_h90.js → styles-DynezWrn.js} +1 -1
  43. package/aftenpostenv2/es/{styles-D4CN1Pbp.js → styles-Te_pNEb0.js} +1 -1
  44. package/aftonbladet/cjs/index.js +1 -1
  45. package/aftonbladet/es/{_auto-entry_aftonbladet-C8UPlgHW.js → _auto-entry_aftonbladet-B3k7YOBF.js} +1 -1
  46. package/aftonbladet/es/{events-CqHPJ25E.js → events-Crg3L5_c.js} +1 -1
  47. package/aftonbladet/es/{index-C-aG3CSr.js → index-B1L0P1wI.js} +1 -1
  48. package/aftonbladet/es/{index-BfYyv1Y3.js → index-Bobb62Hm.js} +1 -1
  49. package/aftonbladet/es/{index-DbLqYJQ1.js → index-ByNCqWG8.js} +1 -1
  50. package/aftonbladet/es/{index-DPBovzTm.js → index-CrfNDcKV.js} +1 -1
  51. package/aftonbladet/es/{index-DRC_jUIR.js → index-CyMfmkio.js} +1 -1
  52. package/aftonbladet/es/{index-wu_uZJ3I.js → index-D4x98Sy_.js} +1 -1
  53. package/aftonbladet/es/{index-DMXydSy1.js → index-DVhUFIWV.js} +1 -1
  54. package/aftonbladet/es/{index-DD-wmA3b.js → index-gy_UT4eF.js} +1 -1
  55. package/aftonbladet/es/index.js +1 -1
  56. package/aftonbladet/es/{styles-CRybZj4C.js → styles-4FPciXKr.js} +1 -1
  57. package/aftonbladet/es/{styles-7WtKxzhO.js → styles-7ca24lPW.js} +1 -1
  58. package/aftonbladet/es/{styles-BvQVtKqM.js → styles-CWd0qunX.js} +1 -1
  59. package/aftonbladet/es/{styles-B2yIShmI.js → styles-_3OqNUti.js} +1 -1
  60. package/aftonbladet/es/{styles-B7F00SJC.js → styles-eU2MLwjj.js} +1 -1
  61. package/aftonbladet/es/{styles-CrqmyCRC.js → styles-r32kR33X.js} +1 -1
  62. package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-BRG4vCT_.js → _auto-entry_aftonbladetv2-C6dng7Av.js} +1 -1
  63. package/aftonbladetv2/es/{events-F2MAm7hP.js → events-C7hVJNRc.js} +1 -1
  64. package/aftonbladetv2/es/{index-vrLkrA5Q.js → index-3bjoIdXb.js} +1 -1
  65. package/aftonbladetv2/es/{index-CH80zQJg.js → index-7JuA3m3Q.js} +1 -1
  66. package/aftonbladetv2/es/{index-DK6d1n72.js → index-BzWc5vHd.js} +1 -1
  67. package/aftonbladetv2/es/{index-BxhMMu8S.js → index-CuuWwcD4.js} +1 -1
  68. package/aftonbladetv2/es/{index-DSy4XN0k.js → index-D-111ysD.js} +1 -1
  69. package/aftonbladetv2/es/{index-mZot56VG.js → index-DUK2MbMc.js} +1 -1
  70. package/aftonbladetv2/es/{index-3t-TtZA7.js → index-DttZBtcH.js} +1 -1
  71. package/aftonbladetv2/es/{index-Bmq3vLe7.js → index-myD5LMzf.js} +1 -1
  72. package/aftonbladetv2/es/index.js +1 -1
  73. package/aftonbladetv2/es/{styles-B_SLUOOm.js → styles-B0JWyUDb.js} +1 -1
  74. package/aftonbladetv2/es/{styles-BDXIY7L6.js → styles-CTVusyII.js} +1 -1
  75. package/aftonbladetv2/es/{styles-D9MbCPbR.js → styles-CYWNLpOe.js} +1 -1
  76. package/aftonbladetv2/es/{styles-Bf-nc3ar.js → styles-CgfgGfFC.js} +1 -1
  77. package/aftonbladetv2/es/{styles-tb8NbiL9.js → styles-DK83RzaC.js} +1 -1
  78. package/aftonbladetv2/es/{styles-BnM-vUtg.js → styles-JlDcWbZV.js} +1 -1
  79. package/bt/cjs/index.js +1 -1
  80. package/bt/es/{_auto-entry_bt-Bk5yuKAV.js → _auto-entry_bt-DUcmJ2ku.js} +1 -1
  81. package/bt/es/{events-BiZTUccz.js → events-Cde2i6dy.js} +1 -1
  82. package/bt/es/{index-CCWVerJg.js → index-BHn9ynLP.js} +1 -1
  83. package/{sa/es/index-CVo2bvHa.js → bt/es/index-BOwPxMrI.js} +1 -1
  84. package/bt/es/{index-PBYkoefE.js → index-BeTyrZf3.js} +1 -1
  85. package/bt/es/{index-WW1ggdD2.js → index-Bt3KxlOO.js} +1 -1
  86. package/bt/es/{index-C0SDG27K.js → index-DCFEAOKQ.js} +1 -1
  87. package/bt/es/{index-Ctn9l5sF.js → index-DGWOOPcW.js} +1 -1
  88. package/bt/es/{index-D4CTTpHq.js → index-FBqdAJVX.js} +1 -1
  89. package/bt/es/{index-47maYTIw.js → index-LjfBD_xy.js} +1 -1
  90. package/bt/es/index.js +1 -1
  91. package/bt/es/{styles-DzpOal2h.js → styles-8d9uM6fs.js} +1 -1
  92. package/bt/es/{styles-BvtgJJvA.js → styles-BfRFHwVs.js} +1 -1
  93. package/{sa/es/styles-B0fUHg6e.js → bt/es/styles-C8DnuqSs.js} +1 -1
  94. package/bt/es/{styles-D-Vefwdc.js → styles-C_4XMT-G.js} +1 -1
  95. package/bt/es/{styles-vp9TKNef.js → styles-CcNwWif0.js} +1 -1
  96. package/bt/es/{styles-D3b_zDLG.js → styles-DRJ2KyA3.js} +1 -1
  97. package/{sa/es/styles-Cn4mlkwu.js → bt/es/styles-DeLtxm-7.js} +1 -1
  98. package/bt/es/{styles-Cj7qoYzk.js → styles-SO94Mupz.js} +1 -1
  99. package/bt/es/{styles-K196H2g8.js → styles-SVz6chgd.js} +1 -1
  100. package/btv2/es/{_auto-entry_btv2-yQhIazsa.js → _auto-entry_btv2-D2FHz3QG.js} +1 -1
  101. package/btv2/es/{events-BzjCXDmD.js → events-CCT83Nij.js} +1 -1
  102. package/btv2/es/{index-DXx3mLih.js → index-7Ez_Ronh.js} +1 -1
  103. package/{sav2/es/index-DK1oTN1u.js → btv2/es/index-BHOfxyyp.js} +1 -1
  104. package/btv2/es/{index-CH4xAaPD.js → index-BHvGK5b6.js} +1 -1
  105. package/btv2/es/{index-DSSpySZH.js → index-C5tXlI-6.js} +1 -1
  106. package/btv2/es/{index-ypDJbRmv.js → index-C7gvPO7W.js} +1 -1
  107. package/btv2/es/{index-i76Dw8aX.js → index-Ct5dvsuS.js} +1 -1
  108. package/btv2/es/{index-CrEzAmOq.js → index-MrzR8hOq.js} +1 -1
  109. package/btv2/es/{index-D2xGJKyH.js → index-pgTzQGZK.js} +1 -1
  110. package/btv2/es/index.js +1 -1
  111. package/{vgv2/es/styles-BPT-qUNq.js → btv2/es/styles-Bo_Iovmx.js} +1 -1
  112. package/{sav2/es/styles-DJw6pIzH.js → btv2/es/styles-C5hdNxqP.js} +1 -1
  113. package/btv2/es/{styles-DQuTQjle.js → styles-CMzhWGxU.js} +1 -1
  114. package/{sav2/es/styles-BlHvtXYb.js → btv2/es/styles-CeXhXj2f.js} +1 -1
  115. package/{sav2/es/styles-Cbs2drMD.js → btv2/es/styles-DFgxH_36.js} +1 -1
  116. package/{vgv2/es/styles-BBZMSzoF.js → btv2/es/styles-DNLeCYjA.js} +1 -1
  117. package/{sav2/es/styles-B6yetf03.js → btv2/es/styles-DsdyDZfJ.js} +1 -1
  118. package/btv2/es/{styles-Cex1nobv.js → styles-KxHIpCeb.js} +1 -1
  119. package/e24/es/{_auto-entry_e24-B8BbWljb.js → _auto-entry_e24-Cz-sabh7.js} +1 -1
  120. package/e24/es/{events-Bn2T7T9a.js → events-C7lcFBm7.js} +1 -1
  121. package/e24/es/{index-BZcVv812.js → index-AkgArUou.js} +1 -1
  122. package/e24/es/{index-dWe5Rx5B.js → index-BaVeOvRN.js} +1 -1
  123. package/e24/es/{index-ByW4jH_X.js → index-BfVWJtjH.js} +1 -1
  124. package/e24/es/{index-CF9p3gqF.js → index-BfjKelU3.js} +1 -1
  125. package/{tv4/es/index-BRrn8QKt.js → e24/es/index-CX3Bi8nn.js} +1 -1
  126. package/e24/es/{index-CduaDIrS.js → index-Cc0xxQD8.js} +1 -1
  127. package/e24/es/{index-BQv3Sxf9.js → index-HsI1zISB.js} +1 -1
  128. package/e24/es/{index-W3BxJEHG.js → index-KfmbuDFv.js} +1 -1
  129. package/e24/es/index.js +1 -1
  130. package/e24/es/{styles-BpT05fHe.js → styles-BdU3EKpj.js} +1 -1
  131. package/e24/es/{styles-pdDQ694q.js → styles-C9DG7Usb.js} +1 -1
  132. package/e24/es/{styles-f5hwcx2V.js → styles-CCG3z8rI.js} +1 -1
  133. package/e24/es/{styles-BZ62iRdG.js → styles-CHMD6Bqh.js} +1 -1
  134. package/e24/es/{styles-Ce1bu28P.js → styles-CIGC9QQN.js} +1 -1
  135. package/e24/es/{styles-Cf4ypcKM.js → styles-CNyrqPLq.js} +1 -1
  136. package/e24/es/{styles-0iI9RREc.js → styles-CT29VQHg.js} +1 -1
  137. package/e24/es/{styles-CdBHjteb.js → styles-CtnIzp2j.js} +1 -1
  138. package/e24/es/{styles-CrOq1uSB.js → styles-DSyXEM0K.js} +1 -1
  139. package/e24/es/{styles-BiDCLCW7.js → styles-DvC11JEH.js} +1 -1
  140. package/{tv4/es/styles-CWeSNH-n.js → e24/es/styles-VDl0rmFd.js} +1 -1
  141. package/fotbollskanalen/cjs/index.js +1 -1
  142. package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-awwUwT11.js → _auto-entry_fotbollskanalen-FkLZW4D2.js} +1 -1
  143. package/fotbollskanalen/es/{events-szJnDbry.js → events-BWA-2thH.js} +1 -1
  144. package/fotbollskanalen/es/{index-CrDNIO4l.js → index-1gBV8-hR.js} +1 -1
  145. package/fotbollskanalen/es/{index-CNnVOwXm.js → index-3djT3sHR.js} +1 -1
  146. package/fotbollskanalen/es/{index-CjLD1zkx.js → index-B-_ubU0_.js} +1 -1
  147. package/fotbollskanalen/es/{index-ZvfM5Yz1.js → index-B8j2m66Z.js} +1 -1
  148. package/fotbollskanalen/es/{index-BQHqJCPe.js → index-BwbYIEOX.js} +1 -1
  149. package/fotbollskanalen/es/{index-D7CjRRto.js → index-CWTaJpBa.js} +1 -1
  150. package/fotbollskanalen/es/{index-qdqyfUtE.js → index-DVYZ3NYl.js} +1 -1
  151. package/fotbollskanalen/es/{index-DvCXcWg2.js → index-V5FBDx0k.js} +1 -1
  152. package/fotbollskanalen/es/index.js +1 -1
  153. package/fotbollskanalen/es/{styles-RQCqAO4d.js → styles-0JAjVhsb.js} +1 -1
  154. package/godt/cjs/index.js +1 -1
  155. package/kilkaya/cjs/index.js +1 -1
  156. package/kilkaya/es/index.js +1 -1
  157. package/klart/cjs/index.js +1 -1
  158. package/koket/cjs/index.js +1 -1
  159. package/koket/es/{_auto-entry_koket-B5W_TYr9.js → _auto-entry_koket-CEn1sb81.js} +1 -1
  160. package/koket/es/{events-BdWyZJzS.js → events-DhH916KC.js} +1 -1
  161. package/koket/es/{index-DkSEuan0.js → index-BYEYg5n6.js} +1 -1
  162. package/{svdv2/es/index-C4pN98HM.js → koket/es/index-Bu6TB0DP.js} +1 -1
  163. package/koket/es/{index-BpEUYR1h.js → index-DHTr3or4.js} +1 -1
  164. package/koket/es/{index-CQRM1_9Z.js → index-DTtS6hyT.js} +1 -1
  165. package/koket/es/{index-DKcphVAX.js → index-DZzMpwTx.js} +1 -1
  166. package/koket/es/{index-D3ygEfot.js → index-bAd1NCOu.js} +1 -1
  167. package/koket/es/{index-0VMjhDYm.js → index-eMen7DRS.js} +1 -1
  168. package/{svdv2/es/index-BFuceDfK.js → koket/es/index-ypZ2A-fD.js} +1 -1
  169. package/koket/es/index.js +1 -1
  170. package/{svdv2/es/styles-CsRH7OwY.js → koket/es/styles-B_H1HQkP.js} +1 -1
  171. package/minmote/cjs/index.js +1 -1
  172. package/package.json +1 -1
  173. package/pent/cjs/index.js +1 -1
  174. package/sa/cjs/index.js +1 -1
  175. package/sa/es/{_auto-entry_sa-Bb5FVWBc.js → _auto-entry_sa-Br3iro3o.js} +1 -1
  176. package/sa/es/{events-CpHcIBzh.js → events-DmkSNbn4.js} +1 -1
  177. package/sa/es/{index-Bl-YU1dP.js → index-BKdF7HJV.js} +1 -1
  178. package/sa/es/{index-BGQPYUjf.js → index-C3-dT3Da.js} +1 -1
  179. package/sa/es/{index-CwCnQRNv.js → index-CFDGnu0F.js} +1 -1
  180. package/sa/es/{index-Dd1Y97lw.js → index-CURdCwBP.js} +1 -1
  181. package/{bt/es/index-BgBCbmKK.js → sa/es/index-ClURBZHT.js} +1 -1
  182. package/sa/es/{index-tLG8ciGB.js → index-DN-YIKca.js} +1 -1
  183. package/sa/es/{index-Dff3FrSE.js → index-DdjFNLfi.js} +1 -1
  184. package/sa/es/{index-Dm912f7j.js → index-DlfjcCfo.js} +1 -1
  185. package/sa/es/index.js +1 -1
  186. package/{vg/es/styles-C7LhgQkX.js → sa/es/styles-B-lO9R-E.js} +1 -1
  187. package/{bt/es/styles-Dxz3L0fX.js → sa/es/styles-BNr1wnJP.js} +1 -1
  188. package/sa/es/{styles-BgvUhWZT.js → styles-BinlqIzR.js} +1 -1
  189. package/sa/es/{styles-CFJdZolS.js → styles-BqJmPjkx.js} +1 -1
  190. package/{vg/es/styles-BS_Oh73M.js → sa/es/styles-Bz__iovu.js} +1 -1
  191. package/sa/es/{styles-BzaRI9FD.js → styles-CKXkPSK7.js} +1 -1
  192. package/sa/es/{styles-CViyCPXH.js → styles-D6Yw1Ac5.js} +1 -1
  193. package/sa/es/{styles-DwXHz4p-.js → styles-Dl9lSG5k.js} +1 -1
  194. package/sa/es/{styles-6eCduJjk.js → styles-nIWjdf4Q.js} +1 -1
  195. package/sav2/es/{_auto-entry_sav2-AZVx6DD8.js → _auto-entry_sav2-D7Zkf3q3.js} +1 -1
  196. package/sav2/es/{events-Dog8n166.js → events-CLjaEfKg.js} +1 -1
  197. package/sav2/es/{index-DlVGuIRO.js → index-B9vqocMj.js} +1 -1
  198. package/{btv2/es/index-DCAju2n6.js → sav2/es/index-BpNenTh6.js} +1 -1
  199. package/sav2/es/{index-IfeBZfAv.js → index-C4g2W0Sb.js} +1 -1
  200. package/sav2/es/{index-C2vTQtRr.js → index-CFBp0gWl.js} +1 -1
  201. package/sav2/es/{index-8h2QQSc2.js → index-CtpIO46D.js} +1 -1
  202. package/sav2/es/{index-BVyGMuqV.js → index-D2OGiVeA.js} +1 -1
  203. package/sav2/es/{index-CqRijYqt.js → index-DF8KOTU3.js} +1 -1
  204. package/sav2/es/{index-CFrKD4N4.js → index-DR45cNWr.js} +1 -1
  205. package/sav2/es/index.js +1 -1
  206. package/sav2/es/{styles-B3oMClUn.js → styles-4VHKUOCA.js} +1 -1
  207. package/{vgv2/es/styles-ByxjhGhY.js → sav2/es/styles-AZhdSm8U.js} +1 -1
  208. package/{btv2/es/styles--cN6_CNi.js → sav2/es/styles-B0lS7d1J.js} +1 -1
  209. package/{btv2/es/styles-wXMjHens.js → sav2/es/styles-B4-CHFMj.js} +1 -1
  210. package/sav2/es/{styles-3YwI1h2-.js → styles-B6Tn2m5H.js} +1 -1
  211. package/sav2/es/{styles-RC2bhv68.js → styles-DR2_niKK.js} +1 -1
  212. package/sav2/es/{styles-B3vIzWMl.js → styles-RoErDfv8.js} +1 -1
  213. package/{btv2/es/styles-D_OVqIdW.js → sav2/es/styles-l-8lIA-0.js} +1 -1
  214. package/svd/cjs/index.js +1 -1
  215. package/svd/es/{_auto-entry_svd-CENb3dWh.js → _auto-entry_svd-EeywsUFy.js} +1 -1
  216. package/svd/es/{events-CzwVC4qY.js → events-BGNp0ea8.js} +1 -1
  217. package/svd/es/{index-AxMmynyO.js → index-29Jf_Biv.js} +1 -1
  218. package/{e24/es/index-C5JK4Qx4.js → svd/es/index-BIwR4oxJ.js} +1 -1
  219. package/svd/es/{index-D07O6Cdm.js → index-BtDN90s0.js} +1 -1
  220. package/svd/es/{index-5ln_jpoV.js → index-CKr8OvT_.js} +1 -1
  221. package/svd/es/{index-Dv1udWqy.js → index-D6Ta9osQ.js} +1 -1
  222. package/svd/es/{index-ClvSP2ZW.js → index-Dd5XL9Bh.js} +1 -1
  223. package/svd/es/{index-COmMOm0t.js → index-U6-8PbJh.js} +1 -1
  224. package/svd/es/{index-Z_kOo7dB.js → index-yLNHfxRN.js} +1 -1
  225. package/svd/es/index.js +1 -1
  226. package/svd/es/{styles-Dn6Zt-RJ.js → styles-1X-vMM3I.js} +1 -1
  227. package/svd/es/{styles-DxYChK1b.js → styles-5uj-ZsHl.js} +1 -1
  228. package/svd/es/{styles--z8Dgl02.js → styles-BKaQTDGq.js} +1 -1
  229. package/svd/es/{styles-BWFlVQnU.js → styles-Cus0jeG9.js} +1 -1
  230. package/svd/es/{styles-DPnCh2t5.js → styles-DEd63ZFk.js} +1 -1
  231. package/svd/es/{styles-T716n3-R.js → styles-DyN1NmcS.js} +1 -1
  232. package/svdv2/es/{_auto-entry_svdv2-B2oqDqqQ.js → _auto-entry_svdv2-BOdsgENe.js} +1 -1
  233. package/svdv2/es/{events-DcyH6O_V.js → events-DqZfw4u-.js} +1 -1
  234. package/svdv2/es/{index-BxwG5_mt.js → index-2odxm5tq.js} +1 -1
  235. package/svdv2/es/{index-S3a66jhs.js → index-C4rimTjh.js} +1 -1
  236. package/{koket/es/index-B4RxuN92.js → svdv2/es/index-CbGdqBCP.js} +1 -1
  237. package/svdv2/es/{index-DfLPDKWG.js → index-CtUznPAK.js} +1 -1
  238. package/svdv2/es/{index-D3YfK_Rr.js → index-DXWYk6cz.js} +1 -1
  239. package/svdv2/es/{index-Ba6e0PrX.js → index-EpnJhmcV.js} +1 -1
  240. package/svdv2/es/{index-hQ40Xo1i.js → index-I-xNTWVP.js} +1 -1
  241. package/{koket/es/index-BMfC4ihY.js → svdv2/es/index-yCwBuZEJ.js} +1 -1
  242. package/svdv2/es/index.js +1 -1
  243. package/{koket/es/styles-CDfsgc7e.js → svdv2/es/styles-9t16wRK2.js} +1 -1
  244. package/svdv2/es/{styles-B2ke3usj.js → styles-BUjiG59F.js} +1 -1
  245. package/svdv2/es/{styles-ygGFK_Nz.js → styles-CA4Z2e2v.js} +1 -1
  246. package/svdv2/es/{styles-CrLSHnyW.js → styles-CuKhob1v.js} +1 -1
  247. package/svdv2/es/{styles-DoZ4OR3i.js → styles-DToIRCe4.js} +1 -1
  248. package/svdv2/es/{styles-Cpk3jqGg.js → styles-DxAKuP0Z.js} +1 -1
  249. package/tek/cjs/index.js +1 -1
  250. package/tv4/cjs/index.js +1 -1
  251. package/tv4/es/{_auto-entry_tv4-B41KwUm2.js → _auto-entry_tv4-BIyw3FfG.js} +1 -1
  252. package/tv4/es/{events-wcexbD6c.js → events-C0sezdBn.js} +1 -1
  253. package/tv4/es/{index-zUieoZtt.js → index-BpzCvrHU.js} +1 -1
  254. package/tv4/es/{index-CojPSAod.js → index-C3N6OygM.js} +1 -1
  255. package/tv4/es/{index-CJLyjRUy.js → index-CDm1z5Zz.js} +1 -1
  256. package/tv4/es/{index-CJrmaByc.js → index-CZmxzuAB.js} +1 -1
  257. package/{svd/es/index-CtQAlx1i.js → tv4/es/index-CeRWWVnw.js} +1 -1
  258. package/tv4/es/{index-DwwSIWUX.js → index-D6j9NyVD.js} +1 -1
  259. package/tv4/es/{index-DOPye16D.js → index-DDWIYeu-.js} +1 -1
  260. package/tv4/es/{index-C27mV0sI.js → index-sIym3nCc.js} +1 -1
  261. package/tv4/es/index.js +1 -1
  262. package/{e24/es/styles-DbPaaQhx.js → tv4/es/styles-CFq95Psg.js} +1 -1
  263. package/tvnu/cjs/index.js +1 -1
  264. package/vg/cjs/index.js +1 -1
  265. package/vg/es/{_auto-entry_vg-DKyKS-W5.js → _auto-entry_vg-2d1xLWdJ.js} +1 -1
  266. package/vg/es/{events-Ca8PEFxH.js → events-BuIHSL2h.js} +1 -1
  267. package/vg/es/{index-CY5_yPNz.js → index-20ZWVGEc.js} +1 -1
  268. package/vg/es/{index-gh-qdWl3.js → index-BDINj96k.js} +1 -1
  269. package/vg/es/{index-2ViM6Z_E.js → index-CA0WZ6Ax.js} +1 -1
  270. package/vg/es/{index-iwIx2csi.js → index-CCJ1nJj9.js} +1 -1
  271. package/vg/es/{index-2HBwWrDZ.js → index-CZuZrMsL.js} +1 -1
  272. package/vg/es/{index-lAaEINKY.js → index-D2Jjx9PT.js} +1 -1
  273. package/vg/es/{index-Dw4tkJm9.js → index-DTQcufJF.js} +1 -1
  274. package/vg/es/{index-BhoMjnwi.js → index-Dl49HE4w.js} +1 -1
  275. package/vg/es/index.js +1 -1
  276. package/{bt/es/styles-B1VaBJsk.js → vg/es/styles-BLEcq5zd.js} +1 -1
  277. package/vg/es/{styles-CEOa8SJF.js → styles-BZEN7d7Q.js} +1 -1
  278. package/vg/es/{styles-B7mPwht_.js → styles-Bo3zTh_r.js} +1 -1
  279. package/vg/es/{styles-h_Sz1ik5.js → styles-Bqoueq7w.js} +1 -1
  280. package/vg/es/{styles-CfChsdxf.js → styles-BrTe9i2l.js} +1 -1
  281. package/vg/es/{styles-CcSukju-.js → styles-Bz0xWAPo.js} +1 -1
  282. package/vg/es/{styles-COAPuyTC.js → styles-CCZ98LB_.js} +1 -1
  283. package/vg/es/{styles-BoAqtXI-.js → styles-CQOliiLX.js} +1 -1
  284. package/vg/es/{styles-Cq8gyMtO.js → styles-Cq0YVuP-.js} +1 -1
  285. package/vg/es/{styles-DGCn2CYN.js → styles-EesYVlqx.js} +1 -1
  286. package/{sa/es/styles-Bzr7re6i.js → vg/es/styles-J6ZIkWWg.js} +1 -1
  287. package/vg/es/{styles-DeJdP1N1.js → styles-NumU-nPs.js} +1 -1
  288. package/vg/es/{styles-KWo4tdyB.js → styles-PevLCSy7.js} +1 -1
  289. package/vg/es/{styles-DyU85Yem.js → styles-h04QFm1i.js} +1 -1
  290. package/vg/es/{styles-CxEdAEsm.js → styles-jFF5Vdp2.js} +1 -1
  291. package/vgv2/es/{_auto-entry_vgv2-BOwVYPRZ.js → _auto-entry_vgv2-D8TcsAHG.js} +1 -1
  292. package/vgv2/es/{events-DNkN18vT.js → events-DEsiy1oQ.js} +1 -1
  293. package/vgv2/es/{index-C9W2H7yU.js → index-7WHfLNBO.js} +1 -1
  294. package/vgv2/es/{index-StiNpJYN.js → index-B3ngGiHs.js} +1 -1
  295. package/vgv2/es/{index-C1ElJMPL.js → index-B7Qwcv3E.js} +1 -1
  296. package/vgv2/es/{index-DNScSEfq.js → index-BSlqbyek.js} +1 -1
  297. package/vgv2/es/{index-Bg9q612m.js → index-DGISJUMb.js} +1 -1
  298. package/vgv2/es/{index-DK-aVwq5.js → index-Dy1kdc5b.js} +1 -1
  299. package/vgv2/es/{index-CFfew_Hr.js → index-OH40eW-t.js} +1 -1
  300. package/vgv2/es/{index-BAOSiCkF.js → index-oFKUHxJ1.js} +1 -1
  301. package/vgv2/es/index.js +1 -1
  302. package/vgv2/es/{styles-CYFBwqUu.js → styles-B2B95hc3.js} +1 -1
  303. package/vgv2/es/{styles-C1D_9t7l.js → styles-B6GKsM48.js} +1 -1
  304. package/vgv2/es/{styles-BEfPRcna.js → styles-BP1mlW3y.js} +1 -1
  305. package/vgv2/es/{styles-BPnYKeGp.js → styles-C8ervY_s.js} +1 -1
  306. package/{btv2/es/styles-BlLbcdMF.js → vgv2/es/styles-CLpzB4TP.js} +1 -1
  307. package/{btv2/es/styles-DEI95laR.js → vgv2/es/styles-CdXBCGzU.js} +1 -1
  308. package/vgv2/es/{styles-QY_ZMd8I.js → styles-CevEX1M3.js} +1 -1
  309. package/vgv2/es/{styles-BcpiLYlT.js → styles-D6-Q2fZt.js} +1 -1
  310. package/vgv2/es/{styles-D6HQ6xcn.js → styles-DOTBy6aM.js} +1 -1
  311. package/vgv2/es/{styles-C3B5JUB_.js → styles-Dqe1Vqpx.js} +1 -1
  312. package/vgv2/es/{styles-Dbde7ciA.js → styles-DuZv94it.js} +1 -1
  313. package/vgv2/es/{styles-CGoOi8H3.js → styles-DwuSyeJg.js} +1 -1
  314. package/vgv2/es/{styles-BeBDnUVA.js → styles-KY3tCqxT.js} +1 -1
  315. package/{btv2/es/styles-rgnDm1KE.js → vgv2/es/styles-uRcDFP1H.js} +1 -1
  316. package/vgv2/es/{styles-CC39I9et.js → styles-uYs9ct2S.js} +1 -1
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const i={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},r={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen"},o={publisherClassName:r.TV4,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=d(function(){if(c)return l;c=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var a={};return i.isMergeableObject(e)&&r(e).forEach(function(t){a[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?a[r]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(r,i)(e[r],t[r],i):a[r]=n(t[r],i))}),a}function s(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(t)?s?o.arrayMerge(t,r,o):a(t,r,o):n(r,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}());const p=["placements","takeover","refreshConfig","editory"],v={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},g=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},h=(e,t)=>{console.warn("[Advertory WARN]: ",e)},m=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||h("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||h("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||h("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||h("pageContext.deviceType is required."),n||h("pageOptions is required."),i||h("placements is required."),(null==r?void 0:r.defaultThreshold)||h("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i;const r=e.pageSectionsSelectors,o=[{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"}];for(const{flag:e,property:t,featureName:n}of o)e&&!(null==r?void 0:r[t])&&h(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},y=6;class f{set(e){m(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const n of p){const i=e[n];void 0!==i&&(t[n]=i)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}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=u(f.DEFAULT_SITE_HANDLERS,e)}}f.DEFAULT_SITE_HANDLERS={siteEvents:v,initNativeAd:()=>{}};const w=new f,b=w.modifyConfigProperties.bind(w);class x{initialize(){this.DATA=Object.assign({},x.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)}}x.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const E=new x,C=864e5,I=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return g("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=C)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=C)=>{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 g("Error with parsing localStorage data"),null}}}})(),A="glimrTags",T=["glwe_","glwet_"],S={geofenceTags:[],geoTags:[],weatherTags:[]},k=e=>new URLSearchParams(window.location.search).get(e),P="takeover",O="native_override_desc2",L=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 g("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(g("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{g("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{g("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);g("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),j={NO:"no",SE:"se"},N="cmp:loaded";let D="undefined"!=typeof window?window._tcf_:void 0,M=!1;const _=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=k("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(g("TCF bypass param detected, returning consent: true"),!0):(g("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if(M)return null;if(!D)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=D.getConsentedToAllSync();return g(`TCF consented to all is: ${t}`),D.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(g("Getting TCF consent manager..."),window._tcf_)return g("TCF consent manager is already available"),D=window._tcf_,void e(D);g("TCF consent manager is not available");const n=()=>{g("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(D=window._tcf_,e(D)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(N,n),M=!0,t(new Error("Timeout waiting for CMP to load"))},r);g("Listening for CMP loaded event..."),document.addEventListener(N,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return g(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===j.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===j.NO;if(t||i)return g("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield L(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!D)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(()=>{g("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);D.onTcfReady(()=>{g("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),D.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},R=(e,t,n,...i)=>s(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return g(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return g(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=_(e,0,n);return(yield r())?(g(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(g(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),F=(...e)=>s(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:r}=_(t,0,i);return yield r()}),q=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=w.get();if(!(yield F())||!(null==e?void 0:e.enabled))return void g("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{I.setWithTimestamp(A,{tags:e,tagMappings:t}),n(!0)})})}catch(e){g(`Error during getting glimr data: ${e}`)}else g("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),$={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"},B=e=>T.some(t=>e.startsWith(t)),U=e=>e.startsWith("glgc_"),V=e=>e.startsWith("glci_"),H=e=>!B(e)&&!U(e),z=e=>e===j.NO?"no-sno":"se-generic",W=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield F(e);if(!(null==i?void 0:i.enabled)||!o)return g("No consent for getting glimr tags."),{};const a=z(r),s=K(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),K=(e,t)=>{const n=G();if(!n)return S;const i=((e=[])=>e.filter(B))(n),r=((e=[])=>e.filter(U))(n),o=((e=[],t,n)=>{var i;const r=e.filter(H);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=$[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},G=()=>{const e=I.getByTimestamp(A);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},J=()=>{var e;return((e=[])=>e.filter(V))(null!==(e=G())&&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),X=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:r}}=w.get(),o=[`${z(r)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...i?o:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},Z={get:(e,t)=>s(void 0,void 0,void 0,function*(){const n=yield fetch(e,t);if(!n.ok)throw new Error(n.statusText);return yield n.json()}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ee="advertory:ppids-cache",te={[j.SE]:`SCH${j.SE.toUpperCase()}-EnvHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-EnvHash`},ne={[j.SE]:`SCH${j.SE.toUpperCase()}-UserHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-UserHash`},ie={[j.SE]:`sch${j.SE}-envhash-v3`,[j.NO]:`sch${j.NO}-envhash-v3`},re={[j.SE]:`sch${j.SE}-userhash-v3`,[j.NO]:`sch${j.NO}-userhash-v3`},oe={[j.SE]:`'sch${j.SE}-iosid-v3'`,[j.NO]:`'sch${j.NO}-iosid-v3'`},ae={[j.SE]:`sch${j.SE}-androidid-v3`,[j.NO]:`sch${j.NO}-androidid-v3`},se={[j.SE]:"sdrn:schibsted.com:user",[j.NO]:"sdrn:spid.no:user"};class de{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 le=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||g("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:""}},ce=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,i,r,o,a,s,d,l,c,u,p;const v=I.get(ee),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||g("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});I.set(ee,r)}hashPPIDs(e,t){return s(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield Z.post(t,n,e)}catch(e){return g("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${se[t]}:${n}`:null}))(t,n),r=yield(e=>s(void 0,void 0,void 0,function*(){const t=yield e.getEnvironmentId();return t?`sdrn:schibsted:environment:${t}`:null}))(t),o=window.advertory_idfv,a=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"}},o?{idfv:{plain:o}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},ue=e=>s(void 0,void 0,void 0,function*(){const{tracker:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield R(n,r,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([le.processPPIDs(t,null==n?void 0:n.timeout),ce.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){g(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),pe=e=>{const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ce.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]).add(o,oe[e]).add(a,ae[e]).buildEids()}]}},ve=()=>{const{ppid1:e,ppid2:t}=le.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ge=e=>{const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ce.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]).add(o,oe[e]).add(a,ae[e]).buildRyEids()}}]}}},he=e=>{const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r}=ce.getPPIDs(),o=(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},me=e=>{const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r}=ce.getPPIDs();return(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]).buildRyEids()},ye=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r}=ce.getPPIDs(),o=(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),fe=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=ce.getPPIDs();return e}),we=(e,...t)=>s(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),clearTimeout(d)};r.addEventListener("load",o),r.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),be={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},xe={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}]},Ee={wallpaper:1600,"l-format":1600},Ce=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Re(e,be.ANY_FULLSCREEN)},Ie=e=>{const{native:t}=e;return!!t},Ae=e=>Re(e,be.FULLWIDTH),Te=e=>{const{targetId:t}=e;return t.includes("takeover")||Re(e,be.TAKEOVER)},Se=e=>Re(e,be.TAKEOVER),ke=e=>Re(e,be.WALLPAPER),Pe=e=>Re(e,be.COLLAPSE),Oe=e=>e.targetId.includes("sponsorstripe"),Le=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},je=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Ne=e=>e.targetId.startsWith("midboard"),De=e=>e.targetId.includes("widescreen"),Me=e=>e.width>=1260&&e.width<=1280,_e=e=>e.width>=1600&&e.width<=1620,Re=(e,t)=>{const n=xe[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===r,s=!t.height||t.height===o;return a&&s})},Fe="advertory-fullscreen-scroll",qe="advertory-fullscreen-scroll-wrapper",$e="fullscreen-scroll-in-screen",Be="in-screen",Ue=e=>e.includes("snoap.no"),Ve=e=>{var t,n,i,r,o;return!!(null===(o=null===(r=null===(i=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===i?void 0:i.adResponse)||void 0===r?void 0:r.ads[1])||void 0===o?void 0:o.rtb)},He=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},ze=He([],()=>{const e=({width:e,height:t})=>{var n;const i=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!i)return;const{clientWidth:r,clientHeight:o}=i,a=e/r,s=t/o;i.style.transform=`scale(${a},${s})`,i.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),We=e=>{const t=He([],()=>{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},Ke=[],Ge={},Je=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,r=new IntersectionObserver(e=>Qe(e,i),{}),o=Xe(e);r.observe(e),i&&(Ge[o]=tt(e,null==t?void 0:t.options))},Qe=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=Xe(e);n?(Ye(i,n),Ze(e,i,t)):(Ye(i,n),et(e,i,t))})},Ye=(e,t)=>{var n,i;const r=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;const o=t?"showFullscreen":"hideFullscreen";null===(i=r.contentWindow)||void 0===i||i.postMessage(`advertory:${o}-${e}`,"*")},Xe=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},Ze=(e,t,n)=>{e.classList.add(Be),document.body.classList.add($e),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ke.includes(t)||Ke.push(t),n&&window.addEventListener("scroll",Ge[t],{passive:!0})},et=(e,t,n)=>{Ke.includes(t)&&(n&&window.removeEventListener("scroll",Ge[t]),document.body.classList.remove($e),e.classList.remove(Be),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},tt=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:r=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&nt(e,o,r,0),a.length&&nt(e,a,r,40)}},nt=(e,t,n,i)=>{const r=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-i:(o+t-(a+r))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};function it(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}it('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::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;text-transform:lowercase;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 rt="left",ot={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN"}};let at=null;const st=(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=`(${ze})()`,e+t.outerHTML})(n),n=(e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");return n?(n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed",t.innerHTML):e})(n),n=(e=>{if(Ue(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=We(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>Ue(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)),Ue(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)),Ve(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},dt=()=>{at=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,r=document.documentElement;r.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),r.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),r.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},lt=()=>{at||(at=window.requestAnimationFrame(dt))},ct=(e,t)=>{var n,i,r,o;const{pageContext:{countryCode:a,deviceType:s}}=w.get(),{targetId:d}=e,l=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==l?void 0:l.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:r="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=i/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${r} 0px,\n ${r} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${r} calc(50% + ${l}px),\n ${r} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==l?void 0:l.overlayStyles)&&void 0!==i?i:{},s);const c=document.getElementById(d),u=null==c?void 0:c.parentElement;if(!c||!u)return;Je(u,t),c.className=Fe,Je(u,t),c.className="advertory-fullscreen-scroll";const p=Re(e,be.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";c.style.position=p,u.className=qe,u.dataset.showTagSubscribeId=d,c.setAttribute("data-ad-label",ot[a].adText),(null==l?void 0:l.cogwheelPosition)===rt&&(c.dataset.moveCogwheelToTheLeft="true"),lt(),window.addEventListener("resize",lt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",lt),null===(o=window.visualViewport)||void 0===o||o.addEventListener("scroll",lt)},ut=e=>{if(!(null==e?void 0:e.classList.contains(Fe)))return;e.classList.remove(Fe),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(qe))&&(t.classList.remove(qe),t.classList.remove(Be))};var pt=Object.freeze({__proto__:null,createFullscreenScrollAd:ct,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=Ve(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=Ve(e)?1:0,r=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;r&&(r.banner.content=t)})(e,st(t,e))},undoFullscreenScrollContainer:ut});const vt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},gt=(e,t,n)=>{var i,r,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),vt(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},ht="ad-loaded",mt="disable-cogwheel",yt=()=>null!==k("disable_prebid"),ft="0123456789abcdefghijklmnopqrstuvwxyz",wt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=ft[Math.floor(36*Math.random())]}return t},bt=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},xt=e=>{window.apntag.anq.push(e)},Et=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Ct=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})}),It=(e,t,n)=>s(void 0,void 0,void 0,function*(){yield Et,yield Ct;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)}),At=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:r},fullscreenScroll:o,appearanceConfig:a,placements:s}=w.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=w.getHandlers(),{getConsentAsync:l}=_(t,0,n),c=yield l(),u=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const r=Q(),{prebid:{relevantCallbackTimeout:o}={}}=w.get(),a="relevantCb"===i&&o?o:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,r.loadTags&&r.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Q(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Q();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:m}=v;(()=>{const e=Y();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{g("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return g("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"};g("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ge(n)),X(m,h))),g("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ge(n)),X(m,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{g("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=>{Tt(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const v=p.id,h=document.getElementById(v);if(!h)return;const m=null===(t=null==s?void 0:s[r])||void 0===t?void 0:t.find(e=>e.targetId===v),y=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[r])&&void 0!==d?d:0,f=Object.assign(Object.assign({},u),{targetId:v,banner:!0});g("prebid directRenderFn ad info",{targetId:v,width:null==u?void 0:u.width,height:null==u?void 0:u.height,adId:null==u?void 0:u.adId,creativeId:null==u?void 0:u.creativeId}),It(h,y,()=>{var e;const t=c(l),n=Ce(f);if(g("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)g("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),ct(f,o),i?h.style.setProperty("--advertory-political-box-offset","30px"):(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);else{g("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),ut(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(ht),(null==u?void 0:u.creativeId)&&gt(v,h,Number(null==u?void 0:u.creativeId))})}}),g("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=>{Tt(e,d)},directRenderFn:()=>{}})})}),Tt=(e,t)=>{var n;const{divId:i,native:r,bid:o}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:r,targetId:s},w.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")};let St="";const kt=new Map,Pt=e=>{const{pageSetup:{tag:t}={}}=w.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(St!==window.location.pathname&&(kt.clear(),St=window.location.pathname),e.map(e=>{var t;const n=e.invCode.replace(/_\d+$/,""),i=null!==(t=kt.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,kt.set(n,i+1),e})):e},Ot=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},Lt="advertory-wallpaper-background",jt="advertory-with-horseshoe",Nt=()=>{const e=document.querySelector(`.${Lt}`);e&&e.remove()},Dt=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Lt}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},Mt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,_t=e=>Mt.test(e),Rt=e=>e.startsWith("wallpaper:color:"),Ft=e=>{const t=document.querySelector(`.${Lt}`);t&&(t.style.backgroundImage=`url(${e})`)},qt=e=>{const t=document.querySelector(`.${Lt}`);t&&(t.style.backgroundColor=e)};var $t=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(jt),n.classList.add(jt))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{Nt();const e=document.createElement("div");e.classList.add(Lt),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--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&&(Dt(n),window.addEventListener("scroll",()=>Dt(n)))})(n),e()},isShortWallpaperColorMessage:Rt,isShortWallpaperUrlMessage:_t,removeWallpaperBackground:Nt,setWallpaperBackgroundColor:qt,setWallpaperBackgroundImage:Ft});const Bt=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")&&Nt())},Ut=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"))},Vt=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`)},Ht=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},zt=()=>{Nt();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Bt(e.id),Ht(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=Ot(e.id)}),xt(()=>window.apntag.clearRequest())},Wt="mobile",Kt="tablet",Gt="desktop",Jt="web_desktop",Qt="web_phone",Yt="wde",Xt="wph",Zt="noGroupedPlacements",en=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},tn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},nn=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:i,pageContext:{deviceType:r}}=w.get(),o=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Kt&&0===i.length?e[Gt]:i})(n,r),a=o.filter(tn),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=en(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),o=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${r}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(o),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const r=rn(e,t,n),o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${wt(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),o&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&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({},r),{targetId:s})});return Pt(l)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(d)},rn=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:o||r},on=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=w.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=Ot(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes(Ot(e.targetId)));return n})(e,i),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has(Ot(e.targetId))))(e,new Set([...s,...r]));return Object.assign(Object.assign(Object.assign({},a),o),{[Zt]:d})},an=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:r}=window,[o,a]=t;if(!i.dataset.lockedsize&&a&&o)i.style.width=`${o}px`,i.style.height=`${a}px`,n&&(r.resizeAd(i.id,[o,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=o.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&r.resizeAd(i.id,[e,t])}},sn=["netboard","board"];class dn{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:r}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",r),o&&s.searchParams.append("urlData",o),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return s(this,void 0,void 0,function*(){var t,n,i;const r=yield this.identityFacade.getIdentityUser(),o=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",a=(null==r?void 0:r.userId)?String(r.userId):"",s=this.buildUrl(e,{envId:o,spid:a});try{g("Starting fetching DrEdition ad from URL:",s);const e={method:"GET"},t=yield Z.get(s,e);return g("Fetch operation completed successfully."),t}catch(e){g("Error during fetch operation:",e)}return null})}}class ln{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:r,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:r,utm_medium:s},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),r=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{r.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const r=this.getDrEditionUTMParams(e,t),o=new URL(i);return Object.entries(r).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return s(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:r,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:r,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:r}=new URL(n);if(!i.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const o=r.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const cn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):g("Dr. Edition container does not have a parent element, cannot remove height lock.")};class un{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return s(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:o=!1}=t,a=e.querySelector(r);if(!a)return void g(`Container with selector "${r}" not found.`);const s=yield this.drEditionService.fetchData(t);return(null==s?void 0:s.itemId)||o?!(null==s?void 0:s.itemId)&&o?(g("No Dr. Edition ads available to render. Collapsing whole placement."),Bt(e.id),void cn(a)):((null==s?void 0:s.itemId)&&o&&(g("Dr. Edition ad available to render as a Xandr backfill."),Ut(e.id)),void(s?(s.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(s.css,"style"),yield this.rendererManager.render(a,s,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(s,t),cn(a),this.drEditionAds.push(s),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(s.itemId),this.observeAdView(e,s,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):cn(a))):(g("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void cn(a))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";Ut(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let r=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(r&&clearTimeout(r),r=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{o.observe(e)}),!0}}const pn=()=>{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"},vn=e=>e===Wt,gn=853,hn=767;class mn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return s(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:i}=_(n.tcf,n.isMobileApp,n.country),r=yield i(),o=vn(n.device)?t.mobileHTML:t.desktopHTML,a=r?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var i,r,o;e.search=null!==(o=null===(r=(i=this.newsroomStrategy).getUrlSearchParams)||void 0===r?void 0:r.call(i,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class yn{constructor(e){this.strategy=e}handle(e,t){return s(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return s(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,n=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!n)try{yield we(t)}catch(e){g("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return s(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,r=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==r||r.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==r?void 0:r.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,r;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",o),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(r=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===r||r.call(i,s),!0))}}class fn{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,r=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const p=this.getEventInput(e,t,n,"view");(null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)?null===(o=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===o||o.call(r,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,p):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,p)})}trackContentClick(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(r=(i=this.pulse).trackLegacyClickUIElement)||void 0===r||r.call(i,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class wn extends fn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(o=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===r?void 0:r.call(i,l))&&void 0!==o?o:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:p,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class bn extends fn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulseObjectId)||void 0===o?void 0:o.call(r))&&void 0!==a?a:p,"@type":"UIElement",position:p,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:p,"@type":v,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var r,o,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:p,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),f=this.getTeaserElementText(e,"image"),w=null!==(s=null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getUrlWithParams)||void 0===o?void 0:o.call(r,t,n))&&void 0!==a?a:v)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:p,link:w,placement:n.editionName,subtitle:y,time:h,title:m,type:i,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const xn={FRONT:"front"},En=e=>s(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),Cn={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return s(this,void 0,void 0,function*(){yield import("./styles-CWeSNH-n.js")})}})}};class In{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){yield s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const a=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=a)||l.forEach(e=>{Cn[e](c)});const u={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},p=yield En(u);p.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(p,a)}),p.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),p.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield p.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===xn.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),r=i.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const An="https://www.aftonbladet.se/video-player-extras/latest/";class Tn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${An}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${An}external-link.js`]:{name:"ExternalLink"}}};yield En(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const Sn=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class kn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},Sn(e)?e:{}),{provider:Object.assign(Object.assign({},Sn(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${t}`]},requestSettings:{}}}},d=yield En(a);d.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===xn.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class Pn{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const On=(e,t,n)=>{var i;const{publisher:o,pageType:a,country:s}=e,d={[r.VG]:new ln,[r.E24]:new In,[r.AFTONBLADET]:new Tn,[r.SVD]:new kn}[o]||new Pn,l=new(s===j.SE?wn:bn)(n,d,a),c=new dn(t,null!==(i=null==n?void 0:n.pulseTracker)&&void 0!==i?i:n),u=new mn(d,l),p=new yn(d);return new un(c,u,p,l)},Ln=()=>s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class jn{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return s(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return g("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return s(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const Nn=(e,t,n)=>{const{wrapperSelector:i}=e.drEditionConfig.options,r=document.querySelectorAll(i),o=new IntersectionObserver((i,r)=>((e,t,n,i,r)=>{const o=On(n,i,r);e.forEach(e=>{var i,r,a;if(!e.isIntersecting)return;const s=e.target,d=null!==(i=s.dataset.editionName)&&void 0!==i?i:"",l=null!==(r=s.dataset.pulseColumnname)&&void 0!==r?r:"",c=null!==(a=s.dataset.pulsePrimaryposition)&&void 0!==a?a:"";o.fetchAndRenderAd(s,Object.assign(Object.assign({},n),{editionName:d,columnName:l,primaryPosition:c})),t.unobserve(s)})})(i,r,e,t,n),{rootMargin:"400% 0px"});r.forEach(e=>o.observe(e))},Dn=()=>s(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),Mn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},_n=[],Rn=(e,t)=>s(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:r,drEdition:o,pageContext:{deviceType:a,publisher:s,pageType:d,countryCode:l,isMobileApp:c}}=e;if(!(yield R(r,c,l,"handleDrEditionBackfill")))return;const u=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:o,drEdition:a}=e,s=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,d=o[r]||o.desktop,l=Ot(t.targetId),c=d.find(e=>e.targetId===l),u=sn.some(e=>l.startsWith(e)),p=_n.includes(l),v=(null===(i=null==c?void 0:c.drEdition)||void 0===i?void 0:i.editionName)||s;return c&&u&&!p&&v?(_n.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!u)return;if(!(null==i?void 0:i.instance))return void g("Pulse has not been passed as a prop, aborting");const p=yield Ln(),v=new jn(p),h=On({publisher:s,pageType:d,country:l},v,null==i?void 0:i.instance),m=document.getElementById(t.targetId);if(!m||!o)return;m.classList.value="";const y=document.createElement("div");y.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==u?void 0:u.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:r,isMobileApp:c,country:l,renderAsBackfill:!0};yield h.fetchAndRenderAd(m,f)}),Fn=e=>s(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield R(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield Ln(),i=new jn(n);Nn({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),qn=(e,t)=>{var n,i,r;if(!Mn())return void g("Ad block not enabled, Dr. Edition backfills will not be rendered");g("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(i=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===i?void 0:i[o],l=null!==(r=null==d?void 0:d.map(([e])=>e))&&void 0!==r?r:[],c=new IntersectionObserver((t,n)=>s(void 0,void 0,void 0,function*(){for(const i of t){if(!i.isIntersecting)continue;const t=i.target;n.unobserve(t),yield Rn(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!l.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&c.observe(t)})},$n="collapseAd",Bn="hideAd",Un="resizeAd",Vn="renderDrEditionFallback",Hn="wallpaperImageUrl",zn="wallpaperColor",Wn="velvet",Kn=[Un,Hn,zn,$n,Bn,Vn,Wn];let Gn;const Jn=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(_t(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Hn,wallpaperImageUrl:t}}if(Rt(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:zn,wallpaperColor:t}}if(e.startsWith(Vn)){const t=e.split(":")[1];return{name:Vn,targetId:t}}if(e.startsWith($n)||e.startsWith(Bn)){const t=e.split(":")[1];return{name:$n,targetId:t}}if(e.includes("name")&&Kn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Kn.some(e=>n.name===e))return;const{name:i,targetId:r,wallpaperImageUrl:o,wallpaperColor:a,cmd:s,size:d}=n;i===Wn&&s&&(s.includes("noScroll")&&(Gn=(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==Gn||Gn(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==$n&&i!==Bn||!r||Bt(r),i===Un&&r&&s&&an(r,s),i===Vn&&r&&(Bt(r),Rn(w.get(),{targetId:r})),"resizeMediationAd"===i&&r&&d&&an(r,d,!0),i===Hn&&o&&Ft(o),i===zn&&a&&qt(a)},Qn=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=w.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},o=e=>{Ut(e),xt(()=>i.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-DwwSIWUX.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-DwwSIWUX.js");yield t(e,r,o,()=>s(void 0,void 0,void 0,function*(){if(!E.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return $t});t(e)}))})}},Yn=(e,t)=>s(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield It(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Le(t)&&i?(g(`loading finn blink ad for blink only placement for ${t}`),void Qn().withFinnBlinkAd(t)):Le(t)?(g(`loading finn blink ad with full ads chain for ${t}`),void Qn().withFullAdsChain(t)):void xt(()=>(g("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)))}),Xn=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`),Ht(i=t),i.innerHTML=""},ri=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},oi=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=w.get(),i=ei.includes(n)&&Boolean(t.closest(ti));const r=i?t.closest(ti):null,o=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!i&&!a||i&&!r)return;if(a)return ri(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=r;s&&d.contains(s)?ri(s):d.hasAttribute("style")&&ri(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},ai=(e,t,n,i,r,o)=>{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,r)&&n<0;s-d>=r&&l&&(Zn.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=w.get(),r=null==n?void 0:n.parentElement;r&&n&&ii({adWrapper:r,placementContainer:n}),xt(()=>{e.setKeywords([t],{[`${z(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},si=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:r,boundingClientRect:o}=e;t(window.apntag,r.id,o.y,n,i,r)})})(e,ai,t,n),Xn(300));i.observe(e)},di=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},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 r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;ci(r,o)&&i&&(Vt(i.targetId),n.length&&r.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)),r=(e=>1===e[0]&&1===e[1])(i),o={sizes:[i],allowedFormats:r?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return r||(o.native=void 0),o},mi=(e,t=!1)=>{const{queryConfig:{batchSize:n=y}={}}=w.get(),i=e.map(({targetId:e})=>e),r=di(i,n);if(t)for(const t of e){const e=hi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of r)xt(()=>window.apntag.refresh(e))},yi=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},fi=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=_(t,0,i);if(!(yield r()))return;const o=yi("_pulse2data");return o?o.split(",")[9]:void 0}),wi={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},bi="takeover-displayed",xi="takeover-visit-count",Ei=14400,Ci=()=>{const e=yi(xi);return e?parseInt(e):0},Ii=()=>{const e=Ci(),{takeover:{options:{cookieCapTime:t=Ei}={}}={}}=w.get(),n=document.location.hostname;window.document.cookie=`${xi}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Ai=()=>{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)||bi;return"true"===yi(n)})())&&(!t||Ti()))},Ti=()=>{const e=Ci();return 0===e?(Ii(),!1):1===e},Si=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),ki=()=>{const{takeover:e}=w.get();return Boolean(null==e?void 0:e.topscroller)},Pi=e=>{const{width:t,height:n}=e;return Si(t,n)?wi.SPLASH:Re(e,be.VELVET_TAKEOVER)?wi.VELVET:ki()?wi.TOPSCROLLER:wi.WELCOME_PAGE},Oi=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=bi,cookieCapTime:n=Ei}={}}={},pageContext:{isMobileApp:i,countryCode:r},tcf:o}=w.get(),a=yield R(o,i,r,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Li=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 Te(e)&&i},ji=(e,t)=>{var n;if(t===wi.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===wi.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Ni=(e,t)=>{t!==wi.SPLASH?(e=>{var t,n;const i=null===(t=w.get().pageSectionsSelectors)||void 0===t?void 0:t.header,r=null===(n=w.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||r)return;const o=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=Se(e)?"60svh":`calc(100svh - ${l}px)`,u=Se(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 r=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",r,"important")})(e)},Di=He([],()=>{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 Mi=Object.freeze({__proto__:null,addTakeoverCookie:Oi,adjustTakeoverHeight:Ni,canDisplayTakeover:Ai,getProperWelcomePageConfig:ji,getTakeoverVariant:Pi,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){Li(e)&&(yield Oi())}),incrementArticleVisitCount:Ii,isSplashVariant:Si,isTopscroller:ki,scaleAd:Di,shouldAddTakeoverCookieForNotShownAd:Li});const _i=e=>`externalImpId:'${e}'`,Ri=(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,Fi=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},tracker:i}=w.get(),{targetId:r,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Ai())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!==wi.TOPSCROLLER):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),h=Object.assign({invCode:d,sizes:o,targetId:r,keywords:Ri(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),m=(e=>{var t,n,i,r,o,a,s;return e?(null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)?(null===(i=null===(n=null==e?void 0:e.instance)||void 0===n?void 0:n.state)||void 0===i?void 0:i.pageViewId)?(g("Tracker state pageViewId is:",null===(o=null===(r=null==e?void 0:e.instance)||void 0===r?void 0:r.state)||void 0===o?void 0:o.pageViewId),null===(s=null===(a=null==e?void 0:e.instance)||void 0===a?void 0:a.state)||void 0===s?void 0:s.pageViewId):(g("Tracker state does not contain field pageViewId or it is empty"),""):(g("Tracker state is empty"),""):(g("Tracker is not configured in initAdvertory function"),"")})(i);n&&m&&(g("External Impression ID assigned to defineTag:",_i(m)),h.externalImpId=_i(m));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=y),h},qi=e=>!e.includes("takeover")||Ai(),$i=e=>{const{source:t}=e;return"csm"===t},Bi={nativeAd:e=>Ie(e)&&!Oe(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:Ae,fullscreenScroll:Ce,topscroller:e=>Te(e)&&ki(),splash:e=>Te(e)&&Si(e.width,e.height),welcomePage:Te,wallpaper:ke,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Me,hFormat:_e,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!_e(e)&&!Me(e),topboard:e=>e.targetId.startsWith("topboard")&&!Te(e),widescreen:De,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Oe,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!je(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Ne(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:je,midboard:Ne},Ui=({adObj:e,preferredTestIdData:t})=>{var n,i;const r=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!r)return;const o=null===(i=document.querySelector(`#${r}`))||void 0===i?void 0:i.parentElement;if(!o)return;if(((e,t)=>{var n,i,r,o;const a=null===(o=null===(r=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===r?void 0:r[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(r,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,i;for(const[r,o]of Object.entries(Bi))if(o(e)){if("nativeAd"===r){const o="default";t.dataset.testid=`${r}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:o}`;break}t.dataset.testid=r;break}})(e,o)},Vi=e=>{var t;return(null===(t=Object.entries(Bi).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Hi=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=w.get(),n=z(t),i=e[`${n}-targetid`],r=i?Ot(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[r]})},zi=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"]})},Wi=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const i=n.split(",")[0].split(":")[0],r=e.find(e=>e.invCode===i),o=document.querySelector(`[id^=${null==r?void 0:r.targetId}]`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{var e;const t=new URLSearchParams(window.location.search).get("scrollToDrEditionPlacement");if(!t)return;const n=null!==(e=document.querySelector(`[id*="${t}}"]`))&&void 0!==e?e:document.querySelector(`a[aria-label*="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})()},Ki=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});it(".advertory-brandmetrics-survey{width:100%}");const Gi="advertory-brandmetrics-survey",Ji="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Qi=()=>s(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Yi={pageContext:{publisher:"aftonbladet",countryCode:j.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},Xi={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Zi=e=>(null==e?void 0:e.parent)?[...Zi(e.parent),e.shortPath||"unknown"]:[],er=(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]=Zi(e);return Xi[n]||"ovrigaavdelningar"})(e)}_{position}`,tr={aftonbladet:Yi},nr={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:er(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Zi(e).join(":")}}},ir=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},rr=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),or="se-generic",ar="aa-sch",sr="kv_",dr="pause",lr="{deviceType}",cr="{position}",ur="afp_",pr=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),vr="1-1",gr="16-9",hr="3-4",mr="9-16",yr="responsive",fr={[vr]:1,[gr]:1.78,[mr]:.56,[yr]:1},wr={[vr]:1,[gr]:1.78,[hr]:1.33,[mr]:.56},br=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},a=Gt===n?Yt:Xt,s=r.replace(lr,a);return(e,n)=>{if(e===dr)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(cr,dr).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&pr.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(lr,a).replace(cr,e)}return s.replace(cr,e)}},xr=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Er=()=>{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},Cr=()=>{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},Ir=()=>{const e=null!==(t=Cr()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Cr()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ar=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Tr=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield R(n,e.isApp,r,"video"))?"1":"0",l=yield Qi(),c=yield ye(r),u=yield fi({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)=>xr(wr,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?xr(fr,Number(m.toFixed(2))):yr;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ar}-country_code`]:r,[`${ar}-publisher`]:i,[`${ar}-supply_type`]:(y=e.deviceType,y===Gt?Jt:Qt),[`kw_${ar}-page_type`]:"collection",[`${ar}-page_type`]:"collection",[`${or}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${or}-page`]:"index",[`${or}-page`]:"index",[`${or}-screenheight`]:String(window.screen.height),[`${or}-screenwidth`]:String(window.screen.width),[`${or}-viewportheight`]:String(a),[`${or}-viewportwidth`]:String(o),[`${or}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${or}-mobile-os`]:pn(),[`${or}-audience`]:void 0,[`${or}-externalid_src`]:Ir(),[`${or}-tags`]:e.tags,[`${or}-articleid`]:p,"article-id":p},yield W(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${or}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Ar()).some(e=>e.includes(sr))&&(()=>{const e=Ar(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(sr)).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})}),Sr=["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"],kr=["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"],Pr=["external_uid","gdpr","gdpr_consent","eids","article-id"],Or=(e,t)=>{const n=[...Sr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Pr.includes(e)?e:`kw_${e}`,t]))},Lr=e=>Object.fromEntries(Object.entries(e).filter(([e])=>kr.includes(e))),jr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i,r,o;const a=(e=>{var t;tr[e]||h(`[video] No config found for publisher "${e}"`);return null!==(t=tr[e])&&void 0!==t?t:Yi})(e.publisher),s=(e=>{var t;return null!==(t=nr[e])&&void 0!==t?t:nr.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Tr({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Er(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:ir(e.startMode)}}),Nr=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=br(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(ur)?`${ur}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,r),"se-generic-playback-method":rr.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({},Or(o,n)),Lr(o)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Dr=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield jr(e,t);return Nr(n,e)}),Mr={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]}]},_r={no:"NOK",se:"SEK"},Rr={no:"no",se:"sv"};class Fr{buildFetchObject(e,t,n,i){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:r},pageOptions:o}=i,{invCode:a,xandrPlacementId:s}=e,d=yield Qi(),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(Mr),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:wt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(o.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Rr[r]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield fi(i),ext:{consent:d.gdpr_consent||"",eids:me(r)}},at:1,cur:[_r[r]],source:{tid:wt(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,i){return s(this,void 0,void 0,function*(){try{g("Starting fetching Studio ad from Xandr:",Ji);const r=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${Ji}?${a.toString()}`:Ji,d=yield this.buildFetchObject(e,t,n,i),l=yield Z.post(s,r,d);return g("Fetch operation completed successfully.",l),l}catch(e){g("Error during fetch operation:",e)}return null})}}const qr=0,$r=3,Br=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(s),r.classList.add(d),t.dataset.adType=n},Ur={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Vr=(e,t)=>{Hr(e,t),Wr(e,t)},Hr=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const i of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])Gr(i)}),t.dataset.tracked="true")})},zr=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(Kr):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},Wr=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:Gt])&&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,zr(e),c.disconnect();break}},d);c.observe(r)},Kr=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Gr(e):window.navigator.sendBeacon(e)},Gr=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Jr=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:[]}),Qr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[r],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void g(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Xn(s)).observe(d)});const{prepareTag:l}=w.getHandlers(),c=E.getData("alertoryConfigKeywords"),u=null!==(i=l(Fi(e)).keywords)&&void 0!==i?i:{},p=new Fr,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===Wt?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===qr){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(d,v,r),v.adType===$r&&(Br(t.pageContext.publisher,d,Ur.NATIVE_AD,t.pageContext.pageType),Vr({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,a;let s;(null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),gt(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),Yr=(e,t)=>{e.forEach(e=>Qr(e,t).catch(e=>{g("Failed to handle server-side ad:",e)}))},Xr={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},Zr=e=>s(void 0,void 0,void 0,function*(){if(!(e=>{const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))})(e))return e;try{const t=yield(e=>s(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;return(null==t?void 0:t.publisherClassName)&&i?`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`:null})(e);if(!t)return null;const n=new AbortController,i=setTimeout(()=>n.abort(),5e3);try{return yield Z.get(t,{method:"GET",signal:n.signal})}catch(e){throw g("Failed to fetch S3 config",{error:e,url:t}),e}finally{clearTimeout(i)}}))(e);return t?((e,t)=>u(t,e,Xr))(e,t):e}catch(t){return g("Error fetching S3 config, using site config",{error:t}),e}});let eo,to=[];const no=["takeover","wallpaper"],io=e=>{const t=(e=>{var t;const n=E.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:f}=e,w=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:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:w})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.4.13",siteConfig:e,alertoryConfig:t}},ro=()=>s(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 s(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=zi(e);E.setData("alertoryConfigKeywords",n)})(r.keywords),xt(()=>eo.setPageOpts(r))}),oo=e=>s(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=w.get(),o=yield R(n,i,r,"loadPlacements"),a=((e,t)=>t?e:(e.filter(e=>!e.supportsNonRTB).forEach(e=>Bt(e.targetId)),e.filter(e=>e.supportsNonRTB).map(e=>{return Object.assign(Object.assign({},e),{invCode:(t=e.invCode,`${t}_non_rtb`)});var t})))(e,o);ao(a);(null==t?void 0:t.enabled)&&o&&!yt()?(g("core loadPlacements prebid enabled"),yield At()):(g("core load tags invoked without prebid enabled"),so(a))}),ao=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)),r=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===r?-1:-1===i&&-1!==r?1:i-r})})(e).forEach(e=>{g("core defineTags",{placement:e});const i=Fi(e);if(qi(e.targetId)){const r=t(i),o=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:r}=e;return{adTypes:t,invCode:n,keywords:Hi(i),sizes:r}})(r);n.push(o),xt(()=>(g("core defineTag - add to the queue",{placement:e,preparedTag:r}),eo.defineTag(r)))}}),(e=>{var t,n,i;(null===(i=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===i?void 0:i.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},so=e=>{const t=e.filter(({targetId:e})=>qi(e)).map(({targetId:e})=>e);t.length&&xt(()=>(g("core loadTags",{placementsIdsToLoad:t}),eo.loadTags([...t])))},lo=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=w.get(),{requestThreshold:r,refresh:o}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[i];a&&(g("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:r,deviceDefaultThreshold:s}),yield Yn(a,null!=r?r:s)),a&&(null==o?void 0:o.scroll)&&(g("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),co=e=>e.some(({targetId:e})=>no.some(t=>e.includes(t))),uo=e=>s(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=y}={},pageContext:{deviceType:i}}=w.get(),r=on(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...di(s,n)]})(i);for(const e of r)co(e)?(g("core loadAds without lazy loading",{placementsToLoad:e}),yield oo(e)):e.length&&(g("core loadAds with lazy loading",{placementsToLoad:e}),yield po(e));const{finnBlink:o}=w.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-DwwSIWUX.js");yield e(n)}}),po=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=w.get(),i=[];if(!t)return g("lazy load is not enabled",{placements:e}),void(yield oo(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{g("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&oo(e),g("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(g("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),vo=()=>s(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=w.getHandlers(),{wallpaper:n,fullscreenScroll:i}=w.get(),r=[];xt(()=>{eo.onEvent("adRequested",()=>{e.adRequested()}),eo.onEvent("adAvailable",r=>s(void 0,void 0,void 0,function*(){var o,a,s,d,l,c;g("core adAvailable start",{placementsAvailable:to,adObj:r,isFullscreenScrollAd:Ce(r),isFinnBlink:Le(r.targetId),isNativeAd:Ie(r),isMediation:$i(r),isTakeoverAd:Te(r),isCollapseAd:Pe(r),isWallpaperAd:ke(r)});const u=null===(s=null===(a=null===(o=null===window||void 0===window?void 0:window.apntag)||void 0===o?void 0:o.requests)||void 0===a?void 0:a.tags[r.targetId])||void 0===s?void 0:s.adResponse.ads;if($i(r)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(r.banner=null===(c=null===(l=u[1])||void 0===l?void 0:l.rtb)||void 0===c?void 0:c.banner),Ce(r)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return pt});e(r)}const{widescreenSwitching:p}=w.get();if(De(r)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield import("./index-CojPSAod.js");e()}if(Ce(r)&&!Le(r.targetId)){g("core adAvailable: creating fullscreen scroll container",{targetId:r.targetId,width:r.width,height:r.height,bannerWidth:r.banner&&"object"==typeof r.banner?r.banner.width:r.banner,bannerHeight:r.banner&&"object"==typeof r.banner?r.banner.height:void 0});const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return pt});e(r,i)}if(!Ie(r)||$i(r)||Le(r.targetId)||null==t||t(r,w.get()),Te(r)&&!Pe(r)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-BRrn8QKt.js");e(r.targetId),yield t(r)}if(ke(r)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return $t});e(()=>xt(()=>window.apntag.showTag(r.targetId)),n),E.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(r)&&E.setData("horseshoe",{isAvailable:!0}),e.adAvailable(r);const v=to.find(({targetId:e})=>e===r.targetId);v&&(yield lo(v,r),to=to.filter(e=>e.targetId!==v.targetId)),g("core adAvailable stop",{placementsAvailable:to,adObj:r,isFullscreenScrollAd:Ce(r),isFinnBlink:Le(r.targetId),isNativeAd:Ie(r),isMediation:$i(r),isTakeoverAd:Te(r),isCollapseAd:Pe(r),isWallpaperAd:ke(r)})})),eo.onEvent("adLoaded",n=>s(void 0,void 0,void 0,function*(){const{refreshConfig:i,appearanceConfig:o,wallpaper:a,adScaleConfig:s}=w.get(),d=document.getElementById(n.targetId);if(Le(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-wcexbD6c.js");e(n)}if(r.includes(n.targetId)&&Ie(n)&&(null==t||t(n,w.get()),Ui({adObj:n})),!r.includes(n.targetId)&&$i(n)&&r.push(n.targetId),Pe(n)&&Bt(n.targetId),Te(n)){const{modifyTakeoverIframe:e}=yield import("./index-BRrn8QKt.js");e(eo,n.targetId)}if((e=>Re(e,be.NINESIXTEEN))(n)){const{applyNinesixteenFormat:e}=yield import("./index-DOPye16D.js");e(n)}if((e=>Re(e,be.FULLSQUARE))(n)){const{applyFullsquareFormat:e}=yield import("./index-DOPye16D.js");e(n)}if(Ae(n)){const{applyFullwidthFormat:e}=yield import("./index-DOPye16D.js");e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),r=null==i?void 0:i.parentElement;if(!r||!i)return;oi({adWrapper:r,placementContainer:i});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&si(i,a,o))})(n,i),(null==o?void 0:o.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(E.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return $t});e(n.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-zUieoZtt.js");e(n),t(n)}e.adLoaded(n),vt(n.targetId),d&&(d.classList.add(ht),(e=>{var t,n;const{pageSectionsSelectors:i}=w.get(),r=null==i?void 0:i.mainFirstColumn,o=r?null===(t=document.querySelector(r))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(d)),Ui({adObj:n}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const i=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;i&&((e,t)=>{const{height:n,width:i,native:r}=e;r?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(n),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:Vi(n)}}))})),eo.onEvent("adNoBid",t=>s(void 0,void 0,void 0,function*(){var n;if(Bt(t.targetId),null===(n=w.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-C27mV0sI.js");yield e(w.get(),t)}if(Te(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Mi});yield e(t)}e.adNoBid(t)})),eo.onEvent("adError",(t,n)=>s(void 0,void 0,void 0,function*(){if(Te(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Mi});yield e(n)}e.adError(t,n)})),eo.onEvent("adCollapse",()=>{e.adCollapse()}),eo.onEvent("adRequestFailure",t=>s(void 0,void 0,void 0,function*(){Bt(t.targetId),yield Rn(w.get(),t),e.adRequestFailure(t)})),eo.onEvent("adBadRequest",t=>s(void 0,void 0,void 0,function*(){Bt(t.targetId),yield Rn(w.get(),t),e.adBadRequest(t)})),eo.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),eo.onEvent("adNoBidMediated",t=>s(void 0,void 0,void 0,function*(){yield Rn(w.get(),t),e.adNoBidMediated(t)}))})}),go=(e,t)=>s(void 0,void 0,void 0,function*(){var n;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{clearAds:i,reloadExistingAds:r,renderFinnBlinkPlacements:o,contextSelector:a}=null!=t?t:{};if(i)return zt(),[];r&&(zt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Ut(e.id)})),b(null!=e?e:{}),yield ro();const{clientSidePlacements:s,serverSidePlacements:d}=Jr(nn(a));let l=s;return o&&(l=l.filter(e=>Le(e.targetId))),Yr(d,w.get()),l.length>0&&(to=[...to,...l.map(e=>Object.assign({},e))],ui(l),vi(l),yield uo(l)),to}),ho=(e,t)=>s(void 0,void 0,void 0,function*(){var n;w.set(e),w.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:i,kilkaya:r,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(E.initialize(),window.addEventListener("message",Jn,!1),eo=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=eo,g("Apn tag is set up on window"),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();(yield R(e,t,n,"xandr-endpoint"))||eo.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){if(yt())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get(),r=yield R(t,n,i,"prebid");(null==e?void 0:e.enabled)&&r&&(yield we(null==e?void 0:e.prebidUrl))}),ue(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=w.get();yield we(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get();(yield R(t,n,i,"gpt-endpoint"))&&(yield we(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=w.get(),{getConsentAsync:o}=_(n,0,r),a=yield o();if(e&&t&&a){if(yield we(t),document.querySelector(`.${Gi}`))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(Gi)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),q(),s(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 we(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==i?void 0:i.enabled){const{loadNorstat:e}=yield import("./index-CJLyjRUy.js");yield e()}g("Libraries have been loaded and trackers have been set"),yield vo(),yield ro(),g("Page options have been set"),io(e),g("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=Jr(nn());if(to=l,Yr(c,e),ui(to),vi(to),yield uo(to),g("Ads has been loaded",to),qn(e,to),Wi(to),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-DwwSIWUX.js");yield t(null===(n=null==e?void 0:e.pageContext)||void 0===n?void 0:n.deviceType,e.finnBlink)}if(null==a?void 0:a.enabled){const{handleDrEdition:t}=yield import("./index-C27mV0sI.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-DQlbgZ8n.js");t(e.rightColumnSplit)}if(null==r?void 0:r.enabled){const{runKilkaya:t}=yield import("./index-CJrmaByc.js");yield t(e)}}),mo=(e,t)=>s(void 0,void 0,void 0,function*(){yield((e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{initConsentManager:r,getConsentAsync:o}=_(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),a=yield Zr(e);yield Dn(),yield Ki(r),yield Ki(o),g("TCF resolved successfully"),yield ho(a,t),g("Run function resolved successfully")}))(e,t)}),yo=(e,t,n,i)=>{var r;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:E,customBody5:C,customIcon1:I,customIcon2:A,customDisplayUrl1:T}=e,S=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:S(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return S(t?I:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=E?E:"",customBody5:null!=C?C:"",logo2:S(A),previewVideoSrc:null!=T?T:""},t)},fo=(e,t)=>{const n=(i=O,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(O),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},wo=(e,t,n,i)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:o}=t,a=i&&Object.values(r).includes(i);n&&a&&Br(i,e,Ur.NATIVE_AD,o)})(o,n),i())},bo=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=fo(e.targetId,l))&&void 0!==i?i:c,p=ot[t.language||j.NO],v=yo(s,p,d,t);return(s.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);wo(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Vr(e,t)})},xo=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const a=e.getOptions(null!=n?n:{});bo(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},Eo=()=>{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},Co=e=>{const{siteSpecificConfig:t}=w.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Io{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Ao=9826;class To{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=w.get();if(t){return{"aa-sch-supply_type":`app_${e===Wt?"phone":Kt}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=yi("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield fi(w.get())})}isTrackingForbidden(){return s(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=Ao}={}}=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 s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get(),{getConsentAsync:i}=_(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 So=new To;function ko(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),r=pn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}So.prepare.bind(So);const Po=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Oo(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Po.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Lo extends To{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}=ko(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Oo(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get(),r=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const jo=new class extends Lo{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,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===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Io;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(W(w.get(),l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(ve()).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({},pe(j.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},No=jo.prepare.bind(jo);class Do extends To{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!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=w.get(),{appMode:t,mobileOS:n}=ko(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 Mo=new class extends Do{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a;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===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new Io;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(W(w.get(),l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>s(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(ve()).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"===yi("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({},pe(j.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},_o=Mo.prepare.bind(Mo);it(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const Ro=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),e("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:e("span",{id:"advertory-splash-close-label"})})]})});var Fo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",qo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";it(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const $o=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:Fo,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:qo,width:"54",height:"54"})]}),{})]});it(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const Bo=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:Fo,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:qo,width:"54",height:"54"})]}),{})]});it(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const Uo=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(Ro,{}),e($o,{}),e(Bo,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),Vo={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,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})(r,l),u=(e=>{const{pageContext:{countryCode:t}}=w.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${z(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in Ee)||window.innerWidth>=Ee[e]);return{[r]:i?a:o}})(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=Eo(),h=(e=>Co(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(r),m=((e,t)=>Co(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(r,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new Io).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:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=w.get();return yield t===j.SE?_o(e):No(e)}),siteEvents:i},Ho=((e,t)=>({init:n=>mo(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:go,getVideoPPIDs:ye,createInitNativeAd:xo,getVideoAdsConfig:Dr}))(Vo,o);export{Ur as A,gn as B,Vi as C,ot as D,Re as E,en as F,On as G,Fn as H,hn as I,Rn as J,qn as K,he as L,j as M,jn as N,J as O,Ln as P,xn as Q,Ut as R,be as S,wi as T,we as U,r as V,Ho as W,Uo as X,s as _,fe as a,Bt as b,w as c,a as d,Mn as e,Br as f,Ot as g,R as h,it as i,ci as j,ji as k,g as l,Di as m,Pi as n,Oi as o,Ni as p,Ve as q,mt as r,Yn as s,bt as t,Qn as u,Ui as v,Ce as w,ct as x,Ie as y,vn as z};
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const i={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},r={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen"},o={publisherClassName:r.TV4,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=d(function(){if(c)return l;c=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var a={};return i.isMergeableObject(e)&&r(e).forEach(function(t){a[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?a[r]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(r,i)(e[r],t[r],i):a[r]=n(t[r],i))}),a}function s(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(t)?s?o.arrayMerge(t,r,o):a(t,r,o):n(r,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}());const p=["placements","takeover","refreshConfig","editory"],v={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},g=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},h=(e,t)=>{console.warn("[Advertory WARN]: ",e)},m=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||h("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||h("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||h("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||h("pageContext.deviceType is required."),n||h("pageOptions is required."),i||h("placements is required."),(null==r?void 0:r.defaultThreshold)||h("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i;const r=e.pageSectionsSelectors,o=[{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"}];for(const{flag:e,property:t,featureName:n}of o)e&&!(null==r?void 0:r[t])&&h(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},y=6;class f{set(e){m(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const n of p){const i=e[n];void 0!==i&&(t[n]=i)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}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=u(f.DEFAULT_SITE_HANDLERS,e)}}f.DEFAULT_SITE_HANDLERS={siteEvents:v,initNativeAd:()=>{}};const w=new f,b=w.modifyConfigProperties.bind(w);class x{initialize(){this.DATA=Object.assign({},x.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)}}x.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const E=new x,C=864e5,I=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return g("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=C)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=C)=>{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 g("Error with parsing localStorage data"),null}}}})(),A="glimrTags",T=["glwe_","glwet_"],S={geofenceTags:[],geoTags:[],weatherTags:[]},k=e=>new URLSearchParams(window.location.search).get(e),P="takeover",O="native_override_desc2",L=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 g("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(g("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{g("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{g("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);g("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),j={NO:"no",SE:"se"},N="cmp:loaded";let D="undefined"!=typeof window?window._tcf_:void 0,M=!1;const _=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=k("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(g("TCF bypass param detected, returning consent: true"),!0):(g("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if(M)return null;if(!D)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=D.getConsentedToAllSync();return g(`TCF consented to all is: ${t}`),D.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(g("Getting TCF consent manager..."),window._tcf_)return g("TCF consent manager is already available"),D=window._tcf_,void e(D);g("TCF consent manager is not available");const n=()=>{g("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(D=window._tcf_,e(D)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(N,n),M=!0,t(new Error("Timeout waiting for CMP to load"))},r);g("Listening for CMP loaded event..."),document.addEventListener(N,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return g(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===j.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===j.NO;if(t||i)return g("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield L(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!D)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(()=>{g("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);D.onTcfReady(()=>{g("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),D.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},R=(e,t,n,...i)=>s(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return g(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return g(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=_(e,0,n);return(yield r())?(g(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(g(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),F=(...e)=>s(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:r}=_(t,0,i);return yield r()}),q=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=w.get();if(!(yield F())||!(null==e?void 0:e.enabled))return void g("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{I.setWithTimestamp(A,{tags:e,tagMappings:t}),n(!0)})})}catch(e){g(`Error during getting glimr data: ${e}`)}else g("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),$={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"},B=e=>T.some(t=>e.startsWith(t)),U=e=>e.startsWith("glgc_"),V=e=>e.startsWith("glci_"),H=e=>!B(e)&&!U(e),z=e=>e===j.NO?"no-sno":"se-generic",W=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield F(e);if(!(null==i?void 0:i.enabled)||!o)return g("No consent for getting glimr tags."),{};const a=z(r),s=K(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),K=(e,t)=>{const n=G();if(!n)return S;const i=((e=[])=>e.filter(B))(n),r=((e=[])=>e.filter(U))(n),o=((e=[],t,n)=>{var i;const r=e.filter(H);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=$[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},G=()=>{const e=I.getByTimestamp(A);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},J=()=>{var e;return((e=[])=>e.filter(V))(null!==(e=G())&&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),X=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:r}}=w.get(),o=[`${z(r)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...i?o:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},Z={get:(e,t)=>s(void 0,void 0,void 0,function*(){const n=yield fetch(e,t);if(!n.ok)throw new Error(n.statusText);return yield n.json()}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ee="advertory:ppids-cache",te={[j.SE]:`SCH${j.SE.toUpperCase()}-EnvHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-EnvHash`},ne={[j.SE]:`SCH${j.SE.toUpperCase()}-UserHash`,[j.NO]:`SCH${j.NO.toUpperCase()}-UserHash`},ie={[j.SE]:`sch${j.SE}-envhash-v3`,[j.NO]:`sch${j.NO}-envhash-v3`},re={[j.SE]:`sch${j.SE}-userhash-v3`,[j.NO]:`sch${j.NO}-userhash-v3`},oe={[j.SE]:`'sch${j.SE}-iosid-v3'`,[j.NO]:`'sch${j.NO}-iosid-v3'`},ae={[j.SE]:`sch${j.SE}-androidid-v3`,[j.NO]:`sch${j.NO}-androidid-v3`},se={[j.SE]:"sdrn:schibsted.com:user",[j.NO]:"sdrn:spid.no:user"};class de{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 le=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||g("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:""}},ce=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,i,r,o,a,s,d,l,c,u,p;const v=I.get(ee),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||g("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});I.set(ee,r)}hashPPIDs(e,t){return s(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield Z.post(t,n,e)}catch(e){return g("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${se[t]}:${n}`:null}))(t,n),r=yield(e=>s(void 0,void 0,void 0,function*(){const t=yield e.getEnvironmentId();return t?`sdrn:schibsted:environment:${t}`:null}))(t),o=window.advertory_idfv,a=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"}},o?{idfv:{plain:o}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},ue=e=>s(void 0,void 0,void 0,function*(){const{tracker:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield R(n,r,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([le.processPPIDs(t,null==n?void 0:n.timeout),ce.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){g(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),pe=e=>{const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ce.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]).add(o,oe[e]).add(a,ae[e]).buildEids()}]}},ve=()=>{const{ppid1:e,ppid2:t}=le.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ge=e=>{const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ce.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]).add(o,oe[e]).add(a,ae[e]).buildRyEids()}}]}}},he=e=>{const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r}=ce.getPPIDs(),o=(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},me=e=>{const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r}=ce.getPPIDs();return(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]).buildRyEids()},ye=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=le.getPPIDs(),{ppid1:i,ppid2:r}=ce.getPPIDs(),o=(new de).add(n,te[e]).add(t,ne[e]).add(r,ie[e]).add(i,re[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),fe=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=ce.getPPIDs();return e}),we=(e,...t)=>s(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),clearTimeout(d)};r.addEventListener("load",o),r.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),be={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},xe={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}]},Ee={wallpaper:1600,"l-format":1600},Ce=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Re(e,be.ANY_FULLSCREEN)},Ie=e=>{const{native:t}=e;return!!t},Ae=e=>Re(e,be.FULLWIDTH),Te=e=>{const{targetId:t}=e;return t.includes("takeover")||Re(e,be.TAKEOVER)},Se=e=>Re(e,be.TAKEOVER),ke=e=>Re(e,be.WALLPAPER),Pe=e=>Re(e,be.COLLAPSE),Oe=e=>e.targetId.includes("sponsorstripe"),Le=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},je=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Ne=e=>e.targetId.startsWith("midboard"),De=e=>e.targetId.includes("widescreen"),Me=e=>e.width>=1260&&e.width<=1280,_e=e=>e.width>=1600&&e.width<=1620,Re=(e,t)=>{const n=xe[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===r,s=!t.height||t.height===o;return a&&s})},Fe="advertory-fullscreen-scroll",qe="advertory-fullscreen-scroll-wrapper",$e="fullscreen-scroll-in-screen",Be="in-screen",Ue=e=>e.includes("snoap.no"),Ve=e=>{var t,n,i,r,o;return!!(null===(o=null===(r=null===(i=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===i?void 0:i.adResponse)||void 0===r?void 0:r.ads[1])||void 0===o?void 0:o.rtb)},He=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},ze=He([],()=>{const e=({width:e,height:t})=>{var n;const i=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!i)return;const{clientWidth:r,clientHeight:o}=i,a=e/r,s=t/o;i.style.transform=`scale(${a},${s})`,i.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),We=e=>{const t=He([],()=>{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},Ke=[],Ge={},Je=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,r=new IntersectionObserver(e=>Qe(e,i),{}),o=Xe(e);r.observe(e),i&&(Ge[o]=tt(e,null==t?void 0:t.options))},Qe=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=Xe(e);n?(Ye(i,n),Ze(e,i,t)):(Ye(i,n),et(e,i,t))})},Ye=(e,t)=>{var n,i;const r=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;const o=t?"showFullscreen":"hideFullscreen";null===(i=r.contentWindow)||void 0===i||i.postMessage(`advertory:${o}-${e}`,"*")},Xe=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},Ze=(e,t,n)=>{e.classList.add(Be),document.body.classList.add($e),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ke.includes(t)||Ke.push(t),n&&window.addEventListener("scroll",Ge[t],{passive:!0})},et=(e,t,n)=>{Ke.includes(t)&&(n&&window.removeEventListener("scroll",Ge[t]),document.body.classList.remove($e),e.classList.remove(Be),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},tt=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:r=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&nt(e,o,r,0),a.length&&nt(e,a,r,40)}},nt=(e,t,n,i)=>{const r=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-i:(o+t-(a+r))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};function it(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}it('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::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;text-transform:lowercase;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 rt="left",ot={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN"}};let at=null;const st=(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=`(${ze})()`,e+t.outerHTML})(n),n=(e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");return n?(n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed",t.innerHTML):e})(n),n=(e=>{if(Ue(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=We(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>Ue(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)),Ue(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)),Ve(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},dt=()=>{at=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,r=document.documentElement;r.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),r.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),r.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},lt=()=>{at||(at=window.requestAnimationFrame(dt))},ct=(e,t)=>{var n,i,r,o;const{pageContext:{countryCode:a,deviceType:s}}=w.get(),{targetId:d}=e,l=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==l?void 0:l.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:r="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=i/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${r} 0px,\n ${r} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${r} calc(50% + ${l}px),\n ${r} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==l?void 0:l.overlayStyles)&&void 0!==i?i:{},s);const c=document.getElementById(d),u=null==c?void 0:c.parentElement;if(!c||!u)return;Je(u,t),c.className=Fe,Je(u,t),c.className="advertory-fullscreen-scroll";const p=Re(e,be.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";c.style.position=p,u.className=qe,u.dataset.showTagSubscribeId=d,c.setAttribute("data-ad-label",ot[a].adText),(null==l?void 0:l.cogwheelPosition)===rt&&(c.dataset.moveCogwheelToTheLeft="true"),lt(),window.addEventListener("resize",lt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",lt),null===(o=window.visualViewport)||void 0===o||o.addEventListener("scroll",lt)},ut=e=>{if(!(null==e?void 0:e.classList.contains(Fe)))return;e.classList.remove(Fe),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(qe))&&(t.classList.remove(qe),t.classList.remove(Be))};var pt=Object.freeze({__proto__:null,createFullscreenScrollAd:ct,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=Ve(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=Ve(e)?1:0,r=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;r&&(r.banner.content=t)})(e,st(t,e))},undoFullscreenScrollContainer:ut});const vt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},gt=(e,t,n)=>{var i,r,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),vt(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},ht="ad-loaded",mt="disable-cogwheel",yt=()=>null!==k("disable_prebid"),ft="0123456789abcdefghijklmnopqrstuvwxyz",wt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=ft[Math.floor(36*Math.random())]}return t},bt=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},xt=e=>{window.apntag.anq.push(e)},Et=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Ct=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})}),It=(e,t,n)=>s(void 0,void 0,void 0,function*(){yield Et,yield Ct;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)}),At=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:r},fullscreenScroll:o,appearanceConfig:a,placements:s}=w.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=w.getHandlers(),{getConsentAsync:l}=_(t,0,n),c=yield l(),u=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const r=Q(),{prebid:{relevantCallbackTimeout:o}={}}=w.get(),a="relevantCb"===i&&o?o:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,r.loadTags&&r.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Q(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Q();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:m}=v;(()=>{const e=Y();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{g("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return g("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"};g("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ge(n)),X(m,h))),g("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ge(n)),X(m,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{g("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=>{Tt(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const v=p.id,h=document.getElementById(v);if(!h)return;const m=null===(t=null==s?void 0:s[r])||void 0===t?void 0:t.find(e=>e.targetId===v),y=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[r])&&void 0!==d?d:0,f=Object.assign(Object.assign({},u),{targetId:v,banner:!0});g("prebid directRenderFn ad info",{targetId:v,width:null==u?void 0:u.width,height:null==u?void 0:u.height,adId:null==u?void 0:u.adId,creativeId:null==u?void 0:u.creativeId}),It(h,y,()=>{var e;const t=c(l),n=Ce(f);if(g("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)g("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),ct(f,o),i?h.style.setProperty("--advertory-political-box-offset","30px"):(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);else{g("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),ut(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(ht),(null==u?void 0:u.creativeId)&&gt(v,h,Number(null==u?void 0:u.creativeId))})}}),g("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=>{Tt(e,d)},directRenderFn:()=>{}})})}),Tt=(e,t)=>{var n;const{divId:i,native:r,bid:o}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:r,targetId:s},w.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")};let St="";const kt=new Map,Pt=e=>{const{pageSetup:{tag:t}={}}=w.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(St!==window.location.pathname&&(kt.clear(),St=window.location.pathname),e.map(e=>{var t;const n=e.invCode.replace(/_\d+$/,""),i=null!==(t=kt.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,kt.set(n,i+1),e})):e},Ot=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},Lt="advertory-wallpaper-background",jt="advertory-with-horseshoe",Nt=()=>{const e=document.querySelector(`.${Lt}`);e&&e.remove()},Dt=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Lt}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},Mt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,_t=e=>Mt.test(e),Rt=e=>e.startsWith("wallpaper:color:"),Ft=e=>{const t=document.querySelector(`.${Lt}`);t&&(t.style.backgroundImage=`url(${e})`)},qt=e=>{const t=document.querySelector(`.${Lt}`);t&&(t.style.backgroundColor=e)};var $t=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(jt),n.classList.add(jt))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{Nt();const e=document.createElement("div");e.classList.add(Lt),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--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&&(Dt(n),window.addEventListener("scroll",()=>Dt(n)))})(n),e()},isShortWallpaperColorMessage:Rt,isShortWallpaperUrlMessage:_t,removeWallpaperBackground:Nt,setWallpaperBackgroundColor:qt,setWallpaperBackgroundImage:Ft});const Bt=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")&&Nt())},Ut=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"))},Vt=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`)},Ht=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},zt=()=>{Nt();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Bt(e.id),Ht(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=Ot(e.id)}),xt(()=>window.apntag.clearRequest())},Wt="mobile",Kt="tablet",Gt="desktop",Jt="web_desktop",Qt="web_phone",Yt="wde",Xt="wph",Zt="noGroupedPlacements",en=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},tn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},nn=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:i,pageContext:{deviceType:r}}=w.get(),o=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Kt&&0===i.length?e[Gt]:i})(n,r),a=o.filter(tn),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=en(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),o=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${r}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(o),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const r=rn(e,t,n),o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${wt(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),o&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&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({},r),{targetId:s})});return Pt(l)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(d)},rn=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:o||r},on=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=w.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=Ot(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes(Ot(e.targetId)));return n})(e,i),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has(Ot(e.targetId))))(e,new Set([...s,...r]));return Object.assign(Object.assign(Object.assign({},a),o),{[Zt]:d})},an=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:r}=window,[o,a]=t;if(!i.dataset.lockedsize&&a&&o)i.style.width=`${o}px`,i.style.height=`${a}px`,n&&(r.resizeAd(i.id,[o,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=o.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&r.resizeAd(i.id,[e,t])}},sn=["netboard","board"];class dn{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:r}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",r),o&&s.searchParams.append("urlData",o),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return s(this,void 0,void 0,function*(){var t,n,i;const r=yield this.identityFacade.getIdentityUser(),o=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",a=(null==r?void 0:r.userId)?String(r.userId):"",s=this.buildUrl(e,{envId:o,spid:a});try{g("Starting fetching DrEdition ad from URL:",s);const e={method:"GET"},t=yield Z.get(s,e);return g("Fetch operation completed successfully."),t}catch(e){g("Error during fetch operation:",e)}return null})}}class ln{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:r,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:r,utm_medium:s},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),r=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{r.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const r=this.getDrEditionUTMParams(e,t),o=new URL(i);return Object.entries(r).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return s(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:r,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:r,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:r}=new URL(n);if(!i.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const o=r.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const cn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):g("Dr. Edition container does not have a parent element, cannot remove height lock.")};class un{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return s(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:o=!1}=t,a=e.querySelector(r);if(!a)return void g(`Container with selector "${r}" not found.`);const s=yield this.drEditionService.fetchData(t);return(null==s?void 0:s.itemId)||o?!(null==s?void 0:s.itemId)&&o?(g("No Dr. Edition ads available to render. Collapsing whole placement."),Bt(e.id),void cn(a)):((null==s?void 0:s.itemId)&&o&&(g("Dr. Edition ad available to render as a Xandr backfill."),Ut(e.id)),void(s?(s.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(s.css,"style"),yield this.rendererManager.render(a,s,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(s,t),cn(a),this.drEditionAds.push(s),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(s.itemId),this.observeAdView(e,s,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):cn(a))):(g("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void cn(a))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";Ut(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let r=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(r&&clearTimeout(r),r=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{o.observe(e)}),!0}}const pn=()=>{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"},vn=e=>e===Wt,gn=853,hn=767;class mn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return s(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:i}=_(n.tcf,n.isMobileApp,n.country),r=yield i(),o=vn(n.device)?t.mobileHTML:t.desktopHTML,a=r?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var i,r,o;e.search=null!==(o=null===(r=(i=this.newsroomStrategy).getUrlSearchParams)||void 0===r?void 0:r.call(i,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class yn{constructor(e){this.strategy=e}handle(e,t){return s(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return s(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,n=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!n)try{yield we(t)}catch(e){g("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return s(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,r=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==r||r.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==r?void 0:r.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,r;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",o),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(r=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===r||r.call(i,s),!0))}}class fn{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,r=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const p=this.getEventInput(e,t,n,"view");(null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)?null===(o=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===o||o.call(r,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,p):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,p)})}trackContentClick(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(r=(i=this.pulse).trackLegacyClickUIElement)||void 0===r||r.call(i,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class wn extends fn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(o=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===r?void 0:r.call(i,l))&&void 0!==o?o:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:p,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class bn extends fn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulseObjectId)||void 0===o?void 0:o.call(r))&&void 0!==a?a:p,"@type":"UIElement",position:p,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:p,"@type":v,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var r,o,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:p,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),f=this.getTeaserElementText(e,"image"),w=null!==(s=null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getUrlWithParams)||void 0===o?void 0:o.call(r,t,n))&&void 0!==a?a:v)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:p,link:w,placement:n.editionName,subtitle:y,time:h,title:m,type:i,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const xn={FRONT:"front"},En=e=>s(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),Cn={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return s(this,void 0,void 0,function*(){yield import("./styles-CFq95Psg.js")})}})}};class In{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){yield s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const a=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=a)||l.forEach(e=>{Cn[e](c)});const u={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},p=yield En(u);p.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(p,a)}),p.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),p.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield p.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===xn.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),r=i.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const An="https://www.aftonbladet.se/video-player-extras/latest/";class Tn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${An}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${An}external-link.js`]:{name:"ExternalLink"}}};yield En(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const Sn=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class kn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},Sn(e)?e:{}),{provider:Object.assign(Object.assign({},Sn(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${t}`]},requestSettings:{}}}},d=yield En(a);d.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===xn.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class Pn{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const On=(e,t,n)=>{var i;const{publisher:o,pageType:a,country:s}=e,d={[r.VG]:new ln,[r.E24]:new In,[r.AFTONBLADET]:new Tn,[r.SVD]:new kn}[o]||new Pn,l=new(s===j.SE?wn:bn)(n,d,a),c=new dn(t,null!==(i=null==n?void 0:n.pulseTracker)&&void 0!==i?i:n),u=new mn(d,l),p=new yn(d);return new un(c,u,p,l)},Ln=()=>s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class jn{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return s(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return g("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return s(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const Nn=(e,t,n)=>{const{wrapperSelector:i}=e.drEditionConfig.options,r=document.querySelectorAll(i),o=new IntersectionObserver((i,r)=>((e,t,n,i,r)=>{const o=On(n,i,r);e.forEach(e=>{var i,r,a;if(!e.isIntersecting)return;const s=e.target,d=null!==(i=s.dataset.editionName)&&void 0!==i?i:"",l=null!==(r=s.dataset.pulseColumnname)&&void 0!==r?r:"",c=null!==(a=s.dataset.pulsePrimaryposition)&&void 0!==a?a:"";o.fetchAndRenderAd(s,Object.assign(Object.assign({},n),{editionName:d,columnName:l,primaryPosition:c})),t.unobserve(s)})})(i,r,e,t,n),{rootMargin:"400% 0px"});r.forEach(e=>o.observe(e))},Dn=()=>s(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),Mn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},_n=[],Rn=(e,t)=>s(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:r,drEdition:o,pageContext:{deviceType:a,publisher:s,pageType:d,countryCode:l,isMobileApp:c}}=e;if(!(yield R(r,c,l,"handleDrEditionBackfill")))return;const u=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:o,drEdition:a}=e,s=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,d=o[r]||o.desktop,l=Ot(t.targetId),c=d.find(e=>e.targetId===l),u=sn.some(e=>l.startsWith(e)),p=_n.includes(l),v=(null===(i=null==c?void 0:c.drEdition)||void 0===i?void 0:i.editionName)||s;return c&&u&&!p&&v?(_n.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!u)return;if(!(null==i?void 0:i.instance))return void g("Pulse has not been passed as a prop, aborting");const p=yield Ln(),v=new jn(p),h=On({publisher:s,pageType:d,country:l},v,null==i?void 0:i.instance),m=document.getElementById(t.targetId);if(!m||!o)return;m.classList.value="";const y=document.createElement("div");y.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==u?void 0:u.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:r,isMobileApp:c,country:l,renderAsBackfill:!0};yield h.fetchAndRenderAd(m,f)}),Fn=e=>s(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield R(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield Ln(),i=new jn(n);Nn({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),qn=(e,t)=>{var n,i,r;if(!Mn())return void g("Ad block not enabled, Dr. Edition backfills will not be rendered");g("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(i=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===i?void 0:i[o],l=null!==(r=null==d?void 0:d.map(([e])=>e))&&void 0!==r?r:[],c=new IntersectionObserver((t,n)=>s(void 0,void 0,void 0,function*(){for(const i of t){if(!i.isIntersecting)continue;const t=i.target;n.unobserve(t),yield Rn(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!l.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&c.observe(t)})},$n="collapseAd",Bn="hideAd",Un="resizeAd",Vn="renderDrEditionFallback",Hn="wallpaperImageUrl",zn="wallpaperColor",Wn="velvet",Kn=[Un,Hn,zn,$n,Bn,Vn,Wn];let Gn;const Jn=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(_t(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Hn,wallpaperImageUrl:t}}if(Rt(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:zn,wallpaperColor:t}}if(e.startsWith(Vn)){const t=e.split(":")[1];return{name:Vn,targetId:t}}if(e.startsWith($n)||e.startsWith(Bn)){const t=e.split(":")[1];return{name:$n,targetId:t}}if(e.includes("name")&&Kn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Kn.some(e=>n.name===e))return;const{name:i,targetId:r,wallpaperImageUrl:o,wallpaperColor:a,cmd:s,size:d}=n;i===Wn&&s&&(s.includes("noScroll")&&(Gn=(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==Gn||Gn(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==$n&&i!==Bn||!r||Bt(r),i===Un&&r&&s&&an(r,s),i===Vn&&r&&(Bt(r),Rn(w.get(),{targetId:r})),"resizeMediationAd"===i&&r&&d&&an(r,d,!0),i===Hn&&o&&Ft(o),i===zn&&a&&qt(a)},Qn=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=w.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},o=e=>{Ut(e),xt(()=>i.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-D6j9NyVD.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-D6j9NyVD.js");yield t(e,r,o,()=>s(void 0,void 0,void 0,function*(){if(!E.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return $t});t(e)}))})}},Yn=(e,t)=>s(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield It(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Le(t)&&i?(g(`loading finn blink ad for blink only placement for ${t}`),void Qn().withFinnBlinkAd(t)):Le(t)?(g(`loading finn blink ad with full ads chain for ${t}`),void Qn().withFullAdsChain(t)):void xt(()=>(g("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)))}),Xn=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`),Ht(i=t),i.innerHTML=""},ri=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},oi=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=w.get(),i=ei.includes(n)&&Boolean(t.closest(ti));const r=i?t.closest(ti):null,o=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!i&&!a||i&&!r)return;if(a)return ri(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=r;s&&d.contains(s)?ri(s):d.hasAttribute("style")&&ri(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},ai=(e,t,n,i,r,o)=>{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,r)&&n<0;s-d>=r&&l&&(Zn.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=w.get(),r=null==n?void 0:n.parentElement;r&&n&&ii({adWrapper:r,placementContainer:n}),xt(()=>{e.setKeywords([t],{[`${z(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},si=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:r,boundingClientRect:o}=e;t(window.apntag,r.id,o.y,n,i,r)})})(e,ai,t,n),Xn(300));i.observe(e)},di=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},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 r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;ci(r,o)&&i&&(Vt(i.targetId),n.length&&r.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)),r=(e=>1===e[0]&&1===e[1])(i),o={sizes:[i],allowedFormats:r?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return r||(o.native=void 0),o},mi=(e,t=!1)=>{const{queryConfig:{batchSize:n=y}={}}=w.get(),i=e.map(({targetId:e})=>e),r=di(i,n);if(t)for(const t of e){const e=hi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of r)xt(()=>window.apntag.refresh(e))},yi=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},fi=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=_(t,0,i);if(!(yield r()))return;const o=yi("_pulse2data");return o?o.split(",")[9]:void 0}),wi={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},bi="takeover-displayed",xi="takeover-visit-count",Ei=14400,Ci=()=>{const e=yi(xi);return e?parseInt(e):0},Ii=()=>{const e=Ci(),{takeover:{options:{cookieCapTime:t=Ei}={}}={}}=w.get(),n=document.location.hostname;window.document.cookie=`${xi}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Ai=()=>{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)||bi;return"true"===yi(n)})())&&(!t||Ti()))},Ti=()=>{const e=Ci();return 0===e?(Ii(),!1):1===e},Si=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),ki=()=>{const{takeover:e}=w.get();return Boolean(null==e?void 0:e.topscroller)},Pi=e=>{const{width:t,height:n}=e;return Si(t,n)?wi.SPLASH:Re(e,be.VELVET_TAKEOVER)?wi.VELVET:ki()?wi.TOPSCROLLER:wi.WELCOME_PAGE},Oi=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=bi,cookieCapTime:n=Ei}={}}={},pageContext:{isMobileApp:i,countryCode:r},tcf:o}=w.get(),a=yield R(o,i,r,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Li=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 Te(e)&&i},ji=(e,t)=>{var n;if(t===wi.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===wi.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Ni=(e,t)=>{t!==wi.SPLASH?(e=>{var t,n;const i=null===(t=w.get().pageSectionsSelectors)||void 0===t?void 0:t.header,r=null===(n=w.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||r)return;const o=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=Se(e)?"60svh":`calc(100svh - ${l}px)`,u=Se(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 r=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",r,"important")})(e)},Di=He([],()=>{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 Mi=Object.freeze({__proto__:null,addTakeoverCookie:Oi,adjustTakeoverHeight:Ni,canDisplayTakeover:Ai,getProperWelcomePageConfig:ji,getTakeoverVariant:Pi,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){Li(e)&&(yield Oi())}),incrementArticleVisitCount:Ii,isSplashVariant:Si,isTopscroller:ki,scaleAd:Di,shouldAddTakeoverCookieForNotShownAd:Li});const _i=e=>`externalImpId:'${e}'`,Ri=(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,Fi=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},tracker:i}=w.get(),{targetId:r,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Ai())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!==wi.TOPSCROLLER):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),h=Object.assign({invCode:d,sizes:o,targetId:r,keywords:Ri(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),m=(e=>{var t,n,i,r,o,a,s;return e?(null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)?(null===(i=null===(n=null==e?void 0:e.instance)||void 0===n?void 0:n.state)||void 0===i?void 0:i.pageViewId)?(g("Tracker state pageViewId is:",null===(o=null===(r=null==e?void 0:e.instance)||void 0===r?void 0:r.state)||void 0===o?void 0:o.pageViewId),null===(s=null===(a=null==e?void 0:e.instance)||void 0===a?void 0:a.state)||void 0===s?void 0:s.pageViewId):(g("Tracker state does not contain field pageViewId or it is empty"),""):(g("Tracker state is empty"),""):(g("Tracker is not configured in initAdvertory function"),"")})(i);n&&m&&(g("External Impression ID assigned to defineTag:",_i(m)),h.externalImpId=_i(m));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=y),h},qi=e=>!e.includes("takeover")||Ai(),$i=e=>{const{source:t}=e;return"csm"===t},Bi={nativeAd:e=>Ie(e)&&!Oe(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:Ae,fullscreenScroll:Ce,topscroller:e=>Te(e)&&ki(),splash:e=>Te(e)&&Si(e.width,e.height),welcomePage:Te,wallpaper:ke,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Me,hFormat:_e,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!_e(e)&&!Me(e),topboard:e=>e.targetId.startsWith("topboard")&&!Te(e),widescreen:De,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Oe,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!je(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Ne(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:je,midboard:Ne},Ui=({adObj:e,preferredTestIdData:t})=>{var n,i;const r=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!r)return;const o=null===(i=document.querySelector(`#${r}`))||void 0===i?void 0:i.parentElement;if(!o)return;if(((e,t)=>{var n,i,r,o;const a=null===(o=null===(r=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===r?void 0:r[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(r,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,i;for(const[r,o]of Object.entries(Bi))if(o(e)){if("nativeAd"===r){const o="default";t.dataset.testid=`${r}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:o}`;break}t.dataset.testid=r;break}})(e,o)},Vi=e=>{var t;return(null===(t=Object.entries(Bi).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Hi=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=w.get(),n=z(t),i=e[`${n}-targetid`],r=i?Ot(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[r]})},zi=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"]})},Wi=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const i=n.split(",")[0].split(":")[0],r=e.find(e=>e.invCode===i),o=document.querySelector(`[id^=${null==r?void 0:r.targetId}]`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{var e;const t=new URLSearchParams(window.location.search).get("scrollToDrEditionPlacement");if(!t)return;const n=null!==(e=document.querySelector(`[id*="${t}}"]`))&&void 0!==e?e:document.querySelector(`a[aria-label*="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})()},Ki=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});it(".advertory-brandmetrics-survey{width:100%}");const Gi="advertory-brandmetrics-survey",Ji="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Qi=()=>s(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Yi={pageContext:{publisher:"aftonbladet",countryCode:j.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},Xi={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Zi=e=>(null==e?void 0:e.parent)?[...Zi(e.parent),e.shortPath||"unknown"]:[],er=(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]=Zi(e);return Xi[n]||"ovrigaavdelningar"})(e)}_{position}`,tr={aftonbladet:Yi},nr={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:er(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Zi(e).join(":")}}},ir=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},rr=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),or="se-generic",ar="aa-sch",sr="kv_",dr="pause",lr="{deviceType}",cr="{position}",ur="afp_",pr=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),vr="1-1",gr="16-9",hr="3-4",mr="9-16",yr="responsive",fr={[vr]:1,[gr]:1.78,[mr]:.56,[yr]:1},wr={[vr]:1,[gr]:1.78,[hr]:1.33,[mr]:.56},br=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},a=Gt===n?Yt:Xt,s=r.replace(lr,a);return(e,n)=>{if(e===dr)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(cr,dr).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&pr.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(lr,a).replace(cr,e)}return s.replace(cr,e)}},xr=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Er=()=>{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},Cr=()=>{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},Ir=()=>{const e=null!==(t=Cr()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Cr()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ar=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Tr=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield R(n,e.isApp,r,"video"))?"1":"0",l=yield Qi(),c=yield ye(r),u=yield fi({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)=>xr(wr,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?xr(fr,Number(m.toFixed(2))):yr;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ar}-country_code`]:r,[`${ar}-publisher`]:i,[`${ar}-supply_type`]:(y=e.deviceType,y===Gt?Jt:Qt),[`kw_${ar}-page_type`]:"collection",[`${ar}-page_type`]:"collection",[`${or}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${or}-page`]:"index",[`${or}-page`]:"index",[`${or}-screenheight`]:String(window.screen.height),[`${or}-screenwidth`]:String(window.screen.width),[`${or}-viewportheight`]:String(a),[`${or}-viewportwidth`]:String(o),[`${or}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${or}-mobile-os`]:pn(),[`${or}-audience`]:void 0,[`${or}-externalid_src`]:Ir(),[`${or}-tags`]:e.tags,[`${or}-articleid`]:p,"article-id":p},yield W(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${or}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Ar()).some(e=>e.includes(sr))&&(()=>{const e=Ar(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(sr)).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})}),Sr=["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"],kr=["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"],Pr=["external_uid","gdpr","gdpr_consent","eids","article-id"],Or=(e,t)=>{const n=[...Sr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Pr.includes(e)?e:`kw_${e}`,t]))},Lr=e=>Object.fromEntries(Object.entries(e).filter(([e])=>kr.includes(e))),jr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i,r,o;const a=(e=>{var t;tr[e]||h(`[video] No config found for publisher "${e}"`);return null!==(t=tr[e])&&void 0!==t?t:Yi})(e.publisher),s=(e=>{var t;return null!==(t=nr[e])&&void 0!==t?t:nr.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Tr({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Er(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:ir(e.startMode)}}),Nr=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=br(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(ur)?`${ur}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,r),"se-generic-playback-method":rr.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({},Or(o,n)),Lr(o)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Dr=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield jr(e,t);return Nr(n,e)}),Mr={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]}]},_r={no:"NOK",se:"SEK"},Rr={no:"no",se:"sv"};class Fr{buildFetchObject(e,t,n,i){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:r},pageOptions:o}=i,{invCode:a,xandrPlacementId:s}=e,d=yield Qi(),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(Mr),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:wt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(o.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Rr[r]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield fi(i),ext:{consent:d.gdpr_consent||"",eids:me(r)}},at:1,cur:[_r[r]],source:{tid:wt(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,i){return s(this,void 0,void 0,function*(){try{g("Starting fetching Studio ad from Xandr:",Ji);const r=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${Ji}?${a.toString()}`:Ji,d=yield this.buildFetchObject(e,t,n,i),l=yield Z.post(s,r,d);return g("Fetch operation completed successfully.",l),l}catch(e){g("Error during fetch operation:",e)}return null})}}const qr=0,$r=3,Br=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(s),r.classList.add(d),t.dataset.adType=n},Ur={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Vr=(e,t)=>{Hr(e,t),Wr(e,t)},Hr=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const i of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])Gr(i)}),t.dataset.tracked="true")})},zr=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(Kr):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},Wr=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:Gt])&&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,zr(e),c.disconnect();break}},d);c.observe(r)},Kr=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Gr(e):window.navigator.sendBeacon(e)},Gr=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Jr=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:[]}),Qr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[r],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void g(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Xn(s)).observe(d)});const{prepareTag:l}=w.getHandlers(),c=E.getData("alertoryConfigKeywords"),u=null!==(i=l(Fi(e)).keywords)&&void 0!==i?i:{},p=new Fr,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===Wt?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===qr){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(d,v,r),v.adType===$r&&(Br(t.pageContext.publisher,d,Ur.NATIVE_AD,t.pageContext.pageType),Vr({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,a;let s;(null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),gt(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),Yr=(e,t)=>{e.forEach(e=>Qr(e,t).catch(e=>{g("Failed to handle server-side ad:",e)}))},Xr={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},Zr=e=>s(void 0,void 0,void 0,function*(){if(!(e=>{const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))})(e))return e;try{const t=yield(e=>s(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;return(null==t?void 0:t.publisherClassName)&&i?`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`:null})(e);if(!t)return null;const n=new AbortController,i=setTimeout(()=>n.abort(),5e3);try{return yield Z.get(t,{method:"GET",signal:n.signal})}catch(e){throw g("Failed to fetch S3 config",{error:e,url:t}),e}finally{clearTimeout(i)}}))(e);return t?((e,t)=>u(t,e,Xr))(e,t):e}catch(t){return g("Error fetching S3 config, using site config",{error:t}),e}});let eo,to=[];const no=["takeover","wallpaper"],io=e=>{const t=(e=>{var t;const n=E.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:f}=e,w=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:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:w})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.4.14",siteConfig:e,alertoryConfig:t}},ro=()=>s(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 s(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=zi(e);E.setData("alertoryConfigKeywords",n)})(r.keywords),xt(()=>eo.setPageOpts(r))}),oo=e=>s(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=w.get(),o=yield R(n,i,r,"loadPlacements"),a=((e,t)=>t?e:(e.filter(e=>!e.supportsNonRTB).forEach(e=>Bt(e.targetId)),e.filter(e=>e.supportsNonRTB).map(e=>{return Object.assign(Object.assign({},e),{invCode:(t=e.invCode,`${t}_non_rtb`)});var t})))(e,o);ao(a);(null==t?void 0:t.enabled)&&o&&!yt()?(g("core loadPlacements prebid enabled"),yield At()):(g("core load tags invoked without prebid enabled"),so(a))}),ao=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)),r=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===r?-1:-1===i&&-1!==r?1:i-r})})(e).forEach(e=>{g("core defineTags",{placement:e});const i=Fi(e);if(qi(e.targetId)){const r=t(i),o=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:r}=e;return{adTypes:t,invCode:n,keywords:Hi(i),sizes:r}})(r);n.push(o),xt(()=>(g("core defineTag - add to the queue",{placement:e,preparedTag:r}),eo.defineTag(r)))}}),(e=>{var t,n,i;(null===(i=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===i?void 0:i.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},so=e=>{const t=e.filter(({targetId:e})=>qi(e)).map(({targetId:e})=>e);t.length&&xt(()=>(g("core loadTags",{placementsIdsToLoad:t}),eo.loadTags([...t])))},lo=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=w.get(),{requestThreshold:r,refresh:o}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[i];a&&(g("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:r,deviceDefaultThreshold:s}),yield Yn(a,null!=r?r:s)),a&&(null==o?void 0:o.scroll)&&(g("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),co=e=>e.some(({targetId:e})=>no.some(t=>e.includes(t))),uo=e=>s(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=y}={},pageContext:{deviceType:i}}=w.get(),r=on(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...di(s,n)]})(i);for(const e of r)co(e)?(g("core loadAds without lazy loading",{placementsToLoad:e}),yield oo(e)):e.length&&(g("core loadAds with lazy loading",{placementsToLoad:e}),yield po(e));const{finnBlink:o}=w.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-D6j9NyVD.js");yield e(n)}}),po=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=w.get(),i=[];if(!t)return g("lazy load is not enabled",{placements:e}),void(yield oo(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{g("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&oo(e),g("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(g("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),vo=()=>s(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=w.getHandlers(),{wallpaper:n,fullscreenScroll:i}=w.get(),r=[];xt(()=>{eo.onEvent("adRequested",()=>{e.adRequested()}),eo.onEvent("adAvailable",r=>s(void 0,void 0,void 0,function*(){var o,a,s,d,l,c;g("core adAvailable start",{placementsAvailable:to,adObj:r,isFullscreenScrollAd:Ce(r),isFinnBlink:Le(r.targetId),isNativeAd:Ie(r),isMediation:$i(r),isTakeoverAd:Te(r),isCollapseAd:Pe(r),isWallpaperAd:ke(r)});const u=null===(s=null===(a=null===(o=null===window||void 0===window?void 0:window.apntag)||void 0===o?void 0:o.requests)||void 0===a?void 0:a.tags[r.targetId])||void 0===s?void 0:s.adResponse.ads;if($i(r)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(r.banner=null===(c=null===(l=u[1])||void 0===l?void 0:l.rtb)||void 0===c?void 0:c.banner),Ce(r)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return pt});e(r)}const{widescreenSwitching:p}=w.get();if(De(r)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield import("./index-C3N6OygM.js");e()}if(Ce(r)&&!Le(r.targetId)){g("core adAvailable: creating fullscreen scroll container",{targetId:r.targetId,width:r.width,height:r.height,bannerWidth:r.banner&&"object"==typeof r.banner?r.banner.width:r.banner,bannerHeight:r.banner&&"object"==typeof r.banner?r.banner.height:void 0});const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return pt});e(r,i)}if(!Ie(r)||$i(r)||Le(r.targetId)||null==t||t(r,w.get()),Te(r)&&!Pe(r)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-CeRWWVnw.js");e(r.targetId),yield t(r)}if(ke(r)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return $t});e(()=>xt(()=>window.apntag.showTag(r.targetId)),n),E.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(r)&&E.setData("horseshoe",{isAvailable:!0}),e.adAvailable(r);const v=to.find(({targetId:e})=>e===r.targetId);v&&(yield lo(v,r),to=to.filter(e=>e.targetId!==v.targetId)),g("core adAvailable stop",{placementsAvailable:to,adObj:r,isFullscreenScrollAd:Ce(r),isFinnBlink:Le(r.targetId),isNativeAd:Ie(r),isMediation:$i(r),isTakeoverAd:Te(r),isCollapseAd:Pe(r),isWallpaperAd:ke(r)})})),eo.onEvent("adLoaded",n=>s(void 0,void 0,void 0,function*(){const{refreshConfig:i,appearanceConfig:o,wallpaper:a,adScaleConfig:s}=w.get(),d=document.getElementById(n.targetId);if(Le(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-C0sezdBn.js");e(n)}if(r.includes(n.targetId)&&Ie(n)&&(null==t||t(n,w.get()),Ui({adObj:n})),!r.includes(n.targetId)&&$i(n)&&r.push(n.targetId),Pe(n)&&Bt(n.targetId),Te(n)){const{modifyTakeoverIframe:e}=yield import("./index-CeRWWVnw.js");e(eo,n.targetId)}if((e=>Re(e,be.NINESIXTEEN))(n)){const{applyNinesixteenFormat:e}=yield import("./index-DDWIYeu-.js");e(n)}if((e=>Re(e,be.FULLSQUARE))(n)){const{applyFullsquareFormat:e}=yield import("./index-DDWIYeu-.js");e(n)}if(Ae(n)){const{applyFullwidthFormat:e}=yield import("./index-DDWIYeu-.js");e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),r=null==i?void 0:i.parentElement;if(!r||!i)return;oi({adWrapper:r,placementContainer:i});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&si(i,a,o))})(n,i),(null==o?void 0:o.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(E.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return $t});e(n.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-BpzCvrHU.js");e(n),t(n)}e.adLoaded(n),vt(n.targetId),d&&(d.classList.add(ht),(e=>{var t,n;const{pageSectionsSelectors:i}=w.get(),r=null==i?void 0:i.mainFirstColumn,o=r?null===(t=document.querySelector(r))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(d)),Ui({adObj:n}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const i=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;i&&((e,t)=>{const{height:n,width:i,native:r}=e;r?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(n),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:Vi(n)}}))})),eo.onEvent("adNoBid",t=>s(void 0,void 0,void 0,function*(){var n;if(Bt(t.targetId),null===(n=w.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-sIym3nCc.js");yield e(w.get(),t)}if(Te(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Mi});yield e(t)}e.adNoBid(t)})),eo.onEvent("adError",(t,n)=>s(void 0,void 0,void 0,function*(){if(Te(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Mi});yield e(n)}e.adError(t,n)})),eo.onEvent("adCollapse",()=>{e.adCollapse()}),eo.onEvent("adRequestFailure",t=>s(void 0,void 0,void 0,function*(){Bt(t.targetId),yield Rn(w.get(),t),e.adRequestFailure(t)})),eo.onEvent("adBadRequest",t=>s(void 0,void 0,void 0,function*(){Bt(t.targetId),yield Rn(w.get(),t),e.adBadRequest(t)})),eo.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),eo.onEvent("adNoBidMediated",t=>s(void 0,void 0,void 0,function*(){yield Rn(w.get(),t),e.adNoBidMediated(t)}))})}),go=(e,t)=>s(void 0,void 0,void 0,function*(){var n;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{clearAds:i,reloadExistingAds:r,renderFinnBlinkPlacements:o,contextSelector:a}=null!=t?t:{};if(i)return zt(),[];r&&(zt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Ut(e.id)})),b(null!=e?e:{}),yield ro();const{clientSidePlacements:s,serverSidePlacements:d}=Jr(nn(a));let l=s;return o&&(l=l.filter(e=>Le(e.targetId))),Yr(d,w.get()),l.length>0&&(to=[...to,...l.map(e=>Object.assign({},e))],ui(l),vi(l),yield uo(l)),to}),ho=(e,t)=>s(void 0,void 0,void 0,function*(){var n;w.set(e),w.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:i,kilkaya:r,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(E.initialize(),window.addEventListener("message",Jn,!1),eo=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=eo,g("Apn tag is set up on window"),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();(yield R(e,t,n,"xandr-endpoint"))||eo.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){if(yt())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get(),r=yield R(t,n,i,"prebid");(null==e?void 0:e.enabled)&&r&&(yield we(null==e?void 0:e.prebidUrl))}),ue(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=w.get();yield we(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get();(yield R(t,n,i,"gpt-endpoint"))&&(yield we(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=w.get(),{getConsentAsync:o}=_(n,0,r),a=yield o();if(e&&t&&a){if(yield we(t),document.querySelector(`.${Gi}`))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(Gi)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),q(),s(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 we(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==i?void 0:i.enabled){const{loadNorstat:e}=yield import("./index-CDm1z5Zz.js");yield e()}g("Libraries have been loaded and trackers have been set"),yield vo(),yield ro(),g("Page options have been set"),io(e),g("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=Jr(nn());if(to=l,Yr(c,e),ui(to),vi(to),yield uo(to),g("Ads has been loaded",to),qn(e,to),Wi(to),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-D6j9NyVD.js");yield t(null===(n=null==e?void 0:e.pageContext)||void 0===n?void 0:n.deviceType,e.finnBlink)}if(null==a?void 0:a.enabled){const{handleDrEdition:t}=yield import("./index-sIym3nCc.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-DQlbgZ8n.js");t(e.rightColumnSplit)}if(null==r?void 0:r.enabled){const{runKilkaya:t}=yield import("./index-CZmxzuAB.js");yield t(e)}}),mo=(e,t)=>s(void 0,void 0,void 0,function*(){yield((e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{initConsentManager:r,getConsentAsync:o}=_(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),a=yield Zr(e);yield Dn(),yield Ki(r),yield Ki(o),g("TCF resolved successfully"),yield ho(a,t),g("Run function resolved successfully")}))(e,t)}),yo=(e,t,n,i)=>{var r;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:E,customBody5:C,customIcon1:I,customIcon2:A,customDisplayUrl1:T}=e,S=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:S(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return S(t?I:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=E?E:"",customBody5:null!=C?C:"",logo2:S(A),previewVideoSrc:null!=T?T:""},t)},fo=(e,t)=>{const n=(i=O,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(O),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},wo=(e,t,n,i)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:o}=t,a=i&&Object.values(r).includes(i);n&&a&&Br(i,e,Ur.NATIVE_AD,o)})(o,n),i())},bo=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=fo(e.targetId,l))&&void 0!==i?i:c,p=ot[t.language||j.NO],v=yo(s,p,d,t);return(s.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);wo(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Vr(e,t)})},xo=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const a=e.getOptions(null!=n?n:{});bo(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},Eo=()=>{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},Co=e=>{const{siteSpecificConfig:t}=w.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Io{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Ao=9826;class To{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=w.get();if(t){return{"aa-sch-supply_type":`app_${e===Wt?"phone":Kt}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=yi("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield fi(w.get())})}isTrackingForbidden(){return s(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=Ao}={}}=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 s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get(),{getConsentAsync:i}=_(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 So=new To;function ko(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),r=pn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}So.prepare.bind(So);const Po=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Oo(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Po.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Lo extends To{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}=ko(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Oo(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get(),r=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const jo=new class extends Lo{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,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===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Io;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(W(w.get(),l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(ve()).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({},pe(j.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},No=jo.prepare.bind(jo);class Do extends To{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!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=w.get(),{appMode:t,mobileOS:n}=ko(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 Mo=new class extends Do{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a;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===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new Io;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(W(w.get(),l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>s(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(ve()).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"===yi("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({},pe(j.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},_o=Mo.prepare.bind(Mo);it(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const Ro=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),e("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:e("span",{id:"advertory-splash-close-label"})})]})});var Fo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",qo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";it(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const $o=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:Fo,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:qo,width:"54",height:"54"})]}),{})]});it(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const Bo=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:Fo,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:qo,width:"54",height:"54"})]}),{})]});it(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const Uo=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(Ro,{}),e($o,{}),e(Bo,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),Vo={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,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})(r,l),u=(e=>{const{pageContext:{countryCode:t}}=w.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${z(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in Ee)||window.innerWidth>=Ee[e]);return{[r]:i?a:o}})(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=Eo(),h=(e=>Co(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(r),m=((e,t)=>Co(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(r,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new Io).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:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=w.get();return yield t===j.SE?_o(e):No(e)}),siteEvents:i},Ho=((e,t)=>({init:n=>mo(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:go,getVideoPPIDs:ye,createInitNativeAd:xo,getVideoAdsConfig:Dr}))(Vo,o);export{Ur as A,gn as B,Vi as C,ot as D,Re as E,en as F,On as G,Fn as H,hn as I,Rn as J,qn as K,he as L,j as M,jn as N,J as O,Ln as P,xn as Q,Ut as R,be as S,wi as T,we as U,r as V,Ho as W,Uo as X,s as _,fe as a,Bt as b,w as c,a as d,Mn as e,Br as f,Ot as g,R as h,it as i,ci as j,ji as k,g as l,Di as m,Pi as n,Oi as o,Ni as p,Ve as q,mt as r,Yn as s,bt as t,Qn as u,Ui as v,Ce as w,ct as x,Ie as y,vn as z};