export const ATTACHMENT_MAX_FILES=0x19;export const ATTACHMENT_MAX_FILE_SIZE_BYTES=0x32*0x400*0x400;export function computeAttachmentFilter(_0x586811,_0x43bd93,_0x16dd54={}){const _0x486de4=_0x16dd54['maxFiles']??ATTACHMENT_MAX_FILES,_0xd7f58b=_0x16dd54['maxFileSizeBytes']??ATTACHMENT_MAX_FILE_SIZE_BYTES,_0x393023=[],_0x3b65f2=[];let _0x183e41=Math['max'](0x0,_0x486de4-_0x43bd93);for(const _0x38c1ef of _0x586811||[]){if(_0x38c1ef['size']>_0xd7f58b){_0x3b65f2['push'](_0x38c1ef['name']||'(unnamed)');continue;}if(_0x183e41<=0x0)continue;_0x393023['push'](_0x38c1ef),_0x183e41--;}const _0x8d67b=(_0x586811||[])['length'],_0x1a4443=_0x8d67b-_0x393023['length']-_0x3b65f2['length'];return{'accepted':_0x393023,'rejectedForSize':_0x3b65f2,'rejectedForCount':_0x1a4443,'limits':{'maxFiles':_0x486de4,'maxFileSizeBytes':_0xd7f58b}};}