OK
http://globo.com/
Brazil
Country
Network
April 27, 2025, 01:42 AM UTC
Date & Time
Websites
Websites
Runtime: 3.9s
On April 27, 2025, 01:42 AM UTC, http://globo.com/ was accessible when tested on AS268097 in Brazil.

Failures

HTTP Experiment
null
DNS Experiment
null
Control
null

DNS Queries

Resolver:
172.217.35.20
Query:
IN A globo.com
Engine:
system
Name
Class
TTL
Type
DATA
@
IN
A
186.192.83.12

TCP Connections

Connection to 186.192.83.12:80 succeeded.

HTTP Requests

URL
GET https://www.globo.com/
Response Headers
Accept-Ranges:
bytes
Age:
8
Cache-Control:
max-age=10
Content-Length:
2797705
Content-Security-Policy:
upgrade-insecure-requests
Content-Type:
text/html; charset=UTF-8
Date:
Sun, 27 Apr 2025 01:42:56 GMT
Expires:
Sun, 27 Apr 2025 01:42:57 GMT
Link:
<https://s2-home-globo.glbimg.com>; rel="preconnect", <https://s3.glbimg.com>; rel="preconnect"
Show-Page-Version:
0
Vary:
X-Forwarded-Proto, User-Agent, Accept-Encoding
Via:
2.0 CachOS
X-Bip:
225624779 cmah17lx38ca05
X-Content-Type-Options:
nosniff
X-Location-Rule:
location-barra
X-Mobile:
desktop
X-Request-Id:
ade04f62-d62e-4e13-8ca0-ebaaa1d5b84c
X-Served-From:
Router Home PROD, BS Show Services
X-Thanos:
0A823C2C
X-Xss-Protection:
1; mode=block
Response Body
<!DOCTYPE html><html lang="pt-BR"> <head><title>globo.com - Absolutamente tudo sobre notícias, esportes e entretenimento</title><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="canonical" href="https://www.globo.com/"><meta name="title" content="globo.com - Absolutamente tudo sobre notícias, esportes e entretenimento"><meta name="description" content="Últimas notícias do jornalismo, esporte, entretenimento e mais! Na globo.com você acompanha tudo que está acontecendo hoje no Brasil e no mundo."><meta name="robots" content="index, follow"><link rel="preconnect" href="https://s.glbimg.com"><link rel="dns-prefetch" href="https://s.glbimg.com"><link rel="preconnect" href="https://s2.glbimg.com"><link rel="dns-prefetch" href="https://s2.glbimg.com"><link rel="preconnect" href="https://s2-home-globo.glbimg.com"><link rel="dns-prefetch" href="https://s2-home-globo.glbimg.com"><link rel="preconnect" href="https://s3.glbimg.com"><link rel="dns-prefetch" href="https://s3.glbimg.com"><link rel="preconnect" href="https://www.google-analytics.com"><link rel="dns-prefetch" href="https://www.google-analytics.com"><link rel="preconnect" href="https://horizon.globo.com"><link rel="dns-prefetch" href="https://horizon.globo.com"><link rel="preconnect" href="https://horizon-schemas.globo.com"><link rel="dns-prefetch" href="https://horizon-schemas.globo.com"><link rel="preconnect" href="https://horizon-track.globo.com"><link rel="dns-prefetch" href="https://horizon-track.globo.com"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet"><meta rel="icon" type="image/png" href="https://s2-home-globo.glbimg.com/bPA252Z8GNzT17zZGDqIV3zZ5rg=/32x32/smart/filters:strip_icc()/i.s3.glbimg.com/v1/AUTH_9de6fd454d9849c8bee5b63069fbb074/internal_photos/bs/2022/1/9/3otXqRQnKU2P97PTBoMw/logo-1024.png"><link rel="icon" type="image/png" sizes="16x16" href="https://s2-home-globo.glbimg.com/e7K-6j_YtJg4y47_wxZImqA_2qQ=/16x16/smart/filters:strip_icc()/i.s3.glbimg.com/v1/AUTH_9de6fd454d9849c8bee5b63069fbb074/internal_photos/bs/2022/1/9/3otXqRQnKU2P97PTBoMw/logo-1024.png"><link rel="icon" type="image/png" sizes="32x32" href="https://s2-home-globo.glbimg.com/bPA252Z8GNzT17zZGDqIV3zZ5rg=/32x32/smart/filters:strip_icc()/i.s3.glbimg.com/v1/AUTH_9de6fd454d9849c8bee5b63069fbb074/internal_photos/bs/2022/1/9/3otXqRQnKU2P97PTBoMw/logo-1024.png"><link rel="icon" sizes="192x192" href="https://s2-home-globo.glbimg.com/xmG336eFwj2EHo7Ei-N_2Tm_b0s=/192x192/smart/filters:strip_icc()/i.s3.glbimg.com/v1/AUTH_9de6fd454d9849c8bee5b63069fbb074/internal_photos/bs/2022/1/9/3otXqRQnKU2P97PTBoMw/logo-1024.png"><link rel="apple-touch-icon" sizes="57x57" href="https://s2-home-globo.glbimg.com/dtOTO5FHz377XlrNVFqxdLbHSjM=/57x57/smart/filters:strip_icc()/i.s3.glbimg.com/v1/AUTH_9de6fd454d9849c8bee5b63069fbb074/internal_photos/bs/2022/1/9/3otXqRQnKU2P97PTBoMw/logo-1024.png"><link rel="apple-touch-icon" sizes="72x72" href="https://s2-home-globo.glbimg.com/IWyuEOMJBhgB0DI5gl8qQoNpg9s=/72x72/smart/filters:strip_icc()/i.s3.glbimg.com/v1/AUTH_9de6fd454d9849c8bee5b63069fbb074/internal_photos/bs/2022/1/9/3otXqRQnKU2P97PTBoMw/logo-1024.png"><link rel="apple-touch-icon" sizes="114x114" href="https://s2-home-globo.glbimg.com/PEOwVWl6xRD8I_sO0mJFg2WBBhE=/114x114/smart/filters:strip_icc()/i.s3.glbimg.com/v1/AUTH_9de6fd454d9849c8bee5b63069fbb074/internal_photos/bs/2022/1/9/3otXqRQnKU2P97PTBoMw/logo-1024.png"><link rel="shortcut icon" href="https://s2-home-globo.glbimg.com/e7K-6j_YtJg4y47_wxZImqA_2qQ=/16x16/smart/filters:strip_icc()/i.s3.glbimg.com/v1/AUTH_9de6fd454d9849c8bee5b63069fbb074/internal_photos/bs/2022/1/9/3otXqRQnKU2P97PTBoMw/logo-1024.png"><meta property="og:title" content="globo.com - Absolutamente tudo sobre notícias, esportes e entretenimento"><meta property="og:description" content="Últimas notícias do jornalismo, esporte, entretenimento e mais! Na globo.com você acompanha tudo que está acontecendo hoje no Brasil e no mundo."><meta property="og:site_name" content="home-globo"><meta property="og:locale" content="pt_BR"><meta property="og:type" content="website"><meta property="og:url" content="https://www.globo.com/"><!-- Starting of Pages Head Components --><script id="SETTINGS">

  var cdaaas = window.cdaaas || {};
  cdaaas.SETTINGS = {"SITE_ID":"home-globo","SITE_NAME":"home-globo","CATEGORIAS":["home","gcom"],"TAG_MANAGER_AD_UNIT":"tvg_Globo.com.Home","TAG_MANAGER_AD_CUSTOM_DATA":"tvg_pgStr=globocom","TAG_MANAGER_AD_CMS_ID":"11413","TAG_MANAGER_AD_ACCOUNT_ID":"95377733","TAG_MANAGER_AD_EXTRAS":[],"PRODUCT_UA":"","MOBILE_GROUP":"desktop"};
</script><script type="text/javascript">
!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.async=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,3838 /* AccountId */,{} /* Config */)}();
</script><script src="https://securepubads.g.doubleclick.net/tag/js/gpt.js" async></script><script src="https://s3.glbimg.com/v1/AUTH_da787d4f4e8d46e3ad76d5fa568fe786/profiling/profiling.min.js" async></script><script>var utag_data = {"structure_tree":"[\"home-globo\"]","editoria":"home-globo","ad_unit":"tvg_Globo.com.Home","complemento_ad_unit":"","ad_custom_data":"tvg_pgStr=globocom","cor_pagina":"#0669DE","page_name":"gcom","tipo_pagina":"gcom","content_type":"P\u00e1gina"};</script><script src="//s3.glbimg.com/v1/AUTH_acd8438fd650434baa93efc372c066a1/libs/lib-pub-relay/home/prod/lib-pub-relay-home-latest.js   " async></script><script defer> window.utag_data.ambient = "web"</script><!-- Block send metrics to two tracking --><script defer>
        class GetGtmLoaded { 
          static handleReturn( ) {
            return true;
          }
        }
        window.utag_data.gtm_loaded  = GetGtmLoaded.handleReturn();
      </script><!-- End block send metrics to two tracking --><!-- Google Tag Manager --><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer', 'GTM-WQBMQ52');</script><!-- End Google Tag Manager --><!--
    Jinja2 is available;
    Namespace: homeglobocom/;
    Ex: include 'homeglobocom/show-globocom-geolocator/file_name.html';
