define("windowsFreBanner",["jquery","window","document","browserAccess","binding","setCookie","afire"],function(n,t,i,r,u,f,e){function v(){c.removeEventListener(l,v);s.addEventListener(p,b);s.style.transform="translateY(-"+h.offsetHeight+"px)";y(c);f("wfud",1)}function y(n){if(n){var t;try{t=JSON.parse(n.getAttribute(k))}catch(i){t=[]}t.forEach(function(n){e(n)})}}function d(n){return function(){y(n)}}function b(){s.classList.remove(w);s.style.transform="";s.removeEventListener(p,b);h.parentElement&&h.parentElement.removeChild(h);var n=t.document.createEvent("UIEvents");n.initUIEvent("resize",!0,!1,t,0);t.dispatchEvent(n)}function g(){var s;if(r.features.LaunchAppWithUri){var f="pfn",n=o&&o.querySelector(".ebmain"),t=n&&n.getElementsByTagName("a"),e=JSON.tryParse(n.getAttribute("data-supported-apps"));if(t.length>0&&e)for(s in t){var i=t[s],u=i.href,h=u&&e[u.toLowerCase().substring(0,u.indexOf(":")).toLowerCase()];h&&(i.setAttribute(f,h),i.addEventListener(l,function(n){var t=this.getAttribute(f);this.href&&t&&(n.preventDefault(),r.launchAppWithUri(this.href,t))}))}}}function nt(){var t,n,f,e;if(s=i.body,s.classList.add(w),h=i.querySelector("div[data-section-id='section.windowsfre']"),o=i.getElementById("winfre"),!h){o&&o.parentElement.removeChild(o);return}for(c=o&&o.querySelector(".dismiss"),a=o&&o.querySelector(".item-c"),t=a&&a.children,n=0;n<t.length;n++)f=t[n],f.addEventListener(l,d(f));c&&(c.removeEventListener(l,v),c.addEventListener(l,v),e=o.getAttribute("data-bgcolor"),e&&(h.style.background=e),u("truncate",".winfreb .item .title h2").all(),y(o),r.isServiceUiAvailable()&&(r.setWindowFreRendered(),g()))}var s,k="data-beacon",l="click",o,c,a,p="transitionend",w="withWinFre",h;return{setup:nt}});require(["windowsFreBanner","c.dom"],function(n){n.setup()})