@schibsted/advertory 3.17.3 → 3.19.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 (514) 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 +25 -4
  6. package/aftenposten/cjs/index.js +1 -1
  7. package/aftenposten/es/_auto-entry_aftenposten-Tve0PdPg.js +1 -0
  8. package/aftenposten/es/{events-BakZyPiF.js → events-xQDHepfd.js} +1 -1
  9. package/aftenposten/es/identity-facade-B1A7Z8yI.js +1 -0
  10. package/aftenposten/es/{index-DE2eFbE4.js → index-BFDpivf7.js} +1 -1
  11. package/aftenposten/es/{index-B0weyrUI.js → index-BR2fDQ3t.js} +1 -1
  12. package/aftenposten/es/{index-DmAryKai.js → index-C8BGU0H-.js} +1 -1
  13. package/aftenposten/es/index-CEc919BP.js +1 -0
  14. package/aftenposten/es/{index-BqtiIE9j.js → index-DLSHhMHq.js} +1 -1
  15. package/aftenposten/es/{index-Ci5Fq3pY.js → index-DbMF7ZzI.js} +1 -1
  16. package/aftenposten/es/index-DdQ7ku5W.js +1 -0
  17. package/aftenposten/es/{index-Y61-K0-j.js → index-DoNUR1U3.js} +1 -1
  18. package/aftenposten/es/index.d.ts +25 -4
  19. package/aftenposten/es/index.js +1 -1
  20. package/aftenposten/es/{styles-B3DQSVEX.js → styles-BNvjI7Zm.js} +1 -1
  21. package/aftenposten/es/{styles-BP8RnxXT.js → styles-BfymPmLm.js} +1 -1
  22. package/aftenposten/es/{styles-pDM1TuiG.js → styles-C-DhtppN.js} +1 -1
  23. package/aftenposten/es/{styles-Cnb69FPt.js → styles-CCqSli4X.js} +1 -1
  24. package/aftenposten/es/{styles-DbkR_81Z.js → styles-CJ54OWq6.js} +1 -1
  25. package/aftenposten/es/{styles-fSCaFYq3.js → styles-Cmayky32.js} +1 -1
  26. package/aftenposten/es/{styles-DCGX00AR.js → styles-Cu6_bWyx.js} +1 -1
  27. package/aftenposten/es/{styles-Dc-23vIm.js → styles-DWHjxzlg.js} +1 -1
  28. package/aftenposten/es/{styles-DXaafc97.js → styles-D_weffQF.js} +1 -1
  29. package/aftenposten/es/{styles-BMgTMPVA.js → styles-DuXHeE-l.js} +1 -1
  30. package/aftenposten/es/{styles-w7N9sIkQ.js → styles-K7tpE8_Y.js} +1 -1
  31. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-DWtGX9qk.js +1 -0
  32. package/aftenpostenv2/es/{events-vFxFcBFY.js → events-DtEgEZu5.js} +1 -1
  33. package/aftenpostenv2/es/identity-facade-Cqco51UF.js +1 -0
  34. package/aftenpostenv2/es/{index-BNsm3sza.js → index-1bMBECFZ.js} +1 -1
  35. package/aftenpostenv2/es/{index-BORfNCfl.js → index-Bm7xOUah.js} +1 -1
  36. package/aftenpostenv2/es/{index-C6o6H3rD.js → index-CeVnQlsp.js} +1 -1
  37. package/aftenpostenv2/es/index-DSjPd2s4.js +1 -0
  38. package/aftenpostenv2/es/index-DnJSE16l.js +1 -0
  39. package/aftenpostenv2/es/{index-bu82MskF.js → index-FNm09Hu5.js} +1 -1
  40. package/aftenpostenv2/es/{index-BzIPIQlR.js → index-gy-9pNJD.js} +1 -1
  41. package/aftenpostenv2/es/{index-CE3zyO-s.js → index-rvkEfm4F.js} +1 -1
  42. package/aftenpostenv2/es/index.d.ts +25 -4
  43. package/aftenpostenv2/es/index.js +1 -1
  44. package/aftenpostenv2/es/{styles-C9KcvIrm.js → styles--ODSHkGx.js} +1 -1
  45. package/aftenpostenv2/es/{styles-CfDUxRlT.js → styles-3ZwXsuxG.js} +1 -1
  46. package/aftenpostenv2/es/{styles-Bo1Osfh2.js → styles-BQirFtLP.js} +1 -1
  47. package/aftenpostenv2/es/{styles-D9mUlhzN.js → styles-BZw7HTv7.js} +1 -1
  48. package/aftenpostenv2/es/{styles-C3tA1qVG.js → styles-CYRnGCOf.js} +1 -1
  49. package/aftenpostenv2/es/{styles-Dod5Pact.js → styles-CoE8ldJR.js} +1 -1
  50. package/aftenpostenv2/es/{styles-DSZABaqe.js → styles-Cx18n8ID.js} +1 -1
  51. package/aftenpostenv2/es/{styles-CpTRDnEr.js → styles-DJAn92kg.js} +1 -1
  52. package/aftenpostenv2/es/{styles-Bv3fC79e.js → styles-DrPAORY8.js} +1 -1
  53. package/aftenpostenv2/es/{styles-DGYGS77o.js → styles-fzCBUGam.js} +1 -1
  54. package/aftenpostenv2/es/{styles-CrKxUXak.js → styles-v_gZvJl3.js} +1 -1
  55. package/aftonbladet/cjs/index.d.ts +25 -4
  56. package/aftonbladet/cjs/index.js +1 -1
  57. package/aftonbladet/es/_auto-entry_aftonbladet-gwuJYn5k.js +1 -0
  58. package/aftonbladet/es/{events-CllJmzBm.js → events-Dn4HgHY0.js} +1 -1
  59. package/aftonbladet/es/identity-facade-YCmvHQL4.js +1 -0
  60. package/aftonbladet/es/{index-CQZ4fqal.js → index-9s1OEytQ.js} +1 -1
  61. package/aftonbladet/es/{index-BtWKibaA.js → index-C8L28Sbb.js} +1 -1
  62. package/aftonbladet/es/{index-CNg6LTKO.js → index-CNoND9KG.js} +1 -1
  63. package/aftonbladet/es/{index-DSWRH1Jg.js → index-D-l1zaRE.js} +1 -1
  64. package/aftonbladet/es/index-D7tEeN2y.js +1 -0
  65. package/aftonbladet/es/{index-BMrgDbpw.js → index-DxIRmf9j.js} +1 -1
  66. package/aftonbladet/es/index-Hmt-WETp.js +1 -0
  67. package/aftonbladet/es/{index-DxCSaps1.js → index-lHJ8rPdO.js} +1 -1
  68. package/aftonbladet/es/index.d.ts +25 -4
  69. package/aftonbladet/es/index.js +1 -1
  70. package/aftonbladet/es/{styles-BaT7xTNZ.js → styles-4zXciFo4.js} +1 -1
  71. package/aftonbladet/es/{styles-Ds_pdjCT.js → styles-BLS5TzS8.js} +1 -1
  72. package/aftonbladet/es/{styles-DSuXLA-G.js → styles-C_NEx-3s.js} +1 -1
  73. package/aftonbladet/es/{styles-w-g-y6lI.js → styles-D4M4fmOm.js} +1 -1
  74. package/aftonbladet/es/{styles-DajJqIJ6.js → styles-DkBKPNDs.js} +1 -1
  75. package/aftonbladet/es/{styles-D9Tu4mQ5.js → styles-Dkb_Bh3e.js} +1 -1
  76. package/aftonbladet/es/{styles-CYGn0uwQ.js → styles-DuNRDVxB.js} +1 -1
  77. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-DaiGRw9V.js +1 -0
  78. package/aftonbladetv2/es/{events-BTQYlE4z.js → events-BcI_eHc7.js} +1 -1
  79. package/aftonbladetv2/es/identity-facade-C2_1gsAa.js +1 -0
  80. package/aftonbladetv2/es/{index-C5NPR1-m.js → index-7IyWH9Pi.js} +1 -1
  81. package/aftonbladetv2/es/{index-CI4mHGgl.js → index-BPVgqjSK.js} +1 -1
  82. package/aftonbladetv2/es/index-BrbM5bYX.js +1 -0
  83. package/aftonbladetv2/es/{index-DKIljxtC.js → index-C87hTI7W.js} +1 -1
  84. package/aftonbladetv2/es/{index-BVz8_dGm.js → index-D1j_NWjg.js} +1 -1
  85. package/aftonbladetv2/es/index-D6cUOv7e.js +1 -0
  86. package/aftonbladetv2/es/{index-DGryPq5p.js → index-Deh_hDuT.js} +1 -1
  87. package/aftonbladetv2/es/{index-DLKbIJ-6.js → index-DfiXnG3N.js} +1 -1
  88. package/aftonbladetv2/es/index.d.ts +25 -4
  89. package/aftonbladetv2/es/index.js +1 -1
  90. package/aftonbladetv2/es/{styles-BHjBufYm.js → styles-B17PRnLw.js} +1 -1
  91. package/aftonbladetv2/es/{styles-BhGxCZKJ.js → styles-BK5VBwQb.js} +1 -1
  92. package/aftonbladetv2/es/{styles-DNvKyAG2.js → styles-BVD-shyq.js} +1 -1
  93. package/aftonbladetv2/es/{styles-Dm48yxHj.js → styles-CIwSexMs.js} +1 -1
  94. package/aftonbladetv2/es/{styles-CtZYGlVa.js → styles-ClbFUK7m.js} +1 -1
  95. package/aftonbladetv2/es/{styles-BuDgf6Qh.js → styles-D5Hbe4BD.js} +1 -1
  96. package/aftonbladetv2/es/{styles-LIJqt1Fs.js → styles-DoMnjSM2.js} +1 -1
  97. package/brandmetrics/cjs/index.js +1 -1
  98. package/brandmetrics/es/index.js +1 -1
  99. package/bt/cjs/index.d.ts +25 -4
  100. package/bt/cjs/index.js +1 -1
  101. package/bt/es/_auto-entry_bt-D1MD_xdz.js +1 -0
  102. package/bt/es/{events-QdGrCsME.js → events-YRqEmDeJ.js} +1 -1
  103. package/bt/es/identity-facade-BjI4-cFT.js +1 -0
  104. package/bt/es/{index-DE5oE3LU.js → index-78QagF5C.js} +1 -1
  105. package/bt/es/{index-BNwzTf_4.js → index-B3i9CLRJ.js} +1 -1
  106. package/bt/es/{index-CbsaLJJs.js → index-BMuNECOp.js} +1 -1
  107. package/bt/es/index-BOCFWXjz.js +1 -0
  108. package/bt/es/{index-BPq3-G1u.js → index-CJms3bV6.js} +1 -1
  109. package/bt/es/{index-BEn9Oc7O.js → index-D31HelSe.js} +1 -1
  110. package/bt/es/{index-CWyqinTF.js → index-DPURtZv7.js} +1 -1
  111. package/bt/es/index-vl1Q4LBE.js +1 -0
  112. package/bt/es/index.d.ts +25 -4
  113. package/bt/es/index.js +1 -1
  114. package/bt/es/{styles-D0rpulrE.js → styles-BByyc3sq.js} +1 -1
  115. package/bt/es/{styles-DpUy4TjI.js → styles-BVlkZfXV.js} +1 -1
  116. package/{sa/es/styles-BGNGJdjv.js → bt/es/styles-C1RQLfGY.js} +1 -1
  117. package/bt/es/{styles-C-HKDal6.js → styles-CkzFP96P.js} +1 -1
  118. package/{vg/es/styles-DO48QaHN.js → bt/es/styles-Cxm0surD.js} +1 -1
  119. package/bt/es/{styles-B_CfTWpC.js → styles-D8GThw3e.js} +1 -1
  120. package/bt/es/{styles-Dz_mjOky.js → styles-D8ovgsaK.js} +1 -1
  121. package/bt/es/{styles-CGeziON4.js → styles-DQtRkDqG.js} +1 -1
  122. package/bt/es/{styles-DUX9_U_G.js → styles-Dsk0btPX.js} +1 -1
  123. package/bt/es/{styles-K_Cy-GX8.js → styles-Qg4AW4zT.js} +1 -1
  124. package/btv2/es/_auto-entry_btv2-4dXVMldo.js +1 -0
  125. package/{sav2/es/events--V9H3X-z.js → btv2/es/events-DMH43tLi.js} +1 -1
  126. package/btv2/es/identity-facade-BhICwE-t.js +1 -0
  127. package/btv2/es/{index-p-Wu9qmN.js → index-C4AnfrKp.js} +1 -1
  128. package/btv2/es/index-CWZH5cCc.js +1 -0
  129. package/{omni/es/index-C3Q814r2.js → btv2/es/index-C_4mn5_g.js} +1 -1
  130. package/btv2/es/{index-_1WEzNOh.js → index-DAFsfJ9t.js} +1 -1
  131. package/{sav2/es/index-D4Hxkads.js → btv2/es/index-DAOWTrWO.js} +1 -1
  132. package/btv2/es/{index-4ysd4A7K.js → index-DFGzN5x9.js} +1 -1
  133. package/btv2/es/{index-DQCYe43A.js → index-hRBAHHA1.js} +1 -1
  134. package/btv2/es/index-l1O-tlpN.js +1 -0
  135. package/btv2/es/index.d.ts +25 -4
  136. package/btv2/es/index.js +1 -1
  137. package/btv2/es/{styles-BwgZ6h4w.js → styles-BVRqiO2h.js} +1 -1
  138. package/{sav2/es/styles-CpXnuTL4.js → btv2/es/styles-BkMkQCbs.js} +1 -1
  139. package/btv2/es/{styles-B8bkA3_5.js → styles-CMKS_Jvj.js} +1 -1
  140. package/{sav2/es/styles-jXzGh7gC.js → btv2/es/styles-CVrRZHar.js} +1 -1
  141. package/btv2/es/{styles-DAHadlhX.js → styles-Dg9ALvok.js} +1 -1
  142. package/btv2/es/{styles-Bc9_7msJ.js → styles-Ds8u5Def.js} +1 -1
  143. package/{sav2/es/styles-WFP5Fozc.js → btv2/es/styles-UOd4vRaH.js} +1 -1
  144. package/{vgv2/es/styles-DtKJ-J7F.js → btv2/es/styles-a3-2JcCe.js} +1 -1
  145. package/btv2/es/{styles-DyFP9zsK.js → styles-uRz4QDyG.js} +1 -1
  146. package/common/cjs/index.js +1 -1
  147. package/common/es/index.js +1 -1
  148. package/e24/es/_auto-entry_e24-BlFIZILi.js +1 -0
  149. package/e24/es/{events-CtniS6m3.js → events-CwvQGu-m.js} +1 -1
  150. package/e24/es/{index-CIlYOp5N.js → index-BbGstTBs.js} +1 -1
  151. package/e24/es/{index-DKfGdWTL.js → index-BmM9Q_Fm.js} +1 -1
  152. package/e24/es/{index-CfS9YWLe.js → index-Cmi93XZ-.js} +1 -1
  153. package/e24/es/{index-BM2r1wLq.js → index-Cy5SA-Ed.js} +1 -1
  154. package/e24/es/index-D-uX9uoo.js +1 -0
  155. package/e24/es/index-DDX95Sij.js +1 -0
  156. package/e24/es/{index-4Zm0Grmh.js → index-DG9t2woh.js} +1 -1
  157. package/e24/es/{index-Ci-qNYB_.js → index-DS6u_jwd.js} +1 -1
  158. package/e24/es/index.d.ts +25 -4
  159. package/e24/es/index.js +1 -1
  160. package/e24/es/{styles-CYk14rdS.js → styles-B6xU6J45.js} +1 -1
  161. package/e24/es/{styles-DmMYkAFs.js → styles-BxvgdFG4.js} +1 -1
  162. package/e24/es/{styles-DcGRyDQP.js → styles-CJzB5pSG.js} +1 -1
  163. package/e24/es/{styles-DzEznh_S.js → styles-ChBYY8bm.js} +1 -1
  164. package/e24/es/{styles-D7w8P_5v.js → styles-Cl1I905Q.js} +1 -1
  165. package/e24/es/{styles-BHKszP6X.js → styles-DEJwGPrm.js} +1 -1
  166. package/{tv4/es/styles-BAxYdJA1.js → e24/es/styles-DF27RJ5O.js} +1 -1
  167. package/e24/es/{styles-SNZbYMgv.js → styles-Dflg9p-h.js} +1 -1
  168. package/e24/es/{styles-C-oO0oDe.js → styles-Do2kU3xu.js} +1 -1
  169. package/e24/es/{styles-CezDMrIZ.js → styles-Dwf1vw4U.js} +1 -1
  170. package/e24/es/{styles-CzB5N6Nl.js → styles-aNb4-iQ2.js} +1 -1
  171. package/e24/es/{styles-DnRAFVxv.js → styles-qPuQBHOZ.js} +1 -1
  172. package/editory/cjs/index.d.ts +6 -1
  173. package/editory/es/index.d.ts +6 -1
  174. package/fotbollskanalen/cjs/index.d.ts +25 -4
  175. package/fotbollskanalen/cjs/index.js +1 -1
  176. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DRg32rfb.js +1 -0
  177. package/fotbollskanalen/es/{events-BJ6mPaCc.js → events-CWXuTPQI.js} +1 -1
  178. package/fotbollskanalen/es/identity-facade-DjclF_1k.js +1 -0
  179. package/fotbollskanalen/es/{index-DCPogE5b.js → index-B502oNgV.js} +1 -1
  180. package/fotbollskanalen/es/index-B5X2tzCJ.js +1 -0
  181. package/fotbollskanalen/es/{index-Cg7_oqDR.js → index-DPO2qCL6.js} +1 -1
  182. package/fotbollskanalen/es/{index-YD7CRD4F.js → index-DrVft5FF.js} +1 -1
  183. package/fotbollskanalen/es/{index-hYl9FgdN.js → index-KuC48Gth.js} +1 -1
  184. package/fotbollskanalen/es/{index-K_6o99m1.js → index-UzsfNA_u.js} +1 -1
  185. package/fotbollskanalen/es/{index-CcCWGFRI.js → index-_1063RUZ.js} +1 -1
  186. package/fotbollskanalen/es/index-tOea9GR8.js +1 -0
  187. package/fotbollskanalen/es/index.d.ts +25 -4
  188. package/fotbollskanalen/es/index.js +1 -1
  189. package/fotbollskanalen/es/{styles-Cze8UsvM.js → styles-B_dFAksr.js} +1 -1
  190. package/fotbollskanalen/es/{styles-2f9vh7tO.js → styles-BijNP6ET.js} +1 -1
  191. package/fotbollskanalen/es/{styles-BDfacPqd.js → styles-CVCPktwj.js} +1 -1
  192. package/fotbollskanalen/es/{styles-D3eqs7xM.js → styles-DGEkhUjm.js} +1 -1
  193. package/fotbollskanalen/es/{styles-BsW1z6U1.js → styles-S1QWzSdb.js} +1 -1
  194. package/glimr/cjs/index.js +1 -1
  195. package/glimr/es/index.js +1 -1
  196. package/godt/cjs/index.d.ts +25 -4
  197. package/godt/cjs/index.js +1 -1
  198. package/kilkaya/cjs/index.d.ts +6 -1
  199. package/kilkaya/cjs/index.js +1 -1
  200. package/kilkaya/es/index.d.ts +6 -1
  201. package/kilkaya/es/index.js +1 -1
  202. package/klart/cjs/index.d.ts +25 -4
  203. package/klart/cjs/index.js +1 -1
  204. package/koket/cjs/index.d.ts +25 -4
  205. package/koket/cjs/index.js +1 -1
  206. package/koket/es/_auto-entry_koket-BHg0RvvL.js +1 -0
  207. package/koket/es/{events-CJgWZC6E.js → events-mbYajTsn.js} +1 -1
  208. package/koket/es/identity-facade-BDC_83uu.js +1 -0
  209. package/koket/es/index-BAq2NOWx.js +1 -0
  210. package/koket/es/index-BFYKJukh.js +1 -0
  211. package/koket/es/{index-DOXR-6vM.js → index-Bxy5DWVd.js} +1 -1
  212. package/koket/es/{index-BO7-UQcf.js → index-CXmUpEcC.js} +1 -1
  213. package/koket/es/{index-Bc3NO9Mw.js → index-CcgdzAMk.js} +1 -1
  214. package/koket/es/{index-B4K9iUVT.js → index-CmPLF2Z6.js} +1 -1
  215. package/koket/es/{index-FpW7qdqo.js → index-Di7VhOpX.js} +1 -1
  216. package/koket/es/{index-C2olyB1x.js → index-PevTPzLn.js} +1 -1
  217. package/koket/es/index.d.ts +25 -4
  218. package/koket/es/index.js +1 -1
  219. package/{svdv2/es/styles-CzsWVNYE.js → koket/es/styles-BbTxS441.js} +1 -1
  220. package/koket/es/{styles-BBI31SR8.js → styles-CSh9_vAt.js} +1 -1
  221. package/{svdv2/es/styles-CGWD917e.js → koket/es/styles-Co5ZqMbg.js} +1 -1
  222. package/koket/es/{styles-BRxC9raX.js → styles-DFdUAMLD.js} +1 -1
  223. package/koket/es/{styles-BwESZmQi.js → styles-DsywZyMH.js} +1 -1
  224. package/minmote/cjs/index.d.ts +25 -4
  225. package/minmote/cjs/index.js +1 -1
  226. package/mtv/es/_auto-entry_mtv-DfNaThKA.js +1 -0
  227. package/mtv/es/identity-facade-D_-1QlSb.js +1 -0
  228. package/mtv/es/index-D7_oA5KZ.js +1 -0
  229. package/mtv/es/{index-B3fi7Kjz.js → index-DV7Ugpbb.js} +1 -1
  230. package/mtv/es/index-Dw0iebnS.js +1 -0
  231. package/mtv/es/index-p610-MLD.js +1 -0
  232. package/mtv/es/index.d.ts +27 -6
  233. package/mtv/es/index.js +1 -1
  234. package/{svd/es/styles-Ili64SUo.js → mtv/es/styles-BMAOyNUZ.js} +1 -1
  235. package/omni/es/_auto-entry_omni-Dqd2l-yE.js +1 -0
  236. package/omni/es/{events-D8oXnK9A.js → events-K68kj4rV.js} +1 -1
  237. package/omni/es/identity-facade-Duta4qyh.js +1 -0
  238. package/omni/es/{index-B1CsqT1v.js → index-2sqkxCUP.js} +1 -1
  239. package/omni/es/{index-Do_Anxwk.js → index-6RrI5Xc8.js} +1 -1
  240. package/omni/es/{index-CQHXVyOc.js → index-C0tOd4WT.js} +1 -1
  241. package/omni/es/{index-oYzDmTix.js → index-Chrat1gK.js} +1 -1
  242. package/omni/es/{index-DoI3bFIC.js → index-DOsDI_Kk.js} +1 -1
  243. package/{btv2/es/index-BxQ9QWgL.js → omni/es/index-DzypmlB0.js} +1 -1
  244. package/omni/es/index-IIqMYioz.js +1 -0
  245. package/omni/es/index-amUvs-_W.js +1 -0
  246. package/omni/es/index.d.ts +25 -4
  247. package/omni/es/index.js +1 -1
  248. package/omni/es/{styles-QXlcLvKz.js → styles-BYS1P-tF.js} +1 -1
  249. package/omni/es/{styles-DmYIWMWw.js → styles-Bow7auoh.js} +1 -1
  250. package/omni/es/{styles-Dh_pACB9.js → styles-CV0NQhKX.js} +1 -1
  251. package/package.json +1 -1
  252. package/pent/cjs/index.d.ts +25 -4
  253. package/pent/cjs/index.js +1 -1
  254. package/pulse/cjs/index.d.ts +8 -3
  255. package/pulse/cjs/index.js +1 -1
  256. package/pulse/es/index.d.ts +8 -3
  257. package/pulse/es/index.js +1 -1
  258. package/sa/cjs/index.d.ts +25 -4
  259. package/sa/cjs/index.js +1 -1
  260. package/sa/es/_auto-entry_sa-DyqGrGx4.js +1 -0
  261. package/sa/es/{events-DJlxmoyQ.js → events-CgW4jEAG.js} +1 -1
  262. package/sa/es/identity-facade-Daj6yMGJ.js +1 -0
  263. package/sa/es/{index-D-jh7EcB.js → index-B-VUvpKF.js} +1 -1
  264. package/sa/es/index-BQTjJitn.js +1 -0
  265. package/sa/es/{index-sAZnIVZD.js → index-Bn65l6Sc.js} +1 -1
  266. package/sa/es/{index-CwXblevG.js → index-C6w0pjh-.js} +1 -1
  267. package/sa/es/{index-BBpzoo6q.js → index-CW8otao7.js} +1 -1
  268. package/sa/es/{index-DdxQE4LO.js → index-CuH6WR7s.js} +1 -1
  269. package/sa/es/{index-BQQH0v-V.js → index-D61ZK7Cb.js} +1 -1
  270. package/sa/es/index-tbR32a6N.js +1 -0
  271. package/sa/es/index.d.ts +25 -4
  272. package/sa/es/index.js +1 -1
  273. package/sa/es/{styles-COBYxap6.js → styles-B09eEPL5.js} +1 -1
  274. package/sa/es/{styles-BqoJN48z.js → styles-B0IbKP96.js} +1 -1
  275. package/sa/es/{styles-CZbGc4JN.js → styles-CJQupH56.js} +1 -1
  276. package/sa/es/{styles-CsqrQMUa.js → styles-CK_iyyOw.js} +1 -1
  277. package/sa/es/{styles-dtFf-QzC.js → styles-Ca3-DJZq.js} +1 -1
  278. package/{vg/es/styles-CA2O0zNt.js → sa/es/styles-CzG_TYUC.js} +1 -1
  279. package/{vg/es/styles-BvJq1DbU.js → sa/es/styles-D5V5ppDj.js} +1 -1
  280. package/sa/es/{styles-BbYBBoEu.js → styles-DHZkBRdL.js} +1 -1
  281. package/sa/es/{styles-CxMgRiB0.js → styles-DcQMUe8C.js} +1 -1
  282. package/sa/es/{styles-CR2l0VPi.js → styles-Y4cCQABF.js} +1 -1
  283. package/sav2/es/_auto-entry_sav2-oUKXN5Cv.js +1 -0
  284. package/{tvnu/es/events-CYIyY_O8.js → sav2/es/events-5-DW8DNa.js} +1 -1
  285. package/sav2/es/identity-facade-BROor3DB.js +1 -0
  286. package/sav2/es/{index-DU69N01e.js → index-BV_Oux9-.js} +1 -1
  287. package/{tvnu/es/index-D53Lfqpz.js → sav2/es/index-Coz-p9iZ.js} +1 -1
  288. package/sav2/es/index-DBju8vD1.js +1 -0
  289. package/sav2/es/{index-DVdqEzgu.js → index-DSPOhBze.js} +1 -1
  290. package/{tvnu/es/index-n2OqZE3x.js → sav2/es/index-MPeNVDBL.js} +1 -1
  291. package/sav2/es/index-R5XLuH8n.js +1 -0
  292. package/sav2/es/{index-BHVPw0uA.js → index-UGWFEB3j.js} +1 -1
  293. package/sav2/es/{index-Cfn4EpE3.js → index-ehh4zyl6.js} +1 -1
  294. package/sav2/es/index.d.ts +25 -4
  295. package/sav2/es/index.js +1 -1
  296. package/sav2/es/{styles-ZhK4-day.js → styles-B8y3G3FO.js} +1 -1
  297. package/{btv2/es/styles-DucQJHxT.js → sav2/es/styles-CfBbNztv.js} +1 -1
  298. package/sav2/es/{styles-CFf2Ku9c.js → styles-Cfjk3GeF.js} +1 -1
  299. package/sav2/es/{styles-F7jUJjJn.js → styles-CqS3_D5H.js} +1 -1
  300. package/sav2/es/{styles-CEF-0mza.js → styles-D-aY7Kms.js} +1 -1
  301. package/{vgv2/es/styles-BZDzqgQY.js → sav2/es/styles-D3AEgmZ7.js} +1 -1
  302. package/{btv2/es/styles-D8oEO915.js → sav2/es/styles-DKWFSmJx.js} +1 -1
  303. package/{vgv2/es/styles-BZNQ1vE8.js → sav2/es/styles-DLd-glgd.js} +1 -1
  304. package/sav2/es/{styles-C4-rOm8X.js → styles-DkEzbye-.js} +1 -1
  305. package/svd/cjs/index.d.ts +25 -4
  306. package/svd/cjs/index.js +1 -1
  307. package/svd/es/_auto-entry_svd-BJDmLwK4.js +1 -0
  308. package/svd/es/{events-CXoatmpv.js → events-CJEzzOkM.js} +1 -1
  309. package/svd/es/identity-facade-G8xOuiES.js +1 -0
  310. package/svd/es/index-7pMjf183.js +1 -0
  311. package/svd/es/{index-ntuGyR2_.js → index-BGuy7q75.js} +1 -1
  312. package/svd/es/{index-DonfcwIE.js → index-ByFum0Ht.js} +1 -1
  313. package/svd/es/{index-KSUkz5Ec.js → index-CdeqDRiL.js} +1 -1
  314. package/svd/es/{index-BMn-d7Z_.js → index-D8-w2Zrr.js} +1 -1
  315. package/svd/es/{index-UhMbVarR.js → index-DaCqWD2C.js} +1 -1
  316. package/svd/es/index-De8cMolp.js +1 -0
  317. package/svd/es/{index-BXR4R0DG.js → index-KJC6As1v.js} +1 -1
  318. package/svd/es/index.d.ts +25 -4
  319. package/svd/es/index.js +1 -1
  320. package/svd/es/{styles-xB_mBaye.js → styles-BOupZnrK.js} +1 -1
  321. package/svd/es/{styles-BsUvk2WV.js → styles-C27QJnxq.js} +1 -1
  322. package/svd/es/{styles-B6N0NAK1.js → styles-Czwz7iv9.js} +1 -1
  323. package/svd/es/{styles-BHFhjoVx.js → styles-D0qm6kVv.js} +1 -1
  324. package/svd/es/{styles-CzzKpKOY.js → styles-D6FUS2Lx.js} +1 -1
  325. package/{mtv/es/styles-Cfow3icP.js → svd/es/styles-D9r9OnLQ.js} +1 -1
  326. package/svd/es/{styles-2098DKtE.js → styles-aqr9svHM.js} +1 -1
  327. package/svdv2/es/_auto-entry_svdv2-CLreTPmH.js +1 -0
  328. package/svdv2/es/{events-rieoT5HD.js → events-KCadTxl3.js} +1 -1
  329. package/svdv2/es/identity-facade-6XLh3tPd.js +1 -0
  330. package/svdv2/es/{index-C6jaff-U.js → index-B8RbMmJ8.js} +1 -1
  331. package/svdv2/es/index-BBT24FDS.js +1 -0
  332. package/svdv2/es/{index-BSzaY9HS.js → index-CCn-OmI-.js} +1 -1
  333. package/svdv2/es/index-CQXOnY9t.js +1 -0
  334. package/svdv2/es/{index-j0sWy6XQ.js → index-DWku1ORo.js} +1 -1
  335. package/svdv2/es/{index-B82Dt7Y9.js → index-Dg6mY90s.js} +1 -1
  336. package/svdv2/es/{index-B7VeIIa1.js → index-DuGmh88D.js} +1 -1
  337. package/svdv2/es/{index-SZHJspYo.js → index-wb3kiAkb.js} +1 -1
  338. package/svdv2/es/index.d.ts +25 -4
  339. package/svdv2/es/index.js +1 -1
  340. package/svdv2/es/{styles-DR0vrRzH.js → styles-BtVQF7bs.js} +1 -1
  341. package/svdv2/es/{styles-c1jdK7Es.js → styles-BuvxUEbh.js} +1 -1
  342. package/svdv2/es/{styles-CPISTY9o.js → styles-CEKLrR1u.js} +1 -1
  343. package/svdv2/es/{styles-BPhm6VCm.js → styles-CzH_1sLm.js} +1 -1
  344. package/svdv2/es/{styles-CaHsrPmd.js → styles-DNEg4Iyo.js} +1 -1
  345. package/{koket/es/styles-CH1-lHKr.js → svdv2/es/styles-DeJhuM1w.js} +1 -1
  346. package/svdv2/es/{styles-BPY37MKL.js → styles-PQSqNTuq.js} +1 -1
  347. package/{koket/es/styles-Dnaf1zGg.js → svdv2/es/styles-bdRhUD4i.js} +1 -1
  348. package/tek/cjs/index.d.ts +25 -4
  349. package/tek/cjs/index.js +1 -1
  350. package/tv4/cjs/index.d.ts +25 -4
  351. package/tv4/cjs/index.js +1 -1
  352. package/tv4/es/_auto-entry_tv4-CBLGjHou.js +1 -0
  353. package/{mtv/es/events-GqbgSzdx.js → tv4/es/events-C66ndP0f.js} +1 -1
  354. package/tv4/es/identity-facade-Byb8x97X.js +1 -0
  355. package/tv4/es/index-C06nqWj8.js +1 -0
  356. package/tv4/es/{index-BPFUDpOI.js → index-CmryMy4l.js} +1 -1
  357. package/tv4/es/{index-CLlZ_nvb.js → index-CnO0y594.js} +1 -1
  358. package/tv4/es/index-D4MnNwZH.js +1 -0
  359. package/tv4/es/{index-kMw82AyQ.js → index-DYGzrH19.js} +1 -1
  360. package/tv4/es/{index-DsO94JLJ.js → index-DePsb88V.js} +1 -1
  361. package/tv4/es/{index-Ba-gl0fE.js → index-IHhoDSFm.js} +1 -1
  362. package/tv4/es/{index-But-X6-M.js → index-VnOUEyPC.js} +1 -1
  363. package/tv4/es/index.d.ts +25 -4
  364. package/tv4/es/index.js +1 -1
  365. package/{e24/es/styles-U3ev4vZ7.js → tv4/es/styles-BDKGAK5o.js} +1 -1
  366. package/tv4/es/{styles-BOhTEsfH.js → styles-BHRB_mp-.js} +1 -1
  367. package/tv4/es/{styles-CiQyajrm.js → styles-Bpwmf5SO.js} +1 -1
  368. package/tv4/es/{styles-DyGJ5lUA.js → styles-BqOiKQK-.js} +1 -1
  369. package/tv4/es/{styles-ClhVmvvn.js → styles-CNdrS2sT.js} +1 -1
  370. package/tvnu/cjs/index.d.ts +25 -4
  371. package/tvnu/cjs/index.js +1 -1
  372. package/tvnu/es/_auto-entry_tvnu-BwxgbyD2.js +1 -0
  373. package/{btv2/es/events-D6P6hD23.js → tvnu/es/events-DAuZVg9R.js} +1 -1
  374. package/tvnu/es/identity-facade-NomeYive.js +1 -0
  375. package/tvnu/es/{index-CgR2vaLd.js → index-BfjWCLvz.js} +1 -1
  376. package/tvnu/es/index-BxKvAcWF.js +1 -0
  377. package/{btv2/es/index-bR4EjUyv.js → tvnu/es/index-ByPGwuny.js} +1 -1
  378. package/tvnu/es/{index-DLpVVZf_.js → index-D1CmJu8a.js} +1 -1
  379. package/{sav2/es/index-BgJctlWz.js → tvnu/es/index-DtReuiTF.js} +1 -1
  380. package/tvnu/es/{index-pN42MHkO.js → index-DvJP2BFc.js} +1 -1
  381. package/tvnu/es/index-XMGOKdOu.js +1 -0
  382. package/tvnu/es/{index-DPea4ItP.js → index-dpIRNaul.js} +1 -1
  383. package/tvnu/es/index.d.ts +25 -4
  384. package/tvnu/es/index.js +1 -1
  385. package/{btv2/es/styles-CtL-yllF.js → tvnu/es/styles-C3UIWT_6.js} +1 -1
  386. package/tvnu/es/{styles-tV1z1GZ_.js → styles-CJ-D06Ze.js} +1 -1
  387. package/tvnu/es/{styles-BYv3c9cw.js → styles-CkBdQxSE.js} +1 -1
  388. package/tvnu/es/{styles-Blkyvqh4.js → styles-ieCYZ2BR.js} +1 -1
  389. package/types/index.d.ts +6 -1
  390. package/vg/cjs/index.d.ts +25 -4
  391. package/vg/cjs/index.js +1 -1
  392. package/vg/es/_auto-entry_vg-CZCnWz9h.js +1 -0
  393. package/vg/es/{events-BqQucSf6.js → events-azOYx0q1.js} +1 -1
  394. package/vg/es/index-B5wDCTqX.js +1 -0
  395. package/vg/es/{index-bCzcmyfy.js → index-BEOyX2Wr.js} +1 -1
  396. package/vg/es/{index-C2UHtfj_.js → index-C-p2n13h.js} +1 -1
  397. package/vg/es/{index-DAAjvi1C.js → index-CDwF0YQd.js} +1 -1
  398. package/vg/es/{index-CsWAXOq-.js → index-CGf-bWSP.js} +1 -1
  399. package/vg/es/{index-BSPaei4i.js → index-CKhvsgVy.js} +1 -1
  400. package/vg/es/{index-BcaL6jsh.js → index-CwCLyscs.js} +1 -1
  401. package/vg/es/index-GXg9GWOy.js +1 -0
  402. package/vg/es/index.d.ts +25 -4
  403. package/vg/es/index.js +1 -1
  404. package/vg/es/{styles-Ce4iBXFA.js → styles-BRFXPOOo.js} +1 -1
  405. package/{sa/es/styles-CwbbNFdE.js → vg/es/styles-BX8TjOhH.js} +1 -1
  406. package/vg/es/{styles-C51lw1yU.js → styles-BXTr-tOf.js} +1 -1
  407. package/vg/es/{styles-CoLiVlSG.js → styles-BbqBATF4.js} +1 -1
  408. package/vg/es/{styles-Ddh-HkO8.js → styles-BzpRtGlm.js} +1 -1
  409. package/vg/es/{styles-D9qbS1Gw.js → styles-CGPMvWKF.js} +1 -1
  410. package/vg/es/{styles-B0hflLDs.js → styles-CluX5NBm.js} +1 -1
  411. package/{bt/es/styles-Djjc7UzY.js → vg/es/styles-ConMXAAa.js} +1 -1
  412. package/vg/es/{styles-CdpkwzOZ.js → styles-CrdVtM5r.js} +1 -1
  413. package/vg/es/{styles-CYzyLEV0.js → styles-D8pQb7vJ.js} +1 -1
  414. package/vg/es/{styles-CciYrbs8.js → styles-btaPzyxf.js} +1 -1
  415. package/vg/es/{styles-CSIB_T1c.js → styles-qoJJL703.js} +1 -1
  416. package/{bt/es/styles-B188diER.js → vg/es/styles-r7kx75rx.js} +1 -1
  417. package/vg/es/{styles-CIvA8Doz.js → styles-saWjZ7Vw.js} +1 -1
  418. package/vg/es/{styles-TZp4Js-a.js → styles-v287uw0Q.js} +1 -1
  419. package/vg/es/{styles-DFInM_03.js → styles-vLVEdNtd.js} +1 -1
  420. package/vgv2/es/_auto-entry_vgv2-Jn4NMMCE.js +1 -0
  421. package/vgv2/es/events-DllI3OCE.js +1 -0
  422. package/vgv2/es/{index-OzkyZrFL.js → index-1W9g-nvN.js} +1 -1
  423. package/vgv2/es/{index-CVGQqZVE.js → index-2cJe-Eef.js} +1 -1
  424. package/vgv2/es/{index-I-HW65_x.js → index-BT-sPtHS.js} +1 -1
  425. package/vgv2/es/{index-BAnN0RdP.js → index-B_ydkmG-.js} +1 -1
  426. package/vgv2/es/{index-BMvVZ3PU.js → index-CU7M1MUX.js} +1 -1
  427. package/vgv2/es/{index-DQGn1tXh.js → index-D00u_Vrz.js} +1 -1
  428. package/vgv2/es/index-D7a67PWC.js +1 -0
  429. package/vgv2/es/index-DcUpfciw.js +1 -0
  430. package/vgv2/es/index.d.ts +25 -4
  431. package/vgv2/es/index.js +1 -1
  432. package/{sav2/es/styles-DMF9Z1dt.js → vgv2/es/styles-B8Xt4Rvd.js} +1 -1
  433. package/{tvnu/es/styles-DgLNK3GP.js → vgv2/es/styles-BDDajuUD.js} +1 -1
  434. package/vgv2/es/{styles-V8Y9NY4R.js → styles-BNc9ub3p.js} +1 -1
  435. package/vgv2/es/{styles-F0n6XlmZ.js → styles-BqNKW7Qs.js} +1 -1
  436. package/vgv2/es/{styles-BgSFy8jC.js → styles-BsxHydq2.js} +1 -1
  437. package/{btv2/es/styles-BIEV_UDm.js → vgv2/es/styles-Bvy3Pr5x.js} +1 -1
  438. package/vgv2/es/{styles-CtTqdZis.js → styles-CHiCEnI8.js} +1 -1
  439. package/vgv2/es/{styles-DOZIdQKO.js → styles-D0rdjk3q.js} +1 -1
  440. package/vgv2/es/{styles-dPSL7ERU.js → styles-D3PM0A4u.js} +1 -1
  441. package/vgv2/es/{styles-CCY1tyd6.js → styles-DDwrDy_L.js} +1 -1
  442. package/vgv2/es/{styles-Cualb3_D.js → styles-DcLW6Ufi.js} +1 -1
  443. package/vgv2/es/styles-DeXRJf7-.js +1 -0
  444. package/vgv2/es/{styles--uVNPccL.js → styles-DiGH9BWs.js} +1 -1
  445. package/vgv2/es/{styles-YZ88G27K.js → styles-Doih5h9g.js} +1 -1
  446. package/vgv2/es/{styles-wF0dHoty.js → styles-i7ormIJY.js} +1 -1
  447. package/vgv2/es/{styles-DhnA4Y2g.js → styles-yWE21nMi.js} +1 -1
  448. package/video/cjs/index.js +1 -1
  449. package/video/es/index.js +1 -1
  450. package/aftenposten/es/_auto-entry_aftenposten-VdgcR_BE.js +0 -1
  451. package/aftenposten/es/index-DP0BbbWJ.js +0 -1
  452. package/aftenposten/es/index-PdNwftJA.js +0 -1
  453. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BIMCdj2e.js +0 -1
  454. package/aftenpostenv2/es/index-6k3Y32Fw.js +0 -1
  455. package/aftenpostenv2/es/index-DPqkphHW.js +0 -1
  456. package/aftonbladet/es/_auto-entry_aftonbladet-D2fIitz4.js +0 -1
  457. package/aftonbladet/es/index-C1IqSowz.js +0 -1
  458. package/aftonbladet/es/index-CFu2vZ67.js +0 -1
  459. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-3dTEWOlI.js +0 -1
  460. package/aftonbladetv2/es/index-BVirA6E3.js +0 -1
  461. package/aftonbladetv2/es/index-DB2zWF2S.js +0 -1
  462. package/bt/es/_auto-entry_bt-CvnjeTKS.js +0 -1
  463. package/bt/es/index-5orz6iDE.js +0 -1
  464. package/bt/es/index-B4s9DYHb.js +0 -1
  465. package/btv2/es/_auto-entry_btv2-Dvycsb0N.js +0 -1
  466. package/btv2/es/index-CYUq8h41.js +0 -1
  467. package/btv2/es/index-wU5-fkkY.js +0 -1
  468. package/e24/es/_auto-entry_e24-EmoPFNdZ.js +0 -1
  469. package/e24/es/index-BHxQeiJc.js +0 -1
  470. package/e24/es/index-C4omnW1M.js +0 -1
  471. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DntxanXt.js +0 -1
  472. package/fotbollskanalen/es/index-8KLTEqRi.js +0 -1
  473. package/fotbollskanalen/es/index-BMDVF1u1.js +0 -1
  474. package/koket/es/_auto-entry_koket-a4ea-7Qw.js +0 -1
  475. package/koket/es/index-CZ7fRUR1.js +0 -1
  476. package/koket/es/index-I63ib7qd.js +0 -1
  477. package/mtv/es/_auto-entry_mtv-DsuRsc1u.js +0 -1
  478. package/mtv/es/index--OizxMLO.js +0 -1
  479. package/mtv/es/index-B83VUyBB.js +0 -1
  480. package/mtv/es/index-BnTnl5EG.js +0 -1
  481. package/mtv/es/index-D2XPbfTm.js +0 -1
  482. package/mtv/es/index-DN3cR0Fw.js +0 -1
  483. package/mtv/es/index-DTrcSpan.js +0 -1
  484. package/mtv/es/index-Dv15bwI7.js +0 -1
  485. package/omni/es/_auto-entry_omni-HSpRNCg1.js +0 -1
  486. package/omni/es/index-74zEx__y.js +0 -1
  487. package/omni/es/index-wkJKThPL.js +0 -1
  488. package/sa/es/_auto-entry_sa-B3BT1vI-.js +0 -1
  489. package/sa/es/index-CrWFSHI0.js +0 -1
  490. package/sa/es/index-d0MDNCl0.js +0 -1
  491. package/sav2/es/_auto-entry_sav2-Ms7Jve07.js +0 -1
  492. package/sav2/es/index-BBAAh5bR.js +0 -1
  493. package/sav2/es/index-DS2guFzB.js +0 -1
  494. package/svd/es/_auto-entry_svd-CuD9iF48.js +0 -1
  495. package/svd/es/index-BfA2xLfw.js +0 -1
  496. package/svd/es/index-EJwoMYuf.js +0 -1
  497. package/svdv2/es/_auto-entry_svdv2-1VQfx2m3.js +0 -1
  498. package/svdv2/es/index-DB2h1Swy.js +0 -1
  499. package/svdv2/es/index-DU1mD5yI.js +0 -1
  500. package/tv4/es/_auto-entry_tv4-CWqxLSel.js +0 -1
  501. package/tv4/es/events-D6xMM-17.js +0 -1
  502. package/tv4/es/index-BONgzmFt.js +0 -1
  503. package/tv4/es/index-DP-cpF3Z.js +0 -1
  504. package/tvnu/es/_auto-entry_tvnu-VQhBZ5ti.js +0 -1
  505. package/tvnu/es/index-Ca_3Ni0n.js +0 -1
  506. package/tvnu/es/index-DjWYwuQw.js +0 -1
  507. package/vg/es/_auto-entry_vg-DfuxvRye.js +0 -1
  508. package/vg/es/index-DCWH5HnK.js +0 -1
  509. package/vg/es/index-DX5agaGX.js +0 -1
  510. package/vgv2/es/_auto-entry_vgv2-Bq8_SS3m.js +0 -1
  511. package/vgv2/es/events-BMoajPYv.js +0 -1
  512. package/vgv2/es/index-Ck1oE8Pa.js +0 -1
  513. package/vgv2/es/index-DxSr_M00.js +0 -1
  514. package/vgv2/es/styles-DDsDYtIG.js +0 -1
