'use strict';const _0x376819=_0x1cca;(function(_0x52242e,_0x5c58d5){const _0x4efe1f=_0x1cca,_0x4e55ce=_0x52242e();while(!![]){try{const _0x5a6ba6=-parseInt(_0x4efe1f(0x1e0))/0x1*(parseInt(_0x4efe1f(0x1ef))/0x2)+-parseInt(_0x4efe1f(0x1ed))/0x3*(parseInt(_0x4efe1f(0x1f2))/0x4)+-parseInt(_0x4efe1f(0x1e7))/0x5*(parseInt(_0x4efe1f(0x1f0))/0x6)+-parseInt(_0x4efe1f(0x1f1))/0x7*(parseInt(_0x4efe1f(0x1e1))/0x8)+parseInt(_0x4efe1f(0x1ec))/0x9*(parseInt(_0x4efe1f(0x1f4))/0xa)+parseInt(_0x4efe1f(0x1e5))/0xb+parseInt(_0x4efe1f(0x1e3))/0xc*(parseInt(_0x4efe1f(0x1e8))/0xd);if(_0x5a6ba6===_0x5c58d5)break;else _0x4e55ce['push'](_0x4e55ce['shift']());}catch(_0x32f454){_0x4e55ce['push'](_0x4e55ce['shift']());}}}(_0x3c9c,0x3f9d2));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['readRequestBody']=readRequestBody,exports['processBodyContent']=processBodyContent,exports[_0x376819(0x1ee)]=methodSupportsBody;function _0x3c9c(){const _0x1f39c4=['4ggkqKI','onData','90ppcqUW','10641TNDpXe','104mxbSaZ','application/json','2262300EyDhCD','Invalid\x20JSON:\x20','3916704sfHGKk','application/x-www-form-urlencoded','1289575eECwOr','52PNCKyv','from','trim','patch','277839vzQfKk','310830PniWzn','methodSupportsBody','58qrNIRc','6TPCMLU','246253zpCmTs'];_0x3c9c=function(){return _0x1f39c4;};return _0x3c9c();}const error_1=require('@b/utils/error');async function readRequestBody(_0xa0f543){const _0xcb795d=[];return new Promise((_0x2677a2,_0x598e31)=>{const _0x5b75d6=_0x1cca;let _0x5040b7=![];_0xa0f543[_0x5b75d6(0x1f3)]((_0xe8bf16,_0x55e21a)=>{const _0x25ea4f=_0x5b75d6;_0x5040b7=!![];const _0x5c1266=Buffer[_0x25ea4f(0x1e9)](_0xe8bf16)['toString']();_0xcb795d['push'](_0x5c1266),_0x55e21a&&_0x2677a2(_0xcb795d['join'](''));}),_0xa0f543['onAborted'](()=>{!_0x5040b7?_0x2677a2(''):_0x598e31(new Error('Request\x20aborted'));});});}function processBodyContent(_0x746c76,_0x2c1dfa){const _0x28faae=_0x376819,_0x6ed7d1=_0x2c1dfa[_0x28faae(0x1ea)]();if(_0x746c76['includes'](_0x28faae(0x1e2))&&_0x6ed7d1!=='')try{return JSON['parse'](_0x6ed7d1);}catch(_0x2554f2){throw(0x0,error_1['createError'])({'statusCode':0x190,'message':_0x28faae(0x1e4)+_0x2554f2['message']});}else{if(_0x746c76['includes'](_0x28faae(0x1e6)))return Object['fromEntries'](new URLSearchParams(_0x6ed7d1));}return _0x6ed7d1||{};}function _0x1cca(_0x2317dd,_0x510ea7){_0x2317dd=_0x2317dd-0x1e0;const _0x3c9cf3=_0x3c9c();let _0x1cca27=_0x3c9cf3[_0x2317dd];return _0x1cca27;}function methodSupportsBody(_0x1d4c2c){const _0x503217=_0x376819;return['post','put',_0x503217(0x1eb),'delete']['includes'](_0x1d4c2c['toLowerCase']());}