1import{S as Ke,r as i,j as e,ae as he,N as De,af as O,ag as Q,ah as U,I as Re,ai as z,e as N,g as pe,v as $e,aM as Ve,G as Ge,s as y}from"./index-CL21sTNZ.js";import{C as E,a as T,b as L,d as M}from"./card-BuNvSVCH.js";import{S as q,a as P,b as K,c as D,d as p}from"./select-7mAtfPgy.js";import{T as Ie,a as Be,b as ue,c as _e}from"./tabs-SLsm1Mv7.js";import{C as He,a as Ae,b as Fe}from"./collapsible-Cp4Id1A0.js";import{T as X,a as Y,b as v,c as d,d as Z,e as o}from"./table-D720ySMn.js";import{C as J}from"./circle-check-big-wTB31SLw.js";import{C as W}from"./circle-x-BAjj-Ha0.js";import{C as Oe}from"./chevron-right-C_x0Yx1C.js";import{S as Qe}from"./search-0lpzXWul.js";import{t as Ue}from"./index-D-B3n0ld.js";import{f as je}from"./format-DmGwt2YV.js";import"./chevron-up-uwaeURXb.js";import"./check-BrNA1jbH.js";import"./index-BhJrPwQj.js";import"./index-Bk2OxZYl.js";import"./en-US-zlo5DlcH.js";const R=k=>{const $=new Date(k),j=Ue($,"America/New_York");return je(j,"MMM d, yyyy h:mm a")+" EST"},b=k=>je(new Date(k),"MMM d"),w=[{key:"view",label:"Cut Views",settingKey:"score_view"},{key:"qualified_view",label:"Qual Cut",settingKey:"score_qualified_view"},{key:"teaser_view",label:"Teaser Views",settingKey:"score_view"},{key:"qualified_teaser_view",label:"Qual Teaser",settingKey:"score_qualified_view"},{key:"like",label:"Likes",settingKey:"score_like"},{key:"comment",label:"Comments",settingKey:"score_comment"},{key:"share",label:"Shares",settingKey:"score_shared"},{key:"following",label:"Follows",settingKey:"score_following"},{key:"save_playlist",label:"Saves",settingKey:"score_save_playlist"},{key:"tip",label:"Tips",settingKey:"score_tip"},{key:"live_tip",label:"Live Tips",settingKey:"score_tip"},{key:"subscription",label:"Subs",settingKey:"score_subscription"},{key:"story_view",label:"Story Views",settingKey:"score_view"},{key:"story_like",label:"Story Likes",settingKey:"score_like"},{key:"story_comment",label:"Story Comments",settingKey:"score_comment"},{key:"live_like",label:"Live Likes",settingKey:"score_like"},{key:"live_share",label:"Live Shares",settingKey:"score_shared"},{key:"profile_view",label:"Profile",settingKey:"score_profile_view"},{key:"social_link_click",label:"Social",settingKey:"score_social_link_click"},{key:"dm_initiated",label:"DMs",settingKey:"score_dm_initiated"}],xs=()=>{var de;Ke();const[k,$]=i.useState([]),[j,ee]=i.useState(""),[g,ge]=i.useState("fan"),[h,fe]=i.useState("all"),[S,se]=i.useState([]),[te,V]=i.useState([]),[Ne,G]=i.useState(!1),[ye,ve]=i.useState([]),[m,ke]=i.useState(null),[ae,be]=i.useState(new Set),[ne,we]=i.useState(new Map),[C,Se]=i.useState(""),[I,Ce]=i.useState("fan"),[B,Ee]=i.useState([]),[Te,H]=i.useState(!1),[re,ie]=i.useState(null);i.useEffect(()=>{(async()=>{const{data:t,error:n}=await y.from("leaderboard_settings").select("score_view, score_qualified_view, score_like, score_comment, score_shared, score_following, score_save_playlist, score_tip, score_subscription, score_ppv, score_profile_view, score_social_link_click, score_dm_initiated").single();!n&&t&&ke(t)})()},[]),i.useEffect(()=>{(async()=>{const{data:t,error:n}=await y.from("raw_customers_topics").select("topic_id, name").eq("is_active",!0).order("name");if(!n&&t){const l=Array.from(new Map(t.map(c=>[c.topic_id,c])).values());ve(l)}})()},[]),i.useEffect(()=>{(async()=>{const t=y.from("leaderboard_snapshots").select("calculated_at, period_start, period_end, entity_type").eq("entity_type",g).order("calculated_at",{ascending:!1});h==="all"?t.is("topic_id",null):t.eq("topic_id",parseInt(h));const{data:n,error:l}=await t;if(l){console.error("Error fetching snapshots:",l);return}const c=n.reduce((x,a)=>{const r=a.calculated_at;return x[r]||(x[r]={calculated_at:a.calculated_at,period_start:a.period_start,period_end:a.period_end,entity_type:a.entity_type,count:0}),x[r].count++,x},{});$(Object.values(c)),ee("")})()},[g,h]),i.useEffect(()=>{if(!j){se([]),V([]);return}(async()=>{var a;G(!0);const t=y.from("leaderboard_snapshots").select("*").eq("calculated_at",j).eq("entity_type",g).order("rank",{ascending:!0}).limit(100);h==="all"?t.is("topic_id",null):t.eq("topic_id",parseInt(h));const{data:n,error:l}=await t;
1if(l){console.error("Error fetching entries:",l),G(!1);return}const c=n;se(c);const x=(a=c.find(r=>r.prior_calculated_at))==null?void 0:a.prior_calculated_at;if(x){const r=y.from("leaderboard_snapshots").select("*").eq("calculated_at",x).eq("entity_type",g);h==="all"?r.is("topic_id",null):r.eq("topic_id",parseInt(h));const{data:f,error:_}=await r;_||V(f)}else V([]);G(!1)})()},[j,g,h]);const Le=s=>{if(!s||!m)return 0;let t=0;return s.view&&(t+=s.view.count*m.score_view),s.qualified_view&&(t+=s.qualified_view.count*m.score_qualified_view),s.teaser_view&&(t+=s.teaser_view.count*m.score_view),s.qualified_teaser_view&&(t+=s.qualified_teaser_view.count*m.score_qualified_view),s.like&&(t+=s.like.count*m.score_like),s.comment&&(t+=s.comment.count*m.score_comment),s.share&&(t+=s.share.count*m.score_shared),s.following&&(t+=s.following.count*m.score_following),s.save_playlist&&(t+=s.save_playlist.count*m.score_save_playlist),s.tip&&(t+=s.tip.count*m.score_tip),t},u=i.useMemo(()=>{if(S.length===0)return{entries:[],stats:{rankMatches:0,rankMismatches:0,noPrior:0,pointsMatches:0,pointsMismatches:0}};const s=new Map;te.forEach(r=>{s.set(r.entity_id,r.rank)});let t=0,n=0,l=0,c=0,x=0;return{entries:S.map(r=>{const f=s.get(r.entity_id)??null;let _=null,F="no-prior";if(f!==null){_=f-r.rank;const Pe=r.rank_change??0;_===Pe?(F="match",t++):(F="mismatch",n++)}else l++;const xe=Le(r.action_breakdown),me=xe===r.total_points?"match":"mismatch";return me==="match"?c++:x++,{...r,priorRank:f,calculatedChange:_,rankStatus:F,calculatedPoints:xe,pointsStatus:me}}),stats:{rankMatches:t,rankMismatches:n,noPrior:l,pointsMatches:c,pointsMismatches:x}}},[S,te,m]),Me=async s=>{const t=s.toString(),n=new Set(ae);if(n.has(t))n.delete(t);else if(n.add(t),!ne.has(s)){const l=y.from("leaderboard_snapshots").select("calculated_at, period_start, period_end, rank, total_points, rank_change, prior_calculated_at, action_breakdown").eq("entity_type",g).eq("entity_id",s).order("calculated_at",{ascending:!1}).limit(5);h==="all"?l.is("topic_id",null):l.eq("topic_id",parseInt(h));const{data:c}=await l;c&&we(x=>new Map(x).set(s,c))}be(n)},le=async()=>{if(!C)return;H(!0),ie(null);const{data:s,error:t}=await y.from("leaderboard_snapshots").select("calculated_at, period_start, period_end, rank, total_points, rank_change, prior_calculated_at, action_breakdown, entity_name").eq("entity_type",I).eq("entity_id",parseInt(C)).is("topic_id",null).order("calculated_at",{ascending:!1});if(t){console.error("Error fetching entity history:",t),H(!1);return}s&&s.length>0&&ie(s[0].entity_name),Ee(s),H(!1)},qe=(s,t,n,l)=>{const c=n.split("T")[0],x=l.split("T")[0];switch(s){case"fan":return`/leaderboards/fan/${t}?start=${c}&end=${x}`;case"creator":return`/creator/${t}`;case"content":return`/content/${t}`;default:return null}},A=k.find(s=>s.calculated_at===j),ce=(de=S.find(s=>s.prior_calculated_at))==null?void 0:de.prior_calculated_at,oe=(s,t)=>{const n=s==null?void 0:s[t];return!n||n.count===0?e.jsx("span",{className:"text-muted-foreground",children:"â"}):e.jsx(O,{children:e.jsxs(Q,{children:[e.jsx(U,{asChild:!0,children:e.jsx("span",{className:"cursor-help",children:n.count})}),e.jsx(z,{children:e.jsxs("p",{children:[n.points," pts"]})})]})})};return e.jsxs("div",{className:"p-6 space-y-6 max-w-[1600px] mx-auto",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs(he,{to:"/leaderboards",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground text-sm",children:[e.jsx(De,{className:"w-4 h-4"}),"Back to Leaderboards"]}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Leaderboard Data Audit"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Verify points calculations and rank changes are correct. Each row shows action counts (hover for points)."})]})]}),e.jsxs(Ie,{defaultValue:"verify",className:"space-y-4",children:[e.jsxs(Be,{children:[e.jsx(ue,{value:"verify",children:"Snapshot Verification"}),e.jsx(ue,{value:"lookup",children:"Entity Lookup"})]}),e.jsxs(_e,{value:"verify",className:"space-y-4",children:[e.jsxs(E,{children:[e.jsx(T,{className:"pb-3",children:e.jsxs(L,{className:"text-lg flex items-center gap-2",children:["Select Snapshot",e.jsx(O,{children:e.jsxs(Q,{children:[e.jsx(U,{children:e.jsx(Re,{className:"w-4 h-4 text-muted-foreground"})}),e.jsx(z,{className:"max-w-sm",children:e.jsx("p",{children:"Choose entity type, genre, and snapshot to verify. Points are calculated from action breakdown and compared to stored total."})})]})})]})}),e.jsxs(M,{className:"space-y-4",children:[e.jsxs("div",{className:"flex gap-4 flex-wrap",children:[e.jsxs("div",{className:"w-36",children:[e.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"Entity Type"}),e.jsxs(q,{value:g,onValueChange:ge,children:[e.jsx(P,{children:e.jsx(K,{})}),e.jsxs(D,{children:[e.jsx(p,{value:"fan",children:"Fan"}),e.jsx(p,{value:"creator",children:"Creator"}),e.jsx(p,{value:"genre",children:"Genre"}),e.jsx(p,{value:"content",children:"Content"})]})]})]}),e.jsxs("div",{className:"w-48",children:[e.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"Genre"}),e.jsxs(q,{value:h,onValueChange:fe,children:[e.jsx(P,{children:e.jsx(K,{})}),e.jsxs(D,{children:[e.jsx(p,{value:"all",children:"All Genres (Overall)"}),ye.map(s=>e.jsx(p,{value:s.topic_id.toString(),children:s.name},s.topic_id))]})]})]}),e.jsxs("div",{className:"flex-1 min-w-[280px]",children:[e.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"Snapshot"}),e.jsxs(q,{value:j,onValueChange:ee,children:[e.jsx(P,{children:e.jsx(K,{placeholder:"Select a snapshot..."})}),e.jsx(D,{children:k.map(s=>e.jsxs(p,{value:s.calculated_at,children:[R(s.calculated_at)," (",s.count," entries)"]},s.calculated_at))})]})]})]}),A&&e.jsxs("div",{className:"text-sm bg-muted/50 p-3 rounded-lg flex flex-wrap gap-x-6 gap-y-1",children:[e.jsxs("span",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Period:"})," ",b(A.period_start)," â ",b(A.period_end)]}),ce&&e.jsxs("span",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Prior:"})," ",R(ce)]})]})]})]}),u.entries.length>0&&e.jsxs(E,{children:[e.jsx(T,{className:"pb-3",children:e.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-4",children:[e.jsx(L,{className:"text-lg",children:"Verification Results"}),e.jsxs("div",{className:"flex gap-2 flex-wrap",children:[e.jsxs(N,{variant:"outline",className:"bg-green-500/10 text-green-600 border-green-500/30",children:[e.jsx(J,{className:"w-3 h-3 mr-1"}),u.stats.pointsMatches," Pts â"]}),u.stats.pointsMismatches>0&&e.jsxs(N,{variant:"outline",className:"bg-red-500/10 text-red-600 border-red-500/30",children:[e.jsx(W,{className:"w-3 h-3 mr-1"}),u.stats.pointsMismatches," Pts â"]}),e.jsxs(N,{variant:"outline",className:"bg-green-500/10 text-green-600 border-green-500/30",children:[e.jsx(J,{className:"w-3 h-3 mr-1"}),u.stats.rankMatches," Rank â"]}),u.stats.rankMismatches>0&&e.jsxs(N,{variant:"outline",className:"bg-red-500/10 text-red-600 border-red-500/30",children:[e.jsx(W,{className:"w-3 h-3 mr-1"}),u.stats.rankMismatches," Rank â"]}),e.jsxs(N,{variant:"outline",className:"bg-muted text-muted-foreground",children:[u.stats.noPrior," New"]})]})]})}),e.jsx(M,{children:Ne?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"Loading..."}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(X,{children:[e.jsx(Y,{children:e.jsxs(v,{children:[e.jsx(d,{className:"w-10"}),e.jsx(d,{className:"w-12",children:"Rank"}),e.jsx(d,{className:"min-w-[140px]",children:"Name"}),w.map(s=>e.jsx(d,{className:"text-center text-xs px-2",children:s.label},s.key)),e.jsx(d,{className:"text-right",children:"Total Pts"}),e.jsx(d,{className:"text-center",children:"Rank Î"}),e.jsx(d,{className:"text-center w-10",children:"â"})]})}),e.jsx(Z,{children:u.entries.map(s=>{var x;const t=ae.has(s.entity_id.toString()),n=ne.get(s.entity_id)||[],l=qe(s.entity_type,s.entity_id,s.period_start,s.period_end),c=((x=s.metadata)==null?void 0:x.genreBreakdown)||[];return e.jsx(He,{asChild:!0,open:t,children:e.jsxs(e.Fragment,{children:[e.jsxs(v,{className:`curs
1or-pointer hover:bg-muted/50 ${s.pointsStatus==="mismatch"||s.rankStatus==="mismatch"?"bg-red-500/5":""}`,onClick:()=>Me(s.entity_id),children:[e.jsx(o,{className:"px-2",children:e.jsx(Ae,{asChild:!0,children:e.jsx(pe,{variant:"ghost",size:"sm",className:"p-0 h-6 w-6",children:t?e.jsx($e,{className:"w-4 h-4"}):e.jsx(Oe,{className:"w-4 h-4"})})})}),e.jsx(o,{className:"font-medium",children:s.rank}),e.jsxs(o,{children:[e.jsx("div",{className:"flex items-center gap-1",children:l?e.jsxs(he,{to:l,className:"text-primary hover:underline flex items-center gap-1",onClick:a=>a.stopPropagation(),children:[s.entity_name||`#${s.entity_id}`,e.jsx(Ve,{className:"w-3 h-3"})]}):e.jsx("span",{children:s.entity_name||`#${s.entity_id}`})}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:["ID: ",s.entity_id]})]}),w.map(a=>e.jsx(o,{className:"text-center px-2",children:oe(s.action_breakdown,a.key)},a.key)),e.jsx(o,{className:"text-right font-medium",children:e.jsx(O,{children:e.jsxs(Q,{children:[e.jsx(U,{asChild:!0,children:e.jsx("span",{className:s.pointsStatus==="mismatch"?"text-red-500":"",children:s.total_points.toLocaleString()})}),e.jsxs(z,{children:[e.jsxs("p",{children:["Stored: ",s.total_points.toLocaleString()]}),e.jsxs("p",{children:["Calculated: ",s.calculatedPoints.toLocaleString()]}),s.pointsStatus==="mismatch"&&e.jsxs("p",{className:"text-red-400",children:["Diff: ",(s.total_points-s.calculatedPoints).toLocaleString()]})]})]})})}),e.jsx(o,{className:"text-center",children:s.rank_change!==null?e.jsx("span",{className:s.rank_change>0?"text-green-500":s.rank_change<0?"text-red-500":"text-muted-foreground",children:s.rank_change>0?`â${s.rank_change}`:s.rank_change<0?`â${Math.abs(s.rank_change)}`:"â"}):e.jsx("span",{className:"text-muted-foreground text-xs",children:"new"})}),e.jsx(o,{className:"text-center",children:s.pointsStatus==="match"&&s.rankStatus!=="mismatch"?e.jsx(J,{className:"w-4 h-4 text-green-500 mx-auto"}):e.jsx(W,{className:"w-4 h-4 text-red-500 mx-auto"})})]}),e.jsx(Fe,{asChild:!0,children:e.jsx(v,{className:"bg-muted/30 hover:bg-muted/30",children:e.jsx(o,{colSpan:14,className:"p-4",children:e.jsxs("div",{className:"space-y-4",children:[m&&s.action_breakdown&&e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Points Calculation"}),e.jsxs("div",{className:"text-sm font-mono bg-background p-2 rounded border",children:[w.map(a=>{var _;const r=(_=s.action_breakdown)==null?void 0:_[a.key];if(!r||r.count===0)return null;const f=m[a.settingKey];return e.jsxs("span",{className:"mr-3",children:["(",r.count," Ã ",f,")"]},a.key)}).filter(Boolean),"= ",e.jsx("span",{className:"font-bold",children:s.calculatedPoints}),s.pointsStatus==="mismatch"&&e.jsxs("span",{className:"text-red-500 ml-2",children:["(stored: ",s.total_points,")"]})]})]}),c.length>0&&c.some(a=>a.genreName)&&e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Genre Breakdown"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:c.filter(a=>a.genreName).map(a=>e.jsxs(N,{variant:"secondary",children:[a.genreName,": ",a.points," pts"]},a.genreId))})]}),n.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Recent History (Last 5 Snapshots)"}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(X,{children:[e.jsx(Y,{children:e.jsxs(v,{children:[e.jsx(d,{className:"text-xs",children:"Snapshot"}),e.jsx(d,{className:"text-xs",children:"Period"}),e.jsx(d,{className:"text-xs text-right",children:"Rank"}),e.jsx(d,{className:"text-xs text-right",children:"Points"}),e.jsx(d,{className:"text-xs text-center",children:"Change"})]})}),e.jsx(Z,{children:n.map(a=>e.jsxs(v,{children:[e.jsx(o,{className:"text-xs font-mono py-1",children:R(a.calculated_at)}),e.jsxs(o,{className:"text-xs text-muted-foreground py-1",children:[b(a.period_start)," â ",b(a.period_end)]}),e.jsx(o,{className:"text-xs text-right font-medium py-1",children:a.rank}),e.jsx(o,{className:"text-xs text-right py-1",children:a.total_points.toLocaleStr
1ing()}),e.jsx(o,{className:"text-xs text-center py-1",children:a.rank_change!==null?e.jsx("span",{className:a.rank_change>0?"text-green-500":a.rank_change<0?"text-red-500":"",children:a.rank_change>0?`â${a.rank_change}`:a.rank_change<0?`â${Math.abs(a.rank_change)}`:"â"}):"â"})]},a.calculated_at))})]})})]})]})})})})]})},s.id)})})]})})})]})]}),e.jsxs(_e,{value:"lookup",className:"space-y-4",children:[e.jsxs(E,{children:[e.jsxs(T,{children:[e.jsx(L,{className:"text-lg",children:"Entity History Lookup"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Search by entity ID to see their complete history across all snapshots"})]}),e.jsx(M,{className:"space-y-4",children:e.jsxs("div",{className:"flex gap-4 flex-wrap",children:[e.jsxs("div",{className:"w-40",children:[e.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"Entity Type"}),e.jsxs(q,{value:I,onValueChange:Ce,children:[e.jsx(P,{children:e.jsx(K,{})}),e.jsxs(D,{children:[e.jsx(p,{value:"fan",children:"Fan"}),e.jsx(p,{value:"creator",children:"Creator"}),e.jsx(p,{value:"genre",children:"Genre"}),e.jsx(p,{value:"content",children:"Content"})]})]})]}),e.jsxs("div",{className:"flex-1 min-w-[200px]",children:[e.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"Entity ID"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(Ge,{placeholder:"e.g. 2015",value:C,onChange:s=>Se(s.target.value),onKeyDown:s=>s.key==="Enter"&&le()}),e.jsxs(pe,{onClick:le,disabled:Te,children:[e.jsx(Qe,{className:"w-4 h-4 mr-2"}),"Search"]})]})]})]})})]}),B.length>0&&e.jsxs(E,{children:[e.jsx(T,{children:e.jsxs(L,{className:"text-lg flex items-center gap-2",children:[re&&e.jsx("span",{children:re}),e.jsxs("span",{className:"text-muted-foreground",children:["(",I," #",C,")"]}),e.jsxs(N,{variant:"secondary",children:[B.length," snapshots"]})]})}),e.jsx(M,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(X,{children:[e.jsx(Y,{children:e.jsxs(v,{children:[e.jsx(d,{children:"Snapshot"}),e.jsx(d,{children:"Period"}),e.jsx(d,{className:"text-right",children:"Rank"}),e.jsx(d,{className:"text-right",children:"Points"}),w.map(s=>e.jsx(d,{className:"text-center text-xs px-2",children:s.label},s.key)),e.jsx(d,{className:"text-center",children:"Rank Î"})]})}),e.jsx(Z,{children:B.map(s=>e.jsxs(v,{className:"hover:bg-muted/30",children:[e.jsx(o,{className:"font-mono text-xs",children:R(s.calculated_at)}),e.jsxs(o,{className:"text-muted-foreground",children:[b(s.period_start)," â ",b(s.period_end)]}),e.jsx(o,{className:"text-right font-medium",children:s.rank}),e.jsx(o,{className:"text-right",children:s.total_points.toLocaleString()}),w.map(t=>e.jsx(o,{className:"text-center px-2",children:oe(s.action_breakdown,t.key)},t.key)),e.jsx(o,{className:"text-center",children:s.rank_change!==null?e.jsx("span",{className:s.rank_change>0?"text-green-500":s.rank_change<0?"text-red-500":"text-muted-foreground",children:s.rank_change>0?`â${s.rank_change}`:s.rank_change<0?`â${Math.abs(s.rank_change)}`:"â"}):e.jsx("span",{className:"text-muted-foreground",children:"â"})})]},s.calculated_at))})]})})})]})]})]})]})};export{xs 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.