diff --git a/MiZheSi/index.js b/MiZheSi/index.js index 6f2ecc3..996523b 100644 --- a/MiZheSi/index.js +++ b/MiZheSi/index.js @@ -1 +1 @@ -(function(_0x3a69cd,_0x4d5c96){function _0xde35be(_0x94222e,_0x51ddf2,_0x1d8783,_0x491cf1){return _0x3c2d(_0x94222e-0x1eb,_0x491cf1);}function _0x47b8a0(_0x1fbdc2,_0x5e7a03,_0x4ca8e4,_0x2c6681){return _0x3c2d(_0x2c6681- -0x155,_0x5e7a03);}const _0x203119=_0x3a69cd();while(!![]){try{const _0x3ded0b=parseInt(_0x47b8a0(0x7a,0x5b,0xa6,0x7d))/(-0x1017+-0x12ba*0x1+0x1169*0x2)+parseInt(_0x47b8a0(-0x6b,-0xcc,-0x9b,-0x68))/(-0x226+0x8c3+-0x69b)*(parseInt(_0xde35be(0x395,0x410,0x35f,0x349))/(0x4ec*-0x5+0x698+-0x47*-0x41))+-parseInt(_0x47b8a0(0x118,0x89,0x68,0xa4))/(-0x2*-0xa49+0x1343+-0x1*0x27d1)+parseInt(_0x47b8a0(-0x1c,0xa,0x1d,-0x24))/(0xfa*0x18+-0x10f9+-0x672)+-parseInt(_0xde35be(0x328,0x34f,0x2f0,0x362))/(-0x55a+-0x793*0x2+-0xa43*-0x2)+parseInt(_0x47b8a0(0x50,-0x30,0x48,-0x22))/(-0x269f*-0x1+0x1*0x6dc+0x4*-0xb5d)+parseInt(_0x47b8a0(0x6e,0x9e,0x6b,0x11))/(-0x53*0x1f+0x2064+-0x164f);if(_0x3ded0b===_0x4d5c96)break;else _0x203119['push'](_0x203119['shift']());}catch(_0x112035){_0x203119['push'](_0x203119['shift']());}}}(_0x8bc7,-0x53d8d*-0x2+-0xd29ae+0x57b7d*0x2));function _0x3c2d(_0x116a4f,_0x4095f9){const _0x8bc76e=_0x8bc7();return _0x3c2d=function(_0x3c2dab,_0x58a2b3){_0x3c2dab=_0x3c2dab-(0xd*0x243+-0x24c1*0x1+0x82f);let _0x305252=_0x8bc76e[_0x3c2dab];return _0x305252;},_0x3c2d(_0x116a4f,_0x4095f9);}import{eventSource,event_types,main_api,stopGeneration}from'/script.js';import{renderExtensionTemplateAsync}from'/scripts/extensions.js';import{POPUP_RESULT,POPUP_TYPE,Popup}from'/scripts/popup.js';import{t}from'/scripts/i18n.js';function _0xe6eed7(_0x19f2fc,_0x251f8f,_0x5e8668,_0x129351){return _0x3c2d(_0x251f8f- -0x312,_0x129351);}import{extensionName}from'../utils/settings.js';function _0x8bc7(){const _0x1935e1=['DxEnW','【密折司】解析JSO','Menu','complete','HbZuJ','length','RactD','list-group','toString','textConten','essage-blo','string','iCGzx','nBpQc','fast','笔修改\x20(Chat\x20','ldIaD','fsLnl','ons','笔修改\x20(Text\x20','事件支持。','开启Amliy2号密','empty','MQwjD','biyQr','SDoDz','\x20\x20\x20\x20\x20\x20\x20\x0a\x20','dth:\x20100%;','FLEqj','content','Input\x20is\x20n','QWRWh','最新版本。','确认修改','oajka','QCGsB','role','hIRCd','LCgmw','GwDOI','JDhII','trace','n版本过旧,缺少必要','info','extensions','\x20\x20\x20\x20\x20\x20','oXSpD','s=\x22mizhesi','的事件支持。请更新至','pxmOR','template','PJnfl','exhRK','cmMtq','ditor-cont','(((.+)+)+)','ZJsnk','放弃修改','-message-c','HPegw','QFVMW','3xIWhvr','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','VdTiq','error','lain-text-','的JSON奏章失败:','CVkUO','fikig','flexGap5','mvXje','\x0a\x20\x20\x20','vBBxt','EJDMS','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20','wERUg','izhesi-mes','zkQSb','warn','izing:\x20bor','classList','customButt','isArray','SBHSI','【密折司】无法找到左','fyzDf','push','NTLbQ','bind','ent','active','.mizhesi-m','KBMMO','exception','zkrht','jZDnM','v\x20class=\x22m','table','773722XZKFho','flex-conta','gqeYE','val','prototype','-message-b','append','array.','PnePa','show','createElem','-item','BOoeD','toggle','gUljK','cancelButt','Kpasp','constructo','log','data','console','UQtMN','CANCELLED','nCtoS','OIsxn','GENERATE_A','CHAT_COMPL','large','textarea\x22>','ot\x20a\x20chat\x20','00%;\x20box-s','siblings','editor','Wjvlp','sage-heade','forEach','GDonh','qKgwJ','sVxnj','3604496UocKTl','okButton','qJfDA','der','#mizhesi-p','wGKzR','pIlbo','prompt','xt-editor\x22','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20','tabIndex','ILYPr','v>\x0a\x20\x20\x20\x20\x20\x20\x20','Pgwqu','heSiEnable','tBjbX','der-box;\x22>','return\x20(fu','dHEuP','ETION_PROM','krPXm','toggleClas','a-scroll','WFEdH','mmhBp','pWWIM','798068FgzZlz','__proto__','KMguH','关闭Amliy2号密','切换【密折司】状态','iner','getElement','fa-solid\x20f','ymqQd','【密折司】已','essage-con','\x20\x20\x20\x0a','NE_PROMPTS','LllgE','oMSDl','div','qknin','sFErG','OneKL','stener','NYnrJ','\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5b311e(-0x2c7,-0x2e4,-0x331,-0x33c)+'v\x20class=\x22m'+_0x5b311e(-0x20d,-0x1cc,-0x231,-0x266)+_0x5b311e(-0x1d5,-0x219,-0x148,-0x200)+_0x5b311e(-0x22f,-0x228,-0x213,-0x298))+_0x3dff4e[_0x5b311e(-0x24f,-0x231,-0x29b,-0x1ee)]+(_0x346a28(-0x1b0,-0x193,-0x13e,-0x1bb)+_0x5b311e(-0x284,-0x217,-0x202,-0x302)+_0x5b311e(-0x284,-0x232,-0x20e,-0x22a)+_0x5b311e(-0x272,-0x2c6,-0x23f,-0x219)+'s=\x22mizhesi'+_0x346a28(-0x1da,-0x226,-0x204,-0x1cb)+'ontent\x22>\x0a\x20'+_0x346a28(-0x224,-0x22c,-0x24d,-0x22d)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5b311e(-0x29e,-0x2ff,-0x2b2,-0x214)+'xtarea\x20cla'+_0x5b311e(-0x26c,-0x22c,-0x253,-0x2d8)+_0x5b311e(-0x260,-0x262,-0x232,-0x2a7)+'textarea\x22>'+_0x5b311e(-0x215,-0x263,-0x266,-0x1ea)+_0x5b311e(-0x21e,-0x1e8,-0x2ab,-0x250)+_0x346a28(-0x218,-0x22b,-0x19b,-0x22d)+_0x346a28(-0x27b,-0x26f,-0x270,-0x1ef)+_0x346a28(-0x252,-0x238,-0x290,-0x293)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5b311e(-0x2d1,-0x307,-0x257,-0x31c)+_0x346a28(-0x2b4,-0x21d,-0x1a1,-0x22d)+_0x346a28(-0x215,-0x1e1,-0x1f9,-0x234)));_0x529aa9[_0x5b311e(-0x235,-0x237,-0x240,-0x1b4)](_0x15f021['tUDMf'])['val'](_0x582057[_0x346a28(-0x179,-0x177,-0x18c,-0x1ff)]),_0x37a77e[_0x346a28(-0x1d6,-0x18c,-0x1ab,-0x19a)](_0x529aa9),_0x529aa9[_0x346a28(-0x19e,-0x162,-0x152,-0x1de)](_0x15f021[_0x346a28(-0x226,-0x190,-0x239,-0x1a6)])['on']('click',function(){function _0x5647b6(_0x1f0a95,_0x499955,_0x1570df,_0x521a21){return _0x346a28(_0x1f0a95-0x67,_0x1570df,_0x1570df-0x74,_0x499955-0x410);}const _0x1cf298=_0x1b9da3[_0x5647b6(0x16a,0x173,0x18a,0x181)](_0x21edc7,this)[_0x5647b6(0x30d,0x28f,0x2c0,0x2b6)](_0x5647b6(0x206,0x269,0x269,0x230)+_0x5647b6(0x1d4,0x195,0x162,0x120)+_0x2a299e(0xc8,0x9e,0x46,0x9e)),_0x54869e=_0x1b9da3[_0x5647b6(0x157,0x1a7,0x1f4,0x13e)](_0x419f4b,this)[_0x5647b6(0x170,0x1fc,0x22e,0x1a4)](_0x5647b6(0x24a,0x269,0x245,0x2b6)+_0x5647b6(0x204,0x1b9,0x13d,0x141)+'ck');_0x54869e[_0x2a299e(0x46,0xb1,0x12,0x71)+'s'](_0x1b9da3[_0x5647b6(0x211,0x1e5,0x1dc,0x226)]);function _0x2a299e(_0x390d48,_0x2384df,_0x1b9e4c,_0x3f6f6a){return _0x5b311e(_0x390d48-0x327,_0x2384df,_0x1b9e4c-0x127,_0x3f6f6a-0x21);}_0x1cf298[_0x2a299e(0xcd,0x85,0x93,0xc7)+'e'](_0x1b9da3[_0x2a299e(0xbf,0x66,0x74,0xbd)]);});}}const _0x3d81b7=_0x106afe[_0x346a28(-0x203,-0x168,-0x187,-0x18c)]=_0x106afe[_0x5b311e(-0x1e3,-0x19c,-0x1e7,-0x178)]||{},_0x5d0343=[_0x15f021[_0x5b311e(-0x29a,-0x235,-0x221,-0x20b)],_0x15f021[_0x5b311e(-0x21d,-0x257,-0x299,-0x1a5)],_0x15f021['SjwRv'],_0x15f021[_0x5b311e(-0x24e,-0x288,-0x1bc,-0x270)],_0x15f021['ZfvjK'],_0x15f021[_0x5b311e(-0x1e7,-0x262,-0x1e2,-0x195)],_0x15f021[_0x346a28(-0x24a,-0x28d,-0x2b7,-0x26d)]];for(let _0x39daab=-0xea2*0x1+-0x113b*0x1+0x1*0x1fdd;_0x15f021['tioNB'](_0x39daab,_0x5d0343[_0x5b311e(-0x2b3,-0x271,-0x237,-0x341)]);_0x39daab++){if('zfKzQ'===_0x346a28(-0x248,-0x1fd,-0x21b,-0x26c)){const _0x372d3f=_0x4396e1[_0x5b311e(-0x1e6,-0x253,-0x272,-0x201)+'r']['prototype'][_0x346a28(-0x23c,-0x23a,-0x12c,-0x1aa)](_0x4396e1),_0xfdf6a8=_0x5d0343[_0x39daab],_0x51b810=_0x3d81b7[_0xfdf6a8]||_0x372d3f;_0x372d3f[_0x346a28(-0x2af,-0x313,-0x23e,-0x284)]=_0x4396e1[_0x5b311e(-0x201,-0x1d8,-0x21a,-0x20e)](_0x4396e1),_0x372d3f[_0x5b311e(-0x2b0,-0x26c,-0x23e,-0x22a)]=_0x51b810[_0x5b311e(-0x2b0,-0x33d,-0x2fa,-0x259)][_0x346a28(-0x1ac,-0x1e3,-0x17c,-0x1aa)](_0x51b810),_0x3d81b7[_0xfdf6a8]=_0x372d3f;}else{const _0x40bdfe=_0x3e5b15['parse'](_0x5a2785);_0x4a0130[_0x346a28(-0x268,-0x181,-0x185,-0x1ee)][_0x5b311e(-0x265,-0x2ad,-0x24b,-0x1f8)](-0x2691+-0x1857+-0x2c*-0x16e,_0x4e8378['chat'][_0x346a28(-0x2de,-0x215,-0x1db,-0x25c)],..._0x40bdfe),_0x236791[_0x346a28(-0x137,-0x108,-0x1ac,-0x18e)](_0x315509[_0x346a28(-0x20a,-0x193,-0x241,-0x204)]);}}}});_0x15f021[_0x4874e1(0x24c,0x2be,0x203,0x2d7)](_0x4650c8);const _0x5220b3=_0x15f021[_0x16a317(0x2fe,0x223,0x2b4,0x29b)],_0x290b6a=_0x15f021[_0x4874e1(0x1f0,0x1da,0x179,0x1f1)],_0xc1d662=_0x15f021['mYzPO'],_0x23535c=()=>inspectEnabled?_0x5220b3:_0x290b6a,_0x11a2e1=document[_0x16a317(0x23b,0x218,0x20a,0x290)+_0x16a317(0x2c8,0x2fd,0x2bc,0x27d)](_0x15f021['jnsQA']);_0x11a2e1['id']=_0x15f021[_0x16a317(0x2b0,0x1ec,0x1e0,0x24c)],_0x11a2e1['classList'][_0x4874e1(0x29a,0x2bd,0x301,0x233)](_0x15f021[_0x16a317(0x1bd,0x26e,0x272,0x219)],_0x16a317(0x22d,0x2aa,0x2e0,0x287)+_0x4874e1(0x1fb,0x28b,0x17c,0x1e4),_0x15f021['oCKey'],_0x15f021[_0x4874e1(0x249,0x1ee,0x201,0x20a)]),_0x11a2e1[_0x16a317(0x20e,0x176,0x1f5,0x191)]=0x76*0xd+-0x2653+0x3*0xac7,_0x11a2e1[_0x4874e1(0x292,0x311,0x287,0x25a)]=_0x15f021[_0x16a317(0x193,0x1f2,0x186,0x1e8)];const _0x5ed879=document[_0x16a317(0x2d5,0x259,0x202,0x290)+_0x16a317(0x2df,0x20b,0x2c0,0x27d)]('i');_0x5ed879[_0x4874e1(0x25b,0x1d4,0x27c,0x2ac)]=_0xc1d662,_0x11a2e1[_0x16a317(0x297,0x25c,0x231,0x23e)+'d'](_0x5ed879);const _0x3fc8bd=document[_0x4874e1(0x2e5,0x305,0x2e1,0x2b3)+_0x16a317(0x301,0x2bb,0x26b,0x27d)]('span');_0x3fc8bd['textConten'+'t']=_0x15f021['uMgYW'](_0x23535c),_0x11a2e1[_0x16a317(0x2b2,0x219,0x1b8,0x23e)+'d'](_0x3fc8bd);const _0x4fe6b6=document['getElement'+'ById'](_0x15f021['aXeYv']);if(!_0x4fe6b6){if(_0x15f021[_0x4874e1(0x2f2,0x29e,0x2a3,0x2b6)]!==_0x16a317(0x1e6,0x170,0x212,0x1f6)){console['error'](_0x4874e1(0x2cd,0x245,0x244,0x2a8)+'下角扩展菜单\x20(ex'+'tensionsMe'+_0x4874e1(0x255,0x254,0x285,0x23f));return;}else return _0x3da06c['toString']()[_0x4874e1(0x2be,0x2f6,0x2a9,0x28f)](xTkpzL[_0x16a317(0x1ed,0x1f0,0x1c4,0x1e4)])['toString']()[_0x16a317(0x237,0x2f5,0x22d,0x297)+'r'](_0x452a0c)[_0x16a317(0x2d1,0x260,0x1e8,0x269)](_0x16a317(0x256,0x228,0x2af,0x258)+'+$');}function _0x16a317(_0xcafcd7,_0x2a12bb,_0x52c0de,_0x4c7f73){return _0x17e0d0(_0xcafcd7-0xd6,_0x2a12bb-0xe2,_0x4c7f73- -0x2d6,_0xcafcd7);}if(document[_0x4874e1(0x1fc,0x1c5,0x235,0x26f)+_0x16a317(0x1b6,0x1bc,0x1df,0x20d)](_0x11a2e1['id']))return;_0x4fe6b6['appendChil'+'d'](_0x11a2e1),_0x11a2e1[_0x16a317(0x266,0x26e,0x174,0x204)+_0x4874e1(0x209,0x1e2,0x195,0x18d)](_0x15f021[_0x16a317(0x231,0x24d,0x27e,0x292)],()=>{function _0x2e0ebf(_0x3ba2a3,_0x1fa515,_0x2f76e4,_0x398583){return _0x4874e1(_0x398583- -0x24b,_0x1fa515,_0x2f76e4-0x6c,_0x398583-0x163);}_0x15f021[_0x462268(-0x201,-0x206,-0x26d,-0x208)](toggleInspectNext);function _0x462268(_0x111f78,_0x146be1,_0x3b6124,_0x212a4c){return _0x4874e1(_0x212a4c- -0x497,_0x111f78,_0x3b6124-0x1e1,_0x212a4c-0x2c);}_0x3fc8bd[_0x2e0ebf(0x1b,0x26,-0x8,-0x28)+'t']=_0x15f021['uMgYW'](_0x23535c),_0x11a2e1['classList'][_0x2e0ebf(0xc6,0x12e,0x126,0x9d)](_0x15f021[_0x2e0ebf(0xc,-0x8d,0x33,-0x16)],inspectEnabled);});function _0x4874e1(_0x4c847b,_0x46a0e3,_0x5922cc,_0x5ef517){return _0x17e0d0(_0x4c847b-0x2c,_0x46a0e3-0x9d,_0x4c847b- -0x281,_0x46a0e3);}_0x11a2e1[_0x4874e1(0x2c9,0x28d,0x28f,0x279)][_0x4874e1(0x2e8,0x323,0x300,0x370)](_0x15f021['wcZlO'],inspectEnabled);}function toggleInspectNext(){function _0x8fc52f(_0x3cad10,_0x36f05f,_0x241a9c,_0x5289e8){return _0xe6eed7(_0x3cad10-0x66,_0x3cad10-0x6bf,_0x241a9c-0xf7,_0x36f05f);}const _0x4db526={'GyMbg':function(_0x1b12c8,_0x3bb376){return _0x1b12c8(_0x3bb376);}};function _0x3e6b5b(_0x32ca39,_0x318f2f,_0x53bf19,_0x4db06f){return _0xe6eed7(_0x32ca39-0x5b,_0x318f2f-0x42,_0x53bf19-0xb0,_0x32ca39);}inspectEnabled=!inspectEnabled,toastr['info'](_0x8fc52f(0x4a3,0x470,0x4d0,0x4c9)+(inspectEnabled?'开启':'关闭')),localStorage[_0x8fc52f(0x4e4,0x553,0x538,0x55a)](STORAGE_KEY,_0x4db526[_0x8fc52f(0x4f3,0x56d,0x4a8,0x4a5)](String,inspectEnabled));}async function showPromptInspector(_0x587bb3){const _0x420c91={'SDoDz':function(_0x54f837,_0x3a2463){return _0x54f837(_0x3a2463);},'GDonh':_0x435a36(0x7e,0xae,0xff,0xf1),'PJnfl':_0x435a36(0x9b,0x127,0x110,0xc5),'kmZPZ':_0x435a36(0x18d,0xfa,0x156,0x142)+_0x435a36(0x15,0x34,0x109,0x92)+'ck','tKBbR':function(_0x15b64e,_0x331769){return _0x15b64e(_0x331769);},'OIsxn':_0x5ae9fb(0x5d5,0x5bc,0x563,0x582)+_0x5ae9fb(0x4fd,0x422,0x48f,0x4f5)+_0x5ae9fb(0x4a0,0x478,0x502,0x46f),'kwfCz':function(_0x14b471,_0x491d62){return _0x14b471(_0x491d62);},'hlkIn':_0x5ae9fb(0x49b,0x4e3,0x4b7,0x4de),'tBjbX':function(_0x7aae55,_0x30ae41){return _0x7aae55(_0x30ae41);},'txBQh':'.mizhesi-m'+'essage-hea'+_0x435a36(-0x3e,0x1b,0x7f,0x4d),'byzZw':'click','qknin':function(_0x11816e,_0x32c804){return _0x11816e===_0x32c804;},'gqeYE':_0x435a36(0xad,0x47,0x9e,0xa9),'BjPEh':function(_0x358271,_0x292199){return _0x358271(_0x292199);},'ZKKoi':_0x5ae9fb(0x453,0x46c,0x4d4,0x4f8)+_0x5ae9fb(0x4b4,0x546,0x4e1,0x561)+_0x435a36(0x123,0x15b,0xef,0x110)+_0x435a36(-0x2e,0x78,-0x1f,0x52)+_0x435a36(0x102,0x117,0x63,0xb1)+_0x5ae9fb(0x4e1,0x477,0x509,0x55c)+_0x5ae9fb(0x548,0x4fc,0x4ce,0x479)+_0x5ae9fb(0x4ff,0x523,0x588,0x565)+_0x435a36(0x1ad,0x1a7,0x18c,0x136)+_0x435a36(0x21,0x1,0x9b,0x5a)+_0x435a36(0xe0,0xe2,0xdd,0x12b)+'>','oajka':function(_0x3812d7,_0x4779b4){return _0x3812d7(_0x4779b4);},'FLEqj':_0x435a36(0xb1,0x11c,0xe4,0x116),'xdxBt':function(_0x261a6d,_0x4c6ba9){return _0x261a6d===_0x4c6ba9;},'BOeTR':_0x435a36(0x5e,0xda,0xf5,0xe2),'CaWgv':_0x5ae9fb(0x53d,0x4ba,0x50c,0x4d5)+_0x435a36(0xdd,0x142,0x189,0x166)+_0x435a36(0x131,0x1bf,0x1e0,0x150),'tVfle':_0x5ae9fb(0x59d,0x4e9,0x50f,0x565),'Wjvlp':_0x435a36(0x93,0x123,0x8b,0x11d),'zkQSb':function(_0x2fbcd3,_0xf1f147){return _0x2fbcd3===_0xf1f147;},'LllgE':_0x5ae9fb(0x50e,0x4d4,0x482,0x42f),'jtWNK':function(_0x177ea8,_0xd43729){return _0x177ea8===_0xd43729;},'HbZuJ':_0x435a36(0xb9,0x188,0x1c2,0x12f),'HPegw':'LUbcC','tSWxj':_0x435a36(0x9b,0xb3,0x13,0x4e)+_0x435a36(0x17c,0x159,0x94,0x125)+_0x435a36(0x1e5,0x1e1,0x109,0x169)},_0x51c04b=_0x420c91[_0x435a36(0x6d,0x61,0x157,0xef)]($,await renderExtensionTemplateAsync(miZheSiPath,_0x420c91[_0x435a36(0x13b,0x156,0x141,0xe9)])),_0x279319=_0x51c04b[_0x435a36(0xec,0x96,0x126,0x10b)](_0x435a36(0xec,0x33,0xb6,0xc4)+_0x5ae9fb(0x555,0x52f,0x53b,0x4c2)+_0x5ae9fb(0x47c,0x4b5,0x4d1,0x545));let _0x14cbee=![];try{if(_0x420c91[_0x5ae9fb(0x4ba,0x595,0x524,0x501)]('rnLUH',_0x420c91[_0x5ae9fb(0x54c,0x4f5,0x4f2,0x536)])){const _0x57eabb={'QFVMW':function(_0x174830,_0x129f11){function _0x26b1e3(_0x3e3f22,_0x113ab4,_0x4b9835,_0x1e651f){return _0x5ae9fb(_0x3e3f22-0x1d4,_0x3e3f22,_0x1e651f- -0x3e0,_0x1e651f-0x19f);}return _0x420c91[_0x26b1e3(0x133,0x8a,0x10f,0xe2)](_0x174830,_0x129f11);},'pxmOR':_0x420c91[_0x5ae9fb(0x510,0x60d,0x58e,0x5cf)],'NTLbQ':_0x420c91['PJnfl']},_0xb08f89=[];return _0x530c7f[_0x5ae9fb(0x554,0x5bb,0x52c,0x550)](_0x420c91[_0x5ae9fb(0x527,0x4ac,0x526,0x581)])[_0x5ae9fb(0x4bc,0x495,0x4dc,0x518)](function(){const _0x44e31c=_0x57eabb[_0x287001(0x565,0x590,0x59a,0x513)](_0x381ad3,this)[_0x287001(0x5ae,0x4d5,0x599,0x54f)](_0x57eabb[_0x5bbe55(0x275,0x279,0x2e6,0x270)]),_0x204966=_0x500f72(this)[_0x287001(0x51d,0x4f3,0x4cd,0x4fe)](_0x57eabb[_0x5bbe55(0x20e,0x288,0x27b,0x299)])[_0x5bbe55(0x2e9,0x32b,0x2d0,0x2a7)](),_0x167505={};function _0x5bbe55(_0x2858ef,_0x4e3afd,_0x4fd76a,_0x3ad501){return _0x435a36(_0x2858ef-0xf7,_0x4e3afd-0x4c,_0x4fd76a,_0x3ad501-0x15b);}_0x167505[_0x287001(0x500,0x576,0x577,0x4e4)]=_0x44e31c,_0x167505[_0x287001(0x4a0,0x561,0x519,0x4dd)]=_0x204966;function _0x287001(_0x270b76,_0x38eef1,_0x4ea6f4,_0x531acd){return _0x5ae9fb(_0x270b76-0xa8,_0x270b76,_0x531acd- -0x2e,_0x531acd-0x7d);}_0xb08f89[_0x287001(0x4ec,0x540,0x544,0x530)](_0x167505);}),_0x575df4['stringify'](_0xb08f89,null,-0x606+0xc9f+-0x695);}else{const _0x14808f=JSON['parse'](_0x587bb3);if(Array['isArray'](_0x14808f))_0x14cbee=!![],_0x279319['empty'](),_0x14808f[_0x5ae9fb(0x5c5,0x609,0x58d,0x59a)](_0x5a6283=>{const _0x1f16a6=_0x420c91[_0x2449ec(0x41c,0x39f,0x315,0x390)]($,_0x3170b3(-0x8b,-0x80,-0xe2,-0x22)+_0x2449ec(0x3e4,0x3c3,0x36d,0x3f3)+'\x20\x0a\x20\x20\x20'+_0x2449ec(0x3df,0x3f4,0x3ea,0x3f3)+_0x3170b3(-0x113,-0xf5,-0x8b,-0xaa)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20'+_0x3170b3(-0x150,-0xf5,-0x17f,-0x17b)+'\x20\x20\x20\x0a'+_0x3170b3(-0x8c,-0xf5,-0x13e,-0x11b)+_0x2449ec(0x390,0x3eb,0x377,0x3ec)));function _0x2449ec(_0x48ef48,_0x38ea79,_0x4caccd,_0x59ab1f){return _0x5ae9fb(_0x48ef48-0x1ce,_0x4caccd,_0x59ab1f- -0xea,_0x59ab1f-0x17e);}_0x1f16a6[_0x3170b3(-0x3b,-0xa6,-0x2c,-0xa3)](_0x420c91[_0x3170b3(-0xcf,-0x9a,-0x68,-0xf3)])[_0x3170b3(-0xd2,-0x65,-0xd1,-0xe5)](_0x5a6283[_0x3170b3(-0x4e,-0xc7,-0x94,-0x51)]);function _0x3170b3(_0x39b733,_0x1b5aa7,_0x3c5554,_0x331936){return _0x5ae9fb(_0x39b733-0x1d2,_0x39b733,_0x1b5aa7- -0x5d2,_0x331936-0x56);}_0x279319['append'](_0x1f16a6),_0x1f16a6[_0x2449ec(0x3cf,0x451,0x417,0x442)](_0x420c91['txBQh'])['on'](_0x420c91[_0x3170b3(-0x69,-0xe4,-0x99,-0x111)],function(){function _0x4d35eb(_0x12546d,_0x150c18,_0x5d42ee,_0x5b2ef6){return _0x2449ec(_0x12546d-0xd1,_0x150c18-0x15e,_0x5b2ef6,_0x5d42ee- -0x690);}const _0x24e0f6=_0x420c91['tKBbR']($,this)['siblings'](_0x420c91[_0x4d35eb(-0x1f8,-0x1f3,-0x1f8,-0x1b6)]),_0x31efd7=_0x420c91[_0x4d35eb(-0x1c2,-0x269,-0x252,-0x2a0)]($,this)[_0x4d35eb(-0x2c7,-0x2b9,-0x284,-0x281)](_0x420c91[_0x4e0dd6(-0x107,-0x10e,-0x7a,-0x7b)]);_0x31efd7['toggleClas'+'s'](_0x4d35eb(-0x25a,-0x2ed,-0x28e,-0x309));function _0x4e0dd6(_0x428e8a,_0x115fa4,_0x42f5aa,_0x424c8d){return _0x2449ec(_0x428e8a-0xee,_0x115fa4-0x113,_0x115fa4,_0x424c8d- -0x4b7);}_0x24e0f6[_0x4e0dd6(-0xa5,-0xe4,-0xe2,-0x9a)+'e'](_0x420c91[_0x4e0dd6(-0x11e,-0x91,-0xf4,-0xfe)]);});});else throw new Error(_0x420c91['CaWgv']);}}catch(_0x2203c2){if(_0x435a36(0x15d,0x184,0xb4,0x118)===_0x5ae9fb(0x525,0x559,0x539,0x4a6)){_0x14cbee=![];const _0x19aa5b=_0x420c91[_0x435a36(0x78,0x115,0x10d,0xa1)]($,'');_0x19aa5b['val'](_0x587bb3),_0x279319[_0x435a36(0x116,0x2e,0xff,0x9e)]()[_0x435a36(0x1d0,0x119,0x120,0x14f)](_0x19aa5b);}else return _0x420c91[_0x5ae9fb(0x41a,0x43d,0x495,0x416)](_0x1b6b29,_0x420c91[_0x435a36(0x177,0x14b,0xd3,0x14b)]);}const _0x1da2d5={'text':'取消生成','result':POPUP_RESULT['CANCELLED'],'appendAtEnd':!![],'action':async()=>{await stopGeneration();function _0x47622e(_0x3c34ec,_0x4d87ac,_0x14e840,_0x2f5ed8){return _0x5ae9fb(_0x3c34ec-0xab,_0x2f5ed8,_0x14e840- -0x467,_0x2f5ed8-0x3e);}function _0xd4857(_0x23f895,_0x300c2c,_0x451b97,_0x47874f){return _0x5ae9fb(_0x23f895-0x7e,_0x300c2c,_0x47874f- -0x268,_0x47874f-0x198);}await _0x19dcf0[_0x47622e(0x3e,0x7e,0x45,0x16)](POPUP_RESULT[_0xd4857(0x2b7,0x3a1,0x363,0x318)]);}},_0x2a3095={};_0x2a3095['wide']=!![],_0x2a3095[_0x435a36(0x1a4,0xe2,0x1b5,0x164)]=!![],_0x2a3095[_0x5ae9fb(0x566,0x554,0x592,0x543)]=_0x420c91[_0x5ae9fb(0x460,0x4ed,0x4e2,0x543)];function _0x435a36(_0x295d5b,_0xfc6212,_0x4dc462,_0x17cdf3){return _0xe6eed7(_0x295d5b-0xf5,_0x17cdf3-0x289,_0x4dc462-0x1a8,_0x4dc462);}_0x2a3095[_0x5ae9fb(0x598,0x54c,0x579,0x52a)+'on']=_0x420c91[_0x5ae9fb(0x5ab,0x58e,0x58b,0x516)];function _0x5ae9fb(_0x1bfec2,_0xd92e95,_0x786c99,_0x2cd368){return _0xe6eed7(_0x1bfec2-0x156,_0x786c99-0x6aa,_0x786c99-0x2a,_0xd92e95);}_0x2a3095[_0x435a36(0x1c4,0x151,0x1bf,0x138)+_0x435a36(0xbc,0xe0,0x12a,0x9a)]=[_0x1da2d5];const _0x19dcf0=new Popup(_0x51c04b,POPUP_TYPE[_0x435a36(0xa2,0xd4,0xfa,0x7e)],'',_0x2a3095),_0x1518de=await _0x19dcf0[_0x435a36(0x149,0x115,0x169,0x152)]();if(!_0x1518de)return _0x587bb3;if(_0x14cbee){if(_0x420c91[_0x5ae9fb(0x54b,0x579,0x555,0x534)](_0x420c91[_0x435a36(0xcb,0xf,0x68,0x71)],_0x420c91[_0x5ae9fb(0x479,0x49a,0x492,0x489)])){const _0x510d09=[];return _0x51c04b['find'](_0x420c91[_0x5ae9fb(0x532,0x5a9,0x526,0x4fe)])[_0x5ae9fb(0x45a,0x50d,0x4dc,0x495)](function(){const _0x35fb65=_0x420c91['tKBbR']($,this)['data'](_0x420c91['GDonh']);function _0x2d7906(_0x5dfdf5,_0x1d3b86,_0x567399,_0x2881d5){return _0x435a36(_0x5dfdf5-0x84,_0x1d3b86-0x1ad,_0x2881d5,_0x567399- -0x324);}const _0x22a18=_0x420c91['BjPEh']($,this)[_0x2d7906(-0x2a9,-0x22d,-0x219,-0x276)](_0x420c91[_0xd410bd(0x296,0x2d4,0x281,0x244)])[_0x2d7906(-0x1dc,-0x1af,-0x1d8,-0x1f9)](),_0xf71159={};function _0xd410bd(_0x2476cc,_0x58b3a5,_0x23b598,_0x410e35){return _0x435a36(_0x2476cc-0x44,_0x58b3a5-0x142,_0x23b598,_0x410e35-0x12d);}_0xf71159[_0xd410bd(0x282,0x251,0x20e,0x21e)]=_0x35fb65,_0xf71159[_0x2d7906(-0x219,-0x265,-0x23a,-0x25f)]=_0x22a18,_0x510d09[_0x2d7906(-0x17a,-0x26a,-0x1e7,-0x1e4)](_0xf71159);}),JSON[_0x5ae9fb(0x51d,0x5b6,0x527,0x497)](_0x510d09,null,0x23ab*-0x1+-0x166*-0x7+0x19e5);}else{_0x17dea4=![];const _0x25ccfa=_0x420c91['tBjbX'](_0x39caad,_0x420c91['ZKKoi']);_0x25ccfa['val'](_0x3300ba),_0x5a96eb[_0x5ae9fb(0x532,0x4cc,0x4bf,0x4cc)]()[_0x435a36(0xbe,0x1a4,0x128,0x14f)](_0x25ccfa);}}else{if(_0x420c91[_0x435a36(0xec,0x101,0xa9,0xe3)](_0x420c91[_0x435a36(0x10c,0x28,0x29,0x8c)],_0x420c91[_0x5ae9fb(0x4b6,0x572,0x540,0x509)]))_0x544b6e=_0x51f3fe;else return _0x51c04b['find'](_0x420c91[_0x5ae9fb(0x530,0x4a5,0x4a0,0x4a2)])[_0x5ae9fb(0x5bc,0x546,0x56d,0x4fc)]();}}function isChatCompletion(){const _0x296811={};function _0x293281(_0x4414b1,_0x1137f3,_0x5ca141,_0x2f69c3){return _0xe6eed7(_0x4414b1-0x5e,_0x4414b1-0x406,_0x5ca141-0xd0,_0x2f69c3);}_0x296811[_0x293281(0x245,0x232,0x2b6,0x251)]=function(_0x5ad976,_0x4b9615){return _0x5ad976===_0x4b9615;};function _0x3d700b(_0x51dd11,_0x5301a3,_0x15a48d,_0x2655c4){return _0x17e0d0(_0x51dd11-0x11b,_0x5301a3-0x19,_0x15a48d- -0x63,_0x5301a3);}_0x296811[_0x293281(0x2ce,0x25f,0x279,0x264)]=_0x293281(0x226,0x23d,0x253,0x1c7);const _0x138013=_0x296811;return _0x138013['Zlspe'](main_api,_0x138013[_0x3d700b(0x48e,0x4c3,0x501,0x4a8)]);}eventSource['on'](event_types['GENERATE_A'+'FTER_COMBI'+_0x17e0d0(0x4f9,0x4e4,0x483,0x4d0)],async _0x10f7b4=>{function _0x4135da(_0x1795e3,_0x32e07b,_0x3e1449,_0x227651){return _0xe6eed7(_0x1795e3-0x189,_0x32e07b-0x249,_0x3e1449-0xd7,_0x3e1449);}const _0x38ba3a={'KMguH':_0x3acb9a(0x3c,0x16,0x6e,0x44)+'N失败,本次修改未生'+'效。','cddkB':function(_0x308880){return _0x308880();},'wlygM':function(_0x7bfc6e,_0x5789d7){return _0x7bfc6e!==_0x5789d7;},'aYrKK':_0x3acb9a(0x7d,0xdc,0x13,0x4e),'JDhII':function(_0x58d58f,_0x11ebfe){return _0x58d58f(_0x11ebfe);},'Rucba':function(_0x2cfc32,_0x7f9f93){return _0x2cfc32===_0x7f9f93;},'fyzDf':'OYWhY','sVxnj':_0x3acb9a(0x5f,0xc5,0x22,0x3c),'EJDMS':'【密折司】奏章已按御'+_0x4135da(0x31,0x5b,0x97,0x9b)+'Gen)。'};if(!inspectEnabled||_0x10f7b4[_0x4135da(0x7d,0x7f,-0xe,0xaf)]||_0x38ba3a['cddkB'](isChatCompletion))return;function _0x3acb9a(_0x37df3a,_0x31b139,_0x2e5f55,_0xc9f920){return _0x17e0d0(_0x37df3a-0x1db,_0x31b139-0xab,_0xc9f920- -0x458,_0x2e5f55);}if(_0x38ba3a[_0x3acb9a(0x27,0xf6,0x9f,0xb7)](typeof _0x10f7b4[_0x3acb9a(-0x59,-0x37,0x39,0xc)],_0x38ba3a[_0x4135da(0xed,0x8c,0x11a,-0x5)]))return;const _0xb1b8db=await _0x38ba3a[_0x4135da(0xbf,0xb5,0xf8,0x49)](showPromptInspector,_0x10f7b4['prompt']);_0x38ba3a[_0x4135da(0xa6,0xbc,0x13f,0x5f)](_0xb1b8db,_0x10f7b4[_0x3acb9a(-0x29,0x9,-0x33,0xc)])&&(_0x38ba3a[_0x3acb9a(0x20,0x14,0xa8,0x91)](_0x38ba3a[_0x3acb9a(0x14f,0xb7,0xdb,0xf7)],_0x38ba3a[_0x3acb9a(0x16a,0x18b,0xa3,0x12a)])?(_0x2b0d7d[_0x3acb9a(0xda,0x12f,0x10b,0xdf)](_0x4135da(0xcb,0x93,0xcf,0x96)+_0x4135da(0x77,0xe6,0x69,0x15a),_0x46a765),_0x1acc95[_0x4135da(0xc1,0xe4,0x105,0xaa)](_0x38ba3a[_0x4135da(-0x59,0x26,0x7b,0x3c)])):(_0x10f7b4['prompt']=_0xb1b8db,console['log'](_0x38ba3a[_0x4135da(0x12d,0xf0,0x82,0xf7)])));}),eventSource['on'](event_types[_0xe6eed7(-0x1a8,-0x126,-0x145,-0x11d)+_0xe6eed7(-0x24b,-0x22c,-0x29e,-0x204)+'PT_READY'],async _0x371475=>{const _0x27605f={'JTFxF':function(_0x6c5ae7,_0x57eadd){return _0x6c5ae7(_0x57eadd);},'wERUg':function(_0x427bdf,_0x299024){return _0x427bdf+_0x299024;},'nBpQc':_0x4f7118(0xca,0x76,0x4f,0x7)+_0x243e48(0x485,0x44d,0x42f,0x432)+_0x4f7118(0xb5,0x95,0x2e,0x7d)+'\x20)','CVkUO':function(_0x583808){return _0x583808();},'OneKL':function(_0x505462,_0xc8b18c){return _0x505462(_0xc8b18c);},'FzBpU':function(_0x59104c,_0x58993e){return _0x59104c===_0x58993e;},'QCGsB':'【密折司】奏章已按御'+_0x4f7118(-0x5,-0x1,-0x7e,-0x67)+'Completion'+')。','NYnrJ':function(_0x40e413,_0xdd752d){return _0x40e413!==_0xdd752d;},'sFErG':_0x4f7118(0x7e,0x1e,0x2f,-0x17),'pIlbo':_0x243e48(0x430,0x485,0x479,0x3aa)+'N失败,本次修改未生'+'效。'};if(!inspectEnabled||_0x371475[_0x243e48(0x466,0x468,0x441,0x3e2)]||!_0x27605f['CVkUO'](isChatCompletion))return;if(!Array[_0x4f7118(0xe4,0xa1,0xf7,0xb6)](_0x371475[_0x243e48(0x4a2,0x51b,0x509,0x4e9)]))return;const _0xa229e1=JSON[_0x4f7118(0xe7,0x6e,0x41,0x1)](_0x371475[_0x243e48(0x4a2,0x52d,0x474,0x4ee)],null,-0x2581+-0xd*0x27+-0x278*-0x10),_0x68e793=await _0x27605f[_0x4f7118(-0xa4,-0x22,-0xc,-0x4e)](showPromptInspector,_0xa229e1);function _0x243e48(_0xd2893d,_0x526360,_0x1c6c96,_0x34eac1){return _0xe6eed7(_0xd2893d-0x106,_0xd2893d-0x630,_0x1c6c96-0x123,_0x34eac1);}function _0x4f7118(_0x1e63a2,_0x26741a,_0x336aab,_0x6281a7){return _0x17e0d0(_0x1e63a2-0x11e,_0x26741a-0x151,_0x26741a- -0x4ab,_0x1e63a2);}if(_0x27605f['FzBpU'](_0x68e793,_0xa229e1))return;try{const _0x32a500=JSON[_0x243e48(0x47e,0x44a,0x495,0x4a4)](_0x68e793);_0x371475[_0x4f7118(0x4,0x63,0x66,0x31)][_0x4f7118(-0x19,0x43,0x82,0x1c)](0x52c+-0x951*-0x4+0x10*-0x2a7,_0x371475[_0x4f7118(0xe2,0x63,0x3f,0x33)]['length'],..._0x32a500),console[_0x4f7118(0x6d,0xc3,0x30,0x8e)](_0x27605f[_0x243e48(0x497,0x496,0x4a0,0x515)]);}catch(_0x445b85){if(_0x27605f[_0x4f7118(-0xa9,-0x20,-0x69,-0x84)](_0x27605f[_0x243e48(0x41c,0x478,0x38e,0x3c3)],_0x27605f[_0x4f7118(-0x84,-0x23,-0xb4,0x38)])){const _0x1cdc0d=UfpEHT['JTFxF'](_0xa17988,UfpEHT[_0x4f7118(0x4e,0x9a,0x4c,0x11d)](UfpEHT[_0x4f7118(0xa6,0x9a,0x40,0x117)]('return\x20(fu'+_0x243e48(0x42b,0x3f5,0x3ed,0x4a9),UfpEHT[_0x4f7118(0x63,-0x3,-0x9,-0x19)]),');'));_0x2b4ff5=UfpEHT[_0x243e48(0x4ce,0x4e1,0x443,0x50b)](_0x1cdc0d);}else console[_0x4f7118(0x5c,0x8c,0x5c,0x102)]('【密折司】解析修改后'+_0x4f7118(0xcf,0x8e,0x23,0xa7),_0x445b85),toastr[_0x4f7118(0xb6,0x8c,0x8b,0x80)](_0x27605f[_0x243e48(0x3f7,0x3b0,0x470,0x45a)]);}}),addLaunchButton(); +const _0x38e806=_0x4c1f;(function(_0x45e6b5,_0x413e28){const _0x820875=_0x4c1f,_0x320e08=_0x45e6b5();while(!![]){try{const _0x304e8b=parseInt(_0x820875(0x170))/0x1*(-parseInt(_0x820875(0x175))/0x2)+parseInt(_0x820875(0x17f))/0x3+-parseInt(_0x820875(0x187))/0x4*(-parseInt(_0x820875(0x173))/0x5)+parseInt(_0x820875(0x172))/0x6+parseInt(_0x820875(0x18a))/0x7*(-parseInt(_0x820875(0x186))/0x8)+-parseInt(_0x820875(0x1a8))/0x9*(-parseInt(_0x820875(0x1a0))/0xa)+-parseInt(_0x820875(0x185))/0xb;if(_0x304e8b===_0x413e28)break;else _0x320e08['push'](_0x320e08['shift']());}catch(_0x3dadeb){_0x320e08['push'](_0x320e08['shift']());}}}(_0x57ca,0xcaa13));import{eventSource,event_types,main_api,stopGeneration}from'/script.js';import{renderExtensionTemplateAsync}from'/scripts/extensions.js';import{POPUP_RESULT,POPUP_TYPE,Popup}from'/scripts/popup.js';function _0x57ca(){const _0x192c7c=['forEach','closest','template','toggle','createElement','tabIndex','span','add','isArray','className','setItem','append','fast','【密折司】解析修改后的JSON奏章失败:','【密折司】奏章已按御笔修改\x20(Chat\x20Completion)。','710FCInlE','#mizhesi-plain-text-editor','parse','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','openai','info','find','/MiZheSi','162891DiGBAZ','classList','appendChild','【密折司】解析JSON失败,本次修改未生效。','active','CHAT_COMPLETION_PROMPT_READY','flexGap5','flex-container','【密折司】无法找到左下角扩展菜单\x20(extensionsMenu)。','miZheSiLaunchButton','【密折司】奏章已按御笔修改\x20(Text\x20Gen)。','prompt','data','textarea','log','开启Amliy2号密折司','dryRun','GENERATE_AFTER_COMBINE_PROMPTS','','error','Input\x20is\x20not\x20a\x20chat\x20array.','val','show','title','empty','complete','click','interactable','625282MIpLHs','.mizhesi-message-content','9596724xyfLYp','325KKZKhX','【密折司】缺少必要的事件支持。','2jbiiMH','CANCELLED','each','toggleClass','CONFIRM','\x0a\x20\x20\x20\x20\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\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\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\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\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','确认修改','放弃修改','content'];_0x57ca=function(){return _0x192c7c;};return _0x57ca();}import{t}from'/scripts/i18n.js';function _0x4c1f(_0x3a7776,_0x6f6d9f){const _0x57ca00=_0x57ca();return _0x4c1f=function(_0x4c1f5f,_0x191edc){_0x4c1f5f=_0x4c1f5f-0x163;let _0x2a9ee8=_0x57ca00[_0x4c1f5f];return _0x2a9ee8;},_0x4c1f(_0x3a7776,_0x6f6d9f);}import{extensionName}from'../utils/settings.js';const miZheSiPath='third-party/'+extensionName+_0x38e806(0x1a7),STORAGE_KEY=_0x38e806(0x180);if(!(_0x38e806(0x165)in event_types)||!(_0x38e806(0x1ad)in event_types)){toastr[_0x38e806(0x167)]('【密折司】错误:您的SillyTavern版本过旧,缺少必要的事件支持。请更新至最新版本。');throw new Error(_0x38e806(0x174));}let inspectEnabled=![];function addLaunchButton(){const _0x7693fe=_0x38e806,_0x2fb030='关闭Amliy2号密折司',_0x1901f3=_0x7693fe(0x163),_0x3eecdc='fa-solid\x20fa-scroll',_0x4fcd58=()=>inspectEnabled?_0x2fb030:_0x1901f3,_0x5e933d=document['createElement']('div');_0x5e933d['id']=_0x7693fe(0x1b1),_0x5e933d[_0x7693fe(0x1a9)][_0x7693fe(0x198)](_0x7693fe(0x17c),_0x7693fe(0x1af),_0x7693fe(0x1ae),_0x7693fe(0x16f)),_0x5e933d[_0x7693fe(0x196)]=0x0,_0x5e933d[_0x7693fe(0x16b)]='切换【密折司】状态';const _0x702526=document[_0x7693fe(0x195)]('i');_0x702526[_0x7693fe(0x19a)]=_0x3eecdc,_0x5e933d[_0x7693fe(0x1aa)](_0x702526);const _0x568175=document['createElement'](_0x7693fe(0x197));_0x568175['textContent']=_0x4fcd58(),_0x5e933d[_0x7693fe(0x1aa)](_0x568175);const _0x4245b7=document['getElementById']('extensionsMenu');if(!_0x4245b7){console[_0x7693fe(0x167)](_0x7693fe(0x1b0));return;}if(document['getElementById'](_0x5e933d['id']))return;_0x4245b7['appendChild'](_0x5e933d),_0x5e933d[_0x7693fe(0x188)](_0x7693fe(0x16e),()=>{const _0x2123a6=_0x7693fe;toggleInspectNext(),_0x568175[_0x2123a6(0x17d)]=_0x4fcd58(),_0x5e933d[_0x2123a6(0x1a9)][_0x2123a6(0x194)](_0x2123a6(0x1ac),inspectEnabled);}),_0x5e933d[_0x7693fe(0x1a9)][_0x7693fe(0x194)](_0x7693fe(0x1ac),inspectEnabled);}function toggleInspectNext(){const _0x38b832=_0x38e806;inspectEnabled=!inspectEnabled,toastr[_0x38b832(0x1a5)]('【密折司】已'+(inspectEnabled?'开启':'关闭')),localStorage[_0x38b832(0x19b)](STORAGE_KEY,String(inspectEnabled));}async function showPromptInspector(_0x217a5b){const _0xb08632=_0x38e806,_0x40bb1f=$(await renderExtensionTemplateAsync(miZheSiPath,_0xb08632(0x193))),_0x330524=_0x40bb1f[_0xb08632(0x1a6)]('#mizhesi-editor-container');let _0x21d527=![];try{const _0x14b20c=JSON['parse'](_0x217a5b);if(Array['isArray'](_0x14b20c))_0x21d527=!![],_0x330524[_0xb08632(0x16c)](),_0x14b20c[_0xb08632(0x191)](_0x3d1802=>{const _0x4f5da3=_0xb08632,_0x1f954c=$(_0x4f5da3(0x17a)+_0x3d1802[_0x4f5da3(0x189)]+_0x4f5da3(0x1a3)+_0x3d1802[_0x4f5da3(0x189)]+_0x4f5da3(0x18d));_0x1f954c[_0x4f5da3(0x1a6)]('textarea')['val'](_0x3d1802[_0x4f5da3(0x190)]),_0x330524[_0x4f5da3(0x19c)](_0x1f954c),_0x1f954c[_0x4f5da3(0x1a6)](_0x4f5da3(0x17e))['on']('click',function(){const _0x3b6caa=_0x4f5da3,_0x45d5c6=$(this)[_0x3b6caa(0x184)](_0x3b6caa(0x171)),_0x451248=$(this)[_0x3b6caa(0x192)]('.mizhesi-message-block');_0x451248[_0x3b6caa(0x178)](_0x3b6caa(0x181)),_0x45d5c6[_0x3b6caa(0x183)](_0x3b6caa(0x19d));});});else throw new Error(_0xb08632(0x168));}catch(_0x57e32e){_0x21d527=![];const _0x597cfb=$(_0xb08632(0x166));_0x597cfb['val'](_0x217a5b),_0x330524[_0xb08632(0x16c)]()[_0xb08632(0x19c)](_0x597cfb);}const _0x34fd65={'text':_0xb08632(0x18c),'result':POPUP_RESULT['CANCELLED'],'appendAtEnd':!![],'action':async()=>{const _0x2b145e=_0xb08632;await stopGeneration(),await _0x164d3a[_0x2b145e(0x16d)](POPUP_RESULT[_0x2b145e(0x176)]);}},_0x164d3a=new Popup(_0x40bb1f,POPUP_TYPE[_0xb08632(0x179)],'',{'wide':!![],'large':!![],'okButton':_0xb08632(0x18e),'cancelButton':_0xb08632(0x18f),'customButtons':[_0x34fd65]}),_0x1a4baa=await _0x164d3a[_0xb08632(0x16a)]();if(!_0x1a4baa)return _0x217a5b;if(_0x21d527){const _0x5539d0=[];return _0x40bb1f['find'](_0xb08632(0x17b))[_0xb08632(0x177)](function(){const _0x3e5611=_0xb08632,_0x2ab1eb=$(this)[_0x3e5611(0x1b4)](_0x3e5611(0x189)),_0x169fcc=$(this)[_0x3e5611(0x1a6)](_0x3e5611(0x1b5))['val']();_0x5539d0['push']({'role':_0x2ab1eb,'content':_0x169fcc});}),JSON[_0xb08632(0x182)](_0x5539d0,null,0x4);}else return _0x40bb1f[_0xb08632(0x1a6)](_0xb08632(0x1a1))[_0xb08632(0x169)]();}function isChatCompletion(){const _0x2ff758=_0x38e806;return main_api===_0x2ff758(0x1a4);}eventSource['on'](event_types[_0x38e806(0x165)],async _0x162dc3=>{const _0x395026=_0x38e806;if(!inspectEnabled||_0x162dc3['dryRun']||isChatCompletion())return;if(typeof _0x162dc3[_0x395026(0x1b3)]!=='string')return;const _0x517957=await showPromptInspector(_0x162dc3[_0x395026(0x1b3)]);_0x517957!==_0x162dc3[_0x395026(0x1b3)]&&(_0x162dc3['prompt']=_0x517957,console['log'](_0x395026(0x1b2)));}),eventSource['on'](event_types[_0x38e806(0x1ad)],async _0x330cc9=>{const _0xcf1bcc=_0x38e806;if(!inspectEnabled||_0x330cc9[_0xcf1bcc(0x164)]||!isChatCompletion())return;if(!Array[_0xcf1bcc(0x199)](_0x330cc9[_0xcf1bcc(0x18b)]))return;const _0x32bc7a=JSON[_0xcf1bcc(0x182)](_0x330cc9[_0xcf1bcc(0x18b)],null,0x4),_0x530c02=await showPromptInspector(_0x32bc7a);if(_0x530c02===_0x32bc7a)return;try{const _0x5d261c=JSON[_0xcf1bcc(0x1a2)](_0x530c02);_0x330cc9[_0xcf1bcc(0x18b)]['splice'](0x0,_0x330cc9[_0xcf1bcc(0x18b)]['length'],..._0x5d261c),console[_0xcf1bcc(0x1b6)](_0xcf1bcc(0x19f));}catch(_0x524b16){console[_0xcf1bcc(0x167)](_0xcf1bcc(0x19e),_0x524b16),toastr['error'](_0xcf1bcc(0x1ab));}}),addLaunchButton();