powered-ad-config 0.1.73 → 0.1.74

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.
@@ -370,7 +370,7 @@ var e = (e, t, n) => {
370
370
  }, P = () => {
371
371
  let e = A();
372
372
  if (!e) return;
373
- a(e, "0.1.73");
373
+ a(e, "0.1.74");
374
374
  let t = e.style;
375
375
  e.className &&= "", t.minHeight = "250px", t.marginTop = R.adNodeMarginTop + "px", t.marginBottom = R.adNodeMarginBottom + "px", t.position = "static", t.display = "block", R.zIndex && R.zIndex();
376
376
  }, F = () => {
@@ -805,15 +805,15 @@ var e = (e, t, n) => {
805
805
  element: e,
806
806
  overflow: e.style.overflow
807
807
  }), S(e, "overflow", "visible"), e = e.parentElement;
808
- }, W = () => {
808
+ }, te = () => {
809
809
  S(I, "width", M), S(I, "maxWidth", M), S(I, "minWidth", M), S(I, "height", N), S(I, "minHeight", N), S(I, "display", "block"), S(I, "overflow", "hidden"), S(I, "pointerEvents", "none"), S(I, "zIndex", "1080"), I.setAttribute(y, h), S(a, "width", M), S(a, "height", N), S(a, "display", "block"), S(a, "border", "0"), S(a, "position", "relative"), S(a, "pointerEvents", "auto");
810
- }, G = {
810
+ }, W = {
811
811
  element: null,
812
812
  position: ""
813
- }, K = () => {
813
+ }, ne = () => {
814
814
  let e = I.parentElement;
815
- e && o.getComputedStyle(e).position === "static" && (G.element = e, G.position = e.style.position, S(e, "position", "relative")), S(I, "position", "absolute"), S(I, "top", `${H}px`), S(I, "left", `${ee}px`), S(I, "right", "auto"), S(I, "marginTop", "0px"), S(I, "marginBottom", `${u}px`), S(I, "marginLeft", "0px"), S(I, "marginRight", "0px"), S(I, "transform", "");
816
- }, te = (e) => {
815
+ e && o.getComputedStyle(e).position === "static" && (W.element = e, W.position = e.style.position, S(e, "position", "relative")), S(I, "position", "absolute"), S(I, "top", `${H}px`), S(I, "left", `${ee}px`), S(I, "right", "auto"), S(I, "marginTop", "0px"), S(I, "marginBottom", `${u}px`), S(I, "marginLeft", "0px"), S(I, "marginRight", "0px"), S(I, "transform", "");
816
+ }, re = (e) => {
817
817
  let t = null;
818
818
  try {
819
819
  let e = a.contentDocument;
@@ -835,33 +835,33 @@ var e = (e, t, n) => {
835
835
  } catch {
836
836
  return a.removeAttribute(b), !1;
837
837
  }
838
- U(), W(), K();
838
+ U(), te(), ne();
839
839
  try {
840
840
  a.srcdoc = t;
841
841
  } catch {
842
842
  return !1;
843
843
  }
844
844
  return !0;
845
- }, ne = () => {
845
+ }, ie = () => {
846
846
  S(I, "position", "fixed"), S(I, "marginTop", "0px"), S(I, "marginBottom", "0px"), S(I, "marginLeft", "0px"), S(I, "marginRight", "0px"), S(I, "transform", "");
847
- }, q = () => {
847
+ }, G = () => {
848
848
  S(I, "display", "none");
849
- }, re = () => {
849
+ }, ae = () => {
850
850
  S(I, "display", "block"), S(I, "overflow", "hidden");
851
- }, J = null, Y = () => {
852
- if ((!J || !J.isConnected) && (J = D(F.headingText)), !J) return;
853
- let e = J.getBoundingClientRect(), t = e.top - V - u + H, n = e.left + ee;
851
+ }, K = null, q = () => {
852
+ if ((!K || !K.isConnected) && (K = D(F.headingText)), !K) return;
853
+ let e = K.getBoundingClientRect(), t = e.top - V - u + H, n = e.left + ee;
854
854
  S(I, "top", `${t}px`), S(I, "left", `${n}px`), S(I, "right", "auto");
855
- }, X = null, Z = null, ie = !1, Q = (e = 12) => {
856
- if (J = D(F.headingText), !J) {
857
- e > 1 && (k = o.setTimeout(() => Q(e - 1), 250));
855
+ }, J = null, Y = null, oe = !1, X = (e = 12) => {
856
+ if (K = D(F.headingText), !K) {
857
+ e > 1 && (k = o.setTimeout(() => X(e - 1), 250));
858
858
  return;
859
859
  }
860
- te(J) || (ie = !0, U(), W(), ne(), Y(), X = () => Y(), Z = () => Y(), o.addEventListener("scroll", X, { passive: !0 }), o.addEventListener("resize", Z));
860
+ re(K) || (oe = !0, U(), te(), ie(), q(), J = () => q(), Y = () => q(), o.addEventListener("scroll", J, { passive: !0 }), o.addEventListener("resize", Y));
861
861
  };
862
- Q();
863
- let ae = () => {
864
- k &&= (o.clearTimeout(k), null), O &&= (o.clearTimeout(O), null), X &&= (o.removeEventListener("scroll", X), null), Z &&= (o.removeEventListener("resize", Z), null), I.getAttribute(y) === h && I.removeAttribute(y), ie && (Object.entries(R).forEach(([e, t]) => {
862
+ X();
863
+ let se = () => {
864
+ k &&= (o.clearTimeout(k), null), O &&= (o.clearTimeout(O), null), J &&= (o.removeEventListener("scroll", J), null), Y &&= (o.removeEventListener("resize", Y), null), I.getAttribute(y) === h && I.removeAttribute(y), oe && (Object.entries(R).forEach(([e, t]) => {
865
865
  I.style[e] = t;
866
866
  }), Object.entries(z).forEach(([e, t]) => {
867
867
  a.style[e] = t;
@@ -872,10 +872,10 @@ var e = (e, t, n) => {
872
872
  return o[v] = {
873
873
  instanceId: h,
874
874
  iframe: a,
875
- cleanup: ae,
876
- show: re,
877
- hide: q
878
- }, ae;
875
+ cleanup: se,
876
+ show: ae,
877
+ hide: G
878
+ }, se;
879
879
  }, T = (e, t, n) => {
880
880
  let r = window.frameElement ? window.frameElement : null;
881
881
  if (!r) return () => {};
@@ -1188,7 +1188,7 @@ var e = (e, t, n) => {
1188
1188
  };
1189
1189
  (() => {
1190
1190
  let e = a.style;
1191
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.73"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
1191
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.74"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
1192
1192
  let o = a.parentElement;
1193
1193
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
1194
1194
  let t = r.getComputedStyle(o), n = !1;
@@ -1326,7 +1326,7 @@ var e = (e, t, n) => {
1326
1326
  let o = a.getAttribute("style"), s = n.getAttribute("style"), c = n.parentElement === a ? null : n.parentElement, l = c ? c.getAttribute("style") : null, u = a.parentElement, d = u ? r.getComputedStyle(u).paddingTop : null, f = null, p = parseInt(n.getAttribute("width"), 10) || 320, m = parseInt(n.getAttribute("height"), 10) || 50;
1327
1327
  return (() => {
1328
1328
  let e = a.style;
1329
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.73"), c) {
1329
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.74"), c) {
1330
1330
  let e = c.style;
1331
1331
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1332
1332
  }
@@ -1519,26 +1519,24 @@ var e = (e, t, n) => {
1519
1519
  })(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = y ? y.getAttribute("style") : null, x = s ? s.getAttribute("style") : null, S = o ? o.getAttribute("style") : null, C = o ? o.querySelector("header") : null, w = C ? C.getAttribute("style") : null, T = C ? C.querySelector(".sc-5cbbddda-1") : null, E = T ? T.getAttribute("style") : null, D = i.querySelector("footer"), O = D ? D.getAttribute("style") : null, k = o ? Array.from(o.children).map((e) => ({
1520
1520
  el: e,
1521
1521
  orig: e.getAttribute("style")
1522
- })) : [], A = null, j = null, M = null, N = null, P = null, F = null, I = null, L = null, R = [], z = null, B = null, V = null, H = null, ee = null, U = null, W = null, G = [], K = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, te = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, ne = !!(t.sticky && (K || te)), q = "pending", re = 0, J = 0, Y = null, X = null, Z = null, ie = null, Q = [], ae = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null;
1523
- u.afr;
1524
- let oe = (e) => {
1522
+ })) : [], A = null, j = null, M = null, N = null, P = null, F = null, I = null, L = null, R = [], z = null, B = null, V = null, H = null, ee = null, U = null, te = null, W = [], ne = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, re = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, ie = !!(t.sticky && (ne || re)), G = "pending", ae = 0, K = 0, q = null, J = null, Y = null, oe = null, X = [], se = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, ce = f === u.afr, Z = null, Q = null, le = (e) => {
1525
1523
  if (!e || e === V || e === y || e === a) return !1;
1526
1524
  let t = e.firstElementChild;
1527
1525
  if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper")) return !1;
1528
1526
  let n = r.getComputedStyle(e);
1529
1527
  return n.position === "fixed" || n.position === "sticky";
1530
- }, se = (e) => {
1531
- !e?.parentElement || G.some((t) => t.shell === e) || (G.push({
1528
+ }, ue = (e) => {
1529
+ !e?.parentElement || W.some((t) => t.shell === e) || (W.push({
1532
1530
  shell: e,
1533
1531
  parent: e.parentElement,
1534
1532
  nextSibling: e.nextSibling
1535
1533
  }), e.remove());
1536
- }, ce = () => {
1534
+ }, de = () => {
1537
1535
  for (let e of i.querySelectorAll(".container")) {
1538
1536
  let t = e.parentElement;
1539
- oe(t) && se(t);
1537
+ le(t) && ue(t);
1540
1538
  }
1541
- }, le = (e) => {
1539
+ }, fe = (e) => {
1542
1540
  let t = e?.parentElement;
1543
1541
  for (; t && t !== i.body && t !== i.documentElement;) {
1544
1542
  let e = r.getComputedStyle(t);
@@ -1547,10 +1545,10 @@ var e = (e, t, n) => {
1547
1545
  orig: t.getAttribute("style")
1548
1546
  }), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
1549
1547
  }
1550
- }, ue = () => {
1548
+ }, pe = () => {
1551
1549
  let e = i.createElement("div");
1552
1550
  return e.setAttribute("data-mf-billboard-mount", ""), e.style.height = `${t.billboardHeight}px`, e.style.minHeight = `${t.billboardHeight}px`, e.style.maxHeight = `${t.billboardHeight}px`, e.style.background = "transparent", e.style.overflow = "visible", e.style.position = "relative", e.style.width = "100%", e.style.padding = "0", e.style.margin = "0", e;
1553
- }, de = () => {
1551
+ }, me = () => {
1554
1552
  if (!s || f !== u.wwos) return null;
1555
1553
  let e = a.getBoundingClientRect().bottom, t = Array.from(s.querySelectorAll("div")).map((e) => {
1556
1554
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = e.querySelector("ul");
@@ -1563,7 +1561,7 @@ var e = (e, t, n) => {
1563
1561
  };
1564
1562
  }).filter(({ rect: t, styles: n, list: r, listStyles: i }) => !r || !i || t.top < e - 4 || t.top > e + 120 || n.overflow !== "hidden" || parseFloat(n.borderTopLeftRadius) < 4 ? !1 : i.overflow === "auto" || i.overflowX === "auto");
1565
1563
  return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
1566
- }, $ = () => L || a, fe = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1564
+ }, $ = () => L || a, he = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1567
1565
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
1568
1566
  return {
1569
1567
  el: e,
@@ -1571,29 +1569,29 @@ var e = (e, t, n) => {
1571
1569
  styles: n,
1572
1570
  zIndex: Number.isFinite(i) ? i : null
1573
1571
  };
1574
- }).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"), pe = () => {
1575
- let e = fe().filter(({ rect: e, styles: n }) => n.position !== "fixed" && n.position !== "sticky" ? !1 : e.top <= t.stickyTop + 1 && e.bottom > t.stickyTop + 1);
1572
+ }).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"), ge = () => {
1573
+ let e = he().filter(({ rect: e, styles: n }) => n.position !== "fixed" && n.position !== "sticky" ? !1 : e.top <= t.stickyTop + 1 && e.bottom > t.stickyTop + 1);
1576
1574
  return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
1577
- }, me = () => {
1578
- let e = pe();
1579
- return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, ae || t.stickyTop);
1580
- }, he = () => {
1581
- let e = pe();
1575
+ }, _e = () => {
1576
+ let e = ge();
1577
+ return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, se || t.stickyTop);
1578
+ }, ve = () => {
1579
+ let e = ge();
1582
1580
  return e?.zIndex && e.zIndex > 2 ? Math.max(t.stickyZIndex, e.zIndex + 1) : t.stickyZIndex;
1583
- }, ge = ({ active: e, progress: t = 0, remainingMs: n = 0 }) => {
1581
+ }, ye = ({ active: e, progress: t = 0, remainingMs: n = 0 }) => {
1584
1582
  F?.contentWindow && F.contentWindow.postMessage({
1585
1583
  type: "mobilefireplace:sticky",
1586
1584
  active: e,
1587
1585
  progress: Math.max(0, Math.min(1, t)),
1588
1586
  remainingMs: Math.max(0, Math.round(n))
1589
1587
  }, "*");
1590
- }, _e = (e) => {
1591
- !e || Q.some((t) => t.el === e) || Q.push({
1588
+ }, be = (e) => {
1589
+ !e || X.some((t) => t.el === e) || X.push({
1592
1590
  el: e,
1593
1591
  value: e.style.getPropertyValue("z-index"),
1594
1592
  priority: e.style.getPropertyPriority("z-index")
1595
1593
  });
1596
- }, ve = (e) => {
1594
+ }, xe = (e) => {
1597
1595
  let t = new Set([$()].filter(Boolean));
1598
1596
  if (f === u.afr || U || p) {
1599
1597
  [
@@ -1604,90 +1602,98 @@ var e = (e, t, n) => {
1604
1602
  let e = $()?.parentElement;
1605
1603
  for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
1606
1604
  }
1607
- for (let n of t) _e(n), n.style.setProperty("z-index", String(e), "important");
1608
- }, ye = () => {
1609
- for (let e = Q.length - 1; e >= 0; --e) {
1610
- let { el: t, value: n, priority: r } = Q[e];
1605
+ for (let n of t) be(n), n.style.setProperty("z-index", String(e), "important");
1606
+ }, Se = () => {
1607
+ !ce || !F || F.parentElement === i.body || (Z = F.parentElement, Q = F.nextSibling, i.body.appendChild(F));
1608
+ }, Ce = () => {
1609
+ if (!Z || !F) {
1610
+ Z = null, Q = null;
1611
+ return;
1612
+ }
1613
+ Q && Q.parentNode === Z ? Z.insertBefore(F, Q) : Z.appendChild(F), Z = null, Q = null;
1614
+ }, we = () => {
1615
+ for (let e = X.length - 1; e >= 0; --e) {
1616
+ let { el: t, value: n, priority: r } = X[e];
1611
1617
  n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
1612
1618
  }
1613
- Q.length = 0;
1614
- }, be = () => {
1619
+ X.length = 0;
1620
+ }, Te = () => {
1615
1621
  if (!F) return;
1616
- le($());
1617
- let e = $().getBoundingClientRect(), t = he();
1618
- ve(t), portalStickyBillboard();
1622
+ fe($());
1623
+ let e = $().getBoundingClientRect(), t = ve();
1624
+ xe(t), Se();
1619
1625
  let n = F.style;
1620
- n.position = "fixed", n.top = `${me()}px`, n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`, n.setProperty("z-index", String(t), "important"), F.setAttribute("data-mf-sticky-active", "");
1621
- }, xe = () => {
1626
+ n.position = "fixed", n.top = `${_e()}px`, n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`, n.setProperty("z-index", String(t), "important"), F.setAttribute("data-mf-sticky-active", "");
1627
+ }, Ee = () => {
1622
1628
  if (!F) return;
1623
- restoreStickyBillboardPortal();
1629
+ Ce();
1624
1630
  let e = F.style;
1625
- e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), ye(), F.removeAttribute("data-mf-sticky-active");
1626
- }, Se = () => {
1627
- X &&= (r.cancelAnimationFrame(X), null);
1628
- }, Ce = () => {
1629
- Z &&= (r.cancelAnimationFrame(Z), null);
1630
- }, we = () => {
1631
- if (Y === null) {
1631
+ e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), we(), F.removeAttribute("data-mf-sticky-active");
1632
+ }, De = () => {
1633
+ J &&= (r.cancelAnimationFrame(J), null);
1634
+ }, Oe = () => {
1635
+ Y &&= (r.cancelAnimationFrame(Y), null);
1636
+ }, ke = () => {
1637
+ if (q === null) {
1632
1638
  let e = $().getBoundingClientRect();
1633
- Y = Math.max(0, r.scrollY + e.top - t.stickyTop);
1639
+ q = Math.max(0, r.scrollY + e.top - t.stickyTop);
1634
1640
  }
1635
- return Y;
1636
- }, Te = () => J + (q === "active" ? Math.max(0, r.performance.now() - re) : 0), Ee = () => Math.max(0, r.scrollY - we()), De = () => {
1637
- let e = K ? Te() / t.stickyDurationMs : 0, n = te ? Ee() / t.stickyScrollDistance : 0;
1641
+ return q;
1642
+ }, Ae = () => K + (G === "active" ? Math.max(0, r.performance.now() - ae) : 0), je = () => Math.max(0, r.scrollY - ke()), Me = () => {
1643
+ let e = ne ? Ae() / t.stickyDurationMs : 0, n = re ? je() / t.stickyScrollDistance : 0;
1638
1644
  return Math.max(e, n);
1639
- }, Oe = () => K ? t.stickyDurationMs - Te() : 0, ke = () => r.scrollY < we() - 1, Ae = () => {
1640
- q === "active" && (J = Te(), q = "paused", Se(), xe(), ge({
1645
+ }, Ne = () => ne ? t.stickyDurationMs - Ae() : 0, Pe = () => r.scrollY < ke() - 1, Fe = () => {
1646
+ G === "active" && (K = Ae(), G = "paused", De(), Ee(), ye({
1641
1647
  active: !1,
1642
- progress: De(),
1643
- remainingMs: Oe()
1648
+ progress: Me(),
1649
+ remainingMs: Ne()
1644
1650
  }));
1645
- }, je = () => {
1646
- q !== "paused" || ke() || (q = "active", re = r.performance.now(), be(), Ne());
1647
- }, Me = () => {
1648
- q !== "active" && q !== "paused" || (q === "active" && (J = Te()), q = "released", Se(), xe(), ge({
1651
+ }, Ie = () => {
1652
+ G !== "paused" || Pe() || (G = "active", ae = r.performance.now(), Te(), Re());
1653
+ }, Le = () => {
1654
+ G !== "active" && G !== "paused" || (G === "active" && (K = Ae()), G = "released", De(), Ee(), ye({
1649
1655
  active: !1,
1650
1656
  progress: 1,
1651
1657
  remainingMs: 0
1652
1658
  }));
1653
- }, Ne = () => {
1654
- if (q !== "active") return;
1655
- if (ke()) {
1656
- Ae();
1659
+ }, Re = () => {
1660
+ if (G !== "active") return;
1661
+ if (Pe()) {
1662
+ Fe();
1657
1663
  return;
1658
1664
  }
1659
- let e = Te(), n = Ee(), i = K ? e / t.stickyDurationMs : 0, a = te ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = K ? t.stickyDurationMs - e : 0;
1660
- if (be(), ge({
1665
+ let e = Ae(), n = je(), i = ne ? e / t.stickyDurationMs : 0, a = re ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = ne ? t.stickyDurationMs - e : 0;
1666
+ if (Te(), ye({
1661
1667
  active: !0,
1662
1668
  progress: o,
1663
1669
  remainingMs: s
1664
1670
  }), i >= 1 || a >= 1) {
1665
- Me();
1671
+ Le();
1666
1672
  return;
1667
1673
  }
1668
- X = r.requestAnimationFrame(Ne);
1669
- }, Pe = () => {
1670
- if (!ne || q !== "pending" || !F) return;
1671
- Ce();
1674
+ J = r.requestAnimationFrame(Re);
1675
+ }, ze = () => {
1676
+ if (!ie || G !== "pending" || !F) return;
1677
+ Oe();
1672
1678
  let e = $().getBoundingClientRect();
1673
- Y = Math.max(0, r.scrollY + e.top - t.stickyTop), J = 0, q = "active", re = r.performance.now(), be(), Ne();
1674
- }, Fe = () => {
1675
- !ne || q !== "pending" || !F || $().getBoundingClientRect().top <= t.stickyTop && Pe();
1676
- }, Ie = () => {
1677
- q === "pending" ? Fe() : q === "active" && ke() ? Ae() : q === "paused" && je();
1678
- }, Le = () => {
1679
- if (!ne || q !== "pending" || !F) {
1680
- Z = null;
1679
+ q = Math.max(0, r.scrollY + e.top - t.stickyTop), K = 0, G = "active", ae = r.performance.now(), Te(), Re();
1680
+ }, Be = () => {
1681
+ !ie || G !== "pending" || !F || $().getBoundingClientRect().top <= t.stickyTop && ze();
1682
+ }, Ve = () => {
1683
+ G === "pending" ? Be() : G === "active" && Pe() ? Fe() : G === "paused" && Ie();
1684
+ }, He = () => {
1685
+ if (!ie || G !== "pending" || !F) {
1686
+ Y = null;
1681
1687
  return;
1682
1688
  }
1683
- Fe(), Z = q === "pending" ? r.requestAnimationFrame(Le) : null;
1684
- }, Re = () => {
1685
- ce();
1689
+ Be(), Y = G === "pending" ? r.requestAnimationFrame(He) : null;
1690
+ }, Ue = () => {
1691
+ de();
1686
1692
  let e = n.parentElement;
1687
1693
  for (; e && e !== i.body && e !== i.documentElement;) {
1688
1694
  let t = r.getComputedStyle(e);
1689
1695
  if (t.position === "fixed" || t.position === "sticky") {
1690
- U = e, W = e.getAttribute("style");
1696
+ U = e, te = e.getAttribute("style");
1691
1697
  break;
1692
1698
  }
1693
1699
  e = e.parentElement;
@@ -1712,7 +1718,7 @@ var e = (e, t, n) => {
1712
1718
  } catch (e) {
1713
1719
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1714
1720
  }
1715
- if (a.setAttribute("poweredAC", "0.1.73"), _) {
1721
+ if (a.setAttribute("poweredAC", "0.1.74"), _) {
1716
1722
  let e = _.style;
1717
1723
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1718
1724
  }
@@ -1884,7 +1890,7 @@ var e = (e, t, n) => {
1884
1890
  padding: 0 !important;
1885
1891
  }
1886
1892
  `, i.head.appendChild(P), f.setup && f.setup(i, a), f === u.wwos) {
1887
- let e = de();
1893
+ let e = me();
1888
1894
  e && (A = e.el, j = A.getAttribute("style"), M = e.list, N = M ? M.getAttribute("style") : null, A.style.marginLeft = "10px", A.style.marginRight = "10px", A.style.width = "calc(100% - 20px)", M && (M.style.width = "100%"));
1889
1895
  }
1890
1896
  if (o && f !== u.afr && (U || p)) {
@@ -1894,24 +1900,24 @@ var e = (e, t, n) => {
1894
1900
  let n = I.style;
1895
1901
  n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(I, i.body.firstChild);
1896
1902
  }
1897
- n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", L = ue(), o.parentElement.insertBefore(L, o), U ? (U.style.position = "static", U.style.inset = "auto", U.style.height = "0", U.style.minHeight = "0", U.style.maxHeight = "0", U.style.overflow = "hidden", U.style.backgroundColor = "transparent", U.style.boxShadow = "none", U.style.border = "0", U.style.outline = "0", U.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), h.height = "0", h.minHeight = "0", h.width = "0", h.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1903
+ n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", L = pe(), o.parentElement.insertBefore(L, o), U ? (U.style.position = "static", U.style.inset = "auto", U.style.height = "0", U.style.minHeight = "0", U.style.maxHeight = "0", U.style.overflow = "hidden", U.style.backgroundColor = "transparent", U.style.boxShadow = "none", U.style.border = "0", U.style.outline = "0", U.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), h.height = "0", h.minHeight = "0", h.width = "0", h.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1898
1904
  for (let { el: e } of k) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1899
- C && (C.style.borderTop = "0", C.style.outline = "0", C.style.boxShadow = "none"), T && (T.style.borderBottom = "0"), D && (D.style.marginLeft = "14px", D.style.marginRight = "14px", D.style.position = "relative", D.style.zIndex = "2"), ce();
1905
+ C && (C.style.borderTop = "0", C.style.outline = "0", C.style.boxShadow = "none"), T && (T.style.borderBottom = "0"), D && (D.style.marginLeft = "14px", D.style.marginRight = "14px", D.style.position = "relative", D.style.zIndex = "2"), de();
1900
1906
  }
1901
- L || (L = ue(), a.appendChild(L));
1902
- }, ze = null, Be = null, Ve = !1, He = () => {
1907
+ L || (L = pe(), a.appendChild(L));
1908
+ }, We = null, Ge = null, Ke = !1, qe = () => {
1903
1909
  let e = r.innerWidth, n = r.innerHeight;
1904
1910
  if (e > n) {
1905
1911
  let r = n / e, i = Math.round(t.billboardHeight * r);
1906
1912
  a.style.height = i + "px", a.style.minHeight = i + "px", L && (L.style.height = i + "px", L.style.minHeight = i + "px", L.style.maxHeight = i + "px"), F && (F.style.height = i + "px");
1907
1913
  } else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", L && (L.style.height = t.billboardHeight + "px", L.style.minHeight = t.billboardHeight + "px", L.style.maxHeight = t.billboardHeight + "px"), F && (F.style.height = t.billboardHeight + "px");
1908
- q === "active" && be();
1914
+ G === "active" && Te();
1909
1915
  };
1910
- if (Re(), l && l !== "about:blank") try {
1916
+ if (Ue(), l && l !== "about:blank") try {
1911
1917
  let e = new URL(l);
1912
1918
  e.searchParams.set("mfRole", "billboard"), F = i.createElement("iframe"), F.src = e.href, F.setAttribute("data-mf-billboard-iframe", ""), F.setAttribute("scrolling", "no"), F.setAttribute("frameborder", "0");
1913
1919
  let n = F.style;
1914
- n.position = "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = "1", (L || a).appendChild(F), ne && (ie = Ie, r.addEventListener("scroll", ie, { passive: !0 }), Z = r.requestAnimationFrame(Le));
1920
+ n.position = "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = "1", (L || a).appendChild(F), ie && (oe = Ve, r.addEventListener("scroll", oe, { passive: !0 }), Y = r.requestAnimationFrame(He));
1915
1921
  } catch (e) {
1916
1922
  console.warn("[mobilefireplace] Could not create billboard iframe:", e);
1917
1923
  }
@@ -1928,39 +1934,39 @@ var e = (e, t, n) => {
1928
1934
  try {
1929
1935
  r.__mfBridge.billboardWindow = F.contentWindow;
1930
1936
  } catch {}
1931
- }), ze = He, r.addEventListener("resize", ze), He(), Be = () => {
1932
- Ue();
1933
- }, window.addEventListener("pagehide", Be), window.addEventListener("beforeunload", Be), t.onAdapt && r.requestAnimationFrame(() => {
1937
+ }), We = qe, r.addEventListener("resize", We), qe(), Ge = () => {
1938
+ Je();
1939
+ }, window.addEventListener("pagehide", Ge), window.addEventListener("beforeunload", Ge), t.onAdapt && r.requestAnimationFrame(() => {
1934
1940
  r.__mfBridge.adapted = !0, t.onAdapt();
1935
1941
  });
1936
- let Ue = () => {
1937
- if (!Ve) {
1938
- Ve = !0, Be &&= (window.removeEventListener("pagehide", Be), window.removeEventListener("beforeunload", Be), null), ze &&= (r.removeEventListener("resize", ze), null), ie &&= (r.removeEventListener("scroll", ie), null), Se(), Ce(), ge({
1942
+ let Je = () => {
1943
+ if (!Ke) {
1944
+ Ke = !0, Ge &&= (window.removeEventListener("pagehide", Ge), window.removeEventListener("beforeunload", Ge), null), We &&= (r.removeEventListener("resize", We), null), oe &&= (r.removeEventListener("scroll", oe), null), De(), Oe(), ye({
1939
1945
  active: !1,
1940
1946
  progress: 1,
1941
1947
  remainingMs: 0
1942
- }), P && P.parentNode && (P.parentNode.removeChild(P), P = null), F && F.parentNode && (F.parentNode.removeChild(F), F = null), L && L.parentNode && (L.parentNode.removeChild(L), L = null), I && I.parentNode && (I.parentNode.removeChild(I), I = null);
1948
+ }), P && P.parentNode && (P.parentNode.removeChild(P), P = null), F && F.parentNode && (F.parentNode.removeChild(F), F = null), Z = null, Q = null, L && L.parentNode && (L.parentNode.removeChild(L), L = null), I && I.parentNode && (I.parentNode.removeChild(I), I = null);
1943
1949
  try {
1944
1950
  delete r.__mfBridge;
1945
1951
  } catch {}
1946
- for (let e = G.length - 1; e >= 0; --e) {
1947
- let { shell: t, parent: n, nextSibling: r } = G[e];
1952
+ for (let e = W.length - 1; e >= 0; --e) {
1953
+ let { shell: t, parent: n, nextSibling: r } = W[e];
1948
1954
  !t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
1949
1955
  }
1950
- G.length = 0, z && (B && B.parentNode === z ? z.insertBefore(n, B) : z.appendChild(n), z = null, B = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1956
+ W.length = 0, z && (B && B.parentNode === z ? z.insertBefore(n, B) : z.appendChild(n), z = null, B = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1951
1957
  for (let { el: e, orig: t } of R) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1952
- R.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), V &&= (H && (ee && ee.parentNode === H ? H.insertBefore(V, ee) : H.appendChild(V), H = null, ee = null), null), y && (y.removeAttribute("data-mf-slot"), b ? y.setAttribute("style", b) : y.removeAttribute("style")), U && (W ? U.setAttribute("style", W) : U.removeAttribute("style"), U = null, W = null);
1958
+ R.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), V &&= (H && (ee && ee.parentNode === H ? H.insertBefore(V, ee) : H.appendChild(V), H = null, ee = null), null), y && (y.removeAttribute("data-mf-slot"), b ? y.setAttribute("style", b) : y.removeAttribute("style")), U && (te ? U.setAttribute("style", te) : U.removeAttribute("style"), U = null, te = null);
1953
1959
  for (let { el: e, orig: t } of k) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1954
1960
  M && (N ? M.setAttribute("style", N) : M.removeAttribute("style"), M = null, N = null), A && (j ? A.setAttribute("style", j) : A.removeAttribute("style"), A = null, j = null), o && (S ? o.setAttribute("style", S) : o.removeAttribute("style")), C && (w ? C.setAttribute("style", w) : C.removeAttribute("style")), T && (E ? T.setAttribute("style", E) : T.removeAttribute("style")), D && (O ? D.setAttribute("style", O) : D.removeAttribute("style")), s && (x ? s.setAttribute("style", x) : s.removeAttribute("style"));
1955
1961
  }
1956
1962
  };
1957
- return Ue;
1963
+ return Je;
1958
1964
  }, A = () => {};
1959
1965
  function j({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
1960
1966
  typeof A == "function" && A();
1961
1967
  let c = () => {};
1962
1968
  return e === "fireplace" ? c = o(t) : e === "fireplace-collant" ? c = s(t) : e === "logomorph" ? c = T(n, r, i) : e === "headingintegration" ? c = w(a) : e === "interscroller" ? c = D(a) : e === "liquidframe" ? c = O(a) : e === "mobilefireplace" ? c = k(a) : console.warn("[powered-ad-config] Unknown ad format:", e), A = typeof c == "function" ? c : () => {}, A;
1963
1969
  }
1964
- j.version = "0.1.73";
1970
+ j.version = "0.1.74";
1965
1971
  //#endregion
1966
1972
  export { j as default };
@@ -102,13 +102,13 @@
102
102
  position: relative;
103
103
  z-index: 1086;
104
104
  }
105
- `),o(d.filter(e=>e!==u&&e!==f),[[`position`,`relative`],[`zIndex`,`1071`]]),o(Array.from(r.querySelectorAll(`main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*="adspot-desktop-banner-"]`)),[[`position`,`relative`],[`zIndex`,`1072`]]);let p=i(r.querySelector(`footer`),`div`);p&&(p.style.position=`relative`),y(r)}},E=()=>_()?T:w,D={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`)}},O=[{site:`https://www.nine.com.au/sport`,config:E},{site:`https://www.nine.com.au/product-reviews`,config:p},{site:`https://www.nine.com.au/property`,config:p},{site:`https://www.nine.com.au/entertainment`,config:C},{site:`https://staging.nine.com.au/sport`,config:E},{site:`https://staging.nine.com.au/product-reviews`,config:p},{site:`https://staging.nine.com.au/property`,config:p},{site:`https://staging.nine.com.au/entertainment`,config:C},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:C},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:C},{site:`https://preview.nine.com.au/`,config:C},{site:`https://www.nine`,config:C},{site:`https://staging.nine`,config:C},{site:`https://entertainment`,config:f},{site:`https://celebrity`,config:f},{site:`https://homes`,config:f},{site:`https://travel`,config:f},{site:`https://honey`,config:f},{site:`https://style`,config:f},{site:`https://coach`,config:f},{site:`https://kitchen`,config:f},{site:`https://finance`,config:f},{site:`https://staging.wwos`,config:E},{site:`https://www.9news`,config:D},{site:`https://staging.9news`,config:D},{site:`https://www.yourtv`,config:f},{site:`https://staging.yourtv`,config:f},{site:`https://9now`,config:p},{site:`https://creative-preview-an.com`,config:f}],k=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=R.siteBackgroundColor),P(),N(),M(),c.addEventListener(`scroll`,L),z=setTimeout(L,50),R===S||R===T){let e=R===S?m():null,t=e?.appRoot||h()||l.body,n=e?.desktopHeaderAds||l.querySelector(`#desktop-header-ads`);t&&c.MutationObserver&&(d=new c.MutationObserver(()=>{I()}),d.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&d.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),c.addEventListener(`resize`,I),I()}},A=()=>{let e=null;return e=l.querySelector(`div[id*="billboard"][id*="above"]`),e},j=()=>{let e=c.location.href;for(let t=0;t<O.length;t+=1)if(e.indexOf(O[t].site)>=0)return typeof O[t].config==`function`?O[t].config():O[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return f;if(n.includes(`9news`))return D;if(n.includes(`yourtv`))return f;if(n.includes(`9now`))return p;if(n===`www.nine.com.au`||n===`staging.nine.com.au`||n===`preview.nine.com.au`||n===`render-web-nine-staging-v1.ffxblue.com.au`||n===`render-web-nine-production-v1.ffxblue.com.au`)return r.startsWith(`/sport`)?E():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?p:C();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return f}catch{return C()}return C()},M=()=>{if(!window.parent)return;let e=l.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&c.getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${R.stickyMargin.offset}px`);break}},N=()=>{if(!s)return;let e=s.style;e.width=R.iframeWidth||`100%`,e.height=R.iframeHeight||`1000px`,e.position=`fixed`,R.iframeTop==null?e.removeProperty(`top`):e.top=R.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=s.parentElement;for(;t&&t!==l.body&&t!==l.documentElement;){let e=c.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},P=()=>{let e=A();if(!e)return;a(e,`0.1.73`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=R.adNodeMarginTop+`px`,t.marginBottom=R.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,R.zIndex&&R.zIndex()},F=()=>{let e=c.scrollY,t=s.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=B?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>B&&e<=V?(t.transform=`translate(-50%, ${-B}px)`,n.transform=`translateY(${B-e}px)`):e>V&&(t.transform=`translate(-50%, ${-B}px)`,n.transform=`translateY(-250px)`)},I=()=>{R!==S&&R!==T||u||(u=c.requestAnimationFrame(()=>{u=null,N(),P(),M(),F()}))},L=()=>{F()};A();let R=j();if(!R)return()=>{};let z=null,B=-R.responsiveScroll+o+v(),V=B+250;return k(),()=>{c.removeEventListener(`scroll`,L),c.removeEventListener(`resize`,I),d&&=(d.disconnect(),null),u&&=(c.cancelAnimationFrame(u),null),z&&=(clearTimeout(z),null)}},s=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let a=document.getElementById(`nineMasthead`),o=a?a.style:{},s,c=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
105
+ `),o(d.filter(e=>e!==u&&e!==f),[[`position`,`relative`],[`zIndex`,`1071`]]),o(Array.from(r.querySelectorAll(`main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*="adspot-desktop-banner-"]`)),[[`position`,`relative`],[`zIndex`,`1072`]]);let p=i(r.querySelector(`footer`),`div`);p&&(p.style.position=`relative`),y(r)}},E=()=>_()?T:w,D={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`)}},O=[{site:`https://www.nine.com.au/sport`,config:E},{site:`https://www.nine.com.au/product-reviews`,config:p},{site:`https://www.nine.com.au/property`,config:p},{site:`https://www.nine.com.au/entertainment`,config:C},{site:`https://staging.nine.com.au/sport`,config:E},{site:`https://staging.nine.com.au/product-reviews`,config:p},{site:`https://staging.nine.com.au/property`,config:p},{site:`https://staging.nine.com.au/entertainment`,config:C},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:C},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:C},{site:`https://preview.nine.com.au/`,config:C},{site:`https://www.nine`,config:C},{site:`https://staging.nine`,config:C},{site:`https://entertainment`,config:f},{site:`https://celebrity`,config:f},{site:`https://homes`,config:f},{site:`https://travel`,config:f},{site:`https://honey`,config:f},{site:`https://style`,config:f},{site:`https://coach`,config:f},{site:`https://kitchen`,config:f},{site:`https://finance`,config:f},{site:`https://staging.wwos`,config:E},{site:`https://www.9news`,config:D},{site:`https://staging.9news`,config:D},{site:`https://www.yourtv`,config:f},{site:`https://staging.yourtv`,config:f},{site:`https://9now`,config:p},{site:`https://creative-preview-an.com`,config:f}],k=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=R.siteBackgroundColor),P(),N(),M(),c.addEventListener(`scroll`,L),z=setTimeout(L,50),R===S||R===T){let e=R===S?m():null,t=e?.appRoot||h()||l.body,n=e?.desktopHeaderAds||l.querySelector(`#desktop-header-ads`);t&&c.MutationObserver&&(d=new c.MutationObserver(()=>{I()}),d.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&d.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),c.addEventListener(`resize`,I),I()}},A=()=>{let e=null;return e=l.querySelector(`div[id*="billboard"][id*="above"]`),e},j=()=>{let e=c.location.href;for(let t=0;t<O.length;t+=1)if(e.indexOf(O[t].site)>=0)return typeof O[t].config==`function`?O[t].config():O[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return f;if(n.includes(`9news`))return D;if(n.includes(`yourtv`))return f;if(n.includes(`9now`))return p;if(n===`www.nine.com.au`||n===`staging.nine.com.au`||n===`preview.nine.com.au`||n===`render-web-nine-staging-v1.ffxblue.com.au`||n===`render-web-nine-production-v1.ffxblue.com.au`)return r.startsWith(`/sport`)?E():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?p:C();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return f}catch{return C()}return C()},M=()=>{if(!window.parent)return;let e=l.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&c.getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${R.stickyMargin.offset}px`);break}},N=()=>{if(!s)return;let e=s.style;e.width=R.iframeWidth||`100%`,e.height=R.iframeHeight||`1000px`,e.position=`fixed`,R.iframeTop==null?e.removeProperty(`top`):e.top=R.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=s.parentElement;for(;t&&t!==l.body&&t!==l.documentElement;){let e=c.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},P=()=>{let e=A();if(!e)return;a(e,`0.1.74`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=R.adNodeMarginTop+`px`,t.marginBottom=R.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,R.zIndex&&R.zIndex()},F=()=>{let e=c.scrollY,t=s.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=B?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>B&&e<=V?(t.transform=`translate(-50%, ${-B}px)`,n.transform=`translateY(${B-e}px)`):e>V&&(t.transform=`translate(-50%, ${-B}px)`,n.transform=`translateY(-250px)`)},I=()=>{R!==S&&R!==T||u||(u=c.requestAnimationFrame(()=>{u=null,N(),P(),M(),F()}))},L=()=>{F()};A();let R=j();if(!R)return()=>{};let z=null,B=-R.responsiveScroll+o+v(),V=B+250;return k(),()=>{c.removeEventListener(`scroll`,L),c.removeEventListener(`resize`,I),d&&=(d.disconnect(),null),u&&=(c.cancelAnimationFrame(u),null),z&&=(clearTimeout(z),null)}},s=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let a=document.getElementById(`nineMasthead`),o=a?a.style:{},s,c=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
106
106
  div:has(#adspot-tablet-takeover-2-above) {
107
107
  position: static;
108
108
  }
109
- `},l={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="video-index__MyContainer"]`)?248:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`),e.querySelector(`div[class*="MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`)}},d={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),c(e)}},f={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){let e=window.parent.document,t=i(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),c(e)}},p={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:175,isSticky:!0},maskOffset:274,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`.score-strip`)?.setAttribute(`style`,`display:none`),e.querySelector(`.feed-header__breadcrumbs`)?.setAttribute(`style`,`display:none`),e.querySelector(`.layout.container`)?.setAttribute(`style`,`padding:0`),e.querySelector(`.empty-div`)?.setAttribute(`style`,`display:none`),c(e)}},m={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="VideoIndexComponent"]`)?324:292,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`);let t=e.querySelector(`[class*="VideoIndexComponent"]`);t&&(e.querySelector(`.breadcrumbs`)?.setAttribute(`style`,`display:none`),t.style.maxWidth=`1190px`,t.style.margin=`auto`,t.style.position=`relative`)}},h=[{site:`https://www.nine.com.au/sport`,config:f},{site:`https://www.nine.com.au/product-reviews`,config:u},{site:`https://www.nine.com.au/property`,config:u},{site:`https://www.nine.com.au/entertainment`,config:u},{site:`https://staging.nine.com.au/sport`,config:f},{site:`https://staging.nine.com.au/product-reviews`,config:u},{site:`https://staging.nine.com.au/property`,config:u},{site:`https://staging.nine.com.au/entertainment`,config:u},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:d},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:d},{site:`https://preview.nine.com.au/`,config:d},{site:`https://www.nine`,config:d},{site:`https://staging.nine`,config:d},{site:`https://entertainment`,config:l},{site:`https://celebrity`,config:l},{site:`https://homes`,config:l},{site:`https://travel`,config:l},{site:`https://honey`,config:l},{site:`https://style`,config:l},{site:`https://coach`,config:l},{site:`https://kitchen`,config:l},{site:`https://finance`,config:l},{site:`https://wwos`,config:p},{site:`https://staging.wwos`,config:f},{site:`https://www.9news`,config:m},{site:`https://staging.9news`,config:m},{site:`https://www.yourtv`,config:l},{site:`https://staging.yourtv`,config:l},{site:`https://9now`,config:u},{site:`https://creative-preview-an.com`,config:l}],g=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=O.siteBackgroundColor),a&&(o.setProperty(`--masthead-height`,`250px`),o.height=`var(--masthead-height)`),S(),x(),y(),C(),n.addEventListener(`scroll`,E,{passive:!0}),k=setTimeout(E,50)},_=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},v=()=>{let e=r.querySelector(`nav`);if(!e)return 0;let t=n.getComputedStyle(e);if(t.position!==`fixed`)return 0;let i=parseFloat(t.top||`0`);return Number.isFinite(i)&&Math.abs(i)>1?0:Math.round(e.getBoundingClientRect().height)||0},y=()=>{let e=null;if(!window.parent)return e;if(e=r.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${O.stickyMargin.offset}px`);break}},b=()=>{let e=n.location.href;for(let t=0;t<h.length;t+=1)if(e.indexOf(h[t].site)>=0)return h[t].config},x=()=>{if(!t)return;let e=t.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},S=()=>{if(!D)return;let e=D.style;D.className=``,e.minHeight=`250px`,e.marginTop=O.adNodeMarginTop+`px`,e.marginBottom=O.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,O.zIndex&&O.zIndex()},C=()=>{s=r.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||r.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||r.querySelector(`div[class*="__MyContainer"]`)||r.querySelector(`div[class*="__ArticleContainer"]`)||r.querySelector(`div[class*="__VideoIndexComponent"]`)||r.querySelector(`div.container.layout`)||r.querySelector(`main.container.layout`),s&&(s.style.willChange=`clip-path`,s.style.transition=`none`,s.style.webkitBackfaceVisibility=`hidden`,s.style.backfaceVisibility=`hidden`,s.style.transform=`translate3d(0,0,0)`,s.style.backgroundColor=O.siteBackgroundColor,s.style.setProperty(`--mask-inset`,`0px`),s.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},w=0,T=0,E=()=>{let e=n.scrollY,r=e>w,i=e>j?e-O.maskOffset:0,a=Math.abs(i-T);if(s)if(r&&i>T)if(a>100){let e=Math.max(0,i-100);s.style.transition=`none`,s.style.setProperty(`--mask-inset`,`${e}px`),s.offsetHeight,s.style.transition=`clip-path 0.3s ease-out`,s.style.setProperty(`--mask-inset`,`${i}px`)}else s.style.transition=`clip-path 0.3s ease-out`,s.style.setProperty(`--mask-inset`,`${i}px`);else s.style.transition=`none`,s.style.setProperty(`--mask-inset`,`${i}px`);w=e,T=i,e>j?(t.style.setProperty(`--transform-y`,`${-A}px`),o.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>A&&e<=j?(t.style.setProperty(`--transform-y`,`${-A}px`),o.setProperty(`--masthead-height`,`${250+A-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=A&&(t.style.setProperty(`--transform-y`,`${-e}px`),o.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},D=_(),O=b();if(!O)return()=>{};let k=null,A=-O.responsiveScroll+e+v(),j=A+150;return g(),()=>{n.removeEventListener(`scroll`,E),k&&=(clearTimeout(k),null)}},c=866,l=68,u=16,d=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,f=`adspot-desktop-takeover-2-above`,p=-24,m=-24,h=[`www.nine.com.au`,`staging.nine.com.au`,`preview.nine.com.au`,`render-web-nine-staging-v1.ffxblue.com.au`,`render-web-nine-production-v1.ffxblue.com.au`],g=[{hostnames:h,path:`/sport`,headingText:`Sport`,slotId:f}],_=new Set([`localhost`,`127.0.0.1`]),v=`__poweredAdConfigHeadingintegrationActive`,y=`data-pac-headingintegration-owner`,b=`data-pac-reparented`,x=(e,t)=>{if(typeof e==`number`&&Number.isFinite(e))return`${e}px`;if(typeof e==`string`){let n=e.trim();return n?/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n:`${t}px`}return`${t}px`},S=e=>{if(!e||typeof e!=`object`)return null;let t=typeof e.headingText==`string`?e.headingText.trim():``,n=typeof e.path==`string`?e.path.trim().toLowerCase():``,r=typeof e.pathPrefix==`string`?e.pathPrefix.trim().toLowerCase():``,i=Array.isArray(e.hostnames)?e.hostnames.map(e=>String(e).trim().toLowerCase()).filter(Boolean):[];return!t||!n&&!r?null:{headingText:t,path:n||null,pathPrefix:r||null,slotId:typeof e.slotId==`string`&&e.slotId.trim()?e.slotId.trim():f,hostnames:i.length?i:h}},C=e=>{if(!Array.isArray(e)||e.length===0)return g;let t=e.map(S).filter(Boolean);return t.length?t:g},w=({offsetTop:e=p,offsetLeft:t=m,width:n=c,height:r=l,pageTargets:i=g}={})=>{let a=window.frameElement||null;if(!a)return()=>{};let o=window.parent;if(!o||o===window)return()=>{};let s=null;try{s=o.document,o.location.href}catch{return()=>{}}let f=o[v];if(f?.iframe===a&&typeof f.cleanup==`function`)return f.cleanup;if(f?.iframe?.isConnected&&typeof f?.cleanup==`function`)return()=>{};typeof f?.cleanup==`function`&&f.cleanup();let h=`headingintegration-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,S=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},w=()=>{try{let e=window.location.hostname.toLowerCase();return _.has(e)?!0:new URLSearchParams(window.location.search).get(`keepHeadingintegrationVisible`)===`1`}catch{return!1}},T=(e=a.parentElement)=>{let t=e;for(;t&&t!==s.body;){let e=t.id||``,n=t.getAttribute?.(`data-testid`)||``,r=t.getAttribute?.(`type`)||``;if(e.includes(`adspot`)||n.toLowerCase().includes(`ad`)||r)return t;t=t.parentElement}return a.parentElement},E=()=>{try{let e=new URL(o.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return P.find(e=>{let r=e.hostnames.includes(t),i=e.path?n===e.path:n.startsWith(e.pathPrefix);return r&&i})||null}catch{return null}return null},D=e=>{let t=Array.from(s.querySelectorAll(d));if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},O=null,k=null;w();let A=x(e,p),j=x(t,m),M=x(n,c),N=x(r,l),P=C(i),F=E();if(!F)return()=>{};let I=T((F.slotId?s.getElementById(F.slotId):null)||a.parentElement);if(!I)return()=>{};let L=I.getAttribute(y);if(L&&L!==h)return()=>{};let R={width:I.style.width,maxWidth:I.style.maxWidth,minWidth:I.style.minWidth,height:I.style.height,minHeight:I.style.minHeight,marginTop:I.style.marginTop,marginBottom:I.style.marginBottom,marginLeft:I.style.marginLeft,marginRight:I.style.marginRight,position:I.style.position,top:I.style.top,left:I.style.left,right:I.style.right,transform:I.style.transform,display:I.style.display,opacity:I.style.opacity,transition:I.style.transition,pointerEvents:I.style.pointerEvents,zIndex:I.style.zIndex,overflow:I.style.overflow},z={width:a.style.width,height:a.style.height,display:a.style.display,border:a.style.border,position:a.style.position,pointerEvents:a.style.pointerEvents},B=[],V=parseFloat(N)||l,H=parseFloat(A)||0,ee=parseFloat(j)||0,U=()=>{let e=I.parentElement;for(;e&&e!==s.body;)B.push({element:e,overflow:e.style.overflow}),S(e,`overflow`,`visible`),e=e.parentElement},W=()=>{S(I,`width`,M),S(I,`maxWidth`,M),S(I,`minWidth`,M),S(I,`height`,N),S(I,`minHeight`,N),S(I,`display`,`block`),S(I,`overflow`,`hidden`),S(I,`pointerEvents`,`none`),S(I,`zIndex`,`1080`),I.setAttribute(y,h),S(a,`width`,M),S(a,`height`,N),S(a,`display`,`block`),S(a,`border`,`0`),S(a,`position`,`relative`),S(a,`pointerEvents`,`auto`)},G={element:null,position:``},K=()=>{let e=I.parentElement;e&&o.getComputedStyle(e).position===`static`&&(G.element=e,G.position=e.style.position,S(e,`position`,`relative`)),S(I,`position`,`absolute`),S(I,`top`,`${H}px`),S(I,`left`,`${ee}px`),S(I,`right`,`auto`),S(I,`marginTop`,`0px`),S(I,`marginBottom`,`${u}px`),S(I,`marginLeft`,`0px`),S(I,`marginRight`,`0px`),S(I,`transform`,``)},te=e=>{let t=null;try{let e=a.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
109
+ `},l={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="video-index__MyContainer"]`)?248:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`),e.querySelector(`div[class*="MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`)}},d={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),c(e)}},f={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){let e=window.parent.document,t=i(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),c(e)}},p={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:175,isSticky:!0},maskOffset:274,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`.score-strip`)?.setAttribute(`style`,`display:none`),e.querySelector(`.feed-header__breadcrumbs`)?.setAttribute(`style`,`display:none`),e.querySelector(`.layout.container`)?.setAttribute(`style`,`padding:0`),e.querySelector(`.empty-div`)?.setAttribute(`style`,`display:none`),c(e)}},m={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="VideoIndexComponent"]`)?324:292,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`);let t=e.querySelector(`[class*="VideoIndexComponent"]`);t&&(e.querySelector(`.breadcrumbs`)?.setAttribute(`style`,`display:none`),t.style.maxWidth=`1190px`,t.style.margin=`auto`,t.style.position=`relative`)}},h=[{site:`https://www.nine.com.au/sport`,config:f},{site:`https://www.nine.com.au/product-reviews`,config:u},{site:`https://www.nine.com.au/property`,config:u},{site:`https://www.nine.com.au/entertainment`,config:u},{site:`https://staging.nine.com.au/sport`,config:f},{site:`https://staging.nine.com.au/product-reviews`,config:u},{site:`https://staging.nine.com.au/property`,config:u},{site:`https://staging.nine.com.au/entertainment`,config:u},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:d},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:d},{site:`https://preview.nine.com.au/`,config:d},{site:`https://www.nine`,config:d},{site:`https://staging.nine`,config:d},{site:`https://entertainment`,config:l},{site:`https://celebrity`,config:l},{site:`https://homes`,config:l},{site:`https://travel`,config:l},{site:`https://honey`,config:l},{site:`https://style`,config:l},{site:`https://coach`,config:l},{site:`https://kitchen`,config:l},{site:`https://finance`,config:l},{site:`https://wwos`,config:p},{site:`https://staging.wwos`,config:f},{site:`https://www.9news`,config:m},{site:`https://staging.9news`,config:m},{site:`https://www.yourtv`,config:l},{site:`https://staging.yourtv`,config:l},{site:`https://9now`,config:u},{site:`https://creative-preview-an.com`,config:l}],g=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=O.siteBackgroundColor),a&&(o.setProperty(`--masthead-height`,`250px`),o.height=`var(--masthead-height)`),S(),x(),y(),C(),n.addEventListener(`scroll`,E,{passive:!0}),k=setTimeout(E,50)},_=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},v=()=>{let e=r.querySelector(`nav`);if(!e)return 0;let t=n.getComputedStyle(e);if(t.position!==`fixed`)return 0;let i=parseFloat(t.top||`0`);return Number.isFinite(i)&&Math.abs(i)>1?0:Math.round(e.getBoundingClientRect().height)||0},y=()=>{let e=null;if(!window.parent)return e;if(e=r.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${O.stickyMargin.offset}px`);break}},b=()=>{let e=n.location.href;for(let t=0;t<h.length;t+=1)if(e.indexOf(h[t].site)>=0)return h[t].config},x=()=>{if(!t)return;let e=t.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},S=()=>{if(!D)return;let e=D.style;D.className=``,e.minHeight=`250px`,e.marginTop=O.adNodeMarginTop+`px`,e.marginBottom=O.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,O.zIndex&&O.zIndex()},C=()=>{s=r.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||r.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||r.querySelector(`div[class*="__MyContainer"]`)||r.querySelector(`div[class*="__ArticleContainer"]`)||r.querySelector(`div[class*="__VideoIndexComponent"]`)||r.querySelector(`div.container.layout`)||r.querySelector(`main.container.layout`),s&&(s.style.willChange=`clip-path`,s.style.transition=`none`,s.style.webkitBackfaceVisibility=`hidden`,s.style.backfaceVisibility=`hidden`,s.style.transform=`translate3d(0,0,0)`,s.style.backgroundColor=O.siteBackgroundColor,s.style.setProperty(`--mask-inset`,`0px`),s.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},w=0,T=0,E=()=>{let e=n.scrollY,r=e>w,i=e>j?e-O.maskOffset:0,a=Math.abs(i-T);if(s)if(r&&i>T)if(a>100){let e=Math.max(0,i-100);s.style.transition=`none`,s.style.setProperty(`--mask-inset`,`${e}px`),s.offsetHeight,s.style.transition=`clip-path 0.3s ease-out`,s.style.setProperty(`--mask-inset`,`${i}px`)}else s.style.transition=`clip-path 0.3s ease-out`,s.style.setProperty(`--mask-inset`,`${i}px`);else s.style.transition=`none`,s.style.setProperty(`--mask-inset`,`${i}px`);w=e,T=i,e>j?(t.style.setProperty(`--transform-y`,`${-A}px`),o.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>A&&e<=j?(t.style.setProperty(`--transform-y`,`${-A}px`),o.setProperty(`--masthead-height`,`${250+A-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=A&&(t.style.setProperty(`--transform-y`,`${-e}px`),o.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},D=_(),O=b();if(!O)return()=>{};let k=null,A=-O.responsiveScroll+e+v(),j=A+150;return g(),()=>{n.removeEventListener(`scroll`,E),k&&=(clearTimeout(k),null)}},c=866,l=68,u=16,d=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,f=`adspot-desktop-takeover-2-above`,p=-24,m=-24,h=[`www.nine.com.au`,`staging.nine.com.au`,`preview.nine.com.au`,`render-web-nine-staging-v1.ffxblue.com.au`,`render-web-nine-production-v1.ffxblue.com.au`],g=[{hostnames:h,path:`/sport`,headingText:`Sport`,slotId:f}],_=new Set([`localhost`,`127.0.0.1`]),v=`__poweredAdConfigHeadingintegrationActive`,y=`data-pac-headingintegration-owner`,b=`data-pac-reparented`,x=(e,t)=>{if(typeof e==`number`&&Number.isFinite(e))return`${e}px`;if(typeof e==`string`){let n=e.trim();return n?/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n:`${t}px`}return`${t}px`},S=e=>{if(!e||typeof e!=`object`)return null;let t=typeof e.headingText==`string`?e.headingText.trim():``,n=typeof e.path==`string`?e.path.trim().toLowerCase():``,r=typeof e.pathPrefix==`string`?e.pathPrefix.trim().toLowerCase():``,i=Array.isArray(e.hostnames)?e.hostnames.map(e=>String(e).trim().toLowerCase()).filter(Boolean):[];return!t||!n&&!r?null:{headingText:t,path:n||null,pathPrefix:r||null,slotId:typeof e.slotId==`string`&&e.slotId.trim()?e.slotId.trim():f,hostnames:i.length?i:h}},C=e=>{if(!Array.isArray(e)||e.length===0)return g;let t=e.map(S).filter(Boolean);return t.length?t:g},w=({offsetTop:e=p,offsetLeft:t=m,width:n=c,height:r=l,pageTargets:i=g}={})=>{let a=window.frameElement||null;if(!a)return()=>{};let o=window.parent;if(!o||o===window)return()=>{};let s=null;try{s=o.document,o.location.href}catch{return()=>{}}let f=o[v];if(f?.iframe===a&&typeof f.cleanup==`function`)return f.cleanup;if(f?.iframe?.isConnected&&typeof f?.cleanup==`function`)return()=>{};typeof f?.cleanup==`function`&&f.cleanup();let h=`headingintegration-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,S=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},w=()=>{try{let e=window.location.hostname.toLowerCase();return _.has(e)?!0:new URLSearchParams(window.location.search).get(`keepHeadingintegrationVisible`)===`1`}catch{return!1}},T=(e=a.parentElement)=>{let t=e;for(;t&&t!==s.body;){let e=t.id||``,n=t.getAttribute?.(`data-testid`)||``,r=t.getAttribute?.(`type`)||``;if(e.includes(`adspot`)||n.toLowerCase().includes(`ad`)||r)return t;t=t.parentElement}return a.parentElement},E=()=>{try{let e=new URL(o.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return P.find(e=>{let r=e.hostnames.includes(t),i=e.path?n===e.path:n.startsWith(e.pathPrefix);return r&&i})||null}catch{return null}return null},D=e=>{let t=Array.from(s.querySelectorAll(d));if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},O=null,k=null;w();let A=x(e,p),j=x(t,m),M=x(n,c),N=x(r,l),P=C(i),F=E();if(!F)return()=>{};let I=T((F.slotId?s.getElementById(F.slotId):null)||a.parentElement);if(!I)return()=>{};let L=I.getAttribute(y);if(L&&L!==h)return()=>{};let R={width:I.style.width,maxWidth:I.style.maxWidth,minWidth:I.style.minWidth,height:I.style.height,minHeight:I.style.minHeight,marginTop:I.style.marginTop,marginBottom:I.style.marginBottom,marginLeft:I.style.marginLeft,marginRight:I.style.marginRight,position:I.style.position,top:I.style.top,left:I.style.left,right:I.style.right,transform:I.style.transform,display:I.style.display,opacity:I.style.opacity,transition:I.style.transition,pointerEvents:I.style.pointerEvents,zIndex:I.style.zIndex,overflow:I.style.overflow},z={width:a.style.width,height:a.style.height,display:a.style.display,border:a.style.border,position:a.style.position,pointerEvents:a.style.pointerEvents},B=[],V=parseFloat(N)||l,H=parseFloat(A)||0,ee=parseFloat(j)||0,U=()=>{let e=I.parentElement;for(;e&&e!==s.body;)B.push({element:e,overflow:e.style.overflow}),S(e,`overflow`,`visible`),e=e.parentElement},te=()=>{S(I,`width`,M),S(I,`maxWidth`,M),S(I,`minWidth`,M),S(I,`height`,N),S(I,`minHeight`,N),S(I,`display`,`block`),S(I,`overflow`,`hidden`),S(I,`pointerEvents`,`none`),S(I,`zIndex`,`1080`),I.setAttribute(y,h),S(a,`width`,M),S(a,`height`,N),S(a,`display`,`block`),S(a,`border`,`0`),S(a,`position`,`relative`),S(a,`pointerEvents`,`auto`)},W={element:null,position:``},ne=()=>{let e=I.parentElement;e&&o.getComputedStyle(e).position===`static`&&(W.element=e,W.position=e.style.position,S(e,`position`,`relative`)),S(I,`position`,`absolute`),S(I,`top`,`${H}px`),S(I,`left`,`${ee}px`),S(I,`right`,`auto`),S(I,`marginTop`,`0px`),S(I,`marginBottom`,`${u}px`),S(I,`marginLeft`,`0px`),S(I,`marginRight`,`0px`),S(I,`transform`,``)},re=e=>{let t=null;try{let e=a.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
110
110
  `),i=Array.from(e.querySelectorAll(`script[src]`)).filter(e=>{let t=e.getAttribute(`src`)||``;return/(s0\.2mdn\.net|cdn\.jsdelivr\.net|players\.brightcove\.net)/.test(t)}).map(e=>e.outerHTML).join(`
111
- `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;a.setAttribute(b,`1`);try{e.parentNode?.insertBefore(I,e)}catch{return a.removeAttribute(b),!1}U(),W(),K();try{a.srcdoc=t}catch{return!1}return!0},ne=()=>{S(I,`position`,`fixed`),S(I,`marginTop`,`0px`),S(I,`marginBottom`,`0px`),S(I,`marginLeft`,`0px`),S(I,`marginRight`,`0px`),S(I,`transform`,``)},q=()=>{S(I,`display`,`none`)},re=()=>{S(I,`display`,`block`),S(I,`overflow`,`hidden`)},J=null,Y=()=>{if((!J||!J.isConnected)&&(J=D(F.headingText)),!J)return;let e=J.getBoundingClientRect(),t=e.top-V-u+H,n=e.left+ee;S(I,`top`,`${t}px`),S(I,`left`,`${n}px`),S(I,`right`,`auto`)},X=null,Z=null,ie=!1,Q=(e=12)=>{if(J=D(F.headingText),!J){e>1&&(k=o.setTimeout(()=>Q(e-1),250));return}te(J)||(ie=!0,U(),W(),ne(),Y(),X=()=>Y(),Z=()=>Y(),o.addEventListener(`scroll`,X,{passive:!0}),o.addEventListener(`resize`,Z))};Q();let ae=()=>{k&&=(o.clearTimeout(k),null),O&&=(o.clearTimeout(O),null),X&&=(o.removeEventListener(`scroll`,X),null),Z&&=(o.removeEventListener(`resize`,Z),null),I.getAttribute(y)===h&&I.removeAttribute(y),ie&&(Object.entries(R).forEach(([e,t])=>{I.style[e]=t}),Object.entries(z).forEach(([e,t])=>{a.style[e]=t}),B.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),o[v]?.instanceId===h&&delete o[v]};return o[v]={instanceId:h,iframe:a,cleanup:ae,show:re,hide:q},ae},T=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return e?window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1):(v(`big`),!0)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},E=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),D=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:E,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=[],l={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=a.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,a.setAttribute(`poweredAC`,`0.1.73`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else !_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},O=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=n.parentElement===a?null:n.parentElement,l=c?c.getAttribute(`style`):null,u=a.parentElement,d=u?r.getComputedStyle(u).paddingTop:null,f=null,p=parseInt(n.getAttribute(`width`),10)||320,m=parseInt(n.getAttribute(`height`),10)||50;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.73`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{f&&=(f.disconnect(),null),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c&&(l?c.setAttribute(`style`,l):c.removeAttribute(`style`)),u&&d&&d!==`0px`&&(u.style.paddingTop=d)}},k=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:8e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),p=f===u.smh||f===u.theage,m=n.getAttribute(`style`),h=n.hasAttribute(`data-mf-wallpaper-iframe`),g=a.getAttribute(`style`),_=n.parentElement===a?null:n.parentElement,v=_?_.getAttribute(`style`):null,y=a.parentElement,b=y?y.getAttribute(`style`):null,x=s?s.getAttribute(`style`):null,S=o?o.getAttribute(`style`):null,C=o?o.querySelector(`header`):null,w=C?C.getAttribute(`style`):null,T=C?C.querySelector(`.sc-5cbbddda-1`):null,E=T?T.getAttribute(`style`):null,D=i.querySelector(`footer`),O=D?D.getAttribute(`style`):null,k=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],A=null,j=null,M=null,N=null,P=null,F=null,I=null,L=null,R=[],z=null,B=null,V=null,H=null,ee=null,U=null,W=null,G=[],K=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,te=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,ne=!!(t.sticky&&(K||te)),q=`pending`,re=0,J=0,Y=null,X=null,Z=null,ie=null,Q=[],ae=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null;u.afr;let oe=e=>{if(!e||e===V||e===y||e===a)return!1;let t=e.firstElementChild;if(!t||t!==e.lastElementChild||!t.classList.contains(`container`)||t.children.length>0||t.textContent&&t.textContent.trim()||e.querySelector(`#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},se=e=>{!e?.parentElement||G.some(t=>t.shell===e)||(G.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},ce=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;oe(t)&&se(t)}},le=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(R.find(e=>e.el===t)||R.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},ue=()=>{let e=i.createElement(`div`);return e.setAttribute(`data-mf-billboard-mount`,``),e.style.height=`${t.billboardHeight}px`,e.style.minHeight=`${t.billboardHeight}px`,e.style.maxHeight=`${t.billboardHeight}px`,e.style.background=`transparent`,e.style.overflow=`visible`,e.style.position=`relative`,e.style.width=`100%`,e.style.padding=`0`,e.style.margin=`0`,e},de=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).filter(({rect:t,styles:n,list:r,listStyles:i})=>!r||!i||t.top<e-4||t.top>e+120||n.overflow!==`hidden`||parseFloat(n.borderTopLeftRadius)<4?!1:i.overflow===`auto`||i.overflowX===`auto`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},$=()=>L||a,fe=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),pe=()=>{let e=fe().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},me=()=>{let e=pe();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,ae||t.stickyTop)},he=()=>{let e=pe();return e?.zIndex&&e.zIndex>2?Math.max(t.stickyZIndex,e.zIndex+1):t.stickyZIndex},ge=({active:e,progress:t=0,remainingMs:n=0})=>{F?.contentWindow&&F.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},_e=e=>{!e||Q.some(t=>t.el===e)||Q.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},ve=e=>{let t=new Set([$()].filter(Boolean));if(f===u.afr||U||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=$()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)_e(n),n.style.setProperty(`z-index`,String(e),`important`)},ye=()=>{for(let e=Q.length-1;e>=0;--e){let{el:t,value:n,priority:r}=Q[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}Q.length=0},be=()=>{if(!F)return;le($());let e=$().getBoundingClientRect(),t=he();ve(t),portalStickyBillboard();let n=F.style;n.position=`fixed`,n.top=`${me()}px`,n.left=`${Math.round(e.left)}px`,n.width=`${Math.round(e.width)}px`,n.setProperty(`z-index`,String(t),`important`),F.setAttribute(`data-mf-sticky-active`,``)},xe=()=>{if(!F)return;restoreStickyBillboardPortal();let e=F.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),ye(),F.removeAttribute(`data-mf-sticky-active`)},Se=()=>{X&&=(r.cancelAnimationFrame(X),null)},Ce=()=>{Z&&=(r.cancelAnimationFrame(Z),null)},we=()=>{if(Y===null){let e=$().getBoundingClientRect();Y=Math.max(0,r.scrollY+e.top-t.stickyTop)}return Y},Te=()=>J+(q===`active`?Math.max(0,r.performance.now()-re):0),Ee=()=>Math.max(0,r.scrollY-we()),De=()=>{let e=K?Te()/t.stickyDurationMs:0,n=te?Ee()/t.stickyScrollDistance:0;return Math.max(e,n)},Oe=()=>K?t.stickyDurationMs-Te():0,ke=()=>r.scrollY<we()-1,Ae=()=>{q===`active`&&(J=Te(),q=`paused`,Se(),xe(),ge({active:!1,progress:De(),remainingMs:Oe()}))},je=()=>{q!==`paused`||ke()||(q=`active`,re=r.performance.now(),be(),Ne())},Me=()=>{q!==`active`&&q!==`paused`||(q===`active`&&(J=Te()),q=`released`,Se(),xe(),ge({active:!1,progress:1,remainingMs:0}))},Ne=()=>{if(q!==`active`)return;if(ke()){Ae();return}let e=Te(),n=Ee(),i=K?e/t.stickyDurationMs:0,a=te?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=K?t.stickyDurationMs-e:0;if(be(),ge({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){Me();return}X=r.requestAnimationFrame(Ne)},Pe=()=>{if(!ne||q!==`pending`||!F)return;Ce();let e=$().getBoundingClientRect();Y=Math.max(0,r.scrollY+e.top-t.stickyTop),J=0,q=`active`,re=r.performance.now(),be(),Ne()},Fe=()=>{!ne||q!==`pending`||!F||$().getBoundingClientRect().top<=t.stickyTop&&Pe()},Ie=()=>{q===`pending`?Fe():q===`active`&&ke()?Ae():q===`paused`&&je()},Le=()=>{if(!ne||q!==`pending`||!F){Z=null;return}Fe(),Z=q===`pending`?r.requestAnimationFrame(Le):null},Re=()=>{ce();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){U=e,W=e.getAttribute(`style`);break}e=e.parentElement}let d=n.parentElement;for(;d&&d!==i.body&&d!==i.documentElement;){let e=r.getComputedStyle(d);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(R.push({el:d,orig:d.getAttribute(`style`)}),d.style.transform=`none`,d.style.willChange=`auto`,d.style.contain=`none`,d.style.filter=`none`,d.style.perspective=`none`),e.overflow!==`visible`&&(R.find(e=>e.el===d)||R.push({el:d,orig:d.getAttribute(`style`)}),d.style.overflow=`visible`),d=d.parentElement}let m=n.style;if(m.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),m.setProperty(`top`,`0`,f===u.afr?`important`:``),m.setProperty(`left`,`0`,f===u.afr?`important`:``),m.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),m.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),m.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),m.setProperty(`border`,`none`,f===u.afr?`important`:``),m.setProperty(`margin`,`0`,f===u.afr?`important`:``),m.setProperty(`padding`,`0`,f===u.afr?`important`:``),m.setProperty(`display`,`block`,f===u.afr?`important`:``),m.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),m.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),I=i.createElement(`iframe`),I.src=e.href,I.setAttribute(`data-mf-wallpaper-iframe`,``),I.setAttribute(`scrolling`,`no`),I.setAttribute(`frameborder`,`0`);let t=I.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(I,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.73`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let h=a.style;h.height=t.billboardHeight+`px`,h.minHeight=t.billboardHeight+`px`,h.background=`transparent`,h.overflow=`visible`,h.position=`relative`,h.width=`100%`,h.padding=`0`,h.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,y.setAttribute(`data-mf-slot`,``));let g=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,v=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(P=i.createElement(`style`),P.id=`mobilefireplace-pac`,P.textContent=`
111
+ `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;a.setAttribute(b,`1`);try{e.parentNode?.insertBefore(I,e)}catch{return a.removeAttribute(b),!1}U(),te(),ne();try{a.srcdoc=t}catch{return!1}return!0},ie=()=>{S(I,`position`,`fixed`),S(I,`marginTop`,`0px`),S(I,`marginBottom`,`0px`),S(I,`marginLeft`,`0px`),S(I,`marginRight`,`0px`),S(I,`transform`,``)},G=()=>{S(I,`display`,`none`)},ae=()=>{S(I,`display`,`block`),S(I,`overflow`,`hidden`)},K=null,q=()=>{if((!K||!K.isConnected)&&(K=D(F.headingText)),!K)return;let e=K.getBoundingClientRect(),t=e.top-V-u+H,n=e.left+ee;S(I,`top`,`${t}px`),S(I,`left`,`${n}px`),S(I,`right`,`auto`)},J=null,Y=null,oe=!1,X=(e=12)=>{if(K=D(F.headingText),!K){e>1&&(k=o.setTimeout(()=>X(e-1),250));return}re(K)||(oe=!0,U(),te(),ie(),q(),J=()=>q(),Y=()=>q(),o.addEventListener(`scroll`,J,{passive:!0}),o.addEventListener(`resize`,Y))};X();let se=()=>{k&&=(o.clearTimeout(k),null),O&&=(o.clearTimeout(O),null),J&&=(o.removeEventListener(`scroll`,J),null),Y&&=(o.removeEventListener(`resize`,Y),null),I.getAttribute(y)===h&&I.removeAttribute(y),oe&&(Object.entries(R).forEach(([e,t])=>{I.style[e]=t}),Object.entries(z).forEach(([e,t])=>{a.style[e]=t}),B.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),o[v]?.instanceId===h&&delete o[v]};return o[v]={instanceId:h,iframe:a,cleanup:se,show:ae,hide:G},se},T=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return e?window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1):(v(`big`),!0)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},E=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),D=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:E,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=[],l={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=a.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,a.setAttribute(`poweredAC`,`0.1.74`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else !_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},O=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=n.parentElement===a?null:n.parentElement,l=c?c.getAttribute(`style`):null,u=a.parentElement,d=u?r.getComputedStyle(u).paddingTop:null,f=null,p=parseInt(n.getAttribute(`width`),10)||320,m=parseInt(n.getAttribute(`height`),10)||50;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.74`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{f&&=(f.disconnect(),null),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c&&(l?c.setAttribute(`style`,l):c.removeAttribute(`style`)),u&&d&&d!==`0px`&&(u.style.paddingTop=d)}},k=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:8e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),p=f===u.smh||f===u.theage,m=n.getAttribute(`style`),h=n.hasAttribute(`data-mf-wallpaper-iframe`),g=a.getAttribute(`style`),_=n.parentElement===a?null:n.parentElement,v=_?_.getAttribute(`style`):null,y=a.parentElement,b=y?y.getAttribute(`style`):null,x=s?s.getAttribute(`style`):null,S=o?o.getAttribute(`style`):null,C=o?o.querySelector(`header`):null,w=C?C.getAttribute(`style`):null,T=C?C.querySelector(`.sc-5cbbddda-1`):null,E=T?T.getAttribute(`style`):null,D=i.querySelector(`footer`),O=D?D.getAttribute(`style`):null,k=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],A=null,j=null,M=null,N=null,P=null,F=null,I=null,L=null,R=[],z=null,B=null,V=null,H=null,ee=null,U=null,te=null,W=[],ne=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,re=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,ie=!!(t.sticky&&(ne||re)),G=`pending`,ae=0,K=0,q=null,J=null,Y=null,oe=null,X=[],se=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,ce=f===u.afr,Z=null,Q=null,le=e=>{if(!e||e===V||e===y||e===a)return!1;let t=e.firstElementChild;if(!t||t!==e.lastElementChild||!t.classList.contains(`container`)||t.children.length>0||t.textContent&&t.textContent.trim()||e.querySelector(`#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},ue=e=>{!e?.parentElement||W.some(t=>t.shell===e)||(W.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},de=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;le(t)&&ue(t)}},fe=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(R.find(e=>e.el===t)||R.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},pe=()=>{let e=i.createElement(`div`);return e.setAttribute(`data-mf-billboard-mount`,``),e.style.height=`${t.billboardHeight}px`,e.style.minHeight=`${t.billboardHeight}px`,e.style.maxHeight=`${t.billboardHeight}px`,e.style.background=`transparent`,e.style.overflow=`visible`,e.style.position=`relative`,e.style.width=`100%`,e.style.padding=`0`,e.style.margin=`0`,e},me=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).filter(({rect:t,styles:n,list:r,listStyles:i})=>!r||!i||t.top<e-4||t.top>e+120||n.overflow!==`hidden`||parseFloat(n.borderTopLeftRadius)<4?!1:i.overflow===`auto`||i.overflowX===`auto`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},$=()=>L||a,he=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),ge=()=>{let e=he().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},_e=()=>{let e=ge();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,se||t.stickyTop)},ve=()=>{let e=ge();return e?.zIndex&&e.zIndex>2?Math.max(t.stickyZIndex,e.zIndex+1):t.stickyZIndex},ye=({active:e,progress:t=0,remainingMs:n=0})=>{F?.contentWindow&&F.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},be=e=>{!e||X.some(t=>t.el===e)||X.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},xe=e=>{let t=new Set([$()].filter(Boolean));if(f===u.afr||U||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=$()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)be(n),n.style.setProperty(`z-index`,String(e),`important`)},Se=()=>{!ce||!F||F.parentElement===i.body||(Z=F.parentElement,Q=F.nextSibling,i.body.appendChild(F))},Ce=()=>{if(!Z||!F){Z=null,Q=null;return}Q&&Q.parentNode===Z?Z.insertBefore(F,Q):Z.appendChild(F),Z=null,Q=null},we=()=>{for(let e=X.length-1;e>=0;--e){let{el:t,value:n,priority:r}=X[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}X.length=0},Te=()=>{if(!F)return;fe($());let e=$().getBoundingClientRect(),t=ve();xe(t),Se();let n=F.style;n.position=`fixed`,n.top=`${_e()}px`,n.left=`${Math.round(e.left)}px`,n.width=`${Math.round(e.width)}px`,n.setProperty(`z-index`,String(t),`important`),F.setAttribute(`data-mf-sticky-active`,``)},Ee=()=>{if(!F)return;Ce();let e=F.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),we(),F.removeAttribute(`data-mf-sticky-active`)},De=()=>{J&&=(r.cancelAnimationFrame(J),null)},Oe=()=>{Y&&=(r.cancelAnimationFrame(Y),null)},ke=()=>{if(q===null){let e=$().getBoundingClientRect();q=Math.max(0,r.scrollY+e.top-t.stickyTop)}return q},Ae=()=>K+(G===`active`?Math.max(0,r.performance.now()-ae):0),je=()=>Math.max(0,r.scrollY-ke()),Me=()=>{let e=ne?Ae()/t.stickyDurationMs:0,n=re?je()/t.stickyScrollDistance:0;return Math.max(e,n)},Ne=()=>ne?t.stickyDurationMs-Ae():0,Pe=()=>r.scrollY<ke()-1,Fe=()=>{G===`active`&&(K=Ae(),G=`paused`,De(),Ee(),ye({active:!1,progress:Me(),remainingMs:Ne()}))},Ie=()=>{G!==`paused`||Pe()||(G=`active`,ae=r.performance.now(),Te(),Re())},Le=()=>{G!==`active`&&G!==`paused`||(G===`active`&&(K=Ae()),G=`released`,De(),Ee(),ye({active:!1,progress:1,remainingMs:0}))},Re=()=>{if(G!==`active`)return;if(Pe()){Fe();return}let e=Ae(),n=je(),i=ne?e/t.stickyDurationMs:0,a=re?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=ne?t.stickyDurationMs-e:0;if(Te(),ye({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){Le();return}J=r.requestAnimationFrame(Re)},ze=()=>{if(!ie||G!==`pending`||!F)return;Oe();let e=$().getBoundingClientRect();q=Math.max(0,r.scrollY+e.top-t.stickyTop),K=0,G=`active`,ae=r.performance.now(),Te(),Re()},Be=()=>{!ie||G!==`pending`||!F||$().getBoundingClientRect().top<=t.stickyTop&&ze()},Ve=()=>{G===`pending`?Be():G===`active`&&Pe()?Fe():G===`paused`&&Ie()},He=()=>{if(!ie||G!==`pending`||!F){Y=null;return}Be(),Y=G===`pending`?r.requestAnimationFrame(He):null},Ue=()=>{de();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){U=e,te=e.getAttribute(`style`);break}e=e.parentElement}let d=n.parentElement;for(;d&&d!==i.body&&d!==i.documentElement;){let e=r.getComputedStyle(d);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(R.push({el:d,orig:d.getAttribute(`style`)}),d.style.transform=`none`,d.style.willChange=`auto`,d.style.contain=`none`,d.style.filter=`none`,d.style.perspective=`none`),e.overflow!==`visible`&&(R.find(e=>e.el===d)||R.push({el:d,orig:d.getAttribute(`style`)}),d.style.overflow=`visible`),d=d.parentElement}let m=n.style;if(m.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),m.setProperty(`top`,`0`,f===u.afr?`important`:``),m.setProperty(`left`,`0`,f===u.afr?`important`:``),m.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),m.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),m.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),m.setProperty(`border`,`none`,f===u.afr?`important`:``),m.setProperty(`margin`,`0`,f===u.afr?`important`:``),m.setProperty(`padding`,`0`,f===u.afr?`important`:``),m.setProperty(`display`,`block`,f===u.afr?`important`:``),m.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),m.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),I=i.createElement(`iframe`),I.src=e.href,I.setAttribute(`data-mf-wallpaper-iframe`,``),I.setAttribute(`scrolling`,`no`),I.setAttribute(`frameborder`,`0`);let t=I.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(I,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.74`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let h=a.style;h.height=t.billboardHeight+`px`,h.minHeight=t.billboardHeight+`px`,h.background=`transparent`,h.overflow=`visible`,h.position=`relative`,h.width=`100%`,h.padding=`0`,h.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,y.setAttribute(`data-mf-slot`,``));let g=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,v=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(P=i.createElement(`style`),P.id=`mobilefireplace-pac`,P.textContent=`
112
112
  /* Mobile Fireplace — powered-ad-config */
113
113
  html, body {
114
114
  background-color: transparent !important;
@@ -272,4 +272,4 @@
272
272
  margin: 0 !important;
273
273
  padding: 0 !important;
274
274
  }
275
- `,i.head.appendChild(P),f.setup&&f.setup(i,a),f===u.wwos){let e=de();e&&(A=e.el,j=A.getAttribute(`style`),M=e.list,N=M?M.getAttribute(`style`):null,A.style.marginLeft=`10px`,A.style.marginRight=`10px`,A.style.width=`calc(100% - 20px)`,M&&(M.style.width=`100%`))}if(o&&f!==u.afr&&(U||p)){if(U&&(V=c||y),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),I=i.createElement(`iframe`),I.src=e.href,I.setAttribute(`data-mf-wallpaper-iframe`,``),I.setAttribute(`scrolling`,`no`),I.setAttribute(`frameborder`,`0`);let n=I.style;n.position=`fixed`,n.top=`0`,n.left=`0`,n.width=`100vw`,n.height=`100dvh`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.background=`transparent`,n.zIndex=String(t.zIndex),n.pointerEvents=`none`,i.body.insertBefore(I,i.body.firstChild)}n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`0`,n.style.height=`0`,n.style.opacity=`0`,n.style.pointerEvents=`none`,n.style.zIndex=`-1`,L=ue(),o.parentElement.insertBefore(L,o),U?(U.style.position=`static`,U.style.inset=`auto`,U.style.height=`0`,U.style.minHeight=`0`,U.style.maxHeight=`0`,U.style.overflow=`hidden`,U.style.backgroundColor=`transparent`,U.style.boxShadow=`none`,U.style.border=`0`,U.style.outline=`0`,U.style.pointerEvents=`none`):y&&(y.style.height=`0`,y.style.minHeight=`0`,y.style.maxHeight=`0`,y.style.overflow=`hidden`,y.style.backgroundColor=`transparent`,y.style.border=`0`,y.style.outline=`0`),h.height=`0`,h.minHeight=`0`,h.width=`0`,h.overflow=`hidden`,s&&(s.style.backgroundColor=`transparent`,s.style.backgroundImage=`none`,s.style.position=`relative`,s.style.zIndex=`1`),o.style.marginLeft=`14px`,o.style.marginRight=`14px`,o.style.backgroundColor=`#ffffff`,o.style.position=`relative`,o.style.zIndex=`2`,o.style.overflowX=`clip`,o.style.isolation=`isolate`;for(let{el:e}of k)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;C&&(C.style.borderTop=`0`,C.style.outline=`0`,C.style.boxShadow=`none`),T&&(T.style.borderBottom=`0`),D&&(D.style.marginLeft=`14px`,D.style.marginRight=`14px`,D.style.position=`relative`,D.style.zIndex=`2`),ce()}L||(L=ue(),a.appendChild(L))},ze=null,Be=null,Ve=!1,He=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,L&&(L.style.height=i+`px`,L.style.minHeight=i+`px`,L.style.maxHeight=i+`px`),F&&(F.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,L&&(L.style.height=t.billboardHeight+`px`,L.style.minHeight=t.billboardHeight+`px`,L.style.maxHeight=t.billboardHeight+`px`),F&&(F.style.height=t.billboardHeight+`px`);q===`active`&&be()};if(Re(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),F=i.createElement(`iframe`),F.src=e.href,F.setAttribute(`data-mf-billboard-iframe`,``),F.setAttribute(`scrolling`,`no`),F.setAttribute(`frameborder`,`0`);let n=F.style;n.position=`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=`1`,(L||a).appendChild(F),ne&&(ie=Ie,r.addEventListener(`scroll`,ie,{passive:!0}),Z=r.requestAnimationFrame(Le))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:I?.contentWindow||n.contentWindow,billboardIframe:F,billboardWindow:null},I&&I.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=I.contentWindow)}catch{}}),F&&F.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=F.contentWindow}catch{}}),ze=He,r.addEventListener(`resize`,ze),He(),Be=()=>{Ue()},window.addEventListener(`pagehide`,Be),window.addEventListener(`beforeunload`,Be),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let Ue=()=>{if(!Ve){Ve=!0,Be&&=(window.removeEventListener(`pagehide`,Be),window.removeEventListener(`beforeunload`,Be),null),ze&&=(r.removeEventListener(`resize`,ze),null),ie&&=(r.removeEventListener(`scroll`,ie),null),Se(),Ce(),ge({active:!1,progress:1,remainingMs:0}),P&&P.parentNode&&(P.parentNode.removeChild(P),P=null),F&&F.parentNode&&(F.parentNode.removeChild(F),F=null),L&&L.parentNode&&(L.parentNode.removeChild(L),L=null),I&&I.parentNode&&(I.parentNode.removeChild(I),I=null);try{delete r.__mfBridge}catch{}for(let e=G.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=G[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}G.length=0,z&&(B&&B.parentNode===z?z.insertBefore(n,B):z.appendChild(n),z=null,B=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`),h||n.removeAttribute(`data-mf-wallpaper-iframe`);for(let{el:e,orig:t}of R)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);R.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),V&&=(H&&(ee&&ee.parentNode===H?H.insertBefore(V,ee):H.appendChild(V),H=null,ee=null),null),y&&(y.removeAttribute(`data-mf-slot`),b?y.setAttribute(`style`,b):y.removeAttribute(`style`)),U&&(W?U.setAttribute(`style`,W):U.removeAttribute(`style`),U=null,W=null);for(let{el:e,orig:t}of k)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);M&&(N?M.setAttribute(`style`,N):M.removeAttribute(`style`),M=null,N=null),A&&(j?A.setAttribute(`style`,j):A.removeAttribute(`style`),A=null,j=null),o&&(S?o.setAttribute(`style`,S):o.removeAttribute(`style`)),C&&(w?C.setAttribute(`style`,w):C.removeAttribute(`style`)),T&&(E?T.setAttribute(`style`,E):T.removeAttribute(`style`)),D&&(O?D.setAttribute(`style`,O):D.removeAttribute(`style`)),s&&(x?s.setAttribute(`style`,x):s.removeAttribute(`style`))}};return Ue},A=()=>{};function j({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof A==`function`&&A();let c=()=>{};return e===`fireplace`?c=o(t):e===`fireplace-collant`?c=s(t):e===`logomorph`?c=T(n,r,i):e===`headingintegration`?c=w(a):e===`interscroller`?c=D(a):e===`liquidframe`?c=O(a):e===`mobilefireplace`?c=k(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),A=typeof c==`function`?c:()=>{},A}return j.version=`0.1.73`,j});
275
+ `,i.head.appendChild(P),f.setup&&f.setup(i,a),f===u.wwos){let e=me();e&&(A=e.el,j=A.getAttribute(`style`),M=e.list,N=M?M.getAttribute(`style`):null,A.style.marginLeft=`10px`,A.style.marginRight=`10px`,A.style.width=`calc(100% - 20px)`,M&&(M.style.width=`100%`))}if(o&&f!==u.afr&&(U||p)){if(U&&(V=c||y),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),I=i.createElement(`iframe`),I.src=e.href,I.setAttribute(`data-mf-wallpaper-iframe`,``),I.setAttribute(`scrolling`,`no`),I.setAttribute(`frameborder`,`0`);let n=I.style;n.position=`fixed`,n.top=`0`,n.left=`0`,n.width=`100vw`,n.height=`100dvh`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.background=`transparent`,n.zIndex=String(t.zIndex),n.pointerEvents=`none`,i.body.insertBefore(I,i.body.firstChild)}n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`0`,n.style.height=`0`,n.style.opacity=`0`,n.style.pointerEvents=`none`,n.style.zIndex=`-1`,L=pe(),o.parentElement.insertBefore(L,o),U?(U.style.position=`static`,U.style.inset=`auto`,U.style.height=`0`,U.style.minHeight=`0`,U.style.maxHeight=`0`,U.style.overflow=`hidden`,U.style.backgroundColor=`transparent`,U.style.boxShadow=`none`,U.style.border=`0`,U.style.outline=`0`,U.style.pointerEvents=`none`):y&&(y.style.height=`0`,y.style.minHeight=`0`,y.style.maxHeight=`0`,y.style.overflow=`hidden`,y.style.backgroundColor=`transparent`,y.style.border=`0`,y.style.outline=`0`),h.height=`0`,h.minHeight=`0`,h.width=`0`,h.overflow=`hidden`,s&&(s.style.backgroundColor=`transparent`,s.style.backgroundImage=`none`,s.style.position=`relative`,s.style.zIndex=`1`),o.style.marginLeft=`14px`,o.style.marginRight=`14px`,o.style.backgroundColor=`#ffffff`,o.style.position=`relative`,o.style.zIndex=`2`,o.style.overflowX=`clip`,o.style.isolation=`isolate`;for(let{el:e}of k)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;C&&(C.style.borderTop=`0`,C.style.outline=`0`,C.style.boxShadow=`none`),T&&(T.style.borderBottom=`0`),D&&(D.style.marginLeft=`14px`,D.style.marginRight=`14px`,D.style.position=`relative`,D.style.zIndex=`2`),de()}L||(L=pe(),a.appendChild(L))},We=null,Ge=null,Ke=!1,qe=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,L&&(L.style.height=i+`px`,L.style.minHeight=i+`px`,L.style.maxHeight=i+`px`),F&&(F.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,L&&(L.style.height=t.billboardHeight+`px`,L.style.minHeight=t.billboardHeight+`px`,L.style.maxHeight=t.billboardHeight+`px`),F&&(F.style.height=t.billboardHeight+`px`);G===`active`&&Te()};if(Ue(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),F=i.createElement(`iframe`),F.src=e.href,F.setAttribute(`data-mf-billboard-iframe`,``),F.setAttribute(`scrolling`,`no`),F.setAttribute(`frameborder`,`0`);let n=F.style;n.position=`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=`1`,(L||a).appendChild(F),ie&&(oe=Ve,r.addEventListener(`scroll`,oe,{passive:!0}),Y=r.requestAnimationFrame(He))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:I?.contentWindow||n.contentWindow,billboardIframe:F,billboardWindow:null},I&&I.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=I.contentWindow)}catch{}}),F&&F.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=F.contentWindow}catch{}}),We=qe,r.addEventListener(`resize`,We),qe(),Ge=()=>{Je()},window.addEventListener(`pagehide`,Ge),window.addEventListener(`beforeunload`,Ge),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let Je=()=>{if(!Ke){Ke=!0,Ge&&=(window.removeEventListener(`pagehide`,Ge),window.removeEventListener(`beforeunload`,Ge),null),We&&=(r.removeEventListener(`resize`,We),null),oe&&=(r.removeEventListener(`scroll`,oe),null),De(),Oe(),ye({active:!1,progress:1,remainingMs:0}),P&&P.parentNode&&(P.parentNode.removeChild(P),P=null),F&&F.parentNode&&(F.parentNode.removeChild(F),F=null),Z=null,Q=null,L&&L.parentNode&&(L.parentNode.removeChild(L),L=null),I&&I.parentNode&&(I.parentNode.removeChild(I),I=null);try{delete r.__mfBridge}catch{}for(let e=W.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=W[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}W.length=0,z&&(B&&B.parentNode===z?z.insertBefore(n,B):z.appendChild(n),z=null,B=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`),h||n.removeAttribute(`data-mf-wallpaper-iframe`);for(let{el:e,orig:t}of R)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);R.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),V&&=(H&&(ee&&ee.parentNode===H?H.insertBefore(V,ee):H.appendChild(V),H=null,ee=null),null),y&&(y.removeAttribute(`data-mf-slot`),b?y.setAttribute(`style`,b):y.removeAttribute(`style`)),U&&(te?U.setAttribute(`style`,te):U.removeAttribute(`style`),U=null,te=null);for(let{el:e,orig:t}of k)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);M&&(N?M.setAttribute(`style`,N):M.removeAttribute(`style`),M=null,N=null),A&&(j?A.setAttribute(`style`,j):A.removeAttribute(`style`),A=null,j=null),o&&(S?o.setAttribute(`style`,S):o.removeAttribute(`style`)),C&&(w?C.setAttribute(`style`,w):C.removeAttribute(`style`)),T&&(E?T.setAttribute(`style`,E):T.removeAttribute(`style`)),D&&(O?D.setAttribute(`style`,O):D.removeAttribute(`style`)),s&&(x?s.setAttribute(`style`,x):s.removeAttribute(`style`))}};return Je},A=()=>{};function j({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof A==`function`&&A();let c=()=>{};return e===`fireplace`?c=o(t):e===`fireplace-collant`?c=s(t):e===`logomorph`?c=T(n,r,i):e===`headingintegration`?c=w(a):e===`interscroller`?c=D(a):e===`liquidframe`?c=O(a):e===`mobilefireplace`?c=k(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),A=typeof c==`function`?c:()=>{},A}return j.version=`0.1.74`,j});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
4
4
  "description": "Configure Ads to load smoothly and at the right position on All Nine's websites",
5
5
  "main": "dist/powered-ad-config.umd.js",
6
6
  "module": "dist/powered-ad-config.es.js",