@schibsted/advertory 3.17.3 → 3.18.0-no-issue.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 (515) 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-BSLKw1Xg.js +1 -0
  8. package/aftenposten/es/{events-BakZyPiF.js → events-D0rJFnLl.js} +1 -1
  9. package/aftenposten/es/identity-facade-DZGlL3tc.js +1 -0
  10. package/aftenposten/es/{index-Y61-K0-j.js → index-BNmJRgDD.js} +1 -1
  11. package/aftenposten/es/{index-DE2eFbE4.js → index-BZlU53lb.js} +1 -1
  12. package/aftenposten/es/index-C7TL6Y90.js +1 -0
  13. package/aftenposten/es/{index-DmAryKai.js → index-CFR8RM1I.js} +1 -1
  14. package/aftenposten/es/index-DozZ5YfL.js +1 -0
  15. package/aftenposten/es/{index-B0weyrUI.js → index-KNcBrVhi.js} +1 -1
  16. package/aftenposten/es/{index-Ci5Fq3pY.js → index-fwMN0FmB.js} +1 -1
  17. package/aftenposten/es/{index-BqtiIE9j.js → index-zzOBBGJx.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-DXaafc97.js → styles-Bcvdd2ih.js} +1 -1
  21. package/aftenposten/es/{styles-pDM1TuiG.js → styles-Bq_a_zwN.js} +1 -1
  22. package/aftenposten/es/{styles-BMgTMPVA.js → styles-BuzkQncx.js} +1 -1
  23. package/aftenposten/es/{styles-BP8RnxXT.js → styles-CAqoQsmH.js} +1 -1
  24. package/aftenposten/es/{styles-DbkR_81Z.js → styles-CMSGViXB.js} +1 -1
  25. package/aftenposten/es/{styles-Dc-23vIm.js → styles-Csbi5LtY.js} +1 -1
  26. package/aftenposten/es/{styles-B3DQSVEX.js → styles-DTlG1rkd.js} +1 -1
  27. package/aftenposten/es/{styles-fSCaFYq3.js → styles-Dd1XEMSB.js} +1 -1
  28. package/aftenposten/es/{styles-DCGX00AR.js → styles-DzBxJNbO.js} +1 -1
  29. package/aftenposten/es/{styles-Cnb69FPt.js → styles-K4e_Bsu-.js} +1 -1
  30. package/aftenposten/es/{styles-w7N9sIkQ.js → styles-jMfnhHs0.js} +1 -1
  31. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-eW0Tj-86.js +1 -0
  32. package/aftenpostenv2/es/{events-vFxFcBFY.js → events-B57ZPzlV.js} +1 -1
  33. package/aftenpostenv2/es/identity-facade-DRU84hIh.js +1 -0
  34. package/aftenpostenv2/es/{index-BNsm3sza.js → index-8ri7Ah7M.js} +1 -1
  35. package/aftenpostenv2/es/index-BYLxjsYK.js +1 -0
  36. package/aftenpostenv2/es/{index-C6o6H3rD.js → index-CJncsN_g.js} +1 -1
  37. package/aftenpostenv2/es/{index-BORfNCfl.js → index-CUz28Djy.js} +1 -1
  38. package/aftenpostenv2/es/{index-CE3zyO-s.js → index-DeIk9SEz.js} +1 -1
  39. package/aftenpostenv2/es/index-DwwTTila.js +1 -0
  40. package/aftenpostenv2/es/{index-bu82MskF.js → index-OlVa3UOZ.js} +1 -1
  41. package/aftenpostenv2/es/{index-BzIPIQlR.js → index-U_DuLxfa.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-CpTRDnEr.js → styles-1a1q6Fza.js} +1 -1
  45. package/aftenpostenv2/es/{styles-CrKxUXak.js → styles-B_U7Jivg.js} +1 -1
  46. package/aftenpostenv2/es/{styles-C9KcvIrm.js → styles-B_yjOrqR.js} +1 -1
  47. package/aftenpostenv2/es/{styles-Bv3fC79e.js → styles-C-aL5phQ.js} +1 -1
  48. package/aftenpostenv2/es/{styles-Dod5Pact.js → styles-CG4vvtV9.js} +1 -1
  49. package/aftenpostenv2/es/{styles-D9mUlhzN.js → styles-CMjTRVdn.js} +1 -1
  50. package/aftenpostenv2/es/{styles-DGYGS77o.js → styles-D--S8ZYt.js} +1 -1
  51. package/aftenpostenv2/es/{styles-Bo1Osfh2.js → styles-D7VtjfY9.js} +1 -1
  52. package/aftenpostenv2/es/{styles-DSZABaqe.js → styles-DFmsJtRg.js} +1 -1
  53. package/aftenpostenv2/es/{styles-C3tA1qVG.js → styles-DJz5fJon.js} +1 -1
  54. package/aftenpostenv2/es/{styles-CfDUxRlT.js → styles-DbRHBa-t.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-DzJfveIH.js +1 -0
  58. package/aftonbladet/es/{events-CllJmzBm.js → events-CLqo_5jp.js} +1 -1
  59. package/aftonbladet/es/identity-facade-Bu7w6y6v.js +1 -0
  60. package/aftonbladet/es/{index-CNg6LTKO.js → index-AAClkgcV.js} +1 -1
  61. package/aftonbladet/es/{index-BMrgDbpw.js → index-BT2GliXc.js} +1 -1
  62. package/aftonbladet/es/{index-DxCSaps1.js → index-BoOGIht9.js} +1 -1
  63. package/aftonbladet/es/{index-BtWKibaA.js → index-C3qGijuV.js} +1 -1
  64. package/aftonbladet/es/index-CFKhJTAw.js +1 -0
  65. package/aftonbladet/es/{index-CQZ4fqal.js → index-CI9IWgu5.js} +1 -1
  66. package/aftonbladet/es/{index-DSWRH1Jg.js → index-C_92ZSVw.js} +1 -1
  67. package/aftonbladet/es/index-CuKbzwD0.js +1 -0
  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-B-AEvcJk.js} +1 -1
  71. package/aftonbladet/es/{styles-CYGn0uwQ.js → styles-BUyPl2bX.js} +1 -1
  72. package/aftonbladet/es/{styles-D9Tu4mQ5.js → styles-C9LWo_S0.js} +1 -1
  73. package/aftonbladet/es/{styles-w-g-y6lI.js → styles-CKc_4poW.js} +1 -1
  74. package/aftonbladet/es/{styles-DSuXLA-G.js → styles-CYEtgDUf.js} +1 -1
  75. package/aftonbladet/es/{styles-Ds_pdjCT.js → styles-D6iuvD9A.js} +1 -1
  76. package/aftonbladet/es/{styles-DajJqIJ6.js → styles-OmPPG7Zl.js} +1 -1
  77. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-BZ21pRtT.js +1 -0
  78. package/aftonbladetv2/es/{events-BTQYlE4z.js → events-P-6bz51N.js} +1 -1
  79. package/aftonbladetv2/es/identity-facade-V2oLaPxb.js +1 -0
  80. package/aftonbladetv2/es/{index-CI4mHGgl.js → index-BQ1FtYSL.js} +1 -1
  81. package/aftonbladetv2/es/index-BePGZPxi.js +1 -0
  82. package/aftonbladetv2/es/{index-DGryPq5p.js → index-BnXszEAO.js} +1 -1
  83. package/aftonbladetv2/es/{index-DLKbIJ-6.js → index-CIJ0eJHA.js} +1 -1
  84. package/aftonbladetv2/es/{index-BVz8_dGm.js → index-CXF_hMKo.js} +1 -1
  85. package/aftonbladetv2/es/index-CfKsGWHM.js +1 -0
  86. package/aftonbladetv2/es/{index-DKIljxtC.js → index-DYZbEnpk.js} +1 -1
  87. package/aftonbladetv2/es/{index-C5NPR1-m.js → index-IoQNkOq5.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-LIJqt1Fs.js → styles-5XDeV8kP.js} +1 -1
  91. package/aftonbladetv2/es/{styles-DNvKyAG2.js → styles-BUeULOg_.js} +1 -1
  92. package/aftonbladetv2/es/{styles-BuDgf6Qh.js → styles-Bk-tZ_86.js} +1 -1
  93. package/aftonbladetv2/es/{styles-BhGxCZKJ.js → styles-CfcsyvUn.js} +1 -1
  94. package/aftonbladetv2/es/{styles-Dm48yxHj.js → styles-Cuvt9NVk.js} +1 -1
  95. package/aftonbladetv2/es/{styles-BHjBufYm.js → styles-DzwVeq_R.js} +1 -1
  96. package/aftonbladetv2/es/{styles-CtZYGlVa.js → styles-WfmS1zaH.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-YPw6EK9c.js +1 -0
  102. package/bt/es/{events-QdGrCsME.js → events-BqdO7F-v.js} +1 -1
  103. package/bt/es/identity-facade-BxrdKNP3.js +1 -0
  104. package/bt/es/{index-CbsaLJJs.js → index-5NV6Id-a.js} +1 -1
  105. package/bt/es/index-BV7thma3.js +1 -0
  106. package/bt/es/{index-CWyqinTF.js → index-CPz0Rtav.js} +1 -1
  107. package/bt/es/{index-DE5oE3LU.js → index-CelNqJTz.js} +1 -1
  108. package/bt/es/{index-BNwzTf_4.js → index-CowC5LTm.js} +1 -1
  109. package/{sa/es/index-sAZnIVZD.js → bt/es/index-DKQsYmcj.js} +1 -1
  110. package/bt/es/{index-BPq3-G1u.js → index-DmxHgtan.js} +1 -1
  111. package/bt/es/index-DnIZsYRD.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-K_Cy-GX8.js → styles-3SffQcli.js} +1 -1
  115. package/bt/es/{styles-D0rpulrE.js → styles-BQGuvSt9.js} +1 -1
  116. package/bt/es/{styles-Dz_mjOky.js → styles-BTEiuCvF.js} +1 -1
  117. package/bt/es/{styles-CGeziON4.js → styles-BZOKCz5Y.js} +1 -1
  118. package/{vg/es/styles-DO48QaHN.js → bt/es/styles-BtHfvg1W.js} +1 -1
  119. package/bt/es/{styles-B_CfTWpC.js → styles-C-rfKwBu.js} +1 -1
  120. package/bt/es/{styles-DUX9_U_G.js → styles-CKDPQFfi.js} +1 -1
  121. package/bt/es/{styles-C-HKDal6.js → styles-CxJ05a5O.js} +1 -1
  122. package/bt/es/{styles-DpUy4TjI.js → styles-Dbb83B8Q.js} +1 -1
  123. package/{sa/es/styles-BGNGJdjv.js → bt/es/styles-oh2MhMvv.js} +1 -1
  124. package/btv2/es/_auto-entry_btv2-Dzz8nW07.js +1 -0
  125. package/{sav2/es/events--V9H3X-z.js → btv2/es/events-BlwEhF7e.js} +1 -1
  126. package/btv2/es/identity-facade-BM8zcXH6.js +1 -0
  127. package/btv2/es/{index-DQCYe43A.js → index-3PQirgJe.js} +1 -1
  128. package/btv2/es/{index-p-Wu9qmN.js → index-BUBPyKw1.js} +1 -1
  129. package/btv2/es/index-BdhJu99J.js +1 -0
  130. package/{omni/es/index-C3Q814r2.js → btv2/es/index-Bom8NBOK.js} +1 -1
  131. package/btv2/es/index-Br22eADp.js +1 -0
  132. package/btv2/es/{index-4ysd4A7K.js → index-DOkh8bIl.js} +1 -1
  133. package/{sav2/es/index-D4Hxkads.js → btv2/es/index-DzdiKRh1.js} +1 -1
  134. package/btv2/es/{index-_1WEzNOh.js → index-JrtnXHeD.js} +1 -1
  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-3cauQdYd.js} +1 -1
  138. package/{sav2/es/styles-WFP5Fozc.js → btv2/es/styles-B1WPciuI.js} +1 -1
  139. package/{sav2/es/styles-jXzGh7gC.js → btv2/es/styles-BS6T0Gpl.js} +1 -1
  140. package/{vgv2/es/styles-DtKJ-J7F.js → btv2/es/styles-Bu7yfTUb.js} +1 -1
  141. package/btv2/es/{styles-DyFP9zsK.js → styles-CMVDCi0o.js} +1 -1
  142. package/btv2/es/{styles-DAHadlhX.js → styles-CUmgAXg4.js} +1 -1
  143. package/btv2/es/{styles-Bc9_7msJ.js → styles-D4y9-7d0.js} +1 -1
  144. package/btv2/es/{styles-B8bkA3_5.js → styles-DlkRY97f.js} +1 -1
  145. package/{sav2/es/styles-CpXnuTL4.js → btv2/es/styles-kLgaN5Uc.js} +1 -1
  146. package/btv2/styles.css +1 -1
  147. package/common/cjs/index.js +1 -1
  148. package/common/es/index.js +1 -1
  149. package/e24/es/_auto-entry_e24-CdL8iGCu.js +1 -0
  150. package/e24/es/{events-CtniS6m3.js → events-CyX5lAkU.js} +1 -1
  151. package/e24/es/{index-Ci-qNYB_.js → index-BB8IhlCX.js} +1 -1
  152. package/e24/es/{index-4Zm0Grmh.js → index-Bi2JYFsB.js} +1 -1
  153. package/e24/es/index-CS8HMRkw.js +1 -0
  154. package/e24/es/{index-CfS9YWLe.js → index-DSvlzD-u.js} +1 -1
  155. package/e24/es/index-DbmHMqev.js +1 -0
  156. package/e24/es/{index-BM2r1wLq.js → index-DtQfz7O9.js} +1 -1
  157. package/e24/es/{index-DKfGdWTL.js → index-rNmwmqN8.js} +1 -1
  158. package/e24/es/{index-CIlYOp5N.js → index-uw2DYc9O.js} +1 -1
  159. package/e24/es/index.d.ts +25 -4
  160. package/e24/es/index.js +1 -1
  161. package/e24/es/{styles-DnRAFVxv.js → styles--2cOTNRY.js} +1 -1
  162. package/e24/es/{styles-C-oO0oDe.js → styles-B1EDpuuc.js} +1 -1
  163. package/e24/es/{styles-DmMYkAFs.js → styles-BHaQxmvc.js} +1 -1
  164. package/e24/es/{styles-SNZbYMgv.js → styles-Bgn1bBFG.js} +1 -1
  165. package/e24/es/{styles-DzEznh_S.js → styles-CCx9HVgR.js} +1 -1
  166. package/e24/es/{styles-D7w8P_5v.js → styles-D-cEuT4x.js} +1 -1
  167. package/e24/es/{styles-CezDMrIZ.js → styles-DAJAGNR-.js} +1 -1
  168. package/e24/es/{styles-CYk14rdS.js → styles-DCODomyM.js} +1 -1
  169. package/e24/es/{styles-BHKszP6X.js → styles-DgSiteRq.js} +1 -1
  170. package/e24/es/{styles-CzB5N6Nl.js → styles-DijLyAOq.js} +1 -1
  171. package/e24/es/{styles-DcGRyDQP.js → styles-S5EsrstE.js} +1 -1
  172. package/{tv4/es/styles-BAxYdJA1.js → e24/es/styles-dAfmFE7Z.js} +1 -1
  173. package/editory/cjs/index.d.ts +6 -1
  174. package/editory/es/index.d.ts +6 -1
  175. package/fotbollskanalen/cjs/index.d.ts +25 -4
  176. package/fotbollskanalen/cjs/index.js +1 -1
  177. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-ZAYeBchk.js +1 -0
  178. package/fotbollskanalen/es/{events-BJ6mPaCc.js → events-Cg-H8EFi.js} +1 -1
  179. package/fotbollskanalen/es/identity-facade-XNzchxjg.js +1 -0
  180. package/fotbollskanalen/es/{index-K_6o99m1.js → index-BpR_FtLo.js} +1 -1
  181. package/fotbollskanalen/es/{index-DCPogE5b.js → index-C1QTgyJO.js} +1 -1
  182. package/fotbollskanalen/es/{index-hYl9FgdN.js → index-CInMrMly.js} +1 -1
  183. package/fotbollskanalen/es/{index-CcCWGFRI.js → index-CwjXPmD_.js} +1 -1
  184. package/fotbollskanalen/es/index-DFa19_Br.js +1 -0
  185. package/fotbollskanalen/es/{index-YD7CRD4F.js → index-DbMRjYKk.js} +1 -1
  186. package/fotbollskanalen/es/{index-Cg7_oqDR.js → index-j41BuNPO.js} +1 -1
  187. package/fotbollskanalen/es/index-xIGv75Bo.js +1 -0
  188. package/fotbollskanalen/es/index.d.ts +25 -4
  189. package/fotbollskanalen/es/index.js +1 -1
  190. package/fotbollskanalen/es/{styles-BDfacPqd.js → styles-B6iwDOgB.js} +1 -1
  191. package/fotbollskanalen/es/{styles-BsW1z6U1.js → styles-By90k_j2.js} +1 -1
  192. package/fotbollskanalen/es/{styles-D3eqs7xM.js → styles-D3AaHbOq.js} +1 -1
  193. package/fotbollskanalen/es/{styles-2f9vh7tO.js → styles-GzWrogEy.js} +1 -1
  194. package/fotbollskanalen/es/{styles-Cze8UsvM.js → styles-SxQegz5R.js} +1 -1
  195. package/glimr/cjs/index.js +1 -1
  196. package/glimr/es/index.js +1 -1
  197. package/godt/cjs/index.d.ts +25 -4
  198. package/godt/cjs/index.js +1 -1
  199. package/kilkaya/cjs/index.d.ts +6 -1
  200. package/kilkaya/cjs/index.js +1 -1
  201. package/kilkaya/es/index.d.ts +6 -1
  202. package/kilkaya/es/index.js +1 -1
  203. package/klart/cjs/index.d.ts +25 -4
  204. package/klart/cjs/index.js +1 -1
  205. package/koket/cjs/index.d.ts +25 -4
  206. package/koket/cjs/index.js +1 -1
  207. package/koket/es/_auto-entry_koket-CXwMX-_Y.js +1 -0
  208. package/koket/es/{events-CJgWZC6E.js → events-hKS6MuIf.js} +1 -1
  209. package/koket/es/identity-facade-DxQ-9tPb.js +1 -0
  210. package/koket/es/{index-FpW7qdqo.js → index-B3vUbpG0.js} +1 -1
  211. package/koket/es/{index-BO7-UQcf.js → index-BXC7r0VK.js} +1 -1
  212. package/koket/es/{index-DOXR-6vM.js → index-BlsqtEAh.js} +1 -1
  213. package/koket/es/index-CIj84274.js +1 -0
  214. package/koket/es/index-COjfUtvZ.js +1 -0
  215. package/koket/es/{index-Bc3NO9Mw.js → index-CyBnbbbK.js} +1 -1
  216. package/koket/es/{index-B4K9iUVT.js → index-DDVgXVNY.js} +1 -1
  217. package/koket/es/{index-C2olyB1x.js → index-DXW3zqJn.js} +1 -1
  218. package/koket/es/index.d.ts +25 -4
  219. package/koket/es/index.js +1 -1
  220. package/koket/es/{styles-BBI31SR8.js → styles-0cerry7Q.js} +1 -1
  221. package/koket/es/{styles-BRxC9raX.js → styles-B60QvG1y.js} +1 -1
  222. package/koket/es/{styles-BwESZmQi.js → styles-CUv7o2LU.js} +1 -1
  223. package/{svdv2/es/styles-CzsWVNYE.js → koket/es/styles-DB--0DgB.js} +1 -1
  224. package/{svdv2/es/styles-CGWD917e.js → koket/es/styles-GCe2hwjD.js} +1 -1
  225. package/minmote/cjs/index.d.ts +25 -4
  226. package/minmote/cjs/index.js +1 -1
  227. package/mtv/es/_auto-entry_mtv-Dm9h0OXG.js +1 -0
  228. package/mtv/es/identity-facade-BDgfOQc7.js +1 -0
  229. package/mtv/es/index-B4gdrOep.js +1 -0
  230. package/mtv/es/index-CE2pVz6T.js +1 -0
  231. package/mtv/es/index-CSWeeKp6.js +1 -0
  232. package/mtv/es/{index-B3fi7Kjz.js → index-DS9ST2th.js} +1 -1
  233. package/mtv/es/index.d.ts +27 -6
  234. package/mtv/es/index.js +1 -1
  235. package/{svd/es/styles-Ili64SUo.js → mtv/es/styles-tHbDQzyN.js} +1 -1
  236. package/omni/es/_auto-entry_omni-Bx6WfXpq.js +1 -0
  237. package/omni/es/{events-D8oXnK9A.js → events-BBcm6M75.js} +1 -1
  238. package/omni/es/identity-facade-1DPGSE_n.js +1 -0
  239. package/{btv2/es/index-BxQ9QWgL.js → omni/es/index-0Am7GGAF.js} +1 -1
  240. package/omni/es/{index-CQHXVyOc.js → index-70uymDR9.js} +1 -1
  241. package/omni/es/{index-DoI3bFIC.js → index-BNideBO7.js} +1 -1
  242. package/omni/es/{index-B1CsqT1v.js → index-DE5AXF-v.js} +1 -1
  243. package/omni/es/{index-Do_Anxwk.js → index-DGy8VEBr.js} +1 -1
  244. package/omni/es/index-DIv1IPaQ.js +1 -0
  245. package/omni/es/{index-oYzDmTix.js → index-DNDfCBm6.js} +1 -1
  246. package/omni/es/index-Dt1NK8Ss.js +1 -0
  247. package/omni/es/index.d.ts +25 -4
  248. package/omni/es/index.js +1 -1
  249. package/omni/es/{styles-DmYIWMWw.js → styles-DIve4Ul1.js} +1 -1
  250. package/omni/es/{styles-QXlcLvKz.js → styles-J2Ld-YbD.js} +1 -1
  251. package/omni/es/{styles-Dh_pACB9.js → styles-c_v5G3XH.js} +1 -1
  252. package/package.json +1 -1
  253. package/pent/cjs/index.d.ts +25 -4
  254. package/pent/cjs/index.js +1 -1
  255. package/pulse/cjs/index.d.ts +8 -3
  256. package/pulse/cjs/index.js +1 -1
  257. package/pulse/es/index.d.ts +8 -3
  258. package/pulse/es/index.js +1 -1
  259. package/sa/cjs/index.d.ts +25 -4
  260. package/sa/cjs/index.js +1 -1
  261. package/sa/es/_auto-entry_sa-CoYr2wkG.js +1 -0
  262. package/sa/es/{events-DJlxmoyQ.js → events-C8OLZhCj.js} +1 -1
  263. package/sa/es/identity-facade-Yo4OS-Ma.js +1 -0
  264. package/{bt/es/index-BEn9Oc7O.js → sa/es/index-8y8qvcIi.js} +1 -1
  265. package/sa/es/index-C9N76yjh.js +1 -0
  266. package/sa/es/{index-CwXblevG.js → index-CnZr7WC8.js} +1 -1
  267. package/sa/es/{index-D-jh7EcB.js → index-D1HLA_xi.js} +1 -1
  268. package/sa/es/{index-DdxQE4LO.js → index-DdovfiMB.js} +1 -1
  269. package/sa/es/{index-BBpzoo6q.js → index-DxS_JZBl.js} +1 -1
  270. package/sa/es/{index-BQQH0v-V.js → index-DyPxPCPC.js} +1 -1
  271. package/sa/es/index-ghMTtpxz.js +1 -0
  272. package/sa/es/index.d.ts +25 -4
  273. package/sa/es/index.js +1 -1
  274. package/sa/es/{styles-BbYBBoEu.js → styles--IX8mrKS.js} +1 -1
  275. package/sa/es/{styles-CxMgRiB0.js → styles-0K__2oY0.js} +1 -1
  276. package/sa/es/{styles-CsqrQMUa.js → styles-BKGI4rlW.js} +1 -1
  277. package/{vg/es/styles-CA2O0zNt.js → sa/es/styles-CBf8n3vj.js} +1 -1
  278. package/{vg/es/styles-BvJq1DbU.js → sa/es/styles-CCjbWu7e.js} +1 -1
  279. package/sa/es/{styles-CR2l0VPi.js → styles-CIsXdbP0.js} +1 -1
  280. package/sa/es/{styles-BqoJN48z.js → styles-CqzKd4wr.js} +1 -1
  281. package/sa/es/{styles-COBYxap6.js → styles-DE6lD32b.js} +1 -1
  282. package/sa/es/{styles-dtFf-QzC.js → styles-DozxCQZl.js} +1 -1
  283. package/sa/es/{styles-CZbGc4JN.js → styles-Hv__KXr_.js} +1 -1
  284. package/sav2/es/_auto-entry_sav2-Cy98aDYC.js +1 -0
  285. package/{tvnu/es/events-CYIyY_O8.js → sav2/es/events-C_-fbFPh.js} +1 -1
  286. package/sav2/es/identity-facade-D0wXHN-B.js +1 -0
  287. package/sav2/es/{index-BHVPw0uA.js → index--w4nU53f.js} +1 -1
  288. package/{tvnu/es/index-D53Lfqpz.js → sav2/es/index-BoJ9_rkJ.js} +1 -1
  289. package/sav2/es/{index-Cfn4EpE3.js → index-BrHzWbge.js} +1 -1
  290. package/sav2/es/index-Chg9CBk4.js +1 -0
  291. package/sav2/es/{index-DU69N01e.js → index-CjxcfoPN.js} +1 -1
  292. package/sav2/es/{index-DVdqEzgu.js → index-DsjCytax.js} +1 -1
  293. package/{tvnu/es/index-n2OqZE3x.js → sav2/es/index-iKkW8NKE.js} +1 -1
  294. package/sav2/es/index-vBox8QiC.js +1 -0
  295. package/sav2/es/index.d.ts +25 -4
  296. package/sav2/es/index.js +1 -1
  297. package/sav2/es/{styles-ZhK4-day.js → styles-5z54iYeJ.js} +1 -1
  298. package/sav2/es/{styles-F7jUJjJn.js → styles-BWgP9yxJ.js} +1 -1
  299. package/{btv2/es/styles-DucQJHxT.js → sav2/es/styles-CQ3OjztN.js} +1 -1
  300. package/sav2/es/{styles-CEF-0mza.js → styles-CafWhWwT.js} +1 -1
  301. package/sav2/es/{styles-C4-rOm8X.js → styles-CrGtd6ju.js} +1 -1
  302. package/{vgv2/es/styles-BZNQ1vE8.js → sav2/es/styles-DWoCcJA8.js} +1 -1
  303. package/{btv2/es/styles-D8oEO915.js → sav2/es/styles-F42TmTdo.js} +1 -1
  304. package/sav2/es/{styles-CFf2Ku9c.js → styles-TC4FTn6V.js} +1 -1
  305. package/{vgv2/es/styles-BZDzqgQY.js → sav2/es/styles-_Erf_Bmp.js} +1 -1
  306. package/svd/cjs/index.d.ts +25 -4
  307. package/svd/cjs/index.js +1 -1
  308. package/svd/es/_auto-entry_svd-lr3axXeM.js +1 -0
  309. package/svd/es/{events-CXoatmpv.js → events-BbHwpkRL.js} +1 -1
  310. package/svd/es/identity-facade-MZlSBLNg.js +1 -0
  311. package/svd/es/{index-UhMbVarR.js → index-C2KRDfJL.js} +1 -1
  312. package/svd/es/index-CBcU_95V.js +1 -0
  313. package/svd/es/index-CHLd3RXX.js +1 -0
  314. package/svd/es/{index-BMn-d7Z_.js → index-DCT0USOB.js} +1 -1
  315. package/svd/es/{index-BXR4R0DG.js → index-DUseYORc.js} +1 -1
  316. package/svd/es/{index-KSUkz5Ec.js → index-Dbmg9gw3.js} +1 -1
  317. package/svd/es/{index-DonfcwIE.js → index-DuRrJeKI.js} +1 -1
  318. package/svd/es/{index-ntuGyR2_.js → index-xSf9CwM2.js} +1 -1
  319. package/svd/es/index.d.ts +25 -4
  320. package/svd/es/index.js +1 -1
  321. package/svd/es/{styles-xB_mBaye.js → styles-B-QCdJxn.js} +1 -1
  322. package/svd/es/{styles-BsUvk2WV.js → styles-BJoJorUo.js} +1 -1
  323. package/svd/es/{styles-CzzKpKOY.js → styles-BV8TCmeE.js} +1 -1
  324. package/svd/es/{styles-B6N0NAK1.js → styles-BYzjzbFn.js} +1 -1
  325. package/{mtv/es/styles-Cfow3icP.js → svd/es/styles-C7zCSF3R.js} +1 -1
  326. package/svd/es/{styles-2098DKtE.js → styles-CeKYTqbB.js} +1 -1
  327. package/svd/es/{styles-BHFhjoVx.js → styles-DtD9E4fP.js} +1 -1
  328. package/svdv2/es/_auto-entry_svdv2-CkW54HrU.js +1 -0
  329. package/svdv2/es/{events-rieoT5HD.js → events-MRZPzIUC.js} +1 -1
  330. package/svdv2/es/identity-facade-4NIXplAZ.js +1 -0
  331. package/svdv2/es/{index-C6jaff-U.js → index-3zUMkJka.js} +1 -1
  332. package/svdv2/es/{index-SZHJspYo.js → index-C4o4l1aQ.js} +1 -1
  333. package/svdv2/es/{index-B82Dt7Y9.js → index-Cg-ZFH8S.js} +1 -1
  334. package/svdv2/es/index-DJCnLMIo.js +1 -0
  335. package/svdv2/es/{index-BSzaY9HS.js → index-DQaCE8Bt.js} +1 -1
  336. package/svdv2/es/{index-j0sWy6XQ.js → index-D_v9e27X.js} +1 -1
  337. package/svdv2/es/index-f6Fnj00b.js +1 -0
  338. package/svdv2/es/{index-B7VeIIa1.js → index-wo1MesCr.js} +1 -1
  339. package/svdv2/es/index.d.ts +25 -4
  340. package/svdv2/es/index.js +1 -1
  341. package/svdv2/es/{styles-BPY37MKL.js → styles-BPOriXfz.js} +1 -1
  342. package/svdv2/es/{styles-CaHsrPmd.js → styles-BTdtZpgf.js} +1 -1
  343. package/svdv2/es/{styles-DR0vrRzH.js → styles-C90SP4Yt.js} +1 -1
  344. package/svdv2/es/{styles-BPhm6VCm.js → styles-D5Q2ZEga.js} +1 -1
  345. package/{koket/es/styles-Dnaf1zGg.js → svdv2/es/styles-DreMYT3q.js} +1 -1
  346. package/svdv2/es/{styles-c1jdK7Es.js → styles-DzzsvWQ9.js} +1 -1
  347. package/{koket/es/styles-CH1-lHKr.js → svdv2/es/styles-fpxbfgbv.js} +1 -1
  348. package/svdv2/es/{styles-CPISTY9o.js → styles-vaw6u59x.js} +1 -1
  349. package/tek/cjs/index.d.ts +25 -4
  350. package/tek/cjs/index.js +1 -1
  351. package/tv4/cjs/index.d.ts +25 -4
  352. package/tv4/cjs/index.js +1 -1
  353. package/tv4/es/_auto-entry_tv4-rdhABNDl.js +1 -0
  354. package/{mtv/es/events-GqbgSzdx.js → tv4/es/events-DcQyzCDB.js} +1 -1
  355. package/tv4/es/identity-facade-DzOFRv6y.js +1 -0
  356. package/tv4/es/{index-kMw82AyQ.js → index-BAY4XaIt.js} +1 -1
  357. package/tv4/es/{index-Ba-gl0fE.js → index-BwhD0fMd.js} +1 -1
  358. package/tv4/es/index-C2PUBKda.js +1 -0
  359. package/tv4/es/{index-CLlZ_nvb.js → index-C4aDc8p4.js} +1 -1
  360. package/tv4/es/{index-BPFUDpOI.js → index-D5nOYYeg.js} +1 -1
  361. package/tv4/es/{index-But-X6-M.js → index-D6sTjdW-.js} +1 -1
  362. package/tv4/es/{index-DsO94JLJ.js → index-DnbLPLnp.js} +1 -1
  363. package/tv4/es/index-DrEoXAG5.js +1 -0
  364. package/tv4/es/index.d.ts +25 -4
  365. package/tv4/es/index.js +1 -1
  366. package/tv4/es/{styles-ClhVmvvn.js → styles-BMmEcePP.js} +1 -1
  367. package/tv4/es/{styles-BOhTEsfH.js → styles-BiCf_1HC.js} +1 -1
  368. package/tv4/es/{styles-CiQyajrm.js → styles-BnKLO7aV.js} +1 -1
  369. package/{e24/es/styles-U3ev4vZ7.js → tv4/es/styles-BzPkv7wN.js} +1 -1
  370. package/tv4/es/{styles-DyGJ5lUA.js → styles-tJ5kkopi.js} +1 -1
  371. package/tvnu/cjs/index.d.ts +25 -4
  372. package/tvnu/cjs/index.js +1 -1
  373. package/tvnu/es/_auto-entry_tvnu-CUkywQg3.js +1 -0
  374. package/{btv2/es/events-D6P6hD23.js → tvnu/es/events-BbpSRc6-.js} +1 -1
  375. package/tvnu/es/identity-facade-tB1g4IhC.js +1 -0
  376. package/tvnu/es/index-B6EvuPX8.js +1 -0
  377. package/tvnu/es/{index-DLpVVZf_.js → index-BGkgrZ5g.js} +1 -1
  378. package/tvnu/es/index-BQHRgQUR.js +1 -0
  379. package/{btv2/es/index-bR4EjUyv.js → tvnu/es/index-Biw5puEx.js} +1 -1
  380. package/{sav2/es/index-BgJctlWz.js → tvnu/es/index-BmP5XN_T.js} +1 -1
  381. package/tvnu/es/{index-CgR2vaLd.js → index-CQEPu_b4.js} +1 -1
  382. package/tvnu/es/{index-DPea4ItP.js → index-DBOg71l9.js} +1 -1
  383. package/tvnu/es/{index-pN42MHkO.js → index-V4tD_aHC.js} +1 -1
  384. package/tvnu/es/index.d.ts +25 -4
  385. package/tvnu/es/index.js +1 -1
  386. package/tvnu/es/{styles-tV1z1GZ_.js → styles-C0iOteFJ.js} +1 -1
  387. package/tvnu/es/{styles-BYv3c9cw.js → styles-CGAFlev7.js} +1 -1
  388. package/{btv2/es/styles-CtL-yllF.js → tvnu/es/styles-DBdaKw7R.js} +1 -1
  389. package/tvnu/es/{styles-Blkyvqh4.js → styles-JLJPJ0x7.js} +1 -1
  390. package/types/index.d.ts +6 -1
  391. package/vg/cjs/index.d.ts +25 -4
  392. package/vg/cjs/index.js +1 -1
  393. package/vg/es/_auto-entry_vg-h4AYYA_Z.js +1 -0
  394. package/vg/es/{events-BqQucSf6.js → events-BicJivuO.js} +1 -1
  395. package/vg/es/{index-DAAjvi1C.js → index-Bfy_FwMJ.js} +1 -1
  396. package/vg/es/{index-CsWAXOq-.js → index-Bu_m_Swq.js} +1 -1
  397. package/vg/es/{index-BcaL6jsh.js → index-BwtBcxNd.js} +1 -1
  398. package/vg/es/index-CPON6rRm.js +1 -0
  399. package/vg/es/{index-BSPaei4i.js → index-CaKFWmbp.js} +1 -1
  400. package/vg/es/{index-bCzcmyfy.js → index-Dc-YvkjI.js} +1 -1
  401. package/vg/es/{index-C2UHtfj_.js → index-DdnZfqE6.js} +1 -1
  402. package/vg/es/index-yU_j025r.js +1 -0
  403. package/vg/es/index.d.ts +25 -4
  404. package/vg/es/index.js +1 -1
  405. package/{bt/es/styles-B188diER.js → vg/es/styles-B3RjYpJl.js} +1 -1
  406. package/vg/es/{styles-DFInM_03.js → styles-BGNbynCA.js} +1 -1
  407. package/vg/es/{styles-CYzyLEV0.js → styles-BZCsPNnk.js} +1 -1
  408. package/vg/es/{styles-C51lw1yU.js → styles-BcaAa78S.js} +1 -1
  409. package/vg/es/{styles-CciYrbs8.js → styles-Bzz1OazM.js} +1 -1
  410. package/vg/es/{styles-TZp4Js-a.js → styles-CI5MJkws.js} +1 -1
  411. package/vg/es/{styles-D9qbS1Gw.js → styles-CLyKnENd.js} +1 -1
  412. package/{sa/es/styles-CwbbNFdE.js → vg/es/styles-CMQNq4H2.js} +1 -1
  413. package/vg/es/{styles-CoLiVlSG.js → styles-CWPhPdCz.js} +1 -1
  414. package/vg/es/{styles-Ddh-HkO8.js → styles-DIyxd9ao.js} +1 -1
  415. package/vg/es/{styles-CIvA8Doz.js → styles-DPhaDQXQ.js} +1 -1
  416. package/vg/es/{styles-CdpkwzOZ.js → styles-DpVcfJjk.js} +1 -1
  417. package/vg/es/{styles-Ce4iBXFA.js → styles-QFnZ9rTC.js} +1 -1
  418. package/vg/es/{styles-B0hflLDs.js → styles-d50AwbT8.js} +1 -1
  419. package/{bt/es/styles-Djjc7UzY.js → vg/es/styles-pYUtVa72.js} +1 -1
  420. package/vg/es/{styles-CSIB_T1c.js → styles-q6Bgg1_i.js} +1 -1
  421. package/vgv2/es/_auto-entry_vgv2-B8DDnfco.js +1 -0
  422. package/vgv2/es/events-CEqbeFgK.js +1 -0
  423. package/vgv2/es/{index-BMvVZ3PU.js → index-BnM0gKrw.js} +1 -1
  424. package/vgv2/es/{index-OzkyZrFL.js → index-BnThtJUT.js} +1 -1
  425. package/vgv2/es/{index-I-HW65_x.js → index-C8b1RVeS.js} +1 -1
  426. package/vgv2/es/index-CAZJTTKq.js +1 -0
  427. package/vgv2/es/{index-BAnN0RdP.js → index-Ch-pLVap.js} +1 -1
  428. package/vgv2/es/{index-DQGn1tXh.js → index-D6Dy43nw.js} +1 -1
  429. package/vgv2/es/{index-CVGQqZVE.js → index-DlzhTY7y.js} +1 -1
  430. package/vgv2/es/index-Dq3vN_5b.js +1 -0
  431. package/vgv2/es/index.d.ts +25 -4
  432. package/vgv2/es/index.js +1 -1
  433. package/vgv2/es/{styles-dPSL7ERU.js → styles-35K7HvPw.js} +1 -1
  434. package/vgv2/es/{styles-Cualb3_D.js → styles-5fLX_qVR.js} +1 -1
  435. package/{sav2/es/styles-DMF9Z1dt.js → vgv2/es/styles-BPYwlTDK.js} +1 -1
  436. package/vgv2/es/{styles-F0n6XlmZ.js → styles-BPaGf62-.js} +1 -1
  437. package/vgv2/es/{styles-BgSFy8jC.js → styles-BZc7M3fn.js} +1 -1
  438. package/vgv2/es/{styles-CCY1tyd6.js → styles-C2gmGQDk.js} +1 -1
  439. package/vgv2/es/styles-CIUF0T9Y.js +1 -0
  440. package/vgv2/es/{styles-YZ88G27K.js → styles-CmWWBQgs.js} +1 -1
  441. package/vgv2/es/{styles-CtTqdZis.js → styles-CnuC_flw.js} +1 -1
  442. package/vgv2/es/{styles-V8Y9NY4R.js → styles-Dh89IOjs.js} +1 -1
  443. package/vgv2/es/{styles--uVNPccL.js → styles-DiKRLC-p.js} +1 -1
  444. package/{btv2/es/styles-BIEV_UDm.js → vgv2/es/styles-Hs9z-Fef.js} +1 -1
  445. package/vgv2/es/{styles-DhnA4Y2g.js → styles-Pp8beqZR.js} +1 -1
  446. package/vgv2/es/{styles-wF0dHoty.js → styles-X-S1OCEX.js} +1 -1
  447. package/vgv2/es/{styles-DOZIdQKO.js → styles-tev_KphM.js} +1 -1
  448. package/{tvnu/es/styles-DgLNK3GP.js → vgv2/es/styles-yz--rZeU.js} +1 -1
  449. package/video/cjs/index.js +1 -1
  450. package/video/es/index.js +1 -1
  451. package/aftenposten/es/_auto-entry_aftenposten-VdgcR_BE.js +0 -1
  452. package/aftenposten/es/index-DP0BbbWJ.js +0 -1
  453. package/aftenposten/es/index-PdNwftJA.js +0 -1
  454. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BIMCdj2e.js +0 -1
  455. package/aftenpostenv2/es/index-6k3Y32Fw.js +0 -1
  456. package/aftenpostenv2/es/index-DPqkphHW.js +0 -1
  457. package/aftonbladet/es/_auto-entry_aftonbladet-D2fIitz4.js +0 -1
  458. package/aftonbladet/es/index-C1IqSowz.js +0 -1
  459. package/aftonbladet/es/index-CFu2vZ67.js +0 -1
  460. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-3dTEWOlI.js +0 -1
  461. package/aftonbladetv2/es/index-BVirA6E3.js +0 -1
  462. package/aftonbladetv2/es/index-DB2zWF2S.js +0 -1
  463. package/bt/es/_auto-entry_bt-CvnjeTKS.js +0 -1
  464. package/bt/es/index-5orz6iDE.js +0 -1
  465. package/bt/es/index-B4s9DYHb.js +0 -1
  466. package/btv2/es/_auto-entry_btv2-Dvycsb0N.js +0 -1
  467. package/btv2/es/index-CYUq8h41.js +0 -1
  468. package/btv2/es/index-wU5-fkkY.js +0 -1
  469. package/e24/es/_auto-entry_e24-EmoPFNdZ.js +0 -1
  470. package/e24/es/index-BHxQeiJc.js +0 -1
  471. package/e24/es/index-C4omnW1M.js +0 -1
  472. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DntxanXt.js +0 -1
  473. package/fotbollskanalen/es/index-8KLTEqRi.js +0 -1
  474. package/fotbollskanalen/es/index-BMDVF1u1.js +0 -1
  475. package/koket/es/_auto-entry_koket-a4ea-7Qw.js +0 -1
  476. package/koket/es/index-CZ7fRUR1.js +0 -1
  477. package/koket/es/index-I63ib7qd.js +0 -1
  478. package/mtv/es/_auto-entry_mtv-DsuRsc1u.js +0 -1
  479. package/mtv/es/index--OizxMLO.js +0 -1
  480. package/mtv/es/index-B83VUyBB.js +0 -1
  481. package/mtv/es/index-BnTnl5EG.js +0 -1
  482. package/mtv/es/index-D2XPbfTm.js +0 -1
  483. package/mtv/es/index-DN3cR0Fw.js +0 -1
  484. package/mtv/es/index-DTrcSpan.js +0 -1
  485. package/mtv/es/index-Dv15bwI7.js +0 -1
  486. package/omni/es/_auto-entry_omni-HSpRNCg1.js +0 -1
  487. package/omni/es/index-74zEx__y.js +0 -1
  488. package/omni/es/index-wkJKThPL.js +0 -1
  489. package/sa/es/_auto-entry_sa-B3BT1vI-.js +0 -1
  490. package/sa/es/index-CrWFSHI0.js +0 -1
  491. package/sa/es/index-d0MDNCl0.js +0 -1
  492. package/sav2/es/_auto-entry_sav2-Ms7Jve07.js +0 -1
  493. package/sav2/es/index-BBAAh5bR.js +0 -1
  494. package/sav2/es/index-DS2guFzB.js +0 -1
  495. package/svd/es/_auto-entry_svd-CuD9iF48.js +0 -1
  496. package/svd/es/index-BfA2xLfw.js +0 -1
  497. package/svd/es/index-EJwoMYuf.js +0 -1
  498. package/svdv2/es/_auto-entry_svdv2-1VQfx2m3.js +0 -1
  499. package/svdv2/es/index-DB2h1Swy.js +0 -1
  500. package/svdv2/es/index-DU1mD5yI.js +0 -1
  501. package/tv4/es/_auto-entry_tv4-CWqxLSel.js +0 -1
  502. package/tv4/es/events-D6xMM-17.js +0 -1
  503. package/tv4/es/index-BONgzmFt.js +0 -1
  504. package/tv4/es/index-DP-cpF3Z.js +0 -1
  505. package/tvnu/es/_auto-entry_tvnu-VQhBZ5ti.js +0 -1
  506. package/tvnu/es/index-Ca_3Ni0n.js +0 -1
  507. package/tvnu/es/index-DjWYwuQw.js +0 -1
  508. package/vg/es/_auto-entry_vg-DfuxvRye.js +0 -1
  509. package/vg/es/index-DCWH5HnK.js +0 -1
  510. package/vg/es/index-DX5agaGX.js +0 -1
  511. package/vgv2/es/_auto-entry_vgv2-Bq8_SS3m.js +0 -1
  512. package/vgv2/es/events-BMoajPYv.js +0 -1
  513. package/vgv2/es/index-Ck1oE8Pa.js +0 -1
  514. package/vgv2/es/index-DxSr_M00.js +0 -1
  515. package/vgv2/es/styles-DDsDYtIG.js +0 -1
