“),n.document.close(),n.focus(),!0};t.getAdConfig=function(){var e=window.cdaaas&&window.cdaaas.SETTINGS||{},t={adUnit:e.TAG_MANAGER_AD_UNIT,adCustomData:e.TAG_MANAGER_AD_CUSTOM_DATA,adCmsId:e.TAG_MANAGER_AD_CMS_ID,adAccountId:e.TAG_MANAGER_AD_ACCOUNT_ID,extras:e.TAG_MANAGER_AD_EXTRAS,gaProductUA:e.PRODUCT_UA},n={width:”100%”,height:”100%”,adUnit:t.adUnit,adCmsId:t.adCmsId,adAccountId:t.adAccountId,ga:{productUA:t.gaProductUA,extras:{dimension1:”web”}}},r=[“ambient=web”,”tipo_pagina=multi-content”];if(t.adCustomData&&r.push(t.adCustomData),t.extras){if(“object”===o(t.extras)){var c=[];for(var i in t.extras)c.push(encodeURIComponent(i+”=”+t.extras[i]));r.push(“tvg_Extras=”.concat(c.join(“,”)))}”string”==typeof t.extras&&r.push(“tvg_Extras=”.concat(t.extras))}return n.adCustomData=r.join(“&”),n};var r=function(e,t){var n=document.createElement(“script”);n.type=”text/javascript”,n.defer=!0,n.charset=”utf-8″,n.src=e,n.onload=n.onreadystatechange=function(){(t&&!this.readyState||”complete”==this.readyState)&&t()},document.getElementsByTagName(“head”)[0].appendChild(n)};t.loadScript=r;var c=function(e,t){var n=document.createElement(“link”);n.type=”text/css”,n.rel=”stylesheet”,n.media=”screen,print”,n.href=e,n.onload=n.onreadystatechange=function(){(t&&!this.readyState||”complete”==this.readyState)&&t()},document.getElementsByTagName(“head”)[0].appendChild(n)};t.loadStyle=c;t.loadAssets=function(e,t){e.forEach(function(e){switch(e.type){case”stylesheet”:c(e.src,t);break;case”script”:r(e.src,t)}})};t.whenAvailable=function(e,t){window.setTimeout(function n(){window[e]?t():window.setTimeout(n,50)},50)}},15:function(e,t,n){},16:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.adsLazyload=function(){var e=document.querySelectorAll(“.tag-manager-publicidade-container[data-id]”);if(console.log(“[Lazy loading] Slots encontrados”,e),0===e.length)return;e.forEach(function(e){var t=e.getAttribute(“data-id”);e.setAttribute(“id”,t),(0,o.whenAvailable)(“bannerLazyLoading”,function(){return function(e){new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&(t.unobserve(e.target),googletag&&!googletag.pubads().getSlots().some(function(t){return t.getSlotElementId()===e.target.id})?(window.bannerLazyLoading(e.target.id,void 0),console.log(“[Lazy loading] Iniciado – Publicidade com id “.concat(e.target.id,” montada.”))):console.log(“[Lazy loading] Abortado – Publicidade com id “.concat(e.target.id,” já estava montada.”),{googletag:googletag,id:e.target.id}))})},{rootMargin:”150px 0px”,threshold:.01}).observe(e)}(e)})})};var o=n(0)},17:function(e,t,n){“use strict”;var o,r,c;function i(e){return(i=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e})(e)}!function(n,a){“object”==i(t)&&void 0!==e?a(t):(r=[t],void 0===(c=”function”==typeof(o=a)?o.apply(t,r):o)||(e.exports=c))}(0,function(e){var t,n,o=[];function r(e){var t=!0;return function(){t&&(e(),t=!1,setTimeout(function(){return t=!0},150))}}function c(e){var t=i();return e.el.getBoundingClientRect()[e.reference]+t-e.offset}function i(){if(“undefined”!=typeof pageYOffset)return pageYOffset;var e=document.documentElement;return(e=e.clientHeight?e:document.body).scrollTop}function a(){}function d(){var e;e=document.body.offsetHeight,n!==e&&(n=e,function(){t=window.innerHeight;for(var e=0,n=o;e
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,”a”,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=””,n(n.s=2)}([,function(e,t,n){},function(e,t,n){“use strict”;n(1)}]);
!function(t){var e={};function o(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(t,”__esModule”,{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&”object”==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,”default”,{enumerable:!0,value:t}),2&e&&”string”!=typeof t)for(var i in t)o.d(r,i,function(e){return t[e]}.bind(null,i));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,”a”,e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p=””,o(o.s=4)}([function(t,e,o){var r=o(2)();t.exports=r;try{regeneratorRuntime=r}catch(t){“object”==typeof globalThis?globalThis.regeneratorRuntime=r:Function(“r”,”regeneratorRuntime = r”)(r)}},function(t,e){function o(t,e,o,r,i,n,a){try{var c=t[n](a),s=c.value}catch(t){return void o(t)}c.done?e(s):Promise.resolve(s).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var a=t.apply(e,r);function c(t){o(a,i,n,c,s,”next”,t)}function s(t){o(a,i,n,c,s,”throw”,t)}c(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,o){var r=o(3).default;function i(){“use strict”;/*! regenerator-runtime — Copyright (c) 2014-present, Facebook, Inc. — license (MIT): */t.exports=i=function(){return o},t.exports.__esModule=!0,t.exports.default=t.exports;var e,o={},n=Object.prototype,a=n.hasOwnProperty,c=Object.defineProperty||function(t,e,o){t[e]=o.value},s=”function”==typeof Symbol?Symbol:{},u=s.iterator||”@@iterator”,d=s.asyncIterator||”@@asyncIterator”,l=s.toStringTag||”@@toStringTag”;function p(t,e,o){return Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},””)}catch(e){p=function(t,e,o){return t[e]=o}}function h(t,e,o,r){var i=e&&e.prototype instanceof w?e:w,n=Object.create(i.prototype),a=new I(r||[]);return c(n,”_invoke”,{value:E(t,o,a)}),n}function f(t,e,o){try{return{type:”normal”,arg:t.call(e,o)}}catch(t){return{type:”throw”,arg:t}}}o.wrap=h;var g=”suspendedStart”,v=”suspendedYield”,_=”executing”,y=”completed”,m={};function w(){}function O(){}function b(){}var L={};p(L,u,function(){return this});var G=Object.getPrototypeOf,x=G&&G(G(j([])));x&&x!==n&&a.call(x,u)&&(L=x);var D=b.prototype=w.prototype=Object.create(L);function S(t){[“next”,”throw”,”return”].forEach(function(e){p(t,e,function(t){return this._invoke(e,t)})})}function k(t,e){function o(i,n,c,s){var u=f(t[i],t,n);if(“throw”!==u.type){var d=u.arg,l=d.value;return l&&”object”==r(l)&&a.call(l,”__await”)?e.resolve(l.__await).then(function(t){o(“next”,t,c,s)},function(t){o(“throw”,t,c,s)}):e.resolve(l).then(function(t){d.value=t,c(d)},function(t){return o(“throw”,t,c,s)})}s(u.arg)}var i;c(this,”_invoke”,{value:function(t,r){function n(){return new e(function(e,i){o(t,r,e,i)})}return i=i?i.then(n,n):n()}})}function E(t,o,r){var i=g;return function(n,a){if(i===_)throw Error(“Generator is already running”);if(i===y){if(“throw”===n)throw a;return{value:e,done:!0}}for(r.method=n,r.arg=a;;){var c=r.delegate;if(c){var s=N(c,r);if(s){if(s===m)continue;return s}}if(“next”===r.method)r.sent=r._sent=r.arg;else if(“throw”===r.method){if(i===g)throw i=y,r.arg;r.dispatchException(r.arg)}else”return”===r.method&&r.abrupt(“return”,r.arg);i=_;var u=f(t,o,r);if(“normal”===u.type){if(i=r.done?y:v,u.arg===m)continue;return{value:u.arg,done:r.done}}”throw”===u.type&&(i=y,r.method=”throw”,r.arg=u.arg)}}}function N(t,o){var r=o.method,i=t.iterator[r];if(i===e)return o.delegate=null,”throw”===r&&t.iterator.return&&(o.method=”return”,o.arg=e,N(t,o),”throw”===o.method)||”return”!==r&&(o.method=”throw”,o.arg=new TypeError(“The iterator does not provide a ‘”+r+”‘ method”)),m;var n=f(i,t.iterator,o.arg);if(“throw”===n.type)return o.method=”throw”,o.arg=n.arg,o.delegate=null,m;var a=n.arg;return a?a.done?(o[t.resultName]=a.value,o.next=t.nextLoc,”return”!==o.method&&(o.method=”next”,o.arg=e),o.delegate=null,m):a:(o.method=”throw”,o.arg=new TypeError(“iterator result is not an object”),o.delegate=null,m)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type=”normal”,delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:”root”}],t.forEach(T,this),this.reset(!0)}function j(t){if(t||””===t){var o=t[u];if(o)return o.call(t);if(“function”==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function o(){for(;++i
(function(){function Se(e){return typeof e==”number”}function Ee(e){return typeof e==”string”}function be(e){return typeof e==”boolean”}function Fe(e){return Object.prototype.toString.call(e)===”[object Object]”}function I(e){return Math.abs(e)}function Te(e){return Math.sign(e)}function ae(e,t){return I(e-t)}function bt(e,t){if(e===0||t===0||I(e)t+n)}function de(e){return Object.keys(e)}function Re(e,t){return[e,t].reduce((o,n)=>(de(n).forEach(r=>{const s=o[r],i=n[r],l=Fe(s)&&Fe(i);o[r]=l?Re(s,i):i}),o),{})}function ke(e,t){return typeof t.MouseEventr.removeEventListener(s,i,l);else{const a=r;a.addListener(i),c=()=>a.removeListener(i)}return e.push(c),n}function o(){e=e.filter(r=>r())}const n={add:t,clear:o};return n}function xt(e,t,o,n){const r=fe(),s=1e3/60;let i=null,l=0,c=0;function a(){r.add(e,”visibilitychange”,()=>{e.hidden&&f()})}function C(){v(),r.clear()}function u(m){if(!c)return;i||(i=m,o(),o());const d=m-i;for(i=m,l+=d;l>=s;)o(),l-=s;const h=l/s;n(h),c&&(c=t.requestAnimationFrame(u))}function p(){c||(c=t.requestAnimationFrame(u))}function v(){t.cancelAnimationFrame(c),i=null,l=0,c=0}function f(){i=null,l=0}return{init:a,destroy:C,start:p,stop:v,update:o,render:n}}function St(e,t){const o=t===”rtl”,n=e===”y”,r=n?”y”:”x”,s=n?”x”:”y”,i=!n&&o?-1:1,l=C(),c=u();function a(f){const{height:g,width:m}=f;return n?g:m}function C(){return n?”top”:o?”right”:”left”}function u(){return n?”bottom”:o?”left”:”right”}function p(f){return f*i}return{scroll:r,cross:s,startEdge:l,endEdge:c,measureSize:a,direction:p}}function J(e=0,t=0){const o=I(e-t);function n(a){return a
`}function nn(e,t,o){const n=document.querySelector(t);if(!n){console.warn(`Render selector “${t}” not found in the document.`);return}n.classList.add(“is-hide”),setTimeout(()=>{on(n),n.innerHTML=””,o?o(e,n):rn(e,n),setTimeout(()=>{n.classList.remove(“is-hide”)},0)},250)}function on(e){const t=e._wmPlayer;if(t&&typeof t.destroy==”function”)try{t.destroy(),e._wmPlayer=null}catch(n){console.warn(“Erro ao destruir WM Player:”,n)}e.querySelectorAll(“[data-player]”).forEach(n=>{const r=n.id;if(window.Clappr&&r)try{const s=n._clapprPlayer;s&&typeof s.destroy==”function”&&s.destroy()}catch(s){console.warn(“Erro ao destruir player Clappr:”,s)}})}function rn(e,t){const o=sn(e);t.innerHTML=o}function sn(e){return`
`}const V={carousel:”.carousel-vertical-lightbox”,carouselWrapper:”.carousel-vertical-lightbox-wrapper”,wrapperCenter:”.carousel-vertical-lightbox-wrapper-center”,wrapperCenterTarget:”.carousel-vertical-lightbox-wrapper-center__target”,wrapperPrevious:”.carousel-vertical-lightbox-wrapper–previous”,wrapperNext:”.carousel-vertical-lightbox-wrapper–next”,closeButton:”.carousel-vertical-lightbox__close-button”,prevButton:”.carousel-vertical-lightbox__prev”,nextButton:”.carousel-vertical-lightbox__next”,volumeButton:”.carousel-vertical-lightbox__volume-button”,playButton:”.carousel-vertical-lightbox__play-button”,progressBarWrapper:”.carousel-vertical-lightbox__progress-bar-wrapper”,mobilePlayPause:”.carousel-vertical-lightbox-wrapper-center__mobile-play-pause”};function cn(){return document.querySelector(V.carousel)}function Ge(){return document.querySelector(V.carouselWrapper)}function oe(){return document.querySelector(V.wrapperCenter)}function Xe(){return document.querySelector(V.wrapperCenterTarget)}function an(){return document.querySelector(V.wrapperPrevious)}function ln(){return document.querySelector(V.wrapperNext)}function un(){return document.querySelector(V.closeButton)}function Ye(){return document.querySelector(V.prevButton)}function Ke(){return document.querySelector(V.nextButton)}function Qe(){return document.querySelector(V.volumeButton)}function dn(){return document.querySelector(V.playButton)}function Je(){const e=Xe();return e&&e._wmPlayer||null}function fn(){const e=an(),t=ln(),o=Xe();e&&(e.innerHTML=””),t&&(t.innerHTML=””),o&&(o.innerHTML=””)}function Ce(e,t,o,n){const r=Pe(e,t,”videoId”);fn(),r.itemsLeft.forEach(s=>{je(s,V.wrapperPrevious,{event:”click”,handler:o})}),r.itemsRight.forEach(s=>{je(s,V.wrapperNext,{event:”click”,handler:o})}),nn(t,V.wrapperCenterTarget,n)}function ge(e,t){const o=e.findIndex(s=>s.videoId===t.videoId),n=Ye(),r=Ke();n&&(n.disabled=o===0),r&&(r.disabled=o===e.length-1)}function _e(){const e=oe(),t=Je();if(!t){console.warn(“Player instance not found”);return}e?.classList.contains(“is-paused”)?t.play():t.pause()}function He(){const e=oe();e&&(e.classList.remove(“is-paused”),e.classList.remove(“is-playing”))}function pn(){const e=dn();e&&e.addEventListener(“click”,_e)}function Cn(){document.addEventListener(“click”,e=>{const t=e.target;t.tagName===”VIDEO”&&t.closest(V.wrapperCenterTarget)&&(e.preventDefault(),e.stopPropagation(),_e())})}function gn(){document.addEventListener(“click”,e=>{e.target.closest(V.mobilePlayPause)&&(e.preventDefault(),e.stopPropagation(),_e())})}function mn(){pn(),Cn(),gn()}function et(e){const{getVideos:t,getCurrentVideo:o,setCurrentVideo:n,handleCardClick:r,onNavigate:s,onCreateCenterCard:i,goToNext:l}=e,c=Pe(t(),o(),”videoId”);if(c.itemsLeft.length>0){const a=c.itemsLeft[c.itemsLeft.length-1];n(a),He(),Ce(t(),a,r,(C,u)=>{i?.(C,u,l)}),ge(t(),a),s?.(a,”prev”)}}function tt(e){const{getVideos:t,getCurrentVideo:o,setCurrentVideo:n,handleCardClick:r,onNavigate:s,onCreateCenterCard:i,goToNext:l}=e,c=Pe(t(),o(),”videoId”);if(c.itemsRight.length>0){const a=c.itemsRight[0];n(a),He(),Ce(t(),a,r,(C,u)=>{i?.(C,u,l)}),ge(t(),a),s?.(a,”next”)}}function hn(e,t){const{getVideos:o,setCurrentVideo:n,handleCardClick:r,onCreateCenterCard:s,goToNext:i}=t,l=o().find(c=>c.videoId===e);l&&(n(l),He(),Ce(o(),l,r,(c,a)=>{s?.(c,a,i)}),ge(o(),l))}function vn(e,t,o,n,r,s,i){const l={getVideos:e,getCurrentVideo:t,setCurrentVideo:o,handleCardClick:n,onNavigate:r,onCreateCenterCard:s,goToNext:i},c=()=>et(l),a=()=>tt(l),C=Ye(),u=Ke();C&&C.addEventListener(“click”,c),u&&u.addEventListener(“click”,a)}function Ve(e,t,o,n){return r=>{const i=r.currentTarget.dataset.videoId;i&&hn(i,{getVideos:e,setCurrentVideo:t,handleCardClick:Ve(e,t,o,n),onCreateCenterCard:o,goToNext:n})}}function nt(){return window.innerWidth{const i=Ge();if(!i){console.warn(“Carousel wrapper não encontrado para configurar swipe gestures”);return}const l=p=>{o=p.touches[0].clientY},c=p=>{n=p.changedTouches[0].clientY,a()},a=()=>{const p=o-n;p>r?C():ptt(e),u=()=>et(e);i.addEventListener(“touchstart”,l,{passive:!0}),i.addEventListener(“touchend”,c,{passive:!0})};document.readyState===”loading”?document.addEventListener(“DOMContentLoaded”,s):setTimeout(s,100)}const ot=”carousel-vertical-swipe-hint-seen”,bn=3e3,Ln=400;function yn(){if(!nt()||localStorage.getItem(ot))return;const e=oe();if(!e)return;const t=document.createElement(“div”);t.className=”carousel-vertical-swipe-hint”,t.setAttribute(“data-testid”,”carousel-vertical-swipe-hint”),t.innerHTML=`
`;let o=!1;const n=()=>{o||(o=!0,localStorage.setItem(ot,”1″),t.classList.add(“is-hiding”),setTimeout(()=>t.remove(),Ln))};t.addEventListener(“click”,n),Ge()?.addEventListener(“touchend”,n,{once:!0,passive:!0}),e.appendChild(t),setTimeout(n,bn)}const xn=`
`;function Sn(e){return`
`}function En(){document.documentElement.classList.add(“carousel-vertical-lightbox–opened”)}function Tn(){document.documentElement.classList.remove(“carousel-vertical-lightbox–opened”)}function Mn(e){e.querySelectorAll(“[data-video-id]”).forEach(o=>{const n=o._wmPlayer;if(n&&typeof n.destroy==”function”)try{n.destroy(),o._wmPlayer=null}catch(r){console.warn(“Erro ao destruir WM Player:”,r)}})}function kn(e){const t=un();t&&t.addEventListener(“click”,()=>{const o=cn();o&&(Mn(o),o.remove()),Tn(),e?.()})}function In(){const e=Qe();e&&e.addEventListener(“click”,()=>{const t=Je();if(!t){console.warn(“Player instance not found”);return}e.classList.contains(“is-muted”)?(e.classList.remove(“is-muted”),e.setAttribute(“data-mute-state”,”unmuted”),t.unmute()):(e.classList.add(“is-muted”),e.setAttribute(“data-mute-state”,”muted”),t.mute())})}function Pn(){const e=oe();e&&(e.addEventListener(“mouseenter”,()=>{e.classList.add(“is-hover”)}),e.addEventListener(“mouseleave”,()=>{e.classList.remove(“is-hover”)}))}function _n(e,t,o,n,r){const s=()=>{const l=(e().findIndex(a=>a.videoId===t().videoId)+1)%e().length,c=e()[l];o(c),Ce(e(),c,Ve(e,o,r,s),(a,C)=>{r?.(a,C,s)}),ge(e(),c),n?.(c,”next”)};return s}const rt={facebook:’‘,twitter:’‘,whatsapp:’‘,telegram:”Telegram”,copyLink:’‘,share:’‘};function Hn(e){return``}function Vn(e){const t=e.networks||{},o=[];return Object.keys(t).forEach(n=>{t[n]&&o.push(Hn(n))}),`
`}function Be(){return document.querySelector(“.carousel-share-wrapper”)}function st(){return document.querySelector(‘[data-network=”copyLink”]’)}function Bn(){const e=Be(),t=document.querySelector(“.carousel-share-trigger”),o=document.querySelector(“.carousel-share-networks”),n=st();if(!t||!o)return;let r=null;t.addEventListener(“click”,()=>{r!==null&&(clearTimeout(r),r=null),e?.classList?.contains(“is-active”)?(e?.classList?.remove(“is-active”),e?.classList?.remove(“is-opened”),n?.classList?.remove(“is-clicked”)):(e?.classList?.add(“is-active”),r=window.setTimeout(()=>{e?.classList?.add(“is-opened”),r=null},500))}),document.querySelectorAll(“.share-button-network”).forEach(i=>{i.addEventListener(“click”,l=>{const a=l.currentTarget.getAttribute(“data-network”);a&&Nn(a)})})}const it=new WeakMap;function An(e){const t=Be();t&&it.set(t,e)}function Nn(e){const t=Be(),o=(t&&it.get(t))??window.location.href,n=document.title;let r=””;switch(e){case”facebook”:r=` “+o)}`;break;case”telegram”:r=` s=st();s&&(s.classList.add(“is-clicked”),setTimeout(()=>{s.classList.remove(“is-clicked”)},2e3))}).catch(s=>{console.error(“Erro ao copiar URL:”,s)});return}r&&window.open(r,”_blank”,”noopener,noreferrer”)}function Dn(e){if(!e)return;const t=document.querySelector(“.carousel-vertical-lightbox__buttons-bottom”);if(!t){console.warn(“Element .carousel-vertical-lightbox-wrapper-center not found”);return}const o=Vn(e);t.insertAdjacentHTML(“afterbegin”,o),Bn()}function On({videoSelected:e,data:t,onClose:o,onNavigate:n,onLoad:r,onCreateCenterCard:s,shareConfig:i,showSwipeHint:l=!1}){const c=Sn(e.tenantId);document.body.insertAdjacentHTML(“beforeend”,c),En();const[a]=ze(t),[C,u]=ze(e),p=_n(a,C,u,n,s),v=Ve(a,u,s,p),f={getVideos:a,getCurrentVideo:C,setCurrentVideo:u,handleCardClick:v,onNavigate:n,onCreateCenterCard:s,goToNext:p};vn(a,C,u,v,n,s,p),wn(f),Ce(a(),C(),v,(g,m)=>{s?.(g,m,p)}),ge(a(),C()),kn(o),In(),mn(),Pn(),Dn(i),l&&yn(),r?.()}function $n(e,t){const{progressBarWrapper:o,progressBarContainer:n,progressBarFill:r,progressBarThumb:s,progressBarTime:i}=Un();t.appendChild(o);let l=!1,c=0,a=0,C=0,u=0;function p(w){const y=Math.floor(w/60),S=Math.floor(w%60);return`${y}:${S.toString().padStart(2,”0″)}`}function v(w,y){c=w,a=y;const S=y>0?w/y*100:0;r.style.width=`${S}%`,s.style.left=`${S}%`;const x=i.querySelector(“.current”),E=i.querySelector(“.total”);x&&(x.textContent=p(w)),E&&(E.textContent=p(y))}function f(w){const y=n.getBoundingClientRect();let S;”touches”in w?S=w.touches.length>0?w.touches[0].clientX:w.changedTouches[0].clientX:S=w.clientX;const x=S-y.left;return Math.max(0,Math.min(1,x/y.width))*a}function g(w){e&&typeof e.seek==”function”&&e.seek(Math.floor(w))}function m(w){l=!0,n.classList.add(“is-dragging”),”touches”in w&&(C=Date.now(),u=w.touches[0].clientX);const y=f(w);v(y,a),w.preventDefault()}function d(w){if(!l)return;const y=f(w);v(y,a),w.preventDefault()}function h(w){if(l){if(l=!1,n.classList.remove(“is-dragging”),”changedTouches”in w){const S=Date.now()-C,x=w.changedTouches[0].clientX,E=Math.abs(x-u);if(S{l||v(w.current,w.total)}),e.on(“canplay”,()=>{}),e.on(“ended”,()=>{v(a,a)}),e.on(“loadstart”,()=>{v(0,0)})),o._cleanup=()=>{n.removeEventListener(“mousedown”,m),n.removeEventListener(“click”,L),n.removeEventListener(“touchstart”,m),document.removeEventListener(“mousemove”,d),document.removeEventListener(“mouseup”,h),document.removeEventListener(“touchmove”,d),document.removeEventListener(“touchend”,h)},o}function Un(){const e=document.createElement(“div”);e.className=”carousel-vertical-lightbox__progress-bar-wrapper”;const t=document.createElement(“div”);t.className=”carousel-vertical-lightbox__progress-bar-container”;const o=document.createElement(“div”);o.className=”carousel-vertical-lightbox__progress-bar-fill”;const n=document.createElement(“div”);n.className=”carousel-vertical-lightbox__progress-bar-thumb”;const r=document.createElement(“div”);return r.className=”carousel-vertical-lightbox__progress-bar-time”,r.innerHTML=’0:00 / 0:00‘,t.appendChild(o),t.appendChild(n),e.appendChild(t),e.appendChild(r),{progressBarWrapper:e,progressBarContainer:t,progressBarFill:o,progressBarThumb:n,progressBarTime:r}}function Fn(e=””){if(!window.utag_data)return;const t=window.utag_data,o=t.ad_unit,n=t.editoria_path?`/${t.editoria_path}`:”/home”,r=e?`/${e}`:””;return r?`${o}${n}${r}`:`${o}${n}`}const Zn=”wmPlayerPlaylistLoaded”,Rn=” Y=null;function Wn(){try{const e=localStorage.getItem(ct);return e?JSON.parse(e):null}catch{return console.warn(“Could not load consumption URL cache from localStorage”),null}}function qn(e){try{localStorage.setItem(ct,JSON.stringify(e))}catch{console.warn(“Could not save consumption URL cache to localStorage”)}}function zn(e,t){return Rn.replace(“{videoId}”,e).replace(“{callbackName}”,t)}function jn(e){return new Promise(t=>{const o=`${Zn}${e}`,n=document.createElement(“script”),r=()=>{delete window[o],n.parentNode&&n.parentNode.removeChild(n)};window[o]=i=>{console.log(“[videoConsumptionUrl] JSONP response for”,e,”:”,i);const l=i?.videos?.[0]?.url_for_consumption??null;console.log(“[videoConsumptionUrl] Extracted URL:”,l),t(l),r()};const s=zn(e,o);console.log(“[videoConsumptionUrl] Loading script:”,s),n.src=s,n.onerror=()=>{console.error(“[videoConsumptionUrl] Script load error for videoId:”,e),t(null),r()},document.head.appendChild(n)})}function at(e,t=Y){return!t||t.videoIds.length!==e.length?!1:e.every(o=>t.videoIds.includes(o))}async function Gn(e){const t=e.map(s=>s.videoId);if(console.log(“[videoConsumptionUrl] Fetching URLs for videoIds:”,t),at(t))return console.log(“[videoConsumptionUrl] Using in-memory cache”),Y.urls;const o=Wn();if(o&&at(t,o))return console.log(“[videoConsumptionUrl] Using localStorage cache”),Y=o,Y.urls;console.log(“[videoConsumptionUrl] Cache miss, fetching from API”),Y=null;const n=await Promise.all(t.map(async s=>{const i=await jn(s);return[s,i]}));console.log(“[videoConsumptionUrl] Fetched entries:”,n);const r={};for(const[s,i]of n)i&&(r[s]=i);return console.log(“[videoConsumptionUrl] Built urls object:”,r),Y={videoIds:t,urls:r},qn(Y),r}function Xn(e){return Y?.urls[e]??null}function Yn(e,t,o){if(window.WM===void 0)return console.error(“WM Player library is not loaded.”),null;const n=new window.WM.Player({source:e.videoId,width:”100%”,height:”100%”,preventBlackBars:!0,chromeless:!0,adUnit:Fn(“video”),ga4:{event_params:{video_format:”vertical”}},events:{onCanPlay:function(){n.consent(),n.play()},onPlay:function(){Qe()?.getAttribute(“data-mute-state”)===”muted”?n.mute():n.unmute();const c=oe();c&&(c.classList.remove(“is-paused”),c.classList.add(“is-playing”))},onPause:function(){const i=oe();i&&(i.classList.add(“is-paused”),i.classList.remove(“is-playing”))},onEnded:function(){o&&o()}}});n.attachTo(t);const r=Xn(e.videoId);r&&An(r),t._wmPlayer=n;const s=t.closest(V.wrapperCenter);if(s){const i=s.querySelector(V.progressBarWrapper);i&&(i._cleanup&&i._cleanup(),i.remove());const l=$n(n,s);t._progressBar=l}return n}const Kn={default:{bg:”#1e4c9a”,text:”#fff”},error:{bg:”#f00″,text:”#fff”},warning:{bg:”#ff0″,text:”#000″},ga:{bg:”#06aa48″,text:”#000″},”ga-error”:{bg:”#f00″,text:”#fff”}};function Le({text:e=””,title:t=””,type:o=”default”}){let n=t;if(o===”ga”?n=”log-ga-event”:o===”ga-error”&&(n=”log-ga-event-error”),n1()){const r=Qn(o);console.log(`%c %c${n} `,r.header,r.title,e)}}function Qn(e=”default”){const t=Kn[e];return{header:`background: ${t.bg}; color: ${t.text}; font-weight:bold; font-size:14px; padding:2px; margin-right:5px;`,title:`background: ${t.bg}; color: ${t.text}; font-weight:bold; font-size:14px; padding:2px;`}}const Ae=”Carrossel Vertical”,ye=`pageRefresh | ${Ae}`;let re=null;function Jn(){re&&clearInterval(re),re=setInterval(()=>{window.WindowControl?.pageRefresh?.timeOut&&(Le({title:ye,text:”WindowControl.pageRefresh.timeOut detected, calling stop again”}),ut())},200)}function e1(){re&&(clearInterval(re),re=null)}function lt(e){const t=Date.now(),o=6e4,r=setInterval(()=>{if(window.WindowControl?.pageRefresh){clearInterval(r),e();return}Date.now()-t>=o&&(clearInterval(r),Le({title:ye}),console.warn(“⚠️ window.WindowControl is not available”))},200)}function t1(){e1(),lt(()=>{Le({title:ye,text:”WindowControl.pageRefresh.start”}),window.WindowControl?.pageRefresh.start(Ae)})}function ut(){lt(()=>{Le({title:ye,text:”WindowControl.pageRefresh.stop”}),window.WindowControl?.pageRefresh.stop(Ae),Jn()})}function n1(){if(typeof window>”u”)return!1;const e=window.location.host;return e.includes(“oglobo.qa.globoi.com”)||e.includes(“localhost”)}function o1(){return new Promise((e,t)=>{if(window.WM){e();return}const o=document.querySelector(‘script[src*=”api.min.js”]’);if(o){o.addEventListener(“load”,()=>e()),o.addEventListener(“error”,()=>t(new Error(“Falha ao carregar WM script”)));return}const n=document.createElement(“script”);n.src=” script carregado com sucesso”),e()},n.onerror=()=>{console.error(“Erro ao carregar WM script”),t(new Error(“Falha ao carregar WM script”))},document.head.appendChild(n)})}function r1(e){const t=new Set,o=[],n=[];return e.forEach(r=>{const s=String(r.videoId);t.has(s)?n.push(r):(t.add(s),o.push(r))}),n.length>0&&(console.warn(`⚠️ Removed ${n.length} duplicate video(s)`),console.log(“Duplicate videos removed:”,n)),o}async function s1(e,t){const o=r1(e);if(Gn(o).catch(n=>{console.error(“Erro ao buscar URLs de consumo dos vídeos:”,n)}),!window.WM)try{await o1()}catch(n){console.error(“Não foi possível carregar o WM script:”,n);return}On({videoSelected:t,data:o,showSwipeHint:!0,shareConfig:{networks:{facebook:!0,twitter:!0,whatsapp:!0,copyLink:!0}},onLoad:()=>{ut()},onClose:()=>{t1()},onCreateCenterCard(n,r,s){Yn(n,r,s)}})}function i1(e){return{videoId:e.videoId,videoDomain:e.videoDomain,videoPoster:e.videoPoster,videoHat:e.videoHat,videoTitle:e.videoTitle}}async function c1({carouselElement:e}){if(!e)return;const t=[];e.querySelectorAll(“.vertical-videos__image”).forEach(o=>{const n=o;t.push(i1(n.dataset)),o.addEventListener(“click”,a1)}),window.carouselVideosVerticaisItems=t}function a1(e){const t=e.currentTarget;s1(window.carouselVideosVerticaisItems,t.dataset)}document.addEventListener(“DOMContentLoaded”,async()=>{const e=document.querySelector(“.carousel-lista-videos-verticais”);e&&(await Jt({carouselElement:e}),await c1({carouselElement:e}))})})();
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,”a”,t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=””,r(r.s=0)}([function(e,t,r){“use strict”;r.r(t);r(1);!function(){const e=”token”;function t(e){try{return decodeURIComponent(e)}catch(t){return e}}function r(){return window.UserDataGloboId&&”object”==typeof window.UserDataGloboId?window.UserDataGloboId:function(e){if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}(function(e){const r=document.cookie?document.cookie.split(“; “):[];for(let n=0;n
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,”a”,t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=””,r(r.s=0)}([function(e,t,r){“use strict”;r.r(t);r(1);document.addEventListener(“DOMContentLoaded”,function(){let e=document.querySelectorAll(“.card-wildcard-listagem”);if(e)for(let t=0;t
//]]>
