| 1 |
- const _0x2f1b=['find','shift','register','filePaths','App','global','setProject','win32','enable','setConfig','uuid','error','defineProperty','getPackages','info','isLoggedIn','readGlobalProfile','send','default','User','platform','response','cocos-service','getData','request','tmpDir','name','Profile','filePath','save','.dev','getProjectInfo','getPackageInfo','Message','Project','warn','plugin','darwin','version','path','/.service','I18n','home'];(function(_0x424105,_0xe82783){const _0x2f1b03=function(_0x37d4db){while(--_0x37d4db){_0x424105['push'](_0x424105['shift']());}};_0x2f1b03(++_0xe82783);}(_0x2f1b,0xe2));const _0x37d4=function(_0x424105,_0xe82783){_0x424105=_0x424105-0x13b;let _0x2f1b03=_0x2f1b[_0x424105];return _0x2f1b03;};const _0x4d4a6c=_0x37d4,_0x4560=[_0x4d4a6c(0x158),_0x4d4a6c(0x14e),_0x4d4a6c(0x148),'/.component',_0x4d4a6c(0x14f),_0x4d4a6c(0x13e),_0x4d4a6c(0x144),_0x4d4a6c(0x14c),_0x4d4a6c(0x161),'getLanguage','select',_0x4d4a6c(0x160),_0x4d4a6c(0x157),'.$plugins.','getConfig',_0x4d4a6c(0x140),_0x4d4a6c(0x152),_0x4d4a6c(0x141),_0x4d4a6c(0x15d),_0x4d4a6c(0x162),_0x4d4a6c(0x149),_0x4d4a6c(0x155),_0x4d4a6c(0x143),'join',_0x4d4a6c(0x13f),_0x4d4a6c(0x156),'Message','Package',_0x4d4a6c(0x15f),_0x4d4a6c(0x15a),_0x4d4a6c(0x14b),_0x4d4a6c(0x13b),'broadcast',_0x4d4a6c(0x165),'getProject','response',_0x4d4a6c(0x14d),_0x4d4a6c(0x163),_0x4d4a6c(0x14a),'basename',_0x4d4a6c(0x153),'cs-scripts','type','Dialog',_0x4d4a6c(0x13d),_0x4d4a6c(0x154),_0x4d4a6c(0x147),_0x4d4a6c(0x159)];(function(_0x40134c,_0x34ae60){const _0x5bfa8b=function(_0x1a982b){const _0x33b91c=_0x37d4;while(--_0x1a982b){_0x40134c['push'](_0x40134c[_0x33b91c(0x15c)]());}};_0x5bfa8b(++_0x34ae60);}(_0x4560,0x151));const _0x34be=function(_0x554b3e,_0x2744ef){_0x554b3e=_0x554b3e-0x1c1;let _0x9488d5=_0x4560[_0x554b3e];return _0x9488d5;},_0x1588b7=_0x34be;'use\x20strict',Object[_0x4d4a6c(0x13c)](exports,'__esModule',{'value':!0x0});const path_1=require(_0x1588b7(0x1cc));exports[_0x4d4a6c(0x142)]={'plugin':_0x4d4a6c(0x146),'isLogin':async function(){const _0xc6ecc1=_0x1588b7;return await Editor[_0xc6ecc1(0x1d6)][_0xc6ecc1(0x1d8)]();},'getUserData':async function(){const _0x571f70=_0x1588b7;return Editor['User'][_0x571f70(0x1ee)]();},'getLang':function(){const _0x2300c8=_0x1588b7;return Editor[_0x2300c8(0x1ef)][_0x2300c8(0x1c9)]();},'getCreatorVersion':function(){const _0x4eaefa=_0x1588b7;return Editor[_0x4eaefa(0x1dc)][_0x4eaefa(0x1d9)];},'getPackageInfo':function(_0x22bedc){const _0x476398=_0x4d4a6c,_0xf1b9b1=_0x1588b7;return Editor[_0xf1b9b1(0x1db)][_0xf1b9b1(0x1ec)]({'name':_0x22bedc})[_0x476398(0x15b)](_0x3607dd=>_0x3607dd[_0xf1b9b1(0x1e5)])||null;},'getServiceVersion':function(){const _0x746409=_0x4d4a6c,_0x3f0d88=_0x1588b7;let _0x393383=this[_0x746409(0x150)](this[_0x3f0d88(0x1ed)]);return null===_0x393383?'':_0x393383[_0x746409(0x156)];},'readGlobalProfile':async function(_0x29d7c4){const _0x5b1ce9=_0x1588b7;return await Editor[_0x5b1ce9(0x1de)][_0x5b1ce9(0x1ce)](this[_0x5b1ce9(0x1ed)],_0x29d7c4,_0x5b1ce9(0x1cb));},'writeGlobalProfile':async function(_0xa91439,_0x2c22fb){const _0xaf9ddc=_0x4d4a6c,_0x5ce23e=_0x1588b7;return await Editor[_0x5ce23e(0x1de)][_0xaf9ddc(0x164)](this[_0xaf9ddc(0x154)],_0xa91439,_0x2c22fb,_0x5ce23e(0x1cb));},'readProjectProfile':async function(_0x418783){const _0x579abd=_0x4d4a6c,_0x465850=_0x1588b7;return await Editor[_0x465850(0x1de)][_0x465850(0x1e2)](this[_0x579abd(0x154)],_0x418783);},'writeProjectProfile':async function(_0x5a29fa,_0x3d7a3e){const _0x2d54e9=_0x4d4a6c,_0x139efb=_0x1588b7;return await Editor[_0x139efb(0x1de)][_0x139efb(0x1c8)](this[_0x2d54e9(0x154)],_0x5a29fa,_0x3d7a3e);},'pluginDevMode':async function(){const _0x293de8=_0x1588b7;return await this[_0x293de8(0x1cf)](this[_0x293de8(0x1ed)]+_0x293de8(0x1c1))||!0x1;},'getCreatorHomePath':function(){const _0x85b537=_0x1588b7;return Editor[_0x85b537(0x1dc)][_0x85b537(0x1dd)];},'getServiceHomePath':function(){const _0x1f5f4b=_0x1588b7;return Editor[_0x1f5f4b(0x1dc)][_0x1f5f4b(0x1dd)]+_0x1f5f4b(0x1f0);},'getComponentHomePath':function(){const _0x547a61=_0x1588b7;return Editor[_0x547a61(0x1dc)][_0x547a61(0x1dd)]+_0x547a61(0x1c3);},'getProjectInfo':function(){const _0x5cc069=_0x4d4a6c,_0xa028a5=_0x1588b7;return{'uuid':Editor[_0xa028a5(0x1d0)][_0xa028a5(0x1e1)],'name':path_1[_0xa028a5(0x1e7)](Editor[_0x5cc069(0x152)][_0x5cc069(0x157)]),'path':Editor[_0x5cc069(0x152)][_0xa028a5(0x1cc)],'type':Editor[_0x5cc069(0x152)][_0xa028a5(0x1ea)],'tmpDir':Editor[_0xa028a5(0x1d0)][_0xa028a5(0x1d4)]};},'getProjectPath':function(){const _0x4e0a7e=_0x4d4a6c,_0x19132a=_0x1588b7;return this[_0x19132a(0x1c4)]()[_0x4e0a7e(0x157)];},'getProjectID':function(){const _0x39e3fb=_0x1588b7;return this[_0x39e3fb(0x1c4)]()[_0x39e3fb(0x1e1)];},'getProjectName':function(){const _0x59e8c6=_0x1588b7;return this[_0x59e8c6(0x1c4)]()[_0x59e8c6(0x1e6)];},'getPreviewRoot':function(){const _0x388a85=_0x4d4a6c,_0xf9ac36=_0x1588b7;return path_1[_0xf9ac36(0x1d7)](this[_0xf9ac36(0x1c4)]()[_0x388a85(0x149)],_0xf9ac36(0x1e9));},'tr':function(_0x4e21d0,_0x434a98){const _0x57fb2e=_0x1588b7;return Editor[_0x57fb2e(0x1ef)]['t'](this[_0x57fb2e(0x1ed)]+'.'+_0x4e21d0,_0x434a98);},'registerI18n':function(_0x5c0352,_0x157519,_0x574735){const _0x16d4f1=_0x1588b7;Editor[_0x16d4f1(0x1ef)][_0x16d4f1(0x1d2)](_0x5c0352,this[_0x16d4f1(0x1ed)]+_0x16d4f1(0x1cd)+_0x157519,_0x574735);},'isWin32':function(){const _0xfbc4e9=_0x4d4a6c,_0x6fdcd8=_0x1588b7;return _0x6fdcd8(0x1d3)===process[_0xfbc4e9(0x144)];},'isMac':function(){const _0x14c39b=_0x1588b7;return _0x14c39b(0x1d5)===process[_0x14c39b(0x1c6)];},'dialogSelect':async function(_0x197b51={}){const _0x3a96da=_0x4d4a6c,_0x3586c5=_0x1588b7;return(await Editor[_0x3586c5(0x1eb)][_0x3586c5(0x1ca)](_0x197b51))[_0x3a96da(0x15e)];},'dialogSave':async function(_0x2ae4a9={}){const _0x1d7beb=_0x1588b7;return(await Editor[_0x1d7beb(0x1eb)][_0x1d7beb(0x1e4)](_0x2ae4a9))[_0x1d7beb(0x1c7)];},'dialogMsgBox':async function(_0x458c36,_0x455216,_0x57ff21,_0x3a53a2,_0x2c7b19){const _0x9ca1cd=_0x4d4a6c,_0x2a40a9=_0x1588b7;let _0xec7940={'title':_0x57ff21,'buttons':_0x3a53a2,'default':_0x2c7b19};return _0x2a40a9(0x1df)===_0x458c36?(await Editor[_0x2a40a9(0x1eb)][_0x2a40a9(0x1df)](_0x455216,_0xec7940))[_0x2a40a9(0x1e3)]:_0x2a40a9(0x1c5)===_0x458c36?(await Editor[_0x2a40a9(0x1eb)][_0x2a40a9(0x1c5)](_0x455216,_0xec7940))[_0x9ca1cd(0x145)]:_0x2a40a9(0x1e8)===_0x458c36?(await Editor[_0x2a40a9(0x1eb)][_0x2a40a9(0x1e8)](_0x455216,_0xec7940))[_0x2a40a9(0x1e3)]:new Promise((_0x554c8f,_0x3f624b)=>_0x554c8f(-0x1));},'broadcastMsg'(_0x349721,..._0x434037){const _0x59137b=_0x1588b7;Editor[_0x59137b(0x1da)][_0x59137b(0x1e0)](_0x349721,..._0x434037);},'sendMsg'(_0x59dd6c,_0x41f088,..._0xd92360){const _0x58c058=_0x1588b7;Editor[_0x58c058(0x1da)][_0x58c058(0x1d1)](_0x59dd6c,_0x41f088,..._0xd92360);},'requestMsg':(_0x13ee6a,_0x566468,..._0x372ec5)=>Editor[_0x4d4a6c(0x151)][_0x1588b7(0x1c2)](_0x13ee6a,_0x566468,..._0x372ec5)};
|