(async()=>{var e=[{stringHost:"tupi.com",retailName:"tupi"},{stringHost:"tiendasjumbo.co",retailName:"jumboco"},{stringHost:"tiendasjumboqaio.myvtex.com",retailName:"jumboco"},{stringHost:"teknopolis",retailName:"teknopolis"},{stringHost:"tecnopolis",retailName:"tecnopolis"},{stringHost:"supertec",retailName:"supertec"},{stringHost:"lapolar.cl",retailName:"lapolar"},{stringHost:"raenco.com",retailName:"raenco"},{stringHost:"point.com.ec",retailName:"point"},{stringHost:"pedidos.com",retailName:"pedidos"},{stringHost:"paris.cl",retailName:"pariscl"},{stringHost:"panamericana.com.co",retailName:"panamericana"},{stringHost:"almacenesrayco.com",retailName:"rayco"},{stringHost:"olimpica",retailName:"olimpica"},{stringHost:"officemax",retailName:"officemax"},{stringHost:"officedepot.com.mx",retailName:"office-depot-mx"},{stringHost:"officedepot.com.sv",retailName:"office-depot-sv"},{stringHost:"officedepot.com.pa",retailName:"office-depot-pa"},{stringHost:"officedepot.com.hn",retailName:"office-depot-hn"},{stringHost:"officedepot.com.gt",retailName:"office-depot-gt"},{stringHost:"officedepot.co.cr/officedepotCR",retailName:"office-depot-co"},{stringHost:"officedepot",retailName:"office-depot"},{stringHost:"musimundo",retailName:"musimundo"},{stringHost:"megatone.net",retailName:"megatone"},{stringHost:"localhost",retailName:"localhost"},{stringHost:"liverpool.com.mx",retailName:"liverpool"},{stringHost:"lagranbusqueda",retailName:"lagranbusqueda"},{stringHost:"lacuracao.pe/curacao/tecnologia-t/productos-computo/laptops/laptop-hp-intel-core-i5-10210u-8gb-256gb-ssd-14-14-cf2074la-14-cf2074la",retailName:"lacuracao-bot"},{stringHost:"lacuracao.pe",retailName:"lacuracao"},{stringHost:"jetstereo.com",retailName:"jetstereo"},{stringHost:"hiraoka.com",retailName:"hiraoka"},{stringHost:"gollotienda.com",retailName:"gollotienda"},{stringHost:"exito.com",retailName:"exito"},{stringHost:"efe.com.pe",retailName:"efe"},{stringHost:"dimernet.com",retailName:"dimernet"},{stringHost:"digitalstoreshop.com",retailName:"digitalstoreshop"},{stringHost:"costco",retailName:"costco"},{stringHost:"carulla.com",retailName:"carulla"},{stringHost:"bvoltage",retailName:"bvoltage"},{stringHost:"bestbuy",retailName:"bestbuy"},{stringHost:"abcdin",retailName:"abcdin"},{stringHost:"hites.com",retailName:"hites"},{stringHost:"electronicapanamericana.com",retailName:"electronicapanamericana"},{stringHost:"homecenter.com.co",retailName:"homecenter-co"},{stringHost:"carrefour.com.ar",retailName:"carrefour"},{stringHost:"rodelag.com",retailName:"rodelag"},{stringHost:"cyberpuerta.mx",retailName:"cyberpuerta"},{stringHost:"chedraui.com.mx",retailName:"chedraui"},{stringHost:"skycenter.com.py",retailName:"skycenter"},{stringHost:"panafoto.com",retailName:"panafoto"},{stringHost:"mesajil.com",retailName:"mesajil"},{stringHost:"diunsa.hn",retailName:"diunsa"},{stringHost:"elgallomasgallo.com.gt",retailName:"elgallomasgallo-gt"},{stringHost:"elgallomasgallo.com.ni",retailName:"elgallomasgallo-ni"},{stringHost:"elgallomasgallo.com.hn",retailName:"elgallomasgallo-hn"},{stringHost:"prado.com.sv",retailName:"prado"},{stringHost:"tiendamonge.com",retailName:"tiendamonge"},{stringHost:"cecomsa.com",retailName:"cecomsa"},{stringHost:"max.com.gt",retailName:"max-gt"},{stringHost:"staging.garbarino.com",retailName:"garbarino"},{stringHost:"staging.compumundo.com.ar",retailName:"compumundo"},{stringHost:"plazavea.com.pe",retailName:"plazavea"},{stringHost:"coppel.com",retailName:"coppel"},{stringHost:"elektra.com.gt",retailName:"elektra"},{stringHost:"radioshack.com.mx",retailName:"radioshack"},{stringHost:"oechsle.pe",retailName:"oechsle"},{stringHost:"walmart.com.ar",retailName:"walmart-ar"},{stringHost:"multimax.net",retailName:"multimax"},{stringHost:"misbeneficios.com.uy",retailName:"misbeneficios"},{stringHost:"multiahorro.com.uy",retailName:"multiahorro"},{stringHost:"shop.woow.com.uy",retailName:"woow"},{stringHost:"office2000.com.uy",retailName:"uy-office2000"},{stringHost:"tecnoglobal.cl",retailName:"cl-tecnoglobal"},{stringHost:"artefacta.com",retailName:"artefacta"},{stringHost:"hpstore.com.py",retailName:"hpstore-py"},{stringHost:"dimerc.cl",retailName:"cl-dimerc"},{stringHost:"marcimex.com",retailName:"cac-marcinex"},{stringHost:"tia.com.ec",retailName:"ecu-tia"},{stringHost:"tiendasmetro.co",retailName:"tiendasmetro"},{stringHost:"ofix.mx",retailName:"ofix-mx"},{stringHost:"hp.com/cl-es/workstations",retailName:"hp-z"},{stringHost:"author-pro.hp.com/content/hp-com/language-masters/global-master/en/author-tests-and-backups/arthur/workstation-pcs",retailName:"hp-z"},{stringHost:"hp.com/cl-es",retailName:"hp-cl"},{stringHost:"kalunga.com.br",retailName:"kalunga"},{stringHost:"masonline.com.ar",retailName:"masonline-ar"},{stringHost:"dev--masonlineqa.myvtex.com",retailName:"masonline-ar"},{stringHost:"creditoseconomicos.com",retailName:"creditos-cac"},{stringHost:"lam.hp.php9.cc",retailName:"hp-prueba"},{stringHost:"simple.ripley.com.pe/laptop-hp-15ef1009la-ryzen-3-4gb-256gb-ssd-2004261872022p",retailName:"ripleype-bot"},{stringHost:"ripley.com.pe",retailName:"ripleype"},{stringHost:"simple.ripley.cl/hp-notebook-pavilion-x360-14-dy0505la-intel-core-i5-8gb-ram-256gb-ssd-14-multitactil-fhd-mpm00052901270",retailName:"ripleycl-bot"},{stringHost:"ripley.cl",retailName:"ripleycl"},{stringHost:"tottus.com.pe",retailName:"tottus-pe"},{stringHost:"reckitt--locatelcolombia.myvtex.com",retailName:"locatel-demo"},{stringHost:"jumbocolombia.com",retailName:"jumboco"}],t=!1,o=!1,a=!1,i=!1,r=0,n=null,l=["costco","bestbuy","exito","liverpool","hp-cl","cl-es","hp.com/cl-es"],s=window.location.href,c=window.location.hostname;const m=e=>{e.indexOf(!0)?(t=e.slice(1,-1),o||C(window.location.href,t,j),l.find((e=>s.toLowerCase().indexOf(e)>-1))&&(t=(t=t.replace("https://indexado.alquimio.cloud","https://notrack.indexado.pmbox.cloud")).replace("https://front.indexado.production.alquimio.cloud","https://front-notrack.indexado.production.pmbox.cloud")),!1===i&&(A(!0),a||document.dispatchEvent(new CustomEvent("idxHP",{detail:{contentFound:!0,loadingUrl:t}})),n&&n(!0,t))):a||(document.dispatchEvent(new CustomEvent("idxHP",{detail:{contentFound:!1}})),n&&n(!1))};function d(){var e=document.querySelector('script[src*="indexadoAlquimio"]');return null!=e&&{sku:e.getAttribute("data-sku"),ean:e.getAttribute("data-ean"),partNumber:e.getAttribute("data-partNumber"),country:e.getAttribute("data-country"),retail:e.getAttribute("data-retail"),env:e.getAttribute("data-env"),modelId:e.getAttribute("data-id"),source:e.getAttribute("data-source"),lang:e.getAttribute("data-lang"),category:e.getAttribute("data-category"),version:e.getAttribute("data-version"),forceViewport:e.getAttribute("data-force-viewport"),hideElement:e.getAttribute("data-hide-element")}}var p,g=d().sku||null,u=d().modelId||null,h=d().ean||null,f=d().partNumber||null,x=d().env||"production",H=d().lang||"esCL",y=d().version||null,N=d().forceViewport||null,b=d().hideElement||null;if(null!=g)p="sku="+g;else if(null!=h)p="ean="+h;else if(null!=f)p="partNumber="+f;else{if(null==u)throw new Error("No se puede generar PMBxparams: todas las variables son null");p="modelId="+u}if(!p)throw new Error("PMBxparams es undefined, verifique las variables de entrada.");function v(){var e;switch(x){case"production":default:e="https://oc-cache.production.alquimio.cloud/api/";break;case"staging":e="https://api.repositorio.staging.alquimio.cloud/api/";break;case"local":e="http://localhost:3000/api/"}return e}null!=H&&(p=p+"&lang="+H),c&&(p=p+"&hostname="+c),null!=y&&(p=p+"&version="+y),null!==N&&(p=p+"&forceViewport="+N),null!==b&&(p=p+"&hideElement="+b);["oster","licuadora","juguera","cafetera","midea","mlv","linea-blanca","lavavajilla","acondicionado","cocina","refrigerador","secadora","freezer","congelador","hervidor","hervidores","microonda","olla","oster","licuadoras","batidoras","hervidores","hervidor","multiolla","termoplastico","cortadora, cortador","horno, freidora","freidor","descorchador","plancha","pelador","batidora","cafetera","microonda","microondas","parrilla","arrocera","refrigerador","molinillo","sandwichera","helados","espumadera","lavavajilla","sartén","sarten","minipimer","foodsaver"].find((e=>s.toLowerCase().indexOf(e)>-1))&&(s="not defined");var w=(t=>{var o=e.find((e=>t.indexOf(e.stringHost)>-1));return null!=o?o.retailName:null})(s);function I(e,o){if(0!=t)A(!0);else{var i=new XMLHttpRequest;i.onreadystatechange=function(){4==i.readyState&&200==i.status?o(i.responseText):4!=i.readyState||200==i.status||a||(document.dispatchEvent(new CustomEvent("idxHP",{detail:{contentFound:!1}})),n&&n(!1),a=!0)},i.open("GET",e,!0),i.send(null)}}r="office-depot"==w?600:0;var E=!1,k=0;function A(e=!1,o=!0){if(e)try{o&&(document.getElementById("contenidoIndexado").innerHTML=""),i=!1}catch(e){console.log("clearing content --\x3e 005")}if(!i&&t)try{var a=document.getElementById("contenidoIndexado"),n=document.createElement("iframe");a.style.setProperty("display","block","important"),a.style.setProperty("flex-direction","column","important"),n.setAttribute("src",t),n.setAttribute("id","idxIndx"),n.setAttribute("scrolling","no"),n.setAttribute("crossorigin","false"),n.style.border="none",n.style.textAlign="center",n.style.marginLeft="auto",n.style.marginRight="auto",n.style.width="100%",n.style.display="block",n.style["max-width"]="1440px",a.insertBefore(n,null),document.getElementById("idxIndx").addEventListener("load",(()=>{E=!0,L()}),!0),window.addEventListener("resize",L),window.addEventListener("message",(e=>{if(-1!=e.origin.indexOf(".cloud")){var t=parseInt(e.data.height)+parseInt(r),o=e.data.height;"locatel-demo"==w&&t<3950&&(t=3950,o=3950-parseInt(r),document.getElementById("contenidoIndexado").style.minHeight="3950px"),document.getElementById("contenidoIndexado").style.height=t+"px",document.getElementById("idxIndx").style.height=o+"px",function(e){if(e.data.height<800&&0==k)var t=setInterval((()=>{window.dispatchEvent(new Event("resize")),++k>10&&clearInterval(t)}),500)}(e)}})),i=!0,B()}catch(e){console.log("loadIndexContent 005 :",e)}}var B=()=>{try{var e={threshold:.1,root:document.documentElement},a=new IntersectionObserver(((e,t,o)=>{k=0,E&&L()}),e),i=document.getElementById("contenidoIndexado");a.observe(i),o||C(window.location.href,t,j)}catch(e){console.log("EIndx :",e)}};function C(e,t,o){let a=t.replace("https://front-notrack.indexado.production.pmbox.cloud","https://front.indexado.production.alquimio.cloud");a=a.replace("https://notrack.indexado.pmbox.cloud","https://indexado.alquimio.cloud");let i="https://oc-cache.production.alquimio.cloud/banners/byHost?host="+encodeURIComponent(e)+"&urlIndexado="+encodeURIComponent(a);var r=new XMLHttpRequest;r.onreadystatechange=function(){4==r.readyState&&200==r.status&&"null"!==r.responseText&&"[]"!==r.responseText&&o(r.responseText)},r.open("GET",i,!0),r.send(null)}const q=e=>e.indexOf(!0)?e.replace("fichashppervasive.blob.core.windows.net","files.alquimio.cloud"):e,j=e=>{var t=document.getElementById("contenidoIndexado");t&&e&&!o&&(e=JSON.parse(e),Array.isArray(e)&&e.forEach((e=>{document.getElementById(e.campaign.trim().replaceAll(" ","-"))||(r=parseInt(r)+parseInt(e.height),"img"===e.type?(e=>{var t=document.getElementById("contenidoIndexado");t.style.textAlign="center";var o=document.createElement("a");"#"!==e.link&&(o.href=e.link,o.target="_blank");const a=`\n \n \n \n \n `;o.innerHTML=a;var i=document.createElement("div");i.style.width="100%",i.style.height="auto",i.style.textAlign="center",i.id=e.campaign.trim().replaceAll(" ","-"),i.appendChild(o),e.position&&"top"===e.position?t.prepend(i):t.appendChild(i)})(e):"video"===e.type&&function(e){var t="video-indexado-container"+Math.floor(1e5*Math.random()),o=document.getElementById("contenidoIndexado");o.style.textAlign="center";var a=document.createElement("iframe");a.style.display="block",a.src="https://www.youtube.com/embed/"+e.youtubeId,a.frameborder=0,a.width="100%"!==e.width?parseInt(e.width):"100%",a.height=parseInt(e.height),a.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",a.style.margin="auto",a.allowfullscreen=!0;var i=document.createElement("div");i.style.width=parseInt(e.width),i.style.height=parseInt(e.height)+"px",i.style.textAlign="center",i.classList.add(t),i.appendChild(a),e.position&&"top"===e.position?o.prepend(i):o.appendChild(i);!function(e){const t=document.createElement("style");t.textContent=e,document.head.append(t)}(`\n .${t} { position: relative; height: 0; overflow: hidden; max-width: 100%; text-align:center}\n .${t} iframe, .video-indexado-container object,\n .${t} embed { max-width: ${parseInt(e.width)}px; width:100%;height: 100%;max-height:${parseInt(e.height)}px; }\n `)}(e))})),t.dispatchEvent(new Event("resize")),o=!0)};function L(){try{var e=document.getElementById("idxIndx");e&&t&&e.contentWindow.postMessage({getDataOfHeight:!0},t)}catch(e){console.log("idx not loaded yet")}}function P(){t=!1,o=!1,a=!1}null!=p&&void 0!==p&&I(v()+"modelos/indexadoByParams?"+p,m),window.PMBox={loadContentById:function(e,t,o=!0,a=null){P();var i="modelId="+e;t&&(i=i+"&lang="+t),null!=y&&(i=i+"&version="+y),n=a,I(v()+"modelos/indexadoByParams?"+i,m),A(!0,o)},loadContentBySku:function(e,t,o=!0,a=null){P();var i="sku="+e;t&&(i=i+"&lang="+t),null!=y&&(i=i+"&version="+y),n=a,I(v()+"modelos/indexadoByParams?"+i,m),A(!0,o)},loadContentByEan:function(e,t,o=!0,a=null){P();var i="ean="+e;t&&(i=i+"&lang="+t),null!=y&&(i=i+"&version="+y),n=a,I(v()+"modelos/indexadoByParams?"+i,m),A(!0,o)}}})();