@customize-agent/server 3.0.23 → 3.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +15 -15
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/chunks/3445.js +9 -3
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/api/kb/files.js +1 -1
- package/.next/server/pages/api/kb/upload.js +1 -1
- package/.next/server/pages/asset-library.html +1 -1
- package/.next/server/pages/context/long-term.html +1 -1
- package/.next/server/pages/context/short-term.html +1 -1
- package/.next/server/pages/document-roles.html +1 -1
- package/.next/server/pages/document-specs.html +1 -1
- package/.next/server/pages/documents.html +1 -1
- package/.next/server/pages/guide.html +1 -1
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/knowledge/file-detail.html +1 -1
- package/.next/server/pages/knowledge/files.html +1 -1
- package/.next/server/pages/knowledge/manage.html +1 -1
- package/.next/server/pages/knowledge/search.html +1 -1
- package/.next/server/pages/knowledge.html +1 -1
- package/.next/server/pages/models.html +1 -1
- package/.next/server/pages/overview.html +1 -1
- package/.next/server/pages/prompt.html +1 -1
- package/.next/server/pages/settings.html +1 -1
- package/.next/server/pages/system/logs.html +1 -1
- package/.next/server/pages-manifest.json +24 -24
- package/.next/static/{acY08PnMrDcIVFltevLF9 → 9lT-MKItAjeYclPEKmH8G}/_buildManifest.js +1 -1
- package/.next/static/chunks/pages/{asset-library-2002e65d3419a283.js → asset-library-764f3ad063f40fff.js} +1 -1
- package/.next/static/chunks/pages/context/long-term-3b59c9386df2b218.js +1 -0
- package/.next/static/chunks/pages/context/short-term-b1ab1b56112896bf.js +1 -0
- package/.next/static/chunks/pages/{document-roles-fce52968e35419ef.js → document-roles-0288a3e6e00e6e02.js} +1 -1
- package/.next/static/chunks/pages/{document-specs-24821e43bffa0690.js → document-specs-e2337e693c352897.js} +1 -1
- package/.next/static/chunks/pages/documents-cd370a6de9223124.js +1 -0
- package/.next/static/chunks/pages/knowledge/file-detail-9d493b7de07860dc.js +1 -0
- package/.next/static/chunks/pages/knowledge/files-f15c37b88e8329b9.js +1 -0
- package/.next/static/chunks/pages/knowledge/manage-1e8b62ae3c336814.js +1 -0
- package/.next/static/chunks/pages/knowledge/search-50b40e01b826e035.js +1 -0
- package/.next/static/chunks/pages/{models-b8a5b97f6f7c65e1.js → models-58d14888232c7212.js} +1 -1
- package/.next/static/chunks/pages/{prompt-6b34d9f306b1221e.js → prompt-ecb8772b12e5a7e0.js} +1 -1
- package/.next/static/chunks/pages/system/{logs-37b0989401612947.js → logs-7a90a654d4931f5f.js} +1 -1
- package/package.json +2 -2
- package/.next/static/chunks/pages/context/long-term-cb71be058707d986.js +0 -1
- package/.next/static/chunks/pages/context/short-term-a0ea0ce1af223037.js +0 -1
- package/.next/static/chunks/pages/documents-9808d8521057534a.js +0 -1
- package/.next/static/chunks/pages/knowledge/file-detail-a468c2ca1ebe8a0a.js +0 -1
- package/.next/static/chunks/pages/knowledge/files-49cdd7599936e9f4.js +0 -1
- package/.next/static/chunks/pages/knowledge/manage-92e84aa445ce8f03.js +0 -1
- package/.next/static/chunks/pages/knowledge/search-41baae99bb6baf15.js +0 -1
- /package/.next/static/{acY08PnMrDcIVFltevLF9 → 9lT-MKItAjeYclPEKmH8G}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9028],{14569:e=>{e.exports={featureLabel:"style_featureLabel__XFSTX",featureValue:"style_featureValue__I_wMP",filterInput:"style_filterInput__4_Elu",filterSelect:"style_filterSelect__vUBJ9",statusPanel:"style_statusPanel__9arTu",statusPanelHeader:"style_statusPanelHeader__nKv1I",statusEmpty:"style_statusEmpty__8LWzH",statusList:"style_statusList__FpNgC",statusItem:"style_statusItem__uzO80",statusHeader:"style_statusHeader__o9q_b",statusDesc:"style_statusDesc__XiWFa",statusPath:"style_statusPath__Udxvv",statusMeta:"style_statusMeta__XukHt",searchResultList:"style_searchResultList__cVKZg",searchResultItem:"style_searchResultItem__boj6D",searchResultHeader:"style_searchResultHeader__meVdJ",searchContent:"style_searchContent__XbUVk",pdfPreviewStrip:"style_pdfPreviewStrip__94_eG",drawingPreview:"style_drawingPreview__lkk_L"}},23793:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}},25258:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var s=a(51541),r=a(61848),l=a(1249),n=a(97109),i=a(72658),c=a(3638),o=a(92162),d=a(82725),u=a(74567),h=a(632),p=a(49517),f=a(79412),y=a(19527);let g=(0,d.U)(e=>{let{prefixCls:t,className:a,closeIcon:s,closable:r,type:l,title:d,children:g,footer:x,classNames:m,styles:v,..._}=e,{getPrefixCls:w}=n.useContext(u.QO),{className:j,style:A,classNames:k,styles:b}=(0,u.TP)("modal"),C=w(),P=t||w("modal"),N=(0,h.A)(C),[S,I]=(0,y.Ay)(P,N),[L,E]=(0,o.AV)([k,m],[b,v],{props:e}),M=`${P}-confirm`,z={};return z=l?{closable:r??!1,title:"",footer:"",children:n.createElement(p.k,{...e,prefixCls:P,confirmPrefixCls:M,rootPrefixCls:C,content:g})}:{closable:r??!0,title:d,footer:null!==x&&n.createElement(f.w,{...e}),children:g},n.createElement(i.Z,{prefixCls:P,className:(0,c.$)(S,`${P}-pure-panel`,l&&M,l&&`${M}-${l}`,a,j,I,N,L.root),style:{...A,...E.root},..._,closeIcon:(0,f.O)(P,s),closable:r,classNames:L,styles:E,...z})});var x=a(99739);function m(e){return(0,s.Ay)((0,s.fp)(e))}let v=l.A;v.useModal=x.A,v.info=function(e){return(0,s.Ay)((0,s.$D)(e))},v.success=function(e){return(0,s.Ay)((0,s.Ej)(e))},v.error=function(e){return(0,s.Ay)((0,s.jT)(e))},v.warning=m,v.warn=m,v.confirm=function(e){return(0,s.Ay)((0,s.lr)(e))},v.destroyAll=function(){for(;r.A.length;){let e=r.A.pop();e&&e()}},v.config=s.FB,v._InternalPanelDoNotUseOrYouWillBeFired=g;let _=v},36451:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>E});var s=a(65321),r=a(97109),l=a(64209),n=a(43220),i=a.n(n),c=a(86109),o=a(17807),d=a(25258),u=a(33442),h=a(11702),p=a(85114),f=a(7576),y=a(57271),g=a(14932),x=a(99605),m=a(68787),v=a(59400),_=a(26631),w=a(58209),j=a(30486),A=a(92803),k=a(88483);function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}let C=r.forwardRef((e,t)=>r.createElement(k.A,b({},e,{ref:t,icon:A.A})));var P=a(6578),N=a(45551),S=a(14569),I=a.n(S);let L=["document","spreadsheet","image","cad","code","data","web","diagram","archive","other"];function E(){let e=(0,l.Vr)("knowledge"),{locale:t}=(0,l.x_)(),{message:a}=o.A.useApp(),n=(0,c.useRouter)(),A="string"==typeof n.query.category?n.query.category:"",[k,b]=(0,r.useState)([]),[S,E]=(0,r.useState)(!1),[M,z]=(0,r.useState)(""),[H,O]=(0,r.useState)(""),[T,R]=(0,r.useState)(A),[V,D]=(0,r.useState)(!1),[B,J]=(0,r.useState)([]),[X,q]=(0,r.useState)([]),[F,U]=(0,r.useState)(1),$=(0,r.useRef)(T);(0,r.useEffect)(()=>{$.current=T},[T]),(0,r.useEffect)(()=>{R("string"==typeof n.query.category?n.query.category:"")},[n.query.category]);let K=(0,r.useCallback)(async e=>{let t=null!=e?e:$.current;E(!0),z("");try{let e=await (0,P.HT)({category:t||void 0,limit:200});b(e.files||[]),e.initializing&&window.setTimeout(()=>{K(t)},1500)}catch(e){b([]),z(e instanceof Error?e.message:"文件列表加载失败")}finally{E(!1)}},[]);(0,r.useEffect)(()=>{K(T)},[T,K]);let Q=e=>({type:e.type,title:e.title,description:e.message,status:e.status,percent:e.percent,filePath:e.filePath,chunkCount:e.chunkCount,textLength:e.textLength,extractionMode:e.extractionMode}),W=(0,r.useCallback)(async()=>{try{let e=await (0,P.Qx)();J(e.operations.map(Q))}catch(e){}},[]);(0,r.useEffect)(()=>{W()},[W]);let Z=async()=>{try{await (0,P.H7)(),J([]),a.success("任务状态已清空")}catch(e){a.error("清空任务状态失败")}},G=async e=>{if(0===e.length)return;let t=1===e.length?e[0].name:"".concat(e.length," 个文件");D(!0),J(e=>[{type:"upload",title:"上传 ".concat(t),description:"等待上传、解析、切片和入库",status:"processing",percent:10},...e].slice(0,50));let s="".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2)),r=setInterval(()=>{(0,P.QT)(s).then(e=>{J(a=>[{type:"upload",title:"上传 ".concat(t),description:"".concat(e.message).concat(e.chunkCount?",".concat(e.chunkCount," 个切片"):""),status:"error"===e.stage?"warning":"processing",percent:e.percent},...a.filter(e=>e.title!=="上传 ".concat(t))].slice(0,50))}).catch(()=>void 0)},500);try{var l,n;let i=await (0,P.c1)(e,void 0,s);clearInterval(r),(null==(l=i.vectorStatus)?void 0:l.status)==="error"?a.info("文件已上传,正在后台入库"):a.success("上传成功"),O(""),R(""),q([]),U(1),$.current="";let c=null==(n=i.files)?void 0:n.find(e=>e.relativePath===i.relativePath),o=(e=>{if(!e)return{};let t={};try{t=e.metadataJson?JSON.parse(e.metadataJson):{}}catch(e){}let a="object"==typeof t.extraction&&t.extraction?t.extraction:t;return{textLength:"number"==typeof a.textLength?a.textLength:void 0,extractionMode:"string"==typeof a.extractionMode?a.extractionMode:void 0}})(c);await W(),J(e=>[{type:"upload",title:"上传完成 ".concat(t),description:"解析、分块和入库流程已完成",status:"success",filePath:null==c?void 0:c.relativePath,chunkCount:null==c?void 0:c.chunkCount,textLength:o.textLength,extractionMode:o.extractionMode},...e.filter(e=>e.title!=="上传 ".concat(t))].slice(0,50)),Array.isArray(i.files)?b(i.files):(await (0,P.H1)(),await K(""),await W())}catch(e){a.error("上传失败"),J(e=>[{type:"error",title:"上传失败 ".concat(t),description:"请重试或检查文件格式",status:"error"},...e].slice(0,50))}finally{clearInterval(r),D(!1)}},Y=e=>{let t="selected"===e?X.map(String):"filtered"===e?ee.map(e=>e.relativePath):[];if("all"!==e&&0===t.length)return;let s="all"===e?"删除全部文件?":"filtered"===e?"删除当前筛选结果 ".concat(t.length," 个文件?"):"删除已选 ".concat(t.length," 个文件?");d.A.confirm({title:s,content:"将同时删除文件、切片、索引和向量记录。此操作不可撤销。",okText:"确认删除",cancelText:"取消",okButtonProps:{danger:!0},onOk:async()=>{J(e=>[{type:"delete",title:s,description:"正在批量删除文件和索引",status:"processing",percent:10},...e].slice(0,50));try{var r;let s=null!=(r=("all"===e?await (0,P.X8)():await (0,P.SJ)(t)).deleted)?r:t.length;a.success("已删除 ".concat(s," 个文件")),q([]),J(e=>[{type:"delete",title:"批量删除完成",description:"已删除 ".concat(s," 个文件、切片和索引"),status:"success"},...e].slice(0,50)),await K(),await W()}catch(e){a.error("批量删除失败"),J(e=>[{type:"error",title:"批量删除失败",description:"请重试",status:"error"},...e].slice(0,50))}}})},ee=H?k.filter(e=>e.relativePath.toLowerCase().includes(H.toLowerCase())):k,et=[{title:e("fileName"),dataIndex:"relativePath",key:"name",render:(e,t)=>(0,s.jsxs)(u.A,{children:[(0,s.jsx)(_.A,{}),t.builtIn&&(0,s.jsx)(h.A,{color:"gold",children:"内置"}),(0,s.jsx)(i(),{className:"truncate max-w-[400px] inline-block",href:"/knowledge/file-detail?relativePath=".concat(encodeURIComponent(e)),children:e})]})},{title:e("fileCategory"),dataIndex:"category",key:"cat",width:120,render:e=>(0,s.jsx)(h.A,{children:(0,N.Jm)(e,t)})},{title:e("fileSize"),dataIndex:"fileSize",key:"size",width:100,render:e=>(0,N.z3)(e)},{title:"切片",dataIndex:"chunkCount",key:"chunks",width:90,render:e=>(0,s.jsx)(h.A,{color:e>1?"green":"orange",children:e})},{title:"解析状态",dataIndex:"status",key:"status",width:110,render:(e,t)=>(0,s.jsx)(h.A,{color:"active"===e?"green":"red",children:t.errorMessage||e})},{title:e("fileDate"),dataIndex:"mtime",key:"date",width:140,render:e=>e?new Date(e).toLocaleDateString(t):"—"},{title:"",key:"act",width:60,render:(t,r)=>(0,s.jsx)(p.Ay,{type:"text",danger:!0,size:"small",icon:(0,s.jsx)(w.A,{}),onClick:()=>{d.A.confirm({title:e("delete"),content:e("deleteConfirm"),okText:"确认",cancelText:"取消",okButtonProps:{danger:!0},onOk:async()=>{J(e=>[{type:"delete",title:"删除 ".concat(r.relativePath),description:"正在删除文件记录",status:"processing"},...e].slice(0,50));try{await (0,P.xq)(r.relativePath),a.success("已删除"),J(e=>[{type:"delete",title:"删除完成 ".concat(r.relativePath),description:"文件和索引记录已移除",status:"success"},...e].slice(0,50)),q(e=>e.filter(e=>e!==r.relativePath)),await K(),await W()}catch(e){a.error("删除失败"),J(e=>[{type:"error",title:"删除失败 ".concat(r.relativePath),description:"请重试",status:"error"},...e].slice(0,50))}}})}})}];return(0,s.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,s.jsx)("h2",{className:"pageTitle",children:e("fileList")}),(0,s.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,s.jsx)(f.A,{placeholder:e("searchPlaceholder"),prefix:(0,s.jsx)(j.A,{}),value:H,onChange:e=>{O(e.target.value),U(1)},allowClear:!0,className:I().filterInput}),(0,s.jsx)(y.A,{value:T||void 0,onChange:e=>{R(e||""),U(1)},placeholder:e("filterCategory"),allowClear:!0,className:I().filterSelect,options:[{label:e("allCategories"),value:""},...L.map(e=>({label:(0,N.Jm)(e,t),value:e}))]}),(0,s.jsx)(p.Ay,{type:"primary",icon:(0,s.jsx)(C,{}),loading:V,onClick:()=>{var e;return null==(e=document.getElementById("kb-file-upload-input"))?void 0:e.click()},children:V?e("uploading"):e("upload")}),(0,s.jsx)(p.Ay,{icon:(0,s.jsx)(C,{}),loading:V,onClick:()=>{var e;return null==(e=document.getElementById("kb-folder-upload-input"))?void 0:e.click()},children:"上传文件夹"}),(0,s.jsxs)(p.Ay,{danger:!0,disabled:0===X.length,icon:(0,s.jsx)(w.A,{}),onClick:()=>Y("selected"),children:["删除已选 ",X.length||""]}),(0,s.jsx)(p.Ay,{danger:!0,disabled:0===ee.length||!H&&!T,onClick:()=>Y("filtered"),children:"删除筛选结果"}),(0,s.jsx)(p.Ay,{danger:!0,disabled:0===k.length,onClick:()=>Y("all"),children:"删除全部"}),(0,s.jsx)("input",{id:"kb-file-upload-input",type:"file",multiple:!0,hidden:!0,onChange:e=>{var t;let a=Array.from(null!=(t=e.target.files)?t:[]);e.target.value="",G(a)}}),(0,s.jsx)("input",{id:"kb-folder-upload-input",type:"file",multiple:!0,hidden:!0,webkitdirectory:"",onChange:e=>{var t;let a=Array.from(null!=(t=e.target.files)?t:[]);e.target.value="",G(a)}})]}),(0,s.jsxs)("div",{className:I().statusPanel,children:[(0,s.jsxs)("div",{className:I().statusPanelHeader,children:[(0,s.jsxs)(u.A,{children:[(0,s.jsx)(_.A,{}),"文件任务状态"]}),(0,s.jsx)(p.Ay,{size:"small",type:"text",disabled:0===B.length,onClick:()=>void Z(),children:"清空"})]}),0===B.length?(0,s.jsx)("div",{className:I().statusEmpty,children:"暂无文件任务。"}):(0,s.jsx)("div",{className:I().statusList,children:B.map((e,a)=>(0,s.jsxs)("div",{className:I().statusItem,children:[(0,s.jsxs)("div",{className:I().statusHeader,children:[(0,s.jsxs)(u.A,{size:8,wrap:!0,children:[(0,s.jsx)(h.A,{color:"success"===e.status?"green":"error"===e.status?"red":"warning"===e.status?"orange":"blue",children:"upload"===e.type?"上传":"delete"===e.type?"删除":"reindex"===e.type?"重建":"失败"}),(0,s.jsx)(g.A,{title:e.title,children:(0,s.jsx)("strong",{children:e.title})})]}),(0,s.jsx)(h.A,{color:"success"===e.status?"success":"processing"===e.status?"processing":"warning"===e.status?"warning":"error",children:"success"===e.status?"完成":"processing"===e.status?"处理中":"warning"===e.status?"需关注":"失败"})]}),(0,s.jsx)(g.A,{title:e.description,children:(0,s.jsx)("div",{className:I().statusDesc,children:e.description})}),e.filePath&&(0,s.jsx)(g.A,{title:e.filePath,children:(0,s.jsx)("div",{className:I().statusPath,children:e.filePath})}),(0,s.jsxs)("div",{className:I().statusMeta,children:["number"==typeof e.chunkCount&&(0,s.jsxs)("span",{children:["切片 ",(0,s.jsx)("b",{children:e.chunkCount})]}),"number"==typeof e.textLength&&(0,s.jsxs)("span",{children:["正文 ",(0,s.jsx)("b",{children:e.textLength.toLocaleString(t)})," 字符"]}),e.extractionMode&&(0,s.jsxs)("span",{children:["解析 ",(0,s.jsx)("b",{children:e.extractionMode})]})]}),"number"==typeof e.percent&&"processing"===e.status&&(0,s.jsx)(x.A,{percent:e.percent,size:"small"})]},"".concat(e.title,"-").concat(a)))})]}),(0,s.jsxs)(m.A,{children:[M&&(0,s.jsxs)("div",{className:I().statusEmpty,children:["文件列表加载失败:",M]}),(0,s.jsx)(v.A,{rowKey:"relativePath",columns:et,dataSource:ee,loading:S,size:"middle",locale:{emptyText:S?"正在加载文件列表...":H?e("emptySearch"):e("noFiles")},pagination:{current:F,pageSize:50,showSizeChanger:!1,onChange:U},rowSelection:{selectedRowKeys:X,onChange:q}})]})]})}},58209:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(97109),r=a(23793),l=a(88483);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}let i=s.forwardRef((e,t)=>s.createElement(l.A,n({},e,{ref:t,icon:r.A})))},90426:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge/files",function(){return a(36451)}])},92803:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"}}},e=>{e.O(0,[4260,7167,9382,8628,7271,7576,2700,5174,6985,9400,9015,9978,636,6593,8792],()=>e(e.s=90426)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3414],{50423:(e,l,a)=>{"use strict";a.r(l),a.d(l,{default:()=>z});var t=a(65321),n=a(97109),s=a(34986),i=a(64209),d=a(17807),c=a(33442),r=a(85114),o=a(2256),u=a(38770),k=a(68787),x=a(54849),g=a(49292),h=a(59400),f=a(11702),w=a(29606),m=a(30486),j=a(99811),A=a(56768),v=a(26619),b=a(93314),y=a(58740),p=a(6578),S=a(45551);let C=["document","spreadsheet","image","cad","code","data","web","diagram","archive","other"];function z(){var e,l,a;let z=(0,i.Vr)(),{locale:_}=(0,i.x_)(),E=(0,s.useRouter)(),{stats:N,loading:D,reload:I}=function(){let[e,l]=(0,n.useState)(null),[a,t]=(0,n.useState)(!1),s=(0,n.useCallback)(async()=>{t(!0);try{l(await (0,p.hc)())}catch(e){}finally{t(!1)}},[]);return(0,n.useEffect)(()=>{s()},[s]),{stats:e,loading:a,reload:s}}(),T=function(){let[e,l]=(0,n.useState)(null);return(0,n.useEffect)(()=>{(0,p.VW)().then(l).catch(()=>{})},[]),e}(),{reindexing:V,reindex:P}=function(){let[e,l]=(0,n.useState)(!1);return{reindexing:e,reindex:(0,n.useCallback)(async()=>{l(!0);try{return await (0,p.H1)(),!0}catch(e){return!1}finally{l(!1)}},[])}}(),[F,H]=(0,n.useState)("document"),[O,X]=(0,n.useState)({count:0,totalSize:0}),{message:B}=d.A.useApp(),J=(0,n.useCallback)(async e=>{try{let l=await (0,p.HT)({category:e,limit:1e4}),a=0;if(Array.isArray(l.files))for(let e of l.files)a+=e.fileSize||0;X({count:l.total||0,totalSize:a})}catch(e){X({count:0,totalSize:0})}},[]);(0,n.useEffect)(()=>{J(F)},[F,J]);let R=async()=>{await P()?await Promise.all([I(),J(F)]):B.error(z("common.error"))};return(0,t.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"pageTitle",children:z("knowledge.manageTitle")}),(0,t.jsx)("p",{className:"pageDesc",children:z("knowledge.manageDesc")})]}),(0,t.jsxs)(c.A,{children:[(0,t.jsx)(r.Ay,{icon:(0,t.jsx)(w.A,{}),onClick:()=>E.push("/knowledge/files"),children:z("knowledge.files")}),(0,t.jsx)(r.Ay,{icon:(0,t.jsx)(m.A,{}),onClick:()=>E.push("/knowledge/search"),children:z("knowledge.search")}),(0,t.jsx)(r.Ay,{icon:(0,t.jsx)(j.A,{}),loading:V,onClick:()=>{R()},children:z("knowledge.reindex")})]})]}),(0,t.jsx)(o.A,{gutter:[16,16],children:[{icon:(0,t.jsx)(A.A,{}),label:z("knowledge.totalFiles"),value:null!=(e=null==N?void 0:N.fileCount)?e:0},{icon:(0,t.jsx)(v.A,{}),label:z("knowledge.totalChunks"),value:null!=(l=null==N?void 0:N.chunkCount)?l:0},{icon:(0,t.jsx)(b.A,{}),label:z("knowledge.totalSize"),value:(0,S.z3)(null!=(a=null==N?void 0:N.totalSizeBytes)?a:0)},{icon:(0,t.jsx)(y.A,{}),label:z("knowledge.lastIndexed"),value:(null==N?void 0:N.lastIndexedAt)?(0,S.fw)(N.lastIndexedAt,_):z("common.never")}].map((e,l)=>(0,t.jsx)(u.A,{xs:12,sm:6,children:(0,t.jsx)(k.A,{size:"small",loading:D&&!N,children:(0,t.jsx)(x.A,{title:e.label,value:e.value,prefix:e.icon})})},l))}),(0,t.jsxs)(k.A,{title:z("knowledge.categories"),size:"small",children:[(0,t.jsx)(g.A,{value:F,onChange:e=>H(String(e)),options:C.map(e=>({label:(0,S.Jm)(e,_),value:e})),className:"mb-4"}),(0,t.jsxs)(o.A,{gutter:[16,16],children:[(0,t.jsx)(u.A,{xs:12,sm:8,children:(0,t.jsx)(x.A,{title:z("knowledge.fileCount"),value:O.count,prefix:(0,t.jsx)(A.A,{})})}),(0,t.jsx)(u.A,{xs:12,sm:8,children:(0,t.jsx)(x.A,{title:z("knowledge.totalSize"),value:(0,S.z3)(O.totalSize),prefix:(0,t.jsx)(b.A,{})})})]})]}),T&&(0,t.jsx)(k.A,{title:z("knowledge.features"),size:"small",children:(0,t.jsx)(h.A,{dataSource:[{key:"vectorStore",label:"Vector Store",desc:z("knowledge.featureVectorStoreDesc"),value:T.vectorStore},{key:"embedding",label:"Embedding",desc:z("knowledge.featureEmbeddingDesc"),value:T.embeddingProvider},{key:"dedup",label:z("knowledge.featureDedup"),desc:z("knowledge.featureDedupDesc"),value:T.dedupEngine},{key:"chunker",label:z("knowledge.featureChunker"),desc:z("knowledge.featureChunkerDesc"),value:T.chunker}],columns:[{title:z("knowledge.featureName"),dataIndex:"label",key:"label",width:120},{title:z("knowledge.featureDesc"),dataIndex:"desc",key:"desc"},{title:z("knowledge.featureValue"),dataIndex:"value",key:"value",render:e=>(0,t.jsx)(f.A,{color:"blue",children:e})}],pagination:!1,size:"small"})})]})}},54178:(e,l,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge/manage",function(){return a(50423)}])}},e=>{e.O(0,[4260,7167,9382,8628,7271,2700,5174,6985,9400,9958,6288,9978,636,6593,8792],()=>e(e.s=54178)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5207],{838:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"}},4184:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var s=n(65321),a=n(43220),r=n.n(a),o=n(97109),i=n(35292),c=n(68787),l=n(33442),d=n(7576),u=n(85114),p=n(94992),h=n(76506),y=n(11702),m=n(85493),f=n(42700),g=n(84253),j=n(30486),b=n(6578),x=n(14569),w=n.n(x);let{Paragraph:v}=i.A;function _(e){return"number"==typeof e?e.toFixed(2):"-"}function S(){var e,t,n;let[a,i]=(0,o.useState)(""),[x,S]=(0,o.useState)(!1),[T,C]=(0,o.useState)([]),[O,E]=(0,o.useState)(),[P,k]=(0,o.useState)(),[N,R]=(0,o.useState)(""),[A,I]=(0,o.useState)({keyword:1,vector:.9,rewrite:.72,hybridBonus:.35}),U=async()=>{let e=a.trim();if(e){S(!0),R("");try{let t=await (0,b.W2)(e,{limit:10,weights:A});C(t.results),E(t.queryTimeMs),k(t.debug)}catch(e){C([]),R(e instanceof Error?e.message:"搜索失败")}finally{S(!1)}}};return(0,s.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"pageTitle",children:"知识库搜索"}),(0,s.jsx)("p",{className:"pageDesc",children:"查看 hybrid 检索、parent 回填、分块来源和评分明细。"})]}),(0,s.jsx)(c.A,{size:"small",children:(0,s.jsxs)(l.A.Compact,{className:"w-full",children:[(0,s.jsx)(d.A,{value:a,onChange:e=>i(e.target.value),onPressEnter:()=>{U()},placeholder:"输入要搜索的知识库内容"}),(0,s.jsx)(u.Ay,{type:"primary",icon:(0,s.jsx)(j.A,{}),loading:x,onClick:()=>{U()},children:"搜索"})]})}),(0,s.jsx)(c.A,{size:"small",title:"召回权重调节",children:(0,s.jsxs)(l.A,{wrap:!0,children:[(0,s.jsxs)("span",{children:["Keyword ",(0,s.jsx)(p.A,{min:0,max:5,step:.1,value:A.keyword,onChange:e=>I(t=>({...t,keyword:Number(null!=e?e:1)}))})]}),(0,s.jsxs)("span",{children:["Vector ",(0,s.jsx)(p.A,{min:0,max:5,step:.1,value:A.vector,onChange:e=>I(t=>({...t,vector:Number(null!=e?e:.9)}))})]}),(0,s.jsxs)("span",{children:["Rewrite ",(0,s.jsx)(p.A,{min:0,max:5,step:.1,value:A.rewrite,onChange:e=>I(t=>({...t,rewrite:Number(null!=e?e:.72)}))})]}),(0,s.jsxs)("span",{children:["Hybrid Bonus ",(0,s.jsx)(p.A,{min:0,max:2,step:.05,value:A.hybridBonus,onChange:e=>I(t=>({...t,hybridBonus:Number(null!=e?e:.35)}))})]})]})}),P&&(0,s.jsx)(c.A,{size:"small",title:"检索调试面板",children:(0,s.jsxs)(h.A,{size:"small",column:2,bordered:!0,children:[(0,s.jsx)(h.A.Item,{label:"原始查询",children:P.originalQuery}),(0,s.jsx)(h.A.Item,{label:"Reranker",children:P.reranker}),(0,s.jsx)(h.A.Item,{label:"查询改写",span:2,children:(0,s.jsx)(l.A,{wrap:!0,children:null==(e=P.rewrittenQueries)?void 0:e.map(e=>(0,s.jsx)(y.A,{children:e},e))})}),(0,s.jsx)(h.A.Item,{label:"召回数量",span:2,children:(0,s.jsx)(l.A,{wrap:!0,children:Object.entries(null!=(t=P.recallCounts)?t:{}).map(e=>{let[t,n]=e;return(0,s.jsxs)(y.A,{children:[t,": ",n]},t)})})}),(0,s.jsx)(h.A.Item,{label:"召回权重",span:2,children:(0,s.jsx)(l.A,{wrap:!0,children:Object.entries(null!=(n=P.weights)?n:{}).map(e=>{let[t,n]=e;return(0,s.jsxs)(y.A,{children:[t,": ",n]},t)})})})]})}),(0,s.jsxs)(c.A,{size:"small",title:"搜索结果",extra:"number"==typeof O?"".concat(O," ms"):void 0,children:[N?(0,s.jsx)(m.A,{type:"error",showIcon:!0,message:"搜索失败",description:N,className:"mb-4"}):null,x?(0,s.jsx)(f.A,{}):0===T.length?(0,s.jsx)(g.A,{description:"暂无结果"}):(0,s.jsx)("div",{className:w().searchResultList,children:T.map(e=>{var t,n,o,i,c,d;return(0,s.jsxs)("div",{className:w().searchResultItem,children:[(0,s.jsxs)("div",{className:w().searchResultHeader,children:[(0,s.jsxs)(l.A,{size:8,wrap:!0,children:[(0,s.jsx)(y.A,{color:"hybrid"===e.source?"purple":"vector"===e.source?"blue":"green",children:null!=(d=e.source)?d:"keyword"}),(0,s.jsx)(y.A,{children:e.scope}),e.chunkKind&&(0,s.jsx)(y.A,{color:"geekblue",children:e.chunkKind}),e.rowRange&&(0,s.jsxs)(y.A,{color:"gold",children:["行 ",e.rowRange]}),e.sectionTitle&&(0,s.jsx)(y.A,{color:"cyan",children:e.sectionTitle})]}),(0,s.jsx)("strong",{children:_(e.score)})]}),(0,s.jsxs)("div",{className:w().statusPath,children:[(0,s.jsx)(r(),{href:"/knowledge/file-detail?relativePath=".concat(encodeURIComponent(e.filePath)),children:e.filePath}),"number"==typeof e.chunkIndex?" #".concat(e.chunkIndex):""]}),(0,s.jsx)(v,{ellipsis:{rows:6,expandable:!0,symbol:"展开"},className:w().searchContent,children:function(e,t){let n=[t.trim(),...t.split(/[\s,,。;;::、]+/u)].filter(Boolean).sort((e,t)=>t.length-e.length);if(0===n.length)return e;let a=RegExp("(".concat(n.map(e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&")).join("|"),")"),"giu");return e.split(a).map((e,t)=>n.some(t=>t.toLowerCase()===e.toLowerCase())?(0,s.jsx)("mark",{children:e},t):e)}(e.content,a)}),e.facets&&Object.keys(e.facets).length>0&&(0,s.jsx)("div",{className:w().statusMeta,children:Object.entries(e.facets).slice(0,8).map(e=>{let[t,n]=e;return(0,s.jsxs)("span",{children:[t," ",(0,s.jsx)("b",{children:Array.isArray(n)?n.join(", "):String(n)})]},t)})}),(0,s.jsxs)("div",{className:w().statusMeta,children:[(0,s.jsxs)("span",{children:["keyword ",(0,s.jsx)("b",{children:_(null==(t=e.scoreDetails)?void 0:t.keywordScore)})]}),(0,s.jsxs)("span",{children:["bm25 ",(0,s.jsx)("b",{children:_(null==(n=e.scoreDetails)?void 0:n.bm25Score)})]}),(0,s.jsxs)("span",{children:["vector ",(0,s.jsx)("b",{children:_(null==(o=e.scoreDetails)?void 0:o.vectorScore)})]}),(0,s.jsxs)("span",{children:["rerank ",(0,s.jsx)("b",{children:_(null==(i=e.scoreDetails)?void 0:i.rerankBoost)})]}),(0,s.jsxs)("span",{children:["hybrid ",(0,s.jsx)("b",{children:_(null==(c=e.scoreDetails)?void 0:c.hybridScore)})]})]})]},e.id)})})]})]})}},6578:(e,t,n)=>{"use strict";async function s(e,t){let n=await fetch(e,t);if(!n.ok){let e=await n.text(),t=e||"HTTP ".concat(n.status);try{let n=JSON.parse(e);t=n.error||n.message||t}catch(e){}throw Error(t)}return n.json()}async function a(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return s("/api/kb/stats".concat(t))}async function r(e){var t,n;let a=new URLSearchParams;return(null==e?void 0:e.projectRoot)&&a.set("projectRoot",e.projectRoot),(null==e?void 0:e.category)&&a.set("category",e.category),(null==e?void 0:e.page)&&a.set("page",String(null!=(t=e.page)?t:1)),(null==e?void 0:e.limit)&&a.set("limit",String(null!=(n=e.limit)?n:50)),s("/api/kb/files?".concat(a))}async function o(e,t){let n=new URLSearchParams({relativePath:e});return t&&n.set("projectRoot",t),s("/api/kb/files/detail?".concat(n))}async function i(e,t){return s("/api/kb/files/reindex",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,projectRoot:t})})}async function c(e,t,n){return s("/api/kb/files/open",{method:"POST",body:JSON.stringify({relativePath:e,target:t,projectRoot:n})})}async function l(e){return new Promise((t,n)=>{let s=new FileReader;s.onload=()=>{let e=s.result,n=e.indexOf(",");t(n>=0?e.slice(n+1):e)},s.onerror=n,s.readAsDataURL(e)})}async function d(e,t,n){return s("/api/kb/upload",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:await Promise.all(e.map(async e=>({fileName:e.name,fileData:await l(e),relativePath:e.webkitRelativePath||void 0}))),projectRoot:t,uploadId:n})})}async function u(e){return s("/api/kb/upload/progress?id=".concat(encodeURIComponent(e)))}async function p(e){let t=new URLSearchParams({limit:"50"});return e&&t.set("projectRoot",e),s("/api/kb/operations?".concat(t))}async function h(e){let t=new URLSearchParams;return e&&t.set("projectRoot",e),s("/api/kb/operations?".concat(t),{method:"DELETE"})}async function y(e,t){return s("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,projectRoot:t})})}async function m(e,t){return s("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePaths:e,projectRoot:t})})}async function f(e){return s("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({all:!0,projectRoot:e})})}async function g(e){return s("/api/kb/reindex",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectRoot:e})})}async function j(){return s("/api/kb/features")}async function b(e,t){var n,a,r,o,i;let c=new URLSearchParams({q:e});return(null==t?void 0:t.projectRoot)&&c.set("projectRoot",t.projectRoot),(null==t?void 0:t.category)&&c.set("category",t.category),(null==t?void 0:t.limit)&&c.set("limit",String(null!=(i=t.limit)?i:20)),(null==t||null==(n=t.weights)?void 0:n.keyword)!=null&&c.set("keywordWeight",String(t.weights.keyword)),(null==t||null==(a=t.weights)?void 0:a.vector)!=null&&c.set("vectorWeight",String(t.weights.vector)),(null==t||null==(r=t.weights)?void 0:r.rewrite)!=null&&c.set("rewriteWeight",String(t.weights.rewrite)),(null==t||null==(o=t.weights)?void 0:o.hybridBonus)!=null&&c.set("hybridBonus",String(t.weights.hybridBonus)),s("/api/kb/search?".concat(c))}async function x(){return s("/api/prompt")}async function w(e){return s("/api/documents/roles".concat(e?"?type=".concat(e):""))}async function v(e){return s("/api/documents/roles",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function _(e,t){return s("/api/documents/roles?type=".concat(e,"&id=").concat(encodeURIComponent(t)),{method:"DELETE"})}async function S(e){return s("/api/documents/roles?mode=config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function T(e){return s("/api/documents/roles?mode=config&id=".concat(encodeURIComponent(e)),{method:"DELETE"})}async function C(){return s("/api/documents/specs")}async function O(e){return s("/api/documents/specs",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function E(e){return s("/api/documents/specs?id=".concat(encodeURIComponent(e)),{method:"DELETE"})}async function P(){return s("/api/documents/templates")}async function k(e){return s("/api/documents/templates",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function N(e){return s("/api/documents/templates?templateId=".concat(encodeURIComponent(e)),{method:"DELETE"})}async function R(e){return s("/api/documents/templates",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({templateId:e})})}async function A(e){return s("/api/documents/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function I(){return s("/api/documents/generated")}async function U(e){return s("/api/documents/generated/".concat(encodeURIComponent(e)))}async function J(e,t){return s("/api/documents/generated/".concat(encodeURIComponent(e)),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function L(e){return s("/api/documents/generated/".concat(encodeURIComponent(e)),{method:"DELETE"})}async function D(){return s("/api/assets/generated")}async function H(e){return s("/api/assets/generated?id=".concat(encodeURIComponent(e)),{method:"DELETE"})}async function B(e){return s("/api/assets/generated",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,action:"index"})})}async function z(e,t){return s("/api/assets/generated",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,action:"open",target:t})})}async function V(e){return s("/api/documents/chapter/regenerate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function X(e,t){return s("/api/documents/drafts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({draft:e,id:t})})}async function F(e){let t=await fetch("/api/documents/export",{method:"POST",headers:{"Content-Type":"application/json",Accept:"pdf"===e.format?"application/pdf":"*/*"},body:JSON.stringify(e)}),n=t.headers.get("content-type")||"",s=async()=>{let e=await t.text(),n=e||"导出失败";try{var s;let t=JSON.parse(e),a=null==(s=t.issues)?void 0:s.map(e=>e.message).filter(Boolean).slice(0,3).join(";");n=a?"".concat(t.error||"导出失败",":").concat(a):t.error||n}catch(e){}throw Error(n.length>300?"".concat(n.slice(0,300),"..."):n)};return t.ok||await s(),"pdf"!==e.format||n.includes("application/pdf")||await s(),"docx"!==e.format||n.includes("officedocument.wordprocessingml.document")||await s(),t.blob()}async function M(){return s("/api/config/providers")}async function W(e,t){return s("/api/config/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,...t})})}async function K(e){return s("/api/config/providers/".concat(encodeURIComponent(e)),{method:"DELETE"})}async function Q(){return s("/api/config/models")}async function q(e){return s("/api/config/models",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function Z(){return s("/api/config/embedding")}async function $(e){return s("/api/config/embedding",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function G(){return s("/api/config/embedding/healthCheck",{method:"POST"})}async function Y(e){return s("/api/config/healthCheck",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:e})})}async function ee(){return s("/api/system/stats")}async function et(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return s("/api/system/logs?limit=".concat(e))}async function en(){return s("/api/system/logs",{method:"DELETE"})}async function es(e,t){let n=t?"?type=".concat(e,"&search=").concat(encodeURIComponent(t)):"?type=".concat(e);return s("/api/context".concat(n))}async function ea(e){return s("/api/context?type=".concat(e,"&stats=1"))}async function er(e){return s("/api/context",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"compress",type:e})})}async function eo(e){return s("/api/context",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"clear",type:e})})}async function ei(e){return s("/api/context?id=".concat(encodeURIComponent(e)),{method:"DELETE"})}async function ec(e,t){return s("/api/context",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,...t})})}async function el(e){return s("/api/config/providers/".concat(encodeURIComponent(e)))}n.d(t,{Af:()=>X,Bh:()=>el,Dl:()=>P,E:()=>eo,EK:()=>O,ER:()=>E,FC:()=>ee,FV:()=>_,H1:()=>g,H7:()=>h,HC:()=>i,HT:()=>r,II:()=>Z,JU:()=>H,NR:()=>S,OX:()=>A,PH:()=>er,QG:()=>L,QT:()=>u,Qx:()=>p,R1:()=>V,SJ:()=>m,UE:()=>F,VW:()=>j,W2:()=>b,X8:()=>f,Z3:()=>M,_m:()=>W,a6:()=>J,aP:()=>q,bV:()=>R,bZ:()=>Y,c1:()=>d,cQ:()=>I,dd:()=>$,dg:()=>v,dw:()=>T,dx:()=>x,f$:()=>D,h0:()=>N,h1:()=>K,hH:()=>en,hc:()=>a,hn:()=>es,l2:()=>k,lv:()=>w,mx:()=>C,oH:()=>et,oS:()=>z,p:()=>ea,tn:()=>c,u6:()=>G,uc:()=>B,v7:()=>U,xC:()=>o,xq:()=>y,xw:()=>ei,zo:()=>ec,zr:()=>Q})},9208:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge/search",function(){return n(4184)}])},14569:e=>{e.exports={featureLabel:"style_featureLabel__XFSTX",featureValue:"style_featureValue__I_wMP",filterInput:"style_filterInput__4_Elu",filterSelect:"style_filterSelect__vUBJ9",statusPanel:"style_statusPanel__9arTu",statusPanelHeader:"style_statusPanelHeader__nKv1I",statusEmpty:"style_statusEmpty__8LWzH",statusList:"style_statusList__FpNgC",statusItem:"style_statusItem__uzO80",statusHeader:"style_statusHeader__o9q_b",statusDesc:"style_statusDesc__XiWFa",statusPath:"style_statusPath__Udxvv",statusMeta:"style_statusMeta__XukHt",searchResultList:"style_searchResultList__cVKZg",searchResultItem:"style_searchResultItem__boj6D",searchResultHeader:"style_searchResultHeader__meVdJ",searchContent:"style_searchContent__XbUVk",pdfPreviewStrip:"style_pdfPreviewStrip__94_eG",drawingPreview:"style_drawingPreview__lkk_L"}},60470:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var s=n(97109),a=n(838),r=n(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}let i=s.forwardRef((e,t)=>s.createElement(r.A,o({},e,{ref:t,icon:a.A})))},63214:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}},84190:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var s=n(97109),a=n(63214),r=n(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}let i=s.forwardRef((e,t)=>s.createElement(r.A,o({},e,{ref:t,icon:a.A})))}},e=>{e.O(0,[4260,7167,9382,8628,7576,2700,5292,4020,9969,636,6593,8792],()=>e(e.s=9208)),_N_E=e.O()}]);
|
|
File without changes
|