# webappsstore2

originKey: rb.moc.gi.aido.:https:443
scope: rb.moc.gi.aido.:https:443
key: nvgcnfg53725
value:
  {"date":"2019-12-25T14:31:22.994Z","cnf":{"acc":"53725","account":"53725","wct":true,"wcc":true,"ext":["nvg53725.getH1=function(){function a(b){if(b.children.length)return a(b.children[0]);if(b.tagName==\"IMG\")return b.alt||'';return b.innerText;}var b;b=document.getElementsByTagName('h1');if(!b.length)return '';this.reqParms.h1=escape(a(b[0]));};nvg53725.getH1();","window.nvgGetSegment=function(a){return nvg53725.getSegment(a);};window.ltgc=function(a){return nvg53725.getSegment(a);};"],"version":7,"wst":false}}


originKey: rb.moc.gi.aido.:https:443
scope: rb.moc.gi.aido.:https:443
key: criteo_pt_cdb_metrics
value:
  [{"publisherTagVersion":74,"slots":[{"impressionId":"ccb1d3dd15ce4185b2e037f6934474af","zoneId":1222483,"adUnitId":"shopping_mobile","cachedBidUsed":false,"isDsc":false},{"impressionId":"40622b8d8ff04d369bcce44dd436bdcf","zoneId":1216841,"adUnitId":"bannermobi_1","cachedBidUsed":false,"isDsc":false},{"impressionId":"1e26a764a6d54d7b9090bf93d9961bba","zoneId":1216842,"adUnitId":"bannermobi_2","cachedBidUsed":false,"isDsc":false},{"impressionId":"4fd73018b4254614ba18bfe2d683d34d","zoneId":1216836,"adUnitId":"retangulo_medio_mobi_1","cachedBidUsed":false,"isDsc":false}],"elapsed":1440,"isTimeout":false,"pageLoadElapsed":1694,"adapterStartElapsed":84,"cdbCallStartElapsed":87,"cdbCallEndElapsed":1750,"adapterEndElapsed":1750,"setTargetingElapsed":3359,"adapterTimeout":2000,"adapterIsTimeout":false,"timeToFirstByte":195}]


originKey: rb.moc.gi.aido.:https:443
scope: rb.moc.gi.aido.:https:443
key: cto_bundle
value:
  fgeei19wZUE3STBsWTdlTTU0RnhtdzZlaDk0ZFdpbEdwdE9OdThWS0wzcXJFNW1kJTJCTFd5enVWdG5zZVpySzhqcExndE04akMyUzU2RGxOVUI0elN4RWgzclJwNEpCckc3JTJCUkJnWm40U1FrVjV0Z3AlMkJUcENRQnhaZnclMkZXZUxnNUNkaUZYQzBIMlklMkJteEMxYk53aVdLUmJia05wdUtRUTVTRm1ZUng0OHNwJTJCOFZHWkFnTXNXc0lucHlFamo2SWV4Znhqa0w


originKey: ten.danyd.s.:https:443
scope: ten.danyd.s.:https:443
key: d20160819W
value:
  [{"v":"5550003059|5000004782|4000035335|1577383168|1579975168","t":1577383180},{"v":"5550003059|5000004782|4000035335|1577280000|1579872000","t":1577279962}]


originKey: moc.avitropseatezag.www.:https:443
scope: moc.avitropseatezag.www.:https:443
key: st_data_1
value:
  {"config":{"publisher":"[encoded data, 4744 characters]"}}


originKey: moc.avitropseatezag.www.:https:443
scope: moc.avitropseatezag.www.:https:443
key: criteo_pt_cdb_metrics
value:
  [{"publisherTagVersion":78,"slots":[{"impressionId":"71b998bd865949eda84c908893b0c9c6","zoneId":1443913,"adUnitId":"/21715141650/dubl","cachedBidUsed":false,"isDsc":false}],"elapsed":165,"isTimeout":false,"pageLoadElapsed":2337,"adapterStartElapsed":30,"cdbCallStartElapsed":32,"cdbCallEndElapsed":635,"adapterEndElapsed":637,"adapterTimeout":2000,"adapterIsTimeout":false,"timeToFirstByte":161,"requestGroupId":"5cde08c4-410c-499f-9633-f1d97c181974"}]


originKey: moc.avitropseatezag.www.:https:443
scope: moc.avitropseatezag.www.:https:443
key: taboola global:lspb
value:
  CwsIQRDTqEAMCwhCENOoQAwLCIkBENOoQAwLCEwQ06hADAsIjgEQ06hADAsIkQEQ06hADAsIlQEQ06hADAsIHBDTqEAMCwgdENOoQAwLCB4Q06hADAsIHxDTqEAMCwggENOoQAwLCCEQ06hADAsIIxCz90AMCwgkENOoQAwLCGQQ06hADAsIJxDTqEAMCwgtENOoQAwLCDEQ06hADAsIOxDTqEAMCwg9EPXZPwwLCD8Q06hADAwTFA


originKey: moc.suqsid.secivres.tsepmet.:https:443
scope: moc.suqsid.secivres.tsepmet.:https:443
key: taboola global:lspb
value:
  CwsIQRDVqEAMCwhCENOoQAwLCIkBENOoQAwLCEwQ06hADAsIjgEQ06hADAsIkQEQ06hADAsIlQEQ06hADAsIHBDVqEAMCwgdENWoQAwLCB4Q1ahADAsIHxDVqEAMCwggENOoQAwLCCEQ1ahADAsIIxC190AMCwgkENOoQAwLCGQQ06hADAsIJxDTqEAMCwgtENOoQAwLCDEQ1ahADAsIOxDTqEAMCwg9EPXZPwwLCD8Q06hADAwTFA


originKey: moc.suqsid.secivres.tsepmet.:https:443
scope: moc.suqsid.secivres.tsepmet.:https:443
key: disqus-widget-gazetaesportivanet:session-data
value:
  v2_a7f51263abbda7fdfa0971d97ffc2d7c_fdd9e855-48a0-4e75-b001-9027cc67d6d0-tuct4fe88ae_1577386798_1577386899_CIi3jgYQws1CGKjt15z0LSACKAEwHzjb1AdAgIgQSK6QNlD___________8BWABgAA


originKey: moc.avitropseatezag.www.:https:443
scope: moc.avitropseatezag.www.:https:443
key: gazetaesportiva1:session-data
value:
  v2_40540fd167ce311d9ec7da0fbbe75632_8d6b8c41-63a1-4c71-963c-644b60119d21-tuct4fe8888_1577386790_1577386897_CIi3jgYQzaQ_GNLR15z0LSACKAQwHzjb1AdAgIgQSK6QNlD___________8BWABgAA


originKey: moc.avitropseatezag.www.:https:443
scope: moc.avitropseatezag.www.:https:443
key: 1174771:session-data
value:
  v2_28d362a28160b145cb36482b41326925_8d6b8c41-63a1-4c71-963c-644b60119d21-tuct4fe8888_1577386760_1577387069_CAwQ89lHGNCY4pz0LSAFKAEwHzjb1AdAgIgQSK6QNlD___________8BWABgAA


originKey: moc.avitropseatezag.www.:https:443
scope: moc.avitropseatezag.www.:https:443
key: cto_bundle
value:
  CSjLwV9wZUE3STBsWTdlTTU0RnhtdzZlaDk5JTJGbWp4M3BHM0FEZEY3bVZnZTgyWjFaR1hLalk5djNUUjFyc1VVT092VTlEMmU2NFhwdFpmaEVoNWEwT2VUZXFZdWQ2MTBUMDQ4Qm9rTk0zdUo4Um9tbTROZWZnQVVwWGpqYVBoZUlwM0dBWjRURm5SRm9QMGRObmxMOXNEaUMyZHlHMVVhRlVQJTJGc29LemJ2WkRHUiUyQjQ5TmJ6anBsZGh5NXhOcjNYand4Skw


originKey: moc.avitropseatezag.www.:https:443
scope: moc.avitropseatezag.www.:https:443
key: eng_mt
value:
  {"ver":27,"sessionStartTime":1577386759295,"scrollDepth":168,"sessionDepth":["https://www.gazetaesportiva.com/times/corinthians/","https://www.gazetaesportiva.com/times/corinthians/zagueiro-leo-santos-do-corinthians-e-alvo-de-clube-espanhol-afirma-portal/","https://www.gazetaesportiva.com/times/corinthians/depois-de-jackson-samurai-e-caires-corinthians-anuncia-eder-lima-no-futsal/"],"timeOnSite":311445,"numOfTimesMetricsSent":7}


originKey: rb.moc.oadatse.setropse.:https:443
scope: rb.moc.oadatse.setropse.:https:443
key: _mather
value:
  eyJ1c2VyREIiOnsic2VnbWVudHMiOltdLCJtZXRlckRhdGEiOnsibWV0ZXJUaHJlc2hvbGQiOiIwIiwicmVzZXRNZXRlciI6IjAifSwicGFnZVZpZXdzIjo3LCJuZXh0VXBkYXRlIjoxODAwMDAwLCJuZXh0VXBkYXRlVFMiOjE1Nzc0ODU5MzE0NjQsInVzZXJEQkZldGNoIjp0cnVlLCJlcnIiOiJ1aWQvbXVpZC9kdWlkIG5vdCBmb3VuZCJ9LCJpZGVudGl0aWVzIjpbeyJ0eXBlIjoiZ2EiLCJpZCI6IjEwMTA5NTM5MjQiLCJyZWZUaW1lIjoxNTc3NDg0MTMxODQ1fV19


originKey: rb.moc.setropserepus.gm.www.:https:443
scope: rb.moc.setropserepus.gm.www.:https:443
key: cto_bundle
value:
  Wa17mF9wZUE3STBsWTdlTTU0RnhtdzZlaDk5SllKclclMkJyMWFRayUyRll3UmlQUlNWYkFZSSUyRktPdllLaE5yTWwxR084dlluciUyQiUyQlB3dnJ3S3duQmY2QXNkcDIzZkJxJTJGN295UDhIRlplWDMlMkZWTHNJM2twNjg1eiUyQmNOb2t2UU5hM2pWYWglMkY1cWhaVHVJbkxVTFRVY2p4cnIlMkJqanA0TEtHZ3JYWkNUYUlkMVV3RmpNMm1zTVZ2SURkVGxBa0Q2OUFpJTJCSG4yckpR


originKey: rb.moc.setropserepus.gm.www.:https:443
scope: rb.moc.setropserepus.gm.www.:https:443
key: _mather
value:
  eyJ1c2VyREIiOnsic2VnbWVudHMiOltdLCJtZXRlckRhdGEiOnsibWV0ZXJUaHJlc2hvbGQiOiIwIiwicmVzZXRNZXRlciI6IjAifSwicGFnZVZpZXdzIjo0LCJuZXh0VXBkYXRlIjoxODAwMDAwLCJuZXh0VXBkYXRlVFMiOjE1NzgzMjI3NTQxMjgsInVzZXJEQkZldGNoIjp0cnVlLCJlcnIiOiJ1aWQvbXVpZC9kdWlkIG5vdCBmb3VuZCJ9LCJpZGVudGl0aWVzIjpbeyJ0eXBlIjoiZ2EiLCJpZCI6IjE2OTIyMjU3MTkiLCJyZWZUaW1lIjoxNTc4MzIwOTU0MTU4fV0sInZpc2l0UmVmciI6Imh0dHBzOi8vd3d3Lmdvb2dsZS5jb20vIn0=


originKey: rb.moc.setropserepus.gm.www.:https:443
scope: rb.moc.setropserepus.gm.www.:https:443
key: criteo_fast_bid
value:
  // Hash: uiRh33RKkTUT/WWTYw+bEVbxgwKhb7jrFEdgqU3ny/+IycVhZBgiOb7zZn4DN+tIKdq5stxU1EImQTUYHkAhNgvLK/xWzu9TKwPBGvOn9rnWq30hpkzpQsNqLZurMNOXeMFsnHjPCc+zZ6wZcLol7xxDmihWkKEFzhBpTwId7jc=
  !function(){"use strict";var d,t;(t=d||(d={}))[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Debug=2]="Debug";var s=["color: #fff;","background: #ff8f1c;","display: inline-block;","padding: 1px 4px;","border-radius: 3px;"].join(" "),g=function(){function n(){}return n.Log=function(t,e){if(!(n.LOGLEVEL<t)){var i=d[t].toUpperCase(),r=window.navigator.userAgent,o=0<r.indexOf("MSIE ")||0<r.indexOf("Trident/");window.console&&(o?console.log("[PubTag] "+i+": "+e):console.log("%cPubTag",s,i+": "+e))}},n.Debug=function(t){n.Log(d.Debug,t)},n.Warning=function(t){n.Log(d.Warning,t)},n.Error=function(t){n.Log(d.Error,t)},n.LOGLEVEL=d.Error,n}();var a=function(){function i(t){void 0===t&&(t=!0),t&&window.performance&&window.performance.now?this.now=window.performance.now.bind(window.performance):Date.now?this.now=Date.now:this.now=function(){return(new Date).getTime()}}return i.CreateRunning=function(){var t=new i;return t.start(),t},i.CreateWithStartTime=function(t){var e=new i(!1);return e.startTime=t,e},i.TimeSincePageLoad=function(){if(window.performance){if(window.performance.now)return window.performance.now();if(window.performance.timing&&window.performance.timing.navigationStart)return(new Date).getTime()-performance.timing.navigationStart}return 0},i.prototype.start=function(){this.startTime=this.now()},i.prototype.elapsed=function(){return this.now()-this.startTime},i}();function p(t){try{return JSON.parse(t)}catch(t){return}}var y=function(){function s(t){this.cmpCallbacks={},this.currentWindow=t}return s.prototype.getCMPFrame=function(){for(var t,e=this.currentWindow,i=0;i<10;++i){try{e.frames.__cmpLocator&&(t=e)}catch(t){}if(e===this.currentWindow.top)break;e=e.parent}return t},s.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__cmp},s.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},s.prototype.retrieveGDPRConsent=function(i,t){void 0===t&&(t=parseInt("10000",10));var r=a.CreateRunning(),o=!1,n=setTimeout(function(){o=!0,g.Warning("Timeout: Unable to resolve GDPR consent after "+t+"ms"),i(void 0)},t);this.executeCommand("getConsentData",null,function(t,e){o||(clearTimeout(n),e?(g.Debug("Consent retrieved in "+r.elapsed()+"ms"),s.processResponseData(t,i)):(g.Warning("Error retrieving GDPR consent data from CMP"),i(void 0)))})},s.prototype.retrieveGDPRConsentForPassback=function(i,t){void 0===t&&(t=parseInt("10000",10));var r=a.CreateRunning(),o=!1,n=setTimeout(function(){o=!0,g.Warning("Timeout: Unable to resolve GDPR consent after "+t+"ms"),i(void 0)},t);this.executeCommand("getVendorConsents",[91],function(t,e){o||(clearTimeout(n),e?(g.Debug("Consent (getVendorConsents) retrieved in "+r.elapsed()+"ms"),s.processResponseData(t,i)):(g.Warning("Error while calling getVendorConsents from CMP"),i(void 0)))})},s.processResponseData=function(t,e){if(t){var i={};void 0!==t.consentData&&(i.consentData=t.consentData),void 0!==t.gdprApplies&&(i.gdprApplies=!!t.gdprApplies),t.vendorConsents&&void 0!==t.vendorConsents[91..toString()]&&(i.consentGiven=!!t.vendorConsents[91..toString()]),e(i)}else g.Warning("Unable to read GDPR consent data from CMP"),e(void 0)},s.prototype.executeCommand=function(t,e,i){var n=this;if(!this.hasCallerFunctionInFrame()){g.Debug("No CMP defined on current frame");var s=this.getCMPFrame();this.currentWindow.__cmp=function(t,e,i){if(!s)return g.Warning("CMP not found"),void i({msg:"CMP not found"},!1);var r=Math.random().toString(10),o={__cmpCall:{command:t,parameter:e,callId:r}};n.cmpCallbacks[r]=i,s.postMessage(o,"*")},this.currentWindow.addEventListener("message",function(t){var e="string"==typeof t.data?p(t.data):t.data;if(e&&e.__cmpReturn&&e.__cmpReturn.callId&&e.__cmpReturn.returnValue){var i=e.__cmpReturn;n.cmpCallbacks&&n.cmpCallbacks[i.callId]&&(n.cmpCallbacks[i.callId](i.returnValue,i.success),delete n.cmpCallbacks[i.callId])}},!1)}this.currentWindow.__cmp(t,e,i)},s}();var n=function(){function t(t){this.EXPIRE_SUFFIX="_expires",this.CHECK_STORAGE_KEY="criteo_localstorage_check",this.localStorage=function(t){try{return t.localStorage}catch(t){return}}(t||window)}return t.prototype.checkLocalStorage=function(){if(!this.localStorage)return!1;var t=this.CHECK_STORAGE_KEY;try{return this.localStorage.setItem(t,t),this.localStorage.removeItem(t),!0}catch(t){return!1}},t.prototype.removeItem=function(t){this.localStorage.removeItem(t),this.localStorage.removeItem(t+this.EXPIRE_SUFFIX)},t.prototype.getItem=function(t,e){var i=(new Date).getTime(),r=this.localStorage.getItem(t+this.EXPIRE_SUFFIX),o=r?parseInt(r,10):-1;return-1!==o&&o<i||e&&(-1===o||e<o-i)?(this.removeItem(t),null):this.localStorage.getItem(t)},t.prototype.setItem=function(t,e,i){if(this.localStorage.setItem(t,e),i){var r=(new Date).getTime()+i;this.localStorage.setItem(t+this.EXPIRE_SUFFIX,r.toString())}},t.prototype.getAllItemsByPrefix=function(t){var e=[];for(var i in localStorage)0===i.indexOf(t)&&e.push(i);return e},t}(),o=function(){function i(){this.localStorageHelper=new n,this.localStorageEnabled=this.localStorageHelper.checkLocalStorage()}return i.prototype.silentModeEnabled=function(){var t=i.SILENT_MODE_KEY;return this.localStorageEnabled&&null!==this.localStorageHelper.getItem(t)},i.prototype.enableSilentMode=function(t){if(this.localStorageEnabled){var e=i.SILENT_MODE_KEY;this.localStorageHelper.setItem(e,"1",t)}},i.SILENT_MODE_KEY="criteo_silent_mode",i}();function c(){return(new Date).getTime()}var r,u,l,e,h=function(){function t(t){this.x=t+"_lock_A",this.y=t+"_lock_B",this.id=Math.floor(1e9*Math.random()).toString()}return t.prototype.get=function(t){var e=localStorage.getItem(t);if(e){var i=e.split("|");if(!(i.length<2||parseInt(i[1],10)<c()))return i[0]}},t.prototype.set=function(t,e){var i=c()+e;localStorage.setItem(t,this.id+"|"+i)},t.prototype.acquire=function(t,e,i){var r=this;void 0===i&&(i=100),i<=0||this.tryAcquire(e)?(t(),this.release()):setTimeout(function(){r.acquire(t,e,i-10)},10)},t.prototype.tryAcquire=function(t){localStorage.setItem(this.x,this.id);var e=this.get(this.y);return!(e&&e!==this.id||(this.set(this.y,t),localStorage.getItem(this.x)!==this.id||this.get(this.y)!==this.id))},t.prototype.release=function(){localStorage.removeItem(this.x),localStorage.removeItem(this.y)},t}(),f=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.toString=function(){return this.width+"x"+this.height},t}(),i=function(){function t(t){this.impressionId=t}return t.prototype.toString=function(){return"ImpId"+this.impressionId},t}(),v=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),m=function(o){function t(t,e,i){var r=o.call(this,t)||this;return r.size=e,r.networkId=i,r}return v(t,o),t.prototype.toString=function(){return o.prototype.toString.call(this)+"_Size"+this.size+"_NetworkId"+this.networkId},t}(i),I=(u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),C=function(r){function t(t,e){var i=r.call(this,t)||this;return i.zoneId=e,i}return I(t,r),t.prototype.toString=function(){return r.prototype.toString.call(this)+"_ZoneId"+this.zoneId},t}(i),S=function(){function t(t,e){this.useZoneIdIntegration=t,this.networkId=e}return t.prototype.createKeysFromSlotRequest=function(t){if(this.useZoneIdIntegration)return[new C(t.impId,t.zoneId)];for(var e=[],i=0,r=t.sizes;i<r.length;i++){var o=r[i];e.push(new m(t.impId,o,this.networkId))}return e},t.prototype.createKeyFromSlotResponse=function(t){return this.useZoneIdIntegration?new C(t.impid,t.zoneid):new m(t.impid,new f(t.width,t.height),this.networkId)},t.prototype.createKeyFromBid=function(t){return this.useZoneIdIntegration?new C(t.impressionId,t.zoneId):new m(t.impressionId,new f(t.width,t.height),this.networkId)},t}(),b=function(){function u(t,e){this.localStorageHelper=new n,this.localStorageEnabled=this.localStorageHelper.checkLocalStorage(),this.slotKeyFactory=new S(t,e)}return u.useZoneIdIntegration=function(t,e){return void 0===e||0===t.filter(function(t){return void 0!==t.sizes&&0<t.sizes.length}).length},u.prototype.get=function(t){var e=this.localStorageHelper.getItem(t),i=e&&p(e);return i&&"object"==typeof i&&"bids"in i?(i.bids=i.bids.filter(function(t){return t.expiration>c()}),i):{bids:[]}},u.prototype.getBySlotKey=function(t){return this.get(u.BID_KEY_PREFIX+t.toString())},u.prototype.set=function(t,e){0<e.bids.length||e.no_bid&&e.no_bid>c()?this.localStorageHelper.setItem(t,JSON.stringify(e)):this.localStorageHelper.removeItem(t)},u.prototype.setBySlotKey=function(t,e){this.set(u.BID_KEY_PREFIX+t.toString(),e)},u.prototype.filterNoBidSlots=function(t){for(var e=[],i=0,r=t;i<r.length;i++){for(var o=r[i],n=[],s=0,a=this.slotKeyFactory.createKeysFromSlotRequest(o);s<a.length;s++){var d=a[s];this.getBid(d,0)!==u.NO_BID&&(d instanceof m?n.push(d.size):e.push(o))}0<n.length&&(o.sizes=n,e.push(o))}return e},u.prototype.getRequestCachedBids=function(t,e){void 0===e&&(e=5e3);for(var i=[],r=0,o=t;r<o.length;r++)for(var n=o[r],s=0,a=this.slotKeyFactory.createKeysFromSlotRequest(n);s<a.length;s++){var d=a[s],c=this.getBid(d,e);void 0!==c&&c!==u.NO_BID&&i.push(c)}return i},u.prototype.getBid=function(t,e){if(void 0===e&&(e=5e3),this.localStorageEnabled){var i=this.getBySlotKey(t);if(i.no_bid&&i.no_bid>c())return u.NO_BID;if(0<e)for(var r=0,o=i.bids;r<o.length;r++){var n=o[r];if(new h(u.BID_KEY_PREFIX+n.bid.slotid).tryAcquire(e))return n.bid}}},u.prototype.storeRequestNoBid=function(t,e){for(var i=0,r=this.slotKeyFactory.createKeysFromSlotRequest(t);i<r.length;i++){var o=r[i];this.storeNoBid(o,e)}},u.prototype.storeResponseBid=function(e,i){var t=this.slotKeyFactory.createKeyFromSlotResponse(e);this.modifyCache(t,function(t){t.bids.push({bid:e,expiration:c()+1e3*i})})},u.prototype.storeNoBid=function(t,e){this.modifyCache(t,function(t){t.no_bid=Math.max(t.no_bid||0,c()+1e3*e)})},u.prototype.removeBid=function(i){var t=this.slotKeyFactory.createKeyFromBid(i);this.modifyCache(t,function(t){for(var e=0;e<t.bids.length;e++)if(t.bids[e].bid.slotid===i.slotId)return void t.bids.splice(e,1)}),new h(t.toString()).release()},u.prototype.modifyCache=function(e,i){var r=this;if(this.localStorageEnabled){var o=new h(e.toString());o.acquire(function(){var t=r.getBySlotKey(e);i(t),r.setBySlotKey(e,t),o.release()},1e3)}},u.prototype.clearExpiredItems=function(){for(var t=0,e=this.localStorageHelper.getAllItemsByPrefix(u.BID_KEY_PREFIX);t<e.length;t++){var i=e[t],r=this.get(i);r&&this.set(i,r)}},u.NO_BID="nobid",u.BID_KEY_PREFIX="criteo_pt_cdb_bidcache_",u}(),E=function(){function t(t,e,i){var r=b.useZoneIdIntegration(e,i);this.bidManager=new b(r,i),this.silentModeManager=new o,this.context=t}return t.prototype.filterNoBidSlots=function(t){var e=this.bidManager.filterNoBidSlots(t);return this.context.shouldIgnoreSilentMode?(e.length!==t.length&&this.context.setSilentModeIgnored&&this.context.setSilentModeIgnored(),t):e},t.prototype.silentModeEnabled=function(){var t=!1;return this.silentModeManager.silentModeEnabled()&&(this.context.shouldIgnoreSilentMode&&this.context.setSilentModeIgnored?this.context.setSilentModeIgnored():t=!0),t},t.prototype.getCachedBids=function(t){return this.bidManager.getRequestCachedBids(t)},t.prototype.removeBid=function(t){this.bidManager.removeBid(t)},t.prototype.handleResponse=function(t,e,i,r){var o=i.time_to_next_call;0<o&&(g.Debug("Global silent mode enabled for "+o+" seconds"),this.silentModeManager.enableSilentMode(1e3*o));var n={};if(i.slots)for(var s=0,a=i.slots;s<a.length;s++){(f=a[s]).ttl&&(n[f.imp_id]=f.ttl)}if(e.slots)for(var d=0,c=e.slots;d<c.length;d++){var u=0;(f=c[d]).slotid in n&&(u=n[f.slotid],delete n[f.slotid]),r&&0<u&&(g.Debug("Post-timeout bid for slot '"+f.impid+"' cached for "+u+" seconds"),this.bidManager.storeResponseBid(f,u))}for(var l in n)if(n.hasOwnProperty(l))for(var p=0,h=t;p<h.length;p++){var f;if((f=h[p]).slotId===l){u=n[l];g.Debug("Silent mode for slot '"+f.impId+"' enabled for "+u+" seconds"),this.bidManager.storeRequestNoBid(f,u)}}},t.prototype.clearExpiredItems=function(){var t=this;setTimeout(function(){t.bidManager.clearExpiredItems()},3e3)},t}(),w=function(t,e,i,r,o,n,s,a,d,c,u,l,p,h,f){this.publisherTagVersion=t,this.slots=e,this.elapsed=i,this.isTimeout=r,this.pageLoadElapsed=o,this.adapterStartElapsed=n,this.cdbCallStartElapsed=s,this.cdbCallEndElapsed=a,this.adapterEndElapsed=d,this.setTargetingElapsed=c,this.adapterTimeout=u,this.adapterIsTimeout=l,this.timeToFirstByte=p,this.requestGroupId=h,this.sid=f},_=function(t,e,i,r,o){this.impressionId=t,this.zoneId=e,this.adUnitId=i,this.cachedBidUsed=r,this.isDsc=o},T=function(){function t(){this.elapsed=0,this.isTimeout=!1,this.pageLoadElapsed=0,this.adapterStartElapsed=0,this.cdbCallStartElapsed=0,this.cdbCallEndElapsed=0,this.adapterEndElapsed=0,this.cachedBidsReturned=[],this.slots=[]}return t.prototype.withElapsed=function(t){return this.elapsed=Math.round(t),this},t.prototype.withIsTimeout=function(t){return this.isTimeout=t,this},t.prototype.withPageLoadElapsed=function(t){return this.pageLoadElapsed=Math.round(t),this},t.prototype.withAdapterStartElapsed=function(t){return this.adapterStartElapsed=Math.round(t),this},t.prototype.withCdbCallStartElapsed=function(t){return this.cdbCallStartElapsed=Math.round(t),this},t.prototype.withCdbCallEndElapsed=function(t){return this.cdbCallEndElapsed=Math.round(t),this},t.prototype.withSetTargetingElapsed=function(t){return this.setTargetingElapsed=Math.round(t),this},t.prototype.withAdapterEndElapsed=function(t){return this.adapterEndElapsed=Math.round(t),this},t.prototype.withAdapterTimeout=function(t){return this.adapterTimeout=t&&Math.round(t),this},t.prototype.withCachedBidsReturned=function(t){return this.cachedBidsReturned=t,this},t.prototype.withTimeToFirstByte=function(t){return this.timeToFirstByte=t&&Math.round(t),this},t.prototype.withRequestGroupId=function(t){return this.requestGroupId=t,this},t.prototype.withSid=function(t){return this.sid=t,this},t.prototype.addSlot=function(t,e,i,r){var o=0<this.cachedBidsReturned.filter(function(t){return t.impid===i&&t.zoneid===e}).length;return this.slots.push(new _(t,e,i,o,r)),this},t.prototype.build=function(){var t;return void 0!==this.adapterTimeout&&(t=this.adapterEndElapsed>this.adapterTimeout),new w(79,this.slots,this.elapsed,this.isTimeout,this.pageLoadElapsed,this.adapterStartElapsed,this.cdbCallStartElapsed,this.cdbCallEndElapsed,this.adapterEndElapsed,this.setTargetingElapsed,this.adapterTimeout,t,this.timeToFirstByte,this.requestGroupId,this.sid)},t}(),M=function(){function t(t,e,i,r,o){this.urlBuilder=t,this.profileId=e,this.adapterVersion=r,this.wrapperVersion=o,this.feedbacks=i}return t.prototype.getRequest=function(){return{feedbacks:this.feedbacks}},t.prototype.getUrl=function(){return this.urlBuilder.buildCsmUrl(this.profileId,this.adapterVersion,this.wrapperVersion)},t}(),O=function(){function t(){}return t.generateCacheBuster=function(){return Math.floor(99999999999*Math.random())},t}();function R(t){switch(t.toLowerCase()){case"amp":return l.AMP;default:return l.Unspecified}}(e=l||(l={}))[e.Unspecified=0]="Unspecified",e[e.AMP=1]="AMP";var D=function(){function s(t){void 0===t&&(t=!1),this.auditMode=t}return s.prototype.buildUrl=function(t,e,i,r,o){void 0===i&&(i=l.Unspecified);var n=s.CRITEO_BIDDER_URL+this.getHandlerPath();return n+="?ptv=79",!0===e.isAdBlocked&&(n+="&abp=1"),n=this.appendCommonParameters(n,t,r,o),n+=e.ctoIdOnPublisherDomain?"&idcpy="+e.ctoIdOnPublisherDomain:"",n+=e.idfs?"&idfs="+e.idfs:"",n+=e.secureId?"&sid="+e.secureId:"",n+=e.isOptOut?"&optout=1":"",n+=e.bundle?"&bundle="+e.bundle:"",i!==l.Unspecified&&(n+="&im="+i),n+=e.silentModeIgnored?"&smi=1":"",n+="&cb="+String(O.generateCacheBuster()),n+=e.getContextFlags()},s.prototype.buildCsmUrl=function(t,e,i){var r=s.CRITEO_BIDDER_URL+s.CRITEO_CSM_HANDLER;return r+="?ptv=79",this.appendCommonParameters(r,t,e,i)},s.prototype.appendCommonParameters=function(t,e,i,r){return t+="&profileId="+String(e),void 0!==i&&(t+="&av="+String(i)),void 0!==r&&(t+="&wv="+encodeURIComponent(r)),t},s.prototype.getHandlerPath=function(){return this.auditMode?s.CRITEO_BIDDER_AUDIT_HANDLER:s.CRITEO_BIDDER_HANDLER},s.CRITEO_BIDDER_URL="https://bidder.criteo.com/",s.CRITEO_BIDDER_HANDLER="cdb",s.CRITEO_CSM_HANDLER="csm",s.CRITEO_BIDDER_AUDIT_HANDLER="prebid/audit",s}(),A=function(){function o(t,e,i,r){this.profileId=t,this.adapterVersion=e,this.wrapperVersion=i,this.localStorageHelper=r||new n,this.localStorageEnabled=this.localStorageHelper.checkLocalStorage()}return o.prototype.getMetrics=function(t){if(this.localStorageEnabled){var e=o.METRICS_STORAGE_KEY,i=this.localStorageHelper.getItem(e),r=i?p(i):[];return t&&this.localStorageHelper.removeItem(e),r}return[]},o.prototype.setMetrics=function(t){if(this.localStorageEnabled){var e=o.METRICS_STORAGE_KEY;this.localStorageHelper.setItem(e,JSON.stringify(t),36e5)}},o.prototype.storeMetric=function(t){var e=this;if(this.localStorageEnabled){var i=this.getMetrics(!1);i.push(t),this.setMetrics(i);var r=(t&&t.adapterTimeout||2e3)+1e3;setTimeout(function(){e.sendMetrics()},r)}},o.prototype.sendMetrics=function(){var t=this.getMetrics(!0);if(!(t.length<=0)){var e=new M(new D,this.profileId,t,this.adapterVersion,this.wrapperVersion),i=e.getUrl(),r=JSON.stringify(e.getRequest());navigator.sendBeacon&&navigator.sendBeacon(i,r)}},o.METRICS_STORAGE_KEY="criteo_pt_cdb_metrics",o}(),B=function(){function e(t,e,i,r,o,n,s,a,d,c,u){this.slots=t,this.context=e,this.metricsManager=i,this.urlBuilder=r,this.profileId=o,this.integrationMode=n||l.Unspecified,this.networkId=s,this.adapterVersion=a,this.privacyWrapper=d,this.wrapperVersion=c,this.viewportComputer=u}return e.prototype.isValid=function(){return 0<this.slots.length},e.prototype.getRequest=function(){for(var t=[],e=0,i=this.slots;e<i.length;e++){var r=i[e],o={slotid:r.slotId,impid:r.impId};if(void 0!==r.zoneId&&(o.zoneid=r.zoneId),void 0!==r.nativeCallback&&(o.native=!0),void 0!==r.transactionId&&(o.transactionid=r.transactionId),void 0!==r.publisherSubId&&(o.publishersubid=r.publisherSubId),void 0!==r.sizes){for(var n=[],s=0,a=r.sizes;s<a.length;s++){var d=a[s];n.push(d.width+"x"+d.height)}o.sizes=n}if(void 0!==r.video){var c={playersizes:this.parsePlayerSizes(r.video.playersize),mimes:r.video.mimes,protocols:r.video.protocols,maxduration:r.video.maxduration,api:r.video.api,skip:r.video.skip,placement:r.video.placement,playbackmethod:r.video.playbackmethod,minduration:r.video.minduration,startdelay:r.video.startdelay};o.video=c}if(void 0!==this.viewportComputer){var u=this.viewportComputer.getSlotPosition(r);void 0!==u&&(o.position={top:u.top,left:u.left})}t.push(o)}var l={ceh:this.context.ceh,uspOptout:this.context.ccpaOptout},p={publisher:{url:this.context.highestAccessibleUrl},slots:t,user:l};void 0!==this.networkId&&(p.publisher.networkid=this.networkId);var h=this.metricsManager.getMetrics(!0);if(h.length&&(p.previousBidFeedback=h),this.privacyWrapper&&(this.privacyWrapper.gdprConsent&&(p.gdprConsent=this.privacyWrapper.gdprConsent),this.privacyWrapper.ccpaIabConsent&&(l.uspIab=this.privacyWrapper.ccpaIabConsent.uspString)),void 0!==this.viewportComputer){var f=this.viewportComputer.getViewport();p.viewport={width:f.width,height:f.height,scrollTop:f.scrollTop,scrollLeft:f.scrollLeft}}return p},e.parsePlayerSize=function(t){return t[0]+"x"+t[1]},e.prototype.parsePlayerSizes=function(t){return Array.isArray(t[0])?t.map(function(t){return e.parsePlayerSize(t)}):[e.parsePlayerSize(t)]},e.prototype.getUrl=function(){return this.urlBuilder.buildUrl(this.profileId,this.context,this.integrationMode,this.adapterVersion,this.wrapperVersion)},e}();function x(t){var e={slots:void 0,time_to_next_call:0};return void 0!==t.exd&&(void 0!==t.exd.time_to_next_call&&(e.time_to_next_call=t.exd.time_to_next_call),e.slots=t.exd.slots,delete t.exd),e}function P(){var i=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"===t?e:3&e|8).toString(16)})}var k=function(t,e,i,r,o,n,s,a){this.slotId=P().replace(/-/g,""),this.impId=t,this.zoneId=e,this.nativeCallback=i,this.transactionId=r,this.sizes=o,this.publisherSubId=n,this.mediaTypes=s,this.video=a},U=function(t,e,i,r,o,n,s,a,d,c){this.playersize=t,this.mimes=e,this.protocols=i,this.maxduration=r,this.api=o,this.skip=n,this.placement=s,this.playbackmethod=a,this.minduration=d,this.startdelay=c};var N,F,L=function(){function t(t,e,i){this.hasSetTargetingBeenCalled=!1,this.builder=t,this.timer=void 0!==e?a.CreateWithStartTime(e):a.CreateRunning();var r=this.timer.elapsed();this.builder.withAdapterStartElapsed(r),this.builder.withPageLoadElapsed(a.TimeSincePageLoad()-r),void 0!==i&&this.builder.withAdapterTimeout(i)}return t.prototype.sendRequest=function(t){this.url=t,this.sendTime=a.CreateRunning(),this.builder.withCdbCallStartElapsed(this.timer.elapsed())},t.prototype.requestReceived=function(t){void 0===t&&(t=!1),this.builder.withElapsed(function(t){if(window.performance&&window.performance.getEntries)for(var e=window.performance.getEntries(),i=e.length-1;0<=i;--i){var r=e[i];if(r.name===t&&r.duration)return Math.round(r.duration)}}(this.url)||this.sendTime.elapsed()),this.builder.withCdbCallEndElapsed(this.timer.elapsed()),this.builder.withIsTimeout(t)},t.prototype.setTargeting=function(){this.hasSetTargetingBeenCalled||(this.builder.withSetTargetingElapsed(this.timer.elapsed()),this.hasSetTargetingBeenCalled=!0)},t.prototype.finish=function(t,e){if(this.builder.withAdapterEndElapsed(this.timer.elapsed()),this.builder.withSid(t),this.builder.withRequestGroupId(P()),e&&0!==e.length)for(var i=0,r=e;i<r.length;i++){var o=r[i];this.builder.addSlot(o.imp_id,o.zone_id,o.ad_unit_id,o.is_dsc)}else this.builder.addSlot("");return this.builder.withTimeToFirstByte(this.computeTimeToFirstByte()),this.build()},t.prototype.computeTimeToFirstByte=function(){if(void 0!==window.performance){var t=window.performance.getEntriesByType("resource");if(void 0!==t){var e=t.filter(function(t){return 0<=t.name.indexOf("cdb")});if(void 0!==e&&0<e.length){var i=e[e.length-1],r=i.responseStart,o=i.requestStart;if(void 0!==r&&void 0!==o)return r-o}}}},t.prototype.build=function(){return this.builder.build()},t}();function W(t){var e="number"==typeof window.PREBID_TIMEOUT?window.PREBID_TIMEOUT:void 0;return t&&e?Math.min(t,e):t||e||void 0}(F=N||(N={})).Banner="banner",F.Video="video";var q,K,H=function(){function r(t,e,i,r,o){var n,s,a;this.timer=new L(new T,r.auctionStart,W(r.timeout)),this.auctionId=r.auctionId,this.bidRequests=i,this.slots=[];for(var d=0,c=i;d<c.length;d++){var u=c[d];this.slots.push(new k(u.adUnitCode,u.params.zoneId,u.params.nativeCallback,u.transactionId,u.sizes.map(function(t){return new f(t[0],t[1])}),u.params.publisherSubId,u.mediaTypes,this.getVideoInfoFromBidRequest(u))),n=u.params.networkId||n,a=r.ceh,window.criteo_pubtag.context.ceh=a,u.params.integrationMode&&(s=R(u.params.integrationMode))}var l={};r.gdprConsent&&(void 0!==r.gdprConsent.consentString&&(l.consentData=r.gdprConsent.consentString),void 0!==r.gdprConsent.gdprApplies&&(l.gdprApplies=!!r.gdprConsent.gdprApplies),r.gdprConsent.vendorData&&r.gdprConsent.vendorData.vendorConsents&&void 0!==r.gdprConsent.vendorData.vendorConsents[91..toString(10)]&&(l.consentGiven=!!r.gdprConsent.vendorData.vendorConsents[91..toString(10)]));var p={uspString:r.uspConsent};this.metricsManager=new A(t,e,o),this.cache=new E(window.criteo_pubtag.context,this.slots,n),this.requestBuilder=new B(this.cache.filterNoBidSlots(this.slots),window.criteo_pubtag.context,this.metricsManager,new D(!1),t,s,n,e,{ccpaIabConsent:p,gdprConsent:l},o),this.url=this.requestBuilder.getUrl(),window.Criteo.prebid_adapters=window.Criteo.prebid_adapters||{},window.Criteo.prebid_adapters[this.auctionId]=this}return r.prototype.buildCdbUrl=function(){return this.url},r.prototype.buildCdbRequest=function(){if(this.cache.silentModeEnabled())g.Debug("Request ignored because the global silent mode is enabled");else{if(this.requestBuilder.isValid())return this.timer.sendRequest(this.url),this.requestBuilder.getRequest();g.Debug("Request ignored because it doesnt contain any slot")}},r.GetAllAdapters=function(){return window.Criteo.prebid_adapters},r.GetAdapter=function(t){var e="string"==typeof t?t:t.bidRequests[0].auctionId,i=r.GetAllAdapters();if(i&&e in i)return i[e]},r.prototype.createCriteoNativeAdWithCallback=function(t,e,i){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[t]={callback:i,payload:e},'<script type="text/javascript">\n            var win = window;\n            for (var i = 0; i < 10; ++i) {\n                win = win.parent;\n                if (win.criteo_prebid_native_slots) {\n                    var responseSlot = win.criteo_prebid_native_slots["'+t+'"];\n                    responseSlot.callback(responseSlot.payload);\n                    break;\n                }\n            }\n        <\/script>'},r.prototype.getBidRequestForSlot=function(t){for(var e=0,i=this.bidRequests;e<i.length;e++){var r=i[e];if(r.adUnitCode===t.impid&&(!r.params.zoneId||parseInt(r.params.zoneId,10)===t.zoneid))return r}},r.prototype.getVideoInfoFromBidRequest=function(t){if(this.hasVideoMediaType(t))return new U(t.mediaTypes.video.playerSize,t.mediaTypes.video.mimes,t.mediaTypes.video.protocols,t.mediaTypes.video.maxduration,t.mediaTypes.video.api,t.params.video.skip,t.params.video.placement,t.params.video.playbackmethod,t.params.video.minduration,t.params.video.startdelay)},r.prototype.hasVideoMediaType=function(t){return void 0!==t.params&&void 0!==t.params.video&&(void 0!==t.mediaTypes&&void 0!==t.mediaTypes.video)},r.prototype.interpretResponse=function(t,e){this.timer.requestReceived();var i=x(t),r={};if(void 0!==i.slots)for(var o=0,n=i.slots;o<n.length;o++){r[(c=n[o]).imp_id]=c}var s=[];if(t.slots&&Array.isArray(t.slots))for(var a=0,d=t.slots;a<d.length;a++){var c=d[a],u=this.getBidRequestForSlot(c);if(u){var l=u.bidId,p=c.ttl||r[c.slotid]&&r[c.slotid].ttl||60,h={requestId:l,adId:P(),cpm:c.cpm,currency:c.currency,netRevenue:!0,ttl:p,creativeId:l,width:c.width,height:c.height,dealId:c.deal};if(c.native){if(!u.params.nativeCallback){g.Error('The slot creative is native but we miss the nativeCallback parameter to render it."'+c+'"');continue}h.ad=this.createCriteoNativeAdWithCallback(l,c.native,u.params.nativeCallback)}else c.video?(h.vastUrl=c.displayurl,h.mediaType=N.Video):h.ad=c.creative;s.push(h)}else g.Error('Could not get bid request for slot "'+c+'"')}return this.cache.handleResponse(this.slots,t,i,!1),this.metricsManager.storeMetric(this.timer.finish(t.sid,i.slots)),this.cache.clearExpiredItems(),s},r.prototype.handleBidWon=function(t){this.updateMetric(t,function(t){t.adapterBidWon=!0})},r.prototype.handleBidTimeout=function(){this.timer.requestReceived(!0),this.metricsManager.storeMetric(this.timer.finish()),this.cache.clearExpiredItems()},r.prototype.handleSetTargeting=function(t){var e=this;this.timer.setTargeting(),this.updateMetric(t,function(){return e.timer.build()})},r.prototype.updateMetric=function(t,e){for(var i=this.metricsManager.getMetrics(!1),r=0;r<i.length;++r)for(var o=0,n=i[r].slots;o<n.length;o++){var s=n[o];if(s.adUnitId===t.adUnitCode){var a=e(s);a&&(i[r]=a)}}this.metricsManager.setMetrics(i)},r}(),G=function(){function t(t){this.name=t}return t.prototype.eval=function(t){},t}(),z=function(){function s(t){this.uspapiCallbacks={},this.currentWindow=t}return s.prototype.getCMPFrame=function(){for(var t,e=this.currentWindow,i=0;i<10;++i){try{e.frames.__uspapiLocator&&(t=e)}catch(t){}if(e===this.currentWindow.top)break;e=e.parent}return t},s.prototype.hasCallerFunctionInWindow=function(){return"function"==typeof this.currentWindow.__uspapi},s.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInWindow()||void 0!==this.getCMPFrame()},s.prototype.retrieveCCPAConsent=function(i,t){void 0===t&&(t=parseInt("50",10));var r=a.CreateRunning(),o=!1,n=setTimeout(function(){o=!0,g.Warning("Timeout: Unable to resolve CCPA consent after "+t+"ms"),i(void 0)},t);this.executeCommand("getUSPData",1,function(t,e){o||(clearTimeout(n),e?(g.Debug("Consent retrieved in "+r.elapsed()+"ms"),s.processResponseData(t,i)):(g.Warning("Error retrieving CCPA consent data from CMP"),i(void 0)))})},s.processResponseData=function(t,e){t?e(t):(g.Warning("Unable to read CCPA consent data from CMP"),e(void 0))},s.prototype.executeCommand=function(t,e,i){var n=this;if(!this.hasCallerFunctionInWindow()){g.Debug("No CMP defined on current frame");var s=this.getCMPFrame();this.currentWindow.__uspapi=function(t,e,i){if(!s)return g.Warning("CMP not found"),void i({msg:"CMP not found"},!1);var r=Math.random().toString(10),o={__uspapiCall:{command:t,parameter:e,callId:r}};n.uspapiCallbacks[r]=i,s.postMessage(o,"*")},this.currentWindow.addEventListener("message",function(t){var e="string"==typeof t.data?p(t.data):t.data;if(e&&e.__uspapiReturn&&e.__uspapiReturn.callId&&e.__uspapiReturn.returnValue){var i=e.__uspapiReturn;n.uspapiCallbacks&&n.uspapiCallbacks[i.callId]&&(n.uspapiCallbacks[i.callId](i.returnValue,i.success),delete n.uspapiCallbacks[i.callId])}},!1)}this.currentWindow.__uspapi(t,e,i)},s.prototype.hasUserOptOut=function(t){return!(!t||!t.uspString||"1YNY"===t.uspString.toUpperCase()||"1YNN"===t.uspString.toUpperCase()||"1---"===t.uspString)},s}(),V=function(){function s(t,e,i,r){void 0===r&&(r=!0),this.url=t,this.data=e,this.contentType=i,this.withCredentials=r}return s.prototype.send=function(t,e,i,r){var o=void 0!==this.data?"POST":"GET",n=this.getXMLHttpRequest(o,t,e,i,r);if(void 0!==n)n.send(this.data);else{var s=this.getXDomainRequest(o,t,e,i,r);void 0!==s&&s.send(this.data)}},s.prototype.getXMLHttpRequest=function(t,e,i,r,o){var n=new XMLHttpRequest;if("withCredentials"in n)return n.open(t,this.url,!0),n.timeout=o||s.LOCAL_PASSBACK_TIMEOUT,this.contentType?n.setRequestHeader("Content-type",this.contentType):"POST"===t&&n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.withCredentials=this.withCredentials,n.onload=function(){4===n.readyState&&200===n.status?e(n.responseText):i(n.readyState,n.status)},n.onerror=function(){i(void 0,void 0)},r&&(n.ontimeout=r),n},s.prototype.getXDomainRequest=function(t,e,i,r,o){if("undefined"!=typeof XDomainRequest){var n=new XDomainRequest;return n.timeout=o||s.LOCAL_PASSBACK_TIMEOUT,n.open(t,this.url),n.onload=function(){void 0!==n.responseText?e(n.responseText):i(void 0,void 0)},n.onerror&&(n.onerror=function(){i(void 0,void 0)}),n.ontimeout&&r&&(n.ontimeout=r),n}},s.LOCAL_PASSBACK_TIMEOUT=3e4,s}(),X=(q=function(t,e){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}q(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),j=function(h){function f(t,e,i,r,o,n,s,a,d,c,u,l){var p=h.call(this,f.NAME)||this;return p.profileId=t,p.urlBuilder=e,p.slots=i,p.metricBuilder=new T,p.metricsManager=l||new A(t),p.callbackSuccess=r,p.callbackError=o,p.callbackTimeout=n,p.timeout=s,p.networkId=a,p.integrationMode=d,p.adapterVersion=c,p.viewportComputer=u,p}return X(f,h),f.prototype.setGDPRConsent=function(t){this.gdprConsent=t},f.prototype.setCCPAIabConsent=function(t){this.ccpaIabConsent=t},f.prototype.getMetricBuilder=function(){return this.metricBuilder},f.prototype.eval=function(t){this.evalWithTimeout(t,void 0)},f.prototype.evalWithTimeout=function(t,e){var r=this,i=f.getCriteoAdapterBidRequest(),o=f.getRequestAuctionStart(i),n=e||W(i&&i.timeout),s=new L(this.metricBuilder,o,n),a=new B(this.slots,t.context,this.metricsManager,this.urlBuilder,this.profileId,this.integrationMode,this.networkId,this.adapterVersion,{ccpaIabConsent:this.ccpaIabConsent,gdprConsent:this.gdprConsent},void 0,this.viewportComputer);if(a.isValid()&&"undefined"!=typeof JSON){var d=a.getRequest(),c=JSON.stringify(d),u=a.getUrl(),l=new V(u,c,"application/x-www-form-urlencoded");s.sendRequest(u),l.send(function(t){s.requestReceived();var e=p(t)||{},i=x(e);void 0!==r.callbackSuccess&&r.callbackSuccess(JSON.stringify(e),i),r.metricsManager.storeMetric(s.finish(e.sid,i.slots))},function(t,e){s.requestReceived(),void 0!==r.callbackError&&r.callbackError(t,e),r.metricsManager.storeMetric(s.finish())},function(){s.requestReceived(!0),void 0!==r.callbackTimeout&&r.callbackTimeout(),r.metricsManager.storeMetric(s.finish())},this.timeout)}else this.callbackError(void 0,void 0)},f.getCriteoAdapterBidRequest=function(){try{return window.pbjs._bidsRequested.find(function(t){return"criteo"===t.bidderCode})}catch(t){return}},f.getRequestAuctionStart=function(t){return t&&t.auctionStart},f.NAME="directbidding",f}(G),Y=(K=function(t,e){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}K(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),J=function(v){function m(t,e,i,r,o,n,s,a,d,c,u,l,p,h){var f=v.call(this,m.NAME)||this,g=Math.max(10*(s||3e3),3e3);return f.cache=new E(window.criteo_pubtag.context,i,a),f.directBiddingEvent=new j(t,e,f.cache.filterNoBidSlots(i),function(t,e){return f.onSuccess(t,e)},function(t,e){return f.onError(t,e)},function(){return f.onHttpTimeout()},g,a,d,c,u,l),f.slots=i,f.callbackSuccess=r,f.callbackError=o,f.callbackTimeout=n,f.timeout=s,f.hasTimeouted=!1,f.hasResponded=!1,f.gdprPrivacyProvider=p||new y(window),f.ccpaPrivacyProvider=h||new z(window),f}return Y(m,v),m.prototype.eval=function(e){var i=this,t=this.gdprPrivacyProvider.readyToRetrieve(),r=this.ccpaPrivacyProvider.readyToRetrieve();if(t||r){var o,n,s=[],a=0;t&&(s.push(y),a=Math.max(a,parseInt("10000",10))),r&&(s.push(z),a=Math.max(a,parseInt("50",10))),t&&this.gdprPrivacyProvider.retrieveGDPRConsent(function(t){s.splice(s.indexOf("GDPR"),1),0===s.length?i.evalWithCmp(e,t,n):o=t},a),r&&this.ccpaPrivacyProvider.retrieveCCPAConsent(function(t){s.splice(s.indexOf("CCPA"),1),0===s.length?i.evalWithCmp(e,o,t):n=t},a)}else this.evalWithCmp(e,void 0,void 0)},m.prototype.evalWithCmp=function(t,e,i){var r=this;if(this.cache.silentModeEnabled())return g.Debug("Request ignored because the global silent mode is enabled"),void this.callbackSuccess("",void 0);setTimeout(function(){return r.onTimeout()},this.timeout||3e3),this.directBiddingEvent.setGDPRConsent(e),this.directBiddingEvent.setCCPAIabConsent(i),this.directBiddingEvent.evalWithTimeout(t,this.timeout)},m.prototype.onSuccess=function(t,e){if(this.hasResponded=!0,void 0!==e){var i=p(t);this.cache.handleResponse(this.slots,i,e,this.hasTimeouted)}this.hasTimeouted||this.callbackSuccess(t,e),this.cache.clearExpiredItems()},m.prototype.onError=function(t,e){this.hasResponded=!0,this.hasTimeouted||this.callbackError(t,e),this.cache.clearExpiredItems()},m.prototype.onHttpTimeout=function(){this.hasResponded=!0,this.hasTimeouted||this.callbackTimeout(),this.cache.clearExpiredItems()},m.prototype.onTimeout=function(){if(!this.hasResponded){this.hasTimeouted=!0;var t=this.cache.getCachedBids(this.slots);0===t.length?this.callbackTimeout():(g.Debug("Cached bids returned because of timeout: ['"+t.map(function(t){return t.impid}).join("', '")+"']"),this.directBiddingEvent.getMetricBuilder().withCachedBidsReturned(t),this.callbackSuccess(JSON.stringify({slots:t}),void 0))}},m.prototype.getMetricBuilder=function(){return this.directBiddingEvent.getMetricBuilder()},m.prototype.getBidCache=function(){return this.cache},m.NAME="directbidding",m}(G),Z={prebid:"criteo_fast_bid",standalone:"criteo_fast_bid_standalone"};var Q,$,tt=function(){function t(){}return t.LoadPolyfills=function(){t.DefineIsArray(),t.DefineIndexOf(),t.DefineFilter()},t.DefineIsArray=function(){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)})},t.DefineIndexOf=function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){if(void 0===e&&(e=0),void 0===this)throw new TypeError("'this' is null or not defined");var i=this.length;if(0===i)return-1;if(i<=e)return-1;for(var r=Math.max(0<=e?e:i-Math.abs(e),0);r<i;){if(r in this&&this[r]===t)return r;r++}return-1})},t.DefineFilter=function(){Array.prototype.filter||(Array.prototype.filter=function(t){if(void 0===this||void 0===this)throw new TypeError;var e=this.length;if("function"!=typeof t)throw new TypeError;for(var i=[],r=2<=arguments.length?arguments[1]:void 0,o=0;o<e;o++)if(o in this){var n=this[o];t.call(r,n,o,this)&&i.push(n)}return i})},t}(),et=function(){function h(){}return h.SetCookie=function(t,e,i,r,o){void 0===o&&(o=!1);var n=r||document,s=n.location.hostname,a=new Date;a.setTime(a.getTime()+60*i*60*1e3);var d="expires="+a.toUTCString();if(!o)return h.setCookieString(t,e,d,void 0,n),s;for(var c=s.split("."),u=0;u<c.length;++u){var l=c.slice(c.length-u-1,c.length).join(".");h.setCookieString(t,e,d,l,n);var p=h.GetCookie(t,r);if(p&&p===e)return l}return s},h.DeleteCookie=function(t,e,i){void 0===i&&(i=!1),h.SetCookie(t,"",0,e,i)},h.GetCookie=function(t,e){for(var i=0,r=(e||document).cookie.split(";");i<r.length;i++){var o=r[i],n=o.substr(0,o.indexOf("=")).replace(/^\s+|\s+$/g,""),s=o.substr(o.indexOf("=")+1);if(n===t)return decodeURIComponent(s)}},h.setCookieString=function(t,e,i,r,o){var n=t+"="+encodeURIComponent(e)+";"+i+";";r&&""!==r&&(n+="domain=."+r+";"),o.cookie=n+"path=/"},h}();function it(e,i){try{return decodeURIComponent(e)}catch(t){return void 0!==i?i:e}}($=Q||(Q={}))[$.None=0]="None",$[$.Cookie=1]="Cookie",$[$.LocalStorage=2]="LocalStorage";var rt,ot,nt=function(){function r(t,e,i){this.isDebug=e,this.topWin=t,this.topDoc=t.document,this.localStorageHelper=new n(this.topWin),this.localStorageEnabled=this.localStorageHelper.checkLocalStorage(),this.canWriteCookies=this.checkCookiesAreWriteable(),this.topUrl=i}return r.isSafariBrowser=function(){return null!==navigator.userAgent.match(r.SAFARI_CHECK_REGEX)},r.isAndroidBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("android")},r.isFirefoxBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("firefox")},r.isEdgeChromiumBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("edg/")},r.isEdgeLegacyBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("edge/")},r.prototype.synchronizeCriteoUid=function(t){var e=this;if((t||r.isSafariBrowser()||r.isAndroidBrowser()||r.isFirefoxBrowser()||r.isEdgeChromiumBrowser()||r.isEdgeLegacyBrowser())&&this.topWin.addEventListener)if("complete"===this.topDoc.readyState)this.appendGumIframeIfDoesNotExist();else{var i=function(){e.topDoc.removeEventListener("DOMContentLoaded",i),e.topWin.removeEventListener("load",i),e.appendGumIframeIfDoesNotExist()};this.topWin.addEventListener("load",i,!1),this.topDoc.addEventListener("DOMContentLoaded",i,!1)}},r.prototype.appendGumIframeIfDoesNotExist=function(){var n=this,t=this.createGumIframe();this.topDoc.getElementById(r.SYNCFRAME_ID)||(this.topWin.addEventListener("message",function(t){var e=t.data;if(e&&e.isCriteoMessage)if(t.stopImmediatePropagation(),e.optout)n.setClientSideOptOut(),n.deleteClientSideUid(),n.deleteClientSideIdfs(),n.deleteClientSideSecureId(),n.deleteBundle();else{if(e.uid&&n.setClientSideUid(e.uid),e.idfs&&n.setClientSideIdfs(e.idfs),e.callbacks)for(var i=0,r="string"==typeof e.callbacks?[e.callbacks]:e.callbacks;i<r.length;i++){var o=r[i];(new Image).src=o}else e.bundle&&n.setBundle(e.bundle);e.removeSid?n.deleteClientSideSecureId():e.sid&&n.setClientSideSecureId(e.sid)}},!0),this.topDoc.body.appendChild(t))},r.prototype.getClientSideUid=function(){return this.getFromAllStorages(r.GUID_COOKIE_NAME)},r.prototype.setClientSideUid=function(t){this.writeOnAllStorages(r.GUID_COOKIE_NAME,t,r.GUID_RETENTION_TIME_HOUR)},r.prototype.deleteClientSideUid=function(){this.deleteFromAllStorage(r.GUID_COOKIE_NAME)},r.prototype.getBundle=function(){return this.getFromAllStorages(r.BUNDLE_COOKIE_NAME)},r.prototype.setBundle=function(t){this.writeOnAllStorages(r.BUNDLE_COOKIE_NAME,t,r.GUID_RETENTION_TIME_HOUR)},r.prototype.deleteBundle=function(){this.deleteFromAllStorage(r.BUNDLE_COOKIE_NAME)},r.prototype.getClientSideOptOut=function(){var t=this.getFromAllStorages(r.OPTOUT_COOKIE_NAME);return{value:"1"===t.value,origin:t.origin}},r.prototype.setClientSideOptOut=function(){this.writeOnAllStorages(r.OPTOUT_COOKIE_NAME,"1",r.OPTOUT_RETENTION_TIME_HOUR)},r.prototype.deleteClientSideIdfs=function(){this.deleteFromAllStorage(r.IDFS_COOKIE_NAME)},r.prototype.getClientSideIdfs=function(){return this.getFromAllStorages(r.IDFS_COOKIE_NAME)},r.prototype.setClientSideIdfs=function(t){this.writeOnAllStorages(r.IDFS_COOKIE_NAME,t,r.GUID_RETENTION_TIME_HOUR)},r.prototype.getClientSideSecureId=function(){return this.getFromAllStorages(r.SECURE_ID_COOKIE_NAME)},r.prototype.setClientSideSecureId=function(t){this.writeOnAllStorages(r.SECURE_ID_COOKIE_NAME,t,r.GUID_RETENTION_TIME_HOUR)},r.prototype.deleteClientSideSecureId=function(){this.deleteFromAllStorage(r.SECURE_ID_COOKIE_NAME)},r.prototype.getClientSideLocalWebId=function(){return this.getFromAllStorages(r.LOCAL_WEB_ID_COOKIE_NAME)},r.prototype.checkCookiesAreWriteable=function(){var t="cto_writeable";et.SetCookie(t,"1",1,this.topDoc,!0);var e="1"===et.GetCookie(t,this.topDoc);return et.DeleteCookie(t,this.topDoc,!0),e},r.prototype.createGumIframe=function(){var t=this.topDoc.createElement("iframe"),e=this.buildSyncframeSrc();return t.src=e,t.id=r.SYNCFRAME_ID,t.style.display="none",t},r.prototype.writeOnAllStorages=function(t,e,i){this.localStorageEnabled&&this.localStorageHelper.setItem(t,e),et.SetCookie(t,e,i,this.topDoc,!0)},r.prototype.getFromAllStorages=function(t){var e,i=et.GetCookie(t,this.topDoc);return this.localStorageEnabled&&(e=this.localStorageHelper.getItem(t)||void 0),{value:i||e,origin:(i&&Q.Cookie)|(e&&Q.LocalStorage)}},r.prototype.deleteFromAllStorage=function(t){et.DeleteCookie(t,this.topDoc,!0),this.localStorageEnabled&&this.localStorageHelper.removeItem(t)},r.prototype.getTld=function(){var t=et.SetCookie(r.TLD_TEST_COOKIE_NAME,"test",1,this.topDoc,!0);return et.DeleteCookie(r.TLD_TEST_COOKIE_NAME,this.topDoc,!0),t},r.prototype.buildSyncframeSrc=function(){var t,e,i=this.getClientSideUid(),r=this.getClientSideIdfs(),o=this.getClientSideOptOut(),n=this.getClientSideSecureId(),s=this.getClientSideLocalWebId(),a=this.getBundle(),d=this.getTld(),c=encodeURIComponent((t=this.topUrl,e=document.createElement("a"),e.href=t,{protocol:e.protocol,host:e.host,hostname:e.hostname,pathname:"/"===e.pathname[0]?e.pathname.slice(1):e.pathname,search:e.search,href:e.href}).hostname),u=this.canWriteCookies,l="https://gum.criteo.com/syncframe?topUrl="+c+(this.isDebug?"&debug=1":"");return l+="#"+JSON.stringify({optout:o,uid:i,idfs:r,sid:n,origin:"publishertag",version:79,lwid:s,tld:d,bundle:a,topUrl:c,cw:u})},r.GUID_COOKIE_NAME="cto_idcpy",r.GUID_RETENTION_TIME_HOUR=9360,r.IDFS_COOKIE_NAME="cto_idfs",r.SECURE_ID_COOKIE_NAME="cto_sid",r.LOCAL_WEB_ID_COOKIE_NAME="cto_lwid",r.BUNDLE_COOKIE_NAME="cto_bundle",r.OPTOUT_COOKIE_NAME="cto_optout",r.OPTOUT_RETENTION_TIME_HOUR=43200,r.TLD_TEST_COOKIE_NAME="cto_pub_test_tld",r.SYNCFRAME_ID="criteo-syncframe",r.SAFARI_CHECK_REGEX=/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[^ ]+ \(KHTML, like Gecko\) Version\/([^ ]+)( Mobile\/[^ ]+)? Safari\/[^ ]+$/i,r}(),st=function(){function t(){}return t.getHighestAccessibleWindow=function(t){var e=t,i=!1;try{for(;e.parent.document!==e.document;){if(!e.parent.document){i=!0;break}e=e.parent}}catch(t){i=!0}return{topFrame:e,err:i}},t.getHighestAccessibleUrl=function(t){var e=t.topFrame;if(!t.err)return e.location.href;try{var i=e.top.location.href;if(i)return i}catch(t){}try{var r=e.location.ancestorOrigins;if(r)return r[r.length-1]}catch(t){}return e.document.referrer},t.inIframe=function(){try{return window.self!==window.top}catch(t){return!0}},t}();(ot=rt||(rt={}))[ot.InFriendlyIframe=1]="InFriendlyIframe",ot[ot.InUnfriendlyIframe=2]="InUnfriendlyIframe",ot[ot.DirectIntegration=3]="DirectIntegration";var at=function(){function t(t,e,i,r){var o=this;this.charset=t.charset||t.characterSet||"";var n=st.getHighestAccessibleWindow(e);this.displayContext=this.getDisplayContext(n),this.highestAccessibleUrl=st.getHighestAccessibleUrl(n),this.ccpaPrivacyProvider=i||new z(e),this.cookieSynchronizerFactory=r||function(){return new nt(n.topFrame,o.debugMode,o.highestAccessibleUrl)},this.checkIfUserHasOptOutForCCPA(function(t){t||o.synchronizeCriteoUid()});var s,a=this.getQueryStringParams(this.highestAccessibleUrl);this.debugMode="1"===a.pbt_debug||!1,this.noLog="1"===a.pbt_nolog||!1,this.shouldIgnoreSilentMode=this.computeShouldIgnoreSilentMode(),this.silentModeIgnored=!1,this.debugMode&&(s=d.Debug,g.LOGLEVEL=s),this.location=e.location,this.dising=!1,this.ct0=void 0,this.wpdt0=void 0,this.isAdBlocked=void 0,this.rtaVarNames=[]}return t.prototype.getContextFlags=function(){var t="";return t+=this.debugMode?"&debug=1":"",t+=this.noLog?"&nolog=1":""},t.prototype.getDisplayContext=function(t){return st.inIframe()?t.err?rt.InUnfriendlyIframe:rt.InFriendlyIframe:rt.DirectIntegration},t.prototype.getQueryStringParams=function(t){var e={},i=t.split("?");if(1<i.length)for(var r=0,o=i[1].split("&");r<o.length;r++){var n=o[r].split("=");e[it(n[0])]=it(n[1])}return e},t.prototype.synchronizeCriteoUid=function(){var t=this.cookieSynchronizerFactory();this.ctoIdOnPublisherDomain=t.getClientSideUid().value,this.isOptOut=t.getClientSideOptOut().value,this.idfs=t.getClientSideIdfs().value,this.secureId=t.getClientSideSecureId().value,this.bundle=t.getBundle().value,t.synchronizeCriteoUid()},t.prototype.getIdfs=function(){return[this.idfs,this.secureId].join(":")},t.prototype.setIdfs=function(t){var e=t.split(":");e[0]&&(this.idfs=e[0]),e[1]&&(this.secureId=e[1])},t.prototype.computeShouldIgnoreSilentMode=function(){return Math.floor(100*Math.random())<5},t.prototype.setSilentModeIgnored=function(){this.silentModeIgnored=!0},t.prototype.checkIfUserHasOptOutForCCPA=function(e){var i=this;this.ccpaPrivacyProvider.readyToRetrieve()?this.ccpaPrivacyProvider.retrieveCCPAConsent(function(t){e(i.ccpaPrivacyProvider.hasUserOptOut(t))}):e(!1)},t}(),dt=function(){this.bids={},this.lineItemRanges=[],this.impIds=[]};var ct,ut,lt,pt,ht,ft=function(){function t(){this.standaloneBidder=new dt,this.events=[],this.context=new at(document,window),g.Debug("Publisher Tag loaded")}return t.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,r=t;i<r.length;i++){var o=r[i];this.events.push(o)}this.evalEvents()},t.prototype.evalEvents=function(){for(var t=0;t<this.events.length;){var e=this.events[t];if("conditionalEvent"!==e.name||e.canEval()){var i=this.events.splice(t,1);try{i[0].eval(this)}catch(t){g.Error("An exception occurred processing an event: "+t.toString())}}else t++}},t.VERSION=79,t}();function gt(t){var e=t,i=function(){try{return e.apply(this,arguments)}catch(t){g.Error("Exception caught: "+t.toString())}};for(var r in i.prototype=e.prototype,e)e.hasOwnProperty(r)&&(i[r]=e[r]);return i}window.criteo_pubtag||(tt.LoadPolyfills(),window.criteo_pubtag=new ft),window.Criteo=function t(e){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];"function"==typeof r?e[i]=gt(r):"object"==typeof r&&(e[i]=t(r))}return e}({PubTag:{Adapters:{Prebid:H},DirectBidding:{DirectBiddingEvent:J,DirectBiddingSlot:k,DirectBiddingUrlBuilder:D,Size:f}},events:window.Criteo?window.Criteo.events:[],passbackEvents:window.Criteo?window.Criteo.passbackEvents:[],usePrebidEvents:!window.Criteo||window.Criteo.usePrebidEvents}),!1!==window.Criteo.usePrebidEvents&&(window.Criteo.events=(ct=window.Criteo.events,ut={push:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(void 0!==t)for(var i=0,r=t;i<r.length;i++){var o=r[i];"function"==typeof o&&gt(o)()}}},ct&&Array.isArray(ct)&&ut.push.apply(ut,ct),ut)),lt="prebid",pt=new n,ht=Z[lt],pt.checkLocalStorage()&&null===pt.getItem(ht,864e5)&&new V("//static.criteo.net/js/ld/publishertag."+lt+".js",void 0,void 0,!1).send(function(t){pt.setItem(ht,t,864e5)},function(t,e){g.Error("Could not update FastBid"+(e?" ("+e+")":""))})}();


originKey: moc.secivresnzad.reyalp.:https:443
scope: moc.secivresnzad.reyalp.:https:443
key: 1149108:session-data
value:
  v2_aa2f1304c44cefd808492929ee4f5703_2e0a9138-4a4b-4be7-8544-c9a157f175b2-tuct46aa0e0_1578320959_1578320959_CAQQtJFGGKSqitr3LSABKAQwHzjb1AdAgIgQSNewQlD___________8BWABgAA


originKey: rb.moc.setropserepus.gm.www.:https:443
scope: rb.moc.setropserepus.gm.www.:https:443
key: diariosassociados-superesportes-home:session-data
value:
  v2_1560ad7d75a7a7c3115b866ad915c679_e36d1e37-e13b-473f-ad33-7e9abc646bb2-tuct4a5ea86_1578320953_1578321054_CIi3jgYQu8VIGNz7idr3LSABKAQwHzjb1AdAgIgQSNewQlD___________8BWABgAA


originKey: rb.moc.setropserepus.gm.www.:https:443
scope: rb.moc.setropserepus.gm.www.:https:443
key: taboola global:lspb
value:
  CwsIQRClokEMCwhCEKWiQQwLCIkBEKWiQQwLCEwQpaJBDAsIjgEQpaJBDAsIkQEQpaJBDAsIlQEQpaJBDAsIHBClokEMCwgdEKWiQQwLCB4QpaJBDAsIHxClokEMCwggEKWiQQwLCCEQpaJBDAsIIxCF8UEMCwgkEKWiQQwLCGQQpaJBDAsIJxClokEMCwgtEKWiQQwLCDEQpaJBDAsIOxClokEMCwg9EMbTQAwLCD8QpaJBDAwTFA


originKey: moc.secivresnzad.reyalp.:https:443
scope: moc.secivresnzad.reyalp.:https:443
key: eng_mt
value:
  {"ver":27,"sessionStartTime":1578320958766,"scrollDepth":95,"sessionDepth":["https://player.daznservices.com/player/player.html#/31004177c463c89d3c5cf46247.125y02xwnscmz1gvb6rukqvspk$location=https%253A%252F%252Fwww.mg.superesportes.com.br%252F&visibility=hidden&secure=true&embedStyle=s"],"timeOnSite":97690,"numOfTimesMetricsSent":6}


originKey: moc.obolg.etropseobolg.:http:80
scope: moc.obolg.etropseobolg.:http:80
key: null
value:
  {"value":{"status":"unauthorized","token":"WAlKihfkV_a9IgleFsgSSyg_LK8kZb4QYSqwnpkJvRU=","code":"...-ahKXzTzQKGpO_9yawcWhG4VMN0qSb440_Ry5NbSQ68=","id":"12306359706275760128","provider":"anonymous"},"expireAt":1579124262228}


originKey: moc.obolg.etropseobolg.:http:80
scope: moc.obolg.etropseobolg.:http:80
key: nvgpersona13574
value:
  {"gender":"1","age":"3","education":"2","marital":"1","income":"2","connection":"1607","city":"1000101","region":"10","country":"SV","everyone":["47","41"],"custom":["103666","216680"],"brand":[""],"interest":["104","61","32","64","3","8","9","29","30","1","2","24","147","27","1374","122","2446","95","96","101","36","17","34","19","13","196","15","37","42","62","10","182"],"product":[""],"career":[""],"everybuyer":["1254","1234","1241","1231","1248","1249","1247","1232","1251","1233"],"pgender":"2333","page":"2337","peducation":"2341","pmarital":"2342","pincome":"2345"}


originKey: moc.obolg.etropseobolg.:http:80
scope: moc.obolg.etropseobolg.:http:80
key: nav13574
value:
  94e749943886af4b603f49fbc09_16_12:4:1:11:10:19:7:14:20:9:3:8:23:5:17:21:22:2_103666-216680:1:1:47-41:SV:2333:1607:104-61-32-64-3-8-9-29-30-1-2-24-147-27-1374-122-2446-95-96-101-36-17-34-19-13-196-15-37-42-62-10-182:2337:10:2:1000101:2345:2:1254-1234-1241-1231-1248-1249-1247-1232-1251-1233:2341:2342:3


originKey: moc.seloportem.www.:https:443
scope: moc.seloportem.www.:https:443
key: OB-lastPageViewInfo
value:
  {"url":"https%3A%2F%2Fwww.metropoles.com%2Fesportes%2Fbasquete%2Fimagem-forte-joelho-de-atleta-do-brasilia-afunda-em-lesao-no-nbb","xx":1579719551400}


originKey: moc.seloportem.www.:https:443
scope: moc.seloportem.www.:https:443
key: criteo_fast_bid
value:
  // Hash: AlN+rEwBstGrqPu5lVrnNcLy/nOfbiC1t4aiUXWH9h19xZfyfIBhiNRs51vx0qOsAcAXVWtY8Z7JPXD5yHEXcbXeOUYJi3RPjxrWca7fT5CReQjVACC5PxhIeNiEwpagSMJE48cWuQpHDoPVjFr0YaVWVu5c+uRlrWsFqMU+/AI=
  !function(){"use strict";var d,t;(t=d=d||{})[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Debug=2]="Debug";var n=["color: #fff;","background: #ff8f1c;","display: inline-block;","padding: 1px 4px;","border-radius: 3px;"].join(" "),g=(s.Log=function(t,e){if(!(s.LOGLEVEL<t)){var i=d[t].toUpperCase(),r=window.navigator.userAgent,o=0<r.indexOf("MSIE ")||0<r.indexOf("Trident/");window.console&&(o?console.log("[PubTag] "+i+": "+e):console.log("%cPubTag",n,i+": "+e))}},s.Debug=function(t){s.Log(d.Debug,t)},s.Warning=function(t){s.Log(d.Warning,t)},s.Error=function(t){s.Log(d.Error,t)},s.LOGLEVEL=d.Error,s);function s(){}var a=(i.CreateRunning=function(){var t=new i;return t.start(),t},i.CreateWithStartTime=function(t){var e=new i(!1);return e.startTime=t,e},i.TimeSincePageLoad=function(){if(window.performance){if(window.performance.now)return window.performance.now();if(window.performance.timing&&window.performance.timing.navigationStart)return(new Date).getTime()-performance.timing.navigationStart}return 0},i.prototype.start=function(){this.startTime=this.now()},i.prototype.elapsed=function(){return this.now()-this.startTime},i);function i(t){void 0===t&&(t=!0),t&&window.performance&&window.performance.now?this.now=window.performance.now.bind(window.performance):Date.now?this.now=Date.now:this.now=function(){return(new Date).getTime()}}function u(t){try{return JSON.parse(t)}catch(t){return}}var v=(c.prototype.getCMPFrame=function(){for(var t,e=this.currentWindow,i=0;i<10;++i){try{e.frames.__cmpLocator&&(t=e)}catch(t){}if(e===this.currentWindow.top)break;e=e.parent}return t},c.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__cmp},c.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},c.prototype.retrieveGDPRConsent=function(i,t){void 0===t&&(t=parseInt("10000",10));var r=a.CreateRunning(),o=!1,n=setTimeout(function(){o=!0,g.Warning("Timeout: Unable to resolve GDPR consent after "+t+"ms"),i(void 0)},t);this.executeCommand("getConsentData",null,function(t,e){o||(clearTimeout(n),e?(g.Debug("Consent retrieved in "+r.elapsed()+"ms"),c.processResponseData(t,i)):(g.Warning("Error retrieving GDPR consent data from CMP"),i(void 0)))})},c.prototype.retrieveGDPRConsentForPassback=function(i,t){void 0===t&&(t=parseInt("10000",10));var r=a.CreateRunning(),o=!1,n=setTimeout(function(){o=!0,g.Warning("Timeout: Unable to resolve GDPR consent after "+t+"ms"),i(void 0)},t);this.executeCommand("getVendorConsents",[91],function(t,e){o||(clearTimeout(n),e?(g.Debug("Consent (getVendorConsents) retrieved in "+r.elapsed()+"ms"),c.processResponseData(t,i)):(g.Warning("Error while calling getVendorConsents from CMP"),i(void 0)))})},c.processResponseData=function(t,e){if(t){var i={};void 0!==t.consentData&&(i.consentData=t.consentData),void 0!==t.gdprApplies&&(i.gdprApplies=!!t.gdprApplies),t.vendorConsents&&void 0!==t.vendorConsents[91..toString()]&&(i.consentGiven=!!t.vendorConsents[91..toString()]),e(i)}else g.Warning("Unable to read GDPR consent data from CMP"),e(void 0)},c.prototype.executeCommand=function(t,e,i){var n=this;if(!this.hasCallerFunctionInFrame()){g.Debug("No CMP defined on current frame");var s=this.getCMPFrame();this.currentWindow.__cmp=function(t,e,i){if(!s)return g.Warning("CMP not found"),void i({msg:"CMP not found"},!1);var r=Math.random().toString(10),o={__cmpCall:{command:t,parameter:e,callId:r}};n.cmpCallbacks[r]=i,s.postMessage(o,"*")},this.currentWindow.addEventListener("message",function(t){var e="string"==typeof t.data?u(t.data):t.data;if(e&&e.__cmpReturn&&e.__cmpReturn.callId&&e.__cmpReturn.returnValue){var i=e.__cmpReturn;n.cmpCallbacks&&n.cmpCallbacks[i.callId]&&(n.cmpCallbacks[i.callId](i.returnValue,i.success),delete n.cmpCallbacks[i.callId])}},!1)}this.currentWindow.__cmp(t,e,i)},c);function c(t){this.cmpCallbacks={},this.currentWindow=t}var o=(e.prototype.checkLocalStorage=function(){if(!this.localStorage)return!1;var t=this.CHECK_STORAGE_KEY;try{return this.localStorage.setItem(t,t),this.localStorage.removeItem(t),!0}catch(t){return!1}},e.prototype.removeItem=function(t){this.localStorage.removeItem(t),this.localStorage.removeItem(t+this.EXPIRE_SUFFIX)},e.prototype.getItem=function(t,e){var i=(new Date).getTime(),r=this.localStorage.getItem(t+this.EXPIRE_SUFFIX),o=r?parseInt(r,10):-1;return-1!==o&&o<i||e&&(-1===o||e<o-i)?(this.removeItem(t),null):this.localStorage.getItem(t)},e.prototype.setItem=function(t,e,i){if(this.localStorage.setItem(t,e),i){var r=(new Date).getTime()+i;this.localStorage.setItem(t+this.EXPIRE_SUFFIX,r.toString())}},e.prototype.getAllItemsByPrefix=function(t){var e=[];for(var i in localStorage)0===i.indexOf(t)&&e.push(i);return e},e);function e(t){this.EXPIRE_SUFFIX="_expires",this.CHECK_STORAGE_KEY="criteo_localstorage_check",this.localStorage=function(t){try{return t.localStorage}catch(t){return}}(t||window)}var l=(r.prototype.silentModeEnabled=function(){var t=r.SILENT_MODE_KEY;return this.localStorageEnabled&&null!==this.localStorageHelper.getItem(t)},r.prototype.enableSilentMode=function(t){if(this.localStorageEnabled){var e=r.SILENT_MODE_KEY;this.localStorageHelper.setItem(e,"1",t)}},r.SILENT_MODE_KEY="criteo_silent_mode",r);function r(){this.localStorageHelper=new o,this.localStorageEnabled=this.localStorageHelper.checkLocalStorage()}function p(){return(new Date).getTime()}var h=(f.prototype.get=function(t){var e=localStorage.getItem(t);if(e){var i=e.split("|");if(!(i.length<2||parseInt(i[1],10)<p()))return i[0]}},f.prototype.set=function(t,e){var i=p()+e;localStorage.setItem(t,this.id+"|"+i)},f.prototype.acquire=function(t,e,i){var r=this;void 0===i&&(i=100),i<=0||this.tryAcquire(e)?(t(),this.release()):setTimeout(function(){r.acquire(t,e,i-10)},10)},f.prototype.tryAcquire=function(t){localStorage.setItem(this.x,this.id);var e=this.get(this.y);return!(e&&e!==this.id||(this.set(this.y,t),localStorage.getItem(this.x)!==this.id||this.get(this.y)!==this.id))},f.prototype.release=function(){localStorage.removeItem(this.x),localStorage.removeItem(this.y)},f);function f(t){this.x=t+"_lock_A",this.y=t+"_lock_B",this.id=Math.floor(1e9*Math.random()).toString()}var m=(y.prototype.toString=function(){return this.width+"x"+this.height},y);function y(t,e){this.width=t,this.height=e}var I=(C.prototype.toString=function(){return"ImpId"+this.impressionId},C);function C(t){this.impressionId=t}var b,S,E=((b=function(t,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(_,S=I),_.prototype.toString=function(){return S.prototype.toString.call(this)+"_Size"+this.size+"_NetworkId"+this.networkId},_);function _(t,e,i){var r=S.call(this,t)||this;return r.size=e,r.networkId=i,r}var w,T,M=((w=function(t,e){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(O,T=I),O.prototype.toString=function(){return T.prototype.toString.call(this)+"_ZoneId"+this.zoneId},O);function O(t,e){var i=T.call(this,t)||this;return i.zoneId=e,i}var R=(A.prototype.createKeysFromSlotRequest=function(t){if(this.useZoneIdIntegration)return[new M(t.impId,t.zoneId)];for(var e=[],i=0,r=t.sizes;i<r.length;i++){var o=r[i];e.push(new E(t.impId,o,this.networkId))}return e},A.prototype.createKeyFromSlotResponse=function(t){return this.useZoneIdIntegration?new M(t.impid,t.zoneid):new E(t.impid,new m(t.width,t.height),this.networkId)},A.prototype.createKeyFromBid=function(t){return this.useZoneIdIntegration?new M(t.impressionId,t.zoneId):new E(t.impressionId,new m(t.width,t.height),this.networkId)},A);function A(t,e){this.useZoneIdIntegration=t,this.networkId=e}var D=(B.useZoneIdIntegration=function(t,e){return void 0===e||0===t.filter(function(t){return void 0!==t.sizes&&0<t.sizes.length}).length},B.prototype.get=function(t){var e=this.localStorageHelper.getItem(t),i=e&&u(e);return i&&"object"==typeof i&&"bids"in i?(i.bids=i.bids.filter(function(t){return t.expiration>p()}),i):{bids:[]}},B.prototype.getBySlotKey=function(t){return this.get(B.BID_KEY_PREFIX+t.toString())},B.prototype.set=function(t,e){0<e.bids.length||e.no_bid&&e.no_bid>p()?this.localStorageHelper.setItem(t,JSON.stringify(e)):this.localStorageHelper.removeItem(t)},B.prototype.setBySlotKey=function(t,e){this.set(B.BID_KEY_PREFIX+t.toString(),e)},B.prototype.filterNoBidSlots=function(t){for(var e=[],i=0,r=t;i<r.length;i++){for(var o=r[i],n=[],s=0,a=this.slotKeyFactory.createKeysFromSlotRequest(o);s<a.length;s++){var d=a[s];this.getBid(d,0)!==B.NO_BID&&(d instanceof E?n.push(d.size):e.push(o))}0<n.length&&(o.sizes=n,e.push(o))}return e},B.prototype.getRequestCachedBids=function(t,e){void 0===e&&(e=5e3);for(var i=[],r=0,o=t;r<o.length;r++)for(var n=o[r],s=0,a=this.slotKeyFactory.createKeysFromSlotRequest(n);s<a.length;s++){var d=a[s],c=this.getBid(d,e);void 0!==c&&c!==B.NO_BID&&i.push(c)}return i},B.prototype.getBid=function(t,e){if(void 0===e&&(e=5e3),this.localStorageEnabled){var i=this.getBySlotKey(t);if(i.no_bid&&i.no_bid>p())return B.NO_BID;if(0<e)for(var r=0,o=i.bids;r<o.length;r++){var n=o[r];if(new h(B.BID_KEY_PREFIX+n.bid.slotid).tryAcquire(e))return n.bid}}},B.prototype.storeRequestNoBid=function(t,e){for(var i=0,r=this.slotKeyFactory.createKeysFromSlotRequest(t);i<r.length;i++){var o=r[i];this.storeNoBid(o,e)}},B.prototype.storeResponseBid=function(e,i){var t=this.slotKeyFactory.createKeyFromSlotResponse(e);this.modifyCache(t,function(t){t.bids.push({bid:e,expiration:p()+1e3*i})})},B.prototype.storeNoBid=function(t,e){this.modifyCache(t,function(t){t.no_bid=Math.max(t.no_bid||0,p()+1e3*e)})},B.prototype.removeBid=function(i){var t=this.slotKeyFactory.createKeyFromBid(i);this.modifyCache(t,function(t){for(var e=0;e<t.bids.length;e++)if(t.bids[e].bid.slotid===i.slotId)return void t.bids.splice(e,1)}),new h(t.toString()).release()},B.prototype.modifyCache=function(e,i){var r=this;if(this.localStorageEnabled){var o=new h(e.toString());o.acquire(function(){var t=r.getBySlotKey(e);i(t),r.setBySlotKey(e,t),o.release()},1e3)}},B.prototype.clearExpiredItems=function(){for(var t=0,e=this.localStorageHelper.getAllItemsByPrefix(B.BID_KEY_PREFIX);t<e.length;t++){var i=e[t],r=this.get(i);r&&this.set(i,r)}},B.NO_BID="nobid",B.BID_KEY_PREFIX="criteo_pt_cdb_bidcache_",B);function B(t,e){this.localStorageHelper=new o,this.localStorageEnabled=this.localStorageHelper.checkLocalStorage(),this.slotKeyFactory=new R(t,e)}var x=(P.prototype.filterNoBidSlots=function(t){var e=this.bidManager.filterNoBidSlots(t);return this.context.shouldIgnoreSilentMode?(e.length!==t.length&&this.context.setSilentModeIgnored&&this.context.setSilentModeIgnored(),t):e},P.prototype.silentModeEnabled=function(){var t=!1;return this.silentModeManager.silentModeEnabled()&&(this.context.shouldIgnoreSilentMode&&this.context.setSilentModeIgnored?this.context.setSilentModeIgnored():t=!0),t},P.prototype.getCachedBids=function(t){return this.bidManager.getRequestCachedBids(t)},P.prototype.removeBid=function(t){this.bidManager.removeBid(t)},P.prototype.handleResponse=function(t,e,i,r){var o=i.time_to_next_call;0<o&&(g.Debug("Global silent mode enabled for "+o+" seconds"),this.silentModeManager.enableSilentMode(1e3*o));var n={};if(i.slots)for(var s=0,a=i.slots;s<a.length;s++)(f=a[s]).ttl&&(n[f.imp_id]=f.ttl);if(e.slots)for(var d=0,c=e.slots;d<c.length;d++){var l=0;(f=c[d]).slotid in n&&(l=n[f.slotid],delete n[f.slotid]),r&&0<l&&(g.Debug("Post-timeout bid for slot '"+f.impid+"' cached for "+l+" seconds"),this.bidManager.storeResponseBid(f,l))}for(var p in n)if(n.hasOwnProperty(p))for(var u=0,h=t;u<h.length;u++){var f;(f=h[u]).slotId===p&&(l=n[p],g.Debug("Silent mode for slot '"+f.impId+"' enabled for "+l+" seconds"),this.bidManager.storeRequestNoBid(f,l))}},P.prototype.clearExpiredItems=function(){var t=this;setTimeout(function(){t.bidManager.clearExpiredItems()},3e3)},P);function P(t,e,i){var r=D.useZoneIdIntegration(e,i);this.bidManager=new D(r,i),this.silentModeManager=new l,this.context=t}var k=function(t,e,i,r,o,n,s,a,d,c,l,p,u,h,f){this.publisherTagVersion=t,this.slots=e,this.elapsed=i,this.isTimeout=r,this.pageLoadElapsed=o,this.adapterStartElapsed=n,this.cdbCallStartElapsed=s,this.cdbCallEndElapsed=a,this.adapterEndElapsed=d,this.setTargetingElapsed=c,this.adapterTimeout=l,this.adapterIsTimeout=p,this.timeToFirstByte=u,this.requestGroupId=h,this.sid=f},U=function(t,e,i,r,o){this.impressionId=t,this.zoneId=e,this.adUnitId=i,this.cachedBidUsed=r,this.isDsc=o},N=(F.prototype.withElapsed=function(t){return this.elapsed=Math.round(t),this},F.prototype.withIsTimeout=function(t){return this.isTimeout=t,this},F.prototype.withPageLoadElapsed=function(t){return this.pageLoadElapsed=Math.round(t),this},F.prototype.withAdapterStartElapsed=function(t){return this.adapterStartElapsed=Math.round(t),this},F.prototype.withCdbCallStartElapsed=function(t){return this.cdbCallStartElapsed=Math.round(t),this},F.prototype.withCdbCallEndElapsed=function(t){return this.cdbCallEndElapsed=Math.round(t),this},F.prototype.withSetTargetingElapsed=function(t){return this.setTargetingElapsed=Math.round(t),this},F.prototype.withAdapterEndElapsed=function(t){return this.adapterEndElapsed=Math.round(t),this},F.prototype.withAdapterTimeout=function(t){return this.adapterTimeout=t&&Math.round(t),this},F.prototype.withCachedBidsReturned=function(t){return this.cachedBidsReturned=t,this},F.prototype.withTimeToFirstByte=function(t){return this.timeToFirstByte=t&&Math.round(t),this},F.prototype.withRequestGroupId=function(t){return this.requestGroupId=t,this},F.prototype.withSid=function(t){return this.sid=t,this},F.prototype.addSlot=function(t,e,i,r){var o=0<this.cachedBidsReturned.filter(function(t){return t.impid===i&&t.zoneid===e}).length;return this.slots.push(new U(t,e,i,o,r)),this},F.prototype.build=function(){var t;return void 0!==this.adapterTimeout&&(t=this.adapterEndElapsed>this.adapterTimeout),new k(80,this.slots,this.elapsed,this.isTimeout,this.pageLoadElapsed,this.adapterStartElapsed,this.cdbCallStartElapsed,this.cdbCallEndElapsed,this.adapterEndElapsed,this.setTargetingElapsed,this.adapterTimeout,t,this.timeToFirstByte,this.requestGroupId,this.sid)},F);function F(){this.elapsed=0,this.isTimeout=!1,this.pageLoadElapsed=0,this.adapterStartElapsed=0,this.cdbCallStartElapsed=0,this.cdbCallEndElapsed=0,this.adapterEndElapsed=0,this.cachedBidsReturned=[],this.slots=[]}var L=(W.prototype.getRequest=function(){return{feedbacks:this.feedbacks}},W.prototype.getUrl=function(){return this.urlBuilder.buildCsmUrl(this.profileId,this.adapterVersion,this.wrapperVersion)},W);function W(t,e,i,r,o){this.urlBuilder=t,this.profileId=e,this.adapterVersion=r,this.wrapperVersion=o,this.feedbacks=i}var q,K,H=(G.generateCacheBuster=function(){return Math.floor(99999999999*Math.random())},G);function G(){}function z(t){switch(t.toLowerCase()){case"amp":return q.AMP;default:return q.Unspecified}}(K=q=q||{})[K.Unspecified=0]="Unspecified",K[K.AMP=1]="AMP";var V=(X.prototype.buildUrl=function(t,e,i,r,o){void 0===i&&(i=q.Unspecified);var n=X.CRITEO_BIDDER_URL+this.getHandlerPath();return n+="?ptv=80",!0===e.isAdBlocked&&(n+="&abp=1"),n=this.appendCommonParameters(n,t,r,o),n+=e.ctoIdOnPublisherDomain?"&idcpy="+e.ctoIdOnPublisherDomain:"",n+=e.idfs?"&idfs="+e.idfs:"",n+=e.secureId?"&sid="+e.secureId:"",n+=e.isOptOut?"&optout=1":"",n+=e.bundle?"&bundle="+e.bundle:"",i!==q.Unspecified&&(n+="&im="+i),n+=e.silentModeIgnored?"&smi=1":"",n+="&cb="+String(H.generateCacheBuster()),n+=e.getContextFlags()},X.prototype.buildCsmUrl=function(t,e,i){var r=X.CRITEO_BIDDER_URL+X.CRITEO_CSM_HANDLER;return r+="?ptv=80",this.appendCommonParameters(r,t,e,i)},X.prototype.appendCommonParameters=function(t,e,i,r){return t+="&profileId="+String(e),void 0!==i&&(t+="&av="+String(i)),void 0!==r&&(t+="&wv="+encodeURIComponent(r)),t},X.prototype.getHandlerPath=function(){return this.auditMode?X.CRITEO_BIDDER_AUDIT_HANDLER:X.CRITEO_BIDDER_HANDLER},X.CRITEO_BIDDER_URL="https://bidder.criteo.com/",X.CRITEO_BIDDER_HANDLER="cdb",X.CRITEO_CSM_HANDLER="csm",X.CRITEO_BIDDER_AUDIT_HANDLER="prebid/audit",X);function X(t){void 0===t&&(t=!1),this.auditMode=t}var j=(Y.prototype.getMetrics=function(t){if(this.localStorageEnabled){var e=Y.METRICS_STORAGE_KEY,i=this.localStorageHelper.getItem(e),r=i?u(i):[];return t&&this.localStorageHelper.removeItem(e),r}return[]},Y.prototype.setMetrics=function(t){if(this.localStorageEnabled){var e=Y.METRICS_STORAGE_KEY;this.localStorageHelper.setItem(e,JSON.stringify(t),36e5)}},Y.prototype.storeMetric=function(t){var e=this;if(this.localStorageEnabled){var i=this.getMetrics(!1);i.push(t),this.setMetrics(i);var r=(t&&t.adapterTimeout||2e3)+1e3;setTimeout(function(){e.sendMetrics()},r)}},Y.prototype.sendMetrics=function(){var t=this.getMetrics(!0);if(!(t.length<=0)){var e=new L(new V,this.profileId,t,this.adapterVersion,this.wrapperVersion),i=e.getUrl(),r=JSON.stringify(e.getRequest());navigator.sendBeacon&&navigator.sendBeacon(i,r)}},Y.METRICS_STORAGE_KEY="criteo_pt_cdb_metrics",Y);function Y(t,e,i,r){this.profileId=t,this.adapterVersion=e,this.wrapperVersion=i,this.localStorageHelper=r||new o,this.localStorageEnabled=this.localStorageHelper.checkLocalStorage()}var J=(Z.prototype.isValid=function(){return 0<this.slots.length},Z.prototype.getRequest=function(){for(var t=[],e=0,i=this.slots;e<i.length;e++){var r=i[e],o={slotid:r.slotId,impid:r.impId};if(void 0!==r.zoneId&&(o.zoneid=r.zoneId),void 0!==r.nativeCallback&&(o.native=!0),void 0!==r.transactionId&&(o.transactionid=r.transactionId),void 0!==r.publisherSubId&&(o.publishersubid=r.publisherSubId),void 0!==r.sizes){for(var n=[],s=0,a=r.sizes;s<a.length;s++){var d=a[s];n.push(d.width+"x"+d.height)}o.sizes=n}if(void 0!==r.video){var c={playersizes:this.parsePlayerSizes(r.video.playersize),mimes:r.video.mimes,protocols:r.video.protocols,maxduration:r.video.maxduration,api:r.video.api,skip:r.video.skip,placement:r.video.placement,playbackmethod:r.video.playbackmethod,minduration:r.video.minduration,startdelay:r.video.startdelay};o.video=c}if(void 0!==this.viewportComputer){var l=this.viewportComputer.getSlotPosition(r);void 0!==l&&(o.position={top:l.top,left:l.left})}t.push(o)}var p={ceh:this.context.ceh,uspOptout:this.context.ccpaOptout},u={publisher:{url:this.context.highestAccessibleUrl},slots:t,user:p};void 0!==this.networkId&&(u.publisher.networkid=this.networkId);var h=this.metricsManager.getMetrics(!0);if(h.length&&(u.previousBidFeedback=h),this.privacyWrapper&&(this.privacyWrapper.gdprConsent&&(u.gdprConsent=this.privacyWrapper.gdprConsent),this.privacyWrapper.ccpaIabConsent&&(p.uspIab=this.privacyWrapper.ccpaIabConsent.uspString)),void 0!==this.viewportComputer){var f=this.viewportComputer.getViewport();u.viewport={width:f.width,height:f.height,scrollTop:f.scrollTop,scrollLeft:f.scrollLeft}}return u},Z.parsePlayerSize=function(t){return t[0]+"x"+t[1]},Z.prototype.parsePlayerSizes=function(t){return Array.isArray(t[0])?t.map(function(t){return Z.parsePlayerSize(t)}):[Z.parsePlayerSize(t)]},Z.prototype.getUrl=function(){return this.urlBuilder.buildUrl(this.profileId,this.context,this.integrationMode,this.adapterVersion,this.wrapperVersion)},Z);function Z(t,e,i,r,o,n,s,a,d,c,l){this.slots=t,this.context=e,this.metricsManager=i,this.urlBuilder=r,this.profileId=o,this.integrationMode=n||q.Unspecified,this.networkId=s,this.adapterVersion=a,this.privacyWrapper=d,this.wrapperVersion=c,this.viewportComputer=l}function Q(t){var e={slots:void 0,time_to_next_call:0};return void 0!==t.exd&&(void 0!==t.exd.time_to_next_call&&(e.time_to_next_call=t.exd.time_to_next_call),e.slots=t.exd.slots,delete t.exd),e}function $(){var i=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"===t?e:3&e|8).toString(16)})}var tt=function(t,e,i,r,o,n,s,a){this.slotId=$().replace(/-/g,""),this.impId=t,this.zoneId=e,this.nativeCallback=i,this.transactionId=r,this.sizes=o,this.publisherSubId=n,this.mediaTypes=s,this.video=a},et=function(t,e,i,r,o,n,s,a,d,c){this.playersize=t,this.mimes=e,this.protocols=i,this.maxduration=r,this.api=o,this.skip=n,this.placement=s,this.playbackmethod=a,this.minduration=d,this.startdelay=c};var it,rt,ot=(nt.prototype.sendRequest=function(t){this.url=t,this.sendTime=a.CreateRunning(),this.builder.withCdbCallStartElapsed(this.timer.elapsed())},nt.prototype.requestReceived=function(t){void 0===t&&(t=!1),this.builder.withElapsed(function(t){if(window.performance&&window.performance.getEntries)for(var e=window.performance.getEntries(),i=e.length-1;0<=i;--i){var r=e[i];if(r.name===t&&r.duration)return Math.round(r.duration)}}(this.url)||this.sendTime.elapsed()),this.builder.withCdbCallEndElapsed(this.timer.elapsed()),this.builder.withIsTimeout(t)},nt.prototype.setTargeting=function(){this.hasSetTargetingBeenCalled||(this.builder.withSetTargetingElapsed(this.timer.elapsed()),this.hasSetTargetingBeenCalled=!0)},nt.prototype.finish=function(t,e){if(this.builder.withAdapterEndElapsed(this.timer.elapsed()),this.builder.withSid(t),this.builder.withRequestGroupId($()),e&&0!==e.length)for(var i=0,r=e;i<r.length;i++){var o=r[i];this.builder.addSlot(o.imp_id,o.zone_id,o.ad_unit_id,o.is_dsc)}else this.builder.addSlot("");return this.builder.withTimeToFirstByte(this.computeTimeToFirstByte()),this.build()},nt.prototype.computeTimeToFirstByte=function(){if(void 0!==window.performance){var t=window.performance.getEntriesByType("resource");if(void 0!==t){var e=t.filter(function(t){return 0<=t.name.indexOf("cdb")});if(void 0!==e&&0<e.length){var i=e[e.length-1],r=i.responseStart,o=i.requestStart;if(void 0!==r&&void 0!==o)return r-o}}}},nt.prototype.build=function(){return this.builder.build()},nt);function nt(t,e,i){this.hasSetTargetingBeenCalled=!1,this.builder=t,this.timer=void 0!==e?a.CreateWithStartTime(e):a.CreateRunning();var r=this.timer.elapsed();this.builder.withAdapterStartElapsed(r),this.builder.withPageLoadElapsed(a.TimeSincePageLoad()-r),void 0!==i&&this.builder.withAdapterTimeout(i)}function st(t){var e="number"==typeof window.PREBID_TIMEOUT?window.PREBID_TIMEOUT:void 0;return t&&e?Math.min(t,e):t||e||void 0}(rt=it=it||{}).Native="native",rt.Banner="banner",rt.Video="video";var at=(dt.prototype.setEnableSendAllBids=function(t){this.enableSendAllBids=t},dt.prototype.buildCdbUrl=function(){return this.url},dt.prototype.buildCdbRequest=function(){if(this.cache.silentModeEnabled())g.Debug("Request ignored because the global silent mode is enabled");else{if(this.requestBuilder.isValid())return this.timer.sendRequest(this.url),this.requestBuilder.getRequest();g.Debug("Request ignored because it doesnt contain any slot")}},dt.GetAllAdapters=function(){return window.Criteo.prebid_adapters},dt.GetAdapter=function(t){var e="string"==typeof t?t:t.bidRequests[0].auctionId,i=dt.GetAllAdapters();if(i&&e in i)return i[e]},dt.createCriteoNativeAdWithCallback=function(t,e,i){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[t]={callback:i,payload:e},'<script type="text/javascript">\n            var win = window;\n            for (var i = 0; i < 10; ++i) {\n                win = win.parent;\n                if (win.criteo_prebid_native_slots) {\n                    var responseSlot = win.criteo_prebid_native_slots["'+t+'"];\n                    responseSlot.callback(responseSlot.payload);\n                    break;\n                }\n            }\n        <\/script>'},dt.createPrebidNativeAd=function(t){return{title:t.products[0].title,body:t.products[0].description,sponsoredBy:t.advertiser.description,icon:t.advertiser.logo,image:t.products[0].image,clickUrl:t.products[0].click_url,privacyLink:t.privacy.optout_click_url,privacyIcon:t.privacy.optout_image_url,cta:t.products[0].call_to_action,price:t.products[0].price,impressionTrackers:t.impression_pixels.map(function(t){return t.url})}},dt.prototype.getBidRequestForSlot=function(t){for(var e=0,i=this.bidRequests;e<i.length;e++){var r=i[e];if(r.adUnitCode===t.impid&&(!r.params.zoneId||parseInt(r.params.zoneId,10)===t.zoneid))return r}},dt.getVideoInfoFromBidRequest=function(t){if(dt.hasVideoMediaType(t))return new et(t.mediaTypes.video.playerSize,t.mediaTypes.video.mimes,t.mediaTypes.video.protocols,t.mediaTypes.video.maxduration,t.mediaTypes.video.api,t.params.video.skip,t.params.video.placement,t.params.video.playbackmethod,t.params.video.minduration,t.params.video.startdelay)},dt.hasVideoMediaType=function(t){return void 0!==t.params&&void 0!==t.params.video&&!(void 0===t.mediaTypes||void 0===t.mediaTypes.video)},dt.prototype.interpretResponse=function(t,e){this.timer.requestReceived();var i=Q(t),r={};if(void 0!==i.slots)for(var o=0,n=i.slots;o<n.length;o++)r[(c=n[o]).imp_id]=c;var s=[];if(t.slots&&Array.isArray(t.slots))for(var a=0,d=t.slots;a<d.length;a++){var c=d[a],l=this.getBidRequestForSlot(c);if(l){var p=l.bidId,u=c.ttl||r[c.slotid]&&r[c.slotid].ttl||60,h={requestId:p,adId:$(),cpm:c.cpm,currency:c.currency,netRevenue:!0,ttl:u,creativeId:p,width:c.width,height:c.height,dealId:c.deal};if(c.native)if(l.params.nativeCallback)h.ad=dt.createCriteoNativeAdWithCallback(p,c.native,l.params.nativeCallback);else{if(this.enableSendAllBids){g.Error("Not supporting non mediation mode");continue}h.native=dt.createPrebidNativeAd(c.native),h.mediaType=it.Native}else c.video?(h.vastUrl=c.displayurl,h.mediaType=it.Video):h.ad=c.creative;s.push(h)}else g.Error('Could not get bid request for slot "'+c+'"')}return this.cache.handleResponse(this.slots,t,i,!1),this.metricsManager.storeMetric(this.timer.finish(t.sid,i.slots)),this.cache.clearExpiredItems(),s},dt.prototype.handleBidWon=function(t){this.updateMetric(t,function(t){t.adapterBidWon=!0})},dt.prototype.handleBidTimeout=function(){this.timer.requestReceived(!0),this.metricsManager.storeMetric(this.timer.finish()),this.cache.clearExpiredItems()},dt.prototype.handleSetTargeting=function(t){var e=this;this.timer.setTargeting(),this.updateMetric(t,function(){return e.timer.build()})},dt.prototype.updateMetric=function(t,e){for(var i=this.metricsManager.getMetrics(!1),r=0;r<i.length;++r)for(var o=0,n=i[r].slots;o<n.length;o++){var s=n[o];if(s.adUnitId===t.adUnitCode){var a=e(s);a&&(i[r]=a)}}this.metricsManager.setMetrics(i)},dt);function dt(t,e,i,r,o){var n,s,a;this.enableSendAllBids=!0,this.timer=new ot(new N,r.auctionStart,st(r.timeout)),this.auctionId=r.auctionId,this.bidRequests=i,this.slots=[];for(var d=0,c=i;d<c.length;d++){var l=c[d];this.slots.push(new tt(l.adUnitCode,l.params.zoneId,l.params.nativeCallback,l.transactionId,l.sizes.map(function(t){return new m(t[0],t[1])}),l.params.publisherSubId,l.mediaTypes,dt.getVideoInfoFromBidRequest(l))),n=l.params.networkId||n,a=r.ceh,window.criteo_pubtag.context.ceh=a,l.params.integrationMode&&(s=z(l.params.integrationMode))}var p={};r.gdprConsent&&(void 0!==r.gdprConsent.consentString&&(p.consentData=r.gdprConsent.consentString),void 0!==r.gdprConsent.gdprApplies&&(p.gdprApplies=!!r.gdprConsent.gdprApplies),r.gdprConsent.vendorData&&r.gdprConsent.vendorData.vendorConsents&&void 0!==r.gdprConsent.vendorData.vendorConsents[91..toString(10)]&&(p.consentGiven=!!r.gdprConsent.vendorData.vendorConsents[91..toString(10)]));var u={uspString:r.uspConsent};this.metricsManager=new j(t,e,o),this.cache=new x(window.criteo_pubtag.context,this.slots,n),this.requestBuilder=new J(this.cache.filterNoBidSlots(this.slots),window.criteo_pubtag.context,this.metricsManager,new V(!1),t,s,n,e,{ccpaIabConsent:u,gdprConsent:p},o),this.url=this.requestBuilder.getUrl(),window.Criteo.prebid_adapters=window.Criteo.prebid_adapters||{},window.Criteo.prebid_adapters[this.auctionId]=this}var ct=(lt.prototype.eval=function(t){},lt);function lt(t){this.name=t}var pt=(ut.prototype.getCMPFrame=function(){for(var t,e=this.currentWindow,i=0;i<10;++i){try{e.frames.__uspapiLocator&&(t=e)}catch(t){}if(e===this.currentWindow.top)break;e=e.parent}return t},ut.prototype.hasCallerFunctionInWindow=function(){return"function"==typeof this.currentWindow.__uspapi},ut.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInWindow()||void 0!==this.getCMPFrame()},ut.prototype.retrieveCCPAConsent=function(i,t){void 0===t&&(t=parseInt("50",10));var r=a.CreateRunning(),o=!1,n=setTimeout(function(){o=!0,g.Warning("Timeout: Unable to resolve CCPA consent after "+t+"ms"),i(void 0)},t);this.executeCommand("getUSPData",1,function(t,e){o||(clearTimeout(n),e?(g.Debug("Consent retrieved in "+r.elapsed()+"ms"),ut.processResponseData(t,i)):(g.Warning("Error retrieving CCPA consent data from CMP"),i(void 0)))})},ut.processResponseData=function(t,e){t?e(t):(g.Warning("Unable to read CCPA consent data from CMP"),e(void 0))},ut.prototype.executeCommand=function(t,e,i){var n=this;if(!this.hasCallerFunctionInWindow()){g.Debug("No CMP defined on current frame");var s=this.getCMPFrame();this.currentWindow.__uspapi=function(t,e,i){if(!s)return g.Warning("CMP not found"),void i({msg:"CMP not found"},!1);var r=Math.random().toString(10),o={__uspapiCall:{command:t,parameter:e,callId:r}};n.uspapiCallbacks[r]=i,s.postMessage(o,"*")},this.currentWindow.addEventListener("message",function(t){var e="string"==typeof t.data?u(t.data):t.data;if(e&&e.__uspapiReturn&&e.__uspapiReturn.callId&&e.__uspapiReturn.returnValue){var i=e.__uspapiReturn;n.uspapiCallbacks&&n.uspapiCallbacks[i.callId]&&(n.uspapiCallbacks[i.callId](i.returnValue,i.success),delete n.uspapiCallbacks[i.callId])}},!1)}this.currentWindow.__uspapi(t,e,i)},ut.prototype.hasUserOptOut=function(t){return!(!t||!t.uspString||"1YNY"===t.uspString.toUpperCase()||"1YNN"===t.uspString.toUpperCase()||"1---"===t.uspString)},ut);function ut(t){this.uspapiCallbacks={},this.currentWindow=t}var ht=(ft.prototype.send=function(t,e,i,r){var o=void 0!==this.data?"POST":"GET",n=this.getXMLHttpRequest(o,t,e,i,r);if(void 0!==n)n.send(this.data);else{var s=this.getXDomainRequest(o,t,e,i,r);void 0!==s&&s.send(this.data)}},ft.prototype.getXMLHttpRequest=function(t,e,i,r,o){var n=new XMLHttpRequest;if("withCredentials"in n)return n.open(t,this.url,!0),n.timeout=o||ft.LOCAL_PASSBACK_TIMEOUT,this.contentType?n.setRequestHeader("Content-type",this.contentType):"POST"===t&&n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.withCredentials=this.withCredentials,n.onload=function(){4===n.readyState&&200===n.status?e(n.responseText):i(n.readyState,n.status)},n.onerror=function(){i(void 0,void 0)},r&&(n.ontimeout=r),n},ft.prototype.getXDomainRequest=function(t,e,i,r,o){if("undefined"!=typeof XDomainRequest){var n=new XDomainRequest;return n.timeout=o||ft.LOCAL_PASSBACK_TIMEOUT,n.open(t,this.url),n.onload=function(){void 0!==n.responseText?e(n.responseText):i(void 0,void 0)},n.onerror&&(n.onerror=function(){i(void 0,void 0)}),n.ontimeout&&r&&(n.ontimeout=r),n}},ft.LOCAL_PASSBACK_TIMEOUT=3e4,ft);function ft(t,e,i,r){void 0===r&&(r=!0),this.url=t,this.data=e,this.contentType=i,this.withCredentials=r}var gt,vt,mt=((gt=function(t,e){return(gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}gt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(yt,vt=ct),yt.prototype.setGDPRConsent=function(t){this.gdprConsent=t},yt.prototype.setCCPAIabConsent=function(t){this.ccpaIabConsent=t},yt.prototype.getMetricBuilder=function(){return this.metricBuilder},yt.prototype.eval=function(t){this.evalWithTimeout(t,void 0)},yt.prototype.evalWithTimeout=function(t,e){var r=this,i=yt.getCriteoAdapterBidRequest(),o=yt.getRequestAuctionStart(i),n=e||st(i&&i.timeout),s=new ot(this.metricBuilder,o,n),a=new J(this.slots,t.context,this.metricsManager,this.urlBuilder,this.profileId,this.integrationMode,this.networkId,this.adapterVersion,{ccpaIabConsent:this.ccpaIabConsent,gdprConsent:this.gdprConsent},void 0,this.viewportComputer);if(a.isValid()&&"undefined"!=typeof JSON){var d=a.getRequest(),c=JSON.stringify(d),l=a.getUrl(),p=new ht(l,c,"application/x-www-form-urlencoded");s.sendRequest(l),p.send(function(t){s.requestReceived();var e=u(t)||{},i=Q(e);void 0!==r.callbackSuccess&&r.callbackSuccess(JSON.stringify(e),i),r.metricsManager.storeMetric(s.finish(e.sid,i.slots))},function(t,e){s.requestReceived(),void 0!==r.callbackError&&r.callbackError(t,e),r.metricsManager.storeMetric(s.finish())},function(){s.requestReceived(!0),void 0!==r.callbackTimeout&&r.callbackTimeout(),r.metricsManager.storeMetric(s.finish())},this.timeout)}else this.callbackError(void 0,void 0)},yt.getCriteoAdapterBidRequest=function(){try{return window.pbjs._bidsRequested.find(function(t){return"criteo"===t.bidderCode})}catch(t){return}},yt.getRequestAuctionStart=function(t){return t&&t.auctionStart},yt.NAME="directbidding",yt);function yt(t,e,i,r,o,n,s,a,d,c,l,p){var u=vt.call(this,yt.NAME)||this;return u.profileId=t,u.urlBuilder=e,u.slots=i,u.metricBuilder=new N,u.metricsManager=p||new j(t),u.callbackSuccess=r,u.callbackError=o,u.callbackTimeout=n,u.timeout=s,u.networkId=a,u.integrationMode=d,u.adapterVersion=c,u.viewportComputer=l,u}var It,Ct,bt=((It=function(t,e){return(It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}It(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(St,Ct=ct),St.prototype.eval=function(e){var i=this,t=this.gdprPrivacyProvider.readyToRetrieve(),r=this.ccpaPrivacyProvider.readyToRetrieve();if(t||r){var o,n,s=[],a=0;t&&(s.push(v),a=Math.max(a,parseInt("10000",10))),r&&(s.push(pt),a=Math.max(a,parseInt("50",10))),t&&this.gdprPrivacyProvider.retrieveGDPRConsent(function(t){s.splice(s.indexOf("GDPR"),1),0===s.length?i.evalWithCmp(e,t,n):o=t},a),r&&this.ccpaPrivacyProvider.retrieveCCPAConsent(function(t){s.splice(s.indexOf("CCPA"),1),0===s.length?i.evalWithCmp(e,o,t):n=t},a)}else this.evalWithCmp(e,void 0,void 0)},St.prototype.evalWithCmp=function(t,e,i){var r=this;if(this.cache.silentModeEnabled())return g.Debug("Request ignored because the global silent mode is enabled"),void this.callbackSuccess("",void 0);setTimeout(function(){return r.onTimeout()},this.timeout||3e3),this.directBiddingEvent.setGDPRConsent(e),this.directBiddingEvent.setCCPAIabConsent(i),this.directBiddingEvent.evalWithTimeout(t,this.timeout)},St.prototype.onSuccess=function(t,e){if(this.hasResponded=!0,void 0!==e){var i=u(t);this.cache.handleResponse(this.slots,i,e,this.hasTimeouted)}this.hasTimeouted||this.callbackSuccess(t,e),this.cache.clearExpiredItems()},St.prototype.onError=function(t,e){this.hasResponded=!0,this.hasTimeouted||this.callbackError(t,e),this.cache.clearExpiredItems()},St.prototype.onHttpTimeout=function(){this.hasResponded=!0,this.hasTimeouted||this.callbackTimeout(),this.cache.clearExpiredItems()},St.prototype.onTimeout=function(){if(!this.hasResponded){this.hasTimeouted=!0;var t=this.cache.getCachedBids(this.slots);0===t.length?this.callbackTimeout():(g.Debug("Cached bids returned because of timeout: ['"+t.map(function(t){return t.impid}).join("', '")+"']"),this.directBiddingEvent.getMetricBuilder().withCachedBidsReturned(t),this.callbackSuccess(JSON.stringify({slots:t}),void 0))}},St.prototype.getMetricBuilder=function(){return this.directBiddingEvent.getMetricBuilder()},St.prototype.getBidCache=function(){return this.cache},St.NAME="directbidding",St);function St(t,e,i,r,o,n,s,a,d,c,l,p,u,h){var f=Ct.call(this,St.NAME)||this,g=Math.max(10*(s||3e3),3e3);return f.cache=new x(window.criteo_pubtag.context,i,a),f.directBiddingEvent=new mt(t,e,f.cache.filterNoBidSlots(i),function(t,e){return f.onSuccess(t,e)},function(t,e){return f.onError(t,e)},function(){return f.onHttpTimeout()},g,a,d,c,l,p),f.slots=i,f.callbackSuccess=r,f.callbackError=o,f.callbackTimeout=n,f.timeout=s,f.hasTimeouted=!1,f.hasResponded=!1,f.gdprPrivacyProvider=u||new v(window),f.ccpaPrivacyProvider=h||new pt(window),f}var Et={prebid:"criteo_fast_bid",standalone:"criteo_fast_bid_standalone"};var _t=(wt.LoadPolyfills=function(){wt.DefineIsArray(),wt.DefineIndexOf(),wt.DefineFilter()},wt.DefineIsArray=function(){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)})},wt.DefineIndexOf=function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){if(void 0===e&&(e=0),void 0===this)throw new TypeError("'this' is null or not defined");var i=this.length;if(0===i)return-1;if(i<=e)return-1;for(var r=Math.max(0<=e?e:i-Math.abs(e),0);r<i;){if(r in this&&this[r]===t)return r;r++}return-1})},wt.DefineFilter=function(){Array.prototype.filter||(Array.prototype.filter=function(t){if(void 0===this||void 0===this)throw new TypeError;var e=this.length;if("function"!=typeof t)throw new TypeError;for(var i=[],r=2<=arguments.length?arguments[1]:void 0,o=0;o<e;o++)if(o in this){var n=this[o];t.call(r,n,o,this)&&i.push(n)}return i})},wt);function wt(){}var Tt,Mt,Ot=(Rt.SetCookie=function(t,e,i,r,o){void 0===o&&(o=!1);var n=r||document,s=n.location.hostname,a=new Date;a.setTime(a.getTime()+60*i*60*1e3);var d="expires="+a.toUTCString();if(!o)return Rt.setCookieString(t,e,d,void 0,n),s;for(var c=s.split("."),l=0;l<c.length;++l){var p=c.slice(c.length-l-1,c.length).join(".");Rt.setCookieString(t,e,d,p,n);var u=Rt.GetCookie(t,r);if(u&&u===e)return p}return s},Rt.DeleteCookie=function(t,e,i){void 0===i&&(i=!1),Rt.SetCookie(t,"",0,e,i)},Rt.GetCookie=function(t,e){for(var i=0,r=(e||document).cookie.split(";");i<r.length;i++){var o=r[i],n=o.substr(0,o.indexOf("=")).replace(/^\s+|\s+$/g,""),s=o.substr(o.indexOf("=")+1);if(n===t)return decodeURIComponent(s)}},Rt.setCookieString=function(t,e,i,r,o){var n=t+"="+encodeURIComponent(e)+";"+i+";";r&&""!==r&&(n+="domain=."+r+";"),o.cookie=n+"path=/"},Rt);function Rt(){}function At(e,i){try{return decodeURIComponent(e)}catch(t){return void 0!==i?i:e}}(Mt=Tt=Tt||{})[Mt.None=0]="None",Mt[Mt.Cookie=1]="Cookie",Mt[Mt.LocalStorage=2]="LocalStorage";var Dt=(Bt.isSafariBrowser=function(){return null!==navigator.userAgent.match(Bt.SAFARI_CHECK_REGEX)},Bt.isAndroidBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("android")},Bt.isFirefoxBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("firefox")},Bt.isEdgeChromiumBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("edg/")},Bt.isEdgeLegacyBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("edge/")},Bt.prototype.synchronizeCriteoUid=function(t){var e=this;if((t||Bt.isSafariBrowser()||Bt.isAndroidBrowser()||Bt.isFirefoxBrowser()||Bt.isEdgeChromiumBrowser()||Bt.isEdgeLegacyBrowser())&&this.topWin.addEventListener)if("complete"===this.topDoc.readyState)this.appendGumIframeIfDoesNotExist();else{var i=function(){e.topDoc.removeEventListener("DOMContentLoaded",i),e.topWin.removeEventListener("load",i),e.appendGumIframeIfDoesNotExist()};this.topWin.addEventListener("load",i,!1),this.topDoc.addEventListener("DOMContentLoaded",i,!1)}},Bt.prototype.appendGumIframeIfDoesNotExist=function(){var n=this,t=this.createGumIframe();this.topDoc.getElementById(Bt.SYNCFRAME_ID)||(this.topWin.addEventListener("message",function(t){var e=t.data;if(e&&e.isCriteoMessage)if(t.stopImmediatePropagation(),e.optout)n.setClientSideOptOut(),n.deleteClientSideUid(),n.deleteClientSideIdfs(),n.deleteClientSideSecureId(),n.deleteBundle();else{if(e.uid&&n.setClientSideUid(e.uid),e.idfs&&n.setClientSideIdfs(e.idfs),e.callbacks)for(var i=0,r="string"==typeof e.callbacks?[e.callbacks]:e.callbacks;i<r.length;i++){var o=r[i];(new Image).src=o}else e.bundle&&n.setBundle(e.bundle);e.removeSid?n.deleteClientSideSecureId():e.sid&&n.setClientSideSecureId(e.sid)}},!0),this.topDoc.body.appendChild(t))},Bt.prototype.getClientSideUid=function(){return this.getFromAllStorages(Bt.GUID_COOKIE_NAME)},Bt.prototype.setClientSideUid=function(t){this.writeOnAllStorages(Bt.GUID_COOKIE_NAME,t,Bt.GUID_RETENTION_TIME_HOUR)},Bt.prototype.deleteClientSideUid=function(){this.deleteFromAllStorage(Bt.GUID_COOKIE_NAME)},Bt.prototype.getBundle=function(){return this.getFromAllStorages(Bt.BUNDLE_COOKIE_NAME)},Bt.prototype.setBundle=function(t){this.writeOnAllStorages(Bt.BUNDLE_COOKIE_NAME,t,Bt.GUID_RETENTION_TIME_HOUR)},Bt.prototype.deleteBundle=function(){this.deleteFromAllStorage(Bt.BUNDLE_COOKIE_NAME)},Bt.prototype.getClientSideOptOut=function(){var t=this.getFromAllStorages(Bt.OPTOUT_COOKIE_NAME);return{value:"1"===t.value,origin:t.origin}},Bt.prototype.setClientSideOptOut=function(){this.writeOnAllStorages(Bt.OPTOUT_COOKIE_NAME,"1",Bt.OPTOUT_RETENTION_TIME_HOUR)},Bt.prototype.deleteClientSideIdfs=function(){this.deleteFromAllStorage(Bt.IDFS_COOKIE_NAME)},Bt.prototype.getClientSideIdfs=function(){return this.getFromAllStorages(Bt.IDFS_COOKIE_NAME)},Bt.prototype.setClientSideIdfs=function(t){this.writeOnAllStorages(Bt.IDFS_COOKIE_NAME,t,Bt.GUID_RETENTION_TIME_HOUR)},Bt.prototype.getClientSideSecureId=function(){return this.getFromAllStorages(Bt.SECURE_ID_COOKIE_NAME)},Bt.prototype.setClientSideSecureId=function(t){this.writeOnAllStorages(Bt.SECURE_ID_COOKIE_NAME,t,Bt.GUID_RETENTION_TIME_HOUR)},Bt.prototype.deleteClientSideSecureId=function(){this.deleteFromAllStorage(Bt.SECURE_ID_COOKIE_NAME)},Bt.prototype.getClientSideLocalWebId=function(){return this.getFromAllStorages(Bt.LOCAL_WEB_ID_COOKIE_NAME)},Bt.prototype.checkCookiesAreWriteable=function(){var t="cto_writeable";Ot.SetCookie(t,"1",1,this.topDoc,!0);var e="1"===Ot.GetCookie(t,this.topDoc);return Ot.DeleteCookie(t,this.topDoc,!0),e},Bt.prototype.createGumIframe=function(){var t=this.topDoc.createElement("iframe"),e=this.buildSyncframeSrc();return t.src=e,t.id=Bt.SYNCFRAME_ID,t.style.display="none",t},Bt.prototype.writeOnAllStorages=function(t,e,i){this.localStorageEnabled&&this.localStorageHelper.setItem(t,e),Ot.SetCookie(t,e,i,this.topDoc,!0)},Bt.prototype.getFromAllStorages=function(t){var e,i=Ot.GetCookie(t,this.topDoc);return this.localStorageEnabled&&(e=this.localStorageHelper.getItem(t)||void 0),{value:i||e,origin:(i&&Tt.Cookie)|(e&&Tt.LocalStorage)}},Bt.prototype.deleteFromAllStorage=function(t){Ot.DeleteCookie(t,this.topDoc,!0),this.localStorageEnabled&&this.localStorageHelper.removeItem(t)},Bt.prototype.getTld=function(){var t=Ot.SetCookie(Bt.TLD_TEST_COOKIE_NAME,"test",1,this.topDoc,!0);return Ot.DeleteCookie(Bt.TLD_TEST_COOKIE_NAME,this.topDoc,!0),t},Bt.prototype.buildSyncframeSrc=function(){var t,e,i=this.getClientSideUid(),r=this.getClientSideIdfs(),o=this.getClientSideOptOut(),n=this.getClientSideSecureId(),s=this.getClientSideLocalWebId(),a=this.getBundle(),d=this.getTld(),c=encodeURIComponent((t=this.topUrl,(e=document.createElement("a")).href=t,{protocol:e.protocol,host:e.host,hostname:e.hostname,pathname:"/"===e.pathname[0]?e.pathname.slice(1):e.pathname,search:e.search,href:e.href}).hostname),l=this.canWriteCookies,p="https://gum.criteo.com/syncframe?topUrl="+c+(this.isDebug?"&debug=1":"");return p+="#"+JSON.stringify({optout:o,uid:i,idfs:r,sid:n,origin:"publishertag",version:80,lwid:s,tld:d,bundle:a,topUrl:c,cw:l})},Bt.GUID_COOKIE_NAME="cto_idcpy",Bt.GUID_RETENTION_TIME_HOUR=9360,Bt.IDFS_COOKIE_NAME="cto_idfs",Bt.SECURE_ID_COOKIE_NAME="cto_sid",Bt.LOCAL_WEB_ID_COOKIE_NAME="cto_lwid",Bt.BUNDLE_COOKIE_NAME="cto_bundle",Bt.OPTOUT_COOKIE_NAME="cto_optout",Bt.OPTOUT_RETENTION_TIME_HOUR=43200,Bt.TLD_TEST_COOKIE_NAME="cto_pub_test_tld",Bt.SYNCFRAME_ID="criteo-syncframe",Bt.SAFARI_CHECK_REGEX=/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[^ ]+ \(KHTML, like Gecko\) Version\/([^ ]+)( Mobile\/[^ ]+)? Safari\/[^ ]+$/i,Bt);function Bt(t,e,i){this.isDebug=e,this.topWin=t,this.topDoc=t.document,this.localStorageHelper=new o(this.topWin),this.localStorageEnabled=this.localStorageHelper.checkLocalStorage(),this.canWriteCookies=this.checkCookiesAreWriteable(),this.topUrl=i}var xt,Pt,kt=(Ut.getHighestAccessibleWindow=function(t){var e=t,i=!1;try{for(;e.parent.document!==e.document;){if(!e.parent.document){i=!0;break}e=e.parent}}catch(t){i=!0}return{topFrame:e,err:i}},Ut.getHighestAccessibleUrl=function(t){var e=t.topFrame;if(!t.err)return e.location.href;try{var i=e.top.location.href;if(i)return i}catch(t){}try{var r=e.location.ancestorOrigins;if(r)return r[r.length-1]}catch(t){}return e.document.referrer},Ut.inIframe=function(){try{return window.self!==window.top}catch(t){return!0}},Ut);function Ut(){}(Pt=xt=xt||{})[Pt.InFriendlyIframe=1]="InFriendlyIframe",Pt[Pt.InUnfriendlyIframe=2]="InUnfriendlyIframe",Pt[Pt.DirectIntegration=3]="DirectIntegration";var Nt=(Ft.prototype.getContextFlags=function(){var t="";return t+=this.debugMode?"&debug=1":"",t+=this.noLog?"&nolog=1":""},Ft.prototype.getDisplayContext=function(t){return kt.inIframe()?t.err?xt.InUnfriendlyIframe:xt.InFriendlyIframe:xt.DirectIntegration},Ft.prototype.getQueryStringParams=function(t){var e={},i=t.split("?");if(1<i.length)for(var r=0,o=i[1].split("&");r<o.length;r++){var n=o[r].split("=");e[At(n[0])]=At(n[1])}return e},Ft.prototype.synchronizeCriteoUid=function(){var t=this.cookieSynchronizerFactory();this.ctoIdOnPublisherDomain=t.getClientSideUid().value,this.isOptOut=t.getClientSideOptOut().value,this.idfs=t.getClientSideIdfs().value,this.secureId=t.getClientSideSecureId().value,this.bundle=t.getBundle().value,t.synchronizeCriteoUid()},Ft.prototype.getIdfs=function(){return[this.idfs,this.secureId].join(":")},Ft.prototype.setIdfs=function(t){var e=t.split(":");e[0]&&(this.idfs=e[0]),e[1]&&(this.secureId=e[1])},Ft.prototype.computeShouldIgnoreSilentMode=function(){return Math.floor(100*Math.random())<5},Ft.prototype.setSilentModeIgnored=function(){this.silentModeIgnored=!0},Ft.prototype.checkIfUserHasOptOutForCCPA=function(e){var i=this;this.ccpaPrivacyProvider.readyToRetrieve()?this.ccpaPrivacyProvider.retrieveCCPAConsent(function(t){e(i.ccpaPrivacyProvider.hasUserOptOut(t))}):e(!1)},Ft);function Ft(t,e,i,r){var o=this;this.charset=t.charset||t.characterSet||"";var n=kt.getHighestAccessibleWindow(e);this.displayContext=this.getDisplayContext(n),this.highestAccessibleUrl=kt.getHighestAccessibleUrl(n),this.ccpaPrivacyProvider=i||new pt(e),this.cookieSynchronizerFactory=r||function(){return new Dt(n.topFrame,o.debugMode,o.highestAccessibleUrl)},this.checkIfUserHasOptOutForCCPA(function(t){t||o.synchronizeCriteoUid()});var s,a=this.getQueryStringParams(this.highestAccessibleUrl);this.debugMode="1"===a.pbt_debug||!1,this.noLog="1"===a.pbt_nolog||!1,this.shouldIgnoreSilentMode=this.computeShouldIgnoreSilentMode(),this.silentModeIgnored=!1,this.debugMode&&(s=d.Debug,g.LOGLEVEL=s),this.location=e.location,this.dising=!1,this.ct0=void 0,this.wpdt0=void 0,this.isAdBlocked=void 0,this.rtaVarNames=[]}var Lt=function(){this.bids={},this.lineItemRanges=[],this.impIds=[]};var Wt,qt,Kt,Ht,Gt,zt=(Vt.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,r=t;i<r.length;i++){var o=r[i];this.events.push(o)}this.evalEvents()},Vt.prototype.evalEvents=function(){for(var t=0;t<this.events.length;){var e=this.events[t];if("conditionalEvent"!==e.name||e.canEval()){var i=this.events.splice(t,1);try{i[0].eval(this)}catch(t){g.Error("An exception occurred processing an event: "+t.toString())}}else t++}},Vt.VERSION=80,Vt);function Vt(){this.standaloneBidder=new Lt,this.events=[],this.context=new Nt(document,window),g.Debug("Publisher Tag loaded")}function Xt(t){function e(){try{return i.apply(this,arguments)}catch(t){g.Error("Exception caught: "+t.toString())}}var i=t;for(var r in e.prototype=i.prototype,i)i.hasOwnProperty(r)&&(e[r]=i[r]);return e}window.criteo_pubtag||(_t.LoadPolyfills(),window.criteo_pubtag=new zt),window.Criteo=function t(e){for(var i in e)if(i in e){var r=e[i];"function"==typeof r?e[i]=Xt(r):"object"==typeof r&&(e[i]=t(r))}return e}({PubTag:{Adapters:{Prebid:at},DirectBidding:{DirectBiddingEvent:bt,DirectBiddingSlot:tt,DirectBiddingUrlBuilder:V,Size:m}},events:window.Criteo?window.Criteo.events:[],passbackEvents:window.Criteo?window.Criteo.passbackEvents:[],usePrebidEvents:!window.Criteo||window.Criteo.usePrebidEvents}),!1!==window.Criteo.usePrebidEvents&&(window.Criteo.events=(Wt=window.Criteo.events,qt={push:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(void 0!==t)for(var i=0,r=t;i<r.length;i++){var o=r[i];"function"==typeof o&&Xt(o)()}}},Wt&&Array.isArray(Wt)&&qt.push.apply(qt,Wt),qt)),Kt="prebid",Ht=new o,Gt=Et[Kt],Ht.checkLocalStorage()&&null===Ht.getItem(Gt,864e5)&&new ht("//static.criteo.net/js/ld/publishertag."+Kt+".js",void 0,void 0,!1).send(function(t){Ht.setItem(Gt,t,864e5)},function(t,e){g.Error("Could not update FastBid"+(e?" ("+e+")":""))})}();


originKey: moc.seloportem.www.:https:443
scope: moc.seloportem.www.:https:443
key: st_data_1
value:
  {"config":{"publisher":"[encoded data, 8211 characters]0"}}


originKey: moc.seloportem.www.:https:443
scope: moc.seloportem.www.:https:443
key: cto_bundle
value:
  PyPvl19wZUE3STBsWTdlTTU0RnhtdzZlaDkyM3F5MmtJckZQSmRGVXh2akIlMkZLckVnd2pXcjN0elB5YjJkcUtwM0tUTkQ5Njc4dU5UY0M4bSUyQnlWdGVkaW1TaWhRN3dXR2daZ2JWOVRZYWhlcWJMNCUyRm1xaHQ0eTdZVlFna29acHROb2F3V0E5TTltTzRCMzFsTWxmJTJGdzVzS1VTb1R6NlI1QTZQNUdYdnpYZDh1T2owWmxsWFFiWSUyRkpRdGZzTnkzM0ZwVlll


originKey: rb.moc.ecnal.www.:https:443
scope: rb.moc.ecnal.www.:https:443
key: nvgpersona38259
value:
  {"gender":[""],"age":[""],"education":[""],"marital":[""],"income":[""],"connection":"1607","city":[""],"region":[""],"country":[""],"everyone":[""],"custom":[""],"brand":[""],"interest":[""],"product":[""],"career":[""],"everybuyer":[""],"pgender":[""],"page":[""],"peducation":[""],"pmarital":[""],"pincome":[""]}


originKey: moc.sdaurpmi.:https:443
scope: moc.sdaurpmi.:https:443
key: lance728x90gr-r14614145:session-data
value:
  v2_06b2c42d45738c0f1be7328f70bfbdbf_511deb2e-ae06-4384-b141-92a9e6b7bd3d-tuct4a5eb6d_1580154317_1580154323_CNawjgYQuohKGNSEpsT-LSAEKAQwHzjb1AdAgIgQSJupgAFQ____________AVgAYAI


originKey: rb.moc.gi.etropse.:https:443
scope: rb.moc.gi.etropse.:https:443
key: nvgpersona53725
value:
  {"gender":"1","age":"3","education":"2","marital":"1","income":"2","city":"1000174","region":"27","country":"BR","connection":"1607","interest":"3","cluster":"45","custom":["137921","137909","139083"],"industry":["1247","1232"],"everyone":"45","everybuyer":["1247","1232"]}


originKey: rb.moc.gi.etropse.:https:443
scope: rb.moc.gi.etropse.:https:443
key: nvgpersona38259
value:
  {"gender":"1","age":"3","education":"2","marital":"1","income":"2","connection":"1607","city":"1000174","region":"27","country":"BR","everyone":"45","custom":["112517","112518","112519"],"brand":[""],"interest":"3","product":[""],"career":[""],"everybuyer":["1247","1232"],"pgender":[""],"page":[""],"peducation":[""],"pmarital":[""],"pincome":[""]}


originKey: rb.moc.gi.etropse.:https:443
scope: rb.moc.gi.etropse.:https:443
key: nav38259
value:
  a8284c258c0ea386b1e80d59e09_39_12:4:1:11:10:7:14:9:3:8:5:17:2_112517-112518-112519:1:1:45:BR:1607:3:27:2:1000174:2:1247-1232:3


originKey: moc.ndcsas.sn-ce.:https:443
scope: moc.ndcsas.sn-ce.:https:443
key: sas_rtbj1
value:
  {"bid":"387694661700476388","adomain":"sp.senac.br","page":"922773","format":"78373","crid":"1425561","dsp":"28","buyer":"10062","cid":"114294","adid":"1425561","hash":"7636652204545460858"}


originKey: rb.moc.gi.etropse.:https:443
scope: rb.moc.gi.etropse.:https:443
key: google_adsense_settings
value:
  {"ca-pub-5366475136794115":["ca-pub-5366475136794115",[],[]],"ca-pub-9715128930196859":["ca-pub-9715128930196859",[],[]]}


originKey: rb.moc.arret.www.:https:443
scope: rb.moc.arret.www.:https:443
key: terra-rosbackfill:session-data
value:
  v2_14edb5b80613ff1bcdf8cb7397403814_a9179432-4988-4d71-af70-df67d82d87b0-tuct4bcdafa_1581534627_1581534627_CAwQo_hIGNSavdaDLiABKAQwHzjb1AdAgIgQSN_XngFQ____________AVgAYAM


originKey: rb.moc.arret.www.:https:443
scope: rb.moc.arret.www.:https:443
key: taboola global:lspb
value:
  CwsIQRDai0QMCwhCENqLRAwLCIkBENqLRAwLCEwQ2otEDAsIjgEQ2otEDAsIkQEQ2otEDAsIlQEQ2otEDAsIHBDai0QMCwgdENqLRAwLCB4Q2otEDAsIHxDai0QMCwggENqLRAwLCCEQ2otEDAsIIxC62kQMCwgkENqLRAwLCGQQ2otEDAsIJxDai0QMCwgtENqLRAwLCDEQ2otEDAsIOxDai0QMCwg9EP71QwwLCD8Q2otEDAwTFA


originKey: rb.moc.ecnal.www.:https:443
scope: rb.moc.ecnal.www.:https:443
key: OB-lastPageViewInfo
value:
  {"url":"https%3A%2F%2Fwww.lance.com.br%2Ffutebol-internacional%2Fida-lyon-bruno-guimaraes-pediu-para-estar-nas-olimpiadas","Lx":1581534809331}


originKey: moc.sdaurpmi.:https:443
scope: moc.sdaurpmi.:https:443
key: taboola global:lspb
value:
  CwsIQRDhxEQMCwhCEOHERAwLCIkBEOHERAwLCEwQ4cREDAsIjgEQ4cREDAsIkQEQ4cREDAsIlQEQ4cREDAsIHBDhxEQMCwgdEOHERAwLCB4Q4cREDAsIHxDhxEQMCwggEOHERAwLCCEQ4cREDAsIIxDBk0UMCwgkEOHERAwLCGQQ4cREDAsIJxDhxEQMCwgtEOHERAwLCDEQ4cREDAsIOxDhxEQMCwg9EIH2QwwLCD8Q4cREDAwTFA


originKey: moc.sdaurpmi.:https:443
scope: moc.sdaurpmi.:https:443
key: criteo_fast_bid
value:
  // Hash: LulBa1TiT3uBkzh1mrjA2zDc1BByOlHUYa8i3EN+8RnrkjVO41rXMZGVHFUvQVHjCWc6QpS4shn1yvpVwYKPl1JTmqZdgeOo6A1R2fz9QCQ2e4+C8YQRhPSN4cs6R5tZ0qvM53mPG9hpZyFmEo7ZmdtYuhpz5t0b2H/RL1V+Guo=
  !function(){"use strict";var d,t;(t=d=d||{})[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Debug=2]="Debug";var n=["color: #fff;","background: #ff8f1c;","display: inline-block;","padding: 1px 4px;","border-radius: 3px;"].join(" "),g=(s.Log=function(t,e){if(!(s.LOGLEVEL<t)){var i=d[t].toUpperCase(),r=window.navigator.userAgent,o=0<r.indexOf("MSIE ")||0<r.indexOf("Trident/");window.console&&(o?console.log("[PubTag] "+i+": "+e):console.log("%cPubTag",n,i+": "+e))}},s.Debug=function(t){s.Log(d.Debug,t)},s.Warning=function(t){s.Log(d.Warning,t)},s.Error=function(t){s.Log(d.Error,t)},s.LOGLEVEL=d.Error,s);function s(){}var a=(i.CreateRunning=function(){var t=new i;return t.start(),t},i.CreateWithStartTime=function(t){var e=new i(!1);return e.startTime=t,e},i.TimeSincePageLoad=function(){if(window.performance){if(window.performance.now)return window.performance.now();if(window.performance.timing&&window.performance.timing.navigationStart)return(new Date).getTime()-performance.timing.navigationStart}return 0},i.prototype.start=function(){this.startTime=this.now()},i.prototype.elapsed=function(){return this.now()-this.startTime},i);function i(t){void 0===t&&(t=!0),t&&window.performance&&window.performance.now?this.now=window.performance.now.bind(window.performance):Date.now?this.now=Date.now:this.now=function(){return(new Date).getTime()}}function u(t){try{return JSON.parse(t)}catch(t){return}}var v=(c.prototype.getCMPFrame=function(){for(var t,e=this.currentWindow,i=0;i<10;++i){try{e.frames.__cmpLocator&&(t=e)}catch(t){}if(e===this.currentWindow.top)break;e=e.parent}return t},c.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__cmp},c.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},c.prototype.retrieveGDPRConsent=function(i,t){void 0===t&&(t=parseInt("10000",10));var r=a.CreateRunning(),o=!1,n=setTimeout(function(){o=!0,g.Warning("Timeout: Unable to resolve GDPR consent after "+t+"ms"),i(void 0)},t);this.executeCommand("getConsentData",null,function(t,e){o||(clearTimeout(n),e?(g.Debug("Consent retrieved in "+r.elapsed()+"ms"),c.processResponseData(t,i)):(g.Warning("Error retrieving GDPR consent data from CMP"),i(void 0)))})},c.prototype.retrieveGDPRConsentForPassback=function(i,t){void 0===t&&(t=parseInt("10000",10));var r=a.CreateRunning(),o=!1,n=setTimeout(function(){o=!0,g.Warning("Timeout: Unable to resolve GDPR consent after "+t+"ms"),i(void 0)},t);this.executeCommand("getVendorConsents",[91],function(t,e){o||(clearTimeout(n),e?(g.Debug("Consent (getVendorConsents) retrieved in "+r.elapsed()+"ms"),c.processResponseData(t,i)):(g.Warning("Error while calling getVendorConsents from CMP"),i(void 0)))})},c.processResponseData=function(t,e){if(t){var i={};void 0!==t.consentData&&(i.consentData=t.consentData),void 0!==t.gdprApplies&&(i.gdprApplies=!!t.gdprApplies),t.vendorConsents&&void 0!==t.vendorConsents[91..toString()]&&(i.consentGiven=!!t.vendorConsents[91..toString()]),e(i)}else g.Warning("Unable to read GDPR consent data from CMP"),e(void 0)},c.prototype.executeCommand=function(t,e,i){var n=this;if(!this.hasCallerFunctionInFrame()){g.Debug("No CMP defined on current frame");var s=this.getCMPFrame();this.currentWindow.__cmp=function(t,e,i){if(!s)return g.Warning("CMP not found"),void i({msg:"CMP not found"},!1);var r=Math.random().toString(10),o={__cmpCall:{command:t,parameter:e,callId:r}};n.cmpCallbacks[r]=i,s.postMessage(o,"*")},this.currentWindow.addEventListener("message",function(t){var e="string"==typeof t.data?u(t.data):t.data;if(e&&e.__cmpReturn&&e.__cmpReturn.callId&&e.__cmpReturn.returnValue){var i=e.__cmpReturn;n.cmpCallbacks&&n.cmpCallbacks[i.callId]&&(n.cmpCallbacks[i.callId](i.returnValue,i.success),delete n.cmpCallbacks[i.callId])}},!1)}this.currentWindow.__cmp(t,e,i)},c);function c(t){this.cmpCallbacks={},this.currentWindow=t}var o=(e.prototype.checkLocalStorage=function(){if(!this.localStorage)return!1;var t=this.CHECK_STORAGE_KEY;try{return this.localStorage.setItem(t,t),this.localStorage.removeItem(t),!0}catch(t){return!1}},e.prototype.removeItem=function(t){this.localStorage.removeItem(t),this.localStorage.removeItem(t+this.EXPIRE_SUFFIX)},e.prototype.getItem=function(t,e){var i=(new Date).getTime(),r=this.localStorage.getItem(t+this.EXPIRE_SUFFIX),o=r?parseInt(r,10):-1;return-1!==o&&o<i||e&&(-1===o||e<o-i)?(this.removeItem(t),null):this.localStorage.getItem(t)},e.prototype.setItem=function(t,e,i){if(this.localStorage.setItem(t,e),i){var r=(new Date).getTime()+i;this.localStorage.setItem(t+this.EXPIRE_SUFFIX,r.toString())}},e.prototype.getAllItemsByPrefix=function(t){var e=[];for(var i in localStorage)0===i.indexOf(t)&&e.push(i);return e},e);function e(t){this.EXPIRE_SUFFIX="_expires",this.CHECK_STORAGE_KEY="criteo_localstorage_check",this.localStorage=function(t){try{return t.localStorage}catch(t){return}}(t||window)}var l=(r.prototype.silentModeEnabled=function(){var t=r.SILENT_MODE_KEY;return this.localStorageEnabled&&null!==this.localStorageHelper.getItem(t)},r.prototype.enableSilentMode=function(t){if(this.localStorageEnabled){var e=r.SILENT_MODE_KEY;this.localStorageHelper.setItem(e,"1",t)}},r.SILENT_MODE_KEY="criteo_silent_mode",r);function r(){this.localStorageHelper=new o,this.localStorageEnabled=this.localStorageHelper.checkLocalStorage()}function p(){return(new Date).getTime()}var h=(f.prototype.get=function(t){var e=localStorage.getItem(t);if(e){var i=e.split("|");if(!(i.length<2||parseInt(i[1],10)<p()))return i[0]}},f.prototype.set=function(t,e){var i=p()+e;localStorage.setItem(t,this.id+"|"+i)},f.prototype.acquire=function(t,e,i){var r=this;void 0===i&&(i=100),i<=0||this.tryAcquire(e)?(t(),this.release()):setTimeout(function(){r.acquire(t,e,i-10)},10)},f.prototype.tryAcquire=function(t){localStorage.setItem(this.x,this.id);var e=this.get(this.y);return!(e&&e!==this.id||(this.set(this.y,t),localStorage.getItem(this.x)!==this.id||this.get(this.y)!==this.id))},f.prototype.release=function(){localStorage.removeItem(this.x),localStorage.removeItem(this.y)},f);function f(t){this.x=t+"_lock_A",this.y=t+"_lock_B",this.id=Math.floor(1e9*Math.random()).toString()}var m=(y.prototype.toString=function(){return this.width+"x"+this.height},y);function y(t,e){this.width=t,this.height=e}var I=(C.prototype.toString=function(){return"ImpId"+this.impressionId},C);function C(t){this.impressionId=t}var S,E,b=((S=function(t,e){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(w,E=I),w.prototype.toString=function(){return E.prototype.toString.call(this)+"_Size"+this.size+"_NetworkId"+this.networkId},w);function w(t,e,i){var r=E.call(this,t)||this;return r.size=e,r.networkId=i,r}var _,T,M=((_=function(t,e){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(O,T=I),O.prototype.toString=function(){return T.prototype.toString.call(this)+"_ZoneId"+this.zoneId},O);function O(t,e){var i=T.call(this,t)||this;return i.zoneId=e,i}var R=(A.prototype.createKeysFromSlotRequest=function(t){if(this.useZoneIdIntegration)return[new M(t.impId,t.zoneId)];for(var e=[],i=0,r=t.sizes;i<r.length;i++){var o=r[i];e.push(new b(t.impId,o,this.networkId))}return e},A.prototype.createKeyFromSlotResponse=function(t){return this.useZoneIdIntegration?new M(t.impid,t.zoneid):new b(t.impid,new m(t.width,t.height),this.networkId)},A.prototype.createKeyFromBid=function(t){return this.useZoneIdIntegration?new M(t.impressionId,t.zoneId):new b(t.impressionId,new m(t.width,t.height),this.networkId)},A);function A(t,e){this.useZoneIdIntegration=t,this.networkId=e}var D=(B.useZoneIdIntegration=function(t,e){return void 0===e||0===t.filter(function(t){return void 0!==t.sizes&&0<t.sizes.length}).length},B.prototype.get=function(t){var e=this.localStorageHelper.getItem(t),i=e&&u(e);return i&&"object"==typeof i&&"bids"in i?(i.bids=i.bids.filter(function(t){return t.expiration>p()}),i):{bids:[]}},B.prototype.getBySlotKey=function(t){return this.get(B.BID_KEY_PREFIX+t.toString())},B.prototype.set=function(t,e){0<e.bids.length||e.no_bid&&e.no_bid>p()?this.localStorageHelper.setItem(t,JSON.stringify(e)):this.localStorageHelper.removeItem(t)},B.prototype.setBySlotKey=function(t,e){this.set(B.BID_KEY_PREFIX+t.toString(),e)},B.prototype.filterNoBidSlots=function(t){for(var e=[],i=0,r=t;i<r.length;i++){for(var o=r[i],n=[],s=0,a=this.slotKeyFactory.createKeysFromSlotRequest(o);s<a.length;s++){var d=a[s];this.getBid(d,0)!==B.NO_BID&&(d instanceof b?n.push(d.size):e.push(o))}0<n.length&&(o.sizes=n,e.push(o))}return e},B.prototype.getRequestCachedBids=function(t,e){void 0===e&&(e=5e3);for(var i=[],r=0,o=t;r<o.length;r++)for(var n=o[r],s=0,a=this.slotKeyFactory.createKeysFromSlotRequest(n);s<a.length;s++){var d=a[s],c=this.getBid(d,e);void 0!==c&&c!==B.NO_BID&&i.push(c)}return i},B.prototype.getBid=function(t,e){if(void 0===e&&(e=5e3),this.localStorageEnabled){var i=this.getBySlotKey(t);if(i.no_bid&&i.no_bid>p())return B.NO_BID;if(0<e)for(var r=0,o=i.bids;r<o.length;r++){var n=o[r];if(new h(B.BID_KEY_PREFIX+n.bid.slotid).tryAcquire(e))return n.bid}}},B.prototype.storeRequestNoBid=function(t,e){for(var i=0,r=this.slotKeyFactory.createKeysFromSlotRequest(t);i<r.length;i++){var o=r[i];this.storeNoBid(o,e)}},B.prototype.storeResponseBid=function(e,i){var t=this.slotKeyFactory.createKeyFromSlotResponse(e);this.modifyCache(t,function(t){t.bids.push({bid:e,expiration:p()+1e3*i})})},B.prototype.storeNoBid=function(t,e){this.modifyCache(t,function(t){t.no_bid=Math.max(t.no_bid||0,p()+1e3*e)})},B.prototype.removeBid=function(i){var t=this.slotKeyFactory.createKeyFromBid(i);this.modifyCache(t,function(t){for(var e=0;e<t.bids.length;e++)if(t.bids[e].bid.slotid===i.slotId)return void t.bids.splice(e,1)}),new h(t.toString()).release()},B.prototype.modifyCache=function(e,i){var r=this;if(this.localStorageEnabled){var o=new h(e.toString());o.acquire(function(){var t=r.getBySlotKey(e);i(t),r.setBySlotKey(e,t),o.release()},1e3)}},B.prototype.clearExpiredItems=function(){for(var t=0,e=this.localStorageHelper.getAllItemsByPrefix(B.BID_KEY_PREFIX);t<e.length;t++){var i=e[t],r=this.get(i);r&&this.set(i,r)}},B.NO_BID="nobid",B.BID_KEY_PREFIX="criteo_pt_cdb_bidcache_",B);function B(t,e){this.localStorageHelper=new o,this.localStorageEnabled=this.localStorageHelper.checkLocalStorage(),this.slotKeyFactory=new R(t,e)}var x=(P.prototype.filterNoBidSlots=function(t){var e=this.bidManager.filterNoBidSlots(t);return this.context.shouldIgnoreSilentMode?(e.length!==t.length&&this.context.setSilentModeIgnored&&this.context.setSilentModeIgnored(),t):e},P.prototype.silentModeEnabled=function(){var t=!1;return this.silentModeManager.silentModeEnabled()&&(this.context.shouldIgnoreSilentMode&&this.context.setSilentModeIgnored?this.context.setSilentModeIgnored():t=!0),t},P.prototype.getCachedBids=function(t){return this.bidManager.getRequestCachedBids(t)},P.prototype.removeBid=function(t){this.bidManager.removeBid(t)},P.prototype.handleResponse=function(t,e,i,r){var o=i.time_to_next_call;0<o&&(g.Debug("Global silent mode enabled for "+o+" seconds"),this.silentModeManager.enableSilentMode(1e3*o));var n={};if(i.slots)for(var s=0,a=i.slots;s<a.length;s++)(f=a[s]).ttl&&(n[f.imp_id]=f.ttl);if(e.slots)for(var d=0,c=e.slots;d<c.length;d++){var l=0;(f=c[d]).slotid in n&&(l=n[f.slotid],delete n[f.slotid]),r&&0<l&&(g.Debug("Post-timeout bid for slot '"+f.impid+"' cached for "+l+" seconds"),this.bidManager.storeResponseBid(f,l))}for(var p in n)if(n.hasOwnProperty(p))for(var u=0,h=t;u<h.length;u++){var f;(f=h[u]).slotId===p&&(l=n[p],g.Debug("Silent mode for slot '"+f.impId+"' enabled for "+l+" seconds"),this.bidManager.storeRequestNoBid(f,l))}},P.prototype.clearExpiredItems=function(){var t=this;setTimeout(function(){t.bidManager.clearExpiredItems()},3e3)},P);function P(t,e,i){var r=D.useZoneIdIntegration(e,i);this.bidManager=new D(r,i),this.silentModeManager=new l,this.context=t}var k=function(t,e,i,r,o,n,s,a,d,c,l,p,u,h,f){this.publisherTagVersion=t,this.slots=e,this.elapsed=i,this.isTimeout=r,this.pageLoadElapsed=o,this.adapterStartElapsed=n,this.cdbCallStartElapsed=s,this.cdbCallEndElapsed=a,this.adapterEndElapsed=d,this.setTargetingElapsed=c,this.adapterTimeout=l,this.adapterIsTimeout=p,this.timeToFirstByte=u,this.requestGroupId=h,this.sid=f},U=function(t,e,i,r,o){this.impressionId=t,this.zoneId=e,this.adUnitId=i,this.cachedBidUsed=r,this.isDsc=o},N=(F.prototype.withElapsed=function(t){return this.elapsed=Math.round(t),this},F.prototype.withIsTimeout=function(t){return this.isTimeout=t,this},F.prototype.withPageLoadElapsed=function(t){return this.pageLoadElapsed=Math.round(t),this},F.prototype.withAdapterStartElapsed=function(t){return this.adapterStartElapsed=Math.round(t),this},F.prototype.withCdbCallStartElapsed=function(t){return this.cdbCallStartElapsed=Math.round(t),this},F.prototype.withCdbCallEndElapsed=function(t){return this.cdbCallEndElapsed=Math.round(t),this},F.prototype.withSetTargetingElapsed=function(t){return this.setTargetingElapsed=Math.round(t),this},F.prototype.withAdapterEndElapsed=function(t){return this.adapterEndElapsed=Math.round(t),this},F.prototype.withAdapterTimeout=function(t){return this.adapterTimeout=t&&Math.round(t),this},F.prototype.withCachedBidsReturned=function(t){return this.cachedBidsReturned=t,this},F.prototype.withTimeToFirstByte=function(t){return this.timeToFirstByte=t&&Math.round(t),this},F.prototype.withRequestGroupId=function(t){return this.requestGroupId=t,this},F.prototype.withSid=function(t){return this.sid=t,this},F.prototype.addSlot=function(t,e,i,r){var o=0<this.cachedBidsReturned.filter(function(t){return t.impid===i&&t.zoneid===e}).length;return this.slots.push(new U(t,e,i,o,r)),this},F.prototype.build=function(){var t;return void 0!==this.adapterTimeout&&(t=this.adapterEndElapsed>this.adapterTimeout),new k(83,this.slots,this.elapsed,this.isTimeout,this.pageLoadElapsed,this.adapterStartElapsed,this.cdbCallStartElapsed,this.cdbCallEndElapsed,this.adapterEndElapsed,this.setTargetingElapsed,this.adapterTimeout,t,this.timeToFirstByte,this.requestGroupId,this.sid)},F);function F(){this.elapsed=0,this.isTimeout=!1,this.pageLoadElapsed=0,this.adapterStartElapsed=0,this.cdbCallStartElapsed=0,this.cdbCallEndElapsed=0,this.adapterEndElapsed=0,this.cachedBidsReturned=[],this.slots=[]}var L=(W.prototype.getRequest=function(){return{feedbacks:this.feedbacks}},W.prototype.getUrl=function(){return this.urlBuilder.buildCsmUrl(this.profileId,this.adapterVersion,this.wrapperVersion)},W);function W(t,e,i,r,o){this.urlBuilder=t,this.profileId=e,this.adapterVersion=r,this.wrapperVersion=o,this.feedbacks=i}var q,K,H=(G.generateCacheBuster=function(){return Math.floor(99999999999*Math.random())},G);function G(){}function z(t){switch(t.toLowerCase()){case"amp":return q.AMP;default:return q.Unspecified}}(K=q=q||{})[K.Unspecified=0]="Unspecified",K[K.AMP=1]="AMP";var V=(X.prototype.buildUrl=function(t,e,i,r,o){void 0===i&&(i=q.Unspecified);var n=X.CRITEO_BIDDER_URL+this.getHandlerPath();return n+="?ptv=83",!0===e.isAdBlocked&&(n+="&abp=1"),n=this.appendCommonParameters(n,t,r,o),n+=e.ctoIdOnPublisherDomain?"&idcpy="+e.ctoIdOnPublisherDomain:"",n+=e.idfs?"&idfs="+e.idfs:"",n+=e.secureId?"&sid="+e.secureId:"",n+=e.isOptOut?"&optout=1":"",n+=e.bundle?"&bundle="+e.bundle:"",i!==q.Unspecified&&(n+="&im="+i),n+=e.silentModeIgnored?"&smi=1":"",n+="&cb="+String(H.generateCacheBuster()),n+=e.getContextFlags()},X.prototype.buildCsmUrl=function(t,e,i){var r=X.CRITEO_BIDDER_URL+X.CRITEO_CSM_HANDLER;return r+="?ptv=83",this.appendCommonParameters(r,t,e,i)},X.prototype.appendCommonParameters=function(t,e,i,r){return t+="&profileId="+String(e),void 0!==i&&(t+="&av="+String(i)),void 0!==r&&(t+="&wv="+encodeURIComponent(r)),t},X.prototype.getHandlerPath=function(){return this.auditMode?X.CRITEO_BIDDER_AUDIT_HANDLER:X.CRITEO_BIDDER_HANDLER},X.CRITEO_BIDDER_URL="https://bidder.criteo.com/",X.CRITEO_BIDDER_HANDLER="cdb",X.CRITEO_CSM_HANDLER="csm",X.CRITEO_BIDDER_AUDIT_HANDLER="prebid/audit",X);function X(t){void 0===t&&(t=!1),this.auditMode=t}var j=(Y.prototype.getMetrics=function(t){if(this.localStorageEnabled){var e=Y.METRICS_STORAGE_KEY,i=this.localStorageHelper.getItem(e),r=i?u(i):[];return t&&this.localStorageHelper.removeItem(e),r}return[]},Y.prototype.setMetrics=function(t){if(this.localStorageEnabled){var e=Y.METRICS_STORAGE_KEY;this.localStorageHelper.setItem(e,JSON.stringify(t),36e5)}},Y.prototype.storeMetric=function(t){var e=this;if(this.localStorageEnabled){var i=this.getMetrics(!1);i.push(t),this.setMetrics(i);var r=(t&&t.adapterTimeout||2e3)+1e3;setTimeout(function(){e.sendMetrics()},r)}},Y.prototype.sendMetrics=function(){var t=this.getMetrics(!0);if(!(t.length<=0)){var e=new L(new V,this.profileId,t,this.adapterVersion,this.wrapperVersion),i=e.getUrl(),r=JSON.stringify(e.getRequest());navigator.sendBeacon&&navigator.sendBeacon(i,r)}},Y.METRICS_STORAGE_KEY="criteo_pt_cdb_metrics",Y);function Y(t,e,i,r){this.profileId=t,this.adapterVersion=e,this.wrapperVersion=i,this.localStorageHelper=r||new o,this.localStorageEnabled=this.localStorageHelper.checkLocalStorage()}var J=(Z.prototype.isValid=function(){return 0<this.slots.length},Z.prototype.getRequest=function(){for(var t=[],e=0,i=this.slots;e<i.length;e++){var r=i[e],o={slotid:r.slotId,impid:r.impId};if(void 0!==r.zoneId&&(o.zoneid=r.zoneId),void 0!==r.nativeCallback&&(o.native=!0),void 0!==r.transactionId&&(o.transactionid=r.transactionId),void 0!==r.publisherSubId&&(o.publishersubid=r.publisherSubId),void 0!==r.sizes){for(var n=[],s=0,a=r.sizes;s<a.length;s++){var d=a[s];n.push(d.width+"x"+d.height)}o.sizes=n}if(void 0!==r.video){var c={playersizes:this.parsePlayerSizes(r.video.playersize),mimes:r.video.mimes,protocols:r.video.protocols,maxduration:r.video.maxduration,api:r.video.api,skip:r.video.skip,placement:r.video.placement,playbackmethod:r.video.playbackmethod,minduration:r.video.minduration,startdelay:r.video.startdelay};o.video=c}if(void 0!==this.viewportComputer){var l=this.viewportComputer.getSlotPosition(r);void 0!==l&&(o.position={top:l.top,left:l.left})}t.push(o)}var p={ceh:this.context.ceh,uspOptout:this.context.ccpaOptout},u={publisher:{url:this.context.highestAccessibleUrl},slots:t,user:p};void 0!==this.networkId&&(u.publisher.networkid=this.networkId);var h=this.metricsManager.getMetrics(!0);if(h.length&&(u.previousBidFeedback=h),this.privacyWrapper&&(this.privacyWrapper.gdprConsent&&(u.gdprConsent=this.privacyWrapper.gdprConsent),this.privacyWrapper.ccpaIabConsent&&(p.uspIab=this.privacyWrapper.ccpaIabConsent.uspString)),void 0!==this.viewportComputer){var f=this.viewportComputer.getViewport();u.viewport={width:f.width,height:f.height,scrollTop:f.scrollTop,scrollLeft:f.scrollLeft}}return u},Z.parsePlayerSize=function(t){return t[0]+"x"+t[1]},Z.prototype.parsePlayerSizes=function(t){return Array.isArray(t[0])?t.map(function(t){return Z.parsePlayerSize(t)}):[Z.parsePlayerSize(t)]},Z.prototype.getUrl=function(){return this.urlBuilder.buildUrl(this.profileId,this.context,this.integrationMode,this.adapterVersion,this.wrapperVersion)},Z);function Z(t,e,i,r,o,n,s,a,d,c,l){this.slots=t,this.context=e,this.metricsManager=i,this.urlBuilder=r,this.profileId=o,this.integrationMode=n||q.Unspecified,this.networkId=s,this.adapterVersion=a,this.privacyWrapper=d,this.wrapperVersion=c,this.viewportComputer=l}function Q(t){var e={slots:void 0,time_to_next_call:0};return void 0!==t.exd&&(void 0!==t.exd.time_to_next_call&&(e.time_to_next_call=t.exd.time_to_next_call),e.slots=t.exd.slots,delete t.exd),e}function $(){var i=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"===t?e:3&e|8).toString(16)})}var tt=function(t,e,i,r,o,n,s,a){this.slotId=$().replace(/-/g,""),this.impId=t,this.zoneId=e,this.nativeCallback=i,this.transactionId=r,this.sizes=o,this.publisherSubId=n,this.mediaTypes=s,this.video=a},et=function(t,e,i,r,o,n,s,a,d,c){this.playersize=t,this.mimes=e,this.protocols=i,this.maxduration=r,this.api=o,this.skip=n,this.placement=s,this.playbackmethod=a,this.minduration=d,this.startdelay=c};var it,rt,ot=(nt.prototype.sendRequest=function(t){this.url=t,this.sendTime=a.CreateRunning(),this.builder.withCdbCallStartElapsed(this.timer.elapsed())},nt.prototype.requestReceived=function(t){void 0===t&&(t=!1),this.builder.withElapsed(function(t){if(window.performance&&window.performance.getEntries)for(var e=window.performance.getEntries(),i=e.length-1;0<=i;--i){var r=e[i];if(r.name===t&&r.duration)return Math.round(r.duration)}}(this.url)||this.sendTime.elapsed()),this.builder.withCdbCallEndElapsed(this.timer.elapsed()),this.builder.withIsTimeout(t)},nt.prototype.setTargeting=function(){this.hasSetTargetingBeenCalled||(this.builder.withSetTargetingElapsed(this.timer.elapsed()),this.hasSetTargetingBeenCalled=!0)},nt.prototype.finish=function(t,e){if(this.builder.withAdapterEndElapsed(this.timer.elapsed()),this.builder.withSid(t),this.builder.withRequestGroupId($()),e&&0!==e.length)for(var i=0,r=e;i<r.length;i++){var o=r[i];this.builder.addSlot(o.imp_id,o.zone_id,o.ad_unit_id,o.is_dsc)}else this.builder.addSlot("");return this.builder.withTimeToFirstByte(nt.computeTimeToFirstByte()),this.build()},nt.computeTimeToFirstByte=function(){if(void 0!==window.performance&&void 0!==window.performance.getEntriesByType&&"function"==typeof window.performance.getEntriesByType){var t=window.performance.getEntriesByType("resource");if(void 0!==t){var e=t.filter(function(t){return 0<=t.name.indexOf("cdb")});if(void 0!==e&&0<e.length){var i=e[e.length-1],r=i.responseStart,o=i.requestStart;if(void 0!==r&&void 0!==o)return r-o}}}},nt.prototype.build=function(){return this.builder.build()},nt);function nt(t,e,i){this.hasSetTargetingBeenCalled=!1,this.builder=t,this.timer=void 0!==e?a.CreateWithStartTime(e):a.CreateRunning();var r=this.timer.elapsed();this.builder.withAdapterStartElapsed(r),this.builder.withPageLoadElapsed(a.TimeSincePageLoad()-r),void 0!==i&&this.builder.withAdapterTimeout(i)}function st(t){var e="number"==typeof window.PREBID_TIMEOUT?window.PREBID_TIMEOUT:void 0;return t&&e?Math.min(t,e):t||e||void 0}(rt=it=it||{}).Native="native",rt.Banner="banner",rt.Video="video";var at=(dt.prototype.setEnableSendAllBids=function(t){this.enableSendAllBids=t},dt.prototype.buildCdbUrl=function(){return this.url},dt.prototype.buildCdbRequest=function(){if(this.cache.silentModeEnabled())g.Debug("Request ignored because the global silent mode is enabled");else{if(this.requestBuilder.isValid())return this.timer.sendRequest(this.url),this.requestBuilder.getRequest();g.Debug("Request ignored because it doesnt contain any slot")}},dt.GetAllAdapters=function(){return window.Criteo.prebid_adapters},dt.GetAdapter=function(t){var e="string"==typeof t?t:t.bidRequests[0].auctionId,i=dt.GetAllAdapters();if(i&&e in i)return i[e]},dt.createCriteoNativeAdWithCallback=function(t,e,i){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[t]={callback:i,payload:e},'<script type="text/javascript">\n            var win = window;\n            for (var i = 0; i < 10; ++i) {\n                win = win.parent;\n                if (win.criteo_prebid_native_slots) {\n                    var responseSlot = win.criteo_prebid_native_slots["'+t+'"];\n                    responseSlot.callback(responseSlot.payload);\n                    break;\n                }\n            }\n        <\/script>'},dt.createPrebidNativeAd=function(t){return{title:t.products[0].title,body:t.products[0].description,sponsoredBy:t.advertiser.description,icon:t.advertiser.logo,image:t.products[0].image,clickUrl:t.products[0].click_url,privacyLink:t.privacy.optout_click_url,privacyIcon:t.privacy.optout_image_url,cta:t.products[0].call_to_action,price:t.products[0].price,impressionTrackers:t.impression_pixels.map(function(t){return t.url})}},dt.prototype.getBidRequestForSlot=function(t){for(var e=0,i=this.bidRequests;e<i.length;e++){var r=i[e];if(r.adUnitCode===t.impid&&(!r.params.zoneId||parseInt(r.params.zoneId,10)===t.zoneid))return r}},dt.getVideoInfoFromBidRequest=function(t){if(dt.hasVideoMediaType(t))return new et(t.mediaTypes.video.playerSize,t.mediaTypes.video.mimes,t.mediaTypes.video.protocols,t.mediaTypes.video.maxduration,t.mediaTypes.video.api,t.params.video.skip,t.params.video.placement,t.params.video.playbackmethod,t.params.video.minduration,t.params.video.startdelay)},dt.hasVideoMediaType=function(t){return void 0!==t.params&&void 0!==t.params.video&&!(void 0===t.mediaTypes||void 0===t.mediaTypes.video)},dt.prototype.interpretResponse=function(t,e){this.timer.requestReceived();var i=Q(t),r={};if(void 0!==i.slots)for(var o=0,n=i.slots;o<n.length;o++)r[(c=n[o]).imp_id]=c;var s=[];if(t.slots&&Array.isArray(t.slots))for(var a=0,d=t.slots;a<d.length;a++){var c=d[a],l=this.getBidRequestForSlot(c);if(l){var p=l.bidId,u=c.ttl||r[c.slotid]&&r[c.slotid].ttl||60,h={requestId:p,adId:$(),cpm:c.cpm,currency:c.currency,netRevenue:!0,ttl:u,creativeId:p,width:c.width,height:c.height,dealId:c.deal};if(c.native)if(l.params.nativeCallback)h.ad=dt.createCriteoNativeAdWithCallback(p,c.native,l.params.nativeCallback);else{if(this.enableSendAllBids){g.Error("Not supporting non mediation mode");continue}h.native=dt.createPrebidNativeAd(c.native),h.mediaType=it.Native}else c.video?(h.vastUrl=c.displayurl,h.mediaType=it.Video):h.ad=c.creative;s.push(h)}else g.Error('Could not get bid request for slot "'+c+'"')}return this.cache.handleResponse(this.slots,t,i,!1),this.metricsManager.storeMetric(this.timer.finish(t.sid,i.slots)),this.cache.clearExpiredItems(),s},dt.prototype.handleBidWon=function(t){this.updateMetric(t,function(t){t.adapterBidWon=!0})},dt.prototype.handleBidTimeout=function(){this.timer.requestReceived(!0),this.metricsManager.storeMetric(this.timer.finish()),this.cache.clearExpiredItems()},dt.prototype.handleSetTargeting=function(t){var e=this;this.timer.setTargeting(),this.updateMetric(t,function(){return e.timer.build()})},dt.prototype.updateMetric=function(t,e){for(var i=this.metricsManager.getMetrics(!1),r=0;r<i.length;++r)for(var o=0,n=i[r].slots;o<n.length;o++){var s=n[o];if(s.adUnitId===t.adUnitCode){var a=e(s);a&&(i[r]=a)}}this.metricsManager.setMetrics(i)},dt);function dt(t,e,i,r,o){var n,s,a;this.enableSendAllBids=!0,this.timer=new ot(new N,r.auctionStart,st(r.timeout)),this.auctionId=r.auctionId,this.bidRequests=i,this.slots=[];for(var d=0,c=i;d<c.length;d++){var l=c[d];this.slots.push(new tt(l.adUnitCode,l.params.zoneId,l.params.nativeCallback,l.transactionId,l.sizes.map(function(t){return new m(t[0],t[1])}),l.params.publisherSubId,l.mediaTypes,dt.getVideoInfoFromBidRequest(l))),n=l.params.networkId||n,a=r.ceh,window.criteo_pubtag.context.ceh=a,l.params.integrationMode&&(s=z(l.params.integrationMode))}var p={};r.gdprConsent&&(void 0!==r.gdprConsent.consentString&&(p.consentData=r.gdprConsent.consentString),void 0!==r.gdprConsent.gdprApplies&&(p.gdprApplies=!!r.gdprConsent.gdprApplies),r.gdprConsent.vendorData&&r.gdprConsent.vendorData.vendorConsents&&void 0!==r.gdprConsent.vendorData.vendorConsents[91..toString(10)]&&(p.consentGiven=!!r.gdprConsent.vendorData.vendorConsents[91..toString(10)]));var u={uspString:r.uspConsent};this.metricsManager=new j(t,e,o),this.cache=new x(window.criteo_pubtag.context,this.slots,n),this.requestBuilder=new J(this.cache.filterNoBidSlots(this.slots),window.criteo_pubtag.context,this.metricsManager,new V(!1),t,s,n,e,{ccpaIabConsent:u,gdprConsent:p},o),this.url=this.requestBuilder.getUrl(),window.Criteo.prebid_adapters=window.Criteo.prebid_adapters||{},window.Criteo.prebid_adapters[this.auctionId]=this}var ct=(lt.prototype.eval=function(t){},lt);function lt(t){this.name=t}var pt=(ut.prototype.getCMPFrame=function(){for(var t,e=this.currentWindow,i=0;i<10;++i){try{e.frames.__uspapiLocator&&(t=e)}catch(t){}if(e===this.currentWindow.top)break;e=e.parent}return t},ut.prototype.hasCallerFunctionInWindow=function(){return"function"==typeof this.currentWindow.__uspapi},ut.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInWindow()||void 0!==this.getCMPFrame()},ut.prototype.retrieveCCPAConsent=function(i,t){void 0===t&&(t=parseInt("50",10));var r=a.CreateRunning(),o=!1,n=setTimeout(function(){o=!0,g.Warning("Timeout: Unable to resolve CCPA consent after "+t+"ms"),i(void 0)},t);this.executeCommand("getUSPData",1,function(t,e){o||(clearTimeout(n),e?(g.Debug("Consent retrieved in "+r.elapsed()+"ms"),ut.processResponseData(t,i)):(g.Warning("Error retrieving CCPA consent data from CMP"),i(void 0)))})},ut.processResponseData=function(t,e){t?e(t):(g.Warning("Unable to read CCPA consent data from CMP"),e(void 0))},ut.prototype.executeCommand=function(t,e,i){var n=this;if(!this.hasCallerFunctionInWindow()){g.Debug("No CMP defined on current frame");var s=this.getCMPFrame();this.currentWindow.__uspapi=function(t,e,i){if(!s)return g.Warning("CMP not found"),void i({msg:"CMP not found"},!1);var r=Math.random().toString(10),o={__uspapiCall:{command:t,parameter:e,callId:r}};n.uspapiCallbacks[r]=i,s.postMessage(o,"*")},this.currentWindow.addEventListener("message",function(t){var e="string"==typeof t.data?u(t.data):t.data;if(e&&e.__uspapiReturn&&e.__uspapiReturn.callId&&e.__uspapiReturn.returnValue){var i=e.__uspapiReturn;n.uspapiCallbacks&&n.uspapiCallbacks[i.callId]&&(n.uspapiCallbacks[i.callId](i.returnValue,i.success),delete n.uspapiCallbacks[i.callId])}},!1)}this.currentWindow.__uspapi(t,e,i)},ut.prototype.hasUserOptOut=function(t){return!(!t||!t.uspString||"1YNY"===t.uspString.toUpperCase()||"1YNN"===t.uspString.toUpperCase()||"1YN-"===t.uspString.toUpperCase()||"1-N-"===t.uspString.toUpperCase()||"1---"===t.uspString)},ut);function ut(t){this.uspapiCallbacks={},this.currentWindow=t}var ht=(ft.prototype.send=function(t,e,i,r){var o=void 0!==this.data?"POST":"GET",n=this.getXMLHttpRequest(o,t,e,i,r);if(void 0!==n)n.send(this.data);else{var s=this.getXDomainRequest(o,t,e,i,r);void 0!==s&&s.send(this.data)}},ft.prototype.getXMLHttpRequest=function(t,e,i,r,o){var n=new XMLHttpRequest;if("withCredentials"in n)return n.open(t,this.url,!0),n.timeout=o||ft.LOCAL_PASSBACK_TIMEOUT,this.contentType?n.setRequestHeader("Content-type",this.contentType):"POST"===t&&n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.withCredentials=this.withCredentials,n.onload=function(){4===n.readyState&&200===n.status?e(n.responseText):i(n.readyState,n.status)},n.onerror=function(){i(void 0,void 0)},r&&(n.ontimeout=r),n},ft.prototype.getXDomainRequest=function(t,e,i,r,o){if("undefined"!=typeof XDomainRequest){var n=new XDomainRequest;return n.timeout=o||ft.LOCAL_PASSBACK_TIMEOUT,n.open(t,this.url),n.onload=function(){void 0!==n.responseText?e(n.responseText):i(void 0,void 0)},n.onerror&&(n.onerror=function(){i(void 0,void 0)}),n.ontimeout&&r&&(n.ontimeout=r),n}},ft.LOCAL_PASSBACK_TIMEOUT=3e4,ft);function ft(t,e,i,r){void 0===r&&(r=!0),this.url=t,this.data=e,this.contentType=i,this.withCredentials=r}var gt,vt,mt=((gt=function(t,e){return(gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}gt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(yt,vt=ct),yt.prototype.setGDPRConsent=function(t){this.gdprConsent=t},yt.prototype.setCCPAIabConsent=function(t){this.ccpaIabConsent=t},yt.prototype.getMetricBuilder=function(){return this.metricBuilder},yt.prototype.eval=function(t){this.evalWithTimeout(t,void 0)},yt.prototype.evalWithTimeout=function(t,e){var r=this,i=yt.getCriteoAdapterBidRequest(),o=yt.getRequestAuctionStart(i),n=e||st(i&&i.timeout),s=new ot(this.metricBuilder,o,n),a=new J(this.slots,t.context,this.metricsManager,this.urlBuilder,this.profileId,this.integrationMode,this.networkId,this.adapterVersion,{ccpaIabConsent:this.ccpaIabConsent,gdprConsent:this.gdprConsent},void 0,this.viewportComputer);if(a.isValid()&&"undefined"!=typeof JSON){var d=a.getRequest(),c=JSON.stringify(d),l=a.getUrl(),p=new ht(l,c,"application/x-www-form-urlencoded");s.sendRequest(l),p.send(function(t){try{s.requestReceived();var e=u(t)||{},i=Q(e);void 0!==r.callbackSuccess&&r.callbackSuccess(JSON.stringify(e),i),r.metricsManager.storeMetric(s.finish(e.sid,i.slots))}catch(t){g.Error("Error onSuccess: "+t.toString())}},function(t,e){try{s.requestReceived(),void 0!==r.callbackError&&r.callbackError(t,e),r.metricsManager.storeMetric(s.finish())}catch(t){g.Error("Error onError: "+t.toString())}},function(){try{s.requestReceived(!0),void 0!==r.callbackTimeout&&r.callbackTimeout(),r.metricsManager.storeMetric(s.finish())}catch(t){g.Error("Error onTimeout: "+t.toString())}},this.timeout)}else this.callbackError(void 0,void 0)},yt.getCriteoAdapterBidRequest=function(){try{return window.pbjs._bidsRequested.find(function(t){return"criteo"===t.bidderCode})}catch(t){return}},yt.getRequestAuctionStart=function(t){return t&&t.auctionStart},yt.NAME="directbidding",yt);function yt(t,e,i,r,o,n,s,a,d,c,l,p){var u=vt.call(this,yt.NAME)||this;return u.profileId=t,u.urlBuilder=e,u.slots=i,u.metricBuilder=new N,u.metricsManager=p||new j(t),u.callbackSuccess=r,u.callbackError=o,u.callbackTimeout=n,u.timeout=s,u.networkId=a,u.integrationMode=d,u.adapterVersion=c,u.viewportComputer=l,u}var It,Ct,St=((It=function(t,e){return(It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}It(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(Et,Ct=ct),Et.prototype.eval=function(e){var i=this,t=this.gdprPrivacyProvider.readyToRetrieve(),r=this.ccpaPrivacyProvider.readyToRetrieve();if(t||r){var o,n,s=[],a=0;t&&(s.push(v),a=Math.max(a,parseInt("10000",10))),r&&(s.push(pt),a=Math.max(a,parseInt("50",10))),t&&this.gdprPrivacyProvider.retrieveGDPRConsent(function(t){s.splice(s.indexOf("GDPR"),1),0===s.length?i.evalWithCmp(e,t,n):o=t},a),r&&this.ccpaPrivacyProvider.retrieveCCPAConsent(function(t){s.splice(s.indexOf("CCPA"),1),0===s.length?i.evalWithCmp(e,o,t):n=t},a)}else this.evalWithCmp(e,void 0,void 0)},Et.prototype.evalWithCmp=function(t,e,i){var r=this;if(this.cache.silentModeEnabled())return g.Debug("Request ignored because the global silent mode is enabled"),void this.callbackSuccess("",void 0);setTimeout(function(){return r.onTimeout()},this.timeout||3e3),this.directBiddingEvent.setGDPRConsent(e),this.directBiddingEvent.setCCPAIabConsent(i),this.directBiddingEvent.evalWithTimeout(t,this.timeout)},Et.prototype.onSuccess=function(t,e){if(this.hasResponded=!0,void 0!==e){var i=u(t);this.cache.handleResponse(this.slots,i,e,this.hasTimeouted)}this.hasTimeouted||this.callbackSuccess(t,e),this.cache.clearExpiredItems()},Et.prototype.onError=function(t,e){this.hasResponded=!0,this.hasTimeouted||this.callbackError(t,e),this.cache.clearExpiredItems()},Et.prototype.onHttpTimeout=function(){this.hasResponded=!0,this.hasTimeouted||this.callbackTimeout(),this.cache.clearExpiredItems()},Et.prototype.onTimeout=function(){if(!this.hasResponded){this.hasTimeouted=!0;var t=this.cache.getCachedBids(this.slots);0===t.length?this.callbackTimeout():(g.Debug("Cached bids returned because of timeout: ['"+t.map(function(t){return t.impid}).join("', '")+"']"),this.directBiddingEvent.getMetricBuilder().withCachedBidsReturned(t),this.callbackSuccess(JSON.stringify({slots:t}),void 0))}},Et.prototype.getMetricBuilder=function(){return this.directBiddingEvent.getMetricBuilder()},Et.prototype.getBidCache=function(){return this.cache},Et.NAME="directbidding",Et);function Et(t,e,i,r,o,n,s,a,d,c,l,p,u,h){var f=Ct.call(this,Et.NAME)||this,g=Math.max(10*(s||3e3),3e3);return f.cache=new x(window.criteo_pubtag.context,i,a),f.directBiddingEvent=new mt(t,e,f.cache.filterNoBidSlots(i),function(t,e){return f.onSuccess(t,e)},function(t,e){return f.onError(t,e)},function(){return f.onHttpTimeout()},g,a,d,c,l,p),f.slots=i,f.callbackSuccess=r,f.callbackError=o,f.callbackTimeout=n,f.timeout=s,f.hasTimeouted=!1,f.hasResponded=!1,f.gdprPrivacyProvider=u||new v(window),f.ccpaPrivacyProvider=h||new pt(window),f}var bt={prebid:"criteo_fast_bid",standalone:"criteo_fast_bid_standalone"};var wt=(_t.LoadPolyfills=function(){_t.DefineIsArray(),_t.DefineIndexOf(),_t.DefineFilter()},_t.DefineIsArray=function(){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)})},_t.DefineIndexOf=function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){if(void 0===e&&(e=0),void 0===this)throw new TypeError("'this' is null or not defined");var i=this.length;if(0===i)return-1;if(i<=e)return-1;for(var r=Math.max(0<=e?e:i-Math.abs(e),0);r<i;){if(r in this&&this[r]===t)return r;r++}return-1})},_t.DefineFilter=function(){Array.prototype.filter||(Array.prototype.filter=function(t){if(void 0===this||void 0===this)throw new TypeError;var e=this.length;if("function"!=typeof t)throw new TypeError;for(var i=[],r=2<=arguments.length?arguments[1]:void 0,o=0;o<e;o++)if(o in this){var n=this[o];t.call(r,n,o,this)&&i.push(n)}return i})},_t);function _t(){}var Tt,Mt,Ot=(Rt.SetCookie=function(t,e,i,r,o){void 0===o&&(o=!1);var n=r||document,s=n.location.hostname,a=new Date;a.setTime(a.getTime()+60*i*60*1e3);var d="expires="+a.toUTCString();if(!o)return Rt.setCookieString(t,e,d,void 0,n),s;for(var c=s.split("."),l=0;l<c.length;++l){var p=c.slice(c.length-l-1,c.length).join(".");Rt.setCookieString(t,e,d,p,n);var u=Rt.GetCookie(t,r);if(u&&u===e)return p}return s},Rt.DeleteCookie=function(t,e,i){void 0===i&&(i=!1),Rt.SetCookie(t,"",0,e,i)},Rt.GetCookie=function(t,e){for(var i=0,r=(e||document).cookie.split(";");i<r.length;i++){var o=r[i],n=o.substr(0,o.indexOf("=")).replace(/^\s+|\s+$/g,""),s=o.substr(o.indexOf("=")+1);if(n===t)return decodeURIComponent(s)}},Rt.setCookieString=function(t,e,i,r,o){var n=t+"="+encodeURIComponent(e)+";"+i+";";r&&""!==r&&(n+="domain=."+r+";"),o.cookie=n+"path=/"},Rt);function Rt(){}function At(e,i){try{return decodeURIComponent(e)}catch(t){return void 0!==i?i:e}}(Mt=Tt=Tt||{})[Mt.None=0]="None",Mt[Mt.Cookie=1]="Cookie",Mt[Mt.LocalStorage=2]="LocalStorage";var Dt=(Bt.isSafariBrowser=function(){return null!==navigator.userAgent.match(Bt.SAFARI_CHECK_REGEX)},Bt.isAndroidBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("android")},Bt.isFirefoxBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("firefox")},Bt.isEdgeChromiumBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("edg/")},Bt.isEdgeLegacyBrowser=function(){return-1<navigator.userAgent.toLowerCase().indexOf("edge/")},Bt.prototype.synchronizeCriteoUid=function(t){var e=this;if((t||Bt.isSafariBrowser()||Bt.isAndroidBrowser()||Bt.isFirefoxBrowser()||Bt.isEdgeChromiumBrowser()||Bt.isEdgeLegacyBrowser())&&this.topWin.addEventListener)if("complete"===this.topDoc.readyState)this.appendGumIframeIfDoesNotExist();else{var i=function(){e.topDoc.removeEventListener("DOMContentLoaded",i),e.topWin.removeEventListener("load",i),e.appendGumIframeIfDoesNotExist()};this.topWin.addEventListener("load",i,!1),this.topDoc.addEventListener("DOMContentLoaded",i,!1)}},Bt.prototype.appendGumIframeIfDoesNotExist=function(){var n=this,t=this.createGumIframe();this.topDoc.getElementById(Bt.SYNCFRAME_ID)||(this.topWin.addEventListener("message",function(t){var e=t.data;if(e&&e.isCriteoMessage)if(t.stopImmediatePropagation(),e.optout)n.setClientSideOptOut(),n.deleteClientSideUid(),n.deleteClientSideIdfs(),n.deleteClientSideSecureId(),n.deleteBundle();else{if(e.uid&&n.setClientSideUid(e.uid),e.idfs&&n.setClientSideIdfs(e.idfs),e.callbacks)for(var i=0,r="string"==typeof e.callbacks?[e.callbacks]:e.callbacks;i<r.length;i++){var o=r[i];(new Image).src=o}else e.bundle&&n.setBundle(e.bundle);e.removeSid?n.deleteClientSideSecureId():e.sid&&n.setClientSideSecureId(e.sid)}},!0),this.topDoc.body.appendChild(t))},Bt.prototype.getClientSideUid=function(){return this.getFromAllStorages(Bt.GUID_COOKIE_NAME)},Bt.prototype.setClientSideUid=function(t){this.writeOnAllStorages(Bt.GUID_COOKIE_NAME,t,Bt.GUID_RETENTION_TIME_HOUR)},Bt.prototype.deleteClientSideUid=function(){this.deleteFromAllStorage(Bt.GUID_COOKIE_NAME)},Bt.prototype.getBundle=function(){return this.getFromAllStorages(Bt.BUNDLE_COOKIE_NAME)},Bt.prototype.setBundle=function(t){this.writeOnAllStorages(Bt.BUNDLE_COOKIE_NAME,t,Bt.GUID_RETENTION_TIME_HOUR)},Bt.prototype.deleteBundle=function(){this.deleteFromAllStorage(Bt.BUNDLE_COOKIE_NAME)},Bt.prototype.getClientSideOptOut=function(){var t=this.getFromAllStorages(Bt.OPTOUT_COOKIE_NAME);return{value:"1"===t.value,origin:t.origin}},Bt.prototype.setClientSideOptOut=function(){this.writeOnAllStorages(Bt.OPTOUT_COOKIE_NAME,"1",Bt.OPTOUT_RETENTION_TIME_HOUR)},Bt.prototype.deleteClientSideIdfs=function(){this.deleteFromAllStorage(Bt.IDFS_COOKIE_NAME)},Bt.prototype.getClientSideIdfs=function(){return this.getFromAllStorages(Bt.IDFS_COOKIE_NAME)},Bt.prototype.setClientSideIdfs=function(t){this.writeOnAllStorages(Bt.IDFS_COOKIE_NAME,t,Bt.GUID_RETENTION_TIME_HOUR)},Bt.prototype.getClientSideSecureId=function(){return this.getFromAllStorages(Bt.SECURE_ID_COOKIE_NAME)},Bt.prototype.setClientSideSecureId=function(t){this.writeOnAllStorages(Bt.SECURE_ID_COOKIE_NAME,t,Bt.GUID_RETENTION_TIME_HOUR)},Bt.prototype.deleteClientSideSecureId=function(){this.deleteFromAllStorage(Bt.SECURE_ID_COOKIE_NAME)},Bt.prototype.getClientSideLocalWebId=function(){return this.getFromAllStorages(Bt.LOCAL_WEB_ID_COOKIE_NAME)},Bt.prototype.checkCookiesAreWriteable=function(){var t="cto_writeable";Ot.SetCookie(t,"1",1,this.topDoc,!0);var e="1"===Ot.GetCookie(t,this.topDoc);return Ot.DeleteCookie(t,this.topDoc,!0),e},Bt.prototype.createGumIframe=function(){var t=this.topDoc.createElement("iframe"),e=this.buildSyncframeSrc();return t.src=e,t.id=Bt.SYNCFRAME_ID,t.style.display="none",t},Bt.prototype.writeOnAllStorages=function(t,e,i){this.localStorageEnabled&&this.localStorageHelper.setItem(t,e),Ot.SetCookie(t,e,i,this.topDoc,!0)},Bt.prototype.getFromAllStorages=function(t){var e,i=Ot.GetCookie(t,this.topDoc);return this.localStorageEnabled&&(e=this.localStorageHelper.getItem(t)||void 0),{value:i||e,origin:(i&&Tt.Cookie)|(e&&Tt.LocalStorage)}},Bt.prototype.deleteFromAllStorage=function(t){Ot.DeleteCookie(t,this.topDoc,!0),this.localStorageEnabled&&this.localStorageHelper.removeItem(t)},Bt.prototype.getTld=function(){var t=Ot.SetCookie(Bt.TLD_TEST_COOKIE_NAME,"test",1,this.topDoc,!0);return Ot.DeleteCookie(Bt.TLD_TEST_COOKIE_NAME,this.topDoc,!0),t},Bt.prototype.buildSyncframeSrc=function(){var t,e,i=this.getClientSideUid(),r=this.getClientSideIdfs(),o=this.getClientSideOptOut(),n=this.getClientSideSecureId(),s=this.getClientSideLocalWebId(),a=this.getBundle(),d=this.getTld(),c=encodeURIComponent((t=this.topUrl,(e=document.createElement("a")).href=t,{protocol:e.protocol,host:e.host,hostname:e.hostname,pathname:"/"===e.pathname[0]?e.pathname.slice(1):e.pathname,search:e.search,href:e.href}).hostname),l=this.canWriteCookies,p="https://gum.criteo.com/syncframe?topUrl="+c+(this.isDebug?"&debug=1":"");return p+="#"+JSON.stringify({optout:o,uid:i,idfs:r,sid:n,origin:"publishertag",version:83,lwid:s,tld:d,bundle:a,topUrl:c,cw:l})},Bt.GUID_COOKIE_NAME="cto_idcpy",Bt.GUID_RETENTION_TIME_HOUR=9360,Bt.IDFS_COOKIE_NAME="cto_idfs",Bt.SECURE_ID_COOKIE_NAME="cto_sid",Bt.LOCAL_WEB_ID_COOKIE_NAME="cto_lwid",Bt.BUNDLE_COOKIE_NAME="cto_bundle",Bt.OPTOUT_COOKIE_NAME="cto_optout",Bt.OPTOUT_RETENTION_TIME_HOUR=43200,Bt.TLD_TEST_COOKIE_NAME="cto_pub_test_tld",Bt.SYNCFRAME_ID="criteo-syncframe",Bt.SAFARI_CHECK_REGEX=/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[^ ]+ \(KHTML, like Gecko\) Version\/([^ ]+)( Mobile\/[^ ]+)? Safari\/[^ ]+$/i,Bt);function Bt(t,e,i){this.isDebug=e,this.topWin=t,this.topDoc=t.document,this.localStorageHelper=new o(this.topWin),this.localStorageEnabled=this.localStorageHelper.checkLocalStorage(),this.canWriteCookies=this.checkCookiesAreWriteable(),this.topUrl=i}var xt,Pt,kt=(Ut.getHighestAccessibleWindow=function(t){var e=t,i=!1;try{for(;e.parent.document!==e.document;){if(!e.parent.document){i=!0;break}e=e.parent}}catch(t){i=!0}return{topFrame:e,err:i}},Ut.getHighestAccessibleUrl=function(t){var e=t.topFrame;if(!t.err)return e.location.href;try{var i=e.top.location.href;if(i)return i}catch(t){}try{var r=e.location.ancestorOrigins;if(r)return r[r.length-1]}catch(t){}return e.document.referrer},Ut.inIframe=function(){try{return window.self!==window.top}catch(t){return!0}},Ut);function Ut(){}(Pt=xt=xt||{})[Pt.InFriendlyIframe=1]="InFriendlyIframe",Pt[Pt.InUnfriendlyIframe=2]="InUnfriendlyIframe",Pt[Pt.DirectIntegration=3]="DirectIntegration";var Nt=(Ft.prototype.getContextFlags=function(){var t="";return t+=this.debugMode?"&debug=1":"",t+=this.noLog?"&nolog=1":""},Ft.prototype.getDisplayContext=function(t){return kt.inIframe()?t.err?xt.InUnfriendlyIframe:xt.InFriendlyIframe:xt.DirectIntegration},Ft.prototype.getQueryStringParams=function(t){var e={},i=t.split("?");if(1<i.length)for(var r=0,o=i[1].split("&");r<o.length;r++){var n=o[r].split("=");e[At(n[0])]=At(n[1])}return e},Ft.prototype.synchronizeCriteoUid=function(){var t=this.cookieSynchronizerFactory();this.ctoIdOnPublisherDomain=t.getClientSideUid().value,this.isOptOut=t.getClientSideOptOut().value,this.idfs=t.getClientSideIdfs().value,this.secureId=t.getClientSideSecureId().value,this.bundle=t.getBundle().value,t.synchronizeCriteoUid()},Ft.prototype.getIdfs=function(){return[this.idfs,this.secureId].join(":")},Ft.prototype.setIdfs=function(t){var e=t.split(":");e[0]&&(this.idfs=e[0]),e[1]&&(this.secureId=e[1])},Ft.prototype.computeShouldIgnoreSilentMode=function(){return Math.floor(100*Math.random())<5},Ft.prototype.setSilentModeIgnored=function(){this.silentModeIgnored=!0},Ft.prototype.checkIfUserHasOptOutForCCPA=function(e){var i=this;this.ccpaPrivacyProvider.readyToRetrieve()?this.ccpaPrivacyProvider.retrieveCCPAConsent(function(t){e(i.ccpaPrivacyProvider.hasUserOptOut(t))}):e(!1)},Ft);function Ft(t,e,i,r){var o=this;this.charset=t.charset||t.characterSet||"";var n=kt.getHighestAccessibleWindow(e);this.displayContext=this.getDisplayContext(n),this.highestAccessibleUrl=kt.getHighestAccessibleUrl(n),this.ccpaPrivacyProvider=i||new pt(e),this.cookieSynchronizerFactory=r||function(){return new Dt(n.topFrame,o.debugMode,o.highestAccessibleUrl)},this.checkIfUserHasOptOutForCCPA(function(t){t||o.synchronizeCriteoUid()});var s,a=this.getQueryStringParams(this.highestAccessibleUrl);this.debugMode="1"===a.pbt_debug||!1,this.noLog="1"===a.pbt_nolog||!1,this.shouldIgnoreSilentMode=this.computeShouldIgnoreSilentMode(),this.silentModeIgnored=!1,this.debugMode&&(s=d.Debug,g.LOGLEVEL=s),this.location=e.location,this.dising=!1,this.ct0=void 0,this.wpdt0=void 0,this.isAdBlocked=void 0,this.rtaVarNames=[]}var Lt=function(){this.bids={},this.lineItemRanges=[],this.impIds=[]};var Wt,qt,Kt,Ht,Gt,zt=(Vt.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,r=t;i<r.length;i++){var o=r[i];this.events.push(o)}this.evalEvents()},Vt.prototype.evalEvents=function(){for(var t=0;t<this.events.length;){var e=this.events[t];if("conditionalEvent"!==e.name||e.canEval()){var i=this.events.splice(t,1);try{i[0].eval(this)}catch(t){g.Error("An exception occurred processing an event: "+t.toString())}}else t++}},Vt.VERSION=83,Vt);function Vt(){this.standaloneBidder=new Lt,this.events=[],this.context=new Nt(document,window),g.Debug("Publisher Tag loaded")}function Xt(t){function e(){try{return i.apply(this,arguments)}catch(t){g.Error("Exception caught: "+t.toString())}}var i=t;for(var r in e.prototype=i.prototype,i)i.hasOwnProperty(r)&&(e[r]=i[r]);return e}window.criteo_pubtag||(wt.LoadPolyfills(),window.criteo_pubtag=new zt),window.Criteo=function t(e){for(var i in e)if(i in e){var r=e[i];"function"==typeof r?e[i]=Xt(r):"object"==typeof r&&(e[i]=t(r))}return e}({PubTag:{Adapters:{Prebid:at},DirectBidding:{DirectBiddingEvent:St,DirectBiddingSlot:tt,DirectBiddingUrlBuilder:V,Size:m}},events:window.Criteo?window.Criteo.events:[],passbackEvents:window.Criteo?window.Criteo.passbackEvents:[],usePrebidEvents:!window.Criteo||window.Criteo.usePrebidEvents}),!1!==window.Criteo.usePrebidEvents&&(window.Criteo.events=(Wt=window.Criteo.events,qt={push:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(void 0!==t)for(var i=0,r=t;i<r.length;i++){var o=r[i];"function"==typeof o&&Xt(o)()}}},Wt&&Array.isArray(Wt)&&qt.push.apply(qt,Wt),qt)),Kt="prebid",Ht=new o,Gt=bt[Kt],Ht.checkLocalStorage()&&null===Ht.getItem(Gt,864e5)&&new ht("https://static.criteo.net/js/ld/publishertag."+Kt+".js",void 0,void 0,!1).send(function(t){Ht.setItem(Gt,t,864e5)},function(t,e){g.Error("Could not update FastBid"+(e?" ("+e+")":""))})}();


originKey: moc.sdaurpmi.:https:443
scope: moc.sdaurpmi.:https:443
key: lance300x250gr-r14614146:session-data
value:
  v2_c12fffa9477b2cbb274dfca93f5b0fc9_511deb2e-ae06-4384-b141-92a9e6b7bd3d-tuct4a5eb6d_1581534816_1581534820_CNawjgYQ-91JGPWCydaDLiAEKAQwHzjb1AdAgIgQSN_XngFQ____________AVgAYAM


originKey: moc.sdaurpmi.:https:443
scope: moc.sdaurpmi.:https:443
key: cto_bundle
value:
  GOUTt19wZUE3STBsWTdlTTU0RnhtdzZlaDk0MXZremh4NCUyQkZrYkMxQkd4c3Rra3hjSkpKUGUwRDB3UEpWamM1RUR1Tk1CMzRMZ3dHZDMxczhwYklwTk55ekJxYTJRMG5OMUpqZHI0YlRRWkU1QTJpenlhOU5kSEt3VVBOTkdxV3pJYUwlMkJTZU5PNFFhR3YzRzRZSXU4JTJCbmZuRCUyRjB4ZUZWR1clMkJhbnIlMkJDWHl3T3QwTDhsV1pNRVd4WnUyUEM3TkpmRmFxM3g


originKey: rb.moc.emirpoiraid.:https:443
scope: rb.moc.emirpoiraid.:https:443
key: google_adsense_settings
value:
  {"ca-pub-2703201306688417":["ca-pub-2703201306688417",[[1]],[]],"ca-pub-5834186694177425":["ca-pub-5834186694177425",[[1]],[]]}


originKey: rb.moc.lou.www.:https:443
scope: rb.moc.lou.www.:https:443
key: UOLPlayer-core
value:
  {"url":"//player.mais.uol.com.br/js/uolplayer.core.min.js?v=3.0.25-release","key":"core","type":"javascript","checksum":"core","crossOrigin":"anonymous","size":230665,"crc32":-1749420453,"createdAt":1581725938514,"data":"UOLPlayer.prototype.initialize=function(e){if(sh=UOLPlayer.getUrlParameter(\"sh\"),mp=UOLPlayer.getUrlParameter(\"mp\"),pingback=UOLPlayer.getUrlParameter(\"pingback\"),fd=UOLPlayer.getUrlParameter(\"fd\"),sh&&\"undefined\"!=typeof sh&&mp&&\"undefined\"!=typeof mp){var t={logName:\"metrics-search\",module:\"uolmais-drakkar\",hash:sh,mp:mp};\"boolean\"==typeof pingback&&(t.pingback=pingback),\"boolean\"==typeof fd&&(t.fd=fd),UOLPlayer.searchLog(t)}if(UOLPlayer.loaded=!0,!e)return UOLPlayer.e(\"Mal uso do player: wrapper inválido: \",e);if(this.wrapper=e,this.parentNode=this.wrapper.parentNode||this.wrapper,this.originalWrapper=this.wrapper.cloneNode(!1),!e.getData(\"materialized\")){if(this.options={subtitle:{disabled:this.wrapper.getData(\"subtitle\",UOLPlayer.urlParameter.subtitle)===!1,startWith:this.wrapper.getData(\"subtitle\",UOLPlayer.urlParameter.subtitle)}},this.key=UOLPlayer.urlParameter.key?\"&key=\"+UOLPlayer.urlParameter.key:\"\",this.iuDFP=\"\",this.replay=!1,this.hlsFallback=this.wrapper.getData(\"hlsFallback\"),this.hashId=this.hlsFallback?this.wrapper.getData(\"hashId\"):UOLPlayer.createHashId(),this.mediaId=UOLPlayer.parseInt(this.wrapper.getData(\"mediaid\",UOLPlayer.config.mediaId)),this.startTime=UOLPlayer.parseInt(this.wrapper.getData(\"start\",UOLPlayer.config.startTime)),this.startHd=this.wrapper.getData(\"starthd\",UOLPlayer.config.startHd),this.preload=this.wrapper.getData(\"preload\",UOLPlayer.config.preload),this.skin=this.wrapper.getData(\"skin\",UOLPlayer.config.skin)||UOLPlayer.skin,this.poster=this.wrapper.getData(\"poster\",UOLPlayer.config.poster),this.mediaType=this.wrapper.getData(\"type\",UOLPlayer.urlParameter.type),this.totaltime=this.wrapper.getData(\"totaltime\",UOLPlayer.urlParameter.totaltime)||this.wrapper.getData(\"duration\",UOLPlayer.urlParameter.duration)||!1,this.flashFallback=this.wrapper.getData(\"flashFallback\",UOLPlayer.toBoolean(UOLPlayer.urlParameter.flashFallback)),this.forcedfp=this.wrapper.getData(\"forcedfp\",UOLPlayer.urlParameter.forcedfp),this._detach=this.wrapper.getData(\"detach\",!UOLPlayer.isIframe&&UOLPlayer.urlParameter.detach),this.download=UOLPlayer.toBoolean(this.wrapper.getData(\"download\",UOLPlayer.urlParameter.download)),this.coverMessage=this.isMobile&&this.wrapper.getData(\"covermessage\",UOLPlayer.urlParameter.coverMessage)||!1,this.detachOnce=!1,this.serverTime={},this.clientTime={},this.canTestsplit=!UOLPlayer.isIOS,this.useResume=UOLPlayer.toBoolean(this.wrapper.getData(\"resume\",UOLPlayer.urlParameter.resume)),this.syntheticABRLib=!1,this.useResume&&(this.startTime=UOLPlayer.Resume.get(this.mediaId).time),e.setData(\"mediaId\",this.mediaId),UOLPlayer.isIframe&&(UOLPlayer.mediaId=this.mediaId),this.autoplay=this._autoplay=this.wrapper.getData(\"autoplay\",UOLPlayer.config.autoplay),this.autoplayMobile=!1,UOLPlayer.isMobile&&this.autoplay?(this.autoplay=!(\"iOS\"===UOLPlayer.info.os&&UOLPlayer.info.osMajorVersion<=9),this.autoplay=!(\"wifi\"!==UOLPlayer.info.connectionType||!this.autoplay),this.autoplay=!!this.wrapper.getData(\"changevideo\")||this.autoplay,this.autoplayMobile=this.autoplay):UOLPlayer.isMobile&&(this.autoplay=!1),UOLPlayer.urlParameter.startMute===!1?this.startMute=!1:(this.startMute=!UOLPlayer.isMobile&&this.wrapper.getData(\"startmute\",UOLPlayer.config.startMute),this.startMute=this.wrapper.getData(\"changevideo\")?this.wrapper.getData(\"startmute\"):this.startMute),this.initBackbone(),null===this.mediaId||void 0===this.mediaId||isNaN(this.mediaId)||!UOLPlayer.isNumeric(this.mediaId))return this.mountMarkup(),this.wrapper.addClass(\"_video\"),this.setError(UOLPlayer.ElementErrorHandler.errorCodes.INVALID_MEDIA_ID),void UOLPlayer.e(\"[ UOLPlayer ] mediaId não atribuído\");if(this.observer=(new UOLPlayer.observeDOM).observe(this.wrapper.parentNode.parentNode||this.wrapper.parentNode,function(e){var t=document.getElementById(\"UOLPlayer_\"+this.hashId);null!==t&&void 0!==t||this.destroy()}.bind(this)),this.controls=this.wrapper.getData(\"controls\",UOLPlayer.config.controls),this.related=this.wrapper.getData(\"related\",UOLPlayer.config.related),this.autorep=this.wrapper.getData(\"autorep\",UOLPlayer.config.autorep),this.playlist=this.wrapper.getData(\"playlist\",UOLPlayer.config.playlist),this.cover=this.wrapper.getData(\"cover\",UOLPlayer.config.cover),this.title=this.wrapper.getData(\"title\",UOLPlayer.config.title),this.share=this.wrapper.getData(\"share\",UOLPlayer.config.share),this.thumbTooltip=this.wrapper.getData(\"thumbtooltip\",UOLPlayer.config.thumbTooltip),this.onDemand=this.wrapper.getData(\"ondemand\")!==!1&&UOLPlayer.urlParameter.onDemand!==!1&&(UOLPlayer.isMobile||UOLPlayer.onDemand),this.onDemandClicked=this.wrapper.getData(\"onDemandClicked\")===!0,this._dfp=this.wrapper.getData(\"dfp\",UOLPlayer.config.dfp),this.webmEnabled=!1,this.isFlash=!1,this.externalCDN=!1,this.isAutoplayOk=!1,this.isAutoplayMuted=!1,this.rebufferingCount=0,this.forceCDN=UOLPlayer.urlParameter.cdn,this.revision=0,this.autoplayRejects=0,this.pauseCounts=0,this.retryCounts=0,this.recommended=UOLPlayer.urlParameter.recommended!==!1,this.forwardRewindBase=15,this.levelList=[],this.headers={},this.logHeaders=[\"cache-hit\",\"x-cache-error\",\"x-error-reason\",\"server\",\"content-length\"],!window.UOLPlayer[this.mediaId]||window.UOLPlayer[this.mediaId].wrapper!==this.wrapper){this.mountMarkup(),this.storeIntance();var i=this.wrapper.getData(\"previousStates\");if(i&&window.JSON&&(i=JSON.parse(JSON.parse(i))),this.tracker=new UOLPlayer.Tracker(UOLPlayer.toBoolean(UOLPlayer.urlParameter.trackerDebug),i),this.playerStarted=!1,this.chronoLoadApi=new UOLPlayer.Chronometer(\"loadApi\"),this.chronoFirstMilestone=new UOLPlayer.Chronometer(\"firstMilestone\"),this.chronoAdDuration=new UOLPlayer.Chronometer(\"adDuration\"),this.dataParser=this.createDataParser(),this.wrapper.removeClass(\"_video\").removeClass(\"_audio\"),\"audio\"===this.mediaType?this.wrapper.addClass(\"_audio\"):(this.mediaType=\"video\",this.wrapper.addClass(\"_video _mouseout\")),this.statistic={time:0,size:0,amountTime:0,amountSize:0},e.setData(\"materialized\",!0),e.setAttribute(\"id\",\"UOLPlayer_\"+this.hashId),this.checkFixedPoster(),this.checkSize(),this.logCreated(),this.onDemand===!0&&(this.mountMarkup(),this.wrapper.getData(\"detachstate\")===UOLPlayer.Detach.states.DETACHED&&(this.detach=new UOLPlayer.Detach(this,this.wrapper),this.detach.detachPlayer(!0)),this.wrapper.getElementsByClassName(\"bt-play\")[0].show(),this.setClick=function(){var e=this.wrapper.getElementsByClassName(\"up-bt-play-big\")[0];e?e.addEventListener(\"click\",function(e){this.syntheticPlay=void 0!==this.syntheticPlay?this.syntheticPlay:e.isTrusted,this.play()}.bind(this)):this._setClick||(this._setClick=setTimeout(this.setClick.bind(this),400))}.bind(this),this.setForwardRewind=function(){this.jumpSize=0,this.jumpTimeout=!1,this.jump=function(e){this.forward(this.jumpSize),this.jumpSize=0,this.isPlaying()||this.play(),this.wrapper.getElementsByClassName(\"rewind-jump-step\")[0].removeClass(\"new\").innerHTML=\"\",this.wrapper.getElementsByClassName(\"forward-jump-step\")[0].removeClass(\"new\").innerHTML=\"\"}.bind(this),this.jumpController=function(e){if(e<0)var t=this.wrapper.getElementsByClassName(\"rewind-jump-step\")[0],a=\"-\";else var t=this.wrapper.getElementsByClassName(\"forward-jump-step\")[0],a=\"+\";this.jumpTimeout&&(clearTimeout(this.jumpTimeout),this.jumpTimeout=!1),this.jumpSize+=this.forwardRewindBase*e,this.jumpTimeout||(t.innerHTML=a+Math.abs(this.jumpSize),t.addClass(\"new\"),this.jumpTimeout=setTimeout(function(){this.jump(t)}.bind(this),500))}.bind(this);var e=this.wrapper.getElementsByClassName(\"up-bt-forward-spin\")[0],t=this.wrapper.getElementsByClassName(\"up-bt-rewind-spin\")[0];e&&e.addEventListener(\"click\",function(e){this.jumpController(1)}.bind(this)),t&&t.addEventListener(\"click\",function(e){this.jumpController(-1)}.bind(this))}.bind(this),this.autoplay===!1?(this.onDemandClicked=!0,this.wrapper.addClass(\"_ondemand\"),this.chronoLoadApi.start(),this._play=function(){if(this.autoplay=!0,\"audio\"===this.mediaType){var e=this.wrapper.getElementsByClassName(\"bt-play\")[0]||this.wrapper.getElementsByClassName(\"up-control-bar\")[0];e&&e.remove()}this.wrapper.addClass(\"_loading\"),this.initiated||(this.initiated=!0,UOLPlayer.onInit(this)),this.init()}.bind(this),this.play=function(){\"function\"==typeof this.clickBait?this.clickBait(this._play):this._play()}.bind(this),this.dataParser.loadApi().then(function(){this.dataParser.dataParsedPromise().then(function(){if(this.checkFixedPoster(),this.mountDownload(),\"audio\"===this.mediaType){var e=this.wrapper.getElementsByClassName(\"up-bt-play\")[0],t=function(){this.play(),e.removeEventListener(\"click\",t)}.bind(this);e?e.addEventListener(\"click\",t):setTimeout(function(){e=this.wrapper.getElementsByClassName(\"up-bt-play\")[0],e&&e.addEventListener(\"click\",t)}.bind(this),400),this.wrapper.getElementsByClassName(\"up-time-duration\")[0].innerHTML=this.data.item.duration.formatted}else\"video\"===this.mediaType&&(UOLPlayer.each(this.wrapper.getElementsByClassName(\"up-poster\"),function(e){UOLPlayer.setPoster(this,e)}.bind(this)),this.setClick(),this.setForwardRewind());this.backbone.data.parsed()}.bind(this))}.bind(this))):this.autoplay===!0&&(this.setClick(),this.setForwardRewind())),UOLPlayer.isMobile&&!this.autoplay&&(this.mountMarkup(),this.wrapper.addClass(\"first-click\").removeClass(\"_loading\"),this.dataParser.loadApi().then(function(){this.dataParser.dataParsedPromise().then(function(){\"video\"===this.mediaType?this.abrLib&&\"dash\"==this.abrLib.libName?this.abrLib.then(function(e){this.data&&this.data.formats&&this.data.formats[\"default\"]&&\"DASH\"===this.data.formats[\"default\"].type&&this.dashEnabled&&e&&!e.error?this.mediaPlayer=new UOLPlayer.DASH(this,this.wrapper):this.mediaPlayer=new UOLPlayer.VideoPlayer(this,this.wrapper)}.bind(this)):this.abrLib&&\"hls\"==this.abrLib.libName?this.abrLib.then(function(e){this.data&&this.data.formats&&this.data.formats[\"default\"]&&\"HLS\"===this.data.formats[\"default\"].type&&this.hlsEnabled&&e&&!e.error?this.mediaPlayer=new UOLPlayer.HLS(this,this.wrapper):this.mediaPlayer=new UOLPlayer.VideoPlayer(this,this.wrapper)}.bind(this)):this.mediaPlayer=new UOLPlayer.VideoPlayer(this,this.wrapper):this.mediaPlayer=new UOLPlayer.AudioPlayer(this,this.wrapper);var e=this.wrapper.getElementsByClassName(\"video-element\")[0];this.clickBait=function(t){if(this.syntheticPlay=void 0!==this.syntheticPlay?this.syntheticPlay:t.isTrusted,this.fingers=this.fingers||0,this.fingers+=1,this.fingers>1)return void UOLPlayer.i(\"disable multitouch\");t&&t.stopPropagation&&t.stopPropagation();var a=function(){this.clickBait=void 0,\"function\"==typeof t?t.call(this):this.play()}.bind(this);if(this.onDemand===!1)return a();var i=function(){this.wrapper.removeClass(\"first-click\"),\"audio\"===this.mediaType?(e=this.wrapper.getElementsByClassName(\"audio-element\")[0],e.play()):(e=this.wrapper.getElementsByClassName(\"video-element\")[0],UOLPlayer.isInstantArticle&&UOLPlayer.isIOS?e.removeEventListener(\"touchend\",this.clickBait):e.removeEventListener(\"click\",this.clickBait))}.bind(this);\"video\"===this.mediaType?this.abrLib&&this.abrLib.then(function(e){this.mediaPlayer.attachMedia(),i(),a()}.bind(this)):(this.mediaPlayer.setAudio(),i(),a())}.bind(this),UOLPlayer.isInstantArticle&&UOLPlayer.isIOS?e&&e.addEventListener(\"touchend\",this.clickBait):e&&e.addEventListener(\"click\",this.clickBait),this.backbone.data.parsed()}.bind(this))}.bind(this))),this.onDemand!==!1&&this.autoplay!==!0||this.init(),void 0!==this.wrapper.getElementsByClassName(\"bt-play\")){var r=this.wrapper.getElementsByClassName(\"bt-play\")[0];this.totaltime&&(r.getElementsByClassName(\"up-play-time\")[0].innerHTML=this.totaltime),this.coverMessage&&this.onDemand===!0&&(this.wrapper.addClass(\"_covermessage\"),r.addClass(\"cover-message\").getElementsByClassName(\"up-play-time\")[0].innerHTML=this.coverMessage)}this.logger=new UOLPlayerLog(this),UOLPlayer.isMobile?(this.logger.log(\"UOLPlayer - ver:\"+UOLPlayer.version),this.wrapper.addClass(\"is-mobile\")):this.wrapper.addClass(\"is-desktop\"),this.logger.log(\"ENVIRONMENT: \"+UOLPlayer.environment()),this.logger.log(\"CONNECTION TYPE: \"+UOLPlayer.info.connectionType),this.bindOnlineMonitor();try{if(UOLPlayer.getURL().indexOf(\"simulateBug=app\")>-1){window.console&&window.console.info&&window.console.info(\"SIMULATE BUG APP\");var s;setTimeout(function(){a+b},null!==(s=UOLPlayer.getURL().match(/simulateBugTime=(\\d+)/))?parseInt(s.pop()):7e3)}}catch(o){}this.backbone.core.init()}}},UOLPlayer.prototype.logCreated=function(){UOLPlayer.instancesMaterialized+=1,setTimeout(function(){UOLPlayerLog.send(this,\"create\")}.bind(this),100)},UOLPlayer.prototype.logFirstMilestone=function(e,t){if(this.playerStarted&&!this.firstMilestoneSended){this.firstMilestoneSended=!0;var a=e;[\"videoBegin\",\"error\"].indexOf(e)===-1&&(a=this.getFullState());var i={};t=t||{},t.endSource=e,t.endPoint=a,t.mediaStaterd=!!this._videoBeginSended,t.timeAd=this.chronoAdDuration.getCurrentTime().elapsedTime.time,t.adsActive=this.adsActive,t.adsDone=this.adsDone,this.ads&&(i.ad=this.ads.adPos,i.adObj=this.ads.ad),i.time=this.chronoFirstMilestone.getCurrentTime().elapsedTime,i.payload=t,this.logger.send(\"firstMilestone\",i)}},UOLPlayer.prototype.init=function(){if(this.backbone.core.init(),this.chronoVideoBegin=new UOLPlayer.Chronometer(\"videoBegin\"),this.chronoVideoBegin.start(),this.play=function(){\"function\"==typeof this.clickBait&&this.clickBait(),\"P\"!==this.data.item.type&&this.onClick()}.bind(this),null===this.wrapper||void 0===this.wrapper)return void UOLPlayer.e(\"[ UOLPlayer ] container inexistente ou não atribuído\");if(1==UOLPlayer.toBoolean(this.wrapper.getData(\"minimal\"))&&(this.cover=!1,this.controls=!1,this.preload=\"metadata\",this.share=!1,this.related=!1,this.dfp=!1,this.wrapper.addClass(\"_minimal\")),null===this.mediaId||void 0===this.mediaId||isNaN(this.mediaId)||!UOLPlayer.isNumeric(this.mediaId))return this.setError(UOLPlayer.ElementErrorHandler.errorCodes.INVALID_MEDIA_ID),void UOLPlayer.e(\"[ UOLPlayer ] mediaId não atribuído\");if(this.mountMarkup(),UOLPlayer.toBoolean(UOLPlayer.urlParameter.debugMediaElement))for(var e=this.wrapper.querySelector(\".video-element\"),t=[\"abort\",\"canplay\",\"canplaythrough\",\"change\",\"drag\",\"dragend\",\"dragenter\",\"dragleave\",\"dragover\",\"dragstart\",\"drop\",\"durationchange\",\"emptied\",\"encrypted\",\"ended\",\"error\",\"focus\",\"focusin\",\"focusout\",\"input\",\"interruptbegin\",\"interruptend\",\"keydown\",\"keypress\",\"load\",\"loadeddata\",\"loadedmetadata\",\"loadstart\",\"mousedown\",\"mousemove\",\"mouseout\",\"mouseover\",\"mouseup\",\"mousewheel\",\"mozaudioavailable\",\"onkeyup\",\"onMSVideoFormatChanged\",\"onMSVideoFrameStepCompleted\",\"onMSVideoOptimalLayoutChanged\",\"onselect\",\"pause\",\"play\",\"playing\",\"progress\",\"ratechange\",\"readystatechange\",\"reset\",\"resize\",\"seeked\",\"seeking\",\"stalled\",\"suspend\",\"timeupdate\",\"volumechange\",\"waiting\"],a=0;a<t.length;++a)e.addEventListener(t[a],function(e){this.desbuga!==!1&&UOLPlayer.l([e.type,e])}.bind(this));if(UOLPlayer.isIE&&UOLPlayer.info.browserMajorVersion<11&&!UOLPlayer.isEdge&&!UOLPlayer.isMobile)return void this.setError(UOLPlayer.ElementErrorHandler.errorCodes.BROWSER_DEPRECATED);if(this.flashFallback)return void this.embedFlash(\"Media MP4 encoded with FLV\");this.ads=null,this.metrics=null,this.ui=null,this.timeouts=null,this.playing=!1,this.seeking=!1,this.fullscreen=!1,this.adsActive=!1,this.adsDone=!1,this.retryTimeout=3e3,this.lastPauseTime=null,this.adTagUrl=null,this.qualityChanged=!1,this.logSendedAfterTimeout=!1,this.wrapper.addClass(\"_loading\"),this.onDemand!==!1&&this.autoplay!==!0||this.chronoLoadApi.start(),this.dataParser.loadApi().then(function(){this.dataParser.dataParsedPromise().then(function(){this.backbone.data.parsed(),this.checkSize(),this.mount()}.bind(this))}.bind(this))},UOLPlayer.prototype.createDataParser=function(){return this.data={},this.configured=!1,new UOLPlayer.Data(this,{closedMedia:function(){this.wrapper.addClass(\"_closed\")}.bind(this),metadata:function(e){if(this.revision=e.revision,this.data.item=e.item?e.item:e,\"P\"===this.data.item.type)this.mediaType=\"audio\",this.wrapper.removeClass(\"_video\").addClass(\"_audio\");else{this.mediaType=\"video\",this.wrapper.removeClass(\"_audio\").addClass(\"video\");var t=this.wrapper.getElementsByClassName(\"video-element\")[0];t.setAttribute(\"poster\",this.data.item.thumbnail),t.setAttribute(\"title\",this.data.item.title)}}.bind(this),formats:function(e){this.data.item.formats=e.formats||e}.bind(this),critical:function(e){this.dfp=!1,this.share=!1,this.related=!1,this.autorep=!1,this.criticalFailure=!0,this.payloadConsoled||(this.payloadConsoled=!0,this.logger.logError(\"Fallback for API critical failure\"))}.bind(this),config:function(e,t){if(!this.serverTime.start&&e.current_time&&(this.serverTime.start=e.current_time),this.clientTime.start||(this.clientTime.start=Date.now()),this.data.item.userIp=e.userIp,this.data.item.playerParameters=e.playerParameters,this.customTimeout=UOLPlayer.safariMultiplier(UOLPlayer.toBoolean(this.data.item.playerParameters.dfp_custom_timeout_on)||UOLPlayer.customTimeout,this),UOLPlayer.urlParameter.hls===!1||UOLPlayer.urlParameter.mp4===!0||UOLPlayer.urlParameter.webm===!0?(this.hlsEnabled=!1,this.hlsNative=!1):(UOLPlayer.Fingerprint.mediaTypeSupported.hls?this.hlsEnabled=UOLPlayer.toBoolean(this.data.item.playerParameters.hls_enabled):this.hlsEnabled=!1,UOLPlayer.Fingerprint.mediaTypeSupported.hlsNative&&UOLPlayer.isIOS?this.hlsNative=UOLPlayer.toBoolean(this.data.item.playerParameters.hls_enabled):this.hlsNative=!1),UOLPlayer.urlParameter.dash===!1||UOLPlayer.urlParameter.hls===!0||UOLPlayer.urlParameter.mp4===!0||UOLPlayer.urlParameter.webm===!0?this.dashEnabled=!1:UOLPlayer.Fingerprint.mediaTypeSupported.dash?this.dashEnabled=UOLPlayer.toBoolean(this.data.item.playerParameters.dash_enabled):this.dashEnabled=!1,this.activeExperiment=this.data.item.playerParameters.activeExperiment?this.data.item.playerParameters.activeExperiment:\"\",this.testEnabled=this.data.item.playerParameters.test_enabled?this.data.item.playerParameters.test_enabled:\"\",this.testEnabled&&!this.configured&&(this.logger.log(\"TEST AB ENABLED: \"+this.testEnabled),UOLPlayer.i(\"[UOLPLAYER] AB TEST ENABLED: \"+this.testEnabled),this.configured=!0),\"V\"==this.data.item.type){this.dashExperiment=this.exp[this.exp.type.DASH_LIB_EXPERIMENT],this.dashExperiment.init(),this.dashExperiment.draw();var a=this.dashExperiment.getInfo().expParticipant,i=this.dashExperiment.getInfo().expResult;this.hlsEnabled&&this.dashEnabled&&this.data.item.formats.HLS&&this.data.item.formats.DASH&&a&&this.canTestsplit&&(this.dashEnabled=i,this.hlsEnabled=!this.dashEnabled),this.hlsFallback&&(this.hlsEnabled=!1),this.iuDFP=this.data.item.iu,UOLPlayer.toBoolean(this.forcedfp)?this.dfp=!0:this.dfp=this._dfp!==!1&&this.data.item.playerParameters.dfp_on!==!1&&!!this.iuDFP;var r,s;this.dfp?this.imaLib=r=this.imaLib||UOLPlayer.Cache.require({url:UOLPlayer[\"const\"].urls.IMASDK,key:\"ima\",type:UOLPlayer.Cache.type.JAVASCRIPT,skip:!0,jsonp:!0}):(this.imaLib=r=this.imaLib||new UOLPlayer.Promise,r.reject(!1)),this.data.item.formats.DASH&&this.dashEnabled?(this.abrLib=s=this.abrLib||UOLPlayer.Cache.require({url:UOLPlayer[\"const\"].urls.DASH,key:\"dash\",type:UOLPlayer.Cache.type.JAVASCRIPT,checksum:UOLPlayer.isLocal?\"dash_dev\":\"dash\",crossOrigin:\"anonymous\"}),this.abrLib.libName=\"dash\"):this.data.item.formats.HLS&&this.hlsEnabled?(this.abrLib=s=this.abrLib||UOLPlayer.Cache.require({url:UOLPlayer[\"const\"].urls.HLS,key:\"hls\",type:UOLPlayer.Cache.type.JAVASCRIPT,checksum:UOLPlayer.isLocal?\"hls_dev\":\"hls\",crossOrigin:\"anonymous\"}),this.abrLib.libName=\"hls\"):(this.abrLib=s=this.abrLib||new UOLPlayer.Promise,this.abrLib.libName=\"no lib\",s.reject(!1)),r.then(function(e){return e},function(e){return!1}).then(function(e){return this.dfp=\"boolean\"==typeof e?e:!e.error,e.time&&(this.chronoLoadLibDFP=e.time,this.logger.logTime(\"DFP LIB: \"+e.time.time)),s}.bind(this)).then(function(e){return e}.bind(this),function(e){return e}).then(function(a){a.state&&this.logger.log(\"CACHE HLS/DASH: \"+a.state);var i=s.libName;if(\"no lib\"!=i&&void 0===UOLPlayer.urlParameter[i]){var r=\"boolean\"==typeof a?a:!a.error;\"hls\"===i?this.hlsEnabled=r:this.dashEnabled=r}else\"hls\"===i?this.hlsEnabled=UOLPlayer.toBoolean(UOLPlayer.urlParameter.hls):\"dash\"===i&&(this.dashEnabled=UOLPlayer.toBoolean(UOLPlayer.urlParameter.dash));\"hls\"===i?(a.state&&(this.hlsLibState=a.state),a.time&&(this.chronoLoadLibHLS=a.time,this.logger.logTime(\"HLS LIB: \"+a.time.time))):\"dash\"===i&&(a.state&&(this.dashLibState=a.state),a.time&&(this.chronoLoadLibDASH=a.time,this.logger.logTime(\"DASH LIB: \"+a.time.time))),this.parseFormats(this.data.item.formats),t(e)}.bind(this))}else this.parseFormats(this.data.item.formats),t(e);this.chronoLoadApi.stop()}.bind(this)})},UOLPlayer.prototype.mount=function(){function e(){UOLPlayer.isHidden()||UOLPlayer.isMobile||!this.autoplay||(this.onClick(),document.removeEventListener(UOLPlayer.visibilityChange,t))}if(this.initTimeouts(),this.balaioTimeout=this.timeouts[this.timeouts.type.RETRY_BALAIO],this.criticalFailure&&this.wrapper.addClass(\"_critical-failure\"),this.mountDownload(),\"V\"==this.data.item.type){if(this.mediaType=\"video\",this.wrapper.removeClass(\"_loading\"),UOLPlayer.isIframe&&this.checkSize(),!UOLPlayer.supportedMediaTypesList.mp4&&!UOLPlayer.supportedMediaTypesList.webm)return void this.setError(UOLPlayer.ElementErrorHandler.errorCodes.CODEC_UNAVAILABLE);if(\"DASH\"===this.data.formats[\"default\"].type&&this.dashEnabled?this.mediaPlayer||(this.mediaPlayer=new UOLPlayer.DASH(this,this.wrapper),this.mediaPlayer.attachMedia()):\"HLS\"===this.data.formats[\"default\"].type&&this.hlsEnabled?(this.mediaPlayer?(this.initMetrics(),setTimeout(function(){this.mediaPlayer.events.ready.dispatch({})}.bind(this),400)):(this.mediaPlayer=new UOLPlayer.HLS(this,this.wrapper),this.mediaPlayer.attachMedia()),this.mediaPlayer.registerEventListener(\"ready\",function(){this.initMetrics()}.bind(this))):this.mediaPlayer||(this.mediaPlayer=new UOLPlayer.VideoPlayer(this,this.wrapper),this.mediaPlayer.setInitialQuality()),this.mediaPlayer.registerEventListener(UOLPlayer.isPhone?\"webkitendfullscreen\":\"fullscreenchange\",this.onFullscreenChange.bind(this)),this.mediaPlayer.registerEventListener(\"reload\",function(){this.balaioTimeout.abort()}.bind(this)),this.shareVideo=new UOLPlayerShare(this),UOLPlayer.isMobile||(this.relatedVideos=new UOLPlayerRelated(this)),this.errorCallback=this.onVideoError.bind(this),UOLPlayer.isHidden()){var t=e.bind(this);document.addEventListener(UOLPlayer.visibilityChange,t,!1)}this.mountAd();var a;window.addEventListener(\"resize\",function(){clearTimeout(a),a=setTimeout(function(){this.isFullscreen()&&this.onFullscreenChange()}.bind(this),250)}.bind(this)),(this._detach!==!0&&this._detach!==!1&&UOLPlayer.toBoolean(this.data.item.playerParameters.detach)||UOLPlayer.checkAllowedDomain(this.data.item.playerParameters.detach_allow_domain_regexp))&&(this._detach=!0),this._detach===!0&&(this.detach=new UOLPlayer.Detach(this,this.wrapper),this.wrapper.getData(\"detachstate\")===UOLPlayer.Detach.states.DETACHED&&this.detach.detachPlayer(!0))}else\"P\"==this.data.item.type&&(this.mediaType=\"audio\",this.audio=!0,this.share=!1,this.related=!1,this.initMetrics(),this.mediaPlayer||(this.mediaPlayer=new UOLPlayer.AudioPlayer(this,this.wrapper),this.mediaPlayer.setAudio()),this.errorCallback=this.onAudioError.bind(this),this.checkFixedPoster());this.initUI(),this.mediaPlayer.setPreload(this.preload),this.videoPlayingCallback=this.playingVideo.bind(this),this.videoEndedCallback=this.onContentEnded.bind(this),this.mediaPlayer.registerEventListener(\"pause\",this.onVideoPause.bind(this),!0),this.mediaPlayer.registerEventListener(\"error\",this.errorCallback,!0),this.mediaPlayer.registerEventListener(\"onReject\",function(){this.balaioTimeout.abort(),this.playing=!1,this.ui.setState(\"stop\"),this.autoplayRejects+=1,this.logger.send(\"autoplayRejected\")}.bind(this)),this.mediaPlayer.registerEventListener(\"onPlaying\",function(){this.playing=!0,this.wrapper.addClass(\"_clicked\"),this.ui.setState(\"play\")}.bind(this)),this.chronoVideoBegin.pause(),!UOLPlayer.isHidden()&&this.autoplay?this.onClick():UOLPlayer.isMobile&&this.wrapper.removeClass(\"_loading\");var i=this.controlBar=new UOLPlayer.ControlBar(this,this.mediaPlayer);i.registerEventListener(\"volumeChange\",function(e){this.ads&&this.ads.setVolume(e)}.bind(this)),i.registerEventListener(\"toggleMute\",function(){this.toggleMute()}.bind(this)),this.startMute&&this.mute()},UOLPlayer.prototype.initBackbone=function(){this.backbone=this.backbone||new UOLPlayer.Backbone(this)},UOLPlayer.prototype.initMetrics=function(){this.metrics=this.metrics||new UOLPlayer.Metrics(this)},UOLPlayer.prototype.initTimeouts=function(){this.timeouts=this.timeouts||new UOLPlayer.Timeout(this)},UOLPlayer.prototype.initExp=function(){this.exp=this.exp||new UOLPlayer.exp(this)},UOLPlayer.prototype.mountAd=function(){this.dfp&&window.google&&window.google.ima?(this.adTagUrl=this.createAdTag(),this.ads=new UOLPlayerAds(this,this.mediaPlayer),this.ads.registerEventListener(\"adStarted\",function(){this.playing=!0}.bind(this)),this.ads.registerEventListener(\"contentCompleted\",function(){UOLPlayer.isMobile&&this.mediaPlayer.reloadContent()}.bind(this)),this.ads.registerEventListener(\"allAdsCompleted\",function(){UOLPlayer.isSafari&&UOLPlayer.isMobile&&this.mediaPlayer.reloadContent(),this.AllContentEnded()}.bind(this)),this.ads.registerEventListener(\"contentPauseRequested\",function(e){this.pauseForAd(),this.setVideoEndedCallbackEnabled(!1)}.bind(this)),this.ads.registerEventListener(\"contentResumeRequested\",function(e){this.controlBar&&this.controlBar.isMute()&&this.ads.adSkipped&&this.toggleMute(),e!=-1&&(this.resumeAfterAd(),this.mediaPlayer.play()),this.setVideoEndedCallbackEnabled(!0)}.bind(this)),this.ads.registerEventListener(\"timeupdate\",function(e){this.controlBar.updateProgress(e.currentTime,e.duration)}.bind(this))):this.logger.logDFP(\"DFP DESLIGADO\")},UOLPlayer.prototype.mountDownload=function(){if(this.download&&this.data.item){var e=this.wrapper.getElementsByClassName(\"up-bt-download\")[0],t=this.data.item.hash||this.mediaId;if(t=t.split(\"-\"),t.length>1&&t.pop(),t=t.join(\"-\").replace(/-+/g,\"-\"),\"V\"==this.data.item.type){var a=\"0\";for(var i in this.data.formats.available)parseInt(i)>parseInt(a)&&(a=i);parseInt(a)>0&&(this.wrapper.getElementsByClassName(\"up-bt-download-display\")[0].show(),e.setAttribute(\"alt\",a),e.setAttribute(\"text\",a),e.setAttribute(\"href\",UOLPlayer.mediaSourceURL(this.data.formats.available[a].url,this.revision,this.hashId)),e.setAttribute(\"download\",t+\".mp4\"))}else{var r=UOLPlayer.mediaSourceURL(this.data.formats.url,this.revision,this.hashId);e.setAttribute(\"href\",r),e.setAttribute(\"download\",t+\".mp3\"),this.wrapper.getElementsByClassName(\"up-bt-download-display\")[0].show()}}},UOLPlayer.prototype.checkSize=function(){var e=this.getSize();this.isDetached()||this.isFullscreen()?this.isDetached()&&!this.isFullscreen()?this.wrapper.addClass(\"_small\"):this.isFullscreen()&&this.wrapper.removeClass(\"_small\").removeClass(\"_medium\"):e.width<=250?(this.wrapper.removeClass(\"_medium\").addClass(\"_small\"),this.related=!1):e.width>250&&e.width<=350?this.wrapper.removeClass(\"_small\").addClass(\"_medium\"):this.wrapper.removeClass(\"_small\").removeClass(\"_medium\");var t=this.wrapper.getElementsByClassName(\"uolplayer-container\")[0],a=function(){if(t&&\"video\"===this.mediaType){var e=this.getSize(),a=e.windowWidth,i=e.windowWidth/(16/9),r=Math.round(a/i*e.windowHeight);i>e.windowHeight?(t.style.width=r+\"px\",t.style.margin=\"auto\"):t.style.width=\"auto\"}}.bind(this);UOLPlayer.isIframe&&a()},UOLPlayer.prototype.toggleMute=function(){this.wrapper.hasClass(\"_mute\")?this.wrapper.removeClass(\"_mute\"):this.wrapper.addClass(\"_mute\"),this.mediaPlayer.toggleMute(),this.controlBar.toggleMute(),this.ads&&this.ads.toggleMute()},UOLPlayer.prototype.mute=function(){if(this.wrapper.addClass(\"_mute\"),this.mediaPlayer.mute(),this.controlBar.mute(),this.ads&&this.ads.mute(),this.isAutoplayMuted||this.startMute){var e=function(){this.controlBar.isMute()&&this.toggleMute(),this.wrapper.removeEventListener(\"click\",e)}.bind(this);this.wrapper.addEventListener(\"click\",e)}},UOLPlayer.prototype.clearMute=function(){this.wrapper.removeClass(\"_mute\"),this.wrapper.setData(\"startmute\",!1),this.startMute=!1,this.toggleMute()},UOLPlayer.prototype.embedFlash=function(e){var t=this,a=UOLPlayer.Promise.get(UOLPlayer[\"const\"].urls.data.METADATA.replace(\"{mediaId}\",t.mediaId));a.then(function(e,a,i){return t.data=e,\"P\"==e.item.type?t.setError(UOLPlayer.ElementErrorHandler.errorCodes.AUDIO_FLASH_DEPRECATED):t.setError(UOLPlayer.ElementErrorHandler.errorCodes.VIDEO_FLASH_DEPRECATED)},function(e,a,i){return 400===a?t.setError(UOLPlayer.ElementErrorHandler.errorCodes.INVALID_MEDIA_ID):t.setError(UOLPlayer.ElementErrorHandler.errorCodes.MEDIA_NOT_FOUND)})},UOLPlayer.prototype.renderMarkup=function(e,t){var a=UOLPlayer.urlParameter.cors?\"crossorigin=\"+UOLPlayer.urlParameter.cors:\"\";this.btPlayMarkup=UOLPlayerUI.btPlayMarkup.replace(/\\{\\{this.app.forwardRewindBase\\}\\}/g,this.forwardRewindBase),this.ctrlBarMarkup=UOLPlayerUI.controlbarMarkup,this.autorepMarkup='<div class=\"up-autorep\"><div class=\"up-autorep-label\">Reprodução<br />automática <span class=\"up-time\">em 5s</span></div><svg class=\"up-switch up-switch-off\" xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"28\" viewBox=\"0 10 48 28\"><g fill=\"none\" fill-rule=\"evenodd\"><rect class=\"up-switch-countdown\" width=\"46\" height=\"22\" x=\"1\" y=\"13\" stroke=\"#FFF\" rx=\"11\"/><rect width=\"46\" height=\"22\" x=\"1\" y=\"13\" stroke=\"rgba(255,255,255,0.2)\" stroke-width=\"2px\" rx=\"11\"/><rect width=\"40\" height=\"16\" x=\"4\" y=\"16\" fill=\"#FFF\" rx=\"8\"/><circle class=\"up-switch-circle\" cx=\"34\" cy=\"24\" r=\"4\" fill=\"#22DC72\"/></g></svg></div>',this.startMuteMarkup='<div class=\"up-startmute up-bt\"></div>',this.toolbarMarkup=this.related||this.share||this.autorep?'<div class=\"up-toolbar\"><div class=\"up-bt-related display-none\"></div><div class=\"up-bt-share display-none\"></div></div>':\"\",this.preloadMarkup=this.hasClass(\"up-preload\")?\"\":'<div class=\"up-preload\"><div class=\"up-icon up-preload-spinner\"></div><div class=\"up-poster\"></div></div>',this.markup=this.preloadMarkup+this.startMuteMarkup+'<div class=\"ui\" style=\"display:none\"><p class=\"up-title\"></p><p class=\"up-duration\"></p><div class=\"up-subtitle display-none\"><span class=\"up-subtitle-content\"><p></p></span></div><div class=\"up-message\"></div>'+this.toolbarMarkup+this.ctrlBarMarkup+this.autorepMarkup+'<div class=\"up-for-ad\"><div class=\"up-ad-visit-advertiser\"><div class=\"up-ad-text\">Visitar anunciante</div></div><div class=\"up-ad-countdown\"><div class=\"up-ad-text\">Publicidade &#8226; <span class=\"up-ad-remaining-time\"></span></div></div><div class=\"up-ad-progress\"><div class=\"up-ad-bar\"></div></div></div><div class=\"up-error display-none\"><p>Este v&iacute;deo est&aacute; indispon&iacute;vel no momento</p></div>'+this.btPlayMarkup+'</div><audio class=\"audio-element\" type=\"audio/mpeg\"></audio><video '+a+\" \"+(this.autoplay&&UOLPlayer.isMobile?\"autoplay\":\"\")+' playsinline class=\"video-element\" type=\"video/mp4\"></video><div class=\"ad-container\"></div>',this.wrapper.appendHtml('<div class=\"uolplayer-container\"><div class=\"uolplayer-elements\">'+this.markup+\"</div></div>\"),e()},UOLPlayer.prototype.mountMarkup=function(){return this.markupPromise=this.markupPromise||new UOLPlayer.Promise(this.renderMarkup.bind(this)),this.backbone.markup.mounted(),this.markupPromise},UOLPlayer.prototype.changeVideo=function(e,t){UOLPlayer.i('UOLPlayer: ChangeVideo(\"'+e+'\")');var t=t||{},a=JSON.stringify(this.tracker.getData());UOLPlayer.sendUnloadLog(this.wrapper,\"changeVideo\"),this.destroy();var i=this.wrapper;for(value in t)i.setData(value,t[value]);return i.setData(\"mediaid\",e).setData(\"changeVideo\",!0).setData(\"materialized\",!1),this.detach&&i.setData(\"detachstate\",this.detach.state),i.setData(\"startmute\",!1),this.onDemandClicked&&!UOLPlayer.isMobile&&i.setData(\"onDemandClicked\",this.onDemandClicked),\nt.autoplay===!1?i.setData(\"autoplay\",!1):(t&&!t.hlsFallback&&!UOLPlayer.isMobile||this.autoplay===!0)&&i.setData(\"autoplay\",!0),i.setData(\"previousStates\",JSON.stringify(a)),delete this,new UOLPlayer(i)},UOLPlayer.prototype.initUI=function(){this.ui=new UOLPlayerUI(this,this.mediaPlayer),this.ui.btplay&&this.ui.btplay.show(),this.isMobile||this.onDemand||this.ui.btplay.addEventListener(\"click\",this.onClick.bind(this),!1);var e=this.wrapper.getElementsByClassName(\"up-duration\")[0]||this.wrapper.getElementsByClassName(\"up-time-duration\")[0];e.innerHTML=this.data&&this.data.item&&this.data.item.duration?this.data.item.duration.formatted:\"\",this.rotateFallback(0)},UOLPlayer.prototype.rotateFallback=function(e){if(\"transform\"in document.body.style==!1&&\"webkitTransform\"in document.body.style==!0){var t=document.querySelector(\".up-preload-spinner\"),a=\"rotate(\"+e+\"deg)\";if(t){var i=-t.offsetWidth/2;t.style.marginTop=i+\"px\",t.style.marginLeft=i+\"px\",t.style.transform=a,t.style.webkitTransform=a,t.style.OTransform=a,t.style.MozTransform=a}setTimeout(this.rotateFallback.bind(this),10,e<360?e+5:0)}},UOLPlayer.prototype.renderFormats=function(e){if(this.tracker.pushState(\"formats\",Object.keys(e)),e&&e.hasOwnProperty(\"MP3\")){if(e.MP3.token&&e.MP3.sign){for(var t in e.MP3.alternatives)e.MP3.alternatives[t]=e.MP3.alternatives[t]+\"?token=\"+encodeURI(e.MP3.token)+\"&sign=\"+encodeURI(e.MP3.sign)+this.key;e.MP3.url=e.MP3.url+\"?token=\"+encodeURI(e.MP3.token)+\"&sign=\"+encodeURI(e.MP3.sign)+this.key}return e.MP3}if(!e||void 0===e.audioUrl){var a,i,r={},s=\"8096p\",o=\"0p\";r.available={},r.list=[];for(i in e)if(a=e[i],a.type=i,i.indexOf(\"3gp\")==-1){if(i.indexOf(\"DASH\")!=-1&&UOLPlayer.Fingerprint.mediaTypeSupported.dash&&this.dashEnabled){if(a.mediaType=\"dash\",!UOLPlayer.isMobile){a.url=a.url.replace(\".mpd\",\".desk.mpd\");for(var t=0;t<a.alternatives.length;t++)a.alternatives[t]=a.alternatives[t].replace(\".mpd\",\".desk.mpd\")}r.available[i]=a}if(this.hlsFallback||i.indexOf(\"HLS\")==-1||!this.hlsEnabled&&!this.hlsNative||(a.mediaType=this.hlsNative?\"hlsNative\":\"hls\",r.available[i]=a),i.indexOf(\"WEBM\")!=-1&&UOLPlayer.Fingerprint.mediaTypeSupported.webm&&(a.mediaType=\"webm\",r.available[i]=a),i.indexOf(\"0p\")!=-1&&UOLPlayer.Fingerprint.mediaTypeSupported.mp4&&(a.mediaType=\"mp4\",i.indexOf(\"360p\")!=-1&&(r.available[i]=a),UOLPlayer.isMobile||(i.indexOf(\"720p\")!=-1&&(r.available[i]=a),i.indexOf(\"1080p\")!=-1&&(r.available[i]=a))),i.indexOf(\"mobile\")!=-1&&UOLPlayer.isMobile&&(a.mediaType=\"mp4Mobile\",r.available[i]=a),i.indexOf(\"mobile\")==-1&&\"flv\"!=i&&(parseInt(i)>0&&parseInt(i)<parseInt(s)&&(s=i),parseInt(i)>0&&parseInt(i)>parseInt(o)&&(o=i),r.list.push(a)),a.token&&a.sign){a.url+=\"?token=\"+encodeURI(a.token)+\"&sign=\"+encodeURI(a.sign)+this.key;var n;for(n in a.alternatives)a.alternatives[n]+=\"?token=\"+encodeURI(a.token)+\"&sign=\"+encodeURI(a.sign)+this.key}}return r.minimalQualityMP4=s,UOLPlayer.Fingerprint.mediaTypeSupported.dash&&this.dashEnabled&&r.available.DASH?r[\"default\"]=r.available.DASH:(UOLPlayer.Fingerprint.mediaTypeSupported.hls&&this.hlsEnabled||this.hlsNative)&&r.available.HLS&&(r[\"default\"]=r.available.HLS),r[\"default\"]||(UOLPlayer.Fingerprint.mediaTypeSupported.mp4&&(r.available.mobile||r.available[s])?UOLPlayer.isMobile&&r.available.mobile?r[\"default\"]=r.available.mobile:r.available[s]?r[\"default\"]=r.available[s]:r.available.mobile&&(r[\"default\"]=r.available.mobile):UOLPlayer.Fingerprint.mediaTypeSupported.webm&&r.available.WEBM&&(r[\"default\"]=r.available.WEBM)),UOLPlayer.urlParameter.mp4===!0?r[\"default\"]=r.available[s]:UOLPlayer.urlParameter.webm===!0&&(r[\"default\"]=r.available.WEBM),this.renderRetry(r),r}},UOLPlayer.prototype.renderRetry=function(e){e.retry=[];var t=\"\";if(UOLPlayer.Fingerprint.mediaTypeSupported.mp4&&(UOLPlayer.isMobile&&e.available.mobile?a=UOLPlayer.cloneJSON(e.available.mobile):e.available[e.minimalQualityMP4]?a=UOLPlayer.cloneJSON(e.available[e.minimalQualityMP4]):e.available.mobile&&(a=UOLPlayer.cloneJSON(e.available.mobile)),a.token&&a.sign&&(t=\"?token=\"+encodeURI(a.token)+\"&sign=\"+encodeURI(a.sign)+this.key),a.alternatives&&(a.externalCDN||a.alternatives.push(\"video.m.mais.uol.com.br/\"+a.filename+\".mp4\"+t),e.retry.push(a))),UOLPlayer.Fingerprint.mediaTypeSupported.webm&&e.available.WEBM){var a={};a=UOLPlayer.cloneJSON(e.available.WEBM),a.token&&a.sign&&(t=\"?token=\"+encodeURI(a.token)+\"&sign=\"+encodeURI(a.sign)+this.key),a.alternatives&&!a.externalCDN&&a.alternatives.push(\"video.m.mais.uol.com.br/\"+a.filename+\".webm\"+t),e.retry.push(a)}},UOLPlayer.prototype.parseFormats=function(e){this.data.formats=this.data.formats||this.renderFormats(e)},UOLPlayer.prototype.createAdTag=function(){if(UOLPlayer.toBoolean(this.forcedfp))return\"https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ar%3Dpremidpost&cmsid=496&vid=short_onecue&correlator=\";if(\"vpaid\"===this.forcedfp)return\"https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinearvpaid2js&correlator=\";var e,t,a=\"\";if(\"apple\"===this.forcedfp?this.iuDFP=\"/8804/teste/qa5\":UOLPlayer.isMobile&&this.iuDFP&&(this.iuDFP=this.iuDFP.replace(\"/uol/\",\"/uol_mobile/\").replace(\"/bol/\",\"/bol_mobile/\").replace(\"/folha/\",\"/folha_mobile/\").replace(\"/parceiros/\",\"/parceiros_mobile/\")),window.UOLPD){var i=window.UOLPD.dataLayer;for(key in i)a+=\"%26\"+key+\"%3D\"+i[key]}return e=\"codprofile%3D\"+this.data.item.codProfile+\"%26videotags%3D\"+this.data.item.tags+\"%26videoplayertype%3Dhtml5\"+a,t=UOLPlayer.HTTP+\"pubads.g.doubleclick.net/gampad/ads?sz=640x480&gdfp_req=1&iu=\"+this.iuDFP+\"&ciu_szs=300x250&url=[referrer_url]&correlator=[timestamp]&env=vp&unviewed_position_start=1&output=vast&impl=s&vid=\"+this.data.item.mediaId+\"&description_url=\"+this.data.item.url+\"&cust_params=\"+e},UOLPlayer.prototype.notifyMediaView=function(){var e=this;UOLPlayer.jsonp({url:UOLPlayer[\"const\"].urls.NOTIFY+this.mediaId,success:function(t){!e.serverTime.end&&t.item&&t.item.current_time&&(e.serverTime.end=t.item.current_time),e.clientTime.end||(e.clientTime.end=Date.now()),e.logger.log(\"notifyMediaView: OK!\")}})},UOLPlayer.prototype.onClick=function(){if(!this.playerStarted){this.initMetrics();var e={};this.hlsFallback&&(e.hlsFallback=!0),this.logger=this.logger||new UOLPlayerLog(this),this.logger.send(\"playerStart\",e),this.playerStarted=!0,this.chronoFirstMilestone.start(),this.detach&&this.detach.init(),this.initiated||(this.initiated=!0,UOLPlayer.onInit(this))}var t=UOLPlayer.getCurrentMedia();return void 0!==t&&t!==this&&t.deactivate(),this.wrapper.hasClass(\"_clicked\")||(UOLPlayer.onPlay(this),this.ui.setState(\"loading\"),this.ui.setState(\"play\"),this.wrapper.addClass(\"_clicked\")),this.audio||this.adsDone||!this.ads?(this.adsActive?this.playing?this.ads.pause():this.ads.resume():this.playing?(this.mediaPlayer.pause(),this.setRelated()):(this.setVideoEndedCallbackEnabled(!0),this.chronoVideoBegin.resume(),this.mediaPlayer.play(),this.wrapper.hasClass(\"_end\")&&(this.mediaPlayer.seek(0),this.wrapper.removeClass(\"_end\").removeClass(\"_share\").removeClass(\"_related\").removeClass(\"_tools\").removeClass(\"_error\").removeClass(\"_reload\"))),this.playing?this.ui.setState(\"pause\"):this.ui.setState(\"play\"),void(this.playing=!this.playing)):(this.ads.initialUserAction(),void this.mediaPlayer.preloadContent(function(){this.mediaPlayer.pause(),this.loadAds(),this.adsDone=!0}.bind(this)))},UOLPlayer.prototype.setFullscreen=function(){if(this.isIpad)return void(this.wrapper.hasClass(\"_fullscreen_ipad\")?(this.wrapper.removeClass(\"_fullscreen_ipad\"),this.ui.setFullscreen(!1)):(this.wrapper.addClass(\"_fullscreen_ipad\"),this.ui.setFullscreen(!0)));var e,t;this.isFullscreen()?(UOLPlayer.isIphone?this.mediaPlayer.mediaElement.webkitExitFullscreen():(t=document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen||document.msExitFullscreen,t.call(document)),this.ui.setFullscreen(!1),this.tracker.pushState(\"fullscreen\",!1)):(UOLPlayer.isIphone?this.mediaPlayer.mediaElement.webkitEnterFullscreen():(e=this.wrapper.requestFullscreen||this.wrapper.mozRequestFullScreen||this.wrapper.webkitRequestFullscreen||this.wrapper.msRequestFullscreen,e.call(this.fullscreenContainer||this.wrapper),this.ui.setFullscreen(!0)),this.tracker.pushState(\"fullscreen\",!0))},UOLPlayer.prototype.onFullscreenChange=function(){var e=this.getSize();this.isFullscreen()?(UOLPlayer.onFullscreen(this),this.ads&&this.ads.resize(e.fullscreenWidth,e.fullscreenHeight,\"FULLSCREEN\"),\"orientation\"in screen&&UOLPlayer.isMobile&&screen.orientation.lock(\"landscape-primary\")):(this.ui.setFullscreen(!1),this.ads&&this.ads.resize(e.width,e.height,\"NORMAL\"),\"orientation\"in screen&&UOLPlayer.isMobile&&screen.orientation.lock(\"natural\")),UOLPlayer.isIphone||this.checkSize()},UOLPlayer.prototype.loadAds=function(){this.mediaPlayer.removePreloadListener(),this.ads.requestAds(this.adTagUrl)},UOLPlayer.prototype.addLevelList=function(e){this.levelList.push(this.mediaPlayer.getCurrentPerc()+\"|\"+e+\"|0\")},UOLPlayer.prototype.updateLevelList=function(){this.levelList.length>0&&(this.levelList[this.levelList.length-1]=this.levelList[this.levelList.length-1].replace(/(\\d+)$/,parseInt(this.levelList[this.levelList.length-1].match(/\\|(\\d+)$/)[1])+1))},UOLPlayer.prototype.checkReBuffering=function(){if(this.chronoReBuffering){this.rebufferingCount+=1,this.updateLevelList();var e=this.chronoReBuffering.stop(),t={time:e.elapsedTime,payload:{rebufferingCount:this.rebufferingCount}},a=10;this.data&&this.data.item&&this.data.item.playerParameters&&this.data.item.playerParameters.rebuffering_max_logs&&(a=this.data.item.playerParameters.rebuffering_max_logs),this.rebufferingCount<=a&&this.mediaPlayer.getCurrentTime()>0&&this.logger.send(\"rebuffering\",t)}this.chronoReBuffering=null},UOLPlayer.prototype.playingVideo=function(e){this.logger.log(\"playingVideo\");if(clearInterval(this.checkInterval),this.checkInterval=setInterval(function(){if(this.mediaPlayer.mediaElement.currentTime>0){if(clearInterval(this.checkInterval),!this.isPlaying()&&this._videoBeginSended!==!0){this._videoBeginSended=!0;var e=this.chronoVideoBegin.stop().elapsedTime,t=this.chronoVideoBegin.log(),a=this.serverTime.start?this.serverTime.start:\"Erro ao obter serverTimeStart\",i=this.serverTime.end?this.serverTime.end:\"Erro ao obter serverTimeEnd\",r=this.clientTime.start?this.clientTime.start:\"Erro ao obter clientTimeStart\",s=this.clientTime.end?this.clientTime.end:\"Erro ao obter clientTimeEnd\",o={debugDatesToTime:t.join(),debugTime:e.time,debugServerTimeStart:new Date(a).toString(),debugServerTimeEnd:new Date(i).toString(),debugClientTimeStart:new Date(r).toString(),debugClientTimeEnd:new Date(s).toString(),debugDiffTimeStart:this.serverTime.start-this.clientTime.start,debugDiffTimeEnd:this.serverTime.end-this.clientTime.end,debugTimeString:\"server: \"+a+\",\"+i+\" - client: \"+r+\",\"+s};this.logger.send(\"videoBegin\",{time:e,payload:o}),UOLPlayer.Promise.get(UOLPlayer[\"const\"].urls.BALANCE.replace(\"{mediaId}\",this.mediaId)),this.logFirstMilestone(\"videoBegin\")}this.ui.setState(\"playingVideo\"),this.detach&&this.detach.checkPosition()}}.bind(this),100),this.isPlaying()||this._videoBeginSended===!0)this.playing=!0,UOLPlayer.onResume(this),this.backbone.video.resume();else if(this.backbone.video.start(),this.notifyMediaView(),this.mediaPlayer.registerEventListener(\"waiting\",function(){this.ui.setState(\"waiting\"),this.chronoReBuffering=this.chronoReBuffering||new UOLPlayer.Chronometer(\"chronoReBuffering\"),this.chronoReBuffering.start()}.bind(this)),\"video\"===this.mediaType&&this.customTimeout&&!this.logSendedAfterTimeout&&(this.timeouts.dfpRequestAds.getStatus()||this.timeouts.dfpPlayAd.getStatus())){var t;clearInterval(t),t=setInterval(function(){this.mediaPlayer.mediaElement.currentTime>this.data.item.playerParameters.media_view_after_timeout&&(this.logSendedAfterTimeout=!0,this.logger.send(\"mediaViewAfterTimeout\"),clearInterval(t))}.bind(this),1e3)}this.balaioTimeout.abort(),this.ui.setState(\"play\"),this.wrapper.removeClass(\"_waiting\"),this.checkReBuffering()},UOLPlayer.prototype.pauseForAd=function(){this.logger.log(\"pauseForAd\"),this.adsActive=!0,this.mediaPlayer.pause(),this.ui.setState(\"loading\")},UOLPlayer.prototype.resumeAfterAd=function(){!this.ads.contentCompleteCalled&&UOLPlayer.isMobile&&this.ui.setState(\"loading\"),this.chronoVideoBegin.resume(),this.adsActive=!1,this.playing=!0},UOLPlayer.prototype.onContentEnded=function(){this.logger.log(\"onContentEnded\"),this.backbone.video.end(),this.ads?this.ads.adError?this.AllContentEnded():this.ads.contentEnded():this.AllContentEnded()},UOLPlayer.prototype.onVideoPause=function(e){this.isPlayingAd()||(UOLPlayer.onPause(this),this.pauseCounts+=1,this.playing=!1,this.backbone.video.pause())},UOLPlayer.prototype.forward=function(e){this.mediaPlayer&&this.mediaPlayer.forward(e)},UOLPlayer.prototype.rewind=function(e){this.mediaPlayer&&this.mediaPlayer.rewind(e)},UOLPlayer.prototype.setRelated=function(){this.playlist||UOLPlayer.isMobile||!this.related&&!this.autorep||this.relatedVideos.setRelated()},UOLPlayer.prototype.setShare=function(){(this.share&&UOLPlayer.isMobile||this.share&&!this.related&&!this.playlist&&!UOLPlayer.isMobile)&&(this.ui.setState(\"share\"),this.mediaPlayer.togglePause())},UOLPlayer.prototype.setError=function(e){this.logFirstMilestone(\"error\",{error:UOLPlayer.ElementErrorHandler.codeErros[e]});var t=null,a=this.wrapper.getElementsByClassName(\"up-error\")[0];if(a)t=a.getElementsByTagName(\"p\")[0];else{var i;i=UOLPlayer.domNode(\"div\"),i.className=\"ui\",a=UOLPlayer.domNode(\"div\"),a.addClass(\"up-error display-none\"),t=UOLPlayer.domNode(\"p\"),a.appendChild(t),i.appendChild(a),this.wrapper.appendChild(i)}UOLPlayer.e(\"ERROR REPORT\");var r=UOLPlayer.ElementErrorHandler.logMessage(e);if(e===UOLPlayer.ElementErrorHandler.errorCodes.VIDEO_FLASH_DEPRECATED||e===UOLPlayer.ElementErrorHandler.errorCodes.AUDIO_FLASH_DEPRECATED){var s=this.data.item.shareUrl||\"https://mais.uol.com.br/view/\"+this.mediaId;r.mensagem=r.mensagem.replace(/{mediaUrl}/g,s)}else if(e===UOLPlayer.ElementErrorHandler.errorCodes.PAYLOAD_TOO_LARGE){var o,n=\"\",l=\"\";try{o=UOLPlayer.isMobile?UOLPlayer.info.os:\"desktop\",n=UOLPlayer.ElementErrorHandler.supportUrls.cookies[UOLPlayer.info.browser.toLowerCase()][o.toLowerCase()],l='<a href=\"'+n+'\" target=\"_blank\">Clique aqui para iniciar.</a>'}catch(d){}r.mensagem=r.mensagem.replace(/{href}/g,l)}this.errorsReporteds=this.errorsReporteds||{},this.errorsReporteds[e]||(this.errorsReporteds[e]=!0,UOLPlayerLog.send(this,\"error\",r)),this.criticalFailure&&UOLPlayerLog.send(this,\"criticalFailure\",r),t.innerHTML=r.mensagem,setTimeout(function(){this.wrapper.removeClass(\"_loading\").removeClass(\"_waiting\").addClass(\"_error\")}.bind(this),100)},UOLPlayer.prototype.onVideoError=function(e){if(!e.srcElement||null!==e.srcElement.error){this.retryAttempts=this.retryAttempts||0;var t,a={};(\"undefined\"==typeof this.errorTime||this.mediaPlayer.getCurrentTime()>0)&&(this.errorTime=this.mediaPlayer.getCurrentTime()),this.data&&this.data.formats&&this.data.formats.retry&&(a=this.data.formats.retry);var i=function(){for(var r=0;a[r]&&a[r].mediaType!==this.mediaPlayer.mediaType;)r++;if((!this.currentRetryObj||this.currentRetryObj.alternatives&&0===this.currentRetryObj.alternatives.length)&&(this.currentRetryObj=a.splice(r,1)[0]),void 0!==this.currentRetryObj&&(t=this.currentRetryObj.alternatives.shift()),void 0===t&&a.length>0){var s=function(){this.mediaPlayer.mediaType=a[0].mediaType,i()}.bind(this);return this.dataParser&&this.dataParser.promises&&!this.dataParser.promises.formatsRetry?this.dataParser.formatsRetryPromise().then(function(t,a,i){this.data.item.formats=t,this.data.formats=this.renderFormats(t),this.hlsEnabled&&this.mediaPlayer.hls&&!UOLPlayer.isSafariMacOS?this.mediaPlayer.formatsReloaded():this.onVideoError(e)}.bind(this),s):s()}if(void 0!==t){if(UOLPlayer.isIOS&&this.hlsNative){this.hlsNative=!1,this.ads&&(this.ads.destroy(),this.ads=null),this.wrapper.addClass(\"_clicked\").addClass(\"_loading\"),this.setVideoEndedCallbackEnabled(!1);var o=setTimeout(function(){clearInterval(o),this.setVideoEndedCallbackEnabled(!0)}.bind(this),200)}this.retryAttempts++;var n=[this.data.formats[\"default\"].mediaType,this.mediaPlayer.lastUrl.split(\"?\")[0]];if(this.data.formats[\"default\"]=this.currentRetryObj,this.hlsEnabled&&this.mediaPlayer.hls){var l=e.error||\"\";this.mediaPlayer.currentM3u8&&(n[1]=this.mediaPlayer.currentM3u8),this.mediaPlayer.sendError(l),this.mediaPlayer.hls.destroy(),this.mediaPlayer=new UOLPlayer.VideoPlayer(this,this.wrapper),this.controlBar&&this.controlBar.update()}if(this.dashEnabled&&this.mediaPlayer.dash){var l=e.error||\"\";this.mediaPlayer.mpd&&(n[1]=this.mediaPlayer.mpd),this.mediaPlayer.sendError(l),this.mediaPlayer.dash.reset(),this.mediaPlayer=new UOLPlayer.VideoPlayer(this,this.wrapper),this.controlBar&&this.controlBar.update()}this.mediaPlayer.videoURL=UOLPlayer.mediaSourceURL(t,this.data.item.revision,this.hashId),this.mediaPlayer.reloadContent(this.errorTime),this.retryCounts++;var d={retryPreviousFormat:n[0],retryPreviousServer:n[1],retryCurrentFormat:this.currentRetryObj.mediaType,retryCurrentServer:t,retryAttempt:this.retryAttempts,retryCount:this.retryCounts};this.logger.send(\"retry\",{payload:d}),this.logger.log(\"retry count: \"+this.retryCounts),this.balaioTimeout&&this.balaioTimeout.start(function(){i()}.bind(this))}else this.balaioTimeout&&this.balaioTimeout.abort(),UOLPlayer.ElementErrorHandler.mediaElementErrorHanlder(this,this.mediaPlayer.mediaElement)}.bind(this);i()}},UOLPlayer.prototype.onAudioError=function(e){if(this.errorTime=void 0===this.errorTime?this.mediaPlayer.getCurrentTime():this.errorTime,this.retryAttempts=void 0===this.retryAttempts?this.data.formats.alternatives.length+2:this.retryAttempts,this.retryAttempts>0)this.tracker.pushState(\"retryError\",this.retryAttempts),!this.hasClass(\"_clicked\")&&this.ui&&this.ui.setState(\"loading\"),this.logger.logError(\"executando retentativa - \"+this.retryAttempts),this.mediaPlayer.reloadContent(),this.retryAttempts--;else{this.tracker.pushState(\"retryError\",0);var t=e.target||e.srcElement;t&&t.error?t.error.code:0;UOLPlayer.ElementErrorHandler.mediaElementErrorHanlder(this,this.mediaPlayer.mediaElement)}},UOLPlayer.prototype.AllContentEnded=function(){this.adsDone=!0,this.adsActive=!1,this.playing=!1,this.ads=!1,this.replay=!0,this.ui.setState(\"ended\"),this.wrapper.addClass(\"_end\"),this.setRelated(),this.setShare(),this.setRepro(),UOLPlayer.isMobile&&this.isFullscreen()&&this.setFullscreen(),this.detachPlayer&&this.detachPlayer(!1),UOLPlayer.onEnd(this)},UOLPlayer.prototype.setRepro=function(){this.repro&&this.repro.countdown()},UOLPlayer.prototype.setVideoEndedCallbackEnabled=function(e){this.logger.log(\"setVideoEndedCallbackEnabled: \"+e),e?(this.mediaPlayer.registerEventListener(\"loadstart\",this.videoLoadStartCallback),this.mediaPlayer.registerEventListener(\"playing\",this.videoPlayingCallback),this.mediaPlayer.registerEventListener(\"ended\",this.videoEndedCallback)):(this.mediaPlayer.removeEventListener(\"loadstart\",this.videoLoadStartCallback),this.mediaPlayer.removeEventListener(\"playing\",this.videoPlayingCallback),this.mediaPlayer.removeEventListener(\"ended\",this.videoEndedCallback))},UOLPlayer.prototype.hasClass=function(e){return this.wrapper.hasClass(e)},UOLPlayer.prototype.addClass=function(e){return this.wrapper.addClass(e),this},UOLPlayer.prototype.removeClass=function(e){return this.wrapper.removeClass(e),this},UOLPlayer.prototype.bindOnlineMonitor=function(){var e=function(){}.bind(this);window.addEventListener(\"online\",e),window.addEventListener(\"offline\",e),e()},UOLPlayer.prototype.checkFixedPoster=function(){this.poster&&\"audio\"===this.mediaType&&!this.wrapper.hasClass(\"_fixedposter\")&&(this.wrapper.addClass(\"_fixedposter\"),UOLPlayer.setThumb(this.wrapper,this.poster))},UOLPlayer.prototype.getSize=function(){var e=this.wrapper.getElementsByClassName(\"uolplayer-elements\")[0]||this.wrapper,t=Math.round(e.offsetWidth),a=Math.round(e.offsetHeight),i=Math.round(window.innerWidth),r=Math.round(window.innerHeight);return{width:t,height:a,fullscreenWidth:window.outerWidth,fullscreenHeight:window.outerHeight,windowWidth:i,windowHeight:r,formatted:t+\"x\"+a}},UOLPlayer.prototype.resize=function(e){var t=this.wrapper.getElementsByClassName(\"uolplayer-container\")[0];t&&\"video\"===this.mediaType&&(t.style.width=e.width+\"px\",t.style.margin=\"auto\",this.ads&&this.ads.resize(e.width,e.height,\"NORMAL\"))},UOLPlayer.prototype.getState=function(){var e=\"\";return e=this.wrapper.hasClass(\"_loading\")?UOLPlayer.LOADING:this.wrapper.hasClass(\"_waiting\")?UOLPlayer.BUFFERING:this.wrapper.hasClass(\"_paused\")?UOLPlayer.PAUSED:this.wrapper.hasClass(\"_end\")?UOLPlayer.ENDED:this.wrapper.hasClass(\"_playing-ad\")?UOLPlayer.PLAYINGAD:this.wrapper.hasClass(\"_playing-video\")?\"video\"===this.mediaType?UOLPlayer.PLAYINGVIDEO:UOLPlayer.PLAYINGAUDIO:UOLPlayer.READY},UOLPlayer.prototype.getFullState=function(){var e=\"\";return e=this.wrapper.hasClass(\"_error\")?UOLPlayer.ERROR:this.wrapper.hasClass(\"_loading\")&&!this.wrapper.hasClass(\"_clicked\")?UOLPlayer.PRELOADING:this.wrapper.hasClass(\"_loading\")&&!this.wrapper.hasClass(\"_loading-ad\")?UOLPlayer.LOADING:this.wrapper.hasClass(\"_waiting\")?UOLPlayer.BUFFERING:this.wrapper.hasClass(\"_paused\")&&this.wrapper.hasClass(\"_playing-ad\")?UOLPlayer.ADPAUSED+(this.wrapper.getData(\"adPos\")?\"_\"+this.wrapper.getData(\"adPos\"):\"\"):this.wrapper.hasClass(\"_paused\")&&this.wrapper.hasClass(\"_playing\")?UOLPlayer.VIDEOPAUSED:this.wrapper.hasClass(\"_end\")?UOLPlayer.ENDED:this.wrapper.hasClass(\"_loading-ad\")?UOLPlayer.LOADINGAD+(this.wrapper.getData(\"adPos\")?\"_\"+this.wrapper.getData(\"adPos\"):\"\"):this.wrapper.hasClass(\"_playing-ad\")?UOLPlayer.PLAYINGAD+(this.wrapper.getData(\"adPos\")?\"_\"+this.wrapper.getData(\"adPos\"):\"\"):this.wrapper.hasClass(\"_playing-video\")?\"video\"===this.mediaType?UOLPlayer.PLAYINGVIDEO:UOLPlayer.PLAYINGAUDIO:UOLPlayer.READY},UOLPlayer.prototype.destroy=function(){function e(){}this.logger.log(\"[DESTROYING PLAYER]\"),window.clearInterval(this.queueInteractionsInterval),this.wrapper.empty();var t=this.mediaId,a=this.hashId;this.ads&&this.ads.destroy(!0),this.detach&&this.detach.destroy(),this.observer&&this.observer.disconnect();try{this.parentNode.replaceChild(this.originalWrapper,this.wrapper)}catch(i){}this.wrapper=this.originalWrapper,UOLPlayer[t]=UOLPlayer[a]=new e,delete UOLPlayer[a],delete UOLPlayer[t]},UOLPlayer.prototype.deactivate=function(){return clearTimeout(this.timeout),this.getState()===UOLPlayer.LOADING||this.getState()===UOLPlayer.BUFFERING?void(this.timeout=setTimeout(function(){UOLPlayer.getCurrentMedia()!==this&&this.deactivate()}.bind(this),100)):(this.ads&&this.ads.pause(),this.playing&&this.play(),void(this.deactivated=!0))},UOLPlayer.prototype.isStarted=function(){return this.wrapper.hasClass(\"_clicked\")&&this.getState()!==UOLPlayer.PAUSED&&this.getState()!==UOLPlayer.ENDED},UOLPlayer.prototype.isDetached=function(){return this.wrapper.hasClass(\"up-detach\")},UOLPlayer.prototype.isPlaying=function(){return this.wrapper.hasClass(\"_playing-video\")},UOLPlayer.prototype.wasPlayed=function(){return this.wrapper.hasClass(\"_playing\")},UOLPlayer.prototype.isPlayingAd=function(){return this.wrapper.hasClass(\"_playing-ad\")},UOLPlayer.prototype.isPaused=function(){return this.wrapper.hasClass(\"_paused\")},UOLPlayer.prototype.isFullscreen=function(){var e=(document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement)&&(this.wrapper.hasClass(\"_fullscreen\")||this.wrapper.hasClass(\"_fullscreen_ipad\"));return UOLPlayer.isFullscreen=e,e},UOLPlayer.prototype.setControlHeight=function(e){e=parseInt(e)?parseInt(e):0,this.wrapper.querySelector(\".up-ctrlbar\").style.bottom=e+\"px\",this.wrapper.querySelector(\".up-ctrlbar-tools\").style.bottom=parseInt(e)+40+\"px\",this.wrapper.querySelector(\".up-ctrlbar-tools\").style.position=\"absolute\"};var UOLPlayerLog=function(e){this.app=e,this.performance=window.performance&&window.performance.now?window.performance:{now:function(){return 0}},this.logTimers={},this.logEnabled=UOLPlayer.config.log;var t={LOG:{color:\"#353535\"},DFP:{color:\"#2A852B\"},METRICS:{color:\"#E67C17\"},ERROR:{color:\"#850000\"},TIME:{color:\"#356AFF\"},TIMEOUT:{color:\"#7f2fd8\"},HLS:{color:\"#a4c0Ff\"},DASH:{color:\"#4286f4\"},TEST:{color:\"#e100ff\"}},a=function(e){var a=t[e].color;return this.logEnabled?function(t){UOLPlayer.isIE&&!UOLPlayer.isEdge?UOLPlayer.l(e+\" | \"+t):UOLPlayer.l(\"%c\"+e+\" | \"+t+\" \",\"background: \"+a+\"; color: #fff; font-size: 14px\"),this.logEnabled&&UOLPlayer.isMobile&&this.app.wrapper&&!this.divConsole&&(this.divConsole=UOLPlayer.domNode(\"div\"),this.divConsole.addClass(\"uolplayer-console\"),this.app.wrapper.appendChild(this.divConsole)),this.divConsole&&(this.divConsole.innerHTML=this.divConsole.innerHTML+'<br/><span style=\"background: '+a+'; color: #fff;\">'+e+\": \"+t+\"</span>\",this.divConsole.scrollTop=this.divConsole.scrollHeight)}:function(){}}.bind(this);this.log=a(\"LOG\"),this.logTime=a(\"TIME\"),this.logDFP=a(\"DFP\"),this.logMetrics=a(\"METRICS\"),this.logError=a(\"ERROR\"),this.logTimeout=a(\"TIMEOUT\"),this.logHLS=a(\"HLS\"),this.logDASH=a(\"DASH\"),this.logTEST=a(\"TEST\")};UOLPlayerLog.prototype.startTime=function(e){this.logTime(\"START - \"+e),this.logTimers[e]={},this.logTimers[e].startTime=(new Date).getTime(),this.logTimers[e].startPerformance=this.performance.now()},UOLPlayerLog.prototype.stopTime=function(e){if(this.logTimers[e])return this.logTimers[e].time=(new Date).getTime()-this.logTimers[e].startTime,this.logTimers[e].performance=Math.floor(this.performance.now()-this.logTimers[e].startPerformance),this.logTime(\"STOP - \"+e+\" - time: \"+this.logTimers[e].time+\" - performace: \"+this.logTimers[e].performance),this.logTimers[e]},UOLPlayerLog.prototype.tick=function(e){this.logTimers[e].tick||(this.logTimers[e].tick=[]),this.logTime(\"TICK - \"+e+\" - TIME: \"+this.stopTime(e).time),this.logTimers[e].tick.push(this.stopTime(e))},UOLPlayerLog.prototype.getTime=function(e){return this.logTimers[e]},UOLPlayerLog.prototype.send=function(e,t,a){this.log(\"LOG \"+e),UOLPlayerLog.send(this.app,e,t,a)},UOLPlayerLog.send=function(e,t,a,i){var r=UOLPlayerLog.prepareObject(e,t,a);(UOLPlayer.config.log||\"error\"===t)&&UOLPlayer.l(r),UOLPlayerLog.sendToMiner(e,t,r,i)},UOLPlayerLog.sendToMiner=function(e,t,a,i){var r=UOLPlayerLog.params(a,\";\"),s=\"&prd=17\",o=\"&msr=\"+t+\":1;\"+r.measures,n=\"&grp=\"+r.groups,l=UOLPlayer[\"const\"].urls.MINER+s+o+n,d=i||{};d.url=l,UOLPlayer.ajax(d)},UOLPlayerLog.params=function(e,t){var a=\"\",t=t||\"&\",i=[],r=[],s=[\"mediaId\",\"apiDrakkarStatus\",\"apiCroupierStatus\",\"typeError\",\"rebuffering\",\"rebufferingCount\"];for(var o in e)a=!1,e[o]&&e[o].push?e[o].length>0&&(a=o+\":\"+encodeURIComponent(JSON.stringify(e[o]))):a=o+\":\"+encodeURIComponent(e[o]),a!==!1&&(s.indexOf(o)===-1&&\"number\"==typeof e[o]?i.push(a):r.push(a));return{measures:i.join(t),groups:r.join(t)}},UOLPlayerLog.prepareObject=function(e,t,a){var i,r,s,o,n,i={},l=!1,d=\"\",p=\"\",u=\"\",h=0,m=0,c=\"\",y=0,g=0,v=0,P=0,f=0,L=0;try{if(a&&(i.timeout=!!a.timeout&&a.timeout,a.timeoutId&&(i.timeoutId=a.timeoutId),void 0!==a.adError&&(i.adError=a.adError),void 0!==a.ad&&(i.ad=a.ad),a.adObj&&(i.adId=a.adObj.getAdId(),i.adSystem=a.adObj.getAdSystem(),i.adCreativeId=a.adObj.getCreativeId(),i.adTitle=a.adObj.getTitle()+\"_\"+i.adId,i.adContentType=a.adObj.getContentType()),a.time&&(r=a.time.time,s=a.time.performance),void 0!==a.payload&&(i=UOLPlayer.mergeObject(i,a.payload)),void 0!==a.typeError&&(i=UOLPlayer.mergeObject(i,a)),\"GA\"==t))for(var n in a)i[\"GA_\"+n]=a[n];if(UOLPlayer.info&&(i.browser=UOLPlayer.info.browser+\" \"+UOLPlayer.info.browserMajorVersion,i.os=UOLPlayer.info.os+\" \"+UOLPlayer.info.osVersion),e.data&&e.data.item){if(l=e.data.item.userIp,d=e.data.item.url,p=e.data.item.duration.seconds,u=e.data.item.author,h=e.data.item.revision,e.data.item.playerParameters)for(var n in e.data.item.playerParameters)i[\"playerParameters_\"+n]=e.data.item.playerParameters[n];if(e.data.item.publishedDate){var O=e.data.item.publishedDate.formatted;i.publishedDate=parseInt(O.substr(4,4)+O.substr(2,2)+O.substr(0,2)),i.publishedTimestamp=e.data.item.publishedDate.timestamp}}if(e.statistic&&(i.downloadTime=e.statistic.amountTime,i.downloadSize=e.statistic.amountSize,i.downloadVelocity=e.statistic.amountTime>0?1e3*e.statistic.amountSize/e.statistic.amountTime:0,i.downloadVelocityKB=i.downloadVelocity/1024),e.keyboardState)for(var n in e.keyboardState)i[\"keyboard_\"+n]=e.keyboardState[n];if(e.wrapper){y=e.wrapper.clientWidth,g=e.wrapper.clientHeight,y>0&&g>0&&(v=y/g),UOLPlayer.isIframe&&(\"number\"==typeof window.innerWidth?(P=window.innerWidth,f=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(P=document.documentElement.clientWidth,f=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(P=document.body.clientWidth,f=document.body.clientHeight),P>0&&f>0&&(L=f/f));var o=UOLPlayer.getCookie(\"DNA\")||\"\";o=o.split(\"|\").shift()}e.mediaPlayer&&e.mediaPlayer.mediaElement&&(c=e.mediaPlayer.mediaElement.src,m=e.mediaPlayer.mediaElement.maxReadyState,i.currentTime=e.mediaPlayer.mediaElement.currentTime||0,i.playbackRate=e.mediaPlayer.mediaElement.playbackRate,e.mediaPlayer.mediaElement.error&&(i.mediaErrorCode=e.mediaPlayer.mediaElement.error.code,i.mediaErrorMessage=e.mediaPlayer.mediaElement.error.message));for(n in UOLPlayer.Cache.logs){var E=UOLPlayer.Cache.logs[n];i[\"cache_\"+n+\"_time\"]=E.time.time,i[\"cache_\"+n+\"_state\"]=E.state,i[\"cache_\"+n+\"_error\"]=E.error,i[\"cache_\"+n+\"_crc32\"]=E.crc32}if(UOLPlayer.Profiler.parsedAt){var U=new Date;i.parsedAt=UOLPlayer.Profiler.parsedAt.toDateTime(),i.logAt=U.toDateTime(),i.largeTimeDiff=U-UOLPlayer.Profiler.parsedAt>2e5}for(n in UOLPlayer.Profiler.requests)i[\"server_\"+n+\"_time_min\"]=UOLPlayer.Profiler.requests[n].minimum,i[\"server_\"+n+\"_time_max\"]=UOLPlayer.Profiler.requests[n].maximum,i[\"server_\"+n+\"_last_status\"]=UOLPlayer.Profiler.requests[n].status;for(n in UOLPlayer.Profiler.serverStatus)i[\"server_\"+n+\"_status\"]=UOLPlayer.Profiler.serverStatus[n];for(n in UOLPlayer.Profiler.apis)i[\"api_\"+n+\"_time\"]=UOLPlayer.Profiler.apis[n].time,i[\"api_\"+n+\"_status\"]=UOLPlayer.Profiler.apis[n].status;UOLPlayer.Profiler.servers&&(i.servers=UOLPlayer.Profiler.servers),i.caches_invalidation=UOLPlayer.invalidated;var b=/^https:/;i.ip=l,i.logName=t,i.hashId=e.hashId,i.mediaId=e.mediaId,i.time=r,i.performance=s,i.duration=p,i.author=u,i.revision=h,i.maxReadyState=m,i.dna=o,i.userAgent=UOLPlayer.info.userAgent,i.mobile=e.isMobile,i.mediaType=e.audio?\"audio\":\"video\",i.version=UOLPlayer.version,i.hlsNative=!!e.hlsNative,i.hls=!!e.hlsEnabled||i.hlsNative,i.webm=!!e.webmEnabled,i.mp4=!(i.hls&&i.webm),i.flashFallback=e.flashFallback,i.onDemand=e.onDemand,i.pauseCounts=e.pauseCounts,i.related=!!e.related,i.recommended=\"string\"==typeof e.recommended?e.recommended:!!e.recommended,i.autoplayScroll=!!e.wrapper.getData(\"autoplayscroll\"),i.autoplay=e._autoplay||i.autoplayScroll,i.autoplayMobile=!!e.autoplayMobile,i.autoplayRejects=!!e.autoplayRejects,i.syntheticPlay=e.syntheticPlay,i.replay=e.replay,i.XHR2Supported=UOLPlayer.isXHR2Supported,i.testEnabled=\"\"!==e.testEnabled&&e.testEnabled,i.dfp=e.dfp,i.iuDFP=e.iuDFP,i.hostname=UOLPlayer.hostName,i.url=UOLPlayer.getURL(),i.loadApiError=e.apiError&&e.apiError.length>0?e.apiError:\"\",i.criticalFailure=e.criticalFailure===!0,i.download=e.download,i.currentFormat=e.currentFormat,i.testName=e.testName,i.testParticipant=e.testParticipant,i.retryCount=e.retryCounts,i.testResult=e.testResult,i.externalCDN=e.externalCDN,i.environment=UOLPlayer.environment(),i.isFlash=e.flashFallback||e.isFlash,\ni.isIframe=UOLPlayer.isIframe,i.isUrlSecurity=b.test(UOLPlayer.getURL()),i.isIframeSecurity=UOLPlayer.isIframe&&b.test(document.referrer),i.isInstantArticle=UOLPlayer.isInstantArticle,i.isAMP=UOLPlayer.isAMP,i.isLegacyIframe=UOLPlayer.isLegacyIframe,i.wrapperWidth=y,i.wrapperHeight=g,i.wrapperAspectRatio=v,i.iFrameWidth=P,i.iFrameHeight=f,i.iframeAspectRatio=L,i.fingerprint=UOLPlayer.Fingerprint.id,i.isAutoplayRejected=!e.isAutoplayOk,i.isAutoplayMuted=e.isAutoplayMuted,i.instancesAutoLoaded=UOLPlayer.instancesAutoLoaded,i.instancesMaterialized=UOLPlayer.instancesMaterialized,e.options&&e.options.subtitle&&void 0!==e.options.subtitle.subtitleOn&&!e.options.subtitle.disabled&&(i.subtitleOn=e.options.subtitle.subtitleOn),e.levelList.length>0&&\"GA\"===i.logName&&(i.levelList=e.levelList),i.timeLoadApi=e.chronoLoadApi?e.chronoLoadApi.time:\"\",e.chronoLoadLibHLS&&(i.timeLoadLibHls=e.chronoLoadLibHLS.time),e.chronoLoadLibDFP&&(i.timeLoadLibDfp=e.chronoLoadLibDFP.time),e.tracker&&(i=UOLPlayer.mergeObject(i,e.tracker.getData())),UOLPlayer.supportedMediaTypes&&(i=UOLPlayer.mergeObject(i,UOLPlayer.supportedMediaTypes))}catch(C){UOLPlayer.e(C)}return i},UOLPlayer.searchLog=function(e){var t=function(e,t){var a=UOLPlayerLog.params(e,\";\"),i=\"&prd=17\",r=\"&msr=fix:1\",s=\"&grp=\"+a.groups,o=UOLPlayer[\"const\"].urls.MINER+i+r+s,n=t||{};n.url=o,UOLPlayer.ajax(n)};return t}(),UOLPlayer.currentFormatLog=function(e,t,a){return UOLPlayer.i(\"[UOLPLAYER] \"+t+\" - \"+a),e.logger.log(t+\" - \"+a),a};var UOLPlayerUI=function(e,t){this.app=e,this.player=t,this.ui=this.app.wrapper.getElementsByClassName(\"ui\")[0],this.posterPreload=this.app.wrapper.getElementsByClassName(\"up-poster\")[0],this.poster=this.ui.getElementsByClassName(\"up-poster\")[0],this.btplay=this.ui.getElementsByClassName(\"bt-play\")[0],this.btforward=this.ui.getElementsByClassName(\"up-bt-forward\")[0],this.timeoutMouseout=this.app.wrapper.getData(\"timeout\")||3e3,this.btplay&&(this.btplayIcon=this.btplay.getElementsByClassName(\"up-icon\")[0]),this.app.wrapper.getData(\"totaltime\")&&(this.btplay.getElementsByClassName(\"up-play-time\")[0].innerHTML=this.app.wrapper.getData(\"totaltime\")),this.initSkin(),this.initCtrlBar(),this.app.audio||(UOLPlayer.setPoster(this.app,this.poster),UOLPlayer.setPoster(this.app,this.posterPreload)),UOLPlayer.eventsControl.call(this),this.events={mouseover:new UOLPlayer.customEvents,mouseout:new UOLPlayer.customEvents}},volumeMarkup='<div class=\"up-ctrlbar-cell up-volume-group\"><div class=\"up-bt up-bt-volume up-bt-volume-mute\"></div><div class=\"up-volume\"><div class=\"up-dragbar-control up-dragbar up-volume-panel\"><div class=\"up-dragbar-handle\"></div><div class=\"up-dragbar-slider\"><div class=\"up-dragbar-bar\"></div><div class=\"up-dragbar-buffered\"></div></div></div></div></div>',changeQualityMarkup='<div class=\"up-ctrlbar-tools\"><div class=\"up-ctrlbar-wrapper\"><div class=\"up-ctrlbar-tools-panel\"><div class=\"up-ctrlbar-tools-item up-ctrlbar-tools-head up-ctrlbar-openquality\"><div class=\"up-ctrlbar-tools-label\">Qualidade</div><div class=\"up-ctrlbar-tools-content up-next-element\"><span class=\"quality-isauto\">Auto</span> <span class=\"quality-type\"></span></div></div><div class=\"up-ctrlbar-tools-item up-ctrlbar-tools-head up-ctrlbar-openplaybackrate\"><div class=\"up-ctrlbar-tools-label\">Velocidade</div><div class=\"up-ctrlbar-tools-content up-next-element playbackrate-current\">Normal</div></div><div class=\"up-ctrlbar-tools-item up-ctrlbar-autorep display-none\"><div class=\"up-ctrlbar-tools-label\">Reprodução automática</div><div class=\"up-ctrlbar-tools-content\"><svg  class=\"up-switch up-switch-on\" xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"28\" viewBox=\"0 10 48 28\"><g fill=\"none\" fill-rule=\"evenodd\"><rect width=\"40\" height=\"20\" x=\"4\" y=\"14\" fill=\"#FFF\" rx=\"10\"/><circle class=\"up-switch-circle\" cx=\"34\" cy=\"24\" r=\"4\" fill=\"#22DC72\"/></g></svg></div></div></div><div class=\"up-ctrlbar-tools-subpanel\"><div class=\"up-quality up-ctrlbar-tools-subpanel-item display-none\"><div class=\"up-ctrlbar-tools-item up-ctrlbar-tools-head up-ctrlbar-closequality\"><div class=\"up-ctrlbar-tools-content up-prev-element\"><span>Qualidade</span></div></div><div class=\"up-quality-type-group\"></div></div><div class=\"up-playbackrate up-ctrlbar-tools-subpanel-item display-none\"><div class=\"up-ctrlbar-tools-item up-ctrlbar-tools-head up-ctrlbar-closeplaybackrate\"><div class=\"up-ctrlbar-tools-content up-prev-element\"><span>Velocidade</span></div></div><div class=\"up-playbackrate-type-group\"></div></div></div></div></div>';UOLPlayerUI.btPlayMarkup='<div class=\"bt-play cursor-pointer display-none\"><div class=\"up-icon up-bt-play-big\"></div><div class=\"up-bt-forward \"><div class=\"up-bt-spin up-bt-forward-spin display-none\">{{this.app.forwardRewindBase}}</div><div class=\"jump-step forward-jump-step display-none\"></div></div><div class=\"up-bt-rewind\"><div class=\"up-bt-spin up-bt-rewind-spin display-none\">{{this.app.forwardRewindBase}}</div><div class=\"jump-step rewind-jump-step display-none\"></div></div><div class=\"up-bt-share-mobile\"></div><div class=\"up-poster\"></div></div>',UOLPlayerUI.timeDisplayMarkup='<div class=\"up-ctrlbar-cell up-time-display\"><span class=\"up-time-current\">0:00</span><span class=\"up-time-separator\">/</span><span class=\"up-time-duration\">0:00</span></div>',UOLPlayerUI.controlbarMarkup=changeQualityMarkup+'<div class=\"up-ctrlbar\"><div class=\"up-ctrlbar-line up-seek\"><div class=\"up-dragbar-control up-dragbar\"><div class=\"up-dragbar-handle\"></div><div class=\"up-dragbar-slider\"><div class=\"up-dragbar-bar\"></div><div class=\"up-dragbar-buffered\"></div></div></div></div><div class=\"up-ctrlbar-line\"><div class=\"up-ctrlbar-cell up-bt up-bt-play\"></div><div class=\"up-ctrlbar-cell up-bt up-bt-init display-none\"></div>'+UOLPlayerUI.timeDisplayMarkup+'<div class=\"up-ctrlbar-cell up-spacer\"></div>'+volumeMarkup+'<div class=\"up-ctrlbar-cell up-bt up-bt-tools\"></div><div class=\"up-ctrlbar-cell up-bt up-bt-subtitle display-none\"></div><div class=\"up-ctrlbar-cell up-bt up-bt-detach display-none\"></div><div class=\"up-ctrlbar-cell up-bt up-bt-fullscreen\"></div><div class=\"up-ctrlbar-cell up-bt-download-display display-none\"><a class=\"up-bt up-bt-download\" target=\"_blank\" href=\"#\" download=\"download\"></a></div></div></div>',UOLPlayerUI.prototype.setState=function(e){var t=function(e){e?this.app.addClass(\"_tools\"):this.app.removeClass(\"_tools\")}.bind(this),a=function(e){e?this.app.addClass(\"_share\"):this.app.removeClass(\"_share\")}.bind(this),i=function(e){e?this.app.addClass(\"_related\"):this.app.removeClass(\"_related\")}.bind(this);switch(e){case\"stop\":this.btplay&&this.btplay.show(),this.setControlState(\"stop\"),this.loading(!1);break;case\"loading\":this.playingVideo(!1),this.playingAd(!1),this.loading(!0);break;case\"playingAd\":this.loading(!1),this.playingVideo(!1),this.playingAd(!0),this.app.addClass(\"_playing\").removeClass(\"_waiting\");break;case\"playingVideo\":this.loading(!1),this.playingAd(!1),this.playingVideo(!0),this.app.addClass(\"_playing\").removeClass(\"_waiting\");break;case\"play\":this.play(!0),i(!1),a(!1),t(!1);break;case\"pause\":this.play(!1),this.loading(!1),this.playingVideo(!1);break;case\"related\":this.app.hasClass(\"_related\")?(i(!1),a(!1),t(!1)):(t(!0),i(!0),a(!1)),this.app.hasClass(\"_end\")||this.controlbar.play.removeClass(\"up-bt-pause\");break;case\"share\":this.app.hasClass(\"_share\")?(a(!1),i(!1),t(!1)):(t(!0),a(!0),i(!1)),this.app.hasClass(\"_end\")||this.controlbar.play.removeClass(\"up-bt-pause\");break;case\"autorep\":this.app.hasClass(\"_autorep\")?this.app.removeClass(\"_autorep\"):this.app.addClass(\"_autorep\");break;case\"tools\":this.app.hasClass(\"_tools\")?this.app.removeClass(\"_tools\"):this.app.addClass(\"_tools\");break;case\"waiting\":this.app.addClass(\"_waiting\");break;case\"error\":this.error(),this.loading(!1);break;case\"ended\":this.app.removeClass(\"_clicked\"),this.app.removeClass(\"_playing-ad\"),this.app.removeClass(\"_playing\"),this.btplay&&this.btplay.show(),this.reload(),this.playingVideo(!1)}},UOLPlayerUI.prototype.play=function(e){e===!0?this.setControlState(\"play\"):this.setControlState(\"pause\")},UOLPlayerUI.prototype.reload=function(e){this.setControlState(\"reload\")},UOLPlayerUI.prototype.playingVideo=function(e){e===!0?this.app.addClass(\"_playing-video\"):this.app.removeClass(\"_playing-video\")},UOLPlayerUI.prototype.playingAd=function(e){e?(this.app.addClass(\"_playing-ad\").removeClass(\"_loading-ad\"),UOLPlayer.isSafari&&UOLPlayer.isMobile&&this.app.removeClass(\"_waiting\")):this.app.removeClass(\"_playing-ad\")},UOLPlayerUI.prototype.loading=function(e){e?this.app.addClass(\"_loading\"):this.app.removeClass(\"_loading\")},UOLPlayerUI.prototype.error=function(){this.app.addClass(\"_error\"),this.btplayIcon.addClass(\"fa-play\"),this.btplayIcon.removeClass(\"fa-pause\")},UOLPlayerUI.prototype.setFullscreen=function(e){e?(this.setControlState(\"fullscreen\"),this.app.addClass(\"_fullscreen\"),this.app.fullscreen=!0):(this.setControlState(\"normalscreen\"),this.app.removeClass(\"_fullscreen\"),this.app.fullscreen=!1)},UOLPlayerUI.prototype.setControlState=function(e){if(this.app.skin)switch(e){case\"stop\":this.controlbar.play.removeClass(\"up-bt-pause\").removeClass(\"up-bt-repeat\"),this.app.removeClass(\"_paused\").removeClass(\"_reload\").removeClass(\"_clicked\").removeClass(\"_waiting\");break;case\"play\":this.controlbar.play.addClass(\"up-bt-pause\").removeClass(\"up-bt-repeat\"),this.app.removeClass(\"_paused\").removeClass(\"_reload\").removeClass(\"_waiting\");break;case\"pause\":this.controlbar.play.removeClass(\"up-bt-pause\").removeClass(\"up-bt-repeat\"),this.app.addClass(\"_paused\").removeClass(\"_reload\").removeClass(\"_waiting\");break;case\"reload\":this.controlbar.play.removeClass(\"up-bt-pause\").addClass(\"up-bt-repeat\"),this.app.addClass(\"_reload\");break;case\"fullscreen\":this.controlbar.fullscreen.addClass(\"up-bt-fullscreen-back\");break;case\"normalscreen\":this.controlbar.fullscreen.removeClass(\"up-bt-fullscreen-back\")}},UOLPlayerUI.prototype.initSkin=function(){var e;this.mouseout=function(){this.app.addClass(\"_mouseout\").removeClass(\"_mouseover\"),this.controlbar.seek.seek.removeClass(\"_mouseover\"),this.events.mouseout.dispatch(),clearTimeout(e)}.bind(this),this.timeout=function(){this.app.addClass(\"_mouseover\").removeClass(\"_mouseout\"),clearTimeout(e),e=setTimeout(function(){this.mouseout()}.bind(this),this.timeoutMouseout)}.bind(this),this.app.wrapper.addEventListener(UOLPlayer.isMobile?\"touchstart\":\"mouseover\",function(){this.app.addClass(\"_mouseover\").removeClass(\"_mouseout\"),this.events.mouseover.dispatch()}.bind(this),UOLPlayer.supportsPassive),UOLPlayer.isMobile?this.app.wrapper.addEventListener(\"touchend\",this.timeout,UOLPlayer.supportsPassive):this.app.wrapper.addEventListener(\"mouseout\",this.mouseout),this.app.wrapper.addEventListener(UOLPlayer.isMobile?\"touchmove\":\"mousemove\",this.timeout,UOLPlayer.supportsPassive)},UOLPlayerUI.prototype.initCtrlBar=function(){var e=this.ui.getElementsByClassName(\"up-ctrlbar\")[0];this.app.skin?(e.show(),this.controlbar={controlbar:e,play:e.getElementsByClassName(\"up-bt-play\")[0],init:e.getElementsByClassName(\"up-bt-init\")[0],totalTime:e.getElementsByClassName(\"up-time-duration\")[0],currentTime:e.getElementsByClassName(\"up-time-current\")[0],fullscreen:e.getElementsByClassName(\"up-bt-fullscreen\")[0],seek:{seek:e.getElementsByClassName(\"up-seek\")[0],control:e.getElementsByClassName(\"up-seek-control\")[0],progress:e.getElementsByClassName(\"up-seek-progress\")[0],buffer:e.getElementsByClassName(\"up-seek-buffer\")[0]},volume:{root:e.getElementsByClassName(\"up-volume\")[0],bt:e.getElementsByClassName(\"up-volume-bt\")[0],control:e.getElementsByClassName(\"up-volume-control\")[0],bar:e.getElementsByClassName(\"up-volume-bar\")[0],slider:e.getElementsByClassName(\"up-volume-slider\")[0]}},this.controlbar.play.addEventListener(\"click\",function(e){this.app.onClick()}.bind(this)),this.app.useResume&&this.app.startTime>0?this.controlbar.init.show().addEventListener(\"click\",function(e){this.app.mediaPlayer&&this.app.mediaPlayer.seek(1)}.bind(this)):this.controlbar.init.hide(),this.player.mediaElement.addEventListener(\"click\",function(){UOLPlayer.isMobile&&this.app.hasClass(\"_clicked\")?this.app.addClass(\"_mouseover\"):this.app.onClick()}.bind(this)),UOLPlayer.fullscreenEnabled?this.controlbar.fullscreen.addEventListener(\"click\",function(){this.app.setFullscreen()}.bind(this)):this.controlbar.fullscreen.hide(),this.app.controls||this.controlbar.controlbar.hide(),this.app.cover||this.ui.getElementsByClassName(\"bt-play\")[0].addClass(\"opacity-0\")):e.hide()};var UOLPlayerAds=function(e,t){UOLPlayer.eventsControl.call(this),this.events={adStarted:new UOLPlayer.customEvents,allAdsCompleted:new UOLPlayer.customEvents,contentCompleted:new UOLPlayer.customEvents,contentPauseRequested:new UOLPlayer.customEvents,contentResumeRequested:new UOLPlayer.customEvents,timeupdate:new UOLPlayer.customEvents};var a=e.wrapper.getElementsByClassName(\"ui\")[0],i={btvisit:a.getElementsByClassName(\"up-ad-visit-advertiser\")[0],remaining:a.getElementsByClassName(\"up-ad-remaining-time\")[0],progressbar:a.getElementsByClassName(\"up-ad-bar\")[0]};this.contentCompleteCalled=!1,this.allAdsCompleteCalled=!1,this.adError=!1,this.app=e,this.ad=null,this.adPos=null,this.playingAd=!1,this.paused=!1,this.adPodIndex=0,this.customClickDiv=i.btvisit,this.isMute=!1,this.videoPlayer=t;try{google.ima}catch(r){UOLPlayer.w(\"UOLPLAYER: google.ima não carregado.\")}google.ima.settings.setLocale(\"pt-BR\"),this.adDisplayContainer=new google.ima.AdDisplayContainer(this.videoPlayer.adContainer,this.videoPlayer.mediaElement,this.customClickDiv),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsManager=null,this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1,this),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1,this),this.timeouts=this.app.timeouts,this.timeoutList={},this.timeoutList.requestAdsTimeout=this.timeouts[this.timeouts.type.REQUEST_ADS],this.timeoutList.loadAdTimeout=this.timeouts[this.timeouts.type.LOAD_AD],this.timeoutList.bufferTimeout=this.timeouts[this.timeouts.type.PLAYING_AD],this.startAdCountdown=function(){this.app.ui.setState(\"playingAd\");var e=function(){_perc=this.getCurrentPerc(),i.remaining.innerHTML=this.getRemainingTime()<0?\"0:00\":this.getRemainingTime().toString().formatTime(),i.progressbar.style.width=_perc+\"%\",this.events.timeupdate.dispatch({currentTime:this.getCurrentTime(),duration:this.getDuration(),perc:_perc})}.bind(this);i.remaining.innerHTML=\"\",i.progressbar.style.width=0,this.countdownTimer=setInterval(e,1e3),e(),this.timeoutList.bufferTimeout.start(function(){this.timeoutId=this.timeouts.type.PLAYING_AD,this.destroy(),this.adPos=this.getAdPosition(),this.app.tracker.pushStates([\"ad\",this.getAdPosition()],[\"adId\",this.ad.getAdId()],[\"adCreativeId\",this.ad.getCreativeId()],[\"adSystem\",this.ad.getAdSystem()],[\"adTitle\",this.ad.getTitle()]),this.app.logger.send(this.timeouts.type.PLAYING_AD,{timeout:!0})}.bind(this));var t=setTimeout(function(){(this.paused||this.getCurrentTime()>=this.timeouts.time.PLAYING_AD/1e3-5)&&(clearTimeout(t),this.timeoutList.bufferTimeout.abort())}.bind(this),this.timeouts.time.PLAYING_AD-1e3)},this.stopAdCountdown=function(){i.remaining.innerHTML=\"\",i.progressbar.style.width=0,this.app.ui.playingAd(!1),this.countdownTimer&&clearInterval(this.countdownTimer)}};UOLPlayerAds.prototype.initialUserAction=function(){this.app.logger.logDFP(\"initialUserAction\"),this.contentCompleteCalled=!1,this.adDisplayContainer.initialize(),this.videoPlayer.pause()},UOLPlayerAds.prototype.requestAds=function(e){this.app.wrapper.addClass(\"_loading-ad\").setData(\"adPos\",this.getAdPosition()),this.app.logger.startTime(\"dfp-init\"),this.app.logger.startTime(\"dfpRequestAds\");var t=new google.ima.AdsRequest,a=this.app.getSize();t.adTagUrl=e,t.linearAdSlotWidth=a.width,t.linearAdSlotHeight=a.height,t.nonLinearAdSlotWidth=a.width,t.nonLinearAdSlotHeight=a.height,t.setAdWillAutoPlay(this.app.isAutoplayOk),t.setAdWillPlayMuted(this.app.isAutoplayMuted),this.adsLoader.requestAds(t),this.timeoutList.requestAdsTimeout.start(function(){this.timeoutId=this.timeouts.type.REQUEST_ADS,this.destroy(),this.trackAds(),this.app.logger.send(this.timeouts.type.REQUEST_ADS,{time:this.app.logger.stopTime(this.timeouts.type.REQUEST_ADS),timeout:!0})}.bind(this))},UOLPlayerAds.prototype.trackAds=function(){try{this.adPos=this.getAdPosition(),this.app.tracker.pushState(\"ad\",this.adPos),this.ad&&this.app.tracker.pushStates([\"adId\",this.ad.getAdId()],[\"adSystem\",this.ad.getAdSystem()],[\"adCreativeId\",this.ad.getCreativeId()],[\"adTitle\",this.ad.getTitle()])}catch(e){}},UOLPlayerAds.prototype.destroy=function(e){this.app.logger.logDFP(\"destroy\"),this.adDisplayContainer&&this.adDisplayContainer.destroy(),this.adsManager&&this.adsManager.destroy(),this.app.wrapper.removeClass(\"_playing-ad\").removeClass(\"_loading-ad\");for(var t in this.timeoutList)this.timeoutList[t].abort();e||this.onContentResumeRequested()},UOLPlayerAds.prototype.adClicked=function(){this.app.playing?this.pause():this.resume(),this.app.playing=!this.app.playing},UOLPlayerAds.prototype.pause=function(){this.adsManager&&this.adsManager.pause(),UOLPlayer.onPause(this.app)},UOLPlayerAds.prototype.resume=function(){this.adsManager&&this.adsManager.resume(),UOLPlayer.onResume(this.app)},UOLPlayerAds.prototype.resize=function(e,t,a){this.adsManager&&this.adsManager.resize(e,t,google.ima.ViewMode[a])},UOLPlayerAds.prototype.contentEnded=function(){this.adPodIndex=-1,this.app.logger.logDFP(\"contentEnded\"),this.app.logger.startTime(\"dfp-init\"),this.contentCompleteCalled=!0,this.adError=!1,this.adsLoader.contentComplete(),(void 0!==this.timeouts.status||this.allAdsCompleteCalled)&&this.events.allAdsCompleted.dispatch()},UOLPlayerAds.prototype.resumeAfterAd=function(){this.app.logger.logDFP(\"resumeAfterAd\");var e;!this.playingAd&&this.timeoutId&&(this.adPos=e=this.getAdPosition(),this.trackAds(),this.app.logger.send(\"dfpBegin\",{time:this.app.logger.stopTime(\"dfp-init\"),timeoutId:this.timeoutId,timeout:!0})),this.adError&&(this.trackAds(),this.adPos=e=UOLPlayerAds.adPosition(this.adPodIndex),this.app.logger.logError(\"DFP (\"+e+\") error: \"+this.adError),this.app.logger.send(\"dfpBegin\",{time:this.app.logger.stopTime(\"dfp-init\"),ad:e,adError:this.adError}),this.timeoutList.requestAdsTimeout.abort()),this.contentCompleteCalled||this.events.contentCompleted.dispatch()},UOLPlayerAds.prototype.allAdsCompleted=function(){this.app.logger.logDFP(\"allAdsCompleted\"),this.adPos=adPos=UOLPlayerAds.adPosition(this.adPodIndex),this.adError&&(this.app.logger.logError(\"DFP: (\"+adPos+\") error: \"+this.adError),this.app.logger.send(\"dfpBegin\",{time:this.app.logger.stopTime(\"dfp-init\"),ad:adPos,adError:this.adError})),1!=this.adPodIndex&&this.events.allAdsCompleted.dispatch(),this.allAdsCompleteCalled=!0},UOLPlayerAds.prototype.setVolume=function(e){this.adsManager&&this.adsManager.setVolume(Number(e))},UOLPlayerAds.prototype.mute=function(){this.setVolume(0),this.isMute=!0},UOLPlayerAds.prototype.toggleMute=function(){this.isMute?(this.setVolume(UOLPlayer.getCookie(\"lplr_vlm\")||1),this.isMute=!1):(this.setVolume(0),this.isMute=!0)},UOLPlayerAds.prototype.getAdPosition=function(){return UOLPlayerAds.adPosition(this.getAdPodIndex())},UOLPlayerAds.prototype.getAdPodIndex=function(){try{return this.ad&&this.ad.getAdPodInfo()?this.ad.getAdPodInfo().getPodIndex():0}catch(e){return 0}},UOLPlayerAds.prototype.getAdId=function(){return this.ad.getAdId()},UOLPlayerAds.prototype.getAdTitle=function(){return this.ad.getAdId()+\" - \"+this.ad.getTitle()},UOLPlayerAds.prototype.getDuration=function(){return this.ad.getDuration()},UOLPlayerAds.prototype.getCurrentTime=function(){return this.ad.getDuration()-this.getRemainingTime()},UOLPlayerAds.prototype.getCurrentPerc=function(){return Math.floor(100*(this.getCurrentTime()/this.getDuration()))},UOLPlayerAds.prototype.getRemainingTime=function(){return rt=Math.round(this.adsManager.getRemainingTime()),rt<=0?0:rt},UOLPlayerAds.prototype.processAdsManager=function(e){this.app.logger.logDFP(\"processAdsManager.\"),e.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested,!1,this),e.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested,!1,this),e.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1,this);var t=[google.ima.AdEvent.Type.AD_BREAK_READY,google.ima.AdEvent.Type.AD_METADATA,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,google.ima.AdEvent.Type.CLICK,google.ima.AdEvent.Type.COMPLETE,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,google.ima.AdEvent.Type.DURATION_CHANGE,google.ima.AdEvent.Type.FIRST_QUARTILE,google.ima.AdEvent.Type.THIRD_QUARTILE,google.ima.AdEvent.Type.IMPRESSION,google.ima.AdEvent.Type.LINEAR_CHANGED,google.ima.AdEvent.Type.LOADED,google.ima.AdEvent.Type.LOG,google.ima.AdEvent.Type.MIDPOINT,google.ima.AdEvent.Type.PAUSED,google.ima.AdEvent.Type.RESUMED,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,google.ima.AdEvent.Type.SKIPPED,google.ima.AdEvent.Type.STARTED,google.ima.AdEvent.Type.USER_CLOSE,google.ima.AdEvent.Type.VOLUME_CHANGED,google.ima.AdEvent.Type.VOLUME_MUTED];for(var a in t)e.addEventListener(t[a],this.onAdEvent,!1,this);var i,r,s,o=this.app.getSize();this.app.isFullscreen()?(i=o.fullscreenWidth,r=o.fullscreenHeight,s=google.ima.ViewMode.FULLSCREEN):(i=o.width,r=o.height,s=google.ima.ViewMode.NORMAL);try{this.app.logger.logDFP(\"adsManager.init\"),e.init(i,r,s),e.start()}catch(n){this.app.logger.logError(n)}},UOLPlayerAds.prototype.onAdsManagerLoaded=function(e){this.app.logger.logDFP(\"Ads loaded.\");var t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!1,t.loadVideoTimeout=UOLPlayer.safariMultiplier(1e3*this.app.data.item.playerParameters.dfp_native_timeout_time,this.app),this.adsManager=e.getAdsManager(this.videoPlayer.mediaElement,t),this.processAdsManager(this.adsManager)},UOLPlayerAds.prototype.onContentPauseRequested=function(){this.videoPlayer.saveCurrentTime(),this.timeoutId=!1,this.app.logger.logDFP(\"onContentPauseRequested.\"),this.events.contentPauseRequested.dispatch()},UOLPlayerAds.prototype.onContentResumeRequested=function(e){this.timeoutList.bufferTimeout.abort(),this.app.logger.logDFP(\"onContentResumeRequested\"),this.stopAdCountdown(),this.resumeAfterAd(),this.events.contentResumeRequested.dispatch(this.getAdPodIndex())},UOLPlayerAds.prototype.onAdEvent=function(e){var t;this.app.logger.logDFP(\"Ad event: \"+e.type),this.ad=e.getAd();var a=function(){0!=this.adPodIndex||this.logSended||(this.app.logger.send(\"dfpRequestAds\",{time:this.app.logger.stopTime(\"dfpRequestAds\"),ad:t,adObj:this.ad}),this.timeoutList.requestAdsTimeout.abort()),this.logSended=!0}.bind(this);switch(e.type){case google.ima.AdEvent.Type.AD_METADATA:a(),this.adPos=t=this.getAdPosition(),this.app.logger.startTime(\"load-ads\"),this.app.tracker.pushState(\"adMetadata\",t),this.app.wrapper.addClass(\"_loading-ad\").setData(\"adPos\",t);break;case google.ima.AdEvent.Type.LOADED:if(a(),this.adPos=t=this.getAdPosition(),this.app.logger.startTime(\"load-ads\"),this.app.wrapper.addClass(\"_loading-ad\").setData(\"adPos\",t),this.timeoutTest=this.app.exp[this.app.exp.type.TIMEOUT_DFP],this.timeoutTest.init(),this.timeoutTest.draw()){var i=this.timeoutList.requestAdsTimeout.getRemainingTime()+this.timeoutList.loadAdTimeout.time;this.timeoutList.loadAdTimeout.updateDuration(i),this.timeoutTest.setInfo({expOriginalDuration:this.timeoutList.loadAdTimeout.time,expRemainingTime:this.timeoutList.requestAdsTimeout.getRemainingTime(),expCurrentDuration:i})}else this.timeoutList.loadAdTimeout.updateDuration(this.timeoutList.loadAdTimeout.time);this.timeoutList.loadAdTimeout.start(function(){this.timeoutId=this.timeouts.type.LOAD_AD,this.destroy(),this.app.logger.send(this.timeouts.type.LOAD_AD,{time:this.app.logger.stopTime(\"load-ads\"),ad:this.getAdPosition(),adObj:this.ad,payload:{timeout:!0}})}.bind(this));var r=t.split(/\\W/).map(function(e){return e.charAt(0).toUpperCase()+e.substring(1,e.length)}).join(\"\");this.app.tracker.pushState(\"adLoadedPos\",t);var s,o;!this.ad.g||this.ad.g.vpaid!==!1&&void 0!==this.ad.g.vpaid?(s=\"vpaid\",o=!0):(s=this.ad.getSkipTimeOffset()>-1,o=!1),this.app.tracker.pushState(\"ad\"+r+\"Skippable\",s,0),this.app.tracker.pushState(\"ad\"+r+\"SkipTime\",this.ad.getSkipTimeOffset(),0),this.app.tracker.pushState(\"ad\"+r+\"Duration\",this.ad.getDuration(),0),this.app.tracker.pushState(\"ad\"+r+\"Vpaid\",o,0);break;case google.ima.AdEvent.Type.CLICK:UOLPlayer.isMobile&&this.adClicked(),this.app.tracker.pushState(\"adClicked\",!0);break;case google.ima.AdEvent.Type.PAUSED:this.paused=!0,this.app.backbone.ad.pause(),this.app.tracker.pushState(\"adPaused\",this.paused);break;case google.ima.AdEvent.Type.RESUMED:this.paused=!1,this.app.backbone.ad.start(),this.app.tracker.pushState(\"adPaused\",this.paused);break;case google.ima.AdEvent.Type.STARTED:try{this.app.chronoAdDuration.start(),this.app.backbone.ad.start(),this.playingAd=!0,this.adPos=t=this.getAdPosition(),this.adSkipped=void 0,this.adPodIndex++,this.timeoutList.loadAdTimeout.abort(),this.timeoutTest&&this.timeoutTest.setInfo({expOrigTimeoutExceeded:this.timeoutList.loadAdTimeout.getElapsedTime()>=this.timeoutList.loadAdTimeout.time,expElapsedTime:this.timeoutList.loadAdTimeout.getElapsedTime()}),this.app.logger.send(\"dfpLoadAds\",{time:this.app.logger.stopTime(\"load-ads\"),ad:t,adObj:this.ad}),this.app.logger.send(\"dfpBegin\",{time:this.app.logger.stopTime(\"dfp-init\"),ad:t,adObj:this.ad}),this.events.adStarted.dispatch(),this.startAdCountdown(),this.app.tracker.pushState(\"adStarted\",t)}catch(n){this.onAdError(n)}break;case google.ima.AdEvent.Type.SKIPPED:this.timeoutList.bufferTimeout.abort(),this.app.backbone.ad.skipped(),this.app.tracker.pushState(\"adSkiped\",!0),this.app.wrapper.setData(\"adPos\",\"skipped\"),this.adSkipped=!0;break;case google.ima.AdEvent.Type.COMPLETE:this.app.chronoAdDuration.stop(),this.app.backbone.ad.ended(),this.app.tracker.pushState(\"adComplete\",!0),this.app.wrapper.setData(\"adPos\",\"complete\"),this.events.timeupdate.dispatch({currentTime:this.getCurrentTime(),duration:this.getDuration(),perc:100});break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.app.chronoAdDuration.stop(),this.allAdsCompleted(),this.app.tracker.pushState(\"adAllAdsComplete\",!0);break;case google.ima.AdEvent.Type.LOG:e.getAdData()&&(this.adPos=this.adError=\"noAd\",this.app.wrapper.removeClass(\"_loading-ad\").setData(\"adPos\",\"noAd\"))}},UOLPlayerAds.prototype.onAdError=function(e){this.app.chronoAdDuration.stop(),this.adError=e&&e.getError?e&&e.getError():\"unknown error\",this.app.logger.logError(\"Ad error: \"+this.adError),this.app.setVideoEndedCallbackEnabled(!0),this.onContentResumeRequested(),this.app.tracker.pushState(\"dfpError\",this.adError)},UOLPlayerAds.adPosition=function(e){var t=\"\";switch(e){case 0:t=\"pre-roll\";break;case-1:t=\"post-roll\";break;default:t=\"mid-roll\"}return t},UOLPlayer.ElementErrorHandler=function(){},UOLPlayer.ElementErrorHandler.errorCodes=function(){return{WITHOUT_MOBILE_FORMAT:0,INVALID_MEDIA_ID:1,API_INVALID_RESPONSE:4,FLASH_NOT_SUPPORTED:5,API_EMPTY_RESPONSE:6,CODEC_UNAVAILABLE:7,MEDIA_NOT_FOUND:8,NETWORK_BLOCKING_MP4:9,BROWSER_DEPRECATED:10,VIDEO_FLASH_DEPRECATED:11,AUDIO_FLASH_DEPRECATED:12,VIDEO_SOURCE_UNKNOWN_ERROR:20,VIDEO_SOURCE_ABORTED:21,VIDEO_SOURCE_NETWORK_UNSTABLE:22,VIDEO_SOURCE_FAIL_DECODE:23,VIDEO_SOURCE_NOT_SUPPORTED:24,VIDEO_SOURCE_ENCRYPTED:25,VIDEO_SOURCE_NETWORK_CONNECTION:26,VIDEO_SOURCE_WITHOUT_FALLBACK:27,AUDIO_SOURCE_UNKNOWN_ERROR:30,AUDIO_SOURCE_ABORTED:31,AUDIO_SOURCE_NETWORK_UNSTABLE:32,AUDIO_SOURCE_FAIL_DECODE:33,AUDIO_SOURCE_NOT_SUPPORTED:34,AUDIO_SOURCE_ENCRYPTED:35,AUDIO_SOURCE_NETWORK_CONNECTION:36,HLS_UNKNOWN_ERROR:40,HLS_NETWORK_UNSTABLE:41,HLS_MEDIA_ERROR:42,HLS_UNDEFINED_ON_INITIALIZE:43,PAYLOAD_TOO_LARGE:44,DASH_UNKNOWN_ERROR:55,DASH_NETWORK_UNSTABLE:56,DASH_MEDIA_ERROR:57,DASH_UNDEFINED_ON_INITIALIZE:58,DASH_MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE:510,DASH_MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE:511,DASH_XLINK_LOADER_LOADING_FAILURE_ERROR_CODE:512,DASH_SEGMENTS_UPDATE_FAILED_ERROR_CODE:513,DASH_SEGMENTS_UNAVAILABLE_ERROR_CODE:514,DASH_SEGMENT_BASE_LOADER_ERROR_CODE:515,DASH_TIME_SYNC_FAILED_ERROR_CODE:516,DASH_FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE:517,DASH_FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE:518,DASH_URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE:519,DASH_APPEND_ERROR_CODE:520,DASH_REMOVE_ERROR_CODE:521,DASH_DATA_UPDATE_FAILED_ERROR_CODE:522,DASH_CAPABILITY_MEDIASOURCE_ERROR_CODE:523,DASH_CAPABILITY_MEDIAKEYS_ERROR_CODE:524,DASH_DOWNLOAD_ERROR_ID_MANIFEST_CODE:525,DASH_DOWNLOAD_ERROR_ID_SIDX_CODE:526,DASH_DOWNLOAD_ERROR_ID_CONTENT_CODE:527,DASH_DOWNLOAD_ERROR_ID_INITIALIZATION_CODE:528,DASH_DOWNLOAD_ERROR_ID_XLINK_CODE:529,DASH_MANIFEST_ERROR_ID_CODEC_CODE:530,DASH_MANIFEST_ERROR_ID_PARSE_CODE:531,DASH_MANIFEST_ERROR_ID_NOSTREAMS_CODE:532,DASH_TIMED_TEXT_ERROR_ID_PARSE_CODE:533,DASH_MANIFEST_ERROR_ID_MULTIPLEXED_CODE:534,DASH_MEDIASOURCE_TYPE_UNSUPPORTED_CODE:535,VIDEO_NO_PERMISSION_UNTRACKED:900,VIDEO_NO_PERMISSION_JUST_OWNER:901,VIDEO_NO_PERMISSION_BY_DAT_SCHEDULING:902,VIDEO_NO_PERMISSION_JUST_FRIENDS_UOLK:903,VIDEO_NO_PERMISSION_FOR_THIS_COUNTRY:904,VIDEO_NO_PERMISSION_BY_PRODUCT:905,VIDEO_NO_PERMISSION_ANONYMOUS:906,VIDEO_NO_PERMISSION_SUBSCRIBER:907,VIDEO_NO_PERMISSION_BY_COD_STATUS:908,VIDEO_NO_PERMISSION_BY_EDITORIAL_STATUS:909,VIDEO_REMOVED:910,AUDIO_NO_PERMISSION_UNTRACKED:930,AUDIO_NO_PERMISSION_JUST_OWNER:931,AUDIO_NO_PERMISSION_BY_DAT_SCHEDULING:932,AUDIO_NO_PERMISSION_JUST_FRIENDS_UOLK:933,AUDIO_NO_PERMISSION_FOR_THIS_COUNTRY:934,AUDIO_NO_PERMISSION_BY_PRODUCT:935,AUDIO_NO_PERMISSION_ANONYMOUS:936,AUDIO_NO_PERMISSION_SUBSCRIBER:937,AUDIO_NO_PERMISSION_BY_COD_STATUS:938,AUDIO_NO_PERMISSION_BY_EDITORIAL_STATUS:939,AUDIO_REMOVED:940}}(),UOLPlayer.ElementErrorHandler.codeErros=function(){var e={};for(var t in UOLPlayer.ElementErrorHandler.errorCodes)e[UOLPlayer.ElementErrorHandler.errorCodes[t]]=t;return e}(),UOLPlayer.ElementErrorHandler.errorTypes=function(){return{0:{message:\"Este v&iacute;deo n&atilde;o &eacute; compat&iacute;vel com o seu dispositivo [Erro UV-000]\",error:\"Este video nao e compativel com o seu dispositivo\"},1:{message:\"N&atilde;o foi poss&iacute;vel encontrar o v&iacute;deo [Erro UV-001]\",error:\"Nao foi possivel encontrar o video\"},4:{message:\"Este v&iacute;deo est&aacute; indispon&iacute;vel no momento [Erro UV-004]\",error:\"Este video esta indisponivel no momento\"},5:{message:\"Para ver este v&iacute;deo, seu navegador precisa ter o Flash Player instalado [Erro UV-005]\",error:\"Para ver este video, seu navegador precisa ter o Flash Player instalado\"},6:{message:\"N&atilde;o foi poss&iacute;vel encontrar o v&iacute;deo [Erro UV-006]\",error:\"Nao foi possivel encontrar o video\"},7:{message:\"Seu navegador n&atilde;o toca v&iacute;deos no formato .mp4 [Erro UV-007]\",error:\"Codec nao instalado ou desativado\"},8:{message:\"Esta m&iacute;dia n&atilde;o existe em nosso acervo [Erro UV-008]\",error:\"Midia excluida ou nao encontrada\"},9:{message:\"Sua configura&ccedil;&atilde;o de rede est&aacute; bloqueando a transfer&ecirc;ncia de arquivos de v&iacute;deo [Erro UV-009]\",error:\"Bloqueio de rede\"},10:{message:\"Por favor, para ver o v&iacute;deo, atualize o seu navegador. [Erro UV-010]\",error:\"Browser depreciado e sem suporte\"},11:{message:'Este formato de v&iacute;deo est&aacute; &eacute; mais suportado [Erro UV-011]<br><br>Para visualizar o v&iacute;deo, clique aqui: <a href=\"{mediaUrl}\" target=\"_blank\" class=\"up-txt-primary-color\"><u>{mediaUrl}</u></a>',error:\"Flash video depreciado e sem suporte\"},12:{message:'Este formato de &aacute;udio n&atilde;o &eacute; mais suportado [Erro UV-012]<br><br>Para ouvir o &aacute;udio, clique aqui: <a href=\"{mediaUrl}\" target=\"_blank\" class=\"up-txt-primary-color\"><u>{mediaUrl}</u></a>',error:\"Flash audio depreciado e sem suporte\"\n},20:{message:\"N&atilde;o foi poss&iacute;vel carregar o v&iacute;deo. Por favor, verifique sua conex&atilde;o &agrave; internet [Erro UV-020]\",error:\"Nao foi possivel carregar o video. Por favor, verifique sua conexao a internet\"},21:{message:\"Conex&atilde;o interrompida pelo usu&aacute;rio [Erro UV-021]\",error:\"Conexao interrompida pelo usuario\"},22:{message:\"N&atilde;o foi poss&iacute;vel carregar o v&iacute;deo. Por favor, verifique sua conex&atilde;o &agrave; internet [Erro UV-022]\",error:\"Nao foi possivel carregar o video. Por favor, verifique sua conexao a internet\"},23:{message:\"O formato deste v&iacute;deo n&atilde;o &eacute; suportado pelo seu navegador [Erro UV-023]\",error:\"O formato deste video nao e suportado pelo seu navegador\"},24:{message:\"Execu&ccedil;&atilde;o do v&iacute;deo interrompida por falha&nbsp;na conex&atilde;o&nbsp;&agrave; internet [Erro UV-024]\",error:\"Execucao do video interrompida por falhaa conexao internet\"},25:{message:\"N&atilde;o foi poss&iacute;vel descriptografar o v&iacute;deo [Erro UV-025]\",error:\"Nao foi possivel descriptografar o video\"},26:{message:\"N&atilde;o foi poss&iacute;vel carregar o v&iacute;deo. Por favor, verifique sua conex&atilde;o &agrave; internet [Erro UV-026]\",error:\"Erro de conexao com o servidor ou resposta invalida\"},27:{message:\"N&atilde;o foi poss&iacute;vel carregar o v&iacute;deo. Por favor, verifique sua conex&atilde;o &agrave; internet [Erro UV-026]\",error:\"Vídeo sem fallback disponível\"},30:{message:\"N&atilde;o foi poss&iacute;vel carregar o&nbsp;&aacute;udio. Por favor, verifique sua conex&atilde;o &agrave; internet [Erro UV-030]\",error:\"Nao foi possivel carregar o audio. Por favor, verifique sua conexao a internet\"},31:{message:\"Conex&atilde;o interrompida pelo usu&aacute;rio [Erro UV-031]\",error:\"Conexao interrompida pelo usuario\"},32:{message:\"N&atilde;o foi poss&iacute;vel carregar o&nbsp;&aacute;udio. Por favor, verifique sua cone&atilde;o &agrave; internet [Erro UV-032]\",error:\"Nao foi possivel carregar o audio. Por favor, verifique sua conexao a internet\"},33:{message:\"O formato deste &aacute;udio n&atilde;o &eacute; suportado pelo seu navegador [Erro UV-033]\",error:\"O formato deste audio nao e suportado pelo seu navegador\"},34:{message:\"Execu&ccedil;&atilde;o do&nbsp;&aacute;udio interrompida por falha de conex&atilde;o&nbsp;&agrave; internet [Erro UV-034]\",error:\"Execucao do audio interrompida por falha de conexao internet\"},35:{message:\"N&atilde;o foi poss&iacute;vel descriptografar o &aacute;udio [Erro UV-035]\",error:\"Nao foi possivel descriptografar o audio\"},36:{message:\"N&atilde;o foi poss&iacute;vel carregar o v&iacute;deo. Por favor, verifique sua conex&atilde;o &agrave; internet [Erro UV-036]\",error:\"Erro de conexao com o servidor ou resposta invalida\"},40:{message:\"Execu&ccedil;&atilde;o do v&iacute;deo interrompida por falha&nbsp;na interna [Erro UV-040]\",error:\"Erro interno no HLS\"},41:{message:\"Execu&ccedil;&atilde;o do v&iacute;deo interrompida por falha&nbsp;na conex&atilde;o&nbsp;&agrave; internet [Erro UV-041]\",error:\"Error de internet no HLS\"},42:{message:\"O formato deste v&iacute;deo n&atilde;o &eacute; suportado pelo seu navegador [Erro UV-042]\",error:\"Erro de media no HLS\"},43:{message:\"Erro no HLS causado por perda de escopo [Erro UV-043]\",error:\"Erro no HLS causado pelo RequireJS\"},44:{message:\"Por favor, para reproduzir esta m&iacute;dia, &eacute; preciso liberar espa&ccedil;o para cookies em seu browser. [Erro UV-044]<br />{href}\",error:\"Erro causado por cookie cheio\"},55:{message:\"Execu&ccedil;&atilde;o do v&iacute;deo interrompida por falha&nbsp;na interna [Erro UV-055]\",error:\"Erro interno no DASH\"},56:{message:\"Execu&ccedil;&atilde;o do v&iacute;deo interrompida por falha&nbsp;na conex&atilde;o&nbsp;&agrave; internet [Erro UV-056]\",error:\"Error de internet no DASH\"},57:{message:\"O formato deste v&iacute;deo n&atilde;o &eacute; suportado pelo seu navegador [Erro UV-057]\",error:\"Erro de media no DASH\"},58:{message:\"Erro no DASH causado por perda de escopo [Erro UV-058]\",error:\"Erro no DASH causado pelo RequireJS\"},510:{message:\"Erro durante a leitura do arquivo de manifesto do v&iacute;deo [Erro UV-510]\",error:\"DASH_MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE\"},511:{message:\"Erro durante o carregamento do arquivo de manifesto do v&iacute;deo [Erro UV-511]\",error:\"MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE\"},512:{message:\"Erro durante o carregamento do xlink [Erro UV-512]\",error:\"DASH_XLINK_LOADER_LOADING_FAILURE_ERROR_CODE\"},513:{message:\"Erro no carregamento dos segmentos do v&iacute;deo [Erro UV-513]\",error:\"DASH_SEGMENTS_UPDATE_FAILED_ERROR_CODE\"},514:{message:\"Erro no carregamento dos segmentos do v&iacute;deo [Erro UV-514]\",error:\"DASH_SEGMENTS_UNAVAILABLE_ERROR_CODE\"},515:{message:\"Erro no carregamento dos segmentos do v&iacute;deo [Erro UV-515]\",error:\"DASH_SEGMENT_BASE_LOADER_ERROR_CODE\"},516:{message:\"Erro de sincronia o v&iacute;deo [Erro UV-516]\",error:\"DASH_TIME_SYNC_FAILED_ERROR_CODE\"},517:{message:\"Erro no carregamento dos fragmentos do v&iacute;deo [Erro UV-517]\",error:\"DASH_FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE\"},518:{message:\"Erro no carregamento dos fragmentos do v&iacute;deo [Erro UV-518]\",error:\"DASH_FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE\"},519:{message:\"Erro na resolução da URL do v&iacute;deo [Erro UV-519]\",error:\"DASH_URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE\"},520:{message:\"Erro ao criar dash [Erro UV-520]\",error:\"DASH_APPEND_ERROR_CODE\"},521:{message:\"Erro ao remover dash [Erro UV-521]\",error:\"DASH_REMOVE_ERROR_CODE\"},522:{message:\"Erro no carregamento dos dados [Erro UV-522]\",error:\"DASH_DATA_UPDATE_FAILED_ERROR_CODE\"},523:{message:\"Formato n&atilde;o suportado pelo navegador [Erro UV-523]\",error:\"DASH_CAPABILITY_MEDIASOURCE_ERROR_CODE\"},524:{message:\"Formato protegido n&atilde;o suportado pelo navegador [Erro UV-524]\",error:\"DASH_CAPABILITY_MEDIAKEYS_ERROR_CODE\"},525:{message:\"Erro durante o download do v&iacute;deo [Erro UV-525]\",error:\"DASH_DOWNLOAD_ERROR_ID_MANIFEST_CODE\"},526:{message:\"Erro durante o download do v&iacute;deo [Erro UV-526]\",error:\"DASH_DOWNLOAD_ERROR_ID_SIDX_CODE\"},527:{message:\"Erro durante o download do v&iacute;deo [Erro UV-527]\",error:\"DASH_DOWNLOAD_ERROR_ID_CONTENT_CODE\"},528:{message:\"Erro durante o download do v&iacute;deo [Erro UV-528]\",error:\"DASH_DOWNLOAD_ERROR_ID_INITIALIZATION_CODE\"},529:{message:\"Erro durante o download do v&iacute;deo [Erro UV-529]\",error:\"DASH_DOWNLOAD_ERROR_ID_XLINK_CODE\"},530:{message:\"Codec n&atilde;o suportado [Erro UV-530]\",error:\"DASH_MANIFEST_ERROR_ID_CODEC_CODE\"},531:{message:\"Erro durante o carregamento do arquivo de manifesto do v&iacute;deo [Erro UV-531]\",error:\"DASH_MANIFEST_ERROR_ID_PARSE_CODE\"},532:{message:\"Erro durante o carregamento do arquivo de manifesto do v&iacute;deo [Erro UV-532]\",error:\"DASH_MANIFEST_ERROR_ID_NOSTREAMS_CODE\"},533:{message:\"Erro durante carregamento de legendas [Erro UV-533]\",error:\"DASH_TIMED_TEXT_ERROR_ID_PARSE_CODE\"},534:{message:\"Formato MUXED n&atilde;o suportado  [Erro UV-534]\",error:\"DASH_MANIFEST_ERROR_ID_MULTIPLEXED_CODE\"},535:{message:\"Formato de m&iacute;dia n&atilde;o suportado [Erro UV-535]\",error:\"DASH_MEDIASOURCE_TYPE_UNSUPPORTED_CODE\"},900:{message:\"Desculpe, n&atilde;o &eacute; poss&iacute;vel exibir o v&iacute;deo desejado [Erro UV-900]\",error:\"VIDEO_NO_PERMISSION_UNTRACKED\"},901:{message:\"Desculpe, este v&iacute;deo s&oacute; pode ser visualizado por seu autor [Erro UV-901]\",error:\"VIDEO_NO_PERMISSION_JUST_OWNER\"},902:{message:\"Desculpe, este v&iacute;deo n&atilde;o est&aacute; dispon&iacute;vel no momento [Erro UV-902]\",error:\"VIDEO_NO_PERMISSION_BY_DAT_SCHEDULING\"},903:{message:\"Desculpe, este v&iacute;deo s&oacute; pode ser visualizado por amigos do autor [Erro UV-903]\",error:\"VIDEO_NO_PERMISSION_JUST_FRIENDS_UOLK\"},904:{message:\"Desculpe, por motivo de direitos autorais, este v&iacute;deo s&oacute; pode ser visto em territ&oacute;rio brasileiro [Erro UV-904]\",error:\"VIDEO_NO_PERMISSION_FOR_THIS_COUNTRY\"},905:{message:\"Este v&iacute;deo &eacute; exclusivo para assinantes UOL [Erro UV-905]\",error:\"VIDEO_NO_PERMISSION_BY_PRODUCT\"},906:{message:\"Desculpe, n&atilde;o &eacute; poss&iacute;vel exibir o v&iacute;deo desejado [Erro UV-906]\",error:\"VIDEO_NO_PERMISSION_ANONYMOUS\"},907:{message:\"Este v&iacute;deo &eacute; exclusivo para assinantes UOL [Erro UV-907]\",error:\"VIDEO_NO_PERMISSION_SUBSCRIBER\"},908:{message:\"Desculpe, n&atilde;o &eacute; poss&iacute;vel exibir o v&iacute;deo desejado [Erro UV-908]\",error:\"VIDEO_NO_PERMISSION_BY_COD_STATUS\"},909:{message:\"Desculpe, n&atilde;o &eacute; poss&iacute;vel exibir o v&iacute;deo desejado [Erro UV-909]\",error:\"VIDEO_NO_PERMISSION_BY_EDITORIAL_STATUS\"},910:{message:\"Esta m&iacute;dia n&atilde;o existe em nosso acervo [Erro UV-910]\",error:\"VIDEO_REMOVED\"},930:{message:\"Desculpe, n&atilde;o &eacute; poss&iacute;vel executar o &aacute;udio desejado [Erro UV-930]\",error:\"AUDIO_NO_PERMISSION_UNTRACKED\"},931:{message:\"Desculpe, este &aacute;udio s&oacute; pode ser executado por seu autor [Erro UV-931]\",error:\"AUDIO_NO_PERMISSION_JUST_OWNER\"},932:{message:\"Desculpe, este &aacute;udio n&atilde;o est&aacute; dispon&iacute;vel no momento [Erro UV-932]\",error:\"AUDIO_NO_PERMISSION_BY_DAT_SCHEDULING\"},933:{message:\"Desculpe, este &aacute;udio s&oacute; pode ser executado por amigos do autor [Erro UV-933]\",error:\"AUDIO_NO_PERMISSION_JUST_FRIENDS_UOLK\"},934:{message:\"Desculpe, este &aacute;udio s&oacute; pode ser executado por internautas no Brasil [Erro UV-934]\",error:\"AUDIO_NO_PERMISSION_FOR_THIS_COUNTRY\"},935:{message:\"Este &aacute;udio &eacute; exclusivo para assinantes UOL [Erro UV-935]\",error:\"AUDIO_NO_PERMISSION_BY_PRODUCT\"},936:{message:\"Desculpe, n&atilde;o &eacute; poss&iacute;vel executar o &aacute;udio desejado [Erro UV-936]\",error:\"AUDIO_NO_PERMISSION_ANONYMOUS\"},937:{message:\"Este &aacute;udio &eacute; exclusivo para assinantes UOL [Erro UV-937]\",error:\"AUDIO_NO_PERMISSION_SUBSCRIBER\"},938:{message:\"Desculpe, n&atilde;o &eacute; poss&iacute;vel executar o &aacute;udio desejado [Erro UV-938]\",error:\"AUDIO_NO_PERMISSION_BY_COD_STATUS\"},939:{message:\"Desculpe, n&atilde;o &eacute; poss&iacute;vel executar o &aacute;udio desejado [Erro UV-939]\",error:\"AUDIO_NO_PERMISSION_BY_EDITORIAL_STATUS\"},940:{message:\"Este &aacute;udio n&atilde;o existe em nosso acervo [Erro UV-940]\",error:\"AUDIO_REMOVED\"}}}(),UOLPlayer.ElementErrorHandler.logMessage=function(e){var t=UOLPlayer.ElementErrorHandler.errorTypes[e];return{typeError:e,enumError:UOLPlayer.ElementErrorHandler.codeErros[e],mensagem:t.message,erro:t.error}},UOLPlayer.ElementErrorHandler.getSample=function(e,t){UOLPlayer.ajax({url:UOLPlayer[\"const\"].urls.SAMPLES+\"file.\"+e,data:\"__rand=\"+Math.random(),success:t,timeout:t,error:t,corsFallback:!1,withCredentials:!1})},UOLPlayer.ElementErrorHandler.requestFirstBytes=function(e,t){UOLPlayer.ajax({url:e,headers:{Range:\"bytes=0-2\"},corsFallback:!1,success:t,timeout:t,error:t})},UOLPlayer.ElementErrorHandler.resolveFallbackURL=function(e,t,a){var i=function(r,s){t.indexOf(\"video.m.mais.uol.com.br\")!==-1&&(e.externalCDN=null!==r.match(/cdn=true/i)),\"function\"==typeof a&&(a(r,s),i=function(){})},r=new UOLPlayer.Chronometer(t);if(r.start(),t.indexOf(\"video.m.mais.uol.com.br\")===-1)return i(t);var s=function(a,s,o){if(413===s)return void e.setError(UOLPlayer.ElementErrorHandler.errorCodes.PAYLOAD_TOO_LARGE);if(UOLPlayer.Profiler.trackServer(\"videom\",r.stop().elapsedTime.time,s),!o||!o.headers||!o.headers[\"x-urlredir-header\"])return i(t);var n=encodeURI((o.headers[\"x-access-token\"]+\"\").trim()),l=encodeURI((o.headers[\"x-access-sign\"]+\"\").trim());t=(o.headers[\"x-urlredir-header\"]+\"\").trim(),t+=t.indexOf(\"?\")===-1?\"?\":\"&\",t+=\"token=\"+n+\"&sign=\"+l,i(t,{token:n,sign:l})};UOLPlayer.ajax({url:t,method:\"head\",success:s,timeout:s,error:s})},UOLPlayer.ElementErrorHandler.checkNetworkBlocking=function(e){var t=[\"bmp\",\"mp3\",\"mp4\",\"pdf\",\"png\",\"svg\",\"swf\",\"wav\",\"zip\"],a={},i=3,r=function(t){r=function(){},e(t)},s=function(e){var o=t.shift();o?UOLPlayer.ElementErrorHandler.getSample(o,function(r,n,l){return 200!==n&&e>=0?(t.unshift(o),s(--e)):(a[o]=n,void s(i))}):r(a)};s(i)},UOLPlayer.ElementErrorHandler.logHeaders=function(e,t,a,i){for(var r in i)e.headers[r]=i[r];e.headers.status=a,e.headers.server=t;for(var s=0,o=e.logHeaders.length;s<o;++s)e.headers[e.logHeaders[s]]},UOLPlayer.ElementErrorHandler.extractServerFromUrl=function(e){var t=/^(?:https?:)?(?:\\/\\/)?(.+?(?:\\.m)?)\\./,a=e.toString().match(t);return a=a?a.pop():\"unknown\",a.replace(/\\W/gi,\"\")},UOLPlayer.ElementErrorHandler.extractMediaHeaders=function(e,t){var a=UOLPlayer.ElementErrorHandler.extractServerFromUrl(t);UOLPlayer.ElementErrorHandler.requestHeaders(t,function(t,i,r){var s=0;r.loadedAt&&r.loadedAt.elapsedTime&&(s=r.loadedAt.elapsedTime.time),UOLPlayer.Profiler.trackServer(a,s,t),UOLPlayer.ElementErrorHandler.logHeaders(e,a,t,i)})},UOLPlayer.ElementErrorHandler.parseHeaders=function(e){var t={},a=\"\";try{a=e.getAllResponseHeaders()}catch(i){}return a&&a.trim().split(\"\\n\").forEach(function(e){e=e.split(\": \"),t[e[0].toLowerCase()]=e[1]}),t},UOLPlayer.ElementErrorHandler.requestHeaders=function(e,t){UOLPlayer.ElementErrorHandler.requestFirstBytes(e,function(e,a,i){var r=UOLPlayer.ElementErrorHandler.parseHeaders(i);t(a,r,i)})},UOLPlayer.ElementErrorHandler.logFetchedResult=function(e,t){for(var a in t)e.tracker.pushState(\"fetch_\"+a,t[a],0)},UOLPlayer.ElementErrorHandler.mediaElementErrorHanlder=function(e,t){var a=e,i=t,r=function(){var e=0;i&&i.error?e=i.error.code:void 0===i.maxReadyState&&(e=6),\"audio\"===i.nodeName.toLowerCase()?a.setError(UOLPlayer.ElementErrorHandler.errorCodes.AUDIO_SOURCE_UNKNOWN_ERROR+e):a.setError(UOLPlayer.ElementErrorHandler.errorCodes.VIDEO_SOURCE_UNKNOWN_ERROR+e)},s=function(e){return UOLPlayer.ElementErrorHandler.logFetchedResult(a,e),200!==e.mp4&&void 0===i.maxReadyState&&200===e.png&&200===e.svg&&200===e.bmp?a.setError(UOLPlayer.ElementErrorHandler.errorCodes.NETWORK_BLOCKING_MP4):void r()};UOLPlayer.ElementErrorHandler.requestFirstBytes(i.src,function(t,a){return 413===a||400===a?void e.setError(UOLPlayer.ElementErrorHandler.errorCodes.PAYLOAD_TOO_LARGE):void UOLPlayer.ElementErrorHandler.checkNetworkBlocking(s)})},UOLPlayer.ElementErrorHandler.supportUrls={cookies:{chrome:{desktop:\"https://support.google.com/chrome/answer/95647?co=GENIE.Platform%3DDesktop&hl=pt\",android:\"https://support.google.com/chrome/answer/95647?co=GENIE.Platform%3DAndroid&hl=pt&oco=1\",ios:\"https://support.google.com/chrome/answer/95647?co=GENIE.Platform%3DiOS&hl=pt&oco=1\"},firefox:{desktop:\"https://support.mozilla.org/pt-BR/kb/exclua-cookies-para-remover-info-armazenadas\"},safari:{desktop:\"https://support.apple.com/pt-br/guide/safari/manage-cookies-and-website-data-sfri11471/mac\",ios:\"https://support.apple.com/pt-br/HT201265\"}}},UOLPlayer.Backbone=function(e){var t={core:{init:function(){e.initExp(),UOLPlayer.isIframe&&UOLPlayer.toBoolean(UOLPlayer.urlParameter.detach)&&(e.Detach=new UOLPlayer.Iframe.Detach(e))}},data:{parsed:function(){e.title&&(e.wrapper.addClass(\"with-title\"),e.wrapper.getElementsByClassName(\"up-title\")[0].innerHTML=\"string\"==typeof e.title?e.title:e.data.item.title),e.wrapper.getElementsByClassName(\"up-duration\")[0].innerHTML=e.data.item.duration.formatted}},markup:{mounted:function(){e.message=new UOLPlayer.Message(e)}},mediaelement:{mounted:function(e){}},video:{start:function(){e.Subtitle=new UOLPlayer.Subtitle(e),UOLPlayer.Resume(e),e.metrics&&e.metrics.video.start()},pause:function(){e.metrics&&e.metrics.video.pause()},resume:function(){e.metrics&&e.metrics.video.resume()},end:function(){e.metrics&&e.metrics.video.end()},seeking:function(){e.metrics&&e.metrics.video.seeking()},seeked:function(){e.metrics&&e.metrics.video.seeked()},rewind:function(e){},forward:function(e){}},ad:{start:function(){e.metrics&&e.metrics.ad.start(),e.ads&&UOLPlayer.onAdInit(e.ads.getAdPosition())},pause:function(){e.metrics&&e.metrics.ad.pause()},skipped:function(){e.metrics&&e.metrics.ad.skipped(),e.ads&&UOLPlayer.onAdEnd(e.ads.getAdPosition())},ended:function(){e.metrics&&e.metrics.ad.ended(),e.ads&&UOLPlayer.onAdEnd(e.ads.getAdPosition())}}},a=function(t){var a=e.getFullState();if(t=window.event?window.event:t,e.keyboardState={key:t.key||t.keyCode,code:t.code||t.charCode,location:t.location,altKey:t.altKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey,repeat:t.repeat},(a===UOLPlayer.PLAYINGVIDEO||a===UOLPlayer.PLAYINGAUDIO||a===UOLPlayer.VIDEOPAUSED)&&e.mediaPlayer)switch(t.keyCode){case 32:e.onClick();break;case 37:e.mediaPlayer&&e.mediaPlayer.rewind();break;case 38:e.mediaPlayer&&e.mediaPlayer.volumeUp();break;case 39:e.mediaPlayer&&e.mediaPlayer.forward();break;case 40:e.mediaPlayer&&e.mediaPlayer.volumeDown()}}.bind(this),i=function(t){this.inView=UOLPlayer.inView(e.wrapper,!0),e.autoplay=!0,e.onDemandClicked=!1,this.inView&&!e.wrapper.hasClass(\"_clicked\")&&(e.init(),document.removeEventListener(\"scroll\",i))}.bind(this);return document.addEventListener(\"keydown\",a),e.wrapper.getData(\"autoplayscroll\")&&!UOLPlayer.isMobile&&document.addEventListener(\"scroll\",i),t},UOLPlayer.exp=function(e){this.app=e;var t={};t.TIMEOUT_DFP={type:\"timeoutDfp\",persist:!1},t.DASH_LIB_EXPERIMENT={type:\"dashExperiment\",persist:!0};var a,i,r,s=function(t,a){var i=t,r=!1,s=\"none\",o=void 0,n=void 0,l={};return{init:function(){r=e.activeExperiment===i},draw:function(){if(this.app.testName=l.expName=s=i,r){if(o&&a)return this.app.logger.logTEST(\"PERSISTINDO EXPERIMENTO \"+s),this.app.logger.logTEST(\"RESULTADO DO EXPERIMENTO \"+n),n;this.app.testParticipant=l.expParticipant=o=!0,Math.random()>=.5?l.expResult=n=!0:l.expResult=n=!1,this.app.testResult=n,this.app.logger.logTEST(\"PARTICIPANTE DO EXPERIMENTO \"+s),this.app.logger.logTEST(\"RESULTADO DO EXPERIMENTO \"+n),console.log(\"[ participant ]\",s,n)}else this.app.logger.logTEST(\"NAO PARTICIPANTE DO EXPERIMENTO \"+s),console.log(\"[ not participant ]\",s),this.app.testParticipant=l.expParticipant=o=!1,this.app.testResult=l.expResult=n=!1;return this.app.tracker&&this.app.tracker.pushStates.apply(this.app.tracker,UOLPlayer.objectEntries(l)),n}.bind(this),setInfo:function(e){l=UOLPlayer.mergeObject(l,e),this.app.tracker&&this.app.tracker.pushStates.apply(this.app.tracker,UOLPlayer.objectEntries(l))}.bind(this),getInfo:function(){return l}}}.bind(this),o={type:{}};for(a in t)i=t[a].type,r=t[a].persist,o.type[a]=i,o[i]=s(i,r);return o},UOLPlayer.Resume=function(e){if(UOLPlayer.storageEnabled&&e.useResume){var t,a,i=5,r=5,s=e.data.item.duration.seconds-30,o=0,n=0,l=0,d=0,p=20,u=\"UOLPlayer-resume\",h=new Date,m=30,c=h.setDate(h.getDate()-m),y=Date.now(),g=UOLPlayer.parseResponse(localStorage.getItem(u))||[];g=\"string\"==typeof g?[]:g;for(var v,P=0;P<g.length;P++)v=g[P],v.createdAt<c&&(g.splice(P,1),P--);for(P in g)g[P].mediaId===e.mediaId&&(a=P);a?(t=g[a],t.createdAt=y):(g.length>=p&&g.splice(0,1),t={mediaId:e.mediaId,time:0,perc:0,viewed:!1,createdAt:y},a=g.push(t));var f=function(a){l=e.mediaPlayer.getCurrentTime(),d=e.mediaPlayer.getCurrentPerc(),n=l%i,0===n&&o!==l&&(l>=r&&l<=s?(o=l,t.time=o,t.perc=d,localStorage.setItem(u,JSON.stringify(g))):l>=s&&(t.time=0,t.perc=0,t.viewed=!0,localStorage.setItem(u,JSON.stringify(g)),e.mediaPlayer.removeEventListener(\"timeupdate\",f)))}.bind(this);e.mediaPlayer.registerEventListener(\"timeupdate\",f)}},UOLPlayer.Resume.get=function(e){if(UOLPlayer.storageEnabled){var t=UOLPlayer.parseResponse(localStorage.getItem(\"UOLPlayer-resume\"));if(!t)return 0;for(var a=0,i=t.length;a<i;){if(t[a].mediaId===e)return t[a];a++}}return 0},UOLPlayer.Iframe={Detach:function(e){var t=e.wrapper.getElementsByClassName(\"up-bt-detach\")[0],a=e.wrapper.getElementsByClassName(\"uolplayer-container\")[0],i=UOLPlayer.domNode(\"I\").addClass(\"up-bt up-bt-detach-close\");a.appendChild(i),t.show();var r=function(){UOLPlayer.events.send(\"UOLPlayer.controlDetach\")},s=function(t){t.state===UOLPlayer.Detach.states.DETACHED?(a.addClass(\"up-detach-active\"),e.wrapper.addClass(\"_small\")):(a.removeClass(\"up-detach-active\"),e.wrapper.removeClass(\"_small\")),e.resize({width:t.width,height:t.height})};return t.addEventListener(\"click\",r),i.addEventListener(\"click\",r),{onDetach:s}}},UOLPlayer.customEvents=function(){var e=this;this._bindings=[];var t=function(t){a(t),e._bindings.push(t)},a=function(t){UOLPlayer.each(e._bindings,function(a,i){t===a&&e._bindings.splice(i,1)})},i=function(t){UOLPlayer.each(e._bindings,function(e,a){e.call(this,t)})};return{add:t,remove:a,dispatch:i}},UOLPlayer.eventsControl=function(){this.events={},this.registerEventListener=function(e,t){this.events[e]?this.events[e].add(t):UOLPlayer.w(\"Evento inexistente: \"+e)},this.removeEventListener=function(e,t){this.events[e].remove(t)}},\"function\"!=typeof UOLPlayer.decycle&&(UOLPlayer.decycle=function(e,t){\"use strict\";var a=new WeakMap;return function i(e,r){var s,o;return void 0!==t&&(e=t(e)),\"object\"!=typeof e||null===e||e instanceof Boolean||e instanceof Date||e instanceof Number||e instanceof RegExp||e instanceof String?e:(s=a.get(e),void 0!==s?{$ref:s}:(a.set(e,r),Array.isArray(e)?(o=[],e.forEach(function(e,t){o[t]=i(e,r+\"[\"+t+\"]\")})):(o={},Object.keys(e).forEach(function(t){o[t]=i(e[t],r+\"[\"+JSON.stringify(t)+\"]\")})),o))}(e,\"$\")}),\"function\"!=typeof UOLPlayer.retrocycle&&(UOLPlayer.retrocycle=function retrocycle($){\"use strict\";var px=/^\\$(?:\\[(?:\\d+|\"(?:[^\\\\\"\\u0000-\\u001f]|\\\\([\\\\\"\\/bfnrt]|u[0-9a-zA-Z]{4}))*\")\\])*$/;return function rez(value){value&&\"object\"==typeof value&&(Array.isArray(value)?value.forEach(function(element,i){if(\"object\"==typeof element&&null!==element){var path=element.$ref;\"string\"==typeof path&&px.test(path)?value[i]=eval(path):rez(element)}}):Object.keys(value).forEach(function(name){var item=value[name];if(\"object\"==typeof item&&null!==item){var path=item.$ref;\"string\"==typeof path&&px.test(path)?value[name]=eval(path):rez(item)}}))}($),$}),UOLPlayer.Filter=function(e,t){if(void 0===e||null===e)throw new TypeError;var a=Object(e),i=a.length>>>0;if(\"function\"!=typeof t)throw new TypeError;for(var r=[],s=arguments.length>=2?arguments[1]:void 0,o=0;o<i;o++)if(o in a){var n=a[o];t.call(s,n,o,a)&&r.push(n)}return r},UOLPlayer.events={send:function(e,t){t=t||\"*\",parent.postMessage(e,t)},receive:function(e){if(UOLPlayer.isIframe&&\"object\"==typeof e.data&&e.data.event&&e.data.event.indexOf(\"UOLPlayer.\")!==-1){var t=e.data.event.replace(\"UOLPlayer.\",\"\").split(\".\"),a=UOLPlayer[UOLPlayer.mediaId];try{t.length>1?a[t[0]][t[1]](e.data.data||{}):a[t[0]](e.data.data||{})}catch(e){}}},onInit:function(){UOLPlayer.events.send(\"UOLPlayer.onInit\")},onPlay:function(){UOLPlayer.events.send(\"UOLPlayer.onPlay\")},onPause:function(){UOLPlayer.events.send(\"UOLPlayer.onPause\")},onResume:function(){UOLPlayer.events.send(\"UOLPlayer.onResume\")},onSeeking:function(){UOLPlayer.events.send(\"UOLPlayer.onSeeking\")},onSeeked:function(){UOLPlayer.events.send(\"UOLPlayer.onSeeked\")},onRewind:function(){UOLPlayer.events.send(\"UOLPlayer.onRewind\")},onForward:function(){UOLPlayer.events.send(\"UOLPlayer.onForward\")},onEnd:function(){UOLPlayer.events.send(\"UOLPlayer.onEnd\")},onFullscreen:function(){UOLPlayer.events.send(\"UOLPlayer.onFullscreen\")},onDetach:function(e){UOLPlayer.events.send({event:\"UOLPlayer.onDetach\",data:e})},onAdInit:function(e){UOLPlayer.events.send({event:\"UOLPlayer.onAdInit\",data:e})},onAdEnd:function(e){UOLPlayer.events.send({event:\"UOLPlayer.onAdEnd\",data:e})}},UOLPlayer.onInit=\"function\"==typeof UOLPlayer.onInit?UOLPlayer.onInit:UOLPlayer.events.onInit,UOLPlayer.onPlay=\"function\"==typeof UOLPlayer.onPlay?UOLPlayer.onPlay:UOLPlayer.events.onPlay,UOLPlayer.onPause=\"function\"==typeof UOLPlayer.onPause?UOLPlayer.onPause:UOLPlayer.events.onPause,UOLPlayer.onResume=\"function\"==typeof UOLPlayer.onResume?UOLPlayer.onResume:UOLPlayer.events.onResume,UOLPlayer.onSeeking=\"function\"==typeof UOLPlayer.onSeeking?UOLPlayer.onSeeking:UOLPlayer.events.onSeeking,UOLPlayer.onSeeked=\"function\"==typeof UOLPlayer.onSeeked?UOLPlayer.onSeeked:UOLPlayer.events.onSeeked,UOLPlayer.onRewind=\"function\"==typeof UOLPlayer.onRewind?UOLPlayer.onRewind:UOLPlayer.events.onRewind,UOLPlayer.onForward=\"function\"==typeof UOLPlayer.onForward?UOLPlayer.onForward:UOLPlayer.events.onForward,UOLPlayer.onEnd=\"function\"==typeof UOLPlayer.onEnd?UOLPlayer.onEnd:UOLPlayer.events.onEnd,UOLPlayer.onDetach=\"function\"==typeof UOLPlayer.onDetach?UOLPlayer.onDetach:UOLPlayer.events.onDetach,UOLPlayer.onFullscreen=\"function\"==typeof UOLPlayer.onFullscreen?UOLPlayer.onFullscreen:UOLPlayer.events.onFullscreen,UOLPlayer.onAdInit=\"function\"==typeof UOLPlayer.onAdInit?UOLPlayer.onAdInit:UOLPlayer.events.onAdInit,UOLPlayer.onAdEnd=\"function\"==typeof UOLPlayer.onAdEnd?UOLPlayer.onAdEnd:UOLPlayer.events.onAdEnd,window.addEventListener(\"message\",UOLPlayer.events.receive),UOLPlayer.inView=function(e,t){var a=e.getBoundingClientRect(),i=document.documentElement,r=e.offsetHeight-e.offsetHeight/4;return a.top>=0&&a.left>=0&&a.bottom<=window.innerHeight+(t?0:r)&&a.right<=(window.innerWidth||i.clientWidth)},UOLPlayer.loadCSS=function(e,t){if(!document.getElementById(\"uolplayer-\"+t)){var a=window.document.createElement(\"link\");window.document.getElementsByTagName(\"style\")[0];a.rel=\"stylesheet\",a.type=\"text/css\",a.href=e+\"?v=\"+UOLPlayer.version,a.media=\"all\",a.setAttribute(\"id\",\"uolplayer-\"+t),(document.head||doc.getElementsByTagName(\"head\")[0]).appendChild(a)}},UOLPlayer.loadFonts=function(){var e=window.navigator.userAgent;UOLPlayer.supportsWoff2?(UOLPlayer.Cache.require({url:UOLPlayer.cssPath+\"fonts/uolplayer-icons-woff2.css\",key:\"icons\",type:UOLPlayer.Cache.type.CSS,checksum:UOLPlayer.isLocal?\"icons_woff2_dev\":\"icons_woff2\"}),UOLPlayer.Cache.require({url:\"//stc.uol.com/c/webfont/projeto-grafico/uol-font/uol-text-light.woff2?v5\",key:\"font\",type:UOLPlayer.Cache.type.CSS,checksum:UOLPlayer.isLocal?\"font_woff2_dev\":\"font_woff2\",skip:!0})):e.indexOf(\"Android 4.\")>-1&&e.indexOf(\"like Gecko\")>-1&&e.indexOf(\"Chrome\")===-1?(UOLPlayer.Cache.require({url:UOLPlayer.cssPath+\"fonts/uolplayer-icons-ttf.css\",key:\"icons\",type:UOLPlayer.Cache.type.CSS,checksum:UOLPlayer.isLocal?\"icons_ttf_dev\":\"icons_ttf\"}),UOLPlayer.Cache.require({url:UOLPlayer.cssPath+\"fonts/uolplayer-font-ttf.css\",key:\"font\",type:UOLPlayer.Cache.type.CSS,checksum:UOLPlayer.isLocal?\"font_ttf_dev\":\"font_ttf\"})):(UOLPlayer.Cache.require({url:UOLPlayer.cssPath+\"fonts/uolplayer-icons-woff.css\",key:\"icons\",type:UOLPlayer.Cache.type.CSS,checksum:UOLPlayer.isLocal?\"icons_woff_dev\":\"icons_woff\"}),UOLPlayer.Cache.require({url:UOLPlayer.cssPath+\"fonts/uolplayer-font-woff.css\",key:\"font\",type:UOLPlayer.Cache.type.CSS,checksum:UOLPlayer.isLocal?\"font_woff_dev\":\"font_woff\"}))},UOLPlayer.supportsWoff2=function(e){if(!(\"FontFace\"in e))return!1;var t=new FontFace(\"t\",'url( \"data:application/font-woff2;base64,d09GMgABAAAAAAIkAAoAAAAABVwAAAHcAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlYAgloKLEoBNgIkAxgLDgAEIAWDcgc1G7IEyB6SJAFID5YA3nAHC6h4+H7s27nP1kTyOoQkGuJWtNGIJKYznRI3VEL7IaHq985ZUuKryZKcAtJsi5eULwUybm9KzajBBhywZ5ZwoJNuwDX5C/xBjvz5DbsoNsvG1NGQiqp0NMLZ7JlnW+5MaM3HwcHheUQeiVokekHkn/FRdefvJaTp2PczN+I1Sc3k9VuX51Tb0Tqqf1deVXGdJsDOhz0/EffMOPOzHNH06pYkDDjs+P8fb/z/8n9Iq8ITzWywkP6PBMMN9L/O7vY2FNoTAkp5PpD6g1nV9WmyQnM5uPpAMHR2fe06jbfvzPriekVTQxC6lpKr43oDtRZfCATl5OVAUKykqwm9o8R/kg37cxa6eZikS7cjK4aIwoyh6jOFplhFrz2b833G3Jii9AjDUiAZ9AxZtxdEYV6imvRF0+0Nej3wu6nPZrTLh81AVcV3kmMVdQj6Qbe9qetzbuDZ7vXOlRrqooFSxCv6SfrDICA6rnHZXQPVcUHJYGcoqa3jVH7ATrjWBNYYkEqF3RFpVIl0q2JvMOJd7/TyjXHw2NyAuJpNaEbz8RTEVtCbSH7JrwQQOqwGl7sTUOtdBZIY2DKqKlvOmPvUxJaURAZZcviTT0SKHCXqzwc=\" ) format( \"woff2\" )',{});return t.load()[\"catch\"](function(){}),\"loading\"==t.status||\"loaded\"==t.status}(this),UOLPlayer.loadImage=function(e,t,a){var i=new Image;i.onload=function(){t&&t()},i.onerror=function(){a&&a(),delete i},i.src=e},UOLPlayer.loadJs=function(e){var t,a=e.src,i=e.name,r=e.success,s=e.timeout,o=e.error,n=(e.cache===!0,!1),l=document,d=function(){if(!this.readyState||\"loaded\"===this.readyState||\"complete\"===this.readyState){var e=this.readyState;e&&!/ded|te/.test(e)||!r||n||(t.removeEventListener(\"load\",d),t.removeEventListener(\"readystatechange\",d),t.removeEventListener(\"error\",p),r()),u()}},p=function(){u(),n=!0,o&&o()},u=function(){clearTimeout(h),t&&t.parentNode&&t.parentNode.removeChild(t),t.removeEventListener(\"load\",d),t.removeEventListener(\"readystatechange\",d),t.removeEventListener(\"error\",p)},h=setTimeout(function(){s&&s(),n=!0,u()},5e3);document.getElementById(\"uolplayer-\"+i)?t=document.getElementById(\"uolplayer-\"+i):(t=l.createElement(\"script\"),t.src=a,t.type=\"text/javascript\",t.async=\"async\",t.setAttribute(\"id\",\"uolplayer-\"+i),(l.head||l.getElementsByTagName(\"head\")[0]).appendChild(t)),t.addEventListener(\"load\",d),t.addEventListener(\"readystatechange\",d),t.addEventListener(\"error\",p)},UOLPlayer.loadThumb=function(e,t){var a,i=[\"-xlarge\",\"-wlarge\",\"-wmedium\",\"-large\",\"-medium\",\"-small\"],r=function(){t&&t(e)},s=function(){i=UOLPlayer.Filter(i,function(t){return e.indexOf(t)!==-1&&(a=t),e.indexOf(t)===-1});var t=a;a=i.splice(0,1),e=e.replace(t,a),a.length>0&&UOLPlayer.loadImage(e,r,s)};UOLPlayer.loadImage(e,r,s)},UOLPlayer.observeDOM=function(){var e,t,a,i=window.MutationObserver||window.WebKitMutationObserver,r=window.addEventListener;return{observe:function(s,o){return t=s,a=function(){return o(t)},i?(e=new i(function(e,t){(e[0].addedNodes.length||e[0].removedNodes.length)&&a()}),e.observe(t,{childList:!0,subtree:!0})):r&&(t.addEventListener(\"DOMNodeInserted\",a,!1),t.addEventListener(\"DOMNodeRemoved\",a,!1)),this},disconnect:function(){i?e.disconnect():r&&(t.removeEventListener(\"DOMNodeInserted\",a,!1),t.removeEventListener(\"DOMNodeRemoved\",a,!1))}}},UOLPlayer.Reduce=function(e,t){if(null==e)throw new TypeError(\"Array.prototype.reduce chamado é nulo (null) ou indefinido (undefined)\");if(\"function\"!=typeof t)throw new TypeError(t+\" não é uma função\");var a,i=Object(e),r=i.length>>>0,s=0;if(2==arguments.length)a=arguments[1];else{for(;s<r&&!(s in i);)s++;if(s>=r)throw new TypeError(\"Reduce possui um array vazio sem um valor inicial\");a=i[s++]}for(;s<r;s++)s in i&&(a=t(a,i[s],s,i));return a},UOLPlayer.Data=function(e,t){this.promises={dataParsed:new UOLPlayer.Promise},this.action=t,this.app=e,this.app.apiError=[],this.ajaxConfig={corsFallback:!1,withCredentials:!0,maxTimeout:4e3}},UOLPlayer.Data.prototype.dataParsedPromise=function(){return this.promises.dataParsed},UOLPlayer.Data.prototype.metadataPromise=function(){return this.promises.metadata=this.promises.metadata||UOLPlayer.Promise.get(UOLPlayer[\"const\"].urls.data.METADATA.replace(\"{mediaId}\",this.app.mediaId)+(this.app.wrapper.getData(\"changeVideo\")?\"?withChange=true\":\"\"),this.ajaxConfig),this.promises.metadata},UOLPlayer.Data.prototype.formatsPromise=function(){return void 0!==this.app.forceCDN?this.promises.formats=this.promises.formats||UOLPlayer.Promise.get(UOLPlayer[\"const\"].urls.data.FORMATS.replace(\"{mediaId}\",this.app.mediaId)+\"?cdn=\"+this.app.forceCDN,this.ajaxConfig):this.promises.formats=this.promises.formats||UOLPlayer.Promise.get(UOLPlayer[\"const\"].urls.data.FORMATS.replace(\"{mediaId}\",this.app.mediaId),this.ajaxConfig),this.promises.formats},UOLPlayer.Data.prototype.formatsRetryPromise=function(){return void 0!==this.app.forceCDN?this.promises.formatsRetry=this.promises.formatsRetry||UOLPlayer.Promise.get(UOLPlayer[\"const\"].urls.data.FORMATS.replace(\"{mediaId}\",this.app.mediaId)+\"?cdn=\"+this.app.forceCDN+\"&retry=true\",this.ajaxConfig):this.promises.formatsRetry=this.promises.formatsRetry||UOLPlayer.Promise.get(UOLPlayer[\"const\"].urls.data.FORMATS.replace(\"{mediaId}\",this.app.mediaId)+\"?retry=true\",this.ajaxConfig),this.promises.formatsRetry},UOLPlayer.Data.prototype.configPromise=function(){var e=UOLPlayer[\"const\"].urls.data.CONFIG.replace(\"{mediaId}\",this.app.mediaId);return UOLPlayer.isIE&&!UOLPlayer.isEdge&&(e=e.replace(/^(https?:)?\\/\\//,\"https://\")),this.promises.config=this.promises.config||UOLPlayer.Promise.get(e,this.ajaxConfig),this.promises.config},UOLPlayer.Data.prototype.configClosedPromise=function(){\nvar e={withCredentials:!1,corsFallback:this.ajaxConfig.corsFallback,maxTimeout:this.ajaxConfig.maxTimeout};return this.promises.configClosed=this.promises.configClosed||UOLPlayer.Promise.get(UOLPlayer[\"const\"].urls.data.CONFIG.replace(\"{mediaId}\",this.app.mediaId)+\"?noauth=true\",e),this.promises.configClosed},UOLPlayer.Data.prototype.metadataFallbackPromise=function(){return this.promises.metadataFallback=this.promises.metadataFallback||UOLPlayer.Promise.get(UOLPlayer[\"const\"].urls.CROUPIER.replace(\"{mediaId}\",this.app.mediaId),this.ajaxConfig),this.promises.metadataFallback},UOLPlayer.Data.prototype.metadataFailurePromise=function(){return this.promises.metadataFailure=this.promises.metadataFailure||new UOLPlayer.Promise(function(e){var t=window.location.href.indexOf(\"https://\")===-1?\"http:\":\"https:\";e({thumbnail:t+\"//thumb.mais.uol.com.br/\"+self.app.mediaId+\".jpg\",title:\"\",author:\"\",generatedThumbs:1,mediaId:self.app.mediaId,type:payload.MP3.available?\"P\":\"V\",revision:0,url:t+\"//mais.uol.com.br/view/\"+self.app.mediaId,shareUrl:t+\"//mais.uol.com.br/view/\"+self.app.mediaId,duration:{seconds:0,formatted:\"0:00\"},formats:formats,payload:payload})}.bind(this)),this.promises.metadataFailure},UOLPlayer.Data.prototype.criticalFailurePromise=function(){if(this.promises.criticalFailure)return this.promises.criticalFailure;var e=new UOLPlayer.Chronometer(\"criticalFailure\");e.start();var t=this.promises.criticalFailure=new UOLPlayer.Promise,a=this,i=\"video.m.mais.uol.com.br\",r={},s=function(e,t,s){var o=a.app.mediaId;\"DASH\"===e?o=a.app.mediaId+\"-12\":\"HLS\"===e?o=a.app.mediaId+\"-10\":\"WEBM\"===e?o=a.app.mediaId+\"-11\":\"mobile\"===e&&(o=a.app.mediaId+\"-9\");var n=function(a,n){r[e]={available:a.indexOf(i)===-1&&a.indexOf(o+\".\"+t)!==-1,mediaType:\"MP3\"===e?\"audio\":\"video\",filename:o,format:e,url:a,token:n?n.token:void 0,sign:n?n.sign:void 0},s(r)};UOLPlayer.ElementErrorHandler.resolveFallbackURL(a.app,UOLPlayer.mediaSourceFallbackURL(o,0,t,a.app.hashId),n)},o=function(e){var t={},i=function(t){return{filename:e[t].filename+\"\",externalCDN:!1,url:e[t].url.split(\"?\").shift(),token:e[t].token,sign:e[t].sign,alternatives:[e[t].url.split(\"?\").shift().split(\"//\").pop()]}};if(e.MP3.available)t.MP3=i(\"MP3\");else for(var r in e)e[r].available&&(t[r]=i(r));var s=window.location.href.indexOf(\"https://\")===-1?\"http:\":\"https:\";if(0===Object.keys(t).length||1===Object.keys(t).length&&t.mobile){var o=UOLPlayer.hashCode(a.app.mediaId.toString());t={\"360p\":{filename:a.app.mediaId+\"\",externalCDN:!1,url:s+\"//storage.mais.uol.com.br/\"+a.app.mediaId+\".mp4?hash=\"+o,alternatives:[\"storage.mais.uol.com.br/\"+a.app.mediaId+\".mp4?hash=\"+o]},mobile:{filename:a.app.mediaId+\"-9\",externalCDN:!1,url:s+\"//storage.mais.uol.com.br/\"+a.app.mediaId+\"-9.mp4?hash=\"+o,alternatives:[\"storage.mais.uol.com.br/\"+a.app.mediaId+\"-9.mp4?hash=\"+o]}}}return{thumbnail:s+\"//thumb.mais.uol.com.br/\"+a.app.mediaId+\".jpg\",title:\"\",author:\"\",generatedThumbs:1,mediaId:a.app.mediaId,type:e.MP3.available?\"P\":\"V\",revision:0,url:s+\"//mais.uol.com.br/view/\"+a.app.mediaId,shareUrl:s+\"//mais.uol.com.br/view/\"+a.app.mediaId,duration:{seconds:0,formatted:\"0:00\"},formats:t,payload:e}},n=new UOLPlayer.Promise(function(e){s(\"DASH\",\"mpd\",e)}),l=new UOLPlayer.Promise(function(e){s(\"HLS\",\"m3u8\",e)}),d=new UOLPlayer.Promise(function(e){s(\"360p\",\"mp4\",e)}),p=new UOLPlayer.Promise(function(e){s(\"WEBM\",\"webm\",e)}),u=new UOLPlayer.Promise(function(e){s(\"mobile\",\"mp4\",e)}),h=new UOLPlayer.Promise(function(e){s(\"MP3\",\"mp3\",e)});return h.then(function(){return d}).then(function(){return n}).then(function(){return l}).then(function(){return u}).then(function(){return p}).then(function(a){var i=-1,r={loadedAt:e.stop()};t.resolve(o(a),i,r)}),this.promises.criticalFailure},UOLPlayer.Data.prototype.loadApi=function(e){e=e||{};var t={},a=this,i=this.app,r=this.action;return UOLPlayer.urlParameter.key||this.configClosedPromise(),this.metadataPromise(),this.configPromise(),this.metadataPromise().then(function(e,t,r){return UOLPlayer.Profiler.trackApi(\"metadata\",r.loadedAt.elapsedTime.time,t),i.tracker.pushState(\"apiDrakkarStatus\",t),a.metadataPromise()},function(e,t,r){return UOLPlayer.Profiler.trackApi(\"metadata\",r.loadedAt.elapsedTime.time,t),t>-1&&i.apiError.push(\"data:\"+t),i.tracker.pushState(\"apiDrakkarStatus\",t),400===t?(i.setError(UOLPlayer.ElementErrorHandler.errorCodes.INVALID_MEDIA_ID),UOLPlayer.Promise[\"break\"]):404===t?(i.setError(UOLPlayer.ElementErrorHandler.errorCodes.MEDIA_NOT_FOUND),UOLPlayer.Promise[\"break\"]):413===t?(i.setError(UOLPlayer.ElementErrorHandler.errorCodes.PAYLOAD_TOO_LARGE),UOLPlayer.Promise[\"break\"]):a.metadataFallbackPromise()}).then(function(e,s,o){return a.promises.metadataFallback&&i.tracker.pushState(\"apiCroupierStatus\",s),t.metadata=e.item?e.item:e,t.metadata.mediaId?(r.metadata&&r.metadata.call(null,t.metadata),a.promises.metadataFallback?a.metadataFallbackPromise():a.metadataPromise()):(i.setError(UOLPlayer.ElementErrorHandler.errorCodes.API_EMPTY_RESPONSE),UOLPlayer.Promise[\"break\"])},function(e,t,r){return i.tracker.pushState(\"apiCroupierStatus\",t),UOLPlayer.i(\"ERRO FATAL: METADATA COM ERRO\"),i.apiError.push(\"metadataCroupier:\"+t),i.chronoLoadApi&&i.chronoLoadApi.stop(),413===t?(i.setError(UOLPlayer.ElementErrorHandler.errorCodes.PAYLOAD_TOO_LARGE),UOLPlayer.Promise[\"break\"]):(i.tracker.pushState(\"apiCroupierStatus\",t),a.criticalFailurePromise())}).then(function(e,s,o){return a.promises.criticalFailure&&(t.metadata=e.item?e.item:e,r.metadata.call(null,t.metadata),r.critical.call(null,e.payload)),413===s?(i.setError(UOLPlayer.ElementErrorHandler.errorCodes.PAYLOAD_TOO_LARGE),UOLPlayer.Promise[\"break\"]):a.formatsPromise()}).then(function(e,t,r){return\"object\"==typeof e&&\"undefined\"==typeof e.code?(i.tracker.pushState(\"api_formats_retry\",!1),a.formatsPromise()):(i.tracker.pushState(\"api_formats_retry\",!0),a.formatsRetryPromise())},function(e,t,r){return i.tracker.pushState(\"api_formats_retry\",!0),a.formatsRetryPromise()}).then(function(e,t,s){if(\"object\"==typeof e&&\"undefined\"==typeof e.code){UOLPlayer.Profiler.trackApi(\"formats\",s.loadedAt.elapsedTime.time,t);var o=s&&s.getAllResponseHeaders?s.getAllResponseHeaders():\"\",n=o.match(/^x-cache-type: (.+)$/im);return n?i.tracker.pushState(\"api_formats_cache_type\",n.pop()):i.tracker.pushState(\"api_formats_cache_type\",\"cors_error\"),r.formats&&r.formats.call(null,e),a.promises.formatsRetry?a.formatsRetryPromise():a.formatsPromise()}return a.criticalFailurePromise()},function(e,t,i){return a.criticalFailurePromise()}).then(function(e,t,s){return a.promises.formatsRetry&&a.promises.criticalFailure&&r.formats&&(r.formats.call(null,e.formats),r.critical.call(null,e.payload),UOLPlayer.Profiler.trackApi(\"formats\",s.loadedAt.elapsedTime.time,t),i.tracker.pushState(\"api_formats_cache_type\",\"criticalFailure\")),a.configPromise()}).then(function(e,t,a){return UOLPlayer.Profiler.trackApi(\"config\",a.loadedAt.elapsedTime.time,t),e.item},function(e,t,a){if(UOLPlayer.Profiler.trackApi(\"config\",a.loadedAt.elapsedTime.time,t),t>-1&&i.apiError.push(\"config:\"+t),401===t){e=JSON.parse(e);var r,s;if(\"audio\"===i.mediaType||i.data&&\"P\"===i.data.type?(r=\"AUDIO_\",s=UOLPlayer.ElementErrorHandler.errorCodes.AUDIO_NO_PERMISSION_UNTRACKED):(r=\"VIDEO_\",s=UOLPlayer.ElementErrorHandler.errorCodes.VIDEO_NO_PERMISSION_UNTRACKED),e&&e.item&&e.item.permission&&UOLPlayer.ElementErrorHandler.errorCodes[r+e.item.permission]&&(s=UOLPlayer.ElementErrorHandler.errorCodes[r+e.item.permission]),s===UOLPlayer.ElementErrorHandler.errorCodes.VIDEO_NO_PERMISSION_JUST_OWNER&&!i.key)return i.setError(s),UOLPlayer.Promise[\"break\"]}var o={};return o.userIp=\"\",o.playerParameters={iu:!1,dfp_on:!1,dfp_native_timeout_on:!1,dfp_native_timeout_time:void 0,dfp_custom_timeout_on:!1,dfp_custom_timeout_buffer_time:void 0,dfp_custom_timeout_request_time:void 0,range_request:!0,hls_enabled:!0,hls_maisuol_enabled:!0,hls_allow_domain_regexp:\"\",hls_max_buffer_length:30},o}).then(function(e,i,r){return t.config=e,a.configClosedPromise()}).then(function(e,t,i){return a.configPromise()},function(e,i,s){var o=!1;try{o=JSON.parse(e)}catch(n){o=!1}var l=[\"NO_PERMISSION_JUST_OWNER\",\"NO_PERMISSION_BY_DAT_SCHEDULING\"],d=o&&o.response&&o.response.description&&l.indexOf(o.response.description)>-1;return d&&200!==i&&\"HAS_PERMISSION\"===t.config.permission&&r.closedMedia&&r.closedMedia.call(),t.config.playerParameters.dfp_on=!1,a.configPromise()}).then(function(e,i,s){if(r.config)return r.config.call(null,t.config,a.promises.dataParsed.resolve)})},UOLPlayer.Timeout=function(e){this.app=e;var t={};this.app.customTimeout=UOLPlayer.urlParameter.timeout!==!1&&this.app.customTimeout,\"V\"==this.app.data.item.type&&(t.REQUEST_ADS={type:\"dfpRequestAds\",active:this.app.customTimeout,time:1e3*UOLPlayer.safariMultiplier(this.app.data.item.playerParameters.dfp_custom_timeout_request_time,e)},t.LOAD_AD={type:\"dfpLoadAds\",active:this.app.customTimeout,time:1e3*UOLPlayer.safariMultiplier(this.app.data.item.playerParameters.dfp_custom_timeout_adload_time,e)},t.PLAYING_AD={type:\"dfpPlayAd\",active:this.app.customTimeout,time:1e3*UOLPlayer.safariMultiplier(2*this.app.data.item.playerParameters.dfp_custom_timeout_buffer_time,e)},t.HLS_SWITCH_LEVEL={type:\"hlsSwitchLevel\",active:!0,time:1e3*UOLPlayer.safariMultiplier(this.app.data.item.playerParameters.hls_switch_level_wait||10,e)},t.DASH_SWITCH_LEVEL={type:\"dashSwitchLevel\",active:!0,time:1e3*UOLPlayer.safariMultiplier(this.app.data.item.playerParameters.hls_switch_level_wait||10,e)}),t.TEST={type:\"test\",active:!0,time:1e3},t.RETRY_BALAIO={type:\"retryBalaio\",active:!0,time:15e3};var a,i,r,s,o=function(e,t,a){var i,r,s,o,l,d=!1,p=t,u=t;return r=function(){this.app.logger.logError(\"timeout: \"+e),n.status=e,d=!0,s&&s.call(this)}.bind(this),a?{start:function(e){s=e,d=!1,o=window.performance.now(),l=null,i&&clearTimeout(i),i=setTimeout(r,p)},abort:function(e){l||(l=window.performance.now()),i&&clearTimeout(i),e&&e.call(this)}.bind(this),execute:r,time:p,updateDuration:function(e){p=e},getElapsedTime:function(){return Math.round(l-o)},getRemainingTime:function(){return Math.round(u-(l-o))},getStatus:function(){return d}}:{start:function(){},abort:function(){},execute:function(){},updateDuration:function(){},getElapsedTime:function(){return 0},getRemainingTime:function(){return 0},getStatus:function(){return!1}}}.bind(this),n={type:{},time:{}};for(a in t)i=t[a].type,r=t[a].time,s=t[a].active,n.type[a]=i,n.time[a]=r,n[i]=o(i,r,s);return n},UOLPlayer.Tracker=function(e,t){this.start=new Date,this.states=t||{},this.timeout=null,this.debug=e},UOLPlayer.Tracker.prototype.current=function(){return(new Date).toUnixTimestamp()-this.start.toUnixTimestamp()},UOLPlayer.Tracker.prototype.pushState=function(e,t,a){return this.states[e]!==t&&void(this.states[e]=t)},UOLPlayer.Tracker.prototype.pushStates=function(){var e=this;Array.prototype.forEach.call(arguments,function(t){e.pushState.apply(e,t)})},UOLPlayer.Tracker.prototype.pushStateDelayed=function(e,t,a){var i=\"timeout\"+e;clearTimeout(i),setTimeout(this.pushState.bind(this),400,e,t,a)},UOLPlayer.Tracker.prototype.getData=function(e){return this.states},UOLPlayer.Configuration=function(e){var t={subPanel:e.wrapper.getElementsByClassName(\"up-ctrlbar-tools\")[0].getElementsByClassName(\"up-ctrlbar-tools-subpanel\")[0],subPanelNodes:e.wrapper.getElementsByClassName(\"up-ctrlbar-tools\")[0].getElementsByClassName(\"up-ctrlbar-tools-subpanel-item\"),tools:e.wrapper.getElementsByClassName(\"up-ctrlbar-tools\")[0]};this.openPanel=function(e){for(var a=0,i=t.subPanelNodes.length;a<i;++a)t.subPanelNodes[a].hide();e.show(),t.tools.addClass(\"_open\")},this.closePanel=function(){t.tools.removeClass(\"_open\")}},UOLPlayer.DragBar=function(e){var t,a=e.control;e.bar,Math.floor(e.handlebar.offsetWidth/2);UOLPlayer.eventsControl.call(this),this.events={update:new UOLPlayer.customEvents,navigate:new UOLPlayer.customEvents,press:new UOLPlayer.customEvents,release:new UOLPlayer.customEvents};var i=function(e){t=r(UOLPlayer.mousePosition(e).x),this.update(t),this.events.update.dispatch(t)}.bind(this),r=function(e){var t=e/(a.offsetWidth-5)*100;return Math.min(100,Math.max(0,t))};this.update=function(t){e.bar.style.width=Math.floor(t)+\"%\",e.handlebar.style.left=Math.floor(t)+\"%\"};var s={down:UOLPlayer.isMobile?\"touchstart\":\"mousedown\",up:UOLPlayer.isMobile?\"touchend\":\"mouseup\",move:UOLPlayer.isMobile?\"touchmove\":\"mousemove\"};a.addEventListener(s.down,function(e){i(e),a.dragging=!0,a.addEventListener(s.move,i,UOLPlayer.supportsPassive),a.addClass(\"_active\"),this.events.press.dispatch()}.bind(this),UOLPlayer.supportsPassive),a.addEventListener(s.up,function(e){a.removeEventListener(s.move,i),t=r(UOLPlayer.mousePosition(e).x),a.removeClass(\"_active\"),this.events.release.dispatch(t),a.dragging=!1}.bind(this),UOLPlayer.supportsPassive),a.addEventListener(s.move,function(e){var a=UOLPlayer.mousePosition(e).x;t=Math.floor(r(a)),this.events.navigate.dispatch({perc:t,x:a})}.bind(this),UOLPlayer.supportsPassive);var o=function(e){a.dragging&&(a.removeEventListener(s.move,i,UOLPlayer.supportsPassive),this.events.release.dispatch(t)),a.dragging=!1}.bind(this);document.addEventListener(s.up,o,UOLPlayer.supportsPassive);try{window.parent!==window&&window.parent.addEventListener(s.up,o,UOLPlayer.supportsPassive)}catch(n){}return this},UOLPlayer.ChangePlaybackRate=function(e){function t(e){var t=e.currentTarget.getData(\"playbackrate\");this.events.change.dispatch(t)}function a(e){return(e/100).toString().replace(\".\",\",\")+\"x\"}function i(e){s.group.getElementsByClassName(\"_active\")[0]&&s.group.getElementsByClassName(\"_active\")[0].removeClass(\"_active\"),s.group.getElementsByClassName(\"playbackrate-\"+e)[0].addClass(\"_active\"),s.currentLabel.innerHTML=100==e?\"Normal\":a(e)}UOLPlayer.eventsControl.call(this),UOLPlayer.Configuration.call(this,e),this.events.change=new UOLPlayer.customEvents;var r=this,s={change:e.wrapper.getElementsByClassName(\"up-ctrlbar-tools\")[0].getElementsByClassName(\"up-playbackrate\")[0],open:e.wrapper.getElementsByClassName(\"up-ctrlbar-openplaybackrate\")[0],close:e.wrapper.getElementsByClassName(\"up-ctrlbar-closeplaybackrate\")[0],group:e.wrapper.getElementsByClassName(\"up-playbackrate\")[0].getElementsByClassName(\"up-playbackrate-type-group\")[0],currentLabel:e.wrapper.getElementsByClassName(\"up-ctrlbar-openplaybackrate\")[0].getElementsByClassName(\"up-ctrlbar-tools-content\")[0]},o=function(){r.openPanel(s.change)};s.close.addEventListener(\"click\",function(){r.closePanel()});var n=function(){s.open.addEventListener(\"click\",o);for(var e=25,i=200;e<=i;e+=25)if(175!=e){var r='<div class=\"up-ctrlbar-tools-item up-playbackrate-item playbackrate-'+e+'\"><div class=\"up-ctrlbar-tools-content\">'+(100==e?\"Normal\":a(e))+\"</div></div>\";r=s.group.appendHtmlText(r).getElementsByClassName(\"playbackrate-\"+e)[0],r.setData(\"playbackrate\",e/100),r.addEventListener(\"click\",t.bind(this)),100==e&&(s.current=r,s.current.addClass(\"_active\"))}}.bind(this);n(),this.setActive=i},UOLPlayer.ChangeQuality=function(e,t){function a(e){var t=e.currentTarget.getData(\"type\");this.events.change.dispatch(t)}function r(e){return\"WEBM\"==e?\"360p\":e}function s(e){return void 0===e.format?(l.currentType.innerHTML=r(e),l.isAuto.innerHTML=\"\",l.typeGroup.getElementsByClassName(\"_active\")[0]&&l.typeGroup.getElementsByClassName(\"_active\")[0].removeClass(\"_active\"),void(l.typeGroup.getElementsByClassName(\"quality-\"+e)[0]&&l.typeGroup.getElementsByClassName(\"quality-\"+e)[0].addClass(\"_active\"))):(l.isAuto.innerHTML=e.auto?\"Auto\":\"\",l.currentType.innerHTML=e.format,l.typeGroup.getElementsByClassName(\"_waiting\")[0]&&l.typeGroup.getElementsByClassName(\"_waiting\")[0].removeClass(\"_waiting\"),void(e.auto===!1&&l.typeGroup.getElementsByClassName(\"quality-\"+e.format)[0].addClass(\"_waiting\")))}function o(e){l.isAuto.innerHTML=e.auto?\"Auto\":\"\",l.currentType.innerHTML=e.format,l.typeGroup.getElementsByClassName(\"_active\")[0]&&l.typeGroup.getElementsByClassName(\"_active\")[0].removeClass(\"_active\"),l.typeGroup.getElementsByClassName(\"_waiting\")[0]&&l.typeGroup.getElementsByClassName(\"_waiting\")[0].removeClass(\"_waiting\"),e.auto===!1?l.typeGroup.getElementsByClassName(\"quality-\"+e.format)[0].removeClass(\"_waiting\").addClass(\"_active\"):l.typeGroup.getElementsByClassName(\"quality-auto\")[0]&&l.typeGroup.getElementsByClassName(\"quality-auto\")[0].removeClass(\"_waiting\").addClass(\"_active\")}UOLPlayer.eventsControl.call(this),UOLPlayer.Configuration.call(this,e);var n=this;this.events.change=new UOLPlayer.customEvents;var l=(e.wrapper.getElementsByClassName(\"up-ctrlbar\")[0],{changeQuality:e.wrapper.getElementsByClassName(\"up-ctrlbar-tools\")[0].getElementsByClassName(\"up-quality\")[0],quality:e.wrapper.getElementsByClassName(\"up-quality\")[0].getElementsByClassName(\"up-quality-item\"),typeGroup:e.wrapper.getElementsByClassName(\"up-quality\")[0].getElementsByClassName(\"up-quality-type-group\")[0],isAuto:e.wrapper.getElementsByClassName(\"up-ctrlbar-tools\")[0].getElementsByClassName(\"quality-isauto\")[0],currentType:e.wrapper.getElementsByClassName(\"up-ctrlbar-tools\")[0].getElementsByClassName(\"quality-type\")[0],currentQualityLabel:e.wrapper.getElementsByClassName(\"up-ctrlbar-tools\")[0].getElementsByClassName(\"up-ctrlbar-tools-content\")[0],openQuality:e.wrapper.getElementsByClassName(\"up-ctrlbar-openquality\")[0],closeQuality:e.wrapper.getElementsByClassName(\"up-ctrlbar-closequality\")[0]}),d=function(){n.openPanel(l.changeQuality)};for(l.closeQuality.addEventListener(\"click\",function(){n.closePanel()}),i=0;i<l.quality.length;i++)l.quality[i].addEventListener(\"click\",function(){l.currentQuality&&l.currentQuality.removeClass(\"_active\"),this.hasClass(\"_active\")?this.removeClass(\"_active\"):(this.addClass(\"_active\"),l.currentQuality=this)});var p=function(t){if(t=UOLPlayer.cloneJSON(t),delete t.flv,\"HLS\"!==e.data.formats[\"default\"].type&&\"DASH\"!==e.data.formats[\"default\"].type&&(delete t.mobile,delete t.HLS,delete t.DASH,\"WEBM\"===e.data.formats[\"default\"].type?(delete t.mobile,delete t.HLS,delete t.DASH,delete t[\"360p\"],delete t[\"720p\"],delete t[\"1080p\"]):delete t.WEBM),UOLPlayer.isSafari&&UOLPlayer.mobile||UOLPlayer.isIpad||Object.keys(t).length<2)l.currentType.innerHTML=r(Object.keys(t)[0]),l.isAuto.innerHTML=\"\",l.openQuality.removeEventListener(\"click\",d),l.currentQualityLabel.removeClass(\"up-next-element\");else{l.openQuality.addEventListener(\"click\",d),l.currentQualityLabel.addClass(\"up-next-element\"),l.typeGroup.innerHTML=\"\";for(var i in t){format=t[i];var o='<div class=\"up-ctrlbar-tools-item up-quality-item quality-'+format.type+'\"><div class=\"up-ctrlbar-tools-content\">'+r(format.type)+\"</div></div>\";o=l.typeGroup.appendHtmlText(o).getElementsByClassName(\"quality-\"+format.type)[0],o.setData(\"type\",format.type),void 0!=format.index&&o.setData(\"index\",format.index),o.addEventListener(\"click\",a.bind(this))}s(e.data.formats[\"default\"].type)}}.bind(this);p(e.data.formats.available),this.updateList=p,this.setFormat=s,this.setActive=o},UOLPlayer.ControlBar=function(e,t){function i(){v.hasClass(\"_active\")?(v.removeClass(\"_active\"),clearTimeout(y)):v.addClass(\"_active\")}function r(){v.removeClass(\"_active\"),v.removeClass(\"_open\")}function s(){clearTimeout(y),y=setTimeout(function(){r()}.bind(this),4e3)}UOLPlayer.eventsControl.call(this),this.events.volumeChange=new UOLPlayer.customEvents,this.events.toggleMute=new UOLPlayer.customEvents,this.events.changeQuality=new UOLPlayer.customEvents,this.events.changePlaybackRate=new UOLPlayer.customEvents,this.currentTime=0;var o,n,l,d,p,u,h={duration:e.data.item.duration},m=UOLPlayer.perc2time(e.mediaPlayer.getDuration);o=e.wrapper.getElementsByClassName(\"up-ctrlbar\")[0],this.timelineBar=l=new UOLPlayer.Timeline(e,o,h.duration),l.registerEventListener(\"press\",function(e){}.bind(this)),l.registerEventListener(\"seeking\",function(t){u=t,e.backbone.video.seeking()}.bind(this)),l.registerEventListener(\"seeked\",function(t){if(e.isPlayingAd()===!1){var a=m(t);e.mediaPlayer.seek(a),e.backbone.video.seeked(a)}}.bind(this));var c=!1;if(n=new UOLPlayer.Volume(e,o),n.registerEventListener(\"volumeChange\",function(t){e.mediaPlayer.volume(t),UOLPlayer.isSafariMacOS&&!e.isPlayingAd()&&e.mediaPlayer.play(),this.events.volumeChange.dispatch(t),c=!0,e.tracker.pushStateDelayed(\"volume\",Math.ceil(100*t))}.bind(this)),n.registerEventListener(\"toggleMute\",function(e){this.events.toggleMute.dispatch(e)}.bind(this)),e.mediaPlayer.registerEventListener(\"volumeChange\",function(e){c||n.updateVolume(e),c=!1}.bind(this)),e.data.item.generatedThumbs>0&&(d=new UOLPlayer.ThumbPreview(e,o,{total:e.data.item.generatedThumbs,mediaId:e.data.item.mediaId,duration:e.data.item.duration.seconds}),l.registerEventListener(\"navigate\",function(e){d.navigate(e)}.bind(this))),!UOLPlayer.isMobile&&\"V\"==e.data.item.type){var y,g=o.getElementsByClassName(\"up-bt-tools\")[0],v=e.wrapper.getElementsByClassName(\"up-ctrlbar-tools\")[0];g.addEventListener(\"click\",function(e){e.target===g&&i()}),g.addEventListener(\"mouseout\",s),v.addEventListener(\"mouseover\",function(){clearTimeout(y)}),v.addEventListener(\"mousemove\",s),UOLPlayerAutoRep.activateInControlbar(e,v),changePlaybackrate=new UOLPlayer.ChangePlaybackRate(e),changePlaybackrate.registerEventListener(\"change\",function(t){e.mediaPlayer.playbackRate(t),this.events.changePlaybackRate.dispatch(t),e.tracker.pushState(\"playbackRate\",t)}.bind(this)),e.mediaPlayer.registerEventListener(\"onChangedPlaybackRate\",changePlaybackrate.setActive),p=new UOLPlayer.ChangeQuality(e,e.data.formats),p.registerEventListener(\"change\",function(t){e.mediaPlayer.changeQuality(t),this.events.changeQuality.dispatch(t),e.tracker.pushState(\"quality\",t)}.bind(this)),e.data.formats.current&&(p.setFormat(e.data.formats.current.type),e.tracker.pushState(\"quality\",e.data.formats.current.type)),e.mediaPlayer.registerEventListener(\"ready\",function(t){p.updateList(e.data.formats.HLS||e.data.formats.DASH)}),e.mediaPlayer.registerEventListener(\"onChangingQuality\",function(e){p.setFormat(e)}),e.mediaPlayer.registerEventListener(\"onChangedQuality\",p.setActive),e.data.formats&&(e.data.formats.HLS||e.data.formats.DASH)&&p.updateList(e.data.formats.HLS||e.data.formats.DASH)}e.mediaPlayer.registerEventListener(\"progress\",function(t){var a=e.mediaPlayer.mediaElement;a.maxReadyState=Math.max(a.readyState,a.maxReadyState||0),t.target.buffered.length>0&&!e.isPlayingAd()&&(a.maxBuffered=Math.max(t.target.buffered.end(0),a.maxBuffered||0),l.updateBuffer(e.startTime+t.target.buffered.end(0)),e.tracker.pushState(\"bufferizedPercentage\",Math.ceil(a.maxBuffered/t.target.duration*100),0),e.tracker.pushState(\"bufferized\",a.maxBuffered,10))}.bind(this)),e.mediaPlayer.registerEventListener(\"timeupdate\",function(t){UOLPlayer.isIOS&&e.wrapper.hasClass(\"_waiting\")&&e.wrapper.removeClass(\"_waiting\");var a=Math.floor(e.startTime),i=Math.floor(t.target.currentTime),r=Math.floor(h.duration.seconds),s=Math.floor(t.target.duration);e.mediaPlayer.mediaElement;this.currentTime=0===a?i:i+(r-s),UOLPlayer.isNumeric(this.currentTime)&&(l.updateProgress(this.currentTime),e.wrapper.removeClass(\"_error\"),e.tracker.pushState(\"currentTime\",this.currentTime),e.tracker.pushState(\"currentTimePercentage\",Math.ceil(i/r*100)))}.bind(this)),this.update=function(){p&&(p.updateList(e.data.formats.available),e.mediaPlayer.registerEventListener(\"onChangingQuality\",function(e){p.setFormat(e)}),e.mediaPlayer.registerEventListener(\"onChangedQuality\",p.setActive))},this.updateProgress=l.updateProgress,this.progress=l.progress,this.toggleMute=n.toggleMute,this.updateVolume=n.updateVolume,this.isMute=n.isMute,this.mute=n.mute,p&&(this.updateList=p.updateList);try{if(UOLPlayer.getURL().indexOf(\"simulateBug=controlbar\")>-1){var P;setTimeout(function(){a+b},null!==(P=UOLPlayer.getURL().match(/simulateBugTime=(\\d+)/))?parseInt(P.pop()):7e3)}}catch(f){}},UOLPlayer.ThumbPreview=function(e,t,a){var i,r,s,o,n,l,d,p,u,h,m,c,y='<div class=\"up-thumbpreview\"><div class=\"up-current\">0:00</div><div class=\"up-preload-spinner\"></div><span class=\"up-thumbpreview_img\"></span></div>',g=25,v=-142,P=-80,f=a.mediaId,L=a.total-1,O=100/L,E=-1,U=UOLPlayer.perc2time(a.duration),b=0,C=142,_=.9,A=1.3;o=t.getElementsByClassName(\"up-seek\")[0],o.appendHtmlText(y),i=t.getElementsByClassName(\"up-thumbpreview\")[0],n=i.getElementsByClassName(\"up-current\")[0],r=i.getElementsByClassName(\"up-thumbpreview_img\")[0],this.navigate=function(t){if(0===a.duration&&e.mediaPlayer&&e.mediaPlayer.mediaElement&&!isNaN(e.mediaPlayer.mediaElement.duration)){e.data.item.duration.seconds=a.duration=Math.ceil(e.mediaPlayer.mediaElement.duration),U=UOLPlayer.perc2time(a.duration);var y=Math.floor(a.duration/60),L=a.duration%60;L<10?e.data.item.duration.formatted=y+\":0\"+L:e.data.item.duration.formatted=y+\":\"+L}s=o.offsetWidth,l=Math.floor((t.perc+2)/O),d=Math.floor(l%g),p=Math.floor(l/g),u=Math.floor(d/5)*v,h=Math.floor(d%5)*P,p!=E&&(E=p,r.style.backgroundImage=\"url(//thumb.mais.uol.com.br/\"+f+\"-grid-\"+p+\".jpg)\"),r.style.backgroundPosition=u+\"px \"+h+\"px\",n.innerText=U(t.perc).toString().formatTime(),m=t.x,UOLPlayer.isMobile?(b=(C-C*_)/2,width=C*_):UOLPlayer.isFullscreen?(b=(C-C*A)/2,width=C*A):width=C,c=Math.floor(m-m*(width/o.offsetWidth))-b,i.style.left=c+\"px\"}},UOLPlayer.Timeline=function(e,t,a){function i(){if(0==a.seconds&&e.mediaPlayer&&e.mediaPlayer.mediaElement&&!isNaN(e.mediaPlayer.mediaElement.duration)){a.seconds=Math.ceil(e.mediaPlayer.mediaElement.duration),d=UOLPlayer.time2perc(a.seconds);var t=Math.floor(a.seconds/60),i=a.seconds%60;i<10?a.formatted=t+\":0\"+i:a.formatted=t+\":\"+i}}function r(e){e=UOLPlayer.isNumeric(e)?e:0,l.currentTime.innerHTML=e.toString().formatTime()}var s,o=a,n=t.getElementsByClassName(\"up-seek\")[0],l={control:n.getElementsByClassName(\"up-dragbar-control\")[0],handlebar:n.getElementsByClassName(\"up-dragbar-handle\")[0],bar:n.getElementsByClassName(\"up-dragbar-bar\")[0],buffer:n.getElementsByClassName(\"up-dragbar-buffered\")[0],currentTime:t.getElementsByClassName(\"up-time-current\")[0],totalTime:t.getElementsByClassName(\"up-time-duration\")[0]},d=UOLPlayer.time2perc(a.seconds),p=0;UOLPlayer.DragBar.call(this,l),this.events.seeking=new UOLPlayer.customEvents,this.events.seeked=new UOLPlayer.customEvents,this.registerEventListener(\"press\",function(e){this.pressed=!0,n.addClass(\"_active\"),this.events.seeking.dispatch(e)}.bind(this)),this.registerEventListener(\"release\",function(e){this.pressed=!1,n.removeClass(\"_active\"),this.events.seeked.dispatch(Math.floor(e))}.bind(this));var u=function(e,t){p=d(e),s=t?100*e/t:d(e),this.pressed||this.update(s)}.bind(this);l.totalTime.innerHTML=a.formatted,this.updateBuffer=function(e){i(),l.buffer.style.width=d(e)+\"%\"},this.updateProgress=function(e,t){i(),l.totalTime.innerHTML=t?t.toString().formatTime():o.formatted,u(e,t),r(e)},this.progress=function(){return p}},UOLPlayer.Volume=function(e,t){function a(e){var t=100*e;s.bar.style.width=t+\"%\",s.handlebar.style.left=t+\"%\",i(t)}function i(e){0==e?s.bt.addClass(\"up-bt-volume-mute\").removeClass(\"up-bt-volume-high\").removeClass(\"up-bt-volume-low\"):e>0&&e<51?s.bt.addClass(\"up-bt-volume-low\").removeClass(\"up-bt-volume-mute\").removeClass(\"up-bt-volume-high\"):e>51&&s.bt.addClass(\"up-bt-volume-high\").removeClass(\"up-bt-volume-mute\").removeClass(\"up-bt-volume-low\")}this.muted=!1;var r=t.getElementsByClassName(\"up-volume\")[0],s={control:r.getElementsByClassName(\"up-dragbar-control\")[0],panel:r.getElementsByClassName(\"up-volume-panel\")[0],handlebar:r.getElementsByClassName(\"up-dragbar-handle\")[0],bar:r.getElementsByClassName(\"up-dragbar-bar\")[0],group:t.getElementsByClassName(\"up-volume-group\")[0],bt:t.getElementsByClassName(\"up-bt-volume\")[0],btUnmute:e.wrapper.getElementsByClassName(\"up-startmute\")[0]};UOLPlayer.DragBar.call(this,s),this.events.volumeChange=new UOLPlayer.customEvents,this.events.toggleMute=new UOLPlayer.customEvents;var o=function(){this.events.toggleMute.dispatch(this.muted)}.bind(this);this.registerEventListener(\"update\",function(e){this.muted=!1,i(e),this.events.volumeChange.dispatch(e/100)}.bind(this)),s.bt.addEventListener(\"click\",o),s.btUnmute.addEventListener(\"click\",o),a(UOLPlayer.getCookie(\"lplr_vlm\")||1),this.updateVolume=a,this.toggleMute=function(){this.muted=!this.muted,a(this.muted?0:UOLPlayer.getCookie(\"lplr_vlm\"))}.bind(this),this.mute=function(){return this.muted=!0,a(0),this.muted}.bind(this),this.isMute=function(){return this.muted}.bind(this)},UOLPlayer.MediaElement=function(){this.events={formatsChanged:new UOLPlayer.customEvents,onChangedPlaybackRate:new UOLPlayer.customEvents,onChangedQuality:new UOLPlayer.customEvents,onChangingQuality:new UOLPlayer.customEvents,onCheckpoint:new UOLPlayer.customEvents,onEnd:new UOLPlayer.customEvents,onPause:new UOLPlayer.customEvents,onPlaying:new UOLPlayer.customEvents,onReject:new UOLPlayer.customEvents,reload:new UOLPlayer.customEvents,toggleMute:new UOLPlayer.customEvents,volumeChange:new UOLPlayer.customEvents},this.currentSrc=\"\",this.autoplayRejected=!1,this.mute=function(){this.isMute=!0,this.mediaElement.muted=this.isMute},this.toggleMute=function(){this.isMute=!this.isMute,this.mediaElement.muted=this.isMute},this.play=function(){this.app.logger.startTime(\"mediaLoad\"),this.app.dfp||!this.app.autoplay||this.app.onDemandClicked?this.mediaElement.play():this.checkAutoplay()},this.checkAutoplay=function(e,t){this.app.isAutoplayOk=!1,this.autoplayRejected=!1;var a=function(){var i=this.mediaElement.play();return void 0!==i?(i.then(function(){this.app.logger.log(\"Play OK\"),this.app.isAutoplayOk=this.autoplayRejected===!1,e&&e()}.bind(this))[\"catch\"](function(e){this.app.isAutoplayOk?(this.app.logger.logError(\"Play rejeitado pela segunda vez, aguardando clique do usuário\"),this.app.isAutoplayOk=!1,this.app.isAutoplayMuted=!1,this.autoplayRejected=!0,t?t():this.events.onReject.dispatch(),this.mediaElement.pause()):(this.app.logger.logError(\"Play rejeitado, tentando iniciar mudo...\"),this.app.isAutoplayOk=!0,this.app.isAutoplayMuted=!0,this.app.startMute=!0,this.app.mute(),a())}.bind(this)),i):(this.app.isAutoplayOk=!0,this.app.isAutoplayMuted=!1,e&&e(),void 0)}.bind(this);a()},this.preloadContent=function(e){this.app.isAutoplayOk=!1,this.videoURL=this.mediaElement.src,UOLPlayer.isMobile||this.app.autoplay&&!this.app.onDemandClicked?this.checkAutoplay(e):e()},this.mediaElement&&(this.mediaElement.addEventListener(\"pause\",function(){this.events.onPause.dispatch()}.bind(this)),this.mediaElement.addEventListener(\"playing\",function(){this.events.onPlaying.dispatch()}.bind(this)),this.mediaElement.addEventListener(\"volumechange\",function(){this.mediaElement.muted||this.events.volumeChange.dispatch(this.mediaElement.volume)}.bind(this))),this.pause=function(){this.mediaElement.pause()},this.togglePause=function(){this.mediaElement.paused&&this.app.hasClass(\"_clicked\")&&!this.app.hasClass(\"_paused\")?this.mediaElement.play():this.mediaElement.pause()},this.isMobilePlatform=function(){return this.mediaElement.paused&&UOLPlayer.isMobile},this.setSrc=function(e,t){t=isNaN(t)?0:t,UOLPlayer.ElementErrorHandler.resolveFallbackURL(this.app,e,function(a){this.lastUrl=this.currentSrc=e=a,UOLPlayer.ElementErrorHandler.extractMediaHeaders(this.app,e),this.mediaElement.paused&&!this.app.autoplay?this.mediaElement.src=e:(this.mediaElement.pause(),this.mediaElement.src=e,this.play()),this.app.currentFile=e,this.seek(t),this.app.logger.log(e)}.bind(this))},this.setPreload=function(e){this.mediaElement.preload=e},this.bufferedTime=function(){return this.mediaElement.buffered.length>0?this.mediaElement.buffered.end(0):0},this.getCurrentTime=function(){return Math.floor(this.mediaElement.currentTime)},this.saveCurrentTime=function(){this.lastPauseTime=this.mediaElement.currentTime},this.getCurrentPerc=function(){return Math.floor(100*((this.getCurrentTime()+1)/this.mediaElement.duration))},this.getRemainingTime=function(){return Math.ceil(this.mediaElement.duration-this.getCurrentTime())},this.getDuration=function(){return Math.max(this.app.data.item.duration.seconds,this.mediaElement.duration||0)}.bind(this),\nthis.seek=function(){var e,t;return UOLPlayer.isSafari||UOLPlayer.isIE||UOLPlayer.isAndroidOld?(this.mediaNotLoadedTimeout=this.mediaNotLoadedTimeout||null,e=function(a){clearTimeout(this.mediaNotLoadedTimeout),this.mediaElement&&!this.mediaElement.error&&(isNaN(this.mediaElement.duration)?(null===this.mediaNotLoadedTimeout&&UOLPlayer.i(\"Trying to seek media before it loaded retrying...\"),this.mediaNotLoadedTimeout=setTimeout(e,0,a)):(clearInterval(t),t=setInterval(function(){this.lastCurrentTime=this.mediaElement.currentTime=Math.floor(a),clearInterval(t)}.bind(this),500),this.app.isPlaying()&&this.mediaElement.play(),this.mediaNotLoadedTimeout=null))}.bind(this)):e=function(e){this.lastCurrentTime=this.mediaElement.currentTime=Math.floor(e),this.app.isPlaying()&&this.mediaElement.play()},e}.bind(this)(),this.forward=function(e){this.seek(this.mediaElement.currentTime+(e||5))}.bind(this),this.rewind=function(e){this.seek(this.mediaElement.currentTime-(e||5))}.bind(this),this.volume=function(e){return e=e===!1?1:e,void 0===e?this.mediaElement.volume:(e=Math.min(1,Math.max(0,e)),e>0&&UOLPlayer.setCookie(\"lplr_vlm\",e,365),this.mediaElement.volume=e,void 0)},this.volumeUp=function(){this.volume(this.mediaElement.volume+.1)}.bind(this),this.volumeDown=function(){this.volume(this.mediaElement.volume-.1)}.bind(this),this.registerEventListener=function(e,t){if(this.events[e])this.events[e].add(t);else switch(e){case\"fullscreenchange\":UOLPlayer.each([\"webkitfullscreenchange\",\"mozfullscreenchange\",\"fullscreenchange\",\"MSFullscreenChange\"],function(e){document.addEventListener(e,t,!1)}.bind(this));break;default:this.mediaElement.addEventListener(e,t,!1)}},this.removeEventListener=function(e,t){if(this.events[e])this.events[e].remove(t);else switch(e){case\"fullscreenchange\":[\"webkitfullscreenchange\",\"mozfullscreenchange\",\"fullscreenChange\"].each(function(e){document.removeEventListener(e,t,!1)});break;default:this.mediaElement.removeEventListener(e,t,!1)}},this.playbackRate=function(e){e=+e,clearTimeout(this.mediaNotLoadedPlaybackRateTimeout),isNaN(this.mediaElement.duration)?this.mediaNotLoadedTimeout=setTimeout(this.playbackRate.bind(this),100,e):(this.mediaElement.playbackRate=e,UOLPlayer.setCookie(\"lplr_pbr\",e,1))},this.mediaElement&&this.mediaElement.addEventListener(\"ratechange\",function(){this.events.onChangedPlaybackRate.dispatch(100*this.mediaElement.playbackRate)}.bind(this)),this.app.backbone.mediaelement.mounted(this.mediaElement),UOLPlayer.getCookie(\"lplr_vlm\")!==!1&&0!==UOLPlayer.getCookie(\"lplr_vlm\")&&this.volume(UOLPlayer.getCookie(\"lplr_vlm\")),UOLPlayer.getCookie(\"lplr_pbr\")!==!1&&0!==UOLPlayer.getCookie(\"lplr_pbr\")&&this.playbackRate(UOLPlayer.getCookie(\"lplr_pbr\"));try{if(UOLPlayer.getURL().indexOf(\"simulateBug=mediaplayer\")>-1){var e;setTimeout(function(){a+b},null!==(e=UOLPlayer.getURL().match(/simulateBugTime=(\\d+)/))?parseInt(e.pop()):7e3)}}catch(t){}},UOLPlayer.AudioPlayer=function(e,t){e.currentFormat=UOLPlayer.currentFormatLog(e,e.mediaId,\"AUDIO\");this.app=e,this.wrapper=t,this.mediaElement=this.wrapper.getElementsByClassName(\"audio-element\")[0],this.currentTime=0,this.audioUrl=e.data.item.audioUrl,e.data.formats?(e.data.formats.alternatives=UOLPlayer.sortRandom(e.data.formats.alternatives||[]),e.externalCDN=e.data.formats.externalCDN):e.externalCDN=!1,this.app.startMute=!1,this.wrapper.addClass(\"_audio\").removeClass(\"_video\"),UOLPlayer.MediaElement.call(this);try{this.wrapper.getElementsByClassName(\"up-for-ad\")[0].remove(),this.wrapper.getElementsByClassName(\"video-element\")[0].remove(),this.wrapper.getElementsByClassName(\"up-toolbar\")[0].remove()}catch(a){UOLPlayer.i(a.message)}this.setAudio=function(){var t;if(e.data.formats){var a=e.data.formats.alternatives;a.length>0?t=UOLPlayer.mediaSourceURL(a.shift(),e.data.item.revision,e.hashId):void 0!==this.audioUrl?(t=UOLPlayer.mediaSourceURL(this.audioUrl,e.data.item.revision,e.hashId),this.audioUrl=void 0):t=UOLPlayer.mediaSourceFallbackURL(e.data.item.mediaId,e.data.item.revision,\"mp3\",e.hashId);var i=t.indexOf(\"?\")===-1?\"?\":\"&\";t+=i+\"token=\"+encodeURI(e.data.formats.token)+\"&sign=\"+encodeURI(e.data.formats.sign)}else t=UOLPlayer.mediaSourceURL(this.audioUrl,e.data.item.revision,e.hashId);this.setSrc(t)}.bind(this),this.reloadContent=function(){this.app.logger.log(\"reloadContent\"),this.setAudio(),this.mediaElement.load(),this.app.hasClass(\"_clicked\")&&this.play()}},UOLPlayer.DASH=function(e,t){e.currentFormat=UOLPlayer.currentFormatLog(e,e.mediaId,\"DASH\");var a={},r={},s={},o=this;this.app=e,this.app.externalCDN=e.data.formats.available.DASH.externalCDN,this.wrapper=t,this.mediaElement=this.wrapper.getElementsByClassName(\"video-element\")[0],this.adContainer=this.wrapper.getElementsByClassName(\"ad-container\")[0],this.currentMedia=null,this.attached=!1,this.lastUrl=\"\",e.forceCDN!==!1&&void 0!==e.forceCDN?this.mpd=e.data.formats.available.DASH.alternatives[0]:e.data.formats.available.DASH.url.indexOf(\"video.m.mais.uol.com.br\")===-1?this.mpd=UOLPlayer.sortRandom(e.data.formats.available.DASH.alternatives.concat(e.data.formats.available.DASH.url))[0]:this.mpd=\"//video.m.mais.uol.com.br/\"+e.mediaId+\"-12.mpd\",this.mpd=UOLPlayer.mediaSourceURL(this.mpd,e.data.item.revision,e.hashId),this.minimumQualityVisible=void 0!==e.data.item.playerParameters.dash_minimum_quality_visible?parseInt(e.data.item.playerParameters.dash_minimum_quality_visible):0,this.wrapper.addClass(\"_video\").removeClass(\"_audio\"),this.app.logger.logDASH(this.mpd),this.waitNextLevelInterval=null,UOLPlayer.MediaElement.call(this),this.events.ready=new UOLPlayer.customEvents,this.events.qualityChanged=new UOLPlayer.customEvents,this.wrapper.getElementsByClassName(\"audio-element\")[0]&&this.wrapper.getElementsByClassName(\"audio-element\")[0].remove();var n=null,l=null;o.currentServer=0;var d=function(t,a){var i=UOLPlayer.getStaticParameter(a);i.token&&i.sign||!e.data.formats.available.DASH.token||!e.data.formats.available.DASH.sign||(a+=\"?token=\"+encodeURI(e.data.formats.available.DASH.token)+\"&sign=\"+encodeURI(e.data.formats.available.DASH.sign)+e.key),UOLPlayer.ElementErrorHandler.resolveFallbackURL(e,a,function(i){if(!t)return UOLPlayer.e(\"XHR already destroy\");o.lastUrl=a=i,l=t,t.chrono=new UOLPlayer.Chronometer(\"URL: \"+a),t.chrono.start();var r=function(i){if(t.readyState>=t.HEADERS_RECEIVED&&!t.dns&&(t.dns=!0,UOLPlayer.Profiler.trackDNS(o.lastUrl.extractDomain(),t.chrono.getCurrentTime().elapsedTime.time)),t.readyState>=t.LOADING&&!t.elapsedTime){var r=UOLPlayer.ElementErrorHandler.extractServerFromUrl(a);t.elapsedTime=t.chrono.stop().elapsedTime,UOLPlayer.Profiler.trackServer(r,t.elapsedTime.time,t.status)}if(t.readyState==t.DONE)try{var s=t.getAllResponseHeaders().toString(),n=s.match(/content-length:\\s*(\\d+)/).pop(),l=t.chrono.stop().elapsedTime,r=UOLPlayer.ElementErrorHandler.extractServerFromUrl(a);if(s&&n){n=parseFloat(n),e.statistic.time+=l.time,e.statistic.size+=n,e.statistic.amountTime+=l.time,e.statistic.amountSize+=n,e.statistic.requests?e.statistic.requests.push({url:a,size:n,time:l.time}):e.statistic.requests=[{url:a,size:n,time:l.time}];var d=e.statistic.time>0?1e3*e.statistic.size/e.statistic.time:0,p=e.statistic.amountTime>0?1e3*e.statistic.amountSize/e.statistic.amountTime:0;e.statistic.data={groupingMap:{server:r,log:\"download\",dna:UOLPlayer.DNA()},measureMap:{size:e.statistic.size,sizeMB:e.statistic.size/1024/1024,time:e.statistic.time,velocity:d,amountedVelocity:p,amountedVelocityKB:p/1024}}}}catch(u){}},s=function(a){413===t.status&&(n.destroy(),e.setError(UOLPlayer.ElementErrorHandler.errorCodes.PAYLOAD_TOO_LARGE))},d=function(e){s(\"payload error: XHR Complete\")},p=function(e){s(\"payload error: XHR Error\")};t.addEventListener(\"readystatechange\",r,!1),t.addEventListener(\"load\",d,!1),t.addEventListener(\"error\",p,!1);var u=t.open.bind(t);t.open=function(a,r,s){var o=UOLPlayer.getStaticParameter(i);r=i,r=r.replace(/[\\/]\\d+/,\"/\"+e.mediaId).split(\"?\").shift(),o.token&&o.sign&&(r+=\"?token=\"+o.token+\"&sign=\"+o.sign+e.key),r=UOLPlayer.mediaSourceURL(r,e.data.item.revision,e.hashId),r=\"https:\"+r,u(a,r,s),t.withCredentials=!0}.bind(t)}.bind(this))},p=function(t){function a(t){var a=new Date,i=t.request,r=UOLPlayer.getStaticParameter(t.url);r.token&&r.sign||!e.data.formats.available.DASH.token||!e.data.formats.available.DASH.sign||(t.url+=\"?token=\"+encodeURI(e.data.formats.available.DASH.token)+\"&sign=\"+encodeURI(e.data.formats.available.DASH.sign)+e.key);var o=new XMLHttpRequest,n=t.url.match(/https:\\/\\/|http:\\/\\//);if(n&&0===n.index)var l=t.url.replace(/^http:/,\"https:\");else var l=\"https:\"+t.url;o.open(t.method,l,!0),i.responseType&&(o.responseType=i.responseType),i.range&&o.setRequestHeader(\"Range\",\"bytes=\"+i.range),i.requestStartDate||(i.requestStartDate=a),s&&(o=s.modifyRequestHeader(o)),o.withCredentials=t.withCredentials,o.onload=t.onload,o.onloadend=t.onend,o.onerror=t.onerror,o.onprogress=t.progress,o.onabort=t.onabort,d(o,t.url),o.send(),t.response=o}function i(e){var t=e.response;t.onloadend=t.onerror=t.onprogress=void 0,t.abort()}t=t||{};var r,s=t.requestModifier;return r={load:a,abort:i}};if(this.xhrMockeyPatch=d,this.xhrMockeyDash=p,this.mediaLoad=function(){e.logger.send(\"mediaLoad\",{time:e.logger.stopTime(\"mediaLoad\")}),this.mediaElement.removeEventListener(\"playing\",this.mediaLoadEvent,!1)},this.mediaLoadEvent=this.mediaLoad.bind(this),this.registerEventListener(\"playing\",this.mediaLoadEvent),this.trackRequest=function(){if(l&&4===l.readyState){var e=UOLPlayer.ElementErrorHandler.extractServerFromUrl(this.lastUrl),t=UOLPlayer.ElementErrorHandler.parseHeaders(l);UOLPlayer.ElementErrorHandler.logHeaders(this.app,e,l.status,t),this.app.tracker.pushState(\"dashLastRequest\",this.lastUrl.split(\"?\").shift().split(\"/\").pop()),this.app.tracker.pushState(\"dashCORS\",l.status>0)}}.bind(this),this.changeQuality=function(t){console.log(\"changeQuality dash\");var i=a[t],s=i.index===-1,o=e.startTime+this.getCurrentTime(),l=r[n.getQualityFor(\"video\")];e.qualityChanged=!0,e.startTime=o,e.data.formats.current=a[t],i.index===-1?this.setAutoLevel(\"video\",!0):n.getQualityFor(\"video\")!==i.index&&(this.setAutoLevel(\"video\",!1),this.dashSwitchTimeout.abort(),n.setQualityFor(\"video\",i.index)),i.index===l||s?this.events.onChangedQuality.dispatch({format:i.type,auto:s}):this.events.onChangingQuality.dispatch({format:t,auto:s})}.bind(this),this.currentQuality=function(t){format=a[t];var i=e.startTime+this.getCurrentTime();e.qualityChanged=!0,e.startTime=i,e.data.formats.current=format,currFormat=\"auto\"===t?\"\":t,format.index>=0&&n.setInitialBitrateFor(\"video\",format.index),this.events.onChangingQuality.dispatch({format:currFormat,auto:n.autoLevelEnabled})}.bind(this),this.setSrc=function(e){this.app.currentFile=e,this.dash.initialize(this.mediaElement,e,!1)}.bind(this),this.setDefault=function(){this.changeQuality(\"auto\")},this.setInitialQuality=function(){if(console.log(\"setInitialQuality DASH\"),e.data.formats.DASH){var t=UOLPlayer.isMobile&&void 0!=e.data.item.playerParameters.dash_start_quality_mobile&&void 0!=s[e.data.item.playerParameters.dash_start_quality_mobile]&&e.data.item.playerParameters.dash_start_quality_mobile,i=void 0!=e.data.item.playerParameters.dash_start_quality_desktop&&void 0!=s[e.data.item.playerParameters.dash_start_quality_desktop]&&e.data.item.playerParameters.dash_start_quality_desktop;a[e.startHd]?this.currentQuality(e.startHd):t!==!1?this.currentQuality(t):i!==!1?this.currentQuality(i):(e.startHd!==!1&&UOLPlayer.w(\"Formato \"+e.startHd+\" indisponível\"),this.setDefault())}}.bind(this),this.fallback=function(){return this.app.data.formats.retry[0]?(this.sendError(),this.app.dashEnabled=!1,this.app.data.formats[\"default\"]=this.app.data.formats.retry[0],this.app.mediaPlayer=new UOLPlayer.VideoPlayer(this.app,this.app.wrapper)):void this.app.setError(UOLPlayer.ElementErrorHandler.errorCodes.VIDEO_SOURCE_WITHOUT_FALLBACK)}.bind(this),this.reloadContent=function(){this.app.logger.logDASH(\"ReloadContent\"),UOLPlayer.isMobile&&this.attachMedia(),this.play()},this.removePreloadListener=function(){this.app.logger.logDASH(\"removePreloadListener - \"+this.preloadListener),this.preloadListener&&(this.mediaElement.removeEventListener(\"loadedmetadata\",this.preloadListener,!1),this.preloadListener=null)},this.sendError=function(e,t){var a=UOLPlayer.ElementErrorHandler.errorCodes.DASH_UNKNOWN_ERROR;if(\"undefined\"==typeof dashjs?(UOLPlayer.l(\"dashjs is undefined\"),a=UOLPlayer.ElementErrorHandler.errorCodes.DASH_UNDEFINED_ON_INITIALIZE):e===dashjs.MediaPlayer.errors.DOWNLOAD_ERROR_ID_CONTENT_CODE?a=UOLPlayer.ElementErrorHandler.errorCodes.DASH_NETWORK_UNSTABLE:e===dashjs.MediaPlayer.errors.CAPABILITY_MEDIASOURCE_ERROR_CODE&&(a=UOLPlayer.ElementErrorHandler.errorCodes.DASH_MEDIA_ERROR),\"number\"==typeof e&&UOLPlayer.ElementErrorHandler.errorTypes[parseInt(\"5\"+e)]){var i=UOLPlayer.ElementErrorHandler.errorTypes[parseInt(\"5\"+e)].error;a=UOLPlayer.ElementErrorHandler.errorCodes[i]}a?UOLPlayerLog.send(this.app,\"error\",UOLPlayer.ElementErrorHandler.logMessage(a)):UOLPlayer.l(\"DASH - Undefined error\")},this.destroy=function(e){this.app.onVideoError({error:e})}.bind(this),this.onDASHError=function(e){this.lastError=Array.prototype.slice.call(arguments),e.error&&e.error.code&&this.sendError(e.error.code),this.destroy()}.bind(this),this.setAutoLevel=function(e,t){this.dash.setAutoSwitchQualityFor(e,t),this.dash.autoLevelEnabled=t},\"undefined\"==typeof dashjs)return this.fallback();n=this.dash=dashjs.MediaPlayer().create(),n.currentLevel=-1,n.on(dashjs.MediaPlayer.events.MANIFEST_LOADED,function(t){data=t.data,data.levels=data.Period.AdaptationSet[0].Representation_asArray,this.trackRequest(),this.app.logger.logDASH(\"Manifest Parsed - \"+t);var o,n,l,d=data.levels.length-1;for(i=0;i<=d;i++)o=d-i,n=data.levels[o],l=n.height+\"p\",n.height>this.minimumQualityVisible&&(a[l]={type:l,index:o}),s[l]={type:l,index:o};s.auto=a.auto={type:\"auto\",index:-1},e.data.formats.DASH=a,this.setInitialQuality();for(f in a)r[a[f].index]=a[f].type;this.events.ready.dispatch()}.bind(this)),n.on(dashjs.MediaPlayer.events.QUALITY_CHANGE_REQUESTED,function(e,t){if(\"video\"===e.mediaType){var a=e.newQuality,i=n.getBitrateInfoListFor(\"video\");i[a].height+\"p\";this.trackRequest()}}.bind(this)),n.on(dashjs.MediaPlayer.events.QUALITY_CHANGE_RENDERED,function(e,t){if(\"video\"===e.mediaType){var a=e.newQuality,i=n.getBitrateInfoListFor(\"video\"),r=(i[a],i[a].height+\"p\");i.sort(function(e,t){return e.bitrate<t.bitrate?-1:e.bitrate>t.bitrate?1:0});for(var s=0;s<i.length;s++)i[s].id=s;n.currentLevel=a,this.trackRequest(),this.app.tracker.pushState(\"dashLevel\",r),this.app.addLevelList(r),this.app.logger.logDASH(\"Qualidade: \"+r),this.events.onChangedQuality.dispatch({format:r,auto:n.autoLevelEnabled})}}.bind(this)),n.on(dashjs.MediaPlayer.events.ERROR,this.onDASHError);var u=function(){n.nextLevel=-1,this.removeEventListener(\"progress\",u,!1)}.bind(this);this.registerEventListener(\"progress\",u)},UOLPlayer.DASH.isSupported=function(){return window.MediaSource=window.MediaSource||window.WebKitMediaSource,!UOLPlayer.isChromeOld&&void 0!==window.MediaSource&&\"function\"==typeof window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/webm; codecs=\"vp9\"')},UOLPlayer.DASH.prototype.attachMedia=function(){this.app.initTimeouts(),this.dashSwitchTimeout=this.app.timeouts[this.app.timeouts.type.DASH_SWITCH_LEVEL],this.setInitialQuality(),this.attached=!0,this.dash&&(a=this.dash,this.dash.extend(\"XHRLoader\",this.xhrMockeyDash,!0),this.setSrc(this.mpd),UOLPlayer.urlParameter.initialQuality&&this.changeQuality(UOLPlayer.urlParameter.initialQuality),UOLPlayer.urlParameter.bufferPruningInterval&&this.dash.setBufferPruningInterval(UOLPlayer.urlParameter.bufferPruningInterval),UOLPlayer.urlParameter.bufferAheadToKeep&&this.dash.setBufferAheadToKeep(UOLPlayer.urlParameter.bufferAheadToKeep),UOLPlayer.urlParameter.bufferToKeep&&this.dash.setBufferToKeep(UOLPlayer.urlParameter.bufferToKeep),UOLPlayer.urlParameter.cacheLoadThresholdForType&&this.dash.setCacheLoadThresholdForType(\"video\",UOLPlayer.urlParameter.cacheLoadThresholdForType),UOLPlayer.urlParameter.ABRStrategy&&this.dash.setABRStrategy(UOLPlayer.urlParameter.ABRStrategy)),this.app.startTime&&this.seek(this.app.startTime)},UOLPlayer.DASH.prototype.detachMedia=function(){this.attached=!1,this.dash.detachMedia()},UOLPlayer.DASH.prototype.formatsReloaded=function(){this.currentServer=0,this.app.externalCDN=this.app.data.formats.available.DASH.externalCDN,this.app.forceCDN!==!1&&void 0!==this.app.forceCDN?this.mpd=this.app.data.formats.available.DASH.alternatives[0]:this.app.data.formats.available.DASH.url.indexOf(\"video.m.mais.uol.com.br\")===-1?this.mpd=UOLPlayer.sortRandom(this.app.data.formats.available.DASH.alternatives.concat(this.app.data.formats.available.DASH.url))[0]:this.mpd=\"//video.m.mais.uol.com.br/\"+this.app.mediaId+\"-12.mpd\",this.mpd=UOLPlayer.mediaSourceURL(this.mpd,this.app.data.item.revision,this.app.hashId),this.onDASHError.apply(this,this.lastError)},UOLPlayer.HLS=function(e,t){e.currentFormat=UOLPlayer.currentFormatLog(e,e.mediaId,\"HLS\");var a={},r={},s={},o=this;this.app=e,this.app.externalCDN=e.data.formats.available.HLS.externalCDN,this.wrapper=t,this.mediaElement=this.wrapper.getElementsByClassName(\"video-element\")[0],this.adContainer=this.wrapper.getElementsByClassName(\"ad-container\")[0],this.currentMedia=null,this.attached=!1,this.lastUrl=\"\",e.forceCDN!==!1&&void 0!==e.forceCDN?this.m3u8=e.data.formats.available.HLS.alternatives[0]:e.data.formats.available.HLS.url.indexOf(\"video.m.mais.uol.com.br\")===-1?this.m3u8=UOLPlayer.sortRandom(e.data.formats.available.HLS.alternatives.concat(e.data.formats.available.HLS.url))[0]:this.m3u8=\"//video.m.mais.uol.com.br/\"+e.mediaId+\"-10.m3u8\",this.m3u8=UOLPlayer.mediaSourceURL(this.m3u8,e.data.item.revision,e.hashId),this.minimumQualityVisible=void 0!==e.data.item.playerParameters.hls_minimum_quality_visible?parseInt(e.data.item.playerParameters.hls_minimum_quality_visible):300,this.wrapper.addClass(\"_video\").removeClass(\"_audio\"),this.app.logger.logHLS(this.m3u8),this.waitNextLevelInterval=null,UOLPlayer.MediaElement.call(this),this.events.ready=new UOLPlayer.customEvents,this.events.qualityChanged=new UOLPlayer.customEvents,this.wrapper.getElementsByClassName(\"audio-element\")[0]&&this.wrapper.getElementsByClassName(\"audio-element\")[0].remove();var n=null,l=null;o.currentServer=0;var d=function(){var t=e.data.formats.available.HLS;return!!(t&&t.alternatives&&t.alternatives.length>=o.currentServer+1)},p=function(t){var a=\"video.m.mais.uol.com.br\";return e.data.formats.available.HLS.alternatives.length>o.currentServer&&(a=e.data.formats.available.HLS.alternatives[o.currentServer].extractDomain()),t.replace(/^(https?:)?(\\/\\/)?(.+?)\\//im,\"//\"+a+\"/\")},u=function(){return UOLPlayer.isVideoM(o.lastUrl)||null!==o.lastUrl.match(new RegExp(e.mediaId+\".mp4\"))},h=function(t,a){var i=UOLPlayer.getStaticParameter(a);i.token&&i.sign||!e.data.formats.available.HLS.token||!e.data.formats.available.HLS.sign||(a+=\"?token=\"+encodeURI(e.data.formats.available.HLS.token)+\"&sign=\"+encodeURI(e.data.formats.available.HLS.sign)+e.key),UOLPlayer.ElementErrorHandler.resolveFallbackURL(e,a,function(i){if(!t)return UOLPlayer.e(\"XHR already destroy\");o.lastUrl=a=i,l=t,t.chrono=new UOLPlayer.Chronometer(\"URL: \"+a),t.chrono.start();var r=function(i){if(t.readyState>=t.HEADERS_RECEIVED&&!t.dns&&(t.dns=!0,UOLPlayer.Profiler.trackDNS(o.lastUrl.extractDomain(),t.chrono.getCurrentTime().elapsedTime.time)),t.readyState>=t.LOADING&&!t.elapsedTime){var r=UOLPlayer.ElementErrorHandler.extractServerFromUrl(a);t.elapsedTime=t.chrono.stop().elapsedTime,UOLPlayer.Profiler.trackServer(r,t.elapsedTime.time,t.status)}if(t.readyState==t.DONE)try{var s=t.getAllResponseHeaders().toString(),n=s.match(/content-length:\\s*(\\d+)/).pop(),l=t.chrono.stop().elapsedTime,r=UOLPlayer.ElementErrorHandler.extractServerFromUrl(a);if(s&&n){n=parseFloat(n),e.statistic.time+=l.time,e.statistic.size+=n,e.statistic.amountTime+=l.time,e.statistic.amountSize+=n,e.statistic.requests?e.statistic.requests.push({url:a,size:n,time:l.time}):e.statistic.requests=[{url:a,size:n,time:l.time}];var d=e.statistic.time>0?1e3*e.statistic.size/e.statistic.time:0,p=e.statistic.amountTime>0?1e3*e.statistic.amountSize/e.statistic.amountTime:0;e.statistic.data={groupingMap:{server:r,log:\"download\",dna:UOLPlayer.DNA()},measureMap:{size:e.statistic.size,sizeMB:e.statistic.size/1024/1024,time:e.statistic.time,velocity:d,amountedVelocity:p,amountedVelocityKB:p/1024}}}}catch(u){}},s=function(a){413===t.status&&(n.destroy(),e.setError(UOLPlayer.ElementErrorHandler.errorCodes.PAYLOAD_TOO_LARGE))},d=function(e){s(\"payload error: XHR Complete\")},p=function(e){s(\"payload error: XHR Error\")};t.addEventListener(\"readystatechange\",r,!1),t.addEventListener(\"load\",d,!1),t.addEventListener(\"error\",p,!1);var u=t.open.bind(t);t.open=function(a,r,s){var o=UOLPlayer.getStaticParameter(i);r=i,r=r.replace(/[\\/]\\d+/,\"/\"+e.mediaId).split(\"?\").shift(),o.token&&o.sign&&(r+=\"?token=\"+o.token+\"&sign=\"+o.sign+e.key),r=UOLPlayer.mediaSourceURL(r,e.data.item.revision,e.hashId),r=\"https:\"+r,u(a,r,s),t.withCredentials=!0}.bind(t)}.bind(this))};Hls.DefaultConfig.loader.abort=function(){l&&l.abort&&l.abort()};var m={maxBufferLength:UOLPlayer.urlParameter.hlsMaxBufferLength||e.data.item.playerParameters.hls_max_buffer_length,loader:Hls.DefaultConfig.loader,startPosition:e.startTime,xhrSetup:h,enableWorker:!UOLPlayer.isSafariMacOS,debug:UOLPlayer.toBoolean(UOLPlayer.urlParameter.debugHls)};if(this.mediaLoad=function(){e.logger.send(\"mediaLoad\",{time:e.logger.stopTime(\"mediaLoad\")}),this.mediaElement.removeEventListener(\"playing\",this.mediaLoadEvent,!1)},this.mediaLoadEvent=this.mediaLoad.bind(this),this.registerEventListener(\"playing\",this.mediaLoadEvent),this.trackRequest=function(){if(l&&4===l.readyState){var e=UOLPlayer.ElementErrorHandler.extractServerFromUrl(this.lastUrl),t=UOLPlayer.ElementErrorHandler.parseHeaders(l);UOLPlayer.ElementErrorHandler.logHeaders(this.app,e,l.status,t),this.app.tracker.pushState(\"hlsLastRequest\",this.lastUrl.split(\"?\").shift().split(\"/\").pop()),this.app.tracker.pushState(\"hlsCORS\",l.status>0)}}.bind(this),this.changeQuality=function(t){var i=a[t],s=i.index===-1,o=e.startTime+this.getCurrentTime(),l=r[n.currentLevel];e.qualityChanged=!0,e.startTime=o,e.data.formats.current=a[t],n.nextLevel!==i.index&&(this.hlsSwitchTimeout.abort(),e.isPlaying()?n.nextLevel=i.index:n.currentLevel=i.index),i.index===n.currentLevel||s?this.events.onChangedQuality.dispatch({format:l,auto:s}):this.events.onChangingQuality.dispatch({format:t,auto:s})}.bind(this),this.currentQuality=function(t){var a=s[t],i=e.startTime+this.getCurrentTime();currFormat=\"auto\"===t?\"\":t,e.qualityChanged=!0,e.startTime=i,e.data.formats.current=a,n.currentLevel!==a.index&&(n.currentLevel=a.index),a.index!==-1||UOLPlayer.isMobile||(n.startLevel=-1,n.nextLevel=-1),this.events.onChangingQuality.dispatch({format:currFormat,auto:n.autoLevelEnabled})}.bind(this),this.setSrc=function(e){this.app.currentFile=e,n.loadSource(e)}.bind(this),this.setDefault=function(){this.changeQuality(\"auto\")},this.setInitialQuality=function(){if(e.data.formats.HLS){var t=UOLPlayer.isMobile&&void 0!=e.data.item.playerParameters.hls_start_quality_mobile&&void 0!=s[e.data.item.playerParameters.hls_start_quality_mobile]&&e.data.item.playerParameters.hls_start_quality_mobile,i=void 0!=e.data.item.playerParameters.hls_start_quality_desktop&&void 0!=s[e.data.item.playerParameters.hls_start_quality_desktop]&&e.data.item.playerParameters.hls_start_quality_desktop;a[e.startHd]?this.currentQuality(e.startHd):t!==!1?this.currentQuality(t):i!==!1?this.currentQuality(i):(e.startHd!==!1&&UOLPlayer.w(\"Formato \"+e.startHd+\" indisponível\"),this.setDefault())}}.bind(this),this.reloadContent=function(){this.app.logger.logHLS(\"ReloadContent\"),UOLPlayer.isMobile&&this.attachMedia(),this.play()},this.removePreloadListener=function(){this.app.logger.logHLS(\"removePreloadListener - \"+this.preloadListener),this.preloadListener&&(this.mediaElement.removeEventListener(\"loadedmetadata\",this.preloadListener,!1),this.preloadListener=null)},this.fallback=function(){return this.app.data.formats.retry[0]?(this.sendError(),this.app.hlsEnabled=!1,this.app.data.formats[\"default\"]=this.app.data.formats.retry[0],this.app.mediaPlayer=new UOLPlayer.VideoPlayer(this.app,this.app.wrapper)):void this.app.setError(UOLPlayer.ElementErrorHandler.errorCodes.VIDEO_SOURCE_WITHOUT_FALLBACK)}.bind(this),this.sendError=function(e,t){var a=UOLPlayer.ElementErrorHandler.errorCodes.HLS_UNKNOWN_ERROR;\"undefined\"==typeof Hls?a=UOLPlayer.ElementErrorHandler.errorCodes.HLS_UNDEFINED_ON_INITIALIZE:e===Hls.ErrorTypes.NETWORK_ERROR?a=UOLPlayer.ElementErrorHandler.errorCodes.HLS_NETWORK_UNSTABLE:e===Hls.ErrorTypes.MEDIA_ERROR&&(a=UOLPlayer.ElementErrorHandler.errorCodes.HLS_MEDIA_ERROR),UOLPlayerLog.send(this.app,\"error\",UOLPlayer.ElementErrorHandler.logMessage(a))},this.destroy=function(e){this.app.onVideoError({error:e})},this.onHLSError=function(t,a){if(this.lastError=Array.prototype.slice.call(arguments),a&&a.fatal)if(this.trackRequest(),this.app.tracker.pushState(\"hlsFatalError\",[t,a.type,a.details].join(\" - \")),this.app.logger.logError('HLS Fatal Error \"'+t+'\" of type \"'+a.type+'\" with details \"'+a.details+'\"'),!d()||u())this.destroy(a.type);else if(a.type===Hls.ErrorTypes.NETWORK_ERROR){this.app.retryAttempts=this.app.retryAttempts||0,this.app.retryAttempts++,this.previousM3u8=e.data.formats.available.HLS.alternatives[o.currentServer],a.details.indexOf(\"manifest\")>-1?(o.currentServer+=1,UOLPlayer.ElementErrorHandler.resolveFallbackURL(e,p(this.m3u8),function(e){this.m3u8=e,this.app.logger.logHLS(\"ReloadSource: \"+this.m3u8),UOLPlayer.l(\"ReloadSource: \"+this.m3u8),this.setSrc(this.m3u8)}.bind(this))):(o.currentServer+=1,this.app.logger.logHLS(\"Start loadSource: \"+this.m3u8),UOLPlayer.l(\"Start loadSource: \"+this.m3u8),n.startLoad()),this.currentM3u8=d()?e.data.formats.available.HLS.alternatives[o.currentServer]:this.m3u8.replace(/^(https?:)?(\\/\\/)?(.+?)\\//im,\"video.m.mais.uol.com.br/\").split(\"?\")[0],this.app.retryCounts++;var i={retryPreviousFormat:\"hls\",retryPreviousServer:this.previousM3u8,retryCurrentFormat:\"hls\",retryCurrentServer:this.currentM3u8,retryAttempt:this.app.retryAttempts,retryCount:this.app.retryCounts};this.app.logger.send(\"retry\",{payload:i}),this.app.logger.log(\"retry count: \"+this.app.retryCounts)}else a.type===Hls.ErrorTypes.MEDIA_ERROR?UOLPlayer.ElementErrorHandler.resolveFallbackURL(e,p(this.lastUrl),function(e){this.currentTime=this.mediaElement.currentTime,n.swapAudioCodec(),n.recoverMediaError(),this.mediaErrorRecovery=!0}.bind(this)):this.destroy(a.type);else void 0!==a&&this.app.logger.logHLS('Error event: \"'+t+'\" type:\"'+a.type+'\" details: \"'+a.details+'\" fatal: \"'+a.fatal+'\"')}.bind(this),\"undefined\"==typeof Hls)return console.log(\"Hls is undefined\"),this.fallback();n=this.hls=new Hls(m),n.on(Hls.Events.MEDIA_ATTACHED,function(){this.app.logger.logHLS(\"Hls attached on video tag\"),this.mediaErrorRecovery&&e.playing&&(this.mediaElement.currentTime=this.currentTime,this.mediaElement.play())}.bind(this)),n.on(Hls.Events.ERROR,this.onHLSError),n.on(Hls.Events.MANIFEST_PARSED,function(t,o){this.trackRequest(),this.app.logger.logHLS(\"Manifest Parsed - \"+t);var n,l,d,p=o.levels.length-1;for(i=0;i<=p;i++)n=p-i,l=o.levels[n],d=l.name,l.height>this.minimumQualityVisible&&(a[d]={type:d,index:n}),s[d]={type:d,index:n};s.auto=a.auto={type:\"auto\",index:-1},e.data.formats.HLS=a,this.setInitialQuality();for(f in a)r[a[f].index]=a[f].type;this.events.ready.dispatch()}.bind(this)),n.on(Hls.Events.LEVEL_SWITCHING,function(e,t){this.trackRequest()}.bind(this)),n.on(Hls.Events.LEVEL_SWITCHED,function(e,t){this.trackRequest();var a=n.levels[t.level].name;this.app.tracker.pushState(\"hlsLevel\",a),this.app.addLevelList(a),this.app.logger.logHLS(\"Qualidade: \"+a),this.events.onChangedQuality.dispatch({format:a,auto:n.autoLevelEnabled})}.bind(this)),UOLPlayer.ElementErrorHandler.resolveFallbackURL(e,this.m3u8,function(e,t,a){this.m3u8=e,this.setSrc(this.m3u8)}.bind(this));var c=function(){n.nextLevel=-1,this.removeEventListener(\"progress\",c,!1)}.bind(this);this.registerEventListener(\"progress\",c)},UOLPlayer.HLS.isSupported=function(){return window.MediaSource=window.MediaSource||window.WebKitMediaSource,!UOLPlayer.isChromeOld&&void 0!==window.MediaSource&&\"function\"==typeof window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs=\"avc1.42E01E,mp4a.40.2\"')},UOLPlayer.HLS.checkAllowedDomain=function(e){var t=new RegExp(\"^(\"+e+\")$\");return t.test(UOLPlayer.hostName)},UOLPlayer.HLS.prototype.attachMedia=function(){this.app.initTimeouts(),this.hlsSwitchTimeout=this.app.timeouts[this.app.timeouts.type.HLS_SWITCH_LEVEL],this.setInitialQuality(),this.attached=!0,this.hls&&this.hls.attachMedia(this.mediaElement)},UOLPlayer.HLS.prototype.detachMedia=function(){this.attached=!1,this.hls.detachMedia()},UOLPlayer.HLS.prototype.formatsReloaded=function(){this.currentServer=0,this.app.externalCDN=this.app.data.formats.available.HLS.externalCDN,this.app.forceCDN!==!1&&void 0!==this.app.forceCDN?this.m3u8=this.app.data.formats.available.HLS.alternatives[0]:this.app.data.formats.available.HLS.url.indexOf(\"video.m.mais.uol.com.br\")===-1?this.m3u8=UOLPlayer.sortRandom(this.app.data.formats.available.HLS.alternatives.concat(this.app.data.formats.available.HLS.url))[0]:this.m3u8=\"//video.m.mais.uol.com.br/\"+this.app.mediaId+\"-10.m3u8\",this.m3u8=UOLPlayer.mediaSourceURL(this.m3u8,this.app.data.item.revision,this.app.hashId),this.onHLSError.apply(this,this.lastError)},UOLPlayer.VideoPlayer=function(e,t){\"HLS\"===e.data.formats[\"default\"].type?(e.currentFormat=UOLPlayer.currentFormatLog(e,e.mediaId,\"NATIVE HLS\"),e.hlsNative=!0,this.mediaType=\"hls\"):\"WEBM\"===e.data.formats[\"default\"].type?(e.currentFormat=UOLPlayer.currentFormatLog(e,e.mediaId,\"WEBM\"),this.mediaType=\"webm\"):(e.currentFormat=UOLPlayer.currentFormatLog(e,e.mediaId,\"MP4\"),this.mediaType=\"mp4\"),this.app=e,this.wrapper=t,this.mediaElement=this.wrapper.getElementsByClassName(\"video-element\")[0],this.adContainer=this.wrapper.getElementsByClassName(\"ad-container\")[0],this.lastUrl=\"\",this.wrapper.addClass(\"_video\").removeClass(\"_audio\"),UOLPlayer.MediaElement.call(this),this.mediaLoad=function(){e.logger.send(\"mediaLoad\",{time:e.logger.stopTime(\"mediaLoad\")}),this.mediaElement.removeEventListener(\"playing\",this.mediaLoadEvent,!1)},this.mediaLoadEvent=this.mediaLoad.bind(this),this.reloadCallback_=this.reloadCallback.bind(this),this.registerEventListener(\"playing\",this.mediaLoadEvent),this.changeQuality=function(t){console.log(\"changeQuality mp4\"),e.data.formats.available[t].alternatives=UOLPlayer.sortRandom(e.data.formats.available[t].alternatives);var a,i,r=e.data.formats.available[t],s=e.data.formats.available[t].alternatives,o=e.startTime+this.getCurrentTime();a=s.length>0?s.shift():r.url,i=UOLPlayer.mediaSourceURL(a,e.data.item.revision,e.hashId),e.externalCDN=r.externalCDN,e.qualityChanged=!0,e.data.formats.current=r,this.lastCurrentTime=this.lastCurrentTime||o;!this.mediaElement.paused;this.setSrc(i,Math.max(o,this.lastCurrentTime)),this.events.onChangingQuality.dispatch(t)}.bind(this),this.setDefault=function(){this.changeQuality(e.data.formats[\"default\"].type)}.bind(this),this.setInitialQuality=function(){console.log(\"setInitialQuality MP4\"),e.data.formats.available[e.startHd]?this.changeQuality(e.startHd):(0!=e.startHd&&UOLPlayer.w(\"Formato \"+e.startHd+\" indisponível\"),this.setDefault())}.bind(this)},UOLPlayer.VideoPlayer.prototype.attachMedia=function(){this.setDefault()},UOLPlayer.VideoPlayer.prototype.removePreloadListener=function(){this.preloadListener&&(this.mediaElement.removeEventListener(\"loadedmetadata\",this.preloadListener,!1),this.preloadListener=null)},UOLPlayer.VideoPlayer.prototype.reloadContent=function(e){this.app.logger.log(\"reloadContent: \"+e),\ne=e||this.lastCurrentTime,this.app.data.formats.current=this.app.data.formats[\"default\"],this.setSrc(this.videoURL,e),this.mediaElement.removeEventListener(\"loadedmetadata\",this.reloadCallback_),this.mediaElement.addEventListener(\"loadedmetadata\",this.reloadCallback_)},UOLPlayer.VideoPlayer.prototype.reloadCallback=function(){function e(e){e.app.hasClass(\"_clicked\")?e.play():e.app.ui&&e.app.ui.setState(\"stop\"),e.events.reload.dispatch()}this.app.logger.log(\"reloadCallback\"),e(this)},UOLPlayer.VideoPlayer.prototype.resize=function(e,t,a,i,r){return e===!1?(this.wrapper&&this.wrapper.setAttribute(\"style\",\"\"),void(this.mediaElement&&this.mediaElement.setAttribute(\"style\",\"\"))):(this.wrapper.style.position=e,this.wrapper.style.top=t,this.wrapper.style.left=a,this.wrapper.style.width=i+\"px\",this.wrapper.style.height=r+\"px\",this.mediaElement.style.width=i+\"px\",void(this.mediaElement.style.height=r+\"px\"))};var UOLPlayerAutoRep=function(e,t){var a=e.wrapper.getElementsByClassName(\"ui\")[0],i=e.wrapper.getElementsByClassName(\"up-ctrlbar-autorep\")[0].getElementsByClassName(\"up-switch\")[0];this.autorep=a.getElementsByClassName(\"up-autorep\")[0],this.time=this.autorep.getElementsByClassName(\"up-time\")[0],this.btSwitch=this.autorep.getElementsByClassName(\"up-switch\")[0],this.switchCountdown=this.autorep.getElementsByClassName(\"up-switch-countdown\")[0],this.app=e,this.mediaId=e.mediaId,this.data=t.list[0],UOLPlayer.getCookie(\"lplr_autorep_id\")==this.data.mediaId&&(this.data=t.list[1]),UOLPlayer.setCookie(\"lplr_autorep_id\",this.mediaId,365),(UOLPlayer.isTVUOL||UOLPlayer.isUOLMais)&&this.app.wrapper.addClass(\"_autorep\"),UOLPlayer.toBoolean(UOLPlayer.getCookie(\"lplr_autorep\"))?(this.autorep.addClass(\"_on\"),this.btSwitch.removeClass(\"up-switch-off\").addClass(\"up-switch-on\"),i.removeClass(\"up-switch-off\").addClass(\"up-switch-on\")):(this.autorep.addClass(\"_off\"),this.btSwitch.removeClass(\"up-switch-on\").addClass(\"up-switch-off\"),i.removeClass(\"up-switch-on\").addClass(\"up-switch-off\")),this.switchAutorep=function(e){this.btSwitch.hasClass(\"up-switch-on\")?(autorepEnabled=!1,this.autorep.removeClass(\"_on\").addClass(\"_off\"),this.btSwitch.addClass(\"up-switch-off\").removeClass(\"up-switch-on\"),i.addClass(\"up-switch-off\").removeClass(\"up-switch-on\"),this.stop()):(autorepEnabled=!0,this.autorep.removeClass(\"_off\").addClass(\"_on\"),this.btSwitch.addClass(\"up-switch-on\").removeClass(\"up-switch-off\"),i.addClass(\"up-switch-on\").removeClass(\"up-switch-off\"),this.countdown())},this.btSwitch.addEventListener(\"click\",function(){var e=!this.btSwitch.hasClass(\"up-switch-on\");this.switchAutorep(e),UOLPlayer.setCookie(\"lplr_autorep\",e,365)}.bind(this)),this.app.wrapper.hasClass(\"_end\")&&this.countdown()};UOLPlayerAutoRep.prototype.countdown=function(){var e=5;this.time.innerHTML=\"em \"+e+\"s\",setTimeout(function(){this.switchCountdown.addClass(\"count\")}.bind(this),200);var t=function(){e--,this.time.innerHTML=\"em \"+e+\"s\",e<1&&(clearInterval(this.interval),UOLPlayer.isTVUOL?window.location.href=UOLPlayer.HTTP+\"tvuol.uol.com.br/video/\"+this.data.urlHash:UOLPlayer.isUOLMais&&(window.location.href=UOLPlayer.HTTP+\"mais.uol.com.br/view/\"+this.data.mediaId))};this.autorep.hasClass(\"_on\")&&(this.interval=setInterval(t.bind(this),1e3))},UOLPlayerAutoRep.prototype.stop=function(){this.switchCountdown.removeClass(\"count\"),clearInterval(this.interval)},UOLPlayerAutoRep.activateInControlbar=function(e,t){if(e.autorep){var a=t.getElementsByClassName(\"up-ctrlbar-autorep\")[0],i=t.getElementsByClassName(\"up-ctrlbar-autorep\")[0].getElementsByClassName(\"up-switch\")[0];a.show(),i.addEventListener(\"click\",function(){var t;i.hasClass(\"up-switch-on\")?(t=!1,i.addClass(\"up-switch-off\").removeClass(\"up-switch-on\")):(t=!0,i.addClass(\"up-switch-on\").removeClass(\"up-switch-off\")),e.repro&&e.repro.switchAutorep(t),UOLPlayer.setCookie(\"lplr_autorep\",t,365)}),UOLPlayer.toBoolean(UOLPlayer.getCookie(\"lplr_autorep\"))||i.addClass(\"up-switch-off\").removeClass(\"up-switch-on\")}},UOLPlayer.Detach=function(e,t){if(!UOLPlayer.isTVUOL&&!UOLPlayer.isUOLMais){this.destroyed=!1;var a,i,r=UOLPlayer.domNode(\"div\").addClass(\"up-detach-cover\"),s=t.getElementsByClassName(\"up-bt-detach\")[0],o=UOLPlayer.domNode(\"I\").addClass(\"up-bt up-bt-detach-close\"),n=t.getElementsByClassName(\"uolplayer-container\")[0],l=\"up-detach-LB\",d=100,p=UOLPlayer.Detach.states.ATTACHED,u=t.getData(\"detachstate\")===UOLPlayer.Detach.states.DISABLED?UOLPlayer.Detach.states.DISABLED:UOLPlayer.Detach.states.AUTO;if(s.show(),n){t.getData(\"detachPosition\")?l=\"up-detach-\"+t.getData(\"detachPosition\"):\"string\"==typeof e._detach&&(l=\"up-detach-\"+e._detach),n.addClass(l).appendChild(o),t.appendChild(r);var h=function(){var e=document.getElementsByClassName(\"up-detach\")[0];e&&UOLPlayer.getInstance(e.getData(\"hashId\")).detach.detachPlayer(!1)},m=function(i){e.detachOnce===!1&&(e.detachOnce=!0,e.logger.send(\"detached\")),r.hasClass(\"_mounted\")||(UOLPlayer.setPoster(e,r),r.addClass(\"_mounted\")),i===!0&&p===UOLPlayer.Detach.states.ATTACHED&&(h(),n.addClass(\"up-detach-hide\"),UOLPlayer.onDetach(!0),clearTimeout(a),a=setTimeout(function(){t.addClass(\"_small\").addClass(\"up-detach\"),n.addClass(\"up-detach-active\").removeClass(\"up-detach-hide\").addClass(\"up-detach-show\"),p=UOLPlayer.Detach.states.DETACHED,this.destroyed||u===UOLPlayer.Detach.states.DISABLED||(this.state=p,t.setData(\"detachstate\",p)),c()}.bind(this),d)),i===!1&&p===UOLPlayer.Detach.states.DETACHED&&(n.addClass(\"up-detach-hide\"),UOLPlayer.onDetach(!1),clearTimeout(a),a=setTimeout(function(){t.removeClass(\"_small\").removeClass(\"up-detach\"),n.removeClass(\"up-detach-active\").removeClass(\"up-detach-hide\").addClass(\"up-detach-show\"),p=UOLPlayer.Detach.states.ATTACHED,this.destroyed||u===UOLPlayer.Detach.states.DISABLED||(this.state=p,t.setData(\"detachstate\",p)),c()}.bind(this),d))}.bind(this),c=function(){if(e.ads){var t=e.getSize();e.ads.resize(t.width,t.height,\"NORMAL\")}},y=function(){this.inView=UOLPlayer.inView(t),e.isStarted()&&UOLPlayer.getCurrentMedia()===e&&u!==UOLPlayer.Detach.states.DISABLED&&(clearTimeout(i),i=setTimeout(function(){clearTimeout(i),m(!this.inView)}.bind(this),200))}.bind(this),g=function(){p===UOLPlayer.Detach.states.ATTACHED?(u=UOLPlayer.Detach.states.ENABLED,s.removeClass(\"_disable\"),document.addEventListener(\"scroll\",y),m(!0),e.getState()!==UOLPlayer.READY&&e.getState()!==UOLPlayer.PAUSED||e.play()):p===UOLPlayer.Detach.states.DETACHED&&(this.state=u=UOLPlayer.Detach.states.DISABLED,s.addClass(\"_disable\"),t.setData(\"detachstate\",u),document.removeEventListener(\"scroll\",y),m(!1),this.inView||e.deactivate())}.bind(this);e.detachPlayer=function(e){m(e)}.bind(this),this.init=function(){s.addEventListener(\"click\",g),o.addEventListener(\"click\",g),u===UOLPlayer.Detach.states.DISABLED&&s.addClass(\"_disable\"),document.addEventListener(\"scroll\",y)},this.destroy=function(){this.destroyed=!0,t.removeClass(\"up-detach\")},this.detachPlayer=m,this.checkPosition=y}}},UOLPlayer.Detach.setWidth=function(e){var t=document.head||document.getElementsByTagName(\"head\")[0],a=document.createElement(\"style\");a.type=\"text/css\",a.id=\"uolplayer-detach-size\",css=\".uolplayer .up-detach-active{ width: \"+e+\"px; }\",a.styleSheet?a.styleSheet.cssText=css:a.appendChild(document.createTextNode(css)),t.appendChild(a)},UOLPlayer.Detach.states={ATTACHED:\"attached\",DETACHED:\"detached\",AUTO:\"auto\",ENABLED:\"enabled\",DISABLED:\"disabled\"},UOLPlayer.prototype.storeIntance=function(){window.UOLPlayer[this.mediaId]=this,window.UOLPlayer[this.hashId]=this,this.wrapper.setData(\"hashId\",this.hashId)},UOLPlayer.getInstance=function(e){return window.UOLPlayer[e]},UOLPlayer.getCurrentMedia=function(){var e=void 0;return 1===document.getElementsByClassName(\"up-detach\").length&&(e=document.getElementsByClassName(\"up-detach\")[0]),1===document.getElementsByClassName(\"_playing-video\").length?e=document.getElementsByClassName(\"_playing-video\")[0]:1===document.getElementsByClassName(\"_playing-ad\").length&&(e=document.getElementsByClassName(\"_playing-ad\")[0]),void 0!==e&&(e=UOLPlayer.getInstance(e.getData(\"hashId\"))),e},Element.prototype.animateIn||(Element.prototype.animateIn=function(e){var e=e||void 0;this.addClass(\"_animate-in\"),e&&(clearTimeout(this.hideTimeout),this.hideTimeout=setTimeout(function(){this.animateOut(),clearTimeout(this.hideTimeout)}.bind(this),1e3*e))}),Element.prototype.animateOut||(Element.prototype.animateOut=function(){this.removeClass(\"_animate-in\")}),UOLPlayer.Message=function(e){var t=e.wrapper.getElementsByClassName(\"up-message\")[0],a=function(e){t.innerText=e,t.animateIn(3)};return{show:a}};var UOLPlayerRelated=function(e){var t=e.wrapper.getElementsByClassName(\"ui\")[0],a=UOLPlayer.createToolsWrapper(t);this.app=e,this.limit=9,this.mediaId=e.mediaId,this.mounted=!1,this.currentVideo=this.app.data.item.mediaId+\" \"+this.app.data.item.title,this.relatedData={relatedCurrentTitle:this.app.data.item.title,relatedCurrentMediaId:this.app.data.item.mediaId.toString()},this.app.related&&(relatedButton=t.getElementsByClassName(\"up-bt-related\")[0],this.app.recommended&&relatedButton.addClass(\"up-bt-recommended\"),relatedButton.show(),relatedButton.addEventListener(\"click\",this.setRelated.bind(this))),this.init=function(e,t){this.app.ui.loading(!1),this.app.related&&this.mount(e,t),this.app.autorep&&!this.app.repro&&(this.app.repro=new UOLPlayerAutoRep(this.app,e)),this.mounted=!0}.bind(this),this.mount=function(t,i){t=t.list;var r,s,o,n,l,d=UOLPlayer.domNode(\"ul\"),p=this;d.addClass(\"up-ul\"),r=UOLPlayer.domNode(\"div\"),r.className=\"up-related\",r.appendChild(d);for(var u=0,h=t.length<9?t.length:9;u<h;u++)s=UOLPlayer.domNode(\"li\"),s.addClass(\"up-li\"),n=t[u],o=UOLPlayer.domNode(\"div\"),l=UOLPlayer.domNode(\"span\"),o.addClass(\"up-related-bg\"),UOLPlayer.setThumb(o,n.thumbWlarge.replace(\"http://\",\"//\")),l.addClass(\"up-related-info\").innerHTML='<span class=\"up-related-title\">'+n.title+'</span><span class=\"up-related-duration\">'+n.duration+\"</span>\",s.setData(\"mediaId\",n.mediaId),s.setData(\"urltvuol\",UOLPlayer.HTTP+\"tvuol.uol.com.br/video/\"+n.urlHash),s.setData(\"title\",n.title),s.setData(\"pos\",u+1),s.addEventListener(\"click\",function(t){p.app.metrics=p.app.metrics||new UOLPlayer.Metrics(p.app),p.relatedData.relatedClickedTitle=this.getData(\"title\"),p.relatedData.relatedClickedMediaId=this.getData(\"mediaid\"),p.relatedData.relatedClickedPos=this.getData(\"pos\"),p.relatedData.recommended=p.app.recommended,p.relatedData.lastState=p.app.getFullState(),p.app.metrics.click(\"relacionados clique\",this.getData(\"mediaid\")+\" \"+this.getData(\"title\"),p.currentVideo),UOLPlayerLog.send(p.app,\"related\",{payload:p.relatedData,time:i}),UOLPlayer.isUOLMais&&!UOLPlayer.isIframe?window.location.href=UOLPlayer.HTTP+\"mais.uol.com.br/view/\"+this.getData(\"mediaid\"):UOLPlayer.isVideosUOL?window.location.href=\"https://videos.uol.com.br/v/\"+this.getData(\"mediaid\"):UOLPlayer.isTVUOL?window.location.href=this.getData(\"urltvuol\"):e.changeVideo(this.getData(\"mediaid\"))}),s.appendChild(l),s.appendChild(o),d.appendChild(s);a.appendChild(r),setTimeout(function(){r.addClass(\"_mounted\")},200)}.bind(this),this.onTimeout=function(){var e;e=UOLPlayer.domNode(\"div\"),e.className=\"up-related up-error _mounted\",e.innerHTML=\"Desculpe, houve um problema no carregamento dos vídeos relacionados\",a.appendChild(e),this.mounted=!0,this.app.ui.loading(!1),this.app.wrapper.hasClass(\"_end\")&&this.app.wrapper.removeClass(\"_tools\").removeClass(\"_related\")}.bind(this),this.startWatch=function(){if(e){if(e.mediaPlayer&&e.mediaPlayer.mediaElement&&e.mediaPlayer.mediaElement.currentTime>1&&e.mediaPlayer.mediaElement.duration>0&&e.mediaPlayer.mediaElement.duration-e.mediaPlayer.mediaElement.currentTime<Math.min(30,.75*e.mediaPlayer.mediaElement.duration))return clearTimeout(this.timeoutWatch),this.preLoadData(e,this.mediaId);setTimeout(this.startWatch.bind(this),400)}}.bind(this),this.startWatch()};UOLPlayerRelated.prototype.setRelated=function(){this.mounted||(this.app.ui.loading(!0),this.preLoadData(this.app,this.mediaId).then(this.init,this.onTimeout)),this.app.ui.setState(\"related\"),this.app.hasClass(\"_clicked\")&&!this.app.hasClass(\"_paused\")&&(this.app.hasClass(\"_related\")?this.app.mediaPlayer.pause():this.app.mediaPlayer.play())},UOLPlayerRelated.prototype.preLoadData=function(e,t){if(this.promise)return this.promise;this.promise=new UOLPlayer.Promise;var a=function(t,a,i){var r=i&&i.loadedAt?i.loadedAt.elapsedTime:void 0,s={server_status:a,timeout:408==a};e.recommended===!0&&(s.server_response=t),UOLPlayerLog.send(e,\"relatedTime\",{time:r,payload:s}),this.promise.resolve(t,r)}.bind(this),i=function(){UOLPlayer.jsonp({url:UOLPlayer[\"const\"].urls.RELATED+t,success:a,timeout:this.promise.reject,error:this.promise.reject})}.bind(this),r=function(t,a,r){e.recommended=\"error\",e.wrapper.getElementsByClassName(\"ui\")[0].getElementsByClassName(\"up-bt-related\")[0].removeClass(\"up-bt-recommended\");var s={payload:{server_status:a,server_response:t,timeout:408==a}};r&&r.loadedAt&&(s.time=r.loadedAt.elapsedTime),UOLPlayerLog.send(e,\"recommendedTime\",s),i()},s=function(e,t,i){return 200==e.response.code?a(e,t,i):r(e,e.response.code,i)};if(e.recommended){var o=UOLPlayer[\"const\"].urls.RECOMMENDED.replace(\"{mediaId}\",t).replace(\"{ss}\",void 0===UOLPlayer.urlParameter.recommended_ss?\"2001\":UOLPlayer.urlParameter.recommended_ss).replace(\"{c}\",void 0===UOLPlayer.urlParameter.recommended_c?\"3\":UOLPlayer.urlParameter.recommended_c).replace(\"{h}\",void 0===UOLPlayer.urlParameter.recommended_h?\"6\":UOLPlayer.urlParameter.recommended_h).replace(\"{s}\",void 0===UOLPlayer.urlParameter.recommended_s?\"true\":UOLPlayer.urlParameter.recommended_s).replace(\"{d}\",void 0===UOLPlayer.urlParameter.recommended_d?\"1\":UOLPlayer.urlParameter.recommended_d);UOLPlayer.ajax({url:o,success:s,timeout:r,error:r,maxTimeout:6e4})}else i();return this.promise};var UOLPlayerShare=function(e){if(e.share){this.app=e,this.app.initMetrics();var t,a,i=e.wrapper.getElementsByClassName(\"ui\")[0],r=UOLPlayer.createToolsWrapper(i),s=this,o=\"\";t=e.data.item.shareUrl?e.data.item.shareUrl:UOLPlayer.HTTP+(UOLPlayer.isTVUOL?\"tvuol.uol.com.br/video/\":\"mais.uol.com.br/view/\")+e.data.item.mediaId,e.isMobile&&(o='<a href=\"whatsapp://send?text='+t+'\" data-action=\"share/whatsapp/share\" class=\"up-share-element up-bt-share up-bt-whatsapp\"></a><a href=\"fb-messenger://share/?link='+t+'\" class=\"up-share-element up-bt-share up-bt-messenger\"></a>');var n=\"https://twitter.com/share?url=\"+t+\"&text=\"+s.app.data.item.title,l=\"https://www.facebook.com/sharer/sharer.php?u=\"+t,d='<div class=\"up-share\"><div class=\"up-bt-container\"><a class=\"up-share-element up-bt-share up-bt-facebook\" href=\"'+l+'\" target=\"_blank\"></a><a class=\"up-share-element up-bt-share up-bt-twitter\" href=\"'+n+'\" target=\"_blank\"></a>'+o+'<div class=\"up-share-element up-share-link\"><div class=\"up-bt-share up-bt-link\"></div><div class=\"up-share-url-wrapper\"><input class=\"up-share-url up-shareurl-content\" onClick=\"this.setSelectionRange(0, this.value.length)\"></input><div class=\"up-bt-copy\"></div></div></div><div class=\"up-share-element up-share-embed\"><div class=\"up-bt-share up-bt-embed\"></div><div class=\"up-share-url-wrapper\"><input class=\"up-embed-content\" type=\"hidden\"></input><input class=\"up-share-url\" value=\"<iframe width=&#34;6...\"></input><div class=\"up-bt-copy\"></div></div></div></div></div>';a=i.getElementsByClassName(\"up-bt-share\")[0],shareButtonMobile=i.getElementsByClassName(\"up-bt-share-mobile\")[0],a.show(),a.addEventListener(\"click\",this.setShare.bind(this)),shareButtonMobile.addEventListener(\"click\",this.setShare.bind(this)),r.appendHtmlText(d),this.container=r.getElementsByClassName(\"up-bt-container\")[0];var p=this.container.getElementsByClassName(\"up-bt-facebook\")[0],u=this.container.getElementsByClassName(\"up-bt-twitter\")[0],h=this.container.getElementsByClassName(\"up-bt-link\")[0],m=this.container.getElementsByClassName(\"up-bt-embed\")[0],c=this.container.getElementsByClassName(\"up-bt-copy\")[0],y=this.container.getElementsByClassName(\"up-bt-copy\")[1],g=this.container.getElementsByClassName(\"up-shareurl-content\")[0],v=this.container.getElementsByClassName(\"up-embed-content\")[0],P=this.container.getElementsByClassName(\"up-bt-share\");g.value=t,v.value='<iframe width=\"640\" height=\"360\" allow=\"autoplay; fullscreen\" src=\"https://player.mais.uol.com.br/?mediaId='+s.app.mediaId+'&type=video\" allowfullscreen frameborder=\"0\"></iframe>';var f=function(e){var t=this.container.getElementsByClassName(\"_opened\")[0],a=e.target.parentNode;return t&&(this.container.removeClass(\"_opened\"),t.removeClass(\"_opened\")),t===a?void(UOLPlayer.isMobile&&(this.container.style.left=\"0px\")):(this.container.addClass(\"_opened\"),a.addClass(\"_opened\"),void(UOLPlayer.isMobile&&(clearTimeout(this.animation),this.animation=setTimeout(function(){var e=a.offsetLeft,t=this.container.offsetWidth/2,i=136;this.container.style.left=t-e-i+\"px\"}.bind(this),300))))}.bind(this),L=function(e){var t=document.createElement(\"input\");t.setAttribute(\"value\",this.value),r.appendChild(t),t.select();try{document.execCommand(\"copy\")&&(e.target.addClass(\"_ok\"),setTimeout(function(){e.target.removeClass(\"_ok\")},3e3))}catch(a){}r.removeChild(t)};h.addEventListener(\"click\",f),m.addEventListener(\"click\",f),c.addEventListener(\"click\",L.bind(g)),y.addEventListener(\"click\",L.bind(v));for(var O=0;O<P.length;O++)P[O].addEventListener(\"mouseover\",function(e){for(var t=0;t<P.length;t++)P[t]!==e.currentTarget&&P[t].addClass(\"fadeHalf\")}),P[O].addEventListener(\"mouseout\",function(e){for(var t=0;t<P.length;t++)P[t].removeClass(\"fadeHalf\")});p.addEventListener(\"click\",function(e){s.app.metrics.click(\"compartilhe clique\",\"facebook\",s.app.mediaId+\" \"+s.app.data.item.title)}),u.addEventListener(\"click\",function(e){s.app.metrics.click(\"compartilhe clique\",\"twitter\",s.app.mediaId+\" \"+s.app.data.item.title)})}};UOLPlayerShare.prototype.setShare=function(){this.app.ui.setState(\"share\"),this.app.hasClass(\"_clicked\")&&!this.app.hasClass(\"_paused\")&&(this.app.hasClass(\"_share\")?this.app.mediaPlayer.pause():this.app.mediaPlayer.play()),this.container.removeClass(\"_opened\");var e=this.container.getElementsByClassName(\"_opened\")[0];e&&(e.removeClass(\"_opened\"),UOLPlayer.isMobile&&(this.container.style.left=\"0px\"))},UOLPlayer.Subtitle=function(e){var t=e.wrapper.getElementsByClassName(\"up-bt-subtitle\")[0],a=e.wrapper.getElementsByClassName(\"up-subtitle\")[0],i=e.data.item.playerParameters.subtitle_allow_author?e.data.item.playerParameters.subtitle_allow_author:\"\";if(t.hide(),a.hide(),UOLPlayer.checkAllowedAuthor(e.data.item.author,i)?e.options.subtitle.disabled=!1:e.options.subtitle.disabled=!0,!e.options.subtitle.disabled&&e.data.item.caption){e.options.subtitle.subtitleOn=0;var r,s,o=e.mediaPlayer.mediaElement,n=o.getElementsByTagName(\"track\"),l=e.wrapper.getElementsByClassName(\"up-subtitle-content\")[0],d=e.currentFile.replace(UOLPlayer.stripProtocol(e.currentFile).split(\"?\")[0].split(\"/\").pop(),e.data.item.caption.pt_BR.filename);0===n.length&&(n=UOLPlayer.domNode(\"track\"));var p=function(){\"hidden\"!==r.mode?(r.mode=\"hidden\",t.removeClass(\"_disable\"),e.wrapper.addClass(\"with-subtitle\"),e.message.show(\"[ legenda automática ]\"),e.options.subtitle.subtitleOn=1):(r.mode=\"disabled\",t.addClass(\"_disable\"),e.wrapper.removeClass(\"with-subtitle\"),e.options.subtitle.subtitleOn=0,a.hide(),l.replaceChild(UOLPlayer.domNode(\"P\"),l.firstChild))};UOLPlayer.ajax({url:d,data:\"__rand=\"+Math.random(),success:function(i,d,u){200==d&&(blob=new Blob([i],{type:\"text/vtt\"}),url=URL.createObjectURL(blob),n.src=url,n.label=\"Legenda\",n.kind=\"subtitles\",n.srclang=\"pt-BR\",o.appendChild(n),r=o.textTracks[0],r.mode=\"disabled\",r.addEventListener(\"cuechange\",function(e){r.activeCues.length>0&&(s=r.activeCues[0],a.show(),l.replaceChild(s.getCueAsHTML(),l.firstChild),s.onexit=function(e){a.hide()})}),t.show().addClass(\"_disable\").addEventListener(\"click\",p),e.options.subtitle.startWith&&p())}})}},UOLPlayer.BBC=function(e){if(UOLPlayer.isBBC||e.data.item.author&&e.data.item.author.toLowerCase().indexOf(\"bbc\")!=-1){var t={},a=function(){e.logger.log(\"Tracking BBC: OK\"),this.bbcLoaded=!0,t={media_name:e.data.item.title,media_id:e.mediaId,media_length:e.data.item.duration.seconds,media_player:\"UOLPlayer\",media_type:\"video\"},window.s_bbcws&&(window.s_bbcws.noPageview=!0),window.mtrack.init_media(t)}.bind(this);window.mtrack?(UOLPlayer.i(\"BBC already loading...\"),a()):UOLPlayer.loadJs({src:UOLPlayer[\"const\"].urls.BBC,name:\"bbc\",success:a,error:function(){UOLPlayer.e(\"BBC Load error\")}})}var i=function(t){if(this.bbcLoaded)switch(t){case\"play\":window.mtrack.media_play(e.mediaPlayer.getCurrentTime());break;case\"pause\":window.mtrack.media_pause(e.mediaPlayer.getCurrentTime());break;case\"end\":window.mtrack.media_end()}}.bind(this);return{clickCount:i}},UOLPlayer.Comscore=function(e,t){if(\"function\"==typeof window.uolAnalytics)try{t=t||new(window.uolAnalytics(\"uolplayer.class\"))}catch(a){UOLPlayer.e(\"[comScore] \"+a.message)}var i=e.data.item,r=i.mediaId+\" \"+i.title,s={video:{action:null,metadata:{clipId:\"\",clipLength:\"\",stationTitle:\"\",publisherBrandName:\"\",programTitle:\"\",episodeTitle:\"\",episodeSeasonNumber:\"\",episodeNumber:\"\",contentGenre:\"\",tmsId:\"\",adLoadFlag:\"\",completeEpisodeFlag:\"\",digitalAirdate:\"\",tvAirdate:\"\"},mediaType:\"Other\",url:UOLPlayer.getURL()},ad:{action:null,metadata:{clipId:\"\",clipLength:\"\",stationTitle:\"\",publisherBrandName:\"\",programTitle:\"\",episodeTitle:\"\",episodeSeasonNumber:\"\",episodeNumber:\"\",contentGenre:\"\",tmsId:\"\",adLoadFlag:\"\",completeEpisodeFlag:\"\",digitalAirdate:\"\",tvAirdate:\"\"},mediaType:\"Other\",url:UOLPlayer.getURL()}},o=function(e){if(\"function\"==typeof window.uolAnalytics&&\"object\"==typeof t&&t.hasOwnProperty(\"comScore\"))try{t.comScore.event(e)}catch(a){UOLPlayer.e(\"[comScore] \"+a.message)}},n=function(e){s.video.action=e,s.video.metadata.clipId=i.mediaId,s.video.metadata.clipLength=1e3*i.duration.seconds,s.video.metadata.episodeTitle=r,o(s.video)},l=function(t){s.ad.action=t,e.ads&&(s.ad.metadata.clipId=e.ads.getAdId(),s.ad.metadata.clipLength=1e3*e.ads.getDuration(),s.ad.metadata.episodeTitle=e.ads.getAdTitle()),o(s.ad)};return{video:{clickCount:n},ad:{clickCount:l}}},UOLPlayer.GA=function(e,t){if(\"function\"==typeof window.uolAnalytics)try{t=t||new(window.uolAnalytics(\"uolplayer.class\"))}catch(a){UOLPlayer.e(\"[GA] \"+a.message)}var i=e.data.item,r=e.data.formats,s=i.mediaId+\" \"+i.title,o=e.autoplay===!0?\"true\":\"false\",n=e.audio?\"audio\":\"video\",l=UOLPlayer.environment();currPec=0,cleanList=function(e){return e=e||\"\",e=e.split(\",\"),e=e.map(function(e){return e.trim()}),e=e.filter(function(e){return!!e}),e.join(\",\")};var d={video:{mediaName:s,mediaLength:i.duration.formatted,mediaType:n,mediaMode:\"ondemand\",mediaQuality:e.hlsEnabled?\"hls\":e.audio?\"128kbps\":r&&r.current?r.current.type:\"360p\",playerType:\"html5\",playerSize:e.getSize().formatted,typePublication:l,author:i.codProfile+\" \"+i.author,url:UOLPlayer.getURL(),autoplay:o,error:\"\",currentTime:null,action:null,tagId:cleanList(i.tags),tagName:cleanList(i.tagsDescription),tagSrv:cleanList(i.tagSrv),title:i.title},ad:{mediaName:s,adMediaName:null,mediaType:\"video-ad\",mediaMode:\"ondemand\",playerType:\"html5\",typePublication:l,autoplay:o,error:\"\",currentTime:null,action:null,tagId:cleanList(i.tags),tagName:cleanList(i.tagsDescription),tagSrv:cleanList(i.tagSrv)},click:{mediaName:s,mediaType:n,typePublication:l,action:null,reference:null,tagId:cleanList(i.tags),tagName:cleanList(i.tagsDescription),tagSrv:cleanList(i.tagSrv)}},p=function(t,a,i){var r={type:\"ErroGA\",method:t,event:a};i=i||{},r=UOLPlayer.mergeObject(r,i),UOLPlayerLog.send(e,\"metrics\",{payload:r}),UOLPlayer.e(\"GA throw error \"+t+'(\"'+a+'\")',i)},u=function(a){var i=void 0;if(\"function\"==typeof window.uolAnalytics&&\"object\"==typeof t)try{t=t||new(window.uolAnalytics(\"uolplayer.class\")),t.lastTimePlayed=0}catch(s){UOLPlayer.e(\"[GA Milestone] \"+s.message),p(\"[milestones]\",\"fail on initialize uolAnalytics\",{message:s.message,erro:JSON.stringify(s)})}else p(\"[milestones]\",\"try initialize but script not loaded yet\",{uolAnalytics:typeof window.uolAnalytics});i=new UOLPlayer.milestones;var o={0:\"start\",25:25,50:50,75:75,100:\"complete\"},n=function(a){if(currPerc=a.perc||this.getCurrentPerc(),currMilestone=i.get(currPerc),currMilestone!==!1){var s;if(this.ad?(d.ad.adMediaName=this.getAdTitle(),d.ad.action=\"ad\"+o[currMilestone],d.ad.currentTime=this.getCurrentTime(),d.ad.adPosition=this.getAdPosition(),d.ad.playerType=e.isDetached()?\"html5-detach\":\"html5\",s=d.ad):(d.video.mediaQuality=e.hlsEnabled?\"hls\":e.audio?\"128kbps\":r&&r.current?r.current.type:\"360p\",d.video.action=o[currMilestone],d.video.currentTime=this.getCurrentTime(),d.video.playerType=e.isDetached()?\"html5-detach\":\"html5\",s=d.video),t)try{t.event(s)}catch(n){UOLPlayer.e(\"[GA Milestone \"+currMilestone+\"] \"+n.message),s.message=n.message,s.error=JSON.stringify(n),p(\"[milestones]\",\"uolAnalytics call exception\",s)}else s.currMilestone=currMilestone,p(\"[milestones]\",\"uolAnalytics called but not initialized\",s);s.currMilestone=currMilestone,isNaN(s.action)||(s.action=\"video\"+s.action),e.logger.send(\"GA\",s)}}.bind(a);return this.mounted||a.registerEventListener(\"timeupdate\",n),this.mounted=!0,this},h=function(e,a){if(\"function\"==typeof window.uolAnalytics&&\"object\"==typeof t)try{t=t||new(window.uolAnalytics(\"uolplayer.class\"))}catch(i){UOLPlayer.e(\"[GA Click] \"+i.message),p(\"[click]\",\"fail on initialize uolAnalytics\",{message:i.message,erro:JSON.stringify(i)})}else p(\"[click]\",\"try initialize but script not loaded yet\",{uolAnalytics:typeof window.uolAnalytics});if(d.click.action=e,d.click.reference=a,t)try{t.click(d.click)}catch(i){UOLPlayer.e(\"[GA Click] \"+i.message),p(\"[click]\",\"uolAnalytics call exception\",{message:i.message,error:JSON.stringify(i)})}else p(\"[click]\",\"uolAnalytics called but not initialized\",d.click)}.bind(this);return{video:{milestones:u},ad:{milestones:u},clickCount:h}},UOLPlayer.Metrics=function(e){if(this.uolAnalytics=void 0,\"function\"==typeof window.uolAnalytics)try{this.uolAnalytics=new(window.uolAnalytics(\"uolplayer.class\"))}catch(t){UOLPlayer.e(\"[uolAnalytics] \"+t.message)}this.app=e,this.ga=new UOLPlayer.GA(e,this.uolAnalytics),this.comscore=new UOLPlayer.Comscore(e,this.uolAnalytics),this.bbc=new UOLPlayer.BBC(e);var a={};return a={video:{start:function(){this.app.logger.logMetrics(\"video started\"),this.bbc.clickCount(\"play\"),this.comscore.video.clickCount(\"play\"),this.ga.video.milestones(e.mediaPlayer)}.bind(this),pause:function(){this.app.logger.logMetrics(\"video paused\"),this.bbc.clickCount(\"pause\"),this.comscore.video.clickCount(\"stop\")}.bind(this),resume:function(){this.app.logger.logMetrics(\"video resume\"),this.bbc.clickCount(\"play\"),this.comscore.video.clickCount(\"play\")}.bind(this),end:function(){this.app.logger.logMetrics(\"video end\"),this.bbc.clickCount(\"end\"),this.comscore.video.clickCount(\"stop\")}.bind(this),seeking:function(){this.app.logger.logMetrics(\"video seeking\")}.bind(this),seeked:function(){this.app.logger.logMetrics(\"video seeked\")}.bind(this)},ad:{start:function(){this.app.logger.logMetrics(\"dfp start\"),this.comscore.ad.clickCount(\"playAd\"),this.ga.ad.milestones(e.ads)}.bind(this),pause:function(){this.comscore.ad.clickCount(\"stop\")}.bind(this),skipped:function(){this.app.logger.logMetrics(\"dfp skipped\"),this.comscore.ad.clickCount(\"stop\")}.bind(this),ended:function(){this.app.logger.logMetrics(\"dfp ended\"),this.comscore.ad.clickCount(\"stop\")}.bind(this)},click:function(e,t,a){this.app.logger.logMetrics(\"click metric - \"+e),this.ga.clickCount(e,t)}.bind(this)},{ga:this.ga,bbc:this.bbc,comscore:this.comscore,video:a.video,ad:a.ad,click:a.click}},UOLPlayer.Omniture=function(e){var t=void 0;\"object\"==typeof UOLPD&&UOLPD.Audience&&UOLPD.Audience.hasOwnProperty(\"Player\")&&(t=UOLPD.Audience.Player);var a=(e.mediaPlayer,e.data.item),i=e.data.formats,r=a.mediaId+\" \"+a.title,s=(e.autoplay,e.audio?\"audio\":\"video\"),o={video:{video:r,tpvideo:\"ondemand\",author:a.codProfile+\" \"+a.author,tags:a.videoTags,url:UOLPlayer.getURL(),domain:UOLPlayer.hostName,quality:e.hlsEnabled?\"hls\":e.audio?\"128kbps\":i.current.type,tpplayer:\"html5-v2\",error:\"\",events:\"\",ctime:0,ttime:a.duration.seconds,dimension:e.getSize().formatted,mediatype:s},ad:{ad_video:\"\",ad_pod:\"\",ad_player:\"html5-v2\",ad_error:\"\",ad_events:\"\",ad_ctime:0,ad_ttime:0,ad_primary:r},click:{action:\"\",reference:\"\",source:r}},n=function(a){if(o.video.events=a,o.video.ctime=\"play\"===a&&e.mediaPlayer.getCurrentTime()<=2?0:e.mediaPlayer.getCurrentTime(),o.video.quality=e.audio?\"128kbps\":i.current.type,t)try{t.countMetrics(o.video)}catch(r){UOLPlayer.e(\"[ OMNITURE VIDEO ] \"+r.message)}}.bind(this),l=function(a){if(o.ad.ad_events=a,o.ad.ad_video=e.ads.getAdTitle(),o.ad.ad_pod=e.ads.getAdPosition(),o.ad.ad_ttime=e.ads.getDuration(),o.ad.ad_ctime=e.ads.getCurrentTime(),t)try{t.countMetricsAd(o.ad)}catch(i){UOLPlayer.e(\"[ OMNITURE AD ] \"+i.message)}},d=function(e,a){if(o.click.action=e,o.click.reference=a,t)try{t.countClick(o.click)}catch(i){UOLPlayer.e(\"[ OMNITURE CLICK ] \"+i.message)}}.bind(this);return{video:{clickCount:n},ad:{clickCount:l},clickCount:d}},UOLPlayer.toBoolean=function(e){return\"true\"===(e+\"\").toLowerCase()},UOLPlayer.getTimestamp=function(){return(new Date).getTime()},UOLPlayer.getStaticParameter=function(e,t){var a=e.split(\"?\"),i={},r=0,s=0;if(a.length>1&&(a=a[1].split(\"&\"),s=a.length),!t){for(;r<s;r++){var o=a[r].split(\"=\");i[o[0]]=\"true\"==o[1]||\"false\"==o[1]?UOLPlayer.toBoolean(o[1]):o[1]}return i}for(;r<s;r++){var o=a[r].split(\"=\");if(o[0]==t)return\"true\"==o[1]||\"false\"==o[1]?UOLPlayer.toBoolean(o[1]):o[1]}},UOLPlayer.getUrlParameter=function(e){return UOLPlayer.getStaticParameter(window.location.search,e)},UOLPlayer.setCookie=function(e,t,a){var i,r=new Date;r.setTime(r.getTime()+24*a*60*60*1e3),i=\"expires=\"+r.toUTCString(),document.cookie=e+\"=\"+t+\"; \"+i},UOLPlayer.getCookie=function(e){for(var t=e+\"=\",a=document.cookie.split(\";\"),i=0,r=a.length;i<r;i++){for(var s=a[i];\" \"==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(t))return\"false\"!==s.substring(t.length,s.length)&&s.substring(t.length,s.length)}return!1},UOLPlayer.isCookieEnabled=function(){var e=!!navigator.cookieEnabled;return\"undefined\"!=typeof navigator.cookieEnabled||e||(document.cookie=\"lplr_testcookie\",e=document.cookie.indexOf(\"lplr_testcookie\")!=-1,document.cookie=\"lplr_testcookie; expires=Thu, 01-Jan-1970 00:00:01 GMT\"),e}(),UOLPlayer.domNode=function(e){return document.createElement(e)},UOLPlayer.mousePosition=function(e){function t(e){return e.currentTarget}function a(e){var t=0,a=0;if(!e)var e=window.event;return e.changedTouches?(t=e.changedTouches[0].pageX,a=e.changedTouches[0].pageY):e.pageX||e.pageY?(t=e.pageX,a=e.pageY):(e.clientX||e.clientY)&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,a=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:t,y:a}}function i(e){var t=curtop=0;if(\"object\"==typeof e.getBoundingClientRect())t=e.getBoundingClientRect().left,curtop=e.getBoundingClientRect().top;else if(e.offsetParent)do t+=e.offsetLeft,curtop+=e.offsetTop;while(e=e.offsetParent);return{left:t,top:curtop}}function r(e){var r=a(e),s=t(e),o=i(s),n=r.x-o.left,l=r.y-o.top;return n=Math.min(s.offsetWidth,Math.max(0,n)),{x:n,y:l}}return r(e)},UOLPlayer.each=function(e,t,a){for(var i=0,r=e.length;i<r;++i)t.call(a,e[i],i,e)},UOLPlayer.createToolsWrapper=function(e){var t;return 0==e.getElementsByClassName(\"up-tools\").length?(t=UOLPlayer.domNode(\"div\"),t.addClass(\"up-tools\"),e.appendChild(t)):t=e.getElementsByClassName(\"up-tools\")[0],t},\"undefined\"!=typeof document.hidden?(UOLPlayer.hidden=\"hidden\",UOLPlayer.visibilityChange=\"visibilitychange\"):\"undefined\"!=typeof document.mozHidden?(UOLPlayer.hidden=\"mozHidden\",UOLPlayer.visibilityChange=\"mozvisibilitychange\"):\"undefined\"!=typeof document.msHidden?(UOLPlayer.hidden=\"msHidden\",UOLPlayer.visibilityChange=\"msvisibilitychange\"):\"undefined\"!=typeof document.webkitHidden&&(UOLPlayer.hidden=\"webkitHidden\",UOLPlayer.visibilityChange=\"webkitvisibilitychange\"),\nUOLPlayer.isHidden=function(){return document[UOLPlayer.hidden]},UOLPlayer.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},UOLPlayer.parseInt=function(e){return parseInt(decodeURIComponent(e+\"\").replace(/\\D/g,\"\"))},UOLPlayer.time2perc=function(e){return function(t){return 100*t/e}},UOLPlayer.perc2time=function(e){return function(t){return Math.floor(t*(\"function\"==typeof e?e():e)/100)}},UOLPlayer.sortRandom=function(e){return e&&e.sort?e.sort(function(e,t){return.5-Math.random()}):e},UOLPlayer.ping=function(e,t,a){var i;e=e||function(){},t=t||function(){};var r=function(){clearTimeout(i),e(),n.abort()},s=function(){clearTimeout(i),t(),n.abort()},o=function(){n.readyState==XMLHttpRequest.DONE&&r()};a=a||window.location.href.replace(/#.*/,\"\"),a+=a.indexOf(\"?\")>-1?\"&\":\"?\",a+=\"___rnd___=\"+Math.random();var n=new XMLHttpRequest;n.open(\"GET\",a,!0),n.onload=o,n.ontimeout=s,n.onerror=s;try{i=setTimeout(s,5e3),n.send()}catch(l){s()}},UOLPlayer.getURL=function(){return void 0!==UOLPlayer.urlParameter.ia_shareURL?decodeURIComponent(UOLPlayer.urlParameter.ia_shareURL):UOLPlayer.isIframe?document.referrer:window.location.href},UOLPlayer.supportedMediaTypesList=UOLPlayer.Fingerprint.mediaTypeSupported,UOLPlayer.supportedMediaTypes=function(){supportedTypes={};for(var e in UOLPlayer.supportedMediaTypesList)supportedTypes[e+\"Ok\"]=UOLPlayer.supportedMediaTypesList[e];return supportedTypes}(),UOLPlayer.milestones=function(){var e,t=25,a=-t,i=0,r=-1,s=0;return this.get=function(o){return s=o,i=Math.floor(o/t)*t,a=0==i&&a>0?-t:a,e=(a!==i||r<s)&&(i==a+t&&i),a=i,r=s,e},this},UOLPlayer.mediaSourceURL=function(e,t,a){var i=0===window.location.href.indexOf(\"http:\")?\"http:\":\"https:\",r=UOLPlayer.isIframe?\"//\"+window.location.host:\"//\"+UOLPlayer.hostName,s=UOLPlayer.isSafariMacOS?\"&view=desk\":\"\",o=e.indexOf(\"?\")===-1?\"?\":\"&\";return null===e.match(/httpvideo\\d+.mais.uol.com.br/)?UOLPlayer.stripProtocol(e)+o+\"ver=\"+t+\"&r=\"+i+r+\"&hashId=\"+a+s:UOLPlayer.stripProtocol(e)+o+\"ver=\"+t},UOLPlayer.mediaSourceFallbackURL=function(e,t,a,i){return UOLPlayer.mediaSourceURL(\"video.m.mais.uol.com.br/\"+e+\".\"+a,t,i)+\"&error=player\"},UOLPlayer.stripProtocol=function(e){return\"//\"+e.replace(/^(?:https?:)?\\/\\//,\"\")},UOLPlayer.mergeObject=function(e,t){var a=UOLPlayer.cloneJSON(e);for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i]);return a},UOLPlayer.objectEntries=function(e){for(var t=Object.keys(e),a=t.length,i=new Array(a);a--;)i[a]=[t[a],e[t[a]]];return i},UOLPlayer.parseResponse=function(e){var t;try{t=JSON.parse(e)}catch(a){t=e}return t},UOLPlayer.isVideoM=function(e){return/^(https?:)?(\\/\\/)?video\\.m\\.mais\\.uol\\.com\\.br/im.test(e)},UOLPlayer.checkAllowedDomain=function(e){var t=new RegExp(\"^(\"+e+\")$\");return t.test(UOLPlayer.hostName)},UOLPlayer.checkAllowedAuthor=function(e,t){e=e.toLowerCase().replace(/\\s/g,\"\");var a=new RegExp(\"\\\\b(\"+e+\")\\\\b\",\"g\");return a.test(t)},UOLPlayer.supportsPassive=function(){var e=!1;try{var t=Object.defineProperty({},\"passive\",{get:function(){e={passive:!0}}});window.addEventListener(\"test\",null,t)}catch(a){}return e}(),UOLPlayer.safariMultiplier=function(e,t){var a=t.data.item.playerParameters.dfp_custom_timeout_safari_desktop_multiplier||1;return UOLPlayer.isSafariMacOS?a*e:e},UOLPlayer.environment=function(){var e=\"\";if(UOLPlayer.isInstantArticle)e=\"instant-article\";else if(UOLPlayer.isAMP){var t=UOLPlayer.getStaticParameter(UOLPlayer.getURL(),\"app\");e=void 0!==t?\"app-amp_\"+t:\"chrome-amp\"}else e=UOLPlayer.isIframe?\"external-iframe\":UOLPlayer.urlParameter.app?\"app_\"+UOLPlayer.urlParameter.app:\"uol-template\";return e},UOLPlayer.createHashId=function(){return Math.random().toString(36).substring(2,15)+(new Date).getTime()+Math.random().toString(36).substring(2,15)+Math.floor(1e4*Math.random())},UOLPlayer.setPoster=function(e,t){var a,i=e.key?e.key:\"\";void 0!==e.poster?a=e.poster:(revision=void 0!==e.revision?\"?ver=\"+e.revision:\"\",revision||(i=i.replace(\"&\",\"?\")),a=UOLPlayer[\"const\"].urls.THUMB+e.mediaId+(UOLPlayer.isIpad||!UOLPlayer.isMobile?\"-xlarge\":\"-wlarge\")+\".jpg\",a=a+revision+i),UOLPlayer.setThumb(t,a)},UOLPlayer.setThumb=function(e,t){e.addClass(\"hideElement\"),UOLPlayer.loadThumb(t,function(t){e.style.backgroundImage=\"url(\"+t+\")\",e.style.backgroundRepeat=\"no-repeat\",e.removeClass(\"hideElement\").addClass(\"showElement\")})},UOLPlayer.DNA=function(){var e=UOLPlayer.getCookie(\"DNA\")||\"\";return e.split(\"|\").shift()},UOLPlayer.cloneJSON=function(e){return JSON.parse(JSON.stringify(e))},UOLPlayer.hashCode=function(e){var t=0;if(0==e.length)return t;for(i=0;i<e.length;i++)char=e.charCodeAt(i),t=(t<<5)-t+char,t&=t;return Math.abs(t)},UOLPlayer.storageEnabled=function(){var e=!1,t=\"enabled\",a=\"UOLPlayer-checker\";try{window.localStorage.setItem(a,t),e=t===window.localStorage.getItem(a),window.localStorage.removeItem(a)}catch(i){}return e}(),UOLPlayer.instancesAutoLoaded=0,UOLPlayer.init=function(){UOLPlayer.i(\"UOLPlayer - ver: \"+UOLPlayer.version);var e,t,a=document.getElementsByClassName(\"uolplayer-link\");if(a.length>0){var i=0,r=a.length;for(a[0].parentNode.innerHTML+='<div class=\"up-lightbox display-none\"><div class=\"up-close\"></div><div class=\"up-container\"></div></div>',e=a[0].parentNode.getElementsByClassName(\"up-container\")[0],document.getElementsByClassName(\"up-close\")[0].addEventListener(\"click\",function(){t.destroy(!0),this.parentNode.addClass(\"display-none\"),t=null});i<r;i++)a[i].addEventListener(\"click\",function(a){a.preventDefault();var i=UOLPlayer.domNode(\"div\");i.addClass(\"uolplayer\"),i.setData(\"mediaid\",this.getData(\"mediaid\")),i.setData(\"autoplay\",!0),e.appendChild(i),e.parentNode.removeClass(\"display-none\"),t=new UOLPlayer(i)})}var a=document.getElementsByClassName(\"uolplayer\");if(UOLPlayer.setConfig(),UOLPlayer.setCookie(\"lplr_vlm\",UOLPlayer.getCookie(\"lplr_vlm\")||1),UOLPlayer.setCookie(\"lplr_pbr\",UOLPlayer.getCookie(\"lplr_pbr\")||1),UOLPlayerInjected||UOLPlayer.Cache.require({url:UOLPlayer.cssPath+\"uolplayer.min.css\",key:\"style\",type:UOLPlayer.Cache.type.CSS,checksum:UOLPlayer.isLocal?\"style_dev\":\"style\"}),UOLPlayer.loadJs({src:UOLPlayer[\"const\"].urls.GA,name:\"ga\",error:function(){var e={type:\"ErroGA\",method:\"loadJS\",event:\"load error\"};UOLPlayerLog.send({},\"metrics\",{payload:e}),UOLPlayer.e(\"[ GA ] Load error\")}}),UOLPlayer.instancesAutoLoaded=a.length,a.length>0&&!UOLPlayer.isTesting)for(var s,o,i=0,r=a.length;i<r;i++)o=a[i],s=o.getData(\"automount\")!==!1,s===!0?(o.setData(\"id\",\"uolplayer\"+(i+1)),new UOLPlayer(o)):UOLPlayer.i(\"[UOLPLAYER] automount desligado para o mediaId: \"+o.getData(\"mediaid\"))},UOLPlayer.init();","skip":false,"stamp":1581725938514,"expire":1599725938514,"updatedAt":1581725938548}


