powered-ad-config 0.1.41 → 0.1.43

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.
@@ -42,10 +42,35 @@ var e = (e) => {
42
42
  let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
43
43
  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");
44
44
  }
45
- }, c = () => {
46
- let e = r.querySelector("#app"), t = r.querySelector("#desktop-header-ads");
47
- return !e || !t || t.parentElement !== e || !e.querySelector(":scope > .sc-llJctl") ? null : e;
48
- }, l = () => !!c(), u = () => !!(r.querySelector("#app.wwos") && r.querySelector("#desktop-header-ads")), d = {
45
+ }, c = (e, t) => {
46
+ if (!e || !t) return null;
47
+ let n = t;
48
+ for (; n && n.parentElement !== e;) n = n.parentElement;
49
+ return n?.parentElement === e ? n : null;
50
+ }, l = () => {
51
+ let e = r.querySelector("#app.nine, #app");
52
+ if (!e) return null;
53
+ let t = r.querySelector("#desktop-header-ads"), n = e.querySelector(":scope > .sc-llJctl") || e.querySelector(":scope > header"), i = c(e, C());
54
+ return t && t.parentElement === e && n ? {
55
+ appRoot: e,
56
+ headerShell: n,
57
+ billboardContainer: t,
58
+ desktopHeaderAds: t
59
+ } : n && i ? {
60
+ appRoot: e,
61
+ headerShell: n,
62
+ billboardContainer: i,
63
+ desktopHeaderAds: null
64
+ } : null;
65
+ }, u = () => l()?.appRoot || null, d = () => !!u(), f = () => !!(r.querySelector("#app.wwos") && r.querySelector("#desktop-header-ads")), p = () => {
66
+ if (d() || f()) return 0;
67
+ let e = r.querySelector("nav");
68
+ if (!e) return 0;
69
+ let t = n.getComputedStyle(e);
70
+ if (t.position !== "fixed") return 0;
71
+ let i = parseFloat(t.top || "0");
72
+ return Number.isFinite(i) && Math.abs(i) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
73
+ }, m = {
49
74
  siteBackgroundColor: "#ffffff",
50
75
  fireplaceLeftMargin: 0,
51
76
  adNodeMarginTop: -24,
@@ -66,7 +91,7 @@ var e = (e) => {
66
91
  t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
67
92
  }
68
93
  }
69
- }, f = {
94
+ }, h = {
70
95
  siteBackgroundColor: "#ffffff",
71
96
  fireplaceLeftMargin: 0,
72
97
  adNodeMarginTop: 0,
@@ -94,19 +119,17 @@ var e = (e) => {
94
119
  n(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
95
120
  };
96
121
  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");
97
- let o = c(), s = e.querySelector("#desktop-header-ads");
98
- if (o && s) {
99
- let e = o.querySelector(":scope > .sc-llJctl");
100
- t(s, "height", "250px"), t(s, "padding", "0px"), a(s), i("powered-ac-nine-new-header-overrides", "\n #app > .sc-llJctl.hgiQrx {\n width: 100%;\n max-width: 1190px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n z-index: 1085;\n }\n\n #app > .sc-llJctl header {\n position: relative;\n }\n\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n }\n\n #app > .sc-llJctl.FwHsm {\n z-index: 1086;\n }\n\n #app > header[data-tv-show] {\n width: 100%;\n max-width: 1190px;\n margin-left: auto;\n margin-right: auto;\n }\n\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n ");
101
- let c = Array.from(o.children).filter((t) => t !== s && t !== e);
102
- n(c, [["position", "relative"], ["zIndex", "1071"]]), n(c.flatMap((e) => r(e)), [["position", "relative"], ["zIndex", "1072"]]);
122
+ let o = l(), s = o?.appRoot, c = o?.desktopHeaderAds, u = o?.billboardContainer;
123
+ if (s) {
124
+ let e = o.headerShell, l = Array.from(s.children).filter((e) => e.tagName !== "SCRIPT"), d = u ? l.indexOf(u) : -1, f = l.filter((e, t) => t < d), p = d >= 0 ? l.filter((e, t) => t > d) : l.filter((t) => t !== c && t !== e);
125
+ t(c, "height", "250px"), t(c, "padding", "0px"), c && a(c), n(f, [["position", "relative"], ["zIndex", "1085"]]), t(e, "position", "relative"), t(e, "zIndex", "1085"), i("powered-ac-nine-new-header-overrides", "\n #app > .sc-llJctl.hgiQrx {\n width: 100%;\n max-width: 1190px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n z-index: 1085;\n }\n\n #app > .sc-llJctl header {\n position: relative;\n }\n\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n }\n\n #app > .sc-llJctl.FwHsm {\n z-index: 1086;\n }\n\n #app > header[data-tv-show] {\n width: 100%;\n max-width: 1190px;\n margin-left: auto;\n margin-right: auto;\n }\n\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n\n #app.nine > header {\n position: relative;\n z-index: 1085;\n }\n "), n(p, [["position", "relative"], ["zIndex", "1071"]]), n(p.flatMap((e) => r(e)), [["position", "relative"], ["zIndex", "1072"]]);
103
126
  }
104
127
  if (e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) {
105
128
  let t = e.createElement("style");
106
129
  t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
107
130
  }
108
131
  }
109
- }, p = () => l() ? f : d, m = {
132
+ }, g = () => d() ? h : m, _ = {
110
133
  siteBackgroundColor: "#ffffff",
111
134
  fireplaceLeftMargin: 0,
112
135
  adNodeMarginTop: -24,
@@ -125,7 +148,7 @@ var e = (e) => {
125
148
  t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
126
149
  }
127
150
  }
128
- }, h = {
151
+ }, v = {
129
152
  siteBackgroundColor: "#ffffff",
130
153
  fireplaceLeftMargin: 0,
131
154
  adNodeMarginTop: 0,
@@ -159,7 +182,7 @@ var e = (e) => {
159
182
  t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
160
183
  }
161
184
  }
162
- }, g = () => u() ? h : m, _ = {
185
+ }, y = () => f() ? v : _, b = {
163
186
  siteBackgroundColor: "#ffffff",
164
187
  fireplaceLeftMargin: 0,
165
188
  adNodeMarginTop: -32,
@@ -175,10 +198,10 @@ var e = (e) => {
175
198
  let e = window.parent.document;
176
199
  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);");
177
200
  }
