1const c=["IN","US","GB","AU","SG","ZA","CA"];function u(t){if(typeof t!="string")return null;const e=t.trim().toUpperCase();return e?c.includes(e)?e:"OTHER":null}function a(t,e){const o=u(t);return o&&o!=="OTHER"?o===e:!0}const s=["neet-ug","jee-main","jee-advanced"];function m(t){const o=(Array.isArray(t)?t:Array.isArray(t==null?void 0:t.exams)?t.exams:[]).filter(r=>r&&typeof r.code=="string"&&r.code.trim()).map(r=>{const n=r.code.trim().toLowerCase();return{...r,code:n,name:typeof r.name=="string"&&r.name.trim()?r.name.trim():n}}),i=r=>{const n=s.indexOf(r);return n===-1?s.length:n};return o.map((r,n)=>({row:r,i:n})).sort((r,n)=>i(r.row.code)-i(n.row.code)||r.i-n.i).map(({row:r})=>r)}function f(t,e){const o=m(t);if(!o.length)return null;const i=typeof e=="string"?e.trim().toLowerCase():"";return o.find(r=>r.code===i)||o[0]}export{a,u as n,f as p,m as r};
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.