function sendCookies(){setDeprecationLabel();var a=!1;if("www.mercadolibre.com"!==document.location.hostname&&"requestStorageAccessFor"in document&&"permissions"in navigator&&(isFromEnabledSites()||isFromLoginEnabledSites()))a=!0,sendReadCookie(),sendWriteCookie();else{var b=JSON.stringify(window.dp.cookie);execute_call_cookie(b,null)}window.dp.hash.rws_script=a} function setDeprecationLabel(){window.dp.hash.deprecation_label=!1;"cookieDeprecationLabel"in navigator&&navigator.cookieDeprecationLabel.getValue().then(function(a){if("treatment_1.1"===a||"treatment_1.2"===a||"treatment_1.3"===a||"control_2"===a)window.dp.hash.deprecation_label=!0})}function sendReadCookie(){var a=getCookieOperationUrl("js_read");cookieFetch(a)}function sendWriteCookie(){var a=getCookieOperationUrl("js_write");writeTopLevelCookie(a)} function getCookieOperationUrl(a){window.dp.cookie.js_operation=a;a=JSON.stringify(window.dp.cookie);return getUrl(a,null)}function cookieFetch(a){fetch(a,{keepalive:!0,credentials:"include"}).then(function(a){}).catch(function(a){console.log(a)})} function writeTopLevelCookie(a){var b=function(){window.document.removeEventListener("click",b,{capture:!0});window.document.removeEventListener("keydown",b);cookieReplication(a)};window.navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:"https://mercadolibre.com"}).then(function(c){"granted"===c.state&&cookieReplication(a);"prompt"===c.state&&(window.document.addEventListener("click",b,{capture:!0}),window.document.addEventListener("keydown",b))}).catch(function(a){console.log(a)})} function cookieReplication(a){window.document.requestStorageAccessFor("https://www.mercadolibre.com").then(function(){cookieFetch(a)},function(a){"NotAllowedError"===a.name&&execute_call_cookie(JSON.stringify(window.dp.cookie),null)})}function execute_call_cookie(a,b){var c=new Image(1,1);c.crossOrigin="use-credentials";c.src=getUrl(a,b)} function getUrl(a,b){var c=getProfilingParams(),e=c.sessionIdInput,d=c.url;"mlb"==b&&(d=getReferrerUrlSite(),d=getSessionIdUrl(d),a.has_session_id=!0,a=JSON.stringify(a));b=document.location.host.match(".*.mercado(shops|libre|livre|pago).(com|cl|co).*");var f=isFromSafari(),g=navigator.userAgent.includes("CriOS/");b&&(f||g)&&(d=c.safari_url);e&&""!=e&&(d+="?background\x3d"+e,a=base64_encode(a),d+="\x26message\x3d"+encodeURIComponent(a));return d} function getReferrerUrlSite(){var a=document.location.host;if(null==a)return null;a.includes("login-dev.mercadolidesa.com")&&(a="www.mercadolibre.com.mx",setTestSsid());a=a.split(".").pop();return""==a?null:getAvailableUrlSites().includes(a)?a:null}function getProfilingParams(){return{mlb_url:"https://www.mercadolivre.com/jms/mlb/lgz/background/session/armor.41b8c0e7140af865a86194fc1e10af52eb9372c3301ce8441b50129e06e629324af5767f9baa81dba994f571458fc85498d232571c9a64014b64465aeb8db02424a1b3004a475ccc635427af7c5e5e0f04a1114da133c35e64d4a25580d09d44.6da13c3648a36511f25dd1d12d4d437a",url:"https://www.mercadolibre.com/jms/lgz/background/session/armor.41b8c0e7140af865a86194fc1e10af52eb9372c3301ce8441b50129e06e629324af5767f9baa81dba994f571458fc85498d232571c9a64014b64465aeb8db02424a1b3004a475ccc635427af7c5e5e0f04a1114da133c35e64d4a25580d09d44.6da13c3648a36511f25dd1d12d4d437a",sessionIdInput:"armor.41b8c0e7140af865a86194fc1e10af52eb9372c3301ce8441b50129e06e629324af5767f9baa81dba994f571458fc85498d232571c9a64014b64465aeb8db02424a1b3004a475ccc635427af7c5e5e0f04a1114da133c35e64d4a25580d09d44.6da13c3648a36511f25dd1d12d4d437a",safari_url:"https://"+document.location.host+"/jms/lgz/background/session/armor.41b8c0e7140af865a86194fc1e10af52eb9372c3301ce8441b50129e06e629324af5767f9baa81dba994f571458fc85498d232571c9a64014b64465aeb8db02424a1b3004a475ccc635427af7c5e5e0f04a1114da133c35e64d4a25580d09d44.6da13c3648a36511f25dd1d12d4d437a"}} function getSessionIdUrl(a){return document.location.host.match(".*.mercado(libre|livre|pago).(com|cl|co).*")?"https://"+document.location.host+"/jms/lgz/background/session/armor.41b8c0e7140af865a86194fc1e10af52eb9372c3301ce8441b50129e06e629324af5767f9baa81dba994f571458fc85498d232571c9a64014b64465aeb8db02424a1b3004a475ccc635427af7c5e5e0f04a1114da133c35e64d4a25580d09d44.6da13c3648a36511f25dd1d12d4d437a":a?document.location.host.includes("login-dev.mercadolidesa.com")?"http://login-dev.mercadolidesa.com:8080/jms/lgz/background/session/armor.41b8c0e7140af865a86194fc1e10af52eb9372c3301ce8441b50129e06e629324af5767f9baa81dba994f571458fc85498d232571c9a64014b64465aeb8db02424a1b3004a475ccc635427af7c5e5e0f04a1114da133c35e64d4a25580d09d44.6da13c3648a36511f25dd1d12d4d437a":"cl"==a?"https://www.mercadopago.cl/jms/lgz/background/session/armor.41b8c0e7140af865a86194fc1e10af52eb9372c3301ce8441b50129e06e629324af5767f9baa81dba994f571458fc85498d232571c9a64014b64465aeb8db02424a1b3004a475ccc635427af7c5e5e0f04a1114da133c35e64d4a25580d09d44.6da13c3648a36511f25dd1d12d4d437a":"https://www.mercadopago.com."+a+"/jms/lgz/background/session/armor.41b8c0e7140af865a86194fc1e10af52eb9372c3301ce8441b50129e06e629324af5767f9baa81dba994f571458fc85498d232571c9a64014b64465aeb8db02424a1b3004a475ccc635427af7c5e5e0f04a1114da133c35e64d4a25580d09d44.6da13c3648a36511f25dd1d12d4d437a":"https://www.mercadolivre.com/jms/mlb/lgz/background/session/armor.41b8c0e7140af865a86194fc1e10af52eb9372c3301ce8441b50129e06e629324af5767f9baa81dba994f571458fc85498d232571c9a64014b64465aeb8db02424a1b3004a475ccc635427af7c5e5e0f04a1114da133c35e64d4a25580d09d44.6da13c3648a36511f25dd1d12d4d437a"} function isFromEnabledSites(){return document.location.host.match(".*.mercado(livre|libre|pago|shops).(com|cl|co).*")}function isFromLoginEnabledSites(){return document.location.pathname.match("/jms/mlb/lgz/msl/login/")} function isFromSafari(){var a=navigator.userAgent,b=a.includes("Chrome/")||a.includes("Chromium/")||a.includes("CriOS/"),c=a.includes("Firefox/")||a.includes("FxiOS/"),e=a.includes("Edg/")||a.includes("Edge/")||a.includes("EdgiOS/")||a.includes("EdgA/");return!b&&!c&&!e&&a.includes("Safari/")&&a.includes("Version/")}function setTestSsid(){var a=new Date;a.setTime(a.getTime()+864E5);a="expires\x3d"+a.toUTCString();document.cookie="ssid\x3dtest_user_session_id;"+a+";path\x3d/"} function getAvailableUrlSites(){return"br ar mx bo cl co cr do ec gt hn ni pa py pe sv uy ve".split(" ")} function base64_encode(a){var b=0,c=0,e=[];if(!a)return a;do{var d=a.charCodeAt(b++);var f=a.charCodeAt(b++);var g=a.charCodeAt(b++);var h=d<<16|f<<8|g;d=h>>18&63;f=h>>12&63;g=h>>6&63;h&=63;e[c++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(h)}while(b< a.length);b=e.join("");a=a.length%3;return(a?b.slice(0,a-3):b)+"\x3d\x3d\x3d".slice(a||3)};function detectWebcam(b){var a=navigator.mediaDevices;if(!a||!a.enumerateDevices)return b(!1);a.enumerateDevices().then(function(a){return b(a.some(function(a){return"videoinput"===a.kind}))})}detectWebcam(function(b){window.mlbp_webcam=b});function getEtag(){return new Promise(function(b){var a=new XMLHttpRequest,c=getUrlEtag();a.open("GET",c);a.withCredentials=!1;a.onload=function(){200<=this.status&&300>this.status?b(a.getResponseHeader("Etag")):b(null)};a.send()})} function getUrlEtag(){var b=document.location.host.match(".*.mercado(libre|livre|pago).(com|cl|co).*"),a=navigator.userAgent,c=a.includes("CriOS/"),d=a.includes("Chrome/")||a.includes("Chromium/")||a.includes("CriOS/"),e=a.includes("Firefox/")||a.includes("FxiOS/"),f=a.includes("Edg/")||a.includes("Edge/")||a.includes("EdgiOS/")||a.includes("EdgA/");a=!d&&!e&&!f&&a.includes("Safari/")&&a.includes("Version/");return b&&(c||a)?"https://"+document.location.host+"/jms/lgz/background/etid":"https://www.mercadolibre.com/jms/lgz/background/etid"} "undefined"!==typeof Promise&&(window.mlbp_etag=null,getEtag().then(function(b){window.mlbp_etag=b}));function isPrivateMode(){return new Promise(function(b){var c=function(){b(!0)},d=function(){b(!1)};if(!(function(){var a=/(?=.*(opera|chrome)).*/i.test(navigator.userAgent)&&navigator.storage&&navigator.storage.estimate;a&&navigator.storage.estimate().then(function(a){return 12E8>a.quota?c():d()});return!!a}()||function(){var a="MozAppearance"in document.documentElement.style;if(a)if(null==indexedDB)c();else{var b=indexedDB.open("inPrivate");b.onsuccess=d;b.onerror=c}return a}()||function(){var a= navigator.userAgent.match(/Version\/([0-9\._]+).*Safari/);if(a){if(11>parseInt(a[1],10)){try{localStorage.length||(localStorage.setItem("inPrivate","0"),localStorage.removeItem("inPrivate")),d()}catch(e){navigator.cookieEnabled?c():d()}return!0}try{window.openDatabase(null,null,null,null),d()}catch(e){c()}}return!!a}()||function(){var a=!window.indexedDB&&(window.PointerEvent||window.MSPointerEvent);a&&c();return!!a}()))return d()})} "undefined"!==typeof Promise&&isPrivateMode().then(function(b){window.mlbp_incognito=b});window.JSON||(window.JSON={}); (function(){function a(a){return 10>a?"0"+a:a}function b(a){d.lastIndex=0;return d.test(a)?'"'+a.replace(d,function(a){var b=l[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var e=f,h=d[a];h&&"object"===typeof h&&"function"===typeof h.toJSON&&(h=h.toJSON(a));"function"===typeof k&&(h=k.call(d,a,h));switch(typeof h){case "string":return b(h);case "number":return isFinite(h)?String(h):"null";case "boolean":case "null":return String(h);case "object":if(!h)return"null"; f+=g;var l=[];if("[object Array]"===Object.prototype.toString.apply(h)){var r=h.length;for(a=0;a>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c=[0,0,0,0];c[3]+=a[3]+b[3];c[2]+=c[3]>>>16;c[3]&=65535;c[2]+=a[2]+b[2];c[1]+=c[2]>>>16;c[2]&=65535;c[1]+=a[1]+b[1];c[0]+=c[1]>>>16;c[1]&=65535;c[0]+=a[0]+b[0];c[0]&=65535;return[c[0]<<16|c[1],c[2]<<16|c[3]]},x64Multiply:function(a,b){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c=[0,0,0,0];c[3]+=a[3]*b[3];c[2]+=c[3]>>> 16;c[3]&=65535;c[2]+=a[2]*b[3];c[1]+=c[2]>>>16;c[2]&=65535;c[2]+=a[3]*b[2];c[1]+=c[2]>>>16;c[2]&=65535;c[1]+=a[1]*b[3];c[0]+=c[1]>>>16;c[1]&=65535;c[1]+=a[2]*b[2];c[0]+=c[1]>>>16;c[1]&=65535;c[1]+=a[3]*b[1];c[0]+=c[1]>>>16;c[1]&=65535;c[0]+=a[0]*b[3]+a[1]*b[2]+a[2]*b[1]+a[3]*b[0];c[0]&=65535;return[c[0]<<16|c[1],c[2]<<16|c[3]]},x64Rotl:function(a,b){b%=64;if(32===b)return[a[1],a[0]];if(32>b)return[a[0]<>>32-b,a[1]<>>32-b];b-=32;return[a[1]<>>32-b,a[0]<>>32-b]},x64LeftShift:function(a, b){b%=64;return 0===b?a:32>b?[a[0]<>>32-b,a[1]<>>1]);a=this.x64Multiply(a,[4283543511,3981806797]);a=this.x64Xor(a,[0,a[0]>>>1]);a=this.x64Multiply(a,[3301882366,444984403]);return a=this.x64Xor(a,[0,a[0]>>>1])},x64hash128:function(a,b){a=a||"";b=b||0;var c=a.length%16,e=a.length-c,d=[0,b];b=[0,b];for(var f,g,l=[2277735313,289559509],k=[1291169091,658871167],h=0;h>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)+("00000000"+(b[0]>>>0).toString(16)).slice(-8)+("00000000"+(b[1]>>>0).toString(16)).slice(-8)}}; window.mlbp={options:{sortPluginsFor:[/palemoon/i]},getBrowserProfileHash:function(){var a={},b=null,c=null,e=null,d=null,f=null,g=null,l=!0;if(0=="false".localeCompare("false")){l=!1;var k=Date.now();b=window.mlbp.getCanvas();a.canvas=Date.now()-k;k=Date.now();c=window.mlbp.getWebgl();a.webgl=Date.now()-k;k=Date.now();e=window.mlbp.getUserFonts();a.userfonts=Date.now()-k;k=Date.now();d=window.mlbp.getBrowserPlugins();a.browserplugins=Date.now()-k;k=Date.now();f=window.mlbp.getInstalledPlugins(); a.plugins=Date.now()-k;k=Date.now();g=window.mlbp.getInstalledFonts();a.installedfonts=Date.now()-k}return{ad_block:window.mlbp.getAdBlock(),canvas:b,connection:window.mlbp.getConnection(),cookie_enabled:navigator.cookieEnabled,device_memory:navigator.deviceMemory?Math.trunc(navigator.deviceMemory):0,do_not_track:navigator.doNotTrack?navigator.doNotTrack.toString():null,etag:window.mlbp_etag,fonts:e,hardware_concurrency:navigator.hardwareConcurrency||0,history:window.history?window.history.length: "unknown",incognito:window.mlbp_incognito,is_mshops:window.mlbp.isMshops(),js_type:"js_hash",lang:navigator.language||navigator.userLanguage,languages:navigator.languages,literal_colors:(new String(JSON.stringify(window.mlbp_literal_colors))).hashCode(),local_storage:!!window.localStorage,login_detection:window.mlbp_login_detection,math_number:window.mlbp.getMathNumber(),open_database:!!window.openDatabase,pixel_ratio:window.devicePixelRatio,platform:window.mlbp.getPlatform(),webgl:c,plugins:d,resolution:[screen.height, screen.width,screen.colorDepth].join("x"),screen:window.mlbp.getScreen(),session_storage:!!window.sessionStorage,time:a,time_based_fp:window.mlbp_time_based_fp,time_zone_name:window.Intl&&window.Intl.DateTimeFormat?(new window.Intl.DateTimeFormat).resolvedOptions().timeZone:"",time_zone_offset:(new Date).getTimezoneOffset(),touch_points:navigator.maxTouchPoints,user_agent:navigator.userAgent,vendor:navigator.vendor,window_size:window.mlbp.getWindowSize(),webdriver:navigator.webdriver,installed_fonts:g, installed_plugins:f,light_version:l,referer:window.mlbp.getRefererOP(),webcam:window.mlbp_webcam}},isMshops:function(){var a=window.__PRELOADED_STATE__;if("undefined"!=typeof a){var b=a.stepConfig&&a.stepConfig.shop&&a.stepConfig.shop.id,c=a.shopName,e=a.site;return!!(a.locals&&a.locals.stepConfig&&a.locals.stepConfig.shop&&a.locals.stepConfig.shop.id)||!!b||!!c||"MS"===e}return!1},getRefererOP:function(){var a=document.location;return a.host.match("www.lg.com")&&a.pathname.match("/br")?a.host+a.pathname: "undefined"!=typeof window.__PRELOADED_STATE__?window.__PRELOADED_STATE__.referer:null},getWindowSize:function(){return{inner:[window.innerHeight,window.innerWidth].join("x"),outer:[window.outerHeight,window.outerWidth].join("x")}},getScreen:function(){return window.screen?{orientation:window.screen.orientation?window.screen.orientation.angle:null,type:window.screen.orientation?window.screen.orientation.type:null,avail_height:window.screen.availHeight,avail_left:window.screen.availLeft,avail_top:window.screen.availTop, avail_width:window.screen.availWidth}:null},getConnection:function(){return navigator.connection?{downlink:navigator.connection.downlink?navigator.connection.downlink.toString():null,rtt:navigator.connection.rtt?navigator.connection.rtt.toString():null,type:navigator.connection.effectiveType?navigator.connection.effectiveType.toString():null}:null},getMathNumber:function(){return Math.tan(-1E300)+Math.asinh(1)+Math.expm1(1)+Math.cbrt(100)+Math.log1p(10)+Math.sinh(1)+Math.cosh(10)+Math.tanh(1)},getAdBlock:function(){var a= document.createElement("div");a.innerHTML="\x26nbsp;";a.className="adsbox";var b=!1;try{document.body.appendChild(a),b=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(a)}catch(c){b=!1}return b},getBrowserProfileCookie:function(){return{js_type:"js_cookie",value:"x"}},getInstalledFonts:function(){try{return(new window.mlbp.FontsDetector(window.mlbp.otherFonts)).getFontsAvailable()}catch(a){return["not available"]}},FontsDetector:function(a){function b(){var a= document.createElement("span");a.style.position="absolute";a.style.left="-9999px";a.style.fontSize="72px";a.innerHTML="mmmmmmmmmmlli";return a}function c(a){for(var b=!1,c=0;cb?1:0});f.removeChild(l);f.removeChild(g);this.getFontsAvailable= function(){return e};this.isAvailable=function(a){for(var b=0,c=e.length;bb.name?1:a.namea;a++)c.isVersionSupported(a+".0")&&(e=a);b=e||!0}catch(g){b=!0}}}}catch(d){b=!1}null!=c&&delete c;return b},base64_encode:function(a){var b=0,c=0,e=[];if(!a)return a;do{var d=a.charCodeAt(b++);var f=a.charCodeAt(b++);var g=a.charCodeAt(b++);var l=d<<16|f<<8|g;d=l>>18&63;f=l>>12&63;g=l>>6&63;l&=63;e[c++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d)+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(l)}while(bd&&(d=c[b[a]]);for(var f in c)c[f]==d&&e.push(f);return e[0]} function getModesMatrix(b,c,d){for(var e=[],a=0;amousePositions.length)return sendDetections(result)},!1)} function setupDetection(){isFromMeliDomains()&&isDesktop()&&(document.addEventListener("mousemove",function(a){mousePositions.push({x:a.clientX,y:a.clientY})}),document.addEventListener("click",function(){result.clicks++},!1),document.addEventListener("keydown",function(a){"Tab"!==a.key&&"Tab"!==a.code||result.tabs++},!1))}function sendDetections(a){fetch(get_bot_detection_url(),{method:"POST",credentials:"include",body:JSON.stringify(a)}).then(function(a){}).catch(function(a){})} function workerFunction(){self.onmessage=function(a){function c(a){return a.reduce(function(a,b){return a+b},0)}function b(a,b,d){for(var l=c(a),e=c(b),f=0,g=0;gb[g]&&f++;return{isOpen:l>=1.3*e&&.8<=f/d,sumOpen:l,sumClosed:e}}a=a.data;var k=a.portsToScan,m=a.N,n=function(a,c,d){return new Promise(function(l){function e(){h=k.length)h.execution_time=parseFloat((performance.now()-b).toFixed(2)),postMessage(h);else{var c=k[d],e=Math.floor(16384*Math.random()+49152);n(c,m,e).then(function(b){h.status.push({port:c,reference_port:e, is_open:b.isOpen,sum_open:b.sumOpen,sum_closed:b.sumClosed});a(d+1)})}}var b=performance.now();a(0)})()}}function isDesktop(){var a=navigator.userAgent.toLowerCase();return!/mobile|android|iphone|ipad|ipod/.test(a)} function launchPortScan(a,c){if(isDesktop()){var b=workerFunction.toString();b=b.substring(b.indexOf("{")+1,b.lastIndexOf("}"));b=new Blob([b],{type:"application/javascript"});b=new Worker(URL.createObjectURL(b));b.postMessage({portsToScan:a,N:c});b.onmessage=function(a){result.ports=a.data}}}isFromMeliDomains()&&(setupResponseEvent(),setupDetection());