1async function lineItemCheck(){var b=await fetch(window.theme.localeRootUrl+"/cart.js").then(b=>b.json()).then(b=>b);let d={};for(let e in b.items.forEach(b=>{b.properties._bundle_reference&&(d[b.properties._bundle_reference]={quantity:b.quantity,correctionKeys:[]}),"KS Bundle"===b.product_type&&!1===Object.keys(b.properties).includes("_bundle_reference")&&0===b.price&&updateItemQuantity([b.key]),"kiara-sky-package-protection"===b.handle&&1<b.quantity&&updateItemQuantity([b.key],1)}),b.items.forEach(b=>{let a=b.properties._custom_bundle_id||b.properties._bundle_id;a&&b.quantity!==d[a].quantity&&d[b.properties._bundle_id].correctionKeys.push(b.key)}),d){const b=d[e].correctionKeys;0<b.length&&updateItemQuantity(b,d[e].quantity)}}lineItemCheck();async function updateItemQuantity(b,e=0){let c={};b.forEach(b=>{c[b]=e}),await fetch(window.theme.localeRootUrl+"/cart/update.js",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({updates:c})}).then(b=>{b.ok?document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})):console.error("Error updating item in cart.")})}
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.