178
- }, v = [
201
+ }, x = [
179
202
  {
180
203
  site: "https://www.nine.com.au/sport",
181
- config: g
204
+ config: y
182
205
  },
183
206
  {
184
207
  site: "https://www.nine.com.au/product-reviews",
@@ -190,11 +213,11 @@ var e = (e) => {
190
213
  },
191
214
  {
192
215
  site: "https://www.nine.com.au/entertainment",
193
- config: p
216
+ config: g
194
217
  },
195
218
  {
196
219
  site: "https://staging.nine.com.au/sport",
197
- config: g
220
+ config: y
198
221
  },
199
222
  {
200
223
  site: "https://staging.nine.com.au/product-reviews",
@@ -206,27 +229,27 @@ var e = (e) => {
206
229
  },
207
230
  {
208
231
  site: "https://staging.nine.com.au/entertainment",
209
- config: p
232
+ config: g
210
233
  },
211
234
  {
212
235
  site: "https://render-web-nine-staging-v1.ffxblue.com.au",
213
- config: p
236
+ config: g
214
237
  },
215
238
  {
216
239
  site: "https://render-web-nine-production-v1.ffxblue.com.au",
217
- config: p
240
+ config: g
218
241
  },
219
242
  {
220
243
  site: "https://preview.nine.com.au/",
221
- config: p
244
+ config: g
222
245
  },
223
246
  {
224
247
  site: "https://www.nine",
225
- config: p
248
+ config: g
226
249
  },
227
250
  {
228
251
  site: "https://staging.nine",
229
- config: p
252
+ config: g
230
253
  },
231
254
  {
232
255
  site: "https://entertainment",
@@ -266,15 +289,15 @@ var e = (e) => {
266
289
  },
267
290
  {
268
291
  site: "https://staging.wwos",
269
- config: g
292
+ config: y
270
293
  },
271
294
  {
272
295
  site: "https://www.9news",
273
- config: _
296
+ config: b
274
297
  },
275
298
  {
276
299
  site: "https://staging.9news",
277
- config: _
300
+ config: b
278
301
  },
279
302
  {
280
303
  site: "https://www.yourtv",
@@ -292,35 +315,35 @@ var e = (e) => {
292
315
  site: "https://creative-preview-an.com",
293
316
  config: o
294
317
  }
295
- ], y = () => {
318
+ ], S = () => {
296
319
  let e = window.document.getElementById("nineContent");
297
- if (e && (e.style.backgroundColor = D.siteBackgroundColor), w(), C(), S(), n.addEventListener("scroll", E), O = setTimeout(E, 50), D === f || D === h) {
298
- let e = c() || r.body, t = r.querySelector("#desktop-header-ads");
299
- e && n.MutationObserver && (a = new n.MutationObserver(() => {
300
- T();
301
- }), a.observe(e, {
320
+ if (e && (e.style.backgroundColor = A.siteBackgroundColor), D(), E(), T(), n.addEventListener("scroll", k), j = setTimeout(k, 50), A === h || A === v) {
321
+ let e = A === h ? l() : null, t = e?.appRoot || u() || r.body, i = e?.desktopHeaderAds || e?.billboardContainer || r.querySelector("#desktop-header-ads");
322
+ t && n.MutationObserver && (a = new n.MutationObserver(() => {
323
+ O();
324
+ }), a.observe(t, {
302
325
  childList: !0,
303
326
  subtree: !0
304
- }), t && a.observe(t, {
327
+ }), i && i !== t && a.observe(i, {
305
328
  childList: !0,
306
329
  subtree: !0,
307
330
  attributes: !0,
308
331
  attributeFilter: ["class", "style"]
309
- })), n.addEventListener("resize", T), T();
332
+ })), n.addEventListener("resize", O), O();
310
333
  }
311
- }, b = () => {
334
+ }, C = () => {
312
335
  let e = null;
313
336
  return e = r.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
314
- }, x = () => {
337
+ }, w = () => {
315
338
  let e = n.location.href;
316
- for (let t = 0; t < v.length; t += 1) if (e.indexOf(v[t].site) >= 0) return typeof v[t].config == "function" ? v[t].config() : v[t].config;
339
+ for (let t = 0; t < x.length; t += 1) if (e.indexOf(x[t].site) >= 0) return typeof x[t].config == "function" ? x[t].config() : x[t].config;
317
340
  try {
318
341
  let t = new URL(e), n = t.hostname.toLowerCase(), r = t.pathname.toLowerCase();
319
342
  if (n === "creative-preview-an.com") return o;
320
- if (n.includes("9news")) return _;
343
+ if (n.includes("9news")) return b;
321
344
  if (n.includes("yourtv")) return o;
322
345
  if (n.includes("9now")) return s;
323
- 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") ? g() : r.startsWith("/product-reviews") || r.startsWith("/property") ? s : p();
346
+ 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") ? y() : r.startsWith("/product-reviews") || r.startsWith("/property") ? s : g();
324
347
  if ([
325
348
  "entertainment",
326
349
  "celebrity",
@@ -333,47 +356,47 @@ var e = (e) => {
333
356
  "finance"
334
357
  ].some((e) => n.includes(e))) return o;
335
358
  } catch {
336
- return p();
359
+ return g();
337
360
  }
338
- return p();
339
- }, S = () => {
361
+ return g();
362
+ }, T = () => {
340
363
  if (!window.parent) return;
341
364
  let e = r.querySelector("div[id*=\"halfpage\"][id*=\"above\"]");
342
365
  if (!e) return;
343
366
  let t = e;
344
367
  for (let e = 0; e < 3; e++) if (t = t.parentNode, t && n.getComputedStyle(t).position === "sticky") {
345
- t.setAttribute("style", `top: ${D.stickyMargin.offset}px`);
368
+ t.setAttribute("style", `top: ${A.stickyMargin.offset}px`);
346
369
  break;
347
370
  }
348
- }, C = () => {
371
+ }, E = () => {
349
372
  if (!t) return;
350
373
  let e = t.style;
351
- e.width = D.iframeWidth || "100%", e.height = D.iframeHeight || "1000px", e.position = "fixed", e.top = "0", e.left = "50%", e.transform = "translate(-50%, 0)";
374
+ e.width = A.iframeWidth || "100%", e.height = A.iframeHeight || "1000px", e.position = "fixed", A.iframeTop == null ? e.removeProperty("top") : e.top = A.iframeTop, e.left = "50%", e.transform = "translate(-50%, 0)";
352
375
  let i = t.parentElement;
353
376
  for (; i && i !== r.body && i !== r.documentElement;) {
354
377
  let e = n.getComputedStyle(i);
355
378
  e.transform && e.transform !== "none" && (i.style.transform = "none"), e.willChange && e.willChange !== "auto" && (i.style.willChange = "auto"), e.contain && e.contain !== "none" && (i.style.contain = "none"), e.filter && e.filter !== "none" && (i.style.filter = "none"), e.perspective && e.perspective !== "none" && (i.style.perspective = "none"), e.overflow !== "visible" && (i.style.overflow = "visible"), i = i.parentElement;
356
379
  }
357
- }, w = () => {
358
- let e = b();
380
+ }, D = () => {
381
+ let e = C();
359
382
  if (!e) return;
360
383
  let t = e.style;
361
- e.className &&= "", t.minHeight = "250px", t.marginTop = D.adNodeMarginTop + "px", t.marginBottom = D.adNodeMarginBottom + "px", t.position = "static", t.display = "block", D.zIndex && D.zIndex();
362
- }, T = () => {
363
- D !== f || i || (i = n.requestAnimationFrame(() => {
364
- i = null, C(), w(), S();
384
+ e.className &&= "", t.minHeight = "250px", t.marginTop = A.adNodeMarginTop + "px", t.marginBottom = A.adNodeMarginBottom + "px", t.position = "static", t.display = "block", A.zIndex && A.zIndex();
385
+ }, O = () => {
386
+ A !== h && A !== v || i || (i = n.requestAnimationFrame(() => {
387
+ i = null, E(), D(), T();
365
388
  }));
366
- }, E = () => {
367
- T();
389
+ }, k = () => {
390
+ O();
368
391
  let e = n.scrollY, r = t.style, i = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
369
- e >= 0 && e <= k ? (r.transform = `translate(-50%, ${-e}px)`, i.transform = "translateY(0)") : e > k && e <= A ? (r.transform = `translate(-50%, ${-k}px)`, i.transform = `translateY(${k - e}px)`) : e > A && (r.transform = `translate(-50%, ${-k}px)`, i.transform = "translateY(-250px)");
392
+ e >= 0 && e <= M ? (r.transform = `translate(-50%, ${-e}px)`, i.transform = "translateY(0)") : e > M && e <= N ? (r.transform = `translate(-50%, ${-M}px)`, i.transform = `translateY(${M - e}px)`) : e > N && (r.transform = `translate(-50%, ${-M}px)`, i.transform = "translateY(-250px)");
370
393
  };
371
- b();
372
- let D = x();
373
- if (!D) return () => {};
374
- let O = null, k = -D.responsiveScroll + e, A = k + 250;
375
- return y(), () => {
376
- n.removeEventListener("scroll", E), n.removeEventListener("resize", T), a &&= (a.disconnect(), null), i &&= (n.cancelAnimationFrame(i), null), O &&= (clearTimeout(O), null);
394
+ C();
395
+ let A = w();
396
+ if (!A) return () => {};
397
+ let j = null, M = -A.responsiveScroll + e + p(), N = M + 250;
398
+ return S(), () => {
399
+ n.removeEventListener("scroll", k), n.removeEventListener("resize", O), a &&= (a.disconnect(), null), i &&= (n.cancelAnimationFrame(i), null), j &&= (clearTimeout(j), null);
377
400
  };
378
401
  }, t = (e) => {
379
402
  let t = window.frameElement ? window.frameElement : null;
@@ -622,45 +645,52 @@ var e = (e) => {
622
645
  }
623
646
  ], m = () => {
624
647
  let e = window.document.getElementById("nineContent");
625
- e && (e.style.backgroundColor = T.siteBackgroundColor), i && (a.setProperty("--masthead-height", "250px"), a.height = "var(--masthead-height)"), y(), v(), g(), b(), n.addEventListener("scroll", C, { passive: !0 }), E = setTimeout(C, 50);
648
+ e && (e.style.backgroundColor = E.siteBackgroundColor), i && (a.setProperty("--masthead-height", "250px"), a.height = "var(--masthead-height)"), b(), y(), _(), x(), n.addEventListener("scroll", w, { passive: !0 }), D = setTimeout(w, 50);
626
649
  }, h = () => {
627
650
  let e = null;
628
651
  return e = r.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
629
652
  }, g = () => {
653
+ let e = r.querySelector("nav");
654
+ if (!e) return 0;
655
+ let t = n.getComputedStyle(e);
656
+ if (t.position !== "fixed") return 0;
657
+ let i = parseFloat(t.top || "0");
658
+ return Number.isFinite(i) && Math.abs(i) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
659
+ }, _ = () => {
630
660
  let e = null;
631
661
  if (!window.parent) return e;
632
662
  if (e = r.querySelector("div[id*=\"halfpage\"][id*=\"above\"]"), !e) return;
633
663
  let t = e;
634
664
  for (let e = 0; e < 3; e++) if (t = t.parentNode, t && getComputedStyle(t).position === "sticky") {
635
- t.setAttribute("style", `top: ${T.stickyMargin.offset}px`);
665
+ t.setAttribute("style", `top: ${E.stickyMargin.offset}px`);
636
666
  break;
637
667
  }
638
- }, _ = () => {
668
+ }, v = () => {
639
669
  let e = n.location.href;
640
670
  for (let t = 0; t < p.length; t += 1) if (e.indexOf(p[t].site) >= 0) return p[t].config;
641
- }, v = () => {
671
+ }, y = () => {
642
672
  if (!t) return;
643
673
  let e = t.style;
644
674
  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)";
645
- }, y = () => {
646
- if (!w) return;
647
- let e = w.style;
648
- w.className = "", e.minHeight = "250px", e.marginTop = T.adNodeMarginTop + "px", e.marginBottom = T.adNodeMarginBottom + "px", e.position = "static", e.display = "block", T.zIndex && T.zIndex();
649
675
  }, b = () => {
650
- o = r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || r.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || r.querySelector("div[class*=\"__MyContainer\"]") || r.querySelector("div[class*=\"__ArticleContainer\"]") || r.querySelector("div[class*=\"__VideoIndexComponent\"]") || r.querySelector("div.container.layout") || r.querySelector("main.container.layout"), o && (o.style.willChange = "clip-path", o.style.transition = "none", o.style.webkitBackfaceVisibility = "hidden", o.style.backfaceVisibility = "hidden", o.style.transform = "translate3d(0,0,0)", o.style.backgroundColor = T.siteBackgroundColor, o.style.setProperty("--mask-inset", "0px"), o.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
651
- }, x = 0, S = 0, C = () => {
652
- let e = n.scrollY, r = e > x, i = e > O ? e - T.maskOffset : 0, s = Math.abs(i - S);
653
- if (o) if (r && i > S) if (s > 100) {
676
+ if (!T) return;
677
+ let e = T.style;
678
+ T.className = "", e.minHeight = "250px", e.marginTop = E.adNodeMarginTop + "px", e.marginBottom = E.adNodeMarginBottom + "px", e.position = "static", e.display = "block", E.zIndex && E.zIndex();
679
+ }, x = () => {
680
+ o = r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || r.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || r.querySelector("div[class*=\"__MyContainer\"]") || r.querySelector("div[class*=\"__ArticleContainer\"]") || r.querySelector("div[class*=\"__VideoIndexComponent\"]") || r.querySelector("div.container.layout") || r.querySelector("main.container.layout"), o && (o.style.willChange = "clip-path", o.style.transition = "none", o.style.webkitBackfaceVisibility = "hidden", o.style.backfaceVisibility = "hidden", o.style.transform = "translate3d(0,0,0)", o.style.backgroundColor = E.siteBackgroundColor, o.style.setProperty("--mask-inset", "0px"), o.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
681
+ }, S = 0, C = 0, w = () => {
682
+ let e = n.scrollY, r = e > S, i = e > k ? e - E.maskOffset : 0, s = Math.abs(i - C);
683
+ if (o) if (r && i > C) if (s > 100) {
654
684
  let e = Math.max(0, i - 100);
655
685
  o.style.transition = "none", o.style.setProperty("--mask-inset", `${e}px`), o.offsetHeight, o.style.transition = "clip-path 0.3s ease-out", o.style.setProperty("--mask-inset", `${i}px`);
656
686
  } else o.style.transition = "clip-path 0.3s ease-out", o.style.setProperty("--mask-inset", `${i}px`);
657
687
  else o.style.transition = "none", o.style.setProperty("--mask-inset", `${i}px`);
658
- x = e, S = i, e > O ? (t.style.setProperty("--transform-y", `${-D}px`), a.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > D && e <= O ? (t.style.setProperty("--transform-y", `${-D}px`), a.setProperty("--masthead-height", `${250 + D - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= D && (t.style.setProperty("--transform-y", `${-e}px`), a.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
659
- }, w = h(), T = _();
660
- if (!T) return () => {};
661
- let E = null, D = -T.responsiveScroll + e, O = D + 150;
688
+ S = e, C = i, e > k ? (t.style.setProperty("--transform-y", `${-O}px`), a.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > O && e <= k ? (t.style.setProperty("--transform-y", `${-O}px`), a.setProperty("--masthead-height", `${250 + O - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= O && (t.style.setProperty("--transform-y", `${-e}px`), a.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
689
+ }, T = h(), E = v();
690
+ if (!E) return () => {};
691
+ let D = null, O = -E.responsiveScroll + e + g(), k = O + 150;
662
692
  return m(), () => {
663
- n.removeEventListener("scroll", C), E &&= (clearTimeout(E), null);
693
+ n.removeEventListener("scroll", w), D &&= (clearTimeout(D), null);
664
694
  };
665
695
  }, n = 866, r = 68, i = 16, a = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", o = "adspot-desktop-takeover-2-above", s = -24, c = -24, l = [
666
696
  "www.nine.com.au",
@@ -729,7 +759,7 @@ var e = (e) => {
729
759
  }, E = () => {
730
760
  try {
731
761
  let e = new URL(y.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
732
- return P.find((e) => {
762
+ return ee.find((e) => {
733
763
  let r = e.hostnames.includes(t), i = e.path ? n === e.path : n.startsWith(e.pathPrefix);
734
764
  return r && i;
735
765
  }) || null;
@@ -748,54 +778,54 @@ var e = (e) => {
748
778
  return t.find((e) => e.tagName === "H1") || t[0] || null;
749
779
  }, O = null, k = null;
750
780
  w();
751
- let A = h(e, s), j = h(t, c), M = h(o, n), N = h(l, r), P = _(g), F = E();
781
+ let A = h(e, s), j = h(t, c), M = h(o, n), N = h(l, r), ee = _(g), P = E();
782
+ if (!P) return () => {};
783
+ let F = T((P.slotId ? b.getElementById(P.slotId) : null) || v.parentElement);
752
784
  if (!F) return () => {};
753
- let I = T((F.slotId ? b.getElementById(F.slotId) : null) || v.parentElement);
754
- if (!I) return () => {};
755
- let L = I.getAttribute(p);
756
- if (L && L !== S) return () => {};
757
- let R = {
758
- width: I.style.width,
759
- maxWidth: I.style.maxWidth,
760
- minWidth: I.style.minWidth,
761
- height: I.style.height,
762
- minHeight: I.style.minHeight,
763
- marginTop: I.style.marginTop,
764
- marginBottom: I.style.marginBottom,
765
- marginLeft: I.style.marginLeft,
766
- marginRight: I.style.marginRight,
767
- position: I.style.position,
768
- top: I.style.top,
769
- left: I.style.left,
770
- right: I.style.right,
771
- transform: I.style.transform,
772
- display: I.style.display,
773
- opacity: I.style.opacity,
774
- transition: I.style.transition,
775
- pointerEvents: I.style.pointerEvents,
776
- zIndex: I.style.zIndex,
777
- overflow: I.style.overflow
778
- }, z = {
785
+ let I = F.getAttribute(p);
786
+ if (I && I !== S) return () => {};
787
+ let L = {
788
+ width: F.style.width,
789
+ maxWidth: F.style.maxWidth,
790
+ minWidth: F.style.minWidth,
791
+ height: F.style.height,
792
+ minHeight: F.style.minHeight,
793
+ marginTop: F.style.marginTop,
794
+ marginBottom: F.style.marginBottom,
795
+ marginLeft: F.style.marginLeft,
796
+ marginRight: F.style.marginRight,
797
+ position: F.style.position,
798
+ top: F.style.top,
799
+ left: F.style.left,
800
+ right: F.style.right,
801
+ transform: F.style.transform,
802
+ display: F.style.display,
803
+ opacity: F.style.opacity,
804
+ transition: F.style.transition,
805
+ pointerEvents: F.style.pointerEvents,
806
+ zIndex: F.style.zIndex,
807
+ overflow: F.style.overflow
808
+ }, R = {
779
809
  width: v.style.width,
780
810
  height: v.style.height,
781
811
  display: v.style.display,
782
812
  border: v.style.border,
783
813
  position: v.style.position,
784
814
  pointerEvents: v.style.pointerEvents
785
- }, B = [], V = parseFloat(N) || r, H = parseFloat(A) || 0, U = parseFloat(j) || 0, W = () => {
786
- let e = I.parentElement;
787
- for (; e && e !== b.body;) B.push({
815
+ }, z = [], B = parseFloat(N) || r, V = parseFloat(A) || 0, H = parseFloat(j) || 0, U = () => {
816
+ let e = F.parentElement;
817
+ for (; e && e !== b.body;) z.push({
788
818
  element: e,
789
819
  overflow: e.style.overflow
790
820
  }), C(e, "overflow", "visible"), e = e.parentElement;
791
- }, G = () => {
792
- C(I, "width", M), C(I, "maxWidth", M), C(I, "minWidth", M), C(I, "height", N), C(I, "minHeight", N), C(I, "display", "block"), C(I, "overflow", "hidden"), C(I, "pointerEvents", "none"), C(I, "zIndex", "1080"), I.setAttribute(p, S), C(v, "width", M), C(v, "height", N), C(v, "display", "block"), C(v, "border", "0"), C(v, "position", "relative"), C(v, "pointerEvents", "auto");
793
- }, K = {
821
+ }, W = () => {
822
+ C(F, "width", M), C(F, "maxWidth", M), C(F, "minWidth", M), C(F, "height", N), C(F, "minHeight", N), C(F, "display", "block"), C(F, "overflow", "hidden"), C(F, "pointerEvents", "none"), C(F, "zIndex", "1080"), F.setAttribute(p, S), C(v, "width", M), C(v, "height", N), C(v, "display", "block"), C(v, "border", "0"), C(v, "position", "relative"), C(v, "pointerEvents", "auto");
823
+ }, G = {
794
824
  element: null,
795
825
  position: ""
796
- }, ee = () => {
797
- let e = I.parentElement;
798
- e && y.getComputedStyle(e).position === "static" && (K.element = e, K.position = e.style.position, C(e, "position", "relative")), C(I, "position", "absolute"), C(I, "top", `${H}px`), C(I, "left", `${U}px`), C(I, "right", "auto"), C(I, "marginTop", "0px"), C(I, "marginBottom", `${i}px`), C(I, "marginLeft", "0px"), C(I, "marginRight", "0px"), C(I, "transform", "");
826
+ }, K = () => {
827
+ let e = F.parentElement;
828
+ e && y.getComputedStyle(e).position === "static" && (G.element = e, G.position = e.style.position, C(e, "position", "relative")), C(F, "position", "absolute"), C(F, "top", `${V}px`), C(F, "left", `${H}px`), C(F, "right", "auto"), C(F, "marginTop", "0px"), C(F, "marginBottom", `${i}px`), C(F, "marginLeft", "0px"), C(F, "marginRight", "0px"), C(F, "transform", "");
799
829
  }, te = (e) => {
800
830
  let t = null;
801
831
  try {
@@ -814,11 +844,11 @@ var e = (e) => {
814
844
  if (!t) return !1;
815
845
  v.setAttribute(m, "1");
816
846
  try {
817
- e.parentNode?.insertBefore(I, e);
847
+ e.parentNode?.insertBefore(F, e);
818
848
  } catch {
819
849
  return v.removeAttribute(m), !1;
820
850
  }
821
- W(), G(), ee();
851
+ U(), W(), K();
822
852
  try {
823
853
  v.srcdoc = t;
824
854
  } catch {
@@ -826,29 +856,29 @@ var e = (e) => {
826
856
  }
827
857
  return !0;
828
858
  }, ne = () => {
829
- C(I, "position", "fixed"), C(I, "marginTop", "0px"), C(I, "marginBottom", "0px"), C(I, "marginLeft", "0px"), C(I, "marginRight", "0px"), C(I, "transform", "");
859
+ C(F, "position", "fixed"), C(F, "marginTop", "0px"), C(F, "marginBottom", "0px"), C(F, "marginLeft", "0px"), C(F, "marginRight", "0px"), C(F, "transform", "");
830
860
  }, re = () => {
831
- C(I, "display", "none");
861
+ C(F, "display", "none");
832
862
  }, ie = () => {
833
- C(I, "display", "block"), C(I, "overflow", "hidden");
863
+ C(F, "display", "block"), C(F, "overflow", "hidden");
834
864
  }, q = null, J = () => {
835
- if ((!q || !q.isConnected) && (q = D(F.headingText)), !q) return;
836
- let e = q.getBoundingClientRect(), t = e.top - V - i + H, n = e.left + U;
837
- C(I, "top", `${t}px`), C(I, "left", `${n}px`), C(I, "right", "auto");
865
+ if ((!q || !q.isConnected) && (q = D(P.headingText)), !q) return;
866
+ let e = q.getBoundingClientRect(), t = e.top - B - i + V, n = e.left + H;
867
+ C(F, "top", `${t}px`), C(F, "left", `${n}px`), C(F, "right", "auto");
838
868
  }, Y = null, X = null, Z = !1, Q = (e = 12) => {
839
- if (q = D(F.headingText), !q) {
869
+ if (q = D(P.headingText), !q) {
840
870
  e > 1 && (k = y.setTimeout(() => Q(e - 1), 250));
841
871
  return;
842
872
  }
843
- te(q) || (Z = !0, W(), G(), ne(), J(), Y = () => J(), X = () => J(), y.addEventListener("scroll", Y, { passive: !0 }), y.addEventListener("resize", X));
873
+ te(q) || (Z = !0, U(), W(), ne(), J(), Y = () => J(), X = () => J(), y.addEventListener("scroll", Y, { passive: !0 }), y.addEventListener("resize", X));
844
874
  };
845
875
  Q();
846
876
  let $ = () => {
847
- k &&= (y.clearTimeout(k), null), O &&= (y.clearTimeout(O), null), Y &&= (y.removeEventListener("scroll", Y), null), X &&= (y.removeEventListener("resize", X), null), I.getAttribute(p) === S && I.removeAttribute(p), Z && (Object.entries(R).forEach(([e, t]) => {
848
- I.style[e] = t;
849
- }), Object.entries(z).forEach(([e, t]) => {
877
+ k &&= (y.clearTimeout(k), null), O &&= (y.clearTimeout(O), null), Y &&= (y.removeEventListener("scroll", Y), null), X &&= (y.removeEventListener("resize", X), null), F.getAttribute(p) === S && F.removeAttribute(p), Z && (Object.entries(L).forEach(([e, t]) => {
878
+ F.style[e] = t;
879
+ }), Object.entries(R).forEach(([e, t]) => {
850
880
  v.style[e] = t;
851
- }), B.forEach(({ element: e, overflow: t }) => {
881
+ }), z.forEach(({ element: e, overflow: t }) => {
852
882
  e.style.overflow = t;
853
883
  })), y[f]?.instanceId === S && delete y[f];
854
884
  };
@@ -1171,7 +1201,7 @@ var e = (e) => {
1171
1201
  };
1172
1202
  (() => {
1173
1203
  let e = a.style;
1174
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.41"), 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";
1204
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.43"), 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";
1175
1205
  let o = a.parentElement;
1176
1206
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
1177
1207
  let t = r.getComputedStyle(o), n = !1;
@@ -1303,7 +1333,7 @@ var e = (e) => {
1303
1333
  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;
1304
1334
  return (() => {
1305
1335
  let e = a.style;
1306
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.41"), c) {
1336
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.43"), c) {
1307
1337
  let e = c.style;
1308
1338
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1309
1339
  }
@@ -1451,7 +1481,7 @@ var e = (e) => {
1451
1481
  }), e.style.overflow = "visible"), e = e.parentElement;
1452
1482
  }
1453
1483
  let o = n.style;
1454
- if (o.position = "fixed", o.top = "0", o.left = "0", o.width = "100vw", o.height = "100dvh", o.zIndex = String(t.zIndex), o.border = "none", o.margin = "0", o.padding = "0", o.display = "block", a.setAttribute("poweredAC", "0.1.41"), d) {
1484
+ if (o.position = "fixed", o.top = "0", o.left = "0", o.width = "100vw", o.height = "100dvh", o.zIndex = String(t.zIndex), o.border = "none", o.margin = "0", o.padding = "0", o.display = "block", a.setAttribute("poweredAC", "0.1.43"), d) {
1455
1485
  let e = d.style;
1456
1486
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1457
1487
  }
@@ -1554,6 +1584,6 @@ function T({ adFormat: n = "", stickyOffset: r = 0, logoPosX: i = 0, logoHeight:
1554
1584
  let c = () => {};
1555
1585
  return n === "fireplace" ? c = e(r) : n === "fireplace-collant" ? c = t(r) : n === "logomorph" ? c = y(i, a, o) : n === "headingintegration" ? c = v(s) : n === "interscroller" ? c = x(s) : n === "liquidframe" ? c = S(s) : n === "mobilefireplace" ? c = C(s) : console.warn("[powered-ad-config] Unknown ad format:", n), w = typeof c == "function" ? c : () => {}, w;
1556
1586
  }
1557
- T.version = "0.1.41";
1587
+ T.version = "0.1.43";
1558
1588
  //#endregion
1559
1589
  export { T as default };
@@ -1,8 +1,8 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.poweredAdConfig=t())})(this,function(){var e=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let i=null,a=null,o={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:72,stickyMargin:{offset:74,isSticky:!0},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[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`)}},s={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:74,isSticky:!0},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`)}},c=()=>{let e=r.querySelector(`#app`),t=r.querySelector(`#desktop-header-ads`);return!e||!t||t.parentElement!==e||!e.querySelector(`:scope > .sc-llJctl`)?null:e},l=()=>!!c(),u=()=>!!(r.querySelector(`#app.wwos`)&&r.querySelector(`#desktop-header-ads`)),d={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-55,iframeWidth:`100%`,iframeHeight:`1000px`,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document;if(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`),e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.poweredAdConfig=t())})(this,function(){var e=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let i=null,a=null,o={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:72,stickyMargin:{offset:74,isSticky:!0},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[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`)}},s={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:74,isSticky:!0},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`)}},c=(e,t)=>{if(!e||!t)return null;let n=t;for(;n&&n.parentElement!==e;)n=n.parentElement;return n?.parentElement===e?n:null},l=()=>{let e=r.querySelector(`#app.nine, #app`);if(!e)return null;let t=r.querySelector(`#desktop-header-ads`),n=e.querySelector(`:scope > .sc-llJctl`)||e.querySelector(`:scope > header`),i=c(e,C());return t&&t.parentElement===e&&n?{appRoot:e,headerShell:n,billboardContainer:t,desktopHeaderAds:t}:n&&i?{appRoot:e,headerShell:n,billboardContainer:i,desktopHeaderAds:null}:null},u=()=>l()?.appRoot||null,d=()=>!!u(),f=()=>!!(r.querySelector(`#app.wwos`)&&r.querySelector(`#desktop-header-ads`)),p=()=>{if(d()||f())return 0;let e=r.querySelector(`nav`);if(!e)return 0;let t=n.getComputedStyle(e);if(t.position!==`fixed`)return 0;let i=parseFloat(t.top||`0`);return Number.isFinite(i)&&Math.abs(i)>1?0:Math.round(e.getBoundingClientRect().height)||0},m={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-55,iframeWidth:`100%`,iframeHeight:`1000px`,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document;if(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`),e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
2
2
  div:has(#adspot-tablet-takeover-2-above) {
3
3
  position: static;
4
4
  }
5
- `,e.head.appendChild(t)}}},f={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:0,adNodeMarginBottom:0,iframeWidth:`100vw`,iframeHeight:`1152px`,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document,t=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},n=(e,n)=>e.forEach(e=>{n.forEach(([n,r])=>{t(e,n,r)})}),r=e=>e?Array.from(e.querySelectorAll(`:scope > main, :scope > aside, :scope > footer`)):[],i=(t,n)=>{let r=e.getElementById(t);r||(r=e.createElement(`style`),r.id=t,e.head.appendChild(r)),r.textContent=n},a=e=>{n(Array.from(e.querySelectorAll(`*`)).filter(e=>e.children.length>0?!1:e.textContent?.trim().toLowerCase()===`advertisement`),[[`display`,`none`]])};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`);let o=c(),s=e.querySelector(`#desktop-header-ads`);if(o&&s){let e=o.querySelector(`:scope > .sc-llJctl`);t(s,`height`,`250px`),t(s,`padding`,`0px`),a(s),i(`powered-ac-nine-new-header-overrides`,`
5
+ `,e.head.appendChild(t)}}},h={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:0,adNodeMarginBottom:0,iframeWidth:`100vw`,iframeHeight:`1152px`,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document,t=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},n=(e,n)=>e.forEach(e=>{n.forEach(([n,r])=>{t(e,n,r)})}),r=e=>e?Array.from(e.querySelectorAll(`:scope > main, :scope > aside, :scope > footer`)):[],i=(t,n)=>{let r=e.getElementById(t);r||(r=e.createElement(`style`),r.id=t,e.head.appendChild(r)),r.textContent=n},a=e=>{n(Array.from(e.querySelectorAll(`*`)).filter(e=>e.children.length>0?!1:e.textContent?.trim().toLowerCase()===`advertisement`),[[`display`,`none`]])};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`);let o=l(),s=o?.appRoot,c=o?.desktopHeaderAds,u=o?.billboardContainer;if(s){let e=o.headerShell,l=Array.from(s.children).filter(e=>e.tagName!==`SCRIPT`),d=u?l.indexOf(u):-1,f=l.filter((e,t)=>t<d),p=d>=0?l.filter((e,t)=>t>d):l.filter(t=>t!==c&&t!==e);t(c,`height`,`250px`),t(c,`padding`,`0px`),c&&a(c),n(f,[[`position`,`relative`],[`zIndex`,`1085`]]),t(e,`position`,`relative`),t(e,`zIndex`,`1085`),i(`powered-ac-nine-new-header-overrides`,`
6
6
  #app > .sc-llJctl.hgiQrx {
7
7
  width: 100%;
8
8
  max-width: 1190px;
@@ -44,15 +44,20 @@
44
44
  position: relative;
45
45
  z-index: 1086;
46
46
  }
47
- `);let c=Array.from(o.children).filter(t=>t!==s&&t!==e);n(c,[[`position`,`relative`],[`zIndex`,`1071`]]),n(c.flatMap(e=>r(e)),[[`position`,`relative`],[`zIndex`,`1072`]])}if(e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
47
+
48
+ #app.nine > header {
49
+ position: relative;
50
+ z-index: 1085;
51
+ }
52
+ `),n(p,[[`position`,`relative`],[`zIndex`,`1071`]]),n(p.flatMap(e=>r(e)),[[`position`,`relative`],[`zIndex`,`1072`]])}if(e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
48
53
  div:has(#adspot-tablet-takeover-2-above) {
49
54
  position: static;
50
55
  }
51
- `,e.head.appendChild(t)}}},p=()=>l()?f:d,m={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:94,isSticky:!0},zIndex:function(){let e=window.parent.document,t=e.querySelector(`footer`).previousElementSibling;if(t&&t.tagName.toLowerCase()===`div`&&(t.style.position=`relative`),e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
56
+ `,e.head.appendChild(t)}}},g=()=>d()?h:m,_={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:94,isSticky:!0},zIndex:function(){let e=window.parent.document,t=e.querySelector(`footer`).previousElementSibling;if(t&&t.tagName.toLowerCase()===`div`&&(t.style.position=`relative`),e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
52
57
  div:has(#adspot-tablet-takeover-2-above) {
53
58
  position: static;
54
59
  }
55
- `,e.head.appendChild(t)}}},h={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:0,adNodeMarginBottom:0,iframeWidth:`100vw`,iframeHeight:`1152px`,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:94,isSticky:!0},zIndex:function(){let e=window.parent.document,t=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},n=(e,n)=>e.forEach(e=>{n.forEach(([n,r])=>{t(e,n,r)})}),r=(t,n)=>{let r=e.getElementById(t);r||(r=e.createElement(`style`),r.id=t,e.head.appendChild(r)),r.textContent=n},i=e=>{n(Array.from(e.querySelectorAll(`*`)).filter(e=>e.children.length>0?!1:e.textContent?.trim().toLowerCase()===`advertisement`),[[`display`,`none`]])},a=e.querySelector(`#app.wwos`),o=e.querySelector(`#desktop-header-ads`),s=a?Array.from(a.children):[],c=a?.querySelector(`:scope > .sc-llJctl`);o&&(t(o,`height`,`250px`),t(o,`padding`,`0px`),i(o)),r(`powered-ac-wwos-new-header-overrides`,`
60
+ `,e.head.appendChild(t)}}},v={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:0,adNodeMarginBottom:0,iframeWidth:`100vw`,iframeHeight:`1152px`,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:94,isSticky:!0},zIndex:function(){let e=window.parent.document,t=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},n=(e,n)=>e.forEach(e=>{n.forEach(([n,r])=>{t(e,n,r)})}),r=(t,n)=>{let r=e.getElementById(t);r||(r=e.createElement(`style`),r.id=t,e.head.appendChild(r)),r.textContent=n},i=e=>{n(Array.from(e.querySelectorAll(`*`)).filter(e=>e.children.length>0?!1:e.textContent?.trim().toLowerCase()===`advertisement`),[[`display`,`none`]])},a=e.querySelector(`#app.wwos`),o=e.querySelector(`#desktop-header-ads`),s=a?Array.from(a.children):[],c=a?.querySelector(`:scope > .sc-llJctl`);o&&(t(o,`height`,`250px`),t(o,`padding`,`0px`),i(o)),r(`powered-ac-wwos-new-header-overrides`,`
56
61
  #app.wwos > .sc-llJctl.hgiQrx {
57
62
  width: 100%;
58
63
  max-width: 1190px;
@@ -93,7 +98,7 @@
93
98
  div:has(#adspot-tablet-takeover-2-above) {
94
99
  position: static;
95
100
  }
96
- `,e.head.appendChild(t)}}},g=()=>u()?h:m,_={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);`)}},v=[{site:`https://www.nine.com.au/sport`,config:g},{site:`https://www.nine.com.au/product-reviews`,config:s},{site:`https://www.nine.com.au/property`,config:s},{site:`https://www.nine.com.au/entertainment`,config:p},{site:`https://staging.nine.com.au/sport`,config:g},{site:`https://staging.nine.com.au/product-reviews`,config:s},{site:`https://staging.nine.com.au/property`,config:s},{site:`https://staging.nine.com.au/entertainment`,config:p},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:p},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:p},{site:`https://preview.nine.com.au/`,config:p},{site:`https://www.nine`,config:p},{site:`https://staging.nine`,config:p},{site:`https://entertainment`,config:o},{site:`https://celebrity`,config:o},{site:`https://homes`,config:o},{site:`https://travel`,config:o},{site:`https://honey`,config:o},{site:`https://style`,config:o},{site:`https://coach`,config:o},{site:`https://kitchen`,config:o},{site:`https://finance`,config:o},{site:`https://staging.wwos`,config:g},{site:`https://www.9news`,config:_},{site:`https://staging.9news`,config:_},{site:`https://www.yourtv`,config:o},{site:`https://staging.yourtv`,config:o},{site:`https://9now`,config:s},{site:`https://creative-preview-an.com`,config:o}],y=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=D.siteBackgroundColor),w(),C(),S(),n.addEventListener(`scroll`,E),O=setTimeout(E,50),D===f||D===h){let e=c()||r.body,t=r.querySelector(`#desktop-header-ads`);e&&n.MutationObserver&&(a=new n.MutationObserver(()=>{T()}),a.observe(e,{childList:!0,subtree:!0}),t&&a.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`,`style`]})),n.addEventListener(`resize`,T),T()}},b=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},x=()=>{let e=n.location.href;for(let t=0;t<v.length;t+=1)if(e.indexOf(v[t].site)>=0)return typeof v[t].config==`function`?v[t].config():v[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return o;if(n.includes(`9news`))return _;if(n.includes(`yourtv`))return o;if(n.includes(`9now`))return s;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`)?g():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?s:p();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return o}catch{return p()}return p()},S=()=>{if(!window.parent)return;let e=r.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&n.getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${D.stickyMargin.offset}px`);break}},C=()=>{if(!t)return;let e=t.style;e.width=D.iframeWidth||`100%`,e.height=D.iframeHeight||`1000px`,e.position=`fixed`,e.top=`0`,e.left=`50%`,e.transform=`translate(-50%, 0)`;let i=t.parentElement;for(;i&&i!==r.body&&i!==r.documentElement;){let e=n.getComputedStyle(i);e.transform&&e.transform!==`none`&&(i.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(i.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(i.style.contain=`none`),e.filter&&e.filter!==`none`&&(i.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(i.style.perspective=`none`),e.overflow!==`visible`&&(i.style.overflow=`visible`),i=i.parentElement}},w=()=>{let e=b();if(!e)return;let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=D.adNodeMarginTop+`px`,t.marginBottom=D.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,D.zIndex&&D.zIndex()},T=()=>{D!==f||i||(i=n.requestAnimationFrame(()=>{i=null,C(),w(),S()}))},E=()=>{T();let e=n.scrollY,r=t.style,i=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=k?(r.transform=`translate(-50%, ${-e}px)`,i.transform=`translateY(0)`):e>k&&e<=A?(r.transform=`translate(-50%, ${-k}px)`,i.transform=`translateY(${k-e}px)`):e>A&&(r.transform=`translate(-50%, ${-k}px)`,i.transform=`translateY(-250px)`)};b();let D=x();if(!D)return()=>{};let O=null,k=-D.responsiveScroll+e,A=k+250;return y(),()=>{n.removeEventListener(`scroll`,E),n.removeEventListener(`resize`,T),a&&=(a.disconnect(),null),i&&=(n.cancelAnimationFrame(i),null),O&&=(clearTimeout(O),null)}},t=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let i=document.getElementById(`nineMasthead`),a=i?i.style:{},o,s={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`)}},c={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`)}},l={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;if(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`),e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
101
+ `,e.head.appendChild(t)}}},y=()=>f()?v:_,b={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);`)}},x=[{site:`https://www.nine.com.au/sport`,config:y},{site:`https://www.nine.com.au/product-reviews`,config:s},{site:`https://www.nine.com.au/property`,config:s},{site:`https://www.nine.com.au/entertainment`,config:g},{site:`https://staging.nine.com.au/sport`,config:y},{site:`https://staging.nine.com.au/product-reviews`,config:s},{site:`https://staging.nine.com.au/property`,config:s},{site:`https://staging.nine.com.au/entertainment`,config:g},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:g},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:g},{site:`https://preview.nine.com.au/`,config:g},{site:`https://www.nine`,config:g},{site:`https://staging.nine`,config:g},{site:`https://entertainment`,config:o},{site:`https://celebrity`,config:o},{site:`https://homes`,config:o},{site:`https://travel`,config:o},{site:`https://honey`,config:o},{site:`https://style`,config:o},{site:`https://coach`,config:o},{site:`https://kitchen`,config:o},{site:`https://finance`,config:o},{site:`https://staging.wwos`,config:y},{site:`https://www.9news`,config:b},{site:`https://staging.9news`,config:b},{site:`https://www.yourtv`,config:o},{site:`https://staging.yourtv`,config:o},{site:`https://9now`,config:s},{site:`https://creative-preview-an.com`,config:o}],S=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=A.siteBackgroundColor),D(),E(),T(),n.addEventListener(`scroll`,k),j=setTimeout(k,50),A===h||A===v){let e=A===h?l():null,t=e?.appRoot||u()||r.body,i=e?.desktopHeaderAds||e?.billboardContainer||r.querySelector(`#desktop-header-ads`);t&&n.MutationObserver&&(a=new n.MutationObserver(()=>{O()}),a.observe(t,{childList:!0,subtree:!0}),i&&i!==t&&a.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`,`style`]})),n.addEventListener(`resize`,O),O()}},C=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},w=()=>{let e=n.location.href;for(let t=0;t<x.length;t+=1)if(e.indexOf(x[t].site)>=0)return typeof x[t].config==`function`?x[t].config():x[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return o;if(n.includes(`9news`))return b;if(n.includes(`yourtv`))return o;if(n.includes(`9now`))return s;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`)?y():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?s:g();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return o}catch{return g()}return g()},T=()=>{if(!window.parent)return;let e=r.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&n.getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${A.stickyMargin.offset}px`);break}},E=()=>{if(!t)return;let e=t.style;e.width=A.iframeWidth||`100%`,e.height=A.iframeHeight||`1000px`,e.position=`fixed`,A.iframeTop==null?e.removeProperty(`top`):e.top=A.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let i=t.parentElement;for(;i&&i!==r.body&&i!==r.documentElement;){let e=n.getComputedStyle(i);e.transform&&e.transform!==`none`&&(i.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(i.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(i.style.contain=`none`),e.filter&&e.filter!==`none`&&(i.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(i.style.perspective=`none`),e.overflow!==`visible`&&(i.style.overflow=`visible`),i=i.parentElement}},D=()=>{let e=C();if(!e)return;let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=A.adNodeMarginTop+`px`,t.marginBottom=A.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,A.zIndex&&A.zIndex()},O=()=>{A!==h&&A!==v||i||(i=n.requestAnimationFrame(()=>{i=null,E(),D(),T()}))},k=()=>{O();let e=n.scrollY,r=t.style,i=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=M?(r.transform=`translate(-50%, ${-e}px)`,i.transform=`translateY(0)`):e>M&&e<=N?(r.transform=`translate(-50%, ${-M}px)`,i.transform=`translateY(${M-e}px)`):e>N&&(r.transform=`translate(-50%, ${-M}px)`,i.transform=`translateY(-250px)`)};C();let A=w();if(!A)return()=>{};let j=null,M=-A.responsiveScroll+e+p(),N=M+250;return S(),()=>{n.removeEventListener(`scroll`,k),n.removeEventListener(`resize`,O),a&&=(a.disconnect(),null),i&&=(n.cancelAnimationFrame(i),null),j&&=(clearTimeout(j),null)}},t=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let i=document.getElementById(`nineMasthead`),a=i?i.style:{},o,s={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`)}},c={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`)}},l={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;if(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`),e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
97
102
  div:has(#adspot-tablet-takeover-2-above) {
98
103
  position: static;
99
104
  }
@@ -105,9 +110,9 @@
105
110
  div:has(#adspot-tablet-takeover-2-above) {
106
111
  position: static;
107
112
  }
108
- `,e.head.appendChild(t)}}},f={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`)}},p=[{site:`https://www.nine.com.au/sport`,config:u},{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:u},{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:d},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:f},{site:`https://staging.9news`,config:f},{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}],m=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=T.siteBackgroundColor),i&&(a.setProperty(`--masthead-height`,`250px`),a.height=`var(--masthead-height)`),y(),v(),g(),b(),n.addEventListener(`scroll`,C,{passive:!0}),E=setTimeout(C,50)},h=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},g=()=>{let e=null;if(!window.parent)return e;if(e=r.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${T.stickyMargin.offset}px`);break}},_=()=>{let e=n.location.href;for(let t=0;t<p.length;t+=1)if(e.indexOf(p[t].site)>=0)return p[t].config},v=()=>{if(!t)return;let e=t.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},y=()=>{if(!w)return;let e=w.style;w.className=``,e.minHeight=`250px`,e.marginTop=T.adNodeMarginTop+`px`,e.marginBottom=T.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,T.zIndex&&T.zIndex()},b=()=>{o=r.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||r.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||r.querySelector(`div[class*="__MyContainer"]`)||r.querySelector(`div[class*="__ArticleContainer"]`)||r.querySelector(`div[class*="__VideoIndexComponent"]`)||r.querySelector(`div.container.layout`)||r.querySelector(`main.container.layout`),o&&(o.style.willChange=`clip-path`,o.style.transition=`none`,o.style.webkitBackfaceVisibility=`hidden`,o.style.backfaceVisibility=`hidden`,o.style.transform=`translate3d(0,0,0)`,o.style.backgroundColor=T.siteBackgroundColor,o.style.setProperty(`--mask-inset`,`0px`),o.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},x=0,S=0,C=()=>{let e=n.scrollY,r=e>x,i=e>O?e-T.maskOffset:0,s=Math.abs(i-S);if(o)if(r&&i>S)if(s>100){let e=Math.max(0,i-100);o.style.transition=`none`,o.style.setProperty(`--mask-inset`,`${e}px`),o.offsetHeight,o.style.transition=`clip-path 0.3s ease-out`,o.style.setProperty(`--mask-inset`,`${i}px`)}else o.style.transition=`clip-path 0.3s ease-out`,o.style.setProperty(`--mask-inset`,`${i}px`);else o.style.transition=`none`,o.style.setProperty(`--mask-inset`,`${i}px`);x=e,S=i,e>O?(t.style.setProperty(`--transform-y`,`${-D}px`),a.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>D&&e<=O?(t.style.setProperty(`--transform-y`,`${-D}px`),a.setProperty(`--masthead-height`,`${250+D-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=D&&(t.style.setProperty(`--transform-y`,`${-e}px`),a.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},w=h(),T=_();if(!T)return()=>{};let E=null,D=-T.responsiveScroll+e,O=D+150;return m(),()=>{n.removeEventListener(`scroll`,C),E&&=(clearTimeout(E),null)}},n=866,r=68,i=16,a=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,o=`adspot-desktop-takeover-2-above`,s=-24,c=-24,l=[`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`],u=[{hostnames:l,path:`/sport`,headingText:`Sport`,slotId:o}],d=new Set([`localhost`,`127.0.0.1`]),f=`__poweredAdConfigHeadingintegrationActive`,p=`data-pac-headingintegration-owner`,m=`data-pac-reparented`,h=(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`},g=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():o,hostnames:i.length?i:l}},_=e=>{if(!Array.isArray(e)||e.length===0)return u;let t=e.map(g).filter(Boolean);return t.length?t:u},v=({offsetTop:e=s,offsetLeft:t=c,width:o=n,height:l=r,pageTargets:g=u}={})=>{let v=window.frameElement||null;if(!v)return()=>{};let y=window.parent;if(!y||y===window)return()=>{};let b=null;try{b=y.document,y.location.href}catch{return()=>{}}let x=y[f];if(x?.iframe===v&&typeof x.cleanup==`function`)return x.cleanup;if(x?.iframe?.isConnected&&typeof x?.cleanup==`function`)return()=>{};typeof x?.cleanup==`function`&&x.cleanup();let S=`headingintegration-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,C=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},w=()=>{try{let e=window.location.hostname.toLowerCase();return d.has(e)?!0:new URLSearchParams(window.location.search).get(`keepHeadingintegrationVisible`)===`1`}catch{return!1}},T=(e=v.parentElement)=>{let t=e;for(;t&&t!==b.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 v.parentElement},E=()=>{try{let e=new URL(y.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(b.querySelectorAll(a));if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},O=null,k=null;w();let A=h(e,s),j=h(t,c),M=h(o,n),N=h(l,r),P=_(g),F=E();if(!F)return()=>{};let I=T((F.slotId?b.getElementById(F.slotId):null)||v.parentElement);if(!I)return()=>{};let L=I.getAttribute(p);if(L&&L!==S)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:v.style.width,height:v.style.height,display:v.style.display,border:v.style.border,position:v.style.position,pointerEvents:v.style.pointerEvents},B=[],V=parseFloat(N)||r,H=parseFloat(A)||0,U=parseFloat(j)||0,W=()=>{let e=I.parentElement;for(;e&&e!==b.body;)B.push({element:e,overflow:e.style.overflow}),C(e,`overflow`,`visible`),e=e.parentElement},G=()=>{C(I,`width`,M),C(I,`maxWidth`,M),C(I,`minWidth`,M),C(I,`height`,N),C(I,`minHeight`,N),C(I,`display`,`block`),C(I,`overflow`,`hidden`),C(I,`pointerEvents`,`none`),C(I,`zIndex`,`1080`),I.setAttribute(p,S),C(v,`width`,M),C(v,`height`,N),C(v,`display`,`block`),C(v,`border`,`0`),C(v,`position`,`relative`),C(v,`pointerEvents`,`auto`)},K={element:null,position:``},ee=()=>{let e=I.parentElement;e&&y.getComputedStyle(e).position===`static`&&(K.element=e,K.position=e.style.position,C(e,`position`,`relative`)),C(I,`position`,`absolute`),C(I,`top`,`${H}px`),C(I,`left`,`${U}px`),C(I,`right`,`auto`),C(I,`marginTop`,`0px`),C(I,`marginBottom`,`${i}px`),C(I,`marginLeft`,`0px`),C(I,`marginRight`,`0px`),C(I,`transform`,``)},te=e=>{let t=null;try{let e=v.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(`
113
+ `,e.head.appendChild(t)}}},f={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`)}},p=[{site:`https://www.nine.com.au/sport`,config:u},{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:u},{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:d},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:f},{site:`https://staging.9news`,config:f},{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}],m=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=E.siteBackgroundColor),i&&(a.setProperty(`--masthead-height`,`250px`),a.height=`var(--masthead-height)`),b(),y(),_(),x(),n.addEventListener(`scroll`,w,{passive:!0}),D=setTimeout(w,50)},h=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},g=()=>{let e=r.querySelector(`nav`);if(!e)return 0;let t=n.getComputedStyle(e);if(t.position!==`fixed`)return 0;let i=parseFloat(t.top||`0`);return Number.isFinite(i)&&Math.abs(i)>1?0:Math.round(e.getBoundingClientRect().height)||0},_=()=>{let e=null;if(!window.parent)return e;if(e=r.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${E.stickyMargin.offset}px`);break}},v=()=>{let e=n.location.href;for(let t=0;t<p.length;t+=1)if(e.indexOf(p[t].site)>=0)return p[t].config},y=()=>{if(!t)return;let e=t.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},b=()=>{if(!T)return;let e=T.style;T.className=``,e.minHeight=`250px`,e.marginTop=E.adNodeMarginTop+`px`,e.marginBottom=E.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,E.zIndex&&E.zIndex()},x=()=>{o=r.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||r.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||r.querySelector(`div[class*="__MyContainer"]`)||r.querySelector(`div[class*="__ArticleContainer"]`)||r.querySelector(`div[class*="__VideoIndexComponent"]`)||r.querySelector(`div.container.layout`)||r.querySelector(`main.container.layout`),o&&(o.style.willChange=`clip-path`,o.style.transition=`none`,o.style.webkitBackfaceVisibility=`hidden`,o.style.backfaceVisibility=`hidden`,o.style.transform=`translate3d(0,0,0)`,o.style.backgroundColor=E.siteBackgroundColor,o.style.setProperty(`--mask-inset`,`0px`),o.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},S=0,C=0,w=()=>{let e=n.scrollY,r=e>S,i=e>k?e-E.maskOffset:0,s=Math.abs(i-C);if(o)if(r&&i>C)if(s>100){let e=Math.max(0,i-100);o.style.transition=`none`,o.style.setProperty(`--mask-inset`,`${e}px`),o.offsetHeight,o.style.transition=`clip-path 0.3s ease-out`,o.style.setProperty(`--mask-inset`,`${i}px`)}else o.style.transition=`clip-path 0.3s ease-out`,o.style.setProperty(`--mask-inset`,`${i}px`);else o.style.transition=`none`,o.style.setProperty(`--mask-inset`,`${i}px`);S=e,C=i,e>k?(t.style.setProperty(`--transform-y`,`${-O}px`),a.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>O&&e<=k?(t.style.setProperty(`--transform-y`,`${-O}px`),a.setProperty(`--masthead-height`,`${250+O-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=O&&(t.style.setProperty(`--transform-y`,`${-e}px`),a.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},T=h(),E=v();if(!E)return()=>{};let D=null,O=-E.responsiveScroll+e+g(),k=O+150;return m(),()=>{n.removeEventListener(`scroll`,w),D&&=(clearTimeout(D),null)}},n=866,r=68,i=16,a=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,o=`adspot-desktop-takeover-2-above`,s=-24,c=-24,l=[`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`],u=[{hostnames:l,path:`/sport`,headingText:`Sport`,slotId:o}],d=new Set([`localhost`,`127.0.0.1`]),f=`__poweredAdConfigHeadingintegrationActive`,p=`data-pac-headingintegration-owner`,m=`data-pac-reparented`,h=(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`},g=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():o,hostnames:i.length?i:l}},_=e=>{if(!Array.isArray(e)||e.length===0)return u;let t=e.map(g).filter(Boolean);return t.length?t:u},v=({offsetTop:e=s,offsetLeft:t=c,width:o=n,height:l=r,pageTargets:g=u}={})=>{let v=window.frameElement||null;if(!v)return()=>{};let y=window.parent;if(!y||y===window)return()=>{};let b=null;try{b=y.document,y.location.href}catch{return()=>{}}let x=y[f];if(x?.iframe===v&&typeof x.cleanup==`function`)return x.cleanup;if(x?.iframe?.isConnected&&typeof x?.cleanup==`function`)return()=>{};typeof x?.cleanup==`function`&&x.cleanup();let S=`headingintegration-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,C=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},w=()=>{try{let e=window.location.hostname.toLowerCase();return d.has(e)?!0:new URLSearchParams(window.location.search).get(`keepHeadingintegrationVisible`)===`1`}catch{return!1}},T=(e=v.parentElement)=>{let t=e;for(;t&&t!==b.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 v.parentElement},E=()=>{try{let e=new URL(y.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return ee.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(b.querySelectorAll(a));if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},O=null,k=null;w();let A=h(e,s),j=h(t,c),M=h(o,n),N=h(l,r),ee=_(g),P=E();if(!P)return()=>{};let F=T((P.slotId?b.getElementById(P.slotId):null)||v.parentElement);if(!F)return()=>{};let I=F.getAttribute(p);if(I&&I!==S)return()=>{};let L={width:F.style.width,maxWidth:F.style.maxWidth,minWidth:F.style.minWidth,height:F.style.height,minHeight:F.style.minHeight,marginTop:F.style.marginTop,marginBottom:F.style.marginBottom,marginLeft:F.style.marginLeft,marginRight:F.style.marginRight,position:F.style.position,top:F.style.top,left:F.style.left,right:F.style.right,transform:F.style.transform,display:F.style.display,opacity:F.style.opacity,transition:F.style.transition,pointerEvents:F.style.pointerEvents,zIndex:F.style.zIndex,overflow:F.style.overflow},R={width:v.style.width,height:v.style.height,display:v.style.display,border:v.style.border,position:v.style.position,pointerEvents:v.style.pointerEvents},z=[],B=parseFloat(N)||r,V=parseFloat(A)||0,H=parseFloat(j)||0,U=()=>{let e=F.parentElement;for(;e&&e!==b.body;)z.push({element:e,overflow:e.style.overflow}),C(e,`overflow`,`visible`),e=e.parentElement},W=()=>{C(F,`width`,M),C(F,`maxWidth`,M),C(F,`minWidth`,M),C(F,`height`,N),C(F,`minHeight`,N),C(F,`display`,`block`),C(F,`overflow`,`hidden`),C(F,`pointerEvents`,`none`),C(F,`zIndex`,`1080`),F.setAttribute(p,S),C(v,`width`,M),C(v,`height`,N),C(v,`display`,`block`),C(v,`border`,`0`),C(v,`position`,`relative`),C(v,`pointerEvents`,`auto`)},G={element:null,position:``},K=()=>{let e=F.parentElement;e&&y.getComputedStyle(e).position===`static`&&(G.element=e,G.position=e.style.position,C(e,`position`,`relative`)),C(F,`position`,`absolute`),C(F,`top`,`${V}px`),C(F,`left`,`${H}px`),C(F,`right`,`auto`),C(F,`marginTop`,`0px`),C(F,`marginBottom`,`${i}px`),C(F,`marginLeft`,`0px`),C(F,`marginRight`,`0px`),C(F,`transform`,``)},te=e=>{let t=null;try{let e=v.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
109
114
  `),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(`
110
- `);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;v.setAttribute(m,`1`);try{e.parentNode?.insertBefore(I,e)}catch{return v.removeAttribute(m),!1}W(),G(),ee();try{v.srcdoc=t}catch{return!1}return!0},ne=()=>{C(I,`position`,`fixed`),C(I,`marginTop`,`0px`),C(I,`marginBottom`,`0px`),C(I,`marginLeft`,`0px`),C(I,`marginRight`,`0px`),C(I,`transform`,``)},re=()=>{C(I,`display`,`none`)},ie=()=>{C(I,`display`,`block`),C(I,`overflow`,`hidden`)},q=null,J=()=>{if((!q||!q.isConnected)&&(q=D(F.headingText)),!q)return;let e=q.getBoundingClientRect(),t=e.top-V-i+H,n=e.left+U;C(I,`top`,`${t}px`),C(I,`left`,`${n}px`),C(I,`right`,`auto`)},Y=null,X=null,Z=!1,Q=(e=12)=>{if(q=D(F.headingText),!q){e>1&&(k=y.setTimeout(()=>Q(e-1),250));return}te(q)||(Z=!0,W(),G(),ne(),J(),Y=()=>J(),X=()=>J(),y.addEventListener(`scroll`,Y,{passive:!0}),y.addEventListener(`resize`,X))};Q();let $=()=>{k&&=(y.clearTimeout(k),null),O&&=(y.clearTimeout(O),null),Y&&=(y.removeEventListener(`scroll`,Y),null),X&&=(y.removeEventListener(`resize`,X),null),I.getAttribute(p)===S&&I.removeAttribute(p),Z&&(Object.entries(R).forEach(([e,t])=>{I.style[e]=t}),Object.entries(z).forEach(([e,t])=>{v.style[e]=t}),B.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),y[f]?.instanceId===S&&delete y[f]};return y[f]={instanceId:S,iframe:v,cleanup:$,show:ie,hide:re},$},y=(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`,window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,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 window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},b=((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}),x=(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:b,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.41`),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,x=!1,S=(t.thresholds||[]).map(()=>!1),C=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight,i=e.top<=n,o=e.bottom<=n-h,s=x?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))),b=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,x=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:b,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=S[t],r=l>=e.at;!n&&r?(S[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(S[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 C(),r.addEventListener(`scroll`,C,{passive:!0}),r.visualViewport?.addEventListener(`resize`,C,{passive:!0}),()=>{r.removeEventListener(`scroll`,C),r.visualViewport?.removeEventListener(`resize`,C),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||``})}},S=(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.41`),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)}},C=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl: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={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`)}}},s=[{site:`https://www.nine.com.au/sport`,config:o.wwos},{site:`https://staging.nine.com.au/sport`,config:o.wwos},{site:`https://www.nine.com.au`,config:o.nine},{site:`https://staging.nine.com.au`,config:o.nine},{site:`https://preview.nine.com.au`,config:o.nine},{site:`https://www.9news`,config:o.nineNews},{site:`https://staging.9news`,config:o.nineNews},{site:`https://honey`,config:o.lifestyle},{site:`https://www.smh`,config:o.smh},{site:`https://www.theage`,config:o.theage},{site:`https://creative-preview-an.com`,config:o.nine}],c=(()=>{let e=r.location.href;for(let t of s)if(e.indexOf(t.site)>=0)return t.config;return o.nine})(),l=n.getAttribute(`style`),u=a.getAttribute(`style`),d=n.parentElement===a?null:n.parentElement,f=d?d.getAttribute(`style`):null,p=a.parentElement,m=p?p.getAttribute(`style`):null,h=null,g=null,_=[],v=()=>{let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);(t.transform&&t.transform!==`none`||t.willChange&&t.willChange!==`auto`||t.contain&&t.contain!==`none`||t.filter&&t.filter!==`none`||t.perspective&&t.perspective!==`none`)&&(_.push({el:e,orig:e.getAttribute(`style`)}),e.style.transform=`none`,e.style.willChange=`auto`,e.style.contain=`none`,e.style.filter=`none`,e.style.perspective=`none`),t.overflow!==`visible`&&(_.find(t=>t.el===e)||_.push({el:e,orig:e.getAttribute(`style`)}),e.style.overflow=`visible`),e=e.parentElement}let o=n.style;if(o.position=`fixed`,o.top=`0`,o.left=`0`,o.width=`100vw`,o.height=`100dvh`,o.zIndex=String(t.zIndex),o.border=`none`,o.margin=`0`,o.padding=`0`,o.display=`block`,a.setAttribute(`poweredAC`,`0.1.41`),d){let e=d.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let s=a.style;s.height=t.billboardHeight+`px`,s.minHeight=t.billboardHeight+`px`,s.background=`transparent`,s.overflow=`visible`,s.position=`relative`,s.width=`100%`,s.padding=`0`,s.margin=`0`,p&&(p.style.overflow=`visible`,p.style.position=`relative`,p.style.backgroundColor=`transparent`,p.style.height=t.billboardHeight+`px`,p.style.minHeight=t.billboardHeight+`px`,p.style.maxHeight=t.billboardHeight+`px`,p.style.padding=`0`,p.style.margin=`0`,p.setAttribute(`data-mf-slot`,``));let l=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,u=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;h=i.createElement(`style`),h.id=`mobilefireplace-pac`,h.textContent=`
115
+ `);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;v.setAttribute(m,`1`);try{e.parentNode?.insertBefore(F,e)}catch{return v.removeAttribute(m),!1}U(),W(),K();try{v.srcdoc=t}catch{return!1}return!0},ne=()=>{C(F,`position`,`fixed`),C(F,`marginTop`,`0px`),C(F,`marginBottom`,`0px`),C(F,`marginLeft`,`0px`),C(F,`marginRight`,`0px`),C(F,`transform`,``)},re=()=>{C(F,`display`,`none`)},ie=()=>{C(F,`display`,`block`),C(F,`overflow`,`hidden`)},q=null,J=()=>{if((!q||!q.isConnected)&&(q=D(P.headingText)),!q)return;let e=q.getBoundingClientRect(),t=e.top-B-i+V,n=e.left+H;C(F,`top`,`${t}px`),C(F,`left`,`${n}px`),C(F,`right`,`auto`)},Y=null,X=null,Z=!1,Q=(e=12)=>{if(q=D(P.headingText),!q){e>1&&(k=y.setTimeout(()=>Q(e-1),250));return}te(q)||(Z=!0,U(),W(),ne(),J(),Y=()=>J(),X=()=>J(),y.addEventListener(`scroll`,Y,{passive:!0}),y.addEventListener(`resize`,X))};Q();let $=()=>{k&&=(y.clearTimeout(k),null),O&&=(y.clearTimeout(O),null),Y&&=(y.removeEventListener(`scroll`,Y),null),X&&=(y.removeEventListener(`resize`,X),null),F.getAttribute(p)===S&&F.removeAttribute(p),Z&&(Object.entries(L).forEach(([e,t])=>{F.style[e]=t}),Object.entries(R).forEach(([e,t])=>{v.style[e]=t}),z.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),y[f]?.instanceId===S&&delete y[f]};return y[f]={instanceId:S,iframe:v,cleanup:$,show:ie,hide:re},$},y=(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`,window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,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 window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},b=((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}),x=(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:b,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.43`),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,x=!1,S=(t.thresholds||[]).map(()=>!1),C=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight,i=e.top<=n,o=e.bottom<=n-h,s=x?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))),b=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,x=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:b,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=S[t],r=l>=e.at;!n&&r?(S[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(S[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 C(),r.addEventListener(`scroll`,C,{passive:!0}),r.visualViewport?.addEventListener(`resize`,C,{passive:!0}),()=>{r.removeEventListener(`scroll`,C),r.visualViewport?.removeEventListener(`resize`,C),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||``})}},S=(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.43`),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)}},C=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl: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={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`)}}},s=[{site:`https://www.nine.com.au/sport`,config:o.wwos},{site:`https://staging.nine.com.au/sport`,config:o.wwos},{site:`https://www.nine.com.au`,config:o.nine},{site:`https://staging.nine.com.au`,config:o.nine},{site:`https://preview.nine.com.au`,config:o.nine},{site:`https://www.9news`,config:o.nineNews},{site:`https://staging.9news`,config:o.nineNews},{site:`https://honey`,config:o.lifestyle},{site:`https://www.smh`,config:o.smh},{site:`https://www.theage`,config:o.theage},{site:`https://creative-preview-an.com`,config:o.nine}],c=(()=>{let e=r.location.href;for(let t of s)if(e.indexOf(t.site)>=0)return t.config;return o.nine})(),l=n.getAttribute(`style`),u=a.getAttribute(`style`),d=n.parentElement===a?null:n.parentElement,f=d?d.getAttribute(`style`):null,p=a.parentElement,m=p?p.getAttribute(`style`):null,h=null,g=null,_=[],v=()=>{let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);(t.transform&&t.transform!==`none`||t.willChange&&t.willChange!==`auto`||t.contain&&t.contain!==`none`||t.filter&&t.filter!==`none`||t.perspective&&t.perspective!==`none`)&&(_.push({el:e,orig:e.getAttribute(`style`)}),e.style.transform=`none`,e.style.willChange=`auto`,e.style.contain=`none`,e.style.filter=`none`,e.style.perspective=`none`),t.overflow!==`visible`&&(_.find(t=>t.el===e)||_.push({el:e,orig:e.getAttribute(`style`)}),e.style.overflow=`visible`),e=e.parentElement}let o=n.style;if(o.position=`fixed`,o.top=`0`,o.left=`0`,o.width=`100vw`,o.height=`100dvh`,o.zIndex=String(t.zIndex),o.border=`none`,o.margin=`0`,o.padding=`0`,o.display=`block`,a.setAttribute(`poweredAC`,`0.1.43`),d){let e=d.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let s=a.style;s.height=t.billboardHeight+`px`,s.minHeight=t.billboardHeight+`px`,s.background=`transparent`,s.overflow=`visible`,s.position=`relative`,s.width=`100%`,s.padding=`0`,s.margin=`0`,p&&(p.style.overflow=`visible`,p.style.position=`relative`,p.style.backgroundColor=`transparent`,p.style.height=t.billboardHeight+`px`,p.style.minHeight=t.billboardHeight+`px`,p.style.maxHeight=t.billboardHeight+`px`,p.style.padding=`0`,p.style.margin=`0`,p.setAttribute(`data-mf-slot`,``));let l=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,u=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;h=i.createElement(`style`),h.id=`mobilefireplace-pac`,h.textContent=`
111
116
  /* Mobile Fireplace — powered-ad-config */
112
117
  html, body {
113
118
  background-color: transparent !important;
@@ -159,4 +164,4 @@
159
164
  margin: 0 !important;
160
165
  padding: 0 !important;
161
166
  }
162
- `,i.head.appendChild(h),c.setup&&c.setup(i,a)},y=null,b=()=>{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`,g&&(g.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,g&&(g.style.height=t.billboardHeight+`px`)};v();let x=t.creativeUrl||``;if(x&&x!==`about:blank`)try{let e=new URL(x);e.searchParams.set(`mfRole`,`billboard`),g=i.createElement(`iframe`),g.src=e.href,g.setAttribute(`data-mf-billboard-iframe`,``),g.setAttribute(`scrolling`,`no`),g.setAttribute(`frameborder`,`0`);let n=g.style;n.position=`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=`1`,a.appendChild(g)}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}return r.__mfBridge={adapted:!1,wallpaperWindow:n.contentWindow,billboardIframe:g,billboardWindow:null},g&&g.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=g.contentWindow}catch{}}),y=b,r.addEventListener(`resize`,y),b(),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()}),()=>{y&&=(r.removeEventListener(`resize`,y),null),h&&h.parentNode&&(h.parentNode.removeChild(h),h=null),g&&g.parentNode&&(g.parentNode.removeChild(g),g=null);try{delete r.__mfBridge}catch{}l?n.setAttribute(`style`,l):n.removeAttribute(`style`);for(let{el:e,orig:t}of _)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);_.length=0,u?a.setAttribute(`style`,u):a.removeAttribute(`style`),d&&(f?d.setAttribute(`style`,f):d.removeAttribute(`style`)),p&&(p.removeAttribute(`data-mf-slot`),m?p.setAttribute(`style`,m):p.removeAttribute(`style`))}},w=()=>{};function T({adFormat:n=``,stickyOffset:r=0,logoPosX:i=0,logoHeight:a=0,logoSmallHeight:o=0,...s}={}){typeof w==`function`&&w();let c=()=>{};return n===`fireplace`?c=e(r):n===`fireplace-collant`?c=t(r):n===`logomorph`?c=y(i,a,o):n===`headingintegration`?c=v(s):n===`interscroller`?c=x(s):n===`liquidframe`?c=S(s):n===`mobilefireplace`?c=C(s):console.warn(`[powered-ad-config] Unknown ad format:`,n),w=typeof c==`function`?c:()=>{},w}return T.version=`0.1.41`,T});
167
+ `,i.head.appendChild(h),c.setup&&c.setup(i,a)},y=null,b=()=>{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`,g&&(g.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,g&&(g.style.height=t.billboardHeight+`px`)};v();let x=t.creativeUrl||``;if(x&&x!==`about:blank`)try{let e=new URL(x);e.searchParams.set(`mfRole`,`billboard`),g=i.createElement(`iframe`),g.src=e.href,g.setAttribute(`data-mf-billboard-iframe`,``),g.setAttribute(`scrolling`,`no`),g.setAttribute(`frameborder`,`0`);let n=g.style;n.position=`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=`1`,a.appendChild(g)}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}return r.__mfBridge={adapted:!1,wallpaperWindow:n.contentWindow,billboardIframe:g,billboardWindow:null},g&&g.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=g.contentWindow}catch{}}),y=b,r.addEventListener(`resize`,y),b(),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()}),()=>{y&&=(r.removeEventListener(`resize`,y),null),h&&h.parentNode&&(h.parentNode.removeChild(h),h=null),g&&g.parentNode&&(g.parentNode.removeChild(g),g=null);try{delete r.__mfBridge}catch{}l?n.setAttribute(`style`,l):n.removeAttribute(`style`);for(let{el:e,orig:t}of _)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);_.length=0,u?a.setAttribute(`style`,u):a.removeAttribute(`style`),d&&(f?d.setAttribute(`style`,f):d.removeAttribute(`style`)),p&&(p.removeAttribute(`data-mf-slot`),m?p.setAttribute(`style`,m):p.removeAttribute(`style`))}},w=()=>{};function T({adFormat:n=``,stickyOffset:r=0,logoPosX:i=0,logoHeight:a=0,logoSmallHeight:o=0,...s}={}){typeof w==`function`&&w();let c=()=>{};return n===`fireplace`?c=e(r):n===`fireplace-collant`?c=t(r):n===`logomorph`?c=y(i,a,o):n===`headingintegration`?c=v(s):n===`interscroller`?c=x(s):n===`liquidframe`?c=S(s):n===`mobilefireplace`?c=C(s):console.warn(`[powered-ad-config] Unknown ad format:`,n),w=typeof c==`function`?c:()=>{},w}return T.version=`0.1.43`,T});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
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",