(()=>{function e(e,t){var n=t("km"),r=t("m"),a=e("{{ value | number:precision }} {{ unit | translate }}");return function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"m",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;return _.isNaN(parseFloat(e))||!_.isFinite(e)?"-":(e=e,(t=t)===r&&1e3<e&&(e/=1e3,t=n),a({value:e,precision:i,unit:t}))}}e.$inject=["$interpolate","gettext"],angular.module("c8y.ui").filter("distance",e)})();