var googletag=googletag||{};googletag.cmd=googletag.cmd||[];var SendWebPush=class SendWebPush{#t;#e;#i;#s;#r;#o;#n;#a;#c;#h;#d;#l;#u;#g;#p;#m;#y;#f;#w;#v;#_;#b;#S;#C;#A;#k;#E;#T;#L;#R;#P;#j;#D;#x;#O;#I;#M;#N;#q;#F;#B;#z;#$;#U;#W;#H;#G;#V;#Y;#Q;#K;#X;#J;#Z;#tt=!1;#et=!1;#it=0;#st=!1;#rt;#ot;#nt=!1;#at=!1;#ct;#ht;static#dt=3e4;#lt;#ut;#gt;#pt;#mt;#yt;#ft;#wt;#vt;#_t=new Set;#bt;#St;#Ct;#At;#kt;static#Et=["interstitial","rewarded"];#Tt;#Lt;#Rt;#Pt;#jt;#Dt;#xt;#Ot;#It;#Mt;constructor(t,e,googletag){this.window=t,this.document=e,this.googletag=googletag,this.#t=new SendWebPush.#Nt(this),this.#e=new SendWebPush.#qt(this),this.#i=new SendWebPush.#Ft(this),this.#s=new SendWebPush.#Bt(this),this.#r=new SendWebPush.#zt(this),this.#o=new SendWebPush.#$t(this),this.#n=new SendWebPush.#Ut(this),this.#a=new SendWebPush.#Wt(this),this.#c=new SendWebPush.#Ht(this),this.#h=new SendWebPush.#Gt(this),this.#d=new SendWebPush.#Vt(this),this.#l=new SendWebPush.#Yt(this),this.#u=new SendWebPush.#Qt(this),this.#g=new SendWebPush.#Kt(this),this.#p=new SendWebPush.#Xt(this),this.#m=new SendWebPush.#Jt(this),this.#y=new SendWebPush.#Zt(this),this.#f=new SendWebPush.#te(this),this.#w=new SendWebPush.#ee(this),this.#v=new SendWebPush.#ie(this),this.#_=new SendWebPush.#se(this),this.#b=new SendWebPush.#re(this),this.#S=new SendWebPush.#oe(this),this.#C=new SendWebPush.#ne(this),this.#A=new SendWebPush.#ae(this),this.#k=new SendWebPush.#ce(this),this.#E=new SendWebPush.#he(this),this.#T=new SendWebPush.#de(this),this.#e.readHandoff(),this.app_env="{app_env}",this.#P="v25.0.8",this.#j="v25.0.8.0.123.54bf326",this.#D=11,this.#W=null,this.#$=null,this.#G=null,this.#Z=!1,this.#U=null,this.#x=null,this.#ot=!1,this.#ct=!1,this.#ht=null,this.#lt="pending",this.#vt=[],this.#xt=new Set,this.#Ot=0,this.#It=!1,this.#Mt=new Set,this.#le(e),this.#ue(),this.#ge(),this.#ut=!1,this.#gt=!1,this.#pt=!1,this.#pe(),this.#C.initFetchMode(),this.dataSWP=this.#me(),this.#T.applyDomain(),this.#et=this.#ye();try{t.dataLayer=t.dataLayer||[]}catch(t){}this.#fe(),this.#A.start(),this.#we(),this.#R=30,this.#L=50,this.#kt=new Map,this.#Lt=new Map,this.#Rt=new Map,this.#Tt=new Set,this.#Pt=!1,this.#z=!1,this.#v.start(),this.#ve()&&this.#C.start(),this.#m.injectResourceHints(),this.#S.startRefetch(),this.#m.loadGPT(),"loading"===e.readyState?e.addEventListener("DOMContentLoaded",(()=>this.#_e())):this.#_e()}#le(t){try{this.#jt=t.currentScript?.src||null}catch(t){this.#jt=null}try{this.#Dt=t.currentScript?t.currentScript.crossOrigin:void 0}catch(t){this.#Dt=void 0}}#ge(){this.#mt={article:"pending"},this.#yt=new Promise((t=>{this.#wt=e=>{"pending"===this.#mt.article&&(this.#mt.article=e?"country":"empty"),e&&!this.#ft&&(this.#ft=e),t(e)}}))}#pe(){try{const t=()=>{this.#ut=!0};this.window.addEventListener("beforeunload",(()=>this.#E.onLeave("unload"))),this.window.addEventListener("pagehide",(()=>{t(),this.#E.onLeave("unload"),this.#s.flush(!0),this.#e.onPagehide()})),this.window.addEventListener("pageshow",(t=>{t?.persisted&&this.#e.onRestore(),t?.persisted&&this.#E.onReturn(),t?.persisted&&this.#gt&&(this.#gt=!1,this.#l.close()),t?.persisted&&(this.#h.unlockOnBack("restore"),setTimeout((()=>this.#h.unlockOnBack("restore")),600))})),this.window.addEventListener("popstate",(()=>{setTimeout((()=>this.#h.unlockOnBack("popstate")),1500)})),this.document.addEventListener("visibilitychange",(()=>{"hidden"===this.document.visibilityState&&(t(),this.#E.onLeave("hidden"),this.#s.flush(!1)),this.#e.onVisibility(),"visible"===this.document.visibilityState&&this.#E.onReturn()}))}catch(t){}try{this.#rt=new URLSearchParams(window.location.search).has("swpdeb")}catch(t){this.#rt=!1}}#we(){this.#O=this.#be(),this.#I=this.#O?"smartphone":"desktop",this.#Se(),this.#M=this.#Ce(),this.#q=this.#Ae("utm_medium"),this.#F=this.#Ae("utm_campaign"),this.#B=this.#Ae("utm_source"),this.#H=SendWebPush.#ke(this.#Ae("utm_content")),this.#V=SendWebPush.#ke(this.#Ae("utm_term")),this.#Y=this.#Ee("utm_medium"),this.#Q=this.#Ee("utm_campaign"),this.#K=this.#Ee("utm_source"),this.#X=[...new Set(this.#Ee("utm_content").map((t=>SendWebPush.#ke(t))))],this.#J=[...new Set(this.#Ee("utm_term").map((t=>SendWebPush.#ke(t))))]}static#Te;static#Le(){return void 0===SendWebPush.#Te&&(SendWebPush.#Te={"idDomain":4480,"url":"us.cartaosusbrasil.com.br","statusLazyLoad":1,"statusRefresh":1,"priceRuleSettings":{"rebid_enabled":0,"status":0,"ladder_steps":1,"ladder_decay_percent":30,"ladder_ad_unit_types":[]},"ladderBids":[],"statusPreloader":0,"statusOpenOutsideWebView":1,"privacyPolicyUrl":"https:\/\/us.cartaosusbrasil.com.br\/privacy-policy\/","termsOfUseUrl":"https:\/\/us.cartaosusbrasil.com.br\/terms-of-service\/","statusClickFraud":1,"statusBlockRealTime":0,"statusWebPush":0,"screenshotCaptureMode":"off","screenshotSampleRate":0.05,"screenshotCaptureViolations":[],"priorityCaptureViolations":["__AdUnitIsSizeDistinct__"],"networkCode":"","adUnitRoot":"us.cartaosusbrasil.com.br","childNetworkCode":"23277094891","typeAccount":"ManagerAccount","qtyAdUnitAllowed":0,"urlsBlocks":[],"adUnitAutomatic":[{"id":55133,"name":"us.cartaosusbrasil.com.br_interstitial_1","type":"interstitial","isVisible":true,"idDiv":"div-gpt-ad-2749729000692-0","used":0,"ad_unit_rebid":null,"configs":[{"contains":[],"except_pages":[],"frequency":"1","not_contains":[],"only_pages":[],"segmentation_pages":"all","status":"1","id_config":9662}]},{"id":55141,"name":"us.cartaosusbrasil.com.br_rewarded_1","type":"rewarded","isVisible":true,"idDiv":"div-gpt-ad-6646510060276-0","used":0,"ad_unit_rebid":null,"configs":[{"button_border":"0","button_border_color":"#000000","button_shape":"rounded","button_size":"normal","button_text_congratulation":"ACCESS NOW","color_ad_message":"","color_button":"#14821F","color_description":"","color_quiz_background":"","color_quiz_overlay":"","color_quiz_progress":"","color_quiz_text":"","color_text_button":"#ffffff","color_title":"","config_name":"ROUPAS GR\u00c1TIS [US]","contains":[],"description":"Clique aqui para continuar lendo","device":"all","element_custom":"","element_custom_background":"","element_custom_offset":"0","except_pages":[],"exclude_contains":[],"font_size_ad_message":"","font_size_button":"","font_size_description":"","font_size_title":"","frequency":"5","icon":"\ud83c\udfaf","icon_image":"","icon_type":"","message_congratulation":"Good news! You could receive free clothes delivered to your home!","message_loading":"We are reviewing your response.","message_view_ad":"To view our content, watch a short video.","not_contains":[],"only_pages":["\/lp1-shein-free-clothes-8-options-cow\/","\/lp1-free-shein-products-reviewer-cow\/","\/lp1-free-shein-clothes-cow\/"],"page_type":"all","policy_footer_text":"Independent informational content. We are not affiliated with SHEIN and do not handle registrations \u2014 free information supported by advertising.","privacy_policy_label":"Privacy Policy","quiz_destination_link":"","quiz_destination_mode":"","quiz_final_image":"","quiz_lead":"0","quiz_lead_button":"","quiz_lead_disclaimer":"","quiz_lead_placeholder":"","quiz_lead_skip":"1","quiz_lead_skip_text":"Pular","quiz_lead_title":"","quiz_logo":"","quiz_manual":[{"id":"qro973e","question":"Have you tried SHEIN's Free Trial?","alternatives":["No","Yes"],"routes":[{"id":"a0b45iv"},{"id":"aqf50gt"}]}],"quiz_url_replace":"","quiz_url_search":"","quiz_wait_ad_ready":"0","segmentation_pages":"only","show_modal_close_button":"0","show_policy_links":"1","status":"1","terms_of_use_label":"Terms of Service","text_button":"Continuar","title":"Prezado leitor","trigger":"quiz","id_config":9715}]}],"adUnitsManual":[{"id":55136,"name":"us.cartaosusbrasil.com.br_display_1","type":"display","used":0,"idDiv":"div-gpt-ad-9436524412762-0","configs":[{"config_name":"Content2","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9664},{"config_name":"Content3","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9665},{"config_name":"Content1","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"1","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9663}],"size":[[250,250],[300,250],[336,280],"fluid"],"ad_unit_rebid":null},{"id":55137,"name":"us.cartaosusbrasil.com.br_display_2","type":"display","used":0,"idDiv":"div-gpt-ad-9656914067805-0","configs":[{"config_name":"Content2","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9664},{"config_name":"Content3","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9665},{"config_name":"Content1","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"1","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9663}],"size":[[250,250],[300,250],[336,280],"fluid"],"ad_unit_rebid":null},{"id":55138,"name":"us.cartaosusbrasil.com.br_display_3","type":"display","used":0,"idDiv":"div-gpt-ad-1418429366183-0","configs":[{"config_name":"Content2","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9664},{"config_name":"Content3","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9665},{"config_name":"Content1","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"1","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9663}],"size":[[250,250],[300,250],[336,280],"fluid"],"ad_unit_rebid":null},{"id":55139,"name":"us.cartaosusbrasil.com.br_display_4","type":"display","used":0,"idDiv":"div-gpt-ad-3136782779697-0","configs":[{"config_name":"Content2","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9664},{"config_name":"Content3","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9665},{"config_name":"Content1","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"1","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9663}],"size":[[250,250],[300,250],[336,280],"fluid"],"ad_unit_rebid":null},{"id":55140,"name":"us.cartaosusbrasil.com.br_display_5","type":"display","used":0,"idDiv":"div-gpt-ad-5982271588136-0","configs":[{"config_name":"Content2","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9664},{"config_name":"Content3","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"0","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9665},{"config_name":"Content1","contains":[],"device":"all","drift":"1","except_pages":[],"is_default":"1","not_contains":[],"only_pages":[],"segmentation_pages":"all","sizes":["300x250","336x280","728x90","160x600","300x50","320x100","320x50","300x100","970x250","970x90","468x60","300x600","250x250","234x60","200x200","180x150","125x125","120x600","120x240","120x60","88x31","fluid"],"title":"Ads","id_config":9663}],"size":[[250,250],[300,250],[336,280],"fluid"],"ad_unit_rebid":null},{"id":55132,"name":"us.cartaosusbrasil.com.br_video_1","type":"video","used":0,"idDiv":"div-gpt-ad-1054500883108-0","configs":[],"size":[[250,250],[300,250],[336,280],"fluid"],"ad_unit_rebid":null},{"id":55135,"name":"us.cartaosusbrasil.com.br_web_stories_1","type":"web_stories","used":0,"idDiv":"div-gpt-ad-2872196515506-0","configs":[],"size":[[250,250],[300,250],[336,280],"fluid"],"ad_unit_rebid":null}],"trackingEvents":[],"push":{"key":{"id_push_domain_key":1803,"public_key":"BFFHf4EKzureOqeS3L2gRPZvDIYgg98Ynuety5F0DyQ_PWFBtjVHV9Fshh0AYFqfBc8gkFfJ60oaxARVLDLepyM"},"prompts":[]}}),SendWebPush.#Te}#me(){try{return SendWebPush.#Le()}catch(t){return this.#Re("debug","erro erro_076",t),{}}}async#_e(){this.#e.markInitStart();try{if(this.#ve()){//!this.#urlIsBlocked() && && !this.#checkFraud()
this.#y.monitorActivationTriggers();const t=this.#Pe();t||(this.#je(),setInterval((()=>this.#je()),100),this.#m.startTrafficCheck());const e="dev"!==this.app_env?`https://cdn.sendwebpush.com/sendwebpush/server_services/${this.#P}/style.css?v=${this.#j}`:`${window.location.origin}/style.css?v=${this.#j}`;this.#De(e),this.#m.startWebPush(),this.#xe(),this.#E.start(),t||this.#tt||this.#r.show(),2356==this.dataSWP.idDomain&&this.#m.loadClarity(),this.#e.start(),this.#k.start(),this.#h.watchStuck(),await this.#m.loadGtag(),this.#m.whenCountryOrTimeout().then((()=>this.#m.loadGTM())).catch((t=>this.#Re("debug","erro erro_201",t))),this.#Oe()}}catch(t){this.#Re("debug","erro erro_001",t)}}#Pe(){try{if(this.dataSWP.statusOpenOutsideWebView){const t=navigator.userAgent||"";if(!/(FBAN|FBAV|FB_IAB|Instagram|Line|WhatsApp|Snapchat|Twitter|TikTok|wv|Telegram|TG|TDesktop|TelegramAndroid|TelegramiOS)/i.test(t)&&void 0===this.window.TelegramWebviewProxy&&void 0===this.window.TelegramWebview)return!1;if(/iPhone|iPad|iPod/i.test(t))return!1;const e=document.createElement("a");e.id="openChrome",e.textContent="Abrir no Chrome",e.style.display="none",document.head.appendChild(e),document.getElementById("openChrome").addEventListener("click",(e=>{e.preventDefault();/Android/i.test(t)&&this.#e.handoffToken().then((t=>{const e=new URL(window.location.href);t&&!e.hash?e.hash=`swp_wv=${t}`:t&&e.searchParams.set("swp_wv",t);const i=e.toString(),s=`intent://${e.host}${e.pathname}${e.search}${e.hash}#Intent;scheme=${e.protocol.replace(":","")};S.browser_fallback_url=${encodeURIComponent(i)};end`;this.#Ie("webview",`abrindo no navegador: ${s}`);try{location.href=s}catch(t){this.#Ie("webview","abrir no navegador falhou",t)}}))})),document.getElementById("openChrome").click();let i=!1;return["pointerdown","pointermove","scroll"].forEach((t=>document.addEventListener(t,(t=>{i||(this.#r.show(),i=!0,this.#je(),setInterval((()=>this.#je()),100),this.#m.startTrafficCheck())})))),!0}return!1}catch(t){this.#Re("debug","erro erro_002",t)}}#je(){try{if(this.#et)return void(this.#tt=!0);this.#p.evaluateObserved();const t=this.document.querySelectorAll('div.send-web-push-ads:not([printed="1"])');let e=[];t.forEach(((t,i)=>{t.setAttribute("printed",1);let s=t.getAttribute("type")??"display";e.filter((t=>"video"==t.type)).length&&(s="display");const r=t.getAttribute(SendWebPush.#Me),o=this.#y.getAdUnitForDiv(s,r);o&&(o.type=s??o.type,t.setAttribute("id",o.idDiv),e.push({...o,blockMarker:r??null,isManualDiv:!0,configs:Array.isArray(o.configs)?[...o.configs]:o.configs}))}));const i=this.dataSWP.adUnitAutomatic.filter((t=>0==t.used&&!1!==t.activated));i.forEach((t=>{t.used=1})),e=e.concat(i.map((t=>({...t,configs:Array.isArray(t.configs)?[...t.configs]:t.configs})))),this.#it+=e.length,this.#it||this.#tt||"loading"===this.document.readyState||(this.#tt=!0),e.length>0&&this.#Ne(e)}catch(t){this.#Re("debug","erro erro_003",t)}}#Ne(t,e=0){if("function"==typeof this.googletag.pubads)try{const e={display:t=>this.#w.defineDisplay(t),interstitial:t=>this.#w.defineInterstitial(t),fixed:t=>this.#w.defineFixed(t),anchor:t=>this.#w.defineAnchor(t),sticky_right:t=>this.#f.defineStickyRight(t),sidebar:t=>this.#w.defineSidebar(t),rewarded:t=>this.#d.define(t),video_in_image:this.#qe,video:this.#Fe,chatbot:this.#Be};this.googletag.cmd.push((async()=>{try{this.#ze(t,e),this.#st||(this.#st=!0,t.some((t=>t.slot||t.extraSlots?.length))||(this.#tt=!0)),this.#$e(),await this.#Ue(t)}catch(t){this.#Re("debug","erro erro_147",t)}finally{this.#We(t)}}))}catch(t){this.#Re("debug","erro erro_004",t)}else this.#He(t,e)}#He(t,e){if(this.#pt)return void this.#Ge("info","erro erro_146","gpt.js indisponivel - slots nao criados (bloqueio-confirmado)");if(e>=1e3){const e=this.googletag||{},i=void 0!==e.apiReady||"function"==typeof e.defineSlot||"object"==typeof e.enums,s=this.window.swpAdBlocksState,r=i?"googletag-incompleto":s?.detected?"adblock-detectado":s?"sem-adblock":"sonda-nao-rodou";return this.#Ge("info","erro erro_146",`gpt.js indisponivel - slots nao criados (${r})`),void this.googletag.cmd.push((()=>{"function"==typeof this.googletag.pubads&&(this.#Ge("info","erro erro_146","gpt.js chegou depois do teto - slots criados pela fila do GPT"),this.#Ne(t))}))}setTimeout((()=>{this.#Ne(t,e+1)}),e<50?0:20)}#ze(t,e){t.forEach((t=>{if(this.#y.verifyAdUnitConfigs(t),t.isBlocked)return;this.#T.applyToSlot(t);const i=e[t.type];if(i){try{t.slot=i.call(this,t)}catch(e){this.#Re("debug","erro erro_148",`handler ${t.type}/${t.idDiv}: ${e}`),t.slot=null}for(const e of[t.slot,...t.extraSlots??[]])e&&this.#kt.set(e,t);this.#b.register(t)}else this.#Ge("info","erro erro_141",`type sem handler: ${t.type}`)}))}#$e(){this.#b.monitorVisibility(),this.#Ve(),this.googletag.setConfig({disableInitialLoad:!0,singleRequest:!0,centering:!0}),this.googletag.enableServices()}async#Ue(t){await this.#C.awaitData(),await this.#v.apply(),this.#t.applyPps(),this.#Ye(t),this.#Qe(t)}#We(t){try{const e=t.flatMap((t=>[t.slot,...t.extraSlots??[]])).filter(Boolean);e.length&&this.#_.dispatch(t,e)}catch(t){this.#Re("debug","erro erro_142",t)}}static#Me="data-swp-block";#Ke(t){try{return Array.isArray(t.configs)?t.configs.find((t=>!this.#Xe(t)&&!this.#Je(t))):t.configs}catch(t){this.#Re("debug","erro erro_095",t)}}#qe(t){try{let e=0;const i=30,s=setInterval((()=>{const r=t.configs?.element_custom?`${t.configs.element_custom}, `:"";let o=this.document.querySelector(`${r}.featured-image, .post_thumb, .cm-featured-image`);if(o)return clearInterval(s),void this.#Ze(o,!1,t);++e>=i&&clearInterval(s)}),1e3)}catch(t){this.#Re("debug","erro erro_009",t)}}#Fe(t){try{var e=this.document.getElementById(t.idDiv);this.#Ze(e,!0,t)}catch(t){this.#Re("debug","erro erro_010",t)}}#Ze(t,e,i){const s=setInterval((async()=>{if(!this.#z){this.#z=!0,clearInterval(s);try{const s=new SendWebPush.#ti(this);await s.loadScriptVideo(t,e,i)}catch(t){this.#Re("debug","erro erro_144",t)}finally{this.#z=!1}}}),500)}#ei(){if(void 0!==this.#bt)return this.#bt;try{const t=this.window.location.hostname;if(!t.includes("."))return this.#bt=null;const e=this.#ii(t),i=e?`.${e}`:null;return this.#bt=i&&this.#si(i)?i:null}catch(t){return this.#Re("debug","erro erro_097",t),this.#bt=null}}#si(t){const e="swp-rd-probe";try{this.document.cookie=`${e}=1; domain=${t}; path=/; SameSite=Lax`;const i=this.document.cookie.split(";").some((t=>t.trim().startsWith(e+"=")));return this.document.cookie=`${e}=; domain=${t}; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT`,i}catch(t){return!1}}#ri(){try{const t=this.#vt;this.#vt=[];for(const e of t)if("function"==typeof e)try{e()}catch(t){}else this.#oi(...e)}catch(t){this.#Re("debug","erro erro_102",t)}}#ni(){return"full"===this.#lt}#Ye(t){try{const e=this.#ai(),i=this.#Q.length?this.#Q:[e],s={id_post_wp:this.#N,utm_source:this.#K,broadcast:this.#Ae("utm_track_broadcast"),utm_campaign:i,utm_content:this.#X,utm_medium:this.#Y,utm_term:this.#J,swp_campaigns:e,article:this.#W?.value??"",track_utm:`${e}_${this.#q}`,utm_campaign_medium:`${e}_${this.#q}`},r={};Object.entries(s).forEach((([t,e])=>{r[t]=Array.isArray(e)?(e.length?e:[""]).map((t=>this.#ci(SendWebPush.#hi(t)))):this.#ci(SendWebPush.#hi(e))})),r.swp_campaigns=this.#ci(SendWebPush.#hi(this.#q));const o=this.#v.bucket();null!==o&&(r.swp_vid_bucket=String(o));for(const[t,e]of Object.entries(this.#T.targeting()))t in r||(r[t]=e.map((t=>this.#ci(SendWebPush.#hi(t)))));"dev"==this.app_env&&(r.test="refresh"),this.#Ct=r,this.googletag.setConfig({targeting:r});const n=this.window.location.origin+this.window.location.pathname;this.googletag.setConfig({adsenseAttributes:{page_url:n}}),t.forEach((t=>this.#S.applyTargeting(t)))}catch(t){this.#Re("debug","erro erro_015",t)}}#ai(){try{let t=this.#Ae("utm_campaign");return t?this.#oi("swp-track-campaign",t,1,"day"):t=this.#di("swp-track-campaign"),t}catch(t){this.#Re("debug","erro erro_016",t)}}#li(t){try{this.#kt.delete(t),this.#Lt.delete(t),this.#Rt.delete(t),this.#Tt.delete(t),this.googletag.destroySlots([t])}catch(t){this.#Re("debug","erro erro_145",t)}}#Ve(){try{if(this.#Pt)return;this.#Pt=!0;const t=this.googletag.pubads();t.addEventListener("slotRequested",(t=>this.#ui(t)));try{const t=()=>this.#gi();this.window.addEventListener("pagehide",t),this.document.addEventListener("visibilitychange",(()=>{"hidden"===this.document.visibilityState&&t()}))}catch(t){this.#Re("debug","erro erro_160",t)}t.addEventListener("slotResponseReceived",(t=>this.#pi(t))),t.addEventListener("slotRenderEnded",(t=>this.#mi(t))),t.addEventListener("impressionViewable",(t=>this.#yi(t)))}catch(t){this.#Re("debug","erro erro_018",t)}}#ui(t){try{this.#Rt.delete(t.slot);const e=this.#kt.get(t.slot);if(!e)return;this.#Lt.set(t.slot,this.#fi()),this.#wi(e,{slot_requested:1,is_refresh:this.#b.isRefresh(t.slot)})}catch(t){this.#Re("debug","erro debug_xxxx",t)}}#pi(t){try{this.#Lt.delete(t.slot);const e=this.#Rt.get(t.slot),i=this.#Rt.delete(t.slot),s=this.#kt.get(t.slot);if(!s)return;s.bid_disabled||this.#vi(s,1,0);const r=t.slot.getResponseInformation?.();this.#wi(s,{ad_request:1,served_at_response:r?1:0,served_at_response_backfill:r&&null==r.lineItemId?1:0,unanswered_answered:i?1:0,age_ms:i?this.#_i(e):0})}catch(t){this.#Re("debug","erro erro_124",t)}}#mi(t){this.#Z=!0;const e=this.#kt.get(t.slot);if(e&&t.slot===e.slot)try{t.isEmpty||"interstitial"!==e.type||this.#e.trackInterstitialReady(e,t.slot),t.isEmpty||this.#o.release(e.idDiv),t.isEmpty?this.#bi(e):(!e.isEmpty&&t.isBackfill||"dev"==this.app_env)&&this.#Si(e)}catch(t){this.#Re("debug","erro erro_017",t)}try{this.#_.onRenderEnded(t)}catch(t){this.#Re("debug","erro erro_158",t)}if(e)try{e.isEmpty||!t.isBackfill||e.bid_disabled||this.#vi(e,0,1),!e.isEmpty&&t.isBackfill&&this.#wi(e,{responses_served:1,impression:SendWebPush.#Et.includes(e.type)?0:1}),e.isEmpty||this.#wi(e,{is_backfill_ckeck_off:1})}catch(t){this.#Re("debug","erro erro_125",t)}}#yi(t){try{this.#ht&&t.slot===this.#ht&&(this.#ct=!0,this.#Ci("ad_opened"));const e=this.#kt.get(t.slot);e&&this.#wi(e,{impression_viewable:1}),this.#u.grantInterstitial(t.slot)}catch(t){this.#Re("debug","erro erro_126",t)}}#fi(){try{return this.window.performance?.now?.()??Date.now()}catch(t){return Date.now()}}#Ai(t){try{if(!t||this.#Tt.has(t))return;const e=this.#kt.get(t);if(!e||!SendWebPush.#Et.includes(e.type))return;this.#Tt.add(t),this.#wi(e,{impression:1}),"interstitial"===e.type&&this.#k.onShown(),this.#E.overlayShown(),this.#u.grantInterstitial(t)}catch(t){this.#Re("debug","erro erro_162",t)}}#_i(t){return"number"!=typeof t?0:Math.max(0,Math.round(this.#fi()-t))}#gi(){try{if(0===this.#Lt.size)return;const t=Array.from(this.#Lt.entries());this.#Lt.clear(),t.forEach((([t,e])=>{const i=this.#kt.get(t);i&&(this.#wi(i,{requested_unanswered:1,age_ms:this.#_i(e)}),this.#Rt.set(t,e))})),this.#i.flush()}catch(t){this.#Re("debug","erro erro_197",t)}}#wi(t,e={}){this.#e.recordBlock(t,e);try{const{ad_request:i=0,responses_served:s=0,slot_requested:r=0,is_backfill_ckeck_off:o=0,served_at_response:n=0,served_at_response_backfill:a=0,requested_unanswered:c=0,unanswered_answered:h=0,impression:d=0,impression_viewable:l=0,is_refresh:u=0,not_requested_frequency:g=0,granted:p=0,age_ms:m=0}=e,y={},f=t=>{t&&Object.entries(t).forEach((([t,e])=>{y[t]=Array.isArray(e)?e:[e]}))};f(t.slot?.getConfig?.("targeting")),f(this.googletag.getConfig("targeting"));const w={id_ad_unit:t.id,uri:this.window.location.pathname,referer:this.#M,device:this.#I,ad_request:i,responses_served:s,slot_requested:r,is_backfill_ckeck_off:o,served_at_response:n,served_at_response_backfill:a,requested_unanswered:c,unanswered_answered:h,impression:d,impression_viewable:l,is_refresh:u,not_requested_frequency:g,granted:p,age_ms:m,targetings:y,topic_id:"analytics-key-values",version:this.#D};this.#i.send(w,{method:"post",headers:{"Content-Type":"application/json"},mode:"cors",keepalive:!0})}catch(t){this.#Re("debug","erro erro_085",t)}}#vi(t,e,i,s=0,r=0,o=0,n=0){try{this.#Ie("price-rules",`id_ad_unit=${t?.id} ad_request=${e} responses_served=${i} response_received=${s}`);const a=t.bid_step>0,c=this.#S.rules?.[t.id]??null;if(c&&a){const t={id_price_rule:c.id_price_rule,ad_request:e,responses_served:i,response_received:s,render_total:r,render_empty:o,viewable:n,topic_id:"price-rules",version:this.#D};this.#i.send(t,{method:"post",headers:{"Content-Type":"application/json"},mode:"cors",keepalive:!0})}else if(c){const t={id_price_rule:c.id_price_rule,bid:c.bid,ad_request:e,responses_served:i,response_received:s,render_total:r,render_empty:o,viewable:n,topic_id:"price-rules",version:this.#D};this.#i.send(t,{method:"post",headers:{"Content-Type":"application/json"},mode:"cors",keepalive:!0})}}catch(t){this.#Re("debug","erro erro_020",t)}}#bi(t){try{if(!0===this.#ki(t))return;"sticky_right"===t.type&&this.#f.closeStickyRight()}catch(t){this.#Re("debug","erro erro_021",t)}}#Si(t){try{"rewarded"===t.type?"quiz"!=t.configs?.trigger&&this.#l.mount(t):"interstitial"===t.type&&(this.#U=!0)}catch(t){this.#Re("debug","erro erro_022",t)}}#Ei(t){try{if(!t)return;const e=[t,...t.querySelectorAll("[id]")];for(const t of e){const e=this.#b.slotData.get(t.id);e&&(this.#b.slotData.delete(t.id),e.slot&&this.#li(e.slot))}}catch(t){this.#Re("debug","erro erro_150",t)}}#Ti(){try{const t="cdn.sendwebpush.com";document.querySelectorAll("script[src],link[rel='stylesheet'][href]").forEach((e=>{e.src?.includes(t)||e.href?.includes(t)||e.remove()})),document.querySelectorAll("style").forEach((t=>t.remove()))}catch(t){this.#Re("debug","erro erro_027",t)}}#Be(t){try{this.#Ti();const e=t.configs?.name_assistant,i=`https://cdn.sendwebpush.com/uploads/google-ad-manager-ad-unit-type-has-value/${t.configs?.photo_assistant}`,s=this.document.createElement("div");s.className="swp-phone",s.setAttribute("role","application"),s.setAttribute("aria-label","Tela de conversa estilo WhatsApp"),this.document.body.className="swp-body",this.document.head.className="swp-head";const r=this.document.createElement("header");r.className="swp-topbar",r.innerHTML=`\n                <div class="swp-avatar" aria-hidden="true"></div>\n                <div class="swp-title">\n                    <div class="swp-name">${e}\n                        <span class="swp-badge" title="Verificado" aria-label="Verificado">\n                            <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 16.2l-3.5-3.5 1.4-1.4L9 13.4l7.1-7.1 1.4 1.4z"/></svg>\n                        </span>\n                    </div>\n                    <div class="swp-status">online</div>\n                </div>\n            `;const o=this.document.createElement("main");o.id="chat",o.className="swp-chat",o.setAttribute("aria-live","polite"),o.innerHTML='\n                <section class="swp-messages" id="messages">\n                </section>\n            ';const n=this.document.createElement("footer");n.className="swp-composer",n.innerHTML='\n                <div class="swp-input-wrap">\n                    <input id="text" class="swp-input" placeholder="Mensagem…" autocomplete="off" disabled="true">\n                    <button id="send" class="swp-send" disabled="true">\n                        <svg class="swp-icon" viewBox="0 0 24 24"><path d="M2 21l21-9L2 3v7l15 2-15 2z"/></svg>\n                    </button>\n                </div>\n            ',s.append(r,o,n),this.document.body.textContent="",this.document.body.append(s),document.querySelector(".swp-avatar").style.backgroundImage=`url(${i})`;new MutationObserver((()=>{"0px"!==document.body.style.getPropertyValue("padding-bottom")&&document.body.style.setProperty("padding-bottom","0px","important")})).observe(document.body,{attributes:!0,attributeFilter:["style"]}),this.#Li(t)}catch(t){this.#Re("debug","erro erro_028",t)}}#Li(t){try{const e=document.getElementById("messages");let i=0;const s=1,r=t.configs.quiz,o=this;let n=0;const a=()=>(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),c=document.getElementById("chat");function h(t,o="swp-right",n){if(!t.trim())return;const c=document.createElement("div");if(c.className=`swp-msg ${o}`,c.innerHTML=`<p>${t}</p>${n?`<p class="swp-p"><a href="${n}" class="swp-btn-blue">${r.messageFinal.textButton}</a></p>`:""}<div class="meta"><time>${a()}</time></div>`,e.appendChild(c),"swp-right"===o&&i%s==0){const t=document.createElement("div");t.innerHTML='<div class="ad-card" role="region" aria-label="Anúncio"><div class="send-web-push-ads"></div></div>',e.appendChild(t)}i++}function d(){if(n>=r.questions.length)return;const t=r.questions[n],i=document.createElement("div");i.className="swp-msg swp-left",i.innerHTML=`<p>${t.question}</p><div class="options">${t.options.map((t=>`<p><button class="swp-btn-blue">${t}</button></p>`)).join(" ")}</div><div class="meta"><time>${a()}</time></div>`,e.appendChild(i),i.querySelectorAll(".swp-btn-blue").forEach((t=>{t.addEventListener("click",(async()=>{h(t.textContent,"swp-right"),n++,document.querySelectorAll(".options").forEach((t=>t.style.display="none")),document.querySelector(".swp-status").textContent="digitando...",await o.#Ri(3e3),n<r.questions.length?d():h(r.messageFinal.message,"swp-left",r.messageFinal.link),document.querySelector(".swp-status").textContent="online"}))}))}new MutationObserver((()=>{c.scrollTo({top:c.scrollHeight,behavior:"smooth"})})).observe(c,{childList:!0,subtree:!0}),d()}catch(l){this.#Re("debug","erro erro_029",l)}}static#Pi=2e3;static#ji(t){return"quiz"===t?.trigger&&"1"===String(t?.quiz_wait_ad_ready??"")}static#Di(t){if("string"!=typeof t||!/^https?:\/\//i.test(t)||/^https?:\/\/[\/\\]/i.test(t))return!1;if(Array.from(t).length>SendWebPush.#Pi)return!1;try{const e=new URL(t);return"http:"===e.protocol||"https:"===e.protocol}catch(t){return!1}}async#xi(t){try{const e=this.window.crypto?.subtle;if(!e)return null;const i=(new TextEncoder).encode(String(t)),s=await e.digest("SHA-256",i);return Array.from(new Uint8Array(s)).map((t=>t.toString(16).padStart(2,"0"))).join("")}catch(t){return null}}static#Oi(t,e={}){const i=document.createElement(t);return Object.entries(e).forEach((([t,e])=>{"style"===t?i.style.cssText=e:"className"===t?i.className=e:i[t]=e})),i}static#Ii(t){const e=String(t?.color_text_button??"").trim();return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(e)?e:"#fff"}#Qe(t){try{for(const e of t||[])e?.notRequestedFrequency&&(e.notRequestedFrequency=!1,this.#wi(e,{not_requested_frequency:1}))}catch(t){this.#Re("debug","erro erro_200",t)}}#Ci(t,e=null){const i=SendWebPush.#Mi[t];i&&this.#Ni(i,{},e)}static#Mi={gate_shown:"gate_shown",cta_click:"cta_click",ad_opened:"ad_opened",reward_granted:"reward_granted"};#Ni(t,e={},i=null,s=t){this.#e.rewardedStep(t,e,s)}#qi(t){try{const e=SendWebPush.#Fi(t?.quiz_final_image);if(!e)return null;const i=SendWebPush.#Oi("div",{className:"swp-quiz-final-image-wrap"});return i.appendChild(SendWebPush.#Oi("img",{className:"swp-quiz-final-image",src:e,alt:""})),i}catch(t){return this.#Re("debug","erro erro_194",t),null}}static#Fi(t){const e=String(t??"").trim();return e?/^(https?:|data:)/i.test(e)?e:`https://cdn.sendwebpush.com/uploads/google-ad-manager-ad-unit-type-has-value/${e}`:null}#Ie(t,...e){if(this.#rt){try{console.log(`%c[SWP ${t}]`,"color:#15704C;font-weight:bold",...e)}catch(t){}try{const i=this.window.__SWP_DEBUG=this.window.__SWP_DEBUG??[];i.length<500&&i.push(`${Math.round(this.window.performance?.now()??0)}ms [${t}] `+e.map((t=>{if("string"==typeof t)return t;try{return JSON.stringify(t)}catch(e){return String(t)}})).join(" "))}catch(t){}}}#ki(t){try{if(t.has_price_rule&&!t.bid_disabled){if(this.#ot&&"rewarded"===t.type)return!1;if(!0===this.#Bi(t))return!0;const e=this.#S.ladderSteps(t)>0&&(t.bid_step??0)>0,i=this.#S.settingsFor(t);if(i.rebid_enabled&&t.ad_unit_rebid&&!e)return this.#zi(t);if(i.retry_no_bid&&(!t.ad_unit_rebid||e))return this.#$i(t)}else this.#o.replace(t)}catch(t){this.#Re("debug","erro erro_035",t)}}#Bi(t){const e=t.ladder_root??t.id,i=(t.bid_step??0)+1,s=this.dataSWP.sizesRebid?.find((e=>e.id===t.ad_unit_rebid)),r=this.#S.rules?.[e]?.bid;if(null!==(i<=this.#S.ladderSteps(t)&&r?this.#S.ladderBid(r,i,t):null)&&s){const r={...s};return r.idDiv=t.idDiv,r.size=t.size,r.bid_step=i,r.ladder_root=e,r.ladder_type=t.ladder_type??t.type,r.ad_unit_rebid=t.ad_unit_rebid,r.has_price_rule=!1,r.skipLazy=!0,r.frequencyRearmed=t.frequencyRearmed,t.configs&&!Array.isArray(t.configs)?SendWebPush.#Ui(r,t):Array.isArray(r.configs)||(r.configs=[r.configs]),this.#li(t.slot),this.#Ne([r]),!0}return this.#S.ladderSteps(t)>0&&this.#Ie("cascata","cascata encerrada —",i>this.#S.ladderSteps(t)?`degraus esgotados (${this.#S.ladderSteps(t)})`:r?s?"sem floor válido abaixo do último degrau":"sem bloco de rebid provisionado":"slot sem regra de preço principal",this.#S.settingsFor(t).retry_no_bid?"→ retry sem floor":"→ substituição de ad unit"),!1}#zi(t){const e=this.dataSWP.sizesRebid?.find((e=>e.id===t.ad_unit_rebid));if(!e)return;const i={...e};return i.idDiv=t.idDiv,i.size=t.size,i.skipLazy=!0,i.frequencyRearmed=t.frequencyRearmed,t.configs&&!Array.isArray(t.configs)?SendWebPush.#Ui(i,t):Array.isArray(i.configs)||(i.configs=[i.configs]),this.#li(t.slot),this.#Ne([i]),!0}#$i(t){const e={...t};return e.bid_disabled=!0,e.skipLazy=!0,Array.isArray(e.configs)||(e.configs=[e.configs]),this.#li(t.slot),this.#Ne([e]),!0}static#Ui(t,e){t.configs=e.configs,t.configResolvedBy=e.configResolvedBy,t.blockMarker=e.blockMarker,t.isManualDiv=e.isManualDiv}async#Wi(){try{const t=this.#di("swp-country");if(t)return t;const e=await this.#A.geo;return e?(this.#oi("swp-country",e,2,"day"),e):"BR"}catch(t){return this.#Re("debug","erro erro_036",t),"BR"}}#Ce(){try{const t=this.#Ae("utm_source",!1),e=this.#Ae("gclid",!1),i=this.#Ae("fbclid",!1),s=this.#Ae("ttclid",!1);let r="";if(0!=t){let e=["facebook","google","tiktok","instagram","pinterest","youtube","x","taboola","twitter","mgid"].find((e=>t.includes(e)));e&&(r=e)}if(""!=r||0==e&&0==i&&0==s||(0!=e?r="google":0!=i?r="facebook":0!=s&&(r="tiktok")),""==r){let t=document.referrer.toLowerCase(),e=[{name:"facebook",alias:"facebook"},{name:"instagram",alias:"instagram"},{name:"twitter",alias:"twitter"},{name:"t.co",alias:"twitter"},{name:"x.com",alias:"x"},{name:"pinterest",alias:"pinterest"},{name:"fb.com",alias:"facebook"},{name:"youtube",alias:"youtube"},{name:"google",alias:"google"},{name:"tiktok",alias:"tiktok"},{name:"taboola",alias:"taboola"},{name:"mgid.com",alias:"mgid"}].find((e=>t.includes(e.name)));e&&(r=e.alias)}if(""!=r)return this.#oi("swp-last-referer",r,7,"day"),r;const o=this.#di("swp-last-referer");return r=o||"direct",r}catch(t){this.#Re("debug","erro erro_037",t)}}#Hi(t){try{const e=this.document.getElementsByTagName("script");for(let i=e.length;i--;)if(e[i].src===t)return!0;return!1}catch(t){this.#Re("debug","erro erro_046",t)}}#Ae(t,e=!0,i=null){try{const s=i||this.window.location.href,r=new RegExp(`[?&]${t}=([^&#]*)`,"i").exec(s);let o=0;const n=this.#di(t);if(r){try{o=decodeURIComponent(r[1])}catch{o=r[1]}this.#oi(t,o,30,"day")}else 0!==n&&null!=n&&e&&(o=n);return(o??0).toString()}catch(t){return this.#Re("debug","erro erro_049",t),"0"}}#Ee(t,e=!0,i=null){try{const s=i||this.window.location.href,r=new RegExp(`[?&]${t}=([^&#]*)`,"ig"),o=[...s.matchAll(r)].map((t=>{try{return decodeURIComponent(t[1])}catch{return t[1]}})).filter((t=>""!==t&&null!=t));if(o.length)return this.#oi(t,o.join("|"),30,"day"),o;const n=this.#di(t);return e&&0!==n&&null!=n?n.toString().split("|").filter((t=>""!==t)):[]}catch(t){return this.#Re("debug","erro erro_116",t),[]}}#be(){try{const t=["iphone","ipad","android","blackberry","nokia","opera mini","windows mobile","windows phone","iemobile","tablet","mobi"],e=navigator.userAgent.toLowerCase();return t.some((t=>e.includes(t)))}catch(t){this.#Re("debug","erro erro_050",t)}}#Gi(t){try{let e=this.document.body||this.document.documentElement;if(!e)return;e.insertBefore(t,e.firstChild)}catch(t){this.#Re("debug","erro erro_051",t)}}#Oe(){try{const t=this.#Vi()&&!parseInt(this.#di("notificationFraud"))?1:0,e=this.#Vi()?1:0,i=this.#di("swp-analytics");t&&this.#oi("notificationFraud",1,2,"day");const s="tab_id";let r=0;const o=()=>sessionStorage.getItem(s)?0:(sessionStorage.setItem(s,this.#Yi()),1);try{this.#ni()?r=o():"pending"===this.#lt&&this.#vt.push((()=>{this.#ni()&&o()}))}catch(t){}const n=this.#di("swp-ses");if(this.#oi("swp-ses",1,30,"minute"),i){const t=parseInt(this.#di("swp-analytics-pagination"),10)+1;this.#oi("swp-analytics-pagination",t,1,"hour")}else this.#oi("swp-analytics",1,1,"day");const a=[...this.dataSWP.adUnitAutomatic,...this.dataSWP.adUnitsManual].filter((t=>t.used>0)).map((t=>t.id)),c=(t,e)=>t.length>1?t:e,h={id_domain:this.dataSWP.idDomain,unique:i?0:1,tab_session:r,session:n?0:1,device:this.#I,click_fraud_unique:t,click_fraud_page_views:e,id_post_wp:this.#N,utm_source:c(this.#K,this.#B),utm_campaign:c(this.#Q,this.#F),utm_term:c(this.#J,this.#V),utm_content:c(this.#X,this.#H),uri:this.window.location.pathname,referer:this.#M,utm_medium:c(this.#Y,this.#q),topic_id:"analytics",id_ad_units:a,utm_push:this.#Ae("utm_push",!1),content_category:this.#t.contentCategoryId(),version:this.#D};this.#Ie("pps","categoria do artigo no analytics",h.content_category),this.#i.send(h);const d=this.#Ae("utm_broadcast",!1),l=this.#Ae("utm_subscriber",!1);if(0!=d||0!=l){const t={topic_id:"broadcasts",utm_broadcast:d,utm_subscriber:l,version:this.#D};this.#i.send(t)}this.#m.startGoogleAnalytics()}catch(t){this.#Re("debug","erro erro_052",t)}}#Qi(){try{const t=this.window.location.search||"",e=this.window.location.pathname||"",i=t.match(/[?&]src=(\d+)/);if(i)return{id:i[1],source:"url-src"};const s=t.match(/[?&]p=(\d+)/);if(s)return{id:s[1],source:"url-query"};const r=(this.document.querySelector('link[rel="shortlink"]')?.getAttribute("href")||"").match(/[?&]p=(\d+)/);if(r)return{id:r[1],source:"shortlink"};const o=this.document.querySelectorAll('link[rel="alternate"][type="application/json"]');for(const t of o){const e=(t.getAttribute("href")||"").match(/\/wp-json\/wp\/v\d+\/(?:posts|pages)\/(\d+)/);if(e)return{id:e[1],source:"wp-json"}}const n=(this.document.querySelector('link[rel="canonical"]')?.getAttribute("href")||"").match(/[?&]p=(\d+)/);if(n)return{id:n[1],source:"canonical"};const a=(this.document.querySelector('meta[property="og:url"]')?.getAttribute("content")||"").match(/[?&]p=(\d+)/);if(a)return{id:a[1],source:"og-url"};const c=(this.document.body?.className??"").match(/(?:postid-|page-id-)(\d+)/);if(c)return{id:c[1],source:"body-class"};const h=this.document.querySelector('article[id^="post-"]'),d=(h?.id||"").match(/^post-(\d+)/);if(d)return{id:d[1],source:"article-id"};const l=t=>4===String(t).length&&Number(t)>=1900&&Number(t)<=2099,u=e.match(/^\/(\d{2,})(?:[/-]|$)/);return u&&!l(u[1])?{id:u[1],source:"url-path"}:{id:"0",source:"miss"}}catch(t){return this.#Re("debug","erro erro_055",t),{id:"0",source:"error"}}}#Se(){const t=this.#Qi();this.#N=t.id,this.#St=t.source,this.#Ki()}#Ki(){try{const t=["url-path"],e=()=>"0"===this.#N||t.includes(this.#St);if(!e())return;if("loading"!==this.document.readyState)return;this.document.addEventListener("DOMContentLoaded",(()=>{try{if(!e())return;const t=this.#Qi();if(!t||"0"===t.id)return;if(t.id===this.#N)return;if(this.#N=t.id,this.#St=t.source,!this.#Ct)return;this.#Ct.id_post_wp=this.#N,this.googletag.cmd.push((()=>{this.googletag.setConfig({targeting:this.#Ct})}))}catch(t){this.#Re("debug","erro erro_118",t)}}),{once:!0})}catch(t){this.#Re("debug","erro erro_119",t)}}static#Xi(t){try{return 0===t||null==t||""===t?null:JSON.parse(t)}catch(t){return null}}static#ke(t){try{const e=String(t??"");if(!/^https?:\/\//i.test(e))return e;return new URL(e).hostname.toLowerCase()||e}catch{return String(t??"")}}#ii(t){try{const e=String(t??"").trim();if(!e)return e;const i=e.replace(/\.+$/,""),s=/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//.test(i);let r;try{r=new URL(s?i:`https://${i}`).hostname.toLowerCase()}catch{return e}const o=["com.br","co.uk","co.jp","co.in","co.nz","co.za","com.au","com.mx","com.ar","com.ve","ac.uk","gov.uk","org.uk","co.id","co.th","co.kr","co.il"];for(const t of o)if(r===t||r.endsWith(`.${t}`))return r.split(".").slice(-(t.split(".").length+1)).join(".");return r.split(".").slice(-2).join(".")}catch(t){this.#Re("debug","erro erro_079",t)}}static#Ji(t=!1){try{const e={timeZone:"America/Sao_Paulo",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1};t&&(e.second="2-digit");const i={};new Intl.DateTimeFormat("en-CA",e).formatToParts(new Date).forEach((t=>{i[t.type]=t.value}));const s="24"===i.hour?"00":i.hour;return t?`${i.year}-${i.month}-${i.day} ${s}:${i.minute}:${i.second}`:`${i.year}${i.month}${i.day}${s}${i.minute}`}catch(t){return null}}static#Zi=new Set(["swp-interstitial","swp-rewarded-executed","swp-analytics-pagination","notificationFraud","sendwebpush-cf-total-clicks","sendwebpush-cf-confirmed"]);#oi(t,e,i,s,r={}){try{if("pending"===this.#lt)return void this.#vt.push([t,e,i,s,r]);if(!this.#ni())return;const o=new Date,n={day:864e5,hour:36e5,minute:6e4}[s];if(n){o.setTime(o.getTime()+i*n);const s="expires="+o.toUTCString(),a=SendWebPush.#Zi.has(t)?null:r.domain??this.#ei();a&&t.startsWith("swp-")&&!this.#_t.has(t)&&(this.#_t.add(t),this.document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`);const c=r.sameSite??(a?"Lax":null),h=r.secure??(!!a&&"https:"===this.window.location.protocol);let d=`${t}=${encodeURIComponent(e)};${s};path=/`;a&&(d+=`;domain=${a}`),c&&(d+=`;SameSite=${c}`),h&&(d+=";Secure"),this.document.cookie=d}}catch(t){this.#Re("debug","erro erro_057",t)}}#di(t){try{const e=`${t}=`,i=String(this.document.cookie||"").split(";");for(let t of i)if(t=t.trim(),t.startsWith(e)){const i=t.substring(e.length);try{return decodeURIComponent(i)}catch(t){return i}}return 0}catch(t){return this.#Re("debug","erro erro_058",t),0}}static#ts={only:{field:"only_pages",match:"exact",blockOnMatch:!1},except:{field:"except_pages",match:"exact",blockOnMatch:!0},contains:{field:"contains",match:"partial",blockOnMatch:!1},not_contains:{field:"not_contains",match:"partial",blockOnMatch:!0}};#Xe(t){try{const e=this.window.location.pathname,i=e+(this.window.location.search||""),s=t?.page_type;if("only_posts"===s&&"post"!==this.#es())return!0;if("only_pages"===s&&"page"!==this.#es())return!0;if((Array.isArray(t?.exclude_contains)?t.exclude_contains:[]).some((t=>"string"==typeof t&&""!==t.trim()&&i.includes(t.trim()))))return!0;const r=t?.segmentation_pages;if(!r||"all"===r)return!1;if("only_posts"===r)return"post"!==this.#es();if("only_pages"===r)return"page"!==this.#es();const o=SendWebPush.#ts[r];if(!o)return!1;const n=Array.isArray(t[o.field])?t[o.field]:[];if(!n.length)return!1;const a="partial"===o.match?n.some((t=>i.includes(t))):n.includes(e);return o.blockOnMatch?a:!a}catch(t){return this.#Re("debug","erro erro_059",t),!1}}#es(){const t=this.document.body.classList;if(t.contains("single-post"))return"post";if(t.contains("page")||t.contains("page-template-default"))return"page";const e=[...t].find((t=>t.startsWith("single-")&&"single-post"!==t));return e?e.replace("single-","custom-post-type: "):"other"}#Je(t){try{return!("all"===t.device||!t?.device||t.device===this.#I)}catch(t){return this.#Re("debug","erro erro_060",t),!1}}#ye(){try{const t=Array.isArray(this.dataSWP?.urlsBlocks)?this.dataSWP.urlsBlocks:[];if(!t.length)return!1;const e="dev"===this.app_env?this.dataSWP.url:this.window.location.hostname,i=SendWebPush.#is(e,this.window.location.pathname),s=null!==i&&t.includes(i);return s&&this.#Ie("politica",`URL bloqueada pela equipe (${i}): nenhum bloco nesta pagina`),s}catch(t){return this.#Re("debug","erro erro_229",t),!1}}static#is(t,e){let i=String(e??"");try{i=decodeURIComponent(i)}catch(t){}i=i.toLowerCase().replace(/\/+$/,"");const s=String(t??"").trim().toLowerCase().replace(/^www\./,"");return s&&i?s+i:null}#ve(){try{if(void 0!==this.#At)return this.#At;const t=SendWebPush.#ss(this.dataSWP.url),e=this.window.location.hostname.replace("www.",""),i=SendWebPush.#rs(this.dataSWP.url,this.window,this.app_env);return i!==SendWebPush.#os?(i===SendWebPush.#ns&&this.#Ge("info","erro erro_211",`dominio aceito so pela regra parcial: host=${e} / configurado=${t}`),this.#At=!0,!0):(this.#Re("info","erro erro_074",`dominio nao autorizado: host=${e} / configurado=${t}`),this.#At=!1,!1)}catch(t){this.#Re("debug","erro erro_061",t)}}static#ss(t){return String(t??"").toLowerCase().replace("www.","")}static#os=0;static#ns=1;static#as=2;static#rs(t,e,i){if("dev"===i)return SendWebPush.#as;const s=SendWebPush.#ss(t),r=String(e?.location?.hostname??"").toLowerCase().replace("www.","");return s===r?SendWebPush.#as:s.includes(r)?SendWebPush.#ns:SendWebPush.#os}static boot(t,e,i){try{const s=t.__swpAds||(t.__swpAds={instance:null,level:-1,pending:[],loadBound:!1}),r=SendWebPush.#Le(),o=SendWebPush.#rs(r?.url,t,"{app_env}"),n=SendWebPush.#ss(r?.url),a=()=>{const r=s.instance,n=new SendWebPush(t,e,i);return Object.assign(s,{instance:n,level:o}),t.Sendwebpush=n,r&&o!==SendWebPush.#os&&n.noteExtraTag(r.dataSWP?.url),n};return s.instance&&s.level===SendWebPush.#as?(s.instance.noteExtraTag?.(n),s.instance):o===SendWebPush.#as?a():(s.pending.push({level:o,configured:n,create:a}),"complete"===e.readyState?SendWebPush.#cs(s):s.loadBound||(s.loadBound=!0,t.addEventListener("load",(()=>SendWebPush.#cs(s)),{once:!0})),s.instance)}catch(s){if(t.__swpAds?.instance)return t.__swpAds.instance;const r=new SendWebPush(t,e,i);return t.Sendwebpush=r,r}}static#cs(t){try{const e=t.pending.splice(0);if(!e.length)return;let i=e.reduce(((t,e)=>e.level>t.level?e:t));if(t.instance&&t.level>=i.level?i=null:i.create(),t.level===SendWebPush.#os)return;for(const s of e)s!==i&&t.instance?.noteExtraTag?.(s.configured)}catch(t){}}noteExtraTag(t){try{const e=SendWebPush.#ss(t),i=e===SendWebPush.#ss(this.dataSWP?.url);this.#Ge("info","erro erro_210",i?"tag duplicada na pagina: mesmo dominio":`tag de outro dominio na pagina: configurado=${e||"vazio"}`)}catch(t){}}#fe(t=3e3){try{if(!this.#ve())return;fetch("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",{method:"HEAD",mode:"no-cors",cache:"no-store"}).catch((()=>{this.#pt||(this.#pt=!0,this.#e.recordAdblock(!0,null),this.#Ge("info","erro erro_173","sem anuncio nesta pageview: bloqueador detectado - processamento encerrado"))})),setTimeout((()=>{try{this.window.swpAdBlocksState={detected:this.#pt,gpt_absent:"function"!=typeof this.googletag?.pubads,at_ms:t},this.#e.recordAdblock(this.#pt,this.window.swpAdBlocksState.gpt_absent),this.#Ie("adblock","sondas",this.window.swpAdBlocksState)}catch(t){this.#Re("debug","erro erro_168",t)}}),t)}catch(t){this.#Re("debug","erro erro_168",t)}}async#hs(t,e=5e3,i=null){try{if(this.#Hi(t))return;return new Promise((s=>{let r=!1;const o=()=>{r||(r=!0,s())};let n=document.createElement("script");n.src=t,n.async=!1,i&&n.setAttribute("fetchpriority",i),n.onload=o,n.onerror=o,setTimeout(o,e);var a=document.getElementsByTagName("head")[0];a.insertBefore(n,a.firstChild)}))}catch(t){this.#Re("debug","erro erro_062",t)}}#xe(){try{let e=null,i=!1;const s="sendwebpush-cf-total-clicks";var t=parseInt(this.#di(s));const r=t=>"IFRAME"===t?.tagName&&/google_ads_iframe_|aswift_/.test(t.id),o=(t,e)=>{i=!0},n=(t,i)=>{r(t)&&t!==e&&(e=t,o(t,i))},a=()=>{if(i){const r=e.id;this.#Ie("ad-click",`registrado em ${r}`),i=!1,t=(parseInt(this.#di(s),10)||0)+1,this.#oi(s,t,2,"day"),this.#ds("ad_click",r)}},c=()=>{"visible"!==document.visibilityState&&a()};window.addEventListener("beforeunload",a),document.addEventListener("visibilitychange",c),window.addEventListener("pagehide",(()=>n(document.activeElement,"pagehide"))),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&n(document.activeElement,"visibilitychange")})),document.addEventListener("click",(t=>{const e=t.target.closest("a");e&&e.href&&e.href.includes(this.window.location.hostname)&&(i=!1)})),setInterval((()=>n(document.activeElement,"interval")),100)}catch(t){this.#Re("debug","erro erro_063",t)}}#Vi(){try{const i="sendwebpush-cf-confirmed",s="sendwebpush-cf-total-clicks",r=2,o=3;var t=parseInt(this.#di(s)),e=parseInt(this.#di(i));return t>=o&&!e&&(e=1,this.#oi(i,1,r,"day")),1==e}catch(t){this.#Re("debug","erro erro_064",t)}}#ls(t,e=12){try{const i=String(t??""),s=t=>{let e=2166136261;for(let s=0;s<i.length;s++)e^=i.charCodeAt(s)^t,e=Math.imul(e,16777619)>>>0;return("00000000"+e.toString(16)).slice(-8)};let r=s(0);return e>8&&(r+=s(170).slice(0,4)),r.slice(0,e)}catch(t){this.#Re("debug","erro erro_065",t)}}#Ri(t){try{return new Promise((e=>setTimeout(e,t)))}catch(t){return this.#Re("debug","erro erro_077",t),Promise.resolve()}}#ds(t,e,i=null){try{let s=this.dataSWP.trackingEvents;if(0==s.length)return;let r=null!=i?.id?i:null;if(!r){let t=e.split("/").pop();t=t.replace(/_\d+$/,""),r=this.dataSWP.adUnitsManual.find((e=>e.name===t||e.idDiv===t))||this.dataSWP.adUnitAutomatic.find((e=>e.name===t||e.idDiv===t))}if(!r)return;window.dataLayer.push({event:"ad_click"==t?"gpt_ad_click":"gpt_ad_impression",adUnitPath:r.name,domain:this.dataSWP.url,campaignId:this.#F}),s.forEach((e=>{const i={tracking_id:e.id,topic_id:"tracking",event_type:t,ad_unit_id:r.id,version:this.#D};this.#i.send(i)}))}catch(t){this.#Re("debug","erro erro_067",t)}}#ci(t){try{return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_./]/g,"").toLowerCase()}catch(t){this.#Re("debug","erro erro_081",t)}}#us(t,e,i=0){let s=!1,r=0,o=null;const n=()=>{if(s)return;const t=Date.now();if(i&&t-r<i)return void(o||(o=setTimeout((()=>{o=null,n()}),i-(t-r))));o&&(clearTimeout(o),o=null),s=!0,r=t;const a=()=>{s=!1,e()};"function"==typeof this.window.requestAnimationFrame?this.window.requestAnimationFrame(a):a()};return t.addEventListener("scroll",n,{passive:!0}),n}#gs(t,e){try{var i=t.getBoundingClientRect(),s=this.window.innerHeight||this.document.documentElement.clientHeight,r=i.height*e,o=i.top<s&&i.bottom>0,n=i.top+r<s&&i.bottom>r;return o&&n}catch(t){this.#Re("debug","erro erro_068",t)}}#Yi(t=!0){try{const e=this.window.crypto?.randomUUID?this.window.crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(t=>(+t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+t/4).toString(16)));return t?`id_${e}`:e}catch(e){this.#Re("debug","erro erro_069",e);const i=`${Date.now()}-${Math.random().toString(36).slice(2)}`;return t?`id_${i}`:i}}static#hi(t,e=40){return"string"!=typeof t&&(t=String(t??"")),t.substring(0,e)}async#De(t,e=5e3){try{return new Promise((i=>{let s=!1;const r=()=>{s||(s=!0,i())};let o=document.createElement("link");o.rel="stylesheet",o.href=t,o.onload=r,o.onerror=r,setTimeout(r,e),document.head.appendChild(o)}))}catch(t){this.#Re("debug","erro erro_072",t)}}#ue(){try{const t=3,e=t=>!!t&&(!(!this.#jt||!t.includes(this.#jt))||/sendwebpush/i.test(t)),i=(i,s,r,o)=>{if(!this.#It){this.#It=!0;try{if(this.#Ot>=t)return;if(!e(`${r||""} ${o||""}`))return void this.#Ie("crash","descartado (nao atribuivel)",i,s,o);if(/Error invoking postMessage: Java (object is gone|bridge method invocation error)/i.test(String(s??"")))return void this.#Ie("crash","descartado (ponte da WebView do app)",i,s,o);const n=`${s}|${o}`;if(this.#xt.has(n))return;this.#xt.add(n),this.#Ot++,this.#Ie("crash",i,s,o),this.#Re("crash",i,{message:String(s??"").slice(0,500),source:String(o??"").slice(0,300),stack:String(r??"").slice(0,2e3)})}finally{this.#It=!1}}};this.window.addEventListener("error",(t=>{i("onerror",t?.message,t?.error?.stack,t?.filename?`${t.filename}:${t.lineno}:${t.colno}`:"")})),this.window.addEventListener("unhandledrejection",(t=>{const e=t?.reason,s=e instanceof Error?e.message:String(e);i("unhandledrejection",s,e?.stack,"")}))}catch(t){this.#Re("debug","erro erro_128",t)}}#Ge(t,e,i=""){try{const t=`${e}|${i}`;if(this.#Mt.has(t))return 1;this.#Mt.add(t)}catch(t){}return this.#Re(t,e,i)}static#ps=new Set(["erro erro_056","erro erro_104","erro erro_122","erro erro_123","erro erro_127","erro erro_175","erro erro_172","erro erro_206"]);#ms(t){if(null===t||"object"!=typeof t)return String(t);if(!(t instanceof Error||"message"in t&&("stack"in t||"name"in t)))return JSON.stringify(t);let e=`${t.name||"Error"}: ${t.message??""}`;try{const i=this.#jt?this.#jt.split("?")[0]:null,s=i?String(t.stack||"").split("\n").find((t=>t.includes(i))):null;s&&(e+=" @ "+s.trim().replace(/^at\s+/,"").replace(/\?[^\s):]*(?=:\d)/,""))}catch(t){}return e}#Re(t,e,i=""){if(this.#rt)try{console.log(t,e,i)}catch(t){}if(this.#pt&&SendWebPush.#ps.has(e))return 1;""!==i&&this.#e.recordError(t,e);try{if(""!==i&&"debug"!==this.app_env){const s=this.#ms(i),r={id_domain:this.dataSWP?.idDomain??0,event_category:t,event_description:e,error:s,url:this.window.location.href,version:this.#j,topic_id:"sendwebpush-logs"};this.#i.send(r)}}catch(i){if(this.#rt)try{console.log(i)}catch(t){}}return 1}static#Nt=class t{static#ys={596:["tecnologia","technology","tech","informatica","computacao","computing"],464:["ciencia","ciencias","science"],223:["saude","salud","health","bemestar","bienestar","wellness","fitness"],286:["medicina","medicine","medicinal"],483:["esportes","deportes","sports","futebol","futbol","football","soccer"],391:["financas","finanzas","finance","economia","economy","investimentos","inversiones","investing"],52:["negocios","business","empresas"],379:["noticias","news","atualidades","actualidad"],386:["politica","politics"],432:["entretenimento","entretenimiento","entertainment","famosos","celebridades","celebrities","fofocas","chismes"],552:["moda","fashion","estilo","style"],553:["beleza","belleza","beauty"],1:["carros","coches","autos","cars","automoveis","automoviles","automotive","veiculos"],27:["motos","motocicletas","motorcycles"],653:["viagem","viagens","viajes","travel","turismo","tourism"],216:["culinaria","cocina","cooking","receitas","recetas","recipes","gastronomia","food","comida"],132:["educacao","educacion","education","estudos","ensino"],123:["carreira","carrera","careers","empregos","empleo","trabajo","jobs","concursos"],186:["familia","family","relacionamentos","relaciones","relationships"],274:["casa","hogar","home","decoracao","decoracion","garden","jardinagem","jardineria"],422:["pets","mascotas","animais","animales","animals"],680:["games","juegos","jogos","gaming","videogames","videojuegos"],324:["cinema","cine","movies","filmes","peliculas","film"],640:["series","tv","televisao","television"],338:["musica","music","audio"],453:["religiao","religion","espiritualidade","espiritualidad","spirituality","fe"],456:["horoscopo","horoscope","astrologia","astrology","signos"],473:["compras","shopping","ofertas","promocoes"],441:["imoveis","inmuebles","realestate","bienesraices"]};static#fs={596:["smartphone","celular","aplicativo","app","android","iphone","software","aparelho","digital","internet","inteligenciaartificial","notebook"],464:["pesquisa","estudo","cientistas","descoberta","espaco","nasa","planeta","universo"],223:["dieta","exercicio","emagrecer","nutricao","bemestar","academia"],286:["sintomas","tratamento","medico","doenca","remedio","vacina","diagnostico","exame"],483:["gol","partida","campeonato","jogador","time","copa","placar","tecnico","rodada","clube","atleta","torneio"],391:["investimento","juros","inflacao","renda","imposto","dolar","banco","poupanca","salario","beneficio","auxilio","pagamento","inss","fgts","saque"],52:["empresa","mercado","negocio","faturamento","ceo","startup","setor"],379:["governo","prefeitura","policia","acidente","vitima","operacao","delegado","morreu"],386:["presidente","ministro","deputado","senador","congresso","eleicao","votacao","partido","senado","stf"],432:["ator","atriz","cantor","cantora","novela","programa","apresentador","bbb","reality","affair","namoro"],552:["look","roupa","tendencia","colecao","desfile","vestido","calca"],553:["maquiagem","cabelo","pele","batom","skincare","unhas"],1:["carro","motor","veiculo","modelo","seminovo","volante","cambio","suv","picape"],653:["destino","hotel","praia","passagem","roteiro","viajar","passeio","aeroporto","voo"],216:["receita","ingredientes","preparo","colher","xicara","forno","massa","tempero","sabor"],132:["aluno","escola","professor","prova","enem","vestibular","curso","faculdade","matricula","bolsa"],123:["vaga","emprego","concurso","edital","inscricao","candidato","contratacao","curriculo","carteira"],186:["filho","mae","pai","casamento","namorado","familia","gravidez","bebe"],274:["casa","cozinha","quarto","movel","limpeza","planta","jardim","sofa","geladeira"],422:["cachorro","gato","pet","animal","raca","veterinario","filhote"],680:["jogo","gameplay","console","playstation","xbox","nintendo","jogador","lancamento"],324:["filme","elenco","diretor","estreia","trailer","cinema","personagem"],640:["serie","temporada","episodio","netflix","streaming","trama"],338:["musica","album","show","turne","banda","single","clipe"],456:["signo","horoscopo","previsao","astral","mercurio","lua","aries","leao"],473:["desconto","promocao","preco","oferta","comprar","frete","loja"]};static#ws=null;static#vs=null;static#_s(){if(t.#ws)return t.#ws;const e={};for(const[i,s]of Object.entries(t.#ys))for(const r of s)e[t.#bs(r)]=[i];return t.#ws=e,e}static#Ss(){if(t.#vs)return t.#vs;const e={},i=(i,s,r)=>{const o=t.#bs(i);o.length>=3&&!e[o]&&(e[o]=[s,r])};for(const[e,s]of Object.entries(t.#ys))for(const t of s)i(t,e,2);for(const[e,s]of Object.entries(t.#fs))for(const t of s)i(t,e,1);return t.#vs=e,e}static#bs(t){return String(t??"").normalize("NFD").replace(/[̀-ͯ]/g,"").replace(/[^a-z0-9]/gi,"").toLowerCase()}#Cs;#As=!1;#ks;constructor(t){this.#Cs=t}applyPps(...t){return this.#Es(...t)}contentCategoryId(...t){return this.#Ts(...t)}#Ls(e){try{return t.#bs(e)}catch(t){return this.#Cs.#Re("debug","erro erro_112",t),""}}#Es(){try{if(this.#As)return;const e=this.#Cs.dataSWP.pps??{};if(!1===e.enabled)return;const i=this.#Rs(),s=i&&e.categoryMap?e.categoryMap[i]:null,r=i?t.#_s()[i]:null,o=(s?.content?.length?s.content:r?.length?r:Array.isArray(e.content)?e.content:[]).filter(Boolean),n=(s?.audience?.length?s.audience:Array.isArray(e.audience)?e.audience:[]).filter(Boolean);if(!o.length&&!n.length)return;this.#As=!0,this.#Cs.googletag.setConfig({pps:{taxonomies:{IAB_AUDIENCE_1_1:{values:n.map(String)},IAB_CONTENT_2_2:{values:o.map(String)}}}})}catch(t){this.#Cs.#Re("debug","erro erro_113",t)}}#Ts(){try{const e=this.#Rs();if(!e)return null;const i=this.#Cs.dataSWP?.pps?.categoryMap?.[e]?.content,s=(Array.isArray(i)&&i.length?i:t.#_s()[e])?.[0];return null!=s&&""!==s?String(s):null}catch(t){return this.#Cs.#Re("debug","erro erro_227",t),null}}#Rs(){try{const e=e=>!(!e||!t.#_s()[e]&&!this.#Cs.dataSWP?.pps?.categoryMap?.[e]),i=this.#Cs.document.querySelector('meta[property="article:section"]')?.content;if(i){const t=this.#Ls(i);if(e(t))return t}const s=(this.#Cs.document.body?.className??"").match(/category-([a-z0-9_-]+)/i);if(s){const t=this.#Ls(s[1]);if(e(t))return t}return this.#Ps()}catch(t){this.#Cs.#Re("debug","erro erro_114",t)}return null}#Ps(){try{if(void 0!==this.#ks)return this.#ks;if("loading"===this.#Cs.document.readyState)return null;const e=4e3,i=8,s=1.5,r=this.#Cs.document.querySelector('article, [itemprop="articleBody"], .entry-content, .post-content, main')??this.#Cs.document.body,o=[[4,this.#Cs.document.title],[4,this.#Cs.document.querySelector("h1")?.textContent],[3,this.#Cs.document.querySelector('meta[name="description"]')?.content],[1,r?.textContent]],n=t.#Ss(),a={};for(const[t,i]of o){if(!i)continue;const s=String(i).slice(0,e).normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().split(/[^a-z0-9]+/);for(const e of s){if(e.length<3)continue;const i=n[e];i&&(a[i[0]]=(a[i[0]]??0)+t*i[1])}}const c=Object.entries(a).sort(((t,e)=>e[1]-t[1])),[h,d]=c[0]??[],l=c[1]?.[1]??0;let u=null;return d>=i&&d>=l*s&&(u=t.#bs(t.#ys[h]?.[0])||null),this.#ks=u,this.#Cs.#Ie("pps","categoria por conteudo",u,c.slice(0,3)),u}catch(t){return this.#Cs.#Re("debug","erro erro_132",t),this.#ks=null,null}}};static#de=class t{static#js=new Set(["id_config","status","trigger","device","is_default","frequency","element_custom","element_custom_offset","segmentation_pages","only_pages","except_pages","contains","not_contains","page_type","exclude_contains","quiz_experiment"]);static#Ds=new Set(["idDomain","url","experiments","networkCode","adUnitRoot","childNetworkCode"]);static#xs=/^[a-z0-9]{1,8}$/;static#Os=/^pub_exp[a-z0-9_]{0,13}$/;static#Is=/^[a-z0-9_]{1,40}$/;static#Ms=10;#Cs;#Ns=null;#qs=new Map;#Fs={};#Bs={};constructor(t){this.#Cs=t}applyDomain(){return this.#zs()}applyToSlot(...t){return this.#$s(...t)}targeting(){return this.#Us()}#Ws(){if(this.#Ns)return this.#Ns;const e=[],i=this.#Cs.dataSWP?.experiments;if(Array.isArray(i))for(const s of i.slice(0,t.#Ms)){const i=Number(s?.id);if(!Number.isInteger(i)||i<=0||!s?.target||!Array.isArray(s?.arms))continue;const r=s.arms.filter((e=>t.#xs.test(String(e?.code??""))&&Number.isInteger(Number(e?.from))&&Number.isInteger(Number(e?.to))));if(!r.length)continue;const o=t.#Os.test(String(s?.key??""))?String(s.key):null;e.push({id:i,kind:String(s.target.kind??""),idConfig:s.target.id_config??null,key:o,arms:r})}return this.#Ns=e,e}#Hs(){if(this.#Cs.#ni()){let t=null;try{t=this.#Cs.window.localStorage.getItem("swp_vid")}catch(t){}if(!t){const e=this.#Cs.#di("swp-vid");e&&0!==e&&(t=String(e))}if(t)return[String(t),"visitor"]}return[this.#Cs.#e.pageviewId(),"pageview"]}#Gs(e){if(this.#qs.has(e.id))return this.#qs.get(e.id);let i=null;const[s,r]=this.#Hs(),o=this.#Cs.#ls(`${s}:${e.id}`,8),n=o?parseInt(o,16)%100:NaN;if(Number.isInteger(n)){const s=e.arms.find((t=>n>=Number(t.from)&&n<=Number(t.to)));if(s){const r=s.overrides&&"object"==typeof s.overrides&&!Array.isArray(s.overrides)?s.overrides:{},o=e.key&&t.#Is.test(String(s.gam_value??""))?String(s.gam_value):null;i={code:String(s.code),overrides:r,gamValue:o}}}return this.#qs.set(e.id,i),this.#Cs.#Ie("experiment",`id=${e.id} bucket=${n} braco=${i?.code??"fora"} identidade=${r}`),i}#Vs(t,e){if(this.#Fs[t.id]!==e.code&&(this.#Fs[t.id]=e.code,this.#Cs.#e.recordExperiments({...this.#Fs}),t.key&&e.gamValue)){const i=this.#Bs[t.key]||(this.#Bs[t.key]=[]);i.includes(e.gamValue)||i.push(e.gamValue),this.#Cs.#Ie("experiment",`targeting ${t.key}=${i.join(",")}`),this.#Ys()}}#Us(){const t={};for(const[e,i]of Object.entries(this.#Bs))t[e]=[...i];return t}#Ys(){try{const t=this.#Cs.#Ct;if(!t)return;let e=!1;for(const[i,s]of Object.entries(this.#Bs))t[i]=[...s],e=!0;e&&this.#Cs.googletag.setConfig({targeting:t})}catch(t){this.#Cs.#Re("debug","erro erro_231",t)}}static#Qs(e,i){const s={...e};for(const[e,r]of Object.entries(i))t.#js.has(e)||(null===r||["string","number","boolean"].includes(typeof r))&&(s[e]=null===r?"":String(r));return s}static#Ks(t,e){const i=t=>["string","number","boolean"].includes(typeof t);if(i(t)&&i(e)){if("number"==typeof t){const t=Number(e);return""!==e&&Number.isFinite(t)?t:void 0}return"boolean"==typeof t?!0===e||1===e||"1"===e||"true"===e:String(e)}}#$s(e){try{if(!e?.configs||Array.isArray(e.configs))return;const i=e.configs.id_config;if(null==i||""===i)return;for(const s of this.#Ws()){if("ad_unit_config"!==s.kind||String(s.idConfig)!==String(i))continue;const r=this.#Gs(s);r&&(e.configs=t.#Qs(e.configs,r.overrides),Object.prototype.hasOwnProperty.call(r.overrides,"quiz_manual")&&(e.configs.quiz_experiment=`${s.id}:${r.code}`),this.#Vs(s,r))}}catch(t){this.#Cs.#Re("debug","erro erro_231",t)}}#zs(){try{const e=this.#Cs.dataSWP;if(!e||"object"!=typeof e)return;for(const i of this.#Ws()){if("domain"!==i.kind)continue;const s=this.#Gs(i);if(s){for(const[i,r]of Object.entries(s.overrides)){const s=String(i).split(".");if(s.length>2||t.#Ds.has(s[0]))continue;let o=e;if(2===s.length&&(o=e[s[0]],!o||"object"!=typeof o||Array.isArray(o)))continue;const n=s[s.length-1];if(!Object.prototype.hasOwnProperty.call(o,n))continue;const a=t.#Ks(o[n],r);void 0!==a&&(o[n]=a)}this.#Vs(i,s)}}}catch(t){this.#Cs.#Re("debug","erro erro_231",t)}}};static#qt=class t{static#Xs(t){return null==t||""===t||"0"===String(t)?null:String(t)}static#Js=60;static#Zs=3e5;static#tr=500;static#er=45;static#ir=new Set(["fill","empty","view","ref","bid"]);static#sr=20;static#rr=20;static#or={gate_shown:"gate",cta_click:"cta",ad_opened:"open",reward_granted:"grant",lead_submit:"lead_ok",lead_skip:"lead_skip",destination_go:"dest"};static#nr={push_soft_shown:"push_soft",push_soft_allow:"push_soft_ok",push_soft_deny:"push_soft_no",push_prompt_shown:"push_prompt",push_allow:"push_ok",push_deny:"push_no",push_dismiss:"push_dismiss",push_subscribe_failed:"push_fail"};static#ar=new Set(["unsupported","granted","denied","default"]);#Cs;#cr=null;#hr=!1;#dr=new Map;#lr=null;#ur=!1;#gr=!1;#pr=!1;#mr=null;#yr=0;#fr=null;#wr={};#vr={};#_r={quiz_steps_total:null,quiz_max_step:null,max_scroll_pct:0,adblock:null,gpt_absent:null};#br="";#Sr=[];#Cr=new Set;#Ar=[];#kr=0;#Er=new Set;#Tr=null;#Lr;#Rr=!1;#Pr=!1;#jr=null;#Dr=!1;#xr=null;#Or=!1;#Ir=!1;#Mr=!1;#Nr=null;#qr=!1;#Fr=0;#Br=!1;#zr=0;#$r=null;#Ur=null;#Wr;#Hr=null;#Gr=!1;constructor(t){this.#Cs=t}start(...t){return this.#Vr(...t)}markInitStart(...t){return this.#Yr(...t)}onPagehide(...t){return this.#Qr(...t)}onRestore(...t){return this.#Kr(...t)}onVisibility(...t){return this.#Xr(...t)}recordAdblock(...t){return this.#Jr(...t)}recordBlock(...t){return this.#Zr(...t)}captureVisitor(...t){return this.#to(...t)}recordError(...t){return this.#eo(...t)}navType(...t){return this.#io(...t)}onceEvent(...t){return this.#so(...t)}quizClosed(...t){return this.#ro(...t)}rearm(...t){return this.#oo(...t)}requestFlush(...t){return this.#no(...t)}rewardedStep(...t){return this.#ao(...t)}timelineAdd(...t){return this.#co(...t)}takeDelta(...t){return this.#ho(...t)}trackInterstitialReady(...t){return this.#do(...t)}recordExperiments(t){return this.#lo(t)}pageviewId(){return this.#uo()}readHandoff(){return this.#go()}handoffToken(){return this.#po()}get granted(){return this.#Pr}get started(){return this.#hr}#lo(t){try{if(!t||"object"!=typeof t)return;this.#Hr={...t},this.#Gr=!0}catch(t){}}#uo(){return this.#cr??=this.#Cs.#Yi(!1),this.#cr}#go(){if(void 0!==this.#Wr)return this.#Wr;this.#Wr=null;try{const e=this.#Cs.window,i=new URL(e.location.href),s=/^#swp_wv=([^&#]*)$/.exec(i.hash),r=s?decodeURIComponent(s[1]):i.searchParams.get("swp_wv");if(null===r)return null;s?i.hash="":i.searchParams.delete("swp_wv");try{e.history.replaceState(e.history.state,"",i.toString().replace(/#$/,""))}catch(t){}const[o,n,a,c,h]=String(r).split("."),d=t=>/^[0-9a-z-]{8,64}$/i.test(String(t??""))?String(t):null,l=Date.now()-parseInt(h,36);if(!d(o)||!(l>=0&&l<t.#Zs))return null;this.#Wr={pv:d(o),vid:d(n),ses:d(a),idx:Math.max(0,parseInt(c,10)||0)}}catch(t){}return this.#Wr}async#po(){try{this.#_r.webview_handoff=1,this.#co("wvout");const e=t=>new Promise((e=>setTimeout(e,t))),i=this.#Cs.#fi()+t.#tr;try{await Promise.race([this.#Cs.#v.promise,e(t.#tr)])}catch(t){}for(this.#mo();!this.#xr&&this.#Cs.#fi()<i;)await e(50);const s=this.#xr||{};return this.#no(),[this.#uo(),this.#jr||"",s.session_id||"",s.session_pv_index||"",Date.now().toString(36)].join(".")}catch(t){return null}}#yo(){return"dev"===this.#Cs.app_env?"journey-dev":"journey"}#fo(){const t=this.#mr;return null===t?0:Math.max(0,Math.round(this.#Cs.#fi()-t))}#wo(t,e=1){try{this.#wr[t]=(this.#wr[t]||0)+e}catch(t){}}#co(e,i){try{if(this.#kr>=t.#Js)return;if(t.#ir.has(e)&&this.#kr>=t.#er)return;this.#kr++,this.#Ar.push(null==i?[this.#fo(),e]:[this.#fo(),e,i])}catch(t){}}#oo(t){try{const e=Number(t?.id);if(!Number.isInteger(e))return;const i=this.#vr[e]||(this.#vr[e]={});i.ra=(i.ra||0)+1,this.#co("rearm",e)}catch(t){}}#do(t,e){try{if(this.#dr.set(e,{slot:t,at:this.#Cs.#fi()}),this.#ur)return;this.#ur=!0,this.#Cs.document.addEventListener("click",(t=>{try{if(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const e=t.target?.closest?.("a[href]");if(!e||e.target&&"_self"!==e.target)return;const i=new URL(e.href,this.#Cs.window.location.href),s=this.#Cs.window.location;if(i.host!==s.host||i.pathname===s.pathname&&i.search===s.search)return;this.#lr=this.#Cs.#fi()}catch(t){}}),!0)}catch(t){}}#vo(){try{if(null===this.#lr||this.#Cs.#fi()-this.#lr>1e4)return;for(const[t,e]of this.#dr){if(this.#Cs.#Tt.has(t))continue;const i=Number(e.slot?.id);if(!Number.isInteger(i))continue;const s=this.#vr[i]||(this.#vr[i]={});s.ns=(s.ns||0)+1,e.slot.frequencyRearmed&&(s.rn=(s.rn||0)+1);const r=Math.min(3600,Math.round((this.#lr-e.at)/1e3));this.#co("no_show",[i,Math.max(0,r)])}}catch(t){}}#so(t,e,i){try{if(this.#Er.has(t))return;this.#Er.add(t),this.#wo(t),this.#co(e,i)}catch(t){}}#Yr(){this.#mr=this.#Cs.#fi()}#Vr(){try{if(this.#hr)return;if(this.#Cs.document.prerendering||"hidden"===this.#Cs.document.visibilityState){if(!this.#gr){this.#gr=!0;const t=()=>{this.#Cs.document.prerendering||"hidden"===this.#Cs.document.visibilityState||(this.#Cs.document.removeEventListener("prerenderingchange",t),this.#Cs.document.removeEventListener("visibilitychange",t),this.#pr=!0,this.#Vr())};this.#Cs.document.addEventListener("prerenderingchange",t),this.#Cs.document.addEventListener("visibilitychange",t)}return}const e=this.#Cs.window.location,i=String(e.pathname??"").slice(0,1024),s=[...Array.isArray(this.#Cs.dataSWP?.adUnitAutomatic)?this.#Cs.dataSWP.adUnitAutomatic:[],...Array.isArray(this.#Cs.dataSWP?.adUnitsManual)?this.#Cs.dataSWP.adUnitsManual:[]].filter((t=>t&&t.used>0)),r=Date.now();let o=null,n=null;try{const t=this.#Cs.window.sessionStorage,e=t.getItem("swp_jprev"),i=e?JSON.parse(e):null;i&&"object"==typeof i&&(o=i);const s=t.getItem("swp_jentry"),a=s?JSON.parse(s):null;a?.uri&&r-Number(a.at)<18e5&&(n=String(a.uri))}catch(t){}const a=this.#go();a&&!o&&(o={id:a.pv,uri:i});const c=(t,e)=>null==t||""===t?null:String(t).slice(0,e);this.#fr={uri:i,referer:this.#Cs.#M??null,device:this.#Cs.#I,utm_source:c(t.#Xs(this.#Cs.#B),200),utm_campaign:c(t.#Xs(this.#Cs.#F),200),build:this.#Cs.#j,prev_pageview_id:c(o?.id,64),prev_uri:c(o?.uri,1024),entry_uri:c(n,1024)??i,blocks_config:s.map((t=>[t.id,String(t.type??"")])),nav_type:this.#io()},this.#hr=!0,this.#Ur=e.pathname,this.#Ar.unshift([0,"enter",this.#Cs.#M??""],[0,"blocks",s.length]),this.#kr+=2,a&&this.#co("wvin"),"hidden"!==this.#Cs.document.visibilityState&&(this.#$r=this.#pr?this.#Cs.#fi():this.#mr??this.#Cs.#fi()),this.#pr&&this.#co("show");const h=this.#uo();this.#Cs.#A.whenStorageAllowed((()=>{this.#mo();try{const t=this.#Cs.window.sessionStorage;t.setItem("swp_jprev",JSON.stringify({id:h,uri:i})),t.setItem("swp_jentry",JSON.stringify({uri:n??i,at:r}))}catch(t){}})),this.#_o(),this.#bo(),this.#no()}catch(t){this.#Cs.#Ie("journey","falha ao iniciar",t)}}#no(){try{this.#Cs.#i.armFlush()}catch(t){}}#bo(){try{let t=null;const e=()=>{t=null;try{const t=this.#Cs.document.scrollingElement||this.#Cs.document.documentElement,e=this.#Cs.document.body,i=Math.max(this.#Cs.window.scrollY||0,t?.scrollTop||0,e?.scrollTop||0),s=Math.max(t?.scrollHeight||0,e?.scrollHeight||0),r=this.#Cs.window.innerHeight||t?.clientHeight||0;if(s<=0||r<=0)return;const o=Math.min(100,Math.max(0,Math.round(100*(i+r)/s)));o>this.#_r.max_scroll_pct&&(this.#_r.max_scroll_pct=o)}catch(t){}};this.#Cs.document.addEventListener("scroll",(()=>{null===t&&(t=setTimeout(e,250))}),{passive:!0,capture:!0}),e(),"complete"!==this.#Cs.document.readyState&&this.#Cs.window.addEventListener("load",e,{once:!0});const i=()=>this.#So();this.#Cs.window.addEventListener("popstate",i);const s=this.#Cs.window.history,r=s?.pushState;if("function"==typeof r&&!r.__swpJourney){const t=function(...t){const e=r.apply(this,t);try{i()}catch(t){}return e};t.__swpJourney=!0,s.pushState=t}}catch(t){this.#Cs.#Ie("journey","falha nos ouvintes",t)}}#So(){try{const t=this.#Cs.window.location.pathname;if(t===this.#Ur)return;this.#Ur=t,this.#wo("virtual_pv"),this.#co("vpv",String(t).slice(0,200))}catch(t){}}#io(){try{const t=this.#Cs.window.performance?.getEntriesByType?.("navigation")?.[0];if((Number(t?.activationStart)||0)>0)return"prerender";const e=t?.type;return["navigate","reload","back_forward","prerender"].includes(e)?e:null}catch(t){return null}}#Kr(){try{if(!this.#hr)return;this.#co("restore"),"hidden"!==this.#Cs.document.visibilityState&&null===this.#$r&&(this.#$r=this.#Cs.#fi()),this.#no()}catch(t){}}#Xr(){try{const t=this.#Cs.#fi();"hidden"===this.#Cs.document.visibilityState?null!==this.#$r&&(this.#zr+=t-this.#$r,this.#$r=null,this.#hr&&this.#co("hide")):null===this.#$r&&this.#hr&&(this.#$r=t,this.#co("show"))}catch(t){}}#Qr(){try{if(!this.#hr)return;this.#vo(),null!==this.#$r&&(this.#zr+=this.#Cs.#fi()-this.#$r,this.#$r=null),this.#co("exit"),this.#Br=!0}catch(t){}}#Co(){let t=this.#zr;return null!==this.#$r&&(t+=this.#Cs.#fi()-this.#$r),Math.max(0,Math.round(t))}#Zr(t,e){try{const i=Number(t?.id);if(!Number.isInteger(i))return;const s=t=>Number(e?.[t])||0,r=s("slot_requested"),o={rq:r,rf:r&&s("is_refresh")?r:0,an:s("ad_request"),fl:s("served_at_response"),rd:s("responses_served"),im:s("impression"),vw:s("impression_viewable"),fq:s("not_requested_frequency"),un:s("requested_unanswered")-s("unanswered_answered"),gr:s("granted"),ri:t?.frequencyRearmed?s("impression"):0},n=this.#vr[i]||(this.#vr[i]={});for(const[t,e]of Object.entries(o))e&&(n[t]=(n[t]||0)+e);if(o.rq&&!o.rf){const e=Number(t?.journey_floor);this.#co("bid",[i,Number(t?.bid_step)||0,Number.isFinite(e)?Math.round(100*e):-1])}o.rd&&this.#co("fill",i),o.an&&!o.fl&&this.#co("empty",i),o.vw&&this.#co("view",i),o.rf&&this.#co("ref",i),o.fq&&this.#co("freq",i),o.im&&SendWebPush.#Et.includes(t?.type)&&this.#co("shown",i)}catch(t){}}#Jr(t,e){try{const i=this.#_r;if(null!=t){const e=t?1:0;e&&1!==i.adblock&&this.#co("adblock"),i.adblock=Math.max(i.adblock??0,e)}if(null!=e){const t=e?1:0;t&&1!==i.gpt_absent&&this.#co("gpt_absent"),i.gpt_absent=Math.max(i.gpt_absent??0,t)}}catch(t){}}#ao(e,i={},s=e){try{const r=`step:${s}`;if(this.#Er.has(r))return;this.#Er.add(r);const o=Number.isFinite(Number(i?.step))?Number(i.step):null;if("step_view"===e){const t=this.#_r;null!==o&&(this.#Tr=o,(null===t.quiz_max_step||o>t.quiz_max_step)&&(t.quiz_max_step=o));const e=Number(i?.steps_total);return Number.isFinite(e)&&(null===t.quiz_steps_total||e>t.quiz_steps_total)&&(t.quiz_steps_total=e),this.#co("q_view",o),void("lead"===i?.step_type&&this.#Cs.#ni()&&(this.#wo("lead_shown"),this.#co("lead")))}if("quiz_answer"===e)return this.#wo("quiz_answers"),void this.#co("q_ans",[o,Number(i?.answer)||0]);const n=t.#or[e];if(!n)return;"reward_granted"===e&&(this.#Pr=!0),this.#wo(e),this.#co(n)}catch(t){}}#ro(){try{if(void 0!==this.#Lr)return;this.#Lr=this.#Tr,this.#wo("quiz_closed"),this.#co("q_close",this.#Tr)}catch(t){}}#eo(e,i){try{const s="crash"===e;s&&this.#wo("crashes");const r=(s?`crash:${i}`:String(i??"").replace(/^erro\s+/,"")).trim().slice(0,60);if(!r)return;if(this.#Cr.has(r)||this.#Cr.size>=t.#sr)return;this.#Cr.add(r),this.#Sr.push(r),this.#co("err",r)}catch(t){}}#_o(){try{let t=this.#Cs.window.swpJourneyQ;Array.isArray(t)||(t=this.#Cs.window.swpJourneyQ=[]);t.splice(0).forEach((t=>this.#Ao(t))),t.push=(...e)=>(e.forEach((t=>this.#Ao(t))),t.length)}catch(t){this.#Cs.#Ie("journey","fila do push indisponivel",t)}}#Ao(e){try{if(++this.#Fr>t.#rr)return;const i=String(e?.type??"");if("push_state"===i){const i=String(e?.state??"");if(!t.#ar.has(i)||null!==this.#Nr)return;return this.#Nr=i,void this.#co("push_state",i)}const s=t.#nr[i];if(!s)return;this.#wo(i),this.#co(s)}catch(t){}}#to(t,e){try{if(null!==this.#jr||!t)return;this.#jr=String(t),this.#Dr=!!e}catch(t){}}async#mo(){try{if(this.#xr||this.#Or)return;if(!this.#Cs.#ni())return;this.#Or=!0;try{await this.#Cs.#v.promise}catch(t){}const t={},e=this.#jr,i=this.#Cs.window.crypto?.subtle;if(e&&i){const s=await i.digest("SHA-256",(new TextEncoder).encode(`journey|${e}`));t.visitor_id=Array.from(new Uint8Array(s)).map((t=>t.toString(16).padStart(2,"0"))).join("").slice(0,32)}const s=t=>/^[0-9a-f-]{36}$/i.test(String(t??"")),r=this.#Cs.#di("swp-jses"),o=this.#go(),n=s(r)?String(r):s(o?.ses)?o.ses:this.#Cs.#Yi(!1);this.#Cs.#oi("swp-jses",n,30,"minute"),t.session_id=n;const a=String(this.#Cs.#di("swp-jidx")||""),c=`${n}:`,h=a.startsWith(c)?(parseInt(a.slice(c.length),10)||0)+1:o&&o.ses===n&&o.idx?o.idx+1:1;this.#Cs.#oi("swp-jidx",`${n}:${h}`,30,"minute"),t.session_pv_index=h;const d=String(SendWebPush.#Ji(!0)||"").slice(0,10);if(d){const e=String(this.#Cs.#di("swp-vfs")||"");let i;e&&"0"!==e?(t.is_new_visitor=e===d?1:0,i=e):this.#Dr?(t.is_new_visitor=0,i=`L${d}`):(t.is_new_visitor=1,i=d),this.#Cs.#oi("swp-vfs",i,730,"day"),t.first_pv_of_day=String(this.#Cs.#di("swp-jday")||"")===d||o?0:1,this.#Cs.#oi("swp-jday",d,1,"day")}const l=this.#ko();l&&(t.click=l),this.#xr=t,this.#no()}catch(t){this.#Cs.#Ie("journey","falha na identidade",t)}}#ko(){try{const t=new URLSearchParams(this.#Cs.window.location.search||""),e=t=>{const e=String(t??"").trim();return/^[A-Za-z0-9_\-.~+\/=]{4,500}$/.test(e)?e:null},i=Math.floor(Date.now()/1e3),s={domain:this.#Cs.#ei(),sameSite:"Lax",secure:"https:"===this.#Cs.window.location.protocol},r={};let o=null;for(const s of["gclid","gbraid","wbraid"]){const r=e(t.get(s));if(r){o={type:s,id:r,ts:i,landing:1};break}}if(o)this.#Cs.#oi("swp-gclk",`${o.type}|${o.ts}|${o.id}`,90,"day",s);else{const[t,i,s]=String(this.#Cs.#di("swp-gclk")||"").split("|");["gclid","gbraid","wbraid"].includes(t)&&e(s)&&/^\d{9,11}$/.test(i??"")&&(o={type:t,id:s,ts:parseInt(i,10),landing:0})}o&&(r.google=o);const n=t=>/^fb\.\d\.\d{12,14}\.[A-Za-z0-9_\-.~+\/=]{4,500}$/.test(String(t??""))?String(t):null,a=e(t.get("fbclid")),c=n(this.#Cs.#di("swp-fbc"));let h=null,d=0;a?(h=c&&c.endsWith(`.${a}`)?c:`fb.1.${Date.now()}.${a}`,d=1,this.#Cs.#oi("swp-fbc",h,90,"day",s)):h=c||n(this.#Cs.#di("_fbc"));const l=/^fb\.\d\.\d{12,14}\.\d{5,20}$/.test(String(this.#Cs.#di("_fbp")||""))?String(this.#Cs.#di("_fbp")):null;(h||l)&&(r.meta={landing:d},h&&(r.meta.fbc=h,r.meta.ts=Math.floor(parseInt(h.split(".")[2],10)/1e3)),l&&(r.meta.fbp=l));let u=null;const g=e(t.get("ttclid"));if(g)u={id:g,ts:i,landing:1},this.#Cs.#oi("swp-ttclk",`${i}|${g}`,90,"day",s);else{const[t,i]=String(this.#Cs.#di("swp-ttclk")||"").split("|");e(i)&&/^\d{9,11}$/.test(t??"")&&(u={id:i,ts:parseInt(t,10),landing:0})}u&&(r.tiktok=u);let p=null;const m=e(t.get("dclid"));if(m)p={id:m,ts:i,landing:1},this.#Cs.#oi("swp-dclk",`${i}|${m}`,90,"day",s);else{const[t,i]=String(this.#Cs.#di("swp-dclk")||"").split("|");e(i)&&/^\d{9,11}$/.test(t??"")&&(p={id:i,ts:parseInt(t,10),landing:0})}return p&&(r.dv360=p),Object.keys(r).length?r:null}catch(t){return this.#Cs.#Ie("journey","falha no click id",t),null}}#ho(){try{if(!this.#hr)return null;const t=t=>{const e={};let i=!1;for(const[s,r]of Object.entries(t||{}))r&&(e[s]=r,i=!0);return i?e:null},e=0===this.#yr,i=this.#Br,s=t(this.#wr),r={};for(const[e,i]of Object.entries(this.#vr)){const s=t(i);s&&(r[e]=s)}const o=Object.keys(r).length>0,n=this.#Cs.#lt,a=!!this.#xr&&!this.#Ir,c=a||!this.#Mr&&("denied"===n||i),h=null!==this.#Nr&&!this.#qr,d=void 0!==this.#Lr&&null!==this.#Lr&&!this.#Rr,l=this.#Gr&&null!==this.#Hr,u=this.#_r,g={time_on_page_ms:this.#Co()};u.max_scroll_pct&&(g.max_scroll_pct=u.max_scroll_pct),null!==u.quiz_steps_total&&(g.quiz_steps_total=u.quiz_steps_total),null!==u.quiz_max_step&&(g.quiz_max_step=u.quiz_max_step),null!==u.adblock&&(g.adblock=u.adblock),null!==u.gpt_absent&&(g.gpt_absent=u.gpt_absent),null!=u.webview_handoff&&(g.webview_handoff=u.webview_handoff);const p=`${g.max_scroll_pct??""}|${g.quiz_steps_total??""}|${g.quiz_max_step??""}|${g.adblock??""}|${g.gpt_absent??""}|${g.webview_handoff??""}`;if(!(e||i||s||o||this.#Sr.length||this.#Ar.length||a||c||h||d||l||p!==this.#br))return null;this.#yr++;const m={topic_id:this.#yo(),id_domain:this.#Cs.dataSWP?.idDomain??0,pageview_id:this.#uo(),seq:this.#yr,phase:i?"end":e?"start":"delta"};return e&&Object.assign(m,this.#fr),a&&(Object.assign(m,this.#xr),this.#Ir=!0),c&&(m.consent=n,this.#Mr=!0),h&&(m.push_state=this.#Nr,this.#qr=!0),s&&(m.c=s),o&&(m.b=r),m.m=g,this.#Sr.length&&(m.errors=this.#Sr),this.#Ar.length&&(m.t=this.#Ar),d&&(m.quiz_closed_at_step=this.#Lr,this.#Rr=!0),l&&(m.experiments=this.#Hr,this.#Gr=!1),this.#wr={},this.#vr={},this.#Sr=[],this.#Ar=[],this.#br=p,i&&(this.#Br=!1),m}catch(t){return null}}};static#Ft=class t{static#Eo=2e3;static#To=15;static#Lo=56e3;static#Ro(t){try{return(new TextEncoder).encode(t).length}catch(e){return 2*String(t??"").length}}static#Po(t){try{const e=t=>String(t?.topic_id??"").endsWith("-dev"),i=JSON.parse(t);if(i&&Array.isArray(i.events)){const t=i.events.filter(e);return t.length?JSON.stringify({...i,events:t}):null}return e(i)?t:null}catch(t){return null}}#Cs;#jo="https://run.sendwebpush.com";#Do=[];#xo=0;#Oo=null;#Io=!1;constructor(t){this.#Cs=t}send(...t){return this.#Mo(...t)}flush(...t){return this.#No(...t)}armFlush(...t){return this.#qo(...t)}#Mo(e,i=null){if("string"==typeof e)return this.#Fo(e,i);try{const s={...e,datetime_sp:SendWebPush.#Ji(!0)},r=t.#Ro(JSON.stringify(s));return r>=t.#Lo?this.#Fo(JSON.stringify(s),i):(this.#xo+r>=t.#Lo&&this.#No(),this.#Do.push(s),this.#xo+=r,this.#Bo(),this.#Do.length>=t.#To?this.#No():null===this.#Oo&&(this.#Oo=setTimeout((()=>this.#No()),t.#Eo)),!0)}catch(t){return this.#Cs.#Ie("beacon","falha ao enfileirar - enviando avulso",t),this.#Fo(JSON.stringify(e),i)}}#No(){try{null!==this.#Oo&&(clearTimeout(this.#Oo),this.#Oo=null);const t=this.#Cs.#e.takeDelta();if(t&&this.#Do.push(t),0===this.#Do.length)return!0;const e=this.#Do;this.#Do=[],this.#xo=0;const i={bulk:1,events:e,version:this.#Cs.#D};return this.#Fo(JSON.stringify(i),{method:"post",headers:{"Content-Type":"application/json"},mode:"cors",keepalive:!0})}catch(t){return this.#Cs.#Ie("beacon","falha no flush",t),!1}}#qo(){this.#Bo(),null===this.#Oo&&(this.#Oo=setTimeout((()=>this.#No()),t.#Eo))}#Bo(){if(!this.#Io){this.#Io=!0;try{const t=()=>this.#No();this.#Cs.window.addEventListener("pagehide",t),this.#Cs.document.addEventListener("visibilitychange",(()=>{"hidden"===this.#Cs.document.visibilityState&&t()}))}catch(t){this.#Cs.#Ie("beacon","falha ao registrar triggers de flush",t)}}}#Fo(e,i=null){if("dev"===this.#Cs.app_env&&null===(e=t.#Po(e)))return!0;try{const t=this.#Cs.window.navigator;if(t?.sendBeacon){const i=new Blob([e],{type:"text/plain;charset=UTF-8"});if(t.sendBeacon(this.#jo,i))return!0}}catch(t){}try{return fetch(this.#jo,{...i??{method:"post",keepalive:!0},body:e}).catch((t=>this.#Cs.#Ie("beacon","fetch falhou",t))),!0}catch(t){return this.#Cs.#Ie("beacon","falhou nos 2 niveis",t),!1}}};static#Bt=class t{static#zo=500;static#$o=99999;static#Uo={HIT:"H",UPDATING:"U",REVALIDATED:"R",MISS:"M",DYNAMIC:"D",EXPIRED:"E"};#Cs;#Wo=null;constructor(t){this.#Cs=t}init(...t){return this.#Ho(...t)}fetchStart(...t){return this.#Go(...t)}retry(...t){return this.#Vo(...t)}fetchEnd(...t){return this.#Yo(...t)}readHeaders(...t){return this.#Qo(...t)}schedule(...t){return this.#Ko(...t)}flush(...t){return this.#Xo(...t)}#Ho(){try{this.#Wo={url:null,start:null,duration:null,continuedAt:null,retryAt:null,perfClock:!1,cache:"-",dc:"-",country:null,settled:!1,sent:!1,retryTimer:null}}catch(t){}}#Go(t,e){try{const i=this.#Wo;if(!i)return;i.url=t,i.start=e,i.perfClock="function"==typeof this.#Cs.window.performance?.now}catch(t){}}#Vo(){try{this.#Wo&&(this.#Wo.retryAt=this.#Cs.#fi())}catch(t){}}#Yo(t,e){try{const i=this.#Wo;if(!i)return;i.duration=t,i.continuedAt=e}catch(t){}}#Qo(e){try{const i=this.#Wo;if(!i||!e?.headers)return;const s=t=>{try{return e.headers.get(t)}catch(t){return null}},r=s("cf-cache-status");i.cache=t.#Uo[String(r||"").trim().toUpperCase()]||"-";const o=s("x-swp-dc"),n=String(o??"").trim();i.dc=null!==o&&""!==n?["0","1","2"].includes(n)?n:"-":null!==r?"0":"-",i.country=String(s("x-swp-country")||"").trim()?1:0}catch(t){}}#Ko(){try{const t=this.#Wo;if(!t)return;t.settled=!0,null===t.country&&(t.country=0),setTimeout((()=>this.#Jo(!1)),0)}catch(t){}}#Jo(e){try{const i=this.#Wo;if(!i||i.sent)return;const s=this.#Zo(i);if(!s&&!e&&i.url)return void(i.retryTimer=setTimeout((()=>this.#Jo(!0)),t.#zo));this.#tn(!0,s)}catch(t){}}#Zo(t){try{if(!t?.url)return null;const e=this.#Cs.window.performance?.getEntriesByName?.(t.url,"resource")||[];for(let i=e.length-1;i>=0;i--){const s=e[i];if(null===t.retryAt||s.startTime>=t.retryAt-1)return s}}catch(t){}return null}#Xo(t){try{const e=this.#Wo;if(!e||e.sent||!e.url)return;if(!t&&!e.settled)return;this.#tn(!1)}catch(t){}}#tn(t,e){try{const i=this.#Wo;if(!i||i.sent)return;i.sent=!0,clearTimeout(i.retryTimer);const s=this.#en(i,void 0===e?this.#Zo(i):e);this.#Cs.#e.timelineAdd("art",s),t&&this.#Cs.#e.started&&this.#Cs.#e.requestFlush()}catch(t){}}#en(e,i){const s=t.#$o,r=(t,e=Math.round)=>"number"==typeof t&&Number.isFinite(t)?String(Math.max(-s,Math.min(s,e(t)))):"?",o=t=>{try{return t()}catch(t){return"?"}},n=e.perfClock?i:null,a=!!n&&(n.requestStart>0||n.transferSize>0||n.decodedBodySize>0),c=n?a&&n.responseStart>0?n.responseStart:n.responseEnd:null,h=o((()=>{if(!n||!a)return"?";if(0===n.transferSize)return"c";return n.connectEnd-n.connectStart>0||n.domainLookupEnd-n.domainLookupStart>0?"0":"1"})),d=o((()=>{const t=this.#Cs.#Dt;return null===t?"n":"anonymous"===t?"a":"use-credentials"===t?"c":"?"}));return[["t",r(e.duration,Math.floor)],["n",n?r(c-n.startTime):"?"],["w",n&&null!==e.continuedAt?r(Math.max(0,e.continuedAt-c)):"?"],["c",e.cache],["x",d],["k",o((()=>this.#in()))],["r",h],["d",e.dc],["e",o((()=>this.#sn()))],["g",null===e.country?"?":String(e.country)]].map((([t,e])=>t+e)).join("|").slice(0,120)}#in(){const t=this.#Cs.#C.fetchArm;return"i"===t||"o"===t?t:"x"}#sn(){try{const t=this.#Cs.#e.navType();if("reload"===t||"back_forward"===t)return"0";const e=this.#Cs.document.referrer;return e&&new URL(e).origin===this.#Cs.window.location.origin?"0":"1"}catch(t){return"?"}}};static#zt=class t{static#rn=3e3;#Cs;constructor(t){this.#Cs=t}show(...t){return this.#on(...t)}async#on(){try{if(this.#Cs.dataSWP.statusPreloader){this.#Cs.#h.lock("preloader");const e=document.createElement("div");e.id="preloaderswp";const i=document.createElement("div");i.classList.add("spinnerswp"),e.appendChild(i),document.body.appendChild(e);const s=Date.now(),r=setInterval((()=>{const i=Date.now()-s;(this.#Cs.#Z||this.#Cs.#pt||this.#Cs.#tt||i>=t.#rn)&&(clearInterval(r),this.#nn(e))}),100)}}catch(t){try{this.#Cs.#h.release("preloader")}catch(t){}try{document.getElementById("preloaderswp")?.remove()}catch(t){}this.#Cs.#Re("debug","erro erro_066",t)}}#nn(t){try{this.#Cs.#h.release("preloader"),t.classList.add("swp-preloader-out"),setTimeout((()=>t.remove()),500)}catch(e){try{t.remove()}catch(t){}this.#Cs.#Re("debug","erro erro_066",e)}}};static#Jt=class{#Cs;#an=null;#cn=!1;constructor(t){this.#Cs=t}injectResourceHints(...t){return this.#hn(...t)}loadGPT(...t){return this.#dn(...t)}startTrafficCheck(...t){return this.#ln(...t)}whenCountryOrTimeout(...t){return this.#un(...t)}startWebPush(...t){return this.#gn(...t)}loadClarity(...t){return this.#pn(...t)}startGoogleAnalytics(...t){return this.#mn(...t)}loadGtag(...t){return this.#yn(...t)}loadGTM(...t){return this.#fn(...t)}#ln(){"dev"!==this.#Cs.app_env&&this.#un().then((()=>this.#Cs.#hs(`https://cdn.sendwebpush.com/sendwebpush/server_services/${this.#Cs.#P}/traffic-check-mimify.js`))).catch((t=>this.#Cs.#Re("debug","erro erro_062",t)))}#un(){return this.#an||(this.#an=new Promise((t=>{let e=!1;const i=()=>{e||(e=!0,t())};setTimeout(i,3e3),Promise.resolve(this.#Cs.#A.geo??null).then(i,i)}))),this.#an}#gn(){try{if(this.#Cs.dataSWP.statusWebPush){const t="dev"==this.#Cs.app_env?`${this.#Cs.window.location.origin}/push.js`:"https://cdn.sendwebpush.com/pushsendwebpush/server_services/server.js";this.#Cs.#hs(t)}}catch(t){this.#Cs.#Re("debug","erro erro_034",t)}}#pn(){try{const i="rj7k8icmok";window.clarity=window.clarity||function(){(window.clarity.q=window.clarity.q||[]).push(arguments)};var t=document.createElement("script");t.async=!0,t.src="https://www.clarity.ms/tag/"+i;var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}catch(t){this.#Cs.#Re("debug","erro erro_053",t)}}async#mn(){try{return this.#Cs.#A.whenStorageAllowed((()=>{gtag("js",new Date),gtag("config","G-FVBD3GMGRM"),gtag("event","page_view_with_url",{page_location:window.location.href})})),1}catch(t){this.#Cs.#Re("debug","erro erro_054",t)}}#hn(){try{if(this.#cn)return;if(!this.#Cs.#ve())return;if(!1===this.#Cs.dataSWP.resourceHints)return;const t=document.head||document.getElementsByTagName("head")[0];if(!t)return;this.#cn=!0;const e=["https://securepubads.g.doubleclick.net","https://pagead2.googlesyndication.com","https://googleads.g.doubleclick.net","https://ep1.adtrafficquality.google","https://ep2.adtrafficquality.google"],i=["https://tpc.googlesyndication.com","https://safeframe.googlesyndication.com","https://googleads4.g.doubleclick.net","https://www.googleadservices.com","https://fundingchoicesmessages.google.com","https://csi.gstatic.com"],s=new Set,r={preconnect:new Set,"dns-prefetch":new Set};document.querySelectorAll("script[src], link[href]").forEach((t=>{let e;try{e=new URL(t.src||t.href).origin}catch(t){return}s.add(e);const i=(t.getAttribute("rel")||"").toLowerCase();r[i]&&("preconnect"!==i||t.hasAttribute("crossorigin"))&&r[i].add(e)}));const o=document.createDocumentFragment(),n=(t,e,i)=>{if(r[t].has(e))return;if("dns-prefetch"===t&&(r.preconnect.has(e)||s.has(e)))return;const n=document.createElement("link");n.rel=t,n.href=e,i&&(n.crossOrigin="anonymous"),o.appendChild(n)};e.forEach((t=>n("preconnect",t,!0))),i.forEach((t=>n("dns-prefetch",t,!1))),t.appendChild(o)}catch(t){this.#Cs.#Re("debug","erro erro_131",t)}}#dn(){this.#Cs.#hs("https://securepubads.g.doubleclick.net/tag/js/gpt.js",5e3,"high")}async#yn(){await this.#Cs.#hs("https://www.googletagmanager.com/gtag/js"),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date)}async#fn(){try{const t=this.#Cs.dataSWP?.trackingEvents;if(!Array.isArray(t)||!t.length)return;t.forEach((function(t){!function(t,e,i,s,r){t[s]=t[s]||[],t[s].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var o=e.getElementsByTagName(i)[0],n=e.createElement(i);n.async=!0,n.src="https://www.googletagmanager.com/gtm.js?id="+r,o.parentNode.insertBefore(n,o)}(window,document,"script","dataLayer",t.gtm_id)}))}catch(t){this.#Cs.#Re("debug","erro erro_201",t)}}};static#$t=class{#Cs;#wn;#vn;constructor(t){this.#Cs=t}replace(...t){return this.#_n(...t)}release(...t){return this.#bn(...t)}#bn(t,e=!0){try{const i=this.#vn?.get(t);if(!i)return;this.#vn.delete(t),clearTimeout(i.timer),e&&i.node?.isConnected&&i.node.remove()}catch(t){this.#Cs.#Re("debug","erro erro_215",t)}}#_n(t){try{let e=this.#Cs.dataSWP.adUnitsReplacement?.find((e=>e.type===t.type&&!this.#Cs.#Xe(e.segmentation)));if(e){this.#bn(t.idDiv,!1);const i={timer:null,node:null};(this.#vn=this.#vn||new Map).set(t.idDiv,i),"MGID"==e.advertiser?this.#Sn(e,t,0,i):"Adsense"==e.advertiser?this.#Cn(e,t):"Own Creative"==e.advertiser&&this.#An(e,t,0,i)}return 1}catch(t){this.#Cs.#Re("debug","erro erro_070",t)}}async#Sn(t,e,i=0,s=null){try{if(await this.#Cs.#hs(`https://jsc.mgid.com/site/${t.client_id}.js`),s&&this.#vn?.get(e.idDiv)!==s)return;const n=`${this.#Cs.#F}_${this.#Cs.#q}`;var r=document.createElement("div");r.setAttribute("data-type","_mgwidget"),r.setAttribute("data-widget-id",t.slot_id),r.setAttribute("data-src-id",`${n}`);var o=document.createElement("script");o.textContent=`var s1 = ${JSON.stringify(String(n))}; (function(w,q){w[q]=w[q]||[];w[q].push(["_mgc.load"])})(window,"_mgq");`,r.appendChild(o);const a=document.getElementById(e.idDiv);if(!a)return;a.innerHTML="",a.appendChild(r),s&&(s.node=r);if(i>=20)return;const c=setTimeout((()=>{"hidden"!==this.#Cs.document.visibilityState?this.#Sn(t,e,i+1,s):this.#Cs.document.addEventListener("visibilitychange",(()=>{this.#Sn(t,e,i+1,s)}),{once:!0})}),3e4);s&&(s.timer=c)}catch(t){this.#Cs.#Re("debug","erro erro_071",t)}}async#Cn(t,e){try{const i=document.getElementById(e.idDiv);if(!i)return;if(i.innerHTML="",await this.#Cs.#hs("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"),!i.getBoundingClientRect().width)return void this.#Cs.#Ie("replacement","adsense sem largura no container - nao pedido",e.idDiv);const s=Object.assign(document.createElement("ins"),{className:"adsbygoogle",style:"display:block"});s.setAttribute("data-ad-client",t.client_id),s.setAttribute("data-ad-slot",t.slot_id),s.setAttribute("data-ad-format","auto"),i.appendChild(s),i.appendChild(Object.assign(document.createElement("script"),{text:"(adsbygoogle = window.adsbygoogle || []).push({});"}))}catch(t){this.#Cs.#Re("debug","erro erro_120",t)}}#An(t,e,i=0,s=null){try{if(s&&this.#vn?.get(e.idDiv)!==s)return;const r=(Array.isArray(t.creatives)?t.creatives:[]).filter((t=>t&&"string"==typeof t.image&&t.image&&"string"==typeof t.link&&/^https?:\/\//i.test(t.link)));if(!r.length)return;const o=this.#Cs.document.getElementById(e.idDiv);if(!o)return;this.#wn=this.#wn||{},void 0===this.#wn[e.idDiv]&&(this.#wn[e.idDiv]=Math.floor(Math.random()*r.length));const n=r[(this.#wn[e.idDiv]+i)%r.length],a=this.#Cs.document.createElement("a");a.href=n.link,a.target="_blank",a.style.cssText="display:block;width:fit-content;max-width:100%;margin:0 auto;line-height:0;",a.rel="noopener noreferrer sponsored";const c=this.#Cs.document.createElement("img");c.src=n.image,c.alt="",c.loading="eager",c.decoding="async",c.fetchPriority="high";const h=Array.isArray(e.size)?e.size.filter((t=>Array.isArray(t)&&"number"==typeof t[1])).map((t=>t[1])):[],d=h.length?Math.max(...h):280;c.style.cssText=`display:block;max-width:100%;max-height:${d}px;width:auto;height:auto;border:0;margin:0 auto;`;let l=0;const u=()=>{const t=Date.now();t-l<1e3||(l=t,this.#kn(n,e,"click"))};a.addEventListener("click",u),a.addEventListener("auxclick",(t=>{1===t.button&&u()})),a.appendChild(c),o.innerHTML="",o.appendChild(a),s&&(s.node=a),this.#kn(n,e,"impression");if(i>=20||r.length<2)return;const g=setTimeout((()=>{"hidden"!==this.#Cs.document.visibilityState?this.#An(t,e,i+1,s):this.#Cs.document.addEventListener("visibilitychange",(()=>{this.#An(t,e,i+1,s)}),{once:!0})}),3e4);s&&(s.timer=g)}catch(t){this.#Cs.#Re("debug","erro erro_192",t)}}#kn(t,e,i){try{if(!t||void 0===t.id||null===t.id)return;this.#Cs.#i.send({topic_id:"backfill-creatives",id_domain:this.#Cs.dataSWP.idDomain,id_creative:t.id,event_type:i,ad_unit_type:e?.type,device:this.#Cs.#I,version:this.#Cs.#D})}catch(t){this.#Cs.#Re("debug","erro erro_193",t)}}};static#Ut=class{#Cs;#En=null;constructor(t){this.#Cs=t}resolve(...t){return this.#Tn(...t)}appendPageQuery(...t){return this.#Ln(...t)}setBranch(...t){return this.#Rn(...t)}#Rn(t){this.#En=t}#Pn(){try{const t=this.#En;if(!SendWebPush.#Di(t))return null;const e=this.#jn(this.#Ln(t));return e===this.#jn(this.#Cs.window.location.href)?null:t}catch(t){return null}}#jn(t){const e=new URL(t,this.#Cs.window.location.href),i=new URLSearchParams;e.searchParams.forEach(((t,e)=>{t&&!i.has(e)&&i.set(e,t)})),i.sort();const s=i.toString();return e.origin+e.pathname+(s?`?${s}`:"")}#Ln(t){try{if(!t)return t;const e=new URL(t,this.#Cs.window.location.href);return new URLSearchParams(this.#Cs.window.location.search).forEach(((t,i)=>{t&&!e.searchParams.has(i)&&e.searchParams.set(i,t)})),e.toString()}catch(e){return this.#Cs.#Re("debug","erro erro_117",e),t}}#Tn(t){try{const e=this.#Pn();if(e)return e;const i=t?.configs;if(!i)return null;if("replace"===i.quiz_destination_mode&&i.quiz_url_search){const{origin:t,pathname:e,search:s,hash:r}=this.#Cs.window.location;let o=(e+s).replaceAll(i.quiz_url_search,i.quiz_url_replace??"");o.startsWith("/")||(o="/"+o);const n=t+o+r;return new URL(n).origin!==t?(this.#Cs.#Ge("info","erro erro_219",`quiz_url_search "${i.quiz_url_search}" gerou destino fora do dominio - destino ignorado`),this.#Dn(i.quiz_destination_link)):n===this.#Cs.window.location.href?(this.#Cs.#Ge("info","erro erro_161",`quiz_url_search "${i.quiz_url_search}" ausente na URL - destino ignorado`),this.#Dn(i.quiz_destination_link)):n}return this.#Dn(i.quiz_destination_link)}catch(e){return this.#Cs.#Re("debug","erro erro_resolve_quiz_dest",e),this.#Dn(t?.configs?.quiz_destination_link)}}#Dn(t){if(!SendWebPush.#Di(t))return null;try{if(this.#jn(this.#Ln(t))===this.#jn(this.#Cs.window.location.href))return this.#Cs.#Ge("info","erro erro_216","quiz_destination_link aponta para a propria pagina - destino ignorado"),null}catch(t){}return t}};static#Wt=class{#Cs;#xn=!1;constructor(t){this.#Cs=t}watchDeadClicks(...t){return this.#On(...t)}bindResilientTap(...t){return this.#In(...t)}updateOverlayScrollFlag(...t){return this.#Mn(...t)}#On(){try{if(this.#xn)return;this.#xn=!0;const t=".quiz-option, .swp-run-rewarded, .swp-reward-close, .swp-quiz-lead-input, .swp-quiz-lead-skip";let e=null;const i=t=>{try{const e=((t.id||"")+" "+("string"==typeof t.className?t.className:"")+" "+(t.src||"")).toLowerCase();return/google_ads|googlefc|goog_|gpt|doubleclick|googlesyndication/.test(e)?"gpt":/swp-|swp_/.test(e)?"swp":"IFRAME"===t.tagName?"iframe-externo":"elemento-do-site"}catch(t){return"elemento-do-site"}};this.#Cs.document.addEventListener("pointerdown",(s=>{try{const r=this.#Cs.document.querySelector(".swp-quiz-overlay:not(.hidden), .swp-reward-wrap");if(!r||!s.isTrusted)return;const o=this.#Cs.document.elementFromPoint(s.clientX,s.clientY);if(!o)return;const n=o.closest?o.closest(t):null;if(n){e&&clearTimeout(e.timer);const t=!!n.closest(".swp-run-rewarded");return void(e={timer:setTimeout((()=>{e=null,this.#Cs.#Ie("deadclick","pointerdown sem click",n.className),this.#Cs.#Ge("info","erro erro_179",t?"toque sem click no botao do gate - down chegou, up nao virou click":"toque sem click na opcao do quiz - down chegou, up nao virou click")}),700)})}if(o&&o.closest&&o.closest(".loading-container, .loading-dot"))return this.#Cs.#Ie("deadclick","toque durante loading do quiz"),void this.#Cs.#Ge("info","erro erro_179","toque durante a troca de tela do quiz (loading de 2s)");for(const e of r.querySelectorAll(t)){const t=e.getBoundingClientRect();if(t.width>0&&s.clientX>=t.left&&s.clientX<=t.right&&s.clientY>=t.top&&s.clientY<=t.bottom){if(r.contains(o))return;const t=i(o);return this.#Cs.#Ie("deadclick",`interceptado por ${t}`,o.id||o.className||o.tagName),void this.#Cs.#Ge("info","erro erro_179",`toque sobre botao do quiz interceptado por ${t}`)}}}catch(t){}}),{capture:!0,passive:!0}),this.#Cs.document.addEventListener("click",(()=>{e&&(clearTimeout(e.timer),e=null)}),{capture:!0,passive:!0})}catch(t){this.#Cs.#Re("debug","erro erro_180",t)}}#Mn(){try{const t=this.#Cs.document.querySelector(".swp-quiz-overlay");if(!t)return;const e=t.scrollHeight-t.clientHeight>2;t.classList.toggle("swp-rolavel",e),this.#Cs.#Ie("deadclick","overlay "+(e?"transborda - botoes voltam a pan":"cabe na tela - botoes com touch-action none"))}catch(t){}}#Nn(){try{const t=String(this.#Cs.window.navigator?.userAgent||"");return/FBAN|FBAV|FB_IAB|FBIOS/i.test(t)?"webview-fb":/;\s*wv\)|Instagram|musical_ly|BytedanceWebview|TikTok|Line\/|Twitter|Snapchat/i.test(t)?"webview-outro":"navegador"}catch(t){return"navegador"}}#In(t){try{if(!t||t.__swpTapBound)return;t.__swpTapBound=!0;let e=null,i=!1;const s=()=>{const t=this.#Cs.document.querySelector(".swp-quiz-overlay");return{page:this.#Cs.window.scrollY||0,overlay:t?t.scrollTop:0}},r=t=>{this.#Cs.#Ge("info","erro erro_190",`fallback recusou o tap: ${t} | ${this.#Nn()}`)};t.addEventListener("click",(()=>{i=!0}),!0),t.addEventListener("pointerdown",(t=>{e={x:t.clientX,y:t.clientY,t:performance.now(),s:s()},i=!1;const o=e;setTimeout((()=>{e===o&&r("sem-up-nem-cancel")}),1500)})),t.addEventListener("pointermove",(t=>{e&&(e.lastX=t.clientX,e.lastY=t.clientY)}),{passive:!0});const o=(o,n)=>{if(!e)return;const a=e;e=null;if(n&&0===o.clientX&&0===o.clientY){if(void 0===a.lastX)return void r("cancel-sem-coordenada");const t=Math.max(Math.abs(a.lastX-a.x),Math.abs(a.lastY-a.y));return void r(t<=28?"cancel-sem-coordenada":t<=60?"movimento-28-60px":"movimento-acima-60px")}const c=Math.abs(o.clientX-a.x),h=Math.abs(o.clientY-a.y),d=performance.now()-a.t,l=n?16:28;if(c>l||h>l){const t=Math.max(c,h);r(t<=28?"movimento-ate-28px":t<=60?"movimento-28-60px":"movimento-acima-60px")}else d>700?r("duracao-acima-700ms"):setTimeout((()=>{if(i)return;const e=s(),o=Math.abs(e.page+e.overlay-(a.s.page+a.s.overlay)),c=Math.abs(e.page-a.s.page),h=Math.abs(e.overlay-a.s.overlay);if(o>12)r(c>=h?"veto-pagina-rolou":"veto-overlay-rolou");else{this.#Cs.#Ie("deadclick","toque recuperado via "+(n?"pointercancel":"pointerup"),t.className),this.#Cs.#Ge("info","erro erro_184","toque recuperado - click nativo morreu e o fallback de pointer completou a acao");try{t.click()}catch(t){}}}),120)};t.addEventListener("pointerup",(t=>o(t,!1))),t.addEventListener("pointercancel",(t=>o(t,!0)))}catch(t){this.#Cs.#Re("debug","erro erro_185",t)}}};static#Ht=class{#Cs;#qn;#Fn;constructor(t){this.#Cs=t}track(...t){return this.#Bn(...t)}detach(...t){return this.#zn(...t)}#$n(t){try{const e=t?.querySelector?.(".swp-reward-modal");if(!e)return;const i=t.getBoundingClientRect(),s=this.#Cs.window.innerHeight||0,r=e.offsetHeight||0;if(!s||!r||!i.height)return;const o=s/2-i.top-r/2,n=Math.max(0,i.height-r),a=Math.round(Math.min(Math.max(o,0),n))+"px";e.style.top!==a&&e.style.setProperty("top",a,"important")}catch(t){}}#Bn(t){try{t&&"none"!==this.#Cs.window.getComputedStyle(t).display&&(this.#Cs.#at=!0,this.#Cs.#Ci("gate_shown")),this.#$n(t),this.#zn();let e=!1;this.#Fn=()=>{e||(e=!0,this.#Cs.window.requestAnimationFrame((()=>{e=!1;const t=this.#Cs.document.getElementById("swp-rewarded");t?this.#$n(t):this.#zn()})))},this.#Cs.window.addEventListener("scroll",this.#Fn,{passive:!0}),this.#Cs.window.addEventListener("resize",this.#Fn,{passive:!0});const i=Date.now();this.#qn=setInterval((()=>{try{const t=this.#Cs.document.getElementById("swp-rewarded");if(!t||Date.now()-i>15e3)return clearInterval(this.#qn),void(this.#qn=null);this.#$n(t)}catch(t){}}),400)}catch(t){}}#zn(){try{this.#Fn&&(this.#Cs.window.removeEventListener("scroll",this.#Fn),this.#Cs.window.removeEventListener("resize",this.#Fn),this.#Fn=null),this.#qn&&(clearInterval(this.#qn),this.#qn=null)}catch(t){}}};static#Gt=class t{static#Un=1e4;static#Wn(t){for(const e of["goog-continue-reading-wrapper","goog-content-pause-scrim"]){const i=t.getElementById(e);if(i&&"none"!==getComputedStyle(i).display)return!0}return!1}#Cs;#Hn=new Set;#Gn=!1;#Vn=!1;constructor(t){this.#Cs=t}lock(...t){return this.#Yn(...t)}release(...t){return this.#Qn(...t)}lockForGate(...t){return this.#Kn(...t)}unlockOnBack(...t){return this.#Xn(...t)}watchStuck(){return this.#Jn()}unlockedView(t){if(!this.#Hn.size)return t();const e=this.#Cs.document.documentElement,i=this.#Cs.document.body,s=e?e.style.overflow:"",r=i.style.overflow;try{return e&&(e.style.overflow=""),i.style.overflow="",t()}finally{e&&(e.style.overflow=s),i.style.overflow=r}}#Yn(t="quiz"){try{this.#Hn.add(t);const e=this.#Cs.document.documentElement;e&&(e.style.overflow="hidden"),this.#Cs.document.body.style.overflow="hidden"}catch(t){this.#Cs.#Re("debug","erro erro_222",t)}}#Kn(t){try{const e=t?.querySelector?.(".swp-reward-modal");if(!e||e.getBoundingClientRect().height<=0)return;if(t.parentElement!==this.#Cs.document.body)return;this.#Yn("gate")}catch(t){this.#Cs.#Re("debug","erro erro_222",t)}}#Qn(t=null){try{if(t?this.#Hn.delete(t):(this.#Hn.delete("gate"),this.#Hn.delete("quiz")),this.#Hn.size)return;const e=this.#Cs.#nt||this.#Zn();[this.#Cs.document.documentElement,this.#Cs.document.body].forEach((t=>{t&&["overflow-x","overflow-y"].forEach((i=>{!("hidden"===t.style.getPropertyValue(i)&&"important"!==t.style.getPropertyPriority(i))&&e||t.style.removeProperty(i)}))})),this.#ta()}catch(t){this.#Cs.#Re("debug","erro erro_222",t)}}#ta(){this.#Gn||setTimeout((()=>{try{if(this.#Gn||this.#Hn.size||this.#Cs.#nt)return;this.#Gn=!0;const t=this.#ea();t&&this.#ia(t)}catch(t){}}),3e3)}#Xn(t){this.#sa(t,"erro_224","trava de terceiro removida na volta")}#Jn(){try{if(this.#Vn)return;this.#Vn=!0;const t=this.#Cs.window,e=this.#Cs.document,i={capture:!0,passive:!0},s=["ArrowDown","ArrowUp","PageDown","PageUp","Space"," ","End","Home"];let r=!1,o=0,n=0,a=null;const c=()=>(e.scrollingElement||e.documentElement).scrollTop,h=()=>{if(r)return;r=!0;const t=c();setTimeout((()=>{r=!1;try{if(Math.abs(c()-t)>2||!this.#ea())return void(o=0);if("fixed"===getComputedStyle(e.body).position)return void(o=0);const i=this.#Cs.#fi();(!o||i-n>1e4)&&(o=0,n=i),++o>=2&&this.#sa("gesto","erro_225","trava de terceiro removida com o visitante tentando rolar")&&(o=0)}catch(t){}}),250)};t.addEventListener("wheel",(t=>{t.deltaY&&h()}),i),t.addEventListener("touchstart",(t=>{a=t.touches?.[0]?.clientY??null}),i),t.addEventListener("touchmove",(t=>{const e=t.touches?.[0]?.clientY;null!==a&&void 0!==e&&Math.abs(e-a)>30&&(a=e,h())}),i),t.addEventListener("keydown",(t=>{(s.includes(t.key)||s.includes(t.code))&&h()}),i)}catch(t){}}#sa(t,e,i){try{if(this.#Hn.size||this.#Cs.#nt)return!1;const s=this.#ea();if(!s||this.#Zn())return!1;const r=this.#Cs.document,o=["overflow","overflow-x","overflow-y","height","position","scrollbar-gutter"];let n=0;return[r.documentElement,r.body].forEach((t=>{t&&o.forEach((e=>{const i=t.style.getPropertyValue(e);if(!i)return;(e.startsWith("overflow")&&/hidden|clip/.test(i)||"important"===t.style.getPropertyPriority(e))&&(t.style.removeProperty(e),n++)}))})),n?(this.#Cs.#Ge("info",`erro ${e}`,`${i} (${t}; antes ${s}; depois ${this.#ea()||"livre"})`),!0):!1}catch(t){}return!1}#Zn(){try{const e=this.#Cs.window,i=this.#Cs.document;if(t.#Wn(i))return!0;for(const t of i.querySelectorAll('ins[data-vignette-loaded], ins[id^="gpt_unit_"][id*="interstitial"]')){if("true"===t.getAttribute("aria-hidden")||"none"===getComputedStyle(t).display)continue;const i=t.getBoundingClientRect();if(i.width>0&&i.height>0&&i.bottom>0&&i.top<e.innerHeight)return!0}for(let t=i.elementFromPoint(e.innerWidth/2,e.innerHeight/2);t;t=t.parentElement)if(/google_ads_iframe|gpt_unit_|aswift/i.test(t.id||""))return!0}catch(t){}return!1}#ea(){const e=this.#Cs.document;if(t.#Wn(e))return null;const i=t=>{const e=getComputedStyle(t).overflowY;return"hidden"===e||"clip"===e},s=e.documentElement,r=e.body,o=e.scrollingElement||s,n=i(r)&&("visible"===getComputedStyle(s).overflowY?r.scrollHeight>s.clientHeight:r.scrollHeight-r.clientHeight>s.scrollHeight-s.clientHeight+1);return i(o)||o===s&&n?`html=${getComputedStyle(s).overflowY} body=${getComputedStyle(r).overflowY}`:null}#ia(e){const i=this.#Cs.window,s={capture:!0,passive:!0},r=["ArrowDown","ArrowUp","PageDown","PageUp","Space"," ","End","Home"];let o=0,n=!1,a=null,c=null,h=e;const d=()=>{n=!1,setTimeout((()=>{try{if(null===c||n||this.#Hn.size||this.#Cs.#nt)return;const t=this.#ea();if(!t)return;h=t,++o>=2&&u(!0)}catch(t){}}),250)},l=[["wheel",t=>{t.deltaY&&d()}],["touchstart",t=>{a=t.touches?.[0]?.clientY??null}],["touchmove",t=>{const e=t.touches?.[0]?.clientY;null!==a&&void 0!==e&&Math.abs(e-a)>30&&(a=e,d())}],["keydown",t=>{(r.includes(t.key)||r.includes(t.code))&&d()}],["scroll",()=>{n=!0}],["pagehide",()=>u(!1)]],u=t=>{null!==c&&(clearTimeout(c),c=null,l.forEach((([t,e])=>i.removeEventListener(t,e,s))),t&&this.#Cs.#Ge("info","erro erro_221",`pagina nao rolou com o visitante tentando rolar depois de soltar a trava (${h})`))};try{l.forEach((([t,e])=>i.addEventListener(t,e,s))),c=setTimeout((()=>u(!1)),t.#Un)}catch(t){}}};static#ce=class t{static#ra=2e3;static#oa=3e3;static#na=3e3;static#aa=5e3;static#ca=2e3;#Cs;#ha=!1;#da=!1;#la=0;#ua=null;#ga=null;#pa=null;#ma=0;#ya=null;constructor(t){this.#Cs=t}start(){return this.#fa()}onShown(){return this.#wa()}#fa(){try{if(this.#ha)return;this.#ha=!0;const t=this.#Cs.window,e=this.#Cs.document,i=()=>this.#Cs.#fi();this.#ma=i();const s={capture:!0,passive:!0};e.addEventListener("click",(t=>{if("goog-continue-reading-wrapper"===t.target?.id)return this.#ya=i(),void this.#Cs.#e.timelineAdd("cbtn");t.target?.closest?.("a[href]")&&(this.#ua=i())}),s),t.addEventListener("popstate",(()=>{this.#ga=i()}),s),e.addEventListener("visibilitychange",(()=>{"visible"===e.visibilityState&&(this.#pa=i())}),s),["wheel","touchstart","touchmove","keydown","pointerdown","scroll"].forEach((e=>{t.addEventListener(e,(()=>{this.#ma=i()}),s)}));const r=e.body;r&&"undefined"!=typeof MutationObserver&&new MutationObserver((()=>this.#va())).observe(r,{attributes:!0,attributeFilter:["style"]})}catch(t){}}#va(){try{const t=this.#Cs.document.body.style,e="clip"===t.getPropertyValue("overflow")&&"important"===t.getPropertyPriority("overflow");e&&!this.#da?(this.#da=!0,this.#la=this.#Cs.#fi(),this.#Cs.#e.timelineAdd("ilock",this.#_a()),this.#Cs.document.getElementById("goog-continue-reading-wrapper")&&this.#Cs.#e.timelineAdd("cgate",parseInt(t.getPropertyValue("height"),10)||0)):!e&&this.#da&&(this.#da=!1,this.#Cs.#e.timelineAdd("ifree",Math.round(this.#Cs.#fi()-this.#la)))}catch(t){}}#wa(){try{this.#Cs.#e.timelineAdd("itrig",this.#_a())}catch(t){}}#_a(){const e=this.#Cs.#fi(),i=(t,i)=>null!==t&&e-t<=i;if(i(this.#ya,t.#ca))return"continueReading";if(i(this.#ua,t.#ra))return"link";if(i(this.#ga,t.#oa))return"navBar";if(i(this.#pa,t.#na))return"unhideWindow";try{const t=this.#Cs.document,e=this.#Cs.window,i=t.scrollingElement||t.documentElement,s=t.querySelector('.entry-content, .post_content, .post-content, [itemprop="articleBody"]');if(s&&i.scrollTop>0){const t=s.getBoundingClientRect();if(t.height>e.innerHeight&&t.bottom<=e.innerHeight)return"endOfArticle"}if(i.scrollHeight>1.5*e.innerHeight&&i.scrollTop+e.innerHeight>=.85*i.scrollHeight)return"endOfArticle"}catch(t){}return e-this.#ma>=t.#aa?"inactivity":"outro"}};static#he=class t{static#ba=3e3;static#Sa=1e3;static#Ca=1500;static#Aa=200;static#ka=800;static#Ea=10;static#Ta=1500;static#La=2e3;#Cs;#ha=!1;#Ra=null;#Pa=null;#ja=null;#Da=!1;#xa=null;#Oa=!1;#Ia=null;#Ma=null;#Na=null;#qa=0;#Fa=null;#Ba=0;#za=0;#$a=0;constructor(t){this.#Cs=t}start(){return this.#Ua()}onLeave(t){return this.#Wa(t)}onReturn(){return this.#Ha()}overlayShown(){this.#Pa=this.#Cs.#fi(),this.#Ba++}overlayClosed(){this.#Ra=null}#Ua(){try{if(this.#ha)return;this.#ha=!0;const e=this.#Cs.window,i=this.#Cs.document;e.addEventListener("blur",(t=>{t.target===e&&this.#Ga(this.#Cs.document.activeElement)})),e.addEventListener("focus",(t=>{t.target===e&&(this.#Ia=this.#Cs.#fi())})),e.setInterval((()=>{try{const e=i.activeElement,s=t.#Va(e);s&&!this.#Oa&&this.#Ra?.el!==e&&this.#Ga(e),s||(this.#Fa=null),this.#Oa=s}catch(t){}}),t.#Aa);const s=()=>{this.#Ma=this.#Cs.#fi()};["pointerdown","keydown"].forEach((t=>i.addEventListener(t,s,{capture:!0,passive:!0}))),e.addEventListener("scroll",s,{passive:!0}),i.addEventListener("pointermove",(t=>{"mouse"===t.pointerType&&(this.#Na={x:Math.round(t.clientX),y:Math.round(t.clientY),at:this.#Cs.#fi()})}),{capture:!0,passive:!0}),i.addEventListener("click",(t=>{try{const i=t.target?.closest?.("a[href]");i&&i.hostname===e.location.hostname&&(this.#ja=this.#Cs.#fi())}catch(t){}}),!0)}catch(t){this.#Cs.#Re("debug","erro erro_063",t)}}#Ga(e){try{if(!t.#Va(e))return;if(t.#Ya(e)&&null!==this.#Pa&&this.#Cs.#fi()-this.#Pa<t.#Sa)return;t.#Ya(e)&&(this.#$a=this.#Ba),this.#Ra={el:e,at:this.#Cs.#fi()},this.#Qa(e)}catch(t){}}#Qa(e,i=""){try{if(this.#qa>=t.#Ea||e===this.#Fa)return;this.#qa++,this.#Fa=e;const s=this.#Cs.window,r=this.#Cs.document,o=this.#Cs.#fi(),n=e.getBoundingClientRect(),a=r.scrollingElement||r.documentElement,c=a.scrollHeight-s.innerHeight,h=c>0?Math.min(100,Math.max(0,Math.round(a.scrollTop/c*100))):0,d=null===this.#Ma?-1:Math.round(o-this.#Ma),l=this.#Na&&o-this.#Na.at<=t.#Ta?`${this.#Na.x},${this.#Na.y}`:"-",u=[this.#Ka(e)?.id??0,[n.left,n.top,n.width,n.height].map(Math.round).join(","),`${s.innerWidth}x${s.innerHeight}`,h,Math.round(o),d,l,(s.navigator?.webdriver?"w":"")+i].join("|");this.#Cs.#e.timelineAdd("atap",u),this.#Cs.#i.flush()}catch(t){}}#Wa(e="unload"){try{if(this.#Da)return;this.#Da=!0;const i=this.#Cs.#fi(),s=this.#Cs.document.activeElement,r=this.#Ra||(t.#Va(s)&&!this.#Oa?{el:s,at:i}:null);if(r&&!this.#Ra&&this.#Qa(r.el),this.#Ra=null,null!==this.#ja&&i-this.#ja<t.#Ca||this.#Cs.#gt)return;const o=this.#Xa();if(o){if(0===this.#Ba||this.#za===this.#Ba)return;const s=this.#Ka(o)?.type||(/rewarded/i.test(o.id)?"rewarded":"interstitial");if("rewarded"===s&&this.#$a!==this.#Ba&&this.#Cs.document.activeElement!==o)return;if("unload"===e){if("rewarded"===s)return;const e=this.#Pa,i=this.#ja;if(null!==i&&null!==e&&i<=e&&e-i<=t.#La)return}return this.#za=this.#Ba,this.#Qa(o,"o"),this.#Ja(o,i)}if(!r||t.#Ya(r.el)||i-r.at>t.#ba)return;const n=this.#Ia;if(null!==n&&n>r.at&&i-n>t.#ka)return;return this.#Ja(r.el,i)}catch(t){this.#Cs.#Re("debug","erro erro_063",t)}}#Ja(t,e){const i=this.#Ka(t);this.#Cs.#Ie("ad-click",`aclk (medicao nova) em ${t.id}`),this.#Cs.#e.timelineAdd("aclk",i?.id??0),this.#xa=e}#Ha(){try{if(this.#Da=!1,this.#Ia=null,null===this.#xa)return;const t=Math.round(this.#Cs.#fi()-this.#xa);this.#xa=null,this.#Cs.#e.timelineAdd("aret",t)}catch(t){}}#Xa(){const e=this.#Cs.document;for(const t of e.querySelectorAll('ins[data-vignette-loaded], ins[id^="gpt_unit_"][id*="interstitial"]')){if("true"===t.getAttribute("aria-hidden")||"none"===getComputedStyle(t).display)continue;const e=t.querySelector('iframe[id^="google_ads_iframe"]');if(e)return e}if(this.#Cs.#nt){const i=e.activeElement;return t.#Va(i)&&/rewarded/i.test(i.id)?i:e.querySelector('iframe[id^="google_ads_iframe"][id*="rewarded"]')}return null}#Ka(t){try{for(const[e,i]of this.#Cs.#kt){const s=this.#Cs.document.getElementById(e.getSlotElementId());if(s&&s.contains(t))return i}const e=String(t.id).split("/").pop().replace(/_\d+$/,""),i=this.#Cs.dataSWP;return(i.adUnitsManual||[]).find((t=>t.name===e||t.idDiv===e))||(i.adUnitAutomatic||[]).find((t=>t.name===e||t.idDiv===e))||null}catch(t){return null}}static#Va(t){return"IFRAME"===t?.tagName&&/google_ads_iframe_|aswift_/.test(t.id)}static#Ya(t){return/interstitial|rewarded/i.test(t?.id||"")}};static#Qt=class t{static#Za={interstitial:"swp-interstitial",rewarded:"swp-rewarded-executed"};static#tc=new Set(["interstitial"]);static#ec=5e3;static#ic=5e3;#Cs;#sc=new Map;#rc=new Set;constructor(t){this.#Cs=t}isActive(...t){return this.#oc(...t)}grant(...t){return this.#nc(...t)}grantInterstitial(...t){return this.#ac(...t)}scheduleRearm(...t){return this.#cc(...t)}#oc(e){const i=t.#Za[e];return!!i&&!!parseInt(this.#Cs.#di(i),10)}#hc(e){const i=t.#Za[e],s=i?parseInt(this.#Cs.#di(i),10):NaN;return s>1e12?s:null}#nc(e,i){const s=t.#Za[e];if(!s)return;const r=Number(i),o=Number.isFinite(r)?Date.now()+60*r*1e3:1;this.#Cs.#oi(s,o,i,"minute")}#cc(e){try{const i=e?.type;if(!t.#tc.has(i)||this.#rc.has(i))return;const s=this.#hc(i);if(!s)return;clearTimeout(this.#sc.get(i));const r=Math.max(s-Date.now()+t.#ic,t.#ec);this.#sc.set(i,setTimeout((()=>this.#dc(e)),r)),this.#Cs.#Ie("block",`${i} barrado pelo cap - rearme em ${Math.round(r/1e3)}s`,e.id)}catch(t){this.#Cs.#Re("debug","erro erro_212",t)}}#dc(t){try{const e=t.type;if(this.#sc.delete(e),this.#oc(e))return void this.#cc(t);this.#rc.add(e),this.#Cs.#Ie("block",`${e} rearmado - cap venceu durante a pageview`,t.id),this.#Cs.#Ne([{...t,slot:null,extraSlots:void 0,notRequestedFrequency:!1,frequencyRearmed:!0}]),this.#Cs.#e.rearm(t)}catch(t){this.#Cs.#Re("debug","erro erro_213",t)}}#ac(t){try{if(!t?.getAdUnitPath?.().includes("interstitial"))return;if(this.#oc("interstitial"))return;const e=this.#Cs.#kt.get(t),i=parseInt(e?.configs?.frequency,10)||11;this.#nc("interstitial",i)}catch(t){this.#Cs.#Re("debug","erro erro_214",t)}}};static#Kt=class t{static#lc=.5;static#uc=400;static#gc=80;static#pc=.9;static#mc=250;#Cs;#yc;#fc=[];#wc=!1;constructor(t){this.#Cs=t}apply(...t){return this.#vc(...t)}#_c(){try{if(void 0!==this.#yc)return this.#yc;let t=0;for(const e of this.#Cs.document.body?.querySelectorAll('header, [class*="header"], [id*="header"], nav')??[]){const i=this.#Cs.window.getComputedStyle(e);if("fixed"!==i.position&&"sticky"!==i.position)continue;const s=e.getBoundingClientRect();s.top<=4&&s.height>0&&s.height<=200&&s.height>t&&(t=s.height)}return this.#yc=Math.round(t),this.#yc}catch(t){return this.#Cs.#Re("debug","erro erro_134",t),0}}#bc(t){try{let e=t?.parentElement;for(;e&&e!==this.#Cs.document.body&&e!==this.#Cs.document.documentElement;){const t=this.#Cs.window.getComputedStyle(e);for(const e of[t.overflow,t.overflowX,t.overflowY])if(e&&"visible"!==e)return!0;e=e.parentElement}return!1}catch(t){return this.#Cs.#Re("debug","erro erro_135",t),!0}}#Sc(t){try{const e=t?.parentElement;if(!e)return null;if(e.classList.contains("swp-ad-track"))return e;const i=Array.from(e.children),s=1===i.length&&i[0]===t,r=!!e.style.minHeight;if(s&&r&&e!==this.#Cs.document.body)return e.classList.add("swp-ad-track"),e;const o=this.#Cs.document.createElement("div");return o.className="swp-ad-track",o.style.width="100%",e.insertBefore(o,t),o.appendChild(t),this.#Cs.#Ie("drift","div nua - pista criada por JS (reserva pos-paint)",t.id),o}catch(t){return this.#Cs.#Re("debug","erro erro_136",t),null}}#vc(e,i){try{const s=this.#Cs.#Ke(e);if(!("1"===String(s?.drift??"")||!0===s?.drift))return;if(!i)return;if(i.parentElement?.classList.contains("swp-ad-sticky"))return;const r=this.#Sc(i);if(!r)return;const o=this.#Cs.window.innerHeight||this.#Cs.document.documentElement.clientHeight||0;if(!o)return;const n=Math.max(parseInt(r.style.minHeight,10)||0,Math.round(r.getBoundingClientRect().height)||0,t.#mc);if(n>=o*t.#pc)return void this.#Cs.#Ie("drift","bloco ja ocupa ~viewport, sem drift",i.id,n);const a=Math.min(Math.round(o*t.#lc),t.#uc);if(a<t.#gc)return;const c=this.#_c();r.style.minHeight=`${n+a}px`;const h=this.#Cs.document.createElement("div");h.className="swp-ad-sticky",h.style.width="100%";this.#bc(r)?(this.#Cs.#Ie("drift","ancestral com overflow - caindo no fallback JS",i.id),this.#fc.push({track:r,sticky:h,top:c,pinned:!1}),this.#Cc()):(h.style.position="sticky",h.style.top=`${c}px`),r.insertBefore(h,i),h.appendChild(i)}catch(t){this.#Cs.#Re("debug","erro erro_137",t)}}#Cc(){if(this.#wc)return;this.#wc=!0;this.#Cs.#us(this.#Cs.window,(()=>{for(const t of this.#fc)try{const e=t.track.getBoundingClientRect(),i=t.sticky.getBoundingClientRect().height,s=e.top<=t.top&&e.bottom>t.top+i;if(s===t.pinned)continue;s?(t.sticky.style.position="fixed",t.sticky.style.top=`${t.top}px`,t.sticky.style.left=`${e.left}px`,t.sticky.style.width=`${e.width}px`):(t.sticky.style.position="",t.sticky.style.top="",t.sticky.style.left="",t.sticky.style.width="100%"),t.pinned=s}catch(t){}}),100)}};static#Xt=class t{static#Ac=["rewarded","interstitial","anchor","sticky_right","fixed","chatbot"];static#kc=100;#Cs;#Ec=null;#Tc=new Map;#Lc=!1;constructor(t){this.#Cs=t}refreshOrObserve(...t){return this.#Rc(...t)}evaluateObserved(...t){return this.#Pc(...t)}#jc(t){return t?.idDiv?this.#Cs.document.getElementById(t.idDiv):null}#Dc(e,i){this.#Cs.#rt&&this.#Cs.#Ie("lazy-own",`${e} [scrollY=${Math.round(this.#Cs.window.scrollY)} vh=${this.#Cs.window.innerHeight} margem=${t.#kc}px]`,i.map((t=>{const e=this.#Cs.#kt.get(t),i=this.#jc(e);return`${e?.type??"?"}:${e?.idDiv??"?"}@top=${i?Math.round(i.getBoundingClientRect().top):"sem-div"}`})))}#Rc(e){const i=[];try{for(const s of e){const e=this.#Cs.#kt.get(s),r=this.#jc(e);!e||e.skipLazy||t.#Ac.includes(e.type)||!r||this.#xc(r)&&this.#Oc(r)?i.push(s):this.#Ic(s,r)}}catch(t){return this.#Cs.#Re("debug","erro erro_196",t),void this.#Cs.googletag.pubads().refresh(e)}this.#Dc(`onda: ${i.length} agora, ${e.length-i.length} aguardando`,i),i.length&&this.#Cs.googletag.pubads().refresh(i)}#xc(e){try{const i=e.getBoundingClientRect(),s=this.#Cs.window.innerHeight||this.#Cs.document.documentElement.clientHeight,r=t.#kc;return i.top<s+r&&i.bottom>-r}catch(t){return!0}}#Oc(t){try{if(!t||!t.isConnected)return!1;if(this.#Cs.#_.holding&&this.#Cs.#_.overlayRoot&&this.#Cs.#_.overlayRoot.contains(t))return!1;if("function"==typeof t.checkVisibility)return t.checkVisibility({contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0});const e=this.#Cs.window.getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility&&0!==Number(e.opacity)}catch(t){return!0}}#Ic(t,e){const i=this.#Mc();if(!i)return void this.#Cs.googletag.pubads().refresh([t]);const s=this.#Tc.get(e);s?s.includes(t)||s.push(t):(this.#Tc.set(e,[t]),i.observe(e))}#Mc(){if(this.#Ec)return this.#Ec;if(this.#Lc)return null;this.#Lc=!0;try{this.#Ec=new this.#Cs.window.IntersectionObserver((t=>{try{const e=[];for(const i of t)i.isIntersecting&&this.#Oc(i.target)&&e.push(...this.#Nc(i.target));e.length&&this.#qc(e)}catch(t){this.#Cs.#Re("debug","erro erro_198",t)}}),{rootMargin:`${t.#kc}px 0px`})}catch(t){this.#Cs.#Re("debug","erro erro_199",t),this.#Ec=null}return this.#Ec}#Nc(t){const e=this.#Tc.get(t)??[];this.#Tc.delete(t);try{this.#Ec?.unobserve(t)}catch(t){}return e}#Pc(){if(!this.#Tc.size)return;const t=[];for(const e of[...this.#Tc.keys()])e.isConnected?this.#xc(e)&&this.#Oc(e)&&t.push(...this.#Nc(e)):this.#Nc(e);t.length&&this.#qc(t)}#qc(t){const e=t.filter((t=>this.#Cs.#kt.has(t)));e.length&&(this.#Dc(`entrou no viewport: requisitando ${e.length} bloco(s)`,e),this.#Cs.googletag.cmd.push((()=>{try{this.#Cs.googletag.pubads().refresh(e)}catch(t){this.#Cs.#Re("debug","erro erro_202",t)}})))}};static#ti=class{#Cs;#Fc;#Bc;#zc;#$c;#Uc;#Wc;#Hc;#Gc;#Vc;#Yc;#Qc;#Kc=!1;constructor(t){this.#Cs=t,this.#$c=!1,this.#Hc=!1}async loadScriptVideo(t,e,i){this.#Fc=t,this.#Uc=e,this.#Wc=!!this.#Uc,this.#Gc=i.name,this.#Vc=i.id,this.#Qc=i,this.#Yc=this.#Cs.#Yi(),await this.#Xc()}async#Jc(){try{await this.#Cs.#hs("https://imasdk.googleapis.com/js/sdkloader/ima3.js"),await this.#Cs.#De(`https://cdn.sendwebpush.com/sendwebpush/server_services/${this.#Cs.#P}/videojs/video.js/dist/video-js.min.css`),await this.#Cs.#De(`https://cdn.sendwebpush.com/sendwebpush/server_services/${this.#Cs.#P}/videojs/dist/videojs.ima.css`),await this.#Cs.#hs(`https://cdn.sendwebpush.com/sendwebpush/server_services/${this.#Cs.#P}/videojs/video.js/dist/video.min.js`),await this.#Cs.#hs(`https://cdn.sendwebpush.com/sendwebpush/server_services/${this.#Cs.#P}/videojs/videojs-contrib-ads/dist/videojs.ads.min.js`),await this.#Cs.#hs(`https://cdn.sendwebpush.com/sendwebpush/server_services/${this.#Cs.#P}/videojs/dist/videojs.ima.js`)}catch(t){this.#Cs.#Re("debug","erro erro_039",t)}}#Zc(){try{this.#Fc.style.position="relative";const o=this.#Fc.querySelector("img"),n=o?.src??"";var t=this.#Cs.document.createElement("div");t.id=`swp-video-container-${this.#Yc}`,t.style.cssText="position: absolute; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;";const a=`${this.#Fc.offsetWidth}px`,c=`${this.#Fc.offsetHeight}px`;var e=this.#Cs.document.createElement("div");e.id=`swp-video-close-button-${this.#Yc}`,e.className="vjs-close-button",e.textContent="x",e.addEventListener("click",(()=>{this.#th(this.#Fc),this.#eh()}));var i=this.#Cs.document.createElement("div");i.id=`swp-video-ad-${this.#Yc}`;var s=this.#Cs.document.createElement("video");this.#Bc=this.#Cs.#Yi(),s.id=this.#Bc,s.style.width=a,s.style.height=c,s.className="video-js vjs-default-skin",s.poster=n,s.setAttribute("controls","true"),s.setAttribute("preload","auto");var r=this.#Cs.document.createElement("source");r.src=this.#Qc.configs?.video?`https://cdn.sendwebpush.com/uploads/google-ad-manager-ad-unit-type-has-value/${this.#Qc.configs.video}`:"https://cdn.send-web-push.com/video.mp4",r.type="video/mp4",s.appendChild(r),i.appendChild(s),i.appendChild(e),t.appendChild(i),this.#Fc.appendChild(t)}catch(t){this.#Cs.#Re("debug","erro erro_040",t)}}async#Xc(){if(this.#Fc){if(await this.#Jc(),"undefined"==typeof videojs||"undefined"==typeof google||!google.ima)return this.#Cs.#Ge("info","erro erro_153","dependencia de video nao carregou (videojs/ima) - bloco convertido pra display"),void this.#ih();this.#Zc();try{const i=this.#Fc.querySelector("video"),s={autoplay:this.#Uc,muted:this.#Wc,controls:!0};if(!document.getElementById(i.id))return;const r=videojs(i.id,s),o=this.#sh();let n="dev"!=Sendwebpush.app_env?`https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/${this.#Cs.dataSWP.networkCode}${this.#Cs.dataSWP.childNetworkCode}/${this.#Cs.dataSWP.adUnitRoot}/${this.#Gc}&plcmt=1&ciu_szs=300x250&impl=s&gdfp_req=1&env=instream&output=vast&vpmute=${this.#Wc?1:0}&ad_rule=1&unviewed_position_start=1&ad_type=audio_video&cust_params=${o}&correlator=`:"https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&plcmt=1&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=xml_vmap1&unviewed_position_start=1&cust_params=sample_ar%3Dpremidpostpod%26deployment%3Dgmf-js&cmsid=496&vid=short_onecue&correlator=";var t={id:i.id,adTagUrl:n};r.ima(t);var e=this.#Fc.querySelector("#content_video_html5_api");(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&e?.hasAttribute("controls")&&e.removeAttribute("controls"),r.on("play",(()=>{this.#Cs.#vi(this.#Qc,1,0)})),await r.on("ads-manager",(()=>{r.ima.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(()=>{this.#Hc?(this.#eh(),this.#th()):this.#ih()})),r.ima.addEventListener(google.ima.AdEvent.Type.STARTED,(()=>{this.#Hc=!0,this.#Kc||(this.#Kc=!0,this.#Cs.#vi(this.#Qc,0,1))}))})),this.#zc=this.#Cs.#us(this.#Cs.window,this.#rh.bind(this))}catch(t){this.#Cs.#Re("debug","erro erro_041",t)}}}#ih(){this.#Fc.innerHTML="",this.#Fc.removeAttribute("type"),this.#Fc.removeAttribute("printed")}#sh(){try{const t=this.#Cs.#ai(),e=this.#Cs.#Ae("utm_source"),i=this.#Cs.#W?.value??"",s=`${t}_${this.#Cs.#q}`;let r=this.#Cs.#S.rules?.[this.#Vc],o="0",n="0";if(r?.bid){const{bid:t,price_rule_id:e}=r;o=SendWebPush.#hi(t),n=SendWebPush.#hi(e)}const a=this.#Cs.#S.rulesAnalytics,c=t=>this.#Cs.#ci(SendWebPush.#hi(t)),h={id_post_wp:c(this.#Cs.#N),utm_campaign:c(t),utm_source:c(e),swp_campaigns:c(this.#Cs.#q),article:c(i),track_utm:c(s),price_rule_analytics:a,bids:o,price_rules:n};return encodeURIComponent(Object.entries(h).map((([t,e])=>`${t}=${e}`)).join("&"))}catch(t){this.#Cs.#Re("debug","erro erro_042",t)}}#rh(){try{if(this.#$c){this.#Cs.#gs(this.#Fc,.9)?this.#th(this.#Fc):(this.#Fc.querySelector(`#swp-video-ad-${this.#Yc}`)?.classList.add("video-js-box"),this.#Fc.querySelector("video")?.classList.add("video-js-box"),this.#Fc.querySelector(`#${this.#Bc}`)?.classList.add("video-js-box"),this.#Fc.querySelector(`#swp-video-close-button-${this.#Yc}`).style.display="flex")}else this.#Hc&&(this.#$c=this.#Cs.#gs(this.#Fc,.9))}catch(t){this.#Cs.#Re("debug","erro erro_043",t)}}#th(){try{this.#Fc.querySelector(`#swp-video-ad-${this.#Yc}`)?.classList.remove("video-js-box"),this.#Fc.querySelector("video")?.classList.remove("video-js-box"),this.#Fc.querySelector(`#${this.#Bc}`)?.classList.remove("video-js-box"),this.#Fc.querySelector(`#swp-video-close-button-${this.#Yc}`).style.display="none"}catch(t){this.#Cs.#Re("debug","erro erro_044",t)}}#eh(){try{this.#Cs.window.removeEventListener("scroll",this.#zc)}catch(t){this.#Cs.#Re("debug","erro erro_045",t)}}};static#Zt=class t{static#oh(t){return(Array.isArray(t?.configs)?t.configs:[t?.configs]).filter(Boolean).map((t=>void 0===t.id_config||null===t.id_config?null:String(t.id_config))).filter(Boolean)}#Cs;constructor(t){this.#Cs=t}getAdUnitForDiv(...t){return this.#nh(...t)}verifyAdUnitConfigs(...t){return this.#ah(...t)}monitorActivationTriggers(...t){return this.#ch(...t)}#ah(t){try{if(!t.configs)return null;if(!Array.isArray(t.configs))return 1;if(0==t.configs.length)return null;const e=t=>!this.#Cs.#Xe(t)&&!this.#Cs.#Je(t);let i=null;t.configResolvedBy=null;let s=!1;if(t.blockMarker){const r=String(t.blockMarker).trim(),o=t.configs.find((t=>String(t?.id_config??"")===r));s=!!o,o&&e(o)?(i=o,t.configResolvedBy="marker",this.#Cs.#Ie("block","config resolvida pelo marcador",r,t.idDiv)):o?this.#Cs.#Ie("block","config do marcador nao vale nesta pagina",r,t.idDiv):this.#Cs.#Ie("block","marcador orfao - tratando como div sem marcador",r,t.idDiv)}const r=!t.blockMarker||!s;if(!i&&r){const s=t.configs.find((t=>"1"===String(t?.is_default??"")&&e(t)));s&&(i=s,t.configResolvedBy="default",this.#Cs.#Ie("block","div sem marcador - usando a config padrao",t.idDiv))}if(!i&&t.isManualDiv&&r&&1===t.configs.length){const s=t.configs.find(e);s&&(i=s,t.configResolvedBy="default",this.#Cs.#Ie("block","config unica sem marca de padrao - tratada como padrao",t.idDiv))}return!i&&t.isManualDiv&&(r||s)?(this.#Cs.#Ie("block","sem config aplicavel a esta div - usando o padrao do sistema",t.idDiv),t.configs={},t.configResolvedBy="system",1):(i||(i=t.configs.find(e),i&&(t.configResolvedBy="fallback")),i?t.configs=i:t.isBlocked=!0,1)}catch(t){this.#Cs.#Re("debug","erro erro_075",t)}}#ch(){try{this.#Cs.dataSWP.adUnitAutomatic.forEach((t=>{t.waitFor=this.#Cs.#Ke(t)?.wait_for}));const t=this.#Cs.dataSWP.adUnitAutomatic.filter((t=>t.waitFor?.type));if(!t.length)return;const e=t.filter((t=>"scroll"===t.waitFor.type)),i=t.filter((t=>"time"===t.waitFor.type));if(e.length){let t;const i=()=>{const i=document.documentElement.scrollHeight-window.innerHeight,s=i>0?window.scrollY/i*100:100;let r=!0;e.forEach((t=>{!1===t.activated&&(s>=t.waitFor.value?t.activated=!0:r=!1)})),r&&window.removeEventListener("scroll",t)};t=this.#Cs.#us(window,i,250)}i.forEach((t=>{setTimeout((()=>{t.activated=!0}),1e3*t.waitFor.value)})),t.forEach((t=>{void 0===t.activated&&(t.activated=!1)}))}catch(t){this.#Cs.#Re("debug","erro erro_080",t)}}#hh(t){try{const e=/(div-gpt-ad-\d+-)(\d+)/;return t.idDiv.replace(e,`$1${t.used}`)}catch(t){this.#Cs.#Re("debug","erro erro_047",t)}}#nh(e,i){try{const s=this.#Cs.dataSWP.adUnitsManual.filter((t=>t.type===e));if(!s.length)return this.#Cs.#Ge("info","erro erro_140",`sem ad unit manual para type=${e}`),null;if(i){const e=String(i).trim(),r=s.filter((i=>t.#oh(i).includes(e)));if(r.length){const t=this.#dh(r);return this.#Cs.#Ie("block","div casada por marcador",e,t.name),t}this.#Cs.#Ie("block","marcador sem config correspondente - caindo no rodizio",e)}return this.#dh(s)}catch(t){return this.#Cs.#Re("debug","erro erro_166",t),null}}#dh(t){const e=t.reduce(((t,e)=>e.used<t.used?e:t));return e.idDiv=this.#hh(e),e.used+=1,e}};static#te=class{#Cs;constructor(t){this.#Cs=t}defineStickyRight(...t){return this.#lh(...t)}closeStickyRight(...t){return this.#uh(...t)}createFixed(...t){return this.#gh(...t)}#lh(t){const e=(t,e,i={})=>{const s=document.createElement(t);return e&&(s.className=e),Object.entries(i).forEach((([t,e])=>{"textContent"===t?s.textContent=e:s.setAttribute(t,e)})),s},i=e("img","",{src:"https://cdn.sendwebpush.com/adsendwebpush/assets/painel/uploads/ads/stick-right.png",alt:""}),s=e("div","swp-sticky-right-close-icon");s.appendChild(i);const r=e("div","swp-sticky-right-close-btn");r.appendChild(e("span","swp-sticky-right-label",{textContent:t.configs?.title})),r.appendChild(s);const o=e("div","send-web-push-ads",{"ignore-title":"true"});o.setAttribute("id",t.idDiv),o.setAttribute("printed",1);const n=e("div","swp-sticky-right-creative-container",{id:"sds-slider"});n.appendChild(o);const a=e("div","swp-sticky-right");a.appendChild(r),a.appendChild(n);const c=e("div","swp-sticky-right-floater swp-sticky-right");c.id="send-web-push-sticky-right",c.appendChild(a),this.#ph("send-web-push-sticky-right"),document.body.appendChild(c),s.addEventListener("click",(()=>this.#uh()));let h=window.scrollY;this.#Cs.#us(window,(()=>{const t=window.scrollY,e=t-h;n.scrollTop+=.2*e,h=t}));const d=this.#Cs.#w.adUnitPath(t,"/6355419/Travel/Europe/France/display");return this.#Cs.googletag.defineSlot(d,t.size,t.idDiv).addService(this.#Cs.googletag.pubads())}#uh(){try{const t=this.#Cs.document.getElementById("send-web-push-sticky-right");t&&(this.#Cs.#Ei(t),t.remove())}catch(t){this.#Cs.#Re("debug","erro erro_078",t)}}#ph(t){try{for(const e of[...this.#Cs.document.querySelectorAll(`[id="${t}"]`)])this.#Cs.#Ei(e),e.remove()}catch(t){this.#Cs.#Re("debug","erro erro_163",t)}}#gh(t){try{const e=this.#Cs.document.createElement("div"),i=this.#Cs.document.createElement("div");i.setAttribute("type","fixed"),i.setAttribute("printed",1);const s=this.#Cs.#O?"320px":"728px",r=t.configs.position,o=this.#Cs.#O?"250px":"110px",n="swp-fixed-style";let a=this.#Cs.document.getElementById(n);a||(a=this.#Cs.document.createElement("style"),a.id=n,a.type="text/css",this.#Cs.document.getElementsByTagName("head")[0].appendChild(a)),a.textContent=`.sendwebpushFixed { position: fixed; z-index: 9999999999; left: 50%; transform: translate(-50%); width: ${s}; max-height: ${o}} .sendwebpushFixed--top { top: 0px } .sendwebpushFixed--bottom { bottom: 0px }`,e.className="sendwebpushFixed","top"!==r&&"bottom"!==r||e.classList.add(`sendwebpushFixed--${r}`);const c="anchor"===t.type?"send-web-push-fixed-anchor":"send-web-push-fixed";if("0"!=t.configs?.show_close_button){const t=this.#Cs.document.createElement("img"),i="top"===r?"bottom":"top";t.setAttribute("src","https://cdn.sendwebpush.com/adsendwebpush/assets/painel/uploads/ads/close.png"),t.style.cssText=`position: absolute; width: 15px; right: 0px; ${i}: -15px`,t.addEventListener("click",(()=>this.#mh(c))),t.setAttribute("id",`${c}-img-close`),e.appendChild(t)}return i.setAttribute("id",t.idDiv),e.setAttribute("id",c),e.appendChild(i),e.style.zIndex=9999999999,this.#ph(c),this.#Cs.#Gi(e),1}catch(t){this.#Cs.#Re("debug","erro erro_030",t)}}#mh(t="send-web-push-fixed"){try{var e=this.#Cs.document.getElementById(t);if(!e)return;this.#Cs.#Ei(e),e.remove()}catch(t){this.#Cs.#Re("debug","erro erro_031",t)}}};static#ee=class t{static#yh(t){const e=[],i=[];for(const s of String(t).split(/[,;]/)){const t=s.trim();if(!t)continue;if("fluid"===t.toLowerCase()){e.push("fluid");continue}const r=t.replace(/[\u00d7xX]/g,"x").split("x"),[o,n]=r.map((t=>parseInt(t,10)));2===r.length&&Number.isFinite(o)&&Number.isFinite(n)&&o>0&&n>0?e.push([o,n]):i.push(t)}return{sizes:e,invalid:i}}static#fh="publicidade";static#wh={BR:"pt",PT:"pt",AO:"pt",MZ:"pt",ES:"es",MX:"es",AR:"es",CO:"es",CL:"es",PE:"es",VE:"es",EC:"es",GT:"es",CU:"es",BO:"es",DO:"es",HN:"es",PY:"es",SV:"es",NI:"es",CR:"es",PA:"es",UY:"es",PR:"es",US:"en",GB:"en",AU:"en",NZ:"en",IE:"en",ZA:"en",NG:"en",KE:"en",GH:"en",JM:"en",FR:"fr",DE:"de",AT:"de",IT:"it",NL:"nl",PL:"pl",RO:"ro",RU:"ru",UA:"uk",TR:"tr",GR:"el",CZ:"cs",HU:"hu",SE:"sv",DK:"da",NO:"nb",FI:"fi",SA:"ar",AE:"ar",EG:"ar",MA:"ar",IL:"he",ID:"id",MY:"ms",VN:"vi",TH:"th",JP:"ja",KR:"ko",CN:"zh",TW:"zh",PH:"fil"};#Cs;#vh=null;constructor(t){this.#Cs=t}defineDisplay(...t){return this.#_h(...t)}defineInterstitial(...t){return this.#bh(...t)}defineAnchor(...t){return this.#Sh(...t)}defineFixed(...t){return this.#Ch(...t)}defineSidebar(...t){return this.#Ah(...t)}adUnitPath(...t){return this.#kh(...t)}displayLabel(...t){return this.#Eh(...t).text}#Eh(e){const i=String(e?.title??"").trim()||t.#fh,s=e?.title_languages;if(!s||"object"!=typeof s||Array.isArray(s))return{text:i,waitsCountry:!1};const r={};for(const[t,e]of Object.entries(s)){const i=String(e??"").trim();i&&(r[String(t).trim().toLowerCase()]=i)}for(const t of this.#Th()){if(r[t])return{text:r[t],waitsCountry:!1};const e=t.split("-")[0];if(r[e])return{text:r[e],waitsCountry:!1}}const o=String(this.#Cs.#ft||this.#Cs.#di("swp-country")||"").toUpperCase(),n=t.#wh[o];return n&&r[n]?{text:r[n],waitsCountry:!1}:{text:i,waitsCountry:!o&&"pending"===this.#Cs.#mt?.article&&Object.keys(r).length>0}}static#Lh(t){return`'${String(t).replace(/[\\']/g,"\\$&").replace(/[\r\n\f]+/g," ")}'`}#Th(){if(this.#vh)return this.#vh;let t=[];try{t=navigator.languages&&navigator.languages.length?[...navigator.languages]:[navigator.language]}catch(e){t=[]}return this.#vh=t.map((t=>String(t??"").trim().toLowerCase())).filter(Boolean),this.#vh}#kh(t,e){return"dev"===this.#Cs.app_env?e:`/${this.#Cs.dataSWP.networkCode}${this.#Cs.dataSWP.childNetworkCode}/${this.#Cs.dataSWP.adUnitRoot}/${t.name}`}#_h(e){try{const s=this.#kh(e,"/6355419/Travel/Europe/France/display");var i=this.#Cs.document.getElementById(e.idDiv);const r=i??this.#Cs.document.body,o=this.#Eh(e.configs);r?.style.setProperty("--swp-before-text",t.#Lh(o.text)),o.waitsCountry&&this.#Cs.#yt?.then((()=>{try{r?.style.setProperty("--swp-before-text",t.#Lh(this.#Eh(e.configs).text))}catch(t){}}),(()=>{})),this.#Cs.#g.apply(e,i);let n=!1;const a=("marker"===e.configResolvedBy||"default"===e.configResolvedBy)&&Array.isArray(e.configs?.sizes)&&e.configs.sizes.length?e.configs.sizes.join(","):null,c=i?.getAttribute("sizeCustom")??null;a&&c&&this.#Cs.#Ge("info","erro erro_178",`sizeCustom ignorado - config do painel vence (${e.idDiv})`);const h=a??c;if(h){const{sizes:s,invalid:r}=t.#yh(h);if(r.length&&this.#Cs.#Ge("info","erro erro_143",`sizeCustom invalido: ${r.join("|")} (${e.idDiv})`),1===s.length&&Array.isArray(s[0])){const[t,r]=s[0];i&&(i.style.setProperty("min-width",`${t}px`,"important"),i.style.setProperty("min-height",`${r}px`,"important")),e.size=[t,r],n=!0}else s.length&&(e.size=s.includes("fluid")?s:[...s,"fluid"])}const d=n?null:this.#Rh(e.size),l=this.#Cs.googletag.defineSlot(s,e.size,e.idDiv);return l?(d&&l.defineSizeMapping(d),l.addService(this.#Cs.googletag.pubads())):(this.#Cs.#Re("debug","erro erro_129",`defineSlot null: ${s} / ${e.idDiv}`),null)}catch(t){this.#Cs.#Re("debug","erro erro_005",t)}}#Rh(t){try{if(!this.#Cs.googletag.sizeMapping)return null;if(!Array.isArray(t)||!t.length)return null;const e=e=>{const i=t.filter((t=>"fluid"===t||Array.isArray(t)&&Number(t[0])<=e));return i.length?i:["fluid"]},i=this.#Cs.googletag.sizeMapping();for(const[t,s]of[[1024,1e3],[768,750],[480,470],[0,336]])i.addSize([t,0],e(s));return i.build()}catch(t){return this.#Cs.#Re("debug","erro erro_130",t),null}}#bh(t){try{if(this.#Cs.#u.isActive("interstitial"))return t.notRequestedFrequency=!0,void this.#Cs.#u.scheduleRearm(t);const e=this.#kh(t,"/6355419/Travel/Europe/France/interstitial"),i=this.#Cs.googletag.defineOutOfPageSlot(e,this.#Cs.googletag.enums.OutOfPageFormat.INTERSTITIAL);return i&&(i.setConfig({interstitial:{triggers:{navBar:!0,unhideWindow:!0,endOfArticle:!0,inactivity:!0}}}),i.addService(this.#Cs.googletag.pubads())),i}catch(t){this.#Cs.#Re("debug","erro erro_006",t)}}#Sh(t){try{const e=this.#kh(t,"/6355419/Travel/Europe/France/anchor"),i="top"==t.configs?.position?googletag.enums.OutOfPageFormat.TOP_ANCHOR:googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR,s=googletag.defineOutOfPageSlot(e,i);return s?(s.addService(this.#Cs.googletag.pubads()),s):this.#Ch(t)}catch(t){this.#Cs.#Re("debug","erro erro_086",t)}}#Ch(t){try{const e=this.#kh(t,"/6355419/Travel/Europe/France/fixed");this.#Cs.#f.createFixed(t);const i=this.#Cs.#O?t.sizeMobile:t.sizeDestop;return this.#Cs.googletag.defineSlot(e,i,t.idDiv).addService(this.#Cs.googletag.pubads())}catch(t){this.#Cs.#Re("debug","erro erro_007",t)}}#Ah(t){try{if(this.#Cs.#O)return null;const e=this.#kh(t,"/6355419/Travel/Europe/France/sidebar"),i=[];for(const t of["RIGHT_SIDE_RAIL","LEFT_SIDE_RAIL"]){const s=this.#Cs.googletag.defineOutOfPageSlot(e,this.#Cs.googletag.enums.OutOfPageFormat[t]);s&&(s.addService(this.#Cs.googletag.pubads()),i.push(s))}return t.extraSlots=i.slice(1),i[0]??null}catch(t){return this.#Cs.#Re("debug","erro erro_008",t),null}}};static#ie=class{#Cs;#Ph;#jh=null;#Dh=!1;#xh=!1;#Oh=null;constructor(t){this.#Cs=t}start(...t){return this.#Ih(...t)}apply(...t){return this.#Mh(...t)}onConsentGranted(...t){return this.#Nh(...t)}bucket(...t){return this.#qh(...t)}get promise(){return this.#Ph}#Ih(){this.#Ph=this.#Fh()}async#Fh(){try{if(await this.#Cs.#A.gate,!this.#Cs.#ni())return null;let t=null;try{t=this.#Cs.window.localStorage.getItem("swp_vid")}catch(t){}if(!t){const e=this.#Cs.#di("swp-vid");e&&0!==e&&(t=e)}if(!t){const e=this.#Cs.#e.readHandoff();e?.vid&&(t=e.vid)}const e=!!t;t||(t=this.#Cs.#Yi(!1)),this.#Cs.#e.captureVisitor(t,e);try{this.#Cs.window.localStorage.setItem("swp_vid",t)}catch(t){}return this.#Cs.#oi("swp-vid",t,730,"day",{domain:this.#Cs.#ei(),sameSite:"Lax",secure:"https:"===this.#Cs.window.location.protocol}),this.#jh=await this.#Bh(t),this.#jh}catch(t){return this.#Cs.#Re("debug","erro erro_096",t),null}}async#Bh(t){try{const e=this.#Cs.window.crypto?.subtle;if(e){const i=(new TextEncoder).encode(t),s=await e.digest("SHA-256",i);return Array.from(new Uint8Array(s)).map((t=>t.toString(16).padStart(2,"0"))).join("").slice(0,32)}}catch(t){}return String(t).replace(/-/g,"").slice(0,32)}#Mh(t=150){if(this.#Dh)return Promise.resolve();if(this.#Oh)return this.#Oh;const e=this.#zh(t).finally((()=>{this.#Oh=null}));return this.#Oh=e,e}async#zh(t){try{if(this.#Dh||this.#xh)return;if(await this.#Cs.#A.awaitVerdict(),!this.#Cs.#A.allowsPpid())return;if(this.#Dh||this.#xh)return;this.#xh=!0;const e=this.#jh??await Promise.race([this.#Ph,new Promise((e=>setTimeout((()=>e(null)),t)))]);if(!e)return void(this.#xh=!1);this.#Cs.googletag.cmd.push((()=>{try{this.#Cs.googletag.pubads().setPublisherProvidedId(e),this.#Dh=!0}catch(t){this.#xh=!1,this.#Cs.#Re("debug","erro erro_127",t)}}))}catch(t){this.#xh=!1,this.#Cs.#Re("debug","erro erro_098",t)}}#Nh(){try{if(this.#Dh)return;this.#Ph=this.#Fh(),this.#Mh()}catch(t){this.#Cs.#Re("debug","erro erro_101",t)}}#qh(){try{if(!this.#jh||!this.#Cs.#A.allowsPpid())return null;const t=parseInt(this.#jh.slice(0,4),16);return Number.isFinite(t)?t%100:null}catch(t){return this.#Cs.#Re("debug","erro erro_099",t),null}}};static#Vt=class t{static#$h=1e4;static#Uh=4e3;#Cs;#Wh=null;#Hh=!1;#Gh=!1;#Vh=null;#Yh=!1;#Qh=null;#Kh=null;#Xh=null;#Jh=null;#Zh=!1;#td=!1;#ed=null;constructor(t){this.#Cs=t}define(...t){return this.#id(...t)}markLoading(...t){return this.#sd(...t)}cancelWait(...t){return this.#rd(...t)}#od(){return!this.#Cs.#u.isActive("rewarded")&&"/"!==this.#Cs.window.location.pathname}#id(t){try{if("on_click"===t.configs?.trigger||"transition_page"===t.configs?.trigger)return void this.#Cs.#Ge("info","erro erro_220",`gatilho descontinuado (${t.configs.trigger}) - rewarded nao exibido`);if("element_custom_user"==t.configs.trigger&&(this.#nd(t),0==this.#Cs.document.querySelectorAll(".swp-run-rewarded").length))return;if(!this.#od())return void(this.#Cs.#u.isActive("rewarded")&&(t.notRequestedFrequency=!0,this.#Cs.#u.scheduleRearm(t)));this.#ad(t);const e=this.#Cs.#w.adUnitPath(t,"/22639388115/rewarded_web_example"),i=this.#Cs.googletag.defineOutOfPageSlot(e,this.#Cs.googletag.enums.OutOfPageFormat.REWARDED);return i&&(i.addService(this.#Cs.googletag.pubads()),this.#Hh=!0,"quiz"!=t.configs?.trigger||this.#td||SendWebPush.#ji(t.configs)||(this.#td=!0,this.#Cs.#l.mount(t))),i}catch(t){this.#Cs.#Re("debug","erro erro_014",t)}}#ad(t){try{if(this.#Jh??=t,this.#Zh)return;this.#Zh=!0,this.#Cs.googletag.pubads().addEventListener("rewardedSlotReady",(t=>this.#cd(t))),this.#Cs.document.addEventListener("click",(t=>this.#hd(t))),this.#Cs.googletag.pubads().addEventListener("rewardedSlotClosed",(()=>this.#dd())),this.#Cs.googletag.pubads().addEventListener("rewardedSlotGranted",(t=>this.#ld(t)))}catch(t){this.#Cs.#Re("debug","erro erro_108",t)}}#cd(t){try{this.#Vh=t,this.#Cs.#e.onceEvent("ad_ready","ready"),this.#ud(),this.#gd(),this.#Qh&&this.#pd()}catch(t){this.#Cs.#Re("debug","erro erro_011",t)}}#ud(){try{const t=this.#Jh;if(this.#td||!SendWebPush.#ji(t?.configs))return;if(this.#td=!0,!this.#Cs.#_.holding)return void this.#Cs.#Ge("info","erro erro_226","quiz aguardando anuncio pronto: o pronto chegou depois do prazo do hold - quiz nao exibido");this.#Cs.#l.mount(t)}catch(t){this.#Cs.#Re("debug","erro erro_011",t)}}#md(){this.#Cs.#h.release(),this.#Vh.makeRewardedVisible(),this.#Cs.#nt=!0,this.#Cs.#Ai(this.#Vh.slot),this.#Cs.#ht=this.#Vh.slot,this.#Cs.#ct=!1,clearTimeout(this.#ed),this.#ed=setTimeout((()=>{if(this.#Cs.#ct)return;try{const t=this.#Cs.document.getElementById(this.#Cs.#ht?.getSlotElementId?.());if(t&&t.offsetWidth>0&&t.offsetHeight>0)return this.#Cs.#ct=!0,void this.#Cs.#Ci("ad_opened")}catch(t){}this.#Cs.#Ge("info","erro erro_183","rewarded pronto e clicado, mas nao abriu em 2s - seguiu destino ou fechou"),this.#Cs.#nt=!1;const t=this.#yd(this.#Jh);t?this.#fd(t):this.#Cs.#l.close()}),2e3)}#wd(){try{if(this.#Qh)return;const e=this.#Cs.#fi();this.#Qh={startedAt:e,note:setTimeout((()=>this.#vd()),t.#Uh),deadline:setTimeout((()=>this.#_d()),t.#$h)},this.#Cs.#e.timelineAdd("cta_wait")}catch(t){this.#Cs.#Re("debug","erro erro_107",t)}}#rd(){try{if(!this.#Qh)return null;clearTimeout(this.#Qh.note),clearTimeout(this.#Qh.deadline);const t=Math.round(this.#Cs.#fi()-this.#Qh.startedAt);return this.#Qh=null,this.#Cs.document.querySelectorAll(".swp-cta-note").forEach((t=>t.remove())),t}catch(t){return this.#Qh=null,null}}#pd(){try{const t=this.#rd();if(null===t)return;if(!this.#Cs.document.getElementById("swp-rewarded")||this.#Yh)return;this.#Cs.#e.timelineAdd("wait_ok",t),this.#Cs.#ot=!0,this.#md()}catch(t){this.#Cs.#Re("debug","erro erro_107",t)}}#_d(){try{const t=this.#rd();if(null===t)return;this.#Cs.#e.timelineAdd("wait_to",t),this.#Cs.#ot=!0,this.#Cs.#Ge("info","erro erro_183","rewarded clicado sem anuncio pronto - esperou 10s e nao ficou pronto; seguiu destino ou fechou");const e=this.#yd(this.#Jh);e?this.#fd(e):this.#Cs.#l.close()}catch(t){this.#Cs.#Re("debug","erro erro_107",t)}}#vd(){try{if(!this.#Qh)return;const e=t.#bd(this.#Cs.document.documentElement.lang||this.#Cs.window.navigator?.language);this.#Cs.document.querySelectorAll("#swp-rewarded .swp-run-rewarded").forEach((t=>{if(t.nextElementSibling?.classList?.contains("swp-cta-note"))return;const i=this.#Cs.document.createElement("div");i.className="swp-cta-note",i.setAttribute("aria-live","polite"),i.textContent=e,t.insertAdjacentElement("afterend",i)}))}catch(t){}}static#bd(t){const e=String(t||"").slice(0,2).toLowerCase();return"es"===e?"Solo un momento más…":"en"===e?"Just a moment…":"Só mais um instante…"}#sd(t){try{if(!t||this.#Vh||t.querySelector(".swp-cta-dots"))return;const e=this.#Cs.window.getComputedStyle(t).color,i=this.#Cs.document.createElement("span");i.className="swp-cta-dots",i.setAttribute("aria-hidden","true"),i.style.setProperty("color",e,"important");for(let t=0;t<3;t++)i.appendChild(this.#Cs.document.createElement("i"));t.appendChild(i),t.classList.add("swp-cta-loading"),t.setAttribute("aria-busy","true")}catch(t){}}#gd(){try{this.#Cs.document.querySelectorAll(".swp-run-rewarded.swp-cta-loading").forEach((t=>{t.classList.remove("swp-cta-loading"),t.removeAttribute("aria-busy"),t.querySelectorAll(".swp-cta-dots").forEach((t=>t.remove()))}))}catch(t){}}#hd(t){try{if(!t.target||!t.target.closest(".swp-run-rewarded"))return;if(this.#Yh)return;if(this.#Qh)return void t.preventDefault();if(this.#Cs.#at&&this.#Cs.#Ci("cta_click"),this.#Vh)return this.#Cs.#ot=!0,void this.#md();if(this.#Cs.document.getElementById("swp-rewarded"))return t.preventDefault(),void this.#wd();this.#Cs.#ot=!0,this.#Cs.#Ge("info","erro erro_183","rewarded clicado sem anuncio pronto - leilao nao preencheu; seguiu destino ou fechou");const e=this.#yd(this.#Jh);if(e)return t.preventDefault(),void this.#fd(e);this.#Cs.#l.close()}catch(t){this.#Cs.#Re("debug","erro erro_107",t)}}#dd(){try{this.#Cs.#ct=!0,this.#Cs.#Ci("ad_opened"),this.#Cs.#e.granted||this.#Cs.#e.onceEvent("closed_no_reward","close_ad"),this.#Yh=!0,this.#Vh=null,this.#Cs.#nt=!1,this.#Cs.#E.overlayClosed(),this.#Kh=this.#Cs.#fi();const t=this.#Xh?this.#yd(this.#Jh):null;if(t)return void this.#fd(t);this.#Cs.#_.release(),this.#Cs.#l.close()}catch(t){this.#Cs.#Re("debug","erro erro_012",t)}}#ld(t){try{this.#Xh=t.payload,this.#Cs.#ct=!0,this.#Cs.#Ci("ad_opened"),this.#Cs.#Ci("reward_granted");const e=this.#Cs.#kt.get(t.slot)||this.#Jh;e&&this.#Cs.#wi(e,{granted:1}),this.#Cs.#l.close({releaseHold:!1}),this.#Cs.#_.extendBackstop(),this.#Cs.#u.grant("rewarded",this.#Jh?.configs?.frequency)}catch(t){this.#Cs.#Re("debug","erro erro_013",t)}}#yd(t){try{const e=t?.configs?.trigger;if("quiz"==e){const e=this.#Cs.#n.resolve(t);return e?{url:e,withUtms:!0}:null}return"element_custom_user"==e&&this.#Wh?{url:this.#Wh,withUtms:!1}:null}catch(t){return this.#Cs.#Re("debug","erro erro_109",t),null}}#fd(t){this.#Cs.#Ni("destination_go"),this.#Cs.#gt=!0,this.#Cs.window.location.href=t.withUtms?this.#Cs.#n.appendPageQuery(t.url):t.url}#nd(t){try{if(this.#Gh)return;this.#Gh=!0,this.#Cs.document.addEventListener("click",(t=>{const e=t.target.closest&&t.target.closest(".swp-run-rewarded");if(!e)return;if(!this.#od())return;if(!this.#Vh)return;const i=t.target.closest("a")||(e.matches("a")?e:e.querySelector("a"));i&&i.href&&(this.#Wh=i.href),t.preventDefault()}),!0);const e=()=>{this.#od()&&this.#Cs.document.querySelectorAll(".swp-run-rewarded:not([data-google-interstitial])").forEach((t=>t.setAttribute("data-google-interstitial","false")))};e();new MutationObserver((()=>{e(),!this.#Hh&&this.#Cs.document.querySelector(".swp-run-rewarded")&&(this.#Hh=!0,this.#Cs.#Ne([t]))})).observe(this.#Cs.document.body,{childList:!0,subtree:!0})}catch(t){this.#Cs.#Re("debug","erro erro_110_obs",t)}}};static#Yt=class t{#Cs;#Sd=null;#Cd=null;constructor(t){this.#Cs=t}mount(...t){return this.#Ad(...t)}target(...t){return this.#kd(...t)}close(...t){return this.#Ed(...t)}async#Ad(e){try{const i=e.configs;if(i&&"color_button"in i&&(i.color_button=t.#Td(i.color_button)),"element_custom_user"==i.trigger)return;return"quiz"!=i.trigger?await this.#Ld(e,i):this.#Rd(e,i)}catch(t){this.#Cs.#Re("debug","erro erro_032",t);try{const t=this.#Cs.document.getElementById("swp-rewarded");t&&!t.querySelector(".quiz-option, .swp-run-rewarded")&&this.#Ed()}catch(t){}}}static#Pd(t){try{const e=t.ownerDocument,i=e.documentElement,s=e.body,r=t=>"visible"===t||"clip"===t,o=getComputedStyle(i),n=r(o.overflowX)&&r(o.overflowY);for(let e=t;e&&e!==i;e=e.parentElement){if(e===s&&n)continue;const t=getComputedStyle(e);if(!r(t.overflowX)||!r(t.overflowY))return e}return null}catch(e){return t}}#kd(t){if(this.#Sd?.isConnected)return this.#Sd;const e=this.#Cs.document;let i=null;if(t?.element_custom)try{i=e.querySelector(t.element_custom)}catch(t){i=null}if(i||(i=e.querySelector(".entry-content, .post_content, .post-content")),i&&i!==e.body)try{i.getBoundingClientRect().height<420&&(i=null)}catch(t){i=null}return this.#Sd=i||e.body,this.#Sd}async#Ld(e,i){if(!i?.title)return 1;const s=this.#kd(i);if(!s)return 1;const r=s===this.#Cs.document.body;if(!r)try{"static"===getComputedStyle(s).position&&(s.classList.add("swp-gate-host"),this.#Cd=s)}catch(t){}const o=SendWebPush.#Oi("div",{id:"swp-rewarded",className:r?"swp-reward-wrap swp-reward-wrap--page":"swp-reward-wrap"}),n=SendWebPush.#Oi("div",{className:"swp-reward-modal"}),a=SendWebPush.#Oi("div",{className:"swp-reward-card"}),c=null!=i.icon_type&&void 0!==i.icon_type?i.icon_type:"emoji";"image"===c&&i.icon_image?a.appendChild(SendWebPush.#Oi("img",{src:`https://cdn.sendwebpush.com/uploads/google-ad-manager-ad-unit-type-has-value/${i.icon_image}`,className:"swp-reward-icon-img"})):"emoji"===c&&i.icon&&a.appendChild(SendWebPush.#Oi("div",{className:"swp-reward-icon",textContent:i.icon}));const h=t.#jd(i);[{tag:"h3",className:"swp-reward-title",textContent:i.title,style:t.#Dd(i.font_size_title)+t.#xd(i.color_title)},{tag:"p",className:"swp-reward-desc",textContent:i.description,style:t.#Dd(i.font_size_description)+t.#xd(i.color_description)},{tag:"button",id:"swp-run-rewarded",className:h.className,textContent:i.text_button,style:h.style+t.#Dd(i.font_size_button)}].forEach((t=>a.appendChild(SendWebPush.#Oi(t.tag,t))));const d=a.querySelector(".swp-run-rewarded");d&&this.#Cs.#a.bindResilientTap(d),d&&this.#Cs.#d.markLoading(d);const l=SendWebPush.#Oi("div",{className:"swp-reward-footer",textContent:i.message_view_ad,style:t.#Dd(i.font_size_ad_message)+t.#xd(i.color_ad_message)});n.append(a,l);const u=this.#Od(i,"swp-reward-policy");u&&(n.appendChild(u),n.classList.add("swp-reward-has-policy"));const g=this.#Id(i);g&&n.appendChild(g),o.appendChild(n),s.prepend(o),r?(this.#Cs.#h.lockForGate(o),this.#Cs.#at=!0,this.#Cs.#Ci("gate_shown",e)):this.#Cs.#h.unlockedView((()=>t.#Pd(s)))?(o.classList.add("swp-reward-wrap--tracked"),this.#Cs.#c.track(o)):(this.#Cs.#at=!0,this.#Cs.#Ci("gate_shown",e)),this.#Cs.#a.watchDeadClicks()}#Rd(e,i){const[s,r,o,n,a,c,h]=[{tag:"div",className:"swp-quiz-overlay",id:"swp-rewarded"},{tag:"div",className:"swp-quiz-container"},{tag:"div",className:"swp-quiz-progress"},{tag:"div",className:"swp-quiz-progress-bar",id:"progress-bar"},{tag:"h4",id:"question-number"},{tag:"h2",id:"question-text"},{tag:"div",id:"options-container"}].map((t=>SendWebPush.#Oi(t.tag,t)));n.style.background=i.color_button;const d=t.#Td(i?.color_quiz_background);d&&r.style.setProperty("background",d,"important");const l=t.#Td(i?.color_quiz_overlay);l&&s.style.setProperty("background",l,"important");const u=t.#Td(i?.color_quiz_text);u&&c.style.setProperty("color",u,"important"),o.appendChild(n),r.append(o,a,c,h);const g=this.#Md(i);g&&r.prepend(g);const p=SendWebPush.#Fi(i?.quiz_final_image);if(p)try{(new Image).src=p}catch(t){}const m=this.#Od(i,"swp-quiz-policy");m&&r.appendChild(m);const y=this.#Id(i);y&&r.appendChild(y),s.appendChild(r),document.body.appendChild(s),this.#Cs.#h.lock(),this.#Cs.#at=!0,this.#Cs.#Ci("gate_shown",e),this.#Cs.#a.watchDeadClicks(),new SendWebPush.#Nd(this.#Cs,e,i,r,a,c,h,n).start()}static#jd(t){const e=t??{},i=String(e.button_size??"")||"normal",s=String(e.button_shape??"")||"rounded",r="1"===String(e.button_border??"0"),o=["swp-run-rewarded","swp-reward-cta","large"===i?"swp-reward-cta-lg":"","full"===i?"swp-reward-cta-full":"","square"===s?"swp-reward-cta-square":""].filter(Boolean).join(" ");let n=`background: ${e.color_button} !important; color: ${SendWebPush.#Ii(e)} !important;`;if(r){const t=String(e.button_border_color??"").trim();n+=` border: 3px solid ${/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t)?t:"#000000"} !important;`}return{className:o,style:n}}static#Td(t){const e=String(t??"").trim();return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(e)?e:""}static#Dd(t){const e=Number.parseInt(t,10);return!Number.isFinite(e)||e<10||e>40?"":` font-size: ${e}px !important;`}static#xd(t){const e=String(t??"").trim();return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(e)?` color: ${e} !important;`:""}#Id(t){try{if("1"!==String(t?.show_modal_close_button??""))return null;const e=SendWebPush.#Oi("button",{type:"button",className:"swp-reward-close",textContent:"×",ariaLabel:"Close"});return this.#Cs.#a.bindResilientTap(e),e.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),this.#Cs.#e.quizClosed(),this.#Ed()})),e}catch(t){return this.#Cs.#Re("debug","erro erro_176",t),null}}#Od(t,e){try{const i="1"===String(t?.show_policy_links??"")?[{url:this.#Cs.dataSWP?.privacyPolicyUrl,label:t?.privacy_policy_label},{url:this.#Cs.dataSWP?.termsOfUseUrl,label:t?.terms_of_use_label}].filter((t=>String(t.url??"").trim())):[],s=String(t?.policy_footer_text??"").trim();if(!i.length&&!s)return null;const r=SendWebPush.#Oi("div",{className:e});return i.forEach(((t,e)=>{e>0&&r.appendChild(SendWebPush.#Oi("span",{className:"swp-policy-sep",textContent:"·"})),r.appendChild(SendWebPush.#Oi("a",{className:"swp-policy-link",href:t.url,target:"_blank",rel:"noopener noreferrer nofollow",textContent:String(t.label??"").trim()||t.url}))})),s&&r.appendChild(SendWebPush.#Oi("p",{className:"swp-policy-text",textContent:s})),r}catch(t){return this.#Cs.#Re("debug","erro erro_177",t),null}}#Md(t){try{const e=SendWebPush.#Fi(t?.quiz_logo);if(!e)return null;const i=SendWebPush.#Oi("div",{className:"swp-quiz-logo-wrap"});return i.appendChild(SendWebPush.#Oi("img",{className:"swp-quiz-logo",src:e,alt:""})),i}catch(t){return this.#Cs.#Re("debug","erro erro_203",t),null}}#Ed({releaseHold:t=!0}={}){try{if(this.#Cs.#d.cancelWait(),this.#Cs.#h.release(),this.#Cs.#c.detach(),this.#Cd){try{this.#Cd.classList.remove("swp-gate-host")}catch(t){}this.#Cd=null}t&&this.#Cs.#_.release();const e=this.#Cs.document.getElementById("swp-rewarded");if(!e)return;return e&&e.remove(),1}catch(t){this.#Cs.#Re("debug","erro erro_033",t)}}};static#se=class{#Cs;#qd=[];#Fd=!1;#Bd=null;#zd=!1;#$d=null;#Ud=null;constructor(t){this.#Cs=t}dispatch(...t){return this.#Wd(...t)}onRenderEnded(...t){return this.#Hd(...t)}extendBackstop(...t){return this.#Gd(...t)}release(...t){return this.#Vd(...t)}get holding(){return this.#zd}get overlayRoot(){return this.#Ud}#Wd(t,e){let i=[],s=e;try{const r=t.find((t=>t.slot&&"rewarded"===t.type&&this.#Yd(t)));if(!r||this.#zd||this.#Fd||(this.#zd=!0,this.#Ud=this.#Yd(r),this.#Qd(r.slot)),this.#zd&&!this.#Fd){const e=t.find((t=>t.slot&&"rewarded"===t.type));e&&e.slot!==this.#$d&&(this.#$d=e.slot)}if(this.#zd&&!this.#Fd&&this.#Ud){const r=new Set;for(const e of t)if("rewarded"!==e.type&&this.#Kd(e))for(const t of[e.slot,...e.extraSlots??[]])t&&r.add(t);i=e.filter((t=>r.has(t))),s=e.filter((t=>!r.has(t)))}}catch(t){this.#Cs.#Re("debug","erro erro_155",t),i=[],s=e}i.length&&this.#qd.push(...i),s.length&&this.#Cs.#p.refreshOrObserve(s)}#Kd(t){const e=this.#Ud;if(!e)return!1;if(e===this.#Cs.document.body||e===this.#Cs.document.documentElement)return!0;const i=t.idDiv?this.#Cs.document.getElementById(t.idDiv):null;return!!i&&e.contains(i)}#Yd(t){try{const e=t.configs;return"quiz"===e?.trigger?SendWebPush.#ji(e)||this.#Cs.document.getElementById("swp-rewarded")?this.#Cs.document.body:null:"element_custom"!==e?.trigger?null:e?.title?this.#Cs.#l.target(e):null}catch(t){return this.#Cs.#Re("debug","erro erro_156",t),null}}#Qd(t){try{this.#$d=t,this.#Bd=setTimeout((()=>{this.#Cs.document.getElementById("swp-rewarded")?this.#Bd=null:this.#Vd()}),8e3)}catch(t){this.#Cs.#Re("debug","erro erro_157",t)}}#Hd(t){if(this.#zd&&!this.#Fd&&t.slot===this.#$d)if(this.#Cs.#kt.has(t.slot))if(this.#Cs.document.getElementById("swp-rewarded"))this.#Bd&&(clearTimeout(this.#Bd),this.#Bd=null);else{if(!t.isEmpty&&SendWebPush.#ji(this.#Cs.#kt.get(t.slot)?.configs))return;this.#Vd()}else this.#Bd&&this.#Cs.document.getElementById("swp-rewarded")&&(clearTimeout(this.#Bd),this.#Bd=null)}#Gd(){this.#zd&&!this.#Fd&&(clearTimeout(this.#Bd),this.#Bd=setTimeout((()=>this.#Vd()),SendWebPush.#dt))}#Vd(){try{if(!this.#zd||this.#Fd)return;if(this.#Fd=!0,this.#zd=!1,this.#Bd&&(clearTimeout(this.#Bd),this.#Bd=null),this.#qd.length){const t=this.#qd.splice(0);this.#Cs.googletag.cmd.push((()=>{this.#Cs.#p.refreshOrObserve(t)}))}}catch(t){this.#Cs.#Re("debug","erro erro_159",t)}}};static#re=class t{static#Xd=1e3;static#Jd="swp_refresh";#Cs;#Zd=new Map;#tl=!1;#el=!1;constructor(t){this.#Cs=t}isRefresh(...t){return this.#il(...t)}register(...t){return this.#sl(...t)}monitorVisibility(...t){return this.#rl(...t)}get slotData(){return this.#Zd}#il(t){try{if(!t)return 0;for(const e of this.#Zd.values())if(e.slot===t||e.extraSlots?.includes(t))return e.refreshed?1:0;return 0}catch(t){return 0}}#ol(){try{return document.hasFocus()||"visible"===document.visibilityState}catch(t){this.#Cs.#Re("debug","erro erro_023",t)}}#nl(e){try{if(!this.#tl||!e?.slot||null===e.cycleStartedAt)return;if("interstitial"===e.type||"rewarded"===e.type)return;if(Date.now()-e.cycleStartedAt<1e3*this.#Cs.#R)return;if(e.viewability<this.#Cs.#L||!this.#ol())return;if(null==e.visibleSince||Date.now()-e.visibleSince<t.#Xd)return;e.refreshed=!0,e.cycleStartedAt=Date.now(),this.#Cs.googletag.cmd.push((()=>{const t=[e.slot,...e.extraSlots??[]];this.#al(t,"1"),this.#Cs.googletag.pubads().refresh(t)}))}catch(t){this.#Cs.#Re("debug","erro erro_205",t)}}#al(e,i){try{for(const s of e)s&&s.setConfig({targeting:{[t.#Jd]:i}})}catch(t){this.#Cs.#Re("debug","erro erro_230",t)}}#sl(t){try{if(!t?.idDiv||!t.slot)return;const e=this.#Zd.get(t.idDiv);this.#Zd.set(t.idDiv,{viewability:0,viewed:e?.viewed??!1,cycleStartedAt:null,refreshed:!1,visibleSince:null,slot:t.slot,extraSlots:(t.extraSlots??[]).filter(Boolean),type:t.type}),this.#al([t.slot,...t.extraSlots??[]],"0")}catch(t){this.#Cs.#Re("debug","erro erro_133",t)}}#rl(){try{if(this.#el)return;this.#el=!0;const t=()=>{this.#tl=!0,setInterval((()=>{this.#Zd.forEach((t=>this.#nl(t)))}),1e3)};this.#Cs.googletag.pubads().addEventListener("slotVisibilityChanged",(e=>{try{e.inViewPercentage>0&&this.#Cs.#Ai(e.slot);const i=this.#Cs.#kt.get(e.slot);if(!i?.idDiv)return;const s=i.idDiv,r=this.#Zd.get(s);if(!r)return;const o=e.inViewPercentage,n=e.slot===r.slot;n&&(r.viewability=o,o>=this.#Cs.#L?r.visibleSince??=Date.now():r.visibleSince=null),n&&null===r.cycleStartedAt&&o>=this.#Cs.#L&&(r.cycleStartedAt=Date.now()),this.#Zd.set(s,r),!this.#tl&&this.#Cs.dataSWP.statusRefresh&&t(),this.#nl(r),o>=50&&!r.viewed&&(r.viewed=!0,this.#Cs.#ds("ad_view",s,i),this.#Zd.set(s,r))}catch(t){this.#Cs.#Re("debug","erro erro_024",t)}}))}catch(t){this.#Cs.#Re("debug","erro erro_025",t)}}};static#cl=class t{static#hl=["country","device","type","source","campaign"];static#dl(t){const e=[];for(const i of Array.isArray(t)?t:[]){if(null==i||""===i)continue;const t=String(i).toLowerCase();e.includes(t)||e.push(t)}return e}static match(e,i){const s=e?.criteria??{};for(const e of t.#hl){const r=t.#dl(s[e]);if(!r.length)continue;const o=i?.[e],n=t.#dl(Array.isArray(o)?o:[o]);if(!r.some((t=>n.includes(t))))return null}const r=t.#dl(s.path);if(!r.length)return 0;const o=String(i?.path??"").toLowerCase();let n=null;for(const t of r)""!==t&&o.startsWith(t)&&(n=Math.max(n??0,t.length));return n}static specificity(e){let i=0;for(const s of[...t.#hl,"path"])t.#dl(e?.criteria?.[s]).length&&i++;return i}static resolve(e,i,s){const r=[];for(const s of Array.isArray(e)?e:[]){const e=t.match(s,i);null!==e&&r.push([t.specificity(s),e,Number(s.id),s])}r.sort(((t,e)=>e[0]-t[0]||e[1]-t[1]||t[2]-e[2]));const o={};for(const t of s){o[t]=null;for(const[,,,e]of r){const i=e?.values?.[t];if(null!=i&&""!==i){o[t]=i;break}}}return{winner:r.length?r[0][2]:null,values:o}}};static#oe=class{#Cs;#ll=[];#ul=null;#gl;#pl;#ml=!1;#yl=null;#fl=null;#wl=new Set;constructor(t){this.#Cs=t}adopt(...t){return this.#vl(...t)}applyTargeting(...t){return this.#_l(...t)}ladderSteps(...t){return this.#bl(...t)}ladderBid(...t){return this.#Sl(...t)}settingsFor(...t){return this.#Cl(...t)}startRefetch(...t){return this.#Al(...t)}get rules(){return this.#ll}get rulesAnalytics(){return this.#yl}#Cl(t){const e=this.#Cs.dataSWP?.priceRuleSettings??{},i={rebid_enabled:e.rebid_enabled,retry_no_bid:e.retry_no_bid,ladder_steps:e.ladder_steps,ladder_decay_percent:e.ladder_decay_percent,ladder_from_segment:!1,segment:null},s=this.#Cs.dataSWP?.priceRuleSegments;if(!Array.isArray(s)||!s.length)return i;try{const e=t?t.ladder_type??t.type:null,r={country:this.#Cs.#x,device:this.#Cs.#I,type:e,path:this.#Cs.window.location.pathname,source:[this.#Cs.#M,this.#ul?.utm_source??null],campaign:this.#fl},o=["rebid_enabled","retry_no_bid","ladder_steps","ladder_decay_percent"],n=SendWebPush.#cl.resolve(s,r,o);for(const t of o)null!==n.values[t]&&(i[t]=n.values[t]);i.ladder_from_segment=null!==n.values.ladder_steps,i.segment=n.winner;const a=`${n.winner}|${e}`;null===n.winner||this.#wl.has(a)||(this.#wl.add(a),this.#Cs.#Ie("segmento",`segmento ${n.winner} no bloco ${e}:`,{rebid:i.rebid_enabled,retry:i.retry_no_bid,cascata:i.ladder_steps,queda:i.ladder_decay_percent},r))}catch(t){this.#Cs.#Re("debug","erro erro_228",t)}return i}#bl(t){const e=t?this.#Cl(t):this.#Cs.dataSWP.priceRuleSettings??{},i=Number(e?.ladder_steps??1);return!Number.isFinite(i)||i<=1?0:!t||e.ladder_from_segment||this.#kl(t)?Math.min(Math.floor(i)-1,50):0}#kl(t){const e=this.#Cs.dataSWP.priceRuleSettings?.ladder_ad_unit_types;return!Array.isArray(e)||!e.length||e.includes(t.ladder_type??t.type)}#Sl(t,e,i=null){try{const s=this.#Cs.dataSWP.ladderBids;if(!Array.isArray(s)||!s.length)return null;const r=Number((i?this.#Cl(i):this.#Cs.dataSWP.priceRuleSettings)?.ladder_decay_percent??30);if(!(r>0&&r<100))return null;let o=Number(t);if(!(o>0))return null;for(let t=0;t<e;t++){const t=o*(1-r/100);let e=null;for(const i of s){const s=Number(i);s>0&&s<=t&&s<o&&(null===e||s>e)&&(e=s)}if(null===e)return null;o=e}return o}catch(t){return this.#Cs.#Re("debug","erro erro_115",t),null}}#El(t){try{const e=t.bid_step??0,i=this.#ll?.[t.ladder_root??t.id]??null;if(e<=0)return i;if(!i?.bid)return null;const s=this.#Sl(i.bid,e,t);if(null===s)return null;const r=this.#ll?.[t.id]??null;return{bid:s,ladder:!0,price_rule_id:r?.price_rule_id??null}}catch(t){return this.#Cs.#Re("debug","erro erro_084",t),null}}#_l(t){try{if(!t.slot)return;if(!this.#Cs.dataSWP.priceRuleSettings.status)return;const e=this.#El(t);let i;if(e?.ladder&&!t.bid_disabled)t.has_price_rule=!0,i={bids:[SendWebPush.#hi(e.bid)]},e.price_rule_id&&(i.price_rules=[SendWebPush.#hi(e.price_rule_id)]),this.#Cs.#Ie("cascata",`aplicado no GAM: degrau ${t.bid_step}, bids=${SendWebPush.#hi(e.bid)}, `+(e.price_rule_id?`price_rules=${SendWebPush.#hi(e.price_rule_id)} (regra do rebid)`:"sem price_rules (bloco de rebid sem regra)"),t.slot.getAdUnitPath?.());else if(e?.bid&&!t.bid_disabled){t.has_price_rule=!0;const{bid:s,price_rule_id:r}=e;i={bids:[SendWebPush.#hi(s)],price_rules:[SendWebPush.#hi(r)]},this.#pl?.has(String(t.id))&&this.#yl&&(i.price_rule_analytics=[SendWebPush.#hi(this.#yl)])}else i={price_rule_analytics:[SendWebPush.#hi(this.#yl)],bids:["0.00"]};i={bids:null,price_rules:null,price_rule_analytics:null,...i},t.journey_floor=Number(i.bids?.[0]);for(const e of[t.slot,...t.extraSlots??[]])e&&e.setConfig({targeting:i})}catch(t){this.#Cs.#Re("debug","erro erro_195",t)}}#Al(){try{if(this.#ml)return;if(this.#ml=!0,!this.#Cs.#ve())return;if(!this.#Cs.dataSWP?.priceRuleSettings?.status)return;const t=parseInt(this.#Cs.#Ae("swp_refetch_ms"),10);let e=-1,i=-1;const s=()=>36e5*Math.floor(Date.now()/36e5),r=()=>{const t=Date.now();for(const r of[s(),s()+36e5])if(e!==r&&i!==r)for(const e of[r+6e4+2e4*Math.random(),r+12e4+2e4*Math.random(),r+18e4+2e4*Math.random(),r+6e4*(4+1.5*Math.random())])if(e>t)return e;return s()+36e5+6e4+2e4*Math.random()};let o=Date.now(),n=null;const a=()=>{clearTimeout(n),n=setTimeout(c,t>0?t:Math.max(15e3,r()-Date.now()))},c=async()=>{try{if(this.#Cs.#pt)return;if("visible"!==this.#Cs.document.visibilityState||!this.#ul)return void a();const t=s(),r=Date.now()>=t+24e4,n=this.#ul,c=`https://cdn.sendwebpush.com/sendwebpush/domain-articles/${this.#Cs.dataSWP.idDomain}-${n.pathHash}.json?v=${SendWebPush.#Ji()}`,h=await fetch(c,{method:"GET"});if(h.ok){const s=await h.json(),a=this.#Tl(s,n),c=a.rules;if(JSON.stringify(c)!==JSON.stringify(this.#ll)){e=t,o=Date.now(),this.#ll=c,this.#pl=a.fallback,this.#yl=a.analytics;const i=new Set(this.#Cs.#kt.values());for(const t of i)this.#_l(t);this.#Cs.#Ie("preco",`refetch aplicou lance novo em ${i.size} bloco(s)`),this.#Cs.#Ge("info","erro erro_181","piso atualizado em aba viva - proximos leiloes ja saem com o lance vigente")}else r&&(i=t,o=Date.now()),this.#Cs.#Ie("preco",r?"refetch-garantia sem mudanca de lance - hora resolvida":"varredura sem mudanca - proxima no minuto seguinte")}}catch(t){this.#Cs.#Ie("preco","refetch falhou",String(t))}a()};a(),this.#Cs.document.addEventListener("visibilitychange",(()=>{try{if(t>0)return;if("visible"!==this.#Cs.document.visibilityState)return;if(this.#Cs.#pt||!this.#ul)return;const e=s()+24e4;Date.now()>=e&&o<e&&c()}catch(t){}}))}catch(t){this.#Cs.#Re("debug","erro erro_182",t)}}#vl(t,e,i,s,r){const o=this.#Tl(t,e);this.#ll=o.rules,this.#pl=o.fallback,this.#Cs.#Ie("price-rules","arvore",t.price_rules),this.#Cs.#Ie("price-rules",`chave [${this.#Cs.#I}][${this.#Cs.#M}][${i}][${s}][${this.#Cs.#x}][${r}]`,this.#ll),this.#yl=o.analytics,this.#ul=e;const n=this.#Cs.dataSWP?.priceRuleSegments;if(Array.isArray(n)&&n.length){const t=[...this.#Cs.dataSWP.adUnitAutomatic??[],...this.#Cs.dataSWP.adUnitsManual??[]];for(const e of new Set(t.map((t=>t?.type)).filter(Boolean)))this.#Cl({type:e})}}#Tl(t,e){try{const i=this.#Cs.#I,s=this.#Cs.#M,r=this.#Cs.#x,o=e.pathHash,n=0!==e.utm_medium||0!==e.utm_campaign,a=e.utm_source&&e.utm_source!==s?e.utm_source:null,c=t?.price_rules?.[i],h=[];h[0]=c?.[s]?.[0]?.[0]?.[r]?.[o],n&&(h[1]=c?.[s]?.[e.utm_medium]?.[e.utm_campaign]?.[r]?.[o]),a&&(h[2]=c?.[a]?.[0]?.[0]?.[r]?.[o]),a&&n&&(h[3]=c?.[a]?.[e.utm_medium]?.[e.utm_campaign]?.[r]?.[o]);const d=this.#Cs.#ci(SendWebPush.#hi(String(this.#Cs.#F??""))),l=t?.campaign_map?.[d];this.#fl=null!=l?l:null,null!=l&&(h[4]=t?.campaign_rules?.[l]?.[i]?.[r]);const u=this.#Ll(t,e),g=u.level,p=this.#Rl(),m={},y={};h.forEach(((t,e)=>{if(t&&"object"==typeof t&&!Array.isArray(t))for(const[i,s]of Object.entries(t)){m[i]=s,y[i]=e;const r=p[i];void 0!==r&&(void 0!==t[r]?(m[r]=t[r],y[r]=e):(delete m[r],delete y[r]))}}));const f=new Set(Object.keys(y).filter((t=>y[t]<g)));return h[4]&&this.#Cs.#Ie("price-rules",`regra de campanha ${l} (utm ${d})`,h[4]),{rules:m,fallback:f,analytics:u.value}}catch(i){this.#Cs.#Re("debug","erro erro_207",i);const s=t?.price_rules?.[this.#Cs.#I]?.[this.#Cs.#M];return{rules:s?.[e?.utm_medium]?.[e?.utm_campaign]?.[this.#Cs.#x]?.[e?.pathHash]??s?.[0]?.[0]?.[this.#Cs.#x]?.[e?.pathHash]??{},fallback:new Set,analytics:t?.price_rule_analytics?.[this.#Cs.#M]?.[e?.utm_medium]?.[e?.utm_campaign]?.[e?.pathHash]??0}}}#Ll(t,e){try{const i=e.utm_source&&e.utm_source!==this.#Cs.#M?e.utm_source:null,s=0!==e.utm_medium||0!==e.utm_campaign,r=t?.price_rule_analytics,o=i?r?.[i]?.[e.utm_medium]?.[e.utm_campaign]?.[e.pathHash]:void 0;if(null!=o)return{value:o,level:s?3:2};const n=r?.[this.#Cs.#M]?.[e.utm_medium]?.[e.utm_campaign]?.[e.pathHash];return{value:n??0,level:s&&null!=n?1:0}}catch(t){return this.#Cs.#Re("debug","erro erro_208",t),{value:0,level:0}}}#Rl(){try{if(this.#gl)return this.#gl;const t={};for(const e of[this.#Cs.dataSWP?.adUnitAutomatic,this.#Cs.dataSWP?.adUnitsManual]){const i=Array.isArray(e)?e:Object.values(e??{});for(const e of i)null!=e?.id&&e?.ad_unit_rebid&&(t[e.id]=e.ad_unit_rebid)}return this.#gl=t,t}catch(t){return this.#Cs.#Re("debug","erro erro_209",t),{}}}};static#ne=class{#Cs;#Pl;#jl;#Dl;#xl;constructor(t){this.#Cs=t}initFetchMode(...t){return this.#Ol(...t)}start(...t){return this.#Il(...t)}awaitData(...t){return this.#Ml(...t)}get fetchArm(){return this.#xl}#Ml(){try{if(!this.#jl){const t=()=>this.#Cs.window.performance?.now?.()??Date.now(),e=t();this.#jl=(this.#Pl??Promise.resolve()).then((()=>{}),(()=>{})).then((()=>{const i=t()-e;if(i<1e3)return;const s=i<2e3?"1-2s":i<4e3?"2-4s":i<8e3?"4-8s":"acima de 8s";this.#Cs.#Re("info","erro erro_122",`article gate esperou ${s} - leilao segurado ate o JSON chegar`)}))}return this.#jl}catch(t){return this.#Cs.#Re("debug","erro erro_105",t),Promise.resolve()}}#Ol(){const t={method:"GET"};try{this.#Dl=t,this.#xl="x";let e=!1;const i=this.#Cs.#Dt,s=this.#Cs.#jt;if(void 0!==i&&"string"==typeof s&&""!==s){const t=new URL(s),i=this.#Cs.window.location?.protocol;e="https://cdn.sendwebpush.com"===t.origin&&t.pathname.includes("/client_services/")&&("https:"===i||"http:"===i)&&"null"!==this.#Cs.window.origin}let r=e&&(null===i||"use-credentials"===i);if(this.#Cs.#rt){let t=null;try{t=new URLSearchParams(this.#Cs.window.location.search).get("swp_artcred")}catch(e){t=null}"1"===t?r=!0:"0"===t&&(r=!1)}this.#xl=r?"i":e?"o":"x",this.#Dl=r?{method:"GET",credentials:"include"}:t}catch(e){this.#Dl=t,this.#xl="x"}return this.#Dl}#Il(){this.#Pl=this.#Nl()}async#Nl(){this.#Cs.#s.init();let t=!1;try{let e=this.#Cs.#ls(this.#Cs.window.location.pathname),i=this.#Cs.#H.replace(`${this.#Cs.#F}_`,"");i=this.#Cs.#ii(i),i=this.#Cs.#ls(i);const s=`v=${SendWebPush.#Ji()}`,r=`https://cdn.sendwebpush.com/sendwebpush/domain-articles/${this.#Cs.dataSWP.idDomain}-${e}.json?${s}`,o=await this.#ql(r);if(this.#Fl(o),o.ok){const{json:s,bodyError:n}=await this.#Bl(o,r);if(n)throw t=!0,n;this.#zl(s,i),this.#Cs.dataSWP.priceRuleSettings.status&&await this.#$l(s,e)}return 1}catch(e){try{this.#Cs.#wt(null)}catch(t){}t||(this.#Cs.#mt.article="failed");if(this.#Cs.#ut||"visible"!==this.#Cs.document.visibilityState)return void this.#Cs.#Ie("artigo","fetch abortado - pagina saindo (nao reportado)",String(e));if(t)return void this.#Cs.#Re("debug","erro erro_218",`${e} (pagina-visivel, corpo-ilegivel)`);this.#Cs.#Re("debug","erro erro_056",`${e} (pagina-visivel, falhou-nas-2)`)}finally{this.#Cs.#s.schedule()}}async#ql(t){let e=null,i=!1;const s=this.#Dl||{method:"GET"},r="include"===s.credentials,o=this.#Cs.window.performance?.now?.()??Date.now();this.#Cs.#s.fetchStart(t,o);try{e=await fetch(t,{...s})}catch(s){i=!0,this.#Cs.#s.retry(),e=await fetch(t,{method:"GET",cache:"reload"})}i&&(r?this.#Cs.#Re("info","erro erro_206","fetch de artigo credenciado falhou e a retentativa anonima funcionou"):this.#Cs.#Re("info","erro erro_172","fetch de artigo falhou na 1a e funcionou na retentativa"));const n=(this.#Cs.window.performance?.now?.()??Date.now())-o;return this.#Cs.#s.fetchEnd(n,o+n),e}#Fl(t){try{this.#Cs.#wt(String(t.headers.get("x-swp-country")||"").toUpperCase()||null)}catch(t){this.#Cs.#wt(null)}this.#Cs.#s.readHeaders(t)}async#Bl(t,e){let i;try{i=await t.json()}catch(t){try{const t=await fetch(e,{method:"GET",cache:"reload"});t.ok&&(i=await t.json())}catch(t){}if(void 0===i)return{json:i,bodyError:t};this.#Cs.#Re("info","erro erro_217","corpo do artigo ilegivel na 1a leitura e lido na retentativa")}return{json:i,bodyError:null}}#zl(t,e){if(this.#Cs.#W=t.article,this.#Cs.#$=t.campaigns[this.#Cs.#F]??SendWebPush.#Xi(this.#Cs.#di("swp-last-campaign"))??null,this.#Cs.#$){const t={...this.#Cs.#$};delete t.placements,this.#Cs.#oi("swp-last-campaign",JSON.stringify(t),30,"day")}this.#Cs.#G=this.#Cs.#$?.placements?.[e]??SendWebPush.#Xi(this.#Cs.#di("swp-last-placement"))??null,this.#Cs.#G&&this.#Cs.#oi("swp-last-placement",JSON.stringify(this.#Cs.#G),30,"day")}async#$l(t,e){this.#Cs.#x=await this.#Cs.#Wi();const i=String(this.#Cs.#q??"").trim().toLowerCase(),s=String(this.#Cs.#F??"").trim().toLowerCase(),r=i.includes("swp_")?i:0,o=s.includes("swp_")?s:0,n=this.#Cs.#ci(SendWebPush.#hi(String(this.#Cs.#B??""))),a={utm_medium:r,utm_campaign:o,utm_source:n&&"0"!==n?n:null,pathHash:e};this.#Cs.#S.adopt(t,a,r,o,e)}};static#ae=class t{static#Ul(t){return!t||["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO","GB","CH"].includes(String(t).toUpperCase())}#Cs;#Wl;#Hl;#Gl;#Vl=[];constructor(t){this.#Cs=t}start(...t){return this.#Yl(...t)}awaitVerdict(...t){return this.#Ql(...t)}allowsPpid(...t){return this.#Kl(...t)}whenStorageAllowed(...t){return this.#Xl(...t)}get gate(){return this.#Hl}get geo(){return this.#Wl}#Xl(t){if(this.#Cs.#ni())try{t()}catch(t){this.#Cs.#Ie("consent","acao pos-consentimento falhou",t)}else this.#Vl.push(t)}#Jl(){this.#Vl.splice(0).forEach((t=>{try{t()}catch(t){this.#Cs.#Ie("consent","acao pos-consentimento falhou",t)}}))}#Yl(){this.#Wl=this.#Zl(),this.#Hl=this.#tu()}#Ql(t=600){try{if(!this.#Gl){let e=t,i=!1;const s=3e3,r=()=>this.#Cs.window.performance?.now?.()??Date.now(),o=Promise.resolve(this.#Wl??null).then((()=>new Promise((o=>{const n=r(),a=Math.max(0,s-n);let c=t;const h=()=>{const s=this.#eu();if("visible"===s?.displayStatus)return e=c,o(!0);const d=!0===s?.cmpLoaded?Math.max(t,1500):s||this.#iu()?Math.max(t,6e3):t;c=Math.max(c,d);const l=Math.max(c,a);if(r()-n>=l)return e=c,i=a>c,o(!0);setTimeout(h,100)};h()}))));this.#Gl=Promise.race([(this.#Hl??Promise.resolve()).then((()=>!1),(()=>!1)),o]).then((t=>{if(!t)return;const r=this.#eu();if("visible"===r?.displayStatus)return void this.#Cs.#Ie("consent","sem ppid nesta rodada: banner aberto, usuario nao decidiu (nao reportado)");const o=r?!1===r.gdprApplies?"fora-do-gdpr":"cmp-nao-respondeu":this.#iu()?"cmp-ainda-carregando":"sem-cmp-na-pagina",n=i?`piso de ${s}ms de pagina`:`limite de ${e}ms`;this.#Cs.#Re("info","erro erro_123",`consent gate estourou o ${n} - leilao sem ppid (${o})`)}))}return this.#Gl}catch(t){return this.#Cs.#Re("debug","erro erro_106",t),Promise.resolve()}}#eu(){try{if("function"!=typeof this.#Cs.window.__tcfapi)return null;let t=null;return this.#Cs.window.__tcfapi("ping",2,((e,i)=>{!1!==i&&e&&(t=e)})),t}catch(t){return this.#Cs.#Re("debug","erro erro_169",t),null}}#iu(){try{if(this.#Cs.window.frames.__tcfapiLocator||this.#Cs.window.frames.googlefcPresent)return!0;const t=/fundingchoicesmessages\.google\.com|cookielaw\.org|onetrust|quantcast|didomi|sourcepoint|iubenda|cookieyes|complianz|borlabs|sirdata|axeptio|trustarc|osano/i,e=this.#Cs.document.getElementsByTagName("script");for(let i=e.length;i--;)if(e[i].src&&t.test(e[i].src))return!0;return!1}catch(t){return this.#Cs.#Re("debug","erro erro_170",t),!1}}#su(){try{return Promise.resolve(this.#Wl??null)}catch(t){return this.#Cs.#Re("debug","erro erro_103",t),Promise.resolve(null)}}#Zl(){try{return this.#Cs.#ve()?this.#Cs.#yt.then((t=>t||null),(()=>null)):Promise.resolve(null)}catch(t){return this.#Cs.#Re("debug","erro erro_154",t),Promise.resolve(null)}}#tu(e=6e3){return new Promise((i=>{let s=!1;const r=t=>{this.#Cs.#lt=t,"full"===t&&(this.#Cs.#ri(),this.#Cs.#v.onConsentGranted(),this.#Jl()),s||(s=!0,i(t))},o=t=>r(t),n=()=>{"pending"===this.#Cs.#lt&&r("denied")};let a=!1;const c=()=>{a||(a=!0,this.#Cs.window.__tcfapi("addEventListener",2,((t,e)=>{try{if(!e||!t)return;if(!1===t.gdprApplies)return void o("full");if(t.eventStatus&&"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus)return;if(!t.purpose?.consents)return;o(t.purpose.consents[1]?"full":"denied")}catch(t){this.#Cs.#Re("debug","erro erro_100",t),o("denied")}})))};try{const i=()=>{setTimeout(n,e);const t=Date.now()+3e4,i=()=>{"full"!==this.#Cs.#lt&&("function"!=typeof this.#Cs.window.__tcfapi?Date.now()<t?setTimeout(i,100):this.#Cs.#Re("info","erro erro_175","zona de consentimento sem cmp: __tcfapi nao apareceu em 30s - pageview sem cookie e sem ppid"):c())};i()};this.#su().then((e=>{if(e)return void(t.#Ul(e)?i():r("full"));const s="failed"===this.#Cs.#mt.article?"artigo-falhou":"artigo-sem-pais";this.#Cs.#Re("info","erro erro_104",`pais desconhecido - consentimento liberado (${s})`),r("full")}))}catch(t){this.#Cs.#Re("debug","erro erro_111",t),r("denied")}}))}#Kl(){return"full"===this.#Cs.#lt}};static#Nd=class t{static#ru=/^[A-Za-z0-9_-]{1,16}$/;static#ou=["end","url"];static#nu=20;#Cs;#Qc;#au;#cu;#hu;#du;#lu;#uu;#gu=[];#pu=[];#mu=new Set;#yu=[];#fu=0;constructor(t,e,i,s,r,o,n,a){this.#Cs=t,this.#Qc=e,this.#au=i,this.#cu=s,this.#hu=r,this.#du=o,this.#lu=n,this.#uu=a}start(){const t="1"===String(this.#Qc.configs?.quiz_lead??"");this.#gu=this.#wu(this.#Qc.configs?.quiz_manual),this.#pu=[...t?[{type:"lead"}]:[],{question:this.#Qc.configs.message_loading,type:"loading"}],this.#vu(this.#gu.length?{index:0}:{url:null})}#_u(t,e){this.#hu.textContent=`${t}/${e}`,this.#uu.style.width=t/e*100+"%"}#bu(t){const e=new Map,i=new Set,s=t=>{if(e.has(t))return e.get(t);i.add(t);const r=this.#gu[t],o=r.alternatives.length?r.targets:[r.next];let n=0;for(const t of o)void 0===t.index||this.#mu.has(t.index)||i.has(t.index)||(n=Math.max(n,s(t.index)));i.delete(t);const a=(r.alternatives.length?1:0)+n;return e.set(t,a),a};return s(t)}#Su(){return this.#yu.slice(0,t.#nu).map((t=>`${t.q}:${t.a}`)).join(">")}#vu(t){let e=t;for(;void 0!==e.index;){if(this.#mu.has(e.index))return this.#Cu(null);const t=this.#gu[e.index];if(t.alternatives.length)return this.#Au(e.index);this.#mu.add(e.index),e=t.next}return this.#Cu(e.url??null)}#Au(t){const e=this.#gu[t],i=this.#fu+this.#bu(t)+this.#pu.length;this.#mu.add(t),this.#_u(this.#fu+1,i),this.#fu++,this.#Cs.#Ni("step_view",{step:t,step_type:"question",steps_total:i},this.#Qc,`step_view:${t}`),this.#du.textContent=e.question;let s=!1;this.#lu.textContent="",this.#lu.append(...e.alternatives.map(((i,r)=>{const o=e.routes[r],n=e.targets[r],a=this.#Cs.document.createElement("button");return a.className="quiz-option",a.textContent=i,this.#au.color_button&&a.style.setProperty("background",this.#au.color_button,"important"),a.style.setProperty("color",SendWebPush.#Ii(this.#au),"important"),a.addEventListener("click",(()=>{s||(s=!0,this.#Cs.#Ni("quiz_answer",{step:t,answer:r},this.#Qc,`quiz_answer:${t}`),this.#yu.push({q:e.id,a:o.id}),this.#vu(n))})),this.#Cs.#a.bindResilientTap(a),a}))),this.#Cs.#a.updateOverlayScrollFlag()}#Cu(t){this.#Cs.#n.setBranch(SendWebPush.#Di(t)?t:null),this.#ku(0)}#ku(t){if(t>=this.#pu.length)return this.#Eu();const e=this.#pu[t];this.#_u(this.#fu+t+1,this.#fu+this.#pu.length),this.#Cs.#Ni("step_view",{step:this.#gu.length+t,step_type:e.type,steps_total:this.#fu+this.#pu.length},this.#Qc,`step_view:tail${t}`);let i=!1;const s=()=>{i||(i=!0,this.#ku(t+1))};if("loading"===e.type)this.#du.textContent=e.question,this.#lu.innerHTML=`\n                            <div class="loading-container">\n                                <div class="loading-dots">\n                                    <div class="loading-dot" style='background: ${this.#au.color_button} !important;'></div>\n                                    <div class="loading-dot" style='background: ${this.#au.color_button} !important;'></div>\n                                    <div class="loading-dot" style='background: ${this.#au.color_button} !important;'></div>\n                                </div>\n                            </div>\n                        `,setTimeout(s,2e3);else if("lead"===e.type){if(!this.#Cs.#ni())return this.#Cs.#Ie("lead","sem consentimento - passo pulado"),void setTimeout(s,0);this.#Tu(this.#Qc,this.#au,this.#du,this.#lu,s,this.#Su())}}#Eu(){if(this.#Cs.#Ni("step_view",{step:this.#gu.length+this.#pu.length,step_type:"final",steps_total:this.#fu+this.#pu.length},this.#Qc,"step_view:final"),this.#du.textContent=this.#Qc.configs.message_congratulation,!this.#cu.querySelector(".swp-quiz-final-image-wrap")){const t=this.#Cs.#qi(this.#au);t&&this.#cu.insertBefore(t,this.#du)}this.#lu.innerHTML="";const t=document.createElement("button");t.id="swp-run-rewarded",t.className="swp-run-rewarded quiz-option",t.style.setProperty("background",this.#au.color_button,"important"),t.style.setProperty("color",SendWebPush.#Ii(this.#au),"important"),t.textContent=this.#Qc.configs.button_text_congratulation??"";const e=document.createElement("div");e.className="swp-quiz-view-ad",e.style.cssText="text-align: center; color: #6b7280; font-size: 14px; margin-top: 12px;",e.textContent=this.#au.message_view_ad??"",this.#lu.append(t,e),this.#uu.style.width="100%";const i=this.#lu.querySelector(".swp-run-rewarded");i&&this.#Cs.#a.bindResilientTap(i),i&&this.#Cs.#d.markLoading(i),this.#Cs.#a.updateOverlayScrollFlag()}#wu(e){try{let i=e;if("string"==typeof i)try{i=JSON.parse(i)}catch(t){i=[]}if(!Array.isArray(i))return[];const s=t=>("string"==typeof t?t:"number"==typeof t&&Number.isFinite(t)?String(t):"").trim(),r=t=>!!t&&"object"==typeof t&&!Array.isArray(t),o=e=>"string"==typeof e&&t.#ru.test(e),n=i.filter((t=>r(t)||Array.isArray(t)&&0===t.length)).map((t=>r(t)?t:{})).map(((e,i)=>{const n=Array.isArray(e.alternatives)?e.alternatives.map(s):[],a=Array.isArray(e.routes)?e.routes:[],c=n.map(((t,e)=>{const i=r(a[e])?a[e]:{};return{id:o(i.id)?i.id:`a${e}`,url:"string"==typeof i.url?i.url.trim():"",goto:"string"==typeof i.goto?i.goto.trim():""}}));return{id:o(e.id)&&!t.#ou.includes(e.id)?e.id:`q${i}`,question:s(e.question),alternatives:n,routes:c}})),a=new Map;return n.forEach(((t,e)=>{a.has(t.id)||a.set(t.id,e)})),n.forEach(((t,e)=>{t.next=e+1<n.length?{index:e+1}:{url:null},t.targets=t.routes.map((e=>e.url?{url:e.url}:"end"===e.goto?{url:null}:a.has(e.goto)?{index:a.get(e.goto)}:t.next))})),n}catch(t){return this.#Cs.#Re("debug","erro erro_quiz_flow",t),[]}}#Tu(t,e,i,s,r,o=""){try{const n=t.configs??{},a="1"===String(n.quiz_lead_skip??"1");i.textContent=n.quiz_lead_title||"Para onde enviamos seu resultado?",s.innerHTML="";const c=SendWebPush.#Oi("input",{type:"email",id:"swp-quiz-lead-input",className:"swp-quiz-lead-input",placeholder:n.quiz_lead_placeholder||"seu@email.com",style:"width:100%;padding:12px;margin-bottom:8px;border:1px solid #d1d5db;border-radius:8px;font-size:16px;box-sizing:border-box;"}),h=SendWebPush.#Oi("div",{style:"color:#dc2626;font-size:13px;min-height:18px;margin-bottom:4px;text-align:left;"}),d=SendWebPush.#Oi("button",{className:"quiz-option",textContent:n.quiz_lead_button||"Continuar",style:`background: ${e.color_button} !important; color: ${SendWebPush.#Ii(e)} !important;`});if(s.append(c,h,d),n.quiz_lead_disclaimer){const t=SendWebPush.#Oi("div",{textContent:n.quiz_lead_disclaimer,style:"color:#6b7280;font-size:12px;margin-top:10px;line-height:1.4;"});s.appendChild(t)}if(a){const e=SendWebPush.#Oi("button",{textContent:String(n.quiz_lead_skip_text??"").trim()||"Pular",style:"background:none;border:none;color:#6b7280;font-size:13px;margin-top:10px;cursor:pointer;text-decoration:underline;"});e.addEventListener("click",(()=>{this.#Cs.#Ie("lead","pulado pelo usuario"),this.#Cs.#Ni("lead_skip",{},t),r()})),s.appendChild(e)}let l=!1;const u=async()=>{if(l)return;const e=String(c.value??"").trim().toLowerCase();/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(e)?(l=!0,h.textContent="",d.disabled=!0,await this.#Lu(t,e,o),this.#Cs.#Ni("lead_submit",{},t),r()):h.textContent=n.quiz_lead_error||"Digite um e-mail válido"};d.addEventListener("click",u),c.addEventListener("keydown",(t=>{"Enter"===t.key&&u()}))}catch(t){this.#Cs.#Re("debug","erro erro_138",t),r()}}async#Lu(t,e,i=""){try{if(!this.#Cs.#ni())return this.#Cs.#Ie("lead","consentimento revogado antes do envio - descartado"),!1;const s={topic_id:"leads",id_domain:this.#Cs.dataSWP.idDomain,id_ad_unit:t?.id??null,email:e,email_sha256:await this.#Cs.#xi(e),uri:this.#Cs.window.location.pathname,referer:this.#Cs.#M,device:this.#Cs.#I,utm_source:this.#Cs.#B,utm_campaign:this.#Cs.#F,utm_medium:this.#Cs.#q,id_post_wp:this.#Cs.#N,id_config:t?.configs?.id_config??null,..."quiz"==t?.configs?.trigger?{quiz_path:String(i??"")}:{},..."quiz"==t?.configs?.trigger&&t?.configs?.quiz_experiment?{quiz_experiment:String(t.configs.quiz_experiment)}:{},version:this.#Cs.#D};return this.#Cs.#i.send(s),this.#Cs.#Ie("lead","enviado",s.email_sha256),!0}catch(t){return this.#Cs.#Re("debug","erro erro_139",t),!1}}}},Sendwebpush=SendWebPush.boot(window,document,googletag);