1(function(){'use strict';function openAi(query){if(typeof window.bfOpenAlgoliaAskAi==='function'){window.bfOpenAlgoliaAskAi({initialQuery:query||''})}else{console.warn('[bf] Ask AI opener not available; cannot open AI Mode.')}} 2function initContainer(root){if(!root||root.dataset.bfAiBound==='1'){return} 3root.dataset.bfAiBound='1';const input=root.querySelector('.bf-ai-search__input');const aiButton=root.querySelector('.bf-ai-search__ai-btn');if(aiButton){aiButton.addEventListener('click',function(e){e.preventDefault();openAi(input?input.value:'')})} 4const items=root.querySelectorAll('.bf-ai-search__item');Array.prototype.forEach.call(items,function(item){item.addEventListener('click',function(e){e.preventDefault();let query=item.getAttribute('data-query');if(null===query){query=(item.textContent||'').trim()} 5openAi(query)})})} 6function init(){const roots=document.querySelectorAll('.bf-ai-search');Array.prototype.forEach.call(roots,initContainer)} 7if('loading'===document.readyState){document.addEventListener('DOMContentLoaded',init)}else{init()} 8window.bfAiSearchInit=init})()
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.