Agito
Agito, por Thi Araujo

O blog do universo LGBTQIAPN+

Informações da coluna

Agito, por Thi Araujo

Um blog sobre cultura queer e a noite LGBTQIAPN+, antenado com tudo que acontece na comunidade no Rio, no Brasil e no mundo. A página Agito é feita com colaboração de Felipe Sousa

O halterofilista representou o México nos Jogos Olímpicos de Tóquio 2020

Fotos picantes de atleta olímpico viralizam no X após ele criar OnlyFans para financiar carreira esportiva

Local deixou de ocupar o Arco do Teles e passa a funcionar na Rua da Quitanda

Primeiro centro cultural LGBTQIAPN+ do Rio inaugura sobrado histórico de três andares na região central com show de Linn da Quebrada
Agito, por Thi Araujo
Um blog sobre cultura queer e a noite LGBTQIAPN+, antenado com tudo que acontece na comunidade no Rio, no Brasil e no mundo. A página Agito é feita com colaboração de Felipe Sousa
Thiago Araújo
Jornalista formado pela UFRJ, criador de conteúdo para a comunidade LGBTQIAPN+ há mais de 15 anos e editor-chefe do portal Pheeno.com.br!
`}\n
\n
\n
    \n
    \n
    \n `),{templateItem:({title:e="",type:n,url:r,publisher:o,icone:i,iconeWidth:a,score:c,parent:u},l)=>"empty-message"===n?`
  • ${e}
  • `:"block-title"===n?`
  • ${e}
  • `:`\n
  • \n \n
    \n \n \n \n
    \n
    \n ${s(e,n)}\n ${((e="")=>e?`Em ${e}`:"")(u)}\n
    \n
    \n
  • `}};var H=(e={})=>{const{transformPreSuggest:t,transformSuggest:n,limitResult:r,limitHistory:o,minLength:i}=e,a=i,s="undefined"!=typeof window&&window.console?window.console:null,{templateItem:c}=$(e);let u=null;const l=e=>{document.querySelector(".searchV2__suggest__items").innerHTML=e.map(c).join("")},p=e=>Object.assign({},e,{limitResult:r,limitHistory:o}),d=()=>"preSuggest"===u?Promise.resolve():(u="preSuggest",new Promise(e=>M().then(p).then(t).then(l).then(e).catch(({message:e})=>{s&&s.error&&s.error(e)}))),f=({name:e,message:t})=>{switch(e){case"Validation":d();break;default:s&&s.error&&s.error(t)}};return{renderPreSuggest:d,renderSuggest:e=>new Promise(t=>U(e,a).then(q).then(p).then(n(e)).then(l).then(()=>{u="suggest"}).then(t).catch(f)),handleSuggestError:f}};var V=()=>{const e=document.body,t=e.querySelector(".searchV2"),n=t.querySelector(".searchV2__header__term");let r,o=null;const i=(e,t)=>n=>{const r=((e,t)=>{if(!window.Element||!window.Element.prototype.closest){let n=e;const r=e=>1===e.nodeType&&!e.classList.contains(t);for(;r(n);)n=n.parentNode;return n.classList&&n.classList.contains(t)?n:null}return e.closest(`.${t}`)})(n.target,e);r&&t.call(r,n)};let a={};return{get el(){return t},get term(){return n.value},set term(e){n.value=e},set afterClose(e){o=e},on:(e,t,n,r={},o=document.body)=>{const s=`${t}--${e}`;a=Object.assign({},a,{[s]:i(t,n)}),o.addEventListener(e,a[s],r)},off:(e,t,n,r={},o=document.body)=>{o.removeEventListener(e,a[`${t}--${e}`],r)},attachEvent(e,n,r,o={}){const i=[].slice.call(t.querySelectorAll(n));for(let t=0;t{r=window.pageYOffset,e.classList.add("searchV2__noscroll"),e.style.top=`-${r}px`,window.requestAnimationFrame(()=>{const e=()=>{n(),t.removeEventListener("transitionend",e)};t.classList.add("searchV2--animate","searchV2--opened"),t.addEventListener("transitionend",e)})},close:()=>{e.classList.remove("searchV2__noscroll"),window.requestAnimationFrame(()=>{e.style.top="",window.scrollTo(0,r),r=0,t.classList.remove("searchV2--opened")});const n=()=>{o(),t.classList.remove("searchV2--animate"),t.removeEventListener("transitionend",n)};t.addEventListener("transitionend",n)},btnReset:{set display(e){const n="show"===e?"block":"none";t.querySelector(".searchV2__header__btn-reset").style.display=n}}}};var W=(e={})=>{const{debugMode:t=!1,handleGA:n}=e,r="busca_framework",o="undefined"!=typeof window&&window.console?window.console:null,i=(...e)=>(t&&o&&(o.group("Search tracking"),o.log([r,...e]),o.groupEnd("Search tracking")),n(["_trackEvent",r,...e]));return{search:e=>i("item buscado",e),loadSuggest:e=>i("suggest carregado",e),clickItem:e=>{i("suggests",`clique | navegacional | ${e}`)},open:()=>i("abrir busca","abrir busca",!0),close:()=>i("fechar busca","fechar busca",!0),focus:()=>i("foco campo","foco campo",!0)}};const G=({keyCode:e})=>-1===[13].indexOf(e)?Promise.resolve():Promise.reject(),z=(e="")=>{const t=(()=>{if("undefined"==typeof document)return"";const e=document.querySelector(".header__search");return e?(e.getAttribute("data-search-url")||"").trim():""})();if(t){return`${t.replace(/\/+$/g,"")}/?q=${e}`}return`${O().home}busca/?q=${e}`},J=e=>{if(!e)return e;if(/^(https?:)?\/\//.test(e))return e;const t=(()=>{if("undefined"==typeof document||"undefined"==typeof window)return"";const e=document.querySelector(".header__search"),t=e?e.getAttribute("data-search-url"):"";if(!t)return"";try{return new URL(t,window.location.origin).origin}catch(e){return""}})();return t?e.startsWith("/")?`${t}${e}`:`${t}/${e}`:e},X={combate:{name:"combate_terciario",width:14},g1:{name:"g1_primario",width:18},globo:{name:"globocom_terciario",width:16},ge:{name:"globoesporte_secundario",width:19},globonews:{name:"globonews_terciario",width:21},ego:{name:"ego_terciario",width:18},cartola:{name:"cartola_terciario",width:18},globoplay:{name:"globoplay_terciario_color",width:24},globosatplay:{name:"globosatplay_terciario",width:16},gshow:{name:"gshow_terciario",width:16},sportv:{name:"sportv_terciario",width:16},techtudo:{name:"techtudo_secundario",width:12}},K=e=>{const t=e.title||e.text,n=e.publisher?e.publisher.toLowerCase():"",r=e.parent||n,o=("feature_content"===e.type||n)&&e.url?e.url:z(t),i=J(o);return{title:t,type:e.type||"searched",url:i,score:e.score||null,publisher:n||"",icone:X[n]?X[n].name:"eixo-icone-busca",iconeWidth:X[n]?X[n].width:22,parent:r||""}},Q=(()=>{const e=window.SEARCH_HOSTNAME||window.location.hostname;return["valorinternational.globo.com","valorinternational.qa.globoi.com"].includes(e)?{topSearches:"Top searches",recentSearches:"Recent Searches",inputPlaceholder:"What are you looking for?",emptyMessage:"No results found for"}:{topSearches:"Mais buscados",recentSearches:"Buscas Recentes",inputPlaceholder:"o que você procura?",emptyMessage:"Nenhum resultado encontrado para"}})(),Y={data:{}},Z=e=>(e||"").toString().toLowerCase(),ee=()=>{if("undefined"==typeof window)return{priority:null,restrictions:[]};const e=(()=>{if("undefined"==typeof document)return"";const e=document.querySelector(".header__search");return e&&e.getAttribute("data-search-tenant")||""})()||(k?k():null);return{priority:Z(e),restrictions:Array.isArray(window.searchTenantsRestriction)?window.searchTenantsRestriction.map(Z).filter(Boolean):[]}},te={transformPreSuggest:e=>[...(({searchHistoryHtml:e,limitResult:t})=>e?[{title:Q.recentSearches,type:"block-title"},...e.reverse().slice(0,t).map(({data:e})=>K(e))]:[])(e),...(({preSuggest:e=Y,limitHistory:t})=>e.data.suggestions?[{title:Q.topSearches,type:"block-title"},...e.data.suggestions.slice(0,t).map(K)]:[])(e)],transformSuggest:e=>(t={})=>{const n=t.data||{};let r=[];"undefined"!=typeof window&&!0===window.ENABLE_FEATURED_CONTENT&&(Array.isArray(n.featured_content)?r=n.featured_content:Array.isArray(n.featuredContent)&&(r=n.featuredContent));const o=Array.isArray(n.suggestions)?n.suggestions:[],i=(()=>{const e=window.SEARCH_HOSTNAME||window.location.hostname;return["valor.globo.com","valor.qa.globoi.com"].includes(e)?"valor":["pipelinevalor.globo.com","pipelinevalor.qa.globoi.com"].includes(e)?"pipelinevalor":["valorinveste.globo.com","valorinveste.qa.globoi.com"].includes(e)?"valorinveste":"outro"})(),a=(e=>({valor:"searchvaloreconomico",pipelinevalor:"searchpipeline",valorinveste:"searchvalorinveste"})[e]||"")(i),{priority:s,restrictions:c}=ee();let u=r;"valor"===i?s&&(u=u.filter(e=>Z(e.product)===s)):["pipelinevalor","valorinveste"].includes(i)?c.length>0&&(u=u.filter(e=>c.includes(Z(e.product)))):s&&(u=u.filter(e=>((e,t)=>[e.product,e.publisher,e.parent].some(e=>Z(e)===t))(e,s)));const l=u.map(e=>{const t=Object.assign({},e,{type:"feature_content"});return K(t)}).filter(e=>{const t=e.url||"";return!t.includes("/valor-ri/empresa")&&!t.includes("interno_origem=multicontent")}).map(e=>{if(!(e.url||"").includes("/empresas/valor-empresas-360"))return e;const t=new URL(e.url,window.location.origin),n=t.origin+t.pathname;let r=t.searchParams.get("interno_origem");return r&&"multicontent"!==r||(r=a),Object.assign({},e,{url:`${n}?360&interno_origem=${r}`})}).sort((e,t)=>{const n=(e.url||"").includes("/empresas/valor-empresas-360"),r=(t.url||"").includes("/empresas/valor-empresas-360");return n&&!r?-1:!n&&r?1:0}).slice(0,t.limitResult||6),p=o.slice(0,t.limitHistory||4).map(K);return 0===l.length&&0===p.length?[{title:`${Q.emptyMessage} "${e}"`,type:"empty-message"}]:[...l,...p,(e=>K({title:e,type:"default-item"}))(e)]},baseSVGPath:"svg/sprite.min.svg",afterClose:null,className:"",placeholder:Q.inputPlaceholder,transitionDuration:null,limitResult:3,limitHistory:4,debugMode:!1,minLength:2,handleGA:e=>e,insertHTML(e){document.body.insertAdjacentHTML("beforeEnd",e)}};var ne=(e={})=>{const t=Object.assign({},te,e),{renderPreSuggest:n,renderSuggest:r,handleSuggestError:o}=H(t),i=W(t),a=V(t),s=t.minLength,c=()=>{a.btnReset.display="hide",a.term=""},u=B(e=>{!e||e.length{a.attachEvent("click",".searchV2__item a",function(){const e=this.parentNode.getAttribute("data-search-url");i.clickItem(e)}),i.loadSuggest(e)})},500),l=e=>{e.stopPropagation(),e.preventDefault();const t=a.term.trim();U(t,s).then((e=>()=>{P({title:e,url:z(e),score:null}),i.search(e),window.location.href=z(e)})(t)).catch(o)},p=F([N],function(e){e.stopPropagation(),e.preventDefault();const t=this.getAttribute("data-search-url"),n=unescape(this.getAttribute("data-search-title"));"feature_content"===this.getAttribute("data-search-type")?i.clickItem(t):i.search(n),P({url:t,title:n,publisher:this.getAttribute("data-search-publisher"),score:this.getAttribute("data-search-score")})}),d=()=>{i.close(),a.close()},f=F([G,D,({target:e})=>(a.btnReset.display=e.value.length<=0?"hide":"show",Promise.resolve())],e=>{const t=e.target.value.trim();u(t)}),h=F([N],e=>{n().then(c),e.preventDefault(),e.stopPropagation()}),m=F([N],d),g=()=>{i.focus()},y=()=>{a.attachEvent("focus",".searchV2__header__term",g).attachEvent("keyup",".searchV2__header__term",f).attachEvent("touchstart",".searchV2__header__btn-back",m,{passive:!0}).attachEvent("touchstart",".searchV2__header__btn-reset",h,{passive:!0}).attachEvent("submit",".searchV2__header__form",l),a.on("touchstart","searchV2__item",p,{passive:!0})};return{open:()=>{n().then(c),i.open(),a.afterClose=(()=>{"function"==typeof t.afterClose&&t.afterClose(),a.detachEvent("focus",".searchV2__header__term",g).detachEvent("keyup",".searchV2__header__term",f).detachEvent("touchstart",".searchV2__header__btn-back",m,{passive:!0}).detachEvent("touchstart",".searchV2__header__btn-reset",h,{passive:!0}).detachEvent("submit",".searchV2__header__form",l).detachEvent("touchstart",".searchV2__item",p,{passive:!0}),a.off("touchstart","searchV2__item",p,{passive:!0})}),a.open(y)},close:d}},re=n(1),oe=n.n(re),ie=n(4),ae=n.n(ie),se=n(5),ce=n.n(se),ue=function(e){var t=document.createElement("div");t.className="search-suggest__menu-group";return{root:t,render:function(n){var r=n.label,o=n.items,i=n.onClick;if(!o.length)return null;var a=document.createElement("p");a.className="search-suggest__menu-label",a.innerHTML="".concat('\n \n \n \n \n'," ").concat(r);var s=document.createElement("ul");s.className="search-suggest__menu-list",o.forEach(function(e){var t=document.createElement("li"),n=e.parent?'Em '.concat(e.parent,""):"";t.innerHTML='').concat(e.label).concat(n,""),s.appendChild(t),i&&t.addEventListener("click",function(t){i(t,e)})}),t.appendChild(a),t.appendChild(s),e.appendChild(t)}}};function le(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var pe=function(e){var t=document.createElement("div");t.className="search-screen search-screen--cover",e.appendChild(t);return{root:t,render:function(e){var n=e.latestSearches,r=e.suggestions;le(t),n.length>0&&ue(t).render({label:"Recentes",items:n}),r.length>0&&ue(t).render({label:"Mais buscados",items:r})},show:function(){t.classList.add("search-screen--is-active")},hide:function(){t.classList.remove("search-screen--is-active")}}},de=function(e){var t=document.createElement("aside");t.className="search-suggest search-suggest__menu";return{root:t,render:function(){e.appendChild(t)},show:function(){t.classList.add("search-suggest--is-active"),t.classList.remove("search-suggest--is-disable")},hide:function(){t.classList.remove("search-suggest--is-active"),setTimeout(function(){t.classList.add("search-suggest--is-disable")},300)}}},fe=function(e){var t=e.searchUrl,n=e.term,r=e.label,o=n||"";return{url:"".concat(t,"/?q=").concat(encodeURIComponent(o)),label:r||o,term:o}},he=["valorinternational.globo.com","valorinternational.qa.globoi.com"].includes(window.location.hostname)?"valorinternational":"other_tenant",me={valorinternational:"Results",other_tenant:"Resultados"},ge={valorinternational:"search for",other_tenant:"buscar por"},ye=function(e){var t=document.createElement("div");t.className="search-screen search-screen--suggest",e.appendChild(t);return{root:t,render:function(e){var n=e.searchUrl,r=e.search,o=e.suggestions,i=void 0===o?[]:o,a=e.onClick,s=void 0===a?null:a;le(t);var c=oe()(i),u=fe({searchUrl:n,term:r,label:"".concat(ge[he],' "').concat(r,'"')});c.push(u),c.length>0&&ue(t).render({label:me[he],items:c,onClick:s})},show:function(){t.classList.add("search-screen--is-active")},hide:function(){t.classList.remove("search-screen--is-active")}}},ve=function(e){var t=e.cacheLimit,n=void 0===t?3:t,r="search_suggest_latest",o={get:function(e){return JSON.parse(localStorage.getItem(e))},set:function(e,t){localStorage.setItem(e,JSON.stringify(t))},clear:function(){localStorage.clear()}},i=function(){return o.get(r)||[]};return{get:i,add:function(e){if(e.label=e.term,e.label){var t=i()||[];return t=[e].concat(oe()(t)),o.set(r,t.slice(0,n)),o.get(r)||[]}},clear:function(){o.set(r,null)}}},be=n(13),we=n.n(be),_e=n(2),xe=n.n(_e),Se=n(6),Ee=n.n(Se),Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=function(){var e=window.location.hostname;return["valor.globo.com","valor.qa.globoi.com"].includes(e)?"valor":["pipelinevalor.globo.com","pipelinevalor.qa.globoi.com"].includes(e)?"pipelinevalor":["valorinveste.globo.com","valorinveste.qa.globoi.com"].includes(e)?"valorinveste":"outro"},o=function(){return t?{"X-Tenant-Id":t,"X-Config-Id":"".concat(t,"Default")}:{}},i=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){if(!e)return null;if("string"==typeof e)return{text:e,highlighted:e};if("object"===xe()(e)){var t=e.text||e.term||e.label||"";return t?{text:t,highlighted:e.highlighted||e.label||t}:null}return null}).filter(Boolean)},a=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=({pipelinevalor:["pipelinevalor"],valorinveste:["valor-investe"]}[arguments.length>2&&void 0!==arguments[2]?arguments[2]:r()]||n||[]).filter(Boolean),a=i.length>0?i.join(","):t,s=new URLSearchParams;return s.set("size",e),a&&s.set("priority",a),o&&s.set("q",o),"".concat(function(){var e=window.location.hostname;return e.includes(".qa.")||e.includes("localhost")?"https://suggestions.qa.globoi.com/v1/suggest":"https://suggestions.globo.com/v1/suggest"}(),"?").concat(s.toString())},s=function(e,t){return["valor","valorinveste","pipelinevalor"].includes(t)?oe()(e).filter(function(e){var t;return!(null!==(t=e.url)&&void 0!==t&&t.includes("interno_origem=multicontent"))}).map(function(e){var n;if(null!==(n=e.url)&&void 0!==n&&n.includes("/empresas/valor-empresas-360")&&!e.url.includes("interno_origem")){var r=e.url.split("?")[0];e.url="".concat(r,"?360&interno_origem=").concat(function(e){return{valor:"searchvaloreconomico",pipelinevalor:"searchpipeline",valorinveste:"searchvalorinveste"}[e]||""}(t))}return e}).sort(function(e,t){var n,r;return(null!==(n=e.url)&&void 0!==n&&n.includes("/empresas/valor-empresas-360")?0:1)-(null!==(r=t.url)&&void 0!==r&&r.includes("/empresas/valor-empresas-360")?0:1)}):e};return{getCoverItems:function(){var t=we()(Ee.a.mark(function t(){var n,r,s,c,u,l=arguments;return Ee.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=l.length>0&&void 0!==l[0]?l[0]:3,t.prev=1,t.next=2,fetch(a(n),{headers:o()});case 2:if((r=t.sent).ok){t.next=3;break}throw new Error("HTTP error ".concat(r.status));case 3:return t.next=4,r.json();case 4:return s=t.sent,c=i(s.suggestions),t.abrupt("return",c.map(function(t){return fe({searchUrl:e,term:t.text,label:t.highlighted||t.text})}));case 5:return t.prev=5,u=t.catch(1),console.error("[SearchSuggest]",u),t.abrupt("return",[]);case 6:case"end":return t.stop()}},t,null,[[1,5]])}));return function(){return t.apply(this,arguments)}}(),getSuggestItems:function(){var c=we()(Ee.a.mark(function c(u){var l,p,d,f,h,m,g,y,v,b=arguments;return Ee.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=b.length>1&&void 0!==b[1]?b[1]:3,p=r(),["valorinveste","pipelinevalor"].includes(p)&&(l=6),c.prev=1,c.next=2,fetch(a(l,u,p),{headers:o()});case 2:if((d=c.sent).ok){c.next=3;break}throw new Error("HTTP error ".concat(d.status));case 3:return c.next=4,d.json();case 4:return f=c.sent,h=i(f.suggestions),m=h.map(function(t){return fe({searchUrl:e,term:t.text,label:t.highlighted||t.text})}),g=[],"valor"===p?t&&(g=g.filter(function(e){var n;return e.product===t&&!(null!==(n=e.url)&&void 0!==n&&n.includes("/valor-ri/empresa"))})):["pipelinevalor","valorinveste"].includes(p)?n.length>0&&(g=g.filter(function(e){var t;return(n.includes(e.product)||n.includes(e.publisher)||n.includes(e.parent))&&!(null!==(t=e.url)&&void 0!==t&&t.includes("/valor-ri/empresa"))})):t&&(g=g.filter(function(e){return e.product===t||e.publisher===t||e.parent===t})),["valorinveste","pipelinevalor"].includes(p)&&(g=(g=g.filter(function(e,t,n){return t===n.findIndex(function(t){return t.url===e.url})})).slice(0,3)),g=s(g,p),y=g.map(function(e){return{url:e.url,label:e.title,parent:e.parent||e.publisher}}),c.abrupt("return",[].concat(oe()(y),oe()(m)));case 5:return c.prev=5,v=c.catch(1),console.error("[SearchSuggest]",v),c.abrupt("return",[]);case 6:case"end":return c.stop()}},c,null,[[1,5]])}));return function(e){return c.apply(this,arguments)}}()}},Oe=function(){return ce()(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ae()(this,e),this._options=t,this.root=document.querySelector(this._options.rootSelector),this.input=document.querySelector(this._options.inputSelector),this.form=this.root.querySelector("form"),this.search="";var n=window.location,r=(this._options.searchUrl||this.root.getAttribute("data-search-url")||"").trim()||"".concat(n.protocol,"/").concat(n.host,"/busca/");this.searchUrl=r.replace(/\/+$/g,""),this.searchTenant=this._options.searchTenant||this.root.getAttribute("data-search-tenant")||null,this.main=de(this.root),this.main.render(),this.cover=pe(this.main.root),this.suggest=ye(this.main.root),this.searchTenantsRestriction=[this.searchTenant].concat(oe()(window.searchTenantsRestriction)),this.suggestService=Ae(this.searchUrl,this.searchTenant,this.searchTenantsRestriction),this.latestStorage=ve({cacheLimit:3}),this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.handleSuggest=this.handleSuggest.bind(this),this.handleClickSuggestion=this.handleClickSuggestion.bind(this),this.handleSubmit=this.handleSubmit.bind(this),this.bind()},[{key:"handleOpen",value:function(){this.search=this.input.value.trim(),this.render(),this.main.show()}},{key:"handleClose",value:function(){this.main.hide()}},{key:"handleSuggest",value:function(e){this.search=e.target.value.trim(),this.render()}},{key:"handleClickSuggestion",value:function(e,t){this.latestStorage.add(t)}},{key:"handleSubmit",value:function(){this.latestStorage.add(fe({searchUrl:this.searchUrl,term:this.search}))}},{key:"bind",value:function(){this.input.addEventListener("focus",this.handleOpen),this.input.addEventListener("blur",this.handleClose),this.input.addEventListener("keyup",this.handleSuggest),this.form&&this.form.addEventListener("submit",this.handleSubmit)}},{key:"render",value:function(){var e=this;this.search?this.suggestService.getSuggestItems(this.search).then(function(t){e.suggest.render({searchUrl:e.searchUrl,search:e.search,suggestions:t,onClick:e.handleClickSuggestion}),e.suggest.show(),e.cover.hide()}):this.suggestService.getCoverItems().then(function(t){var n=e.latestStorage.get();e.cover.render({latestSearches:n,suggestions:t}),e.cover.show(),e.suggest.hide()})}}])}(),je=function(){var e=document.getElementById("header"),t=document.querySelector(".header-lift"),n=document.getElementById("header-placeholder"),r=e.scrollHeight/2,o=e.classList.contains("header--has-gcom-bar"),i=0;new Oe({rootSelector:".header__search ",inputSelector:".header__search__input"});var a=function(){n.style.height="50px"},s=function(){n.style.height="0px"},u=ne({baseSVGPath:""}),l=document.querySelector(".header__search__icon")||document.querySelector(".header__search__icon_vi")||document.querySelector(".header__search__icon_usp");l&&l.addEventListener("click",function(e){e.preventDefault(),c()||u.open()});var p=function(){var n=window.pageYOffset,u=e.classList.contains("header--fixed"),l=t.classList.contains("header--fixed");e.classList.contains("header--internal")&&c()&&!o||(c()?n>=r&&!u?(e.classList.add("header--fixed"),t.classList.add("header--fixed"),a()):ne.scrollHeight?(e.classList.add("header--preanim"),a(),i>n?e.classList.add("header--fixed"):e.classList.remove("header--fixed")):(e.classList.remove("header--preanim"),e.classList.remove("header--fixed"),s()),i=n))};p(),document.addEventListener("scroll",p),window.addEventListener("resize",p);var d=document.getElementById("btn_cbn_ao_vivo");d&&d.addEventListener("click",function(){var e=function(e){var t=("; "+document.cookie).split("; "+e+"=");if(2===t.length)return t.pop().split(";").shift()}("station");if(e){var t=window.location.origin+"/ao-vivo/"+e;window.open(t,"_blank")}else{var n=window.location.origin+"/ao-vivo/cbn-sp";window.open(n,"_blank")}})};n(36);var Ce=function(e){return"click"!==e.type&&new Promise(t=>{let n=null,r=null;const o=e.timeStamp,i=e=>{n=e.touches[0].clientX,r=e.touches[0].clientY},a=e=>{this.removeEventListener("touchend",a,{passive:!0}),this.removeEventListener("touchmove",i,{passive:!0}),(e=>!n&&!r&&e-o<=300)(e.timeStamp)&&t()};this.addEventListener("touchmove",i,{passive:!0}),this.addEventListener("touchend",a,{passive:!0})})};var ke=(()=>{let e=!0;return()=>new Promise(t=>{setTimeout(()=>{e=!0},500),e&&(e=!1,t())})})();var Le=(e=[])=>t=>(function(n){const r=e.map(e=>e.call(this,n));return Promise.all(r).then(()=>{t.call(this,n)}).catch(()=>!1)});const Pe=(e,t=document)=>t.querySelector(e),Te=(e,t=document)=>t.querySelectorAll(e),Re=(e,t,n,r)=>{t.addEventListener(e,n,r)},Ie=(e,t,n,r={})=>{if(t.length)for(let o=0;o{if(t.length)for(let o=0;o{const i=`${t}--${e}`;qe=Object.assign({},qe,{[i]:((e,t)=>n=>{const r=((e,t)=>{let n=e;const r=e=>1===e.nodeType&&!e.classList.contains(t);for(;r(n);)n=n.parentNode;return n.classList&&n.classList.contains(t)?n:null})(n.target,e);r&&t.call(r,n)})(t,n)}),o.addEventListener(e,qe[i],r)},De=(e,t,n,r={},o=document.body)=>{o.removeEventListener(e,qe[`${t}--${e}`],r)},Be=e=>[].slice.call(e),Ue=(e,t)=>{const n={back:``,next:``};return`data:image/svg+xml;charset=utf8,${encodeURIComponent(n[e]||"")}`};var Fe=(e={})=>{const t=document.querySelector("#menu-curtain"),n=document.querySelector("#menu-container"),{onClose:r}=e;let o=null,i=!1,a=null,s=null,c=null,u=null;let l,p=!1;const d=()=>{p=!0},f=()=>{i&&!p&&window.requestAnimationFrame(()=>{if(o&&Math.abs(o-Math.abs(c))>=30){const e=Math.min(0,c-a),r=Math.max(0,.7+e/l);n.style.transform=`translateX(${e}px)`,t.style.opacity=r,o=c}})},h=function(e){a=e.touches[0].pageX,s=e.touches[0].pageY,c=a,u=s,o=a,i=t.classList.contains("menu-curtain--opened"),Ie("scroll",Te(".menu-level",n),d,{passive:!0}),l||(l=n.getBoundingClientRect().width),window.requestAnimationFrame(f)},m=function(e){i&&!p&&(c=e.touches[0].pageX,u=e.touches[0].pageY,window.requestAnimationFrame(f))},g=function(){if(!i)return;i=!1,p=!1,o=null;const e=Math.min(0,c-a),l=Math.abs(u-s);Me("scroll",Te(".menu-level",n),d,{passive:!0}),n.style.transform="",t.style.opacity="",l<=Math.abs(e)&&e<0&&r()};return{open:()=>{Ie("scroll",Te(".menu-level",n),d,{passive:!0}),document.addEventListener("touchstart",h,{passive:!0}),document.addEventListener("touchmove",m,{passive:!0}),document.addEventListener("touchend",g,{passive:!0}),l||(l=n.getBoundingClientRect().width)},close:()=>{i=!1,p=!1,document.removeEventListener("touchstart",h,{passive:!0}),document.removeEventListener("touchmove",m,{passive:!0}),document.removeEventListener("touchend",g,{passive:!0}),Me("scroll",Te(".menu-level",n),d,{passive:!0})}}};let $e=!1;var He=(e={})=>{if($e)return!0;const{container:t,cadunServiceId:n,cadunLoginURL:o,cadunUsePopin:i}=e,{qs:a}=r,s=Le([ke,Ce]),c=a(".menu-login",t),u=a("a.menu-login__item-login__link",c),l=a(".menu-login__item-logout",c),p=a("a.menu-login__item-logout__link",c),d=a(".menu-login__item__name",c),f=a(".menu-login__item__avatar",c),h=a(".menu-login__item__icon--avatar",c),m=a(".menu-login--logged",c),g=a(".menu-login--not-logged",c),y=()=>{const e=window.Cadun.user.me;return"name"in e&&""!==e.name},v=e=>{g.style.display=e[0],l.style.display=e[1],m.style.display=e[2]},b=()=>{window.Cadun.logout(()=>{window.location.href=window.location.href})},w=e=>{y()&&(p.addEventListener("click",e=>e.preventDefault()),p.addEventListener("click",s(b),{passive:!0}),p.addEventListener("touchstart",s(b),{passive:!0}),v(["none","block","flex"]),(e=>{f&&h&&(e.picture?(f.innerHTML=`${e.name}`,f.style.display="block",h.style.display="none"):(f.innerHTML="",f.style.display="none",h.style.display="block"))})(e),d.textContent=e.name.split(" ")[0])},_=e=>{if(e.stopPropagation(),!i&&o){const e=window.location.href,t=`${o}/login/${n}?url=${e}`;window.location.href=t}else window.Cadun.login(n,window.location.href,!1,w,void 0,{_ga:window.utag_data.galinker,glbProduct:window.utag_data.productGAId,component:"menu_mobile"})},x=()=>{u.addEventListener("click",e=>e.preventDefault()),u.addEventListener("click",s(_)),u.addEventListener("touchstart",s(_),{passive:!0}),window.Cadun.Event.subscribe("userInfoAvailable",()=>{const e=window.Cadun.user.me;y()?w(e):y()||v(["block","none","none"])})};return window.cq=window.cq||[],window.cq.push({ready:e=>{e.authorize(n,e=>{"authorized"===e.status?w(e):v(["block","none","none"]),x()})}}),$e=!0,!0};var Ve=(e={})=>{const{debugMode:t=!1,handleGA:n}=e,r=(...e)=>(t&&(console.group("menu tracking"),console.log(["menu mobile",...e]),console.groupEnd("menu tracking")),n(["_trackEvent","menu mobile",...e])),o=e=>{const t=[e.querySelector(".menu-item-title").textContent];let n=e;for(;n&&"menu-cascade"!==n.id;n=n.parentNode)n.classList.contains("is-father")&&t.push(n.querySelector(".menu-btn-back__label").textContent);return t.pop(),t.reverse().join(" > ")};return{push:e=>{const t=e.classList;if(t.contains("menu-btn-back")){const t=e.querySelector(".menu-btn-back__label").textContent,n=e.parentElement.querySelector(".regua-navegacao-menu-item").textContent;r("navegacao",`back | ${n} > ${t}`,0,!0)}else if(t.contains("is-father"))r("navegacao",o(e),0,!0);else{const t=e.querySelector(".menu-item-title").textContent,n=o(e.parentElement.parentElement);r("links clicaveis",n?`${n} > ${t}`:t)}},makeTracking:r}};const We={debug:!1,color:"#000",cadunServiceId:4728,cadunLoginURL:null,cadunUsePopin:!0,handleGA(){}};var Ge=(e={})=>{const t=Object.assign({},We,e),{qs:n,qsAll:o,attachEvent:i,toArray:a,on:s,off:c}=r,u=Ve(t),l=document.body,p=document.documentElement,d=n("#menu-container"),f=n("#menu-curtain"),h=n(".menu-level-0",d),m=n(".menu-level--opened",d)||n(".menu-level",d),g=n(".menu-rounder",d),y=n(".menu-btn-back__label",d),v=y&&y.textContent,b=n(".menu-btn-back__label",m),w=b&&b.textContent;let _=0;const x=Le([ke,Ce]),S=+m.classList.contains("menu-level--opened");let E=S;const A=d.dataset.menuWidth||272,O=e=>{b&&(b.textContent=e)};O(v);const j=e=>{requestAnimationFrame(()=>{g.style.transform=`translateX(-${e*A}px)`,d.scrollTop=0})},C=()=>{const e=a(o(".menu-level--opened",d));e.pop().classList.remove("menu-level--opened","first-layer");const t=e.pop();t&&t.classList.add("first-layer"),t||h.classList.add("first-layer","menu-level--opened"),E>0||(g.classList.add("menu-rounder--opened-all"),O(w)),g.removeEventListener("transitionend",C)},k=e=>{"function"==typeof e&&requestAnimationFrame(()=>e())},L=x(function(){u.push(this),requestAnimationFrame(()=>{k(()=>{(E=E-1<=0?0:E-1)<1&&n(".menu-initial",d)&&(E=0,g.classList.remove("menu-initial")),j(E),g.addEventListener("transitionend",C)})})}),P=x(function(){const e=this.parentNode;u.push(e),e.classList.contains("is-father")?k(()=>{const t=+!!n(".menu-level",e);E+=t;const r=e.parentNode;"UL"===r.nodeName&&r.classList.remove("first-layer"),n(".menu-level",e).classList.add("menu-level--opened","first-layer"),j(E)}):this.target?window.open(this.href,this.target):window.location.href=this.href}),T=e=>e.preventDefault(),R=function(){u.makeTracking("links clicaveis",this.dataset.trackingLabel)},I=function(){const e=this.querySelector(".regua-navegacao-menu-item").textContent;u.makeTracking("links nao clicaveis",e)},M=()=>{.14===_&&(l.classList.remove("menu--no-scroll"),p.classList.remove("menu--no-scroll"),requestAnimationFrame(()=>{a(o(".menu-level--opened",d)).forEach(e=>{e.classList.remove("menu-level--opened")})}),_=0,m.classList.add("menu-level--opened"),S&&g.classList.add("menu-initial"),g.classList.remove("menu-rounder--opened-all"),g.style.transform="",E=S,O(v),f.classList.remove("menu-curtain--animate"),h.classList.remove("menu-level--opened"),c("click","menu-btn-back",T),c("click","menu-btn-back",L,{passive:!0}),c("touchstart","menu-btn-back",L,{passive:!0}),c("click","menu-item-link",T),c("click","menu-item-link",P,{passive:!0}),c("touchstart","menu-item-link",P,{passive:!0}),c("click","menu-products-logo__link",R),c("click","menu-submenu-title",I),d.removeEventListener("transitionend",M))},q=e=>{f.classList.remove("menu-curtain--opened"),_=.14,e?(u.makeTracking("interacoes menu","swipe menu fechado"),e.close()):u.makeTracking("interacoes menu","click menu fechado"),d.addEventListener("transitionend",M)},N=Fe({onClose:()=>{q(N)}}),D=()=>{S||(g.classList.add("menu-rounder--opened-all"),g.classList.remove("menu-initial"))},B=()=>{n(S?".menu-level--opened":".menu-level-0",d).classList.add("menu-level--opened","first-layer"),s("click","menu-btn-back",T),s("click","menu-btn-back",L,{passive:!0}),s("touchstart","menu-btn-back",L,{passive:!0}),s("click","menu-item-link",T),s("click","menu-item-link",P,{passive:!0}),s("touchstart","menu-item-link",P,{passive:!0}),s("click","menu-products-logo__link",R),s("click","menu-submenu-title",I),N.open(),d.removeEventListener("transitionend",B)},U=e=>{"menu-curtain"===e.target.id&&(q(),N.close())};return D(),E&&n(".menu-initial",d).classList.add("menu-loaded"),d.style.display="block",((e={})=>{const{color:t}=e,n=document.createElement("style"),r=Ue("back",t),o=document.createTextNode(`.menu-btn-back__icon { background-image: url('${r}'); }`),i=Ue("next",t),a=document.createTextNode(`.menu-item-arrow { background-image: url('${i}') }`),s=document.createTextNode(`.menu-product-color { color: ${t}; }`);n.appendChild(o),n.appendChild(a),n.appendChild(s),document.head.appendChild(n)})(t),i("touchstart",f,x(U),{passive:!0}),i("click",f,x(U),{passive:!0}),{toggle:(e=null)=>{(null!==e?e:!f.classList.contains("menu-curtain--opened"))?(_=.33,l.classList.add("menu--no-scroll"),p.classList.add("menu--no-scroll"),f.classList.add("menu-curtain--opened","menu-curtain--animate"),D(),u.makeTracking("interacoes menu","click menu exibido"),d.addEventListener("transitionend",B),He({container:d,cadunServiceId:t.cadunServiceId,cadunLoginURL:t.cadunLoginURL,cadunUsePopin:t.cadunUsePopin})):(q(),N.close())}}},ze=function(){return ce()(function e(){ae()(this,e),this.handleMenuToggle=this.handleMenuToggle.bind(this),this.menuEl=document.getElementById("menu-toggle"),this.menuCtnr=document.getElementById("menu-container"),this.curtain=document.getElementById("menu-curtain"),this.productColor=this.menuEl.getAttribute("data-product-color"),this.navigateByArrow=window.header_data_navigation_by_arrow||!1;try{this.menu=Ge({color:this.productColor,navigateByArrow:this.navigateByArrow,handleGA:function(e){window._gaq&&window._gaq.push(e)}}),this.initEvents(),this.observeCurtain()}catch(e){console.error("Erro ao renderizar o menu: ",e)}},[{key:"handleMenuToggle",value:function(e){e.stopPropagation(),this.menu.toggle(),this.syncMenuState()}},{key:"syncMenuState",value:function(){this.curtain.classList.contains("menu-curtain--opened")?this.menuCtnr.classList.remove("hidden-menu"):this.menuCtnr.classList.add("hidden-menu")}},{key:"observeCurtain",value:function(){var e=this;new MutationObserver(function(){return e.syncMenuState()}).observe(this.curtain,{attributes:!0,attributeFilter:["class"]})}},{key:"initEvents",value:function(){this.menuEl.addEventListener("click",this.handleMenuToggle)}}])}(),Je=function(){if(document.querySelector("#gcom-bar-container")){glb.menuV2={color:"#1e4c9a"};var e=window.gcomBarUseCustomUrl,t="True"===e?window.gcomBarcustomUrl:"",n="True"===e?window.gcomBarcustomUrlTitle:"",r="True"===e?window.gcomBarcustomUrlTitleColor:"";glb.barra={resolveGloboIdJs:function(){return globalWebdeps("globoid-js")},incluirComScore:!1,exibeAssineJa:!1,useVintage:!0,exibeCentral:!1,itemCustomizado:{cor:"".concat(r),texto:"".concat(n),url:"".concat(t)}},function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.charset="utf-8",e.src="/?url=https%3A%2F%2Fs.glbimg.com%2Fgl%2Fba%2Fjs%2Fbarra-globocom.min.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}},Xe=function(){var e=document.querySelector(".header__search__right");if(window.oidcSettings&&e){var t=document.querySelector(window.oidcSettings.loginAreaContainer[0].rootElement);new MutationObserver(function(n,r){n.forEach(function(n){"childList"===n.type&&n.addedNodes&&(t.appendChild(e),r.disconnect())})}).observe(t,{attributes:!1,childList:!0,characterData:!1})}},Ke=function(){var e=document.getElementById("top_search_icon");function t(e){var t=document.getElementById("menu__loader"),n=document.getElementById("header__loader");t&&(t.style.display="none"),n&&(n.style.display="none");var r=e.isLogged;!function(e,t){if(Array.isArray(t)&&0!==t.length){t.forEach(function(t){var n=document.querySelector(t.rootElement);if(n){var r=e?t.signedInTemplateSelector:t.signedOutTemplateSelector,o=document.querySelector(r);o&&(n.innerHTML=o.innerHTML)}});var n=e?'[data-action="logout"]':'[data-action="login"]';document.querySelectorAll(n).forEach(function(t){t.addEventListener("click",function(t){t.preventDefault(),e?window.editoraGloboAuthenticationLib.logout():window.editoraGloboAuthenticationLib.login()})});var r=document.querySelector("[data-login]");r&&r.setAttribute("data-login",e)}}(r,window.oidcSettings&&window.oidcSettings.loginAreaContainer),r&&e.userData&&function(e){e&&"object"===xe()(e)&&(document.querySelectorAll('[data-content="user-picture"]').forEach(function(t){if(e.picture||e.photoUrl){var n=document.createElement("img");n.setAttribute("alt",e.name||e.userName||""),n.setAttribute("src",e.picture||e.photoUrl||""),t.appendChild(n)}else t.insertAdjacentHTML("beforeend",'')}),document.querySelectorAll('[data-content="user-name"]').forEach(function(t){var n=e.name||e.userName||"";n&&(t.innerText=n.split(" ")[0])}),console.log("[perf][custom-revista-header] nome e foto do usuário renderizados em:",performance.now().toFixed(2),"ms"))}(e.userData)}e&&e.addEventListener("click",function(){var e=document.getElementById("top_search_text_input");e&&e.focus()}),window.editoraGloboAuthenticationLib&&void 0!==window.editoraGloboAuthenticationLib.userData?t(window.editoraGloboAuthenticationLib):(window.addEventListener("editoraGloboAuthUserDataError",function(e){console.error("[custom-revista-header] falha ao obter dados do usuário:",e.detail.message)}),window.addEventListener("editoraGloboAuthUserDataReady",function(e){t(e.detail)}))},Qe=function(){return ce()(function e(){ae()(this,e),this.exposeMenuListItemEl=document.querySelectorAll('li[class="expose-menu"]'),this.toggleSubmenu,this.handleMouseOver=this.handleMouseOver.bind(this),this.registerHandlers()},[{key:"handleToggleSubItems",value:function(e,t){var n=t.toggled,r=void 0!==n&&n,o=t.element;if(!0===r){var i=o.lastChild.previousElementSibling;i.removeAttribute("hidden");var a=o.querySelector('a[class="menu-exposto__item"]'),s=o.querySelector('i[class="arrow up"]'),c=o.querySelector('i[class="arrow down"]');s.removeAttribute("hidden"),c.setAttribute("hidden",!0),a.style.opacity=.6,o.onmouseleave=function(e){var t=e.toElement||e.relatedTarget;"menu-expose-dropdown-list-item"!==t.className&&"menu-expose-dropdown-list-link"!==t.className&&(a.style.opacity=1,s.setAttribute("hidden",!0),c.removeAttribute("hidden"),i.setAttribute("hidden",!0))};var u=document.getElementById("header");document.addEventListener("scroll",function(e){u.className.includes("--fixed")&&(a.style.opacity=1,c.removeAttribute("hidden"),i.setAttribute("hidden",!0))})}}},{key:"handleMouseOver",value:function(e){var t=this;e.lastChild.previousElementSibling&&(Array.from(e.childNodes).find(function(e){return"menu-item-section"===e.className}).firstElementChild.onmouseover=function(n){return t.handleToggleSubItems(n,{toggled:!0,element:e})})}},{key:"registerHandlers",value:function(){this.exposeMenuListItemEl&&Array.from(this.exposeMenuListItemEl).map(this.handleMouseOver)}}])}();je(),new Qe,new ze,Je(),Xe(),Ke()}]); !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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=18)}({0:function(e,t,n){"use strict";function o(e){return(o="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.whenAvailable=t.loadAssets=t.loadStyle=t.loadScript=t.getAdConfig=t.printTable=void 0;t.printTable=function(e){var t=document.getElementById(e).innerHTML,n=window.open("","Impressão de tabela","height=600,width=800"),o=document.getElementsByTagName("style");n.document.write("Impressão");for(var r=0;r.vd-table__toggle { display:none; }"),n.document.write(""),n.document.write('\n \n \n '),n.document.write('
    '),n.document.write(t),n.document.write(""),n.document.write("\n
    Sponsor
    SponsoredKunjungi sekarang
    Promo