--><script id="home-ad-lib-script-js">!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(()=>(()=>{var t={313:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=n(316),l=c(n(446)),h=n(185),d=c(n(633)),f=i(n(38)),p=function(){function t(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),this.environment=(0,l.default)(),this.abIstance=(new d.default).ab(this.environment+"-https"),this.mabIstance=(new d.default).mab(this.environment+"-https"),this.globoHorizon=f,this.skipImpression=t,this.generateImpression=e,this.userId=0,this.userIdType="globoId",this.hsIdToken=(0,u.getCookieValue)("hsid")||null,this.glbExpIdToken=(0,u.getCookieValue)("glbExpIdToken")||null,this.glbExpIdTokenMab=(0,u.getCookieValue)("glbExpIdToken")||null}return t.prototype.startCommonAB=function(t,e){var n;return a(this,void 0,void 0,(function(){var r,o,i,a,c,u,l,d;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,6,,7]),[4,(0,h.getGloboId)()];case 1:return r=s.sent(),o=r.userId,i=r.type,this.userId=o,this.userIdType=i,this.hsIdToken||!f?[3,3]:("qa"===this.environment&&f.Settings.useQAConfiguration(),a=this,[4,f.IDManager.getHsid()]);case 2:a.hsIdToken=s.sent(),s.label=3;case 3:return c=(null==e?void 0:e.timeout)||1400,null===(n=this.abIstance)||void 0===n||n.setTimeout(c),this.skipImpression=e&&(null==e?void 0:e.impression)?e.impression:this.skipImpression,[4,this.abIstance.createExperiment(t,null,this.skipImpression)];case 4:return u=s.sent(),[4,this.abIstance.choose([u],this.userId,this.glbExpIdToken,this.hsIdToken,null,this.userIdType)];case 5:return l=s.sent(),this.experiment=l,this.experiment.hsIdToken=this.hsIdToken,this.experiment.userIdType=this.userIdType,this.experiment.userId=this.userId,[2,this.experiment];case 6:return d=s.sent(),console.error("Error fetching Common AB data.",d),[3,7];case 7:return[2]}}))}))},t.prototype.startImpressionEvent=function(t){return a(this,void 0,void 0,(function(){var e,n,r,o,i,a,c,l,h=this;return s(this,(function(s){if(this.skipImpression)return[2];if(!(e="string"==typeof t?Array.from(document.querySelectorAll(t)):[t]))throw new Error("Error setting up impression");try{if(n=this.experiment.experiments[0],r=n.name,o=n.alternative,i=n.testId,a=this.experiment.glbExpIdToken,!window.IntersectionObserver)throw new Error("IntersectionObserver not supported");c=(0,u.getCookieValue)("hsid"),l=new IntersectionObserver((function(t,e){t.forEach((function(t){t.isIntersecting&&(h.abIstance.impression({experiment:r,alternative:o,testId:i},h.userId,a,c,null,h.userIdType),e.unobserve(t.target))}))})),Array.from(e).forEach((function(t){return l.observe(t)}))}catch(t){throw new Error("Error setting up AB View event.")}return[2]}))}))},t.prototype.startConversionEvent=function(t){return a(this,void 0,void 0,(function(){var e,n,r,o,i,a,c,l,h,d,f=this;return s(this,(function(s){if(!(e="string"==typeof t?Array.from(document.querySelectorAll(t)):[t]))throw new Error("Error setting up conversion");try{n=this.experiment.experiments[0],r=n.name,o=n.alternative,i=n.testId,a=this.experiment.glbExpIdToken,c=r,l=self.crypto.randomUUID(),h=new Event(l),d=(0,u.getCookieValue)("hsid"),document.addEventListener(l,(function(){f.abIstance.conversion({experiment:c,alternative:o,testId:i},f.userId,a,d,null,f.userIdType)}),{once:!0}),Array.from(e).forEach((function(t){t.addEventListener("click",(function(){document.dispatchEvent(h)}))}))}catch(t){throw new Error("Error setting up AB Conversion Event.")}return[2]}))}))},t.prototype.startMab=function(t,e){return a(this,void 0,void 0,(function(){var n=this;return s(this,(function(r){return[2,new Promise((function(r,o){return a(n,void 0,void 0,(function(){var n,i,a,c,l,d,f,p,m,v,b,y,g,_,E,w;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,4,,5]),e.url&&this.mabIstance.addHeader({"x-canonical-uri":e.url}),(null==e?void 0:e.timeout)?null===(E=this.mabIstance)||void 0===E||E.setTimeout(e.timeout):null===(w=this.mabIstance)||void 0===w||w.setTimeout(1800),this.generateImpression=e&&e.impression?e.impression:this.generateImpression,n=this.mabIstance.createExperiment(t,null,this.generateImpression),[4,(0,u.getCookieValue)("hsid")];case 1:return i=s.sent(),[4,(0,h.getGloboId)()];case 2:return a=s.sent(),c=a.userId,l=a.type,this.userId=c,this.userIdType=l,[4,this.mabIstance.choose([n],this.userId,this.glbExpIdTokenMab,i,null,this.userIdType)];case 3:return d=s.sent(),f=d.experiments[0],p=d.glbExpIdToken,m=f.name,v=f.arm,b=f.testId,y=f.abAlternative,this.experimentMab=f,this.glbExpIdTokenMab=p,g=this.mabIstance,r({mab:g,properties:{experiment:m,arm:v,testId:b,abAlternative:y,glbExpIdToken:this.glbExpIdTokenMab,userId:this.userId,customHeadersToIncrement:null,userIdType:this.userIdType}}),[3,5];case 4:return _=s.sent(),o(_),[3,5];case 5:return[2]}}))}))}))]}))}))},t.prototype.sendIncrementEvent=function(t,e){return a(this,void 0,void 0,(function(){var n,r,o=this;return s(this,(function(i){if(this.generateImpression)throw new Error("Impression generated in sorted in request to sort");if(!t)throw new Error("Error setting up increment in element");try{if(!window.IntersectionObserver)throw new Error("IntersectionObserver not supported");n=e.glbExpIdToken,r=(0,u.getCookieValue)("hsid"),new IntersectionObserver((function(t,i){t.forEach((function(t){t.isIntersecting&&(o.mabIstance.increment({experiment:e.experiment,arm:e.arm,testId:e.testId,abAlternative:e.abAlternative},o.userId,n,r,null,o.userIdType),i.unobserve(t.target))}))})).observe(t)}catch(t){console.error("Error fetching sendIncrementEvent Mab.",t)}return[2]}))}))},t.prototype.sendManualIncrementEvent=function(t){return a(this,void 0,void 0,(function(){var e,n,r,o,i,a;return s(this,(function(s){switch(s.label){case 0:if(this.generateImpression)throw new Error("Impression generated in sorted in request to sort");s.label=1;case 1:return s.trys.push([1,3,,4]),e=t.glbExpIdToken,n=(0,u.getCookieValue)("hsid"),[4,(0,h.getGloboId)()];case 2:return r=s.sent(),o=r.userId,i=r.type,this.mabIstance.increment({experiment:t.experiment,arm:t.arm,testId:t.testId,abAlternative:t.abAlternative},o,e,n,null,i),[3,4];case 3:return a=s.sent(),console.error("Error fetching sendManualIncrementEvent Mab.",a),[3,4];case 4:return[2]}}))}))},t.prototype.sendRewardEvent=function(t,e){return a(this,void 0,void 0,(function(){var n,r,o=this;return s(this,(function(i){if(!t)throw new Error("Error setting up reward event in element");try{n=e.glbExpIdToken,r=(0,u.getCookieValue)("hsid"),t.addEventListener("click",(function(){return o.mabIstance.reward({experiment:e.experiment,arm:e.arm,testId:e.testId,abAlternative:e.abAlternative},o.userId,n,r,null,o.userIdType)}))}catch(t){console.error("Error fetching sendRewardEvent Mab.",t)}return[2]}))}))},t.prototype.sendManualRewardEvent=function(t){return a(this,void 0,void 0,(function(){var e,n,r,o,i,a;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),e=t.glbExpIdToken,n=(0,u.getCookieValue)("hsid"),[4,(0,h.getGloboId)()];case 1:return r=s.sent(),o=r.userId,i=r.type,this.mabIstance.reward({experiment:t.experiment,arm:t.arm,testId:t.testId,abAlternative:t.abAlternative},o,e,n,null,i),[3,3];case 2:return a=s.sent(),console.error("Error fetching sendRewardEvent Mab.",a),[3,3];case 3:return[2]}}))}))},t.prototype.startConversionOUTEvent=function(t){var e=t.name,n=t.alternative,r=t.testId,o=t.userId,i=t.glbExpIdToken,a=t.hsIdToken,s=t.userIdType;try{this.abIstance.conversion({experiment:e,alternative:n,testId:r},o,i,a||null,null,s)}catch(t){throw new Error("Error setting up AB Conversion Event")}},t.prototype.startImpressionOUTEvent=function(t){var e=t.name,n=t.alternative,r=t.glbExpIdToken,o=t.hsIdToken,i=t.testId,a=t.userId,s=t.userIdType;try{this.abIstance.impression({experiment:e,alternative:n,testId:i},a,r,o,null,s)}catch(t){throw new Error("Error setting up AB Impression Event")}},t}();e.default=p},908:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.manualMabReward=e.manualMabIncrement=e.registerABConversion=e.registerABImpression=e.commonMabABreward=e.commonMabABIncrement=e.commonMabAB=e.commonAB=void 0;var a=i(n(313)),s=n(954);e.commonAB=function(t){var e=t.experimentName,n=t.impressionDOMSelector,i=t.conversionDOMSelector,s=t.options;return r(this,void 0,void 0,(function(){var t,r;return o(this,(function(o){switch(o.label){case 0:return[4,(t=new a.default).startCommonAB(e,s)];case 1:return r=o.sent(),n&&!(null==s?void 0:s.impression)&&r?[4,t.startImpressionEvent(n)]:[3,3];case 2:o.sent(),o.label=3;case 3:return i&&r?[4,t.startConversionEvent(i)]:[3,5];case 4:o.sent(),o.label=5;case 5:return[2,r]}}))}))},e.registerABImpression=function(t){return r(this,void 0,void 0,(function(){var e,n;return o(this,(function(r){if(e=new a.default,!t)throw new Error("Need info for experiment.");if(n=(0,s.validateExperimentData)({experimentData:t,type:"impression"}))throw new Error(n);try{e.startImpressionOUTEvent(t)}catch(t){throw new Error("Error registering AB Impression Event.")}return[2]}))}))},e.registerABConversion=function(t){return r(this,void 0,void 0,(function(){var e,n;return o(this,(function(r){if(e=new a.default,!t)throw new Error("Need info for experiment.");if(n=(0,s.validateExperimentData)({experimentData:t,type:"conversion"}))throw new Error(n);try{e.startConversionOUTEvent(t)}catch(t){throw new Error("Error registering AB Conversion Event.")}return[2]}))}))},e.commonMabAB=function(t){var e=t.experimentName,n=t.options;return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,(new a.default).startMab(e,n)];case 1:return[2,t.sent()]}}))}))},e.manualMabIncrement=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){return(new a.default).sendManualIncrementEvent(t),[2]}))}))},e.commonMabABIncrement=function(t,e){return r(this,void 0,void 0,(function(){var n;return o(this,(function(r){return n=new a.default,t&&n.sendIncrementEvent(t,e),[2,!0]}))}))},e.commonMabABreward=function(t,e){return r(this,void 0,void 0,(function(){var n;return o(this,(function(r){return n=new a.default,t&&n.sendRewardEvent(t,e),[2,!0]}))}))},e.manualMabReward=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){return(new a.default).sendManualRewardEvent(t),[2]}))}))}},316:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCookieValue=void 0,e.getCookieValue=function(t){for(var e=t+"=",n=0,r=decodeURIComponent(document.cookie).split(";");n<r.length;n++){var o=r[n].trim();if(0===o.indexOf(e))return o.substring(e.length,o.length)}}},446:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){if(window.pages)return window.pages.SETTINGS.ENV;return["localhost","local.globo","qa.globoi.com","[scrubbed]","[scrubbed]"].some((function(t){return location.hostname.includes(t)}))?"qa":"prod"}},185:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.getGloboId=void 0;var c=i(n(38)),u=n(89);e.getGloboId=function(){return a(void 0,void 0,void 0,(function(){var t,e,n;return s(this,(function(r){switch(r.label){case 0:return[4,window.globalWebdeps("globoid-js")];case 1:return r.sent(),[4,c.IDManager.getAnonymousUser()];case 2:return t=r.sent(),"getGlbId"in window?[4,window.getGlbId()]:[3,4];case 3:return null!==(e=r.sent())?[2,{userId:e,type:"globoId"}]:[2,{userId:t.glb_uid,type:"glb_uid"}];case 4:return(0,u.checkCookie)("GLOBO_ID")?(n=(0,u.getCookie)("GLOBO_ID"),[2,{userId:(0,u.parseJwt)(n).globoId,type:"globoId"}]):[2,{userId:t.glb_uid,type:"glb_uid"}]}}))}))}},89:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkCookie=e.getCookie=e.parseJwt=void 0,e.parseJwt=function(t){var e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},e.getCookie=function(t){var e="; ".concat(document.cookie).split("; ".concat(t,"="));if(2===e.length)return e.pop().split(";").shift()},e.checkCookie=function(t){for(var e=document.cookie.split(";"),n=0;n<e.length;n++){if(e[n].trim().startsWith(t+"="))return!0}return!1}},954:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateExperimentData=void 0,e.validateExperimentData=function(t){for(var e=t.experimentData,n=t.type,r=void 0===n?"impression":n,o=t.requiredFields,i=0,a=void 0===o?["name","alternative","testId","glbExpIdToken","hsIdToken"]:o;i<a.length;i++){var s=a[i];if(!e[s])return"[AB-".concat(r.toLocaleUpperCase(),"] Need info for experiment: '").concat(s,"' is missing.")}return null}},38:t=>{var e;self,e=()=>(()=>{var t={914:function(t,e,n){var r;t=n.nmd(t),function(o){var i=(t&&t.exports,"object"==typeof n.g&&n.g);i.global!==i&&i.window;var a=function(t){this.message=t};(a.prototype=new Error).name="InvalidCharacterError";var s=function(t){throw new a(t)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,l={encode:function(t){t=String(t),/[^\0-\xFF]/.test(t)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var e,n,r,o,i=t.length%3,a="",u=-1,l=t.length-i;++u<l;)e=t.charCodeAt(u)<<16,n=t.charCodeAt(++u)<<8,r=t.charCodeAt(++u),a+=c.charAt((o=e+n+r)>>18&63)+c.charAt(o>>12&63)+c.charAt(o>>6&63)+c.charAt(63&o);return 2==i?(e=t.charCodeAt(u)<<8,n=t.charCodeAt(++u),a+=c.charAt((o=e+n)>>10)+c.charAt(o>>4&63)+c.charAt(o<<2&63)+"="):1==i&&(o=t.charCodeAt(u),a+=c.charAt(o>>2)+c.charAt(o<<4&63)+"=="),a},decode:function(t){var e=(t=String(t).replace(u,"")).length;e%4==0&&(e=(t=t.replace(/==?$/,"")).length),(e%4==1||/[^+a-zA-Z0-9/]/.test(t))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,o=0,i="",a=-1;++a<e;)r=c.indexOf(t.charAt(a)),n=o%4?64*n+r:r,o++%4&&(i+=String.fromCharCode(255&n>>(-2*o&6)));return i},version:"0.1.0"};void 0===(r=function(){return l}.call(e,n,e,t))||(t.exports=r)}()},92:(t,e,n)=>{"use strict";n(491).polyfill()},491:t=>{"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var c=i[a],u=Object.getOwnPropertyDescriptor(o,c);void 0!==u&&u.enumerable&&(n[c]=o[c])}}return n}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},215:(t,e,n)=>{var r,o,i;void 0===(o="function"==typeof(r=i=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=t({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in i)i[c]&&(s+="; "+c,!0!==i[c]&&(s+="="+i[c].split(";")[0]));return document.cookie=e+"="+n+s}}function a(t,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),c=s.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=e(s[0]);if(c=(r.read||r)(c,u)||e(c),n)try{c=JSON.parse(c)}catch(t){}if(o[u]=c,t===u)break}catch(t){}}return t?o[t]:o}}return o.set=i,o.get=function(t){return a(t,!1)},o.getJSON=function(t){return a(t,!0)},o.remove=function(e,n){i(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))})?r.call(e,n,e,t):r)||(t.exports=o),t.exports=i()},976:function(t,e){var n,r;void 0===(r="function"==typeof(n=function(){var t=function(){},e={},n={},r={};function o(t,e){if(t){var o=r[t];if(n[t]=e,o)for(;o.length;)o[0](t,e),o.splice(0,1)}}function i(e,n){e.call&&(e={success:e}),n.length?(e.error||t)(n):(e.success||t)(e)}function a(e,n,r,o){var i,s,c=document,u=r.async,l=(r.numRetries||0)+1,h=r.before||t,d=e.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(e)?((s=c.createElement("link")).rel="stylesheet",s.href=d,(i="hideFocus"in s)&&s.relList&&(i=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg)$)/.test(e)?(s=c.createElement("img")).src=d:((s=c.createElement("script")).src=e,s.async=void 0===u||u),s.onload=s.onerror=s.onbeforeload=function(t){var c=t.type[0];if(i)try{s.sheet.cssText.length||(c="e")}catch(t){18!=t.code&&(c="e")}if("e"==c){if((o+=1)<l)return a(e,n,r,o)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(e,c,t.defaultPrevented)},!1!==h(e,s)&&c.head.appendChild(s)}function s(t,n,r){var s,c;if(n&&n.trim&&(s=n),c=(s?r:n)||{},s){if(s in e)throw"LoadJS";e[s]=!0}function u(e,n){!function(t,e,n){var r,o,i=(t=t.push?t:[t]).length,s=i,c=[];for(r=function(t,n,r){if("e"==n&&c.push(t),"b"==n){if(!r)return;c.push(t)}--i||e(c)},o=0;o<s;o++)a(t[o],r,n)}(t,(function(t){i(c,t),e&&i({success:e,error:n},t),o(s,t)}),c)}if(c.returnPromise)return new Promise(u);u()}return s.ready=function(t,e){return function(t,e){t=t.push?t:[t];var o,i,a,s=[],c=t.length,u=c;for(o=function(t,n){n.length&&s.push(t),--u||e(s)};c--;)i=t[c],(a=n[i])?o(i,a):(r[i]=r[i]||[]).push(o)}(t,(function(t){i(e,t)})),s},s.done=function(t){o(t,[])},s.reset=function(){e={},n={},r={}},s.isDefined=function(t){return t in e},s})?n.apply(e,[]):n)||(t.exports=r)},916:()=>{function t(e){return(t="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})(e)}function e(t,e){var n=this.event&&this.event.type,r="unload"===n||"beforeunload"===n,o="XMLHttpRequest"in this?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");o.open("POST",t,!r),o.withCredentials=!0,o.setRequestHeader("Accept","*/*"),"string"==typeof e?(o.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),o.responseType="text/plain"):function(t){return t instanceof Blob}(e)&&e.type&&o.setRequestHeader("Content-Type",e.type);try{o.send(e)}catch(t){return!1}return!0}function n(){return"navigator"in this&&"sendBeacon"in this.navigator}(function(){n.call(this)||("navigator"in this||(this.navigator={}),this.navigator.sendBeacon=e.bind(this))}).call("object"===("undefined"==typeof window?"undefined":t(window))?window:{})},31:(t,e)=>{!function(t){var e,n,r,o=String.fromCharCode;function i(t){for(var e,n,r=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(n=t.charCodeAt(o++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--):r.push(e);return r}function a(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function s(t,e){return o(t>>e&63|128)}function c(t){if(!(4294967168&t))return o(t);var e="";return 4294965248&t?4294901760&t?4292870144&t||(e=o(t>>18&7|240),e+=s(t,12),e+=s(t,6)):(a(t),e=o(t>>12&15|224),e+=s(t,6)):e=o(t>>6&31|192),e+o(63&t|128)}function u(){if(r>=n)throw Error("Invalid byte index");var t=255&e[r];if(r++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function l(){var t,o;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(t=255&e[r],r++,!(128&t))return t;if(192==(224&t)){if((o=(31&t)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&t)){if((o=(15&t)<<12|u()<<6|u())>=2048)return a(o),o;throw Error("Invalid continuation byte")}if(240==(248&t)&&(o=(7&t)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=i(t),n=e.length,r=-1,o="";++r<n;)o+=c(e[r]);return o},t.decode=function(t){e=i(t),n=e.length,r=0;for(var a,s=[];!1!==(a=l());)s.push(a);return function(t){for(var e,n=t.length,r=-1,i="";++r<n;)(e=t[r])>65535&&(i+=o((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=o(e);return i}(s)}}(e)},471:t=>{for(var e=[],n=0;n<256;++n)e[n]=(n+256).toString(16).substr(1);t.exports=function(t,n){var r=n||0,o=e;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}},814:t=>{var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var n=new Uint8Array(16);t.exports=function(){return e(n),n}}else{var r=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)3&e||(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}},550:(t,e,n)=>{var r=n(814),o=n(471);t.exports=function(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var r={};return(()=>{"use strict";n.r(r),n.d(r,{HorizonClient:()=>me,IDManager:()=>ve,Settings:()=>O}),n(92);var t=n(550),e=n.n(t);const o=function(t,e){var n=(window.horizonResources=window.horizonResources||{},window.horizonResources);return n[t]=n[t]||e,n[t]},i={MINIMUM:50,MAXIMUM:1e3,DEFAULT:100},a={MINIMUM:1,MAXIMUM:100,DEFAULT:10},s={MINIMUM:5e3,MAXIMUM:2e4,DEFAULT:1e4};var c="QUEUE_STATUS",u="SEND_STATUS",l="ID_STATUS",h="SCHEMAS_STATUS",d="REQUEUING_STATUS",f="VALIDATION_STATUS",p="DISCARDED_BY_OVERFLOW",m="DISCARDED_BY_EXPIRED",v="QUEUE_VALIDATED_CURRENT_SIZE",b="SEND_FAILURE",y="IO_EXCEPTION",g="SUCCESS",_="FAILED",E={AVOID_COOKIE_USAGE:!1,EVENTS_BUFFER_SIZE:100,EVENTS_SENDER_INTERVAL:1e4,EVENTS_SENDER_MIN_INTERVAL:5e3,EVENTS_SENDER_MAX_INTERVAL:3e4,EVENTS_DISCARD_AFTER_MSECS:36e5,EVENTS_BULK_SIZE:10,HORIZON_CALLBACK_STACK_LIMIT:1e3,HORIZON_TRACK_IDENTIFICATION_RESOURCE:"id",HORIZON_TRACK_HOST:"horizon-track.globo.com",HORIZON_CLIENT_UUID:o("clientInstanceUUID",e()()),HORIZON_REQUEST_ENCODING:"base64",HORIZON_SCHEMAS_HOST:"horizon-schemas.globo.com",IDENTIFICATION_LOAD_RETRY_AFTER_MSECS:5e3,PACKAGE_VERSION:"3.3.0",SCHEMA_VALIDATOR_SCRIPT_URL:"s3.glbimg.com/cdn/libs/tv4/1.3.0/tv4.min.js",SCHEMA_VALIDATOR_SCRIPT_MAX_RETRIES:2,SCHEMA_LOAD_COLLECTION_RETRY_AFTER_MSECS:1e4,USE_HTTPS:!0,METRICS_SEND_INTERVAL:6e4},w=function(t,e,n,r){E[t]=e<=n?n:e>=r?r:e},I={avoidCookieUsage:function(){E.AVOID_COOKIE_USAGE=!0},useHTTPOnly:function(){E.USE_HTTPS=!1},useQAConfiguration:function(){E.HORIZON_TRACK_HOST="horizon-track.qa.globoi.com",E.HORIZON_SCHEMAS_HOST="horizon-schemas.qa.globoi.com",E.HORIZON_REQUEST_ENCODING="json"},useJSONEncoding:function(){E.HORIZON_REQUEST_ENCODING="json"},changeEventbusBufferSize:function(t){!t||!Number.isInteger(t)||t<=0||(w("EVENTS_BUFFER_SIZE",t,i.MINIMUM,i.MAXIMUM),console.log("changeEventbusBufferSize: ".concat(t)))},changeEventbusBulkSize:function(t){!t||!Number.isInteger(t)||t<=0||w("EVENTS_BULK_SIZE",t,a.MINIMUM,a.MAXIMUM)},changeEventbusSenderInterval:function(t){!t||!Number.isInteger(t)||t<=0||w("EVENTS_SENDER_INTERVAL",t,s.MINIMUM,s.MAXIMUM)}};const O=Object.assign(E,I);var S=n(976),T=n.n(S),k={COMPONENT_NOT_READY:"[Horizon] Component is not ready.",COMPONENT_UNAVAILABLE:"[Horizon] Class or function is required.",DUPLICATED_SCHEMA:"[Horizon] Duplicated schema.",ERROR_LOADING_RESOURCE:"[Horizon] Failed to load resource.",INVALID_AUTH_TOKEN:"[Horizon] Invalid authorization token.",INVALID_DATA:"[Horizon] Invalid data.",INVALID_DATE:"[Horizon] Invalid date-time RFC 3339 format.",INVALID_STRING_NUMERIC_STRING:"[Horizon] numericString should be string.",INVALID_EMPTY_NUMERIC_STRING:"[Horizon] numericString should be empty.",INVALID_NUMERIC_STRING:"[Horizon] Invalid number. Field with NumericString must to be number.",INVALID_ENVIRONMENT:"[Horizon] Invalid environment value.",INVALID_FORMAT:"[Horizon] Invalid event format.",INVALID_REQUEST:"[Horizon] Invalid request.",INVALID_TIMESTAMP:"[Horizon] Invalid timestamp.",INVALID_VERSION_FORMAT:"[Horizon] Invalid version format.",INVALID_RELATION_ID:"[Horizon] Invalid relation identification.",LIMIT_EXCEEDED:"[Horizon] Resource limit exceeded.",MUST_BE_DEFINED:"[Horizon] Parameter or argument must be defined",SCHEMA_VALIDATOR_ERROR_LOADING:"[Horizon] Could not load SchemaValidator.",UNSUPPORTED_TYPE:"[Horizon] Unsupported type.",UNSUPPORTED_TENANT:"[Horizon] Unsupported tenant.",UNSUPPORTED_ENCODER:"[Horizon] Unsupported encoder.",USE_MANAGER_ONLY_WHEN_AVOIDING_COOKIE:"[Horizon] Can not set or remove a logged user when AVOID_COOKIE_USAGE is not enabled."},x={mustBeDefined:function(t){throw new Error("".concat(k.MUST_BE_DEFINED,": ").concat(t,"."))}};const $=Object.assign(k,x);function A(t){return A="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},A(t)}function C(t){var e=function(t,e){if("object"!=A(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==A(e)?e:e+""}const N=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=new Map},e=[{key:"addMetric",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])this.data.set(t,e);else{var n=this.data.get(t)||0;this.data.set(t,n+e)}}},{key:"getMetrics",value:function(){return new Map(this.data)}}],e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,C(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function L(t){return L="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},L(t)}function M(t,e,n){return(e=R(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function R(t){var e=function(t,e){if("object"!=L(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==L(e)?e:e+""}var j=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.metricCollectors=M(M(M(M(M(M({},c,{}),u,{}),l,{}),h,{}),d,{}),f,{}),this.allTenants=[],this.initialQueueSizeValidated=0,this.initialQueueSizeUnvalidated=0,this.horizonClientUUID={}},e=[{key:"addMetric",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"general";null!==t&&(this.metricCollectors[t][r]||(this.metricCollectors[t][r]=new N,"general"===r||this.allTenants.includes(r)||this.allTenants.push(r)),t===c&&e===v?this.metricCollectors[t][r].addMetric(e,n,!0):this.metricCollectors[t][r].addMetric(e,n))}},{key:"getMetrics",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"general";return this.metricCollectors[t]&&this.metricCollectors[t][e]?this.metricCollectors[t][e].getMetrics():null}},{key:"addHttpMetric",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"general";null!==t&&(this.metricCollectors[t][r]||(this.metricCollectors[t][r]=new N,"general"===r||this.allTenants.includes(r)||this.allTenants.push(r)),this.metricCollectors[t][r].addMetric(e,n))}},{key:"getHttpMetrics",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"general";return this.metricCollectors[t]&&this.metricCollectors[t][e]?this.metricCollectors[t][e].getMetrics():null}},{key:"setCurrentHorizonClientUUID",value:function(t,e){this.horizonClientUUID[t]=e}},{key:"getCurrentHorizonClientUUID",value:function(t){return this.horizonClientUUID[t]}},{key:"getAllTenants",value:function(){return this.allTenants}}],e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,R(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();const D=function(){var t=o("metrics",{});return t.metricCollector||(t.metricCollector=new j),t.metricCollector};function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function H(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=U(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==U(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U(t){return U="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},U(t)}var B={ready:[]},V=["url"],G=function(){return!!window.tv4},q=function(t){return null===t||isNaN(t)&&!isNaN(Date.parse(t))?null:$.INVALID_DATE},z=function(t){return"string"!=typeof t?$.INVALID_STRING_NUMERIC_STRING:""===t.trim()?$.INVALID_EMPTY_NUMERIC_STRING:Number.isFinite(Number(t))?null:$.INVALID_NUMERIC_STRING};const F={validateFor:function(t,e,n){var r=D();if(!G())throw new Error("".concat($.ERROR_LOADING_RESOURCE," Validator is not ready."));if(!e)throw r.addMetric(f,_,1,n),new Error("".concat($.INVALID_DATA," Argument: schema."));if(!/\d+\.\d+/.test(t.version))throw r.addMetric(f,_,1,n),new Error($.INVALID_VERSION_FORMAT);if(!tv4.validate(t.properties,e))throw r.addMetric(f,_,1,n),new Error("".concat($.INVALID_DATA," ").concat(t.id," ").concat(t.version,". ").concat(tv4.error))},validateArgs:function(t,e){var n=D(),r=Object.prototype.hasOwnProperty;if(!(t&&r.call(t,"id")&&r.call(t,"version")&&r.call(t,"properties")))throw n.addMetric(f,_,1,e),new Error("".concat($.INVALID_FORMAT," Missing properties: ").concat(JSON.stringify(t)));if("string"!=typeof t.id||"string"!=typeof t.version||"object"!==U(t.properties))throw n.addMetric(f,_,1,e),new Error("".concat($.INVALID_FORMAT," Wrong object type: ").concat(JSON.stringify(t)));if(V.filter((function(e){return t[e]&&"string"!=typeof t[e]})).length>0)throw n.addMetric(f,_,1,e),new Error("".concat($.INVALID_FORMAT," Wrong object type: ").concat(JSON.stringify(t)));if(t.id.length<2||t.version.length<3)throw n.addMetric(f,_,1,e),new Error("".concat($.INVALID_FORMAT," Invalid property size: ").concat(JSON.stringify(t)));var o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){H(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);delete o.id,delete o.version,delete o.properties,delete o.contentType;var i=Object.keys(o);if(i.length>0&&!i.every((function(t){return-1!==V.indexOf(t)})))throw n.addMetric(f,_,1,e),new Error("".concat($.INVALID_FORMAT," Extra keys aren't allowed: ").concat(JSON.stringify(o)))},tv4IsValidData:q,tv4IsNumericString:z,isReady:G,onReady:function(t){if(G())return t();if(B.ready.length>O.HORIZON_CALLBACK_STACK_LIMIT)throw new Error("".concat($.LIMIT_EXCEEDED," Validator callback stack."));return B.ready.unshift(t)},load:function(){if(!T().isDefined("tv4")){var t=O.USE_HTTPS?"https://":"http://",e="".concat(t).concat(O.SCHEMA_VALIDATOR_SCRIPT_URL);T()([e],"tv4",{async:!0,numRetries:O.SCHEMA_VALIDATOR_SCRIPT_MAX_RETRIES,success:function(){tv4.addFormat("date-time",q),tv4.addFormat("numericString",z),B.ready.forEach((function(t){return t()}))},error:function(t){throw new Error("".concat($.SCHEMA_VALIDATOR_ERROR_LOADING," ").concat(t))}})}}};function K(t){return K="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},K(t)}function Z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return W(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function X(t){var e=function(t,e){if("object"!=K(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==K(e)?e:e+""}const Q=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.metricCollector=e},(e=[{key:"formatQueueMetric",value:function(t){var e=m,n=p,r=v;return[{queueOverflow:t&&t.get(n)||0,expired:t&&t.get(e)||0,validatedCurrentSize:t&&t.get(r)||0,unvalidatedCurrentSize:t&&t.get("QUEUE_UNVALIDATED_CURRENT_SIZE")||0}]}},{key:"formatSendStatusHttpCodeMetric",value:function(t){return t?Array.from(t.entries()).map((function(t){var e=Z(t,2);return{sendStatusCode:e[0],sendStatusQuantity:e[1]}})):[]}},{key:"formatIdStatusHttpCodeMetric",value:function(t){return t?Array.from(t.entries()).map((function(t){var e=Z(t,2);return{idStatusCode:e[0],idStatusQuantity:e[1]}})):[]}},{key:"formatSchemaStatusHttpCodeMetric",value:function(t){return t?Array.from(t.entries()).map((function(t){var e=Z(t,2);return{schemaStatusCode:e[0],schemaStatusQuantity:e[1]}})):[]}},{key:"formatRequeuingMetric",value:function(t){var e=b,n=y;return[{requeuingStatusResponse:e.toLowerCase(),requeuingStatusQuantity:t&&t.get(e)||0},{requeuingStatusResponse:n.toLowerCase(),requeuingStatusQuantity:t&&t.get(n)||0}]}},{key:"formatValidationMetric",value:function(t){var e=g,n=_;return[{validationStatusResponse:e.toLowerCase(),validationStatusQuantity:t&&t.get(e)||0},{validationStatusResponse:n.toLowerCase(),validationStatusQuantity:t&&t.get(n)||0}]}},{key:"formatConfigurationStatusMetric",value:function(t){var e=O.USE_HTTPS,n=O.AVOID_COOKIE_USAGE,r=O.HORIZON_TRACK_HOST,o=O.HORIZON_SCHEMAS_HOST,i=O.HORIZON_REQUEST_ENCODING,a=O.EVENTS_BUFFER_SIZE,s=O.EVENTS_BULK_SIZE,c=O.EVENTS_SENDER_INTERVAL;return JSON.stringify({USE_HTTPS:e,AVOID_COOKIE_USAGE:n,HORIZON_TRACK_HOST:r,HORIZON_SCHEMAS_HOST:o,HORIZON_REQUEST_ENCODING:i,EVENTS_BUFFER_SIZE:a,EVENTS_BULK_SIZE:s,EVENTS_SENDER_INTERVAL:c,HORIZON_CLIENT_UUID:this.metricCollector.getCurrentHorizonClientUUID(t),TENANTS_IN_INSTANCE:this.metricCollector.getAllTenants()})}},{key:"reportAllMetrics",value:function(t){var e=this.metricCollector.getHttpMetrics(u,t),n=this.metricCollector.getHttpMetrics(l),r=this.metricCollector.getHttpMetrics(h),o=this.metricCollector.getMetrics(c,t),i=this.metricCollector.getMetrics(d,t),a=this.metricCollector.getMetrics(f,t);return{id:"horizon-sdk-metrics",version:"1.1",contentType:"metrics",properties:{queueStatus:this.formatQueueMetric(o),sendStatus:this.formatSendStatusHttpCodeMetric(e),idStatus:this.formatIdStatusHttpCodeMetric(n),schemaStatus:this.formatSchemaStatusHttpCodeMetric(r),requeuingStatus:this.formatRequeuingMetric(i),validationStatus:this.formatValidationMetric(a),configurationStatus:this.formatConfigurationStatusMetric(t)}}}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,X(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Y(t){return Y="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},Y(t)}function J(t){var e=function(t,e){if("object"!=Y(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Y(e)?e:e+""}var tt=function(){return t=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.lastMetricsSentTimestamp={},this.metricsSendInterval=e},(e=[{key:"shouldSendMetricsNow",value:function(t){var e=Date.now();return e-(this.lastMetricsSentTimestamp[t]||0)+100>=this.metricsSendInterval&&(this.lastMetricsSentTimestamp[t]=e,!0)}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,J(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function et(t){return et="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},et(t)}function nt(t){var e=function(t,e){if("object"!=et(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==et(e)?e:e+""}const rt=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.interval=0,this.tickIntervalId=0,this.callbacks=[]},(e=[{key:"isRunning",get:function(){return!!this.tickIntervalId}},{key:"tick",value:function(){var t=this;this.callbacks.forEach((function(e){return e(t)}))}},{key:"start",value:function(){return this.tickIntervalId=setInterval(this.tick.bind(this),this.interval),this}},{key:"stop",value:function(){return clearInterval(this.tickIntervalId),this.tickIntervalId=0,this}},{key:"reschedule",value:function(t){return this.stop().every(t).start()}},{key:"every",value:function(t){return this.interval=t,this}},{key:"call",value:function(t){return this.callbacks.push(t),this}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nt(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();n(916);var ot=n(215),it=n.n(ot);const at=function(t){var e=O.EVENTS_SENDER_MIN_INTERVAL,n=O.EVENTS_SENDER_MAX_INTERVAL,r=Number(it().get("_hzt.interval"))||O.EVENTS_SENDER_INTERVAL;r<=n&&r>=e&&t.interval!==r&&t.reschedule(r)};function st(t){return st="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},st(t)}function ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,lt(r.key),r)}}function lt(t){var e=function(t,e){if("object"!=st(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=st(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==st(e)?e:e+""}var ht=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.MAXIMUM,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._queue=[],this.maxSize=n,this.metricCollector=r,this.queueName=e}return e=t,r=[{key:"fromArray",value:function(e,n){var r=new t(this.productName,n,this.metricCollector);return e.forEach((function(t){return r.push(t)})),r}}],(n=[{key:"length",get:function(){return this._queue.length}},{key:"items",get:function(){return JSON.parse(JSON.stringify(this._queue))}},{key:"push",value:function(t){this.metricDiscardedEvents(),this._queue=[t].concat(function(t){return function(t){if(Array.isArray(t))return ct(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ct(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ct(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.slice(0,this.maxSize-1)))}},{key:"metricDiscardedEvents",value:function(){if(this.metricCollector){var t=this._queue.length;this.slice(0,this.maxSize-1).length<t&&this.metricCollector.addMetric(c,p,this.queueName)}}},{key:"forEach",value:function(t){return this._queue.forEach(t)}},{key:"slice",value:function(t,e){return this._queue.slice(t,e)}},{key:"splice",value:function(t,e){return this._queue.splice(t,e)}},{key:"clear",value:function(){this._queue=[]}},{key:"filter",value:function(e){return t.fromArray(this._queue.filter(e),this.maxSize)}}])&&ut(e.prototype,n),r&&ut(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();const dt=ht;var ft=n(914),pt=n.n(ft),mt=n(31),vt=n.n(mt),bt={base64:function(t){var e=new FormData;return e.append("data",pt().encode(vt().encode(JSON.stringify(t)))),e.append("encoding","base64"),e},json:function(t){return JSON.stringify(t)}};function yt(t){return yt="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},yt(t)}function gt(){gt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:T(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",v={};function b(){}function y(){}function g(){}var _={};u(_,a,(function(){return this}));var E=Object.getPrototypeOf,w=E&&E(E(C([])));w&&w!==n&&r.call(w,a)&&(_=w);var I=g.prototype=b.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=h(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==yt(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,n,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=k(s,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?m:f,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(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 $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(yt(e)+" is not iterable")}return y.prototype=g,o(I,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},O(S.prototype),u(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function _t(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}var Et=function(t,e,n){var r=n.status,o=n.statusText,i=n.response;r>=200&&r<400?t({status:r,statusText:o,data:JSON.parse(i)}):e({status:r,statusText:o})};const wt={request:function(t,e){return new Promise((function(n,r){var o=new XMLHttpRequest;o.open(t,e,!0),o.onload=function(){return Et(n,r,o)},o.onerror=function(t){return r(t)},o.send()}))},post:function(){var t,e=(t=gt().mark((function t(e,n,r){return gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var i=new XMLHttpRequest;i.open("POST",e,!0),i.withCredentials=!0,Object.keys(n).forEach((function(t){i.setRequestHeader(t,n[t])})),i.onload=function(){return Et(t,o,i)},i.onerror=function(t){return o(t)},i.send(JSON.stringify(r))})));case 1:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){_t(i,r,o,a,s,"next",t)}function s(t){_t(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t,n,r){return e.apply(this,arguments)}}()};function It(t){return It="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},It(t)}function Ot(){Ot=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:T(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",v={};function b(){}function y(){}function g(){}var _={};u(_,a,(function(){return this}));var E=Object.getPrototypeOf,w=E&&E(E(C([])));w&&w!==n&&r.call(w,a)&&(_=w);var I=g.prototype=b.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=h(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==It(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,n,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=k(s,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?m:f,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(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 $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(It(e)+" is not iterable")}return y.prototype=g,o(I,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},O(S.prototype),u(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function St(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function Tt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){St(i,r,o,a,s,"next",t)}function s(t){St(i,r,o,a,s,"throw",t)}a(void 0)}))}}function kt(t){var e=function(t,e){if("object"!=It(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==It(e)?e:e+""}var xt=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},e=[{key:"send",value:(o=Tt(Ot().mark((function t(e,n){var r,o,i,a=arguments;return Ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=a.length>2&&void 0!==a[2]?a[2]:"json",n){t.next=3;break}return t.abrupt("return",null);case 3:return o=this.preparePayload(n,r),i={isSent:!1,status:0},i=this.sendBySendBeacon(e,o),t.next=8,this.sendByFetch(e,o,i);case 8:return i=t.sent,t.next=11,this.sendByXMLHttpRequest(e,o,r,i);case 11:return i=t.sent,t.abrupt("return",i);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"preparePayload",value:function(t,e){return function(t){if(!(t in bt))throw new Error("".concat($.UNSUPPORTED_ENCODER," Invalid ").concat(t," encoder."));return bt[t]}(e)(t)}},{key:"sendBySendBeacon",value:function(t,e){var n=!1;try{n=navigator.sendBeacon(t,e)}catch(t){n=!1}return{isSent:n,status:200}}},{key:"sendByFetch",value:(r=Tt(Ot().mark((function t(e,n,r){return Ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.isSent){t.next=2;break}return t.abrupt("return",r);case 2:return t.abrupt("return",fetch(e,{method:"POST",credentials:"include",body:n}).then((function(t){return t.ok||console.error("Failed to send Horizon events using fetch. Status ".concat(t.status," - ").concat(t.statusText)),{isSent:t.ok,status:t.status}})).catch((function(t){return{isSent:!1,status:t.status||-1}})));case 3:case"end":return t.stop()}}),t)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"sendByXMLHttpRequest",value:(n=Tt(Ot().mark((function t(e,n,r,o){var i;return Ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.isSent){t.next=2;break}return t.abrupt("return",o);case 2:return i={},"json"===r&&(i={"Content-Type":"application/json"}),t.abrupt("return",wt.post(e,i,n).then((function(t){return{isSent:!0,status:t.status}})).catch((function(t){return{isSent:!1,status:t.status||-1}})));case 5:case"end":return t.stop()}}),t)}))),function(t,e,r,o){return n.apply(this,arguments)})}],e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kt(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n,r,o}();function $t(t){return $t="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(t)}function At(){At=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:T(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",v={};function b(){}function y(){}function g(){}var _={};u(_,a,(function(){return this}));var E=Object.getPrototypeOf,w=E&&E(E(C([])));w&&w!==n&&r.call(w,a)&&(_=w);var I=g.prototype=b.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=h(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==$t(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,n,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=k(s,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?m:f,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(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 $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError($t(e)+" is not iterable")}return y.prototype=g,o(I,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},O(S.prototype),u(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Ct(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function Nt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Ct(i,r,o,a,s,"next",t)}function s(t){Ct(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Lt(t){var e=function(t,e){if("object"!=$t(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=$t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$t(e)?e:e+""}var Mt=function(){return t=function t(e,n,r,o,i,a){var s=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.currentTenant=e||$.mustBeDefined("tenant"),this.instanceID=n||$.mustBeDefined("instanceID"),this.deviceGroup=r||$.mustBeDefined("deviceGroup"),this.environment=o||$.mustBeDefined("environment"),this.metricCollector=a,this.queue=new dt(this.currentTenant,O.EVENTS_BUFFER_SIZE,this.metricCollector),this.idManager=i,this.dispatchNumber=1,this.actionCounter=0,this.dispatcher=new xt,this.metricCollector.setCurrentHorizonClientUUID(this.currentTenant,n),(new rt).every(O.EVENTS_SENDER_INTERVAL).call(Nt(At().mark((function t(){var e;return At().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s.queue=s.filterQueue(),e=s.prepareRequest(),t.next=4,s.dispatch(e,O.HORIZON_REQUEST_ENCODING);case 4:t.sent||e.actions.forEach((function(t){return s.enqueue(t)}));case 6:case"end":return t.stop()}}),t)})))).call(at).start()},e=[{key:"length",get:function(){return this.queue.length}},{key:"setMaxQueueSize",value:function(t){this.queue=dt.fromArray(this.queue.items,t)}},{key:"filterQueue",value:function(){var t=+Date.now()-O.EVENTS_DISCARD_AFTER_MSECS,e=this.queue.length,n=this.queue.filter((function(e){return e.actionTs>t})),r=e-n.length;return this.metricCollector.addMetric(c,m,r,this.currentTenant),n}},{key:"prepareRequest",value:function(){var t=this.queue.splice(0,O.EVENTS_BULK_SIZE);return this.metricCollector.addMetric(c,v,this.queue.length,this.currentTenant),this.actionCounter+=t.length,{horizonClientUUID:this.instanceID,horizonClientTenant:this.currentTenant,horizonClientTs:Date.now(),horizonClientType:"js",horizonClientDeviceGroup:this.deviceGroup,horizonDispatchNumber:this.dispatchNumber,horizonActionCounter:this.actionCounter,horizonEnvironment:this.environment,actions:t}}},{key:"isValidRequest",value:function(t){if(!t||t&&!t.actions)throw new Error($.INVALID_REQUEST);return t.actions.length>0}},{key:"prepareUrl",value:function(){var t=O.USE_HTTPS?"https://":"http://",e=this.idManager.getAsKeyValue(),n=e?"?".concat(e):"";return"".concat(t).concat(it().get("_hzt.host")||O.HORIZON_TRACK_HOST,"/event/").concat(this.currentTenant).concat(n)}},{key:"dispatch",value:(n=Nt(At().mark((function t(e){var n,r,o,i,a=arguments;return At().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:"json",this.isValidRequest(e)){t.next=3;break}return t.abrupt("return",!1);case 3:return r=e.actions.length,o=this.prepareUrl(),this.dispatchNumber+=1,t.next=8,this.dispatcher.send(o,e,n);case 8:return i=t.sent,this.handleMetrics(i.isSent,i.status,r),t.abrupt("return",i.isSent);case 11:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"handleMetrics",value:function(t,e,n){if(this.metricCollector.addHttpMetric(u,e,n,this.currentTenant),!t){var r=-1===e?y:b;this.metricCollector.addHttpMetric(d,r,n,this.currentTenant)}}},{key:"enqueue",value:function(t){if(!t.actionTs)throw new Error($.INVALID_TIMESTAMP);this.queue.push(t),this.metricCollector.addMetric(c,v,this.queue.length,this.currentTenant)}},{key:"flush",value:function(){for(;this.queue.length>0;){this.queue=this.filterQueue();var t=this.prepareRequest();this.dispatch(t,O.HORIZON_REQUEST_ENCODING)}}}],e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Lt(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();const Rt=function(t,e){setTimeout((function(){return t(e)}),1)};function jt(t){return jt="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},jt(t)}function Dt(t){var e=function(t,e){if("object"!=jt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==jt(e)?e:e+""}var Pt="statusReady",Ht="statusNotReady",Ut="statusError",Bt=function(){return o("schemas",{data:{}})},Vt=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=e,this.state=Ht,this.metricCollector=D(),this.callbacks={onReady:[],onError:[],onRetry:[],onLoad:[]}},(e=[{key:"get",value:function(t,e){var n="".concat(t,"-").concat(e);if(!this.isReady())throw new Error("".concat($.COMPONENT_NOT_READY));var r=Bt().data[n];if(!r)throw new Error("".concat($.UNSUPPORTED_TYPE,": ").concat(n));return r}},{key:"isReady",value:function(){return this.state===Pt}},{key:"retry",value:function(){var t=this;this.state="statusScheduled",this.callbacks.onRetry.forEach((function(t){return t()})),setTimeout((function(){t.state=Ht,t.load()}),O.SCHEMA_LOAD_COLLECTION_RETRY_AFTER_MSECS)}},{key:"onLoad",value:function(t){this.callbacks.onLoad.push(t)}},{key:"onRetry",value:function(t){this.callbacks.onRetry.push(t)}},{key:"onReady",value:function(t){if(this.state===Pt)return t(Bt().data);if(this.callbacks.onReady.length>O.HORIZON_CALLBACK_STACK_LIMIT)throw new Error("".concat($.LIMIT_EXCEEDED," Schemas callback stack."));return this.callbacks.onReady.push(t)}},{key:"onError",value:function(t){this.state===Ut?t():this.callbacks.onError.push(t)}},{key:"load",value:function(){var t=this,e=Bt();if(this.state===Ht){this.state="statusLoading",this.callbacks.onLoad.forEach((function(t){return t()}));var n=O.USE_HTTPS?"https://":"http://";wt.request("GET","".concat(n).concat(this.url)).then((function(n){var r=n.status,o=n.data;e.data=Object.assign(e.data||{},o),t.metricCollector.addHttpMetric(h,r),t.state=Pt,t.callbacks.onReady.forEach((function(t){return Rt(t,e.data)}))})).catch((function(e){var n=e.status;t.metricCollector.addHttpMetric(h,n),t.state=Ut,t.callbacks.onError.forEach((function(t){return Rt(t,e)})),t.retry()}))}}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Dt(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),Gt=function(t){return window.cdaaas&&window.cdaaas.SETTINGS?window.cdaaas.SETTINGS[t]:null},qt=function(t){return window.utag_data?window.utag_data[t]:null};function zt(){zt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:T(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",v={};function b(){}function y(){}function g(){}var _={};u(_,a,(function(){return this}));var E=Object.getPrototypeOf,w=E&&E(E(C([])));w&&w!==n&&r.call(w,a)&&(_=w);var I=g.prototype=b.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,s){var c=h(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Zt(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,n,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=k(s,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?m:f,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(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 $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Zt(e)+" is not iterable")}return y.prototype=g,o(I,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=u(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},O(S.prototype),u(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Ft(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function Kt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Ft(i,r,o,a,s,"next",t)}function s(t){Ft(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Zt(t){return Zt="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},Zt(t)}function Wt(t){var e=function(t,e){if("object"!=Zt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zt(e)?e:e+""}var Xt=function(){return o("idManager",{loggedIDs:null,anonymousIDs:null,sessionIDs:null})},Qt=["GLBID","GST","EXT_ID","globoId"],Yt="statusReady",Jt="statusNotReady",te="statusError",ee=function(){return t=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.state=n?Yt:Jt,this.metricCollector=D(),this.url=e,this.bypass=n,this.callbacks={onReady:[],onError:[],onRetry:[],onLoad:[]}},e=[{key:"onLoad",value:function(t){this.callbacks.onLoad.push(t)}},{key:"onRetry",value:function(t){this.callbacks.onRetry.push(t)}},{key:"onReady",value:function(t){if(this.state===Yt)return t(this.getClientIDs());if(this.callbacks.onReady.length>O.HORIZON_CALLBACK_STACK_LIMIT)throw new Error("".concat($.LIMIT_EXCEEDED," IDManager callback stack."));return this.callbacks.onReady.push(t)}},{key:"onError",value:function(t){this.state===te?t():this.callbacks.onError.push(t)}},{key:"getAsKeyValue",value:function(){if(!this.isReady())throw new Error("".concat($.COMPONENT_NOT_READY));if(this.bypass)return"";var t=this.getClientIDs();return Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&")}},{key:"getClientIDs",value:function(){var t=Xt();return Object.assign(t.loggedIDs||{},t.anonymousIDs||{},t.sessionIDs||{})}},{key:"isReady",value:function(){return this.state===Yt}},{key:"retry",value:function(){var t=this;this.state="statusScheduled",this.callbacks.onRetry.forEach((function(t){return t()})),setTimeout((function(){t.state=Jt,t.load()}),O.IDENTIFICATION_LOAD_RETRY_AFTER_MSECS)}},{key:"setLoggedUser",value:function(t,e){if(-1===Qt.indexOf(t))throw Error($.INVALID_AUTH_TOKEN);var n,r,o,i=Xt();i.loggedIDs=Object.assign(i.loggedIDs||{},(n={},o=e,(r=Wt(r=t))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))}},{key:"setAnonymousUser",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Xt();if(null==n.anonymousIDs||e){if(!("glb_uid"in t)||!("glb_uid_public"in t))throw $.mustBeDefined("glb_uid and glb_uid_public");var r={glb_uid:t.glb_uid,glb_uid_public:t.glb_uid_public};n.anonymousIDs=Object.assign(n.anonymousIDs||{},r)}}},{key:"getAnonymousUser",value:function(){return Xt().anonymousIDs}},{key:"getHsid",value:function(){return Xt().sessionIDs}},{key:"setSessionID",value:function(t){t.hsid&&(Xt().sessionIDs={hsid:t.hsid})}},{key:"removeLoggedUser",value:function(){var t=Xt();Qt.forEach((function(e){t.loggedIDs[e]&&delete t.loggedIDs[e]}))}},{key:"load",value:function(){var t=this;if(this.state===Jt){this.state="statusLoading",this.callbacks.onLoad.forEach((function(t){return t()}));var e=O.USE_HTTPS?"https://":"http://";wt.request("GET","".concat(e).concat(this.url)).then((function(e){var n=e.status,r=e.data;t.metricCollector.addHttpMetric(l,n),t.setSessionID(r),t.setAnonymousUser(r,!1),t.state=Yt,t.callbacks.onReady.forEach((function(e){return Rt(e,t.getClientIDs())}))})).catch((function(e){var n=e.status;t.metricCollector.addHttpMetric(l,n),t.state=te,t.callbacks.onError.forEach((function(t){return Rt(t,e)})),t.retry()}))}}}],e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wt(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),ne=function(t){var e=Xt();if(!e.instance){var n=t||"".concat(O.HORIZON_TRACK_HOST,"/").concat(O.HORIZON_TRACK_IDENTIFICATION_RESOURCE),r=!1===O.AVOID_COOKIE_USAGE;e.instance=new ee(n,r)}return e.instance},re=function(){var t=Kt(zt().mark((function t(e){var n;return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=ne()).isReady()){t.next=4;break}return t.next=4,new Promise((function(t,e){n.onError((function(){e(new Error("Error loading IDManager"))})),n.onReady(t),n.load()}));case 4:return t.abrupt("return",e(n));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),oe=function(){var t=Kt(zt().mark((function t(){var e,n,r;return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!O.AVOID_COOKIE_USAGE){t.next=6;break}if(e=ne(),!(n=e.getAnonymousUser())){t.next=5;break}return t.abrupt("return",n);case 5:return t.abrupt("return",re((function(t){var e=t.getAnonymousUser();if(e)return e;throw new Error("Anonymous user not found")})));case 6:return r=it().get("glb_uid"),t.abrupt("return",{glb_uid:r,glb_uid_public:void 0});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();const ie={getInstance:ne,getContextManager:Xt,setLoggedUser:function(t,e){if(!O.AVOID_COOKIE_USAGE)throw Error($.USE_MANAGER_ONLY_WHEN_AVOIDING_COOKIE);t&&0!==t.length||$.mustBeDefined("tokenName"),e&&0!==e.length||$.mustBeDefined("tokenValue"),ne().setLoggedUser(t,e)},removeLoggedUser:function(){if(!O.AVOID_COOKIE_USAGE)throw Error($.USE_MANAGER_ONLY_WHEN_AVOIDING_COOKIE);ne().removeLoggedUser()},setAnonymousUser:function(t){ne().setAnonymousUser(t)},getAnonymousUser:oe,getHsid:function(){var t=Kt(zt().mark((function t(){var e;return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!O.AVOID_COOKIE_USAGE){t.next=5;break}return t.next=3,re(function(){var t=Kt(zt().mark((function t(e){return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.getHsid());case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:return e=t.sent,t.abrupt("return",e?e.hsid:void 0);case 5:return t.abrupt("return",it().get("hsid"));case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()};function ae(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(n),!0).forEach((function(e){ce(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ce(t,e,n){return(e=le(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ue(t){return ue="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},ue(t)}function le(t){var e=function(t,e){if("object"!=ue(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ue(e)?e:e+""}var he="stateNotReady",de="stateLoading",fe=["web","instant-article","app"],pe=function(){return t=function t(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"web";if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tenant=r||Gt("SITE_ID")||qt("ut.profile")||"unknown",this.deviceGroup=i||Gt("MOBILE_GROUP")||qt("platform")||"unknown",this.defaultContentType=a,-1===fe.indexOf(s))throw Error($.INVALID_ENVIRONMENT);this.environment=s,this.validator=F,this.clientVersion=O.PACKAGE_VERSION,this.state=he,this.referer=document.referrer;var c=null,u=null,l=null,h=null,d=null,f=function(){return o("horizonActionInfo",{horizonActionSequence:0,horizonClientContextID:e()()})};this.getHorizonActionSequence=function(){var t=f();return 2147483647===t.horizonActionSequence&&(t.horizonActionSequence=0),t.horizonActionSequence+=1,t.horizonActionSequence},this.getHorizonClientContextID=function(){return f().horizonClientContextID},this.getHorizonActionExtraAttributes=function(){return""},this.updateHorizonClientContextID=function(){f().horizonClientContextID=e()()},this.setMetricsCollector=function(t){h=t},this.getMetricsCollector=function(){if(!h){var t=D();n.setMetricsCollector(t)}return h},this.metricsReport=new Q(this.getMetricsCollector()),this.setMetricsManager=function(t){d=t},this.getMetricsManager=function(){if(!d){var t=(e=O.METRICS_SEND_INTERVAL,(r=o("metrics",{})).metricManager||(r.metricManager=new tt(e)),r.metricManager);n.setMetricsManager(t)}var e,r;return d},this.setSchemasProvider=function(t){c=t},this.getSchemasProvider=function(){if(!c){var t=((e=Bt()).provider||(e.provider=new Vt("".concat(O.HORIZON_SCHEMAS_HOST,"/schemas"))),e.provider);n.setSchemasProvider(t)}var e;return c},this.setEventBus=function(t){u=t},this.getEventBus=function(){if(!u){var t=function(t,e,n,r){var i=o("bus",{}),a="".concat(t,"-").concat(e);return i[a]||(i[a]=new Mt(t,O.HORIZON_CLIENT_UUID,e,n,r,D())),i[a]}(n.tenant,n.deviceGroup,n.environment,n.getIdManager());n.setEventBus(t)}return u},this.setIdManager=function(t){l=t},this.getIdManager=function(){if(!l){var t=ie.getInstance();n.setIdManager(t)}return l},this.isReady=function(){return!!c&&!!l&&n.validator.isReady()&&c.isReady()&&l.isReady()},(new rt).every(O.METRICS_SEND_INTERVAL).call((function(){return n.sendMetrics()})).start(),window.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&n.unload()}))},n=[{key:"useDefaultContentType",value:function(t){this.defaultContentType=t}},{key:"setValidator",value:function(t){this.validator=t}},{key:"setReferer",value:function(t){this.referer=t||document.referrer}},{key:"unload",value:function(){this.flush()}},{key:"getScopeInfo",value:function(t){return{url:document.location.href,actionTs:+Date.now(),horizonClientVersion:this.clientVersion,horizonClientReferer:this.referer,horizonRelationId:t,horizonActionUUID:e()(),horizonActionSequence:this.getHorizonActionSequence(),horizonClientContextID:this.getHorizonClientContextID(),horizonActionExtraAttributes:this.getHorizonActionExtraAttributes()}}},{key:"sendMetrics",value:function(){if(this.getMetricsManager().shouldSendMetricsNow(this.tenant)){var t=this.metricsReport.reportAllMetrics(this.tenant);this.send([t])}}},{key:"validateBeforeEnqueue",value:function(t){var e=this.getSchemasProvider().get(t.id,t.version);this.validator.validateFor(t,e,this.tenant),this.getMetricsCollector().addMetric(f,g,1,this.tenant)}},{key:"onReady",value:function(t){this.validator.isReady()?this.getSchemasProvider().isReady()?this.getIdManager().isReady()?(this.state="stateReady",t()):(this.state=de,this.getIdManager().onReady(t),this.getIdManager().load()):(this.state=de,this.getSchemasProvider().onReady(t),this.getSchemasProvider().load()):(this.state=de,this.validator.onReady(t),this.validator.load())}},{key:"flush",value:function(){var t=this;this.isReady()?this.getEventBus().flush():this.onReady((function(){return t.flush()}))}},{key:"send",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!=n&&"string"!=typeof n)throw new Error("".concat($.INVALID_RELATION_ID," Wrong relationId type. It should be a String: actual type is ").concat(ue(n)));[].concat(t).forEach((function(t){e.validator.validateArgs(t,e.tenant),e.sendWithInfo(t,e.getScopeInfo(n))}))}},{key:"sendWithInfo",value:function(t,e){var n=this;if(!this.isReady())return this.state===he&&this.flush(),void this.onReady((function(){return n.sendWithInfo(t,e)}));this.validateBeforeEnqueue(t);var r=se(se({},e),t);r.contentType||(this.defaultContentType||$.mustBeDefined("contentType"),r.contentType=this.defaultContentType),this.getEventBus().enqueue(r)}},{key:"newContextId",value:function(){this.updateHorizonClientContextID()}},{key:"getContextId",value:function(){return this.getHorizonClientContextID()}}],n&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,le(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();const me=pe;var ve={setLoggedUser:ie.setLoggedUser,removeLoggedUser:ie.removeLoggedUser,setAnonymousUser:ie.setAnonymousUser,getAnonymousUser:ie.getAnonymousUser,getHsid:ie.getHsid}})(),r})(),t.exports=e()},59:function(t){t.exports=function(){"use strict";var t="undefined"!=typeof document&&document.documentMode,e={rootMargin:"0px",threshold:0,load:function(e){if("picture"===e.nodeName.toLowerCase()){var n=e.querySelector("img"),r=!1;null===n&&(n=document.createElement("img"),r=!0),t&&e.getAttribute("data-iesrc")&&(n.src=e.getAttribute("data-iesrc")),e.getAttribute("data-alt")&&(n.alt=e.getAttribute("data-alt")),r&&e.append(n)}if("video"===e.nodeName.toLowerCase()&&!e.getAttribute("data-src")&&e.children){for(var o=e.children,i=void 0,a=0;a<=o.length-1;a++)(i=o[a].getAttribute("data-src"))&&(o[a].src=i);e.load()}e.getAttribute("data-poster")&&(e.poster=e.getAttribute("data-poster")),e.getAttribute("data-src")&&(e.src=e.getAttribute("data-src")),e.getAttribute("data-srcset")&&e.setAttribute("srcset",e.getAttribute("data-srcset"));var s=",";if(e.getAttribute("data-background-delimiter")&&(s=e.getAttribute("data-background-delimiter")),e.getAttribute("data-background-image"))e.style.backgroundImage="url('"+e.getAttribute("data-background-image").split(s).join("'),url('")+"')";else if(e.getAttribute("data-background-image-set")){var c=e.getAttribute("data-background-image-set").split(s),u=c[0].substr(0,c[0].indexOf(" "))||c[0];u=-1===u.indexOf("url(")?"url("+u+")":u,1===c.length?e.style.backgroundImage=u:e.setAttribute("style",(e.getAttribute("style")||"")+"background-image: "+u+"; background-image: -webkit-image-set("+c+"); background-image: image-set("+c+")")}e.getAttribute("data-toggle-class")&&e.classList.toggle(e.getAttribute("data-toggle-class"))},loaded:function(){}};function n(t){t.setAttribute("data-loaded",!0)}var r=function(t){return"true"===t.getAttribute("data-loaded")},o=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)};return function(){var t,i,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},c=Object.assign({},e,s),u=c.root,l=c.rootMargin,h=c.threshold,d=c.load,f=c.loaded,p=void 0;"undefined"!=typeof window&&window.IntersectionObserver&&(p=new IntersectionObserver((t=d,i=f,function(e,o){e.forEach((function(e){(0<e.intersectionRatio||e.isIntersecting)&&(o.unobserve(e.target),r(e.target)||(t(e.target),n(e.target),i(e.target)))}))}),{root:u,rootMargin:l,threshold:h}));for(var m,v=o(a,u),b=0;b<v.length;b++)(m=v[b]).getAttribute("data-placeholder-background")&&(m.style.background=m.getAttribute("data-placeholder-background"));return{observe:function(){for(var t=o(a,u),e=0;e<t.length;e++)r(t[e])||(p?p.observe(t[e]):(d(t[e]),n(t[e]),f(t[e])))},triggerLoad:function(t){r(t)||(d(t),n(t),f(t))},observer:p}}}()},374:(t,e,n)=>{"use strict";var r=n(0);const o=()=>{let t=[],e=null;const n={section:"\n      position: fixed;\n      top: 0;\n      bottom: 0;\n      left: 0;\n      right: 0;\n      padding: 32px;\n      background: rgba(0, 0, 0, .85);\n      font-family: Menlo, Consolas, monospace;\n      font-size: large;\n      color: rgb(232, 232, 232);\n      overflow: auto;\n      z-index: 2147483647;\n    ",h1:"\n      margin-top: 0;\n      color: #E36049;\n      font-size: large;\n      font-weight: normal;\n    ",h2:"\n      margin: 32px 0 0;\n      font-size: large;\n      font-weight: normal;\n    ",pre:""},r=t=>{s.h1.textContent=t},o=()=>{const{el:t}=s;if(!t.parentNode){document.body.appendChild(s.el)}},i=()=>{if(e){s.body.innerHTML="",r("Failed to compile");const t=a(e);s.body.appendChild(t),o()}else t.length>0?(s.body.innerHTML="",r("Failed to init component"),t.forEach((({title:t,message:e})=>{const n=a(e,t);s.body.appendChild(n)})),o()):(()=>{const{el:t}=s;t.parentNode&&s.el.remove()})()},a=(t,e)=>{const r=document.createElement("div");if(e){const t=document.createElement("h2");t.textContent=e,t.style=n.h2,r.appendChild(t)}const o=document.createElement("pre");return o.textContent=t,r.appendChild(o),r},s=(()=>{const t=document.createElement("h1");t.style=n.h1;const e=document.createElement("section");e.appendChild(t),e.style=n.section;const r=document.createElement("div");return e.appendChild(r),{h1:t,el:e,body:r}})();return{addError:(e,n)=>{const r=e&&e.stack||e;t.push({title:n,message:r}),i()},clearErrors:()=>{t.forEach((({element:t})=>{var e;(e=t)&&e.parentNode&&e.parentNode.removeChild(e)})),t=[],i()},setCompileError:t=>{e=t,i()}}},i=r.ZMF||r.$Tr;if(!i)throw new Error("failed to find insert_hydration and insert in svelte/internal");const a=class{constructor(t){this.instance=t,this.insertionPoint=null,this.afterMount=this.afterMount.bind(this),this.rerender=this.rerender.bind(this),this._noOverlay=!!t.hotOptions.noOverlay}static getErrorOverlay(t=!1){return t||this.errorOverlay||(this.errorOverlay=o()),this.errorOverlay}static renderCompileError(t){const e=!t,n=this.getErrorOverlay(e);n&&n.setCompileError(t)}dispose(){var t;this.insertionPoint&&((t=this.insertionPoint)&&t.parentNode&&t.parentNode.removeChild(t),this.insertionPoint=null),this.clearError()}afterMount(t,e){const{instance:{debugName:n}}=this;this.insertionPoint||(this.insertionPoint=document.createComment(n)),i(t,this.insertionPoint,e)}rerender(){this.clearError();const{instance:{refreshComponent:t},insertionPoint:e}=this;if(!e)throw new Error("Cannot rerender: missing insertion point");t(e.parentNode,e)}renderError(t){if(this._noOverlay)return;const{instance:{debugName:e}}=this,n=e||t.moduleName||"Error";this.constructor.getErrorOverlay().addError(t,n)}clearError(){if(this._noOverlay)return;const t=this.constructor.getErrorOverlay(!0);t&&t.clearErrors()}};"undefined"!=typeof window&&(window.__SVELTE_HMR_ADAPTER=a)},754:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(0),o=(n(460),n(982)),i=n(885),a=n(645);n(434),n(374);function s(t){let e,n;return{c(){e=(0,r.bGB)("glb-ad"),(0,r.Epf)(e,"data-position",t[1]),(0,r.Epf)(e,"data-error-callback",n=!0)},m(t,n){(0,r.$Tr)(t,e,n)},p(t,n){2&n&&(0,r.Epf)(e,"data-position",t[1])},d(t){t&&(0,r.ogt)(e)}}}function c(t){let e,n,o,i,a,c=t[5]&&s(t);return{c(){e=(0,r.bGB)("div"),n=(0,r.bGB)("div"),c&&c.c(),(0,r.Ljt)(n,"class",o=u(`shopping shopping__widget visible-${t[3]}`,`${t[1]}_wrapper`,t[2],"banner-ad-skeleton-box")),(0,r.Ljt)(n,"data-banner-id",t[1]),(0,r.Ljt)(n,"style",i=`--skeleton-height: ${t[0]}; --skeleton-width: 100%;`),(0,r.Ljt)(e,"id",a=`${t[1]}_container`)},m(o,i){(0,r.$Tr)(o,e,i),(0,r.R3I)(e,n),c&&c.m(n,null),t[6](n)},p(t,[l]){t[5]?c?c.p(t,l):(c=s(t),c.c(),c.m(n,null)):c&&(c.d(1),c=null),14&l&&o!==(o=u(`shopping shopping__widget visible-${t[3]}`,`${t[1]}_wrapper`,t[2],"banner-ad-skeleton-box"))&&(0,r.Ljt)(n,"class",o),2&l&&(0,r.Ljt)(n,"data-banner-id",t[1]),1&l&&i!==(i=`--skeleton-height: ${t[0]}; --skeleton-width: 100%;`)&&(0,r.Ljt)(n,"style",i),2&l&&a!==(a=`${t[1]}_container`)&&(0,r.Ljt)(e,"id",a)},i:r.ZTd,o:r.ZTd,d(n){n&&(0,r.ogt)(e),c&&c.d(),t[6](null)}}}function u(...t){return t.join(" ").trim()}function l(t,e,n){let s,{banner_id:c,class_name:u,device:l,skeleton_height:h="250px"}=e,d=!1;return(0,o.H3)((async()=>{const t=window?.cdaaas?.SETTINGS.MAB_ACTIVE;a.Z.info("MAB_ACTIVE",t),h.endsWith("px")||h.endsWith("%")||n(0,h=`${h}px`),await async function(){await(0,o.Ky)();const t=document.getElementById(`${c}_container`).querySelector(`.${c}_wrapper`);if(t){const e=window.getComputedStyle(t);n(5,d="none"!==e.display)}else n(5,d=!1)}(),d&&await(0,i.r)(s,l)})),t.$$set=t=>{"banner_id"in t&&n(1,c=t.banner_id),"class_name"in t&&n(2,u=t.class_name),"device"in t&&n(3,l=t.device),"skeleton_height"in t&&n(0,h=t.skeleton_height)},[h,c,u,l,s,d,function(t){r.VnY[t?"unshift":"push"]((()=>{s=t,n(4,s)}))}]}t=n.hmd(t);class h extends r.f_C{constructor(t){super(),(0,r.S1n)(this,t,l,c,r.N8,{banner_id:1,class_name:2,device:3,skeleton_height:0})}get banner_id(){return this.$$.ctx[1]}set banner_id(t){this.$$set({banner_id:t}),(0,r.yl1)()}get class_name(){return this.$$.ctx[2]}set class_name(t){this.$$set({class_name:t}),(0,r.yl1)()}get device(){return this.$$.ctx[3]}set device(t){this.$$set({device:t}),(0,r.yl1)()}get skeleton_height(){return this.$$.ctx[0]}set skeleton_height(t){this.$$set({skeleton_height:t}),(0,r.yl1)()}}customElements.define("banner-ad",(0,r.rTj)(h,{banner_id:{},class_name:{},device:{},skeleton_height:{}},[],[],!1)),t&&t.hot;const d=h},483:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(0),o=(n(460),n(982)),i=n(885),a=n(645);n(434),n(374);function s(t){let e,n;return{c(){e=(0,r.bGB)("glb-ad"),(0,r.Epf)(e,"data-position",t[1]),(0,r.Epf)(e,"data-error-callback",n=!0)},m(t,n){(0,r.$Tr)(t,e,n)},p(t,n){2&n&&(0,r.Epf)(e,"data-position",t[1])},d(t){t&&(0,r.ogt)(e)}}}function c(t){let e,n,o,i,a,c=t[5]&&s(t);return{c(){e=(0,r.bGB)("div"),n=(0,r.bGB)("div"),c&&c.c(),(0,r.Ljt)(n,"class",o=u(`shopping shopping__widget visible-${t[3]}`,`${t[1]}_wrapper`,t[2],"banner-ad-skeleton-box")),(0,r.Ljt)(n,"data-banner-id",t[1]),(0,r.Ljt)(n,"style",i=`--skeleton-height: ${t[0]}; --skeleton-width: 100%;`),(0,r.Ljt)(e,"id",a=`${t[1]}_container`)},m(o,i){(0,r.$Tr)(o,e,i),(0,r.R3I)(e,n),c&&c.m(n,null),t[6](n)},p(t,[l]){t[5]?c?c.p(t,l):(c=s(t),c.c(),c.m(n,null)):c&&(c.d(1),c=null),14&l&&o!==(o=u(`shopping shopping__widget visible-${t[3]}`,`${t[1]}_wrapper`,t[2],"banner-ad-skeleton-box"))&&(0,r.Ljt)(n,"class",o),2&l&&(0,r.Ljt)(n,"data-banner-id",t[1]),1&l&&i!==(i=`--skeleton-height: ${t[0]}; --skeleton-width: 100%;`)&&(0,r.Ljt)(n,"style",i),2&l&&a!==(a=`${t[1]}_container`)&&(0,r.Ljt)(e,"id",a)},i:r.ZTd,o:r.ZTd,d(n){n&&(0,r.ogt)(e),c&&c.d(),t[6](null)}}}function u(...t){return t.join(" ").trim()}function l(t,e,n){let s,{banner_id:c,class_name:u,device:l,skeleton_height:h="250px"}=e,d=!1;return(0,o.H3)((async()=>{const t=window?.cdaaas?.SETTINGS.MAB_ACTIVE;a.Z.info("MAB_ACTIVE",t),h.endsWith("px")||h.endsWith("%")||n(0,h=`${h}px`),await async function(){await(0,o.Ky)();const t=document.getElementById(`${c}_container`).querySelector(`.${c}_wrapper`);if(t){const e=window.getComputedStyle(t);n(5,d="none"!==e.display)}else n(5,d=!1)}(),d&&await(0,i.r)(s,l)})),t.$$set=t=>{"banner_id"in t&&n(1,c=t.banner_id),"class_name"in t&&n(2,u=t.class_name),"device"in t&&n(3,l=t.device),"skeleton_height"in t&&n(0,h=t.skeleton_height)},[h,c,u,l,s,d,function(t){r.VnY[t?"unshift":"push"]((()=>{s=t,n(4,s)}))}]}t=n.hmd(t);class h extends r.f_C{constructor(t){super(),(0,r.S1n)(this,t,l,c,r.N8,{banner_id:1,class_name:2,device:3,skeleton_height:0})}get banner_id(){return this.$$.ctx[1]}set banner_id(t){this.$$set({banner_id:t}),(0,r.yl1)()}get class_name(){return this.$$.ctx[2]}set class_name(t){this.$$set({class_name:t}),(0,r.yl1)()}get device(){return this.$$.ctx[3]}set device(t){this.$$set({device:t}),(0,r.yl1)()}get skeleton_height(){return this.$$.ctx[0]}set skeleton_height(t){this.$$set({skeleton_height:t}),(0,r.yl1)()}}customElements.define("banner-ad-fn",(0,r.rTj)(h,{banner_id:{},class_name:{},device:{},skeleton_height:{}},[],[],!1)),t&&t.hot;const d=h},766:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(0),o=(n(460),n(982)),i=n(637);n(434),n(374);function a(t){let e;return{c(){e=(0,r.bGB)("span"),e.textContent="oferecido por",(0,r.Ljt)(e,"class","ad-text-offer"),(0,r.Ljt)(e,"aria-label","Oferecido por anunciante")},m(t,n){(0,r.$Tr)(t,e,n)},d(t){t&&(0,r.ogt)(e)}}}function s(t){let e,n,o,i,s,c=t[4]&&a();return{c(){e=(0,r.bGB)("div"),c&&c.c(),n=(0,r.DhX)(),o=(0,r.bGB)("glb-ad"),(0,r.Epf)(o,"width","90"),(0,r.Epf)(o,"height","32"),(0,r.Epf)(o,"data-ad-unit",t[3]),(0,r.Epf)(o,"data-position",t[2]),(0,r.Epf)(o,"data-error-callback",i=!0),(0,r.Ljt)(e,"class","banner-ad-skeleton-box"),(0,r.Ljt)(e,"style",s=`--skeleton-height: ${t[1]}; --skeleton-width: ${t[0]};`),(0,r.Ljt)(e,"data-banner-id",t[2])},m(i,a){(0,r.$Tr)(i,e,a),c&&c.m(e,null),(0,r.R3I)(e,n),(0,r.R3I)(e,o),t[7](e)},p(t,[i]){t[4]?c||(c=a(),c.c(),c.m(e,n)):c&&(c.d(1),c=null),8&i&&(0,r.Epf)(o,"data-ad-unit",t[3]),4&i&&(0,r.Epf)(o,"data-position",t[2]),3&i&&s!==(s=`--skeleton-height: ${t[1]}; --skeleton-width: ${t[0]};`)&&(0,r.Ljt)(e,"style",s),4&i&&(0,r.Ljt)(e,"data-banner-id",t[2])},i:r.ZTd,o:r.ZTd,d(n){n&&(0,r.ogt)(e),c&&c.d(),t[7](null)}}}function c(t,e,n){let a,{banner_id:s,ad_unit:c,fallback_banner_id:u,skeleton_width:l="100%",skeleton_height:h="100%",useOfferMsg:d=!1}=e;return(0,o.H3)((async()=>{h.endsWith("px")||h.endsWith("%")||n(1,h=`${h}px`),l.endsWith("px")||l.endsWith("%")||n(0,l=`${l}px`),await(0,o.Ky)(),await(0,i.U)(a,!0,{adUnit:c,fallbackBannerId:u},d)})),t.$$set=t=>{"banner_id"in t&&n(2,s=t.banner_id),"ad_unit"in t&&n(3,c=t.ad_unit),"fallback_banner_id"in t&&n(6,u=t.fallback_banner_id),"skeleton_width"in t&&n(0,l=t.skeleton_width),"skeleton_height"in t&&n(1,h=t.skeleton_height),"useOfferMsg"in t&&n(4,d=t.useOfferMsg)},[l,h,s,c,d,a,u,function(t){r.VnY[t?"unshift":"push"]((()=>{a=t,n(5,a)}))}]}t=n.hmd(t);class u extends r.f_C{constructor(t){super(),(0,r.S1n)(this,t,c,s,r.N8,{banner_id:2,ad_unit:3,fallback_banner_id:6,skeleton_width:0,skeleton_height:1,useOfferMsg:4})}get banner_id(){return this.$$.ctx[2]}set banner_id(t){this.$$set({banner_id:t}),(0,r.yl1)()}get ad_unit(){return this.$$.ctx[3]}set ad_unit(t){this.$$set({ad_unit:t}),(0,r.yl1)()}get fallback_banner_id(){return this.$$.ctx[6]}set fallback_banner_id(t){this.$$set({fallback_banner_id:t}),(0,r.yl1)()}get skeleton_width(){return this.$$.ctx[0]}set skeleton_width(t){this.$$set({skeleton_width:t}),(0,r.yl1)()}get skeleton_height(){return this.$$.ctx[1]}set skeleton_height(t){this.$$set({skeleton_height:t}),(0,r.yl1)()}get useOfferMsg(){return this.$$.ctx[4]}set useOfferMsg(t){this.$$set({useOfferMsg:t}),(0,r.yl1)()}}customElements.define("placement-ad",(0,r.rTj)(u,{banner_id:{},ad_unit:{},fallback_banner_id:{},skeleton_width:{},skeleton_height:{},useOfferMsg:{type:"Boolean"}},[],[],!1)),t&&t.hot;const l=u},842:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(0),o=(n(460),n(982)),i=n(637);n(434),n(374);function a(t){let e;return{c(){e=(0,r.bGB)("span"),e.textContent="oferecido por",(0,r.Ljt)(e,"class","ad-text-offer"),(0,r.Ljt)(e,"aria-label","Oferecido por anunciante")},m(t,n){(0,r.$Tr)(t,e,n)},d(t){t&&(0,r.ogt)(e)}}}function s(t){let e,n,o,i,s,c=t[4]&&a();return{c(){e=(0,r.bGB)("div"),c&&c.c(),n=(0,r.DhX)(),o=(0,r.bGB)("glb-ad"),(0,r.Epf)(o,"width","90"),(0,r.Epf)(o,"height","32"),(0,r.Epf)(o,"data-ad-unit",t[3]),(0,r.Epf)(o,"data-position",t[2]),(0,r.Epf)(o,"data-error-callback",i=!0),(0,r.Ljt)(e,"class","banner-ad-skeleton-box"),(0,r.Ljt)(e,"style",s=`--skeleton-height: ${t[1]}; --skeleton-width: ${t[0]};`),(0,r.Ljt)(e,"data-banner-id",t[2])},m(i,a){(0,r.$Tr)(i,e,a),c&&c.m(e,null),(0,r.R3I)(e,n),(0,r.R3I)(e,o),t[7](e)},p(t,[i]){t[4]?c||(c=a(),c.c(),c.m(e,n)):c&&(c.d(1),c=null),8&i&&(0,r.Epf)(o,"data-ad-unit",t[3]),4&i&&(0,r.Epf)(o,"data-position",t[2]),3&i&&s!==(s=`--skeleton-height: ${t[1]}; --skeleton-width: ${t[0]};`)&&(0,r.Ljt)(e,"style",s),4&i&&(0,r.Ljt)(e,"data-banner-id",t[2])},i:r.ZTd,o:r.ZTd,d(n){n&&(0,r.ogt)(e),c&&c.d(),t[7](null)}}}function c(t,e,n){let a,{banner_id:s,ad_unit:c,fallback_banner_id:u,skeleton_width:l="100%",skeleton_height:h="100%",useOfferMsg:d=!1}=e;return(0,o.H3)((async()=>{h.endsWith("px")||h.endsWith("%")||n(1,h=`${h}px`),l.endsWith("px")||l.endsWith("%")||n(0,l=`${l}px`),await(0,o.Ky)(),await(0,i.U)(a,!0,{adUnit:c,fallbackBannerId:u},d)})),t.$$set=t=>{"banner_id"in t&&n(2,s=t.banner_id),"ad_unit"in t&&n(3,c=t.ad_unit),"fallback_banner_id"in t&&n(6,u=t.fallback_banner_id),"skeleton_width"in t&&n(0,l=t.skeleton_width),"skeleton_height"in t&&n(1,h=t.skeleton_height),"useOfferMsg"in t&&n(4,d=t.useOfferMsg)},[l,h,s,c,d,a,u,function(t){r.VnY[t?"unshift":"push"]((()=>{a=t,n(5,a)}))}]}t=n.hmd(t);class u extends r.f_C{constructor(t){super(),(0,r.S1n)(this,t,c,s,r.N8,{banner_id:2,ad_unit:3,fallback_banner_id:6,skeleton_width:0,skeleton_height:1,useOfferMsg:4})}get banner_id(){return this.$$.ctx[2]}set banner_id(t){this.$$set({banner_id:t}),(0,r.yl1)()}get ad_unit(){return this.$$.ctx[3]}set ad_unit(t){this.$$set({ad_unit:t}),(0,r.yl1)()}get fallback_banner_id(){return this.$$.ctx[6]}set fallback_banner_id(t){this.$$set({fallback_banner_id:t}),(0,r.yl1)()}get skeleton_width(){return this.$$.ctx[0]}set skeleton_width(t){this.$$set({skeleton_width:t}),(0,r.yl1)()}get skeleton_height(){return this.$$.ctx[1]}set skeleton_height(t){this.$$set({skeleton_height:t}),(0,r.yl1)()}get useOfferMsg(){return this.$$.ctx[4]}set useOfferMsg(t){this.$$set({useOfferMsg:t}),(0,r.yl1)()}}customElements.define("touchpoint-ad",(0,r.rTj)(u,{banner_id:{},ad_unit:{},fallback_banner_id:{},skeleton_width:{},skeleton_height:{},useOfferMsg:{type:"Boolean"}},[],[],!1)),t&&t.hot;const l=u},434:(t,e,n)=>{"use strict";var r=n(0);const o=(t,e)=>{e&&(e.callbacks&&(t.$$.callbacks=e.callbacks),e.bound&&((t,e)=>{const n={};for(const[t,r]of Object.entries(e.props))n[r]=t;for(const[r,o]of Object.entries(e.bound)){const e=n[r];if(null==e)continue;const i=t.$$.props[e];t.$$.bound[i]=o,o(t.$$.ctx[i])}})(t,e))},i=(t,e,{allowLiveBinding:n,onInstance:i,onMount:a,onDestroy:s})=>{let c,u=e;const l=t=>{const n=(t,e,n)=>{(0,r.luv)(h||n);const i=new t(u);return l(i),o(i,e),i};if((t=>{"undefined"!=typeof Proxy&&(t.$$.props=new Proxy(t.$$.props,{get:(t,e)=>(void 0===t[e]&&(t[e]="hmr_future_"+e),t[e]),set(t,e,n){t[e]=n}}))})(t),t.$$.on_hmr=[],t.$replace=(r,{target:o=u.target,anchor:i=u.anchor,preserveLocalState:a,conservative:s=!1})=>{const l=(t=>{if(!t)throw new Error("Missing component");if(!t.$$)throw new Error("Invalid component");const{$$:{callbacks:e,bound:n,ctx:r,props:o}}=t,i=t.$capture_state(),a={};return Object.keys(t.$$.props).forEach((t=>{a[t]=r[o[t]]})),{ctx:r,props:o,callbacks:e,bound:n,state:i,hmr_props_values:a}})(t);((t,n,r,o)=>{const i=Object.assign({},u.props);if(u.props&&r.hmr_props_values)for(const t of Object.keys(u.props))r.hmr_props_values.hasOwnProperty(t)&&(i[t]=r.hmr_props_values[t]);if(o&&r.state)if(Array.isArray(o)){i.$$inject={};for(const t of o)i.$$inject[t]=r.state[t]}else i.$$inject=r.state;else delete i.$$inject;u=Object.assign({},e,{target:t,anchor:n,props:i,hydrate:!1})})(o||u.target,i,l,a);const h=c?c.$$.on_hmr:[],d=h.map((t=>t(c))).filter(Boolean),f=c;if(s)try{const t=n(r,l,f);c=null,f.$destroy(),c=t}catch(t){throw c=f,t}else c=null,f&&f.$destroy(),c=n(r,l,c);c.$$.hmr_cmp=c;for(const t of d)t(c);return c.$$.on_hmr=h,c},a){const e=t.$$.fragment.m;t.$$.fragment.m=(...t)=>{const n=e(...t);return a(...t),n}}if(s&&t.$$.on_destroy.push((()=>{c===t&&s()})),i&&i(t),a){const{target:t,anchor:e}=u;t&&a(t,e)}},h=n?r.xLP:(()=>{try{return(0,r.w2L)()}catch(t){if("Function called outside component initialization"===t.message)return r.xLP;throw t}})();return c=new t(u),c.$$.hmr_cmp=c,l(c),c},a=["constructor","$destroy"],s=["$set","$on"],c=(t,e)=>{console.error("[HMR][Svelte]",t),e&&console.error(e)},u=t=>`<${(t=>{return e=(t=>t.split("/").pop().split(".").slice(0,-1).join("."))(t.replace(/[/\\]/g,"/")),e[0].toUpperCase()+e.slice(1);var e})(t)}>`,l=(t,e,n={})=>{for(const r of e)n[r]=function(...e){const n=t();if(n)return n[r]&&n[r].call(this,...e)};return n},h=t=>"$$"!==t&&"$$"===t.slice(0,2),d=(t,e)=>{Object.keys(t).filter(h).forEach((e=>{delete t[e]})),e&&Object.keys(e).filter(h).forEach((n=>{Object.defineProperty(t,n,{configurable:!0,get(){const t=e[n];return"function"!=typeof t?t:t&&function(...e){return t.apply(this,e)}}})}))};class f{constructor({Adapter:t,id:e,debugName:n,current:r,register:o},u){let h,f=!1,p=null;const m=t=>{t,d(this,h)},v=t=>{t,b.renderError(t)},b=new t({hotOptions:r.hotOptions,proxy:this,id:e,debugName:n,refreshComponent:(t,e,o)=>{if(p)null,b.rerender();else try{const n={target:t,anchor:e,preserveLocalState:r.preserveLocalState};o&&(n.conservativeDestroy=!0),h.$replace(r.Component,n)}catch(o){if(v(o,t,e),!r.hotOptions.optimistic||!r.canAccept||o&&o.hmrFatal)throw o;c(`Error during component init: ${n}`,o)}}}),{afterMount:y,rerender:g}=b,_=()=>{f||(!0,b.dispose(),E())},E=o(g);this.$destroy=()=>{h&&(h.$destroy(),m(null)),_()},l((()=>h),s,this);try{let t;i(r.Component,u,{allowLiveBinding:r.hotOptions.allowLiveBinding,onDestroy:_,onMount:y,onInstance:e=>{m(e),this.$$=e.$$,((t,e,n)=>(n&&n.forEach((e=>{delete t[e]})),Object.getOwnPropertyNames(Object.getPrototypeOf(e)).filter((n=>{if(!a.includes(n)&&!s.includes(n))return Object.defineProperty(t,n,{configurable:!0,get:()=>e[n],set(t){e[n]=t}}),!0}))))(this,e,t)}})}catch(t){const{target:e,anchor:n}=u;throw v(t,e,n),t}}}const p=(t,e,n)=>{if(n)for(const t of n)delete e[t];const r=[];for(const n in t)r.push(n),e[n]=t[n];return r},m={},v=(t,e)=>{t=t.toLowerCase(),m[t]||(m[t]=[]),m[t].push(e)},b=(t,...e)=>{const n=m[t];if(n)for(const t of n)t(...e)},y=()=>b("beforeupdate"),g=()=>b("afterupdate");"undefined"!=typeof window&&(window.__SVELTE_HMR={on:v},window.dispatchEvent(new CustomEvent("svelte-hmr:ready")));let _=!1;const E=()=>_;const w=(...t)=>console.log("[HMR:Svelte]",...t),I=()=>{const t="undefined"!=typeof window&&window;t&&t.location&&t.location.reload?(w("Reload"),t.location.reload()):w("Full reload required")},O=t=>{if(null==t)return;if("undefined"==typeof document)return;const e=document.getElementById(t);e&&e.remove()},S={reload:I};let T=!1;const k="undefined"!=typeof window?window:n.g,x="undefined"!=typeof Symbol?Symbol("SVELTE_LOADER_HOT"):"__SVELTE_LOADER_HOT";if(!k[x]){let t=0;const e=()=>{t++},n=t=>e=>{const n=e&&e.stack||e;console.error("[HMR] Failed to accept update (nollup compat mode)",n),t(),r()},r=()=>{t--,0===t&&console.log("[HMR:Svelte] Up to date")};k[x]={hotStates:{},notifyStart:e,notifyError:n,notifyEnd:r}}$=t=>{const{notifyStart:e,notifyError:n,notifyEnd:r}=k[x],{m:o,reload:i}=t;let a=o.hot.data&&o.hot.data.acceptHandlers||[],s=[];o.hot.dispose((t=>{t.acceptHandlers=s}));const c=t=>{"ready"===t?e():"idle"===t&&(t=>{const e=[...t],n=()=>{const t=e.shift();return t?t(null).then(n):Promise.resolve(null)};return n()})(a).then(r).catch(n(i))};o.hot.addStatusHandler(c),o.hot.dispose((()=>{o.hot.removeStatusHandler(c)}));const u={data:o.hot.data,dispose:(...t)=>o.hot.dispose(...t),accept:t=>{0===s.length&&o.hot.accept(),s.push(t)}};return{...t,hot:u}};var $},885:(t,e,n)=>{"use strict";n.d(e,{r:()=>c});n(59),n(520);var r=n(645),o=(n(928),n(617));n(908);var i=n(495);const a=({adBannerConfig:t={},size:e=[],isEmpty:n=!1,isAdtech:r=!1})=>{const o=document.getElementById(t.name),i=r?o?.parentElement.parentElement:o?.parentElement;if(n&&i)return i.style.setProperty("display","none");if(o&&t&&i){const{hasMultipleSize:n}=t,a=(t=>{const e=window.getComputedStyle(t).minHeight;return Number(e.replace("px",""))})(i),s=e?e[1]:a;if(r?o.parentElement.parentElement.classList.remove("banner-ad-skeleton-box"):o.classList.remove("banner-ad-skeleton-box"),n&&s!==a&&!((t,e)=>t.forgotRuleEnabled&&(e.getBo
URL
GET http://globo.com/
Response Headers
Cache-Control:
max-age=600
Connection:
keep-alive
Content-Length:
166
Content-Type:
text/html
Date:
Sun, 27 Apr 2025 01:42:56 GMT
Location:
https://www.globo.com/
Response Body
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>openresty</center>
</body>
</html>

Resolver

Resolver ASN
AS15169
Resolver IP
172.217.35.20
Resolver Network Name
Google LLC
Report ID
20250427T014055Z_webconnectivity_BR_268097_n1_opxukSNNO3E2GZqD
Platform
android
Software Name
ooniprobe-android-unattended (5.0.5)
Measurement Engine
ooniprobe-engine (3.24.0)

Raw Measurement Data

Loading