!function(e, n) { "object" == typeof exports && "undefined" != typeof module ? n(exports, require("execall2")) : "function" == typeof define && define.amd ? define([ "exports", "execall2" ], n) : n((e = "undefined" != typeof globalThis ? globalThis : e || self).BlankLine = {}, e.execall2); }(this, (function(e, n) { "use strict"; const t = "\n"; function normalize(e) { return String(e).replace(/\r\n|\r(?!\n)|\n/g, t).replace(/\uFEFF/g, "").replace(/[  \xA0]/g, " ").replace(/[ \t \xA0\u3000]+\n/g, "\n").replace(/^\n+|[\s \xA0\u3000]+$/g, ""); } function getBlankLine(e, t = {}) { let l = n.execall(/\n+/g, normalize(e)); if (l.length) { let e = l.reduce((function(e, n) { return e.push(n.match.length), e; }), []); return t.filter && (e = e.filter((function(e, n, t) { return t.indexOf(e) == n; }))), t.sort && e.sort((function(e, n) { return e - n; })), e; } return null; } function getMinMidMax(e) { let n = getBlankLine(e, { filter: !0, sort: !0 }); if (null == n || !n.length) return [ null, null, null ]; let t = n[0] || null; return [ t, n[1] || t, n[n.length - 1] || t ]; } e.default = getMinMidMax, e.getBlankLine = getBlankLine, e.getMinMidMax = getMinMidMax, e.normalize = normalize, Object.defineProperty(e, "__esModule", { value: !0 }); })); //# sourceMappingURL=index.umd.production.min.cjs.map