((s,u,o)=>{function t(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){let e=Object.getOwnPropertySymbols(t);n&&(e=e.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,e)}return r}function n(i){for(let e=1;e{function n(){i(this,n)}return c(n,null,[{key:"isPresent",value:function(e){return null!=e&&""!==e}},{key:"now",value:function(){return+new Date}},{key:"guid",value:function(){return l.version+"-xxxxxxxx-".replace(/[x]/g,function(e){var t=36*Math.random()|0;return("x"===e?t:3&t|8).toString(36)})+(+new Date).toString(36)}},{key:"optionalData",value:function(e){return!1===n.isPresent(e)?"":"object"===r(e)?n.optionalData(JSON.stringify(e)):"function"==typeof e?n.optionalData(e()):String(e)}},{key:"encodeQueryData",value:e=>{if("function"===r(URLSearchParams))return new URLSearchParams(e).toString();var t,n=[];for(t in e)n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return n.join("&")}},{key:"post",value:(e,t)=>(t=n.optionalData(t),n.request({url:e,method:"POST",body:n.optionalData(t)}))},{key:"get",value:e=>n.request({url:e,method:"GET"})},{key:"request",value:e=>{return"function"==typeof fetch?(async e=>(e=await fetch(e.url,{method:e.method||"GET",cache:"no-cache",headers:e.headers,body:e.body}),Promise.resolve(e.text())))(e):(r=e,new Promise((e,t)=>{let n=new XMLHttpRequest;n.open(r.method||"GET",r.url),r.headers&&Object.keys(r.headers).forEach(e=>{n.setRequestHeader(e,r.headers[e])}),n.onload=()=>{200<=n.status&&n.status<300?e(n.response):t(n.statusText)},n.onerror=()=>t(n.statusText),n.send(r.body)}));var r}}]),n})(),f=(()=>{function e(){i(this,e)}return c(e,null,[{key:"nameAndVersion",value:function(){let e=navigator.userAgent,t,n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?"IE "+((t=/\brv[ :]+(\d+)/g.exec(e)||[])[1]||""):"Chrome"===n[1]&&null!=(t=e.match(/\b(OPR|Edge)\/(\d+)/))?t.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=e.match(/version\/(\d+)/i))&&n.splice(1,1,t[1]),n.join(" "))}},{key:"isMobile",value:function(){return"ontouchstart"in s||0{function e(){i(this,e)}return c(e,null,[{key:"prefix",value:function(){return"__".concat("pmpx","_")}},{key:"set",value:function(e,t,n){var r,i=3{function e(){i(this,e)}return c(e,null,[{key:"getParameterByName",value:function(e,t){t=t||s.location.href,e=e.replace(/[\[\]]/g,"\\$&");e=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)","i").exec(t);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null}},{key:"externalHost",value:function(e){return e.hostname!==location.hostname&&0===e.protocol.indexOf("http")}}]),e})(),g=(()=>{let t={};function e(){i(this,e)}return c(e,null,[{key:"amount",value:function(){return t.revenue_per_lead||0}},{key:"toJSON",value:function(){return t}},{key:"pullFromServer",value:function(){p.get("https://api.promedia.com/lead-revenue/?property_id="+l.preset_id).then(function(e){e=e.data||"";try{e=JSON.parse(e),Object.keys(e).length&&(t={...e})}catch(e){}})}}]),e})(),h=(()=>{function r(e,t,n){i(this,r),this.params=[],this.event=e,this.timestamp=t,this.optional=p.optionalData(n),this.buildParams(),this.send(),"function"==typeof o[e]&&o[e]()}return c(r,[{key:"buildParams",value:function(){var e,t=this.getAttribute();for(e in t)t.hasOwnProperty(e)&&this.setParam(e,t[e](e))}},{key:"getAttribute",value:function(){let e=this;return n({id:function(){return l.id()},uid:function(){return m.get("uid")},sid:function(){return m.get("sid")},ev:function(){return e.event},ed:function(){return e.optional},v:function(){return l.version},dl:function(){return s.location.href},rl:function(){return u.referrer},ts:function(){return e.timestamp},de:function(){return u.characterSet},sr:function(){return s.screen.width+"x"+s.screen.height},vp:function(){return s.innerWidth+"x"+s.innerHeight},cd:function(){return s.screen.colorDepth},dt:function(){return u.title},bn:function(){return f.nameAndVersion()},md:function(){return f.isMobile()},ua:function(){return f.userAgent()},tz:function(){return(new Date).getTimezoneOffset()},lng:function(){return navigator.language},utm_source:function(e){return m.getUtm(e)},utm_medium:function(e){return m.getUtm(e)},utm_term:function(e){return m.getUtm(e)},utm_content:function(e){return m.getUtm(e)},utm_campaign:function(e){return m.getUtm(e)}},l.params)}},{key:"setParam",value:function(e,t){p.isPresent(t)?this.params.push("".concat(e,"=").concat(encodeURIComponent(t))):this.params.push("".concat(e,"="))}},{key:"send",value:function(){s.navigator.sendBeacon?this.sendBeacon():this.sendImage()}},{key:"sendBeacon",value:function(){s.navigator.sendBeacon(this.getSourceUrl())}},{key:"sendImage",value:function(){this.img=u.createElement("img"),this.img.src=this.getSourceUrl(),this.img.style.display="none",this.img.width="1",this.img.height="1",u.getElementsByTagName("body")[0].appendChild(this.img)}},{key:"getSourceUrl",value:function(){return"".concat("https://tk.leadlabs.tv/tr/71u2cr.gif","?").concat(this.params.join("&"))}}]),r})();if(p.isPresent(d.getParameterByName("pmxrd"))){var y=d.getParameterByName("pmxrd"),[y,e,v]=atob(y).split(";");m.set("uid",y,1051200),m.set("sid",e),m.set("propid",v)}else{m.exists("uid")?m.set("uid",m.get("uid"),1051200):m.set("uid",p.guid(),1051200);let e=!m.exists("sid");y=["pid","source_campaign_id","gclid"];if(!e)for(var b of["utm_campaign"])p.isPresent(d.getParameterByName(b))&&m.getUtm(b)!==d.getParameterByName(b)&&(e=!0);if(!e)for(var x of y)p.isPresent(d.getParameterByName(x))&&m.getSEM(x)!==d.getParameterByName(x)&&(e=!0);e&&(m.delete("propid"),m.set("sid",p.guid()))}m.setUtms(),m.setSEM(),o.process=function(e,t,n){if("init"===e){l.preset_id=t,g.pullFromServer();let e="https://tk.leadlabs.tv/api/custom-tags/?id="+l.preset_id;e=e.replace(" ",""),p.get(e).then(function(e){var t=u.createElement("div"),n=(-1 script"));for(let e=0;e