import{__exports as a}from"../../../../_virtual/table.mjs";import{__require as e}from"./alignTableData.mjs";import{__require as r}from"./calculateOutputColumnWidths.mjs";import{__require as t}from"./calculateRowHeights.mjs";import{__require as i}from"./drawTable.mjs";import{__require as s}from"./injectHeaderConfig.mjs";import{__require as o}from"./makeTableConfig.mjs";import{__require as m}from"./mapDataUsingRowHeights.mjs";import{__require as l}from"./padTableData.mjs";import{__require as n}from"./stringifyTableData.mjs";import{__require as u}from"./truncateTableData.mjs";import{__require as _}from"./utils.mjs";import{__require as p}from"./validateTableData.mjs";var f;function c(){if(f)return a;f=1,Object.defineProperty(a,"__esModule",{value:!0}),a.table=void 0;const c=e(),g=r(),b=t(),j=i(),T=s(),d=o(),q=m(),D=l(),w=n(),C=u(),h=_(),H=p();return a.table=(a,e={})=>{(0,H.validateTableData)(a);let r=(0,w.stringifyTableData)(a);const[t,i]=(0,T.injectHeaderConfig)(r,e),s=(0,d.makeTableConfig)(t,e,i);r=(0,C.truncateTableData)(t,(0,h.extractTruncates)(s));const o=(0,b.calculateRowHeights)(r,s);s.spanningCellManager.setRowHeights(o),s.spanningCellManager.setRowIndexMapping(o),r=(0,q.mapDataUsingRowHeights)(r,o,s),r=(0,c.alignTableData)(r,s),r=(0,D.padTableData)(r,s);const m=(0,g.calculateOutputColumnWidths)(s);return(0,j.drawTable)(r,m,o,s)},a}export{c as __require};