'use strict';function _0x30ac(){const _0x54fbb0=['33RMfXri','11112756GIbSHA','/api/gateway/v1/refund','851990EBWKcG','4157944mWvzrx','6874470cPzXnt','2toQFjU','GATEWAY_PERMISSION_MAP','13131xBLBUV','42AuFPsp','84hHBKVu','/api/exchange/order','defineProperty','1377320erFTmW','1714600jbWHFf','/api/finance/withdraw','126tWGDDC','/api/finance/deposit'];_0x30ac=function(){return _0x54fbb0;};return _0x30ac();}function _0x5b26(_0x4e436b,_0x4ae330){_0x4e436b=_0x4e436b-0x137;const _0x30ac3d=_0x30ac();let _0x5b2632=_0x30ac3d[_0x4e436b];return _0x5b2632;}const _0x360669=_0x5b26;(function(_0xe6b83d,_0x18def5){const _0x851c53=_0x5b26,_0x19e3c=_0xe6b83d();while(!![]){try{const _0x28581a=-parseInt(_0x851c53(0x139))/0x1*(-parseInt(_0x851c53(0x143))/0x2)+-parseInt(_0x851c53(0x145))/0x3*(parseInt(_0x851c53(0x147))/0x4)+parseInt(_0x851c53(0x142))/0x5+-parseInt(_0x851c53(0x146))/0x6*(-parseInt(_0x851c53(0x138))/0x7)+parseInt(_0x851c53(0x141))/0x8+parseInt(_0x851c53(0x13b))/0x9*(-parseInt(_0x851c53(0x140))/0xa)+parseInt(_0x851c53(0x13d))/0xb*(-parseInt(_0x851c53(0x13e))/0xc);if(_0x28581a===_0x18def5)break;else _0x19e3c['push'](_0x19e3c['shift']());}catch(_0x259863){_0x19e3c['push'](_0x19e3c['shift']());}}}(_0x30ac,0xe1811));Object[_0x360669(0x137)](exports,'__esModule',{'value':!![]}),exports[_0x360669(0x144)]=exports['PERMISSION_MAP']=void 0x0,exports['findPermissionForRoute']=findPermissionForRoute,exports['hasRoutePermission']=hasRoutePermission,exports['PERMISSION_MAP']={'trade':[_0x360669(0x148),'/api/ecosystem/order'],'futures':['/api/futures'],'deposit':[_0x360669(0x13c)],'withdraw':[_0x360669(0x13a)],'transfer':['/api/finance/transfer']},exports['GATEWAY_PERMISSION_MAP']={'gateway.payment.create':['/api/gateway/v1/payment/create'],'gateway.payment.status':['/api/gateway/v1/payment'],'gateway.refund.create':[_0x360669(0x13f)]};function findPermissionForRoute(_0x254562,_0x22bb05){for(const [_0x257691,_0x446abb]of Object['entries'](_0x22bb05)){if(_0x446abb['some'](_0x23b68d=>_0x254562['startsWith'](_0x23b68d)))return _0x257691;}return null;}function hasRoutePermission(_0x25f04a,_0xc315f8,_0x2dab9d){const _0xb801e1=findPermissionForRoute(_0x25f04a,_0x2dab9d);if(!_0xb801e1)return!![];return _0xc315f8['includes'](_0xb801e1);}