(()=>{var P={};(function(){const w="load",f=window.navigator.userAgent,h="snapppt.com",m="staging.snapppt.com",p="https://cdn.snapppt.com/";let d="",i=window.CURRENT_SNPT_SCRIPT||document.currentScript,N=_(),c=document.createElement("a");b();function S(){var e,t=[...document.querySelectorAll('[rel="preconnect"]')],n=t.filter(r=>r.href==p).length;n||(e=document.createElement("link"),e.rel="preconnect",e.href=p,document.head.appendChild(e))}function b(){S(),T(),C()}function T(){if(!i&&(f.indexOf("MSIE")!=-1||f.indexOf("Trident")!=-1)){let e=document.getElementsByTagName("script");for(let t=0,n=e.length;t<n;t++)if(e[t].className.indexOf("snapppt-widget")>=0){i=e[t];break}}i||(i=window.CURRENT_SNPT_SCRIPT),d=i.src,d||(d=window.CURRENT_SNTP_EMBED),c.href=d}function l(){N.widgetReady(i)}function _(){if(window.SNPT=window.SNPT||{},!window.SNPT.widgetManager){let e=[],t=!1,n=null,r=function(){for(;e.length>0;){let o=e.pop();a(o)}},a=function(o){n(o)},s={widgetReady:function(o){typeof n=="function"?a(o):(e.unshift(o),s.requestLoader())},requestLoader:function(){t||(t=!0,v())},loaderReady:function(o){n=o,r()}};window.SNPT.widgetManager=s}return window.SNPT.widgetManager}function g(e,t){let n=t.parentNode;n.lastChild==t?n.appendChild(e):n.insertBefore(e,t.nextSibling)}function R(e){e.parentNode.removeChild(e)}function v(){let e=d.lastIndexOf("/"),t=document.createElement("script"),n=d.substr(0,e+1)+w+d.substr(e);if((c.host==h||c.host==m)&&(n="https://cdn.snapppt.com/e/snap-widget-7e53a127744ef382af2a.js"),t.src=n,t.className="snapppt-widget",t.setAttribute("importance","high"),i.dataset)for(let r in i.dataset)t.dataset[r]=i.dataset[r];else for(let r=0;r<i.attributes.length;r++){let a=i.attributes[r];/^data-/.test(a.nodeName)&&t.setAttribute(a.nodeName,a.nodeValue)}i.className="snptwdgt_init_prldr",g(t,i)}function E(){let e=document.createElement("div");return e.innerHTML="&nbsp;",g(e,i),e}function C(){if(i.src.match("campaign-signup")){l();return}if(!("IntersectionObserver"in window)){l();return}let e=E(),t,n={root:null,rootMargin:"1600px",threshold:0},r=(a,s)=>{a.forEach(o=>{if(o.isIntersecting){let u=o.target;s.unobserve(u),R(u),u=null,l()}})};t=new IntersectionObserver(r,n),t.observe(e)}})()})();

//# sourceMappingURL=snap-widget-preloader-32da42375b9810ece54a.js.map