New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular2-pipes

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-pipes - npm Package Compare versions

Comparing version 1.6.4 to 1.6.5

10

bundles/bundle.umd.js

@@ -1315,6 +1315,6 @@ (function (global, factory) {

this.dictionary = [
{ max: 1e3, type: 'B' },
{ max: 1e6, type: 'KB' },
{ max: 1e9, type: 'MB' },
{ max: 1e12, type: 'GB' }
{ max: 1024, type: 'B' },
{ max: 1048576, type: 'KB' },
{ max: 1073741824, type: 'MB' },
{ max: 1.0995116e12, type: 'GB' }
];

@@ -1327,3 +1327,3 @@ }

var format = this.dictionary.find(function (d) { return value < d.max; }) || this.dictionary[this.dictionary.length - 1];
var calc = value / (format.max / 1e3);
var calc = value / (format.max / 1024);
var num = isUndefined(precision) ? calc : applyPrecision(calc, precision);

@@ -1330,0 +1330,0 @@ return num + " " + format.type;

@@ -1,1 +0,1 @@

!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define(["exports","@angular/core"],t):t(r["ngx-pipes"]=r["ngx-pipes"]||{},r._angular_core)}(this,function(r,t){"use strict";function n(r){return void 0===r}function e(r){return"function"==typeof r}function o(r){return"number"==typeof r}function a(r){return"string"==typeof r}function i(r){return"boolean"==typeof r}function u(r){return null!==r&&"object"==typeof r}function c(r){return o(r)&&isFinite(r)}function s(r,t){if(t<=0)return Math.round(r);var n=Math.pow(10,t);return Math.round(r*n)/n}function f(r,t){var e=t.split("."),o=e.shift();return e.reduce(function(r,t){return n(r)||n(r[t])?void 0:r[t]},r[o||""])}function p(r,t){return Object.keys(r).concat(Object.keys(t)).filter(function(r,t,n){return n.indexOf(r)===t})}function y(r,t){return u(r)&&u(t)?p(r,t).every(function(n){return u(r[n])||u(t[n])?!(!u(r[n])||!u(t[n]))&&y(r[n],t[n]):r[n]===t[n]}):r===t}var m=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(r)?t.reduce(function(r,t){return r.filter(function(r){return!~t.indexOf(r)})},r):r},r}();m.decorators=[{type:t.Pipe,args:[{name:"diff"}]}],m.ctorParameters=function(){return[]};var P=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=0),Array.isArray(r)?r.slice(0,r.length-t):r},r}();P.decorators=[{type:t.Pipe,args:[{name:"initial"}]}],P.ctorParameters=function(){return[]};var d=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=!1),Array.isArray(r)?t?[].concat.apply([],r):this.flatten(r):r},r.prototype.flatten=function(r){var t=this;return r.reduce(function(r,n){return Array.isArray(n)?r.concat(t.flatten(n)):r.concat(n)},[])},r}();d.decorators=[{type:t.Pipe,args:[{name:"flatten"}]}],d.ctorParameters=function(){return[]};var l=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(r)?t.reduce(function(r,t){return r.filter(function(r){return!!~t.indexOf(r)})},r):r},r}();l.decorators=[{type:t.Pipe,args:[{name:"intersection"}]}],l.ctorParameters=function(){return[]};var v=function(){function r(){}return r.prototype.transform=function(r){return a(r)?r.split("").reverse().join(""):Array.isArray(r)?r.reverse():r},r}();v.decorators=[{type:t.Pipe,args:[{name:"reverse"}]}],v.ctorParameters=function(){return[]};var g=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=0),Array.isArray(r)?r.slice(t):r},r}();g.decorators=[{type:t.Pipe,args:[{name:"tail"}]}],g.ctorParameters=function(){return[]};var A=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)?r.filter(function(r){return!!r}):r},r}();A.decorators=[{type:t.Pipe,args:[{name:"truthify"}]}],A.ctorParameters=function(){return[]};var h=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=[]),Array.isArray(r)&&Array.isArray(t)?t.reduce(function(r,t){return r.concat(t.reduce(function(t,n){return~t.indexOf(n)||~r.indexOf(n)?t:t.concat([n])},[]))},r):r},r}();h.decorators=[{type:t.Pipe,args:[{name:"union"}]}],h.ctorParameters=function(){return[]};var O=function(){function r(){}return r.prototype.transform=function(r,t){var e=[];return Array.isArray(r)?n(t)?r.filter(function(t,n){return r.indexOf(t)===n}):r.filter(function(r,o){var a=f(r,t);return a=u(a)?JSON.stringify(a):a,!n(a)&&!e[a]&&(e[a]=!0,!0)}):r},r}();O.decorators=[{type:t.Pipe,args:[{name:"unique"}]}],O.ctorParameters=function(){return[]};var E=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=[]),Array.isArray(r)?r.filter(function(r){return!~t.indexOf(r)}):r},r}();E.decorators=[{type:t.Pipe,args:[{name:"without"}]}],E.ctorParameters=function(){return[]};var I=function(){function r(){}return r.prototype.transform=function(r,t){return Array.isArray(r)?r.map(function(r){return f(r,t)}):r},r}();I.decorators=[{type:t.Pipe,args:[{name:"pluck",pure:!1}]}],I.ctorParameters=function(){return[]};var N=function(){function r(){}return r.prototype.transform=function(r){if(!Array.isArray(r))return r;for(var t=r.slice(),n=0,e=r.length-1,o=e-1;n<o;++n){var a=Math.floor(Math.random()*(e-n+1))+n;i=[t[a],t[n]],t[n]=i[0],t[a]=i[1]}return t;var i},r}();N.decorators=[{type:t.Pipe,args:[{name:"shuffle"}]}],N.ctorParameters=function(){return[]};var M=function(){function r(){}return r.prototype.transform=function(r,t){return!!Array.isArray(r)&&r.every(t)},r}();M.decorators=[{type:t.Pipe,args:[{name:"every"}]}],M.ctorParameters=function(){return[]};var x=function(){function r(){}return r.prototype.transform=function(r,t){return Array.isArray(r)?r.some(t):r},r}();x.decorators=[{type:t.Pipe,args:[{name:"some"}]}],x.ctorParameters=function(){return[]};var b=function(){function r(){}return r.prototype.transform=function(r,t){if(void 0===t&&(t=1),!Array.isArray(r))return r;for(var n=[],e=0,o=r.slice(),a=t<o.length?t:o.length;e<a;++e)n=n.concat(o.splice(Math.floor(Math.random()*o.length),1));return n},r}();b.decorators=[{type:t.Pipe,args:[{name:"sample"}]}],b.ctorParameters=function(){return[]};var U=function(){function r(){}return r.prototype.transform=function(r,t,n){return void 0===t&&(t=[]),void 0===n&&(n="|"),Array.isArray(r)?this.groupBy(r,t,n):r},r.prototype.groupBy=function(r,t,n){var e=this;return r.reduce(function(r,o){var a=e.extractKeyByDiscriminator(t,o,n);return r[a]=Array.isArray(r[a])?r[a].concat([o]):[o],r},{})},r.prototype.extractKeyByDiscriminator=function(r,t,n){return e(r)?r(t):Array.isArray(r)?r.map(function(r){return f(t,r)}).join(n):f(t,r)},r}();U.decorators=[{type:t.Pipe,args:[{name:"groupBy"}]}],U.ctorParameters=function(){return[]};var w=function(){function r(){}return r.prototype.transform=function(r,t,e,o){if(void 0===e&&(e=""),void 0===o&&(o=!1),!Array.isArray(r)||!a(e)&&!c(e)&&!i(e))return r;var u=String(e).toLowerCase();return r.filter(function(r){return t.some(function(t){var e=f(r,t),a=String(e).toLowerCase();return!n(e)&&(o?u===a:!!~a.indexOf(u))})})},r}();w.decorators=[{type:t.Pipe,args:[{name:"filterBy"}]}],w.ctorParameters=function(){return[]};var j=function(){function r(){}return r.prototype.transform=function(t,n){if(!Array.isArray(t))return t;var e=t.slice();if(Array.isArray(n))return e.sort(function(t,e){for(var o=0,a=n.length;o<a;++o){var i=r.extractFromConfig(n[o]),u=i[0],c=i[1],s=r.orderCompare(u,c,t,e);if(0!==s)return s}return 0});if(a(n)){var o=r.extractFromConfig(n),i=o[0],u=o[1],c=o[2];if(1===n.length)switch(c){case"+":return e.sort(r.simpleSort.bind(this));case"-":return e.sort(r.simpleSort.bind(this)).reverse()}return e.sort(r.orderCompare.bind(this,i,u))}return e.sort(r.simpleSort.bind(this))},r.simpleSort=function(r,t){return a(r)&&a(t)?r.toLowerCase().localeCompare(t.toLowerCase()):r-t},r.orderCompare=function(r,t,e,o){var i=f(e,r),u=f(o,r);if(i===u)return 0;if(n(i)||""===i)return 1;if(n(u)||""===u)return-1;if(a(i)&&a(u)){var c=i.toLowerCase().localeCompare(u.toLowerCase());return t?c:-c}return t?i-u:u-i},r.extractFromConfig=function(r){var t=r.substr(0,1);return[r.replace(/^[-+]/,""),"-"!==t,t]},r}();j.decorators=[{type:t.Pipe,args:[{name:"orderBy"}]}],j.ctorParameters=function(){return[]};var T=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])};return function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),S=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return T(t,r),t}(U);S.decorators=[{type:t.Pipe,args:[{name:"groupByImpure",pure:!1}]}],S.ctorParameters=function(){return[]};var L=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])};return function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),B=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return L(t,r),t}(w);B.decorators=[{type:t.Pipe,args:[{name:"filterByImpure",pure:!1}]}],B.ctorParameters=function(){return[]};var C=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])};return function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return C(t,r),t}(j);_.decorators=[{type:t.Pipe,args:[{name:"orderByImpure",pure:!1}]}],_.ctorParameters=function(){return[]};var R=[m,d,P,l,v,g,A,h,O,E,I,N,M,x,b,U,S,w,B,j,_],k=function(){function r(){}return r}();k.decorators=[{type:t.NgModule,args:[{declarations:R,imports:[],exports:R}]}],k.ctorParameters=function(){return[]};var D=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)||!u(r)?r:Object.keys(r)},r}();D.decorators=[{type:t.Pipe,args:[{name:"keys"}]}],D.ctorParameters=function(){return[]};var z=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)||!u(r)?r:Object.keys(r).map(function(t){return r[t]})},r}();z.decorators=[{type:t.Pipe,args:[{name:"values"}]}],z.ctorParameters=function(){return[]};var G=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)||!u(r)?r:Object.keys(r).map(function(t){return[t,r[t]]})},r}();G.decorators=[{type:t.Pipe,args:[{name:"pairs"}]}],G.ctorParameters=function(){return[]};var q=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(r)||!u(r)?r:t.reduce(function(t,n){return Object.assign(t,(e={},e[n]=r[n],e));var e},{})},r}();q.decorators=[{type:t.Pipe,args:[{name:"pick"}]}],q.ctorParameters=function(){return[]};var F=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(r)||!u(r)?r:Object.keys(r).filter(function(r){return!~t.indexOf(r)}).reduce(function(t,n){return Object.assign(t,(e={},e[n]=r[n],e));var e},{})},r}();F.decorators=[{type:t.Pipe,args:[{name:"omit"}]}],F.ctorParameters=function(){return[]};var K=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)||!u(r)?r:Object.keys(r).reduce(function(t,n){return Object.assign(t,(e={},e[r[n]]=n,e));var e},{})},r}();K.decorators=[{type:t.Pipe,args:[{name:"invert"}]}],K.ctorParameters=function(){return[]};var Y=function(){function r(){}return r.prototype.transform=function(r,t){return Array.isArray(r)||!u(r)?r:Object.keys(r).reduce(function(n,e){var o=t?t(r[e]):r[e];return Array.isArray(n[o])?(n[o].push(e),n):Object.assign(n,(a={},a[o]=[e],a));var a},{})},r}();Y.decorators=[{type:t.Pipe,args:[{name:"invertBy"}]}],Y.ctorParameters=function(){return[]};var Z=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t={}),Array.isArray(r)||Array.isArray(t)||!u(r)||!u(t)?{}:p(r,t).reduce(function(n,e){return y(t[e],r[e])||(n[e]=r[e]),n},{})},r}();Z.decorators=[{type:t.Pipe,args:[{name:"diffObj"}]}],Z.ctorParameters=function(){return[]};var H=[D,z,G,q,K,Y,F,Z],V=function(){function r(){}return r}();V.decorators=[{type:t.NgModule,args:[{declarations:H,imports:[],exports:H}]}],V.ctorParameters=function(){return[]};var W=function(){function r(){}return r.prototype.transform=function(r){return a(r)?r.split(" ").map(function(r){return r.slice(0,1).toUpperCase()+r.slice(1)}).join(" "):r},r}();W.decorators=[{type:t.Pipe,args:[{name:"ucwords"}]}],W.ctorParameters=function(){return[]};var J=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.replace(new RegExp("^["+t+"]+"),""):r},r}();J.decorators=[{type:t.Pipe,args:[{name:"ltrim"}]}],J.ctorParameters=function(){return[]};var Q=function(){function r(){}return r.prototype.transform=function(r,t,n){if(void 0===t&&(t=1),void 0===n&&(n=""),t<=0)throw new RangeError;return 1==t?r:this.repeat(r,t-1,n)},r.prototype.repeat=function(r,t,n){return a(r)?0==t?r:r+n+this.repeat(r,t-1,n):r},r}();Q.decorators=[{type:t.Pipe,args:[{name:"repeat"}]}],Q.ctorParameters=function(){return[]};var X=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.replace(new RegExp("["+t+"]+$"),""):r},r}();X.decorators=[{type:t.Pipe,args:[{name:"rtrim"}]}],X.ctorParameters=function(){return[]};var $=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=[]),a(r)?r.replace(/\{(\d+)}/g,function(r,e){return n(t[e])?r:t[e]}):r},r}();$.decorators=[{type:t.Pipe,args:[{name:"scan"}]}],$.ctorParameters=function(){return[]};var rr=function(){function r(){}return r.prototype.transform=function(r,t,n,e){if(void 0===t&&(t=0),void 0===n&&(n=""),void 0===e&&(e=!0),!a(r))return r;if(r.length>t){if(e)return r.slice(0,t)+n;if(~r.indexOf(" ",t))return r.slice(0,r.indexOf(" ",t))+n}return r},r}();rr.decorators=[{type:t.Pipe,args:[{name:"shorten"}]}],rr.ctorParameters=function(){return[]};var tr=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length>0?r.replace(new RegExp("<(?!/?("+t.join("|")+")s*/?)[^>]+>","g"),""):r.replace(/<(?:.|\s)*?>/g,"")},r}();tr.decorators=[{type:t.Pipe,args:[{name:"stripTags"}]}],tr.ctorParameters=function(){return[]};var nr=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.replace(new RegExp("^["+t+"]+|["+t+"]+$","g"),""):r},r}();nr.decorators=[{type:t.Pipe,args:[{name:"trim"}]}],nr.ctorParameters=function(){return[]};var er=function(){function r(){}return r.prototype.transform=function(r){return a(r)?r.slice(0,1).toUpperCase()+r.slice(1):r},r}();er.decorators=[{type:t.Pipe,args:[{name:"ucfirst"}]}],er.ctorParameters=function(){return[]};var or=function(){function r(){}return r.prototype.transform=function(r){return a(r)?r.toLowerCase().trim().replace(/[^\w\-]+/g," ").replace(/\s+/g,"-"):r},r}();or.decorators=[{type:t.Pipe,args:[{name:"slugify"}]}],or.ctorParameters=function(){return[]};var ar=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.toLowerCase().split(/[-_\s]/g).filter(function(r){return!!r}).map(function(r,t){return t?r.slice(0,1).toUpperCase()+r.slice(1):r}).join(""):r},r}();ar.decorators=[{type:t.Pipe,args:[{name:"camelize"}]}],ar.ctorParameters=function(){return[]};var ir=function(){function r(){this.latinMap={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","Dz":"D","Dž":"D","Đ":"D","Ƌ":"D","DZ":"DZ","DŽ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","Lj":"L","Ł":"L","LJ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","Nj":"N","Ñ":"N","NJ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","ẞ":"SS","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","IJ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","dz":"dz","dž":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","lj":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","nj":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ß":"ss","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u","ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","ff":"ff","ffi":"ffi","ffl":"ffl","fi":"fi","fl":"fl","ij":"ij","œ":"oe","st":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x"}}return r.prototype.transform=function(r,t){var n=this;return void 0===t&&(t="\\s"),a(r)?r.replace(/[^A-Za-z0-9]/g,function(r){return n.latinMap[r]||r}):r},r}();ir.decorators=[{type:t.Pipe,args:[{name:"latinise"}]}],ir.ctorParameters=function(){return[]};var ur=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.replace(/\r\n/g,"\n").split("\n"):r},r}();ur.decorators=[{type:t.Pipe,args:[{name:"lines"}]}],ur.ctorParameters=function(){return[]};var cr=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.trim().replace(/\s+/g,"").replace(/[A-Z]/g,function(r,t){return t?"_"+r.toLowerCase():r.toLowerCase()}):r},r}();cr.decorators=[{type:t.Pipe,args:[{name:"underscore"}]}],cr.ctorParameters=function(){return[]};var sr=function(){function r(){}return r.prototype.transform=function(r,t,n){return a(r)?r.match(new RegExp(t,n)):r},r}();sr.decorators=[{type:t.Pipe,args:[{name:"match"}]}],sr.ctorParameters=function(){return[]};var fr=function(){function r(){}return r.prototype.transform=function(r,t,n){return a(r)?new RegExp(t,n).test(r):r},r}();fr.decorators=[{type:t.Pipe,args:[{name:"test"}]}],fr.ctorParameters=function(){return[]};var pr=function(){function r(){}return r.prototype.transform=function(r,t,n){if(void 0===n&&(n=" "),!a(r)||r.length>=t)return r;for(;r.length<t;)r=n+r;return r},r}();pr.decorators=[{type:t.Pipe,args:[{name:"lpad"}]}],pr.ctorParameters=function(){return[]};var yr=function(){function r(){}return r.prototype.transform=function(r,t,n){if(void 0===t&&(t=1),void 0===n&&(n=" "),!a(r)||r.length>=t)return r;for(;r.length<t;)r+=n;return r},r}();yr.decorators=[{type:t.Pipe,args:[{name:"rpad"}]}],yr.ctorParameters=function(){return[]};var mr=[J,Q,X,$,rr,tr,nr,er,W,or,ar,ir,ur,cr,sr,fr,pr,yr],Pr=function(){function r(){}return r}();Pr.decorators=[{type:t.NgModule,args:[{declarations:mr,imports:[],exports:mr}]}],Pr.ctorParameters=function(){return[]};var dr=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)?Math.max.apply(Math,r):r},r}();dr.decorators=[{type:t.Pipe,args:[{name:"max"}]}],dr.ctorParameters=function(){return[]};var lr=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)?Math.min.apply(Math,r):r},r}();lr.decorators=[{type:t.Pipe,args:[{name:"min"}]}],lr.ctorParameters=function(){return[]};var vr=function(){function r(){}return r.prototype.transform=function(r,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),isNaN(r))return r;var e=100*r/t;return n?Math.floor(e):e},r}();vr.decorators=[{type:t.Pipe,args:[{name:"percentage"}]}],vr.ctorParameters=function(){return[]};var gr=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)?r.reduce(function(r,t){return r+t},0):r},r}();gr.decorators=[{type:t.Pipe,args:[{name:"sum"}]}],gr.ctorParameters=function(){return[]};var Ar=function(){function r(){}return r.prototype.transform=function(r,t){if(void 0===t&&(t=0),t<=0)return Math.floor(r);var n=Math.pow(10,t);return Math.floor(r*n)/n},r}();Ar.decorators=[{type:t.Pipe,args:[{name:"floor"}]}],Ar.ctorParameters=function(){return[]};var hr=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=0),s(r,t)},r}();hr.decorators=[{type:t.Pipe,args:[{name:"round"}]}],hr.ctorParameters=function(){return[]};var Or=function(){function r(){}return r.prototype.transform=function(r){return isNaN(r)?r:Math.sqrt(r)},r}();Or.decorators=[{type:t.Pipe,args:[{name:"sqrt"}]}],Or.ctorParameters=function(){return[]};var Er=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=2),isNaN(r)?r:Math.pow(r,t)},r}();Er.decorators=[{type:t.Pipe,args:[{name:"pow"}]}],Er.ctorParameters=function(){return[]};var Ir=function(){function r(){}return r.prototype.transform=function(r,t){if(void 0===t&&(t=0),t<=0)return Math.ceil(r);var n=Math.pow(10,t);return Math.ceil(r*n)/n},r}();Ir.decorators=[{type:t.Pipe,args:[{name:"ceil"}]}],Ir.ctorParameters=function(){return[]};var Nr=function(){function r(){}return r.prototype.transform=function(r){return c(r)?180*r/Math.PI:NaN},r}();Nr.decorators=[{type:t.Pipe,args:[{name:"degrees"}]}],Nr.ctorParameters=function(){return[]};var Mr=function(){function r(){this.dictionary=[{max:1e3,type:"B"},{max:1e6,type:"KB"},{max:1e9,type:"MB"},{max:1e12,type:"GB"}]}return r.prototype.transform=function(r,t){if(!c(r))return NaN;var e=this.dictionary.find(function(t){return r<t.max})||this.dictionary[this.dictionary.length-1],o=r/(e.max/1e3);return(n(t)?o:s(o,t))+" "+e.type},r}();Mr.decorators=[{type:t.Pipe,args:[{name:"bytes"}]}],Mr.ctorParameters=function(){return[]};var xr=function(){function r(){}return r.prototype.transform=function(r){return c(r)?r*Math.PI/180:NaN},r}();xr.decorators=[{type:t.Pipe,args:[{name:"radians"}]}],xr.ctorParameters=function(){return[]};var br=[dr,lr,vr,gr,Ar,hr,Or,Er,Ir,Nr,Mr,xr],Ur=function(){function r(){}return r}();Ur.decorators=[{type:t.NgModule,args:[{declarations:br,imports:[],exports:br}]}],Ur.ctorParameters=function(){return[]};var wr=function(){function r(){}return r.prototype.transform=function(r){return!n(r)},r}();wr.decorators=[{type:t.Pipe,args:[{name:"isDefined"}]}],wr.ctorParameters=function(){return[]};var jr=function(){function r(){}return r.prototype.transform=function(r){return null===r},r}();jr.decorators=[{type:t.Pipe,args:[{name:"isNull"}]}],jr.ctorParameters=function(){return[]};var Tr=function(){function r(){}return r.prototype.transform=function(r){return n(r)},r}();Tr.decorators=[{type:t.Pipe,args:[{name:"isUndefined"}]}],Tr.ctorParameters=function(){return[]};var Sr=function(){function r(){}return r.prototype.transform=function(r){return a(r)},r}();Sr.decorators=[{type:t.Pipe,args:[{name:"isString"}]}],Sr.ctorParameters=function(){return[]};var Lr=function(){function r(){}return r.prototype.transform=function(r){return e(r)},r}();Lr.decorators=[{type:t.Pipe,args:[{name:"isFunction"}]}],Lr.ctorParameters=function(){return[]};var Br=function(){function r(){}return r.prototype.transform=function(r){return o(r)},r}();Br.decorators=[{type:t.Pipe,args:[{name:"isNumber"}]}],Br.ctorParameters=function(){return[]};var Cr=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)},r}();Cr.decorators=[{type:t.Pipe,args:[{name:"isArray"}]}],Cr.ctorParameters=function(){return[]};var _r=function(){function r(){}return r.prototype.transform=function(r){return u(r)},r}();_r.decorators=[{type:t.Pipe,args:[{name:"isObject"}]}],_r.ctorParameters=function(){return[]};var Rr=function(){function r(){}return r.prototype.transform=function(r,t){return r>=t},r}();Rr.decorators=[{type:t.Pipe,args:[{name:"isGreaterEqualThan"}]}],Rr.ctorParameters=function(){return[]};var kr=function(){function r(){}return r.prototype.transform=function(r,t){return r>t},r}();kr.decorators=[{type:t.Pipe,args:[{name:"isGreaterThan"}]}],kr.ctorParameters=function(){return[]};var Dr=function(){function r(){}return r.prototype.transform=function(r,t){return r<=t},r}();Dr.decorators=[{type:t.Pipe,args:[{name:"isLessEqualThan"}]}],Dr.ctorParameters=function(){return[]};var zr=function(){function r(){}return r.prototype.transform=function(r,t){return r==t},r}();zr.decorators=[{type:t.Pipe,args:[{name:"isEqualTo"}]}],zr.ctorParameters=function(){return[]};var Gr=function(){function r(){}return r.prototype.transform=function(r,t){return r!=t},r}();Gr.decorators=[{type:t.Pipe,args:[{name:"isNotEqualTo"}]}],Gr.ctorParameters=function(){return[]};var qr=function(){function r(){}return r.prototype.transform=function(r,t){return r===t},r}();qr.decorators=[{type:t.Pipe,args:[{name:"isIdenticalTo"}]}],qr.ctorParameters=function(){return[]};var Fr=function(){function r(){}return r.prototype.transform=function(r,t){return r!==t},r}();Fr.decorators=[{type:t.Pipe,args:[{name:"isNotIdenticalTo"}]}],Fr.ctorParameters=function(){return[]};var Kr=function(){function r(){}return r.prototype.transform=function(r,t){return r<t},r}();Kr.decorators=[{type:t.Pipe,args:[{name:"isLessThan"}]}],Kr.ctorParameters=function(){return[]};var Yr=[wr,jr,Tr,Sr,Lr,Br,Cr,_r,Rr,kr,Dr,Dr,zr,Gr,qr,Fr,Kr],Zr=function(){function r(){}return r}();Zr.decorators=[{type:t.NgModule,args:[{declarations:Yr,imports:[],exports:Yr}]}],Zr.ctorParameters=function(){return[]};var Hr=function(){function r(){}return r}();Hr.decorators=[{type:t.NgModule,args:[{exports:[k,Pr,Ur,Zr,V]}]}],Hr.ctorParameters=function(){return[]},r.NgPipesModule=Hr,r.NgArrayPipesModule=k,r.DiffPipe=m,r.InitialPipe=P,r.FlattenPipe=d,r.IntersectionPipe=l,r.ReversePipe=v,r.TailPipe=g,r.TrurthifyPipe=A,r.UnionPipe=h,r.UniquePipe=O,r.WithoutPipe=E,r.PluckPipe=I,r.ShufflePipe=N,r.EveryPipe=M,r.SomePipe=x,r.SamplePipe=b,r.GroupByPipe=U,r.FilterByPipe=w,r.OrderByPipe=j,r.GroupByImpurePipe=S,r.FilterByImpurePipe=B,r.OrderByImpurePipe=_,r.NgObjectPipesModule=V,r.KeysPipe=D,r.ValuesPipe=z,r.PairsPipe=G,r.PickPipe=q,r.OmitPipe=F,r.InvertPipe=K,r.InvertByPipe=Y,r.DiffObjPipe=Z,r.STRING_PIPES=mr,r.NgStringPipesModule=Pr,r.UcWordsPipe=W,r.LeftTrimPipe=J,r.RepeatPipe=Q,r.RightTrimPipe=X,r.ScanPipe=$,r.ShortenPipe=rr,r.StripTagsPipe=tr,r.TrimPipe=nr,r.UcFirstPipe=er,r.SlugifyPipe=or,r.CamelizePipe=ar,r.LatinisePipe=ir,r.LinesPipe=ur,r.UnderscorePipe=cr,r.MatchPipe=sr,r.TestPipe=fr,r.LeftPadPipe=pr,r.RightPadPipe=yr,r.MATH_PIPES=br,r.NgMathPipesModule=Ur,r.MaxPipe=dr,r.MinPipe=lr,r.PercentagePipe=vr,r.SumPipe=gr,r.FloorPipe=Ar,r.RoundPipe=hr,r.SqrtPipe=Or,r.PowerPipe=Er,r.CeilPipe=Ir,r.DegreesPipe=Nr,r.BytesPipe=Mr,r.BOOLEAN_PIPES=Yr,r.NgBooleanPipesModule=Zr,r.IsDefinedPipe=wr,r.IsNullPipe=jr,r.IsUndefinedPipe=Tr,r.IsStringPipe=Sr,r.IsFunctionPipe=Lr,r.IsNumberPipe=Br,r.IsArrayPipe=Cr,r.IsObjectPipe=_r,r.IsGreaterEqualThanPipe=Rr,r.IsGreaterThanPipe=kr,r.IsLessEqualThanPipe=Dr,r.IsEqualToPipe=zr,r.IsNotEqualToPipe=Gr,r.IsIdenticalToPipe=qr,r.IsNotIdenticalToPipe=Fr,r.IsLessThanPipe=Kr,Object.defineProperty(r,"__esModule",{value:!0})});
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define(["exports","@angular/core"],t):t(r["ngx-pipes"]=r["ngx-pipes"]||{},r._angular_core)}(this,function(r,t){"use strict";function n(r){return void 0===r}function e(r){return"function"==typeof r}function o(r){return"number"==typeof r}function a(r){return"string"==typeof r}function i(r){return"boolean"==typeof r}function u(r){return null!==r&&"object"==typeof r}function c(r){return o(r)&&isFinite(r)}function s(r,t){if(t<=0)return Math.round(r);var n=Math.pow(10,t);return Math.round(r*n)/n}function f(r,t){var e=t.split("."),o=e.shift();return e.reduce(function(r,t){return n(r)||n(r[t])?void 0:r[t]},r[o||""])}function p(r,t){return Object.keys(r).concat(Object.keys(t)).filter(function(r,t,n){return n.indexOf(r)===t})}function y(r,t){return u(r)&&u(t)?p(r,t).every(function(n){return u(r[n])||u(t[n])?!(!u(r[n])||!u(t[n]))&&y(r[n],t[n]):r[n]===t[n]}):r===t}var m=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(r)?t.reduce(function(r,t){return r.filter(function(r){return!~t.indexOf(r)})},r):r},r}();m.decorators=[{type:t.Pipe,args:[{name:"diff"}]}],m.ctorParameters=function(){return[]};var P=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=0),Array.isArray(r)?r.slice(0,r.length-t):r},r}();P.decorators=[{type:t.Pipe,args:[{name:"initial"}]}],P.ctorParameters=function(){return[]};var d=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=!1),Array.isArray(r)?t?[].concat.apply([],r):this.flatten(r):r},r.prototype.flatten=function(r){var t=this;return r.reduce(function(r,n){return Array.isArray(n)?r.concat(t.flatten(n)):r.concat(n)},[])},r}();d.decorators=[{type:t.Pipe,args:[{name:"flatten"}]}],d.ctorParameters=function(){return[]};var l=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(r)?t.reduce(function(r,t){return r.filter(function(r){return!!~t.indexOf(r)})},r):r},r}();l.decorators=[{type:t.Pipe,args:[{name:"intersection"}]}],l.ctorParameters=function(){return[]};var v=function(){function r(){}return r.prototype.transform=function(r){return a(r)?r.split("").reverse().join(""):Array.isArray(r)?r.reverse():r},r}();v.decorators=[{type:t.Pipe,args:[{name:"reverse"}]}],v.ctorParameters=function(){return[]};var g=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=0),Array.isArray(r)?r.slice(t):r},r}();g.decorators=[{type:t.Pipe,args:[{name:"tail"}]}],g.ctorParameters=function(){return[]};var A=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)?r.filter(function(r){return!!r}):r},r}();A.decorators=[{type:t.Pipe,args:[{name:"truthify"}]}],A.ctorParameters=function(){return[]};var h=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=[]),Array.isArray(r)&&Array.isArray(t)?t.reduce(function(r,t){return r.concat(t.reduce(function(t,n){return~t.indexOf(n)||~r.indexOf(n)?t:t.concat([n])},[]))},r):r},r}();h.decorators=[{type:t.Pipe,args:[{name:"union"}]}],h.ctorParameters=function(){return[]};var O=function(){function r(){}return r.prototype.transform=function(r,t){var e=[];return Array.isArray(r)?n(t)?r.filter(function(t,n){return r.indexOf(t)===n}):r.filter(function(r,o){var a=f(r,t);return a=u(a)?JSON.stringify(a):a,!n(a)&&!e[a]&&(e[a]=!0,!0)}):r},r}();O.decorators=[{type:t.Pipe,args:[{name:"unique"}]}],O.ctorParameters=function(){return[]};var E=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=[]),Array.isArray(r)?r.filter(function(r){return!~t.indexOf(r)}):r},r}();E.decorators=[{type:t.Pipe,args:[{name:"without"}]}],E.ctorParameters=function(){return[]};var I=function(){function r(){}return r.prototype.transform=function(r,t){return Array.isArray(r)?r.map(function(r){return f(r,t)}):r},r}();I.decorators=[{type:t.Pipe,args:[{name:"pluck",pure:!1}]}],I.ctorParameters=function(){return[]};var N=function(){function r(){}return r.prototype.transform=function(r){if(!Array.isArray(r))return r;for(var t=r.slice(),n=0,e=r.length-1,o=e-1;n<o;++n){var a=Math.floor(Math.random()*(e-n+1))+n;i=[t[a],t[n]],t[n]=i[0],t[a]=i[1]}return t;var i},r}();N.decorators=[{type:t.Pipe,args:[{name:"shuffle"}]}],N.ctorParameters=function(){return[]};var M=function(){function r(){}return r.prototype.transform=function(r,t){return!!Array.isArray(r)&&r.every(t)},r}();M.decorators=[{type:t.Pipe,args:[{name:"every"}]}],M.ctorParameters=function(){return[]};var x=function(){function r(){}return r.prototype.transform=function(r,t){return Array.isArray(r)?r.some(t):r},r}();x.decorators=[{type:t.Pipe,args:[{name:"some"}]}],x.ctorParameters=function(){return[]};var b=function(){function r(){}return r.prototype.transform=function(r,t){if(void 0===t&&(t=1),!Array.isArray(r))return r;for(var n=[],e=0,o=r.slice(),a=t<o.length?t:o.length;e<a;++e)n=n.concat(o.splice(Math.floor(Math.random()*o.length),1));return n},r}();b.decorators=[{type:t.Pipe,args:[{name:"sample"}]}],b.ctorParameters=function(){return[]};var U=function(){function r(){}return r.prototype.transform=function(r,t,n){return void 0===t&&(t=[]),void 0===n&&(n="|"),Array.isArray(r)?this.groupBy(r,t,n):r},r.prototype.groupBy=function(r,t,n){var e=this;return r.reduce(function(r,o){var a=e.extractKeyByDiscriminator(t,o,n);return r[a]=Array.isArray(r[a])?r[a].concat([o]):[o],r},{})},r.prototype.extractKeyByDiscriminator=function(r,t,n){return e(r)?r(t):Array.isArray(r)?r.map(function(r){return f(t,r)}).join(n):f(t,r)},r}();U.decorators=[{type:t.Pipe,args:[{name:"groupBy"}]}],U.ctorParameters=function(){return[]};var w=function(){function r(){}return r.prototype.transform=function(r,t,e,o){if(void 0===e&&(e=""),void 0===o&&(o=!1),!Array.isArray(r)||!a(e)&&!c(e)&&!i(e))return r;var u=String(e).toLowerCase();return r.filter(function(r){return t.some(function(t){var e=f(r,t),a=String(e).toLowerCase();return!n(e)&&(o?u===a:!!~a.indexOf(u))})})},r}();w.decorators=[{type:t.Pipe,args:[{name:"filterBy"}]}],w.ctorParameters=function(){return[]};var j=function(){function r(){}return r.prototype.transform=function(t,n){if(!Array.isArray(t))return t;var e=t.slice();if(Array.isArray(n))return e.sort(function(t,e){for(var o=0,a=n.length;o<a;++o){var i=r.extractFromConfig(n[o]),u=i[0],c=i[1],s=r.orderCompare(u,c,t,e);if(0!==s)return s}return 0});if(a(n)){var o=r.extractFromConfig(n),i=o[0],u=o[1],c=o[2];if(1===n.length)switch(c){case"+":return e.sort(r.simpleSort.bind(this));case"-":return e.sort(r.simpleSort.bind(this)).reverse()}return e.sort(r.orderCompare.bind(this,i,u))}return e.sort(r.simpleSort.bind(this))},r.simpleSort=function(r,t){return a(r)&&a(t)?r.toLowerCase().localeCompare(t.toLowerCase()):r-t},r.orderCompare=function(r,t,e,o){var i=f(e,r),u=f(o,r);if(i===u)return 0;if(n(i)||""===i)return 1;if(n(u)||""===u)return-1;if(a(i)&&a(u)){var c=i.toLowerCase().localeCompare(u.toLowerCase());return t?c:-c}return t?i-u:u-i},r.extractFromConfig=function(r){var t=r.substr(0,1);return[r.replace(/^[-+]/,""),"-"!==t,t]},r}();j.decorators=[{type:t.Pipe,args:[{name:"orderBy"}]}],j.ctorParameters=function(){return[]};var T=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])};return function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),S=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return T(t,r),t}(U);S.decorators=[{type:t.Pipe,args:[{name:"groupByImpure",pure:!1}]}],S.ctorParameters=function(){return[]};var L=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])};return function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),B=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return L(t,r),t}(w);B.decorators=[{type:t.Pipe,args:[{name:"filterByImpure",pure:!1}]}],B.ctorParameters=function(){return[]};var C=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])};return function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return C(t,r),t}(j);_.decorators=[{type:t.Pipe,args:[{name:"orderByImpure",pure:!1}]}],_.ctorParameters=function(){return[]};var R=[m,d,P,l,v,g,A,h,O,E,I,N,M,x,b,U,S,w,B,j,_],k=function(){function r(){}return r}();k.decorators=[{type:t.NgModule,args:[{declarations:R,imports:[],exports:R}]}],k.ctorParameters=function(){return[]};var D=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)||!u(r)?r:Object.keys(r)},r}();D.decorators=[{type:t.Pipe,args:[{name:"keys"}]}],D.ctorParameters=function(){return[]};var z=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)||!u(r)?r:Object.keys(r).map(function(t){return r[t]})},r}();z.decorators=[{type:t.Pipe,args:[{name:"values"}]}],z.ctorParameters=function(){return[]};var G=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)||!u(r)?r:Object.keys(r).map(function(t){return[t,r[t]]})},r}();G.decorators=[{type:t.Pipe,args:[{name:"pairs"}]}],G.ctorParameters=function(){return[]};var q=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(r)||!u(r)?r:t.reduce(function(t,n){return Object.assign(t,(e={},e[n]=r[n],e));var e},{})},r}();q.decorators=[{type:t.Pipe,args:[{name:"pick"}]}],q.ctorParameters=function(){return[]};var F=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(r)||!u(r)?r:Object.keys(r).filter(function(r){return!~t.indexOf(r)}).reduce(function(t,n){return Object.assign(t,(e={},e[n]=r[n],e));var e},{})},r}();F.decorators=[{type:t.Pipe,args:[{name:"omit"}]}],F.ctorParameters=function(){return[]};var K=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)||!u(r)?r:Object.keys(r).reduce(function(t,n){return Object.assign(t,(e={},e[r[n]]=n,e));var e},{})},r}();K.decorators=[{type:t.Pipe,args:[{name:"invert"}]}],K.ctorParameters=function(){return[]};var Y=function(){function r(){}return r.prototype.transform=function(r,t){return Array.isArray(r)||!u(r)?r:Object.keys(r).reduce(function(n,e){var o=t?t(r[e]):r[e];return Array.isArray(n[o])?(n[o].push(e),n):Object.assign(n,(a={},a[o]=[e],a));var a},{})},r}();Y.decorators=[{type:t.Pipe,args:[{name:"invertBy"}]}],Y.ctorParameters=function(){return[]};var Z=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t={}),Array.isArray(r)||Array.isArray(t)||!u(r)||!u(t)?{}:p(r,t).reduce(function(n,e){return y(t[e],r[e])||(n[e]=r[e]),n},{})},r}();Z.decorators=[{type:t.Pipe,args:[{name:"diffObj"}]}],Z.ctorParameters=function(){return[]};var H=[D,z,G,q,K,Y,F,Z],V=function(){function r(){}return r}();V.decorators=[{type:t.NgModule,args:[{declarations:H,imports:[],exports:H}]}],V.ctorParameters=function(){return[]};var W=function(){function r(){}return r.prototype.transform=function(r){return a(r)?r.split(" ").map(function(r){return r.slice(0,1).toUpperCase()+r.slice(1)}).join(" "):r},r}();W.decorators=[{type:t.Pipe,args:[{name:"ucwords"}]}],W.ctorParameters=function(){return[]};var J=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.replace(new RegExp("^["+t+"]+"),""):r},r}();J.decorators=[{type:t.Pipe,args:[{name:"ltrim"}]}],J.ctorParameters=function(){return[]};var Q=function(){function r(){}return r.prototype.transform=function(r,t,n){if(void 0===t&&(t=1),void 0===n&&(n=""),t<=0)throw new RangeError;return 1==t?r:this.repeat(r,t-1,n)},r.prototype.repeat=function(r,t,n){return a(r)?0==t?r:r+n+this.repeat(r,t-1,n):r},r}();Q.decorators=[{type:t.Pipe,args:[{name:"repeat"}]}],Q.ctorParameters=function(){return[]};var X=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.replace(new RegExp("["+t+"]+$"),""):r},r}();X.decorators=[{type:t.Pipe,args:[{name:"rtrim"}]}],X.ctorParameters=function(){return[]};var $=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=[]),a(r)?r.replace(/\{(\d+)}/g,function(r,e){return n(t[e])?r:t[e]}):r},r}();$.decorators=[{type:t.Pipe,args:[{name:"scan"}]}],$.ctorParameters=function(){return[]};var rr=function(){function r(){}return r.prototype.transform=function(r,t,n,e){if(void 0===t&&(t=0),void 0===n&&(n=""),void 0===e&&(e=!0),!a(r))return r;if(r.length>t){if(e)return r.slice(0,t)+n;if(~r.indexOf(" ",t))return r.slice(0,r.indexOf(" ",t))+n}return r},r}();rr.decorators=[{type:t.Pipe,args:[{name:"shorten"}]}],rr.ctorParameters=function(){return[]};var tr=function(){function r(){}return r.prototype.transform=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length>0?r.replace(new RegExp("<(?!/?("+t.join("|")+")s*/?)[^>]+>","g"),""):r.replace(/<(?:.|\s)*?>/g,"")},r}();tr.decorators=[{type:t.Pipe,args:[{name:"stripTags"}]}],tr.ctorParameters=function(){return[]};var nr=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.replace(new RegExp("^["+t+"]+|["+t+"]+$","g"),""):r},r}();nr.decorators=[{type:t.Pipe,args:[{name:"trim"}]}],nr.ctorParameters=function(){return[]};var er=function(){function r(){}return r.prototype.transform=function(r){return a(r)?r.slice(0,1).toUpperCase()+r.slice(1):r},r}();er.decorators=[{type:t.Pipe,args:[{name:"ucfirst"}]}],er.ctorParameters=function(){return[]};var or=function(){function r(){}return r.prototype.transform=function(r){return a(r)?r.toLowerCase().trim().replace(/[^\w\-]+/g," ").replace(/\s+/g,"-"):r},r}();or.decorators=[{type:t.Pipe,args:[{name:"slugify"}]}],or.ctorParameters=function(){return[]};var ar=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.toLowerCase().split(/[-_\s]/g).filter(function(r){return!!r}).map(function(r,t){return t?r.slice(0,1).toUpperCase()+r.slice(1):r}).join(""):r},r}();ar.decorators=[{type:t.Pipe,args:[{name:"camelize"}]}],ar.ctorParameters=function(){return[]};var ir=function(){function r(){this.latinMap={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","Dz":"D","Dž":"D","Đ":"D","Ƌ":"D","DZ":"DZ","DŽ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","Lj":"L","Ł":"L","LJ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","Nj":"N","Ñ":"N","NJ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","ẞ":"SS","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","IJ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","dz":"dz","dž":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","lj":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","nj":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ß":"ss","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u","ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","ff":"ff","ffi":"ffi","ffl":"ffl","fi":"fi","fl":"fl","ij":"ij","œ":"oe","st":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x"}}return r.prototype.transform=function(r,t){var n=this;return void 0===t&&(t="\\s"),a(r)?r.replace(/[^A-Za-z0-9]/g,function(r){return n.latinMap[r]||r}):r},r}();ir.decorators=[{type:t.Pipe,args:[{name:"latinise"}]}],ir.ctorParameters=function(){return[]};var ur=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.replace(/\r\n/g,"\n").split("\n"):r},r}();ur.decorators=[{type:t.Pipe,args:[{name:"lines"}]}],ur.ctorParameters=function(){return[]};var cr=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t="\\s"),a(r)?r.trim().replace(/\s+/g,"").replace(/[A-Z]/g,function(r,t){return t?"_"+r.toLowerCase():r.toLowerCase()}):r},r}();cr.decorators=[{type:t.Pipe,args:[{name:"underscore"}]}],cr.ctorParameters=function(){return[]};var sr=function(){function r(){}return r.prototype.transform=function(r,t,n){return a(r)?r.match(new RegExp(t,n)):r},r}();sr.decorators=[{type:t.Pipe,args:[{name:"match"}]}],sr.ctorParameters=function(){return[]};var fr=function(){function r(){}return r.prototype.transform=function(r,t,n){return a(r)?new RegExp(t,n).test(r):r},r}();fr.decorators=[{type:t.Pipe,args:[{name:"test"}]}],fr.ctorParameters=function(){return[]};var pr=function(){function r(){}return r.prototype.transform=function(r,t,n){if(void 0===n&&(n=" "),!a(r)||r.length>=t)return r;for(;r.length<t;)r=n+r;return r},r}();pr.decorators=[{type:t.Pipe,args:[{name:"lpad"}]}],pr.ctorParameters=function(){return[]};var yr=function(){function r(){}return r.prototype.transform=function(r,t,n){if(void 0===t&&(t=1),void 0===n&&(n=" "),!a(r)||r.length>=t)return r;for(;r.length<t;)r+=n;return r},r}();yr.decorators=[{type:t.Pipe,args:[{name:"rpad"}]}],yr.ctorParameters=function(){return[]};var mr=[J,Q,X,$,rr,tr,nr,er,W,or,ar,ir,ur,cr,sr,fr,pr,yr],Pr=function(){function r(){}return r}();Pr.decorators=[{type:t.NgModule,args:[{declarations:mr,imports:[],exports:mr}]}],Pr.ctorParameters=function(){return[]};var dr=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)?Math.max.apply(Math,r):r},r}();dr.decorators=[{type:t.Pipe,args:[{name:"max"}]}],dr.ctorParameters=function(){return[]};var lr=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)?Math.min.apply(Math,r):r},r}();lr.decorators=[{type:t.Pipe,args:[{name:"min"}]}],lr.ctorParameters=function(){return[]};var vr=function(){function r(){}return r.prototype.transform=function(r,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),isNaN(r))return r;var e=100*r/t;return n?Math.floor(e):e},r}();vr.decorators=[{type:t.Pipe,args:[{name:"percentage"}]}],vr.ctorParameters=function(){return[]};var gr=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)?r.reduce(function(r,t){return r+t},0):r},r}();gr.decorators=[{type:t.Pipe,args:[{name:"sum"}]}],gr.ctorParameters=function(){return[]};var Ar=function(){function r(){}return r.prototype.transform=function(r,t){if(void 0===t&&(t=0),t<=0)return Math.floor(r);var n=Math.pow(10,t);return Math.floor(r*n)/n},r}();Ar.decorators=[{type:t.Pipe,args:[{name:"floor"}]}],Ar.ctorParameters=function(){return[]};var hr=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=0),s(r,t)},r}();hr.decorators=[{type:t.Pipe,args:[{name:"round"}]}],hr.ctorParameters=function(){return[]};var Or=function(){function r(){}return r.prototype.transform=function(r){return isNaN(r)?r:Math.sqrt(r)},r}();Or.decorators=[{type:t.Pipe,args:[{name:"sqrt"}]}],Or.ctorParameters=function(){return[]};var Er=function(){function r(){}return r.prototype.transform=function(r,t){return void 0===t&&(t=2),isNaN(r)?r:Math.pow(r,t)},r}();Er.decorators=[{type:t.Pipe,args:[{name:"pow"}]}],Er.ctorParameters=function(){return[]};var Ir=function(){function r(){}return r.prototype.transform=function(r,t){if(void 0===t&&(t=0),t<=0)return Math.ceil(r);var n=Math.pow(10,t);return Math.ceil(r*n)/n},r}();Ir.decorators=[{type:t.Pipe,args:[{name:"ceil"}]}],Ir.ctorParameters=function(){return[]};var Nr=function(){function r(){}return r.prototype.transform=function(r){return c(r)?180*r/Math.PI:NaN},r}();Nr.decorators=[{type:t.Pipe,args:[{name:"degrees"}]}],Nr.ctorParameters=function(){return[]};var Mr=function(){function r(){this.dictionary=[{max:1024,type:"B"},{max:1048576,type:"KB"},{max:1073741824,type:"MB"},{max:10995116e5,type:"GB"}]}return r.prototype.transform=function(r,t){if(!c(r))return NaN;var e=this.dictionary.find(function(t){return r<t.max})||this.dictionary[this.dictionary.length-1],o=r/(e.max/1024);return(n(t)?o:s(o,t))+" "+e.type},r}();Mr.decorators=[{type:t.Pipe,args:[{name:"bytes"}]}],Mr.ctorParameters=function(){return[]};var xr=function(){function r(){}return r.prototype.transform=function(r){return c(r)?r*Math.PI/180:NaN},r}();xr.decorators=[{type:t.Pipe,args:[{name:"radians"}]}],xr.ctorParameters=function(){return[]};var br=[dr,lr,vr,gr,Ar,hr,Or,Er,Ir,Nr,Mr,xr],Ur=function(){function r(){}return r}();Ur.decorators=[{type:t.NgModule,args:[{declarations:br,imports:[],exports:br}]}],Ur.ctorParameters=function(){return[]};var wr=function(){function r(){}return r.prototype.transform=function(r){return!n(r)},r}();wr.decorators=[{type:t.Pipe,args:[{name:"isDefined"}]}],wr.ctorParameters=function(){return[]};var jr=function(){function r(){}return r.prototype.transform=function(r){return null===r},r}();jr.decorators=[{type:t.Pipe,args:[{name:"isNull"}]}],jr.ctorParameters=function(){return[]};var Tr=function(){function r(){}return r.prototype.transform=function(r){return n(r)},r}();Tr.decorators=[{type:t.Pipe,args:[{name:"isUndefined"}]}],Tr.ctorParameters=function(){return[]};var Sr=function(){function r(){}return r.prototype.transform=function(r){return a(r)},r}();Sr.decorators=[{type:t.Pipe,args:[{name:"isString"}]}],Sr.ctorParameters=function(){return[]};var Lr=function(){function r(){}return r.prototype.transform=function(r){return e(r)},r}();Lr.decorators=[{type:t.Pipe,args:[{name:"isFunction"}]}],Lr.ctorParameters=function(){return[]};var Br=function(){function r(){}return r.prototype.transform=function(r){return o(r)},r}();Br.decorators=[{type:t.Pipe,args:[{name:"isNumber"}]}],Br.ctorParameters=function(){return[]};var Cr=function(){function r(){}return r.prototype.transform=function(r){return Array.isArray(r)},r}();Cr.decorators=[{type:t.Pipe,args:[{name:"isArray"}]}],Cr.ctorParameters=function(){return[]};var _r=function(){function r(){}return r.prototype.transform=function(r){return u(r)},r}();_r.decorators=[{type:t.Pipe,args:[{name:"isObject"}]}],_r.ctorParameters=function(){return[]};var Rr=function(){function r(){}return r.prototype.transform=function(r,t){return r>=t},r}();Rr.decorators=[{type:t.Pipe,args:[{name:"isGreaterEqualThan"}]}],Rr.ctorParameters=function(){return[]};var kr=function(){function r(){}return r.prototype.transform=function(r,t){return r>t},r}();kr.decorators=[{type:t.Pipe,args:[{name:"isGreaterThan"}]}],kr.ctorParameters=function(){return[]};var Dr=function(){function r(){}return r.prototype.transform=function(r,t){return r<=t},r}();Dr.decorators=[{type:t.Pipe,args:[{name:"isLessEqualThan"}]}],Dr.ctorParameters=function(){return[]};var zr=function(){function r(){}return r.prototype.transform=function(r,t){return r==t},r}();zr.decorators=[{type:t.Pipe,args:[{name:"isEqualTo"}]}],zr.ctorParameters=function(){return[]};var Gr=function(){function r(){}return r.prototype.transform=function(r,t){return r!=t},r}();Gr.decorators=[{type:t.Pipe,args:[{name:"isNotEqualTo"}]}],Gr.ctorParameters=function(){return[]};var qr=function(){function r(){}return r.prototype.transform=function(r,t){return r===t},r}();qr.decorators=[{type:t.Pipe,args:[{name:"isIdenticalTo"}]}],qr.ctorParameters=function(){return[]};var Fr=function(){function r(){}return r.prototype.transform=function(r,t){return r!==t},r}();Fr.decorators=[{type:t.Pipe,args:[{name:"isNotIdenticalTo"}]}],Fr.ctorParameters=function(){return[]};var Kr=function(){function r(){}return r.prototype.transform=function(r,t){return r<t},r}();Kr.decorators=[{type:t.Pipe,args:[{name:"isLessThan"}]}],Kr.ctorParameters=function(){return[]};var Yr=[wr,jr,Tr,Sr,Lr,Br,Cr,_r,Rr,kr,Dr,Dr,zr,Gr,qr,Fr,Kr],Zr=function(){function r(){}return r}();Zr.decorators=[{type:t.NgModule,args:[{declarations:Yr,imports:[],exports:Yr}]}],Zr.ctorParameters=function(){return[]};var Hr=function(){function r(){}return r}();Hr.decorators=[{type:t.NgModule,args:[{exports:[k,Pr,Ur,Zr,V]}]}],Hr.ctorParameters=function(){return[]},r.NgPipesModule=Hr,r.NgArrayPipesModule=k,r.DiffPipe=m,r.InitialPipe=P,r.FlattenPipe=d,r.IntersectionPipe=l,r.ReversePipe=v,r.TailPipe=g,r.TrurthifyPipe=A,r.UnionPipe=h,r.UniquePipe=O,r.WithoutPipe=E,r.PluckPipe=I,r.ShufflePipe=N,r.EveryPipe=M,r.SomePipe=x,r.SamplePipe=b,r.GroupByPipe=U,r.FilterByPipe=w,r.OrderByPipe=j,r.GroupByImpurePipe=S,r.FilterByImpurePipe=B,r.OrderByImpurePipe=_,r.NgObjectPipesModule=V,r.KeysPipe=D,r.ValuesPipe=z,r.PairsPipe=G,r.PickPipe=q,r.OmitPipe=F,r.InvertPipe=K,r.InvertByPipe=Y,r.DiffObjPipe=Z,r.STRING_PIPES=mr,r.NgStringPipesModule=Pr,r.UcWordsPipe=W,r.LeftTrimPipe=J,r.RepeatPipe=Q,r.RightTrimPipe=X,r.ScanPipe=$,r.ShortenPipe=rr,r.StripTagsPipe=tr,r.TrimPipe=nr,r.UcFirstPipe=er,r.SlugifyPipe=or,r.CamelizePipe=ar,r.LatinisePipe=ir,r.LinesPipe=ur,r.UnderscorePipe=cr,r.MatchPipe=sr,r.TestPipe=fr,r.LeftPadPipe=pr,r.RightPadPipe=yr,r.MATH_PIPES=br,r.NgMathPipesModule=Ur,r.MaxPipe=dr,r.MinPipe=lr,r.PercentagePipe=vr,r.SumPipe=gr,r.FloorPipe=Ar,r.RoundPipe=hr,r.SqrtPipe=Or,r.PowerPipe=Er,r.CeilPipe=Ir,r.DegreesPipe=Nr,r.BytesPipe=Mr,r.BOOLEAN_PIPES=Yr,r.NgBooleanPipesModule=Zr,r.IsDefinedPipe=wr,r.IsNullPipe=jr,r.IsUndefinedPipe=Tr,r.IsStringPipe=Sr,r.IsFunctionPipe=Lr,r.IsNumberPipe=Br,r.IsArrayPipe=Cr,r.IsObjectPipe=_r,r.IsGreaterEqualThanPipe=Rr,r.IsGreaterThanPipe=kr,r.IsLessEqualThanPipe=Dr,r.IsEqualToPipe=zr,r.IsNotEqualToPipe=Gr,r.IsIdenticalToPipe=qr,r.IsNotIdenticalToPipe=Fr,r.IsLessThanPipe=Kr,Object.defineProperty(r,"__esModule",{value:!0})});
import { PipeTransform } from '@angular/core';
export declare class UniquePipe implements PipeTransform {
transform(input: any, propertyName?: string): any[];
transform(input: any, propertyName?: string | undefined): any[];
}
import { PipeTransform } from '@angular/core';
export declare class BytesPipe implements PipeTransform {
private dictionary;
transform(value: number, precision?: number): string | number;
transform(value: number, precision?: number | undefined): string | number;
}

@@ -6,6 +6,6 @@ import { Pipe } from '@angular/core';

this.dictionary = [
{ max: 1e3, type: 'B' },
{ max: 1e6, type: 'KB' },
{ max: 1e9, type: 'MB' },
{ max: 1e12, type: 'GB' }
{ max: 1024, type: 'B' },
{ max: 1048576, type: 'KB' },
{ max: 1073741824, type: 'MB' },
{ max: 1.0995116e12, type: 'GB' }
];

@@ -18,3 +18,3 @@ }

var format = this.dictionary.find(function (d) { return value < d.max; }) || this.dictionary[this.dictionary.length - 1];
var calc = value / (format.max / 1e3);
var calc = value / (format.max / 1024);
var num = isUndefined(precision) ? calc : applyPrecision(calc, precision);

@@ -21,0 +21,0 @@ return num + " " + format.type;

{
"name": "angular2-pipes",
"version": "1.6.4",
"version": "1.6.5",
"author": "Dan Revah",

@@ -5,0 +5,0 @@ "description": "Useful angular2 pipes",

import { PipeTransform } from '@angular/core';
export declare class UniquePipe implements PipeTransform {
transform(input: any, propertyName?: string): any[];
transform(input: any, propertyName?: string | undefined): any[];
}

@@ -7,3 +7,3 @@ import { PipeTransform, Pipe } from '@angular/core';

transform(input: any, propertyName?: string): any[] {
transform(input: any, propertyName?: string | undefined): any[] {
const uniques: boolean[] = [];

@@ -10,0 +10,0 @@ return Array.isArray(input) ?

import { PipeTransform } from '@angular/core';
export declare class BytesPipe implements PipeTransform {
private dictionary;
transform(value: number, precision?: number): string | number;
transform(value: number, precision?: number | undefined): string | number;
}

@@ -8,6 +8,6 @@ "use strict";

this.dictionary = [
{ max: 1e3, type: 'B' },
{ max: 1e6, type: 'KB' },
{ max: 1e9, type: 'MB' },
{ max: 1e12, type: 'GB' }
{ max: 1024, type: 'B' },
{ max: 1048576, type: 'KB' },
{ max: 1073741824, type: 'MB' },
{ max: 1.0995116e12, type: 'GB' }
];

@@ -20,3 +20,3 @@ }

var format = this.dictionary.find(function (d) { return value < d.max; }) || this.dictionary[this.dictionary.length - 1];
var calc = value / (format.max / 1e3);
var calc = value / (format.max / 1024);
var num = helpers_1.isUndefined(precision) ? calc : helpers_1.applyPrecision(calc, precision);

@@ -23,0 +23,0 @@ return num + " " + format.type;

@@ -17,12 +17,13 @@ import {BytesPipe} from './bytes';

expect(pipe.transform(999)).toEqual('999 B');
expect(pipe.transform(1000)).toEqual('1 KB');
expect(pipe.transform(1e4)).toEqual('10 KB');
expect(pipe.transform(1e6 - 1)).toEqual('999.999 KB');
expect(pipe.transform(1e9 - 1)).toEqual('999.999999 MB');
expect(pipe.transform(1e9)).toEqual('1 GB');
expect(pipe.transform(1e12)).toEqual('1000 GB');
expect(pipe.transform(12345678)).toEqual('12.345678 MB');
expect(pipe.transform(12345678, 1)).toEqual('12.3 MB');
expect(pipe.transform(12345678, 2)).toEqual('12.35 MB');
expect(pipe.transform(1024)).toEqual('1 KB');
expect(pipe.transform(10240)).toEqual('10 KB');
expect(pipe.transform(102400)).toEqual('100 KB');
expect(pipe.transform(1023488)).toEqual('999.5 KB');
expect(pipe.transform(15456864)).toEqual('14.740814208984375 MB');
expect(pipe.transform(4616548610)).toEqual('4.299496045917114 GB');
expect(pipe.transform(461654861500)).toEqual('429.94960505737276 GB');
expect(pipe.transform(12345678)).toEqual('11.77375602722168 MB');
expect(pipe.transform(12345678, 1)).toEqual('11.8 MB');
expect(pipe.transform(12345678, 2)).toEqual('11.77 MB');
});
});

@@ -7,9 +7,9 @@ import {PipeTransform, Pipe} from '@angular/core';

private dictionary: Array<{max: number, type: string}> = [
{ max: 1e3, type: 'B' },
{ max: 1e6, type: 'KB' },
{ max: 1e9, type: 'MB' },
{ max: 1e12, type: 'GB' }
{ max: 1024, type: 'B' },
{ max: 1048576, type: 'KB' },
{ max: 1073741824, type: 'MB' },
{ max: 1.0995116e12, type: 'GB' }
];
transform(value: number, precision?: number): string | number {
transform(value: number, precision?: number | undefined): string | number {
if (!isNumberFinite(value)) {

@@ -20,3 +20,3 @@ return NaN;

const format = this.dictionary.find(d => value < d.max) || this.dictionary[this.dictionary.length - 1];
const calc = value / (format.max / 1e3);
const calc = value / (format.max / 1024);
const num = isUndefined(precision) ? calc : applyPrecision(calc, precision);

@@ -23,0 +23,0 @@ return `${num} ${format.type}`;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc