“),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=78)}([function(e,t,n){“use strict”;var r=n(14),o=n(36),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;n1&&”boolean”!=typeof t)throw new i(‘”allowMissing” argument must be a boolean’);if(null===E(/^%?[^%]*%?$/,e))throw new r(“`%` may not be present anywhere but at the beginning and end of the intrinsic name”);var n=function(e){var t=x(e,0,1),n=x(e,-1);if(“%”===t&&”%”!==n)throw new r(“invalid intrinsic syntax, expected closing `%`”);if(“%”===n&&”%”!==t)throw new r(“invalid intrinsic syntax, expected opening `%`”);var o=[];return _(e,A,function(e,t,n,r){o[o.length]=n?_(r,L,”$1″):t||e}),o}(e),o=n.length>0?n[0]:””,a=C(“%”+o+”%”,t),c=a.name,l=a.value,u=!1,p=a.alias;p&&(o=p[0],S(n,w([0,1],p)));for(var d=1,f=!0;d=n.length){var v=s(l,h);l=(f=!!v)&&”get”in v&&!(“originalValue”in v.get)?v.get:l[h]}else f=b(l,h),l=l[h];f&&!u&&(g[c]=l)}}return l}},function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,c,”next”,e)}function c(e){n(a,o,i,s,c,”throw”,e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(13);function o(e,t){for(var n=0;n=200&&e<300},headers:{common:{Accept:”application/json, text/plain, */*”}}};r.forEach([“delete”,”get”,”head”],function(e){s.headers[e]={}}),r.forEach([“post”,”put”,”patch”],function(e){s.headers[e]=r.merge(i)}),e.exports=s}).call(this,n(38))},function(e,t,n){“use strict”;var r=n(59);e.exports=Function.prototype.bind||r},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(79),e.exports.strategies={cadun:n(75),oidc:n(76)}},function(e,t,n){var r=n(8).default,o=n(32);e.exports=function(e){var t=o(e,”string”);return”symbol”==r(t)?t:String(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;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=a[u]:u<2048?c+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?c+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return c},isBuffer:function(e){return!(!e||”object”!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return”[object RegExp]”===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n
* @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(9),o=n(0),i=n(47),a=n(48),s=n(50),c=n(51);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=t<<8|n}return a}},function(e,t,n){“use strict”;var r=n(0);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+”=”+encodeURIComponent(t)),r.isNumber(n)&&s.push(“expires=”+new Date(n).toGMTString()),r.isString(o)&&s.push(“path=”+o),r.isString(i)&&s.push(“domain=”+i),!0===a&&s.push(“secure”),document.cookie=s.join(“; “)},read:function(e){var t=document.cookie.match(new RegExp(“(^|;\\s*)(“+e+”)=([^;]*)”));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,””,Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){“use strict”;var r=n(0);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},function(e,t,n){“use strict”;var r=n(0),o=n(49),i=n(17),a=n(9);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach([“delete”,”get”,”head”,”post”,”put”,”patch”,”common”],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){“use strict”;var r=n(0);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){“use strict”;e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){“use strict”;e.exports=function(e,t){return t?e.replace(/\/+$/,””)+”/”+t.replace(/^\/+/,””):e}},function(e,t,n){“use strict”;var r=n(18);function o(e){if(“function”!=typeof e)throw new TypeError(“executor must be a function.”);var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},function(e,t,n){“use strict”;e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){“use strict”;var r=n(55),o=n(21),i=n(11),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+”[]”},comma:”comma”,indices:function(e,t){return e+”[“+t+”]”},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:”utf-8″,charsetSentinel:!1,delimiter:”&”,encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},g=function e(t,n,i,a,s,l,p,d,g,m,y,v,b,w,S,_){for(var x=t,E=_,A=0,L=!1;void 0!==(E=E.get(h))&&!L;){var C=E.get(t);if(A+=1,void 0!==C){if(C===A)throw new RangeError(“Cyclic object value”);L=!0}void 0===E.get(h)&&(A=0)}if(“function”==typeof d?x=d(n,x):x instanceof Date?x=y(x):”comma”===i&&c(x)&&(x=o.maybeMap(x,function(e){return e instanceof Date?y(e):e})),null===x){if(s)return p&&!w?p(n,f.encoder,S,”key”,v):n;x=””}if(function(e){return”string”==typeof e||”number”==typeof e||”boolean”==typeof e||”symbol”==typeof e||”bigint”==typeof e}(x)||o.isBuffer(x))return p?[b(w?n:p(n,f.encoder,S,”key”,v))+”=”+b(p(x,f.encoder,S,”value”,v))]:[b(n)+”=”+b(String(x))];var O,j=[];if(void 0===x)return j;if(“comma”===i&&c(x))w&&p&&(x=o.maybeMap(x,p)),O=[{value:x.length>0?x.join(“,”)||null:void 0}];else if(c(d))O=d;else{var k=Object.keys(x);O=g?k.sort(g):k}for(var P=a&&c(x)&&1===x.length?n+”[]”:n,T=0;T0?S+w:””}},function(e,t,n){“use strict”;var r=n(3),o=n(61),i=n(65),a=r(“%TypeError%”),s=r(“%WeakMap%”,!0),c=r(“%Map%”,!0),l=o(“WeakMap.prototype.get”,!0),u=o(“WeakMap.prototype.set”,!0),p=o(“WeakMap.prototype.has”,!0),d=o(“Map.prototype.get”,!0),f=o(“Map.prototype.set”,!0),h=o(“Map.prototype.has”,!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a(“Side channel does not contain “+i(e))},get:function(r){if(s&&r&&(“object”==typeof r||”function”==typeof r)){if(e)return l(e,r)}else if(c){if(t)return d(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&(“object”==typeof r||”function”==typeof r)){if(e)return p(e,r)}else if(c){if(t)return h(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,o){s&&r&&(“object”==typeof r||”function”==typeof r)?(e||(e=new s),u(e,r,o)):c?(t||(t=new c),f(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},function(e,t,n){“use strict”;var r=”undefined”!=typeof Symbol&&Symbol,o=n(57);e.exports=function(){return”function”==typeof r&&(“function”==typeof Symbol&&(“symbol”==typeof r(“foo”)&&(“symbol”==typeof Symbol(“bar”)&&o())))}},function(e,t,n){“use strict”;e.exports=function(){if(“function”!=typeof Symbol||”function”!=typeof Object.getOwnPropertySymbols)return!1;if(“symbol”==typeof Symbol.iterator)return!0;var e={},t=Symbol(“test”),n=Object(t);if(“string”==typeof t)return!1;if(“[object Symbol]”!==Object.prototype.toString.call(t))return!1;if(“[object Symbol]”!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if(“function”==typeof Object.keys&&0!==Object.keys(e).length)return!1;if(“function”==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(“function”==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){“use strict”;var r={foo:{}},o=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof o)}},function(e,t,n){“use strict”;var r=Object.prototype.toString,o=Math.max,i=function(e,t){for(var n=[],r=0;r-1?o(n):n}},function(e,t,n){“use strict”;var r=n(10),o=n(3),i=n(63),a=o(“%TypeError%”),s=o(“%Function.prototype.apply%”),c=o(“%Function.prototype.call%”),l=o(“%Reflect.apply%”,!0)||r.call(c,s),u=o(“%Object.defineProperty%”,!0),p=o(“%Math.max%”);if(u)try{u({},”a”,{value:1})}catch(e){u=null}e.exports=function(e){if(“function”!=typeof e)throw new a(“a function is required”);var t=l(r,c,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return l(r,s,arguments)};u?u(e.exports,”apply”,{value:d}):e.exports.apply=d},function(e,t,n){“use strict”;var r=n(3),o=n(64),i=n(19)(),a=n(20),s=r(“%TypeError%”),c=r(“%Math.floor%”);e.exports=function(e,t){if(“function”!=typeof e)throw new s(“`fn` is not a function”);if(“number”!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s(“`length` must be a positive 32-bit integer”);var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if(“length”in e&&a){var u=a(e,”length”);u&&!u.configurable&&(r=!1),u&&!u.writable&&(l=!1)}return(r||l||!n)&&(i?o(e,”length”,t,!0,!0):o(e,”length”,t)),e}},function(e,t,n){“use strict”;var r=n(19)(),o=n(3),i=r&&o(“%Object.defineProperty%”,!0);if(i)try{i({},”a”,{value:1})}catch(e){i=!1}var a=o(“%SyntaxError%”),s=o(“%TypeError%”),c=n(20);e.exports=function(e,t,n){if(!e||”object”!=typeof e&&”function”!=typeof e)throw new s(“`obj` must be an object or a function`”);if(“string”!=typeof t&&”symbol”!=typeof t)throw new s(“`property` must be a string or a symbol`”);if(arguments.length>3&&”boolean”!=typeof arguments[3]&&null!==arguments[3])throw new s(“`nonEnumerable`, if provided, must be a boolean or null”);if(arguments.length>4&&”boolean”!=typeof arguments[4]&&null!==arguments[4])throw new s(“`nonWritable`, if provided, must be a boolean or null”);if(arguments.length>5&&”boolean”!=typeof arguments[5]&&null!==arguments[5])throw new s(“`nonConfigurable`, if provided, must be a boolean or null”);if(arguments.length>6&&”boolean”!=typeof arguments[6])throw new s(“`loose`, if provided, must be a boolean”);var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!c&&c(e,t);if(i)i(e,t,{configurable:null===l&&p?p.configurable:!l,enumerable:null===r&&p?p.enumerable:!r,value:n,writable:null===o&&p?p.writable:!o});else{if(!u&&(r||o||l))throw new a(“This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.”);e[t]=n}}},function(e,t,n){(function(t){var r=”function”==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,”size”):null,i=r&&o&&”function”==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s=”function”==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,”size”):null,l=s&&c&&”function”==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,p=”function”==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d=”function”==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f=”function”==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,_=RegExp.prototype.test,x=Array.prototype.concat,E=Array.prototype.join,A=Array.prototype.slice,L=Math.floor,C=”function”==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,j=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?Symbol.prototype.toString:null,k=”function”==typeof Symbol&&”object”==typeof Symbol.iterator,P=”function”==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||”symbol”)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,I=(“function”==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(“number”==typeof e){var r=e<0?-L(-e):L(e);if(r!==e){var o=String(r),i=v.call(t,o.length+1);return b.call(o,n,”$&_”)+”.”+b.call(b.call(i,/([0-9]{3})/g,”$&_”),/_$/,””)}}return b.call(t,n,”$&_”)}var M=n(67),N=M.custom,U=H(N)?N:null;function D(e,t,n){var r=”double”===(n.quoteStyle||t)?'”‘:”‘”;return r+e+r}function q(e){return b.call(String(e),/”/g,”””)}function B(e){return!(“[object Array]”!==V(e)||P&&”object”==typeof e&&P in e)}function F(e){return!(“[object RegExp]”!==V(e)||P&&”object”==typeof e&&P in e)}function H(e){if(k)return e&&”object”==typeof e&&e instanceof Symbol;if(“symbol”==typeof e)return!0;if(!e||”object”!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}e.exports=function e(n,r,o,s){var c=r||{};if(G(c,”quoteStyle”)&&”single”!==c.quoteStyle&&”double”!==c.quoteStyle)throw new TypeError(‘option “quoteStyle” must be “single” or “double”‘);if(G(c,”maxStringLength”)&&(“number”==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError(‘option “maxStringLength”, if provided, must be a positive integer, Infinity, or `null`’);var g=!G(c,”customInspect”)||c.customInspect;if(“boolean”!=typeof g&&”symbol”!==g)throw new TypeError(“option \”customInspect\”, if provided, must be `true`, `false`, or `’symbol’`”);if(G(c,”indent”)&&null!==c.indent&&”\t”!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError(‘option “indent” must be “\\t”, an integer > 0, or `null`’);if(G(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=b.call(b.call(t,/([‘\\])/g,”\\$1″),/[\x00-\x1f]/g,z);return D(i,”single”,n)}(n,c);if(“number”==typeof n){if(0===n)return 1/0/n>0?”0″:”-0″;var _=String(n);return w?R(n,_):_}if(“bigint”==typeof n){var L=String(n)+”n”;return w?R(n,L):L}var O=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=O&&O>0&&”object”==typeof n)return B(n)?”[Array]”:”[Object]”;var N=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(W(s,n)>=0)return”[Circular]”;function $(t,n,r){if(n&&(s=A.call(s)).push(n),r){var i={depth:c.depth};return G(c,”quoteStyle”)&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if(“function”==typeof n&&!F(n)){var Z=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),ee=K(n,$);return”[Function”+(Z?”: “+Z:” (anonymous)”)+”]”+(ee.length>0?” { “+E.call(ee,”, “)+” }”:””)}if(H(n)){var te=k?b.call(String(n),/^(Symbol\(.*\))_[^)]*$/,”$1″):j.call(n);return”object”!=typeof n||k?te:J(te)}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 ne=”<“+S.call(String(n.nodeName)),re=n.attributes||[],oe=0;oe“,n.childNodes&&n.childNodes.length&&(ne+=”…”),ne+=””+S.call(String(n.nodeName))+”>”}if(B(n)){if(0===n.length)return”[]”;var ie=K(n,$);return N&&!function(e){for(var t=0;t=0)return!1;return!0}(ie)?”[“+Y(ie,N)+”]”:”[ “+E.call(ie,”, “)+” ]”}if(function(e){return!(“[object Error]”!==V(e)||P&&”object”==typeof e&&P in e)}(n)){var ae=K(n,$);return”cause”in Error.prototype||!(“cause”in n)||T.call(n,”cause”)?0===ae.length?”[“+String(n)+”]”:”{ [“+String(n)+”] “+E.call(ae,”, “)+” }”:”{ [“+String(n)+”] “+E.call(x.call(“[cause]: “+$(n.cause),ae),”, “)+” }”}if(“object”==typeof n&&g){if(U&&”function”==typeof n[U]&&M)return M(n,{depth:O-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 se=[];return a&&a.call(n,function(e,t){se.push($(t,n,!0)+” => “+$(e,n))}),Q(“Map”,i.call(n),se,N)}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 ce=[];return u&&u.call(n,function(e){ce.push($(e,n))}),Q(“Set”,l.call(n),ce,N)}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 X(“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 X(“WeakSet”);if(function(e){if(!f||!e||”object”!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(n))return X(“WeakRef”);if(function(e){return!(“[object Number]”!==V(e)||P&&”object”==typeof e&&P in e)}(n))return J($(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 J($(C.call(n)));if(function(e){return!(“[object Boolean]”!==V(e)||P&&”object”==typeof e&&P in e)}(n))return J(h.call(n));if(function(e){return!(“[object String]”!==V(e)||P&&”object”==typeof e&&P in e)}(n))return J($(String(n)));if(“undefined”!=typeof window&&n===window)return”{ [object Window] }”;if(n===t)return”{ [object globalThis] }”;if(!function(e){return!(“[object Date]”!==V(e)||P&&”object”==typeof e&&P in e)}(n)&&!F(n)){var le=K(n,$),ue=I?I(n)===Object.prototype:n instanceof Object||n.constructor===Object,pe=n instanceof Object?””:”null prototype”,de=!ue&&P&&Object(n)===n&&P in n?v.call(V(n),8,-1):pe?”Object”:””,fe=(ue||”function”!=typeof n.constructor?””:n.constructor.name?n.constructor.name+” “:””)+(de||pe?”[“+E.call(x.call([],de||[],pe||[]),”: “)+”] “:””);return 0===le.length?fe+”{}”:N?fe+”{“+Y(le,N)+”}”:fe+”{ “+E.call(le,”, “)+” }”}return String(n)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return $.call(e,t)}function V(e){return g.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n-1?e.split(“,”):e},l=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,”[$1]”):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var p=0;n.depth>0&&null!==(s=a.exec(i))&&p=0;–i){var a,s=e[i];if(“[]”===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l=”[“===s.charAt(0)&&”]”===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||””!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:”__proto__”!==l&&(a[l]=o):a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&”function”!=typeof e.decoder)throw new TypeError(“Decoder has to be a function.”);if(void 0!==e.charset&&”utf-8″!==e.charset&&”iso-8859-1″!==e.charset)throw new TypeError(“The charset option must be either utf-8, iso-8859-1, or undefined”);var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:”boolean”==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:”boolean”==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:”number”==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:”boolean”==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:”boolean”==typeof e.comma?e.comma:a.comma,decoder:”function”==typeof e.decoder?e.decoder:a.decoder,delimiter:”string”==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:”number”==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:”boolean”==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:”number”==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:”boolean”==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:”boolean”==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(“”===e||null===e||void 0===e)return n.plainObjects?Object.create(null):{};for(var u=”string”==typeof e?function(e,t){var n,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,””):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(m=i(m)?[m]:m),o.call(l,g)?l[g]=r.combine(l[g],m):l[g]=m}return l}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f=0;–o){var i=this.tryEntries[o],s=i.completion;if(“root”===i.tryLoc)return r(“end”);if(i.tryLoc<=this.prev){var c=a.call(i,”catchLoc”),l=a.call(i,”finallyLoc”);if(c&&l){if(this.prev=0;–n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,”finallyLoc”)&&this.prev=0;–t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;–t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(“throw”===r.type){var o=r.arg;T(n)}return o}}throw new Error(“illegal catch attempt”)},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},”next”===this.method&&(this.arg=t),b}},n}e.exports=o,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 ve}),n.d(r,”qsAll”,function(){return be}),n.d(r,”attachEvent”,function(){return Se}),n.d(r,”detachEvent”,function(){return _e}),n.d(r,”on”,function(){return Ee}),n.d(r,”off”,function(){return Ae}),n.d(r,”toArray”,function(){return Le});n(30);var o=n(7),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()<=r(),window.isPortrait)},s=function(){return null!=window.isTouchable?window.isTouchable:(window.isTouchable=”ontouchstart”in window||navigator.msMaxTouchPoints||window.DocumentTouch&&document instanceof window.DocumentTouch,window.isTouchable)},u=function(){var e;return window.REGUAMAXWIDTHPORTRAIT=window.REGUAMAXWIDTHPORTRAIT||640,window.REGUAMAXWIDTHLANDSCAPE=window.REGUAMAXWIDTHLANDSCAPE||767,window.isPortrait=a(),window.isTouchable=s(),window.isAndroidBrowser=i(),window.isWindowsPhoneBrowser=c(),e=o(),glb.isMobile=window.isPortrait&&e<=window.REGUAMAXWIDTHPORTRAIT||!window.isPortrait&&e<=window.REGUAMAXWIDTHLANDSCAPE,glb.isMobile&&glb.reguaReady&&!window.isAndroidBrowser&&!window.isWindowsPhoneBrowser&&(!glb.nativeAppType||”comnio-app”!==glb.nativeAppType)&&document.implementation.hasFeature(“http://www.w3.org/TR/SVG11/feature#Image”,”1.1″)&&(null==window.glb.nativeAppInfo||window.glb.nativeAppInfo.frameworkVersion)},void 0!==t&&t.exports&&(t.exports=u)},{}],8:[function(e,t,n){var r,o,i,a,s,c,l,u,p,d,f,h,g,m,y,v,b,w=function(e,t){return function(){return e.apply(t,arguments)}};b=window.stringStartsWith=function(e,t){return e.slice(0,t.length)===t},h=window.isArray=function(e){return e&&e.constructor===Array},u=window.extendObjs=function(e,t){var n,r;for(n in r={},e)r[n]=e[n];for(n in t)r[n]=t[n];return r},d=document.head||document.getElementsByTagName(“head”)[0],g=null;try{g=window.localStorageInterface||window.localStorage}catch(e){l=e,console.log(“localstorage error”,l),g=null}p=function(){var e;if(e=”modernizr”,!g||!g.setItem)return!1;try{return g.setItem(e,e),g.removeItem(e),!0}catch(e){return l=e,console.log(“localstorage error”,l),!1}}(),window.localStorageCache=v={save:function(e,t,n){var r,o;if(!p)return!1;r=60*n*1e3,o={value:t,timestamp:(new Date).getTime()+r};try{g.setItem(e,JSON.stringify(o))}catch(e){return l=e,console.log(“localstorage error”,l),!1}return t},load:function(e){var t;if(!p)return!1;try{t=JSON.parse(g.getItem(e))}catch(e){return l=e,console.log(“localstorage error”,l),!1}return!!t&&((new Date).getTime()=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<400?(r=g.responseText,d&&(r=JSON.parse(r)),e.complete(r,u,o,m,d,i)):(console.error(“AjaxCache Request Error”,g.status,g.responseText),s(g.status,g))}}(this)),g.onerror||(g.onerror=function(){return console.error(“AjaxCache Request Error”,g.status,g.responseText),s(g.status,g)}),”GET”!==e&&c?(h&&(c=JSON.stringify(c)),f?setTimeout(function(){return g.send(c)},0):g.send(c)):f?setTimeout(function(){return g.send()},0):g.send(),y&&(p=setTimeout(function(){if(null!=g.abort)return g.abort()},y)),g):(console.error(“AjaxCache Request Error”,”This browser does not support this operation”),s(“500”,g),g);i(r)},e.prototype.getJsonp=function(e,t){var n,r,o,i,a,c,l;i=null!=t.expire&&t.expire>=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),x=()=>_()?S.fnProduct:w,E=()=>_()?S.fnBuscaUrl:{},A=()=>_()?S.fnEnv:{},L=()=>{let e=x().name;return(e=”famosos”===e?”ego”:e)||”g1″},C=()=>window.localStorageCache.load(“fn-search-history”),O=e=>{let t=C()||[];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)},j=e=>{const t=`${(()=>{const e=x(),t=E();return t&&/^(http:|https:)?\/\/.+\/busca\/?$/.test(t)?t:(e.search||e.home)&&”prod”===A()?`${e.search||e.home}busca/suggest`:”/busca/suggest”})()}?${b.a.stringify(e)}`;return y.a.get(t)},k=(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):j(e).then(t)},r={score:!0,size:e},o=C();return new Promise((e,t)=>{n(r).then((e=>t=>({preSuggest:t,searchHistoryHtml:e,portalLabel:x().label}))(o)).then(e).catch(t)})},P=(e,t=3,n=3)=>{const r={q:e,score:!0,prioritarios:L(),size:Math.max(t,n),restrictions:[L(),…window.searchTenantsRestriction].join(“,”)};return j(r)};var T=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<=300)(e.timeStamp)&&t()};this.addEventListener(“touchmove”,i),this.addEventListener(“touchend”,a)})};var I=(()=>{let e;return()=>new Promise(t=>{clearTimeout(e),e=setTimeout(()=>{t()},300)})})();var R=(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 M=(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 N=(e={})=>{const{baseSVGPath:t,insertHTML:n,className:r,placeholder:o,transitionDuration:i}=e,a=[i?`transition-duration: ${i}`:””];return n(“),{templateItem:({title:e=””,type:n,url:r,publisher:o,icone:i,iconeWidth:a,score:s,parent:c},l)=>”block-title”===n?`
${e}
`:`
\n \n
\n \n
\n
\n ${((e,t)=>”default-item”===t?`Buscar por “ ${e}“ em ${x().name}`:e)(e,n)}\n ${((e=””)=>e?“:””)(c)}\n
\n \n
`}};var U=(e={})=>{const{transformPreSuggest:t,transformSuggest:n,limitResult:r,limitHistory:o,minLength:i}=e,a=i,{templateItem:s}=N(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=>k().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=>R(e,a).then(P).then(u).then(n(e)).then(l).then(()=>{c=”suggest”}).then(t).catch(d)),handleSuggestError:d}};var D=()=>{const e=document.body,t=e.querySelector(“.searchV2”),n=t.querySelector(“.searchV2__header__term”);let r,o=null;let i={};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 a=`${t}–${e}`;i=Object.assign({},i,{[a]:((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,i[a],r)},off:(e,t,n,r={},o=document.body)=>{o.removeEventListener(e,i[`${t}–${e}`],r)},attachEvent(e,n,r,o={}){const i=[].slice.call(t.querySelectorAll(n));for(let t=0;t{r=window.pageYOffset,e.classList.add(“searchV2__noscroll”),e.style.top=`-${r}px`;const o=()=>{n(),t.removeEventListener(“transitionend”,o)};t.classList.add(“searchV2–animate”,”searchV2–opened”),t.addEventListener(“transitionend”,o)},close:()=>{e.classList.remove(“searchV2__noscroll”),e.style.top=””,window.scrollTo(0,r),r=0,t.classList.remove(“searchV2–opened”);const n=()=>{o(),t.classList.remove(“searchV2–animate”),t.removeEventListener(“transitionend”,n)};t.addEventListener(“transitionend”,n)},btnReset:{set display(e){const n=”show”===e?”block”:”none”;t.querySelector(“.searchV2__header__btn-reset”).style.display=n}}}};var q=(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 B=({keyCode:e})=>-1===[13].indexOf(e)?Promise.resolve():Promise.reject(),F=(e=””)=>`${x().home}busca/?q=${e}`,H={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}},$=e=>{const t=e.publisher?e.publisher.toLowerCase():””;return{title:e.title||e.text,type:e.type||”searched”,url:e.url||F(e.title||e.text),score:e.score||null,publisher:t||””,icone:H[t]?H[t].name:”eixo-icone-busca”,iconeWidth:H[t]?H[t].width:22,parent:e.parent||””}},G={data:{}},V={transformPreSuggest:e=>[…(({searchHistoryHtml:e,limitResult:t})=>e?[{title:”Buscas Recentes”,type:”block-title”},…e.reverse().slice(0,t).map(({data:e})=>$(e))]:[])(e),…(({preSuggest:e=G,limitHistory:t})=>e.data.suggestions?[{title:”Mais buscados”,type:”block-title”},…e.data.suggestions.slice(0,t).map($)]:[])(e)],transformSuggest:e=>t=>[…t.data.featured_content.slice(0,t.limitResult).map(e=>{const t=Object.assign({},e,{type:”feature_content”});return $(t)}),…t.data.suggestions.slice(0,t.limitHistory).map($),(e=>$({title:e,type:”default-item”}))(e)].filter(e=>!e.url.includes(“/valor-ri/empresa”)),baseSVGPath:”svg/sprite.min.svg”,afterClose:null,className:””,placeholder:”o que você procura?”,transitionDuration:null,limitResult:3,limitHistory:4,debugMode:!1,minLength:3,handleGA:e=>e,insertHTML(e){document.body.insertAdjacentHTML(“beforeEnd”,e)}};var W=(e={})=>{const t=Object.assign({},V,e),{renderPreSuggest:n,renderSuggest:r,handleSuggestError:o}=U(t),i=q(t),a=D(t),s=t.minLength,c=()=>{a.btnReset.display=”hide”,a.term=””},l=e=>{e.stopPropagation(),e.preventDefault();const t=a.term.trim();R(t,s).then((e=>()=>{O({title:e,url:F(e),score:null}),i.search(e),window.location.href=F(e)})(t)).catch(o)},u=M([T],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),O({url:t,title:n,publisher:this.getAttribute(“data-search-publisher”),score:this.getAttribute(“data-search-score”)})}),p=()=>{i.close(),a.close()},d=M([B,I,({target:e})=>(a.btnReset.display=e.value.length<=0?”hide”:”show”,Promise.resolve())],e=>{const t=e.target.value.trim();r(t).then(()=>{a.attachEvent(“click”,”.searchV2__item a”,function(){const e=this.parentNode.getAttribute(“data-search-url”);i.clickItem(e)}),i.loadSuggest(t)})}),f=M([T],e=>{n().then(c),e.preventDefault(),e.stopPropagation()}),h=M([T],p),g=()=>{i.focus()},m=()=>{a.attachEvent(“focus”,”.searchV2__header__term”,g).attachEvent(“keyup”,”.searchV2__header__term”,d).attachEvent(“touchstart”,”.searchV2__header__btn-back”,h,{passive:!0}).attachEvent(“touchstart”,”.searchV2__header__btn-reset”,f,{passive:!0}).attachEvent(“submit”,”.searchV2__header__form”,l),a.on(“touchstart”,”searchV2__item”,u,{passive:!0})};return{open:()=>{n().then(c),i.open(),a.afterClose=(()=>{“function”==typeof t.afterClose&&t.afterClose(),a.detachEvent(“focus”,”.searchV2__header__term”,g).detachEvent(“keyup”,”.searchV2__header__term”,d).detachEvent(“touchstart”,”.searchV2__header__btn-back”,h,{passive:!0}).detachEvent(“touchstart”,”.searchV2__header__btn-reset”,f,{passive:!0}).detachEvent(“submit”,”.searchV2__header__form”,l).detachEvent(“touchstart”,”.searchV2__item”,u,{passive:!0}),a.off(“touchstart”,”searchV2__item”,u,{passive:!0})}),a.open(m)},close:p}},z=n(2),J=n.n(z),X=n(5),Q=n.n(X),Y=n(6),K=n.n(Y),Z=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’,” “).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 ee(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var te=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;ee(t),n.length>0&&Z(t).render({label:”Recentes”,items:n}),r.length>0&&Z(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”)}}},ne=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)}}},re=function(e){var t=e.searchUrl,n=e.term,r=e.label;return{url:””.concat(t,”/?q=”).concat(encodeURIComponent(n)),label:r,term:n}},oe={valorinternational:”Results”,other_tenant:”Resultados”},ie={valorinternational:”search for”,other_tenant:”buscar por”},ae=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;ee(t);var c=J()(i),l=re({searchUrl:n,term:r,label:”“.concat(ie.other_tenant,’ “‘).concat(r,'”‘)});c.push(l),c.length>0&&Z(t).render({label:oe.other_tenant,items:c,onClick:s})},show:function(){t.classList.add(“search-screen–is-active”)},hide:function(){t.classList.remove(“search-screen–is-active”)}}},se=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(J()(t)),o.set(r,t.slice(0,n)),o.get(r)||[]}},clear:function(){o.set(r,null)}}},ce=n(4),le=n.n(ce),ue=n(1),pe=n.n(ue),de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=function(){var e=window.location.hostname;return[“valor.globo.com”,”valor.qa.globoi.com”].includes(e)?”valor”:[“pipelinevalor.globo.com”,”pipelinevalor.qa.globoi.com”].includes(e)?”pipelinevalor”:[“valorinveste.globo.com”,”valorinveste.qa.globoi.com”].includes(e)?”valorinveste”:”outro”},o=function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a={pipelinevalor:[“pipelinevalor”,”valor”],valorinveste:[“valor-investe”,”valor”]}[r()]||n,s=””.concat(e,”/suggest?size=”).concat(o);return t&&(s+=”&prioritarios=”.concat(encodeURIComponent(t))),null!==a&&void 0!==a&&a.length&&(s+=”&restrictions=”.concat(encodeURIComponent(a.join(“,”)))),i&&(s+=”&q=”.concat(encodeURIComponent(i))),s},i=function(e,t){return[“valor”,”valorinveste”,”pipelinevalor”].includes(t)?J()(e).filter(function(e){var t;return!(null!==(t=e.url)&&void 0!==t&&t.includes(“interno_origem=multicontent”))}).map(function(e){var n;if(null!==(n=e.url)&&void 0!==n&&n.includes(“/empresas/valor-empresas-360”)&&!e.url.includes(“interno_origem”)){var r=e.url.split(“?”)[0];e.url=””.concat(r,”?360&interno_origem=”).concat(function(e){return{valor:”searchvaloreconomico”,pipelinevalor:”searchpipeline”,valorinveste:”searchvalorinveste”}[e]||””}(t))}return e}).sort(function(e,t){var n,r;return(null!==(n=e.url)&&void 0!==n&&n.includes(“/empresas/valor-empresas-360”)?0:1)-(null!==(r=t.url)&&void 0!==r&&r.includes(“/empresas/valor-empresas-360”)?0:1)}):e};return{getCoverItems:function(){var t=le()(pe.a.mark(function t(){var n,r,i,a,s=arguments;return pe.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>0&&void 0!==s[0]?s[0]:3,t.prev=1,t.next=4,fetch(o(n));case 4:if((r=t.sent).ok){t.next=7;break}throw new Error(“HTTP error “.concat(r.status));case 7:return t.next=9,r.json();case 9:return i=t.sent,a=i.suggestions||[],t.abrupt(“return”,a.map(function(t){return re({searchUrl:e,term:t,label:t})}));case 14:return t.prev=14,t.t0=t.catch(1),console.error(“[SearchSuggest]”,t.t0),t.abrupt(“return”,[]);case 18:case”end”:return t.stop()}},t,null,[[1,14]])}));return function(){return t.apply(this,arguments)}}(),getSuggestItems:function(){var a=le()(pe.a.mark(function a(s){var c,l,u,p,d,f,h,g=arguments;return pe.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=g.length>1&&void 0!==g[1]?g[1]:3,l=r(),[“valorinveste”,”pipelinevalor”].includes(l)&&(c=6),a.prev=3,a.next=6,fetch(o(c,s));case 6:if((u=a.sent).ok){a.next=9;break}throw new Error(“HTTP error “.concat(u.status));case 9:return a.next=11,u.json();case 11:return p=a.sent,d=(p.suggestions||[]).map(function(t){return re({searchUrl:e,term:t,label:t})}),f=p.featured_content||[],”valor”===l?t&&(f=f.filter(function(e){return e.product===t&&!e.url.includes(“/valor-ri/empresa”)})):[“pipelinevalor”,”valorinveste”].includes(l)?n.length>0&&(f=f.filter(function(e){return n.includes(e.product)&&!e.url.includes(“/valor-ri/empresa”)})):t&&(f=f.filter(function(e){return e.product===t})),[“valorinveste”,”pipelinevalor”].includes(l)&&(f=(f=f.filter(function(e,t,n){return t===n.findIndex(function(t){return t.url===e.url})})).slice(0,3)),f=i(f,l),h=f.map(function(e){return{url:e.url,label:e.title}}),a.abrupt(“return”,[].concat(J()(d),J()(h)));case 21:return a.prev=21,a.t0=a.catch(3),console.error(“[SearchSuggest]”,a.t0),a.abrupt(“return”,[]);case 25:case”end”:return a.stop()}},a,null,[[3,21]])}));return function(e){return a.apply(this,arguments)}}()}},fe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Q()(this,e),this._options=t,this.root=document.querySelector(this._options.rootSelector),this.input=document.querySelector(this._options.inputSelector),this.form=this.root.querySelector(“form”),this.search=””;var n=window.location,r=(this._options.searchUrl||this.root.getAttribute(“data-search-url”)||””).trim()||””.concat(n.protocol,”/”).concat(n.host,”/busca/”);this.searchUrl=r.replace(/\/+$/g,””),this.searchTenant=this._options.searchTenant||this.root.getAttribute(“data-search-tenant”)||null,this.main=ne(this.root),this.main.render(),this.cover=te(this.main.root),this.suggest=ae(this.main.root),this.searchTenantsRestriction=[this.searchTenant].concat(J()(window.searchTenantsRestriction)),this.suggestService=de(this.searchUrl,this.searchTenant,this.searchTenantsRestriction),this.latestStorage=se({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()}return K()(e,[{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(re({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()})}}]),e}(),he=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 fe({rootSelector:”.header__search “,inputSelector:”.header__search__input”});var a=function(){n.style.height=”50px”},s=function(){n.style.height=”0px”},l=W({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(23);var ge=function(e){return”click”!==e.type&&new Promise(t=>{let n=null,r=null;const o=e.timeStamp,i=e=>{n=e.touches[0].clientX,r=e.touches[0].clientY},a=e=>{this.removeEventListener(“touchend”,a,{passive:!0}),this.removeEventListener(“touchmove”,i,{passive:!0}),(e=>!n&&!r&&e-o<=300)(e.timeStamp)&&t()};this.addEventListener(“touchmove”,i,{passive:!0}),this.addEventListener(“touchend”,a,{passive:!0})})};var me=(()=>{let e=!0;return()=>new Promise(t=>{setTimeout(()=>{e=!0},500),e&&(e=!1,t())})})();var ye=(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 ve=(e,t=document)=>t.querySelector(e),be=(e,t=document)=>t.querySelectorAll(e),we=(e,t,n,r)=>{t.addEventListener(e,n,r)},Se=(e,t,n,r={})=>{if(t.length)for(let o=0;o{if(t.length)for(let o=0;o{const i=`${t}–${e}`;xe=Object.assign({},xe,{[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,xe[i],r)},Ae=(e,t,n,r={},o=document.body)=>{o.removeEventListener(e,xe[`${t}–${e}`],r)},Le=e=>[].slice.call(e),Ce=(e,t)=>{const n={back:``,next:``};return`data:image/svg+xml;charset=utf8,${encodeURIComponent(n[e]||””)}`};var Oe=(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=()=>{if(i&&!p&&(window.requestAnimationFrame(f),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)`,o=c,t.style.opacity=r}},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”),Se(“scroll”,be(“.menu-level”,n),d,{passive:!0}),window.requestAnimationFrame(f)},g=function(e){i&&!p&&(c=e.touches[0].pageX,l=e.touches[0].pageY)},m=function(){if(!i)return;i=!1,p=!1,o=null;const e=Math.min(0,c-a),u=Math.abs(l-s);_e(“scroll”,be(“.menu-level”,n),d,{passive:!0}),n.style.transform=””,t.style.opacity=””,u<=Math.abs(e)&&e<0&&r()};return{open:()=>{Se(“scroll”,be(“.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=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}),_e(“scroll”,be(“.menu-level”,n),d,{passive:!0})}}};let je=!1;var ke=(e={})=>{if(je)return!0;const{container:t,cadunServiceId:n,cadunLoginURL:o,cadunUsePopin:i}=e,{qs:a}=r,s=ye([me,ge]),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=`
`,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])},S=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”})},_=()=>{l.addEventListener(“click”,e=>e.preventDefault()),l.addEventListener(“click”,s(S)),l.addEventListener(“touchstart”,s(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”]),_()})}}),je=!0,!0};var Pe=(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 Te={debug:!1,color:”#000″,cadunServiceId:4728,cadunLoginURL:null,cadunUsePopin:!0,handleGA(){}};var Ie=(e={})=>{const t=Object.assign({},Te,e),{qs:n,qsAll:o,attachEvent:i,toArray:a,on:s,off:c}=r,l=Pe(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 S=0;const _=ye([me,ge]),x=+g.classList.contains(“menu-level–opened”);let E=x;const A=d.dataset.menuWidth||272,L=e=>{b&&(b.textContent=e)};L(v);const C=e=>{m.style.transform=`translateX(-${e*A}px)`,d.scrollTop=0},O=()=>{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”),L(w)),m.removeEventListener(“transitionend”,O)},j=e=>{“function”==typeof e&&setTimeout(e,150)},k=_(function(){l.push(this),j(()=>{(E=E-1<=0?0:E-1)<1&&n(“.menu-initial”,d)&&(E=0,m.classList.remove(“menu-initial”)),C(E),m.addEventListener(“transitionend”,O)})}),P=_(function(){const e=this.parentNode;l.push(e),e.classList.contains(“is-father”)?j(()=>{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===S&&(u.classList.remove(“menu–no-scroll”),p.classList.remove(“menu–no-scroll”),a(o(“.menu-level–opened”,d)).forEach(e=>{e.classList.remove(“menu-level–opened”)}),S=0,g.classList.add(“menu-level–opened”),x&&m.classList.add(“menu-initial”),m.classList.remove(“menu-rounder–opened-all”),m.style.transform=””,E=x,L(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))},N=e=>{f.classList.remove(“menu-curtain–opened”),S=.14,e?(l.makeTracking(“interacoes menu”,”swipe menu fechado”),e.close()):l.makeTracking(“interacoes menu”,”click menu fechado”),d.addEventListener(“transitionend”,M)},U=Oe({onClose:()=>{N(U)}}),D=()=>{x||(m.classList.add(“menu-rounder–opened-all”),m.classList.remove(“menu-initial”))},q=()=>{n(x?”.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),U.open(),d.removeEventListener(“transitionend”,q)},B=e=>{“menu-curtain”===e.target.id&&(N(),U.close())};return D(),E&&n(“.menu-initial”,d).classList.add(“menu-loaded”),d.style.display=”block”,((e={})=>{const{color:t}=e,n=document.createElement(“style”),r=Ce(“back”,t),o=document.createTextNode(`.menu-btn-back__icon { background-image: url(“https://radioglobo.globo.com/${r}”); }`),i=Ce(“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,_(B),{passive:!0}),i(“click”,f,_(B),{passive:!0}),{toggle:(e=null)=>{(null!==e?e:!f.classList.contains(“menu-curtain–opened”))?(S=.33,u.classList.add(“menu–no-scroll”),p.classList.add(“menu–no-scroll”),f.classList.add(“menu-curtain–opened”,”menu-curtain–animate”),D(),l.makeTracking(“interacoes menu”,”click menu exibido”),d.addEventListener(“transitionend”,q),ke({container:d,cadunServiceId:t.cadunServiceId,cadunLoginURL:t.cadunLoginURL,cadunUsePopin:t.cadunUsePopin})):(N(),U.close())}}},Re=function(){function e(){Q()(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=Ie({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)}}return K()(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)}}]),e}(),Me=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)}()}},Ne=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})}},Ue=n(12),De=n.n(Ue);function qe(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 Be(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=le()(pe.a.mark(function e(){var t,r,i;return pe.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=4,n();case 4:i=e.sent,t.style.display=”none”,r.style.display=”none”,o(i),new De.a({useStrategy:i,loginAreaContainer:oidcSettings.loginAreaContainer});case 9:case”end”:return e.stop()}},e)}))).apply(this,arguments)}function n(){return r.apply(this,arguments)}function r(){return(r=le()(pe.a.mark(function e(){var t,n,r;return pe.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=8;break}if(!window.globalWebdeps){e.next=7;break}return e.next=4,window.globalWebdeps(“globoid-js”);case 4:console.log(“[initLogin] GloboID JS loaded via GlobalWebdeps”),e.next=8;break;case 7:console.warn(“[initLogin] GlobalWebdeps not available, trying fallback…”);case 8:return t=[“techtudo”],n=window.location.host,r=new Ue.strategies.oidc.default(Be({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=13,r.initGloboIdClient();case 13:return e.abrupt(“return”,r);case 14:case”end”:return e.stop()}},e)}))).apply(this,arguments)}function o(e){window.editoraGloboAuthenticationLib={},e.isLogged().then(function(){var t=le()(pe.a.mark(function t(n){var r;return pe.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 2:case”end”:return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())}},He=function(){function e(){Q()(this,e),this.exposeMenuListItemEl=document.querySelectorAll(‘li[class=”expose-menu”]’),this.toggleSubmenu,this.handleMouseOver=this.handleMouseOver.bind(this),this.registerHandlers()}return K()(e,[{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)}}]),e}();he(),new He,new Re,Me(),Ne(),Fe()},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()}}}]);
“use strict”;document.addEventListener(“DOMContentLoaded”,function(){const t=document.querySelectorAll(“.group-collection-button”),e=document.querySelectorAll(“.podcast-card”);if(document.querySelectorAll(“.group-collection-button”).length>0){function c(c){e.forEach(t=>{t.getAttribute(“data-id”)===c?t.classList.remove(“hidden”):t.classList.add(“hidden”)}),t.forEach(t=>{t.getAttribute(“data-id”)===c?t.classList.add(“active”):t.classList.remove(“active”)})}c(t[0].getAttribute(“data-id”)),t.forEach(t=>{t.addEventListener(“click”,()=>{c(t.getAttribute(“data-id”))})})}else e.forEach(t=>{t.classList.remove(“hidden”)})});
//]]>