PageSourceSearch

https://statics.kimi.ai/kimi-web-seo/assets/ref-B5r36pIE.js

js kimi.ai collected 2026-09-24 15:17:42 UTC 1,421 bytes, 3 lines download raw bytes

1/*! pre,oversea,71bf6a18,2026-09-24 09:50:50 */
2import{M as Reference_Type}from"./chat_status_pb-DDjMP2KJ.js";import"./kimi.editor-OfKJcZBB.js";function getProductRefList(productInfo,productId){var _productInfo$find$pro,_productInfo$find;return null!==(_productInfo$find$pro=null===(_productInfo$find=productInfo.find(({id:id})=>id===productId))||void 0===_productInfo$find?void 0:_productInfo$find.products)&&void 0!==_productInfo$find$pro?_productInfo$find$pro:[]}function getInsertImageRefList(imageList,imageId){const images=imageList.filter(image=>image.id===imageId),seen=new Set;return images.reverse().filter(image=>!seen.has(image.id)&&(seen.add(image.id),!0)).reverse()}function getCitesFromReferences(references){return references.map(reference=>reference.type===Reference_Type.CITE?reference.items.map(item=>{if("search"===item.content.case)return item.content.value}).filter(item=>!!item):[]).flat()}function replacePUARefContent(text,references){const matchedTexts=references?new Set(references.map(reference=>reference.matchedText)):void 0;return text.replace(/<REF>[^]*?<\/REF>|&lt;REF&gt;[^]*?&lt;\/REF&gt;|\uE3A0[^\uE3A0\uE3A8]+\uE3A8|\u241D[^\u241D\u241E]+\u241E/g,match=>matchedTexts&&match.startsWith("<REF>")?matchedTexts.has(match)?"":match:"")}export{replacePUARefContent as i,getInsertImageRefList as n,getProductRefList as r,getCitesFromReferences as t};
3//# sourceMappingURL=ref-B5r36pIE.js.map

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.