/*! * (c) Copyright Adnami ApS, all rights reserved. * * Package: @adnami.io/adsm.macro.263b65a1-ddb2-4730-b2f2-dcca723e169a.js * Version: 1.0.6 * Date: 2024-02-19T11:03:13.849Z * */!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){const o=n(1),r=n(2),a=n(3),i=n(4),s=n(7),l={uuid:n(15).uuid,default:function(){let e=window.adsmtag=window.adsmtag||{},t=[];t.push((function(){s.run(),i.run()})),e.cmd=t.concat(e.cmd||[]),r.load(a.config.rmbRef)}};o.bootstrap(l)},function(e,t){e.exports={bootstrap:function(e){var t=window.adsmtag=window.adsmtag||{};t.macro?t.macro.uuid===e.uuid||t.mnemonics||(t.macro.uuid=e.uuid,t.macro.loaded=!0,t.macro.certifications=e.certifications||void 0,e.default()):(t.macro={},t.macro.uuid=e.uuid,t.macro.loaded=!0,t.macro.certifications=e.certifications||void 0,e.default())}}},function(e,t){e.exports={load:function(e,t){var n=document.createElement("script");t&&(n.id=t),n.async=!0,n.type="text/javascript",n.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)},loadDefer:function(e,t){var n=document.createElement("script");t&&(n.id=t),n.async=!0,n.type="text/javascript",n.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)},loadSync:function(e,t){var n=document.createElement("script");t&&(n.id=t),n.type="text/javascript",n.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}}},function(e,t){var n,o,r={getMacroRmbRef:function(){return o},getMacroEdgeRef:function(){return n},edgeRef:n="https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",edgeRefLegacy:"https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",rmbRef:o="https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",lazyLoadEdge:"https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",boosterRef:""};e.exports={config:r}},function(e,t,n){const o=n(5),r=n(6);e.exports={run:function(){let e=window.adsmtag=window.adsmtag||{};e.mnemonics=e.mnemonics||[],-1===e.mnemonics.indexOf("css")&&(o.create(r,"adsmtag-css"),e.mnemonics.push("css"))}}},function(e,t){function n(e,t,n,o){try{"insertRule"in e?e.insertRule(t+"{"+n+"}",o):"addRule"in e&&e.addRule(t,n,o)}catch(e){}}e.exports={create:function(e,t){var o=window.document.createElement("style");o.styleSheet&&o.appendChild(window.document.createTextNode("")),(window.document.head||window.document.getElementsByTagName("head")[0]).appendChild(o);for(var r=o.sheet||o.styleSheet,a=r.cssRules||r.rules,i=0;idiv",styles:"left:unset !important;transform:unset !important;margin:auto !important;position:relative !important;display:block !important;"},{selector:".adnm-desktop-interscroll-inline .adnm-interscroll-parent",styles:"min-width:unset !important;"}]},function(e,t,n){const o=n(8);e.exports={run:function(){let e=window.adsmtag=window.adsmtag||{};e.mnemonics=e.mnemonics||[],-1===e.mnemonics.indexOf("scripts")&&(o.run(),e.mnemonics.push("scripts"))}}},function(e,t,n){const o=n(9).functions.cloneCert;n(10);var r=n(11),a=n(12);n(13),n(14);function i(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)}function l(){let e=document.querySelector(".adnm-topscroll-container-wrapper, .adnm-html-topscroll-frame-wrapper"),t=document.querySelector("html.adnm-topscroll");if(t){e.getBoundingClientRect().bottom>0?t.classList.remove("adnm-topscroll-fixed"):t.classList.add("adnm-topscroll-fixed")}let n=document.querySelector(".adsm-skin-banner-parent"),o=document.querySelector("html.adsm-skin");if(o){n.getBoundingClientRect().top>0?o.classList.remove("adsm-skin-fixed"):o.classList.add("adsm-skin-fixed")}}e.exports={run:function(){window.adsm=window.adsm||{},window.adsm.certifications=window.adsm.certifications||[],window.adsm.certifications["adnami-canvas-inline-midscroll-desktop"]={cert:{},onDestroy:function(){r.removeAutoHeightParents(),r.removeParentClass()},onLoaded:function(e){r.autoHeightParents(e)},onInit:function(e){r.addParentClass(e,2)}};var e=!1;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(e=!0),window.adsm.certifications["adnami-canvas-desktop-fluidskin"]={cert:{element:"body",content:"html:not(.homepage) div.OffsetContainer.relative div.relative, div.OffsetContainer.relative>div.relative.w-full",sticky:!0,enableContentBackground:!0,contentBackgroundColor:e?"black":"white",switchToStickyPosition:48},onDestroy:function(){a.removeSideskinBannerResizeClass(),s(window,"scroll",l),s(window,"resize",l),s(window,"load",l)},onLoaded:function(e){a.initSideSkinBannerResizeGeneric(e,2)},onInit:function(){i(window,"scroll",l),i(window,"resize",l),i(window,"load",l)}},window.adsm.certifications["adnami-canvas-seamless-skin"]=o("adnami-canvas-desktop-fluidskin")}}},function(e,t){var n={addEvent:function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)},cloneCert:function(e){var t=JSON.parse(JSON.stringify(window.adsm.certifications[e]));return t.onInit=window.adsm.certifications[e].onInit,t.onDestroy=window.adsm.certifications[e].onDestroy,t.onLoaded=window.adsm.certifications[e].onLoaded,t}},o=function(){var e,t,n,o,r=document.getElementsByTagName("html")[0],a="10px",i="1500px",s="absolute",l="fixed";function c(){return r.getBoundingClientRect().top}function d(e,t,n){e&&(e.style.marginTop=t,e.style.position=n)}return{defineSkyWrappers:function(n,o){e=n,t=o},defineSkyArray:function(e){n=e},adjustSkys:function(){null!==document.querySelector("html.adsm-skin")||o?c()<-parseInt(i)?(d(e,a,l),d(t,a,l)):(d(e,i,s),d(t,i,s)):(d(e,a,l),d(t,a,l))},adjustSkycrapers:function(e,t){if(o)if(c()100&&null!==document.querySelector(".adnm-adwell iframe");var e}())e=t.firstChild,clearInterval(n),t.style.maxWidth=((i=a)?i.getBoundingClientRect().width:null)+"px",r();else if(o>1e4)return clearInterval(n),!1;var i}),100),o=0;function r(){var n=document.createElement("div");t&&e&&(t.insertBefore(n,e),n.classList.add("adnm-adwell-close-button"),n.innerHTML="✖",document.querySelector(".adnm-adwell-close-button").addEventListener("click",a))}function a(){t&&(t.classList.add("adnm-adwell-gone"),t.classList.remove("adnm-adwell-full"))}return{insertCloseButton:r,addEvent:function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)},adwellFullHeight:function(){t&&(t.classList.add("adnm-adwell-full"),setTimeout(a,7e3))}}}();e.exports={functions:n,adnamiSkyAdjuster:o,adnamiBottomBanner:r}},function(e,t){const n="adnm-topscroll-parent";function o(){document.querySelectorAll("."+n).forEach(e=>{e.classList.remove(n)})}let r=null;const a="adnm-topscroll-sky-selector";let i=null,s=[];function l(){if(!document.querySelector("html").classList.contains("adsm-skin"))for(let e=0;e0&&n){if(t[0].classList.contains(`${a}-${e}`)){const o=t[0].getBoundingClientRect().top,r=n.getBoundingClientRect().bottom;Math.abs(o-r-s[e].spacing)>1&&c()}if(s[e].restoreWhenUnder){n.getBoundingClientRect().bottom<0?t.forEach(t=>{t.classList.remove(`${a}-${e}`)}):t.forEach(t=>{t.classList.add(`${a}-${e}`)})}}}}function c(){if(0===s.length)return;i.innerHTML="";let e="";for(let n=0;n{e.classList.add(`${a}-${n}`)});const l=o[0];let c=0,d=t(c,n);i.innerHTML=e+d;const u=window.scrollY+l.getBoundingClientRect().top,m=window.scrollY+r.getBoundingClientRect().top+r.offsetHeight;c=s[n].spacing+m-u,e+=t(c,n),i.innerHTML=e}function t(e,t){return`html.adnm-topscroll:not(.adsm-skin) .${a}-${t} { margin-top: 0px !important; position: ${s[t].cssPosition} !important; top: ${e}px !important; } `}}var d;function u(){var e=window.innerHeight;if(d){var t=document.querySelector(".adnm-html-topscroll-frame-wrapper"),n=document.querySelectorAll('html.adnm-topscroll .adnm-html-topscroll-frame-wrapper div[class^="adnm-html-topscroll"]'),o=e-d.offsetHeight,r=t.getBoundingClientRect().bottom-d.getBoundingClientRect().top,a=Math.floor(r+o)-1;t&&n&&(m(t,a),n.forEach(e=>{m(e,a)}))}}function m(e,t){e&&e.style&&(e.style.maxHeight=t+"px",e.style.height=t+"px")}let f;e.exports={alignSkys:function(e,t,n=null,o=20,r="absolute"){n||(n=".adnm-html-topscroll-frame-wrapper"),s.push({skySelectors:e,restoreWhenUnder:t,alignSelector:n,spacing:o,cssPosition:r}),c()},removeAlignSkys:function(){i.parentElement.removeChild(i),s=[];for(let e=0;e{t.classList.contains(`${a}-${e}`)&&t.classList.remove(`${a}-${e}`)})}window.removeEventListener("resize",c),window.removeEventListener("scroll",l)},initAlignSkys:function(){i=document.createElement("style"),document.head.appendChild(i),window.addEventListener("resize",c),window.addEventListener("scroll",l)},initAdjustHeightOfTopscroller:function(e){d=document.querySelector(e),u(),window.addEventListener("resize",u)},destroyAdjustHeightOfTopscroller:function(){window.removeEventListener("resize",u)},addParentClass:function(e,t,r=!1){if(!function(e,t){let o=null,a=e;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let e=0;e-r?e.classList.remove(t):e.classList.add(t)}},autoFixViewability:function(e,t){r=document.createElement("style"),document.head.appendChild(r),r.innerHTML=".adnm-viewability-fix { overflow: unset !important; }",function(e){let n=null,o=e;for(;o.parent&&o.parent!==window;)o=o.parent;const r=document.querySelectorAll("iframe");for(let e=0;e{e.classList.remove("adnm-viewability-fix")}),r&&r.parentElement.removeChild(r)},addTopscrollSizeIndicatorClass:function(){const e=document.querySelector(".adnm-html-topscroll-frame-wrapper");if(e){const t=parseFloat(e.style.height)/window.innerHeight*100;if(t){f="adnm-topscroll-"+t;const e=document.querySelector("html");e&&f&&e.classList.add(f)}}},removeTopscrollSizeIndicatorClass:function(){const e=document.querySelector("html");e&&f&&(e.classList.remove(f),f="")},adunitSizeFailsafe:function(){const e=document.querySelector("iframe[id^='google_ads_iframe'][class^='adnm-']"),t=document.querySelector(".adnm-html-topscroll-frame-wrapper ");e.offsetWidth<30&&(e.style.width=t.offsetWidth+"px",e.style.marginLeft="-50vw")}}},function(e,t){const n="adnm-interscroll-parent";function o(){document.querySelectorAll("."+n).forEach(e=>{e.classList.remove(n)})}const r="adnm-interscroll-creative-parent";let a=null,i=null;e.exports={addParentClass:function(e,t,r=!1){if(!function(e,t){let o=null,a=e;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let e=0;e{e.classList.remove(r)}),a&&a.parentElement.removeChild(a)}}},function(e,t){const n="adsm-skin-parent";function o(){document.querySelectorAll("."+n).forEach(e=>{e.classList.remove(n)})}const r="adsm-skin-banner-parent";let a=null;const i="adnm-skin-sky-selector";let s=null,l=[];function c(){for(let e=0;e0&&n){if(t[0].classList.contains(`${i}-${e}`)){const o=t[0].getBoundingClientRect().top,r=n.getBoundingClientRect().bottom;Math.abs(o-r-l[e].spacing)>1&&d()}if(l[e].restoreWhenUnder){n.getBoundingClientRect().bottom<0?t.forEach(t=>{t.classList.remove(`${i}-${e}`)}):t.forEach(t=>{t.classList.add(`${i}-${e}`)})}}}}function d(){if(0===l.length)return;s.innerHTML="";let e="";for(let n=0;n{e.classList.add(`${i}-${n}`)});const a=o[0];let c=0,d=t(c,n);s.innerHTML=e+d;const u=window.scrollY+a.getBoundingClientRect().top,m=window.scrollY+r.getBoundingClientRect().top+r.offsetHeight;c=l[n].spacing+m-u,e+=t(c,n),s.innerHTML=e}function t(e,t){return`.adsm-skin .${i}-${t} { margin-top: 0px !important; position: ${l[t].cssPosition} !important; top: ${e}px !important; } `}}e.exports={initSideSkinBannerResizeGeneric:function(e,t=2,n=0){let i=null;if(!document.querySelector(window.adsm.certifications["adnami-canvas-desktop-fluidskin"].cert.content))return console.error("Could not find element to wrap around");if(a=document.createElement("style"),document.head.appendChild(a),!function(e,t){let n=null,o=e;for(;o.parent&&o.parent!==window;)o=o.parent;const a=document.querySelectorAll("iframe");for(let e=0;e{e.classList.remove(r)})},addParentClass:function(e,t,o=!1){if(!function(e,t){let r=null,a=e;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let e=0;e{t.classList.contains(`${i}-${e}`)&&t.classList.remove(`${i}-${e}`)})}window.removeEventListener("resize",d),window.removeEventListener("scroll",c)},initAlignSkys:function(){s=document.createElement("style"),document.head.appendChild(s),window.addEventListener("resize",d),window.addEventListener("scroll",c)},loadSkinRealigner:function(){var e=document.querySelector(".adsm-wallpaper"),t=document.querySelector(".adsm-skin-banner-parent"),n=document.querySelector(".adnm-html-topscroll-frame-wrapper");const o=t.getBoundingClientRect().top;if(e&&!n){var r=o+window.pageYOffset;e.style.setProperty("position","absolute","important"),e.style.setProperty("top",r+"px","important")}if(e&&n){let t=n.getBoundingClientRect().bottom;skinOffset=Math.abs(t-o);r=skinOffset+t+window.pageYOffset;e.style.setProperty("position","absolute","important"),e.style.setProperty("top",r+"px","important")}},loadAlignSkinSpecial:function(){var e=document.querySelector(".adsm-skin-banner-parent").getBoundingClientRect().top,t=document.querySelector(".adsm-wallpaper").getBoundingClientRect().top,n=document.querySelector(".adsm-wallpaper");if(document.querySelector("html.adsm-skin")){n.style.top=e+"px",e=document.querySelector(".adsm-skin-banner-parent").getBoundingClientRect().top;var o=0;document.querySelector("html.adnm-topscroll")&&(o=document.querySelector(".adnm-html-topscroll-frame-wrapper").getBoundingClientRect().bottom,t=document.querySelector(".adsm-wallpaper").getBoundingClientRect().top,n.style.top=t-2*o+"px")}}}},function(e,t){const n="adnm-outstream-parent";function o(){document.querySelectorAll("."+n).forEach(e=>{e.classList.remove(n)})}const r="adnm-outstream-creative-parent";let a=null,i=null;e.exports={addParentClass:function(e,t,r=!1){if(!function(e,t){let o=null,a=e;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let e=0;e{e.classList.remove(r)}),a&&a.parentElement.removeChild(a)}}},function(e,t){const n="adnm-native-parent";function o(){document.querySelectorAll("."+n).forEach(e=>{e.classList.remove(n)})}const r="adnm-native-creative-parent";let a=null,i=null;e.exports={addParentClass:function(e,t,r=!1){if(!function(e,t){let o=null,a=e;for(;a.parent&&a.parent!==window;)a=a.parent;const i=document.querySelectorAll("iframe");for(let e=0;e{e.classList.remove(r)}),a&&a.parentElement.removeChild(a)}}},function(e,t){e.exports={uuid:"263b65a1-ddb2-4730-b2f2-dcca723e169a"}}]);