class wm_a{}const wm_b={AVAILABILITY_FAILURE:"failure",AVAILABILITY_TRANSFER_SIZE:"transfersize",BROWSER_NAVIGATION:"browser.enduser.navigation",WINDOW_DOM:"window-dom",D2ID:"d2id",NETWORK_TYPE:"network-type",NETWORK_SPEED:"network-speed",USER_AGENT:"user-agent",RAM_SIZE:"ram-size",CPU_CORES:"cpu-cores",WINDOW_WIDTH:"window-width",WINDOW_HEIGHT:"window-height",LCP:"lcp",CLS:"cls",FCP:"fcp",FID:"fid",INP:"inp",TTFB:"time-to-first-byte",REDIRECT_COUNT:"redirect-count",DOM_COMPLETE:"dom-complete",DOM_INTERACTIVE:"dom-interactive",DOM_CONTENT_LOADED_END:"dom-content-loaded-end",DOM_CONTENT_LOADED_START:"dom-content-loaded-start",DOM_CONTENT_LOADED:"dom-content-loaded",ONLOAD:"onload",ONLOAD_END:"onload-end",ONLOAD_START:"onload-start",REQUEST_START:"request-start",RESPONSE_START:"response-start",RESPONSE_END:"response-end",RESPONSE_TIME:"response-time",NAVIGATION_TYPE:"navigation-type",INITIAL_CONTENT_SIZE:"initial-content-size",DARK_MODE:"dark-mode",REDUCED_MOTION:"reduced-motion",REDUCED_COLOR:"reduced-contrast",URL:"url",X_CDN:"cdn",DURATION_SUM:"duration-sum",RESOURCE_SIZE:"resources-size",RESOURCE_TIMING:"resourceTiming",SESSION_REPLAY:"session-replay",TRACEABILITY_ID:"traceability-id",APP_NAME:"application",SCOPE_NAME:"scope",DEVICE:"device",PLATFORM_ID:"platform",SITE_ID:"site",WEBVIEW:"webview",SESSION_ID:"session-id",MLDATA_SESSION_ID:"_mldataSessionId",REQUEST_ID:"requestId",VIEW_NAME:"view-name",CUSTOM_ATTRIBUTES:"custom-attributes",USER_ID:"user-id",SERVICE_NAME:"service-name",SERVICE_VERSION:"service-version",SAVE_DATA:"save-data",RTT:"rtt",CLIENT_NAME:"client_name",CLIENT_VERSION:"client_version",LIBRARY_NAME:"LIBRARY_NAME",LIBRARY_VERSION:"LIBRARY_VERSION",BROWSER_NAME:"browser_name",BROWSER_MAJOR_VERSION:"browser_version"},wm_c={get"location.url"(){const{location:wm_a}=window;return`${wm_a.origin}${wm_a.pathname}`},get"location.origin"(){const{location:wm_a}=window;return wm_a.origin},get"location.pathname"(){const{location:wm_a}=window;return wm_a.pathname},get"browser.dark-mode"(){const{matchMedia:wm_a}=window;return wm_a("(prefers-color-scheme: dark)").matches},get"browser.reduced-motion"(){const{matchMedia:wm_a}=window;return wm_a("(prefers-reduced-motion: reduce)").matches||wm_a("(prefers-reduced-motion: reduce)").matches},get"browser.reduced-contrast"(){const{matchMedia:wm_a}=window;return wm_a("(prefers-contrast: custom), (prefers-contrast: less), (prefers-contrast: more)").matches||wm_a("(forced-colors: active)").matches}},wm_d={trace_parent_header:"traceparent",ignore_urls:[/(https?:\/\/bam\.nr-data\.net\/?).*$/,/(https?:\/\/otlp\.nr-data\.net\/?).*$/,/(https?:\/\/otel-collector-stage\.meli\.com\/?).*$/,/(https?:\/\/otel-collector\.meli\.com\/?).*$/],resources:{"service.name":wm_b.SERVICE_NAME,"service.version":wm_b.SERVICE_VERSION,"x-meli-trace-bu":wm_b.PLATFORM_ID,"x-meli-trace-site":wm_b.SITE_ID,"x-meli-trace-platform":wm_b.DEVICE,"fury.application":wm_b.APP_NAME,"fury.service":wm_b.SCOPE_NAME,"library-name":wm_b.LIBRARY_NAME,"library-version":wm_b.LIBRARY_VERSION,"browser-name":wm_b.BROWSER_NAME,"browser-major-version":wm_b.BROWSER_MAJOR_VERSION,get"location.origin"(){const{location:wm_a}=window;return wm_a.origin},get"location.pathname"(){const{location:wm_a}=window;return wm_a.pathname}},attributes:wm_c};function wm_e(wm_a,wm_b=null){const wm_c=new RegExp(`(^| )${wm_a}=([^;]+)`).exec(document.cookie);return wm_c?wm_c[2]:wm_b}const wm_f="session_replay",wm_g="session_trace",wm_h="web_vitals",wm_i="resource_timing",wm_j="heaviest_resources",wm_k="failed_load_resources",wm_l="dom_capture",wm_m="page_with_errors",wm_n="browser_navigation",wm_o={enabled:!1,auto_instrument:!1,load_public_functions:!0,sampling:1,endpoint:"https://events.mercadolibre.com/v1/media-storage-service/session-replay-admin.session-replay-store-rola/assets",harvester:!1,features_required:[wm_g],mapped_attributes:{metadata:[wm_b.WINDOW_DOM,wm_b.WINDOW_WIDTH,wm_b.WINDOW_HEIGHT,wm_b.RAM_SIZE,wm_b.CPU_CORES,wm_b.USER_AGENT,wm_b.DARK_MODE,wm_b.REDUCED_MOTION,wm_b.REDUCED_COLOR,wm_b.URL,wm_b.APP_NAME,wm_b.SCOPE_NAME,wm_b.DEVICE,wm_b.PLATFORM_ID,wm_b.SITE_ID,wm_b.WEBVIEW,wm_b.REQUEST_ID,wm_b.VIEW_NAME,wm_b.SESSION_ID,wm_b.TRACEABILITY_ID,wm_b.CUSTOM_ATTRIBUTES,wm_b.LIBRARY_NAME,wm_b.LIBRARY_VERSION],headers:{session_id:wm_b.SESSION_ID,get user_id(){const wm_a=wm_e("orguseridp",window.melidata_namespace&&window.melidata_namespace.actual_track&&window.melidata_namespace.actual_track.user&&window.melidata_namespace.actual_track.user.user_id);return parseInt(wm_a,10)||null},get view_name(){const wm_a=window.melidata_namespace&&window.melidata_namespace.actual_track&&window.melidata_namespace.actual_track.path?window.melidata_namespace.actual_track.path:null;if(wm_a)return wm_a;let wm_b=null;try{wm_b=floxSearch(window.__PRELOADED_STATE__.floxResponse)}catch(wm_a){}const wm_c=window.location.pathname||null;return wm_b||wm_c},view_id:wm_b.REQUEST_ID,app_name:wm_b.APP_NAME,fury_context_name:wm_b.SCOPE_NAME,get mime_type(){return"application/json"},traceability_id:wm_b.TRACEABILITY_ID,metadata:wm_b.CUSTOM_ATTRIBUTES,device_platform:wm_b.DEVICE,get device_timestamp(){return Date.now()}}},strategies:{payload:{enabled:!0,exportBufferSize:50},harvester:{enabled:!1,exportTimeSeconds:1500},visibility_change:{enabled:!0}},recording:{inlineStylesheet:!0,recordCanvas:!0,recordCrossOriginIframes:!1,maskTextClass:/(ml-mask|rr-mask|nav-header-username|user-badge-title|payment-card-component)/,blockClass:/(ml-block|rr-block)/,maskInputOptions:{date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}}};var wm_p,wm_q;const wm_r="undefined"!=typeof window&&!!window.document?window:{};null==wm_r||null===(wm_p=wm_r.document)||void 0===wm_p||wm_p.readyState,Boolean("hidden"===(null==wm_r||null===(wm_q=wm_r.document)||void 0===wm_q?void 0:wm_q.visibilityState));const wm_s="WMANS";function wm_t(){return wm_r[wm_s]||(wm_r[wm_s]={TMP:{}}),void 0===wm_r.wm&&(wm_r.wm=wm_r[wm_s]),wm_r[wm_s]}function wm_u(wm_a,wm_b){wm_t().TMP=wm_t().TMP||{},wm_t().TMP[wm_a]=wm_b}function wm_v(wm_a){const wm_b=wm_t().TMP;wm_b&&wm_b[wm_a]&&delete wm_b[wm_a]}var wm_w;const wm_x="application/json",wm_y="gzip",wm_z="production"===(null==wm_r||null===(wm_w=wm_r.__wminit)||void 0===wm_w||null===(wm_w=wm_w.custom_attributes)||void 0===wm_w?void 0:wm_w.environment)?"https://o11y-proxy-otel-frontend.meli.com":"https://o11y-proxy-otel-frontend-stage.meli.com",wm_A=`${wm_z}/v1/traces`,wm_B=wm_A,wm_C=`${wm_z}/v1/metrics`,wm_D=`${wm_z}/v1/logs`,wm_E="true",wm_F={harvester:{enable:!0,buffer:{flushTime:5e3}},service_worker_url:"http://localhost:10001/signal_service_worker.js",custom_attributes:{},instruments:{features:{session_trace:{enabled:!0,load_public_functions:!0,harvester:!1,sampling:1},session_replay:wm_o,web_vitals:{enabled:!1,auto_instrument:!1,harvester:!1,sampling:1,features_required:[wm_g],mapped_attributes:{required:[wm_b.CLS,wm_b.FCP,wm_b.FID,wm_b.INP,wm_b.LCP,wm_b.TTFB]},url:wm_C,resources:wm_d.resources},resource_timing:{enabled:!1,auto_instrument:!1,harvester:!0,sampling:1,features_required:[wm_g],mapped_attributes:{metricSupport:["css","img","link","script","other"],metadata:[]}},failed_load_resources:{enabled:!1,auto_instrument:!1,harvester:!0,sampling:1,features_required:[wm_g],mapped_attributes:{metricSupport:["css","img","link","script","other"],metadata:[]}},heaviest_resources:{enabled:!1,auto_instrument:!1,harvester:!0,sampling:1,features_required:[wm_g],mapped_attributes:{fileSupport:{img:["apng","avif","gif","jpg","jpeg","jfif","pjpeg","pjp","png","svg","webp"],script:["js"],style:["css"]},thresholdEntries:{img:25e4,script:17e4,style:5e4}}},dom_capture:{enabled:!1,auto_instrument:!1,harvester:!1,endpoint:"https://events.mercadolibre.com/dom",sampling:1,features_required:[wm_g],mapped_attributes:{metadata:[wm_b.RAM_SIZE,wm_b.CPU_CORES,wm_b.NETWORK_TYPE,wm_b.NETWORK_SPEED,wm_b.USER_AGENT,wm_b.SAVE_DATA,wm_b.RTT,wm_b.D2ID,wm_b.URL,wm_b.DARK_MODE,wm_b.SESSION_ID,wm_b.WINDOW_WIDTH,wm_b.WINDOW_HEIGHT,wm_b.PLATFORM_ID,wm_b.SITE_ID,wm_b.APP_NAME,wm_b.DEVICE,wm_b.WEBVIEW,wm_b.SCOPE_NAME,wm_b.SESSION_ID,wm_b.TRACEABILITY_ID,wm_b.MLDATA_SESSION_ID,wm_b.CLIENT_NAME,wm_b.CLIENT_VERSION],headers:{get user_id(){const wm_a=wm_e("orguseridp",window.melidata_namespace&&window.melidata_namespace.actual_track&&window.melidata_namespace.actual_track.user&&window.melidata_namespace.actual_track.user.user_id);return parseInt(wm_a,10)||null},get view_name(){const wm_a=window.melidata_namespace&&window.melidata_namespace.actual_track&&window.melidata_namespace.actual_track.path?window.melidata_namespace.actual_track.path:null;if(wm_a)return wm_a;let wm_b=null;try{wm_b=floxSearch(window.__PRELOADED_STATE__.floxResponse)}catch(wm_a){}const wm_c=window.location.pathname||null;return wm_b||wm_c},view_id:wm_b.REQUEST_ID,get mime_type(){return"multipart/form-data"}}}},page_with_errors:{enabled:!1,auto_instrument:!1,harvester:!1,sampling:1,features_required:[],mapped_attributes:{}},browser_navigation:{enabled:!1,auto_instrument:!1,harvester:!0,sampling:1,features_required:[],mapped_attributes:{}}},signals:{metrics:{auto_instrument:!0,load_public_functions:!0,sampling:1,url:wm_C,compression:wm_y,required_key:wm_E,headers:{"Content-Type":wm_x},harvester:!0,resources:{},attributes:{}},traces:{auto_instrument:!0,load_public_functions:!1,url:wm_A,compression:wm_y,required_key:wm_E,headers:{"Content-Type":wm_x},sampling:.01,harvester:!1,resources:{},attributes:{}},logs:{auto_instrument:!0,load_public_functions:!0,sampling:1,url:wm_D,compression:wm_y,required_key:wm_E,headers:{"Content-Type":wm_x},harvester:!0,resources:{},attributes:{}},spans:{auto_instrument:!0,load_public_functions:!0,sampling:1,url:wm_B,compression:wm_y,required_key:wm_E,headers:{"Content-Type":wm_x},harvester:!1,resources:{},attributes:{}}}},otel:wm_d};function wm_G(wm_a,wm_b){const wm_c={...wm_a};return Object.keys(wm_b).forEach(wm_d=>{"object"==typeof wm_b[wm_d]&&wm_d in wm_a?wm_c[wm_d]=wm_G(wm_a[wm_d],wm_b[wm_d]):wm_c[wm_d]=wm_b[wm_d]}),wm_c}let wm_H={};function wm_I(wm_a){let wm_b=wm_H;if(wm_b){const wm_c=wm_a.split(".");for(let wm_a=0;wm_a{if((wm_R.TMP||{})[this.featureName]){const wm_c=wm_R.TMP[this.featureName];this.module=new wm_c(...wm_a),wm_b&&wm_b()}}}loadLegacyModule(wm_a,wm_b){const wm_c=document.createElement("script");wm_c.src=`https://http2.mlstatic.com/frontend-assets/web-monitoring/1.3.9/${this.featureName}.min.js`,wm_c.type="module",wm_c.onload=this.onLoadFunction(wm_a,wm_b),document.head.appendChild(wm_c)}};const wm_T=wm_O;function wm_U(){return wm_r.console=wm_r.console||{},wm_r.console}function wm_V(wm_a,wm_b){"function"==typeof wm_U().warn&&wm_U().warn(wm_a,wm_b)}function wm_W(wm_a,wm_b,wm_c){return(wm_b=function(wm_a){var wm_b=function(wm_a,wm_b){if("object"!=typeof wm_a||!wm_a)return wm_a;var wm_c=wm_a[Symbol.toPrimitive];if(void 0!==wm_c){var wm_d=wm_c.call(wm_a,wm_b);if("object"!=typeof wm_d)return wm_d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===wm_b?String:Number)(wm_a)}(wm_a,"string");return"symbol"==typeof wm_b?wm_b:wm_b+""}(wm_b))in wm_a?Object.defineProperty(wm_a,wm_b,{value:wm_c,enumerable:!0,configurable:!0,writable:!0}):wm_a[wm_b]=wm_c,wm_a}class wm_X{constructor(wm_a,wm_b){this.aggregator=wm_a,this.listener=null,this.feature_name=wm_b,this.running=!1}run(){throw new Error("run() function must be implemented")}removeListener(){this.listener&&document.removeEventListener(this.listener.type,this.listener.callback)}}wm_W(wm_X,"name","base");class wm_Y extends wm_X{constructor(wm_a,wm_b){super(wm_a,wm_b),this.config=wm_I(`instruments.features.${wm_b}.strategies.harvester`)}run(){this.running||(this.harvest(),this.running=!0)}harvest(){var wm_a,wm_b;setTimeout(()=>{this.aggregator.harvest(),this.harvest()},null!==(wm_a=null===(wm_b=this.config)||void 0===wm_b?void 0:wm_b.exportTimeSeconds)&&void 0!==wm_a?wm_a:1)}}wm_W(wm_Y,"name","harvester");class wm_Z extends wm_X{constructor(wm_a,wm_b){super(wm_a,wm_b),this.config=wm_I(`instruments.features.${wm_b}.strategies.payload`)}run(){var wm_a,wm_b;this.aggregator.getSize()>=(null!==(wm_a=null===(wm_b=this.config)||void 0===wm_b?void 0:wm_b.exportBufferSize)&&void 0!==wm_a?wm_a:0)&&this.aggregator.harvest()}}wm_W(wm_Z,"name","payload");class wm_$ extends wm_X{constructor(wm_a,wm_b){super(wm_a,wm_b),this.config=wm_I(`instruments.features.${wm_b}.strategies.visibility_change`),this.eventName="pageRenderEvent"}run(){this.running||(this.listener={type:"visibilitychange",callback:()=>{"hidden"===document.visibilityState&&this.aggregator.harvest()}},document.addEventListener(this.listener.type,this.listener.callback),this.running=!0)}}function wm__(){return"undefined"!=typeof window}function wm_aa(){return"navigator"in window}wm_W(wm_$,"name","visibility_change");const wm_ba=/(?:_d2id=)([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})/;const wm_ca=wm_a=>{const wm_c=function(wm_a){if(!wm_a)return null;const wm_b=wm_a.match(wm_ba);return wm_b?wm_b[1]:wm_b}("undefined"!=typeof document&&document.cookie);if(wm_c&&wm_a(wm_b.D2ID,`${wm_c}`),wm__()&&wm_a(wm_b.URL,`${window.location.origin}${window.location.pathname}`),wm__()&&void 0!==window.matchMedia){wm_a(wm_b.DARK_MODE,window.matchMedia("(prefers-color-scheme: dark)").matches);const wm_c=window.matchMedia("(prefers-reduced-motion: reduce)").matches||window.matchMedia("(prefers-reduced-motion: reduce)").matches;wm_a(wm_b.REDUCED_MOTION,wm_c);const wm_d=window.matchMedia("(prefers-contrast: custom), (prefers-contrast: less), (prefers-contrast: more)").matches||window.matchMedia("(forced-colors: active)").matches;wm_a(wm_b.REDUCED_COLOR,wm_d)}},wm_da=wm_a=>{const wm_c=wm_e(wm_b.MLDATA_SESSION_ID);if(!wm_c){const wm_c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,wm_a=>{const wm_b=16*Math.random()|0;return("x"===wm_a?wm_b:3&wm_b|8).toString(16)});return function(wm_a,wm_b,wm_c={}){document.cookie=`${wm_a}=${wm_b}; ${Object.keys(wm_c).map(wm_a=>`${wm_a}=${wm_c[wm_a]}`).join("; ")}`}(wm_b.MLDATA_SESSION_ID,wm_c,{"max-age":18e5}),void wm_a(wm_b.SESSION_ID,wm_c)}wm_a(wm_b.SESSION_ID,wm_c)};function wm_ea(wm_a,wm_b=6){return Number.isNaN(wm_a)||!wm_a||Number.isInteger(wm_a)||"string"==typeof wm_a?wm_a:parseFloat(wm_a.toFixed(wm_b))}const wm_fa=wm_a=>{try{if(wm__()&&"__PRELOADED_STATE__"in window&&"WeakSet"in window){const wm_c=JSON.stringify(window.__PRELOADED_STATE__,(()=>{const wm_a=new WeakSet;return(wm_b,wm_c)=>{if("object"==typeof wm_c&&null!==wm_c){if(wm_a.has(wm_c))return;wm_a.add(wm_c)}return wm_c}})());wm_a(wm_b.INITIAL_CONTENT_SIZE,wm_c.length)}}catch(wm_a){}},wm_ga=wm_a=>{if(!("performance"in window))return;const wm_c=window.performance.getEntriesByType("resource").filter(wm_a=>new RegExp("http2.mlstatic.com").test(wm_a.name)),wm_d=wm_c.reduce((wm_a,wm_b)=>wm_a+=wm_b.duration,0);wm_a(wm_b.DURATION_SUM,wm_ea(wm_d)),wm_a(wm_b.RESOURCE_SIZE,wm_c.length)},wm_ha=wm_a=>{const wm_c=(()=>{const wm_a=window.melidata_namespace&&window.melidata_namespace.actual_track&&window.melidata_namespace.actual_track.path?window.melidata_namespace.actual_track.path:null;if(wm_a)return wm_a;let wm_b=null;try{wm_b=floxSearch(window.__PRELOADED_STATE__.floxResponse)}catch(wm_a){}const wm_c=window.location.pathname||null;return wm_b||wm_c})();wm_c&&wm_a(wm_b.VIEW_NAME,wm_c);const wm_d=((wm_a=null)=>{const wm_b=wm_e("orguseridp",window.melidata_namespace&&window.melidata_namespace.actual_track&&window.melidata_namespace.actual_track.user&&window.melidata_namespace.actual_track.user.user_id);return wm_b&&!Number.isNaN(parseInt(wm_b,10))?parseInt(wm_b,10):wm_a})();wm_d&&wm_a(wm_b.USER_ID,parseInt(wm_d,10))};const wm_ia={g:"google",a:"akamai"},wm_ja=wm_a=>{"fetch"in window&&async function(wm_a,wm_b={}){return window.fetch(wm_a,wm_b)}("https://http2.mlstatic.com/cdn/ping.gif").then(wm_c=>{if(wm_c.headers.has("x-cdn")){const wm_d=wm_c.headers.get("x-cdn");wm_a(wm_b.X_CDN,wm_ia[wm_d])}}).catch(wm_a=>wm_a)},wm_ka=[wm_Y,wm_Z,wm_$];let wm_la=class wm_a{static model={sharedContext:{},context:{}};static monitorLoadedStatus=!1;strategies=[];constructor(wm_b,wm_c){try{if(null!==wm_b&&"object"!=typeof wm_b)return void wm_V("shared context requires an object as input");wm_a.model.context[wm_c]={},Object.entries(wm_b).forEach(([wm_b,wm_d])=>{Object.keys(wm_a.model.sharedContext).includes(wm_b)?wm_a.model.sharedContext[wm_b]=wm_d:wm_a.model.context[wm_c][wm_b]=wm_d}),this.loadCustomAttributes(),this.loadStrategies(wm_c),wm_a.monitorLoadedStatus||(this.loadMonitors(),wm_a.monitorLoadedStatus=!0),this.loadPublicFunctions()}catch(wm_a){wm_V("An error occured while setting SharedContext",wm_a)}}loadStrategies(wm_a){wm_ka.filter(wm_b=>wm_J(`${wm_a}.strategies.${wm_b.name}`)).forEach(wm_b=>{this.strategies.push(new wm_b(this,wm_a))})}loadCustomAttributes(){const wm_b=wm_H["custom_attributes"];Object.keys(wm_b).forEach(wm_c=>{wm_a.model.sharedContext[wm_c]=wm_b[wm_c]})}loadPublicFunctions(){wm_r.WMANS&&(wm_r.WMANS.setCustomAttributes=wm_b=>{wm_a.model.sharedContext={...wm_a.model.sharedContext,...wm_b}},wm_r.WMANS.setCustomAttribute=(wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b),wm_r.WMANS.getContext=()=>wm_a.model)}loadMonitors(){var wm_a;this.addToSharedContext(wm_b.LIBRARY_NAME,"@meli/web-monitoring-browser"),this.addToSharedContext(wm_b.LIBRARY_VERSION,"1.3.9"),wm_a=(wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b),wm_aa()&&(window.navigator.deviceMemory&&wm_a(wm_b.RAM_SIZE,`${window.navigator.deviceMemory}`),window.navigator.hardwareConcurrency&&wm_a(wm_b.CPU_CORES,`${window.navigator.hardwareConcurrency}`)),(wm_a=>{if(!wm_aa())return;const{navigator:wm_c}=window;wm_c.connection&&(wm_c.connection.effectiveType&&wm_a(wm_b.NETWORK_TYPE,wm_c.connection.effectiveType),wm_c.connection.downlink&&wm_a(wm_b.NETWORK_SPEED,`${wm_c.connection.downlink}`),"saveData"in wm_c.connection&&wm_a(wm_b.SAVE_DATA,wm_c.connection.saveData),wm_c.connection.rtt&&wm_a(wm_b.RTT,`${wm_c.connection.rtt}`)),wm_c.userAgent&&wm_a(wm_b.USER_AGENT,wm_c.userAgent)})((wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b)),wm_ca((wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b)),wm_da((wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b)),(wm_a=>{const[wm_c]=window.performance.getEntriesByType("navigation");if(wm_c){const{domComplete:wm_d,domContentLoadedEventEnd:wm_e,domContentLoadedEventStart:wm_f,domInteractive:wm_g,loadEventEnd:wm_h,loadEventStart:wm_i,redirectCount:wm_j,requestStart:wm_k,responseStart:wm_l,responseEnd:wm_m,type:wm_n}=wm_c;wm_j&&wm_a(wm_b.REDIRECT_COUNT,wm_j),wm_d&&wm_a(wm_b.DOM_COMPLETE,wm_ea(wm_d)),wm_g&&wm_a(wm_b.DOM_INTERACTIVE,wm_ea(wm_g)),wm_e&&wm_a(wm_b.DOM_CONTENT_LOADED_END,wm_ea(wm_e)),wm_f&&wm_a(wm_b.DOM_CONTENT_LOADED_START,wm_ea(wm_f)),wm_f&&wm_e&&wm_a(wm_b.DOM_CONTENT_LOADED,wm_ea(wm_e-wm_f)),wm_h&&wm_a(wm_b.ONLOAD_END,wm_ea(wm_h)),wm_i&&wm_a(wm_b.ONLOAD_START,wm_ea(wm_i)),wm_i&&wm_h&&wm_a(wm_b.ONLOAD,wm_ea(wm_h-wm_i)),wm_k&&wm_a(wm_b.REQUEST_START,wm_ea(wm_k)),wm_l&&wm_a(wm_b.RESPONSE_START,wm_ea(wm_l)),wm_m&&wm_a(wm_b.RESPONSE_END,wm_ea(wm_m)),wm_l&&wm_m&&wm_a(wm_b.RESPONSE_TIME,wm_ea(wm_m-wm_l)),wm_n&&wm_a(wm_b.NAVIGATION_TYPE,wm_n)}})((wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b)),wm_fa((wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b)),wm_ga((wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b)),(wm_a=>{const{innerWidth:wm_c,innerHeight:wm_d}=window;wm_c&&wm_a(wm_b.WINDOW_WIDTH,`${wm_c}`),wm_d&&wm_a(wm_b.WINDOW_HEIGHT,`${wm_d}`)})((wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b)),wm_ha((wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b)),wm_ja((wm_a,wm_b)=>this.addToSharedContext(wm_a,wm_b))}getContext(wm_b){return{...wm_a.model.sharedContext,...wm_a.model.context[wm_b]}}getSharedContext(){return wm_a.model.sharedContext}getLocalContext(wm_b){return wm_a.model.context[wm_b]}addToSharedContext(wm_b,wm_c){wm_a.model.sharedContext[wm_b]=wm_c}addToContext(wm_b,wm_c,wm_d){wm_a.model.context[wm_b][wm_c]=wm_d}incrementToContext(wm_b,wm_c,wm_d){wm_a.model.context[wm_b][wm_c]||(wm_a.model.context[wm_b][wm_c]=[]),wm_a.model.context[wm_b][wm_c].push(wm_d)}makeSnapshot(wm_a){const wm_b=this.getContext(wm_a);return this.clearContext(wm_a),wm_b}restoreSnapshot(wm_a,wm_b){Object.entries(wm_b).forEach(([wm_b,wm_c])=>{this.addToContext(wm_a,wm_b,wm_c)})}getSize(wm_b){return wm_a.model.context[wm_b]}addStrategy(wm_a){this.strategies.push(wm_a),wm_a.run()}runStrategies(){this.strategies.forEach(wm_a=>wm_a.run())}clearContext(wm_b){delete wm_a.model.context[wm_b],wm_a.model.context[wm_b]={}}static setCustomAttribute(wm_b,wm_c){wm_a.model.sharedContext[wm_b]=wm_c}harvest(){}},wm_ma=class extends wm_la{constructor(){super({},wm_T)}};const wm_na=wm_L;let wm_oa=class extends wm_la{constructor(){super({},wm_na)}};class wm_pa{static queue=new Map;push(wm_a,wm_b){wm_pa.queue.has(wm_a)?wm_pa.queue.get(wm_a).push(wm_b):wm_pa.queue.set(wm_a,[wm_b])}pop(wm_a){if(wm_pa.queue.has(wm_a)){const wm_b=wm_pa.queue.get(wm_a);return wm_pa.queue.delete(wm_a),wm_b}return null}}function wm_qa(wm_a=1,wm_b=!1){return Math.random()%100<100*wm_a||wm_b}const wm_ra=wm_t();const wm_sa=wm_f;function wm_ta(wm_a={},wm_b=[]){return wm_b.reduce((wm_b,wm_c)=>(wm_a.hasOwnProperty(wm_c)&&(wm_b[wm_c]=wm_a[wm_c]),wm_b),{})}function wm_ua(wm_a,wm_b){const wm_c=Object.getOwnPropertyDescriptor(wm_a,wm_b);return!!wm_c&&"function"==typeof wm_c.get}let wm_va=class extends wm_la{constructor(){super({},wm_sa),this.local_config=wm_I(`instruments.features.${wm_sa}.mapped_attributes`)}getContext(){return super.getContext(wm_sa)}makeSnapshot(){return super.makeSnapshot(wm_sa)}incrementToContext(wm_a){super.incrementToContext(wm_sa,wm_b.SESSION_REPLAY,wm_a),this.runStrategies()}buildMetadataFromContext(){const wm_a=wm_ta(super.getSharedContext(wm_sa),this.local_config.metadata);if(!Object.keys(wm_a).length)throw new Error("Metrics not found");return{name:wm_sa,data:wm_a}}getSize(){var wm_a,wm_c;return null!==(wm_a=null===(wm_c=super.getLocalContext(wm_sa)[wm_b.SESSION_REPLAY])||void 0===wm_c?void 0:wm_c.length)&&void 0!==wm_a?wm_a:0}harvest(){if(0===this.getSize())return;const wm_a=this.makeSnapshot(),wm_c=this.buildPayload(wm_a);!function(wm_a,wm_b,wm_c=!0){window.fetch(wm_a,{method:"POST",body:wm_b,mode:"cors",headers:{"Content-Type":"application/json"},keepalive:wm_c}).then(async wm_a=>wm_a.text()).catch(wm_a=>wm_a)}(`${function(wm_a){const wm_b="rola";let wm_c=wm_b;return wm_a&&(wm_c=["mla","mlb","mlm"].some(wm_b=>wm_b.toLowerCase()===wm_a.toLowerCase())?wm_a.toLowerCase():wm_b),`https://events.mercadolibre.com/v1/media-storage-service/session-replay-admin.session-replay-store-${wm_c}/assets`}(wm_a[wm_b.SITE_ID])}`,JSON.stringify(wm_c),!1)}buildPayload(wm_a){const wm_c=Object.entries(this.local_config.headers).reduce((wm_a,[wm_b,wm_c])=>(wm_ua(this.local_config.headers,wm_b)?wm_a[wm_b]=wm_c:wm_a[wm_b]=super.getSharedContext(wm_sa)[wm_c],wm_a),{});return wm_c.asset=wm_a[wm_b.SESSION_REPLAY],{data:wm_c}}};const wm_wa=wm_t();const wm_xa=wm_l;let wm_ya=class extends wm_la{constructor(){super({},wm_xa),this.endpoint=wm_I(`instruments.features.${wm_xa}.endpoint`),this.local_config=wm_I(`instruments.features.${wm_xa}.mapped_attributes`)}getContext(){return super.getContext(wm_xa)}getHeaders(){return this.local_config.headers}buildPayload(){return{data:Object.entries(this.local_config.headers).reduce((wm_a,[wm_b,wm_c])=>(wm_ua(this.local_config.headers,wm_b)?wm_a[wm_b]=wm_c:wm_a[wm_b]=super.getSharedContext(wm_xa)[wm_c],wm_a),{})}}buildMetadataFromContext(){const wm_a=wm_ta(super.getSharedContext(wm_xa),this.local_config.metadata);if(!Object.keys(wm_a).length)throw new Error("Metrics not found");return{name:wm_xa,data:wm_a}}};const wm_za=wm_t();const wm_Aa=wm_h;let wm_Ba=class extends wm_la{constructor(){super({},wm_Aa),this.local_config=wm_I(`instruments.features.${wm_Aa}.mapped_attributes`)}getContext(){return super.getContext(wm_Aa)}makeSnapshot(){return super.makeSnapshot(wm_Aa)}};const wm_Ca=wm_t();const wm_Da=wm_i;let wm_Ea=class extends wm_la{constructor(){super({},wm_Da),this.local_config=wm_I(`instruments.features.${wm_Da}.mapped_attributes`)}getContext(){return super.getContext(wm_Da)}makeSnapshot(){return super.makeSnapshot(wm_Da)}restoreSnapshot(wm_a){super.restoreSnapshot(wm_Da,wm_a)}incrementToContext(wm_a){super.incrementToContext(wm_Da,wm_b.RESOURCE_TIMING,wm_a)}getSize(){var wm_a,wm_c;return null!==(wm_a=null===(wm_c=super.getLocalContext(wm_Da)[wm_b.RESOURCE_TIMING])||void 0===wm_c?void 0:wm_c.length)&&void 0!==wm_a?wm_a:0}harvest(){var wm_a;if(0===this.getSize())return;const wm_c=this.makeSnapshot(),wm_d=wm_ta(super.getSharedContext(wm_Da),this.local_config.metadata);null!==(wm_a=wm_r.WMANS)&&void 0!==wm_a&&wm_a.recordSpan&&wm_r.WMANS.recordSpan(`${wm_Da}`,wm_c[wm_b.RESOURCE_TIMING],{...wm_d},!0)}};const wm_Fa=wm_t();const wm_Ga=wm_g;let wm_Ha=class extends wm_la{constructor(){super({},wm_Ga)}getEvents(){const wm_a=this.getSharedContext(),wm_b=[];return Object.keys(wm_a).forEach(wm_c=>{wm_b.push({name:wm_c,value:wm_a[wm_c]})}),wm_b}};const wm_Ia=wm_t();const wm_Ja=wm_j;let wm_Ka=class extends wm_la{constructor(){super({},wm_Ja),this.local_config=wm_I(`instruments.features.${wm_Ja}.mapped_attributes`)}getContext(){return super.getContext(wm_Ja)}makeSnapshot(){return super.makeSnapshot(wm_Ja)}restoreSnapshot(wm_a){super.restoreSnapshot(wm_Ja,wm_a)}incrementToContext(wm_a){super.incrementToContext(wm_Ja,wm_b.AVAILABILITY_TRANSFER_SIZE,wm_a)}getSize(){var wm_a,wm_c;return null!==(wm_a=null===(wm_c=super.getLocalContext(wm_Ja)[wm_b.AVAILABILITY_TRANSFER_SIZE])||void 0===wm_c?void 0:wm_c.length)&&void 0!==wm_a?wm_a:0}harvest(){var wm_a;if(0===this.getSize())return;let wm_c=!1;const wm_d=this.makeSnapshot(),wm_e=wm_ta(super.getSharedContext(wm_Ja),this.local_config.metadata);null!==(wm_a=wm_r.WMANS)&&void 0!==wm_a&&wm_a.recordSpan&&(wm_r.WMANS.recordSpan(`${wm_Ja}`,wm_d[wm_b.RESOURCE_TIMING],wm_e,!0),wm_c=!0),wm_c||this.restoreSnapshot(wm_d)}};const wm_La=wm_t();const wm_Ma=wm_k;let wm_Na=class extends wm_la{constructor(){super({},wm_Ma),this.local_config=wm_I(`instruments.features.${wm_Ma}.mapped_attributes`)}incrementToContext(wm_a){super.incrementToContext(wm_Ma,wm_b.AVAILABILITY_FAILURE,wm_a)}getSize(){var wm_a,wm_c;return null!==(wm_a=null===(wm_c=super.getLocalContext(wm_Ma)[wm_b.AVAILABILITY_FAILURE])||void 0===wm_c?void 0:wm_c.length)&&void 0!==wm_a?wm_a:0}makeSnapshot(){return super.makeSnapshot(wm_Ma)}harvest(){if(0===this.getSize())return;const wm_a=this.makeSnapshot()[wm_b.AVAILABILITY_FAILURE],wm_c=wm_ta(super.getSharedContext(wm_Ma),this.local_config.metadata);this.send(wm_c,wm_a)}send(wm_a,wm_b){var wm_c;null!==(wm_c=wm_r.WMANS)&&void 0!==wm_c&&wm_c.recordSpan&&wm_r.WMANS.recordSpan(`${wm_Ma}`,wm_b,{...wm_a},!0,{code:2,message:"Failed to load resource"})}};const wm_Oa=wm_t();const wm_Pa=wm_m;let wm_Qa=class extends wm_la{constructor(){super({},wm_Pa)}};const wm_Ra=["mercadolibre","mercadopago","mercadolivre","mercadoclics","mercadoshops","mlstatic","mercadolivreexperience"],wm_Sa=["com","com.ar","com.br","com.mx","com.co","com.ve","com.pe","com.ec","com.uy","com.pa","com.do","com.cr","cl","com.pt"];const wm_Ta=function(){const wm_a=[];return wm_Ra.forEach(wm_b=>{("mercadolivre"===wm_b?["com","com.br","com.pt"]:wm_Sa).forEach(wm_c=>{const wm_d=`${wm_b}.${wm_c}`;wm_a.push(wm_d)})}),wm_a}(),wm_Ua={FIRST_PARTY:"first-party",THIRD_PARTY:"third-party",BROWSER_EXTENSION:"browser-extension",PLUGIN:"plugin",ADDON:"addon",BACKGROUND_SERVICE:"background-service",INLINE_SCRIPT:"inline-script",UNKNOWN:"unknown"},wm_Va=[/^chrome-extension:\/\//i,/^moz-extension:\/\//i,/^safari-extension:\/\//i,/^extension:\/\//i,/^chrome:\/\/extensions/i,/^resource:\/\/extension/i],wm_Wa=[/^plugin:\/\//i,/\/plugins\//i,/plugin\.js$/i],wm_Xa=[/^service-worker\.js/i,/^worker\.js/i,/^background\.js/i,/^background-service/i,/\/workers\//i],wm_Ya=[/^addon:\/\//i,/\/addons\//i,/addon\.js$/i],wm_Za=[/^eval /i,/^$/i,/eval at /i,/