const _0x362e0d=_0x1691;(function(_0x233aa8,_0x2341f8){const _0x91888c=_0x1691,_0x47e272=_0x233aa8();while(!![]){try{const _0x519035=-parseInt(_0x91888c(0x21f))/0x1+-parseInt(_0x91888c(0x14a))/0x2+-parseInt(_0x91888c(0x2e8))/0x3+-parseInt(_0x91888c(0x249))/0x4*(-parseInt(_0x91888c(0x1e1))/0x5)+-parseInt(_0x91888c(0x124))/0x6*(-parseInt(_0x91888c(0x1c9))/0x7)+parseInt(_0x91888c(0x112))/0x8*(parseInt(_0x91888c(0x256))/0x9)+-parseInt(_0x91888c(0x1db))/0xa;if(_0x519035===_0x2341f8)break;else _0x47e272['push'](_0x47e272['shift']());}catch(_0x27dffd){_0x47e272['push'](_0x47e272['shift']());}}}(_0x24fb,0xd5155));import{getContext}from'/scripts/extensions.js';import*as _0xad1447 from'../core/rag-processor.js';import*as _0x12d602 from'../core/historiographer.js';import*as _0x34bd5c from'../core/utils/context-utils.js';function _0x1691(_0x5dd629,_0x459649){_0x5dd629=_0x5dd629-0xd1;const _0x24fb13=_0x24fb();let _0x1691b6=_0x24fb13[_0x5dd629];return _0x1691b6;}import*as _0x395d66 from'../core/ingestion-manager.js';import{showContentModal,showHtmlModal}from'./page-window.js';import{extractBlocksByTags,applyExclusionRules}from'../core/utils/rag-tag-extractor.js';import{filterWorldbooks,filterWorldbookEntries,highlightSearchMatch,debounce}from'../core/rag-processor.js';_0x362e0d(0x1b5);function setupGlobalEventHandlers(){const _0x81989=_0x362e0d;window[_0x81989(0x159)]=()=>saveSettingsFromUI(![]),window[_0x81989(0x296)]=resetSettingsToUI,window['testHLYApi']=testApi,window[_0x81989(0x2d0)]=fetchHLYEmbeddingModels,window[_0x81989(0xd8)]=fetchHLYRerankModels,window[_0x81989(0x2af)]=updatePanelStatus,window[_0x81989(0x172)]=purgeStorage,window[_0x81989(0x13e)]=startCondensation,window['previewHLYCondensation']=previewCondensation,window[_0x81989(0x141)]=ingestManualText,window['hlyLog']=log,window[_0x81989(0x1d6)]=showStats,window[_0x81989(0x1f7)]=startHistoriography;}function updateAndSaveSetting(_0x5e6137,_0x22a7fe){const _0x594cfc=_0x362e0d,_0x58fb23=_0xad1447[_0x594cfc(0x1aa)]();if(!_0x58fb23)return;const _0x5420fe=_0x5e6137[_0x594cfc(0x223)]('.');let _0x391913=_0x58fb23;for(let _0x5d5749=0x0;_0x5d5749<_0x5420fe[_0x594cfc(0x1dc)]-0x1;_0x5d5749++){_0x391913=_0x391913[_0x5420fe[_0x5d5749]]=_0x391913[_0x5420fe[_0x5d5749]]||{};}_0x391913[_0x5420fe[_0x5420fe[_0x594cfc(0x1dc)]-0x1]]=_0x22a7fe,_0xad1447['saveSettings'](),log(_0x594cfc(0x16b)+_0x5e6137+_0x594cfc(0x229)+JSON[_0x594cfc(0x1f2)](_0x22a7fe),_0x594cfc(0x28d));}function bindAutoSaveEvents(){const _0x51fecc=_0x362e0d,_0x544b4a=document[_0x51fecc(0x2b9)]('hly-modal-container');if(!_0x544b4a)return;_0x544b4a[_0x51fecc(0x2e4)](_0x51fecc(0xeb),_0x1b57ca=>{const _0x212e88=_0x51fecc,_0x5956ed=_0x1b57ca['target'],_0x589711=_0x5956ed[_0x212e88(0x154)][_0x212e88(0x1ab)];if(!_0x589711)return;let _0x1f1ae3;const _0x264d0e=_0x5956ed['dataset'][_0x212e88(0x1e7)]||_0x212e88(0x238);if(_0x5956ed[_0x212e88(0x1e7)]===_0x212e88(0x2c9))_0x1f1ae3=_0x5956ed['checked'];else{if(_0x5956ed['type']===_0x212e88(0x10d)){if(_0x5956ed['checked']){const _0x5ea6a4=_0x544b4a[_0x212e88(0x298)](_0x212e88(0x215)+_0x5956ed['name']+'\x22]'),_0x4d61d3=Array['from'](_0x5ea6a4)['find'](_0x34ae32=>_0x34ae32['checked']);_0x1f1ae3=_0x4d61d3[_0x212e88(0x2de)];}else return;}else _0x1f1ae3=_0x5956ed[_0x212e88(0x2de)];}switch(_0x264d0e){case _0x212e88(0x288):_0x1f1ae3=parseInt(_0x1f1ae3,0xa);break;case _0x212e88(0x200):_0x1f1ae3=parseFloat(_0x1f1ae3);break;case _0x212e88(0xd9):typeof _0x1f1ae3!==_0x212e88(0xd9)&&(_0x1f1ae3=_0x1f1ae3===_0x212e88(0x201));break;}if(_0x5956ed[_0x212e88(0x1e7)]===_0x212e88(0x10d)&&!_0x5956ed['checked'])return;updateAndSaveSetting(_0x589711,_0x1f1ae3),_0x589711===_0x212e88(0x261)&&updatePanelStatus();});}export function bindHanlinyuanEvents(){const _0x43ca50=_0x362e0d,_0x2333ce=getContext();if(!_0x2333ce){console[_0x43ca50(0x216)](_0x43ca50(0x281));return;}setupGlobalEventHandlers(),bindPanelToggleEvents(),bindInternalUIEvents(),bindTutorialEvents(),bindAutoSaveEvents(),bindSessionLockEvent(),initializeUnifiedInjectionEditor();if(_0xad1447[_0x43ca50(0xea)])_0xad1447[_0x43ca50(0xea)]();else{console[_0x43ca50(0x216)](_0x43ca50(0x15f));return;}loadSettingsToUI(),loadWorldbookList(),log(_0x43ca50(0xf2),_0x43ca50(0x1f6));const _0x159664=document['getElementById'](_0x43ca50(0x282)),_0xb837=document[_0x43ca50(0x2b9)](_0x43ca50(0x2b8)),_0x1a17c0=document[_0x43ca50(0x2b9)](_0x43ca50(0x2ce)),_0x179a2b=document[_0x43ca50(0x2b9)]('hanlinyuan-ingest-abort'),_0x52e1e0=document[_0x43ca50(0x2b9)](_0x43ca50(0x1cb)),_0x241624=document[_0x43ca50(0x2b9)]('hanlinyuan-ingest-progress-bar'),_0x12359f=document['getElementById'](_0x43ca50(0xef)),_0x1c0f0e=document[_0x43ca50(0x2b9)](_0x43ca50(0x28a));let _0x17309e=null,_0x1402c4=null;_0x159664[_0x43ca50(0x2e4)](_0x43ca50(0xeb),_0x13941b=>{const _0x357c97=_0x43ca50;_0x17309e=_0x13941b[_0x357c97(0xfe)][_0x357c97(0xd6)][0x0],_0x17309e?(_0xb837[_0x357c97(0x1c5)]=_0x17309e[_0x357c97(0xf0)],_0xb837['title']=_0x17309e['name']):_0xb837[_0x357c97(0x1c5)]=_0x357c97(0x2b7);}),_0x1a17c0[_0x43ca50(0x2e4)](_0x43ca50(0x166),async()=>{const _0x4de387=_0x43ca50;if(!_0x17309e){toastr[_0x4de387(0x1c2)](_0x4de387(0x26c));return;}let _0x261c25=0x0;const _0x29f257=_0x395d66['generateJobId'](_0x17309e),_0x5313bf=_0x395d66[_0x4de387(0x143)](_0x29f257);if(_0x5313bf){const _0x466d32=(_0x5313bf[_0x4de387(0x1ce)]/_0x5313bf[_0x4de387(0x2a3)]*0x64)[_0x4de387(0x23a)](0x1),_0x13a72b=confirm(_0x4de387(0x182)+_0x466d32+'%。是否从上次中断之处继续?');_0x13a72b?(_0x261c25=_0x5313bf[_0x4de387(0x1ce)],toastr[_0x4de387(0x1f6)]('遵命,将从第\x20'+(_0x261c25+0x1)+_0x4de387(0x214),'圣旨已达'),log(_0x4de387(0x13b)+_0x29f257+_0x4de387(0x203)+_0x261c25+_0x4de387(0xfb),_0x4de387(0x1f6))):(_0x395d66[_0x4de387(0x183)](_0x29f257),toastr[_0x4de387(0x1f6)](_0x4de387(0x17f),_0x4de387(0x207)),log(_0x4de387(0x1c7)+_0x29f257+',重新开始。',_0x4de387(0x12e)));}_0x1402c4=new AbortController();const _0x4abdbf=_0x1402c4[_0x4de387(0x108)];_0x1c0f0e[_0x4de387(0x1ac)]['display']=_0x4de387(0x274),_0x52e1e0['style']['display']='block',_0x12359f['textContent']='正在读取文件...',_0x241624[_0x4de387(0x2de)]=0x0;try{const _0x36016e=await _0x17309e[_0x4de387(0xd5)](),_0x2a8af8=_0x371b97=>{const _0x2678e5=_0x4de387;_0x12359f['textContent']='处理中:\x20'+_0x371b97[_0x2678e5(0x180)]+'\x20('+_0x371b97[_0x2678e5(0x250)]+'/'+_0x371b97[_0x2678e5(0x1fc)]+')',_0x241624[_0x2678e5(0x2de)]=_0x371b97[_0x2678e5(0x250)]/_0x371b97['total']*0x64;},_0x2ebb94=()=>{const _0x29b463=_0x4de387;updatePanelStatus(),log(_0x29b463(0x239),_0x29b463(0x1f6));},_0x46c73b=await _0xad1447[_0x4de387(0x1a1)](_0x36016e,'novel',{'sourceName':_0x17309e[_0x4de387(0xf0)]},_0x2a8af8,_0x4abdbf,log,_0x2ebb94,_0x29f257,_0x261c25);if(_0x46c73b['success'])toastr[_0x4de387(0x28d)](_0x4de387(0x169)+_0x46c73b[_0x4de387(0x24d)]+'\x20个知识块'),_0x12359f[_0x4de387(0x1c5)]=_0x4de387(0x2a8)+_0x46c73b['count']+_0x4de387(0x156),_0x241624['value']=0x64,updatePanelStatus();else throw new Error(_0x46c73b['error']||'未知错误');}catch(_0x2b2755){_0x2b2755[_0x4de387(0xf0)]===_0x4de387(0x233)?(toastr[_0x4de387(0x1f6)](_0x4de387(0x268)),_0x12359f[_0x4de387(0x1c5)]=_0x4de387(0x177)):(toastr[_0x4de387(0x216)](_0x4de387(0x2ba)+_0x2b2755['message']+_0x4de387(0x29f)),_0x12359f[_0x4de387(0x1c5)]=_0x4de387(0x272)+_0x2b2755['message']);}finally{setTimeout(()=>{const _0x3b61b0=_0x4de387;_0x1c0f0e[_0x3b61b0(0x1ac)][_0x3b61b0(0x192)]=_0x3b61b0(0x129),_0x52e1e0[_0x3b61b0(0x1ac)]['display']='none',_0x159664[_0x3b61b0(0x2de)]='',_0x17309e=null,_0xb837[_0x3b61b0(0x1c5)]=_0x3b61b0(0x2b7);},0xbb8);}}),_0x179a2b[_0x43ca50(0x2e4)](_0x43ca50(0x166),()=>{_0x1402c4&&_0x1402c4['abort']();});}function bindSessionLockEvent(){const _0x258263=_0x362e0d,_0x3a5c2d=document[_0x258263(0x2b9)](_0x258263(0x2b1));if(!_0x3a5c2d)return;_0x3a5c2d[_0x258263(0x2e4)]('click',async()=>{const _0x2350f1=_0x258263,_0x3f5734=await _0xad1447[_0x2350f1(0x131)]();updateSessionLockUI(_0x3f5734);if(_0x3f5734){const _0x2e9d21=_0xad1447['getLockedSessionInfo']();_0x2e9d21&&(toastr[_0x2350f1(0x28d)](_0x2350f1(0x1c4)+_0x2e9d21['id'],_0x2350f1(0x2d1)),log('会话已锁定到宝库:\x20'+_0x2e9d21['id'],_0x2350f1(0x28d)));}else toastr['info'](_0x2350f1(0x246),'诏曰'),log('会话已解锁。','info');updatePanelStatus();}),updateSessionLockUI(_0xad1447['isSessionLocked']());}function updateSessionLockUI(_0xe3c4ec){const _0x4c255f=_0x362e0d,_0x15697b=document[_0x4c255f(0x2b9)](_0x4c255f(0x2b1));if(!_0x15697b)return;const _0x32b655=_0x15697b[_0x4c255f(0x14c)]('i'),_0x353410=_0x15697b[_0x4c255f(0x14c)]('span');_0xe3c4ec?(_0x15697b[_0x4c255f(0x19a)][_0x4c255f(0x157)](_0x4c255f(0x21e)),_0x32b655['className']=_0x4c255f(0x260),_0x353410[_0x4c255f(0x1c5)]='解锁会话',_0x15697b[_0x4c255f(0x175)]=_0x4c255f(0x278)):(_0x15697b[_0x4c255f(0x19a)][_0x4c255f(0x267)](_0x4c255f(0x21e)),_0x32b655[_0x4c255f(0x1f4)]=_0x4c255f(0x1d3),_0x353410[_0x4c255f(0x1c5)]=_0x4c255f(0x1b9),_0x15697b['title']='点击以锁定,让翰林院固定操作当前角色的宝库');}function bindPanelToggleEvents(){const _0x358a30=_0x362e0d,_0x5491a8=document[_0x358a30(0x2b9)]('amily2_open_rag_palace');if(_0x5491a8){}}function bindTutorialEvents(){const _0x2ce784=_0x362e0d,_0x296fdc=document[_0x2ce784(0x2b9)]('amily2_open_hanlin_tutorial');_0x296fdc&&_0x296fdc[_0x2ce784(0x2e4)](_0x2ce784(0x166),()=>{const _0x1594f5=_0x2ce784;showContentModal(_0x1594f5(0x130),_0x1594f5(0x167));});}function bindInternalUIEvents(){const _0xb96d1=_0x362e0d,_0x470d85=document[_0xb96d1(0x298)](_0xb96d1(0x1fb));_0x470d85[_0xb96d1(0x270)](_0x40b022=>{const _0x6ab4dc=_0xb96d1;_0x40b022[_0x6ab4dc(0x2e4)](_0x6ab4dc(0x166),()=>{const _0x4ae40e=_0x6ab4dc,_0x160ba7=_0x40b022[_0x4ae40e(0x154)]['tab'],_0x408d22=_0x4ae40e(0x1fe)+_0x160ba7+'-tab';document[_0x4ae40e(0x298)]('.hly-tab-pane')[_0x4ae40e(0x270)](_0x19ed0f=>{const _0x5b9684=_0x4ae40e;_0x19ed0f['classList'][_0x5b9684(0x28b)]('active',_0x19ed0f['id']===_0x408d22);}),_0x470d85[_0x4ae40e(0x270)](_0x405ee6=>_0x405ee6[_0x4ae40e(0x19a)]['toggle'](_0x4ae40e(0x21e),_0x405ee6===_0x40b022));});});const _0x4c1f98=document['getElementById'](_0xb96d1(0x234));_0x4c1f98&&_0x4c1f98[_0xb96d1(0x2e4)](_0xb96d1(0xeb),handleApiModeChange);const _0x33920a=document[_0xb96d1(0x2b9)](_0xb96d1(0x293)),_0x261f45=document[_0xb96d1(0x2b9)](_0xb96d1(0x28f));_0x33920a&&_0x261f45&&_0x33920a[_0xb96d1(0x2e4)](_0xb96d1(0xeb),()=>{const _0x2d8076=_0xb96d1;_0x261f45[_0x2d8076(0x1ac)][_0x2d8076(0x192)]=_0x33920a['checked']?_0x2d8076(0xe6):_0x2d8076(0x274);});const _0x1bfb06=document['getElementById'](_0xb96d1(0x1a2));_0x1bfb06&&_0x1bfb06[_0xb96d1(0x2e4)](_0xb96d1(0xeb),handleWorldbookSelectionChange);const _0x18212e=document[_0xb96d1(0x2b9)](_0xb96d1(0x295));_0x18212e&&_0x18212e['addEventListener'](_0xb96d1(0x166),()=>showRulesModal(_0xb96d1(0x2cc)));const _0x384c38=document[_0xb96d1(0x2b9)](_0xb96d1(0x2db));_0x384c38&&_0x384c38['addEventListener'](_0xb96d1(0x166),()=>showRulesModal(_0xb96d1(0x204)));const _0xfcc165=document['getElementById'](_0xb96d1(0x275)),_0x27d5a5=document[_0xb96d1(0x2b9)](_0xb96d1(0x146));_0xfcc165&&_0x27d5a5&&(_0xfcc165['addEventListener']('click',_0x361490=>{const _0x14f865=_0xb96d1;_0x361490[_0x14f865(0x276)]();const _0xa09d26=_0x27d5a5['style'][_0x14f865(0x192)]===_0x14f865(0xe6);_0x27d5a5[_0x14f865(0x1ac)]['display']=_0xa09d26?_0x14f865(0x274):_0x14f865(0xe6);}),_0x27d5a5['addEventListener'](_0xb96d1(0xeb),_0x2693e7=>{const _0x5cdd48=_0xb96d1,_0x2ce2b1=_0x2693e7[_0x5cdd48(0xfe)];if(_0x2ce2b1['type']!==_0x5cdd48(0x2c9))return;const _0x24322d=_0x27d5a5[_0x5cdd48(0x298)](_0x5cdd48(0x139)),_0x2f3d44=document[_0x5cdd48(0x2b9)](_0x5cdd48(0x240));if(_0x2ce2b1['id']===_0x5cdd48(0x240))_0x24322d[_0x5cdd48(0x270)](_0xeac020=>_0xeac020['checked']=_0x2ce2b1['checked']);else{const _0x3dc4ae=Array['from'](_0x24322d)['every'](_0x5dadd1=>_0x5dadd1['checked']);_0x2f3d44[_0x5cdd48(0x2a6)]=_0x3dc4ae;}const _0x18bb8f=_0x27d5a5[_0x5cdd48(0x298)]('.hly-hist-entry-checkbox:checked')[_0x5cdd48(0x1dc)],_0x38247a=_0x24322d[_0x5cdd48(0x1dc)];_0xfcc165[_0x5cdd48(0x14c)]('span')['textContent']=_0x5cdd48(0x1ae)+_0x18bb8f+_0x5cdd48(0x11e)+_0x38247a+_0x5cdd48(0x235);}),document[_0xb96d1(0x2e4)]('click',_0x131c45=>{const _0x3603e1=_0xb96d1;!_0xfcc165['contains'](_0x131c45['target'])&&!_0x27d5a5[_0x3603e1(0x121)](_0x131c45['target'])&&(_0x27d5a5[_0x3603e1(0x1ac)][_0x3603e1(0x192)]=_0x3603e1(0x274));}));const _0x8c9f21=document['getElementById'](_0xb96d1(0x106));_0x8c9f21&&_0x8c9f21[_0xb96d1(0x2e4)](_0xb96d1(0x166),deleteAllLocalKnowledgeBases);const _0x1c89cb=document[_0xb96d1(0x2b9)](_0xb96d1(0x187));_0x1c89cb&&_0x1c89cb[_0xb96d1(0x2e4)]('click',()=>moveAllKnowledgeBases(_0xb96d1(0x23c)));const _0x40ca86=document[_0xb96d1(0x2b9)](_0xb96d1(0x263));_0x40ca86&&_0x40ca86[_0xb96d1(0x2e4)](_0xb96d1(0x166),()=>moveAllKnowledgeBases(_0xb96d1(0x1da)));const _0x1136ce=[_0xb96d1(0x1e8),_0xb96d1(0x28c)];_0x1136ce[_0xb96d1(0x270)](_0x4b6fac=>{const _0x593745=_0xb96d1,_0x595504=document['getElementById'](_0x4b6fac);_0x595504&&(_0x595504[_0x593745(0x2e4)]('click',handleKbAction),_0x595504[_0x593745(0x2e4)]('change',handleKbAction));}),document[_0xb96d1(0x2b9)](_0xb96d1(0x1bb))[_0xb96d1(0x2e4)](_0xb96d1(0xeb),_0x259945=>handleSelectAll(_0x259945,'global')),document[_0xb96d1(0x2b9)](_0xb96d1(0x2ea))['addEventListener'](_0xb96d1(0xeb),_0x184bc1=>handleSelectAll(_0x184bc1,_0xb96d1(0x290))),document[_0xb96d1(0x2b9)](_0xb96d1(0xe4))[_0xb96d1(0x2e4)](_0xb96d1(0x166),_0x4dfbe0=>handleBulkAction(_0x4dfbe0,_0xb96d1(0x22c))),document[_0xb96d1(0x2b9)](_0xb96d1(0x271))[_0xb96d1(0x2e4)](_0xb96d1(0x166),_0x2cdbf4=>handleBulkAction(_0x2cdbf4,_0xb96d1(0x290)));}function initializeUnifiedInjectionEditor(){const _0x456bd5=_0x362e0d,_0x2baa88=document[_0x456bd5(0x2b9)]('hly-injection-source-selector'),_0x3b6ce9=document[_0x456bd5(0x2b9)](_0x456bd5(0x1f5)),_0x3ee518=document[_0x456bd5(0x2b9)]('hly-unified-template-notes'),_0x552c08=document[_0x456bd5(0x298)](_0x456bd5(0x1dd)),_0xe6582f=document['getElementById'](_0x456bd5(0x205)),_0x1c9ec7=document[_0x456bd5(0x2b9)]('hly-unified-injection-role');if(!_0x2baa88)return;const _0xc10bb={'novel':_0x456bd5(0x22d),'chat':'{{chat_text}}','lorebook':_0x456bd5(0xd1),'manual':'{{manual_text}}'};function _0x302a15(){const _0x2a6084=_0x456bd5,_0x24cfd7=_0x2baa88[_0x2a6084(0x2de)],_0x1098f5=_0xad1447[_0x2a6084(0x1aa)](),_0x1ef88b=_0x1098f5[_0x2a6084(0x18a)+_0x24cfd7]||{};_0x3b6ce9['value']=_0x1ef88b['template']||'',_0x3ee518[_0x2a6084(0x1c5)]='以\x20'+(_0xc10bb[_0x24cfd7]||'{{text}}')+_0x2a6084(0x19f);const _0x20fbc0=_0x1ef88b[_0x2a6084(0x1cc)]!==undefined?String(_0x1ef88b['position']):'2';_0x552c08[_0x2a6084(0x270)](_0x4d3ea7=>_0x4d3ea7['checked']=_0x4d3ea7[_0x2a6084(0x2de)]===_0x20fbc0),_0xe6582f[_0x2a6084(0x2de)]=_0x1ef88b['depth']||0x0,_0x1c9ec7[_0x2a6084(0x2de)]=_0x1ef88b[_0x2a6084(0x1bd)]!==undefined?String(_0x1ef88b[_0x2a6084(0x1bd)]):'0';const _0xd093f=_0x20fbc0==='1';_0xe6582f[_0x2a6084(0x19c)]=!_0xd093f,_0x1c9ec7[_0x2a6084(0x19c)]=!_0xd093f;}function _0x23b907(){const _0x56abe6=_0x456bd5,_0x1ff746=_0x2baa88[_0x56abe6(0x2de)];updateAndSaveSetting(_0x56abe6(0x18a)+_0x1ff746+_0x56abe6(0xdd),_0x3b6ce9[_0x56abe6(0x2de)]);const _0x582b5d=document[_0x56abe6(0x14c)](_0x56abe6(0x279));_0x582b5d&&updateAndSaveSetting(_0x56abe6(0x18a)+_0x1ff746+'.position',parseInt(_0x582b5d['value'],0xa)),updateAndSaveSetting('injection_'+_0x1ff746+'.depth',parseInt(_0xe6582f[_0x56abe6(0x2de)],0xa)),updateAndSaveSetting(_0x56abe6(0x18a)+_0x1ff746+'.depth_role',parseInt(_0x1c9ec7[_0x56abe6(0x2de)],0xa));}_0x2baa88[_0x456bd5(0x2e4)](_0x456bd5(0xeb),_0x302a15);const _0x5bd1a6=debounce(_0x23b907,0x12c);_0x3b6ce9['addEventListener'](_0x456bd5(0x228),_0x5bd1a6),_0xe6582f[_0x456bd5(0x2e4)]('change',_0x23b907),_0x1c9ec7['addEventListener'](_0x456bd5(0xeb),_0x23b907),_0x552c08[_0x456bd5(0x270)](_0x2636cb=>_0x2636cb[_0x456bd5(0x2e4)](_0x456bd5(0xeb),()=>{const _0x142ba4=_0x456bd5;_0x23b907();const _0x331a7a=_0x2636cb[_0x142ba4(0x2de)]==='1'&&_0x2636cb[_0x142ba4(0x2a6)];_0xe6582f['disabled']=!_0x331a7a,_0x1c9ec7[_0x142ba4(0x19c)]=!_0x331a7a;})),_0x302a15();}function handleApiModeChange(){const _0x5ab5b7=_0x362e0d,_0x54e3c6=document[_0x5ab5b7(0x2b9)]('hly-api-endpoint')['value'],_0x4c899c=document[_0x5ab5b7(0x2b9)](_0x5ab5b7(0x119)),_0x51df40=document[_0x5ab5b7(0x2b9)](_0x5ab5b7(0x125)),_0x2f5392=document[_0x5ab5b7(0x2b9)](_0x5ab5b7(0x2c4)),_0x2212d2=_0x2f5392[_0x5ab5b7(0x136)];if(!_0x4c899c||!_0x51df40)return;_0x4c899c[_0x5ab5b7(0x1ac)]['display']=_0x5ab5b7(0xe6),_0x51df40['style'][_0x5ab5b7(0x192)]=_0x5ab5b7(0xe6);switch(_0x54e3c6){case _0x5ab5b7(0x178):_0x4c899c[_0x5ab5b7(0x1ac)][_0x5ab5b7(0x192)]=_0x5ab5b7(0x274),_0x51df40[_0x5ab5b7(0x14c)](_0x5ab5b7(0x2d3))[_0x5ab5b7(0x1c5)]=_0x5ab5b7(0x1a4),_0x51df40[_0x5ab5b7(0x14c)](_0x5ab5b7(0x228))['placeholder']=_0x5ab5b7(0x2cb);break;case _0x5ab5b7(0xd4):_0x4c899c[_0x5ab5b7(0x14c)](_0x5ab5b7(0x2d3))['textContent']=_0x5ab5b7(0x2a7),_0x4c899c['querySelector'](_0x5ab5b7(0x228))[_0x5ab5b7(0x23e)]=_0x5ab5b7(0x117),_0x51df40[_0x5ab5b7(0x1ac)][_0x5ab5b7(0x192)]=_0x5ab5b7(0x274);break;case _0x5ab5b7(0x2ec):default:_0x4c899c[_0x5ab5b7(0x14c)]('label')[_0x5ab5b7(0x1c5)]='自定义路径:',_0x4c899c[_0x5ab5b7(0x14c)](_0x5ab5b7(0x228))[_0x5ab5b7(0x23e)]=_0x5ab5b7(0x2dd),_0x51df40['querySelector'](_0x5ab5b7(0x2d3))[_0x5ab5b7(0x1c5)]=_0x5ab5b7(0x1e9);break;}}function loadSettingsToUI(){const _0x186e31=_0x362e0d,_0x2538fb=_0xad1447[_0x186e31(0x1aa)]();if(!_0x2538fb)return;document['getElementById'](_0x186e31(0x1f9))[_0x186e31(0x2a6)]=_0x2538fb[_0x186e31(0x18c)][_0x186e31(0x120)],document[_0x186e31(0x2b9)](_0x186e31(0x234))[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x18c)]['apiEndpoint'],document[_0x186e31(0x2b9)](_0x186e31(0x145))[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x18c)][_0x186e31(0x174)],document[_0x186e31(0x2b9)](_0x186e31(0x221))[_0x186e31(0x2de)]=_0x2538fb['retrieval'][_0x186e31(0x18f)];const _0x564df7=document[_0x186e31(0x2b9)](_0x186e31(0x2c4));if(_0x564df7['options'][_0x186e31(0x1dc)]===0x0){const _0x5b6c5e=_0x2538fb['retrieval'][_0x186e31(0x262)],_0x154d7d=new Option(_0x5b6c5e,_0x5b6c5e,!![],!![]);_0x564df7[_0x186e31(0x157)](_0x154d7d);}_0x564df7[_0x186e31(0x2de)]=_0x2538fb['retrieval'][_0x186e31(0x262)],document['getElementById'](_0x186e31(0x2d9))[_0x186e31(0x2a6)]=_0x2538fb[_0x186e31(0x18c)][_0x186e31(0x1b6)],document[_0x186e31(0x2b9)](_0x186e31(0x2cf))['value']=_0x2538fb[_0x186e31(0x105)]['chunkSize'],document[_0x186e31(0x2b9)](_0x186e31(0x245))['value']=_0x2538fb[_0x186e31(0x105)][_0x186e31(0x2b5)],document[_0x186e31(0x2b9)](_0x186e31(0x155))[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x105)]['matchThreshold'],document[_0x186e31(0x2b9)](_0x186e31(0x25e))[_0x186e31(0x2de)]=_0x2538fb['advanced'][_0x186e31(0x2d2)],document['getElementById'](_0x186e31(0x13a))[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x105)][_0x186e31(0xf7)],document[_0x186e31(0x2b9)](_0x186e31(0x190))[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x18c)][_0x186e31(0x11d)],handleApiModeChange(),document['getElementById'](_0x186e31(0x20c))[_0x186e31(0x2a6)]=_0x2538fb[_0x186e31(0x2cc)][_0x186e31(0x120)],document[_0x186e31(0x2b9)](_0x186e31(0x1df))['checked']=_0x2538fb[_0x186e31(0x2cc)]['autoCondense'],document[_0x186e31(0x2b9)](_0x186e31(0x1b7))[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x2cc)][_0x186e31(0x1ed)],document[_0x186e31(0x2b9)](_0x186e31(0xf6))[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x2cc)][_0x186e31(0x2c3)],document[_0x186e31(0x2b9)]('hly-layer-end')[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x2cc)]['layerEnd'],document[_0x186e31(0x2b9)]('hly-include-user')[_0x186e31(0x2a6)]=_0x2538fb[_0x186e31(0x2cc)][_0x186e31(0xe7)][_0x186e31(0x29d)],document[_0x186e31(0x2b9)](_0x186e31(0x2d7))[_0x186e31(0x2a6)]=_0x2538fb[_0x186e31(0x2cc)]['messageTypes']['ai'];const _0x1185e8=document[_0x186e31(0x2b9)]('hly-tag-extraction-toggle'),_0x4ad8ea=document[_0x186e31(0x2b9)]('hly-tag-input'),_0x52be14=document['getElementById'](_0x186e31(0x28f));_0x1185e8[_0x186e31(0x2a6)]=_0x2538fb[_0x186e31(0x2cc)][_0x186e31(0xe8)],_0x4ad8ea[_0x186e31(0x2de)]=_0x2538fb['condensation']['tags'],_0x52be14[_0x186e31(0x1ac)]['display']=_0x1185e8[_0x186e31(0x2a6)]?'block':'none',document[_0x186e31(0x2b9)](_0x186e31(0x2d5))[_0x186e31(0x2a6)]=_0x2538fb[_0x186e31(0x289)][_0x186e31(0x120)],document[_0x186e31(0x2b9)](_0x186e31(0x1cd))[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x289)][_0x186e31(0x269)],document[_0x186e31(0x2b9)]('hly-rerank-api-key')[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x289)][_0x186e31(0x18f)];const _0x45bcf3=document['getElementById']('hly-rerank-model');if(_0x45bcf3[_0x186e31(0x27d)][_0x186e31(0x1dc)]===0x0){const _0x2293c5=_0x2538fb[_0x186e31(0x289)][_0x186e31(0x13d)];if(_0x2293c5){const _0xf6059a=new Option(_0x2293c5,_0x2293c5,!![],!![]);_0x45bcf3[_0x186e31(0x157)](_0xf6059a);}}_0x45bcf3[_0x186e31(0x2de)]=_0x2538fb[_0x186e31(0x289)]['model'],document['getElementById'](_0x186e31(0x242))[_0x186e31(0x2de)]=_0x2538fb['rerank'][_0x186e31(0x111)],document[_0x186e31(0x2b9)](_0x186e31(0x241))['value']=_0x2538fb[_0x186e31(0x289)][_0x186e31(0x173)],document[_0x186e31(0x2b9)](_0x186e31(0x2be))['checked']=_0x2538fb['rerank'][_0x186e31(0x1b6)],document[_0x186e31(0x2b9)](_0x186e31(0x1e4))[_0x186e31(0x2a6)]=_0x2538fb['rerank'][_0x186e31(0x2ad)];const _0x5d33b0=_0x2538fb[_0x186e31(0x289)][_0x186e31(0x25b)];if(_0x5d33b0){document[_0x186e31(0x2b9)](_0x186e31(0x1f8))['checked']=_0x5d33b0[_0x186e31(0x120)];const _0x48a164=[_0x186e31(0x118),'chat_history',_0x186e31(0x15c),_0x186e31(0x26e)];_0x48a164['forEach'](_0x2ed3f8=>{const _0x1610d0=_0x186e31,_0x15145f=_0x5d33b0[_0x1610d0(0x1b2)][_0x2ed3f8];if(_0x15145f){const _0x34a686=document[_0x1610d0(0x14c)](_0x1610d0(0x25d)+_0x2ed3f8+'.enabled\x22]'),_0x9cb4e7=document['querySelector'](_0x1610d0(0x25d)+_0x2ed3f8+'.count\x22]');if(_0x34a686)_0x34a686['checked']=_0x15145f[_0x1610d0(0x120)];if(_0x9cb4e7)_0x9cb4e7[_0x1610d0(0x2de)]=_0x15145f[_0x1610d0(0x24d)];}});}_0x2538fb[_0x186e31(0x204)]&&(document['getElementById'](_0x186e31(0xe2))[_0x186e31(0x2a6)]=_0x2538fb['queryPreprocessing']['enabled']),_0x2538fb['retrieval'][_0x186e31(0x21c)]!==undefined&&(document['getElementById']('hly-independent-chat-memory-enabled')['checked']=_0x2538fb['retrieval'][_0x186e31(0x21c)]);}function saveSettingsFromUI(_0x7ddea4=!![]){const _0x31a672=_0x362e0d,_0x3d33a8=document[_0x31a672(0x2b9)]('hly-modal-container');if(!_0x3d33a8)return;const _0x331215=_0x3d33a8[_0x31a672(0x298)](_0x31a672(0x1e0));_0x331215['forEach'](_0x3a8726=>{const _0x42ccd9=_0x31a672,_0x139661=_0x3a8726[_0x42ccd9(0x154)][_0x42ccd9(0x1ab)];if(!_0x139661)return;let _0x1e29bb;const _0x5e6159=_0x3a8726[_0x42ccd9(0x154)][_0x42ccd9(0x1e7)]||'string';if(_0x3a8726[_0x42ccd9(0x1e7)]===_0x42ccd9(0x2c9))_0x1e29bb=_0x3a8726[_0x42ccd9(0x2a6)];else{if(_0x3a8726[_0x42ccd9(0x1e7)]===_0x42ccd9(0x10d)){if(!_0x3a8726[_0x42ccd9(0x2a6)])return;_0x1e29bb=_0x3a8726[_0x42ccd9(0x2de)];}else _0x1e29bb=_0x3a8726[_0x42ccd9(0x2de)];}switch(_0x5e6159){case _0x42ccd9(0x288):_0x1e29bb=parseInt(_0x1e29bb,0xa);break;case _0x42ccd9(0x200):_0x1e29bb=parseFloat(_0x1e29bb);break;case'boolean':if(typeof _0x1e29bb!=='boolean')_0x1e29bb=_0x1e29bb===_0x42ccd9(0x201);break;}const _0x14ea7d=_0xad1447[_0x42ccd9(0x1aa)](),_0x2cb39b=_0x139661['split']('.');let _0x4d0e43=_0x14ea7d;for(let _0x3000e7=0x0;_0x3000e7<_0x2cb39b[_0x42ccd9(0x1dc)]-0x1;_0x3000e7++){_0x4d0e43=_0x4d0e43[_0x2cb39b[_0x3000e7]]=_0x4d0e43[_0x2cb39b[_0x3000e7]]||{};}_0x4d0e43[_0x2cb39b[_0x2cb39b[_0x42ccd9(0x1dc)]-0x1]]=_0x1e29bb;}),_0xad1447[_0x31a672(0x188)](),!_0x7ddea4&&(log(_0x31a672(0x2c2),'success'),toastr[_0x31a672(0x28d)](_0x31a672(0x115),_0x31a672(0x207)));}function resetSettingsToUI(){const _0x85e9d0=_0x362e0d;confirm(_0x85e9d0(0x27a))&&(_0xad1447['resetSettings'](),loadSettingsToUI(),toastr['info'](_0x85e9d0(0x12a),'诏曰'));}async function updatePanelStatus(){const _0x2542c4=_0x362e0d,_0x502080=_0xad1447[_0x2542c4(0x23f)](),_0x510a61=document['getElementById'](_0x2542c4(0x133)),_0x28e726=document['getElementById'](_0x2542c4(0x2c8));if(_0x502080){const _0x27bf51=_0xad1447[_0x2542c4(0x185)]();_0x27bf51&&(_0x510a61[_0x2542c4(0x1c5)]=_0x2542c4(0x210),_0x28e726[_0x2542c4(0x1c5)]=_0x27bf51['id'],_0x28e726[_0x2542c4(0x175)]=_0x2542c4(0x294)+_0x27bf51['id'],_0x510a61['classList'][_0x2542c4(0x157)]('hly-locked-status'),_0x28e726[_0x2542c4(0x19a)]['add'](_0x2542c4(0x259)));}else _0x510a61[_0x2542c4(0x1c5)]=_0x34bd5c[_0x2542c4(0x2b3)](),_0x28e726[_0x2542c4(0x1c5)]=_0x34bd5c[_0x2542c4(0x297)]()||'无',_0x28e726[_0x2542c4(0x175)]='',_0x510a61[_0x2542c4(0x19a)][_0x2542c4(0x267)](_0x2542c4(0x259)),_0x28e726[_0x2542c4(0x19a)][_0x2542c4(0x267)](_0x2542c4(0x259));const _0x5d3775=document[_0x2542c4(0x2b9)](_0x2542c4(0x266));_0x5d3775[_0x2542c4(0x1c5)]='...';try{const _0x447a52=await _0xad1447['getVectorCount']();_0x5d3775['textContent']=_0x447a52;}catch(_0x2d4213){console[_0x2542c4(0x216)]('[翰林院-枢纽]\x20更新忆识数量失败:',_0x2d4213),_0x5d3775['textContent']=_0x2542c4(0x179),_0x5d3775['title']=_0x2542c4(0x2eb)+_0x2d4213['message'];}const _0x3ab55a=document['getElementById']('hly-condensation-results');if(_0x3ab55a&&!_0x3ab55a[_0x2542c4(0x154)][_0x2542c4(0x2e0)]){const _0x3378a5=_0xad1447[_0x2542c4(0x1aa)](),_0x2bc37a=await _0xad1447[_0x2542c4(0x110)]();if(_0x3378a5[_0x2542c4(0x16f)]&&_0x3378a5[_0x2542c4(0x16f)][_0x2bc37a]){const _0x583925=_0x3378a5['condensationHistory'][_0x2bc37a];_0x3ab55a['innerHTML']=_0x2542c4(0x19d)+_0x583925[_0x2542c4(0x123)]+_0x2542c4(0x23d)+_0x583925['end']+_0x2542c4(0x14d);}else _0x3ab55a[_0x2542c4(0x14e)]='
可在此预览凝识结果。
';}renderKnowledgeBases();}async function moveAllKnowledgeBases(_0x2f26bb){const _0x408256=_0x362e0d,_0x21210e=_0x2f26bb==='globalToLocal',_0x219c50=_0x21210e?_0x408256(0x22c):'local',_0x55d0b0=_0x21210e?'局部':'全局',_0x5c5e81=_0x21210e?_0xad1447['getGlobalKnowledgeBases']():_0xad1447['getLocalKnowledgeBases'](),_0x5f0cdc=Object['keys'](_0x5c5e81);if(_0x5f0cdc['length']===0x0){toastr[_0x408256(0x1f6)]('源区域('+(_0x21210e?'全局':'局部')+')没有任何知识库可供移动。','圣谕');return;}if(!confirm('您确定要将\x20'+_0x5f0cdc['length']+_0x408256(0x2b6)+(_0x21210e?'全局':'局部')+_0x408256(0x2dc)+_0x55d0b0+_0x408256(0x1d7)))return;log(_0x408256(0x140)+_0x5f0cdc['length']+_0x408256(0x114)+_0x219c50+_0x408256(0xde)+(_0x21210e?_0x408256(0x290):_0x408256(0x22c))+_0x408256(0x163),_0x408256(0x1f6));const _0x234752=_0x5f0cdc[_0x408256(0x107)](_0x4ac5ed=>_0xad1447[_0x408256(0x1bc)](_0x4ac5ed,_0x219c50));try{await Promise['all'](_0x234752),toastr[_0x408256(0x28d)]('所有\x20'+_0x5f0cdc[_0x408256(0x1dc)]+_0x408256(0x1bf),_0x408256(0x264)),log(_0x408256(0x198),_0x408256(0x28d));}catch(_0x180405){toastr[_0x408256(0x216)]('批量移动过程中发生错误:\x20'+_0x180405[_0x408256(0x180)],'警报'),log(_0x408256(0x292)+_0x180405[_0x408256(0x180)],'error');}finally{await updatePanelStatus();}}async function deleteAllLocalKnowledgeBases(){const _0xf14780=_0x362e0d,_0x112cf6=_0xad1447[_0xf14780(0x17b)](),_0x413317=Object[_0xf14780(0x2ab)](_0x112cf6);if(_0x413317[_0xf14780(0x1dc)]===0x0){toastr[_0xf14780(0x1f6)](_0xf14780(0xe3),'圣谕');return;}if(!confirm(_0xf14780(0x138)+_0x413317[_0xf14780(0x1dc)]+_0xf14780(0x257)))return;toastr[_0xf14780(0x1f6)](_0xf14780(0x1fa)+_0x413317[_0xf14780(0x1dc)]+_0xf14780(0x149),'圣旨'),log(_0xf14780(0x219)+_0x413317[_0xf14780(0x1dc)]+'\x20个局部知识库...',_0xf14780(0x12e));let _0x1a91f2=0x0,_0x34fbd7=0x0;for(const _0x525efe of _0x413317){try{await _0xad1447['removeKnowledgeBase'](_0x525efe,'local'),_0x1a91f2++;}catch(_0x52871c){_0x34fbd7++,log(_0xf14780(0x1a7)+_0x525efe+_0xf14780(0x1af)+_0x52871c[_0xf14780(0x180)],_0xf14780(0x216));}}_0x34fbd7>0x0?toastr[_0xf14780(0x216)]('操作完成,但有\x20'+_0x34fbd7+_0xf14780(0xf1),'警报'):toastr[_0xf14780(0x28d)](_0xf14780(0x100)+_0x1a91f2+_0xf14780(0x2b2),_0xf14780(0x264)),log(_0xf14780(0x195)+_0x1a91f2+_0xf14780(0x1c6)+_0x34fbd7,_0xf14780(0x1f6)),await updatePanelStatus();}async function renderKnowledgeBases(){const _0x586a32=_0x362e0d,_0x368c20=document[_0x586a32(0x2b9)](_0x586a32(0x1e8)),_0x58b3a2=document['getElementById'](_0x586a32(0x28c)),_0x3f840f=document[_0x586a32(0x2b9)](_0x586a32(0x197));if(!_0x368c20||!_0x58b3a2||!_0x3f840f)return;_0x3f840f[_0x586a32(0x1c5)]=_0x34bd5c['getCharacterName']()||_0x586a32(0x280);try{const _0x2f7cf5=_0xad1447[_0x586a32(0x17b)](),_0x2d4863=_0xad1447['getGlobalKnowledgeBases']();await _renderKbList(_0x2f7cf5,_0x368c20,_0x586a32(0x290),'hly-kb-list-local-placeholder'),await _renderKbList(_0x2d4863,_0x58b3a2,_0x586a32(0x22c),_0x586a32(0x2cd));}catch(_0x5a0792){console[_0x586a32(0x216)](_0x586a32(0x226),_0x5a0792),_0x368c20['innerHTML']=_0x586a32(0x18d)+_0x5a0792['message']+'',_0x58b3a2['innerHTML']=_0x586a32(0x18d)+_0x5a0792[_0x586a32(0x180)]+_0x586a32(0x2e6);}}async function _renderKbList(_0x5f575e,_0x38268b,_0x4e4538,_0x584f42){const _0x42ad7d=_0x362e0d,_0x32a99b=document[_0x42ad7d(0x2b9)](_0x584f42);_0x38268b[_0x42ad7d(0x14e)]='',_0x38268b[_0x42ad7d(0x27f)](_0x32a99b);if(Object[_0x42ad7d(0x2ab)](_0x5f575e)[_0x42ad7d(0x1dc)]===0x0){_0x32a99b[_0x42ad7d(0x1ac)]['display']='block';return;}_0x32a99b[_0x42ad7d(0x1ac)][_0x42ad7d(0x192)]=_0x42ad7d(0x274);const _0x3dd76b=[],_0x2e0264=[];for(const [_0x493063,_0x325afd]of Object[_0x42ad7d(0x27c)](_0x5f575e)){_0x325afd[_0x42ad7d(0xf0)]&&_0x325afd['name'][_0x42ad7d(0x165)](':\x20自动凝识\x20(')?_0x3dd76b[_0x42ad7d(0x2bd)]({'id':_0x493063,..._0x325afd}):_0x2e0264[_0x42ad7d(0x2bd)]({'id':_0x493063,..._0x325afd});}if(_0x3dd76b[_0x42ad7d(0x1dc)]>0x0){const _0xb5c474=document[_0x42ad7d(0x1de)](_0x42ad7d(0x2df));_0xb5c474['className']='hly-kb-group-item';let _0x4f3168=0x0,_0x260e27=!![];const _0x491773=_0x3dd76b[_0x42ad7d(0x107)](_0x1f1e8a=>_0xad1447[_0x42ad7d(0x243)](_0x1f1e8a['id'],_0x4e4538)),_0x5ad4a5=await Promise['all'](_0x491773);_0x3dd76b[_0x42ad7d(0x270)]((_0x46c7f2,_0x21a2b3)=>{_0x46c7f2['vectorCount']=_0x5ad4a5[_0x21a2b3],_0x4f3168+=_0x5ad4a5[_0x21a2b3];if(!_0x46c7f2['enabled'])_0x260e27=![];}),_0x3dd76b['sort']((_0x497f78,_0x417eb1)=>{const _0x1c8a38=_0x42ad7d,_0x11e374=_0x497f78[_0x1c8a38(0xf0)][_0x1c8a38(0x19b)](/\((\d+)-/),_0x5bd324=_0x417eb1[_0x1c8a38(0xf0)][_0x1c8a38(0x19b)](/\((\d+)-/);if(_0x11e374&&_0x5bd324)return parseInt(_0x11e374[0x1])-parseInt(_0x5bd324[0x1]);return _0x497f78['name']['localeCompare'](_0x417eb1['name']);});const _0x7a0419='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20加载失败:\x20',' 上次已从第\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a翰林院宝库状态\x0a--------------------\x0a集合ID:\x20','kbId','hly-super-sort-enabled','\x20操作失败:\x20','.hly-exclusion-rule-row','type','hly-kb-list-local','通行令牌\x20(API\x20Key):','正在查询宝库状态...','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','all','stringify','trim','className','hly-unified-template-editor','info','startHLYHistoriography','hly-priority-retrieval-enabled','hly-retrieval-enabled','正在删除\x20','.hly-nav-item','total','\x20操作成功。','hly-','preventDefault','float','true','清空宝库失败。',',从第\x20','queryPreprocessing','hly-unified-injection-depth','开始对\x20','圣旨已达','','》的批量编纂任务已完成。成功:\x20','indeterminate','\x20操作...','hly-condensation-enabled','》中的\x20','.hly-kb-item-checkbox:checked','规则已保存。','会话已锁定','hly-kb-list-','parse','凝识完成!新增\x20','\x20块继续录入。','input[name=\x22','error','未找到符合条件的消息可供凝识。','each','开始批量删除\x20','》的条目失败:','成功删除了\x20','independentChatMemoryEnabled','[翰林院-枢纽]\x20查询宝库状态失败:','active','161075tOVrxu','tags','hly-api-key','请先选择书库','split','log-info','严重错误','[翰林院-枢纽]\x20渲染知识库列表失败:','未找到符合条件的消息。','input','\x27\x20已更新为:\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','.hly-kb-move-btn','AbortError','hly-api-endpoint','\x20个条目','.hly-preview-item-v2','[翰林院-枢纽]\x20编纂过程发生严重错误:','string','[实时刷新]\x20批次完成,忆识总数已更新。','toFixed','正在为《','globalToLocal','\x20楼凝识至第\x20','placeholder','isSessionLocked','hly-hist-select-all-entries','hly-rerank-hybrid-alpha','hly-rerank-top-n','getVectorCount','[翰林院-枢纽]\x20凝识过程发生错误:','hly-overlap-size','会话已解锁,将跟随当前角色。','\x20条消息,开始凝识...','\x20楼到\x20','3388HSvstk','检测到预览后待处理的消息对象,开始精确凝识...','hly-kb-select-all-','获取模型失败:\x20','count','正在处理您确认后的文书...','重命名知识库\x20','processed','\x20个知识库。','条)