(function(){var p={},C=function(O){var L={};var N={architecture:"sua_arch",bitness:"sua_bit",platformVersion:"sua_pf_vr",platform:"sua_pf_br",mobile:"sua_mob",brands:"sua_br",fullVersionList:"sua_br",model:"sua_model"};function M(P){P=P||[];P.forEach(function(Q){Q.version=Q.version.split?Q.version.split("."):Q.version});return JSON.stringify(P)}Object.keys(p).forEach(function(P){switch(P){case"architecture":case"bitness":case"platform":case"model":L[N[P]]=p[P];break;case"platformVersion":L[N[P]]=(p[P]||"").replaceAll(".",",");break;case"mobile":L[N[P]]=p[P]===true?1:0;break;case"fullVersionList":L[N[P]]=M(p[P]);break;case"brands":if(!L[P]){L[N[P]]=M(p[P])}break}});if(O===false){return L}var K=[];Object.keys(L).forEach(function(P){K.push(P+"="+(P==="sua_pf_vr"?L[P]:encodeURIComponent(L[P])))});return(K.join("&"))},x=function(){if(window.navigator&&window.navigator.userAgentData){if(window.navigator.userAgentData.brands){p.brands=window.navigator.userAgentData.brands;p.mobile=window.navigator.userAgentData.mobile;p.platform=window.navigator.userAgentData.platform}function K(){if(window.navigator.userAgentData.getHighEntropyValues){var L=navigator.userAgentData.getHighEntropyValues(["architecture","model","bitness","platformVersion","fullVersionList"]).then(function(M){p=M})}}K()}};x();var D=window,b=function(L){var K={70328:""};return(K.hasOwnProperty(L))},y=function(L){var K={70328:""};return(K.hasOwnProperty(L))},q=function(L){var K={70328:""};return(K.hasOwnProperty(L))},s=true,J=function(L){var K=s?"s://sshowads":"://showads";return"http"+K+".pubmatic.com/AdServer/AdServerServlet?operId=201&rs=2&"},F=function(){var L="",K=document.domain;if(K&&K!==""){try{L=(document.URL==decodeURIComponent(document.URL))?document.URL:decodeURIComponent(document.URL)}catch(M){L=document.URL}L=(L.indexOf("http")===0)?L:""}return L.substr(0,512)},E=console.log.bind(console,"PubMatic:"),m=function(K){return typeof K==="function"},h=function(){return"https:"},t=(function(){try{return D.localStorage&&m(D.localStorage.getItem)&&m(D.localStorage.setItem)}catch(K){return false}})(),G="PubMatic",u="PubMatic_USP",c=function(K,N){var M=D.document.createElement("script");M.type="text/javascript";M.src=K;M.async=true;if(m(N)){M.onload=M.onreadystatechange=N}var L=D.document.getElementsByTagName("script")[0];L&&L.parentNode&&m(L.parentNode.appendChild)&&L.parentNode.appendChild(M)},a=((D.__cmp||D.__tcfapi)?1:0),H=function(O,N){var L=0,K=O.length,M=false;for(;L((new Date()).getTime()-(24*60*60*1000))){M.c=K.c;M.g=K.g}else{}}}}return M},I=function(M,N){var K=1;function T(){var U={};function V(){if(U.usPrivacy){M(U)}else{}}return{consentDataCallback:function(W,X){if(X&&W.uspString){U.usPrivacy=W.uspString}V()}}}var L=T();var S={};try{window.__uspapi("getUSPData",K,L.consentDataCallback)}catch(R){var Q=window;var P;while(!P){try{if(Q.frames.__uspapiLocator){P=Q}}catch(R){}if(Q===window.top){break}Q=Q.parent}if(!P){return N("USP CMP not found.")}O("getUSPData",P,L.consentDataCallback)}function O(W,V,Y){window.__uspapi=function(ab,Z,ad){var aa=Math.random()+"";var ac={__uspapiCall:{command:ab,version:Z,callId:aa}};S[aa]=ad;V.postMessage(ac,"*")};window.addEventListener("message",U,false);window.__uspapi(W,K,X);function U(aa){var Z=aa&&aa.data&&aa.data.__uspapiReturn;if(Z&&Z.callId){if(typeof S[Z.callId]!=="undefined"){S[Z.callId](Z.returnValue,Z.success);delete S[Z.callId]}}}function X(Z,aa){window.removeEventListener("message",U,false);Y(Z,aa)}}},l=function(L,N){function M(P){var O=!!(P&&P.usPrivacy);if(!O){return}k(L,"c",P.usPrivacy);if(N){N("USP")}}function K(){if(N){N("USP")}}I(M,K)},k=function(N,K,M){var L;if(!t){return}try{L=D.localStorage.getItem(u)}catch(O){}if(L&&typeof L==="string"){try{L=JSON.parse(L)}catch(O){L={}}}else{L={}}if(L){if(!L.hasOwnProperty(N)){L[N]={}}L[N].t=(new Date()).getTime();L[N][K]=M}try{D.localStorage.setItem(u,JSON.stringify(L))}catch(O){}},o=function(N){var M={c:""};if(!t){return M}var L;try{L=D.localStorage.getItem(u)}catch(O){}if(L&&typeof L==="string"){try{L=JSON.parse(L)}catch(O){L={}}if(L.hasOwnProperty(N)){var K=L[N];if(K&&K.c&&K.t){if(K.t&&parseInt(K.t)>((new Date()).getTime()-(24*60*60*1000))){M.c=K.c}else{}}}}return M},v=function(P,O){var Q,N,L,K={};K.av="0",K.ap="-1x-1";try{document.write("");Q=document.getElementById("t_"+P);if(Q){if(typeof Q.getBoundingClientRect==="function"){N=Q.getBoundingClientRect();L=window.innerHeight||document.body.clientHeight;K.av=(N.top<\/script>')},i=function(){var K=d.LRID,L;if(K==0){}else{L=d.AL[K];e.showAd({pubId:L.pubId,siteId:L.siteId,adId:L.adId,width:L.width,height:L.height,kadNetwork:d.LNID})}},e=window.PubMatic||(window.PubMatic={}),d=e.Mobile||(e.Mobile={iGAC:false,CCTU:null,CCTF:null,CCTFA:[],PCT:null,PW:null,AL:{},LS:{},CIDs:[],ECPM:0,ACPM:0,LNID:null,OID:null,LRID:0});e.showAd=e.showAd||function(K){var L=new z(K);if(L.rid){d.AL[L.rid]=L}};window.processPubMaticBid=window.processPubMaticBid||function(K){var L,N,R,Q=d.AL,M=K.PubMatic_Bid,P=K.meta_data;if(P&&M){if(M.creative_tag&&M.tracking_url){L=Q[P.rid]||false;if(L){d.LNID=M.network_id||null;d.OID=M.oid||null;L.CTU=M.click_tracking_url||null;L.LPU=M.landing_page||null;if(M.campaign_id){d.CIDs.push(M.campaign_id)}d.ECPM=M.ecpm||0;d.ACPM=M.acpm||0;try{document.write(''+M.creative_tag+"");r(M.tracking_url)}catch(O){}N=document.getElementById(L.rid);if(L.CTU&&N&&typeof document.addEventListener==="function"){R=function(V){var T=this,U=Q[T.id],X,S=U.CTU;if(U&&!U.iCTS&&S){if(q(U.pubId)&&b(U.pubId)&&U.CCTF&&y(U.pubId)){V.preventDefault();V.stopPropagation()}function W(){if(!U.iCTS){var Y=document.createElement("script");Y.setAttribute("src",s?S.replace("http://","https://"):S);Y.setAttribute("type","text/javascript");function Z(){if(b(U.pubId)&&U.CCTF){if(typeof U.CCTF=="function"){try{if(y(U.pubId)){U.CCTFA.unshift(U.LPU?U.LPU:"")}U.CCTF.apply(window,U.CCTFA)}catch(aa){}}}}Y.addEventListener("load",Z,true);Y.addEventListener("error",Z,true);T.appendChild(Y);U.iCTS=true}}if(U.CCTU){X=document.createElement("script");X.setAttribute("src",s?U.CCTU.replace("http://","https://"):U.CCTU);X.setAttribute("type","text/javascript");X.addEventListener("load",W,true);X.addEventListener("error",W,true);document.body.appendChild(X)}else{W()}}};if(L.kadNetwork&&d.PCT&&d.PW){d.PW.removeEventListener("click",d.PCT,true)}N.addEventListener("click",R,true);d.PCT=R;d.PW=N}}}}};e.AHT=window.PubMatic_AHT||0;if(e.AHT==2){e.AHT=window.PubMatic_AHT=0;i()}})();