From ee5f6d0054cb64c849d44b4cf9486cc70a1fd20a Mon Sep 17 00:00:00 2001
From: Wx-2025 <351320169@qq.com>
Date: Thu, 21 Aug 2025 11:05:38 +0800
Subject: [PATCH] Update state.js
---
ui/state.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/state.js b/ui/state.js
index 534ec6b..2871fe2 100644
--- a/ui/state.js
+++ b/ui/state.js
@@ -1 +1 @@
-(function(_0x4929c8,_0x25f4c1){const _0x9e2b26=_0x338b,_0x13cf90=_0x4929c8();while(!![]){try{const _0x2eea82=-parseInt(_0x9e2b26(0x1a4))/0x1+parseInt(_0x9e2b26(0x17d))/0x2*(-parseInt(_0x9e2b26(0x198))/0x3)+parseInt(_0x9e2b26(0x18e))/0x4+-parseInt(_0x9e2b26(0x1a3))/0x5*(-parseInt(_0x9e2b26(0x1af))/0x6)+-parseInt(_0x9e2b26(0x1be))/0x7+-parseInt(_0x9e2b26(0x1ca))/0x8*(parseInt(_0x9e2b26(0x189))/0x9)+parseInt(_0x9e2b26(0x194))/0xa*(parseInt(_0x9e2b26(0x18a))/0xb);if(_0x2eea82===_0x25f4c1)break;else _0x13cf90['push'](_0x13cf90['shift']());}catch(_0x50e344){_0x13cf90['push'](_0x13cf90['shift']());}}}(_0x2a97,0xcd015));function _0x338b(_0x44f213,_0x15ef03){const _0x2a97ce=_0x2a97();return _0x338b=function(_0x338bfe,_0x60275d){_0x338bfe=_0x338bfe-0x17a;let _0x193f22=_0x2a97ce[_0x338bfe];return _0x193f22;},_0x338b(_0x44f213,_0x15ef03);}function _0x2a97(){const _0x4ec353=['suppressToast','summarizationPrompt','#amily2_auto_hide_enabled','autoHideThreshold','#amily2_lore_depth_container','1416366ARAFld','hide','loreDepth','--\x20选择模型\x20--','historiographySmallAutoEnable','#amily2_lore_depth_input','#amily2_context_messages','selected','optimizationEnabled','val','worldbookEnabled','#amily2_optimization_exclusion_enabled','5692608qpjaGr','apiKey','','#amily2_update_indicator','#amily2_model','19520eRSZlo','#amily2_main_prompt','\x20个可用模型','autoHideEnabled','loreActivationMode','showOptimizationToast','mainPrompt','html','lorebookTarget','#amily2_max_tokens','input[name=\x22amily2_optimization_mode\x22][value=\x22','append','9wrKPiB','71126vpNPXS','optimizationExclusionEnabled','#amily2_temperature_value','.plugin-features','5739932PXYQef','checked','temperature','apiUrl','summarizationEnabled','#amily2_output_format_prompt','5210Sobqcm','empty','#amily2_mhb_small_trigger_count','iconLocation','486FnZUFC','contextMessages','text','#amily2_api_url','historiographySmallTriggerThreshold','#amily2_context_messages_value','#amily2_api_key','#amily2_mhb_small_auto_enabled','#auth_panel','enabled','#amily2_optimization_target_tag','13315zczQVt','1642129UlGIsZ','input[name=\x22amily2_icon_location\x22][value=\x22','已选择:\x20','#amily2_model_notes','optimizationMode','#amily2_summarization_prompt','#amily2_temperature','请检查API配置后点击\x22刷新模型\x22','maxTokens','#amily2_update_button_new','#amily2_lore_activation_mode','390ovCfzD','at_depth','#amily2_show_optimization_toast','show','outputFormatPrompt','loreInsertionPosition','prop','length','#amily2_summarization_enabled',''];_0x2a97=function(){return _0x4ec353;};return _0x2a97();}import{extension_settings}from'/scripts/extensions.js';import{extensionName}from'../utils/settings.js';import{pluginAuthStatus}from'../utils/auth.js';let availableModels=[],latestUpdateInfo=null,newVersionAvailable=![];export function setUpdateInfo(_0x280a1b,_0x557536){newVersionAvailable=_0x280a1b,latestUpdateInfo=_0x557536;}export function applyUpdateIndicator(){const _0x479bcc=_0x338b;newVersionAvailable?($(_0x479bcc(0x17b))[_0x479bcc(0x1b2)](),$(_0x479bcc(0x1ad))[_0x479bcc(0x1b2)]()):($(_0x479bcc(0x17b))[_0x479bcc(0x1bf)](),$('#amily2_update_button_new')['hide']());}export function getLatestUpdateInfo(){return latestUpdateInfo;}export function setAvailableModels(_0x230755){availableModels=_0x230755;}export function populateModelDropdown(){const _0x1f30db=_0x338b,_0x31cbc9=$(_0x1f30db(0x17c)),_0x3eba67=$(_0x1f30db(0x1a7));_0x31cbc9[_0x1f30db(0x195)]();const _0x35ebfb=extension_settings[extensionName]?.['model']||'';if(availableModels[_0x1f30db(0x1b6)]===0x0){_0x31cbc9[_0x1f30db(0x188)](_0x1f30db(0x17a)),_0x3eba67[_0x1f30db(0x184)](_0x1f30db(0x1ab));return;}const _0x5bd6f7=$(_0x1f30db(0x1b8))['val']('')['text'](_0x1f30db(0x1c1));_0x31cbc9[_0x1f30db(0x188)](_0x5bd6f7),availableModels['forEach'](_0x44880b=>{const _0x36a991=_0x1f30db,_0x1abab8=$(_0x36a991(0x1b8))[_0x36a991(0x1c7)](_0x44880b)[_0x36a991(0x19a)](_0x44880b);_0x44880b===_0x35ebfb&&_0x1abab8['attr'](_0x36a991(0x1c5),_0x36a991(0x1c5)),_0x31cbc9['append'](_0x1abab8);}),_0x35ebfb&&_0x31cbc9[_0x1f30db(0x1c7)]()===_0x35ebfb?_0x3eba67[_0x1f30db(0x184)](_0x1f30db(0x1a6)+_0x35ebfb+''):_0x3eba67['html']('已加载\x20'+availableModels['length']+_0x1f30db(0x17f));}export function updateUI(){const _0x4823e1=_0x338b;if(!pluginAuthStatus['authorized'])$(_0x4823e1(0x1a0))['show'](),$(_0x4823e1(0x18d))['hide']();else{$(_0x4823e1(0x1a0))['hide'](),$(_0x4823e1(0x18d))[_0x4823e1(0x1b2)]();const _0x217344=extension_settings[extensionName];if(!_0x217344)return;$('#amily2_enabled')[_0x4823e1(0x1b5)](_0x4823e1(0x18f),_0x217344[_0x4823e1(0x1a1)]),$(_0x4823e1(0x19b))[_0x4823e1(0x1c7)](_0x217344[_0x4823e1(0x191)]),$(_0x4823e1(0x19e))[_0x4823e1(0x1c7)](_0x217344[_0x4823e1(0x1cb)]),$(_0x4823e1(0x17c))[_0x4823e1(0x1c7)](_0x217344['model']),$(_0x4823e1(0x186))[_0x4823e1(0x1c7)](_0x217344[_0x4823e1(0x1ac)]),$('#amily2_max_tokens_value')[_0x4823e1(0x19a)](_0x217344[_0x4823e1(0x1ac)]),$(_0x4823e1(0x1aa))[_0x4823e1(0x1c7)](_0x217344['temperature']),$(_0x4823e1(0x18c))['text'](_0x217344[_0x4823e1(0x190)]),$(_0x4823e1(0x1c4))['val'](_0x217344['contextMessages']),$(_0x4823e1(0x19d))[_0x4823e1(0x19a)](_0x217344[_0x4823e1(0x199)]),$(_0x4823e1(0x1a2))[_0x4823e1(0x1c7)](_0x217344['optimizationTargetTag']),$(_0x4823e1(0x187)+_0x217344[_0x4823e1(0x1a8)]+'\x22]')['prop'](_0x4823e1(0x18f),!![]),$('#amily2_optimization_enabled')[_0x4823e1(0x1b5)](_0x4823e1(0x18f),_0x217344[_0x4823e1(0x1c6)]),$(_0x4823e1(0x1c9))[_0x4823e1(0x1b5)]('checked',_0x217344[_0x4823e1(0x18b)]),$(_0x4823e1(0x1b1))['prop'](_0x4823e1(0x18f),_0x217344[_0x4823e1(0x182)]),$('#amily2_suppress_toast')['prop'](_0x4823e1(0x18f),_0x217344[_0x4823e1(0x1b9)]),$('#amily2_system_prompt')[_0x4823e1(0x1c7)](_0x217344['systemPrompt']),$(_0x4823e1(0x17e))[_0x4823e1(0x1c7)](_0x217344[_0x4823e1(0x183)]),$(_0x4823e1(0x193))[_0x4823e1(0x1c7)](_0x217344[_0x4823e1(0x1b3)]),$(_0x4823e1(0x1a9))[_0x4823e1(0x1c7)](_0x217344[_0x4823e1(0x1ba)]),$('#amily2_worldbook_enabled')[_0x4823e1(0x1b5)]('checked',_0x217344[_0x4823e1(0x1c8)]),$(_0x4823e1(0x1b7))[_0x4823e1(0x1b5)]('checked',_0x217344[_0x4823e1(0x192)]),$('input[name=\x22amily2_lorebook_target\x22][value=\x22'+_0x217344[_0x4823e1(0x185)]+'\x22]')[_0x4823e1(0x1b5)](_0x4823e1(0x18f),!![]),$(_0x4823e1(0x1a5)+_0x217344[_0x4823e1(0x197)]+'\x22]')[_0x4823e1(0x1b5)](_0x4823e1(0x18f),!![]),$(_0x4823e1(0x1bb))['prop'](_0x4823e1(0x18f),_0x217344[_0x4823e1(0x180)]),$('#amily2_auto_hide_threshold')['val'](_0x217344[_0x4823e1(0x1bc)]),$('#amily2_auto_hide_threshold_value')[_0x4823e1(0x19a)](_0x217344[_0x4823e1(0x1bc)]),$(_0x4823e1(0x1ae))[_0x4823e1(0x1c7)](_0x217344[_0x4823e1(0x181)]),$('#amily2_lore_insertion_position')['val'](_0x217344[_0x4823e1(0x1b4)]),$(_0x4823e1(0x1c3))[_0x4823e1(0x1c7)](_0x217344[_0x4823e1(0x1c0)]),_0x217344[_0x4823e1(0x1b4)]===_0x4823e1(0x1b0)?$(_0x4823e1(0x1bd))[_0x4823e1(0x1b2)]():$('#amily2_lore_depth_container')[_0x4823e1(0x1bf)](),_0x217344[_0x4823e1(0x1c2)]!==undefined&&$(_0x4823e1(0x19f))[_0x4823e1(0x1b5)](_0x4823e1(0x18f),_0x217344[_0x4823e1(0x1c2)]),_0x217344[_0x4823e1(0x19c)]!==undefined&&$(_0x4823e1(0x196))[_0x4823e1(0x1c7)](_0x217344[_0x4823e1(0x19c)]),populateModelDropdown();}}
\ No newline at end of file
+(function(_0x48c893,_0x417f74){const _0x4d03f9=_0x8189,_0x342906=_0x48c893();while(!![]){try{const _0x56bad8=parseInt(_0x4d03f9(0x179))/0x1+parseInt(_0x4d03f9(0x177))/0x2*(parseInt(_0x4d03f9(0x17d))/0x3)+-parseInt(_0x4d03f9(0x164))/0x4+-parseInt(_0x4d03f9(0x181))/0x5+parseInt(_0x4d03f9(0x16a))/0x6+parseInt(_0x4d03f9(0x1bc))/0x7+parseInt(_0x4d03f9(0x1cf))/0x8*(-parseInt(_0x4d03f9(0x1af))/0x9);if(_0x56bad8===_0x417f74)break;else _0x342906['push'](_0x342906['shift']());}catch(_0x2aa756){_0x342906['push'](_0x342906['shift']());}}}(_0x222a,0x8a052));function _0x8189(_0xd71df2,_0x33b93c){const _0x222ae4=_0x222a();return _0x8189=function(_0x8189ad,_0x4450b9){_0x8189ad=_0x8189ad-0x164;let _0x28d993=_0x222ae4[_0x8189ad];return _0x28d993;},_0x8189(_0xd71df2,_0x33b93c);}import{extension_settings}from'/scripts/extensions.js';import{characters,this_chid}from'/script.js';import{extensionName,defaultSettings}from'../utils/settings.js';import{pluginAuthStatus}from'../utils/auth.js';let availableModels=[],latestUpdateInfo=null,newVersionAvailable=![];function _0x222a(){const _0x192bca=['#amily2_opt_rate_main','text','3666630mSkVBD','model','#amily2_api_provider','worldbookEnabled','请检查API配置后点击\x22刷新模型\x22','.plugin-features','length','selected','#amily2_summarization_enabled','已选择:\x20','character','hide','#amily2_optimization_exclusion_enabled','autoHideThreshold','#amily2_update_indicator','loreDepth','#amily2_mhb_small_auto_enabled','mainPrompt','#amily2_lore_depth_container','#amily2_worldbook_enabled','#amily2_model','input[name=\x22amily2_opt_worldbook_source\x22][value=\x22','#amily2_preset_selector','plotOpt_enabled','plotOpt_rateMain','plotOpt_finalSystemDirective','#amily2_opt_main_prompt','val','#amily2_main_prompt','#amily2_lore_depth_input','historiographySmallAutoEnable','at_depth','iconLocation','','outputFormatPrompt','input[name=\x22amily2_icon_location\x22][value=\x22','optimizationTargetTag','contextMessages','forEach','#amily2_max_tokens_value','#amily2_suppress_toast','checked','apiUrl','suppressToast','apiProvider','#amily2_api_url','306ZguisE','loreActivationMode','#amily2_model_notes','optimizationEnabled','historiographySmallTriggerThreshold','temperature','#amily2_optimization_enabled','plotOpt_rateErotic','#auth_panel','show','--\x20选择模型\x20--','enabled','#amily2_temperature','2359161HqiLUO','optimizationMode','input[name=\x22amily2_optimization_mode\x22][value=\x22','extensions','','maxTokens','\x20个可用模型','#amily2_opt_worldbook_enabled','#amily2_opt_enabled','#amily2_update_button_new','input[name=\x22amily2_lorebook_target\x22][value=\x22','plotOpt_systemPrompt','#amily2_context_messages_value','#amily2_context_messages','log','#amily2_max_tokens','#amily2_opt_rate_erotic','loreInsertionPosition','#amily2_auto_hide_threshold','1800mKehgV','2923276KenaAP','#amily2_opt_rate_personal','append','prop','optimizationExclusionEnabled','','3322146vAQuUw','html','systemPrompt','已加载\x20','#amily2_system_prompt','#amily2_lore_activation_mode','#amily2_temperature_value','plotOpt_worldbook_enabled','#amily2_opt_rate_cuckold','#amily2_api_key','plotOpt_mainPrompt','plotOpt_rateCuckold','authorized','26fSqlqN','undefined','841496PLGIxj','#amily2_enabled','#amily2_optimization_target_tag','_value','70365VCknvh','#amily2_output_format_prompt'];_0x222a=function(){return _0x192bca;};return _0x222a();}export function setUpdateInfo(_0x41c779,_0x19f04b){newVersionAvailable=_0x41c779,latestUpdateInfo=_0x19f04b;}export function applyUpdateIndicator(){const _0xe3adbd=_0x8189;newVersionAvailable?($(_0xe3adbd(0x18f))[_0xe3adbd(0x1b8)](),$(_0xe3adbd(0x1c5))[_0xe3adbd(0x1b8)]()):($(_0xe3adbd(0x18f))[_0xe3adbd(0x18c)](),$('#amily2_update_button_new')[_0xe3adbd(0x18c)]());}export function getLatestUpdateInfo(){return latestUpdateInfo;}export function setAvailableModels(_0x4053a4){availableModels=_0x4053a4;}export function populateModelDropdown(){const _0x8d4efc=_0x8189,_0x2eda96=$(_0x8d4efc(0x195)),_0x5c9ce5=$(_0x8d4efc(0x1b1));_0x2eda96['empty']();const _0x42d44c=extension_settings[extensionName]?.[_0x8d4efc(0x182)]||'';if(availableModels['length']===0x0){_0x2eda96[_0x8d4efc(0x166)](_0x8d4efc(0x1a2)),_0x5c9ce5[_0x8d4efc(0x16b)](_0x8d4efc(0x185));return;}const _0x23d12d=$('')['val']('')[_0x8d4efc(0x180)](_0x8d4efc(0x1b9));_0x2eda96[_0x8d4efc(0x166)](_0x23d12d),availableModels[_0x8d4efc(0x1a7)](_0x3025f7=>{const _0x4a534=_0x8d4efc,_0x50084e=$(_0x4a534(0x169))[_0x4a534(0x19c)](_0x3025f7)[_0x4a534(0x180)](_0x3025f7);_0x3025f7===_0x42d44c&&_0x50084e['attr'](_0x4a534(0x188),_0x4a534(0x188)),_0x2eda96[_0x4a534(0x166)](_0x50084e);}),_0x42d44c&&_0x2eda96[_0x8d4efc(0x19c)]()===_0x42d44c?_0x5c9ce5['html'](_0x8d4efc(0x18a)+_0x42d44c+_0x8d4efc(0x1c0)):_0x5c9ce5[_0x8d4efc(0x16b)](_0x8d4efc(0x16d)+availableModels[_0x8d4efc(0x187)]+_0x8d4efc(0x1c2));}export function updateUI(){const _0x1174a0=_0x8189;if(!pluginAuthStatus[_0x1174a0(0x176)])$(_0x1174a0(0x1b7))[_0x1174a0(0x1b8)](),$(_0x1174a0(0x186))[_0x1174a0(0x18c)]();else{$(_0x1174a0(0x1b7))[_0x1174a0(0x18c)](),$(_0x1174a0(0x186))[_0x1174a0(0x1b8)]();const _0x5484d2=extension_settings[extensionName];if(!_0x5484d2)return;$(_0x1174a0(0x17a))[_0x1174a0(0x167)](_0x1174a0(0x1aa),_0x5484d2[_0x1174a0(0x1ba)]),$(_0x1174a0(0x183))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x1ad)]||'openai'),$(_0x1174a0(0x1ae))['val'](_0x5484d2[_0x1174a0(0x1ab)]),$(_0x1174a0(0x173))[_0x1174a0(0x19c)](_0x5484d2['apiKey']),$('#amily2_model')[_0x1174a0(0x19c)](_0x5484d2['model']),$(_0x1174a0(0x197))[_0x1174a0(0x19c)](_0x5484d2['tavernProfile']),$(_0x1174a0(0x183))['trigger']('change'),$(_0x1174a0(0x1cb))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x1c1)]),$(_0x1174a0(0x1a8))[_0x1174a0(0x180)](_0x5484d2[_0x1174a0(0x1c1)]),$(_0x1174a0(0x1bb))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x1b4)]),$(_0x1174a0(0x170))['text'](_0x5484d2[_0x1174a0(0x1b4)]),$(_0x1174a0(0x1c9))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x1a6)]),$(_0x1174a0(0x1c8))[_0x1174a0(0x180)](_0x5484d2['contextMessages']),$(_0x1174a0(0x17b))['val'](_0x5484d2[_0x1174a0(0x1a5)]),$(_0x1174a0(0x1be)+_0x5484d2[_0x1174a0(0x1bd)]+'\x22]')[_0x1174a0(0x167)](_0x1174a0(0x1aa),!![]),$(_0x1174a0(0x1b5))[_0x1174a0(0x167)](_0x1174a0(0x1aa),_0x5484d2[_0x1174a0(0x1b2)]),$(_0x1174a0(0x18d))['prop'](_0x1174a0(0x1aa),_0x5484d2[_0x1174a0(0x168)]),$('#amily2_show_optimization_toast')[_0x1174a0(0x167)](_0x1174a0(0x1aa),_0x5484d2['showOptimizationToast']),$(_0x1174a0(0x1a9))[_0x1174a0(0x167)](_0x1174a0(0x1aa),_0x5484d2[_0x1174a0(0x1ac)]),$(_0x1174a0(0x16e))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x16c)]),$(_0x1174a0(0x19d))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x192)]),$(_0x1174a0(0x17e))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x1a3)]),$('#amily2_summarization_prompt')[_0x1174a0(0x19c)](_0x5484d2['summarizationPrompt']),$(_0x1174a0(0x194))['prop'](_0x1174a0(0x1aa),_0x5484d2[_0x1174a0(0x184)]),$(_0x1174a0(0x189))[_0x1174a0(0x167)]('checked',_0x5484d2['summarizationEnabled']),$(_0x1174a0(0x1c6)+_0x5484d2['lorebookTarget']+'\x22]')[_0x1174a0(0x167)]('checked',!![]),$(_0x1174a0(0x1a4)+_0x5484d2[_0x1174a0(0x1a1)]+'\x22]')[_0x1174a0(0x167)](_0x1174a0(0x1aa),!![]),$('#amily2_auto_hide_enabled')[_0x1174a0(0x167)](_0x1174a0(0x1aa),_0x5484d2['autoHideEnabled']),$(_0x1174a0(0x1ce))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x18e)]),$('#amily2_auto_hide_threshold_value')['text'](_0x5484d2[_0x1174a0(0x18e)]),$(_0x1174a0(0x16f))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x1b0)]),$('#amily2_lore_insertion_position')[_0x1174a0(0x19c)](_0x5484d2['loreInsertionPosition']),$(_0x1174a0(0x19e))[_0x1174a0(0x19c)](_0x5484d2[_0x1174a0(0x190)]),_0x5484d2[_0x1174a0(0x1cd)]===_0x1174a0(0x1a0)?$(_0x1174a0(0x193))[_0x1174a0(0x1b8)]():$(_0x1174a0(0x193))['hide'](),_0x5484d2[_0x1174a0(0x19f)]!==undefined&&$(_0x1174a0(0x191))[_0x1174a0(0x167)](_0x1174a0(0x1aa),_0x5484d2[_0x1174a0(0x19f)]),_0x5484d2[_0x1174a0(0x1b3)]!==undefined&&$('#amily2_mhb_small_trigger_count')[_0x1174a0(0x19c)](_0x5484d2['historiographySmallTriggerThreshold']),populateModelDropdown(),updatePlotOptimizationUI();}}function getMergedPlotOptSettings(){const _0x1d3a77=_0x8189,_0x32b68c=characters&&typeof this_chid!==_0x1d3a77(0x178)&&characters[this_chid]?characters[this_chid]:null,_0x2f4374=extension_settings[extensionName]||defaultSettings,_0x2d0035=_0x32b68c?.['data']?.[_0x1d3a77(0x1bf)]?.[extensionName]||{};return{..._0x2f4374,..._0x2d0035};}export function updatePlotOptimizationUI(){const _0x47083d=_0x8189,_0x3b2327=getMergedPlotOptSettings();if(!_0x3b2327)return;$(_0x47083d(0x1c4))[_0x47083d(0x167)](_0x47083d(0x1aa),_0x3b2327[_0x47083d(0x198)]),$(_0x47083d(0x1c3))['prop']('checked',_0x3b2327[_0x47083d(0x171)]),$(_0x47083d(0x19b))[_0x47083d(0x19c)](_0x3b2327[_0x47083d(0x174)]),$('#amily2_opt_system_prompt')['val'](_0x3b2327[_0x47083d(0x1c7)]),$('#amily2_opt_final_system_directive')[_0x47083d(0x19c)](_0x3b2327[_0x47083d(0x19a)]),$(_0x47083d(0x17f))['val'](_0x3b2327[_0x47083d(0x199)]),$(_0x47083d(0x165))[_0x47083d(0x19c)](_0x3b2327['plotOpt_ratePersonal']),$(_0x47083d(0x1cc))[_0x47083d(0x19c)](_0x3b2327[_0x47083d(0x1b6)]),$(_0x47083d(0x172))[_0x47083d(0x19c)](_0x3b2327[_0x47083d(0x175)]);const _0x358646={'#amily2_opt_context_limit':'plotOpt_contextLimit','#amily2_opt_worldbook_char_limit':'plotOpt_worldbookCharLimit'};for(const _0x14c651 in _0x358646){const _0x287ac2=_0x358646[_0x14c651],_0x2b236a=_0x3b2327[_0x287ac2],_0x487f36=_0x14c651+_0x47083d(0x17c);_0x2b236a!==undefined&&($(_0x14c651)[_0x47083d(0x19c)](_0x2b236a),$(_0x487f36)['text'](_0x2b236a));}const _0x55ebaf=_0x3b2327['plotOpt_worldbookSource']||_0x47083d(0x18b);$(_0x47083d(0x196)+_0x55ebaf+'\x22]')['prop'](_0x47083d(0x1aa),!![]),console[_0x47083d(0x1ca)]('['+extensionName+']\x20(state.js)\x20剧情优化UI已根据合并设置更新。');}