/**
 * Copyright (c) 2024 Visa, Inc.
 *
 * This source code is licensed under the MIT license
 * https://github.com/visa/visa-chart-components/blob/master/LICENSE
 *
 **/
function e(e,n){let f;if(n===undefined){for(const n of e){if(n!=null&&(f>n||f===undefined&&n>=n)){f=n}}}else{let l=-1;for(let i of e){if((i=n(i,++l,e))!=null&&(f>i||f===undefined&&i>=i)){f=i}}}return f}export{e as m};
//# sourceMappingURL=p-f9c89fe4.js.map