4e9b1e9b290756c5ebc9849983de1f7d7db1685f76386ada579863f26897ec5f

Source Code:

/*
 Nielsen SDK package v6.0.0.594 
 (c) 2021 The Nielsen Company 
*/
/*CryptoJS v3.1.2 License Info code.google.com / p / crypto - js - (c) 2009-2013 by Jeff Mott. All rights reserved. code.google.com / p / crypto - js / wiki / License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/ or other materials provided with the distribution.3.Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){var t=!0,a=!1;function n(e){a&&console&&console.log&&console.log(e)}try{n("BSDK check: Checking for ES5 array functions that BSDK uses");var r=new Array("test1","test2","test3");r.forEach(function(e){}),r.indexOf("test"),n("BSDK check: Array functionality passed"),n("BSDK check: Checking for ES5 JSON functions that BSDK uses");var i={fname:"Bob",lname:"Lee",address:{street:"123 test",city:"NY",state:"NY"}},o=JSON.stringify(i),s;i=JSON.parse(o),n("BSDK check: JSON object functionality passed"),n("BSDK check: Checking for image tag functionality"),(new Image).src="",n("BSDK check: Image tag functionality passed"),n("BSDK check: Checking for window.addEventListener functionality"),e.addEventListener||(t=!1),n("BSDK check: window.addEventListener functionality passed"),n("BSDK check: Checking for postMessage functionality"),e.postMessage||(t=!1),n("BSDK check: postMessage functionality passed"),n("BSDK check: Checking for date functionality"),n("DATE "+Date.now()),n("BSDK check: date functionality passed");var l=/(ANTGalio\/3.3)|(ANTGalio\/3.4)|(HbbTV\/1\.1\.1(;Samsung;SmartTV2012;;;)\s+WebKit)/i;n("BSDK check: Checking device useragent"),e.navigator.userAgent.match(l)&&(t=!1,n("BSDK check: Unsupported useragent"))}catch(e){n("ERROR: "+e.message),t=!1}n("****** RESULTS: JS support check "+(t?"PASSED":"FAILED")+" ******");try{t?(!function(e,t){if(!e.isBuilt||!e.isBuilt()){var a=-1!==t.location.protocol.indexOf("https")?"https:":"http:",n="//secure-",r="glcfg510.js",i=864e5,o=1,s=5,l=0,d=0,c=0,u=!1,p="cgi-bin/gn?prd=session&c9=devid,&c13=asid,",m="600",f="600",v=[".imrworldwide.com",".nmrodam.com"],g=e.getInstances?e.getInstances():{},_=!1,y="bj.6.0.0",h="594",P="6.0.0.16";Date.now=Date.now||function(){return+new Date};var S={Promise:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){try{var t=new Promise(function(e,t){});return new Promise(e)}catch(e){}var a;return new function e(t){var a=function e(t){r&&r(t)},n=function e(t){i&&i(t)},r=null,i=null;return{then:function e(o,s){r=o,i=s,t(a,n)}}}(e)})},b,T,C;e.sdkvForConfig=function(){return y},e.isBuilt=function(){return _},e.getInstance=function(a,n){var r=void 0!==a&&("string"==typeof a||"object"==(void 0===a?"undefined":_typeof(a))&&a.constructor===String)?a:"default";return g.hasOwnProperty(r)||(g[r]=n?R(r,e[r]||t[r]):R(r)),g[r]},e.setTotalNumAssetsAllowed=function(e){o=isNaN(e)?e:parseInt(e,10)},e.getAddress=function(){return L},e.getConfigAddress=function(){return O},e.getAddressProtocol=function(){return a},e.getInstances=function(){return g},e.loadXmlString=function(e){var t=null;try{return(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e),t}catch(n){try{var a;return t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){}}return null},e.isNielsenTag=function(e){var t=!1;if(void 0!==e){var a=e.indexOf("?"),n=-1!==e.indexOf(v[0])?e.indexOf(v[0]):e.indexOf(v[1]);n>-1&&n<a&&(t=!0)}return t},e.getVersion=function(){return m},e.getVersionOverride=function(){return f},e.send=function(e){e&&t.console&&t.console.log&&console.log(e.parentNode)},e.browserSafeAddEventListener=function(e){void 0!==e.element&&(e.element.addEventListener?e.element.addEventListener(e.eventType,e.func,e.useCapture):e.element.attachEvent&&e.element.attachEvent("on"+e.eventType,e.func))},e.browserSafeRemoveEventListener=function(e){null!=e&&null!==e.element&&void 0!==e.element&&(e.element.removeEventListener?e.element.removeEventListener(e.eventType,e.func,e.useCapture):e.element.detachEvent&&e.element.detachEvent("on"+e.eventType,e.func))},e.controllers={util:(b=e,function(){if("function"==typeof t.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}e.prototype=t.Event.prototype,t.CustomEvent=e}(),{fireCustomEvent:function e(a,n,r){try{r=r||t,a&&r&&r.dispatchEvent(new CustomEvent(a,{detail:n}))}catch(e){b&&b._listeners&&b._listeners.fireEvent("error",{type:"error",msg:"Browser error attempting to call element.dispatchEvent()."})}},queryParam:function e(a){try{a=a.toString().toLowerCase();var n=t.location.search.substr(1).split("&"),r="";if(n.find)r=n.find(function(e){return 0===e.toLowerCase().indexOf(a+"=")});else for(var i=0,o=n.length;i<o;i++)if(0===n[i].toLowerCase().indexOf(a+"=")){r=n[i];break}if(r){var s=r.split("=");if(s&&s.length>1)return s[1]}}catch(e){b&&b._listeners&&b._listeners.fireEvent("error",{type:"error",msg:"Browser error attempting to retrieve query string parameter."})}return""},Promise:S.Promise})};var n=n||"//secure-",a=a||(-1!==t.location.protocol.indexOf("https")?"https:":"http:"),e=e||t.NOLBUNDLE||{},r=r||"glcfg510.js",m=m||"600",y=y||"bj.6.0.0",h=h||"",O="",u=u||!1,g=g||e.getInstances?e.getInstances():{},l=l||0,d=d||0,c=c||0,L=A(".nmrodam.com/"),f=f||"600",p=p||"cgi-bin/gn?prd=session&c9=devid,&c13=asid,",w="IMRID",E;if(E={},e.loadLib=function(t,a,n,r){if(null!=t&&"string"==typeof t&&null!=a&&"string"==typeof a)if(E[t]){if(E[t].body)return void r(E[t].body(n));E[t].callbacks.push({func:r,arg:n})}else E[t]={callbacks:[]},E[t].callbacks.push({func:r,arg:n});else null==a&&e.initLib(t,n)},e.registerLib=function(t,a){try{if(E){E.hasOwnProperty(t)||e.initLib(t,e,a);var n=E[t];n.body=a;for(var r=n.callbacks.shift();r;)r.func(n.body(r.arg)),r=n.callbacks.shift()}}catch(e){}},e.initLib=function(e,t,a){if(E[e]||(E[e]={handle:null,callbacks:[]}),E[e].body=a,E[e].body){var n=E[e].body(t);return t[e]=n,void(E[e].handle=n)}},e.getLib=function(e){return E[e]?E[e].handle:null},t.gg_nol_FlashCallBack){for(var k=0,D,I=t.gg_nol_FlashCallBack.length;k<I;k+=1)t.gg_nol_FlashCallBack[k].hasOwnProperty("callBack")&&(D=document.getElementById(t.gg_nol_FlashCallBack[k].swfId))&&D[t.gg_nol_FlashCallBack[k].callBack]();t.gg_nol_FlashCallBack=void 0}return _||(_=!0,l=d=Date.now(),e.BUILDVERSION="6.0.0.16"),e}function A(e){return void 0!==a&&void 0!==e&&void 0!==n?a+"//cdn-gl"+e:"https://sdk.imrworldwide.com/"}function M(e){e&&e.hasOwnProperty("target")&&(u="true"===String(e.target).toLowerCase())}function F(){d=Date.now(),c=Math.ceil((d-l)/1e3)}function N(e){if(e&&e.hasOwnProperty("target")&&!isNaN(e.target))for(var t in g)n=void 0,r=void 0,void 0!==(n=g[a=t])&&n.hasOwnProperty("staticPage")&&n.staticPage.hasOwnProperty("evtParams")&&"static"===(r=n.staticPage.evtParams).param1.type&&n.ggPM("48",e.target,"","","");var a,n,r}function R(i,o){var s,l={},v=[],g=[],_={},P=String(Date.now())+Math.round(1e4*Math.random()),b,T=5,C=-1,E=!1,k=o||{};if(k.id=P,k.name=i,k.initialized=!1,k.staticPage={},k.modules={allModInit:!1},k.configLoaded=!1,k.apid="",k.sdkv=m,k.sdkvForConfig=y,k.useCachedConfig=null!=o,k.sessionId="",k.sivt=null,k.state=null,k._pauseTimeoutEnabled=!1,k.isAdobe=!1,o){if(o.q){var D,I=null;for(D=0;D<o.q.length;D++)(I=o.q[D])&&I.length>0&&v.push({eventType:I[0],param1:I.length>1?I[1]:void 0,param2:I.length>2?I[2]:void 0,param3:I.length>3?I[3]:void 0,param4:I.length>4?I[4]:void 0});delete o.q}else o.getEventQue&&(v=o.getEventQue());g=o.te||[]}function R(e){k.staticPage.hasOwnProperty("evtParams")&&k.ggPM("56",k.staticPage.evtParams.param1,k.staticPage.evtParams.param2,k.staticPage.evtParams.param3,k.staticPage.evtParams.param4)}function B(e,t){if("string"==typeof e&&(e={type:e}),e.target||(e.target=t),!e.type)throw new Error("Event object missing 'type' property.");if(l[e.type]instanceof Array)for(var a=l[e.type],n=0,r=a.length;n<r;n++)a[n].call(k,t)}function V(e){try{if(!e||!e.hasOwnProperty("cmsMap"))return[];var t=[];for(var a in e.cmsMap)e.cmsMap.hasOwnProperty(a)&&-1!==e.cmsMap[a].indexOf("nol_")&&t.push(e.cmsMap[a].replace(/[{(\[\])}]/g,""));return t}catch(e){}}function G(t){try{var a="Error in retrieveMeta";if(t&&t.hasOwnProperty("fData")&&t.hasOwnProperty("ad")&&t.hasOwnProperty("content")&&t.hasOwnProperty("plid")){var n=V({cmsMap:e.GLCFG.PLDPR.getCmsMap(t.plid)});for(var r in t.fData)if(t.fData.hasOwnProperty(r)&&"count"!==r){var i=t.fData[r][Object.keys(t.fData[r]).splice(-1,1)];if(null!=i&&"object"===(void 0===i?"undefined":_typeof(i)))for(var o in i){var s=String(o);-1!==s.indexOf("nol_")&&-1===n.indexOf(s)||(t[r][o]=i[o])}}return t}return t&&t.hasOwnProperty("err")?(t.err=a+": Missing passedFdata, Ad, content or static properties",t):{err:a}}catch(e){}}function x(t){t&&(t.registerListener("ggPM",k),t._listeners&&(t._listeners.addListener("updateCmbStaticPage",k.handleUpdateOfStatic),t._listeners.addListener("removeCmbAssetId",k.removeAsset),t._listeners.addListener("tick",function(){F(),E=!1,B("globalTick",{time:d,seconds:c})}),t._listeners.addListener("dcrHeartbeat",N),t._listeners.addListener("flushQueue",k.emptyQueue),t._listeners.addListener("handleSessionReset",k.handleSessionReset),t._listeners.addListener("flushPauseEventQueue",k.flushPauseEventQueue),t._listeners.addListener("sendOptOutStatus",M)),e.GLCFG=t)}function j(e,t){s&&s.ggParams&&s.ggParams.nol_sdkDebug&&["debug","info","warn","true"].indexOf(s.ggParams.nol_sdkDebug.toString().toLowerCase())>-1&&console&&console.log&&console.log("Nielsen Log: "+e,t||"")}function U(e,a){var n;(j("Firing ping "+e.url),void 0!==e&&(!e||e.hasOwnProperty("url")&&0!==e.url.length)&&e.hasOwnProperty("retryDelay")&&e.hasOwnProperty("currRetry")&&e.hasOwnProperty("maxRetry"))&&{requestUrl:function t(){var n=this;try{++e.currRetry>e.maxRetry?(this.logErr("maxRetry reached"),a&&a()):this.sendUrlRequest(e.url)}catch(e){this.logErr("Error in fireToUrl requestUrl: "+e),a&&a()}},sendUrlRequest:function n(r){var i=this;try{if(void 0===r)return;var o=new Image;o.onerror=function(a){t.setTimeout(function(){i.requestUrl()},e.retryDelay)},o.onload=function(e){a&&a()},o.src=r+"&retry="+e.currRetry}catch(e){i.logErr("Error in fireToUrl sendUrlRequest: "+e),a&&a()}},logErr:function e(a){a&&t.console&&t.console.log&&console.log("Error: ",a)}}.requestUrl()}function z(e,t,a){e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent&&e.attachEvent("on"+t,a)}var q={_queueEventLog:!1,_eventLog:[],init:function t(){try{var a=e.controllers.util.queryParam("nol_eventHookDelay");if(q._queueEventLog=!1,a){var n=parseInt(a);"NaN"!==n.toString()&&(q._queueEventLog=!0,setTimeout(function(){q._queueEventLog=!1},1e3*(n<=20?n:20)))}}catch(e){q._queueEventLog=!1}},trigger:function t(a,n){try{if(n){var r=JSON.parse(JSON.stringify(n));r.name=a.name,r.sdkv=y,q._queueEventLog?q._eventLog.push(r):(q._eventLog&&q._eventLog.length>0&&(e.controllers.util.fireCustomEvent("NSDK_EventHook",q._eventLog),q._eventLog=[]),e.controllers.util.fireCustomEvent("NSDK_EventHook",[r]))}}catch(e){}}},J={_enabled:!0,_activated:!1,mode:null,isHybrid:function e(){var a;return this._enabled&&(void 0!==t.NielsenAppSDK||t.webkit&&t.webkit.messageHandlers&&t.webkit.messageHandlers.NielsenSDKMsg||t.NielsenAppSDKJSHandler&&t.ReactNativeWebView)},isAsync:function e(){var a;return this._enabled&&(t.webkit&&t.webkit.messageHandlers&&t.webkit.messageHandlers.NielsenSDKMsg||t.NielsenAppSDKJSHandler&&t.ReactNativeWebView)},intType:function e(){var a;return this._enabled&&t.NielsenAppSDKJSHandler&&t.ReactNativeWebView?"ReactWebview":"HybridWebview"},state:{},eMap:function e(t){var a;return{3:"loadMetadata",14:"staticstart",15:"loadMetadata",5:"play",55:"sendID3",49:"setPlayheadPosition",playheadposition:"setPlayheadPosition",setplayheadposition:"setPlayheadPosition",6:"stop",7:"stop",30:"onPaginate",35:"updateMetadata",56:"staticend",57:"end",oncomplete:"end",900:"optoutstatus",901:"optouturl",902:"meterversion",903:"demographicid"}[(t=t||"").toString()]||t},send:function e(a,n,r){var i=this,o;if(i.isHybrid()){if(!r&&i.state[n.id]&&!i.state[n.id].enabled)return i.state[n.id].que||(i.state[n.id].que=[]),void i.state[n.id].que.push({action:a,payload:n});if(r||i._activated&&i.state[n.id]&&i.state[n.id].enabled)if(t.NielsenAppSDK){o=t.NielsenAppSDK.postMessage(JSON.stringify({owner:"NielsenAppSDKJSHandler",action:a,payload:n}));try{o=o?JSON.parse(o):o}catch(e){}finally{return o&&i.processMsg(o),o}}else{if(t.webkit&&t.webkit.messageHandlers&&t.webkit.messageHandlers.NielsenSDKMsg)return t.webkit.messageHandlers.NielsenSDKMsg.postMessage(JSON.stringify({owner:"NielsenAppSDKJSHandler",action:a,payload:n}));if(t.NielsenAppSDKJSHandler&&t.ReactNativeWebView)return t.ReactNativeWebView.postMessage(JSON.stringify({owner:"NielsenAppSDKJSHandler",action:a,payload:n}))}}},enableSDK:function e(){k.initialized=!0,k.modules.allModInit=!0,k.modules.PLCMB=2},processMsg:function e(t){var a,n=this,r,i;if(t&&t.payload&&(!t.payload.id||n.state[t.payload.id]))switch(t.action){case"enabled":t.payload.id&&n.state[t.payload.id]&&(n.state[t.payload.id].enabled="true"==t.payload.value.toString());break;case"updateott":case"optoutstatus":case"optouturl":case"demographicid":case"meterversion":n.state[t.payload.id][t.action]=t.payload.value,(a=document.getElementById("nielsen.bsdk.native."+t.action))&&(a.innerHTML=t.payload.value);break;case"init-ggPM":case"init-trackEvent":if(clearTimeout(n.timeout),n.state[t.payload.id].enabled=t.payload.result,n._activated="true"==t.payload.result.toString(),n._activated){for(n.enableSDK(),n.mode="init-trackEvent"==t.action?1:0,k.emptyQueue(),i=n.state[t.payload.id].que,r=0;r<i.length;r++)n.send(i[r].action,i[r].payload);n.state[t.payload.id].que.length=0}else n.start&&(n.start(),n.start=null)}},onMessage:function e(){var a=this;z(t,"message",function(e){var t;if(e)try{(t=JSON.parse(e.data)||{}).action&&t.payload&&a.processMsg(t)}catch(e){}})},trackEvent:function e(t,a,n){var r=this;null===r.mode&&(r.mode=1),n=r.eMap(n),r.send("trackEvent",{id:P,data:{event:n||"",param1:t,queue_call:a}})},ggPM:function e(t,a,n,r,i){var o=this;null===o.mode&&(o.mode=0),t=o.eMap(t),o.mode?o.send("trackEvent",{id:P,data:{event:t||"",param1:a,queue_call:!1}}):o.send("ggPM",{id:P,data:{event:t,param1:a,param2:n,param3:r,param4:i}})},urlParms:function e(a){var n,r;return((t.location.href.split("?")[1]||"").split("&")||[]).forEach(function(e){e.indexOf("=")>-1&&e.split("=")[0]&&(a[e.split("=")[0]]=e.split("=")[1])}),a},ggInitialize:function t(a,n,r,i,o,s,l){var d=this,c,u=JSON.parse(JSON.stringify(a)),p=e.configs[a.apid].nol_GLOBALS||{};c=p.nol_hybrid_timeout||2e3,d.isHybrid()&&(p.nol_droid_appid||p.nol_ios_appid)?(d.start=l,d.state[P]={},d.state[P].que=[],d.timeout=setTimeout(function(){d.send("timeout",{id:P,data:{ggParams:u,instanceName:n,uid:r,flashDetect:i,detectBrowser:o,container:s}},!0),delete d.state[P],d.start&&d.start(),d.start=null},c),d.onMessage(),d.send("init",{id:P,intType:d.intType(),bsdkid:u.apid,droidid:p.nol_droid_appid||"",iosid:p.nol_ios_appid||"",timeout:c,data:{ggParams:d.urlParms(u),instanceName:n,uid:r,flashDetect:i,detectBrowser:o,container:s}},!0)):l&&l()}},K={localcid:{index:0,key:"nol_fpid"},createdOn:{index:1,key:"nol_fpidCreateTime"},lastAccessed:{index:2,key:"nol_fpidAccessTime"},lastEMMPing:{index:3,key:"nol_fpidLastEMMPingTime"}},Q={allowCookies:!1,cookieTTL:"",firstCreated:!1,fpidParams:[],_domainSplit:document.domain.split(".").reverse(),_set:function e(t,a){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"180",r=arguments[3],i=arguments[4],o=this,s,l=new Date,d;if((l.setTime(l.getTime()+24*Number(n)*60*60*1e3),s="expires="+l.toUTCString(),void 0!==o._domainSplit[i])&&(r=o._domainSplit[i]+"."+r,document.cookie=t+"="+a+";"+s+";path=/;SameSite=Lax;domain=."+r,o.get(t)!==a))return o._set(t,a,n,r,++i)},_evalCookieMap:function e(t,a){var n="";for(var r in K)n=t[K[r].index]?t[K[r].index]:"",a.set?a.set(K[r].key,n):a[K[r].key]=n},get:function e(t){try{var a=document.cookie.match(new RegExp("(^| )"+t+"=([^;]+)"));return a?a[2]:""}catch(e){}return""},create:function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"180",n=arguments[1],r=arguments[2],i=this,o=Date.now(),s="";navigator.cookieEnabled&&i.allowCookies&&e.GLCFG&&e.GLCFG.generateGUID&&(s+=e.GLCFG.generateGUID()+"|",s+=o+"|",s+=o+"|",r.indexOf(n.toLowerCase())>-1&&(s+=o),i._set("nol_fpid",s,a,i._domainSplit[0],1),i.firstCreated=!0)},update:function e(t,a,n){var r=this,i="";r.allowCookies&&(i=r.get("nol_fpid").split("|")).length>1&&K[t]&&(i[K[t].index]=a,r._set("nol_fpid",i.join("|"),n,r._domainSplit[0],1))},appendfData:function e(t){var a=this;1!==a.fpidParams.length&&a._evalCookieMap(a.fpidParams,t)},appendSessParams:function e(t){var a=this;a.fpidParams=a.get("nol_fpid").split("|"),1!==a.fpidParams.length&&a._evalCookieMap(a.fpidParams,t)}},W={metadataURL:"",metadataPing:"",pageURL:"",pageTitle:"",hasMetaPingFired:!1,_isWithinIFrame:function e(){try{return t.self!=t.top}catch(e){return!0}},_isWithinFriendlyIFrame:function e(){try{return!!t.top.document}catch(e){return!1}},_isReferrerAvailable:function e(){try{return""!==t.document.referrer}catch(e){return!1}},evalPageData:function e(){var a=this,n="";if(a._isWithinIFrame()){if(a._isWithinFriendlyIFrame())return{pageUrl:t.top.location.href,pageTitle:t.top.document.title};if(!a._isWithinFriendlyIFrame())return{pageUrl:n=a._isReferrerAvailable()?t.document.referrer:t.location.href,pageTitle:t.document.title}}return{pageUrl:t.top.location.href,pageTitle:t.top.document.title}},handleMetadataPingReset:function e(){var t=this;t.hasMetaPingFired&&(t.hasMetaPingFired=!1)}},H=(X=k.name,Y=e,function(e,a){try{Y.browserSafeAddEventListener({element:t,eventType:"NSDK_Initialized",func:function t(n){try{n.detail.instanceName===X&&e(n.detail.instance)}catch(e){a&&a(e.message)}}})}catch(e){a&&a(e.message)}}),X,Y;function $(t){!E&&t&&("blur"===t.type||"scroll"===t.type||"touchstart"===t.type||"blur"!==t.type&&e.GLCFG.browser.hidden())&&(k.ggPM("flush","0"),E=!0,j("Data flushed on "+t.type+" event"))}return k.isHybrid=J.isHybrid,k.fpSession=Q,k.metadataCtrl=W,k.getOptOutStatus=function(){return u},k.getId=function(){return P},k.GetName=function(){return k.name},k.Initialized=function(e){if(void 0===e)return k.initialized;k.initialized=e},k.getPauseQueueCount=function(){return Object&&Object.keys?Object.keys(_).length:0},k.disablePauseTimeout=function(){k._pauseTimeoutEnabled&&(k._pauseTimeoutEnabled=!1,j("Player "+k.id+" pause timeout disabled"))},k.enablePauseTimeout=function(){k._pauseTimeoutEnabled||(k._pauseTimeoutEnabled=!0,j("Player "+k.id+" pause timeout enabled"))},k.removeAsset=function(e){void 0!==e&&e.target.param1.hasOwnProperty("assetid")&&(k.staticPage={})},k.handleUpdateOfStatic=function(t){if(t&&t.target){var a=t.target.evtInfo;if(e.GLCFG&&e.GLCFG.PLDCR&&void 0!==a&&a.param1.hasOwnProperty("assetid")&&k.getId()===t.target.plid){var n=e.GLCFG.PLDCR.latestDcrTick();0!==Object.keys(k.staticPage).length&&k.staticPage.hasOwnProperty("id")&&k.staticPage.id===a.param1.assetid&&k.staticPage.hasOwnProperty("lastTimeStamp")?k.staticPage.lastTimeStamp=n:k.staticPage={id:a.param1.assetid,evtParams:a,startTimeStamp:n,lastTimeStamp:n}}}},k.addListener=function(e,t){t&&(void 0===l[e]&&(l[e]=[]),l[e].push(t))},k.removeListener=function(e,t){if(k._listeners[e]instanceof Array)for(var a=l[e],n=0,r=a.length;n<r;n++)if(a[n]===t){a.splice(n,1);break}},k.handleSessionReset=function(e){if(e&&e.target&&e.target.hasOwnProperty("plid")&&P===e.target.plid&&e.target.hasOwnProperty("passedFdata")&&e.target.passedFdata.hasOwnProperty("_dataArrObj")&&e.target.passedFdata._dataArrObj){var t={plid:e.target.plid,fData:e.target.passedFdata._dataArrObj,content:{},ad:{},err:0};if(0===G(t).err&&e.target.passedFdata.hasOwnProperty("_currVidType")){var a=e.target.passedFdata._currVidType,n=Object.keys(t.content).length>0,r=Object.keys(t.ad).length>0;(n||r)&&("sessionreset"!==e.target.passedFdata.get("nolPriv_prevEventState")&&k.ggPM("57","1","sessionReset","",""),n&&!_.hasOwnProperty("content")&&(_.content={evt:"pauseloadmeta",meta:t.content,plid:e.target.plid}),"ad"===a&&r&&!_.hasOwnProperty("ad")&&(_.ad={evt:"pauseloadmeta",meta:t.ad,plid:e.target.plid}))}}k._listeners&&k._listeners.fireEvent&&k._listeners.fireEvent("debug",{type:"debug",msg:"Fired handleSessionReset from ggcmb."})},k.flushPauseEventQueue=function(){if(!(Object.keys(_).length<=0)){if(k.modules.PLDPR){var e;for(e in _)B("ggPM",{evtInfo:{eventType:_[e].evt,param1:_[e].meta},id:P});_={}}k._listeners&&k._listeners.fireEvent&&k._listeners.fireEvent("debug",{type:"debug",msg:"Fired flushPauseEventQueue from ggcmb."})}},k.cloneObj=function(e){return e&&"object"===(void 0===e?"undefined":_typeof(e))?JSON.parse(JSON.stringify(e)):e},k.ggPM=function(t,a,n,r,i){if(k.initialized)if(null!=t&&""!==t){var o={};if(o.eventType=t,o.param1=k.cloneObj(a),o.param2=k.cloneObj(n),o.param3=k.cloneObj(r),o.param4=k.cloneObj(i),!k.modules.allModInit||2!=k.modules.PLCMB&&2!=k.modules.PLDPR)v.push(o);else{if(k.emptyQueue(),J._activated&&J.isHybrid())return void J.ggPM(t,a,n,r,i);var s=JSON.parse(JSON.stringify(o));B("ggPM",{evtInfo:o,id:P}),q.trigger(k,s)}}else e&&e.GLCFG&&e.GLCFG._listeners&&e.GLCFG._listeners.fireEvent("sendError",{data:{type:17,msg:"Error in ggPM() - Missing event type param in ggPM"},id:P,timeStamp:Date.now()})},k.trackEvent=function(t,a,n){function r(){return Array.isArray(g)&&g.length>0?(a||g.push(k.cloneObj(t)),g.splice(0,1)[0]||{}):t}if(t&&"object"===(void 0===t?"undefined":_typeof(t))){if(!k.initialized||!k.state)return;if(!(t=r()))return;if(J._activated&&J.isHybrid())return void J.trackEvent(t,a,n);k.state.transition(t,function(e,t,a,n,r){var i={inferred:!0};i.eventType=e,i.param1=k.cloneObj(t),i.param2=k.cloneObj(a),i.param3=k.cloneObj(n),i.param4=k.cloneObj(r);var o=JSON.parse(JSON.stringify(i));B("ggPM",{evtInfo:i,id:P}),q.trigger(k,o)}),q.trigger(k,{eventType:"trackEvent",param1:t})}else e&&e.GLCFG&&e.GLCFG._listeners&&e.GLCFG._listeners.fireEvent("sendError",{data:{type:17,msg:"Error in trackEvent() - Missing trackEvent metadata object"},id:P,timeStamp:Date.now()})},k.getConfigParams=function(){return s},k.emptyQueue=function(){if(!(v.length<=0&&g.length<=0)&&k.modules.allModInit&&k.configLoaded&&(k.modules.PLCMB||k.modules.PLDPR)){for(var e=0,t=v.length;e<t;e+=1){var a=JSON.parse(JSON.stringify(v[e]));J._activated&&J.isHybrid()?J.ggPM(a.eventType,a.param1,a.param2,a.param3,a.param4):(B("ggPM",{evtInfo:v[e],id:P}),q.trigger(k,a))}for(v=[];g.length>0;)g[0]&&k.trackEvent(g[0],!0)}},k.getContainer=function(){return b},k.getClientConfig=function(){return e.configs?e.configs[k.apid]:null},k.getBaseDomain=function(e){return e.nol_GLOBALS&&void 0!==e.nol_GLOBALS.enableCookielessDomain&&"true"===e.nol_GLOBALS.enableCookielessDomain.toString().toLowerCase()?".nmrodam.com/":".imrworldwide.com/"},k.ggInitialize=function(t,i,o,l,d,c){if(k.initialized)return S.Promise(function(e,t){e(k)});q.init();var u,v,g,_="us";if(b=c,s={ggParams:t,uid:o,oldFlashDetect:l,detectBrowser:d,nol_playerId:P},(void 0===t?"undefined":_typeof(t))==_typeof(String())){for(v=(u=e.loadXmlString("<vi>"+t+"</vi>")).firstChild.firstChild,g=0,t={};v&&void 0!==v&&g<20;)null!==v.firstChild&&(t[v.nodeName]=v.firstChild.nodeValue),v=v.nextSibling,g++;s.ggParams=t}s.ggParams.nol_sdkDebug=e.controllers.util.queryParam("nol_sdkDebug")||s.ggParams.nol_sdkDebug,k.Initialized(!0),k.apid=s.ggParams.apid;var E=k.getClientConfig(),D=k.getBaseDomain(E);m=(t.nsdkv?t.nsdkv.toString():"")||m,f=(t.nsdkvOverride?t.nsdkvOverride.toString():"")||f,_=t.sfcode||_,L=t.coreaddress?a+"//"+t.coreaddress+"/":A(D),y=t.sdkconfigver||y,k.nsdkvOverride=s.ggParams.nsdkvOverride,k.sdkv=m,k.sdkvForConfig=k.useCachedConfig&&k.sdkv&&3===k.sdkv.length?"bj."+k.sdkv[0]+"."+k.sdkv[1]+"."+k.sdkv[2]:y,O=e.GLCFG.getPrefProtocol(E)+":"+(t.coreaddress?n+_:"//secure-"+_)+D;var I=s&&s.ggParams,M=I.optout,F=I.nol_sdkDebug,N=I.enableFpid,R=E&&E.nol_GLOBALS,B=R.nol_useroptout,V=R.enableCookielessDomain,G=R.enableFpid,z=R.nol_emmsfcodelist,K=R.nol_tagMap.nol_defaults,X=void 0!==B&&"true"===B.toString().toLowerCase()||void 0!==M&&["true","1","t","y","yes"].indexOf(M.toString().toLowerCase())>-1;void 0!==G&&(G=G.toString().toLowerCase(),Q.allowCookies="true"===G),void 0!==N&&(N=N.toString().toLowerCase(),["true","1","yes"].indexOf(N)>-1&&(Q.allowCookies=!0),["false","0","no"].indexOf(N)>-1&&(Q.allowCookies=!1));try{k.optout=X}catch(e){}function Y(){k.sessionId=e.GLCFG&&e.GLCFG.generateGUID?e.GLCFG.generateGUID():k.id,Q.cookieTTL=K.nol_fpid_ttl,V=void 0!==V&&"true"===V.toString().toLowerCase(),X=X||e.GLCFG.getOptoutCookie(),Q.get("nol_fpid")||Q.create(K.nol_fpid_ttl,_,z);var t=E&&E.nol_GLOBALS,a=t.syncPingFlagList,n=t.nol_appid,i=t.nol_metadataURL,o=void 0!==F&&["debug","info","warn","true"].indexOf(F.toString().toLowerCase())>-1,l=[];if(a&&Array.isArray(a))for(var d=0;d<a.length;d++)if(E.nol_GLOBALS.hasOwnProperty(a[d])){var c=E.nol_GLOBALS[a[d]];c=e.GLCFG.evalTemplate(c,{nol_prefProtocol:e.GLCFG.getPrefProtocol(E),nol_appid:n}),l.push(c)}else j("Info - Sync ping url key "+a[d]+" not present in config.");var u,m="",f=W.evalPageData(),v=f.pageUrl,g=f.pageTitle;W.pageURL=v,W.pageTitle=g,i&&(W.metadataURL=i);try{u={nol_prefProtocol:e.GLCFG.getPrefProtocol(E),nol_sfcode:_,nol_userSessionId:k.sessionId,nol_appid:E.nol_GLOBALS.nol_appid,nol_sdkDelimiter:E.nol_GLOBALS.nol_sdkDelimiter,nol_sdkv:k.sdkvForConfig,nol_bldv:e.GLCFG.getBaseBuildVer()+h,nol_useroptout:k.optout?"true":""},Q.allowCookies&&(Q.appendSessParams(u),Q.firstCreated||Q.update("lastAccessed",Date.now().toString(),K.nol_fpid_ttl)),m=e.GLCFG.evalTemplate(E.nol_GLOBALS.nol_tagMap.nol_defaults.nol_sessionURL.replace("&retry=|![nol_retry]!|",""),u)}catch(e){}return m||(m=O+p+(E&&E.nol_GLOBALS&&E.nol_GLOBALS.nol_dfltAppid?E.nol_GLOBALS.nol_dfltAppid:s.ggParams.apid)+"&sessionId="+k.sessionId+"&c16=sdkv,"+k.sdkvForConfig),k.useCachedConfig&&e.getLib("GLCFG")?e.GLCFG&&(e.GLCFG.sfCode=_,e.GLCFG.browser.ready(function(){x(e.getLib("GLCFG")),e.GLCFG.loadChildren(k.sdkv),e.GLCFG.waitForLS(function(){if(e.GLCFG.lsController.maskedRequestWithRetry(m),V||X||!l.length||e.GLCFG.queryCookie(w,l,o),e.GLCFG.queryCookies(),e.GLCFG.PLDCR&&E.nol_GLOBALS&&(E.nol_GLOBALS.nol_idleTimeout&&(e.GLCFG.PLDCR.nol_idleTimeout=E.nol_GLOBALS.nol_idleTimeout),E.nol_GLOBALS.nol_maxTickDelta&&(e.GLCFG.PLDCR.nol_maxTickDelta=E.nol_GLOBALS.nol_maxTickDelta)),e.GLCFG.PLDPR){var t=e.GLCFG.PLDPR.initFromConfig(E,k.id,!0);e.PLSIVT&&(k.sivt=new e.PLSIVT(k,t))}})})):(U({url:m,currRetry:C,maxRetry:T,retryDelay:1e3}),e.loadLib("GLCFG",L+"novms/js/2/configs/"+r,e,x)),S.Promise(H)}e.GLCFG.initLS(L),k.state=e.PLSTM?new e.PLSTM.stateMachine(k.id,E):null,J.isHybrid()?J.ggInitialize(t,i,o,l,d,c,Y):Y()},k.isViewable=function(){return!1},e.browserSafeAddEventListener({element:t,eventType:"beforeunload",useCapture:!1,func:function e(t){k&&k.staticPage&&R(k.staticPage)}}),e.GLCFG.flushEvent=$,e.GLCFG.browser.addEventListener({element:t,eventType:"blur",useCapture:!1,func:$}),e.GLCFG.browser.addEventListener({element:t.document,eventType:e.GLCFG.browser.visibilityEvent,useCapture:!1,func:$}),e.GLCFG.browser.addEventListener({element:t,eventType:"pagehide",useCapture:!1,func:$}),k}}(e.NOLBUNDLE=e.NOLBUNDLE||{},e),e.NOLBUNDLE.registerLib("GLCFG",function(t){var a=t.GLCFG&&t.GLCFG.getBaseBuildVer?t.GLCFG:{},n,r,i,o=0,s=30,l=0,d=!0,c=864e5,u,p=(u=e.NOLBUNDLE).getAddress(),m=u.getVersion();a.sfCode=a.sfCode||"",a.optoutCookie=a.optoutCookie||"",a.gotOptoutCookie=a.gotOptoutCookie||!1;var f,v={PLDPR:{path:p+"novms/js/2/pldpr"+(f={600:{PLVBL:600,PLSIVT:600,PLSTM:600,PLDPR:600,PLDCR:600,PLLOG:600,CONFIG:300,BASEVER:"6.0.0",LSID:!0},"600_rc":{PLVBL:600,PLSIVT:600,PLSTM:600,PLDPR:600,PLDCR:600,PLLOG:600,CONFIG:300,BASEVER:"6.0.0.rc",LSID:!0},601:{PLVBL:600,PLSIVT:600,PLSTM:600,PLDPR:600,PLDCR:600,PLCMB:600,PLLOG:600,CONFIG:300,BASEVER:"6.0.1",LSID:!0},"601_rc":{PLVBL:600,PLSIVT:600,PLSTM:600,PLDPR:600,PLDCR:600,PLCMB:600,PLLOG:600,CONFIG:300,BASEVER:"6.0.1.rc",LSID:!0},501:{PLVBL:600,PLSIVT:600,PLSTM:600,PLDPR:600,PLDCR:600,PLCMB:600,PLLOG:600,CONFIG:300,BASEVER:"6.1.0",LSID:!1,FORCEFOCUS:!0,CADENCEOVERRIDE:30},615:{PLVBL:600,PLSIVT:600,PLSTM:600,PLDPR:600,PLDCR:600,PLLOG:600,CONFIG:300,BASEVER:"6.1.5",LSID:!1,FORCEFOCUS:!0,CADENCEOVERRIDE:30}})[m].PLDPR+".js",status:0},PLDCR:{path:p+"novms/js/2/pldcr"+f[m].PLDCR+".js",status:0},PLVBL:{path:p+"novms/js/2/plvbl"+f[m].PLVBL+".js",status:0},PLSIVT:{path:p+"novms/js/2/plsivt"+f[m].PLSIVT+".js",status:0},PLCMB:{path:p+"novms/js/2/plcmb"+f[m].PLCMB+".js",status:0},PLLOG:{path:p+"novms/js/2/pllog"+f[m].PLLOG+".js",status:0},PLSTM:{path:p+"novms/js/2/plstm"+f[m].PLSTM+".js",status:0}},g="6.0.0.17";function _(t,n){if(t&&n){var r=n.path;e.NOLBUNDLE.loadLib(t,r,a,function(){n.status=1})}}function y(e){try{if(!e.modules.allModInit){var t=!0,n=k(e.sdkv);for(r in v)if(v.hasOwnProperty(r)&&n.hasOwnProperty(r)&&!a[r]){if("PLLOG"!==r&&2!==e.modules[r]){t=!1;break}}else;t&&(e.modules.allModInit=!0,a._listeners.fireEvent("flushQueue"))}}catch(e){}}function h(){void 0!==e.document.referrer&&e.document.referrer.length>0&&a.postMsgAvail&&e.parent.postMessage("nolInit",0===e.location.protocol.indexOf("http")?e.document.referrer:"*"),s<l?e.clearInterval(o):l+=1}function P(){if(!(this instanceof P))return new P;a._listeners={},this.addListener=function(e,t,n,r){var i=n||!1;void 0===a._listeners[e]&&(a._listeners[e]=[]),a._listeners[e].push({cb:t,remove:i,player:r,single:!1})},this.addListenerSingle=function(e,t,n,r){var i=n||!1,o,s,l;void 0===a._listeners[e]&&(a._listeners[e]=[]);var d=!1;for(s=0,l=(o=a._listeners[e]).length;s<l;s++)if(o[s].single){d=!0;break}d||a._listeners[e].push({cb:t,remove:i,player:r,single:!0})},this.fireEvent=function(e,t){if(e){var n,r,i;if("string"==typeof e&&(e={type:e}),e.target||(e.target=t),!e.type)throw new Error("Event object missing 'type' property.");if(a._listeners[e.type]instanceof Array){for(r=0,i=(n=a._listeners[e.type]).length;r<i;r++)n[r]&&n[r].cb.call(this,e);for(r=0;r<n.length;r++)n[r]&&n[r].remove&&(!e.target||!n[r].player||e.target&&n[r].player&&(e.target.nol_playerId===n[r].player.id||e.target.id===n[r].player.id))&&(n.splice(r,1),r--)}}},this.removeListener=function(e,t){var n,r,i;if(a._listeners[e]instanceof Array)for(r=0,i=(n=a._listeners[e]).length;r<i;r++)if(n[r]&&n[r].cb===t){n[r].remove=!0;break}}}a.gIframe=a.gIframe||a.getLS?a.getLS():null,a.gIframeReady=a.gIframeReady||!1,a.thirdPartyData=a.thirdPartyData||{cookiesEnabled:!0,localStorageEnabled:!0},a.postMsgAvail=a.postMsgAvail||"function"==typeof e.postMessage,a.availModules=a.availModules||{},a._players=a._players||{},a.id=a.id||"0",a.childGlobal=a.childGlobal||!!e&&e.top!==e.self,a.parentFound=a.parentFound||!1,a.loadChildren=function(e){var t,n=k(e||m);for(t in v)v.hasOwnProperty(t)&&n.hasOwnProperty(t)&&!a[t]&&_(t,v[t])};var a=a||(t.GLCFG&&t.GLCFG.getBaseBuildVer?t.GLCFG:{}),u=u||e.NOLBUNDLE,f=f||{},m=m||u.getVersion(),S="nol_lsid",b=b||"OPT_OUT",T=T||"IMRID",C="nol_emmURL",O,L,a,w,E;function k(e){return f[e]||f[m]||{}}function D(e){if(void 0!==a.gIframe&&a.postMsgAvail)return void 0===e?void a.lsController.store.get(S):void a.lsController.store.set(S,e)}function I(){for(var e=0;e<a.onLSReady.length;e++)a.onLSReady[e]();a.onLSReady=[]}function A(e){if(void 0!==a.gIframe&&a.postMsgAvail)return void 0===e?void a.lsController.store.get(C):void a.lsController.store.set(C,e)}function M(e){if(e){var t,n;for(t in a.availModules)a.availModules.hasOwnProperty(t)&&1==e.init&&(e.modules[t]||(e[t]=new a.availModules[t].init(e),e.modules[t]=1));var r=e.getConfigParams().nol_playerId;a._players[r]=e,a._listeners.addListener("tick",function(){y(a._players[r])})}}function F(e){e&&a._listeners.fireEvent(e.eventTrigger,e)}if(a.EMMURL=a.EMMURL||"",a.gotCookies=a.gotCookies||!1,a.gotEMMURL=a.gotEMMURL||!1,a.onLSReady=a.onLSReady||[],a.localStorageId=a.localStorageId||"-1",a.gotLSID=a.gotLSID||!1,a.queryCookie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a.gIframe.contentWindow.postMessage(JSON.stringify({nolSentFromBsdk:!0,key:e,eventType:"get",storageType:"cookie",data:t,debug:n}),a.gIframe.src)},a.initLS=function(t,n,r,i){try{r=r||1,a.gIframe||(a.gIframe=e.document.createElement("iframe"),a.gIframe.src=t+"novms/html/ls.html",a.gIframe.height=0,a.gIframe.width=0,a.gIframe.style.display="none",a.gIframe.id="lsframe",a.gIframe.onload=function(){D(),a.getEmmUrl(),a.queryCookie(b),a.queryCookies(),a.gIframeReady=!0,a.thirdPartyData.cookiesEnabled=navigator.cookieEnabled,i&&i(),a.browser.localStorageSupported()||(a.thirdPartyData.localStorageEnabled=!1,I())},e&&e.document&&e.document.body?e.document.body.appendChild(a.gIframe):r<=15&&setTimeout(function(){a._listeners.fireEvent("debug",{type:"debug",msg:"document.body not ready - delaying to add ls.html"}),a.initLS(t,n,r++,i)},r<=1?0:300))}catch(t){e.console&&e.console.error&&e.console.error("Unable to register ls.html - "+t.message)}},a.getEmmUrl=function(){return A()},a.setEmmUrl=function(e){e&&(a.EMMURL=e,A(a.EMMURL))},a.queryCookies=function(){a.gIframe.contentWindow.postMessage(JSON.stringify({nolSentFromBsdk:!0,key:"cookieall",eventType:"get",storageType:"cookie"}),a.gIframe.src)},a.getOptoutCookie=function(){return a.optoutCookie},a.isOptout=function(){return a.optoutCookie&&"true"===a.optoutCookie.toLowerCase()||"OPTOUT"===a.localStorageId},a.cookie=a.cookie||(O={cookie:""},{cache:(L={setCache:function e(t){O.cookie=t},getCookies:function e(){if(O.cookie)try{var t=O.cookie.split(";"),a=null,n={};return t.forEach(function(e){a=e.trim().split("="),n[a[0].trim()]=a[1].trim()}),n}catch(e){}return{}},get:function e(t){var a;return t?L.getCookies()[t]:""}}).setCache,get:L.get,all:L.getCookies}),a.getIfLsidShouldSend=function(){var e=k(m);if(e.hasOwnProperty("LSID"))return e.LSID},a.lsReady=function(){return a.gIframeReady},a.getLS=function(){return a.gIframe},a.getLsId=function(){return"string"!=typeof a.localStorageId?a.localStorageId.toString():a.localStorageId},a.setLsId=function(e,t,n,r){if(n)var i=n.sessionId,o=n.fpSession;var s=(r=r&&Array.isArray(r)?r.concat(["secure-eu","eu","eu-uat","eu-cert"]):["secure-eu","eu","eu-uat","eu-cert"]).indexOf(a.sfCode.toLowerCase())>-1;if(null!=e&&e!==a.getLsId()&&(a.localStorageId=e,D(a.localStorageId)),t){if(a.postMsgAvail&&s){if(a.userAgent.isAndroid()&&a.userAgent.androidVersion().major<6){var l="";a.userAgent.isChrome()?(l="intent://nuid/"+i+"/#Intent;action=android.intent.action.VIEW;scheme=nielsenwebid;component=com.nielsen.odm/.NielsenMobileMeter;end",a.lsController.request(l),a._listeners.fireEvent("info",{type:"info",msg:"Firing EMM intent "+l})):(l="nielsenwebid://nuid/"+i,a.lsController.request(l),a._listeners.fireEvent("info",{type:"info",msg:"Firing EMM deep link "+l})),a.setEmmUrl(l)}else a.lsController.maskedRequest(t),a._listeners.fireEvent("info",{type:"info",msg:"Firing EMM link "+t}),a.setEmmUrl(t);o&&!o.firstCreated&&o.update("lastEMMPing",Date.now().toString(),o.cookieTTL)}s||""===o.get("nol_fpid").split("|")[3]||o.update("lastEMMPing","",o.cookieTTL)}},a.waitForLS=function(e){a.thirdPartyData.localStorageEnabled?e&&(a.gIframeReady&&"-1"!==a.localStorageId?e():a.onLSReady.push(e)):e&&e()},a.lsController={store:{get:function t(n){a.gIframe.contentWindow.postMessage(JSON.stringify({nolSentFromBsdk:!0,key:n,eventType:"get",storageType:"local"}),0===e.location.protocol.indexOf("http")?a.gIframe.src:"*")},set:function t(n,r){a.gIframe.contentWindow.postMessage(JSON.stringify({nolSentFromBsdk:!0,key:n,eventType:"set",storageType:"local",data:r}),0===e.location.protocol.indexOf("http")?a.gIframe.src:"*")}},request:function t(n){a.gIframe.contentWindow.postMessage(JSON.stringify({nolSentFromBsdk:!0,eventType:"reqUsingFrame",data:{url:n}}),0===e.location.protocol.indexOf("http")?a.gIframe.src:"*")},maskedRequest:function t(n){a.gIframe.contentWindow.postMessage(JSON.stringify({nolSentFromBsdk:!0,eventType:"maskref",data:{url:n}}),0===e.location.protocol.indexOf("http")?a.gIframe.src:"*")},maskedRequestWithRetry:function t(n){a.gIframe.contentWindow.postMessage(JSON.stringify({nolSentFromBsdk:!0,eventType:"maskrefretry",data:{url:n}}),0===e.location.protocol.indexOf("http")?a.gIframe.src:"*")}},(a=a||(t.GLCFG&&t.GLCFG.getBaseBuildVer?t.GLCFG:{})).checkUserAgent=function(t){var a=e?e.navigator.userAgent.toLowerCase():null;return void 0!==t&&t.length>0&&(a=-1!==a.search(t)),a},a.userAgent=function(t){var n=null,r="";try{n=t&&t.navigator?t.navigator.userAgent:null,r=n?n.toLowerCase():""}catch(e){}return{get:function e(){return n},isInstagram:function e(){return-1!==r.search(/(?=.*instagram).*/)},isFB:function e(){return-1!==r.search(/(?=.*\[fb).*/)},isChrome:function e(){return-1!==r.search(/(?=.*chrome).*/)||-1!==r.search(/(?=.*crios).*/)},isMac:function e(){return-1!==r.search(/(?=.*macintosh).*/)},isIOS:function e(){return-1!==r.search(/(?=.*iphone).*/)||-1!==r.search(/(?=.*ipad).*/)},isIpad:function t(){return/iPad/.test(navigator.userAgent)||"iPad"===navigator.platform||"MacIntel"===navigator.platform&&void 0!==e.DeviceMotionEvent&&void 0!==document.webkitFullscreenElement&&void 0!==navigator.maxTouchPoints&&navigator.maxTouchPoints>1},isIpadOS:function e(){return a.userAgent.isIpad()&&!1===/iPad/.test(navigator.userAgent)},iosVersion:function e(){var t,a=new RegExp(/os\s([0-9_]*?)\s/gi).exec(r),n=a&&a.length>1?a[1].split("_"):[];return{version:a&&a.length>0?a[1].replace(/_/gi,"."):"",major:n&&n.length>0?parseInt(n[0]):0,minor:n&&n.length>1?parseInt(n[1]):0,patch:n&&n.length>2?parseInt(n[2]):0}},isAndroid:function e(){return-1!==r.search(/(?=.*android).*/)},androidVersion:function e(){var t,a=new RegExp(/android (.*?);/gi).exec(r),n=a&&a.length>1?a[1].split("."):[];return{version:a&&a.length>0?a[1]:"",major:n&&n.length>0?parseInt(n[0]):0,minor:n&&n.length>1?parseInt(n[1]):0,patch:n&&n.length>2?parseInt(n[2]):0}}}}(e),a.browser=function(){var t={ready:!1},a=["webkit","moz","ms","o"],n="hidden",r="visibilitychange",i="visibilityState";function o(e){void 0!==e.element&&(e.element.addEventListener?e.element.addEventListener(e.eventType,e.func,e.useCapture):e.element.attachEvent&&e.element.attachEvent("on"+e.eventType,e.func))}function s(e){null!=e&&null!=e&&null!=e.element&&null!=e.element&&(e.element.removeEventListener?e.element.removeEventListener(e.eventType,e.func,e.useCapture):e.element.detachEvent&&e.element.detachEvent("on"+e.eventType,e.func))}function l(a){function n(){s({element:document,eventType:"DOMContentLoaded",func:r}),s({element:e,eventType:"load",func:r})}function r(){n(),t.ready=!0,a&&a()}t.ready?a&&a():"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?e.setTimeout(r):(o({element:document,eventType:"DOMContentLoaded",func:r}),o({element:e,eventType:"load",func:r}))}function d(){try{var t=e.localStorage;if(null!=t)return!0}catch(e){return!1}return!1}function c(){return document[n]||"hidden"===document[i]}function u(){try{return e.self!=e.top}catch(e){return!0}}function p(){try{return!!e.top.document}catch(e){return!1}}if(void 0===document[n])for(var m=0;m<a.length;m++)if(a[m]+"Hidden"in document){n=a[m]+"Hidden",r=a[m]+"visibilitychange",i=a[m]+"visibilityState";break}return{addEventListener:o,removeEventListener:s,ready:l,localStorageSupported:d,hidden:c,isWithinIFrame:u,isWithinFriendlyIFrame:p,visibilityEvent:r}}(),a.getBaseBuildVer=function(){var e=k(m);if(e.hasOwnProperty("BASEVER"))return e.BASEVER+"."},a.getConfigVer=function(){var e=k(m);if(e.hasOwnProperty("CONFIG"))return e.CONFIG},a.globalHasFocus=function(){var t,a=k(u.getVersionOverride());if(a&&a.hasOwnProperty("FORCEFOCUS")&&(!e.document||void 0===e.document.visibilityState||"visible"===e.document.visibilityState))return a.FORCEFOCUS;if(e.top!=e.self)return!1;var n=!1;try{n=e.top.document.hasFocus()}catch(e){n=!0}return n},a.getSdkvGlobal=function(e,t){if(e&&t){var a=k(e);return!(!a||!a.hasOwnProperty(t))&&a[t]}},a.isValidJson=function(e){var t;try{t=JSON.parse(e)}catch(e){return!1}return"Object"==typeof t},a.getPrefProtocol=function(t){try{return a.userAgent.isIOS()&&a.userAgent.iosVersion().major>=9?"https":0===e.location.protocol.indexOf("https")?"https":t.nol_GLOBALS.hasOwnProperty("nol_prefProtocol")&&-1!==["http","https"].indexOf(t.nol_GLOBALS.nol_prefProtocol)?t.nol_GLOBALS.nol_prefProtocol:t.nol_GLOBALS.nol_tagMap&&t.nol_GLOBALS.nol_tagMap.nol_defaults&&t.nol_GLOBALS.nol_tagMap.nol_defaults.nol_prefProtocol&&-1!==["http","https"].indexOf(t.nol_GLOBALS.nol_tagMap.nol_defaults.nol_prefProtocol)?t.nol_GLOBALS.nol_tagMap.nol_defaults.nol_prefProtocol:"https"}catch(e){return"https"}},a.generateGUID=function(){var e="0123456789abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",t=29;function a(){var e;do{e=Math.floor(992*Math.random())}while(e>61);return e}for(var n="",r=0;r<29;r++)n+=e.charAt(a());return n+=Math.floor((new Date).getTime()/1e3)},a.evalTemplate=function(e,t){if(e&&t){var a={regex:/\|\![\w\W]*?(\!\|)/g,length:2},n=e.match(a.regex),r="";if(n)for(var i=0;i<n.length;i++)(r=n[i].match(/\w+/gi))&&r.length>0&&"nol_imrid"!==r[0].toLowerCase()&&(e=e.replace(n[i],t[r[0]]||""))}return e},a.bindPlayers=function(e,t){var n;if(t)for(n in a.availModules[t]=e,a._players)a._players.hasOwnProperty(n)&&1==a._players[n].init&&(a._players[n].modules[t]||(a._players[n][t]=new e.init(a._players[n]),a._players[n].modules[t]=2))},a.enablePlayer=function(e,t){e&&t&&(a._players[e].modules[t]=2)},a.registerListener=function(e,t){t&&(t.addListener(e,function(t){a._listeners.fireEvent(e,t)}),t.init||(t.init=1,M(t)))},a.updateReceiver=function(e){F(e)},a._listeners=a._listeners||new P,a.configController={_keys:{cmsKey:"nol_clientCMSmap",cmsMapRegex:/[\[\{<\(\}\]>\)]/g},getGlobal:function e(t,a){return t&&a&&a.nol_GLOBALS&&a.nol_GLOBALS[t]||""},cmsMap:function e(t,a){var n=this.getGlobal(this._keys.cmsKey,a),r;return n&&n[t]?n[t].replace(this._keys.cmsMapRegex,"").toString():""}},a.scriptController={inject:function e(t,a,n,r){if(t){var i=document.createElement("script");i.setAttribute("type","text/javascript"),i.async=!0,i.onload=n,i.onerror=r,i.src=t;var o=null,a;if("script"===(a=a||"")){if((o=document.getElementsByTagName("script"))&&o.length>0)return void(a=o[0].parentNode.insertBefore(i,o[0]))}else if("head"===a){if((o=document.getElementsByTagName("header"))&&o.length>0)return void(a=o[0].appendChild(i))}else if(a&&"string"==typeof a){if((a=document.getElementById(a))&&"function"==typeof a.insertBefore)return void a.parentNode.insertBefore(i,a)}else if(a&&"object"===(void 0===a?"undefined":_typeof(a))&&a.appendChild&&"function"==typeof a.appendChild)return void a.appendChild(i);document.body.appendChild(i)}}},!a.built){try{u.browserSafeAddEventListener({element:e,eventType:"message",func:function t(n){var r,i,s;if(n.data&&"nolInit"==n.data&&e.self===e.top)for(i=(r=e.document.getElementsByTagName("iframe")).length-1;i>=0;i--)r[i].contentWindow==n.source&&a.postMsgAvail&&n.source.postMessage({nolSentFromBsdk:!0,key:"nolChildReg",parentID:a.id},0===e.location.protocol.indexOf("http")?n.origin:"*");else n.data&&n.data.key&&"nolChildReg"==n.data.key&&(a.parentFound=!0,e.clearInterval(o));if(n.origin&&n.origin.indexOf("imrworldwide.com")>-1&&n.data||n.data&&n.data.nolSentFromLs){var l=""!==n.data.val&&a.isValidJson(n.data.val)?JSON.parse(n.data.val):n.data.val,d=""!==n.data.key&&a.isValidJson(n.data.key)?JSON.parse(n.data.key):n.data.key;if(n.data&&"lsget"===n.data.type)switch(d){case S:var c="OPTOUT"===String(l).toUpperCase();a.setLsId(l),a.gotLSID=!0,a._listeners.fireEvent("sendOptOutStatus",c);break;case C:a.EMMURL=l,a.gotEMMURL=!0}else if(n.data&&"lsbroadcast"===n.data.type){var u=String(n.data.newValue).toUpperCase().replace(/"/gi,"");switch(d){case S:u&&"-1"!==u||D(u=a.generateGUID()),a.localStorageId=u,a._listeners.fireEvent("sendOptOutStatus","OPTOUT"===u);break;case C:a.EMMURL=l}}else if(n.data&&"cookieget"===n.data.type)switch(d){case b:a.optoutCookie=l,a.gotOptoutCookie=!0;break;case"cookieall":a.cookie.cache(l),a.gotCookies=!0,a._listeners.fireEvent("debug",{type:"debug",msg:"Got cookie value ='"+l+"'"})}else if(n.data&&"lsdisabled"===n.data.type&&1==n.data.val)switch(a.thirdPartyData.localStorageEnabled=!1,n.data.key){case S:a.gotLSID=!0;break;case C:a.gotEMMURL=!0}else n.data&&"cookiedisabled"===n.data.type&&1==n.data.val&&(a.thirdPartyData.cookiesEnabled=!1,n.data.key===b&&(a.gotOptoutCookie=!0,a.gotCookies=!0));a.gotLSID&&a.gotEMMURL&&a.gotOptoutCookie&&a.gotCookies&&I()}},useCapture:!1}),void 0===n&&(n=e.setInterval(function(e){a._listeners.fireEvent("tick",e)},1e3)),a.childGlobal&&(o=e.setInterval(function(){h()},500))}catch(e){}a.CryptoJS=a.CryptoJS||function(e,t){var a={},n=a.lib={},r=function e(){},i=n.Base={extend:function e(t){r.prototype=this;var a=new r;return t&&a.mixIn(t),a.hasOwnProperty("init")||(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function e(){var t=this.extend();return t.init.apply(t,arguments),t},init:function e(){},mixIn:function e(t){for(var a in t)t.hasOwnProperty(a)&&(this[a]=t[a]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function e(){return this.init.prototype.extend(this)}},o=n.WordArray=i.extend({init:function e(a,n){a=this.words=a||[],this.sigBytes=n!=t?n:4*a.length},toString:function e(t){return(t||l).stringify(this)},concat:function e(t){var a=this.words,n=t.words,r=this.sigBytes;if(t=t.sigBytes,this.clamp(),r%4)for(var i=0;i<t;i++)a[r+i>>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535<n.length)for(i=0;i<t;i+=4)a[r+i>>>2]=n[i>>>2];else a.push.apply(a,n);return this.sigBytes+=t,this},clamp:function t(){var a=this.words,n=this.sigBytes;a[n>>>2]&=4294967295<<32-n%4*8,a.length=e.ceil(n/4)},clone:function e(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function t(a){for(var n=[],r=0;r<a;r+=4)n.push(4294967296*e.random()|0);return new o.init(n,a)}}),s=a.enc={},l=s.Hex={stringify:function e(t){var a=t.words;t=t.sigBytes;for(var n=[],r=0;r<t;r++){var i=a[r>>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function e(t){for(var a=t.length,n=[],r=0;r<a;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new o.init(n,a/2)}},d=s.Latin1={stringify:function e(t){var a=t.words;t=t.sigBytes;for(var n=[],r=0;r<t;r++)n.push(String.fromCharCode(a[r>>>2]>>>24-r%4*8&255));return n.join("")},parse:function e(t){for(var a=t.length,n=[],r=0;r<a;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new o.init(n,a)}},c=s.Utf8={stringify:function e(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function e(t){return d.parse(unescape(encodeURIComponent(t)))}},u=n.BufferedBlockAlgorithm=i.extend({reset:function e(){this._data=new o.init,this._nDataBytes=0},_append:function e(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function t(a){var n=this._data,r=n.words,i=n.sigBytes,s=this.blockSize,l=i/(4*s),l;if(a=(l=a?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*s,i=e.min(4*a,i),a){for(var d=0;d<a;d+=s)this._doProcessBlock(r,d);d=r.splice(0,a),n.sigBytes-=i}return new o.init(d,i)},clone:function e(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});n.Hasher=u.extend({cfg:i.extend(),init:function e(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function e(){u.reset.call(this),this._doReset()},update:function e(t){return this._append(t),this._process(),this},finalize:function e(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function e(t){return function(e,a){return new t.init(a).finalize(e)}},_createHmacHelper:function e(t){return function(e,a){return new p.HMAC.init(t,a).finalize(e)}}});var p=a.algo={};return a}(Math),w=a.CryptoJS,E=w.lib.WordArray,w.enc.Base64={stringify:function e(t){var a=t.words,n=t.sigBytes,r=this._map;t.clamp(),t=[];for(var i=0;i<n;i+=3)for(var o=(a[i>>>2]>>>24-i%4*8&255)<<16|(a[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|a[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;4>s&&i+.75*s<n;s++)t.push(r.charAt(o>>>6*(3-s)&63));if(a=r.charAt(64))for(;t.length%4;)t.push(a);return t.join("")},parse:function e(t){var a=t.length,n=this._map,r;(r=n.charAt(64))&&-1!=(r=t.indexOf(r))&&(a=r);for(var r=[],i=0,o=0;o<a;o++)if(o%4){var s=n.indexOf(t.charAt(o-1))<<o%4*2,l=n.indexOf(t.charAt(o))>>>6-o%4*2;r[i>>>2]|=(s|l)<<24-i%4*8,i++}return E.create(r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){function t(e,t,a,n,r,i,o){return((e=e+(t&a|~t&n)+r+o)<<i|e>>>32-i)+t}function n(e,t,a,n,r,i,o){return((e=e+(t&n|a&~n)+r+o)<<i|e>>>32-i)+t}function r(e,t,a,n,r,i,o){return((e=e+(t^a^n)+r+o)<<i|e>>>32-i)+t}function i(e,t,a,n,r,i,o){return((e=e+(a^(t|~n))+r+o)<<i|e>>>32-i)+t}for(var o=a.CryptoJS,s,l=(s=o.lib).WordArray,d=s.Hasher,s=o.algo,c=[],u=0;64>u;u++)c[u]=4294967296*e.abs(e.sin(u+1))|0;s=s.MD5=d.extend({_doReset:function e(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function e(a,o){for(var s=0;16>s;s++){var l,d=a[l=o+s];a[l]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var s=this._hash.words,l=a[o+0],d=a[o+1],u=a[o+2],p=a[o+3],m=a[o+4],f=a[o+5],v=a[o+6],g=a[o+7],_=a[o+8],y=a[o+9],h=a[o+10],P=a[o+11],S=a[o+12],b=a[o+13],T=a[o+14],C=a[o+15],O,L,w,E,O=t(O=s[0],L=s[1],w=s[2],E=s[3],l,7,c[0]),E=t(E,O,L,w,d,12,c[1]),w=t(w,E,O,L,u,17,c[2]),L=t(L,w,E,O,p,22,c[3]),O=t(O,L,w,E,m,7,c[4]),E=t(E,O,L,w,f,12,c[5]),w=t(w,E,O,L,v,17,c[6]),L=t(L,w,E,O,g,22,c[7]),O=t(O,L,w,E,_,7,c[8]),E=t(E,O,L,w,y,12,c[9]),w=t(w,E,O,L,h,17,c[10]),L=t(L,w,E,O,P,22,c[11]),O=t(O,L,w,E,S,7,c[12]),E=t(E,O,L,w,b,12,c[13]),w=t(w,E,O,L,T,17,c[14]),L,O=n(O,L=t(L,w,E,O,C,22,c[15]),w,E,d,5,c[16]),E=n(E,O,L,w,v,9,c[17]),w=n(w,E,O,L,P,14,c[18]),L=n(L,w,E,O,l,20,c[19]),O=n(O,L,w,E,f,5,c[20]),E=n(E,O,L,w,h,9,c[21]),w=n(w,E,O,L,C,14,c[22]),L=n(L,w,E,O,m,20,c[23]),O=n(O,L,w,E,y,5,c[24]),E=n(E,O,L,w,T,9,c[25]),w=n(w,E,O,L,p,14,c[26]),L=n(L,w,E,O,_,20,c[27]),O=n(O,L,w,E,b,5,c[28]),E=n(E,O,L,w,u,9,c[29]),w=n(w,E,O,L,g,14,c[30]),L,O=r(O,L=n(L,w,E,O,S,20,c[31]),w,E,f,4,c[32]),E=r(E,O,L,w,_,11,c[33]),w=r(w,E,O,L,P,16,c[34]),L=r(L,w,E,O,T,23,c[35]),O=r(O,L,w,E,d,4,c[36]),E=r(E,O,L,w,m,11,c[37]),w=r(w,E,O,L,g,16,c[38]),L=r(L,w,E,O,h,23,c[39]),O=r(O,L,w,E,b,4,c[40]),E=r(E,O,L,w,l,11,c[41]),w=r(w,E,O,L,p,16,c[42]),L=r(L,w,E,O,v,23,c[43]),O=r(O,L,w,E,y,4,c[44]),E=r(E,O,L,w,S,11,c[45]),w=r(w,E,O,L,C,16,c[46]),L,O=i(O,L=r(L,w,E,O,u,23,c[47]),w,E,l,6,c[48]),E=i(E,O,L,w,g,10,c[49]),w=i(w,E,O,L,T,15,c[50]),L=i(L,w,E,O,f,21,c[51]),O=i(O,L,w,E,S,6,c[52]),E=i(E,O,L,w,p,10,c[53]),w=i(w,E,O,L,h,15,c[54]),L=i(L,w,E,O,d,21,c[55]),O=i(O,L,w,E,_,6,c[56]),E=i(E,O,L,w,C,10,c[57]),w=i(w,E,O,L,v,15,c[58]),L=i(L,w,E,O,b,21,c[59]),O=i(O,L,w,E,m,6,c[60]),E=i(E,O,L,w,P,10,c[61]),w=i(w,E,O,L,u,15,c[62]),L=i(L,w,E,O,y,21,c[63]);s[0]=s[0]+O|0,s[1]=s[1]+L|0,s[2]=s[2]+w|0,s[3]=s[3]+E|0},_doFinalize:function t(){var a=this._data,n=a.words,r=8*this._nDataBytes,i=8*a.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296);for(n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),a.sigBytes=4*(n.length+1),this._process(),n=(a=this._hash).words,r=0;4>r;r++)i=n[r],n[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return a},clone:function e(){var t=d.clone.call(this);return t._hash=this._hash.clone(),t}}),o.MD5=d._createHelper(s),o.HmacMD5=d._createHmacHelper(s)}(Math),function(){var e=a.CryptoJS,t,n=(t=e.lib).Base,r=t.WordArray,t,i=(t=e.algo).EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function e(t){this.cfg=this.cfg.extend(t)},compute:function e(t,a){for(var n,i=(n=this.cfg).hasher.create(),o=r.create(),s=o.words,l=n.keySize,n=n.iterations;s.length<l;){d&&i.update(d);var d=i.update(t).finalize(a);i.reset();for(var c=1;c<n;c++)d=i.finalize(d),i.reset();o.concat(d)}return o.sigBytes=4*l,o}});e.EvpKDF=function(e,t,a){return i.create(a).compute(e,t)}}(),a.CryptoJS.lib.Cipher||function(e){var t,n=(t=a.CryptoJS).lib,r=n.Base,i=n.WordArray,o=n.BufferedBlockAlgorithm,s=t.enc.Base64,l=t.algo.EvpKDF,d=n.Cipher=o.extend({cfg:r.extend(),createEncryptor:function e(t,a){return this.create(this._ENC_XFORM_MODE,t,a)},createDecryptor:function e(t,a){return this.create(this._DEC_XFORM_MODE,t,a)},init:function e(t,a,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=a,this.reset()},reset:function e(){o.reset.call(this),this._doReset()},process:function e(t){return this._append(t),this._process()},finalize:function e(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function e(t){return{encrypt:function e(a,n,r){return("string"==typeof n?v:f).encrypt(t,a,n,r)},decrypt:function e(a,n,r){return("string"==typeof n?v:f).decrypt(t,a,n,r)}}}});n.StreamCipher=d.extend({_doFinalize:function e(){return this._process(!0)},blockSize:1});var c=t.mode={},u=function t(a,n,r){var i=this._iv;i?this._iv=e:i=this._prevBlock;for(var o=0;o<r;o++)a[n+o]^=i[o]},p=(n.BlockCipherMode=r.extend({createEncryptor:function e(t,a){return this.Encryptor.create(t,a)},createDecryptor:function e(t,a){return this.Decryptor.create(t,a)},init:function e(t,a){this._cipher=t,this._iv=a}})).extend();p.Encryptor=p.extend({processBlock:function e(t,a){var n=this._cipher,r=n.blockSize;u.call(this,t,a,r),n.encryptBlock(t,a),this._prevBlock=t.slice(a,a+r)}}),p.Decryptor=p.extend({processBlock:function e(t,a){var n=this._cipher,r=n.blockSize,i=t.slice(a,a+r);n.decryptBlock(t,a),u.call(this,t,a,r),this._prevBlock=i}}),c=c.CBC=p,p=(t.pad={}).Pkcs7={pad:function e(t,a){for(var n,n,r=(n=(n=4*a)-t.sigBytes%n)<<24|n<<16|n<<8|n,o=[],s=0;s<n;s+=4)o.push(r);n=i.create(o,n),t.concat(n)},unpad:function e(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},n.BlockCipher=d.extend({cfg:d.cfg.extend({mode:c,padding:p}),reset:function e(){d.reset.call(this);var t,a=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,a&&a.words)},_doProcessBlock:function e(t,a){this._mode.processBlock(t,a)},_doFinalize:function e(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var a=this._process(!0)}else a=this._process(!0),t.unpad(a);return a},blockSize:4});var m=n.CipherParams=r.extend({init:function e(t){this.mixIn(t)},toString:function e(t){return(t||this.formatter).stringify(this)}}),c=(t.format={}).OpenSSL={stringify:function e(t){var a=t.ciphertext;return((t=t.salt)?i.create([1398893684,1701076831]).concat(t).concat(a):a).toString(s)},parse:function e(t){var a=(t=s.parse(t)).words;if(1398893684==a[0]&&1701076831==a[1]){var n=i.create(a.slice(2,4));a.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},f=n.SerializableCipher=r.extend({cfg:r.extend({format:c}),encrypt:function e(t,a,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r);return a=i.finalize(a),i=i.cfg,m.create({ciphertext:a,key:n,iv:i.iv,algorithm:t,mode:i.mode,padding:i.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function e(t,a,n,r){return r=this.cfg.extend(r),a=this._parse(a,r.format),t.createDecryptor(n,r).finalize(a.ciphertext)},_parse:function e(t,a){return"string"==typeof t?a.parse(t,this):t}}),t=(t.kdf={}).OpenSSL={execute:function e(t,a,n,r){return r||(r=i.random(8)),t=l.create({keySize:a+n}).compute(t,r),n=i.create(t.words.slice(a),4*n),t.sigBytes=4*a,m.create({key:t,iv:n,salt:r})}},v=n.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:t}),encrypt:function e(t,a,n,r){return n=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize),r.iv=n.iv,(t=f.encrypt.call(this,t,a,n.key,r)).mixIn(n),t},decrypt:function e(t,a,n,r){return r=this.cfg.extend(r),a=this._parse(a,r.format),n=r.kdf.execute(n,t.keySize,t.ivSize,a.salt),r.iv=n.iv,f.decrypt.call(this,t,a,n.key,r)}})}(),function(){for(var e=a.CryptoJS,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],o=[],s=[],l=[],d=[],c=[],u=[],p=[],m=[],f=[],v=0;256>v;v++)f[v]=128>v?v<<1:v<<1^283;for(var g=0,_=0,v=0;256>v;v++){var y,y=(y=_^_<<1^_<<2^_<<3^_<<4)>>>8^255&y^99;r[g]=y,i[y]=g;var h=f[g],P=f[h],S=f[P],b=257*f[y]^16843008*y;o[g]=b<<24|b>>>8,s[g]=b<<16|b>>>16,l[g]=b<<8|b>>>24,d[g]=b,b=16843009*S^65537*P^257*h^16843008*g,c[y]=b<<24|b>>>8,u[y]=b<<16|b>>>16,p[y]=b<<8|b>>>24,m[y]=b,g?(g=h^f[f[f[S^h]]],_^=f[f[_]]):g=_=1}var T=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=t.extend({_doReset:function e(){for(var t,a=(t=this._key).words,n=t.sigBytes/4,t=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],o=0;o<t;o++)if(o<n)i[o]=a[o];else{var s=i[o-1];o%n?6<n&&4==o%n&&(s=r[s>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s]):(s=r[(s=s<<8|s>>>24)>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s],s^=T[o/n|0]<<24),i[o]=i[o-n]^s}for(a=this._invKeySchedule=[],n=0;n<t;n++)o=t-n,s=n%4?i[o]:i[o-4],a[n]=4>n||4>=o?s:c[r[s>>>24]]^u[r[s>>>16&255]]^p[r[s>>>8&255]]^m[r[255&s]]},encryptBlock:function e(t,a){this._doCryptBlock(t,a,this._keySchedule,o,s,l,d,r)},decryptBlock:function e(t,a){var n=t[a+1];t[a+1]=t[a+3],t[a+3]=n,this._doCryptBlock(t,a,this._invKeySchedule,c,u,p,m,i),n=t[a+1],t[a+1]=t[a+3],t[a+3]=n},_doCryptBlock:function e(t,a,n,r,i,o,s,l){for(var d=this._nRounds,c=t[a]^n[0],u=t[a+1]^n[1],p=t[a+2]^n[2],m=t[a+3]^n[3],f=4,v=1;v<d;v++)var g=r[c>>>24]^i[u>>>16&255]^o[p>>>8&255]^s[255&m]^n[f++],_=r[u>>>24]^i[p>>>16&255]^o[m>>>8&255]^s[255&c]^n[f++],y=r[p>>>24]^i[m>>>16&255]^o[c>>>8&255]^s[255&u]^n[f++],m=r[m>>>24]^i[c>>>16&255]^o[u>>>8&255]^s[255&p]^n[f++],c=g,u=_,p=y;g=(l[c>>>24]<<24|l[u>>>16&255]<<16|l[p>>>8&255]<<8|l[255&m])^n[f++],_=(l[u>>>24]<<24|l[p>>>16&255]<<16|l[m>>>8&255]<<8|l[255&c])^n[f++],y=(l[p>>>24]<<24|l[m>>>16&255]<<16|l[c>>>8&255]<<8|l[255&u])^n[f++],m=(l[m>>>24]<<24|l[c>>>16&255]<<16|l[u>>>8&255]<<8|l[255&p])^n[f++],t[a]=g,t[a+1]=_,t[a+2]=y,t[a+3]=m},keySize:8});e.AES=t._createHelper(n)}(),a.built=!0}if(e.gg_nol_CallBack)for(r=0,i=e.gg_nol_CallBack.length;r<i;r+=1)e.gg_nol_CallBack[r]&&e.gg_nol_CallBack[r].callBack&&e.gg_nol_CallBack[r].callBack(a);return a}),e.NOLBUNDLE.registerLib("PLSTM",function(t){if(!t.PLSTM){var a=t.GLCFG||t;t.PLSTM={},ns=e.NOLBUNDLE,paramsPassed={},stateObject={current:null,static:null,content:null,state:null},BUILDVERSION="6.0.0.5",stateEvents={playhead:["playhead","loadmetadata"],pause:["pause","6"],complete:["complete","oncomplete","56","57","staticend","end"],adstop:["adstop"]};var n={clone:function e(t){return JSON.parse(JSON.stringify(t))},essentialKeys:function e(t){if(t&&"object"===(void 0===t?"undefined":_typeof(t)))for(var e=["type","event","playheadPosition","metadata","id3Data","content","ad","static","assetid"],a=Object.keys(t),n=0;n<a.length;n++)for(var r=0;r<e.length;r++)if(a[n].toLowerCase()===e[r].toLowerCase()&&a[n]!==e[r]){var i=this;t[e[r]]=this.clone(t[a[n]]),delete t[a[n]]}},parseType:function e(t){return t&&"string"==typeof t.type?(t.type||"").toLowerCase():t.type},parseEvent:function e(t){if(t&&t.event&&"string"==typeof t.event.toString())for(var a=Object.keys(stateEvents),n=0,r=a.length;n<r;n++)if(stateEvents[a[n]].indexOf(t.event.toLowerCase())>-1)return a[n];return null},hasData:function e(t,a){if(t&&t.metadata&&a){var n=t.metadata[a];return!(!n||null==n||"{}"===JSON.stringify(n))}return!1},copyData:function e(t,a,r){return r&&!r.metadata&&(r.metadata={}),t&&a&&n.hasData(a,t)&&r&&(r.metadata[t]=JSON.parse(JSON.stringify(a.metadata[t]))),r},objDiff:function e(t,a){var n={},r={};if(t&&(n=Object.keys(t).sort()),a&&(r=Object.keys(a).sort()),JSON.stringify(n)!==JSON.stringify(r))return!0;for(var i=0,o=r.length;i<o;i++)if(t[r[i]]!==a[r[i]])return!0;return!1},getDataKey:function e(t,a,n){return t&&a&&t.metadata&&t.metadata[a]&&t.metadata[a][n]||""},getData:function e(t,a){if(t&&t.metadata&&a)return t.metadata[a]},isValid:function e(t){return null!=t&&""!==t},isSame:function e(t,a){var n=Object.keys(t).sort();if(n!==Object.keys(a).sort())return!1;for(var r=0,i=n.length,o="";r<i;r++)if(t[n[r]]!==a[n[r]])return!1;return!0},mergeState:function e(t,a){var r=JSON.parse(JSON.stringify(a));return t&&(n.hasData(r,"content")||n.copyData("content",t,r),n.hasData(r,"ad")||n.copyData("ad",t,r),n.hasData(r,"static")||n.copyData("static",t,r)),r},evalMiddlewares:function e(t,a,n){var r=Object.keys(t),i=a.state;return r.forEach(function(e){i=t[e](i,a.prevStateEvent,a.curStateEvent,a.config,n)}),a.state=i,a}},r=function e(t,a){var r=n.clone(a);delete r.prevState;var i={isState:function e(t){if(this.state&&t){if("string"==typeof t)return this.state.toLowerCase()===t.toLowerCase();if("object"===(void 0===t?"undefined":_typeof(t)))return t.indexOf(this.state)>-1}return!1}};return{transitionType:t,event:"",state:r.state||"idle",prevState:r,hasPrevStatic:r.hasNewStatic||!1,hasNewStatic:!1,isNewStatic:!1,hasPrevContent:r.hasNewContent||!1,hasNewContent:!1,isNewContentAsset:!1,contentMetaChangedButThereIsNoAssetId:!1,isContentAfterComplete:!1,hasPrevAd:r.hasNewAd||!1,hasNewAd:!1,isNewAdAsset:!1,hasId3:!1,scroll:!1,isVA:!1,lastPh:r.lastPh,isState:i.isState}},i={start:function e(t,i,s,l){try{var d=new r(n.parseType(s),t),c=Object.keys(o),u=t,p=i,m=s;d.isVA=l&&l.nol_GLOBALS&&"601"===l.nol_GLOBALS.nol_nsdkv,d.transitionType=n.parseType(s),d.event=n.parseEvent(s);var f=c.map(function(e){d[e]=o[e]&&o[e](d,p,m,l)||!1}).filter(function(e){return!(""===e||null==e)});return d}catch(e){a._listeners.fireEvent("warn",{type:"warn",msg:"TrackEvent transition start error - "+e.message})}return t},preTransitionEvents:function e(t,r,i,o,s){try{var l=t.lastPh;(t.isStaticChange||t.isStaticComplete)&&s("staticend",n.getData(r||{},"static")||0),(t.isAdChange||t.isAdComplete)&&(t&&"complete"===t.event?s("57",l):s("stop",l)),t.isContentChange||t.isContentComplete?s("end",l):("pause"===t.event||t.contentToAdTransition||t.adToContentTransition)&&s("pause",l)}catch(e){a._listeners.fireEvent("warn",{type:"warn",msg:"TrackEvent pre-transition error - "+e.message})}return t},transition:function e(t,n,r,i){try{"static"!==t.transitionType&&("pause"===t.event?t.state="ad"===t.transitionType?"adpaused":"contentpaused":"ad"===t.transitionType&&["adstop","complete"].indexOf(t.event)>-1?t.state="adcomplete":"content"===t.transitionType&&"complete"===t.event?t.state="contentcomplete":"playhead"===t.event&&(t.state="ad"===t.transitionType?"ad":"content"))}catch(e){a._listeners.fireEvent("warn",{type:"warn",msg:"TrackEvent transition error - "+e.message})}return t},postTransitionEvents:function e(t,r,i,o,s){try{var l=n.getData(i,"content")||n.getData(r,"content"),d=n.getData(i,"static")||n.getData(r,"static"),c=t.lastPh;t.isNewStaticAsset&&s("staticstart",n.getData(i,"static")),t.scroll&&(t.hasPrevStatic||t.hasNewStatic)&&s("onpaginate",d),t.inAdContentMetaUpdate&&"playhead"===t.event&&i.playheadPosition&&s("setplayheadposition",i.playheadPosition),(t.isNewContentAsset||t.inAdContentMetaUpdate||t.adToContentTransition||t.isContentAfterComplete||t.contentMetaChangedButThereIsNoAssetId&&t.hasId3)&&s("loadmetadata",l),t.contentMetaChanged&&!t.isNewContentAsset&&s("updatemetadata",l),"ad"===t.transitionType&&(t.isNewAdAsset||t.contentToAdTransition)?s("loadmetadata",n.getData(i,"ad")):!t.isNewContentAsset&&t.inAdContentMetaUpdate&&s("changecontext","ad"),t.hasId3&&s("sendid3",i.id3Data),null!==i.volume&&void 0!==i.volume&&s("volume",i.volume),t.isOtt&&s("updateott",i.ottData),t.isBuffering&&s("buffering",c),i.buttonEvent&&s("buttonevent",i.buttonEvent),"playhead"===t.event&&i.playheadPosition&&!t.inAdContentMetaUpdate&&("content"===t.transitionType&&(t.hasNewContent||t.hasPrevContent)||"ad"===t.transitionType&&(t.hasNewAd||t.hasPrevAd))&&s("setplayheadposition",i.playheadPosition)}catch(e){a._listeners.fireEvent("warn",{type:"warn",msg:"TrackEvent post-transition error - "+e.message})}return t},end:function e(t,r,i,o){try{i.metadata||(i.metadata={}),t.isNewAdAsset||!t.isAdComplete&&!t.isContentChange?!t.hasNewAd&&t.hasPrevAd&&n.copyData("ad",r,i):i.metadata.ad={},(!t.isNewContentAsset&&t.isContentComplete||!t.hasNewContent&&t.hasPrevContent)&&n.copyData("content",r,i),t.isStaticComplete?i.metadata.static={}:!t.hasNewStatic&&t.hasPrevStatic&&n.copyData("static",r,i)}catch(e){a._listeners.fireEvent("warn",{type:"warn",msg:"TrackEvent transition end error - "+e.message})}return t}},o={hasPrevStatic:function e(t,a,r,i){return n.hasData(a,"static")},hasPrevContent:function e(t,a,r,i){return n.hasData(a,"content")},hasPrevAd:function e(t,a,r,i){return n.hasData(a,"ad")},hasNewStatic:function e(t,a,r,i){return n.hasData(r,"static")},hasNewContent:function e(t,a,r,i){return n.hasData(r,"content")},hasNewAd:function e(t,a,r,i){return n.hasData(r,"ad")},isNewStaticAsset:function e(t,r,i,o){if(!1===t.hasNewStatic)return!1;var s=a.configController.cmsMap("nol_assetid",o),l=n.getDataKey(r,"static",s),d=n.getDataKey(i,"static",s);return null!=d&&""!==d&&(!t.hasPrevStatic||d!==l)},isNewContentAsset:function e(t,r,i,o){if(!1===t.hasNewContent)return!1;var s=a.configController.cmsMap("nol_assetid",o),l=n.getDataKey(r,"content",s),d=n.getDataKey(i,"content",s);return null!=d&&""!==d&&(!t.hasPrevContent||d!==l)},isContentAfterComplete:function e(t,a,n,r){try{return a&&"complete"===a.event&&n&&"playhead"===n.event&&"content"===n.type}catch(e){return!1}},isNewAdAsset:function e(t,r,i,o){if(!1===t.hasNewAd)return!1;var s=a.configController.cmsMap("nol_assetid",o),l=n.getDataKey(r,"ad",s),d=n.getDataKey(i,"ad",s),c=a.configController.cmsMap("nol_adIdx",o)||"adIdx",u=n.getDataKey(r,"ad",c),p=n.getDataKey(i,"ad",c);return null!=d&&""!==d&&(!t.hasPrevAd||d!==l)||t.hasPrevAd&&p!==u||n.getDataKey(r,"ad","type")!==n.getDataKey(i,"ad","type")},contentMetaChanged:function e(t,a,r,i){return!1!==t.hasNewContent&&!1!==t.hasPrevContent&&n.objDiff(n.getData(a,"content"),n.getData(r,"content"))},hasNewContentEx:function e(t,a,r,i){return!1!==t.hasNewContent&&n.objDiff(n.getData(a,"content"),n.getData(r,"content"))},contentMetaChangedButThereIsNoAssetId:function e(t,r,i,o){var s=a.configController.cmsMap("nol_assetid",o),l=n.getDataKey(i,"content",s),d=null==l||""===l;return t.hasNewContentEx&&d},adMetaChanged:function e(t,a,r,i){return!1!==t.hasNewAd&&!1!==t.hasPrevAd&&n.objDiff(n.getData(a,"ad"),n.getData(r,"ad"))},hasId3:function e(t,a,n,r){return null!==n.id3Data&&void 0!==n.id3Data&&""!==n},scroll:function e(t,a,n,r){return"static"===t.transitionType&&n.scroll&&["true","1","y","yes"].indexOf(n.scroll.toString().toLowerCase())>-1},isStaticChange:function e(t){return t.isNewStaticAsset&&t.hasPrevStatic},isStaticComplete:function e(t){return"static"===t.transitionType&&"complete"===t.event},isContentChange:function e(t){return t.isNewContentAsset&&t.hasPrevContent&&!t.isState("contentcomplete")&&"playhead"===t.event},adToContentTransition:function e(t){return t.isState(["ad","adpaused","adcomplete"])&&"content"===t.transitionType&&"playhead"===t.event&&(t.hasPrevContent||t.hasNewContent)},contentToAdTransition:function e(t,a,n){return t.isState(["content","contentpaused"])&&"ad"===t.transitionType&&"playhead"===t.event&&t.hasNewAd},isContentComplete:function e(t,a,n){return"content"===t.transitionType&&t.isState(["content","contentpaused"])&&"complete"===t.event},isAdChange:function e(t){return t.isNewAdAsset&&t.hasPrevAd&&t.isState(["ad","adpaused"])&&!t.isState("adcomplete")&&"playhead"===t.event},isAdComplete:function e(t){return t.isState(["ad","adpaused"])&&("complete"===t.event||t.isAdChange)||"adstop"===t.event&&t.hasPrevAd},inAdContentMetaUpdate:function e(t){return(t.contentMetaChanged||t.isNewContentAsset)&&"ad"===t.transitionType},isOtt:function e(t,a,n){return null!==n.ottData&&void 0!==n.ottData&&""!==n.ottData},isBuffering:function e(t,a,n){return null!==n.buffering&&void 0!==n.buffering&&""!==n.buffering&&["1","true","t","y","yes"].indexOf(n.buffering.toString().toLowerCase())},lastPh:function e(t,a,r){return n.isValid(a.playheadPosition)?a.playheadPosition:t.lastPh||0}};return t.PLSTM.stateMachine=function(e,t){var r={config:t,curStateEvent:{metadata:{}},prevStateEvent:{medata:{}},state:{}};return{transition:function t(o,s){try{if(o&&"object"===(void 0===o?"undefined":_typeof(o))&&(o=n.clone(o),n.essentialKeys(o)),a._listeners.fireEvent("debug",{type:"debug",msg:"TrackEvent called pli="+e+" transitioning type "+o.type+" for event "+o.event+" state object: "+JSON.stringify(o)}),o&&"object"===(void 0===o?"undefined":_typeof(o))){var l=this;o.type&&"string"==typeof o.type&&(o.type=o.type.toLowerCase()),o.event&&"string"==typeof o.event&&(o.event=o.event.toLowerCase());var d=n.parseType(o),c=n.parseEvent(o);if(o.metadata&&n.essentialKeys(o.metadata),!d)return"playhead"===c&&void 0===n.getData(o,"content")&&void 0===n.getData(o,"ad")?void this.checkID3(o,s):(a._listeners.fireEvent("sendError",{data:{type:17,msg:'Error in trackEvent() - Missing "type" parameter in trackEvent metadata object'},id:e,timeStamp:Date.now()}),void this.checkID3(o,s));if(-1===["","content","ad","static"].indexOf(d))return a._listeners.fireEvent("sendError",{data:{type:17,msg:'Error in trackEvent() - Invalid "type" parameter "'+JSON.stringify(d)+'" in trackEvent metadata object'},id:e,timeStamp:Date.now()}),void this.checkID3(o,s);if(!c)return a._listeners.fireEvent("sendError",{data:{type:17,msg:'Error in trackEvent() - Missing "event" parameter in trackEvent metadata object'},id:e,timeStamp:Date.now()}),void this.checkID3(o,s);if(!this.checkMetadata(o,s))return;r.prevStateEvent=r.curStateEvent?n.clone(r.curStateEvent):{metadata:{content:null,ad:null,static:null}},r.curStateEvent=n.clone(o),r=n.evalMiddlewares(i,r,function(t,n){a._listeners.fireEvent("debug",{type:"debug",msg:"TrackEvent pli="+e+' firing event "'+t+'"'}),s&&"function"==typeof s&&s(t,n)})}}catch(t){a._listeners.fireEvent("warn",{type:"warn",msg:"TrackEvent pli="+e+" error - "+t.message})}},getState:function e(){return r.state},checkID3:function e(t,a){return!!t.id3Data&&(a&&"function"==typeof a&&a("55",t.id3Data),!0)},checkMetadata:function t(i,o){var s=this;""===i.id3Data&&delete i.id3Data;var l=n.getData(i,"content"),d=n.getData(i,"ad"),c=n.getData(i,"static");if(l&&"object"===(void 0===l?"undefined":_typeof(l))){if(n.essentialKeys(l),l.type&&"string"==typeof l.type&&-1!==["preroll","midroll","postroll","ad"].indexOf(l.type.toLowerCase())&&"content"===i.type)return a._listeners.fireEvent("sendError",{data:{type:17,msg:'Error in trackEvent() - Valid ad type "'+l.type+'" parameter in content trackEvent metadata object'},id:e,timeStamp:Date.now()}),this.checkID3(i,o),!1;l.type="content",l.assetid||a._listeners.fireEvent("warn",{type:17,msg:"Warning in trackEvent() - no assetId in content metadata, will not be credited",id:e,timeStamp:Date.now()})}if(d&&"object"===(void 0===d?"undefined":_typeof(d))){if(n.essentialKeys(d),"content"===d.type&&"ad"===i.type)return a._listeners.fireEvent("sendError",{data:{type:17,msg:'Error in trackEvent() - Valid content type "'+d.type+'" parameter in ad trackEvent metadata object'},id:e,timeStamp:Date.now()}),this.checkID3(i,o),!1;d.type&&"string"==typeof d.type&&-1!==["preroll","midroll","postroll","ad"].indexOf(d.type.toLowerCase())||(d.type="ad"),d.assetid||a._listeners.fireEvent("warn",{type:17,msg:"Warning in trackEvent() - no assetId in ad metadata, will not be credited",id:e,timeStamp:Date.now()})}return c&&"object"===(void 0===c?"undefined":_typeof(c))&&(n.essentialKeys(c),c.type="static",c.assetid||a._listeners.fireEvent("warn",{type:17,msg:"Warning in trackEvent() - no assetId in static metadata, will not be credited",id:e,timeStamp:Date.now()})),!(r&&r.curStateEvent&&r.curStateEvent.metadata&&!n.getData(i,i.type)&&!r.curStateEvent.metadata[i.type])||(a._listeners.fireEvent("sendError",{data:{type:17,msg:"Error in trackEvent() - Have not recieved "+i.type+" metadata and an event was called for "+i.type},id:e,timeStamp:Date.now()}),this.checkID3(i,o),!1)}}},t.PLSTM}}),e.NOLBUNDLE.registerLib("PLVBL",function(t){if(!t.PLVBL){var a="6.0.1",n="nol_viewability",r="nol_vizuURL",i="nol_vsData",o="nol_scrnSize",s="nol_vidSize",l="nol_winSize",d="nol_nodeId",c="nol_auThreshold",u="nol_volume",p="nol_auData",m="nol_id3IntrvlGp",f="nol_viTickOffset",v=function t(){return[e.screen.width,e.screen.height]},g=function e(t,a){return t?"width"===a?t.clientWidth:"height"===a?t.clientHeight:[t.clientWidth,t.clientHeight]:""},_=function t(){var a,n;return[e.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,e.innerHeight||document.documentElement.clientHeight||document.body.clientHeight]},y=t.GLCFG||t;return t.PLVBL=function(e,a,_){var h={initialized:!1,_defaults:{nol_viewability:"[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]",nol_auThreshold:"[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]",nol_volume:t.configController.getGlobal(u,a.getClientConfig())||"100",nol_viTickOffset:2},viReadyQueue:[],clientConfig:a.getClientConfig(),globals:a.getConfigParams().ggParams,cmsMap:null,nodeId:"",node:null,viewAPI:null,viewRatios:null,vizuURL:"",viewParams:null,volume:null,auThresholds:[],intervalGap:2,state:"idle",queueTicks:_||!1,ticker:null,tickerInterval:1e3,screenSeries:"",viewSeries:[],elementSeries:"",viewportSeries:"",audibilitySeries:[]},P={log:function t(a,n){y._listeners.fireEvent(a,{type:a,msg:e.get("nol_comment")+" - "+n})},incrementSeries:function e(t,a){var n=null;t?n=t[t.length-1]:t=[],n&&2===n.length&&n[0]===a?n[1]++:t.push([a,1])},clearSeries:function e(t){h.viewSeries=[],h.screenSeries="",h.elementSeries=[],h.viewportSeries=[],h.audibilitySeries=[],t?P.registerVIDataReady(function(){h.viewAPI&&h.viewAPI.resetMeasurement()},"clear"):h.viewAPI&&h.viewAPI.resetMeasurement()},setDataSeries:function e(t,a){t&&"function"==typeof t.set&&(t.set(i,a?"[]":JSON.stringify(h.viewSeries)),t.set(l,a?"[]":JSON.stringify(h.viewportSeries)),t.set(s,a?"[]":JSON.stringify(h.elementSeries)),t.set(o,a?"":h.screenSeries),t.set(p,a?"[]":JSON.stringify(h.audibilitySeries)))},getDataSeries:function e(){var t={};return t[i]=h.viewSeries,t[l]=h.viewportSeries,t[s]=h.elementSeries,t[o]=h.screenSeries,t[p]=h.audibilitySeries,t},getNodeId:function e(){var t=y.configController.cmsMap(d,h.clientConfig);return h.globals?h.globals[t]:""},getVolumeParam:function e(){var t=y.configController.cmsMap(u,h.clientConfig)||u;return h.globals?h.globals[t]:""},evalUpperThreshold:function e(t,a){if(null!=t&&""!==t&&t>=0&&a&&a.length>0)for(var n=0,r=a.length;n<r;n++){if(t<a[n]&&0==n)return 0;if(n==r-1&&t>=a[n])return parseFloat(a[n]);if(t<a[n])return parseFloat(a[n-1])}return 0},evalVolume:function e(t){if(null!=t&&t.toString().match(/^\d*\.?\d*$/gi)&&"NaN"!==parseFloat(t).toString()&&"NaN"!==parseInt(t).toString()){var a=t;return!a.toString().match(/\d*\.\d+/i)&&(parseFloat(a)>1||"1"===a.toString())&&(a=parseFloat(a)/100),a=Math.round(100*P.evalUpperThreshold(parseFloat(a),h.auThresholds))}return null},getThreshold:function e(a,n){if(a&&n){try{var r=t.configController.getGlobal(a,n.clientConfig),i="string"==typeof r?JSON.parse(r):r,o=!0;if(i&&"object"===(void 0===i?"undefined":_typeof(i))&&i.length>0){for(var s=null,l=0,d=i.length;l<d;l++)if(!i[l].toString().match(/^\d*\.?\d*$/gi)){o=!1;break}if(o)return i}}catch(e){P.log("warn","Viewabilty config theshold for "+a+" is invalid. Default threshold will be used")}var c=n._defaults?n._defaults[a]:[];return"string"==typeof c?JSON.parse(c):c}return[]},registerVIDataReady:function e(t,a){t&&"function"==typeof t&&(h.viReadyQueue||(h.viReadyQueue=[]),h.viReadyQueue.push({name:a,cb:t}))},flushVIDataReadyQueue:function e(){if(h.viReadyQueue&&h.viReadyQueue.length>0)for(var t=null,a=0;a<h.viReadyQueue.length;a++)if("function"==typeof(t=h.viReadyQueue[a].cb))try{t(),h.viReadyQueue.splice(0,1)}catch(e){}}},S={init:function a(i){try{if(i){P.log("debug","Initializing viewability module"),h.nodeId=i,h.node=document.getElementById(i),h.viewRatios=P.getThreshold(n,h),h.vizuURL=y.PLDPR.resolveExpression(y.configController.getGlobal(r,h.clientConfig),e),h.auThresholds=P.getThreshold(c,h);var o=t.configController.getGlobal(u,h.clientConfig);h._defaults[u]=o&&"NaN"!==parseInt(o).toString()?o:h._defaults[u],h.volume=P.evalVolume(P.getVolumeParam()||parseInt(h._defaults[u])),h.intervalGap=e.isProductOf("mtvr")?t.configController.getGlobal(m,h.clientConfig):t.configController.getGlobal(f,h.clientConfig)||h._defaults[f],h.viewParams={externalTick:1,instantOn:0,node:h.node,width:g(h.node,"width"),height:g(h.node,"height"),ratio:h.viewRatios,tickOffset:parseInt(h.intervalGap),ffThreshold:parseInt(h.intervalGap)},h.vizuURL&&h.node?(y.scriptController.inject(h.vizuURL,h.nodeId,function(){if("function"==typeof getVIAPI){if(h.viewAPI=getVIAPI(),!h.viewAPI)return void P.log("warn","Viewability API not instantiated by viewability library. Unable to initialize viewability module.");h.viewAPI.initVI(h.viewParams),h.initialized=!0,h.viewAPI.subscribe(P.flushVIDataReadyQueue,"VIExternalDataReady",this),P.log("debug","Viewability module successfully initialized")}}),P.log("info","Viewabilty module injected")):P.log("warn","Viewabilty library URL not defined in config. Unable to initialize viewability module.")}}catch(e){P.log("warn","Failed to initialize viewability module."),h.initialized=!1}},start:function e(t){"running"!==h.state&&h.initialized&&(h.viewAPI.startVI(),h.state="running")},stop:function e(){"stopped"!==h.state&&h.initialized&&(h.viewAPI.stopVI(),h.state="stopped")},tick:function e(t,a,n){h.initialized&&null!=t&&""!==t&&"NaN"!==Math.floor(t).toString()&&("running"!==h.state&&S.start(),h.viewAPI&&h.viewAPI.updateTick(Math.floor(t),h.volume),h.screenSeries=v().join("x")),P.registerVIDataReady(n,"tick_"+t)},setData:function e(t){h.initialized&&(h.viewSeries=h.viewAPI&&h.viewAPI.getVideoSeries?h.viewAPI.getVideoSeries():[],h.audibilitySeries=h.viewAPI&&h.viewAPI.getAudioSeries?h.viewAPI.getAudioSeries():[],h.viewportSeries=h.viewAPI&&h.viewAPI.getViewportSeries?h.viewAPI.getViewportSeries():[],h.elementSeries=h.viewAPI&&h.viewAPI.getElementSizeSeries?h.viewAPI.getElementSizeSeries():[],h.screenSeries=v().join("x"),P.setDataSeries(t))},setVolume:function e(t){if(h.initialized&&t){var a=P.evalVolume(t);null!=a&&""!==a&&"NaN"!==parseInt(t).toString()?(h.volume=a,P.log("debug","Audibiliy volume set to "+a)):P.log("debug",'Volume "'+t+'" is invalid. Volume set will be ignored.')}},clear:function e(t,a){h.initialized&&P.clearSeries(a),t&&(P.log("debug","Viewability resetting"),P.setDataSeries(t,!0),setTimeout(function(){P.setDataSeries(t,!0)}))}};return e.get("nol_url").indexOf(i)>-1&&(P.log("debug","Viewability module loaded"),S.init(P.getNodeId())),{initialized:function e(){return h.initialized},start:S.start,stop:S.stop,tick:S.tick,setData:S.setData,getData:P.getDataSeries,setVolume:S.setVolume,clear:S.clear}},t.PLVBL}}),e.NOLBUNDLE.registerLib("PLSIVT",function(e){if(!e.PLSIVT){var t="nol_sivtURL",a=e.GLCFG||e;return e.PLSIVT=function(e,n){var r={initialized:!1,sivtURL:"",clientConfig:e.getClientConfig(),globals:e.getConfigParams().ggParams,uaid:e.sessionId,apid:e.apid,dataObj:n},i;return function e(){if(r.sivtURL=a.configController.getGlobal(t,r.clientConfig),r.sivtURL){var n=a.PLDPR.resolveExpression(r.sivtURL,r.dataObj);a.scriptController.inject(n,document.body)}else a._listeners.fireEvent("debug",{type:"debug",msg:"SIVT library URL not defined in config. Unable to initialize SIVT module."});r.initialized=!0}(),{initialized:function e(){return r.initialized}}},e.PLSIVT}}),e.NOLBUNDLE.registerLib("PLDPR",function(t){"use strict";var a=t.PLDPR=t.PLDPR||{},n,r=(n=e.NOLBUNDLE).sdkvForConfig?n.sdkvForConfig():"bj.6.0.0",i="6.0.0.",o="594",s=t.getBaseBuildVer?t.getBaseBuildVer()+"594":"6.0.0.594",l="cgi-bin/",d=n.getAddressProtocol?n.getAddressProtocol():n.getAddress(),c="cfg",u="error",p=t.getLS(),m=t.getConfigVer?t.getConfigVer():300,f=5,v={"[":{end:"]",count:0},"{":{end:"}",count:0},"<":{end:/\.\d+,\d+\>/g,count:0}},g={regex:/\|\![\w\W]*?(\!\|)/g,length:2},_=/[\[\{<\(\}\]>\)]/g,y=new RegExp(/(.*?)(_content|_ad|_static)?$/i),h=a.dataObj||{},P=0,S=0,b=5,T=5,C=[],O,L=2,w=!1,E=[],k="false",D=k,I,A={},M={},F={},N=N||{},R=!1,B=!1,V,G={send:function e(a,n,r){var i=a,o=-1!==i.url.indexOf("&c62=")?U(i.url,"c62=")+"&c62=sendTime,"+(void 0!==n?n:x()/1e3>>0):i.url,s=this,l="";if(l=-1!==o.indexOf("prd=metadata")?o:U(o,"rnd=")+"&rnd="+Math.round(1e6*Math.random()),r=r||"GET",a&&a.uoo&&(l=K.nuidOverride(l,a.uoo)),t.postMsgAvail&&i.hasOwnProperty("maskRefUrl")&&-1!==i.maskRefUrl&&"true"===i.maskRefUrl)re.sendMaskedPing(l);else if("POST"===r){var d=l.indexOf("?"),c=t.cookie.all(),u=l.substr(0,d)+(c.IMRID?"?"+re.param({IMRID:c.IMRID},"ckk"):""),p=l.substr(d+1);delete c.IMRID,c&&Object.keys(c).length>0&&(p+="&"+re.param(c,"ckk")),p=K.optoutOverride(p),re.request(u,{method:"POST",data:p},!B).then(function(e){parseInt(e.status)>400&&s.onError({target:{src:o}},i,r)})}else if(B)navigator.sendBeacon(l);else{var m=new Image;m.onerror=function(e){s.onError(e,i,r)},m.onload=function(){t.queryCookies()},m.src=l}},setup:function e(t){var a=this,n=t.hasOwnProperty("url")?t.url:"",r=t.params||{url:n,uoo:"true"===t.uoo?1:0,errorDelay:1e3*(t.delay||T),retry:0,maskRefUrl:t.hasOwnProperty("maskRefUrl")&&String(t.maskRefUrl).length>0?t.maskRefUrl:-1};n&&n.length>0&&this.send(r,t.pingSendTime,t.method)},onError:function t(a,n,r){var i=this,o=a.target.src;n&&n.retry<b&&o&&o.length>0&&(n.retry+=1,n.url=o,e.setTimeout(function(){i.send(n,null,r)},n.errorDelay))}},x=n.getTIme||function(){return(new Date).getTime()},j={},S=S||0,b=b||5;function U(e,t){var a=[],n=e.split("&"),r,i;for(r=0,i=n.length;r<i;r++)0!==n[r].indexOf(t)&&a.push(n[r]);return a.join("&")}function z(e,t){try{var a=e.split("&"),n,r;for(n=0,r=a.length;n<r;n++)if(0===a[n].indexOf(t))return!0;return!1}catch(e){return!1}}function q(t){var a;void 0!==t&&0!==t.length&&((a=e.document.createElement("script")).type="text/javascript",a.src=U(t,"rnd=")+"&rnd="+Math.round(1e6*Math.random()),a.onerror=function(t){var a=t.target.src;e.document.head?e.document.head.removeChild(t.target):e.document.getElementsByTagName("head")[0].removeChild(t.target),S<b&&(S++,e.setTimeout(function(){q(a)},5e3))},a.onload=function(t){S=0,e.document.head?e.document.head.removeChild(t.target):e.document.getElementsByTagName("head")[0].removeChild(t.target)},e.document.head?e.document.head.appendChild(a):e.document.getElementsByTagName("head")[0].appendChild(a))}var J=J||{},K=K||{},Q=Q||function(){},W=(H="nol_eventData",X="nol_eventDataDelimiter",Y="nol_eventDataEvents",$="nol_eventDataEnabled",Z=":",ee={delimiter:"",eventsList:[]},te={play:{name:"play",abbrv:"PL"},pause:{name:"pause",abbrv:"PU"},rewind:{name:"rewind",abbrv:"RW"},forward:{name:"forward",abbrv:"FW"},stop:{name:"stop",abbrv:"ST"},resume:{name:"resume",abbrv:"RE"},mute:{name:"mute",abbrv:"MT"}},{get:(ne={get:function e(t,a){var n="";return t&&(n=Q({data:t,param:H,vidType:a||t._currVidType})),n},set:function e(t,a,n){return t&&Q({data:t,param:H,val:a,vidType:n||t._currVidType}),t},clear:function e(t){t&&(Q({data:t,param:H,val:"",vidType:"ad"}),Q({data:t,param:H,val:"",vidType:"content"}))},clone:function e(t){try{return{content:ne.get(t,"content"),ad:ne.get(t,"ad")}}catch(e){return null}},bind:function e(t,a){try{if(t&&a)for(var n in a)ne.set(t,a[n],n)}catch(e){}},append:function e(t,a){if(t&&a){var n=ne.get(t),r=ne.delimiter(t),i=ne.parseEventData(a);ne.set(t,n?[n,i].join(r):i)}},delimiter:function e(t){return t?(ee.delimiter||(ee.delimiter=Q({data:t,param:X})),ee.delimiter):""},isEnabled:function e(t){return!!t&&"true"===Q({data:t,param:$})},isEventEnabled:function e(t,a){if(a&&t){var n=ne.lookupEvent(t.toLowerCase());if(n)return ne.eventsList(a).indexOf(n.name)>-1}return!1},eventsList:function e(t){if(t){if(!ee.eventsList||0==ee.eventsList.length){var a=Q({data:t,param:Y});a&&(ee.eventsList=a.split(","))}return ee.eventsList}},clearCache:function e(){ee.delimiter="",ee.eventsList=[]},lookupEvent:function e(t){return t?te[t.toLowerCase()]:null},parseEventData:function e(t){var a="";if(t){var n=ne.lookupEvent(t.event);if(n){var r=[n.abbrv,t.timestamp,t.curPos];void 0!==t.prevPos&&null!==t.prevPos&&t.curPos!=t.prevPos&&r.push(t.prevPos),void 0!==t.p1&&null!==t.p1&&r.push(t.p1),a=r.join(":")}}return a},handleEvent:function e(t,a){t&&a&&ne.isEventEnabled(a.event,t)&&ne.append(t,a)},setNextTick:function e(t,a,n){var r=ne.get(t,n);if(r&&r.indexOf("{{nextTick}}")>-1)if(a&&a.event===J.events.playhead)t=ne.set(t,r.replace(/{{nextTick}}/gi,1==a.curPos?"0":a.curPos),n);else{var i=K.state.position.current(t,n)||"0";t=ne.set(t,r.replace(/{{nextTick}}/gi,i),n)}return t},preProcess:function e(t,a){try{t&&a&&a.event&&a.event!==J.events.play&&-1===a.event.indexOf("event_")&&(ne.setNextTick(t,a),a.event===J.events.stop&&"content"!==K.type.current(t)&&ne.setNextTick(t,a,"content"),ne.handleEvent(t,a))}catch(e){}},postProcess:function e(t,a){try{t&&a&&a.event&&a.event===J.events.play&&ne.handleEvent(t,a)}catch(e){}}}).get,set:ne.set,clone:ne.clone,bind:ne.bind,clear:ne.clear,append:ne.append,isEnabled:ne.isEnabled,isEventEnabled:ne.isEventEnabled,preProcess:ne.preProcess,postProcess:ne.postProcess,setNextTick:ne.setNextTick}),H,X,Y,$,Z,ee,te,ae,ne,t=t||e.NOLBUNDLE||{},re=re||{},A=A||{},M=M||{},ie=ie||function(){},oe=oe||function(){},U=U||function(){},se=se||function(){},Q=Q||function(){},K={_keys:{currentPosition:"nolPriv_currPos",currentTimestamp:"nolPriv_now",stateCurrentPosition:"nolPriv_stateCurrentPH",stateCurrentTimestamp:"nolPriv_stateCurrentTS",stateCurrentStatus:"nolPriv_stateCurrentStatus",stateCurrentAsset:"nolPriv_stateCurrentAsset",stateCurrentType:"nolPriv_stateCurrentType",statePreviousPosition:"nolPriv_statePreviousPH",statePreviousTimestamp:"nolPriv_statePreviousTS",statePreviousStatus:"nolPriv_statePreviousStatus",statePreviousAsset:"nolPriv_statePreviousAsset",statePreviousType:"nolPriv_statePreviousType",tagName:"nol_comment",localTimer:"nol_timer",assetId:"nol_assetid"},_params:{optout:"uoo",nuid:"c1"},states:{loaded:"LOADED",playing:"PLAYING",paused:"PAUSED",stopped:"STOPPED"},findPlayer:function e(a){if(a){if("string"==typeof a)return t._players[a];var n=Q({data:a,param:"nol_playerId"});return K.findPlayer(n)}return null},currentPosition:function e(t){return oe(Q({data:t,param:K._keys.currentPosition}),"num")},currentTimestamp:function e(t){return oe(Q({data:t,param:K._keys.currentTimestamp}),"num")},asset:{current:function e(t){return t?t._currAssetid:null},parse:function e(t,a){var n=A[t.get("nol_playerId")]&&A[t.get("nol_playerId")].nol_assetid?A[t.get("nol_playerId")].nol_assetid.clientField:"nol_assetid";return a?a[n]:null}},type:{isCurrentlyContent:function e(t){return"content"===t._currVidType},isCurrentlyAd:function e(t){return"ad"===t._currVidType},isCurrentlyStatic:function e(t){return"static"===t._currVidType},current:function e(t){return t._currVidType},parse:function e(t,a){var n=A[t.get("nol_playerId")]||{},r=n.nol_vidtype?n.nol_vidtype.clientField:"nol_vidtype",i=a[r]?a[r].toString().toLowerCase():"",o=","+Q({data:t,param:"nol_contentType"});return i&&-1!==o.indexOf(","+i)?"content":"dcrstatic"===Q({data:t,param:"nol_product"})?"static":"ad"}},tagName:function e(t,a){return Q({data:t,param:K._keys.tagName,vidType:a||t._currVidType})},localTimer:function e(t,a){return Q({data:t,param:K._keys.localTimer,vidType:a||t._currVidType})||"nol_fdoffset"},isInitialized:function e(t,a){try{return a=a||t._currVidType,"{}"!==JSON.stringify(t._dataArrObj[a])}catch(e){return!1}},updateMetadata:function e(a,n,r,i){try{var o={nolParams:["nol_assetid","nol_assetName","nol_title","nol_vcTitle","nol_category","nol_channelName","nol_clientid","nol_vcid","nol_vidtype","nol_adLoadType"]};r=r||A[a.get("nol_playerId")]||{};var s=function e(t){var a=!0;for(var n in o.nolParams)if(r&&r.hasOwnProperty(o.nolParams[n])&&t===r[o.nolParams[n]].clientField){a=!1;break}return a};if(!a||!n)return;var l=void 0!==r&&"object"===(void 0===r?"undefined":_typeof(r))&&r;for(var d in n)n.hasOwnProperty(d)&&(l&&s(d)?Q({data:a,param:String(d),val:String(n[d])}):i&&i.inferred||t._listeners.fireEvent("warn",{type:"warn",msg:"Attempt to update metadata field "+d+" is not allowed. Please remove "+d+" from your metadata parameter."}))}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Failed to update metadata"})}},extendfData:function e(t){"function"!=typeof t.get&&(t.isProductOf=function(e){return!!e&&("object"===(void 0===e?"undefined":_typeof(e))?e.indexOf(Q({data:this,param:"nol_product"}))>-1:Q({data:this,param:"nol_product"})===e)},t.get=function(e,t){return Q({data:this,param:e,vidType:t})},t.set=function(e,t,a){return Q({data:this,param:e,val:t,vidType:a})},t.del=function(e,t){e&&t&&this&&this._dataArrObj&&this._dataArrObj[t]&&delete this._dataArrObj[t][e]})},state:{position:{current:function e(t,a){return oe(Q({data:t,param:K._keys.stateCurrentPosition,vidType:a||t._currVidType}),"num")},previous:function e(t,a){return oe(Q({data:t,param:K._keys.statePreviousPosition,vidType:a||t._currVidType}),"num")},set:function e(t,a,n){var r=K.state.position.current(t);Q({data:t,param:K._keys.statePreviousPosition,val:r,vidType:n||t._currVidType}),Q({data:t,param:K._keys.stateCurrentPosition,val:a,vidType:n||t._currVidType})}},timeStamp:{current:function e(t,a){return oe(Q({data:t,param:K._keys.stateCurrentTimestamp,vidType:a||t._currVidType}),"num")},previous:function e(t,a){return oe(Q({data:t,param:K._keys.statePreviousTimestamp,vidType:a||t._currVidType}),"num")},set:function e(t,a,n){var r=K.state.timeStamp.current(t);Q({data:t,param:K._keys.statePreviousTimestamp,val:r,vidType:n||t._currVidType}),Q({data:t,param:K._keys.stateCurrentTimestamp,val:a,vidType:n||t._currVidType})}},asset:{current:function e(t,a){return Q({data:t,param:K._keys.stateCurrentAsset,vidType:a||t._currVidType})},previous:function e(t,a){return Q({data:t,param:K._keys.statePreviousAsset,vidType:a||t._currVidType})},set:function e(t,a,n){var r=K.state.asset.current(t);Q({data:t,param:K._keys.statePreviousAsset,val:r,vidType:n||t._currVidType}),Q({data:t,param:K._keys.stateCurrentAsset,val:a,vidType:n||t._currVidType})}},status:{current:function e(t,a){return Q({data:t,param:K._keys.stateCurrentStatus,vidType:a||t._currVidType})},previous:function e(t,a){return Q({data:t,param:K._keys.statePreviousStatus,vidType:a||t._currVidType})},set:function e(t,a,n){var r=K.state.status.current(t,n);Q({data:t,param:K._keys.statePreviousStatus,val:r,vidType:n||t._currVidType}),Q({data:t,param:K._keys.stateCurrentStatus,val:a,vidType:n||t._currVidType})}},type:{current:function e(t,a){return Q({data:t,param:K._keys.stateCurrentType,vidType:a||t._currVidType})},previous:function e(t,a){return Q({data:t,param:K._keys.statePreviousType,vidType:a||t._currVidType})},set:function e(t,a,n){var r=K.state.type.current(t,n);Q({data:t,param:K._keys.statePreviousType,val:r,vidType:n||t._currVidType}),Q({data:t,param:K._keys.stateCurrentType,val:a,vidType:n||t._currVidType})}},set:function e(t,a){var n=K.findPlayer(t);switch(a.event){case"LOAD":K.state.asset.set(t,a.assetId,a.contentType),K.state.type.set(t,a.contentType),K.state.timeStamp.set(t,a.timestamp);break;case"PLAY":case"RESUME":K.state.status.set(t,K.states.playing),K.state.asset.set(t,a.assetId,a.contentType),K.state.type.set(t,a.contentType),K.state.timeStamp.set(t,a.timestamp),"PLAY"===a.event&&K.state.position.set(t,0),"RESUME"===a.event&&null!=a.currentPos&&null!=a.currentPos&&"{{nextTick}}"!=a.currentPos&&(K.state.position.set(t,a.curPos),K.state.timeStamp.set(t,a.timestamp)),n.pauseObj.eventPauseTime=0;break;case"PAUSE":K.state.status.set(t,K.states.paused);break;case"STOP":K.state.resetAsset(t),K.state.status.set(t,K.states.stopped);break;case"PLAYHEAD":K.state.position.set(t,a.curPos),K.state.timeStamp.set(t,a.timestamp),n.pauseObj.eventPauseTime=0;break;case"REWIND":case"FORWARD":K.state.position.set(t,a.curPos),K.state.timeStamp.set(t,a.timestamp),n.pauseObj.eventPauseTime=0;break;case"MUTE":break;case"event_play":n.pauseObj.eventPauseTime=0}},get:function e(t,a){try{var n;if(t)return{position:{current:K.state.position.current(t,a),previous:K.state.position.previous(t,a)},timeStamp:{current:K.state.timeStamp.current(t,a),previous:K.state.timeStamp.previous(t,a)},asset:{current:K.state.asset.current(t,a),previous:K.state.asset.previous(t,a)},status:{current:K.state.status.current(t,a),previous:K.state.status.previous(t,a)},type:{current:K.state.type.current(t,a),previous:K.state.type.previous(t,a)}}}catch(e){}return null},resetAsset:function e(t){K.state.position.set(t,null),K.state.timeStamp.set(t,null),K.state.asset.set(t,null)},bind:function e(t,a){try{if(t&&a)for(var n in a)Q({data:t,param:K._keys.statePreviousPosition,val:a[n].position?a[n].position.previous:null,vidType:n}),Q({data:t,param:K._keys.stateCurrentPosition,val:a[n].position?a[n].position.current:null,vidType:n}),Q({data:t,param:K._keys.statePreviousTimestamp,val:a[n].timeStamp?a[n].timeStamp.current:null,vidType:n}),Q({data:t,param:K._keys.stateCurrentTimestamp,al:a[n].timeStamp?a[n].timeStamp.current:null,vidType:n}),Q({data:t,param:K._keys.statePreviousAsset,val:a[n].asset?a[n].asset.current:null,vidType:n}),Q({data:t,param:K._keys.stateCurrentAsset,val:a[n].asset?a[n].asset.current:null,vidType:n}),Q({data:t,param:K._keys.statePreviousStatus,val:a[n].status?a[n].status.current:null,vidType:n}),Q({data:t,param:K._keys.stateCurrentStatus,val:a[n].status?a[n].status.current:null,vidType:n}),Q({data:t,param:K._keys.statePreviousType,val:a[n].type?a[n].type.current:null,vidType:n}),Q({data:t,param:K._keys.stateCurrentType,val:a[n].type?a[n].type.current:null,vidType:n})}catch(e){}},clone:function e(t){try{return{content:K.state.get(t,"content"),ad:K.state.get(t,"ad")}}catch(e){}}},cms:{parse:function e(t,a,n){var r={metadata:(n?n.metadata:null)||{},defaultKey:(n?n.defaultKey:"")||"",silent:(n?n.silent:null)||!1,noClone:(n?n.noClone:null)||!1,vidType:n?n.vidType:"",noEncode:!(!n||!0!==n.noEncode)},i=t&&t.clientField?t.clientField:r.defaultKey;if(i&&a){if(r.metadata&&r.metadata.hasOwnProperty(i)&&r.metadata[i])return r.metadata[i];if(t&&t.clientField){if(r.end)return a.get(t.clientField,n?n.vidType:"");var o=a;!0!==r.noClone&&(o=JSON.parse(JSON.stringify(a)),ie(o,"loadmetadata",r.metadata,null,!0));var s=[];return!0===r.noEncode?s=[i]:(s=(t.encoding||"").split("")).splice(s.length/2,0,i),r.end=!0,se(o,"|!"+s.join("")+"!|",null,r)}}return""}},getRequestMethod:function e(t){return t&&t.hasOwnProperty("get")&&"function"==typeof t.get?t.get("nol_prefRequestMethod")||t.get("nol_requestMethod"):"GET"},mtvr:{isTransPing:function e(t){return!!t&&"id3"===Q({data:t,param:"nol_product"})},isPCTag:function e(t){return!!t&&(t.isProductOf("mtvr")&&""!==Q({data:t,param:"nol_subTag"}))},pcChanged:function e(t,a){return!!t&&a!==Q({data:t,param:"nol_pccid"})},isFDTag:function e(t){return!!t&&(t.isProductOf("mtvr")&&""===Q({data:t,param:"nol_subTag"}))},fdChanged:function e(t,a){return!!t&&a!==Q({data:t,param:"nol_fdcid"})},resetTagSession:function e(a,n){a&&a.set("nol_sessionId",n||t.generateGUID(),"content")},clearTagSession:function e(t){if(t)return t.del("nol_sessionId","content")},isNullPCCid:function e(t){return t.get("nol_pccid")===t.get("nol_cidNull")},isNullFDCid:function e(t){return t.get("nol_fdcid")===t.get("nol_cidNull")}},nuidOverride:function e(t,a){return a&&(t=re.paramOverride(t,K._params.nuid,"nuid,OPTOUT")),t},optoutOverride:function e(a){return a&&(a=U(a,K._params.optout+"=")+(t.isOptout()?"&"+K._params.optout+"=1":""),a=re.paramOverride(a,K._params.nuid,"nuid,"+t.getLsId())),a},getEventsFilter:function e(t){return t.get("nol_eventFilter")||M[t.get("nol_playerId")]||{}}},t=t||e.NOLBUNDLE||{},J=J||{},W=W||{},K=K||{},x=x||function(){},oe=oe||function(){},Q=Q||function(){},J=function(){var e={load:"LOAD",play:"PLAY",pause:"PAUSE",stop:"STOP",resume:"RESUME",rewind:"REWIND",forward:"FORWARD",playhead:"PLAYHEAD",mute:"MUTE",unmute:"UNMUTE"},a=function e(t,a){if(t&&null!=a&&"stream"!==Q({data:t,param:"nol_cadence"})&&"impression"!==Q({data:t,param:"nol_cadence"})){var n=Math.floor(oe(a,"num")),r=K.state.position.current(t),i;return{match:n-r<0,currentPos:n,previousPos:r}}return!1},n=function e(t,a){if(t&&null!=a&&"stream"!==Q({data:t,param:"nol_cadence"})&&"impression"!==Q({data:t,param:"nol_cadence"})){var n=Math.floor(oe(a,"num")),r=K.state.position.current(t),i=K.state.timeStamp.current(t),o=oe(Q({data:t,param:"nol_cmsIntrvlGp"}),"num")||2,s=Math.ceil(x()/1e3-i)||1;if(0==r&&n>86400&&"nol_cmsoffset"===K.localTimer(t)){var l=Math.round(x()/1e3).toString().substr(0,a.toString().length);l&&(r=parseInt(l))}var d=n-r;return{match:d>o&&d>Math.ceil(1.5*s),currentPos:n,previousPos:r}}return!1},r;return{events:e,inferEvent:{inferEvent:function r(i,o,s,l,d){var c=null;try{if(c={event:"event_"+i,curPos:K.state.position.current(o),prevPos:null,timestamp:l},i&&o)switch(i.toLowerCase()){case"3":case"15":case"loadmetadata":case"pauseloadmeta":var u=K.asset.parse(o,d),p=K.state.asset.current(o),m=K.state.asset.previous(o),f=K.state.type.current(o),v=K.type.parse(o,d),g=K.state.asset.current(o,v);if(c.event=e.load,c.assetId=u,c.contentType=v,K.state.status.current(o,v)==K.states.paused&&(p==u&&null!==u||f!==v)){c.event=e.resume,c.assetId=u,c.contentType=v,c.curPos="{{nextTick}}";break}if(g!=u||K.state.status.current(o,v)===K.states.stopped&&m==u&&null!==u||null===p){c.event=e.play,c.curPos="{{nextTick}}";break}break;case"5":case"play":c.event="event_play";break;case"7":case"stop":c.event="event_stop";break;case"57":case"end":case"oncomplete":c.event=e.stop;break;case"49":case"setplayheadposition":case"playheadposition":if(s>-1){var _=a(o,s);if(_.match){c.event=e.rewind,c.curPos=_.currentPos,c.prevPos=_.previousPos,c.p1=c.prevPos-c.curPos;break}if(-1===W.get(o).indexOf("{{nextTick}}")){var y=n(o,s);if(y.match){c.event=e.forward,c.curPos=y.currentPos,c.prevPos=y.previousPos,c.p1=c.curPos-c.prevPos;break}}if(K.state.status.current(o)===K.states.paused){c.event=e.resume,c.assetId=K.state.asset.current(o),c.contentType=K.type.current(o),c.curPos=s;break}c.event=e.playhead,c.curPos=s}break;case"55":var h=Q({data:o,param:Q({data:o,param:"nol_timer"})})||Q({data:o,param:"nol_fdoffset"});"daypart"===Q({data:o,param:"nol_cadence"})&&(h=(h=oe(h,"num"))+Q({data:o,param:"nol_timer"})=="nol_pcoffset"?oe(Q({data:o,param:"nol_pcTimeCode"}),"num"):oe(Q({data:o,param:"nol_fdTimeCode"}),"num")),c.event=e.playhead;break;case"9":case"mute":c.event=e.mute,c.p1=s}}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Error in eventsController. Error inferring event - "+i})}return c}}.inferEvent}}(),t=t||{},b=b||5,p=p||t.getLS();function oe(e,t){var a;if("num"==t)a=parseInt(e,10),e=isNaN(a)?0:a;else if("bin"==t)e=isNaN(Number(e))?"0":Number(e).toString(2);else if("bool"==t)switch(e.toString().toLowerCase()){case"false":case"no":case"0":case"":e=!1;break;default:e=!0}else"b2n"==t&&(a=parseInt(e,2),e=isNaN(a)?0:a);return e}var re=(le=t,de=p,ce={maxRetry:b},pe={param:function e(t,a){var e="";if(t&&"object"===(void 0===t?"undefined":_typeof(t))&&Object.keys(t).length>0)for(var n in a=a||"",t)t.hasOwnProperty(n)&&(e=e+(""!==e?"&":"")+(a?a+"-":"")+n+"="+t[n]);return e},paramOverride:function e(t,a,n){if(t&&a){var r=new RegExp("([&?]+"+a+"=)([^&$]*)","gi"),i=t.match(r);if(i)for(var o="",s=0,l=i.length;s<l;s++)o=i[s].substr(0,i[s].indexOf("=")+1)+(n||""),t=t.replace(i[s],o)}return t}},{sendMaskedPing:(ue={sendMaskedPing:function e(t,a){le.lsReady()?de.contentWindow.postMessage(JSON.stringify({nolSentFromBsdk:!0,eventType:"maskref",data:{url:t}}),de.src):(a=a||0)<ce.maxRetry&&setTimeout(function(){ue.sendMaskedPing(t,a+1)},300)},request:function t(a,n,r){return e.NOLBUNDLE.controllers.util.Promise(function(t,i){(n=n||{}).method=n.method||"GET",n.data=n.data||"";var o=new(e.XMLHttpRequest||ActiveXObject("MSXML2.XMLHTTP.3.0"));o.open(n.method,a,null==r||r),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){o.readyState>3&&t&&t(o)},o.send(n.data)})}}).sendMaskedPing,request:ue.request,param:pe.param,paramOverride:pe.paramOverride}),le,de,ce,ue,pe,v={"[":{end:"]",count:0},"{":{end:"}",count:0},"<":{end:/\.\d+,\d+\>/g,count:0}},g={regex:/\|\![\w\W]*?(\!\|)/g,length:2},y=new RegExp(/(.*?)(_content|_ad|_static)?$/i),A=A||{},h=h||{},me=me||function(){},fe=fe||function(){},ve=ve||function(){},ge=ge||function(){},_e=_e||function(){},ye=ye||function(){},he=he||function(){},Pe=Pe||function(){},Se=Se||function(){},t=t||e.NOLBUNDLE||{},J=J||{},W=W||{},K=K||{},x=x||function(){},oe,Q;function be(e,t,a,n){var r="";return a&&a.clientField!==t&&!0!==n.end&&(r=K.cms.parse(a,e,n))?r:Q({data:e,param:t,vidType:n?n.vidType:""})}function Te(e,t){var a="",n,r,i,o;if(!e||!t)return e;for(o=t.length,r=0,i=e.length;r<i;r++)a+=0===(n=e.charCodeAt(r)^t.charCodeAt(r%o))?e.charAt(r):String.fromCharCode(n);return a}function Ce(e){var t;try{if(null===e||"object"!==(void 0===e?"undefined":_typeof(e))||"isActiveClone"in e)return e;for(var a in t=e instanceof Date?new e.constructor:e.constructor(),e)Object.prototype.hasOwnProperty.call(e,a)&&(e.isActiveClone=null,t[a]=Ce(e[a]),delete e.isActiveClone);return t}catch(e){return!1}}function Oe(e,a,n,r,i){var o,s;-1===n.indexOf("[")&&-1===n.indexOf("]")&&(!r.val||r.val.length<=0)?i||(we(e,{type:"100",msg:n+" missing -- "+Q({data:e,param:"nol_comment"})}),r.state=!1,r.val=""):"{"===a||"}"===a?r.val=t.CryptoJS.MD5(r.val.toString()).toString():"<"===a||">"===a?(o=n.match(v["<"].end))?(s=o[0].match(/[\d]+/g),r.val=String(r.val).substr(s[0],s[1])):r.val=Te(String(r.val),Q({data:e,param:"nol_xorSeed"})):"("!==a&&")"!==a||(r.val=Se(r.val))}function Le(e,t,a){var n=t.match(/[\[\{<\(]/g),r,i,o,s,l,d,c,u,p,m,f,g,_=Q({data:e,param:"nol_xorSeed"})||"",h,P;n=n?n.reverse():[],i=t.match(/[\}\]\>\)]/g)||[],s={start:n.length?t.lastIndexOf(String(n[0])):-1,end:i.length?t.indexOf(String(i[0])):t.length},i&&">"===i[0]&&(s.end=t.search(v["<"].end)||t.indexOf(">")),p=(d=t.substring(s.start+1,s.end)).split("||");var S=y.exec(d),b=S&&S.length>1?S[1]:d,T=null,C="",O=A[e.get("nol_playerId")]||{};for(m=0,f=p.length;m<f&&(d=p[m],C=(T=y.exec(p[m]))&&T.length>2&&T[2]?T[2].replace("_",""):"",!((g=be(e,d,O[b],{vidType:(a?a.vidType:null)||C,silent:!0,noClone:!0,end:!!a&&a.end,noEncode:!0}))&&g.length>0));m++);if(g&&g.length>0&&(l=O[h=(P="string"==typeof d?d.split("_"):d)[0]?P.splice(0,2).join("_"):P]?O[h].encoding:"")&&(n=n.reverse().concat(l.match(/[\[\{<\(]/g)).reverse(),i=i.reverse().concat(l.match(/[\}\]>\)]/g)).reverse()),r={val:g,state:Q({data:e,param:"nolPriv_sendData"})},c=n?n.length:0,u=i?i.length:0,(o=Math.min(c,u))>0)for(m=0,f=o;m<f;m++)Oe(e,n[0]||i[0],t,r,_),n.shift(),i.shift();else!0!==(!!a&&a.silent)&&(!r.val||r.val&&r.val.length<=0)&&(r.state=!1,r.val="",we(e,{type:100,msg:d+" missing "+Q({data:e,param:"nol_comment"})}));return{val:r.val,strManipulate:n,strManiEnd:i}}function se(e,t,a,n){var r,i,o,s,l,d={val:"",state:Q({data:e,param:"nolPriv_sendData"})},c=[],u,p=[],m=[],f,v="",_,y,h,P,S,b,T=Q({data:e,param:"nol_xorSeed"});if(n=n||{},null!==(l=(t=t||Q({data:e,param:"nol_url"})||"").match(g.regex)))for(y=0,h=l.length;y<h;y++)if(r=l[y]){if(c=[],v="",s=0,(o=(i=r.substr(g.length,r.length-2*g.length)).split("+"))&&o.length>1){for(P=0,S=o.length;P<S;P++)if(v=o[P],n.silent=!0,(u=Le(e,v,n)).strManipulate.length>0&&(s=c.length,p=[].concat(u.strManipulate,p)),c[s]=c[s]?c[s]+u.val:u.val,u.strManiEnd.length>0&&u.strManiEnd.length!==p.length){for(m=[].concat(m,u.strManiEnd),d={val:c[s],state:Q({data:e,param:"nolPriv_sendData"})},f=0,b=u.strManiEnd.length;f<b;f++)Oe(e,p[0],v,d,T),p.shift(),m.shift();c[s]=d.val}for(d.val=c.join(""),f=0,b=(_=p.length>=m.length?p:m).length;f<b;f++)Oe(e,_[0],v,d,T),p.shift(),m.shift()}else d={val:(u=Le(e,i,n)).val,state:Q({data:e,param:"nolPriv_sendData"})};t=t.replace(r,d.val)}return t}function we(e,a,n,r){var i,o,s=Q({data:e,param:"nolPriv_errorSent"});if(!0!==r&&Q({data:e,param:"nolPriv_sendData",val:!1}),!n&&-1!==(!a||s.indexOf(a.type.toString())))return!1;i=a.type+","+Se(a.msg),Q({data:e,param:"nol_errorMessage",val:i}),t._listeners.fireEvent("error",{type:"error",msg:i});var l=e.get("nol_errorURL");return l&&(a.msg&&(a.msg=encodeURIComponent(a.msg)),17===a.type&&(l=l.replace("|!(nol_errorMessage)!|",a.msg)),o=se(e,l),_e({serverTimeOffset:Q({data:e,param:"nolPriv_serverTimeOffset"}),url:o,uoo:Q({data:e,param:"nol_useroptout"}),maskRef:Q({data:e,param:"nol_rfrmsk"}),method:K.getRequestMethod(e)})),s+=a.type.toString()+",",Q({data:e,param:"nolPriv_errorSent",val:s}),!0}function Ee(e,t,a,n){var r=!1,i=K.findPlayer(e),o=i.fpSession,s=i.metadataCtrl;if(!n){var l=""===e.get("nol_fdcid")||K.mtvr.isNullFDCid(e)?e.get("nol_pccid"):e.get("nol_fdcid"),d;if(e.isProductOf("mtvr")&&["true","1"].indexOf(e.get("nol_rtvodEnabled").toString().toLowerCase())>-1&&"interval"===e.get("nol_cadence")&&""===e.get("nol_rtvod")&&"true"!==e.get("nol_disabled")&&e.get("nol_tsvURL"))if(fe(e,null,!0)){var c=Ce(e);c&&(!function(e,t,a,n){function r(){Ee(n,t,a,!0)}function i(){}ye(n,{service:"tsv",key:l,url:n.get("nol_tsvURL")},r),ye(e,{service:"tsv",key:l,url:e.get("nol_tsvURL")},i)}(e,t,a,c),r=!0)}}o&&o.allowCookies&&o.appendfData(e);var u=Q({data:e,param:"nol_url"})||"",p,m,f,v,g=0,_,y=Q({data:e,param:"nol_playerId"}),P=oe(Q({data:e,param:"nol_maxPingCount"}),"num"),S=oe(Q({data:e,param:"nol_pingCount"}),"num"),b=!!t&&t.returnLength,T=Q({data:e,param:"nol_cadence"}),C=e.isProductOf("mtvr"),O=e.isProductOf(["dcrvideo","dcrstatic"]),L=K.getEventsFilter(e),w=oe(Q({data:e,param:"nol_maxLength"}),"num");if(Q({data:e,param:"nol_pingCreationTime",val:Pe(Q({data:e,param:"nolPriv_serverTimeOffset"}))}),m=Q({data:e,param:"nol_timeSpentViewing"}).content,f=Q({data:e,param:"nol_timeSpentViewing"}).ad,v=Q({data:e,param:"nol_timeSpentViewing"}).static,he(Q({data:e,param:"nol_segmentTimeSpent"})),(!e.isProductOf(["dcrvideo","vrivideo"])||"1"===Q({data:e,param:"nol_forceFireOnClose_content"})||!(e.isProductOf(["dcrvideo","vrivideo"])&&0===m.nol_segmentTimeSpent||"dcrstatic"===Q({data:e,param:"nol_product"})&&0===v.nol_segmentTimeSpent)||"interval"!==T&&"streamduration"!==T||0!==f.nol_count||0!==f.nol_segmentTimeSpent)&&"false"===Q({data:e,param:"nol_disabled"})&&(0===P||P>S)){if(W.setNextTick(e,null,"content"),p=fe(e,t)||"stream"===T||"impression"===T||"id3"===Q({data:e,param:"nol_product"}),Q({data:e,param:"nol_random",val:Math.round(1e9*Math.random())}),(g=(u=se(e,u)).length)<10)return null;if(Q({data:e,param:"nolPriv_sendData"})&&p&&!b||w>0&&w<g){if(Q({data:e,param:"nol_id3Data"})&&Q({data:e,param:"nol_id3Data",val:!1}),me(Q({data:e,param:"nol_comment"})," -queued @"+Math.floor(x()/1e3)+", timeOffset == "+Q({data:e,param:"nolPriv_serverTimeOffset"})+", DU == "+Q({data:e,param:"nol_segmentTimeSpent"})+" -- ",u),L.onSendPing&&(ve(e,L.onSendPing),"true"===Q({data:e,param:"nol_disabled"})))return;r||_e({serverTimeOffset:Q({data:e,param:"nolPriv_serverTimeOffset"}),url:u,prod:Q({data:e,param:"nol_product"}),uoo:Q({data:e,param:"nol_useroptout"}),maskRef:Q({data:e,param:"nol_rfrmsk"}),method:K.getRequestMethod(e)}),a&&a(e),s.metadataURL&&("impression"===T&&O||"episode"===T&&C)&&(s.metadataPing=se(e,s.metadataURL),s.hasMetaPingFired||(_e({serverTimeOffset:Q({data:e,param:"nolPriv_serverTimeOffset"}),url:s.metadataPing,prod:Q({data:e,param:"nol_product"}),maskRef:Q({data:e,param:"nol_rfrmsk"}),method:K.getRequestMethod(e)}),me("Metadata Ping -queued @"+Math.floor(x()/1e3)+", timeOffset == "+Q({data:e,param:"nolPriv_serverTimeOffset"})+" -- "+s.metadataPing),s.hasMetaPingFired=!0)),Q({data:e,param:"nol_viewCount_"+e._currVidType.toLowerCase(),val:"0"}),W.clear(e),h&&h.hasOwnProperty(y)&&h[y].hasOwnProperty("debug")&&"logging"===h[y].debug&&((_=Q({data:e,param:"nol_debugUrl"}))||(_=Q({data:e,param:"nol_prefProtocol"})+"://nielsen.guru/validation/query_string.php?"),_=_+"pli="+y+"&sendPing="+Q({data:e,param:"nol_product"})+"&"+u.substring(u.indexOf("?")+1),ge(_)),S++,m.nol_segmentTimeSpent=0,m.nol_count=0,f.nol_segmentTimeSpent=0,f.nol_count=0,v.nol_segmentTimeSpent=0,v.nol_count=0,Q({data:e,param:"nol_pingStartTimeUTC",val:Math.round(x()/1e3)}),Q({data:e,param:"nolPriv_priority",val:0}),Q({data:e,param:"nol_pingCount",val:S.toString()}),Q({data:e,param:"nol_forceFireOnClose_content",val:"0"});var E=tt(Q({data:e,param:"nol_segmentLength"}));Q({data:e,param:"nol_duration",val:new Array(E.length+1).join("0")})}else if(b)return{len:g,fData:u};return null}}var t,re=re||{},ke=[];function De(){try{ke.length&&(ke.forEach(function(e){e&&e()}),ke=[])}catch(e){}}function Ie(e,a,n,r){n&&!n.serviceSending[a]?(n.serviceSending[a]=!0,re.request(e.replace("fmt=jsonp","fmt=json"),{method:"GET"}).then(function(e){if(200===parseInt(e.status)){var a={};try{a=JSON.parse(e.response)}catch(e){}a.nol_playerId=n.id,t._listeners.fireEvent("tsvupdate",a)}else t._listeners.fireEvent("tsvupdate",{nol_playerId:n.id,nol_rtvodEnabled:!1});r&&r&&r(),De()})):r&&ke.push(r)}var h=h||{},Se=Se||function(){},oe=(oe=oe||function(){})||function(){},Q=(Q=Q||function(){})||function(){};function Ae(e,t,a){var n=Q({data:e,param:"iag_"+t});return void 0!==n&&""!==n?a="&pr=iag."+t+","+Se(n):a&&a.length>0&&-1===a.indexOf("&pr=iag")?a="&pr=iag."+t+","+Se(a):null==a&&(a=""),a}function Me(e,t){var a,n,r,i,o,s,l,d,c,u,p,m,f,v,g,_,y=Q({data:e,param:"nol_vidtype"});Q({data:e,param:"nol_prod"}).indexOf("iag")>=0&&(a="",n=Ae(e,"sid",Q({data:e,param:"nol_sid",vidType:"content"})),r=Ae(e,"tfid",Q({data:e,param:"nol_tfid",vidType:"content"})),i=Ae(e,"bcr",Q({data:e,param:"nol_clientid",vidType:"content"})),s=Ae(e,"epi",Q({data:e,param:"nol_title"})||Q({data:e,param:"nol_title",vidType:"content"})),(o=Ae(e,"pgm",Q({data:e,param:"nol_censuscategory"})||Q({data:e,param:"nol_category"})||Q({data:e,param:"nol_iagcategory"})))||(o=Ae(e,"pgm",Q({data:e,param:"nol_censuscategory",vidType:"content"})||Q({data:e,param:"nol_category",vidType:"content"})||Q({data:e,param:"nol_iagcategory",vidType:"content"})))||(o="&pr=iag.pgm,general"),l="&pr=iag.seg,",oe(Q({data:e,param:"nol_chapter",vidType:"content"}),"num")>1?l+=Q({data:e,param:"iag_seg"})||Q({data:e,param:"nol_chapter",vidType:"content"}):l+="1",d=Ae(e,"pd",d),c=Ae(e,"oad",c),f=Ae(e,"fp",f),_=Ae(e,"cust1",_),"ad"===t?(u="&pr=iag.brn,"+Q({data:e,param:"nol_clientid"}),p="&pr=iag.cte,"+Se(Q({data:e,param:"nol_adURL"})),m="midroll"===y?"&pr=iag.ap,mid":"postroll"===y?"&pr=iag.ap,post":"&pr=iag.ap,pre",n=Ae(e,"sid",n),r=Ae(e,"tfid",r),i=Ae(e,"bcr",i),u=Ae(e,"brn",u),p=Ae(e,"cte",p),a=n+r+i+(o=Ae(e,"pgm",o))+(s=Ae(e,"epi",s))+(l=Ae(e,"seg",l))+(d=Ae(e,"pd",d))+u+m+p+(c=Ae(e,"oad",c))+f+(v=Ae(e,"pod",v))+(g=Ae(e,"apt",g))+_):a=n+r+i+o+s+l+d+c+f+_,Q({data:e,param:"nol_iagData",val:a+="&pr=iag.cp,soc"}))}var t,a=(t=(t=t||{})||{}).PLDPR=t.PLDPR||{},n=n||e.NOLBUNDLE,J=J||{},W=W||{},K=K||{},M=M||{},F=F||{},x=x||function(){},oe=oe||function(){},Q=Q||function(){},Fe=Fe||function(){},Ne=Ne||function(){},Re=Re||function(){},Be=Be||function(){},Ve=Ve||function(){},h=h||{},j=j||{},A=A||{},f=f||5,I=I||null,V=V||null,me=me||function(){},fe=fe||function(){},Ge=Ge||function(){},Me=Me||function(){},xe=xe||function(){},ve=ve||function(){},ge=ge||function(){},we=we||function(){},_e=_e||function(){},he=he||function(){},Pe=Pe||function(){},Se=Se||function(){},Ie=Ie||function(){},se=se||function(){},q=q||function(){},Ee=Ee||function(){},Ce=Ce||function(){},l=l||"cgi-bin/",je=je||n.getConfigAddress?n.getConfigAddress():n.getAddress(),u=u||"error",c=c||"cfg";function Ue(e){var t,a=null,n="content"==e._currVidType?oe(Q({data:e,param:"nol_chnlCountThrshld"}),"num")||f:oe(Q({data:e,param:"nol_staticCountThrshld"}),"num")||f,r=e._dataArrObj[e._currVidType],i,o=0,s=e._dataArrObj.count;if(!e._dataArrObj[e._currVidType].hasOwnProperty(e._currAssetid)){if(s[e._currVidType]>=n){for(i in r)if(r.hasOwnProperty(i)){if((o=r[i].nolPriv_priority)<=0){t=i;break}(null===a||a>o)&&(a=o,t=i)}r.hasOwnProperty(t)&&(delete r[t],s[e._currVidType]--)}e._dataArrObj[e._currVidType][e._currAssetid]={nolPriv_priority:0},s[e._currVidType]++}}function ze(e,t,a){var n={},r,i=0,o,s=K.getEventsFilter(e);if(Q({data:e,param:"nol_playerId"})===t.target.nol_playerId){for(o in t.target)t.target.hasOwnProperty(o)&&(Q({data:e,param:o,val:t.target[o]}),n[o]=t.target[o]);var l=K.findPlayer(e);if(l){var d=void 0!==l.oServiceCall[a.service]&&l.oServiceCall[a.service].hasOwnProperty("status")?l.oServiceCall[a.service].status:"undefined";l.oServiceCall[a.service]={status:"complete",prevStatus:d,station:a.key,data:n},l.serviceSending[a.service]=!1}var c=e.get("nol_serviceFilter");if(ve(e,c?c[a.service]:s),"true"===Q({data:e,param:"nol_disabled"}))return;e.serviceFlag[a.service].need&&(Q({data:e,param:"nol_davState",val:"1"}),e.serviceFlag[a.service].need=!1,t.target.hasOwnProperty("nol_fdTimeCode")&&"daypart"===Q({data:e,param:"nol_cadence"})&&(i=oe(t.target.nol_fdTimeCode,"num"),r=oe(Q({data:e,param:"nol_queueTime"}),"num"),Q({data:e,param:"nol_queueTime",val:r+i})),Ge(Q({data:e,param:"nol_queueTime"}),e))}}function qe(e,a){try{var n=Q({data:e,param:"nol_playerId"});h&&h.hasOwnProperty(n)&&(!h[n].hasOwnProperty("nol_sessionId")||h[n].hasOwnProperty("forceStreamRegen")&&!0===h[n].forceStreamRegen)&&(a=a||t.generateGUID(),h[n].nol_sessionId=a,h[n].forceStreamRegen=!1)}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Error in calcStreamId - "+e.message})}}function Je(e){try{var a=Q({data:e,param:"nol_playerId"});if(a&&t._players&&t._players.hasOwnProperty(a)){var n=t._players[a],r;if(n&&Object.keys(n.ottStatusObj).length>0)for(r in n.ottStatusObj)Q({data:e,param:r,val:n.ottStatusObj[r],vidType:"content"})}}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Error in populateOttStatus"+e})}}function ie(e,t,a,n,r){K.extendfData(e);var i=e.get("nol_useroptout"),o="",s,d,c="nol_minutes, nol_tagPresence, nol_pingCount, nol_currSeg, nol_segmentTimeSpent, nol_cumeTimeSpent, nol_count",p=Q({data:e,param:{}});if(Ue(e),M=K.getEventsFilter(e),"ad"===e._currVidType.toLowerCase()&&(o="st,a",Q({data:e,param:"nol_currSeg",val:"0"})),""===Q({data:e,param:"nol_errorURL"})&&Q({data:e,param:"nol_errorURL",val:je+l+u+"?message=|![nol_errorMessage]!|"}),"loadMetadata"===t)for(s in p)p.hasOwnProperty(s)&&-1===c.indexOf(s)&&Q({data:e,param:s,val:Be({data:e,param:s})||""});for(s in a)a.hasOwnProperty(s)&&Q({data:e,param:String(s),val:String(a[s])});if(e.set("nol_useroptout",i),Q({data:e,param:"nolPriv_sendData",val:!0}),Q({data:e,param:"nol_davState",val:"0"}),Q({data:e,param:"nol_highWM",val:"0"}),Q({data:e,param:"nol_iagData",val:""}),Q({data:e,param:"nol_disabled",val:"false"}),Q({data:e,param:"nol_sendQual",val:Be({data:e,param:"nol_sendQual"})||""}),Q({data:e,param:"nolPriv_assetid",val:""}),e.set("nolPriv_prevEvent",""),"S"===Be({data:e,param:"nol_segmentPrefix"})&&Q({data:e,param:"nol_segmentPrefix",val:"S"}),Q({data:e,param:"nol_c3"})||Q({data:e,param:"nol_c3",val:o}),!r){"content"===e._currVidType.toLowerCase()&&qe(e),Q({data:e,param:"nol_applyViewInc",val:"1"}),(!Q({data:e,param:"nol_minutes"})||"daypart"!==Q({data:e,param:"nol_cadence"})&&"dcrstatic"!==Q({data:e,param:"nol_product"})||"dcrstatic"===Q({data:e,param:"nol_product"})&&"stream"===Q({data:e,param:"nol_cadence"}))&&(Re(e),Q({data:e,param:"nol_pingCount",val:0}));var m=Q({data:e,param:"nol_adLoadType",vidType:"content"});""!==m&&null!=m&&ve(e,M.onAdLoadFlag),Je(e),n&&n.resetViewability&&n.resetViewability(e)}}function Ke(e,t){var a,n;h[t].bReInit||(h[t].bReInit=!0,h[t].eventQueue=[],e&&h[t].eventQueue.push(e),q(I))}function Qe(e,t,a){(t&&!0===t.flush||!("dcrstatic"===Q({data:e,param:"nol_product"})&&"stream"!==Q({data:e,param:"nol_cadence"})||e.isProductOf("vrivideo")))&&("content"===Q({data:e,param:"nol_ac"})&&"interval"===e.get("nol_cadence")&&Q({data:e,param:"nol_segmentTimeSpent"})>0||"streamduration"===Q({data:e,param:"nol_cadence"})&&e.get("nol_segmentTimeSpent","ad")>0||"id3"===Q({data:e,param:"nol_product"})&&Q({data:e,param:"nol_id3Data"})||"dcrstatic"===Q({data:e,param:"nol_product"})&&"stream"===Q({data:e,param:"nol_cadence"})||"postroll"===Q({data:e,param:"nol_vidtype"})&&"interval"===Q({data:e,param:"nol_cadence"})||t&&!0===t.flush&&e.isProductOf("dcrvideo")&&"interval"===e.get("nol_cadence")&&e.get("nol_segmentTimeSpent")>0||t&&!0===t.flush&&e.isProductOf("dcrvideo")&&"streamduration"===e.get("nol_cadence")&&"ad"===e.get("nol_ac")&&e.get("nol_segmentTimeSpent","ad")>0||t&&!0===t.flush&&e.isProductOf("dcrstatic")&&"interval"===e.get("nol_cadence")&&e.get("nol_segmentTimeSpent","static")>0)&&("content"===Q({data:e,param:"nol_ac"})||t&&!0===t.save?Ee(e,{save:!0},a&&a.onPingFired?a.onPingFired:null):Ee(e,null,a&&a.onPingFired?a.onPingFired:null),Q({data:e,param:"nolPriv_now",val:0}))}function ye(a,n,r){var i=K.findPlayer(a),o=K.getEventsFilter(a),s=i.oServiceCall[n.service],l=n.url,d=n.key,c;if(n.evntCB=Q({data:a,param:a.serviceFlag[n.service].callback}),n.callBack=function(e){ze(a,e,n)},r)return t._listeners.addListener(n.evntCB,n.callBack,!0,i),void Ie(se(a,l),n.service,i,r);if(!s&&d&&l&&l.length>0)"stnupdate"===n.evntCB&&(void 0===i.oServiceCall[n.service]||void 0===i.oServiceCall[n.service].status||"init"!==i.oServiceCall[n.service].status&&"complete"!==i.oServiceCall[n.service].status)&&(i.oServiceCall[n.service]={status:"init",station:null,data:null}),t._listeners.addListener(n.evntCB,n.callBack,!0,i),Ie(se(a,l),n.service,i);else if(s&&"init"===s.status);else if(s&&"complete"===s.status&&d!==s.station)t._listeners.addListener(n.evntCB,n.callBack,!0,i),Ie(se(a,l),n.service,i);else if(s&&"complete"===s.status&&d===s.station){for(c in s.data)s.data.hasOwnProperty(c)&&Q({data:a,param:c,val:s.data[c]});if(F&&F[i.id]&&F[i.id][n.service]?ve(a,F[i.id][n.service]):ve(a,o),"true"===Q({data:a,param:"nol_disabled"}))return;a.serviceFlag[n.service].need&&(Q({data:a,param:"nol_davState",val:"1"}),a.serviceFlag[n.service].need=!1,Ge(Q({data:a,param:"nol_queueTime"}),a))}else t._listeners.fireEvent(n.evntCB,n),e.setTimeout(function(){ye(a,n)},1e3)}function We(e,a,n,r,i){var o=null,s=Math.round(x(e)/1e3);try{var l;if(e)W.isEnabled(e)&&(o=J.inferEvent(a.currEvtType,e,a._param1,s,a._param3))&&(o.event!==J.events.play&&K.state.set(e,o),W.preProcess(e,o)),a.currEvtType&&("5"===a.currEvtType.toString()&&"6"===e.get("nolPriv_prevEvent")&&"st,a"===e.get("nol_c3")&&"false"===e.get("nol_disabled")&&"dcrvideo"===e.get("nol_product")&&"streamduration"===e.get("nol_cadence")&&(j[n.timeStamp]=we(e,{type:18,msg:"Event 6 -> 5 detected in ad."},!0,!0)),e.set("nolPriv_prevEvent",a.currEvtType.toString().toLowerCase()),e.set("nolPriv_prevEventState",a.eventState?a.eventState.toString().toLowerCase():"")),(""!==K.cms.parse(i.nol_adobeId,e,{metadata:a._param1,defaultKey:"nol_adobeId",silent:!0})||""!==K.cms.parse(i.nol_adobeSessionId,e,{metadata:a._param1,defaultKey:"nol_adobeSessionId",silent:!0})||r.isAdobe)&&(r.disablePauseTimeout(),r.isAdobe=!0)}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Error in ggpmPreProc(). Error preprocessing event - "+e.message})}return{inferredEvent:o,timestamp:s}}function He(e,a){try{e&&a.inferredEvent&&(a.inferredEvent.event===J.events.play&&K.state.set(e,a.inferredEvent),W.postProcess(e,a.inferredEvent))}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Error in ggpmPostProc(). Error postprocessing event - "+e.message})}}function Xe(e,a,n){var r,i,o,s;return e.staticIFrameFlag||(t._listeners.fireEvent("error",{type:"error",msg:"Error in "+a+' event - enableStaticInIframe flag not set to "true" in config.'}),r=!0),t.browser.isWithinIFrame()||(t._listeners.fireEvent("error",{type:"error",msg:"Error in "+a+" event - DCR Static implementation is not within an iframe."}),i=!0),t.PLDCR&&t.PLDCR.dcrTimer?void 0===t.PLDCR.dcrTimer.isActive&&"stoptimer"===a&&(t._listeners.fireEvent("error",{type:"error",msg:"Error in "+a+' event - Timer not activated, please call ggPM event "starttimer" before calling "'+a+'".'}),o=!0):(t._listeners.fireEvent("error",{type:"error",msg:"Error in "+a+' event - Timer not instantiated, please call ggPM event "staticstart" before calling "'+a+'".'}),o=!0),-1===["focus","touchstart","blur"].indexOf(n)&&(t._listeners.fireEvent("error",{type:"error",msg:"Error in "+a+" event - Invalid event type: "+n+"."}),s=!0),r||i||o||s}var t=t||{},Q=Q||function(){},K=K||{},A=A||{},Ee=Ee||function(){},ve=ve||function(){},ie=ie||function(){},j=j||{},we=we||function(){},oe=oe||function(){},h=h||{},Ie=Ie||function(){},ye=ye||function(){},Ge=Ge||function(){},x=x||function(){},Ve=Ve||function(){},xe=xe||function(){},Re=Re||function(){},Ke=Ke||function(){},Me=Me||function(){},V=V||null,Fe,N={dtvr:(new(Fe=function a(){var n=this;return this.Dtvr=function(){var a=this,n={current:{metaData:[]},new:null,index:0};function r(e,t){for(var a=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t),r=[],i=a.length>n.length?a.slice():n.slice(),o=0;o<i.length;o++){var s=i[o];e[s]!==t[s]&&r.push(s)}return r.length?"End event must be called before loading new metadata. The following parameters will not be updated: "+r.join():""}function i(){"object"===_typeof(n.new._param3)&&null!==n.new._param3&&(n.current.metaData[n.index]=n.new._param3,n.index++),"string"==typeof n.new._param3&&-1!==n.new._param3.indexOf("www.nielsen.com")&&(n.current.id3=n.new._param3),n.current.prevEvent=n.new.prevEvent,n.new=null}return this.preHandleGgpm=null,this.postHandleGgpm=null,this.preQueueGgpm=function(){},this.postQueueGgpm=function(){n.new&&i()},this.handleGgpm=function(a,i,o){var s=i.evtInfo,l=s.param1,d=s.param3?s.param3:l.hasOwnProperty("param3")?l.param3:l,c=s.param2||"",u=Q({data:a,param:"nol_playerId"}),p=A[u]||{},m=Q({data:a,param:"nol_enableFilterMap"}),f=s.eventType.toString().toLowerCase(),v=K.getEventsFilter(a),g=K.findPlayer(a),_=oe(Q({data:a,param:"nolPriv_id3Count"}),"num"),y=Q({data:a,param:"nolPriv_serverTimeOffset"}),P=Q({data:a,param:"nol_prod"}),S={filters:{onId3PcCidChanged:!1,onId3FdCidChanged:!1},count:0,filterType:"old"},b="|mtvr|,|dprid3|,|id3|",T="nol_assetid",C={},O={},L,w,E,k,D,I,M,F,N,R,B,G,j={onCalcStart:function e(t,n){a.isProductOf(["mtvr","id3"])&&o&&o.tickViewability&&"function"==typeof o.tickViewability?o.tickViewability(a,t,n):n&&n()},onPingFired:function e(t){o&&o.resetViewability&&o.resetViewability(t),t.isProductOf(["mtvr","id3"])&&o&&o.tickViewability&&"function"==typeof o.tickViewability&&o.tickViewability(t,t.get("nolPriv_currPos"))}};switch(n.new||(n.new={},n.new._param3=d),f){case"3":case"15":case"loadmetadata":var U=String(K.cms.parse(p.nol_assetid,a,{metadata:d,defaultKey:"nol_assetid",silent:!0})),z=!0===Q({data:a,param:"nol_onCompleteFired"}),q;if(d.nol_ac=a._currVidType,oe(Q({data:a,param:"nol_serverTime"}),"num")+86400<Math.round(x()/1e3)+y){Ve(a,j.onPingFired),Ke(i,Q({data:a,param:"nol_playerId"}));break}if(("15"===f||"loadmetadata"===f)&&"id3"===Q({data:a,param:"nol_product"})&&Q({data:a,param:"nol_id3Data"})){Ee(a,null,j&&j.onPingFired?j.onPingFired:null);break}if(q=a&&a._dataArrObj&&a._dataArrObj.content&&"object"===_typeof(a._dataArrObj.content)&&!a._dataArrObj.content[0]&&!a._dataArrObj.content[a._currAssetid]){ie(a,"loadMetadata",d,o),Q({data:a,param:"nol_disabled",val:"true"});break}var J=U!==Q({data:a,param:T});if(n.assetIdChanged=J,"false"===Q({data:a,param:"nol_disabled"})&&!z&&!J&&!n.new.noEndErr){if(n.current.metaData.length){var W=r(n.current.metaData[n.index-1],d);W&&we(a,{type:17,msg:W},!0,!0)}else we(a,{type:17,msg:"End event must be called before loading new metadata."},!0,!0);n.new.noEndErr=!0}if(J)for(G in"ad"!==Q({data:a,param:"nol_ac"})&&Ve(a,j.onPingFired),d)d.hasOwnProperty(G)&&Q({data:a,param:String(G),val:String(d[G])});Q({data:a,param:"nol_pingStartTimeUTC",val:Math.round(x()/1e3)}),-1!==P.indexOf("iag")&&Me(a,a._currVidType,p);break;case"5":case"play":if(d[L=p.nol_channelName?p.nol_channelName.clientField:"nol_channelName"]&&d[L].length>0)for(G in d)d.hasOwnProperty(G)&&Q({data:a,param:G,val:d[G]});break;case"55":case"sendid3":var H=l.toString().split("/"),X=H[1],Y=H[2],$=K.mtvr.fdChanged(a,Y),Z=K.mtvr.pcChanged(a,X),ee=Y===Q({data:a,param:"nol_cidNull"}),te=K.mtvr.isPCTag(a),ae=!0===Q({data:a,param:"nol_onCompleteFired"}),ne="1"===a.get("nol_fdrtvod");if("15"===n.current.prevEvent||"loadmetadata"===n.current.prevEvent){var re=n.current.metaData[n.index-1],q;if(ae){if($||Z&&ee||Z&&!ee&&(ne||te))Q({data:a,param:T,val:-1}),Re(a),xe({data:a,savedVals:["nol_nielsenAdSupportFlg"],savedReplayParams:O},o);else if(!n.assetIdChanged)for(G in re)re.hasOwnProperty(G)&&Q({data:a,param:String(G),val:String(re[G])});Q({data:a,param:"nol_onCompleteFired",val:!1})}(q=a&&a._dataArrObj&&a._dataArrObj.content&&"object"===_typeof(a._dataArrObj.content)&&!a._dataArrObj.content[0]&&!a._dataArrObj.content[a._currAssetid])&&(ie(a,"loadMetadata",re,o),Q({data:a,param:"nol_disabled",val:"true"}))}"57"!==n.current.prevEvent&&"end"!==n.current.prevEvent&&"oncomplete"!==n.current.prevEvent||($||Z&&ee||Z&&!ee&&(ne||te))&&Re(a);var se=!1,le=!1;if(("object"===(void 0===l?"undefined":_typeof(l))&&Object.keys(l).length>0||"string"==typeof l&&l.length>0)&&(!0===Q({data:a,param:"nol_onCompleteFired"})&&g&&g.getPauseQueueCount&&g.getPauseQueueCount()>0?t._listeners.fireEvent("flushPauseEventQueue"):!0===Q({data:a,param:"nol_onCompleteFired"})&&g&&!g.getPauseQueueCount&&t._listeners.fireEvent("flushPauseEventQueue"),"object"===(void 0===l?"undefined":_typeof(l))))for(B=0;B<l.length;B+=1)if(l[B].key&&"PRIV"===l[B].key){l=l[B].info;break}if(249!==(k=l.toString()).length&&(n.id3LengthErr||(we(a,{type:17,msg:"ID3 tag length is not 249. ID3 Tag: "+k},!0,!0),e.console&&e.console.warn&&e.console.warn("Warning: ID3 tag length is not 249."),n.id3LengthErr=!0)),l={},(E=k.split("/")).length<oe(V.nol_breakout,"num"))return;for(G in(parseInt(E[4])>86400||parseInt(E[5])>86400)&&(n.offsetErr||(we(a,{type:17,msg:"Invalid offset value, offsets received - PC: "+E[4]+", FD: "+E[5]},!0,!0),n.offsetErr=!0)),V)V.hasOwnProperty(G)&&(l[G]=E[V[G]],"nol_breakout"===G&&(l[G]=E[oe(V[G],"num")].substr(0,2)),C[G]=l[G]);if(!l||Q({data:a,param:"nol_tsvBreakoutMap"})&&-1===Q({data:a,param:"nol_tsvBreakoutMap"}).enable.indexOf(l.nol_breakout)||-1===l.nol_nWebAddress.indexOf("nielsen.com")||l.nol_fdcid===Q({data:a,param:"nol_cidNull"})&&l.nol_pccid===Q({data:a,param:"nol_cidNull"}))return;for(a._currVidType="content",R=0,B=m.length;R<B;R+=1)w=p[m[R]]?p[m[R]].clientField:m[R],C[m[R]]=l[w]||Q({data:a,param:m[R]});if(C.nol_vidtype="content",ve(a,v.onId3Detected,C),"false"!==C.nol_disabled||"nol_cmsoffset"===Q({data:a,param:"nol_timer"}))return;if("daypart"===Q({data:a,param:"nol_cadence"})){var de=Q({data:a,param:"nol_assetid"})||a._currAssetid;!de&&l.nol_fdcid&&l.nol_fdcid!==Q({data:a,param:"nol_cidNull"})?a._currAssetid=l.nol_fdcid:!a._currAssetid&&de&&(a._currAssetid=de)}l.nol_ac=a._currVidType,l.nol_assetid=Q({data:a,param:"nol_assetid"})||a._currAssetid,_>0&&(-1!==Q({data:a,param:"nol_product"}).indexOf("id3")||-1!==Q({data:a,param:"nol_product"}).indexOf("mtvr"))&&(l.nol_pccid!==Q({data:a,param:"nol_cidNull"})&&l.nol_pccid!==Q({data:a,param:"nol_pccid"})||l.nol_fdcid!==Q({data:a,param:"nol_cidNull"})&&l.nol_fdcid!==Q({data:a,param:"nol_fdcid"}))&&($||Z&&ee||Z&&!ee&&(ne||te))&&Ee(a,null,j.onPingFired,!0);var ce=K.mtvr.pcChanged(a,l.nol_pccid),ue=K.mtvr.fdChanged(a,l.nol_fdcid);if(ce&&(K.mtvr.isPCTag(a)||K.mtvr.isTransPing(a))&&(S.filters.onId3PcCidChanged=!0,S.count+=1,o&&o.startViewability(a),(ue||K.mtvr.isNullFDCid(a))&&a.set("nol_id3Seq",0)),ue&&(K.mtvr.isFDTag(a)||K.mtvr.isTransPing(a))&&(S.filters.onId3FdCidChanged=!0,S.count+=1,o&&o.startViewability(a),a.set("nol_id3Seq",0)),ue&&K.mtvr.isPCTag(a)&&(se=!0),""===a.get("nol_fdrtvod")||"0"===a.get("nol_fdrtvod")||!K.mtvr.isPCTag(a)&&!K.mtvr.isFDTag(a)||K.mtvr.isNullPCCid(a)||""===a.get("nol_pccid")||K.mtvr.isNullFDCid(a)||""===a.get("nol_fdcid")||!ce||(le=!0,K.mtvr.isFDTag(a)&&v&&v.onId3FdCidChanged&&ve(a,v.onId3FdCidChanged)),S.count){if(ie(a,"sendID3",l,o),!S.filters.onId3FdCidChanged&&Q({data:a,param:"nol_fdcid"})!=Q({data:a,param:"nol_cidNull"})||-1===Q({data:a,param:"nol_tsvBreakoutMap"}).enable.indexOf(l.nol_breakout)||(a.serviceFlag.tsv.need=!0),S.count>0)for(G in S.filters)if(S.filters[G]&&(ve(a,v[G]),"true"===Q({data:a,param:"nol_disabled"})))return;if(v.onComplete&&(ve(a,v.onComplete),"true"===Q({data:a,param:"nol_disabled"})))return}else{for(G in l)l.hasOwnProperty(G)&&Q({data:a,param:G,val:l[G]});if("true"===Q({data:a,param:"nolPriv_enableDtvr"})&&("true"===Q({data:a,param:"nol_disabled"})&&Q({data:a,param:"nol_disabled",val:"false"}),Q({data:a,param:"nolPriv_enableDtvr",val:"false"}),a&&a._dataArrObj&&a._dataArrObj.content&&"object"===_typeof(a._dataArrObj.content)&&a._dataArrObj.content[a._currAssetid]&&void 0!==a._dataArrObj.content[a._currAssetid].nol_davty)){var pe=Q({data:a,param:"nol_defaults"}).nol_davty;null!=pe&&Q({data:a,param:"nol_davty",val:pe})}}if((ue&&K.mtvr.isFDTag(a)||ce&&K.mtvr.isPCTag(a))&&a.isProductOf("mtvr")&&"impression"===a.get("nol_cadence")&&"false"===a.get("nol_disabled")){var me=h[u].nolPriv_newMTVRStreamId;h[u].nolPriv_newMTVRStreamId=me&&h[u].restEvtTimestamp==i.timeStamp?me:t.generateGUID(),K.mtvr.resetTagSession(a,h[u].nolPriv_newMTVRStreamId),h[u].restEvtTimestamp=i.timeStamp,t._listeners.fireEvent("debug",{type:"debug",msg:a.get("nol_comment")+" new mtvr session is "+me})}if((a.isProductOf("mtvr")||a.isProductOf("id3"))&&"false"===a.get("nol_disabled")&&h[u].restEvtTimestamp!=i.timeStamp){var fe=h[u].nolPriv_newMTVRStreamId;fe&&fe!==a.get("nol_sessionId","content")&&K.mtvr.resetTagSession(a,fe)}if(Q({data:a,param:"nol_id3Raw",val:k}),(a.serviceFlag.tsv.need||se||le)&&-1!==b.indexOf("|"+Q({data:a,param:"nol_product"})+"|")&&"false"===a.get("nol_disabled")&&(["true","1"].indexOf(a.get("nol_rtvodEnabled").toString().toLowerCase())>-1&&a.set("nol_rtvod",""),D=le?Q({data:a,param:"nol_pccid"}):se?Q({data:a,param:"nol_fdcid"}):!0!==S.filters.onId3PcCidChanged||K.mtvr.isNullPCCid(a)?Q({data:a,param:"nol_fdcid"}):Q({data:a,param:"nol_pccid"}),a.get("nol_tsvURL")&&ye(a,{service:"tsv",key:D,url:Q({data:a,param:"nol_tsvURL"})})),(a.isProductOf("id3")||a.isProductOf("mtvr")&&"interval"===a.get("nol_cadence")&&"false"===a.get("nol_disabled"))&&l.nol_watermark&&String(l.nol_watermark).length>0&&(M=Q({data:a,param:"nol_id3Data"}),F=Math.round(x()/1e3+y),N=Q({data:a,param:"nol_id3Seq"})||0,M?Q({data:a,param:"nol_id3Data",val:M+="|"+F+","+Q({data:a,param:"nol_id3Raw"})}):(Q({data:a,param:"nol_id3Data",val:N+":"+Q({data:a,param:"nol_clocksrc"})+":"+Q({data:a,param:"nol_tsvFlag"})+":"+F+","+Q({data:a,param:"nol_id3Raw"})}),Q({data:a,param:"nol_id3Seq",val:oe(N,"num")+1,vidType:"content"})),a.isProductOf("id3")))return _>0&&Ee(a,{returnLength:!0},j.onPingFired),Q({data:a,param:"nolPriv_id3Count",val:_+=1}),Q({data:a,param:"nol_davState",val:"1"}),void(n.new.prevEvent=f);if(Q({data:a,param:"nolPriv_id3Count",val:_+=1}),I=Q({data:a,param:Q({data:a,param:"nol_timer"})})||Q({data:a,param:"nol_fdoffset"}),"daypart"===Q({data:a,param:"nol_cadence"})&&(I=oe(I,"num"),I+="nol_pcoffset"==Q({data:a,param:"nol_timer"})?oe(Q({data:a,param:"nol_pcTimeCode"}),"num"):oe(Q({data:a,param:"nol_fdTimeCode"}),"num")),a.serviceFlag.tsv.need)Q({data:a,param:"nol_queueTime",val:I});else{if("true"===Q({data:a,param:"nol_disabled"}))return;Ge(I,a,j),Q({data:a,param:"nol_davState",val:"1"})}(ue&&K.mtvr.isFDTag(a)||ce&&K.mtvr.isPCTag(a))&&(K.mtvr.isPCTag(a)&&"false"===a.get("nol_disabled")?o&&o.tickViewability(a,l.nol_pcoffset):K.mtvr.isFDTag(a)&&"false"===a.get("nol_disabled")&&o&&o.tickViewability(a,l.nol_fdoffset));break;case"57":case"end":case"oncomplete":"static"!==Q({data:a,param:"nol_ac"})&&(a._currVidType="content"),v.onEndDetected&&"false"===a.get("nol_disabled")&&ve(a,v.onEndDetected),Q({data:a,param:"nol_forceFireOnClose_content",val:"1"}),"false"!==Q({data:a,param:"nol_disabled"})&&"id3"!==Q({data:a,param:"nol_product"})||Ve(a,j.onPingFired),Q({data:a,param:"nol_onCompleteFired",val:!0}),h[u].forceStreamRegen=!0,"sessionReset"!==c&&g.disablePauseTimeout()}n.new.prevEvent=f},this},this})).Dtvr()};function Ye(a,n,r){var i=Q({data:a,param:"nol_playerId"});if(i===n.id)if(n.evtInfo&&void 0!==n.evtInfo.eventType&&null!==n.evtInfo.eventType&&""!==n.evtInfo.eventType&&(!n.evtInfo.hasOwnProperty("param1")||null!==n.evtInfo.param1&&void 0!==n.evtInfo.param1)){var o=n.evtInfo,s=o.param1,l=o.param3?o.param3:s.hasOwnProperty("param3")?s.param3:s,d=o.param2||"",c,u=oe(Q({data:a,param:"nolPriv_id3Count"}),"num"),p,m,f,v=Q({data:a,param:"nol_enableFilterMap"}),g="|mtvr|,|dprid3|,|id3|",_,y,P={filters:{onId3PcCidChanged:!1,onId3FdCidChanged:!1},count:0,filterType:"old"},S,b,T=K.getEventsFilter(a),C,O=Q({data:a,param:"nol_prod"}),L,w={},E=o.eventType.toString(),k,D="content",I,M,F,R=Q({data:a,param:"nolPriv_serverTimeOffset"}),B=A[i]||{},G=B.nol_vidtype?B.nol_vidtype.clientField:"nol_vidtype",U=B.nol_tagSrc?B.nol_tagSrc.clientField:"nol_tagSrc",z=B.nol_ac?B.nol_ac.clientField:"nol_ac",q=B.nol_linearAdLoadFlag?B.nol_linearAdLoadFlag.clientField:"nol_linearAdLoadFlag",J=l[G]?l[G].toString().toLowerCase():l.type?l.type.toString().toLowerCase():"",H="nol_assetid",X=K.findPlayer(a),Y=X.metadataCtrl,$={};J&&n.timeStamp&&!j[n.timeStamp]&&-1==["static","content","ad","preroll","postroll","midroll"].indexOf(J.toLowerCase())&&(t._listeners.fireEvent("error",{type:"error",msg:"Error in handleGgpm - Invalid content type param"}),j[n.timeStamp]=we(a,{type:101,msg:"Invalid content type param in ggPM"},!0,!0));var Z={onTick:function e(t){!a.isProductOf(["mtvr","id3"])&&r&&r.tickViewability&&"function"==typeof r.tickViewability&&r.tickViewability(a,t)},onCalcStart:function e(t,n){a.isProductOf(["mtvr","id3"])&&r&&r.tickViewability&&"function"==typeof r.tickViewability?r.tickViewability(a,t,n):n&&n()},onPingFired:function e(t){r&&r.resetViewability&&r.resetViewability(t),t.isProductOf(["mtvr","id3"])&&r&&r.tickViewability&&"function"==typeof r.tickViewability&&r.tickViewability(t,t.get("nolPriv_currPos"))}};E=E.toLowerCase();var ee=We(a,{currEvtType:E,_param1:s,eventState:d,_param3:l},n,X,B),te=Q({data:a,param:"nol_linearAdLoadFlag",vidType:a._currVidType});"object"===_typeof(n.evtInfo.param1)&&n.evtInfo.param1.adModel&&-1==["0","1","2"].indexOf(n.evtInfo.param1.adModel)&&(["0","1","2"].indexOf(te)>-1?n.evtInfo.param1.adModel=te:n.evtInfo.param1.adModel=Q({data:a,param:"nol_linearAdLoadFlag"})),E="3"===E.toLowerCase()?"15":E.toLowerCase();var ae=Ce(n),ne=Y.pageURL,re=Y.pageTitle,se=Y.evalPageData(),le=se.pageUrl,de=se.pageTitle;switch(le===ne&&de===re||(Y.pageURL=le,Y.pageTitle=de,Y.handleMetadataPingReset(),h[i].nol_pageURLmeta=Y.pageURL,h[i].nol_pageTitle=Y.pageTitle),E){case"3":case"14":case"15":case"loadmetadata":case"staticstart":case"pauseloadmeta":if("object"===_typeof(n.evtInfo.param1)&&-1==["0","1","2"].indexOf(n.evtInfo.param1.adModel)&&(n.evtInfo.param1.adModel=Q({data:a,param:"nol_linearAdLoadFlag"})),("14"===E||"staticstart"===E)&&"dcrstatic"!==Q({data:a,param:"nol_product"}))return;if("14"!==E&&"staticstart"!==E&&"dcrstatic"===Q({data:a,param:"nol_product"}))return;if("pauseloadmeta"===E&&a.isProductOf("vrivideo"))return;"14"!==E&&"staticstart"!==E||"dcrstatic"!==Q({data:a,param:"nol_product"})||!X.staticIFrameFlag||t.browser.isWithinIFrame()||n.timeStamp&&!j[n.timeStamp]&&(t._listeners.fireEvent("error",{type:"error",msg:"DCR Static not in iFrame, but enableStaticInIframe is set to true in config"}),j[n.timeStamp]=we(a,{type:17,msg:"DCR Static not in iFrame, but enableStaticInIframe is set to true in config"},!0,!0));var ce=","+Q({data:a,param:"nol_contentType"}),ue=a._currVidType,pe=Q({data:a,param:"nolPriv_prevEvent"}),me=Q({data:a,param:"nol_currPos"}),fe=J&&-1!==ce.indexOf(","+J.toLowerCase())?"content":"dcrstatic"===Q({data:a,param:"nol_product"})?"static":"ad";if(a._currVidType=fe,(ue!==a._currVidType||a.get("nolPriv_forcedContent"))&&(r&&r.resetViewability(a),a.set("nolPriv_forcedContent",!1)),N.dtvr&&("15"===E||"loadmetadata"===E)&&a.isProductOf(["mtvr","id3"])&&"content"===a._currVidType){N.dtvr.handleGgpm(a,ae,r);break}"ad"===ue&&"content"===a._currVidType&&a.isProductOf("dcrvideo")&&"interval"===a.get("nol_cadence")&&a.set("nolPriv_currPos","");var ge=null,_e=null,he=String(K.cms.parse(B.nol_assetid,a,{metadata:l,defaultKey:"nol_assetid",silent:!0}));("ad"===Q({data:a,param:"nol_ac"})&&Q({data:a,param:"nol_segmentTimeSpent"})>0&&"streamduration"===Q({data:a,param:"nol_cadence"})||"stream"===Q({data:a,param:"nol_cadence"})&&"dcrstatic"===Q({data:a,param:"nol_product"})||"dcrstatic"===Q({data:a,param:"nol_product"})&&String(a._currAssetid)!==he)&&Ve(a,Z.onPingFired);var Pe=!0===a.get("nol_onCompleteFired");if(!0===Q({data:a,param:"nol_onCompleteFired"})?("content"!==a._currVidType&&"static"!==a._currVidType||("content"===a._currVidType.toLowerCase()&&h[i].hasOwnProperty("forceStreamRegen")&&!0===h[i].forceStreamRegen&&qe(a),Q({data:a,param:H,val:-1}),"content"===a._currVidType?(ge=K.state.clone(a),_e=W.clone(a),xe({data:a,savedVals:["nol_nielsenAdSupportFlg"],savedReplayParams:$},r)):xe({data:a,resetStatic:!0},r)),Q({data:a,param:"nol_onCompleteFired",val:!1})):"14"!==E&&"staticstart"!==E||"stream"!==Q({data:a,param:"nol_cadence"})||(Q({data:a,param:H,val:-1}),xe({data:a},r)),"ad"===a._currVidType&&a._dataArrObj[a._currVidType].hasOwnProperty(a._currAssetid)){var Se=tt(Q({data:a,param:"nol_segmentLength"}));Q({data:a,param:"nol_minutes",val:Se}),Q({data:a,param:H,val:-1}),Q({data:a,param:G,val:J}),"1"!==Q({data:a,param:"nol_nielsenAdSupportFlg",vidType:"content"})&&Q({data:a,param:"nol_nielsenAdSupportFlg",val:"1",vidType:"content"})}if(a._currAssetid=he&&"daypart"===Q({data:a,param:"nol_cadence"})||"stream"!==Q({data:a,param:"nol_cadence"})&&"dcrstatic"===Q({data:a,param:"nol_product"})?he:a._currAssetid,l.nol_ac=a._currVidType,oe(Q({data:a,param:"nol_serverTime"}),"num")+86400<Math.round(x()/1e3)+R)return Ve(a,Z.onPingFired),void Ke(n,Q({data:a,param:"nol_playerId"}));for(k=0,I=v.length;k<I;k+=1)c=B[v[k]]?B[v[k]].clientField:v[k],w[v[k]]=String(l[c]||"");p=he||Q({data:a,param:"nolPriv_assetid"}),"15"!==E&&"loadmetadata"!==E||"id3"!==Q({data:a,param:"nol_product"})||!Q({data:a,param:"nol_id3Data"})||Ee(a,null,Z&&Z.onPingFired?Z.onPingFired:null);var be=p!==Q({data:a,param:H})||a&&a._dataArrObj&&a._dataArrObj.content&&"object"===_typeof(a._dataArrObj.content)&&!a._dataArrObj.content[0],Te;if(ve(a,T.onCmsDetected,w),"false"!==w.nol_disabled||!l)return void("cms"!==a._currTagSrc&&(be?(ie(a,"loadMetadata",l,r),Q({data:a,param:"nol_disabled",val:"true"})):K.updateMetadata(a,l,B,{inferred:!0}),"15"!==E&&"loadmetadata"!==E||"id3"!==Q({data:a,param:U,vidType:"content"})&&!a.isProductOf("mtvr")||!0===Q({data:a,param:"nolPriv_dtvrHybrid",vidType:"content"})||Q({data:a,param:"nolPriv_dtvrHybrid",val:!0,vidType:"content"})));if("static"===a._currVidType&&"dcrstatic"===Q({data:a,param:"nol_product"})?(t._listeners.fireEvent("updateCmbStaticPage",{evtInfo:o,plid:i}),D="static"):D="content",p!==Q({data:a,param:H})){"ad"!==Q({data:a,param:"nol_ac"})&&Ve(a,Z.onPingFired);var Oe=Q({data:a,param:H});if(ie(a,"loadMetadata",l,r),Oe&&!Pe&&"content"===a._currVidType.toLowerCase()&&a.isProductOf("dcrvideo")&&"impression"===a.get("nol_cadence")&&a.set("nolPriv_resetSession",!0),Object.keys($).length>0){for(var Le in $)$.hasOwnProperty(Le)&&""!==$[Le]&&Q({data:a,param:Le,val:$[Le]});$={}}if(Q({data:a,param:"nolPriv_assetid",val:Q({data:a,param:H})}),"15"!==E&&"loadmetadata"!==E||"id3"!==Q({data:a,param:U,vidType:"content"})&&!a.isProductOf("mtvr")||!0===Q({data:a,param:"nolPriv_dtvrHybrid",vidType:"content"})||Q({data:a,param:"nolPriv_dtvrHybrid",val:!0,vidType:"content"}),ve(a,T.onAssetIdChanged),"true"===Q({data:a,param:"nol_disabled"}))return;if("drm"===Q({data:a,param:"nol_product"}))a.serviceFlag.stn.need=!0;else if(a.serviceFlag.stn.need=!1,"true"===Q({data:a,param:"nol_disabled"}))return;if(ve(a,T.onComplete),ge&&K.state.bind(a,ge),_e&&W.bind(a,_e),"true"===Q({data:a,param:"nol_disabled"}))return}if("ad"===a._currVidType&&a.isProductOf(["dcrvideo","vrivideo"])&&"impression"!==Q({data:a,param:"nol_cadence"}))Q({data:a,param:"nol_timeSpentViewing"})[a._currVidType].nol_count++;a.isProductOf("vrivideo")&&"impression"===a.get("nol_cadence")&&(a.set("nol_vriEvent","start"),a.set("nol_startPos","")),Q({data:a,param:"nol_pingStartTimeUTC",val:Math.round(x()/1e3)}),-1!==O.indexOf("iag")&&Me(a,a._currVidType,B),("ad"===a._currVidType&&!a.isProductOf(["dcrvideo","vrivideo"])||"stream"===Q({data:a,param:"nol_cadence"}))&&(Q({data:a,param:"nol_pingCount",val:0}),Q({data:a,param:"nolPriv_sendData",val:!0}),Q({data:a,param:"nol_davState",val:"0"}),a.serviceFlag.stn.need||"content"===a._currVidType||"nol_cmsoffset"!==Q({data:a,param:"nol_timer"})&&"nol_pageoffset"!==Q({data:a,param:"nol_timer"})||Ge(0,a,Z)),"14"!==E&&"staticstart"!==E||"dcrstatic"!==Q({data:a,param:"nol_product"})||!0===X.static.started||(t.PLDCR.start(!0),X.static.started=!0);break;case"5":case"play":if("mtvr"===Q({data:a,param:"nol_product"})){if(N.dtvr){N.dtvr.handleGgpm(a,ae,r);break}if(l[C=B.nol_channelName?B.nol_channelName.clientField:"nol_channelName"]&&l[C].length>0)for(M in l)l.hasOwnProperty(M)&&Q({data:a,param:M,val:l[M]})}else a.isProductOf(["dcrvideo","vrivideo"])&&1==a.get("nolPriv_adStop")&&(a.set("nolPriv_adStop",!1),"ad"===a._currVidType&&a.isProductOf("dcrvideo")&&"interval"===a.get("nol_cadence")&&a.set("nolPriv_currPos","","content"),a._currVidType="content",w={nol_vidtype:Q({data:a,param:G,vidType:a._currVidType}),nol_tagSrc:Q({data:a,param:U,vidType:a._currVidType}),nol_linearAdLoadFlag:Q({data:a,param:q,vidType:a._currVidType}),nol_ac:Q({data:a,param:z,vidType:a._currVidType})},ve(a,T.onCmsDetected,w));break;case"6":case"pause":Qe(a,null,Z);break;case"7":case"stop":Qe(a,null,Z),"ad"===a._currVidType&&a.isProductOf("dcrvideo")&&a.set("nolPriv_adStop",!0);break;case"flush":var ke=a.get("nol_cadence");!a.isProductOf(["dcrvideo","dcrstatic"])||"interval"!==ke&&"streamduration"!==ke||(Qe(a,{flush:!0,save:!0},Z),a.isProductOf("dcrstatic")&&X.static.started&&(t.PLDCR.dcrTimer.reset(),a.set("nolPriv_currPos","0")));break;case"changecontext":s&&["content","ad"].indexOf(s)>-1&&(a._currVidType=s);break;case"updateott":if(Qe(a,null,Z),s&&s.hasOwnProperty("ottStatus")&&s.ottStatus.length>0){if(s.hasOwnProperty("kGCKMetadataNlsKeyOptout")&&s.hasOwnProperty("kGCKMetadataNlsKeyDeviceID")){var De=s.kGCKMetadataNlsKeyOptout.toString().toLowerCase();Q({data:a,param:"nol_userSessionId",val:s.kGCKMetadataNlsKeyDeviceID,vidType:"content"}),Q({data:a,param:"nol_useroptout",val:"1"===De||"true"===De?"true":"false",vidType:"content"}),-1===[1,"1","true",0,"0","false"].indexOf(De)&&t._listeners.fireEvent("warn",{type:"warn",msg:"Warning: Invalid kGCKMetadataNlsKeyOptout value."})}for(var H in s)s.hasOwnProperty(H)&&(Q({data:a,param:H,val:s[H],vidType:"content"}),X.ottStatusObj[H]=s[H]);T.onOTTDetected&&ve(a,T.onOTTDetected)}break;case"57":case"56":case"end":case"oncomplete":case"staticend":if(("56"===E||"staticend"===E)&&"dcrstatic"!==Q({data:a,param:"nol_product"}))return;if("56"!==E&&"staticend"!==E&&"dcrstatic"===Q({data:a,param:"nol_product"}))return;if(a.isProductOf("vrivideo")&&("57"===E||"end"===E)&&("sessionReset"===d||"modcadence"!=a.get("nol_cadence")))return;if(N.dtvr&&("57"===E||"end"===E||"oncomplete"===E)&&a.isProductOf(["mtvr","id3"])){N.dtvr.handleGgpm(a,ae,r);break}if("ad"===a._currVidType&&("streamduration"===Q({data:a,param:"nol_cadence"})?Ee(a,null,Z.onPingFired):a.isProductOf(["dcrvideo"])&&"interval"===Q({data:a,param:"nol_cadence"})&&(""===Q({data:a,param:"nol_dataDate",vidType:"content"})&&""!==Q({data:a,param:"nol_dataDate"})&&(Q({data:a,param:"nol_dataDate",val:Q({data:a,param:"nol_dataDate"}),vidType:"content"}),Q({data:a,param:"nol_hourCode",val:Q({data:a,param:"nol_hourCode"}),vidType:"content"}),Q({data:a,param:"nol_dayId",val:Q({data:a,param:"nol_dayId"}),vidType:"content"})),a._currVidType="content",T.onEndDetected&&ve(a,T.onEndDetected),Ee(a,null,Z.onPingFired))),a.isProductOf("dcrvideo")&&a.set("nolPriv_currPos",""),a.isProductOf("vrivideo")&&"modcadence"===a.get("nol_cadence")){var Ie=a.get("nol_length")||K.cms.parse(B.nol_length,a,{defaultKey:"nol_length",silent:!0});if("NaN"===parseInt(Ie).toString())return;if(!(parseInt(a.get("nol_currPos"))>=parseInt(a.get("nol_length"))))return;a.set("nol_vriEvent","ended")}"static"!==Q({data:a,param:"nol_ac"})&&(a._currVidType="content"),T.onEndDetected&&ve(a,T.onEndDetected),Q({data:a,param:"nol_forceFireOnClose_content",val:"1"}),"false"!==Q({data:a,param:"nol_disabled"})&&"id3"!==Q({data:a,param:"nol_product"})||("static"===Q({data:a,param:"nol_ac"})&&t._listeners.fireEvent("removeCmbAssetId",o),Ve(a,Z.onPingFired)),Q({data:a,param:"nol_onCompleteFired",val:!0}),h[i].forceStreamRegen=!0,"56"!=E&&"staticend"!=E||"dcrstatic"!==Q({data:a,param:"nol_product"})||(t.PLDCR.stop(),X.static.started=!1),"sessionReset"!==d&&X.disablePauseTimeout();break;case"48":case"setpageduration":case"pageduration":case"staticposition":if("true"===Q({data:a,param:"nol_disabled"})||!s||"nol_pageoffset"!==Q({data:a,param:"nol_timer"}))return;var Ae;"1"===Q({data:a,param:"nol_onPaginateFired_static"})&&(Q({data:a,param:"nol_onPaginateFired",val:"0",vidType:"static"}),"impression"!==Q({data:a,param:"nol_cadence"})&&Ne(a,{vidType:"static"})),(F=oe(Q({data:a,param:"nol_highWM"}),"num"))<oe(s,"num")&&Q({data:a,param:"nol_highWM",val:s}),Ge(s,a,Z),Q({data:a,param:"nol_davState",val:"1"}),Ae=a.get("nol_cadenceOverrideEnabled")&&a.get("nol_cadenceOverride")?a.get("nol_cadenceOverride"):!(!t.PLDCR.cadenceOverrideEnabled||!t.PLDCR.cadenceOverride)&&t.PLDCR.cadenceOverride;var Fe=60*parseInt(a.get("nol_segmentLength")||0);"dcrstatic"===a.get("nol_product")&&Ae&&Ae>0&&Ae<=s&&(!Fe||Ae<Fe)&&(Qe(a,{flush:!0,save:!0},Z),t.PLDCR.dcrTimer.reset(),a.set("nolPriv_currPos","0"));break;case"49":case"setplayheadposition":case"playheadposition":if(s>-1){if(!0===Q({data:a,param:"nol_onCompleteFired"})&&t._listeners.fireEvent("flushPauseEventQueue"),"true"===Q({data:a,param:"nol_disabled"})||!s||"nol_cmsoffset"!==Q({data:a,param:"nol_timer"})||"ad"===a._currVidType&&a.isProductOf(["dcrvideo","vrivideo"])&&"impression"===Q({data:a,param:"nol_cadence"}))return;if("number"!=typeof s){if("string"!=typeof s)return;s=oe(s,"num")}else s=Math.floor(s);if(!0===a.get("nolPriv_resetSession")&&(a.set("nolPriv_resetSession",!1),h[i].forceStreamRegen=!0,qe(a)),a.isProductOf("vrivideo")){var Re=Math.floor(s);"impression"===a.get("nol_cadence")&&1===Re&&Re<a.get("nolPriv_prevPos")&&(a.set("nol_pingCount",0),a.set("nol_currPos","")),"modcadence"===a.get("nol_cadence")&&a.set("nol_vriEvent","loop")}Q({data:a,param:"nol_isLive",val:(s>86400).toString()}),(F=oe(Q({data:a,param:"nol_highWM"}),"num"))<s&&Q({data:a,param:"nol_highWM",val:s}),a.serviceFlag.stn.need?(Q({data:a,param:"nol_queueTime",val:s}),ye(a,{service:"stn",key:Q({data:a,param:"nol_assetid"}),url:Q({data:a,param:"nol_stationURL"}),nol_playerId:Q({data:a,param:"nol_playerId"})})):Ge(s,a,Z),Q({data:a,param:"nol_davState",val:"1"}),"content"!==a._currVidType||X.isAdobe||X._pauseTimeoutEnabled||X.enablePauseTimeout()}else n.timeStamp&&!j[n.timeStamp]&&(j[n.timeStamp]=we(a,{type:15,msg:"A negative playhead position was sent and will be ignored."},void 0,!0),j[n.timeStamp]&&t._listeners.fireEvent("warn",{type:"warn",msg:"Warning: A negative playhead position was sent and will be ignored."}));break;case"55":case"sendid3":if("nol_cmsoffset"===a.get("nol_timer")||"nol_pageoffset"===a.get("nol_timer"))return;if(N.dtvr){N.dtvr.handleGgpm(a,ae,r);break}var Be=!1,je=!1;if(("object"===(void 0===s?"undefined":_typeof(s))&&Object.keys(s).length>0||"string"==typeof s&&s.length>0)&&(!0===Q({data:a,param:"nol_onCompleteFired"})&&X&&X.getPauseQueueCount&&X.getPauseQueueCount()>0?t._listeners.fireEvent("flushPauseEventQueue"):!0===Q({data:a,param:"nol_onCompleteFired"})&&X&&!X.getPauseQueueCount&&t._listeners.fireEvent("flushPauseEventQueue"),"object"===(void 0===s?"undefined":_typeof(s))))for(I=0;I<s.length;I+=1)if(s[I].key&&"PRIV"===s[I].key){s=s[I].info;break}if(249!==(y=s.toString()).length&&n.timeStamp&&!j[n.timeStamp]&&(j[n.timeStamp]=we(a,{type:17,msg:"ID3 tag length is not 249. ID3 Tag: "+y},!0,!0),e.console&&e.console.warn&&e.console.warn("Warning: ID3 tag length is not 249.")),s={},(_=y.split("/")).length<oe(V.nol_breakout,"num"))return;for(M in V)V.hasOwnProperty(M)&&(s[M]=_[V[M]],"nol_breakout"===M&&(s[M]=_[oe(V[M],"num")].substr(0,2)),w[M]=s[M]);if(!s||Q({data:a,param:"nol_tsvBreakoutMap"})&&-1===Q({data:a,param:"nol_tsvBreakoutMap"}).enable.indexOf(s.nol_breakout)||-1===s.nol_nWebAddress.indexOf("nielsen.com")||s.nol_fdcid===Q({data:a,param:"nol_cidNull"})&&s.nol_pccid===Q({data:a,param:"nol_cidNull"}))return;for(a._currVidType="content",k=0,I=v.length;k<I;k+=1)c=B[v[k]]?B[v[k]].clientField:v[k],w[v[k]]=s[c]||Q({data:a,param:v[k]});if(w.nol_vidtype="content",ve(a,T.onId3Detected,w),"false"!==w.nol_disabled||"nol_cmsoffset"===Q({data:a,param:"nol_timer"}))return;if("daypart"===Q({data:a,param:"nol_cadence"})){var Ue=Q({data:a,param:"nol_assetid"})||a._currAssetid;!Ue&&s.nol_fdcid&&s.nol_fdcid!==Q({data:a,param:"nol_cidNull"})?a._currAssetid=s.nol_fdcid:!a._currAssetid&&Ue&&(a._currAssetid=Ue)}s.nol_ac=a._currVidType,s.nol_assetid=Q({data:a,param:"nol_assetid"})||a._currAssetid,u>0&&(-1!==Q({data:a,param:"nol_product"}).indexOf("id3")||-1!==Q({data:a,param:"nol_product"}).indexOf("mtvr"))&&(s.nol_pccid!==Q({data:a,param:"nol_cidNull"})&&s.nol_pccid!==Q({data:a,param:"nol_pccid"})||s.nol_fdcid!==Q({data:a,param:"nol_cidNull"})&&s.nol_fdcid!==Q({data:a,param:"nol_fdcid"}))&&Ee(a,null,Z.onPingFired,!0);var ze=K.mtvr.pcChanged(a,s.nol_pccid),Je=K.mtvr.fdChanged(a,s.nol_fdcid);if(ze&&(K.mtvr.isPCTag(a)||K.mtvr.isTransPing(a))&&(P.filters.onId3PcCidChanged=!0,P.count+=1,r&&r.startViewability(a),(Je||K.mtvr.isNullFDCid(a))&&a.set("nol_id3Seq",0)),Je&&(K.mtvr.isFDTag(a)||K.mtvr.isTransPing(a))&&(P.filters.onId3FdCidChanged=!0,P.count+=1,r&&r.startViewability(a),a.set("nol_id3Seq",0)),Je&&K.mtvr.isPCTag(a)&&(Be=!0),""===a.get("nol_fdrtvod")||"0"===a.get("nol_fdrtvod")||!K.mtvr.isPCTag(a)&&!K.mtvr.isFDTag(a)||K.mtvr.isNullPCCid(a)||""===a.get("nol_pccid")||K.mtvr.isNullFDCid(a)||""===a.get("nol_fdcid")||!ze||(je=!0,K.mtvr.isFDTag(a)&&T&&T.onId3FdCidChanged&&ve(a,T.onId3FdCidChanged)),P.count){if(ie(a,"sendID3",s,r),!P.filters.onId3FdCidChanged&&Q({data:a,param:"nol_fdcid"})!=Q({data:a,param:"nol_cidNull"})||-1===Q({data:a,param:"nol_tsvBreakoutMap"}).enable.indexOf(s.nol_breakout)||(a.serviceFlag.tsv.need=!0),P.count>0)for(M in P.filters)if(P.filters[M]&&(ve(a,T[M]),"true"===Q({data:a,param:"nol_disabled"})))return;if(T.onComplete&&(ve(a,T.onComplete),"true"===Q({data:a,param:"nol_disabled"})))return}else for(M in s)s.hasOwnProperty(M)&&Q({data:a,param:M,val:s[M]});if((Je&&K.mtvr.isFDTag(a)||ze&&K.mtvr.isPCTag(a))&&a.isProductOf("mtvr")&&"impression"===a.get("nol_cadence")&&"false"===a.get("nol_disabled")){var Ye=h[i].nolPriv_newMTVRStreamId;h[i].nolPriv_newMTVRStreamId=Ye&&h[i].restEvtTimestamp==n.timeStamp?Ye:t.generateGUID(),K.mtvr.resetTagSession(a,h[i].nolPriv_newMTVRStreamId),h[i].restEvtTimestamp=n.timeStamp,t._listeners.fireEvent("debug",{type:"debug",msg:a.get("nol_comment")+" new mtvr session is "+Ye})}if((a.isProductOf("mtvr")||a.isProductOf("id3"))&&"false"===a.get("nol_disabled")&&h[i].restEvtTimestamp!=n.timeStamp){var $e=h[i].nolPriv_newMTVRStreamId;$e&&$e!==a.get("nol_sessionId","content")&&K.mtvr.resetTagSession(a,$e)}if(Q({data:a,param:"nol_id3Raw",val:y}),(a.serviceFlag.tsv.need||Be||je)&&-1!==g.indexOf("|"+Q({data:a,param:"nol_product"})+"|")&&"false"===a.get("nol_disabled")&&(["true","1"].indexOf(a.get("nol_rtvodEnabled").toString().toLowerCase())>-1&&a.set("nol_rtvod",""),b=je?Q({data:a,param:"nol_pccid"}):Be?Q({data:a,param:"nol_fdcid"}):!0!==P.filters.onId3PcCidChanged||K.mtvr.isNullPCCid(a)?Q({data:a,param:"nol_fdcid"}):Q({data:a,param:"nol_pccid"}),a.get("nol_tsvURL")&&ye(a,{service:"tsv",key:b,url:Q({data:a,param:"nol_tsvURL"})})),(a.isProductOf("id3")||a.isProductOf("mtvr")&&"interval"===a.get("nol_cadence")&&"false"===a.get("nol_disabled"))&&s.nol_watermark&&String(s.nol_watermark).length>0&&(m=Q({data:a,param:"nol_id3Data"}),f=Math.round(x()/1e3+R),L=Q({data:a,param:"nol_id3Seq"})||0,m?Q({data:a,param:"nol_id3Data",val:m+="|"+f+","+Q({data:a,param:"nol_id3Raw"})}):(Q({data:a,param:"nol_id3Data",val:L+":"+Q({data:a,param:"nol_clocksrc"})+":"+Q({data:a,param:"nol_tsvFlag"})+":"+f+","+Q({data:a,param:"nol_id3Raw"})}),Q({data:a,param:"nol_id3Seq",val:oe(L,"num")+1,vidType:"content"})),a.isProductOf("id3")))return u>0&&Ee(a,{returnLength:!0},Z.onPingFired),Q({data:a,param:"nolPriv_id3Count",val:u+=1}),void Q({data:a,param:"nol_davState",val:"1"});if(Q({data:a,param:"nolPriv_id3Count",val:u+=1}),S=Q({data:a,param:Q({data:a,param:"nol_timer"})})||Q({data:a,param:"nol_fdoffset"}),"daypart"===Q({data:a,param:"nol_cadence"})&&(S=oe(S,"num"),S+="nol_pcoffset"==Q({data:a,param:"nol_timer"})?oe(Q({data:a,param:"nol_pcTimeCode"}),"num"):oe(Q({data:a,param:"nol_fdTimeCode"}),"num")),a.serviceFlag.tsv.need)Q({data:a,param:"nol_queueTime",val:S});else{if("true"===Q({data:a,param:"nol_disabled"}))return;Ge(S,a,Z),Q({data:a,param:"nol_davState",val:"1"})}(Je&&K.mtvr.isFDTag(a)||ze&&K.mtvr.isPCTag(a))&&(K.mtvr.isPCTag(a)&&"false"===a.get("nol_disabled")?r&&r.tickViewability(a,s.nol_pcoffset):K.mtvr.isFDTag(a)&&"false"===a.get("nol_disabled")&&r&&r.tickViewability(a,s.nol_fdoffset));break;case"60":case"mute":break;case"61":case"volume":r&&r.viewability&&r.viewability.setVolume(s);break;case"30":case"onpaginate":"dcrstatic"===Q({data:a,param:"nol_product"})&&T.onPaginateDetected&&"stream"!==Q({data:a,param:"nol_cadence"})&&ve(a,T.onPaginateDetected),Q({data:a,param:"nol_onPaginateFired",val:"1",vidType:"static"});break;case"35":case"updatemetadata":if(a.isProductOf(["dcrvideo","vrivideo"])){K.updateMetadata(a,l,B,n.evtInfo);var Ze=Q({data:a,param:"nol_adLoadType",vidType:"content"});""!==Ze&&null!=Ze&&ve(a,T.onAdLoadFlag)}break;case"buffer":case"buttonevent":break;case"starttimer":if(a.isProductOf("dcrstatic")&&"impression"===a.get("nol_cadence")){var et;if(Xe(X,E,s="string"==typeof s?s.toLowerCase():""))break;var at="focus"===s,nt="touchstart"===s;t.PLDCR.dcrTimer.isActive||(at&&(t.PLDCR.dcrTimer.play(t.PLDCR._reset),t.PLDCR._reset=!1),nt&&t.PLDCR.safeFocus({type:s}))}break;case"stoptimer":if(a.isProductOf("dcrstatic")&&"interval"===a.get("nol_cadence")){var rt;if(Xe(X,E,s="string"==typeof s?s.toLowerCase():""))break;t.PLDCR.dcrTimer.isActive&&"blur"===s&&(Qe(a,{flush:!0,save:!0},Z),t.PLDCR.dcrTimer.reset(),a.set("nolPriv_currPos","0"),t.PLDCR.dcrTimer.pause(),t.PLDCR.safeFocusOn&&(t.PLDCR.safeFocusOn=!1))}}He(a,ee)}else n.timeStamp&&!j[n.timeStamp]&&"true"!==a.get("nol_disabled")&&(n.evtInfo&&!n.evtInfo.eventType&&(t._listeners.fireEvent("error",{type:"error",msg:"Error in handleGgpm - Invalid event type param"}),j[n.timeStamp]=we(a,{type:17,msg:"Missing event type param in ggPM"},!0,!0)),!n.evtInfo||null!==n.evtInfo.param1&&void 0!==n.evtInfo.param1||(t._listeners.fireEvent("error",{type:"error",msg:"Error in handleGgpm - Invalid Param1 passed"}),j[n.timeStamp]=we(a,{type:17,msg:"Missing param1 detected on event "+n.evtInfo.eventType},!0,!0)))}var B,t,O=O||null,h=h||{},j=j||{},J=J||{},K,W=W||{},Ee,Ye=Ye||function(){},ge=ge||function(){},we=we||function(){},_e=_e||function(){},Re=Re||function(){},Q;function $e(e,t,a){var n=!1,r=a.toString().toLowerCase().indexOf(t.toString().toLowerCase());return"-"===e&&-1===r?n=!0:"+"===e&&(a===t||-1!==r&&a&&t)?n=!0:"--"===e&&-1===t.toString().toLowerCase().indexOf(a.toString().toLowerCase())?n=!0:"++"===e&&-1!==t.toString().toLowerCase().indexOf(a.toString().toLowerCase())&&(n=!0),n}function ve(e,t,a,n){var r=t||e.get("nol_finalFilter",n),i,o,s,l,d,c,u,p,m,f,v,g=a||{};if(r&&void 0!==r)for(i=0,o=r.length;i<o;i++){if((p=r[i]).tagVar.length)for(s=0,l=p.tagVar.length;s<l&&(f=e.get(p.tagVar[s].name,n));s++);else f=e.get(p.tagVar.name,n);if(f&&p.tagVar.value===f){for(s=0,l=p.cond.length;s<l;s++){if(u=g[p.cond[s]]||e.get(p.cond[s],n),c=0===p.is.value.indexOf("nol_")&&e.get(p.is.value,n)?e.get(p.is.value,n):p.is.value,void 0===u||void 0===c||!$e(p.is.type,u,c)){m=!1;break}m=!0}if(void 0!==m&&void 0!==(v=m?p.then:p.else))for(d in v)v.hasOwnProperty(d)&&(void 0!==g.nol_vidtype?g[d]=v[d]:e.set(d,v[d],n))}}}function Ze(t,a){var n,r,i=t.split("||"),o=i[0]||t;if(e)for(n=0,r=i.length;n<r;n++)o=i[n],void 0!==e["on"+o]&&(e.addEventListener?e.addEventListener(o,a,!1):e.attachEvent&&e.attachEvent("on"+o,a))}function xe(e,a){var n;try{if(!e||!e.hasOwnProperty("data"))return;if(e.hasOwnProperty("savedVals")&&e.hasOwnProperty("savedReplayParams"))if(Array.isArray(e.savedVals))for(n in e.savedVals)e.savedVals.hasOwnProperty(n)&&(e.savedReplayParams[e.savedVals[n]]=Q({data:e.data,param:e.savedVals[n]}));else"string"==typeof e.savedVals&&(e.savedReplayParams[e.savedVals]=Q({data:e.data,param:e.savedVals}));e.hasOwnProperty("resetStatic")&&!0===e.resetStatic&&(e.data._dataArrObj.static={}),e.data._dataArrObj.ad={},e.data._dataArrObj.content={},e.data._dataArrObj.count={content:0,ad:0,static:0},e.data._currAssetid="0"}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Error in resetDataObj"+e})}}function Ve(e,t,a,n){var n=n||"";"id3"===Q({data:e,param:"nol_product"})&&Q({data:e,param:"nol_id3Data"})?Ee(e,null,t||null,a):e.isProductOf("vrivideo")&&"ended"!==e.set("nol_vriEvent")||"true"!==Q({data:e,param:"nol_disabled"})&&("1"===Q({data:e,param:"nol_davState"})||"onbeforeunload"===n&&"1"===e.get("nol_davState","ad"))&&(Q({data:e,param:"nol_davState",val:"2"}),"daypart"===Q({data:e,param:"nol_cadence"})?Ee(e,{save:!0},t||null,a):Ee(e,null,t||null,a),e.isProductOf(["mtvr","id3"])?Q({data:e,param:"nolPriv_enableDtvr",val:"true"}):Re(e),Q({data:e,param:"nol_disabled",val:"true"}))}function et(a,n){var r=n.id||n.getId?n.getId():"0",i=h[r].nol_tagMap.nol_url,o,s,l,d=0,c=i?i[a.nol_url]||a.nol_url||"":a.nol_url||"",u={stn:{need:!1,callback:"nol_stnevt"},tsv:{need:!1,callback:"nol_tsvevt"}},p={ad:{},content:{},static:{},count:{content:0,static:0}},m={nol_disabled:"true",nol_errorMessage:"none",nol_vidtype:"",nol_muteState:"0",nol_volumeLevel:"100",nol_clockSource:"D",nol_aggregate:"1",nol_pingCount:"0",nol_intrvlThrshld:"90",nol_id3IntrvlGp:"15",nolPriv_sendData:!0,nol_timer:"nol_fdoffset",nol_isLive:"false",nolPriv_errorSent:"",nolPriv_id3Count:0,nolPriv_cmsMap:{},nol_timeSpentViewing:{ad:{nol_cumeTimeSpent:0,nol_segmentTimeSpent:0,nol_count:0},content:{nol_cumeTimeSpent:0,nol_segmentTimeSpent:0,nol_count:0},static:{nol_cumeTimeSpent:0,nol_segmentTimeSpent:0,nol_count:0}},nol_enableFilterMap:["nol_vidtype","nol_tagSrc","nol_linearAdLoadFlag","nol_ac"],nol_xorSeed:"N!3ls3nBL",nol_currSeg:"0",nol_minWonOverride:"0",nol_customExtension:["nol_legacyCustom"],nol_pingCreationTime:"0",nol_pingSendTime:"0",nol_clientUrl:e.location.href,nol_sendTime:"0",nol_pageURL:e.location.href.replace(/\"/g,"").replace(/\'/g,"").replace(/%27/g,"").replace(/%22/g,""),nol_referrerURL:e.document.referrer.replace(/\"/g,"").replace(/\'/g,"").replace(/%27/g,"").replace(/%22/g,""),nol_random:Math.round(1e9*Math.random()),nol_ottStatus:"0",nol_ottType:"none",nol_ottDevice:"NA",nol_ottDeviceName:"NA",nol_ottDeviceID:"NA",nol_ottDeviceManufacturer:"NA",nol_ottDeviceModel:"NA",nol_ottDeviceVersion:"NA",nol_onPaginateFired:"0",nol_forceFireOnClose:"0",nol_applyViewInc:"0",nol_viVersion:"",nol_omidsdkVersion:""},f=a;f.nol_playerId=r;var v=this,g={_dataArrObj:p,_settings:f,_currVidType:"ad",_currAssetid:"0",serviceFlag:u};for(l in K.extendfData(g),this.name=g.get("nol_comment"),this.playerId=r,this.resetViewability=function(e,t){v&&v.viewability&&v.viewability.initialized&&v.viewability.initialized()&&v.viewability.clear(e,t)},this.startViewability=function(e){v&&v.viewability&&v.viewability.initialized&&v.viewability.initialized()&&"function"==typeof v.viewability.start&&v.viewability.start(e)},this.stopViewability=function(){v&&v.viewability&&v.viewability.initialized&&v.viewability.initialized()&&"function"==typeof v.viewability.stop&&v.viewability.stop()},this.tickViewability=function(e,t,a){v&&v.viewability&&v.viewability.initialized&&v.viewability.initialized()?v.viewability.tick(t,e,function(){v.viewability.setData(e),a&&a()}):a&&a()},t._listeners.addListener("tick",function(){if(n.pauseObj.eventPauseTime>=n.pauseObj.cmsPauseTime&&K.state.status.current(g)!==K.states.stopped&&K.state.status.current(g)!==K.states.paused&&W.isEnabled(g)){var e={event:J.events.pause,curPos:K.state.position.current(g),prevPos:null,timestamp:K.state.timeStamp.current(g)};K.state.set(g,e),W.preProcess(g,e),n.pauseObj.eventPauseTime=0}n.pauseObj.pauseTime>n.pauseObj.maxPauseTime&&"dcrstatic"!==Q({data:g,param:"nol_product"})&&"vrivideo"!==Q({data:g,param:"nol_product"})&&(n.pauseObj.pauseTime=0,t._listeners.fireEvent("handleSessionReset",{plid:r,passedFdata:g}),t._listeners.fireEvent("debug",{type:"debug",msg:"Max pause time reached. Just fired handleSessionReset."}))}),xe({data:g},v),m)a.hasOwnProperty(l)?f[l]=a[l]:f[l]=h[r][l]||m[l];if(f.nol_customExtension&&c){for(o=0,s=f.nol_customExtension.length;o<s;o++)c=c.replace("|!["+f.nol_customExtension[o]+"]!|",h[r][f.nol_customExtension[o]]||"");f.nol_url=c}if(t.PLVBL&&g.get("nol_vizuURL")&&("interval"===g.get("nol_cadence")||"streamduration"===g.get("nol_cadence"))&&(this.viewability=new t.PLVBL(g,n)),"true"!==Q({data:g,param:"nol_fireStop"})&&-1==="interval,episode,streamduration".indexOf(Q({data:g,param:"nol_cadence"}))||Ze("pagehide||beforeunload",function(){O&&(e.clearInterval(O),O=0,_e({serverTimeOffset:Q({data:g,param:"nolPriv_serverTimeOffset"}),url:"__sendIt",maskRef:Q({data:g,param:"nol_rfrmsk"}),uoo:Q({data:g,param:"nol_useroptout"}),method:K.getRequestMethod(g)})),"sendBeacon"in navigator&&(B=!0),Q({data:g,param:"nol_forceFireOnClose_content",val:"1"});var t=K.getEventsFilter(g);t&&t.onEndDetected&&(ve(g,t.onEndDetected,null,"ad"),ve(g,t.onEndDetected,null,"content")),W.setNextTick(g,null,"content"),Ve(g,!1,!0,"onbeforeunload")}),this.eventListener=function(e){Ye(g,e,v)},h[r].eventQueue.length>d)for(o=0;o<h[r].eventQueue.length;o++)h[r]&&h[r].eventQueue&&(h[r].eventQueue[o].timeStamp="queued"+o),Ye(g,h[r].eventQueue[o]),d=o;t._listeners.addListener("sendError",function(e){if(!e.target||r===e.target.id){var a=e.target.id+"_"+e.target.timeStamp;j[a]||(t._listeners.fireEvent("error",{type:"error",msg:e.target.data?e.target.data.msg:""}),j[a]=we(g,e.target.data,!0,!0))}})}var B=(B=B||!1)||!1,t=(t=t||{})||{},K=(K=K||{})||{},oe=oe||function(){},x=x||function(){},Ee=(Ee=Ee||function(){})||function(){},ve=ve||function(){},Q=(Q=Q||function(){})||function(){};function tt(e){var t,a=[];for(t=0;t<oe(e,"num");t++)a.push({tsv:0,save:!1,updated:!1});return a}function at(e,t){var a=e||6;return Math.ceil(t/a)*a||"0"}function fe(e,t,a){var n=!1,r=0,i=!1,o=oe(Q({data:e,param:"nol_unQualSegmentValue"}),"num"),s=Q({data:e,param:"nol_minutes"}),l=[],d=!!t&&t.save,c,u,p,m=oe(Q({data:e,param:"nol_segmentTimeSpent"}),"num"),f=oe(Q({data:e,param:"nol_sendQual"}),"num"),v=Q({data:e,param:"nol_cadence"});for(c=0,u=s.length;c<u;c++)(p=Math.floor(s[c].tsv/Q({data:e,param:"nol_creditValue"})))>=1?(s[c].save&&"daypart"!==Q({data:e,param:"nol_cadence"})?l.push(0):(l.push(Q({data:e,param:"nol_creditFlag"})),r++,n=!0),i=!0):(l.push(0),i=!1),!0!==a&&(d?s[c].save=i:(s[c].tsv=0,s[c].save=!1,s[c].updated=!1));return f&&(n=r>=f),!0===oe(Q({data:e,param:"nol_minWonOverride"}),"bool")&&(n=!0),!0===a?n:(Q({data:e,param:"nol_duration",val:l.join("")}),n||"interval"!==v&&"streamduration"!==v||d||("S"===Q({data:e,param:"nol_segmentPrefix"})&&o&&Q({data:e,param:"nol_duration",val:at(o,m)}),n=m>1),n)}function Pe(e){return void 0!==e?(x()/1e3>>0)+e:x()/1e3>>0}function he(t){Number(t)===t&&t%1!=0&&e.console&&e.console.warn&&e.console.warn("Warning: nol_segmentTimeSpent is a float - should be an integer.")}function Ne(e,a){try{if("1"===Q({data:e,param:"nol_unifiedEnabled"})){var n=a&&a.hasOwnProperty("vidType")?a.vidType:e._currVidType.toLowerCase(),r=oe(Q({data:e,param:"nol_viewCount_"+n}),"num");Q({data:e,param:"nol_viewCount_"+n,val:r++}),"1"===Q({data:e,param:"nol_applyViewInc"})&&Q({data:e,param:"nol_applyViewInc",val:"0"})}}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Error in incViewCnt"+e})}}function Re(e){try{if(void 0===e)return;var a=tt(Q({data:e,param:"nol_segmentLength"}));Q({data:e,param:"nol_minutes",val:a}),Q({data:e,param:"nol_duration",val:new Array(a.length+1).join("0")})}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Error in resetMinutes(). Error - "+e.message})}}function nt(e,t){var a=oe(Q({data:e,param:"nol_segmentLength"}),"num")*oe(Q({data:e,param:"nol_segmentValue"}),"num"),n;return{segmentEnd:0===Math.floor(t%a),segment:Math.floor(t/a+1),minute:Math.floor(t%a/Q({data:e,param:"nol_segmentValue"})),seconds:t%Q({data:e,param:"nol_segmentValue"})}}function Ge(e,a,n){var r,i=Q({data:a,param:"nol_tagSrc"}),e=""!==e?e:"id3"===i&&Q({data:a,param:"nol_fdcid"})!==Q({data:a,param:"nol_cidNull"})?Q({data:a,param:"nol_fdoffset"}):"id3"===i&&Q({data:a,param:"nol_pccid"})!==Q({data:a,param:"nol_cidNull"})?Q({data:a,param:"nol_pcoffset"}):e,o=K.getEventsFilter(a),s=Q({data:a,param:"nol_minutes"}),l=oe(Q({data:a,param:"nol_pingCount"}),"num"),d,c,u,p,m,f,v,g,_=Q({data:a,param:"nol_playerId"}),y=t._players&&t._players.hasOwnProperty(_)?t._players[_]:-1,h=Q({data:a,param:"nol_localDay"}),P=Q({data:a,param:"nol_dayQhr"}),S=Q({data:a,param:"nol_weekQhr"}),b,T,C,O=Q({data:a,param:"nol_wmDay"}),L=Q({data:a,param:"nol_wmDayQhr"}),w,E,k=oe(Q({data:a,param:"nol_weekEndUTC"}),"num"),D,I=k-oe(Q({data:a,param:"nol_weekStartUTC"}),"num"),A,M=oe(Q({data:a,param:"nolPriv_serverTimeOffset"}),"num"),F,N=Q({data:a,param:"nol_timer"})||"nol_fdoffset",R=oe(Q({data:a,param:"nolPriv_currMin"}),"num"),B=oe(Q({data:a,param:"nol_maxPingCount"}),"num"),V=oe(Q({data:a,param:"nol_creditValue"}),"num"),G=oe(e,"num"),j=oe(Q({data:a,param:"nol_intrvlThrshld"}),"num")||86400,U="nol_cmsoffset"===N||"nol_pageoffset"===N?oe(Q({data:a,param:"nol_cmsIntrvlGp"}),"num")||2:oe(Q({data:a,param:"nol_id3IntrvlGp"}),"num"),z=oe(Q({data:a,param:"nol_segmentLength"}),"num")*oe(Q({data:a,param:"nol_segmentValue"}),"num"),q=oe(Q({data:a,param:"nol_currSeg"}),"num"),J=oe(Q({data:a,param:"nolPriv_now"}),"num"),W,H=Q({data:a,param:"nol_timeSpentViewing"})[a._currVidType],X=a.get("nolPriv_currPos"),Y=""===X,$=!1,Z=!1;if(a.set("nolPriv_prevPos",a.get("nol_currPos")),1===e?a.set("nol_currPos","0"):a.set("nol_currPos",e),"modcadence"===a.get("nol_cadence"))e%a.get("nol_segmentValue")==0&&(e<a.get("nol_length")||!a.get("nol_length"))&&Ee(a,null,n&&n.onPingFired?n.onPingFired:null);else{if(w=Math.floor(G/86400)+1,O||Q({data:a,param:"nol_wmDay",val:w}),E=Math.floor(G%86400/900)+1,L||Q({data:a,param:"nol_wmDayQhr",val:E}),G>86400&&"nol_cmsoffset"===N?f=(g=(G+=M)+oe(Q({data:a,param:"nol_startDayTimeOffset"}),"num"))+oe(Q({data:a,param:"nol_GMTOffset"}),"num"):g=f=G,b=Math.floor(f/86400)+1,h&&h!=b&&(Ee(a,null,n&&n.onPingFired?n.onPingFired:null),h=null),h||Q({data:a,param:"nol_localDay",val:b}),G>k&&(o.onWeekEndUTC?ve(a,o.onWeekEndUTC):(Q({data:a,param:"nol_week",val:Q({data:a,param:"nol_nextWeek"})}),Q({data:a,param:"nol_period",val:Q({data:a,param:"nol_nextPeriod"})}),Q({data:a,param:"nol_weekStartUTC",val:k+1}),Q({data:a,param:"nol_weekEndUTC",val:k+1+I}))),T=Math.floor((G-oe(Q({data:a,param:"nol_weekStartUTC"}),"num"))/900)+1,S&&T===S||Q({data:a,param:"nol_weekQhr",val:T}),"nol_cmsoffset"===N&&(G=f%86400),C=Math.floor(G/900)+1,P||Q({data:a,param:"nol_dayQhr",val:C}),G=Math.floor(G),"1"===Q({data:a,param:"nol_applyViewInc"})&&(Ne(a),Q({data:a,param:"nol_applyViewInc",val:"0"})),"true"===Q({data:a,param:"nol_disabled"})||void 0===G||B>0&&B<=l&&"daypart"!==Q({data:a,param:"nol_cadence"}))return;if("stream"!==Q({data:a,param:"nol_cadence"})&&"impression"!==Q({data:a,param:"nol_cadence"})){X=Y?G:oe(X,"num"),J||(J=x()),F=Math.ceil((x()-J)/1e3)||1,r=(W=nt(a,a.isProductOf(["mtvr","id3","dcrvideo"])?X:G)).segment,A=W.minute,d=W.seconds,$=G-X<0,m=a.isProductOf("mtvr")?G-X:Y&&0!==X||$?1:G-X;var ee=(Y||$)&&q!==r;if(Q({data:a,param:"nolPriv_currPos",val:G}),(q&&void 0!==r&&q!==r&&"dcrvideo"===a.get("nol_product")&&a.get("nol_segmentTimeSpent")>0||q&&void 0!==r&&(!a.isProductOf(["mtvr","id3"])&&ee||a.isProductOf(["mtvr","id3"])&&(q!==r||$&&a.get("nol_segmentTimeSpent")>a.get("nol_segmentValue")&&"daypart"!==Q({data:a,param:"nol_cadence"}))))&&(("dcrvideo"!==Q({data:a,param:"nol_product"})||"dcrvideo"===Q({data:a,param:"nol_product"})&&Q({data:a,param:"nol_segmentTimeSpent"})>0)&&Ee(a,{save:!0},n&&n.onPingFired?n.onPingFired:null),"episode"!==Q({data:a,param:"nol_cadence"})&&Q({data:a,param:"nol_pingCount",val:0}),s=tt(Q({data:a,param:"nol_segmentLength"})),Q({data:a,param:"nol_minutes",val:s}),P&&P!==C&&(Q({data:a,param:"nol_dayQhr",val:C}),Q({data:a,param:"nol_weekQhr",val:T}),h&&h!==b&&Q({data:a,param:"nol_localDay",val:b})),L&&L!==E&&Q({data:a,param:"nol_wmDayQhr",val:E}),O&&O!==w&&Q({data:a,param:"nol_wmDay",val:w})),q=r,void 0!==A&&m>0){if(R===A||W.segmentEnd||s[A].save||"daypart"===Q({data:a,param:"nol_cadence"})||(s[A].tsv>=V?Ee(a,null,n&&n.onPingFired?n.onPingFired:null):(s[A].tsv=0,s[A].updated=!1)),m<U||m<=Math.ceil(1.5*F)&&m<j){var te=function e(){for(c=0;c<m;c+=1){if(a.isProductOf(["mtvr","id3"])&&(d+c)%Q({data:a,param:"nol_segmentValue"})!=0||!a.isProductOf(["mtvr","id3"])&&0!==d){if("daypart"!==Q({data:a,param:"nol_cadence"})&&s[A].tsv>=Q({data:a,param:"nol_segmentValue"})&&(s[A].save?(s[A].tsv=0,s[A].save=!1,s[A].updated=!1):a.isProductOf(["dcrstatic"])||Ee(a,null,n&&n.onPingFired?n.onPingFired:null)),s[A].tsv+=1,H.nol_cumeTimeSpent+=1,H.nol_segmentTimeSpent+=1,s[A].tsv>=V&&v){for(s[A].updated||(Q({data:a,param:"nolPriv_priority",val:x()}),s[A].updated=!0),u=0,p=0;u<s.length;u+=1)if((p+=s[u].tsv>=V?1:0)>=v){v="send";break}"send"===v&&Q({data:a,param:"nol_sendQual"})&&(o.onViewWon&&ve(a,o.onViewWon),a.isProductOf(["dcrstatic"])||Ee(a,{save:!0},n&&n.onPingFired?n.onPingFired:null),v=0,"daypart"!==Q({data:a,param:"nol_cadence"})&&Q({data:a,param:"nol_sendQual",val:"0"}))}}else 0!==c&&(A+=1),s.length<=A?(Ee(a,{save:!0},n&&n.onPingFired?n.onPingFired:null),A=0,Q({data:a,param:"nol_currSeg",val:q+=1}),Q({data:a,param:"nol_pingCount",val:0}),s=tt(Q({data:a,param:"nol_segmentLength"})),Q({data:a,param:"nol_minutes",val:s}),P&&P!==C&&(Q({data:a,param:"nol_dayQhr",val:C}),Q({data:a,param:"nol_weekQhr",val:T}),h&&h!==b&&Q({data:a,param:"nol_localDay",val:b})),L&&L!==E&&Q({data:a,param:"nol_wmDayQhr",val:E}),O&&O!==w&&Q({data:a,param:"nol_wmDay",val:w})):"daypart"!==Q({data:a,param:"nol_cadence"})&&!s[A].save&&s[A].tsv>=V&&(!W.segmentEnd||a.isProductOf(["mtvr","id3"]))?Ee(a,null,n&&n.onPingFired?n.onPingFired:null):s[A].save||W&&W.segmentEnd&&a.isProductOf(["dcrvideo"])||(s[A].tsv=1,s[A].updated=!1),H.nol_cumeTimeSpent+=1,H.nol_segmentTimeSpent+=1;a.set("nolPriv_currMin",A),n&&n.onTick&&n.onTick(G-(m-c)+1,H.nol_cumeTimeSpent)}};v=oe(Q({data:a,param:"nol_sendQual"}),"num"),n&&n.onCalcStart&&"function"==typeof n.onCalcStart?n.onCalcStart(G,te):te()}else a.isProductOf("dcrvideo")&&(H.nol_cumeTimeSpent+=1,H.nol_segmentTimeSpent+=1),Z=!0;a.isProductOf(["mtvr","id3"])||!W||!W.segmentEnd||Y||Z||$||(("dcrvideo"!==Q({data:a,param:"nol_product"})||"dcrvideo"===Q({data:a,param:"nol_product"})&&Q({data:a,param:"nol_segmentTimeSpent"})>1)&&Ee(a,{save:!0},n&&n.onPingFired?n.onPingFired:null),"episode"!==Q({data:a,param:"nol_cadence"})&&Q({data:a,param:"nol_pingCount",val:0}),s=tt(Q({data:a,param:"nol_segmentLength"})),Q({data:a,param:"nol_minutes",val:s}),P&&P!==C&&(Q({data:a,param:"nol_dayQhr",val:C}),Q({data:a,param:"nol_weekQhr",val:T}),h&&h!==b&&Q({data:a,param:"nol_localDay",val:b})),L&&L!==E&&Q({data:a,param:"nol_wmDayQhr",val:E}),O&&O!==w&&Q({data:a,param:"nol_wmDay",val:w})),Q({data:a,param:"nolPriv_now",val:x()}),-1!==y&&"dcrstatic"!==Q({data:a,param:"nol_product"})&&(y.pauseObj.pauseTime=0)}}else r=Math.floor(G/z+1),"content"===Q({data:a,param:"nol_ac"})&&Q({data:a,param:"nol_currSeg",val:q=r}),Ee(a,null,n&&n.onPingFired?n.onPingFired:null);Q({data:a,param:"nol_currSeg",val:q})}}function rt(e){return{tags:[],eventQueue:e&&e.eventQueue?e.eventQueue:[],tagSize:1,bReInit:!1,debug:k,eventQueueIndex:0}}function me(){var e=Array.prototype.slice.call(arguments);t._listeners.fireEvent("info",{type:"info",msg:e.join(" ")})}function Se(e){return encodeURIComponent(e).replace("'","%27")}function _e(e){var t=0===d.indexOf("https")?"https":"http",a,n,r,i=e.url,o=e.hasOwnProperty("maskRef")?e.maskRef:-1,s=e.method||"GET";if("__sendIt"!==i&&"https"===t&&-1===i.indexOf("https")&&(i=t+i.substr(i.indexOf("://"))),e.prod&&"ocr"===e.prod&&-1!==i.indexOf("&ty=js"))q(i);else if(O||"__sendIt"===i)if(i&&O&&w)E.push(i);else if("__sendIt"!==i||w)i&&O&&!w&&C.push(i);else{for(w=!0,a=0,n=C.length;a<n;a+=1)G.setup({pingSendTime:Pe(e.serverTimeOffset),url:C.shift(),uoo:e.uoo,maskRefUrl:o,method:s});C=C.concat(E),w=!1,E=[]}else G.setup({pingSendTime:Pe(e.serverTimeOffset),url:i,uoo:e.uoo,maskRefUrl:o,method:s})}function ge(e){var t=!1}function it(e){var a;if(h[e.id]&&h[e.id].tags.length===h[e.id].tagSize){if(t._listeners.fireEvent("debug",{type:"debug",msg:"pli="+e.id+"&ggpm="+JSON.stringify(e)}),h[e.id].debug!==k&&"logging"===h[e.id].debug){if((a=h[e.id].nol_debugUrl)||(a=h[e.id].nol_prefProtocol+"://nielsen.guru/validation/query_string.php?"),h[e.id].eventQueue.length>h[e.id].eventQueueIndex+1)for(var n=h[e.id].eventQueueIndex;n<h[e.id].eventQueue.length;n++)ge(a+"pli="+e.id+"&ggpm="+JSON.stringify(h[e.id].eventQueue[n])),h[e.id].eventQueueIndex=n;a+="pli="+e.id+"&ggpm="+JSON.stringify(e),ge(a)}e.timeStamp=x();for(var n=0,r=h[e.id].tags.length;n<r;n+=1)h.hasOwnProperty(e.id)&&h[e.id].tags[n].eventListener(e)}else h[e.id]&&h[e.id].eventQueue||(h[e.id]=rt(h[e.id])),h[e.id].eventQueue.push(e);N.dtvr&&N.dtvr.postQueueGgpm&&N.dtvr.postQueueGgpm()}function Be(e,t){var a,n=e.data._settings,r=e.param;return null==t?void 0===(a=n.hasOwnProperty(r)&&h[n.nol_playerId].nol_tagMap.hasOwnProperty(r)&&("object"===_typeof(h[n.nol_playerId].nol_tagMap[r])||"array"==typeof h[n.nol_playerId].nol_tagMap[r])?h[n.nol_playerId].nol_tagMap[r][n[r]]:n.hasOwnProperty("nol_defaults")&&n.nol_defaults.hasOwnProperty(r)?n.nol_defaults[r]:h[n.nol_playerId].nol_tagMap.nol_defaults[r]||h[n.nol_playerId][r])&&(a=n.hasOwnProperty(r)?n[r]:h[n.nol_playerId].nol_tagMap[r]):n.hasOwnProperty("nol_defaults")&&n.nol_defaults.hasOwnProperty(r)?n.nol_defaults[r]=t:n[r]=t,a}function Q(a){try{if(a){if("string"==typeof a.param&&-1===a.param.indexOf("nol_")&&-1===a.param.indexOf("nolPriv_")&&a.param.split("_").length-1>1)return;var n="string"==typeof a.param?a.param.split("_"):a.param,r,i=n[0]?n.splice(0,2).join("_"):n,o=a.vidType||n[0]||a.data._currVidType,s=a.data._currAssetid?String(a.data._currAssetid):"0",l=void 0!==a.data._dataArrObj[o][s]?a.data._dataArrObj[o][s]:a.data._dataArrObj[o][Object.keys(a.data._dataArrObj[o]).splice(-1,1)],d=A[a.data._settings.nol_playerId]||{},c=d&&d[i]?d[i].clientField:i;if("object"===(void 0===c?"undefined":_typeof(c)))r=l;else if("nol_segmentTimeSpent"===c||"nol_cumeTimeSpent"===c||"nol_count"===c){var u;r=Q({data:a.data,param:"nol_timeSpentViewing"})[o][c]}else void 0===a.val||null===a.val?void 0!==(r=l&&l.hasOwnProperty(c)?l[c]:h[a.data._settings.nol_playerId][c])&&""!==r||void 0!==(r=Be(a)||"")&&""!==r||(0===c.indexOf("nol_")?a.param=c:a.param=i,r=Be(a)||""):l&&(l[c]=a.val);return r}return null}catch(a){e.console&&e.console.error&&e.console.error("Error in Data(): "+a.message+" __param: "+n),t._listeners.fireEvent("error",{type:"error",msg:"Error in Data(): "+a.message})}}function ot(a){a&&a.hasOwnProperty("configReq")&&a.hasOwnProperty("player")&&a.configReq.length>0&&void 0!==a.player?(q(a.configReq),e.clearInterval(a.player.lsPopulatedInterval),a.player.lsPopulatedInterval=0):t._listeners.fireEvent("error",{type:"error",msg:"Error in handleConfigRequest. Args is null or missing configReq or player."})}function st(e,t){return t?(t._dataArrObj||(t={_dataArrObj:{content:{0:t}},_settings:t,_currVidType:"content"}),K.extendfData(t),se(t,e,null,{vidType:"content",silent:!0,noClone:!0})):e}return a.initFromConfig=function(a,r,i){t._listeners.fireEvent("info",{type:"info",msg:"Recieved config response."});try{if(a&&a.nol_GLOBALS){var o,l,d=x(),c,u,p,m,f="localhost",v=a.nol_GLOBALS.debugSfcode||"uat-cert",g=a.nol_GLOBALS.nol_appid||"",y=a.nol_GLOBALS.nol_lsid||"",S=a.nol_GLOBALS.nol_emmURL||(a.nol_GLOBALS.nol_tagMap&&a.nol_GLOBALS.nol_tagMap.nol_defaults?a.nol_GLOBALS.nol_tagMap.nol_defaults.nol_emmURL:"")||"",C=a.nol_GLOBALS.enableStaticInIframe&&"true"===a.nol_GLOBALS.enableStaticInIframe.toString().toLowerCase(),L,w,E,k,D,I,N,R;if(C&&t.browser.isWithinIFrame()&&t.PLDCR.removeListeners(),i&&(t.optoutCookie&&"TOTAL"===t.optoutCookie&&"OPTOUT"!==t.localStorageId&&(y="OPTOUT",t._listeners.fireEvent("debug",{type:"debug",msg:'Optout cookie was set but lsid was "'+t.localStorageId+'". Setting lsid to OPTOUT'})),""===y&&("-1"===t.localStorageId?y="999":""===t.localStorageId?y=t.generateGUID():t.localStorageId&&(y=t.localStorageId))),t._listeners.fireEvent("debug",{type:"debug",msg:"Cached lsid: "+t.localStorageId+"; config lsid: "+y}),t._listeners.fireEvent("sendOptOutStatus","OPTOUT"==y),void 0!==a.nol_GLOBALS.nol_maxRetry&&null!==a.nol_GLOBALS.nol_maxRetry&&""!==a.nol_GLOBALS.nol_maxRetry){var B=parseInt(a.nol_GLOBALS.nol_maxRetry);B>-1&&(b=B)}if(a&&a.hasOwnProperty("nol_GLOBALS")){var G=r||a.nol_GLOBALS.nol_playerId||0;if(!(l=t._players[G]))return;for(c in f=a.nol_GLOBALS.nol_sfcode||f,t._listeners.fireEvent("debug",{type:"debug",msg:'SDK instance "'+l.name+'" initialized with globals '+JSON.stringify(l.getConfigParams().ggParams)}),l.pauseObj={pauseTime:0,eventPauseTime:0,maxPauseTime:parseInt(a.nol_GLOBALS.nol_pauseTimeout)||1800,cmsPauseTime:parseInt(a.nol_GLOBALS.nol_pauseEventTimeoutPlayhead)||15},l.staticIFrameFlag=C,i&&(a.nol_GLOBALS.nol_serverTime=x()/1e3>>0),(R=t.localStorage?h[G]?h[G].nol_serverTime||t.localStorage.getItem("nol_serverTime"):t.localStorage.getItem("nol_serverTime")||0:h[G]?h[G].nol_serverTime:0)===a.nol_GLOBALS.nol_serverTime?P=h[G]?h[G].nolPriv_serverTimeOffset:a.nol_GLOBALS.nol_serverTime-Math.round(d/1e3):(P=a.nol_GLOBALS.nol_serverTime-Math.round(d/1e3),t.localStorage&&t.localStorage.setItem("nol_serverTime",a.nol_GLOBALS.nol_serverTime)),T=a.nol_GLOBALS.nol_errorWait||T,o=l.getConfigParams().ggParams||{},h[G]=rt(h[G]),h[G].nolPriv_serverTimeOffset=P,h&&h.hasOwnProperty(G)?h[G].nol_nielsenAdSupportFlg=0:t._listeners.fireEvent("error",{type:"error",msg:"Error in initFromConfig. Invalid data object or playerId."}),O&&(e.clearInterval(O),O=0),a.nol_GLOBALS.nol_sendTimer&&(O=e.setInterval(function(){_e({serverTimeOffset:h[G].nolPriv_serverTimeOffset,url:"__sendIt",uoo:Q({data:fData,param:"nol_useroptout"}),method:h[G].nol_requestMethod})},1e3*a.nol_GLOBALS.nol_sendTimer)),o)o.hasOwnProperty(c)&&(h[G][c]=o[c]);for(c in a.nol_GLOBALS)a.nol_GLOBALS.hasOwnProperty(c)&&(h[G][c]=a.nol_GLOBALS[c]);for(c in M[G]=h[G].nol_eventFilter||{},F[G]=h[G].nol_serviceFilter||{},V=h[G].nol_id3Map||{},A[G]=A[G]||{},h[G].nol_clientCMSmap)h[G].nol_clientCMSmap.hasOwnProperty(c)&&(E=(w=h[G].nol_clientCMSmap[c].toString()||"").replace(_,""),D=w.match(_)||[],k={clientField:E.toString(),encoding:D.join("")},A[G][c]=k);if(o&&o.hasOwnProperty("nol_override")&&Object.keys(o.nol_override).length>0)for(c in o.nol_override)o.nol_override[c].length>0&&(h[G][c]=o.nol_override[c]);a.nol_GLOBALS.hasOwnProperty("nol_maxStaticInstances")&&n.hasOwnProperty("setTotalNumAssetsAllowed")&&n.setTotalNumAssetsAllowed(a.nol_GLOBALS.nol_maxStaticInstances),l.configLoaded=!0,i&&(h[G].nol_prefProtocol=t.getPrefProtocol(a),h[G].nol_playerId=G,h[G].nol_nuid=y,h[G].nol_lsid=y,h[G].nol_bldv=s,h[G].nol_sdkv=l.sdkvForConfig,h[G].nol_assetName=a.nol_GLOBALS.hasOwnProperty("nol_assetName")&&a.nol_GLOBALS.nol_assetName.length>0?a.nol_GLOBALS.nol_assetName:"defChnAsset",h[G].nol_sfcode=o.sfcode,h[G].nol_dcrsfcode=o.sfcode,h[G].nol_apn=o.apn||(a.nol_GLOBALS.hasOwnProperty("nol_apn")&&a.nol_GLOBALS.nol_apn.length>0?a.nol_GLOBALS.nol_apn:""),h[G].nol_nmspc="NOLBUNDLE"),h[G].nol_lstrg="",h[G].nol_userSessionId=l.sessionId,h[G].nol_pageURLmeta=l.metadataCtrl.pageURL,h[G].nol_pageTitle=l.metadataCtrl.pageTitle,!0===l.optout||"true"===h[G].nol_useroptout?h[G].nol_useroptout="true":h[G].nol_useroptout="",t.userAgent.isAndroid()?h[G].nol_vriDeviceTypeId="0003":t.userAgent.isIOS()?h[G].nol_vriDeviceTypeId="0002":h[G].nol_vriDeviceTypeId="0001",t.userAgent.isIpadOS()&&(h[G].nol_devGroup="TAB",h[G].nol_platform="MBL",h[G].nol_osGroup="IOS",h[G].nol_phtype="Tablet",h[G].nol_dvcnm="Apple iPad"),y&&"999"!==y&&!t.userAgent.isFB()&&(h[G].nol_lstrg="lstrg-"+y),t._listeners.fireEvent("debug",{type:"debug",msg:"Cached emm: "+t.EMMURL+"; config emm: "+S}),S=t.evalTemplate(S,h[G]),h[G].nol_emmURL=S;var j=a.nol_GLOBALS.hasOwnProperty("nol_emmsfcodelist")?a.nol_GLOBALS.nol_emmsfcodelist:[];t.setLsId(y,S,l,j)}if(a&&a.hasOwnProperty("nol_TAGS"))for(h[G].tagSize=a.nol_TAGS.length,h[G].tags=[],t._listeners.fireEvent("debug",{type:"debug",msg:"NIELSEN TAGS EXPECTED TO FIRE:"}),c=0;c<h[G].tagSize;c+=1)t._listeners.fireEvent("debug",{type:"debug",msg:String(a.nol_TAGS[c].nol_comment)}),h[G].tags.push(new et(JSON.parse(JSON.stringify(a.nol_TAGS[c])),l));void 0!==t.enablePlayer&&t.enablePlayer(G,"PLDPR"),h[G].bReInit=!1,o.nol_hybridCfg&&e&&e.JSON&&((L=e.document.createElement("script")).text="(function() {if (typeof "+o.nol_hybridCfg+" === 'function'){"+o.nol_hybridCfg+"('"+JSON.stringify(a)+"')}}())",e.document.head?(e.document.head.appendChild(L),e.document.head.removeChild(L)):(e.document.getElementsByTagName("head")[0].appendChild(L),e.document.getElementsByTagName("head")[0].removeChild(L))),h[G].forceStreamRegen=!1;var U=t.getSdkvGlobal(h[G].nsdkvOverride,"CADENCEOVERRIDE");h[G].hasOwnProperty("nsdkvOverride")&&U&&(h[G].nol_cadenceOverride||(h[G].nol_cadenceOverride=U),h[G].nol_cadenceOverrideEnabled=!0),t._listeners.addListener("tick",function(){l&&l.hasOwnProperty("pauseObj")&&l.pauseObj.hasOwnProperty("pauseTime")&&(!0===l._pauseTimeoutEnabled?l.pauseObj.pauseTime+=1:l.pauseObj.pauseTime=0,l.pauseObj.eventPauseTime+=1)}),l&&l.configLoaded&&e.NOLBUNDLE&&e.NOLBUNDLE.controllers&&e.NOLBUNDLE.controllers.util&&e.NOLBUNDLE.controllers.util.fireCustomEvent&&e.NOLBUNDLE.controllers.util.fireCustomEvent("NSDK_Initialized",{instanceName:l.name,instance:l}),t._listeners.fireEvent("flushQueue")}else e.console&&e.console.warn&&e.console.warn("Warning: CMS config response is not valid. Please ensure NOL global parameter values are correct."),t._listeners.fireEvent("warn",{type:"warn",msg:"Warning in initFromConfig. NOL global parameters are not valid."});return h[G]}catch(a){e.console&&e.console.error&&e.console.error("Error initializing CMS config response. Please ensure NOL global parameter values are correct. "+a.message),t._listeners.fireEvent("error",{type:"error",msg:"Error in initFromConfig. Error parsing config response. "+a.message})}},a.getCmsMap=function(e){try{if(void 0!==e&&"string"==typeof e||t._listeners.fireEvent("error",{type:"error",msg:"Error in getCmsMap. PlayerID must be passed as string data type."}),h&&h.hasOwnProperty(e)&&void 0!==h[e].nol_clientCMSmap)return h[e].nol_clientCMSmap}catch(e){t._listeners.fireEvent("error",{type:"error",msg:"Error in getCmsMap."})}},a.resolveExpression=st,a.init=function(a){var n=a.getConfigParams()||{},i,o,u=t.getIfLsidShouldSend()?t.getLsId():void 0,p,f="",v=0===d.indexOf("https")?"https":"http",g=n.nol_playerId||0;for(i in p={pli:{val:g,protect:!0},nmspc:{val:"NOLBUNDLE",protect:!0},sdkv:{val:r,protect:!0},fmt:{val:"jsonp",protect:!0},apn:{val:"Tester",protect:!1},fbtag:{val:"true",protect:!1},cfgv:{val:m,protect:!0},bldv:{val:s,protect:!0},prefprotocol:{val:v,protect:!1}},a.addListener("ggPM",function(e){it(e)}),a.lsPopulatedInterval=0,a.lsCurrentRetry=0,a.serviceSending={tsv:!1,stn:!1},a.ottStatusObj={},a.oServiceCall={},a.static={started:!1},n.ggParams)!n.ggParams.hasOwnProperty(i)||p[i]&&p[i].protect||0==i.indexOf("nol_")||(p[i]={val:Se(n.ggParams[i])});for(i in p)p.hasOwnProperty(i)&&(f+=i+"="+p[i].val+"&");f=f.substr(0,f.length-1),o=d.replace(/[\w\W]*?:\/\//g,""),a.useCachedConfig||(void 0===u||a.lsPopulatedInterval?void 0===u&&ot({configReq:I=v+"://"+o+l+c+"?"+f+"&sendTime="+Math.floor(x()/1e3),player:a}):a.lsPopulatedInterval=e.setInterval(function(){"-1"!==(u=t.getLsId())?ot({configReq:I=v+"://"+o+l+c+"?"+f+"&lsid="+u+"&sendTime="+Math.floor(x()/1e3),player:a}):2===a.lsCurrentRetry?ot({configReq:I=v+"://"+o+l+c+"?"+f+"&lsid=999&sendTime="+Math.floor(x()/1e3),player:a}):a.lsCurrentRetry+=1},1e3))},a.built||(a.built=!0,a.BUILDVERSION=s,a.dataObj=h,t.bindPlayers(a,"PLDPR"),t._listeners.fireEvent("flushQueue")),a}),e.NOLBUNDLE.registerLib("PLDCR",function(t){"use strict";var a=t.PLDCR=t.PLDCR||{dcrTimer:void 0,startDcrTime:0,latestDcrTickVal:0,_reset:!1,nol_idleTimeout:1800,nol_maxTickDelta:10,cadenceOverrideEnabled:!1,cadenceOverride:30,safeFocusOn:!1},n="6.0.0",r="1",i=e.NOLBUNDLE,o=t.getBaseBuildVer?t.getBaseBuildVer()+"1":"6.0.01",a,s;function l(t,n){var r={set:function(e,t){return r.init=!0,r.elapsed=0,r.startTimeStamp=0,"function"==typeof e&&(r.funcCall=e),isNaN(t)||(r.intervalTime=t),r},play:function(e){return r.isActive||(e?(r.startTimeStamp=0,r.elapsed=0,r.setTimer()):r.setTimer(r.remaining),r.isActive=!0),r},pause:function(){return r.isActive&&(r.isActive=!1,r.remaining=r.remaining-(Date.now()-r.last),r.clearTimer()),r},stop:function(){return r.isActive=!1,r.remaining=r.intervalTime,r.clearTimer(),r},clearTimer:function(){e.clearTimeout(r.timeoutObject)},setTimer:function(t){var a=r;"function"==typeof r.funcCall&&(isNaN(t)&&(t=r.intervalTime),r.remaining=t,r.last=Date.now(),r.clearTimer(),r.timeoutObject=e.setTimeout(function(){a.tick()},t))},tick:function(){if(r.isActive){var e=r.last;r.remaining<r.intervalTime&&(e-=r.intervalTime-r.remaining),r.setTimer();var t=(r.last-e)/1e3;t<a.nol_maxTickDelta&&t>=0?r.elapsed=r.elapsed+t:r.elapsed++,r.funcCall()}},reset:function(){r.startTimeStamp=0,r.elapsed=0,r.remaining=r.intervalTime}};return r.init?r:(r.set(t,n),r)}function d(){a.dcrTimer&&(a.latestDcrTickVal=a.dcrTimer.elapsed,t._listeners.fireEvent("dcrHeartbeat",a.dcrTimer.elapsed))}function c(e){s&&clearTimeout(s),document.hasFocus&&!document.hasFocus()&&(s=setTimeout(function(){a.safeFocusOn&&a.dcrTimer&&(a.safeFocusOn=!1,document.hasFocus&&!document.hasFocus()&&(t._listeners.fireEvent("info",{type:"info",msg:"Safe Focus timeout"}),a.dcrTimer.pause(),t.flushEvent(e))),clearTimeout(s)},1e3*a.nol_idleTimeout),!a.safeFocusOn&&a.dcrTimer&&(t._listeners.fireEvent("info",{type:"info",msg:"Safe Focus initiated"}),a.dcrTimer.play(a._reset),a._reset=!1,a.safeFocusOn=!0))}function u(e){(self===top||self!==top&&t.globalHasFocus&&!t.globalHasFocus())&&(t._listeners.fireEvent("info",{type:"info",msg:JSON.stringify(e,["type","isTrusted"])}),a.dcrTimer&&a.dcrTimer.pause(),a.safeFocusOn&&(a.safeFocusOn=!1))}function p(e){t._listeners.fireEvent("info",{type:"info",msg:JSON.stringify(e,["type","isTrusted"])}),a.dcrTimer&&a.dcrTimer.play(a._reset),a._reset=!1}function m(e){c(e)}(i.GLCFG.userAgent.isAndroid()||i.GLCFG.userAgent.isIOS())&&(i.GLCFG.userAgent.isFB()||i.GLCFG.userAgent.isInstagram())&&(t.PLDCR.cadenceOverrideEnabled=!0),(a=a||{}).startDcrTick=function(){},a.latestDcrTick=function(){return a.latestDcrTickVal};var f=!0;function v(e){f?f=!1:c(e)}function g(e){!document.hidden&&t.globalHasFocus&&t.globalHasFocus()?(t._listeners.fireEvent("info",{type:"info",msg:"Page visibilityApi - VISIBLE"}),a.dcrTimer&&a.dcrTimer.play(a._reset),a._reset=!1):(t._listeners.fireEvent("info",{type:"info",msg:"Page visibilityApi - HIDDEN"}),a.dcrTimer&&a.dcrTimer.pause(),a.safeFocusOn&&(a.safeFocusOn=!1))}function _(e){a.dcrTimer&&a.dcrTimer.stop()}return a.start=function(e){var n=!t.globalHasFocus||t.globalHasFocus();a._reset=e,(null===a.dcrTimer||void 0===a.dcrTimer||e)&&(n?(a.dcrTimer=l(d,1e3).play(!0),a._reset=!1):a.dcrTimer=l(d,1e3))},a.stop=function(){a.dcrTimer&&a.dcrTimer.stop()},a.init=function(t){i.browserSafeAddEventListener({element:e,eventType:"blur",func:u,useCapture:!1}),i.browserSafeAddEventListener({element:e,eventType:"focus",func:p,useCapture:!1}),i.browserSafeAddEventListener({element:e,eventType:"touchstart",func:m,useCapture:!1}),i.browserSafeAddEventListener({element:e,eventType:"beforeunload",func:_,useCapture:!1}),i.browserSafeAddEventListener({element:e,eventType:"pagehide",func:_,useCapture:!1}),document.addEventListener&&document.addEventListener("visibilitychange",g)},a.removeListeners=function(){i.browserSafeRemoveEventListener({element:e,eventType:"blur",func:u,useCapture:!1}),i.browserSafeRemoveEventListener({element:e,eventType:"focus",func:p,useCapture:!1}),i.browserSafeRemoveEventListener({element:e,eventType:"touchstart",func:m,useCapture:!1}),i.browserSafeRemoveEventListener({element:e,eventType:"pagehide",func:_,useCapture:!1}),t.browser.removeEventListener({element:e,eventType:"blur",useCapture:!1,func:t.flushEvent}),t.browser.removeEventListener({element:e,eventType:"pagehide",useCapture:!1,func:t.flushEvent}),t.userAgent.isFB()||t.userAgent.isInstagram()||(t.browser.removeEventListener({element:e.document,eventType:t.browser.visibilityEvent,useCapture:!1,func:t.flushEvent}),document.removeEventListener&&document.removeEventListener("visibilitychange",g))},a.safeFocus=c,a.built||(a.built=!0,a.BUILDVERSION=o,t.bindPlayers(a,"PLDCR")),a}),e.NOLBUNDLE.registerLib("PLLOG",function(t){"use strict";var a=t.PLLOG=t.PLLOG||{},n=e.NOLBUNDLE,r="6.0.0",i="0",o=t.getBaseBuildVer?t.getBaseBuildVer()+"0":"6.0.0"+_localBuildVer,s={INFO:{info:c},DEBUG:{info:c,debug:u,warn:m,error:f},WARN:{info:c,warn:m},ERROR:{info:c,error:f},CONSOLE:{info:c},TRUE:{info:c},LOGGER:{logger:p}};function l(e){if(e){var a=String(e).toUpperCase();if(s.hasOwnProperty(a))for(var n in s[a]){var r=String(n).toLowerCase();t._listeners.addListenerSingle(r,s[a][r])}}}function d(e){return e&&e.target&&e.target.hasOwnProperty("msg")?e.target.msg:""}function c(t){e.console&&console.info("Nielsen Log: Info - ",d(t))}function u(t){e.console&&console.log("Nielsen Log: Debug - ",d(t))}function p(t){e.console&&console.log("Nielsen Log: Logger - ",d(t))}function m(t){e.console&&console.warn("Nielsen Log: Warn - ",d(t))}function f(t){e.console&&console.error("Nielsen Log: Error - ",d(t))}return a.init=function(e){if(e&&e.getConfigParams){var t=e.getConfigParams();t.hasOwnProperty("ggParams")&&t.ggParams.hasOwnProperty("nol_sdkDebug")&&l(t.ggParams.nol_sdkDebug)}},a.built||(a.built=!0,a.BUILDVERSION=o,t.bindPlayers(a,"PLLOG")),a})):console&&console.warn&&console.warn("Warning: Your current browser environment does not sufficiently support ECMA5 standards. Nielsen SDK will not be initialized.")}catch(e){n("ERROR: "+e.message)}}(window);