browser.js 16 KB

1
  1. const _0x28fc=['package_download_url','removeListener','delete','cloud-component:update-import','browser.update_tips','cocos-service:service-data-change','BrowserWindow','send','use\x20strict','replace','service_name','dependency','logout','name','package.json','cloud_json','focus','getGameDetail','builder','scene','openService','size','csConfig','dialog_title','service:handle-penetrate-param','Panel','readConfigSet','./plugin','service','cocos-service','fromWebContents','pluginExists','service_id','unload','csProtocol','values','plugin-msg','registerPluginsI18n','UNKNOW','extension','copy','package.json\x20is\x20not\x20found.','warn','value','csEditor','has','refresh-asset','wirteEnableService','Message','fs-extra','electron','plugin-msg-popup','compareVersion','create-node','apiPost','browser.updating_tips','csHttp','./protocol','params','request','csPlugin','log','methods','install','../utils/_inner','app_id','redirect_url','../utils','plugin','Project','plugin-msg-service','assets','install.js','enable','push','message','login','service-','get','remove','default','readServiceList','isLogin','__esModule','writeBindGame','popup','service_component_name','global','3.7.0','deleteCache','cocos-service:popup-show','import','then','silenceCreateGame','assets/cloud-component','download_url','readJSONSync','db://assets/cloud-component/','success','ipcMain','startsWith','set','pluginName','close','main','csUtil','asset-db','service:userChanged','find','ensureDir','path','existsSync','shift','load','userChanged','service_name_error','info','getCreatorVersion','config_id','includes','csLogger','cloud-function','catch','service_type','join','browser.update_now','popupShow','User','error','requestMsg','${name}','onServiceStatusChanged'];(function(_0x3cfe9a,_0x210b7a){const _0x28fced=function(_0x7d6e9b){while(--_0x7d6e9b){_0x3cfe9a['push'](_0x3cfe9a['shift']());}};_0x28fced(++_0x210b7a);}(_0x28fc,0x117));const _0x7d6e=function(_0x3cfe9a,_0x210b7a){_0x3cfe9a=_0x3cfe9a-0xe7;let _0x28fced=_0x28fc[_0x3cfe9a];return _0x28fced;};const _0x3e854d=_0x7d6e,_0x26f6=[_0x3e854d(0x12d),_0x3e854d(0x10d),_0x3e854d(0xee),'dialogMsgBox',_0x3e854d(0xfe),_0x3e854d(0x108),_0x3e854d(0xf2),_0x3e854d(0x160),_0x3e854d(0x15a),_0x3e854d(0x144),_0x3e854d(0x124),_0x3e854d(0x14a),_0x3e854d(0x141),'service:i18nChange',_0x3e854d(0x111),_0x3e854d(0xfc),_0x3e854d(0x157),_0x3e854d(0xf6),_0x3e854d(0x123),_0x3e854d(0x138),_0x3e854d(0x161),_0x3e854d(0xfd),_0x3e854d(0x142),'version','target','assets',_0x3e854d(0xfb),'getCreatorVersion',_0x3e854d(0x104),_0x3e854d(0x102),_0x3e854d(0x145),'installed',_0x3e854d(0xf5),'existsSync',_0x3e854d(0x119),_0x3e854d(0x12b),_0x3e854d(0x15d),_0x3e854d(0x130),_0x3e854d(0xe9),_0x3e854d(0x15c),'map',_0x3e854d(0x154),_0x3e854d(0x113),'debug','sendMsg',_0x3e854d(0x126),_0x3e854d(0x135),'getServiceVersion',_0x3e854d(0x117),_0x3e854d(0x11a),_0x3e854d(0x15e),'sender',_0x3e854d(0x100),_0x3e854d(0x121),_0x3e854d(0x128),_0x3e854d(0x13b),'browser.cancel',_0x3e854d(0xf4),_0x3e854d(0x13a),_0x3e854d(0x11c),'readBindGame',_0x3e854d(0x133),'__importDefault',_0x3e854d(0x115),_0x3e854d(0x139),'require',_0x3e854d(0x11d),_0x3e854d(0x101),'silence_open_service',_0x3e854d(0x14f),'update-extension',_0x3e854d(0x163),'target\x20not\x20exist!',_0x3e854d(0x137),_0x3e854d(0x134),_0x3e854d(0x12a),_0x3e854d(0x152),'all',_0x3e854d(0x16a),'query-uuid',_0x3e854d(0x10f),_0x3e854d(0xed),_0x3e854d(0x107),'.prefab',_0x3e854d(0xec),_0x3e854d(0xf8),_0x3e854d(0xf1),_0x3e854d(0x132),_0x3e854d(0x106),_0x3e854d(0x10c),_0x3e854d(0x155),_0x3e854d(0x129),_0x3e854d(0x15b),_0x3e854d(0x116),'cocos-service.simple',_0x3e854d(0x146),_0x3e854d(0xf9),_0x3e854d(0x140),_0x3e854d(0x105),'getServicePluginInfo','broadcastMsg',_0x3e854d(0x10a),_0x3e854d(0x159),'open',_0x3e854d(0xe7),_0x3e854d(0x131),_0x3e854d(0x127),_0x3e854d(0x156),'installPlugin',_0x3e854d(0x12e),_0x3e854d(0x149),_0x3e854d(0x12c),_0x3e854d(0xeb),_0x3e854d(0x158),_0x3e854d(0xf7),_0x3e854d(0x11e),_0x3e854d(0x136),_0x3e854d(0xea),'silence_disable_service','info',_0x3e854d(0x10b),'broadcast','csLogger',_0x3e854d(0x168),_0x3e854d(0x151),_0x3e854d(0x120),_0x3e854d(0x125),_0x3e854d(0xff),_0x3e854d(0x110),'getCustomPlugin','root',_0x3e854d(0xfa),'node',_0x3e854d(0xf0),_0x3e854d(0x13f),_0x3e854d(0x118),_0x3e854d(0x13c),'value',_0x3e854d(0x169)];(function(_0x122809,_0xd1773f){const _0x11509c=function(_0x22961d){const _0x3c52e1=_0x7d6e;while(--_0x22961d){_0x122809[_0x3c52e1(0x122)](_0x122809[_0x3c52e1(0x148)]());}};_0x11509c(++_0xd1773f);}(_0x26f6,0x196));const _0x1515=function(_0x5ce7d6,_0x259056){_0x5ce7d6=_0x5ce7d6-0x112;let _0x18fd54=_0x26f6[_0x5ce7d6];return _0x18fd54;},_0x4e9e35=_0x1515;_0x3e854d(0x164);var __importDefault=this&&this[_0x4e9e35(0x15b)]||function(_0x2e714a){const _0x2d8e49=_0x4e9e35;return _0x2e714a&&_0x2e714a[_0x2d8e49(0x140)]?_0x2e714a:{'default':_0x2e714a};};Object['defineProperty'](exports,_0x3e854d(0x12b),{'value':!0x0}),exports[_0x4e9e35(0x17d)]=exports[_0x4e9e35(0x18b)]=exports[_0x3e854d(0x116)]=void 0x0;const electron_1=require(_0x4e9e35(0x182)),utils_1=require(_0x3e854d(0x11b)),plugin_1=__importDefault(require(_0x3e854d(0xf3))),protocol_1=__importDefault(require(_0x4e9e35(0x12b))),_inner_1=require(_0x4e9e35(0x119)),fs_extra_1=require(_0x3e854d(0x109)),path_1=require(_0x4e9e35(0x17c));let popupWindows=new Map(),firstRun=!0x0;async function load(){const _0x3bc95a=_0x3e854d,_0x4f1f80=_0x4e9e35;Editor[_0x4f1f80(0x12d)]['on'](_0x4f1f80(0x127),exports[_0x4f1f80(0x17a)][_0x3bc95a(0x14a)]),Editor[_0x3bc95a(0x157)]['on'](_0x4f1f80(0x198),exports[_0x4f1f80(0x17a)][_0x4f1f80(0x128)]),electron_1[_0x4f1f80(0x154)]['on'](_0x4f1f80(0x174),exports[_0x4f1f80(0x17a)]['popupShow']),await plugin_1[_0x3bc95a(0x128)][_0x4f1f80(0x132)]();}function unload(){const _0x21a948=_0x3e854d,_0x7c682f=_0x4e9e35;Editor[_0x21a948(0x157)][_0x7c682f(0x141)](_0x21a948(0x124),exports[_0x7c682f(0x17a)][_0x7c682f(0x128)]),Editor[_0x7c682f(0x12d)][_0x7c682f(0x141)](_0x7c682f(0x198),exports[_0x7c682f(0x17a)][_0x21a948(0x14a)]),electron_1[_0x7c682f(0x154)][_0x7c682f(0x141)](_0x7c682f(0x174),exports[_0x7c682f(0x17a)][_0x7c682f(0x188)]);}exports['methods']={async 'openServicePanel'(_0x1d020b){const _0x5348e1=_0x3e854d,_0x2139d6=_0x4e9e35;await Editor[_0x2139d6(0x173)][_0x5348e1(0x105)](_0x2139d6(0x13d))?(await Editor[_0x2139d6(0x173)][_0x5348e1(0xe8)](_0x2139d6(0x13d)),utils_1[_0x2139d6(0x139)][_0x2139d6(0x149)](utils_1[_0x2139d6(0x139)][_0x2139d6(0x158)],_0x2139d6(0x12c),_0x5348e1(0xf4),_0x2139d6(0x117),_0x1d020b)):await Editor[_0x2139d6(0x173)][_0x2139d6(0x184)](_0x2139d6(0x13d),_0x1d020b);},'openPopup'(_0x249a35,_0x7dc3a4,_0x6643f4){const _0xf9b85c=_0x3e854d,_0x4acc8e=_0x4e9e35;try{if(!popupWindows[_0x4acc8e(0x17f)](_0x249a35))return void Editor[_0x4acc8e(0x173)][_0x4acc8e(0x184)](_0x4acc8e(0x17b),_0x249a35,_0x7dc3a4);{let _0x5cd072=popupWindows[_0x4acc8e(0x14a)](_0x249a35);null==_0x5cd072||_0x5cd072[_0xf9b85c(0xe8)]();}}catch(_0x329f1c){popupWindows[_0x4acc8e(0x14f)](_0x249a35);}},'closePopup'(_0x4831dc){const _0x46dda1=_0x4e9e35;try{if(popupWindows[_0x46dda1(0x17f)](_0x4831dc)){let _0x594542=popupWindows[_0x46dda1(0x14a)](_0x4831dc);null==_0x594542||_0x594542[_0x46dda1(0x118)](),popupWindows[_0x46dda1(0x14f)](_0x4831dc);}}catch(_0x151d4e){popupWindows[_0x46dda1(0x14f)](_0x4831dc);}},'printLog'(_0x1d964f,_0x4fa448){const _0x45cad9=_0x3e854d,_0x37d01c=_0x4e9e35;_0x45cad9(0x158)===_0x1d964f&&console[_0x45cad9(0x158)](_0x4fa448),'info'===_0x1d964f&&console[_0x37d01c(0x194)](_0x4fa448),_0x37d01c(0x15c)===_0x1d964f&&console[_0x37d01c(0x15c)](_0x4fa448),_0x37d01c(0x13a)===_0x1d964f&&console['warn'](_0x4fa448);},'popupShow'(_0x50fb19,_0x223ec7){const _0x12595c=_0x3e854d,_0x51505e=_0x4e9e35;let _0x597d61=electron_1[_0x12595c(0x162)][_0x51505e(0x12e)](_0x50fb19[_0x51505e(0x150)]),_0x134008=_0x223ec7[_0x12595c(0x13e)];null!==_0x597d61&&_0x134008&&popupWindows[_0x12595c(0x13d)](_0x134008,_0x597d61);},async 'userChanged'(){const _0x18dab2=_0x3e854d,_0x5bce0c=_0x4e9e35;await Editor[_0x18dab2(0xf1)][_0x5bce0c(0x17f)](_0x5bce0c(0x13d))&&Editor[_0x5bce0c(0x122)][_0x5bce0c(0x164)](_0x5bce0c(0x13d),_0x5bce0c(0x12c),_0x18dab2(0xf4),_0x18dab2(0x143));},'apiRequest':async(_0x32799f,_0x16b136={})=>_0x4e9e35(0x14e)===_0x32799f?await protocol_1[_0x4e9e35(0x153)]['getRedirectUrl'](_0x16b136[_0x4e9e35(0x14e)]):new Promise((_0x2bbbcf,_0x120ecf)=>protocol_1[_0x4e9e35(0x153)][_0x3e854d(0x10e)](_0x32799f,_0x16b136)[_0x4e9e35(0x167)](_0x2bbbcf)[_0x3e854d(0x152)](_0x13540b=>_0x120ecf(new Error(JSON['stringify'](_0x13540b))))),async 'enableService'(_0x5d93b5,_0x22d91a,_0xd7adee=''){const _0x21a763=_0x3e854d,_0x38f6f8=_0x4e9e35;_0x5d93b5[_0x38f6f8(0x11a)](_0x38f6f8(0x19b))||(_0x5d93b5=_0x38f6f8(0x19b)+_0x5d93b5);let _0x397f6a=(await utils_1['csConfig'][_0x38f6f8(0x178)]())[_0x38f6f8(0x126)](_0x2d13ad=>_0x2d13ad[_0x21a763(0x12e)]===_0x5d93b5);if(void 0x0===_0x397f6a)throw new Error(utils_1[_0x21a763(0x104)]['tr'](_0x21a763(0x14b)));let _0x4e55a8=(await utils_1[_0x38f6f8(0x11f)][_0x38f6f8(0x159)]()||{'app_id':_0x21a763(0xfe)})[_0x38f6f8(0x13f)];if(_0x38f6f8(0x121)===_0x4e55a8)try{let _0x1c3e74=await _inner_1[_0x38f6f8(0x14b)]();_0x4e55a8=_0x1c3e74[_0x38f6f8(0x13f)],await utils_1[_0x21a763(0xee)][_0x38f6f8(0x18c)](_0x1c3e74);let _0x5f6f41=await utils_1[_0x21a763(0xee)][_0x38f6f8(0x123)]();_0x5f6f41&&(_0xd7adee=_0x5f6f41[_0x21a763(0x14e)]);}catch(_0x154670){return _0x154670[_0x21a763(0x123)];}try{let _0x2d771c=await utils_1[_0x21a763(0xfa)][_0x38f6f8(0x143)](_0x4e55a8);_0x22d91a&&'0'!==_0x397f6a[_0x21a763(0x153)]&&!_0x2d771c[_0x21a763(0xf4)][_0x38f6f8(0x162)](_0x397f6a[_0x38f6f8(0x172)])&&await utils_1[_0x38f6f8(0x115)][_0x38f6f8(0x171)](_0x4e55a8,_0x397f6a[_0x21a763(0xf8)]),await utils_1['csConfig'][_0x38f6f8(0x16f)](_0x397f6a[_0x38f6f8(0x172)],_0x22d91a,_0xd7adee)[_0x38f6f8(0x169)](utils_1[_0x38f6f8(0x197)][_0x38f6f8(0x148)]),utils_1[_0x38f6f8(0x197)][_0x38f6f8(0x194)](utils_1[_0x38f6f8(0x139)]['tr'](_0x22d91a?_0x38f6f8(0x161):_0x38f6f8(0x193))[_0x21a763(0x165)](_0x38f6f8(0x125),_0x397f6a[_0x21a763(0x166)]));}catch(_0x53894d){return _0x53894d[_0x38f6f8(0x12f)];}return plugin_1[_0x38f6f8(0x153)][_0x38f6f8(0x18f)](_0x5d93b5)||await plugin_1[_0x38f6f8(0x153)][_0x38f6f8(0x189)](_0x5d93b5,_0x397f6a[_0x38f6f8(0x144)],(_0x4e8d2f,_0x3fadc2)=>{const _0xbd2892=_0x38f6f8;_0x3fadc2&&utils_1[_0xbd2892(0x139)]['tr'](_0xbd2892(0x13c));}),_0x38f6f8(0x157);},'pluginMsg':async(_0x2315e4,_0x1777be,_0x47ec03={})=>_0x4e9e35(0x156)===_0x2315e4&&await Editor[_0x4e9e35(0x173)][_0x4e9e35(0x17f)](_0x3e854d(0xf5))?await utils_1[_0x3e854d(0x104)][_0x4e9e35(0x183)](utils_1[_0x3e854d(0x104)][_0x4e9e35(0x158)],_0x4e9e35(0x190),_0x1777be,_0x47ec03):_0x4e9e35(0x11d)===_0x2315e4&&popupWindows[_0x4e9e35(0x16e)]>0x0?await utils_1[_0x4e9e35(0x139)][_0x4e9e35(0x183)](utils_1[_0x4e9e35(0x139)][_0x4e9e35(0x158)],_0x4e9e35(0x195),_0x1777be,_0x47ec03):_0x4e9e35(0x165),'serviceReady'(){firstRun&&(firstRun=!0x1,setTimeout(async()=>{const _0xc5d973=_0x7d6e,_0x2d5376=_0x1515;if(!await utils_1[_0xc5d973(0x104)][_0x2d5376(0x168)]())return;let _0xdaf9ee=await utils_1[_0x2d5376(0x115)][_0x2d5376(0x113)]();if(-0x1!==utils_1[_0x2d5376(0x129)][_0xc5d973(0x10c)](utils_1[_0x2d5376(0x139)][_0xc5d973(0x14d)](),_0x2d5376(0x142)))return;if(0x1===utils_1[_0x2d5376(0x129)][_0x2d5376(0x176)](_0xdaf9ee[_0xc5d973(0x167)],utils_1[_0x2d5376(0x139)][_0x2d5376(0x138)]()))return;if(0x1!==utils_1[_0x2d5376(0x129)][_0x2d5376(0x176)](_0xdaf9ee[_0x2d5376(0x134)],utils_1[_0x2d5376(0x139)][_0x2d5376(0x14c)]()))return;if(0x0!==await utils_1[_0x2d5376(0x139)][_0x2d5376(0x120)](_0xc5d973(0x14c),utils_1[_0x2d5376(0x139)]['tr'](_0x2d5376(0x124)),utils_1[_0x2d5376(0x139)]['tr'](_0xc5d973(0xef)),[utils_1[_0xc5d973(0x104)]['tr'](_0x2d5376(0x177)),utils_1[_0x2d5376(0x139)]['tr'](_0x2d5376(0x155))],0x0))return;let _0x219688=await utils_1[_0x2d5376(0x112)][_0x2d5376(0x14a)](_0xdaf9ee[_0x2d5376(0x166)],{});utils_1[_0xc5d973(0x150)][_0x2d5376(0x194)](utils_1[_0x2d5376(0x139)]['tr'](_0x2d5376(0x16d))),utils_1[_0x2d5376(0x139)][_0x2d5376(0x149)](_0x2d5376(0x19c),_0x2d5376(0x163),_0x219688[_0x2d5376(0x166)],utils_1[_0x2d5376(0x139)][_0x2d5376(0x158)],_0xc5d973(0x12f)),Editor[_0x2d5376(0x173)][_0x2d5376(0x118)](utils_1[_0x2d5376(0x139)][_0xc5d973(0x11c)]);},0x1388));},async 'i18nChange'(){const _0x280e3a=_0x4e9e35;utils_1[_0x280e3a(0x139)][_0x280e3a(0x181)](_0x280e3a(0x131)),await Editor[_0x280e3a(0x173)][_0x280e3a(0x17f)](_0x280e3a(0x13d))&&Editor[_0x280e3a(0x122)][_0x280e3a(0x164)](_0x280e3a(0x13d),_0x280e3a(0x12c),_0x280e3a(0x156),_0x280e3a(0x12a));},async 'onServiceStatusChanged'(_0x29cdf0){const _0x1c7817=_0x3e854d,_0x1c9e5d=_0x4e9e35;var _0x321d7e;try{let _0x23008f=utils_1[_0x1c7817(0x114)][_0x1c9e5d(0x180)](_0x29cdf0[_0x1c7817(0x12e)]);if(void 0x0===_0x23008f||!(null===(_0x321d7e=_0x23008f[_0x1c7817(0xea)])||void 0x0===_0x321d7e?void 0x0:_0x321d7e[_0x1c9e5d(0x17e)]))return;let _0xc06465={};_0xc06465[_0x1c9e5d(0x172)]=_0x29cdf0[_0x1c9e5d(0x172)],_0xc06465[_0x1c7817(0x12e)]=_0x29cdf0[_0x1c9e5d(0x18a)],_0xc06465[_0x1c9e5d(0x152)]=_0x29cdf0[_0x1c9e5d(0x152)]||!0x1,_0xc06465[_0x1c7817(0x112)]=await utils_1[_0x1c9e5d(0x11f)]['readServiceParam'](_0x29cdf0[_0x1c9e5d(0x172)]);let _0x4ac88e=utils_1[_0x1c9e5d(0x129)][_0x1c9e5d(0x15e)](_0x23008f[_0x1c9e5d(0x17c)],_0x23008f[_0x1c9e5d(0x192)][_0x1c7817(0x140)]);_0x4ac88e[_0x1c9e5d(0x179)]&&await _0x4ac88e[_0x1c7817(0x15b)](utils_1[_0x1c9e5d(0x139)]['getProjectPath'](),_0xc06465);}catch(_0x265d36){utils_1[_0x1c9e5d(0x197)][_0x1c9e5d(0x148)](_0x265d36);}},async 'dropScene'(_0x19f3c9,_0x21c7ba,_0x132ce5){const _0x50d3a3=_0x4e9e35;await Promise[_0x50d3a3(0x16a)](_0x132ce5[_0x50d3a3(0x145)](async _0x5c6ba7=>{const _0x2e985=_0x50d3a3;await exports[_0x2e985(0x17a)][_0x2e985(0x15a)](_0x5c6ba7[_0x2e985(0x11b)]);const _0x2abd09=_0x2e985(0x15d)+_0x5c6ba7[_0x2e985(0x11c)]+'/'+_0x5c6ba7[_0x2e985(0x11c)]+_0x2e985(0x170),_0x94b9cd=await Editor[_0x2e985(0x122)][_0x2e985(0x147)](_0x2e985(0x133),_0x2e985(0x16c),_0x2abd09);utils_1[_0x2e985(0x139)][_0x2e985(0x149)](_0x2e985(0x18d),_0x2e985(0x11e),{'position':_0x21c7ba,'assetUuid':_0x94b9cd});}));},async 'dropHierarchy'(_0x3584c2,_0x167eae){const _0x47f0a9=_0x4e9e35;_0x167eae=_0x167eae||_0x3584c2[_0x47f0a9(0x137)],await Promise['all'](_0x167eae['map'](async _0x3be7a4=>{const _0x218a33=_0x7d6e,_0x5c2545=_0x47f0a9,_0x2fc155=_0x3be7a4[_0x5c2545(0x135)]||_0x3be7a4[_0x5c2545(0x116)]||_0x3be7a4['to'];await exports[_0x5c2545(0x17a)][_0x5c2545(0x15a)](_0x3be7a4[_0x218a33(0x103)]);const _0x1ea6bd=_0x5c2545(0x15d)+_0x3be7a4[_0x5c2545(0x11c)]+'/'+_0x3be7a4[_0x5c2545(0x11c)]+_0x5c2545(0x170),_0x5925db=await Editor[_0x5c2545(0x122)][_0x5c2545(0x147)](_0x5c2545(0x133),_0x5c2545(0x16c),_0x1ea6bd);utils_1[_0x5c2545(0x139)][_0x5c2545(0x149)](_0x5c2545(0x18d),_0x5c2545(0x11e),{'parent':_0x2fc155,'assetUuid':_0x5925db});}));},async 'dropAssets'(_0x1ec448,_0x5bf8ce){const _0x4ba07b=_0x3e854d,_0x4b9798=_0x4e9e35;_0x5bf8ce=_0x5bf8ce||_0x1ec448[_0x4b9798(0x137)],await Promise[_0x4b9798(0x16a)](_0x5bf8ce['map'](async _0x12e4bc=>await exports[_0x4ba07b(0x116)][_0x4b9798(0x15a)](_0x12e4bc['value'])));},async 'import'(_0x34f4e9){const _0x361f43=_0x3e854d,_0x3ea8b2=_0x4e9e35;if(!fs_extra_1[_0x361f43(0x147)](_0x34f4e9))return;const _0x4f22de={'cloud_json':path_1[_0x361f43(0x154)](_0x34f4e9,_0x3ea8b2(0x16b)),'assets':path_1[_0x3ea8b2(0x146)](_0x34f4e9,_0x3ea8b2(0x136)),'function':path_1[_0x3ea8b2(0x146)](_0x34f4e9,_0x3ea8b2(0x199)),'install':path_1[_0x3ea8b2(0x146)](_0x34f4e9,_0x3ea8b2(0x19a))};if(!fs_extra_1[_0x3ea8b2(0x13e)](_0x4f22de[_0x361f43(0xe7)]))throw new Error(_0x3ea8b2(0x160));const _0x591a71=fs_extra_1[_0x3ea8b2(0x130)](_0x4f22de[_0x3ea8b2(0x185)]),_0x45c55f={'root':path_1[_0x361f43(0x154)](Editor[_0x3ea8b2(0x15f)]['path'],_0x361f43(0x136)),'assets':path_1[_0x3ea8b2(0x146)](Editor[_0x3ea8b2(0x15f)][_0x361f43(0x146)],_0x3ea8b2(0x191),_0x591a71[_0x3ea8b2(0x11c)])};await fs_extra_1[_0x3ea8b2(0x13b)](_0x45c55f[_0x3ea8b2(0x114)]);try{fs_extra_1[_0x3ea8b2(0x13e)](_0x4f22de['assets'])&&!fs_extra_1[_0x3ea8b2(0x13e)](_0x45c55f[_0x3ea8b2(0x136)])&&await fs_extra_1[_0x3ea8b2(0x151)](_0x4f22de[_0x3ea8b2(0x136)],_0x45c55f[_0x3ea8b2(0x136)]),fs_extra_1[_0x3ea8b2(0x13e)](_0x4f22de[_0x3ea8b2(0x14d)])&&(utils_1[_0x3ea8b2(0x129)][_0x3ea8b2(0x186)](_0x4f22de[_0x3ea8b2(0x14d)]),await require(_0x4f22de[_0x3ea8b2(0x14d)])[_0x3ea8b2(0x17e)]({'assetsPath':_0x45c55f[_0x3ea8b2(0x136)]}));}catch(_0x1d83bf){utils_1[_0x3ea8b2(0x197)][_0x3ea8b2(0x18e)](_0x1d83bf),fs_extra_1[_0x3ea8b2(0x13e)](_0x45c55f[_0x361f43(0x11f)])&&await fs_extra_1[_0x3ea8b2(0x187)](_0x45c55f[_0x3ea8b2(0x136)]);}await Editor[_0x361f43(0x108)]['request'](_0x3ea8b2(0x133),_0x3ea8b2(0x175),_0x45c55f[_0x3ea8b2(0x114)]),Editor['Message'][_0x3ea8b2(0x196)](_0x361f43(0x15f));}},exports[_0x4e9e35(0x18b)]=load,exports[_0x4e9e35(0x17d)]=unload;