1function l(n,c){return c.split(".").reduce((i,o)=>i?.[o],n)}function y(n,c){const i={...n};for(const o in c)c[o]&&typeof c[o]=="object"&&!Array.isArray(c[o])?i[o]=y(n[o]||{},c[o]):c[o]!==void 0&&c[o]!==null&&(i[o]=c[o]);return i}function A(){const n=navigator.language||navigator.languages?.[0]||"en-US",c=n.includes("-US")||n.includes("-LR")||n.includes("-MM");document.querySelectorAll("[data-weight-display]").forEach(a=>{const u=a.getAttribute("data-weight-lbs"),d=a.getAttribute("data-weight-kg");c&&u?a.textContent=u:d&&(a.textContent=d)}),document.querySelectorAll("[data-weight-display-img]").forEach(a=>{if(a instanceof HTMLImageElement){const u=a.getAttribute("data-weight-img-lbs"),d=a.getAttribute("data-weight-img-kg");if(c&&u){a.src=u;const e=a.getAttribute("srcset");if(e&&d){const t=e.replace(new RegExp(d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),u);a.setAttribute("srcset",t)}}else if(d){a.src=d;const e=a.getAttribute("srcset");if(e&&u){const t=e.replace(new RegExp(u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),d);a.setAttribute("srcset",t)}}}})}function w(){const n=window.__LOCALE__||"en",c=window.__TRANSLATIONS__;if(!c)return;const i=n==="en"?c.en:y(c.en,c[n]||{});function o(e,t){let s=e;for(const[r,f]of Object.entries(t)){const g=new RegExp(`{{\\s*${r}\\s*}}`,"g");s=s.replace(g,f)}return s}document.querySelectorAll("[data-i18n]").forEach(e=>{const t=e.getAttribute("data-i18n");if(t){let s;if(e.getAttribute("data-weight-kg"),e.getAttribute("data-weight-lbs"),t.includes("testimonials")&&t.includes(".text")){const r=navigator.language||navigator.languages?.[0]||"en-US";if(r.includes("-US")||r.includes("-LR")||r.includes("-MM"))s=l(i,t);else{const g=t.replace(/\.text$/,".textKg");s=l(i,g),s||(s=l(i,t))}}else if(n!=="en")s=l(i,t);else return;if(typeof s=="string")if(e.hasAttribute("data-i18n-html"))if(s.includes("{{")){const r={},f=/\{\{(\w+)\}\}/g;let g;for(;(g=f.exec(s))!==null;){const p=g[1];if(p==="coachAvo"){const h=l(i,"shared.coach_avo");r.coachAvo=`<span class="text-confidence">${h}â¢</span>`}else if(p==="blinky"){const h=l(i,"shared.blinky");r.blinky=`<span class="text-confidence">${h}</span>`}else if(p==="terms_of_use_link"){const h=l(i,"footer.terms_of_use"),b=n!=="en"?`/tos/${n}`:"/tos";r.terms_of_use_link=`<a href='${b}' class='text-primary'>${h}</a>`}else if(p==="refund_policy_link"){const h=l(i,"shared.refund_policy"),b=n!=="en"?`/refund/${n}`:"/refund";r.refund_policy_link=`<a href='${b}' class='text-primary'>${h}</a>`}}e.innerHTML=o(s,r)}else e.innerHTML=s;else e.textContent=s}}),document.querySelectorAll("[data-i18n='pages.home.pounds_lost'][data-weight-display]").forEach(e=>{const t=l(i,"pages.home.kg_lost"),s=l(i,"pages.home.pounds_lost");t&&e.setAttribute("data-weight-kg",t),s&&e.setAttribute("data-weight-lbs",s)}),document.querySelectorAll("[data-i18n^='pages.home.testimonials.'][data-weight-kg][data-weight-lbs]").forEach(e=>{const t=e.getAttribute("data-i18n");if(t&&t.includes(".text")){const s=l(i,t),r=t.replace(/\.text$/,".textKg"),f=l(i,r);s&&e.setAttribute("data-weight-lbs",s),f&&e.setAttribute("data-weight-kg",f)}}),A();const a=["/privacy","/refund","/tos","/tm"];document.querySelectorAll("a[href]").forEach(e=>{const t=e.getAttribute("href");if(t)for(const s of a)t===s||t===`${s}/`?n!=="en"&&e.setAttribute("href",`${s}/${n}`):t.startsWith(`${s}/`)&&t.match(new RegExp(`^${s}/([^/]+)/?$`))&&(n!=="en"?e.setAttribute("href",`${s}/${n}`):e.setAttribute("href",s))});const u=window.__IMAGE_MANIFEST__||{},d=window.__IMAGE_BASE_PATH__||"/landing/homepage/images";document.querySelectorAll("img[data-i18n-img]").forEach(e=>{if(e instanceof HTMLImageElement){const t=e.getAttribute("data-i18n-img");if(t&&u[t]){const r=u[t].includes(n)?n:"en",f=`${d}/${r}/${t}`;if(e.src!==f){e.src=f;const g=e.getAttribute("srcset");if(g){const p=g.replace(/\/en\//g,`/${r}/`);e.setAttribute("srcset",p)}}}}})}w();document.readyState==="loading"?document.addEventListener("DOMContentLoaded",A):(A(),setTimeout(A,100));function _(n){document.querySelectorAll("a.locale_link").forEach(i=>{if(i instanceof HTMLElement){const o=i.getAttribute("href");if(o){let a=o;a.includes("&lang=")?a=a.replace(/&lang=[^&]*/,"&lang="+n):a.includes("?lang=")?a=a.replace(/\?lang=[^&]*/,"?lang="+n):a.includes("?")?a=a+"&lang="+n:a=a+"?lang="+n,i.setAttribute("href",a)}}})}function m(){const n=window.__LOCALE__||localStorage.getItem("userLocale")||"en";_(n)}document.addEventListener("click",function(n){const c=n.target;if(c&&c instanceof HTMLElement){const i=c.getAttribute("data-locale");i&&_(i)}});document.readyState==="loading"?document.addEventListener("DOMContentLoaded",m):m();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.