@@ -0,0 +1 @@
1
+ import"react/jsx-runtime";const e="0123456789abcdefghijklmnopqrstuvwxyz",t=(t=6)=>{if(t<=0)return"";let n="";for(let i=0;i<t;i++){n+=e[Math.floor(36*Math.random())]}return n},n=()=>{},i=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),r=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})}),o={adRequested:n,adAvailable:n,adLoaded:n,adNoBid:n,adError:n,adCollapse:n,adRequestFailure:n,adBadRequest:n,adLoadedMediated:n,adNoBidMediated:n},s={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"},d={publisherClassName:s.MTV,classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function l(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{a(i.next(e))}catch(e){o(e)}}function d(e){try{a(i.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,d)}a((i=i.apply(e,t||[])).next())})}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u,p;"function"==typeof SuppressedError&&SuppressedError;var v=c(function(){if(p)return u;p=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var s={};return i.isMergeableObject(e)&&r(e).forEach(function(t){s[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?s[r]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(r,i)(e[r],t[r],i):s[r]=n(t[r],i))}),s}function d(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var d=Array.isArray(r);return d===Array.isArray(t)?d?o.arrayMerge(t,r,o):s(t,r,o):n(r,o)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},u=d}());const g={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},h=(e,t)=>v(e,t,g),y=(e,t)=>Object.assign(Object.assign({},e),t),m=(e,t)=>{var n;return h(null!==(n=e)&&void 0!==n?n:{},t)},f=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},b=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},w=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||b("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||b("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||b("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||b("pageContext.deviceType is required."),n||b("pageOptions is required."),i||b("placements is required."),(null==r?void 0:r.defaultThreshold)||b("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,s=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&b(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},C={placements:(e,t)=>t,takeover:m,refreshConfig:y,editory:m,appearanceConfig:m,pageContext:y,pageOptions:y,pageSectionsSelectors:y,tcf:y},I=(e,t)=>{const n=e;for(const e of Object.keys(C)){const i=t[e];void 0!==i&&(n[e]=C[e](n[e],i))}},O=6;class S{set(e){w(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");I(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=h(S.DEFAULT_SITE_HANDLERS,e)}}S.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const T=new S,A=T.modifyConfigProperties.bind(T);class k{initialize(){this.DATA=Object.assign({},k.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)}}k.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const P=new k,E=864e5,x=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return f("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=E)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=E)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return f("Error with parsing localStorage data"),null}}}})(),j="glimrTags",_=["glwe_","glwet_"],$={geofenceTags:[],geoTags:[],weatherTags:[]},N=e=>new URLSearchParams(window.location.search).get(e),L="takeover",q="native_override_desc2",D=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 f("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(f("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{f("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{f("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);f("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),M={NO:"no",SE:"se"},F="cmp:loaded";let B="undefined"!=typeof window?window._tcf_:void 0,R=!1;const U=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=N("bypass_tcf"),s=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(f("TCF bypass param detected, returning consent: true"),!0):(f("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if(R)return null;if(!B)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=B.getConsentedToAllSync();return f(`TCF consented to all is: ${t}`),B.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(f("Getting TCF consent manager..."),window._tcf_)return f("TCF consent manager is already available"),B=window._tcf_,void e(B);f("TCF consent manager is not available");const n=()=>{f("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(B=window._tcf_,e(B)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(F,n),R=!0,t(new Error("Timeout waiting for CMP to load"))},r);f("Listening for CMP loaded event..."),document.addEventListener(F,n,{once:!0})}):Promise.resolve(null),getConsentSync:s,getConsentAsync:()=>l(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return f(`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===M.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===M.NO;if(t||i)return f("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield D(e);if(!(null==e?void 0:e.enabled))return!0;const o=s();return null!==o?o:yield new Promise((e,t)=>{try{if(!B)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{f("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);B.onTcfReady(()=>{f("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),B.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},K=(e,t,n,...i)=>l(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return f(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return f(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=U(e,0,n);return(yield r())?(f(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(f(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),H=(...e)=>l(void 0,[...e],void 0,function*(e=T.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield K(t,n,i,"glimr")}const{getConsentAsync:r}=U(t,0,i);return yield r()}),z=()=>l(void 0,void 0,void 0,function*(){const{glimr:e}=T.get();if(!(yield H())||!(null==e?void 0:e.enabled))return void f("No consent for glimr data fetching.");const t=yield(n=500,l(void 0,void 0,void 0,function*(){return yield Promise.race([l(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)=>{x.setWithTimestamp(j,{tags:e,tagMappings:t}),n(!0)})})}catch(e){f(`Error during getting glimr data: ${e}`)}else f("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),W={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"},V=e=>_.some(t=>e.startsWith(t)),G=e=>e.startsWith("glgc_"),X=e=>e.startsWith("glci_"),J=e=>!V(e)&&!G(e),Q=e=>e===M.NO?"no-sno":"se-generic",Y=(e,t)=>l(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield H(e);if(!(null==i?void 0:i.enabled)||!o)return f("No consent for getting glimr tags."),{};const s=Q(r),d=Z(e,Boolean(n));return{[`${s}-geo`]:d.geoTags,[`${s}-weather`]:d.weatherTags,[`${s}-geofence`]:d.geofenceTags}}),Z=(e,t)=>{const n=ee();if(!n)return $;const i=((e=[])=>e.filter(V))(n),r=((e=[])=>e.filter(G))(n),o=((e=[],t,n)=>{var i;const r=e.filter(J);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=W[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},ee=()=>{const e=x.getByTimestamp(j);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},te=()=>{var e;return((e=[])=>e.filter(X))(null!==(e=ee())&&void 0!==e?e:[])},ne="opaque",ie=e=>l(void 0,void 0,void 0,function*(){if(e.type!==ne){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),re={get:(e,...t)=>l(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,i=a(t,["timeout"]);if(n)return((e,t,n)=>l(void 0,void 0,void 0,function*(){const i=new AbortController,r=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return ie(n)}finally{clearTimeout(r)}}))(e,i,n);const r=yield fetch(e,i);return ie(r)}),post:(e,t,n)=>l(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},oe="advertory:ppids-cache",se={[M.SE]:`SCH${M.SE.toUpperCase()}-EnvHash`,[M.NO]:`SCH${M.NO.toUpperCase()}-EnvHash`},de={[M.SE]:`SCH${M.SE.toUpperCase()}-UserHash`,[M.NO]:`SCH${M.NO.toUpperCase()}-UserHash`},ae={[M.SE]:`sch${M.SE}-envhash-v3`,[M.NO]:`sch${M.NO}-envhash-v3`},le={[M.SE]:`sch${M.SE}-userhash-v3`,[M.NO]:`sch${M.NO}-userhash-v3`},ce={[M.SE]:`'sch${M.SE}-iosid-v3'`,[M.NO]:`'sch${M.NO}-iosid-v3'`},ue={[M.SE]:`sch${M.SE}-androidid-v3`,[M.NO]:`sch${M.NO}-androidid-v3`},pe={[M.SE]:"sdrn:schibsted.com:user",[M.NO]:"sdrn:spid.no:user"};class ve{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const ge=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return l(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||f("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:""}},he=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return l(this,void 0,void 0,function*(){var n,i,r,o,s,d,a,l,c,u,p;const v=x.get(oe),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(s=c.environmentId)&&void 0!==s?s:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(a=g.anId)||void 0===a?void 0:a.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||f("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});x.set(oe,r)}hashPPIDs(e,t){return l(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield re.post(t,n,e)}catch(e){return f("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return l(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>l(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${pe[t]}:${n}`:null}))(t,n),r=yield(o=t,l(void 0,void 0,void 0,function*(){const e=yield o.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var o;const s=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:i},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},s?{idfv:{plain:s}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},ye=e=>l(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield K(n,r,i,"setPPIDs")))return;if(!t)return;(yield Promise.allSettled([ge.processPPIDs(t,null==n?void 0:n.timeout),he.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){f(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),me=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:s}=he.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new ve).add(n,se[e]).add(t,de[e]).add(r,ae[e]).add(i,le[e]).add(o,ce[e]).add(s,ue[e]).buildEids()}]}},fe=()=>{const{ppid1:e,ppid2:t}=ge.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},be=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:i,ppid2:r}=he.getPPIDs(),o=(new ve).add(n,se[e]).add(t,de[e]).add(r,ae[e]).add(i,le[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:i,ppid2:r}=he.getPPIDs();return(new ve).add(n,se[e]).add(t,de[e]).add(r,ae[e]).add(i,le[e]).buildRyEids()},Ce=e=>l(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:i,ppid2:r}=he.getPPIDs(),o=(new ve).add(n,se[e]).add(t,de[e]).add(r,ae[e]).add(i,le[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),Ie=()=>l(void 0,void 0,void 0,function*(){const{ppid1:e}=he.getPPIDs();return e}),Oe=(e,...t)=>l(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{d(),n()},s=()=>{d(),i(new Error(`Failed to load ${e}`))},d=()=>{r.removeEventListener("load",o),r.removeEventListener("error",s),clearTimeout(a)};r.addEventListener("load",o),r.addEventListener("error",s);const a=setTimeout(()=>{d(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),Se="ANY_FULLSCREEN",Te="FULLWIDTH",Ae="TAKEOVER",ke="WALLPAPER",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}]},Ee={wallpaper:1600,"l-format":1600},xe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Qe(e,Se)},je=e=>{const{native:t}=e;return!!t},_e=e=>Qe(e,Te),$e=e=>{const{targetId:t}=e;return t.includes("takeover")||Qe(e,Ae)},Ne=e=>Qe(e,ke),Le=e=>e.targetId.includes("skyscraper")&&!!e.banner,qe=e=>e.targetId.includes("sponsorstripe"),De=e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Ue(e),Me=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Fe=e=>e.targetId.startsWith("topboard")&&!$e(e),Be=e=>e.targetId.startsWith("netboard"),Re=e=>e.targetId.startsWith("board"),Ue=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Ke=e=>e.targetId.startsWith("midboard"),He=e=>e.targetId.includes("widescreen"),ze=e=>e.targetId.startsWith("insider"),We=e=>e.width>=1260&&e.width<=1280,Ve=e=>e.width>=1600&&e.width<=1620,Ge=e=>e.targetId.startsWith("toppanorama")&&!Ve(e)&&!We(e),Xe=e=>e.targetId.startsWith("buyrecipe"),Je=e=>e.targetId.includes("backfill"),Qe=(e,t)=>{const n=Pe[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,s=t.width===r,d=!t.height||t.height===o;return s&&d})};let Ye;const Ze=()=>Ye,et="advertory-wallpaper-background",tt="advertory-with-horseshoe",nt=()=>{const e=document.querySelector(`.${et}`);e&&e.remove()},it=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${et}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},rt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,ot=e=>rt.test(e),st=e=>e.startsWith("wallpaper:color:"),dt=e=>{const t=document.querySelector(`.${et}`);t&&(t.style.backgroundImage=`url(${e})`)},at=e=>{const t=document.querySelector(`.${et}`);t&&(t.style.backgroundColor=e)};var lt=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(tt),n.classList.add(tt))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{nt();const e=document.createElement("div");e.classList.add(et),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&&(it(n),window.addEventListener("scroll",()=>it(n)))})(n),e()},isShortWallpaperColorMessage:st,isShortWallpaperUrlMessage:ot,removeWallpaperBackground:nt,setWallpaperBackgroundColor:at,setWallpaperBackgroundImage:dt});const ct=e=>{if("0"===N("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&nt())},ut=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},pt=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},vt=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,i=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${i}px`)},gt=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const ht=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return l(this,void 0,void 0,function*(){const t=gt(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>l(void 0,void 0,void 0,function*(){const t=gt(e);if(!t)return null;try{return yield re.get(t,{timeout:5e3})}catch(e){throw f("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,i,r;const o=((e,t)=>{const{sections:n}=e,i=a(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?h(i,r):i})(t,null!==(r=null===(i=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===i?void 0:i.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>h(t,e))(e,o)}getConfig(e){return l(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 f("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return l(this,void 0,void 0,function*(){var t,n,i,r;if(!this.localSiteConfig)return;if(I(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const o=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,s=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(s!==this.requestToken||(null===(r=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===r?void 0:r.pageTypeToFetch)!==o)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void f("Error fetching updated S3 config, keeping current config",{error:e})}})}},yt=ht.getConfig.bind(ht),mt=ht.resolveUpdatedConfig.bind(ht),ft=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=P.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=i},bt=()=>{var e,t;nt();const n=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),i=[];return n.forEach(e=>{ct(e.id),ft(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),i=null==t?void 0:t.getAttribute("data-probable-width");n&&i&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",i+"px"))})(e.id),e.innerHTML="",e.id=pt(e.id),i.push(e.id)}),null===(t=null===(e=Ze())||void 0===e?void 0:e.clear)||void 0===t||t.call(e,i),i},wt=(e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>pt(e)));e.filter(e=>!n.has(e)).forEach(e=>(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(e))},Ct=()=>{P.setData("wallpaper",{isAvailable:!1}),P.setData("horseshoe",{isAvailable:!1})},It=e=>l(void 0,void 0,void 0,function*(){const t=yield mt(e);var n;t?(T.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):A(null!=e?e:{})}),Ot="mobile",St="tablet",Tt="desktop",At="web_desktop",kt="web_phone",Pt="wde",Et="wph",xt="noGroupedPlacements",jt=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},_t=e=>{var n;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{placements:i,queryConfig:r,pageContext:{deviceType:o}}=T.get(),s=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===St&&0===i.length?e[Tt]:i})(i,o),d=s.filter(jt),a=e?document.querySelector(e):document;if(!a)return[];const l=d.reduce((e,t)=>{const n=(e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t})(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{var n,i,s;const l=new RegExp(`^${e}(_(\\d+))?$`),c=d.filter(({targetId:e})=>e.match(l)),u=(null==r?void 0:r.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${o}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,p=a.querySelectorAll(u),v=Array.from(p).filter(({id:e})=>e.match(l)).map((e,n)=>{var i;const r=$t(e,n,c);if(r.disabled)return f(`Placement ${r.targetId} is disabled - collapsing`),ct(r.targetId),null;const o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,s=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),d=`${e.id}-${t(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),o&&e.setAttribute("data-is-finn-blink-placement","true"),s&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&P.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},r),{targetId:d})}),g=v.filter(e=>null!=e);return null!==(s=null===(i=null===(n=Ze())||void 0===n?void 0:n.enrichPlacementsAfterDiscovery)||void 0===i?void 0:i.call(n,g))&&void 0!==s?s: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))})(l)},$t=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:o||r},Nt=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=T.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=pt(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),s=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes(pt(e.targetId)));return n})(e,i),d=Object.keys(o),a=((e,t)=>e.filter(e=>!t.has(pt(e.targetId))))(e,new Set([...d,...r]));return Object.assign(Object.assign(Object.assign({},s),o),{[xt]:a})},Lt="collapseAd",qt="hideAd",Dt="resizeAd",Mt="wallpaperImageUrl",Ft="wallpaperColor",Bt="velvet",Rt=[Dt,Mt,Ft,Lt,qt,Bt];let Ut;const Kt=e=>{var t,n,i;const r=Ze();if(!(null===(t=null==r?void 0:r.messageOrigins)||void 0===t?void 0:t.includes(e.origin.trim())))return;const{data:o}=e;if(!o)return;const s=(e=>{if("object"==typeof e)return e;if(ot(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Mt,wallpaperImageUrl:t}}if(st(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Ft,wallpaperColor:t}}if(e.startsWith(Lt)||e.startsWith(qt)){const t=e.split(":")[1];return{name:Lt,targetId:t}}if(e.includes("name")&&Rt.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(o);if(!s)return;if(!s.name||!Rt.some(e=>s.name===e))return;const{name:d,targetId:a,wallpaperImageUrl:l,wallpaperColor:c,cmd:u,size:p}=s;d===Bt&&u&&(u.includes("noScroll")&&(Ut=(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==Ut||Ut(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),d!==Lt&&d!==qt||!a||ct(a),d===Dt&&a&&u&&(null===(n=r.resizeCreative)||void 0===n||n.call(r,a,u)),"resizeMediationAd"===d&&a&&p&&(null===(i=r.resizeCreative)||void 0===i||i.call(r,a,p,!0)),d===Mt&&l&&dt(l),d===Ft&&c&&at(c)},Ht=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=T.get(),i={publisher:e,countryCode:t,finnBlink:n},r=e=>{var t,n;ut(e),null===(n=null===(t=Ze())||void 0===t?void 0:t.render)||void 0===n||n.call(t,e)};return{withAdServerAd:r,withFinnBlinkAd:e=>l(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-CE2pVz6T.js");yield t(e,i,null)}),withFullAdsChain:e=>l(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void r(e);const{loadFinnBlinkAd:t}=yield import("./index-CE2pVz6T.js");yield t(e,i,r,()=>l(void 0,void 0,void 0,function*(){if(!P.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return lt});t(e)}))})}},zt=(e,t)=>l(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield((e,t,n)=>l(void 0,void 0,void 0,function*(){yield i,yield r,new IntersectionObserver((t,i)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),i.unobserve(e),i.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}))(e,t,()=>((e,t)=>{var n,i;const r="true"===t.dataset.isFinnBlinkOnlyPlacement;return Me(e)&&r?(f(`loading finn blink ad for blink only placement for ${e}`),void Ht().withFinnBlinkAd(e)):Me(e)?(f(`loading finn blink ad with full ads chain for ${e}`),void Ht().withFullAdsChain(e)):void(null===(i=null===(n=Ze())||void 0===n?void 0:n.render)||void 0===i||i.call(n,e))})((e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),Wt=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},Vt=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Gt=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},Xt=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=T.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),Zt(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},Jt=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;Gt(r,o)&&i&&(vt(i.targetId),n.length&&r.classList.remove(...n),Zt([i],t))}},Qt=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=T.get();t&&(e.forEach(({targetId:e})=>{const t=Yt(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&Jt(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),Jt(e,!1,t))};n.persisted&&(Vt()?window.addEventListener("scroll",i,{passive:!0}):Jt(e,!1,t))})})(e,n))},Yt=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},Zt=(e,t=!1)=>{const n=Ze();if(!(null==n?void 0:n.refresh))return;const{queryConfig:{batchSize:i=O}={}}=T.get();for(const r of Wt(e,i))n.refresh(r.map(({targetId:e})=>e),t?{keepPreviousSizes:r}:void 0)},en=e=>{const{siteSpecificConfig:t}=T.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},tn=e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,nn=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},rn=e=>l(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=U(t,0,i);if(!(yield r()))return;const o=nn("_pulse2data");return o?o.split(",")[9]:void 0}),on="topscroller",sn=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},dn="takeover-visit-count",an=14400,ln=()=>{const e=nn(dn);return e?parseInt(e):0},cn=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=T.get();return"0"!==N(L)&&("1"===N(L)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=T.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||"takeover-displayed";return"true"===nn(n)})())&&(!t||un()))},un=()=>{const e=ln();return 0===e?((()=>{const e=ln(),{takeover:{options:{cookieCapTime:t=an}={}}={}}=T.get(),n=document.location.hostname;window.document.cookie=`${dn}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`})(),!1):1===e},pn=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),vn=()=>{const{takeover:e}=T.get();return Boolean(null==e?void 0:e.topscroller)};sn([],()=>{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})});const gn=e=>{if("true"!==N("scrollToFirstInvCode"))return;const t=N("ast_override_inv_code");if(!t)return;const n=t.split(",")[0].split(":")[0],i=e.find(e=>e.invCode===n),r=document.querySelector(`[id^=${null==i?void 0:i.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})},hn=(e,t)=>l(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 mn="advertory-brandmetrics-survey",fn=()=>l(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)}}),bn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},wn="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Cn=()=>l(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),In={pageContext:{publisher:"aftonbladet",countryCode:M.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"}},On={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Sn=e=>(null==e?void 0:e.parent)?[...Sn(e.parent),e.shortPath||"unknown"]:[],Tn=(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]=Sn(e);return On[n]||"ovrigaavdelningar"})(e)}_{position}`,An={aftonbladet:In},kn={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Tn(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Sn(e).join(":")}}},Pn=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},En=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),xn="se-generic",jn="aa-sch",_n="kv_",$n="pause",Nn="{deviceType}",Ln="{position}",qn="afp_",Dn=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),Mn="1-1",Fn="16-9",Bn="3-4",Rn="9-16",Un="responsive",Kn={[Mn]:1,[Fn]:1.78,[Rn]:.56,[Un]:1},Hn={[Mn]:1,[Fn]:1.78,[Bn]:1.33,[Rn]:.56},zn=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},s=Tt===n?Pt:Et,d=r.replace(Nn,s);return(e,n)=>{if(e===$n)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Ln,$n).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&Dn.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(Nn,s).replace(Ln,e)}return d.replace(Ln,e)}},Wn=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},Vn=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Gn=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},Xn=()=>{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},Jn=()=>{const e=null!==(t=Xn()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Xn()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Qn=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Yn=(e,t)=>l(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:s}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},a=(yield K(n,e.isApp,r,"video"))?"1":"0",l=yield Cn(),c=yield Ce(r),u=yield rn({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)=>Vn(Hn,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(y=e.playerAspectRatio)?Vn(Kn,Number(y.toFixed(2))):Un;var y,m;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${jn}-country_code`]:r,[`${jn}-publisher`]:i,[`${jn}-supply_type`]:(m=e.deviceType,m===Tt?At:kt),[`kw_${jn}-page_type`]:"collection",[`${jn}-page_type`]:"collection",[`${xn}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${xn}-page`]:"index",[`${xn}-page`]:"index",[`${xn}-screenheight`]:String(window.screen.height),[`${xn}-screenwidth`]:String(window.screen.width),[`${xn}-viewportheight`]:String(s),[`${xn}-viewportwidth`]:String(o),[`${xn}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${xn}-mobile-os`]:Wn(),[`${xn}-audience`]:void 0,[`${xn}-externalid_src`]:Jn(),[`${xn}-tags`]:e.tags,[`${xn}-articleid`]:p,"article-id":p},yield Y(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${xn}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Qn()).some(e=>e.includes(_n))&&(()=>{const e=Qn(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(_n)).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":a,"kw_aa-sch-cmp_advertising":a,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Zn=["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"],ei=["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"],ti=["external_uid","gdpr","gdpr_consent","eids","article-id"],ni=(e,t)=>{const n=[...Zn,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||ti.includes(e)?e:`kw_${e}`,t]))},ii=e=>Object.fromEntries(Object.entries(e).filter(([e])=>ei.includes(e))),ri=(e,t)=>l(void 0,void 0,void 0,function*(){var n,i,r,o;const s=(e=>{var t;An[e]||b(`[video] No config found for publisher "${e}"`);return null!==(t=An[e])&&void 0!==t?t:In})(e.publisher),d=(e=>{var t;return null!==(t=kn[e])&&void 0!==t?t:kn.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),a="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:s,siteVideoParams:d,isUserPresentOnFrontPage:a,adsKeywords:yield Yn({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==d?void 0:d.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:a,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Gn(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},s),prerollPlacementFormat:p,playbackMethod:Pn(e.startMode)}}),oi=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:s,playbackMethod:d}=e,{invCode:a}=i||{},l=zn(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(qn)?`${qn}${t}`:t)(a),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(s,r),"se-generic-playback-method":En.get(d),"kw_se-generic-adformat":c(s)},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({},ni(o,n)),ii(o)),{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({},o),{"se-generic-adformat":c("pause")})}}}},si=e=>t=>l(void 0,void 0,void 0,function*(){const n=yield ri(e,t);return oi(n,e)}),di={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]}]},ai={no:"NOK",se:"SEK"},li={no:"no",se:"sv"};class ci{buildFetchObject(e,n,i,r){return l(this,void 0,void 0,function*(){const{pageContext:{countryCode:o},pageOptions:s}=r,{invCode:d,xandrPlacementId:a}=e,l=yield Cn(),c=(u=Object.assign(Object.assign({},n),i),Object.entries(u).flatMap(([e,t])=>void 0===t?[]:Array.isArray(t)?t.map(t=>`${e}=${t}`):[`${e}=${t}`]).join(","));var u;const p=new URL(window.location.href),v=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(di),ver:"1.1"}})(e),g=(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:t(36),imp:[Object.assign(Object.assign(Object.assign({id:d},v&&{native:v}),g&&{banner:g}),{secure:1,tagid:d,ext:{appnexus:Object.assign(Object.assign({},a&&{placement_id:a}),{code:d,keywords:c,use_pmt_rule:!1})}})],site:{domain:p.hostname,page:p.href,publisher:{id:String(s.publisherId),domain:p.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||li[o]||"no").split("-")[0]},regs:{ext:{gdpr:l.gdpr||0}},user:{id:yield rn(r),ext:{consent:l.gdpr_consent||"",eids:we(o)}},at:1,cur:[ai[o]],source:{tid:t(36)},ext:{prebid:{bidder:{appnexus:{member:s.member}}}}}})}fetchData(e,t,n,i){return l(this,void 0,void 0,function*(){try{f("Starting fetching Studio ad from Xandr:",wn);const r=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),s=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),d=s.size>0?`${wn}?${s.toString()}`:wn,a=yield this.buildFetchObject(e,t,n,i),l=yield re.post(d,r,a);return f("Fetch operation completed successfully.",l),l}catch(e){f("Error during fetch operation:",e)}return null})}}const ui=0,pi=3,vi=e=>`externalImpId:'${e}'`,gi=(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,hi=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=T.get(),{targetId:r,sizes:o,keywords:s,allowedFormats:d,invCode:a,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||cn())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],i=Array.isArray(n)?n.filter(e=>e!==on):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),g=Object.assign({invCode:a,sizes:o,targetId:r,keywords:gi(s,l),allowedFormats:d,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),h=(e=>{var t,n;const i=null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId;return i?(f("Pulse state pageViewId is:",i),i):(f("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&h&&(f("External Impression ID assigned to defineTag:",vi(h)),g.externalImpId=vi(h));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(g.native=y),g},yi=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",s=i?`__${i}`:"",d=`advertory${o}-${n}${s}`,a=`advertory${o}-${n}-wrapper${s}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(d),r.classList.add(a),t.dataset.adType=n},mi={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},fi=(e,t,n)=>{var i,r,o,s;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.adResponse)||(null!==(o=(s=window.apntag).requests)&&void 0!==o||(s.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),(e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)})(e);const a=d.firstElementChild;a&&t.insertBefore(a,d),d.remove()},bi=(e,t,n)=>{var i;const r=t.replace(/-[^-]*$/,"");return null===(i=null==n?void 0:n[e].find(e=>e.targetId===r))||void 0===i?void 0:i.invCode},wi=(e,t)=>{new IntersectionObserver((e,n)=>{for(const i of e)if(i.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class Ci{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&&wi(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 Ii extends Ci{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 bi(e,this.adObj.targetId,t)}buildAdObject(){const e=Ii.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}`})}}const Oi=(e,t)=>{Si(e,t),Ai(e,t)},Si=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,i,r,o,s,d;for(const t of null!==(i=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==i?i:[])Pi(t);if((null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.instance)&&(null===(o=null==t?void 0:t.pulse)||void 0===o?void 0:o.adTrackingEnabled)){const n={publisher:null!==(s=t.publisher)&&void 0!==s?s:"",deviceType:null!==(d=t.deviceType)&&void 0!==d?d:Tt};new Ii({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},Ti=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(ki):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},Ai=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:s,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,a=d?{rootMargin:`${l=null!==(n=null==s?void 0:s.defaultThreshold[null!=o?o:Tt])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!i)for(const n of t)if(n.isIntersecting){i=!0,Ti(e),c.disconnect();break}},a);c.observe(r)},ki=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Pi(e):window.navigator.sendBeacon(e)},Pi=e=>{re.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Ei=e=>e.reduce((e,t)=>{if(!t.serverSidePlacement)return e.clientSidePlacements.push(t),e;const n=Math.random()<.5;return t.keywords=Object.assign(Object.assign({},t.keywords),{"aa-sch-prerenderer":n?"true":"false"}),n?e.serverSidePlacements.push(t):e.clientSidePlacements.push(t),e},{clientSidePlacements:[],serverSidePlacements:[]}),xi=(e,t)=>l(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,s=null==o?void 0:o.defaultThreshold[r],d=null!==(n=e.requestThreshold)&&void 0!==n?n:s,a=document.getElementById(e.targetId);if(!a)return void f(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{const t=new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},(e=>({rootMargin:`${e}px 0px ${e}px 0px`}))(d));t.observe(a)});const{prepareTag:l}=T.getHandlers(),c=P.getData("alertoryConfigKeywords"),u=null!==(i=l(hi(e)).keywords)&&void 0!==i?i:{},p=new ci,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===Ot?t.mobileHTML:t.desktopHTML;if(i){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>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(a,v,r),v.adType===pi&&(yi(t.pageContext.publisher,a,mi.NATIVE_AD,t.pageContext.pageType),Oi({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,s;let d;(null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||(null!==(o=(s=window.apntag).requests)&&void 0!==o||(s.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),fi(e,n,Number(null==i?void 0:i.adid)),null==d||d.remove()})(e.targetId,e.invCode,a,v.bid))}),ji=(e,t)=>{e.forEach(e=>xi(e,t).catch(e=>{f("Failed to handle server-side ad:",e)}))},_i="[data-carousel-track]",$i=({image_link:e,title:t})=>{const n=document.createElement("figure"),i=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),i.className="slide-image",i.src=e,i.alt=t,i.loading="lazy",i.draggable=!1,n.appendChild(i),n},Ni=e=>Boolean(e.title&&e.link&&e.image_link),Li=(e,t)=>l(void 0,void 0,void 0,function*(){const n=e.querySelector(_i);var i;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const r=yield(e=>l(void 0,void 0,void 0,function*(){try{const t=yield re.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(b("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return b("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!r)return void e.replaceChildren();const o=r.items.filter(Ni);if(!o.length)return void b("Carousel feed has no usable items");yield import("./styles-tHbDQzyN.js");const s={title:(i=e).querySelector("[data-product-title]"),description:i.querySelector("[data-product-description]"),price:i.querySelector("[data-product-price]"),link:i.querySelector("[data-product-link]")};n.replaceChildren(...o.map($i)),(({root:e,onChange:t})=>{var n;const i=e.querySelector("[data-carousel-viewport]"),r=e.querySelector(_i),o=Array.from(null!==(n=null==r?void 0:r.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!i||!r||!o.length)return;const s=o.length,d=[o[s-1].cloneNode(!0),...o,o[0].cloneNode(!0)];let a=1,l=null,c=0,u=!1;const p=e=>{const t=d[0].offsetWidth,n=Number.parseFloat(getComputedStyle(r).columnGap)||0,o=(i.clientWidth-t)/2-a*(t+n);r.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",r.style.transform=`translate3d(${o+c}px, 0, 0)`,r.offsetWidth},v=(e,n=!0)=>{a=e,p(n),d.forEach((e,t)=>e.classList.toggle("is-active",t===a)),null==t||t((a-1+s)%s)},g=()=>{0===a?v(s,!1):a===s+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*i.clientWidth?-Math.sign(c):0;l=null,c=0,v(a+e),window.setTimeout(()=>{u=!1})};r.replaceChildren(...d),r.addEventListener("transitionend",e=>{e.target===r&&g()}),i.addEventListener("pointerdown",e=>{g(),l=e.clientX,i.setPointerCapture(e.pointerId),p(!1)}),i.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),i.addEventListener("pointerup",h),i.addEventListener("pointercancel",h),i.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:i},r)=>{e&&(e.textContent=r.title),t&&(t.textContent=r.description),n&&(n.textContent=r.sale_price||r.price),i&&(i.href=r.link)})(s,o[e])}),f("Carousel mounted",{items:o.length})}catch(t){b("Carousel could not be rendered",t),e.replaceChildren()}else b("Carousel feed url is missing or not a valid https url",{url:t})}),qi="dom-discovered",Di=e=>`${Math.max(0,Math.round(e))}px`,Mi=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},Fi=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},Bi=()=>{const{pageSectionsSelectors:e}=T.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=Mi(t);Fi({"--advertory-header-height":Di(n)})})(e.header)},Ri=()=>{const e=Ze();if(!e)throw new Error("Ad server driver is not set, pass a driver to init()");return e};let Ui=[];const Ki=["takeover","wallpaper"],Hi=(e,t)=>{var n,i;const{initNativeAd:r}=T.getHandlers();null==r||r(e,null!==(i=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==i?i:T.get())},zi=e=>{const t=(e=>{var t;const n=P.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,glimr:s,appearanceConfig:d,pageContext:{publisher:a,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:y,fullWidth:m}=e,f=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:O;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:a,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:f})},s&&{glimr:s}),d&&{appearanceConfig:d}),h&&{takeover:h}),y&&{fullscreenScroll:y}),m&&{fullWidth:m})}})(e);window.advertory={initialized:!0,version:"3.18.0-no-issue.0",siteConfig:e,renderNativeAd:Hi,alertoryConfig:t}},Wi=()=>l(void 0,void 0,void 0,function*(){yield Ri().setTargeting()}),Vi=e=>l(void 0,void 0,void 0,function*(){var t,n,i,r;const o=Ri(),s=null!==(n=yield null===(t=o.adjustPlacementsBeforeRequest)||void 0===t?void 0:t.call(o,e))&&void 0!==n?n:e;null===(i=o.definePlacements)||void 0===i||i.call(o,s),yield null===(r=o.requestPlacements)||void 0===r?void 0:r.call(o,s)}),Gi=(e,t)=>l(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=T.get(),{requestThreshold:r,refresh:o}=e,s=(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[i];s&&(f("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:r,deviceDefaultThreshold:d}),yield zt(s,null!=r?r:d)),s&&(null==o?void 0:o.scroll)&&(f("core showAd - setup refreshing",{placement:e,ad:t}),s.dataset.refresh=o.scroll.toString())}),Xi=e=>e.some(({targetId:e})=>Ki.some(t=>e.includes(t))),Ji=e=>l(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=O}={},pageContext:{deviceType:i}}=T.get(),r=Nt(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),s=new Set(o.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!s.has(e));return[...o,...Wt(d,n)]})(i);for(const e of r)Xi(e)?(f("core loadAds without lazy loading",{placementsToLoad:e}),yield Vi(e)):e.length&&(f("core loadAds with lazy loading",{placementsToLoad:e}),yield Qi(e));const{finnBlink:o}=T.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-CE2pVz6T.js");yield e(n)}}),Qi=e=>l(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=T.get(),i=[];if(!t)return f("lazy load is not enabled",{placements:e}),void(yield Vi(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{f("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&Vi(e),f("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(f("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),Yi=()=>l(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>l(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=>l(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=Ui.find(({targetId:t})=>t===e.targetId);t&&(yield Gi(t,e),Ui=Ui.filter(e=>e.targetId!==t.targetId))})),yield Ri().bindEvents(e)}),Zi=(e,t)=>l(void 0,void 0,void 0,function*(){var n,i,r,o;if(f(`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 f("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:s,disableAds:d,reloadExistingAds:a,renderFinnBlinkPlacements:l,contextSelector:c}=null!=t?t:{},u=Object.keys(null!=e?e:{}).length>0;let p=[];if(d)return bt(),Ui=[],Ct(),[];if(s&&(p=null!==(i=bt())&&void 0!==i?i:[]),s&&!u)return[];if(s&&u&&(Ui=[],Ct()),a&&(bt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{ut(e.id)})),yield It(e),(null==e?void 0:e.pageSectionsSelectors)&&Bi(),yield Wi(),Ri().capabilities.tagDefinition===qi)return f("Advertory update - dom-discovered driver finds its own placements, requesting the page"),yield null===(o=(r=Ri()).requestPage)||void 0===o?void 0:o.call(r),Ui;const{clientSidePlacements:v,serverSidePlacements:g}=Ei(_t(c)),h=[...v,...g];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>pt(e)));e.filter(e=>n.has(e)).forEach(e=>ut(e))})(p,h),wt(p,h);let y=v;return l&&(y=y.filter(e=>Me(e.targetId))),ji(g,T.get()),y.length>0&&(Ui=[...Ui,...y.map(e=>Object.assign({},e))],Ri().capabilities.refresh&&(Xt(y),Qt(y)),yield Ji(y)),Ui}),er=(e,t,n)=>l(void 0,void 0,void 0,function*(){var i,r;Ye=n,T.set(e),T.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:o,kilkaya:s,rightColumnSplit:d,finnBlink:a}=e;P.initialize(),window.addEventListener("message",Kt,!1);const[c]=yield Promise.allSettled([n.setup(),ye(e),l(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=T.get();(yield K(t,n,i,"gpt-endpoint"))&&(yield Oe(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),l(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=T.get(),{getConsentAsync:o}=U(n,0,r),s=yield o();if(e&&t&&s){if(yield Oe(t),document.querySelector(`.${mn}`))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(mn)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),z(),l(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=T.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Oe(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(f("Driver has been set up"),null==o?void 0:o.enabled){const{loadNorstat:e}=yield import("./index-DS9ST2th.js");yield e()}if(f("Libraries have been loaded and trackers have been set"),Bi(),yield Yi(),yield Wi(),f("Page options have been set"),zi(e),f("Advertory is setup on window"),n.capabilities.tagDefinition===qi)return yield null===(i=n.requestPage)||void 0===i?void 0:i.call(n),void f("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=Ei(_t());if(Ui=u,ji(p,e),n.capabilities.refresh&&(Xt(Ui),Qt(Ui)),yield Ji(Ui),f("Ads has been loaded",Ui),gn(Ui),null==a?void 0:a.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-CE2pVz6T.js");yield t(null===(r=null==e?void 0:e.pageContext)||void 0===r?void 0:r.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield import("./index-CSWeeKp6.js");t(e.rightColumnSplit)}if(null==s?void 0:s.enabled){const{runKilkaya:t}=yield import("./index-B4gdrOep.js");yield t(e)}}),tr=(e,t,n)=>l(void 0,void 0,void 0,function*(){f(`Received configuration passed to Advertory: ${JSON.stringify(e)}`),yield((e,t,n)=>l(void 0,void 0,void 0,function*(){var i,r;const{initConsentManager:o,getConsentAsync:s}=U(e.tcf,null===(i=e.pageContext)||void 0===i||i.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),d=yield yt(e);yield fn(),yield hn(o),yield hn(s),f("TCF resolved successfully"),yield er(d,t,n),f("Run function resolved successfully")}))(e,t,n)}),nr={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"}},ir=["sponsor","seamless"],rr=["shopping"],or=(e,t,n,i)=>{var r;const{image:o,icon:s,sponsoredBy:d,title:a,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:y,customTitle3:m,customTitle4:f,customBody1:b,customBody2:w,customBody3:C,customBody4:I,customBody5:O,customIcon1:S,customIcon2:T,customDisplayUrl1:A,customDisplayUrl2:k}=e,P=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:P(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=a?a:"",logo:(()=>{var e;const t=ir.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&S;return P(t?S:s)})(),sponsoredBy:null!=d?d:"",title:null!=a?a:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=y?y:"",customTitle3:null!=m?m:"",customTitle4:null!=f?f:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=C?C:"",customBody4:null!=I?I:"",customBody5:null!=O?O:"",logo2:P(T),previewVideoSrc:null!=A?A:"",feedUrl:null!=k?k:""},t)},sr=(e,t)=>{const n=(i=q,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(q),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))&&!rr.includes(t.toLowerCase())?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},dr=(e,t,n,i)=>{const r=document.querySelector(`#${e}`);r&&t&&(r.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:r}=t,o=i&&Object.values(s).includes(i);n&&o&&yi(i,e,mi.NATIVE_AD,r)})(r,n),i())},ar=(e,t,n)=>{var i;const r=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=n,s="default";if(!e.native)return null;const{native:d,targetId:a}=e,{desc2:l=s}=e.native,c=l.toLowerCase(),u=null!==(i=sr(e.targetId,l))&&void 0!==i?i:c,p=nr[t.language||M.NO],v=or(d,p,a,t);return(d.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);dr(e.targetId,r,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Oi(e,t)});const o=document.querySelector(`#${e.targetId}`);o&&Li(o,null===(i=e.native)||void 0===i?void 0:i.customDisplayUrl2)},lr=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const s=e.getOptions(null!=n?n:{});ar(t,s,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},cr=()=>{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 ur{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return l(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 l(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const pr=9826;class vr{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=T.get();if(t){return{"aa-sch-supply_type":`app_${e===Ot?"phone":St}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return l(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 l(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=nn("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return l(this,void 0,void 0,function*(){return yield rn(T.get())})}isTrackingForbidden(){return l(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=pr}={}}=T.get();return"true"===N("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=T.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return l(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=T.get(),{getConsentAsync:i}=U(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=T.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 gr=new vr;function hr(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),r=Wn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}gr.prepare.bind(gr);const yr=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function mr(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",yr.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class fr extends vr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=T.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=T.get(),{OS:n,isHybridApp:i}=hr(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return mr(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=T.get(),r=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const br=new class extends fr{prepare(e){return l(this,void 0,void 0,function*(){var t,n,i,r,o,s,d;const a=T.get(),l=null!==(i=null===(n=null===(t=a.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(s=null===(o=null===(r=a.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==s?s:{},u=null===(d=a.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new ur;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Y(a,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},me(M.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},wr=br.prepare.bind(br);class Cr extends vr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=T.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return{width:e||n||0,height:t||i||0}}(),t={width:null!==(i=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==i?i:0,height:null!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return l(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}}=T.get(),{appMode:t,mobileOS:n}=hr(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=T.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===i?"article":"front"}`}}}const Ir=new class extends Cr{prepare(e){return l(this,void 0,void 0,function*(){var t,n,i,r,o,s;const d=T.get(),a=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(s=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==s?s:{},u=new ur;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(Y(d,a.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>l(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===nn("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=u.build(),v=!1!==a.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},me(M.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Or=Ir.prepare.bind(Ir),Sr=[],Tr=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Ar=()=>{const e=Tr();return e.cmd||(e.cmd=[]),e.cmd},kr=()=>{var e;const{prebid:t,pageOptions:n}=T.get(),i=null===(e=null==t?void 0:t.thirdParty)||void 0===e?void 0:e.adformDmpUrl;if(!i)return;const r=new URL(i);var o;r.searchParams.set("sg",(o=null==n?void 0:n.keywords,Object.values(null!=o?o:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))),f("relevant-managed - sending Adform DMP beacon",{url:r.toString()}),navigator.sendBeacon(r.toString())};let Pr;const Er=()=>{(()=>{var e;const{placements:t,pageContext:{deviceType:n}}=T.get(),i=null!==(e=t[n])&&void 0!==e?e:[];return"tablet"===n&&0===i.length?t.desktop:i})().forEach(({targetId:e,invCode:t})=>{if(!t)return;const n=document.getElementById(e);n?n.dataset.adUnitId=t:f("relevant-managed requestPage - placement container was not found",{targetId:e})})},xr=()=>{const{prebid:e}=T.get();return Boolean((null==e?void 0:e.enabled)&&e.manageAdserver&&!(null!==N("disable_prebid")))},jr={name:"relevant-managed",capabilities:{tagDefinition:qi,deferredRequest:!1,deferredRender:!1,refresh:!1},setup:()=>l(void 0,void 0,void 0,function*(){var e;const{prebid:t}=T.get();var n;xr()?(null==t?void 0:t.prebidUrl)?(n=e=>Ar().push(e),Sr.splice(0).forEach(e=>n(e)),yield Oe(null!==(e=null==t?void 0:t.adServerUrl)&&void 0!==e?e:"https://s1.adform.net/banners/scripts/adx.js"),yield Oe(t.prebidUrl)):f("relevant-managed setup - prebidUrl is required, skipping script loading"):f("relevant-managed setup - managed prebid is disabled, skipping script loading")}),setTargeting:()=>l(void 0,void 0,void 0,function*(){if(!xr())return;const{pageOptions:e}=T.get(),t={site:{keywords:(n=null==e?void 0:e.keywords,Object.values(null!=n?n:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))}};var n;Ar().push(()=>{Tr().addPrebidConfig({ortb2:t})})}),requestPage:()=>l(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:n}=T.get();if(!xr())return void f("relevant-managed requestPage - managed prebid is disabled, skipping");if(!(null==e?void 0:e.configId))return void f("relevant-managed requestPage - configId is required, skipping");(yield K(t,null==n?void 0:n.isMobileApp,null==n?void 0:n.countryCode,"relevant-managed-requestPage"))?(l(void 0,void 0,void 0,function*(){var e,t;const{readpeakUrl:n,adnamiUrl:i}=null!==(t=null===(e=T.get().prebid)||void 0===e?void 0:e.thirdParty)&&void 0!==t?t:{},r=[n,i].filter(e=>Boolean(e));yield Promise.allSettled(r.map(e=>Oe(e)))}),kr(),Er(),null==Pr||Pr.emit("adRequested"),Ar().push(()=>{f("relevant-managed requestPage - loadPrebid",{configId:e.configId}),Tr().loadPrebid({configId:e.configId,noGpt:!0,manageAdserver:!0})})):f("relevant-managed requestPage - consent not granted, skipping")}),clear:()=>{xr()&&Ar().push(()=>{var e,t;f("relevant-managed clear - destroySlots"),null===(t=(e=Tr()).destroySlots)||void 0===t||t.call(e)})},bindEvents:e=>l(void 0,void 0,void 0,function*(){Pr=e})},_r={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,globalPlacementId:s}=e,{pageSetup:d,pageContext:{countryCode:a}}=T.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=T.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(r,l),u=(e=>{const{pageContext:{countryCode:t}}=T.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${Q(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const s=(Array.isArray(o)?o:[o]).filter(e=>!(e in Ee)||window.innerWidth>=Ee[e]);return{[r]:i?s:o}})(e),p=(e=>{const{pageContext:{countryCode:t}}=T.get(),n=`${Q(t)}-targetid`;return e?{[n]:[e]}:{}})(i),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=cr(),h=(e=>en(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(r),y=((e,t)=>en(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(r,{safeFrameAutoInitialSize:!0}),m=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new ur).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,{[`${Q(a)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:m,invCode:c,keywords:f,rendererOptions:y,globalPlacementId:s||c})},preparePageOptions:e=>l(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=T.get();return yield t===M.SE?Or(e):wr(e)}),siteEvents:o},$r=((e,t,n)=>({init:i=>tr(Object.assign(Object.assign({},i),{siteSpecificConfig:n}),e,t),update:Zi,renderNativeAd:Hi,getVideoPPIDs:Ce,createInitNativeAd:lr,getVideoAdsConfig:si}))(_r,jr,d);export{Ci as A,T as B,yi as C,mi as D,f as E,pt as F,Ie as G,ct as H,a as I,K as J,bn as K,Ht as L,zt as M,be as N,M as O,Mi as P,Fi as Q,Di as R,wi as S,te as T,ut as U,Oe as V,s as W,$r as X,l as _,Ue as a,Be as b,Re as c,tn as d,De as e,qe as f,ze as g,He as h,Ke as i,Fe as j,Ge as k,Ve as l,We as m,Le as n,Ne as o,$e as p,pn as q,vn as r,xe as s,_e as t,Xe as u,je as v,Je as w,yn as x,sn as y,bi as z};
@@ -0,0 +1 @@
1
+ import{_ as i,E as t}from"./_auto-entry_mtv-Dm9h0OXG.js";const n=(...t)=>i(void 0,[...t],void 0,function*(t=500){return Promise.race([i(void 0,void 0,void 0,function*(){return yield new Promise(i=>{if("undefined"!=typeof window)if(window.Identity)i(window.Identity);else{const t=()=>{i(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else i(void 0)})}),new Promise(i=>setTimeout(()=>i(void 0),t))])});class e{constructor(i){this.identity=i,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return i(this,void 0,void 0,function*(){var i;try{const t=yield null===(i=this.identity)||void 0===i?void 0:i.getUser();return null!=t?t:null}catch(i){return t("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return i(this,void 0,void 0,function*(){var i,t;return null!==(t=yield null===(i=this.identity)||void 0===i?void 0:i.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(i){var t;null===(t=this.identity)||void 0===t||t.on("logout",i)}}export{e as I,n as g};
@@ -0,0 +1 @@
1
+ import{A as t,S as e,O as a,_ as n,T as r,E as s,U as i,V as l,J as o,W as c}from"./_auto-entry_mtv-Dm9h0OXG.js";import{g as d,I as u}from"./identity-facade-BDgfOQc7.js";import{jsxs as p,jsx as g}from"react/jsx-runtime";class m{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let a;if(a=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!a)return[];const{host:n,pathname:r}=new URL(a);if(!n.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[a];const s=r.split("/");return s.length?[...s.filter(Boolean).slice(1).map(t=>t),a]:[a]}}class v{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}const h="[data-k5a-teaser-analytics]";class y extends t{constructor(t,e,a,n){super(t,""),this.root=e,this.newsroomStrategy=a,this.pageType=n}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const t=this.root.querySelector("article");if(!t)return{};const e=t.dataset.k5aTeaserAnalytics;try{return e?JSON.parse(e):{}}catch(t){return{}}}mapPageType(t){var e;return null!==(e={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=t?t:"front"])&&void 0!==e?e:"Frontpage"}getArticleId(){var t;return null!==(t=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==t?t:""}getPlacementData(){var t,e;const a=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==a?void 0:a.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==a?void 0:a.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==a?void 0:a.dataset.pulseSecondaryposition)||0,slot:null!==(e=null==a?void 0:a.dataset.slotTag)&&void 0!==e?e:""}}getEventTarget(){const{link:t,itemId:e,title:a}=this.parseKilkayaData();return{id:e,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:t}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(t){const e=this.root.querySelector(h);if(Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics))return void t();const a=new MutationObserver(()=>{const e=this.root.querySelector(h);Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics)&&(a.disconnect(),t())});a.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){e(this.root,()=>this.waitForAnalyticsData(()=>{var t,e;const a=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(a);const n=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(n):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(n):null===(e=(t=this.pulse).trackElementView)||void 0===e||e.call(t,n)}))}trackEngagement(t){var e,a;const n=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(n):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(n):null===(a=(e=this.pulse).trackElementClick)||void 0===a||a.call(e,n)}}class k extends y{getEventBaseData(){var t,e,a,n;const{clientName:r,creativeId:s,itemId:i,placement:l}=this.parseKilkayaData(),{primaryPosition:o,secondaryPosition:c,slot:d}=this.getPlacementData(),u=this.mapPageType(this.pageType),p=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(null!==(e=this.pageType)&&void 0!==e?e:"front",this.getArticleId());return Object.assign(Object.assign({},i&&{"@id":`sdrn:kilkaya:teaser:${i}`}),{"@type":"UIElement",position:l,elementType:"Article",custom:{customer:r,creativeId:null!=s?s:i},page:{"@id":null!=p?p:l,"@type":u,url:location.origin},placement:{primaryPosition:o,secondaryPosition:c,source:d},tags:null===(n=null===(a=this.newsroomStrategy)||void 0===a?void 0:a.getTags)||void 0===n?void 0:n.call(a,this.root)})}getEventInput(t){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(t),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(t){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class f extends y{getEventBaseData(){var t,e;const{title:a="",clientName:n="",creativeId:r="",link:s="",itemId:i=""}=this.parseKilkayaData(),{columnName:l,primaryPosition:o,secondaryPosition:c,slot:d}=this.getPlacementData(),u={publicUrl:s,urlPath:s?new URL(s).pathname:""},{publicUrl:p,urlPath:g}=s&&(null===(e=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===e?void 0:e.call(t,s))||u;return Object.assign(Object.assign({},i&&{"@id":`sdrn:kilkaya:teaser:${i}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:l,primaryPosition:o,secondaryPosition:c,source:d},tags:[n,a,p,g].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:n,"spt:creativeId":r,pageTitle:a,publicUrl:p,urlPath:g},url:location.origin})}getEventInput(t){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}const b=/^glci_/,P="gender_",I="geo_",w="male",E="female",T=()=>n(void 0,void 0,void 0,function*(){const t=[],e=yield n(void 0,void 0,void 0,function*(){try{const t=yield d(),e=new u(t),a=yield e.getIdentityUser(),{gender:n}=null!=a?a:{};return n===w||n===E?`${P}${n}`:void 0}catch(t){return}}),a=(()=>{const t=r().map(t=>`${I}${t.replace(b,"")}`);return Array.from(new Set(t))})();return e&&t.push(e),a&&t.push(...a),t}),U="front";class S{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===U?"sdrn:e24:frontpage:front":`sdrn:e24:article:${e}`}getTags(t){var e;let a;if(a=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!a)return[];if(!a.includes("https://e24.no/annonsorinnhold/"))return[a];const{pathname:n}=new URL(a),r=n.split("/").filter(Boolean);return r.length?[...r.slice(1),a]:[a]}}class A{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class j{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class D{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class O{transformUrl(t){const{hostname:e,pathname:a}=new URL(t);return"brand-studio.svd.se"===e?{publicUrl:`https://svd.se/brand-studio${a}`,urlPath:`/brand-studio${a}`}:{publicUrl:t,urlPath:a}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===U?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${e}`}}class K{transformUrl(t){const{hostname:e,pathname:a}=new URL(t);return"brand-studio.aftonbladet.se"===e?{publicUrl:`https://aftonbladet.se/brand-studio${a}`,urlPath:`/brand-studio${a}`}:{publicUrl:t,urlPath:a}}getPulseObjectId(){return""}getPulsePageId(){return""}}class ${handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:n,countryCode:r}}){if(!(null==t?void 0:t.instance))return;const s={[c.VG]:new m,[c.E24]:new S,"no-aftenposten":new A,[c.BT]:new j,"no-bergenstidende":new j,[c.SA]:new D,"no-stavangeraftenblad":new D,[c.SVD]:new O,[c.AFTONBLADET]:new K}[n]||new v;((t,e,n,r)=>{const s=document.querySelectorAll("k5a-stream");s.length&&s.forEach(s=>{const i=r===a.SE?new f(t,s,e):new k(t,s,e,n);i.trackImpression(),s.addEventListener("click",()=>i.trackEngagement())})})(t.instance,s,e,r)}injectKilkayaMeta(t){return n(this,void 0,void 0,function*(){const e=document.createElement("script"),a=yield T();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(a)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var e;const a=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.streamSlot;if(s(`Kilkaya event for slot: ${a}`),!a)return void s("Kilkaya slot empty, Xandr backfill won't be loaded");const n=a.parentElement;n?(s(`Kilkaya placement ${a.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(n)):s("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(t){var e;const a=t.querySelector(".fallback");if(!a)return;a.style.display="flex";const n=null!==(e=a.dataset.fallbackTargetId)&&void 0!==e?e:"";i(n)}loadKilkayaScript(t){return n(this,void 0,void 0,function*(){yield l(t)})}run(t){return n(this,void 0,void 0,function*(){var e,a;const{tcf:n,pageContext:{isMobileApp:r,countryCode:s},kilkaya:i}=t;if(!(null==i?void 0:i.enabled))return;const l=yield o(n,r,s,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(l),yield this.loadKilkayaScript(null!==(a=null===(e=i.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==a?a:""),this.handleKilkayaStreamTracking(t)})}}const L=({placementName:t,slotTag:e,fallbackTargetId:a,children:n,pulseData:r,htmlAttributes:s})=>{const i=(t,e)=>{const a={};if(!t)return a;for(const[n,r]of Object.entries(t)){a[e?`${e}-${n}`:n]=String(r)}return a},l=i(r,"data-pulse"),o=i(s,"data");return p("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":e},l,o,{children:[g("div",{className:"inscreen-target"}),g("k5a-stream",{name:t,"slot-tag":e}),g("div",{className:"container"}),g("div",{className:"fallback","data-fallback-target-id":a,style:{display:"none"},children:n})]}))},B=t=>n(void 0,void 0,void 0,function*(){const e=new $;yield e.run(t)});export{L as Kilkaya,B as runKilkaya};
@@ -0,0 +1 @@
1
+ import{i as e,a as t,b as r,c as n,d as i,e as o,f as a,g as l,h as d,j as s,k as c,l as v,m as p,n as f,o as u,p as h,q as m,r as y,s as g,t as b,u as w,v as x,w as k,x as I,y as $,A as C,z as S,B as j,C as E,D as T,_ as q,E as A,F,G as B,H as O,I as L,J as N,K as z,L as P,M as _}from"./_auto-entry_mtv-Dm9h0OXG.js";import{g as D,I as H}from"./identity-facade-BDgfOQc7.js";import"react/jsx-runtime";const W={nativeAd:e=>x(e)&&!a(e),buyrecipe:w,fullwidthAd:b,fullscreenScroll:g,topscroller:e=>h(e)&&y(),splash:e=>h(e)&&m(e.width,e.height),welcomePage:h,wallpaper:u,skyscraper:f,lFormat:p,hFormat:v,toppanorama:c,topboard:s,widescreen:d,insider:l,sponsorstripe:a,brandboard:t=>o(t)&&!k(t)&&!e(t),outstream:i,netboard:e=>r(e)||n(e),panorama:t,midboard:e},M=({adObj:e,preferredTestIdData:t})=>{var r,n;const i=null!==(r=null==t?void 0:t.targetId)&&void 0!==r?r:null==e?void 0:e.targetId;if(!i)return;const o=null===(n=document.querySelector(`#${i}`))||void 0===n?void 0:n.parentElement;if(!o)return;if(((e,t)=>{var r,n,i,o;const a=null===(o=null===(i=null===(n=null===(r=window.apntag)||void 0===r?void 0:r.requests)||void 0===n?void 0:n.tags)||void 0===i?void 0:i[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(i,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var r,n;for(const[i,o]of Object.entries(W))if(o(e)){if("nativeAd"===i){const o="default";t.dataset.testid=`${i}-${null!==(n=null===(r=null==e?void 0:e.native)||void 0===r?void 0:r.desc2)&&void 0!==n?n:o}`;break}t.dataset.testid=i;break}})(e,o)};I('.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 K={Blink:"Blink"},J=new Map,X=e=>{var t;if(!J.has(e)){const t=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[t,r]of Object.entries(K)){const n=e[t];null!=n&&(window[r]=n)}})(e)).catch(t=>{throw J.delete(e),t});J.set(e,t)}return null!==(t=J.get(e))&&void 0!==t?t:Promise.resolve()},G="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js";$([],()=>{const e=({width:e,height:t})=>{var r;const n=null===(r=document.querySelector("#sf_align"))||void 0===r?void 0:r.querySelector("div");if(!n)return;const{clientWidth:i,clientHeight:o}=n,a=e/i,l=t/o;n.style.transform=`scale(${a},${l})`,n.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:r}=window;e({width:t,height:r})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const r={width:innerWidth,height:innerHeight};e(r)});const r=window.frameElement;(null==r?void 0:r.contentWindow)?r.contentWindow.document.body.onload=t:document.body.onload=t}),I('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}}');class R extends C{constructor(e,t){var r;super(e.pulse.instance,null!==(r=e.pageContext.publisher)&&void 0!==r?r:""),this.blinkParams=e,this.targetId=t}getTargetId(){return this.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.blinkParams;if(e)return S(e,this.targetId,t)}buildAdObject(){const e=R.extractAdFormat(this.targetId);return{objectId:this.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"blink",adFormat:e}}}const U=e=>{const{pageContext:{publisher:t=""}}=j.get(),r=document.querySelector(`#${e}`);if(!r)return;const n=`-${t}`;r.classList.remove(`advertory${n}-finn-blink`),r.classList.remove(`advertory${n}-finn-blink-wrapper`)},V=e=>{var t,r;const n=document.querySelector(`[id^="${e}"]`);return null!==(r=null===(t=null==n?void 0:n.dataset)||void 0===t?void 0:t.finnBlinkId)&&void 0!==r?r:e},Q=(e,t)=>{const{finnBlink:{enabled:r}={}}=j.get(),n=(null==t?void 0:t.enabled)||(e=>{var t;const r=document.querySelector(`[id^="${e}"]`);return!!(null===(t=null==r?void 0:r.dataset)||void 0===t?void 0:t.noBidAd)})(e);if(!n||!r)return null;const{height:i,requireImage:o,position:a,offset:l}=(null==t?void 0:t.sdkPayload)||{};return{selector:`#${V(e)}`,enabled:n,position:null!=a?a:e,height:null!=i?i:100,offset:null!=l?l:200,requireImage:o,advertoryTheme:null==t?void 0:t.advertoryTheme}},Y=(e,t,r)=>q(void 0,void 0,void 0,function*(){const{placements:n,pageContext:{deviceType:i},appearanceConfig:o}=j.get();A(`rendering finn blink ad for ${e}`);const a=F(e),l=n[i].find(e=>e.targetId===a),d=Q(e,null==l?void 0:l.finnBlink);if(!(null==d?void 0:d.enabled))return A(`Finn blink is not enabled on placement: ${e}`),r&&r(e),void U(e);if((e=>{var t;const r=V(e),n=document.querySelector(`[id^="${r}"]`);return!!(null===(t=null==n?void 0:n.classList)||void 0===t?void 0:t.contains("finn"))})(e))return void A(`Finn blink already loaded ${e}`);const{publisher:s,countryCode:c,finnBlink:v}=t,{sdkPayload:{channel:p}={}}=null!=v?v:{},f=null!=p?p:`${s}.${c}`,u="dark"===(null==o?void 0:o.theme)?"dark":"light";try{const e=yield B();yield(h=Object.assign(Object.assign({},d),{channel:f,userId:e,theme:u}),q(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=h,r=L(h,["userId","theme"]),n=window[K.Blink];if(!n)return;const i=new n({remote:"https://www.finn.no/distribution-front/external/carousel",userId:e,theme:t});yield i.inject(Object.assign({},r))})),((e,t)=>{const{siteSpecificConfig:{publisherClassName:r}={},pageContext:{pageType:n},pulse:i}=j.get(),o=document.querySelector(`#${e}`);if(!o)return;if(o.classList.add("disable-cogwheel"),(null==i?void 0:i.instance)&&i.adTrackingEnabled){const t=new R(j.get(),e);t.trackLoad(),t.trackImpression(),o.addEventListener("click",()=>t.trackEngagement())}E(r,o,T.FINN_BLINK,null!=t?t:n),M({preferredTestIdData:{targetId:e,testId:"finn"}})})(d.selector.replace("#",""),d.advertoryTheme)}catch(t){A(`Finn blink error ${t}`),r&&r(e),!r&&O(e),U(e)}var h}),Z=()=>q(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:r}}=j.get();if(!(yield N(e,t,r,"finn-blink")))return A("Skip loading finn blink ad due to missing TCF consent."),!1;const n=yield D();return!!(yield new H(n).isUserLoggedIn())||(A("Skip loading finn blink ad because the user is not logged in."),!1)}),ee=(e,t,r,n)=>q(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=j.get();if(A(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield Z())||i)return r&&r(e),U(e),void(!r&&O(e));try{yield X(G)}catch(e){console.error(e)}yield Y(e,t,r),n&&n()}),te=(e,t)=>{var r;(A(`Appending ${t.id} after ${e.id}`),e.parentElement&&(r=e.parentElement,!Array.from(r.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",t)):A(`Cannot perform afterend on: ${e.id}`)},re=(e,t)=>q(void 0,void 0,void 0,function*(){var r,n;if(!t)return;const{replacementConfig:i}=t,o=null===(r=null==i?void 0:i.adsToReplace)||void 0===r?void 0:r[e],a=null===(n=null==i?void 0:i.sizes)||void 0===n?void 0:n[e];z()&&o&&a?(yield Z())&&(yield X(G),o.forEach(([e,t])=>{const r=document.querySelector(`[id^="${e}"]`);if(!r)return;const n=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=j.get(),r=document.createElement("div"),n=document.createElement("div");return n.id=e,r.appendChild(n),E(t,n,T.FINN_BLINK),A(`Creating blink container for: ${e}`),r})(t);(e=>{A(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(r),te(r,n),r.dataset.finnBlinkId=t,P().withFullAdsChain(e)})):A(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)}),ne=e=>document.querySelector(`#${e}`),ie=e=>q(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:r}}=j.get(),n=null==t?void 0:t.defaultThreshold[r];for(const t of e){const{requestThreshold:e,targetId:r}=t,i=ne(r);i&&(yield _(i,null!=e?e:n))}});export{ie as handleFinnBlinkOnlyPlacements,ee as loadFinnBlinkAd,re as replaceAdsWithFinnBlink};
@@ -0,0 +1 @@
1
+ import{P as t,Q as e,R as n}from"./_auto-entry_mtv-Dm9h0OXG.js";import"react/jsx-runtime";const r=".advertory-right-column-track",o="--advertory-right-column-track-height",i=t=>t.getBoundingClientRect().top+window.scrollY,a=(t,e)=>`${t}-${e}`,d=(r,d,l)=>{var c;const s=Array.from(null!==(c=r.querySelectorAll(d))&&void 0!==c?c:[]),u=(t=>t.map(t=>{var e;return null===(e=document.querySelector(`[id^="${t}"]`))||void 0===e?void 0:e.parentElement}).map((t,e)=>({point:t,originalIndex:e})).filter(t=>Boolean(t.point)))(l);if(0===u.length)return;const v=i(r);u.forEach(({point:r,originalIndex:d})=>{((r,d,l)=>{const c=i(r),s=a(o,d),u=c-l,v=a("--advertory-right-column-split-point-height",d),m=t(r);e({[s]:n(u),[v]:n(m)})})(r,d+1,v),(r=>{const o=null==r?void 0:r.id;if(!o)return;const i=a("--advertory-right-column-ad-height",o),d=t(r);e({[i]:n(d)})})(s[d])});((t,r)=>{const a=i(t)-r;e({[o]:n(a)})})(u[Math.min(s.length,u.length-1)].point,v)};let l=!1;const c=t=>{if(!(null==t?void 0:t.enabled)||l)return;const{splitPointIDs:e,adSelector:n,trackSelector:o=r}=t,i=document.querySelector(o);if(!i)return;l=!0;const a=()=>{d(i,n,e)};a(),window.addEventListener("resize",a),window.addEventListener("orientationchange",a),window.addEventListener("load",a),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(a)});new ResizeObserver(a).observe(i)};export{c as initRightColumnSplit};
@@ -1 +1 @@
1
- import{_ as t,c as e,h as o,j as n,C as s}from"./_auto-entry_mtv-DsuRsc1u.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:c}=e.get(),r=yield o(c,a,d,"norstat");if(!s||a||!r)return;const m=n(d);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
1
+ import{_ as t,B as e,J as o,N as n,O as s}from"./_auto-entry_mtv-Dm9h0OXG.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:r}=e.get(),c=yield o(r,a,d,"norstat");if(!s||a||!c)return;const m=n(d);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
package/mtv/es/index.d.ts CHANGED
@@ -279,7 +279,7 @@ interface AstNativeIcon {
279
279
  prevent_crop?: boolean;
280
280
  }
281
281
 
282
- declare const events: Events;
282
+ declare const siteEvents: Events;
283
283
 
284
284
  declare const DeviceTypes: {
285
285
  readonly MOBILE: "mobile";
@@ -509,7 +509,6 @@ interface PlacementRefreshConfig {
509
509
  }
510
510
  interface Placement {
511
511
  targetId: string;
512
- adUnitId?: string;
513
512
  sizes: Array<Array<number>>;
514
513
  allowedFormats: Array<AstAdType>;
515
514
  invCode: string;
@@ -596,6 +595,11 @@ interface TCFConfig {
596
595
  timeout?: number;
597
596
  nonRtb?: NonRTBConfig;
598
597
  }
598
+ interface ManagedThirdPartyConfig {
599
+ readpeakUrl?: string;
600
+ adnamiUrl?: string;
601
+ adformDmpUrl?: string;
602
+ }
599
603
  interface PrebidConfig {
600
604
  enabled: boolean;
601
605
  prebidUrl: string;
@@ -606,6 +610,7 @@ interface PrebidConfig {
606
610
  forwardGlimrTags?: boolean;
607
611
  manageAdserver?: boolean;
608
612
  adServerUrl?: string;
613
+ thirdParty?: ManagedThirdPartyConfig;
609
614
  }
610
615
  interface NonRTBConfig {
611
616
  invCodeSuffix?: string;
@@ -880,8 +885,13 @@ interface Advertory {
880
885
  getVideoAdsConfig: (params: VideoAdsConfigParams) => (stream: VideoStream) => Promise<Record<string, unknown>>;
881
886
  }
882
887
 
888
+ declare const TagDefinitions: {
889
+ readonly EXPLICIT: "explicit";
890
+ readonly DOM_DISCOVERED: "dom-discovered";
891
+ };
892
+ type TagDefinition = (typeof TagDefinitions)[keyof typeof TagDefinitions];
883
893
  interface AdServerCapabilities {
884
- tagDefinition: 'explicit' | 'dom-discovered';
894
+ tagDefinition: TagDefinition;
885
895
  deferredRequest: boolean;
886
896
  deferredRender: boolean;
887
897
  refresh: boolean;
@@ -899,18 +909,29 @@ interface AdEventBus {
899
909
  on: (event: AdEventName, handler: AdEventHandler) => void;
900
910
  }
901
911
 
912
+ interface RefreshOptions {
913
+ keepPreviousSizes?: Array<Placement>;
914
+ applyReloadKeyword?: boolean;
915
+ }
902
916
  interface AdServerDriver {
903
917
  readonly name: string;
904
918
  readonly capabilities: AdServerCapabilities;
919
+ readonly messageOrigins?: ReadonlyArray<string>;
905
920
  setup(): Promise<void>;
906
921
  setTargeting(): Promise<void>;
922
+ enrichPlacementsAfterDiscovery?(placements: Array<Placement>): Array<Placement>;
923
+ adjustPlacementsBeforeRequest?(placements: Array<Placement>): Promise<Array<Placement>>;
907
924
  definePlacements?(placements: Array<Placement>): void;
908
925
  requestPlacements?(placements: Array<Placement>): Promise<void>;
909
926
  requestPage?(): Promise<void>;
910
927
  bindEvents(bus: AdEventBus): Promise<void>;
928
+ clear?(targetIds: Array<string>): void;
929
+ resizeCreative?(targetId: string, size: Array<number>, isMediation?: boolean): void;
930
+ render?(targetId: string): void;
931
+ refresh?(targetIds: Array<string>, options?: RefreshOptions): void;
911
932
  }
912
933
 
913
- declare const createAdvertory: (handlers: SiteHandlers, siteSpecificConfig?: SiteSpecificConfig, driver?: AdServerDriver) => Advertory;
934
+ declare const createAdvertory: (handlers: SiteHandlers, driver: AdServerDriver, siteSpecificConfig?: SiteSpecificConfig) => Advertory;
914
935
 
915
936
  declare const prepareTag: (tag: AstDefineTagParams) => AstDefineTagParams;
916
937
 
@@ -921,9 +942,9 @@ declare const relevantManagedDriver: AdServerDriver;
921
942
  const HANDLERS = {
922
943
  prepareTag,
923
944
  preparePageOptions,
924
- siteEvents: events,
945
+ siteEvents,
925
946
  };
926
947
 
927
- const advertory = createAdvertory(HANDLERS, siteSpecificConfig, relevantManagedDriver);
948
+ const advertory = createAdvertory(HANDLERS, relevantManagedDriver, siteSpecificConfig);
928
949
 
929
950
  export { advertory as default };
package/mtv/es/index.js CHANGED
@@ -1 +1 @@
1
- export{W as default}from"./_auto-entry_mtv-DsuRsc1u.js";import"react/jsx-runtime";
1
+ export{X as default}from"./_auto-entry_mtv-Dm9h0OXG.js";import"react/jsx-runtime";
@@ -1 +1 @@
1
- import{i as a}from"./_auto-entry_svd-CuD9iF48.js";import"react/jsx-runtime";const e=a("[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}");export{e as default};
1
+ import{x as a}from"./_auto-entry_mtv-Dm9h0OXG.js";import"react/jsx-runtime";const e=a("[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}");export{e as default};