TimesGDPR=window.TimesGDPR||{};TimesGDPR.common=window.TimesGDPR.common||{};TimesGDPR.common.getParameterByName=function(b,a){if(!a){a=window.location.href}b=b.replace(/[\[\]]/g,"\\$&");var d=new RegExp("[?&]"+b+"(=([^&#]*)|&|#|$)"),c=d.exec(a);if(!c){return null}if(!c[2]){return""}return decodeURIComponent(c[2].replace(/\+/g," "))};TimesGDPR.common.checkIfPopShouldShow=function(){return false};TimesGDPR.common.consentModule=(function(){var j="https://timesofindia.indiatimes.com";var t=j+"/cookie-policy"; var I=j+"/privacy-policy/cookiepolicy/80245266.cms";var K="TOI";var C=function(O){var P;if(O){P=''}else{P='"}return P};var B=function(){var O='';return O};var w={consentHTML:function(O){return C(O)},policyUpdateHTML:function(){return B()},policyUpdateCloseButtonId:"toast-close-button",consentBannerClass:"consent-popup",consentAgreeButtonId:"consent-continue-button",personalisedAdsCheckBoxId:"personalisedadsCheckBox",consentVersionCookieName:"consent_verison",consentVersionCookieVal:"v1",consentVersionCookieAge:365,consentCookieName:"ckns_policyV2",consentCookieVal:"1",consentCookieAge:365,geoContCookieName:"geo_continent",geoCountryCookieName:"geo_country",geoRegionCookieName:"geo_region",geoRegionCookieAge:3,geoContCookieAge:1,optOutCookieName:"optout",optOutCookieDefaultVal:1,optOutAcceptCookieVal:0,optOutCookieAge:365,consentReqCont:["EU"],consentReqCountryRegions:["US_CA"],domainName:"",columbiaCoookie:"_col_uuid",dynamicCssSrc:"",productCode:"toi-web"}; var L={cbfn:[],domReady:false,displayPopupCalled:false,postConsent:false,consentAPIstatus:"",consentAPIretryCount:1};var s={consentAPIUrl:"https://etservices2.indiatimes.com/toi/consent/jsonp",consentAPIinput:{consent:{consents:[{agree:true,created:"",dataPoint:{id:5},text:"",updated:""}],productCode:""},primaryId:""}};var h=function(){var O=document.querySelectorAll("."+w.consentBannerClass);if(O.length>0){O[0].style.display="none"}};var D=function(){if(L.domReady&&(typeof w.geoDataAvailable!="undefined")&&!L.displayPopupCalled){L.displayPopupCalled=true; if(w.consentFor=="CCPA"){document.body.className+=" ccpauser"}if(w.isEUuser){document.body.className+=" euuser"}if(w.isEUuser&&TimesGDPR.common.checkIfPopShouldShow()){var P=f(w.consentCookieName);var O=f(w.consentVersionCookieName);if(!P){J(false);l()}else{if(O!==w.consentVersionCookieVal){J(true);c();i(w.consentVersionCookieName,w.consentVersionCookieVal,w.domainName,w.consentVersionCookieAge)}}}}};var l=function(){document.getElementById(w.consentAgreeButtonId).onclick=N};var c=function(){document.getElementById(w.policyUpdateCloseButtonId).onclick=h };var r=function(){var P=document.createElement("link"),O=document.getElementsByTagName("head")[0];P.rel="stylesheet";P.type="text/css";P.href=w.dynamicCssSrc;if(typeof F==="function"){if(typeof P.addEventListener!="undefined"){P.addEventListener("load",F,false)}else{if(typeof P.onreadystatechange!="undefined"){P.onreadystatechange=function(){d(P,F)}}else{setTimeout(F,100)}}}O.appendChild(P)};var F=function(){D()};var m=function(){var P=f(w.geoContCookieName);var S=f(w.geoCountryCookieName);var Q=f(w.geoRegionCookieName); if(typeof window.geoinfo=="undefined"&&(!P||!S||!Q)){var R=document.createElement("script"),O=document.getElementsByTagName("head")[0];R.src="https://geoapi.indiatimes.com/?cb=1";if(typeof e==="function"){if(typeof R.addEventListener!="undefined"){R.addEventListener("load",e,false);R.addEventListener("error",e,false)}else{if(typeof R.onreadystatechange!="undefined"){R.onreadystatechange=function(){d(R,e)}}else{setTimeout(e,100)}}}O.appendChild(R)}else{if(typeof window.geoinfo!="undefined"&&(!P||!S||!Q)){e() }else{A(P,S,Q)}}};var e=function(P){if(typeof window.geoinfo!="undefined"&&!!window.geoinfo.Continent){var Q=window.geoinfo.Continent.toUpperCase();var O=window.geoinfo.CountryCode?window.geoinfo.CountryCode.toUpperCase():"";var T=window.geoinfo.region_code?window.geoinfo.region_code.toUpperCase():"";i(w.geoContCookieName,Q,"",w.geoContCookieAge);i(w.geoCountryCookieName,O,"",w.geoContCookieAge);i(w.geoRegionCookieName,T,"",w.geoRegionCookieAge);A(Q,O,T)}else{var S="EU",R=1/(24*60);i(w.geoContCookieName,S,"",R); A(S,"","")}};var A=function(R,W,T){w.geoDataAvailable=true;var Q;var P;if(!Array.prototype.indexOf){Q=w.consentReqCont.join(",");P=w.consentReqCountryRegions.join(",")}else{Q=w.consentReqCont;P=w.consentReqCountryRegions}var S=W+"_"+T;var V=Q.indexOf(R.toUpperCase())>-1;var O=P.indexOf(S.toUpperCase())>-1;if(V||O){if(O){w.consentForCountryRegion=S;w.consentFor="CCPA"}else{w.consentForContinent=R;w.consentFor="GDPR"}w.isEUuser=true;window._euuser=true;var X=f(w.optOutCookieName);var U=f(w.consentCookieName); if(!U&&!X){if(w.consentFor!="CCPA"){i(w.optOutCookieName,w.optOutCookieDefaultVal,w.domainName,w.optOutCookieAge)}}k();if(!!w.dynamicCssSrc){r()}else{D()}}else{w.isEUuser=false;k()}};var x=function(){return{isEUuser:TimesGDPR.common.consentModule.isEUuser(),consentGiven:TimesGDPR.common.consentModule.isConsentGiven(),didUserOptOut:TimesGDPR.common.consentModule.didUserOptOut(),userRegion:f(w.geoRegionCookieName),userContinent:f(w.geoContCookieName),userCountry:f(w.geoCountryCookieName)}};var k=function(){if(L.cbfn.length){var O=x(); for(var P=L.cbfn.length-1;P>=0;P--){typeof L.cbfn[P]=="function"&&L.cbfn[P](O);L.cbfn[P]=null}}};var N=function(){z()};var i=function(Q,T,R,V){if(!!R){var S=";domain="+R}if(!!V){var P=24*60*60*1000;var U=new Date();U.setTime(U.getTime()+(V*P));var O=";expires="+U.toUTCString()}document.cookie=Q+"="+T+((O)?O:"")+((S)?S:"")+";path=/"};var f=function(O){var P=new RegExp(O+"=([^;]+)");var Q=P.exec(document.cookie);return(Q!=null)?unescape(Q[1]):null};var H=function(O){return(O||document.location.host).split(":")[0].split(".").reverse().slice(0,3).reverse().join(".") };var p=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Q){var P=Math.random()*16|0,O=Q=="x"?P:(P&3|8);return O.toString(16)})};var J=function(S){var T=w.consentFor==="CCPA";var R=!!S?w.policyUpdateHTML():w.consentHTML(T);var P=w.consentBannerClass;var U=document.querySelectorAll("."+P);if(U.length){return}var Q=document.createElement("div");Q.innerHTML=R;Q.className=P;var O=document.getElementsByTagName("body")[0];O.insertBefore(Q,O.childNodes[0])};var d=function(O,P){if(O.readyState==="loaded"||O.readyState==="complete"){P() }};var g=function(P){if(typeof w.geoDataAvailable!="undefined"){var O=f(w.geoContCookieName);var Q=x();P(Q)}else{L.cbfn.push(P)}};var q=function(){if(typeof w.isEUuser!="undefined"){return w.isEUuser}return};var v=function(){var O=f(w.consentCookieName);if(!!O){return true}return false};var n=function(){if(w.consentFor!=="CCPA"){var O=f(w.optOutCookieName)?parseInt(f(w.optOutCookieName)):w.optOutCookieDefaultVal;return O!==w.optOutAcceptCookieVal}return false};var G=function(O){if(typeof O!="undefined"&&O.status.toUpperCase()=="SUCCESS"){z(); return L.consentAPIstatus=O}else{y()}return L.consentAPIstatus};var b=function(){var O=f(w.consentCookieName);var P=f("optoutV2");if(O&&P){i("optoutV2","","",-1);i("optoutV2","",w.domainName,-1);if(w.consentFor!="CCPA"){i(w.optOutCookieName,P,w.domainName,w.optOutCookieAge)}}i("ckns_policy","","",-1);i("ckns_policy","",w.domainName,-1)};var a=function(){};var z=function(){var Q,P;var O=document.getElementById(w.personalisedAdsCheckBoxId);if(O!=null&&typeof(O)!="undefined"&&O.checked){Q=w.optOutAcceptCookieVal; P="Accept_with_personalized_ads"}else{P="Accept_without_personalized_ads";Q=w.optOutCookieDefaultVal}E(w.consentCookieVal,Q);ga("send",{hitType:"event",eventCategory:w.consentFor||"GDPR",eventAction:P,eventLabel:window.location.href});if(typeof grxFn==="function"){grxFn("click","",P)}};var M=function(P){var O;if(P!=="undefined"&&isNaN(parseInt(P))){O=(P===true||P==="true")?1:0}else{O=P}return O};var E=function(Q,P){if(typeof Q!="undefined"){var O=M(Q);i(w.consentCookieName,O,w.domainName,w.consentCookieAge) }if(typeof P!="undefined"){personalizedConsentInteger=M(P);if(w.consentFor!="CCPA"){i(w.optOutCookieName,personalizedConsentInteger,w.domainName,w.optOutCookieAge)}}i(w.consentVersionCookieName,w.consentVersionCookieVal,w.domainName,w.consentVersionCookieAge);h()};var y=function(){if(L.consentAPIretryCount>0){L.consentAPIretryCount--;N()}else{return}};var o=function(){if(w.isEUuser){document.querySelectorAll("[data-eulink]").forEach(function(Q,P){var O=Q.getAttribute("data-eulink");if(O){Q.href=O }})}};var u=function(){w.domainName=H();b();m();if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){L.domReady=true;D();o()})}else{if(typeof document.attachEvent!="undefined"){document.attachEvent("onreadystatechange",function(){if(document.readyState==="loaded"||document.readyState==="complete"){L.domReady=true;D();o()}})}else{setTimeout(function(){L.domReady=true;D();o()},1000)}}};return{hidePopup:h,setConsentToCookies:E,agreeButtonClickHandler:N,isConsentGiven:v,didUserOptOut:n,gdprCallback:g,isEUuser:q,start:u,setEuCaLinks:o} })();TimesGDPR.common.ajax={createRequest:function(){var d;var b=0;var a=["MSXML2.XmlHttp.6.0","MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"];if(typeof XMLHttpRequest!=="undefined"){d=new XMLHttpRequest()}else{for(;b