'use strict';const _0x2689e8=_0x99de;(function(_0x3675d6,_0x211106){const _0x55faad=_0x99de,_0x205d23=_0x3675d6();while(!![]){try{const _0x20092c=-parseInt(_0x55faad(0x1f3))/0x1+parseInt(_0x55faad(0x1f6))/0x2*(-parseInt(_0x55faad(0x1ea))/0x3)+-parseInt(_0x55faad(0x1f0))/0x4*(-parseInt(_0x55faad(0x1eb))/0x5)+-parseInt(_0x55faad(0x1f9))/0x6*(parseInt(_0x55faad(0x1f1))/0x7)+parseInt(_0x55faad(0x1f7))/0x8+parseInt(_0x55faad(0x1f4))/0x9*(parseInt(_0x55faad(0x202))/0xa)+parseInt(_0x55faad(0x1ec))/0xb*(parseInt(_0x55faad(0x1fa))/0xc);if(_0x20092c===_0x211106)break;else _0x205d23['push'](_0x205d23['shift']());}catch(_0x536e82){_0x205d23['push'](_0x205d23['shift']());}}}(_0x5c16,0xe6f70));function _0x5c16(){const _0x3336bc=['6ZzyqkZ','11821176XOeiGf','path','23784JSSEoU','3180PUepLP','params','validateParameters','\x20parameter\x20\x22','Validation\x20error\x20for\x20','createError','Parameter\x20\x22','defineProperty','15286610isbPsL','required','1704282eFAPKT','2607455WyrFxi','12496aGqjKp','Missing\x20required\x20','query','name','8rfBpeV','252eekwZi','cookie','1557312vpJzfn','9PgJpMW','cookies'];_0x5c16=function(){return _0x3336bc;};return _0x5c16();}function _0x99de(_0x2025d9,_0x20f9c7){_0x2025d9=_0x2025d9-0x1e9;const _0x5c16da=_0x5c16();let _0x99de57=_0x5c16da[_0x2025d9];return _0x99de57;}function getParameterValue(_0x31d64f,_0x51a54c){const _0x42a810=_0x99de;switch(_0x31d64f['in']){case _0x42a810(0x1ee):return _0x51a54c['query'][_0x31d64f['name']];case'header':return _0x51a54c['headers'][_0x31d64f['name']];case _0x42a810(0x1f8):return _0x51a54c[_0x42a810(0x1fb)][_0x31d64f[_0x42a810(0x1ef)]];case _0x42a810(0x1f2):return _0x51a54c[_0x42a810(0x1f5)][_0x31d64f['name']];default:return;}}function validateParameter(_0x2d9ba6,_0x475738){const _0x2a55bd=_0x99de;if(!_0x2d9ba6['schema'])return _0x475738;try{return(0x0,validation_1['validateSchema'])(_0x475738,_0x2d9ba6['schema']);}catch(_0x2dc09e){throw _0x2dc09e['isValidationError']?(0x0,error_1['createError'])({'statusCode':0x190,'message':_0x2a55bd(0x200)+_0x2d9ba6['name']+'\x22:\x20'+_0x2dc09e['message']}):(0x0,error_1[_0x2a55bd(0x1ff)])({'statusCode':0x190,'message':_0x2a55bd(0x1fe)+_0x2d9ba6['in']+_0x2a55bd(0x1fd)+_0x2d9ba6['name']+'\x22:\x20'+_0x2dc09e['message']});}}function validateParameters(_0x2ed3de,_0x2e2ddb){const _0x40cd33=_0x99de,_0x5c5fe6={'query':{..._0x2e2ddb['query']},'params':{..._0x2e2ddb['params']},'cookies':{..._0x2e2ddb[_0x40cd33(0x1f5)]}};for(const _0x4315f1 of _0x2ed3de){const _0x58d2b1=getParameterValue(_0x4315f1,_0x2e2ddb);if(void 0x0===_0x58d2b1&&_0x4315f1[_0x40cd33(0x1e9)])throw(0x0,error_1['createError'])({'statusCode':0x190,'message':_0x40cd33(0x1ed)+_0x4315f1['in']+'\x20parameter:\x20\x22'+_0x4315f1[_0x40cd33(0x1ef)]+'\x22'});if(void 0x0!==_0x58d2b1){const _0x35a0bc=validateParameter(_0x4315f1,_0x58d2b1);switch(_0x4315f1['in']){case'query':_0x5c5fe6['query'][_0x4315f1['name']]=_0x35a0bc;break;case'path':_0x5c5fe6['params'][_0x4315f1['name']]=_0x35a0bc;break;case _0x40cd33(0x1f2):_0x5c5fe6['cookies'][_0x4315f1['name']]=_0x35a0bc;}}}return _0x5c5fe6;}Object[_0x2689e8(0x201)](exports,'__esModule',{'value':!0x0}),exports['getParameterValue']=getParameterValue,exports['validateParameter']=validateParameter,exports[_0x2689e8(0x1fc)]=validateParameters;const error_1=require('@b/utils/error'),validation_1=require('@b/utils/validation');