@schibsted/advertory 3.7.2 → 3.7.4-inv-2708.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/ad-native/cjs/index.d.ts +6 -1
  2. package/ad-native/cjs/index.js +1 -1
  3. package/ad-native/es/index.d.ts +6 -1
  4. package/ad-native/es/index.js +1 -1
  5. package/aftenposten/cjs/index.d.ts +6 -1
  6. package/aftenposten/cjs/index.js +1 -1
  7. package/aftenposten/es/_auto-entry_aftenposten-CieIuPl-.js +1 -0
  8. package/aftenposten/es/{events-DeUuA-Qw.js → events-BsCOwumf.js} +1 -1
  9. package/{aftonbladet/es/index-C9gHxEvF.js → aftenposten/es/index-BBREOZsC.js} +1 -1
  10. package/aftenposten/es/{index-BLEcSbNG.js → index-BV9emDKq.js} +1 -1
  11. package/aftenposten/es/{index-B9nh5IiK.js → index-BcOv6iOz.js} +1 -1
  12. package/aftenposten/es/{index-BUkTedc9.js → index-ByPQuu9X.js} +1 -1
  13. package/aftenposten/es/index-CIImRck0.js +1 -0
  14. package/aftenposten/es/{index-DjP0o07A.js → index-CWuGER9E.js} +1 -1
  15. package/aftenposten/es/{index-BS7ADy_E.js → index-Ci7gpvII.js} +1 -1
  16. package/aftenposten/es/{index-B6AZWK8a.js → index-CsQRsTie.js} +1 -1
  17. package/aftenposten/es/{index-De8kpW1h.js → index-DjmkrxrD.js} +1 -1
  18. package/aftenposten/es/index.d.ts +6 -1
  19. package/aftenposten/es/index.js +1 -1
  20. package/aftenposten/es/{styles-CuyZQYs2.js → styles-B9C_W5kd.js} +1 -1
  21. package/aftenposten/es/{styles-BqZWoABp.js → styles-CZ2bMQ9L.js} +1 -1
  22. package/aftenposten/es/{styles-Bq-Ev6DW.js → styles-D2tafexl.js} +1 -1
  23. package/aftenposten/es/{styles-C2sXUE64.js → styles-DAdNEExh.js} +1 -1
  24. package/aftenposten/es/{styles-_hOXXamw.js → styles-DRd1wA5X.js} +1 -1
  25. package/aftenposten/es/{styles-eiNsA-Ij.js → styles-Dbg_hjnc.js} +1 -1
  26. package/aftenposten/es/{styles-R0EWigyN.js → styles-DcT0BFOV.js} +1 -1
  27. package/aftenposten/es/{styles-Kwj0xwNk.js → styles-Dj3TM_6O.js} +1 -1
  28. package/aftenposten/es/{styles-BP0fWvh7.js → styles-DjwSyjA1.js} +1 -1
  29. package/aftenposten/es/{styles-CXUhHI9a.js → styles-RxuykJ6k.js} +1 -1
  30. package/aftenposten/styles.css +1 -1
  31. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-DWqjAWy4.js +1 -0
  32. package/aftenpostenv2/es/{events-CizMH4fR.js → events-DdBCTj5C.js} +1 -1
  33. package/aftenpostenv2/es/{index-FdeRxlg8.js → index-BKYc4Jb_.js} +1 -1
  34. package/aftenpostenv2/es/{index-BdFEfL3A.js → index-BRQZuNvw.js} +1 -1
  35. package/aftenpostenv2/es/index-BkEtR7d-.js +1 -0
  36. package/aftenpostenv2/es/{index-BJ5G7F-y.js → index-C_bhhfE8.js} +1 -1
  37. package/aftenpostenv2/es/{index-Cx907I71.js → index-C_n0QEei.js} +1 -1
  38. package/aftenpostenv2/es/{index-C-fQhx8b.js → index-Cl9hh3yW.js} +1 -1
  39. package/aftenpostenv2/es/{index-BBy43iE0.js → index-D23LMMIl.js} +1 -1
  40. package/aftenpostenv2/es/{index-_JO7oFd9.js → index-DC2kWGC5.js} +1 -1
  41. package/aftenpostenv2/es/{index-BvDgZ9LX.js → index-DHOEX7ff.js} +1 -1
  42. package/aftenpostenv2/es/index.d.ts +6 -1
  43. package/aftenpostenv2/es/index.js +1 -1
  44. package/aftenpostenv2/es/{styles-3EVsjh7C.js → styles--9qBEyre.js} +1 -1
  45. package/aftenpostenv2/es/{styles-DH0GiqkZ.js → styles-Bo7KFJmh.js} +1 -1
  46. package/aftenpostenv2/es/{styles-B2tuu6uC.js → styles-C2-cjpZy.js} +1 -1
  47. package/aftenpostenv2/es/{styles-CAT7NPE7.js → styles-C2ZaviMy.js} +1 -1
  48. package/aftenpostenv2/es/{styles-CdrXjAMO.js → styles-CHlYzwIx.js} +1 -1
  49. package/aftenpostenv2/es/{styles-DlG9R28y.js → styles-DE7Zq-6A.js} +1 -1
  50. package/aftenpostenv2/es/{styles-BmUgRDNO.js → styles-DIvCv-6D.js} +1 -1
  51. package/aftenpostenv2/es/{styles-sNgL6jZ8.js → styles-DLK_my0b.js} +1 -1
  52. package/aftenpostenv2/es/{styles-CK1S_AZu.js → styles-DhhAGvyA.js} +1 -1
  53. package/aftenpostenv2/es/{styles-Da3oFeei.js → styles-wkyNQA1J.js} +1 -1
  54. package/aftenpostenv2/styles.css +1 -1
  55. package/aftonbladet/cjs/index.d.ts +6 -1
  56. package/aftonbladet/cjs/index.js +1 -1
  57. package/aftonbladet/es/_auto-entry_aftonbladet-nw-ChLuX.js +1 -0
  58. package/aftonbladet/es/{events-DqpRsEkU.js → events-Wvxw9b9w.js} +1 -1
  59. package/aftonbladet/es/{index-BH7gW4zj.js → index-B-uF5Xal.js} +1 -1
  60. package/aftonbladet/es/{index-DzeDIn8l.js → index-B2efhD-c.js} +1 -1
  61. package/aftonbladet/es/{index-CtMKeWn_.js → index-BNIW66nz.js} +1 -1
  62. package/aftonbladet/es/{index-DesxdBXp.js → index-BoXXDAa7.js} +1 -1
  63. package/aftonbladet/es/{index-BkEX_II3.js → index-DYSN_XL9.js} +1 -1
  64. package/aftonbladet/es/{index-6ioa9f5W.js → index-DpfoCzhT.js} +1 -1
  65. package/aftonbladet/es/{index-CyvsIqW8.js → index-FgW47h-p.js} +1 -1
  66. package/aftonbladet/es/index-G2XwqOdn.js +1 -0
  67. package/{aftenposten/es/index-BH1ZqRwz.js → aftonbladet/es/index-Z44yk54o.js} +1 -1
  68. package/aftonbladet/es/index.d.ts +6 -1
  69. package/aftonbladet/es/index.js +1 -1
  70. package/aftonbladet/es/{styles-B1xzM1Fn.js → styles-CKQU-1tX.js} +1 -1
  71. package/aftonbladet/es/{styles-p7Dk6xmZ.js → styles-CpwGVojB.js} +1 -1
  72. package/aftonbladet/es/{styles-BCcFJJWb.js → styles-D6bBjLvY.js} +1 -1
  73. package/aftonbladet/es/{styles-DcMja1hS.js → styles-DsmZThwB.js} +1 -1
  74. package/aftonbladet/es/{styles-B2p_Yrin.js → styles-LbLpqxd3.js} +1 -1
  75. package/aftonbladet/es/{styles-CQCcikBF.js → styles-v-gZhXuT.js} +1 -1
  76. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-C-izQxTL.js +1 -0
  77. package/aftonbladetv2/es/{events-hkBpKzF4.js → events-CYkRO1vf.js} +1 -1
  78. package/aftonbladetv2/es/{index-DBOQehdt.js → index-BKxeYfGi.js} +1 -1
  79. package/aftonbladetv2/es/{index-BT0TSiMc.js → index-BYp-Fj5h.js} +1 -1
  80. package/aftonbladetv2/es/{index-BBheqCNu.js → index-Bz6YfFCj.js} +1 -1
  81. package/aftonbladetv2/es/{index-CF0n-q2W.js → index-C1eJ_Py2.js} +1 -1
  82. package/aftonbladetv2/es/{index-D6gBaphS.js → index-D3xl0nWJ.js} +1 -1
  83. package/aftonbladetv2/es/index-EPRuqN2n.js +1 -0
  84. package/aftonbladetv2/es/{index-e1mzCrsV.js → index-_zsdnNQH.js} +1 -1
  85. package/aftonbladetv2/es/{index-DegM3gz-.js → index-o_JNjgWj.js} +1 -1
  86. package/aftonbladetv2/es/{index-DKWiA1uW.js → index-sTTJiD4Q.js} +1 -1
  87. package/aftonbladetv2/es/index.d.ts +6 -1
  88. package/aftonbladetv2/es/index.js +1 -1
  89. package/aftonbladetv2/es/{styles-DJqEFSjk.js → styles-BIop_K4i.js} +1 -1
  90. package/aftonbladetv2/es/{styles-D7iKjXVU.js → styles-BSM05El7.js} +1 -1
  91. package/aftonbladetv2/es/{styles-DLVD_YYO.js → styles-BgDIrNIg.js} +1 -1
  92. package/aftonbladetv2/es/{styles-D4pyyo_f.js → styles-CUWV12db.js} +1 -1
  93. package/aftonbladetv2/es/{styles-D5xf2jKm.js → styles-D8YR7XFJ.js} +1 -1
  94. package/aftonbladetv2/es/{styles-DJ2Tnimw.js → styles-yok_JUVj.js} +1 -1
  95. package/bt/cjs/index.d.ts +6 -1
  96. package/bt/cjs/index.js +1 -1
  97. package/bt/es/_auto-entry_bt-Be_HCTHT.js +1 -0
  98. package/bt/es/{events-J-C0b7jw.js → events-DUYiTXJb.js} +1 -1
  99. package/{vg/es/index-D-oFxfDP.js → bt/es/index-0V4sWx8q.js} +1 -1
  100. package/bt/es/{index-Bt5f3573.js → index-B9VGxozR.js} +1 -1
  101. package/bt/es/{index-D4eBkGGX.js → index-BCLe3xYn.js} +1 -1
  102. package/bt/es/{index-CTLXcoQZ.js → index-BIi7wjwX.js} +1 -1
  103. package/bt/es/index-BSRINDdX.js +1 -0
  104. package/bt/es/{index-CVqHF4pK.js → index-BgDK35cX.js} +1 -1
  105. package/bt/es/{index-r0RVzaPJ.js → index-D-5S3FPA.js} +1 -1
  106. package/{sa/es/index-CNEfPa3l.js → bt/es/index-Dz7w3IjN.js} +1 -1
  107. package/{sa/es/index-CjBmGlDz.js → bt/es/index-Ik5kH8CW.js} +1 -1
  108. package/bt/es/index.d.ts +6 -1
  109. package/bt/es/index.js +1 -1
  110. package/{sa/es/styles-B0u_oi5m.js → bt/es/styles-AGTNbXdU.js} +1 -1
  111. package/bt/es/{styles-Bj5J8L9Q.js → styles-B5WRCEX_.js} +1 -1
  112. package/bt/es/{styles-MfYoo6zQ.js → styles-BI3h_UmD.js} +1 -1
  113. package/bt/es/{styles-9p7QRsXq.js → styles-BZoRoaxr.js} +1 -1
  114. package/bt/es/{styles-BktfCUFJ.js → styles-BmAHmmPv.js} +1 -1
  115. package/bt/es/{styles-CsybZUSQ.js → styles-C6SD1QeB.js} +1 -1
  116. package/bt/es/{styles-mXn3JYHF.js → styles-CATixVGd.js} +1 -1
  117. package/bt/es/{styles-BKZEf9zw.js → styles-DUmfq_Xc.js} +1 -1
  118. package/{sa/es/styles-Cek6i3Vq.js → bt/es/styles-DoMmrM0l.js} +1 -1
  119. package/bt/styles.css +1 -1
  120. package/btv2/es/_auto-entry_btv2-BpTBYU9p.js +1 -0
  121. package/btv2/es/{events-DVZbIgOY.js → events-BJE9igUd.js} +1 -1
  122. package/btv2/es/{index-n3OUN3ZX.js → index-C3Q_kjvc.js} +1 -1
  123. package/btv2/es/{index-De2BmBGl.js → index-CfAZnpzQ.js} +1 -1
  124. package/btv2/es/{index-BKaPXFIV.js → index-CjzS9lJI.js} +1 -1
  125. package/btv2/es/{index-Ba7l6lLn.js → index-DCxy072Z.js} +1 -1
  126. package/btv2/es/{index-CXdlhf-p.js → index-DDdW_qIG.js} +1 -1
  127. package/btv2/es/index-DxPioN4c.js +1 -0
  128. package/btv2/es/{index-BvxikjIk.js → index-P77BuGlL.js} +1 -1
  129. package/btv2/es/{index-D7n2KrCD.js → index-PNcbRhbg.js} +1 -1
  130. package/{vgv2/es/index-Dwrfil-G.js → btv2/es/index-bq7136mC.js} +1 -1
  131. package/btv2/es/index.d.ts +6 -1
  132. package/btv2/es/index.js +1 -1
  133. package/{vgv2/es/styles-B2u_t779.js → btv2/es/styles-B-ctcLYj.js} +1 -1
  134. package/btv2/es/{styles-CI0BMw7I.js → styles-BQTu0kvV.js} +1 -1
  135. package/{sav2/es/styles-DUkl_SLK.js → btv2/es/styles-BWrKEKGF.js} +1 -1
  136. package/{sav2/es/styles-JCjlgXLQ.js → btv2/es/styles-BdkdE88W.js} +1 -1
  137. package/btv2/es/{styles-jrBEP8Aa.js → styles-C72f8cfA.js} +1 -1
  138. package/{vgv2/es/styles-CRRbkohi.js → btv2/es/styles-CB3mMktA.js} +1 -1
  139. package/{sav2/es/styles-DkCuU2yO.js → btv2/es/styles-CVOHQ-gt.js} +1 -1
  140. package/btv2/es/{styles-BPPpG84O.js → styles-wl-9ZXhh.js} +1 -1
  141. package/btv2/styles.css +1 -1
  142. package/dr-edition/cjs/index.d.ts +7 -17
  143. package/dr-edition/es/index.d.ts +7 -17
  144. package/e24/es/_auto-entry_e24-X7HqZDPh.js +1 -0
  145. package/e24/es/{events-D53L2h9t.js → events-B6N5oltj.js} +1 -1
  146. package/e24/es/{index-Dh6SzDFM.js → index-B0jHsadP.js} +1 -1
  147. package/e24/es/index-B_vvTbAK.js +1 -0
  148. package/e24/es/{index-ogoJxR55.js → index-BtNyUub6.js} +1 -1
  149. package/e24/es/{index-Du0B1jm8.js → index-Bu6SXdGx.js} +1 -1
  150. package/e24/es/{index-BO9p_lIO.js → index-C93ioBO-.js} +1 -1
  151. package/{vgv2/es/index-Dnn1j9ge.js → e24/es/index-CIPJyTdh.js} +1 -1
  152. package/e24/es/{index-DnvJuvIN.js → index-CY3zKj6w.js} +1 -1
  153. package/e24/es/{index-C4mEECgu.js → index-DGzBqSuE.js} +1 -1
  154. package/e24/es/{index-DLWZn8B9.js → index-MdFOuPmu.js} +1 -1
  155. package/e24/es/index.d.ts +6 -1
  156. package/e24/es/index.js +1 -1
  157. package/e24/es/{styles-DzqMvh_v.js → styles-BF_1dfPi.js} +1 -1
  158. package/e24/es/{styles-vVvdnCsr.js → styles-BQkURdtq.js} +1 -1
  159. package/e24/es/{styles-_P1myloU.js → styles-BXwoObvs.js} +1 -1
  160. package/e24/es/{styles-gDdydMVO.js → styles-C8sA_OHQ.js} +1 -1
  161. package/e24/es/{styles-DOwj41Mh.js → styles-Cyk5rpFa.js} +1 -1
  162. package/e24/es/{styles-DB7PG2_W.js → styles-D3M4LLG6.js} +1 -1
  163. package/e24/es/{styles-Du70uCjz.js → styles-DTPwYzSf.js} +1 -1
  164. package/e24/es/{styles-Dw6206pK.js → styles-DlbsdGTk.js} +1 -1
  165. package/e24/es/{styles-D7YfBzwu.js → styles-NnqCeM4s.js} +1 -1
  166. package/{tv4/es/styles-CJHmRtX4.js → e24/es/styles-iu9Av57p.js} +1 -1
  167. package/e24/es/{styles-VgJDqroR.js → styles-l7OuEgQT.js} +1 -1
  168. package/e24/styles.css +1 -1
  169. package/editory/cjs/index.d.ts +6 -1
  170. package/editory/es/index.d.ts +6 -1
  171. package/fotbollskanalen/cjs/index.d.ts +9 -1
  172. package/fotbollskanalen/cjs/index.js +1 -1
  173. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-9GY_XGq2.js +1 -0
  174. package/fotbollskanalen/es/{events-CbxB9Fq8.js → events-D8F3Mh7J.js} +1 -1
  175. package/fotbollskanalen/es/{index-uAQoE8g7.js → index-B5IHajZI.js} +1 -1
  176. package/fotbollskanalen/es/{index-DuVUscpw.js → index-BF1Pv8Bp.js} +1 -1
  177. package/fotbollskanalen/es/{index-BQihCTRJ.js → index-BQWZ_JoL.js} +1 -1
  178. package/fotbollskanalen/es/{index-BvCWys4t.js → index-BaFKjiaL.js} +1 -1
  179. package/fotbollskanalen/es/index-DDsu-cEu.js +1 -0
  180. package/fotbollskanalen/es/{index-8orvmK2Y.js → index-DLe_xCxW.js} +1 -1
  181. package/fotbollskanalen/es/{index-CIId7vJB.js → index-DxwCCBKd.js} +1 -1
  182. package/fotbollskanalen/es/{index-BIzvx2fv.js → index-DyS3N12X.js} +1 -1
  183. package/fotbollskanalen/es/{index-yhJwgJ0O.js → index-PGp3H8GG.js} +1 -1
  184. package/fotbollskanalen/es/index.d.ts +9 -1
  185. package/fotbollskanalen/es/index.js +1 -1
  186. package/fotbollskanalen/es/styles-Cg57BmZN.js +1 -0
  187. package/fotbollskanalen/es/{styles-B5LwqbH6.js → styles-DHiv7bMM.js} +1 -1
  188. package/fotbollskanalen/es/styles-FuddTgjk.js +1 -0
  189. package/godt/cjs/index.d.ts +6 -1
  190. package/godt/cjs/index.js +1 -1
  191. package/kilkaya/cjs/index.d.ts +6 -1
  192. package/kilkaya/es/index.d.ts +6 -1
  193. package/klart/cjs/index.d.ts +6 -1
  194. package/klart/cjs/index.js +1 -1
  195. package/koket/cjs/index.d.ts +9 -1
  196. package/koket/cjs/index.js +1 -1
  197. package/koket/es/_auto-entry_koket-CQNOWNY-.js +1 -0
  198. package/koket/es/{events-B4KfwP-e.js → events-DwVXwrJG.js} +1 -1
  199. package/koket/es/{index-CO6hQAX2.js → index-3yDQZ8u0.js} +1 -1
  200. package/koket/es/{index-C9tmfOwt.js → index-Bg_YOYa1.js} +1 -1
  201. package/koket/es/{index-ZGoWh7vL.js → index-C2WKZajI.js} +1 -1
  202. package/koket/es/{index-BtBaTJuC.js → index-CC16FEMf.js} +1 -1
  203. package/koket/es/{index-DzdiwwsG.js → index-CMur_Mlg.js} +1 -1
  204. package/koket/es/{index-Bkzx_prk.js → index-D5FiL16V.js} +1 -1
  205. package/koket/es/{index-BQLajnit.js → index-DxgKYzEP.js} +1 -1
  206. package/koket/es/index-GI-gzGaU.js +1 -0
  207. package/koket/es/{index-2O8kCHql.js → index-c64gxHxW.js} +1 -1
  208. package/koket/es/index.d.ts +9 -1
  209. package/koket/es/index.js +1 -1
  210. package/koket/es/styles-BWCOGkTC.js +1 -0
  211. package/{svdv2/es/styles-V3kE4BOX.js → koket/es/styles-CB93Cb5G.js} +1 -1
  212. package/{svdv2/es/styles-BXlLRv8W.js → koket/es/styles-DSylGHJX.js} +1 -1
  213. package/minmote/cjs/index.d.ts +6 -1
  214. package/minmote/cjs/index.js +1 -1
  215. package/package.json +1 -1
  216. package/pent/cjs/index.d.ts +6 -1
  217. package/pent/cjs/index.js +1 -1
  218. package/sa/cjs/index.d.ts +6 -1
  219. package/sa/cjs/index.js +1 -1
  220. package/sa/es/_auto-entry_sa-frXW3_4M.js +1 -0
  221. package/sa/es/{events-DsJaUr_c.js → events-fj1ISvrl.js} +1 -1
  222. package/{vg/es/index-oYfQg2vA.js → sa/es/index-8Ji6LFF7.js} +1 -1
  223. package/sa/es/{index-BGrsydRI.js → index-9yjhxFJy.js} +1 -1
  224. package/sa/es/{index-ThXL-Alz.js → index-Cp_ULC84.js} +1 -1
  225. package/{bt/es/index-Dq32R9hk.js → sa/es/index-DXfXi99v.js} +1 -1
  226. package/sa/es/{index-DX3pfvf_.js → index-Dpd7TXAv.js} +1 -1
  227. package/sa/es/{index-DLcycopo.js → index-DtNFjYHP.js} +1 -1
  228. package/sa/es/{index-BOfoAwaR.js → index-DuzSious.js} +1 -1
  229. package/sa/es/index-Dy-42-LC.js +1 -0
  230. package/{bt/es/index-DcnixclU.js → sa/es/index-QyhEQYQE.js} +1 -1
  231. package/sa/es/index.d.ts +6 -1
  232. package/sa/es/index.js +1 -1
  233. package/sa/es/{styles-BILG06EI.js → styles-B3yoS9z4.js} +1 -1
  234. package/{vg/es/styles-CMGrEAcC.js → sa/es/styles-BB7a8DUR.js} +1 -1
  235. package/{vg/es/styles-Bql4OM5D.js → sa/es/styles-BO3Ae7CI.js} +1 -1
  236. package/sa/es/{styles-Cqkq38s7.js → styles-BR6Oubj6.js} +1 -1
  237. package/sa/es/{styles-CFIQWS21.js → styles-DAcsgn8G.js} +1 -1
  238. package/sa/es/{styles-rCq94pJ5.js → styles-DKazwLSA.js} +1 -1
  239. package/sa/es/{styles-CLXck_Z-.js → styles-KfYD0x6C.js} +1 -1
  240. package/{bt/es/styles-2ABmeDw4.js → sa/es/styles-W1iibcQ0.js} +1 -1
  241. package/sa/es/{styles-BhUiShqO.js → styles-zbRpVZqa.js} +1 -1
  242. package/sa/styles.css +1 -1
  243. package/sav2/es/_auto-entry_sav2-DdlNgfF6.js +1 -0
  244. package/sav2/es/{events-Da5PpAu8.js → events-atq228B7.js} +1 -1
  245. package/sav2/es/index-B0HjkI-a.js +1 -0
  246. package/sav2/es/{index-OLF7J03y.js → index-B9SR37x4.js} +1 -1
  247. package/sav2/es/{index-ZjXvsxJU.js → index-BGpUUydv.js} +1 -1
  248. package/sav2/es/{index-Bacp3p_B.js → index-CDvs0FZr.js} +1 -1
  249. package/sav2/es/{index-BPuoBxk7.js → index-CeqGnKGs.js} +1 -1
  250. package/sav2/es/{index-aiF7NmEX.js → index-D6Ht95iR.js} +1 -1
  251. package/{vgv2/es/index-Dg-tcfWO.js → sav2/es/index-DftBrB8n.js} +1 -1
  252. package/sav2/es/{index-Ds5QCJar.js → index-Jo-CgJKx.js} +1 -1
  253. package/sav2/es/{index-DpBNx_79.js → index-g2S_kVUn.js} +1 -1
  254. package/sav2/es/index.d.ts +6 -1
  255. package/sav2/es/index.js +1 -1
  256. package/sav2/es/{styles-CpM5uUB5.js → styles-7RIyUFqW.js} +1 -1
  257. package/{vgv2/es/styles-03wl1qJM.js → sav2/es/styles-BAYoMqvE.js} +1 -1
  258. package/{btv2/es/styles-DVacaSv1.js → sav2/es/styles-Bn2t-EWc.js} +1 -1
  259. package/{btv2/es/styles-BnulqEZK.js → sav2/es/styles-BoCLjT2f.js} +1 -1
  260. package/{vgv2/es/styles-CiM3qbCg.js → sav2/es/styles-CdBHUF9f.js} +1 -1
  261. package/sav2/es/{styles-CzeS9jnd.js → styles-Cv0vAMut.js} +1 -1
  262. package/sav2/es/{styles-BJVMrsru.js → styles-D_VULecK.js} +1 -1
  263. package/sav2/es/{styles-DAPHRicp.js → styles-Dw3OVTOh.js} +1 -1
  264. package/sav2/styles.css +1 -1
  265. package/svd/cjs/index.d.ts +6 -1
  266. package/svd/cjs/index.js +1 -1
  267. package/svd/es/_auto-entry_svd-DV-fmn7C.js +1 -0
  268. package/svd/es/{events-De5czfkO.js → events-B0j5twI9.js} +1 -1
  269. package/svd/es/{index-bymMMNit.js → index-Babya4b7.js} +1 -1
  270. package/svd/es/{index-CefI05HK.js → index-CLu9Os__.js} +1 -1
  271. package/svd/es/{index-DQFq-ko3.js → index-Cb2qRZsc.js} +1 -1
  272. package/svd/es/index-CdadlmdR.js +1 -0
  273. package/{tv4/es/index-DmtU7SgU.js → svd/es/index-Cu7xoMHz.js} +1 -1
  274. package/svd/es/{index-BDLaLgE6.js → index-JM4ukM4A.js} +1 -1
  275. package/svd/es/{index-BkVpnTNo.js → index-KuC2M8C5.js} +1 -1
  276. package/svd/es/{index-B4HSqxxS.js → index-Z6TKeuuz.js} +1 -1
  277. package/svd/es/{index-B9stmRQY.js → index-xIKQa5Id.js} +1 -1
  278. package/svd/es/index.d.ts +6 -1
  279. package/svd/es/index.js +1 -1
  280. package/svd/es/{styles-9QHscbSP.js → styles-7PtyaC5p.js} +1 -1
  281. package/svd/es/{styles-Dwt6xwQw.js → styles-B8anRHG_.js} +1 -1
  282. package/svd/es/{styles-BT0rqC-M.js → styles-Cg-zjv5S.js} +1 -1
  283. package/svd/es/{styles-DLkWo_LW.js → styles-Co_fCbGF.js} +1 -1
  284. package/svd/es/{styles-CEy7DzBe.js → styles-DS7gaCLu.js} +1 -1
  285. package/svd/es/{styles-BXCS0jxh.js → styles-DilqCytA.js} +1 -1
  286. package/svd/styles.css +1 -1
  287. package/svdv2/es/_auto-entry_svdv2-Dni_KxMW.js +1 -0
  288. package/svdv2/es/{events-B_hMHDYT.js → events-djolRg6R.js} +1 -1
  289. package/svdv2/es/index-B2iD-KkP.js +1 -0
  290. package/svdv2/es/{index-DU_pvvbT.js → index-BCpXfQNI.js} +1 -1
  291. package/svdv2/es/{index-DYO8_BCM.js → index-BFTHgvaJ.js} +1 -1
  292. package/svdv2/es/{index-BlVk9WpJ.js → index-BYnlKxRP.js} +1 -1
  293. package/svdv2/es/{index-CgcjnhVt.js → index-B_venVPl.js} +1 -1
  294. package/svdv2/es/{index-LrFekxwq.js → index-Bbc9DGlm.js} +1 -1
  295. package/svdv2/es/{index-C3xSASQs.js → index-BocjeBcO.js} +1 -1
  296. package/svdv2/es/{index-CJeWW6hl.js → index-CDRf3TO7.js} +1 -1
  297. package/svdv2/es/{index-BTlf3bKF.js → index-CP7_iXZe.js} +1 -1
  298. package/svdv2/es/index.d.ts +6 -1
  299. package/svdv2/es/index.js +1 -1
  300. package/svdv2/es/styles-BjFIZtal.js +1 -0
  301. package/svdv2/es/{styles-BIKYKOtC.js → styles-BnK8rICb.js} +1 -1
  302. package/{koket/es/styles-BYpVKP0u.js → svdv2/es/styles-ByUj23bu.js} +1 -1
  303. package/svdv2/es/{styles-QUGdxOcE.js → styles-DaFZyQRP.js} +1 -1
  304. package/svdv2/es/{styles-D82ExFNJ.js → styles-DrHuT3qi.js} +1 -1
  305. package/svdv2/es/{styles-BEW0oLwy.js → styles-K9iCkMHv.js} +1 -1
  306. package/svdv2/styles.css +1 -1
  307. package/tek/cjs/index.d.ts +6 -1
  308. package/tek/cjs/index.js +1 -1
  309. package/tracker/cjs/index.d.ts +6 -1
  310. package/tracker/es/index.d.ts +6 -1
  311. package/tv4/cjs/index.d.ts +9 -1
  312. package/tv4/cjs/index.js +1 -1
  313. package/tv4/es/_auto-entry_tv4-eEu-CqBm.js +1 -0
  314. package/tv4/es/{events-DDJ7iQPE.js → events-ChOlpUq1.js} +1 -1
  315. package/tv4/es/{index-De_-1jUr.js → index-BDn-rJvG.js} +1 -1
  316. package/tv4/es/{index-DOtLhdKs.js → index-C7vJrspN.js} +1 -1
  317. package/tv4/es/{index-C0YDegOk.js → index-CW6nNigC.js} +1 -1
  318. package/{svd/es/index-DvXMiYLM.js → tv4/es/index-CefydCx9.js} +1 -1
  319. package/tv4/es/{index-Dcc_sdu8.js → index-Cy0DeegO.js} +1 -1
  320. package/tv4/es/{index-986fS_A3.js → index-DXbmHFYf.js} +1 -1
  321. package/tv4/es/index-Dw66bOo7.js +1 -0
  322. package/tv4/es/{index-CQEATOwU.js → index-lnGUepB6.js} +1 -1
  323. package/tv4/es/{index-DvFHOAUU.js → index-r2zJ9_lD.js} +1 -1
  324. package/tv4/es/index.d.ts +9 -1
  325. package/tv4/es/index.js +1 -1
  326. package/tv4/es/styles-BBICjyNP.js +1 -0
  327. package/{e24/es/styles-D62v6Nkj.js → tv4/es/styles-BWBv7Rmg.js} +1 -1
  328. package/tv4/es/styles-oAtNd05J.js +1 -0
  329. package/tvnu/cjs/index.d.ts +6 -1
  330. package/tvnu/cjs/index.js +1 -1
  331. package/types/index.d.ts +6 -1
  332. package/vg/cjs/index.d.ts +6 -1
  333. package/vg/cjs/index.js +1 -1
  334. package/vg/es/_auto-entry_vg-Bt7ggMas.js +1 -0
  335. package/vg/es/{events-BN0eYdzw.js → events-CNVDkt3n.js} +1 -1
  336. package/vg/es/{index-C8ihmvY0.js → index-4iBB06Zr.js} +1 -1
  337. package/vg/es/{index-CQh3s0Qr.js → index-BEy56qHk.js} +1 -1
  338. package/vg/es/{index-A-CnEkSS.js → index-BdTVdCKv.js} +1 -1
  339. package/{e24/es/index-BdA70XuH.js → vg/es/index-C71oG2h6.js} +1 -1
  340. package/{sa/es/index-CaxUOzpZ.js → vg/es/index-CHwNUMhp.js} +1 -1
  341. package/vg/es/{index-BNAXxp8Z.js → index-CqKJ6G5Z.js} +1 -1
  342. package/vg/es/index-CrRiczK0.js +1 -0
  343. package/{bt/es/index-CJMaAE_u.js → vg/es/index-DHhAjX8l.js} +1 -1
  344. package/vg/es/{index-BuPNRgWy.js → index-DY8EMpoi.js} +1 -1
  345. package/vg/es/index.d.ts +6 -1
  346. package/vg/es/index.js +1 -1
  347. package/vg/es/{styles-P6lBqgNj.js → styles-13F8avh2.js} +1 -1
  348. package/vg/es/{styles-BSQYGBat.js → styles-B6z0BYOY.js} +1 -1
  349. package/vg/es/{styles-CKvDmEUE.js → styles-BIUrA0O_.js} +1 -1
  350. package/vg/es/{styles-foYnFn_4.js → styles-BMDuhePb.js} +1 -1
  351. package/vg/es/{styles-BbBcEg17.js → styles-C69RcQpr.js} +1 -1
  352. package/vg/es/{styles-Bjq39u6w.js → styles-CUDtc7HK.js} +1 -1
  353. package/vg/es/{styles-D-vngAlS.js → styles-CvVPRwqA.js} +1 -1
  354. package/vg/es/{styles-K3ck22HL.js → styles-DBkzpOl-.js} +1 -1
  355. package/vg/es/{styles-CM2RfnbH.js → styles-DbOtfsOp.js} +1 -1
  356. package/vg/es/{styles--jyeYGyw.js → styles-DjEoB4Aj.js} +1 -1
  357. package/vg/es/{styles-BlsuR7ws.js → styles-Do-1Hxem.js} +1 -1
  358. package/vg/es/{styles-CMkDr2sR.js → styles-DqUO9Aq4.js} +1 -1
  359. package/{sa/es/styles-O9v3znEo.js → vg/es/styles-Dx5Ykv3W.js} +1 -1
  360. package/{bt/es/styles-CPf14Y-i.js → vg/es/styles-EVX6RjPH.js} +1 -1
  361. package/vg/es/{styles-DvqY3oDM.js → styles-EtOSLHoK.js} +1 -1
  362. package/vgv2/es/_auto-entry_vgv2-CtjeCwgV.js +1 -0
  363. package/vgv2/es/{events-75QwrDad.js → events-B-uuNUZp.js} +1 -1
  364. package/vgv2/es/index-2_x-IBzv.js +1 -0
  365. package/{sav2/es/index-JqyQGyIc.js → vgv2/es/index-3KSj8yYl.js} +1 -1
  366. package/vgv2/es/{index-DiDEEW0o.js → index-BYBnmaW2.js} +1 -1
  367. package/vgv2/es/index-BZAPf_Or.js +1 -0
  368. package/{btv2/es/index-CES9qdt5.js → vgv2/es/index-C-wP9wHo.js} +1 -1
  369. package/vgv2/es/{index-B8c_8SNI.js → index-DLOrLmKV.js} +1 -1
  370. package/vgv2/es/{index-Bo6wcvlg.js → index-DZzJ1X8z.js} +1 -1
  371. package/vgv2/es/{index-BYA7GHOl.js → index-V3JWVR_Z.js} +1 -1
  372. package/vgv2/es/{index-C2uxhu_l.js → index-eErU9XRR.js} +1 -1
  373. package/vgv2/es/index.d.ts +6 -1
  374. package/vgv2/es/index.js +1 -1
  375. package/{sav2/es/styles-CbaXyDEk.js → vgv2/es/styles-0F60kGp-.js} +1 -1
  376. package/{btv2/es/styles-VjR9QnJF.js → vgv2/es/styles-BJVFW-nR.js} +1 -1
  377. package/vgv2/es/{styles-Di-DavUJ.js → styles-BWuIAtmn.js} +1 -1
  378. package/vgv2/es/{styles-D5_fNAV9.js → styles-BkVebTz0.js} +1 -1
  379. package/vgv2/es/{styles-PUFpjHKc.js → styles-CS02hVaj.js} +1 -1
  380. package/vgv2/es/{styles-5tVGE8gD.js → styles-DTds3H7S.js} +1 -1
  381. package/{btv2/es/styles-eUoPzFXB.js → vgv2/es/styles-DcaWnQrS.js} +1 -1
  382. package/vgv2/es/{styles-C5WRQOGS.js → styles-DeYqBGgm.js} +1 -1
  383. package/vgv2/es/{styles-CkQbUa-v.js → styles-DgXuXPw1.js} +1 -1
  384. package/vgv2/es/{styles-C0_zZFut.js → styles-DxubeQpj.js} +1 -1
  385. package/vgv2/es/{styles-Baa3m-Q2.js → styles-P83L7XR5.js} +1 -1
  386. package/vgv2/es/{styles-D3ZWglPE.js → styles-TFn9O99L.js} +1 -1
  387. package/vgv2/es/{styles-BuSQjSV9.js → styles-WsqFOd30.js} +1 -1
  388. package/{btv2/es/styles-CtjQpv8b.js → vgv2/es/styles-jQhHv9vF.js} +1 -1
  389. package/vgv2/es/{styles-CZ0Svd5Z.js → styles-yNvB7tZQ.js} +1 -1
  390. package/aftenposten/es/_auto-entry_aftenposten-CKNlntK8.js +0 -1
  391. package/aftenposten/es/index-C9dbr7Rm.js +0 -1
  392. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-X7yLPRR2.js +0 -1
  393. package/aftenpostenv2/es/index-D4zLS6gO.js +0 -1
  394. package/aftonbladet/es/_auto-entry_aftonbladet-DC5ngjOn.js +0 -1
  395. package/aftonbladet/es/index-CRdIacHS.js +0 -1
  396. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CG-Pij6V.js +0 -1
  397. package/aftonbladetv2/es/index-Bxr268LZ.js +0 -1
  398. package/bt/es/_auto-entry_bt-8_MK3mkh.js +0 -1
  399. package/bt/es/index-CwpbMwAQ.js +0 -1
  400. package/btv2/es/_auto-entry_btv2-3EYNeZtm.js +0 -1
  401. package/btv2/es/index-BVWAz6d5.js +0 -1
  402. package/e24/es/_auto-entry_e24-D7g2-rj1.js +0 -1
  403. package/e24/es/index-BNdc8ha4.js +0 -1
  404. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-iu7hPQ1L.js +0 -1
  405. package/fotbollskanalen/es/index-D2Y3Et_U.js +0 -1
  406. package/koket/es/_auto-entry_koket-Bf0tvQcX.js +0 -1
  407. package/koket/es/index-C4__V2v3.js +0 -1
  408. package/sa/es/_auto-entry_sa-mCwWu9no.js +0 -1
  409. package/sa/es/index-D5m4yanP.js +0 -1
  410. package/sav2/es/_auto-entry_sav2-CrbpNoTS.js +0 -1
  411. package/sav2/es/index-X8fn7dlD.js +0 -1
  412. package/svd/es/_auto-entry_svd-BLhzYyMg.js +0 -1
  413. package/svd/es/index-ehI2HUAo.js +0 -1
  414. package/svdv2/es/_auto-entry_svdv2-CtENKfOV.js +0 -1
  415. package/svdv2/es/index-CZ8KgJPi.js +0 -1
  416. package/tv4/es/_auto-entry_tv4-15JRcPmR.js +0 -1
  417. package/tv4/es/index-ojBFQ8Xy.js +0 -1
  418. package/vg/es/_auto-entry_vg-DQ2jpXz9.js +0 -1
  419. package/vg/es/index-CQ71rhLa.js +0 -1
  420. package/vg/es/index-lGzeczVQ.js +0 -1
  421. package/vgv2/es/_auto-entry_vgv2-BHnz4DQX.js +0 -1
  422. package/vgv2/es/index-gLRxWxTg.js +0 -1