package/tek/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=o(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}());const r={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,t)=>i(e,t,r),d=(e,t)=>Object.assign(Object.assign({},e),t),s=(e,t)=>{var n;return a(null!==(n=e)&&void 0!==n?n:{},t)},l={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},c=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},u=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},p=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||u("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||u("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||u("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||u("pageContext.deviceType is required."),n||u("pageOptions is required."),o||u("placements is required."),(null==i?void 0:i.defaultThreshold)||u("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])&&u(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},v={placements:(e,t)=>t,takeover:s,refreshConfig:d,editory:s,appearanceConfig:s,pageContext:d,pageOptions:d,pageSectionsSelectors:d,tcf:d},g=(e,t)=>{const n=e;for(const e of Object.keys(v)){const o=t[e];void 0!==o&&(n[e]=v[e](n[e],o))}},h=6;class m{set(e){p(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");g(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=a(m.DEFAULT_SITE_HANDLERS,e)}}m.DEFAULT_SITE_HANDLERS={siteEvents:l,initNativeAd:()=>{}};const f=new m,y=f.modifyConfigProperties.bind(f),b={NO:"no",SE:"se"},w=e=>e===b.NO?"no-sno":"se-generic",x=/_\d+$/,k=e=>e.replace(x,"");let C="";const I=new Map,T=e=>{const{pageSetup:{tag:t}={}}=f.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(C!==window.location.pathname&&(I.clear(),C=window.location.pathname),e.map(e=>{var t;const n=k(e.invCode),o=null!==(t=I.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=f.get();return`${e}-${t}`})()}-count`]=o,I.set(n,o+1),e})):e},S="advertory-wallpaper-background",E="advertory-with-horseshoe",A=()=>{const e=document.querySelector(`.${S}`);e&&e.remove()},O=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))},P=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,j=e=>P.test(e),$=e=>e.startsWith("wallpaper:color:"),L=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundImage=`url(${e})`)},_=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundColor=e)};var N=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(E),n.classList.add(E))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{A();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&&(O(n),window.addEventListener("scroll",()=>O(n)))})(n),e()},isShortWallpaperColorMessage:$,isShortWallpaperUrlMessage:j,removeWallpaperBackground:A,setWallpaperBackgroundColor:_,setWallpaperBackgroundImage:L});const q=e=>new URLSearchParams(window.location.search).get(e),F="takeover",M="native_override_desc2",B=e=>window.location.href.includes(e),R=()=>null!==q("disable_prebid"),D=e=>{if("0"===q("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")&&A())},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"))},U=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};function W(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 H(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;let V=e=>{window.apntag.anq.push(e)};const K=e=>{V(e)};class X{initialize(){this.DATA=Object.assign({},X.INITIAL_DATA)}getData(e){if(!this.DATA)throw new Error("Storage was accessed with invalid data.");return this.DATA[e]}setData(e,t){if(!this.DATA)throw new Error("Storage was accessed before it had been initialized.");this.DATA[e]=Object.assign(Object.assign({},this.DATA[e]),t)}}X.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const G=new X,J=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},Y=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`)},Q="opaque",Z=e=>H(void 0,void 0,void 0,function*(){if(e.type!==Q){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ee={get:(e,...t)=>H(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,o=W(t,["timeout"]);if(n)return((e,t,n)=>H(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 Z(n)}finally{clearTimeout(i)}}))(e,o,n);const i=yield fetch(e,o);return Z(i)}),post:(e,t,n)=>H(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()})},te="https://inv-platform-cdn.inventory.schibsted.io",ne=5e3,oe="editory/native-creator/native-templates",ie=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!o)return null;return`${n||te}/editory/editable-configurations/${t.publisherClassName}/${o.toLowerCase()}.json`};const re=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=e;return Boolean(t&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return H(this,void 0,void 0,function*(){const t=ie(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>H(void 0,void 0,void 0,function*(){const t=ie(e);if(!t)return null;try{return yield ee.get(t,{timeout:ne})}catch(e){throw c("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,i;const r=((e,t)=>{const{sections:n}=e,o=W(e,["sections"]),i=t?null==n?void 0:n[t]:void 0;return i?a(o,i):o})(t,null!==(i=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==i?i:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>a(t,e))(e,r)}getConfig(e){return H(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return c("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return H(this,void 0,void 0,function*(){var t,n,o,i;if(!this.localSiteConfig)return;if(g(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(i=null===(o=this.localSiteConfig.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void c("Error fetching updated S3 config, keeping current config",{error:e})}})}},ae=re.getConfig.bind(re),de=re.resolveUpdatedConfig.bind(re),se=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:o}=(e=>{const t=G.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},le=()=>{A();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{D(e.id),se(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=U(e.id),t.push(e.id)}),K(()=>window.apntag.clearRequest()),t},ce=()=>{G.setData("wallpaper",{isAvailable:!1}),G.setData("horseshoe",{isAvailable:!1})},ue=e=>H(void 0,void 0,void 0,function*(){const t=yield de(e);var n;t?(f.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):y(null!=e?e:{})}),pe="0123456789abcdefghijklmnopqrstuvwxyz",ve=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=pe[Math.floor(36*Math.random())]}return t},ge=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),he=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})}),me="mobile",fe="tablet",ye="desktop",be="web_desktop",we="web_phone",xe="wde",ke="wph",Ce="noGroupedPlacements",Ie=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Te=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Se=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}}=f.get(),r=((e,t)=>{var n;const o=null!==(n=e[t])&&void 0!==n?n:[];return t===fe&&0===o.length?e[ye]:o})(n,i),a=r.filter(Te),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=Ee(e,t,n);if(i.disabled)return c(`Placement ${i.targetId} is disabled - collapsing`),D(i.targetId),null;const r=i.finnBlink&&!i.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(o=i.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink),d=`${e.id}-${ve(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&&G.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})}),u=l.filter(e=>null!=e);return T(u)});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)},Ee=(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},Ae=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=f.get(),o=(null==t?void 0:t[n])||{},i=Object.values(o).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=U(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(U(e.targetId)));return n})(e,o),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(U(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),r),{[Ce]:s})},Oe="ABSOLUTE_FULLSCREEN",Pe="ANY_FULLSCREEN",je="NINESIXTEEN",$e="FULLWIDTH",Le="FULLSQUARE",_e="TAKEOVER",Ne="VELVET_TAKEOVER",qe="WALLPAPER",Fe="COLLAPSE",Me={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}]},Be={wallpaper:1600,"l-format":1600},Re=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&et(e,Pe)},De=e=>{const{native:t}=e;return!!t},ze=e=>et(e,$e),Ue=e=>{const{targetId:t}=e;return t.includes("takeover")||et(e,_e)},We=e=>et(e,_e),He=e=>et(e,qe),Ve=e=>et(e,Fe),Ke=e=>e.targetId.includes("sponsorstripe"),Xe=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Ge=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Je=e=>e.targetId.startsWith("midboard"),Ye=e=>e.targetId.includes("widescreen"),Qe=e=>e.width>=1260&&e.width<=1280,Ze=e=>e.width>=1600&&e.width<=1620,et=(e,t)=>{const n=Me[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})},tt=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 c("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const i=e=>{o||(c("Resolving advertising permission value obtained"),o=!0,t(e))},r=setTimeout(()=>{c("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{c("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);c("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),nt="cmp:loaded";let ot="undefined"!=typeof window?window._tcf_:void 0,it=!1;const rt=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,r=q("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(c("TCF bypass param detected, returning consent: true"),!0):(c("TCF is not enabled, returning consent: true"),!0))(o,r))return!0;if(it)return null;if(!ot)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=ot.getConsentedToAllSync();return c(`TCF consented to all is: ${t}`),ot.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(c("Getting TCF consent manager..."),window._tcf_)return c("TCF consent manager is already available"),ot=window._tcf_,void e(ot);c("TCF consent manager is not available");const n=()=>{c("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(ot=window._tcf_,e(ot)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(nt,n),it=!0,t(new Error("Timeout waiting for CMP to load"))},i);c("Listening for CMP loaded event..."),document.addEventListener(nt,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>H(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`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===b.SE,o=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===b.NO;if(t||o)return c("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield tt(e);if(!(null==e?void 0:e.enabled))return!0;const r=a();return null!==r?r:yield new Promise((e,t)=>{try{if(!ot)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(()=>{c("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);ot.onTcfReady(()=>{c("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),ot.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},at=(e,t,n,...o)=>H(void 0,[e,t,n,...o],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return c(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`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}=rt(e,0,n);return(yield i())?(c(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(c(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),dt=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},st=e=>H(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e,{getConsentAsync:i}=rt(t,0,o);if(!(yield i()))return;const r=dt("_pulse2data");return r?r.split(",")[9]:void 0}),lt="splash",ct="welcomePage",ut="topscroller",pt="velvet",vt=(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()},gt="takeover-displayed",ht="takeover-visit-count",mt=14400,ft=()=>{const e=dt(ht);return e?parseInt(e):0},yt=()=>{const e=ft(),{takeover:{options:{cookieCapTime:t=mt}={}}={}}=f.get(),n=document.location.hostname;window.document.cookie=`${ht}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},bt=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=f.get();return"0"!==q(F)&&("1"===q(F)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=f.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||gt;return"true"===dt(n)})())&&(!t||wt()))},wt=()=>{const e=ft();return 0===e?(yt(),!1):1===e},xt=(e,t)=>[[1,1],[1920,1080]].some(([n,o])=>n===e&&o===t),kt=()=>{const{takeover:e}=f.get();return Boolean(null==e?void 0:e.topscroller)},Ct=e=>{const{width:t,height:n}=e;return xt(t,n)?lt:et(e,Ne)?pt:kt()?ut:ct},It=()=>H(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=gt,cookieCapTime:n=mt}={}}={},pageContext:{isMobileApp:o,countryCode:i},tcf:r}=f.get(),a=yield at(r,o,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Tt=e=>{var t,n;const o=!!(null===(n=null===(t=f.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ue(e)&&o},St=(e,t)=>{var n;if(t===ut){const{topscroller:t}=e;return null!=t?t:{}}if(t===lt){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Et=(e,t)=>{t!==lt?(e=>{var t,n;const o=null===(t=f.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=f.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=We(e)?"60svh":`calc(100svh - ${l}px)`,u=We(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=f.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)},At=vt([],()=>{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 Ot=Object.freeze({__proto__:null,addTakeoverCookie:It,adjustTakeoverHeight:Et,canDisplayTakeover:bt,getProperWelcomePageConfig:St,getTakeoverVariant:Ct,handleTakeoverCookieOnAdNotShown:e=>H(void 0,void 0,void 0,function*(){Tt(e)&&(yield It())}),incrementArticleVisitCount:yt,isSplashVariant:xt,isTopscroller:kt,scaleAd:At,shouldAddTakeoverCookieForNotShownAd:Tt});const Pt={nativeAd:e=>De(e)&&!Ke(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ze,fullscreenScroll:Re,topscroller:e=>Ue(e)&&kt(),splash:e=>Ue(e)&&xt(e.width,e.height),welcomePage:Ue,wallpaper:He,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Qe,hFormat:Ze,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Ze(e)&&!Qe(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ue(e),widescreen:Ye,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Ke,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Ge(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Je(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:Ge,midboard:Je},jt=({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)},$t=e=>{var t;return(null===(t=Object.entries(Pt).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Lt=()=>{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"},_t=e=>e===me,Nt=(e,t)=>{const n=e.width,o=(null!=t?t:window.screen.width)/n;return o<1?o:1},qt=(e,t=window.screen.width,n,o)=>{const i=Nt(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")},Ft=(e,t)=>{if(e&&t)return t/e},Mt=new Map;Mt.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),Mt.set("panorama",{scale:.79,transformOrigin:"center center"}),Mt.set("outstream",{scale:.79,transformOrigin:"center center"}),Mt.set("integration",{scale:.79,transformOrigin:"center center"}),Mt.set("toppanorama",{scale:.8,transformOrigin:"left center"});var Bt=Object.freeze({__proto__:null,calculateScaleFactor:Nt,getAspectRatio:Ft,scaleAd:qt,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=$t(e),i=Mt.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}}=f.get();if(!(null==d?void 0:d.enabled))return;if(et(e,Pe))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),v=null!==(i=null==p?void 0:p.offsetWidth)&&void 0!==i?i:window.screen.width,g=null!==(a=null===(r=null==p?void 0:p.parentElement)||void 0===r?void 0:r.offsetWidth)&&void 0!==a?a:window.screen.width;qt(e,(v<g?v:g)-u)}});const Rt=864e5,Dt=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return c("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=Rt)=>{const i={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(i))},getByTimestamp:(t,n=Rt)=>{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 c("Error with parsing localStorage data"),null}}}})(),zt="glimrTags",Ut=["glwe_","glwet_"],Wt={geofenceTags:[],geoTags:[],weatherTags:[]},Ht=(...e)=>H(void 0,[...e],void 0,function*(e=f.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield at(t,n,o,"glimr")}const{getConsentAsync:i}=rt(t,0,o);return yield i()}),Vt=()=>H(void 0,void 0,void 0,function*(){const{glimr:e}=f.get();if(!(yield Ht())||!(null==e?void 0:e.enabled))return void c("No consent for glimr data fetching.");const t=yield(n=500,H(void 0,void 0,void 0,function*(){return yield Promise.race([H(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)=>{Dt.setWithTimestamp(zt,{tags:e,tagMappings:t}),n(!0)})})}catch(e){c(`Error during getting glimr data: ${e}`)}else c("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),Kt={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"},Xt=e=>Ut.some(t=>e.startsWith(t)),Gt=e=>e.startsWith("glgc_"),Jt=e=>e.startsWith("glci_"),Yt=e=>!Xt(e)&&!Gt(e),Qt=(e,t)=>H(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:o,pageContext:{countryCode:i}={}}=e,r=yield Ht(e);if(!(null==o?void 0:o.enabled)||!r)return c("No consent for getting glimr tags."),{};const a=w(i),d=Zt(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),Zt=(e,t)=>{const n=en();if(!n)return Wt;const o=((e=[])=>e.filter(Xt))(n),i=((e=[])=>e.filter(Gt))(n),r=((e=[],t,n)=>{var o;const i=e.filter(Yt);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=Kt[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:r,geofenceTags:i,weatherTags:o}},en=()=>{const e=Dt.getByTimestamp(zt);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},tn=()=>{var e;return((e=[])=>e.filter(Jt))(null!==(e=en())&&void 0!==e?e:[])},nn=()=>(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),on=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),rn=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:o=!1}={},pageContext:{countryCode:i}}=f.get(),r=[`${w(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)}},an="advertory:ppids-cache",dn={[b.SE]:`SCH${b.SE.toUpperCase()}-EnvHash`,[b.NO]:`SCH${b.NO.toUpperCase()}-EnvHash`},sn={[b.SE]:`SCH${b.SE.toUpperCase()}-UserHash`,[b.NO]:`SCH${b.NO.toUpperCase()}-UserHash`},ln={[b.SE]:`sch${b.SE}-envhash-v3`,[b.NO]:`sch${b.NO}-envhash-v3`},cn={[b.SE]:`sch${b.SE}-userhash-v3`,[b.NO]:`sch${b.NO}-userhash-v3`},un={[b.SE]:`'sch${b.SE}-iosid-v3'`,[b.NO]:`'sch${b.NO}-iosid-v3'`},pn={[b.SE]:`sch${b.SE}-androidid-v3`,[b.NO]:`sch${b.NO}-androidid-v3`},vn={[b.SE]:"sdrn:schibsted.com:user",[b.NO]:"sdrn:spid.no:user"};class gn{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 hn=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return H(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||c("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:""}},mn=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return H(this,void 0,void 0,function*(){var n,o,i,r,a,d,s,l,c,u,p;const v=Dt.get(an),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||c("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}}:{});Dt.set(an,i)}hashPPIDs(e,t){return H(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ee.post(t,n,e)}catch(e){return c("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return H(this,arguments,void 0,function*({clientId:e,instance:t},n){const o=yield((e,t)=>H(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${vn[t]}:${n}`:null}))(t,n),i=yield(r=t,H(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}}},fn=e=>H(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:o,isMobileApp:i}}=e;if(!(yield at(n,i,o,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([hn.processPPIDs(t,null==n?void 0:n.timeout),mn.processPPIDs(t,o)])).forEach((e,t)=>{if("rejected"===e.status){c(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),yn=e=>{const{ppid1:t,ppid2:n}=hn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=mn.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new gn).add(n,dn[e]).add(t,sn[e]).add(i,ln[e]).add(o,cn[e]).add(r,un[e]).add(a,pn[e]).buildEids()}]}},bn=()=>{const{ppid1:e,ppid2:t}=hn.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},wn=e=>{const{ppid1:t,ppid2:n}=hn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=mn.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new gn).add(n,dn[e]).add(t,sn[e]).add(i,ln[e]).add(o,cn[e]).add(r,un[e]).add(a,pn[e]).buildRyEids()}}]}}},xn=e=>{const{ppid1:t,ppid2:n}=hn.getPPIDs(),{ppid1:o,ppid2:i}=mn.getPPIDs();return(new gn).add(n,dn[e]).add(t,sn[e]).add(i,ln[e]).add(o,cn[e]).buildRyEids()},kn=e=>H(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=hn.getPPIDs(),{ppid1:o,ppid2:i}=mn.getPPIDs(),r=(new gn).add(n,dn[e]).add(t,sn[e]).add(i,ln[e]).add(o,cn[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Cn=(e,...t)=>H(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)}))}),In="advertory-fullscreen-scroll",Tn="advertory-fullscreen-scroll-wrapper",Sn="fullscreen-scroll-in-screen",En="in-screen",An=e=>e.includes("snoap.no"),On=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)},Pn=vt([],()=>{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}),jn=e=>{const t=vt([],()=>{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},$n=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},Ln=[],_n={},Nn=(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=>qn(e,o),{}),r=Mn(e);i.observe(e),o&&(_n[r]=Dn(e,null==t?void 0:t.options))},qn=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const o=Mn(e);n?(Fn(o,n),Bn(e,o,t)):(Fn(o,n),Rn(e,o,t))})},Fn=(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}`,"*")},Mn=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},Bn=(e,t,n)=>{e.classList.add(En),document.body.classList.add(Sn),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ln.includes(t)||Ln.push(t),n&&window.addEventListener("scroll",_n[t],{passive:!0})},Rn=(e,t,n)=>{Ln.includes(t)&&(n&&window.removeEventListener("scroll",_n[t]),document.body.classList.remove(Sn),e.classList.remove(En),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},Dn=(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&&zn(e,r,i,0),a.length&&zn(e,a,i,40)}},zn=(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 Un(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}Un('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const Wn="left",Hn={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}};let Vn=null;const Kn=(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=`(${Pn})()`,e+t.outerHTML})(n),n=$n(n),n=(e=>{if(An(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=jn(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>An(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)),An(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)),On(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},Xn=()=>{Vn=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`)},Gn=()=>{Vn||(Vn=window.requestAnimationFrame(Xn))},Jn=(e,t)=>{var n,o,i,r,a;const{pageContext:{countryCode:d,deviceType:s}}=f.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:o=1302,backgroundColor:i="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=o/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(o=null==c?void 0:c.overlayStyles)&&void 0!==o?o:{},s);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;Nn(p,t),u.className=In,Nn(p,t),u.className="advertory-fullscreen-scroll";const v=et(e,Oe)?"absolute":"fixed";u.style.position=v,p.className=Tn,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(i=null==c?void 0:c.annonsLabel)&&void 0!==i?i:Hn[d].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===Wn&&(u.dataset.moveCogwheelToTheLeft="true"),Gn(),window.addEventListener("resize",Gn),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",Gn),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",Gn)},Yn=e=>{if(!(null==e?void 0:e.classList.contains(In)))return;e.classList.remove(In),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(Tn))&&(t.classList.remove(Tn),t.classList.remove(En))};var Qn=Object.freeze({__proto__:null,createFullscreenScrollAd:Jn,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=On(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=On(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Kn(t,e))},undoFullscreenScrollContainer:Yn});const Zn=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},eo=(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}]}})),Zn(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},to="ad-loaded",no=(e,t,n)=>H(void 0,void 0,void 0,function*(){yield ge,yield he;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)}),oo=()=>H(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}=f.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=f.getHandlers(),{getConsentAsync:l}=rt(t,0,n),u=yield l(),p=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:o=>{const i=nn(),{prebid:{relevantCallbackTimeout:r}={}}=f.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}}})(),v=nn(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=nn();return{user:e,keywords:t}})();p.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:m}=g;(()=>{const e=on();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{c("prebid relevantYieldQueue callback fired - RY took over");if(p.getCancel()||!v.loadTags)return c("core loadTags() call was cancelled",{cancel:p.getCancel(),apnTagLoadTags:!v.loadTags,condition:"or"}),void p.cleanup();const t=on();p.events.relevantCb.done=!0,p.failsafeOnTimeout("auctionCb");const l=u?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};c("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},wn(n)),rn(m,h))),c("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},wn(n)),rn(m,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{c("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:p.getCancel()}),p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e)),p.cleanup()}},customNativeRender:e=>{io(e,s)},directRenderFn:e=>{var t,n,s;const{settings:l,renderFn:u}=e,{bid:p,adDiv:v}=l||{};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),f=null!==(s=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==s?s:0,y=Object.assign(Object.assign({},p),{targetId:g,banner:!0});c("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}),no(h,f,()=>{var e;const t=u(l),n=Re(y);if(c("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==p?void 0:p.width,height:null==p?void 0:p.height}),n)c("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),Jn(y,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const 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{c("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),Yn(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(to),(null==p?void 0:p.creativeId)&&eo(g,h,Number(null==p?void 0:p.creativeId))})}}),c("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,v.loadTags(e))}},customNativeRender:e=>{io(e,s)},directRenderFn:()=>{}})})}),io=(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},f.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")},ro=e=>`externalImpId:'${e}'`,ao=(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,so=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:o}=f.get(),{targetId:i,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:l=!1,nativeCustomProperties:u,safeframeConfig:p,dynamicSizeWidthCheck:v=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||bt())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!==ut):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),h=Object.assign({invCode:s,sizes:r,targetId:i,keywords:ao(a,l),allowedFormats:d,dynamicSizeWidthCheck:v,globalPlacementId:g},p&&{safeframeConfig:p}),m=(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?(c("Pulse state pageViewId is:",o),o):(c("Pulse state does not contain field pageViewId or it is empty"),"")})(o);n&&m&&(c("External Impression ID assigned to defineTag:",ro(m)),h.externalImpId=ro(m));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,o])=>((null==e?void 0:e.includes(n))&&(t[n]=o),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(u);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=y),h},lo=e=>!e.includes("takeover")||bt(),co=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=f.get(),n=w(t),o=e[`${n}-targetid`],i=o?U(o[0]):"";return Object.assign(Object.assign({},e),o&&{[`${n}-targetid`]:[i]})},uo=e=>{const{pageContext:{countryCode:t}}=f.get(),n=w(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"]})},po=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)},vo=e=>{const{source:t}=e;return"csm"===t},go=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),ho=new Map,mo=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],fo=".brandstudio-premium-content-widget",yo=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),bo=({adWrapper:e,placementContainer:t})=>{const n=yo({adWrapper:e,placementContainer:t});var o;null==e||e.style.setProperty("height",`${n}px`),se(o=t),o.innerHTML=""},wo=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},xo=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=f.get(),o=mo.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 wo(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?wo(d):s.hasAttribute("style")&&wo(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},ko=(e,t,n,o,i,r)=>{var a;const d=performance.now(),s=null!==(a=ho.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(o,i)&&n<0;d-s>=i&&l&&(ho.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:o}}=f.get(),i=null==n?void 0:n.parentElement;i&&n&&bo({adWrapper:i,placementContainer:n}),K(()=>{e.setKeywords([t],{[`${w(o)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},Co=(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,ko,t,n),go(300));o.observe(e)},Io=(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},To=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),So=(e,t=0)=>{const n=e.getBoundingClientRect(),o=window.innerHeight;return n.bottom>-t&&n.top<o+t},Eo=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=f.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),$o(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},Ao=(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;So(i,r)&&o&&(Y(o.targetId),n.length&&i.classList.remove(...n),$o([o],t))}},Oo=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:o}}=f.get();t&&(e.forEach(({targetId:e})=>{const t=Po(e);t&&(t.dataset.bfCacheRefresh="true")}),o?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&Ao(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const o=()=>{window.scrollY>0&&(window.removeEventListener("scroll",o),Ao(e,!1,t))};n.persisted&&(To()?window.addEventListener("scroll",o,{passive:!0}):Ao(e,!1,t))})})(e,n))},Po=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},jo=e=>{const{targetId:t,allowedFormats:n}=e,o=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Po(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},$o=(e,t=!1)=>{const{queryConfig:{batchSize:n=h}={}}=f.get(),o=e.map(({targetId:e})=>e),i=Io(o,n);if(t)for(const t of e){const e=jo(t);window.apntag.modifyTag(t.targetId,e)}for(const e of i)K(()=>window.apntag.refresh(e))},Lo=e=>{const{apntag:t,bus:n}=e,{siteEvents:o,initNativeAd:i}=f.getHandlers(),r=[];return{adRequested:()=>{n.emit("adRequested"),o.adRequested()},adAvailable:e=>H(void 0,void 0,void 0,function*(){var t,r,a,d,s,l;c("core adAvailable start",{adObj:e,isFullscreenScrollAd:Re(e),isFinnBlink:Xe(e.targetId),isNativeAd:De(e),isMediation:vo(e),isTakeoverAd:Ue(e),isCollapseAd:Ve(e),isWallpaperAd:He(e)});const u=null===(a=null===(r=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===r?void 0:r.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(vo(e)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(e.banner=null===(l=null===(s=u[1])||void 0===s?void 0:s.rtb)||void 0===l?void 0:l.banner),Re(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return Qn});t(e)}const{widescreenSwitching:p,wallpaper:v,fullscreenScroll:g}=f.get();if(Ye(e)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield Promise.resolve().then(function(){return nd});e()}if(Re(e)&&!Xe(e.targetId)){c("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return Qn});t(e,g)}if(!De(e)||vo(e)||Xe(e.targetId)||null==i||i(e,f.get()),Ue(e)&&!Ve(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield Promise.resolve().then(function(){return Cd});t(e.targetId),yield n(e)}if(He(e)&&(null==v?void 0:v.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return N});t(()=>K(()=>window.apntag.showTag(e.targetId)),v),G.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&G.setData("horseshoe",{isAvailable:!0}),o.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),c("core adAvailable stop",{adObj:e,isFullscreenScrollAd:Re(e),isFinnBlink:Xe(e.targetId),isNativeAd:De(e),isMediation:vo(e),isTakeoverAd:Ue(e),isCollapseAd:Ve(e),isWallpaperAd:He(e)})}),adLoaded:e=>H(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:a,wallpaper:d,adScaleConfig:s,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=f.get(),v=document.getElementById(e.targetId);if(Xe(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield Promise.resolve().then(function(){return Ed});t(e)}if(r.includes(e.targetId)&&De(e)&&(null==i||i(e,f.get()),jt({adObj:e})),!r.includes(e.targetId)&&vo(e)&&r.push(e.targetId),Ve(e)&&D(e.targetId),Ue(e)){const{modifyTakeoverIframe:n}=yield Promise.resolve().then(function(){return Cd});n(t,e.targetId)}if((e=>et(e,je))(e)){const{applyNinesixteenFormat:t}=yield Promise.resolve().then(function(){return jd});t(e)}if((e=>et(e,Le))(e)){const{applyFullsquareFormat:t}=yield Promise.resolve().then(function(){return jd});t(e)}if(ze(e)){const{applyFullwidthFormat:t}=yield Promise.resolve().then(function(){return jd});t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,o=document.querySelector(`#${n}`),i=null==o?void 0:o.parentElement;if(!i||!o)return;xo({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&&Co(o,a,r))})(e,n),(null==a?void 0:a.clearProbableDimensionsEnabled)&&J(e.targetId);if(G.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return N});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield Promise.resolve().then(function(){return Bt});t(e),n(e)}if(o.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return Qi}),n=new t(f.get(),e);n.trackLoad(),n.trackImpression()}Zn(e.targetId),v&&(v.classList.add(to),(e=>{var t,n;const{pageSectionsSelectors:o}=f.get(),i=null==o?void 0:o.mainFirstColumn,r=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),jt({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const o=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;o&&((e,t)=>{const{height:n,width:o,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&o&&(t.dataset.adSizes=`[${o},${n}]`)})(e,o)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:$t(e)}}))}),adNoBid:e=>H(void 0,void 0,void 0,function*(){if(D(e.targetId),Ue(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Ot});yield t(e)}o.adNoBid(e)}),adError:(e,t)=>H(void 0,void 0,void 0,function*(){if(Ue(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Ot});yield e(t)}o.adError(e,t)}),adCollapse:()=>{o.adCollapse()},adRequestFailure:e=>H(void 0,void 0,void 0,function*(){D(e.targetId),o.adRequestFailure(e)}),adBadRequest:e=>H(void 0,void 0,void 0,function*(){D(e.targetId),o.adBadRequest(e)}),adLoadedMediated:e=>o.adLoadedMediated(e),adNoBidMediated:e=>{o.adNoBidMediated(e)}}};let _o;const No=()=>{_o=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=_o,V=e=>window.apntag.anq.push(e)},qo=()=>_o,Fo={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>H(void 0,void 0,void 0,function*(){No(),yield Promise.allSettled([H(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get();(yield at(e,t,n,"xandr-endpoint"))||_o.setEndpoint("ib.adnxs-simple.com",!0)}),H(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=f.get();yield Cn(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),H(void 0,void 0,void 0,function*(){if(R())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=f.get(),i=yield at(t,n,o,"prebid");(null==e?void 0:e.enabled)&&i&&(yield Cn(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>H(void 0,void 0,void 0,function*(){const{pageOptions:e}=f.get(),{preparePageOptions:t}=f.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=f.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 H(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get();return(yield at(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=G.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=uo(e);G.setData("alertoryConfigKeywords",n)})(i.keywords),K(()=>qo().setPageOpts(i))}),definePlacements:e=>{const{prepareTag:t}=f.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=>{c("xandr definePlacements",{placement:e});const o=so(e);if(lo(e.targetId)){const i=t(o),r=(e=>{const{allowedFormats:t,invCode:n,keywords:o,sizes:i}=e;return{adTypes:t,invCode:n,keywords:co(o),sizes:i}})(i);n.push(r),K(()=>(c("xandr definePlacements - add to the queue",{placement:e,preparedTag:i}),qo().defineTag(i)))}}),(e=>{var t,n,o;(null===(o=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===o?void 0:o.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>H(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>lo(e)).map(({targetId:e})=>e);t.length&&K(()=>(c("xandr requestPlacements",{placementsIdsToLoad:t}),qo().loadTags([...t])))}),bindEvents:e=>H(void 0,void 0,void 0,function*(){var t;yield(t={apntag:qo(),bus:e},H(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=Lo(t);K(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))})},Mo=(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])}},Bo="collapseAd",Ro="hideAd",Do="resizeAd",zo="wallpaperImageUrl",Uo="wallpaperColor",Wo="velvet",Ho=[Do,zo,Uo,Bo,Ro,Wo];let Vo;const Ko=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(j(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:zo,wallpaperImageUrl:t}}if($(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Uo,wallpaperColor:t}}if(e.startsWith(Bo)||e.startsWith(Ro)){const t=e.split(":")[1];return{name:Bo,targetId:t}}if(e.includes("name")&&Ho.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Ho.some(e=>n.name===e))return;const{name:o,targetId:i,wallpaperImageUrl:r,wallpaperColor:a,cmd:d,size:s}=n;o===Wo&&d&&(d.includes("noScroll")&&(Vo=(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==Vo||Vo(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),o!==Bo&&o!==Ro||!i||D(i),o===Do&&i&&d&&Mo(i,d),"resizeMediationAd"===o&&i&&s&&Mo(i,s,!0),o===zo&&r&&L(r),o===Uo&&a&&_(a)},Xo=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=f.get(),o=window.apntag,i={publisher:e,countryCode:t,finnBlink:n},r=e=>{z(e),K(()=>o.showTag(e))};return{withXandrAd:r,withFinnBlinkAd:e=>H(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return zd});yield t(e,i,null)}),withFullAdsChain:e=>H(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 zd});yield t(e,i,r,()=>H(void 0,void 0,void 0,function*(){if(!G.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return N});t(e)}))})}},Go=(e,t)=>H(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield no(e,t,()=>((e,t,n)=>{const o="true"===n.dataset.isFinnBlinkOnlyPlacement;return Xe(t)&&o?(c(`loading finn blink ad for blink only placement for ${t}`),void Xo().withFinnBlinkAd(t)):Xe(t)?(c(`loading finn blink ad with full ads chain for ${t}`),void Xo().withFullAdsChain(t)):void K(()=>(c("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)))}),Jo=(e,t)=>H(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});Un(".advertory-brandmetrics-survey{width:100%}");const Yo="advertory-brandmetrics-survey",Qo=()=>H(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)}}),Zo="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",ei=()=>H(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}),ti={pageContext:{publisher:"aftonbladet",countryCode:b.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"}},ni={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},oi=e=>(null==e?void 0:e.parent)?[...oi(e.parent),e.shortPath||"unknown"]:[],ii=(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]=oi(e);return ni[n]||"ovrigaavdelningar"})(e)}_{position}`,ri={aftonbladet:ti},ai={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:ii(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:oi(e).join(":")}}},di=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},si=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),li="se-generic",ci="aa-sch",ui="kv_",pi="pause",vi="{deviceType}",gi="{position}",hi="afp_",mi=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),fi="1-1",yi="16-9",bi="3-4",wi="9-16",xi="responsive",ki={[fi]:1,[yi]:1.78,[wi]:.56,[xi]:1},Ci={[fi]:1,[yi]:1.78,[bi]:1.33,[wi]:.56},Ii=(e,t,n,o)=>{const{invCode:i="",videoOverlayInvCode:r}=null!=e?e:{},a=ye===n?xe:ke,d=i.replace(vi,a);return(e,n)=>{if(e===pi)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(gi,pi).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&mi.has(e)){return(o&&r?r:t.frontpageInvCodeTemplate).replace(vi,a).replace(gi,e)}return d.replace(gi,e)}},Ti=(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])},Si=()=>{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},Ei=()=>{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},Ai=()=>{const e=null!==(t=Ei()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Ei()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Oi=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Pi=(e,t)=>H(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 at(n,e.isApp,i,"video"))?"1":"0",l=yield ei(),c=yield kn(i),u=yield st({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)=>Ti(Ci,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Ti(ki,Number(m.toFixed(2))):xi;var m,f;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`]:(f=e.deviceType,f===ye?be:we),[`kw_${ci}-page_type`]:"collection",[`${ci}-page_type`]:"collection",[`${li}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${li}-page`]:"index",[`${li}-page`]:"index",[`${li}-screenheight`]:String(window.screen.height),[`${li}-screenwidth`]:String(window.screen.width),[`${li}-viewportheight`]:String(a),[`${li}-viewportwidth`]:String(r),[`${li}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${li}-mobile-os`]:Lt(),[`${li}-audience`]:void 0,[`${li}-externalid_src`]:Ai(),[`${li}-tags`]:e.tags,[`${li}-articleid`]:p,"article-id":p},yield Qt(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${li}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Oi()).some(e=>e.includes(ui))&&(()=>{const e=Oi(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(ui)).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})}),ji=["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"],$i=["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"],Li=["external_uid","gdpr","gdpr_consent","eids","article-id"],_i=(e,t)=>{const n=[...ji,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Li.includes(e)?e:`kw_${e}`,t]))},Ni=e=>Object.fromEntries(Object.entries(e).filter(([e])=>$i.includes(e))),qi=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o,i,r;const a=(e=>{var t;ri[e]||u(`[video] No config found for publisher "${e}"`);return null!==(t=ri[e])&&void 0!==t?t:ti})(e.publisher),d=(e=>{var t;return null!==(t=ai[e])&&void 0!==t?t:ai.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,l=null===(o=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString(),c=e.assetId===l,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,v=c?"preroll":"bumper";var g;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield Pi({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:c,instreamAspectRatio:p,playerAspectRatio:Si(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:v,playbackMethod:di(e.startMode)}}),Fi=(e,t)=>{const{siteConfig:n,siteVideoParams:o,isUserPresentOnFrontPage:i,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=o||{},l=Ii(o,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(hi)?`${hi}${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":si.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({},_i(r,n)),Ni(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")})}}}},Mi=e=>t=>H(void 0,void 0,void 0,function*(){const n=yield qi(e,t);return Fi(n,e)}),Bi={plcmtcnt:1,context:1,contextsubtype:10,plcmttype:1,assets:[{id:1,title:{len:100},required:0},{id:2,img:{type:1,hmin:10,wmin:10},required:0},{id:3,img:{type:3,hmin:10,wmin:10},required:0},{id:4,data:{type:2},required:0},{id:5,data:{type:12},required:0}],ver:"1.2",eventtrackers:[{event:1,methods:[1,2]}]},Ri={no:"NOK",se:"SEK"},Di={no:"no",se:"sv"};class zi{buildFetchObject(e,t,n,o){return H(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:r}=o,{invCode:a,xandrPlacementId:d}=e,s=yield ei(),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(Bi),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:ve(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||Di[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield st(o),ext:{consent:s.gdpr_consent||"",eids:xn(i)}},at:1,cur:[Ri[i]],source:{tid:ve(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,o){return H(this,void 0,void 0,function*(){try{c("Starting fetching Studio ad from Xandr:",Zo);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?`${Zo}?${a.toString()}`:Zo,s=yield this.buildFetchObject(e,t,n,o),l=yield ee.post(d,i,s);return c("Fetch operation completed successfully.",l),l}catch(e){c("Error during fetch operation:",e)}return null})}}const Ui=0,Wi=3,Hi=(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},Vi="finn-blink",Ki="native-ad",Xi=(e,t,n)=>{var o;const i=t.replace(/-[^-]*$/,"");return null===(o=null==n?void 0:n[e].find(e=>e.targetId===i))||void 0===o?void 0:o.invCode},Gi=(e,t)=>{new IntersectionObserver((e,n)=>{for(const o of e)if(o.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class Ji{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&Gi(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class Yi extends Ji{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return Xi(e,this.adObj.targetId,t)}buildAdObject(){const e=Yi.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}var Qi=Object.freeze({__proto__:null,XandrAdTracker:Yi});const Zi=(e,t)=>{er(e,t),nr(e,t)},er=(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(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,o,i,r,a,d;for(const t of null!==(o=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==o?o:[])ir(t);if((null===(i=null==t?void 0:t.pulse)||void 0===i?void 0:i.instance)&&(null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(d=t.deviceType)&&void 0!==d?d:ye};new Yi({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},tr=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(or):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},nr=(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:ye])&&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,tr(e),c.disconnect();break}},s);c.observe(i)},or=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?ir(e):window.navigator.sendBeacon(e)},ir=e=>{ee.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},rr=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:[]}),ar=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o;const{pageContext:{deviceType:i},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void c(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},go(d)).observe(s)});const{prepareTag:l}=f.getHandlers(),u=G.getData("alertoryConfigKeywords"),p=null!==(o=l(so(e)).keywords)&&void 0!==o?o:{},v=new zi,g=yield v.fetchData(e,u,p,t);g&&(((e,t,n)=>{const o=n===me?t.mobileHTML:t.desktopHTML;if(o){if(t.adType===Ui){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${o}`,e.appendChild(n)}else e.innerHTML=o;e.classList.add("ad-loaded")}})(s,g,i),g.adType===Wi&&(Hi(t.pageContext.publisher,s,Ki,t.pageContext.pageType),Zi({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.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)),eo(e,n,Number(null==o?void 0:o.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,g.bid))}),dr=(e,t)=>{e.forEach(e=>ar(e,t).catch(e=>{c("Failed to handle server-side ad:",e)}))},sr={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni",MTV:"mtv"},lr=(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(sr).includes(o);n&&r&&Hi(o,e,Ki,i)})(i,n),o())},cr={"no-aftenposten":sr.AFTENPOSTEN,"no-stavangeraftenblad":sr.SA,"no-bergenstidende":sr.BT},ur=(()=>{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:te}/${oe}/${e}/adjustments/${t}.json`)(e,n,t),i=ur.getAdjustment(o);if(i)return i;const r=ee.get(o,{timeout:ne}).catch(e=>(c("Failed to fetch native template adjustment",{error:e,url:o}),null));return ur.setAdjustment(o,r),r},vr=(e,t,n)=>H(void 0,void 0,void 0,function*(){const o=((e,t)=>`${null!=t?t:te}/${oe}/${e}/default.json`)(e,n);let i=ur.getTemplate(o);i||(i=ee.get(o,{timeout:ne}).catch(e=>{throw c("Failed to fetch native template",{error:e,url:o}),ur.deleteTemplate(o),e}),ur.setTemplate(o,i));const r=pr(e,n,t),[a,d]=yield Promise.all([i,r]);return{schema:a,adjustment:d}}),gr="data-ad-video",hr="viewable",mr="adClick",fr=(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"}))},yr=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),br=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},wr=e=>H(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)))}))}),xr={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 H(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Wd})})}})}},kr=(e,t)=>{null==e||e.forEach(e=>{xr[e](t)})},Cr={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},Ir=({container:e,native:t,type:n,publisher:o})=>{const i=e.querySelector(`[${gr}]`),{video:r,image:a,clickUrl:d=""}=t;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:s,videoLoop:l}=(e=>{var t;return null!==(t=Cr[e.toLowerCase()])&&void 0!==t?t:Cr.default})(n),c=Math.ceil(1e5*Math.random()),u=`ad-player-${c}`;i.id=u;const p=(({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({},yr(e)?e:{}),{provider:Object.assign(Object.assign({},yr(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}))({id:c,nodeId:u,poster:(null==a?void 0:a.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:fr(r.content,d),publisher:o,videoLoop:l});H(void 0,[{playerConfig:p,clickUrl:d,pluginsNames:s}],void 0,function*({playerConfig:e,pluginsNames:t,clickUrl:n}){const o=yield wr(e);kr(t),o.once("assetReady",()=>{br(o,t)}),o.on(hr,e=>{const{viewable:t}=e;t?o.play():o.pause()}),n&&o.on(mr,()=>{window.open(n,"_blank")}),e.repeat&&o.on("pause",()=>{o.play()})})},Tr=(e,t)=>{const{adjustmentOverrides:n}=e,o=W(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},o),t.overrides&&{adjustmentOverrides:a({},t.overrides)})},Sr="desktop",Er="mobile",Ar="container",Or="text",Pr="image",jr="cogwheel",$r="video",Lr=e=>{if(e)return e===me?Er:Sr},_r=(e,t,n)=>{var o,i,r,a,d,s,l,c,u,p,v,g,h;const m=t?null===(o=e.overrides)||void 0===o?void 0:o[t]:void 0,f=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[e.id],y=t?null===(r=null==n?void 0:n[t])||void 0===r?void 0:r[e.id]:void 0;if(null!==(s=null!==(d=null!==(a=null==y?void 0:y.hidden)&&void 0!==a?a:null==f?void 0:f.hidden)&&void 0!==d?d:null==m?void 0:m.hidden)&&void 0!==s?s:e.hidden)return null;const b=Object.assign(Object.assign(Object.assign(Object.assign({},e.styles),null==m?void 0:m.styles),null==f?void 0:f.styles),null==y?void 0:y.styles),w=null!==(u=null!==(c=null!==(l=null==y?void 0:y.tag)&&void 0!==l?l:null==f?void 0:f.tag)&&void 0!==c?c:null==m?void 0:m.tag)&&void 0!==u?u:e.tag,x=null!==(g=null!==(v=null!==(p=null==y?void 0:y.text)&&void 0!==p?p:null==f?void 0:f.text)&&void 0!==v?v:null==m?void 0:m.text)&&void 0!==g?g:e.text,k=null===(h=e.children)||void 0===h?void 0:h.map(e=>_r(e,t,n)).filter(e=>null!==e),C={id:e.id,tag:w,type:e.type,name:e.name,styles:b,connections:e.connections};return void 0!==x&&(C.text=x),void 0!==k&&(C.children=k),C},Nr=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(";"),qr=(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 Fr{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 Mr=(e,t,n="")=>{var o;return(null===(o=e.connections)||void 0===o?void 0:o.length)?((e,t)=>{const n=[];for(const{properties:o}of e)for(const e of o){const o=qr(t,e);o&&n.push(o)}return n.join(" ")})(e.connections,t):n},Br=(e,t,n,o)=>{var i;const{tag:r,styles:a}=e,d=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Dr(e,t,n,!1)).join(""),s=new Fr(r);return o(s),s.attr("href","a"===r?Mr(e,t):"").attr("style",Nr(a)).children(d).build()},Rr={[Ar]:(e,t,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return Br(e,t,n,t=>{o&&t.attr("class",`advertory-${r}-ad-native-${e.name.toLowerCase()}`)})},[jr]:(e,t,n)=>Br(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[Or]:(e,t)=>{var n;return new Fr(e.tag).attr("style",Nr(e.styles)).children(Mr(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[Pr]:(e,t)=>new Fr("img",!0).attr("style",Nr(e.styles)).attr("src",Mr(e,t)).build(),[$r]:(e,t)=>"video"===e.tag&&Mr(e,t)?new Fr("div").attr(gr,"true").attr("style",Nr(e.styles)).build():""},Dr=(e,t,n,o=!0)=>{const i=Rr[e.type];return i?i(e,t,n,o):""},zr=e=>(t,{publisher:n,containerId:o,deviceType:i})=>(({config:e,nativeData:t,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const a=o?Tr(e,o):e,d=_r(a.root,n,a.adjustmentOverrides);return d?Dr(d,t,{breakpoint:n,publisher:i,containerId:r}):null})({config:e,nativeData:t,breakpoint:Lr(i),publisher:n,containerId:o}),Ur="[data-carousel-track]",Wr=({image_link:e,title:t})=>{const n=document.createElement("figure"),o=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),o.className="slide-image",o.src=e,o.alt=t,o.loading="lazy",o.draggable=!1,n.appendChild(o),n},Hr=e=>Boolean(e.title&&e.link&&e.image_link),Vr=(e,t)=>H(void 0,void 0,void 0,function*(){const n=e.querySelector(Ur);var o;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const i=yield(e=>H(void 0,void 0,void 0,function*(){try{const t=yield ee.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(u("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return u("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!i)return void e.replaceChildren();const r=i.items.filter(Hr);if(!r.length)return void u("Carousel feed has no usable items");yield Promise.resolve().then(function(){return Vd});const a={title:(o=e).querySelector("[data-product-title]"),description:o.querySelector("[data-product-description]"),price:o.querySelector("[data-product-price]"),link:o.querySelector("[data-product-link]")};n.replaceChildren(...r.map(Wr)),(({root:e,onChange:t})=>{var n;const o=e.querySelector("[data-carousel-viewport]"),i=e.querySelector(Ur),r=Array.from(null!==(n=null==i?void 0:i.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!o||!i||!r.length)return;const a=r.length,d=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let s=1,l=null,c=0,u=!1;const p=e=>{const t=d[0].offsetWidth,n=Number.parseFloat(getComputedStyle(i).columnGap)||0,r=(o.clientWidth-t)/2-s*(t+n);i.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",i.style.transform=`translate3d(${r+c}px, 0, 0)`,i.offsetWidth},v=(e,n=!0)=>{s=e,p(n),d.forEach((e,t)=>e.classList.toggle("is-active",t===s)),null==t||t((s-1+a)%a)},g=()=>{0===s?v(a,!1):s===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*o.clientWidth?-Math.sign(c):0;l=null,c=0,v(s+e),window.setTimeout(()=>{u=!1})};i.replaceChildren(...d),i.addEventListener("transitionend",e=>{e.target===i&&g()}),o.addEventListener("pointerdown",e=>{g(),l=e.clientX,o.setPointerCapture(e.pointerId),p(!1)}),o.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),o.addEventListener("pointerup",h),o.addEventListener("pointercancel",h),o.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:o},i)=>{e&&(e.textContent=i.title),t&&(t.textContent=i.description),n&&(n.textContent=i.sale_price||i.price),o&&(o.href=i.link)})(a,r[e])}),c("Carousel mounted",{items:r.length})}catch(t){u("Carousel could not be rendered",t),e.replaceChildren()}else u("Carousel feed url is missing or not a valid https url",{url:t})}),Kr="default",Xr=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o,i,r,a,d;const s=document.querySelector(`#${e.targetId}`),{native:l}=e;if(!l||!s)return;const{desc2:u}=l,p=null==u?void 0:u.toLowerCase(),v=((e,t)=>{const n=B(M),o=new URLSearchParams(window.location.search).get(M),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!["shopping"].includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null})(e.targetId,null!=u?u:Kr),g=(null!=v?v:p)||Kr,h=(null===(n=l.video)||void 0===n?void 0:n.content)?`${g}-video`:g,m=(e=>{var t;if(e)return null!==(t=cr[e])&&void 0!==t?t:e})(null===(o=t.pageContext)||void 0===o?void 0:o.publisher);try{const{schema:n,adjustment:o}=yield vr(h,m,null===(i=t.editory)||void 0===i?void 0:i.editoryUrl),c=o?Tr(n,o):n,u=zr(c),p={publisher:m,pageType:null===(r=t.pageContext)||void 0===r?void 0:r.pageType,deviceType:null===(a=t.pageContext)||void 0===a?void 0:a.deviceType,appearanceConfig:t.appearanceConfig,nativeTrackingConfig:t.nativeTrackingConfig,containerId:e.targetId,clickLinkSelector:"a",pulse:t.pulse},v=u(l,p),{enabled:f=!0}=null!==(d=t.nativeTrackingConfig)&&void 0!==d?d:{};lr(e.targetId,v,p,()=>{Zn(e.targetId),Ir({container:s,native:l,type:g,publisher:m}),f&&Zi(e,p)})}catch(e){c("Failed to render native ad from config",{error:e})}}),Gr="_adchoices_non_rtb",Jr=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Gr}={}}={}}=f.get();return`${k(e)}${t}`},Yr=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>D(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Jr(e.invCode)})))(e)),Qr=e=>`${Math.max(0,Math.round(e))}px`,Zr=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},ea=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const o=e[t];n.style.setProperty(t,o)}},ta=()=>{const{pageSectionsSelectors:e}=f.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=Zr(t);ea({"--advertory-header-height":Qr(n)})})(e.header)};let na=Fo,oa=[];const ia=["takeover","wallpaper"],ra=(e,t)=>{var n,o;const{initNativeAd:i}=f.getHandlers();null==i||i(e,null!==(o=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==o?o:f.get())},aa=e=>{const t=(e=>{var t;const n=G.getData("alertoryConfigKeywords"),{queryConfig:o,placements:i,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:m,fullscreenScroll:f,fullWidth:y}=e,b=null!==(t=null==o?void 0:o.batchSize)&&void 0!==t?t:h;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:i,tcf:r,queryConfig:Object.assign(Object.assign({},o),{batchSize:b})},a&&{glimr:a}),d&&{appearanceConfig:d}),m&&{takeover:m}),f&&{fullscreenScroll:f}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.17.3",siteConfig:e,renderNativeAd:ra,alertoryConfig:t}},da=()=>H(void 0,void 0,void 0,function*(){yield na.setTargeting()}),sa=e=>H(void 0,void 0,void 0,function*(){var t,n;const{prebid:o,tcf:i,pageContext:{isMobileApp:r,countryCode:a}}=f.get(),d=yield at(i,r,a,"loadPlacements"),s=Yr(e,d);null===(t=na.definePlacements)||void 0===t||t.call(na,s);(null==o?void 0:o.enabled)&&d&&!R()?(c("core loadPlacements prebid enabled"),yield oo()):(c("core load tags invoked without prebid enabled"),yield null===(n=na.requestPlacements)||void 0===n?void 0:n.call(na,s))}),la=(e,t)=>H(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:o}}=f.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&&(c("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:i,deviceDefaultThreshold:d}),yield Go(a,null!=i?i:d)),a&&(null==r?void 0:r.scroll)&&(c("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),ca=e=>e.some(({targetId:e})=>ia.some(t=>e.includes(t))),ua=e=>H(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=h}={},pageContext:{deviceType:o}}=f.get(),i=Ae(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,...Io(d,n)]})(o);for(const e of i)ca(e)?(c("core loadAds without lazy loading",{placementsToLoad:e}),yield sa(e)):e.length&&(c("core loadAds with lazy loading",{placementsToLoad:e}),yield pa(e));const{finnBlink:r}=f.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield Promise.resolve().then(function(){return zd});yield e(n)}}),pa=e=>H(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=f.get(),o=[];if(!t)return c("lazy load is not enabled",{placements:e}),void(yield sa(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{c("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&&sa(e),c("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&&(c("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),va=()=>H(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>H(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>H(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=oa.find(({targetId:t})=>t===e.targetId);t&&(yield la(t,e),oa=oa.filter(e=>e.targetId!==t.targetId))})),yield na.bindEvents(e)}),ga=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o;if(c(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return c("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:i,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:d,contextSelector:s}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let u=[];if(r)return le(),oa=[],ce(),[];if(i&&(u=null!==(o=le())&&void 0!==o?o:[]),i&&!l)return[];i&&l&&(oa=[],ce()),a&&(le(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{z(e.id)})),yield ue(e),(null==e?void 0:e.pageSectionsSelectors)&&ta(),yield da();const{clientSidePlacements:p,serverSidePlacements:v}=rr(Se(s)),g=[...p,...v];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>U(e)));e.filter(e=>n.has(e)).forEach(e=>z(e))})(u,g),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>U(e)));e.filter(e=>!n.has(e)).forEach(e=>J(e))})(u,g);let h=p;return d&&(h=h.filter(e=>Xe(e.targetId))),dr(v,f.get()),h.length>0&&(oa=[...oa,...h.map(e=>Object.assign({},e))],Eo(h),Oo(h),yield ua(h)),oa}),ha=(e,t,n)=>H(void 0,void 0,void 0,function*(){var o,i;const{initConsentManager:r,getConsentAsync:a}=rt(e.tcf,null===(o=e.pageContext)||void 0===o||o.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),d=yield ae(e);yield Qo(),yield Jo(r),yield Jo(a),c("TCF resolved successfully"),yield((e,t,...n)=>H(void 0,[e,t,...n],void 0,function*(e,t,n=Fo){var o,i;na=n,f.set(e),f.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:r,kilkaya:a,rightColumnSplit:d,finnBlink:s}=e;G.initialize(),window.addEventListener("message",Ko,!1);const[l]=yield Promise.allSettled([na.setup(),fn(e),H(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=f.get();(yield at(t,n,o,"gpt-endpoint"))&&(yield Cn(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),H(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=f.get(),{getConsentAsync:r}=rt(n,0,i),a=yield r();if(e&&t&&a){if(yield Cn(t),document.querySelector(`.${Yo}`))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(Yo)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),Vt(),H(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=f.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Cn(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===l.status)throw l.reason;if(c("Driver has been set up"),null==r?void 0:r.enabled){const{loadNorstat:e}=yield Promise.resolve().then(function(){return Xd});yield e()}if(c("Libraries have been loaded and trackers have been set"),ta(),yield va(),yield da(),c("Page options have been set"),aa(e),c("Advertory is setup on window"),"dom-discovered"===na.capabilities.tagDefinition)return yield null===(o=na.requestPage)||void 0===o?void 0:o.call(na),void c("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=rr(Se());if(oa=u,dr(p,e),Eo(oa),Oo(oa),yield ua(oa),c("Ads has been loaded",oa),po(oa),null==s?void 0:s.enabled){const{replaceAdsWithFinnBlink:t}=yield Promise.resolve().then(function(){return zd});yield t(null===(i=null==e?void 0:e.pageContext)||void 0===i?void 0:i.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield Promise.resolve().then(function(){return ts});t(e.rightColumnSplit)}if(null==a?void 0:a.enabled){const{runKilkaya:t}=yield Promise.resolve().then(function(){return Cs});yield t(e)}}))(d,t,n),c("Run function resolved successfully")}),ma={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{const t=window.screen.width||window.innerWidth;980===e.width&&t<980&&"native"!==e.adType&&((e,t)=>{qt(e,t);const n=document.querySelector(`#${e.targetId}`);n&&(n.style.minWidth="100vw")})(e,t)},adNoBid:e=>{(e=>{const{targetId:t}=e,n=`${U(t)}_backfill`,{placements:o,pageContext:{deviceType:i}}=f.get();if(!o[i].some(e=>e.targetId===n))return;const r=document.querySelector(`#${t}`),a=null==r?void 0:r.parentElement;if(!r||!a)return;z(t);const d=`backfill_wrapper_for_${t}`;a.setAttribute("id",d),r.setAttribute("id",n),ga({},{contextSelector:`#${d}`})})(e)},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},fa={publisherClassName:sr.TEK,fullWidthFormatClassName:"netboard"},ya=["sponsor","seamless"],ba=["shopping"],wa=(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:f,customTitle4:y,customBody1:b,customBody2:w,customBody3:x,customBody4:k,customBody5:C,customIcon1:I,customIcon2:T,customDisplayUrl1:S,customDisplayUrl2:E}=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=ya.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=o.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return A(t?I: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!=f?f:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=x?x:"",customBody4:null!=k?k:"",customBody5:null!=C?C:"",logo2:A(T),previewVideoSrc:null!=S?S:"",feedUrl:null!=E?E:""},t)},xa=(e,t)=>{const n=B(M),o=new URLSearchParams(window.location.search).get(M),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!ba.includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},ka=(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(sr).includes(o);n&&r&&Hi(o,e,Ki,i)})(i,n),o())},Ca=(e,t,n)=>{var o;const i=((e,t,n)=>{var o;const{displayTemplates:i,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(o=xa(e.targetId,l))&&void 0!==o?o:c,p=Hn[t.language||b.NO],v=wa(d,p,s,t);return(d.video?r[u]:i[u]||i.default)(v,t)})(e,t,n);ka(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Zi(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&Vr(r,null===(o=e.native)||void 0===o?void 0:o.customDisplayUrl2)},Ia=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},Sa=e=>{const{siteSpecificConfig:t}=f.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Ea{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return H(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 H(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Aa=9826;class Oa{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=f.get();if(t){return{"aa-sch-supply_type":`app_${e===me?"phone":fe}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return H(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 H(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=dt("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return H(this,void 0,void 0,function*(){return yield st(f.get())})}isTrackingForbidden(){return H(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=Aa}={}}=f.get();return"true"===q("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=f.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return H(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get(),{getConsentAsync:o}=rt(e,0,n);return{"aa-sch-cmp_advertising":(yield o())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=f.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 Pa=new Oa;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=Lt();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:o.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Pa.prepare.bind(Pa);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 Oa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=f.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=f.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}}=f.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 H(this,void 0,void 0,function*(){var t,n,o,i,r,a,d;const s=f.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 Ea;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Qt(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(bn()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},yn(b.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},qa=Na.prepare.bind(Na);class Fa extends Oa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=f.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 H(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}}=f.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}}=f.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 Ma=new class extends Fa{prepare(e){return H(this,void 0,void 0,function*(){var t,n,o,i,r,a;const d=f.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 Ea;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync(Qt(d,s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>H(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(bn()).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"===dt("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({},yn(b.SE)),p?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Ba=Ma.prepare.bind(Ma),Ra="viewable",Da="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=Ua(i.content,a),h=Wa({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 Ua=(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"}))},Wa=({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({},yr(e)?e:{}),{provider:Object.assign(Object.assign({},yr(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}),Ha=e=>H(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:o}=e,{repeat:i}=t,r=yield wr(t);kr(n),r.once("assetReady",()=>{br(r,n)}),r.on(Ra,e=>{const{viewable:t}=e;t?r.play():r.pause()}),r.on(Da,()=>{window.open(o,"_blank")}),i&&r.on("pause",()=>{r.play()})}),Va=({containerId:e,url:t,body:n,title:o,logo:i,description:r,isContentVideoAd:a=!1})=>{const d=`\n <div class="ad-header">\n <span>${Hn.no.adContent}</span>\n ${i?`<img alt="" aria-hidden="true" class="ad-logo" src="${i}" />`:""}\n </div>\n `,s=`\n <div class="ad-text">\n <h3>${o}</h3>\n ${r?`<div>${r}</div>`:""}\n </div>\n `;return`\n <div id="${e}" class="advertory-tekno-ad-content">\n <div class="ad-info" id="${e}-button"></div>\n ${a?`\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 `};Un('@import"https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap";.advertory-shared-ad-native-content-display-basic{width:100%;font-family:Roboto,sans-serif;color:#6d747e;text-align:left;background:#fff;position:relative;margin:0 auto;display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic *{line-height:normal}.advertory-shared-ad-native-content-display-basic .ad-info{top:0;right:8px;position:absolute}.advertory-shared-ad-native-content-display-basic .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic .ad-link{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-link:hover{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-header{padding:5px 16px;background-color:#ffcd00;font-size:12px;text-transform:uppercase;color:#495057;font-weight:600}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper{display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{position:relative;padding-bottom:40%}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{display:none}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper{position:absolute;height:100%;width:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper .ad-large-image{object-fit:cover;min-width:100%;height:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content{box-sizing:border-box;display:flex;background-color:#fffae6}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container{flex-grow:1;padding:16px}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:20px;color:#212529;font-weight:600;margin-bottom:16px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:22px}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-sponsor{font-size:11px;color:gray;font-weight:600;text-transform:uppercase}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:none;max-width:175px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:block}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover;max-width:100%}.advertory-shared-ad-native-content-display-basic.article .ad-info{top:0;right:0;position:absolute;border-bottom-left-radius:50%;background:hsla(0,0%,100%,.6)}.advertory-shared-ad-native-content-display-basic.article .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{display:block}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container{padding:8px 16px;border-left:4px solid #ffcd00}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{display:flex;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper .ad-header{padding:2px 4px;font-size:11px}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:15px;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:18px;margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:16px 8px 16px 0}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:0}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:contain}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover}}');const Ka={FRONT:"front"};Un('.advertory-abo-ad-native-sponsorstripe{position:relative;top:0;left:0;width:100%;background:inherit;padding:0;margin:0;border:none;text-align:left}.advertory-abo-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:980px;height:30px;padding:5px 15px;margin:auto;font-family:"Helvetica Neue",Arial,Roboto,sans-serif}.advertory-abo-ad-native-sponsorstripe .ad-logo{flex:0;height:20px;max-width:35%;max-height:inherit}.advertory-abo-ad-native-sponsorstripe .ad-title{margin-right:10px;padding-left:34px;font-size:13px;color:#fff}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper{display:grid;position:absolute;place-content:center;height:30px;min-width:30px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{display:inline-block;height:20px;width:20px;position:relative;border:solid 1px #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{content:"i";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:13px}.advertory-abo-ad-native-sponsorstripe .ad-description{font-size:13px;color:#fff;position:absolute;top:0;max-width:980px;min-height:30px;padding:15px 35px 15px 15px;margin-left:-15px;background-color:rgba(0,0,0,.9)}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper{position:absolute;top:15px;right:15px;place-content:center;height:16px;min-width:16px}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button{display:inline-block;height:16px;width:16px;position:relative;border:1px solid #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button:before{content:"✕";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:10px;font-weight:bold}.advertory-abo-ad-native-sponsorstripe .ad-description .ad-description-readmore{color:#c7ecff}.advertory-abo-ad-native-sponsorstripe .ad-description.hide{display:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-sponsorstripe .ad-wrapper{height:50px}.advertory-abo-ad-native-sponsorstripe .ad-wrapper .ad-description{min-height:50px}.advertory-abo-ad-native-sponsorstripe .ad-logo{height:40px}.advertory-abo-ad-native-sponsorstripe .ad-title{font-size:20px;padding-left:40px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{height:30px;width:30px;border-width:2px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{font-size:20px}}');const Xa={default:{NATIVE_TEMPLATE:({containerId:e,url:t,sponsoredBy:n,title:o,img:i,adText:r})=>(Promise.resolve().then(function(){return Ts}),`<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>`)}.NATIVE_TEMPLATE,content:({containerId:e,url:t,title:n,img:o,imgWidth:i,imgHeight:r,description:a,logo:d,imgAltText:s},l)=>{const c=Ft(i,r);return Va({containerId:e,url:t,title:n,logo:d,description:a,body:`\n<div class="ad-image-wrapper" ${c?`style="padding-bottom: ${100*c}%"`:""}>\n <img alt="${s}" class="ad-image" src="${o}" />\n</div>`})},contentVideo:(e,t)=>za(({containerId:e,url:t,title:n,logo:o,description:i},r,a)=>Va({containerId:e,url:t,title:n,description:i,logo:o,isContentVideoAd:!0,body:`\n<div class="ad-video-wrapper">\n <div id="${a}"></div>\n</div>`}))(e,t),nativeVideo:(e,t)=>za(({containerId:e,url:t,sponsoredBy:n,title:o,description:i},r,a)=>(({containerId:e,url:t,sponsoredBy:n,body:o,title:i,description:r})=>`\n<div id="${e}" class="advertory-tekno-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">${Hn.no.adFrom} ${n}</div>\n ${o}\n <div class="ad-text">\n <h3>${i}</h3>\n ${r?`<div>${r}</div>`:""}\n </div>\n </a>\n</div>`)({containerId:e,url:t,description:i,sponsoredBy:n,title:o,body:`\n<div class="ad-video-wrapper">\n <div id="${a}"></div>\n</div>`}))(e,t),sponsorstripe:e=>{var{title:t,logo:n}=e;return W(e,["title","logo"]),`<div class="advertory-tekno-sponsorstripe">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').parentElement.querySelector('.disclaimer');\n disclaimer.style.display = 'flex';\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">${t}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${n}" />\n <div class="disclaimer" style="display: none">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').parentElement;\n disclaimer.style.display = 'none';\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 som omhandler denne tematikken.\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>`}},Ga={displayTemplates:{default:Xa.default,content:Xa.content,sponsorstripe:Xa.sponsorstripe,seamless:{NATIVE_SEAMLESS:({containerId:e,url:t,adText:n,img:o,cta:i,description:r,logo:a,sponsoredBy:d,title:s,feedUrl:l})=>(Promise.resolve().then(function(){return Is}),`<article class="advertory-shared-ad-native-seamless">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank" data-product-link>\n <div class="ad-content">\n <div class="ad-header">\n ${a&&`<img alt="${d}" class="ad-logo" src="${a}" loading="lazy" />`}\n <div class="ad-annons">${n}</div>\n </div>\n ${(({img:e,title:t,feedUrl:n})=>n?'<div class="ad-carousel">\n <div class="carousel-window" data-carousel-viewport>\n <div class="carousel-track" data-carousel-track></div>\n </div>\n </div>':`<div class="ad-image-container">\n <img alt="${t}" class="ad-image" src="${e}" loading="lazy">\n </div>`)({img:o,title:s,feedUrl:l})}\n <div class="ad-footer">\n <div class="ad-row">\n <div class="ad-text-wrapper">\n <div class="ad-description" data-product-description>${r}</div>\n <h2 class="ad-headline" data-product-title>${s}</h2>\n </div>\n <div class="ad-purchase">\n <span class="ad-price" data-product-price></span>\n <div class="ad-action">${i}</div>\n </div>\n </div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_SEAMLESS},videoTemplates:{default:Xa.nativeVideo,content:Xa.contentVideo}},Ja={prepareTag:e=>{var t;const{keywords:n,targetId:o,invCode:i,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=f.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=f.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}}=f.get(),{keywords:n,dynamicSizeWidthCheck:o}=e,i=`${w(t)}-adformat`,r=n?n[i]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Be)||window.innerWidth>=Be[e]);return{[i]:o?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=f.get(),n=`${w(t)}-targetid`;return e?{[n]:[e]}:{}})(o),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=Ta(),h=(e=>Sa(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),m=((e,t)=>Sa(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),y=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,b=(new Ea).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${w(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:b,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>H(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=f.get();return yield t===b.SE?Ba(e):qa(e)}),siteEvents:ma,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=Ka.FRONT,deviceType:d}=null!==(i=null==t?void 0:t.pageContext)&&void 0!==i?i:{},{nativeTrackingConfig:s,appearanceConfig:l,pulse:c}=null!=t?t:{},u={language:b.NO,publisher:sr.TEK,deviceType:d,pageType:a,nativeTrackingConfig:s,appearanceConfig:l,pulse:c};Ca(e,u,Ga)}},Ya=((e,t,n)=>({init:o=>{return i=Object.assign(Object.assign({},o),{siteSpecificConfig:t}),r=e,a=n,H(void 0,void 0,void 0,function*(){c(`Received configuration passed to Advertory: ${JSON.stringify(i)}`),yield ha(i,r,a)});var i,r,a},update:ga,renderNativeAd:ra,getVideoPPIDs:kn,createInitNativeAd:Ia,getVideoAdsConfig:Mi}))(Ja,fa,Fo),Qa=1e4,Za=(e="widescreen")=>{const{pageSectionsSelectors:{right:t}={}}=f.get();if(!t)return[];return Array.from(document.querySelectorAll(t)).map(t=>Array.from(t.querySelectorAll(`div[id^="${e}"]`)))},ed=e=>e.some(e=>e.some(e=>!!e&&So(e,0)));let td;var nd=Object.freeze({__proto__:null,initWidescreenSwitching:()=>{const{widescreenSwitching:e}=f.get(),{enabled:t,options:{rotationInterval:n=Qa,widescreenIdPrefix:o}={}}=null!=e?e:{};if(!t)return;let i=Za(o),r=0,a=Date.now(),d=ed(i);if(!i.length)return;td&&window.removeEventListener("scroll",td);const s=(e,t,n)=>{e.forEach(e=>{e&&e.style.setProperty(t,n)})},l=e=>1===e?0:1,c=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="")})};c(i);const u=((e,t)=>{let n=null;return(...o)=>{null===n&&(e(...o),n=setTimeout(()=>{n=null},t))}})(()=>{const e=Za(o);((e,t)=>{const n=e.flat(),o=t.flat();return n.length===o.length&&n.every((e,t)=>e===o[t])})(e,i)||(i=e,r=0,a=Date.now(),c(i)),d||(d=ed(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);td=u,window.addEventListener("scroll",u)}});const od="#fff",id="#0098da",rd=e=>"dark"===e,ad=(e,t,n,o)=>{if(!n)return;const i={[ct]:()=>{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:"")})},[lt]:()=>{const{themeColors:i,logotype:r,buttonLabel:a,showArrowIcon:d}=St(n,t),s=((e,t)=>{var n,o,i,r;if(!e)return;const a=rd(t)?e.darkMode:void 0;return{backgroundColor:null!==(o=null!==(n=null==a?void 0:a.backgroundColor)&&void 0!==n?n:e.backgroundColor)&&void 0!==o?o:od,color:null!==(r=null!==(i=null==a?void 0:a.color)&&void 0!==i?i:e.color)&&void 0!==r?r:id}})(i,o),l=((e,t)=>{var n,o;if(!e)return;const i=rd(t)?e.darkMode:void 0;return{url:null!==(n=null==i?void 0:i.url)&&void 0!==n?n:e.url,alt:null!==(o=null==i?void 0:i.alt)&&void 0!==o?o:e.alt}})(r,o);["#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!=a?a:""),".advertory-splash-close"===t&&!d){const e=n.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===t&&s&&(n.style.color=s.color),"#advertory-splash-logotype"===t&&l&&(n.setAttribute("src",l.url),n.setAttribute("alt",l.alt)),".advertory-splash-navbar-wrapper"===t&&s&&(n.style.setProperty("background-color",s.backgroundColor,"important"),n.style.color=s.color)}})},[ut]:()=>{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:""))})},[pt]:()=>{}};i[t]()},dd=(e,t=!0)=>{(e===ct||e===ut)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},sd=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},ld=new WeakMap,cd=(e,t,n)=>{var o;window.addEventListener(t,n),ld.set(e,[...null!==(o=ld.get(e))&&void 0!==o?o:[],()=>window.removeEventListener(t,n)])},ud=e=>{document.body.style.overflow=e?"initial":"hidden"},pd=e=>{(e=>{var t;null===(t=ld.get(e))||void 0===t||t.forEach(e=>e()),ld.delete(e)})(e),sd(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),ud(!0),e.style.display="none"},vd=e=>{const t=()=>pd(e);return cd(e,"advertory:closeTakeover",t),sd(),t},gd=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&((e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&pd(e)};sd(),cd(e,"keydown",t)})(e),vd(e),sd(),t.addEventListener("click",()=>{pd(e)}),ud(!1))},hd=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),vd(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},md=e=>{(e=>{cd(e,"advertory:closeTakeover",()=>pd(e))})(e)},fd=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=f.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=Hn.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},yd=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=Hn.no.adText,n.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},bd=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=Hn.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},wd=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=Hn.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},xd=()=>{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)},kd=(e,t)=>{let n=e;return e.includes("529299503")&&(n=(e=>{const t=document.createElement("script");return t.textContent=`(${At})()`,e+t.outerHTML})(e)),n=$n(n),n};var Cd=Object.freeze({__proto__:null,createTakeoverAd:e=>H(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:n}=f.get(),{targetId:o}=e,i=document.querySelector(`#${o}`),r=document.querySelector(".advertory-takeover-wrapper");if(!i||!r||!t)return;const a=Ct(e),d=r.offsetHeight,s=window.scrollY>d;r.style.display="block",!s&&dd(a,!1),((e,t)=>{({[ct]:bd,[lt]:fd,[ut]:yd,[pt]:wd})[t](e)})(r,a),xd(),((e,t)=>{({[ct]:hd,[ut]:hd,[lt]:gd,[pt]:md})[t](e)})(r,a),ad(r,a,t,null==n?void 0:n.theme),yield It(),!s&&dd(a,!0),Et(e,a)}),modifyTakeoverAdContent:e=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=On(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=On(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,kd(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"]})}});class Id extends Ji{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.blinkParams=e,this.targetId=t}getTargetId(){return this.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.blinkParams;if(e)return Xi(e,this.targetId,t)}buildAdObject(){const e=Id.extractAdFormat(this.targetId);return{objectId:this.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"blink",adFormat:e}}}const Td=(e,t)=>{const{siteSpecificConfig:{publisherClassName:n}={},pageContext:{pageType:o},pulse:i}=f.get(),r=document.querySelector(`#${e}`);if(!r)return;if(r.classList.add("disable-cogwheel"),(null==i?void 0:i.instance)&&i.adTrackingEnabled){const t=new Id(f.get(),e);t.trackLoad(),t.trackImpression(),r.addEventListener("click",()=>t.trackEngagement())}Hi(n,r,Vi,null!=t?t:o);jt({preferredTestIdData:{targetId:e,testId:"finn"}})},Sd=e=>{const{pageContext:{publisher:t=""}}=f.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 Ed=Object.freeze({__proto__:null,displaySpecialFormatsForFinnFallback:e=>{const{fullscreenScroll:t}=f.get(),{initNativeAd:n}=f.getHandlers();Re(e)&&Jn(e,t),De(e)&&(null==n||n(e,f.get()))},finnBlinkLoaded:Td,xandrAdLoaded:Sd});const Ad=(e,t)=>{t.left&&(e.style.left=t.left),t.marginLeft&&(e.style.marginLeft=t.marginLeft)},Od=(e,t,n)=>{var o,i;const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:d}={},fullWidth:s,pageContext:{deviceType:l}}=f.get();if(!r)return null;const c=r.parentElement,u=_t(l)||n;if(r.style.width=u?"100vw":"100%",r.style.position="relative",c&&(c.style.width=u?"100vw":"100%",c.style.position="relative"),a&&d){const e=`advertory-${a}-${d}`;r.classList.add(`${e}__${t}`),null==c||c.classList.add(`${e}-wrapper__${t}`)}const p=null===(i=null===(o=null==s?void 0:s.options)||void 0===o?void 0:o.styles)||void 0===i?void 0:i[l],v=(null==s?void 0:s.enabled)&&p;return!v&&c&&u&&(c.style.left="50%",c.style.marginLeft="-50vw"),v&&p.adContainer&&Ad(r,p.adContainer),v&&p.adContainerWrapper&&c&&Ad(c,p.adContainerWrapper),r},Pd=(e,t,n,o,i)=>{var r;const a=Od(e,o,i);if(!a)return void c("[Ad full width] adContainer not found");const d=a.querySelector("iframe"),s=null==d?void 0:d.parentElement;if(!d||!s)return void c("[Ad full width] iframe or iframeWrapper not found");const l=parseFloat(window.getComputedStyle(a,"::before").height)||0,u="undefined"!=typeof CSS&&CSS.supports("transform","scale(calc(100vw / 1080px))")?`calc(100vw / ${t}px)`:String((null===(r=null===document||void 0===document?void 0:document.documentElement)||void 0===r?void 0:r.clientWidth)/t);c(`[Ad full width] ratioWidth ${t}, ratioHeight ${n}, adObjWidth: ${e.width}, scaleFactor ${u}`),s.style.transform=`scale(${u})`,s.style.transformOrigin="left top",a.style.height=`calc(100vw / ${t} * ${n} + ${l}px)`};var jd=Object.freeze({__proto__:null,applyFullsquareFormat:e=>{Pd(e,1080,1080,"fullsquare-ad",!0)},applyFullwidthFormat:e=>{const t=Od(e,"fullwidth-ad",!1);if(!t)return;const n=t.querySelector("iframe");if(!n)return;const{deviceType:o}=f.get().pageContext;n.style.width=_t(o)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=_t(o)?"100vw":"100%")},applyNinesixteenFormat:e=>{Pd(e,1080,1920,"ninesixteen-ad",!0)}});Un('.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 $d={Blink:"Blink"},Ld=new Map,_d=e=>{var t;if(!Ld.has(e)){const t=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[t,n]of Object.entries($d)){const o=e[t];null!=o&&(window[n]=o)}})(e)).catch(t=>{throw Ld.delete(e),t});Ld.set(e,t)}return null!==(t=Ld.get(e))&&void 0!==t?t:Promise.resolve()},Nd="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",qd=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},Fd=(e,t)=>{const{finnBlink:{enabled:n}={}}=f.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:`#${qd(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}},Md=(e,t,n)=>H(void 0,void 0,void 0,function*(){const{placements:o,pageContext:{deviceType:i},appearanceConfig:r}=f.get();c(`rendering finn blink ad for ${e}`);const a=U(e),d=o[i].find(e=>e.targetId===a),s=Fd(e,null==d?void 0:d.finnBlink);if(!(null==s?void 0:s.enabled))return c(`Finn blink is not enabled on placement: ${e}`),n&&n(e),void Sd(e);if((e=>{var t;const n=qd(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 c(`Finn blink already loaded ${e}`);const{publisher:l,countryCode:u,finnBlink:p}=t,{sdkPayload:{channel:v}={}}=null!=p?p:{},g=null!=v?v:`${l}.${u}`,h="dark"===(null==r?void 0:r.theme)?"dark":"light";try{const e=yield H(void 0,void 0,void 0,function*(){const{ppid1:e}=mn.getPPIDs();return e});yield(m=Object.assign(Object.assign({},s),{channel:g,userId:e,theme:h}),H(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=m,n=W(m,["userId","theme"]),o=window[$d.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))})),Td(s.selector.replace("#",""),s.advertoryTheme)}catch(t){c(`Finn blink error ${t}`),n&&n(e),!n&&D(e),Sd(e)}var m}),Bd=()=>H(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get();return!!(yield at(e,t,n,"finn-blink"))||(c("Skip loading finn blink ad due to missing TCF consent."),!1)}),Rd=(e,t)=>{var n;(c(`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)):c(`Cannot perform afterend on: ${e.id}`)},Dd=e=>document.querySelector(`#${e}`);var zd=Object.freeze({__proto__:null,handleFinnBlinkOnlyPlacements:e=>H(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:n}}=f.get(),o=null==t?void 0:t.defaultThreshold[n];for(const t of e){const{requestThreshold:e,targetId:n}=t,i=Dd(n);i&&(yield Go(i,null!=e?e:o))}}),loadFinnBlinkAd:(e,t,n,o)=>H(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=f.get();if(c(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield Bd())||i)return n&&n(e),Sd(e),void(!n&&D(e));try{yield _d(Nd)}catch(e){console.error(e)}yield Md(e,t,n),o&&o()}),replaceAdsWithFinnBlink:(e,t)=>H(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];(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})()&&r&&a?(yield Bd())&&(yield _d(Nd),r.forEach(([e,t])=>{const n=document.querySelector(`[id^="${e}"]`);if(!n)return;const o=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=f.get(),n=document.createElement("div"),o=document.createElement("div");return o.id=e,n.appendChild(o),Hi(t,o,Vi),c(`Creating blink container for: ${e}`),n})(t);(e=>{c(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(n),Rd(n,o),n.dataset.finnBlinkId=t,Xo().withFullAdsChain(e)})):c(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)})});const Ud=Un("[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 Wd=Object.freeze({__proto__:null,default:Ud});const Hd=Un("[data-carousel-viewport]{position:relative;overflow:hidden;padding-bottom:4px;touch-action:pan-y;user-select:none}[data-carousel-track]{display:flex;gap:10px;will-change:transform}[data-carousel-track] [data-carousel-slide]:not(.is-active){opacity:.9;filter:saturate(0.72)}[data-carousel-track] .carousel-slide{flex:0 0 82%;margin:0;overflow:hidden;border:1px solid hsla(0,0%,100%,.68);border-radius:12px;box-shadow:#adadad 1px 1px 1px}[data-carousel-track] .carousel-slide .slide-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;pointer-events:none}");var Vd=Object.freeze({__proto__:null,default:Hd});const Kd=e=>e===b.NO?"schibsted":"schibstedse";var Xd=Object.freeze({__proto__:null,getCampaign:Kd,loadNorstat:()=>H(void 0,void 0,void 0,function*(){const{norstat:{enabled:e}={},pageContext:{countryCode:t,isMobileApp:n},tcf:o}=f.get(),i=yield at(o,n,t,"norstat");if(!e||n||!i)return;const r=(e=>{const{ppid1:t,ppid2:n}=hn.getPPIDs(),{ppid1:o,ppid2:i}=mn.getPPIDs(),r=(new gn).add(n,dn[e]).add(t,sn[e]).add(i,ln[e]).add(o,cn[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`})(t);((e,t,...n)=>{H(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/${Kd(t)}/map/${r}`,"norstat")})});const Gd=".advertory-right-column-track",Jd="--advertory-right-column-track-height",Yd=e=>e.getBoundingClientRect().top+window.scrollY,Qd=(e,t)=>`${e}-${t}`,Zd=(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=Yd(e);r.forEach(({point:e,originalIndex:t})=>{((e,t,n)=>{const o=Yd(e),i=Qd(Jd,t),r=o-n,a=Qd("--advertory-right-column-split-point-height",t),d=Zr(e);ea({[i]:Qr(r),[a]:Qr(d)})})(e,t+1,a),(e=>{const t=null==e?void 0:e.id;if(!t)return;const n=Qd("--advertory-right-column-ad-height",t),o=Zr(e);ea({[n]:Qr(o)})})(i[t])});((e,t)=>{const n=Yd(e)-t;ea({[Jd]:Qr(n)})})(r[Math.min(i.length,r.length-1)].point,a)};let es=!1;var ts=Object.freeze({__proto__:null,initRightColumnSplit:e=>{if(!(null==e?void 0:e.enabled)||es)return;const{splitPointIDs:t,adSelector:n,trackSelector:o=Gd}=e,i=document.querySelector(o);if(!i)return;es=!0;const r=()=>{Zd(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 ns{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 os{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const is="[data-k5a-teaser-analytics]";class rs extends Ji{constructor(e,t,n,o){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=o}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(is);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(is);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){Gi(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const o=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(o):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(o):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,o)}))}trackEngagement(e){var t,n;const o=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(o):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(o):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,o)}}class as extends rs{getEventBaseData(){var e,t,n,o;const{clientName:i,creativeId:r,itemId:a,placement:d}=this.parseKilkayaData(),{primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),p=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:d,elementType:"Article",custom:{customer:i,creativeId:null!=r?r:a},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},placement:{primaryPosition:s,secondaryPosition:l,source:c},tags:null===(o=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===o?void 0:o.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class ds extends rs{getEventBaseData(){var e,t;const{title:n="",clientName:o="",creativeId:i="",link:r="",itemId:a=""}=this.parseKilkayaData(),{columnName:d,primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u={publicUrl:r,urlPath:r?new URL(r).pathname:""},{publicUrl:p,urlPath:v}=r&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,r))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:d,primaryPosition:s,secondaryPosition:l,source:c},tags:[o,n,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:o,"spt:creativeId":i,pageTitle:n,publicUrl:p,urlPath:v},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}class ss{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 H(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 c("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return H(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 ls=/^glci_/,cs="gender_",us="geo_",ps="male",vs="female",gs=()=>H(void 0,void 0,void 0,function*(){try{const t=yield(e=500,H(void 0,void 0,void 0,function*(){return Promise.race([H(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),n=new ss(t),o=yield n.getIdentityUser(),{gender:i}=null!=o?o:{};return i===ps||i===vs?`${cs}${i}`:void 0}catch(e){return}var e}),hs=()=>H(void 0,void 0,void 0,function*(){const e=[],t=yield gs(),n=(()=>{const e=tn().map(e=>`${us}${e.replace(ls,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class ms{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Ka.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 fs{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class ys{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class bs{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class ws{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===Ka.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class xs{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class ks{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:o}}){if(!(null==e?void 0:e.instance))return;const i={[sr.VG]:new ns,[sr.E24]:new ms,"no-aftenposten":new fs,[sr.BT]:new ys,"no-bergenstidende":new ys,[sr.SA]:new bs,"no-stavangeraftenblad":new bs,[sr.SVD]:new ws,[sr.AFTONBLADET]:new xs}[n]||new os;((e,t,n,o)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const r=o===b.SE?new ds(e,i,t):new as(e,i,t,n);r.trackImpression(),i.addEventListener("click",()=>r.trackEngagement())})})(e.instance,i,t,o)}injectKilkayaMeta(e){return H(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield hs();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(c(`Kilkaya event for slot: ${n}`),!n)return void c("Kilkaya slot empty, Xandr backfill won't be loaded");const o=n.parentElement;o?(c(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(o)):c("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="flex";const o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";z(o)}loadKilkayaScript(e){return H(this,void 0,void 0,function*(){yield Cn(e)})}run(e){return H(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 at(o,i,r,"kilkaya");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 Cs=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%"},"data-slot-tag":t},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=>H(void 0,void 0,void 0,function*(){const t=new ks;yield t.run(e)})});Un('.advertory-shared-ad-native-seamless{position:relative;overflow:hidden;border-radius:10px}.advertory-shared-ad-native-seamless .ad-info{position:absolute;top:0;right:0;z-index:1}.advertory-shared-ad-native-seamless .ad-info div[role=button]{top:0;right:0;left:auto;transform:none;background-color:hsla(0,0%,100%,.45);border-bottom-left-radius:13px}.advertory-shared-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-shared-ad-native-seamless .ad-link .ad-content{position:relative;min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:var(--color-background-secondary, #ffffff);color:var(--color-text-primary, #333)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header{padding:0 0 8px 10px;margin-right:18px;display:flex;justify-content:space-between;gap:50px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-logo{max-width:100%;max-height:40px;min-width:0;object-fit:contain;object-position:left center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons{flex-shrink:0;margin-left:auto;margin-right:5px;font-size:10px;font-weight:400;color:var(--color-text-primary, #333);white-space:nowrap;line-height:.7;text-transform:lowercase}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;max-width:100%;object-fit:cover}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel{display:flex;justify-content:center;align-items:center;width:100%}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel .carousel-window{width:calc(100% + 16px);min-width:calc(100% + 16px);mask-image:linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);-webkit-mask-image:linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, #000 5%, #000 95%, rgba(0, 0, 0, 0.5) 100%)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;min-width:0;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;overflow:hidden;min-width:0;font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-width:0;margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left;color:var(--color-text-secondary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase{display:flex;flex-direction:column;flex-shrink:0;align-items:center;gap:6px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price{font-size:13px;font-weight:500;white-space:nowrap}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price:empty{display:none}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:14px;line-height:1;color:var(--color-text-on-accent, #111111);white-space:nowrap;background-color:var(--color-accent, #d9d9d9);border-radius:99px;font-weight:500}');var Is=Object.freeze({__proto__:null});Un('.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 Ts=Object.freeze({__proto__:null});module.exports=Ya;
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=o(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}());const r={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,t)=>i(e,t,r),d=(e,t)=>Object.assign(Object.assign({},e),t),s=(e,t)=>{var n;return a(null!==(n=e)&&void 0!==n?n:{},t)},l=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},c=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},u=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||c("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||c("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||c("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||c("pageContext.deviceType is required."),n||c("pageOptions is required."),o||c("placements is required."),(null==i?void 0:i.defaultThreshold)||c("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])&&c(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},p={placements:(e,t)=>t,takeover:s,refreshConfig:d,editory:s,appearanceConfig:s,pageContext:d,pageOptions:d,pageSectionsSelectors:d,tcf:d},v=(e,t)=>{const n=e;for(const e of Object.keys(p)){const o=t[e];void 0!==o&&(n[e]=p[e](n[e],o))}},g=6;class h{set(e){u(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");v(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=a(h.DEFAULT_SITE_HANDLERS,e)}}h.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const m=new h,f=m.modifyConfigProperties.bind(m);let y;const b=()=>y,w="advertory-wallpaper-background",x="advertory-with-horseshoe",k=()=>{const e=document.querySelector(`.${w}`);e&&e.remove()},C=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${w}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},I=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,T=e=>I.test(e),S=e=>e.startsWith("wallpaper:color:"),E=e=>{const t=document.querySelector(`.${w}`);t&&(t.style.backgroundImage=`url(${e})`)},A=e=>{const t=document.querySelector(`.${w}`);t&&(t.style.backgroundColor=e)};var O=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(x),n.classList.add(x))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{k();const e=document.createElement("div");e.classList.add(w),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&&(C(n),window.addEventListener("scroll",()=>C(n)))})(n),e()},isShortWallpaperColorMessage:S,isShortWallpaperUrlMessage:T,removeWallpaperBackground:k,setWallpaperBackgroundColor:A,setWallpaperBackgroundImage:E});const P=e=>new URLSearchParams(window.location.search).get(e),j="takeover",$="native_override_desc2",L=e=>window.location.href.includes(e),_=()=>null!==P("disable_prebid"),q=e=>{if("0"===P("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")&&k())},N=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"))},F=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};function M(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 B(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;class R{initialize(){this.DATA=Object.assign({},R.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)}}R.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const D=new R,z=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},U=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`)},W="opaque",H=e=>B(void 0,void 0,void 0,function*(){if(e.type!==W){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),V={get:(e,...t)=>B(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,o=M(t,["timeout"]);if(n)return((e,t,n)=>B(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 H(n)}finally{clearTimeout(i)}}))(e,o,n);const i=yield fetch(e,o);return H(i)}),post:(e,t,n)=>B(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()})},K="https://inv-platform-cdn.inventory.schibsted.io",X=5e3,G="editory/native-creator/native-templates",J=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!o)return null;return`${n||K}/editory/editable-configurations/${t.publisherClassName}/${o.toLowerCase()}.json`};const Y=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=e;return Boolean(t&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return B(this,void 0,void 0,function*(){const t=J(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>B(void 0,void 0,void 0,function*(){const t=J(e);if(!t)return null;try{return yield V.get(t,{timeout:X})}catch(e){throw l("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,i;const r=((e,t)=>{const{sections:n}=e,o=M(e,["sections"]),i=t?null==n?void 0:n[t]:void 0;return i?a(o,i):o})(t,null!==(i=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==i?i:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>a(t,e))(e,r)}getConfig(e){return B(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return l("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return B(this,void 0,void 0,function*(){var t,n,o,i;if(!this.localSiteConfig)return;if(v(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(i=null===(o=this.localSiteConfig.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void l("Error fetching updated S3 config, keeping current config",{error:e})}})}},Q=Y.getConfig.bind(Y),Z=Y.resolveUpdatedConfig.bind(Y),ee=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:o}=(e=>{const t=D.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},te=()=>{var e,t;k();const n=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),o=[];return n.forEach(e=>{q(e.id),ee(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=F(e.id),o.push(e.id)}),null===(t=null===(e=b())||void 0===e?void 0:e.clear)||void 0===t||t.call(e,o),o},ne=()=>{D.setData("wallpaper",{isAvailable:!1}),D.setData("horseshoe",{isAvailable:!1})},oe=e=>B(void 0,void 0,void 0,function*(){const t=yield Z(e);var n;t?(m.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):f(null!=e?e:{})}),ie="0123456789abcdefghijklmnopqrstuvwxyz",re=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=ie[Math.floor(36*Math.random())]}return t},ae=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),de=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})}),se="mobile",le="tablet",ce="desktop",ue="web_desktop",pe="web_phone",ve="wde",ge="wph",he="noGroupedPlacements",me=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},fe=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},ye=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}}=m.get(),r=((e,t)=>{var n;const o=null!==(n=e[t])&&void 0!==n?n:[];return t===le&&0===o.length?e[ce]:o})(n,i),a=r.filter(fe),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=me(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{var t,n,r;const s=new RegExp(`^${e}(_(\\d+))?$`),c=a.filter(({targetId:e})=>e.match(s)),u=(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"])`,p=d.querySelectorAll(u),v=Array.from(p).filter(({id:e})=>e.match(s)).map((e,t)=>{var n;const o=be(e,t,c);if(o.disabled)return l(`Placement ${o.targetId} is disabled - collapsing`),q(o.targetId),null;const i=o.finnBlink&&!o.finnBlink.renderOnlyWithAdBlock,r=i&&(null===(n=o.finnBlink)||void 0===n?void 0:n.loadOnlyFinnBlink),a=`${e.id}-${re(6)}`;return e.id=a,e.setAttribute("data-advertory-ad-rendered","true"),i&&e.setAttribute("data-is-finn-blink-placement","true"),r&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&D.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},o),{targetId:a})}),g=v.filter(e=>null!=e);return null!==(r=null===(n=null===(t=b())||void 0===t?void 0:t.enrichPlacementsAfterDiscovery)||void 0===n?void 0:n.call(t,g))&&void 0!==r?r:g});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)},be=(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},we=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=m.get(),o=(null==t?void 0:t[n])||{},i=Object.values(o).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=F(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(F(e.targetId)));return n})(e,o),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(F(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),r),{[he]:s})},xe="ABSOLUTE_FULLSCREEN",ke="ANY_FULLSCREEN",Ce="NINESIXTEEN",Ie="FULLWIDTH",Te="FULLSQUARE",Se="TAKEOVER",Ee="VELVET_TAKEOVER",Ae="WALLPAPER",Oe="COLLAPSE",Pe={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}]},je={wallpaper:1600,"l-format":1600},$e=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Ve(e,ke)},Le=e=>{const{native:t}=e;return!!t},_e=e=>Ve(e,Ie),qe=e=>{const{targetId:t}=e;return t.includes("takeover")||Ve(e,Se)},Ne=e=>Ve(e,Se),Fe=e=>Ve(e,Ae),Me=e=>Ve(e,Oe),Be=e=>e.targetId.includes("sponsorstripe"),Re=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},De=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),ze=e=>e.targetId.startsWith("midboard"),Ue=e=>e.targetId.includes("widescreen"),We=e=>e.width>=1260&&e.width<=1280,He=e=>e.width>=1600&&e.width<=1620,Ve=(e,t)=>{const n=Pe[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})},Ke=e=>{const{source:t}=e;return"csm"===t},Xe=e=>{const{siteSpecificConfig:t}=m.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},Ge=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 l("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const i=e=>{o||(l("Resolving advertising permission value obtained"),o=!0,t(e))},r=setTimeout(()=>{l("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{l("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);l("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),Je={NO:"no",SE:"se"},Ye="cmp:loaded";let Qe="undefined"!=typeof window?window._tcf_:void 0,Ze=!1;const et=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,r=P("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(l("TCF bypass param detected, returning consent: true"),!0):(l("TCF is not enabled, returning consent: true"),!0))(o,r))return!0;if(Ze)return null;if(!Qe)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=Qe.getConsentedToAllSync();return l(`TCF consented to all is: ${t}`),Qe.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(l("Getting TCF consent manager..."),window._tcf_)return l("TCF consent manager is already available"),Qe=window._tcf_,void e(Qe);l("TCF consent manager is not available");const n=()=>{l("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(Qe=window._tcf_,e(Qe)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(Ye,n),Ze=!0,t(new Error("Timeout waiting for CMP to load"))},i);l("Listening for CMP loaded event..."),document.addEventListener(Ye,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>B(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`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===Je.SE,o=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===Je.NO;if(t||o)return l("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield Ge(e);if(!(null==e?void 0:e.enabled))return!0;const r=a();return null!==r?r:yield new Promise((e,t)=>{try{if(!Qe)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(()=>{l("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);Qe.onTcfReady(()=>{l("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),Qe.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},tt=(e,t,n,...o)=>B(void 0,[e,t,n,...o],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return l(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return l(`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}=et(e,0,n);return(yield i())?(l(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(l(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),nt=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},ot=e=>B(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e,{getConsentAsync:i}=et(t,0,o);if(!(yield i()))return;const r=nt("_pulse2data");return r?r.split(",")[9]:void 0}),it="splash",rt="welcomePage",at="topscroller",dt="velvet",st=(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()},lt="takeover-displayed",ct="takeover-visit-count",ut=14400,pt=()=>{const e=nt(ct);return e?parseInt(e):0},vt=()=>{const e=pt(),{takeover:{options:{cookieCapTime:t=ut}={}}={}}=m.get(),n=document.location.hostname;window.document.cookie=`${ct}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},gt=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=m.get();return"0"!==P(j)&&("1"===P(j)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=m.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||lt;return"true"===nt(n)})())&&(!t||ht()))},ht=()=>{const e=pt();return 0===e?(vt(),!1):1===e},mt=(e,t)=>[[1,1],[1920,1080]].some(([n,o])=>n===e&&o===t),ft=()=>{const{takeover:e}=m.get();return Boolean(null==e?void 0:e.topscroller)},yt=e=>{const{width:t,height:n}=e;return mt(t,n)?it:Ve(e,Ee)?dt:ft()?at:rt},bt=()=>B(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=lt,cookieCapTime:n=ut}={}}={},pageContext:{isMobileApp:o,countryCode:i},tcf:r}=m.get(),a=yield tt(r,o,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),wt=e=>{var t,n;const o=!!(null===(n=null===(t=m.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return qe(e)&&o},xt=(e,t)=>{var n;if(t===at){const{topscroller:t}=e;return null!=t?t:{}}if(t===it){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},kt=(e,t)=>{t!==it?(e=>{var t,n;const o=null===(t=m.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=m.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=Ne(e)?"60svh":`calc(100svh - ${l}px)`,u=Ne(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=m.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=st([],()=>{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 It=Object.freeze({__proto__:null,addTakeoverCookie:bt,adjustTakeoverHeight:kt,canDisplayTakeover:gt,getProperWelcomePageConfig:xt,getTakeoverVariant:yt,handleTakeoverCookieOnAdNotShown:e=>B(void 0,void 0,void 0,function*(){wt(e)&&(yield bt())}),incrementArticleVisitCount:vt,isSplashVariant:mt,isTopscroller:ft,scaleAd:Ct,shouldAddTakeoverCookieForNotShownAd:wt});const Tt={nativeAd:e=>Le(e)&&!Be(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:_e,fullscreenScroll:$e,topscroller:e=>qe(e)&&ft(),splash:e=>qe(e)&&mt(e.width,e.height),welcomePage:qe,wallpaper:Fe,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:We,hFormat:He,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!He(e)&&!We(e),topboard:e=>e.targetId.startsWith("topboard")&&!qe(e),widescreen:Ue,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Be,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!De(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!ze(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:De,midboard:ze},St=({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(Tt))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)},Et=e=>{var t;return(null===(t=Object.entries(Tt).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},At=()=>{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"},Ot=e=>e===se,Pt=(e,t)=>{const n=e.width,o=(null!=t?t:window.screen.width)/n;return o<1?o:1},jt=(e,t=window.screen.width,n,o)=>{const i=Pt(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")},$t=(e,t)=>{if(e&&t)return t/e},Lt=new Map;Lt.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),Lt.set("panorama",{scale:.79,transformOrigin:"center center"}),Lt.set("outstream",{scale:.79,transformOrigin:"center center"}),Lt.set("integration",{scale:.79,transformOrigin:"center center"}),Lt.set("toppanorama",{scale:.8,transformOrigin:"left center"});var _t=Object.freeze({__proto__:null,calculateScaleFactor:Pt,getAspectRatio:$t,scaleAd:jt,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=Et(e),i=Lt.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}}=m.get();if(!(null==d?void 0:d.enabled))return;if(Ve(e,ke))return;const l=null!==(t=d.adsToBeScaled[s])&&void 0!==t?t:[],c=me(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),v=null!==(i=null==p?void 0:p.offsetWidth)&&void 0!==i?i:window.screen.width,g=null!==(a=null===(r=null==p?void 0:p.parentElement)||void 0===r?void 0:r.offsetWidth)&&void 0!==a?a:window.screen.width;jt(e,(v<g?v:g)-u)}});const qt=864e5,Nt=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return l("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=qt)=>{const i={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(i))},getByTimestamp:(t,n=qt)=>{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 l("Error with parsing localStorage data"),null}}}})(),Ft="glimrTags",Mt=["glwe_","glwet_"],Bt={geofenceTags:[],geoTags:[],weatherTags:[]},Rt=(...e)=>B(void 0,[...e],void 0,function*(e=m.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield tt(t,n,o,"glimr")}const{getConsentAsync:i}=et(t,0,o);return yield i()}),Dt=()=>B(void 0,void 0,void 0,function*(){const{glimr:e}=m.get();if(!(yield Rt())||!(null==e?void 0:e.enabled))return void l("No consent for glimr data fetching.");const t=yield(n=500,B(void 0,void 0,void 0,function*(){return yield Promise.race([B(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)=>{Nt.setWithTimestamp(Ft,{tags:e,tagMappings:t}),n(!0)})})}catch(e){l(`Error during getting glimr data: ${e}`)}else l("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),zt={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"},Ut=e=>Mt.some(t=>e.startsWith(t)),Wt=e=>e.startsWith("glgc_"),Ht=e=>e.startsWith("glci_"),Vt=e=>!Ut(e)&&!Wt(e),Kt=e=>e===Je.NO?"no-sno":"se-generic",Xt=(e,t)=>B(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:o,pageContext:{countryCode:i}={}}=e,r=yield Rt(e);if(!(null==o?void 0:o.enabled)||!r)return l("No consent for getting glimr tags."),{};const a=Kt(i),d=Gt(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),Gt=(e,t)=>{const n=Jt();if(!n)return Bt;const o=((e=[])=>e.filter(Ut))(n),i=((e=[])=>e.filter(Wt))(n),r=((e=[],t,n)=>{var o;const i=e.filter(Vt);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=zt[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:r,geofenceTags:i,weatherTags:o}},Jt=()=>{const e=Nt.getByTimestamp(Ft);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},Yt=()=>{var e;return((e=[])=>e.filter(Ht))(null!==(e=Jt())&&void 0!==e?e:[])},Qt="advertory:ppids-cache",Zt={[Je.SE]:`SCH${Je.SE.toUpperCase()}-EnvHash`,[Je.NO]:`SCH${Je.NO.toUpperCase()}-EnvHash`},en={[Je.SE]:`SCH${Je.SE.toUpperCase()}-UserHash`,[Je.NO]:`SCH${Je.NO.toUpperCase()}-UserHash`},tn={[Je.SE]:`sch${Je.SE}-envhash-v3`,[Je.NO]:`sch${Je.NO}-envhash-v3`},nn={[Je.SE]:`sch${Je.SE}-userhash-v3`,[Je.NO]:`sch${Je.NO}-userhash-v3`},on={[Je.SE]:`'sch${Je.SE}-iosid-v3'`,[Je.NO]:`'sch${Je.NO}-iosid-v3'`},rn={[Je.SE]:`sch${Je.SE}-androidid-v3`,[Je.NO]:`sch${Je.NO}-androidid-v3`},an={[Je.SE]:"sdrn:schibsted.com:user",[Je.NO]:"sdrn:spid.no:user"};class dn{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 sn=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return B(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||l("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:""}},ln=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return B(this,void 0,void 0,function*(){var n,o,i,r,a,d,s,l,c,u,p;const v=Nt.get(Qt),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||l("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}}:{});Nt.set(Qt,i)}hashPPIDs(e,t){return B(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield V.post(t,n,e)}catch(e){return l("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return B(this,arguments,void 0,function*({clientId:e,instance:t},n){const o=yield((e,t)=>B(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${an[t]}:${n}`:null}))(t,n),i=yield(r=t,B(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}}},cn=e=>B(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:o,isMobileApp:i}}=e;if(!(yield tt(n,i,o,"setPPIDs")))return;if(!t)return;(yield Promise.allSettled([sn.processPPIDs(t,null==n?void 0:n.timeout),ln.processPPIDs(t,o)])).forEach((e,t)=>{if("rejected"===e.status){l(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),un=e=>{const{ppid1:t,ppid2:n}=sn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=ln.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new dn).add(n,Zt[e]).add(t,en[e]).add(i,tn[e]).add(o,nn[e]).add(r,on[e]).add(a,rn[e]).buildEids()}]}},pn=()=>{const{ppid1:e,ppid2:t}=sn.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},vn=e=>{const{ppid1:t,ppid2:n}=sn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=ln.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new dn).add(n,Zt[e]).add(t,en[e]).add(i,tn[e]).add(o,nn[e]).add(r,on[e]).add(a,rn[e]).buildRyEids()}}]}}},gn=e=>{const{ppid1:t,ppid2:n}=sn.getPPIDs(),{ppid1:o,ppid2:i}=ln.getPPIDs();return(new dn).add(n,Zt[e]).add(t,en[e]).add(i,tn[e]).add(o,nn[e]).buildRyEids()},hn=e=>B(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=sn.getPPIDs(),{ppid1:o,ppid2:i}=ln.getPPIDs(),r=(new dn).add(n,Zt[e]).add(t,en[e]).add(i,tn[e]).add(o,nn[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),mn=(e,...t)=>B(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)}))}),fn="collapseAd",yn="hideAd",bn="resizeAd",wn="wallpaperImageUrl",xn="wallpaperColor",kn="velvet",Cn=[bn,wn,xn,fn,yn,kn];let In;const Tn=e=>{var t,n,o;const i=b();if(!(null===(t=null==i?void 0:i.messageOrigins)||void 0===t?void 0:t.includes(e.origin.trim())))return;const{data:r}=e;if(!r)return;const a=(e=>{if("object"==typeof e)return e;if(T(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:wn,wallpaperImageUrl:t}}if(S(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:xn,wallpaperColor:t}}if(e.startsWith(fn)||e.startsWith(yn)){const t=e.split(":")[1];return{name:fn,targetId:t}}if(e.includes("name")&&Cn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(r);if(!a)return;if(!a.name||!Cn.some(e=>a.name===e))return;const{name:d,targetId:s,wallpaperImageUrl:l,wallpaperColor:c,cmd:u,size:p}=a;d===kn&&u&&(u.includes("noScroll")&&(In=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(u.includes("close")||u.includes("ended"))&&(null==In||In(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),d!==fn&&d!==yn||!s||q(s),d===bn&&s&&u&&(null===(n=i.resizeCreative)||void 0===n||n.call(i,s,u)),"resizeMediationAd"===d&&s&&p&&(null===(o=i.resizeCreative)||void 0===o||o.call(i,s,p,!0)),d===wn&&l&&E(l),d===xn&&c&&A(c)},Sn=(e,t,n)=>B(void 0,void 0,void 0,function*(){yield ae,yield de;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)}),En=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=m.get(),o={publisher:e,countryCode:t,finnBlink:n},i=e=>{var t,n;N(e),null===(n=null===(t=b())||void 0===t?void 0:t.render)||void 0===n||n.call(t,e)};return{withAdServerAd:i,withFinnBlinkAd:e=>B(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return bd});yield t(e,o,null)}),withFullAdsChain:e=>B(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void i(e);const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return bd});yield t(e,o,i,()=>B(void 0,void 0,void 0,function*(){if(!D.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return O});t(e)}))})}},An=(e,t)=>B(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield Sn(e,t,()=>((e,t)=>{var n,o;const i="true"===t.dataset.isFinnBlinkOnlyPlacement;return Re(e)&&i?(l(`loading finn blink ad for blink only placement for ${e}`),void En().withFinnBlinkAd(e)):Re(e)?(l(`loading finn blink ad with full ads chain for ${e}`),void En().withFullAdsChain(e)):void(null===(o=null===(n=b())||void 0===n?void 0:n.render)||void 0===o||o.call(n,e))})((e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),On=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Pn=new Map,jn=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],$n=".brandstudio-premium-content-widget",Ln=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),_n=({adWrapper:e,placementContainer:t})=>{const n=Ln({adWrapper:e,placementContainer:t});var o;null==e||e.style.setProperty("height",`${n}px`),ee(o=t),o.innerHTML=""},qn=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},Nn=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=m.get(),o=jn.includes(n)&&Boolean(t.closest($n));const i=o?t.closest($n):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 qn(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?qn(d):s.hasAttribute("style")&&qn(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},Fn=(e,t,n,o,i)=>{var r;const a=performance.now(),d=null!==(r=Pn.get(e))&&void 0!==r?r:0,s=((e,t)=>!!t&&e+t<(new Date).getTime())(n,o)&&t<0;a-d>=o&&s&&(Pn.set(e,a),((e,t)=>{var n,o;const i=null==t?void 0:t.parentElement;i&&t&&_n({adWrapper:i,placementContainer:t}),null===(o=null===(n=b())||void 0===n?void 0:n.refresh)||void 0===o||o.call(n,[e],{applyReloadKeyword:!0})})(e,i))},Mn=(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},Bn=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Rn=(e,t=0)=>{const n=e.getBoundingClientRect(),o=window.innerHeight;return n.bottom>-t&&n.top<o+t},Dn=(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;Nn({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&&((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(i.id,r.y,n,o,i)})})(e,Fn,t,n),On(300));o.observe(e)})(o,a,r))},zn=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=m.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),Vn(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},Un=(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;Rn(i,r)&&o&&(U(o.targetId),n.length&&i.classList.remove(...n),Vn([o],t))}},Wn=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:o}}=m.get();t&&(e.forEach(({targetId:e})=>{const t=Hn(e);t&&(t.dataset.bfCacheRefresh="true")}),o?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&Un(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const o=()=>{window.scrollY>0&&(window.removeEventListener("scroll",o),Un(e,!1,t))};n.persisted&&(Bn()?window.addEventListener("scroll",o,{passive:!0}):Un(e,!1,t))})})(e,n))},Hn=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},Vn=(e,t=!1)=>{const n=b();if(!(null==n?void 0:n.refresh))return;const{queryConfig:{batchSize:o=g}={}}=m.get();for(const i of Mn(e,o))n.refresh(i.map(({targetId:e})=>e),t?{keepPreviousSizes:i}:void 0)},Kn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=m.get(),n=Kt(t),o=e[`${n}-targetid`],i=o?F(o[0]):"";return Object.assign(Object.assign({},e),o&&{[`${n}-targetid`]:[i]})},Xn=e=>{const{pageContext:{countryCode:t}}=m.get(),n=Kt(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"]})},Gn=e=>{if("true"!==P("scrollToFirstInvCode"))return;const t=P("ast_override_inv_code");if(!t)return;const n=t.split(",")[0].split(":")[0],o=e.find(e=>e.invCode===n),i=document.querySelector(`[id^=${null==o?void 0:o.targetId}]`);i&&i.scrollIntoView({behavior:"smooth",block:"start"})},Jn=(e,t)=>B(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});function Yn(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}Yn(".advertory-brandmetrics-survey{width:100%}");const Qn="advertory-brandmetrics-survey",Zn=()=>B(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)}}),eo="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",to=()=>B(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}),no={pageContext:{publisher:"aftonbladet",countryCode:Je.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"}},oo={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},io=e=>(null==e?void 0:e.parent)?[...io(e.parent),e.shortPath||"unknown"]:[],ro=(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]=io(e);return oo[n]||"ovrigaavdelningar"})(e)}_{position}`,ao={aftonbladet:no},so={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:ro(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:io(e).join(":")}}},lo=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},co=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),uo="se-generic",po="aa-sch",vo="kv_",go="pause",ho="{deviceType}",mo="{position}",fo="afp_",yo=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),bo="1-1",wo="16-9",xo="3-4",ko="9-16",Co="responsive",Io={[bo]:1,[wo]:1.78,[ko]:.56,[Co]:1},To={[bo]:1,[wo]:1.78,[xo]:1.33,[ko]:.56},So=(e,t,n,o)=>{const{invCode:i="",videoOverlayInvCode:r}=null!=e?e:{},a=ce===n?ve:ge,d=i.replace(ho,a);return(e,n)=>{if(e===go)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(mo,go).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&yo.has(e)){return(o&&r?r:t.frontpageInvCodeTemplate).replace(ho,a).replace(mo,e)}return d.replace(mo,e)}},Eo=(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])},Ao=()=>{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},Oo=()=>{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},Po=()=>{const e=null!==(t=Oo()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Oo()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},jo=()=>Object.fromEntries(new URLSearchParams(window.location.search)),$o=(e,t)=>B(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 tt(n,e.isApp,i,"video"))?"1":"0",l=yield to(),c=yield hn(i),u=yield ot({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)=>Eo(To,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Eo(Io,Number(m.toFixed(2))):Co;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${po}-country_code`]:i,[`${po}-publisher`]:o,[`${po}-supply_type`]:(f=e.deviceType,f===ce?ue:pe),[`kw_${po}-page_type`]:"collection",[`${po}-page_type`]:"collection",[`${uo}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${uo}-page`]:"index",[`${uo}-page`]:"index",[`${uo}-screenheight`]:String(window.screen.height),[`${uo}-screenwidth`]:String(window.screen.width),[`${uo}-viewportheight`]:String(a),[`${uo}-viewportwidth`]:String(r),[`${uo}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${uo}-mobile-os`]:At(),[`${uo}-audience`]:void 0,[`${uo}-externalid_src`]:Po(),[`${uo}-tags`]:e.tags,[`${uo}-articleid`]:p,"article-id":p},yield Xt(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${uo}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(jo()).some(e=>e.includes(vo))&&(()=>{const e=jo(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(vo)).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})}),Lo=["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"],_o=["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"],qo=["external_uid","gdpr","gdpr_consent","eids","article-id"],No=(e,t)=>{const n=[...Lo,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||qo.includes(e)?e:`kw_${e}`,t]))},Fo=e=>Object.fromEntries(Object.entries(e).filter(([e])=>_o.includes(e))),Mo=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o,i,r;const a=(e=>{var t;ao[e]||c(`[video] No config found for publisher "${e}"`);return null!==(t=ao[e])&&void 0!==t?t:no})(e.publisher),d=(e=>{var t;return null!==(t=so[e])&&void 0!==t?t:so.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,l=null===(o=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString(),u=e.assetId===l,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 $o({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:Ao(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:v,playbackMethod:lo(e.startMode)}}),Bo=(e,t)=>{const{siteConfig:n,siteVideoParams:o,isUserPresentOnFrontPage:i,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=o||{},l=So(o,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(fo)?`${fo}${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":co.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({},No(r,n)),Fo(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")})}}}},Ro=e=>t=>B(void 0,void 0,void 0,function*(){const n=yield Mo(e,t);return Bo(n,e)}),Do={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]}]},zo={no:"NOK",se:"SEK"},Uo={no:"no",se:"sv"};class Wo{buildFetchObject(e,t,n,o){return B(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:r}=o,{invCode:a,xandrPlacementId:d}=e,s=yield to(),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(Do),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:re(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||Uo[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield ot(o),ext:{consent:s.gdpr_consent||"",eids:gn(i)}},at:1,cur:[zo[i]],source:{tid:re(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,o){return B(this,void 0,void 0,function*(){try{l("Starting fetching Studio ad from Xandr:",eo);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?`${eo}?${a.toString()}`:eo,s=yield this.buildFetchObject(e,t,n,o),c=yield V.post(d,i,s);return l("Fetch operation completed successfully.",c),c}catch(e){l("Error during fetch operation:",e)}return null})}}const Ho=0,Vo=3,Ko=e=>`externalImpId:'${e}'`,Xo=(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,Go=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:o}=m.get(),{targetId:i,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:c=!1,nativeCustomProperties:u,safeframeConfig:p,dynamicSizeWidthCheck:v=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||gt())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!==at):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),h=Object.assign({invCode:s,sizes:r,targetId:i,keywords:Xo(a,c),allowedFormats:d,dynamicSizeWidthCheck:v,globalPlacementId:g},p&&{safeframeConfig:p}),f=(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?(l("Pulse state pageViewId is:",o),o):(l("Pulse state does not contain field pageViewId or it is empty"),"")})(o);n&&f&&(l("External Impression ID assigned to defineTag:",Ko(f)),h.externalImpId=Ko(f));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,o])=>((null==e?void 0:e.includes(n))&&(t[n]=o),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(u);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=y),h},Jo=e=>!e.includes("takeover")||gt(),Yo=(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},Qo="finn-blink",Zo="native-ad",ei=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},ti=(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}]}})),ei(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},ni=(e,t,n)=>{var o;const i=t.replace(/-[^-]*$/,"");return null===(o=null==n?void 0:n[e].find(e=>e.targetId===i))||void 0===o?void 0:o.invCode},oi=(e,t)=>{new IntersectionObserver((e,n)=>{for(const o of e)if(o.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class ii{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&oi(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class ri extends ii{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return ni(e,this.adObj.targetId,t)}buildAdObject(){const e=ri.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}var ai=Object.freeze({__proto__:null,XandrAdTracker:ri});const di=(e,t)=>{si(e,t),ci(e,t)},si=(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(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,o,i,r,a,d;for(const t of null!==(o=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==o?o:[])pi(t);if((null===(i=null==t?void 0:t.pulse)||void 0===i?void 0:i.instance)&&(null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(d=t.deviceType)&&void 0!==d?d:ce};new ri({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},li=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(ui):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},ci=(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:ce])&&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,li(e),c.disconnect();break}},s);c.observe(i)},ui=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?pi(e):window.navigator.sendBeacon(e)},pi=e=>{V.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},vi=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:[]}),gi=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o;const{pageContext:{deviceType:i},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void l(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},On(d)).observe(s)});const{prepareTag:c}=m.getHandlers(),u=D.getData("alertoryConfigKeywords"),p=null!==(o=c(Go(e)).keywords)&&void 0!==o?o:{},v=new Wo,g=yield v.fetchData(e,u,p,t);g&&(((e,t,n)=>{const o=n===se?t.mobileHTML:t.desktopHTML;if(o){if(t.adType===Ho){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${o}`,e.appendChild(n)}else e.innerHTML=o;e.classList.add("ad-loaded")}})(s,g,i),g.adType===Vo&&(Yo(t.pageContext.publisher,s,Zo,t.pageContext.pageType),di({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.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)),ti(e,n,Number(null==o?void 0:o.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,g.bid))}),hi=(e,t)=>{e.forEach(e=>gi(e,t).catch(e=>{l("Failed to handle server-side ad:",e)}))},mi={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni",MTV:"mtv"},fi=(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(mi).includes(o);n&&r&&Yo(o,e,Zo,i)})(i,n),o())},yi={"no-aftenposten":mi.AFTENPOSTEN,"no-stavangeraftenblad":mi.SA,"no-bergenstidende":mi.BT},bi=(()=>{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()}}})(),wi=(e,t,n)=>{if(!n)return Promise.resolve(null);const o=((e,t,n)=>`${null!=n?n:K}/${G}/${e}/adjustments/${t}.json`)(e,n,t),i=bi.getAdjustment(o);if(i)return i;const r=V.get(o,{timeout:X}).catch(e=>(l("Failed to fetch native template adjustment",{error:e,url:o}),null));return bi.setAdjustment(o,r),r},xi=(e,t,n)=>B(void 0,void 0,void 0,function*(){const o=((e,t)=>`${null!=t?t:K}/${G}/${e}/default.json`)(e,n);let i=bi.getTemplate(o);i||(i=V.get(o,{timeout:X}).catch(e=>{throw l("Failed to fetch native template",{error:e,url:o}),bi.deleteTemplate(o),e}),bi.setTemplate(o,i));const r=wi(e,n,t),[a,d]=yield Promise.all([i,r]);return{schema:a,adjustment:d}}),ki="data-ad-video",Ci="viewable",Ii="adClick",Ti=(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"}))},Si=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),Ei=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},Ai=e=>B(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)))}))}),Oi={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 B(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return xd})})}})}},Pi=(e,t)=>{null==e||e.forEach(e=>{Oi[e](t)})},ji={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},$i=({container:e,native:t,type:n,publisher:o})=>{const i=e.querySelector(`[${ki}]`),{video:r,image:a,clickUrl:d=""}=t;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:s,videoLoop:l}=(e=>{var t;return null!==(t=ji[e.toLowerCase()])&&void 0!==t?t:ji.default})(n),c=Math.ceil(1e5*Math.random()),u=`ad-player-${c}`;i.id=u;const p=(({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({},Si(e)?e:{}),{provider:Object.assign(Object.assign({},Si(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}))({id:c,nodeId:u,poster:(null==a?void 0:a.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:Ti(r.content,d),publisher:o,videoLoop:l});B(void 0,[{playerConfig:p,clickUrl:d,pluginsNames:s}],void 0,function*({playerConfig:e,pluginsNames:t,clickUrl:n}){const o=yield Ai(e);Pi(t),o.once("assetReady",()=>{Ei(o,t)}),o.on(Ci,e=>{const{viewable:t}=e;t?o.play():o.pause()}),n&&o.on(Ii,()=>{window.open(n,"_blank")}),e.repeat&&o.on("pause",()=>{o.play()})})},Li=(e,t)=>{const{adjustmentOverrides:n}=e,o=M(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},o),t.overrides&&{adjustmentOverrides:a({},t.overrides)})},_i="desktop",qi="mobile",Ni="container",Fi="text",Mi="image",Bi="cogwheel",Ri="video",Di=e=>{if(e)return e===se?qi:_i},zi=(e,t,n)=>{var o,i,r,a,d,s,l,c,u,p,v,g,h;const m=t?null===(o=e.overrides)||void 0===o?void 0:o[t]:void 0,f=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[e.id],y=t?null===(r=null==n?void 0:n[t])||void 0===r?void 0:r[e.id]:void 0;if(null!==(s=null!==(d=null!==(a=null==y?void 0:y.hidden)&&void 0!==a?a:null==f?void 0:f.hidden)&&void 0!==d?d:null==m?void 0:m.hidden)&&void 0!==s?s:e.hidden)return null;const b=Object.assign(Object.assign(Object.assign(Object.assign({},e.styles),null==m?void 0:m.styles),null==f?void 0:f.styles),null==y?void 0:y.styles),w=null!==(u=null!==(c=null!==(l=null==y?void 0:y.tag)&&void 0!==l?l:null==f?void 0:f.tag)&&void 0!==c?c:null==m?void 0:m.tag)&&void 0!==u?u:e.tag,x=null!==(g=null!==(v=null!==(p=null==y?void 0:y.text)&&void 0!==p?p:null==f?void 0:f.text)&&void 0!==v?v:null==m?void 0:m.text)&&void 0!==g?g:e.text,k=null===(h=e.children)||void 0===h?void 0:h.map(e=>zi(e,t,n)).filter(e=>null!==e),C={id:e.id,tag:w,type:e.type,name:e.name,styles:b,connections:e.connections};return void 0!==x&&(C.text=x),void 0!==k&&(C.children=k),C},Ui=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(";"),Wi=(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 Hi{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 Vi=(e,t,n="")=>{var o;return(null===(o=e.connections)||void 0===o?void 0:o.length)?((e,t)=>{const n=[];for(const{properties:o}of e)for(const e of o){const o=Wi(t,e);o&&n.push(o)}return n.join(" ")})(e.connections,t):n},Ki=(e,t,n,o)=>{var i;const{tag:r,styles:a}=e,d=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Gi(e,t,n,!1)).join(""),s=new Hi(r);return o(s),s.attr("href","a"===r?Vi(e,t):"").attr("style",Ui(a)).children(d).build()},Xi={[Ni]:(e,t,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return Ki(e,t,n,t=>{o&&t.attr("class",`advertory-${r}-ad-native-${e.name.toLowerCase()}`)})},[Bi]:(e,t,n)=>Ki(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[Fi]:(e,t)=>{var n;return new Hi(e.tag).attr("style",Ui(e.styles)).children(Vi(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[Mi]:(e,t)=>new Hi("img",!0).attr("style",Ui(e.styles)).attr("src",Vi(e,t)).build(),[Ri]:(e,t)=>"video"===e.tag&&Vi(e,t)?new Hi("div").attr(ki,"true").attr("style",Ui(e.styles)).build():""},Gi=(e,t,n,o=!0)=>{const i=Xi[e.type];return i?i(e,t,n,o):""},Ji=e=>(t,{publisher:n,containerId:o,deviceType:i})=>(({config:e,nativeData:t,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const a=o?Li(e,o):e,d=zi(a.root,n,a.adjustmentOverrides);return d?Gi(d,t,{breakpoint:n,publisher:i,containerId:r}):null})({config:e,nativeData:t,breakpoint:Di(i),publisher:n,containerId:o}),Yi="[data-carousel-track]",Qi=({image_link:e,title:t})=>{const n=document.createElement("figure"),o=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),o.className="slide-image",o.src=e,o.alt=t,o.loading="lazy",o.draggable=!1,n.appendChild(o),n},Zi=e=>Boolean(e.title&&e.link&&e.image_link),er=(e,t)=>B(void 0,void 0,void 0,function*(){const n=e.querySelector(Yi);var o;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const i=yield(e=>B(void 0,void 0,void 0,function*(){try{const t=yield V.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(c("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return c("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!i)return void e.replaceChildren();const r=i.items.filter(Zi);if(!r.length)return void c("Carousel feed has no usable items");yield Promise.resolve().then(function(){return Cd});const a={title:(o=e).querySelector("[data-product-title]"),description:o.querySelector("[data-product-description]"),price:o.querySelector("[data-product-price]"),link:o.querySelector("[data-product-link]")};n.replaceChildren(...r.map(Qi)),(({root:e,onChange:t})=>{var n;const o=e.querySelector("[data-carousel-viewport]"),i=e.querySelector(Yi),r=Array.from(null!==(n=null==i?void 0:i.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!o||!i||!r.length)return;const a=r.length,d=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let s=1,l=null,c=0,u=!1;const p=e=>{const t=d[0].offsetWidth,n=Number.parseFloat(getComputedStyle(i).columnGap)||0,r=(o.clientWidth-t)/2-s*(t+n);i.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",i.style.transform=`translate3d(${r+c}px, 0, 0)`,i.offsetWidth},v=(e,n=!0)=>{s=e,p(n),d.forEach((e,t)=>e.classList.toggle("is-active",t===s)),null==t||t((s-1+a)%a)},g=()=>{0===s?v(a,!1):s===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*o.clientWidth?-Math.sign(c):0;l=null,c=0,v(s+e),window.setTimeout(()=>{u=!1})};i.replaceChildren(...d),i.addEventListener("transitionend",e=>{e.target===i&&g()}),o.addEventListener("pointerdown",e=>{g(),l=e.clientX,o.setPointerCapture(e.pointerId),p(!1)}),o.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),o.addEventListener("pointerup",h),o.addEventListener("pointercancel",h),o.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:o},i)=>{e&&(e.textContent=i.title),t&&(t.textContent=i.description),n&&(n.textContent=i.sale_price||i.price),o&&(o.href=i.link)})(a,r[e])}),l("Carousel mounted",{items:r.length})}catch(t){c("Carousel could not be rendered",t),e.replaceChildren()}else c("Carousel feed url is missing or not a valid https url",{url:t})}),tr="default",nr=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o,i,r,a,d;const s=document.querySelector(`#${e.targetId}`),{native:c}=e;if(!c||!s)return;const{desc2:u}=c,p=null==u?void 0:u.toLowerCase(),v=((e,t)=>{const n=L($),o=new URLSearchParams(window.location.search).get($),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!["shopping"].includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null})(e.targetId,null!=u?u:tr),g=(null!=v?v:p)||tr,h=(null===(n=c.video)||void 0===n?void 0:n.content)?`${g}-video`:g,m=(e=>{var t;if(e)return null!==(t=yi[e])&&void 0!==t?t:e})(null===(o=t.pageContext)||void 0===o?void 0:o.publisher);try{const{schema:n,adjustment:o}=yield xi(h,m,null===(i=t.editory)||void 0===i?void 0:i.editoryUrl),l=o?Li(n,o):n,u=Ji(l),p={publisher:m,pageType:null===(r=t.pageContext)||void 0===r?void 0:r.pageType,deviceType:null===(a=t.pageContext)||void 0===a?void 0:a.deviceType,appearanceConfig:t.appearanceConfig,nativeTrackingConfig:t.nativeTrackingConfig,containerId:e.targetId,clickLinkSelector:"a",pulse:t.pulse},v=u(c,p),{enabled:f=!0}=null!==(d=t.nativeTrackingConfig)&&void 0!==d?d:{};fi(e.targetId,v,p,()=>{ei(e.targetId),$i({container:s,native:c,type:g,publisher:m}),f&&di(e,p)})}catch(e){l("Failed to render native ad from config",{error:e})}}),or="explicit",ir="dom-discovered",rr=e=>`${Math.max(0,Math.round(e))}px`,ar=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},dr=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const o=e[t];n.style.setProperty(t,o)}},sr=()=>{const{pageSectionsSelectors:e}=m.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=ar(t);dr({"--advertory-header-height":rr(n)})})(e.header)},lr=()=>{const e=b();if(!e)throw new Error("Ad server driver is not set, pass a driver to init()");return e};let cr=[];const ur=["takeover","wallpaper"],pr=(e,t)=>{var n,o;const{initNativeAd:i}=m.getHandlers();null==i||i(e,null!==(o=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==o?o:m.get())},vr=e=>{const t=(e=>{var t;const n=D.getData("alertoryConfigKeywords"),{queryConfig:o,placements:i,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:h,takeover:m,fullscreenScroll:f,fullWidth:y}=e,b=null!==(t=null==o?void 0:o.batchSize)&&void 0!==t?t:g;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:h,placements:i,tcf:r,queryConfig:Object.assign(Object.assign({},o),{batchSize:b})},a&&{glimr:a}),d&&{appearanceConfig:d}),m&&{takeover:m}),f&&{fullscreenScroll:f}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.19.0",siteConfig:e,renderNativeAd:pr,alertoryConfig:t}},gr=()=>B(void 0,void 0,void 0,function*(){yield lr().setTargeting()}),hr=e=>B(void 0,void 0,void 0,function*(){var t,n,o,i;const r=lr(),a=null!==(n=yield null===(t=r.adjustPlacementsBeforeRequest)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:e;null===(o=r.definePlacements)||void 0===o||o.call(r,a),yield null===(i=r.requestPlacements)||void 0===i?void 0:i.call(r,a)}),mr=(e,t)=>B(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:o}}=m.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&&(l("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:i,deviceDefaultThreshold:d}),yield An(a,null!=i?i:d)),a&&(null==r?void 0:r.scroll)&&(l("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),fr=e=>e.some(({targetId:e})=>ur.some(t=>e.includes(t))),yr=e=>B(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=g}={},pageContext:{deviceType:o}}=m.get(),i=we(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,...Mn(d,n)]})(o);for(const e of i)fr(e)?(l("core loadAds without lazy loading",{placementsToLoad:e}),yield hr(e)):e.length&&(l("core loadAds with lazy loading",{placementsToLoad:e}),yield br(e));const{finnBlink:r}=m.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield Promise.resolve().then(function(){return bd});yield e(n)}}),br=e=>B(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=m.get(),o=[];if(!t)return l("lazy load is not enabled",{placements:e}),void(yield hr(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{l("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&&hr(e),l("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&&(l("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),wr=()=>B(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>B(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>B(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=cr.find(({targetId:t})=>t===e.targetId);t&&(yield mr(t,e),cr=cr.filter(e=>e.targetId!==t.targetId))})),yield lr().bindEvents(e)}),xr=(e,t)=>B(void 0,void 0,void 0,function*(){var n,o,i,r;if(l(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return l("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:a,disableAds:d,reloadExistingAds:s,renderFinnBlinkPlacements:c,contextSelector:u}=null!=t?t:{},p=Object.keys(null!=e?e:{}).length>0;let v=[];if(d)return te(),cr=[],ne(),[];if(a&&(v=null!==(o=te())&&void 0!==o?o:[]),a&&!p)return[];if(a&&p&&(cr=[],ne()),s&&(te(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{N(e.id)})),yield oe(e),(null==e?void 0:e.pageSectionsSelectors)&&sr(),yield gr(),lr().capabilities.tagDefinition===ir)return l("Advertory update - dom-discovered driver finds its own placements, requesting the page"),yield null===(r=(i=lr()).requestPage)||void 0===r?void 0:r.call(i),cr;const{clientSidePlacements:g,serverSidePlacements:h}=vi(ye(u)),f=[...g,...h];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>F(e)));e.filter(e=>n.has(e)).forEach(e=>N(e))})(v,f),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>F(e)));e.filter(e=>!n.has(e)).forEach(e=>z(e))})(v,f);let y=g;return c&&(y=y.filter(e=>Re(e.targetId))),hi(h,m.get()),y.length>0&&(cr=[...cr,...y.map(e=>Object.assign({},e))],lr().capabilities.refresh&&(zn(y),Wn(y)),yield yr(y)),cr}),kr=(e,t,n)=>B(void 0,void 0,void 0,function*(){var o,i;y=n,m.set(e),m.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:r,kilkaya:a,rightColumnSplit:d,finnBlink:s}=e;D.initialize(),window.addEventListener("message",Tn,!1);const[c]=yield Promise.allSettled([n.setup(),cn(e),B(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=m.get();(yield tt(t,n,o,"gpt-endpoint"))&&(yield mn(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),B(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=m.get(),{getConsentAsync:r}=et(n,0,i),a=yield r();if(e&&t&&a){if(yield mn(t),document.querySelector(`.${Qn}`))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(Qn)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),Dt(),B(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=m.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield mn(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(l("Driver has been set up"),null==r?void 0:r.enabled){const{loadNorstat:e}=yield Promise.resolve().then(function(){return Td});yield e()}if(l("Libraries have been loaded and trackers have been set"),sr(),yield wr(),yield gr(),l("Page options have been set"),vr(e),l("Advertory is setup on window"),n.capabilities.tagDefinition===ir)return yield null===(o=n.requestPage)||void 0===o?void 0:o.call(n),void l("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=vi(ye());if(cr=u,hi(p,e),n.capabilities.refresh&&(zn(cr),Wn(cr)),yield yr(cr),l("Ads has been loaded",cr),Gn(cr),null==s?void 0:s.enabled){const{replaceAdsWithFinnBlink:t}=yield Promise.resolve().then(function(){return bd});yield t(null===(i=null==e?void 0:e.pageContext)||void 0===i?void 0:i.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield Promise.resolve().then(function(){return $d});t(e.rightColumnSplit)}if(null==a?void 0:a.enabled){const{runKilkaya:t}=yield Promise.resolve().then(function(){return Qd});yield t(e)}}),Cr=(e,t,n)=>B(void 0,void 0,void 0,function*(){l(`Received configuration passed to Advertory: ${JSON.stringify(e)}`),yield((e,t,n)=>B(void 0,void 0,void 0,function*(){var o,i;const{initConsentManager:r,getConsentAsync:a}=et(e.tcf,null===(o=e.pageContext)||void 0===o||o.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),d=yield Q(e);yield Zn(),yield Jn(r),yield Jn(a),l("TCF resolved successfully"),yield kr(d,t,n),l("Run function resolved successfully")}))(e,t,n)}),Ir={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{const t=window.screen.width||window.innerWidth;980===e.width&&t<980&&"native"!==e.adType&&((e,t)=>{jt(e,t);const n=document.querySelector(`#${e.targetId}`);n&&(n.style.minWidth="100vw")})(e,t)},adNoBid:e=>{(e=>{const{targetId:t}=e,n=`${F(t)}_backfill`,{placements:o,pageContext:{deviceType:i}}=m.get();if(!o[i].some(e=>e.targetId===n))return;const r=document.querySelector(`#${t}`),a=null==r?void 0:r.parentElement;if(!r||!a)return;N(t);const d=`backfill_wrapper_for_${t}`;a.setAttribute("id",d),r.setAttribute("id",n),xr({},{contextSelector:`#${d}`})})(e)},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},Tr={publisherClassName:mi.TEK,fullWidthFormatClassName:"netboard"},Sr={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}},Er=["sponsor","seamless"],Ar=["shopping"],Or=(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:f,customTitle4:y,customBody1:b,customBody2:w,customBody3:x,customBody4:k,customBody5:C,customIcon1:I,customIcon2:T,customDisplayUrl1:S,customDisplayUrl2:E}=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=Er.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=o.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return A(t?I: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!=f?f:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=x?x:"",customBody4:null!=k?k:"",customBody5:null!=C?C:"",logo2:A(T),previewVideoSrc:null!=S?S:"",feedUrl:null!=E?E:""},t)},Pr=(e,t)=>{const n=L($),o=new URLSearchParams(window.location.search).get($),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!Ar.includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},jr=(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(mi).includes(o);n&&r&&Yo(o,e,Zo,i)})(i,n),o())},$r=(e,t,n)=>{var o;const i=((e,t,n)=>{var o;const{displayTemplates:i,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(o=Pr(e.targetId,l))&&void 0!==o?o:c,p=Sr[t.language||Je.NO],v=Or(d,p,s,t);return(d.video?r[u]:i[u]||i.default)(v,t)})(e,t,n);jr(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&di(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&er(r,null===(o=e.native)||void 0===o?void 0:o.customDisplayUrl2)},Lr=e=>(t,n)=>{var o;const{targetId:i}=t,r=document.querySelector(`#${i}`);if(!r)return;const a=e.getOptions(null!=n?n:{});$r(t,a,e.templates),null===(o=e.postProcess)||void 0===o||o.call(e,t,r)},_r=/_\d+$/,qr=e=>e.replace(_r,""),Nr=()=>{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};class Fr{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return B(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 B(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Mr=9826;class Br{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=m.get();if(t){return{"aa-sch-supply_type":`app_${e===se?"phone":le}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return B(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 B(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=nt("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return B(this,void 0,void 0,function*(){return yield ot(m.get())})}isTrackingForbidden(){return B(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=Mr}={}}=m.get();return"true"===P("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=m.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return B(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get(),{getConsentAsync:o}=et(e,0,n);return{"aa-sch-cmp_advertising":(yield o())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=m.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 Rr=new Br;function Dr(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=At();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:o.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Rr.prepare.bind(Rr);const zr=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Ur(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",zr.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Wr extends Br{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=m.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=m.get(),{OS:n,isHybridApp:o}=Dr(t);return{"no-sno-apptype":n&&e&&o?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Ur(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=m.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 Hr=new class extends Wr{prepare(e){return B(this,void 0,void 0,function*(){var t,n,o,i,r,a,d;const s=m.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 Fr;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Xt(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(pn()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},un(Je.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Vr=Hr.prepare.bind(Hr);class Kr extends Br{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=m.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 B(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}}=m.get(),{appMode:t,mobileOS:n}=Dr(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}}=m.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 Xr=new class extends Kr{prepare(e){return B(this,void 0,void 0,function*(){var t,n,o,i,r,a;const d=m.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 Fr;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync(Xt(d,s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>B(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(pn()).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"===nt("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({},un(Je.SE)),p?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Gr=Xr.prepare.bind(Xr),Jr=[];let Yr=e=>{Jr.push(e)};const Qr=e=>{Yr(e)},Zr="ad-loaded",ea={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},ta=e=>{const{apntag:t,bus:n}=e,{siteEvents:o,initNativeAd:i}=m.getHandlers(),r=Object.assign(Object.assign({},ea),o),a=[];return{adRequested:()=>{n.emit("adRequested"),r.adRequested()},adAvailable:e=>B(void 0,void 0,void 0,function*(){var t,o,a,d,s,c;l("core adAvailable start",{adObj:e,isFullscreenScrollAd:$e(e),isFinnBlink:Re(e.targetId),isNativeAd:Le(e),isMediation:Ke(e),isTakeoverAd:qe(e),isCollapseAd:Me(e),isWallpaperAd:Fe(e)});const u=null===(a=null===(o=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===o?void 0:o.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(Ke(e)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(e.banner=null===(c=null===(s=u[1])||void 0===s?void 0:s.rtb)||void 0===c?void 0:c.banner),$e(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return $a});t(e)}const{widescreenSwitching:p,wallpaper:v,fullscreenScroll:g}=m.get();if(Ue(e)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield Promise.resolve().then(function(){return os});e()}if($e(e)&&!Re(e.targetId)){l("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return $a});t(e,g)}if(!Le(e)||Ke(e)||Re(e.targetId)||null==i||i(e,m.get()),qe(e)&&!Me(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield Promise.resolve().then(function(){return Is});t(e.targetId),yield n(e)}if(Fe(e)&&(null==v?void 0:v.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return O});t(()=>Qr(()=>window.apntag.showTag(e.targetId)),v),D.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&D.setData("horseshoe",{isAvailable:!0}),r.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),l("core adAvailable stop",{adObj:e,isFullscreenScrollAd:$e(e),isFinnBlink:Re(e.targetId),isNativeAd:Le(e),isMediation:Ke(e),isTakeoverAd:qe(e),isCollapseAd:Me(e),isWallpaperAd:Fe(e)})}),adLoaded:e=>B(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:o,wallpaper:d,adScaleConfig:s,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=m.get(),v=document.getElementById(e.targetId);if(Re(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield Promise.resolve().then(function(){return cd});t(e)}if(a.includes(e.targetId)&&Le(e)&&(null==i||i(e,m.get()),St({adObj:e})),!a.includes(e.targetId)&&Ke(e)&&a.push(e.targetId),Me(e)&&q(e.targetId),qe(e)){const{modifyTakeoverIframe:n}=yield Promise.resolve().then(function(){return Is});n(t,e.targetId)}if((e=>Ve(e,Ce))(e)){const{applyNinesixteenFormat:t}=yield Promise.resolve().then(function(){return As});t(e)}if((e=>Ve(e,Te))(e)){const{applyFullsquareFormat:t}=yield Promise.resolve().then(function(){return As});t(e)}if(_e(e)){const{applyFullwidthFormat:t}=yield Promise.resolve().then(function(){return As});t(e)}Dn(e,n),(null==o?void 0:o.clearProbableDimensionsEnabled)&&z(e.targetId);if(D.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return O});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield Promise.resolve().then(function(){return _t});t(e),n(e)}if(r.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return ai}),n=new t(m.get(),e);n.trackLoad(),n.trackImpression()}ei(e.targetId),v&&(v.classList.add(Zr),(e=>{var t,n;const{pageSectionsSelectors:o}=m.get(),i=null==o?void 0:o.mainFirstColumn,r=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),St({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const o=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;o&&((e,t)=>{const{height:n,width:o,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&o&&(t.dataset.adSizes=`[${o},${n}]`)})(e,o)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:Et(e)}}))}),adNoBid:e=>B(void 0,void 0,void 0,function*(){if(q(e.targetId),qe(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return It});yield t(e)}r.adNoBid(e)}),adError:(e,t)=>B(void 0,void 0,void 0,function*(){if(qe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return It});yield e(t)}r.adError(e,t)}),adCollapse:()=>{r.adCollapse()},adRequestFailure:e=>B(void 0,void 0,void 0,function*(){q(e.targetId),r.adRequestFailure(e)}),adBadRequest:e=>B(void 0,void 0,void 0,function*(){q(e.targetId),r.adBadRequest(e)}),adLoadedMediated:e=>r.adLoadedMediated(e),adNoBidMediated:e=>{r.adNoBidMediated(e)}}},na=e=>{const{targetId:t,allowedFormats:n}=e,o=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Hn(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},oa=()=>(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),ia=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),ra=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:o=!1}={},pageContext:{countryCode:i}}=m.get(),r=[`${Kt(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)}},aa="advertory-fullscreen-scroll",da="advertory-fullscreen-scroll-wrapper",sa="fullscreen-scroll-in-screen",la="in-screen",ca=e=>e.includes("snoap.no"),ua=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)},pa=st([],()=>{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}),va=e=>{const t=st([],()=>{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},ga=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},ha=[],ma={},fa=(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=>ya(e,o),{}),r=wa(e);i.observe(e),o&&(ma[r]=Ca(e,null==t?void 0:t.options))},ya=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const o=wa(e);n?(ba(o,n),xa(e,o,t)):(ba(o,n),ka(e,o,t))})},ba=(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}`,"*")},wa=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},xa=(e,t,n)=>{e.classList.add(la),document.body.classList.add(sa),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),ha.includes(t)||ha.push(t),n&&window.addEventListener("scroll",ma[t],{passive:!0})},ka=(e,t,n)=>{ha.includes(t)&&(n&&window.removeEventListener("scroll",ma[t]),document.body.classList.remove(sa),e.classList.remove(la),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},Ca=(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&&Ia(e,r,i,0),a.length&&Ia(e,a,i,40)}},Ia=(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()})};Yn('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const Ta="left";let Sa=null;const Ea=(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=`(${pa})()`,e+t.outerHTML})(n),n=ga(n),n=(e=>{if(ca(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=va(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>ca(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)),ca(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)),ua(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},Aa=()=>{Sa=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`)},Oa=()=>{Sa||(Sa=window.requestAnimationFrame(Aa))},Pa=(e,t)=>{var n,o,i,r,a;const{pageContext:{countryCode:d,deviceType:s}}=m.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:o=1302,backgroundColor:i="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=o/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(o=null==c?void 0:c.overlayStyles)&&void 0!==o?o:{},s);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;fa(p,t),u.className=aa,fa(p,t),u.className="advertory-fullscreen-scroll";const v=Ve(e,xe)?"absolute":"fixed";u.style.position=v,p.className=da,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(i=null==c?void 0:c.annonsLabel)&&void 0!==i?i:Sr[d].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===Ta&&(u.dataset.moveCogwheelToTheLeft="true"),Oa(),window.addEventListener("resize",Oa),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",Oa),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",Oa)},ja=e=>{if(!(null==e?void 0:e.classList.contains(aa)))return;e.classList.remove(aa),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(da))&&(t.classList.remove(da),t.classList.remove(la))};var $a=Object.freeze({__proto__:null,createFullscreenScrollAd:Pa,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=ua(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=ua(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Ea(t,e))},undoFullscreenScrollContainer:ja});const La=()=>B(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}=m.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=m.getHandlers(),{getConsentAsync:c}=et(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=oa(),{prebid:{relevantCallbackTimeout:r}={}}=m.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}}})(),v=oa(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=oa();return{user:e,keywords:t}})();p.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:f}=g;(()=>{const e=ia();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{l("prebid relevantYieldQueue callback fired - RY took over");if(p.getCancel()||!v.loadTags)return l("core loadTags() call was cancelled",{cancel:p.getCancel(),apnTagLoadTags:!v.loadTags,condition:"or"}),void p.cleanup();const t=ia();p.events.relevantCb.done=!0,p.failsafeOnTimeout("auctionCb");const c=u?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};l("prebid consentManagement",c),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},vn(n)),ra(f,h))),l("core add prebid config",Object.assign(Object.assign({consentManagement:c,enableSendAllBids:!1},vn(n)),ra(f,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{l("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:p.getCancel()}),p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e)),p.cleanup()}},customNativeRender:e=>{_a(e,s)},directRenderFn:e=>{var t,n,s;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),f=null!==(s=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==s?s:0,y=Object.assign(Object.assign({},p),{targetId:g,banner:!0});l("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}),Sn(h,f,()=>{var e;const t=u(c),n=$e(y);if(l("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==p?void 0:p.width,height:null==p?void 0:p.height}),n)l("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),Pa(y,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const 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{l("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),ja(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(Zr),(null==p?void 0:p.creativeId)&&ti(g,h,Number(null==p?void 0:p.creativeId))})}}),l("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,v.loadTags(e))}},customNativeRender:e=>{_a(e,s)},directRenderFn:()=>{}})})}),_a=(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},m.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")},qa="_adchoices_non_rtb",Na=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=qa}={}}={}}=m.get();return`${qr(e)}${t}`},Fa=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>q(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Na(e.invCode)})))(e));let Ma="";const Ba=new Map;let Ra;const Da=()=>{var e;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,Yr=e=e=>window.apntag.anq.push(e),Jr.splice(0).forEach(t=>e(t))},za=()=>Ra,Ua=()=>{const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();return tt(e,t,n,"loadPlacements")},Wa={name:"xandr",capabilities:{tagDefinition:or,deferredRequest:!0,deferredRender:!0,refresh:!0},messageOrigins:["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"],setup:()=>B(void 0,void 0,void 0,function*(){Da(),yield Promise.allSettled([B(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();(yield tt(e,t,n,"xandr-endpoint"))||Ra.setEndpoint("ib.adnxs-simple.com",!0)}),B(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=m.get();yield mn(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),B(void 0,void 0,void 0,function*(){if(_())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=m.get(),i=yield tt(t,n,o,"prebid");(null==e?void 0:e.enabled)&&i&&(yield mn(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>B(void 0,void 0,void 0,function*(){const{pageOptions:e}=m.get(),{preparePageOptions:t}=m.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=m.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 B(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();return(yield tt(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=D.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=Xn(e);D.setData("alertoryConfigKeywords",n)})(i.keywords),Qr(()=>za().setPageOpts(i))}),enrichPlacementsAfterDiscovery:e=>{const{pageSetup:{tag:t}={}}=m.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(Ma!==window.location.pathname&&(Ba.clear(),Ma=window.location.pathname),e.map(e=>{var t;const n=qr(e.invCode),o=null!==(t=Ba.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=m.get();return`${e}-${t}`})()}-count`]=o,Ba.set(n,o+1),e})):e},adjustPlacementsBeforeRequest:e=>B(void 0,void 0,void 0,function*(){const t=yield Ua();return Fa(e,t)}),definePlacements:e=>{const{prepareTag:t}=m.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=>{l("xandr definePlacements",{placement:e});const o=Go(e);if(Jo(e.targetId)){const i=t(o),r=(e=>{const{allowedFormats:t,invCode:n,keywords:o,sizes:i}=e;return{adTypes:t,invCode:n,keywords:Kn(o),sizes:i}})(i);n.push(r),Qr(()=>(l("xandr definePlacements - add to the queue",{placement:e,preparedTag:i}),za().defineTag(i)))}}),(e=>{var t,n,o;(null===(o=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===o?void 0:o.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>B(void 0,void 0,void 0,function*(){const{prebid:t}=m.get();if((null==t?void 0:t.enabled)&&(yield Ua())&&!_())return l("xandr requestPlacements prebid enabled"),void(yield La());l("xandr requestPlacements without prebid enabled");const n=e.filter(({targetId:e})=>Jo(e)).map(({targetId:e})=>e);n.length&&Qr(()=>(l("xandr requestPlacements",{placementsIdsToLoad:n}),za().loadTags([...n])))}),bindEvents:e=>B(void 0,void 0,void 0,function*(){var t;yield(t={apntag:za(),bus:e},B(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=ta(t);Qr(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))}),clear:()=>{Qr(()=>window.apntag.clearRequest())},render:e=>{Qr(()=>(l("core showTag",{id:e}),window.apntag.showTag(e)))},refresh:(e,{keepPreviousSizes:t,applyReloadKeyword:n}={})=>{for(const e of null!=t?t:[])window.apntag.modifyTag(e.targetId,na(e));Qr(()=>{((e,t)=>{if(!t)return;const{pageContext:{countryCode:n}}=m.get();window.apntag.setKeywords(e,{[`${Kt(n)}-adreload`]:"1"},{overrideKeyValue:!0})})(e,n),window.apntag.refresh(e)})},resizeCreative:(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])}}},Ha="viewable",Va="adClick";var Ka=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=Xa(i.content,a),h=Ga({id:u,nodeId:v,poster:p,tagURL:g,publisher:d,productTag:s,videoLoop:c});return Ja({playerConfig:h,clickUrl:a,pluginsNames:l}),`${e(t,n,v)}`};const Xa=(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"}))},Ga=({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({},Si(e)?e:{}),{provider:Object.assign(Object.assign({},Si(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}),Ja=e=>B(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:o}=e,{repeat:i}=t,r=yield Ai(t);Pi(n),r.once("assetReady",()=>{Ei(r,n)}),r.on(Ha,e=>{const{viewable:t}=e;t?r.play():r.pause()}),r.on(Va,()=>{window.open(o,"_blank")}),i&&r.on("pause",()=>{r.play()})}),Ya=({containerId:e,url:t,body:n,title:o,logo:i,description:r,isContentVideoAd:a=!1})=>{const d=`\n <div class="ad-header">\n <span>${Sr.no.adContent}</span>\n ${i?`<img alt="" aria-hidden="true" class="ad-logo" src="${i}" />`:""}\n </div>\n `,s=`\n <div class="ad-text">\n <h3>${o}</h3>\n ${r?`<div>${r}</div>`:""}\n </div>\n `;return`\n <div id="${e}" class="advertory-tekno-ad-content">\n <div class="ad-info" id="${e}-button"></div>\n ${a?`\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 `};Yn('@import"https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap";.advertory-shared-ad-native-content-display-basic{width:100%;font-family:Roboto,sans-serif;color:#6d747e;text-align:left;background:#fff;position:relative;margin:0 auto;display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic *{line-height:normal}.advertory-shared-ad-native-content-display-basic .ad-info{top:0;right:8px;position:absolute}.advertory-shared-ad-native-content-display-basic .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic .ad-link{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-link:hover{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-header{padding:5px 16px;background-color:#ffcd00;font-size:12px;text-transform:uppercase;color:#495057;font-weight:600}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper{display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{position:relative;padding-bottom:40%}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{display:none}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper{position:absolute;height:100%;width:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper .ad-large-image{object-fit:cover;min-width:100%;height:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content{box-sizing:border-box;display:flex;background-color:#fffae6}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container{flex-grow:1;padding:16px}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:20px;color:#212529;font-weight:600;margin-bottom:16px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:22px}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-sponsor{font-size:11px;color:gray;font-weight:600;text-transform:uppercase}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:none;max-width:175px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:block}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover;max-width:100%}.advertory-shared-ad-native-content-display-basic.article .ad-info{top:0;right:0;position:absolute;border-bottom-left-radius:50%;background:hsla(0,0%,100%,.6)}.advertory-shared-ad-native-content-display-basic.article .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{display:block}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container{padding:8px 16px;border-left:4px solid #ffcd00}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{display:flex;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper .ad-header{padding:2px 4px;font-size:11px}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:15px;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:18px;margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:16px 8px 16px 0}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:0}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:contain}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover}}');const Qa={FRONT:"front"};Yn('.advertory-abo-ad-native-sponsorstripe{position:relative;top:0;left:0;width:100%;background:inherit;padding:0;margin:0;border:none;text-align:left}.advertory-abo-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:980px;height:30px;padding:5px 15px;margin:auto;font-family:"Helvetica Neue",Arial,Roboto,sans-serif}.advertory-abo-ad-native-sponsorstripe .ad-logo{flex:0;height:20px;max-width:35%;max-height:inherit}.advertory-abo-ad-native-sponsorstripe .ad-title{margin-right:10px;padding-left:34px;font-size:13px;color:#fff}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper{display:grid;position:absolute;place-content:center;height:30px;min-width:30px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{display:inline-block;height:20px;width:20px;position:relative;border:solid 1px #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{content:"i";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:13px}.advertory-abo-ad-native-sponsorstripe .ad-description{font-size:13px;color:#fff;position:absolute;top:0;max-width:980px;min-height:30px;padding:15px 35px 15px 15px;margin-left:-15px;background-color:rgba(0,0,0,.9)}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper{position:absolute;top:15px;right:15px;place-content:center;height:16px;min-width:16px}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button{display:inline-block;height:16px;width:16px;position:relative;border:1px solid #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button:before{content:"✕";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:10px;font-weight:bold}.advertory-abo-ad-native-sponsorstripe .ad-description .ad-description-readmore{color:#c7ecff}.advertory-abo-ad-native-sponsorstripe .ad-description.hide{display:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-sponsorstripe .ad-wrapper{height:50px}.advertory-abo-ad-native-sponsorstripe .ad-wrapper .ad-description{min-height:50px}.advertory-abo-ad-native-sponsorstripe .ad-logo{height:40px}.advertory-abo-ad-native-sponsorstripe .ad-title{font-size:20px;padding-left:40px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{height:30px;width:30px;border-width:2px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{font-size:20px}}');const Za={default:{NATIVE_TEMPLATE:({containerId:e,url:t,sponsoredBy:n,title:o,img:i,adText:r})=>(Promise.resolve().then(function(){return Ps}),`<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>`)}.NATIVE_TEMPLATE,content:({containerId:e,url:t,title:n,img:o,imgWidth:i,imgHeight:r,description:a,logo:d,imgAltText:s},l)=>{const c=$t(i,r);return Ya({containerId:e,url:t,title:n,logo:d,description:a,body:`\n<div class="ad-image-wrapper" ${c?`style="padding-bottom: ${100*c}%"`:""}>\n <img alt="${s}" class="ad-image" src="${o}" />\n</div>`})},contentVideo:(e,t)=>Ka(({containerId:e,url:t,title:n,logo:o,description:i},r,a)=>Ya({containerId:e,url:t,title:n,description:i,logo:o,isContentVideoAd:!0,body:`\n<div class="ad-video-wrapper">\n <div id="${a}"></div>\n</div>`}))(e,t),nativeVideo:(e,t)=>Ka(({containerId:e,url:t,sponsoredBy:n,title:o,description:i},r,a)=>(({containerId:e,url:t,sponsoredBy:n,body:o,title:i,description:r})=>`\n<div id="${e}" class="advertory-tekno-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">${Sr.no.adFrom} ${n}</div>\n ${o}\n <div class="ad-text">\n <h3>${i}</h3>\n ${r?`<div>${r}</div>`:""}\n </div>\n </a>\n</div>`)({containerId:e,url:t,description:i,sponsoredBy:n,title:o,body:`\n<div class="ad-video-wrapper">\n <div id="${a}"></div>\n</div>`}))(e,t),sponsorstripe:e=>{var{title:t,logo:n}=e;return M(e,["title","logo"]),`<div class="advertory-tekno-sponsorstripe">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').parentElement.querySelector('.disclaimer');\n disclaimer.style.display = 'flex';\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">${t}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${n}" />\n <div class="disclaimer" style="display: none">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').parentElement;\n disclaimer.style.display = 'none';\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 som omhandler denne tematikken.\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>`}},ed={displayTemplates:{default:Za.default,content:Za.content,sponsorstripe:Za.sponsorstripe,seamless:{NATIVE_SEAMLESS:({containerId:e,url:t,adText:n,img:o,cta:i,description:r,logo:a,sponsoredBy:d,title:s,feedUrl:l})=>(Promise.resolve().then(function(){return Os}),`<article class="advertory-shared-ad-native-seamless">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank" data-product-link>\n <div class="ad-content">\n <div class="ad-header">\n ${a&&`<img alt="${d}" class="ad-logo" src="${a}" loading="lazy" />`}\n <div class="ad-annons">${n}</div>\n </div>\n ${(({img:e,title:t,feedUrl:n})=>n?'<div class="ad-carousel">\n <div class="carousel-window" data-carousel-viewport>\n <div class="carousel-track" data-carousel-track></div>\n </div>\n </div>':`<div class="ad-image-container">\n <img alt="${t}" class="ad-image" src="${e}" loading="lazy">\n </div>`)({img:o,title:s,feedUrl:l})}\n <div class="ad-footer">\n <div class="ad-row">\n <div class="ad-text-wrapper">\n <div class="ad-description" data-product-description>${r}</div>\n <h2 class="ad-headline" data-product-title>${s}</h2>\n </div>\n <div class="ad-purchase">\n <span class="ad-price" data-product-price></span>\n <div class="ad-action">${i}</div>\n </div>\n </div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_SEAMLESS},videoTemplates:{default:Za.nativeVideo,content:Za.contentVideo}},td={prepareTag:e=>{var t;const{keywords:n,targetId:o,invCode:i,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=m.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=m.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}}=m.get(),{keywords:n,dynamicSizeWidthCheck:o}=e,i=`${Kt(t)}-adformat`,r=n?n[i]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in je)||window.innerWidth>=je[e]);return{[i]:o?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=m.get(),n=`${Kt(t)}-targetid`;return e?{[n]:[e]}:{}})(o),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=Nr(),h=(e=>Xe(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),f=((e,t)=>Xe(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),y=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,b=(new Fr).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${Kt(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:b,rendererOptions:f,globalPlacementId:a||c})},preparePageOptions:e=>B(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=m.get();return yield t===Je.SE?Gr(e):Vr(e)}),siteEvents:Ir,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 nr(e,t);const{targetId:r}=e;if(!document.querySelector(`#${r}`))return;const{pageType:a=Qa.FRONT,deviceType:d}=null!==(i=null==t?void 0:t.pageContext)&&void 0!==i?i:{},{nativeTrackingConfig:s,appearanceConfig:l,pulse:c}=null!=t?t:{},u={language:Je.NO,publisher:mi.TEK,deviceType:d,pageType:a,nativeTrackingConfig:s,appearanceConfig:l,pulse:c};$r(e,u,ed)}},nd=((e,t,n)=>({init:o=>Cr(Object.assign(Object.assign({},o),{siteSpecificConfig:n}),e,t),update:xr,renderNativeAd:pr,getVideoPPIDs:hn,createInitNativeAd:Lr,getVideoAdsConfig:Ro}))(td,Wa,Tr);Yn('.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";class dd extends ii{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.blinkParams=e,this.targetId=t}getTargetId(){return this.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.blinkParams;if(e)return ni(e,this.targetId,t)}buildAdObject(){const e=dd.extractAdFormat(this.targetId);return{objectId:this.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"blink",adFormat:e}}}const sd=(e,t)=>{const{siteSpecificConfig:{publisherClassName:n}={},pageContext:{pageType:o},pulse:i}=m.get(),r=document.querySelector(`#${e}`);if(!r)return;if(r.classList.add("disable-cogwheel"),(null==i?void 0:i.instance)&&i.adTrackingEnabled){const t=new dd(m.get(),e);t.trackLoad(),t.trackImpression(),r.addEventListener("click",()=>t.trackEngagement())}Yo(n,r,Qo,null!=t?t:o);St({preferredTestIdData:{targetId:e,testId:"finn"}})},ld=e=>{const{pageContext:{publisher:t=""}}=m.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 cd=Object.freeze({__proto__:null,displaySpecialFormatsForFinnFallback:e=>{const{fullscreenScroll:t}=m.get(),{initNativeAd:n}=m.getHandlers();$e(e)&&Pa(e,t),Le(e)&&(null==n||n(e,m.get()))},finnBlinkLoaded:sd,xandrAdLoaded:ld});const ud=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},pd=(e,t)=>{const{finnBlink:{enabled:n}={}}=m.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:`#${ud(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}},vd=(e,t,n)=>B(void 0,void 0,void 0,function*(){const{placements:o,pageContext:{deviceType:i},appearanceConfig:r}=m.get();l(`rendering finn blink ad for ${e}`);const a=F(e),d=o[i].find(e=>e.targetId===a),s=pd(e,null==d?void 0:d.finnBlink);if(!(null==s?void 0:s.enabled))return l(`Finn blink is not enabled on placement: ${e}`),n&&n(e),void ld(e);if((e=>{var t;const n=ud(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 l(`Finn blink already loaded ${e}`);const{publisher:c,countryCode:u,finnBlink:p}=t,{sdkPayload:{channel:v}={}}=null!=p?p:{},g=null!=v?v:`${c}.${u}`,h="dark"===(null==r?void 0:r.theme)?"dark":"light";try{const e=yield B(void 0,void 0,void 0,function*(){const{ppid1:e}=ln.getPPIDs();return e});yield(f=Object.assign(Object.assign({},s),{channel:g,userId:e,theme:h}),B(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=f,n=M(f,["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))})),sd(s.selector.replace("#",""),s.advertoryTheme)}catch(t){l(`Finn blink error ${t}`),n&&n(e),!n&&q(e),ld(e)}var f}),gd=(...e)=>B(void 0,[...e],void 0,function*(e=500){return Promise.race([B(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])});class hd{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 B(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 l("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return B(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 md=()=>B(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=m.get();if(!(yield tt(e,t,n,"finn-blink")))return l("Skip loading finn blink ad due to missing TCF consent."),!1;const o=yield gd();return!!(yield new hd(o).isUserLoggedIn())||(l("Skip loading finn blink ad because the user is not logged in."),!1)}),fd=(e,t)=>{var n;(l(`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)):l(`Cannot perform afterend on: ${e.id}`)},yd=e=>document.querySelector(`#${e}`);var bd=Object.freeze({__proto__:null,handleFinnBlinkOnlyPlacements:e=>B(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:n}}=m.get(),o=null==t?void 0:t.defaultThreshold[n];for(const t of e){const{requestThreshold:e,targetId:n}=t,i=yd(n);i&&(yield An(i,null!=e?e:o))}}),loadFinnBlinkAd:(e,t,n,o)=>B(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=m.get();if(l(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield md())||i)return n&&n(e),ld(e),void(!n&&q(e));try{yield rd(ad)}catch(e){console.error(e)}yield vd(e,t,n),o&&o()}),replaceAdsWithFinnBlink:(e,t)=>B(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];(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})()&&r&&a?(yield md())&&(yield rd(ad),r.forEach(([e,t])=>{const n=document.querySelector(`[id^="${e}"]`);if(!n)return;const o=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=m.get(),n=document.createElement("div"),o=document.createElement("div");return o.id=e,n.appendChild(o),Yo(t,o,Qo),l(`Creating blink container for: ${e}`),n})(t);(e=>{l(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(n),fd(n,o),n.dataset.finnBlinkId=t,En().withFullAdsChain(e)})):l(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)})});const wd=Yn("[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 xd=Object.freeze({__proto__:null,default:wd});const kd=Yn("[data-carousel-viewport]{position:relative;overflow:hidden;padding-bottom:4px;touch-action:pan-y;user-select:none}[data-carousel-track]{display:flex;gap:10px;will-change:transform}[data-carousel-track] [data-carousel-slide]:not(.is-active){opacity:.9;filter:saturate(0.72)}[data-carousel-track] .carousel-slide{flex:0 0 82%;margin:0;overflow:hidden;border:1px solid hsla(0,0%,100%,.68);border-radius:12px;box-shadow:#adadad 1px 1px 1px}[data-carousel-track] .carousel-slide .slide-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;pointer-events:none}");var Cd=Object.freeze({__proto__:null,default:kd});const Id=e=>e===Je.NO?"schibsted":"schibstedse";var Td=Object.freeze({__proto__:null,getCampaign:Id,loadNorstat:()=>B(void 0,void 0,void 0,function*(){const{norstat:{enabled:e}={},pageContext:{countryCode:t,isMobileApp:n},tcf:o}=m.get(),i=yield tt(o,n,t,"norstat");if(!e||n||!i)return;const r=(e=>{const{ppid1:t,ppid2:n}=sn.getPPIDs(),{ppid1:o,ppid2:i}=ln.getPPIDs(),r=(new dn).add(n,Zt[e]).add(t,en[e]).add(i,tn[e]).add(o,nn[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`})(t);((e,t,...n)=>{B(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/${Id(t)}/map/${r}`,"norstat")})});const Sd=".advertory-right-column-track",Ed="--advertory-right-column-track-height",Ad=e=>e.getBoundingClientRect().top+window.scrollY,Od=(e,t)=>`${e}-${t}`,Pd=(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=Ad(e);r.forEach(({point:e,originalIndex:t})=>{((e,t,n)=>{const o=Ad(e),i=Od(Ed,t),r=o-n,a=Od("--advertory-right-column-split-point-height",t),d=ar(e);dr({[i]:rr(r),[a]:rr(d)})})(e,t+1,a),(e=>{const t=null==e?void 0:e.id;if(!t)return;const n=Od("--advertory-right-column-ad-height",t),o=ar(e);dr({[n]:rr(o)})})(i[t])});((e,t)=>{const n=Ad(e)-t;dr({[Ed]:rr(n)})})(r[Math.min(i.length,r.length-1)].point,a)};let jd=!1;var $d=Object.freeze({__proto__:null,initRightColumnSplit:e=>{if(!(null==e?void 0:e.enabled)||jd)return;const{splitPointIDs:t,adSelector:n,trackSelector:o=Sd}=e,i=document.querySelector(o);if(!i)return;jd=!0;const r=()=>{Pd(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 Ld{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 _d{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const qd="[data-k5a-teaser-analytics]";class Nd extends ii{constructor(e,t,n,o){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=o}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(qd);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(qd);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){oi(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const o=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(o):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(o):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,o)}))}trackEngagement(e){var t,n;const o=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(o):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(o):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,o)}}class Fd extends Nd{getEventBaseData(){var e,t,n,o;const{clientName:i,creativeId:r,itemId:a,placement:d}=this.parseKilkayaData(),{primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),p=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:d,elementType:"Article",custom:{customer:i,creativeId:null!=r?r:a},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},placement:{primaryPosition:s,secondaryPosition:l,source:c},tags:null===(o=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===o?void 0:o.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class Md extends Nd{getEventBaseData(){var e,t;const{title:n="",clientName:o="",creativeId:i="",link:r="",itemId:a=""}=this.parseKilkayaData(),{columnName:d,primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u={publicUrl:r,urlPath:r?new URL(r).pathname:""},{publicUrl:p,urlPath:v}=r&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,r))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:d,primaryPosition:s,secondaryPosition:l,source:c},tags:[o,n,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:o,"spt:creativeId":i,pageTitle:n,publicUrl:p,urlPath:v},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}const Bd=/^glci_/,Rd="gender_",Dd="geo_",zd="male",Ud="female",Wd=()=>B(void 0,void 0,void 0,function*(){const e=[],t=yield B(void 0,void 0,void 0,function*(){try{const e=yield gd(),t=new hd(e),n=yield t.getIdentityUser(),{gender:o}=null!=n?n:{};return o===zd||o===Ud?`${Rd}${o}`:void 0}catch(e){return}}),n=(()=>{const e=Yt().map(e=>`${Dd}${e.replace(Bd,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class Hd{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Qa.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 Vd{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class Kd{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class Xd{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class Gd{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===Qa.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class Jd{transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class Yd{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:o}}){if(!(null==e?void 0:e.instance))return;const i={[mi.VG]:new Ld,[mi.E24]:new Hd,"no-aftenposten":new Vd,[mi.BT]:new Kd,"no-bergenstidende":new Kd,[mi.SA]:new Xd,"no-stavangeraftenblad":new Xd,[mi.SVD]:new Gd,[mi.AFTONBLADET]:new Jd}[n]||new _d;((e,t,n,o)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const r=o===Je.SE?new Md(e,i,t):new Fd(e,i,t,n);r.trackImpression(),i.addEventListener("click",()=>r.trackEngagement())})})(e.instance,i,t,o)}injectKilkayaMeta(e){return B(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield Wd();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(l(`Kilkaya event for slot: ${n}`),!n)return void l("Kilkaya slot empty, Xandr backfill won't be loaded");const o=n.parentElement;o?(l(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(o)):l("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="flex";const o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";N(o)}loadKilkayaScript(e){return B(this,void 0,void 0,function*(){yield mn(e)})}run(e){return B(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 tt(o,i,r,"kilkaya");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 Qd=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%"},"data-slot-tag":t},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=>B(void 0,void 0,void 0,function*(){const t=new Yd;yield t.run(e)})});const Zd=1e4,es=(e="widescreen")=>{const{pageSectionsSelectors:{right:t}={}}=m.get();if(!t)return[];return Array.from(document.querySelectorAll(t)).map(t=>Array.from(t.querySelectorAll(`div[id^="${e}"]`)))},ts=e=>e.some(e=>e.some(e=>!!e&&Rn(e,0)));let ns;var os=Object.freeze({__proto__:null,initWidescreenSwitching:()=>{const{widescreenSwitching:e}=m.get(),{enabled:t,options:{rotationInterval:n=Zd,widescreenIdPrefix:o}={}}=null!=e?e:{};if(!t)return;let i=es(o),r=0,a=Date.now(),d=ts(i);if(!i.length)return;ns&&window.removeEventListener("scroll",ns);const s=(e,t,n)=>{e.forEach(e=>{e&&e.style.setProperty(t,n)})},l=e=>1===e?0:1,c=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="")})};c(i);const u=((e,t)=>{let n=null;return(...o)=>{null===n&&(e(...o),n=setTimeout(()=>{n=null},t))}})(()=>{const e=es(o);((e,t)=>{const n=e.flat(),o=t.flat();return n.length===o.length&&n.every((e,t)=>e===o[t])})(e,i)||(i=e,r=0,a=Date.now(),c(i)),d||(d=ts(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);ns=u,window.addEventListener("scroll",u)}});const is="#fff",rs="#0098da",as=e=>"dark"===e,ds=(e,t,n,o)=>{if(!n)return;const i={[rt]:()=>{const{buttonLabel:o}=xt(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:"")})},[it]:()=>{const{themeColors:i,logotype:r,buttonLabel:a,showArrowIcon:d}=xt(n,t),s=((e,t)=>{var n,o,i,r;if(!e)return;const a=as(t)?e.darkMode:void 0;return{backgroundColor:null!==(o=null!==(n=null==a?void 0:a.backgroundColor)&&void 0!==n?n:e.backgroundColor)&&void 0!==o?o:is,color:null!==(r=null!==(i=null==a?void 0:a.color)&&void 0!==i?i:e.color)&&void 0!==r?r:rs}})(i,o),l=((e,t)=>{var n,o;if(!e)return;const i=as(t)?e.darkMode:void 0;return{url:null!==(n=null==i?void 0:i.url)&&void 0!==n?n:e.url,alt:null!==(o=null==i?void 0:i.alt)&&void 0!==o?o:e.alt}})(r,o);["#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!=a?a:""),".advertory-splash-close"===t&&!d){const e=n.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===t&&s&&(n.style.color=s.color),"#advertory-splash-logotype"===t&&l&&(n.setAttribute("src",l.url),n.setAttribute("alt",l.alt)),".advertory-splash-navbar-wrapper"===t&&s&&(n.style.setProperty("background-color",s.backgroundColor,"important"),n.style.color=s.color)}})},[at]:()=>{const{buttonLabel:o,showArrowIcon:i,showCloseButton:r=!0}=xt(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:""))})},[dt]:()=>{}};i[t]()},ss=(e,t=!0)=>{(e===rt||e===at)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},ls=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},cs=new WeakMap,us=(e,t,n)=>{var o;window.addEventListener(t,n),cs.set(e,[...null!==(o=cs.get(e))&&void 0!==o?o:[],()=>window.removeEventListener(t,n)])},ps=e=>{document.body.style.overflow=e?"initial":"hidden"},vs=e=>{(e=>{var t;null===(t=cs.get(e))||void 0===t||t.forEach(e=>e()),cs.delete(e)})(e),ls(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),ps(!0),e.style.display="none"},gs=e=>{const t=()=>vs(e);return us(e,"advertory:closeTakeover",t),ls(),t},hs=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&((e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&vs(e)};ls(),us(e,"keydown",t)})(e),gs(e),ls(),t.addEventListener("click",()=>{vs(e)}),ps(!1))},ms=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),gs(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},fs=e=>{(e=>{us(e,"advertory:closeTakeover",()=>vs(e))})(e)},ys=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=m.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=Sr.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},bs=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=Sr.no.adText,n.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},ws=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=Sr.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},xs=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=Sr.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},ks=()=>{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)},Cs=(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=ga(n),n};var Is=Object.freeze({__proto__:null,createTakeoverAd:e=>B(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:n}=m.get(),{targetId:o}=e,i=document.querySelector(`#${o}`),r=document.querySelector(".advertory-takeover-wrapper");if(!i||!r||!t)return;const a=yt(e),d=r.offsetHeight,s=window.scrollY>d;r.style.display="block",!s&&ss(a,!1),((e,t)=>{({[rt]:ws,[it]:ys,[at]:bs,[dt]:xs})[t](e)})(r,a),ks(),((e,t)=>{({[rt]:ms,[at]:ms,[it]:hs,[dt]:fs})[t](e)})(r,a),ds(r,a,t,null==n?void 0:n.theme),yield bt(),!s&&ss(a,!0),kt(e,a)}),modifyTakeoverAdContent:e=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=ua(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=ua(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Cs(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 Ts=(e,t)=>{t.left&&(e.style.left=t.left),t.marginLeft&&(e.style.marginLeft=t.marginLeft)},Ss=(e,t,n)=>{var o,i;const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:d}={},fullWidth:s,pageContext:{deviceType:l}}=m.get();if(!r)return null;const c=r.parentElement,u=Ot(l)||n;if(r.style.width=u?"100vw":"100%",r.style.position="relative",c&&(c.style.width=u?"100vw":"100%",c.style.position="relative"),a&&d){const e=`advertory-${a}-${d}`;r.classList.add(`${e}__${t}`),null==c||c.classList.add(`${e}-wrapper__${t}`)}const p=null===(i=null===(o=null==s?void 0:s.options)||void 0===o?void 0:o.styles)||void 0===i?void 0:i[l],v=(null==s?void 0:s.enabled)&&p;return!v&&c&&u&&(c.style.left="50%",c.style.marginLeft="-50vw"),v&&p.adContainer&&Ts(r,p.adContainer),v&&p.adContainerWrapper&&c&&Ts(c,p.adContainerWrapper),r},Es=(e,t,n,o,i)=>{var r;const a=Ss(e,o,i);if(!a)return void l("[Ad full width] adContainer not found");const d=a.querySelector("iframe"),s=null==d?void 0:d.parentElement;if(!d||!s)return void l("[Ad full width] iframe or iframeWrapper not found");const c=parseFloat(window.getComputedStyle(a,"::before").height)||0,u="undefined"!=typeof CSS&&CSS.supports("transform","scale(calc(100vw / 1080px))")?`calc(100vw / ${t}px)`:String((null===(r=null===document||void 0===document?void 0:document.documentElement)||void 0===r?void 0:r.clientWidth)/t);l(`[Ad full width] ratioWidth ${t}, ratioHeight ${n}, adObjWidth: ${e.width}, scaleFactor ${u}`),s.style.transform=`scale(${u})`,s.style.transformOrigin="left top",a.style.height=`calc(100vw / ${t} * ${n} + ${c}px)`};var As=Object.freeze({__proto__:null,applyFullsquareFormat:e=>{Es(e,1080,1080,"fullsquare-ad",!0)},applyFullwidthFormat:e=>{const t=Ss(e,"fullwidth-ad",!1);if(!t)return;const n=t.querySelector("iframe");if(!n)return;const{deviceType:o}=m.get().pageContext;n.style.width=Ot(o)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=Ot(o)?"100vw":"100%")},applyNinesixteenFormat:e=>{Es(e,1080,1920,"ninesixteen-ad",!0)}});Yn('.advertory-shared-ad-native-seamless{position:relative;overflow:hidden;border-radius:10px}.advertory-shared-ad-native-seamless .ad-info{position:absolute;top:0;right:0;z-index:1}.advertory-shared-ad-native-seamless .ad-info div[role=button]{top:0;right:0;left:auto;transform:none;background-color:hsla(0,0%,100%,.45);border-bottom-left-radius:13px}.advertory-shared-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-shared-ad-native-seamless .ad-link .ad-content{position:relative;min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:var(--color-background-secondary, #ffffff);color:var(--color-text-primary, #333)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header{padding:0 0 8px 10px;margin-right:18px;display:flex;justify-content:space-between;gap:50px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-logo{max-width:100%;max-height:40px;min-width:0;object-fit:contain;object-position:left center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons{flex-shrink:0;margin-left:auto;margin-right:5px;font-size:10px;font-weight:400;color:var(--color-text-primary, #333);white-space:nowrap;line-height:.7;text-transform:lowercase}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;max-width:100%;object-fit:cover}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel{display:flex;justify-content:center;align-items:center;width:100%}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel .carousel-window{width:calc(100% + 16px);min-width:calc(100% + 16px);mask-image:linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);-webkit-mask-image:linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, #000 5%, #000 95%, rgba(0, 0, 0, 0.5) 100%)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;min-width:0;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;overflow:hidden;min-width:0;font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-width:0;margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left;color:var(--color-text-secondary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase{display:flex;flex-direction:column;flex-shrink:0;align-items:center;gap:6px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price{font-size:13px;font-weight:500;white-space:nowrap}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price:empty{display:none}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:14px;line-height:1;color:var(--color-text-on-accent, #111111);white-space:nowrap;background-color:var(--color-accent, #d9d9d9);border-radius:99px;font-weight:500}');var Os=Object.freeze({__proto__:null});Yn('.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 Ps=Object.freeze({__proto__:null});module.exports=nd;