PageSourceSearch

https://matchwiz.ai/_next/static/chunks/app/layout-86217fcf07882283.js

js matchwiz.ai collected 2026-10-05 15:39:08 UTC 14,495 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{3941:(e,t,a)=>{"use strict";a.d(t,{N:()=>s});var n=a(58247);let r="https://ujmfqqggvawfwczkcgwm.supabase.co",l="sb_publishable_rhbCVEyMYvPPqrk0rhXdgQ_0KvJIBRE",s=r&&l?(0,n.UU)(r,l):null},5793:(e,t,a)=>{"use strict";a.d(t,{ER:()=>c,Fb:()=>f,G$:()=>d,Jn:()=>i,KA:()=>l,KH:()=>m,_R:()=>o,b:()=>h,cv:()=>s,fk:()=>u,l1:()=>p,qW:()=>r});let n={strikeouts:"strikeout-props",hits:"hits-props",hr:"home-run-props",rbi:"rbi-props",runs:"runs-scored-props",total_bases:"total-bases-props",singles:"singles-props",doubles:"doubles-props",triples:"triples-props",walks:"walks-props",stolen_bases:"stolen-base-props",hits_runs_rbis:"hits-runs-rbis",fantasy:"dfs-projections",pitcher_earned_runs:"pitcher-earned-runs",pitcher_hits_allowed:"pitcher-hits-allowed",pitcher_walks:"pitcher-walks",pitcher_outs:"pitcher-outs",pitcher_fantasy:"pitcher-dfs",moneyline:"moneyline-picks",nrfi:"no-runs-first-inning"};function r(e,t,a){var r;let l="/mlb/".concat(null!=(r=n[e])?r:e);return t&&(l+="/".concat(t)),a&&(l+="/".concat(a)),l}Object.fromEntries(Object.entries(n).map(e=>{let[t,a]=e;return[a,t]}));let l=e=>"/mlb/game/".concat(e),s="/mlb/scores",o="/mlb/schedule",i=e=>e?"".concat(o,"/").concat(e):o,c="/mlb/standings",u=e=>"/mlb/team/".concat(e.toLowerCase()),d="/mlb/".concat("plays-of-the-day"),m=e=>r("moneyline",e),h=e=>r("nrfi",e),p="/mlb/player",f=e=>{var t;if("string"==typeof e)return"".concat(p,"/").concat(e);let a=e.slug||(e.name?function(e,t){return(e||"").normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||(null!=t?"player-".concat(t):"player")}(e.name,e.playerId):String(null!=(t=e.playerId)?t:""));return"".concat(p,"/").concat(a)}},7e3:(e,t,a)=>{"use strict";function n(e){let t=Math.max(0,Math.min(100,e))/100,a=Math.round((t<.5?t/.5:(t-.5)/.5)*100),n="color-mix(in oklab, ".concat(t<.5?"var(--heat-lo)":"var(--heat-mid)",", ").concat(t<.5?"var(--heat-mid)":"var(--heat-hi)"," ").concat(a,"%)");return{color:n,bg:"color-mix(in srgb, ".concat(n," 14%, transparent)"),bar:"color-mix(in srgb, ".concat(n," 22%, transparent)"),border:"color-mix(in srgb, ".concat(n," 55%, transparent)")}}function r(e){if(!e)return"TBD";try{return new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",timeZone:"America/New_York"}).format(new Date(e))}catch(e){return"TBD"}}function l(e){if(!e)return null;try{let t=new Intl.DateTimeFormat("en-US",{timeZone:"America/New_York",hour:"numeric",hour12:!1}).formatToParts(new Date(e));return Number(t.find(e=>"hour"===e.type).value)%24}catch(e){return null}}function s(e){let t=e%12;return 0===t&&(t=12),"".concat(t," ").concat(e<12?"AM":"PM")}function o(e){let[t,a,n]=e.split("-").map(Number);return new Intl.DateTimeFormat("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}).format(new Date(Date.UTC(t,a-1,n)))}function i(e){let t=(e||"").toUpperCase();return"F"===t||"O"===t?{kind:"final",label:"Final"}:t.startsWith("I")?{kind:"live",label:"Live"}:t.startsWith("D")||"C"===t||"U"===t||"T"===t?{kind:"off",label:"PPD"}:{kind:"upcoming",label:"Upcoming"}}a.d(t,{EU:()=>f,Hf:()=>s,IE:()=>h,Oe:()=>c,S8:()=>p,TS:()=>u,bJ:()=>m,dr:()=>n,hI:()=>i,lF:()=>o,mx:()=>l,s9:()=>r,sy:()=>d});let c=e=>"".concat(Math.round(100*e),"%"),u=e=>null==e?"—":e.toFixed(3).replace(/^0/,"");function d(e,t){if(!t)return"Live";let a=(e||"").toLowerCase(),n=a.startsWith("top")?"Top":a.startsWith("bot")?"Bot":a.startsWith("mid")?"Mid":a.startsWith("end")?"End":"";return n?"".concat(n," ").concat(t):"Inn ".concat(t)}let m=e=>null==e?null:"".concat(Math.floor(e/3),".").concat(e%3),h=e=>{let t=["th","st","nd","rd"],a=e%100;return"".concat(e).concat(t[(a-20)%10]||t[a]||t[0])},p=e=>(e||"").normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9 ]/g," ").replace(/\s+/g," ").trim();function f(e){let t=e.trim().split(/\s+/);return t.length<2?e:"".concat(t[0][0],". ").concat(t.slice(1).join(" "))}},23342:(e,t,a)=>{"use strict";a.d(t,{I1:()=>r,IG:()=>o,TM:()=>l,ko:()=>s,xe:()=>i,y6:()=>c});let n="mw_flags";function r(){try{let e=window.localStorage.getItem(n),t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch(e){return[]}}function l(e){try{window.localStorage.setItem(n,JSON.stringify(e))}catch(e){}}let s=()=>"f_".concat(Math.random().toString(36).slice(2,9)).concat(("undefined"!=typeof performance?Math.floor(performance.now()):0).toString(36)),o={hits:["H"],hr:["HR"],rbi:["RBI"],runs:["R"],walks:["BB"],stolen_bases:["SB"],total_bases:["TB"],hits_runs_rbis:["H","R","RBI"],fantasy:["FANTASY"],strikeouts:["P_SO"],pitcher_hits_allowed:["P_H"],pitcher_walks:["P_BB"],pitcher_earned_runs:["P_ER"],pitcher_outs:["P_OUTS"],pitcher_fantasy:["PITCHER_FANTASY"]};function i(e){var t;if(!o[e.statKey])return null;if(e.binary)return{threshold:1,label:"1+ ".concat(e.short)};let a=null!=(t=e.line)?t:null;if(null!=a){let t=Math.floor(a)+1;return{threshold:t,label:"".concat(t,"+ ").concat(e.short," (over ").concat(a,")")}}if(null!=e.projection&&e.projection>0){let t=Math.max(1,Math.ceil(e.projection));return{threshold:t,label:"".concat(t,"+ ").concat(e.short)}}return{threshold:1,label:"1+ ".concat(e.short)}}let c=(e,t)=>{let a=0,n=!1;for(let r of e.resultKeys){let l=t.get("".concat(e.gamePk,":").concat(e.playerId,":").concat(r));null!=l&&(a+=l,n=!0)}return n?a:null}},35514:(e,t,a)=>{"use strict";a.d(t,{Analytics:()=>s});var n=a(95155),r=a(12115),l=a(76784);function s(e){let{gaId:t}=e,[a,s]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{"undefined"==typeof navigator||navigator.webdriver||s(!0)},[]),a?(0,n.jsx)(l.GoogleAnalytics,{gaId:t}):null}},41290:()=>{},43139:(e,t,a)=>{"use strict";a.d(t,{Os:()=>c,WA:()=>l,iN:()=>i});var n=a(95704);let r=function(e){let t=e.trim().replace(/^ca-/,"");if(!/^pub-\d{16}$/.test(t))throw Error("NEXT_PUBLIC_ADSENSE_PUB is malformed: ".concat(JSON.stringify(e),". ")+'Expected "pub-" followed by 16 digits (the id AdSense shows under Account → Settings).');return t}(n.env.NEXT_PUBLIC_ADSENSE_PUB||"pub-7125822265031315"),l="ca-".concat(r),s="1"===n.env.NEXT_PUBLIC_ADS_ENABLED,o=e=>s?e:"",i={feed:o("7947790629"),game:o("7233474751"),anchor:o("8514766831")},c="-f7+53+7v-bz-3j"},49631:(e,t,a)=>{"use strict";
1a.d(t,{FlagsProvider:()=>f,D:()=>h});var n=a(95155),r=a(12115),l=a(3941),s=a(23342),o=a(52619),i=a.n(o),c=a(7e3),u=a(5793);function d(){let{flags:e,values:t,games:a,removeFlag:l}=h(),[o,d]=(0,r.useState)(!1),m=e.filter(e=>e.celebratedAt).length;return(0,n.jsxs)("div",{className:"mwtray","data-open":o,children:[o&&(0,n.jsxs)("div",{className:"mwtray-panel",children:[(0,n.jsxs)("div",{className:"mwtray-head",children:[(0,n.jsx)("b",{children:"Flagged plays"}),(0,n.jsx)("span",{className:"mwtray-note",children:"saved on this device"}),(0,n.jsx)("button",{className:"mwtray-x",onClick:()=>d(!1),"aria-label":"Close",children:"✕"})]}),(0,n.jsx)("ul",{children:e.map(e=>{var r,o,d;let m=(0,s.y6)(e,t),h=a.get(e.gamePk),p=(0,c.hI)(null!=(r=null==h?void 0:h.statusCode)?r:null),f=!!e.celebratedAt,g=!f&&"final"===p.kind;return(0,n.jsxs)("li",{"data-state":f?"hit":g?"miss":"pending",children:[(0,n.jsx)("span",{className:"mwtray-ic",children:f?"✓":g?"✗":"●"}),(0,n.jsxs)("span",{className:"mwtray-body",children:[(0,n.jsxs)(i(),{href:(0,u.KA)(e.gamePk),className:"mwtray-name",children:[e.playerName," \xb7 ",e.label]}),(0,n.jsxs)("span",{className:"mwtray-sub",children:[null!=m?"now ".concat(m):"0"," / ",e.threshold,h&&(0,n.jsxs)(n.Fragment,{children:[" \xb7 ","live"===p.kind?"".concat(h.awayAbbrev," ").concat(null!=(o=h.awayScore)?o:0,"–").concat(null!=(d=h.homeScore)?d:0," ").concat(h.homeAbbrev," \xb7 ").concat((0,c.sy)(h.inningState,h.inning)):"final"===p.kind?"Final":e.gameLabel]})]})]}),(0,n.jsx)("button",{className:"mwtray-rm",onClick:()=>l(e.id),"aria-label":"Remove ".concat(e.playerName," flag"),children:"remove"})]},e.id)})}),(0,n.jsx)(i(),{href:"/mlb/my-plays",className:"mwtray-all",onClick:()=>d(!1),children:"My Plays — full view →"})]}),(0,n.jsxs)("button",{className:"mwtray-chip",onClick:()=>d(e=>!e),"aria-expanded":o,children:["\uD83D\uDEA9 ",e.length,m>0&&(0,n.jsxs)("span",{className:"mwtray-hit",children:["\xb7 ",m," ✓"]})]})]})}let m=(0,r.createContext)({hydrated:!1,flags:[],addFlag:()=>{},removeFlag:()=>{},values:new Map,games:new Map}),h=()=>(0,r.useContext)(m),p=null;function f(e){let{children:t}=e,[a,o]=(0,r.useState)(!1),[i,c]=(0,r.useState)([]),[u,h]=(0,r.useState)(new Map),[f,b]=(0,r.useState)(new Map),[y,w]=(0,r.useState)([]),_=(0,r.useRef)(i);_.current=i,(0,r.useEffect)(()=>{c((0,s.I1)()),o(!0)},[]);let v=(0,r.useCallback)(e=>{c(e),(0,s.TM)(e)},[]),k=(0,r.useCallback)(e=>{_.current.some(t=>t.gamePk===e.gamePk&&t.playerId===e.playerId&&t.statKey===e.statKey&&t.threshold===e.threshold)||v([..._.current,{...e,id:(0,s.ko)(),createdAt:new Date().toISOString()}])},[v]),x=(0,r.useCallback)(e=>v(_.current.filter(t=>t.id!==e)),[v]),N=i.map(e=>e.id).join(",");return(0,r.useEffect)(()=>{if(!a||!l.N||0===i.length)return;let e=!1,t=null,n=async()=>{let a=_.current;if(!a.length)return;let r=[...new Set(a.map(e=>e.gamePk))],o=[...new Set(a.map(e=>e.playerId))],i=[...new Set(a.flatMap(e=>e.resultKeys))],[{data:c},{data:u},d]=await Promise.all([l.N.from("player_game_results").select("game_pk, player_id, stat_key, value").in("game_pk",r).in("player_id",o).in("stat_key",i),l.N.from("games").select("game_pk, status_code, inning, inning_state, home_score, away_score, home_team_id, away_team_id, game_datetime").in("game_pk",r),(!p&&(p=(async()=>{let{data:e}=await l.N.from("teams").select("id, abbrev");return new Map((null!=e?e:[]).map(e=>[e.id,e.abbrev]))})()),p)]);if(e)return;let m=new Map;for(let e of null!=c?c:[])m.set("".concat(e.game_pk,":").concat(e.player_id,":").concat(e.stat_key),e.value);h(m);let f=new Map;for(let e of null!=u?u:[]){var g,y;f.set(e.game_pk,{gamePk:e.game_pk,statusCode:e.status_code,inning:e.inning,inningState:e.inning_state,awayScore:e.away_score,homeScore:e.home_score,awayAbbrev:null!=(g=d.get(e.away_team_id))?g:null,homeAbbrev:null!=(y=d.get(e.home_team_id))?y:null,datetime:e.game_datetime})}b(f);let k=_.current.filter(e=>{if(e.celebratedAt)return!1;let t=(0,s.y6)(e,m);return null!=t&&t>=e.threshold});if(k.length){let e=new Date().toISOString();v(_.current.map(t=>k.some(e=>e.id===t.id)?{...t,celebratedAt:e}:t)),w(e=>[...e,...k.map(e=>({key:e.id,text:"".concat(e.playerName," — ").concat(e.label)}))])}[...f.values()].every(e=>{let t;return"F"===(t=e.statusCode)||"O"===t})&&f.size===r.length||(t=setTimeout(n,45e3))};n();let r=null,o=l.N.channel("mw-flags").on("postgres_changes",{event:"*",schema:"public",table:"player_game_results"},e=>{var a,l,s,o;return o=null!=(s=null==(a=e.new)?void 0:a.game_pk)?s:null==(l=e.old)?void 0:l.game_pk,void(_.current.some(e=>e.gamePk===o)&&!r&&(r=setTimeout(()=>{r=null,t&&clearTimeout(t),n()},2e3)))}).subscribe();return()=>{e=!0,t&&clearTimeout(t),r&&clearTimeout(r),l.N.removeChannel(o)}},[a,N]),(0,n.jsxs)(m.Provider,{value:{hydrated:a,flags:i,addFlag:k,removeFlag:x,values:u,games:f},children:[t,a&&i.length>0&&(0,n.jsx)(d,{}),y.length>0&&(0,n.jsx)(g,{text:y[0].text,onDone:()=>w(e=>e.slice(1))},y[0].key)]})}function g(e){let{text:t,onDone:a}=e,l=(0,r.useRef)(null),[s]=(0,r.useState)(()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches);return(0,r.useEffect)(()=>{let e=setTimeout(a,2800),t=l.current;if(s||!t)return()=>clearTimeout(e);let n=t.getContext("2d"),r=Math.min(window.devicePixelRatio||1,2);t.width=window.innerWidth*r,t.height=window.innerHeight*r,n.scale(r,r);let o=window.innerWidth,i=window.innerHeight,c=["#00C8FF","#F5A623","#00E676","#ffffff"],u=[],d=(e,t,a)=>{for(let n=0;n<46;n++){let r=Math.random()*Math.PI*2,l=1.6+3.4*Math.random();u.push({x:e,y:t,vx:Math.cos(r)*l,vy:Math.sin(r)*l-.8,c:c[n%c.length],born:a})}},m=performance.now(),h=[0,420,860].map(e=>({d:e,x:o*(.2+.6*Math.random()),y:i*(.2+.25*Math.random()),fired:!1})),p=0,f=e=>{let t=e-m;for(let a of h)!a.fired&&t>=a.d&&(a.fired=!0,d(a.x,a.y,e));for(let t of(n.clearRect(0,0,o,i),u)){let a=(e-t.born)/1400;a>=1||(t.x+=t.vx,t.y+=t.vy,t.vy+=.045,n.globalAlpha=1-a,n.fillStyle=t.c,n.fillRect(t.x,t.y,3,3))}n.globalAlpha=1,t<2700&&(p=requestAnimationFrame(f))};return p=requestAnimationFrame(f),()=>{clearTimeout(e),cancelAnimationFrame(p)}},[a,s]),(0,n.jsxs)("div",{className:"mwcele","aria-live":"polite",children:[!s&&(0,n.jsx)("canvas",{ref:l,className:"mwcele-fx"}),(0,n.jsxs)("div",{className:"mwcele-toast",children:["\uD83C\uDF86 ",t," ✓"]})]})}},67062:(e,t,a)=>{"use strict";a.d(t,{AdAnchor:()=>i});var n=a(95155),r=a(20063),l=a(12115),s=a(72041),o=a(43139);function i(){let e=(0,r.usePathname)()||"/",[t,a]=(0,l.useState)(!1);return!o.iN.anchor||t||"/"===e||e.startsWith("/mlb/how-it-works")||e.startsWith("/notify")?null:(0,n.jsxs)("div",{className:"adanchor",role:"complementary","aria-label":"Advertisement",children:[(0,n.jsx)("button",{className:"adanchor-x",onClick:()=>a(!0),"aria-label":"Close ad",children:"\xd7"}),(0,n.jsx)(s.AdSlot,{slot:o.iN.anchor,format:"horizontal",responsive:!0,minHeight:50,className:"adslot-anchor"})]})}},72041:(e,t,a)=>{"use strict";a.d(t,{AdSlot:()=>s});var n=a(95155),r=a(12115),l=a(43139);function s(e){let{slot:t,format:a="auto",layoutKey:s,responsive:o=!0,minHeight:i=120,className:c=""}=e,u=(0,r.useRef)(null),d=(0,r.useRef)(!1),[m,h]=(0,r.useState)(!1);return((0,r.useEffect)(()=>
1{if(!t||!u.current)return;let e=new IntersectionObserver(t=>{t.some(e=>e.isIntersecting)&&(h(!0),e.disconnect())},{rootMargin:"400px"});return e.observe(u.current),()=>e.disconnect()},[t]),(0,r.useEffect)(()=>{if(m&&!d.current){d.current=!0;try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch(e){}}},[m]),t)?(0,n.jsxs)("div",{ref:u,className:"adslot ".concat(c),style:{minHeight:i},children:[(0,n.jsx)("span",{className:"adslot-lbl",children:"Advertisement"}),m&&(0,n.jsx)("ins",{className:"adsbygoogle",style:{display:"block"},"data-ad-client":l.WA,"data-ad-slot":t,"data-ad-format":s?"fluid":a,...s?{"data-ad-layout-key":s}:{"data-full-width-responsive":o?"true":"false"}})]}):null}},85970:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,41290,23)),Promise.resolve().then(a.bind(a,67062)),Promise.resolve().then(a.bind(a,35514)),Promise.resolve().then(a.bind(a,49631)),Promise.resolve().then(a.t.bind(a,41426,23)),Promise.resolve().then(a.t.bind(a,90967,23))}},e=>{e.O(0,[1741,9132,5730,3322,4669,8441,1255,7358],()=>e(e.s=85970)),_N_E=e.O()}]);

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.