!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-c71c-71e2-8f64-be21e6d4f04e")}catch(e){}}();import{_ as f}from"./preload-helper-BXl3LOEh.js";const{createScraper:m}=await f(async()=>{const{createScraper:n}=await import("./scraper-dpzf502E.js");return{createScraper:n}},[]),i="bet365",c=["win","fixed win"],p=["place","fixed place"],s="h4";m({bookie:i},x);function x(){const n=T();return{runners:E().map(({number:r,row:t})=>({number:r,odds:{[i]:{win:b(t,n)}}}))}}function E(){const n=[];return document.querySelectorAll(s).forEach(e=>{const r=a(e);if(r===null)return;const t=w(e);t&&n.push({number:r,row:t})}),n}function a(n){const e=u(n.firstElementChild?.textContent||""),r=u(n.textContent||"").slice(e.length);if(!e||!r||!/^\d+$/.test(e))return null;const t=Number(e);return Number.isFinite(t)?t:null}function w(n){let e=n.parentElement;for(;e?.parentElement&&e.parentElement!==document.body&&d(e.parentElement)===1;)e=e.parentElement;return e}function d(n){return Array.from(n.querySelectorAll(s)).filter(e=>a(e)!==null).length}function b(n,e){if(e===null||/(^|\s)scratched(\s|$)/i.test(u(n.textContent||"")))return null;const r=l(n).filter(o=>/^\d+\.\d+$/.test(o)),t=Number(r[e]??NaN);return Number.isFinite(t)&&t>1?t:null}function T(){for(const n of h(c)){const e=N(n);if(!e)continue;const r=l(e).map(o=>o.toLowerCase());if(!r.some(o=>p.includes(o)))continue;const t=r.findIndex(o=>c.includes(o));return t>=0?t:null}return null}function N(n){let e=n;for(;e&&e!==document.body;){if(d(e)>0)return null;if(l(e).length>1)return e;e=e.parentElement}return null}function h(n){const e=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT),r=[];for(let t=e.nextNode();t;t=e.nextNode()){const o=u(t.textContent||"").toLowerCase();n.includes(o)&&t.parentElement&&r.push(t.parentElement)}return r}function l(n){const e=document.createTreeWalker(n,NodeFilter.SHOW_TEXT),r=[];for(let t=e.nextNode();t;t=e.nextNode()){const o=u(t.textContent||"");o&&r.push(o)}return r}function u(n){return n.replace(/\s+/g," ").trim()}

//# chunkId=019fa6ee-c71c-71e2-8f64-be21e6d4f04e