HJ_Client/extensions/cocos-service/utils/config.js
DESKTOP-15R5JU0\legu 62fef0360c init
2023-11-17 14:13:11 +08:00

1 line
18 KiB
JavaScript

'use strict';const _0x49baa9=_0x5f48;(function(_0x28df26,_0x1536d9){const _0xa71aad=_0x5f48,_0x5a8d03=_0x28df26();while(!![]){try{const _0x5cb787=-parseInt(_0xa71aad(0xa2))/0x1+parseInt(_0xa71aad(0x87))/0x2+parseInt(_0xa71aad(0x6b))/0x3+parseInt(_0xa71aad(0xba))/0x4*(parseInt(_0xa71aad(0xab))/0x5)+-parseInt(_0xa71aad(0xa3))/0x6+-parseInt(_0xa71aad(0x8b))/0x7*(-parseInt(_0xa71aad(0x84))/0x8)+-parseInt(_0xa71aad(0x99))/0x9;if(_0x5cb787===_0x1536d9)break;else _0x5a8d03['push'](_0x5a8d03['shift']());}catch(_0xb757b5){_0x5a8d03['push'](_0x5a8d03['shift']());}}}(_0x15ba,0xadde7));function _0x1e19(_0x465596,_0x12d4fd){const _0x365e8a=_0x5e25();return _0x1e19=function(_0x8f2864,_0x1a151e){_0x8f2864=_0x8f2864-0xc4;let _0x33adfb=_0x365e8a[_0x8f2864];return _0x33adfb;},_0x1e19(_0x465596,_0x12d4fd);}const _0x3611ac=_0x1e19;function _0x5f48(_0x4601f2,_0x1d57c3){const _0x15ba5c=_0x15ba();return _0x5f48=function(_0x5f48b3,_0x3875d5){_0x5f48b3=_0x5f48b3-0x6b;let _0x5cf9e9=_0x15ba5c[_0x5f48b3];return _0x5cf9e9;},_0x5f48(_0x4601f2,_0x1d57c3);}(function(_0x3cd1f1,_0x3c2954){const _0x18755c=_0x5f48,_0x150a75=_0x1e19,_0xa5e5d5=_0x3cd1f1();while(!![]){try{const _0x5a700b=parseInt(_0x150a75(0xf0))/0x1*(-parseInt(_0x150a75(0x105))/0x2)+parseInt(_0x150a75(0x109))/0x3*(-parseInt(_0x150a75(0xea))/0x4)+-parseInt(_0x150a75(0xd7))/0x5*(-parseInt(_0x150a75(0xe7))/0x6)+-parseInt(_0x150a75(0xdf))/0x7*(-parseInt(_0x150a75(0xf3))/0x8)+-parseInt(_0x150a75(0xf1))/0x9+parseInt(_0x150a75(0x104))/0xa*(-parseInt(_0x150a75(0xe6))/0xb)+-parseInt(_0x150a75(0x103))/0xc*(-parseInt(_0x150a75(0xd4))/0xd);if(_0x5a700b===_0x3c2954)break;else _0xa5e5d5[_0x18755c(0x82)](_0xa5e5d5[_0x18755c(0x7b)]());}catch(_0x479e68){_0xa5e5d5[_0x18755c(0x82)](_0xa5e5d5[_0x18755c(0x7b)]());}}}(_0x5e25,0x4f306));function _0x15ba(){const _0x10c775=['name','generateConfigSet','min','3941fEwgsh','1057788YGHouy','1592UgXWks','defineProperty','path','cid','readConfigSets','shift','44605RmaVPM','readServiceList','__esModule','1768CwLlPm','writeGlobalProfile','All','push','map','1008008xNpNEr','find','groups','1056730iKSjLG','default','Config\x20file\x20error!\x20(copyConfigSet\x20=>\x20appConfigMaps.find)','Config\x20file\x20error!\x20(readEnableServices\x20=>\x20readConfigSet)','21OQwevH','readConfigSet','Default','config_id','appid','Config\x20file\x20error!\x20(copyConfigSet\x20=>\x20configs.find)','readProjectProfile','readGlobalProfile','UNKNOW','lang','splice','2811HJtJBR','444fsabFU','Config\x20file\x20error!\x20(wirteEnableService\x20=>\x20config.find)','3457899MtVwbf','2.0.0','game','writeConfigSet','forEach','config_remarks','join','Config\x20file\x20error!\x20(writeServiceParam\x20=>\x20readConfigSet)','length','804919QAwpIN','3647016JYWtWH','__importDefault','appConfigMaps','findIndex','1805oXAfnF','filter','11207ddIUvK','compareVersion','654060CstrDE','service_id','getLang','param','writeProjectProfile','services','enable','filter.','1360euWMVA','generateID','app_id','configs','config_name','fs-extra','settings/service.json','28KOdCCk','test','2061243BzNTNt','writeBindGame','getProjectPath','Config\x20file\x20error!\x20(wirteEnableService\x20=>\x20readConfigSet)','game.app_id','Config\x20file\x20error!\x20(deleteConfigSet\x20=>\x20configs.findIndex)'];_0x15ba=function(){return _0x10c775;};return _0x15ba();}var __importDefault=this&&this[_0x3611ac(0x108)]||function(_0x1a0f39){const _0x13a26e=_0x3611ac;return _0x1a0f39&&_0x1a0f39[_0x13a26e(0xfb)]?_0x1a0f39:{'default':_0x1a0f39};};Object[_0x3611ac(0xf6)](exports,_0x3611ac(0xfb),{'value':!0x0});const editor_1=__importDefault(require('./editor')),util_1=__importDefault(require(_0x3611ac(0xdd))),path_1=require(_0x3611ac(0xe1)),fs_extra_1=require(_0x3611ac(0xf4));let generateConfigItem=(_0x23d0ce,_0x2f07b1,_0x4481ed=[])=>({'app_id':_0x23d0ce,'config_id':_0x2f07b1[_0x49baa9(0x8e)],'config_name':_0x2f07b1[_0x3611ac(0xcf)],'config_remarks':_0x2f07b1[_0x3611ac(0xd9)],'services':_0x4481ed}),getConfigSetByConfig=_0x25ba61=>({'config_id':_0x25ba61[_0x3611ac(0xf5)],'config_name':_0x25ba61[_0x49baa9(0xb7)],'config_remarks':_0x25ba61[_0x3611ac(0xd9)]});function _0x5e25(){const _0x2454cd=_0x49baa9,_0x348994=[_0x2454cd(0x9d),_0x2454cd(0x8a),_0x2454cd(0x7d),_0x2454cd(0x7c),'3858AxcDDE',_0x2454cd(0x73),_0x2454cd(0x6f),_0x2454cd(0x76),_0x2454cd(0x88),_0x2454cd(0xb2),_0x2454cd(0xa8),_0x2454cd(0x81),_0x2454cd(0x79),_0x2454cd(0x74),_0x2454cd(0x75),_0x2454cd(0xaa),_0x2454cd(0x7f),_0x2454cd(0xb8),_0x2454cd(0x8e),_0x2454cd(0x77),_0x2454cd(0x72),_0x2454cd(0xb1),_0x2454cd(0x82),_0x2454cd(0x8d),_0x2454cd(0x7e),_0x2454cd(0x93),_0x2454cd(0x80),_0x2454cd(0x7a),_0x2454cd(0x94),_0x2454cd(0xb6),_0x2454cd(0xb4),_0x2454cd(0x90),_0x2454cd(0x97),_0x2454cd(0xb3),'134DLfxOz',_0x2454cd(0xb9),_0x2454cd(0xa5),_0x2454cd(0xa4),_0x2454cd(0x96),'app_id',_0x2454cd(0x6c),'existsSync',_0x2454cd(0x95),'services',_0x2454cd(0x9c),_0x2454cd(0x9b),_0x2454cd(0x92),_0x2454cd(0xac),_0x2454cd(0x9a),_0x2454cd(0xa1),'max',_0x2454cd(0xa6),_0x2454cd(0x86),_0x2454cd(0xb7),_0x2454cd(0xae),_0x2454cd(0x9f),_0x2454cd(0xa0),_0x2454cd(0x6e),'366951BJkYkd','Config\x20file\x20error!\x20(readServiceParam\x20=>\x20readConfigSet)','cscv',_0x2454cd(0xa7),_0x2454cd(0x85),'config_remarks',_0x2454cd(0x70),_0x2454cd(0x8c),_0x2454cd(0xaf),'./util',_0x2454cd(0xad),_0x2454cd(0xa9),_0x2454cd(0xbb),_0x2454cd(0x78),'readProjectProfile'];return _0x5e25=function(){return _0x348994;},_0x5e25();}exports[_0x3611ac(0xeb)]={'updateConfigFile':async function(){return new Promise(async(_0x3f086a,_0xc1548e)=>{const _0x16268f=_0x5f48,_0x2a4688=_0x1e19;let _0x31999c=async _0x3d9e7f=>{const _0x4a84ad=_0x5f48,_0x2b5c97=_0x1e19;_0x3d9e7f[_0x4a84ad(0x83)](_0x5918b1=>{const _0xf560f1=_0x4a84ad,_0x194753=_0x1e19;if(void 0x0!==_0x5918b1[_0x194753(0xf5)])return;let _0x3277c5=this[_0xf560f1(0x72)](_0x194753(0xfa));_0x5918b1[_0x194753(0xf5)]=_0x3277c5[_0x194753(0xf5)],_0x5918b1[_0x194753(0xcf)]=_0x3277c5[_0x194753(0xcf)],_0x5918b1[_0x194753(0xd9)]=_0x3277c5[_0x194753(0xd9)];}),await editor_1[_0x2b5c97(0xeb)][_0x2b5c97(0xdc)](_0x2b5c97(0x100),_0x3d9e7f);},_0x1499be=async _0x55fbf9=>{const _0x89e0e2=_0x5f48,_0x74d7f4=_0x1e19;if(null!=_0x55fbf9){if(void 0x0!==_0x55fbf9[_0x74d7f4(0x100)]&&_0x55fbf9[_0x74d7f4(0x100)]instanceof Array&&await _0x31999c(_0x55fbf9[_0x74d7f4(0x100)]),void 0x0!==_0x55fbf9[_0x74d7f4(0xc7)]){let _0x2fd5d9=_0x55fbf9['game'];this[_0x74d7f4(0x10b)]({'app_id':_0x2fd5d9[_0x89e0e2(0x8f)]||_0x2fd5d9[_0x74d7f4(0x10a)]||_0x74d7f4(0xfc),'name':_0x2fd5d9[_0x89e0e2(0x71)],'c_id':_0x2fd5d9[_0x74d7f4(0xef)]||'0'});}let _0x3ae0e3=await editor_1[_0x74d7f4(0xeb)][_0x74d7f4(0xe2)](_0x74d7f4(0xe9)),_0x1f0a7c=await this[_0x74d7f4(0xfe)](_0x3ae0e3);_0x1f0a7c[_0x74d7f4(0xcb)]>0x0&&await editor_1[_0x74d7f4(0xeb)][_0x74d7f4(0xdc)](_0x89e0e2(0xa5),[{'app_id':_0x3ae0e3,'config_id':_0x1f0a7c[0x0][_0x74d7f4(0xf5)]}]),await editor_1[_0x74d7f4(0xeb)][_0x89e0e2(0xaf)](_0x74d7f4(0xd6),_0x74d7f4(0xca));}},_0xce58ee=await editor_1[_0x2a4688(0xeb)][_0x16268f(0x91)](_0x2a4688(0xd6));if(void 0x0!==_0xce58ee&&0x0===util_1[_0x2a4688(0xeb)][_0x2a4688(0xf2)](_0xce58ee,_0x16268f(0x9a)))return _0x3f086a();let _0x2c24f6=(0x0,path_1[_0x2a4688(0xd1)])(editor_1[_0x2a4688(0xeb)][_0x16268f(0x6d)](),_0x2a4688(0x106));if((0x0,fs_extra_1[_0x2a4688(0x10c)])(_0x2c24f6)&&(void 0x0===await editor_1[_0x2a4688(0xeb)][_0x16268f(0x91)](_0x2a4688(0xc7))||null===await editor_1[_0x2a4688(0xeb)][_0x2a4688(0xe2)]('game')))try{_0x1499be((0x0,fs_extra_1['readJsonSync'])(_0x2c24f6));}catch(_0x12c2c2){return _0x3f086a();}_0x3f086a();});},'generateConfigSet':function(_0xaffa73,_0x5ebe1a=''){const _0x598e9b=_0x3611ac;return{'config_id':util_1[_0x598e9b(0xeb)][_0x598e9b(0x101)](_0xaffa73),'config_name':_0xaffa73,'config_remarks':_0x5ebe1a};},'copyConfigSet':async function(_0x90804e,_0x36f389='',_0x4bc754=''){return new Promise(async(_0x57f770,_0x594f2f)=>{const _0x3645a0=_0x5f48,_0x5debbc=_0x1e19;if(''===_0x4bc754&&(_0x4bc754=await editor_1[_0x5debbc(0xeb)][_0x5debbc(0xe2)](_0x3645a0(0x6f))),''===_0x36f389){let _0x17c4fd=(await editor_1[_0x5debbc(0xeb)][_0x5debbc(0xe2)]('appConfigMaps')||[])[_0x3645a0(0x85)](_0x142cbc=>_0x142cbc['app_id']===_0x4bc754);if(void 0x0===_0x17c4fd)return _0x594f2f(_0x3645a0(0x89));_0x36f389=_0x17c4fd[_0x5debbc(0xf5)];}let _0x4a4904=await editor_1[_0x5debbc(0xeb)][_0x5debbc(0xe2)](_0x5debbc(0x100))||[],_0x47d2d1=_0x4a4904[_0x3645a0(0x85)](_0x15069a=>_0x15069a[_0x5debbc(0x10a)]==_0x4bc754&&_0x15069a['config_id']===_0x36f389);if(void 0x0===_0x47d2d1)return _0x594f2f(_0x5debbc(0x102));let _0x1d30ff=generateConfigItem(_0x4bc754,_0x90804e,_0x47d2d1[_0x5debbc(0xc5)]||[]);_0x4a4904[_0x3645a0(0x82)](_0x1d30ff),await editor_1[_0x5debbc(0xeb)][_0x5debbc(0xdc)](_0x5debbc(0x100),_0x4a4904),_0x57f770();});},'deleteConfigSet':async function(_0x113bcf,_0x268d5c=''){return new Promise(async(_0x3f5e3f,_0xb26d20)=>{const _0x5c9799=_0x5f48,_0x4d74c9=_0x1e19;''===_0x268d5c&&(_0x268d5c=await editor_1[_0x4d74c9(0xeb)][_0x4d74c9(0xe2)](_0x4d74c9(0xe9)));let _0x17d5a3=await editor_1[_0x4d74c9(0xeb)][_0x4d74c9(0xe2)](_0x4d74c9(0x100));_0x17d5a3||(_0x17d5a3=[]);let _0x3311fb=_0x17d5a3[_0x4d74c9(0xcd)](_0x43270f=>_0x43270f[_0x4d74c9(0x10a)]==_0x268d5c&&_0x43270f[_0x5c9799(0x8e)]===_0x113bcf);if(_0x3311fb<0x0)return _0xb26d20(_0x4d74c9(0xda));_0x17d5a3[_0x4d74c9(0xc4)](_0x3311fb,0x1),await editor_1[_0x4d74c9(0xeb)][_0x4d74c9(0xdc)](_0x4d74c9(0x100),_0x17d5a3);let _0x50257a=_0x17d5a3[_0x4d74c9(0xed)](_0x5b4129=>_0x5b4129[_0x4d74c9(0x10a)]===_0x268d5c);_0x3f5e3f(_0x50257a[Math[_0x4d74c9(0xcc)](Math[_0x4d74c9(0xe8)](_0x50257a[_0x4d74c9(0xcb)]-0x1,_0x3311fb-0x1),0x0)]);});},'readServiceList':async function(){const _0x194f60=_0x3611ac;return await editor_1[_0x194f60(0xeb)][_0x194f60(0xc8)](_0x194f60(0xc5))||[];},'writeServiceList':async function(_0x19733f){const _0x17b225=_0x49baa9,_0x3a5498=_0x3611ac;return await editor_1[_0x3a5498(0xeb)][_0x3a5498(0xfd)](_0x3a5498(0xff),editor_1[_0x17b225(0x88)][_0x17b225(0xad)]()),await editor_1[_0x3a5498(0xeb)][_0x17b225(0x80)](_0x3a5498(0xc5),_0x19733f);},'readServiceGroupList':async function(){const _0x17c218=_0x3611ac;return await editor_1[_0x17c218(0xeb)][_0x17c218(0xc8)](_0x17c218(0xce))||[];},'writeServiceGroupList':async function(_0x58a8c8){const _0x18c28d=_0x49baa9,_0x357f5f=_0x3611ac;return await editor_1[_0x18c28d(0x88)][_0x18c28d(0x80)](_0x18c28d(0x94),editor_1[_0x357f5f(0xeb)][_0x357f5f(0xde)]()),await editor_1[_0x357f5f(0xeb)][_0x357f5f(0xfd)](_0x357f5f(0xce),_0x58a8c8);},'readServiceFilter':async function(){const _0x41eac0=_0x49baa9,_0x310f10=_0x3611ac;return await editor_1[_0x310f10(0xeb)][_0x41eac0(0x92)](_0x310f10(0xec)+editor_1[_0x310f10(0xeb)][_0x310f10(0xde)]())||{'status':_0x310f10(0xee),'platforms':[_0x310f10(0xee)]};},'writeServiceFilter':async function(_0x27fc1a){const _0x2d6ae4=_0x3611ac;return await editor_1[_0x2d6ae4(0xeb)][_0x2d6ae4(0xfd)](_0x2d6ae4(0xec)+editor_1[_0x2d6ae4(0xeb)][_0x2d6ae4(0xde)](),_0x27fc1a);},'readBindGame':async function(){const _0x4d7f92=_0x49baa9,_0x88a2b8=_0x3611ac;return await editor_1['default'][_0x4d7f92(0x91)](_0x88a2b8(0xc7));},'writeBindGame':async function(_0x57b368){return new Promise(async(_0x524e46,_0x3c76cf)=>{const _0xbc61e4=_0x1e19;await editor_1[_0xbc61e4(0xeb)][_0xbc61e4(0xdc)](_0xbc61e4(0xc7),_0x57b368);let _0x19774a=await this[_0xbc61e4(0xdb)](_0x57b368[_0xbc61e4(0x10a)]);if(void 0x0===_0x19774a){let _0x2cf4a2=await this[_0xbc61e4(0xfe)](_0x57b368[_0xbc61e4(0x10a)]);_0x2cf4a2[_0xbc61e4(0xcb)]>0x0&&(_0x19774a=_0x2cf4a2[0x0]);}void 0x0===_0x19774a&&(_0x19774a=this[_0xbc61e4(0xf7)](_0xbc61e4(0xfa))),await this[_0xbc61e4(0xc6)](_0x19774a,_0x57b368[_0xbc61e4(0x10a)]),_0x524e46();});},'readConfigSet':async function(_0x69ba0b=''){return new Promise(async(_0x31f116,_0x5960c7)=>{const _0x45ac9b=_0x5f48,_0x3b9aaa=_0x1e19;''===_0x69ba0b&&(_0x69ba0b=await editor_1[_0x3b9aaa(0xeb)][_0x3b9aaa(0xe2)](_0x3b9aaa(0xe9)));let _0xb07c78,_0x56b9f2=await editor_1[_0x45ac9b(0x88)][_0x45ac9b(0x91)](_0x3b9aaa(0x107))||[];do{let _0xd79961=_0x56b9f2[_0x3b9aaa(0xd8)](_0x2c0358=>_0x2c0358[_0x3b9aaa(0x10a)]===_0x69ba0b),_0x324cfb=await editor_1[_0x45ac9b(0x88)][_0x3b9aaa(0xe2)](_0x3b9aaa(0x100));if(void 0x0===_0xd79961||null===_0x324cfb)break;let _0x1f6724=_0x324cfb[_0x45ac9b(0x85)](_0x514030=>_0x514030[_0x3b9aaa(0x10a)]==_0x69ba0b&&_0x514030[_0x3b9aaa(0xf5)]==(null==_0xd79961?void 0x0:_0xd79961[_0x3b9aaa(0xf5)]));if(void 0x0===_0x1f6724)break;_0xb07c78=getConfigSetByConfig(_0x1f6724);}while(0x0);_0x31f116(_0xb07c78);});},'writeConfigSet':async function(_0x5560ca,_0x558408=''){return new Promise(async(_0x3fe11f,_0x2ef3d6)=>{const _0x35fef9=_0x5f48,_0x1e6cd9=_0x1e19;''===_0x558408&&(_0x558408=await editor_1[_0x1e6cd9(0xeb)][_0x35fef9(0x91)]('game.app_id'));let _0x5f5a0b=await editor_1[_0x1e6cd9(0xeb)][_0x1e6cd9(0xe2)](_0x1e6cd9(0x107))||[],_0x353120=_0x5f5a0b[_0x1e6cd9(0xd8)](_0x312755=>_0x312755[_0x1e6cd9(0x10a)]===_0x558408);void 0x0===_0x353120?(_0x353120={'app_id':_0x558408,'config_id':_0x5560ca[_0x1e6cd9(0xf5)]},_0x5f5a0b[_0x1e6cd9(0xf9)](_0x353120)):_0x353120[_0x1e6cd9(0xf5)]=_0x5560ca[_0x1e6cd9(0xf5)],await editor_1['default'][_0x1e6cd9(0xdc)](_0x35fef9(0xa5),_0x5f5a0b);let _0x1bed9d=await editor_1[_0x1e6cd9(0xeb)][_0x1e6cd9(0xe2)](_0x1e6cd9(0x100));_0x1bed9d||(_0x1bed9d=[]);let _0xe3c959=_0x1bed9d[_0x1e6cd9(0xd8)](_0x3557ab=>_0x3557ab[_0x1e6cd9(0x10a)]==_0x558408&&_0x3557ab[_0x1e6cd9(0xf5)]===_0x5560ca[_0x1e6cd9(0xf5)]);void 0x0===_0xe3c959?_0x1bed9d[_0x1e6cd9(0xf9)](generateConfigItem(_0x558408,_0x5560ca)):(_0xe3c959['config_id']=_0x5560ca[_0x1e6cd9(0xf5)],_0xe3c959[_0x1e6cd9(0xcf)]=_0x5560ca[_0x1e6cd9(0xcf)],_0xe3c959[_0x1e6cd9(0xd9)]=_0x5560ca[_0x35fef9(0x9e)]),await editor_1[_0x1e6cd9(0xeb)][_0x1e6cd9(0xdc)](_0x1e6cd9(0x100),_0x1bed9d),_0x3fe11f();});},'readConfigSets':async function(_0x356e63=''){return new Promise(async(_0x21bafd,_0x5b3677)=>{const _0x2a6b96=_0x5f48,_0x108eb2=_0x1e19;''===_0x356e63&&(_0x356e63=await editor_1[_0x2a6b96(0x88)][_0x108eb2(0xe2)](_0x2a6b96(0x6f)));let _0x13c25b=await editor_1[_0x108eb2(0xeb)]['readProjectProfile']('configs');_0x13c25b||(_0x13c25b=[]);let _0x14734e=[];_0x13c25b[_0x108eb2(0xed)](_0xf2ac13=>_0xf2ac13[_0x108eb2(0x10a)]===_0x356e63)[_0x108eb2(0xe3)](_0x1c5d5e=>_0x1c5d5e[_0x2a6b96(0x8e)]&&_0x14734e[_0x108eb2(0xf9)](getConfigSetByConfig(_0x1c5d5e))),_0x21bafd(_0x14734e);});},'readEnableServices':async function(_0x348feb=''){return new Promise(async(_0x1feeee,_0xa87216)=>{const _0x52c77a=_0x5f48,_0xccc405=_0x1e19;let _0x170774=await editor_1[_0x52c77a(0x88)][_0x52c77a(0x91)](_0x52c77a(0x6f));if(''===_0x348feb){let _0x297730=await this[_0xccc405(0xdb)]();if(void 0x0===_0x297730)return _0xa87216(_0xccc405(0xe4));_0x348feb=_0x297730[_0x52c77a(0x8e)];}let _0xdc9730=await editor_1[_0xccc405(0xeb)][_0xccc405(0xe2)](_0xccc405(0x100));_0xdc9730||(_0xdc9730=[]);let _0x1b90b5=[];do{let _0x250da4=_0xdc9730[_0x52c77a(0x85)](_0x5b53c1=>_0x5b53c1['app_id']==_0x170774&&_0x5b53c1[_0xccc405(0xf5)]===_0x348feb);if(void 0x0===_0x250da4||void 0x0===_0x250da4[_0xccc405(0xc5)]||0x0===_0x250da4[_0xccc405(0xc5)][_0xccc405(0xcb)])break;_0x250da4[_0xccc405(0xc5)][_0x52c77a(0xa8)](_0x2665a5=>_0x2665a5[_0xccc405(0xf8)])[_0xccc405(0xe3)](_0x58037d=>_0x1b90b5[_0xccc405(0xf9)](_0x58037d[_0x52c77a(0xac)]));}while(0x0);_0x1feeee(_0x1b90b5);});},'wirteEnableService':async function(_0x350f4c,_0x4776ea,_0x57c17f=''){return new Promise(async(_0x2af7fc,_0x29f1dd)=>{const _0x141e1c=_0x5f48,_0x1a27ed=_0x1e19;let _0x50f11a=await editor_1[_0x1a27ed(0xeb)][_0x141e1c(0x91)](_0x141e1c(0x6f));if(''===_0x57c17f){let _0x32ad36=await this[_0x141e1c(0x8c)]();if(void 0x0===_0x32ad36)return _0x29f1dd(_0x1a27ed(0xd3));_0x57c17f=_0x32ad36[_0x1a27ed(0xf5)];}let _0x23fcb4=await editor_1[_0x141e1c(0x88)][_0x1a27ed(0xe2)](_0x1a27ed(0x100));_0x23fcb4||(_0x23fcb4=[]);let _0x2fce36=_0x23fcb4[_0x1a27ed(0xd8)](_0x1f1978=>_0x1f1978[_0x141e1c(0xb5)]==_0x50f11a&&_0x1f1978[_0x141e1c(0x8e)]===_0x57c17f);if(void 0x0===_0x2fce36)return _0x29f1dd(_0x141e1c(0x98));void 0x0===_0x2fce36[_0x1a27ed(0xc5)]&&(_0x2fce36[_0x1a27ed(0xc5)]=[]);let _0x3bf2b3=_0x2fce36[_0x1a27ed(0xc5)][_0x1a27ed(0xd8)](_0x1b25f0=>_0x1b25f0[_0x141e1c(0xac)]===_0x350f4c);void 0x0===_0x3bf2b3?(_0x3bf2b3={'service_id':_0x350f4c,'enable':_0x4776ea,'param':{}},_0x2fce36[_0x1a27ed(0xc5)][_0x141e1c(0x82)](_0x3bf2b3)):_0x3bf2b3[_0x1a27ed(0xf8)]=_0x4776ea,await editor_1[_0x1a27ed(0xeb)][_0x1a27ed(0xdc)](_0x1a27ed(0x100),_0x23fcb4),_0x2af7fc();});},'readServiceParam':async function(_0x1efc9b,_0x865e5a=''){return new Promise(async(_0x199f33,_0x52d12e)=>{const _0x1014e2=_0x5f48,_0x2d879a=_0x1e19;let _0x55c8d9=await editor_1[_0x2d879a(0xeb)]['readProjectProfile']('game.app_id');if(''===_0x865e5a){let _0x5a2ac4=await this[_0x2d879a(0xdb)]();if(void 0x0===_0x5a2ac4)return _0x52d12e(_0x2d879a(0xd5));_0x865e5a=_0x5a2ac4[_0x2d879a(0xf5)];}let _0x2168e6=await editor_1[_0x2d879a(0xeb)]['readProjectProfile'](_0x2d879a(0x100));_0x2168e6||(_0x2168e6=[]);let _0x35bb2c={};do{let _0x210dcf=_0x2168e6[_0x2d879a(0xd8)](_0x2e3183=>_0x2e3183[_0x1014e2(0xb5)]==_0x55c8d9&&_0x2e3183['config_id']===_0x865e5a);if(void 0x0===_0x210dcf||void 0x0===_0x210dcf[_0x2d879a(0xc5)]||0x0===_0x210dcf[_0x2d879a(0xc5)][_0x2d879a(0xcb)])break;let _0x56c0be=_0x210dcf[_0x2d879a(0xc5)][_0x2d879a(0xd8)](_0x419d75=>_0x419d75[_0x2d879a(0xc9)]===_0x1efc9b);void 0x0!==_0x56c0be&&void 0x0!==_0x56c0be[_0x2d879a(0xd0)]&&null!==_0x56c0be[_0x2d879a(0xd0)]&&(_0x35bb2c=_0x56c0be[_0x1014e2(0xae)]);}while(0x0);_0x199f33(_0x35bb2c);});},'writeServiceParam':async function(_0x40420e,_0x36c77d,_0x3eee3d=''){return new Promise(async(_0x2579cc,_0x43c01b)=>{const _0x3fb842=_0x5f48,_0x13bf07=_0x1e19;let _0x51f314=await editor_1[_0x3fb842(0x88)][_0x13bf07(0xe2)]('game.app_id');if(''===_0x3eee3d){let _0x5bbf11=await this[_0x13bf07(0xdb)]();if(void 0x0===_0x5bbf11)return _0x43c01b(_0x13bf07(0xd2));_0x3eee3d=_0x5bbf11[_0x13bf07(0xf5)];}let _0x34ceb9=await editor_1[_0x13bf07(0xeb)][_0x3fb842(0x91)](_0x13bf07(0x100));_0x34ceb9||(_0x34ceb9=[]);let _0x5ee089=_0x34ceb9[_0x13bf07(0xd8)](_0x237d33=>_0x237d33[_0x13bf07(0x10a)]==_0x51f314&&_0x237d33[_0x13bf07(0xf5)]===_0x3eee3d);if(void 0x0===_0x5ee089)return _0x43c01b(_0x13bf07(0xd2));void 0x0===_0x5ee089[_0x13bf07(0xc5)]&&(_0x5ee089[_0x3fb842(0xb0)]=[]);let _0x3c3690=_0x5ee089[_0x13bf07(0xc5)][_0x13bf07(0xd8)](_0x5ac644=>_0x5ac644[_0x13bf07(0xc9)]===_0x40420e);void 0x0===_0x3c3690?(_0x3c3690={'service_id':_0x40420e,'enable':!0x1,'param':_0x36c77d},_0x5ee089[_0x13bf07(0xc5)][_0x3fb842(0x82)](_0x3c3690)):_0x3c3690[_0x13bf07(0xd0)]=_0x36c77d,await editor_1[_0x13bf07(0xeb)][_0x13bf07(0xdc)](_0x13bf07(0x100),_0x34ceb9),_0x2579cc();});},'readDevMode':async function(){const _0x181e25=_0x3611ac;return 0x0!==(await this[_0x181e25(0xe5)]())[_0x181e25(0xed)](_0x40271e=>/service-cocosads/[_0x181e25(0xe0)](_0x40271e['service_component_name']))[_0x181e25(0xcb)];}};