import{__exports as r}from"../../../../_virtual/wrapCell.mjs";import{__require as e}from"./utils.mjs";import{__require as t}from"./wrapString.mjs";import{__require as i}from"./wrapWord.mjs";var o;function s(){if(o)return r;o=1,Object.defineProperty(r,"__esModule",{value:!0}),r.wrapCell=void 0;const s=e(),l=t(),p=i();return r.wrapCell=(r,e,t)=>{const i=(0,s.splitAnsi)(r);for(let r=0;r<i.length;){let o;o=t?(0,p.wrapWord)(i[r],e):(0,l.wrapString)(i[r],e),i.splice(r,1,...o),r+=o.length}return i},r}export{s as __require};