import{aL as u,a5 as f}from"./llFuKhWI.js";import{_ as g,a as b}from"./CzSSHsEX.js";function h(e={}){var n,l;const m=e.locale??u.en_GB,r=e.value??((n=e.number)==null?void 0:n.value);let a=g({...((l=e.number)==null?void 0:l.options)??{},...e.options??{}});if(r==null)return e.placeholder??f.notAvailable;const o={minimumFractionDigits:a.minimumFractionDigits,maximumFractionDigits:a.maximumFractionDigits},s=b({minimumFractionDigits:1,maximumFractionDigits:1},o);a={signDisplay:"negative",...a,...s,style:"percent"};let t=new Intl.NumberFormat(m,a).format(r);if(typeof e.smallerThan=="number"){const i=typeof e.smallerThan=="number"?e.smallerThan:1,c=Number(t.replace("%",""));c