!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="019fa6ee-c72f-7b93-b4f9-eb28841c5f58")}catch(e){}}();import{createScraper as b}from"./scraper-dpzf502E.js";const a="betfair";b({bookie:a},q);function q(){const e=[];document.querySelectorAll("tr.runner-line").forEach(l=>{const t=l.querySelector(".horse-racing"),s=t?.querySelector(".runner-name")?.textContent?.trim()||"";let n=t?.querySelector(".saddle-cloth")?.textContent?.trim()||"";n||(n=t?.querySelector('[class*="saddle-cloth-"]')?.className.match(/saddle-cloth-(\d+)/)?.[1]??"");const u=t?.querySelector(".stall-draw")?.textContent?.trim()||"",i=parseInt(u.match(/\d+/)?.[0]??"0"),o=l.querySelector('.lay-cell button[is-best-selection="true"]')?.querySelectorAll("label"),m=o?.[0]?.textContent?.trim()||"",d=o?.[1]?.textContent?.trim()||"",y=parseFloat(d.replace("$",""));e.push({name:s,number:Number(n),stall:Number(i),odds:{[a]:{win:Number(m),liquidity:Number(y)}}})});const c={isLoggedIn:g(),balance:p()};return{runners:e,metadata:c}}function g(){const e=document.querySelector(".mod-login-login input[type=submit]");return e?e.getAttribute("value")!=="Log In":!1}function p(){const r=document.querySelector('td.ssc-wla[rel="main"]')?.textContent?.trim()||"";return parseFloat(r.replace(/[^0-9.]/g,""))}

//# chunkId=019fa6ee-c72f-7b93-b4f9-eb28841c5f58