powered-ad-config 0.1.81 → 0.1.82

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.
@@ -386,7 +386,7 @@ var e = (e, t, n) => {
386
386
  }, B = () => {
387
387
  let e = I();
388
388
  if (!e) return;
389
- c(e, "0.1.81");
389
+ c(e, "0.1.82");
390
390
  let t = e.style;
391
391
  e.className &&= "", t.minHeight = "250px", t.marginTop = W.adNodeMarginTop + "px", t.marginBottom = W.adNodeMarginBottom + "px", t.position = "static", t.display = "block", W.zIndex && W.zIndex();
392
392
  }, V = () => {
@@ -706,74 +706,74 @@ var e = (e, t, n) => {
706
706
  return E(), () => {
707
707
  l.removeEventListener("scroll", I), z &&= (clearTimeout(z), null);
708
708
  };
709
- }, d = 866, f = 68, p = 16, m = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", h = "adspot-desktop-takeover-2-above", g = -24, _ = -24, v = [
709
+ }, d = 866, f = 68, p = 16, m = ":scope > header h1, :scope > header h2, :scope > header h3", h = "h1, h2, h3", g = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", _ = "adspot-desktop-takeover-2-above", v = -24, y = -24, b = [
710
710
  "www.nine.com.au",
711
711
  "staging.nine.com.au",
712
712
  "preview.nine.com.au",
713
713
  "render-web-nine-staging-v1.ffxblue.com.au",
714
714
  "render-web-nine-production-v1.ffxblue.com.au"
715
- ], y = [{
716
- hostnames: v,
715
+ ], x = [{
716
+ hostnames: b,
717
717
  path: "/sport",
718
718
  headingText: "Sport",
719
- slotId: h
720
- }], b = new Set(["localhost", "127.0.0.1"]), x = "__poweredAdConfigDynamicHeadingActive", S = "data-pac-dynamicheading-owner", C = "data-pac-reparented", w = (e, t) => {
719
+ slotId: _
720
+ }], S = new Set(["localhost", "127.0.0.1"]), C = "__poweredAdConfigDynamicHeadingActive", w = "data-pac-dynamicheading-owner", T = "data-pac-reparented", E = (e, t) => {
721
721
  if (typeof e == "number" && Number.isFinite(e)) return `${e}px`;
722
722
  if (typeof e == "string") {
723
723
  let n = e.trim();
724
724
  return n ? /^-?\d+(\.\d+)?$/.test(n) ? `${n}px` : n : `${t}px`;
725
725
  }
726
726
  return `${t}px`;
727
- }, T = (e) => {
727
+ }, D = (e) => {
728
728
  if (!e || typeof e != "object") return null;
729
729
  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) : [];
730
730
  return !t || !n && !r ? null : {
731
731
  headingText: t,
732
732
  path: n || null,
733
733
  pathPrefix: r || null,
734
- slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() : h,
735
- hostnames: i.length ? i : v
734
+ slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() : _,
735
+ hostnames: i.length ? i : b
736
736
  };
