(function(_0x2df515,_0xbf2240){const _0x2efb87=_0x4fcc,_0x526514=_0x2df515();while(!![]){try{const _0x20410c=parseInt(_0x2efb87(0x7a))/0x1*(-parseInt(_0x2efb87(0x78))/0x2)+parseInt(_0x2efb87(0x71))/0x3*(parseInt(_0x2efb87(0x75))/0x4)+-parseInt(_0x2efb87(0x84))/0x5*(parseInt(_0x2efb87(0x7e))/0x6)+parseInt(_0x2efb87(0x82))/0x7*(parseInt(_0x2efb87(0x80))/0x8)+parseInt(_0x2efb87(0x6d))/0x9*(-parseInt(_0x2efb87(0x76))/0xa)+parseInt(_0x2efb87(0x81))/0xb+-parseInt(_0x2efb87(0x72))/0xc*(parseInt(_0x2efb87(0x85))/0xd);if(_0x20410c===_0xbf2240)break;else _0x526514['push'](_0x526514['shift']());}catch(_0x3a4a4a){_0x526514['push'](_0x526514['shift']());}}}(_0x2348,0xa9bc8));import{getAccessToken,getRefreshToken}from'../api/client';import{createEps,setServicePerms}from'../service';function _0x4fcc(_0x39612f,_0x4eea31){_0x39612f=_0x39612f-0x6d;const _0x2348cb=_0x2348();let _0x4fcc12=_0x2348cb[_0x39612f];if(_0x4fcc['JwPCic']===undefined){var _0x2a26bb=function(_0x39fc48){const _0x43497c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x18c233='',_0x54f67a='';for(let _0x20be99=0x0,_0x2f7da8,_0x4cc921,_0x3f13be=0x0;_0x4cc921=_0x39fc48['charAt'](_0x3f13be++);~_0x4cc921&&(_0x2f7da8=_0x20be99%0x4?_0x2f7da8*0x40+_0x4cc921:_0x4cc921,_0x20be99++%0x4)?_0x18c233+=String['fromCharCode'](0xff&_0x2f7da8>>(-0x2*_0x20be99&0x6)):0x0){_0x4cc921=_0x43497c['indexOf'](_0x4cc921);}for(let _0x11aa7c=0x0,_0x5cd0fd=_0x18c233['length'];_0x11aa7c<_0x5cd0fd;_0x11aa7c++){_0x54f67a+='%'+('00'+_0x18c233['charCodeAt'](_0x11aa7c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54f67a);};_0x4fcc['UjIrxc']=_0x2a26bb,_0x4fcc['DHrvce']={},_0x4fcc['JwPCic']=!![];}const _0x3aa9a7=_0x2348cb[0x0],_0x4918e2=_0x39612f+_0x3aa9a7,_0x47786c=_0x4fcc['DHrvce'][_0x4918e2];return!_0x47786c?(_0x4fcc12=_0x4fcc['UjIrxc'](_0x4fcc12),_0x4fcc['DHrvce'][_0x4918e2]=_0x4fcc12):_0x4fcc12=_0x47786c,_0x4fcc12;}import{useUserStore}from'../stores/user';import{clearMenuRoutesFlag,ensureMenuRoutes,removeAllMenuRoutes}from'./menu-routes';const menuReadyMap=new WeakMap();function _0x2348(){const _0xa8940f=['mJi4odG0sgvgvunW','mJblugzLA2W','Bwv0yq','mtC1mteXohbsqK9mvq','yMvMB3jLrwfJAa','mwXUsvj4yG','AgfZAa','AxntDxbLCG','CgvYBxm','nKnRD0PYBq','zNvSBfbHDgG','odqYotm5mLLpDNzpzW','mtm2nZK5odv6v25MwLe','n0XjwLv0Aa','z2v0','nJe5nti1mfjrrNLbsq','mtnTyw9Ly2G','mZq2mZK3nfrUBNrVyW','BwvUDxm','Bg9HzgvK','CxvLCNK','nJLZtejovKm','nda1mJuYExnsDxf4','Bg9Hza','C2v0'];_0x2348=function(){return _0xa8940f;};return _0x2348();}export function setupAdminRouterGuards(_0x18c233,_0x54f67a){const _0x23438d=_0x4fcc;_0x18c233[_0x23438d(0x79)](async _0x20be99=>{const _0x158e86=_0x23438d;if(_0x20be99[_0x158e86(0x77)]['public'])return!![];if(!getAccessToken()&&!getRefreshToken())return{'name':'login','query':{'redirect':_0x20be99['fullPath']}};try{const _0x2f7da8=useUserStore();if(!_0x2f7da8[_0x158e86(0x6f)])await _0x2f7da8[_0x158e86(0x73)]();await createEps(),setServicePerms(_0x2f7da8[_0x158e86(0x7d)],_0x2f7da8[_0x158e86(0x7c)]);if(!menuReadyMap[_0x158e86(0x83)](_0x18c233))return await ensureMenuRoutes(_0x18c233,_0x2f7da8[_0x158e86(0x6e)],_0x54f67a),menuReadyMap[_0x158e86(0x74)](_0x18c233,!![]),{'path':_0x20be99['path'],'query':_0x20be99[_0x158e86(0x70)],'hash':_0x20be99[_0x158e86(0x7b)],'replace':!![]};}catch{menuReadyMap[_0x158e86(0x74)](_0x18c233,![]);if(!getAccessToken()&&!getRefreshToken())return{'name':'login','query':{'redirect':_0x20be99[_0x158e86(0x7f)]}};if(!getAccessToken()&&getRefreshToken())return!![];return!![];}return!![];});}export function resetMenuRoutesFlag(_0x4cc921){const _0x3f80ca=_0x4fcc;menuReadyMap[_0x3f80ca(0x74)](_0x4cc921,![]),removeAllMenuRoutes(_0x4cc921),clearMenuRoutesFlag();}