1import{_ as le}from"./Dww-U82P.js";import{o as r,c as i,a as e,f as te,g as se,i as ae,n as D,t as n,k as v,z as oe,l as I,m as F,A as ne,b as m,p as B,d as K,x as re,I as ie,w as de,J as ce,F as N,r as V,e as X,K as ue,u as ge}from"./4ofGSOuz.js";import{C as G}from"./C7o3irsF.js";import{r as pe,C as J}from"./B5h1XAb6.js";import{_ as be}from"./DlAUqK2U.js";import{r as ee}from"./BzvwAEXx.js";import{r as ve}from"./9vYFhGy5.js";function q(A,g){return r(),i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"})])}function xe(A,g){return r(),i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.362 5.214A8.252 8.252 0 0 1 12 21 8.25 8.25 0 0 1 6.038 7.047 8.287 8.287 0 0 0 9 9.601a8.983 8.983 0 0 1 3.361-6.867 8.21 8.21 0 0 0 3 2.48Z"}),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18a3.75 3.75 0 0 0 .495-7.468 5.99 5.99 0 0 0-1.925 3.547 5.975 5.975 0 0 1-2.133-1.001A3.75 3.75 0 0 0 12 18Z"})])}function Q(A,g){return r(),i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3v11.25A2.25 2.25 0 0 0 6 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0 1 18 16.5h-2.25m-7.5 0h7.5m-7.5 0-1 3m8.5-3 1 3m0 0 .5 1.5m-.5-1.5h-9.5m0 0-.5 1.5m.75-9 3-3 2.148 2.148A12.061 12.061 0 0 1 16.5 7.605"})])}function he(A,g){return r(),i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})])}const me={class:"sparkline-wrapper"},fe=["title"],we=["width","height"],ye={key:0,class:"trend-info"},_e={class:"tooltip-season"},ke={class:"tooltip-value"},Se={key:0,class:"tooltip-details"},Ce={key:1,class:"tooltip-details"},Te=te({__name:"BoundarySparkline",props:{seasonData:{},type:{default:"boundary"},width:{default:120},height:{default:40},showTrend:{type:Boolean,default:!0},primaryColor:{default:"#6366f1"},backgroundColor:{default:"#f8fafc"}},setup(A){const g=A,z=I(),w=I(null),j=I({}),h=F(()=>Object.keys(g.seasonData).sort().map(o=>{const p=g.seasonData[o].batting,_=g.seasonData[o].bowling;if(g.type==="boundary"){const f=p?.balls||0,S=(p?.fours||0)+(p?.sixes||0),k=f>0?S/f*100:0;return{season:o,value:k,boundaries:S,balls:f,hasData:f>0}}else if(g.type==="economy"){const f=_?.balls||0,S=_?.runs||0,k=f>0?S*6/f:0;return{season:o,value:k,runs:S,balls:f,hasData:f>0}}else if(g.type==="wickets"){const f=_?.innings||0,S=_?.wickets||0,k=f>0?S/f:0;return{season:o,value:k,wickets:S,innings:f,hasData:f>0}}return{season:o,value:0,hasData:!1}}).filter(o=>o.hasData)),l=F(()=>{if(h.value.length===0)return 0;if(g.type==="boundary"){const u=h.value.reduce((p,_)=>p+(_.boundaries||0),0),o=h.value.reduce((p,_)=>p+(_.balls||0),0);return o>0?u/o*100:0}else return h.value.reduce((u,o)=>u+o.value,0)/h.value.length}),U=F(()=>{switch(g.type){case"boundary":return"%";case"economy":return" ER";case"wickets":return" WPI";default:return""}}),P=F(()=>
1{if(h.value.length<2)return"stable";const u=h.value.slice(-3),o=h.value.slice(0,-3);if(u.length===0||o.length===0)return"stable";const p=u.reduce((k,C)=>k+C.value,0)/u.length,_=o.reduce((k,C)=>k+C.value,0)/o.length,f=g.type==="economy"?.5:5;return Math.abs(p-_)<f?"stable":g.type==="economy"?p<_?"improving":"declining":p>_?"improving":"declining"}),R=F(()=>{switch(P.value){case"improving":return"â";case"declining":return"â";default:return"â"}}),O=F(()=>({"text-green-500":P.value==="improving","text-red-500":P.value==="declining","text-gray-500":P.value==="stable","text-sm font-bold":!0})),H=F(()=>({"text-green-700":P.value==="improving","text-red-700":P.value==="declining","text-gray-600":P.value==="stable"})),L=F(()=>{if(h.value.length===0)return"No data available";const u=h.value.length,o=g.type==="boundary"?"boundary rate":g.type==="economy"?"economy rate":"wickets per innings";return`${u} seasons ⢠${o} ⢠${P.value} trend`}),Z=u=>{const o=z.value;if(!o||h.value.length===0)return;const p=o.getBoundingClientRect(),_=u.clientX-p.left,f=4,S=p.width-f*2,k=Math.round((_-f)/S*(h.value.length-1)),C=Math.max(0,Math.min(k,h.value.length-1)),a=h.value[C];a&&(w.value=a,j.value={left:u.clientX-p.left+"px",top:u.clientY-p.top-40+"px"})},W=()=>{w.value=null},$=()=>{const u=z.value;if(!u||h.value.length===0)return;const o=u.getContext("2d");if(!o)return;const p=window.devicePixelRatio||1,_=u.getBoundingClientRect(),f=_.width,S=_.height;u.width=f*p,u.height=S*p,o.scale(p,p);const k=f,C=S,a=4;if(o.fillStyle=g.backgroundColor,o.fillRect(0,0,k,C),h.value.length<2){h.value.length===1&&(o.fillStyle=g.primaryColor,o.beginPath(),o.arc(k/2,C/2,2,0,Math.PI*2),o.fill());return}const t=h.value.map(b=>b.value),d=Math.min(...t),x=Math.max(...t)-d||1,c=t.map((b,y)=>({x:a+y*(k-a*2)/(t.length-1),y:a+(C-a*2)-(b-d)/x*(C-a*2)}));o.fillStyle=`${g.primaryColor}20`,o.beginPath(),o.moveTo(c[0].x,C-a),c.forEach(b=>o.lineTo(b.x,b.y)),o.lineTo(c[c.length-1].x,C-a),o.closePath(),o.fill(),o.strokeStyle=g.primaryColor,o.lineWidth=2,o.lineCap="round",o.lineJoin="round",o.beginPath(),o.moveTo(c[0].x,c[0].y),c.slice(1).forEach(b=>o.lineTo(b.x,b.y)),o.stroke(),o.fillStyle=g.primaryColor,c.forEac
1h(b=>{o.beginPath(),o.arc(b.x,b.y,2.5,0,Math.PI*2),o.fill()})};return se(()=>{$()}),ae([()=>g.seasonData,()=>g.width,()=>g.height,()=>g.type],()=>{ne(()=>$())}),(u,o)=>(r(),i("div",me,[e("div",{class:"boundary-sparkline",title:L.value},[e("canvas",{ref_key:"canvasRef",ref:z,width:A.width,height:A.height,class:"sparkline-canvas",onMousemove:Z,onMouseleave:W},null,40,we),A.showTrend?(r(),i("div",ye,[e("span",{class:D(O.value)},n(R.value),3),e("span",{class:D(["text-xs font-medium",H.value])},n(l.value.toFixed(1))+n(U.value),3)])):v("",!0)],8,fe),w.value?(r(),i("div",{key:0,class:"hover-tooltip",style:oe(j.value)},[e("div",_e,n(w.value.season),1),e("div",ke,n(w.value.value.toFixed(1))+n(U.value),1),A.type==="boundary"?(r(),i("div",Se,n(w.value.boundaries)+" boundaries in "+n(w.value.balls)+" balls ",1)):A.type==="economy"?(r(),i("div",Ce,n(w.value.runs)+" runs in "+n(Math.round(w.value.balls/6))+" overs ",1)):v("",!0)],4)):v("",!0)]))}}),Y=be(Te,[["__scopeId","data-v-7f9e4d22"]]),We={class:"container mx-auto px-4 py-8"},je={class:"space-y-8 animate-in fade-in duration-500 pb-4"},$e={class:"flex flex-col md:flex-row md:items-end justify-between gap-6 mb-8"},Be={class:"space-y-2"},Re={class:"inline-flex items-center gap-2 px-3 py-1 bg-ipl-blue/15 text-ipl-blue rounded-full text-xs font-bold uppercase tracking-widest border border-ipl-blue/20"},Me={class:"relative max-w-2xl"},De={class:"bg-white p-2 rounded-2xl border border-slate-200 shadow-sm focus-within:ring-4 focus-within:ring-ipl-blue/10 focus-within:border-ipl-blue transition-all flex items-center gap-3"},Ae={class:"pl-3 text-slate-400"},Pe={key:0,class:"absolute z-50 mt-3 w-full bg-white border border-slate-200 rounded-2xl shadow-xl overflow-hidden backdrop-blur-sm bg-white/95"},Ie={class:"py-2"},Oe=["onClick"],Ne={class:"font-semibold text-slate-700 group-hover:text-slate-900"},Ee={key:0,class:"space-y-6"},Fe={class:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm"},Ue={class:"flex items-start gap-6"},Ve={class:"w-16 h-16 rounded-full bg-slate-900 flex items-center justify-center text-white text-2xl font-bold shadow-lg shadow-slate-200"},Ke={class:"flex-1"},ze={class:"text-3xl font-bold text-slate-900 tracking-tight"},He={class:"flex flex-wrap gap-3 mt-3 mb-4"},Ze={class:"px-2.5 py-1 bg-slate-100 text-slate-600 rounded-md text-xs font-bold uppercase tracking-wider border border-slate-200 italic"},qe={key:0,class:"px-2.5 py-1 bg-blue-50 text-blue-700 rounded-md text-xs font-bold uppercase tracking-wider border border-blue-100"},Le={key:0,class:"space-y-3"},Xe={key:0,class:"flex items-center gap-2"},Ge={class:"flex items-center gap-2 px-3 py-1.5 bg-blue-50 text-blue-700 rounded-lg border border-blue-100"},Je={class:"text-sm font-semibold"},Qe={key:1,class:"flex items-center gap-2"},Ye={class:"flex items-center gap-2 px-3 py-1.5 bg-purple-50 text-purple-700 rounded-lg border border-purple-100"},et={class:"text-sm font-semibold"},tt={key:2,class:"flex items-start gap-2"},st={class:"flex flex-wrap gap-2"},lt={class:"text-xs font-medium"},at={class:"grid grid-cols-1 lg:grid-cols-2 gap-6"},ot={class:"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden flex flex-col"},nt={class:"px-6 py-4 border-b border-slate-100 bg-slate-50/50 flex justify-between items-center"},rt={class:"flex items-center gap-2"},it={key:0,class:"animate-spin h-4 w-4 border-2 border-indigo-500 border-t-transparent rounded-full"},dt={class:"p-6 grid grid-cols-2 gap-4 flex-grow"},ct={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},ut={class:"text-2xl font-black text-slate-900"},gt={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},pt={class:"text-2xl font-black text-ipl-blue"},bt={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},vt={class:"text-2xl font-black text-slate-800"},xt={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},ht={class:"text-2xl font-black text-slate-800"},mt={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},ft={class:"text-2xl font-black text-slate-800"},wt={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},yt={class:"text-2xl font-black text-slate-800"},_t={key:0,class:"col-span-1 md:col-span-2 p-4 bg-gradient-to-r from-blue-50 to-indigo-50 rounded-xl border border-blue-100"},kt={class:"flex flex-col sm:flex-row sm:items-center justify-between mb-3 gap-2"},St={class:"text-blue-500 self-start"},Ct={class:"col-span-2 p-4 bg-ipl-blue rounded-xl flex justify-between items-center text-white shadow-md shadow-blue-100"},Tt={class:"text-xl font-black"},Wt={class:"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden flex flex-col"},jt={class:"px-6 py-4 border-b border-slate-100 bg-slate-50/50 flex justify-between items-center"},$t={class:"flex items-center gap-2"},Bt={key:0,class:"animate-spin h-4 w-4 border-2 border-rose-500 border-t-transparent roun
1ded-full"},Rt={class:"p-6 grid grid-cols-2 gap-4 flex-grow"},Mt={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},Dt={class:"text-2xl font-black text-slate-900"},At={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},Pt={class:"text-2xl font-black text-purple-600"},It={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},Ot={class:"text-2xl font-black text-slate-800"},Nt={class:"p-4 bg-slate-50 rounded-xl border border-slate-100"},Et={class:"text-2xl font-black text-slate-800"},Ft={key:0,class:"col-span-1 md:col-span-2 p-4 bg-gradient-to-r from-purple-50 to-indigo-50 rounded-xl border border-purple-100"},Ut={class:"flex flex-col sm:flex-row sm:items-center justify-between mb-3 gap-2"},Vt={class:"text-purple-500 self-start"},Kt={key:1,class:"col-span-1 md:col-span-2 p-4 bg-gradient-to-r from-indigo-50 to-purple-50 rounded-xl border border-indigo-200"},zt={class:"flex flex-col sm:flex-row sm:items-center justify-between mb-3 gap-2"},Ht={class:"text-indigo-500 self-start"},Zt={class:"col-span-2 p-4 bg-purple-600 rounded-xl flex justify-between items-center text-white shadow-md shadow-purple-100"},qt={class:"text-xl font-black"},Lt={key:0,class:"col-span-1 lg:col-span-2"},Xt={class:"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden"},Gt={class:"px-6 py-4 border-b border-slate-100 bg-slate-50/50 flex justify-between items-center"},Jt={class:"flex items-center gap-2"},Qt={key:0,class:"animate-spin h-4 w-4 border-2 border-purple-500 border-t-transparent rounded-full"},Yt={key:0,class:"p-6 space-y-4"},es={class:"space-y-3"},ts={key:1,class:"p-6 space-y-4"},ss={class:"bg-gradient-to-r from-blue-50 to-indigo-50 rounded-lg p-4 mb-6 border border-blue-100"},ls={class:"font-semibold text-ipl-blue mb-3 flex items-center gap-2"},as={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},os={key:0,class:"text-center p-3 bg-white rounded-lg border border-blue-100"},ns={class:"flex items-center justify-center gap-2 mb-1"},rs={class:"flex items-center justify-center gap-2"},is={key:0,class:"text-xs text-slate-500"},ds={key:1,class:"text-center p-3 bg-white rounded-lg border border-purple-100"},cs={class:"flex items-center justify-center gap-2 mb-1"},us={class:"flex items-center justify-center gap-2"},gs={key:0,class:"text-xs text-slate-500"},ps={key:2,class:"text-center p-3 bg-white rounded-lg border border-indigo-100"},bs={class:"flex items-center justify-center gap-2 mb-1"},vs={class:"flex items-center justify-center gap-2"},xs={key:0,class:"text-xs text-slate-500"},hs={class:"bg-slate-50 px-4 py-3 border-b border-slate-200 flex items-center justify-between"},ms={class:"flex items-center gap-3"},fs={class:"font-bold text-slate-800 text-lg"},ws={key:0,class:"px-2 py-1 bg-indigo-100 text-indigo-800 rounded text-xs font-bold"},ys={key:1,class:"flex gap-2"},_s={class:"p-4"},ks={key:0,class:"mb-4"},Ss={class:"text-sm font-semibold text-indigo-600 uppercase tracking-wider mb-3 flex items-center gap-2"},Cs={class:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-3"},Ts={class:"text-center p-3 bg-indigo-50 rounded-lg"},Ws={class:"text-lg font-bold text-indigo-800"},js={class:"text-center p-3 bg-slate-50 rounded-lg"},$s={class:"text-lg font-bold text-slate-800"},Bs={class:"text-center p-3 bg-slate-50 rounded-lg"},Rs={class:"text-lg font-bold text-slate-800"},Ms={class:"text-center p-3 bg-slate-50 rounded-lg"},Ds={class:"text-lg font-bold text-slate-800"},As={class:"text-center p-3 bg-green-50 rounded-lg"},Ps={class:"text-lg font-bold text-green-800"},Is={class:"text-center p-3 bg-yellow-50 rounded-lg"},Os={class:"text-lg font-bold text-yellow-800"},Ns={key:1},Es={class:"text-sm font-semibold text-rose-600 uppercase tracking-wider mb-3 flex items-center gap-2"},Fs={class:"grid grid-cols-2 md:grid-cols-5 gap-3"},Us={class:"text-center p-3 bg-rose-50 rounded-lg"},Vs={class:"text-lg font-bold text-rose-800"},Ks={class:"text-center p-3 bg-slate-50 rounded-lg"},zs={class:"text-lg font-bold text-slate-800"},Hs={class:"text-center p-3 bg-slate-50 rounded-lg"},Zs={class:"text-lg font-bold text-slate-800"},qs={class:"text-center p-3 bg-slate-50 rounded-lg"},Ls={class:"text-lg font-bold text-slate-800"},Xs={class:"text-center p-3 bg-slate-50 rounded-lg"},Gs={class:"text-lg font-bold text-slate-800"},Js={key:1,class:"space-y-6"},Qs={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Ys={class:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6 animate-pulse"},el={class:"grid grid-cols-3 md:grid-cols-4 gap-4"},tl={class:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6 animate-pulse"},sl={class:"grid grid-cols-2 gap-4"},ll={key:2,class:"bg-white rounded-2xl border-2 border-dashed border-slate-200 py-20 text-center"},al={class:"w-20 h-20 bg-slate-50 rounded-full flex items-center justify-center mx-auto mb-6 text-slate-300"},pl=te({__name:"player-search",setup(A){const g=ge(),z=ue(),w=I(""),j=I([]),h=I(!1),l=I(null),U=I([]),P=I(!1),R=I(!1),O=I(-1);let H=null;
1const L={"Royal Challengers Bangalore":"Royal Challengers Bengaluru","Royal Challengers Bengaluru":"Royal Challengers Bengaluru","Kings XI Punjab":"Punjab Kings","Punjab Kings":"Punjab Kings","Delhi Daredevils":"Delhi Capitals","Delhi Capitals":"Delhi Capitals","Deccan Chargers":"Sunrisers Hyderabad","Sunrisers Hyderabad":"Sunrisers Hyderabad"},Z=a=>L[a]||a,W=F(()=>{if(!l.value?.teamInfo)return null;const a=l.value.teamInfo,t=[];a.debutTeam&&t.push(a.debutTeam),a.latestTeam&&t.push(a.latestTeam),a.otherTeams&&t.push(...a.otherTeams);const d=new Map;t.forEach(E=>{const T=Z(E);d.has(T)||d.set(T,[]),d.get(T).includes(E)||d.get(T).push(E)});const s=Array.from(d.keys()),x=s.length;let c="",b="",y=[];return a.debutTeam&&(c=Z(a.debutTeam)),a.latestTeam&&(b=Z(a.latestTeam)),y=s.filter(E=>E!==c&&E!==b),{totalTeams:x,debutTeam:c,latestTeam:b,otherTeams:y}}),$=a=>{const t=Object.keys(a).filter(y=>y!=="all").sort();if(t.length<2)return{trend:"stable",change:0,color:"slate",icon:"â"};const s=t.slice(-3).map(y=>a[y]?.batting?.average||0).filter(y=>y>0);if(s.length<2)return{trend:"stable",change:0,color:"slate",icon:"â"};const x=s[s.length-1],c=s[s.length-2],b=(x-c)/c*100;return b>15?{trend:"improving",change:Math.round(b),color:"green",icon:"â"}:b<-15?{trend:"declining",change:Math.round(b),color:"red",icon:"â"}:{trend:"stable",change:Math.round(b),color:"slate",icon:"â"}},u=a=>{const t=Object.keys(a).filter(y=>y!=="all").sort();if(t.length<2)return{trend:"stable",change:0,color:"slate",icon:"â"};const s=t.slice(-3).map(y=>a[y]?.bowling?.economy).filter(y=>y!=null&&y>0);if(s.length<2)return{trend:"stable",change:0,color:"slate",icon:"â"};const x=s[s.length-1],c=s[s.length-2],b=(c-x)/c*100;return b>10?{trend:"improving",change:Math.round(b),color:"green",icon:"â"}:b<-10?{trend:"declining",change:Math.round(Math.abs(b)),color:"red",icon:"â"}:{trend:"stable",change:Math.round(Math.abs(b)),color:"slate",icon:"â"}},o=a=>{const t=Object.keys(a).filter(T=>T!=="all").sort();if(t.length<2)return{trend:"stable",rate:0,color:"slate",icon:"â"};const d=t.map(T=>{const M=a[T]?.batting;return!M||!M.balls||M.balls===0?null:((M.fours||0)+(M.sixes||0))/M.balls*100}).filter(T=>T!==null);if(d.length<2)return{trend:"stable",rate:0,color:"slate",icon:"â"};const s=d.reduce((T,M)=>T+M,0)/d.length,x=d.slice(-3),c=d.slice(0,-3);if(x.length===0||c.length===0)return{trend:"stable",rate:s,color:"slate",icon:"â"};const b=x.reduce((T,M)=>T+M,0)/x.length,y=c.reduce((T,M)=>T+M,0)/c.length,E=(b-y)/y*100;return E>8?{trend:"improving",rate:s,color:"green",icon:"â"}:E<-8?{trend:"declining",rate:s,color:"red",icon:"â"}:{trend:"stable",rate:s,color:"slate",icon:"â"}},p=(a,t,d)=>{if(!a||!t)return null;if(d==="batting"&&a.batting&&t.batting){const s=a.batting.runs-t.batting.runs,x=(a.batting.average-t.batting.average)/t.batting.average*100;return{runs:s>0?`+${s}`:`${s}`,average:x>0?`+${x.toFixed(1)}%`:`${x.toFixed(1)}%`,trend:x>0?"up":"down"}}if(d==="bowling"&&a.bowling&&t.bowling){const s=a.bowling.wickets-t.bowling.wickets;if(a.bowling.economy!=null&&t.bowling.economy!=null){const x=(t.bowling.economy-a.bowling.economy)/t.bowling.economy*100;return{wickets:s>0?`+${s}`:`${s}`,economy:x>0?`+${x.toFixed(1)}%`:`${x.toFixed(1)}%`,trend:x>0?"up":"down"}}return{wickets:s>0?`+${s}`:`${s}`,economy:"N/A",trend:"up"}}return null},_=async a=>{P.value=!0;try{const t=await $fetch(`${g.public.apiBase}/api/player/${encodeURIComponent(a)}/graph`);t.edges&&t.nodes?U.value=t.edges.map(d=>({name:t.nodes.find(x=>x.id===d.target)?.name||d.target,weight:d.weight,score:d.weight*10,type:d.relationship})):U.value=await $fetch(`${g.public.apiBase}/api/player/${encodeURIComponent(a)}/rivals`)}catch(t){console.error("Failed to fetch graph data:",t);try{U.value=await $fetch(`${g.public.apiBase}/api/player/${encodeURIComponent(a)}/rivals`)}catch(d){console.error("Fallback fetch also failed:",d),U.value=[]}}finally{P.value=!1}},f=()=>{w.value="",l.value=null,h.value=!1},S=()=>{if(H&&clearTimeout(H),w.value.length<2){j.value=[],h.value=!1;return}H=setTimeout(async()=>{try{const a=await $fetch(`${g.public.apiBase}/api/players/search?query=${encodeURIComponent(w.value)}`);j.value=a||[],h.value=j.value.length>0}catch(a){console.error("Search failed:",a),j.value=[],h.value=!1}},200)},k=a=>{!h.value||j.value.length===0||(a.key==="ArrowDown"?(a.preventDefault(),O.value=(O.value+1)%j.value.length):a.key==="ArrowUp"?(a.preventDefault(),O.value=(O.value-1+j.value.length)%j.value.length):a.key==="Enter"?(a.preventDefault(),O.value>=0&&C(j.value[O.value])):a.key==="Escape"&&(h.value=!1))},C=async a=>{w.value=a,h.value=!1,R.value=!0,l.value=null,U.value=[];try{const t=a.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),[d]=await Promise.all([$fetch(`${g.public.apiBase}/api/players/${t}/stats`),_(a)]);l.value=d}catch(t){console.error("Fetch failed:",t),l.value=null}finally{R.value=!1}};return se(()=>{z.query.name&&C(z.query.name)}),(a,t)=>{const d=le;return r(),i("div",We,[e("div",je,[e("div",$e,[e("div",Be,[e("div",Re,[m(B(ee),{class:"w-3 h-3"}),t[1]||(t[1]=K(" Player Intelligence ",-1))]),t[2]||(t[2]=e("h1",{class:"text-4xl font-black text-slate-900 tracking-tight"},[K("The "),e("span",{class:"bg-gradient-to-r from-ipl-blue to-purple-600 bg-clip-text text-transparent"},"Search Engine")],-1)),t[3]||(t[3]=e("p",{class:"text-slate-500 max-w-xl"}
1," Deep dive into individual player careers with comprehensive analytics. Search any player to unlock batting and bowling insights. ",-1))])]),e("div",Me,[e("div",De,[e("div",Ae,[m(B(ee),{class:"w-5 h-5"})]),re(e("input",{"onUpdate:modelValue":t[0]||(t[0]=s=>w.value=s),type:"text",placeholder:"Ex: V Kohli, MS Dhoni, Rashid Khan...",class:"flex-1 bg-transparent py-3 pr-4 outline-none text-slate-900 font-medium placeholder:text-slate-400",onInput:S,onKeydown:k},null,544),[[ie,w.value]]),w.value?(r(),i("div",{key:0,onClick:f,class:"pr-3 text-slate-400 hover:text-slate-600 cursor-pointer"},[m(B(ve),{class:"w-5 h-5"})])):v("",!0)]),m(ce,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:de(()=>[h.value&&j.value.length>0?(r(),i("div",Pe,[e("div",Ie,[(r(!0),i(N,null,V(j.value,(s,x)=>(r(),i("button",{key:s,onClick:c=>C(s),class:D(["w-full text-left px-5 py-3.5 flex items-center gap-3 transition-colors group",O.value===x?"bg-slate-100":"hover:bg-slate-50"])},[e("div",{class:D(["w-8 h-8 rounded-full flex items-center justify-center transition-colors",O.value===x?"bg-brand-primary/10 text-brand-primary":"bg-slate-100 text-slate-500 group-hover:bg-brand-primary/10 group-hover:text-brand-primary"])},[m(B(pe),{class:"w-4 h-4"})],2),e("span",Ne,n(s),1)],10,Oe))),128))])])):v("",!0)]),_:1})]),l.value?(r(),i("div",Ee,[e("div",Fe,[e("div",Ue,[e("div",Ve,n(w.value.charAt(0)),1),e("div",Ke,[e("h2",ze,n(w.value),1),e("div",He,[t[4]||(t[4]=e("span",{class:"px-2.5 py-1 bg-green-50 text-green-700 rounded-md text-xs font-bold uppercase tracking-wider border border-green-100"},"Pro Athlete",-1)),e("span",Ze,n(l.value.battingStats?.totalRuns>0&&l.value.bowlingStats?.totalWickets>0?"All Rounder":l.value.battingStats?.totalRuns>0?"Batsman":"Bowler"),1),W.value?.totalTeams?(r(),i("span",qe,n(W.value.totalTeams)+" "+n(W.value.totalTeams===1?"Team":"Teams"),1)):v("",!0)]),W.value?(r(),i("div",Le,[W.value.debutTeam?(r(),i("div",Xe,[t[5]||(t[5]=e("span",{class:"text-xs font-bold text-slate-400 uppercase tracking-wider w-16"},"Debut:",-1)),e("div",Ge,[m(d,{teamName:W.value.debutTeam,size:"sm",showName:!1},null,8,["teamName"]),e("span",Je,n(W.value.debutTeam),1)])])):v("",!0),W.value.latestTeam?(r(),i("div",Qe,[t[6]||(t[6]=e("span",{class:"text-xs font-bold text-slate-400 uppercase tracking-wider w-16"},"Current:",-1)),e("div",Ye,[m(d,{teamName:W.value.latestTeam,size:"sm",showName:!1},null,8,["teamName"]),e("span",et,n(W.value.latestTeam),1)])])):v("",!0),W.value.otherTeams&&W.value.otherTeams.length>0?(r(),i("div",tt,[t[7]||(t[7]=e("span",{class:"text-xs font-bold text-slate-400 uppercase tracking-wider w-16 mt-1"},"Other:",-1)),e("div",st,[(r(!0),i(N,null,V(W.value.otherTeams,s=>(r(),i("div",{key:s,class:"flex items-center gap-1.5 px-2.5 py-1 bg-slate-50 text-slate-700 rounded-md border border-slate-200"},[m(d,{teamName:s,size:"sm",showName:!1},null,8,["teamName"]),e("span",lt,n(s),1)]))),128))])])):v("",!0)])):v("",!0)])])]),e("div",at,[e("div",ot,[e("div",nt,[e("div",rt,[m(J,{class:"w-5 h-5 text-ipl-blue"}),t[8]||(t[8]=e("h3",{class:"font-bold text-slate-800"},"Batting Analytics",-1)),t[9]||(t[9]=K()),R.value?(r(),i("div",it)):v("",!0)]),t[10]||(t[10]=e("span",{class:"text-[10px] font-bold text-slate-400 uppercase tracking-widest"},"Career Profile",-1))]),e("div",dt,[R.value?(r(),i(N,{key:0},V(8,s=>e("div",{key:s,class:"p-4 bg-slate-50 rounded-xl border border-slate-100 animate-pulse"},[...t[11]||(t[11]=[e("div",{class:"h-3 bg-slate-200 rounded w-16 mb-2"},null,-1),e("div",{class:"h-6 bg-slate-300 rounded w-12"},null,-1)])])),64)):(r(),i(N,{key:1},[e("div",ct,[t[12]||(t[12]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Total Runs",-1)),e("p",ut,n(l.value.battingStats?.totalRuns||0),1)]),e("div",gt,[t[14]||(t[14]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Strike Rate",-1)),e("p",pt,[K(n(l.value.battingStats?.strikeRate||"0.00"),1),t[13]||(t[13]=e("span",{class:"text-sm font-medium ml-0.5"},"%",-1))])]),e("div",bt,[t[15]||(t[15]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Average",-1)),e("p",vt,n(l.value.battingStats?.average||"0.00"),1)]),e("div",xt,[t[16]||(t[16]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Highest Score",-1)),e("p",ht,n(l.value.battingStats?.highestScore||0),1)]),e("div",mt,[t[17]||(t[17]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Fours (4s)",-1)),e("p",ft,n(l.value.battingStats?.fours||0),1)]),e("div",wt,[t[18]||(t[18]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Sixes (6s)",-1)),e("p",yt,n(l.value.battingStats?.sixes||0),1)]),Object.keys(l.value?.seasonWiseStats||{}).length>1?(r(),i("div",_t,[e("div",kt,[t[19]||(t[19]=e("div",null,[e("p",{class:"text-xs text-blue-700 font-bold uppercase tracking-wide mb-1"},"Boundary Rate Trend"),e("p",{class:"text-sm text-blue-600"},"Season-wise boundaries per ball")],-1)),e("div",St,[m(B(q),{class:"w-5 h-5"})])]),m(Y,{seasonData:l.value.seasonWiseStats,type:"boundary",width:240,height:50,primaryColor:"#1d4ed8",backgroundColor:"transparent",class:"w-full"},null,8,["seasonData"])])):v("",!0),e("div",Ct,[e("div",null,[t[20]||(t[20]=e("p",{class:"text-[10px] font-bold uppercase tracking-widest opacity-80 mb-0.5"},"Innings Played",-1)),e("p",Tt,n(l.value.battingStats?.innings||0),1)]),m(B(Q),{class:"w-8 h-8 opacity-20"})])],64))])]),e("div",Wt,[e("div",jt,[e("div",$t,[m(G,{class:"w-5 h-5 text-purple-600"}),t[21]||(t[21]=e("h3",{class:"font-bold text-slate-800"},"Bowling Analytics",-1)),R.value?(r(),i("div",Bt)):v("",!0)]),t[22]||(t[22]=e("span",{class:"text-[10px] font-bold text-slate-400 uppercase tracking-widest"},"Career Profile",-1))]),e("div",Rt,[R.value?(r(),i(N,{key:0},V(4,s=>e("div",{key:s,class:"p-4 bg-slate-50 rounded-xl border border-slate-100 animate-pulse"},[...t[23]||(t[23]=[e("div",{class:"h-3 bg-slate-200 rounded w-16 mb-2"},null,-1),e("div",{class:"h-6 bg-slate-300 rounded w-12"},null,-1)])])),64)):(r(),i(N,{key:1},[e("div",Mt,[t[24]||(t[24]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Total Wickets",-1)),e("p",Dt,n(l.value.bowlingStats?.totalWickets||0),1)]),e("div",At,[t[25]||(t[25]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Economy Rate",-1)),e("p",Pt,n(l.value.bowlingStats?.economyRate??"N/A"),1)]),e("div",It,[t[26]||(t[26]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Bowling Average",-1)),e("p",Ot,n(l.value.bowlingStats?.average??"N/A"),1)]),e("div",Nt,[t[27]||(t[27]=e("p",{class:"text-xs text-slate-400 font-bold uppercase tracking-wide mb-1"},"Runs Conceded",-1)),e("p",Et,n(l.value.bowlingStats?.runsConceded||0),1)]),Object.keys(l.value?.seasonWiseStats||{}).length>1&&Object.values(l.value?.seasonWiseStats||{}).some(s=>s.bowling?.balls>0)?(r(),i("div",Ft,[e("div",Ut,[t[28]||(t[28]=e("div",null,[e("p",{class:"text-xs text-purple-700 font-bold uppercase tracking-wide mb-1"},"Economy Rate Trend"),e("p",{class:"text-sm text-purple-600"},"Season-wise runs per over")],-1)),e("div",Vt,[m(B(q),{class:"w-5 h-5"})])]),m(Y,{seasonData:l.value.seasonWiseStats,type:"economy",width:240,height:50,primaryColor:"#9333ea",backgroundColor:"transparent",class:"w-full"},null,8,["seasonData"])])):v("",!0),Object.keys(l.value?.seasonWiseStats||{}).length>1&&Object.values(l.value?.seasonWiseStats||{}).some(s=>s.bowling?.wickets>0&&s.bowling?.innings>0)?(r(),i("div",Kt,[e("div",zt,[t[29]||(t[29]=e("div",null,[e("p",{class:"text-xs text-indigo-700 font-bold uppercase tracking-wide mb-1"},"Wickets Trend"),e("p",{class:"text-sm text-indigo-600"},"Season-wise wickets per innings")],-1)),e("div",Ht,[m(B(q),{class:"w-5 h-5"})])]),m(Y,{seasonData:l.value.seasonWiseStats,type:"wickets",width:240,height:50,primaryColor:"#6366f1",backgroundColor:"transparent",class:"w-full"},null,8,["seasonData"])])):v("",!0),e("div",Zt,[e("div",null,[t[30]||(t[30]=e("p",{class:"text-[10px] font-bold uppercase tracking-widest opacity-80 mb-0.5"},"Bowling Innings",-1)),e("p",qt,n(l.value.bowlingStats?.innings||0),1)]),m(B(xe),{class:"w-8 h-8 opacity-20"})])],64))])])]),R.value||Object.keys(l.value?.seasonWiseStats||{}).length>0?(r(),i("div",Lt,[e("div",Xt,[e("div",Gt,[e("div",Jt,[m(B(Q),{class:"w-5 h-5 text-ipl
1-blue"}),t[31]||(t[31]=e("h3",{class:"font-bold text-slate-800"},"Season-wise Performance",-1)),R.value?(r(),i("div",Qt)):v("",!0)]),t[32]||(t[32]=e("span",{class:"text-[10px] font-bold text-slate-400 uppercase tracking-widest"},"Career Timeline",-1))]),R.value?(r(),i("div",Yt,[t[34]||(t[34]=X('<div class="bg-gradient-to-r from-purple-50 to-indigo-50 rounded-lg p-4 mb-6 border border-purple-100 animate-pulse"><div class="h-4 bg-purple-200 rounded w-48 mb-3"></div><div class="grid grid-cols-1 md:grid-cols-2 gap-4"><div class="h-20 bg-white rounded-lg border"></div><div class="h-20 bg-white rounded-lg border"></div></div></div>',1)),e("div",es,[(r(),i(N,null,V(3,s=>e("div",{key:s,class:"bg-slate-50 rounded-lg p-4 animate-pulse"},[...t[33]||(t[33]=[X('<div class="h-5 bg-slate-200 rounded w-24 mb-3"></div><div class="grid grid-cols-3 gap-4"><div class="h-16 bg-slate-200 rounded"></div><div class="h-16 bg-slate-200 rounded"></div><div class="h-16 bg-slate-200 rounded"></div></div>',2)])])),64))])])):(r(),i("div",ts,[e("div",ss,[e("h4",ls,[m(B(Q),{class:"w-4 h-4"}),t[35]||(t[35]=K(" Performance Trajectory Analysis ",-1))]),e("div",as,[Object.values(l.value.seasonWiseStats).some(s=>s.batting?.runs>0)?(r(),i("div",os,[e("div",ns,[m(J,{class:"w-4 h-4 text-ipl-blue"}),t[36]||(t[36]=e("span",{class:"text-sm font-medium text-slate-600"},"Batting Trend",-1))]),e("div",rs,[e("span",{class:D(["text-2xl",{"text-green-600":$(l.value.seasonWiseStats).color==="green","text-red-600":$(l.value.seasonWiseStats).color==="red","text-slate-600":$(l.value.seasonWiseStats).color==="slate"}])},n($(l.value.seasonWiseStats).icon),3),e("div",null,[e("p",{class:D(["font-bold text-lg",{"text-green-700":$(l.value.seasonWiseStats).color==="green","text-red-700":$(l.value.seasonWiseStats).color==="red","text-slate-700":$(l.value.seasonWiseStats).color==="slate"}])},n($(l.value.seasonWiseStats).trend.toUpperCase()),3),$(l.value.seasonWiseStats).change!==0?(r(),i("p",is,n($(l.value.seasonWiseStats).change)+"% vs recent ",1)):v("",!0)])])])):v("",!0),Object.values(l.value.seasonWiseStats).some(s=>s.bowling?.wickets>0)?(r(),i("div",ds,[e("div",cs,[m(G,{class:"w-4 h-4 text-purple-600"}),t[37]||(t[37]=e("span",{class:"text-sm font-medium text-slate-600"},"Bowling Trend",-1))]),e("div",us,[e("span",{class:D(["text-2xl",{"text-green-600":u(l.value.seasonWiseStats).color==="green","text-red-600":u(l.value.seasonWiseStats).color==="red","text-slate-600":u(l.value.seasonWiseStats).color==="slate"}])},n(u(l.value.seasonWiseStats).icon),3),e("div",null,[e("p",{class:D(["font-bold text-lg",{"text-green-700":u(l.value.seasonWiseStats).color==="green","text-red-700":u(l.value.seasonWiseStats).color==="red","text-slate-700":u(l.value.seasonWiseStats).color==="slate"}])},n(u(l.value.seasonWiseStats).trend.toUpperCase()),3),u(l.value.seasonWiseStats).change!==0?(r(),i("p",gs,n(u(l.value.seasonWiseStats).change)+"% improvement ",1)):v("",!0)])])])):v("",!0),Object.values(l.value.seasonWiseStats).some(s=>s.batting?.fours>0||s.batting?.sixes>0)?(r(),i("div",ps,[e("div",bs,[m(B(q),{class:"w-4 h-4 text-indigo-600"}),t[38]||(t[38]=e("span",{class:"text-sm font-medium text-slate-600"},"Boundary Rate",-1))]),e("div",vs,[e("span",{class:D(["text-2xl",{"text-green-600":o(l.value.seasonWiseStats).color==="green","text-red-600":o(l.value.seasonWiseStats).color==="red","text-slate-600":o(l.value.seasonWiseStats).color==="slate"}])},n(o(l.value.seasonWiseStats).icon),3),e("div",null,[e("p",{class:D(["font-bold text-lg",{"text-green-700":o(l.value.seasonWiseStats).color==="green","text-red-700":o(l.value.seasonWiseStats).color==="red","text-slate-700":o(l.value.seasonWiseStats).color==="slate"}])},n(o(l.value.seasonWiseStats).trend.toUpperCase()),3),o(l.value.seasonWiseStats).rate>0?(r(),i("p",xs,n(o(l.value.seasonWiseStats).rate.toFixed(1))+"% rate ",1)):v("",!0)])])])):v("",!0)])]),(r(!0),i(N,null,V(l.value.seasonWiseStats,(s,x,c)=>(r(),i("div",{key:x,class:"border border-slate-200 rounded-lg overflow-hidden"},[e("div",hs,[e("div",ms,[e("span",fs,n(x),1),s.team?(r(),i("span",ws,n(s.team),1)):v("",!0),c>0?(r(),i("div",ys,[s.batting?.runs>0&&p(s,Object.values(l.value.seasonWiseStats)[c-1],"batting")?(r(),i("div",{key:0,class:D(["px-2 py-1 rounded text-xs font-bold flex items-center gap-1",{"bg-green-100 text-green-800":p(s,Object.values(l.value.seasonWiseStats)[c-1],"batting")?.trend==="up","bg-red-100 text-red-800":p(s,Object.values(l.value.seasonWiseStats)[c-1],"batting")?.trend==="down"}])},[t[39]||(t[39]=e("span",{class:"text-xs"},"ð",-1)),e("span",null,n(p(s,Object.values(l.value.seasonWiseStats)[c-1],"batting")?.average),1)],2)):v("",!0),s.bowling?.wickets>0&&p(s,Object.values(l.value.seasonWiseStats)[c-1],"bowling")?(r(),i("div",{key:1,class:D(["px-2 py-1 rounded text-xs font-bold flex items-center gap-1",{"bg-green-100 text-green-800":p(s,Object.values(l.value.seasonWiseStats)[c-1],"bowling")?.trend==="up","bg-red-100 text-red-800":p(s,Object.values(l.value.seasonWiseStats)[c-1],"bowling")?.trend==="down"}])},[t[40]||(t[40]=e("span",{class:"text-xs"},"â¾",-1)),e("span",null,n(p(s,Object.values(l.value.seasonWiseStats)[c-1],"bowling")?.economy),1)],2)):v("",!0)])):v("",!0)])]),e("div",_s,[s.batting?.runs>0?(r(),i("div",ks,[e("h4",Ss,[m(J,{class:"w-4 h-4"}),t[41]||(t[41]=K(" Batting Performance ",-1))]),e("div",Cs,[e("div",Ts,[e("p",Ws,n(s.batting.runs),1),t[42]||(t[42]=e("p",{class:"text-xs text-indigo-600 font-medium"},"Runs",-1))]),e("div",js,[e("p",$s,n(s.batting.average),1),t[43]||(t[43]=e("p",{class:"text-xs text-slate-600 font-medium"},"Average",-1))]),e("div",Bs,[e("p",Rs,n(s.batting.strikeRate),1),t[44]||(t[44]=e("p",{class:"text-xs text-slate-600 font-medium"},"SR",-1))]),e("div",Ms,[e("p",Ds,n(s.batting.highest),1),t[45]||(t[45]=e("p",{class:"text-xs text-slate-600 font-medium"},"Highest",-1))]),e("div",As,[e("p",Ps,n(s.batting.centuries),1),t[46]||(t[46]=e("p",{class:"text-xs text-green-600 font-medium"},"100s",-1))]),e("div",Is,[e("p",Os,n(s.batting.fifties),1),t[47]||(t[47]=e("p",{class:"text-xs text-yellow-600 font-medium"},"50s",-1))])])])):v("",!0),s.bowling&&(s.bowling.wickets>=0||s.bowling.runs>=0||s.bowling.innings>0)?(r(),i("div",Ns,[e("h4",Es,[m(G,{class:"w-4 h-4"}),t[48]||(t[48]=K(" Bowling Performance ",-1))]),e("div",Fs,[e("div",Us,[e("p",Vs,n(s.bowling.wickets),1),t[49]||(t[49]=e("p",{class:"text-xs text-rose-600 font-medium"},"Wickets",-1))]),e("div",Ks,[e("p",zs,n(s.bowling.average??"N/A"),1),t[50]||(t[50]=e("p",{class:"text-xs text-slate-600 font-medium"}
1,"Average",-1))]),e("div",Hs,[e("p",Zs,n(s.bowling.economy??"N/A"),1),t[51]||(t[51]=e("p",{class:"text-xs text-slate-600 font-medium"},"Economy",-1))]),e("div",qs,[e("p",Ls,n(s.bowling.runs),1),t[52]||(t[52]=e("p",{class:"text-xs text-slate-600 font-medium"},"Runs",-1))]),e("div",Xs,[e("p",Gs,n(s.bowling.bestBowling),1),t[53]||(t[53]=e("p",{class:"text-xs text-slate-600 font-medium"},"Best",-1))])])])):v("",!0)])]))),128))]))])])):v("",!0)])):R.value?(r(),i("div",Js,[t[58]||(t[58]=X('<div class="bg-white p-6 rounded-2xl border border-slate-200 shadow-sm animate-pulse"><div class="flex items-start gap-6"><div class="w-16 h-16 rounded-full bg-slate-200"></div><div class="flex-1"><div class="h-8 bg-slate-200 rounded w-48 mb-3"></div><div class="flex gap-3 mb-4"><div class="h-6 bg-slate-100 rounded w-20"></div><div class="h-6 bg-slate-100 rounded w-24"></div><div class="h-6 bg-slate-100 rounded w-16"></div></div><div class="space-y-3"><div class="flex items-center gap-2"><div class="h-4 bg-slate-200 rounded w-16"></div><div class="h-6 bg-slate-100 rounded w-32"></div></div><div class="flex items-center gap-2"><div class="h-4 bg-slate-200 rounded w-16"></div><div class="h-6 bg-slate-100 rounded w-28"></div></div><div class="flex items-center gap-2"><div class="h-4 bg-slate-200 rounded w-16"></div><div class="flex gap-2"><div class="h-6 bg-slate-100 rounded w-20"></div><div class="h-6 bg-slate-100 rounded w-24"></div></div></div></div></div></div></div>',1)),e("div",Qs,[e("div",Ys,[t[55]||(t[55]=e("div",{class:"h-6 bg-slate-200 rounded w-32 mb-4"},null,-1)),e("div",el,[(r(),i(N,null,V(8,s=>e("div",{key:s,class:"p-4 bg-slate-50 rounded-xl"},[...t[54]||(t[54]=[e("div",{class:"h-3 bg-slate-200 rounded w-16 mb-2"},null,-1),e("div",{class:"h-6 bg-slate-300 rounded w-12"},null,-1)])])),64))])]),e("div",tl,[t[57]||(t[57]=e("div",{class:"h-6 bg-slate-200 rounded w-32 mb-4"},null,-1)),e("div",sl,[(r(),i(N,null,V(4,s=>e("div",{key:s,class:"p-4 bg-slate-50 rounded-xl"},[...t[56]||(t[56]=[e("div",{class:"h-3 bg-slate-200 rounded w-16 mb-2"},null,-1),e("div",{class:"h-6 bg-slate-300 rounded w-12"},null,-1)])])),64))])])])])):w.value?v("",!0):(r(),i("div",ll,[e("div",al,[m(B(he),{class:"w-10 h-10"})]),t[59]||(t[59]=e("h3",{class:"text-xl font-bold text-slate-800"},"No Intelligence Selected",-1)),t[60]||(t[60]=e("p",{class:"text-slate-500 max-w-sm mx-auto mt-2 font-medium"},"Use the search box above to lookup any player's statistics.",-1))]))])])}}});export{pl as default};
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.