
/**
 * 由 Fantastic-admin 提供技术支持
 * Powered by Fantastic-admin
 * https://fantastic-admin.hurui.me
 */
  
import{H as e}from"./lib-C-QGo8GG-CvPpiVvZ.js";function t({config:t={useValueParens:!1,usePercentageParens:!0,showValueFirst:!0},val:n,percentage:r,showVal:i=!0,showPercentage:a=!0}){if(!i&&!a)return``;let o={value:t.useValueParens?e(n):n,percentage:t.usePercentageParens?e(r):r};return i&&a?t.showValueFirst?`${o.value} ${o.percentage}`:`${o.percentage} ${o.value}`:i?o.value:a?o.percentage:``}function n({rounding:e,num:t,filler:n=`-`}){return t.toFixed(e).split(``).map(e=>n).join(``)}export{t as n,n as t};