1let subscribers={};function subscribe(eventName,callback){return subscribers[eventName]===void 0&&(subscribers[eventName]=[]),subscribers[eventName]=[...subscribers[eventName],callback],function(){subscribers[eventName]=subscribers[eventName].filter(cb=>cb!==callback)}}function publish(eventName,data){subscribers[eventName]&&subscribers[eventName].forEach(callback=>{callback(data)})}const PUB_SUB_EVENTS={cartUpdate:"cart:update",cartItemAdd:"cart:item-add",cartError:"cart:error",quantityUpdate:"quantity-update",productVariantChange:"product:variant-change",sectionRefreshed:"section-refreshed",compareAdd:"compare:add",compareRemove:"compare:remove",compareUrlUpdated:"compare:url-updated",compareClear:"compare:clear"}; 2//# sourceMappingURL=/cdn/shop/t/7/assets/pubsub.js.map?v=73917151684401660251769093381
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.