import{b as baseFlatten,a as baseEach,c as baseIteratee,d as arrayMap,i as isSymbol}from"./_baseUniq-r3p3rodd.js";import{aF as isArrayLike,aG as isArray,aH as identity}from"./mermaid.core-BV3ugHFm.js";function flatten(array){return(null==array?0:array.length)?baseFlatten(array):[]}function baseMap(collection,iteratee){var index=-1,result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,function(value,key,collection2){result[++index]=iteratee(value,key,collection2)}),result}function map(collection,iteratee){return(isArray(collection)?arrayMap:baseMap)(collection,baseIteratee(iteratee))}function baseLt(value,other){return value<other}function baseExtremum(array,iteratee,comparator){for(var index=-1,length=array.length;++index<length;){var value=array[index],current=iteratee(value);if(null!=current&&(void 0===computed?current==current&&!isSymbol(current):comparator(current,computed)))var computed=current,result=value}return result}function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):void 0}export{baseLt as a,baseExtremum as b,baseMap as c,min as d,flatten as f,map as m};
