powered-ad-config 0.1.84 → 0.1.85

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.
@@ -109,7 +109,7 @@ var e = (e, t, n) => {
109
109
  let f = S(), p = f?.appRoot, m = f?.desktopHeaderAds, h = f?.billboardContainer;
110
110
  if (p) {
111
111
  let e = f.headerShell, t = y("header-nav", p), n = c(p), r = l(p), g = b("sidebar-sticky", p), _ = Array.from(p.children).filter((e) => e.tagName !== "SCRIPT"), v = h ? _.indexOf(h) : -1, x = _.filter((e, t) => t < v), S = n.length > 0 ? n : v >= 0 ? _.filter((t, n) => n > v && t !== e) : _.filter((t) => t !== m && t !== e);
112
- i(m, "height", "250px"), i(m, "padding", "0px"), m && d(m), o(x, [["position", "relative"], ["zIndex", "1085"]]), i(e, "zIndex", "1085"), i(t, "position", "relative"), i(t, "zIndex", "1086"), u("powered-ac-nine-new-header-overrides", "\n #app > [data-ad-target=\"header\"],\n #app > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085;\n }\n\n #app > .sc-llJctl > div:not(header),\n #app > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app [data-ad-target=\"header\"] header,\n #app [data-ad-target=\"header-nav\"],\n #app > .sc-llJctl header,\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [class*=\"sc-eFWqGm\"] {\n position: relative;\n }\n\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"],\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [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 > [data-ad-target=\"header\"].FwHsm,\n #app > [data-ad-target=\"tv-show-banner\"].FwHsm,\n #app > .sc-llJctl.FwHsm,\n #app > header[data-tv-show].FwHsm {\n z-index: 1086;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1088 !important;\n }\n\n #app > header[data-tv-show] {\n z-index: 1085;\n }\n "), o(S, [["position", "relative"], ["zIndex", "1071"]]), o(a([...r, ...S.flatMap((e) => s(e))]), [["position", "relative"], ["zIndex", "1072"]]), o(g, [["zIndex", "1072"]]);
112
+ i(m, "height", "250px"), i(m, "padding", "0px"), m && d(m), o(x, [["position", "relative"], ["zIndex", "1085"]]), i(e, "zIndex", "1085"), i(t, "position", "relative"), i(t, "zIndex", "1086"), u("powered-ac-nine-new-header-overrides", "\n #app > [data-ad-target=\"header\"],\n #app > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085;\n }\n\n #app > .sc-llJctl > div:not(header),\n #app > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app [data-ad-target=\"header\"] header,\n #app [data-ad-target=\"header-nav\"],\n #app > .sc-llJctl header,\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [class*=\"sc-eFWqGm\"] {\n position: relative;\n }\n\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"],\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [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 > [data-ad-target=\"header\"].FwHsm,\n #app > [data-ad-target=\"tv-show-banner\"].FwHsm,\n #app > .sc-llJctl.FwHsm,\n #app > header[data-tv-show].FwHsm {\n z-index: 1086;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1089 !important;\n }\n\n #app > header[data-tv-show] {\n z-index: 1085;\n }\n "), o(S, [["position", "relative"], ["zIndex", "1071"]]), o(a([...r, ...S.flatMap((e) => s(e))]), [["position", "relative"], ["zIndex", "1072"]]), o(g, [["zIndex", "1072"]]);
113
113
  }
114
114
  D(r);
115
115
  }, ee = {
@@ -390,7 +390,7 @@ var e = (e, t, n) => {
390
390
  }, V = () => {
391
391
  let e = L();
392
392
  if (!e) return;
393
- c(e, "0.1.84");
393
+ c(e, "0.1.85");
394
394
  let t = e.style;
395
395
  e.className &&= "", t.minHeight = "250px", t.marginTop = G.adNodeMarginTop + "px", t.marginBottom = G.adNodeMarginBottom + "px", t.position = "static", t.display = "block", G.zIndex && G.zIndex();
396
396
  }, H = () => {
@@ -435,7 +435,7 @@ var e = (e, t, n) => {
435
435
  ...g("sidebar", r),
436
436
  ...g("footer", r)
437
437
  ]), d = g("sidebar-sticky", r);
438
- e(i, "height", "250px"), e(i, "padding", "0px"), e(o, "zIndex", "1085"), e(s, "position", "relative"), e(s, "zIndex", "1086"), t(c, [["position", "relative"], ["zIndex", "1071"]]), t(l, [["position", "relative"], ["zIndex", "1072"]]), t(d, [["zIndex", "1072"]]), n(u, "powered-ac-collant-nine-new-overrides", "\n #app > [data-ad-target=\"header\"],\n #app.wwos > [data-ad-target=\"header\"],\n #app > .sc-llJctl,\n #app.wwos > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085 !important;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app.wwos > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show],\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085 !important;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app.wwos [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa,\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav,\n #app.wwos [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"],\n #app.wwos [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1088 !important;\n }\n ");
438
+ e(i, "height", "250px"), e(i, "padding", "0px"), e(o, "zIndex", "1085"), e(s, "position", "relative"), e(s, "zIndex", "1086"), t(c, [["position", "relative"], ["zIndex", "1071"]]), t(l, [["position", "relative"], ["zIndex", "1072"]]), t(d, [["zIndex", "1072"]]), n(u, "powered-ac-collant-nine-new-overrides", "\n #app > [data-ad-target=\"header\"],\n #app.wwos > [data-ad-target=\"header\"],\n #app > .sc-llJctl,\n #app.wwos > .sc-llJctl {\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 margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085 !important;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app.wwos > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show],\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085 !important;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app.wwos [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa,\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav,\n #app.wwos [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"],\n #app.wwos [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1089 !important;\n }\n ");
439
439
  }, y = {
440
440
  siteBackgroundColor: "#ffffff",
441
441
  fireplaceLeftMargin: 0,
@@ -1239,7 +1239,7 @@ var e = (e, t, n) => {
1239
1239
  };
1240
1240
  (() => {
1241
1241
  let e = a.style;
1242
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.84"), 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";
1242
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.85"), 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";
1243
1243
  let o = a.parentElement;
1244
1244
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
1245
1245
  let t = r.getComputedStyle(o), n = !1;
@@ -1377,7 +1377,7 @@ var e = (e, t, n) => {
1377
1377
  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;
1378
1378
  return (() => {
1379
1379
  let e = a.style;
1380
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.84"), c) {
1380
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.85"), c) {
1381
1381
  let e = c.style;
1382
1382
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1383
1383
  }
@@ -1788,7 +1788,7 @@ var e = (e, t, n) => {
1788
1788
  } catch (e) {
1789
1789
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1790
1790
  }
1791
- if (a.setAttribute("poweredAC", "0.1.84"), _) {
1791
+ if (a.setAttribute("poweredAC", "0.1.85"), _) {
1792
1792
  let e = _.style;
1793
1793
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1794
1794
  }
@@ -2037,6 +2037,6 @@ function L({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight:
2037
2037
  let o = () => {};
2038
2038
  return e === "fireplace" ? o = d(t) : e === "fireplace-collant" ? o = f(t) : e === "logomorph" ? o = j(n, r, i) : e === "dynamicheading" ? o = A(a) : e === "interscroller" ? o = N(a) : e === "liquidframe" ? o = P(a) : e === "mobilefireplace" ? o = F(a) : console.warn("[powered-ad-config] Unknown ad format:", e), I = typeof o == "function" ? o : () => {}, I;
2039
2039
  }
2040
- L.version = "0.1.84";
2040
+ L.version = "0.1.85";
2041
2041
  //#endregion
2042
2042
  export { L as default };
@@ -87,7 +87,7 @@
87
87
  width: min(1190px, calc(100vw - 32px)) !important;
88
88
  max-width: min(1190px, calc(100vw - 32px)) !important;
89
89
  transform: translateX(-50%) !important;
90
- z-index: 1088 !important;
90
+ z-index: 1089 !important;
91
91
  }
92
92
 
93
93
  #app > header[data-tv-show] {
@@ -167,7 +167,7 @@
167
167
  max-width: 100% !important;
168
168
  overflow: visible !important;
169
169
  }
170
- `),o(h.length>0?h:f.filter(e=>e!==d&&e!==p),[[`position`,`relative`],[`zIndex`,`1071`]]),o(a([...g,...Array.from(r.querySelectorAll(`main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*="adspot-desktop-banner-"]`))]),[[`position`,`relative`],[`zIndex`,`1072`]]),o(_,[[`zIndex`,`1072`]]);let v=s(r.querySelector(`footer`),`div`);v&&(v.style.position=`relative`),D(r)}},N=()=>T()?M:j,P={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);`)}},F=[{site:`https://www.nine.com.au/sport`,config:N},{site:`https://www.nine.com.au/product-reviews`,config:v},{site:`https://www.nine.com.au/property`,config:v},{site:`https://www.nine.com.au/entertainment`,config:A},{site:`https://staging.nine.com.au/sport`,config:N},{site:`https://staging.nine.com.au/product-reviews`,config:v},{site:`https://staging.nine.com.au/property`,config:v},{site:`https://staging.nine.com.au/entertainment`,config:A},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:A},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:A},{site:`https://preview.nine.com.au/`,config:A},{site:`https://www.nine.com.au`,config:A},{site:`https://www.nine`,config:A},{site:`https://staging.nine`,config:A},{site:`https://entertainment`,config:_},{site:`https://celebrity`,config:_},{site:`https://homes`,config:_},{site:`https://travel`,config:_},{site:`https://honey`,config:_},{site:`https://style`,config:_},{site:`https://coach`,config:_},{site:`https://kitchen`,config:_},{site:`https://finance`,config:_},{site:`https://staging.wwos`,config:N},{site:`https://www.9news`,config:P},{site:`https://staging.9news`,config:P},{site:`https://www.yourtv`,config:_},{site:`https://staging.yourtv`,config:_},{site:`https://9now`,config:v},{site:`https://creative-preview-an.com`,config:_}],I=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=G.siteBackgroundColor),V(),B(),z(),p.addEventListener(`scroll`,W),K=setTimeout(W,50),G===k||G===M){let e=G===k?S():null,t=e?.appRoot||C()||m.body,n=e?.desktopHeaderAds||m.querySelector(`#desktop-header-ads`);t&&p.MutationObserver&&(g=new p.MutationObserver(()=>{U()}),g.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&g.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),p.addEventListener(`resize`,U),U()}},L=()=>{let e=null;return e=m.querySelector(`div[id*="billboard"][id*="above"]`),e},R=()=>{let e=p.location.href;for(let t=0;t<F.length;t+=1)if(e.indexOf(F[t].site)>=0)return typeof F[t].config==`function`?F[t].config():F[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return _;if(n.includes(`9news`))return P;if(n.includes(`yourtv`))return _;if(n.includes(`9now`))return v;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`)?N():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?v:A();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return _}catch{return A()}return A()},z=()=>{if(!window.parent)return;let e=m.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&p.getComputedStyle(t).position===`sticky`){t.style.top=`${G.stickyMargin.offset}px`;break}},B=()=>{if(!f)return;let e=f.style;e.width=G.iframeWidth||`100%`,e.height=G.iframeHeight||l,e.backgroundColor=G.iframeBackgroundColor||u,e.position=`fixed`,G.iframeTop==null?e.removeProperty(`top`):e.top=G.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=f.parentElement;for(;t&&t!==m.body&&t!==m.documentElement;){let e=p.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},V=()=>{let e=L();if(!e)return;c(e,`0.1.84`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=G.adNodeMarginTop+`px`,t.marginBottom=G.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,G.zIndex&&G.zIndex()},H=()=>{let e=p.scrollY,t=f.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=q?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>q&&e<=J?(t.transform=`translate(-50%, ${-q}px)`,n.transform=`translateY(${q-e}px)`):e>J&&(t.transform=`translate(-50%, ${-q}px)`,n.transform=`translateY(-250px)`)},U=()=>{G!==k&&G!==M||h||(h=p.requestAnimationFrame(()=>{h=null,B(),V(),z(),H()}))},W=()=>{H()};L();let G=R();if(!G)return()=>{};let K=null,te=G===k||G===M?G.responsiveScroll:0,q=-G.responsiveScroll+d+te+E(),J=q+250;return I(),()=>{p.removeEventListener(`scroll`,W),p.removeEventListener(`resize`,U),g&&=(g.disconnect(),null),h&&=(p.cancelAnimationFrame(h),null),K&&=(clearTimeout(K),null)}},f=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
170
+ `),o(h.length>0?h:f.filter(e=>e!==d&&e!==p),[[`position`,`relative`],[`zIndex`,`1071`]]),o(a([...g,...Array.from(r.querySelectorAll(`main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*="adspot-desktop-banner-"]`))]),[[`position`,`relative`],[`zIndex`,`1072`]]),o(_,[[`zIndex`,`1072`]]);let v=s(r.querySelector(`footer`),`div`);v&&(v.style.position=`relative`),D(r)}},N=()=>T()?M:j,P={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);`)}},F=[{site:`https://www.nine.com.au/sport`,config:N},{site:`https://www.nine.com.au/product-reviews`,config:v},{site:`https://www.nine.com.au/property`,config:v},{site:`https://www.nine.com.au/entertainment`,config:A},{site:`https://staging.nine.com.au/sport`,config:N},{site:`https://staging.nine.com.au/product-reviews`,config:v},{site:`https://staging.nine.com.au/property`,config:v},{site:`https://staging.nine.com.au/entertainment`,config:A},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:A},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:A},{site:`https://preview.nine.com.au/`,config:A},{site:`https://www.nine.com.au`,config:A},{site:`https://www.nine`,config:A},{site:`https://staging.nine`,config:A},{site:`https://entertainment`,config:_},{site:`https://celebrity`,config:_},{site:`https://homes`,config:_},{site:`https://travel`,config:_},{site:`https://honey`,config:_},{site:`https://style`,config:_},{site:`https://coach`,config:_},{site:`https://kitchen`,config:_},{site:`https://finance`,config:_},{site:`https://staging.wwos`,config:N},{site:`https://www.9news`,config:P},{site:`https://staging.9news`,config:P},{site:`https://www.yourtv`,config:_},{site:`https://staging.yourtv`,config:_},{site:`https://9now`,config:v},{site:`https://creative-preview-an.com`,config:_}],I=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=G.siteBackgroundColor),V(),B(),z(),p.addEventListener(`scroll`,W),K=setTimeout(W,50),G===k||G===M){let e=G===k?S():null,t=e?.appRoot||C()||m.body,n=e?.desktopHeaderAds||m.querySelector(`#desktop-header-ads`);t&&p.MutationObserver&&(g=new p.MutationObserver(()=>{U()}),g.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&g.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),p.addEventListener(`resize`,U),U()}},L=()=>{let e=null;return e=m.querySelector(`div[id*="billboard"][id*="above"]`),e},R=()=>{let e=p.location.href;for(let t=0;t<F.length;t+=1)if(e.indexOf(F[t].site)>=0)return typeof F[t].config==`function`?F[t].config():F[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return _;if(n.includes(`9news`))return P;if(n.includes(`yourtv`))return _;if(n.includes(`9now`))return v;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`)?N():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?v:A();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return _}catch{return A()}return A()},z=()=>{if(!window.parent)return;let e=m.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&p.getComputedStyle(t).position===`sticky`){t.style.top=`${G.stickyMargin.offset}px`;break}},B=()=>{if(!f)return;let e=f.style;e.width=G.iframeWidth||`100%`,e.height=G.iframeHeight||l,e.backgroundColor=G.iframeBackgroundColor||u,e.position=`fixed`,G.iframeTop==null?e.removeProperty(`top`):e.top=G.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=f.parentElement;for(;t&&t!==m.body&&t!==m.documentElement;){let e=p.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},V=()=>{let e=L();if(!e)return;c(e,`0.1.85`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=G.adNodeMarginTop+`px`,t.marginBottom=G.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,G.zIndex&&G.zIndex()},H=()=>{let e=p.scrollY,t=f.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=q?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>q&&e<=J?(t.transform=`translate(-50%, ${-q}px)`,n.transform=`translateY(${q-e}px)`):e>J&&(t.transform=`translate(-50%, ${-q}px)`,n.transform=`translateY(-250px)`)},U=()=>{G!==k&&G!==M||h||(h=p.requestAnimationFrame(()=>{h=null,B(),V(),z(),H()}))},W=()=>{H()};L();let G=R();if(!G)return()=>{};let K=null,te=G===k||G===M?G.responsiveScroll:0,q=-G.responsiveScroll+d+te+E(),J=q+250;return I(),()=>{p.removeEventListener(`scroll`,W),p.removeEventListener(`resize`,U),g&&=(g.disconnect(),null),h&&=(p.cancelAnimationFrame(h),null),K&&=(clearTimeout(K),null)}},f=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
171
171
  div:has(#adspot-tablet-takeover-2-above) {
172
172
  position: static;
173
173
  }
