window.grxConfig=eval({"disableGrxOldPageViewCall":false}) var fromreact = '' window.globalCallbackAfterSuscription=void 0;var __DEV_ENV__=!(["jeetbetwin.com","m.timesofindia.com", "epaper.jeetbetwin.com", "photogallery.jeetbetwin.com"].indexOf(document.location.hostname)>-1),eventCategory={home:"Home",etbriefs:"Brief","articleshow/":"Articleshow","web-series/":"Webseries","photostory/":"Photostory",videos:"Video_List","movie-review/":"Movie_Review","movieshow/":"MovieListing_Show","latest-new-movies/":"MovieListing_List","showtimes/":"Showtime","awards/":"Awards","previews/":"Preview","theatres-list":"Theater_List","videoshow/":"Video_Show","seasonreview/":"Season_Review","seriesreview/":"Series_Review","episodereview/":"Episode_Review","webseriesshow/":"Series_Review","topic/":"Topic_Celebrity","ottmoviereview/":"OTTMovie_Review"},defaultCategory="ArticlesList",categoryArray=Object.keys(eventCategory),domainsArray=["http://jeetbetwin.com/etimes","http://toidev.jeetbetwin.com/etimes","http://toidev.jeetbetwin.com","http://jeetbetwin.com","http://toispadev4.jeetbetwin.com"],grx_module=function(){var e,t;t={grx_projectcode:__DEV_ENV__?"g3bf3e414":"g7af6dd9d",grx_subproject:"etimes",grx_subproject_toi:"toi",grx_applicationServerKey:"BAEr8bO2Cyl8t2PmXW686snggFFooIy0DnRBBp0hxgptp7MBCXRJaMTdIzmqL3t1rB0BqKauxyyv94PADuUlAsw",swjs_path:"/grxsw.cms",swjs_path_react_dev:"/sw.js",ga_enable:!0,utm_enable:!0,property:"ETimes",property_toi:"TOI",platform:"Web",defaultIcon:"http://jeetbetwin.com/photo/75555693.cms",defaultIconToi:"http://jeetbetwin.com/photo/64095869.cms",defaultTitle:"ETimes",defaultTitleToi:"TOI",defaultMessage:"Thank you for subscribing to ETimes notifications.",defaultMessageToi:"Thank you for subscribing to TOI notifications.",defaultUrl:"http://jeetbetwin.com/etimes",defaultUrlToi:"http://jeetbetwin.com",utmSource:"browser_notification",utmMedium:"",utmCampaign:"browsernotification",popup1_ga_cat:"PushBrowserSubscription",popup1_ga_act:"Push_Popup_View",popup1_ga_label_viewed:"Push_Popup_Viewed",popup1_ga_label_notnow:"Push_Popup_Notnow",popup1_ga_label_allow:"Push_Popup_Allow",popup2_ga_cat:"PushBrowserSubscription",popup2_ga_act:"Push_Browser_View",popup2_ga_label_viewed:"Push_Browser_Viewed",popup2_ga_label_block:"Push_Browser_Block",popup2_ga_label_ignore:"Push_Browser_Ignore",popup2_ga_label_allow:"Push_Browser_Allow",location_api:"http://geoapi.jeetbetwin.com/?cb=1",location_api_hit_frequency:30};var o=function(e){return new Promise((function(t,o){const i=document.createElement("script");let r=!1;i.type="text/javascript",i.src=e,i.async=!0,i.onerror=function(e){o(e,i)},i.onload=i.onreadystatechange=function(){r||this.readyState&&"complete"!=this.readyState||(r=!0,t())};const n=document.getElementsByTagName("script")[0];n.parentElement.insertBefore(i,n)}))},i=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length)return t.pop().split(";").shift()},r=function(e){const t=new Date(e);return t.getTime()?t.getTime().toString():"NA"};return e={_loadGrxScript:function(){var e,t,o,i,r,n;e=window,t=document,o="script",e[i="grx"]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},e[i].l=1*new Date,e[i]=e[i]||{},r=t.createElement(o),n=t.getElementsByTagName(o)[0],r.async=1,r.src="http://static.growthrx.in/js/v2/web-sdk.js",n.parentNode.insertBefore(r,n),grx_module.triggerGACustom("grx_executed")},_appendUTMs:function(e){if(!t.utm_enable)return e;var o="utm_source="+t.utmSource+"&utm_medium="+(t.utmMedium.length?t.utmMedium:ntfc_module.getBrowser())+"&utm_campaign="+t.utmCampaign,i=-1!=e.indexOf("?")?"&":"?";return e+i+o},_initNtfcConfig:function(e){if("undefined"!=typeof grx){e||grx("init",t.grx_projectcode),window.TimesApps&&window.TimesApps.PopUpV2Manager&&window.TimesApps.PopUpV2Manager.register&&typeof window.TimesApps.PopUpV2Manager.register === 'function'&&window.TimesApps.PopUpV2Manager.register("grx_notification",(function(){grx("enableCustompopup"),window&&window.TimesApps&&window.TimesApps.PopUpList&&window.TimesApps.PopUpList.grx_notification&&window.TimesApps.PopUpList.grx_notification.callbacks.onShowCallback(grx("checkCustompopupVisibility"))})),grx("config","applicationServerKey",t.grx_applicationServerKey),grx("registerPlugin","subscribeToken"),grx("registerPlugin","inApp"),t.utm_enable&&grx("config","notification_params",{utm_source:t.utmSource,utm_medium:t.utmMedium.length?t.utmMedium:ntfc_module.getBrowser(),utm_campaign:t.utmCampaign});var o=grx_module.appendUTMs(grx_module.getDefaultUrl());grx("registerPlugin","showNotificationWelcomeMessage",{title:grx_module.getDefaultTitle(),content:grx_module.getDefaultMessage(),icon:grx_module.getDefaultIcon,url:o}),grx("addListener","notification_permission_allowed",(function(){ntfc_module.triggerGAEvent(grx_module.getconfig().popup2_ga_cat,grx_module.getconfig().popup2_ga_act+"_"+grx_module.getProperty()+"_"+grx_module.getconfig().platform,grx_module.getconfig().popup2_ga_label_allow),grx("set","location",common_utility.getLocation());var e=new CustomEvent("Notification",{detail:"Allow"});window.dispatchEvent(e),"function"==typeof window.globalCallbackAfterSuscription&&window.globalCallbackAfterSuscription("Allow")})),grx("addListener","notification_permission_blocked",(function(){ntfc_module.triggerGAEvent(grx_module.getconfig().popup2_ga_cat,grx_module.getconfig().popup2_ga_act+"_"+grx_module.getProperty()+"_"+grx_module.getconfig().platform,grx_module.getconfig().popup2_ga_label_block);var e=new CustomEvent("Notification",{detail:"Block"});window.dispatchEvent(e),"function"==typeof window.globalCallbackAfterSuscription&&window.globalCallbackAfterSuscription("Block")})),grx("addListener","notification_permission_closed",(function(){ntfc_module.triggerGAEvent(grx_module.getconfig().popup2_ga_cat,grx_module.getconfig().popup2_ga_act+"_"+grx_module.getProperty()+"_"+grx_module.getconfig().platform,grx_module.getconfig().popup2_ga_label_ignore);var e=new CustomEvent("Notification",{detail:"Closed"});window.dispatchEvent(e),"function"==typeof window.globalCallbackAfterSuscription&&window.globalCallbackAfterSuscription("Closed")}));var i=window.location.href.indexOf("toispadev")>=0?t.swjs_path_react_dev:t.swjs_path;grx("config","service_worker",i)}},_setArticleRelatedGrxProps:function(){if(console.log("comes in _setGrxPropsForArticleChange"),"undefined"!=typeof grx&&(console.log("comes in grx"),void 0!==window.grxProp)){if(grx("set","template",window.grxProp.template?window.grxProp.template:"NA"),grx("set","msid",window.grxProp.msid?window.grxProp.msid:"NA"),grx("set","primeStory",!!window.grxProp.primeId),grx("set","storyAgency",window.grxProp.agencyName?window.grxProp.agencyName:window.grxProp.arTag?window.grxProp.arTag:"NA"),grx("set","contentType",window.grxProp.contentType?window.grxProp.contentType:"NA"),grx("set","template",window.grxProp.contentType?window.grxProp.contentType:"NA"),grx("set","storyTemplate",window.grxProp.contentType?window.grxProp.contentType:"NA"),grx("set","storyNatureOfContent",window.grxProp.storyNatureOfContent?window.grxProp.storyNatureOfContent:"NA"),grx("set","storyTopicTree",window.grxProp.storyTopicTree?window.grxProp.storyTopicTree:"NA"),grx("set","authorName",window.grxProp.authorName?window.grxProp.authorName:"NA"),grx("set","subjectLine",window.grxProp.subjectLine?window.grxProp.subjectLine:"NA"),grx("set","title",window.grxProp.subjectLine?window.grxProp.subjectLine:"NA"),grx("set","onPlatformSource",window.grxProp.onPlatformSource?window.grxProp.onPlatformSource:"Click"),"undefined"!=window.grxProp.sections){let e=[],t="";window.grxProp.sections.section1&&window.grxProp.sections.section1.id&&(e.push(window.grxProp.sections.section1.name.toLowerCase()),t=window.grxProp.sections.section1.id),window.grxProp.sections.section2&&window.grxProp.sections.section2.id&&(e.push(window.grxProp.sections.section2.name.toLowerCase()),t=window.grxProp.sections.section2.id),window.grxProp.sections.section3&&window.grxProp.sections.section3.id&&(e.push(window.grxProp.sections.section3.name.toLowerCase()),t=window.grxProp.sections.section3.id),window.grxProp.sections.section4&&window.grxProp.sections.section4.id&&(e.push(window.grxProp.sections.section4.name.toLowerCase()),t=window.grxProp.sections.section4.id),window.grxProp.sections.section5&&window.grxProp.sections.section5.id&&(e.push(window.grxProp.sections.section5.name.toLowerCase()),t=window.grxProp.sections.section5.id);let o=e.shift(),i=e.join("/");grx("set","storySection",o||"NA"),grx("set","storySubSection",i||"NA"),grx("set","denmarkFolderId",t||"NA")}let e=parseInt(window.grxProp.lastPublishedTs)?r(parseInt(window.grxProp.lastPublishedTs)):"NA";grx("set","storyPublishedAt",e);let t="";t=window.grxProp.lastUpdatedDate&&window.grxProp.lastUpdatedDate.split("#").length>1&&Date.parse(window.grxProp.lastUpdatedDate.split("#")[1])?r(window.grxProp.lastUpdatedDate.split("#")[1]):e,grx("set","storyLastUpdatedAt",t)}},_getArticleRelatedGrxProps:function(){if("undefined"!=typeof grx&&"undefined"!=window.grxProp){let e=window.grxProp.template?window.grxProp.template:"NA",t=window.grxProp.msid?window.grxProp.msid:"NA",o=!!window.grxProp.primeId,i=window.grxProp.agencyName?window.grxProp.agencyName:window.grxProp.arTag?window.grxProp.arTag:"NA",n=window.grxProp.contentType?window.grxProp.contentType:"NA",a=window.grxProp.contentType?window.grxProp.contentType:"NA",s=window.grxProp.storyNatureOfContent?window.grxProp.storyNatureOfContent:"NA",c=window.grxProp.storyTopicTree?window.grxProp.storyTopicTree:"NA",l=window.grxProp.authorName?window.grxProp.authorName:"NA",d=window.grxProp.subjectLine?window.grxProp.subjectLine:"NA",g=window.grxProp.subjectLine?window.grxProp.subjectLine:"NA",u=window.grxProp.onPlatformSource?window.grxProp.onPlatformSource:"Click",p="",m="",w="";if(void 0!==window.grxProp.sections){let e=[],t="";window.grxProp.sections.section1&&window.grxProp.sections.section1.id&&(e.push(window.grxProp.sections.section1.name.toLowerCase()),t=window.grxProp.sections.section1.id),window.grxProp.sections.section2&&window.grxProp.sections.section2.id&&(e.push(window.grxProp.sections.section2.name.toLowerCase()),t=window.grxProp.sections.section2.id),window.grxProp.sections.section3&&window.grxProp.sections.section3.id&&(e.push(window.grxProp.sections.section3.name.toLowerCase()),t=window.grxProp.sections.section3.id),window.grxProp.sections.section4&&window.grxProp.sections.section4.id&&(e.push(window.grxProp.sections.section4.name.toLowerCase()),t=window.grxProp.sections.section4.id),window.grxProp.sections.section5&&window.grxProp.sections.section5.id&&(e.push(window.grxProp.sections.section5.name.toLowerCase()),t=window.grxProp.sections.section5.id);let o=e.shift(),i=e.join("/");p=o||"NA",m=i||"NA",t=t||"NA"}let f=parseInt(window.grxProp.lastPublishedTs)?r(parseInt(window.grxProp.lastPublishedTs)):"NA",_="";return _=window.grxProp.lastUpdatedDate&&window.grxProp.lastUpdatedDate.split("#").length>1&&Date.parse(window.grxProp.lastUpdatedDate.split("#")[1])?r(window.grxProp.lastUpdatedDate.split("#")[1]):f,{template:e,msid:t,primeStory:o,storyAgency:i,contentType:n,storyTemplate:a,storyNatureOfContent:s,storyTopicTree:c,authorName:l,subjectLine:d,title:g,onPlatformSource:u,storySection:p,storySubSection:m,denmarkFolderId:w,storyPublishedAt:f,storyLastUpdatedAt:_||"NA"}}},_setGrxProps:async function(){console.log("_setGrxProps");try{await o("http://jeetbetwin.com/platform_js/version-1,minify-1.cms")}catch(e){console.log(e)}grx_module.setArticleRelatedGrxProps(),"undefined"!=typeof grx&&("undefined"!=window.platformData&&(grx("set","deviceManufacturer",window.platformData.manufacturer?window.platformData.manufacturer:"NA"),grx("set","deviceModel",window.platformData.product?window.platformData.product:"NA"),grx("set","osVersion",window.platformData.os&&window.platformData.os.version?window.platformData.os.version:"NA"),grx("set","osFamily",window.platformData.os&&window.platformData.os.family?window.platformData.os.family:"NA")),grx("set","userId",i("ssoid")?i("ssoid"):"NA"),grx("set","userLoginStatus",!!i("ssoid")),grx("set","primeStatus",i("prc")?i("prc").split("#")[0]:"-1"),grx("set","userCityFromGeo",i("geolocation")?i("geolocation"):"NA"),grx("set","userState",i("grxgeostate")?i("grxgeostate").replace(/%20/g," "):"NA"),grx("set","userCountryCode",i("geo_country")?i("geo_country"):"NA"),grx("set","source",document&&document.referrer&&document.referrer.includes("google")?"organic":"direct"),grx("set","platform","web"),grx("set","signalEventType","screen_view"),grx("set","deviceCategory","desktop"))},_setGlobalGrxProps:async function(){let e=["userId","primeStatus","deviceManufacturer","deviceModel","osVersion","osFamily","userState","userCountryCode","primeStory","storyPublishedAt","storyLastUpdatedAt","url"];try{await o("http://jeetbetwin.com/platform_js/version-1,minify-1.cms")}catch(e){console.log(e)}if(window.grxProp=window.grxProp||{},"undefined"!=typeof grx&&void 0!==window.grxProp){"undefined"!=window.platformData&&(window.grxProp.deviceManufacturer=window.platformData.manufacturer?window.platformData.manufacturer:"Not Available",window.grxProp.deviceModel=window.platformData.product?window.platformData.product:"Not Available",window.grxProp.osVersion=window.platformData.os&&window.platformData.os.version?window.platformData.os.version:"Not Available",window.grxProp.osFamily=window.platformData.os&&window.platformData.os.family?window.platformData.os.family:"Not Available"),window.grxProp.url=window.location.href?window.location.href:"",window.grxProp.userId=i("ssoid")?i("ssoid"):null,window.grxProp.userLoginStatus=!!i("ssoid"),window.grxProp.primeStatus=i("prc")?i("prc").split("#")[0]:-1,window.grxProp.userCityFromGeo=i("geolocation")?i("geolocation"):"NA",window.grxProp.userState=i("grxgeostate")?i("grxgeostate").replace(/%20/g," "):"Not Available",window.grxProp.userCountryCode=i("geo_country")?i("geo_country"):"Not Available",window.grxProp.source=document&&document.referrer&&document.referrer.includes("google")?"organic":"direct",window.grxProp.platform="web",window.grxProp.signalEventType="screen_view",window.grxProp.deviceCategory="desktop",window.grxProp.primeStory=!!window.grxProp.primeId;var t=parseInt(window.grxProp.lastPublishedTs)?r(parseInt(window.grxProp.lastPublishedTs)):"NA";window.grxProp.storyPublishedAt=t;let o="";o=window.grxProp.lastUpdatedDate&&window.grxProp.lastUpdatedDate.split("#").length>1&&Date.parse(window.grxProp.lastUpdatedDate.split("#")[1])?r(window.grxProp.lastUpdatedDate.split("#")[1]):t,window.grxProp.storyLastUpdatedAt=o||"NA",Object.keys(window.grxProp).map((t=>{e.includes(t)&&grx("set",t,window.grxProp[t])}))}},_getGrxObject:function(){if("undefined"!=typeof grx&&void 0!==window.grxProp){var e=grx_module.getArticleRelatedGrxProps()||{},t={userLoginStatus:window.grxProp.userLoginStatus,userCityFromGeo:window.grxProp.userCityFromGeo,source:window.grxProp.source,platform:window.grxProp.platform,signalEventType:window.grxProp.signalEventType,deviceCategory:window.grxProp.deviceCategory};return{nonGlobalGrxObject:Object.assign(e,t),signalsGrxObj:{ClickFromPositionIntegerWithinSlot:-99,ClickFromSlotName:"NA",ClickFromPersonalizationAlgorithmName:"NA",ClickFromPixelsFromTop:-99,ClickFromTemplate:"NA"}}}},_isEtimes:function(e){return e.indexOf("/recipes")>0||e.indexOf("/etbriefs")>0||e.indexOf("/entertainment")>0||e.indexOf("/etimes")>0||e.indexOf("/tv")>0||e.indexOf("/life-style")>0||e.indexOf("/lifestyle")>0||e.indexOf("photogallery")>0},_getProperty:function(){return grx_module.isEtimes(window.location.href)?grx_module.getconfig().property:grx_module.getconfig().property_toi},_getSubProject:function(){return grx_module.isEtimes(window.location.href)?grx_module.getconfig().grx_subproject:grx_module.getconfig().grx_subproject_toi},_getDefaultIcon:function(){return grx_module.isEtimes(window.location.href)?grx_module.getconfig().defaultIcon:grx_module.getconfig().defaultIconToi},_getDefaultTitle:function(){return grx_module.isEtimes(window.location.href)?grx_module.getconfig().defaultTitle:grx_module.getconfig().defaultTitleToi},_getDefaultMessage:function(){return grx_module.isEtimes(window.location.href)?grx_module.getconfig().defaultMessage:grx_module.getconfig().defaultMessageToi},_getDefaultUrl:function(){return grx_module.isEtimes(window.location.href)?grx_module.getconfig().defaultUrl:grx_module.getconfig().defaultUrlToi},_getSectionFromUrl:function(e){var t="toi";if((e=e.replace(".cms","")).indexOf("https")>=0){var o="http://"+(e=e.indexOf("?")>=0?e.split("?")[0]:e).replace("http://","").replace("http://","").split(/[/?#]/)[0]+"/";t=e.replace(o,"").split("/")[0]}else t=0==e.indexOf("/")?e.split("/")[1]:e.split("/")[0];return t&&void 0!==t?t:"toi"},_getSubSectionFromUrl:function(e){var t="home";if((e=e.replace(".cms","")).indexOf("https")>=0){var o="http://"+(e=e.indexOf("?")>=0?e.split("?")[0]:e).replace("http://","").replace("http://","").split(/[/?#]/)[0]+"/";t=e.replace(o,"").split("/")[1]}else t=0==e.indexOf("/")?e.split("/")[2]:e.split("/")[1];return t&&void 0!==t?t:"home"},removeSignalDataFromLocalStorage:function(){localStorage.removeItem("signalsInfo")},_getSignalDataFromLocalStorage:function(){const e=localStorage.getItem("signalsInfo");return this.removeSignalDataFromLocalStorage(),e&&JSON.parse(e)},_hitGrxPageView:function(e){if("function"==typeof grx){var t=grx_module.getSignalDataFromLocalStorage()||{},o=t.ClickFromPositionIntegerWithinSlot>-1?t.ClickFromPositionIntegerWithinSlot:-99,i=t.ClickFromSlotName||"NA",r=t.ClickFromPersonalizationAlgorithmName||"NA",n=t.ClickFromPixelsFromTop||-99,a=t.ClickFromTemplate||"NA",s=common_utility.getLocation();s=void 0!==s?s:"NEWDELHI";var c=common_utility.getScreenType(),l=common_utility.getNetwork();grx("track","page_view",{url:e,subProject:grx_module.getSubProject(),section:grx_module.getSectionFromUrl(e),subSection:grx_module.getSubSectionFromUrl(e),location:s,screen_type:c,network:l,ClickFromPositionIntegerWithinSlot:o,ClickFromSlotName:i,ClickFromPersonalizationAlgorithmName:r,ClickFromPixelsFromTop:n,ClickFromTemplate:a})}},signalsObject:function(){var e=grx_module.getSignalDataFromLocalStorage()||{};return{ClickFromPositionIntegerWithinSlot:e.ClickFromPositionIntegerWithinSlot>-1?e.ClickFromPositionIntegerWithinSlot:-99,ClickFromSlotName:e.ClickFromSlotName||"NA",ClickFromPersonalizationAlgorithmName:e.ClickFromPersonalizationAlgorithmName||"NA",ClickFromPixelsFromTop:e.ClickFromPixelsFromTop||-99,ClickFromTemplate:e.ClickFromTemplate||"NA"}},getGeoLocation:function(e){if(void 0!==window.geoinfo)return{userState:window.geoinfo.city||"NEWDELHI",userCountryCode:window.geoinfo.CountryCode};common_utility.loadDynamicJS(grx_module.location_api),setTimeout((function(){return{userState:window.geoinfo&&window.geoinfo.city?window.geoinfo.city:"NEWDELHI",userCountryCode:window.geoinfo&&window.geoinfo.CountryCode?window.geoinfo.CountryCode:"IN"}}),100)},getssoid:function(){return i("ssoid")||"Not Available"},getPrimeStatus:function(){var e=i("ssoid"),t=i("prc")?i("prc").split("#")[0]:"-1";return"undefined"!=typeof window&&e?(t=t||"0",window.sessionStorage&&"true"===sessionStorage.getItem("inGracePeriod")&&(t="5_grace")):t="-1",t},getStoryPublishedUpdatedTime:function(e){var t={};if(e){if(window.App?.state?.isArticleshow){var o=window.App.state?.articleshow_v2?.data&&Object.keys(window.App.state?.articleshow_v2.data)[0];t=window.App.state?.articleshow_v2?.data[o]}else window.App?.state?.isLiveblogV2?t=window.App?.state?.liveblog_v2:window.location.href.indexOf("videoshow")>-1&&(t=window.App?.state?.videoshow?.videoData);var i=t?.seo||t?.seoData?.data||{},n=Date.parse(i.datePublished)?i.datePublished:t?.datePublishedNew,a=Date.parse(i.dateModified)?i.dateModified:n;datepublished=n?r(n):"NA",a=a?r(a):"NA"}else a=window.grxParams?.storyLastUpdatedAt||"NA",datepublished=window.grxParams?.storyPublishedAt||"NA";return{dateModified:a,datepublished:datepublished}},setGlobalProperties:function(t){var o=e.getPrimeStatus(),i=e.getssoid(),r=e.getStoryPublishedUpdatedTime(t),n=r.dateModified,a=r.datepublished,s=window.location.href,c=e.getGeoLocation(),l=c?.userState,d=c?.userCountryCode,g=document.referrer||"Not Available";window.grxParams&&window.grx("set","primeStory",window.grxParams.primeStory),window.grx("set","storyLastUpdatedAt",n),window.grx("set","storyPublishedAt",a),window.grx("set","primeStatus",o),window.grx("set","userId",i),window.grx("set","url",s),window.grx("set","userState",l),window.grx("set","userCountryCode",d),window.grx("set","referrer",g)},getNonNumberLevel:function(e){for(var t=e.numberOfLevel;t>0;t--){var o="level_"+t;if(isNaN(e[o]))return e[o]}return""},_extractQueryParams:function(e,t){var o=new URLSearchParams(t),i=Object.fromEntries(o);Object.assign(e,i)},_createLevels:function(e){var t=e.levelFull;if(t){var o=t.split("/");e.numberOfLevel=o.length,o.forEach((function(t,o){e["level_".concat(o+1)]=t}))}},_extractParamsForShowPages:function(t,o,i){var r=i.match(o)||[];return r.reverse(),t.msid=r[0],t.templateName=r[1],t.title=r[2],t.levelFull=r[3],e._createLevels(t),t},_extractParamsForListingPages:function(t,o){t.levelFull=o||"",t.isListingPage=!0,e._createLevels(t);var i=e.getNonNumberLevel(t);return t.templateName=i,t},_extractParamsFromURL:function(t){var o=/\/?([\/+(-?\w*)]*)\/([-?(\w|\d)*]*)\/([-?(\w|\d)*]*)\/(\d*).cms$/,i=window.location||{},r=(t||i).pathname,n=(t||i).search,a={};return e._extractQueryParams(a,n),o.test(r)?e._extractParamsForShowPages(a,o,r):e._extractParamsForListingPages(a,r.substr(1))},getUserInfo:function(){var e=i("MSCSAuthDetail");if(e&&"string"==typeof e){var t={};return e.split("~").forEach((function(e){var o=(e||"").split("="),i=o[0],r=o[1];i&&(t[i.toLowerCase()]=r)})),t}},getEmbedded:function(e){var t={},o=e||{},i=o.hasAudio,r=o.hasVideo;if(i&&(t.audio=1),r&&(t.video=1),o.story&&o.story.length>0){o.story.forEach((function(e){e&&"inlinevideo"===e.tn&&(t.video=1)}))}return Object.keys(t).join()},createPropsFromTemplateData:function(t,o,i,r){var n={},a=o||{};switch(t){case"articleshow":var s=a.articleshow_v2||{},c=s.data||{};n=Object.assign({},c[i||""]||{});var l=(a.sections||{}).section1||{};n.sectionID=l.id||"",n.primeid=s?.data?.[i]?.primeid;break;case"liveblog":n=a.liveblog_v2||{};break;case"videoshow":n=(a.videoshow||{}).videoData||{};l=(a.sections||{}).section1||{};n.sectionID=l.id||"",n.primeid=a.primeId;break;case"photostory":var d=a.primeId,g=a.article_embedded;l=(a.sections||{}).section1||{};n.sectionID=l.id||"",n.embedded=g,n.primeid=d;break;default:var u=a.primeId,p=a.newslisting||{},m=a.landing||{},w=a.sections||{},f=p.data||{},_=(m.data||{}).meta_data||{},x=w.section1||{},P=_.navsubsecs||f.navsubsecs||{};n={sectionID:x.id,primeid:u,navsubsecs:P}}if(n){var v=n.primeid,y=(n.navsubsecs||{}).subsec1||{};return{sectionID:n.sectionID||y.subsecmsid1,embedded:e.getEmbedded(n),primeid:v}}},getTemplateName:function(e,t){var o=e||{},i=o.level_1,r=o.levelFull,n=o.isListingPage,a=o.tophead,s=o.templateName;if(!t&&"articleshow"===s)return window.location.hostname.includes("photogallery")?"photogallery":"articleshow";if("epaper"===a)return"printarticle"===s?"articleshow":"epaper_digital_view";if(n){if("topic"===i)return"topic";if(""===r)return o.level_1="home","home"}return s},getLastClickSource:function(){var t=document.referrer;if(t){var o=new URL(t);return(e._extractParamsFromURL(o)||{}).templateName||""}return""},getCdpInfo:function(t){var o=e.getPrimeStatus(),r="5"===o?"paid":"free",n=e._extractParamsFromURL()||{},a=e._getUserDetailsWithCrosswalk()||{},s=(e.setGlobalProperties(t),window.App||{}),c=window.Times||{},l=s.state||{},d=window.grxProp||{},g=window.grxParams||{},u=l.isPrime||"5"===o||"1"===o,p=n.msid||d.msid||g.msid,m="undefined"!=typeof document&&document.referrer&&document.referrer.includes("google")?"organic":"direct",w=a.validationType,f=a.ssoid,_=a.primaryEmail,x=((a.mobileData||{}).validationType||{}).mobile,P=f||e.getssoid(),v=e.getUserInfo()||{},y=(e._isEtimes(location.href),c.adsKeys||{}),h="epaper"===n.tophead?"epaper_digital_view":"",b=e.getTemplateName(n,fromreact),S=n.level_1||y.SCN||window.sec1,A=n.level_2||y.SubSCN,C=fromreact?l:d,N=e.createPropsFromTemplateData(b,C,p,fromreact),k=N?.sectionID,T=N?.embedded,D=N?.primeid,G=!u&&D?"y":"n",L="other";n.isListingPage||(L="100"===D?"prime":"free"),fromreact&&"epaper"===n.tophead&&(L="epaper",G=l.isPrime?"n":"y");var I={level_1:S,level_2:A,level_3:n.level_3,level_4:n.level_4,level_full:n.levelFull||b||y.Tmpl_SCN,last_click_source:e.getLastClickSource(),referral_url:document.referrer,referrer:document.referrer||"NA",page_template:b||y.Tmpl_SCN,section_id:k||y.section_id||window.subsecmsid1,source:m,browser_name:ntfc_module.getBrowser(),loggedin:P&&"Not Available"!==P?"y":"n",business:"toi",utm_source:n.utm_source,utm_medium:n.utm_medium,utm_campaign:n.utm_campaign,campaign_id:n.campaign_id,campaign_name:n.campaign_name,variant_id:n.variant_id,cohort_id:n.cohort_id,content_id:p,login_method:P?i("LoginType")||i("ssologintype")||w:"",subscription_status:r,product:L,dark_mode:"n",monetizable:window._dfpObj?"y":"n",paywalled:G,subscription_type:"5"===o?"b2c":"free",phone:x,email:v.email||_,embedded:T,feature_name:h,url:window.location.href,client_source:"cdp",title:window.grxProp&&window.grxProp.subjectLine?window.grxProp.subjectLine:"NA"};if("home"===b&&u){var E=i("facto_ab");I.ab_variant=E||"N/A"}return I},_getUserDetailsWithCrosswalk:function(){if("function"==typeof window.JssoCrosswalk){var e=new window.JssoCrosswalk("toi","web");if("function"==typeof e.getSessionStorage){var t=e.getSessionStorage("jsso_crosswalk_user_details");if(t)return JSON.parse(t)?.data}}return null},_getProfileInfo:function(){try{var t,o,r,n,a=e.getUserInfo()||{};if(i("ssoid")){var s=i("prc")||0,c=sessionStorage.getItem(`prime_${s}`)&&JSON.parse(sessionStorage.getItem(`prime_${s}`));c&&(r=c.startDatems,n=c.endDatems)}return{phone:e._getUserDetailsWithCrosswalk()?.mobileData?.Verified?.mobile,sso_id:i("ssoid")||null,subscription_method:"",first_name:e._getUserDetailsWithCrosswalk()?.firstName,subscribed_newsletters:"",plan_name:"",email:e._getUserDetailsWithCrosswalk()?.primaryEmail||a.email,dmpId:i("_col_uuid"),last_plan_id:"",app_version:navigator.appVersion,subscription_start_date:r,subscription_end_date:n,unsubscribed_newsletters:"",gender:e._getUserDetailsWithCrosswalk()?.gender,last_name:e._getUserDetailsWithCrosswalk()?.lastName,operating_system:navigator.platform,user_id:i("ssoid")||null,newsletter_subscribed:"",city:window.geoinfo?.city,uuid:i("_col_uuid"),dark_mode:"n",user_id_int:"",locale_lang:navigator.language,timezone:(new Date).toString().split("(")[1].split(")")[0],country:window.geoinfo?.CountryCode,gid_int:i("grx"),user_agent:navigator.userAgent,latitude:t,longitude:o,client_source:"cdp",timestamp:new Date}}catch(e){return null}},getcommonPageInfo:function(t,o){e.setGlobalProperties(t);return o?{url:o}:{}},_triggerGrxFromLocalStorageStack:function(e,t){if(t=t||{},"undefined"!=typeof window&&"object"==typeof localStorage){var o=localStorage.getItem(e),i=o?JSON.parse(o):"";if(i){for(var r=0;r{grx_module.hitgrxPageviewReact("firstview"),grx_module.triggerGrxFromLocalStorageStack("GRX_QUEUE_EVENT",e.getCdpInfo("firstview"))}),1200)},triggerGACustom:function(e){},_watchObjDependency:function(e,t,o){var i=sessionStorage.getItem(e)&&JSON.parse(sessionStorage.getItem(e)),r=sessionStorage.getItem(`stored_at_${e}`)&&JSON.parse(sessionStorage.getItem(`stored_at_${e}`));if(!i||(new Date).getTime()-r>864e5)return sessionStorage.setItem(e,JSON.stringify(t)),t;if(!Array.isArray(o))return!1;for(var n=0;n

Stay updated with the latest Entertainment & Lifestyle News

Remind me later Enable

You can manage them anytime using browser settings

',ntfc_dom_toi:'

The latest news and updates...

Get instant notifications as they happen

Not Now Enable

You can manage them anytime using browser settings

',jquery_path:"http://jeetbetwin.com/videos/jquery_1_11_0_min/version-13,minify-1.cms",ntfc_css_path:"http://jeetbetwin.com/notificationcss/version-2,minify-1.cms"},e={_isChrome:function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)},_isMozilla:function(){return/firefox/i.test(navigator.userAgent)},_isSafari:function(){if(common_utility.isIOS()){var e=window.navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);return t&&o&&!e.match(/CriOS/i)}return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},_close:function(){document.querySelector(".ntfc_overlay").remove(),document.querySelector(".ntfc_popup").remove(),ntfc_cookie.set_cookie("_grxntfcskip","true",t.ntfc_close_frequency,"/","",!1)},_allow:function(){document.querySelector(".ntfc_overlay").remove(),document.querySelector(".ntfc_popup").remove(),ntfc_cookie.set_cookie("_grxntfcproceed","true",t.ntfc_close_frequency,"/","",!1)},_triggerGAEvent:function(e,t,o){"undefined"!=typeof ga&&grx_module.getconfig().ga_enable&&ga("send","event",e,t,o,{nonInteraction:1})},_getBrowser:function(){return ntfc_module.isChrome()?"chrome":ntfc_module.isMozilla()?"mozilla":ntfc_module.isSafari()?"safari":"unknown"},_events:function(){document.querySelector('[data-plugin="ntfc-close"]').addEventListener("click",(function(){return ntfc_module.triggerGAEvent(grx_module.getconfig().popup1_ga_cat,grx_module.getconfig().popup1_ga_act+"_"+grx_module.getProperty()+"_"+grx_module.getconfig().platform,grx_module.getconfig().popup1_ga_label_notnow),ntfc_module.close(),!1})),document.querySelector('[data-plugin="ntfc-enable"]').addEventListener("click",(function(){return ntfc_module.triggerGAEvent(grx_module.getconfig().popup1_ga_cat,grx_module.getconfig().popup1_ga_act+"_"+grx_module.getProperty()+"_"+grx_module.getconfig().platform,grx_module.getconfig().popup1_ga_label_allow),ntfc_module.allow(),common_utility.checkGdprAndCall((function(){return void 0!==ntfc_module&&ntfc_module&&ntfc_module.initBrowserPopup(),!1}),(function(){window.addEventListener("load",(function(){if("serviceWorker"in navigator)try{navigator.serviceWorker.getRegistrations().then((function(e){for(var t in e)e.hasOwnProperty("registration")&&t.unregister()}))}catch(e){}}))})),!1}))},_registerSW:function(){ntfc_module.triggerGAEvent(grx_module.getconfig().popup2_ga_cat,grx_module.getconfig().popup2_ga_act+"_"+grx_module.getProperty()+"_"+grx_module.getconfig().platform,grx_module.getconfig().popup2_ga_label_viewed),grx("enableCustompopup")},_initBrowserPopup:function(e){"undefined"!=typeof grx&&(ntfc_module.registerSW(),"function"==typeof e&&(window.globalCallbackAfterSuscription=e))},_callInhousePopup:function(){common_utility.loadDynamicCSS(t.ntfc_css_path),"undefined"!=typeof grx?"function"==typeof Notification&&ntfc_module.valid()&&!ntfc_module.isBlocked()&&"serviceWorker"in navigator?Notification.permission:console.log("Browser doesn't support Notification"):(grx_module.loadGrxScript(),setTimeout((function(){ntfc_module.init()}),1e3))},_init:function(){window.TimesGDPR&&TimesGDPR.common.consentModule.gdprCallback&&TimesGDPR.common.consentModule.gdprCallback((function(e){e.isEUuser||ntfc_module.callInhousePopup()}))},_isBlocked:function(){for(idx=0;idx{var o=grx_module.getGrxObject();grx_module.hitPersonalizeGrxPageView({url:e,nonGlobalGrxObject:o.nonGlobalGrxObject,enableSignalsPageView:!1}),grx_module.hitPersonalizeGrxPageView({url:e,signalsGrxObject:o.signalsGrxObj,enableSignalsPageView:!0})})),void 0!==ntfc_module&&ntfc_module.init()}else setTimeout((function(){initializeGrxAndHit()}),1e3)}initializeGrxAndHit()}grx_module.triggerGACustom("script_executed");