1import{w as i}from"./CsqlTh7o.js";const c=(t,e)=>{if(!Array.isArray(e)||e.length===0)return[t.url];const a=[];let n=t;const s=new Set;for(;n&&!(s.has(n.id)||(s.add(n.id),a.unshift(n.url),n.isPrimary)||n.parent==null);){const r=n.parent,o=e.find(u=>u.id===r);if(!o)break;n=o}return a},d=(t,e)=>{const a="/shop",n=c(t,e);return`${a}/${n.join("/")}`},$=(t,e)=>{const a="/shop",n=c(t,e),s=`${a}/${n.join("/")}`;return i(s,!0)},l=(t,e)=>{const a="/shop",n=e.find(o=>o.id===t.classification.canonical_category);if(!n)return`${a}/items/${t.content.url}/${t.sku}`;const s=c(n,e),r=s.length>0?`/${s.join("/")}`:"";return`${a}${r}/items/${t.content.url}/${t.sku}`},h=(t,e)=>l(t,e),f=(t,e)=>i(h(t,e),!0);export{f as a,$ as b,d as c,h as g};
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.