1function u(e,o){for(const n of e){if(n.code===o)return n;if(n.children?.length){const r=u(n.children,o);if(r)return r}}return null}function d(e,o){function n(r,t){for(const c of r){const s=[...t,c];if(c.code===o)return s;if(c.children?.length){const i=n(c.children,s);if(i)return i}}return null}return n(e,[])??[]}const p=[{value:"popular",label:"ÐопÑлÑÑнÑе"},{value:"price_asc",label:"СнаÑала деÑевле"},{value:"price_desc",label:"СнаÑала доÑоже"},{value:"name",label:"Ðо названиÑ"},{value:"new",label:"СнаÑала новÑе"}],a="popular",l={popular:{sort:"popular",field:"popular",order:"desc"},price_asc:{sort:"price_asc",field:"price",order:"asc"},price_desc:{sort:"price_desc",field:"price",order:"desc"},name:{sort:"name",field:"name",order:"asc"},new:{sort:"new",field:"new",order:"desc"}};function h(e){return l[e]??l[a]}function g(e){return typeof e=="string"&&e in l?e:a}function _(e,o){const n=Object.keys(o).sort().reduce((r,t)=>(r[t]=o[t],r),{});return`${e}:${JSON.stringify(n)}`}function f(e){return!!e?.children?.length}function O(e,o){const n=d(e,o);if(!n.length)return[];const r=n.map(t=>t.code);return f(n[n.length-1])?r:r.slice(0,-1)}export{p as S,_ as a,d as c,O as e,u as f,g as n,h 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.