/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","./maybe","./quantityUtils","./unitFormatUtils"],(function(t,e,r,a){"use strict";function n(t,e,n,i=2,u="abbr"){return a.formatDecimal(t,r.toUnit(e,n).value,n,i,u)}function i(t,e,n,i=2,u="abbr"){return a.formatRelativeDecimal(t,r.toUnit(e,n).value,n,i,u)}function u(t,e,r=2,n="abbr"){return a.formatMetricLength(t,e.value,e.unit,r,n)}function l(t,e,r=2,n="abbr"){return a.formatMetricRelativeLength(t,e.value,e.unit,r,n)}function o(t,e,r=2,n="abbr"){return a.formatMetricVerticalLength(t,e.value,e.unit,r,n)}function c(t,e,r=2,n="abbr"){return a.formatMetricRelativeVerticalLength(t,e.value,e.unit,r,n)}function f(t,e,r=2,n="abbr"){return a.formatMetricArea(t,e.value,e.unit,r,n)}function m(t,e,r=2,n="abbr"){return a.formatImperialLength(t,e.value,e.unit,r,n)}function b(t,e,r=2,n="abbr"){return a.formatImperialRelativeLength(t,e.value,e.unit,r,n)}function v(t,e,r=2,n="abbr"){return a.formatImperialVerticalLength(t,e.value,e.unit,r,n)}function g(t,e,r=2,n="abbr"){return a.formatImperialRelativeVerticalLength(t,e.value,e.unit,r,n)}function h(t,e,r=2,n="abbr"){return a.formatImperialArea(t,e.value,e.unit,r,n)}function s(t){return a.formatDMS(t.value,t.unit)}function p(t,e,r){return a.formatAngleDegrees(t.value,t.unit,t.rotationType,e,r)}function L(t,e,r){return a.formatRelativeAngleDegrees(t.value,t.unit,t.rotationType,e,r)}function M(t,r,a,i,l="abbr"){switch(i=e.unwrapOr(i,2),a){case"imperial":return m(t,r,i,l);case"metric":return u(t,r,i,l);default:return n(t,r,a,i,l)}}function R(t,e,r,a=2,n="abbr"){switch(r){case"imperial":return b(t,e,a,n);case"metric":return l(t,e,a,n);default:return i(t,e,r,a,n)}}function I(t,e,r,a=2,i="abbr"){switch(r){case"imperial":return v(t,e,a,i);case"metric":return o(t,e,a,i);default:return n(t,e,r,a,i)}}function V(t,e,r,a=2,n="abbr"){switch(r){case"imperial":return g(t,e,a,n);case"metric":return c(t,e,a,n);default:return i(t,e,r,a,n)}}function d(t,e,r,a=2,i="abbr"){switch(r){case"imperial":return h(t,e,a,i);case"metric":return f(t,e,a,i);default:return n(t,e,r,a,i)}}t.formatAngle=p,t.formatArea=d,t.formatDMS=s,t.formatDecimal=n,t.formatImperialArea=h,t.formatImperialLength=m,t.formatImperialRelativeLength=b,t.formatImperialRelativeVerticalLength=g,t.formatImperialVerticalLength=v,t.formatLength=M,t.formatMetricArea=f,t.formatMetricLength=u,t.formatMetricRelativeLength=l,t.formatMetricRelativeVerticalLength=c,t.formatMetricVerticalLength=o,t.formatRelativeAngle=L,t.formatRelativeDecimal=i,t.formatRelativeLength=R,t.formatRelativeVerticalLength=V,t.formatVerticalLength=I,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
