import{e as m,m as b,y as h,c as l,u as o}from"./_baseUniq-CrYdfo_J-heOl4oh9.js";import{aE as v,aD as g,aF as d}from"./mermaid.core-vMMZVCDT-XzwrEAaU.js";function F(a){var n=a==null?0:a.length;return n?l(a):[]}function p(a,n){var t=-1,e=g(a)?Array(a.length):[];return h(a,function(r,i,s){e[++t]=n(r,i,s)}),e}function L(a,n){var t=v(a)?m:p;return t(a,b(n))}function x(a,n){return a<n}function A(a,n,t){for(var e=-1,r=a.length;++e<r;){var i=a[e],s=n(i);if(s!=null&&(f===void 0?s===s&&!o(s):t(s,f)))var f=s,u=i}return u}function M(a){return a&&a.length?A(a,d,x):void 0}export{M as a,p as b,A as c,x as d,F as f,L as m};