package/godt/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e,t,n=require("react/jsx-runtime");function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i=function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function a(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 d(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=i(e[t],n)}),a(t).forEach(function(r){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(d(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))}),o}function l(e,t,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||n,o.cloneUnlessOtherwiseSpecified=i;var a=Array.isArray(t);return a===Array.isArray(e)?a?o.arrayMerge(e,t,o):s(e,t,o):i(t,o)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e=l}(),r=o(i);const a=["placements","takeover","refreshConfig","editory"],d={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},s=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},l=(e,t)=>{console.warn("[Advertory WARN]: ",e)},c=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||l("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||l("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||l("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||l("pageContext.deviceType is required."),n||l("pageOptions is required."),o||l("placements is required."),(null==i?void 0:i.defaultThreshold)||l("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,i;const r=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(o=e.widescreenSwitching)||void 0===o?void 0:o.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&l(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},u=6;class p{set(e){c(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 a){const o=e[n];void 0!==o&&(t[n]=o)}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=r(p.DEFAULT_SITE_HANDLERS,e)}}p.DEFAULT_SITE_HANDLERS={siteEvents:d,initNativeAd:()=>{}};const v=new p,g=v.modifyConfigProperties.bind(v),h={NO:"no",SE:"se"},m=e=>e===h.NO?"no-sno":"se-generic",y=/_\d+$/,f=e=>e.replace(y,"");let w="";const b=new Map,k=e=>{const{pageSetup:{tag:t}={}}=v.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(w!==window.location.pathname&&(b.clear(),w=window.location.pathname),e.map(e=>{var t;const n=f(e.invCode),o=null!==(t=b.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=v.get();return`${e}-${t}`})()}-count`]=o,b.set(n,o+1),e})):e},x=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},I="0123456789abcdefghijklmnopqrstuvwxyz",C=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=I[Math.floor(36*Math.random())]}return t},E=e=>{window.apntag.anq.push(e)},T=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),A=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})}),S="advertory-wallpaper-background",P="advertory-with-horseshoe",O=()=>{const e=document.querySelector(`.${S}`);e&&e.remove()},j=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${S}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},$=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,L=e=>$.test(e),_=e=>e.startsWith("wallpaper:color:"),N=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundImage=`url(${e})`)},q=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundColor=e)};var M=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(P),n.classList.add(P))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{O();const e=document.createElement("div");e.classList.add(S),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--advertory-header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(j(n),window.addEventListener("scroll",()=>j(n)))})(n),e()},isShortWallpaperColorMessage:_,isShortWallpaperUrlMessage:L,removeWallpaperBackground:O,setWallpaperBackgroundColor:q,setWallpaperBackgroundImage:N});const D=e=>new URLSearchParams(window.location.search).get(e),B="takeover",F="native_override_desc2",R=e=>window.location.href.includes(e),U=()=>null!==D("disable_prebid"),V=e=>{if("0"===D("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")&&O())},z=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"))};class H{initialize(){this.DATA=Object.assign({},H.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)}}H.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const W=new H,K=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,o=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${o}px`)},G=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:o}=(e=>{const t=W.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=o},J=()=>{O();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{V(e.id),G(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),o=null==t?void 0:t.getAttribute("data-probable-width");n&&o&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",o+"px"))})(e.id),e.innerHTML="",e.id=x(e.id)}),E(()=>window.apntag.clearRequest())},X="mobile",Q="tablet",Y="desktop",Z="web_desktop",ee="web_phone",te="wde",ne="wph",oe="noGroupedPlacements",ie=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},re=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},ae=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:o,pageContext:{deviceType:i}}=v.get(),r=((e,t)=>{var n;const o=null!==(n=e[t])&&void 0!==n?n:[];return t===Q&&0===o.length?e[Y]:o})(n,i),a=r.filter(re),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=ie(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),r=(null==o?void 0:o.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,s=d.querySelectorAll(r),l=Array.from(s).filter(({id:e})=>e.match(t)).map((e,t)=>{var o;const i=de(e,t,n),r=i.finnBlink&&!i.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(o=i.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink),d=`${e.id}-${C(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),r&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&W.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},i),{targetId:d})});return k(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))})(s)},de=(e,t,n)=>{const o=n[t],i=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:r||i},se=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=v.get(),o=(null==t?void 0:t[n])||{},i=Object.values(o).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=x(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[o,i]of Object.entries(t))n[o]=e.filter(e=>i.includes(x(e.targetId)));return n})(e,o),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(x(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),r),{[oe]:s})},le="ABSOLUTE_FULLSCREEN",ce="ANY_FULLSCREEN",ue="NINESIXTEEN",pe="FULLWIDTH",ve="FULLSQUARE",ge="TAKEOVER",he="VELVET_TAKEOVER",me="WALLPAPER",ye="COLLAPSE",fe={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}]},we={wallpaper:1600,"l-format":1600},be=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&_e(e,ce)},ke=e=>{const{native:t}=e;return!!t},xe=e=>_e(e,pe),Ie=e=>{const{targetId:t}=e;return t.includes("takeover")||_e(e,ge)},Ce=e=>_e(e,ge),Ee=e=>_e(e,me),Te=e=>_e(e,ye),Ae=e=>e.targetId.includes("sponsorstripe"),Se=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Pe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Oe=e=>e.targetId.startsWith("midboard"),je=e=>e.targetId.includes("widescreen"),$e=e=>e.width>=1260&&e.width<=1280,Le=e=>e.width>=1600&&e.width<=1620,_e=(e,t)=>{const n=fe[t];if(!n)return!1;return!!n.find(t=>{var n,o;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(o=e.banner)||void 0===o?void 0:o.height)||e.height,a=t.width===i,d=!t.height||t.height===r;return a&&d})};function Ne(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function qe(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((o=o.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const Me=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 s("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const i=e=>{o||(s("Resolving advertising permission value obtained"),o=!0,t(e))},r=setTimeout(()=>{s("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{s("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);s("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),De="cmp:loaded";let Be="undefined"!=typeof window?window._tcf_:void 0,Fe=!1;const Re=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,r=D("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(s("TCF bypass param detected, returning consent: true"),!0):(s("TCF is not enabled, returning consent: true"),!0))(o,r))return!0;if(Fe)return null;if(!Be)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=Be.getConsentedToAllSync();return s(`TCF consented to all is: ${t}`),Be.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(s("Getting TCF consent manager..."),window._tcf_)return s("TCF consent manager is already available"),Be=window._tcf_,void e(Be);s("TCF consent manager is not available");const n=()=>{s("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(Be=window._tcf_,e(Be)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(De,n),Fe=!0,t(new Error("Timeout waiting for CMP to load"))},i);s("Listening for CMP loaded event..."),document.addEventListener(De,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>qe(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`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===h.SE,o=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===h.NO;if(t||o)return s("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Me(e);if(!(null==e?void 0:e.enabled))return!0;const r=a();return null!==r?r:yield new Promise((e,t)=>{try{if(!Be)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{s("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);Be.onTcfReady(()=>{s("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),Be.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},Ue=(e,t,n,...o)=>qe(void 0,[e,t,n,...o],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return s(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=Re(e,0,n);return(yield i())?(s(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(s(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),Ve=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},ze=e=>qe(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e,{getConsentAsync:i}=Re(t,0,o);if(!(yield i()))return;const r=Ve("_pulse2data");return r?r.split(",")[9]:void 0}),He="splash",We="welcomePage",Ke="topscroller",Ge="velvet",Je=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const o=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=o.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,i).toString()},Xe="takeover-displayed",Qe="takeover-visit-count",Ye=14400,Ze=()=>{const e=Ve(Qe);return e?parseInt(e):0},et=()=>{const e=Ze(),{takeover:{options:{cookieCapTime:t=Ye}={}}={}}=v.get(),n=document.location.hostname;window.document.cookie=`${Qe}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},tt=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=v.get();return"0"!==D(B)&&("1"===D(B)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=v.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Xe;return"true"===Ve(n)})())&&(!t||nt()))},nt=()=>{const e=Ze();return 0===e?(et(),!1):1===e},ot=(e,t)=>[[1,1],[1920,1080]].some(([n,o])=>n===e&&o===t),it=()=>{const{takeover:e}=v.get();return Boolean(null==e?void 0:e.topscroller)},rt=e=>{const{width:t,height:n}=e;return ot(t,n)?He:_e(e,he)?Ge:it()?Ke:We},at=()=>qe(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Xe,cookieCapTime:n=Ye}={}}={},pageContext:{isMobileApp:o,countryCode:i},tcf:r}=v.get(),a=yield Ue(r,o,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),dt=e=>{var t,n;const o=!!(null===(n=null===(t=v.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ie(e)&&o},st=(e,t)=>{var n;if(t===Ke){const{topscroller:t}=e;return null!=t?t:{}}if(t===He){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},lt=(e,t)=>{t!==He?(e=>{var t,n;const o=null===(t=v.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=v.get().takeover)||void 0===n?void 0:n.topscroller;if(!o||i)return;const r=document.querySelector(o),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&s&&d))return;const l=null==r?void 0:r.offsetHeight,c=Ce(e)?"60svh":`calc(100svh - ${l}px)`,u=Ce(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=v.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),o=document.querySelector(`#${e.targetId}`);if(!n||!o)return;const i=`calc(100svh - ${n.offsetHeight}px)`;o.style.setProperty("height",i,"important")})(e)},ct=Je([],()=>{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 ut=Object.freeze({__proto__:null,addTakeoverCookie:at,adjustTakeoverHeight:lt,canDisplayTakeover:tt,getProperWelcomePageConfig:st,getTakeoverVariant:rt,handleTakeoverCookieOnAdNotShown:e=>qe(void 0,void 0,void 0,function*(){dt(e)&&(yield at())}),incrementArticleVisitCount:et,isSplashVariant:ot,isTopscroller:it,scaleAd:ct,shouldAddTakeoverCookieForNotShownAd:dt});const pt={nativeAd:e=>ke(e)&&!Ae(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:xe,fullscreenScroll:be,topscroller:e=>Ie(e)&&it(),splash:e=>Ie(e)&&ot(e.width,e.height),welcomePage:Ie,wallpaper:Ee,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:$e,hFormat:Le,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Le(e)&&!$e(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ie(e),widescreen:je,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Ae,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Pe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Oe(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:Pe,midboard:Oe},vt=({adObj:e,preferredTestIdData:t})=>{var n,o;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const r=null===(o=document.querySelector(`#${i}`))||void 0===o?void 0:o.parentElement;if(!r)return;if(((e,t)=>{var n,o,i,r;const a=null===(r=null===(i=null===(o=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===o?void 0:o.tags)||void 0===i?void 0:i[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(i,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,o;for(const[i,r]of Object.entries(pt))if(r(e)){if("nativeAd"===i){const r="default";t.dataset.testid=`${i}-${null!==(o=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==o?o:r}`;break}t.dataset.testid=i;break}})(e,r)},gt=e=>{var t;return(null===(t=Object.entries(pt).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},ht=()=>{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"},mt=e=>e===X,yt=(e,t)=>{const n=e.width,o=(null!=t?t:window.screen.width)/n;return o<1?o:1},ft=(e,t=window.screen.width,n,o)=>{const i=yt(e,t);if(n&&n(e,i),o)return void o(e);const r=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);r&&(r.style.transform=`scale(${i})`,r.style.transformOrigin="left top")},wt=(e,t)=>{if(e&&t)return t/e},bt=new Map;bt.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),bt.set("panorama",{scale:.79,transformOrigin:"center center"}),bt.set("outstream",{scale:.79,transformOrigin:"center center"}),bt.set("integration",{scale:.79,transformOrigin:"center center"}),bt.set("toppanorama",{scale:.8,transformOrigin:"left center"});var kt=Object.freeze({__proto__:null,calculateScaleFactor:yt,getAspectRatio:wt,scaleAd:ft,scaleAdIpadAirPortrait:e=>{if(!((null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.clientWidth)>767&&(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.clientWidth)<=853))return;var t,n;const o=gt(e),i=bt.get(o),r=document.querySelector(`#${e.targetId}`);if(!r||!i)return;if(r.style.transformOrigin=i.transformOrigin,r.style.transform=`scale(${i.scale})`,!(null==i?void 0:i.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${e.targetId}"]`),d=null==r?void 0:r.offsetWidth;a&&"number"==typeof d&&!isNaN(d)&&a.style.setProperty("right",String(-1*d*.2)+"px")},scaleAds:e=>{var t,n,o,i,r,a;const{adScaleConfig:d,pageContext:{deviceType:s}}=v.get();if(!(null==d?void 0:d.enabled))return;if(_e(e,ce))return;const l=null!==(t=d.adsToBeScaled[s])&&void 0!==t?t:[],c=ie(e.targetId.split("-")[0]);if(!l.includes(c))return;const u=null!==(o=null===(n=d.offset)||void 0===n?void 0:n[c])&&void 0!==o?o:0,p=document.getElementById(e.targetId),g=null!==(i=null==p?void 0:p.offsetWidth)&&void 0!==i?i:window.screen.width,h=null!==(a=null===(r=null==p?void 0:p.parentElement)||void 0===r?void 0:r.offsetWidth)&&void 0!==a?a:window.screen.width;ft(e,(g<h?g:h)-u)}});const xt={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{const t=window.screen.width||window.innerWidth;980===e.width&&t<980&&"native"!==e.adType&&((e,t)=>{ft(e,t);const n=document.querySelector(`#${e.targetId}`);n&&(n.style.minWidth="100vw")})(e,t)},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},It={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"},Ct={publisherClassName:It.GODT,fullWidthFormatClassName:"netboard"},Et=864e5,Tt=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return s("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=Et)=>{const i={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(i))},getByTimestamp:(t,n=Et)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return s("Error with parsing localStorage data"),null}}}})(),At="glimrTags",St=["glwe_","glwet_"],Pt={geofenceTags:[],geoTags:[],weatherTags:[]},Ot=(...e)=>qe(void 0,[...e],void 0,function*(e=v.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield Ue(t,n,o,"glimr")}const{getConsentAsync:i}=Re(t,0,o);return yield i()}),jt=()=>qe(void 0,void 0,void 0,function*(){const{glimr:e}=v.get();if(!(yield Ot())||!(null==e?void 0:e.enabled))return void s("No consent for glimr data fetching.");const t=yield(n=500,qe(void 0,void 0,void 0,function*(){return yield Promise.race([qe(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)=>{Tt.setWithTimestamp(At,{tags:e,tagMappings:t}),n(!0)})})}catch(e){s(`Error during getting glimr data: ${e}`)}else s("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),$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"},Lt=e=>St.some(t=>e.startsWith(t)),_t=e=>e.startsWith("glgc_"),Nt=e=>e.startsWith("glci_"),qt=e=>!Lt(e)&&!_t(e),Mt=(e,t)=>qe(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:o,pageContext:{countryCode:i}={}}=e,r=yield Ot(e);if(!(null==o?void 0:o.enabled)||!r)return s("No consent for getting glimr tags."),{};const a=m(i),d=Dt(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),Dt=(e,t)=>{const n=Bt();if(!n)return Pt;const o=((e=[])=>e.filter(Lt))(n),i=((e=[])=>e.filter(_t))(n),r=((e=[],t,n)=>{var o;const i=e.filter(qt);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=$t[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:r,geofenceTags:i,weatherTags:o}},Bt=()=>{const e=Tt.getByTimestamp(At);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},Ft=()=>{var e;return((e=[])=>e.filter(Nt))(null!==(e=Bt())&&void 0!==e?e:[])},Rt=()=>(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),Ut=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Vt=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:o=!1}={},pageContext:{countryCode:i}}=v.get(),r=[`${m(i)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...o?r:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},zt="opaque",Ht=e=>qe(void 0,void 0,void 0,function*(){if(e.type!==zt){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),Wt={get:(e,...t)=>qe(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,o=Ne(t,["timeout"]);if(n)return((e,t,n)=>qe(void 0,void 0,void 0,function*(){const o=new AbortController,i=setTimeout(()=>o.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:o.signal}));return Ht(n)}finally{clearTimeout(i)}}))(e,o,n);const i=yield fetch(e,o);return Ht(i)}),post:(e,t,n)=>qe(void 0,void 0,void 0,function*(){const o=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:o});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},Kt="advertory:ppids-cache",Gt={[h.SE]:`SCH${h.SE.toUpperCase()}-EnvHash`,[h.NO]:`SCH${h.NO.toUpperCase()}-EnvHash`},Jt={[h.SE]:`SCH${h.SE.toUpperCase()}-UserHash`,[h.NO]:`SCH${h.NO.toUpperCase()}-UserHash`},Xt={[h.SE]:`sch${h.SE}-envhash-v3`,[h.NO]:`sch${h.NO}-envhash-v3`},Qt={[h.SE]:`sch${h.SE}-userhash-v3`,[h.NO]:`sch${h.NO}-userhash-v3`},Yt={[h.SE]:`'sch${h.SE}-iosid-v3'`,[h.NO]:`'sch${h.NO}-iosid-v3'`},Zt={[h.SE]:`sch${h.SE}-androidid-v3`,[h.NO]:`sch${h.NO}-androidid-v3`},en={[h.SE]:"sdrn:schibsted.com:user",[h.NO]:"sdrn:spid.no:user"};class tn{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:o})=>{t.append(e,`${o}-${n}`)}),t}}const nn=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return qe(this,arguments,void 0,function*(e,t=1e4){var n,o;const i=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=i.xandr)||void 0===n?void 0:n.ppId1,null===(o=i.xandr)||void 0===o?void 0:o.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||s("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:""}},on=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return qe(this,void 0,void 0,function*(){var n,o,i,r,a,d,s,l,c,u,p;const v=Tt.get(Kt),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(o=g.idfv)||void 0===o?void 0:o.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(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||s("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,o){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=o?o:null}shouldHash(e,t){var n,o;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(o=t[i])||void 0===o?void 0:o.plain))return!0}return!1}cachePPIDs(e,t,n,o){const i=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),o?{anId:{plain:o}}:{});Tt.set(Kt,i)}hashPPIDs(e,t){return qe(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield Wt.post(t,n,e)}catch(e){return s("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return qe(this,arguments,void 0,function*({clientId:e,instance:t},n){const o=yield((e,t)=>qe(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${en[t]}:${n}`:null}))(t,n),i=yield(r=t,qe(void 0,void 0,void 0,function*(){const e=yield r.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var r;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:o},environmentId:{plain:i},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:o,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:o.plain,environmentId:i.plain}}},rn=e=>qe(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:o,isMobileApp:i}}=e;if(!(yield Ue(n,i,o,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([nn.processPPIDs(t,null==n?void 0:n.timeout),on.processPPIDs(t,o)])).forEach((e,t)=>{if("rejected"===e.status){s(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),an=e=>{const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=on.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]).add(r,Yt[e]).add(a,Zt[e]).buildEids()}]}},dn=()=>{const{ppid1:e,ppid2:t}=nn.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},sn=e=>{const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=on.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]).add(r,Yt[e]).add(a,Zt[e]).buildRyEids()}}]}}},ln=e=>{const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i}=on.getPPIDs();return(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]).buildRyEids()},cn=e=>qe(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i}=on.getPPIDs(),r=(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),un=(e,...t)=>qe(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,o)=>{const i=document.createElement("script");i.async=!0,i.src=e;const r=()=>{d(),n()},a=()=>{d(),o(new Error(`Failed to load ${e}`))},d=()=>{i.removeEventListener("load",r),i.removeEventListener("error",a),clearTimeout(s)};i.addEventListener("load",r),i.addEventListener("error",a);const s=setTimeout(()=>{d(),o(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),pn="advertory-fullscreen-scroll",vn="advertory-fullscreen-scroll-wrapper",gn="fullscreen-scroll-in-screen",hn="in-screen",mn=e=>e.includes("snoap.no"),yn=e=>{var t,n,o,i,r;return!!(null===(r=null===(i=null===(o=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===o?void 0:o.adResponse)||void 0===i?void 0:i.ads[1])||void 0===r?void 0:r.rtb)},fn=Je([],()=>{const e=({width:e,height:t})=>{var n;const o=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!o)return;const{clientWidth:i,clientHeight:r}=o,a=e/i,d=t/r;o.style.transform=`scale(${a},${d})`,o.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),wn=e=>{const t=Je([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const o=n.contentDocument.createElement("style");o.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(o),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},bn=[],kn={},xn=(e,t)=>{var n;const o=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>In(e,o),{}),r=En(e);i.observe(e),o&&(kn[r]=Sn(e,null==t?void 0:t.options))},In=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const o=En(e);n?(Cn(o,n),Tn(e,o,t)):(Cn(o,n),An(e,o,t))})},Cn=(e,t)=>{var n,o;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const r=t?"showFullscreen":"hideFullscreen";null===(o=i.contentWindow)||void 0===o||o.postMessage(`advertory:${r}-${e}`,"*")},En=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},Tn=(e,t,n)=>{e.classList.add(hn),document.body.classList.add(gn),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),bn.includes(t)||bn.push(t),n&&window.addEventListener("scroll",kn[t],{passive:!0})},An=(e,t,n)=>{bn.includes(t)&&(n&&window.removeEventListener("scroll",kn[t]),document.body.classList.remove(gn),e.classList.remove(hn),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},Sn=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:o=[".skyscraper_r"],headerZIndex:i=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),o.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&Pn(e,r,i,0),a.length&&Pn(e,a,i,40)}},Pn=(e,t,n,o)=>{const i=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>r?(a-r)/t-o:(r+t-(a+i))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};function On(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}On('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 jn="left",$n={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 Ln=null;const _n=(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=`(${fn})()`,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(mn(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=wn(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>mn(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)),mn(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)),yn(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},Nn=()=>{Ln=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,o=e?e.offsetLeft:0,i=document.documentElement;i.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),i.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),i.style.setProperty("--advertory-fullscreen-scroll-left",`${o}px`)},qn=()=>{Ln||(Ln=window.requestAnimationFrame(Nn))},Mn=(e,t)=>{var n,o,i,r;const{pageContext:{countryCode:a,deviceType:d}}=v.get(),{targetId:s}=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:o=1302,backgroundColor:i="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=o/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(o=null==l?void 0:l.overlayStyles)&&void 0!==o?o:{},d);const c=document.getElementById(s),u=null==c?void 0:c.parentElement;if(!c||!u)return;xn(u,t),c.className=pn,xn(u,t),c.className="advertory-fullscreen-scroll";const p=_e(e,le)?"absolute":"fixed";c.style.position=p,u.className=vn,u.dataset.showTagSubscribeId=s,c.setAttribute("data-ad-label",$n[a].adText),(null==l?void 0:l.cogwheelPosition)===jn&&(c.dataset.moveCogwheelToTheLeft="true"),qn(),window.addEventListener("resize",qn),null===(i=window.visualViewport)||void 0===i||i.addEventListener("resize",qn),null===(r=window.visualViewport)||void 0===r||r.addEventListener("scroll",qn)},Dn=e=>{if(!(null==e?void 0:e.classList.contains(pn)))return;e.classList.remove(pn),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(vn))&&(t.classList.remove(vn),t.classList.remove(hn))};var Bn=Object.freeze({__proto__:null,createFullscreenScrollAd:Mn,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=yn(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=yn(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,_n(t,e))},undoFullscreenScrollContainer:Dn});const Fn=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},Rn=(e,t,n)=>{var o,i,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(i=null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),Fn(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},Un="ad-loaded",Vn=(e,t,n)=>qe(void 0,void 0,void 0,function*(){yield T,yield A;new IntersectionObserver((t,o)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),o.unobserve(e),o.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),zn=()=>qe(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:o,deviceType:i},fullscreenScroll:r,appearanceConfig:a,placements:d}=v.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:l}=v.getHandlers(),{getConsentAsync:c}=Re(t,0,n),u=yield c(),p=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:o=>{const i=Rt(),{prebid:{relevantCallbackTimeout:r}={}}=v.get(),a="relevantCb"===o&&r?r:n[o].timeout,d=setTimeout(()=>{!n[o].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${o}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),g=Rt(),h=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Rt();return{user:e,keywords:t}})();p.failsafeOnTimeout("relevantCb");const{user:{externalUid:m=""}={},keywords:y}=h;(()=>{const e=Ut();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{s("prebid relevantYieldQueue callback fired - RY took over");if(p.getCancel()||!g.loadTags)return s("core loadTags() call was cancelled",{cancel:p.getCancel(),apnTagLoadTags:!g.loadTags,condition:"or"}),void p.cleanup();const t=Ut();p.events.relevantCb.done=!0,p.failsafeOnTimeout("auctionCb");const c=u?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};s("prebid consentManagement",c),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},sn(n)),Vt(y,m))),s("core add prebid config",Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},sn(n)),Vt(y,m))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{s("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:p.getCancel()}),p.getCancel()||(p.events.auctionCb.done=!0,g.loadTags(e)),p.cleanup()}},customNativeRender:e=>{Hn(e,l)},directRenderFn:e=>{var t,n,l;const{settings:c,renderFn:u}=e,{bid:p,adDiv:v}=c||{};if(!v)return;const g=v.id,h=document.getElementById(g);if(!h)return;const m=null===(t=null==d?void 0:d[i])||void 0===t?void 0:t.find(e=>e.targetId===g),y=null!==(l=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==l?l:0,f=Object.assign(Object.assign({},p),{targetId:g,banner:!0});s("prebid directRenderFn ad info",{targetId:g,width:null==p?void 0:p.width,height:null==p?void 0:p.height,adId:null==p?void 0:p.adId,creativeId:null==p?void 0:p.creativeId}),Vn(h,y,()=>{var e;const t=u(c),n=be(f);if(s("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==p?void 0:p.width,height:null==p?void 0:p.height}),n)s("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),Mn(f,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const o=new MutationObserver(()=>{n()&&o.disconnect()});o.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),o&&h.style.setProperty("--advertory-political-box-offset","30px");else{s("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),Dn(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(Un),(null==p?void 0:p.creativeId)&&Rn(g,h,Number(null==p?void 0:p.creativeId))})}}),s("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{p.getCancel()||(p.events.auctionCb.done=!0,g.loadTags(e))}},customNativeRender:e=>{Hn(e,l)},directRenderFn:()=>{}})})}),Hn=(e,t)=>{var n;const{divId:o,native:i,bid:r}=e,a=document.querySelectorAll(`[id^=${o}]`)[0],d=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:i,targetId:d},v.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")},Wn=(e,t,n)=>{const o=document.getElementById(`div_utif_${e}`);if(!o)return;const{apntag:i}=window,[r,a]=t;if(!o.dataset.lockedsize&&a&&r)o.style.width=`${r}px`,o.style.height=`${a}px`,n&&(i.resizeAd(o.id,[r,a]),o.dataset.lockedsize="true",o.dataset.lockedwidth=r.toString(),o.dataset.lockedheight=a.toString());else if(null==o?void 0:o.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=o.dataset;e&&t&&i.resizeAd(o.id,[e,t])}},Kn=["netboard","board"];class Gn{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,o;const{editionName:i}=e,r=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(o=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==o?o:[]),d=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:s,spid:l}=t;return d.searchParams.append("editionName",i),r&&d.searchParams.append("urlData",r),a&&d.searchParams.append("excludedItems",a),l&&d.searchParams.append("spid",l),s&&d.searchParams.append("envid",s),d.toString()}fetchData(e){return qe(this,void 0,void 0,function*(){var t,n,o;const i=yield this.identityFacade.getIdentityUser(),r=null!==(o=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==o?o:"",a=(null==i?void 0:i.userId)?String(i.userId):"",d=this.buildUrl(e,{envId:r,spid:a});try{s("Starting fetching DrEdition ad from URL:",d);const e=yield Wt.get(d);return s("Fetch operation completed successfully."),e}catch(e){s("Error during fetch operation:",e)}return null})}}let Jn=class{getDrEditionUTMParams(e,t){var n;const{title:o="",clientName:i,creativeId:r}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,d=o.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:i,utm_medium:d},r&&{utm_id:`df-${r}`})}getUrlSearchParams(e,t,n){if(!e)return"";const o=this.getDrEditionUTMParams(t,n),i=new URLSearchParams(decodeURIComponent(e.search)),r=new URLSearchParams(e.search);return Object.entries(o).forEach(([e,t])=>{i.has(e)||r.set(e,null!=t?t:"")}),r.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const o=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!o)return"";const i=this.getDrEditionUTMParams(e,t),r=new URL(o);return Object.entries(i).forEach(([e,t])=>{r.searchParams.has(e)||r.searchParams.set(e,null!=t?t:"")}),r.toString()}handleVideo(e,t){return qe(this,void 0,void 0,function*(){const{id:n,autoplay:o,mute:i,videoLoop:r,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:o,vgtvMuted:i,vgtvLoop:!!r,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:o,pathname:i}=new URL(n);if(!o.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const r=i.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}};const Xn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):s("Dr. Edition container does not have a parent element, cannot remove height lock.")};class Qn{constructor(e,t,n,o){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=o,this.drEditionAds=[]}fetchAndRenderAd(e,t){return qe(this,void 0,void 0,function*(){var n,o;const{drEditionConfig:{options:{containerSelector:i}},renderAsBackfill:r=!1}=t,a=e.querySelector(i);if(!a)return void s(`Container with selector "${i}" not found.`);const d=yield this.drEditionService.fetchData(t);return(null==d?void 0:d.itemId)||r?!(null==d?void 0:d.itemId)&&r?(s("No Dr. Edition ads available to render. Collapsing whole placement."),V(e.id),void Xn(a)):((null==d?void 0:d.itemId)&&r&&(s("Dr. Edition ad available to render as a Xandr backfill."),z(e.id)),void(d?(d.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(d.css,"style"),yield this.rendererManager.render(a,d,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(d,t),Xn(a),this.drEditionAds.push(d),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(d.itemId),this.observeAdView(e,d,t),null===(o=e.querySelector("a"))||void 0===o||o.addEventListener("pointerup",()=>null)):Xn(a))):(s("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void Xn(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 o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";z(o)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const o=e.querySelector(".dr-edition-slider");if(!o)return!1;let i=null;const r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(i&&clearTimeout(i),i=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...o.children].forEach(e=>{r.observe(e)})})},{threshold:[.9]});return[...o.children].forEach(e=>{r.observe(e)}),!0}}class Yn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return qe(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:o}=Re(n.tcf,n.isMobileApp,n.country),i=yield o(),r=mt(n.device)?t.mobileHTML:t.desktopHTML,a=i?r:r.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var o,i,r;e.search=null!==(r=null===(i=(o=this.newsroomStrategy).getUrlSearchParams)||void 0===i?void 0:i.call(o,e,t,n))&&void 0!==r?r:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class Zn{constructor(e){this.strategy=e}handle(e,t){return qe(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:o}={}}=e;(n||o)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return qe(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 un(t)}catch(e){s("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return qe(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:o}=e.videoConfiguration,i=[...document.querySelectorAll(`#${o}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==i||i.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const r=null==i?void 0:i.parentNode;if(!r)return;const a=r.closest("a");r.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,o,i;const{preview:{url:r,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!r)return!1;const d=document.querySelector(".dr-edition-preview .preview-video");return!!d&&(d.setAttribute("src",r),d.setAttribute("playsinline",""),!(!d||!a)&&(null===(i=(o=t.drEditionConfig.options).addPreviewVideo)||void 0===i||i.call(o,d),!0))}}let eo=class{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,o){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 o=null==n?void 0:n.textContent;return o?o.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:o}={}}=t,i=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=i?i:""),type:"Page",url:o}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return qe(this,void 0,void 0,function*(){var o,i,r,a,d,s,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===(o=this.pulse)||void 0===o?void 0:o.trackLegacyViewUIElement)?null===(r=null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)||void 0===r||r.call(i,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(s=null===(d=this.pulse)||void 0===d?void 0:d.trackViewUIElement)||void 0===s||s.call(d,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 qe(this,void 0,void 0,function*(){var o,i,r,a,d,s;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(i=(o=this.pulse).trackLegacyClickUIElement)||void 0===i||i.call(o,l):this.pulse.trackClickUIElement?null===(a=(r=this.pulse).trackClickUIElement)||void 0===a||a.call(r,l):null===(s=(d=this.pulse).trackElementClick)||void 0===s||s.call(d,l)})}};class to extends eo{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var o,i,r;const{pulseData:{title:a,clientName:d="",creativeId:s,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(r=null===(i=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.transformUrl)||void 0===i?void 0:i.call(o,l))&&void 0!==r?r:{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:[d,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:d,"spt:creativeId":s,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)}}}let no=class extends eo{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var o,i,r,a,d,s;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulseObjectId)||void 0===r?void 0:r.call(i))&&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===(s=null===(d=this.newsroomStrategy)||void 0===d?void 0:d.getTags)||void 0===s?void 0:s.call(d,e)}}getEventInput(e,t,n,o){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,o),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,o){var i,r,a,d;const{pulseData:{algorithm:s="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!==(d=null!==(a=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getUrlWithParams)||void 0===r?void 0:r.call(i,t,n))&&void 0!==a?a:v)&&void 0!==d?d:"";return{algorithm:s,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:o,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}};const oo={FRONT:"front"},io=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},ro=e=>qe(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const o=document.createElement("script");o.id=e,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(o,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),ao={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 qe(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return td})})}})}},so=(e,t)=>{null==e||e.forEach(e=>{ao[e](t)})};let lo=class{handleVideo(e,t){return qe(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:o,mute:i,vendor:r}}){yield qe(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);so(a,d);const s={id:t,node:n,autoplay:o,mute:i,vendor:r,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},l=yield ro(s);l.once("assetReady",()=>{io(l,a)}),l.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"]})}),l.once("PulseStats:ready",()=>qe(this,void 0,void 0,function*(){const e=yield l.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===oo.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:o}=new URL(n),i=o.split("/").filter(Boolean);return i.length?[...i.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 co="https://www.aftonbladet.se/video-player-extras/latest/";class uo{handleVideo(e,t){return qe(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:o,mute:i,vendor:r}}){const a={id:t,node:n,autoplay:o,mute:i,vendor:r,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${co}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${co}external-link.js`]:{name:"ExternalLink"}}};yield ro(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 po=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class vo{handleVideo(e,t){return qe(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:o,mute:i,vendor:r}}){const a={id:t,node:n,autoplay:o,mute:i,vendor:r,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},po(e)?e:{}),{provider:Object.assign(Object.assign({},po(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 ro(a);d.once("PulseStats:ready",()=>qe(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===oo.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}let go=class{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}};const ho=(e,t,n)=>{const{publisher:o,pageType:i,country:r}=e,a={[It.VG]:new Jn,[It.E24]:new lo,[It.AFTONBLADET]:new uo,[It.SVD]:new vo}[o]||new go,d=new(r===h.SE?to:no)(n,a,i),s=new Gn(t,n),l=new Yn(a,d),c=new Zn(a);return new Qn(s,l,c,d)},mo=()=>qe(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 yo{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 qe(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 s("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return qe(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 fo=(e,t,n)=>{const{wrapperSelector:o}=e.drEditionConfig.options,i=document.querySelectorAll(o),r=new IntersectionObserver((o,i)=>((e,t,n,o,i)=>{const r=ho(n,o,i);e.forEach(e=>{var o,i;if(!e.isIntersecting)return;const a=e.target,d=null!==(o=a.dataset.editionName)&&void 0!==o?o:"",s=null!==(i=a.dataset.pulseColumnname)&&void 0!==i?i:"",l=Number(a.dataset.pulsePrimaryposition)||0;r.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:d,columnName:s,primaryPosition:l})),t.unobserve(a)})})(o,i,e,t,n),{rootMargin:"400% 0px"});i.forEach(e=>r.observe(e))},wo=()=>qe(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)}}),bo=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},ko=[],xo=(e,t)=>qe(void 0,void 0,void 0,function*(){var n;const{pulse:o,tcf:i,drEdition:r,pageContext:{deviceType:a,publisher:d,pageType:l,countryCode:c,isMobileApp:u}}=e;if(!(yield Ue(i,u,c,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,o;const{pageContext:{deviceType:i},placements:r,drEdition:a}=e,d=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,s=r[i]||r.desktop,l=x(t.targetId),c=s.find(e=>e.targetId===l),u=Kn.some(e=>l.startsWith(e)),p=ko.includes(l),v=(null===(o=null==c?void 0:c.drEdition)||void 0===o?void 0:o.editionName)||d;return c&&u&&!p&&v?(ko.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!p)return;if(!(null==o?void 0:o.instance))return void s("Pulse has not been passed as a prop, aborting");const v=yield mo(),g=new yo(v),h=ho({publisher:d,pageType:l,country:c},g,null==o?void 0:o.instance),m=document.getElementById(t.targetId);if(!m||!r)return;m.classList.value="";const y=document.createElement("div");y.className=r.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==p?void 0:p.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:r,device:a,tcf:i,isMobileApp:u,country:c,renderAsBackfill:!0};yield h.fetchAndRenderAd(m,f)}),Io=(e,t)=>{var n,o,i;if(!bo())return void s("Ad block not enabled, Dr. Edition backfills will not be rendered");s("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:r},finnBlink:a}=e,d=null===(o=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===o?void 0:o[r],l=null!==(i=null==d?void 0:d.map(([e])=>e))&&void 0!==i?i:[],c=new IntersectionObserver((t,n)=>qe(void 0,void 0,void 0,function*(){for(const o of t){if(!o.isIntersecting)continue;const t=o.target;n.unobserve(t),yield xo(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)})};var Co=Object.freeze({__proto__:null,DrEdition:({editionName:e,fallbackTargetId:t,children:o,pulseData:i,htmlAttributes:r})=>{const a=(e,t)=>{const n={};if(!e)return n;for(const[o,i]of Object.entries(e)){n[t?`${t}-${o}`:o]=String(i)}return n},d=a(i,"data-pulse"),s=a(r,"data");return n.jsxs("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":e},d,s,{children:[n.jsx("div",{className:"inscreen-target"}),n.jsx("div",{className:"container"}),n.jsx("div",{className:"fallback","data-fallback-target-id":t,style:{display:"none"},children:o})]}))},getDrEditionManager:ho,handleDrEdition:e=>qe(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield Ue(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield mo(),o=new yo(n);fo({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},o,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),handleDrEditionBackfill:xo,handleDrEditionBackfillOnAdblock:Io});const Eo="collapseAd",To="hideAd",Ao="resizeAd",So="renderDrEditionFallback",Po="wallpaperImageUrl",Oo="wallpaperColor",jo="velvet",$o=[Ao,Po,Oo,Eo,To,So,jo];let Lo;const _o=e=>{if(!["http://acdn.adnxs-simple.com","https://acdn.adnxs-simple.com","https://crcdn01.adnxs-simple.com","http://crcdn01.adnxs-simple.com","https://acdn.adnxs.com","http://acdn.adnxs.com","https://adsdk.microsoft.com","https://adsdk.bing.net","https://adsdkprod.azureedge.net"].includes(e.origin.trim()))return;const{data:t}=e;if(!t)return;const n=(e=>{if("object"==typeof e)return e;if(L(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Po,wallpaperImageUrl:t}}if(_(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Oo,wallpaperColor:t}}if(e.startsWith(So)){const t=e.split(":")[1];return{name:So,targetId:t}}if(e.startsWith(Eo)||e.startsWith(To)){const t=e.split(":")[1];return{name:Eo,targetId:t}}if(e.includes("name")&&$o.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!$o.some(e=>n.name===e))return;const{name:o,targetId:i,wallpaperImageUrl:r,wallpaperColor:a,cmd:d,size:s}=n;o===jo&&d&&(d.includes("noScroll")&&(Lo=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(d.includes("close")||d.includes("ended"))&&(null==Lo||Lo(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),o!==Eo&&o!==To||!i||V(i),o===Ao&&i&&d&&Wn(i,d),o===So&&i&&(V(i),xo(v.get(),{targetId:i})),"resizeMediationAd"===o&&i&&s&&Wn(i,s,!0),o===Po&&r&&N(r),o===Oo&&a&&q(a)},No=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=v.get(),o=window.apntag,i={publisher:e,countryCode:t,finnBlink:n},r=e=>{z(e),E(()=>o.showTag(e))};return{withXandrAd:r,withFinnBlinkAd:e=>qe(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return hd});yield t(e,i,null)}),withFullAdsChain:e=>qe(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void r(e);const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return hd});yield t(e,i,r,()=>qe(void 0,void 0,void 0,function*(){if(!W.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return M});t(e)}))})}},qo=(e,t)=>qe(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield Vn(e,t,()=>((e,t,n)=>{const o="true"===n.dataset.isFinnBlinkOnlyPlacement;return Se(t)&&o?(s(`loading finn blink ad for blink only placement for ${t}`),void No().withFinnBlinkAd(t)):Se(t)?(s(`loading finn blink ad with full ads chain for ${t}`),void No().withFullAdsChain(t)):void E(()=>(s("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)))}),Mo=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Do=new Map,Bo=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],Fo=".brandstudio-premium-content-widget",Ro=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),Uo=({adWrapper:e,placementContainer:t})=>{const n=Ro({adWrapper:e,placementContainer:t});var o;null==e||e.style.setProperty("height",`${n}px`),G(o=t),o.innerHTML=""},Vo=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},zo=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=v.get(),o=Bo.includes(n)&&Boolean(t.closest(Fo));const i=o?t.closest(Fo):null,r=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!o&&!a||o&&!i)return;if(a)return Vo(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?Vo(d):s.hasAttribute("style")&&Vo(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},Ho=(e,t,n,o,i,r)=>{var a;const d=performance.now(),s=null!==(a=Do.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(o,i)&&n<0;d-s>=i&&l&&(Do.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:o}}=v.get(),i=null==n?void 0:n.parentElement;i&&n&&Uo({adWrapper:i,placementContainer:n}),E(()=>{e.setKeywords([t],{[`${m(o)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},Wo=(e,t,n)=>{const o=new IntersectionObserver((e,o)=>((e,t,n,o)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:r}=e;t(window.apntag,i.id,r.y,n,o,i)})})(e,Ho,t,n),Mo(300));o.observe(e)},Ko=(e,t=6)=>{const n=[];for(let o=0;o<e.length;o+=t){const i=e.slice(o,o+t);n.push(i)}return n},Go=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Jo=(e,t=0)=>{const n=e.getBoundingClientRect(),o=window.innerHeight;return n.bottom>-t&&n.top<o+t},Xo=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=v.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),ti(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},Qo=(e,t,n)=>{const o=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of o){const o=e.find(e=>{var t,n;return e.targetId===(null===(t=i.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==o?void 0:o.requestThreshold;Jo(i,r)&&o&&(K(o.targetId),n.length&&i.classList.remove(...n),ti([o],t))}},Yo=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:o}}=v.get();t&&(e.forEach(({targetId:e})=>{const t=Zo(e);t&&(t.dataset.bfCacheRefresh="true")}),o?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&Qo(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const o=()=>{window.scrollY>0&&(window.removeEventListener("scroll",o),Qo(e,!1,t))};n.persisted&&(Go()?window.addEventListener("scroll",o,{passive:!0}):Qo(e,!1,t))})})(e,n))},Zo=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},ei=e=>{const{targetId:t,allowedFormats:n}=e,o=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Zo(t)),i=(e=>1===e[0]&&1===e[1])(o),r={sizes:[o],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(r.native=void 0),r},ti=(e,t=!1)=>{const{queryConfig:{batchSize:n=u}={}}=v.get(),o=e.map(({targetId:e})=>e),i=Ko(o,n);if(t)for(const t of e){const e=ei(t);window.apntag.modifyTag(t.targetId,e)}for(const e of i)E(()=>window.apntag.refresh(e))},ni=e=>`externalImpId:'${e}'`,oi=(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,ii=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:o}=v.get(),{targetId:i,sizes:r,keywords:a,allowedFormats:d,invCode:l,ssaNativeAdEnabled:c=!1,nativeCustomProperties:u,safeframeConfig:p,dynamicSizeWidthCheck:g=!1,globalPlacementId:h}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||tt())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],o=Array.isArray(n)?n.filter(e=>e!==Ke):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":o}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:i})})(e),m=Object.assign({invCode:l,sizes:r,targetId:i,keywords:oi(a,c),allowedFormats:d,dynamicSizeWidthCheck:g,globalPlacementId:h},p&&{safeframeConfig:p}),y=(e=>{var t,n,o,i,r,a;return(null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId)?(s("Pulse state pageViewId is:",null===(i=null===(o=null==e?void 0:e.instance)||void 0===o?void 0:o.state)||void 0===i?void 0:i.pageViewId),null===(a=null===(r=null==e?void 0:e.instance)||void 0===r?void 0:r.state)||void 0===a?void 0:a.pageViewId):(s("Pulse state does not contain field pageViewId or it is empty"),"")})(o);n&&y&&(s("External Impression ID assigned to defineTag:",ni(y)),m.externalImpId=ni(y));const f=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,o])=>((null==e?void 0:e.includes(n))&&(t[n]=o),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}}))(u);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(m.native=f),m},ri=e=>!e.includes("takeover")||tt(),ai=e=>{const{source:t}=e;return"csm"===t},di=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=v.get(),n=m(t),o=e[`${n}-targetid`],i=o?x(o[0]):"";return Object.assign(Object.assign({},e),o&&{[`${n}-targetid`]:[i]})},si=e=>{const{pageContext:{countryCode:t}}=v.get(),n=m(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"]})},li=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const o=n.split(",")[0].split(":")[0],i=e.find(e=>e.invCode===o),r=document.querySelector(`[id^=${null==i?void 0:i.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{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"})})()},ci=(e,t)=>qe(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});On(".advertory-brandmetrics-survey{width:100%}");const ui="advertory-brandmetrics-survey",pi="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",vi=()=>qe(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,o)=>{var i;o||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),gi={pageContext:{publisher:"aftonbladet",countryCode:h.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"}},hi={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},mi=e=>(null==e?void 0:e.parent)?[...mi(e.parent),e.shortPath||"unknown"]:[],yi=(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]=mi(e);return hi[n]||"ovrigaavdelningar"})(e)}_{position}`,fi={aftonbladet:gi},wi={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:yi(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:mi(e).join(":")}}},bi=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},ki=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),xi="se-generic",Ii="aa-sch",Ci="kv_",Ei="pause",Ti="{deviceType}",Ai="{position}",Si="afp_",Pi=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),Oi="1-1",ji="16-9",$i="3-4",Li="9-16",_i="responsive",Ni={[Oi]:1,[ji]:1.78,[Li]:.56,[_i]:1},qi={[Oi]:1,[ji]:1.78,[$i]:1.33,[Li]:.56},Mi=(e,t,n,o)=>{const{invCode:i="",videoOverlayInvCode:r}=null!=e?e:{},a=Y===n?te:ne,d=i.replace(Ti,a);return(e,n)=>{if(e===Ei)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Ai,Ei).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&Pi.has(e)){return(o&&r?r:t.frontpageInvCodeTemplate).replace(Ti,a).replace(Ai,e)}return d.replace(Ai,e)}},Di=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[o,i])=>{const r=Math.abs(e[n]-t);return Math.abs(i-t)<r?o:n},n[0][0])},Bi=()=>{var e,t;const n=jwplayer().getContainer(),o=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return o&&"number"==typeof o.offsetWidth&&"number"==typeof o.offsetHeight&&0!==o.offsetHeight?o.offsetWidth/o.offsetHeight:1},Fi=()=>{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},Ri=()=>{const e=null!==(t=Fi()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Fi()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Ui=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Vi=(e,t)=>qe(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:o,countryCode:i}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:i,publisher:o,pageType:"front",deviceType:e.deviceType},s=(yield Ue(n,e.isApp,i,"video"))?"1":"0",l=yield vi(),c=yield cn(i),u=yield ze({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Di(qi,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Di(Ni,Number(m.toFixed(2))):_i;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ii}-country_code`]:i,[`${Ii}-publisher`]:o,[`${Ii}-supply_type`]:(y=e.deviceType,y===Y?Z:ee),[`kw_${Ii}-page_type`]:"collection",[`${Ii}-page_type`]:"collection",[`${xi}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${xi}-page`]:"index",[`${xi}-page`]:"index",[`${xi}-screenheight`]:String(window.screen.height),[`${xi}-screenwidth`]:String(window.screen.width),[`${xi}-viewportheight`]:String(a),[`${xi}-viewportwidth`]:String(r),[`${xi}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${xi}-mobile-os`]:ht(),[`${xi}-audience`]:void 0,[`${xi}-externalid_src`]:Ri(),[`${xi}-tags`]:e.tags,[`${xi}-articleid`]:p,"article-id":p},yield Mt(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${xi}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Ui()).some(e=>e.includes(Ci))&&(()=>{const e=Ui(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Ci)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),zi=["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"],Hi=["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"],Wi=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ki=(e,t)=>{const n=[...zi,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Wi.includes(e)?e:`kw_${e}`,t]))},Gi=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Hi.includes(e))),Ji=(e,t)=>qe(void 0,void 0,void 0,function*(){var n,o,i,r;const a=(e=>{var t;fi[e]||l(`[video] No config found for publisher "${e}"`);return null!==(t=fi[e])&&void 0!==t?t:gi})(e.publisher),d=(e=>{var t;return null!==(t=wi[e])&&void 0!==t?t:wi.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,c=null===(o=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString(),u=e.assetId===c,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,v=u?"preroll":"bumper";var g;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield Vi({pageAdsKeywords:e.pageAdsKeywords,tags:(g=e.tags,g?g.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==d?void 0:d.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:u,instreamAspectRatio:p,playerAspectRatio:Bi(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:v,playbackMethod:bi(e.startMode)}}),Xi=(e,t)=>{const{siteConfig:n,siteVideoParams:o,isUserPresentOnFrontPage:i,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=o||{},l=Mi(o,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Si)?`${Si}${t}`:t)(s),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,i),"se-generic-playback-method":ki.get(d),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Ki(r,n)),Gi(r)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Qi=e=>t=>qe(void 0,void 0,void 0,function*(){const n=yield Ji(e,t);return Xi(n,e)}),Yi={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]}]},Zi={no:"NOK",se:"SEK"},er={no:"no",se:"sv"};class tr{buildFetchObject(e,t,n,o){return qe(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:r}=o,{invCode:a,xandrPlacementId:d}=e,s=yield vi(),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(Yi),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:C(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||er[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield ze(o),ext:{consent:s.gdpr_consent||"",eids:ln(i)}},at:1,cur:[Zi[i]],source:{tid:C(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,o){return qe(this,void 0,void 0,function*(){try{s("Starting fetching Studio ad from Xandr:",pi);const i=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${pi}?${a.toString()}`:pi,l=yield this.buildFetchObject(e,t,n,o),c=yield Wt.post(d,i,l);return s("Fetch operation completed successfully.",c),c}catch(e){s("Error during fetch operation:",e)}return null})}}const nr=0,or=3,ir=(e,t,n,o)=>{const i=t.parentElement;if(!i)return;const r=e?`-${e}`:"",a=o?`__${o}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(d),i.classList.add(s),t.dataset.adType=n},rr="finn-blink",ar="native-ad",dr=(e,t)=>{sr(e,t),cr(e,t)},sr=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const o of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])pr(o)}),t.dataset.tracked="true")})},lr=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;o||!i?null==n||n.forEach(ur):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},cr=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Y])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,lr(e),c.disconnect();break}},s);c.observe(i)},ur=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?pr(e):window.navigator.sendBeacon(e)},pr=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},vr=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:[]}),gr=(e,t)=>qe(void 0,void 0,void 0,function*(){var n,o;const{pageContext:{deviceType:i},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,l=document.getElementById(e.targetId);if(!l)return void s(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Mo(d)).observe(l)});const{prepareTag:c}=v.getHandlers(),u=W.getData("alertoryConfigKeywords"),p=null!==(o=c(ii(e)).keywords)&&void 0!==o?o:{},g=new tr,h=yield g.fetchData(e,u,p,t);h&&(((e,t,n)=>{const o=n===X?t.mobileHTML:t.desktopHTML;if(o){if(t.adType===nr){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${o}`,e.appendChild(n)}else e.innerHTML=o;e.classList.add("ad-loaded")}})(l,h,i),h.adType===or&&(ir(t.pageContext.publisher,l,ar,t.pageContext.pageType),dr({targetId:e.targetId,native:{clickTrackers:h.clickTrackers,impressionTrackers:h.impTrackers}},{deviceType:i,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,o)=>{var i,r,a;let d;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==o?void 0:o.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),Rn(e,n,Number(null==o?void 0:o.adid)),null==d||d.remove()})(e.targetId,e.invCode,l,h.bid))}),hr=(e,t)=>{e.forEach(e=>gr(e,t).catch(e=>{s("Failed to handle server-side ad:",e)}))},mr={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},yr="https://alertory-cdn.inventory.schibsted.io",fr=5e3,wr="editory/native-creator/native-templates",br=e=>qe(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=e;return(null==t?void 0:t.publisherClassName)&&o?`${n||yr}/editable-configurations/${t.publisherClassName}/${o.toLowerCase()}.json`:null})(e);if(!t)return null;try{return yield Wt.get(t,{timeout:fr})}catch(e){throw s("Failed to fetch S3 config",{error:e,url:t}),e}}),kr=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(It).includes(o);n&&r&&ir(o,e,ar,i)})(i,n),o())},xr=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const o of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])Tr(o)}),t.dataset.tracked="true")})},Ir=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;o||!i?null==n||n.forEach(Er):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},Cr=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Y])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,Ir(e),c.disconnect();break}},s);c.observe(i)},Er=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Tr(e):window.navigator.sendBeacon(e)},Tr=e=>{Wt.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Ar=(()=>{const e=new Map,t=new Map;return{getTemplate:t=>e.get(t),setTemplate:(t,n)=>{e.set(t,n)},deleteTemplate:t=>{e.delete(t)},getAdjustment:e=>t.get(e),setAdjustment:(e,n)=>{t.set(e,n)},clear:()=>{e.clear(),t.clear()}}})(),Sr=(e,t,n)=>{if(!n)return Promise.resolve(null);const o=((e,t,n)=>`${null!=n?n:yr}/${wr}/${e}/adjustments/${t}.json`)(e,n,t),i=Ar.getAdjustment(o);if(i)return i;const r=Wt.get(o,{timeout:fr}).catch(e=>(s("Failed to fetch native template adjustment",{error:e,url:o}),null));return Ar.setAdjustment(o,r),r},Pr=(e,t,n)=>qe(void 0,void 0,void 0,function*(){const o=((e,t)=>`${null!=t?t:yr}/${wr}/${e}/default.json`)(e,n);let i=Ar.getTemplate(o);i||(i=Wt.get(o,{timeout:fr}).catch(e=>{throw s("Failed to fetch native template",{error:e,url:o}),Ar.deleteTemplate(o),e}),Ar.setTemplate(o,i));const r=Sr(e,n,t),[a,d]=yield Promise.all([i,r]);return{schema:a,adjustment:d}}),Or={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},jr=(e,t)=>{var n,o,i;const a=Object.assign({},e);a.overrides=e.overrides?r({},e.overrides,Or):e.overrides;for(const d of Object.keys(t)){const s=t[d];if(!s)continue;const l=s[e.id];if(!l)continue;const c=null!==(o=null===(n=a.overrides)||void 0===n?void 0:n[d])&&void 0!==o?o:{},u=r(c,l,Or);a.overrides=Object.assign(Object.assign({},null!==(i=a.overrides)&&void 0!==i?i:{}),{[d]:u})}return e.children&&(a.children=e.children.map(e=>jr(e,t))),a},$r="desktop",Lr="mobile",_r="container",Nr="text",qr="image",Mr="cogwheel",Dr=(e,t)=>{var n,o,i,r,a,d;const s=null===(n=e.overrides)||void 0===n?void 0:n[t];if(null!==(o=null==s?void 0:s.hidden)&&void 0!==o?o:e.hidden)return null;const l=Object.assign(Object.assign({},e.styles),null!==(i=null==s?void 0:s.styles)&&void 0!==i?i:{}),c=null!==(r=null==s?void 0:s.tag)&&void 0!==r?r:e.tag,u=null!==(a=null==s?void 0:s.text)&&void 0!==a?a:e.text,p=null===(d=e.children)||void 0===d?void 0:d.map(e=>Dr(e,t)).filter(e=>null!==e),v={id:e.id,tag:c,type:e.type,name:e.name,styles:l,connections:e.connections};return void 0!==u&&(v.text=u),void 0!==p&&(v.children=p),v},Br=e=>Object.entries(e).map(([e,t])=>`${(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))(e)}:${(e=>String(e).replace(/"/g,"&quot;"))(t)}`).join(";"),Fr={microsoftMonetize:{title:"title","body-text":"body",description:"body","sponsored-by":"sponsoredBy","call-to-action":"cta","display-url":"clickUrl","desc-2":"desc2",image:"image",icon:"icon","title-1":"customTitle1","title-2":"customTitle2","title-3":"customTitle3","title-4":"customTitle4","icon-1":"customIcon1","icon-2":"customIcon2","custom-display-url-1":"customDisplayUrl1","custom-body-1":"customBody1","custom-body-2":"customBody2","custom-body-3":"customBody3","custom-body-4":"customBody4","custom-body-5":"customBody5"}},Rr=(e,t)=>{const n=e[t];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class Ur{constructor(e,t=!1){this.tag=e,this.voidElement=t,this.attributes=new Map,this.content=""}attr(e,t){return t&&this.attributes.set(e,t),this}children(e){return this.content=e,this}build(){const e=[...this.attributes].map(([e,t])=>` ${e}="${t}"`).join("");return this.voidElement?`<${this.tag}${e}>`:`<${this.tag}${e}>${this.content}</${this.tag}>`}}const Vr=(e,t,n="")=>{var o;return(null===(o=e.connections)||void 0===o?void 0:o.length)?((e,t)=>{const n=[];for(const o of e){const e=Fr[o.server];if(e)for(const i of o.properties){const o=e[i];if(!o)continue;const r=Rr(t,o);r&&n.push(r)}}return n.join(" ")})(e.connections,t):n},zr=(e,t,n,o)=>{var i;const{tag:r,styles:a}=e,d=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Wr(e,t,n,!1)).join(""),s=new Ur(r);return o(s),s.attr("href","a"===r?Vr(e,t):"").attr("style",Br(a)).children(d).build()},Hr={[_r]:(e,t,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return zr(e,t,n,t=>{o&&t.attr("class",`advertory-${r}-ad-native-${e.name.toLowerCase()}`)})},[Mr]:(e,t,n)=>zr(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[Nr]:(e,t)=>{var n;return new Ur(e.tag).attr("style",Br(e.styles)).children(Vr(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[qr]:(e,t)=>new Ur("img",!0).attr("style",Br(e.styles)).attr("src",Vr(e,t)).build()},Wr=(e,t,n,o=!0)=>{const i=Hr[e.type];return i?i(e,t,n,o):""},Kr=e=>(t,{publisher:n,containerId:o,deviceType:i})=>((e,t,n,o,i)=>{const r=Dr(e.root,n);return r?Wr(r,t,{breakpoint:n,publisher:o,containerId:i}):null})(e,t,(e=>e===X?Lr:$r)(i),n,o),Gr="default",Jr=(e,t)=>qe(void 0,void 0,void 0,function*(){var n,o,i,a,d;const l=document.querySelector(`#${e.targetId}`);if(!e.native||!l)return;const{desc2:c}=e.native,u=null==c?void 0:c.toLowerCase(),p=((e,t)=>{const n=R(F),o=new URLSearchParams(window.location.search).get(F),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null})(e.targetId,null!=c?c:Gr),v=(null!=p?p:u)||Gr,g=null===(n=t.pageContext)||void 0===n?void 0:n.publisher;try{const{schema:n,adjustment:s}=yield Pr(v,g,null===(o=t.editory)||void 0===o?void 0:o.editoryUrl),l=s?((e,t)=>t.overrides?Object.assign(Object.assign({},e),{root:jr(e.root,t.overrides)}):r({},e,Or))(n,s):n,c=Kr(l),u={publisher:g,pageType:null===(i=t.pageContext)||void 0===i?void 0:i.pageType,deviceType:null===(a=t.pageContext)||void 0===a?void 0:a.deviceType,appearanceConfig:t.appearanceConfig,nativeTrackingConfig:t.nativeTrackingConfig,containerId:e.targetId,clickLinkSelector:"a"},p=c(e.native,u),{enabled:h=!0}=null!==(d=t.nativeTrackingConfig)&&void 0!==d?d:{};kr(e.targetId,p,u,()=>{Fn(e.targetId),h&&((e,t)=>{xr(e,t),Cr(e,t)})(e,u)})}catch(e){s("Failed to render native ad from config",{error:e})}}),Xr=e=>qe(void 0,void 0,void 0,function*(){if(!(e=>{const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=e;return Boolean(t&&n&&(null==o?void 0:o.publisherClassName))})(e))return e;try{const t=yield br(e);return t?((e,t)=>r(t,e,mr))(e,t):e}catch(t){return s("Error fetching S3 config, using site config",{error:t}),e}}),Qr="_adchoices_non_rtb",Yr=e=>{const{nonRtb:{invCodeSuffix:t=Qr}={}}=v.get();return`${f(e)}${t}`},Zr=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>V(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Yr(e.invCode)})))(e)),ea=e=>`${Math.max(0,Math.round(e))}px`,ta=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},na=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const o=e[t];n.style.setProperty(t,o)}},oa=()=>{const{pageSectionsSelectors:e}=v.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=ta(t);na({"--advertory-header-height":ea(n)})})(e.header)};let ia,ra=[];const aa=["takeover","wallpaper"],da=e=>{const t=(e=>{var t;const n=W.getData("alertoryConfigKeywords"),{queryConfig:o,placements:i,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:p,isMobileApp:v=!1},pageOptions:{member:g},pageSetup:h,takeover:m,fullscreenScroll:y,fullWidth:f}=e,w=null!==(t=null==o?void 0:o.batchSize)&&void 0!==t?t:u;return{xandr:{member:g,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:p,isMobileApp:v},pageSetup:h,placements:i,tcf:r,queryConfig:Object.assign(Object.assign({},o),{batchSize:w})},a&&{glimr:a}),d&&{appearanceConfig:d}),m&&{takeover:m}),y&&{fullscreenScroll:y}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.7.2",siteConfig:e,alertoryConfig:t}},sa=()=>qe(void 0,void 0,void 0,function*(){const{pageOptions:e}=v.get(),{preparePageOptions:t}=v.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=v.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),o=yield qe(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=v.get();return(yield Ue(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),i=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),o));(e=>{const t=W.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=si(e);W.setData("alertoryConfigKeywords",n)})(i.keywords),E(()=>ia.setPageOpts(i))}),la=e=>qe(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=v.get(),r=yield Ue(n,o,i,"loadPlacements"),a=Zr(e,r);ca(a);(null==t?void 0:t.enabled)&&r&&!U()?(s("core loadPlacements prebid enabled"),yield zn()):(s("core load tags invoked without prebid enabled"),ua(a))}),ca=e=>{const{prepareTag:t}=v.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const o=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==o&&-1===i?-1:-1===o&&-1!==i?1:o-i})})(e).forEach(e=>{s("core defineTags",{placement:e});const o=ii(e);if(ri(e.targetId)){const i=t(o),r=(e=>{const{allowedFormats:t,invCode:n,keywords:o,sizes:i}=e;return{adTypes:t,invCode:n,keywords:di(o),sizes:i}})(i);n.push(r),E(()=>(s("core defineTag - add to the queue",{placement:e,preparedTag:i}),ia.defineTag(i)))}}),(e=>{var t,n,o;(null===(o=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===o?void 0:o.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},ua=e=>{const t=e.filter(({targetId:e})=>ri(e)).map(({targetId:e})=>e);t.length&&E(()=>(s("core loadTags",{placementsIdsToLoad:t}),ia.loadTags([...t])))},pa=(e,t)=>qe(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:o}}=v.get(),{requestThreshold:i,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[o];a&&(s("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:i,deviceDefaultThreshold:d}),yield qo(a,null!=i?i:d)),a&&(null==r?void 0:r.scroll)&&(s("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=r.scroll.toString())}),va=e=>e.some(({targetId:e})=>aa.some(t=>e.includes(t))),ga=e=>qe(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,o]=(e=>e.reduce(([e,t],n)=>{var o;return(null===(o=null==n?void 0:n.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=u}={},pageContext:{deviceType:o}}=v.get(),i=se(e),r=Object.keys((null==t?void 0:t[o])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...r,...Ko(d,n)]})(o);for(const e of i)va(e)?(s("core loadAds without lazy loading",{placementsToLoad:e}),yield la(e)):e.length&&(s("core loadAds with lazy loading",{placementsToLoad:e}),yield ha(e));const{finnBlink:r}=v.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield Promise.resolve().then(function(){return hd});yield e(n)}}),ha=e=>qe(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=v.get(),o=[];if(!t)return s("lazy load is not enabled",{placements:e}),void(yield la(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{s("lazy load is enabled - handler start",{loadedTargetIds:o,placements:e});const i=e.every(e=>o.includes(e.targetId)),r=e.map(e=>e.targetId);!i&&o.push(...r),!i&&la(e),s("lazy load is enabled - handler stop",{loadedTargetIds:o,placements:e,arePlacementsLoaded:i,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(s("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),ma=()=>qe(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=v.getHandlers(),{wallpaper:n,fullscreenScroll:o}=v.get(),i=[];E(()=>{ia.onEvent("adRequested",()=>{e.adRequested()}),ia.onEvent("adAvailable",i=>qe(void 0,void 0,void 0,function*(){var r,a,d,l,c,u;s("core adAvailable start",{placementsAvailable:ra,adObj:i,isFullscreenScrollAd:be(i),isFinnBlink:Se(i.targetId),isNativeAd:ke(i),isMediation:ai(i),isTakeoverAd:Ie(i),isCollapseAd:Te(i),isWallpaperAd:Ee(i)});const p=null===(d=null===(a=null===(r=null===window||void 0===window?void 0:window.apntag)||void 0===r?void 0:r.requests)||void 0===a?void 0:a.tags[i.targetId])||void 0===d?void 0:d.adResponse.ads;if(ai(i)&&p&&(null===(l=p[1])||void 0===l?void 0:l.rtb)&&(i.banner=null===(u=null===(c=p[1])||void 0===c?void 0:c.rtb)||void 0===u?void 0:u.banner),be(i)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return Bn});e(i)}const{widescreenSwitching:g}=v.get();if(je(i)&&(null==g?void 0:g.enabled)){const{initWidescreenSwitching:e}=yield Promise.resolve().then(function(){return wd});e()}if(be(i)&&!Se(i.targetId)){s("core adAvailable: creating fullscreen scroll container",{targetId:i.targetId,width:i.width,height:i.height,bannerWidth:i.banner&&"object"==typeof i.banner?i.banner.width:i.banner,bannerHeight:i.banner&&"object"==typeof i.banner?i.banner.height:void 0});const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return Bn});e(i,o)}if(!ke(i)||ai(i)||Se(i.targetId)||null==t||t(i,v.get()),Ie(i)&&!Te(i)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield Promise.resolve().then(function(){return Md});e(i.targetId),yield t(i)}if(Ee(i)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return M});e(()=>E(()=>window.apntag.showTag(i.targetId)),n),W.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(i)&&W.setData("horseshoe",{isAvailable:!0}),e.adAvailable(i);const h=ra.find(({targetId:e})=>e===i.targetId);h&&(yield pa(h,i),ra=ra.filter(e=>e.targetId!==h.targetId)),s("core adAvailable stop",{placementsAvailable:ra,adObj:i,isFullscreenScrollAd:be(i),isFinnBlink:Se(i.targetId),isNativeAd:ke(i),isMediation:ai(i),isTakeoverAd:Ie(i),isCollapseAd:Te(i),isWallpaperAd:Ee(i)})})),ia.onEvent("adLoaded",n=>qe(void 0,void 0,void 0,function*(){const{refreshConfig:o,appearanceConfig:r,wallpaper:a,adScaleConfig:d}=v.get(),s=document.getElementById(n.targetId);if(Se(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield Promise.resolve().then(function(){return sd});e(n)}if(i.includes(n.targetId)&&ke(n)&&(null==t||t(n,v.get()),vt({adObj:n})),!i.includes(n.targetId)&&ai(n)&&i.push(n.targetId),Te(n)&&V(n.targetId),Ie(n)){const{modifyTakeoverIframe:e}=yield Promise.resolve().then(function(){return Md});e(ia,n.targetId)}if((e=>_e(e,ue))(n)){const{applyNinesixteenFormat:e}=yield Promise.resolve().then(function(){return Rd});e(n)}if((e=>_e(e,ve))(n)){const{applyFullsquareFormat:e}=yield Promise.resolve().then(function(){return Rd});e(n)}if(xe(n)){const{applyFullwidthFormat:e}=yield Promise.resolve().then(function(){return Rd});e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,o=document.querySelector(`#${n}`),i=null==o?void 0:o.parentElement;if(!i||!o)return;zo({adWrapper:i,placementContainer:o});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();o&&"true"!==o.dataset.subscribedForRefresh&&(o.dataset.subscribedForRefresh="true",o.dataset.refresh&&Wo(o,a,r))})(n,o),(null==r?void 0:r.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(W.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return M});e(n.targetId)}if(null==d?void 0:d.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield Promise.resolve().then(function(){return kt});e(n),t(n)}e.adLoaded(n),Fn(n.targetId),s&&(s.classList.add(Un),(e=>{var t,n;const{pageSectionsSelectors:o}=v.get(),i=null==o?void 0:o.mainFirstColumn,r=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(s)),vt({adObj:n}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const o=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;o&&((e,t)=>{const{height:n,width:o,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&o&&(t.dataset.adSizes=`[${o},${n}]`)})(e,o)})(n),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:gt(n)}}))})),ia.onEvent("adNoBid",t=>qe(void 0,void 0,void 0,function*(){var n;if(V(t.targetId),null===(n=v.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield Promise.resolve().then(function(){return Co});yield e(v.get(),t)}if(Ie(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return ut});yield e(t)}e.adNoBid(t)})),ia.onEvent("adError",(t,n)=>qe(void 0,void 0,void 0,function*(){if(Ie(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return ut});yield e(n)}e.adError(t,n)})),ia.onEvent("adCollapse",()=>{e.adCollapse()}),ia.onEvent("adRequestFailure",t=>qe(void 0,void 0,void 0,function*(){V(t.targetId),yield xo(v.get(),t),e.adRequestFailure(t)})),ia.onEvent("adBadRequest",t=>qe(void 0,void 0,void 0,function*(){V(t.targetId),yield xo(v.get(),t),e.adBadRequest(t)})),ia.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),ia.onEvent("adNoBidMediated",t=>qe(void 0,void 0,void 0,function*(){yield xo(v.get(),t),e.adNoBidMediated(t)}))})}),ya=(e,t)=>qe(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:o,reloadExistingAds:i,renderFinnBlinkPlacements:r,contextSelector:a}=null!=t?t:{};if(o)return J(),[];i&&(J(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{z(e.id)})),g(null!=e?e:{}),yield sa();const{clientSidePlacements:d,serverSidePlacements:s}=vr(ae(a));let l=d;return r&&(l=l.filter(e=>Se(e.targetId))),hr(s,v.get()),l.length>0&&(ra=[...ra,...l.map(e=>Object.assign({},e))],Xo(l),Yo(l),yield ga(l)),ra}),fa=(e,t)=>qe(void 0,void 0,void 0,function*(){var n;v.set(e),v.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:o,kilkaya:i,rightColumnSplit:r,drEdition:a,finnBlink:d}=e;if(W.initialize(),window.addEventListener("message",_o,!1),ia=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=ia,s("Apn tag is set up on window"),yield Promise.allSettled([qe(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=v.get();(yield Ue(e,t,n,"xandr-endpoint"))||ia.setEndpoint("ib.adnxs-simple.com",!0)}),qe(void 0,void 0,void 0,function*(){if(U())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=v.get(),i=yield Ue(t,n,o,"prebid");(null==e?void 0:e.enabled)&&i&&(yield un(null==e?void 0:e.prebidUrl))}),rn(e),qe(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=v.get();yield un(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),qe(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=v.get();(yield Ue(t,n,o,"gpt-endpoint"))&&(yield un(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),qe(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=v.get(),{getConsentAsync:r}=Re(n,0,i),a=yield r();if(e&&t&&a){if(yield un(t),document.querySelector(`.${ui}`))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(ui)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),jt(),qe(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=v.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield un(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==o?void 0:o.enabled){const{loadNorstat:e}=yield Promise.resolve().then(function(){return Vd});yield e()}s("Libraries have been loaded and trackers have been set"),oa(),yield ma(),yield sa(),s("Page options have been set"),da(e),s("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=vr(ae());if(ra=l,hr(c,e),Xo(ra),Yo(ra),yield ga(ra),s("Ads has been loaded",ra),Io(e,ra),li(ra),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield Promise.resolve().then(function(){return hd});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 Promise.resolve().then(function(){return Co});yield t(e)}if(null==r?void 0:r.enabled){const{initRightColumnSplit:t}=yield Promise.resolve().then(function(){return Xd});t(e.rightColumnSplit)}if(null==i?void 0:i.enabled){const{runKilkaya:t}=yield Promise.resolve().then(function(){return hs});yield t(e)}}),wa=(e,t)=>qe(void 0,void 0,void 0,function*(){yield((e,t)=>qe(void 0,void 0,void 0,function*(){var n,o;const{initConsentManager:i,getConsentAsync:r}=Re(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(o=e.pageContext)||void 0===o?void 0:o.countryCode),a=yield Xr(e);yield wo(),yield ci(i),yield ci(r),s("TCF resolved successfully"),yield fa(a,t),s("Run function resolved successfully")}))(e,t)}),ba=(e,t,n,o)=>{var i;const{image:r,icon:a,sponsoredBy:d,title:s,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:k,customBody4:x,customBody5:I,customIcon1:C,customIcon2:E,customDisplayUrl1:T}=e,A=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:A(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=o.appearanceConfig)||void 0===e?void 0:e.theme)&&C;return A(t?C:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(i=null!=u?u:g)&&void 0!==i?i:"",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!=k?k:"",customBody4:null!=x?x:"",customBody5:null!=I?I:"",logo2:A(E),previewVideoSrc:null!=T?T:""},t)},ka=(e,t)=>{const n=R(F),o=new URLSearchParams(window.location.search).get(F),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},xa=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(It).includes(o);n&&r&&ir(o,e,ar,i)})(i,n),o())},Ia=(e,t,n)=>{const o=((e,t,n)=>{var o;const{displayTemplates:i,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(o=ka(e.targetId,l))&&void 0!==o?o:c,p=$n[t.language||h.NO],v=ba(d,p,s,t);return(d.video?r[u]:i[u]||i.default)(v,t)})(e,t,n);xa(e.targetId,o,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&dr(e,t)})},Ca=e=>(t,n)=>{var o;const{targetId:i}=t,r=document.querySelector(`#${i}`);if(!r)return;const a=e.getOptions(null!=n?n:{});Ia(t,a,e.templates),null===(o=e.postProcess)||void 0===o||o.call(e,t,r)},Ea=()=>{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},Ta=e=>{const{siteSpecificConfig:t}=v.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Aa{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return qe(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 qe(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Sa=9826;class Pa{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=v.get();if(t){return{"aa-sch-supply_type":`app_${e===X?"phone":Q}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return qe(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 qe(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=Ve("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return qe(this,void 0,void 0,function*(){return yield ze(v.get())})}isTrackingForbidden(){return qe(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=Sa}={}}=v.get();return"true"===D("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=v.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return qe(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=v.get(),{getConsentAsync:o}=Re(e,0,n);return{"aa-sch-cmp_advertising":(yield o())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=v.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 Oa=new Pa;function ja(e=!1){var t,n;const o=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=ht();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:o.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Oa.prepare.bind(Oa);const $a=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function La(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",$a.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class _a extends Pa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=v.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=v.get(),{OS:n,isHybridApp:o}=ja(t);return{"no-sno-apptype":n&&e&&o?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return La(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=v.get(),i=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${i.split("_").pop()||i}_${"article"===o?"article":"front"}`}}}const Na=new class extends _a{prepare(e){return qe(this,void 0,void 0,function*(){var t,n,o,i,r,a,d;const s=v.get(),l=null!==(o=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},c=null!==(a=null===(r=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new Aa;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Mt(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(dn()).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 g=p.build(),m=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:g,user:Object.assign(Object.assign({},an(h.NO)),m?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},qa=Na.prepare.bind(Na);class Ma extends Pa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=v.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,o=document.documentElement.clientHeight;return{width:e||n||0,height:t||o||0}}(),t={width:null!==(o=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==o?o:0,height:null!==(r=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==r?r:0};var n,o,i,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return qe(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}}=v.get(),{appMode:t,mobileOS:n}=ja(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=v.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===o?"article":"front"}`}}}const Da=new class extends Ma{prepare(e){return qe(this,void 0,void 0,function*(){var t,n,o,i,r,a;const d=v.get(),s=null!==(o=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},l=null!==(a=null===(r=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},c=new Aa;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync(Mt(d,s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>qe(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),c.add(this.getSupplyTypeKeywords()).add(dn()).addIf(l.appType,this.getAppTypeKeywords()).addIf(l.device,this.getDeviceKeywords()).addIf(l.screen,this.getScreenKeywords()).addIf(l.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(l.sectionPageType,this.getSectionPageTypeKeywords()).addIf(l.hasContext,this.getHasContextKeywords(e.keywords)).addIf(l.hasPlusMembership,{"se-generic-has_plus":"plus"===Ve("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const u=c.build(),p=!1!==s.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:u,user:Object.assign(Object.assign({},an(h.SE)),p?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Ba=Da.prepare.bind(Da),Fa="viewable",Ra="adClick";var Ua=e=>(t,n,o)=>{const{video:i,img:r,url:a}=t,{publisher:d,productTag:s}=n,{pluginsNames:l,videoLoop:c}=o||{};if(!(null==i?void 0:i.content))return null;const u=Math.ceil(1e5*Math.random()),p=r||"https://custom.inventory.schibsted.io/1x1-00000000.png",v=`ad-player-${u}`,g=Va(i.content,a),h=za({id:u,nodeId:v,poster:p,tagURL:g,publisher:d,productTag:s,videoLoop:c});return Ha({playerConfig:h,clickUrl:a,pluginsNames:l}),`${e(t,n,v)}`};const Va=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},za=({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},po(e)?e:{}),{provider:Object.assign(Object.assign({},po(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}),Ha=e=>qe(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:o}=e,{repeat:i}=t,r=yield ro(t);so(n),r.once("assetReady",()=>{io(r,n)}),r.on(Fa,e=>{const{viewable:t}=e;t?r.play():r.pause()}),r.on(Ra,()=>{window.open(o,"_blank")}),i&&r.on("pause",()=>{r.play()})}),Wa=({containerId:e,url:t,body:n,title:o,logo:i,isContentVideoAd:r=!1,imgWidth:a})=>{const d=`\n <div class="ad-header">\n <span>ANNONSØRINNHOLD</span>\n ${i?`<img alt="" aria-hidden="true" class="ad-logo" src="${i}" />`:""}\n </div>\n `,s=`<div class="ad-text">${o}</div>`;return`\n <div id="${e}" class="advertory-godt-ad-content" ${a?`style="max-width: ${a}px"`:""}>\n <div class="ad-info" id="${e}-button"></div>\n ${r?`\n ${d}\n ${n}\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${s}\n </a>\n `:`\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${d}\n ${n}\n ${s}\n </a>\n `}\n </div>\n `},Ka=["IntegrationMenu"],Ga=({containerId:e},t,n)=>` <div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <div class="ad-video-wrapper">\n <div id="${n}"></div>\n </div>\n <span class="ad-label">${$n.no.adText}</span>\n </div>`;On('@import"https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap";.advertory-shared-ad-native-content-display-basic{width:100%;font-family:Roboto,sans-serif;color:#6d747e;text-align:left;background:#fff;position:relative;margin:0 auto;display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic *{line-height:normal}.advertory-shared-ad-native-content-display-basic .ad-info{top:0;right:8px;position:absolute}.advertory-shared-ad-native-content-display-basic .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic .ad-link{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-link:hover{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-header{padding:5px 16px;background-color:#ffcd00;font-size:12px;text-transform:uppercase;color:#495057;font-weight:600}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper{display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{position:relative;padding-bottom:40%}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{display:none}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper{position:absolute;height:100%;width:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper .ad-large-image{object-fit:cover;min-width:100%;height:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content{box-sizing:border-box;display:flex;background-color:#fffae6}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container{flex-grow:1;padding:16px}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:20px;color:#212529;font-weight:600;margin-bottom:16px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:22px}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-sponsor{font-size:11px;color:gray;font-weight:600;text-transform:uppercase}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:none;max-width:175px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:block}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover;max-width:100%}.advertory-shared-ad-native-content-display-basic.article .ad-info{top:0;right:0;position:absolute;border-bottom-left-radius:50%;background:hsla(0,0%,100%,.6)}.advertory-shared-ad-native-content-display-basic.article .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{display:block}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container{padding:8px 16px;border-left:4px solid #ffcd00}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{display:flex;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper .ad-header{padding:2px 4px;font-size:11px}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:15px;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:18px;margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:16px 8px 16px 0}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:0}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:contain}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover}}'),On('.advertory-abo-ad-native-sponsorstripe{position:absolute;top:0;left:0;width:100%;height:1px;background:inherit;padding:0;margin:0;border:none;text-align:left}.advertory-abo-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:980px;height:30px;padding:5px 15px;margin:auto;font-family:"Helvetica Neue",Arial,Roboto,sans-serif}.advertory-abo-ad-native-sponsorstripe .ad-logo{flex:0;height:20px;max-width:35%;max-height:inherit}.advertory-abo-ad-native-sponsorstripe .ad-title{margin-right:10px;padding-left:34px;font-size:13px;color:#fff}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper{display:grid;position:absolute;place-content:center;height:30px;min-width:30px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{display:inline-block;height:20px;width:20px;position:relative;border:solid 1px #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{content:"i";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:13px}.advertory-abo-ad-native-sponsorstripe .ad-description{font-size:13px;color:#fff;position:absolute;top:0;max-width:980px;min-height:30px;padding:15px 35px 15px 15px;margin-left:-15px;background-color:rgba(0,0,0,.9)}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper{position:absolute;top:15px;right:15px;place-content:center;height:16px;min-width:16px}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button{display:inline-block;height:16px;width:16px;position:relative;border:1px solid #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button:before{content:"✕";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:10px;font-weight:bold}.advertory-abo-ad-native-sponsorstripe .ad-description .ad-description-readmore{color:#c7ecff}.advertory-abo-ad-native-sponsorstripe .ad-description.hide{display:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-sponsorstripe .ad-wrapper{height:50px}.advertory-abo-ad-native-sponsorstripe .ad-wrapper .ad-description{min-height:50px}.advertory-abo-ad-native-sponsorstripe .ad-logo{height:40px}.advertory-abo-ad-native-sponsorstripe .ad-title{font-size:20px;padding-left:40px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{height:30px;width:30px;border-width:2px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{font-size:20px}}');const Ja={NATIVE_TEMPLATE:({containerId:e,url:t,sponsoredBy:n,title:o,img:i,adText:r})=>(Promise.resolve().then(function(){return ms}),`<article class="advertory-no-ad-native-default">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_self">\n <div class="ad-content">\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${i}" />\n </div>\n <div class="ad-text-container">\n <div class="ad-sponsor">\n <span class="ad-label">${r}</span> ${n}\n </div>\n <div class="ad-title">${o}</div>\n </div>\n </div>\n </a>\n </article>`)},Xa={default:Ja.NATIVE_TEMPLATE,content:({containerId:e,url:t,title:n,img:o,imgWidth:i,imgHeight:r,logo:a,imgAltText:d})=>{const s=wt(i,r);return Wa({containerId:e,url:t,title:n,logo:a,imgWidth:i,body:`\n<div class="ad-image-wrapper" ${s?`style="padding-bottom: ${100*s}%"`:""}>\n <img alt="${d}" class="ad-image" src="${o}" />\n</div>`})},contentVideo:(e,t)=>Ua(({containerId:e,url:t,title:n,logo:o},i,r)=>Wa({containerId:e,url:t,title:n,isContentVideoAd:!0,logo:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),nativeVideo:(e,t)=>Ua(({containerId:e,url:t,sponsoredBy:n,title:o},i,r)=>(({containerId:e,url:t,sponsoredBy:n,body:o,title:i})=>`\n<div id="${e}" class="advertory-godt-ad-native">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <div class="ad-header">${$n.no.adFrom} ${n}</div>\n ${o}\n <div class="ad-text">${i}</div>\n </a>\n</div>`)({containerId:e,url:t,sponsoredBy:n,title:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),weeklyMenuVideo:(e,t)=>Ua(Ga)(e,t,{videoLoop:true,pluginsNames:Ka}),weeklyMenuStripe:({title:e,logo:t})=>`<div class="advertory-godt-ad-weekly-menu-stripe">\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').nextElementSibling;\n\n if (disclaimer.style.display === 'none') {\n disclaimer.style.display = 'block';\n } else {\n disclaimer.style.display = 'none';\n }\n } catch (error) {}\n })(arguments[0]);return false;"\n >\n <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M14.25 16.5h-.75A1.5 1.5 0 0 1 12 15v-3.75a.75.75 0 0 0-.75-.75h-.75M11.625 6.75a.375.375 0 1 0 0 .75.375.375 0 0 0 0-.75v0"/><path clip-rule="evenodd" d="M12 23.25c6.213 0 11.25-5.037 11.25-11.25S18.213.75 12 .75.75 5.787.75 12 5.787 23.25 12 23.25Z" fill-rule="evenodd"/></g></svg>\n </button>\n <div class="disclaimer" style="display: none">\n Annonsøren som presenterer ukemenyen har betalt for profilering av logoen på VG-forsiden og Godt.no, og annonsen mellom oppskriftene.\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les&nbsp;mer\n </a>\n </div>\n </div>`,weeklyMenu:({containerId:e,url:t,img:n,imgAltText:o})=>`<div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <img alt="${o}" class="ad-image" src="${n}" />\n <span class="ad-label">${$n.no.adText}</span>\n </a>\n</div>`,sponsorstripe:({title:e,logo:t})=>`\n <div class="advertory-godt-sponsorstripe">\n <div class="ad-container">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.add('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path fill="currentColor" d="M9 9.327a1 1 0 1 1 2 0v6a1 1 0 1 1-2 0zM10 4.399a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 .348c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10m-8 10a8 8 0 1 0 16 0 8 8 0 0 0-16 0" clip-rule="evenodd"/></svg>\n </button>\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n </div>\n <div class="disclaimer">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.remove('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 20.07a9.375 9.375 0 1 0 0-18.75 9.375 9.375 0 1 0 0 18.75" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7.25 14.444 7.5-7.5M14.75 14.444l-7.5-7.5"/></svg>\n </button>\n <div>\n Annonsøren som presenterer denne saken har betalt for profilering av fremhevet annonsemateriell i artikler og innhold på Godt.no\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les&nbsp;mer\n </a>\n </div>\n </div>\n </div>`},Qa={displayTemplates:{default:Xa.default,content:Xa.content,"ukesmeny-stripe":Xa.weeklyMenuStripe,ukesmeny:Xa.weeklyMenu,sponsorstripe:Xa.sponsorstripe},videoTemplates:{default:Xa.nativeVideo,content:Xa.contentVideo,menu:Xa.weeklyMenuVideo}},Ya={prepareTag:e=>{var t;const{keywords:n,targetId:o,invCode:i,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=v.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=v.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(i,l),u=(e=>{const{pageContext:{countryCode:t}}=v.get(),{keywords:n,dynamicSizeWidthCheck:o}=e,i=`${m(t)}-adformat`,r=n?n[i]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in we)||window.innerWidth>=we[e]);return{[i]:o?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=v.get(),n=`${m(t)}-targetid`;return e?{[n]:[e]}:{}})(o),g=(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),h=Ea(),y=(e=>Ta(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),f=((e,t)=>Ta(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),w=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,b=(new Aa).add(null!=n?n:{}).add(u).add(p).add(null!=g?g:{}).add(y).add(h).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${m(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:w,invCode:c,keywords:b,rendererOptions:f,globalPlacementId:a||c})},preparePageOptions:e=>qe(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=v.get();return yield t===h.SE?Ba(e):qa(e)}),siteEvents:xt,initNativeAd:(e,t)=>{var n,o,i;if(null===(o=null===(n=null==t?void 0:t.editory)||void 0===n?void 0:n.adNativeBuilder)||void 0===o?void 0:o.enabled)return void Jr(e,t);const{targetId:r}=e;if(!document.querySelector(`#${r}`))return;const{pageType:a=oo.FRONT,deviceType:d}=null!==(i=null==t?void 0:t.pageContext)&&void 0!==i?i:{},{nativeTrackingConfig:s,appearanceConfig:l}=null!=t?t:{},c={language:h.NO,publisher:It.GODT,deviceType:d,pageType:a,nativeTrackingConfig:s,appearanceConfig:l};Ia(e,c,Qa)}},Za=((e,t)=>({init:n=>wa(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:ya,getVideoPPIDs:cn,createInitNativeAd:Ca,getVideoAdsConfig:Qi}))(Ya,Ct),ed=On("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var td=Object.freeze({__proto__:null,default:ed});On('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const nd={Blink:"Blink"},od=new Map,id=e=>{var t;if(!od.has(e)){const t=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[t,n]of Object.entries(nd)){const o=e[t];null!=o&&(window[n]=o)}})(e)).catch(t=>{throw od.delete(e),t});od.set(e,t)}return null!==(t=od.get(e))&&void 0!==t?t:Promise.resolve()},rd="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",ad=(e,t)=>{const{siteSpecificConfig:{publisherClassName:n}={},pageContext:{pageType:o}}=v.get(),i=document.querySelector(`#${e}`);if(!i)return;if(i.classList.add("disable-cogwheel"),!n)return;ir(n,i,rr,null!=t?t:o);vt({preferredTestIdData:{targetId:e,testId:"finn"}})},dd=e=>{const{pageContext:{publisher:t=""}}=v.get(),n=document.querySelector(`#${e}`);if(!n)return;const o=`-${t}`;n.classList.remove(`advertory${o}-finn-blink`),n.classList.remove(`advertory${o}-finn-blink-wrapper`)};var sd=Object.freeze({__proto__:null,displaySpecialFormatsForFinnFallback:e=>{const{fullscreenScroll:t}=v.get(),{initNativeAd:n}=v.getHandlers();be(e)&&Mn(e,t),ke(e)&&(null==n||n(e,v.get()))},finnBlinkLoaded:ad,xandrAdLoaded:dd});const ld=e=>{var t,n;const o=document.querySelector(`[id^="${e}"]`);return null!==(n=null===(t=null==o?void 0:o.dataset)||void 0===t?void 0:t.finnBlinkId)&&void 0!==n?n:e},cd=(e,t)=>{const{finnBlink:{enabled:n}={}}=v.get(),o=(null==t?void 0:t.enabled)||(e=>{var t;const n=document.querySelector(`[id^="${e}"]`);return!!(null===(t=null==n?void 0:n.dataset)||void 0===t?void 0:t.noBidAd)})(e);if(!o||!n)return null;const{height:i,requireImage:r,position:a,offset:d}=(null==t?void 0:t.sdkPayload)||{};return{selector:`#${ld(e)}`,enabled:o,position:null!=a?a:e,height:null!=i?i:100,offset:null!=d?d:200,requireImage:r,advertoryTheme:null==t?void 0:t.advertoryTheme}},ud=(e,t,n)=>qe(void 0,void 0,void 0,function*(){const{placements:o,pageContext:{deviceType:i},appearanceConfig:r}=v.get();s(`rendering finn blink ad for ${e}`);const a=x(e),d=o[i].find(e=>e.targetId===a),l=cd(e,null==d?void 0:d.finnBlink);if(!(null==l?void 0:l.enabled))return s(`Finn blink is not enabled on placement: ${e}`),n&&n(e),void dd(e);if((e=>{var t;const n=ld(e),o=document.querySelector(`[id^="${n}"]`);return!!(null===(t=null==o?void 0:o.classList)||void 0===t?void 0:t.contains("finn"))})(e))return void s(`Finn blink already loaded ${e}`);const{publisher:c,countryCode:u,finnBlink:p}=t,{sdkPayload:{channel:g}={}}=null!=p?p:{},h=null!=g?g:`${c}.${u}`,m="dark"===(null==r?void 0:r.theme)?"dark":"light";try{const e=yield qe(void 0,void 0,void 0,function*(){const{ppid1:e}=on.getPPIDs();return e});yield(y=Object.assign(Object.assign({},l),{channel:h,userId:e,theme:m}),qe(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=y,n=Ne(y,["userId","theme"]),o=window[nd.Blink];if(!o)return;const i=new o({remote:"https://www.finn.no/distribution-front/external/carousel",userId:e,theme:t});yield i.inject(Object.assign({},n))})),ad(l.selector.replace("#",""),l.advertoryTheme)}catch(t){s(`Finn blink error ${t}`),n&&n(e),!n&&V(e),dd(e)}var y}),pd=()=>qe(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=v.get();return!!(yield Ue(e,t,n,"finn-blink"))||(s("Skip loading finn blink ad due to missing TCF consent."),!1)}),vd=(e,t)=>{var n;(s(`Appending ${t.id} after ${e.id}`),e.parentElement&&(n=e.parentElement,!Array.from(n.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",t)):s(`Cannot perform afterend on: ${e.id}`)},gd=e=>document.querySelector(`#${e}`);var hd=Object.freeze({__proto__:null,handleFinnBlinkOnlyPlacements:e=>qe(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:n}}=v.get(),o=null==t?void 0:t.defaultThreshold[n];for(const t of e){const{requestThreshold:e,targetId:n}=t,i=gd(n);i&&(yield qo(i,null!=e?e:o))}}),loadFinnBlinkAd:(e,t,n,o)=>qe(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=v.get();if(s(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield pd())||i)return n&&n(e),dd(e),void(!n&&V(e));try{yield id(rd)}catch(e){console.error(e)}yield ud(e,t,n),o&&o()}),replaceAdsWithFinnBlink:(e,t)=>qe(void 0,void 0,void 0,function*(){var n,o;if(!t)return;const{replacementConfig:i}=t,r=null===(n=null==i?void 0:i.adsToReplace)||void 0===n?void 0:n[e],a=null===(o=null==i?void 0:i.sizes)||void 0===o?void 0:o[e];bo()&&r&&a?(yield pd())&&(yield id(rd),r.forEach(([e,t])=>{const n=document.querySelector(`[id^="${e}"]`);if(!n)return;const o=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=v.get(),n=document.createElement("div"),o=document.createElement("div");return o.id=e,n.appendChild(o),ir(t,o,rr),s(`Creating blink container for: ${e}`),n})(t);(e=>{s(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(n),vd(n,o),n.dataset.finnBlinkId=t,No().withFullAdsChain(e)})):s(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)})});const md=1e4,yd=e=>e.some(e=>e.some(e=>!!e&&Jo(e,0)));let fd;var wd=Object.freeze({__proto__:null,initWidescreenSwitching:()=>{const{widescreenSwitching:e}=v.get(),{enabled:t,options:{rotationInterval:n=md,widescreenIdPrefix:o}={}}=null!=e?e:{};if(!t)return;const i=((e="widescreen")=>{const{pageSectionsSelectors:{right:t}={}}=v.get();return t?Array.from(document.querySelectorAll(t)).map(t=>Array.from(t.querySelectorAll(`div[id^="${e}"]`))):[]})(o);let r=0,a=Date.now(),d=yd(i);if(!i.length)return;fd&&window.removeEventListener("scroll",fd);const s=(e,t,n)=>{e.forEach(e=>{e&&e.style.setProperty(t,n)})},l=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(i);const c=((e,t)=>{let n=null;return(...o)=>{null===n&&(e(...o),n=setTimeout(()=>{n=null},t))}})(()=>{d||(d=yd(i)||d,a=Date.now());Date.now()-a>=n&&((()=>{const e=l(r),t=i.map(e=>e[r]),n=i.map(t=>t[e]);s(t,"opacity","0"),setTimeout(()=>{s(t,"display","none"),s(n,"opacity","0"),s(n,"display","block"),setTimeout(()=>{s(n,"opacity","1")},450)},450)})(),r=l(r),a=Date.now())},1e3);fd=c,window.addEventListener("scroll",c)}});const bd="#fff",kd="#0098da",xd=(e,t=!0)=>{(e===We||e===Ke)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},Id=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},Cd=e=>{document.body.style.overflow=e?"initial":"hidden"},Ed=e=>{const t=Ad(e),n=Td(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),Cd(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",n)},Td=e=>{const t=()=>Ed(e);return window.addEventListener("advertory:closeTakeover",t),Id(),t},Ad=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&Ed(e)};return Id(),window.addEventListener("keydown",t),t},Sd=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(Ad(e),Td(e),Id(),t.addEventListener("click",()=>{Ed(e)}),Cd(!1))},Pd=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),Td(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},Od=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>Ed(e))})(e)},jd=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=v.get(),n=e.querySelectorAll(".advertory-splash-navbar-wrapper"),o=document.querySelector(".advertory-takeover-label");Array.from(n).forEach(e=>e.style.display="flex"),t&&o&&(o.style.display="flex",o.innerText=$n.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},$d=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=$n.no.adText,n.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},Ld=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=$n.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},_d=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=$n.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},Nd=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var n;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(n=Array.from(e.target.classList))&&void 0!==n?n:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},qd=(e,t)=>{let n=e;return e.includes("529299503")&&(n=(e=>{const t=document.createElement("script");return t.textContent=`(${ct})()`,e+t.outerHTML})(e)),n};var Md=Object.freeze({__proto__:null,createTakeoverAd:e=>qe(void 0,void 0,void 0,function*(){const{takeover:t}=v.get(),{targetId:n}=e,o=document.querySelector(`#${n}`),i=document.querySelector(".advertory-takeover-wrapper");if(!o||!i||!t)return;const r=rt(e),a=i.offsetHeight,d=window.scrollY>a;i.style.display="block",!d&&xd(r,!1),((e,t)=>{({[We]:Ld,[He]:jd,[Ke]:$d,[Ge]:_d})[t](e)})(i,r),Nd(),((e,t)=>{({[We]:Pd,[Ke]:Pd,[He]:Sd,[Ge]:Od})[t](e)})(i,r),((e,t,n)=>{if(!n)return;({[We]:()=>{const{buttonLabel:o}=st(n,t);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(n.innerText=null!=o?o:"")})},[He]:()=>{const{themeColors:o,logotype:i,buttonLabel:r,showArrowIcon:a}=st(n,t);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const n=e.querySelector(`${t}`);if(n){if("#advertory-splash-close-label"===t&&(n.innerText=null!=r?r:""),".advertory-splash-close"===t&&a){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),n.appendChild(e)}if("#advertory-splash-logotype"===t&&i&&(n.setAttribute("src",i.url),n.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===t&&o){const{backgroundColor:e,color:t}=o;n.style.setProperty("background-color",null!=e?e:bd,"important"),n.style.color=null!=t?t:kd}}})},[Ke]:()=>{const{buttonLabel:o,showArrowIcon:i,showCloseButton:r=!0}=st(n,t);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(".advertory-topscroller-close"!==t||r||(n.style.display="none"),"#advertory-topscroller-scroll-image"!==t||i||(n.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(n.innerText=null!=o?o:""))})},[Ge]:()=>{}})[t]()})(i,r,t),yield at(),!d&&xd(r,!0),lt(e,r)}),modifyTakeoverAdContent:e=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=yn(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=yn(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,qd(t))},modifyTakeoverIframe:(e,t)=>{var n;const o="100%",i="100%";e.resizeAd(t,[o,i]);const r=null===(n=document.querySelector(`#div_utif_${t}`))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(r),t=e.width,n=e.height;t===o&&n===i||(r.style.width=o,r.style.height=i)}}).observe(r,{attributes:!0,attributeFilter:["style"]})}});const Dd=(e,t)=>{t.left&&(e.style.left=t.left),t.marginLeft&&(e.style.marginLeft=t.marginLeft)},Bd=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:r,fullWidthFormatClassName:a}={},fullWidth:d,pageContext:{deviceType:s}}=v.get();if(!i)return null;const l=i.parentElement;if(i.style.width=mt(s)?"100vw":"100%",i.style.position="relative",l&&(l.style.width=mt(s)?"100vw":"100%",l.style.position="relative"),r&&a){const e=`advertory-${r}-${a}`;i.classList.add(`${e}__${t}`),null==l||l.classList.add(`${e}-wrapper__${t}`)}const c=null===(o=null===(n=null==d?void 0:d.options)||void 0===n?void 0:n.styles)||void 0===o?void 0:o[s],u=(null==d?void 0:d.enabled)&&c;return!u&&l&&mt(s)&&(l.style.left="50%",l.style.marginLeft="-50vw"),u&&c.adContainer&&Dd(i,c.adContainer),u&&c.adContainerWrapper&&l&&Dd(l,c.adContainerWrapper),i},Fd=(e,t,n,o)=>{const i=Bd(e,o);if(!i)return;const r=i.querySelector("iframe"),a=null==r?void 0:r.parentElement;if(!r||!a)return;const d=i.offsetWidth,s=d/e.width;a.style.transform=`scale(${s})`,a.style.transformOrigin="left top";const l=Math.round(d/t*n);i.style.height=`${l}px`};var Rd=Object.freeze({__proto__:null,applyFullsquareFormat:e=>{Fd(e,1080,1080,"fullsquare-ad")},applyFullwidthFormat:e=>{const t=Bd(e,"fullwidth-ad");if(!t)return;const n=t.querySelector("iframe");if(!n)return;const{deviceType:o}=v.get().pageContext;n.style.width=mt(o)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=mt(o)?"100vw":"100%")},applyNinesixteenFormat:e=>{Fd(e,1080,1920,"ninesixteen-ad")}});const Ud=e=>e===h.NO?"schibsted":"schibstedse";var Vd=Object.freeze({__proto__:null,getCampaign:Ud,loadNorstat:()=>qe(void 0,void 0,void 0,function*(){const{norstat:{enabled:e}={},pageContext:{countryCode:t,isMobileApp:n},tcf:o}=v.get(),i=yield Ue(o,n,t,"norstat");if(!e||n||!i)return;const r=(e=>{const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i}=on.getPPIDs(),r=(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`})(t);((e,t,...n)=>{qe(void 0,[e,t,...n],void 0,function*(e,t,n=!0){if(document.getElementById(t))return;const o=document.createElement("img");o.src=e,o.id=null!=t?t:"",n&&(o.style.display="none"),document.body.appendChild(o)})})(`https://sch-map.norstatsurveys.com/api/nids/${Ud(t)}/map/${r}`,"norstat")})});const zd=".advertory-right-column-track",Hd="--advertory-right-column-track-height",Wd=e=>e.getBoundingClientRect().top+window.scrollY,Kd=(e,t)=>`${e}-${t}`,Gd=(e,t,n)=>{var o;const i=Array.from(null!==(o=e.querySelectorAll(t))&&void 0!==o?o:[]),r=(e=>e.map(e=>{var t;return null===(t=document.querySelector(`[id^="${e}"]`))||void 0===t?void 0:t.parentElement}).map((e,t)=>({point:e,originalIndex:t})).filter(e=>Boolean(e.point)))(n);if(0===r.length)return;const a=Wd(e);r.forEach(({point:e,originalIndex:t})=>{((e,t,n)=>{const o=Wd(e),i=Kd(Hd,t),r=o-n,a=Kd("--advertory-right-column-split-point-height",t),d=ta(e);na({[i]:ea(r),[a]:ea(d)})})(e,t+1,a),(e=>{const t=null==e?void 0:e.id;if(!t)return;const n=Kd("--advertory-right-column-ad-height",t),o=ta(e);na({[n]:ea(o)})})(i[t])});((e,t)=>{const n=Wd(e)-t;na({[Hd]:ea(n)})})(r[Math.min(i.length,r.length-1)].point,a)};let Jd=!1;var Xd=Object.freeze({__proto__:null,initRightColumnSplit:e=>{if(!(null==e?void 0:e.enabled)||Jd)return;const{splitPointIDs:t,adSelector:n,trackSelector:o=zd}=e,i=document.querySelector(o);if(!i)return;Jd=!0;const r=()=>{Gd(i,n,t)};r(),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),window.addEventListener("load",r),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(r)});new ResizeObserver(r).observe(i)}});class Qd{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:o,pathname:i}=new URL(n);if(!o.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const r=i.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class Yd{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class Zd{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:o}=this.parseKilkayaData(e);return{id:o,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return qe(this,void 0,void 0,function*(){var t,n,o,i,r,a,d,s,l;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(o=this.pulse)||void 0===o?void 0:o.trackLegacyViewUIElement)||void 0===i||i.call(o,u):(null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)?null===(d=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===d||d.call(a,u):null===(l=null===(s=this.pulse)||void 0===s?void 0:s.trackElementView)||void 0===l||l.call(s,u)})}trackContentClick(e){return qe(this,void 0,void 0,function*(){var t,n,o,i,r,a;if(!this.pulse)return;const d=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,d):this.pulse.trackClickUIElement?null===(i=(o=this.pulse).trackClickUIElement)||void 0===i||i.call(o,d):null===(a=(r=this.pulse).trackElementClick)||void 0===a||a.call(r,d)})}}class es extends Zd{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,o,i,r,a;const{clientName:d,creativeId:s,itemId:l,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(o=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===o?void 0:o.call(n))&&void 0!==i?i:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:d,creativeId:null!=s?s:l},page:{"@id":null!=p?p:c,"@type":u,url:location.origin},tags:null===(a=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getTags)||void 0===a?void 0:a.call(r,e)}}getEventTarget(e){const{link:t,itemId:n,title:o}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=o?o:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const ts="[data-k5a-teaser-analytics]",ns=(e,t,n)=>{const o=document.querySelectorAll("k5a-stream");if(!o.length)return;const i=new es(e,t,n),r=new WeakMap,a=e=>{const t=r.get(e);t&&(t.disconnect(),r.delete(e))},d=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,o=n.querySelector(ts);Boolean(null==o?void 0:o.dataset.k5aTeaserAnalytics)?(i.trackContentView(n),t.unobserve(e.target),a(n)):((e,t)=>{if(r.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(ts);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(i.trackContentView(e),t.unobserve(e),a(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),r.set(e,n)})(n,t)})},{threshold:.5});o.forEach(e=>{d.observe(e),e.addEventListener("click",()=>i.trackContentClick(e))})},os=/^glci_/,is="gender_",rs="geo_",as="male",ds="female",ss=()=>qe(void 0,void 0,void 0,function*(){try{const t=yield(e=500,qe(void 0,void 0,void 0,function*(){return Promise.race([mo(),new Promise(t=>setTimeout(()=>t(void 0),e))])})),n=new yo(t),o=yield n.getIdentityUser(),{gender:i}=null!=o?o:{};return i===as||i===ds?`${is}${i}`:void 0}catch(e){return}var e}),ls=()=>qe(void 0,void 0,void 0,function*(){const e=[],t=yield ss(),n=(()=>{const e=Ft().map(e=>`${rs}${e.replace(os,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class cs{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===oo.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:o}=new URL(n),i=o.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class us{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class ps{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class vs{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class gs{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const o={[It.VG]:new Qd,[It.E24]:new cs,"no-aftenposten":new us,[It.BT]:new ps,"no-bergenstidende":new ps,[It.SA]:new vs,"no-stavangeraftenblad":new vs}[n]||new Yd;ns(e.instance,o,t)}injectKilkayaMeta(e){return qe(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield ls();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(s(`Kilkaya event for slot: ${n}`),!n)return void s("Kilkaya slot empty, Xandr backfill won't be loaded");const o=n.parentElement;o?(s(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(o)):s("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";z(o)}loadKilkayaScript(e){return qe(this,void 0,void 0,function*(){yield un(e)})}run(e){return qe(this,void 0,void 0,function*(){var t,n;const{tcf:o,pageContext:{isMobileApp:i,countryCode:r},kilkaya:a}=e;if(!(null==a?void 0:a.enabled))return;const d=yield Ue(o,i,r,"kilkaya");d&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(d),yield this.loadKilkayaScript(null!==(n=null===(t=a.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(e))})}}var hs=Object.freeze({__proto__:null,Kilkaya:({placementName:e,slotTag:t,fallbackTargetId:o,children:i,pulseData:r,htmlAttributes:a})=>{const d=(e,t)=>{const n={};if(!e)return n;for(const[o,i]of Object.entries(e)){n[t?`${t}-${o}`:o]=String(i)}return n},s=d(r,"data-pulse"),l=d(a,"data");return n.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,l,{children:[n.jsx("div",{className:"inscreen-target"}),n.jsx("k5a-stream",{name:e,"slot-tag":t}),n.jsx("div",{className:"container"}),n.jsx("div",{className:"fallback","data-fallback-target-id":o,style:{display:"none"},children:i})]}))},runKilkaya:e=>qe(void 0,void 0,void 0,function*(){const t=new gs;yield t.run(e)})});On('.advertory-no-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#dfdfdf;font-family:"Inter",sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;font-size:14px}@media screen and (min-width: 768px){.advertory-no-ad-native-default{width:580px;height:400px}}.advertory-no-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-default .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-default .ad-content{display:block}.advertory-no-ad-native-default .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}.advertory-no-ad-native-default .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-default .ad-text-container{background:#f5faff;overflow:auto;padding:8px}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-default .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}.advertory-vg-native-ad__front .advertory-no-ad-native-default{width:100%;height:auto}.advertory-aftenposten-native-ad-wrapper__front{justify-content:center}.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(-40px + 4rem)}@media screen and (min-width: 768px){.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(12px + .75rem)}}');var ms=Object.freeze({__proto__:null});module.exports=Za;
1
+ "use strict";var e,t,n=require("react/jsx-runtime");function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i=function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function a(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 d(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=i(e[t],n)}),a(t).forEach(function(r){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(d(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))}),o}function l(e,t,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||n,o.cloneUnlessOtherwiseSpecified=i;var a=Array.isArray(t);return a===Array.isArray(e)?a?o.arrayMerge(e,t,o):s(e,t,o):i(t,o)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e=l}(),r=o(i);const a=["placements","takeover","refreshConfig","editory"],d={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},s=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},l=(e,t)=>{console.warn("[Advertory WARN]: ",e)},c=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||l("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||l("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||l("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||l("pageContext.deviceType is required."),n||l("pageOptions is required."),o||l("placements is required."),(null==i?void 0:i.defaultThreshold)||l("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,i;const r=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(o=e.widescreenSwitching)||void 0===o?void 0:o.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&l(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},u=6;class p{set(e){c(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 a){const o=e[n];void 0!==o&&(t[n]=o)}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=r(p.DEFAULT_SITE_HANDLERS,e)}}p.DEFAULT_SITE_HANDLERS={siteEvents:d,initNativeAd:()=>{}};const v=new p,g=v.modifyConfigProperties.bind(v),h={NO:"no",SE:"se"},m=e=>e===h.NO?"no-sno":"se-generic",y=/_\d+$/,f=e=>e.replace(y,"");let w="";const b=new Map,k=e=>{const{pageSetup:{tag:t}={}}=v.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(w!==window.location.pathname&&(b.clear(),w=window.location.pathname),e.map(e=>{var t;const n=f(e.invCode),o=null!==(t=b.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=v.get();return`${e}-${t}`})()}-count`]=o,b.set(n,o+1),e})):e},x=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},I="0123456789abcdefghijklmnopqrstuvwxyz",C=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=I[Math.floor(36*Math.random())]}return t},E=e=>{window.apntag.anq.push(e)},T=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),A=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})}),S="advertory-wallpaper-background",P="advertory-with-horseshoe",O=()=>{const e=document.querySelector(`.${S}`);e&&e.remove()},j=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${S}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},$=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,L=e=>$.test(e),_=e=>e.startsWith("wallpaper:color:"),N=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundImage=`url(${e})`)},q=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundColor=e)};var M=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(P),n.classList.add(P))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{O();const e=document.createElement("div");e.classList.add(S),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--advertory-header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(j(n),window.addEventListener("scroll",()=>j(n)))})(n),e()},isShortWallpaperColorMessage:_,isShortWallpaperUrlMessage:L,removeWallpaperBackground:O,setWallpaperBackgroundColor:q,setWallpaperBackgroundImage:N});const D=e=>new URLSearchParams(window.location.search).get(e),B="takeover",F="native_override_desc2",R=e=>window.location.href.includes(e),U=()=>null!==D("disable_prebid"),z=e=>{if("0"===D("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")&&O())},V=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"))};class H{initialize(){this.DATA=Object.assign({},H.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)}}H.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const W=new H,K=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,o=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${o}px`)},G=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:o}=(e=>{const t=W.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=o},J=()=>{O();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{z(e.id),G(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),o=null==t?void 0:t.getAttribute("data-probable-width");n&&o&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",o+"px"))})(e.id),e.innerHTML="",e.id=x(e.id)}),E(()=>window.apntag.clearRequest())},X="mobile",Q="tablet",Y="desktop",Z="web_desktop",ee="web_phone",te="wde",ne="wph",oe="noGroupedPlacements",ie=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},re=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},ae=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:o,pageContext:{deviceType:i}}=v.get(),r=((e,t)=>{var n;const o=null!==(n=e[t])&&void 0!==n?n:[];return t===Q&&0===o.length?e[Y]:o})(n,i),a=r.filter(re),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=ie(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),r=(null==o?void 0:o.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,s=d.querySelectorAll(r),l=Array.from(s).filter(({id:e})=>e.match(t)).map((e,t)=>{var o;const i=de(e,t,n),r=i.finnBlink&&!i.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(o=i.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink),d=`${e.id}-${C(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),r&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&W.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},i),{targetId:d})});return k(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))})(s)},de=(e,t,n)=>{const o=n[t],i=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:r||i},se=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=v.get(),o=(null==t?void 0:t[n])||{},i=Object.values(o).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=x(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[o,i]of Object.entries(t))n[o]=e.filter(e=>i.includes(x(e.targetId)));return n})(e,o),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(x(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),r),{[oe]:s})},le="ABSOLUTE_FULLSCREEN",ce="ANY_FULLSCREEN",ue="NINESIXTEEN",pe="FULLWIDTH",ve="FULLSQUARE",ge="TAKEOVER",he="VELVET_TAKEOVER",me="WALLPAPER",ye="COLLAPSE",fe={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}]},we={wallpaper:1600,"l-format":1600},be=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&_e(e,ce)},ke=e=>{const{native:t}=e;return!!t},xe=e=>_e(e,pe),Ie=e=>{const{targetId:t}=e;return t.includes("takeover")||_e(e,ge)},Ce=e=>_e(e,ge),Ee=e=>_e(e,me),Te=e=>_e(e,ye),Ae=e=>e.targetId.includes("sponsorstripe"),Se=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Pe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Oe=e=>e.targetId.startsWith("midboard"),je=e=>e.targetId.includes("widescreen"),$e=e=>e.width>=1260&&e.width<=1280,Le=e=>e.width>=1600&&e.width<=1620,_e=(e,t)=>{const n=fe[t];if(!n)return!1;return!!n.find(t=>{var n,o;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(o=e.banner)||void 0===o?void 0:o.height)||e.height,a=t.width===i,d=!t.height||t.height===r;return a&&d})};function Ne(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function qe(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((o=o.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const Me=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 s("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const i=e=>{o||(s("Resolving advertising permission value obtained"),o=!0,t(e))},r=setTimeout(()=>{s("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{s("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);s("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),De="cmp:loaded";let Be="undefined"!=typeof window?window._tcf_:void 0,Fe=!1;const Re=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,r=D("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(s("TCF bypass param detected, returning consent: true"),!0):(s("TCF is not enabled, returning consent: true"),!0))(o,r))return!0;if(Fe)return null;if(!Be)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=Be.getConsentedToAllSync();return s(`TCF consented to all is: ${t}`),Be.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(s("Getting TCF consent manager..."),window._tcf_)return s("TCF consent manager is already available"),Be=window._tcf_,void e(Be);s("TCF consent manager is not available");const n=()=>{s("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(Be=window._tcf_,e(Be)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(De,n),Fe=!0,t(new Error("Timeout waiting for CMP to load"))},i);s("Listening for CMP loaded event..."),document.addEventListener(De,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>qe(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`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===h.SE,o=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===h.NO;if(t||o)return s("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Me(e);if(!(null==e?void 0:e.enabled))return!0;const r=a();return null!==r?r:yield new Promise((e,t)=>{try{if(!Be)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{s("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);Be.onTcfReady(()=>{s("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),Be.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},Ue=(e,t,n,...o)=>qe(void 0,[e,t,n,...o],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return s(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return s(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=Re(e,0,n);return(yield i())?(s(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(s(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),ze=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Ve=e=>qe(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e,{getConsentAsync:i}=Re(t,0,o);if(!(yield i()))return;const r=ze("_pulse2data");return r?r.split(",")[9]:void 0}),He="splash",We="welcomePage",Ke="topscroller",Ge="velvet",Je=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const o=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=o.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,i).toString()},Xe="takeover-displayed",Qe="takeover-visit-count",Ye=14400,Ze=()=>{const e=ze(Qe);return e?parseInt(e):0},et=()=>{const e=Ze(),{takeover:{options:{cookieCapTime:t=Ye}={}}={}}=v.get(),n=document.location.hostname;window.document.cookie=`${Qe}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},tt=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=v.get();return"0"!==D(B)&&("1"===D(B)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=v.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Xe;return"true"===ze(n)})())&&(!t||nt()))},nt=()=>{const e=Ze();return 0===e?(et(),!1):1===e},ot=(e,t)=>[[1,1],[1920,1080]].some(([n,o])=>n===e&&o===t),it=()=>{const{takeover:e}=v.get();return Boolean(null==e?void 0:e.topscroller)},rt=e=>{const{width:t,height:n}=e;return ot(t,n)?He:_e(e,he)?Ge:it()?Ke:We},at=()=>qe(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Xe,cookieCapTime:n=Ye}={}}={},pageContext:{isMobileApp:o,countryCode:i},tcf:r}=v.get(),a=yield Ue(r,o,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),dt=e=>{var t,n;const o=!!(null===(n=null===(t=v.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ie(e)&&o},st=(e,t)=>{var n;if(t===Ke){const{topscroller:t}=e;return null!=t?t:{}}if(t===He){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},lt=(e,t)=>{t!==He?(e=>{var t,n;const o=null===(t=v.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=v.get().takeover)||void 0===n?void 0:n.topscroller;if(!o||i)return;const r=document.querySelector(o),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&s&&d))return;const l=null==r?void 0:r.offsetHeight,c=Ce(e)?"60svh":`calc(100svh - ${l}px)`,u=Ce(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=v.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),o=document.querySelector(`#${e.targetId}`);if(!n||!o)return;const i=`calc(100svh - ${n.offsetHeight}px)`;o.style.setProperty("height",i,"important")})(e)},ct=Je([],()=>{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 ut=Object.freeze({__proto__:null,addTakeoverCookie:at,adjustTakeoverHeight:lt,canDisplayTakeover:tt,getProperWelcomePageConfig:st,getTakeoverVariant:rt,handleTakeoverCookieOnAdNotShown:e=>qe(void 0,void 0,void 0,function*(){dt(e)&&(yield at())}),incrementArticleVisitCount:et,isSplashVariant:ot,isTopscroller:it,scaleAd:ct,shouldAddTakeoverCookieForNotShownAd:dt});const pt={nativeAd:e=>ke(e)&&!Ae(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:xe,fullscreenScroll:be,topscroller:e=>Ie(e)&&it(),splash:e=>Ie(e)&&ot(e.width,e.height),welcomePage:Ie,wallpaper:Ee,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:$e,hFormat:Le,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Le(e)&&!$e(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ie(e),widescreen:je,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Ae,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Pe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Oe(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:Pe,midboard:Oe},vt=({adObj:e,preferredTestIdData:t})=>{var n,o;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const r=null===(o=document.querySelector(`#${i}`))||void 0===o?void 0:o.parentElement;if(!r)return;if(((e,t)=>{var n,o,i,r;const a=null===(r=null===(i=null===(o=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===o?void 0:o.tags)||void 0===i?void 0:i[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(i,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,o;for(const[i,r]of Object.entries(pt))if(r(e)){if("nativeAd"===i){const r="default";t.dataset.testid=`${i}-${null!==(o=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==o?o:r}`;break}t.dataset.testid=i;break}})(e,r)},gt=e=>{var t;return(null===(t=Object.entries(pt).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},ht=()=>{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"},mt=e=>e===X,yt=(e,t)=>{const n=e.width,o=(null!=t?t:window.screen.width)/n;return o<1?o:1},ft=(e,t=window.screen.width,n,o)=>{const i=yt(e,t);if(n&&n(e,i),o)return void o(e);const r=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);r&&(r.style.transform=`scale(${i})`,r.style.transformOrigin="left top")},wt=(e,t)=>{if(e&&t)return t/e},bt=new Map;bt.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),bt.set("panorama",{scale:.79,transformOrigin:"center center"}),bt.set("outstream",{scale:.79,transformOrigin:"center center"}),bt.set("integration",{scale:.79,transformOrigin:"center center"}),bt.set("toppanorama",{scale:.8,transformOrigin:"left center"});var kt=Object.freeze({__proto__:null,calculateScaleFactor:yt,getAspectRatio:wt,scaleAd:ft,scaleAdIpadAirPortrait:e=>{if(!((null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.clientWidth)>767&&(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.clientWidth)<=853))return;var t,n;const o=gt(e),i=bt.get(o),r=document.querySelector(`#${e.targetId}`);if(!r||!i)return;if(r.style.transformOrigin=i.transformOrigin,r.style.transform=`scale(${i.scale})`,!(null==i?void 0:i.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${e.targetId}"]`),d=null==r?void 0:r.offsetWidth;a&&"number"==typeof d&&!isNaN(d)&&a.style.setProperty("right",String(-1*d*.2)+"px")},scaleAds:e=>{var t,n,o,i,r,a;const{adScaleConfig:d,pageContext:{deviceType:s}}=v.get();if(!(null==d?void 0:d.enabled))return;if(_e(e,ce))return;const l=null!==(t=d.adsToBeScaled[s])&&void 0!==t?t:[],c=ie(e.targetId.split("-")[0]);if(!l.includes(c))return;const u=null!==(o=null===(n=d.offset)||void 0===n?void 0:n[c])&&void 0!==o?o:0,p=document.getElementById(e.targetId),g=null!==(i=null==p?void 0:p.offsetWidth)&&void 0!==i?i:window.screen.width,h=null!==(a=null===(r=null==p?void 0:p.parentElement)||void 0===r?void 0:r.offsetWidth)&&void 0!==a?a:window.screen.width;ft(e,(g<h?g:h)-u)}});const xt={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{const t=window.screen.width||window.innerWidth;980===e.width&&t<980&&"native"!==e.adType&&((e,t)=>{ft(e,t);const n=document.querySelector(`#${e.targetId}`);n&&(n.style.minWidth="100vw")})(e,t)},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},It={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"},Ct={publisherClassName:It.GODT,fullWidthFormatClassName:"netboard"},Et=864e5,Tt=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return s("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=Et)=>{const i={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(i))},getByTimestamp:(t,n=Et)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return s("Error with parsing localStorage data"),null}}}})(),At="glimrTags",St=["glwe_","glwet_"],Pt={geofenceTags:[],geoTags:[],weatherTags:[]},Ot=(...e)=>qe(void 0,[...e],void 0,function*(e=v.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield Ue(t,n,o,"glimr")}const{getConsentAsync:i}=Re(t,0,o);return yield i()}),jt=()=>qe(void 0,void 0,void 0,function*(){const{glimr:e}=v.get();if(!(yield Ot())||!(null==e?void 0:e.enabled))return void s("No consent for glimr data fetching.");const t=yield(n=500,qe(void 0,void 0,void 0,function*(){return yield Promise.race([qe(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)=>{Tt.setWithTimestamp(At,{tags:e,tagMappings:t}),n(!0)})})}catch(e){s(`Error during getting glimr data: ${e}`)}else s("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),$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"},Lt=e=>St.some(t=>e.startsWith(t)),_t=e=>e.startsWith("glgc_"),Nt=e=>e.startsWith("glci_"),qt=e=>!Lt(e)&&!_t(e),Mt=(e,t)=>qe(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:o,pageContext:{countryCode:i}={}}=e,r=yield Ot(e);if(!(null==o?void 0:o.enabled)||!r)return s("No consent for getting glimr tags."),{};const a=m(i),d=Dt(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),Dt=(e,t)=>{const n=Bt();if(!n)return Pt;const o=((e=[])=>e.filter(Lt))(n),i=((e=[])=>e.filter(_t))(n),r=((e=[],t,n)=>{var o;const i=e.filter(qt);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=$t[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:r,geofenceTags:i,weatherTags:o}},Bt=()=>{const e=Tt.getByTimestamp(At);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},Ft=()=>{var e;return((e=[])=>e.filter(Nt))(null!==(e=Bt())&&void 0!==e?e:[])},Rt=()=>(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),Ut=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),zt=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:o=!1}={},pageContext:{countryCode:i}}=v.get(),r=[`${m(i)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...o?r:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},Vt="opaque",Ht=e=>qe(void 0,void 0,void 0,function*(){if(e.type!==Vt){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),Wt={get:(e,...t)=>qe(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,o=Ne(t,["timeout"]);if(n)return((e,t,n)=>qe(void 0,void 0,void 0,function*(){const o=new AbortController,i=setTimeout(()=>o.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:o.signal}));return Ht(n)}finally{clearTimeout(i)}}))(e,o,n);const i=yield fetch(e,o);return Ht(i)}),post:(e,t,n)=>qe(void 0,void 0,void 0,function*(){const o=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:o});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},Kt="advertory:ppids-cache",Gt={[h.SE]:`SCH${h.SE.toUpperCase()}-EnvHash`,[h.NO]:`SCH${h.NO.toUpperCase()}-EnvHash`},Jt={[h.SE]:`SCH${h.SE.toUpperCase()}-UserHash`,[h.NO]:`SCH${h.NO.toUpperCase()}-UserHash`},Xt={[h.SE]:`sch${h.SE}-envhash-v3`,[h.NO]:`sch${h.NO}-envhash-v3`},Qt={[h.SE]:`sch${h.SE}-userhash-v3`,[h.NO]:`sch${h.NO}-userhash-v3`},Yt={[h.SE]:`'sch${h.SE}-iosid-v3'`,[h.NO]:`'sch${h.NO}-iosid-v3'`},Zt={[h.SE]:`sch${h.SE}-androidid-v3`,[h.NO]:`sch${h.NO}-androidid-v3`},en={[h.SE]:"sdrn:schibsted.com:user",[h.NO]:"sdrn:spid.no:user"};class tn{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:o})=>{t.append(e,`${o}-${n}`)}),t}}const nn=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return qe(this,arguments,void 0,function*(e,t=1e4){var n,o;const i=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=i.xandr)||void 0===n?void 0:n.ppId1,null===(o=i.xandr)||void 0===o?void 0:o.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||s("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:""}},on=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return qe(this,void 0,void 0,function*(){var n,o,i,r,a,d,s,l,c,u,p;const v=Tt.get(Kt),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(o=g.idfv)||void 0===o?void 0:o.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(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||s("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,o){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=o?o:null}shouldHash(e,t){var n,o;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(o=t[i])||void 0===o?void 0:o.plain))return!0}return!1}cachePPIDs(e,t,n,o){const i=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),o?{anId:{plain:o}}:{});Tt.set(Kt,i)}hashPPIDs(e,t){return qe(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield Wt.post(t,n,e)}catch(e){return s("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return qe(this,arguments,void 0,function*({clientId:e,instance:t},n){const o=yield((e,t)=>qe(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${en[t]}:${n}`:null}))(t,n),i=yield(r=t,qe(void 0,void 0,void 0,function*(){const e=yield r.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var r;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:o},environmentId:{plain:i},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:o,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:o.plain,environmentId:i.plain}}},rn=e=>qe(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:o,isMobileApp:i}}=e;if(!(yield Ue(n,i,o,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([nn.processPPIDs(t,null==n?void 0:n.timeout),on.processPPIDs(t,o)])).forEach((e,t)=>{if("rejected"===e.status){s(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),an=e=>{const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=on.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]).add(r,Yt[e]).add(a,Zt[e]).buildEids()}]}},dn=()=>{const{ppid1:e,ppid2:t}=nn.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},sn=e=>{const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=on.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]).add(r,Yt[e]).add(a,Zt[e]).buildRyEids()}}]}}},ln=e=>{const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i}=on.getPPIDs();return(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]).buildRyEids()},cn=e=>qe(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i}=on.getPPIDs(),r=(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),un=(e,...t)=>qe(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,o)=>{const i=document.createElement("script");i.async=!0,i.src=e;const r=()=>{d(),n()},a=()=>{d(),o(new Error(`Failed to load ${e}`))},d=()=>{i.removeEventListener("load",r),i.removeEventListener("error",a),clearTimeout(s)};i.addEventListener("load",r),i.addEventListener("error",a);const s=setTimeout(()=>{d(),o(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),pn="advertory-fullscreen-scroll",vn="advertory-fullscreen-scroll-wrapper",gn="fullscreen-scroll-in-screen",hn="in-screen",mn=e=>e.includes("snoap.no"),yn=e=>{var t,n,o,i,r;return!!(null===(r=null===(i=null===(o=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===o?void 0:o.adResponse)||void 0===i?void 0:i.ads[1])||void 0===r?void 0:r.rtb)},fn=Je([],()=>{const e=({width:e,height:t})=>{var n;const o=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!o)return;const{clientWidth:i,clientHeight:r}=o,a=e/i,d=t/r;o.style.transform=`scale(${a},${d})`,o.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),wn=e=>{const t=Je([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const o=n.contentDocument.createElement("style");o.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(o),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},bn=e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");if(!n)return e;n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed";return t.innerHTML},kn=[],xn={},In=(e,t)=>{var n;const o=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>Cn(e,o),{}),r=Tn(e);i.observe(e),o&&(xn[r]=Pn(e,null==t?void 0:t.options))},Cn=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const o=Tn(e);n?(En(o,n),An(e,o,t)):(En(o,n),Sn(e,o,t))})},En=(e,t)=>{var n,o;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const r=t?"showFullscreen":"hideFullscreen";null===(o=i.contentWindow)||void 0===o||o.postMessage(`advertory:${r}-${e}`,"*")},Tn=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},An=(e,t,n)=>{e.classList.add(hn),document.body.classList.add(gn),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),kn.includes(t)||kn.push(t),n&&window.addEventListener("scroll",xn[t],{passive:!0})},Sn=(e,t,n)=>{kn.includes(t)&&(n&&window.removeEventListener("scroll",xn[t]),document.body.classList.remove(gn),e.classList.remove(hn),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},Pn=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:o=[".skyscraper_r"],headerZIndex:i=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),o.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&On(e,r,i,0),a.length&&On(e,a,i,40)}},On=(e,t,n,o)=>{const i=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>r?(a-r)/t-o:(r+t-(a+i))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};function jn(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}jn('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 $n="left",Ln={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 _n=null;const Nn=(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=`(${fn})()`,e+t.outerHTML})(n),n=bn(n),n=(e=>{if(mn(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=wn(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>mn(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)),mn(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)),yn(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},qn=()=>{_n=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,o=e?e.offsetLeft:0,i=document.documentElement;i.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),i.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),i.style.setProperty("--advertory-fullscreen-scroll-left",`${o}px`)},Mn=()=>{_n||(_n=window.requestAnimationFrame(qn))},Dn=(e,t)=>{var n,o,i,r;const{pageContext:{countryCode:a,deviceType:d}}=v.get(),{targetId:s}=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:o=1302,backgroundColor:i="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=o/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(o=null==l?void 0:l.overlayStyles)&&void 0!==o?o:{},d);const c=document.getElementById(s),u=null==c?void 0:c.parentElement;if(!c||!u)return;In(u,t),c.className=pn,In(u,t),c.className="advertory-fullscreen-scroll";const p=_e(e,le)?"absolute":"fixed";c.style.position=p,u.className=vn,u.dataset.showTagSubscribeId=s,c.setAttribute("data-ad-label",Ln[a].adText),(null==l?void 0:l.cogwheelPosition)===$n&&(c.dataset.moveCogwheelToTheLeft="true"),Mn(),window.addEventListener("resize",Mn),null===(i=window.visualViewport)||void 0===i||i.addEventListener("resize",Mn),null===(r=window.visualViewport)||void 0===r||r.addEventListener("scroll",Mn)},Bn=e=>{if(!(null==e?void 0:e.classList.contains(pn)))return;e.classList.remove(pn),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(vn))&&(t.classList.remove(vn),t.classList.remove(hn))};var Fn=Object.freeze({__proto__:null,createFullscreenScrollAd:Dn,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=yn(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=yn(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Nn(t,e))},undoFullscreenScrollContainer:Bn});const Rn=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},Un=(e,t,n)=>{var o,i,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(i=null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),Rn(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},zn="ad-loaded",Vn=(e,t,n)=>qe(void 0,void 0,void 0,function*(){yield T,yield A;new IntersectionObserver((t,o)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),o.unobserve(e),o.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),Hn=()=>qe(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:o,deviceType:i},fullscreenScroll:r,appearanceConfig:a,placements:d}=v.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:l}=v.getHandlers(),{getConsentAsync:c}=Re(t,0,n),u=yield c(),p=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:o=>{const i=Rt(),{prebid:{relevantCallbackTimeout:r}={}}=v.get(),a="relevantCb"===o&&r?r:n[o].timeout,d=setTimeout(()=>{!n[o].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${o}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),g=Rt(),h=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Rt();return{user:e,keywords:t}})();p.failsafeOnTimeout("relevantCb");const{user:{externalUid:m=""}={},keywords:y}=h;(()=>{const e=Ut();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{s("prebid relevantYieldQueue callback fired - RY took over");if(p.getCancel()||!g.loadTags)return s("core loadTags() call was cancelled",{cancel:p.getCancel(),apnTagLoadTags:!g.loadTags,condition:"or"}),void p.cleanup();const t=Ut();p.events.relevantCb.done=!0,p.failsafeOnTimeout("auctionCb");const c=u?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};s("prebid consentManagement",c),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},sn(n)),zt(y,m))),s("core add prebid config",Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},sn(n)),zt(y,m))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{s("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:p.getCancel()}),p.getCancel()||(p.events.auctionCb.done=!0,g.loadTags(e)),p.cleanup()}},customNativeRender:e=>{Wn(e,l)},directRenderFn:e=>{var t,n,l;const{settings:c,renderFn:u}=e,{bid:p,adDiv:v}=c||{};if(!v)return;const g=v.id,h=document.getElementById(g);if(!h)return;const m=null===(t=null==d?void 0:d[i])||void 0===t?void 0:t.find(e=>e.targetId===g),y=null!==(l=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==l?l:0,f=Object.assign(Object.assign({},p),{targetId:g,banner:!0});s("prebid directRenderFn ad info",{targetId:g,width:null==p?void 0:p.width,height:null==p?void 0:p.height,adId:null==p?void 0:p.adId,creativeId:null==p?void 0:p.creativeId}),Vn(h,y,()=>{var e;const t=u(c),n=be(f);if(s("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==p?void 0:p.width,height:null==p?void 0:p.height}),n)s("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),Dn(f,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const o=new MutationObserver(()=>{n()&&o.disconnect()});o.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),o&&h.style.setProperty("--advertory-political-box-offset","30px");else{s("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),Bn(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(zn),(null==p?void 0:p.creativeId)&&Un(g,h,Number(null==p?void 0:p.creativeId))})}}),s("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{p.getCancel()||(p.events.auctionCb.done=!0,g.loadTags(e))}},customNativeRender:e=>{Wn(e,l)},directRenderFn:()=>{}})})}),Wn=(e,t)=>{var n;const{divId:o,native:i,bid:r}=e,a=document.querySelectorAll(`[id^=${o}]`)[0],d=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:i,targetId:d},v.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")},Kn=(e,t,n)=>{const o=document.getElementById(`div_utif_${e}`);if(!o)return;const{apntag:i}=window,[r,a]=t;if(!o.dataset.lockedsize&&a&&r)o.style.width=`${r}px`,o.style.height=`${a}px`,n&&(i.resizeAd(o.id,[r,a]),o.dataset.lockedsize="true",o.dataset.lockedwidth=r.toString(),o.dataset.lockedheight=a.toString());else if(null==o?void 0:o.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=o.dataset;e&&t&&i.resizeAd(o.id,[e,t])}},Gn=["netboard","board"];class Jn{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,o;const{editionName:i}=e,r=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(o=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==o?o:[]),d=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:s,spid:l}=t;return d.searchParams.append("editionName",i),r&&d.searchParams.append("urlData",r),a&&d.searchParams.append("excludedItems",a),l&&d.searchParams.append("spid",l),s&&d.searchParams.append("envid",s),d.toString()}fetchData(e){return qe(this,void 0,void 0,function*(){var t,n,o;const i=yield this.identityFacade.getIdentityUser(),r=null!==(o=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==o?o:"",a=(null==i?void 0:i.userId)?String(i.userId):"",d=this.buildUrl(e,{envId:r,spid:a});try{s("Starting fetching DrEdition ad from URL:",d);const e=yield Wt.get(d);return s("Fetch operation completed successfully."),e}catch(e){s("Error during fetch operation:",e)}return null})}}let Xn=class{getDrEditionUTMParams(e,t){var n;const{title:o="",clientName:i,creativeId:r}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,d=o.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:i,utm_medium:d},r&&{utm_id:`df-${r}`})}getUrlSearchParams(e,t,n){if(!e)return"";const o=this.getDrEditionUTMParams(t,n),i=new URLSearchParams(decodeURIComponent(e.search)),r=new URLSearchParams(e.search);return Object.entries(o).forEach(([e,t])=>{i.has(e)||r.set(e,null!=t?t:"")}),r.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const o=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!o)return"";const i=this.getDrEditionUTMParams(e,t),r=new URL(o);return Object.entries(i).forEach(([e,t])=>{r.searchParams.has(e)||r.searchParams.set(e,null!=t?t:"")}),r.toString()}handleVideo(e,t){return qe(this,void 0,void 0,function*(){const{id:n,autoplay:o,mute:i,videoLoop:r,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:o,vgtvMuted:i,vgtvLoop:!!r,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:o,pathname:i}=new URL(n);if(!o.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const r=i.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}};const Qn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):s("Dr. Edition container does not have a parent element, cannot remove height lock.")};class Yn{constructor(e,t,n,o){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=o,this.drEditionAds=[]}fetchAndRenderAd(e,t){return qe(this,void 0,void 0,function*(){var n,o;const{drEditionConfig:{options:{containerSelector:i}},renderAsBackfill:r=!1}=t,a=e.querySelector(i);if(!a)return void s(`Container with selector "${i}" not found.`);const d=yield this.drEditionService.fetchData(t);return(null==d?void 0:d.itemId)||r?!(null==d?void 0:d.itemId)&&r?(s("No Dr. Edition ads available to render. Collapsing whole placement."),z(e.id),void Qn(a)):((null==d?void 0:d.itemId)&&r&&(s("Dr. Edition ad available to render as a Xandr backfill."),V(e.id)),void(d?(d.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(d.css,"style"),yield this.rendererManager.render(a,d,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(d,t),Qn(a),this.drEditionAds.push(d),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(d.itemId),this.observeAdView(e,d,t),null===(o=e.querySelector("a"))||void 0===o||o.addEventListener("pointerup",()=>null)):Qn(a))):(s("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void Qn(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 o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";V(o)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const o=e.querySelector(".dr-edition-slider");if(!o)return!1;let i=null;const r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(i&&clearTimeout(i),i=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...o.children].forEach(e=>{r.observe(e)})})},{threshold:[.9]});return[...o.children].forEach(e=>{r.observe(e)}),!0}}class Zn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return qe(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:o}=Re(n.tcf,n.isMobileApp,n.country),i=yield o(),r=mt(n.device)?t.mobileHTML:t.desktopHTML,a=i?r:r.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var o,i,r;e.search=null!==(r=null===(i=(o=this.newsroomStrategy).getUrlSearchParams)||void 0===i?void 0:i.call(o,e,t,n))&&void 0!==r?r:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class eo{constructor(e){this.strategy=e}handle(e,t){return qe(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:o}={}}=e;(n||o)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return qe(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 un(t)}catch(e){s("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return qe(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:o}=e.videoConfiguration,i=[...document.querySelectorAll(`#${o}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==i||i.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const r=null==i?void 0:i.parentNode;if(!r)return;const a=r.closest("a");r.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,o,i;const{preview:{url:r,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!r)return!1;const d=document.querySelector(".dr-edition-preview .preview-video");return!!d&&(d.setAttribute("src",r),d.setAttribute("playsinline",""),!(!d||!a)&&(null===(i=(o=t.drEditionConfig.options).addPreviewVideo)||void 0===i||i.call(o,d),!0))}}let to=class{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,o){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 o=null==n?void 0:n.textContent;return o?o.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:o}={}}=t,i=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=i?i:""),type:"Page",url:o}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return qe(this,void 0,void 0,function*(){var o,i,r,a,d,s,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===(o=this.pulse)||void 0===o?void 0:o.trackLegacyViewUIElement)?null===(r=null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)||void 0===r||r.call(i,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(s=null===(d=this.pulse)||void 0===d?void 0:d.trackViewUIElement)||void 0===s||s.call(d,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 qe(this,void 0,void 0,function*(){var o,i,r,a,d,s;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(i=(o=this.pulse).trackLegacyClickUIElement)||void 0===i||i.call(o,l):this.pulse.trackClickUIElement?null===(a=(r=this.pulse).trackClickUIElement)||void 0===a||a.call(r,l):null===(s=(d=this.pulse).trackElementClick)||void 0===s||s.call(d,l)})}};class no extends to{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var o,i,r;const{pulseData:{title:a,clientName:d="",creativeId:s,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(r=null===(i=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.transformUrl)||void 0===i?void 0:i.call(o,l))&&void 0!==r?r:{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:[d,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:d,"spt:creativeId":s,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)}}}let oo=class extends to{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var o,i,r,a,d,s;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(o=this.newsroomStrategy)||void 0===o?void 0:o.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulseObjectId)||void 0===r?void 0:r.call(i))&&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===(s=null===(d=this.newsroomStrategy)||void 0===d?void 0:d.getTags)||void 0===s?void 0:s.call(d,e)}}getEventInput(e,t,n,o){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,o),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,o){var i,r,a,d;const{pulseData:{algorithm:s="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!==(d=null!==(a=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getUrlWithParams)||void 0===r?void 0:r.call(i,t,n))&&void 0!==a?a:v)&&void 0!==d?d:"";return{algorithm:s,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:o,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}};const io={FRONT:"front"},ro=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},ao=e=>qe(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const o=document.createElement("script");o.id=e,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(o,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),so={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 qe(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return nd})})}})}},lo=(e,t)=>{null==e||e.forEach(e=>{so[e](t)})};let co=class{handleVideo(e,t){return qe(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:o,mute:i,vendor:r}}){yield qe(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);lo(a,d);const s={id:t,node:n,autoplay:o,mute:i,vendor:r,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},l=yield ao(s);l.once("assetReady",()=>{ro(l,a)}),l.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"]})}),l.once("PulseStats:ready",()=>qe(this,void 0,void 0,function*(){const e=yield l.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===io.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:o}=new URL(n),i=o.split("/").filter(Boolean);return i.length?[...i.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 uo="https://www.aftonbladet.se/video-player-extras/latest/";class po{handleVideo(e,t){return qe(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:o,mute:i,vendor:r}}){const a={id:t,node:n,autoplay:o,mute:i,vendor:r,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${uo}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${uo}external-link.js`]:{name:"ExternalLink"}}};yield ao(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 vo=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class go{handleVideo(e,t){return qe(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:o,mute:i,vendor:r}}){const a={id:t,node:n,autoplay:o,mute:i,vendor:r,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},vo(e)?e:{}),{provider:Object.assign(Object.assign({},vo(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 ao(a);d.once("PulseStats:ready",()=>qe(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===io.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}let ho=class{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}};const mo=(e,t,n)=>{const{publisher:o,pageType:i,country:r}=e,a={[It.VG]:new Xn,[It.E24]:new co,[It.AFTONBLADET]:new po,[It.SVD]:new go}[o]||new ho,d=new(r===h.SE?no:oo)(n,a,i),s=new Jn(t,n),l=new Zn(a,d),c=new eo(a);return new Yn(s,l,c,d)},yo=()=>qe(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 fo{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 qe(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 s("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return qe(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 wo=(e,t,n)=>{const{wrapperSelector:o}=e.drEditionConfig.options,i=document.querySelectorAll(o),r=new IntersectionObserver((o,i)=>((e,t,n,o,i)=>{const r=mo(n,o,i);e.forEach(e=>{var o,i;if(!e.isIntersecting)return;const a=e.target,d=null!==(o=a.dataset.editionName)&&void 0!==o?o:"",s=null!==(i=a.dataset.pulseColumnname)&&void 0!==i?i:"",l=Number(a.dataset.pulsePrimaryposition)||0;r.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:d,columnName:s,primaryPosition:l})),t.unobserve(a)})})(o,i,e,t,n),{rootMargin:"400% 0px"});i.forEach(e=>r.observe(e))},bo=()=>qe(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)}}),ko=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},xo=[],Io=(e,t)=>qe(void 0,void 0,void 0,function*(){var n;const{pulse:o,tcf:i,drEdition:r,pageContext:{deviceType:a,publisher:d,pageType:l,countryCode:c,isMobileApp:u}}=e;if(!(yield Ue(i,u,c,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,o;const{pageContext:{deviceType:i},placements:r,drEdition:a}=e,d=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,s=r[i]||r.desktop,l=x(t.targetId),c=s.find(e=>e.targetId===l),u=Gn.some(e=>l.startsWith(e)),p=xo.includes(l),v=(null===(o=null==c?void 0:c.drEdition)||void 0===o?void 0:o.editionName)||d;return c&&u&&!p&&v?(xo.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!p)return;if(!(null==o?void 0:o.instance))return void s("Pulse has not been passed as a prop, aborting");const v=yield yo(),g=new fo(v),h=mo({publisher:d,pageType:l,country:c},g,null==o?void 0:o.instance),m=document.getElementById(t.targetId);if(!m||!r)return;m.classList.value="";const y=document.createElement("div");y.className=r.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==p?void 0:p.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:r,device:a,tcf:i,isMobileApp:u,country:c,renderAsBackfill:!0};yield h.fetchAndRenderAd(m,f)}),Co=(e,t)=>{var n,o,i;if(!ko())return void s("Ad block not enabled, Dr. Edition backfills will not be rendered");s("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:r},finnBlink:a}=e,d=null===(o=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===o?void 0:o[r],l=null!==(i=null==d?void 0:d.map(([e])=>e))&&void 0!==i?i:[],c=new IntersectionObserver((t,n)=>qe(void 0,void 0,void 0,function*(){for(const o of t){if(!o.isIntersecting)continue;const t=o.target;n.unobserve(t),yield Io(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)})};var Eo=Object.freeze({__proto__:null,DrEdition:({editionName:e,fallbackTargetId:t,children:o,pulseData:i,htmlAttributes:r})=>{const a=(e,t)=>{const n={};if(!e)return n;for(const[o,i]of Object.entries(e)){n[t?`${t}-${o}`:o]=String(i)}return n},d=a(i,"data-pulse"),s=a(r,"data");return n.jsxs("div",Object.assign({className:"dr-edition-wrapper dr-edition-lock-height","data-edition-name":e},d,s,{children:[n.jsx("div",{className:"inscreen-target"}),n.jsx("div",{className:"container"}),n.jsx("div",{className:"fallback","data-fallback-target-id":t,style:{display:"none"},children:o})]}))},getDrEditionManager:mo,handleDrEdition:e=>qe(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield Ue(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield yo(),o=new fo(n);wo({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},o,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),handleDrEditionBackfill:Io,handleDrEditionBackfillOnAdblock:Co});const To="collapseAd",Ao="hideAd",So="resizeAd",Po="renderDrEditionFallback",Oo="wallpaperImageUrl",jo="wallpaperColor",$o="velvet",Lo=[So,Oo,jo,To,Ao,Po,$o];let _o;const No=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(L(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Oo,wallpaperImageUrl:t}}if(_(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:jo,wallpaperColor:t}}if(e.startsWith(Po)){const t=e.split(":")[1];return{name:Po,targetId:t}}if(e.startsWith(To)||e.startsWith(Ao)){const t=e.split(":")[1];return{name:To,targetId:t}}if(e.includes("name")&&Lo.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Lo.some(e=>n.name===e))return;const{name:o,targetId:i,wallpaperImageUrl:r,wallpaperColor:a,cmd:d,size:s}=n;o===$o&&d&&(d.includes("noScroll")&&(_o=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(d.includes("close")||d.includes("ended"))&&(null==_o||_o(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),o!==To&&o!==Ao||!i||z(i),o===So&&i&&d&&Kn(i,d),o===Po&&i&&(z(i),Io(v.get(),{targetId:i})),"resizeMediationAd"===o&&i&&s&&Kn(i,s,!0),o===Oo&&r&&N(r),o===jo&&a&&q(a)},qo=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=v.get(),o=window.apntag,i={publisher:e,countryCode:t,finnBlink:n},r=e=>{V(e),E(()=>o.showTag(e))};return{withXandrAd:r,withFinnBlinkAd:e=>qe(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return md});yield t(e,i,null)}),withFullAdsChain:e=>qe(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void r(e);const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return md});yield t(e,i,r,()=>qe(void 0,void 0,void 0,function*(){if(!W.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return M});t(e)}))})}},Mo=(e,t)=>qe(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield Vn(e,t,()=>((e,t,n)=>{const o="true"===n.dataset.isFinnBlinkOnlyPlacement;return Se(t)&&o?(s(`loading finn blink ad for blink only placement for ${t}`),void qo().withFinnBlinkAd(t)):Se(t)?(s(`loading finn blink ad with full ads chain for ${t}`),void qo().withFullAdsChain(t)):void E(()=>(s("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)))}),Do=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Bo=new Map,Fo=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],Ro=".brandstudio-premium-content-widget",Uo=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),zo=({adWrapper:e,placementContainer:t})=>{const n=Uo({adWrapper:e,placementContainer:t});var o;null==e||e.style.setProperty("height",`${n}px`),G(o=t),o.innerHTML=""},Vo=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},Ho=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=v.get(),o=Fo.includes(n)&&Boolean(t.closest(Ro));const i=o?t.closest(Ro):null,r=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!o&&!a||o&&!i)return;if(a)return Vo(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?Vo(d):s.hasAttribute("style")&&Vo(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},Wo=(e,t,n,o,i,r)=>{var a;const d=performance.now(),s=null!==(a=Bo.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(o,i)&&n<0;d-s>=i&&l&&(Bo.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:o}}=v.get(),i=null==n?void 0:n.parentElement;i&&n&&zo({adWrapper:i,placementContainer:n}),E(()=>{e.setKeywords([t],{[`${m(o)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},Ko=(e,t,n)=>{const o=new IntersectionObserver((e,o)=>((e,t,n,o)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:r}=e;t(window.apntag,i.id,r.y,n,o,i)})})(e,Wo,t,n),Do(300));o.observe(e)},Go=(e,t=6)=>{const n=[];for(let o=0;o<e.length;o+=t){const i=e.slice(o,o+t);n.push(i)}return n},Jo=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Xo=(e,t=0)=>{const n=e.getBoundingClientRect(),o=window.innerHeight;return n.bottom>-t&&n.top<o+t},Qo=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=v.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),ni(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},Yo=(e,t,n)=>{const o=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of o){const o=e.find(e=>{var t,n;return e.targetId===(null===(t=i.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==o?void 0:o.requestThreshold;Xo(i,r)&&o&&(K(o.targetId),n.length&&i.classList.remove(...n),ni([o],t))}},Zo=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:o}}=v.get();t&&(e.forEach(({targetId:e})=>{const t=ei(e);t&&(t.dataset.bfCacheRefresh="true")}),o?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&Yo(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const o=()=>{window.scrollY>0&&(window.removeEventListener("scroll",o),Yo(e,!1,t))};n.persisted&&(Jo()?window.addEventListener("scroll",o,{passive:!0}):Yo(e,!1,t))})})(e,n))},ei=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},ti=e=>{const{targetId:t,allowedFormats:n}=e,o=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(ei(t)),i=(e=>1===e[0]&&1===e[1])(o),r={sizes:[o],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(r.native=void 0),r},ni=(e,t=!1)=>{const{queryConfig:{batchSize:n=u}={}}=v.get(),o=e.map(({targetId:e})=>e),i=Go(o,n);if(t)for(const t of e){const e=ti(t);window.apntag.modifyTag(t.targetId,e)}for(const e of i)E(()=>window.apntag.refresh(e))},oi=e=>`externalImpId:'${e}'`,ii=(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,ri=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:o}=v.get(),{targetId:i,sizes:r,keywords:a,allowedFormats:d,invCode:l,ssaNativeAdEnabled:c=!1,nativeCustomProperties:u,safeframeConfig:p,dynamicSizeWidthCheck:g=!1,globalPlacementId:h}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||tt())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],o=Array.isArray(n)?n.filter(e=>e!==Ke):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":o}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:i})})(e),m=Object.assign({invCode:l,sizes:r,targetId:i,keywords:ii(a,c),allowedFormats:d,dynamicSizeWidthCheck:g,globalPlacementId:h},p&&{safeframeConfig:p}),y=(e=>{var t,n;const o=null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId;return o?(s("Pulse state pageViewId is:",o),o):(s("Pulse state does not contain field pageViewId or it is empty"),"")})(o);n&&y&&(s("External Impression ID assigned to defineTag:",oi(y)),m.externalImpId=oi(y));const f=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,o])=>((null==e?void 0:e.includes(n))&&(t[n]=o),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}}))(u);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(m.native=f),m},ai=e=>!e.includes("takeover")||tt(),di=e=>{const{source:t}=e;return"csm"===t},si=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=v.get(),n=m(t),o=e[`${n}-targetid`],i=o?x(o[0]):"";return Object.assign(Object.assign({},e),o&&{[`${n}-targetid`]:[i]})},li=e=>{const{pageContext:{countryCode:t}}=v.get(),n=m(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"]})},ci=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const o=n.split(",")[0].split(":")[0],i=e.find(e=>e.invCode===o),r=document.querySelector(`[id^=${null==i?void 0:i.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{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"})})()},ui=(e,t)=>qe(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});jn(".advertory-brandmetrics-survey{width:100%}");const pi="advertory-brandmetrics-survey",vi="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",gi=()=>qe(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,o)=>{var i;o||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),hi={pageContext:{publisher:"aftonbladet",countryCode:h.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"}},mi={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},yi=e=>(null==e?void 0:e.parent)?[...yi(e.parent),e.shortPath||"unknown"]:[],fi=(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]=yi(e);return mi[n]||"ovrigaavdelningar"})(e)}_{position}`,wi={aftonbladet:hi},bi={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:fi(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:yi(e).join(":")}}},ki=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},xi=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),Ii="se-generic",Ci="aa-sch",Ei="kv_",Ti="pause",Ai="{deviceType}",Si="{position}",Pi="afp_",Oi=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),ji="1-1",$i="16-9",Li="3-4",_i="9-16",Ni="responsive",qi={[ji]:1,[$i]:1.78,[_i]:.56,[Ni]:1},Mi={[ji]:1,[$i]:1.78,[Li]:1.33,[_i]:.56},Di=(e,t,n,o)=>{const{invCode:i="",videoOverlayInvCode:r}=null!=e?e:{},a=Y===n?te:ne,d=i.replace(Ai,a);return(e,n)=>{if(e===Ti)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Si,Ti).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&Oi.has(e)){return(o&&r?r:t.frontpageInvCodeTemplate).replace(Ai,a).replace(Si,e)}return d.replace(Si,e)}},Bi=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[o,i])=>{const r=Math.abs(e[n]-t);return Math.abs(i-t)<r?o:n},n[0][0])},Fi=()=>{var e,t;const n=jwplayer().getContainer(),o=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return o&&"number"==typeof o.offsetWidth&&"number"==typeof o.offsetHeight&&0!==o.offsetHeight?o.offsetWidth/o.offsetHeight:1},Ri=()=>{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},Ui=()=>{const e=null!==(t=Ri()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Ri()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},zi=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Vi=(e,t)=>qe(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:o,countryCode:i}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:i,publisher:o,pageType:"front",deviceType:e.deviceType},s=(yield Ue(n,e.isApp,i,"video"))?"1":"0",l=yield gi(),c=yield cn(i),u=yield Ve({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Bi(Mi,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Bi(qi,Number(m.toFixed(2))):Ni;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ci}-country_code`]:i,[`${Ci}-publisher`]:o,[`${Ci}-supply_type`]:(y=e.deviceType,y===Y?Z:ee),[`kw_${Ci}-page_type`]:"collection",[`${Ci}-page_type`]:"collection",[`${Ii}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${Ii}-page`]:"index",[`${Ii}-page`]:"index",[`${Ii}-screenheight`]:String(window.screen.height),[`${Ii}-screenwidth`]:String(window.screen.width),[`${Ii}-viewportheight`]:String(a),[`${Ii}-viewportwidth`]:String(r),[`${Ii}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${Ii}-mobile-os`]:ht(),[`${Ii}-audience`]:void 0,[`${Ii}-externalid_src`]:Ui(),[`${Ii}-tags`]:e.tags,[`${Ii}-articleid`]:p,"article-id":p},yield Mt(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${Ii}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(zi()).some(e=>e.includes(Ei))&&(()=>{const e=zi(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Ei)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Hi=["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"],Wi=["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"],Ki=["external_uid","gdpr","gdpr_consent","eids","article-id"],Gi=(e,t)=>{const n=[...Hi,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Ki.includes(e)?e:`kw_${e}`,t]))},Ji=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Wi.includes(e))),Xi=(e,t)=>qe(void 0,void 0,void 0,function*(){var n,o,i,r;const a=(e=>{var t;wi[e]||l(`[video] No config found for publisher "${e}"`);return null!==(t=wi[e])&&void 0!==t?t:hi})(e.publisher),d=(e=>{var t;return null!==(t=bi[e])&&void 0!==t?t:bi.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,c=null===(o=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString(),u=e.assetId===c,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,v=u?"preroll":"bumper";var g;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield Vi({pageAdsKeywords:e.pageAdsKeywords,tags:(g=e.tags,g?g.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==d?void 0:d.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:u,instreamAspectRatio:p,playerAspectRatio:Fi(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:v,playbackMethod:ki(e.startMode)}}),Qi=(e,t)=>{const{siteConfig:n,siteVideoParams:o,isUserPresentOnFrontPage:i,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=o||{},l=Di(o,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Pi)?`${Pi}${t}`:t)(s),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,i),"se-generic-playback-method":xi.get(d),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Gi(r,n)),Ji(r)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Yi=e=>t=>qe(void 0,void 0,void 0,function*(){const n=yield Xi(e,t);return Qi(n,e)}),Zi={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]}]},er={no:"NOK",se:"SEK"},tr={no:"no",se:"sv"};class nr{buildFetchObject(e,t,n,o){return qe(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:r}=o,{invCode:a,xandrPlacementId:d}=e,s=yield gi(),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(Zi),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:C(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||tr[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield Ve(o),ext:{consent:s.gdpr_consent||"",eids:ln(i)}},at:1,cur:[er[i]],source:{tid:C(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,o){return qe(this,void 0,void 0,function*(){try{s("Starting fetching Studio ad from Xandr:",vi);const i=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${vi}?${a.toString()}`:vi,l=yield this.buildFetchObject(e,t,n,o),c=yield Wt.post(d,i,l);return s("Fetch operation completed successfully.",c),c}catch(e){s("Error during fetch operation:",e)}return null})}}const or=0,ir=3,rr=(e,t,n,o)=>{const i=t.parentElement;if(!i)return;const r=e?`-${e}`:"",a=o?`__${o}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(d),i.classList.add(s),t.dataset.adType=n},ar="finn-blink",dr="native-ad",sr=(e,t)=>{lr(e,t),ur(e,t)},lr=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const o of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])vr(o)}),t.dataset.tracked="true")})},cr=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;o||!i?null==n||n.forEach(pr):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},ur=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Y])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,cr(e),c.disconnect();break}},s);c.observe(i)},pr=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?vr(e):window.navigator.sendBeacon(e)},vr=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},gr=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:[]}),hr=(e,t)=>qe(void 0,void 0,void 0,function*(){var n,o;const{pageContext:{deviceType:i},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,l=document.getElementById(e.targetId);if(!l)return void s(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Do(d)).observe(l)});const{prepareTag:c}=v.getHandlers(),u=W.getData("alertoryConfigKeywords"),p=null!==(o=c(ri(e)).keywords)&&void 0!==o?o:{},g=new nr,h=yield g.fetchData(e,u,p,t);h&&(((e,t,n)=>{const o=n===X?t.mobileHTML:t.desktopHTML;if(o){if(t.adType===or){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${o}`,e.appendChild(n)}else e.innerHTML=o;e.classList.add("ad-loaded")}})(l,h,i),h.adType===ir&&(rr(t.pageContext.publisher,l,dr,t.pageContext.pageType),sr({targetId:e.targetId,native:{clickTrackers:h.clickTrackers,impressionTrackers:h.impTrackers}},{deviceType:i,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,o)=>{var i,r,a;let d;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==o?void 0:o.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),Un(e,n,Number(null==o?void 0:o.adid)),null==d||d.remove()})(e.targetId,e.invCode,l,h.bid))}),mr=(e,t)=>{e.forEach(e=>hr(e,t).catch(e=>{s("Failed to handle server-side ad:",e)}))},yr={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},fr="https://alertory-cdn.inventory.schibsted.io",wr=5e3,br="editory/native-creator/native-templates",kr=e=>qe(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=e;return(null==t?void 0:t.publisherClassName)&&o?`${n||fr}/editable-configurations/${t.publisherClassName}/${o.toLowerCase()}.json`:null})(e);if(!t)return null;try{return yield Wt.get(t,{timeout:wr})}catch(e){throw s("Failed to fetch S3 config",{error:e,url:t}),e}}),xr=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(It).includes(o);n&&r&&rr(o,e,dr,i)})(i,n),o())},Ir=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const o of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])Ar(o)}),t.dataset.tracked="true")})},Cr=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;o||!i?null==n||n.forEach(Tr):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},Er=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Y])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,Cr(e),c.disconnect();break}},s);c.observe(i)},Tr=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Ar(e):window.navigator.sendBeacon(e)},Ar=e=>{Wt.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Sr=(()=>{const e=new Map,t=new Map;return{getTemplate:t=>e.get(t),setTemplate:(t,n)=>{e.set(t,n)},deleteTemplate:t=>{e.delete(t)},getAdjustment:e=>t.get(e),setAdjustment:(e,n)=>{t.set(e,n)},clear:()=>{e.clear(),t.clear()}}})(),Pr=(e,t,n)=>{if(!n)return Promise.resolve(null);const o=((e,t,n)=>`${null!=n?n:fr}/${br}/${e}/adjustments/${t}.json`)(e,n,t),i=Sr.getAdjustment(o);if(i)return i;const r=Wt.get(o,{timeout:wr}).catch(e=>(s("Failed to fetch native template adjustment",{error:e,url:o}),null));return Sr.setAdjustment(o,r),r},Or=(e,t,n)=>qe(void 0,void 0,void 0,function*(){const o=((e,t)=>`${null!=t?t:fr}/${br}/${e}/default.json`)(e,n);let i=Sr.getTemplate(o);i||(i=Wt.get(o,{timeout:wr}).catch(e=>{throw s("Failed to fetch native template",{error:e,url:o}),Sr.deleteTemplate(o),e}),Sr.setTemplate(o,i));const r=Pr(e,n,t),[a,d]=yield Promise.all([i,r]);return{schema:a,adjustment:d}}),jr={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},$r=(e,t)=>{var n,o,i;const a=Object.assign({},e);a.overrides=e.overrides?r({},e.overrides,jr):e.overrides;for(const d of Object.keys(t)){const s=t[d];if(!s)continue;const l=s[e.id];if(!l)continue;const c=null!==(o=null===(n=a.overrides)||void 0===n?void 0:n[d])&&void 0!==o?o:{},u=r(c,l,jr);a.overrides=Object.assign(Object.assign({},null!==(i=a.overrides)&&void 0!==i?i:{}),{[d]:u})}return e.children&&(a.children=e.children.map(e=>$r(e,t))),a},Lr="desktop",_r="mobile",Nr="container",qr="text",Mr="image",Dr="cogwheel",Br=(e,t)=>{var n,o,i,r,a,d;const s=null===(n=e.overrides)||void 0===n?void 0:n[t];if(null!==(o=null==s?void 0:s.hidden)&&void 0!==o?o:e.hidden)return null;const l=Object.assign(Object.assign({},e.styles),null!==(i=null==s?void 0:s.styles)&&void 0!==i?i:{}),c=null!==(r=null==s?void 0:s.tag)&&void 0!==r?r:e.tag,u=null!==(a=null==s?void 0:s.text)&&void 0!==a?a:e.text,p=null===(d=e.children)||void 0===d?void 0:d.map(e=>Br(e,t)).filter(e=>null!==e),v={id:e.id,tag:c,type:e.type,name:e.name,styles:l,connections:e.connections};return void 0!==u&&(v.text=u),void 0!==p&&(v.children=p),v},Fr=e=>Object.entries(e).map(([e,t])=>`${(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))(e)}:${(e=>String(e).replace(/"/g,"&quot;"))(t)}`).join(";"),Rr={microsoftMonetize:{title:"title","body-text":"body",description:"body","sponsored-by":"sponsoredBy","call-to-action":"cta","display-url":"clickUrl","desc-2":"desc2",image:"image",icon:"icon","title-1":"customTitle1","title-2":"customTitle2","title-3":"customTitle3","title-4":"customTitle4","icon-1":"customIcon1","icon-2":"customIcon2","custom-display-url-1":"customDisplayUrl1","custom-body-1":"customBody1","custom-body-2":"customBody2","custom-body-3":"customBody3","custom-body-4":"customBody4","custom-body-5":"customBody5"}},Ur=(e,t)=>{const n=e[t];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class zr{constructor(e,t=!1){this.tag=e,this.voidElement=t,this.attributes=new Map,this.content=""}attr(e,t){return t&&this.attributes.set(e,t),this}children(e){return this.content=e,this}build(){const e=[...this.attributes].map(([e,t])=>` ${e}="${t}"`).join("");return this.voidElement?`<${this.tag}${e}>`:`<${this.tag}${e}>${this.content}</${this.tag}>`}}const Vr=(e,t,n="")=>{var o;return(null===(o=e.connections)||void 0===o?void 0:o.length)?((e,t)=>{const n=[];for(const o of e){const e=Rr[o.server];if(e)for(const i of o.properties){const o=e[i];if(!o)continue;const r=Ur(t,o);r&&n.push(r)}}return n.join(" ")})(e.connections,t):n},Hr=(e,t,n,o)=>{var i;const{tag:r,styles:a}=e,d=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Kr(e,t,n,!1)).join(""),s=new zr(r);return o(s),s.attr("href","a"===r?Vr(e,t):"").attr("style",Fr(a)).children(d).build()},Wr={[Nr]:(e,t,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return Hr(e,t,n,t=>{o&&t.attr("class",`advertory-${r}-ad-native-${e.name.toLowerCase()}`)})},[Dr]:(e,t,n)=>Hr(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[qr]:(e,t)=>{var n;return new zr(e.tag).attr("style",Fr(e.styles)).children(Vr(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[Mr]:(e,t)=>new zr("img",!0).attr("style",Fr(e.styles)).attr("src",Vr(e,t)).build()},Kr=(e,t,n,o=!0)=>{const i=Wr[e.type];return i?i(e,t,n,o):""},Gr=e=>(t,{publisher:n,containerId:o,deviceType:i})=>((e,t,n,o,i)=>{const r=Br(e.root,n);return r?Kr(r,t,{breakpoint:n,publisher:o,containerId:i}):null})(e,t,(e=>e===X?_r:Lr)(i),n,o),Jr="default",Xr=(e,t)=>qe(void 0,void 0,void 0,function*(){var n,o,i,a,d;const l=document.querySelector(`#${e.targetId}`);if(!e.native||!l)return;const{desc2:c}=e.native,u=null==c?void 0:c.toLowerCase(),p=((e,t)=>{const n=R(F),o=new URLSearchParams(window.location.search).get(F),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null})(e.targetId,null!=c?c:Jr),v=(null!=p?p:u)||Jr,g=null===(n=t.pageContext)||void 0===n?void 0:n.publisher;try{const{schema:n,adjustment:s}=yield Or(v,g,null===(o=t.editory)||void 0===o?void 0:o.editoryUrl),l=s?((e,t)=>t.overrides?Object.assign(Object.assign({},e),{root:$r(e.root,t.overrides)}):r({},e,jr))(n,s):n,c=Gr(l),u={publisher:g,pageType:null===(i=t.pageContext)||void 0===i?void 0:i.pageType,deviceType:null===(a=t.pageContext)||void 0===a?void 0:a.deviceType,appearanceConfig:t.appearanceConfig,nativeTrackingConfig:t.nativeTrackingConfig,containerId:e.targetId,clickLinkSelector:"a"},p=c(e.native,u),{enabled:h=!0}=null!==(d=t.nativeTrackingConfig)&&void 0!==d?d:{};xr(e.targetId,p,u,()=>{Rn(e.targetId),h&&((e,t)=>{Ir(e,t),Er(e,t)})(e,u)})}catch(e){s("Failed to render native ad from config",{error:e})}}),Qr=e=>qe(void 0,void 0,void 0,function*(){if(!(e=>{const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=e;return Boolean(t&&n&&(null==o?void 0:o.publisherClassName))})(e))return e;try{const t=yield kr(e);return t?((e,t)=>r(t,e,yr))(e,t):e}catch(t){return s("Error fetching S3 config, using site config",{error:t}),e}}),Yr="_adchoices_non_rtb",Zr=e=>{const{nonRtb:{invCodeSuffix:t=Yr}={}}=v.get();return`${f(e)}${t}`},ea=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>z(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Zr(e.invCode)})))(e)),ta=e=>`${Math.max(0,Math.round(e))}px`,na=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},oa=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const o=e[t];n.style.setProperty(t,o)}},ia=()=>{const{pageSectionsSelectors:e}=v.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=na(t);oa({"--advertory-header-height":ta(n)})})(e.header)};let ra,aa=[];const da=["takeover","wallpaper"],sa=e=>{const t=(e=>{var t;const n=W.getData("alertoryConfigKeywords"),{queryConfig:o,placements:i,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:p,isMobileApp:v=!1},pageOptions:{member:g},pageSetup:h,takeover:m,fullscreenScroll:y,fullWidth:f}=e,w=null!==(t=null==o?void 0:o.batchSize)&&void 0!==t?t:u;return{xandr:{member:g,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:p,isMobileApp:v},pageSetup:h,placements:i,tcf:r,queryConfig:Object.assign(Object.assign({},o),{batchSize:w})},a&&{glimr:a}),d&&{appearanceConfig:d}),m&&{takeover:m}),y&&{fullscreenScroll:y}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.7.4-inv-2708.0",siteConfig:e,alertoryConfig:t}},la=()=>qe(void 0,void 0,void 0,function*(){const{pageOptions:e}=v.get(),{preparePageOptions:t}=v.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=v.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),o=yield qe(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=v.get();return(yield Ue(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),i=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),o));(e=>{const t=W.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=li(e);W.setData("alertoryConfigKeywords",n)})(i.keywords),E(()=>ra.setPageOpts(i))}),ca=e=>qe(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=v.get(),r=yield Ue(n,o,i,"loadPlacements"),a=ea(e,r);ua(a);(null==t?void 0:t.enabled)&&r&&!U()?(s("core loadPlacements prebid enabled"),yield Hn()):(s("core load tags invoked without prebid enabled"),pa(a))}),ua=e=>{const{prepareTag:t}=v.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const o=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==o&&-1===i?-1:-1===o&&-1!==i?1:o-i})})(e).forEach(e=>{s("core defineTags",{placement:e});const o=ri(e);if(ai(e.targetId)){const i=t(o),r=(e=>{const{allowedFormats:t,invCode:n,keywords:o,sizes:i}=e;return{adTypes:t,invCode:n,keywords:si(o),sizes:i}})(i);n.push(r),E(()=>(s("core defineTag - add to the queue",{placement:e,preparedTag:i}),ra.defineTag(i)))}}),(e=>{var t,n,o;(null===(o=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===o?void 0:o.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},pa=e=>{const t=e.filter(({targetId:e})=>ai(e)).map(({targetId:e})=>e);t.length&&E(()=>(s("core loadTags",{placementsIdsToLoad:t}),ra.loadTags([...t])))},va=(e,t)=>qe(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:o}}=v.get(),{requestThreshold:i,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[o];a&&(s("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:i,deviceDefaultThreshold:d}),yield Mo(a,null!=i?i:d)),a&&(null==r?void 0:r.scroll)&&(s("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=r.scroll.toString())}),ga=e=>e.some(({targetId:e})=>da.some(t=>e.includes(t))),ha=e=>qe(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,o]=(e=>e.reduce(([e,t],n)=>{var o;return(null===(o=null==n?void 0:n.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=u}={},pageContext:{deviceType:o}}=v.get(),i=se(e),r=Object.keys((null==t?void 0:t[o])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...r,...Go(d,n)]})(o);for(const e of i)ga(e)?(s("core loadAds without lazy loading",{placementsToLoad:e}),yield ca(e)):e.length&&(s("core loadAds with lazy loading",{placementsToLoad:e}),yield ma(e));const{finnBlink:r}=v.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield Promise.resolve().then(function(){return md});yield e(n)}}),ma=e=>qe(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=v.get(),o=[];if(!t)return s("lazy load is not enabled",{placements:e}),void(yield ca(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{s("lazy load is enabled - handler start",{loadedTargetIds:o,placements:e});const i=e.every(e=>o.includes(e.targetId)),r=e.map(e=>e.targetId);!i&&o.push(...r),!i&&ca(e),s("lazy load is enabled - handler stop",{loadedTargetIds:o,placements:e,arePlacementsLoaded:i,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(s("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),ya=()=>qe(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=v.getHandlers(),{wallpaper:n,fullscreenScroll:o}=v.get(),i=[];E(()=>{ra.onEvent("adRequested",()=>{e.adRequested()}),ra.onEvent("adAvailable",i=>qe(void 0,void 0,void 0,function*(){var r,a,d,l,c,u;s("core adAvailable start",{placementsAvailable:aa,adObj:i,isFullscreenScrollAd:be(i),isFinnBlink:Se(i.targetId),isNativeAd:ke(i),isMediation:di(i),isTakeoverAd:Ie(i),isCollapseAd:Te(i),isWallpaperAd:Ee(i)});const p=null===(d=null===(a=null===(r=null===window||void 0===window?void 0:window.apntag)||void 0===r?void 0:r.requests)||void 0===a?void 0:a.tags[i.targetId])||void 0===d?void 0:d.adResponse.ads;if(di(i)&&p&&(null===(l=p[1])||void 0===l?void 0:l.rtb)&&(i.banner=null===(u=null===(c=p[1])||void 0===c?void 0:c.rtb)||void 0===u?void 0:u.banner),be(i)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return Fn});e(i)}const{widescreenSwitching:g}=v.get();if(je(i)&&(null==g?void 0:g.enabled)){const{initWidescreenSwitching:e}=yield Promise.resolve().then(function(){return bd});e()}if(be(i)&&!Se(i.targetId)){s("core adAvailable: creating fullscreen scroll container",{targetId:i.targetId,width:i.width,height:i.height,bannerWidth:i.banner&&"object"==typeof i.banner?i.banner.width:i.banner,bannerHeight:i.banner&&"object"==typeof i.banner?i.banner.height:void 0});const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return Fn});e(i,o)}if(!ke(i)||di(i)||Se(i.targetId)||null==t||t(i,v.get()),Ie(i)&&!Te(i)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield Promise.resolve().then(function(){return Dd});e(i.targetId),yield t(i)}if(Ee(i)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return M});e(()=>E(()=>window.apntag.showTag(i.targetId)),n),W.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(i)&&W.setData("horseshoe",{isAvailable:!0}),e.adAvailable(i);const h=aa.find(({targetId:e})=>e===i.targetId);h&&(yield va(h,i),aa=aa.filter(e=>e.targetId!==h.targetId)),s("core adAvailable stop",{placementsAvailable:aa,adObj:i,isFullscreenScrollAd:be(i),isFinnBlink:Se(i.targetId),isNativeAd:ke(i),isMediation:di(i),isTakeoverAd:Ie(i),isCollapseAd:Te(i),isWallpaperAd:Ee(i)})})),ra.onEvent("adLoaded",n=>qe(void 0,void 0,void 0,function*(){const{refreshConfig:o,appearanceConfig:r,wallpaper:a,adScaleConfig:d}=v.get(),s=document.getElementById(n.targetId);if(Se(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield Promise.resolve().then(function(){return ld});e(n)}if(i.includes(n.targetId)&&ke(n)&&(null==t||t(n,v.get()),vt({adObj:n})),!i.includes(n.targetId)&&di(n)&&i.push(n.targetId),Te(n)&&z(n.targetId),Ie(n)){const{modifyTakeoverIframe:e}=yield Promise.resolve().then(function(){return Dd});e(ra,n.targetId)}if((e=>_e(e,ue))(n)){const{applyNinesixteenFormat:e}=yield Promise.resolve().then(function(){return Ud});e(n)}if((e=>_e(e,ve))(n)){const{applyFullsquareFormat:e}=yield Promise.resolve().then(function(){return Ud});e(n)}if(xe(n)){const{applyFullwidthFormat:e}=yield Promise.resolve().then(function(){return Ud});e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,o=document.querySelector(`#${n}`),i=null==o?void 0:o.parentElement;if(!i||!o)return;Ho({adWrapper:i,placementContainer:o});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();o&&"true"!==o.dataset.subscribedForRefresh&&(o.dataset.subscribedForRefresh="true",o.dataset.refresh&&Ko(o,a,r))})(n,o),(null==r?void 0:r.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(W.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return M});e(n.targetId)}if(null==d?void 0:d.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield Promise.resolve().then(function(){return kt});e(n),t(n)}e.adLoaded(n),Rn(n.targetId),s&&(s.classList.add(zn),(e=>{var t,n;const{pageSectionsSelectors:o}=v.get(),i=null==o?void 0:o.mainFirstColumn,r=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(s)),vt({adObj:n}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const o=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;o&&((e,t)=>{const{height:n,width:o,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&o&&(t.dataset.adSizes=`[${o},${n}]`)})(e,o)})(n),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:gt(n)}}))})),ra.onEvent("adNoBid",t=>qe(void 0,void 0,void 0,function*(){var n;if(z(t.targetId),null===(n=v.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield Promise.resolve().then(function(){return Eo});yield e(v.get(),t)}if(Ie(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return ut});yield e(t)}e.adNoBid(t)})),ra.onEvent("adError",(t,n)=>qe(void 0,void 0,void 0,function*(){if(Ie(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return ut});yield e(n)}e.adError(t,n)})),ra.onEvent("adCollapse",()=>{e.adCollapse()}),ra.onEvent("adRequestFailure",t=>qe(void 0,void 0,void 0,function*(){z(t.targetId),yield Io(v.get(),t),e.adRequestFailure(t)})),ra.onEvent("adBadRequest",t=>qe(void 0,void 0,void 0,function*(){z(t.targetId),yield Io(v.get(),t),e.adBadRequest(t)})),ra.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),ra.onEvent("adNoBidMediated",t=>qe(void 0,void 0,void 0,function*(){yield Io(v.get(),t),e.adNoBidMediated(t)}))})}),fa=(e,t)=>qe(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:o,reloadExistingAds:i,renderFinnBlinkPlacements:r,contextSelector:a}=null!=t?t:{};if(o)return J(),[];i&&(J(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{V(e.id)})),g(null!=e?e:{}),yield la();const{clientSidePlacements:d,serverSidePlacements:s}=gr(ae(a));let l=d;return r&&(l=l.filter(e=>Se(e.targetId))),mr(s,v.get()),l.length>0&&(aa=[...aa,...l.map(e=>Object.assign({},e))],Qo(l),Zo(l),yield ha(l)),aa}),wa=(e,t)=>qe(void 0,void 0,void 0,function*(){var n;v.set(e),v.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:o,kilkaya:i,rightColumnSplit:r,drEdition:a,finnBlink:d}=e;if(W.initialize(),window.addEventListener("message",No,!1),ra=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=ra,s("Apn tag is set up on window"),yield Promise.allSettled([qe(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=v.get();(yield Ue(e,t,n,"xandr-endpoint"))||ra.setEndpoint("ib.adnxs-simple.com",!0)}),qe(void 0,void 0,void 0,function*(){if(U())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=v.get(),i=yield Ue(t,n,o,"prebid");(null==e?void 0:e.enabled)&&i&&(yield un(null==e?void 0:e.prebidUrl))}),rn(e),qe(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=v.get();yield un(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),qe(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=v.get();(yield Ue(t,n,o,"gpt-endpoint"))&&(yield un(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),qe(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=v.get(),{getConsentAsync:r}=Re(n,0,i),a=yield r();if(e&&t&&a){if(yield un(t),document.querySelector(`.${pi}`))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(pi)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),jt(),qe(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=v.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield un(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==o?void 0:o.enabled){const{loadNorstat:e}=yield Promise.resolve().then(function(){return Vd});yield e()}s("Libraries have been loaded and trackers have been set"),ia(),yield ya(),yield la(),s("Page options have been set"),sa(e),s("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=gr(ae());if(aa=l,mr(c,e),Qo(aa),Zo(aa),yield ha(aa),s("Ads has been loaded",aa),Co(e,aa),ci(aa),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield Promise.resolve().then(function(){return md});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 Promise.resolve().then(function(){return Eo});yield t(e)}if(null==r?void 0:r.enabled){const{initRightColumnSplit:t}=yield Promise.resolve().then(function(){return Qd});t(e.rightColumnSplit)}if(null==i?void 0:i.enabled){const{runKilkaya:t}=yield Promise.resolve().then(function(){return ms});yield t(e)}}),ba=(e,t)=>qe(void 0,void 0,void 0,function*(){yield((e,t)=>qe(void 0,void 0,void 0,function*(){var n,o;const{initConsentManager:i,getConsentAsync:r}=Re(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(o=e.pageContext)||void 0===o?void 0:o.countryCode),a=yield Qr(e);yield bo(),yield ui(i),yield ui(r),s("TCF resolved successfully"),yield wa(a,t),s("Run function resolved successfully")}))(e,t)}),ka=(e,t,n,o)=>{var i;const{image:r,icon:a,sponsoredBy:d,title:s,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:k,customBody4:x,customBody5:I,customIcon1:C,customIcon2:E,customDisplayUrl1:T}=e,A=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:A(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=o.appearanceConfig)||void 0===e?void 0:e.theme)&&C;return A(t?C:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(i=null!=u?u:g)&&void 0!==i?i:"",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!=k?k:"",customBody4:null!=x?x:"",customBody5:null!=I?I:"",logo2:A(E),previewVideoSrc:null!=T?T:""},t)},xa=(e,t)=>{const n=R(F),o=new URLSearchParams(window.location.search).get(F),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Ia=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(It).includes(o);n&&r&&rr(o,e,dr,i)})(i,n),o())},Ca=(e,t,n)=>{const o=((e,t,n)=>{var o;const{displayTemplates:i,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(o=xa(e.targetId,l))&&void 0!==o?o:c,p=Ln[t.language||h.NO],v=ka(d,p,s,t);return(d.video?r[u]:i[u]||i.default)(v,t)})(e,t,n);Ia(e.targetId,o,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&sr(e,t)})},Ea=e=>(t,n)=>{var o;const{targetId:i}=t,r=document.querySelector(`#${i}`);if(!r)return;const a=e.getOptions(null!=n?n:{});Ca(t,a,e.templates),null===(o=e.postProcess)||void 0===o||o.call(e,t,r)},Ta=()=>{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},Aa=e=>{const{siteSpecificConfig:t}=v.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Sa{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return qe(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 qe(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Pa=9826;class Oa{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=v.get();if(t){return{"aa-sch-supply_type":`app_${e===X?"phone":Q}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return qe(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 qe(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=ze("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return qe(this,void 0,void 0,function*(){return yield Ve(v.get())})}isTrackingForbidden(){return qe(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=Pa}={}}=v.get();return"true"===D("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=v.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return qe(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=v.get(),{getConsentAsync:o}=Re(e,0,n);return{"aa-sch-cmp_advertising":(yield o())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=v.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 ja=new Oa;function $a(e=!1){var t,n;const o=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=ht();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:o.includes("hermes"),appMode:e?"hybrid":"notinapp"}}ja.prepare.bind(ja);const La=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function _a(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",La.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Na extends Oa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=v.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=v.get(),{OS:n,isHybridApp:o}=$a(t);return{"no-sno-apptype":n&&e&&o?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return _a(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=v.get(),i=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${i.split("_").pop()||i}_${"article"===o?"article":"front"}`}}}const qa=new class extends Na{prepare(e){return qe(this,void 0,void 0,function*(){var t,n,o,i,r,a,d;const s=v.get(),l=null!==(o=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},c=null!==(a=null===(r=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new Sa;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Mt(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(dn()).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 g=p.build(),m=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:g,user:Object.assign(Object.assign({},an(h.NO)),m?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Ma=qa.prepare.bind(qa);class Da extends Oa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=v.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,o=document.documentElement.clientHeight;return{width:e||n||0,height:t||o||0}}(),t={width:null!==(o=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==o?o:0,height:null!==(r=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==r?r:0};var n,o,i,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return qe(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}}=v.get(),{appMode:t,mobileOS:n}=$a(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=v.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===o?"article":"front"}`}}}const Ba=new class extends Da{prepare(e){return qe(this,void 0,void 0,function*(){var t,n,o,i,r,a;const d=v.get(),s=null!==(o=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},l=null!==(a=null===(r=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},c=new Sa;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync(Mt(d,s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>qe(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),c.add(this.getSupplyTypeKeywords()).add(dn()).addIf(l.appType,this.getAppTypeKeywords()).addIf(l.device,this.getDeviceKeywords()).addIf(l.screen,this.getScreenKeywords()).addIf(l.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(l.sectionPageType,this.getSectionPageTypeKeywords()).addIf(l.hasContext,this.getHasContextKeywords(e.keywords)).addIf(l.hasPlusMembership,{"se-generic-has_plus":"plus"===ze("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const u=c.build(),p=!1!==s.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:u,user:Object.assign(Object.assign({},an(h.SE)),p?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Fa=Ba.prepare.bind(Ba),Ra="viewable",Ua="adClick";var za=e=>(t,n,o)=>{const{video:i,img:r,url:a}=t,{publisher:d,productTag:s}=n,{pluginsNames:l,videoLoop:c}=o||{};if(!(null==i?void 0:i.content))return null;const u=Math.ceil(1e5*Math.random()),p=r||"https://custom.inventory.schibsted.io/1x1-00000000.png",v=`ad-player-${u}`,g=Va(i.content,a),h=Ha({id:u,nodeId:v,poster:p,tagURL:g,publisher:d,productTag:s,videoLoop:c});return Wa({playerConfig:h,clickUrl:a,pluginsNames:l}),`${e(t,n,v)}`};const Va=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},Ha=({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},vo(e)?e:{}),{provider:Object.assign(Object.assign({},vo(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}),Wa=e=>qe(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:o}=e,{repeat:i}=t,r=yield ao(t);lo(n),r.once("assetReady",()=>{ro(r,n)}),r.on(Ra,e=>{const{viewable:t}=e;t?r.play():r.pause()}),r.on(Ua,()=>{window.open(o,"_blank")}),i&&r.on("pause",()=>{r.play()})}),Ka=({containerId:e,url:t,body:n,title:o,logo:i,isContentVideoAd:r=!1,imgWidth:a})=>{const d=`\n <div class="ad-header">\n <span>ANNONSØRINNHOLD</span>\n ${i?`<img alt="" aria-hidden="true" class="ad-logo" src="${i}" />`:""}\n </div>\n `,s=`<div class="ad-text">${o}</div>`;return`\n <div id="${e}" class="advertory-godt-ad-content" ${a?`style="max-width: ${a}px"`:""}>\n <div class="ad-info" id="${e}-button"></div>\n ${r?`\n ${d}\n ${n}\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${s}\n </a>\n `:`\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${d}\n ${n}\n ${s}\n </a>\n `}\n </div>\n `},Ga=["IntegrationMenu"],Ja=({containerId:e},t,n)=>` <div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <div class="ad-video-wrapper">\n <div id="${n}"></div>\n </div>\n <span class="ad-label">${Ln.no.adText}</span>\n </div>`;jn('@import"https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap";.advertory-shared-ad-native-content-display-basic{width:100%;font-family:Roboto,sans-serif;color:#6d747e;text-align:left;background:#fff;position:relative;margin:0 auto;display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic *{line-height:normal}.advertory-shared-ad-native-content-display-basic .ad-info{top:0;right:8px;position:absolute}.advertory-shared-ad-native-content-display-basic .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic .ad-link{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-link:hover{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-header{padding:5px 16px;background-color:#ffcd00;font-size:12px;text-transform:uppercase;color:#495057;font-weight:600}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper{display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{position:relative;padding-bottom:40%}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{display:none}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper{position:absolute;height:100%;width:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper .ad-large-image{object-fit:cover;min-width:100%;height:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content{box-sizing:border-box;display:flex;background-color:#fffae6}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container{flex-grow:1;padding:16px}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:20px;color:#212529;font-weight:600;margin-bottom:16px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:22px}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-sponsor{font-size:11px;color:gray;font-weight:600;text-transform:uppercase}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:none;max-width:175px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:block}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover;max-width:100%}.advertory-shared-ad-native-content-display-basic.article .ad-info{top:0;right:0;position:absolute;border-bottom-left-radius:50%;background:hsla(0,0%,100%,.6)}.advertory-shared-ad-native-content-display-basic.article .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{display:block}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container{padding:8px 16px;border-left:4px solid #ffcd00}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{display:flex;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper .ad-header{padding:2px 4px;font-size:11px}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:15px;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:18px;margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:16px 8px 16px 0}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:0}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:contain}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover}}'),jn('.advertory-abo-ad-native-sponsorstripe{position:absolute;top:0;left:0;width:100%;height:1px;background:inherit;padding:0;margin:0;border:none;text-align:left}.advertory-abo-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:980px;height:30px;padding:5px 15px;margin:auto;font-family:"Helvetica Neue",Arial,Roboto,sans-serif}.advertory-abo-ad-native-sponsorstripe .ad-logo{flex:0;height:20px;max-width:35%;max-height:inherit}.advertory-abo-ad-native-sponsorstripe .ad-title{margin-right:10px;padding-left:34px;font-size:13px;color:#fff}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper{display:grid;position:absolute;place-content:center;height:30px;min-width:30px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{display:inline-block;height:20px;width:20px;position:relative;border:solid 1px #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{content:"i";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:13px}.advertory-abo-ad-native-sponsorstripe .ad-description{font-size:13px;color:#fff;position:absolute;top:0;max-width:980px;min-height:30px;padding:15px 35px 15px 15px;margin-left:-15px;background-color:rgba(0,0,0,.9)}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper{position:absolute;top:15px;right:15px;place-content:center;height:16px;min-width:16px}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button{display:inline-block;height:16px;width:16px;position:relative;border:1px solid #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button:before{content:"✕";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:10px;font-weight:bold}.advertory-abo-ad-native-sponsorstripe .ad-description .ad-description-readmore{color:#c7ecff}.advertory-abo-ad-native-sponsorstripe .ad-description.hide{display:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-sponsorstripe .ad-wrapper{height:50px}.advertory-abo-ad-native-sponsorstripe .ad-wrapper .ad-description{min-height:50px}.advertory-abo-ad-native-sponsorstripe .ad-logo{height:40px}.advertory-abo-ad-native-sponsorstripe .ad-title{font-size:20px;padding-left:40px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{height:30px;width:30px;border-width:2px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{font-size:20px}}');const Xa={NATIVE_TEMPLATE:({containerId:e,url:t,sponsoredBy:n,title:o,img:i,adText:r})=>(Promise.resolve().then(function(){return ys}),`<article class="advertory-no-ad-native-default">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_self">\n <div class="ad-content">\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${i}" />\n </div>\n <div class="ad-text-container">\n <div class="ad-sponsor">\n <span class="ad-label">${r}</span> ${n}\n </div>\n <div class="ad-title">${o}</div>\n </div>\n </div>\n </a>\n </article>`)},Qa={default:Xa.NATIVE_TEMPLATE,content:({containerId:e,url:t,title:n,img:o,imgWidth:i,imgHeight:r,logo:a,imgAltText:d})=>{const s=wt(i,r);return Ka({containerId:e,url:t,title:n,logo:a,imgWidth:i,body:`\n<div class="ad-image-wrapper" ${s?`style="padding-bottom: ${100*s}%"`:""}>\n <img alt="${d}" class="ad-image" src="${o}" />\n</div>`})},contentVideo:(e,t)=>za(({containerId:e,url:t,title:n,logo:o},i,r)=>Ka({containerId:e,url:t,title:n,isContentVideoAd:!0,logo:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),nativeVideo:(e,t)=>za(({containerId:e,url:t,sponsoredBy:n,title:o},i,r)=>(({containerId:e,url:t,sponsoredBy:n,body:o,title:i})=>`\n<div id="${e}" class="advertory-godt-ad-native">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <div class="ad-header">${Ln.no.adFrom} ${n}</div>\n ${o}\n <div class="ad-text">${i}</div>\n </a>\n</div>`)({containerId:e,url:t,sponsoredBy:n,title:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),weeklyMenuVideo:(e,t)=>za(Ja)(e,t,{videoLoop:true,pluginsNames:Ga}),weeklyMenuStripe:({title:e,logo:t})=>`<div class="advertory-godt-ad-weekly-menu-stripe">\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').nextElementSibling;\n\n if (disclaimer.style.display === 'none') {\n disclaimer.style.display = 'block';\n } else {\n disclaimer.style.display = 'none';\n }\n } catch (error) {}\n })(arguments[0]);return false;"\n >\n <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M14.25 16.5h-.75A1.5 1.5 0 0 1 12 15v-3.75a.75.75 0 0 0-.75-.75h-.75M11.625 6.75a.375.375 0 1 0 0 .75.375.375 0 0 0 0-.75v0"/><path clip-rule="evenodd" d="M12 23.25c6.213 0 11.25-5.037 11.25-11.25S18.213.75 12 .75.75 5.787.75 12 5.787 23.25 12 23.25Z" fill-rule="evenodd"/></g></svg>\n </button>\n <div class="disclaimer" style="display: none">\n Annonsøren som presenterer ukemenyen har betalt for profilering av logoen på VG-forsiden og Godt.no, og annonsen mellom oppskriftene.\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les&nbsp;mer\n </a>\n </div>\n </div>`,weeklyMenu:({containerId:e,url:t,img:n,imgAltText:o})=>`<div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <img alt="${o}" class="ad-image" src="${n}" />\n <span class="ad-label">${Ln.no.adText}</span>\n </a>\n</div>`,sponsorstripe:({title:e,logo:t})=>`\n <div class="advertory-godt-sponsorstripe">\n <div class="ad-container">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.add('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path fill="currentColor" d="M9 9.327a1 1 0 1 1 2 0v6a1 1 0 1 1-2 0zM10 4.399a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 .348c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10m-8 10a8 8 0 1 0 16 0 8 8 0 0 0-16 0" clip-rule="evenodd"/></svg>\n </button>\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n </div>\n <div class="disclaimer">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.remove('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 20.07a9.375 9.375 0 1 0 0-18.75 9.375 9.375 0 1 0 0 18.75" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7.25 14.444 7.5-7.5M14.75 14.444l-7.5-7.5"/></svg>\n </button>\n <div>\n Annonsøren som presenterer denne saken har betalt for profilering av fremhevet annonsemateriell i artikler og innhold på Godt.no\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les&nbsp;mer\n </a>\n </div>\n </div>\n </div>`},Ya={displayTemplates:{default:Qa.default,content:Qa.content,"ukesmeny-stripe":Qa.weeklyMenuStripe,ukesmeny:Qa.weeklyMenu,sponsorstripe:Qa.sponsorstripe},videoTemplates:{default:Qa.nativeVideo,content:Qa.contentVideo,menu:Qa.weeklyMenuVideo}},Za={prepareTag:e=>{var t;const{keywords:n,targetId:o,invCode:i,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=v.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=v.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(i,l),u=(e=>{const{pageContext:{countryCode:t}}=v.get(),{keywords:n,dynamicSizeWidthCheck:o}=e,i=`${m(t)}-adformat`,r=n?n[i]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in we)||window.innerWidth>=we[e]);return{[i]:o?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=v.get(),n=`${m(t)}-targetid`;return e?{[n]:[e]}:{}})(o),g=(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),h=Ta(),y=(e=>Aa(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),f=((e,t)=>Aa(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),w=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,b=(new Sa).add(null!=n?n:{}).add(u).add(p).add(null!=g?g:{}).add(y).add(h).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${m(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:w,invCode:c,keywords:b,rendererOptions:f,globalPlacementId:a||c})},preparePageOptions:e=>qe(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=v.get();return yield t===h.SE?Fa(e):Ma(e)}),siteEvents:xt,initNativeAd:(e,t)=>{var n,o,i;if(null===(o=null===(n=null==t?void 0:t.editory)||void 0===n?void 0:n.adNativeBuilder)||void 0===o?void 0:o.enabled)return void Xr(e,t);const{targetId:r}=e;if(!document.querySelector(`#${r}`))return;const{pageType:a=io.FRONT,deviceType:d}=null!==(i=null==t?void 0:t.pageContext)&&void 0!==i?i:{},{nativeTrackingConfig:s,appearanceConfig:l}=null!=t?t:{},c={language:h.NO,publisher:It.GODT,deviceType:d,pageType:a,nativeTrackingConfig:s,appearanceConfig:l};Ca(e,c,Ya)}},ed=((e,t)=>({init:n=>ba(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:fa,getVideoPPIDs:cn,createInitNativeAd:Ea,getVideoAdsConfig:Yi}))(Za,Ct),td=jn("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var nd=Object.freeze({__proto__:null,default:td});jn('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const od={Blink:"Blink"},id=new Map,rd=e=>{var t;if(!id.has(e)){const t=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[t,n]of Object.entries(od)){const o=e[t];null!=o&&(window[n]=o)}})(e)).catch(t=>{throw id.delete(e),t});id.set(e,t)}return null!==(t=id.get(e))&&void 0!==t?t:Promise.resolve()},ad="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",dd=(e,t)=>{const{siteSpecificConfig:{publisherClassName:n}={},pageContext:{pageType:o}}=v.get(),i=document.querySelector(`#${e}`);if(!i)return;if(i.classList.add("disable-cogwheel"),!n)return;rr(n,i,ar,null!=t?t:o);vt({preferredTestIdData:{targetId:e,testId:"finn"}})},sd=e=>{const{pageContext:{publisher:t=""}}=v.get(),n=document.querySelector(`#${e}`);if(!n)return;const o=`-${t}`;n.classList.remove(`advertory${o}-finn-blink`),n.classList.remove(`advertory${o}-finn-blink-wrapper`)};var ld=Object.freeze({__proto__:null,displaySpecialFormatsForFinnFallback:e=>{const{fullscreenScroll:t}=v.get(),{initNativeAd:n}=v.getHandlers();be(e)&&Dn(e,t),ke(e)&&(null==n||n(e,v.get()))},finnBlinkLoaded:dd,xandrAdLoaded:sd});const cd=e=>{var t,n;const o=document.querySelector(`[id^="${e}"]`);return null!==(n=null===(t=null==o?void 0:o.dataset)||void 0===t?void 0:t.finnBlinkId)&&void 0!==n?n:e},ud=(e,t)=>{const{finnBlink:{enabled:n}={}}=v.get(),o=(null==t?void 0:t.enabled)||(e=>{var t;const n=document.querySelector(`[id^="${e}"]`);return!!(null===(t=null==n?void 0:n.dataset)||void 0===t?void 0:t.noBidAd)})(e);if(!o||!n)return null;const{height:i,requireImage:r,position:a,offset:d}=(null==t?void 0:t.sdkPayload)||{};return{selector:`#${cd(e)}`,enabled:o,position:null!=a?a:e,height:null!=i?i:100,offset:null!=d?d:200,requireImage:r,advertoryTheme:null==t?void 0:t.advertoryTheme}},pd=(e,t,n)=>qe(void 0,void 0,void 0,function*(){const{placements:o,pageContext:{deviceType:i},appearanceConfig:r}=v.get();s(`rendering finn blink ad for ${e}`);const a=x(e),d=o[i].find(e=>e.targetId===a),l=ud(e,null==d?void 0:d.finnBlink);if(!(null==l?void 0:l.enabled))return s(`Finn blink is not enabled on placement: ${e}`),n&&n(e),void sd(e);if((e=>{var t;const n=cd(e),o=document.querySelector(`[id^="${n}"]`);return!!(null===(t=null==o?void 0:o.classList)||void 0===t?void 0:t.contains("finn"))})(e))return void s(`Finn blink already loaded ${e}`);const{publisher:c,countryCode:u,finnBlink:p}=t,{sdkPayload:{channel:g}={}}=null!=p?p:{},h=null!=g?g:`${c}.${u}`,m="dark"===(null==r?void 0:r.theme)?"dark":"light";try{const e=yield qe(void 0,void 0,void 0,function*(){const{ppid1:e}=on.getPPIDs();return e});yield(y=Object.assign(Object.assign({},l),{channel:h,userId:e,theme:m}),qe(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=y,n=Ne(y,["userId","theme"]),o=window[od.Blink];if(!o)return;const i=new o({remote:"https://www.finn.no/distribution-front/external/carousel",userId:e,theme:t});yield i.inject(Object.assign({},n))})),dd(l.selector.replace("#",""),l.advertoryTheme)}catch(t){s(`Finn blink error ${t}`),n&&n(e),!n&&z(e),sd(e)}var y}),vd=()=>qe(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=v.get();return!!(yield Ue(e,t,n,"finn-blink"))||(s("Skip loading finn blink ad due to missing TCF consent."),!1)}),gd=(e,t)=>{var n;(s(`Appending ${t.id} after ${e.id}`),e.parentElement&&(n=e.parentElement,!Array.from(n.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",t)):s(`Cannot perform afterend on: ${e.id}`)},hd=e=>document.querySelector(`#${e}`);var md=Object.freeze({__proto__:null,handleFinnBlinkOnlyPlacements:e=>qe(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:n}}=v.get(),o=null==t?void 0:t.defaultThreshold[n];for(const t of e){const{requestThreshold:e,targetId:n}=t,i=hd(n);i&&(yield Mo(i,null!=e?e:o))}}),loadFinnBlinkAd:(e,t,n,o)=>qe(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=v.get();if(s(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield vd())||i)return n&&n(e),sd(e),void(!n&&z(e));try{yield rd(ad)}catch(e){console.error(e)}yield pd(e,t,n),o&&o()}),replaceAdsWithFinnBlink:(e,t)=>qe(void 0,void 0,void 0,function*(){var n,o;if(!t)return;const{replacementConfig:i}=t,r=null===(n=null==i?void 0:i.adsToReplace)||void 0===n?void 0:n[e],a=null===(o=null==i?void 0:i.sizes)||void 0===o?void 0:o[e];ko()&&r&&a?(yield vd())&&(yield rd(ad),r.forEach(([e,t])=>{const n=document.querySelector(`[id^="${e}"]`);if(!n)return;const o=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=v.get(),n=document.createElement("div"),o=document.createElement("div");return o.id=e,n.appendChild(o),rr(t,o,ar),s(`Creating blink container for: ${e}`),n})(t);(e=>{s(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(n),gd(n,o),n.dataset.finnBlinkId=t,qo().withFullAdsChain(e)})):s(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)})});const yd=1e4,fd=e=>e.some(e=>e.some(e=>!!e&&Xo(e,0)));let wd;var bd=Object.freeze({__proto__:null,initWidescreenSwitching:()=>{const{widescreenSwitching:e}=v.get(),{enabled:t,options:{rotationInterval:n=yd,widescreenIdPrefix:o}={}}=null!=e?e:{};if(!t)return;const i=((e="widescreen")=>{const{pageSectionsSelectors:{right:t}={}}=v.get();return t?Array.from(document.querySelectorAll(t)).map(t=>Array.from(t.querySelectorAll(`div[id^="${e}"]`))):[]})(o);let r=0,a=Date.now(),d=fd(i);if(!i.length)return;wd&&window.removeEventListener("scroll",wd);const s=(e,t,n)=>{e.forEach(e=>{e&&e.style.setProperty(t,n)})},l=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(i);const c=((e,t)=>{let n=null;return(...o)=>{null===n&&(e(...o),n=setTimeout(()=>{n=null},t))}})(()=>{d||(d=fd(i)||d,a=Date.now());Date.now()-a>=n&&((()=>{const e=l(r),t=i.map(e=>e[r]),n=i.map(t=>t[e]);s(t,"opacity","0"),setTimeout(()=>{s(t,"display","none"),s(n,"opacity","0"),s(n,"display","block"),setTimeout(()=>{s(n,"opacity","1")},450)},450)})(),r=l(r),a=Date.now())},1e3);wd=c,window.addEventListener("scroll",c)}});const kd="#fff",xd="#0098da",Id=(e,t=!0)=>{(e===We||e===Ke)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},Cd=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},Ed=e=>{document.body.style.overflow=e?"initial":"hidden"},Td=e=>{const t=Sd(e),n=Ad(e);(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),Ed(!0),e.style.display="none",window.removeEventListener("keydown",t),window.removeEventListener("advertory:closeTakeover",n)},Ad=e=>{const t=()=>Td(e);return window.addEventListener("advertory:closeTakeover",t),Cd(),t},Sd=e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&Td(e)};return Cd(),window.addEventListener("keydown",t),t},Pd=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&(Sd(e),Ad(e),Cd(),t.addEventListener("click",()=>{Td(e)}),Ed(!1))},Od=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),Ad(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},jd=e=>{(e=>{window.addEventListener("advertory:closeTakeover",()=>Td(e))})(e)},$d=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=v.get(),n=e.querySelectorAll(".advertory-splash-navbar-wrapper"),o=document.querySelector(".advertory-takeover-label");Array.from(n).forEach(e=>e.style.display="flex"),t&&o&&(o.style.display="flex",o.innerText=Ln.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},Ld=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Ln.no.adText,n.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},_d=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Ln.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},Nd=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=Ln.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},qd=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var n;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(n=Array.from(e.target.classList))&&void 0!==n?n:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},Md=(e,t)=>{let n=e;return e.includes("529299503")&&(n=(e=>{const t=document.createElement("script");return t.textContent=`(${ct})()`,e+t.outerHTML})(e)),n=bn(n),n};var Dd=Object.freeze({__proto__:null,createTakeoverAd:e=>qe(void 0,void 0,void 0,function*(){const{takeover:t}=v.get(),{targetId:n}=e,o=document.querySelector(`#${n}`),i=document.querySelector(".advertory-takeover-wrapper");if(!o||!i||!t)return;const r=rt(e),a=i.offsetHeight,d=window.scrollY>a;i.style.display="block",!d&&Id(r,!1),((e,t)=>{({[We]:_d,[He]:$d,[Ke]:Ld,[Ge]:Nd})[t](e)})(i,r),qd(),((e,t)=>{({[We]:Od,[Ke]:Od,[He]:Pd,[Ge]:jd})[t](e)})(i,r),((e,t,n)=>{if(!n)return;({[We]:()=>{const{buttonLabel:o}=st(n,t);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(n.innerText=null!=o?o:"")})},[He]:()=>{const{themeColors:o,logotype:i,buttonLabel:r,showArrowIcon:a}=st(n,t);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const n=e.querySelector(`${t}`);if(n){if("#advertory-splash-close-label"===t&&(n.innerText=null!=r?r:""),".advertory-splash-close"===t&&a){const e=document.createElement("img");e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAfQAAAH0Bx0gPAAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABzSURBVDiNtdPJCYBADEDRzzRmE3ZgEV6tRHHpzELiIQrBZRajA7lk4EE2RIQjgApYgdbmY8EJaADZo3sDBKAvQa4JRYZc5D6pyJiDPMuKTCkkXp8icwxJd1mRxSC1/Q94328luJroGqNrkdyrzAfHVHzOG+8CKlLk+LO+AAAAAElFTkSuQmCC"),e.setAttribute("alt","close ad"),n.appendChild(e)}if("#advertory-splash-logotype"===t&&i&&(n.setAttribute("src",i.url),n.setAttribute("alt",i.alt)),".advertory-splash-navbar-wrapper"===t&&o){const{backgroundColor:e,color:t}=o;n.style.setProperty("background-color",null!=e?e:kd,"important"),n.style.color=null!=t?t:xd}}})},[Ke]:()=>{const{buttonLabel:o,showArrowIcon:i,showCloseButton:r=!0}=st(n,t);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(".advertory-topscroller-close"!==t||r||(n.style.display="none"),"#advertory-topscroller-scroll-image"!==t||i||(n.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(n.innerText=null!=o?o:""))})},[Ge]:()=>{}})[t]()})(i,r,t),yield at(),!d&&Id(r,!0),lt(e,r)}),modifyTakeoverAdContent:e=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=yn(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=yn(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Md(t))},modifyTakeoverIframe:(e,t)=>{var n;const o="100%",i="100%";e.resizeAd(t,[o,i]);const r=null===(n=document.querySelector(`#div_utif_${t}`))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(r),t=e.width,n=e.height;t===o&&n===i||(r.style.width=o,r.style.height=i)}}).observe(r,{attributes:!0,attributeFilter:["style"]})}});const Bd=(e,t)=>{t.left&&(e.style.left=t.left),t.marginLeft&&(e.style.marginLeft=t.marginLeft)},Fd=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:r,fullWidthFormatClassName:a}={},fullWidth:d,pageContext:{deviceType:s}}=v.get();if(!i)return null;const l=i.parentElement;if(i.style.width=mt(s)?"100vw":"100%",i.style.position="relative",l&&(l.style.width=mt(s)?"100vw":"100%",l.style.position="relative"),r&&a){const e=`advertory-${r}-${a}`;i.classList.add(`${e}__${t}`),null==l||l.classList.add(`${e}-wrapper__${t}`)}const c=null===(o=null===(n=null==d?void 0:d.options)||void 0===n?void 0:n.styles)||void 0===o?void 0:o[s],u=(null==d?void 0:d.enabled)&&c;return!u&&l&&mt(s)&&(l.style.left="50%",l.style.marginLeft="-50vw"),u&&c.adContainer&&Bd(i,c.adContainer),u&&c.adContainerWrapper&&l&&Bd(l,c.adContainerWrapper),i},Rd=(e,t,n,o)=>{const i=Fd(e,o);if(!i)return;const r=i.querySelector("iframe"),a=null==r?void 0:r.parentElement;if(!r||!a)return;const d=i.offsetWidth,s=d/e.width;a.style.transform=`scale(${s})`,a.style.transformOrigin="left top";const l=Math.round(d/t*n);i.style.height=`${l}px`};var Ud=Object.freeze({__proto__:null,applyFullsquareFormat:e=>{Rd(e,1080,1080,"fullsquare-ad")},applyFullwidthFormat:e=>{const t=Fd(e,"fullwidth-ad");if(!t)return;const n=t.querySelector("iframe");if(!n)return;const{deviceType:o}=v.get().pageContext;n.style.width=mt(o)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=mt(o)?"100vw":"100%")},applyNinesixteenFormat:e=>{Rd(e,1080,1920,"ninesixteen-ad")}});const zd=e=>e===h.NO?"schibsted":"schibstedse";var Vd=Object.freeze({__proto__:null,getCampaign:zd,loadNorstat:()=>qe(void 0,void 0,void 0,function*(){const{norstat:{enabled:e}={},pageContext:{countryCode:t,isMobileApp:n},tcf:o}=v.get(),i=yield Ue(o,n,t,"norstat");if(!e||n||!i)return;const r=(e=>{const{ppid1:t,ppid2:n}=nn.getPPIDs(),{ppid1:o,ppid2:i}=on.getPPIDs(),r=(new tn).add(n,Gt[e]).add(t,Jt[e]).add(i,Xt[e]).add(o,Qt[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`})(t);((e,t,...n)=>{qe(void 0,[e,t,...n],void 0,function*(e,t,n=!0){if(document.getElementById(t))return;const o=document.createElement("img");o.src=e,o.id=null!=t?t:"",n&&(o.style.display="none"),document.body.appendChild(o)})})(`https://sch-map.norstatsurveys.com/api/nids/${zd(t)}/map/${r}`,"norstat")})});const Hd=".advertory-right-column-track",Wd="--advertory-right-column-track-height",Kd=e=>e.getBoundingClientRect().top+window.scrollY,Gd=(e,t)=>`${e}-${t}`,Jd=(e,t,n)=>{var o;const i=Array.from(null!==(o=e.querySelectorAll(t))&&void 0!==o?o:[]),r=(e=>e.map(e=>{var t;return null===(t=document.querySelector(`[id^="${e}"]`))||void 0===t?void 0:t.parentElement}).map((e,t)=>({point:e,originalIndex:t})).filter(e=>Boolean(e.point)))(n);if(0===r.length)return;const a=Kd(e);r.forEach(({point:e,originalIndex:t})=>{((e,t,n)=>{const o=Kd(e),i=Gd(Wd,t),r=o-n,a=Gd("--advertory-right-column-split-point-height",t),d=na(e);oa({[i]:ta(r),[a]:ta(d)})})(e,t+1,a),(e=>{const t=null==e?void 0:e.id;if(!t)return;const n=Gd("--advertory-right-column-ad-height",t),o=na(e);oa({[n]:ta(o)})})(i[t])});((e,t)=>{const n=Kd(e)-t;oa({[Wd]:ta(n)})})(r[Math.min(i.length,r.length-1)].point,a)};let Xd=!1;var Qd=Object.freeze({__proto__:null,initRightColumnSplit:e=>{if(!(null==e?void 0:e.enabled)||Xd)return;const{splitPointIDs:t,adSelector:n,trackSelector:o=Hd}=e,i=document.querySelector(o);if(!i)return;Xd=!0;const r=()=>{Jd(i,n,t)};r(),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),window.addEventListener("load",r),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(r)});new ResizeObserver(r).observe(i)}});class Yd{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:o,pathname:i}=new URL(n);if(!o.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const r=i.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class Zd{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}class es{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t){return{}}parseKilkayaData(e){const t=e.querySelector("article");if(!t)return{};const n=t.dataset.k5aTeaserAnalytics;try{return n?JSON.parse(n):{}}catch(e){return{}}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(e){const{url:t,title:n,itemId:o}=this.parseKilkayaData(e);return{id:o,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return qe(this,void 0,void 0,function*(){var t,n,o,i,r,a,d,s,l;const c=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(c),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)?null===(i=null===(o=this.pulse)||void 0===o?void 0:o.trackLegacyViewUIElement)||void 0===i||i.call(o,u):(null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)?null===(d=null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)||void 0===d||d.call(a,u):null===(l=null===(s=this.pulse)||void 0===s?void 0:s.trackElementView)||void 0===l||l.call(s,u)})}trackContentClick(e){return qe(this,void 0,void 0,function*(){var t,n,o,i,r,a;if(!this.pulse)return;const d=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(n=(t=this.pulse).trackLegacyClickUIElement)||void 0===n||n.call(t,d):this.pulse.trackClickUIElement?null===(i=(o=this.pulse).trackClickUIElement)||void 0===i||i.call(o,d):null===(a=(r=this.pulse).trackElementClick)||void 0===a||a.call(r,d)})}}class ts extends es{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e){var t,n,o,i,r,a;const{clientName:d,creativeId:s,itemId:l,placement:c}=this.parseKilkayaData(e),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(o=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getPulseObjectId)||void 0===o?void 0:o.call(n))&&void 0!==i?i:c,"@type":"UIElement",position:c,elementType:"Article",custom:{customer:d,creativeId:null!=s?s:l},page:{"@id":null!=p?p:c,"@type":u,url:location.origin},tags:null===(a=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getTags)||void 0===a?void 0:a.call(r,e)}}getEventTarget(e){const{link:t,itemId:n,title:o}=this.parseKilkayaData(e);return{id:n,name:this.normalizePlacementTitle(null!=o?o:""),type:"Page",url:t}}getEventInput(e,t){return{object:this.getEventBaseData(e),partnerstudio:this.getEventPartnerstudioData(e,t),target:this.getEventTarget(e),provider:this.getProviderData()}}getEventPartnerstudioData(e,t){const n=this.parseKilkayaData(e);return Object.assign(Object.assign({},n),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const ns="[data-k5a-teaser-analytics]",os=(e,t,n)=>{const o=document.querySelectorAll("k5a-stream");if(!o.length)return;const i=new ts(e,t,n),r=new WeakMap,a=e=>{const t=r.get(e);t&&(t.disconnect(),r.delete(e))},d=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(!e.isIntersecting)return;const n=e.target,o=n.querySelector(ns);Boolean(null==o?void 0:o.dataset.k5aTeaserAnalytics)?(i.trackContentView(n),t.unobserve(e.target),a(n)):((e,t)=>{if(r.has(e))return;const n=new MutationObserver(()=>{const n=e.querySelector(ns);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)&&(i.trackContentView(e),t.unobserve(e),a(e))});n.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),r.set(e,n)})(n,t)})},{threshold:.5});o.forEach(e=>{d.observe(e),e.addEventListener("click",()=>i.trackContentClick(e))})},is=/^glci_/,rs="gender_",as="geo_",ds="male",ss="female",ls=()=>qe(void 0,void 0,void 0,function*(){try{const t=yield(e=500,qe(void 0,void 0,void 0,function*(){return Promise.race([yo(),new Promise(t=>setTimeout(()=>t(void 0),e))])})),n=new fo(t),o=yield n.getIdentityUser(),{gender:i}=null!=o?o:{};return i===ds||i===ss?`${rs}${i}`:void 0}catch(e){return}var e}),cs=()=>qe(void 0,void 0,void 0,function*(){const e=[],t=yield ls(),n=(()=>{const e=Ft().map(e=>`${as}${e.replace(is,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class us{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===io.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:o}=new URL(n),i=o.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class ps{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class vs{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class gs{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class hs{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n}}){if(!(null==e?void 0:e.instance))return;const o={[It.VG]:new Yd,[It.E24]:new us,"no-aftenposten":new ps,[It.BT]:new vs,"no-bergenstidende":new vs,[It.SA]:new gs,"no-stavangeraftenblad":new gs}[n]||new Zd;os(e.instance,o,t)}injectKilkayaMeta(e){return qe(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield cs();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(s(`Kilkaya event for slot: ${n}`),!n)return void s("Kilkaya slot empty, Xandr backfill won't be loaded");const o=n.parentElement;o?(s(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(o)):s("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";V(o)}loadKilkayaScript(e){return qe(this,void 0,void 0,function*(){yield un(e)})}run(e){return qe(this,void 0,void 0,function*(){var t,n;const{tcf:o,pageContext:{isMobileApp:i,countryCode:r},kilkaya:a}=e;if(!(null==a?void 0:a.enabled))return;const d=yield Ue(o,i,r,"kilkaya");d&&(this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(d),yield this.loadKilkayaScript(null!==(n=null===(t=a.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(e))})}}var ms=Object.freeze({__proto__:null,Kilkaya:({placementName:e,slotTag:t,fallbackTargetId:o,children:i,pulseData:r,htmlAttributes:a})=>{const d=(e,t)=>{const n={};if(!e)return n;for(const[o,i]of Object.entries(e)){n[t?`${t}-${o}`:o]=String(i)}return n},s=d(r,"data-pulse"),l=d(a,"data");return n.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},s,l,{children:[n.jsx("div",{className:"inscreen-target"}),n.jsx("k5a-stream",{name:e,"slot-tag":t}),n.jsx("div",{className:"container"}),n.jsx("div",{className:"fallback","data-fallback-target-id":o,style:{display:"none"},children:i})]}))},runKilkaya:e=>qe(void 0,void 0,void 0,function*(){const t=new hs;yield t.run(e)})});jn('.advertory-no-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#dfdfdf;font-family:"Inter",sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;font-size:14px}@media screen and (min-width: 768px){.advertory-no-ad-native-default{width:580px;height:400px}}.advertory-no-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-default .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-default .ad-content{display:block}.advertory-no-ad-native-default .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}.advertory-no-ad-native-default .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-default .ad-text-container{background:#f5faff;overflow:auto;padding:8px}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-default .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}.advertory-vg-native-ad__front .advertory-no-ad-native-default{width:100%;height:auto}.advertory-aftenposten-native-ad-wrapper__front{justify-content:center}.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(-40px + 4rem)}@media screen and (min-width: 768px){.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(12px + .75rem)}}');var ys=Object.freeze({__proto__:null});module.exports=ed;