1import{S as t,T as n}from"./BCaxyncK.js";import{s,i as u,g as E}from"./D4U6knPx.js";const g=[{matchingDomain:"facebook.com",urlType:t.FACEBOOK},{matchingDomain:"youtube.com",urlType:t.YOUTUBE},{matchingDomain:"tiktok.com",urlType:t.TIKTOK},{matchingDomain:"twitter.com",urlType:t.TWITTER},{matchingDomain:"linkedin.com",urlType:t.LINKEDIN},{matchingDomain:"instagram.com",urlType:t.INSTAGRAM},{matchingDomain:"telegram.org",urlType:t.TELEGRAM},{matchingDomain:"weibo.com",urlType:t.WEIBO},{matchingDomain:"wechat.com",urlType:t.WECHAT},{matchingDomain:"vk.com",urlType:t.VK},{matchingDomain:"bilibili.com",urlType:t.BILIBILI},{matchingDomain:"yammer.com",urlType:t.YAMMER}];function y(e){return g.find(({matchingDomain:o})=>e.hostname.startsWith(o)||e.hostname.includes(`.${o}`))?.urlType}function I(e){return e.map(o=>`.${o}`)}function O(e){return e.map(o=>`${o}:`)}const l={[n.PHONE]:["tel"],[n.MAIL]:["mailto"]},r={[n.DOCUMENT]:["csv"],[n.WORD_DOCUMENT]:["doc","docx"],[n.IMAGE]:["png","jpg","gif","webp"],[n.IMAGE_ONLY]:["png","jpg","jpeg","webp"],[n.CALENDAR]:["ics"],[n.PDF]:["pdf"],[n.POWER_POINT_PRESENTATION]:["ppt","pptx"],[n.EXCEL_DOCUMENT]:["xls","xlsx"],[n.ARCHIVE]:["zip"]},D=e=>r.imageonly&&r.imageonly.some(o=>e&&e.endsWith(o));function d(e,o){if(typeof e!="string"||!e)return n.UNKNOWN;const i=new URL(e,o),m=Object.keys(r).find(c=>s(i.pathname,"endsWith")(...I(r[c])));if(m)return m;if(u(i,o))return n.INTERNAL;const a=Object.keys(l).find(c=>O(l[c]).some(T=>i.protocol===T));if(a)return a;const p=y(i);return p||n.EXTERNAL}const f={archive:"document-zip",excel:"document-xls",external:"link-extern",internal:"chevron-right",mail:"email",pdf:"document-pdf",powerpoint:"document-ppt",word:"document-doc"};function h(e){return f[e]||e}function U(e,o=E()){const i=d(e,o);return i===n.UNKNOWN?null:h(i)}export{U as g,D as i};
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.