1import{j as n}from"./vendor-markdown-Daxr8BJC.js";import{r as m}from"./vendor-charts-qvx8-m0G.js";import{a8 as h}from"./index-DomUViA2.js";const i={classlink:"classlink.com",clever:"clever.com",canvas:"instructure.com",instructure:"instructure.com",schoology:"schoology.com","google classroom":"classroom.google.com","google workspace":"google.com","google drive":"drive.google.com","google docs":"docs.google.com",youtube:"youtube.com",ixl:"ixl.com","khan academy":"khanacademy.org",quizlet:"quizlet.com",kahoot:"kahoot.com",nearpod:"nearpod.com","pear deck":"peardeck.com",edpuzzle:"edpuzzle.com",seesaw:"seesaw.me",classdojo:"classdojo.com","i-ready":"curriculumassociates.com",iready:"curriculumassociates.com","curriculum associates":"curriculumassociates.com",dreambox:"dreambox.com","st math":"stmath.com",lexia:"lexialearning.com","read 180":"hmhco.com",hmh:"hmhco.com","houghton mifflin":"hmhco.com",mcgrawhill:"mheducation.com","mcgraw hill":"mheducation.com",pearson:"pearson.com",savvas:"savvas.com",newsela:"newsela.com",brainpop:"brainpop.com",epic:"getepic.com","raz-kids":"raz-kids.com","learning a-z":"learninga-z.com",renaissance:"renaissance.com","accelerated reader":"renaissance.com","star reading":"renaissance.com",nwea:"nwea.org",map:"nwea.org",edgenuity:"edgenuity.com",imagine:"imaginelearning.com","imagine learning":"imaginelearning.com","study island":"edmentum.com",edmentum:"edmentum.com",powerschool:"powerschool.com",infinitecampus:"infinitecampus.com","infinite campus":"infinitecampus.com",skyward:"skyward.com",frontline:"frontlineeducation.com","microsoft teams":"microsoft.com",microsoft:"microsoft.com",office:"office.com",onedrive:"onedrive.com",zoom:"zoom.us",canva:"canva.com",flip:"flip.com",wevideo:"wevideo.com",screencastify:"screencastify.com","adobe express":"adobe.com",adobe:"adobe.com","code.org":"code.org",scratch:"scratch.mit.edu",typing:"typing.com","typing.com":"typing.com",duolingo:"duolingo.com",rosettastone:"rosettastone.com",desmos:"desmos.com",geogebra:"geogebra.org",gizmos:"explorelearning.com","explore learning":"explorelearning.com",discoveryeducation:"discoveryeducation.com","discovery education":"discoveryeducation.com",gimkit:"gimkit.com",blooket:"blooket.com",wordwall:"wordwall.net",padlet:"padlet.com","book creator":"bookcreator.com",goguardian:"goguardian.com",securly:"securly.com",lightspeed:"lightspeedsystems.com",hapara:"hapara.com",clarity:"lightspeedsystems.com",naviance:"powerschool.com","college board":"collegeboard.org",khanmigo:"khanmigo.ai",chatgpt:"openai.com",openai:"openai.com",gemini:"gemini.google.com",wikipedia:"wikipedia.org"};function l(e){if(!e)return null;let o=String(e).trim().toLowerCase();if(!o||o==="n/a")return null;o=o.replace(/^\*+\.?/,"").replace(/[*^$]/g,""),/^https?:\/\//.test(o)||(o=`https://${o}`);try{const r=new URL(o).hostname.replace(/^www\./,"");return r.includes(".")?r:null}catch{return null}}function f(e){if(!e)return null;const o=e.trim().toLowerCase();if(!o)return null;if(i[o])return i[o];for(const[c,t]of Object.entries(i))if(o===c||o.startsWith(`${c} `)||o.includes(c))return t;const r=o.replace(/[^a-z0-9]/g,"");return r.length<3?null:`${r}.com`}function w(e){return l(e.url)??l(e.urlPattern)??f(e.name)}function y(e,o=64){return[`https://icons.duckduckgo.com/ip3/${e}.ico`,`https://www.google.com/s2/favicons?domain=${e}&sz=${o>=64?128:64}`]}function k(e){if(!e)return"?";const o=e.trim().split(/\s+/).filter(Boolean);return o.length===0?"?":o.length===1?o[0].slice(0,2).toUpperCase():(o[0][0]+o[1][0]).toUpperCase()}const z=({name:e,url:o,urlPattern:r,size:c=40,className:t,fallbackText:u})=>{const d=m.useMemo(()=>{const a=w({name:e,url:o,urlPattern:r});return a?y(a,c*2):[]},[e,o,r,c]),[g,p]=m.useState(0),s=d[g];return n.jsx("div",{className:h("flex shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted ring-1 ring-border",t),style:{width:c,height:c},children:s?n.jsx("img",{src:s,alt:`${e??"Software"} logo`,loading:"lazy",width:c,height:c,className:"h-full w-full object-contain p-1",onError:()=>p(a=>a+1)}):n.jsx("span",{className:"font-semibold text-muted-foreground",style:{fontSize:Math.max(10,Math.round(c*.36))},children:u||k(e)})})};export{z as S};
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.