(()=>{(()=>{var vt={3156:function(b,T,_){(function(N,O){b.exports=T=O()})(this,function(){var N=N||function(O,x){var I;if(typeof window!="undefined"&&window.crypto&&(I=window.crypto),typeof self!="undefined"&&self.crypto&&(I=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(I=globalThis.crypto),!I&&typeof window!="undefined"&&window.msCrypto&&(I=window.msCrypto),!I&&typeof _.g!="undefined"&&_.g.crypto&&(I=_.g.crypto),!I)try{I=_(477)}catch(i){}var B=function(){if(I){if(typeof I.getRandomValues=="function")try{return I.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof I.randomBytes=="function")try{return I.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},q=Object.create||function(){function i(){}return function(h){var v;return i.prototype=h,v=new i,i.prototype=null,v}}(),Y={},z=Y.lib={},J=z.Base=function(){return{extend:function(i){var h=q(this);return i&&h.mixIn(i),(!h.hasOwnProperty("init")||this.init===h.init)&&(h.init=function(){h.$super.init.apply(this,arguments)}),h.init.prototype=h,h.$super=this,h},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var h in i)i.hasOwnProperty(h)&&(this[h]=i[h]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),M=z.WordArray=J.extend({init:function(i,h){i=this.words=i||[],h!=x?this.sigBytes=h:this.sigBytes=i.length*4},toString:function(i){return(i||U).stringify(this)},concat:function(i){var h=this.words,v=i.words,y=this.sigBytes,R=i.sigBytes;if(this.clamp(),y%4)for(var A=0;A<R;A++){var G=v[A>>>2]>>>24-A%4*8&255;h[y+A>>>2]|=G<<24-(y+A)%4*8}else for(var $=0;$<R;$+=4)h[y+$>>>2]=v[$>>>2];return this.sigBytes+=R,this},clamp:function(){var i=this.words,h=this.sigBytes;i[h>>>2]&=4294967295<<32-h%4*8,i.length=O.ceil(h/4)},clone:function(){var i=J.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var h=[],v=0;v<i;v+=4)h.push(B());return new M.init(h,i)}}),K=Y.enc={},U=K.Hex={stringify:function(i){for(var h=i.words,v=i.sigBytes,y=[],R=0;R<v;R++){var A=h[R>>>2]>>>24-R%4*8&255;y.push((A>>>4).toString(16)),y.push((A&15).toString(16))}return y.join("")},parse:function(i){for(var h=i.length,v=[],y=0;y<h;y+=2)v[y>>>3]|=parseInt(i.substr(y,2),16)<<24-y%8*4;return new M.init(v,h/2)}},k=K.Latin1={stringify:function(i){for(var h=i.words,v=i.sigBytes,y=[],R=0;R<v;R++){var A=h[R>>>2]>>>24-R%4*8&255;y.push(String.fromCharCode(A))}return y.join("")},parse:function(i){for(var h=i.length,v=[],y=0;y<h;y++)v[y>>>2]|=(i.charCodeAt(y)&255)<<24-y%4*8;return new M.init(v,h)}},g=K.Utf8={stringify:function(i){try{return decodeURIComponent(escape(k.stringify(i)))}catch(h){throw new Error("Malformed UTF-8 data")}},parse:function(i){return k.parse(unescape(encodeURIComponent(i)))}},E=z.BufferedBlockAlgorithm=J.extend({reset:function(){this._data=new M.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=g.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var h,v=this._data,y=v.words,R=v.sigBytes,A=this.blockSize,G=A*4,$=R/G;i?$=O.ceil($):$=O.max(($|0)-this._minBufferSize,0);var V=$*A,W=O.min(V*4,R);if(V){for(var Q=0;Q<V;Q+=A)this._doProcessBlock(y,Q);h=y.splice(0,V),v.sigBytes-=W}return new M.init(h,W)},clone:function(){var i=J.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),D=z.Hasher=E.extend({cfg:J.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var h=this._doFinalize();return h},blockSize:512/32,_createHelper:function(i){return function(h,v){return new i.init(v).finalize(h)}},_createHmacHelper:function(i){return function(h,v){return new j.HMAC.init(i,v).finalize(h)}}}),j=Y.algo={};return Y}(Math);return N})},2316:function(b,T,_){(function(N,O){b.exports=T=O(_(3156))})(this,function(N){return function(O){var x=N,I=x.lib,B=I.WordArray,q=I.Hasher,Y=x.algo,z=[],J=[];(function(){function U(D){for(var j=O.sqrt(D),i=2;i<=j;i++)if(!(D%i))return!1;return!0}function k(D){return(D-(D|0))*4294967296|0}for(var g=2,E=0;E<64;)U(g)&&(E<8&&(z[E]=k(O.pow(g,.5))),J[E]=k(O.pow(g,.3333333333333333)),E++),g++})();var M=[],K=Y.SHA256=q.extend({_doReset:function(){this._hash=new B.init(z.slice(0))},_doProcessBlock:function(U,k){for(var g=this._hash.words,E=g[0],D=g[1],j=g[2],i=g[3],h=g[4],v=g[5],y=g[6],R=g[7],A=0;A<64;A++){if(A<16)M[A]=U[k+A]|0;else{var G=M[A-15],$=(G<<25|G>>>7)^(G<<14|G>>>18)^G>>>3,V=M[A-2],W=(V<<15|V>>>17)^(V<<13|V>>>19)^V>>>10;M[A]=$+M[A-7]+W+M[A-16]}var Q=h&v^~h&y,et=E&D^E&j^D&j,rt=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),Z=(h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25),nt=R+Z+Q+J[A]+M[A],ot=rt+et;R=y,y=v,v=h,h=i+nt|0,i=j,j=D,D=E,E=nt+ot|0}g[0]=g[0]+E|0,g[1]=g[1]+D|0,g[2]=g[2]+j|0,g[3]=g[3]+i|0,g[4]=g[4]+h|0,g[5]=g[5]+v|0,g[6]=g[6]+y|0,g[7]=g[7]+R|0},_doFinalize:function(){var U=this._data,k=U.words,g=this._nDataBytes*8,E=U.sigBytes*8;return k[E>>>5]|=128<<24-E%32,k[(E+64>>>9<<4)+14]=O.floor(g/4294967296),k[(E+64>>>9<<4)+15]=g,U.sigBytes=k.length*4,this._process(),this._hash},clone:function(){var U=q.clone.call(this);return U._hash=this._hash.clone(),U}});x.SHA256=q._createHelper(K),x.HmacSHA256=q._createHmacHelper(K)}(Math),N.SHA256})},116:()=>{(function(b,T){"use strict";b=b||"docReady",T=T||window;var _=[],N=!1,O=!1;function x(){if(!N){N=!0;for(var B=0;B<_.length;B++)_[B].fn.call(window,_[B].ctx);_=[]}}function I(){document.readyState==="complete"&&x()}T[b]=function(B,q){if(typeof B!="function")throw new TypeError("callback for docReady(fn) must be a function");if(N){setTimeout(function(){B(q)},1);return}else _.push({fn:B,ctx:q});document.readyState==="complete"||!document.attachEvent&&document.readyState==="interactive"?setTimeout(x,1):O||(document.addEventListener?(document.addEventListener("DOMContentLoaded",x,!1),window.addEventListener("load",x,!1)):(document.attachEvent("onreadystatechange",I),window.attachEvent("onload",x)),O=!0)}})("docReady",window)},477:()=>{}},it={};function F(b){var T=it[b];if(T!==void 0)return T.exports;var _=it[b]={exports:{}};return vt[b].call(_.exports,_,_.exports,F),_.exports}F.n=b=>{var T=b&&b.__esModule?()=>b.default:()=>b;return F.d(T,{a:T}),T},F.d=(b,T)=>{for(var _ in T)F.o(T,_)&&!F.o(b,_)&&Object.defineProperty(b,_,{enumerable:!0,get:T[_]})},F.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(b){if(typeof window=="object")return window}}(),F.o=(b,T)=>Object.prototype.hasOwnProperty.call(b,T);var It={};(()=>{"use strict";var b=F(2316),T=F.n(b);const _=document,N=null,O=()=>{const r=_.createElement("a");return r.href=N.location,r},x=(r,e)=>{const t=_.createElement("img");return t.height=1,t.width=1,t.style.display="none",t.src=r,t.onload=e,t.alt="",_.body.appendChild(t)},I=r=>{const e=_.createElement("iframe");return e.width=1,e.height=1,e.style.display="none",e.src=r,_.body.appendChild(e)},B=(r,e=!0)=>{const t=_.createElement("script");return t.type="text/javascript",t.src=r,t.async=e,_.body.appendChild(t)},q={img:x,script:B,iframe:I},Y=(r,e)=>{e||(e=window.location.href),r=r.replace(/[\[\]]/g,"\\$&");let t=new RegExp("[?&]"+r+"(=([^&#]*)|&|#|$)"),n=t.exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},z=r=>{let e="_au_"+r+"=",n=decodeURIComponent(document.cookie).split(";");for(let s=0;s<n.length;s++){let l=n[s];for(;l.charAt(0)==" ";)l=l.substring(1);if(l.indexOf(e)==0)return l.substring(e.length,l.length)}return null},J=(r,e,t)=>(parseInt(z(r))||0)+e<t,M=r=>{const e=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i;let n=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,s=r.split("."),l=s[s.length-1];(l.length>4||l==="com"||l==="org"||l==="net")&&(n=e);let f=r.match(n);return f?f[0]:r},K=(r,e)=>{document.cookie="_au_"+r+"="+e+"; domain="+M(document.location.hostname)+"; path=/; max-age=31536000"};function U(r){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");r||(r=Math.floor(Math.random()*e.length));let t="";for(let n=0;n<r;n++)t+=e[Math.floor(Math.random()*e.length)];return t}function k(){const r=Math.round(Date.now()/1e3);return"AU1S-0100-"+String(r).padStart(12,"0")+"-"+U(8)+"-"+U(4)}function g(r,e){let t=[];try{if(typeof e.featurePolicy=="undefined")return t;"browsingTopics"in e&&e.featurePolicy.allowsFeature("browsing-topics")&&t.push("BT"),"joinAdInterestGroup"in r.navigator&&e.featurePolicy.allowsFeature("join-ad-interest-group")&&t.push("JI"),"runAdAuction"in r.navigator&&e.featurePolicy.allowsFeature("run-ad-auction")&&t.push("RA"),e.featurePolicy.allowsFeature("attribution-reporting")&&t.push("AR")}catch(n){console.error(n)}return t}function E(r){function e(m,p){var S,w,P,L,C;return P=m&2147483648,L=p&2147483648,S=m&1073741824,w=p&1073741824,C=(m&1073741823)+(p&1073741823),S&w?C^2147483648^P^L:S|w?C&1073741824?C^3221225472^P^L:C^1073741824^P^L:C^P^L}function t(m,p,S,w,P,L,C){return m=e(m,e(e(p&S|~p&w,P),C)),e(m<<L|m>>>32-L,p)}function n(m,p,S,w,P,L,C){return m=e(m,e(e(p&w|S&~w,P),C)),e(m<<L|m>>>32-L,p)}function s(m,p,S,w,P,L,C){return m=e(m,e(e(p^S^w,P),C)),e(m<<L|m>>>32-L,p)}function l(m,p,S,w,P,L,C){return m=e(m,e(e(S^(p|~w),P),C)),e(m<<L|m>>>32-L,p)}function f(m){var p="",S="",w;for(w=0;3>=w;w++)S=m>>>8*w&255,S="0"+S.toString(16),p+=S.substr(S.length-2,2);return p}var a=[],X,tt,gt,pt,o,u,c,d;for(r=function(m){m=m.replace(/\r\n/g,`
`);for(var p="",S=0;S<m.length;S++){var w=m.charCodeAt(S);128>w?p+=String.fromCharCode(w):(127<w&&2048>w?p+=String.fromCharCode(w>>6|192):(p+=String.fromCharCode(w>>12|224),p+=String.fromCharCode(w>>6&63|128)),p+=String.fromCharCode(w&63|128))}return p}(r),a=function(m){var p,S=m.length;p=S+8;for(var w=16*((p-p%64)/64+1),P=Array(w-1),L=0,C=0;C<S;)p=(C-C%4)/4,L=C%4*8,P[p]|=m.charCodeAt(C)<<L,C++;return p=(C-C%4)/4,P[p]|=128<<C%4*8,P[w-2]=S<<3,P[w-1]=S>>>29,P}(r),o=1732584193,u=4023233417,c=2562383102,d=271733878,r=0;r<a.length;r+=16)X=o,tt=u,gt=c,pt=d,o=t(o,u,c,d,a[r+0],7,3614090360),d=t(d,o,u,c,a[r+1],12,3905402710),c=t(c,d,o,u,a[r+2],17,606105819),u=t(u,c,d,o,a[r+3],22,3250441966),o=t(o,u,c,d,a[r+4],7,4118548399),d=t(d,o,u,c,a[r+5],12,1200080426),c=t(c,d,o,u,a[r+6],17,2821735955),u=t(u,c,d,o,a[r+7],22,4249261313),o=t(o,u,c,d,a[r+8],7,1770035416),d=t(d,o,u,c,a[r+9],12,2336552879),c=t(c,d,o,u,a[r+10],17,4294925233),u=t(u,c,d,o,a[r+11],22,2304563134),o=t(o,u,c,d,a[r+12],7,1804603682),d=t(d,o,u,c,a[r+13],12,4254626195),c=t(c,d,o,u,a[r+14],17,2792965006),u=t(u,c,d,o,a[r+15],22,1236535329),o=n(o,u,c,d,a[r+1],5,4129170786),d=n(d,o,u,c,a[r+6],9,3225465664),c=n(c,d,o,u,a[r+11],14,643717713),u=n(u,c,d,o,a[r+0],20,3921069994),o=n(o,u,c,d,a[r+5],5,3593408605),d=n(d,o,u,c,a[r+10],9,38016083),c=n(c,d,o,u,a[r+15],14,3634488961),u=n(u,c,d,o,a[r+4],20,3889429448),o=n(o,u,c,d,a[r+9],5,568446438),d=n(d,o,u,c,a[r+14],9,3275163606),c=n(c,d,o,u,a[r+3],14,4107603335),u=n(u,c,d,o,a[r+8],20,1163531501),o=n(o,u,c,d,a[r+13],5,2850285829),d=n(d,o,u,c,a[r+2],9,4243563512),c=n(c,d,o,u,a[r+7],14,1735328473),u=n(u,c,d,o,a[r+12],20,2368359562),o=s(o,u,c,d,a[r+5],4,4294588738),d=s(d,o,u,c,a[r+8],11,2272392833),c=s(c,d,o,u,a[r+11],16,1839030562),u=s(u,c,d,o,a[r+14],23,4259657740),o=s(o,u,c,d,a[r+1],4,2763975236),d=s(d,o,u,c,a[r+4],11,1272893353),c=s(c,d,o,u,a[r+7],16,4139469664),u=s(u,c,d,o,a[r+10],23,3200236656),o=s(o,u,c,d,a[r+13],4,681279174),d=s(d,o,u,c,a[r+0],11,3936430074),c=s(c,d,o,u,a[r+3],16,3572445317),u=s(u,c,d,o,a[r+6],23,76029189),o=s(o,u,c,d,a[r+9],4,3654602809),d=s(d,o,u,c,a[r+12],11,3873151461),c=s(c,d,o,u,a[r+15],16,530742520),u=s(u,c,d,o,a[r+2],23,3299628645),o=l(o,u,c,d,a[r+0],6,4096336452),d=l(d,o,u,c,a[r+7],10,1126891415),c=l(c,d,o,u,a[r+14],15,2878612391),u=l(u,c,d,o,a[r+5],21,4237533241),o=l(o,u,c,d,a[r+12],6,1700485571),d=l(d,o,u,c,a[r+3],10,2399980690),c=l(c,d,o,u,a[r+10],15,4293915773),u=l(u,c,d,o,a[r+1],21,2240044497),o=l(o,u,c,d,a[r+8],6,1873313359),d=l(d,o,u,c,a[r+15],10,4264355552),c=l(c,d,o,u,a[r+6],15,2734768916),u=l(u,c,d,o,a[r+13],21,1309151649),o=l(o,u,c,d,a[r+4],6,4149444226),d=l(d,o,u,c,a[r+11],10,3174756917),c=l(c,d,o,u,a[r+2],15,718787259),u=l(u,c,d,o,a[r+9],21,3951481745),o=e(o,X),u=e(u,tt),c=e(c,gt),d=e(d,pt);return(f(o)+f(u)+f(c)+f(d)).toLowerCase()}const D=60*1e3,j=60*D,i=24*j;function h(r){var e="au/test";try{return r.localStorage.setItem(e,e),r.localStorage.removeItem(e),!0}catch(t){return!1}}class v{constructor(e){this.w=e,this.now=1*new Date,this.useCookie=!h(this.w)}getCookie(e){return z(e)}get(e,t=!1){if(this.useCookie||t)return this.getCookie(e);let n=this.w.localStorage.getItem("au/"+e);if(n){if(n=JSON.parse(n),n.e>this.now)return n.v;this.w.localStorage.removeItem("au/"+e)}return null}setCookie(e,t,n=D){K(e,t)}set(e,t,n=D,s=!1){this.useCookie||s?this.setCookie(e,t,n):this.w.localStorage.setItem("au/"+e,JSON.stringify({v:t,e:this.now+n}))}}const y=v,R=null,A=null,G="G-FVWZ0RM4DH",$=null,V="https://a.ad.gt",W="https://p.ad.gt",Q="https://pixels.ad.gt",et="https://seg.ad.gt",rt="https://ids.ad.gt";function Z(r,e,t,n){r.au_seg=t,(n||[]).forEach(l=>l(r,e,t.segments));const s=new CustomEvent("auSegReady",{detail:t});e.dispatchEvent(s)}function nt(r,e,t){const n=r.apntag;if(typeof n!="undefined"&&typeof n.setPageOpts=="function"){let s={};typeof n.requests!="undefined"&&typeof n.requests.keywords!="undefined"&&(s=n.requests.keywords),s.AUDIGENT=(s.AUDIGENT||[]).concat(t),n.setPageOpts({keywords:s})}}function ot(r,e,t){r.DTEvent.getEventPromise("dt-connatix-api-ready").then(function([n,s]){n.setMacros({AU_SEG:t})})}function ut(r,e,t){r.googletag=r.googletag||{},r.googletag.cmd=r.googletag.cmd||[],r.googletag.cmd.push(function(){r.googletag.pubads().setTargeting("AU_SEG",t)})}function Rt(r,e,t){try{if(r.self!==r.top){ut(r.top,e,t);return}}catch(n){}ut(r,e,t)}function Lt(r,e,t){e.cookie="au_seg="+t.join("|")+"; domain="+extractDomain(r.location.hostname)+"; path=/; max-age=86400; samesite=None; secure"}function Pt(r,e,t){typeof r.setTargeting=="function"?r.setTargeting("AU_SEG",t):r.console.log("[Audigent] cannot find window.setTargeting function")}var yt=Object.defineProperty,mt=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,dt=(r,e,t)=>e in r?yt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,H=(r,e)=>{for(var t in e||(e={}))wt.call(e,t)&&dt(r,t,e[t]);if(ct)for(var t of ct(e))At.call(e,t)&&dt(r,t,e[t]);return r},st=(r,e)=>mt(r,_t(e));const at=window,lt=document,ht={"og:title":"title","og:description":"description","og:image":"image","og:url":"url","og:type":"type","og:name":"name","og:locale":"locale"},ft={description:"description",keywords:"keywords"},Et="meta[name='audigent:tags']";class St{constructor(e){const{auvars:t,decoratorTarget:n,taggerStrategy:s}=e||{};this.w=at,this.u=lt.location||at.location,this.d=lt,this.auvars=t,this.dataStore=new y(at),this.customOptions={},this.isIndexPage=this.u.pathname==="/",this.customTags=[],this.customAttributes={},this.userDefinedTags=[],this.userDefinedAttributes={},this.internalLinks=[],this.GlobalHandlers={},this.randNum=Math.random(),this.decoratorTarget=n||(this.isIndexPage?.95:.97),this.u.hostname.toLowerCase().endsWith("lnk.to")?this.taggerStrategy="FULL_PATH":this.taggerStrategy=s||this.auvars.tgs||"NONE",this.psf=g(this.w,this.d),this.setupSessionId(),this.setupHadron(),this.setupGA4()}docReady(){this.customOptions.autoPageView!==!1&&this.sendPageView(),this.ListenerIterator("a",this.clickHandler),this.w.addEventListener("hashchange",()=>{this.sendOffsiteClick({url:this.u.href}),this.sendPageView(),this.pixels()})}clearOptions(){this.customOptions={}}setOptions(e){const{options:t}=e||{};return typeof t=="object"?(this.customOptions=H(H({},this.customOptions),t),!0):!1}observeDom(e,t,n={childList:!0}){const s=window.MutationObserver||window.WebKitMutationObserver;if(!(!e||e.nodeType!==1))if(s){const l=new s(t);return l.observe(e,n),l}else window.addEventListener&&(e.addEventListener("DOMNodeInserted",t,!1),e.addEventListener("DOMNodeRemoved",t,!1))}push(e,t,n){if(typeof e=="string")return t&&t!==this.auvars.p?(console.warn("[Audigent] skip .push("+e+"), p is not a match"),!1):(console.warn('[Audigent] deprecated use of "push": please use .push( object )'),(this[e]||(()=>!1)).call(this,n),!0);if(e&&typeof e=="object"){const{fn:s,category:l,partnerId:f}=e,a=s||l;if(f&&f!==this.auvars.p)return console.warn("[Audigent] skip .push("+a+"), partnerId is not a match"),!1;if(s){const X=e.args;return Array.isArray(X)?(X.map(tt=>(this[a]||(()=>!1)).call(this,tt)),!0):((this[a]||(()=>!1)).call(this,X),!0)}return(this[a]||(()=>!1)).call(this,e),!0}return console.warn("[Audigent] could not execute the required command: please check your syntax"),!1}setupHadron(){var e;const t=(e=this.w.hadron)==null?void 0:e.id;this.auvars.h=t||null}getAudigentId(e){if(e instanceof Function)return e(this.auvars.a),this.auvars.a;const{callback:t}=e||{};return t instanceof Function&&t(this.auvars.a),this.auvars.a}setupSessionId(){let e=this.dataStore.get("sid");e==null&&(e=k()),this.auvars.s=e,this.dataStore.set("sid",e,30*D)}getTaggerComponents(){return null}setupTaggerId(){const e=this.u.hostname.toLowerCase(),t=this.getTags();let n=this.getTaggerComponents();Array.isArray(n)&&n.length>0||(this.taggerStrategy=="FULL_PATH"?n=[e,this.u.pathname,this.auvars.p]:Array.isArray(t)&&t.length>0?n=[e,"["+t.join(",").toLowerCase()+"]",this.auvars.p]:n=[e,"/",this.auvars.p]);const s=E(n.join("")).toLowerCase();return this.auvars.t=s,this.dataStore.set("tid",s,j),s}getMetaAttributes(){const e=this.d.querySelectorAll("meta");let t={url:this.u.href,title:this.d.title};for(const n of e){let s;const l=n.getAttribute("property");if(l!==void 0)l in ht&&(s=ht[l]);else{const f=n.getAttribute("name");f in ft&&(s=ft[f])}if(s!==void 0){const f=n.getAttribute("content");f!==void 0&&typeof f=="string"&&(s==="keywords"?t[s]=f.split(",").map(a=>a.trim()).filter(a=>a.length>0):(!(s in t)||t[s].length<f.length)&&(t[s]=f))}}return t}getCustomAttributes(){return{}}getAttributes(){return H(H(H(H({},this.customAttributes),this.userDefinedAttributes),this.getCustomAttributes()),this.getMetaAttributes())}clearAttributes(){this.userDefinedAttributes={}}setAttributes(e){const{attributes:t}=e||{};return typeof t=="object"?(this.userDefinedAttributes=t,!0):!1}addAttributes(e){const{attributes:t}=e||{};return typeof t=="object"?(this.userDefinedAttributes=H(H({},this.userDefinedAttributes),t),!0):!1}getMetaTags(){const e=document.head.querySelectorAll(Et)[0];return e?e.content.split("|").map(t=>t.trim()).filter(t=>t.length>0).map(t=>(this.u.hostname+" > "+t).toUpperCase()):[]}getCustomTags(){return[]}getTags(){return[...this.customTags,...this.userDefinedTags,...this.getCustomTags(),...this.getMetaTags()].filter(t=>typeof t=="string"||t instanceof String).map(t=>t.replace(/,/g,"")).map(t=>t.trim()).filter(t=>t.length>0).map(t=>t.toUpperCase())}clearTags(){this.userDefinedTags=[]}setTags(e){const{tags:t}=e||{};return Array.isArray(t)?(this.userDefinedTags=t,!0):typeof t=="string"?(this.userDefinedTags=[t],!0):!1}addTags(e){const{tags:t}=e||{};return Array.isArray(t)?(this.userDefinedTags=[...t,...this.userDefinedTags],!0):typeof t=="string"?(this.userDefinedTags=[t,...this.userDefinedTags],!0):!1}writeDecoratorRecord(e){const{tags:t,decor_dict:n,attributes:s}=e;this.customTags=[...this.customTags,...t||[]],this.customAttributes=H(H(H({},this.customAttributes),n||{}),s||{})}sendDecoratorRecord(){if(!(this.randNum>=this.decoratorTarget))return null;const t=this.getAttributes(),n=this.getTags(),s=st(H({},t),{tags:n.join(),tagger_id:this.auvars.t,partner_id:this.auvars.p});let l=new XMLHttpRequest,f=`${W}/api/v1/dec`;return l.open("POST",f,!0),l.setRequestHeader("Content-type","application/json"),l.send(JSON.stringify(s)),l}setupGA4(){if(this.auvars.ga4===!0)try{let e=document.createElement("script");e.src="https://www.googletagmanager.com/gtag/js?id="+G+"&l=audDataLayer",e.async=!0,document.head.appendChild(e);const t=this.w;typeof this.w.audGtag!="function"&&(this.w.audDataLayer=this.w.audDataLayer||[],this.w.audGtag=function(){t.audDataLayer.push(arguments)}),audGtag("js",new Date),audGtag("config",G,{user_id:this.auvars.a,dimension3:this.auvars.p,dimension4:this.u.hostname,dimension5:this.u.pathname,groups:"audigent",send_page_view:!1})}catch(e){console.error(e)}}ListenerIterator(e,t){Array.prototype.forEach.call(this.d.querySelectorAll(e),n=>{this.ListenerAttacher({input:n,method:t})})}ListenerAttacher(e){const{input:t,method:n}=e;t!=null&&(t.addEventListener?t.addEventListener("mousedown",n.bind(this),!1):t.attachEvent&&t.attachEvent("mousedown",n))}GlobalListenerHandler(e){this.GlobalHandlers[e.type].forEach(t=>{if(e.target.matches(t.selector))t.method(e);else{let n=e.target,s=!1;for(;n.parentElement&&!s;)n=n.parentElement,s=n.matches(t.selector),s&&t.method(st(H({},e),{target:n}))}})}GlobalListenerAttacher(e,t,n){typeof e=="string"&&(e=[e]),e.forEach(s=>{this.GlobalHandlers[s]=this.GlobalHandlers[s]||[],this.GlobalHandlers[s].push({selector:t,method:n}),document.addEventListener?(document.removeEventListener(s,window.au.l),document.addEventListener(s,window.au.l)):document.attachEvent&&(document.detachEvent(s,window.au.l),document.attachEvent(s,window.au.l))})}sendOffsiteClick(e){const{url:t}=e;x(`${V}/api/v1/off-site-click/${this.auvars.p}?tagger_id=${this.auvars.t}&url=${t}`)}clickHandler(e){let t=e.currentTarget.getAttribute("href");t!==null&&this.internalLinks.includes(this.u.hostname)&&(this.sendOffsiteClick({url:t}),this.sendPageView())}sendUserBehaviour(e){const{action:t}=e,n={click_url:t,tagger_id:this.auvars.t,audigent_id:this.auvars.a,partner_id:this.auvars.p},s=new Blob([JSON.stringify(n)],{type:"application/json"});this.w.navigator.sendBeacon(`${W}/api/v1/ubh`,s)}behavior(e){const t=encodeURIComponent(`${this.u.protocol}//${this.u.hostname}${this.u.pathname}__audigent-behavior-${e.action}${this.u.search}${this.u.hash}`);this.sendOffsiteClick({url:t}),this.sendGAEvent({eventCategory:"audigent-behavior",eventAction:e.action,eventLabel:this.auvars.t})}sendEvent(e){let{event:t,events:n,type:s}=e;if(t=t||n,!t){if(!s)return null;t=H({},e),delete t.category,delete t.partnerId}const l={tagger_id:this.auvars.t,partner_id:this.auvars.p,audigent_id:this.auvars.a,events:Array.isArray(t)?t:[t]};let f=new XMLHttpRequest,a=`${W}/api/v1/event`;return f.open("POST",a,!0),f.setRequestHeader("Content-type","application/json"),f.send(JSON.stringify(l)),""}sendGAEvent(e){const{eventCategory:t,eventAction:n,eventLabel:s,skipSQS:l}=e;this.auvars.ga4===!0&&audGtag("event",t,{eventAction:n,eventLabel:s}),l||this.sendEvent({event:{type:t,eventAction:n,eventLabel:s}})}sendConsent(e){const{consented:t,consentType:n,consentString:s}=e,l="consent_"+n.toLowerCase(),f=this.dataStore.get("consent_"+e.consentType.toLowerCase());if(f&&s==f)return;const a={audigent_id:this.auvars.a,tagger_id:this.auvars.t,partner_id:this.auvars.p,consented:t,consent_type:n,consent_string:s},X=new Blob([JSON.stringify(a)],{type:"application/json"});return this.w.navigator.sendBeacon(`${W}/api/v1/con`,X)&&this.dataStore.set(l,s||"n/a",i),""}pixels(){const e=`${Q}/api/v1/getpixels?tagger_id=${this.auvars.t}&url=${encodeURIComponent(this.u.href)}&code='none'`;B(e,!0)}tags(e){return!1}conversion(e){return!1}sendPageView(e){this.randNum=Math.random();const t=this.setupTaggerId(),n=1*new Date,s={event_timestamp:n,url:this.u.href,referrer:this.d.referrer,partner_id:this.auvars.p,tagger_id:this.auvars.t,audigent_id:this.auvars.a,session_id:this.auvars.s,p_s_f:this.psf};this.auvars.h&&(s.hadron_id=this.auvars.h);const l=(e==null?void 0:e.data)||{},f={category:"pageView",version:"v2",created_at:n,properties:H(H({},s),l)};let a=new XMLHttpRequest,X=`${V}/api/v1/collect`;a.open("POST",X,!0),a.withCredentials=!0,a.setRequestHeader("Content-type","text/plain"),a.send(this.w.btoa(JSON.stringify(f))),this.pixels(),this.sendDecoratorRecord(),this.auvars.ga4===!0&&(audGtag("set",{dimension7:t,send_to:G}),(this.randNum>=.95||["158"].includes(this.auvars.p.toString())&&this.randNum>=.8||["220"].includes(this.auvars.p.toString())&&this.randNum>=.5)&&audGtag("event","page_view",{dimension7:t,send_to:G}))}beopEvent(e){const t=e.partnerId||this.auvars.p;this.sendEvent({event:st(H({},e.data||{}),{partner_id:t,type:"beop"})})}trackEvent(e){return!1}DispatchEvent(e){const{eventName:t}=e,s=(l=>{if(typeof window.CustomEvent=="function")return new CustomEvent(l);const f={bubbles:!1,cancelable:!1,detail:void 0},a=document.createEvent("CustomEvent");return a.initCustomEvent(l,f.bubbles,f.cancelable,f.detail),a})(t);window.dispatchEvent(s)}optout(){x(`${rt}/api/v1/optout?au_id=${this.auvars.a}`)}segCapture(e,t){const n=(e==null?void 0:e.segments)||[];if(n.length>0&&this.randNum>=.9){const s={tagger_id:this.auvars.t,partner_id:this.auvars.p,audigent_id:this.auvars.a,segment_ids:n.join("|"),is_cached:t},l=new Blob([JSON.stringify(s)],{type:"application/json"});return this.w.navigator.sendBeacon(`${W}/api/v1/segs`,l),!0}return!1}setupInPageTaxonomy(e){const t=this,n=this.dataStore.get("seg");if(n!=null){Z(t.w,t.d,n,e),this.segCapture(n,!0);return}let s=new URL(`${et}/api/v2/segments`);if(s.searchParams.set("url",encodeURIComponent(this.u.href)),s.searchParams.set("partner_id",this.auvars.p),this.auvars.t!==void 0)s.searchParams.set("tagger_id",this.auvars.t);else{const f=this.setupTaggerId();s.searchParams.set("tagger_id",f)}s.searchParams.set("au_id",this.auvars.a);let l=new XMLHttpRequest;l.timeout=1e4,l.onload=function(){if(l.readyState==XMLHttpRequest.DONE&&l.status==200){const f=JSON.parse(l.response);Z(t.w,t.d,f,e),t.dataStore.set("seg",f,j*6),t.segCapture(f,!1)}},l.ontimeout=function(){console.log("[Audigent] Taxonomy Service > Timeout")},l.onerror=function(){console.log("[Audigent] Taxonomy Service > Invalid Response")},l.open("GET",s,!0),l.send()}addUserIdentity(e){if(!e)return!1;const{identityType:t,identityValue:n}=e;if(t===void 0||n===void 0)return!1;if(t==="email"){const s=window.btoa(n);return this.sendEvent({event:{type:"e",value:s}})}else return this.sendEvent({event:{type:"u",[t]:n,identityType:t,identityValue:n}})}addUserEmailAddress(e){if(!e)return!1;const{identityValue:t}=e;if(t===void 0)return!1;let n=t.toLowerCase().trim();if(n.endsWith("@gmail.com")){let l=n.split("@")[0];l=l.split("+")[0],l=l.replace(/\./g,""),n=l+"@gmail.com"}const s=T()(n).toString();return this.addUserIdentity({identityType:"hem_sha256",identityValue:s})}addUserProperty(e){if(!e)return!1;const{propertyName:t,propertyValue:n}=e;return t===void 0||n===void 0?!1:t==="email"?this.addUserIdentity({identityType:"email",identityValue:n}):this.sendEvent({event:{type:"user.property",propertyName:t,propertyValue:n}})}}const bt=St;var Ot=F(116);function Ct(r,e){const t="217";let n=r.au&&Array.isArray(r.au)?[...r.au]:[];r.auvars.autag_objs=[...(r.auvars.autag_objs||[]).filter(s=>s!=="autag"),"autag"],r.au={push:(...s)=>{r.auvars.autag_objs.forEach(l=>Object.values(r[l]||{}).forEach(f=>f.push(...s)))},l:s=>{r.auvars.autag_objs.forEach(l=>Object.values(r[l]||{}).forEach(f=>f.GlobalListenerHandler(s)))},init:()=>{r.auvars[t].hist=r.auvars[t].hist||[];const s=r.auvars[t].hist.slice(-1)[0];r.autag=r.autag||{},(!r.autag[t]||s!==r.location.href)&&(r.auvars[t].hist.push(r.location.href),r.autag[t]=e({auvars:r.auvars[t]}))}},r.au.init(),n.forEach(s=>r.au.push(s))}docReady(()=>window.au.push({category:"docReady"}));class Tt extends bt{constructor(e){super(e),this.tagsReader()}tagsReader(){let e=[];if(this.u.hostname.match(/activebeat.com/gi)){const t=window.CM.meta["Key Interest"];t&&typeof t=="string"&&(e.push(t.toUpperCase()),e=e.map(n=>`ACTIVE BEAT - ${n}`))}this.push({category:"writeDecoratorRecord",tags:e})}}(function(r){Ct(r,function(e){return new Tt(e)})})(window)})()})();})();