CONTINUA DEPOIS DA PUBLICIDADE
CONTINUA DEPOIS DA PUBLICIDADE

Quem Disse?

Assuntos do momento

Limpar seleção

Entre com a sua Conta Globo e fique por dentro dos seus assuntos favoritos

Escolha seus assuntos favoritos

CONTINUA DEPOIS DA PUBLICIDADE
CONTINUA DEPOIS DA PUBLICIDADE

Webstories

CONTINUA DEPOIS DA PUBLICIDADE
CONTINUA DEPOIS DA PUBLICIDADE

"),n.document.write("\n

"),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)}},,,,,,,,,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adsLazyload=function(){var e=document.querySelectorAll(".ads--lazy");if(0===e.length)return;var t=!0,n=!1,r=void 0;try{for(var c,i=function(){var e=c.value;window.ScrollSpy.add({el:e,offset:200,callback:function(){(0,o.whenAvailable)("bannerLazyLoading",function(){!function(e){var t=e.getAttribute("data-id");e.setAttribute("id",t),setTimeout(window.bannerLazyLoading(t),0)}(e)})}})},a=e[Symbol.iterator]();!(t=(c=a.next()).done);t=!0)i()}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}};var o=n(0)},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=l.pos))break;l.callback&&l.callback(),o.shift()}o.length||(window.removeEventListener("scroll",r(d)),window.removeEventListener("resize",r(a)))}e.add=function(e){if(!e.el)throw new Error("[@globocom/scrollspy] item.el is required");var i=Object.assign({offset:200,reference:"top",pos:0},e);i.pos=c(i);var l=o.findIndex(function(e){return e.pos>i.pos});o.splice(-1===l?o.length:l,0,i),1===o.length&&(t=window.innerHeight,n=document.body?document.body.offsetHeight:0,window.addEventListener("scroll",r(d)),window.addEventListener("resize",r(a))),u()},e.clean=function(){o=[]},e.debug=function(){return o.forEach(function(e,t){var n="2px dashed "+(t%2?"red":"blue"),o=document.createElement("div"),r=["top: "+e.pos+";","width: 100%;","position: absolute;","border-top: "+n+";"].join("");e.el.style.border=n,o.className="debug-line",o.setAttribute("style",r),document.body.appendChild(o)}),o},e.getItems=function(){return o.map(function(e){return e})},Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){"use strict";var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(11)),r=n(10);n(9),window.ScrollSpy=o,document.addEventListener("bannerLazyLoadingReady",r.adsLazyload)}]); !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(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=111)}([function(e,t,n){"use strict";var r=n(17),o=n(51),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!==e&&void 0!==e)if("object"==typeof e||a(e)||(e=[e]),a(e))for(var n=0,r=e.length;n-1e3&&e0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(v.call(t,0,n.maxStringLength),n)+o}var i=U[n.quoteStyle||"single"];i.lastIndex=0;var a=b.call(b.call(t,i,"\\$1"),/[\x00-\x1f]/g,K);return B(a,"single",n)}(n,c);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var x=String(n);return w?R(n,x):x}if("bigint"==typeof n){var O=String(n)+"n";return w?R(n,O):O}var L=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=L&&L>0&&"object"==typeof n)return H(n)?"[Array]":"[Object]";var D=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(c,o);if(void 0===s)s=[];else if(X(s,n)>=0)return"[Circular]";function W(t,n,r){if(n&&(s=A.call(s)).push(n),r){var i={depth:c.depth};return z(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof n&&!V(n)){var ne=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(n),re=te(n,W);return"[Function"+(ne?": "+ne:" (anonymous)")+"]"+(re.length>0?" { "+E.call(re,", ")+" }":"")}if(G(n)){var oe=k?b.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(n);return"object"!=typeof n||k?oe:Q(oe)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(n)){for(var ie="",n.childNodes&&n.childNodes.length&&(ie+="..."),ie+=""+_.call(String(n.nodeName))+">"}if(H(n)){if(0===n.length)return"[]";var ce=te(n,W);return D&&!function(e){for(var t=0;t=0)return!1;return!0}(ce)?"["+ee(ce,D)+"]":"[ "+E.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===J(e)&&$(e)}(n)){var le=te(n,W);return"cause"in Error.prototype||!("cause"in n)||T.call(n,"cause")?0===le.length?"["+String(n)+"]":"{ ["+String(n)+"] "+E.call(le,", ")+" }":"{ ["+String(n)+"] "+E.call(S.call("[cause]: "+W(n.cause),le),", ")+" }"}if("object"==typeof n&&g){if(N&&"function"==typeof n[N]&&M)return M(n,{depth:L-o});if("symbol"!==g&&"function"==typeof n.inspect)return n.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(n)){var ue=[];return a&&a.call(n,function(e,t){ue.push(W(t,n,!0)+" => "+W(e,n))}),Z("Map",i.call(n),ue,D)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(n)){var pe=[];return u&&u.call(n,function(e){pe.push(W(e,n))}),Z("Set",l.call(n),pe,D)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(n))return Y("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(n))return Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(n))return Y("WeakRef");if(function(e){return"[object Number]"===J(e)&&$(e)}(n))return Q(W(Number(n)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(n))return Q(W(C.call(n)));if(function(e){return"[object Boolean]"===J(e)&&$(e)}(n))return Q(h.call(n));if(function(e){return"[object String]"===J(e)&&$(e)}(n))return Q(W(String(n)));if("undefined"!=typeof window&&n===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&n===globalThis||void 0!==t&&n===t)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===J(e)&&$(e)}(n)&&!V(n)){var de=te(n,W),fe=I?I(n)===Object.prototype:n instanceof Object||n.constructor===Object,he=n instanceof Object?"":"null prototype",ge=!fe&&P&&Object(n)===n&&P in n?v.call(J(n),8,-1):he?"Object":"",me=(fe||"function"!=typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"")+(ge||he?"["+E.call(S.call([],ge||[],he||[]),": ")+"] ":"");return 0===de.length?me+"{}":D?me+"{"+ee(de,D)+"}":me+"{ "+E.call(de,", ")+" }"}return String(n)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return W.call(e,t)}function J(e){return g.call(e)}function X(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n=200&&e1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===F(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,$,function(e,t,n,o){r[r.length]=n?U(o,H,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=V("%"+r+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(r=u[0],q(n,N([0,1],u)));for(var p=1,d=!0;p=n.length){var m=w(a,f);a=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[f]}else d=D(a,f),a=a[f];d&&!s&&(T[i]=a)}}return a}},function(e,t,n){"use strict";e.exports=Function.prototype.call},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},function(e,t,n){"use strict";e.exports=n(112),e.exports.strategies={cadun:n(108),oidc:n(109)}},function(e,t,n){var r=n(7).default,o=n(47);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r-1?o([n]):n}},function(e,t,n){"use strict";var r=n(14),o=n(22),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=o(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},u=function(e){return s.get(e)},p=function(e,t){s.set(e,t)},d=function(){for(var e=[],t=0;tn?c(f(i,{plainObjects:r}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o=1024?a.slice(c,c+1024):a,u=[],p=0;p=48&&f=65&&f=97&&f>6]+d[128|63&f]:f=57344?u[u.length]=d[224|f>>12]+d[128|f>>6&63]+d[128|63&f]:(p+=1,f=65536+((1023&f)>18]+d[128|f>>12&63]+d[128|f>>6&63]+d[128|63&f])}s+=u.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=h===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]r||r>h)&&(i[4]=e,i[5]=r,d.n=h,a=0))}if(o||e>1)return l;throw p=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,h),a=u,s=h;(n=a1&&(d.n=-1),f(a,s)):d.n=s:d.v=s);try{if(c=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a * @license MIT */ e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=n(11),o=n(0),i=n(62),a=n(63),s=n(65),c=n(66);function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,this.defaults,{method:"get"},e)).method=e.method.toLowerCase(),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url));var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=l},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,p=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):p=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++p1)for(var n=1;n>8-s%1*8)){if((n=i.charCodeAt(s+=.75))>255)throw new o;t=t0?A.join(",")||null:void 0}];else if(c(m))k=m;else{var T=Object.keys(A);k=y?T.sort(y):T}var I=d?String(n).replace(/\./g,"%2E"):String(n),R=a&&c(A)&&1===A.length?I+"[]":I;if(s&&c(A)&&0===A.length)return R+"[]";for(var M=0;M0?_+w:""}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){},function(e,t,n){"use strict";var r=n(8),o=n(4),i=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return i(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=i(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},function(e,t,n){"use strict";e.exports=Error},function(e,t,n){"use strict";e.exports=EvalError},function(e,t,n){"use strict";e.exports=RangeError},function(e,t,n){"use strict";e.exports=ReferenceError},function(e,t,n){"use strict";e.exports=SyntaxError},function(e,t,n){"use strict";e.exports=URIError},function(e,t,n){"use strict";e.exports=Math.abs},function(e,t,n){"use strict";e.exports=Math.floor},function(e,t,n){"use strict";e.exports=Math.max},function(e,t,n){"use strict";e.exports=Math.min},function(e,t,n){"use strict";e.exports=Math.pow},function(e,t,n){"use strict";e.exports=Math.round},function(e,t,n){"use strict";var r=n(86);e.exports=function(e){return r(e)||0===e?e:e-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t,n,i){if(e){var a=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=o?t:c(t,n,i),l=e.length-1;l>=0;--l){var u,p=e[l];if("[]"===p&&n.parseArrays)u=r.isOverflow(s)?s:n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s,n.arrayLimit,n.plainObjects);else{u=n.plainObjects?{__proto__:null}:{};var d="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,f=n.decodeDotInKeys?d.replace(/%2E/g,"."):d,h=parseInt(f,10);n.parseArrays||""!==f?!isNaN(h)&&p!==f&&String(h)===f&&h>=0&&n.parseArrays&&hu)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var d,f=-1,h=t.charset;if(t.charsetSentinel)for(d=0;d-1&&(m=i(m)?[m]:m),null!==g){var w=o.call(n,g);w&&"combine"===t.duplicates?n[g]=r.combine(n[g],m,t.arrayLimit,t.plainObjects):w&&"last"!==t.duplicates||(n[g]=m)}}return n}(e,n):e,p=n.plainObjects?{__proto__:null}:{},d=Object.keys(u),f=0;f=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t,n){"use strict";n.r(t);t.default=class{constructor(){}}},function(e,t,n){"use strict";n.r(t);t.default=class{constructor(e={}){const{CLIENT_ID:t,RESOURCE:n,URL:r,REDIRECT_URI:o,SCOPES:i="openid profile",LEGACY_COMPATIBLE:a=!0}=e;this.loginSettings={clientId:t,resource:n,url:r,redirectUri:o,onLoad:"check-sso",sessionManagement:"token",legacyCompatible:a,scope:i},!1===e.ONLOAD&&delete this.loginSettings.onLoad,this.EdgGloboIdData=[{client_id:t,isLogged:null,getTokens:null,email:null}],this.login=this.login.bind(this),this.globoIDJSInicialized=!1}getGloboIdClient(){const e=window.glb.globoIdClientMap.getGloboIdClient(this.loginSettings.clientId);return e.stageQueueMap.applicationUsageStageQueue=e.stageQueueMap.applicationUsageStageQueue||[],e.stageQueueMap.applicationUsageStageQueue}async initGloboIdClient(){try{window.newrelic&&window.newrelic.addPageAction("globoid",{step:"globoid-load",timestamp:performance.now()}),await this.waitForGloboIdClient(),await window.glb.globoIdClientMap.initNewGloboIdClient(this.loginSettings),this.globoIDJSInicialized=!0,console.log("GloboID JS initialized successfully.")}catch(e){throw console.error("Error loading GloboID JS:",e),e}}async waitForGloboIdClient(e=10,t=100){for(let n=0;nsetTimeout(e,t))}throw new Error("GloboID Client did not load within the time limit.")}async isLogged(){if(this.isLoggedPromise)return this.isLoggedPromise;this.isLoggedPromise=new Promise(async e=>{window.newrelic&&window.newrelic.addPageAction("globoid",{step:"globoid-islogged-init",function:"isLogged",timestamp:performance.now()}),this.getGloboIdClient().push(async t=>{const n=await t.isLogged();this.EdgGloboIdData.find(e=>e.client_id===this.loginSettings.clientId).isLogged=n,window.newrelic&&window.newrelic.addPageAction("globoid",{step:"globoid-islogged-result",function:"isLogged",result:n?"success":"notLogged",timestamp:performance.now()}),this.isLoggedPromise=null,e(n)})})}stringToArrayBuffer(e){return(new TextEncoder).encode(e)}async hashEmail(e){const t=this.stringToArrayBuffer(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,"0")).join("")}retrieveUserData(){return new Promise((e,t)=>{this.getGloboIdClient().push(async n=>{const r=await n.isLogged(),o=this.EdgGloboIdData.find(e=>e.client_id===this.loginSettings.clientId);if(r){let t={};try{t=await n.loadUserInfo()||{}}catch(e){console.warn("[authentication-lib] loadUserInfo failed",e)}let r=null;try{r=await n.getTokens()}catch(e){console.warn("[authentication-lib] getTokens failed",e)}const a=r&&r.access_token;function i(e){const t=e.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}const s=async()=>{try{const e=document.cookie.match(/(?:^|;\s*)GLOBO_ID=([^;]+)/);if(!e)return null;const t=e[1].split(".");if(!t[1])return null;const n=JSON.parse(i(t[1])),r={name:n.name||n.userName||n.preferred_username,userName:n.userName||n.name||n.preferred_username,picture:n.picture||n.photoUrl,photoUrl:n.photoUrl||n.picture};if(n.email){const e=await this.hashEmail(n.email);o&&(o.email=e)}return r}catch(e){return console.warn("[authentication-lib] Failed to read GLOBO_ID cookie",e),null}};if(!a){console.warn("[authentication-lib] access_token not available for client",this.loginSettings.clientId),window.newrelic&&window.newrelic.addPageAction("globoid",{step:"globoid-user-login-incomplete",result:"missingToken",timestamp:performance.now()});const n=await s();return n?void e({...n,...t}):void e(t||{})}o.getTokens=a;const c=a.split(".");let l={};try{l=JSON.parse(i(c[1]||""))}catch(e){console.warn("[authentication-lib] Failed to decode access token",e)}const u=l.email;if(u){const e=await this.hashEmail(u);o.email=e}window.newrelic&&window.newrelic.addPageAction("globoid",{step:"globoid-user-login-complete",result:"success",timestamp:performance.now()});const p=t&&t.name&&t.userName&&t.photoUrl?null:await s(),d=p?{...p,...t}:t;e(d||{})}else t("user not authenticated")})})}login(){this.getGloboIdClient().push(async e=>{await e.loginCustomSettings({storeState:!0})})}logout(){this.getGloboIdClient().push(async e=>{await e.logout()})}async initEvents(){document.addEventListener("DOMContentLoaded",async()=>{window.glb&&window.glb.globoIdClientMap?await this.initGloboIdClient():console.warn("window.glb is not available. GloboID Client will not be initialized.")})}}},,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"qs",function(){return Ce}),n.d(r,"qsAll",function(){return Le}),n.d(r,"attachEvent",function(){return ke}),n.d(r,"detachEvent",function(){return Pe}),n.d(r,"on",function(){return Ie}),n.d(r,"off",function(){return Re}),n.d(r,"toArray",function(){return Me});n(45);var o=n(10),i=n.n(o),a=1024,s=function(e){return window.matchMedia("(min-width: ".concat(e,"px)")).matches},c=function(){return s(a)},l={save:function(e,t,n){var r=60*n*1e3,o={value:t,timestamp:(new Date).getTime()+r};try{localStorage.setItem(e,JSON.stringify(o))}catch(e){return!1}return t},load:function(e){var t;try{t=JSON.parse(localStorage.getItem(e))}catch(e){return!1}return!!t&&((new Date).getTime()=1){manageElementClasses.hasClass(document.documentElement,"glb-on-app")||(document.documentElement.className+=" glb-on-app");try{localStorage.setItem("glbOnApp",glb.nativeAppInfo.frameworkVersion)}catch(e){e}glb.nativeAppType="master-app"}}else manageElementClasses.hasClass(document.documentElement,"glb-on-app-comnio")||(document.documentElement.className+=" glb-on-app-comnio"),glb.nativeAppType="comnio-app"}},void 0!==t&&t.exports&&(t.exports=r)},{}],3:[function(e,t,n){var r,o,i,a,s;window.glb=window.glb||{},s=e("../../globo-cdn-src/scripts/tiny-basket.coffee"),e("../../globo-cdn-src/scripts/common/__custom-event.coffee"),o=window.isArray,a=window.stringStartsWith,glb.extendArrays=function(e,t){if(o(e)&&o(t))return Array.prototype.push.apply(e,t),e},glb.addGlbOnAppClass=e("../../globo-cdn-src/scripts/app/__master-app-addclass.coffee"),glb.addHasReguaClass=e("../../globo-cdn-src/scripts/regua/__regua-navegacao-addclass.coffee"),glb.cdnConfig=e("../../globo-cdn-src/scripts/__cdn-configs.coffee"),glb.createProductColorCss=function(e){return s.injectStylesheet("text/css",".menu-navegacao-color { color: "+e+"; }","fn-menu-color-default")},glb.getCurrentInternalHost=function(e){var t,n,r,o,i,a;for(t=0,o=(a=glb.cdnConfig.fnInternalHosts).length;t@media("+i+":"+o["client"+e]+"px){body#vpw-test-b div#vpw-test-d{"+i+":7px!important}}",t.appendChild(n),o.insertBefore(t,r.head),a=7===n["offset"+e]?o["client"+e]:window["inner"+e],o.removeChild(t)):a=window["inner"+e],a},window.myInnerWidth=viewportSize.getWidth(),window.myInnerHeight=viewportSize.getHeight(),o=function(){return window.myInnerWidth||window.innerWidth},r=function(){return window.myInnerHeight||window.innerHeight},i=function(){var e;return null!=window.isAndroidBrowser?window.isAndroidBrowser:(e=navigator.userAgent,window.isAndroidBrowser=e.indexOf("Mozilla/5.0")>-1&&e.indexOf("Android ")>-1&&e.indexOf("AppleWebKit")>-1&&-1===e.indexOf("Chrome"),window.isAndroidBrowser)},c=function(){var e;return null!=window.isWindowsPhoneBrowser?window.isWindowsPhoneBrowser:(e=navigator.userAgent,window.isWindowsPhoneBrowser=e.match(/Windows Phone/i)||e.match(/iemobile/i)||e.match(/WPDesktop/i),window.isWindowsPhoneBrowser)},a=function(){return null!=window.isPortrait?window.isPortrait:(window.isPortrait=o()=0?n.expire:60,i=n.success||function(){},s=n.error||function(){},o=n.key||t,v=n.type,m=n.skipCache,y=n.timeout||null,p=null,b=n.xhrConfigsCallback,c=n.data,l=null!=n.dataType?n.dataType:v,null==v&&(v=(v=t.split("."))[v.length-1]),d="json"===v,h="json"===l,!(r=this.getCache(o,m,d)))return(g=a(e,t))?(b&&"function"==typeof b&&b(g),f="undefined"!=typeof XDomainRequest&&g instanceof XDomainRequest,g.onload||(g.onload=function(e){return function(){return p&&clearTimeout(p),f||g.status>=200&&g.status=0?t.expire:60,o=t.success||function(){},r=t.key||e,l=t.skipCache,a="ajaxCacheJsonp"+this.jsonpId++,(n=this.getCache(r,l,!0))?o(n):(window[a]=function(e){return function(t){return e.complete(t,i,r,l,!0,o)}}(this),e+=-1===e.indexOf("?")?"?callback="+a:"&callback="+a,(c=s(a)).src=e,d.appendChild(c))},e.prototype.get=function(e,t){return this.request("GET",e,t)},e.prototype.post=function(e,t){return this.request("POST",e,t)},e}(),window.ajaxCache=new r,o=function(){function e(){}return e.prototype.insertJsOnScriptTag=function(e,t,n){var r;return n&&(t+="\n//# sourceMappingURL="+n),r=document.createTextNode(t),e.appendChild(r)},e.prototype.injectScriptTag=function(e,t,n,r){var o;(o=s(n)).src=t,d.appendChild(o)},e.prototype.injectScript=function(e,t,n,r){var o;o=s(n),this.insertJsOnScriptTag(o,t,r),d.appendChild(o)},e.prototype.injectLinkTag=function(e,t,n,r){var o;(o=document.createElement("link")).id=n,o.type="text/css",o.rel="stylesheet",o.href=t,d.appendChild(o)},e.prototype.injectStylesheet=function(e,t,n,r){i(t,n,r,null)},e.prototype.defaultHandler=function(e,t,n,r){window["tinyBasketResult"+e]=window["tinyBasketResult"+e]||{},window["tinyBasketResult"+e][n.toString()]=t},e.prototype.getHandler=function(e,t){return"js"===e?t?this.injectScriptTag:this.injectScript:"css"===e?t?this.injectLinkTag:this.injectStylesheet:this.defaultHandler},e.prototype.skipCacheRequestManager=function(e,t){return t.success(e)},e.prototype.getRequestManager=function(e,t){return!t||"js"!==e&&"css"!==e?"jsonp"===e?ajaxCache.getJsonp:ajaxCache.get:this.skipCacheRequestManager},e.prototype.require=function(e,t){var n,r,o,i,a,s,c,l,p,d,f,g;if(n=this,e)for(h(e)||(e=[e]),o=0,a=e.length;o!(!window.glb||!window.glb.cdnConfig),C=()=>O()?A.fnProduct:E,L=()=>O()?A.fnBuscaUrl:{},j=()=>O()?A.fnEnv:{},k=()=>{let e=C().name;return(e="famosos"===e?"ego":e)||"g1"},P=()=>window.localStorageCache.load("fn-search-history"),T=e=>{let t=P()||[];t.push({type:"featuredContent",data:e}),t.length>9&&(t=t.slice(-9));const n=[];t.forEach(e=>{!((e,t)=>{for(let n=0;n"featuredContent"===e.type&&"title"in e.data)(e)&&n.push(e)}),window.localStorageCache.save("fn-search-history",n,43200)},I=()=>{const e={Accept:"application/json"},{tenantId:t,configId:n}=(()=>{if("undefined"==typeof document)return{};const e=document.querySelector(".header__search");if(!e)return{};const t=e.getAttribute("data-search-tenant")||null;return{tenantId:t,configId:e.getAttribute("data-search-config-id")||(t?`${t}Default`:null)}})();return t&&(e["X-Tenant-Id"]=t),n&&(e["X-Config-Id"]=n),e},R=e=>{const t=`${(()=>{const e=j();if("qa"===e)return`${S}/suggest`;if("prod"===e)return`${x}/suggest`;const t=C(),n=L();return n&&/^(http:|https:)?\/\/.+\/busca\/?$/.test(n)?n:(t.search||t.home)&&"prod"===j()?`${t.search||t.home}busca/suggest`:"/busca/suggest"})()}?${_.a.stringify(e)}`;return b.a.get(t,{headers:I()})},M=(e=3)=>{const t=e=>((e=>{window.localStorageCache.save("fn-pre-suggest",e,15)})(e),e),n=e=>{const n=window.localStorageCache.load("fn-pre-suggest");return n?Promise.resolve(n):R(e).then(t)},r={score:!0,size:e},o=P();return new Promise((e,t)=>{n(r).then((e=>t=>({preSuggest:t,searchHistoryHtml:e,portalLabel:C().label}))(o)).then(e).catch(t)})},D=(e,t=6,n=3)=>{const r={q:e,score:!0,prioritarios:k(),size:Math.max(t,n),restrictions:[k(),...window.searchTenantsRestriction||[]].join(",")};return R(r)};var N=function(e){return e.stopPropagation(),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),this.removeEventListener("touchmove",i),(e=>!n&&!r&&e-o{let e;return()=>new Promise(t=>{clearTimeout(e),e=setTimeout(()=>{t()},300)})})();var U=function(e,t){let n;return function(...r){const o=this;clearTimeout(n),n=setTimeout(()=>{e.apply(o,r)},t)}};var B=(e,t)=>new Promise(n=>{if(e.length>=t)return n(e);throw new function(e){this.prototype=Object.create(Error.prototype),this.name="Validation",this.message=e}("Caracteres menor que o esperado")});var F=(e=[],t)=>(function(n){const r=e.map(e=>e.call(this,n));return Promise.all(r).then(()=>{t.call(this,n)}).catch(()=>!1)});var $=(e={})=>{const{baseSVGPath:t,insertHTML:n,className:r,placeholder:o,transitionDuration:i}=e,a=[i?`transition-duration: ${i}`:""];return n(`

\n ${`
\n \n
\n \n \n
\n
`}\n
\n
\n
    \n
    \n
    \n
    `),{templateItem:({title:e="",type:n,url:r,publisher:o,icone:i,iconeWidth:a,score:s,parent:c},l)=>"empty-message"===n?`
  • ${e}
  • `:"block-title"===n?`
  • ${e}
  • `:`\n
  • \n \n
    \n \n \n \n
    \n
    \n ${((e,t)=>"default-item"===t?`Buscar por " ${e}"  em ${C().name}`:e)(e,n)}\n ${((e="")=>e?`Em ${e}`:"")(c)}\n
    \n
    \n
  • `}};var H=(e={})=>{const{transformPreSuggest:t,transformSuggest:n,limitResult:r,limitHistory:o,minLength:i}=e,a=i,{templateItem:s}=$(e);let c=null;const l=e=>{document.querySelector(".searchV2__suggest__items").innerHTML=e.map(s).join("")},u=e=>Object.assign({},e,{limitResult:r,limitHistory:o}),p=()=>"preSuggest"===c?Promise.resolve():(c="preSuggest",new Promise(e=>M().then(u).then(t).then(l).then(e).catch(({message:e})=>{console.error(e)}))),d=({name:e,message:t})=>{switch(e){case"Validation":p();break;default:console.error(t)}};return{renderPreSuggest:p,renderSuggest:e=>new Promise(t=>B(e,a).then(D).then(u).then(n(e)).then(l).then(()=>{c="suggest"}).then(t).catch(d)),handleSuggestError:d}};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(Element.prototype.closest)return e.closest(`.${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)};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"),requestAnimationFrame(()=>{e.style.transform=`translateY(-${r}px)`;const o=()=>{n(),t.removeEventListener("transitionend",o)};t.classList.add("searchV2--animate","searchV2--opened"),t.addEventListener("transitionend",o)})},close:()=>{e.classList.remove("searchV2__noscroll"),requestAnimationFrame(()=>{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 G=(e={})=>{const{debugMode:t=!1,handleGA:n}=e,r="busca_framework",o=(...e)=>(t&&(console.group("Search tracking"),console.log([r,...e]),console.groupEnd("Search tracking")),n(["_trackEvent",r,...e]));return{search:e=>o("item buscado",e),loadSuggest:e=>o("suggest carregado",e),clickItem:e=>{o("suggests",`clique | navegacional | ${e}`)},open:()=>o("abrir busca","abrir busca",!0),close:()=>o("fechar busca","fechar busca",!0),focus:()=>o("foco campo","foco campo",!0)}};const W=({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`${C().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=("feature_content"===e.type||n)&&e.url?e.url:z(t),o=J(r);return{title:t,type:e.type||"searched",url:o,score:e.score||null,publisher:n||"",icone:X[n]?X[n].name:"eixo-icone-busca",iconeWidth:X[n]?X[n].width:22,parent:e.parent||""}},Q={data:{}},Y={transformPreSuggest:e=>[...(({searchHistoryHtml:e,limitResult:t})=>e?[{title:"Buscas Recentes",type:"block-title"},...e.reverse().slice(0,t).map(({data:e})=>K(e))]:[])(e),...(({preSuggest:e=Q,limitHistory:t})=>e.data.suggestions?[{title:"Mais buscados",type:"block-title"},...e.data.suggestions.slice(0,t).map(K)]:[])(e)],transformSuggest:e=>(t={})=>{const n=t.data||{},r=Array.isArray(n.featured_content)?n.featured_content:Array.isArray(n.featuredContent)?n.featuredContent:[],o=Array.isArray(n.suggestions)?n.suggestions:[],i=(e=>({valor:"searchvaloreconomico",pipelinevalor:"searchpipeline",valorinveste:"searchvalorinveste"})[e]||"")((()=>{const 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"})());let a=r.map(e=>{const t=Object.assign({},e,{type:"feature_content"});return K(t)}).filter(e=>!e.url.includes("/valor-ri/empresa")&&!e.url.includes("interno_origem=multicontent")).map(e=>{if((e.url||"").includes("/empresas/valor-empresas-360")){const t=new URL(e.url,window.location.origin),n=t.origin+t.pathname;let r=t.searchParams.get("interno_origem");r&&"multicontent"!==r||(r=i),e.url=`${n}?360&interno_origem=${r}`}return e}).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);const s=o.slice(0,t.limitHistory||4).map(K);return 0===a.length&&0===s.length?[{title:`Nenhum resultado encontrado para "${e}"`,type:"empty-message"}]:[...a,...s,(e=>K({title:e,type:"default-item"}))(e)]},baseSVGPath:"svg/sprite.min.svg",afterClose:null,className:"",placeholder:"o que você procura?",transitionDuration:null,limitResult:3,limitHistory:4,debugMode:!1,minLength:2,handleGA:e=>e,insertHTML(e){document.body.insertAdjacentHTML("beforeEnd",e)}};var Z=(e={})=>{const t=Object.assign({},Y,e),{renderPreSuggest:n,renderSuggest:r,handleSuggestError:o}=H(t),i=G(t),a=V(t),s=t.minLength,c=()=>{a.btnReset.display="hide",a.term=""},l=U(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),u=e=>{e.stopPropagation(),e.preventDefault();const t=a.term.trim();B(t,s).then((e=>()=>{T({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),T({url:t,title:n,publisher:this.getAttribute("data-search-publisher"),score:this.getAttribute("data-search-score")})}),d=()=>{i.close(),a.close()},f=F([W,q,({target:e})=>(a.btnReset.display=e.value.length{const t=e.target.value.trim();l(t)}),h=F([N],e=>{n().then(c),e.preventDefault(),e.stopPropagation()}),g=F([N],d),m=()=>{i.focus()},y=()=>{a.attachEvent("focus",".searchV2__header__term",m).attachEvent("keyup",".searchV2__header__term",f).attachEvent("touchstart",".searchV2__header__btn-back",g,{passive:!0}).attachEvent("touchstart",".searchV2__header__btn-reset",h,{passive:!0}).attachEvent("submit",".searchV2__header__form",u),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",m).detachEvent("keyup",".searchV2__header__term",f).detachEvent("touchstart",".searchV2__header__btn-back",g,{passive:!0}).detachEvent("touchstart",".searchV2__header__btn-reset",h,{passive:!0}).detachEvent("submit",".searchV2__header__form",u).detachEvent("touchstart",".searchV2__item",p,{passive:!0}),a.off("touchstart","searchV2__item",p,{passive:!0})}),a.open(y)},close:d}},ee=n(2),te=n.n(ee),ne=n(5),re=n.n(ne),oe=n(6),ie=n.n(oe),ae=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");t.innerHTML='').concat(e.label,""),s.appendChild(t),i&&t.addEventListener("click",function(t){i(t,e)})}),t.appendChild(a),t.appendChild(s),e.appendChild(t)}}};function se(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var ce=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;se(t),n.length>0&&ae(t).render({label:"Recentes",items:n}),r.length>0&&ae(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")}}},le=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)}}},ue=function(e){var t=e.searchUrl,n=e.term,r=e.label;return{url:"".concat(t,"/?q=").concat(encodeURIComponent(n)),label:r,term:n}},pe={valorinternational:"Results",other_tenant:"Resultados"},de={valorinternational:"search for",other_tenant:"buscar por"},fe=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;se(t);var c=te()(i),l=ue({searchUrl:n,term:r,label:"".concat(de.other_tenant,' "').concat(r,'"')});c.push(l),c.length>0&&ae(t).render({label:pe.other_tenant,items:c,onClick:s})},show:function(){t.classList.add("search-screen--is-active")},hide:function(){t.classList.remove("search-screen--is-active")}}},he=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(te()(t)),o.set(r,t.slice(0,n)),o.get(r)||[]}},clear:function(){o.set(r,null)}}},ge=n(3),me=n.n(ge),ye=n(7),ve=n.n(ye),be=n(1),we=n.n(be),_e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=t||e,s=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"},c=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i={pipelinevalor:["pipelinevalor","valor"],valorinveste:["valor-investe","valor"]}[s()]||r,a="".concat(e,"/suggest?size=").concat(t);return n&&(a+="&prioritarios=".concat(encodeURIComponent(n))),null!==i&&void 0!==i&&i.length&&(a+="&restrictions=".concat(encodeURIComponent(i.join(",")))),o&&(a+="&q=".concat(encodeURIComponent(o))),a},l=function(){var e={Accept:"application/json"};return o&&(e["X-Tenant-Id"]=o),i&&(e["X-Config-Id"]=i),e},u=function(e){if("string"==typeof e)return{term:e,label:e};if(e&&"object"===ve()(e)){var t="string"==typeof e.text&&e.text||"string"==typeof e.term&&e.term||"string"==typeof e.value&&e.value||"";return t?{term:t,label:"string"==typeof e.highlighted&&e.highlighted||"string"==typeof e.label&&e.label||t}:null}return null},p=function(e,t){return["valor","valorinveste","pipelinevalor"].includes(t)?te()(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 e=me()(we.a.mark(function e(){var t,n,r,o,i,s=arguments;return we.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:3,e.prev=1,e.next=2,fetch(c(t),{headers:l()});case 2:if((n=e.sent).ok){e.next=3;break}throw new Error("HTTP error ".concat(n.status));case 3:return e.next=4,n.json();case 4:return r=e.sent,o=r.suggestions||[],e.abrupt("return",o.map(u).filter(Boolean).map(function(e){var t=e.term,n=e.label;return ue({searchUrl:a,term:t,label:n})}));case 5:return e.prev=5,i=e.catch(1),console.error("[SearchSuggest]",i),e.abrupt("return",[]);case 6:case"end":return e.stop()}},e,null,[[1,5]])}));return function(){return e.apply(this,arguments)}}(),getSuggestItems:function(){var e=me()(we.a.mark(function e(t){var o,i,d,f,h,g,m,y,v=arguments;return we.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=v.length>1&&void 0!==v[1]?v[1]:3,i=s(),["valorinveste","pipelinevalor"].includes(i)&&(o=6),e.prev=1,e.next=2,fetch(c(o,t),{headers:l()});case 2:if((d=e.sent).ok){e.next=3;break}throw new Error("HTTP error ".concat(d.status));case 3:return e.next=4,d.json();case 4:return f=e.sent,h=(f.suggestions||[]).map(u).filter(Boolean).map(function(e){var t=e.term,n=e.label;return ue({searchUrl:a,term:t,label:n})}),g=f.featured_content||f.featuredContent||[],"valor"===i?n&&(g=g.filter(function(e){return e.product===n&&!e.url.includes("/valor-ri/empresa")})):["pipelinevalor","valorinveste"].includes(i)?r.length>0&&(g=g.filter(function(e){return r.includes(e.product)&&!e.url.includes("/valor-ri/empresa")})):n&&(g=g.filter(function(e){return e.product===n})),["valorinveste","pipelinevalor"].includes(i)&&(g=(g=g.filter(function(e,t,n){return t===n.findIndex(function(t){return t.url===e.url})})).slice(0,3)),g=p(g,i),m=g.map(function(e){return{url:e.url,label:e.title}}),e.abrupt("return",[].concat(te()(h),te()(m)));case 5:return e.prev=5,y=e.catch(1),console.error("[SearchSuggest]",y),e.abrupt("return",[]);case 6:case"end":return e.stop()}},e,null,[[1,5]])}));return function(t){return e.apply(this,arguments)}}()}},xe=function(){return ie()(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};re()(this,e),this._options=t;var n=window.location.hostname.includes(".qa.");this._options.searchUrl=n?"https://suggestions.qa.globoi.com/v1":"https://suggestions.globo.com/v1",this.root=document.querySelector(this._options.rootSelector),this.input=document.querySelector(this._options.inputSelector),this.form=this.root.querySelector("form"),this.search="";var r=window.location,o=(this.root.getAttribute("data-search-url")||"").trim()||"".concat(r.protocol,"/").concat(r.host,"/busca/");this.searchUrl=o.replace(/\/+$/g,""),this.suggestUrl=(this._options.searchUrl||"").trim().replace(/\/+$/g,""),this.searchTenant=this._options.searchTenant||this.root.getAttribute("data-search-tenant")||null,this.searchConfigId=this._options.searchConfigId||this.root.getAttribute("data-search-config-id")||(this.searchTenant?"".concat(this.searchTenant,"Default"):null),this.main=le(this.root),this.main.render(),this.cover=ce(this.main.root),this.suggest=fe(this.main.root),this.searchTenantsRestriction=[this.searchTenant].concat(te()(window.searchTenantsRestriction)),this.suggestService=_e(this.suggestUrl,this.searchUrl,this.searchTenant,this.searchTenantsRestriction,this.searchTenant,this.searchConfigId),this.latestStorage=he({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(ue({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()})}}])}(),Se=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 xe({rootSelector:".header__search ",inputSelector:".header__search__input"});var a=function(){n.style.height="50px"},s=function(){n.style.height="0px"},l=Z({baseSVGPath:""}),u=document.querySelector(".header__search__icon")||document.querySelector(".header__search__icon_vi")||document.querySelector(".header__search__icon_usp");u&&u.addEventListener("click",function(e){e.preventDefault(),c()||l.open()});var p=function(){var n=window.pageYOffset,l=e.classList.contains("header--fixed"),u=t.classList.contains("header--fixed");e.classList.contains("header--internal")&&c()&&!o||(c()?n>=r&&!l?(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(38);var Ee=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{let e=!0;return()=>new Promise(t=>{setTimeout(()=>{e=!0},500),e&&(e=!1,t())})})();var Oe=(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 Ce=(e,t=document)=>t.querySelector(e),Le=(e,t=document)=>t.querySelectorAll(e),je=(e,t,n,r)=>{t.addEventListener(e,n,r)},ke=(e,t,n,r={})=>{if(t.length)for(let o=0;o{if(t.length)for(let o=0;o{const i=`${t}--${e}`;Te=Object.assign({},Te,{[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,Te[i],r)},Re=(e,t,n,r={},o=document.body)=>{o.removeEventListener(e,Te[`${t}--${e}`],r)},Me=e=>[].slice.call(e),De=(e,t)=>{const n={back:``,next:``};return`data:image/svg+xml;charset=utf8,${encodeURIComponent(n[e]||"")}`};var Ne=(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,l=null;let u,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/u);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,l=s,o=a,i=t.classList.contains("menu-curtain--opened"),ke("scroll",Le(".menu-level",n),d,{passive:!0}),u||(u=n.getBoundingClientRect().width),window.requestAnimationFrame(f)},g=function(e){i&&!p&&(c=e.touches[0].pageX,l=e.touches[0].pageY,window.requestAnimationFrame(f))},m=function(){if(!i)return;i=!1,p=!1,o=null;const e=Math.min(0,c-a),u=Math.abs(l-s);Pe("scroll",Le(".menu-level",n),d,{passive:!0}),n.style.transform="",t.style.opacity="",u{ke("scroll",Le(".menu-level",n),d,{passive:!0}),document.addEventListener("touchstart",h,{passive:!0}),document.addEventListener("touchmove",g,{passive:!0}),document.addEventListener("touchend",m,{passive:!0}),u||(u=n.getBoundingClientRect().width)},close:()=>{i=!1,p=!1,document.removeEventListener("touchstart",h,{passive:!0}),document.removeEventListener("touchmove",g,{passive:!0}),document.removeEventListener("touchend",m,{passive:!0}),Pe("scroll",Le(".menu-level",n),d,{passive:!0})}}};let qe=!1;var Ue=(e={})=>{if(qe)return!0;const{container:t,cadunServiceId:n,cadunLoginURL:o,cadunUsePopin:i}=e,{qs:a}=r,s=Oe([Ae,Ee]),c=a(".menu-login",t),l=a("a.menu-login__item-login__link",c),u=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),g=a(".menu-login--logged",c),m=a(".menu-login--not-logged",c),y=()=>{const e=window.Cadun.user.me;return"name"in e&&""!==e.name},v=e=>{m.style.display=e[0],u.style.display=e[1],g.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=()=>{l.addEventListener("click",e=>e.preventDefault()),l.addEventListener("click",s(_)),l.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()})}}),qe=!0,!0};var Be=(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 Fe={debug:!1,color:"#000",cadunServiceId:4728,cadunLoginURL:null,cadunUsePopin:!0,handleGA(){}};var $e=(e={})=>{const t=Object.assign({},Fe,e),{qs:n,qsAll:o,attachEvent:i,toArray:a,on:s,off:c}=r,l=Be(t),u=document.body,p=document.documentElement,d=n("#menu-container"),f=n("#menu-curtain"),h=n(".menu-level-0",d),g=n(".menu-level--opened",d)||n(".menu-level",d),m=n(".menu-rounder",d),y=n(".menu-btn-back__label",d),v=y&&y.textContent,b=n(".menu-btn-back__label",g),w=b&&b.textContent;let _=0;const x=Oe([Ae,Ee]),S=+g.classList.contains("menu-level--opened");let E=S;const A=d.dataset.menuWidth||272,O=e=>{b&&(b.textContent=e)};O(v);const C=e=>{requestAnimationFrame(()=>{m.style.transform=`translateX(-${e*A}px)`,d.scrollTop=0})},L=()=>{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||(m.classList.add("menu-rounder--opened-all"),O(w)),m.removeEventListener("transitionend",L)},j=e=>{"function"==typeof e&&requestAnimationFrame(()=>e())},k=x(function(){l.push(this),requestAnimationFrame(()=>{j(()=>{(E=E-1{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"),C(E)}):this.target?window.open(this.href,this.target):window.location.href=this.href}),T=e=>e.preventDefault(),I=function(){l.makeTracking("links clicaveis",this.dataset.trackingLabel)},R=function(){const e=this.querySelector(".regua-navegacao-menu-item").textContent;l.makeTracking("links nao clicaveis",e)},M=()=>{.14===_&&(u.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,g.classList.add("menu-level--opened"),S&&m.classList.add("menu-initial"),m.classList.remove("menu-rounder--opened-all"),m.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",k,{passive:!0}),c("touchstart","menu-btn-back",k,{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",I),c("click","menu-submenu-title",R),d.removeEventListener("transitionend",M))},D=e=>{f.classList.remove("menu-curtain--opened"),_=.14,e?(l.makeTracking("interacoes menu","swipe menu fechado"),e.close()):l.makeTracking("interacoes menu","click menu fechado"),d.addEventListener("transitionend",M)},N=Ne({onClose:()=>{D(N)}}),q=()=>{S||(m.classList.add("menu-rounder--opened-all"),m.classList.remove("menu-initial"))},U=()=>{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",k,{passive:!0}),s("touchstart","menu-btn-back",k,{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",I),s("click","menu-submenu-title",R),N.open(),d.removeEventListener("transitionend",U)},B=e=>{"menu-curtain"===e.target.id&&(D(),N.close())};return q(),E&&n(".menu-initial",d).classList.add("menu-loaded"),d.style.display="block",((e={})=>{const{color:t}=e,n=document.createElement("style"),r=De("back",t),o=document.createTextNode(`.menu-btn-back__icon { background-image: url('${r}'); }`),i=De("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(B),{passive:!0}),i("click",f,x(B),{passive:!0}),{toggle:(e=null)=>{(null!==e?e:!f.classList.contains("menu-curtain--opened"))?(_=.33,u.classList.add("menu--no-scroll"),p.classList.add("menu--no-scroll"),f.classList.add("menu-curtain--opened","menu-curtain--animate"),q(),l.makeTracking("interacoes menu","click menu exibido"),d.addEventListener("transitionend",U),Ue({container:d,cadunServiceId:t.cadunServiceId,cadunLoginURL:t.cadunLoginURL,cadunUsePopin:t.cadunUsePopin})):(D(),N.close())}}},He=function(){return ie()(function e(){re()(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=$e({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)}}])}(),Ve=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="https://s.glbimg.com/gl/ba/js/barra-globocom.min.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}},Ge=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})}},We=n(15),ze=n.n(We);function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t0&&function(){t.apply(this,arguments)}()}catch(e){alert("catch login"),console.log("[initLogin] catch (e)...".concat(e))}function t(){return(t=me()(we.a.mark(function e(){var t,r,i;return we.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=document.getElementById("menu__loader"),r=document.getElementById("header__loader"),e.next=1,n();case 1:i=e.sent,t.style.display="none",r.style.display="none",o(i),new ze.a({useStrategy:i,loginAreaContainer:oidcSettings.loginAreaContainer});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function n(){return r.apply(this,arguments)}function r(){return(r=me()(we.a.mark(function e(){var t,n,r;return we.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("playlist"!=window.utag_data.content_type&&"Votação"!=window.utag_data.content_type){e.next=3;break}if(!window.globalWebdeps){e.next=2;break}return e.next=1,window.globalWebdeps("globoid-js");case 1:console.log("[initLogin] GloboID JS loaded via GlobalWebdeps"),e.next=3;break;case 2:console.warn("[initLogin] GlobalWebdeps not available, trying fallback...");case 3:return t=["techtudo"],n=window.location.host,r=new We.strategies.oidc.default(Xe({CLIENT_ID:oidcSettings.clientId,RESOURCE:oidcSettings.clientId,URL:oidcSettings.url,REDIRECT_URI:oidcSettings.redirectUri},t.some(function(e){return n.includes(e)})&&{ONLOAD:!1,LEGACY_COMPATIBLE:!1})),e.next=4,r.initGloboIdClient();case 4:return e.abrupt("return",r);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function o(e){window.editoraGloboAuthenticationLib={},e.isLogged().then(function(){var t=me()(we.a.mark(function t(n){var r;return we.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.EdgGloboIdData,window.editoraGloboAuthenticationLib={login:e.login,isLogged:r[0].isLogged,EdgGloboIdData:r};case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())}},Qe=function(){return ie()(function e(){re()(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 l=document.getElementById("header");document.addEventListener("scroll",function(e){l.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)}}])}();Se(),new Qe,new He,Ve(),Ge(),Ke()},function(e,t,n){"use strict";n.r(t);var r=class{handleEventListener(e){document.querySelectorAll(e.trigger).forEach(t=>t.addEventListener(e.type,e.handler))}render(e={}){const t=document.querySelector(e.template).innerHTML;document.querySelector(e.container).innerHTML=t,e.events.map(e=>{this.handleEventListener(e)})}};const o={loginAreaContainer:[{rootElement:".header__actions",signedInTemplateSelector:'[data-template="header-signedin"]',signedOutTemplateSelector:'[data-template="header-signedout"]'},{rootElement:".menu-login__item",signedInTemplateSelector:'[data-template="menu-signedin"]',signedOutTemplateSelector:'[data-template="menu-signedout"]'}],loginButtonSelector:'[data-action="login"]',logoutButtonSelector:'[data-action="logout"]',loginWallSelector:"data-login",userContainers:{userPicture:'[data-content="user-picture"]',userName:'[data-content="user-name"]'},useStrategy:null};t.default=class extends r{constructor(e={}){super();const{loginAreaContainer:t,loginButtonSelector:n,logoutButtonSelector:r,loginWallSelector:i,userContainers:a,useStrategy:s}=Object.assign({},o,e);this.renderContainers=t,this.actionLogin=n,this.actionLogout=r,this.WallSelector=i,this.userPictureContainer=a.userPicture,this.userNameContainer=a.userName,this.strategy=s,this.handleLogin=this.handleLogin.bind(this),this.handleLogout=this.handleLogout.bind(this),this.initEvents()}handleLogin(e){e.preventDefault(),this.strategy.login()}handleLogout(e){e.preventDefault(),this.strategy.logout()}async renderUserData(){const e=await this.strategy.retrieveUserData();e&&"object"==typeof e&&(document.querySelectorAll(this.userPictureContainer).forEach(t=>{if(e.picture||e.photoUrl){let n=document.createElement("img");n.setAttribute("alt",e.name||e.userName||""),n.setAttribute("src",e.picture||e.photoUrl||""),t.appendChild(n)}else{const e='';t.insertAdjacentHTML("beforeend",e)}}),document.querySelectorAll(this.userNameContainer).forEach(t=>{const n=e.name||e.userName||"";n&&(t.innerText=n.split(" ")[0])}))}async renderLoginArea(){const e=await this.strategy.isLogged();this.renderContainers.map(t=>{this.render({container:t.rootElement,template:e?t.signedInTemplateSelector:t.signedOutTemplateSelector,events:[{type:"click",handler:e?this.handleLogout:this.handleLogin,trigger:e?this.actionLogout:this.actionLogin}]})}),e?this.renderUserData():this.handleEventListener({type:"click",handler:this.handleLogin,trigger:this.actionLogin})}async bindLoginWall(){const e=await this.strategy.isLogged();try{document.querySelector(`[${this.WallSelector}]`).setAttribute(this.WallSelector,e)}catch(e){}}initEvents(){this.renderLoginArea(),this.bindLoginWall()}}}]); !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): https://github.com/facebook/regenerator/blob/main/LICENSE */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",l=s.asyncIterator||"@@asyncIterator",d=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 C(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",y="executing",_="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 l=u.arg,d=l.value;return d&&"object"==r(d)&&a.call(d,"__await")?e.resolve(d.__await).then(function(t){o("next",t,c,s)},function(t){o("throw",t,c,s)}):e.resolve(d).then(function(t){l.value=t,c(l)},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===y)throw Error("Generator is already running");if(i===_){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=_,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var u=f(t,o,r);if("normal"===u.type){if(i=r.done?_:v,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=_,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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(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=0;--i){var n=this.tryEntries[i],c=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc=0;--o){var r=this.tryEntries[o];if(r.tryLoc=0;--e){var o=this.tryEntries[e];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),I(o),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc===t){var r=o.completion;if("throw"===r.type){var i=r.arg;I(o)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,o,r){return this.delegate={iterator:j(t),resultName:o,nextLoc:r},"next"===this.method&&(this.arg=e),m}},o}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function o(e){"@babel/helpers - typeof";return t.exports=o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,o){"use strict";o.r(e);var r=o(1),i=o.n(r),n=o(0),a=o.n(n);const c="debug",s=Object.freeze({oglobo:{id:"3981",id_simple:"6907",cod_prod:"OG03",isOidcLogin:!1,isNewLoginService:!0,productGroup:"oglobo"},valor:{id:"6668",id_simple:"6908",cod_prod:"valordigital",isOidcLogin:!1,isNewLoginService:!1,productGroup:""},valoroneinterno:{id:"7097",id_simple:"6908",cod_prod:" valor-one",isOidcLogin:!1,isNewLoginService:!0,productGroup:""},monet:{id:"7075",id_simple:"7075",cod_prod:"monet",isOidcLogin:!1,isNewLoginService:!0,productGroup:""},autoesporte:{id:"6985",id_simple:"6985",cod_prod:"auto-esporte",isOidcLogin:!1,isNewLoginService:!0,productGroup:""},vogue:{id:"7061",id_simple:"7061",cod_prod:"vogue",isOidcLogin:!1,isNewLoginService:!0,productGroup:""},glamour:{id:"6616",id_simple:"6616",cod_prod:"glamour",isOidcLogin:!1,isNewLoginService:!1,productGroup:""},casavogue:{id:"6610",id_simple:"6610",cod_prod:"casa-vogue",isOidcLogin:!1,isNewLoginService:!1,productGroup:""},marieclaire:{id:"7073",id_simple:"7073",cod_prod:"marie-claire",isOidcLogin:!1,isNewLoginService:!0,productGroup:""},globorural:{id:"6621",id_simple:"6612",cod_prod:"globo-rural",isOidcLogin:!1,isNewLoginService:!1,productGroup:""},gq:{id:"6622",id_simple:"6622",cod_prod:"gq",isOidcLogin:!1,isNewLoginService:!1,productGroup:""},crescer:{id:"7065",id_simple:"7065",cod_prod:"crescer",isOidcLogin:!1,isNewLoginService:!0,productGroup:""},galileu:{id:"7076",id_simple:"7076",cod_prod:"galileu",isOidcLogin:!1,isNewLoginService:!0,productGroup:""},epocanegocios:{id:"6611",id_simple:"6611",cod_prod:"epoca-negocios",isOidcLogin:!1,isNewLoginService:!1,productGroup:""},casaejardim:{id:"6619",id_simple:"6619",cod_prod:"casa-jardim",isOidcLogin:!1,isNewLoginService:!1,productGroup:""},quem:{id:"7077",id_simple:"7077",cod_prod:"quem",isOidcLogin:!1,isNewLoginService:!0,productGroup:""},pegn:{id:"7074",id_simple:"7074",cod_prod:"pequenas-empresas",isOidcLogin:!1,isNewLoginService:!0,productGroup:""}}),u=Object.freeze({prod:{API_INFOGLOBO:"https://api.infoglobo.com.br/",MODE:"production"},qa:{API_INFOGLOBO:"https://apiqlt-ig.infoglobo.com.br/",MODE:"production"}}),l=5e3,d="UserDataGloboId";class p{constructor(t="oglobo",e="prod",o=!1){this.tenant=t,this.config={...s[t],...u[e]},this.config.MODE=this.config.MODE===c||o?c:this.config.MODE,this._setData({autorizado:!1,logado:!1,motivo:"",glbid:"",uuid:"",access_token:""})}static base64UrlDecode(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");for(;e.length%4;)e+="=";return atob(e)}async getData(){const t=this._getAccessToken(),e=this._getCookieCache(),o=this._getGLOBOID(),r=this._getGLBID(),i=this._getUTP();if(r||t)if(this._isCookieCacheValid()){const t=this._getCookieCacheData(e);this._setData(t),this.LOG("Cache setado",this.data)}else{if(t&&(this._setData({access_token:t}),this.LOG("Access Token setado",this.data)),r&&(this._setData({logado:!0,glbid:r}),this.LOG("GLBID setado",this.data)),o){const t=this._getGLOBOIDData(o);this._setData({...t,uuid:t.globoId}),this.LOG("GLOBO_ID setado",this.data)}if(i){const t=this._getUTPData(i);this._setData(t),this.LOG("_utp setado",this.data)}else await this._getBarramentoData();this._setCookieCache()}else p.eraseCookie(d);return this.data}static getCookie(t){var e=" "+document.cookie,o=" "+t+"=",r=e.indexOf(o);if(-1===r)return null;var i=r+o.length,n=e.indexOf(";",i);return-1!==n?e.substring(i,n):e.substring(i)}static setCookie(t,e,o){var r="";if(o){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=t+"="+(e||"")+r+"; path=/"}static eraseCookie(t){document.cookie=t+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}_setData(t){"object"==typeof t&&(this.data={...this.data,...t})}_getUTPData(t){try{const e=decodeURIComponent(atob(t));return JSON.parse(e)}catch(t){throw new Error("[infoglobo-user-lib] Erro na conversão do cookie _utp")}}_getGLOBOIDData(t){try{const e=t.split(".")[1],o=p.base64UrlDecode(e);return JSON.parse(o)}catch(t){throw new Error("[infoglobo-user-lib] Erro na conversão do cookie GLOBO_ID")}}_getCookieCacheData(t){try{return JSON.parse(t)}catch(t){throw new Error(`[infoglobo-user-lib] Erro na conversão do cookie ${d}`)}}async _getBarramentoData(){return new Promise((t,e)=>{setTimeout(async()=>{if(this.data.glbid||this.data.access_token)try{const t=this._getUTP(),o=this._getGLOBOID();if(o){const t=this._getGLOBOIDData(o);this._setData({...t,uuid:t.globoId}),this.LOG("Timeout GLOBO_ID setado",this.data)}if(t){const e=this._getUTPData(t);this._setData(e),this.LOG("Timeout _utp setado",this.data)}else this.data.access_token?await this._fetchDataV4(this.data.access_token):await this._fetchData()}catch(t){e(t)}t(this.data)},l)})}async _fetchData(){try{const t=`${this.config.API_INFOGLOBO}relacionamento/v3/funcionalidade/${this.config.id}/autorizacao-acesso`,e={ipUsuario:"127.0.0.1","token-autenticacao":this.data.glbid,codigoProduto:this.config.cod_prod},o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","ig-requestid":`infoglobo-user-lib-${(new Date).getTime()}`},body:JSON.stringify(e)}),r=await o.json();this._setData(r),this.LOG("Timeout Barramento v3 setado",this.data)}catch(t){throw new Error("[infoglobo-user-lib] Erro ao consultar a API")}}async _fetchDataV4(t){try{const e=`${this.config.API_INFOGLOBO}relacionamento/v4/autorizacao-acesso/${this.config.id_simple}/solicitacao-autorizacao/`,o={"token-acesso":t,codigoProduto:this.config.cod_prod},r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","ig-requestid":`infoglobo-user-lib-${(new Date).getTime()}`},body:JSON.stringify(o)}),i=await r.json();this._setData(i),this.LOG("Timeout Barramento v4 setado",this.data)}catch(t){throw new Error("[infoglobo-user-lib] Erro ao consultar a API Barramento v4")}}_getAccessToken(){const t=`globoid-tokens-${window.oidcSettings.clientId}`,e=window.localStorage.getItem(t);return e?JSON.parse(e).access_token:void 0}_getGLBID(){return p.getCookie("GLBID")}_getUTP(){return p.getCookie("_utp")}_getGLOBOID(){return p.getCookie("GLOBO_ID")}_getCookieCache(){return p.getCookie(d)}_setCookieCache(){p.setCookie(d,JSON.stringify(this.data),1)}_isCookieCacheValid(){const t=this._getCookieCache(),e=this._getGLOBOID();if(t&&e){const o=this._getCookieCacheData(t),r=this._getGLOBOIDData(e);return o.globoId===r.globoId}return!1}LOG(t="",e={}){this.config.MODE===c&&console.log("[infoglobo-user-lib]",t,e)}}var h=p,f=function(){var t=window.location.hostname;return t.includes("local.globo.com")||t.includes("localhost")||t.includes(".qa.globoi.com")||t.includes(".qa01.globoi.com")||t.includes(".dev.globoi.com")?"qa":"prod"};if(window.tenant){var g=function(){var t=i()(a.a.mark(function t(){var e,o,r,i;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=new h(v,y,!0),t.next=3,e.getData();case 3:o=t.sent,r=o.autorizado||!1,i=null,window.tp&&window.tp.customVariables&&(i=window.tp.customVariables.exAssinante),OneSignal.push(function(){OneSignal.sendTag("autorizado",r),null!==i&&OneSignal.sendTag("ex-assinante",i)});case 8:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),v=window.tenant?window.tenant:null,y=window.glb&&"function"==typeof window.glb.getCurrentEnv?window.glb.getCurrentEnv():f(),_=window.OneSignalConfig&&window.OneSignalConfig.tenantsNotReq?window.OneSignalConfig.tenantsNotReq:[];window.addEventListener("load",function(){v&&!_.includes(v)?(g(),console.log("[ONESIGNAL] Tenant ".concat(v," - Sending tag to Onesignal"))):v?console.log("[ONESIGNAL] Tenant ".concat(v," - Tag not sent to Onesignal")):console.log("[ONESIGNAL] Tenant no definido - Tag not sent to Onesignal")})}}]); !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(e,t,r){}]); !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=5)}({0:function(e,t,n){},5:function(e,t,n){"use strict";n.r(t);n(0);var r,i=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},o=function(e){if("loading"===document.readyState)return"loading";var t=i();if(t){if(e(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},u=-1,d=function(){return u},s=function(e){addEventListener("pageshow",function(t){t.persisted&&(u=t.timeStamp,e(t))},!0)},f=function(){var e=i();return e&&e.activationStart||0},l=function(e,t){var n=i(),r="navigate";return d()>=0?r="back-forward-cache":n&&(document.prerendering||f()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},v=function(e,t,n,r){var i,o;return function(a){t.value>=0&&(a||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},m=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},g=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},y=(new Date,0),h=1/0,_=0,b=function(e){e.forEach(function(e){e.interactionId&&(h=Math.min(h,e.interactionId),_=Math.max(_,e.interactionId),y=_?(_-h)/7+1:0)})},T=function(){return r?y:performance.interactionCount||0},E=function(){"interactionCount"in performance||r||(r=p("event",b,{type:"event",buffered:!0,durationThreshold:0}))},w=[200,500],S=0,L=function(){return T()-S},P=[],I={},M=function(e){var t=P[P.length-1],n=I[e.interactionId];if(n||P.lengtht.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};I[r.id]=r,P.push(r)}P.sort(function(e,t){return t.latency-e.latency}),P.splice(10).forEach(function(e){delete I[e.id]})}};!function(e,t){!function(e,t){t=t||{},g(function(){var n;E();var r,i=l("INP"),o=function(e){e.forEach(function(e){e.interactionId&&M(e),"first-input"===e.entryType&&!P.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})&&M(e)});var t,n=(t=Math.min(P.length-1,Math.floor(L()/50)),P[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},a=p("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=v(e,i,w,t.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),m(function(){o(a.takeRecords()),i.value0&&(i.value=0,i.entries=[]),r(!0)}),s(function(){P=[],S=T(),i=l("INP"),r=v(e,i,w,t.reportAllChanges)}))})}(function(t){!function(e){if(e.entries.length){var t=e.entries.sort(function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)})[0],n=e.entries.find(function(e){return e.target});e.attribution={eventTarget:c(n&&n.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)}}else e.attribution={}}(t),e(t)},t)}(function(e){e.name;var t=e.value,n=e.id,r=e.attribution,i=r.eventEntry,o={event:"EventoINP",metric_inp_value:t,metric_id:n,metric_inp_event_target:r.eventTarget,metric_inp_event_type:r.eventType,metric_inp_load_state:r.loadState,metric_inp_start_time:i.startTime,metric_inp_processing_start:i.processingStart,metric_inp_processing_end:i.processingEnd,metric_inp_duration:i.duration,metric_inp_interaction_id:i.interactionId};try{window&&void 0!==window.dataLayer&&null!==window.dataLayer&&(window.dataLayer.push(o),console.log("eventParams_inp",o))}catch(e){console.error(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=5)}({4:function(e,t,n){},5:function(e,t,n){"use strict";n(4)}}); !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(e,t,r){}]);; !function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},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=16)}([function(e,t,r){var o=r(15)();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},function(e,t){function r(e,t,r,o,n,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(o,n)}e.exports=function(e){return function(){var t=this,o=arguments;return new Promise(function(n,i){var a=e.apply(t,o);function s(e){r(a,n,i,s,c,"next",e)}function c(e){r(a,n,i,s,c,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var o=r(11),n=r(12),i=r(13),a=r(14);e.exports=function(e){return o(e)||n(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t){"@babel/helpers - typeof";return e.exports=r="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.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var o=r(3).default,n=r(10);e.exports=function(e){var t=n(e,"string");return"symbol"==o(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r{setTimeout(async()=>{if(this.data.glbid||this.data.access_token)try{const e=this._getUTP(),r=this._getGLOBOID();if(r){const e=this._getGLOBOIDData(r);this._setData({...e,uuid:e.globoId}),this.LOG("Timeout GLOBO_ID setado",this.data)}if(e){const t=this._getUTPData(e);this._setData(t),this.LOG("Timeout _utp setado",this.data)}else this.data.access_token?await this._fetchDataV4(this.data.access_token):await this._fetchData()}catch(e){t(e)}e(this.data)},v)})}async _fetchData(){try{const e=`${this.config.API_INFOGLOBO}relacionamento/v3/funcionalidade/${this.config.id}/autorizacao-acesso`,t={ipUsuario:"127.0.0.1","token-autenticacao":this.data.glbid,codigoProduto:this.config.cod_prod},r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","ig-requestid":`infoglobo-user-lib-${(new Date).getTime()}`},body:JSON.stringify(t)}),o=await r.json();this._setData(o),this.LOG("Timeout Barramento v3 setado",this.data)}catch(e){throw new Error("[infoglobo-user-lib] Erro ao consultar a API")}}async _fetchDataV4(e){try{const t=`${this.config.API_INFOGLOBO}relacionamento/v4/autorizacao-acesso/${this.config.id_simple}/solicitacao-autorizacao/`,r={"token-acesso":e,codigoProduto:this.config.cod_prod},o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","ig-requestid":`infoglobo-user-lib-${(new Date).getTime()}`},body:JSON.stringify(r)}),n=await o.json();this._setData(n),this.LOG("Timeout Barramento v4 setado",this.data)}catch(e){throw new Error("[infoglobo-user-lib] Erro ao consultar a API Barramento v4")}}_getAccessToken(){const e=`globoid-tokens-${window.oidcSettings.clientId}`,t=window.localStorage.getItem(e);return t?JSON.parse(t).access_token:void 0}_getGLBID(){return b.getCookie("GLBID")}_getUTP(){return b.getCookie("_utp")}_getGLOBOID(){return b.getCookie("GLOBO_ID")}_getCookieCache(){return b.getCookie(_)}_setCookieCache(){b.setCookie(_,JSON.stringify(this.data),1)}_isCookieCacheValid(){const e=this._getCookieCache(),t=this._getGLOBOID();if(e&&t){const r=this._getCookieCacheData(e),o=this._getGLOBOIDData(t);return r.globoId===o.globoId}return!1}LOG(e="",t={}){this.config.MODE===y&&console.log("[infoglobo-user-lib]",e,t)}}var w=b;function O(e){return w.getCookie(e)}var x=function(){var e=window.location.hostname;return e.includes("local.globo.com")||e.includes("localhost")||e.includes(".qa.globoi.com")||e.includes(".qa01.globoi.com")||e.includes(".dev.globoi.com")?"qa":"prod"},L=function(){for(var e=new Set,t=document.getElementsByTagName("a"),r=0;r=120))break}return Array.from(e)};function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function k(e){for(var t=1;t0&&(this.feed.dataset.type="news",t.sections.map(function(t){var r=e.form.querySelector(".myfeed__input[name='".concat(t.section_name,"']"));r&&(r.checked=!0,e.saveButton.disabled=!1)}))}}},{key:"showWarningNoArticles",value:function(){var e=this.userPreferences.preferences.sections,t=a()(document.querySelectorAll(".myfeed__label")).some(function(t){return e.some(function(e){return t.textContent===e.section_name})});e&&e.length>0&&t?(this.feed.dataset.type="news",document.querySelector(".myfeed__alert").textContent="Desculpe, não temos nenhuma notícia com os assuntos do seu interesse nesse momento.",document.querySelector(".myfeed__alert").style.display="block",this.feed.querySelector("footer").style.display="none"):(this.feed.dataset.type="fav",document.querySelector(".myfeed__alert").textContent="")}},{key:"updateArticlesRender",value:function(){var e=this,t=!!this.userPreferences.preferences,r=!!this.userPreferences.articles;if(t&&r){var o=this.userPreferences.articles;o.length>0?(o.map(function(t){var r=e.template.content.cloneNode(!0),o=t.title,n=(t.hat,t.image),i=t.image94,a=t.url,s=t.section;if(r.querySelector(".myfeed__hat a").innerHTML=s,r.querySelector(".myfeed__subject a").innerHTML=o,r.querySelectorAll(".myfeed__link").forEach(function(t){return t.href="".concat(a,"?interno_origem=home").concat(e.tenant,"&interno_midia=assuntosfavoritos&interno_campanha=urlmateriaassuntosfavoritos")}),i||n)r.querySelector(".myfeed__photo").src=i||n,r.querySelector(".myfeed__photo").alt=o;else{var c=r.querySelector(".myfeed__picture");c.parentNode.removeChild(c)}e.container.appendChild(r)}),this.feed.dataset.type="news",document.querySelector(".myfeed__alert").textContent="",this.showLess()):this.showWarningNoArticles()}}},{key:"clearUserPreferences",value:function(){var e=c()(h.a.mark(function e(){var t;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={preferences:[],tenant:this.tenant,uuid:this.userId},e.next=3,this.requestUserPreferences({method:"POST",body:JSON.stringify(t)});case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"editOrClearPreferences",value:function(){var e=this,t=this.feed.querySelector(".myfeed__edit"),r=this.feed.querySelector(".myfeed__clean");t.addEventListener("click",function(t){t.preventDefault(),e.feed.dataset.type="fav",e.feed.querySelector("footer").style.display="none",document.querySelector(".myfeed__alert").style.display="none"}),r.addEventListener("click",function(){var t=c()(h.a.mark(function t(r){return h.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r.preventDefault(),e.userSelection=a()(e.form.querySelectorAll(".myfeed__input:checked")),e.userSelection.map(function(e){e.checked=!1}),t.prev=3,t.next=6,e.clearUserPreferences();case 6:e.saveButton.disabled=!0,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),e.saveButton.disabled=!1;case 12:case"end":return t.stop()}},t,null,[[3,9]])}));return function(e){return t.apply(this,arguments)}}())}},{key:"requestUserPreferences",value:function(){var e=c()(h.a.mark(function e(){var t,r,o,n,i,a,s,c,u,l,d=arguments;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{method:"GET"},r=window.object_localstorage,""!==(o=(o=localStorage.getItem(r))||"")?(n=JSON.parse(o),i=n.access_token,a={"Content-Type":"application/json",Authorization:"Bearer ".concat(i)}):a={"Content-Type":"application/json",Authorization:"Bearer"},(s=L())&&s.length>0&&(a["Custom-URLs"]=s.join(",")),c=k(k({},t),{},{headers:a}),e.next=10,fetch(this.userPreferencesUrl(),c);case 10:return u=e.sent,e.next=13,u.json();case 13:return l=e.sent,e.abrupt("return",l);case 15:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"hideItems",value:function(){this.form.classList.add("feed_hidden"),this.feed.querySelector(".myfeed__loginspan").classList.add("feed_hidden")}},{key:"saveUserPreferences",value:function(){var e=this;this.saveButton.addEventListener("click",function(t){t.preventDefault(),e.userSelection=a()(e.form.querySelectorAll(".myfeed__input:checked")),e.userSectionPreferences=e.userSelection.map(function(e){return{section_name:e.value,section_id:e.dataset.sectionid}});var r={preferences:e.userSectionPreferences,tenant:e.tenant,uuid:e.userId};e.sendData(r)})}},{key:"sendData",value:function(){var e=c()(h.a.mark(function e(t){var r;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestUserPreferences({method:"POST",body:JSON.stringify(t)});case 2:r=e.sent,this.userPreferences=r,this.clearArticles(),this.updateArticlesRender();case 6:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"showMore",value:function(){var e=document.querySelectorAll(".myfeed__card");if(e.length>3){for(var t=Math.ceil(e.length/2);t3){for(var t=Math.ceil(e.length/2);t=0;--n){var i=this.tryEntries[n],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc=0;--r){var o=this.tryEntries[r];if(o.tryLoc=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;C(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:q(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),_}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r.r(t);r(17);var o=r(9);document.addEventListener("DOMContentLoaded",function(e){e.preventDefault();var t=document.querySelector(".myfeed");new o.default(t).init()})},function(e,t,r){}]); !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