PageSourceSearch

https://ssicevs.com/assets/SeoAnalyticsPage-C480nsp5.js

js ssicevs.com collected 2026-10-08 04:51:36 UTC 35,664 bytes, 1 lines download raw bytes

1import{r as v,j as e}from"./metal-fx-C6GZ_SKA.js";import{fm as F,eT as U,eG as N,$ as ie,a0 as ce,m as de,dx as xe,dk as W,bR as ue,j as me,ai as pe,b6 as _,W as X,bj as he,X as ge,a$ as fe,ep as be,dt as ve,x as Ne,r as je}from"./index-D1yBc__G.js";import{D as ye}from"./DistributionBar-Bt-ksq_X.js";import{E as ee}from"./empty-state-B3Xgs4He.js";import{j as ke,O as we,Q as te,v as se,M as K,V as Me,D as re,q as V,L as Y,x as D,b as P,c as H,p as k,T as I,E as J,J as ae,i as Ae,F as T,s as Se}from"./seo-snapshot-Bqg1Zfce.js";import"./motion-BHwmuFpx.js";import"./index-CQWrk29H.js";import"./popup-host-CCVBXjjy.js";import"./latest-CpfmJdF0.js";const $e=[.16,1,.3,1];function Q({label:s,value:h,delta:r,deltaPct:d,up:x=!0,series:c,tint:n="var(--chart-1)",caption:u,className:i}){const m=F(),g=v.useId().replace(/:/g,""),l=Math.max(...c,1),f=c.slice(-24);return e.jsxs("section",{className:N("relative isolate overflow-hidden rounded-xl border border-foreground/[0.05] px-4 py-3.5",i),style:{background:"var(--card)"},children:[e.jsx("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10",style:{background:`radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, ${n} 14%, transparent), transparent 62%)`}}),e.jsx("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 opacity-[0.35]",style:{backgroundImage:`radial-gradient(color-mix(in srgb, ${n} 42%, transparent) 0.5px, transparent 0.5px)`,backgroundSize:"6px 6px",maskImage:"radial-gradient(120% 100% at 100% 0%, #000, transparent 60%)",WebkitMaskImage:"radial-gradient(120% 100% at 100% 0%, #000, transparent 60%)"}}),e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-[11.5px] text-foreground/50",children:s}),e.jsx("div",{className:"mt-3 text-[26px] font-semibold tabular-nums leading-none tracking-[-0.03em] text-foreground/95",children:h}),e.jsxs("div",{className:"mt-2 flex items-center gap-1.5",children:[r&&e.jsx("span",{className:"text-[11.5px] tabular-nums text-foreground/45",children:r}),d&&e.jsx("span",{className:"rounded-md px-1.5 py-0.5 text-[10.5px] font-semibold tabular-nums",style:{color:x?"var(--chart-up)":"var(--chart-down)",background:`color-mix(in srgb, ${x?"var(--chart-up)":"var(--chart-down)"} 12%, transparent)`},children:d})]})]}),e.jsxs("svg",{viewBox:`0 0 ${f.length*6} 56`,className:"h-14 w-[46%] shrink-0","aria-hidden":!0,preserveAspectRatio:"none",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:`b${g}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:n,stopOpacity:"0.95"}),e.jsx("stop",{offset:"100%",stopColor:n,stopOpacity:"0.25"})]})}),f.map((b,w)=>{const M=Math.max(1.5,b/l*52);return e.jsx(U.rect,{x:w*6+1,width:4,rx:1.4,fill:`url(#b${g})`,initial:m?!1:{height:0,y:54},animate:{height:M,y:54-M},transition:m?{duration:0}:{duration:.5,ease:$e,delay:w*.012}},w)})]})]}),u&&e.jsx("div",{className:"mt-2.5 text-[10.5px] text-foreground/25",children:u})]})}const Ce=[.16,1,.3,1];function Re(s){if(s.length<2)return"";let h=`M${s[0].x} ${s[0].y}`;for(let r=0;r<s.length-1;r++){const d=s[r-1]??s[r],x=s[r],c=s[r+1],n=s[r+2]??c,u={x:x.x+(c.x-d.x)/6,y:x.y+(c.y-d.y)/6},i={x:c.x-(n.x-x.x)/6,y:c.y-(n.y-x.y)/6};h+=` C${u.x.toFixed(1)} ${u.y.toFixed(1)} ${i.x.toFixed(1)} ${i.y.toFixed(1)} ${c.x.toFixed(1)} ${c.y.toFixed(1)}`}return h}function Te({series:s,labels:h,format:r=c=>String(c),height:d=220,className:x}){const c=F(),n=v.useId().replace(/:/g,""),[u,i]=v.useState(null),m=720,g=d,l={t:14,b:14,l:0,r:0},f=Math.max(s[0].values.length,s[1].values.length),b=Math.max(...s[0].values,...s[1].values,1),w=(t,o)=>l.l+t/Math.max(1,o-1)*(m-l.l-l.r),M=t=>w(t,f),B=g-l.b,C=t=>B-t/b*(g-l.t-l.b),A=t=>Re(t.map((o,p)=>({x:w(p,t.length),y:C(o)}))),L=t=>`${A(t)} L${m-l.r} ${B} L${l.l} ${B} Z`,j=u==null?null:Math.min(f-1,Math.max(0,u));return e.jsxs("div",{className:N("relative",x),children:[e.jsxs("svg",{viewBox:`0 0 ${m} ${g}`,className:"block w-full cursor-crosshair touch-none",role:"img","aria-label":`${s[0].label} against ${s[1].label}`,onPointerMove:t=>{const o=t.currentTarget.getBoundingClientRect();
1i(Math.round((t.clientX-o.left)/o.width*(f-1)))},onPointerLeave:()=>i(null),children:[e.jsx("defs",{children:s.map((t,o)=>e.jsxs("linearGradient",{id:`r${n}${o}`,x1:"0",y1:"0",x2:"1",y2:"0",children:[e.jsx("stop",{offset:"0%",stopColor:t.tint,stopOpacity:"0.10"}),e.jsx("stop",{offset:"45%",stopColor:t.tint,stopOpacity:"0.42"}),e.jsx("stop",{offset:"100%",stopColor:t.tint,stopOpacity:"0.14"})]},o))}),[.25,.5,.75].map(t=>e.jsx("line",{x1:"0",x2:m,y1:l.t+t*(g-l.t-l.b),y2:l.t+t*(g-l.t-l.b),stroke:"currentColor",strokeOpacity:.05,className:"text-foreground",strokeDasharray:"2 5"},t)),s.map((t,o)=>e.jsxs(U.g,{initial:c?!1:{opacity:0},animate:{opacity:1},transition:c?{duration:0}:{duration:.6,ease:Ce,delay:o*.12},style:{mixBlendMode:"screen"},children:[e.jsx("path",{d:L(t.values),fill:`url(#r${n}${o})`}),e.jsx("path",{d:A(t.values),fill:"none",stroke:t.tint,strokeOpacity:.85,strokeWidth:1.6,strokeLinecap:"round"})]},t.label)),j!=null&&e.jsxs("g",{pointerEvents:"none",children:[e.jsx("line",{x1:M(j),x2:M(j),y1:l.t,y2:B,stroke:"currentColor",strokeOpacity:.2,className:"text-foreground"}),s.map(t=>{const o=Math.round(j/Math.max(1,f-1)*(t.values.length-1));return e.jsx("circle",{cx:M(j),cy:C(t.values[o]??0),r:3,fill:t.tint,stroke:"var(--card)",strokeWidth:1.5},t.label)})]})]}),s.map(t=>{const o=t.values.indexOf(Math.max(...t.values));if(o<0)return null;const p=w(o,t.values.length)/m*100;return e.jsx("span",{className:"pointer-events-none absolute -translate-x-1/2 rounded-md px-1.5 py-0.5 text-[10px] font-medium tabular-nums",style:{left:`${Math.min(94,Math.max(6,p))}%`,top:`${(C(t.values[o])-20)/g*100}%`,color:t.tint,background:`color-mix(in srgb, ${t.tint} 14%, var(--card))`},children:r(t.values[o])},t.label)}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-x-5 gap-y-1.5",children:[s.map(t=>{const o=t.values.reduce((R,S)=>R+S,0),p=j==null?-1:Math.round(j/Math.max(1,f-1)*(t.values.length-1));return e.jsxs("span",{className:"inline-flex items-baseline gap-2 text-[11.5px]",children:[e.jsx("span",{"aria-hidden":!0,className:"h-1.5 w-1.5 rounded-full",style:{background:t.tint}}),e.jsx("span",{className:"text-foreground/50",children:t.label}),e.jsx("span",{className:"tabular-nums text-foreground/85",children:j==null?r(o):r(t.values[p]??0)})]},t.label)}),e.jsx("span",{className:"ml-auto text-[11px] tabular-nums text-foreground/30",children:j==null?"period totals · scrub for a day":h[j]})]})]})}const Le=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],q=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ee({days:s,selected:h,onSelect:r,onPage:d,className:x}){const c=Math.max(...s.map(i=>i.value),1),n=[s[0],s[s.length-1]].map(i=>i?new Date(`${i.date}T00:00:00`):new Date),u=n[0].getMonth()===n[1].getMonth()?`${q[n[0].getMonth()]} ${n[0].getFullYear()}`:`${q[n[0].getMonth()].slice(0,3)} — ${q[n[1].getMonth()].slice(0,3)} ${n[1].getFullYear()}`;return e.jsxs("div",{className:N("flex flex-col",x),children:[e.jsxs("div",{className:"flex items-center justify-between px-1",children:[e.jsx("button",{type:"button",onClick:()=>d==null?void 0:d(-1),disabled:!d,"aria-label":"Previous week",className:"rounded-md p-1 text-foreground/35 transition-colors hover:bg-foreground
1/[0.05] hover:text-foreground/70 disabled:opacity-25",children:e.jsx(ie,{className:"h-4 w-4"})}),e.jsx("span",{className:"text-[12.5px] font-medium text-foreground/80",children:u}),e.jsx("button",{type:"button",onClick:()=>d==null?void 0:d(1),disabled:!d,"aria-label":"Next week",className:"rounded-md p-1 text-foreground/35 transition-colors hover:bg-foreground/[0.05] hover:text-foreground/70 disabled:opacity-25",children:e.jsx(ce,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"mt-3 grid grid-cols-7 gap-1",children:s.map(i=>{const m=new Date(`${i.date}T00:00:00`),g=i.date===h,l=i.value/c;return e.jsxs("button",{type:"button",onClick:()=>r==null?void 0:r(i.date),"aria-pressed":g,title:`${i.date} · ${i.value}`,className:N("group relative flex flex-col items-center gap-1.5 rounded-lg px-1 py-1.5 transition-colors",r&&"cursor-pointer hover:bg-foreground/[0.04]"),children:[e.jsx("span",{className:"text-[9.5px] uppercase tracking-[0.06em] text-foreground/30",children:Le[m.getDay()]}),e.jsx("span",{className:N("flex h-7 w-7 items-center justify-center rounded-full text-[12px] tabular-nums transition-colors",g?"font-semibold text-foreground":"text-foreground/70"),style:g?{background:"var(--chart-1)",color:"#fff"}:{background:`color-mix(in srgb, var(--chart-1) ${Math.round(l*26)}%, transparent)`},children:m.getDate()})]},i.date)})})]})}const Be={ok:"var(--chart-up)",warn:"var(--chart-4)",bad:"var(--chart-down)",muted:"var(--foreground)"};function Ge({rows:s,className:h}){return e.jsx("ul",{className:N("flex flex-col gap-2",h),children:s.map(r=>{const d=Be[r.tone??"muted"],x=!!(r.onOpen||r.href),c=e.jsxs(e.Fragment,{children:[r.mark&&e.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border border-foreground
1/[0.05] bg-foreground/[0.03] text-foreground/70",children:r.mark}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block truncate text-[12.5px] text-foreground/85",children:r.title}),r.meta&&e.jsx("span",{className:"mt-0.5 block truncate text-[11px] tabular-nums text-foreground/35",children:r.meta})]}),r.value&&e.jsx("span",{className:"shrink-0 text-[12px] tabular-nums text-foreground/70",children:r.value}),r.status&&e.jsx("span",{className:"shrink-0 rounded-md px-1.5 py-0.5 text-[10px] font-medium",style:{color:d,background:`color-mix(in srgb, ${d} ${r.tone==="muted"?8:12}%, transparent)`,opacity:r.tone==="muted"?.7:1},children:r.status}),x&&e.jsx(de,{className:"h-3.5 w-3.5 shrink-0 text-foreground/25 transition-transform group-hover:translate-x-0.5"})]}),n="group flex items-center gap-3 rounded-xl border border-foreground/[0.05] px-3 py-2.5 text-left transition-colors";return e.jsx("li",{children:r.href?e.jsx("a",{href:r.href,target:"_blank",rel:"noreferrer",className:N(n,"hover:bg-foreground
1/[0.03]"),style:{background:"var(--card)"},children:c}):r.onOpen?e.jsx("button",{type:"button",onClick:r.onOpen,className:N(n,"w-full hover:bg-foreground/[0.03]"),style:{background:"var(--card)"},children:c}):e.jsx("div",{className:n,style:{background:"var(--card)"},children:c})},r.id)})})}const ne=[.16,1,.3,1];function Oe({faces:s,active:h,onSelect:r,action:d,className:x}){const c=F(),n=s.find(i=>i.id===h)??s[0],u=n.tint??"var(--chart-1)";return e.jsxs("div",{className:N("flex flex-col gap-3",x),children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("div",{className:"inline-flex items-center gap-0.5 rounded-full border border-foreground/[0.05] p-0.5",children:s.map(i=>{const m=i.id===n.id;return e.jsxs("button",{type:"button","aria-pressed":m,onClick:()=>r(i.id),className:N("relative rounded-full px-3 py-1.5 text-[11.5px] font-medium transition-colors",m?"text-foreground/90":"text-foreground/40 hover:text-foreground/70"),children:[m&&e.jsx(U.span,{layoutId:c?void 0:"property-face",className:"absolute inset-0 rounded-full bg-foreground
1/[0.07]",transition:{duration:.25,ease:ne}}),e.jsx("span",{className:"relative",children:i.label})]},i.id)})}),d&&e.jsx("a",{href:d.href,target:"_blank",rel:"noreferrer",className:"shrink-0 rounded-full border border-foreground/[0.06] px-3 py-1.5 text-[11.5px] font-medium text-foreground/60 transition-colors hover:border-foreground/15 hover:text-foreground/85",children:d.label})]}),e.jsxs(U.div,{initial:c?!1:{opacity:0,y:6},animate:{opacity:1,y:0},transition:c?{duration:0}:{duration:.3,ease:ne},className:"relative isolate overflow-hidden rounded-xl border border-foreground/[0.05] p-4",style:{background:"var(--card)"},children:[e.jsx("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10",style:{background:`radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, ${u} 16%, transparent), transparent 60%)`}}),e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsx("span",{className:"text-foreground/70",children:n.mark}),e.jsxs("span",{className:"text-right",children:[e.jsx("span",{className:"block font-mono text-[12.5px] tabular-nums text-foreground/80",children:n.identifier}),n.through&&e.jsxs("span",{className:"mt-0.5 block text-[10px] tabular-nums text-foreground/35",children:[n.throughLabel??"through"," ",n.through]})]})]}),e.jsxs("div",{className:"mt-8",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] uppercase tracking-[0.1em] text-foreground/30",children:[n.holderLabel??"Property",n.verified&&e.jsx(xe,{className:"h-3 w-3",style:{color:"var(--chart-up)"}})]}),e.jsx("div",{className:"mt-1 truncate text-[15px] text-foreground/90",children:n.holder})]})]},n.id)]})}const oe="inline-flex items-center gap-1.5 rounded-lg border border-foreground
1/[0.06] px-2.5 py-2 text-[12px] text-foreground/60 transition-colors hover:border-foreground/15 hover:text-foreground/85";function De({query:s,onQuery:h,placeholder:r="Search",filters:d,filter:x,onFilter:c,sorts:n,sort:u,onSort:i,action:m,className:g}){return e.jsxs("div",{className:N("flex flex-wrap items-center gap-2",g),children:[e.jsxs("label",{className:"relative min-w-0 flex-1",children:[e.jsx(W,{className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-foreground/30"}),e.jsx("span",{className:"sr-only",children:r}),e.jsx("input",{value:s,onChange:l=>h(l.target.value),placeholder:r,className:"w-full rounded-lg border border-foreground/[0.06] bg-transparent py-2 pl-9 pr-3 text-[12.5px] text-foreground/85 outline-none transition-colors placeholder:text-foreground/25 hover:border-foreground/12 focus-visible:border-foreground/25"})]}),d&&d.length>0&&e.jsxs("span",{className:N(oe,"relative pr-1.5"),children:[e.jsx(ue,{className:"h-3.5 w-3.5"}),e.jsx("select",{value:x,onChange:l=>c==null?void 0:c(l.target.value),"aria-label":"Filter",className:"cursor-pointer bg-transparent pr-1 text-[12px] text-inherit outline-none",children:d.map(l=>e.jsx("option",{value:l.id,className:"bg-[#0b0d10]",children:l.label},l.id))})]}),n&&n.length>0&&e.jsxs("span",{className:N(oe,"relative pr-1.5"),children:[e.jsx(me,{className:"h-3.5 w-3.5"}),e.jsx("select",{value:u,onChange:l=>i==null?void 0:i(l.target.value),"aria-label":"Sort",className:"cursor-pointer bg-transparent pr-1 text-[12px] text-inherit outline-none",children:n.map(l=>e.jsx("option",{value:l.id,className:"bg-[#0b0d10]",children:l.label},l.id))})]}),m]})}function Ie({eyebrow:s,title:h,subtitle:r,mark:d,action:x,footNote:c,className:n}){const u="shrink-0 rounded-full px-2.5 py-1 text-[11px] font-medium text-foreground/80 transition-colors hover:text-foreground";return e.jsxs("div",{className:N("flex flex-col rounded-xl border border-foreground
1/[0.05] p-3",n),style:{background:"var(--card)"},children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-[12.5px] text-foreground/85",children:s}),e.jsx("div",{className:"mt-0.5 truncate text-[11.5px] text-foreground/40",children:h})]}),x&&(x.href?e.jsx("a",{href:x.href,target:"_blank",rel:"noreferrer",className:N(u,"bg-foreground/[0.07]"),children:x.label}):e.jsx("button",{type:"button",onClick:x.onClick,className:N(u,"bg-foreground/[0.07]"),children:x.label}))]}),r&&e.jsx("div",{className:"mt-3 text-[11.5px] leading-relaxed text-foreground/45",children:r}),e.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3",children:[e.jsx("span",{className:"flex h-7 w-7 items-center justify-center rounded-full border border-foreground/[0.06] text-foreground/60",children:d}),c&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px] tabular-nums text-foreground/35",children:[e.jsx(pe,{className:"h-3 w-3"}),c]})]})]})}const Ue={ABW:"AW",AFG:"AF",AGO:"AO",ALB:"AL",AND:"AD",ARE:"AE",ARG:"AR",ARM:"AM",ATA:"AQ",ATF:"TF",AUS:"AU",AUT:"AT",AZE:"AZ",BDI:"BI",BEL:"BE",BEN:"BJ",BFA:"BF",BGD:"BD",BGR:"BG",BHS:"BS",BIH:"BA",BLR:"BY",BLZ:"BZ",BOL:"BO",BRA:"BR",BRN:"BN",BTN:"BT",BWA:"BW",CAF:"CF",CAN:"CA",CHE:"CH",CHL:"CL",CHN:"CN",CIV:"CI",CMR:"CM",COD:"CD",COG:"CG",COL:"CO",CRI:"CR",CUB:"CU",CYP:"CY",CZE:"CZ",DEU:"DE",DJI:"DJ",DNK:"DK",DOM:"DO",DZA:"DZ",ECU:"EC",EGY:"EG",ERI:"ER",ESH:"EH",ESP:"ES",EST:"EE",ETH:"ET",FIN:"FI",FJI:"FJ",FLK:"FK",FRA:"FR",GAB:"GA",GBR:"GB",GEO:"GE",GHA:"GH",GIN:"GN",GMB:"GM",GNB:"GW",GNQ:"GQ",GRC:"GR",GRL:"GL",GTM:"GT",GUY:"GY",HND:"HN",HRV:"HR",HTI:"HT",HUN:"HU",IDN:"ID",IND:"IN",IRL:"IE",IRN:"IR",IRQ:"IQ",ISL:"IS",ISR:"IL",ITA:"IT",JAM:"JM",JOR:"JO",JPN:"JP",KAZ:"KZ",KEN:"KE",KGZ:"KG",KHM:"KH",KOR:"KR",KWT:"KW",LAO:"LA",LBN:"LB",LBR:"LR",LBY:"LY",LKA:"LK",LSO:"LS",LTU:"LT",LUX:"LU",LVA:"LV",MAR:"MA",MDA:"MD",MDG:"MG",MEX:"MX",MKD:"MK",MLI:"ML",MLT:"MT",MMR:"MM",MNE:"ME",MNG:"MN",MOZ:"MZ",MRT:"MR",MWI:"MW",MYS:"MY",NAM:"NA",NCL:"NC",NER:"NE",NGA:"NG",NIC:"NI",NLD:"NL",NOR:"NO",NPL:"NP",NZL:"NZ",OMN:"OM",PAK:"PK",PAN:"PA",PER:"PE",PHL:"PH",PNG:"PG",POL:"PL",PRI:"PR",PRK:"KP",PRT:"PT",PRY:"PY",QAT:"QA",ROU:"RO",RUS:"RU",RWA:"RW",SAU:"SA",SDN:"SD",SEN:"SN",SLB:"SB",SLE:"SL",SLV:"SV",SOM:"SO",SRB:"RS",SSD:"SS",SUR:"SR",SVK:"SK",SVN:"SI",SWE:"SE",SWZ:"SZ",SYR:"SY",TCD:"TD",TGO:"TG",THA:"TH",TJK:"TJ",TKM:"TM",TLS:"TL",TTO:"TT",TUN:"TN",TUR:"TR",TWN:"TW",TZA:"TZ",UGA:"UG",UKR:"UA",URY:"UY",USA:"US",UZB:"UZ",VEN:"VE",VNM:"VN",VUT:"VU",YEM:"YE",ZAF:"ZA",ZMB:"ZM",ZWE:"ZW"};function Fe({data:s,nameFor:h,unit:r="visitors",tint:d="var(--chart-1)",src:x="/world-outline.json",className:c}){const[n,u]=v.useState(null),[i,m]=v.useState(null),g=v.useRef(null);v.useEffect(()=>{let o=!0;return fetch(x).then(p=>p.ok?p.json():Promise.reject(new Error(String(p.status)))).then(p=>o&&u(p.features)).catch(()=>o&&u([])),()=>{o=!1}},[x]);const l=v.useMemo(()=>new Map(s.map(o=>[o.code.toUpperCase(),o.value])),[s]),f=v.useMemo(()=>Math.max(...s.map(o=>o.value),1),[s]),b=800,w=400,M=83,B=-56,C=o=>(o+180)/360*b,A=o=>(M-o)/(M-B)*w,L=o=>{const p=o.type==="Polygon"?o.coordinates:o.coordinates.flat();let R="";for(const S of p)S!=null&&S.length&&(R+=S.map((E,G)=>`${G?"L":"M"}${C(E[0]).toFixed(1)} ${A(E[1]).toFixed(1)}`).join("")+"Z");return R},j=o=>{const p=l.get(o);return p==null?"color-mix(in srgb, var(--foreground) 4%, transparent)":`color-mix(in srgb, ${d} ${Math.round(18+p/f*62)}%, transparent)`},t=i?l.get(i.code):void 0;return e.jsxs("div",{ref:g,className:N("relative",c),children:[e.jsx("svg",{viewBox:`0 0 ${b} ${w}`,className:"block w-full",role:"img","aria-label":`${r} by country`,children:n==null?void 0:n.map(o=>{const p=Ue[o.id]??o.id.slice(0,2);if(p==="AQ")return null;const R=l.has(p);return e.jsx("path",{d:L(o),fill:j(p),stroke:"color-mix(in srgb, var(--foreground) 8%, transparent)",strokeWidth:.4,className:R?"cursor-default transition-[fill] duration-150":void 0,onMouseEnter:S=>{var G;const E=(G=g.current)==null?void 0:G.getBoundingClientRect();E&&m({code:p,x:S.clientX-E.left,y:S.clientY-E.top})},onMouseLeave:()=>m(null)},o.id)})}),!n&&e.jsx("div",{className:"absolute inset-0 grid place-items-center text-[11px] text-foreground
1/25",children:"loading outline…"}),i&&e.jsxs("span",{className:"pointer-events-none absolute z-10 -translate-x-1/2 -translate-y-full rounded-md border border-foreground/[0.08] px-2 py-1 text-[11px] tabular-nums text-foreground/85 shadow-lg",style:{left:i.x,top:i.y-6,background:"var(--card)"},children:[(h==null?void 0:h(i.code))??i.code,e.jsxs("span",{className:"text-foreground/45",children:[" · ",t==null?`no ${r}`:`${t.toLocaleString("en-US")} ${r}`]})]})]})}function Ze({value:s,slots:h=30,label:r="active now",tint:d="var(--chart-up)",className:x}){const c=F(),[n,u]=v.useState(()=>Array(h).fill(null)),i=v.useRef(null);v.useEffect(()=>{s==null||s===i.current||(i.current=s,u(f=>[...f.slice(1),s]))},[s]);const m=n.filter(f=>f!=null),g=Math.max(...m,1),l=s??0;return e.jsxs("div",{className:N("flex flex-col gap-2",x),children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[e.jsxs("span",{className:"inline-flex items-baseline gap-2",children:[e.jsx("span",{className:"text-[22px] font-semibold tabular-nums leading-none tracking-[-0.02em] text-foreground/95",children:s==null?"—":l}),e.jsx("span",{className:"text-[11.5px] text-foreground/40",children:r})]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[10.5px] text-foreground/30",children:[e.jsx("span",{"aria-hidden":!0,className:N("h-1.5 w-1.5 rounded-full",!c&&l>0&&"animate-pulse"),style:{background:l>0?d:"color-mix(in srgb, var(--foreground) 20%, transparent)"}}),m.length?`${m.length} of ${h} slots`:"waiting for a reading"]})]}),e.jsx("div",{className:"flex h-10 items-end gap-[2px]",role:"img","aria-label":`${r}: ${l}`,children:n.map((f,b)=>{const w=f==null?0:Math.max(2,f/g*40);return e.jsx("span",{className:"min-w-0 flex-1 rounded-[1.5px]",style:f==null?{height:2,background:"color-mix(in srgb, var(--foreground) 6%, transparent)"}:{height:w,background:`color-mix(in srgb, ${d} ${f===0?20:85}%, transparent)`,transition:c?void 0:"height 400ms cubic-bezier(0.16,1,0.3,1)"}},b)})})]})}const le=[.16,1,.3,1],Pe=[{icon:he,label:"Overview"},{icon:ge,label:"Trends"},{icon:W,label:"Queries"},{icon:fe,label:"Health"},{icon:be,label:"Technical"}];function _e(){var E,G,z;const s=F(),[h,r]=v.useState("search"),[d,x]=v.useState(""),[c,n]=v.useState("all"),[u,i]=v.useState("impressions"),[m,g]=v.useState(void 0),[l,f]=v.useState(0),b=ke,w=b.map(a=>a.impressions??0),M=b.map(a=>a.clicks??0),B=b.map(a=>a.visitors??0),C=Math.floor(b.length/2),A=v.useMemo(()=>{const a=w.slice(C),y=w.slice(0,C).slice(-a.length);return{current:a,past:y,labels:b.slice(C).map(Z=>Z.date)}},[b,C,w]),L=we(b),j=te(b.filter(a=>!se(a.date)),"clicks"),t=te(b.filter(a=>!se(a.date)),"impressions"),o=v.useMemo(()=>{const a=b.length-l*7;return b.slice(Math.max(0,a-7),a).map(y=>({date:y.date,value:y.impressions??0}))},[b,l]),p=K[0]??Me[0],R=v.useMemo(()=>{const a=re.filter($=>c==="striking"?K.some(O=>O.label===$.label):c==="zero"?$.clicks===0&&$.impressions>0:!0),y=d.trim().toLowerCase();return[...y?a.filter($=>$.label.toLowerCase().includes(y)):a].sort(($,O)=>u==="position"?$.position-O.position:O[u]-$[u])},[d,c,u]),S=[{id:"gsc",mark:e.jsx(_,{className:"h-4 w-4"}),title:"Search Console",meta:`through ${((E=Y[2])==null?void 0:E.through)??"—"}`,status:V.provisional.length?`${V.provisional.length} provisional`:"final",tone:V.provisional.length?"warn":"ok"},{id:"ga",mark:e.jsx(X,{className:"h-4 w-4"}),title:"Google Analytics",meta:`${k.int(P.sessions)} sessions · ${P.keyEvents} key events`,status:D.activeUsers!=null?`${D.activeUsers} live`:"no realtime",tone:D.activeUsers?"ok":"muted"},{id:"vercel",mark:e.jsx("span",{className:"text-[13px] leading-none",children:"▲"}),title:"Vercel Analytics",meta:`${k.int(I.visitors)} visitors · ${k.int(I.pageviews)} views`,status:"near live",tone:"ok"},{id:"bing",mark:e.jsx("span",{className:"text-[11px] font-semibold leading-none",children:"b"}),title:"Bing Webmaster",meta:`${H.impressions} impressions · ${H.clicks} clicks`,status:H.impressions?"reporting":"no data",tone:H.impressions?"ok":"muted"}];return e.jsx("div",{className:"min-h-screen bg-background text-foreground",children:e.jsxs("div",{className:"mx-auto flex w-full max-w-[1400px] gap-5 px-4 py-5 lg:px-6",children:[e.jsxs("nav",{"aria-label":"Sections",className:"sticky top-5 hidden h-[calc(100vh-2.5rem)] w-14 shrink-0 flex-col items-center gap-1 rounded-2xl border border-foreground
1/[0.05] py-4 lg:flex",style:{background:"var(--card)"},children:[e.jsx("span",{"aria-hidden":!0,className:"mb-3 flex h-7 w-7 items-center justify-center rounded-lg",style:{background:"var(--chart-1)"},children:e.jsx("span",{className:"text-[11px] font-bold text-white",children:"S"})}),Pe.map((a,y)=>e.jsx("button",{type:"button",title:a.label,"aria-label":a.label,className:N("flex h-9 w-9 items-center justify-center rounded-lg transition-colors",y===0?"bg-foreground/[0.07] text-foreground/85":"text-foreground/30 hover:bg-foreground/[0.04] hover:text-foreground/70"),children:e.jsx(a.icon,{className:"h-4 w-4"})},a.label)),e.jsx("span",{className:"mt-auto flex flex-col items-center gap-1",children:e.jsx("button",{type:"button","aria-label":"Settings",className:"flex h-9 w-9 items-center justify-center rounded-lg text-foreground/30 transition-colors hover:bg-foreground/[0.04] hover:text-foreground/70",children:e.jsx(ve,{className:"h-4 w-4"})})})]}),e.jsxs("main",{className:"min-w-0 flex-1",children:[e.jsxs("header",{className:"flex flex-wrap items-start justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-[20px] font-semibold tracking-[-0.02em] text-foreground/95",children:"SEO analytics"}),e.jsxs("p",{className:"mt-0.5 text-[12.5px] text-foreground/40",children:[ae.replace(/^https?:\/\//,"").replace(/\/$/,"")," · ",J.since," → ",J.until]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"hidden items-center gap-2 rounded-lg border border-foreground
1/[0.06] px-2.5 py-2 text-[12px] text-foreground/40 sm:inline-flex",children:[e.jsx(W,{className:"h-3.5 w-3.5"}),"Search queries",e.jsx("kbd",{className:"ml-6 rounded border border-foreground/[0.08] px-1.5 py-0.5 text-[10px] text-foreground/35",children:"⌘K"})]}),D.activeUsers!=null&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-lg border border-foreground/[0.06] px-2.5 py-2 text-[12px] text-foreground/60",children:[e.jsx("span",{"aria-hidden":!0,className:"h-1.5 w-1.5 animate-pulse rounded-full",style:{background:"var(--chart-up)"}}),e.jsx("span",{className:"tabular-nums text-foreground/85",children:D.activeUsers})," live"]}),e.jsxs("button",{type:"button","aria-label":"Alerts",className:"relative rounded-lg border border-foreground/[0.06] p-2 text-foreground/50 transition-colors hover:text-foreground/80",children:[e.jsx(Ne,{className:"h-4 w-4"}),P.keyEvents===0&&e.jsx("span",{"aria-hidden":!0,className:"absolute right-1.5 top-1.5 h-1.5 w-1.5 rounded-full",style:{background:"var(--chart-down)"}})]}),e.jsxs("a",{href:"https://search.google.com/search-console",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-lg px-2.5 py-2 text-[12px] font-medium text-[#5aaaff] transition-colors hover:bg-[#5aaaff]/[0.08]",children:["Console ",e.jsx(je,{className:"h-3.5 w-3.5"})]})]})]}),e.jsxs(U.div,{initial:s?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:s?{duration:0}:{duration:.4,ease:le},className:"mt-5 flex flex-col gap-4",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[e.jsx(Q,{label:"Impressions",value:k.int(L.impressions),delta:t.fromZero?`+${t.absolute}`:`${t.absolute>0?"+":""}${t.absolute}`,deltaPct:t.fromZero?void 0:k.signed(t.delta),up:t.up,series:w,tint:"var(--chart-1)",caption:"Search Console · times a page of yours was shown"}),e.jsx(Q,{label:"Clicks",value:k.int(L.clicks),delta:j.fromZero?`+${j.absolute}`:`${j.absolute>0?"+":""}${j.absolute}`,deltaPct:j.fromZero?void 0:k.signed(j.delta),up:j.up,series:M,tint:"var(--chart-2)",caption:`Search Console · ${(L.impressions?L.clicks/L.impressions*100:0).toFixed(2)}% of impressions`}),e.jsx(Q,{label:"Visitors",value:k.int(I.visitors),delta:`${k.int(I.pageviews)} views`,series:B,tint:"var(--chart-4)",caption:"Vercel · every arrival, not only from search"})]}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[240px_minmax(0,1fr)_300px]",children:[e.jsxs("div",{className:"flex h-full flex-col gap-3 rounded-xl border border-foreground
1/[0.05] p-3",style:{background:"var(--card)"},children:[e.jsx(Ee,{days:o,selected:m,onSelect:g,onPage:a=>f(y=>Math.max(0,y-a))}),p?e.jsx(Ie,{eyebrow:p.label,title:`position ${k.pos(p.position)} · ${k.int(p.impressions)} impressions`,subtitle:"Ranks on page one or close to it and earns no clicks. A sharper title and description moves this before any link does.",mark:e.jsx(W,{className:"h-3.5 w-3.5"}),action:{label:"Open",href:"https://search.google.com/search-console"},footNote:J.until}):e.jsx(ee,{title:"Nothing in striking distance",hint:"No query sits between position 5 and 20 with impressions.",action:null}),e.jsx("div",{className:"mt-auto rounded-lg border border-foreground/[0.05] px-3 py-2 text-[11px] leading-relaxed text-foreground/35",children:"Day shading is that day’s impressions against the week’s best."})]}),e.jsxs("section",{className:"flex h-full flex-col overflow-hidden rounded-xl border border-foreground/[0.05] p-4",style:{background:"var(--card)"},children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-[14px] font-medium text-foreground/90",children:"Search demand over time"}),e.jsxs("p",{className:"mt-0.5 text-[11.5px] text-foreground/40",children:["The most recent ",A.current.length," days against the ",A.past.length," before them"]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-[22px] font-semibold tabular-nums leading-none tracking-[-0.02em] text-foreground/95",children:k.int(A.current.reduce((a,y)=>a+y,0))}),e.jsx("div",{className:"mt-1 text-[11px] text-foreground/35",children:"impressions this period"})]})]}),e.jsx("div",{className:"mt-4 flex flex-1 items-center",children:e.jsx(Te,{className:"w-full",height:300,series:[{label:"This period",values:A.current,tint:"var(--chart-1)"},{label:"Period before",values:A.past,tint:"var(--chart-4)"}],labels:A.labels,format:a=>k.int(Math.round(a))})})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(Oe,{active:h,onSelect:r,action:{label:"Open",href:"https://search.google.com/search-console"},faces:[{id:"search",label:"Search",identifier:ae.replace(/^https?:\/\//,"").replace(/\/$/,""),holder:"Search Console property",holderL
1abel:"Verified property",verified:!0,through:(G=Y[2])==null?void 0:G.through,mark:e.jsx(_,{className:"h-5 w-5"}),tint:"var(--chart-1)"},{id:"analytics",label:"Analytics",identifier:`GA4 · ${k.int(P.users)} users`,holder:"Google Analytics property",holderLabel:"Measurement",verified:!0,through:(z=Y[1])==null?void 0:z.through,mark:e.jsx(X,{className:"h-5 w-5"}),tint:"var(--chart-4)"}]}),e.jsxs("section",{className:"rounded-xl border border-foreground/[0.05] p-3",style:{background:"var(--card)"},children:[e.jsxs("div",{className:"mb-3 flex items-baseline justify-between px-0.5",children:[e.jsx("h2",{className:"text-[13px] font-medium text-foreground/85",children:"Sources"}),e.jsx("span",{className:"text-[10.5px] text-foreground/30",children:"what fed this page"})]}),e.jsx(Ge,{rows:S})]})]})]}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,1fr)_300px]",children:[e.jsxs("section",{className:"overflow-hidden rounded-xl border border-foreground/[0.05] p-4",style:{background:"var(--card)"},children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[e.jsx("h2",{className:"text-[14px] font-medium text-foreground/90",children:"Where visits come from"}),e.jsxs("span",{className:"text-[10.5px] text-foreground/30",children:["Vercel · ",I.countries.length," countries"]})]}),e.jsx(Fe,{className:"mt-2",data:I.countries.map(a=>({code:a.code,value:a.visitors})),nameFor:a=>Ae(a),unit:"visitors"})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("section",{className:"rounded-xl border border-foreground
1/[0.05] p-4",style:{background:"var(--card)"},children:[e.jsx(Ze,{value:D.activeUsers,label:"active in the last 30 min"}),e.jsx("p",{className:"mt-3 text-[10.5px] leading-relaxed text-foreground/30",children:"GA4 realtime. The strip fills as readings arrive; hollow slots are minutes nobody was watching, not minutes nobody was here."})]}),e.jsxs("section",{className:"rounded-xl border border-foreground/[0.05] p-4",style:{background:"var(--card)"},children:[e.jsxs("div",{className:"mb-3 flex items-baseline justify-between gap-3",children:[e.jsx("h2",{className:"text-[13px] font-medium text-foreground/85",children:"Traffic mix"}),e.jsxs("span",{className:"text-[10.5px] text-foreground/30",children:[k.int(T.platform+T.search+T.ai+T.internal+T.other)," ","with a referrer"]})]}),e.jsx(ye,{segments:[{label:"Platforms",value:T.platform,tint:"var(--chart-1)"},{label:"Search",value:T.search,tint:"var(--chart-2)"},{label:"AI assistants",value:T.ai,tint:"var(--chart-4)"},{label:"Own tooling",value:T.internal,tint:"var(--chart-5)"},{label:"Other",value:T.other,tint:"var(--chart-3)"}]})]})]})]}),e.jsxs("section",{className:"overflow-hidden rounded-xl border border-foreground
1/[0.05]",style:{background:"var(--card)"},children:[e.jsx("div",{className:"border-b border-foreground/[0.04] p-3",children:e.jsx(De,{query:d,onQuery:x,placeholder:"Search queries",filter:c,onFilter:a=>n(a),filters:[{id:"all",label:"All queries"},{id:"striking",label:"Striking distance"},{id:"zero",label:"Zero click"}],sort:u,onSort:a=>i(a),sorts:[{id:"impressions",label:"Impressions"},{id:"clicks",label:"Clicks"},{id:"position",label:"Position"}],action:e.jsxs("span",{className:"rounded-lg border border-foreground/[0.06] px-2.5 py-2 text-[12px] tabular-nums text-foreground/40",children:[R.length," of ",re.length]})})}),R.length?e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full border-collapse",children:[e.jsx("thead",{children:e.jsx("tr",{className:"border-b border-foreground/[0.04]",children:["Query","Clicks","Impressions","CTR","Position","Read"].map((a,y)=>e.jsx("th",{className:N("px-4 py-2.5 text-[10px] uppercase tracking-[0.1em] font-normal text-foreground/30",y===0||y===5?"text-left":"text-right"),children:a},a))})}),e.jsx("tbody",{children:R.map((a,y)=>{const Z=K.some(O=>O.label===a.label),$=a.position<=10?"var(--chart-up)":a.position<=20?"var(--chart-4)":"var(--chart-down)";return e.jsxs(U.tr,{initial:s?!1:{opacity:0},animate:{opacity:1},transition:s?{duration:0}:{duration:.25,ease:le,delay:Math.min(y,12)*.02}
1,className:"border-b border-foreground/[0.03] last:border-0",children:[e.jsx("td",{className:"truncate px-4 py-3 text-[12.5px] text-foreground/85",children:a.label}),e.jsx("td",{className:"px-4 py-3 text-right text-[12px] tabular-nums text-foreground/70",children:a.clicks}),e.jsx("td",{className:"px-4 py-3 text-right text-[12px] tabular-nums text-foreground/70",children:k.int(a.impressions)}),e.jsxs("td",{className:"px-4 py-3 text-right text-[12px] tabular-nums text-foreground/45",children:[a.ctr.toFixed(1),"%"]}),e.jsx("td",{className:"px-4 py-3 text-right",children:e.jsx("span",{className:"inline-block rounded-md px-1.5 py-0.5 text-[11.5px] font-semibold tabular-nums",style:{color:$,background:`color-mix(in srgb, ${$} 12%, transparent)`},children:k.pos(a.position)})}),e.jsx("td",{className:"px-4 py-3 text-left text-[11.5px] text-foreground/40",children:a.clicks===0&&Z?"Ranks, never clicked — rewrite the title":a.clicks===0?"Shown, never clicked":`${a.clicks} of ${k.int(a.impressions)} converted`})]},a.label)})})]})}):e.jsx("div",{className:"px-4 py-12",children:e.jsx(ee,{title:"No query matches",hint:"Nothing in this window matches that search and filter.",action:null})})]}),e.jsxs("p",{className:"pb-2 text-[11px] text-foreground/25",children:["Real snapshot from seo-data/latest.json · pulled ",Se.slice(0,10)," · Google withholds long-tail queries, so the table is a floor, never a total."]})]})]})]})})}export{_e 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.