737
- }, E = (e) => {
738
- if (!Array.isArray(e) || e.length === 0) return y;
739
- let t = e.map(T).filter(Boolean);
740
- return t.length ? t : y;
741
- }, D = ({ offsetTop: e = g, offsetLeft: t = _, width: n = d, height: r = f, pageTargets: i = y } = {}) => {
742
- let a = window.frameElement || null;
743
- if (!a) return () => {};
744
- let o = window.parent;
745
- if (!o || o === window) return () => {};
746
- let s = null;
737
+ }, O = (e) => {
738
+ if (!Array.isArray(e) || e.length === 0) return x;
739
+ let t = e.map(D).filter(Boolean);
740
+ return t.length ? t : x;
741
+ }, k = ({ offsetTop: e = v, offsetLeft: t = y, width: n = d, height: i = f, pageTargets: a = x } = {}) => {
742
+ let o = window.frameElement || null;
743
+ if (!o) return () => {};
744
+ let s = window.parent;
745
+ if (!s || s === window) return () => {};
746
+ let c = null;
747
747
  try {
748
- s = o.document, o.location.href;
748
+ c = s.document, s.location.href;
749
749
  } catch {
750
750
  return () => {};
751
751
  }
752
- let c = o[x];
753
- if (c?.iframe === a && typeof c.cleanup == "function") return c.cleanup;
754
- if (c?.iframe?.isConnected && typeof c?.cleanup == "function") return () => {};
755
- typeof c?.cleanup == "function" && c.cleanup();
756
- let l = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, u = (e, t, n) => {
752
+ let l = s[C];
753
+ if (l?.iframe === o && typeof l.cleanup == "function") return l.cleanup;
754
+ if (l?.iframe?.isConnected && typeof l?.cleanup == "function") return () => {};
755
+ typeof l?.cleanup == "function" && l.cleanup();
756
+ let u = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, _ = (e, t, n) => {
757
757
  e && e.style[t] !== n && (e.style[t] = n);
758
- }, h = () => {
758
+ }, b = () => {
759
759
  try {
760
760
  let e = window.location.hostname.toLowerCase();
761
- return b.has(e) ? !0 : new URLSearchParams(window.location.search).get("keepDynamicHeadingVisible") === "1";
761
+ return S.has(e) ? !0 : new URLSearchParams(window.location.search).get("keepDynamicHeadingVisible") === "1";
762
762
  } catch {
763
763
  return !1;
764
764
  }
765
- }, v = (e = a.parentElement) => {
765
+ }, D = (e = o.parentElement) => {
766
766
  let t = e;
767
- for (; t && t !== s.body;) {
767
+ for (; t && t !== c.body;) {
768
768
  let e = t.id || "", n = t.getAttribute?.("data-testid") || "", r = t.getAttribute?.("type") || "";
769
769
  if (e.includes("adspot") || n.toLowerCase().includes("ad") || r) return t;
770
770
  t = t.parentElement;
771
771
  }
772
- return a.parentElement;
773
- }, T = () => {
772
+ return o.parentElement;
773
+ }, k = () => {
774
774
  try {
775
- let e = new URL(o.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
776
- return P.find((e) => {
775
+ let e = new URL(s.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
776
+ return B.find((e) => {
777
777
  let r = e.hostnames.includes(t), i = e.path ? n === e.path : n.startsWith(e.pathPrefix);
778
778
  return r && i;
779
779
  }) || null;
@@ -781,8 +781,20 @@ var e = (e, t, n) => {
781
781
  return null;
782
782
  }
783
783
  return null;
784
- }, D = (e) => {
785
- let t = Array.from(s.querySelectorAll(m));
784
+ }, A = () => {
785
+ let e = r(c, "app") || c.getElementById("app") || c, t = r(e, "page-container") || e;
786
+ return r(r(t, "container") || t, "main") || r(e, "main") || c.querySelector("#app main") || null;
787
+ }, j = (e) => {
788
+ if (!e || !e.isConnected) return !1;
789
+ let t = e.getBoundingClientRect();
790
+ if (t.width <= 0 || t.height <= 0) return !1;
791
+ let n = s.getComputedStyle(e);
792
+ return n.display !== "none" && n.visibility !== "hidden";
793
+ }, M = () => {
794
+ let e = A(), t = e ? [...e.querySelectorAll(m), ...e.querySelectorAll(h)] : [], n = t.length ? [] : Array.from(c.querySelectorAll(g));
795
+ return Array.from(new Set([...t, ...n])).filter(j);
796
+ }, N = (e) => {
797
+ let t = M();
786
798
  if (!t.length) return null;
787
799
  let n = typeof e == "string" ? e.trim().toLowerCase() : "";
788
800
  if (n) {
@@ -790,60 +802,60 @@ var e = (e, t, n) => {
790
802
  if (e) return e;
791
803
  }
792
804
  return t.find((e) => e.tagName === "H1") || t[0] || null;
793
- }, O = null, k = null;
794
- h();
795
- let A = w(e, g), j = w(t, _), M = w(n, d), N = w(r, f), P = E(i), F = T();
796
- if (!F) return () => {};
797
- let I = v((F.slotId ? s.getElementById(F.slotId) : null) || a.parentElement);
798
- if (!I) return () => {};
799
- let L = I.getAttribute(S);
800
- if (L && L !== l) return () => {};
801
- let R = {
802
- width: I.style.width,
803
- maxWidth: I.style.maxWidth,
804
- minWidth: I.style.minWidth,
805
- height: I.style.height,
806
- minHeight: I.style.minHeight,
807
- marginTop: I.style.marginTop,
808
- marginBottom: I.style.marginBottom,
809
- marginLeft: I.style.marginLeft,
810
- marginRight: I.style.marginRight,
811
- position: I.style.position,
812
- top: I.style.top,
813
- left: I.style.left,
814
- right: I.style.right,
815
- transform: I.style.transform,
816
- display: I.style.display,
817
- opacity: I.style.opacity,
818
- transition: I.style.transition,
819
- pointerEvents: I.style.pointerEvents,
820
- zIndex: I.style.zIndex,
821
- overflow: I.style.overflow
822
- }, z = {
823
- width: a.style.width,
824
- height: a.style.height,
825
- display: a.style.display,
826
- border: a.style.border,
827
- position: a.style.position,
828
- pointerEvents: a.style.pointerEvents
829
- }, B = [], V = parseFloat(N) || f, H = parseFloat(A) || 0, U = parseFloat(j) || 0, W = () => {
830
- let e = I.parentElement;
831
- for (; e && e !== s.body;) B.push({
805
+ }, P = null, F = null;
806
+ b();
807
+ let I = E(e, v), L = E(t, y), R = E(n, d), z = E(i, f), B = O(a), V = k();
808
+ if (!V) return () => {};
809
+ let H = D((V.slotId ? c.getElementById(V.slotId) : null) || o.parentElement);
810
+ if (!H) return () => {};
811
+ let U = H.getAttribute(w);
812
+ if (U && U !== u) return () => {};
813
+ let W = {
814
+ width: H.style.width,
815
+ maxWidth: H.style.maxWidth,
816
+ minWidth: H.style.minWidth,
817
+ height: H.style.height,
818
+ minHeight: H.style.minHeight,
819
+ marginTop: H.style.marginTop,
820
+ marginBottom: H.style.marginBottom,
821
+ marginLeft: H.style.marginLeft,
822
+ marginRight: H.style.marginRight,
823
+ position: H.style.position,
824
+ top: H.style.top,
825
+ left: H.style.left,
826
+ right: H.style.right,
827
+ transform: H.style.transform,
828
+ display: H.style.display,
829
+ opacity: H.style.opacity,
830
+ transition: H.style.transition,
831
+ pointerEvents: H.style.pointerEvents,
832
+ zIndex: H.style.zIndex,
833
+ overflow: H.style.overflow
834
+ }, G = {
835
+ width: o.style.width,
836
+ height: o.style.height,
837
+ display: o.style.display,
838
+ border: o.style.border,
839
+ position: o.style.position,
840
+ pointerEvents: o.style.pointerEvents
841
+ }, K = [], q = parseFloat(z) || f, ee = parseFloat(I) || 0, te = parseFloat(L) || 0, J = () => {
842
+ let e = H.parentElement;
843
+ for (; e && e !== c.body;) K.push({
832
844
  element: e,
833
845
  overflow: e.style.overflow
834
- }), u(e, "overflow", "visible"), e = e.parentElement;
835
- }, G = () => {
836
- u(I, "width", M), u(I, "maxWidth", M), u(I, "minWidth", M), u(I, "height", N), u(I, "minHeight", N), u(I, "display", "block"), u(I, "overflow", "hidden"), u(I, "pointerEvents", "none"), u(I, "zIndex", "1080"), I.setAttribute(S, l), u(a, "width", M), u(a, "height", N), u(a, "display", "block"), u(a, "border", "0"), u(a, "position", "relative"), u(a, "pointerEvents", "auto");
837
- }, K = {
846
+ }), _(e, "overflow", "visible"), e = e.parentElement;
847
+ }, ne = () => {
848
+ _(H, "width", R), _(H, "maxWidth", R), _(H, "minWidth", R), _(H, "height", z), _(H, "minHeight", z), _(H, "display", "block"), _(H, "overflow", "hidden"), _(H, "pointerEvents", "none"), _(H, "zIndex", "1080"), H.setAttribute(w, u), _(o, "width", R), _(o, "height", z), _(o, "display", "block"), _(o, "border", "0"), _(o, "position", "relative"), _(o, "pointerEvents", "auto");
849
+ }, re = {
838
850
  element: null,
839
851
  position: ""
840
- }, q = () => {
841
- let e = I.parentElement;
842
- e && o.getComputedStyle(e).position === "static" && (K.element = e, K.position = e.style.position, u(e, "position", "relative")), u(I, "position", "absolute"), u(I, "top", `${H}px`), u(I, "left", `${U}px`), u(I, "right", "auto"), u(I, "marginTop", "0px"), u(I, "marginBottom", `${p}px`), u(I, "marginLeft", "0px"), u(I, "marginRight", "0px"), u(I, "transform", "");
843
- }, ee = (e) => {
852
+ }, ie = () => {
853
+ let e = H.parentElement;
854
+ e && s.getComputedStyle(e).position === "static" && (re.element = e, re.position = e.style.position, _(e, "position", "relative")), _(H, "position", "absolute"), _(H, "top", `${ee}px`), _(H, "left", `${te}px`), _(H, "right", "auto"), _(H, "marginTop", "0px"), _(H, "marginBottom", `${p}px`), _(H, "marginLeft", "0px"), _(H, "marginRight", "0px"), _(H, "transform", "");
855
+ }, ae = (e) => {
844
856
  let t = null;
845
857
  try {
846
- let e = a.contentDocument;
858
+ let e = o.contentDocument;
847
859
  if (!e) return !1;
848
860
  let n = e.getElementById("unitContainer");
849
861
  if (!n) return !1;
@@ -856,54 +868,54 @@ var e = (e, t, n) => {
856
868
  return !1;
857
869
  }
858
870
  if (!t) return !1;
859
- a.setAttribute(C, "1");
871
+ o.setAttribute(T, "1");
860
872
  try {
861
- e.parentNode?.insertBefore(I, e);
873
+ e.parentNode?.insertBefore(H, e);
862
874
  } catch {
863
- return a.removeAttribute(C), !1;
875
+ return o.removeAttribute(T), !1;
864
876
  }
865
- W(), G(), q();
877
+ J(), ne(), ie();
866
878
  try {
867
- a.srcdoc = t;
879
+ o.srcdoc = t;
868
880
  } catch {
869
881
  return !1;
870
882
  }
871
883
  return !0;
872
- }, te = () => {
873
- u(I, "position", "fixed"), u(I, "marginTop", "0px"), u(I, "marginBottom", "0px"), u(I, "marginLeft", "0px"), u(I, "marginRight", "0px"), u(I, "transform", "");
874
- }, J = () => {
875
- u(I, "display", "none");
876
- }, ne = () => {
877
- u(I, "display", "block"), u(I, "overflow", "hidden");
878
- }, Y = null, re = () => {
879
- if ((!Y || !Y.isConnected) && (Y = D(F.headingText)), !Y) return;
880
- let e = Y.getBoundingClientRect(), t = e.top - V - p + H, n = e.left + U;
881
- u(I, "top", `${t}px`), u(I, "left", `${n}px`), u(I, "right", "auto");
882
- }, ie = null, X = null, Z = !1, Q = (e = 12) => {
883
- if (Y = D(F.headingText), !Y) {
884
- e > 1 && (k = o.setTimeout(() => Q(e - 1), 250));
884
+ }, oe = () => {
885
+ _(H, "position", "fixed"), _(H, "marginTop", "0px"), _(H, "marginBottom", "0px"), _(H, "marginLeft", "0px"), _(H, "marginRight", "0px"), _(H, "transform", "");
886
+ }, se = () => {
887
+ _(H, "display", "none");
888
+ }, ce = () => {
889
+ _(H, "display", "block"), _(H, "overflow", "hidden");
890
+ }, Y = null, X = () => {
891
+ if ((!Y || !Y.isConnected) && (Y = N(V.headingText)), !Y) return;
892
+ let e = Y.getBoundingClientRect(), t = e.top - q - p + ee, n = e.left + te;
893
+ _(H, "top", `${t}px`), _(H, "left", `${n}px`), _(H, "right", "auto");
894
+ }, le = null, Z = null, Q = !1, $ = (e = 12) => {
895
+ if (Y = N(V.headingText), !Y) {
896
+ e > 1 && (F = s.setTimeout(() => $(e - 1), 250));
885
897
  return;
886
898
  }
887
- ee(Y) || (Z = !0, W(), G(), te(), re(), ie = () => re(), X = () => re(), o.addEventListener("scroll", ie, { passive: !0 }), o.addEventListener("resize", X));
899
+ ae(Y) || (Q = !0, J(), ne(), oe(), X(), le = () => X(), Z = () => X(), s.addEventListener("scroll", le, { passive: !0 }), s.addEventListener("resize", Z));
888
900
  };
889
- Q();
890
- let ae = () => {
891
- k &&= (o.clearTimeout(k), null), O &&= (o.clearTimeout(O), null), ie &&= (o.removeEventListener("scroll", ie), null), X &&= (o.removeEventListener("resize", X), null), I.getAttribute(S) === l && I.removeAttribute(S), Z && (Object.entries(R).forEach(([e, t]) => {
892
- I.style[e] = t;
893
- }), Object.entries(z).forEach(([e, t]) => {
894
- a.style[e] = t;
895
- }), B.forEach(({ element: e, overflow: t }) => {
901
+ $();
902
+ let ue = () => {
903
+ F &&= (s.clearTimeout(F), null), P &&= (s.clearTimeout(P), null), le &&= (s.removeEventListener("scroll", le), null), Z &&= (s.removeEventListener("resize", Z), null), H.getAttribute(w) === u && H.removeAttribute(w), Q && (Object.entries(W).forEach(([e, t]) => {
904
+ H.style[e] = t;
905
+ }), Object.entries(G).forEach(([e, t]) => {
906
+ o.style[e] = t;
907
+ }), K.forEach(({ element: e, overflow: t }) => {
896
908
  e.style.overflow = t;
897
- })), o[x]?.instanceId === l && delete o[x];
909
+ })), s[C]?.instanceId === u && delete s[C];
898
910
  };
899
- return o[x] = {
900
- instanceId: l,
901
- iframe: a,
902
- cleanup: ae,
903
- show: ne,
904
- hide: J
905
- }, ae;
906
- }, O = (e, t, n) => {
911
+ return s[C] = {
912
+ instanceId: u,
913
+ iframe: o,
914
+ cleanup: ue,
915
+ show: ce,
916
+ hide: se
917
+ }, ue;
918
+ }, A = (e, t, n) => {
907
919
  let r = window.frameElement ? window.frameElement : null;
908
920
  if (!r) return () => {};
909
921
  let i = window.parent;
@@ -1144,11 +1156,11 @@ var e = (e, t, n) => {
1144
1156
  return p(), () => {
1145
1157
  i.removeEventListener("scroll", y), w &&= (clearTimeout(w), null);
1146
1158
  };
1147
- }, k = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
1159
+ }, j = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
1148
1160
  if (e === 0 || e === 1) return e;
1149
1161
  let t = 2 * Math.PI / 3;
1150
1162
  return 2 ** (-10 * e) * Math.sin((e * 10 - .75) * t) + 1;
1151
- }), A = (e = {}) => {
1163
+ }), M = (e = {}) => {
1152
1164
  let t = {
1153
1165
  adScrollHeight: "300vh",
1154
1166
  bandHeight: 24,
@@ -1171,7 +1183,7 @@ var e = (e, t, n) => {
1171
1183
  snapOverlap: 2,
1172
1184
  stretchOverlap: 20,
1173
1185
  snapDuration: .9,
1174
- snapEase: k,
1186
+ snapEase: j,
1175
1187
  onEnter: null,
1176
1188
  onExit: null,
1177
1189
  onProgress: null,
@@ -1215,7 +1227,7 @@ var e = (e, t, n) => {
1215
1227
  };
1216
1228
  (() => {
1217
1229
  let e = a.style;
1218
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.81"), 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";
1230
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.82"), 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";
1219
1231
  let o = a.parentElement;
1220
1232
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
1221
1233
  let t = r.getComputedStyle(o), n = !1;
@@ -1320,7 +1332,7 @@ var e = (e, t, n) => {
1320
1332
  e.style[t] = n || "";
1321
1333
  });
1322
1334
  };
1323
- }, j = (e = {}) => {
1335
+ }, N = (e = {}) => {
1324
1336
  let t = {
1325
1337
  adaptToWidth: "100%",
1326
1338
  maxWidth: "400px",
@@ -1353,7 +1365,7 @@ var e = (e, t, n) => {
1353
1365
  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;
1354
1366
  return (() => {
1355
1367
  let e = a.style;
1356
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.81"), c) {
1368
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.82"), c) {
1357
1369
  let e = c.style;
1358
1370
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1359
1371
  }
@@ -1368,7 +1380,7 @@ var e = (e, t, n) => {
1368
1380
  })(), () => {
1369
1381
  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);
1370
1382
  };
1371
- }, M = (e = {}) => {
1383
+ }, P = (e = {}) => {
1372
1384
  let t = {
1373
1385
  billboardHeight: 150,
1374
1386
  sideStripWidth: 10,
@@ -1546,7 +1558,7 @@ var e = (e, t, n) => {
1546
1558
  })(), 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) => ({
1547
1559
  el: e,
1548
1560
  orig: e.getAttribute("style")
1549
- })) : [], 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, U = null, W = null, G = null, K = [], q = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ee = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, te = !!(t.sticky && (q || ee)), J = "pending", ne = 0, Y = 0, re = null, ie = null, X = null, Z = null, Q = null, ae = null, oe = [], se = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, $ = f === u.afr, ce = null, le = null, ue = (e) => {
1561
+ })) : [], 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, U = null, W = null, G = null, K = [], q = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ee = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, te = !!(t.sticky && (q || ee)), J = "pending", ne = 0, re = 0, ie = null, ae = null, oe = null, se = null, ce = null, Y = null, X = [], le = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, Z = f === u.afr, Q = null, $ = null, ue = (e) => {
1550
1562
  if (!e || e === V || e === y || e === a) return !1;
1551
1563
  let t = e.firstElementChild;
1552
1564
  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;
@@ -1601,7 +1613,7 @@ var e = (e, t, n) => {
1601
1613
  return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
1602
1614
  }, ye = () => {
1603
1615
  let e = ve();
1604
- return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, se || t.stickyTop);
1616
+ return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, le || t.stickyTop);
1605
1617
  }, be = () => {
1606
1618
  let e = ve();
1607
1619
  return e?.zIndex && e.zIndex > 2 ? Math.max(t.stickyZIndex, e.zIndex + 1) : t.stickyZIndex;
@@ -1613,7 +1625,7 @@ var e = (e, t, n) => {
1613
1625
  remainingMs: Math.max(0, Math.round(n))
1614
1626
  }, "*");
1615
1627
  }, Se = (e) => {
1616
- !e || oe.some((t) => t.el === e) || oe.push({
1628
+ !e || X.some((t) => t.el === e) || X.push({
1617
1629
  el: e,
1618
1630
  value: e.style.getPropertyValue("z-index"),
1619
1631
  priority: e.style.getPropertyPriority("z-index")
@@ -1630,66 +1642,66 @@ var e = (e, t, n) => {
1630
1642
  for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
1631
1643
  }
1632
1644
  for (let n of t) Se(n), n.style.setProperty("z-index", String(e), "important");
1633
- }, we = () => $ && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || ge(), Te = () => {
1634
- if (!$ || !F) return;
1645
+ }, we = () => Z && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || ge(), Te = () => {
1646
+ if (!Z || !F) return;
1635
1647
  let e = F.style;
1636
1648
  e.left = "0px", e.width = "100vw";
1637
1649
  }, Ee = () => {
1638
- if (!$ || !F || J === "active") return;
1650
+ if (!Z || !F || J === "active") return;
1639
1651
  let e = we();
1640
1652
  if (!e) return;
1641
1653
  let t = e.getBoundingClientRect(), n = F.style;
1642
1654
  n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, Te(), n.setProperty("z-index", "6", "important"), F.removeAttribute("data-mf-sticky-active");
1643
1655
  }, De = () => {
1644
- $ && (Ee(), Z && r.cancelAnimationFrame(Z), Z = r.requestAnimationFrame(() => {
1645
- Z = null, Ee();
1646
- }), Q && r.clearTimeout(Q), Q = r.setTimeout(() => {
1647
- Q = null, Ee();
1656
+ Z && (Ee(), se && r.cancelAnimationFrame(se), se = r.requestAnimationFrame(() => {
1657
+ se = null, Ee();
1658
+ }), ce && r.clearTimeout(ce), ce = r.setTimeout(() => {
1659
+ ce = null, Ee();
1648
1660
  }, 350));
1649
1661
  }, Oe = () => {
1650
- !$ || !F || F.parentElement === i.body || (ce = F.parentElement, le = F.nextSibling, i.body.appendChild(F));
1662
+ !Z || !F || F.parentElement === i.body || (Q = F.parentElement, $ = F.nextSibling, i.body.appendChild(F));
1651
1663
  }, ke = () => {
1652
- if (!ce || !F) {
1653
- ce = null, le = null;
1664
+ if (!Q || !F) {
1665
+ Q = null, $ = null;
1654
1666
  return;
1655
1667
  }
1656
- le && le.parentNode === ce ? ce.insertBefore(F, le) : ce.appendChild(F), ce = null, le = null;
1668
+ $ && $.parentNode === Q ? Q.insertBefore(F, $) : Q.appendChild(F), Q = null, $ = null;
1657
1669
  }, Ae = () => {
1658
- for (let e = oe.length - 1; e >= 0; --e) {
1659
- let { el: t, value: n, priority: r } = oe[e];
1670
+ for (let e = X.length - 1; e >= 0; --e) {
1671
+ let { el: t, value: n, priority: r } = X[e];
1660
1672
  n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
1661
1673
  }
1662
- oe.length = 0;
1674
+ X.length = 0;
1663
1675
  }, je = () => {
1664
1676
  if (!F) return;
1665
1677
  pe(ge());
1666
1678
  let e = ge().getBoundingClientRect(), t = be();
1667
1679
  Ce(t), Oe();
1668
1680
  let n = F.style;
1669
- n.position = "fixed", n.top = `${ye()}px`, $ ? Te() : (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", "");
1681
+ n.position = "fixed", n.top = `${ye()}px`, Z ? Te() : (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", "");
1670
1682
  }, Me = () => {
1671
1683
  if (!F) return;
1672
- if (ke(), $) {
1684
+ if (ke(), Z) {
1673
1685
  De(), Ae();
1674
1686
  return;
1675
1687
  }
1676
1688
  let e = F.style;
1677
1689
  e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Ae(), F.removeAttribute("data-mf-sticky-active");
1678
1690
  }, Ne = () => {
1679
- ie &&= (r.cancelAnimationFrame(ie), null);
1691
+ ae &&= (r.cancelAnimationFrame(ae), null);
1680
1692
  }, Pe = () => {
1681
- X &&= (r.cancelAnimationFrame(X), null);
1693
+ oe &&= (r.cancelAnimationFrame(oe), null);
1682
1694
  }, Fe = () => {
1683
- if (re === null) {
1695
+ if (ie === null) {
1684
1696
  let e = ge().getBoundingClientRect();
1685
- re = Math.max(0, r.scrollY + e.top - t.stickyTop);
1697
+ ie = Math.max(0, r.scrollY + e.top - t.stickyTop);
1686
1698
  }
1687
- return re;
1688
- }, Ie = () => Y + (J === "active" ? Math.max(0, r.performance.now() - ne) : 0), Le = () => Math.max(0, r.scrollY - Fe()), Re = () => {
1699
+ return ie;
1700
+ }, Ie = () => re + (J === "active" ? Math.max(0, r.performance.now() - ne) : 0), Le = () => Math.max(0, r.scrollY - Fe()), Re = () => {
1689
1701
  let e = q ? Ie() / t.stickyDurationMs : 0, n = ee ? Le() / t.stickyScrollDistance : 0;
1690
1702
  return Math.max(e, n);
1691
1703
  }, ze = () => q ? t.stickyDurationMs - Ie() : 0, Be = () => r.scrollY < Fe() - 1, Ve = () => {
1692
- J === "active" && (Y = Ie(), J = "paused", Ne(), Me(), xe({
1704
+ J === "active" && (re = Ie(), J = "paused", Ne(), Me(), xe({
1693
1705
  active: !1,
1694
1706
  progress: Re(),
1695
1707
  remainingMs: ze()
@@ -1697,7 +1709,7 @@ var e = (e, t, n) => {
1697
1709
  }, He = () => {
1698
1710
  J !== "paused" || Be() || (J = "active", ne = r.performance.now(), je(), We());
1699
1711
  }, Ue = () => {
1700
- J !== "active" && J !== "paused" || (J === "active" && (Y = Ie()), J = "released", Ne(), Me(), xe({
1712
+ J !== "active" && J !== "paused" || (J === "active" && (re = Ie()), J = "released", Ne(), Me(), xe({
1701
1713
  active: !1,
1702
1714
  progress: 1,
1703
1715
  remainingMs: 0
@@ -1717,22 +1729,22 @@ var e = (e, t, n) => {
1717
1729
  Ue();
1718
1730
  return;
1719
1731
  }
1720
- ie = r.requestAnimationFrame(We);
1732
+ ae = r.requestAnimationFrame(We);
1721
1733
  }, Ge = () => {
1722
1734
  if (!te || J !== "pending" || !F) return;
1723
1735
  Pe();
1724
1736
  let e = ge().getBoundingClientRect();
1725
- re = Math.max(0, r.scrollY + e.top - t.stickyTop), Y = 0, J = "active", ne = r.performance.now(), je(), We();
1737
+ ie = Math.max(0, r.scrollY + e.top - t.stickyTop), re = 0, J = "active", ne = r.performance.now(), je(), We();
1726
1738
  }, Ke = () => {
1727
1739
  !te || J !== "pending" || !F || ge().getBoundingClientRect().top <= t.stickyTop && Ge();
1728
1740
  }, qe = () => {
1729
1741
  J === "pending" ? Ke() : J === "active" && Be() ? Ve() : J === "paused" && He(), J !== "active" && De();
1730
1742
  }, Je = () => {
1731
1743
  if (!te || J !== "pending" || !F) {
1732
- X = null;
1744
+ oe = null;
1733
1745
  return;
1734
1746
  }
1735
- Ke(), X = J === "pending" ? r.requestAnimationFrame(Je) : null;
1747
+ Ke(), oe = J === "pending" ? r.requestAnimationFrame(Je) : null;
1736
1748
  }, Ye = () => {
1737
1749
  fe();
1738
1750
  let e = n.parentElement;
@@ -1764,7 +1776,7 @@ var e = (e, t, n) => {
1764
1776
  } catch (e) {
1765
1777
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1766
1778
  }
1767
- if (a.setAttribute("poweredAC", "0.1.81"), _) {
1779
+ if (a.setAttribute("poweredAC", "0.1.82"), _) {
1768
1780
  let e = _.style;
1769
1781
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1770
1782
  }
@@ -1963,7 +1975,7 @@ var e = (e, t, n) => {
1963
1975
  let e = new URL(l);
1964
1976
  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");
1965
1977
  let n = F.style;
1966
- n.position = $ ? "absolute" : "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 = $ ? "6" : "1", $ ? (F.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(F), Ee()) : (L || a).appendChild(F), te && (ae = qe, r.addEventListener("scroll", ae, { passive: !0 }), X = r.requestAnimationFrame(Je));
1978
+ n.position = Z ? "absolute" : "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 = Z ? "6" : "1", Z ? (F.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(F), Ee()) : (L || a).appendChild(F), te && (Y = qe, r.addEventListener("scroll", Y, { passive: !0 }), oe = r.requestAnimationFrame(Je));
1967
1979
  } catch (e) {
1968
1980
  console.warn("[mobilefireplace] Could not create billboard iframe:", e);
1969
1981
  }
@@ -1987,11 +1999,11 @@ var e = (e, t, n) => {
1987
1999
  });
1988
2000
  let et = () => {
1989
2001
  if (!Qe) {
1990
- Qe = !0, Ze &&= (window.removeEventListener("pagehide", Ze), window.removeEventListener("beforeunload", Ze), null), Xe &&= (r.removeEventListener("resize", Xe), null), ae &&= (r.removeEventListener("scroll", ae), null), Ne(), Pe(), Z &&= (r.cancelAnimationFrame(Z), null), Q &&= (r.clearTimeout(Q), null), xe({
2002
+ Qe = !0, Ze &&= (window.removeEventListener("pagehide", Ze), window.removeEventListener("beforeunload", Ze), null), Xe &&= (r.removeEventListener("resize", Xe), null), Y &&= (r.removeEventListener("scroll", Y), null), Ne(), Pe(), se &&= (r.cancelAnimationFrame(se), null), ce &&= (r.clearTimeout(ce), null), xe({
1991
2003
  active: !1,
1992
2004
  progress: 1,
1993
2005
  remainingMs: 0
1994
- }), P && P.parentNode && (P.parentNode.removeChild(P), P = null), F && F.parentNode && (F.parentNode.removeChild(F), F = null), ce = null, le = null, L && L.parentNode && (L.parentNode.removeChild(L), L = null), I && I.parentNode && (I.parentNode.removeChild(I), I = null);
2006
+ }), P && P.parentNode && (P.parentNode.removeChild(P), P = null), F && F.parentNode && (F.parentNode.removeChild(F), F = null), Q = null, $ = null, L && L.parentNode && (L.parentNode.removeChild(L), L = null), I && I.parentNode && (I.parentNode.removeChild(I), I = null);
1995
2007
  try {
1996
2008
  delete r.__mfBridge;
1997
2009
  } catch {}
@@ -2007,12 +2019,12 @@ var e = (e, t, n) => {
2007
2019
  }
2008
2020
  };
2009
2021
  return et;
2010
- }, N = () => {};
2011
- function P({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2012
- typeof N == "function" && N();
2022
+ }, F = () => {};
2023
+ function I({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2024
+ typeof F == "function" && F();
2013
2025
  let o = () => {};
2014
- return e === "fireplace" ? o = l(t) : e === "fireplace-collant" ? o = u(t) : e === "logomorph" ? o = O(n, r, i) : e === "dynamicheading" ? o = D(a) : e === "interscroller" ? o = A(a) : e === "liquidframe" ? o = j(a) : e === "mobilefireplace" ? o = M(a) : console.warn("[powered-ad-config] Unknown ad format:", e), N = typeof o == "function" ? o : () => {}, N;
2026
+ return e === "fireplace" ? o = l(t) : e === "fireplace-collant" ? o = u(t) : e === "logomorph" ? o = A(n, r, i) : e === "dynamicheading" ? o = k(a) : e === "interscroller" ? o = M(a) : e === "liquidframe" ? o = N(a) : e === "mobilefireplace" ? o = P(a) : console.warn("[powered-ad-config] Unknown ad format:", e), F = typeof o == "function" ? o : () => {}, F;
2015
2027
  }
2016
- P.version = "0.1.81";
2028
+ I.version = "0.1.82";
2017
2029
  //#endregion
2018
- export { P as default };
2030
+ export { I as default };
@@ -167,7 +167,7 @@
167
167
  max-width: 100% !important;
168
168
  overflow: visible !important;
169
169
  }
170
- `),o(h.length>0?h:f.filter(e=>e!==d&&e!==p),[[`position`,`relative`],[`zIndex`,`1071`]]),o(a([...g,...Array.from(r.querySelectorAll(`main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*="adspot-desktop-banner-"]`))]),[[`position`,`relative`],[`zIndex`,`1072`]]),o(y,[[`zIndex`,`1072`]]);let b=s(r.querySelector(`footer`),`div`);b&&(b.style.position=`relative`),T(r)}},M=()=>C()?j:A,N={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);`)}},P=[{site:`https://www.nine.com.au/sport`,config:M},{site:`https://www.nine.com.au/product-reviews`,config:g},{site:`https://www.nine.com.au/property`,config:g},{site:`https://www.nine.com.au/entertainment`,config:k},{site:`https://staging.nine.com.au/sport`,config:M},{site:`https://staging.nine.com.au/product-reviews`,config:g},{site:`https://staging.nine.com.au/property`,config:g},{site:`https://staging.nine.com.au/entertainment`,config:k},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:k},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:k},{site:`https://preview.nine.com.au/`,config:k},{site:`https://www.nine`,config:k},{site:`https://staging.nine`,config:k},{site:`https://entertainment`,config:h},{site:`https://celebrity`,config:h},{site:`https://homes`,config:h},{site:`https://travel`,config:h},{site:`https://honey`,config:h},{site:`https://style`,config:h},{site:`https://coach`,config:h},{site:`https://kitchen`,config:h},{site:`https://finance`,config:h},{site:`https://staging.wwos`,config:M},{site:`https://www.9news`,config:N},{site:`https://staging.9news`,config:N},{site:`https://www.yourtv`,config:h},{site:`https://staging.yourtv`,config:h},{site:`https://9now`,config:g},{site:`https://creative-preview-an.com`,config:h}],F=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=W.siteBackgroundColor),B(),z(),R(),d.addEventListener(`scroll`,U),G=setTimeout(U,50),W===O||W===j){let e=W===O?b():null,t=e?.appRoot||x()||f.body,n=e?.desktopHeaderAds||f.querySelector(`#desktop-header-ads`);t&&d.MutationObserver&&(m=new d.MutationObserver(()=>{H()}),m.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&m.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),d.addEventListener(`resize`,H),H()}},I=()=>{let e=null;return e=f.querySelector(`div[id*="billboard"][id*="above"]`),e},L=()=>{let e=d.location.href;for(let t=0;t<P.length;t+=1)if(e.indexOf(P[t].site)>=0)return typeof P[t].config==`function`?P[t].config():P[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return h;if(n.includes(`9news`))return N;if(n.includes(`yourtv`))return h;if(n.includes(`9now`))return g;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`)?M():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?g:k();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return h}catch{return k()}return k()},R=()=>{if(!window.parent)return;let e=f.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&d.getComputedStyle(t).position===`sticky`){t.style.top=`${W.stickyMargin.offset}px`;break}},z=()=>{if(!u)return;let e=u.style;e.width=W.iframeWidth||`100%`,e.height=W.iframeHeight||`1000px`,e.position=`fixed`,W.iframeTop==null?e.removeProperty(`top`):e.top=W.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=u.parentElement;for(;t&&t!==f.body&&t!==f.documentElement;){let e=d.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}},B=()=>{let e=I();if(!e)return;c(e,`0.1.81`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=W.adNodeMarginTop+`px`,t.marginBottom=W.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,W.zIndex&&W.zIndex()},V=()=>{let e=d.scrollY,t=u.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=K?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>K&&e<=q?(t.transform=`translate(-50%, ${-K}px)`,n.transform=`translateY(${K-e}px)`):e>q&&(t.transform=`translate(-50%, ${-K}px)`,n.transform=`translateY(-250px)`)},H=()=>{W!==O&&W!==j||p||(p=d.requestAnimationFrame(()=>{p=null,z(),B(),R(),V()}))},U=()=>{V()};I();let W=L();if(!W)return()=>{};let G=null,K=-W.responsiveScroll+l+w(),q=K+250;return F(),()=>{d.removeEventListener(`scroll`,U),d.removeEventListener(`resize`,H),m&&=(m.disconnect(),null),p&&=(d.cancelAnimationFrame(p),null),G&&=(clearTimeout(G),null)}},u=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=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=`
170
+ `),o(h.length>0?h:f.filter(e=>e!==d&&e!==p),[[`position`,`relative`],[`zIndex`,`1071`]]),o(a([...g,...Array.from(r.querySelectorAll(`main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*="adspot-desktop-banner-"]`))]),[[`position`,`relative`],[`zIndex`,`1072`]]),o(y,[[`zIndex`,`1072`]]);let b=s(r.querySelector(`footer`),`div`);b&&(b.style.position=`relative`),T(r)}},M=()=>C()?j:A,N={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);`)}},P=[{site:`https://www.nine.com.au/sport`,config:M},{site:`https://www.nine.com.au/product-reviews`,config:g},{site:`https://www.nine.com.au/property`,config:g},{site:`https://www.nine.com.au/entertainment`,config:k},{site:`https://staging.nine.com.au/sport`,config:M},{site:`https://staging.nine.com.au/product-reviews`,config:g},{site:`https://staging.nine.com.au/property`,config:g},{site:`https://staging.nine.com.au/entertainment`,config:k},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:k},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:k},{site:`https://preview.nine.com.au/`,config:k},{site:`https://www.nine`,config:k},{site:`https://staging.nine`,config:k},{site:`https://entertainment`,config:h},{site:`https://celebrity`,config:h},{site:`https://homes`,config:h},{site:`https://travel`,config:h},{site:`https://honey`,config:h},{site:`https://style`,config:h},{site:`https://coach`,config:h},{site:`https://kitchen`,config:h},{site:`https://finance`,config:h},{site:`https://staging.wwos`,config:M},{site:`https://www.9news`,config:N},{site:`https://staging.9news`,config:N},{site:`https://www.yourtv`,config:h},{site:`https://staging.yourtv`,config:h},{site:`https://9now`,config:g},{site:`https://creative-preview-an.com`,config:h}],F=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=W.siteBackgroundColor),B(),z(),R(),d.addEventListener(`scroll`,U),G=setTimeout(U,50),W===O||W===j){let e=W===O?b():null,t=e?.appRoot||x()||f.body,n=e?.desktopHeaderAds||f.querySelector(`#desktop-header-ads`);t&&d.MutationObserver&&(m=new d.MutationObserver(()=>{H()}),m.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&m.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),d.addEventListener(`resize`,H),H()}},I=()=>{let e=null;return e=f.querySelector(`div[id*="billboard"][id*="above"]`),e},L=()=>{let e=d.location.href;for(let t=0;t<P.length;t+=1)if(e.indexOf(P[t].site)>=0)return typeof P[t].config==`function`?P[t].config():P[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return h;if(n.includes(`9news`))return N;if(n.includes(`yourtv`))return h;if(n.includes(`9now`))return g;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`)?M():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?g:k();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return h}catch{return k()}return k()},R=()=>{if(!window.parent)return;let e=f.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&d.getComputedStyle(t).position===`sticky`){t.style.top=`${W.stickyMargin.offset}px`;break}},z=()=>{if(!u)return;let e=u.style;e.width=W.iframeWidth||`100%`,e.height=W.iframeHeight||`1000px`,e.position=`fixed`,W.iframeTop==null?e.removeProperty(`top`):e.top=W.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=u.parentElement;for(;t&&t!==f.body&&t!==f.documentElement;){let e=d.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}},B=()=>{let e=I();if(!e)return;c(e,`0.1.82`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=W.adNodeMarginTop+`px`,t.marginBottom=W.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,W.zIndex&&W.zIndex()},V=()=>{let e=d.scrollY,t=u.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=K?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>K&&e<=q?(t.transform=`translate(-50%, ${-K}px)`,n.transform=`translateY(${K-e}px)`):e>q&&(t.transform=`translate(-50%, ${-K}px)`,n.transform=`translateY(-250px)`)},H=()=>{W!==O&&W!==j||p||(p=d.requestAnimationFrame(()=>{p=null,z(),B(),R(),V()}))},U=()=>{V()};I();let W=L();if(!W)return()=>{};let G=null,K=-W.responsiveScroll+l+w(),q=K+250;return F(),()=>{d.removeEventListener(`scroll`,U),d.removeEventListener(`resize`,H),m&&=(m.disconnect(),null),p&&=(d.cancelAnimationFrame(p),null),G&&=(clearTimeout(G),null)}},u=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=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=`
171
171
  div:has(#adspot-tablet-takeover-2-above) {
172
172
  position: static;
173
173
  }
@@ -234,9 +234,9 @@
234
234
  transform: translateX(-50%) !important;
235
235
  z-index: 1088 !important;
236
236
  }
237
- `)},y={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`)}},b={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`),v()}},x={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`),m(e),v()}},S={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=s(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),m(e),v()}},C={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`),m(e)}},w={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`)}},T=[{site:`https://www.nine.com.au/sport`,config:S},{site:`https://www.nine.com.au/product-reviews`,config:b},{site:`https://www.nine.com.au/property`,config:b},{site:`https://www.nine.com.au/entertainment`,config:b},{site:`https://staging.nine.com.au/sport`,config:S},{site:`https://staging.nine.com.au/product-reviews`,config:b},{site:`https://staging.nine.com.au/property`,config:b},{site:`https://staging.nine.com.au/entertainment`,config:b},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:x},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:x},{site:`https://preview.nine.com.au/`,config:x},{site:`https://www.nine`,config:x},{site:`https://staging.nine`,config:x},{site:`https://entertainment`,config:y},{site:`https://celebrity`,config:y},{site:`https://homes`,config:y},{site:`https://travel`,config:y},{site:`https://honey`,config:y},{site:`https://style`,config:y},{site:`https://coach`,config:y},{site:`https://kitchen`,config:y},{site:`https://finance`,config:y},{site:`https://wwos`,config:C},{site:`https://staging.wwos`,config:S},{site:`https://www.9news`,config:w},{site:`https://staging.9news`,config:w},{site:`https://www.yourtv`,config:y},{site:`https://staging.yourtv`,config:y},{site:`https://9now`,config:b},{site:`https://creative-preview-an.com`,config:y}],E=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=R.siteBackgroundColor),d&&(f.setProperty(`--masthead-height`,`250px`),f.height=`var(--masthead-height)`),M(),j(),k(),N(),l.addEventListener(`scroll`,I,{passive:!0}),z=setTimeout(I,50)},D=()=>{let e=null;return e=u.querySelector(`div[id*="billboard"][id*="above"]`),e},O=()=>{let e=u.querySelector(`nav`);if(h(`header-ad-desktop`)||!e)return 0;let t=l.getComputedStyle(e);if(t.position!==`fixed`)return 0;let n=parseFloat(t.top||`0`);return Number.isFinite(n)&&Math.abs(n)>1?0:Math.round(e.getBoundingClientRect().height)||0},k=()=>{let e=null;if(!window.parent)return e;if(e=u.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&l.getComputedStyle(t).position===`sticky`){t.style.top=`${R.stickyMargin.offset}px`;break}},A=()=>{let e=l.location.href;for(let t=0;t<T.length;t+=1)if(e.indexOf(T[t].site)>=0)return T[t].config},j=()=>{if(!c)return;let e=c.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)`},M=()=>{if(!L)return;let e=L.style;L.className=``,e.minHeight=`250px`,e.marginTop=R.adNodeMarginTop+`px`,e.marginBottom=R.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,R.zIndex&&R.zIndex()},N=()=>{p=u.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||u.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||h(`main`)||h(`container`)||h(`page-container`)||u.querySelector(`div[class*="__MyContainer"]`)||u.querySelector(`div[class*="__ArticleContainer"]`)||u.querySelector(`div[class*="__VideoIndexComponent"]`)||u.querySelector(`div.container.layout`)||u.querySelector(`main.container.layout`),p&&(p.style.willChange=`clip-path`,p.style.transition=`none`,p.style.webkitBackfaceVisibility=`hidden`,p.style.backfaceVisibility=`hidden`,p.style.transform=`translate3d(0,0,0)`,p.style.backgroundColor=R.siteBackgroundColor,p.style.setProperty(`--mask-inset`,`0px`),p.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},P=0,F=0,I=()=>{let e=l.scrollY,t=e>P,n=e>V?e-R.maskOffset:0,r=Math.abs(n-F);if(p)if(t&&n>F)if(r>100){let e=Math.max(0,n-100);p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${e}px`),p.offsetHeight,p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`);else p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${n}px`);P=e,F=n,e>V?(c.style.setProperty(`--transform-y`,`${-B}px`),f.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>B&&e<=V?(c.style.setProperty(`--transform-y`,`${-B}px`),f.setProperty(`--masthead-height`,`${250+B-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=B&&(c.style.setProperty(`--transform-y`,`${-e}px`),f.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},L=D(),R=A();if(!R)return()=>{};let z=null,B=-R.responsiveScroll+o+O(),V=B+150;return E(),()=>{l.removeEventListener(`scroll`,I),z&&=(clearTimeout(z),null)}},d=866,f=68,p=16,m=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,h=`adspot-desktop-takeover-2-above`,g=-24,_=-24,v=[`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`],y=[{hostnames:v,path:`/sport`,headingText:`Sport`,slotId:h}],b=new Set([`localhost`,`127.0.0.1`]),x=`__poweredAdConfigDynamicHeadingActive`,S=`data-pac-dynamicheading-owner`,C=`data-pac-reparented`,w=(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`},T=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():h,hostnames:i.length?i:v}},E=e=>{if(!Array.isArray(e)||e.length===0)return y;let t=e.map(T).filter(Boolean);return t.length?t:y},D=({offsetTop:e=g,offsetLeft:t=_,width:n=d,height:r=f,pageTargets:i=y}={})=>{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 c=o[x];if(c?.iframe===a&&typeof c.cleanup==`function`)return c.cleanup;if(c?.iframe?.isConnected&&typeof c?.cleanup==`function`)return()=>{};typeof c?.cleanup==`function`&&c.cleanup();let l=`dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,u=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},h=()=>{try{let e=window.location.hostname.toLowerCase();return b.has(e)?!0:new URLSearchParams(window.location.search).get(`keepDynamicHeadingVisible`)===`1`}catch{return!1}},v=(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},T=()=>{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(m));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;h();let A=w(e,g),j=w(t,_),M=w(n,d),N=w(r,f),P=E(i),F=T();if(!F)return()=>{};let I=v((F.slotId?s.getElementById(F.slotId):null)||a.parentElement);if(!I)return()=>{};let L=I.getAttribute(S);if(L&&L!==l)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)||f,H=parseFloat(A)||0,U=parseFloat(j)||0,W=()=>{let e=I.parentElement;for(;e&&e!==s.body;)B.push({element:e,overflow:e.style.overflow}),u(e,`overflow`,`visible`),e=e.parentElement},G=()=>{u(I,`width`,M),u(I,`maxWidth`,M),u(I,`minWidth`,M),u(I,`height`,N),u(I,`minHeight`,N),u(I,`display`,`block`),u(I,`overflow`,`hidden`),u(I,`pointerEvents`,`none`),u(I,`zIndex`,`1080`),I.setAttribute(S,l),u(a,`width`,M),u(a,`height`,N),u(a,`display`,`block`),u(a,`border`,`0`),u(a,`position`,`relative`),u(a,`pointerEvents`,`auto`)},K={element:null,position:``},q=()=>{let e=I.parentElement;e&&o.getComputedStyle(e).position===`static`&&(K.element=e,K.position=e.style.position,u(e,`position`,`relative`)),u(I,`position`,`absolute`),u(I,`top`,`${H}px`),u(I,`left`,`${U}px`),u(I,`right`,`auto`),u(I,`marginTop`,`0px`),u(I,`marginBottom`,`${p}px`),u(I,`marginLeft`,`0px`),u(I,`marginRight`,`0px`),u(I,`transform`,``)},ee=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(`
237
+ `)},y={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`)}},b={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`),v()}},x={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`),m(e),v()}},S={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=s(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),m(e),v()}},C={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`),m(e)}},w={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`)}},T=[{site:`https://www.nine.com.au/sport`,config:S},{site:`https://www.nine.com.au/product-reviews`,config:b},{site:`https://www.nine.com.au/property`,config:b},{site:`https://www.nine.com.au/entertainment`,config:b},{site:`https://staging.nine.com.au/sport`,config:S},{site:`https://staging.nine.com.au/product-reviews`,config:b},{site:`https://staging.nine.com.au/property`,config:b},{site:`https://staging.nine.com.au/entertainment`,config:b},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:x},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:x},{site:`https://preview.nine.com.au/`,config:x},{site:`https://www.nine`,config:x},{site:`https://staging.nine`,config:x},{site:`https://entertainment`,config:y},{site:`https://celebrity`,config:y},{site:`https://homes`,config:y},{site:`https://travel`,config:y},{site:`https://honey`,config:y},{site:`https://style`,config:y},{site:`https://coach`,config:y},{site:`https://kitchen`,config:y},{site:`https://finance`,config:y},{site:`https://wwos`,config:C},{site:`https://staging.wwos`,config:S},{site:`https://www.9news`,config:w},{site:`https://staging.9news`,config:w},{site:`https://www.yourtv`,config:y},{site:`https://staging.yourtv`,config:y},{site:`https://9now`,config:b},{site:`https://creative-preview-an.com`,config:y}],E=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=R.siteBackgroundColor),d&&(f.setProperty(`--masthead-height`,`250px`),f.height=`var(--masthead-height)`),M(),j(),k(),N(),l.addEventListener(`scroll`,I,{passive:!0}),z=setTimeout(I,50)},D=()=>{let e=null;return e=u.querySelector(`div[id*="billboard"][id*="above"]`),e},O=()=>{let e=u.querySelector(`nav`);if(h(`header-ad-desktop`)||!e)return 0;let t=l.getComputedStyle(e);if(t.position!==`fixed`)return 0;let n=parseFloat(t.top||`0`);return Number.isFinite(n)&&Math.abs(n)>1?0:Math.round(e.getBoundingClientRect().height)||0},k=()=>{let e=null;if(!window.parent)return e;if(e=u.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&l.getComputedStyle(t).position===`sticky`){t.style.top=`${R.stickyMargin.offset}px`;break}},A=()=>{let e=l.location.href;for(let t=0;t<T.length;t+=1)if(e.indexOf(T[t].site)>=0)return T[t].config},j=()=>{if(!c)return;let e=c.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)`},M=()=>{if(!L)return;let e=L.style;L.className=``,e.minHeight=`250px`,e.marginTop=R.adNodeMarginTop+`px`,e.marginBottom=R.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,R.zIndex&&R.zIndex()},N=()=>{p=u.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||u.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||h(`main`)||h(`container`)||h(`page-container`)||u.querySelector(`div[class*="__MyContainer"]`)||u.querySelector(`div[class*="__ArticleContainer"]`)||u.querySelector(`div[class*="__VideoIndexComponent"]`)||u.querySelector(`div.container.layout`)||u.querySelector(`main.container.layout`),p&&(p.style.willChange=`clip-path`,p.style.transition=`none`,p.style.webkitBackfaceVisibility=`hidden`,p.style.backfaceVisibility=`hidden`,p.style.transform=`translate3d(0,0,0)`,p.style.backgroundColor=R.siteBackgroundColor,p.style.setProperty(`--mask-inset`,`0px`),p.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},P=0,F=0,I=()=>{let e=l.scrollY,t=e>P,n=e>V?e-R.maskOffset:0,r=Math.abs(n-F);if(p)if(t&&n>F)if(r>100){let e=Math.max(0,n-100);p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${e}px`),p.offsetHeight,p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`);else p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${n}px`);P=e,F=n,e>V?(c.style.setProperty(`--transform-y`,`${-B}px`),f.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>B&&e<=V?(c.style.setProperty(`--transform-y`,`${-B}px`),f.setProperty(`--masthead-height`,`${250+B-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=B&&(c.style.setProperty(`--transform-y`,`${-e}px`),f.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},L=D(),R=A();if(!R)return()=>{};let z=null,B=-R.responsiveScroll+o+O(),V=B+150;return E(),()=>{l.removeEventListener(`scroll`,I),z&&=(clearTimeout(z),null)}},d=866,f=68,p=16,m=`:scope > header h1, :scope > header h2, :scope > header h3`,h=`h1, h2, h3`,g=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,_=`adspot-desktop-takeover-2-above`,v=-24,y=-24,b=[`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`],x=[{hostnames:b,path:`/sport`,headingText:`Sport`,slotId:_}],S=new Set([`localhost`,`127.0.0.1`]),C=`__poweredAdConfigDynamicHeadingActive`,w=`data-pac-dynamicheading-owner`,T=`data-pac-reparented`,E=(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`},D=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():_,hostnames:i.length?i:b}},O=e=>{if(!Array.isArray(e)||e.length===0)return x;let t=e.map(D).filter(Boolean);return t.length?t:x},k=({offsetTop:e=v,offsetLeft:t=y,width:n=d,height:i=f,pageTargets:a=x}={})=>{let o=window.frameElement||null;if(!o)return()=>{};let s=window.parent;if(!s||s===window)return()=>{};let c=null;try{c=s.document,s.location.href}catch{return()=>{}}let l=s[C];if(l?.iframe===o&&typeof l.cleanup==`function`)return l.cleanup;if(l?.iframe?.isConnected&&typeof l?.cleanup==`function`)return()=>{};typeof l?.cleanup==`function`&&l.cleanup();let u=`dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,_=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},b=()=>{try{let e=window.location.hostname.toLowerCase();return S.has(e)?!0:new URLSearchParams(window.location.search).get(`keepDynamicHeadingVisible`)===`1`}catch{return!1}},D=(e=o.parentElement)=>{let t=e;for(;t&&t!==c.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 o.parentElement},k=()=>{try{let e=new URL(s.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return B.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},A=()=>{let e=r(c,`app`)||c.getElementById(`app`)||c,t=r(e,`page-container`)||e;return r(r(t,`container`)||t,`main`)||r(e,`main`)||c.querySelector(`#app main`)||null},j=e=>{if(!e||!e.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;let n=s.getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`},M=()=>{let e=A(),t=e?[...e.querySelectorAll(m),...e.querySelectorAll(h)]:[],n=t.length?[]:Array.from(c.querySelectorAll(g));return Array.from(new Set([...t,...n])).filter(j)},N=e=>{let t=M();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},P=null,F=null;b();let I=E(e,v),L=E(t,y),R=E(n,d),z=E(i,f),B=O(a),V=k();if(!V)return()=>{};let H=D((V.slotId?c.getElementById(V.slotId):null)||o.parentElement);if(!H)return()=>{};let U=H.getAttribute(w);if(U&&U!==u)return()=>{};let W={width:H.style.width,maxWidth:H.style.maxWidth,minWidth:H.style.minWidth,height:H.style.height,minHeight:H.style.minHeight,marginTop:H.style.marginTop,marginBottom:H.style.marginBottom,marginLeft:H.style.marginLeft,marginRight:H.style.marginRight,position:H.style.position,top:H.style.top,left:H.style.left,right:H.style.right,transform:H.style.transform,display:H.style.display,opacity:H.style.opacity,transition:H.style.transition,pointerEvents:H.style.pointerEvents,zIndex:H.style.zIndex,overflow:H.style.overflow},G={width:o.style.width,height:o.style.height,display:o.style.display,border:o.style.border,position:o.style.position,pointerEvents:o.style.pointerEvents},K=[],q=parseFloat(z)||f,ee=parseFloat(I)||0,te=parseFloat(L)||0,J=()=>{let e=H.parentElement;for(;e&&e!==c.body;)K.push({element:e,overflow:e.style.overflow}),_(e,`overflow`,`visible`),e=e.parentElement},ne=()=>{_(H,`width`,R),_(H,`maxWidth`,R),_(H,`minWidth`,R),_(H,`height`,z),_(H,`minHeight`,z),_(H,`display`,`block`),_(H,`overflow`,`hidden`),_(H,`pointerEvents`,`none`),_(H,`zIndex`,`1080`),H.setAttribute(w,u),_(o,`width`,R),_(o,`height`,z),_(o,`display`,`block`),_(o,`border`,`0`),_(o,`position`,`relative`),_(o,`pointerEvents`,`auto`)},re={element:null,position:``},ie=()=>{let e=H.parentElement;e&&s.getComputedStyle(e).position===`static`&&(re.element=e,re.position=e.style.position,_(e,`position`,`relative`)),_(H,`position`,`absolute`),_(H,`top`,`${ee}px`),_(H,`left`,`${te}px`),_(H,`right`,`auto`),_(H,`marginTop`,`0px`),_(H,`marginBottom`,`${p}px`),_(H,`marginLeft`,`0px`),_(H,`marginRight`,`0px`),_(H,`transform`,``)},ae=e=>{let t=null;try{let e=o.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(`
238
238
  `),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(`
239
- `);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(C,`1`);try{e.parentNode?.insertBefore(I,e)}catch{return a.removeAttribute(C),!1}W(),G(),q();try{a.srcdoc=t}catch{return!1}return!0},te=()=>{u(I,`position`,`fixed`),u(I,`marginTop`,`0px`),u(I,`marginBottom`,`0px`),u(I,`marginLeft`,`0px`),u(I,`marginRight`,`0px`),u(I,`transform`,``)},J=()=>{u(I,`display`,`none`)},ne=()=>{u(I,`display`,`block`),u(I,`overflow`,`hidden`)},Y=null,re=()=>{if((!Y||!Y.isConnected)&&(Y=D(F.headingText)),!Y)return;let e=Y.getBoundingClientRect(),t=e.top-V-p+H,n=e.left+U;u(I,`top`,`${t}px`),u(I,`left`,`${n}px`),u(I,`right`,`auto`)},ie=null,X=null,Z=!1,Q=(e=12)=>{if(Y=D(F.headingText),!Y){e>1&&(k=o.setTimeout(()=>Q(e-1),250));return}ee(Y)||(Z=!0,W(),G(),te(),re(),ie=()=>re(),X=()=>re(),o.addEventListener(`scroll`,ie,{passive:!0}),o.addEventListener(`resize`,X))};Q();let ae=()=>{k&&=(o.clearTimeout(k),null),O&&=(o.clearTimeout(O),null),ie&&=(o.removeEventListener(`scroll`,ie),null),X&&=(o.removeEventListener(`resize`,X),null),I.getAttribute(S)===l&&I.removeAttribute(S),Z&&(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[x]?.instanceId===l&&delete o[x]};return o[x]={instanceId:l,iframe:a,cleanup:ae,show:ne,hide:J},ae},O=(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)}},k=((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}),A=(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:k,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.81`),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||``})}},j=(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.81`),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)}},M=(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,U=null,W=null,G=null,K=[],q=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,ee=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,te=!!(t.sticky&&(q||ee)),J=`pending`,ne=0,Y=0,re=null,ie=null,X=null,Z=null,Q=null,ae=null,oe=[],se=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,$=f===u.afr,ce=null,le=null,ue=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`},de=e=>{!e?.parentElement||K.some(t=>t.shell===e)||(K.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},fe=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;ue(t)&&de(t)}},pe=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}},me=()=>{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},he=()=>{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},ge=()=>L||a,_e=()=>!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`),ve=()=>{let e=_e().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},ye=()=>{let e=ve();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,se||t.stickyTop)},be=()=>{let e=ve();return e?.zIndex&&e.zIndex>2?Math.max(t.stickyZIndex,e.zIndex+1):t.stickyZIndex},xe=({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))},`*`)},Se=e=>{!e||oe.some(t=>t.el===e)||oe.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},Ce=e=>{let t=new Set([ge()].filter(Boolean));if(f===u.afr||W||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=ge()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)Se(n),n.style.setProperty(`z-index`,String(e),`important`)},we=()=>$&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||ge(),Te=()=>{if(!$||!F)return;let e=F.style;e.left=`0px`,e.width=`100vw`},Ee=()=>{if(!$||!F||J===`active`)return;let e=we();if(!e)return;let t=e.getBoundingClientRect(),n=F.style;n.position=`absolute`,n.top=`${Math.round(r.scrollY+t.top)}px`,Te(),n.setProperty(`z-index`,`6`,`important`),F.removeAttribute(`data-mf-sticky-active`)},De=()=>{$&&(Ee(),Z&&r.cancelAnimationFrame(Z),Z=r.requestAnimationFrame(()=>{Z=null,Ee()}),Q&&r.clearTimeout(Q),Q=r.setTimeout(()=>{Q=null,Ee()},350))},Oe=()=>{!$||!F||F.parentElement===i.body||(ce=F.parentElement,le=F.nextSibling,i.body.appendChild(F))},ke=()=>{if(!ce||!F){ce=null,le=null;return}le&&le.parentNode===ce?ce.insertBefore(F,le):ce.appendChild(F),ce=null,le=null},Ae=()=>{for(let e=oe.length-1;e>=0;--e){let{el:t,value:n,priority:r}=oe[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}oe.length=0},je=()=>{if(!F)return;pe(ge());let e=ge().getBoundingClientRect(),t=be();Ce(t),Oe();let n=F.style;n.position=`fixed`,n.top=`${ye()}px`,$?Te():(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`,``)},Me=()=>{if(!F)return;if(ke(),$){De(),Ae();return}let e=F.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),Ae(),F.removeAttribute(`data-mf-sticky-active`)},Ne=()=>{ie&&=(r.cancelAnimationFrame(ie),null)},Pe=()=>{X&&=(r.cancelAnimationFrame(X),null)},Fe=()=>{if(re===null){let e=ge().getBoundingClientRect();re=Math.max(0,r.scrollY+e.top-t.stickyTop)}return re},Ie=()=>Y+(J===`active`?Math.max(0,r.performance.now()-ne):0),Le=()=>Math.max(0,r.scrollY-Fe()),Re=()=>{let e=q?Ie()/t.stickyDurationMs:0,n=ee?Le()/t.stickyScrollDistance:0;return Math.max(e,n)},ze=()=>q?t.stickyDurationMs-Ie():0,Be=()=>r.scrollY<Fe()-1,Ve=()=>{J===`active`&&(Y=Ie(),J=`paused`,Ne(),Me(),xe({active:!1,progress:Re(),remainingMs:ze()}))},He=()=>{J!==`paused`||Be()||(J=`active`,ne=r.performance.now(),je(),We())},Ue=()=>{J!==`active`&&J!==`paused`||(J===`active`&&(Y=Ie()),J=`released`,Ne(),Me(),xe({active:!1,progress:1,remainingMs:0}))},We=()=>{if(J!==`active`)return;if(Be()){Ve();return}let e=Ie(),n=Le(),i=q?e/t.stickyDurationMs:0,a=ee?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=q?t.stickyDurationMs-e:0;if(je(),xe({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){Ue();return}ie=r.requestAnimationFrame(We)},Ge=()=>{if(!te||J!==`pending`||!F)return;Pe();let e=ge().getBoundingClientRect();re=Math.max(0,r.scrollY+e.top-t.stickyTop),Y=0,J=`active`,ne=r.performance.now(),je(),We()},Ke=()=>{!te||J!==`pending`||!F||ge().getBoundingClientRect().top<=t.stickyTop&&Ge()},qe=()=>{J===`pending`?Ke():J===`active`&&Be()?Ve():J===`paused`&&He(),J!==`active`&&De()},Je=()=>{if(!te||J!==`pending`||!F){X=null;return}Ke(),X=J===`pending`?r.requestAnimationFrame(Je):null},Ye=()=>{fe();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){W=e,G=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.81`),_){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=`
239
+ `);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;o.setAttribute(T,`1`);try{e.parentNode?.insertBefore(H,e)}catch{return o.removeAttribute(T),!1}J(),ne(),ie();try{o.srcdoc=t}catch{return!1}return!0},oe=()=>{_(H,`position`,`fixed`),_(H,`marginTop`,`0px`),_(H,`marginBottom`,`0px`),_(H,`marginLeft`,`0px`),_(H,`marginRight`,`0px`),_(H,`transform`,``)},se=()=>{_(H,`display`,`none`)},ce=()=>{_(H,`display`,`block`),_(H,`overflow`,`hidden`)},Y=null,X=()=>{if((!Y||!Y.isConnected)&&(Y=N(V.headingText)),!Y)return;let e=Y.getBoundingClientRect(),t=e.top-q-p+ee,n=e.left+te;_(H,`top`,`${t}px`),_(H,`left`,`${n}px`),_(H,`right`,`auto`)},le=null,Z=null,Q=!1,$=(e=12)=>{if(Y=N(V.headingText),!Y){e>1&&(F=s.setTimeout(()=>$(e-1),250));return}ae(Y)||(Q=!0,J(),ne(),oe(),X(),le=()=>X(),Z=()=>X(),s.addEventListener(`scroll`,le,{passive:!0}),s.addEventListener(`resize`,Z))};$();let ue=()=>{F&&=(s.clearTimeout(F),null),P&&=(s.clearTimeout(P),null),le&&=(s.removeEventListener(`scroll`,le),null),Z&&=(s.removeEventListener(`resize`,Z),null),H.getAttribute(w)===u&&H.removeAttribute(w),Q&&(Object.entries(W).forEach(([e,t])=>{H.style[e]=t}),Object.entries(G).forEach(([e,t])=>{o.style[e]=t}),K.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),s[C]?.instanceId===u&&delete s[C]};return s[C]={instanceId:u,iframe:o,cleanup:ue,show:ce,hide:se},ue},A=(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)}},j=((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}),M=(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:j,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.82`),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||``})}},N=(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.82`),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)}},P=(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,U=null,W=null,G=null,K=[],q=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,ee=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,te=!!(t.sticky&&(q||ee)),J=`pending`,ne=0,re=0,ie=null,ae=null,oe=null,se=null,ce=null,Y=null,X=[],le=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,Z=f===u.afr,Q=null,$=null,ue=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`},de=e=>{!e?.parentElement||K.some(t=>t.shell===e)||(K.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},fe=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;ue(t)&&de(t)}},pe=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}},me=()=>{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},he=()=>{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},ge=()=>L||a,_e=()=>!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`),ve=()=>{let e=_e().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},ye=()=>{let e=ve();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,le||t.stickyTop)},be=()=>{let e=ve();return e?.zIndex&&e.zIndex>2?Math.max(t.stickyZIndex,e.zIndex+1):t.stickyZIndex},xe=({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))},`*`)},Se=e=>{!e||X.some(t=>t.el===e)||X.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},Ce=e=>{let t=new Set([ge()].filter(Boolean));if(f===u.afr||W||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=ge()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)Se(n),n.style.setProperty(`z-index`,String(e),`important`)},we=()=>Z&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||ge(),Te=()=>{if(!Z||!F)return;let e=F.style;e.left=`0px`,e.width=`100vw`},Ee=()=>{if(!Z||!F||J===`active`)return;let e=we();if(!e)return;let t=e.getBoundingClientRect(),n=F.style;n.position=`absolute`,n.top=`${Math.round(r.scrollY+t.top)}px`,Te(),n.setProperty(`z-index`,`6`,`important`),F.removeAttribute(`data-mf-sticky-active`)},De=()=>{Z&&(Ee(),se&&r.cancelAnimationFrame(se),se=r.requestAnimationFrame(()=>{se=null,Ee()}),ce&&r.clearTimeout(ce),ce=r.setTimeout(()=>{ce=null,Ee()},350))},Oe=()=>{!Z||!F||F.parentElement===i.body||(Q=F.parentElement,$=F.nextSibling,i.body.appendChild(F))},ke=()=>{if(!Q||!F){Q=null,$=null;return}$&&$.parentNode===Q?Q.insertBefore(F,$):Q.appendChild(F),Q=null,$=null},Ae=()=>{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},je=()=>{if(!F)return;pe(ge());let e=ge().getBoundingClientRect(),t=be();Ce(t),Oe();let n=F.style;n.position=`fixed`,n.top=`${ye()}px`,Z?Te():(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`,``)},Me=()=>{if(!F)return;if(ke(),Z){De(),Ae();return}let e=F.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),Ae(),F.removeAttribute(`data-mf-sticky-active`)},Ne=()=>{ae&&=(r.cancelAnimationFrame(ae),null)},Pe=()=>{oe&&=(r.cancelAnimationFrame(oe),null)},Fe=()=>{if(ie===null){let e=ge().getBoundingClientRect();ie=Math.max(0,r.scrollY+e.top-t.stickyTop)}return ie},Ie=()=>re+(J===`active`?Math.max(0,r.performance.now()-ne):0),Le=()=>Math.max(0,r.scrollY-Fe()),Re=()=>{let e=q?Ie()/t.stickyDurationMs:0,n=ee?Le()/t.stickyScrollDistance:0;return Math.max(e,n)},ze=()=>q?t.stickyDurationMs-Ie():0,Be=()=>r.scrollY<Fe()-1,Ve=()=>{J===`active`&&(re=Ie(),J=`paused`,Ne(),Me(),xe({active:!1,progress:Re(),remainingMs:ze()}))},He=()=>{J!==`paused`||Be()||(J=`active`,ne=r.performance.now(),je(),We())},Ue=()=>{J!==`active`&&J!==`paused`||(J===`active`&&(re=Ie()),J=`released`,Ne(),Me(),xe({active:!1,progress:1,remainingMs:0}))},We=()=>{if(J!==`active`)return;if(Be()){Ve();return}let e=Ie(),n=Le(),i=q?e/t.stickyDurationMs:0,a=ee?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=q?t.stickyDurationMs-e:0;if(je(),xe({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){Ue();return}ae=r.requestAnimationFrame(We)},Ge=()=>{if(!te||J!==`pending`||!F)return;Pe();let e=ge().getBoundingClientRect();ie=Math.max(0,r.scrollY+e.top-t.stickyTop),re=0,J=`active`,ne=r.performance.now(),je(),We()},Ke=()=>{!te||J!==`pending`||!F||ge().getBoundingClientRect().top<=t.stickyTop&&Ge()},qe=()=>{J===`pending`?Ke():J===`active`&&Be()?Ve():J===`paused`&&He(),J!==`active`&&De()},Je=()=>{if(!te||J!==`pending`||!F){oe=null;return}Ke(),oe=J===`pending`?r.requestAnimationFrame(Je):null},Ye=()=>{fe();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){W=e,G=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.82`),_){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=`
240
240
  /* Mobile Fireplace — powered-ad-config */
241
241
  html, body {
242
242
  background-color: transparent !important;
@@ -400,4 +400,4 @@
400
400
  margin: 0 !important;
401
401
  padding: 0 !important;
402
402
  }
403
- `,i.head.appendChild(P),f.setup&&f.setup(i,a),f===u.wwos){let e=he();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&&(W||p)){if(W&&(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=me(),o.parentElement.insertBefore(L,o),W?(W.style.position=`static`,W.style.inset=`auto`,W.style.height=`0`,W.style.minHeight=`0`,W.style.maxHeight=`0`,W.style.overflow=`hidden`,W.style.backgroundColor=`transparent`,W.style.boxShadow=`none`,W.style.border=`0`,W.style.outline=`0`,W.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`),fe()}L||(L=me(),a.appendChild(L))},Xe=null,Ze=null,Qe=!1,$e=()=>{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`);J===`active`?je():De()};if(Ye(),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=$?`absolute`:`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=$?`6`:`1`,$?(F.setAttribute(`data-mf-body-billboard`,``),i.body.appendChild(F),Ee()):(L||a).appendChild(F),te&&(ae=qe,r.addEventListener(`scroll`,ae,{passive:!0}),X=r.requestAnimationFrame(Je))}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{}}),Xe=$e,r.addEventListener(`resize`,Xe),$e(),Ze=()=>{et()},window.addEventListener(`pagehide`,Ze),window.addEventListener(`beforeunload`,Ze),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let et=()=>{if(!Qe){Qe=!0,Ze&&=(window.removeEventListener(`pagehide`,Ze),window.removeEventListener(`beforeunload`,Ze),null),Xe&&=(r.removeEventListener(`resize`,Xe),null),ae&&=(r.removeEventListener(`scroll`,ae),null),Ne(),Pe(),Z&&=(r.cancelAnimationFrame(Z),null),Q&&=(r.clearTimeout(Q),null),xe({active:!1,progress:1,remainingMs:0}),P&&P.parentNode&&(P.parentNode.removeChild(P),P=null),F&&F.parentNode&&(F.parentNode.removeChild(F),F=null),ce=null,le=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=K.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=K[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}K.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&&(U&&U.parentNode===H?H.insertBefore(V,U):H.appendChild(V),H=null,U=null),null),y&&(y.removeAttribute(`data-mf-slot`),b?y.setAttribute(`style`,b):y.removeAttribute(`style`)),W&&(G?W.setAttribute(`style`,G):W.removeAttribute(`style`),W=null,G=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 et},N=()=>{};function P({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof N==`function`&&N();let o=()=>{};return e===`fireplace`?o=l(t):e===`fireplace-collant`?o=u(t):e===`logomorph`?o=O(n,r,i):e===`dynamicheading`?o=D(a):e===`interscroller`?o=A(a):e===`liquidframe`?o=j(a):e===`mobilefireplace`?o=M(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),N=typeof o==`function`?o:()=>{},N}return P.version=`0.1.81`,P});
403
+ `,i.head.appendChild(P),f.setup&&f.setup(i,a),f===u.wwos){let e=he();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&&(W||p)){if(W&&(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=me(),o.parentElement.insertBefore(L,o),W?(W.style.position=`static`,W.style.inset=`auto`,W.style.height=`0`,W.style.minHeight=`0`,W.style.maxHeight=`0`,W.style.overflow=`hidden`,W.style.backgroundColor=`transparent`,W.style.boxShadow=`none`,W.style.border=`0`,W.style.outline=`0`,W.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`),fe()}L||(L=me(),a.appendChild(L))},Xe=null,Ze=null,Qe=!1,$e=()=>{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`);J===`active`?je():De()};if(Ye(),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=Z?`absolute`:`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=Z?`6`:`1`,Z?(F.setAttribute(`data-mf-body-billboard`,``),i.body.appendChild(F),Ee()):(L||a).appendChild(F),te&&(Y=qe,r.addEventListener(`scroll`,Y,{passive:!0}),oe=r.requestAnimationFrame(Je))}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{}}),Xe=$e,r.addEventListener(`resize`,Xe),$e(),Ze=()=>{et()},window.addEventListener(`pagehide`,Ze),window.addEventListener(`beforeunload`,Ze),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let et=()=>{if(!Qe){Qe=!0,Ze&&=(window.removeEventListener(`pagehide`,Ze),window.removeEventListener(`beforeunload`,Ze),null),Xe&&=(r.removeEventListener(`resize`,Xe),null),Y&&=(r.removeEventListener(`scroll`,Y),null),Ne(),Pe(),se&&=(r.cancelAnimationFrame(se),null),ce&&=(r.clearTimeout(ce),null),xe({active:!1,progress:1,remainingMs:0}),P&&P.parentNode&&(P.parentNode.removeChild(P),P=null),F&&F.parentNode&&(F.parentNode.removeChild(F),F=null),Q=null,$=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=K.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=K[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}K.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&&(U&&U.parentNode===H?H.insertBefore(V,U):H.appendChild(V),H=null,U=null),null),y&&(y.removeAttribute(`data-mf-slot`),b?y.setAttribute(`style`,b):y.removeAttribute(`style`)),W&&(G?W.setAttribute(`style`,G):W.removeAttribute(`style`),W=null,G=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 et},F=()=>{};function I({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof F==`function`&&F();let o=()=>{};return e===`fireplace`?o=l(t):e===`fireplace-collant`?o=u(t):e===`logomorph`?o=A(n,r,i):e===`dynamicheading`?o=k(a):e===`interscroller`?o=M(a):e===`liquidframe`?o=N(a):e===`mobilefireplace`?o=P(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),F=typeof o==`function`?o:()=>{},F}return I.version=`0.1.82`,I});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.81",
3
+ "version": "0.1.82",
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",