export function T(){return!0};export function fileToObject(e){return{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.filename||e.name,size:e.size,type:e.type,uid:e.uid,response:e.response,error:e.error,percent:0,originFileObj:e}};export function genPercentAdd(){var e=.1;return function(r){var t=r;return t>=.98?t:(t+=e,(e-=.01)<.001&&(e=.001),100*t)}};export function getFileItem(e,r){var t=void 0!==e.uid?"uid":"name";return r.filter(function(r){return r[t]===e[t]})[0]};export function removeFileItem(e,r){var t=void 0!==e.uid?"uid":"name",n=r.filter(function(r){return r[t]!==e[t]});return n.length===r.length?null:n};