@@ -232,11 +232,11 @@
232
232
  width: min(1190px, calc(100vw - 32px)) !important;
233
233
  max-width: min(1190px, calc(100vw - 32px)) !important;
234
234
  transform: translateX(-50%) !important;
235
- z-index: 1088 !important;
235
+ z-index: 1089 !important;
236
236
  }
237
237
  `)},y={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},b={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="video-index__MyContainer"]`)?248:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`),e.querySelector(`div[class*="MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`),v()}},x={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),m(e),v()}},S={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){let e=window.parent.document,t=s(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),m(e),v()}},C={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:175,isSticky:!0},maskOffset:274,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`.score-strip`)?.setAttribute(`style`,`display:none`),e.querySelector(`.feed-header__breadcrumbs`)?.setAttribute(`style`,`display:none`),e.querySelector(`.layout.container`)?.setAttribute(`style`,`padding:0`),e.querySelector(`.empty-div`)?.setAttribute(`style`,`display:none`),m(e)}},w={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="VideoIndexComponent"]`)?324:292,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`);let t=e.querySelector(`[class*="VideoIndexComponent"]`);t&&(e.querySelector(`.breadcrumbs`)?.setAttribute(`style`,`display:none`),t.style.maxWidth=`1190px`,t.style.margin=`auto`,t.style.position=`relative`)}},T=[{site:`https://www.nine.com.au/sport`,config:S},{site:`https://www.nine.com.au/product-reviews`,config:b},{site:`https://www.nine.com.au/property`,config:b},{site:`https://www.nine.com.au/entertainment`,config:b},{site:`https://staging.nine.com.au/sport`,config:S},{site:`https://staging.nine.com.au/product-reviews`,config:b},{site:`https://staging.nine.com.au/property`,config:b},{site:`https://staging.nine.com.au/entertainment`,config:b},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:x},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:x},{site:`https://preview.nine.com.au/`,config:x},{site:`https://www.nine.com.au`,config:x},{site:`https://www.nine`,config:x},{site:`https://staging.nine`,config:x},{site:`https://entertainment`,config:y},{site:`https://celebrity`,config:y},{site:`https://homes`,config:y},{site:`https://travel`,config:y},{site:`https://honey`,config:y},{site:`https://style`,config:y},{site:`https://coach`,config:y},{site:`https://kitchen`,config:y},{site:`https://finance`,config:y},{site:`https://wwos`,config:C},{site:`https://staging.wwos`,config:S},{site:`https://www.9news`,config:w},{site:`https://staging.9news`,config:w},{site:`https://www.yourtv`,config:y},{site:`https://staging.yourtv`,config:y},{site:`https://9now`,config:b},{site:`https://creative-preview-an.com`,config:y}],E=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=L.siteBackgroundColor),d&&(f.setProperty(`--masthead-height`,`250px`),f.height=`var(--masthead-height)`),j(),A(),ee(),M(),l.addEventListener(`scroll`,F,{passive:!0}),R=setTimeout(F,50)},D=()=>{let e=null;return e=u.querySelector(`div[id*="billboard"][id*="above"]`),e},O=()=>{let e=u.querySelector(`nav`);if(h(`header-ad-desktop`)||!e)return 0;let t=l.getComputedStyle(e);if(t.position!==`fixed`)return 0;let n=parseFloat(t.top||`0`);return Number.isFinite(n)&&Math.abs(n)>1?0:Math.round(e.getBoundingClientRect().height)||0},ee=()=>{let e=null;if(!window.parent)return e;if(e=u.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&l.getComputedStyle(t).position===`sticky`){t.style.top=`${L.stickyMargin.offset}px`;break}},k=()=>{let e=l.location.href;for(let t=0;t<T.length;t+=1)if(e.indexOf(T[t].site)>=0)return T[t].config},A=()=>{if(!c)return;let e=c.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},j=()=>{if(!I)return;let e=I.style;I.className=``,e.minHeight=`250px`,e.marginTop=L.adNodeMarginTop+`px`,e.marginBottom=L.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,L.zIndex&&L.zIndex()},M=()=>{p=u.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||u.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||h(`main`)||h(`container`)||h(`page-container`)||u.querySelector(`div[class*="__MyContainer"]`)||u.querySelector(`div[class*="__ArticleContainer"]`)||u.querySelector(`div[class*="__VideoIndexComponent"]`)||u.querySelector(`div.container.layout`)||u.querySelector(`main.container.layout`),p&&(p.style.willChange=`clip-path`,p.style.transition=`none`,p.style.webkitBackfaceVisibility=`hidden`,p.style.backfaceVisibility=`hidden`,p.style.transform=`translate3d(0,0,0)`,p.style.backgroundColor=L.siteBackgroundColor,p.style.setProperty(`--mask-inset`,`0px`),p.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},N=0,P=0,F=()=>{let e=l.scrollY,t=e>N,n=e>B?e-L.maskOffset:0,r=Math.abs(n-P);if(p)if(t&&n>P)if(r>100){let e=Math.max(0,n-100);p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${e}px`),p.offsetHeight,p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`);else p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${n}px`);N=e,P=n,e>B?(c.style.setProperty(`--transform-y`,`${-z}px`),f.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>z&&e<=B?(c.style.setProperty(`--transform-y`,`${-z}px`),f.setProperty(`--masthead-height`,`${250+z-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=z&&(c.style.setProperty(`--transform-y`,`${-e}px`),f.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},I=D(),L=k();if(!L)return()=>{};let R=null,z=-L.responsiveScroll+o+O(),B=z+150;return E(),()=>{l.removeEventListener(`scroll`,F),R&&=(clearTimeout(R),null)}},p=866,m=68,h=16,g=`:scope > header h1, :scope > header h2, :scope > header h3`,_=`h1, h2, h3`,v=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,y=`adspot-desktop-takeover-2-above`,b=-24,x=-24,S=[`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`],C=[{hostnames:S,path:`/sport`,headingText:`Sport`,slotId:y}],w=new Set([`localhost`,`127.0.0.1`]),T=`__poweredAdConfigDynamicHeadingActive`,E=`data-pac-dynamicheading-owner`,D=`data-pac-reparented`,O=(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`},ee=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():y,hostnames:i.length?i:S}},k=e=>{if(!Array.isArray(e)||e.length===0)return C;let t=e.map(ee).filter(Boolean);return t.length?t:C},A=({offsetTop:e=b,offsetLeft:t=x,width:n=p,height:i=m,pageTargets:a=C}={})=>{let o=window.frameElement||null;if(!o)return()=>{};let s=window.parent;if(!s||s===window)return()=>{};let c=null;try{c=s.document,s.location.href}catch{return()=>{}}let l=s[T];if(l?.iframe===o&&typeof l.cleanup==`function`)return l.cleanup;if(l?.iframe?.isConnected&&typeof l?.cleanup==`function`)return()=>{};typeof l?.cleanup==`function`&&l.cleanup();let u=`dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,d=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},f=()=>{try{let e=window.location.hostname.toLowerCase();return w.has(e)?!0:new URLSearchParams(window.location.search).get(`keepDynamicHeadingVisible`)===`1`}catch{return!1}},y=(e=o.parentElement)=>{let t=e;for(;t&&t!==c.body;){let e=t.id||``,n=t.getAttribute?.(`data-testid`)||``,r=t.getAttribute?.(`type`)||``;if(e.includes(`adspot`)||n.toLowerCase().includes(`ad`)||r)return t;t=t.parentElement}return o.parentElement},S=()=>{try{let e=new URL(s.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return z.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},ee=()=>{let e=r(c,`app`)||c.getElementById(`app`)||c,t=r(e,`page-container`)||e;return r(r(t,`container`)||t,`main`)||r(e,`main`)||c.querySelector(`#app main`)||null},A=e=>{if(!e||!e.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;let n=s.getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`},j=()=>{let e=ee(),t=e?[...e.querySelectorAll(g),...e.querySelectorAll(_)]:[],n=t.length?[]:Array.from(c.querySelectorAll(v));return Array.from(new Set([...t,...n])).filter(A)},M=e=>{let t=j();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},N=null,P=null;f();let F=O(e,b),I=O(t,x),L=O(n,p),R=O(i,m),z=k(a),B=S();if(!B)return()=>{};let V=y((B.slotId?c.getElementById(B.slotId):null)||o.parentElement);if(!V)return()=>{};let H=V.getAttribute(E);if(H&&H!==u)return()=>{};let U={width:V.style.width,maxWidth:V.style.maxWidth,minWidth:V.style.minWidth,height:V.style.height,minHeight:V.style.minHeight,marginTop:V.style.marginTop,marginBottom:V.style.marginBottom,marginLeft:V.style.marginLeft,marginRight:V.style.marginRight,position:V.style.position,top:V.style.top,left:V.style.left,right:V.style.right,transform:V.style.transform,display:V.style.display,opacity:V.style.opacity,transition:V.style.transition,pointerEvents:V.style.pointerEvents,zIndex:V.style.zIndex,overflow:V.style.overflow},W={width:o.style.width,height:o.style.height,display:o.style.display,border:o.style.border,position:o.style.position,pointerEvents:o.style.pointerEvents},G=[],K=parseFloat(R)||m,te=parseFloat(F)||0,q=parseFloat(I)||0,J=()=>{let e=V.parentElement;for(;e&&e!==c.body;)G.push({element:e,overflow:e.style.overflow}),d(e,`overflow`,`visible`),e=e.parentElement},ne=()=>{d(V,`width`,L),d(V,`maxWidth`,L),d(V,`minWidth`,L),d(V,`height`,R),d(V,`minHeight`,R),d(V,`display`,`block`),d(V,`overflow`,`hidden`),d(V,`pointerEvents`,`none`),d(V,`zIndex`,`1080`),V.setAttribute(E,u),d(o,`width`,L),d(o,`height`,R),d(o,`display`,`block`),d(o,`border`,`0`),d(o,`position`,`relative`),d(o,`pointerEvents`,`auto`)},re={element:null,position:``},ie=()=>{let e=V.parentElement;e&&s.getComputedStyle(e).position===`static`&&(re.element=e,re.position=e.style.position,d(e,`position`,`relative`)),d(V,`position`,`absolute`),d(V,`top`,`${te}px`),d(V,`left`,`${q}px`),d(V,`right`,`auto`),d(V,`marginTop`,`0px`),d(V,`marginBottom`,`${h}px`),d(V,`marginLeft`,`0px`),d(V,`marginRight`,`0px`),d(V,`transform`,``)},ae=e=>{let t=null;try{let e=o.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
238
238
  `),i=Array.from(e.querySelectorAll(`script[src]`)).filter(e=>{let t=e.getAttribute(`src`)||``;return/(s0\.2mdn\.net|cdn\.jsdelivr\.net|players\.brightcove\.net)/.test(t)}).map(e=>e.outerHTML).join(`
239
- `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;o.setAttribute(D,`1`);try{e.parentNode?.insertBefore(V,e)}catch{return o.removeAttribute(D),!1}J(),ne(),ie();try{o.srcdoc=t}catch{return!1}return!0},oe=()=>{d(V,`position`,`fixed`),d(V,`marginTop`,`0px`),d(V,`marginBottom`,`0px`),d(V,`marginLeft`,`0px`),d(V,`marginRight`,`0px`),d(V,`transform`,``)},se=()=>{d(V,`display`,`none`)},ce=()=>{d(V,`display`,`block`),d(V,`overflow`,`hidden`)},Y=null,X=()=>{if((!Y||!Y.isConnected)&&(Y=M(B.headingText)),!Y)return;let e=Y.getBoundingClientRect(),t=e.top-K-h+te,n=e.left+q;d(V,`top`,`${t}px`),d(V,`left`,`${n}px`),d(V,`right`,`auto`)},le=null,Z=null,Q=!1,$=(e=12)=>{if(Y=M(B.headingText),!Y){e>1&&(P=s.setTimeout(()=>$(e-1),250));return}ae(Y)||(Q=!0,J(),ne(),oe(),X(),le=()=>X(),Z=()=>X(),s.addEventListener(`scroll`,le,{passive:!0}),s.addEventListener(`resize`,Z))};$();let ue=()=>{P&&=(s.clearTimeout(P),null),N&&=(s.clearTimeout(N),null),le&&=(s.removeEventListener(`scroll`,le),null),Z&&=(s.removeEventListener(`resize`,Z),null),V.getAttribute(E)===u&&V.removeAttribute(E),Q&&(Object.entries(U).forEach(([e,t])=>{V.style[e]=t}),Object.entries(W).forEach(([e,t])=>{o.style[e]=t}),G.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),s[T]?.instanceId===u&&delete s[T]};return s[T]={instanceId:u,iframe:o,cleanup:ue,show:ce,hide:se},ue},j=(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.com.au`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return e?window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1):(v(`big`),!0)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},M=((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}),N=(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:M,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.84`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else !_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},P=(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.84`),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)}},F=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:8e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),p=f===u.smh||f===u.theage,m=n.getAttribute(`style`),h=n.hasAttribute(`data-mf-wallpaper-iframe`),g=a.getAttribute(`style`),_=n.parentElement===a?null:n.parentElement,v=_?_.getAttribute(`style`):null,y=a.parentElement,b=y?y.getAttribute(`style`):null,x=s?s.getAttribute(`style`):null,S=o?o.getAttribute(`style`):null,C=o?o.querySelector(`header`):null,w=C?C.getAttribute(`style`):null,T=C?C.querySelector(`.sc-5cbbddda-1`):null,E=T?T.getAttribute(`style`):null,D=i.querySelector(`footer`),O=D?D.getAttribute(`style`):null,ee=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],k=null,A=null,j=null,M=null,N=null,P=null,F=null,I=null,L=[],R=null,z=null,B=null,V=null,H=null,U=null,W=null,G=[],K=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,te=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,q=!!(t.sticky&&(K||te)),J=`pending`,ne=0,re=0,ie=null,ae=null,oe=null,se=null,ce=null,Y=null,X=[],le=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,Z=f===u.afr,Q=null,$=null,ue=e=>{if(!e||e===B||e===y||e===a)return!1;let t=e.firstElementChild;if(!t||t!==e.lastElementChild||!t.classList.contains(`container`)||t.children.length>0||t.textContent&&t.textContent.trim()||e.querySelector(`#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},de=e=>{!e?.parentElement||G.some(t=>t.shell===e)||(G.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},fe=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;ue(t)&&de(t)}},pe=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(L.find(e=>e.el===t)||L.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},me=()=>{let e=i.createElement(`div`);return e.setAttribute(`data-mf-billboard-mount`,``),e.style.height=`${t.billboardHeight}px`,e.style.minHeight=`${t.billboardHeight}px`,e.style.maxHeight=`${t.billboardHeight}px`,e.style.background=`transparent`,e.style.overflow=`visible`,e.style.position=`relative`,e.style.width=`100%`,e.style.padding=`0`,e.style.margin=`0`,e},he=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).filter(({rect:t,styles:n,list:r,listStyles:i})=>!r||!i||t.top<e-4||t.top>e+120||n.overflow!==`hidden`||parseFloat(n.borderTopLeftRadius)<4?!1:i.overflow===`auto`||i.overflowX===`auto`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},ge=()=>I||a,_e=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),ve=()=>{let e=_e().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},ye=()=>{let e=ve();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,le||t.stickyTop)},be=()=>{let e=ve();return e?.zIndex&&e.zIndex>2?Math.max(t.stickyZIndex,e.zIndex+1):t.stickyZIndex},xe=({active:e,progress:t=0,remainingMs:n=0})=>{P?.contentWindow&&P.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},Se=e=>{!e||X.some(t=>t.el===e)||X.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},Ce=e=>{let t=new Set([ge()].filter(Boolean));if(f===u.afr||U||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=ge()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)Se(n),n.style.setProperty(`z-index`,String(e),`important`)},we=()=>Z&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||ge(),Te=()=>{if(!Z||!P)return;let e=P.style;e.left=`0px`,e.width=`100vw`},Ee=()=>{if(!Z||!P||J===`active`)return;let e=we();if(!e)return;let t=e.getBoundingClientRect(),n=P.style;n.position=`absolute`,n.top=`${Math.round(r.scrollY+t.top)}px`,Te(),n.setProperty(`z-index`,`6`,`important`),P.removeAttribute(`data-mf-sticky-active`)},De=()=>{Z&&(Ee(),se&&r.cancelAnimationFrame(se),se=r.requestAnimationFrame(()=>{se=null,Ee()}),ce&&r.clearTimeout(ce),ce=r.setTimeout(()=>{ce=null,Ee()},350))},Oe=()=>{!Z||!P||P.parentElement===i.body||(Q=P.parentElement,$=P.nextSibling,i.body.appendChild(P))},ke=()=>{if(!Q||!P){Q=null,$=null;return}$&&$.parentNode===Q?Q.insertBefore(P,$):Q.appendChild(P),Q=null,$=null},Ae=()=>{for(let e=X.length-1;e>=0;--e){let{el:t,value:n,priority:r}=X[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}X.length=0},je=()=>{if(!P)return;pe(ge());let e=ge().getBoundingClientRect(),t=be();Ce(t),Oe();let n=P.style;n.position=`fixed`,n.top=`${ye()}px`,Z?Te():(n.left=`${Math.round(e.left)}px`,n.width=`${Math.round(e.width)}px`),n.setProperty(`z-index`,String(t),`important`),P.setAttribute(`data-mf-sticky-active`,``)},Me=()=>{if(!P)return;if(ke(),Z){De(),Ae();return}let e=P.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),Ae(),P.removeAttribute(`data-mf-sticky-active`)},Ne=()=>{ae&&=(r.cancelAnimationFrame(ae),null)},Pe=()=>{oe&&=(r.cancelAnimationFrame(oe),null)},Fe=()=>{if(ie===null){let e=ge().getBoundingClientRect();ie=Math.max(0,r.scrollY+e.top-t.stickyTop)}return ie},Ie=()=>re+(J===`active`?Math.max(0,r.performance.now()-ne):0),Le=()=>Math.max(0,r.scrollY-Fe()),Re=()=>{let e=K?Ie()/t.stickyDurationMs:0,n=te?Le()/t.stickyScrollDistance:0;return Math.max(e,n)},ze=()=>K?t.stickyDurationMs-Ie():0,Be=()=>r.scrollY<Fe()-1,Ve=()=>{J===`active`&&(re=Ie(),J=`paused`,Ne(),Me(),xe({active:!1,progress:Re(),remainingMs:ze()}))},He=()=>{J!==`paused`||Be()||(J=`active`,ne=r.performance.now(),je(),We())},Ue=()=>{J!==`active`&&J!==`paused`||(J===`active`&&(re=Ie()),J=`released`,Ne(),Me(),xe({active:!1,progress:1,remainingMs:0}))},We=()=>{if(J!==`active`)return;if(Be()){Ve();return}let e=Ie(),n=Le(),i=K?e/t.stickyDurationMs:0,a=te?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=K?t.stickyDurationMs-e:0;if(je(),xe({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){Ue();return}ae=r.requestAnimationFrame(We)},Ge=()=>{if(!q||J!==`pending`||!P)return;Pe();let e=ge().getBoundingClientRect();ie=Math.max(0,r.scrollY+e.top-t.stickyTop),re=0,J=`active`,ne=r.performance.now(),je(),We()},Ke=()=>{!q||J!==`pending`||!P||ge().getBoundingClientRect().top<=t.stickyTop&&Ge()},qe=()=>{J===`pending`?Ke():J===`active`&&Be()?Ve():J===`paused`&&He(),J!==`active`&&De()},Je=()=>{if(!q||J!==`pending`||!P){oe=null;return}Ke(),oe=J===`pending`?r.requestAnimationFrame(Je):null},Ye=()=>{fe();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){U=e,W=e.getAttribute(`style`);break}e=e.parentElement}let d=n.parentElement;for(;d&&d!==i.body&&d!==i.documentElement;){let e=r.getComputedStyle(d);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(L.push({el:d,orig:d.getAttribute(`style`)}),d.style.transform=`none`,d.style.willChange=`auto`,d.style.contain=`none`,d.style.filter=`none`,d.style.perspective=`none`),e.overflow!==`visible`&&(L.find(e=>e.el===d)||L.push({el:d,orig:d.getAttribute(`style`)}),d.style.overflow=`visible`),d=d.parentElement}let m=n.style;if(m.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),m.setProperty(`top`,`0`,f===u.afr?`important`:``),m.setProperty(`left`,`0`,f===u.afr?`important`:``),m.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),m.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),m.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),m.setProperty(`border`,`none`,f===u.afr?`important`:``),m.setProperty(`margin`,`0`,f===u.afr?`important`:``),m.setProperty(`padding`,`0`,f===u.afr?`important`:``),m.setProperty(`display`,`block`,f===u.afr?`important`:``),m.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),m.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),F=i.createElement(`iframe`),F.src=e.href,F.setAttribute(`data-mf-wallpaper-iframe`,``),F.setAttribute(`scrolling`,`no`),F.setAttribute(`frameborder`,`0`);let t=F.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(F,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.84`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let h=a.style;h.height=t.billboardHeight+`px`,h.minHeight=t.billboardHeight+`px`,h.background=`transparent`,h.overflow=`visible`,h.position=`relative`,h.width=`100%`,h.padding=`0`,h.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,y.setAttribute(`data-mf-slot`,``));let g=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,v=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(N=i.createElement(`style`),N.id=`mobilefireplace-pac`,N.textContent=`
239
+ `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;o.setAttribute(D,`1`);try{e.parentNode?.insertBefore(V,e)}catch{return o.removeAttribute(D),!1}J(),ne(),ie();try{o.srcdoc=t}catch{return!1}return!0},oe=()=>{d(V,`position`,`fixed`),d(V,`marginTop`,`0px`),d(V,`marginBottom`,`0px`),d(V,`marginLeft`,`0px`),d(V,`marginRight`,`0px`),d(V,`transform`,``)},se=()=>{d(V,`display`,`none`)},ce=()=>{d(V,`display`,`block`),d(V,`overflow`,`hidden`)},Y=null,X=()=>{if((!Y||!Y.isConnected)&&(Y=M(B.headingText)),!Y)return;let e=Y.getBoundingClientRect(),t=e.top-K-h+te,n=e.left+q;d(V,`top`,`${t}px`),d(V,`left`,`${n}px`),d(V,`right`,`auto`)},le=null,Z=null,Q=!1,$=(e=12)=>{if(Y=M(B.headingText),!Y){e>1&&(P=s.setTimeout(()=>$(e-1),250));return}ae(Y)||(Q=!0,J(),ne(),oe(),X(),le=()=>X(),Z=()=>X(),s.addEventListener(`scroll`,le,{passive:!0}),s.addEventListener(`resize`,Z))};$();let ue=()=>{P&&=(s.clearTimeout(P),null),N&&=(s.clearTimeout(N),null),le&&=(s.removeEventListener(`scroll`,le),null),Z&&=(s.removeEventListener(`resize`,Z),null),V.getAttribute(E)===u&&V.removeAttribute(E),Q&&(Object.entries(U).forEach(([e,t])=>{V.style[e]=t}),Object.entries(W).forEach(([e,t])=>{o.style[e]=t}),G.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),s[T]?.instanceId===u&&delete s[T]};return s[T]={instanceId:u,iframe:o,cleanup:ue,show:ce,hide:se},ue},j=(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.com.au`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return e?window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1):(v(`big`),!0)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},M=((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}),N=(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:M,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.85`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else !_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},P=(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.85`),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)}},F=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:8e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),p=f===u.smh||f===u.theage,m=n.getAttribute(`style`),h=n.hasAttribute(`data-mf-wallpaper-iframe`),g=a.getAttribute(`style`),_=n.parentElement===a?null:n.parentElement,v=_?_.getAttribute(`style`):null,y=a.parentElement,b=y?y.getAttribute(`style`):null,x=s?s.getAttribute(`style`):null,S=o?o.getAttribute(`style`):null,C=o?o.querySelector(`header`):null,w=C?C.getAttribute(`style`):null,T=C?C.querySelector(`.sc-5cbbddda-1`):null,E=T?T.getAttribute(`style`):null,D=i.querySelector(`footer`),O=D?D.getAttribute(`style`):null,ee=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],k=null,A=null,j=null,M=null,N=null,P=null,F=null,I=null,L=[],R=null,z=null,B=null,V=null,H=null,U=null,W=null,G=[],K=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,te=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,q=!!(t.sticky&&(K||te)),J=`pending`,ne=0,re=0,ie=null,ae=null,oe=null,se=null,ce=null,Y=null,X=[],le=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,Z=f===u.afr,Q=null,$=null,ue=e=>{if(!e||e===B||e===y||e===a)return!1;let t=e.firstElementChild;if(!t||t!==e.lastElementChild||!t.classList.contains(`container`)||t.children.length>0||t.textContent&&t.textContent.trim()||e.querySelector(`#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},de=e=>{!e?.parentElement||G.some(t=>t.shell===e)||(G.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},fe=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;ue(t)&&de(t)}},pe=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(L.find(e=>e.el===t)||L.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},me=()=>{let e=i.createElement(`div`);return e.setAttribute(`data-mf-billboard-mount`,``),e.style.height=`${t.billboardHeight}px`,e.style.minHeight=`${t.billboardHeight}px`,e.style.maxHeight=`${t.billboardHeight}px`,e.style.background=`transparent`,e.style.overflow=`visible`,e.style.position=`relative`,e.style.width=`100%`,e.style.padding=`0`,e.style.margin=`0`,e},he=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).filter(({rect:t,styles:n,list:r,listStyles:i})=>!r||!i||t.top<e-4||t.top>e+120||n.overflow!==`hidden`||parseFloat(n.borderTopLeftRadius)<4?!1:i.overflow===`auto`||i.overflowX===`auto`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},ge=()=>I||a,_e=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),ve=()=>{let e=_e().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},ye=()=>{let e=ve();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,le||t.stickyTop)},be=()=>{let e=ve();return e?.zIndex&&e.zIndex>2?Math.max(t.stickyZIndex,e.zIndex+1):t.stickyZIndex},xe=({active:e,progress:t=0,remainingMs:n=0})=>{P?.contentWindow&&P.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},Se=e=>{!e||X.some(t=>t.el===e)||X.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},Ce=e=>{let t=new Set([ge()].filter(Boolean));if(f===u.afr||U||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=ge()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)Se(n),n.style.setProperty(`z-index`,String(e),`important`)},we=()=>Z&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||ge(),Te=()=>{if(!Z||!P)return;let e=P.style;e.left=`0px`,e.width=`100vw`},Ee=()=>{if(!Z||!P||J===`active`)return;let e=we();if(!e)return;let t=e.getBoundingClientRect(),n=P.style;n.position=`absolute`,n.top=`${Math.round(r.scrollY+t.top)}px`,Te(),n.setProperty(`z-index`,`6`,`important`),P.removeAttribute(`data-mf-sticky-active`)},De=()=>{Z&&(Ee(),se&&r.cancelAnimationFrame(se),se=r.requestAnimationFrame(()=>{se=null,Ee()}),ce&&r.clearTimeout(ce),ce=r.setTimeout(()=>{ce=null,Ee()},350))},Oe=()=>{!Z||!P||P.parentElement===i.body||(Q=P.parentElement,$=P.nextSibling,i.body.appendChild(P))},ke=()=>{if(!Q||!P){Q=null,$=null;return}$&&$.parentNode===Q?Q.insertBefore(P,$):Q.appendChild(P),Q=null,$=null},Ae=()=>{for(let e=X.length-1;e>=0;--e){let{el:t,value:n,priority:r}=X[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}X.length=0},je=()=>{if(!P)return;pe(ge());let e=ge().getBoundingClientRect(),t=be();Ce(t),Oe();let n=P.style;n.position=`fixed`,n.top=`${ye()}px`,Z?Te():(n.left=`${Math.round(e.left)}px`,n.width=`${Math.round(e.width)}px`),n.setProperty(`z-index`,String(t),`important`),P.setAttribute(`data-mf-sticky-active`,``)},Me=()=>{if(!P)return;if(ke(),Z){De(),Ae();return}let e=P.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),Ae(),P.removeAttribute(`data-mf-sticky-active`)},Ne=()=>{ae&&=(r.cancelAnimationFrame(ae),null)},Pe=()=>{oe&&=(r.cancelAnimationFrame(oe),null)},Fe=()=>{if(ie===null){let e=ge().getBoundingClientRect();ie=Math.max(0,r.scrollY+e.top-t.stickyTop)}return ie},Ie=()=>re+(J===`active`?Math.max(0,r.performance.now()-ne):0),Le=()=>Math.max(0,r.scrollY-Fe()),Re=()=>{let e=K?Ie()/t.stickyDurationMs:0,n=te?Le()/t.stickyScrollDistance:0;return Math.max(e,n)},ze=()=>K?t.stickyDurationMs-Ie():0,Be=()=>r.scrollY<Fe()-1,Ve=()=>{J===`active`&&(re=Ie(),J=`paused`,Ne(),Me(),xe({active:!1,progress:Re(),remainingMs:ze()}))},He=()=>{J!==`paused`||Be()||(J=`active`,ne=r.performance.now(),je(),We())},Ue=()=>{J!==`active`&&J!==`paused`||(J===`active`&&(re=Ie()),J=`released`,Ne(),Me(),xe({active:!1,progress:1,remainingMs:0}))},We=()=>{if(J!==`active`)return;if(Be()){Ve();return}let e=Ie(),n=Le(),i=K?e/t.stickyDurationMs:0,a=te?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=K?t.stickyDurationMs-e:0;if(je(),xe({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){Ue();return}ae=r.requestAnimationFrame(We)},Ge=()=>{if(!q||J!==`pending`||!P)return;Pe();let e=ge().getBoundingClientRect();ie=Math.max(0,r.scrollY+e.top-t.stickyTop),re=0,J=`active`,ne=r.performance.now(),je(),We()},Ke=()=>{!q||J!==`pending`||!P||ge().getBoundingClientRect().top<=t.stickyTop&&Ge()},qe=()=>{J===`pending`?Ke():J===`active`&&Be()?Ve():J===`paused`&&He(),J!==`active`&&De()},Je=()=>{if(!q||J!==`pending`||!P){oe=null;return}Ke(),oe=J===`pending`?r.requestAnimationFrame(Je):null},Ye=()=>{fe();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){U=e,W=e.getAttribute(`style`);break}e=e.parentElement}let d=n.parentElement;for(;d&&d!==i.body&&d!==i.documentElement;){let e=r.getComputedStyle(d);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(L.push({el:d,orig:d.getAttribute(`style`)}),d.style.transform=`none`,d.style.willChange=`auto`,d.style.contain=`none`,d.style.filter=`none`,d.style.perspective=`none`),e.overflow!==`visible`&&(L.find(e=>e.el===d)||L.push({el:d,orig:d.getAttribute(`style`)}),d.style.overflow=`visible`),d=d.parentElement}let m=n.style;if(m.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),m.setProperty(`top`,`0`,f===u.afr?`important`:``),m.setProperty(`left`,`0`,f===u.afr?`important`:``),m.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),m.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),m.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),m.setProperty(`border`,`none`,f===u.afr?`important`:``),m.setProperty(`margin`,`0`,f===u.afr?`important`:``),m.setProperty(`padding`,`0`,f===u.afr?`important`:``),m.setProperty(`display`,`block`,f===u.afr?`important`:``),m.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),m.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),F=i.createElement(`iframe`),F.src=e.href,F.setAttribute(`data-mf-wallpaper-iframe`,``),F.setAttribute(`scrolling`,`no`),F.setAttribute(`frameborder`,`0`);let t=F.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(F,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.85`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let h=a.style;h.height=t.billboardHeight+`px`,h.minHeight=t.billboardHeight+`px`,h.background=`transparent`,h.overflow=`visible`,h.position=`relative`,h.width=`100%`,h.padding=`0`,h.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,y.setAttribute(`data-mf-slot`,``));let g=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,v=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(N=i.createElement(`style`),N.id=`mobilefireplace-pac`,N.textContent=`
240
240
  /* Mobile Fireplace — powered-ad-config */
241
241
  html, body {
242
242
  background-color: transparent !important;
@@ -400,4 +400,4 @@
400
400
  margin: 0 !important;
401
401
  padding: 0 !important;
402
402
  }
403
- `,i.head.appendChild(N),f.setup&&f.setup(i,a),f===u.wwos){let e=he();e&&(k=e.el,A=k.getAttribute(`style`),j=e.list,M=j?j.getAttribute(`style`):null,k.style.marginLeft=`10px`,k.style.marginRight=`10px`,k.style.width=`calc(100% - 20px)`,j&&(j.style.width=`100%`))}if(o&&f!==u.afr&&(U||p)){if(U&&(B=c||y),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),F=i.createElement(`iframe`),F.src=e.href,F.setAttribute(`data-mf-wallpaper-iframe`,``),F.setAttribute(`scrolling`,`no`),F.setAttribute(`frameborder`,`0`);let n=F.style;n.position=`fixed`,n.top=`0`,n.left=`0`,n.width=`100vw`,n.height=`100dvh`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.background=`transparent`,n.zIndex=String(t.zIndex),n.pointerEvents=`none`,i.body.insertBefore(F,i.body.firstChild)}n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`0`,n.style.height=`0`,n.style.opacity=`0`,n.style.pointerEvents=`none`,n.style.zIndex=`-1`,I=me(),o.parentElement.insertBefore(I,o),U?(U.style.position=`static`,U.style.inset=`auto`,U.style.height=`0`,U.style.minHeight=`0`,U.style.maxHeight=`0`,U.style.overflow=`hidden`,U.style.backgroundColor=`transparent`,U.style.boxShadow=`none`,U.style.border=`0`,U.style.outline=`0`,U.style.pointerEvents=`none`):y&&(y.style.height=`0`,y.style.minHeight=`0`,y.style.maxHeight=`0`,y.style.overflow=`hidden`,y.style.backgroundColor=`transparent`,y.style.border=`0`,y.style.outline=`0`),h.height=`0`,h.minHeight=`0`,h.width=`0`,h.overflow=`hidden`,s&&(s.style.backgroundColor=`transparent`,s.style.backgroundImage=`none`,s.style.position=`relative`,s.style.zIndex=`1`),o.style.marginLeft=`14px`,o.style.marginRight=`14px`,o.style.backgroundColor=`#ffffff`,o.style.position=`relative`,o.style.zIndex=`2`,o.style.overflowX=`clip`,o.style.isolation=`isolate`;for(let{el:e}of ee)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;C&&(C.style.borderTop=`0`,C.style.outline=`0`,C.style.boxShadow=`none`),T&&(T.style.borderBottom=`0`),D&&(D.style.marginLeft=`14px`,D.style.marginRight=`14px`,D.style.position=`relative`,D.style.zIndex=`2`),fe()}I||(I=me(),a.appendChild(I))},Xe=null,Ze=null,Qe=!1,$e=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,I&&(I.style.height=i+`px`,I.style.minHeight=i+`px`,I.style.maxHeight=i+`px`),P&&(P.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,I&&(I.style.height=t.billboardHeight+`px`,I.style.minHeight=t.billboardHeight+`px`,I.style.maxHeight=t.billboardHeight+`px`),P&&(P.style.height=t.billboardHeight+`px`);J===`active`?je():De()};if(Ye(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),P=i.createElement(`iframe`),P.src=e.href,P.setAttribute(`data-mf-billboard-iframe`,``),P.setAttribute(`scrolling`,`no`),P.setAttribute(`frameborder`,`0`);let n=P.style;n.position=Z?`absolute`:`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=Z?`6`:`1`,Z?(P.setAttribute(`data-mf-body-billboard`,``),i.body.appendChild(P),Ee()):(I||a).appendChild(P),q&&(Y=qe,r.addEventListener(`scroll`,Y,{passive:!0}),oe=r.requestAnimationFrame(Je))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:F?.contentWindow||n.contentWindow,billboardIframe:P,billboardWindow:null},F&&F.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=F.contentWindow)}catch{}}),P&&P.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=P.contentWindow}catch{}}),Xe=$e,r.addEventListener(`resize`,Xe),$e(),Ze=()=>{et()},window.addEventListener(`pagehide`,Ze),window.addEventListener(`beforeunload`,Ze),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let et=()=>{if(!Qe){Qe=!0,Ze&&=(window.removeEventListener(`pagehide`,Ze),window.removeEventListener(`beforeunload`,Ze),null),Xe&&=(r.removeEventListener(`resize`,Xe),null),Y&&=(r.removeEventListener(`scroll`,Y),null),Ne(),Pe(),se&&=(r.cancelAnimationFrame(se),null),ce&&=(r.clearTimeout(ce),null),xe({active:!1,progress:1,remainingMs:0}),N&&N.parentNode&&(N.parentNode.removeChild(N),N=null),P&&P.parentNode&&(P.parentNode.removeChild(P),P=null),Q=null,$=null,I&&I.parentNode&&(I.parentNode.removeChild(I),I=null),F&&F.parentNode&&(F.parentNode.removeChild(F),F=null);try{delete r.__mfBridge}catch{}for(let e=G.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=G[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}G.length=0,R&&(z&&z.parentNode===R?R.insertBefore(n,z):R.appendChild(n),R=null,z=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`),h||n.removeAttribute(`data-mf-wallpaper-iframe`);for(let{el:e,orig:t}of L)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);L.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),B&&=(V&&(H&&H.parentNode===V?V.insertBefore(B,H):V.appendChild(B),V=null,H=null),null),y&&(y.removeAttribute(`data-mf-slot`),b?y.setAttribute(`style`,b):y.removeAttribute(`style`)),U&&(W?U.setAttribute(`style`,W):U.removeAttribute(`style`),U=null,W=null);for(let{el:e,orig:t}of ee)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);j&&(M?j.setAttribute(`style`,M):j.removeAttribute(`style`),j=null,M=null),k&&(A?k.setAttribute(`style`,A):k.removeAttribute(`style`),k=null,A=null),o&&(S?o.setAttribute(`style`,S):o.removeAttribute(`style`)),C&&(w?C.setAttribute(`style`,w):C.removeAttribute(`style`)),T&&(E?T.setAttribute(`style`,E):T.removeAttribute(`style`)),D&&(O?D.setAttribute(`style`,O):D.removeAttribute(`style`)),s&&(x?s.setAttribute(`style`,x):s.removeAttribute(`style`))}};return et},I=()=>{};function L({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof I==`function`&&I();let o=()=>{};return e===`fireplace`?o=d(t):e===`fireplace-collant`?o=f(t):e===`logomorph`?o=j(n,r,i):e===`dynamicheading`?o=A(a):e===`interscroller`?o=N(a):e===`liquidframe`?o=P(a):e===`mobilefireplace`?o=F(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),I=typeof o==`function`?o:()=>{},I}return L.version=`0.1.84`,L});
403
+ `,i.head.appendChild(N),f.setup&&f.setup(i,a),f===u.wwos){let e=he();e&&(k=e.el,A=k.getAttribute(`style`),j=e.list,M=j?j.getAttribute(`style`):null,k.style.marginLeft=`10px`,k.style.marginRight=`10px`,k.style.width=`calc(100% - 20px)`,j&&(j.style.width=`100%`))}if(o&&f!==u.afr&&(U||p)){if(U&&(B=c||y),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),F=i.createElement(`iframe`),F.src=e.href,F.setAttribute(`data-mf-wallpaper-iframe`,``),F.setAttribute(`scrolling`,`no`),F.setAttribute(`frameborder`,`0`);let n=F.style;n.position=`fixed`,n.top=`0`,n.left=`0`,n.width=`100vw`,n.height=`100dvh`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.background=`transparent`,n.zIndex=String(t.zIndex),n.pointerEvents=`none`,i.body.insertBefore(F,i.body.firstChild)}n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`0`,n.style.height=`0`,n.style.opacity=`0`,n.style.pointerEvents=`none`,n.style.zIndex=`-1`,I=me(),o.parentElement.insertBefore(I,o),U?(U.style.position=`static`,U.style.inset=`auto`,U.style.height=`0`,U.style.minHeight=`0`,U.style.maxHeight=`0`,U.style.overflow=`hidden`,U.style.backgroundColor=`transparent`,U.style.boxShadow=`none`,U.style.border=`0`,U.style.outline=`0`,U.style.pointerEvents=`none`):y&&(y.style.height=`0`,y.style.minHeight=`0`,y.style.maxHeight=`0`,y.style.overflow=`hidden`,y.style.backgroundColor=`transparent`,y.style.border=`0`,y.style.outline=`0`),h.height=`0`,h.minHeight=`0`,h.width=`0`,h.overflow=`hidden`,s&&(s.style.backgroundColor=`transparent`,s.style.backgroundImage=`none`,s.style.position=`relative`,s.style.zIndex=`1`),o.style.marginLeft=`14px`,o.style.marginRight=`14px`,o.style.backgroundColor=`#ffffff`,o.style.position=`relative`,o.style.zIndex=`2`,o.style.overflowX=`clip`,o.style.isolation=`isolate`;for(let{el:e}of ee)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;C&&(C.style.borderTop=`0`,C.style.outline=`0`,C.style.boxShadow=`none`),T&&(T.style.borderBottom=`0`),D&&(D.style.marginLeft=`14px`,D.style.marginRight=`14px`,D.style.position=`relative`,D.style.zIndex=`2`),fe()}I||(I=me(),a.appendChild(I))},Xe=null,Ze=null,Qe=!1,$e=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,I&&(I.style.height=i+`px`,I.style.minHeight=i+`px`,I.style.maxHeight=i+`px`),P&&(P.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,I&&(I.style.height=t.billboardHeight+`px`,I.style.minHeight=t.billboardHeight+`px`,I.style.maxHeight=t.billboardHeight+`px`),P&&(P.style.height=t.billboardHeight+`px`);J===`active`?je():De()};if(Ye(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),P=i.createElement(`iframe`),P.src=e.href,P.setAttribute(`data-mf-billboard-iframe`,``),P.setAttribute(`scrolling`,`no`),P.setAttribute(`frameborder`,`0`);let n=P.style;n.position=Z?`absolute`:`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=Z?`6`:`1`,Z?(P.setAttribute(`data-mf-body-billboard`,``),i.body.appendChild(P),Ee()):(I||a).appendChild(P),q&&(Y=qe,r.addEventListener(`scroll`,Y,{passive:!0}),oe=r.requestAnimationFrame(Je))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:F?.contentWindow||n.contentWindow,billboardIframe:P,billboardWindow:null},F&&F.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=F.contentWindow)}catch{}}),P&&P.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=P.contentWindow}catch{}}),Xe=$e,r.addEventListener(`resize`,Xe),$e(),Ze=()=>{et()},window.addEventListener(`pagehide`,Ze),window.addEventListener(`beforeunload`,Ze),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let et=()=>{if(!Qe){Qe=!0,Ze&&=(window.removeEventListener(`pagehide`,Ze),window.removeEventListener(`beforeunload`,Ze),null),Xe&&=(r.removeEventListener(`resize`,Xe),null),Y&&=(r.removeEventListener(`scroll`,Y),null),Ne(),Pe(),se&&=(r.cancelAnimationFrame(se),null),ce&&=(r.clearTimeout(ce),null),xe({active:!1,progress:1,remainingMs:0}),N&&N.parentNode&&(N.parentNode.removeChild(N),N=null),P&&P.parentNode&&(P.parentNode.removeChild(P),P=null),Q=null,$=null,I&&I.parentNode&&(I.parentNode.removeChild(I),I=null),F&&F.parentNode&&(F.parentNode.removeChild(F),F=null);try{delete r.__mfBridge}catch{}for(let e=G.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=G[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}G.length=0,R&&(z&&z.parentNode===R?R.insertBefore(n,z):R.appendChild(n),R=null,z=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`),h||n.removeAttribute(`data-mf-wallpaper-iframe`);for(let{el:e,orig:t}of L)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);L.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),B&&=(V&&(H&&H.parentNode===V?V.insertBefore(B,H):V.appendChild(B),V=null,H=null),null),y&&(y.removeAttribute(`data-mf-slot`),b?y.setAttribute(`style`,b):y.removeAttribute(`style`)),U&&(W?U.setAttribute(`style`,W):U.removeAttribute(`style`),U=null,W=null);for(let{el:e,orig:t}of ee)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);j&&(M?j.setAttribute(`style`,M):j.removeAttribute(`style`),j=null,M=null),k&&(A?k.setAttribute(`style`,A):k.removeAttribute(`style`),k=null,A=null),o&&(S?o.setAttribute(`style`,S):o.removeAttribute(`style`)),C&&(w?C.setAttribute(`style`,w):C.removeAttribute(`style`)),T&&(E?T.setAttribute(`style`,E):T.removeAttribute(`style`)),D&&(O?D.setAttribute(`style`,O):D.removeAttribute(`style`)),s&&(x?s.setAttribute(`style`,x):s.removeAttribute(`style`))}};return et},I=()=>{};function L({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof I==`function`&&I();let o=()=>{};return e===`fireplace`?o=d(t):e===`fireplace-collant`?o=f(t):e===`logomorph`?o=j(n,r,i):e===`dynamicheading`?o=A(a):e===`interscroller`?o=N(a):e===`liquidframe`?o=P(a):e===`mobilefireplace`?o=F(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),I=typeof o==`function`?o:()=>{},I}return L.version=`0.1.85`,L});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.84",
3
+ "version": "0.1.85",
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",