import{aQ as g}from"../index.js";var x={exports:{}};(function(f){(function(c,_){var d="…",i=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function p(t,n,e){return e.length===t.length||!n.ellipsis||(e+=n.ellipsis),e}function h(t,n,e){var r="",l=!0,u=n,a,s;if(e=e||{},e.ellipsis=typeof e.ellipsis>"u"?d:e.ellipsis,!t||t.length===0)return"";for(l=!0;l;){if(i.lastIndex=r.length,l=i.exec(t),!l||l.index-r.length>=u||i.lastIndex>=n+3e3)return r+=t.substring(r.length,n),p(t,e,r);if(a=l[0],s=l.index,r+=t.substring(r.length,s+a.length),u-=s+a.length,u<=0)break}return p(t,e,r)}f.exports?f.exports=h:c.truncate=h})(String)})(x);var E=x.exports;const b=g(E);export{b as t};
