/* This software Connector and its source code are the property of Contxtful Technologies Inc. Use of this script is Subject to the terms and conditions of the License Agreement. As a subscriber, you agree that you are solely responsible for providing all appropriate and legally required disclosures pertaining to the use and removal of the Connector(s) and obtain any legally required consents as needed, and you agree that it will defend, indemnify and hold Contxtful Technologies Inc. harmless from and against any and all third-party claims stemming from or related to the use of Tags as provided herein. */ var Contxtful=new __contxtful__; function __contxtful__(){function Sa(a,b){b="https://ad.doubleclick.net/ddm/activity/src="+H.fld;b=b+";type="+H.type;b+=";cat=";target1=";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;gdpr=;gdpr_consent=;ord=1?";let c=b+H.cat1+target1;if(!va)try{wa("GET",c,!0).send()}catch(d){console.log("Contxtful.Api log:",d)}if(33h;h++){var m=g&255;e[k++]=m;g=(g-m)/256}}function d(g){if("undefined"!==typeof g&&g.length)for(var h=0;h{delete I[b]})} function Yb(a,b){return X()?-1!=["TRIGGER","MANUAL","FIRST"].indexOf(a)||-1!=["TRAFFIC"].indexOf(a)&&!b:!0}function t({CtxtEvent:a="NONE",autopost:b=!1,async:c=!0,noRawData:d=!1,dataSize:f=0}){var e,k,g,h,m,n,p,q;if(1!=t.stop&&Yb(a,d)){l.Acq="Y";1==Wa&&"TRIGGER"!=a&&"FIRST"!=a&&(l.Acq="N");"undefined"==typeof t.counter&&(t.counter=0);if(1==Zb)if(t.counter==za-1){if(ra(),"STOP"!=a){t.stop=!0;return}}else if(t.counter>=za)return;1==xb&&(-1!==["FIRST","STOP","TRIGGER","MANUAL"].indexOf(a)||5>t.counter|| 1==yb?Ub():I={});I.ctxtpc=t.counter;l.postCount=t.counter;1==b&&setTimeout(function(){t({autopost:b,noRawData:d,async:c})},250);l.tBrowser=xa();l.other=pa(I);l.uField=pa(Aa);l.cParam=pa(Ba);var w=1E3*((new Date).getTime()-M);if(w<2E3*J||1==d){var C=0;l.ctxtReq=pa(zb);l.eDesc="WEB_"+a+"_POST";0==t.counter?l.key=qa+"_STATS":"RUNTIME"===a?l.eDesc="WEB_RUNTIME":"RUNTIME"!==a&&"FIRST_POST"!==a&&"TRAFFIC"!==a&&r!=D&&(w=w*D/r);l.url="";l.originUrl="";l.uaStr="";if("FIRST"==a||"STOP"==a||5>t.counter||1== yb)l.url=window.location.href,l.originUrl=document.referrer,l.uaStr="NaN";for(var u in l)l[u]=encodeURIComponent(l[u]);if(0==d){l.key="TRAFFIC"==a||"MANUAL"==a?qa+"_"+a:qa+"_STATS";u=function($b){return 0!=$b};var B;var G=0;if(Z.some(u)||sa.some(u)||ta.some(u)){v.sensorsWorking=!0;var aa=1}else v.sensorsWorking=!1,aa=0;u=Ca.some(u)||Da.some(u)||Ea.some(u)?1:0;for(B=G=0;Bac?!0:!1:G>bc?!0:!1;B=u&aa;G=3*(aa+u+B);1== ba&&0==xb&&ra();var ca=f;if("TRIGGER"==a||"MANUAL"==a)ca=D;C="undefined"!==typeof P&&0c;c++)f=a&255,a>>=8,b[c]=f;a=vb(b,d);"undefined"!==typeof a&&T(a);return a}}function N(a, b,c,d=-1){-1!=d?c.AddFloat32Array(a.slice(b,d)):(b!=D&&c.AddFloat32Array(a.slice(b,D)),0!=b&&(b>D&&(b=D),c.AddFloat32Array(a.slice(0,b))))}function dc(){K>J&&(M+=K-J);t({async:ia,CtxtEvent:"RUNTIME",dataSize:0});M=(new Date).getTime();t.counter>=db&&(clearInterval(U),U=null,t({noRawData:!0,async:!0,CtxtEvent:"STOP"}))}function eb(){L=!0;null===U&&1==da&&(M=(new Date).getTime(),xa(),Bb(),100>Na&&!tb(Na)||(Wa=!1,U=setInterval(dc,K)))}function fb(a){!1!==Oa&&(clearTimeout(Oa),Oa=!1);0==r&&(M=(new Date).getTime(), xa(),1==da&&Bb());null==a.acceleration.x&&null==a.acceleration.y&&null==a.acceleration.z&&Q&&(Sa(Math.floor(100*Math.random()),"handleMotionEvent"),Q=!1);null==a.acceleration.x&&null==a.acceleration.y&&null==a.acceleration.z&&1==da?eb():L=!1;var b=gb?-1:1;null!=a.accelerationIncludingGravity?(Z[r]=b*a.accelerationIncludingGravity.x,sa[r]=b*a.accelerationIncludingGravity.y,ta[r]=b*a.accelerationIncludingGravity.z):(Z[r]=0,sa[r]=0,ta[r]=0);null!=a.acceleration?(Za[r]=b*a.acceleration.x,$a[r]=b*a.acceleration.y, ab[r]=b*a.acceleration.z):(Za[r]=0,$a[r]=0,ab[r]=0);null!=a.rotationRate?(Ca[r]=a.rotationRate.alpha*hb,Da[r]=a.rotationRate.beta*hb,Ea[r]=a.rotationRate.gamma*hb):(Ca[r]=0,Da[r]=0,Ea[r]=0);a=(new Date).getTime()-M;"undefined"===typeof ja||isNaN(ja)||(J=1E3*ja);a>J/2&&(D=Pa(r,J/a),ib=!0);r+=1;1==ba&&a>ec&&(a=D,D=r,L=!1,t({async:ia,CtxtEvent:"TRAFFIC",dataSize:r}),D=a,ba=!1);1==ib&&r>=D&&(0==Cb&&(t({async:ia,CtxtEvent:"RUNTIME",dataSize:D}),jb=(new Date).getTime()),M-jb>=K&&(t({async:ia,CtxtEvent:"RUNTIME", dataSize:D}),jb=M),Cb+=1,r=0,ib=!1)}function Pa(a,b,c=!0){a=Math.round(a*b);if(c){c=1;if(!a||a&a-1)for(;c>=1;)d<<=1;b=d}a=c-ay&&(a=y);return a}function Db(a="FIRST"){v.sampling=!0;if("undefined"!=typeof z)if(z.setReceptivity()){if("legacy"===R||Y())ba=!1}else ya()||Eb(),Y()&&(ka=1);"undefined"!==typeof screen&&(I.w=screen.width,I.y=screen.height,I.z=window.devicePixelRatio);Wb(a);r=0;if("DeviceMotionEvent"in window)try{gb&&eb(),window.addEventListener("devicemotion", fb,!1),Q&&(Oa=setTimeout(ra,1E3)),setTimeout(window.removeEventListener,18E5,"devicemotion",fb)}catch(b){console.log("Contxtful.Api.log:",b)}else eb();1==da&&(a=Pa(Xa/1E3,Fb,!1),Ga.SetLength(a),Ha.SetLength(a),Ia.SetLength(a),Ja.SetLength(a),a=Pa(Ya/1E3,Gb,!1),Ka.SetLength(a),La.SetLength(a),document.addEventListener("mousemove",Hb,!1),document.addEventListener("touchmove",Ib,!1),document.addEventListener("mousedown",Jb),document.addEventListener("mouseup",Kb),document.addEventListener("touchstart", Lb),document.addEventListener("touchend",Mb),Nb=setInterval(fc,1E3/Fb),Ob=setInterval(gc,1E3/Gb))}function ra(){Q&&(Sa(Math.floor(100*Math.random()),"Stop"),Q=!1);v.sampling&&(v.sampling=!1,t({noRawData:!0,async:!0,CtxtEvent:"STOP"}),window.removeEventListener("devicemotion",fb),1==da&&(document.removeEventListener("mousemove",Hb,!1),document.removeEventListener("touchmove",Ib,!1),document.removeEventListener("mouseup",Kb),document.removeEventListener("mousedown",Jb),document.removeEventListener("touchend", Mb),document.removeEventListener("touchstart",Lb),clearInterval(Nb),clearInterval(Ob)),null!=U&&(clearInterval(U),U=null),null!=V&&(clearInterval(V),L=!1))}function Eb(){if("undefined"!=typeof z)try{z.callbackInjection("-1",z.getLookAlike())?X()||(Va(),oa(JSON.stringify(z.getLookAlike()))):Pb()}catch(a){Pb()}}function Pb(){Qb++;2>=Qb&&setTimeout(function(){Eb()},500)}function Bb(){ea=[];S=[];fa=[];O=[];ha=[]}function Hb(a){kb=Math.round(a.clientX);lb=Math.round(a.clientY)}function Ib(a){kb=Math.round(a.touches[0].clientX); lb=Math.round(a.touches[0].clientY)}function gc(){Ka.push(kb);La.push(lb)}function Kb(a){S.push(Math.round(a.clientX));fa.push(Math.round(a.clientY));ha.push(a.button);O.push((new Date).getTime());ea.push(Qa.MouseUp)}function Jb(a){S.push(Math.round(a.clientX));fa.push(Math.round(a.clientY));ha.push(a.button);O.push((new Date).getTime());ea.push(Qa.MouseDown)}function Mb(a){S.push(Math.round(a.changedTouches[a.changedTouches.length-1].clientX));fa.push(Math.round(a.changedTouches[a.changedTouches.length- 1].clientY));ha.push(a.changedTouches[a.changedTouches.length-1].identifier);O.push((new Date).getTime());ea.push(Qa.TouchUp)}function Lb(a){S.push(Math.round(a.touches[a.touches.length-1].clientX));fa.push(Math.round(a.touches[a.touches.length-1].clientY));ha.push(a.touches[a.touches.length-1].identifier);O.push((new Date).getTime());ea.push(Qa.TouchDown)}function fc(){var a=window,b="inner";"innerWidth"in window||(b="client",a=document.documentElement||document.body);var c=a[b+"Width"];a=a[b+"Height"]; Ga.push(Math.round(window.pageXOffset));Ha.push(Math.round(window.pageYOffset));Ia.push(Math.round(hc+c));Ja.push(Math.round(ic+a))}var v={cicalls:[],ptim:[],clc:0,sicalls:[]},F=document.currentScript.getAttribute("src");try{var va="true"===(E(F).dry||!1);va&&console.log("Running in dry mode")}catch(a){console.log(a),va=!1}var Q=!1,H={fld:"",type:"",cat1:"",cat2:""};if(Q)try{H.fld=E(F).fld||"",H.type=E(F).type||"",H.cat1=E(F).cat1||"",H.cat2=E(F).cat2||""}catch(a){console.log(a),H.fld="",H.type="", H.cat1="",H.cat2=""}var J=1E3,D=Pa(32*J/1E3,2);class la{constructor(a){this.SetLength(a)}SetLength(a){this.array=new Float32Array(a);this.length=a;this.cursize=this.idx=0}push(a){this.array[this.idx]=a;this.idx=(this.idx+1)%this.length;this.cursize<=this.length&&this.cursize++}resetBuffers(){this.cursize=this.idx=0}read(){if(this.cursizeb;b++){var d=c[b].charCodeAt();if(d<"0".charCodeAt()||d>"9".charCodeAt()&&d<"A".charCodeAt()||d>"Z".charCodeAt()&&d<"a".charCodeAt()||d>"z".charCodeAt()){b=!1;break b}}b=!0}if(b){b="";for(d=0;d4*d-3?d=0:(d=Math.floor(4*d-3),100qb?!tb(qb):!1,da=!0,Oa=!1;v.sampling=!1;K=void 0===K||isNaN(K)?8E3:1E3>=K?1E3:5E3<=K?5E3:8E3;void 0==ma||isNaN(ma)||(K=ma);var Z=new Float32Array(y),sa=new Float32Array(y),ta=new Float32Array(y),Za=new Float32Array(y),$a=new Float32Array(y),ab=new Float32Array(y), Ca=new Float32Array(y),Da=new Float32Array(y),Ea=new Float32Array(y),r=0;l.uaStr="NaN";l.screenW="NaN";l.screenH="NaN";l.color="NaN";l.dpi="NaN";l.ctxtReq=pa(zb);l.lang="NaN";var gb=null,U=null,hc=null,ic=null,kb=null,lb=null,Ga=new la(y),Ha=new la(y),Ia=new la(y),Ja=new la(y),Ka=new la(y),La=new la(y),Xa=x("WindowSize_fov",1E3),Ya=x("WindowSize_pointer",1E3),Fb=x("Freqency_fov",16),Gb=x("Freqency_pointer",16),S=[],fa=[],O=[],ha=[],ea=[],Nb=null,Ob=null,Qa={MouseDown:0,MouseUp:1,TouchDown:2,TouchUp:3}, W=new function(){function a(c,d){var f="Other";/Linux/.test(c)&&(f="Linux");/Windows/.test(c)&&(f="Windows");/Macintosh/.test(c)&&(f="Mac OS X");/iPad/.test(c)&&!/HiPad/.test(c)&&(f="iOS");/iPhone/.test(c)&&(f="iOS");/Android/.test(c)&&(f="Android");/CrOS/.test(c)&&(f="Chrome OS");d&&(/Windows Phone/.test(c)&&(f="Windows Phone"),/Ubuntu/.test(c)&&(f="Ubuntu"),/Fedora/.test(c)&&(f="Fedora"),/Tizen/.test(c)&&(f="Tizen"),/CrKey/.test(c)&&(f="Chromecast"),/FreeBSD/.test(c)&&(f="FreeBSD"),/OpenBSD/.test(c)&& (f="OpenBSD"),/\(BB10;/.test(c)&&(f="BlackBerry OS"),/Web0S/.test(c)&&(f="Web0S"));return f}function b(c,d){var f=a(c,d);f=/Mac OS X|Linux|Windows|Chrome OS|Ubuntu|Fedora|Chromecast|OpenBSD/.test(f);d&&/NetCast|Fuchsia|Andr0id|Android/.test(c)&&(f=!1);return f}return{isMobile:function(c=!0){let d=navigator.userAgent;var f;if(!(f=b(d,c))){let e=/Other|Tizen|OpenBSD|FreeBSD|Web0S/;f=!0;if(/Mobile /.test(d)||e.test(a(d,c))||b(c))f=!1;/iPhone/.test(d)&&(f=!1);/iPad/.test(d)&&(f=!0);c&&(/Mobile Midori|Mobile DuckDuckGo|Mobile Iron/.test(d)&& (f=!0),/NetCast|Fuchsia|Andr0id|; rv:/.test(d)&&(f=!1),/Silk|ARM/.test(d)&&(f=!0),/Quest/.test(d)&&/Mobile/.test(d)&&(f=!0),/\(Linux; Android\)/.test(d)&&(f=!1),/ zh-cn;/.test(d)&&(f=!0))}return f||/http/.test(d)?!1:!0},isApple:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh|Mac OS/.test(navigator.userAgent)}}};v.isMobile=W.isMobile();var z=new function(){function a(e,k={}){var g=!1,h;let m=!1;try{var n=parseInt(e)}catch(u){na("[CONTXTFUL] ERROR: "+u+". Receptivity not an numerical value."), n=-1}-1!=n&&"number"==typeof n&&L&&(L=!1);if("undefined"!==typeof k.M){var p=h="";if("undefined"!==typeof W&&"object"==typeof W)if(W.isMobile())var q=k.M;else q=k.D,m=!0;else q=k.D;"N"==q?(q="No",p="NonReceptive"):(q="Yes",p="Receptive")}else 0>n?(h="",p="NonReceptive",q="No"):33>=n?(h="low",p="NonReceptive",q="No"):(h=66>=n?"average":"premium",p="Receptive",q="Yes");if("undefined"!=typeof contxtful_config){n=contxtful_config.callback||"";var w=contxtful_config.SSP||"GAM"}else n=E(F).callback||"", w=E(F).SSP||"GAM";m&&!mb&&(p="NonReceptive");var C={receptivity:e,ReceptivityState:p,receptivity_range:h,ReceptivityLookalike:q};if("undefined"!==typeof k.RETURN&&!0===k.RETURN)return C;if(""!=n)if(e=n.split("."),5>=e.length)try{if(1==e.length)window[e[0]](C);else if(2==e.length)window[e[0]][e[1]](C);else if(3==e.length)window[e[0]][e[1]][e[2]](C);else if(4==e.length)window[e[0]][e[1]][e[2]][e[3]](C);else if(5==e.length)window[e[0]][e[1]][e[2]][e[3]][e[4]](C);g=!0;v.cicalls.push(["CC",performance.now().toFixed(0)]); v.callbackSetup=!0}catch(u){na("[CONTXTFUL INJECTION] ERROR caught: "+u+" for input : "+n)}else v.callbackSetup=!1,na("[CONTXTFUL INJECTION] ERROR: window."+n+"(str) is undefined"),na("[CONTXTFUL INJECTION] HINT: Make sure to add the callback=domain.function to the