UNPKG

ng-custom-pipe

Version:

An Angular Library, that gives you a hussle free experience on data operation using pipes

1,913 lines 92.2 kB
import * as i0 from '@angular/core';
import { Injectable, Component, Pipe, NgModule } from '@angular/core';

/** Copyright 2023 Infosys Ltd. */
class NgCustomPipeService {
    constructor() { }
}
NgCustomPipeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
NgCustomPipeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeService, providedIn: 'root' });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeService, decorators: [{
            type: Injectable,
            args: [{
                    providedIn: 'root'
                }]
        }], ctorParameters: function () { return []; } });

/** Copyright 2023 Infosys Ltd. */
class NgCustomPipeComponent {
    constructor() { }
    ngOnInit() {
    }
}
NgCustomPipeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
NgCustomPipeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NgCustomPipeComponent, selector: "ng-custom-pipe", ngImport: i0, template: `
    <p>
      ng-custom-pipe works!
    </p>
  `, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ng-custom-pipe', template: `
    <p>
      ng-custom-pipe works!
    </p>
  ` }]
        }], ctorParameters: function () { return []; } });

/** Copyright 2023 Infosys Ltd. */
class HandleNanPipe {
    constructor() {
        this.resString = '';
    }
    transform(value, message) {
        if (!value || isNaN(+value)) {
            this.resString = message ? message : "Invalid Number";
        }
        else {
            this.resString = value;
        }
        return this.resString;
    }
}
HandleNanPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HandleNanPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
HandleNanPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HandleNanPipe, name: "handleNan" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HandleNanPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'handleNan'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class UpperPipe {
    transform(value) {
        return value ? value.toUpperCase() : 'NULL';
    }
}
UpperPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UpperPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
UpperPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UpperPipe, name: "upper" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UpperPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'upper'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class LowerPipe {
    transform(value) {
        return value ? value.toLowerCase() : 'null';
    }
}
LowerPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LowerPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
LowerPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LowerPipe, name: "lower" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LowerPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'lower'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class TrimPipe {
    transform(value, direction) {
        if (!direction || direction.toLowerCase() == 'around') {
            return value.trim();
        }
        else if (direction.toLowerCase() == 'left') {
            return value.trimLeft();
        }
        else if (direction.toLowerCase() == 'right') {
            return value.trimRight();
        }
        else if (direction.toLowerCase() == 'start') {
            return value.trimStart();
        }
        else if (direction.toLowerCase() == 'end') {
            return value.trimEnd();
        }
        return '';
    }
}
TrimPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TrimPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
TrimPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TrimPipe, name: "trim" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TrimPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'trim'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class SplitPipe {
    transform(value, separator) {
        if (!value) {
            return [];
        }
        if (!separator || separator == '') {
            return value.split('');
        }
        else {
            return value.split(separator);
        }
    }
}
SplitPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SplitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
SplitPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SplitPipe, name: "split" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SplitPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'split'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ReplacePipe {
    transform(value, textToBeReplaced, replacedText) {
        if (!value.includes(textToBeReplaced)) {
            return 'Text to be Replaced not found in Source String.';
        }
        else {
            if (!replacedText) {
                return value.replace(new RegExp(textToBeReplaced, 'g'), 'Default Text');
            }
            else {
                return value.replace(new RegExp(textToBeReplaced, 'g'), replacedText);
            }
        }
    }
}
ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ReplacePipe, name: "replace" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReplacePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'replace'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class MatchPipe {
    transform(value, match) {
        if (typeof (match) == 'string') {
            match = match.toLowerCase();
        }
        let result = value.toLowerCase().match(match);
        if (result?.index >= 0) {
            return result.index;
        }
        else {
            return 'No Match Found';
        }
    }
}
MatchPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MatchPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
MatchPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MatchPipe, name: "match" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MatchPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'match'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class CapitalizePipe {
    transform(value) {
        let words = value.split(' ');
        let results = [];
        words.forEach((word) => {
            results.push(word[0].toUpperCase() + word.slice(1, word.length).toLowerCase());
        });
        return results.join(' ');
    }
}
CapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
CapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CapitalizePipe, name: "capitalize" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CapitalizePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'capitalize'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class SlugItPipe {
    transform(value) {
        return typeof (value) === 'string' ?
            value.toLowerCase().trim().replace(/[^\w\-]+/g, ' ').replace(/\s+/g, '-') : value;
    }
}
SlugItPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlugItPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
SlugItPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SlugItPipe, name: "slugIt" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlugItPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'slugIt'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ReversePipe {
    transform(value) {
        let revString = '';
        for (let i = 1; i < value.length + 1; i++) {
            revString += value[value.length - i];
        }
        return revString;
    }
}
ReversePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReversePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ReversePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ReversePipe, name: "reverse" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReversePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'reverse'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class GroupByPipe {
    transform(value, col) {
        let result = [];
        let group = [];
        value.forEach((row) => {
            let key = row[col];
            if (!group.includes(key)) {
                result.push({ key: key, value: [row] });
                group.push(key);
            }
            else {
                result.forEach(ar => {
                    if (ar.key === key) {
                        ar.value.push(row);
                    }
                });
            }
        });
        return result;
    }
}
GroupByPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GroupByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
GroupByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: GroupByPipe, name: "groupBy" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GroupByPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'groupBy'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class StringifyPipe {
    transform(value) {
        return JSON.stringify(value);
    }
}
StringifyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StringifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
StringifyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StringifyPipe, name: "stringify" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StringifyPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'stringify'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class AveragePipe {
    transform(value) {
        let sum = 0;
        value.forEach(num => sum += num);
        return sum / value.length;
    }
}
AveragePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AveragePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
AveragePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AveragePipe, name: "average" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AveragePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'average'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class MedianPipe {
    transform(value) {
        if (!value || value.length == 0) {
            return null;
        }
        const midIndex = Math.floor(value.length / 2);
        const numbers = value.sort((a, b) => a - b);
        return value.length % 2 !== 0 ? numbers[midIndex]
            : (numbers[midIndex - 1] + numbers[midIndex]) / 2;
    }
}
MedianPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MedianPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
MedianPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MedianPipe, name: "median" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MedianPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'median'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ModePipe {
    transform(value) {
        if (!value || value.length == 0) {
            return null;
        }
        let mode = value[0];
        let count = 1;
        let modeObj = {};
        value.forEach((v) => {
            if (modeObj[v] == null) {
                modeObj[v] = 1;
            }
            else {
                modeObj[v] += 1;
            }
            if (modeObj[v] > count) {
                mode = v;
                count = modeObj[v];
            }
        });
        return mode;
    }
}
ModePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ModePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ModePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ModePipe, name: "mode" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ModePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'mode'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class MaximumPipe {
    transform(value) {
        if (!value || value.length == 0) {
            return 0;
        }
        return Math.max(...value);
    }
}
MaximumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaximumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
MaximumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MaximumPipe, name: "maximum" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaximumPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'maximum'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class MinimumPipe {
    transform(value) {
        if (!value || value.length == 0) {
            return 0;
        }
        return Math.min(...value);
    }
}
MinimumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MinimumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
MinimumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MinimumPipe, name: "minimum" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MinimumPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'minimum'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class SumPipe {
    transform(value) {
        if (!value || value.length == 0) {
            return 0;
        }
        let sum = 0;
        value.forEach(num => { sum += num; });
        return sum;
    }
}
SumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
SumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SumPipe, name: "sum" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SumPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'sum'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class EmptyPipe {
    transform(value) {
        if (!value)
            return true;
        return value.length === 0;
    }
}
EmptyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
EmptyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: EmptyPipe, name: "empty" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmptyPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'empty'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class FirstItemPipe {
    transform(value) {
        if (!value || value.length === 0)
            return null;
        return value[0];
    }
}
FirstItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirstItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
FirstItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FirstItemPipe, name: "firstItem" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirstItemPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'firstItem'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class LastItemPipe {
    transform(value) {
        if (!value || value.length === 0)
            return null;
        return value[value.length - 1];
    }
}
LastItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LastItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
LastItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LastItemPipe, name: "lastItem" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LastItemPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'lastItem'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class PopFirstItemPipe {
    transform(value) {
        if (!value || value.length === 0)
            return [];
        return value.slice(1, value.length);
    }
}
PopFirstItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PopFirstItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
PopFirstItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PopFirstItemPipe, name: "popFirstItem" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PopFirstItemPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'popFirstItem'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class PopLastItemPipe {
    transform(value) {
        if (!value || value.length === 0)
            return [];
        return value.slice(0, value.length - 1);
    }
}
PopLastItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PopLastItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
PopLastItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PopLastItemPipe, name: "popLastItem" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PopLastItemPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'popLastItem'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class JoinPipe {
    transform(value, joiner) {
        if (!joiner)
            return value.join('');
        return value.join(joiner);
    }
}
JoinPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JoinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
JoinPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: JoinPipe, name: "join" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JoinPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'join'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class SetPipe {
    transform(value) {
        if (!value || value.length === 0)
            return [];
        let result = [];
        value.forEach(val => {
            if (!result.includes(val)) {
                result.push(val);
            }
        });
        return result;
    }
}
SetPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SetPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
SetPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SetPipe, name: "set" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SetPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'set'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ExceptPipe {
    transform(value, exclusions) {
        if (!value || value.length === 0)
            return [];
        let result = [];
        if (typeof (exclusions) == 'string' || typeof (exclusions) == 'number') {
            value.forEach(val => {
                if (val !== exclusions) {
                    result.push(val);
                }
            });
        }
        else {
            value.forEach(val => {
                if (!exclusions.includes(val)) {
                    result.push(val);
                }
            });
        }
        return result;
    }
}
ExceptPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExceptPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ExceptPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ExceptPipe, name: "except" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExceptPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'except'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class AndPipe {
    transform(value, anotherArr) {
        if (!value || value.length === 0)
            return [];
        if (!anotherArr || anotherArr.length === 0)
            return [];
        let result = [];
        value.forEach(val => {
            if (anotherArr.includes(val) && !result.includes(val)) {
                result.push(val);
            }
        });
        return result;
    }
}
AndPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AndPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
AndPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AndPipe, name: "and" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AndPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'and'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class OrPipe {
    transform(value, anotherArr) {
        if (!value || value.length === 0)
            return anotherArr;
        if (!anotherArr || anotherArr.length === 0)
            return value;
        let result = [];
        value.forEach(val => {
            if (!result.includes(val)) {
                result.push(val);
            }
        });
        anotherArr.forEach(val => {
            if (!result.includes(val)) {
                result.push(val);
            }
        });
        return result;
    }
}
OrPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
OrPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: OrPipe, name: "or" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'or'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class RangePipe {
    transform(value, start, end) {
        if (!value || value.length === 0)
            return [];
        if (!start) {
            start = Math.min(...value);
        }
        if (!end) {
            end = Math.max(...value);
        }
        let result = [];
        value.forEach(num => {
            // @ts-ignore
            if (num >= start && num <= end) {
                result.push(num);
            }
        });
        return result;
    }
}
RangePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
RangePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RangePipe, name: "range" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RangePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'range'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class MapPipe {
    transform(value, funct) {
        if (!value || value.length === 0)
            return [];
        let result = [];
        result = value.map(val => funct(val));
        return result;
    }
}
MapPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MapPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
MapPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MapPipe, name: "map" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MapPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'map'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class PluckPropertyPipe {
    transform(value, prop) {
        if (!value || value.length === 0)
            return [];
        let result = [];
        let props = prop.split('.');
        value.forEach((val) => {
            let res = val[props[0]];
            if (props.length > 1) {
                for (let i = 1; i < props.length; i++) {
                    res = res[props[i]];
                }
            }
            if (res) {
                result.push(res);
            }
        });
        return result;
    }
}
PluckPropertyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PluckPropertyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
PluckPropertyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PluckPropertyPipe, name: "pluckProperty" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PluckPropertyPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'pluckProperty'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class FilterPipe {
    transform(value, param) {
        if (!value || value.length === 0)
            return [];
        let resultArr = [];
        if (typeof (param) == 'string' || typeof (param) == 'number') {
            resultArr = value.filter(val => { return val === param; });
        }
        if (typeof (param) == 'object') {
            let prop = param[0];
            let props = prop.split('.');
            value.forEach(val => {
                let res = val[props[0]];
                if (props.length > 1) {
                    for (let i = 1; i < props.length; i++) {
                        res = res[props[i]];
                    }
                }
                if (res === param[1]) {
                    resultArr.push(val);
                }
            });
        }
        if (typeof (param) == 'function') {
            resultArr = param(value);
        }
        return resultArr;
    }
}
FilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
FilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilterPipe, name: "filter" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'filter'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class FilterOnePipe {
    transform(value, param) {
        if (!value || value.length === 0)
            return [];
        let resultArr = [];
        if (typeof (param) == 'string' || typeof (param) == 'number') {
            resultArr = value.filter(val => { return val === param; });
        }
        if (typeof (param) == 'object') {
            let prop = param[0];
            let props = prop.split('.');
            value.forEach(val => {
                let res = val[props[0]];
                if (props.length > 1) {
                    for (let i = 1; i < props.length; i++) {
                        res = res[props[i]];
                    }
                }
                if (res === param[1]) {
                    resultArr.push(val);
                }
            });
        }
        if (typeof (param) == 'function') {
            resultArr = param(value);
        }
        return resultArr[0];
    }
}
FilterOnePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterOnePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
FilterOnePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilterOnePipe, name: "filterOne" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterOnePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'filterOne'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class SortPipe {
    transform(value, sortingMethod) {
        if (!value)
            return [];
        if (!sortingMethod || sortingMethod === 'asc') {
            return value.sort((a, b) => { return a > b ? 1 : -1; });
        }
        return value.sort((a, b) => { return a > b ? -1 : 1; });
    }
}
SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SortPipe, name: "sort" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'sort'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class LengthPipe {
    transform(value) {
        return value ? value.length : 0;
    }
}
LengthPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LengthPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
LengthPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LengthPipe, name: "length" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LengthPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'length'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ChunkPipe {
    transform(value, length) {
        if (!length) {
            length = 1;
        }
        let result = [];
        for (let i = 0; i < value.length; i += length) {
            let chunkArr = [];
            for (let k = 0; k < length; k++) {
                if (i + k < value.length) {
                    chunkArr.push(value[i + k]);
                }
            }
            result.push(chunkArr);
        }
        return result;
    }
}
ChunkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChunkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ChunkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ChunkPipe, name: "chunk" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChunkPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'chunk'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class DropPipe {
    transform(value, dropLen) {
        if (!dropLen) {
            return value.slice(0, value.length - 1);
        }
        return value.slice(0, value.length - dropLen);
    }
}
DropPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DropPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
DropPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DropPipe, name: "drop" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DropPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'drop'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class FlatPipe {
    transform(value, layer) {
        if (!value || value.length == 0)
            return [];
        if (!layer) {
            layer = 1;
        }
        let resultArr = value.flat();
        if (layer > 1)
            for (let i = 1; i < layer; i++) {
                resultArr = this.flatten(resultArr);
            }
        return resultArr;
    }
    flatten(arr) {
        return arr.flat();
    }
}
FlatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
FlatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FlatPipe, name: "flat" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlatPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'flat'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ReverseArrayPipe {
    transform(value) {
        if (!value)
            return [];
        return value.sort(() => { return -1; });
    }
}
ReverseArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReverseArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ReverseArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ReverseArrayPipe, name: "reverseArray" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReverseArrayPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'reverseArray'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ByteConvertToPipe {
    transform(value, unit) {
        const bMax = 1024;
        const kbMax = 1024 * 1024;
        const mbMax = 1024 * 1024 * 1024;
        const gbMax = 1024 * 1024 * 1024 * 1024;
        const tbMax = Number.MAX_SAFE_INTEGER;
        if (!unit) {
            if (value < bMax) {
                return value + ' B';
            }
            else if (value < kbMax) {
                return value / bMax + ' KB';
            }
            else if (value < mbMax) {
                return value / kbMax + ' MB';
            }
            else if (value < gbMax) {
                return value / mbMax + ' GB';
            }
            else if (value < tbMax) {
                return value / gbMax + ' TB';
            }
        }
        if (unit === 'B') {
            return value + ' B';
        }
        if (unit === 'KB') {
            return value / bMax + ' KB';
        }
        if (unit === 'MB') {
            return value / kbMax + ' MB';
        }
        if (unit === 'GB') {
            return value / mbMax + ' GB';
        }
        if (unit === 'TB') {
            return value / gbMax + ' TB';
        }
        return '';
    }
}
ByteConvertToPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ByteConvertToPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ByteConvertToPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ByteConvertToPipe, name: "byteConvertTo" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ByteConvertToPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'byteConvertTo'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class CeilPipe {
    transform(value) {
        return Math.ceil(value);
    }
}
CeilPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CeilPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
CeilPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CeilPipe, name: "ceil" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CeilPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'ceil'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class FloorPipe {
    transform(value) {
        return Math.floor(value);
    }
}
FloorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FloorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
FloorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FloorPipe, name: "floor" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FloorPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'floor'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class RoundPipe {
    transform(value, decimalDigits) {
        if (!decimalDigits || decimalDigits === 0) {
            return Math.round(value);
        }
        return Math.round(value * Math.pow(10, decimalDigits)) / Math.pow(10, decimalDigits);
    }
}
RoundPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RoundPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
RoundPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RoundPipe, name: "round" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RoundPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'round'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ToDegreePipe {
    transform(value) {
        return (value * 180) / Math.PI;
    }
}
ToDegreePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToDegreePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ToDegreePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ToDegreePipe, name: "toDegree" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToDegreePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'toDegree'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ToRadianPipe {
    transform(value) {
        return (value * Math.PI) / 180 > Math.PI ? (value / 180) + 'π' : (value * Math.PI) / 180;
    }
}
ToRadianPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToRadianPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ToRadianPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ToRadianPipe, name: "toRadian" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToRadianPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'toRadian'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class PowerPipe {
    transform(value, exponent) {
        if (!exponent || exponent === 0)
            return 1;
        return Math.pow(value, exponent);
    }
}
PowerPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PowerPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
PowerPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PowerPipe, name: "power" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PowerPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'power'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class SqrootPipe {
    transform(value) {
        return Math.sqrt(value);
    }
}
SqrootPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SqrootPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
SqrootPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SqrootPipe, name: "sqroot" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SqrootPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'sqroot'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class AbsolutePipe {
    transform(inputNumberValue) {
        if (!inputNumberValue)
            return 0;
        let absoluteNumberValue = Math.abs(inputNumberValue);
        return absoluteNumberValue;
    }
}
AbsolutePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsolutePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
AbsolutePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AbsolutePipe, name: "absolute" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbsolutePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'absolute'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class OrdinalPipe {
    transform(value) {
        const prefix = {
            0: 'th',
            1: 'st',
            2: 'nd',
            3: 'rd',
            4: 'th',
            5: 'th',
            6: 'th',
            7: 'th',
            8: 'th',
            9: 'th',
        };
        if (value % 100 > 10 && value % 100 < 20) {
            return value + 'th';
        }
        return value + prefix[value % 10];
    }
}
OrdinalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrdinalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
OrdinalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: OrdinalPipe, name: "ordinal" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrdinalPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'ordinal'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IntegerTypePipe {
    transform(value) {
        return Math.sign(value) == 1 ? 'POSITIVE'
            : Math.sign(value) == 0 ? 'NIL' : 'NEGATIVE';
    }
}
IntegerTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntegerTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IntegerTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IntegerTypePipe, name: "integerType" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntegerTypePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'integerType'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsArrayPipe {
    transform(value) {
        let inp = JSON.stringify(value);
        return inp.startsWith('[') && inp.endsWith(']');
    }
}
IsArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsArrayPipe, name: "isArray" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsArrayPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isArray'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsBinaryPipe {
    transform(value) {
        let inp = typeof (value) === 'string' || typeof (value) === 'number' || typeof (value) === 'bigint'
            ? value.toString() : JSON.stringify(value);
        let reg = /^[0|1]{0,}$/;
        return reg.test(inp);
    }
}
IsBinaryPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsBinaryPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsBinaryPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsBinaryPipe, name: "isBinary" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsBinaryPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isBinary'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsDefinedPipe {
    transform(value) {
        return !(value == null || value == undefined);
    }
}
IsDefinedPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsDefinedPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsDefinedPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsDefinedPipe, name: "isDefined" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsDefinedPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isDefined'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsEqualPipe {
    transform(value, comparator) {
        return value == comparator;
    }
}
IsEqualPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsEqualPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsEqualPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsEqualPipe, name: "isEqual" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsEqualPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isEqual'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsFunctionPipe {
    transform(value) {
        return typeof (value) == 'function';
    }
}
IsFunctionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsFunctionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsFunctionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsFunctionPipe, name: "isFunction" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsFunctionPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isFunction'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsIdenticalPipe {
    transform(value, comparator) {
        return value === comparator;
    }
}
IsIdenticalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsIdenticalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsIdenticalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsIdenticalPipe, name: "isIdentical" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsIdenticalPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isIdentical'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsNilPipe {
    transform(value) {
        return value == 0;
    }
}
IsNilPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsNilPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsNilPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsNilPipe, name: "isNil" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsNilPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isNil'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsNullPipe {
    transform(value) {
        return value == null;
    }
}
IsNullPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsNullPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsNullPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsNullPipe, name: "isNull" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsNullPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isNull'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsNumberPipe {
    transform(value) {
        let num = +value;
        return typeof (num) == 'number' && !isNaN(num);
    }
}
IsNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsNumberPipe, name: "isNumber" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsNumberPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isNumber'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsObjectPipe {
    transform(value) {
        let inp = JSON.stringify(value);
        return inp.startsWith('{') && inp.endsWith('}');
    }
}
IsObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsObjectPipe, name: "isObject" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsObjectPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isObject'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsStringPipe {
    transform(value) {
        return typeof (value) == 'string';
    }
}
IsStringPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsStringPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsStringPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsStringPipe, name: "isString" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsStringPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isString'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsTruthyPipe {
    transform(value) {
        return value === true;
    }
}
IsTruthyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsTruthyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsTruthyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsTruthyPipe, name: "isTruthy" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsTruthyPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isTruthy'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class IsUndefinedPipe {
    transform(value) {
        return value === undefined;
    }
}
IsUndefinedPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsUndefinedPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
IsUndefinedPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IsUndefinedPipe, name: "isUndefined" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IsUndefinedPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'isUndefined'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class KeyArrayPipe {
    transform(value) {
        let res = [];
        for (let key in value) {
            res.push(key);
        }
        return res;
    }
}
KeyArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: KeyArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
KeyArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: KeyArrayPipe, name: "keyArray" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: KeyArrayPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'keyArray'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ToArrayPipe {
    transform(value) {
        let res = [];
        for (let key in value) {
            // @ts-ignore
            res.push(value[key]);
        }
        return res;
    }
}
ToArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ToArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ToArrayPipe, name: "toArray" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToArrayPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'toArray'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class NormaliseObjArrayPipe {
    transform(value, defaultObj) {
        let result = [];
        value.forEach((val) => {
            for (let key in defaultObj) {
                if (!val[key]) {
                    // @ts-ignore
                    val[key] = defaultObj[key];
                }
            }
            result.push(val);
        });
        return result;
    }
}
NormaliseObjArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NormaliseObjArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
NormaliseObjArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NormaliseObjArrayPipe, name: "normaliseObjArray" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NormaliseObjArrayPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'normaliseObjArray'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class TruncatePipe {
    transform(value, length, delimiter) {
        if (!length)
            length = Math.floor(value.length / 2);
        if (!delimiter)
            delimiter = '...';
        if (!value || value.length === 0)
            return delimiter;
        let result = value.slice(0, length);
        result += delimiter;
        return result;
    }
}
TruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
TruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TruncatePipe, name: "truncate" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TruncatePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'truncate'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class RepeatPipe {
    transform(value, count, separator) {
        if (!count) {
            count = 1;
        }
        if (!separator) {
            separator = '';
        }
        let result = '';
        if (count === 0) {
            return '';
        }
        else {
            for (let i = 0; i < count; i++) {
                if (i == count - 1) {
                    result += value;
                }
                else {
                    result += (value + separator);
                }
            }
        }
        return result;
    }
}
RepeatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RepeatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
RepeatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RepeatPipe, name: "repeat" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RepeatPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'repeat'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class CombinePipe {
    transform(value, arrToCombine) {
        return [...value, ...arrToCombine];
    }
}
CombinePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CombinePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
CombinePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CombinePipe, name: "combine" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CombinePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'combine'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class InterpolatePipe {
    transform(value, ...args) {
        return value && value.replace(/\{(\d+)}/g, (substring, index) => this.isNullOrUndefined(args[index]) ? substring : args[index]);
    }
    isNullOrUndefined(value) {
        return typeof value === 'undefined' || value === null;
    }
}
InterpolatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterpolatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
InterpolatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InterpolatePipe, name: "interpolate" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterpolatePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'interpolate'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class ConvertToBasePipe {
    transform(value, convertFrom, convertTo) {
        let decimalInp;
        let result;
        if (convertFrom === 2 || convertFrom === 'binary') {
            decimalInp = parseInt(value.toString(), 2);
        }
        else if (convertFrom === 8 || convertFrom === 'octal') {
            decimalInp = parseInt(value.toString(), 8);
        }
        else if (convertFrom === 10 || convertFrom === 'decimal') {
            decimalInp = parseInt(value.toString(), 10);
        }
        else if (convertFrom === 16 || convertFrom === 'hexadecimal') {
            decimalInp = parseInt(value.toString(), 16);
        }
        else {
            decimalInp = parseInt(value.toString(), convertFrom);
        }
        if (convertTo === 2 || convertTo === 'binary') {
            result = decimalInp.toString(2);
        }
        else if (convertTo === 8 || convertTo === 'octal') {
            result = decimalInp.toString(8);
        }
        else if (convertTo === 10 || convertTo === 'decimal') {
            result = decimalInp.toString(10);
        }
        else if (convertTo === 16 || convertTo === 'hexadecimal') {
            result = decimalInp.toString(16);
        }
        else {
            result = decimalInp.toString(convertTo);
        }
        return result;
    }
}
ConvertToBasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConvertToBasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ConvertToBasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ConvertToBasePipe, name: "convertToBase" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConvertToBasePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'convertToBase'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class OrderByPipe {
    transform(inputArr, orderKey, sortingOrderAsc, valType = 'string') {
        const reversed = sortingOrderAsc === 'asc' ? 1 : -1;
        if (!inputArr || inputArr.length === 0) {
            return [];
        }
        if (valType === 'boolean') {
            if (orderKey !== '' && orderKey !== null) {
                inputArr.sort((a, b) => { return reversed * (Number(a[orderKey]) - Number(b[orderKey])); });
            }
            else {
                inputArr.sort((a, b) => { return reversed * (Number(a) - Number(b)); });
            }
        }
        else if (valType === 'number') {
            if (orderKey !== '' && orderKey !== null) {
                inputArr.sort((a, b) => { return reversed * (a[orderKey] - b[orderKey]); });
            }
            else {
                inputArr.sort((a, b) => { return reversed * (a - b); });
            }
        }
        else if (valType === 'date') {
            if (orderKey !== '' && orderKey !== null) {
                inputArr.sort((a, b) => { return reversed * (new Date(a[orderKey]).valueOf() - new Date(b[orderKey]).valueOf()); });
            }
            else {
                inputArr.sort((a, b) => { return reversed * (new Date(a).valueOf() - new Date(b).valueOf()); });
            }
        }
        else {
            if (orderKey !== '' && orderKey !== null) {
                inputArr.sort((a, b) => {
                    return a[orderKey].toLowerCase() < b[orderKey].toLowerCase()
                        ? reversed * -1 : a[orderKey].toLowerCase() > b[orderKey].toLowerCase() ? reversed : 0;
                });
            }
            else {
                inputArr.sort((a, b) => {
                    return a.toLowerCase() < b.toLowerCase() ? reversed * -1 :
                        a.toLowerCase() > b.toLowerCase() ? reversed : 0;
                });
            }
        }
        return inputArr;
    }
}
OrderByPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrderByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
OrderByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: OrderByPipe, name: "orderBy" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrderByPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'orderBy'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class DeLatinizePipe {
    constructor() {
        this.charsToBeReplaced = {
            'Á': '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'
        };
    }
    transform(value) {
        return value.replace(/[^A-Za-z0-9]/g, (substr) => { return this.charsToBeReplaced[substr] || substr; });
    }
}
DeLatinizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeLatinizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
DeLatinizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DeLatinizePipe, name: "deLatinize" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeLatinizePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'deLatinize'
                }]
        }] });

class MaskPipe {
    transform(value, len, direction = 'right') {
        let result = '';
        if (!len || len >= value.length) {
            for (let i = 0; i < value.length; i++) {
                result += 'X';
            }
            return result;
        }
        if (direction === 'right') {
            result = value.slice(0, value.length - len);
            for (let i = 0; i < len; i++) {
                result += 'X';
            }
            return result;
        }
        else {
            result = '';
            for (let i = 0; i < len; i++) {
                result += 'X';
            }
            result += value.slice(len);
            return result;
        }
    }
}
MaskPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
MaskPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MaskPipe, name: "mask" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaskPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'mask'
                }]
        }] });

class NormalizePipe {
    transform(value) {
        return value.replace(/(_|-)/g, ' ')
            .trim()
            .replace(/\w\S*/g, (value) => value.charAt(0).toUpperCase() + value.substr(1))
            .replace(/([a-z])([A-Z])/g, '$1 $2')
            .replace(/([A-Z])([a-z][A-Z])/g, '$1 $2');
    }
}
NormalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NormalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
NormalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NormalizePipe, name: "normalize" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NormalizePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'normalize'
                }]
        }] });

class ConvertToWordPipe {
    constructor() {
        this._unitMap = ['Zero', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten',
            'Eleven', 'Twelve', 'Thirteen', 'Fourteen', 'Fifteen', 'Sixteen', 'Seventeen', 'Eighteen', 'Nineteen'];
        this._unit = [''];
        this._tens = ['', '', 'Twenty', 'Thirty', 'Forty', 'Fifty', 'Sixty', 'Seventy', 'Eighty', 'Ninety'];
        this._others = ['', 'Thousand', 'Million', 'Billion', 'Trillion', 'Quadrillion', 'Quintillion'];
        this._othersIndian = ['Hundred', 'Thousand', 'Lakh', 'Crore', 'Arab', 'Kharab', 'Neel', 'Padma', 'Shankh', 'Mahashankh'];
    }
    transform(value, system = 'USA') {
        this._unitMap.forEach(data => {
            if (data !== 'Zero')
                this._unit.push(data);
        });
        if (value % 1 === 0) {
            return system === 'USA' ? this.convertToWords(value) : this.convertToWordsIndianSystem(value);
        }
        else {
            let result = '';
            let splitNum = value.toString().split('.');
            result += system === 'USA' ? this.convertToWords(+splitNum[0]) : this.convertToWordsIndianSystem(+splitNum[0]);
            result += ' point';
            for (let i = 0; i < splitNum[1].length; i++) {
                result += ' ';
                result += this._unitMap[+splitNum[1].charAt(i)];
            }
            return result;
        }
    }
    convertToWords(num) {
        let _counter = 0;
        let _threshold = num.toString().length;
        let _result = '';
        while (!(3 * _counter >= _threshold)) {
            _counter += 1;
            let str = num.toString().slice(_threshold - (3 * _counter) > 0 ? _threshold - (3 * _counter) : 0, _threshold - (3 * (_counter - 1)));
            if ((str.length === 1 && str == '0')
                || (str.length === 2 && str == '00')
                || (str.length === 3 && str == '000'))
                continue;
            if (_threshold > (3 * _counter)) {
                _result = ' ' + this._others[_counter] + ' ' + this.groupIt(str) + _result;
            }
            else {
                _result = this.groupIt(str) + ' ' + _result;
            }
        }
        return _result;
    }
    ;
    convertToWordsIndianSystem(num) {
        let _counter = 0;
        let _threshold = num.toString().length;
        let _result = '';
        while (!(2 * _counter + 3 >= _threshold)) {
            _counter += 1;
            let str = num.toString().slice(_threshold - (2 * _counter + 3) > 0 ? _threshold - (2 * _counter + 3) : 0, _threshold - (2 * (_counter - 1) + 3));
            if ((str.length === 1 && str == '0') || (str.length === 2 && str == '00'))
                continue;
            _result = this.groupItIndianWay(str) + ' ' + this._othersIndian[_counter] + ' ' + _result;
        }
        _result += _result !== '' ? ' ' : '';
        _result = _result + this.groupIt(num.toString().slice(_threshold - 3 >= 0 ? _threshold - 3 : 0, _threshold));
        return _result;
    }
    ;
    groupIt(range) {
        if (range.length === 1 || (range.length === 2 && +range < 20))
            return this._unit[+range];
        if (range.length === 2 && +range >= 20)
            return this._tens[+range[0]] + ' ' + this._unit[+range[1]];
        let res = '';
        if (range[0] !== '0')
            res = this._unit[+range[0]] + ' Hundred ';
        res += this._tens[+range[1]];
        res += ' ';
        res += this._unit[+range[2]];
        return res;
    }
    groupItIndianWay(range) {
        if (range.length === 1 || (range.length === 2 && +range < 20))
            return this._unit[+range];
        return this._tens[+range[0]] + ' ' + this._unit[+range[1]];
    }
}
ConvertToWordPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConvertToWordPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
ConvertToWordPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ConvertToWordPipe, name: "convertToWord" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConvertToWordPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'convertToWord'
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
class NgCustomPipeModule {
}
NgCustomPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
NgCustomPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeModule, declarations: [NgCustomPipeComponent,
        AbsolutePipe, AndPipe, AveragePipe, ByteConvertToPipe, CapitalizePipe, CeilPipe, ChunkPipe, CombinePipe,
        ConvertToBasePipe, DeLatinizePipe, DropPipe, EmptyPipe, ExceptPipe, FilterOnePipe, FilterPipe, FirstItemPipe, FlatPipe,
        FloorPipe, GroupByPipe, HandleNanPipe, IntegerTypePipe, InterpolatePipe, IsArrayPipe, IsBinaryPipe,
        IsDefinedPipe, IsEqualPipe, IsFunctionPipe, IsIdenticalPipe, IsNilPipe, IsNullPipe, IsNumberPipe, IsObjectPipe,
        IsStringPipe, IsTruthyPipe, IsUndefinedPipe, JoinPipe, KeyArrayPipe, LastItemPipe, LengthPipe, LowerPipe,
        MapPipe, MatchPipe, MaximumPipe, MedianPipe, MinimumPipe, ModePipe, NormaliseObjArrayPipe, OrderByPipe,
        OrdinalPipe, OrPipe, PluckPropertyPipe, PopFirstItemPipe, PopLastItemPipe, PowerPipe, RangePipe,
        RepeatPipe, ReplacePipe, ReverseArrayPipe, ReversePipe, RoundPipe, SetPipe, SlugItPipe, SortPipe, SplitPipe,
        SqrootPipe, StringifyPipe, SumPipe, ToArrayPipe, ToDegreePipe, ToRadianPipe, TrimPipe, TruncatePipe, UpperPipe,
        MaskPipe, NormalizePipe, ConvertToWordPipe], exports: [AbsolutePipe, AndPipe, AveragePipe, ByteConvertToPipe, CapitalizePipe, CeilPipe, ChunkPipe, CombinePipe,
        ConvertToBasePipe, DeLatinizePipe, DropPipe, EmptyPipe, ExceptPipe, FilterOnePipe, FilterPipe, FirstItemPipe, FlatPipe,
        FloorPipe, GroupByPipe, HandleNanPipe, IntegerTypePipe, InterpolatePipe, IsArrayPipe, IsBinaryPipe,
        IsDefinedPipe, IsEqualPipe, IsFunctionPipe, IsIdenticalPipe, IsNilPipe, IsNullPipe, IsNumberPipe, IsObjectPipe,
        IsStringPipe, IsTruthyPipe, IsUndefinedPipe, JoinPipe, KeyArrayPipe, LastItemPipe, LengthPipe, LowerPipe,
        MapPipe, MatchPipe, MaximumPipe, MedianPipe, MinimumPipe, ModePipe, NormaliseObjArrayPipe, OrderByPipe,
        OrdinalPipe, OrPipe, PluckPropertyPipe, PopFirstItemPipe, PopLastItemPipe, PowerPipe, RangePipe,
        RepeatPipe, ReplacePipe, ReverseArrayPipe, ReversePipe, RoundPipe, SetPipe, SlugItPipe, SortPipe, SplitPipe,
        SqrootPipe, StringifyPipe, SumPipe, ToArrayPipe, ToDegreePipe, ToRadianPipe, TrimPipe, TruncatePipe, UpperPipe,
        MaskPipe, NormalizePipe, ConvertToWordPipe] });
NgCustomPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeModule });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NgCustomPipeModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [
                        NgCustomPipeComponent,
                        AbsolutePipe, AndPipe, AveragePipe, ByteConvertToPipe, CapitalizePipe, CeilPipe, ChunkPipe, CombinePipe,
                        ConvertToBasePipe, DeLatinizePipe, DropPipe, EmptyPipe, ExceptPipe, FilterOnePipe, FilterPipe, FirstItemPipe, FlatPipe,
                        FloorPipe, GroupByPipe, HandleNanPipe, IntegerTypePipe, InterpolatePipe, IsArrayPipe, IsBinaryPipe,
                        IsDefinedPipe, IsEqualPipe, IsFunctionPipe, IsIdenticalPipe, IsNilPipe, IsNullPipe, IsNumberPipe, IsObjectPipe,
                        IsStringPipe, IsTruthyPipe, IsUndefinedPipe, JoinPipe, KeyArrayPipe, LastItemPipe, LengthPipe, LowerPipe,
                        MapPipe, MatchPipe, MaximumPipe, MedianPipe, MinimumPipe, ModePipe, NormaliseObjArrayPipe, OrderByPipe,
                        OrdinalPipe, OrPipe, PluckPropertyPipe, PopFirstItemPipe, PopLastItemPipe, PowerPipe, RangePipe,
                        RepeatPipe, ReplacePipe, ReverseArrayPipe, ReversePipe, RoundPipe, SetPipe, SlugItPipe, SortPipe, SplitPipe,
                        SqrootPipe, StringifyPipe, SumPipe, ToArrayPipe, ToDegreePipe, ToRadianPipe, TrimPipe, TruncatePipe, UpperPipe,
                        MaskPipe, NormalizePipe, ConvertToWordPipe
                    ],
                    imports: [],
                    exports: [
                        AbsolutePipe, AndPipe, AveragePipe, ByteConvertToPipe, CapitalizePipe, CeilPipe, ChunkPipe, CombinePipe,
                        ConvertToBasePipe, DeLatinizePipe, DropPipe, EmptyPipe, ExceptPipe, FilterOnePipe, FilterPipe, FirstItemPipe, FlatPipe,
                        FloorPipe, GroupByPipe, HandleNanPipe, IntegerTypePipe, InterpolatePipe, IsArrayPipe, IsBinaryPipe,
                        IsDefinedPipe, IsEqualPipe, IsFunctionPipe, IsIdenticalPipe, IsNilPipe, IsNullPipe, IsNumberPipe, IsObjectPipe,
                        IsStringPipe, IsTruthyPipe, IsUndefinedPipe, JoinPipe, KeyArrayPipe, LastItemPipe, LengthPipe, LowerPipe,
                        MapPipe, MatchPipe, MaximumPipe, MedianPipe, MinimumPipe, ModePipe, NormaliseObjArrayPipe, OrderByPipe,
                        OrdinalPipe, OrPipe, PluckPropertyPipe, PopFirstItemPipe, PopLastItemPipe, PowerPipe, RangePipe,
                        RepeatPipe, ReplacePipe, ReverseArrayPipe, ReversePipe, RoundPipe, SetPipe, SlugItPipe, SortPipe, SplitPipe,
                        SqrootPipe, StringifyPipe, SumPipe, ToArrayPipe, ToDegreePipe, ToRadianPipe, TrimPipe, TruncatePipe, UpperPipe,
                        MaskPipe, NormalizePipe, ConvertToWordPipe
                    ]
                }]
        }] });

/** Copyright 2023 Infosys Ltd. */
/*
 * Public API Surface of ng-custom-pipe
 */

/**
 * Generated bundle index. Do not edit.
 */

export { AbsolutePipe, AndPipe, AveragePipe, ByteConvertToPipe, CapitalizePipe, CeilPipe, ChunkPipe, CombinePipe, ConvertToBasePipe, ConvertToWordPipe, DeLatinizePipe, DropPipe, EmptyPipe, ExceptPipe, FilterOnePipe, FilterPipe, FirstItemPipe, FlatPipe, FloorPipe, GroupByPipe, HandleNanPipe, IntegerTypePipe, InterpolatePipe, IsArrayPipe, IsBinaryPipe, IsDefinedPipe, IsEqualPipe, IsFunctionPipe, IsIdenticalPipe, IsNilPipe, IsNullPipe, IsNumberPipe, IsObjectPipe, IsStringPipe, IsTruthyPipe, IsUndefinedPipe, JoinPipe, KeyArrayPipe, LastItemPipe, LengthPipe, LowerPipe, MapPipe, MaskPipe, MatchPipe, MaximumPipe, MedianPipe, MinimumPipe, ModePipe, NgCustomPipeModule, NgCustomPipeService, NormaliseObjArrayPipe, NormalizePipe, OrPipe, OrderByPipe, OrdinalPipe, PluckPropertyPipe, PopFirstItemPipe, PopLastItemPipe, PowerPipe, RangePipe, RepeatPipe, ReplacePipe, ReverseArrayPipe, ReversePipe, RoundPipe, SetPipe, SlugItPipe, SortPipe, SplitPipe, SqrootPipe, StringifyPipe, SumPipe, ToArrayPipe, ToDegreePipe, ToRadianPipe, TrimPipe, TruncatePipe, UpperPipe };
//# sourceMappingURL=ng-custom-pipe.mjs.map