"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.unicodeTree=void 0;const e={"│":"|","└":"`","├":"+","─":"-","┬":"-"};exports.unicodeTree=function n(t,o,s){s||(s={});const r=function(n){return!1===s.unicode?e[n]:n};"string"==typeof t&&(t={label:t});const i=t.nodes||[],c=(t.label||"").split("\n"),l=`\n${o}${i.length?r("│"):" "} `,u=i.map((function(e,t){const c=t===i.length-1,l=e.nodes&&e.nodes.length,u=`${o+(c?" ":r("│"))} `;return`${o+r(c?"└":"├")+r("─")+r(l?"┬":"─")} ${n(e,u,s).slice(o.length+2)}`})).join("");return`${o+c.join(l)}\n${u}`};