function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _createForOfIteratorHelper(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _regenerator(){var p,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function r(e,t,n,r){var o,i,a,c,u,s,l,f,d,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(o=e,i=n,l=r||[],f=!1,d={p:s=0,n:0,v:p,a:v,f:v.bind(p,4),d:function(e,t){return a=e,c=0,u=p,d.n=t,m}},function(e,t,n){if(1t||ie.length)&&(t=e.length);for(var n=0,r=Array(t);n{function P(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r{var e=n(F);return _slicedToArray(null!=(e=null==e?void 0:e.split(":"))?e:[],1)[0]})())?e:(()=>{var e=new RegExp(/[?&]workspace=([^&]+)(&|$)/).exec(window.location.search);return null==e?void 0:e[1]})())?e:(()=>{var e;return null==(e=null==window?void 0:window.__RUNTIME__)?void 0:e.workspace})(),ckInfo:window.document.cookie,checkout:(()=>{var e,t;return null!=(e=null==(e=window.vtex)?void 0:e.checkout)&&e.version?(e=window.vtex.checkout.version,t=e.startsWith("v")?"checkout_".concat(e.slice(0,2)):"checkout",{version:e,type:t}):null!=(e=window.__FASTCHECKOUT__)&&e.version?{version:window.__FASTCHECKOUT__.version,type:"fastcheckout"}:void 0})()});var e}function Y(){var e=null==(e=null==(e=window.document)?void 0:e.querySelector('meta[name="storefront"]'))?void 0:e.getAttribute("content"),t=null!=(t=null!=(t=null!=(t=null==(t=window.VTEX_METADATA)?void 0:t.account)?t:null==(t=window.__RUNTIME__)?void 0:t.account)?t:window.jsnomeLoja)?t:(()=>{var e=null!=(e=null==(e=window.vtexafenv)?void 0:e.account)?e:null!=(e=null==(e=null==document?void 0:document.currentScript)?void 0:e.getAttribute("an"))?e:null==(e=null==document?void 0:document.currentScript)?void 0:e.getAttribute("data-an");return $=e?e:$})();return e?{accountName:t,accountEnvironment:e}:null!=(e=window.__RUNTIME__)&&e.account?{accountName:t,accountEnvironment:"store_framework"}:window.jsnomeLoja?{accountName:t,accountEnvironment:"portal"}:{accountName:t,accountEnvironment:window.__NEXT_DATA__||window.___gatsby?"fast_store":void 0}}var $="";function o(){return window.location.href}function J(){var n={},e=document.querySelectorAll('head meta[property^="product:"]');if(0!==e.length)return e.forEach(function(e){var t=e.getAttribute("property"),e=e.getAttribute("content");t&&e&&(n[t]=e)}),n}function i(o,e,t){var i=1i&&(clearInterval(n),t(null))},a)}))}},e)}))}var e="https://af-origin.vtex.com/api/activity-flow",z="Event",Q=!1,Z=1e4,ee=0,te={pageView:"".concat(e,"/page-views"),ads:"".concat(e,"/ads"),webVitals:"".concat(e,"/web-vitals"),click:"".concat(e,"/click"),impression:"".concat(e,"/impression"),dataLayer:"".concat(e,"/data-layer"),view:"".concat(e,"/view")};function ne(e,t){var n,r;navigator.sendBeacon?navigator.sendBeacon(t,e):(n=t,r=e,new Promise(function(e){var t=new XMLHttpRequest;t.timeout=Z,t.open("POST",n,!0),t.setRequestHeader("Content-Type","application/json"),t.send(r),t.onload=function(){if(200===t.status||202===t.status)return G(),e(r)}}))}function re(e){var t={SessionId:(t=K()).sessionID,MacId:t.macID,IsNewUser:t.isNewUser,Url:t.url,Ref:t.ref,accountName:t.accountName,accountEnvironment:t.accountEnvironment,clientdate:(new Date).getTime(),isFirstEvent:t.isNewSessionID,workspace:t.workspace,ckInfo:t.ckInfo,checkout:t.checkout},n=t.IsNewUser,r=t.isFirstEvent,t=P(t,["IsNewUser","isFirstEvent"]),t=Object.assign(Object.assign(Object.assign({},e),{DataType:z}),t);return"pageView"===e.eventType?Object.assign(Object.assign({},t),{IsNewUser:n,isFirstEvent:r}):t}function a(e,t){var n,r=1{var n=e;(n=ae[n])&&clearTimeout(n);var r=setTimeout(function(){"IN_VIEW"===l(e)&&t()},oe);ae[e]=r})(t,function(){s(t,"VIEWED"),r.disconnect(),n.dispatchEvent(new Event("view"))}));break;case"IN_VIEW":o.isIntersecting||s(t,"NOT_VIEWED");break;case"VIEWED":r.disconnect()}})},{threshold:.5,rootMargin:"0px"})).observe(i)}function s(e,t){ie[e]=t}function l(e){return null!=(e=ie[e])?e:"NOT_VIEWED"}function f(e){return"".concat(e.adId,"-").concat(e.adRequestId)}function ue(e){e=(e=>{for(var t={},n=Object.keys(c),r=0,o=n;rn.value&&(n.value=r,n.entries=o,t())}var t,n=A("CLS",0),r=0,o=[],i=O("layout-shift",e);i&&(t=S(a,n,ot,c.reportAllChanges),x(function(){e(i.takeRecords()),t(!0)}),E(function(){n=A("CLS",r=0),t=S(a,n,ot,c.reportAllChanges),Je(function(){return t()})}),setTimeout(t,0))}))}function Ge(i,a){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(a=a||{},L(function(){var e;st();function t(t){pt(function(){t.forEach(vt);var e=ft();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,o())})}var n=A("INP"),r=O("event",t,{durationThreshold:null!=(e=a.durationThreshold)?e:40}),o=S(i,n,mt,a.reportAllChanges);r&&(r.observe({type:"first-input",buffered:!0}),x(function(){t(r.takeRecords()),o(!0)}),E(function(){lt=ut(),C.length=0,D.clear(),n=A("INP"),o=S(i,n,mt,a.reportAllChanges)}))}))}function Xe(a,c){c=c||{},L(function(){function e(e){(e=c.reportAllChanges?e:e.slice(-1)).forEach(function(e){e.startTimer[1]?"poor":e>r[0]?"needs-improvement":"good",t(n))}},Je=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},x=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},ze=function(e){var t=!1;return function(){t||(e(),t=!0)}},k=-1,Qe=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},j=function(e){"hidden"===document.visibilityState&&-1n.latency)&&(e?t.duration>e.latency?(e.entries=[t],e.latency=t.duration):t.duration===e.latency&&t.startTime===e.entries[0].startTime&&e.entries.push(t):(n={id:t.interactionId,latency:t.duration,entries:[t]},D.set(n.id,n),C.push(n)),C.sort(function(e,t){return t.latency-e.latency}),10