{"version":3,"file":"igniteui-angular-core.mjs","names":[],"sources":["../../../projects/igniteui-angular/core/src/core/navigation/nav.service.ts","../../../projects/igniteui-angular/core/src/core/navigation/directives.ts","../../../projects/igniteui-angular/core/src/core/dates/dateRange.ts","../../../projects/igniteui-angular/core/src/core/enums.ts","../../../projects/igniteui-angular/core/src/core/utils.ts","../../../projects/igniteui-angular/core/src/core/selection.ts","../../../projects/igniteui-angular/core/src/core/edit-provider.ts","../../../projects/igniteui-angular/core/src/core/touch.ts","../../../projects/igniteui-angular/core/src/core/key-bindings/keys.ts","../../../projects/igniteui-angular/core/src/core/key-bindings/key-bindings.service.ts","../../../projects/igniteui-angular/core/src/core/ng-control-adapter.ts","../../../projects/igniteui-angular/core/src/grid-column-actions/token.ts","../../../projects/igniteui-angular/core/src/date-common/picker-icons.common.ts","../../../projects/igniteui-angular/core/src/date-common/types.ts","../../../projects/igniteui-angular/core/src/date-common/date-parts.ts","../../../projects/igniteui-angular/core/src/data-operations/grid-types.ts","../../../projects/igniteui-angular/core/src/date-common/util/date-time.util.ts","../../../projects/igniteui-angular/core/src/date-common/util/model.ts","../../../projects/igniteui-angular/core/src/date-common/util/helpers.ts","../../../projects/igniteui-angular/core/src/data-operations/data-clone-strategy.ts","../../../projects/igniteui-angular/core/src/data-operations/filtering-expression.interface.ts","../../../projects/igniteui-angular/core/src/data-operations/filtering-condition.ts","../../../projects/igniteui-angular/core/src/data-operations/expressions-tree-util.ts","../../../projects/igniteui-angular/core/src/data-operations/filtering-expressions-tree.ts","../../../projects/igniteui-angular/core/src/data-operations/paging-state.interface.ts","../../../projects/igniteui-angular/core/src/services/transaction/transaction.ts","../../../projects/igniteui-angular/core/src/data-operations/sorting-strategy.ts","../../../projects/igniteui-angular/core/src/data-operations/operations.ts","../../../projects/igniteui-angular/core/src/data-operations/grid-sorting-strategy.ts","../../../projects/igniteui-angular/core/src/data-operations/merge-strategy.ts","../../../projects/igniteui-angular/core/src/data-operations/data-util.ts","../../../projects/igniteui-angular/core/src/data-operations/filtering-strategy.ts","../../../projects/igniteui-angular/core/src/data-operations/tree-grid-filtering-strategy.ts","../../../projects/igniteui-angular/core/src/data-operations/groupby-record.interface.ts","../../../projects/igniteui-angular/core/src/data-operations/grid-summary.ts","../../../projects/igniteui-angular/core/src/core/i18n/formatters/formatter-base.ts","../../../projects/igniteui-angular/core/src/data-operations/pipes.ts","../../../projects/igniteui-angular/core/src/services/animation/angular-animation-player.ts","../../../projects/igniteui-angular/core/src/services/animation/angular-animation-service.ts","../../../projects/igniteui-angular/core/src/services/overlay/utilities.ts","../../../projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/position/base-fit-position-strategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/position/auto-position-strategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/position/global-position-strategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/position/container-position-strategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/position/elastic-position-strategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/scroll/scroll-strategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/scroll/NoOpScrollStrategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/overlay.ts","../../../projects/igniteui-angular/core/src/services/overlay/scroll/absolute-scroll-strategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/scroll/block-scroll-strategy.ts","../../../projects/igniteui-angular/core/src/services/overlay/scroll/close-scroll-strategy.ts","../../../projects/igniteui-angular/core/src/services/transaction/base-transaction.ts","../../../projects/igniteui-angular/core/src/services/transaction/igx-transaction.ts","../../../projects/igniteui-angular/core/src/services/transaction/igx-hierarchical-transaction.ts","../../../projects/igniteui-angular/core/src/services/transaction/transaction-factory.service.ts","../../../projects/igniteui-angular/core/src/services/styles/styles-registrar.service.ts","../../../projects/igniteui-angular/core/src/services/theme/theme.token.ts","../../../projects/igniteui-angular/core/src/core/i18n/resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/formatters/formatter-intl.ts","../../../projects/igniteui-angular/core/src/core/i18n/action-strip-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/banner-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/calendar-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/carousel-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/chip-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/combo-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/date-picker-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/date-range-picker-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/grid-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/input-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/list-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/paginator-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/query-builder-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/time-picker-resources.ts","../../../projects/igniteui-angular/core/src/core/i18n/tree-resources.ts"],"sourcesContent":["import { IToggleView } from './IToggleView';\nimport { Injectable } from '@angular/core';\n\n/**\n * Common service to be injected between components where those implementing common\n * ToggleView interface can register and toggle directives can call their methods.\n * TODO: Track currently active? Events?\n */\n@Injectable({ providedIn: 'root' })\nexport class IgxNavigationService {\n    private navs: { [id: string]: IToggleView };\n\n    constructor() {\n        this.navs = {};\n    }\n\n    public add(id: string, navItem: IToggleView) {\n        this.navs[id] = navItem;\n    }\n\n    public remove(id: string) {\n        delete this.navs[id];\n    }\n\n    public get(id: string): IToggleView {\n        if (id) {\n            return this.navs[id];\n        }\n        return undefined!;\n    }\n\n    public toggle(id: string, ...args: any[]) {\n        if (this.navs[id]) {\n            return this.navs[id].toggle(...args);\n        }\n    }\n    public open(id: string, ...args: any[]) {\n        if (this.navs[id]) {\n            return this.navs[id].open(...args);\n        }\n    }\n    public close(id: string, ...args: any[]) {\n        if (this.navs[id]) {\n            return this.navs[id].close(...args);\n        }\n    }\n}\n","import { Directive, HostListener, Input, inject } from '@angular/core';\nimport { IgxNavigationService } from './nav.service';\n\n/**\n * Directive that can toggle targets through provided NavigationService.\n *\n * Usage:\n * ```\n * <button type=\"button\" igxNavToggle=\"ID\">Toggle</button>\n * ```\n * Where the `ID` matches the ID of compatible `IToggleView` component.\n */\n@Directive({\n    selector: '[igxNavToggle]',\n    standalone: true\n})\nexport class IgxNavigationToggleDirective {\n    /**\n     * The ID of the target registered in the navigation service, which is toggled on click.\n     *\n     * @example\n     * ```html\n     * <button type=\"button\" igxNavToggle=\"navDrawer\">Toggle</button>\n     * ```\n     */\n    @Input('igxNavToggle') public target: any;\n\n    public state: IgxNavigationService;\n\n    constructor() {\n        const nav = inject(IgxNavigationService);\n\n        this.state = nav;\n    }\n\n    @HostListener('click')\n    public toggleNavigationDrawer() {\n        this.state.toggle(this.target, true);\n    }\n}\n\n/**\n * Directive that can close targets through provided NavigationService.\n *\n * Usage:\n * ```\n * <button type=\"button\" igxNavClose=\"ID\">Close</button>\n * ```\n * Where the `ID` matches the ID of compatible `IToggleView` component.\n */\n@Directive({\n    selector: '[igxNavClose]',\n    standalone: true\n})\nexport class IgxNavigationCloseDirective {\n    /**\n     * The ID of the target registered in the navigation service, which is closed on click.\n     *\n     * @example\n     * ```html\n     * <button type=\"button\" igxNavClose=\"navDrawer\">Close</button>\n     * ```\n     */\n    @Input('igxNavClose') public target: any;\n\n    public state: IgxNavigationService;\n\n    constructor() {\n        const nav = inject(IgxNavigationService);\n\n        this.state = nav;\n    }\n\n    @HostListener('click')\n    public closeNavigationDrawer() {\n        this.state.close(this.target, true);\n    }\n}\n","export interface DateRangeDescriptor {\n    type: DateRangeType;\n    dateRange?: Date[];\n}\n\nexport enum DateRangeType {\n    After,\n    Before,\n    Between,\n    Specific,\n    Weekdays,\n    Weekends\n}\n","/**\n * @hidden @internal\n *\n * Enumeration representing the possible predefined size options of the grid.\n * - Small: This is the smallest size with 32px row height. Left and Right paddings are 12px. Minimal column width is 56px.\n * - Medium: This is the middle size with 40px row height. Left and Right paddings are 16px. Minimal column width is 64px.\n * - Large:  this is the default Grid size with the lowest intense and row height equal to 50px. Left and Right paddings are 24px. Minimal column width is 80px.\n */\nexport const Size = {\n    Small: '1',\n    Medium: '2',\n    Large: '3'\n} as const;\nexport type Size = (typeof Size)[keyof typeof Size];\n\n\n/**\n * Enumeration representing the days of the week.\n */\nexport enum WEEKDAYS {\n    SUNDAY,\n    MONDAY,\n    TUESDAY,\n    WEDNESDAY,\n    THURSDAY,\n    FRIDAY,\n    SATURDAY\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport { Injectable, InjectionToken, PLATFORM_ID, inject, afterNextRender, type AfterRenderRef, type Injector } from '@angular/core';\nimport { mergeWith } from 'lodash-es';\nimport { NEVER, Observable } from 'rxjs';\nimport { isDevMode } from '@angular/core';\nimport type { IgxTheme } from '../services/theme/theme.token';\n\n/** @hidden @internal */\nexport const ELEMENTS_TOKEN = /*@__PURE__*/new InjectionToken<boolean>('elements environment');\n\n/** @hidden @internal */\nexport type RenderPhase = 'earlyRead' | 'write' | 'mixedReadWrite' | 'read';\n\ninterface AfterNextRenderSpec {\n    earlyRead?: () => void;\n    write?: () => void;\n    mixedReadWrite?: () => void;\n    read?: () => void;\n}\n\n/**\n * Schedules `callback` to run once after Angular finishes the next render pass.\n *\n * Central scheduling point for all work that previously waited on `NgZone.onStable`,\n * which never emits in zoneless applications. Every deferred render callback in the\n * library goes through here, so if the scheduling needs to change (different phase,\n * timing or API), change it in this single place.\n *\n * @hidden @internal\n */\nexport function runAfterRenderOnce(injector: Injector, callback: () => void, phase: RenderPhase = 'mixedReadWrite'): AfterRenderRef {\n    const spec: AfterNextRenderSpec = {};\n    spec[phase as keyof AfterNextRenderSpec] = callback;\n    return afterNextRender(spec, { injector });\n}\n\n/**\n * Returns true if the element's direction is left-to-right\n *\n * @hidden @internal\n */\nexport function isLeftToRight(element: Element): boolean {\n    return element?.matches(':dir(ltr)') ?? true;\n}\n\n/**\n * @hidden\n */\nexport const showMessage = (message: string, isMessageShown: boolean): boolean => {\n    if (!isMessageShown && isDevMode()) {\n        console.warn(message);\n    }\n\n    return true;\n};\n\n/**\n *\n * @hidden @internal\n */\nexport const getResizeObserver = () => globalThis.window?.ResizeObserver;\n\n/**\n * @hidden\n */\nexport function cloneArray<T>(array: T[], deep = false): T[] {\n    return deep ? (array ?? []).map(cloneValue) : (array ?? []).slice();\n}\n\n/**\n * @hidden\n */\nexport function areEqualArrays<T>(arr1: T[], arr2: T[]): boolean {\n    if (arr1.length !== arr2.length) return false;\n        for (let i = 0; i < arr1.length; i++) {\n          if (arr1[i] !== arr2[i]) return false;\n        }\n        return true;\n}\n\n/**\n * Doesn't clone leaf items\n *\n * @hidden\n */\nexport const cloneHierarchicalArray = (array: any[], childDataKey: any): any[] => {\n    const result: any[] = [];\n    if (!array) {\n        return result;\n    }\n\n    for (const item of array) {\n        const clonedItem = cloneValue(item);\n        if (Array.isArray(item[childDataKey])) {\n            clonedItem[childDataKey] = cloneHierarchicalArray(clonedItem[childDataKey], childDataKey);\n        }\n        result.push(clonedItem);\n    }\n    return result;\n};\n\n/**\n * Creates an object with prototype from provided source and copies\n * all properties descriptors from provided source\n * @param obj Source to copy prototype and descriptors from\n * @returns New object with cloned prototype and property descriptors\n */\nexport const copyDescriptors = (obj: any) => {\n    if (obj) {\n        return Object.create(\n            Object.getPrototypeOf(obj),\n            Object.getOwnPropertyDescriptors(obj)\n        );\n    }\n}\n\n\n/**\n * Deep clones all first level keys of Obj2 and merges them to Obj1\n *\n * @param obj1 Object to merge into\n * @param obj2 Object to merge from\n * @returns Obj1 with merged cloned keys from Obj2\n * @hidden\n */\nexport const mergeObjects = (obj1: any, obj2: any): any => mergeWith(obj1, obj2, (objValue: any, srcValue: any) => {\n    if (Array.isArray(srcValue)) {\n        objValue = srcValue;\n        return objValue;\n    }\n});\n\n/**\n * Creates deep clone of provided value.\n * Supports primitive values, dates and objects.\n * If passed value is array returns shallow copy of the array.\n *\n * @param value value to clone\n * @returns Deep copy of provided value\n * @hidden\n */\nexport const cloneValue = (value: any): any => {\n    if (isDate(value)) {\n        return new Date(value.getTime());\n    }\n    if (Array.isArray(value)) {\n        return value.slice();\n    }\n\n    if (value instanceof Map || value instanceof Set) {\n        return value;\n    }\n\n    if (isObject(value)) {\n        const result: Record<string, any> = {};\n\n        for (const key of Object.keys(value)) {\n            if (key === \"externalObject\") {\n                continue;\n            }\n            result[key] = cloneValue(value[key]);\n        }\n        return result;\n    }\n    return value;\n};\n\n/**\n * Creates deep clone of provided value.\n * Supports primitive values, dates and objects.\n * If passed value is array returns shallow copy of the array.\n * For Objects property values and references are cached and reused.\n * This allows for circular references to same objects.\n *\n * @param value value to clone\n * @param cache map of cached values already parsed\n * @returns Deep copy of provided value\n * @hidden\n */\nexport const cloneValueCached = (value: any, cache: Map<any, any>): any => {\n    if (isDate(value)) {\n        return new Date(value.getTime());\n    }\n    if (Array.isArray(value)) {\n        return [...value];\n    }\n\n    if (value instanceof Map || value instanceof Set) {\n        return value;\n    }\n\n    if (isObject(value)) {\n        if (cache.has(value)) {\n            return cache.get(value);\n        }\n\n        const result: Record<string, any> = {};\n        cache.set(value, result);\n\n        for (const key of Object.keys(value)) {\n            result[key] = cloneValueCached(value[key], cache);\n        }\n        return result;\n    }\n    return value;\n};\n\n/**\n * Parse provided input to Date.\n *\n * @param value input to parse\n * @returns Date if parse succeed or null\n * @hidden\n */\nexport const parseDate = (value: any): Date | null => {\n    // if value is Invalid Date return null\n    if (isDate(value)) {\n        return !isNaN(value.getTime()) ? value : null;\n    }\n    return value ? new Date(value) : null;\n};\n\n/**\n * Returns an array with unique dates only.\n *\n * @param columnValues collection of date values (might be numbers or ISO 8601 strings)\n * @returns collection of unique dates.\n * @hidden\n */\nexport const uniqueDates = (columnValues: any[]) => columnValues.reduce((a, c) => {\n    if (!a.cache[c.label]) {\n        a.result.push(c);\n    }\n    a.cache[c.label] = true;\n    return a;\n}, { result: [], cache: {} }).result;\n\n/**\n * Checks if provided variable is Object\n *\n * @param value Value to check\n * @returns true if provided variable is Object\n * @hidden\n */\nexport const isObject = (value: any): boolean => !!(value && value.toString() === '[object Object]');\n\n/**\n * Checks if provided variable is Date\n *\n * @param value Value to check\n * @returns true if provided variable is Date\n * @hidden\n */\nexport const isDate = (value: any): value is Date => {\n    return Object.prototype.toString.call(value) === \"[object Date]\";\n}\n\n/**\n * Checks if the two passed arguments are equal\n * Currently supports date objects\n *\n * @param obj1\n * @param obj2\n * @returns: `boolean`\n * @hidden\n */\nexport const isEqual = (obj1: any, obj2: any): boolean => {\n    if (isDate(obj1) && isDate(obj2)) {\n        return obj1.getTime() === obj2.getTime();\n    }\n    return obj1 === obj2;\n};\n\n/**\n * Limits a number to a range between a minimum and a maximum value.\n *\n * @param number\n * @param min\n * @param max\n * @returns: `number`\n * @hidden\n */\nexport const clamp = (number: number, min: number, max: number) =>\n    Math.max(min, Math.min(number, max));\n\n\n/**\n * Utility service taking care of various utility functions such as\n * detecting browser features, general cross browser DOM manipulation, etc.\n *\n * @hidden @internal\n */\n@Injectable({ providedIn: 'root' })\nexport class PlatformUtil {\n    private platformId = inject(PLATFORM_ID);\n\n    public isBrowser: boolean = isPlatformBrowser(this.platformId);\n    public isIOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && !('MSStream' in window);\n    public isSafari = this.isBrowser && /Safari[\\/\\s](\\d+\\.\\d+)/.test(navigator.userAgent);\n    public isFirefox = this.isBrowser && /Firefox[\\/\\s](\\d+\\.\\d+)/.test(navigator.userAgent);\n    public isEdge = this.isBrowser && /Edge[\\/\\s](\\d+\\.\\d+)/.test(navigator.userAgent);\n    public isChromium = this.isBrowser && (/Chrom|e?ium/g.test(navigator.userAgent) ||\n        /Google Inc/g.test(navigator.vendor)) && !/Edge/g.test(navigator.userAgent);\n    public browserVersion = this.isBrowser ? parseFloat(navigator.userAgent.match(/Version\\/([\\d.]+)/)?.at(1)!) : 0;\n\n    /** @hidden @internal */\n    public isElements = inject(ELEMENTS_TOKEN, { optional: true });\n\n    public KEYMAP = {\n        ENTER: 'Enter',\n        SPACE: ' ',\n        ESCAPE: 'Escape',\n        ARROW_DOWN: 'ArrowDown',\n        ARROW_UP: 'ArrowUp',\n        ARROW_LEFT: 'ArrowLeft',\n        ARROW_RIGHT: 'ArrowRight',\n        END: 'End',\n        HOME: 'Home',\n        PAGE_DOWN: 'PageDown',\n        PAGE_UP: 'PageUp',\n        F2: 'F2',\n        TAB: 'Tab',\n        SEMICOLON: ';',\n        // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values#editing_keys\n        DELETE: 'Delete',\n        BACKSPACE: 'Backspace',\n        CONTROL: 'Control',\n        X: 'x',\n        Y: 'y',\n        Z: 'z'\n    } as const;\n\n    /**\n     * @hidden @internal\n     * Returns the actual size of the node content, using Range\n     * ```typescript\n     * let range = document.createRange();\n     * let column = this.grid.columnList.filter(c => c.field === 'ID')[0];\n     *\n     * let size = getNodeSizeViaRange(range, column.cells[0].nativeElement);\n     * ```\n     *\n     * @remarks\n     * While measuring, the last parameter (usually the node itself) is laid out at its `max-content` width,\n     * so neither its explicit width nor a stretching parent affects the result.\n     */\n    public getNodeSizeViaRange(range: Range, node: HTMLElement, sizeHoldingNode?: HTMLElement) {\n        let overflow = null;\n        let nodeStyles!: string[];\n\n        if (!this.isFirefox) {\n            overflow = node.style.overflow;\n            // we need that hack - otherwise content won't be measured correctly in IE/Edge\n            node.style.overflow = 'visible';\n        }\n\n        if (sizeHoldingNode) {\n            const style = sizeHoldingNode.style;\n            nodeStyles = [style.width, style.minWidth, style.flexBasis];\n            // not '' - a flex or grid parent may stretch the node\n            style.width = 'max-content';\n            style.minWidth = '';\n            style.flexBasis = '';\n        }\n\n        range.selectNodeContents(node);\n        const scale = node.getBoundingClientRect().width / node.offsetWidth;\n        const width = range.getBoundingClientRect().width / scale;\n\n        if (!this.isFirefox) {\n            // we need that hack - otherwise content won't be measured correctly in IE/Edge\n            node.style.overflow = overflow!;\n        }\n\n        if (sizeHoldingNode) {\n            sizeHoldingNode.style.width = nodeStyles[0];\n            sizeHoldingNode.style.minWidth = nodeStyles[1];\n            sizeHoldingNode.style.flexBasis = nodeStyles[2];\n        }\n\n        return width;\n    }\n\n\n    /**\n     * Returns true if the current keyboard event is an activation key (Enter/Space bar)\n     *\n     * @hidden\n     * @internal\n     *\n     * @memberof PlatformUtil\n     */\n    public isActivationKey(event: KeyboardEvent) {\n        return event.key === this.KEYMAP.ENTER || event.key === this.KEYMAP.SPACE;\n    }\n\n    /**\n     * Returns true if the current keyboard event is a combination that closes the filtering UI of the grid. (Escape/Ctrl+Shift+L)\n     *\n     * @hidden\n     * @internal\n     * @param event\n     * @memberof PlatformUtil\n     */\n    public isFilteringKeyCombo(event: KeyboardEvent) {\n        return event.key === this.KEYMAP.ESCAPE || (event.ctrlKey && event.shiftKey && event.key.toLowerCase() === 'l');\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public isLeftClick(event: PointerEvent | MouseEvent) {\n        return event.button === 0;\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public isNavigationKey(key: string) {\n        return [\n            this.KEYMAP.HOME, this.KEYMAP.END, this.KEYMAP.SPACE,\n            this.KEYMAP.ARROW_DOWN, this.KEYMAP.ARROW_LEFT, this.KEYMAP.ARROW_RIGHT, this.KEYMAP.ARROW_UP\n        ].includes(key as any);\n    }\n}\n\n/**\n * @hidden\n */\nexport const flatten = (arr: any[]) => {\n    let result: any[] = [];\n\n    arr.forEach(el => {\n        result.push(el);\n        if (el.children) {\n            const children = Array.isArray(el.children) ? el.children : el.children.toArray();\n            result = result.concat(flatten(children));\n        }\n    });\n    return result;\n};\n\nexport interface CancelableEventArgs {\n    /* csSuppress */\n    /**\n     * Provides the ability to cancel the event.\n     */\n    cancel: boolean;\n}\n\nexport interface IBaseEventArgs {\n    /**\n     * Provides reference to the owner component.\n     */\n    owner?: any;\n}\n\nexport interface CancelableBrowserEventArgs extends CancelableEventArgs {\n    /* blazorSuppress */\n    /** Browser event */\n    event?: Event;\n}\n\nexport interface IBaseCancelableBrowserEventArgs extends CancelableBrowserEventArgs, IBaseEventArgs { }\n\nexport interface IBaseCancelableEventArgs extends CancelableEventArgs, IBaseEventArgs { }\n\nexport const NAVIGATION_KEYS = new Set([\n    'down',\n    'up',\n    'left',\n    'right',\n    'arrowdown',\n    'arrowup',\n    'arrowleft',\n    'arrowright',\n    'home',\n    'end',\n    'space',\n    'spacebar',\n    ' '\n]);\n\n/** Input types on which Enter has its own activation behavior instead of submitting the form. */\nconst ACTIVATABLE_INPUT_TYPES = new Set(['button', 'submit', 'reset', 'image', 'file', 'color']);\n\n/**\n * @hidden\n * @internal\n *\n * Cancels the implicit submission of the surrounding form, which the browser performs as the default action\n * of an Enter keydown in an `<input>`.\n * Only inputs which have a form owner and no activation behavior of their own are affected.\n */\nexport function preventImplicitSubmission(event: KeyboardEvent): void {\n    const target = event.composedPath()[0];\n    if (event.key === 'Enter' && !event.isComposing && target instanceof HTMLInputElement &&\n        target.form && !ACTIVATABLE_INPUT_TYPES.has(target.type)) {\n        event.preventDefault();\n    }\n}\n\n/**\n * @hidden\n * @internal\n *\n * Creates a new ResizeObserver on `target` and returns it as an Observable.\n * Run the resizeObservable outside angular zone, because it patches the MutationObserver which causes an infinite loop.\n * Related issue: https://github.com/angular/angular/issues/31712\n */\nexport const resizeObservable = (target: HTMLElement): Observable<ResizeObserverEntry[]> => {\n    const resizeObserver = getResizeObserver();\n    // check whether we are on server env or client env\n    if (resizeObserver) {\n        return new Observable((observer) => {\n            const instance = new resizeObserver((entries: ResizeObserverEntry[]) => {\n                observer.next(entries);\n            });\n            instance.observe(target);\n            const unsubscribe = () => instance.disconnect();\n            return unsubscribe;\n        });\n    }\n    // if on a server env return a empty observable that does not complete immediately\n    return NEVER;\n\n}\n\n/**\n * @hidden\n * @internal\n *\n * Compares two maps.\n */\nexport const compareMaps = (map1: Map<any, any>, map2: Map<any, any>): boolean => {\n    if (!map2) {\n        return !map1;\n    }\n    if (map1.size !== map2.size) {\n        return false;\n    }\n    let match = true;\n    const keys = Array.from(map2.keys());\n    for (const key of keys) {\n        if (map1.has(key)) {\n            match = map1.get(key) === map2.get(key);\n        } else {\n            match = false;\n        }\n        if (!match) {\n            break;\n        }\n    }\n    return match;\n};\n\nfunction _isObject(entity: unknown): entity is object {\n    return entity != null && typeof entity === 'object';\n}\n\nexport function columnFieldPath(path?: string): string[] {\n    return path?.split('.') ?? [];\n}\n\n/**\n * Given a property access path in the format `x.y.z` resolves and returns\n * the value of the `z` property in the passed object.\n *\n * @hidden\n * @internal\n */\nexport function resolveNestedPath<T extends object, U>(obj: unknown, pathParts: string[], defaultValue?: U): T | U | undefined {\n    if (!_isObject(obj) || pathParts.length < 1) {\n        return defaultValue;\n    }\n\n    let current = obj;\n\n    for (const key of pathParts) {\n        if (_isObject(current) && key in (current as T)) {\n            current = (current as any)[key];\n        } else {\n            return defaultValue;\n        }\n    }\n\n    return current as T;\n}\n\n/**\n *\n * Given a property access path in the format `x.y.z` and a value\n * this functions builds and returns an object following the access path.\n *\n * @example\n * ```typescript\n * console.log('x.y.z.', 42);\n * >> { x: { y: { z: 42 } } }\n * ```\n *\n * @hidden\n * @internal\n */\nexport const reverseMapper = (path: string, value: any) => {\n    const obj = {};\n    const parts = path?.split('.') ?? [];\n\n    let _prop = parts.shift();\n    let mapping: any;\n\n    // Initial binding for first level bindings\n    (obj as any)[_prop!] = value;\n    mapping = obj;\n\n    parts.forEach(prop => {\n        // Start building the hierarchy\n        mapping[_prop!] = {};\n        // Go down a level\n        mapping = mapping[_prop!];\n        // Bind the value and move the key\n        mapping[prop] = value;\n        _prop = prop;\n    });\n\n    return obj;\n};\n\nexport const isConstructor = (ref: any) => typeof ref === 'function' && Boolean(ref.prototype) && Boolean(ref.prototype.constructor);\n\n/** Converts pixel values to their rem counterparts for a base value */\nexport const rem = (value: number | string) => {\n    const base = parseFloat(globalThis.window?.getComputedStyle(globalThis.document?.documentElement).getPropertyValue('--ig-base-font-size'))\n    return Number(value) / base;\n}\n\n/** Get the size of the component as derived from the CSS size variable */\nexport function getComponentSize(el: Element) {\n    return globalThis.window?.getComputedStyle(el).getPropertyValue('--component-size');\n}\n\n/** Get the first item in an array */\nexport function first<T>(arr: T[]) {\n    return arr.at(0) as T;\n}\n\n/** Get the last item in an array */\nexport function last<T>(arr: T[]) {\n    return arr.at(-1) as T;\n}\n\n/** Calculates the modulo of two numbers, ensuring a non-negative result. */\nexport function modulo(n: number, d: number) {\n    return ((n % d) + d) % d;\n}\n\n/**\n * Splits an array into chunks of length `size` and returns a generator\n * yielding each chunk.\n * The last chunk may contain less than `size` elements.\n *\n * @example\n * ```typescript\n * const arr = [0,1,2,3,4,5,6,7,8,9];\n *\n * Array.from(chunk(arr, 2)) // [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]\n * Array.from(chunk(arr, 3)) // [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9]]\n * Array.from(chunk([], 3)) // []\n * Array.from(chunk(arr, -3)) // Error\n * ```\n */\nexport function* intoChunks<T>(arr: T[], size: number) {\n    if (size < 1) {\n        throw new Error('size must be an integer >= 1');\n    }\n    for (let i = 0; i < arr.length; i += size) {\n        yield arr.slice(i, i + size);\n    }\n}\n\n/**\n * @param size\n * @returns string that represents the --component-size default value\n */\nexport function getComponentCssSizeVar(size: string) {\n    switch (size) {\n        case \"1\":\n            return 'var(--ig-size, var(--ig-size-small))';\n        case \"2\":\n            return 'var(--ig-size, var(--ig-size-medium))';\n        default:\n            return 'var(--ig-size, var(--ig-size-large))';\n    }\n}\n\n/**\n * @param path - The URI path to be normalized.\n * @returns string encoded using the encodeURI function.\n */\nexport function normalizeURI(path: string) {\n    return path?.split('/').map(encodeURI).join('/');\n}\n\n/**\n * Reads the theme that is actually in effect at a given DOM position, based on the\n * live `--ig-theme` custom property (see `themes/_scoping.scss`'s `themed()` mixin,\n * the single source of truth for coupling emitted CSS to the runtime theme signal).\n * `--ig-theme` inherits, so this reflects the nearest CSS-scoped `theme(...)` call\n * (if any), not necessarily the app's root/global theme.\n *\n * @param el - The element to read the effective theme for.\n */\nexport function getComponentTheme(el: Element) {\n    return globalThis.window\n        ?.getComputedStyle(el)\n        .getPropertyValue('--ig-theme')\n        .trim() as IgxTheme;\n}\n\n/**\n * Collection re-created w/ the built in track by identity will always log\n * warning even for valid cases of recalculating all collection items.\n * See https://github.com/angular/angular/blob/55581b4181639568fb496e91055142a1b489e988/packages/core/src/render3/instructions/control_flow.ts#L393-L409\n * Current solution explicit track function doing the same as suggested in:\n * https://github.com/angular/angular/issues/56471#issuecomment-2180315803\n * This should be used with moderation and when necessary.\n * @internal\n */\nexport function trackByIdentity<T>(item: T): T {\n    return item;\n}\n","import { Injectable } from '@angular/core';\n\n/** @hidden */\n@Injectable({\n    providedIn: 'root',\n})\nexport class IgxSelectionAPIService {\n    /**\n     * If primaryKey is defined, then multiple selection is based on the primaryKey, and it is array of numbers, strings, etc.\n     * If the primaryKey is omitted, then selection is based on the item data\n     */\n    protected selection: Map<string,  Set<any>> = new Map<string, Set<any>>();\n\n    /**\n     * Get current component selection.\n     *\n     * @param componentID ID of the component.\n     */\n    public get(componentID: string): Set<any> {\n        return this.selection.get(componentID)!;\n    }\n\n    /**\n     * Set new component selection.\n     *\n     * @param componentID ID of the component.\n     * @param newSelection The new component selection to be set.\n     */\n    public set(componentID: string, newSelection: Set<any>) {\n        if (!componentID) {\n            throw Error('Invalid value for component id!');\n        }\n        this.selection.set(componentID, newSelection);\n    }\n\n    /**\n     * Clears selection for component.\n     *\n     * @param componentID ID of the component.\n     */\n    public clear(componentID: string) {\n        this.selection.set(componentID, this.get_empty());\n    }\n\n    /**\n     * Removes selection for a component.\n     * @param componentID\n     */\n      public delete(componentID: string) {\n        this.selection.delete(componentID);\n    }\n\n    /**\n     * Get current component selection length.\n     *\n     * @param componentID ID of the component.\n     */\n    public size(componentID: string): number {\n        const sel = this.get(componentID);\n        return sel ? sel.size : 0;\n    }\n\n    /**\n     * Creates new selection that consist of the new item added to the current component selection.\n     * The returned collection is new Set,\n     * therefore if you want to update component selection you need to call in addition the set_selection() method\n     * or instead use the select_item() one.\n     *\n     * @param componentID ID of the component, which we add new item to.\n     * @param itemID ID of the item to add to component selection.\n     * @param sel Used internally only by the selection (add_items method) to accumulate selection for multiple items.\n     *\n     * @returns Selection after the new item is added.\n     */\n    public add_item(componentID: string, itemID: any, sel?: Set<any>): Set<any> {\n        if (!sel) {\n            sel = new Set(this.get(componentID));\n        }\n        if (sel === undefined) {\n            sel = this.get_empty();\n        }\n        sel.add(itemID);\n        return sel;\n    }\n\n    /**\n     * Creates new selection that consist of the new items added to the current component selection.\n     * The returned collection is new Set,\n     * therefore if you want to update component selection you need to call in addition the set_selection() method\n     * or instead use the select_items() one.\n     *\n     * @param componentID ID of the component, which we add new items to.\n     * @param itemIDs Array of IDs of the items to add to component selection.\n     * @param clearSelection If true it will clear previous selection.\n     *\n     * @returns Selection after the new items are added.\n     */\n    public add_items(componentID: string, itemIDs: any[], clearSelection?: boolean): Set<any> {\n        let selection!: Set<any>;\n        if (clearSelection) {\n            selection = this.get_empty();\n        } else if (itemIDs && itemIDs.length === 0) {\n            selection = new Set(this.get(componentID));\n        }\n        itemIDs.forEach((item) => selection = this.add_item(componentID, item, selection));\n        return selection;\n    }\n\n    /**\n     * Add item to the current component selection.\n     *\n     * @param componentID ID of the component, which we add new item to.\n     * @param itemID ID of the item to add to component selection.\n     * @param sel Used internally only by the selection (select_items method) to accumulate selection for multiple items.\n     */\n    public select_item(componentID: string, itemID: any, sel?: Set<any>) {\n        this.set(componentID, this.add_item(componentID, itemID, sel));\n    }\n\n    /**\n     * Add items to the current component selection.\n     *\n     * @param componentID ID of the component, which we add new items to.\n     * @param itemIDs Array of IDs of the items to add to component selection.\n     * @param clearSelection If true it will clear previous selection.\n     */\n    public select_items(componentID: string, itemID: any[], clearSelection?: boolean) {\n        this.set(componentID, this.add_items(componentID, itemID, clearSelection));\n    }\n\n    /**\n     * Creates new selection that consist of the new items excluded from the current component selection.\n     * The returned collection is new Set,\n     * therefore if you want to update component selection you need to call in addition the set_selection() method\n     * or instead use the deselect_item() one.\n     *\n     * @param componentID ID of the component, which we remove items from.\n     * @param itemID ID of the item to remove from component selection.\n     * @param sel Used internally only by the selection (delete_items method) to accumulate deselected items.\n     *\n     * @returns Selection after the item is removed.\n     */\n    public delete_item(componentID: string, itemID: any, sel?: Set<any>) {\n        if (!sel) {\n            sel = new Set(this.get(componentID));\n        }\n        if (sel === undefined) {\n            return;\n        }\n        sel.delete(itemID);\n        return sel;\n    }\n\n    /**\n     * Creates new selection that consist of the new items removed to the current component selection.\n     * The returned collection is new Set,\n     * therefore if you want to update component selection you need to call in addition the set_selection() method\n     * or instead use the deselect_items() one.\n     *\n     * @param componentID ID of the component, which we remove items from.\n     * @param itemID ID of the items to remove from component selection.\n     *\n     * @returns Selection after the items are removed.\n     */\n    public delete_items(componentID: string, itemIDs: any[]): Set<any> {\n        let selection!: Set<any>;\n        itemIDs.forEach((deselectedItem) => selection = this.delete_item(componentID, deselectedItem, selection)!);\n        return selection;\n    }\n\n    /**\n     * Remove item from the current component selection.\n     *\n     * @param componentID ID of the component, which we remove item from.\n     * @param itemID ID of the item to remove from component selection.\n     * @param sel Used internally only by the selection (deselect_items method) to accumulate selection for multiple items.\n     */\n    public deselect_item(componentID: string, itemID: any, sel?: Set<any>) {\n        this.set(componentID, this.delete_item(componentID, itemID, sel)!);\n    }\n\n    /**\n     * Remove items to the current component selection.\n     *\n     * @param componentID ID of the component, which we add new items to.\n     * @param itemIDs Array of IDs of the items to add to component selection.\n     */\n    public deselect_items(componentID: string, itemID: any[], _clearSelection?: boolean) {\n        this.set(componentID, this.delete_items(componentID, itemID));\n    }\n\n    /**\n     * Check if the item is selected in the component selection.\n     *\n     * @param componentID ID of the component.\n     * @param itemID ID of the item to search.\n     *\n     * @returns If item is selected.\n     */\n    public is_item_selected(componentID: string, itemID: any): boolean {\n        const sel = this.get(componentID);\n        if (!sel) {\n            return false;\n        }\n        return sel.has(itemID);\n    }\n\n    /**\n     * Get first element in the selection.\n     * This is correct when we have only one item in the collection (for single selection purposes)\n     * and the method returns that item.\n     *\n     * @param componentID ID of the component.\n     *\n     * @returns First element in the set.\n     */\n    public first_item(componentID: string) {\n        const sel = this.get(componentID);\n        if (sel && sel.size > 0) {\n            return sel.values().next().value;\n       }\n    }\n\n    /**\n     * Returns whether all items are selected.\n     *\n     * @param componentID ID of the component.\n     * @param dataCount: number Number of items in the data.\n     *\n     * @returns If all items are selected.\n     */\n    public are_all_selected(componentID: string, dataCount: number): boolean {\n        return dataCount > 0 && dataCount === this.size(componentID);\n    }\n\n    /**\n     * Returns whether any of the items is selected.\n     *\n     * @param componentID ID of the component.\n     * @param data Entire data array.\n     *\n     * @returns If there is any item selected.\n     */\n    public are_none_selected(componentID: string): boolean {\n        return this.size(componentID) === 0;\n    }\n\n    /**\n     * Get all primary key values from a data array. If there isn't a primary key defined that the entire data is returned instead.\n     *\n     * @param data Entire data array.\n     * @param primaryKey Data primary key.\n     *\n     * @returns Array of identifiers, either primary key values or the entire data array.\n     */\n    public get_all_ids(data: any, primaryKey?: any) {\n        // If primaryKey is 0, this should still map to the property\n        return primaryKey !== undefined && primaryKey !== null ? data.map((x: any) => x[primaryKey]) : data;\n    }\n\n    /**\n     * Returns empty selection collection.\n     *\n     * @returns empty set.\n     */\n    public get_empty() {\n        return new Set();\n    }\n}\n","import { InjectionToken } from \"@angular/core\";\n\n/**\n * Used for editor control components\n *\n * @hidden\n */\nexport interface EditorProvider {\n    /** Return the focusable native element */\n    getEditElement(): HTMLElement;\n}\n\n/**\n * Injection token is used to inject the EditorProvider token into components\n *\n * @hidden @internal\n */\nexport const EDITOR_PROVIDER = new InjectionToken<EditorProvider>('EditorProvider');\n","import { NgZone } from '@angular/core';\n\n/**\n * Normalized gesture event emitted by {@link IgxTouchManager}.\n *\n * It intentionally mirrors the small subset of the previous Hammer.js input shape\n * (`deltaX`, `deltaY`, `center`, `distance`, `pointerType`) so existing gesture\n * handlers can consume it without changes.\n *\n * @hidden\n * @internal\n */\nexport interface IgxGestureEvent {\n    /** The type of the pointer that produced the gesture (e.g. `touch`, `pen`, `mouse`). */\n    pointerType: string;\n    /** Horizontal distance (in px) from the gesture origin to the current pointer position. */\n    deltaX: number;\n    /** Vertical distance (in px) from the gesture origin to the current pointer position. */\n    deltaY: number;\n    /** Euclidean distance (in px) from the gesture origin to the current pointer position. */\n    distance: number;\n    /** Gesture velocity in px/ms, measured from the gesture origin to the current pointer position. */\n    velocity: number;\n    /** Current pointer position. */\n    center: { x: number; y: number };\n    /** The original event target. */\n    target: EventTarget | null;\n    /** The underlying native pointer event. */\n    originalEvent: PointerEvent;\n    /** Prevents the default action of the underlying native pointer event. */\n    preventDefault: () => void;\n    /**\n     * Resets the gesture origin to the current pointer position so that subsequent\n     * `deltaX`/`deltaY`/`distance` values are measured relative to it.\n     */\n    resetOrigin: () => void;\n}\n\n/**\n * Callbacks invoked by {@link IgxTouchManager} for the recognized gestures.\n *\n * @hidden\n * @internal\n */\nexport interface IgxTouchManagerCallbacks {\n    /**\n     * Fired on pointer down once the pointer type passes the configured filter, before any movement.\n     *\n     * Return `false` to veto the gesture (e.g. when the touch does not start in an active zone).\n     * The manager then stops tracking immediately and best-effort releases the pointer capture, so\n     * normal page/component scrolling is not blocked by the `touchmove` listener.\n     */\n    pointerDown?: (event: IgxGestureEvent) => boolean | void;\n    /** Fired on the first pointer move of a tracked gesture, once movement begins (mirrors Hammer's `panstart`). */\n    panStart?: (event: IgxGestureEvent) => void;\n    /** Fired on each pointer move while a gesture is tracked. */\n    panMove?: (event: IgxGestureEvent) => void;\n    /** Fired on pointer up at the end of a tracked gesture. */\n    panEnd?: (event: IgxGestureEvent) => void;\n    /** Fired on pointer cancel for a tracked gesture. */\n    panCancel?: (event: IgxGestureEvent) => void;\n    /** Fired on pointer up when the movement stays below `tapThreshold`. Suppresses `panEnd`. */\n    tap?: (event: IgxGestureEvent) => void;\n    /** Fired on pointer up for a fast, primarily horizontal recognized pan, before `panEnd`. */\n    swipe?: (event: IgxGestureEvent) => void;\n}\n\n/**\n * Options controlling how {@link IgxTouchManager} recognizes gestures.\n *\n * @hidden\n * @internal\n */\nexport interface IgxTouchManagerOptions {\n    /** Pointer types to handle. Defaults to `['touch', 'pen']` (mouse excluded). */\n    pointerTypes?: string[];\n    /** Whether to capture the pointer on the target during a gesture. Defaults to `true`. */\n    setPointerCapture?: boolean;\n    /** Maximum movement (in px) for a pointer up to be recognized as a tap. Defaults to `0` (disabled). */\n    tapThreshold?: number;\n    /** Minimum movement (in px) before a pan starts. Defaults to `0`. */\n    panThreshold?: number;\n    /** Axis on which movement can start a pan. Defaults to `'all'`. */\n    panAxis?: 'all' | 'horizontal' | 'vertical';\n    /** Minimum velocity (in px/ms) for a primarily horizontal gesture to be recognized as a swipe. Defaults to `0.3`. */\n    swipeVelocityThreshold?: number;\n    /**\n     * Predicate evaluated on pointer down. When it returns `false` the gesture is not tracked at all,\n     * so no pointer capture is taken and the native scrolling of the page is not prevented.\n     * Defaults to always tracking.\n     */\n    canStart?: (event: PointerEvent) => boolean;\n    /**\n     * When provided, the listeners are attached outside of the Angular zone so that the high frequency\n     * `panMove` callback does not trigger change detection. The remaining callbacks are still invoked\n     * inside the Angular zone.\n     */\n    ngZone?: NgZone;\n}\n\n/**\n * Lightweight, zoneless pointer-based gesture manager.\n *\n * Consolidates the pan/swipe/tap recognition logic shared across components\n * (carousel, navigation drawer, list item, time picker) on top of native\n * Pointer Events. It does not require `NgZone`; consumers update their own\n * state inside the provided callbacks. An `NgZone` can optionally be supplied so\n * that the listeners are attached outside of Angular and only the discrete\n * callbacks re-enter it, keeping continuous dragging free of change detection.\n *\n * Outside of a browser environment (e.g. during server-side rendering) it is a\n * noop: no listeners are attached and no callbacks are invoked, so consumers can\n * construct it unconditionally without additional platform guards.\n *\n * @hidden\n * @internal\n *\n * @example\n * ```ts\n * this._gestures = new IgxTouchManager(this.element.nativeElement, {\n *     panMove: (e) => this.pan(e),\n *     panEnd: (e) => this.onPanEnd(e),\n *     tap: (e) => this.onTap(e)\n * }, { tapThreshold: 5 });\n * // ...\n * this._gestures.destroy();\n * ```\n */\nexport class IgxTouchManager {\n    private _startX = 0;\n    private _startY = 0;\n    private _startTime = 0;\n    private _tracking = false;\n    private _panStarted = false;\n    private _pointerId: number | null = null;\n    private _startTarget: EventTarget | null = null;\n    private readonly _supported: boolean;\n    private readonly _pointerTypes: string[];\n    private readonly _setPointerCapture: boolean;\n    private readonly _tapThreshold: number;\n    private readonly _panThreshold: number;\n    private readonly _panAxis: 'all' | 'horizontal' | 'vertical';\n    private readonly _swipeVelocityThreshold: number;\n    private readonly _canStart: ((event: PointerEvent) => boolean) | null;\n    private readonly _ngZone: NgZone | null;\n\n    constructor(\n        private target: EventTarget,\n        private callbacks: IgxTouchManagerCallbacks,\n        options: IgxTouchManagerOptions = {}\n    ) {\n        this._pointerTypes = options.pointerTypes ?? ['touch', 'pen'];\n        this._setPointerCapture = options.setPointerCapture ?? true;\n        this._tapThreshold = options.tapThreshold ?? 0;\n        this._panThreshold = options.panThreshold ?? 0;\n        this._panAxis = options.panAxis ?? 'all';\n        this._swipeVelocityThreshold = options.swipeVelocityThreshold ?? 0.3;\n        this._canStart = options.canStart ?? null;\n        this._ngZone = options.ngZone ?? null;\n\n        // Behave as a noop outside of a browser (e.g. during server-side rendering),\n        // mirroring the previous Hammer.js-based manager. Angular's platform-server\n        // does not define a global `window`, so pointer events can never occur there\n        // and attaching listeners would only add dead weight (or fail on partial DOMs).\n        this._supported = typeof window !== 'undefined'\n            && !!target\n            && typeof (target as EventTarget).addEventListener === 'function';\n        if (!this._supported) {\n            return;\n        }\n\n        this._runOutsideAngular(() => {\n            this.target.addEventListener('pointerdown', this._onPointerDown);\n            this.target.addEventListener('pointermove', this._onPointerMove);\n            this.target.addEventListener('pointerup', this._onPointerUp);\n            this.target.addEventListener('pointercancel', this._onPointerCancel);\n            // prevents the default scrolling behavior on touch devices while a gesture is tracked\n            // necessary on edge pans detected on the body as the browsers cancel the pointer events\n            // and trigger a scroll / rubber band effect instead of the pan\n            this.target.addEventListener('touchmove', this._onTouchMove, { passive: false });\n        });\n    }\n\n    /** Detaches all listeners and stops tracking. */\n    public destroy(): void {\n        if (this._supported) {\n            this.target.removeEventListener('pointerdown', this._onPointerDown);\n            this.target.removeEventListener('pointermove', this._onPointerMove);\n            this.target.removeEventListener('pointerup', this._onPointerUp);\n            this.target.removeEventListener('pointercancel', this._onPointerCancel);\n            this.target.removeEventListener('touchmove', this._onTouchMove);\n        }\n        this._resetTracking();\n    }\n\n    private _accepts(pointerType: string): boolean {\n        return this._pointerTypes.includes(pointerType);\n    }\n\n    private _runOutsideAngular(fn: () => void): void {\n        if (this._ngZone) {\n            this._ngZone.runOutsideAngular(fn);\n        } else {\n            fn();\n        }\n    }\n\n    /** Invokes a discrete (low frequency) callback back inside the Angular zone, when one is provided. */\n    private _runInAngular(fn: () => void): void {\n        if (this._ngZone) {\n            this._ngZone.run(fn);\n        } else {\n            fn();\n        }\n    }\n\n    private _createEvent(event: PointerEvent): IgxGestureEvent {\n        const deltaX = event.clientX - this._startX;\n        const deltaY = event.clientY - this._startY;\n        const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n        const elapsed = Date.now() - this._startTime;\n        const velocity = elapsed > 0 ? distance / elapsed : 0;\n\n        return {\n            pointerType: event.pointerType,\n            deltaX,\n            deltaY,\n            distance,\n            velocity,\n            center: { x: event.clientX, y: event.clientY },\n            // Report the element the gesture started on. Pointer capture retargets\n            // subsequent pointer events to the captured host, so `event.target` would\n            // otherwise no longer reflect the pressed element (e.g. for taps).\n            target: this._startTarget ?? event.target,\n            originalEvent: event,\n            preventDefault: () => event.preventDefault(),\n            resetOrigin: () => {\n                this._startX = event.clientX;\n                this._startY = event.clientY;\n                this._startTime = Date.now();\n            }\n        };\n    }\n\n    private _onPointerDown = (event: Event) => {\n        if (!(event instanceof PointerEvent)) {\n            return;\n        }\n        if (this._tracking || !this._accepts(event.pointerType) || this._canStart?.(event) === false) {\n            return;\n        }\n        this._startX = event.clientX;\n        this._startY = event.clientY;\n        this._startTime = Date.now();\n        this._startTarget = event.target;\n        this._tracking = true;\n        this._panStarted = false;\n        this._pointerId = event.pointerId;\n\n        if (this._setPointerCapture && typeof (this.target as Element).setPointerCapture === 'function') {\n            try {\n                (this.target as Element).setPointerCapture(event.pointerId);\n            } catch {\n                // `setPointerCapture` can throw a `NotFoundError` when the pointer is no longer active\n                // (e.g. for synthetic events). Capturing is a best-effort enhancement, so ignore it.\n            }\n        }\n\n        // Let the consumer veto the gesture (e.g. the touch did not start in an active\n        // zone). Returning `false` stops tracking immediately so the `touchmove` listener\n        // does not block normal scrolling and other gestures are not interfered with.\n        if (this.callbacks.pointerDown) {\n            const gesture = this._createEvent(event);\n            this._runInAngular(() => {\n                if (this.callbacks.pointerDown?.(gesture) === false) {\n                    this._stopTracking(event.pointerId);\n                }\n            });\n        }\n    };\n\n    private _onPointerMove = (event: Event) => {\n        if (!(event instanceof PointerEvent)) {\n            return;\n        }\n        if (!this._tracking || event.pointerId !== this._pointerId || !this._accepts(event.pointerType)) {\n            return;\n        }\n        const gesture = this._createEvent(event);\n        if (!this._panStarted) {\n            if (!this._canStartPan(gesture)) {\n                return;\n            }\n            this._panStarted = true;\n            if (this.callbacks.panStart) {\n                this._runInAngular(() => this.callbacks.panStart?.(gesture));\n            }\n        }\n        // `panMove` is intentionally invoked outside of the Angular zone (when one is provided)\n        // as it fires for every pointer move and running change detection for each of them\n        // makes continuous dragging lag behind the pointer.\n        this.callbacks.panMove?.(gesture);\n    };\n\n    private _onPointerUp = (event: Event) => {\n        if (!(event instanceof PointerEvent)) {\n            return;\n        }\n        if (!this._tracking || event.pointerId !== this._pointerId || !this._accepts(event.pointerType)) {\n            return;\n        }\n        const gesture = this._createEvent(event);\n        const panStarted = this._panStarted;\n        this._resetTracking();\n\n        this._runInAngular(() => {\n            if (this.callbacks.tap && gesture.distance < this._tapThreshold) {\n                this.callbacks.tap(gesture);\n                return;\n            }\n\n            if (panStarted && this.callbacks.swipe &&\n                gesture.velocity > this._swipeVelocityThreshold &&\n                Math.abs(gesture.deltaX) > Math.abs(gesture.deltaY)) {\n                this.callbacks.swipe(gesture);\n            }\n\n            this.callbacks.panEnd?.(gesture);\n        });\n    };\n\n    private _onPointerCancel = (event: Event) => {\n        if (!(event instanceof PointerEvent)) {\n            return;\n        }\n        if (!this._tracking || event.pointerId !== this._pointerId) {\n            return;\n        }\n        const gesture = this._createEvent(event);\n        this._resetTracking();\n        if (this.callbacks.panCancel) {\n            this._runInAngular(() => this.callbacks.panCancel?.(gesture));\n        }\n    };\n\n    private _onTouchMove = (event: Event) => {\n        if (!(event instanceof TouchEvent)) {\n            return;\n        }\n        // Preserve native scrolling and compatibility clicks while the contact is\n        // only a tap candidate. Suppress scrolling after a pan is recognized.\n        if (this._tracking && this._panStarted && event.cancelable) {\n            event.preventDefault();\n        }\n    };\n\n    private _canStartPan(event: IgxGestureEvent): boolean {\n        if (event.distance < this._panThreshold) {\n            return false;\n        }\n\n        if (this._panAxis === 'horizontal') {\n            return Math.abs(event.deltaX) > Math.abs(event.deltaY);\n        }\n\n        if (this._panAxis === 'vertical') {\n            return Math.abs(event.deltaY) > Math.abs(event.deltaX);\n        }\n\n        return true;\n    }\n\n    private _stopTracking(pointerId: number): void {\n        this._resetTracking();\n\n        if (this._setPointerCapture && typeof (this.target as Element).releasePointerCapture === 'function') {\n            try {\n                (this.target as Element).releasePointerCapture(pointerId);\n            } catch {\n                // Pointer capture is best-effort and may already have been released.\n            }\n        }\n    }\n\n    private _resetTracking(): void {\n        this._tracking = false;\n        this._panStarted = false;\n        this._pointerId = null;\n        this._startTarget = null;\n    }\n}\n","/**\n * The key names, and the case-insensitive key check.\n *\n * @remarks\n * The module has no imports, so a consumer of a key name depends on nothing\n * else. The names are `KeyboardEvent.key` values.\n */\n\n/** @hidden @internal */\nexport const arrowLeft = 'ArrowLeft' as const;\n/** @hidden @internal */\nexport const arrowRight = 'ArrowRight' as const;\n/** @hidden @internal */\nexport const arrowUp = 'ArrowUp' as const;\n/** @hidden @internal */\nexport const arrowDown = 'ArrowDown' as const;\n/** @hidden @internal */\nexport const enterKey = 'Enter' as const;\n/** @hidden @internal */\nexport const spaceBar = ' ' as const;\n/** @hidden @internal */\nexport const escapeKey = 'Escape' as const;\n/** @hidden @internal */\nexport const homeKey = 'Home' as const;\n/** @hidden @internal */\nexport const endKey = 'End' as const;\n/** @hidden @internal */\nexport const pageUpKey = 'PageUp' as const;\n/** @hidden @internal */\nexport const pageDownKey = 'PageDown' as const;\n/** @hidden @internal */\nexport const tabKey = 'Tab' as const;\n/** @hidden @internal */\nexport const deleteKey = 'Delete' as const;\n/** @hidden @internal */\nexport const backspaceKey = 'Backspace' as const;\n\n/** @hidden @internal */\nexport const altKey = 'Alt' as const;\n/** @hidden @internal */\nexport const ctrlKey = 'Control' as const;\n/** @hidden @internal */\nexport const metaKey = 'Meta' as const;\n/** @hidden @internal */\nexport const shiftKey = 'Shift' as const;\n\n/**\n * Whether the key of the event matches `key`, without regard to case.\n *\n * @remarks\n * Prefer it over a direct comparison with `event.key`. A caller can hold a\n * normalized lowercase name, while an event carries the canonical case.\n */\nexport function isKey(event: KeyboardEvent, key: string): boolean {\n    return event.key?.toLowerCase() === key.toLowerCase();\n}\n","import {\n    ChangeDetectorRef,\n    DestroyRef,\n    DOCUMENT,\n    ElementRef,\n    Injectable,\n    NgZone,\n    PLATFORM_ID,\n    inject,\n    isDevMode\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { enterKey, spaceBar } from './keys';\n\n//#region Modifiers and combination keys\n\n/**\n * Each modifier and the `KeyboardEvent` property it reads. A combination key\n * keeps this alphabetical order.\n */\nconst MODIFIER_ENTRIES = [\n    ['alt', 'altKey'],\n    ['control', 'ctrlKey'],\n    ['meta', 'metaKey'],\n    ['shift', 'shiftKey']\n] as const satisfies ReadonlyArray<readonly [string, keyof KeyboardEvent]>;\n\nconst MODIFIER_NAMES: readonly string[] = MODIFIER_ENTRIES.map(([name]) => name);\nconst MODIFIERS = new Set<string>(MODIFIER_NAMES);\n\n/** Splits the keys into modifiers and normal keys, in lower case. */\nfunction parseKeys(input: string | string[]): { keys: string[]; modifiers: string[] } {\n    const keys: string[] = [];\n    const modifiers: string[] = [];\n\n    for (const key of Array.isArray(input) ? input : [input]) {\n        const name = key.toLowerCase();\n        (MODIFIERS.has(name) ? modifiers : keys).push(name);\n    }\n\n    return { keys, modifiers };\n}\n\n/** Sorts `modifiers` alphabetically. */\nfunction sortModifiers(modifiers: string[]): string[] {\n    return MODIFIER_NAMES.filter((name) => modifiers.includes(name));\n}\n\n/**\n * Returns the modifiers active for `event`, already sorted. A modifier is not\n * flagged on its own keyup, so `released` adds it.\n */\nfunction getActiveModifiers(event: KeyboardEvent, released?: string): string[] {\n    return MODIFIER_ENTRIES\n        .filter(([name, property]) => event[property] || name === released)\n        .map(([name]) => name);\n}\n\nfunction hasModifiers(event: KeyboardEvent): boolean {\n    return event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;\n}\n\n/**\n * Joins keys and modifiers into a `+` separated combination key, sorted\n * alphabetically. `modifiers` must already be sorted.\n */\nfunction createCombinationKey(keys: string[], modifiers: string[]): string {\n    return modifiers.concat(keys.length > 1 ? [...keys].sort() : keys).join('+');\n}\n\n//#endregion\n\n//#region Types\n\n/**\n * The handler of a key binding.\n *\n * @hidden @internal\n */\nexport type IgxKeyBindingHandler = (event: KeyboardEvent) => void;\n\n/**\n * Whether the service must ignore the event. `target` is the event target.\n *\n * @hidden @internal\n */\nexport type IgxKeyBindingSkipCallback = (target: Element, event: KeyboardEvent) => boolean;\n\n/**\n * The event type that runs the bound handler.\n *\n * @hidden @internal\n */\nexport type IgxKeyBindingTrigger = 'keydown' | 'keyup';\n\n/**\n * The options of a single key binding.\n *\n * @hidden @internal\n */\nexport interface IgxKeyBindingOptions {\n    /** The event types that run the handler. Defaults to `['keydown']`. */\n    triggers?: IgxKeyBindingTrigger[];\n    /**\n     * Whether the handler runs for a repeated keydown. Defaults to `false`.\n     */\n    repeat?: boolean;\n    /** Whether to call `preventDefault` before the handler runs. Defaults to `true`. */\n    preventDefault?: boolean;\n    /** Whether to call `stopPropagation` before the handler runs. Defaults to `false`. */\n    stopPropagation?: boolean;\n}\n\n/**\n * The configuration of an {@link IgxKeyBindingsService}.\n *\n * @hidden @internal\n */\nexport interface IgxKeyBindingsConfig {\n    /**\n     * The key presses that the service ignores. CSS selectors match against\n     * the composed path of the event, from the target up to the element that\n     * caught it; a {@link IgxKeyBindingSkipCallback} decides per event instead\n     * of the selectors. Defaults to `['input', 'textarea', 'select']`.\n     */\n    skip?: string[] | IgxKeyBindingSkipCallback;\n    /** The default options of every binding. The options of a binding take precedence. */\n    bindingDefaults?: IgxKeyBindingOptions;\n}\n\n/**\n * Stops the keyboard handling of an element observed with\n * {@link IgxKeyBindingsService.observeElement}.\n *\n * @hidden @internal\n */\nexport interface IgxKeyBindingObserver {\n    unsubscribe(): void;\n}\n\n/** A registered binding. The key of the binding map holds the combination. */\ninterface KeyBinding {\n    handler: IgxKeyBindingHandler;\n    options?: IgxKeyBindingOptions;\n}\n\n//#endregion\n\nconst DEFAULT_SKIP = ['input', 'textarea', 'select'];\nconst DEFAULT_BINDING_OPTIONS: IgxKeyBindingOptions = { preventDefault: true };\nconst DEFAULT_TRIGGERS: IgxKeyBindingTrigger[] = ['keydown'];\n\nfunction isKeyup(event: Event): boolean {\n    return event.type === 'keyup';\n}\n\nfunction isElement(node: EventTarget): node is Element {\n    return (node as Node).nodeType === Node.ELEMENT_NODE;\n}\n\n/** The host element, which only exists when an element provides the service. */\nfunction injectHost(): HTMLElement {\n    const host = inject<ElementRef<HTMLElement>>(ElementRef, { optional: true });\n    if (!host) {\n        throw new Error(\n            'IgxKeyBindingsService has no host element. ' +\n            'List it in the providers of the component or directive that uses it.'\n        );\n    }\n    return host.nativeElement;\n}\n\n/**\n * Manages the key bindings of the element of the component or directive that\n * provides it.\n *\n * @remarks\n * List it in the `providers` of the component or directive and `inject()` it.\n * The owners on one element share one instance, so only one of them may call\n * {@link configure}. A child element that injects it without providing it gets\n * the instance of its closest ancestor. Use {@link observeElement} for\n * elements outside the view, such as overlay content.\n *\n * @hidden @internal\n */\n@Injectable()\nexport class IgxKeyBindingsService {\n    private readonly _host = injectHost();\n    private readonly _zone = inject(NgZone);\n    private readonly _cdr = inject(ChangeDetectorRef);\n    private readonly _document = inject(DOCUMENT);\n    private readonly _isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n    private readonly _destroyRef = inject(DestroyRef);\n\n    private readonly _bindings = new Map<string, KeyBinding>();\n    private readonly _allowedKeys = new Set<string>();\n    private readonly _pressedKeys = new Set<string>();\n    /** Events already handled, for an observed element inside the host. */\n    private readonly _handledEvents = new WeakSet<Event>();\n    /** One controller for the host and window listeners, one per observed element. */\n    private readonly _listeners = new Set<AbortController>();\n\n    private _configured = false;\n    private _bindingDefaults = DEFAULT_BINDING_OPTIONS;\n    private _skipSelector?: string = DEFAULT_SKIP.join(',');\n    private _skipCallback?: IgxKeyBindingSkipCallback;\n\n    constructor() {\n        this._destroyRef.onDestroy(() => {\n            for (const controller of this._listeners) {\n                controller.abort();\n            }\n            this._listeners.clear();\n        });\n\n        if (!this._isBrowser) {\n            return;\n        }\n\n        const { signal } = this._createListeners();\n        this._zone.runOutsideAngular(() => {\n            this._listen(this._host, signal);\n            // No keyup arrives when focus leaves the host or the window with a key down.\n            this._host.addEventListener('focusout', this._onHostFocusOut, { signal });\n            this._document.defaultView?.addEventListener('blur', this._releasePressedKeys, { signal });\n        });\n    }\n\n    //#region Public API\n\n    /**\n     * Configures the service. Call it once, before or after the bindings.\n     *\n     * @remarks\n     * The owners on one element share the instance and must agree on one call;\n     * a second call throws in dev mode and is ignored otherwise.\n     *\n     * @param config - The skip condition and the default binding options.\n     * @returns The service, for chaining.\n     *\n     * @example\n     * ```typescript\n     * this._keyBindings\n     *     .configure({ skip: () => this.disabled, bindingDefaults: { repeat: true } })\n     *     .set(arrowDown, () => this.next());\n     * ```\n     */\n    public configure(config: IgxKeyBindingsConfig): this {\n        if (this._configured) {\n            if (isDevMode()) {\n                throw new Error(\n                    'IgxKeyBindingsService: configure() was already called for this element. ' +\n                    'The owners that share the instance must agree on one configuration.'\n                );\n            }\n            return this;\n        }\n\n        this._configured = true;\n        this._bindingDefaults = { ...DEFAULT_BINDING_OPTIONS, ...config.bindingDefaults };\n\n        const skip = config.skip ?? DEFAULT_SKIP;\n        if (typeof skip === 'function') {\n            this._skipCallback = skip;\n            this._skipSelector = undefined;\n        } else {\n            this._skipSelector = skip.length ? skip.join(',') : undefined;\n        }\n\n        return this;\n    }\n\n    /**\n     * Registers a binding for a key or a combination, such as\n     * `[shiftKey, arrowUp]`. The order and the case of the names do not\n     * matter.\n     *\n     * @remarks\n     * A combination can be bound once. A second binding throws in dev mode and\n     * is ignored otherwise, so the first binding stays.\n     *\n     * @param keys - A `KeyboardEvent.key` value, or the keys of a combination.\n     * @param handler - Runs inside the Angular zone when the binding matches.\n     * @param options - The options of the binding, over the binding defaults.\n     * @returns The service, for chaining.\n     *\n     * @example\n     * ```typescript\n     * this._keyBindings\n     *     .set(escapeKey, () => this.close())\n     *     .set([altKey, arrowUp], () => this.close(), { repeat: false });\n     * ```\n     */\n    public set(keys: string | string[], handler: IgxKeyBindingHandler, options?: IgxKeyBindingOptions): this {\n        const parsed = parseKeys(keys);\n        const combination = createCombinationKey(parsed.keys, sortModifiers(parsed.modifiers));\n\n        if (this._bindings.has(combination)) {\n            if (isDevMode()) {\n                throw new Error(`IgxKeyBindingsService: the key combination \"${combination}\" is already bound for this element.`);\n            }\n            return this;\n        }\n\n        for (const key of [...parsed.keys, ...parsed.modifiers]) {\n            this._allowedKeys.add(key);\n        }\n        this._bindings.set(combination, { handler, options });\n\n        return this;\n    }\n\n    /**\n     * Registers `handler` for both the Enter key and the Space bar.\n     *\n     * @param handler - Runs inside the Angular zone for Enter or Space.\n     * @param options - The options of both bindings, over the binding defaults.\n     * @returns The service, for chaining.\n     *\n     * @example\n     * ```typescript\n     * this._keyBindings.setActivateHandler((event) => this.toggle(event));\n     * ```\n     */\n    public setActivateHandler(handler: IgxKeyBindingHandler, options?: IgxKeyBindingOptions): this {\n        return this.set(enterKey, handler, options).set(spaceBar, handler, options);\n    }\n\n    /**\n     * Handles the keyboard events of another element, such as overlay\n     * content, with the configuration and the bindings of this service. The\n     * service stops when it is destroyed or when `unsubscribe` is called.\n     *\n     * @param element - The element to observe.\n     * @returns An object whose `unsubscribe` stops observing `element`.\n     *\n     * @example\n     * ```typescript\n     * const { unsubscribe } = this._keyBindings.observeElement(overlayContent);\n     * // later, when the overlay closes\n     * unsubscribe();\n     * ```\n     */\n    public observeElement(element: Element): IgxKeyBindingObserver {\n        if (!this._isBrowser) {\n            return { unsubscribe: () => {} };\n        }\n\n        const controller = this._createListeners();\n        this._zone.runOutsideAngular(() => this._listen(element, controller.signal));\n\n        return {\n            unsubscribe: () => {\n                controller.abort();\n                this._listeners.delete(controller);\n            }\n        };\n    }\n\n    //#endregion\n\n    //#region Event handling\n\n    private _createListeners(): AbortController {\n        const controller = new AbortController();\n        this._listeners.add(controller);\n        return controller;\n    }\n\n    private _listen(element: EventTarget, signal: AbortSignal): void {\n        element.addEventListener('keydown', this._onKeyEvent, { signal });\n        element.addEventListener('keyup', this._onKeyEvent, { signal });\n    }\n\n    private readonly _releasePressedKeys = (): void => {\n        this._pressedKeys.clear();\n    };\n\n    /** Focus that moves inside the host keeps the keys: their keyup still reaches the host. */\n    private readonly _onHostFocusOut = (event: FocusEvent): void => {\n        const next = event.relatedTarget as Node | null;\n        if (!next || !this._host.contains(next)) {\n            this._releasePressedKeys();\n        }\n    };\n\n    private readonly _onKeyEvent = (event: Event): void => {\n        // An observed element inside the host sees the event before the host.\n        if (this._handledEvents.has(event)) {\n            return;\n        }\n        this._handledEvents.add(event);\n\n        // Browser autofill dispatches a plain `Event` named `keydown`.\n        const keyboardEvent = event as KeyboardEvent;\n        if (typeof keyboardEvent.key === 'string') {\n            this._handleKeyEvent(keyboardEvent, event.currentTarget as Element);\n        }\n    };\n\n    private _handleKeyEvent(event: KeyboardEvent, scope: Element): void {\n        const key = event.key.toLowerCase();\n        const isModifier = MODIFIERS.has(key);\n\n        if (this._shouldSkip(event, key, scope)) {\n            // A skipped keyup still releases the key.\n            if (!isModifier && isKeyup(event)) {\n                this._pressedKeys.delete(key);\n            }\n            return;\n        }\n\n        if (!isModifier) {\n            this._pressedKeys.add(key);\n        }\n\n        const binding = this._findBinding(event, key, isModifier);\n        if (binding) {\n            this._runBinding(binding, event);\n        }\n\n        if (!isModifier && isKeyup(event)) {\n            this._pressedKeys.delete(key);\n        }\n    }\n\n    private _findBinding(event: KeyboardEvent, key: string, isModifier: boolean): KeyBinding | undefined {\n        if (!isModifier && !hasModifiers(event) && this._pressedKeys.size === 1) {\n            // Fast path: a single key without modifiers is its own combination.\n            return this._bindings.get(key);\n        }\n\n        const modifiers = getActiveModifiers(event, isModifier && isKeyup(event) ? key : undefined);\n        const binding = this._bindings.get(createCombinationKey(Array.from(this._pressedKeys), modifiers));\n\n        // Overlapping presses leave several keys down. Fall back to the current\n        // key, so its binding still runs.\n        if (!binding && this._pressedKeys.size > 1) {\n            return this._bindings.get(createCombinationKey([key], modifiers));\n        }\n\n        return binding;\n    }\n\n    private _runBinding(binding: KeyBinding, event: KeyboardEvent): void {\n        const options = { ...this._bindingDefaults, ...binding.options };\n        const triggers = options.triggers ?? DEFAULT_TRIGGERS;\n\n        if (!triggers.includes(event.type as IgxKeyBindingTrigger)) {\n            return;\n        }\n\n        if (options.preventDefault) {\n            event.preventDefault();\n        }\n        if (options.stopPropagation) {\n            event.stopPropagation();\n        }\n\n        // A held key keeps its default prevented, but the handler runs once.\n        if (!isKeyup(event) && event.repeat && !options.repeat) {\n            return;\n        }\n\n        // Same as a template listener: enter the zone and mark the view, so\n        // OnPush and zoneless hosts refresh.\n        this._zone.run(() => {\n            this._cdr.markForCheck();\n            binding.handler(event);\n        });\n    }\n\n    /**\n     * Whether to ignore the event: the key has no binding, a node between the\n     * target and `scope` matches the skip selectors, or the skip callback\n     * agrees.\n     */\n    private _shouldSkip(event: KeyboardEvent, key: string, scope: Element): boolean {\n        if (!this._allowedKeys.has(key)) {\n            return true;\n        }\n\n        const selector = this._skipSelector;\n        if (selector) {\n            // The path runs target first; `scope` itself is never matched, so\n            // the service works on an input element.\n            for (const node of event.composedPath()) {\n                if (node === scope) {\n                    break;\n                }\n                if (isElement(node) && node.matches(selector)) {\n                    return true;\n                }\n            }\n        }\n\n        return this._skipCallback?.(event.target as Element, event) ?? false;\n    }\n\n    //#endregion\n}\n","import { effect, EnvironmentInjector, Injector, untracked } from '@angular/core';\nimport { AbstractControl, NgControl, TouchedChangeEvent, Validators } from '@angular/forms';\nimport { EMPTY, filter, Observable } from 'rxjs';\n\n/** Source of the state behind an `NgControl`. */\nexport type NgControlBackend = 'observable' | 'signal';\n\n/** Whether a control took a value written through `setValue`. */\nexport type ValueWriteResult = 'accepted' | 'ignored';\n\n/** Validation outcome of a control, mirroring `FormControlStatus`. */\nexport type ControlStatus = 'valid' | 'invalid' | 'pending' | 'disabled';\n\n/**\n * Uniform access to the `NgControl` bound to a form control.\n *\n * Reactive and template-driven forms provide an `NgControl` backed by an\n * `AbstractControl` with observables. Signal Forms (`[formField]`) provide\n * an interop `NgControl` backed by signals, without `statusChanges`,\n * `valueChanges`, `validator` or `markAsTouched`.\n *\n * @hidden @internal\n */\nexport class NgControlAdapter {\n    public readonly backend: NgControlBackend;\n\n    private readonly envInjector: EnvironmentInjector;\n    private sawErrors = false;\n\n    /** Wraps `ngControl`, or returns `null` when there is none. */\n    public static from(ngControl: NgControl | null, injector: Injector): NgControlAdapter | null {\n        return ngControl ? new NgControlAdapter(ngControl, injector) : null;\n    }\n\n    constructor(private readonly ngControl: NgControl, injector: Injector) {\n        this.envInjector = injector.get(EnvironmentInjector);\n        this.backend = 'statusChanges' in ngControl ? 'observable' : 'signal';\n    }\n\n    public get disabled(): boolean {\n        return !!this.ngControl.disabled;\n    }\n\n    public get valid(): boolean {\n        return !!this.ngControl.valid;\n    }\n\n    public get invalid(): boolean {\n        return !!this.ngControl.invalid;\n    }\n\n    public get pending(): boolean {\n        return !!this.ngControl.pending;\n    }\n\n    /** Derived, not read from `status`: the Signal Forms interop throws on a status it does not know. */\n    public get status(): ControlStatus {\n        if (this.disabled) {\n            return 'disabled';\n        }\n\n        if (this.invalid) {\n            return 'invalid';\n        }\n\n        return this.pending ? 'pending' : 'valid';\n    }\n\n    public get touchedOrDirty(): boolean {\n        const control = this.ngControl.control;\n        return !!(control?.touched || control?.dirty);\n    }\n\n    /**\n     * Signal Forms expose no rule list. A field that is required, or was invalid or\n     * pending since it was last pristine and untouched, is known to have rules;\n     * a rule satisfied from that point on stays undetected.\n     */\n    public get hasValidators(): boolean {\n        if (this.backend === 'signal') {\n            return this.required || this.sawErrors;\n        }\n\n        const control = this.ngControl.control;\n        return !!(control?.validator || control?.asyncValidator);\n    }\n\n    public get required(): boolean {\n        const control = this.ngControl.control;\n        if (control?.hasValidator?.(Validators.required) || this.backend === 'signal') {\n            return !!control?.hasValidator(Validators.required);\n        }\n\n        const validator = control?.validator;\n        if (!validator) {\n            return false;\n        }\n\n        // `hasValidator` misses the `[required]` directive, whose validator is merged into `validator`.\n        // Probe with an empty control so `required` is detected regardless of the current value.\n        // A validator that reads the value throws on the probe; treat that as not required.\n        try {\n            return !!validator({} as AbstractControl)?.required;\n        } catch {\n            return false;\n        }\n    }\n\n    /**\n     * Emits when the value, validity, required, disabled, dirty or pending state changes.\n     * Signal Forms `submit()` only marks fields touched, so touched changes count too\n     * or the errors would never surface.\n     */\n    public get statusChanges(): Observable<unknown> {\n        if (this.backend === 'signal') {\n            return this.watch(() => {\n                this.observeErrors();\n\n                return [\n                    this.ngControl.value, this.ngControl.valid, this.pending, this.required,\n                    this.ngControl.disabled, this.ngControl.dirty, this.ngControl.touched\n                ];\n            });\n        }\n\n        return this.ngControl.statusChanges!;\n    }\n\n    public get touchedChanges(): Observable<unknown> {\n        if (this.backend === 'signal') {\n            return this.watch(() => [this.ngControl.touched]);\n        }\n\n        return this.ngControl.control?.events.pipe(filter(e => e instanceof TouchedChangeEvent)) ?? EMPTY;\n    }\n\n    public get valueChanges(): Observable<unknown> {\n        if (this.backend === 'signal') {\n            return this.watch(() => [this.ngControl.value]);\n        }\n\n        return this.ngControl.valueChanges!;\n    }\n\n    /** No-op for Signal Forms: `[formField]` tracks touch through blur and `registerOnTouched`. */\n    public markAsTouched(): void {\n        this.ngControl.control?.markAsTouched?.();\n    }\n\n    /**\n     * Signal Forms ignore the write: they read the value from the view\n     * (DOM or `ControlValueAccessor`), so the caller must update that instead.\n     */\n    public setValue(value: unknown): ValueWriteResult {\n        const control = this.ngControl.control;\n        if (!control?.setValue) {\n            return 'ignored';\n        }\n\n        control.setValue(value);\n        return 'accepted';\n    }\n\n    /**\n     * Records that the field has rules. A `[formField]` switch reuses the same interop\n     * `NgControl`, so an untouched, pristine control drops earlier observations and keeps\n     * only its current state, e.g. an empty field failing a custom rule before the first edit.\n     */\n    private observeErrors(): void {\n        const kept = this.touchedOrDirty && this.sawErrors;\n        this.sawErrors = kept || this.invalid || this.pending;\n    }\n\n    // Signal-backed getters are reactive, so an effect over them replaces the missing observables.\n    // A root effect runs before change detection, like an observable would; a view effect would\n    // run after the host bindings were checked. `untracked` allows subscribing from within another\n    // effect. `toObservable` is not used: it replays and lives until the environment is destroyed.\n    private watch(read: () => unknown): Observable<void> {\n        return new Observable<void>(subscriber => {\n            const ref = untracked(() => effect(() => {\n                read();\n                untracked(() => subscriber.next());\n            }, { injector: this.envInjector }));\n\n            return () => ref.destroy();\n        });\n    }\n}\n","import { ChangeDetectorRef, QueryList } from '@angular/core';\nimport { OverlaySettings } from '../services/overlay/utilities';\n\n/* csSuppress */\n/** @hidden @internal */\nexport abstract class IgxActionStripToken {\n    public abstract cdr: ChangeDetectorRef\n    public abstract context: any;\n    public abstract menuOverlaySettings: OverlaySettings;\n    public abstract actionButtons: QueryList<IgxActionStripActionsToken>;\n    public abstract get hideOnRowLeave(): boolean;\n\n    public abstract show(context?: any): void;\n    public abstract hide(): void;\n}\n\n/* csSuppress */\n/**\n * Abstract class defining the contract for components that provide actions to the action strip.\n * This allows the action strip to remain standalone and not be aware of specific implementations.\n * @hidden @internal\n */\nexport abstract class IgxActionStripActionsToken {\n    public abstract asMenuItems: boolean;\n    public abstract buttons: QueryList<any>;\n    public abstract strip: any | null;\n}\n","import { Component, Output, EventEmitter, HostListener, Directive, TemplateRef, inject, ChangeDetectionStrategy } from '@angular/core';\n\n/**\n * Templates the default toggle icon in the picker.\n *\n * @remarks Can be applied to date picker, time picker, date range picker\n *\n * @example\n * ```html\n * <igx-date-range-picker>\n *   <igx-picker-toggle igxSuffix>\n *      <igx-icon>calendar_view_day</igx-icon>\n *   </igx-picker-toggle>\n * </igx-date-range-picker>\n * ```\n */\n@Component({\n    template: `<ng-content></ng-content>`,\n    selector: 'igx-picker-toggle',\n    changeDetection: ChangeDetectionStrategy.Eager,\n    standalone: true\n})\nexport class IgxPickerToggleComponent {\n    @Output()\n    public clicked = new EventEmitter();\n\n    @HostListener('click', ['$event'])\n    public onClick(event: MouseEvent) {\n        // do not focus input on click\n        event.stopPropagation();\n        this.clicked.emit();\n    }\n}\n\n/**\n * Templates the default clear icon in the picker.\n *\n * @remarks Can be applied to date picker, time picker, date range picker\n *\n * @example\n * ```html\n * <igx-date-picker>\n *   <igx-picker-clear igxSuffix>\n *      <igx-icon>delete</igx-icon>\n *   </igx-picker-clear>\n * </igx-date-picker>\n * ```\n */\n@Component({\n    template: `<ng-content></ng-content>`,\n    selector: 'igx-picker-clear',\n    changeDetection: ChangeDetectionStrategy.Eager,\n    standalone: true\n})\nexport class IgxPickerClearComponent extends IgxPickerToggleComponent { }\n\n/**\n * Picker actions can be used to re-template the dropdown/dialog action buttons.\n *\n * @remarks Can be applied to date picker, time picker, date range picker\n *\n */\n@Directive({\n    selector: '[igxPickerActions]',\n    standalone: true\n})\nexport class IgxPickerActionsDirective {\n    public template = inject<TemplateRef<any>>(TemplateRef);\n}\n\n","/** Header orientation in `dialog` mode. */\nexport const PickerHeaderOrientation = {\n    Horizontal: 'horizontal',\n    Vertical: 'vertical'\n} as const;\nexport type PickerHeaderOrientation = (typeof PickerHeaderOrientation)[keyof typeof PickerHeaderOrientation];\n\n/** Calendar orientation. */\nexport const PickerCalendarOrientation = {\n    Horizontal: 'horizontal',\n    Vertical: 'vertical'\n} as const;\nexport type PickerCalendarOrientation = (typeof PickerCalendarOrientation)[keyof typeof PickerCalendarOrientation];\n\n/**\n * This enumeration is used to configure whether the date/time picker has an editable input with drop down\n * or is readonly - the date/time is selected only through a dialog.\n */\nexport const PickerInteractionMode = {\n    DropDown: 'dropdown',\n    Dialog: 'dialog'\n} as const;\nexport type PickerInteractionMode = (typeof PickerInteractionMode)[keyof typeof PickerInteractionMode];\n\nexport type WeekDays =\n  | 'sunday'\n  | 'monday'\n  | 'tuesday'\n  | 'wednesday'\n  | 'thursday'\n  | 'friday'\n  | 'saturday';\n\nexport interface IgcCalendarBaseEventMap {\n  igcChange: CustomEvent<Date | Date[]>;\n}\n\n/** Represents a range between two dates. */\nexport interface DateRange {\n    start: Date | string;\n    end: Date | string;\n}\n\n/** Represents a range between two dates and a label used for predefined and custom date ranges. */\nexport interface CustomDateRange {\n    label: string;\n    dateRange: DateRange;\n}\n","/**\n * Specify a particular date, time or AmPm part.\n */\nexport enum DatePart {\n    Date = 'date',\n    Month = 'month',\n    Year = 'year',\n    Hours = 'hours',\n    Minutes = 'minutes',\n    Seconds = 'seconds',\n    FractionalSeconds = 'fractionalSeconds',\n    AmPm = 'ampm',\n    Literal = 'literal'\n}\n\n/** @hidden @internal */\nexport interface DatePartInfo {\n    type: DatePart;\n    start: number;\n    end: number;\n    format: string;\n}\n\n/** Delta values used for spin actions. */\nexport interface DatePartDeltas {\n    date?: number;\n    month?: number;\n    year?: number;\n    hours?: number;\n    minutes?: number;\n    seconds?: number;\n    fractionalSeconds?: number;\n}\n","/**\n * Minimal type stubs for grid types to avoid circular dependencies.\n * These are simple interfaces that core uses for typing only.\n * The actual implementations are in igniteui-angular/grids.\n */\n\nimport { InjectionToken, QueryList, TemplateRef } from '@angular/core';\nimport { WEEKDAYS } from '../core/enums';\nimport { IgxFilteringOperand } from './filtering-condition';\nimport { ISortingStrategy } from './sorting-strategy';\nimport { FilteringExpressionsTree } from './filtering-expressions-tree';\nimport { IgxSummaryOperand } from './grid-summary';\nimport { State, Transaction, TransactionService } from '../services/transaction/transaction';\n\n\n/* IgxGrid column types */\nexport interface IFieldPipeArgs {\n    /** The date/time components that a date column will display, using predefined options or a custom format string. */\n    format?: string;\n    /** A timezone offset (such as '+0430'), or a standard UTC/GMT or continental US timezone abbreviation. */\n    timezone?: string;\n    /**\n     * Decimal representation options, specified by a string in the following format:\n     * `{minIntegerDigits}`.`{minFractionDigits}`-`{maxFractionDigits}`.\n     * `minIntegerDigits`: The minimum number of integer digits before the decimal point. Default is 1.\n     * `minFractionDigits`: The minimum number of digits after the decimal point. Default is 0.\n     * `maxFractionDigits`: The maximum number of digits after the decimal point. Default is 3.\n     */\n    digitsInfo?: string;\n    /** The currency code of type string, default value undefined */\n    currencyCode?: string;\n    /**\n     * Allow us to display currency 'symbol' or 'code' or 'symbol-narrow' or our own string.\n     * The value is of type string. By default is set to 'symbol'\n     */\n    display?: string;\n\n    /** The first week day to be displayed in calendar when filtering or editing a date column */\n    weekStart?: WEEKDAYS | number;\n}\n\n// D.P. Can't use `export type IColumnPipeArgs = IFieldPipeArgs` because TypeScripts Compiler API optimizes it away completely\n\nexport interface IColumnPipeArgs extends IFieldPipeArgs {}\n\nexport interface IFieldEditorOptions {\n    /**\n     * A custom input format string used for the built-in editors of date/time columns.\n     * See the Editing section under https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/column-types#datetime-date-and-time\n     */\n    dateTimeFormat?: string;\n}\n\nexport interface IColumnEditorOptions extends IFieldEditorOptions {}\n\nexport interface ISortingOptions {\n    mode: 'single' | 'multiple';\n}\n\n/**\n * @hidden\n * @internal\n */\nexport interface MRLColumnSizeInfo {\n    ref: ColumnType;\n    width: number;\n    colSpan: number;\n    colEnd: number;\n    widthSetByUser: boolean;\n}\n\n/**\n * @hidden\n * @internal\n */\nexport interface MRLResizeColumnInfo {\n    target: ColumnType;\n    spanUsed: number;\n}\n/**\n * A map of CSS style properties to either a static value or a callback that\n * computes one.\n */\nexport interface GridStyleCSSProperty {\n    [prop: string]: any;\n}\n\n/* mustCoerceToInt */\n/**\n * Enumeration representing the possible positions for pinning columns.\n * - Start: Columns are pinned to the start of the grid.\n * - End: Columns are pinned to the end of the grid.\n */\nexport enum ColumnPinningPosition {\n    Start,\n    End\n}\n\n/**\n * Stub type for GridType - minimal interface for typing in core\n */\nexport interface GridTypeBase {\n    primaryKey?: string;\n    id?: string;\n    data: any[] | null;\n    [key: string]: any;\n}\n\n/**\n * Describes a field that can be used in the Grid and QueryBuilder components.\n */\nexport interface FieldType {\n    /**\n     * Display label for the field.\n     */\n    label?: string;\n\n    /**\n     * The internal field name, used in expressions and queries.\n     */\n    field: string;\n\n    /**\n     * Optional column header for UI display purposes.\n     */\n    header?: string;\n\n    /**\n     * The data type of the field.\n     */\n    /* alternateType: GridColumnDataType */\n    dataType: GridColumnDataType;\n\n    /**\n     * Options for the editor associated with this field.\n     */\n    editorOptions?: IFieldEditorOptions;\n\n    /* blazorCSSuppress */\n    /**\n     * Optional filtering operands that apply to this field.\n     */\n    filters?: IgxFilteringOperand;\n\n    /**\n     * Optional arguments for any pipe applied to the field.\n     */\n    pipeArgs?: IFieldPipeArgs;\n\n    /**\n     * Default time format for Date/Time fields.\n     */\n    defaultTimeFormat?: string;\n\n    /**\n     * Default date/time format for Date/Time fields.\n     */\n    defaultDateTimeFormat?: string;\n\n    /* blazorAlternateType: CellValueFormatterEventHandler */\n    /* blazorOnlyScript */\n    /**\n     * Optional formatter function to transform the value before display.\n     *\n     * @param value - The value of the field.\n     * @param rowData - Optional row data that contains this field.\n     * @returns The formatted value.\n     */\n    formatter?: (value: any, rowData?: any) => any;\n}\n\n/**\n * Represents a column in the `GridType`. It is essentially the blueprint to a column object.\n * Contains definitions of properties and methods, relevant to a column\n */\nexport interface ColumnType extends FieldType {\n    /** Represents the instance of the parent `GridType` that contains this column. */\n    grid: GridTypeBase;\n    /**\n     * A list containing all the child columns under this column (if any).\n     * @deprecated in version 18.1.0. Use the `childColumns` property instead.\n     */\n    children: QueryList<ColumnType>;\n    /**\n     * A list containing all the child columns under this column (if any).\n     * Empty without children or if this column is not Group or Layout.\n     */\n    get childColumns(): ColumnType[];\n    /** @hidden @internal */\n    allChildren: ColumnType[];\n    /** @hidden @internal */\n    headerGroup: any;\n    /** @hidden @internal */\n    headerCell: any;\n    validators: any[];\n    mergingComparer: (prevRecord: any, record: any, field: string) => boolean;\n\n    /**\n     * The template reference for the custom header of the column\n     * It is of type TemplateRef, which represents an embedded template, used to instantiate embedded views\n     */\n    headerTemplate: TemplateRef<any>;\n    /**\n     * The template reference for the collapsible indicator of the column.\n     * It is of type TemplateRef, which represents an embedded template, used to instantiate embedded views\n     */\n    collapsibleIndicatorTemplate?: TemplateRef<any>;\n    /** Represents custom CSS classes applied to the header element. When added, they take different styling */\n    headerClasses: any;\n    /** Represents custom CSS styles applied to the header element. When added, they take different styling */\n    headerStyles: GridStyleCSSProperty | null;\n     /** Represents custom CSS classes applied to the header group. When added, they take different styling */\n    headerGroupClasses: any;\n     /** Represents custom CSS styles applied to the header group. When added, they take different styling */\n    headerGroupStyles: GridStyleCSSProperty | null;\n\n    /**\n     * Custom CSS styling, applied to every column\n     * calcWidth, minWidthPx, maxWidthPx, minWidth, maxWidth, minWidthPercent, maxWidthPercent, resolvedWidth\n     */\n    calcWidth: string | number | null;\n    defaultWidth: string;\n    minWidthPx: number;\n    maxWidthPx: number;\n    minWidth: string;\n    maxWidth: string;\n    minWidthPercent: number;\n    maxWidthPercent: number;\n    resolvedWidth: string;\n\n    /**\n     * Optional\n     * Represents the header text of the column\n     */\n    header?: string;\n    /**\n     * The index of the column within the grid.\n     * Includes the hidden columns when counting\n     */\n    index: number;\n    /**\n     * Represents the type of data for the column:\n     * string, number, boolean, currency, date, time, etc.\n     */\n    dataType: GridColumnDataType;\n    /**\n     * Sets properties on the default column editors\n     */\n    editorOptions?: IColumnEditorOptions;\n    /**\n     * The template reference for the custom inline editor of the column\n     * It is of type TemplateRef, which represents an embedded template, used to instantiate embedded views\n     */\n    inlineEditorTemplate: TemplateRef<any>;\n    /**\n     * The index of the column within the grid.\n     * Does not include the hidden columns when counting\n     */\n    visibleIndex: number;\n    /** Optional\n     * Indicated whether the column can be collapsed. If the value is true, the column can be collapsed\n     * It is used in tree grid and for navigation\n     */\n    collapsible?: boolean;\n    /** Indicated whether the column can be edited. If the value is true, the column can be edited */\n    editable: boolean;\n    /** Specifies whether the column can be resized. If the value is true, the column can be resized */\n    resizable: boolean;\n    /** Specifies whether the data of the column can be searched. If the value is true, the column data can be searched */\n    searchable: boolean;\n    /** Specifies whether the column belongs to a group of columns. */\n    columnGroup: boolean;\n    /** Indicates whether a column can be put in a group. If the value is true, the column can be put in a group */\n    groupable: boolean;\n    /** Indicates whether a column can be sorted. If the value is true, the column can be sorted. */\n    sortable: boolean;\n    /** Indicates whether a column can be filtered. If the value is true, the column can be filtered */\n    filterable: boolean;\n    /** Indicates whether a column is currently hidden (not visible). If the value is true, the column is not visible */\n    hidden: boolean;\n    /** Indicates whether a column can be pinned. If the value is true, the column cannot be pinned */\n    disablePinning: boolean;\n    /** Indicates whether a column can be hidden. If the value is true, the column cannot be hidden */\n    disableHiding: boolean;\n    /**\n     * The sorting strategy used for sorting this column.\n     * The interface contains a method sort that sorts the provided data based on the given sorting expressions\n     */\n    sortStrategy: ISortingStrategy;\n     /**\n     * Indicates whether the search should match results, no matter the case of the letters (upper and lower)\n     * If the value is false, the result will depend on the case (example: `E` will not match `e`)\n     * If the value is true, the result will not depend on the case (example: `E` will match `e`)\n     */\n    sortingIgnoreCase: boolean;\n    /** @hidden @internal */\n    filterCell: any;\n    filteringIgnoreCase: boolean;\n    /**\n     * The filtering expressions for the column.\n     * The type contains properties and methods for filtering: filteringOperands, operator (logic), fieldName, etc.\n     */\n    filteringExpressionsTree: FilteringExpressionsTree;\n    hasSummary: boolean;\n    summaries: IgxSummaryOperand;\n    disabledSummaries?: string[];\n    /**\n     * The template reference for a summary of the column\n     * It is of type TemplateRef, which represents an embedded template, used to instantiate embedded views\n     */\n    summaryTemplate: TemplateRef<any>;\n    /** Indicates if the column is currently pinned. If the value is true, the column is pinned */\n    pinned: boolean;\n    /** Indicates if the column is currently expanded or collapsed. If the value is true, the column is expanded */\n    expanded: boolean;\n    merge: boolean;\n    /** Indicates if the column is currently selected. If the value is true, the column is selected */\n    selected: boolean;\n    /** Indicates if the column can be selected. If the value is true, the column can be selected */\n    selectable: boolean;\n    columnLayout: boolean;\n    /** Represents the hierarchical level of the column in the column layout */\n    level: number;\n    rowStart: number;\n    rowEnd: number;\n    colStart: number;\n    colEnd: number;\n    /** @hidden @internal */\n    gridRowSpan: number;\n    /** @hidden @internal */\n    gridColumnSpan: number;\n    columnLayoutChild: boolean;\n    width: string;\n    /**\n     * Optional\n     * The root parent of this column (if any).\n     * If there is no root parent, that means the current column is the root parent\n     */\n    topLevelParent?: ColumnType;\n    /* alternateName: parentColumn */\n    /* blazorAlternateType: object */\n    /**\n     * Optional\n     * The immediate parent (right above) column of this column (if any).\n     * If there is no parent, that means the current column is the root parent\n     */\n    parent: ColumnType | null;\n    pipeArgs: IColumnPipeArgs;\n    hasNestedPath: boolean;\n    additionalTemplateContext: any;\n    /** Indicates whether the current column is the last to be pinned.\n     * If the value is false, there are columns, that have been pinned after the current */\n    isLastPinned: boolean;\n    /** Indicates whether the current column is the first for the grid to be pinned.\n     * If the value is false, there are columns, that have been pinned before the current */\n    isFirstPinned: boolean;\n    applySelectableClass: boolean;\n    /** The title of the column, used for accessibility purposes */\n    title: string;\n    /* blazorSuppress */\n    /** Represents a method with custom grouping comparator to determine the members of the group. */\n    groupingComparer: (a: any, b: any) => number;\n\n    /**\n     * Represents a custom template for filtering\n     * It is of type TemplateRef, which represents an embedded template, used to instantiate embedded views\n     */\n    filterCellTemplate: TemplateRef<any>;\n\n    /**\n     * A method definition to move the column to the specified index.\n     * It takes the index of type number as a parameter\n    */\n    move(index: number): void;\n    /** A method definition to retrieve the set CSS size */\n    getAutoSize(): string;\n    getResizableColUnderEnd(): MRLResizeColumnInfo[];\n    /** A method definition to retrieve the set CSS width of the cells under the column */\n    getCellWidth(): string;\n    getGridTemplate(isRow: boolean): string;\n    /** A method definition to toggle column visibility (hidden or visible) */\n    toggleVisibility(value?: boolean): void;\n    populateVisibleIndexes?(): void;\n    /** Pins the column at the specified index (if not already pinned). */\n    pin(index?: number, pinningPosition?: ColumnPinningPosition): boolean;\n    /** Unpins the column at the specified index (if not already unpinned). */\n    unpin(index?: number): boolean;\n}\n\n/**\n * Describes an entity in the QueryBuilder.\n * An entity represents a logical grouping of fields and can have nested child entities.\n */\nexport interface EntityType {\n    /**\n     * The name of the entity.\n     * Typically used as an identifier in expressions.\n     */\n    name: string;\n\n    /**\n     * The list of fields that belong to this entity.\n     */\n    fields: FieldType[];\n\n    /**\n     * Optional child entities.\n     * This allows building hierarchical or nested query structures.\n     */\n    childEntities?: EntityType[];\n}\n\n/* marshalByValue */\nexport interface ITreeGridRecord {\n    key: any;\n    data: any;\n    children?: ITreeGridRecord[];\n    /* blazorAlternateName: RecordParent */\n    parent?: ITreeGridRecord;\n    level?: number;\n    isFilteredOutParent?: boolean;\n    expanded?: boolean;\n}\n\n/**\n * Stub type for tree grid api - minimal interface for typing in core\n */\nexport interface IgxTreeGridAPIService {\n    get_row_id(rowData: any): any;\n    [key: string]: any;\n}\n\n\n/** Interface representing a segment of a path in a hierarchical grid. */\nexport interface IPathSegment {\n    /**\n     * The unique identifier of the row within the segment.\n     * @deprecated since version 17.1.0. Use the `rowKey` property instead.\n     */\n    rowID: any;\n    rowKey: any;\n    /** The key representing the row's 'hierarchical level. */\n    rowIslandKey: string;\n}\n\n/* tsPlainInterface */\n/* marshalByValue */\nexport interface ISummaryExpression {\n    fieldName: string;\n    /* blazorCSSuppress */\n    customSummary?: any;\n}\n\n/* tsPlainInterface */\n/* marshalByValue */\nexport interface IgxSummaryResult {\n    key: string;\n    label: string;\n    /* blazorAlternateName: Result */\n    summaryResult: any;\n    /**\n     * Apply default formatting based on the grid column type.\n     * ```typescript\n     * const result: IgxSummaryResult = {\n     *   key: 'key',\n     *   label: 'label',\n     *   defaultFormatting: true\n     * }\n     * ```\n     *\n     * @memberof IgxSummaryResult\n     */\n    defaultFormatting?: boolean;\n}\n\nexport interface ISummaryRecord {\n    summaries: Map<string, IgxSummaryResult[]>;\n    max?: number;\n    cellIndentation?: number;\n}\n\n/* tsPlainInterface */\n/* marshalByValue */\n/**\n * Represents a range selection between certain rows and columns of the grid.\n * Range selection can be made either through drag selection or through keyboard selection.\n */\nexport interface GridSelectionRange {\n    /** The index of the starting row of the selection range. */\n    rowStart: number;\n     /** The index of the ending row of the selection range. */\n    rowEnd: number;\n    /* blazorAlternateType: double */\n    /**\n     * The identifier or index of the starting column of the selection range.\n     * It can be either a string representing the column's field name or a numeric index.\n     */\n    columnStart: string | number;\n    /* blazorAlternateType: double */\n    /**\n     * The identifier or index of the ending column of the selection range.\n     * It can be either a string representing the column's field name or a numeric index.\n     */\n    columnEnd: string | number;\n}\n\n/**\n * Represents a single selected cell or node in a grid.\n */\nexport interface ISelectionNode {\n    /**\n     * The index of the selected row.\n     */\n    row: number;\n    /**\n     * The index of the selected column.\n     */\n    column: number;\n    /**\n     * (Optional)\n     * Additional layout information for multi-row selection nodes.\n     */\n    layout?: IMultiRowLayoutNode;\n    /**\n     * (Optional)\n     * Indicates if the selected node is a summary row.\n     * This property is true if the selected row is a summary row; otherwise, it is false.\n     */\n    isSummaryRow?: boolean;\n}\n\nexport interface IMultiRowLayoutNode {\n    rowStart: number;\n    colStart: number;\n    rowEnd: number;\n    colEnd: number;\n    columnVisibleIndex: number;\n}\n\n/**\n * Represents the state of the keyboard when selecting.\n */\nexport interface ISelectionKeyboardState {\n    /** The selected node in the grid, if any. Can be null if no node is selected. */\n    node: null | ISelectionNode;\n    /** Indicates whether the Shift key is currently pressed during the selection. */\n    shift: boolean;\n    /** The range of the selected cells in the grid. Can be null when resetting the selection. */\n    range: GridSelectionRange;\n    /** Indicates whether the selection is currently active (being performed). `False` when resetting the selection.  */\n    active: boolean;\n}\n\n/**\n * Represents the state of the grid selection using pointer interactions (mouse).\n * Extends ISelectionKeyboardState to include pointer-specific properties.\n */\nexport interface ISelectionPointerState extends ISelectionKeyboardState {\n    /** Indicates whether the Ctrl key is currently pressed during the selection. */\n    ctrl: boolean;\n    /** Indicates whether the primary pointer button is pressed during the selection (clicked). */\n    primaryButton: boolean;\n}\n\n/**\n * Represents the state of the columns in the grid.\n */\nexport interface IColumnSelectionState {\n     /** Represents the field name of the selected column, if any. Can be null if no column is selected. */\n    field: null | string;\n    /** An array of strings representing the ranges of selected columns in the grid. */\n    range: string[];\n}\n\n/**\n * Represents the overall state of grid selection, combining both keyboard and pointer interaction states.\n * It can be either an ISelectionKeyboardState or an ISelectionPointerState.\n */\nexport type SelectionState = ISelectionKeyboardState | ISelectionPointerState;\n\n/**\n * Injection token for accessing the grid transaction object.\n * This allows injecting the grid transaction object into components or services.\n */\nexport const IgxGridTransaction = /*@__PURE__*/new InjectionToken<TransactionService<Transaction, State>>('IgxGridTransaction');\n\n\n/**\n * Enumeration representing different calculation modes for grid summaries.\n * - rootLevelOnly: Summaries are calculated only for the root level.\n * - childLevelsOnly: Summaries are calculated only for child levels.\n * - rootAndChildLevels: Default value; Summaries are calculated for both root and child levels.\n */\nexport const GridSummaryCalculationMode = {\n    rootLevelOnly: 'rootLevelOnly',\n    childLevelsOnly: 'childLevelsOnly',\n    rootAndChildLevels: 'rootAndChildLevels'\n} as const;\nexport type GridSummaryCalculationMode = (typeof GridSummaryCalculationMode)[keyof typeof GridSummaryCalculationMode];\n\n/**\n * @hidden\n */\nexport const GridColumnDataType = {\n    String: 'string',\n    Number: 'number',\n    Boolean: 'boolean',\n    Date: 'date',\n    DateTime: 'dateTime',\n    Time: 'time',\n    Currency: 'currency',\n    Percent: 'percent',\n    Image: 'image'\n} as const;\nexport type GridColumnDataType = (typeof GridColumnDataType)[keyof typeof GridColumnDataType];\n","import { DatePart, DatePartInfo } from '../date-parts';\nimport { ValidationErrors } from '@angular/forms';\nimport { isDate } from '../../core/utils';\nimport { GridColumnDataType } from '../../data-operations/grid-types';\nimport { BaseFormatter } from '../../core/i18n/formatters/formatter-base';\n\n/** @hidden */\nconst enum FormatDesc {\n    Numeric = 'numeric',\n    TwoDigits = '2-digit'\n}\n\nconst TIME_CHARS = ['h', 'H', 'm', 's', 'S', 't', 'T', 'a'];\nconst DATE_CHARS = ['d', 'D', 'M', 'y', 'Y'];\n\n/** @hidden */\nconst enum AmPmValues {\n    AM = 'AM',\n    A = 'a',\n    PM = 'PM',\n    P = 'p'\n}\n\n/** @hidden */\nconst enum DateParts {\n    Day = 'day',\n    Month = 'month',\n    Year = 'year',\n    Hour = 'hour',\n    Minute = 'minute',\n    Second = 'second',\n    AmPm = 'dayPeriod'\n}\n\n/** Maps of the pre-defined date-time format options supported by the Angular DatePipe\n * - predefinedNumericFormats resolve to numeric parts only (and period) for the default 'en' culture\n * - predefinedNonNumericFormats usually contain non-numeric date/time parts, which cannot be\n *   handled for editing by the date/time editors\n *  Ref: https://angular.dev/api/common/DatePipe?tab=usage-notes\n * @hidden\n */\nconst predefinedNumericFormats = new Map<string, DateParts[]>([\n    ['short', [DateParts.Month, DateParts.Day, DateParts.Year, DateParts.Hour, DateParts.Minute]],\n    ['shortDate', [DateParts.Month, DateParts.Day, DateParts.Year]],\n    ['shortTime', [DateParts.Hour, DateParts.Minute]],\n    ['mediumTime', [DateParts.Hour, DateParts.Minute, DateParts.Second]],\n]);\n\nconst predefinedNonNumericFormats = new Set<string>([\n    'medium', 'long', 'full', 'mediumDate', 'longDate', 'fullDate', 'longTime', 'fullTime',\n])\n\n/** @hidden */\nexport abstract class DateTimeUtil {\n    private static readonly DEFAULT_LOCALE = 'en';\n\n    /**\n     * Parse a Date value from masked string input based on determined date parts\n     *\n     * @param inputData masked value to parse\n     * @param dateTimeParts Date parts array for the mask\n     */\n    public static parseValueFromMask(inputData: string, dateTimeParts: DatePartInfo[], promptChar?: string): Date | null {\n        const parts: { [key in DatePart]: number } = {} as any;\n        dateTimeParts.forEach(dp => {\n            let value = parseInt(DateTimeUtil.getCleanVal(inputData, dp, promptChar), 10);\n            if (!value) {\n                value = dp.type === DatePart.Date || dp.type === DatePart.Month ? 1 : 0;\n            }\n            parts[dp.type] = value;\n        });\n        parts[DatePart.Month] -= 1;\n\n        if (parts[DatePart.Month] < 0 || 11 < parts[DatePart.Month]) {\n            return null;\n        }\n\n        // TODO: Century threshold\n        if (parts[DatePart.Year] < 50) {\n            parts[DatePart.Year] += 2000;\n        }\n\n        if (parts[DatePart.Date] > DateTimeUtil.daysInMonth(parts[DatePart.Year], parts[DatePart.Month])) {\n            return null;\n        }\n\n        if (parts[DatePart.Hours] > 23 || parts[DatePart.Minutes] > 59\n            || parts[DatePart.Seconds] > 59 || parts[DatePart.FractionalSeconds] > 999) {\n            return null;\n        }\n\n        const amPm = dateTimeParts.find(p => p.type === DatePart.AmPm);\n        if (amPm) {\n            parts[DatePart.Hours] %= 12;\n        }\n\n        if (amPm) {\n            const cleanVal = DateTimeUtil.getCleanVal(inputData, amPm, promptChar);\n            if (DateTimeUtil.isPm(cleanVal)) {\n                parts[DatePart.Hours] += 12;\n            }\n        }\n\n        return new Date(\n            parts[DatePart.Year] || 2000,\n            parts[DatePart.Month] || 0,\n            parts[DatePart.Date] || 1,\n            parts[DatePart.Hours] || 0,\n            parts[DatePart.Minutes] || 0,\n            parts[DatePart.Seconds] || 0,\n            parts[DatePart.FractionalSeconds] || 0\n        );\n    }\n\n    /** Parse the mask into date/time and literal parts */\n    public static parseDateTimeFormat(mask: string, formatter: BaseFormatter, locale?: string): DatePartInfo[] {\n        const format = mask || DateTimeUtil.getDefaultInputFormat(locale!, formatter);\n        const dateTimeParts: DatePartInfo[] = [];\n        const formatArray = Array.from(format);\n        let currentPart: DatePartInfo = null!;\n        let position = 0;\n        let lastPartAdded = false;\n        for (let i = 0; i < formatArray.length; i++, position++) {\n            const type = DateTimeUtil.determineDatePart(formatArray[i]);\n            if (currentPart) {\n                if (currentPart.type === type) {\n                    currentPart.format += formatArray[i];\n                    if (i < formatArray.length - 1) {\n                        continue;\n                    }\n                }\n\n                if (currentPart.type === DatePart.AmPm && currentPart.format.indexOf('a') !== -1) {\n                    currentPart = DateTimeUtil.simplifyAmPmFormat(currentPart);\n                }\n                DateTimeUtil.addCurrentPart(currentPart, dateTimeParts);\n                lastPartAdded = true;\n                position = currentPart.end;\n                if(i === formatArray.length - 1 && currentPart.type !== type) {\n                    lastPartAdded = false;\n                }\n            }\n\n            currentPart = {\n                start: position,\n                end: position + formatArray[i].length,\n                type,\n                format: formatArray[i]\n            };\n        }\n\n        // make sure the last member of a format like H:m:s is not omitted\n        if (!lastPartAdded) {\n            if (currentPart.type === DatePart.AmPm) {\n                currentPart = DateTimeUtil.simplifyAmPmFormat(currentPart);\n            }\n            DateTimeUtil.addCurrentPart(currentPart, dateTimeParts);\n        }\n        // formats like \"y\" or \"yyy\" are treated like \"yyyy\" while editing\n        const yearPart = dateTimeParts.filter(p => p.type === DatePart.Year)[0];\n        if (yearPart && yearPart.format !== 'yy') {\n            yearPart.end += 4 - yearPart.format.length;\n            yearPart.format = 'yyyy';\n        }\n\n        return dateTimeParts;\n    }\n\n    /** Simplifies the AmPm part to as many chars as will be displayed */\n    private static simplifyAmPmFormat(currentPart: DatePartInfo){\n            currentPart.format = currentPart.format.length === 5 ? 'a' : 'aa';\n            currentPart.end = currentPart.start +  currentPart.format.length;\n            return { ...currentPart };\n    }\n\n    public static getPartValue(value: Date, datePartInfo: DatePartInfo, partLength: number): string {\n        let maskedValue: any;\n        const datePart = datePartInfo.type;\n        switch (datePart) {\n            case DatePart.Date:\n                maskedValue = value.getDate();\n                break;\n            case DatePart.Month:\n                // months are zero based\n                maskedValue = value.getMonth() + 1;\n                break;\n            case DatePart.Year:\n                if (partLength === 2) {\n                    maskedValue = this.prependValue(\n                        parseInt(value.getFullYear().toString().slice(-2), 10), partLength, '0');\n                } else {\n                    maskedValue = value.getFullYear();\n                }\n                break;\n            case DatePart.Hours:\n                if (datePartInfo.format.indexOf('h') !== -1) {\n                    maskedValue = this.prependValue(\n                        this.toTwelveHourFormat(value.getHours().toString()), partLength, '0');\n                } else {\n                    maskedValue = value.getHours();\n                }\n                break;\n            case DatePart.Minutes:\n                maskedValue = value.getMinutes();\n                break;\n            case DatePart.Seconds:\n                maskedValue = value.getSeconds();\n                break;\n            case DatePart.FractionalSeconds:\n                maskedValue = value.getMilliseconds();\n                break;\n            case DatePart.AmPm:\n                maskedValue = DateTimeUtil.getAmPmValue(partLength, value.getHours() < 12);\n                break;\n        }\n\n        if (datePartInfo.type !== DatePart.AmPm && datePartInfo.type !== DatePart.Literal) {\n            return this.prependValue(maskedValue, partLength, '0');\n        }\n\n        return maskedValue;\n    }\n\n    /** Returns the AmPm part value depending on the part length and a\n     * conditional expression indicating whether the value is AM or PM.\n     */\n    public static getAmPmValue(partLength: number, isAm: boolean) {\n        if (isAm) {\n            return partLength === 1 ? AmPmValues.A : AmPmValues.AM;\n        } else {\n            return partLength === 1 ? AmPmValues.P : AmPmValues.PM;\n        }\n    }\n\n    /** Returns true if a string value indicates an AM period */\n    public static isAm(value: string) {\n        value = value.toLowerCase();\n        return (value === AmPmValues.AM.toLowerCase() || value === AmPmValues.A.toLowerCase());\n    }\n\n    /** Returns true if a string value indicates a PM period */\n    public static isPm(value: string) {\n        value = value.toLowerCase();\n        return (value === AmPmValues.PM.toLowerCase() || value === AmPmValues.P.toLowerCase());\n    }\n\n    /** Builds a date-time editor's default input format based on provided locale settings and data type. */\n    public static getDefaultInputFormat(locale: string, formatter: BaseFormatter, dataType: GridColumnDataType = GridColumnDataType.Date): string {\n        locale = locale || DateTimeUtil.DEFAULT_LOCALE;\n        return formatter.getLocaleDateTimeFormat(locale, true, DateTimeUtil.getFormatOptions(dataType, true));\n    }\n\n    /** Builds a date-time editor's default display format based on provided locale settings and data type. */\n    public static getDefaultDisplayFormat(locale: string, formatter: BaseFormatter, dataType: GridColumnDataType = GridColumnDataType.Date): string {\n        locale = locale || DateTimeUtil.DEFAULT_LOCALE;\n        return formatter.getLocaleDateTimeFormat(locale, false, DateTimeUtil.getFormatOptions(dataType, false));\n    }\n\n    /** Determines if a given character is `d/M/y` or `h/m/s`. */\n    public static isDateOrTimeChar(char: string): boolean {\n        return DATE_CHARS.indexOf(char) !== -1 || TIME_CHARS.indexOf(char) !== -1;\n    }\n\n    /** Spins the date portion in a date-time editor. */\n    public static spinDate(delta: number, newDate: Date, spinLoop: boolean): void {\n        const maxDate = DateTimeUtil.daysInMonth(newDate.getFullYear(), newDate.getMonth());\n        let date = newDate.getDate() + delta;\n        if (date > maxDate) {\n            date = spinLoop ? date % maxDate : maxDate;\n        } else if (date < 1) {\n            date = spinLoop ? maxDate + (date % maxDate) : 1;\n        }\n\n        newDate.setDate(date);\n    }\n\n    /** Spins the month portion in a date-time editor. */\n    public static spinMonth(delta: number, newDate: Date, spinLoop: boolean): void {\n        const maxDate = DateTimeUtil.daysInMonth(newDate.getFullYear(), newDate.getMonth() + delta);\n        if (newDate.getDate() > maxDate) {\n            newDate.setDate(maxDate);\n        }\n\n        const maxMonth = 11;\n        const minMonth = 0;\n        let month = newDate.getMonth() + delta;\n        if (month > maxMonth) {\n            month = spinLoop ? (month % maxMonth) - 1 : maxMonth;\n        } else if (month < minMonth) {\n            month = spinLoop ? maxMonth + (month % maxMonth) + 1 : minMonth;\n        }\n\n        newDate.setMonth(month);\n    }\n\n    /** Spins the year portion in a date-time editor. */\n    public static spinYear(delta: number, newDate: Date): void {\n        const maxDate = DateTimeUtil.daysInMonth(newDate.getFullYear() + delta, newDate.getMonth());\n        if (newDate.getDate() > maxDate) {\n            // clip to max to avoid leap year change shifting the entire value\n            newDate.setDate(maxDate);\n        }\n        newDate.setFullYear(newDate.getFullYear() + delta);\n    }\n\n    /** Spins the hours portion in a date-time editor. */\n    public static spinHours(delta: number, newDate: Date, spinLoop: boolean): void {\n        const maxHour = 23;\n        const minHour = 0;\n        let hours = newDate.getHours() + delta;\n        if (hours > maxHour) {\n            hours = spinLoop ? hours % maxHour - 1 : maxHour;\n        } else if (hours < minHour) {\n            hours = spinLoop ? maxHour + (hours % maxHour) + 1 : minHour;\n        }\n\n        newDate.setHours(hours);\n    }\n\n    /** Spins the minutes portion in a date-time editor. */\n    public static spinMinutes(delta: number, newDate: Date, spinLoop: boolean): void {\n        const maxMinutes = 59;\n        const minMinutes = 0;\n        let minutes = newDate.getMinutes() + delta;\n        if (minutes > maxMinutes) {\n            minutes = spinLoop ? minutes % maxMinutes - 1 : maxMinutes;\n        } else if (minutes < minMinutes) {\n            minutes = spinLoop ? maxMinutes + (minutes % maxMinutes) + 1 : minMinutes;\n        }\n\n        newDate.setMinutes(minutes);\n    }\n\n    /** Spins the seconds portion in a date-time editor. */\n    public static spinSeconds(delta: number, newDate: Date, spinLoop: boolean): void {\n        const maxSeconds = 59;\n        const minSeconds = 0;\n        let seconds = newDate.getSeconds() + delta;\n        if (seconds > maxSeconds) {\n            seconds = spinLoop ? seconds % maxSeconds - 1 : maxSeconds;\n        } else if (seconds < minSeconds) {\n            seconds = spinLoop ? maxSeconds + (seconds % maxSeconds) + 1 : minSeconds;\n        }\n\n        newDate.setSeconds(seconds);\n    }\n\n     /** Spins the fractional seconds (milliseconds) portion in a date-time editor. */\n    public static spinFractionalSeconds(delta: number, newDate: Date, spinLoop: boolean) {\n        const maxMs = 999;\n        const minMs = 0;\n        let ms = newDate.getMilliseconds() + delta;\n        if (ms > maxMs) {\n            ms = spinLoop ? ms % maxMs - 1 : maxMs;\n        } else if (ms < minMs) {\n            ms = spinLoop ? maxMs + (ms % maxMs) + 1 : minMs;\n        }\n\n        newDate.setMilliseconds(ms);\n    }\n\n    /** Spins the AM/PM portion in a date-time editor. */\n    public static spinAmPm(newDate: Date, currentDate: Date, amPmFromMask: string): Date {\n        if(DateTimeUtil.isAm(amPmFromMask)) {\n            newDate = new Date(newDate.setHours(newDate.getHours() + 12));\n        } else if(DateTimeUtil.isPm(amPmFromMask)) {\n            newDate = new Date(newDate.setHours(newDate.getHours() - 12));\n        }\n\n        if (newDate.getDate() !== currentDate.getDate()) {\n            return currentDate;\n        }\n\n        return newDate;\n    }\n\n    /**\n     * Determines whether the provided value is greater than the provided max value.\n     *\n     * @param includeTime set to false if you want to exclude time portion of the two dates\n     * @param includeDate set to false if you want to exclude the date portion of the two dates\n     * @returns true if provided value is greater than provided maxValue\n     */\n    public static greaterThanMaxValue(value: Date, maxValue: Date, includeTime = true, includeDate = true): boolean {\n        if (includeTime && includeDate) {\n            return value.getTime() > maxValue.getTime();\n        }\n\n        const _value = new Date(value.getTime());\n        const _maxValue = new Date(maxValue.getTime());\n        if (!includeTime) {\n            _value.setHours(0, 0, 0, 0);\n            _maxValue.setHours(0, 0, 0, 0);\n        }\n        if (!includeDate) {\n            _value.setFullYear(0, 0, 0);\n            _maxValue.setFullYear(0, 0, 0);\n        }\n\n        return _value.getTime() > _maxValue.getTime();\n    }\n\n    /**\n     * Determines whether the provided value is less than the provided min value.\n     *\n     * @param includeTime set to false if you want to exclude time portion of the two dates\n     * @param includeDate set to false if you want to exclude the date portion of the two dates\n     * @returns true if provided value is less than provided minValue\n     */\n    public static lessThanMinValue(value: Date, minValue: Date, includeTime = true, includeDate = true): boolean {\n        if (includeTime && includeDate) {\n            return value.getTime() < minValue.getTime();\n        }\n\n        const _value = new Date(value.getTime());\n        const _minValue = new Date(minValue.getTime());\n        if (!includeTime) {\n            _value.setHours(0, 0, 0, 0);\n            _minValue.setHours(0, 0, 0, 0);\n        }\n        if (!includeDate) {\n            _value.setFullYear(0, 0, 0);\n            _minValue.setFullYear(0, 0, 0);\n        }\n\n        return _value.getTime() < _minValue.getTime();\n    }\n\n    /**\n     * Validates a value within a given min and max value range.\n     *\n     * @param value The value to validate\n     * @param minValue The lowest possible value that `value` can take\n     * @param maxValue The largest possible value that `value` can take\n     */\n    public static validateMinMax(value: Date, minValue: Date | string, maxValue: Date | string,\n        includeTime = true, includeDate = true): ValidationErrors {\n        if (!value) {\n            return null!;\n        }\n        const errors = {};\n        const min = DateTimeUtil.isValidDate(minValue) ? minValue : DateTimeUtil.parseIsoDate(minValue);\n        const max = DateTimeUtil.isValidDate(maxValue) ? maxValue : DateTimeUtil.parseIsoDate(maxValue);\n        if (min && value && DateTimeUtil.lessThanMinValue(value, min, includeTime, includeDate)) {\n            Object.assign(errors, { minValue: true });\n        }\n        if (max && value && DateTimeUtil.greaterThanMaxValue(value, max, includeTime, includeDate)) {\n            Object.assign(errors, { maxValue: true });\n        }\n\n        return errors;\n    }\n\n    /** Parse an ISO string to a Date */\n    public static parseIsoDate(value: string): Date | null {\n        let regex = /^\\d{4}/g;\n        const timeLiteral = 'T';\n        if (regex.test(value)) {\n            return new Date(value + `${value.indexOf(timeLiteral) === -1 ? 'T00:00:00' : ''}`);\n        }\n\n        regex = /^\\d{2}/g;\n        if (regex.test(value)) {\n            const dateNow = new Date().toISOString();\n            // eslint-disable-next-line prefer-const\n            let [datePart, _timePart] = dateNow.split(timeLiteral);\n            return new Date(`${datePart}T${value}`);\n        }\n\n        return null;\n    }\n\n    /**\n     * Returns whether the input is valid date\n     *\n     * @param value input to check\n     * @returns true if provided input is a valid date\n     */\n    public static isValidDate(value: any): value is Date {\n        if (isDate(value)) {\n            return !isNaN(value.getTime());\n        }\n\n        return false;\n    }\n\n    public static isFormatNumeric(locale: string, inputFormat: string, formatter: BaseFormatter): boolean {\n        const dateParts = DateTimeUtil.parseDateTimeFormat(inputFormat, formatter);\n        if (predefinedNonNumericFormats.has(inputFormat) || dateParts.every(p => p.type === DatePart.Literal)) {\n            return false;\n        }\n        for (let i = 0; i < dateParts.length; i++) {\n            if (dateParts[i].type === DatePart.AmPm || dateParts[i].type === DatePart.Literal) {\n                continue;\n            }\n            const transformedValue = formatter.formatDate(new Date(), dateParts[i].format, locale);\n            // check if the transformed date/time part contains any kind of letter from any language\n            if (/\\p{L}+/gu.test(transformedValue)) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * Returns an input format that can be used by the date-time editors, as\n     * - if the format is already numeric, return it as is\n     * - if it is among the predefined numeric ones, return it as the equivalent locale-based format\n     *   for the corresponding numeric date parts\n     * - otherwise, return an empty string\n     */\n    public static getNumericInputFormat(locale: string, formatter: BaseFormatter, format: string): string {\n        let resultFormat = '';\n        if (!format) {\n            return resultFormat;\n        }\n        if (predefinedNumericFormats.has(format)) {\n            resultFormat = DateTimeUtil.getLocaleInputFormatFromParts(locale, formatter, predefinedNumericFormats.get(format)!);\n\n        } else if (DateTimeUtil.isFormatNumeric(locale, format, formatter)) {\n            resultFormat = format;\n        }\n        return resultFormat;\n    }\n\n    /** Gets the locale-based format from an array of date parts */\n    private static getLocaleInputFormatFromParts(locale: string, formatter: BaseFormatter, dateParts: DateParts[]): string {\n        const options: any = {};\n        dateParts.forEach(p => {\n            if (p === DateParts.Year) {\n                options[p] = FormatDesc.Numeric;\n            } else if (p !== DateParts.AmPm) {\n                options[p] = FormatDesc.TwoDigits;\n            }\n        });\n\n        return formatter.getLocaleDateTimeFormat(locale, true, options);\n    }\n\n    private static addCurrentPart(currentPart: DatePartInfo, dateTimeParts: DatePartInfo[]): void {\n        DateTimeUtil.ensureLeadingZero(currentPart);\n        currentPart.end = currentPart.start + currentPart.format.length;\n        dateTimeParts.push(currentPart);\n    }\n\n    private static daysInMonth(fullYear: number, month: number): number {\n        return new Date(fullYear, month + 1, 0).getDate();\n    }\n\n    private static trimEmptyPlaceholders(value: string, promptChar?: string): string {\n        const result = value.replace(new RegExp(promptChar || '_', 'g'), '');\n        return result;\n    }\n\n    private static prependValue(value: number, partLength: number, prependChar: string): string {\n        return (prependChar + value.toString()).slice(-partLength);\n    }\n\n    private static toTwelveHourFormat(value: string, promptChar = '_'): number {\n        let hour = parseInt(value.replace(new RegExp(promptChar, 'g'), '0'), 10);\n        if (hour > 12) {\n            hour -= 12;\n        } else if (hour === 0) {\n            hour = 12;\n        }\n\n        return hour;\n    }\n\n    private static ensureLeadingZero(part: DatePartInfo) {\n        switch (part.type) {\n            case DatePart.Date:\n            case DatePart.Month:\n            case DatePart.Hours:\n            case DatePart.Minutes:\n            case DatePart.Seconds:\n                if (part.format.length === 1) {\n                    part.format = part.format.repeat(2);\n                }\n                break;\n            case DatePart.FractionalSeconds:\n                part.format = part.format[0].repeat(3);\n                break;\n        }\n    }\n\n    private static getCleanVal(inputData: string, datePart: DatePartInfo, promptChar?: string): string {\n        return DateTimeUtil.trimEmptyPlaceholders(inputData.substring(datePart.start, datePart.end), promptChar);\n    }\n\n    private static determineDatePart(char: string): DatePart {\n        switch (char) {\n            case 'd':\n            case 'D':\n                return DatePart.Date;\n            case 'M':\n                return DatePart.Month;\n            case 'y':\n            case 'Y':\n                return DatePart.Year;\n            case 'h':\n            case 'H':\n                return DatePart.Hours;\n            case 'm':\n                return DatePart.Minutes;\n            case 's':\n                return DatePart.Seconds;\n            case 'S':\n                return DatePart.FractionalSeconds;\n            case 'a':\n            case 't':\n            case 'T':\n                return DatePart.AmPm;\n            default:\n                return DatePart.Literal;\n        }\n    }\n\n    private static getFormatOptions(dataType: GridColumnDataType, forceLeadingZero?: boolean) {\n        const resolvedFormat = forceLeadingZero ? FormatDesc.TwoDigits : FormatDesc.Numeric;\n        const dateOptions = {\n            day: resolvedFormat,\n            month: resolvedFormat,\n            year: FormatDesc.Numeric\n        };\n        const timeOptions = {\n            hour: resolvedFormat,\n            minute: resolvedFormat\n        };\n        switch (dataType) {\n            case GridColumnDataType.Date:\n                return dateOptions;\n            case GridColumnDataType.Time:\n                return timeOptions;\n            case GridColumnDataType.DateTime:\n                return {\n                    ...dateOptions,\n                    ...timeOptions,\n                    second: resolvedFormat\n                };\n            default:\n                return { };\n        }\n    }\n}\n","import { isDate } from '../../core/utils';\n\n/* eslint-disable @typescript-eslint/consistent-type-definitions */\nexport type DayParameter = CalendarDay | Date;\n\nexport type CalendarRangeParams = {\n    start: DayParameter;\n    end: DayParameter | number;\n    unit?: DayInterval;\n    inclusive?: boolean;\n};\n\ntype CalendarDayParams = {\n    year: number;\n    month: number;\n    date?: number;\n};\n\nexport type DayInterval = \"year\" | \"quarter\" | \"month\" | \"week\" | \"day\";\n\nexport const daysInWeek = 7;\nconst millisecondsInDay = 86400000;\n\nexport function toCalendarDay(date: DayParameter) {\n    return isDate(date) ? CalendarDay.from(date) : date;\n}\n\nfunction checkRollover(original: CalendarDay, modified: CalendarDay) {\n    return original.date !== modified.date\n        ? modified.set({ date: 0 })\n        : modified;\n}\n\nexport class CalendarDay {\n    private _date!: Date;\n\n    /** Constructs and returns the current day. */\n    public static get today() {\n        return CalendarDay.from(new Date());\n    }\n\n    /** Constructs a new CalendarDay instance from a Date object. */\n    public static from(date: Date) {\n        return new CalendarDay({\n            year: date.getFullYear(),\n            month: date.getMonth(),\n            date: date.getDate(),\n        });\n    }\n\n    constructor(args: CalendarDayParams) {\n        this._date = new Date(args.year, args.month, args.date ?? 1);\n    }\n\n    /** Returns a copy of this instance. */\n    public clone() {\n        return CalendarDay.from(this._date);\n    }\n\n    /**\n     * Returns a new instance with values replaced.\n     */\n    public set(args: Partial<CalendarDayParams>) {\n        return new CalendarDay({\n            year: args.year ?? this.year,\n            month: args.month ?? this.month,\n            date: args.date ?? this.date,\n        });\n    }\n\n    public add(unit: DayInterval, value: number) {\n        const result = this.clone();\n        switch (unit) {\n            case \"year\":\n                result._date.setFullYear(result.year + value);\n                return checkRollover(this, result);\n            case \"quarter\":\n                result._date.setMonth(result.month + 3 * value);\n                return checkRollover(this, result);\n            case \"month\":\n                result._date.setMonth(result.month + value);\n                return checkRollover(this, result);\n            case \"week\":\n                result._date.setDate(result.date + 7 * value);\n                return result;\n            case \"day\":\n                result._date.setDate(result.date + value);\n                return result;\n            default:\n                throw new Error(\"Invalid interval\");\n        }\n    }\n\n    /** Returns the day of the week (Sunday = 0). */\n    public get day() {\n        return this._date.getDay();\n    }\n\n    /** Returns the full year. */\n    public get year() {\n        return this._date.getFullYear();\n    }\n\n    /** Returns the month. */\n    public get month() {\n        return this._date.getMonth();\n    }\n\n    /** Returns the date */\n    public get date() {\n        return this._date.getDate();\n    }\n\n    /** Returns the timestamp since epoch in milliseconds. */\n    public get timestamp() {\n        return this._date.getTime();\n    }\n\n    /** Returns the ISO 8601 week number. */\n    public get week() {\n        return this.getWeekNumber();\n    }\n\n    /**\n     * Gets the week number based on week start day.\n     * Uses ISO 8601 (first Thursday rule) only when weekStart is Monday (1).\n     * For other week starts, uses simple counting from January 1st.\n     */\n    public getWeekNumber(weekStart: number = 1): number {\n        if (weekStart === 1) {\n            return this.calculateISO8601WeekNumber();\n        } else {\n            return this.calculateSimpleWeekNumber(weekStart);\n        }\n    }\n\n    /**\n     * Calculates week number using ISO 8601 standard (Monday start, first Thursday rule).\n     */\n    private calculateISO8601WeekNumber(): number {\n        const currentThursday = this.getThursdayOfWeek();\n        const firstWeekThursday = this.getFirstWeekThursday(currentThursday.year);\n\n        const weeksDifference = this.getWeeksDifference(currentThursday, firstWeekThursday);\n        const weekNumber = weeksDifference + 1;\n\n        // Handle dates that belong to the previous year's last week\n        if (weekNumber <= 0) {\n            return this.getPreviousYearLastWeek(currentThursday.year - 1);\n        }\n\n        return weekNumber;\n    }\n\n    /**\n     * Calculates week number using simple counting from January 1st.\n     */\n    private calculateSimpleWeekNumber(weekStart: number): number {\n        const yearStart = new CalendarDay({ year: this.year, month: 0, date: 1 });\n        const yearStartDay = yearStart.day;\n\n        const daysUntilFirstWeek = (weekStart - yearStartDay + 7) % 7;\n\n        if (daysUntilFirstWeek > 0) {\n            const firstWeekStart = yearStart.add('day', daysUntilFirstWeek);\n\n            if (this.timestamp < firstWeekStart.timestamp) {\n                const prevYear = this.year - 1;\n                const prevYearDec31 = new CalendarDay({ year: prevYear, month: 11, date: 31 });\n                return prevYearDec31.calculateSimpleWeekNumber(weekStart);\n            }\n\n            const daysSinceFirstWeek = Math.round((this.timestamp - firstWeekStart.timestamp) / millisecondsInDay);\n            return Math.floor(daysSinceFirstWeek / 7) + 1;\n        } else {\n            const daysSinceYearStart = Math.round((this.timestamp - yearStart.timestamp) / millisecondsInDay);\n            return Math.floor(daysSinceYearStart / 7) + 1;\n        }\n    }\n\n    /**\n     * Gets the Thursday of the current date's week (ISO 8601 helper).\n     */\n    private getThursdayOfWeek(): CalendarDay {\n        const dayOffset = (this.day - 1 + 7) % 7; // Monday start\n        const thursdayOffset = 3; // Thursday is 3 days from Monday\n        return this.add('day', thursdayOffset - dayOffset);\n    }\n\n    /**\n     * Gets the Thursday of the first week of the given year (ISO 8601 helper).\n     */\n    private getFirstWeekThursday(year: number): CalendarDay {\n        const january4th = new CalendarDay({ year, month: 0, date: 4 });\n        const dayOffset = (january4th.day - 1 + 7) % 7; // Monday start\n        const thursdayOffset = 3; // Thursday is 3 days from Monday\n        return january4th.add('day', thursdayOffset - dayOffset);\n    }\n\n    /**\n     * Calculates the number of weeks between two Thursday dates (ISO 8601 helper).\n     */\n    private getWeeksDifference(currentThursday: CalendarDay, firstWeekThursday: CalendarDay): number {\n        const daysDifference = Math.round((currentThursday.timestamp - firstWeekThursday.timestamp) / millisecondsInDay);\n        return Math.floor(daysDifference / 7);\n    }\n\n    /**\n     * Gets the last week number of the previous year (ISO 8601 helper).\n     */\n    private getPreviousYearLastWeek(previousYear: number): number {\n        const december31st = new CalendarDay({ year: previousYear, month: 11, date: 31 });\n        const lastWeekThursday = december31st.getThursdayOfWeek();\n        const firstWeekThursday = this.getFirstWeekThursday(previousYear);\n\n        return this.getWeeksDifference(lastWeekThursday, firstWeekThursday) + 1;\n    }\n\n    /** Returns the underlying native date instance. */\n    public get native() {\n        return new Date(this._date);\n    }\n\n    /**\n     * Whether the current date is a weekend day.\n     *\n     * @remarks\n     * This is naive, since it does not account for locale specifics.\n     */\n    public get weekend() {\n        return this.day < 1 || this.day > 5;\n    }\n\n    public equalTo(value: DayParameter) {\n        return this.timestamp === toCalendarDay(value).timestamp;\n    }\n\n    public greaterThan(value: DayParameter) {\n        return this.timestamp > toCalendarDay(value).timestamp;\n    }\n    public greaterThanOrEqual(value: DayParameter) {\n        return this.timestamp >= toCalendarDay(value).timestamp;\n    }\n\n    public lessThan(value: DayParameter) {\n        return this.timestamp < toCalendarDay(value).timestamp;\n    }\n\n    public lessThanOrEqual(value: DayParameter) {\n        return this.timestamp <= toCalendarDay(value).timestamp;\n    }\n\n    public toString() {\n        return `${this.native}`;\n    }\n}\n","import {\n    CalendarDay,\n    CalendarRangeParams,\n    DayParameter,\n    daysInWeek,\n    toCalendarDay,\n} from \"./model\";\nimport { DateRangeDescriptor, DateRangeType } from '../../core/dates';\nimport { first, last, modulo } from '../../core/utils';\nimport { getDateFormatter } from 'igniteui-i18n-core';\n\ninterface IFormattedParts {\n    value: string;\n    literal: string;\n    combined: string;\n}\n\nexport function areSameMonth(\n    firstMonth: DayParameter,\n    secondMonth: DayParameter,\n) {\n    const [a, b] = [toCalendarDay(firstMonth), toCalendarDay(secondMonth)];\n    return a.year === b.year && a.month === b.month;\n}\n\nexport function isNextMonth(target: DayParameter, origin: DayParameter) {\n    const [a, b] = [toCalendarDay(target), toCalendarDay(origin)];\n    return a.year === b.year ? a.month > b.month : a.year > b.year;\n}\n\nexport function isPreviousMonth(target: DayParameter, origin: DayParameter) {\n    const [a, b] = [toCalendarDay(target), toCalendarDay(origin)];\n    return a.year === b.year ? a.month < b.month : a.year < b.year;\n}\n\n/** Returns the next date starting from `start` that does not match the `disabled` descriptors */\nexport function getNextActiveDate(\n    start: CalendarDay,\n    disabled: DateRangeDescriptor[] = [],\n) {\n    while (isDateInRanges(start, disabled)) {\n        start = start.add(\"day\", 1);\n    }\n\n    return start;\n}\n\n/** Returns the previous date starting from `start` that does not match the `disabled` descriptors */\nexport function getPreviousActiveDate(\n    start: CalendarDay,\n    disabled: DateRangeDescriptor[] = [],\n) {\n    while (isDateInRanges(start, disabled)) {\n        start = start.add(\"day\", -1);\n    }\n\n    return start;\n}\n\nexport function getClosestActiveDate(\n    start: CalendarDay,\n    delta: number,\n    disabled: DateRangeDescriptor[] = [],\n): CalendarDay {\n    // TODO: implement a more robust logic for max attempts,\n    // i.e. the amount of days to jump between before giving up\n    // currently it will try to find the closest date for a year\n    const maxAttempts = 366;\n    let date = start;\n    let attempts = 0;\n\n    while (attempts < maxAttempts) {\n        date = start.add(\"day\", delta * (attempts + 1));\n\n        if (!isDateInRanges(date, disabled)) {\n            return date;\n        }\n\n        attempts++;\n    }\n\n    return date;\n}\n\n/**\n * Returns a generator yielding day values between `start` and `end` (non-inclusive)\n * by a given `unit` as a step.\n *\n * @remarks\n * By default, `unit` is set to 'day'.\n */\nexport function* calendarRange(\n    options: CalendarRangeParams\n): Generator<CalendarDay, void, unknown> {\n    const { start, end, unit = 'day', inclusive = false } = options;\n\n    let currentDate = toCalendarDay(start);\n    const endDate =\n        typeof end === 'number'\n            ? toCalendarDay(start).add(unit, end)\n            : toCalendarDay(end);\n\n    const isReversed = endDate.lessThan(currentDate);\n    const step = isReversed ? -1 : 1;\n\n    const shouldContinue = () => {\n        if (inclusive) {\n            return isReversed\n                ? currentDate.greaterThanOrEqual(endDate)\n                : currentDate.lessThanOrEqual(endDate);\n        }\n        return isReversed\n            ? currentDate.greaterThan(endDate)\n            : currentDate.lessThan(endDate);\n    };\n\n    while (shouldContinue()) {\n        yield currentDate;\n        currentDate = currentDate.add(unit, step);\n    }\n}\n\nexport function* generateMonth(value: DayParameter, firstWeekDay: number) {\n    const { year, month } = toCalendarDay(value);\n\n    const start = new CalendarDay({ year, month });\n    const offset = modulo(start.day - firstWeekDay, daysInWeek);\n    yield* calendarRange({\n        start: start.add(\"day\", -offset),\n        end: 42,\n    });\n}\n\nexport function getYearRange(current: DayParameter, range: number) {\n    const year = toCalendarDay(current).year;\n    const start = Math.floor(year / range) * range;\n    return { start, end: start + range - 1 };\n}\n\nexport function isDateInRanges(\n    date: DayParameter,\n    ranges: DateRangeDescriptor[],\n) {\n    const value = toCalendarDay(date);\n\n    return ranges.some((range) => {\n        const days = (range.dateRange ?? []).map((day) => toCalendarDay(day));\n\n        switch (range.type) {\n            case DateRangeType.After:\n                return value.greaterThan(first(days));\n\n            case DateRangeType.Before:\n                return value.lessThan(first(days));\n\n            case DateRangeType.Between: {\n                const min = Math.min(\n                    first(days).timestamp,\n                    last(days).timestamp,\n                );\n                const max = Math.max(\n                    first(days).timestamp,\n                    last(days).timestamp,\n                );\n                return value.timestamp >= min && value.timestamp <= max;\n            }\n\n            case DateRangeType.Specific:\n                return days.some((day) => day.equalTo(value));\n\n            case DateRangeType.Weekdays:\n                return !value.weekend;\n\n            case DateRangeType.Weekends:\n                return value.weekend;\n\n            default:\n                return false;\n        }\n    });\n}\n\nexport function formatToParts(\n    date: Date,\n    locale: string,\n    options: Intl.DateTimeFormatOptions,\n    parts: string[],\n): Record<string, any> {\n    const formatter = getDateFormatter().getIntlFormatter(locale, options);\n    const result: Record<string, any> = {\n        date,\n        full: formatter.format(date),\n    };\n\n    const getFormattedPart = (\n        formattedParts: Intl.DateTimeFormatPart[],\n        partType: string,\n    ): IFormattedParts => {\n        const part = formattedParts.find(({ type }) => type === partType);\n        const nextPart = formattedParts[formattedParts.indexOf(part!) + 1];\n        const value = part?.value || \"\";\n        const literal = nextPart?.type === \"literal\" ? nextPart.value : \"\";\n        return {\n            value,\n            literal,\n            combined: value + literal,\n        };\n    };\n\n    if (\"formatToParts\" in formatter) {\n        const formattedParts = formatter.formatToParts(date);\n        parts.forEach(\n            (part) => (result[part] = getFormattedPart(formattedParts, part)),\n        );\n    } else {\n        parts.forEach(\n            (part) => (result[part] = { value: \"\", literal: \"\", combined: \"\" }),\n        );\n    }\n\n    return result;\n}\n","import { cloneValue, cloneValueCached } from \"../core/utils\";\n\n/* blazorCSSuppress */\nexport interface IDataCloneStrategy {\n    /**\n     * Clones provided data\n     * @param data primitive value, date and object to be cloned\n     * @returns deep copy of provided value\n     */\n    clone(data: any): any;\n}\n\n/**\n * Simplified data clone strategy that deep clones primitive values, dates and objects.\n * Does not support circular references in objects.\n */\nexport class DefaultDataCloneStrategy implements IDataCloneStrategy {\n    public clone(data: any): any {\n        return cloneValue(data);\n    }\n}\n\n/**\n * Data clone strategy that is uses cache to deep clone primitive values, dates and objects.\n * It allows using circular references inside object.\n */\nexport class CachedDataCloneStrategy implements IDataCloneStrategy {\n    public clone(data: any): any {\n        return cloneValueCached(data, new Map<any, any>);\n    }\n}\n","import { IFilteringOperation } from './filtering-condition';\nimport { IExpressionTree } from './filtering-expressions-tree';\n\n/* mustCoerceToInt */\nexport enum FilteringLogic {\n    And,\n    Or\n}\n\n/* marshalByValue */\n/* tsPlainInterface */\n/**\n * Represents filtering expressions.\n */\nexport declare interface IFilteringExpression {\n    fieldName: string;\n    condition?: IFilteringOperation | null;\n    conditionName?: string | null;\n    searchVal?: any;\n    searchTree?: IExpressionTree | null;\n    ignoreCase?: boolean;\n}\n","/* blazorCSSuppress */\n/**\n * Provides base filtering operations\n * Implementations should be Singleton\n *\n * @export\n */\nexport class IgxFilteringOperand {\n    protected static _instance: IgxFilteringOperand = null!;\n    public operations: IFilteringOperation[];\n\n    constructor() {\n        this.operations = [{\n            name: 'null',\n            isUnary: true,\n            iconName: 'filter_null',\n            logic: (target: any) => target === null\n        }, {\n            name: 'notNull',\n            isUnary: true,\n            iconName: 'filter_not_null',\n            logic: (target: any) => target !== null\n        }, {\n            name: 'in',\n            isUnary: false,\n            iconName: 'filter_in',\n            hidden: true,\n            logic: (target: any, searchVal: Set<any>) => this.findValueInSet(target, searchVal)\n        }, {\n            name: 'inQuery',\n            isUnary: false,\n            isNestedQuery: true,\n            iconName: 'in',\n            logic: (target: any, searchVal: Set<any>) => this.findValueInSet(target, searchVal)\n        }, {\n            name: 'notInQuery',\n            isUnary: false,\n            isNestedQuery: true,\n            iconName: 'not-in',\n            logic: (target: any, searchVal: Set<any>) => !this.findValueInSet(target, searchVal)\n        }];\n    }\n\n    public static instance(): IgxFilteringOperand {\n        return this._instance || (this._instance = new this());\n    }\n\n    /**\n     * Returns an array of names of the conditions which are visible in the filtering UI\n     */\n    public conditionList(): string[] {\n        return this.operations.filter(f => !f.hidden && !f.isNestedQuery).map((element) => element.name);\n    }\n\n    /**\n     * Returns an array of names of the conditions which are visible in the UI, including \"In\" and \"Not In\", allowing the creation of sub-queries.\n     * @hidden @internal\n     */\n    public extendedConditionList(): string[] {\n        return this.operations.filter(f => !f.hidden).map((element) => element.name);\n    }\n\n    /**\n     * Returns an instance of the condition with the specified name.\n     *\n     * @param name The name of the condition.\n     */\n    public condition(name: string): IFilteringOperation {\n        return this.operations.find((element) => element.name === name)!;\n    }\n\n    /**\n     * Adds a new condition to the filtering operations.\n     *\n     * @param operation The filtering operation.\n     */\n    public append(operation: IFilteringOperation) {\n        this.operations.push(operation);\n    }\n\n    protected findValueInSet(target: any, searchVal: Set<any>) {\n        return searchVal.has(target);\n    }\n}\n\n/* blazorCSSuppress */\n/**\n * Provides filtering operations for booleans\n *\n * @export\n */\nexport class IgxBooleanFilteringOperand extends IgxFilteringOperand {\n    protected constructor() {\n        super();\n        const newOperations: IFilteringOperation[] = [{\n            name: 'all',\n            isUnary: true,\n            iconName: 'filter_all',\n            logic: (_target: boolean) => true\n        }, {\n            name: 'true',\n            isUnary: true,\n            iconName: 'filter_true',\n            logic: (target: boolean) => !!(target && target !== null && target !== undefined)\n        }, {\n            name: 'false',\n            isUnary: true,\n            iconName: 'filter_false',\n            logic: (target: boolean) => !target && target !== null && target !== undefined\n        }, {\n            name: 'empty',\n            isUnary: true,\n            iconName: 'filter_empty',\n            logic: (target: boolean) => target === null || target === undefined\n        }, {\n            name: 'notEmpty',\n            isUnary: true,\n            iconName: 'filter_not_empty',\n            logic: (target: boolean) => target !== null && target !== undefined\n        }];\n\n        this.operations = newOperations.concat(this.operations);\n    }\n}\n\n/* blazorCSSuppress */\n/**\n * @internal\n * @hidden\n */\nclass IgxBaseDateTimeFilteringOperand extends IgxFilteringOperand {\n    protected constructor() {\n        super();\n        const newOperations: IFilteringOperation[] = [{\n            name: 'empty',\n            isUnary: true,\n            iconName: 'filter_empty',\n            logic: (target: Date) => target === null || target === undefined\n        }, {\n            name: 'notEmpty',\n            isUnary: true,\n            iconName: 'filter_not_empty',\n            logic: (target: Date) => target !== null && target !== undefined\n        }];\n\n        this.operations = newOperations.concat(this.operations);\n    }\n\n    /**\n     * Splits a Date object into parts\n     *\n     * @memberof IgxDateFilteringOperand\n     */\n    public static getDateParts(date: Date, dateFormat?: string): IDateParts {\n        const res: IDateParts = {\n            day: null!,\n            hours: null!,\n            milliseconds: null!,\n            minutes: null!,\n            month: null!,\n            seconds: null!,\n            year: null!\n        };\n        if (!date || !dateFormat) {\n            return res;\n        }\n        if (dateFormat.indexOf('y') >= 0) {\n            res.year = date.getFullYear();\n        }\n        if (dateFormat.indexOf('M') >= 0) {\n            res.month = date.getMonth();\n        }\n        if (dateFormat.indexOf('d') >= 0) {\n            res.day = date.getDate();\n        }\n        if (dateFormat.indexOf('h') >= 0) {\n            res.hours = date.getHours();\n        }\n        if (dateFormat.indexOf('m') >= 0) {\n            res.minutes = date.getMinutes();\n        }\n        if (dateFormat.indexOf('s') >= 0) {\n            res.seconds = date.getSeconds();\n        }\n        if (dateFormat.indexOf('f') >= 0) {\n            res.milliseconds = date.getMilliseconds();\n        }\n        return res;\n    }\n\n    protected override findValueInSet(target: any, searchVal: Set<any>) {\n        if (!target) {\n            return false;\n        }\n        return searchVal.has((target instanceof Date) ? target.toISOString() : target);\n    }\n\n    protected validateInputData(target: Date) {\n        if (!(target instanceof Date)) {\n            throw new Error('Could not perform filtering on \\'date\\' column because the datasource object type is not \\'Date\\'.');\n        }\n    }\n}\n\n/* blazorCSSuppress */\n/**\n * Provides filtering operations for Dates\n *\n * @export\n */\nexport class IgxDateFilteringOperand extends IgxBaseDateTimeFilteringOperand {\n    protected constructor() {\n        super();\n        const newOperations: IFilteringOperation[] = [{\n            name: 'equals',\n            isUnary: false,\n            iconName: 'filter_equal',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const targetp = IgxDateFilteringOperand.getDateParts(target, 'yMd');\n                const searchp = IgxDateFilteringOperand.getDateParts(searchVal, 'yMd');\n                return targetp.year === searchp.year &&\n                    targetp.month === searchp.month &&\n                    targetp.day === searchp.day;\n            }\n        }, {\n            name: 'doesNotEqual',\n            isUnary: false,\n            iconName: 'filter_not_equal',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return true;\n                }\n\n                this.validateInputData(target);\n\n                const targetp = IgxDateFilteringOperand.getDateParts(target, 'yMd');\n                const searchp = IgxDateFilteringOperand.getDateParts(searchVal, 'yMd');\n                return targetp.year !== searchp.year ||\n                    targetp.month !== searchp.month ||\n                    targetp.day !== searchp.day;\n            }\n        }, {\n            name: 'before',\n            isUnary: false,\n            iconName: 'filter_before',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                return target < searchVal;\n            }\n        }, {\n            name: 'after',\n            isUnary: false,\n            iconName: 'filter_after',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                return target > searchVal;\n            }\n        }, {\n            name: 'today',\n            isUnary: true,\n            iconName: 'filter_today',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateFilteringOperand.getDateParts(target, 'yMd');\n                const now = IgxDateFilteringOperand.getDateParts(new Date(), 'yMd');\n                return d.year === now.year &&\n                    d.month === now.month &&\n                    d.day === now.day;\n            }\n        }, {\n            name: 'yesterday',\n            isUnary: true,\n            iconName: 'filter_yesterday',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const td = IgxDateFilteringOperand.getDateParts(target, 'yMd');\n                const y = ((d) => new Date(d.setDate(d.getDate() - 1)))(new Date());\n                const yesterday = IgxDateFilteringOperand.getDateParts(y, 'yMd');\n                return td.year === yesterday.year &&\n                    td.month === yesterday.month &&\n                    td.day === yesterday.day;\n            }\n        }, {\n            name: 'thisMonth',\n            isUnary: true,\n            iconName: 'filter_this_month',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateFilteringOperand.getDateParts(target, 'yM');\n                const now = IgxDateFilteringOperand.getDateParts(new Date(), 'yM');\n                return d.year === now.year &&\n                    d.month === now.month;\n            }\n        }, {\n            name: 'lastMonth',\n            isUnary: true,\n            iconName: 'filter_last_month',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateFilteringOperand.getDateParts(target, 'yM');\n                const now = IgxDateFilteringOperand.getDateParts(new Date(), 'yM');\n                if (!now.month) {\n                    now.month = 11;\n                    now.year -= 1;\n                } else {\n                    now.month--;\n                }\n                return d.year === now.year &&\n                    d.month === now.month;\n            }\n        }, {\n            name: 'nextMonth',\n            isUnary: true,\n            iconName: 'filter_next_month',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateFilteringOperand.getDateParts(target, 'yM');\n                const now = IgxDateFilteringOperand.getDateParts(new Date(), 'yM');\n                if (now.month === 11) {\n                    now.month = 0;\n                    now.year += 1;\n                } else {\n                    now.month++;\n                }\n                return d.year === now.year &&\n                    d.month === now.month;\n            }\n        }, {\n            name: 'thisYear',\n            isUnary: true,\n            iconName: 'filter_this_year',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateFilteringOperand.getDateParts(target, 'y');\n                const now = IgxDateFilteringOperand.getDateParts(new Date(), 'y');\n                return d.year === now.year;\n            }\n        }, {\n            name: 'lastYear',\n            isUnary: true,\n            iconName: 'filter_last_year',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateFilteringOperand.getDateParts(target, 'y');\n                const now = IgxDateFilteringOperand.getDateParts(new Date(), 'y');\n                return d.year === now.year - 1;\n            }\n        }, {\n            name: 'nextYear',\n            isUnary: true,\n            iconName: 'filter_next_year',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateFilteringOperand.getDateParts(target, 'y');\n                const now = IgxDateFilteringOperand.getDateParts(new Date(), 'y');\n                return d.year === now.year + 1;\n            }\n        }];\n\n        this.operations = newOperations.concat(this.operations);\n    }\n\n    protected override findValueInSet(target: any, searchVal: Set<any>) {\n        if (!target) {\n            return false;\n        }\n\n        target = target.toDateString();\n        return searchVal.has(target);\n    }\n}\n\n/* blazorCSSuppress */\nexport class IgxDateTimeFilteringOperand extends IgxBaseDateTimeFilteringOperand {\n    protected constructor() {\n        super();\n        const newOperations: IFilteringOperation[] = [{\n            name: 'equals',\n            isUnary: false,\n            iconName: 'filter_equal',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n                this.validateInputData(target);\n                const targetp = IgxDateTimeFilteringOperand.getDateParts(target, 'yMdhms');\n                const searchp = IgxDateTimeFilteringOperand.getDateParts(searchVal, 'yMdhms');\n                return targetp.year === searchp.year &&\n                    targetp.month === searchp.month &&\n                    targetp.day === searchp.day &&\n                    targetp.hours === searchp.hours &&\n                    targetp.minutes === searchp.minutes &&\n                    targetp.seconds === searchp.seconds;\n            }\n        }, {\n            name: 'doesNotEqual',\n            isUnary: false,\n            iconName: 'filter_not_equal',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return true;\n                }\n                this.validateInputData(target);\n                const targetp = IgxDateTimeFilteringOperand.getDateParts(target, 'yMdhms');\n                const searchp = IgxDateTimeFilteringOperand.getDateParts(searchVal, 'yMdhms');\n                return targetp.year !== searchp.year ||\n                    targetp.month !== searchp.month ||\n                    targetp.day !== searchp.day ||\n                    targetp.hours !== searchp.hours ||\n                    targetp.minutes !== searchp.minutes ||\n                    targetp.seconds !== searchp.seconds;\n            }\n        }, {\n            name: 'before',\n            isUnary: false,\n            iconName: 'filter_before',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                return target < searchVal;\n            }\n        }, {\n            name: 'after',\n            isUnary: false,\n            iconName: 'filter_after',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                return target > searchVal;\n            }\n        }, {\n            name: 'today',\n            isUnary: true,\n            iconName: 'filter_today',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateTimeFilteringOperand.getDateParts(target, 'yMd');\n                const now = IgxDateTimeFilteringOperand.getDateParts(new Date(), 'yMd');\n                return d.year === now.year &&\n                    d.month === now.month &&\n                    d.day === now.day;\n            }\n        }, {\n            name: 'yesterday',\n            isUnary: true,\n            iconName: 'filter_yesterday',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const td = IgxDateTimeFilteringOperand.getDateParts(target, 'yMd');\n                const y = ((d) => new Date(d.setDate(d.getDate() - 1)))(new Date());\n                const yesterday = IgxDateTimeFilteringOperand.getDateParts(y, 'yMd');\n                return td.year === yesterday.year &&\n                    td.month === yesterday.month &&\n                    td.day === yesterday.day;\n            }\n        }, {\n            name: 'thisMonth',\n            isUnary: true,\n            iconName: 'filter_this_month',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateTimeFilteringOperand.getDateParts(target, 'yM');\n                const now = IgxDateTimeFilteringOperand.getDateParts(new Date(), 'yM');\n                return d.year === now.year &&\n                    d.month === now.month;\n            }\n        }, {\n            name: 'lastMonth',\n            isUnary: true,\n            iconName: 'filter_last_month',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateTimeFilteringOperand.getDateParts(target, 'yM');\n                const now = IgxDateTimeFilteringOperand.getDateParts(new Date(), 'yM');\n                if (!now.month) {\n                    now.month = 11;\n                    now.year -= 1;\n                } else {\n                    now.month--;\n                }\n                return d.year === now.year &&\n                    d.month === now.month;\n            }\n        }, {\n            name: 'nextMonth',\n            isUnary: true,\n            iconName: 'filter_next_month',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateTimeFilteringOperand.getDateParts(target, 'yM');\n                const now = IgxDateTimeFilteringOperand.getDateParts(new Date(), 'yM');\n                if (now.month === 11) {\n                    now.month = 0;\n                    now.year += 1;\n                } else {\n                    now.month++;\n                }\n                return d.year === now.year &&\n                    d.month === now.month;\n            }\n        }, {\n            name: 'thisYear',\n            isUnary: true,\n            iconName: 'filter_this_year',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateTimeFilteringOperand.getDateParts(target, 'y');\n                const now = IgxDateTimeFilteringOperand.getDateParts(new Date(), 'y');\n                return d.year === now.year;\n            }\n        }, {\n            name: 'lastYear',\n            isUnary: true,\n            iconName: 'filter_last_year',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateTimeFilteringOperand.getDateParts(target, 'y');\n                const now = IgxDateTimeFilteringOperand.getDateParts(new Date(), 'y');\n                return d.year === now.year - 1;\n            }\n        }, {\n            name: 'nextYear',\n            isUnary: true,\n            iconName: 'filter_next_year',\n            logic: (target: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n\n                const d = IgxDateTimeFilteringOperand.getDateParts(target, 'y');\n                const now = IgxDateTimeFilteringOperand.getDateParts(new Date(), 'y');\n                return d.year === now.year + 1;\n            }\n        }];\n\n        this.operations = newOperations.concat(this.operations);\n    }\n}\n\n/* blazorCSSuppress */\nexport class IgxTimeFilteringOperand extends IgxBaseDateTimeFilteringOperand {\n    protected constructor() {\n        super();\n        const newOperations: IFilteringOperation[] = [{\n            name: 'at',\n            isUnary: false,\n            iconName: 'filter_equal',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n                this.validateInputData(target);\n                const targetp = IgxTimeFilteringOperand.getDateParts(target, 'hms');\n                const searchp = IgxTimeFilteringOperand.getDateParts(searchVal, 'hms');\n                return targetp.hours === searchp.hours &&\n                    targetp.minutes === searchp.minutes &&\n                    targetp.seconds === searchp.seconds;\n            }\n        }, {\n            name: 'not_at',\n            isUnary: false,\n            iconName: 'filter_not_equal',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return true;\n                }\n                this.validateInputData(target);\n                const targetp = IgxTimeFilteringOperand.getDateParts(target, 'hms');\n                const searchp = IgxTimeFilteringOperand.getDateParts(searchVal, 'hms');\n                return targetp.hours !== searchp.hours ||\n                    targetp.minutes !== searchp.minutes ||\n                    targetp.seconds !== searchp.seconds;\n            }\n        }, {\n            name: 'before',\n            isUnary: false,\n            iconName: 'filter_before',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n                const targetn = IgxTimeFilteringOperand.getDateParts(target, 'hms');\n                const search = IgxTimeFilteringOperand.getDateParts(searchVal, 'hms');\n\n                return targetn.hours < search.hours ? true : targetn.hours === search.hours && targetn.minutes < search.minutes ?\n                    true : targetn.hours === search.hours && targetn.minutes === search.minutes && targetn.seconds < search.seconds;\n            }\n        }, {\n            name: 'after',\n            isUnary: false,\n            iconName: 'filter_after',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n                const targetn = IgxTimeFilteringOperand.getDateParts(target, 'hms');\n                const search = IgxTimeFilteringOperand.getDateParts(searchVal, 'hms');\n\n                return targetn.hours > search.hours ? true : targetn.hours === search.hours && targetn.minutes > search.minutes ?\n                    true : targetn.hours === search.hours && targetn.minutes === search.minutes && targetn.seconds > search.seconds;\n            }\n        }, {\n            name: 'at_before',\n            isUnary: false,\n            iconName: 'filter_before',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n                const targetn = IgxTimeFilteringOperand.getDateParts(target, 'hms');\n                const search = IgxTimeFilteringOperand.getDateParts(searchVal, 'hms');\n                return (targetn.hours === search.hours && targetn.minutes === search.minutes && targetn.seconds === search.seconds) ||\n                targetn.hours < search.hours ? true : targetn.hours === search.hours && targetn.minutes < search.minutes ?\n                    true : targetn.hours === search.hours && targetn.minutes === search.minutes && targetn.seconds < search.seconds;\n            }\n        }, {\n            name: 'at_after',\n            isUnary: false,\n            iconName: 'filter_after',\n            logic: (target: Date, searchVal: Date) => {\n                if (!target) {\n                    return false;\n                }\n\n                this.validateInputData(target);\n                const targetn = IgxTimeFilteringOperand.getDateParts(target, 'hms');\n                const search = IgxTimeFilteringOperand.getDateParts(searchVal, 'hms');\n                return (targetn.hours === search.hours && targetn.minutes === search.minutes && targetn.seconds === search.seconds) ||\n                    targetn.hours > search.hours ? true : targetn.hours === search.hours && targetn.minutes > search.minutes ?\n                    true : targetn.hours === search.hours && targetn.minutes === search.minutes && targetn.seconds > search.seconds;\n            }\n        }];\n\n        this.operations = newOperations.concat(this.operations);\n    }\n\n    protected override findValueInSet(target: any, searchVal: Set<any>) {\n        if (!target) {\n            return false;\n        }\n        return searchVal.has(target.toLocaleTimeString());\n    }\n}\n\n/* blazorCSSuppress */\n/**\n * Provides filtering operations for numbers\n *\n * @export\n */\nexport class IgxNumberFilteringOperand extends IgxFilteringOperand {\n    protected constructor() {\n        super();\n        const newOperations: IFilteringOperation[] = [{\n            name: 'equals',\n            isUnary: false,\n            iconName: 'filter_equal',\n            logic: (target: number, searchVal: number) => target === searchVal\n        }, {\n            name: 'doesNotEqual',\n            isUnary: false,\n            iconName: 'filter_not_equal',\n            logic: (target: number, searchVal: number) => target !== searchVal\n        }, {\n            name: 'greaterThan',\n            isUnary: false,\n            iconName: 'filter_greater_than',\n            logic: (target: number, searchVal: number) => target > searchVal\n        }, {\n            name: 'lessThan',\n            isUnary: false,\n            iconName: 'filter_less_than',\n            logic: (target: number, searchVal: number) => target < searchVal\n        }, {\n            name: 'greaterThanOrEqualTo',\n            isUnary: false,\n            iconName: 'filter_greater_than_or_equal',\n            logic: (target: number, searchVal: number) => target >= searchVal\n        }, {\n            name: 'lessThanOrEqualTo',\n            isUnary: false,\n            iconName: 'filter_less_than_or_equal',\n            logic: (target: number, searchVal: number) => target <= searchVal\n        }, {\n            name: 'empty',\n            isUnary: true,\n            iconName: 'filter_empty',\n            logic: (target: number) => target === null || target === undefined || isNaN(target)\n        }, {\n            name: 'notEmpty',\n            isUnary: true,\n            iconName: 'filter_not_empty',\n            logic: (target: number) => target !== null && target !== undefined && !isNaN(target)\n        }];\n\n        this.operations = newOperations.concat(this.operations);\n    }\n}\n\n/* blazorCSSuppress */\n/**\n * Provides filtering operations for strings\n *\n * @export\n */\nexport class IgxStringFilteringOperand extends IgxFilteringOperand {\n    protected constructor() {\n        super();\n        const newOperations: IFilteringOperation[] = [{\n            name: 'contains',\n            isUnary: false,\n            iconName: 'filter_contains',\n            logic: (target: string, searchVal: string, ignoreCase?: boolean) => {\n                const search = IgxStringFilteringOperand.applyIgnoreCase(searchVal, ignoreCase!);\n                target = IgxStringFilteringOperand.applyIgnoreCase(target, ignoreCase!);\n                return target.indexOf(search) !== -1;\n            }\n        }, {\n            name: 'doesNotContain',\n            isUnary: false,\n            iconName: 'filter_does_not_contain',\n            logic: (target: string, searchVal: string, ignoreCase?: boolean) => {\n                const search = IgxStringFilteringOperand.applyIgnoreCase(searchVal, ignoreCase!);\n                target = IgxStringFilteringOperand.applyIgnoreCase(target, ignoreCase!);\n                return target.indexOf(search) === -1;\n            }\n        }, {\n            name: 'startsWith',\n            isUnary: false,\n            iconName: 'filter_starts_with',\n            logic: (target: string, searchVal: string, ignoreCase?: boolean) => {\n                const search = IgxStringFilteringOperand.applyIgnoreCase(searchVal, ignoreCase!);\n                target = IgxStringFilteringOperand.applyIgnoreCase(target, ignoreCase!);\n                return target.startsWith(search);\n            }\n        }, {\n            name: 'endsWith',\n            isUnary: false,\n            iconName: 'filter_ends_with',\n            logic: (target: string, searchVal: string, ignoreCase?: boolean) => {\n                const search = IgxStringFilteringOperand.applyIgnoreCase(searchVal, ignoreCase!);\n                target = IgxStringFilteringOperand.applyIgnoreCase(target, ignoreCase!);\n                return target.endsWith(search);\n            }\n        }, {\n            name: 'equals',\n            isUnary: false,\n            iconName: 'filter_equal',\n            logic: (target: string, searchVal: string, ignoreCase?: boolean) => {\n                const search = IgxStringFilteringOperand.applyIgnoreCase(searchVal, ignoreCase!);\n                target = IgxStringFilteringOperand.applyIgnoreCase(target, ignoreCase!);\n                return target === search;\n            }\n        }, {\n            name: 'doesNotEqual',\n            isUnary: false,\n            iconName: 'filter_not_equal',\n            logic: (target: string, searchVal: string, ignoreCase?: boolean) => {\n                const search = IgxStringFilteringOperand.applyIgnoreCase(searchVal, ignoreCase!);\n                target = IgxStringFilteringOperand.applyIgnoreCase(target, ignoreCase!);\n                return target !== search;\n            }\n        }, {\n            name: 'empty',\n            isUnary: true,\n            iconName: 'filter_empty',\n            logic: (target: string) => target === null || target === undefined || target.length === 0\n        }, {\n            name: 'notEmpty',\n            isUnary: true,\n            iconName: 'filter_not_empty',\n            logic: (target: string) => target !== null && target !== undefined && target.length > 0\n        }];\n\n        this.operations = newOperations.concat(this.operations);\n    }\n\n    /**\n     * Applies case sensitivity on strings if provided\n     *\n     * @memberof IgxStringFilteringOperand\n     */\n    public static applyIgnoreCase(a: string, ignoreCase: boolean): string {\n        a = a ?? '';\n        // bulletproof\n        return ignoreCase ? ('' + a).toLowerCase() : a;\n    }\n}\n\n/* tsPlainInterface */\n/* marshalByValue */\n/**\n * Interface describing filtering operations\n *\n * @export\n */\nexport interface IFilteringOperation {\n    name: string;\n    isUnary: boolean;\n    isNestedQuery?: boolean;\n    iconName: string;\n    hidden?: boolean;\n    /* blazorCSSuppress */\n    /* blazorAlternateType: FilteringOperationLogicHandler */\n    logic?: null | ((value: any, searchVal?: any, ignoreCase?: boolean) => boolean);\n}\n\n/**\n * Interface describing Date object in parts\n *\n * @export\n */\nexport interface IDateParts {\n    year: number;\n    month: number;\n    day: number;\n    hours: number;\n    minutes: number;\n    seconds: number;\n    milliseconds: number;\n}\n","import type { EntityType, FieldType } from './grid-types';\nimport { GridColumnDataType } from './grid-types';\nimport { IFilteringOperation, IgxBooleanFilteringOperand, IgxDateFilteringOperand, IgxDateTimeFilteringOperand, IgxFilteringOperand, IgxNumberFilteringOperand, IgxStringFilteringOperand, IgxTimeFilteringOperand } from './filtering-condition';\nimport { IFilteringExpression } from './filtering-expression.interface';\nimport { IExpressionTree, IFilteringExpressionsTree } from './filtering-expressions-tree';\nimport { DateTimeUtil } from '../date-common/public_api';\n\nexport class ExpressionsTreeUtil {\n    /**\n     * Returns the filtering expression for a column with the provided tree and fieldName.\n     * ```typescript\n     * let filteringExpression = ExpressionsTreeUtil.find(gridExpressionTree, 'Column Field');\n     * ```\n     */\n    public static find(tree: IFilteringExpressionsTree, fieldName: string): IFilteringExpressionsTree | IFilteringExpression {\n        const index = this.findIndex(tree, fieldName);\n\n        if (index > -1) {\n            return tree.filteringOperands[index];\n        }\n\n        return null!;\n    }\n\n    /**\n     * Returns the index of the filtering expression for a column with the provided tree and fieldName.\n     * ```typescript\n     * let filteringExpressionIndex = ExpressionsTreeUtil.findIndex(gridExpressionTree, 'Column Field');\n     * ```\n     */\n    public static findIndex(tree: IFilteringExpressionsTree, fieldName: string): number {\n        for (let i = 0; i < tree.filteringOperands.length; i++) {\n            const expr = tree.filteringOperands[i];\n            if ((expr as IFilteringExpressionsTree).operator !== undefined) {\n                if (this.isFilteringExpressionsTreeForColumn(expr as IFilteringExpressionsTree, fieldName)) {\n                    return i;\n                }\n            } else if ((expr as IFilteringExpression).fieldName === fieldName) {\n                return i;\n            }\n        }\n\n        return -1;\n    }\n\n    protected static isFilteringExpressionsTreeForColumn(expressionsTree: IFilteringExpressionsTree, fieldName: string): boolean {\n        if (expressionsTree.fieldName === fieldName) {\n            return true;\n        }\n\n        for (const expr of expressionsTree.filteringOperands) {\n            if ((expr as IFilteringExpressionsTree).operator !== undefined) {\n                return this.isFilteringExpressionsTreeForColumn(expr as IFilteringExpressionsTree, fieldName);\n            } else if ((expr as IFilteringExpression).fieldName === fieldName) {\n                return true;\n            }\n        }\n        return false;\n    }\n}\n\n/**\n * Recreates the search value for a given expression.\n * @param searchValue The search value to recreate.\n * @param dataType The data type of the field.\n * @returns The recreated search value.\n */\nfunction recreateSearchValue(searchValue: any, dataType: string): any {\n    if (!dataType && !Array.isArray(searchValue)) {\n        return searchValue;\n    }\n    // In ESF, values are stored as a Set.\n    // Those values are converted to an array before returning string in the stringifyCallback\n    // now we need to convert those back to Set\n    if (Array.isArray(searchValue)) {\n        return new Set(searchValue);\n    } else if ((dataType.toLowerCase().includes('date') || dataType.toLowerCase().includes('time')) && !(searchValue instanceof Date)) {\n        return DateTimeUtil.parseIsoDate(searchValue) ?? searchValue;\n    }\n\n    return searchValue;\n}\n\n/**\n * Returns the filtering logic function for a given dataType and condition (contains, greaterThan, etc.)\n * @param dataType The data type of the field.\n * @param name The name of the filtering condition.\n * @returns The filtering logic function.\n */\nfunction getFilteringCondition(dataType: string, name: string): IFilteringOperation {\n    let filters: IgxFilteringOperand;\n    switch (dataType) {\n        case GridColumnDataType.Boolean:\n            filters = IgxBooleanFilteringOperand.instance();\n            break;\n        case GridColumnDataType.Number:\n        case GridColumnDataType.Currency:\n        case GridColumnDataType.Percent:\n            filters = IgxNumberFilteringOperand.instance();\n            break;\n        case GridColumnDataType.Date:\n            filters = IgxDateFilteringOperand.instance();\n            break;\n        case GridColumnDataType.Time:\n            filters = IgxTimeFilteringOperand.instance();\n            break;\n        case GridColumnDataType.DateTime:\n            filters = IgxDateTimeFilteringOperand.instance();\n            break;\n        case GridColumnDataType.String:\n        default:\n            filters = IgxStringFilteringOperand.instance();\n            break;\n    }\n    return filters.condition(name);\n}\n\n/**\n * Recreates the IFilteringOperation for a given expression.\n * If the `logic` is already populated - it will return the original IFilteringOperation\n * of the expression.\n * @param expression The expression for which to resolve the IFilteringOperation.\n * @param dataType The data type of the field.\n * @returns The IFilteringOperation for the given expression.\n */\nfunction recreateOperatorFromDataType(expression: IFilteringExpression, dataType: string): IFilteringOperation {\n    if (!expression.condition?.logic) {\n        return getFilteringCondition(dataType, (expression.conditionName || expression.condition?.name)!);\n    }\n\n    return expression.condition;\n}\n\n/**\n * Recreates an expression from the given fields by applying the correct operands\n * and adjusting the search value to be the correct type.\n * @param expression The expression to recreate.\n * @param fields An array of fields to use for recreating the expression.\n * @returns The recreated expression.\n */\nexport function recreateExpression(expression: IFilteringExpression, fields: FieldType[]): IFilteringExpression {\n    const field = fields?.find(f => f.field === expression.fieldName);\n\n    if (field && !expression.condition?.logic) {\n        if (!field.filters) {\n            expression.condition = recreateOperatorFromDataType(expression, field.dataType);\n        } else {\n            expression.condition = field.filters.condition((expression.conditionName || expression.condition?.name)!);\n        }\n    }\n\n    if (!expression.condition && expression.conditionName) {\n        throw Error('Wrong `conditionName`, `condition` or `field` provided! It is possible that there is a type mismatch between the condition type and field type.');\n    }\n\n    if (!expression.conditionName) {\n        expression.conditionName = expression.condition?.name;\n    }\n\n    expression.searchVal = recreateSearchValue(expression.searchVal, field?.dataType!);\n\n    return expression;\n}\n\n/**\n * Checks if the given entry is an IExpressionTree.\n * @param entry The entry to check.\n * @returns True if the entry is an IExpressionTree, false otherwise.\n */\nexport function isTree(entry: IExpressionTree | IFilteringExpression): entry is IExpressionTree {\n    return 'operator' in entry;\n}\n\n/**\n * Recreates the tree from a given array of entities by applying the correct operands\n * for each expression and adjusting the search values to be the correct type.\n * @param tree The expression tree to recreate.\n * @param entities An array of entities to use for recreating the tree.\n * @returns The recreated expression tree.\n */\nexport function recreateTree(tree: IExpressionTree, entities: EntityType[], isRoot: boolean = false): IExpressionTree {\n    const entity = isRoot ? entities[0] : entities.find(e => e.name === tree.entity);\n    if (!entity) return tree;\n\n    for (let i = 0; i < tree.filteringOperands.length; i++) {\n        const operand = tree.filteringOperands[i];\n        if (isTree(operand)) {\n            tree.filteringOperands[i] = recreateTree(operand, entities);\n        } else {\n            if (operand.searchTree) {\n                operand.searchTree = recreateTree(operand.searchTree, entities[0].childEntities ?? entities);\n            }\n            tree.filteringOperands[i] = recreateExpression(operand, entity?.fields);\n        }\n    }\n\n    return tree;\n}\n\n/**\n * Recreates the tree from a given array of fields by applying the correct operands.\n * It is recommended to use `recreateTree` if there will be multiple entities in the tree\n * with potentially colliding field names.\n * @param tree The expression tree to recreate.\n * @param fields An array of fields to use for recreating the tree.\n */\nexport function recreateTreeFromFields(tree: IExpressionTree, fields: FieldType[]): IExpressionTree {\n    for (let i = 0; i < tree.filteringOperands.length; i++) {\n        const operand = tree.filteringOperands[i];\n        if (isTree(operand)) {\n            tree.filteringOperands[i] = recreateTreeFromFields(operand, fields);\n        } else {\n            if (operand.searchTree) {\n                operand.searchTree = recreateTreeFromFields(operand.searchTree, fields);\n            }\n            tree.filteringOperands[i] = recreateExpression(operand, fields);\n        }\n    }\n\n    return tree;\n}\n","import { FilteringLogic, IFilteringExpression } from './filtering-expression.interface';\nimport { IBaseEventArgs } from '../core/utils';\nimport { ExpressionsTreeUtil } from './expressions-tree-util';\n\n/* mustCoerceToInt */\nexport enum FilteringExpressionsTreeType {\n    Regular,\n    Advanced\n}\n\n/* marshalByValue */\nexport declare interface IExpressionTree {\n    filteringOperands: (IExpressionTree | IFilteringExpression)[];\n    /* mustCoerceToInt */\n    operator: FilteringLogic;\n    fieldName?: string | null;\n    entity?: string | null;\n    returnFields?: string[] | null;\n}\n\n/* alternateBaseType: ExpressionTree */\n/* marshalByValue */\n/* skipEventDetails */\nexport declare interface IFilteringExpressionsTree extends IBaseEventArgs, IExpressionTree {\n    filteringOperands: (IFilteringExpressionsTree | IFilteringExpression)[];\n    /* alternateName: treeType */\n    /* mustCoerceToInt */\n    type?: FilteringExpressionsTreeType;\n\n    /* blazorSuppress */\n    /**\n     * @deprecated in version 18.2.0. Use `ExpressionsTreeUtil.find` instead.\n     */\n    find?: (fieldName: string) => IFilteringExpressionsTree | IFilteringExpression;\n\n    /* blazorSuppress */\n    /**\n     * @deprecated in version 18.2.0. Use `ExpressionsTreeUtil.findIndex` instead.\n     */\n    findIndex?: (fieldName: string) => number;\n}\n\n/* marshalByValue */\n/* jsonAPIPlainObject */\n/* skipEventDetails */\nexport class FilteringExpressionsTree implements IFilteringExpressionsTree {\n\n    /**\n     * Sets/gets the filtering operands.\n     * ```typescript\n     * const gridExpressionsTree = new FilteringExpressionsTree(FilteringLogic.And);\n     * const expression = [\n     * {\n     *   condition: IgxStringFilteringOperand.instance().condition('contains'),\n     *   fieldName: 'Column Field',\n     *   searchVal: 'Value',\n     *   ignoreCase: false\n     * }];\n     * gridExpressionsTree.filteringOperands.push(expression);\n     * this.grid.filteringExpressionsTree = gridExpressionsTree;\n     * ```\n     * ```typescript\n     * let filteringOperands = gridExpressionsTree.filteringOperands;\n     * ```\n     *\n     * @memberof FilteringExpressionsTree\n     */\n    public filteringOperands: (IFilteringExpressionsTree | IFilteringExpression)[] = [];\n\n    /**\n     * Sets/gets the operator.\n     * ```typescript\n     * gridExpressionsTree.operator = FilteringLogic.And;\n     * ```\n     * ```typescript\n     * let operator = gridExpressionsTree.operator;\n     * ```\n     *\n     * @memberof FilteringExpressionsTree\n     */\n    public operator: FilteringLogic;\n\n    /**\n     * Sets/gets the field name of the column where the filtering expression is placed.\n     * ```typescript\n     * gridExpressionTree.fieldName = 'Column Field';\n     * ```\n     * ```typescript\n     * let columnField = expressionTree.fieldName;\n     * ```\n     *\n     * @memberof FilteringExpressionsTree\n     */\n    public fieldName?: string;\n\n    /* alternateName: treeType */\n    /**\n     * Sets/gets the type of the filtering expressions tree.\n     * ```typescript\n     * gridExpressionTree.type = FilteringExpressionsTree.Advanced;\n     * ```\n     * ```typescript\n     * let type = expressionTree.type;\n     * ```\n     *\n     * @memberof FilteringExpressionsTree\n     */\n    public type?: FilteringExpressionsTreeType;\n\n    /**\n     * Sets/gets the entity.\n     * ```typescript\n     * gridExpressionsTree.entity = 'Entity A';\n     * ```\n     * ```typescript\n     * let entity = gridExpressionsTree.entity;\n     * ```\n     *\n     * @memberof FilteringExpressionsTree\n     */\n    public entity?: string;\n\n    /**\n     * Sets/gets the return fields.\n     * ```typescript\n     * gridExpressionsTree.returnFields = ['Column Field 1', 'Column Field 2'];\n     * ```\n     * ```typescript\n     * let returnFields = gridExpressionsTree.returnFields;\n     * ```\n     *\n     * @memberof FilteringExpressionsTree\n     */\n    public returnFields?: string[];\n\n    constructor(operator: FilteringLogic, fieldName?: string, entity?: string, returnFields?: string[]) {\n        this.operator = operator;\n        this.entity = entity;\n        this.returnFields = returnFields;\n        this.fieldName = fieldName;\n    }\n\n    /**\n     * Checks if filtering expressions tree is empty.\n     *\n     * @param expressionTree filtering expressions tree.\n     */\n    public static empty(expressionTree: IFilteringExpressionsTree): boolean {\n        return !expressionTree || !expressionTree.filteringOperands || !expressionTree.filteringOperands.length;\n    }\n\n    /* blazorSuppress */\n    /**\n     * Returns the filtering expression for a column with the provided fieldName.\n     * ```typescript\n     * let filteringExpression = gridExpressionTree.find('Column Field');\n     * ```\n     *\n     * @memberof FilteringExpressionsTree\n     * @deprecated in version 18.2.0. Use `ExpressionsTreeUtil.find` instead.\n     */\n    public find(fieldName: string): IFilteringExpressionsTree | IFilteringExpression {\n        return ExpressionsTreeUtil.find(this, fieldName);\n    }\n\n    /* blazorSuppress */\n    /**\n     * Returns the index of the filtering expression for a column with the provided fieldName.\n     * ```typescript\n     * let filteringExpressionIndex = gridExpressionTree.findIndex('Column Field');\n     * ```\n     *\n     * @memberof FilteringExpressionsTree\n     * @deprecated in version 18.2.0. Use `ExpressionsTreeUtil.findIndex` instead.\n     */\n    public findIndex(fieldName: string): number {\n        return ExpressionsTreeUtil.findIndex(this, fieldName);\n    }\n}\n","export enum PagingError {\n    None,\n    IncorrectPageIndex,\n    IncorrectRecordsPerPage\n}\n\n/* marshalByValue */\n/* tsPlainInterface */\nexport declare interface IPagingState {\n    index: number;\n    recordsPerPage: number;\n    /* blazorSuppress */\n    metadata?: {\n        countPages: number;\n        error: PagingError;\n        countRecords: number;\n    };\n}\n","import { EventEmitter } from '@angular/core';\nimport { IDataCloneStrategy } from '../../data-operations/data-clone-strategy';\n\nexport enum TransactionType {\n    ADD = 'add',\n    DELETE = 'delete',\n    UPDATE = 'update'\n}\n\nexport enum TransactionEventOrigin {\n    UNDO = 'undo',\n    REDO = 'redo',\n    CLEAR = 'clear',\n    ADD = 'add',\n    END = 'endPending'\n}\n\nexport interface Transaction {\n    id: any;\n    type: TransactionType;\n    newValue: any;\n}\n\n/**\n * @experimental\n * @hidden\n */\nexport interface HierarchicalTransaction extends Transaction {\n    path?: any[];\n}\n\nexport interface State {\n    value: any;\n    recordRef: any;\n    type: TransactionType;\n}\n\nexport interface Action<T extends Transaction> {\n    transaction: T;\n    recordRef: any;\n}\n\nexport interface StateUpdateEvent {\n    origin: TransactionEventOrigin;\n    actions: Action<Transaction>[];\n}\n\n/**\n * @experimental\n * @hidden\n */\nexport interface HierarchicalState extends State {\n    path: any[];\n}\n\nexport interface TransactionService<T extends Transaction, S extends State> {\n    /**\n     * Returns whether transaction is enabled for this service\n     */\n    readonly enabled: boolean;\n\n    /**\n     * Gets/Sets the data clone strategy used to clone data\n     */\n    cloneStrategy: IDataCloneStrategy;\n\n    /**\n     * Event fired when transaction state has changed - add transaction, commit all transactions, undo and redo\n     */\n    onStateUpdate?: EventEmitter<StateUpdateEvent>;\n\n    /**\n     * @returns if there are any transactions in the Undo stack\n     */\n    canUndo: boolean;\n\n    /**\n     * @returns if there are any transactions in the Redo stack\n     */\n    canRedo: boolean;\n\n    /**\n     * Adds provided  transaction with recordRef if any\n     *\n     * @param transaction Transaction to be added\n     * @param recordRef Reference to the value of the record in the data source related to the changed item\n     */\n    add(transaction: T, recordRef?: any): void;\n\n    /**\n     * Returns all recorded transactions in chronological order\n     *\n     * @param id Optional record id to get transactions for\n     * @returns All transaction in the service or for the specified record\n     */\n    getTransactionLog(id?: any): T[];\n\n    /**\n     * Remove the last transaction if any\n     */\n    undo(): void;\n\n    /**\n     * Applies the last undone transaction if any\n     */\n    redo(): void;\n\n    /**\n     * Returns aggregated changes from all transactions\n     *\n     * @param mergeChanges If set to true will merge each state's value over relate recordRef\n     * and will record resulting value in the related transaction\n     * @returns Collection of aggregated transactions for each changed record\n     */\n    getAggregatedChanges(mergeChanges: boolean): T[];\n\n    /**\n     * Returns the state of the record with provided id\n     *\n     * @param id The id of the record\n     * @param pending Should get pending state\n     * @returns State of the record if any\n     */\n    getState(id: any, pending?: boolean): S;\n\n    /**\n     * Returns value of the required id including all uncommitted changes\n     *\n     * @param id The id of the record to return value for\n     * @param mergeChanges If set to true will merge state's value over relate recordRef\n     * and will return merged value\n     * @returns Value with changes or **null**\n     */\n    getAggregatedValue(id: any, mergeChanges: boolean): any;\n\n    /**\n     * Applies all transactions over the provided data\n     *\n     * @param data Data source to update\n     * @param id Optional record id to commit transactions for\n     */\n    commit(data: any[], id?: any): void;\n\n    /**\n     * Clears all transactions\n     *\n     * @param id Optional record id to clear transactions for\n     */\n    clear(id?: any): void;\n\n    /**\n     * Starts pending transactions. All transactions passed after call to startPending\n     * will not be added to transaction log\n     */\n    startPending(): void;\n\n    /**\n     * Clears all pending transactions and aggregated pending state. If commit is set to true\n     * commits pending states as single transaction\n     *\n     * @param commit Should commit the pending states\n     */\n    endPending(commit: boolean): void;\n}\n","import type { KeyOfOrString } from '../core/types';\nimport { IBaseEventArgs } from '../core/utils';\nimport type { GridTypeBase } from './grid-types';\n\n/* mustCoerceToInt */\nexport enum SortingDirection {\n    None = 0,\n    Asc = 1,\n    Desc = 2\n}\n\n/* marshalByValue */\n/* tsPlainInterface */\nexport interface ISortingExpression<T = any> extends IBaseEventArgs {\n    fieldName: KeyOfOrString<T> & string;\n    /* mustCoerceToInt */\n    dir: SortingDirection;\n    ignoreCase?: boolean;\n    /* blazorCSSuppress */\n    strategy?: ISortingStrategy;\n}\n\n/* blazorCSSuppress */\nexport interface ISortingStrategy {\n    /* blazorSuppress */\n    sort: (\n        data: any[],\n        fieldName: string,\n        dir: SortingDirection,\n        ignoreCase: boolean,\n        valueResolver: (obj: any, key: string, isDate?: boolean) => any,\n        isDate?: boolean,\n        isTime?: boolean,\n        grid?: GridTypeBase\n    ) => any[];\n}\n\nexport class DefaultSortingStrategy implements ISortingStrategy {\n    protected static _instance: DefaultSortingStrategy = null!;\n\n    protected constructor() { }\n\n    public static instance(): DefaultSortingStrategy {\n        return this._instance || (this._instance = new this());\n    }\n\n    /* blazorSuppress */\n    public sort(\n        data: any[],\n        fieldName: string,\n        dir: SortingDirection,\n        ignoreCase: boolean,\n        valueResolver: (obj: any, key: string, isDate?: boolean) => any,\n        isDate?: boolean,\n        isTime?: boolean\n    ) {\n        const key = fieldName;\n        const reverse = (dir === SortingDirection.Desc ? -1 : 1);\n\n        /**\n         * Use Schwartizian transform on the data before sorting it so that the sorting value\n         * is not recomputed on every object compare which improves the number of comparisons from O(nlogn) to O(n)\n         * where n is the length of the datasource.\n         * This, on a very large dataset of 1 million records, gives a significant performance boost.\n         */\n        const resolver = valueResolver.bind(this) as (obj: any, key: string, isDate?: boolean, isTime?: boolean) => any;\n        const preparedData = data.map(item => {\n            return {\n                original: item,\n                sortValue: this.prepareSortValue(resolver(item, key, isDate, isTime), ignoreCase)\n            }\n        });\n        const compareFn = (a: any, b: any) => reverse * this.compareValues(a.sortValue, b.sortValue);\n        preparedData.sort(compareFn);\n\n        return preparedData.map(item => item.original);\n    }\n\n    public compareValues(a: any, b: any): number {\n        const aIsNullish = a == null;\n        const bIsNullish = b == null;\n\n        if (aIsNullish && bIsNullish) return 0;\n        if (aIsNullish) return -1\n        if (bIsNullish) return 1;\n\n        return a > b ? 1 : a < b ? -1 : 0;\n    }\n\n    protected compareObjects(\n        obj1: any,\n        obj2: any,\n        key: string,\n        reverse: number,\n        ignoreCase: boolean,\n        valueResolver: (obj: any, key: string, isDate?: boolean, isTime?: boolean) => any,\n        isDate: boolean,\n        isTime: boolean\n    ) {\n        let a = valueResolver.call(this, obj1, key, isDate, isTime);\n        let b = valueResolver.call(this, obj2, key, isDate, isTime);\n        if (ignoreCase) {\n            a = a && a.toLowerCase ? a.toLowerCase() : a;\n            b = b && b.toLowerCase ? b.toLowerCase() : b;\n        }\n        return reverse * this.compareValues(a, b);\n    }\n\n    protected arraySort(data: any[], compareFn?: (arg0: any, arg1: any) => number): any[] {\n        return data.sort(compareFn);\n    }\n\n    protected prepareSortValue(value: any, ignoreCase: boolean) {\n        return ignoreCase && typeof value === 'string' ? value.toLocaleLowerCase() : value;\n    }\n}\n\nexport class GroupMemberCountSortingStrategy implements ISortingStrategy {\n    protected static _instance: GroupMemberCountSortingStrategy = null!;\n\n    protected constructor() { }\n\n    public static instance(): GroupMemberCountSortingStrategy {\n        return this._instance || (this._instance = new this());\n    }\n\n    public sort(data: any[], fieldName: string, dir: SortingDirection) {\n        const groupedArray = this.groupBy(data, fieldName);\n        const reverse = (dir === SortingDirection.Desc ? -1 : 1);\n\n        const cmpFunc = (a: any, b: any) => {\n            return this.compareObjects(a, b, groupedArray, fieldName, reverse);\n        };\n\n        return data\n            .sort((a, b) => a[fieldName].localeCompare(b[fieldName]))\n            .sort(cmpFunc);\n    }\n\n    public groupBy(data: any, key: any) {\n        return data.reduce((acc: any, curr: any) => {\n            (acc[curr[key]] = acc[curr[key]] || []).push(curr);\n            return acc;\n        }, {})\n    }\n\n    protected compareObjects(obj1: any, obj2: any, data: any[], fieldName: string, reverse: number) {\n        const firstItemValuesLength = data[obj1[fieldName]].length;\n        const secondItemValuesLength = data[obj2[fieldName]].length;\n\n        return reverse * (firstItemValuesLength - secondItemValuesLength);\n    }\n}\n\nexport class FormattedValuesSortingStrategy extends DefaultSortingStrategy {\n    protected static override _instance: FormattedValuesSortingStrategy = null!;\n\n    constructor() {\n        super();\n    }\n\n    public static override instance(): FormattedValuesSortingStrategy {\n        return this._instance || (this._instance = new this());\n    }\n\n    public override sort(\n        data: any[],\n        fieldName: string,\n        dir: SortingDirection,\n        ignoreCase: boolean,\n        valueResolver: (obj: any, key: string, isDate?: boolean) => any,\n        isDate?: boolean,\n        isTime?: boolean,\n        grid?: GridTypeBase\n    ) {\n        const key = fieldName;\n        const reverse = (dir === SortingDirection.Desc ? -1 : 1);\n        const cmpFunc = (obj1: any, obj2: any) => this.compareObjects(obj1, obj2, key, reverse, ignoreCase, valueResolver, isDate!, isTime!, grid);\n        return this.arraySort(data, cmpFunc);\n    }\n\n    protected override compareObjects(\n        obj1: any,\n        obj2: any,\n        key: string,\n        reverse: number,\n        ignoreCase: boolean,\n        valueResolver: (obj: any, key: string, isDate?: boolean, isTime?: boolean) => any,\n        isDate: boolean,\n        isTime: boolean,\n        grid?: GridTypeBase\n    ) {\n        let a = valueResolver.call(this, obj1, key, isDate, isTime);\n        let b = valueResolver.call(this, obj2, key, isDate, isTime);\n\n        if (grid) {\n            const col = grid.getColumnByName(key);\n            if (col && col.formatter) {\n                a = col.formatter(a);\n                b = col.formatter(b);\n            }\n        }\n\n        if (ignoreCase) {\n            a = a && a.toLowerCase ? a.toLowerCase() : a;\n            b = b && b.toLowerCase ? b.toLowerCase() : b;\n        }\n        return reverse * this.compareValues(a, b);\n    }\n}\n","import { IGroupByKey } from './groupby-expand-state.interface';\nimport { IGroupByRecord } from './groupby-record.interface';\nimport { IGroupingExpression } from './grouping-expression.interface';\nimport { DefaultSortingStrategy } from './sorting-strategy';\n\nexport const isHierarchyMatch = (h1: Array<IGroupByKey>, h2: Array<IGroupByKey>, expressions: IGroupingExpression[]): boolean => {\n    if (h1.length !== h2.length) {\n        return false;\n    }\n    return h1.every((level, index): boolean => {\n        const expr = expressions.find(e => e.fieldName === level.fieldName);\n        const comparer = expr!.groupingComparer || DefaultSortingStrategy.instance().compareValues;\n        return level.fieldName === h2[index].fieldName && comparer(level.value, h2[index].value) === 0;\n    });\n};\n\nexport const getHierarchy = (gRow: IGroupByRecord): Array<IGroupByKey> => {\n    const hierarchy: Array<IGroupByKey> = [];\n    if (gRow !== undefined && gRow.expression) {\n        hierarchy.push({ fieldName: gRow.expression.fieldName, value: gRow.value });\n        while (gRow.groupParent) {\n            gRow = gRow.groupParent;\n            hierarchy.unshift({ fieldName: gRow.expression.fieldName, value: gRow.value });\n        }\n    }\n    return hierarchy;\n};\n","import { cloneArray, columnFieldPath, parseDate, resolveNestedPath } from '../core/utils';\nimport { IGroupByExpandState } from './groupby-expand-state.interface';\nimport { IGroupByRecord } from './groupby-record.interface';\nimport { IGroupingState } from './groupby-state.interface';\nimport { IGroupingExpression } from './grouping-expression.interface';\nimport { IGroupByResult } from './grouping-result.interface';\nimport { getHierarchy, isHierarchyMatch } from './operations';\nimport { DefaultSortingStrategy, ISortingExpression, SortingDirection } from './sorting-strategy';\nimport type { GridTypeBase } from './grid-types';\n\nconst DATE_TYPE = 'date';\nconst TIME_TYPE = 'time';\nconst DATE_TIME_TYPE = 'dateTime';\nconst STRING_TYPE = 'string';\n\n/* blazorCSSuppress */\n/**\n * Represents a sorting strategy for the grid data\n * Contains a single method sort that sorts the provided data based on the given sorting expressions\n */\nexport interface IGridSortingStrategy {\n    /* blazorCSSuppress */\n    /**\n    * `data`: The array of data to be sorted. Could be of any type.\n    * `expressions`: An array of sorting expressions that define the sorting rules. The expression contains information like file name, whether the letter case should be taken into account, etc.\n    * `grid`: (Optional) The instance of the grid where the sorting is applied.\n    * Returns a new array with the data sorted according to the sorting expressions.\n    */\n    sort(data: any[], expressions: ISortingExpression[], grid?: GridTypeBase): any[];\n}\n\n/* blazorCSSuppress */\n/**\n * Represents a grouping strategy for the grid data, extending the Sorting Strategy interface (contains a sorting method).\n */\nexport interface IGridGroupingStrategy extends IGridSortingStrategy {\n    /* blazorCSSuppress */\n    /**\n     * The method groups the provided data based on the given grouping state and returns the result.\n     * `data`: The array of data to be grouped. Could be of any type.\n     * `state`: The grouping state that defines the grouping settings and expressions.\n     * `grid`: (Optional) The instance of the grid where the grouping is applied.\n     * `groupsRecords`: (Optional) An array that holds the records for each group.\n     * `fullResult`: (Optional) The complete result of grouping including groups and summary data.\n     * Returns an object containing the result of the grouping operation.\n     */\n    groupBy(data: any[], state: IGroupingState, grid?: any, groupsRecords?: any[], fullResult?: IGroupByResult): IGroupByResult;\n}\n\n/**\n * Represents internal sorting expression that extends the public one.\n * Contains boolean properties that represent the type of the column that is being sorted.\n * @internal\n */\ninterface IGridInternalSortingExpression extends ISortingExpression {\n    isDate: boolean;\n    isTime: boolean;\n    isString: boolean;\n}\n\n/**\n * Stack item represents a frame.\n * Each frame needs:\n * - data: The subset of records to process at this level.\n * - level: The current grouping level.\n * - parentGroup: The parent IGroupByRecord for groups created in this frame.\n * - currentIndex: The index within 'data' to start processing.\n * - isExpandingChildren: Flag to indicate if children generated by this group should be added to `result` and `metadata`.\n * @internal\n */\ninterface StackFrame {\n    data: any[];\n    level: number;\n    parentGroup: IGroupByRecord | null;\n    currentIndex: number;\n    isExpandingChildren: boolean;\n}\n\n/**\n * Represents a class implementing the IGridSortingStrategy interface.\n * It provides sorting functionality for grid data based on sorting expressions.\n */\nexport class IgxSorting implements IGridSortingStrategy {\n    /* blazorSuppress */\n    /**\n   * Sorts the provided data based on the given sorting expressions.\n   * `data`: The array of data to be sorted.\n   * `expressions`: An array of sorting expressions that define the sorting rules. The expression contains information like file name, whether the letter case should be taken into account, etc.\n   * `grid`: (Optional) The instance of the grid where the sorting is applied.\n   * Returns a new array with the data sorted according to the sorting expressions.\n   */\n    public sort(data: any[], expressions: ISortingExpression[], grid?: GridTypeBase): any[] {\n        return this.sortData(data, expressions, grid!);\n    }\n\n    /**\n     * Retrieves the value of the specified field from the given object, considering date and time data types.\n     * `key`: The key of the field to retrieve.\n     * `isDate`: (Optional) Indicates if the field is of type Date.\n     * `isTime`: (Optional) Indicates if the field is of type Time.\n     * Returns the value of the specified field in the data object.\n     * @internal\n     */\n    protected getFieldValue<T>(obj: T, key: string, isDate = false, isTime = false) {\n        let resolvedValue = resolveNestedPath(obj, columnFieldPath(key));\n        if (isDate || isTime) {\n            const date = parseDate(resolvedValue);\n            if (date && isDate && isTime) {\n                resolvedValue = date;\n            } else if (date && isDate && !isTime) {\n                resolvedValue = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0, 0);\n            } else if (date && isTime && !isDate) {\n                resolvedValue = new Date(new Date().setHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));\n            }\n        }\n        return resolvedValue;\n    }\n\n    /**\n   * Sorts the provided data array based on the given sorting expressions.\n   * The method can be used when multiple sorting is performed, going through each one\n   * Returns a new array with the data sorted according to the sorting expressions.\n   * @internal\n   */\n    private sortData<T>(\n        data: T[],\n        expressions: ISortingExpression[],\n        grid: GridTypeBase\n    ): T[] {\n        const sortingExpressions = this.prepareExpressions(expressions, grid);\n\n        if (data.length <= 1) {\n            return data;\n        }\n\n        for (let i = sortingExpressions.length - 1; i >= 0; i--) {\n            data = sortingExpressions[i].strategy!.sort(data, sortingExpressions[i].fieldName, sortingExpressions[i].dir, sortingExpressions[i].ignoreCase!, this.getFieldValue, sortingExpressions[i].isDate, sortingExpressions[i].isTime, grid)\n        }\n\n        return data;\n    }\n\n    private prepareExpressions(expressions: ISortingExpression[], grid: GridTypeBase): IGridInternalSortingExpression[] {\n        const multipleSortingExpressions: IGridInternalSortingExpression[] = [];\n        for (const expr of expressions) {\n            if (expr.dir === SortingDirection.None) {\n                continue;\n            }\n            if (!expr.strategy) {\n                expr.strategy = DefaultSortingStrategy.instance();\n            }\n            const column = grid?.getColumnByName(expr.fieldName);\n            const isDate = column?.dataType === DATE_TYPE || column?.dataType === DATE_TIME_TYPE;\n            const isTime = column?.dataType === TIME_TYPE || column?.dataType === DATE_TIME_TYPE;\n            const isString = column?.dataType === STRING_TYPE;\n            multipleSortingExpressions.push({ ...expr, isDate, isTime, isString })\n        }\n        return multipleSortingExpressions;\n    }\n}\n\n/**\n * Represents a class implementing the IGridGroupingStrategy interface and extending the sorting class.\n * It provides a method to group data based on the given grouping state.\n */\nexport class IgxGrouping extends IgxSorting implements IGridGroupingStrategy {\n    /* blazorSuppress */\n    /**\n     * Groups the provided data based on the given grouping state.\n     * Returns an object containing the result of the grouping operation.\n     */\n    public groupBy(data: any[], state: IGroupingState, grid?: any,\n        groupsRecords?: any[], fullResult: IGroupByResult = { data: [], metadata: [] }): IGroupByResult {\n        const grouping = this.groupData(data, state, grid, groupsRecords, fullResult);\n        grid?.groupingPerformedSubject.next();\n        return {\n            data: grouping.data,\n            metadata: grouping.metadata\n        };\n    }\n\n    /**\n     * Groups the provided data based on the given grouping state.\n     * Changes groupsRecords and fullResult collections by reference.\n     * Returns an array containing the visible grouped result.\n     * @internal\n     */\n    protected groupData(\n        data: any[],\n        state: IGroupingState,\n        grid: GridTypeBase = null!,\n        groupsRecords: any[] = [],\n        fullResult: IGroupByResult\n    ): IGroupByResult {\n\n        const expressions = state.expressions;\n        const expansion = state.expansion;\n\n        // This holds the final visible data (the rows that are expanded).\n        const result: any[] = [];\n\n        // This holds the group rows for each record in the result array. Used in grid for information when scrolling.\n        const metadata: IGroupByRecord[] = [];\n\n        // Initialize the stack with the root level processing.\n        const initialFrame: StackFrame = {\n            data: data,\n            level: 0,\n            parentGroup: null,\n            currentIndex: 0,\n            isExpandingChildren: true\n        };\n        const stack: StackFrame[] = [initialFrame];\n\n        while (stack.length > 0) {\n            const currentFrame = stack[stack.length - 1]; // Peek at the top of the stack\n\n            const { data: currentData, level, parentGroup, currentIndex, isExpandingChildren } = currentFrame;\n\n            // If we've processed all data in this frame, pop it.\n            if (currentIndex >= currentData.length) {\n                stack.pop();\n                continue;\n            }\n\n            // Process the next group at the current level\n            const column = grid ? grid.getColumnByName(expressions[level].fieldName) : null;\n            const isDate = column?.dataType === DATE_TYPE || column?.dataType === DATE_TIME_TYPE;\n            const isTime = column?.dataType === TIME_TYPE || column?.dataType === DATE_TIME_TYPE;\n            const isString = column?.dataType === STRING_TYPE;\n\n            // Next block of grouped records for the expression of the current level\n            const group = this.groupedRecordsByExpression(\n                currentData,\n                currentIndex,\n                expressions[level],\n                isDate,\n                isTime,\n                isString,\n                column?.groupingComparer\n            );\n\n            // Create the group row\n            const groupRow: IGroupByRecord = {\n                expression: expressions[level],\n                level,\n                records: cloneArray(group),\n                value: this.getFieldValue(group[0], expressions[level].fieldName, isDate, isTime),\n                groupParent: parentGroup!,\n                groups: [],\n                height: grid ? grid.renderedRowHeight : null,\n                column\n            };\n\n            // Link to parent's groups list\n            if (parentGroup) {\n                parentGroup.groups!.push(groupRow);\n            } else {\n                groupsRecords.push(groupRow)\n            }\n\n            // Determine expansion state for this groupRow\n            const hierarchy = getHierarchy(groupRow);\n            const expandState: IGroupByExpandState | undefined = expansion.find((s) =>\n                isHierarchyMatch(\n                    s.hierarchy || [{ fieldName: groupRow.expression.fieldName, value: groupRow.value }],\n                    hierarchy,\n                    expressions\n                )\n            );\n            const expandedForThisGroup = expandState ? expandState.expanded : state.defaultExpanded;\n\n            // Add the group row to the full result set\n            fullResult.data.push(groupRow);\n            fullResult.metadata.push(null!);\n\n            // Add the group row to the visible results (if its parent was expanded or it's a root group)\n            if (isExpandingChildren) {\n                result.push(groupRow);\n                metadata.push(null!);\n            }\n\n            // Advance the current frame's index for the next iteration of its loop\n            currentFrame.currentIndex += group.length;\n\n            if (level < expressions.length - 1) {\n                // If there are more levels to group, push a new frame onto the stack\n                const nextFrame: StackFrame = {\n                    data: group, // The records of the current group become the data for the next level\n                    level: level + 1,\n                    parentGroup: groupRow, // The current group row is the parent for the next level\n                    currentIndex: 0,\n                    isExpandingChildren: isExpandingChildren && expandedForThisGroup // Children are expanded only if this group is expanded AND parent is expanded\n                };\n                stack.push(nextFrame);\n            } else {\n                // This is the leaf level, add individual items to fullResult and conditionally to result/metadata\n                for (const groupItem of group) {\n                    fullResult.metadata.push(groupRow); // The metadata for an item is its immediate parent group row.\n                    fullResult.data.push(groupItem);\n                    if (isExpandingChildren && expandedForThisGroup) {\n                        // Add to result and metadata only if expanded\n                        metadata.push(groupRow);\n                        result.push(groupItem);\n                    }\n                }\n            }\n        }\n\n        return { data: result, metadata };\n    }\n\n    /**\n     * Groups the records in the provided data array based on the given grouping expression.\n     * `groupingComparer`: (Optional) A custom grouping comparator to determine the members of the group.\n     * Returns an array containing the records that belong to the group.\n     * @internal\n     */\n    private groupedRecordsByExpression<T>(\n        data: T[],\n        index: number,\n        expression: IGroupingExpression,\n        isDate = false,\n        isTime = false,\n        isString: boolean,\n        groupingComparer?: (a: any, b: any, currRec: any, groupRec: any) => number\n    ): T[] {\n        const res: T[] = [];\n        const key = expression.fieldName;\n        const len = data.length;\n        const groupRecord = data[index];\n        let groupValue = this.getFieldValue(groupRecord, key, isDate, isTime);\n        if (expression.ignoreCase && isString && groupValue) {\n            // when column's dataType is string but the value is number\n            groupValue = groupValue.toString().toLowerCase();\n        }\n        res.push(groupRecord);\n        const comparer = expression.groupingComparer || groupingComparer || DefaultSortingStrategy.instance().compareValues;\n        for (let i = index + 1; i < len; i++) {\n            const currRec = data[i];\n            let fieldValue = this.getFieldValue(currRec, key, isDate, isTime);\n            if (expression.ignoreCase && isString && fieldValue) {\n                // when column's dataType is string but the value is number\n                fieldValue = fieldValue.toString().toLowerCase();\n            }\n            if (comparer(fieldValue, groupValue, currRec, groupRecord) === 0) {\n                res.push(currRec);\n            } else {\n                break;\n            }\n        }\n        return res;\n    }\n}\n\n/* csSuppress */\n/**\n * Represents a class implementing the IGridSortingStrategy interface with a no-operation sorting strategy.\n * It performs no sorting and returns the data as it is.\n */\nexport class NoopSortingStrategy implements IGridSortingStrategy {\n    private static _instance: NoopSortingStrategy = null!;\n\n    private constructor() { }\n\n    public static instance(): NoopSortingStrategy {\n        return this._instance || (this._instance = new NoopSortingStrategy());\n    }\n\n    /* csSuppress */\n    public sort(data: any[]): any[] {\n        return data;\n    }\n}\n\n/**\n * Represents a class extending the sorting class\n * Provides custom data record sorting.\n */\nexport class IgxDataRecordSorting extends IgxSorting {\n    /**\n    * Overrides the base method to retrieve the field value from the data object instead of the record object.\n    * Returns the value of the specified field in the data object.\n    */\n    protected override getFieldValue(obj: any, key: string, isDate = false, isTime = false): any {\n        return super.getFieldValue(obj.data, key, isDate, isTime);\n    }\n}\n","import { columnFieldPath, parseDate, resolveNestedPath } from '../core/utils';\nimport type { GridTypeBase } from './grid-types';\n\nexport interface IMergeByResult {\n    rowSpan: number;\n    root?: any;\n    childRecords?: any[];\n}\n\n/* csSuppress */\n/**\n * Merge strategy interface.\n */\nexport interface IGridMergeStrategy {\n    /* blazorCSSuppress */\n    /**\n     * Function that processes merging of the whole data per merged field.\n     * Returns collection where object has reference to the original record and map of the cell merge metadata per field.\n     */\n    merge: (\n        /* The original data to merge. */\n        data: any[],\n        /* The field in the data to merge. */\n        field: string,\n        /* Custom comparer function to use for field. */\n        comparer: (prevRecord: any, currentRecord: any, field: string) => boolean,\n        /* Existing merge result to which to add the field specific metadata for merging. */\n        result: any[],\n        /* The active row indexes, where merging should break the sequence. */\n        activeRowIndexes: number[],\n        /* (Optional) Indicates if the field is of type Date. */\n        isDate?: boolean,\n        /* (Optional) Indicates if the field is of type Time. */\n        isTime?: boolean,\n        /* (Optional) Reference to the grid */\n        grid?: GridTypeBase\n    ) => any[];\n    /**\n     * Function that compares values for merging. Returns true if same, false if different.\n     */\n    comparer: (prevRecord: any, record: any, field: string) => boolean;\n}\n\n/* csSuppress */\nexport class DefaultMergeStrategy implements IGridMergeStrategy {\n    protected static _instance: DefaultMergeStrategy = null!;\n\n    public static instance(): DefaultMergeStrategy {\n        return this._instance || (this._instance = new this());\n    }\n\n    /* blazorCSSuppress */\n    public merge(\n        data: any[],\n        field: string,\n        comparer: (prevRecord: any, record: any, field: string, isDate?: boolean, isTime?: boolean) => boolean = this.comparer,\n        result: any[],\n        activeRowIndexes: number[],\n        isDate = false,\n        isTime = false,\n        grid?: GridTypeBase\n    ): any[] {\n        let prev = null;\n        let index = 0;\n        for (const rec of data) {\n\n            const recData = result[index];\n            // if this is active row or some special record type - add and skip merging\n            if (activeRowIndexes.indexOf(index) != -1 || (grid && grid.isDetailRecord(rec) || grid!.isGroupByRecord(rec) || grid!.isChildGridRecord(rec) || grid!.isSummaryRow(rec))) {\n                if (!recData) {\n                    result.push(rec);\n                }\n                prev = null;\n                index++;\n                continue;\n            }\n            const recToUpdateData = recData ?? { recordRef: grid!.isGhostRecord(rec) ? rec.recordRef : rec, cellMergeMeta: new Map<string, IMergeByResult>(), ghostRecord: rec.ghostRecord, index: index };\n            recToUpdateData.cellMergeMeta.set(field, { rowSpan: 1, childRecords: [] });\n            if (prev && comparer.call(this, prev.recordRef, recToUpdateData.recordRef, field, isDate, isTime) && prev.ghostRecord === recToUpdateData.ghostRecord) {\n                const root = prev.cellMergeMeta.get(field)?.root ?? prev;\n                root.cellMergeMeta.get(field).rowSpan += 1;\n                root.cellMergeMeta.get(field).childRecords.push(recToUpdateData);\n                recToUpdateData.cellMergeMeta.get(field).root = root;\n            }\n            prev = recToUpdateData;\n            if (!recData) {\n                result.push(recToUpdateData);\n            }\n            index++;\n        }\n        return result;\n    }\n\n    /* blazorCSSuppress */\n    public comparer(prevRecord: any, record: any, field: string, isDate = false, isTime = false): boolean {\n        const a = this.getFieldValue(prevRecord, field, isDate, isTime);\n        const b = this.getFieldValue(record, field, isDate, isTime);\n        const an = (a === null || a === undefined);\n        const bn = (b === null || b === undefined);\n        if (an) {\n            if (bn) {\n                return true;\n            }\n            return false;\n        } else if (bn) {\n            return false;\n        }\n        return a === b;\n    }\n\n    /**\n     * Retrieves the value of the specified field from the given object, considering date and time data types.\n     * `key`: The key of the field to retrieve.\n     * `isDate`: (Optional) Indicates if the field is of type Date.\n     * `isTime`: (Optional) Indicates if the field is of type Time.\n     * Returns the value of the specified field in the data object.\n     * @internal\n     */\n    protected getFieldValue<T>(obj: T, key: string, isDate = false, isTime = false) {\n        let resolvedValue = resolveNestedPath(obj, columnFieldPath(key));\n        if (isDate || isTime) {\n            resolvedValue = this.getDateValue(resolvedValue, isDate, isTime);\n        }\n        return resolvedValue;\n    }\n\n    /**\n   * @internal\n   */\n    protected getDateValue<T>(obj: T, isDate = false, isTime = false) {\n        const date = obj instanceof Date ? obj : parseDate(obj);\n        let resolvedValue;\n        if (isDate && isTime) {\n            // date + time\n            resolvedValue = date!.getTime();\n        } else if (date && isDate && !isTime) {\n            // date, but no time\n            resolvedValue = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0, 0).getTime();\n        } else if (date && isTime && !isDate) {\n            // just time\n            resolvedValue = new Date().setHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\n        }\n        return resolvedValue;\n    }\n}\n\n/* csSuppress */\nexport class DefaultTreeGridMergeStrategy extends DefaultMergeStrategy {\n    /* blazorCSSuppress */\n    public override comparer(prevRecord: any, record: any, field: string, isDate = false, isTime = false): boolean {\n        const a = this.getFieldValue(prevRecord.data, field, isDate, isTime);\n        const b = this.getFieldValue(record.data, field, isDate, isTime);\n        const an = (a === null || a === undefined);\n        const bn = (b === null || b === undefined);\n        if (an) {\n            if (bn) {\n                return true;\n            }\n            return false;\n        } else if (bn) {\n            return false;\n        }\n        return a === b;\n    }\n}\n\n/* csSuppress */\nexport class ByLevelTreeGridMergeStrategy extends DefaultMergeStrategy {\n    /* blazorCSSuppress */\n    public override comparer(prevRecord: any, record: any, field: string, isDate = false, isTime = false): boolean {\n        const a = this.getFieldValue(prevRecord.data, field, isDate, isTime);\n        const b = this.getFieldValue(record.data, field, isDate, isTime);\n        const levelA = prevRecord.level;\n        const levelB = record.level;\n        const an = (a === null || a === undefined);\n        const bn = (b === null || b === undefined);\n        if (an) {\n            if (bn) {\n                return true;\n            }\n            return false;\n        } else if (bn) {\n            return false;\n        }\n        return a === b && levelA === levelB;\n    }\n}\n","import { IGroupByResult } from './grouping-result.interface';\n\nimport { IPagingState, PagingError } from './paging-state.interface';\n\nimport { IGroupByKey } from './groupby-expand-state.interface';\nimport { IGroupByRecord } from './groupby-record.interface';\nimport { IGroupingState } from './groupby-state.interface';\nimport { cloneArray, mergeObjects } from '../core/utils';\nimport { Transaction, TransactionType, HierarchicalTransaction } from '../services/transaction/transaction';\nimport { getHierarchy, isHierarchyMatch } from './operations';\nimport type { ColumnType, GridTypeBase, ITreeGridRecord } from './grid-types';\nimport { ISortingExpression } from './sorting-strategy';\nimport {\n    IGridSortingStrategy,\n    IGridGroupingStrategy,\n    IgxDataRecordSorting,\n    IgxSorting,\n    IgxGrouping\n} from './grid-sorting-strategy';\nimport { DefaultDataCloneStrategy, IDataCloneStrategy } from '../data-operations/data-clone-strategy';\nimport { IGroupingExpression } from './grouping-expression.interface';\nimport { DefaultMergeStrategy, IGridMergeStrategy } from './merge-strategy';\nimport { IFilteringExpressionsTree } from './filtering-expressions-tree';\nimport { FilteringStrategy, FilterUtil } from './filtering-strategy';\nimport { GridColumnDataType } from './grid-types';\n\n/**\n * @hidden\n */\nexport class DataUtil {\n    public static sort<T>(data: T[], expressions: ISortingExpression[], sorting: IGridSortingStrategy = new IgxSorting(),\n        grid?: GridTypeBase): T[] {\n        return sorting.sort(data, expressions, grid);\n    }\n\n    public static treeGridSort(hierarchicalData: ITreeGridRecord[],\n        expressions: ISortingExpression[],\n        sorting: IGridSortingStrategy = new IgxDataRecordSorting(),\n        grid?: GridTypeBase): ITreeGridRecord[] {\n        const res: ITreeGridRecord[] = [];\n        const stack: {\n            original: ITreeGridRecord[];\n            parent?: ITreeGridRecord;\n            result: ITreeGridRecord[];\n        }[] = [];\n\n        stack.push({ original: hierarchicalData, parent: null!, result: res });\n\n        while (stack.length > 0) {\n            const { original, parent, result } = stack.pop()!;\n\n            const clonedRecords: ITreeGridRecord[] = [];\n\n            for (const treeRecord of original) {\n                const rec: ITreeGridRecord = DataUtil.cloneTreeGridRecord(treeRecord);\n                rec.parent = parent;\n                clonedRecords.push(rec);\n\n                // If it has children, process them later\n                if (rec.children && rec.children.length > 0) {\n                    const childClones: ITreeGridRecord[] = [];\n                    rec.children = childClones;\n                    stack.push({\n                        original: treeRecord.children!,\n                        parent: rec,\n                        result: childClones\n                    });\n                }\n            }\n\n            // Sort the clonedRecords before assigning to the result\n            const sorted = DataUtil.sort(clonedRecords, expressions, sorting, grid);\n            for (const item of sorted) {\n                result.push(item);\n            }\n        }\n\n        return res;\n    }\n\n    public static cloneTreeGridRecord(hierarchicalRecord: ITreeGridRecord) {\n        const rec: ITreeGridRecord = {\n            key: hierarchicalRecord.key,\n            data: hierarchicalRecord.data,\n            children: hierarchicalRecord.children,\n            isFilteredOutParent: hierarchicalRecord.isFilteredOutParent,\n            level: hierarchicalRecord.level,\n            expanded: hierarchicalRecord.expanded\n        };\n        return rec;\n    }\n\n    public static group<T>(data: T[], state: IGroupingState, grouping: IGridGroupingStrategy = new IgxGrouping(), grid: GridTypeBase = null!,\n        groupsRecords: any[] = [], fullResult: IGroupByResult = { data: [], metadata: [] }): IGroupByResult {\n        groupsRecords.splice(0, groupsRecords.length);\n        return grouping.groupBy(data, state, grid, groupsRecords, fullResult);\n    }\n\n    public static merge<T>(data: T[], columns: ColumnType[], strategy: IGridMergeStrategy = new DefaultMergeStrategy(), activeRowIndexes: number[] = [], grid: GridTypeBase = null!,\n    ): any[] {\n        const result: any[] = [];\n        for (const col of columns) {\n            const isDate = col?.dataType === 'date' || col?.dataType === 'dateTime';\n            const isTime = col?.dataType === 'time' || col?.dataType === 'dateTime';\n            strategy.merge(\n                data,\n                col.field,\n                col.mergingComparer,\n                result,\n                activeRowIndexes,\n                isDate,\n                isTime,\n                grid);\n        }\n        return result;\n    }\n\n    public static page<T>(data: T[], state: IPagingState, dataLength?: number): T[] {\n        if (!state) {\n            return data;\n        }\n        const len = dataLength !== undefined ? dataLength : data.length;\n        const index = state.index;\n        const res: T[] = [];\n        const recordsPerPage = dataLength !== undefined && state.recordsPerPage > dataLength ? dataLength : state.recordsPerPage;\n        state.metadata = {\n            countPages: 0,\n            countRecords: len,\n            error: PagingError.None\n        };\n        if (index < 0 || isNaN(index)) {\n            state.metadata.error = PagingError.IncorrectPageIndex;\n            return res;\n        }\n        if (recordsPerPage <= 0 || isNaN(recordsPerPage)) {\n            state.metadata.error = PagingError.IncorrectRecordsPerPage;\n            return res;\n        }\n        state.metadata.countPages = Math.ceil(len / recordsPerPage);\n        if (!len) {\n            return data;\n        }\n        if (index >= state.metadata.countPages) {\n            state.metadata.error = PagingError.IncorrectPageIndex;\n            return res;\n        }\n        return data.slice(index * recordsPerPage, (index + 1) * recordsPerPage);\n    }\n\n    public static correctPagingState(state: IPagingState, length: number) {\n        const maxPage = Math.ceil(length / state.recordsPerPage) - 1;\n        if (!isNaN(maxPage) && state.index > maxPage) {\n            state.index = maxPage;\n        }\n    }\n\n    public static getHierarchy(gRow: IGroupByRecord): Array<IGroupByKey> {\n        return getHierarchy(gRow);\n    }\n\n    public static isHierarchyMatch(h1: Array<IGroupByKey>, h2: Array<IGroupByKey>, expressions: IGroupingExpression[]): boolean {\n        return isHierarchyMatch(h1, h2, expressions);\n    }\n\n    /**\n     * Merges all changes from provided transactions into provided data collection\n     *\n     * @param data Collection to merge\n     * @param transactions Transactions to merge into data\n     * @param primaryKey Primary key of the collection, if any\n     * @param deleteRows Should delete rows with DELETE transaction type from data\n     * @returns Provided data collections updated with all provided transactions\n     */\n    public static mergeTransactions<T>(data: T[], transactions: Transaction[], primaryKey?: any, cloneStrategy: IDataCloneStrategy = new DefaultDataCloneStrategy(), deleteRows = false): T[] {\n        data.forEach((item: any, index: number) => {\n            const rowId = primaryKey ? item[primaryKey] : item;\n            const transaction = transactions.find(t => t.id === rowId);\n            if (transaction && transaction.type === TransactionType.UPDATE) {\n                data[index] = mergeObjects(cloneStrategy.clone(data[index]), transaction.newValue);\n            }\n        });\n\n        if (deleteRows) {\n            transactions\n                .filter(t => t.type === TransactionType.DELETE)\n                .forEach(t => {\n                    const index = primaryKey ? data.findIndex(d => (d as any)[primaryKey] === t.id) : data.findIndex(d => d === t.id);\n                    if (0 <= index && index < data.length) {\n                        data.splice(index, 1);\n                    }\n                });\n        }\n\n        data.push(...transactions\n            .filter(t => t.type === TransactionType.ADD)\n            .map(t => t.newValue));\n\n        return data;\n    }\n\n    /**\n     * Merges all changes from provided transactions into provided hierarchical data collection\n     *\n     * @param data Collection to merge\n     * @param transactions Transactions to merge into data\n     * @param childDataKey Data key of child collections\n     * @param primaryKey Primary key of the collection, if any\n     * @param deleteRows Should delete rows with DELETE transaction type from data\n     * @returns Provided data collections updated with all provided transactions\n     */\n    public static mergeHierarchicalTransactions(\n        data: any[],\n        transactions: HierarchicalTransaction[],\n        childDataKey: any,\n        primaryKey?: any,\n        cloneStrategy: IDataCloneStrategy = new DefaultDataCloneStrategy(),\n        deleteRows = false): any[] {\n        for (const transaction of transactions) {\n            if (transaction.path) {\n                const parent = this.findParentFromPath(data, primaryKey, childDataKey, transaction.path);\n                let collection: any[] = parent ? parent[childDataKey] : data;\n                let updateIndex = -1;\n                switch (transaction.type) {\n                case TransactionType.ADD:\n                    //  if there is no parent this is ADD row at root level\n                    if (parent && !parent[childDataKey]) {\n                        parent[childDataKey] = collection = [];\n                    }\n                    collection.push(transaction.newValue);\n                    break;\n                case TransactionType.UPDATE:\n                    updateIndex = collection.findIndex(x => x[primaryKey] === transaction.id);\n                    if (updateIndex !== -1) {\n                        collection[updateIndex] = mergeObjects(cloneStrategy.clone(collection[updateIndex]), transaction.newValue);\n                    }\n                    break;\n                case TransactionType.DELETE:\n                    if (deleteRows) {\n                        const deleteIndex = collection.findIndex(r => r[primaryKey] === transaction.id);\n                        if (deleteIndex !== -1) {\n                            collection.splice(deleteIndex, 1);\n                        }\n                    }\n                    break;\n                }\n            } else {\n                //  if there is no path this is ADD row in root. Push the newValue to data\n                data.push(transaction.newValue);\n            }\n        }\n        return data;\n    }\n\n    public static parseValue(dataType: GridColumnDataType, value: any): any {\n        if (dataType === GridColumnDataType.Number || dataType === GridColumnDataType.Currency || dataType === GridColumnDataType.Percent) {\n            value = parseFloat(value);\n        }\n\n        return value;\n    }\n\n    public static filterDataByExpressions(data: any[], expressionsTree: IFilteringExpressionsTree, grid: GridTypeBase): any {\n        if (expressionsTree.filteringOperands.length) {\n            const state = { expressionsTree, strategy: FilteringStrategy.instance() };\n            data = FilterUtil.filter(cloneArray(data), state, grid);\n        }\n\n        return data;\n    }\n\n    private static findParentFromPath(data: any[], primaryKey: any, childDataKey: any, path: any[]): any {\n        let collection: any[] = data;\n        let result: any;\n\n        for (const id of path) {\n            result = collection && collection.find(x => x[primaryKey] === id);\n            if (!result) {\n                break;\n            }\n\n            collection = result[childDataKey];\n        }\n\n        return result;\n    }\n}\n","import { FilteringLogic, type IFilteringExpression } from './filtering-expression.interface';\nimport { FilteringExpressionsTree, type IFilteringExpressionsTree } from './filtering-expressions-tree';\nimport { resolveNestedPath, parseDate, columnFieldPath } from '../core/utils';\nimport { GridColumnDataType, type ColumnType, type EntityType, type GridTypeBase } from './grid-types';\nimport { DataUtil } from './data-util';\nimport { SortingDirection } from './sorting-strategy';\nimport type { IFilteringState } from './filtering-state.interface';\nimport { isTree } from './expressions-tree-util';\nimport { IgxSorting } from './grid-sorting-strategy';\n\nconst DateType = 'date';\nconst DateTimeType = 'dateTime';\nconst TimeType = 'time';\n\nexport class FilterUtil {\n    public static filter<T>(data: T[], state: IFilteringState, grid?: GridTypeBase): T[] {\n        if (!state.strategy) {\n            state.strategy = new FilteringStrategy();\n        }\n        return state.strategy.filter(data, state.expressionsTree, state.advancedExpressionsTree, grid);\n    }\n}\n\n/* blazorCSSuppress */\nexport interface IFilteringStrategy {\n    filter(data: any[], expressionsTree: IFilteringExpressionsTree, advancedExpressionsTree?: IFilteringExpressionsTree,\n        grid?: GridTypeBase): any[];\n    /* csSuppress */\n    getFilterItems(column: ColumnType, tree: IFilteringExpressionsTree): Promise<IgxFilterItem[]>;\n}\n\n/* csSuppress */\nexport interface IgxFilterItem {\n    value: any;\n    label?: string;\n    children?: IgxFilterItem[];\n}\n\n/* csSuppress */\nexport abstract class BaseFilteringStrategy implements IFilteringStrategy {\n    // protected\n    public findMatchByExpression(rec: any, expr: IFilteringExpression, isDate?: boolean, isTime?: boolean, grid?: GridTypeBase): boolean {\n        if (expr.searchTree) {\n            const records = rec[expr.searchTree.entity!];\n            const shouldMatchRecords = expr.conditionName === 'inQuery';\n            if (!records) { // child grid is not yet created\n                return true;\n            }\n\n            for (let index = 0; index < records.length; index++) {\n                const record = records[index];\n                if ((shouldMatchRecords && this.matchRecord(record, expr.searchTree, grid, expr.searchTree.entity!)) ||\n                    (!shouldMatchRecords && !this.matchRecord(record, expr.searchTree, grid, expr.searchTree.entity!))) {\n                    return true;\n                }\n            }\n\n            return false;\n        }\n\n        const val = this.getFieldValue(rec, expr.fieldName, isDate, isTime, grid);\n        if (expr.condition?.logic) {\n            return expr.condition.logic(val, expr.searchVal, expr.ignoreCase);\n        }\n        return undefined!;\n    }\n\n    // protected\n    public matchRecord(rec: any, expressions: IFilteringExpressionsTree | IFilteringExpression, grid?: GridTypeBase, entity?: string): boolean {\n        if (expressions) {\n            if (isTree(expressions)) {\n                const expressionsTree = expressions;\n                const operator = expressionsTree.operator as FilteringLogic;\n                let matchOperand;\n\n                if (expressionsTree.filteringOperands?.length) {\n                    for (const operand of expressionsTree.filteringOperands) {\n                        matchOperand = this.matchRecord(rec, operand, grid, entity);\n\n                        // Return false if at least one operand does not match and the filtering logic is And\n                        if (!matchOperand && operator === FilteringLogic.And) {\n                            return false;\n                        }\n\n                        // Return true if at least one operand matches and the filtering logic is Or\n                        if (matchOperand && operator === FilteringLogic.Or) {\n                            return true;\n                        }\n                    }\n\n                    return matchOperand!;\n                }\n\n                return true;\n            } else {\n                const expression = expressions;\n                let dataType = null;\n                if (!entity) {\n                    const column = grid && grid.getColumnByName(expression.fieldName);\n                    dataType = column?.dataType;\n                } else if (grid!.type === 'hierarchical') {\n                    const schema = grid!.schema;\n                    const entityMatch = this.findEntityByName(schema, entity);\n                    dataType = entityMatch?.fields.find(f => f.field === expression.fieldName)?.dataType;\n                }\n\n                const isDate = dataType ? dataType === DateType || dataType === DateTimeType : false;\n                const isTime = dataType ? dataType === TimeType : false;\n\n                return this.findMatchByExpression(rec, expression, isDate, isTime, grid);\n            }\n        }\n\n        return true;\n    }\n\n    private findEntityByName(schema: EntityType[], name: string): EntityType | null {\n        for (const entity of schema) {\n            if (entity.name === name) {\n                return entity;\n            }\n\n            if (entity.childEntities && entity.childEntities.length > 0) {\n                const found = this.findEntityByName(entity.childEntities, name);\n                if (found) {\n                    return found;\n                }\n            }\n        }\n        return null;\n    }\n\n    public getFilterItems(column: ColumnType, tree: IFilteringExpressionsTree): Promise<IgxFilterItem[]> {\n        const applyFormatter = column.formatter && this.shouldFormatFilterValues(column);\n\n        const data = this.getFilteredData(column, tree);\n\n        const pathParts = columnFieldPath(column.field)\n        const seenFormattedFilterItems = new Map<any, IgxFilterItem>()\n\n        for (let i = 0; i < data.length; ++i) {\n            const record = data[i]\n            const rawValue = resolveNestedPath(record, pathParts);\n            const formattedValue = applyFormatter ? column.formatter!(rawValue, record) : rawValue;\n            const { key, finalValue } = this.getFilterItemKeyValue(formattedValue, column);\n            // Deduplicate by normalized key\n            if (!seenFormattedFilterItems.has(key)) {\n                const label = this.getFilterItemLabel(column, finalValue, !applyFormatter, record);\n                seenFormattedFilterItems.set(key, { value: finalValue, label });\n            }\n        }\n\n        let filterItems: IgxFilterItem[] = Array.from(seenFormattedFilterItems.values());\n\n        filterItems = DataUtil.sort(filterItems,\n            [{ fieldName: 'value', dir: SortingDirection.Asc, ignoreCase: column.sortingIgnoreCase }], new IgxSorting())\n\n        return Promise.resolve(filterItems);\n    }\n\n    protected getFilteredData(column: ColumnType, tree: IFilteringExpressionsTree) {\n        return column.grid.gridAPI.filterDataByExpressions(tree);\n    }\n\n    protected getFilterItemLabel(column: ColumnType, value: any, applyFormatter: boolean, data: any) {\n        if (column.formatter) {\n            if (applyFormatter) {\n                return column.formatter(value, data);\n            }\n            return value;\n        }\n\n        const { display, format, digitsInfo, currencyCode, timezone } = column.pipeArgs;\n        const locale = column.grid.locale;\n        const i18nFormatter = column.grid.i18nFormatter;\n\n        switch (column.dataType) {\n            case GridColumnDataType.Date:\n            case GridColumnDataType.DateTime:\n            case GridColumnDataType.Time:\n                return i18nFormatter.formatDate(value, format, locale, timezone);\n            case GridColumnDataType.Currency: {\n                const currencyCodeFinal = i18nFormatter.getCurrencyCode(locale, currencyCode);\n                return i18nFormatter.formatCurrency(value, locale, display, currencyCodeFinal, digitsInfo); }\n            case GridColumnDataType.Number:\n                return i18nFormatter.formatNumber(value, locale, digitsInfo);\n            case GridColumnDataType.Percent:\n                return i18nFormatter.formatPercent(value, locale, digitsInfo);\n            default:\n                return value;\n        }\n    }\n\n    protected getFilterItemKeyValue(value: any, column: ColumnType) {\n        let key: any = value;\n        let finalValue = value;\n        if (column.dataType === GridColumnDataType.String && column.filteringIgnoreCase) {\n            key = key?.toString().toLowerCase();\n        } else if (column.dataType === GridColumnDataType.DateTime) {\n            key = value?.toString();\n            finalValue = key ? new Date(key) : key;\n        } else if (column.dataType === GridColumnDataType.Time) {\n            const date = key ? new Date(key) : key;\n            key = date\n                ? new Date().setHours(\n                    date.getHours(),\n                    date.getMinutes(),\n                    date.getSeconds(),\n                    date.getMilliseconds()\n                )\n                : date;\n            finalValue = key ? new Date(key) : key;\n        } else if (column.dataType === GridColumnDataType.Date) {\n            const date = key ? new Date(key) : key;\n            key = date\n                ? new Date(date.getFullYear(), date.getMonth(), date.getDate()).toISOString()\n                : date;\n            finalValue = date;\n        }\n        return { key, finalValue };\n    }\n\n    protected shouldFormatFilterValues(_column: ColumnType): boolean {\n        return false;\n    }\n\n    public abstract filter(data: any[], expressionsTree: IFilteringExpressionsTree,\n        advancedExpressionsTree?: IFilteringExpressionsTree, grid?: GridTypeBase): any[];\n\n    protected abstract getFieldValue(rec: any, fieldName: string, isDate?: boolean, isTime?: boolean, grid?: GridTypeBase): any;\n}\n\n/* csSuppress */\nexport class NoopFilteringStrategy extends BaseFilteringStrategy {\n    protected getFieldValue(rec: any, _fieldName: string) {\n        return rec;\n    }\n    private static _instance: NoopFilteringStrategy = null!;\n\n    public static instance(): NoopFilteringStrategy {\n        return this._instance || (this._instance = new NoopFilteringStrategy());\n    }\n\n    public filter(data: any[], _: IFilteringExpressionsTree, __?: IFilteringExpressionsTree): any[] {\n        return data;\n    }\n}\n\n\n/* blazorCSSuppress */\nexport class FilteringStrategy extends BaseFilteringStrategy {\n    private static _instance: FilteringStrategy = null!;\n\n\n    public static instance() {\n        return this._instance || (this._instance = new this());\n    }\n\n    public filter<T>(data: T[], expressionsTree: IFilteringExpressionsTree, advancedExpressionsTree: IFilteringExpressionsTree,\n        grid: GridTypeBase): T[] {\n\n\n        if ((FilteringExpressionsTree.empty(expressionsTree) && FilteringExpressionsTree.empty(advancedExpressionsTree))) {\n            return data;\n        }\n\n        return data.filter(record => this.matchRecord(record, expressionsTree, grid) && this.matchRecord(record, advancedExpressionsTree, grid));\n    }\n\n    protected getFieldValue(rec: any, fieldName: string, isDate = false, isTime = false, grid?: GridTypeBase): any {\n        const column = grid?.getColumnByName(fieldName);\n        let value = resolveNestedPath(rec, columnFieldPath(fieldName));\n\n        value = column?.formatter && this.shouldFormatFilterValues(column) ?\n            column.formatter(value, rec) :\n            value && (isDate || isTime) ? parseDate(value) : value;\n\n        return value;\n    }\n}\nexport class FormattedValuesFilteringStrategy extends FilteringStrategy {\n    /**\n     * Creates a new instance of FormattedValuesFilteringStrategy.\n     *\n     * @param fields An array of column field names that should be formatted.\n     * If omitted the values of all columns which has formatter will be formatted.\n     */\n    constructor(private fields?: string[]) {\n        super();\n    }\n\n    protected override shouldFormatFilterValues(column: ColumnType): boolean {\n        return !this.fields || this.fields.length === 0 || this.fields.some(f => f === column.field);\n    }\n}\n","import { columnFieldPath, parseDate, resolveNestedPath } from '../core/utils';\nimport { DataUtil } from './data-util';\nimport { FilteringExpressionsTree, type IFilteringExpressionsTree } from './filtering-expressions-tree';\nimport { BaseFilteringStrategy, type IgxFilterItem } from './filtering-strategy';\nimport { SortingDirection } from './sorting-strategy';\nimport type { ColumnType, GridTypeBase, IgxTreeGridAPIService, ITreeGridRecord } from './grid-types';\n\nexport class TreeGridFilteringStrategy extends BaseFilteringStrategy {\n\n    constructor(public hierarchicalFilterFields?: string[]) {\n        super();\n    }\n\n    public filter(data: ITreeGridRecord[], expressionsTree: IFilteringExpressionsTree,\n        advancedExpressionsTree?: IFilteringExpressionsTree, grid?: GridTypeBase): ITreeGridRecord[] {\n        return this.filterImpl(data, expressionsTree, advancedExpressionsTree!, undefined!, grid);\n    }\n\n    protected getFieldValue(rec: any, fieldName: string, isDate = false, isTime = false, grid?: GridTypeBase): any {\n        const column = grid?.getColumnByName(fieldName);\n        const hierarchicalRecord = rec as ITreeGridRecord;\n        let value = this.isHierarchicalFilterField(fieldName) ?\n            this.getHierarchicalFieldValue(hierarchicalRecord, fieldName) :\n            resolveNestedPath(hierarchicalRecord.data, columnFieldPath(fieldName));\n\n        value = column?.formatter && this.shouldFormatFilterValues(column) ?\n            column.formatter(value, rec.data) :\n            value && (isDate || isTime) ? parseDate(value) : value;\n\n        return value;\n    }\n\n    private getHierarchicalFieldValue(record: ITreeGridRecord, field: string): string {\n        const value = resolveNestedPath(record.data, columnFieldPath(field));\n\n        return record.parent ?\n            `${this.getHierarchicalFieldValue(record.parent, field)}${value ? `.[${value}]` : ''}` :\n            `[${value}]`;\n    }\n\n    private filterImpl(data: ITreeGridRecord[], expressionsTree: IFilteringExpressionsTree,\n        advancedExpressionsTree: IFilteringExpressionsTree, parent: ITreeGridRecord, grid?: GridTypeBase): ITreeGridRecord[] {\n        let i: number;\n        let rec: ITreeGridRecord;\n        const len = data.length;\n        const res: ITreeGridRecord[] = [];\n        if ((FilteringExpressionsTree.empty(expressionsTree) && FilteringExpressionsTree.empty(advancedExpressionsTree)) || !len) {\n            return data;\n        }\n        for (i = 0; i < len; i++) {\n            rec = DataUtil.cloneTreeGridRecord(data[i]);\n            rec.parent = parent;\n            if (rec.children) {\n                const filteredChildren = this.filterImpl(rec.children, expressionsTree, advancedExpressionsTree, rec, grid);\n                rec.children = filteredChildren.length > 0 ? filteredChildren : null!;\n            }\n\n            if (this.matchRecord(rec, expressionsTree, grid) && this.matchRecord(rec, advancedExpressionsTree, grid)) {\n                res.push(rec);\n            } else if (rec.children && rec.children.length > 0) {\n                rec.isFilteredOutParent = true;\n                res.push(rec);\n            }\n        }\n        return res;\n    }\n\n    private isHierarchicalFilterField(field: string) {\n        return this.hierarchicalFilterFields && this.hierarchicalFilterFields.indexOf(field) !== -1;\n    }\n\n    public override getFilterItems(column: ColumnType, tree: IFilteringExpressionsTree): Promise<IgxFilterItem[]> {\n        if (!this.isHierarchicalFilterField(column.field)) {\n            return super.getFilterItems(column, tree);\n        }\n\n        let data = (column.grid.gridAPI as IgxTreeGridAPIService).filterTreeDataByExpressions(tree);\n        data = DataUtil.treeGridSort(\n            data,\n            [{ fieldName: column.field, dir: SortingDirection.Asc, ignoreCase: column.sortingIgnoreCase }],\n            column.grid.sortStrategy,\n            column.grid);\n\n        const items = this.getHierarchicalFilterItems(data, column);\n\n\n        return Promise.resolve(items);\n    }\n\n    protected override getFilteredData(column: ColumnType, tree: IFilteringExpressionsTree) {\n        return DataUtil.filterDataByExpressions(column.grid.flatData, tree, column.grid);\n    }\n\n    private getHierarchicalFilterItems(records: ITreeGridRecord[], column: ColumnType, parent?: IgxFilterItem): IgxFilterItem[] {\n        const pathParts = columnFieldPath(column.field);\n        return records?.map(record => {\n            let value = resolveNestedPath(record.data, pathParts);\n            const applyFormatter = column.formatter && this.shouldFormatFilterValues(column);\n\n            value = applyFormatter ?\n                column.formatter!(value, record.data) :\n                value;\n\n            const hierarchicalValue = parent ?\n                (value || value === 0) ? `${parent.value}.[${value}]` : value :\n                `[${value}]`;\n\n            const filterItem: IgxFilterItem = { value: hierarchicalValue };\n            filterItem.label = this.getFilterItemLabel(column, value, !applyFormatter, record.data);\n            filterItem.children = this.getHierarchicalFilterItems(record.children!, column, filterItem);\n            return filterItem;\n        });\n    }\n}\n\nexport class TreeGridFormattedValuesFilteringStrategy extends TreeGridFilteringStrategy {\n    /**\n     * Creates a new instance of FormattedValuesFilteringStrategy.\n     *\n     * @param fields An array of column field names that should be formatted.\n     * If omitted the values of all columns which has formatter will be formatted.\n     */\n    constructor(private fields?: string[]) {\n        super();\n    }\n\n    protected override shouldFormatFilterValues(column: ColumnType): boolean {\n        return !this.fields || this.fields.length === 0 || this.fields.some(f => f === column.field);\n    }\n}\n\nexport class TreeGridMatchingRecordsOnlyFilteringStrategy extends TreeGridFilteringStrategy {\n    public override filter(data: ITreeGridRecord[], expressionsTree: IFilteringExpressionsTree,\n        advancedExpressionsTree?: IFilteringExpressionsTree, grid?: GridTypeBase): ITreeGridRecord[] {\n        return this.filterImplementation(data, expressionsTree, advancedExpressionsTree!, undefined!, grid);\n    }\n\n    private filterImplementation(data: ITreeGridRecord[], expressionsTree: IFilteringExpressionsTree,\n        advancedExpressionsTree: IFilteringExpressionsTree, parent: ITreeGridRecord, grid?: GridTypeBase): ITreeGridRecord[] {\n        let i: number;\n        let rec: ITreeGridRecord;\n        const len = data.length;\n        const res: ITreeGridRecord[] = [];\n        if ((FilteringExpressionsTree.empty(expressionsTree) && FilteringExpressionsTree.empty(advancedExpressionsTree)) || !len) {\n            return data;\n        }\n        for (i = 0; i < len; i++) {\n            rec = DataUtil.cloneTreeGridRecord(data[i]);\n            rec.parent = parent;\n            if (rec.children) {\n                const filteredChildren = this.filterImplementation(rec.children, expressionsTree, advancedExpressionsTree, rec, grid);\n                rec.children = filteredChildren.length > 0 ? filteredChildren : null!;\n            }\n            if (this.matchRecord(rec, expressionsTree, grid) && this.matchRecord(rec, advancedExpressionsTree, grid)) {\n                res.push(rec);\n            } else if (rec.children && rec.children.length > 0) {\n                rec = this.setCorrectLevelToFilteredRecords(rec);\n                res.push(...rec.children!);\n            }\n        }\n        return res;\n    }\n\n    private setCorrectLevelToFilteredRecords(rec: ITreeGridRecord): ITreeGridRecord {\n        if (rec.children && rec.children.length > 0) {\n            rec.children.map(child => {\n                child.level = child.level! - 1;\n                return this.setCorrectLevelToFilteredRecords(child);\n            });\n        }\n        return rec;\n    }\n}\n","import type { ColumnType } from './grid-types';\nimport { ISortingExpression } from './sorting-strategy';\n\n/**\n * @hidden\n */\nexport class GroupedRecords extends Array<any> {}\n\n/* jsonAPIComplexObject */\nexport interface IGroupByRecord {\n    expression: ISortingExpression;\n    level: number;\n    /* wcAlternateType: any[] */\n    records: GroupedRecords;\n    value: any;\n    groupParent: IGroupByRecord;\n    groups?: IGroupByRecord[];\n    height: number;\n    column?: ColumnType;\n }\n","import { IgxSummaryResult } from './grid-types';\nimport { IGroupByRecord } from './groupby-record.interface';\n\n\nconst clear = (el: any) => el === 0 || Boolean(el);\nconst first = (arr: any[]) => arr[0];\nconst last = (arr: any[]) => arr[arr.length - 1];\n\n/* blazorCSSuppress */\nexport class IgxSummaryOperand {\n    /**\n     * Counts all the records in the data source.\n     * If filtering is applied, counts only the filtered records.\n     * ```typescript\n     * IgxSummaryOperand.count(dataSource);\n     * ```\n     *\n     * @memberof IgxSummaryOperand\n     */\n    public static count(data: any[]): number {\n        return data.length;\n    }\n    /**\n     * Executes the static `count` method and returns summary result[]`.\n     * ```typescript\n     * interface IgxSummaryResult {\n     *   key: string;\n     *   label: string;\n     *   summaryResult: any;\n     * }\n     * ```\n     * Can be overridden in the inherited classes to provide customization for the `summary`.\n     * ```typescript\n     * class CustomSummary extends IgxSummaryOperand {\n     *   constructor() {\n     *     super();\n     *   }\n     *   public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {\n     *     const result = [];\n     *     result.push({\n     *       key: \"test\",\n     *       label: \"Test\",\n     *       summaryResult: IgxSummaryOperand.count(data)\n     *     });\n     *     return result;\n     *   }\n     * }\n     * this.grid.getColumnByName('ColumnName').summaries = CustomSummary;\n     * ```\n     *\n     * @memberof IgxSummaryOperand\n     */\n    public operate(data: any[] = [], _allData: any[] = [], _fieldName?: string, _groupRecord?: IGroupByRecord): IgxSummaryResult[] {\n        return [{\n            key: 'count',\n            label: 'Count',\n            defaultFormatting: false,\n            summaryResult: IgxSummaryOperand.count(data)\n        }];\n    }\n}\n\n/* blazorCSSuppress */\n// @dynamic\nexport class IgxNumberSummaryOperand extends IgxSummaryOperand {\n    /**\n     * Returns the minimum numeric value in the provided data records.\n     * If filtering is applied, returns the minimum value in the filtered data records.\n     * ```typescript\n     * IgxNumberSummaryOperand.min(data);\n     * ```\n     *\n     * @memberof IgxNumberSummaryOperand\n     */\n    public static min(data: any[]): number {\n        return data.length && data.filter(clear).length ? data.filter(clear).reduce((a, b) => Math.min(a, b)) : 0;\n    }\n    /**\n     * Returns the maximum numeric value in the provided data records.\n     * If filtering is applied, returns the maximum value in the filtered data records.\n     * ```typescript\n     * IgxNumberSummaryOperand.max(data);\n     * ```\n     *\n     * @memberof IgxNumberSummaryOperand\n     */\n    public static max(data: any[]): number {\n        return data.length && data.filter(clear).length ? data.filter(clear).reduce((a, b) => Math.max(a, b)) : 0;\n    }\n    /**\n     * Returns the sum of the numeric values in the provided data records.\n     * If filtering is applied, returns the sum of the numeric values in the data records.\n     * ```typescript\n     * IgxNumberSummaryOperand.sum(data);\n     * ```\n     *\n     * @memberof IgxNumberSummaryOperand\n     */\n    public static sum(data: any[]): number {\n        return data.length && data.filter(clear).length ? data.filter(clear).reduce((a, b) => +a + +b) : 0;\n    }\n    /**\n     * Returns the average numeric value in the data provided data records.\n     * If filtering is applied, returns the average numeric value in the filtered data records.\n     * ```typescript\n     * IgxSummaryOperand.average(data);\n     * ```\n     *\n     * @memberof IgxNumberSummaryOperand\n     */\n    public static average(data: any[]): number {\n        return data.length && data.filter(clear).length ? this.sum(data) / this.count(data) : 0;\n    }\n    /**\n     * Executes the static methods and returns summary result[]`.\n     * ```typescript\n     * interface IgxSummaryResult {\n     *   key: string;\n     *   label: string;\n     *   summaryResult: any;\n     * }\n     * ```\n     * Can be overridden in the inherited classes to provide customization for the `summary`.\n     * ```typescript\n     * class CustomNumberSummary extends IgxNumberSummaryOperand {\n     *   constructor() {\n     *     super();\n     *   }\n     *   public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {\n     *     const result = super.operate(data, allData, fieldName, groupRecord);\n     *     result.push({\n     *       key: \"avg\",\n     *       label: \"Avg\",\n     *       summaryResult: IgxNumberSummaryOperand.average(data)\n     *     });\n     *     result.push({\n     *       key: 'mdn',\n     *       label: 'Median',\n     *       summaryResult: this.findMedian(data)\n     *     });\n     *     return result;\n     *   }\n     * }\n     * this.grid.getColumnByName('ColumnName').summaries = CustomNumberSummary;\n     * ```\n     *\n     * @memberof IgxNumberSummaryOperand\n     */\n    public override operate(data: any[] = [], allData: any[] = [], fieldName?: string, groupRecord?: IGroupByRecord): IgxSummaryResult[] {\n        const result = super.operate(data, allData, fieldName, groupRecord);\n        result.push({\n            key: 'min',\n            label: 'Min',\n            defaultFormatting: true,\n            summaryResult: IgxNumberSummaryOperand.min(data)\n        });\n        result.push({\n            key: 'max',\n            label: 'Max',\n            defaultFormatting: true,\n            summaryResult: IgxNumberSummaryOperand.max(data)\n        });\n        result.push({\n            key: 'sum',\n            label: 'Sum',\n            defaultFormatting: true,\n            summaryResult: IgxNumberSummaryOperand.sum(data)\n        });\n        result.push({\n            key: 'average',\n            label: 'Avg',\n            defaultFormatting: true,\n            summaryResult: IgxNumberSummaryOperand.average(data)\n        });\n        return result;\n    }\n}\n\n/* blazorCSSuppress */\n// @dynamic\nexport class IgxDateSummaryOperand extends IgxSummaryOperand {\n    /**\n     * Returns the latest date value in the data records.\n     * If filtering is applied, returns the latest date value in the filtered data records.\n     * ```typescript\n     * IgxDateSummaryOperand.latest(data);\n     * ```\n     *\n     * @memberof IgxDateSummaryOperand\n     */\n    public static latest(data: any[]): any {\n        return data.length && data.filter(clear).length ?\n            first(data.filter(clear).sort((a, b) => new Date(b).valueOf() - new Date(a).valueOf())) : undefined;\n    }\n    /**\n     * Returns the earliest date value in the data records.\n     * If filtering is applied, returns the latest date value in the filtered data records.\n     * ```typescript\n     * IgxDateSummaryOperand.earliest(data);\n     * ```\n     *\n     * @memberof IgxDateSummaryOperand\n     */\n    public static earliest(data: any[]): any {\n        return data.length && data.filter(clear).length ?\n            last(data.filter(clear).sort((a, b) => new Date(b).valueOf() - new Date(a).valueOf())) : undefined;\n    }\n    /**\n     * Executes the static methods and returns summary result[]`.\n     * ```typescript\n     * interface IgxSummaryResult {\n     *   key: string;\n     *   label: string;\n     *   summaryResult: any;\n     * }\n     * ```\n     * Can be overridden in the inherited classes to provide customization for the `summary`.\n     * ```typescript\n     * class CustomDateSummary extends IgxDateSummaryOperand {\n     *   constructor() {\n     *     super();\n     *   }\n     *   public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {\n     *     const result = super.operate(data, allData, fieldName, groupRecord);\n     *     result.push({\n     *       key: \"deadline\",\n     *       label: \"Deadline Date\",\n     *       summaryResult: this.calculateDeadline(data);\n     *     });\n     *     return result;\n     *   }\n     * }\n     * this.grid.getColumnByName('ColumnName').summaries = CustomDateSummary;\n     * ```\n     *\n     * @memberof IgxDateSummaryOperand\n     */\n    public override operate(data: any[] = [], allData: any[] = [],  fieldName?: string, groupRecord?: IGroupByRecord): IgxSummaryResult[] {\n        const result = super.operate(data, allData, fieldName, groupRecord);\n        result.push({\n            key: 'earliest',\n            label: 'Earliest',\n            defaultFormatting: true,\n            summaryResult: IgxDateSummaryOperand.earliest(data)\n        });\n        result.push({\n            key: 'latest',\n            label: 'Latest',\n            defaultFormatting: true,\n            summaryResult: IgxDateSummaryOperand.latest(data)\n        });\n        return result;\n    }\n}\n\n/* blazorCSSuppress */\n// @dynamic\nexport class IgxTimeSummaryOperand extends IgxSummaryOperand {\n    /**\n     * Returns the latest time value in the data records. Compare only the time part of the date.\n     * If filtering is applied, returns the latest time value in the filtered data records.\n     * ```typescript\n     * IgxTimeSummaryOperand.latestTime(data);\n     * ```\n     *\n     * @memberof IgxTimeSummaryOperand\n     */\n    public static latestTime(data: any[]): any {\n        return data.length && data.filter(clear).length ?\n            first(data.filter(clear).map(v => new Date(v)).sort((a, b) =>\n                new Date().setHours(b.getHours(), b.getMinutes(), b.getSeconds()) -\n                new Date().setHours(a.getHours(), a.getMinutes(), a.getSeconds()))) : undefined;\n    }\n\n    /**\n     * Returns the earliest time value in the data records. Compare only the time part of the date.\n     * If filtering is applied, returns the earliest time value in the filtered data records.\n     * ```typescript\n     * IgxTimeSummaryOperand.earliestTime(data);\n     * ```\n     *\n     * @memberof IgxTimeSummaryOperand\n     */\n    public static earliestTime(data: any[]): any {\n        return data.length && data.filter(clear).length ?\n            last(data.filter(clear).map(v => new Date(v)).sort((a, b) => new Date().setHours(b.getHours(), b.getMinutes(), b.getSeconds()) -\n            new Date().setHours(a.getHours(), a.getMinutes(), a.getSeconds()))) : undefined;\n    }\n    /**\n     * @memberof IgxTimeSummaryOperand\n     */\n    public override operate(data: any[] = [], allData: any[] = [],  fieldName?: string, groupRecord?: IGroupByRecord): IgxSummaryResult[] {\n        const result = super.operate(data, allData, fieldName, groupRecord);\n        result.push({\n            key: 'earliest',\n            label: 'Earliest',\n            defaultFormatting: true,\n            summaryResult: IgxTimeSummaryOperand.earliestTime(data)\n        });\n        result.push({\n            key: 'latest',\n            label: 'Latest',\n            defaultFormatting: true,\n            summaryResult: IgxTimeSummaryOperand.latestTime(data)\n        });\n        return result;\n    }\n}\n","import {\n    formatDate as ngFormatDate,\n    getLocaleCurrencyCode,\n    getLocaleFirstDayOfWeek as ngGetLocaleFirstDayOfWeek,\n    formatNumber as ngFormatNumber,\n    formatPercent as ngFormatPercent,\n    getCurrencySymbol as ngGetCurrencySymbol,\n    CurrencyPipe\n} from '@angular/common';\nimport { InjectionToken } from '@angular/core';\nimport { getCurrentI18n, getDateFormatter } from 'igniteui-i18n-core';\n\n/**\n * Injection token that allows for retrieving the i18n formatter for the IgniteUI components.\n */\nexport const I18N_FORMATTER = new InjectionToken<BaseFormatter>('IgniteFormattingToken',{\n    providedIn: 'root',\n    factory: () => new BaseFormatter(),\n});\n\nexport class BaseFormatter {\n    protected IntlDateTimeStyleValues = {\n        full: 'Full',\n        long: 'Long',\n        medium: 'Medium',\n        short: 'Short'\n    };\n    private _currencyPipe = new CurrencyPipe('en-US', 'USD');\n\n    public verifyLocale(locale: string): string {\n        try {\n            // Any angular method should work.\n            ngGetLocaleFirstDayOfWeek(locale);\n        } catch {\n            return undefined!;\n        }\n        return locale;\n    }\n\n    /**\n     * Get Intl options based on format provided:\n     *\n     * date and time formats - short, medium, long, full\n     *\n     * date formats - shortDate, mediumDate, longDate, fullDate\n     *\n     * time formats - shortTime, mediumTime, longTime, fullTime\n     *\n     * @returns Return the resolved options or null if not matching any of the above.\n     */\n    public getFormatOptions(format: string | null | undefined): Intl.DateTimeFormatOptions | null {\n        let dateStyle = undefined, timeStyle = undefined;\n        if (format === 'short' || format === 'medium' || format === 'long' || format === 'full') {\n            dateStyle = format;\n            timeStyle = format;\n        } else if (format?.includes('Date')) {\n            dateStyle = format.replace('Date', '');\n        } else if (format?.includes('Time')) {\n            timeStyle = format.replace('Time', '');\n        } else {\n            return null;\n        }\n\n        return {\n            dateStyle: dateStyle as Intl.DateTimeFormatOptions['dateStyle'],\n            timeStyle: timeStyle as Intl.DateTimeFormatOptions['timeStyle']\n        };\n    }\n\n    /**\n     * Returns the date and time format based on a provided locale and options.\n     */\n    public getLocaleDateTimeFormat(locale: string, forceLeadingZero = false, options?: Intl.DateTimeFormatOptions): string {\n        return getDateFormatter().getLocaleDateTimeFormat(locale, forceLeadingZero, options);\n    }\n\n    /**\n     * Format provided date to reflect locales format. Similar to Angular's formatDate.\n     */\n    public formatDate(value: Date | string | number | null | undefined, format: string, locale: string, timezone?: string): string {\n        // Mirror Angular's DatePipe, which defaults to 'mediumDate' when no format is supplied.\n        // A null/empty format would otherwise reach ngFormatDate and throw on `format.length`.\n        return value != null ? ngFormatDate(value, format || 'mediumDate', locale, timezone) : '';\n    }\n\n    /** Format number value based on locale */\n    public formatNumber(value: number | string | null | undefined, locale: string, digitsInfo?: string): string {\n        if (typeof value === \"string\") {\n            value = parseFloat(value);\n        }\n        return value != null ? ngFormatNumber(value, locale, digitsInfo) : '';\n    }\n\n    /** Format number value as percent based on locale */\n    public formatPercent(value: number | string | null | undefined, locale: string, digitsInfo?: string): string {\n        if (typeof value === \"string\") {\n            value = parseFloat(value);\n        }\n        return value != null ? ngFormatPercent(value, locale, digitsInfo) : '';\n    }\n\n    /** Format number as a currency based on locale */\n    public formatCurrency(value: number | string | null | undefined, locale?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string, currencyCode?: string, digitsInfo?: string): string {\n        if (typeof value === \"string\") {\n            value = parseFloat(value);\n        }\n\n        return value != null ? this._currencyPipe.transform(value, currencyCode, display, digitsInfo, locale ?? getCurrentI18n())! : '';\n    }\n\n    /**\n     * Retrieve the currency code of the locale provided.\n     * Angular provides locale data for them, if using that.\n     * When using Intl, it should be user defined and defaults to USD.\n     */\n    public getCurrencyCode(locale: string, overrideCode?: string): string {\n        if (overrideCode) {\n            return overrideCode;\n        }\n        return getLocaleCurrencyCode(locale)!;\n    }\n\n\n    /** Get the currency symbol based on a currency code. */\n    public getCurrencySymbol(currencyCode: string, locale: string, currencyDisplay: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry = \"symbol\"): string {\n        let format: 'wide' | 'narrow' = 'wide';\n        if (currencyDisplay === 'narrowSymbol') {\n            format = 'narrow';\n        }\n        return ngGetCurrencySymbol(currencyCode, format, locale);\n    }\n\n    /**\n     * Get first day of the week.\n     * Angular's default: 0...6.\n     * Intl default: 1...7.\n     */\n    public getLocaleFirstDayOfWeek(locale: string): number {\n        // Angular returns 0 for Sunday...\n        return ngGetLocaleFirstDayOfWeek(locale);\n    }\n}\n","import { Pipe, PipeTransform, LOCALE_ID, inject } from '@angular/core';\nimport { I18N_FORMATTER } from '../core/i18n/formatters/formatter-base';\n\n@Pipe({\n    name: 'date',\n    standalone: true\n})\nexport class IgxDateFormatterPipe implements PipeTransform {\n    private i18nFormatter = inject(I18N_FORMATTER);\n    private locale_ID = inject(LOCALE_ID);\n\n    public transform(value: Date | string | number | null | undefined, format?: string, timezone?: string, locale?: string) {\n        return this.i18nFormatter.formatDate(value, format!, locale ?? this.locale_ID, timezone);\n    }\n}\n\n@Pipe({\n    name: 'number',\n    standalone: true\n})\nexport class IgxNumberFormatterPipe implements PipeTransform {\n    private i18nFormatter = inject(I18N_FORMATTER);\n\n    public transform(value: number | string | null | undefined, digitsInfo?: string, locale?: string) {\n        return this.i18nFormatter.formatNumber(value, locale!, digitsInfo);\n    }\n}\n\n@Pipe({\n    name: 'percent',\n    standalone: true\n})\nexport class IgxPercentFormatterPipe implements PipeTransform {\n    private i18nFormatter = inject(I18N_FORMATTER);\n\n    public transform(value: number | string | null | undefined, digitsInfo?: string, locale?: string) {\n        return this.i18nFormatter.formatPercent(value, locale!, digitsInfo);\n    }\n}\n\n@Pipe({\n    name: 'currency',\n    standalone: true\n})\nexport class IgxCurrencyFormatterPipe implements PipeTransform {\n    private i18nFormatter = inject(I18N_FORMATTER);\n\n    public transform(value: number | string | null | undefined, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string , digitsInfo?: string, locale?: string) {\n\n        return this.i18nFormatter.formatCurrency(value, locale, display, currencyCode, digitsInfo);\n    }\n}\n","import { AnimationPlayer as AngularAnimationPlayer } from '@angular/animations';\nimport { EventEmitter } from '@angular/core';\nimport { IBaseEventArgs } from '../../core/utils';\nimport { AnimationPlayer } from './animation';\n\nexport class IgxAngularAnimationPlayer implements AnimationPlayer {\n    private _innerPlayer: AngularAnimationPlayer;\n    private _isNoop: boolean;\n    /** Whether `animationEnd` was already emitted for the current playback. */\n    private _doneEmitted = false;\n    public animationStart: EventEmitter<IBaseEventArgs> = new EventEmitter<IBaseEventArgs>();\n    public animationEnd: EventEmitter<IBaseEventArgs> = new EventEmitter<IBaseEventArgs>();\n\n    public get position(): number {\n        return this._innerPlayer.getPosition();\n    }\n\n    public set position(value: number) {\n        this.internalPlayer.setPosition(value);\n    }\n\n    constructor(private internalPlayer: AngularAnimationPlayer, isNoop = false) {\n        this.internalPlayer.onDone(() => this.onDone());\n        const innerRenderer = (this.internalPlayer as any)._renderer;\n        //  We need inner player as Angular.AnimationPlayer.getPosition returns always 0.\n        // To workaround this we are getting the positions from the inner player.\n        //  This is logged in Angular here - https://github.com/angular/angular/issues/18891\n        //  As soon as this is resolved we can remove this hack\n        if (innerRenderer) {\n            const rendererEngine = innerRenderer.engine || innerRenderer.delegate.engine;\n            // A workaround because of Angular SSR is using some delegation.\n            this._innerPlayer = rendererEngine.players[rendererEngine.players.length - 1];\n        } else {\n            // No _renderer means a plain NoopAnimationPlayer (e.g. mocked AnimationBuilder in tests).\n            this._innerPlayer = internalPlayer;\n        }\n        // _isNoop is set by the service using ANIMATION_MODULE_TYPE so it is correct\n        // even when RendererAnimationPlayer is used (which always has _renderer).\n        this._isNoop = isNoop || !innerRenderer;\n    }\n\n    public init(): void {\n        this.internalPlayer.init();\n    }\n\n    public play(): void {\n        this._doneEmitted = false;\n        this.animationStart.emit({ owner: this });\n        this.internalPlayer.play();\n\n        if (this._isNoop) {\n            this.internalPlayer.finish();\n        }\n    }\n\n    public finish(): void {\n        this.internalPlayer.finish();\n        // TODO: when animation finish angular deletes all onDone handlers. Add handlers again if needed\n    }\n\n    public reset(): void {\n        this.internalPlayer.reset();\n        // calling reset does not change hasStarted to false. This is why we are doing it here via internal field\n        (this.internalPlayer as any)._started = false;\n    }\n\n    public destroy(): void {\n        this.internalPlayer.destroy();\n    }\n\n    public hasStarted(): boolean {\n        return this.internalPlayer.hasStarted();\n    }\n\n    private onDone(): void {\n        // A no-op player completes twice per playback: synchronously through `finish()` in `play()` and\n        // through the completion it queued itself. A `reset()` from an `animationEnd` handler re-arms the\n        // inner player's done callbacks, so the queued completion would emit again. Emit once per `play()`.\n        if (this._doneEmitted) {\n            return;\n        }\n        this._doneEmitted = true;\n        this.animationEnd.emit({ owner: this });\n    }\n}\n","import { AnimationBuilder, AnimationReferenceMetadata } from '@angular/animations';\nimport { ANIMATION_MODULE_TYPE, Injectable, inject } from '@angular/core';\nimport { IgxAngularAnimationPlayer } from './angular-animation-player';\nimport { AnimationService, AnimationPlayer } from './animation';\n\n@Injectable({providedIn: 'root'})\nexport class IgxAngularAnimationService implements AnimationService {\n    private builder = inject(AnimationBuilder);\n    private isNoop = inject(ANIMATION_MODULE_TYPE, { optional: true }) === 'NoopAnimations';\n\n    public buildAnimation(animationMetaData: AnimationReferenceMetadata, element: HTMLElement): AnimationPlayer {\n        if (!animationMetaData) {\n            return null!;\n        }\n        const animationBuilder = this.builder.build(animationMetaData);\n        const player = new IgxAngularAnimationPlayer(animationBuilder.create(element), this.isNoop);\n        return player;\n    }\n}\n","import { AnimationReferenceMetadata } from '@angular/animations';\nimport { ComponentRef, Directive, ElementRef, inject, Injector, NgZone } from '@angular/core';\nimport { CancelableBrowserEventArgs, CancelableEventArgs, cloneValue, IBaseEventArgs } from '../../core/utils';\nimport { AnimationPlayer } from '../animation/animation';\nimport { IPositionStrategy } from './position/IPositionStrategy';\nimport { IScrollStrategy } from './scroll';\n\n/**\n * @hidden @internal\n */\nconst getIntersectionObserver = () => globalThis.window?.IntersectionObserver;\n\n/* blazorCSSuppress */\n/**\n * Mark an element as an igxOverlay outlet container.\n * Directive instance is exported as `overlay-outlet` to be assigned to templates variables:\n * ```html\n * <div igxOverlayOutlet #outlet=\"overlay-outlet\"></div>\n * ```\n */\n@Directive({\n    exportAs: 'overlay-outlet',\n    selector: '[igxOverlayOutlet]',\n    standalone: true\n})\nexport class IgxOverlayOutletDirective {\n    /* blazorSuppress */\n    public element = inject<ElementRef<HTMLElement>>(ElementRef);\n\n    /** @hidden */\n    public get nativeElement() {\n        return this.element.nativeElement;\n    }\n}\n\n/* blazorAlternateName: GridHorizontalAlignment */\nexport enum HorizontalAlignment {\n    Left = -1,\n    Center = -0.5,\n    Right = 0\n}\n\n/* blazorAlternateName: GridVerticalAlignment */\nexport enum VerticalAlignment {\n    Top = -1,\n    Middle = -0.5,\n    Bottom = 0\n}\n\n/**\n * Defines the possible values of the overlays' position strategy.\n */\nexport enum RelativePositionStrategy {\n    Connected = 'connected',\n    Auto = 'auto',\n    Elastic = 'elastic'\n}\n\n/**\n * Defines the possible positions for the relative overlay settings presets.\n */\nexport enum RelativePosition {\n    Above = 'above',\n    Below = 'below',\n    Before = 'before',\n    After = 'after',\n    Default = 'default'\n}\n\n/**\n * Defines the possible positions for the absolute overlay settings presets.\n */\nexport enum AbsolutePosition {\n    Bottom = 'bottom',\n    Top = 'top',\n    Center = 'center'\n}\n\n/**\n * Determines whether to add or set the offset values.\n */\nexport enum OffsetMode {\n    Add,\n    Set\n}\n\n// TODO: make this interface\nexport class Point {\n    constructor(public x: number, public y: number) { }\n}\n\n/** @hidden */\nexport interface OutOfViewPort {\n    /** Out of view port at Top or Left */\n    back: number;\n    /** Out of view port at Bottom or Right */\n    forward: number;\n}\n\nexport interface PositionSettings {\n    /* mustCoerceToInt */\n    /** Direction in which the component should show */\n    horizontalDirection?: HorizontalAlignment;\n    /* mustCoerceToInt */\n    /** Direction in which the component should show */\n    verticalDirection?: VerticalAlignment;\n    /* mustCoerceToInt */\n    /** Target's starting point */\n    horizontalStartPoint?: HorizontalAlignment;\n    /* mustCoerceToInt */\n    /** Target's starting point */\n    verticalStartPoint?: VerticalAlignment;\n    /* blazorSuppress */\n    /** Animation applied while overlay opens */\n    openAnimation?: AnimationReferenceMetadata;\n    /* blazorSuppress */\n    /** Animation applied while overlay closes */\n    closeAnimation?: AnimationReferenceMetadata;\n    /** The size up to which element may shrink when shown in elastic position strategy */\n    minSize?: Size;\n    /** The offset of the element from the target in pixels */\n    offset?: number;\n}\n\nexport interface OverlaySettings {\n    /* blazorCSSuppress */\n    /** Attaching target for the component to show */\n    target?: Point | HTMLElement;\n    /* blazorCSSuppress */\n    /** Position strategy to use with these settings */\n    positionStrategy?: IPositionStrategy;\n    /* blazorCSSuppress */\n    /** Scroll strategy to use with these settings */\n    scrollStrategy?: IScrollStrategy;\n    /** Set if the overlay should be in modal mode */\n    modal?: boolean;\n    /** Set if the overlay should close on outside click */\n    closeOnOutsideClick?: boolean;\n    /** Set if the overlay should close when `Esc` key is pressed */\n    closeOnEscape?: boolean;\n    /* blazorSuppress */\n    /**\n     * Set the outlet container to attach the overlay to\n     *\n     * @deprecated in version 21.2.0. Overlays now use the HTML Popover API and no longer move to the document\n     * body by default, so using outlet is also no longer needed - just define the overlay in the intended\n     * DOM tree position instead.\n     */\n    outlet?: IgxOverlayOutletDirective | ElementRef;\n    /**\n     * @hidden @internal\n     * Elements to be excluded for closeOnOutsideClick.\n     * Clicking on the elements in this collection will not close the overlay when closeOnOutsideClick = true.\n     */\n    excludeFromOutsideClick?: HTMLElement[];\n}\n\nexport interface OverlayEventArgs extends IBaseEventArgs {\n    /** Id of the overlay generated with `attach()` method */\n    id: string;\n    /** Available when `Type<T>` is provided to the `attach()` method and allows access to the created Component instance */\n    componentRef?: ComponentRef<any>;\n    /** Will provide the elementRef of the markup that will be displayed in the overlay */\n    elementRef?: ElementRef<any>;\n    /** Will provide the overlay settings which will be used when the component is attached */\n    settings?: OverlaySettings;\n    /** Will provide the original keyboard event if closed from ESC or click */\n    event?: Event;\n}\n\nexport interface OverlayCancelableEventArgs extends OverlayEventArgs, CancelableEventArgs {\n}\n\nexport interface OverlayClosingEventArgs extends OverlayEventArgs, CancelableBrowserEventArgs {\n}\n\nexport interface OverlayAnimationEventArgs extends IBaseEventArgs {\n    /** Id of the overlay generated with `attach()` method */\n    id: string;\n    /** Animation player that will play the animation */\n    animationPlayer: AnimationPlayer;\n    /** Type of animation to be played. It should be either 'open' or 'close' */\n    animationType: 'open' | 'close';\n}\n\nexport interface Size {\n    /** Gets or sets the horizontal component of Size */\n    width: number;\n\n    /** Gets or sets the vertical component of Size */\n    height: number;\n}\n\n/** @hidden */\nexport interface OverlayInfo {\n    id?: string;\n    visible?: boolean;\n    detached?: boolean;\n    elementRef?: ElementRef;\n    componentRef?: ComponentRef<any>;\n    settings?: OverlaySettings;\n    initialSize?: Size;\n    hook?: HTMLElement;\n    openAnimationPlayer?: AnimationPlayer;\n    // calling animation.destroy in detach fires animation.done. This should not happen\n    // this is why we should trace if animation ever started\n    openAnimationDetaching?: boolean;\n    closeAnimationPlayer?: AnimationPlayer;\n    // calling animation.destroy in detach fires animation.done. This should not happen\n    // this is why we should trace if animation ever started\n    closeAnimationDetaching?: boolean;\n    ngZone: NgZone;\n    transformX?: number;\n    transformY?: number;\n    event?: Event;\n    wrapperElement?: HTMLElement;\n    size?: string;\n}\n\n/** @hidden */\nexport interface ConnectedFit {\n    contentElementRect?: Partial<DOMRect>;\n    targetRect?: Partial<DOMRect>;\n    viewPortRect?: Partial<DOMRect>;\n    fitHorizontal?: OutOfViewPort;\n    fitVertical?: OutOfViewPort;\n    left?: number;\n    right?: number;\n    top?: number;\n    bottom?: number;\n    horizontalOffset?: number;\n    verticalOffset?: number;\n}\n\nexport interface OverlayCreateSettings extends OverlaySettings {\n    /**\n     * An `Injector` instance to add in the created component ref's injectors tree.\n     */\n    injector?: Injector\n}\n\n/** @hidden @internal */\nexport class Util {\n    /**\n     * Calculates the rectangle of target for provided overlay settings. Defaults to 0,0,0,0,0,0 rectangle\n     * if no target is provided\n     *\n     * @param settings Overlay settings for which to calculate target rectangle\n     */\n    public static getTargetRect(target?: Point | HTMLElement): Partial<DOMRect> {\n        let targetRect: Partial<DOMRect> = {\n            bottom: 0,\n            height: 0,\n            left: 0,\n            right: 0,\n            top: 0,\n            width: 0\n        };\n        if (target instanceof HTMLElement) {\n            targetRect = (target as HTMLElement).getBoundingClientRect();\n        } else if (target instanceof Point) {\n            const targetPoint = target as Point;\n            targetRect = {\n                bottom: targetPoint.y,\n                height: 0,\n                left: targetPoint.x,\n                right: targetPoint.x,\n                top: targetPoint.y,\n                width: 0\n            };\n        }\n        return targetRect;\n    }\n\n    public static getViewportRect(document: Document): Partial<DOMRect> {\n        const width = document.documentElement.clientWidth;\n        const height = document.documentElement.clientHeight;\n        const scrollPosition = Util.getViewportScrollPosition(document);\n\n        return {\n            top: scrollPosition.y,\n            left: scrollPosition.x,\n            right: scrollPosition.x + width,\n            bottom: scrollPosition.y + height,\n            width,\n            height,\n        };\n    }\n\n    public static getViewportScrollPosition(document: Document): Point {\n        const documentElement = document.documentElement;\n        const documentRect = documentElement.getBoundingClientRect();\n\n        const horizontalScrollPosition =\n            -documentRect.left || document.body.scrollLeft || window.scrollX || documentElement.scrollLeft || 0;\n        const verticalScrollPosition = -documentRect.top || document.body.scrollTop || window.scrollY || documentElement.scrollTop || 0;\n\n        return new Point(horizontalScrollPosition, verticalScrollPosition);\n    }\n\n    public static cloneInstance(object: any) {\n        const clonedObj = Object.assign(Object.create(Object.getPrototypeOf(object)), object);\n        clonedObj.settings = cloneValue(clonedObj.settings);\n        return clonedObj;\n    }\n\n    /**\n     * Gets horizontal offset by position settings `offset`.\n     */\n    public static getHorizontalOffset(settings: PositionSettings): number {\n        if (settings.offset == null) {\n            return 0;\n        }\n\n        if (\n            settings.horizontalDirection === HorizontalAlignment.Left &&\n            settings.horizontalStartPoint === HorizontalAlignment.Left\n        ) {\n            return -settings.offset;\n        } else if (\n            settings.horizontalDirection === HorizontalAlignment.Right &&\n            settings.horizontalStartPoint === HorizontalAlignment.Right\n        ) {\n            return settings.offset;\n        }\n\n        return 0;\n    }\n\n    /**\n     * Gets vertical offset by position settings `offset`.\n     */\n    public static getVerticalOffset(settings: PositionSettings): number {\n        if (settings.offset == null) {\n            return 0;\n        }\n\n        if (\n            settings.verticalDirection === VerticalAlignment.Top &&\n            settings.verticalStartPoint === VerticalAlignment.Top\n        ) {\n            return -settings.offset;\n        } else if (\n            settings.verticalDirection === VerticalAlignment.Bottom &&\n            settings.verticalStartPoint === VerticalAlignment.Bottom\n        ) {\n            return settings.offset;\n        }\n\n        return 0;\n    }\n    /**\n     * Sets up IntersectionObserver for a target element and provides position update callbacks\n     * @param element The element to observe\n     * @param doc The document context\n     * @param onPositionUpdate Callback function to reposition the overlay\n     */\n    public static setupIntersectionObserver(\n        element: HTMLElement | null,\n        doc: Document | null,\n        onPositionUpdate: () => void\n    ): IntersectionObserver | null {\n        const intersectionObserver = getIntersectionObserver();\n        if (!intersectionObserver) {\n            return null;\n        }\n        if (!element || !doc) {\n            return null;\n        }\n        const rect = element.getBoundingClientRect();\n        const viewPortRect = Util.getViewportRect(doc);\n        const rootMargin = {\n            top: -Math.abs(rect.top),\n            right: -Math.abs(viewPortRect.width! - rect.right),\n            bottom: -Math.abs(viewPortRect.height! - rect.bottom),\n            left: -Math.abs(rect.left),\n        };\n        const options = {\n            rootMargin: `${rootMargin.top}px ${rootMargin.right}px ${rootMargin.bottom}px ${rootMargin.left}px`,\n            threshold: Array.from({ length: 1001 }, (_, i) => i / 1000), // Thresholds from 0 to 1 with step of 0.001\n            root: doc\n        };\n        const io = new intersectionObserver((_e) => {\n            onPositionUpdate();\n        }, options);\n        io.observe(element);\n        return io;\n    }\n}\n","import { scaleInVerTop, scaleOutVerTop } from 'igniteui-angular/animations';\nimport { ConnectedFit } from '../utilities';\nimport {\n  HorizontalAlignment,\n  Point,\n  PositionSettings,\n  Size,\n  Util,\n  VerticalAlignment\n} from './../utilities';\nimport { IPositionStrategy } from './IPositionStrategy';\n\n/**\n * Positions the element based on the directions and start point passed in trough PositionSettings.\n * It is possible to either pass a start point or an HTMLElement as a positioning base.\n */\nexport class ConnectedPositioningStrategy implements IPositionStrategy {\n  /**\n   * PositionSettings to use when position the component in the overlay\n   */\n  public settings: PositionSettings;\n\n  private _defaultSettings: PositionSettings = {\n    horizontalDirection: HorizontalAlignment.Right,\n    verticalDirection: VerticalAlignment.Bottom,\n    horizontalStartPoint: HorizontalAlignment.Left,\n    verticalStartPoint: VerticalAlignment.Bottom,\n    openAnimation: scaleInVerTop,\n    closeAnimation: scaleOutVerTop,\n    minSize: { width: 0, height: 0 }\n  };\n\n  constructor(settings?: PositionSettings) {\n    this.settings = Object.assign({}, this._defaultSettings, settings);\n  }\n\n  /**\n   * Position the element based on the PositionStrategy implementing this interface.\n   *\n   * @param contentElement The HTML element to be positioned\n   * @param size Size of the element\n   * @param document reference to the Document object\n   * @param initialCall should be true if this is the initial call to the method\n   * @param target attaching target for the component to show\n   * ```typescript\n   * settings.positionStrategy.position(content, size, document, true);\n   * ```\n   */\n  public position(contentElement: HTMLElement, _size: Size, _document?: Document, _initialCall?: boolean, target?: Point | HTMLElement): void {\n    const rects = this.calculateElementRectangles(contentElement, target!);\n    this.setStyle(contentElement, rects.targetRect, rects.elementRect, {});\n  }\n\n  /**\n   * Creates clone of this position strategy\n   * @returns clone of this position strategy\n   */\n  public clone(): IPositionStrategy {\n    return Util.cloneInstance(this);\n  }\n\n  /**\n   * Obtains the DomRect objects for the required elements - target and element to position\n   *\n   * @returns target and element DomRect objects\n   */\n   protected calculateElementRectangles(contentElement: HTMLElement, target: Point | HTMLElement):\n   { targetRect: Partial<DOMRect>; elementRect: Partial<DOMRect> } {\n    return {\n      targetRect: Util.getTargetRect(target),\n      elementRect: contentElement.getBoundingClientRect() as DOMRect\n    };\n  }\n\n  /**\n   * Get element horizontal and vertical offsets by connectedFit\n   * or `this.settings` if connectedFit offset is not defined.\n   *\n   * @param connectedFit\n   * @returns horizontalOffset and verticalOffset\n   */\n  protected getElementOffsets(connectedFit: ConnectedFit): { horizontalOffset: number; verticalOffset: number } {\n    return {\n        horizontalOffset: connectedFit.horizontalOffset ?? Util.getHorizontalOffset(this.settings),\n        verticalOffset: connectedFit.verticalOffset ?? Util.getVerticalOffset(this.settings)\n    }\n  }\n\n  /**\n   * Sets element's style which effectively positions provided element according\n   * to provided position settings\n   *\n   * @param element Element to position\n   * @param targetRect Bounding rectangle of strategy target\n   * @param elementRect Bounding rectangle of the element\n   */\n  protected setStyle(element: HTMLElement, targetRect: Partial<DOMRect>, elementRect: Partial<DOMRect>, connectedFit: ConnectedFit) {\n    const { horizontalOffset, verticalOffset } = this.getElementOffsets(connectedFit);\n\n    const startPoint: Point = {\n      x: targetRect.right! + targetRect.width! * this.settings.horizontalStartPoint! + horizontalOffset,\n      y: targetRect.bottom! + targetRect.height! * this.settings.verticalStartPoint! + verticalOffset\n    };\n    const wrapperRect: ClientRect = element.parentElement!.getBoundingClientRect();\n\n    //  clean up styles - if auto position strategy is chosen we may pass here several times\n    element.style.right = '';\n    element.style.left = '';\n    element.style.bottom = '';\n    element.style.top = '';\n\n    switch (this.settings.horizontalDirection) {\n      case HorizontalAlignment.Left:\n        element.style.right = `${Math.round(wrapperRect.right - startPoint.x)}px`;\n        break;\n      case HorizontalAlignment.Center:\n        element.style.left = `${Math.round(startPoint.x - wrapperRect.left - elementRect.width! / 2)}px`;\n        break;\n      case HorizontalAlignment.Right:\n        element.style.left = `${Math.round(startPoint.x - wrapperRect.left)}px`;\n        break;\n    }\n\n    switch (this.settings.verticalDirection) {\n      case VerticalAlignment.Top:\n        element.style.bottom = `${Math.round(wrapperRect.bottom - startPoint.y)}px`;\n        break;\n      case VerticalAlignment.Middle:\n        element.style.top = `${Math.round(startPoint.y - wrapperRect.top - elementRect.height! / 2)}px`;\n        break;\n      case VerticalAlignment.Bottom:\n        element.style.top = `${Math.round(startPoint.y - wrapperRect.top)}px`;\n        break;\n    }\n  }\n}\n","import { ConnectedFit, HorizontalAlignment, Point, PositionSettings, Size, Util, VerticalAlignment } from '../utilities';\nimport { ConnectedPositioningStrategy } from './connected-positioning-strategy';\n\nexport abstract class BaseFitPositionStrategy extends ConnectedPositioningStrategy {\n    protected _initialSize!: Size;\n    protected _initialSettings!: PositionSettings;\n\n    /**\n     * Position the element based on the PositionStrategy implementing this interface.\n     *\n     * @param contentElement The HTML element to be positioned\n     * @param size Size of the element\n     * @param document reference to the Document object\n     * @param initialCall should be true if this is the initial call to the method\n     * @param target attaching target for the component to show\n     * ```typescript\n     * settings.positionStrategy.position(content, size, document, true);\n     * ```\n     */\n    public override position(\n        contentElement: HTMLElement, _size: Size, document?: Document, initialCall?: boolean, target?: Point | HTMLElement): void {\n        const rects = super.calculateElementRectangles(contentElement, target!);\n        const connectedFit: ConnectedFit = {};\n        if (initialCall) {\n            connectedFit.targetRect = rects.targetRect;\n            connectedFit.contentElementRect = rects.elementRect;\n            this._initialSettings = this._initialSettings || Object.assign({}, this.settings);\n            this.settings = Object.assign({}, this._initialSettings);\n            connectedFit.viewPortRect = Util.getViewportRect(document!);\n            this.updateViewPortFit(connectedFit);\n            if (this.shouldFitInViewPort(connectedFit)) {\n                this.fitInViewport(contentElement, connectedFit);\n            }\n        }\n        this.setStyle(contentElement, rects.targetRect, rects.elementRect, connectedFit);\n    }\n\n    /**\n     * Checks if element can fit in viewport and updates provided connectedFit\n     * with the result\n     *\n     * @param connectedFit connectedFit to update\n     */\n    protected updateViewPortFit(connectedFit: ConnectedFit) {\n        const { horizontalOffset, verticalOffset } = super.getElementOffsets(connectedFit);\n\n        connectedFit.left = this.calculateLeft(\n            connectedFit.targetRect!,\n            connectedFit.contentElementRect!,\n            this.settings.horizontalStartPoint!,\n            this.settings.horizontalDirection!,\n            horizontalOffset);\n        connectedFit.right = connectedFit.left + connectedFit.contentElementRect!.width!;\n        connectedFit.fitHorizontal = {\n            back: Math.round(connectedFit.left),\n            forward: Math.round(connectedFit.viewPortRect!.width! - connectedFit.right)\n        };\n\n        connectedFit.top = this.calculateTop(\n            connectedFit.targetRect!,\n            connectedFit.contentElementRect!,\n            this.settings.verticalStartPoint!,\n            this.settings.verticalDirection!,\n            verticalOffset);\n        connectedFit.bottom = connectedFit.top + connectedFit.contentElementRect!.height!;\n        connectedFit.fitVertical = {\n            back: Math.round(connectedFit.top),\n            forward: Math.round(connectedFit.viewPortRect!.height! - connectedFit.bottom)\n        };\n    }\n\n    /**\n     * Calculates the position of the left border of the element if it gets positioned\n     * with provided start point and direction\n     *\n     * @param targetRect Rectangle of the target where element is attached\n     * @param elementRect Rectangle of the element\n     * @param startPoint Start point of the target\n     * @param direction Direction in which to show the element\n     */\n    protected calculateLeft(\n        targetRect: Partial<DOMRect>,\n        elementRect: Partial<DOMRect>,\n        startPoint: HorizontalAlignment,\n        direction: HorizontalAlignment,\n        offset?: number): number {\n        return targetRect.right! + targetRect.width! * startPoint + elementRect.width! * direction + offset!;\n    }\n\n    /**\n     * Calculates the position of the top border of the element if it gets positioned\n     * with provided position settings related to the target\n     *\n     * @param targetRect Rectangle of the target where element is attached\n     * @param elementRect Rectangle of the element\n     * @param startPoint Start point of the target\n     * @param direction Direction in which to show the element\n     */\n    protected calculateTop(\n        targetRect: Partial<DOMRect>,\n        elementRect: Partial<DOMRect>,\n        startPoint: VerticalAlignment,\n        direction: VerticalAlignment,\n        offset?: number): number {\n        return targetRect.bottom! + targetRect.height! * startPoint + elementRect.height! * direction + offset!;\n    }\n\n    /**\n     * Returns whether the element should fit in viewport\n     *\n     * @param connectedFit connectedFit object containing all necessary parameters\n     */\n    protected shouldFitInViewPort(connectedFit: ConnectedFit) {\n        return connectedFit.fitHorizontal!.back < 0 || connectedFit.fitHorizontal!.forward < 0 ||\n            connectedFit.fitVertical!.back < 0 || connectedFit.fitVertical!.forward < 0;\n    }\n\n    /**\n     * Fits the element into viewport according to the position settings\n     *\n     * @param element element to fit in viewport\n     * @param connectedFit connectedFit object containing all necessary parameters\n     */\n    protected abstract fitInViewport(\n        element: HTMLElement,\n        connectedFit: ConnectedFit): void;\n}\n","import { AnimationReferenceMetadata } from '@angular/animations';\nimport { ConnectedFit, HorizontalAlignment, VerticalAlignment } from './../utilities';\nimport { BaseFitPositionStrategy } from './base-fit-position-strategy';\nimport { AnimationUtil } from 'igniteui-angular/animations';\n\n/**\n * Positions the element as in **Connected** positioning strategy and re-positions the element in\n * the view port (calculating a different start point) in case the element is partially getting out of view\n */\nexport class AutoPositionStrategy extends BaseFitPositionStrategy {\n\n    /**\n     * Fits the element into viewport according to the position settings\n     *\n     * @param element element to fit in viewport\n     * @param connectedFit connectedFit object containing all necessary parameters\n     */\n    protected fitInViewport(element: HTMLElement, connectedFit: ConnectedFit) {\n        const transformString: string[] = [];\n        if (connectedFit.fitHorizontal!.back < 0 || connectedFit.fitHorizontal!.forward < 0) {\n            if (this.canFlipHorizontal(connectedFit)) {\n                this.flipHorizontal();\n                this.flipAnimation(FlipDirection.Horizontal);\n            } else {\n                const horizontalPush = this.horizontalPush(connectedFit);\n                transformString.push(`translateX(${horizontalPush}px)`);\n            }\n        }\n\n        if (connectedFit.fitVertical!.back < 0 || connectedFit.fitVertical!.forward < 0) {\n            if (this.canFlipVertical(connectedFit)) {\n                this.flipVertical();\n                this.flipAnimation(FlipDirection.Vertical);\n            } else {\n                const verticalPush = this.verticalPush(connectedFit);\n                transformString.push(`translateY(${verticalPush}px)`);\n            }\n        }\n\n        element.style.transform = transformString.join(' ').trim();\n    }\n\n    /**\n     * Checks if element can be flipped without get off the viewport\n     *\n     * @param connectedFit connectedFit object containing all necessary parameters\n     * @returns true if element can be flipped and stain in viewport\n     */\n    private canFlipHorizontal(connectedFit: ConnectedFit): boolean {\n        //  HorizontalAlignment can be Left = -1; Center = -0.5 or Right = 0.\n        //  To virtually flip direction and start point (both are HorizontalAlignment) we can do this:\n        //  flippedAlignment = (-1) * (HorizontalAlignment + 1)\n        //  this way:\n        //  (-1) * (Left + 1) = 0 = Right\n        //  (-1) * (Center + 1) = -0.5 = Center\n        //  (-1) * (Right + 1) = -1 = Left\n        const flippedStartPoint = (-1) * (this.settings.horizontalStartPoint! + 1);\n        const flippedDirection = (-1) * (this.settings.horizontalDirection! + 1);\n\n        const leftBorder = this.calculateLeft(\n            connectedFit.targetRect!, connectedFit.contentElementRect!, flippedStartPoint, flippedDirection, 0);\n        const rightBorder = leftBorder + connectedFit.contentElementRect!.width!;\n        return 0 < leftBorder && rightBorder < connectedFit.viewPortRect!.width!;\n    }\n\n    /**\n     * Checks if element can be flipped without get off the viewport\n     *\n     * @param connectedFit connectedFit object containing all necessary parameters\n     * @returns true if element can be flipped and stain in viewport\n     */\n    private canFlipVertical(connectedFit: ConnectedFit): boolean {\n        const flippedStartPoint = (-1) * (this.settings.verticalStartPoint! + 1);\n        const flippedDirection = (-1) * (this.settings.verticalDirection! + 1);\n\n        const topBorder = this.calculateTop(\n            connectedFit.targetRect!, connectedFit.contentElementRect!, flippedStartPoint, flippedDirection, 0);\n        const bottomBorder = topBorder + connectedFit.contentElementRect!.height!;\n        return 0 < topBorder && bottomBorder < connectedFit.viewPortRect!.height!;\n    }\n\n    /**\n     * Flips direction and start point of the position settings\n     */\n    private flipHorizontal() {\n        switch (this.settings.horizontalDirection) {\n            case HorizontalAlignment.Left:\n                this.settings.horizontalDirection = HorizontalAlignment.Right;\n                break;\n            case HorizontalAlignment.Right:\n                this.settings.horizontalDirection = HorizontalAlignment.Left;\n                break;\n        }\n        switch (this.settings.horizontalStartPoint) {\n            case HorizontalAlignment.Left:\n                this.settings.horizontalStartPoint = HorizontalAlignment.Right;\n                break;\n            case HorizontalAlignment.Right:\n                this.settings.horizontalStartPoint = HorizontalAlignment.Left;\n                break;\n        }\n    }\n\n    /**\n     * Flips direction and start point of the position settings\n     */\n    private flipVertical() {\n        switch (this.settings.verticalDirection) {\n            case VerticalAlignment.Top:\n                this.settings.verticalDirection = VerticalAlignment.Bottom;\n                break;\n            case VerticalAlignment.Bottom:\n                this.settings.verticalDirection = VerticalAlignment.Top;\n                break;\n        }\n        switch (this.settings.verticalStartPoint) {\n            case VerticalAlignment.Top:\n                this.settings.verticalStartPoint = VerticalAlignment.Bottom;\n                break;\n            case VerticalAlignment.Bottom:\n                this.settings.verticalStartPoint = VerticalAlignment.Top;\n                break;\n        }\n    }\n\n    /**\n     * Calculates necessary horizontal push according to provided connectedFit\n     *\n     * @param connectedFit connectedFit object containing all necessary parameters\n     * @returns amount of necessary translation which will push the element into viewport\n     */\n    private horizontalPush(connectedFit: ConnectedFit): number {\n        const leftExtend = connectedFit.left!;\n        const rightExtend = connectedFit.right! - connectedFit.viewPortRect!.width!;\n        //  if leftExtend < 0 overlay goes beyond left end of the screen. We should push it back with exactly\n        //  as much as it is beyond the screen.\n        //  if rightExtend > 0 overlay goes beyond right end of the screen. We should push it back with the\n        //  extend but with amount not bigger than what left between left border of screen and left border of\n        //  overlay, e.g. leftExtend\n        if (leftExtend < 0) {\n            return Math.abs(leftExtend);\n        } else if (rightExtend > 0) {\n            return - Math.min(rightExtend, leftExtend);\n        } else {\n            return 0;\n        }\n    }\n\n    /**\n     * Calculates necessary vertical push according to provided connectedFit\n     *\n     * @param connectedFit connectedFit object containing all necessary parameters\n     * @returns amount of necessary translation which will push the element into viewport\n     */\n    private verticalPush(connectedFit: ConnectedFit): number {\n        const topExtend = connectedFit.top!;\n        const bottomExtend = connectedFit.bottom! - connectedFit.viewPortRect!.height!;\n        if (topExtend < 0) {\n            return Math.abs(topExtend);\n        } else if (bottomExtend > 0) {\n            return - Math.min(bottomExtend, topExtend);\n        } else {\n            return 0;\n        }\n    }\n\n    /**\n     * Changes open and close animation with reverse animation if one exists\n     *\n     * @param flipDirection direction for which to change the animations\n     */\n    private flipAnimation(flipDirection: FlipDirection): void {\n        if (this.settings.openAnimation) {\n            this.settings.openAnimation = this.updateAnimation(this.settings.openAnimation, flipDirection);\n        }\n        if (this.settings.closeAnimation) {\n            this.settings.closeAnimation = this.updateAnimation(this.settings.closeAnimation, flipDirection);\n        }\n    }\n\n    /**\n     * Tries to find the reverse animation according to provided direction\n     *\n     * @param animation animation to update\n     * @param direction required animation direction\n     * @returns reverse animation in given direction if one exists\n     */\n    private updateAnimation(animation: AnimationReferenceMetadata, direction: FlipDirection): AnimationReferenceMetadata {\n        switch (direction) {\n            case FlipDirection.Horizontal:\n                if (AnimationUtil.instance().isHorizontalAnimation(animation)) {\n                    return AnimationUtil.instance().reverseAnimationResolver(animation);\n                }\n                break;\n            case FlipDirection.Vertical:\n                if (AnimationUtil.instance().isVerticalAnimation(animation)) {\n                    return AnimationUtil.instance().reverseAnimationResolver(animation);\n                }\n                break;\n        }\n\n        return animation;\n    }\n}\n\nenum FlipDirection {\n    Horizontal,\n    Vertical\n}\n","import { fadeIn, fadeOut } from 'igniteui-angular/animations';\nimport { HorizontalAlignment, PositionSettings, Util, VerticalAlignment } from './../utilities';\nimport { IPositionStrategy } from './IPositionStrategy';\n\n/**\n * Positions the element based on the directions passed in trough PositionSettings.\n * These are Top/Middle/Bottom for verticalDirection and Left/Center/Right for horizontalDirection\n */\nexport class GlobalPositionStrategy implements IPositionStrategy {\n    /**\n     * PositionSettings to use when position the component in the overlay\n     */\n    public settings: PositionSettings;\n\n    protected _defaultSettings: PositionSettings = {\n        horizontalDirection: HorizontalAlignment.Center,\n        verticalDirection: VerticalAlignment.Middle,\n        horizontalStartPoint: HorizontalAlignment.Center,\n        verticalStartPoint: VerticalAlignment.Middle,\n        openAnimation: fadeIn,\n        closeAnimation: fadeOut,\n        minSize: { width: 0, height: 0 }\n    };\n\n    constructor(settings?: PositionSettings) {\n        this.settings = Object.assign({}, this._defaultSettings, settings);\n    }\n\n    /**\n     * Position the element based on the PositionStrategy implementing this interface.\n     *\n     * @param contentElement The HTML element to be positioned\n     * ```typescript\n     * settings.positionStrategy.position(content);\n     * ```\n     */\n    public position(contentElement: HTMLElement): void {\n        contentElement.classList.add('igx-overlay__content--relative');\n        contentElement.parentElement!.classList.add('igx-overlay__wrapper--flex');\n        this.setPosition(contentElement);\n    }\n\n    /**\n     * Clone the strategy instance.\n     * ```typescript\n     * settings.positionStrategy.clone();\n     * ```\n     */\n    public clone(): IPositionStrategy {\n        return Util.cloneInstance(this);\n    }\n\n    protected setPosition(contentElement: HTMLElement) {\n        switch (this.settings.horizontalDirection) {\n            case HorizontalAlignment.Left:\n                contentElement.parentElement!.style.justifyContent = 'flex-start';\n                break;\n            case HorizontalAlignment.Center:\n                contentElement.parentElement!.style.justifyContent = 'center';\n                break;\n            case HorizontalAlignment.Right:\n                contentElement.parentElement!.style.justifyContent = 'flex-end';\n                break;\n            default:\n                break;\n        }\n\n        switch (this.settings.verticalDirection) {\n            case VerticalAlignment.Top:\n                contentElement.parentElement!.style.alignItems = 'flex-start';\n                break;\n            case VerticalAlignment.Middle:\n                contentElement.parentElement!.style.alignItems = 'center';\n                break;\n            case VerticalAlignment.Bottom:\n                contentElement.parentElement!.style.alignItems = 'flex-end';\n                break;\n            default:\n                break;\n        }\n    }\n}\n","import { PositionSettings, Util } from '../utilities';\nimport { GlobalPositionStrategy } from './global-position-strategy';\n\n/**\n * Positions the element inside the containing outlet based on the directions passed in trough PositionSettings.\n * These are Top/Middle/Bottom for verticalDirection and Left/Center/Right for horizontalDirection\n */\nexport class ContainerPositionStrategy extends GlobalPositionStrategy {\n    private io: IntersectionObserver | null = null;\n    constructor(settings?: PositionSettings) {\n        super(settings);\n    }\n\n    /**\n     * Position the element based on the PositionStrategy implementing this interface.\n     */\n    public override position(contentElement: HTMLElement): void {\n        // Set up intersection observer\n        this.io?.disconnect();\n        const containerElement = contentElement.parentElement!.parentElement;\n        if (!containerElement) {\n            super.position(contentElement);\n            return;\n        }\n        this.io = Util.setupIntersectionObserver(\n            containerElement,\n            contentElement.ownerDocument,\n            () => this.updatePosition(contentElement, containerElement)\n        );\n        this.internalPosition(contentElement, containerElement);\n    }\n\n    /**\n     * Disposes the observer and cleans up references.\n     */\n    public dispose(): void {\n        this.io?.disconnect();\n        this.io = null;\n    }\n\n    private internalPosition(contentElement: HTMLElement, container: HTMLElement): void {\n        contentElement.classList.add('igx-overlay__content--relative');\n        contentElement.parentElement!.classList.add('igx-overlay__wrapper--flex-container');\n        this.setPosition(contentElement);\n        this.updatePosition(contentElement, container);\n    }\n\n    private updatePosition(contentElement: HTMLElement, container: HTMLElement): void {\n        if (!container)\n            return;\n\n        // TODO: consider using new anchor() CSS function when it becomes more widely\n        // supported: https://caniuse.com/mdn-css_properties_anchor\n        const containerRect = container.getBoundingClientRect();\n        contentElement.parentElement!.style.width = `${containerRect.width}px`;\n        contentElement.parentElement!.style.height = `${containerRect.height}px`;\n        contentElement.parentElement!.style.top = `${containerRect.top}px`;\n        contentElement.parentElement!.style.left = `${containerRect.left}px`;\n    }\n}\n","import { ConnectedFit, HorizontalAlignment, VerticalAlignment } from '../utilities';\nimport { BaseFitPositionStrategy } from './base-fit-position-strategy';\n\n/**\n * Positions the element as in **Connected** positioning strategy and resize the element\n * to fit in the view port in case the element is partially getting out of view\n */\nexport class ElasticPositionStrategy extends BaseFitPositionStrategy {\n    /**\n     * Fits the element into viewport according to the position settings\n     *\n     * @param element element to fit in viewport\n     * @param connectedFit connectedFit object containing all necessary parameters\n     */\n    protected fitInViewport(element: HTMLElement, connectedFit: ConnectedFit) {\n        element.classList.add('igx-overlay__content--elastic');\n        const transformString: string[] = [];\n        if (connectedFit.fitHorizontal!.back < 0 || connectedFit.fitHorizontal!.forward < 0) {\n            const maxReduction = Math.max(0, connectedFit.contentElementRect!.width! - this.settings.minSize!.width);\n            const leftExtend = Math.max(0, -connectedFit.fitHorizontal!.back);\n            const rightExtend = Math.max(0, -connectedFit.fitHorizontal!.forward);\n            const reduction = Math.min(maxReduction, leftExtend + rightExtend);\n            element.style.width = `${connectedFit.contentElementRect!.width! - reduction}px`;\n\n            //  if direction is center and element goes off the screen in left direction we should push the\n            //  element to the right. Prevents left still going out of view when normally positioned\n            if (this.settings.horizontalDirection === HorizontalAlignment.Center) {\n                //  the amount of translation depends on whether element goes off the screen to the left,\n                //  to the right or in both directions, as well as how much it goes of the screen and finally\n                //  on the minSize. The translation should be proportional between left and right extend\n                //  taken from the reduction\n                const translation = leftExtend * reduction / (leftExtend + rightExtend);\n                if (translation > 0) {\n                    transformString.push(`translateX(${translation}px)`);\n                }\n            }\n        }\n\n        if (connectedFit.fitVertical!.back < 0 || connectedFit.fitVertical!.forward < 0) {\n            const maxReduction = Math.max(0, connectedFit.contentElementRect!.height! - this.settings.minSize!.height);\n            const topExtend = Math.max(0, -connectedFit.fitVertical!.back);\n            const bottomExtend = Math.max(0, -connectedFit.fitVertical!.forward);\n            const reduction = Math.min(maxReduction, topExtend + bottomExtend);\n            element.style.height = `${connectedFit.contentElementRect!.height! - reduction}px`;\n\n            //  if direction is middle and element goes off the screen in top direction we should push the\n            //  element to the bottom. Prevents top still going out of view when normally positioned\n            if (this.settings.verticalDirection === VerticalAlignment.Middle) {\n                //  the amount of translation depends on whether element goes off the screen to the top,\n                //  to the bottom or in both directions, as well as how much it goes of the screen and finally\n                //  on the minSize. The translation should be proportional between top and bottom extend\n                //  taken from the reduction\n                const translation = topExtend * reduction / (topExtend + bottomExtend);\n                if (translation > 0) {\n                    transformString.push(`translateY(${translation}px)`);\n                }\n            }\n        }\n        element.style.transform = transformString.join(' ').trim();\n    }\n}\n","import { IScrollStrategy } from './IScrollStrategy';\nimport { IgxOverlayService } from '../overlay';\n\nexport abstract class ScrollStrategy implements IScrollStrategy {\n    /**\n     * Initializes the strategy. Should be called once\n     *\n     * @param document reference to Document object.\n     * @param overlayService IgxOverlay service to use in this strategy.\n     * @param id Unique id for this strategy.\n     * ```typescript\n     * settings.scrollStrategy.initialize(document, overlay, id);\n     * ```\n     */\n    public abstract initialize(document: Document, overlayService: IgxOverlayService, id: string): void;\n\n    /**\n     * Attaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.attach();\n     * ```\n     */\n    public abstract attach(): void;\n\n    /**\n     * Detaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.detach();\n     * ```\n     */\n    public abstract detach(): void;\n}\n","import { ScrollStrategy } from './scroll-strategy';\n\n/**\n * Empty scroll strategy. Does nothing.\n */\nexport class NoOpScrollStrategy extends ScrollStrategy {\n    constructor() {\n        super();\n    }\n    /**\n     * Initializes the strategy. Should be called once\n     */\n    public initialize() { }\n\n    /**\n     * Detaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.detach();\n     * ```\n     */\n    public attach(): void { }\n\n    /**\n     * Detaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.detach();\n     * ```\n     */\n    public detach(): void { }\n}\n","import { AnimationReferenceMetadata } from '@angular/animations';\nimport { ApplicationRef, ComponentRef, createComponent, ElementRef, EventEmitter, Injectable, Injector, NgZone, OnDestroy, Type, ViewContainerRef, DOCUMENT, inject } from '@angular/core';\nimport { fromEvent, Subject, Subscription } from 'rxjs';\nimport { filter, takeUntil } from 'rxjs/operators';\n\nimport { fadeIn, fadeOut, IAnimationParams, scaleInHorLeft, scaleInHorRight, scaleInVerBottom, scaleInVerTop, scaleOutHorLeft, scaleOutHorRight, scaleOutVerBottom, scaleOutVerTop, slideInBottom, slideInTop, slideOutBottom, slideOutTop } from 'igniteui-angular/animations';\nimport { PlatformUtil } from '../../core/utils';\nimport { IgxOverlayOutletDirective } from './utilities';\nimport { IgxAngularAnimationService } from '../animation/angular-animation-service';\nimport { AnimationService } from '../animation/animation';\nimport { AutoPositionStrategy } from './position/auto-position-strategy';\nimport { ConnectedPositioningStrategy } from './position/connected-positioning-strategy';\nimport { ContainerPositionStrategy } from './position/container-position-strategy';\nimport { ElasticPositionStrategy } from './position/elastic-position-strategy';\nimport { GlobalPositionStrategy } from './position/global-position-strategy';\nimport { IPositionStrategy } from './position/IPositionStrategy';\nimport { NoOpScrollStrategy } from './scroll/NoOpScrollStrategy';\nimport {\n    AbsolutePosition,\n    HorizontalAlignment,\n    OffsetMode,\n    OverlayAnimationEventArgs,\n    OverlayCancelableEventArgs,\n    OverlayClosingEventArgs,\n    OverlayCreateSettings,\n    OverlayEventArgs,\n    OverlayInfo,\n    OverlaySettings,\n    Point,\n    PositionSettings,\n    RelativePosition,\n    RelativePositionStrategy,\n    VerticalAlignment\n} from './utilities';\n\n/**\n * [Documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/overlay-main)\n * The overlay service allows users to show components on overlay div above all other elements in the page.\n */\n@Injectable({ providedIn: 'root' })\nexport class IgxOverlayService implements OnDestroy {\n    private _appRef = inject(ApplicationRef);\n    private document = inject(DOCUMENT);\n    private _zone = inject(NgZone);\n    protected platformUtil = inject(PlatformUtil);\n    private animationService = inject<AnimationService>(IgxAngularAnimationService);\n\n    /**\n     * Emitted just before the overlay content starts to open.\n     * ```typescript\n     * opening(event: OverlayCancelableEventArgs){\n     *     const opening = event;\n     * }\n     * ```\n     */\n    public opening = new EventEmitter<OverlayCancelableEventArgs>();\n\n    /**\n     * Emitted after the overlay content is opened and all animations are finished.\n     * ```typescript\n     * opened(event: OverlayEventArgs){\n     *     const opened = event;\n     * }\n     * ```\n     */\n    public opened = new EventEmitter<OverlayEventArgs>();\n\n    /**\n     * Emitted just before the overlay content starts to close.\n     * ```typescript\n     * closing(event: OverlayCancelableEventArgs){\n     *     const closing = event;\n     * }\n     * ```\n     */\n    public closing = new EventEmitter<OverlayClosingEventArgs>();\n\n    /**\n     * Emitted after the overlay content is closed and all animations are finished.\n     * ```typescript\n     * closed(event: OverlayEventArgs){\n     *     const closed = event;\n     * }\n     * ```\n     */\n    public closed = new EventEmitter<OverlayEventArgs>();\n\n    /**\n     * Emitted before the content is appended to the overlay.\n     * ```typescript\n     * contentAppending(event: OverlayEventArgs){\n     *     const contentAppending = event;\n     * }\n     * ```\n     */\n    public contentAppending = new EventEmitter<OverlayEventArgs>();\n\n    /**\n     * Emitted after the content is appended to the overlay, and before animations are started.\n     * ```typescript\n     * contentAppended(event: OverlayEventArgs){\n     *     const contentAppended = event;\n     * }\n     * ```\n     */\n    public contentAppended = new EventEmitter<OverlayEventArgs>();\n\n    /**\n     * Emitted just before the overlay animation start.\n     * ```typescript\n     * animationStarting(event: OverlayAnimationEventArgs){\n     *     const animationStarting = event;\n     * }\n     * ```\n     */\n    public animationStarting = new EventEmitter<OverlayAnimationEventArgs>();\n\n    private _componentId = 0;\n    private _overlayInfos: OverlayInfo[] = [];\n    private _document: Document;\n    private _keyPressEventListener!: Subscription;\n    private destroy$ = new Subject<boolean>();\n    private _cursorStyleIsSet = false;\n    private _cursorOriginalValue!: string;\n\n    private _defaultSettings: OverlaySettings = {\n        excludeFromOutsideClick: [],\n        positionStrategy: new GlobalPositionStrategy(),\n        scrollStrategy: new NoOpScrollStrategy(),\n        modal: true,\n        closeOnOutsideClick: true,\n        closeOnEscape: false\n    };\n\n    constructor() {\n        this._document = this.document;\n    }\n\n    /**\n     * Creates overlay settings with global or container position strategy and preset position settings.\n     *\n     * @param position Preset position settings. Default position is `center`.\n     * @param useContainerStrategy When `true`, uses `ContainerPositionStrategy` which positions the overlay\n     * relative to its nearest positioned ancestor container. When `false` or omitted, uses `GlobalPositionStrategy`\n     * which positions the overlay relative to the viewport.\n     * @returns Non-modal overlay settings based on `GlobalPositionStrategy` or `ContainerPositionStrategy`\n     * depending on the value of `useContainerStrategy`.\n     */\n    public static createAbsoluteOverlaySettings(\n        position?: AbsolutePosition, useContainerStrategy?: boolean): OverlaySettings;\n    /**\n     * @param position Preset position settings. Default position is 'center'\n     * @param outlet The outlet container to attach the overlay to\n     * @returns Non-modal overlay settings based on Global or Container position strategy and the provided position.\n    *\n     * @deprecated in version 21.2.0. The outlet parameter is deprecated. Please provide the container or outlet element through the\n     * `createAbsoluteOverlaySettings` method when calling `attach` method.\n     * Creates overlay settings with global or container position strategy and preset position settings\n     */\n    public static createAbsoluteOverlaySettings(\n        position?: AbsolutePosition, outlet?: IgxOverlayOutletDirective | ElementRef): OverlaySettings;\n    public static createAbsoluteOverlaySettings(\n        position?: AbsolutePosition, containerOrOutlet?: IgxOverlayOutletDirective | ElementRef | boolean): OverlaySettings {\n        const positionSettings = this.createAbsolutePositionSettings(position);\n        const strategy = containerOrOutlet ? new ContainerPositionStrategy(positionSettings) : new GlobalPositionStrategy(positionSettings);\n        const outlet = containerOrOutlet instanceof ElementRef || containerOrOutlet instanceof IgxOverlayOutletDirective ? containerOrOutlet : null;\n        const overlaySettings: OverlaySettings = {\n            positionStrategy: strategy,\n            scrollStrategy: new NoOpScrollStrategy(),\n            modal: false,\n            closeOnOutsideClick: true,\n            outlet: outlet!\n        };\n        return overlaySettings;\n    }\n\n    /**\n     * Creates overlay settings with auto, connected or elastic position strategy and preset position settings\n     *\n     * @param target Attaching target for the component to show\n     * @param strategy The relative position strategy to be applied to the overlay settings. Default is Auto positioning strategy.\n     * @param position Preset position settings. By default the element is positioned below the target, left aligned.\n     * @returns Non-modal overlay settings based on the provided target, strategy and position.\n     */\n    public static createRelativeOverlaySettings(\n        target: Point | HTMLElement,\n        position?: RelativePosition,\n        strategy?: RelativePositionStrategy):\n        OverlaySettings {\n        const positionSettings = this.createRelativePositionSettings(position);\n        const overlaySettings: OverlaySettings = {\n            target,\n            positionStrategy: this.createPositionStrategy(strategy, positionSettings),\n            scrollStrategy: new NoOpScrollStrategy(),\n            modal: false,\n            closeOnOutsideClick: true\n        };\n        return overlaySettings;\n    }\n\n    private static createAbsolutePositionSettings(position?: AbsolutePosition): PositionSettings {\n        let positionSettings: PositionSettings;\n        switch (position) {\n            case AbsolutePosition.Bottom:\n                positionSettings = {\n                    horizontalDirection: HorizontalAlignment.Center,\n                    verticalDirection: VerticalAlignment.Bottom,\n                    openAnimation: slideInBottom,\n                    closeAnimation: slideOutBottom\n                };\n                break;\n            case AbsolutePosition.Top:\n                positionSettings = {\n                    horizontalDirection: HorizontalAlignment.Center,\n                    verticalDirection: VerticalAlignment.Top,\n                    openAnimation: slideInTop,\n                    closeAnimation: slideOutTop\n                };\n                break;\n            case AbsolutePosition.Center:\n            default:\n                positionSettings = {\n                    horizontalDirection: HorizontalAlignment.Center,\n                    verticalDirection: VerticalAlignment.Middle,\n                    openAnimation: fadeIn,\n                    closeAnimation: fadeOut\n                };\n        }\n        return positionSettings;\n    }\n\n    private static createRelativePositionSettings(position?: RelativePosition): PositionSettings {\n        let positionSettings: PositionSettings;\n        switch (position) {\n            case RelativePosition.Above:\n                positionSettings = {\n                    horizontalStartPoint: HorizontalAlignment.Center,\n                    verticalStartPoint: VerticalAlignment.Top,\n                    horizontalDirection: HorizontalAlignment.Center,\n                    verticalDirection: VerticalAlignment.Top,\n                    openAnimation: scaleInVerBottom,\n                    closeAnimation: scaleOutVerBottom,\n                };\n                break;\n            case RelativePosition.Below:\n                positionSettings = {\n                    horizontalStartPoint: HorizontalAlignment.Center,\n                    verticalStartPoint: VerticalAlignment.Bottom,\n                    horizontalDirection: HorizontalAlignment.Center,\n                    verticalDirection: VerticalAlignment.Bottom,\n                    openAnimation: scaleInVerTop,\n                    closeAnimation: scaleOutVerTop\n                };\n                break;\n            case RelativePosition.After:\n                positionSettings = {\n                    horizontalStartPoint: HorizontalAlignment.Right,\n                    verticalStartPoint: VerticalAlignment.Middle,\n                    horizontalDirection: HorizontalAlignment.Right,\n                    verticalDirection: VerticalAlignment.Middle,\n                    openAnimation: scaleInHorLeft,\n                    closeAnimation: scaleOutHorLeft\n                };\n                break;\n            case RelativePosition.Before:\n                positionSettings = {\n                    horizontalStartPoint: HorizontalAlignment.Left,\n                    verticalStartPoint: VerticalAlignment.Middle,\n                    horizontalDirection: HorizontalAlignment.Left,\n                    verticalDirection: VerticalAlignment.Middle,\n                    openAnimation: scaleInHorRight,\n                    closeAnimation: scaleOutHorRight\n                };\n                break;\n            case RelativePosition.Default:\n            default:\n                positionSettings = {\n                    horizontalStartPoint: HorizontalAlignment.Left,\n                    verticalStartPoint: VerticalAlignment.Bottom,\n                    horizontalDirection: HorizontalAlignment.Right,\n                    verticalDirection: VerticalAlignment.Bottom,\n                    openAnimation: scaleInVerTop,\n                    closeAnimation: scaleOutVerTop,\n                };\n                break;\n        }\n        return positionSettings;\n    }\n\n    private static createPositionStrategy(strategy?: RelativePositionStrategy, positionSettings?: PositionSettings): IPositionStrategy {\n        switch (strategy) {\n            case RelativePositionStrategy.Connected:\n                return new ConnectedPositioningStrategy(positionSettings);\n            case RelativePositionStrategy.Elastic:\n                return new ElasticPositionStrategy(positionSettings);\n            case RelativePositionStrategy.Auto:\n            default:\n                return new AutoPositionStrategy(positionSettings);\n        }\n    }\n\n    /**\n     * Generates Id. Provide this Id when call `show(id)` method\n     *\n     * @param component ElementRef to show in overlay\n     * @param settings (optional): Display settings for the overlay, such as positioning and scroll/close behavior.\n     * @returns Id of the created overlay. Valid until `detach` is called.\n     */\n    public attach(element: ElementRef, settings?: OverlaySettings): string;\n    /**\n     * Generates Id. Provide this Id when call `show(id)` method\n     *\n     * @note The component is created in the root scope and the overlay is attached to the document body.\n     * Prefer the `viewContainerRef` overload when a local injection context is needed.\n     *\n     * @param component Component Type to show in overlay\n     * @param settings (optional): Create settings for the overlay, such as positioning and scroll/close behavior.\n     * Includes also an optional `Injector` to add to the created dynamic component's injectors.\n     * @returns Id of the created overlay. Valid until `detach` is called.\n     */\n    public attach(component: Type<any>, settings?: OverlayCreateSettings): string;\n    // TODO: change third parameter to OverlayCreateSettings and allow passing of Injector and so on.\n    /**\n     * Generates an Id. Provide this Id when calling the `show(id)` method\n     *\n     * @param component Component Type to show in overlay\n     * @param viewContainerRef Reference to the container where created component's host view will be inserted\n     * @param settings (optional): Display settings for the overlay, such as positioning and scroll/close behavior.\n     */\n    public attach(component: Type<any>, viewContainerRef: ViewContainerRef, settings?: OverlaySettings): string;\n    public attach(\n        componentOrElement: ElementRef | Type<any>,\n        viewContainerRefOrSettings?: ViewContainerRef | OverlayCreateSettings,\n        settings?: OverlaySettings): string {\n        const info: OverlayInfo | null = this.getOverlayInfo(componentOrElement, viewContainerRefOrSettings, settings);\n\n        if (!info) {\n            console.warn('Overlay was not able to attach provided component!');\n            return null!;\n        }\n\n        info.id = (this._componentId++).toString();\n        info.visible = false;\n        // Emit the contentAppending event before appending the content\n        const eventArgs = { id: info.id, elementRef: info.elementRef, componentRef: info.componentRef, settings: info.settings };\n        this.contentAppending.emit(eventArgs);\n        // Append the content to the overlay\n        info.settings = eventArgs.settings!;\n        this._overlayInfos.push(info);\n        const elementRect = info.elementRef!.nativeElement.getBoundingClientRect();\n        info.initialSize = { width: elementRect.width, height: elementRect.height };\n        // Get the size before moving the container into the overlay so that it does not forget about inherited styles.\n        this.getComponentSize(info);\n        info.wrapperElement = this.getWrapperElement();\n        const contentElement = this.getContentElement(info.wrapperElement, info.settings.modal!);\n\n        this.insertWrapper(info);\n        contentElement.appendChild(info.elementRef!.nativeElement);\n\n        // Update the container size after wrapping/moving if there is size.\n        if (info.size) {\n            info.elementRef!.nativeElement.parentElement.style.setProperty('--ig-size', info.size);\n        }\n        this.contentAppended.emit({ id: info.id, componentRef: info.componentRef });\n        info.settings.scrollStrategy!.initialize(this._document, this, info.id);\n        info.settings.scrollStrategy!.attach();\n        this.addOutsideClickListener(info);\n        this.addResizeHandler();\n        this.addCloseOnEscapeListener(info);\n        this.buildAnimationPlayers(info);\n        return info.id;\n    }\n\n    /**\n     * Remove overlay with the provided id.\n     *\n     * @param id Id of the overlay to remove\n     * ```typescript\n     * this.overlay.detach(id);\n     * ```\n     */\n    public detach(id: string) {\n        const info: OverlayInfo = this.getOverlayById(id);\n\n        if (!info) {\n            console.warn('igxOverlay.detach was called with wrong id: ', id);\n            return;\n        }\n        info.detached = true;\n        this.finishAnimations(info);\n        info.settings!.scrollStrategy!.detach();\n        // Dispose position strategy if it has a dispose method\n        if (typeof (info.settings!.positionStrategy as any).dispose === 'function') {\n            (info.settings!.positionStrategy as any).dispose();\n        }\n        this.removeOutsideClickListener(info);\n        this.removeResizeHandler();\n        this.cleanUp(info);\n    }\n\n    /**\n     * Remove all the overlays.\n     * ```typescript\n     * this.overlay.detachAll();\n     * ```\n     */\n    public detachAll() {\n        for (let i = this._overlayInfos.length; i--;) {\n            this.detach(this._overlayInfos[i].id!);\n        }\n    }\n\n    /**\n     * Shows the overlay for provided id.\n     *\n     * @param id Id to show overlay for\n     * @param settings Display settings for the overlay, such as positioning and scroll/close behavior.\n     */\n    public show(id: string, settings?: OverlaySettings): void {\n        const info: OverlayInfo = this.getOverlayById(id);\n        if (!info) {\n            console.warn('igxOverlay.show was called with wrong id: ', id);\n            return;\n        }\n        const eventArgs: OverlayCancelableEventArgs = { id, componentRef: info.componentRef, cancel: false };\n        this.opening.emit(eventArgs);\n        if (eventArgs.cancel) {\n            return;\n        }\n        if (settings) {\n            const newScrollStrategy = settings.scrollStrategy && info.settings!.scrollStrategy !== settings.scrollStrategy;\n            if (newScrollStrategy && info.settings!.scrollStrategy) {\n                info.settings!.scrollStrategy.detach();\n            }\n\n            settings.positionStrategy ??= info.settings!.positionStrategy;\n            settings.scrollStrategy ??= info.settings!.scrollStrategy;\n            info.settings = { ...info.settings, ...settings };\n\n            if (newScrollStrategy) {\n                info.settings.scrollStrategy!.initialize(this._document, this, info.id!);\n                info.settings.scrollStrategy!.attach();\n            }\n        }\n        this.updateSize(info);\n        const openAnimation = info.settings!.positionStrategy!.settings.openAnimation;\n        const closeAnimation = info.settings!.positionStrategy!.settings.closeAnimation;\n        // Show the overlay using Popover API BEFORE positioning\n        // This ensures the element is in the top layer when position calculations happen\n        if (info.wrapperElement?.isConnected && typeof info.wrapperElement.showPopover === 'function') {\n            try {\n                info.wrapperElement.showPopover();\n            } catch (_) {\n                // Popover API call failed, element may already be showing\n            }\n        }\n        info.settings!.positionStrategy!.position(\n            info.elementRef!.nativeElement.parentElement,\n            { width: info.initialSize!.width, height: info.initialSize!.height },\n            this._document,\n            true,\n            info.settings!.target);\n        if (openAnimation !== info.settings!.positionStrategy!.settings.openAnimation ||\n            closeAnimation !== info.settings!.positionStrategy!.settings.closeAnimation){\n                this.buildAnimationPlayers(info);\n            }\n        this.addModalClasses(info);\n        if (info.settings!.positionStrategy!.settings.openAnimation) {\n            // TODO: should we build players again. This was already done in attach!!!\n            // this.buildAnimationPlayers(info);\n            this.playOpenAnimation(info);\n        } else {\n            //  to eliminate flickering show the element just before opened fires\n            info.wrapperElement!.style.visibility = '';\n            info.visible = true;\n            this.opened.emit({ id: info.id!, componentRef: info.componentRef });\n        }\n    }\n\n    /**\n     * Hides the component with the ID provided as a parameter.\n     * ```typescript\n     * this.overlay.hide(id);\n     * ```\n     */\n    public hide(id: string, event?: Event) {\n        this._hide(id, event);\n    }\n\n    /**\n     * Hides all the components and the overlay.\n     * ```typescript\n     * this.overlay.hideAll();\n     * ```\n     */\n    public hideAll() {\n        for (let i = this._overlayInfos.length; i--;) {\n            this.hide(this._overlayInfos[i].id!);\n        }\n    }\n\n    /**\n     * Repositions the component with ID provided as a parameter.\n     *\n     * @param id Id to reposition overlay for\n     * ```typescript\n     * this.overlay.reposition(id);\n     * ```\n     */\n    public reposition(id: string) {\n        const overlayInfo = this.getOverlayById(id);\n        if (!overlayInfo || !overlayInfo.settings) {\n            console.warn('Wrong id provided in overlay.reposition method. Id: ', id);\n            return;\n        }\n        if (!overlayInfo.visible) {\n            return;\n        }\n        const contentElement = overlayInfo.elementRef!.nativeElement.parentElement;\n        const contentElementRect = contentElement.getBoundingClientRect();\n        overlayInfo.settings.positionStrategy!.position(\n            contentElement,\n            {\n                width: contentElementRect.width,\n                height: contentElementRect.height\n            },\n            this._document,\n            false,\n            overlayInfo.settings.target);\n    }\n\n    /**\n     * Offsets the content along the corresponding axis by the provided amount with optional offsetMode that determines whether to add (by default) or set the offset values\n     *\n     * @param id Id to offset overlay for\n     * @param deltaX Amount of offset in horizontal direction\n     * @param deltaY Amount of offset in vertical direction\n     * @param offsetMode Determines whether to add (by default) or set the offset values with OffsetMode.Add and OffsetMode.Set\n     * ```typescript\n     * this.overlay.setOffset(id, deltaX, deltaY, offsetMode);\n     * ```\n     */\n    public setOffset(id: string, deltaX: number, deltaY: number, offsetMode?: OffsetMode) {\n        const info: OverlayInfo = this.getOverlayById(id);\n\n        if (!info) {\n            return;\n        }\n\n        switch (offsetMode) {\n            case OffsetMode.Set:\n                info.transformX = deltaX;\n                info.transformY = deltaY;\n                break;\n            case OffsetMode.Add:\n            default:\n                info.transformX! += deltaX;\n                info.transformY! += deltaY;\n                break;\n        }\n\n        const transformX = info.transformX;\n        const transformY = info.transformY;\n\n        const translate = `translate(${transformX}px, ${transformY}px)`;\n        info.elementRef!.nativeElement.parentElement.style.transform = translate;\n    }\n\n    /** @hidden */\n    public repositionAll = () => {\n        for (let i = this._overlayInfos.length; i--;) {\n            this.reposition(this._overlayInfos[i].id!);\n        }\n    };\n\n    /** @hidden */\n    public ngOnDestroy(): void {\n        this.detachAll();\n        this.removeCloseOnEscapeListener();\n        this.destroy$.next(true);\n        this.destroy$.complete();\n    }\n\n    /** @hidden @internal */\n    public getOverlayById(id: string | undefined): OverlayInfo {\n        if (!id) {\n            return null!;\n        }\n        const info = this._overlayInfos.find(e => e.id === id);\n        return info!;\n    }\n\n    private _hide(id: string, event?: Event) {\n        const info: OverlayInfo = this.getOverlayById(id);\n        if (!info) {\n            console.warn('igxOverlay.hide was called with wrong id: ', id);\n            return;\n        }\n        const eventArgs: OverlayClosingEventArgs = { id, componentRef: info.componentRef, cancel: false, event };\n        this.closing.emit(eventArgs);\n        if (eventArgs.cancel) {\n            return;\n        }\n        this.removeModalClasses(info);\n        if (info.settings!.positionStrategy!.settings.closeAnimation) {\n            this.playCloseAnimation(info, event);\n        } else {\n            this.closeDone(info);\n        }\n    }\n\n    /**\n     * Creates overlayInfo. Sets the info's `elementRef`, `componentRef`and `settings`. Also\n     * initialize info's `ngZone`, `transformX` and `transformY`.\n     * @param component ElementRef or Type. If type is provided dynamic component will be created\n     * @param viewContainerRefOrSettings (optional): If ElementRef is provided for `component` this\n     * parameter is OverlaySettings. Otherwise it could be ViewContainerRef or OverlayCreateSettings and will be\n     * used when dynamic component is created.\n     * @param settings (optional): OverlaySettings when `ViewContainerRef` is provided.\n     * @returns OverlayInfo\n     */\n    private getOverlayInfo(\n        component: ElementRef | Type<any>,\n        viewContainerRefOrSettings?: ViewContainerRef | OverlayCreateSettings,\n        settings?: OverlaySettings): OverlayInfo | null {\n        const info: OverlayInfo = { ngZone: this._zone, transformX: 0, transformY: 0 };\n        let overlaySettings = settings;\n        if (component instanceof ElementRef) {\n            info.elementRef = component;\n            overlaySettings = viewContainerRefOrSettings as OverlaySettings;\n        } else {\n            let dynamicComponent: ComponentRef<any>;\n            if (viewContainerRefOrSettings instanceof ViewContainerRef) {\n                const viewContainerRef = viewContainerRefOrSettings as ViewContainerRef;\n                dynamicComponent = viewContainerRef.createComponent(component);\n            } else {\n                const environmentInjector = this._appRef.injector;\n                const createSettings = viewContainerRefOrSettings as OverlayCreateSettings | undefined;\n                let elementInjector: Injector | undefined;\n                if (createSettings) {\n                    ({ injector: elementInjector, ...overlaySettings } = createSettings);\n                }\n                dynamicComponent = createComponent(component, { environmentInjector, elementInjector });\n                this._appRef.attachView(dynamicComponent.hostView);\n            }\n            if (dynamicComponent.onDestroy) {\n                dynamicComponent.onDestroy(() => {\n                    if (!info.detached && this._overlayInfos.indexOf(info) !== -1) {\n                        this.detach(info.id!);\n                    }\n                })\n            }\n\n            // If the element is newly created from a Component, it is wrapped in 'ng-component' tag - we do not want that.\n            const element = dynamicComponent.location.nativeElement;\n            info.elementRef = { nativeElement: element };\n            info.componentRef = dynamicComponent;\n        }\n        info.settings = Object.assign({}, this._defaultSettings, overlaySettings);\n        return info;\n    }\n\n    private placeElementHook(element: HTMLElement): HTMLElement {\n        if (!element.parentElement) {\n            return null!;\n        }\n        const hook = this._document.createElement('div');\n        hook.style.display = 'none';\n        element.parentElement.insertBefore(hook, element);\n        return hook;\n    }\n\n    /**\n     * Determines the correct placement strategy for the overlay wrapper and inserts it into the DOM.\n     * Places a hook to mark the element's original DOM position whenever a parent exists.\n     * The absence of a hook indicates the element had no parent and was appended to the body.\n     */\n    private insertWrapper(info: OverlayInfo) {\n        const element = info.elementRef!.nativeElement;\n        if (element.parentElement) {\n            info.hook = this.placeElementHook(element);\n        }\n\n        // TODO: This check for ContainerPositionStrategy is temporary and should be removed once a proper long-term\n        // solution for container-based positioning is in place.\n        if (info.settings!.positionStrategy instanceof ContainerPositionStrategy) {\n            this.insertWrapperInContainer(info);\n        } else {\n            this.appendWrapperTo(info, this.getWrapperParent(info));\n        }\n    }\n\n    /** Resolves the DOM node that should host the wrapper element. */\n    private getWrapperParent(info: OverlayInfo): HTMLElement {\n        if (info.settings!.outlet) {\n            return info.settings!.outlet.nativeElement || info.settings!.outlet;\n        }\n        return info.hook?.parentElement || this._document.body;\n    }\n\n    /**\n     * Appends the wrapper to the given parent. When a hook exists and lives under the same\n     * parent, the wrapper is inserted right before the original element to preserve DOM order.\n     */\n    private appendWrapperTo(info: OverlayInfo, parent: HTMLElement) {\n        const ref = info.hook?.parentElement === parent ? info.elementRef!.nativeElement : null;\n        parent.insertBefore(info.wrapperElement!, ref);\n    }\n\n    /**\n     * Creates an absolutely-positioned container div around the wrapper for ContainerPositionStrategy.\n     */\n    private insertWrapperInContainer(info: OverlayInfo) {\n        const parent = info.settings!.outlet?.nativeElement ||\n                       info.settings!.outlet ||\n                       info.hook?.parentElement ||\n                       this._document.body;\n\n        // TODO: container styles could be moved to CSS class\n        const container = this._document.createElement('div');\n        container.style.position = 'absolute';\n        container.style.inset = '0';\n        container.style.pointerEvents = 'none';\n        container.appendChild(info.wrapperElement!);\n        parent.appendChild(container);\n    }\n\n    private getWrapperElement(): HTMLElement {\n        const wrapper: HTMLElement = this._document.createElement('div');\n        wrapper.classList.add('igx-overlay__wrapper');\n        // Use Popover API to place element in top layer, eliminating need for z-index\n        wrapper.setAttribute('popover', 'manual');\n        return wrapper;\n    }\n\n    private getContentElement(wrapperElement: HTMLElement, modal: boolean): HTMLElement {\n        const content: HTMLElement = this._document.createElement('div');\n        if (modal) {\n            content.classList.add('igx-overlay__content--modal');\n            content.addEventListener('click', (ev: Event) => {\n                ev.stopPropagation();\n            });\n        } else {\n            content.classList.add('igx-overlay__content');\n        }\n        content.addEventListener('scroll', (ev: Event) => {\n            ev.stopPropagation();\n        });\n\n        //  hide element to eliminate flickering. Show the element exactly before animation starts\n        wrapperElement.style.visibility = 'hidden';\n        wrapperElement.appendChild(content);\n        return content;\n    }\n\n    private updateSize(info: OverlayInfo) {\n        if (info.componentRef) {\n            //  if we are positioning component this is first time it gets visible\n            //  and we can finally get its size\n            info.componentRef.changeDetectorRef.detectChanges();\n            info.initialSize = info.elementRef!.nativeElement.getBoundingClientRect();\n        }\n\n        // set content div width only if element to show has width\n        if (info.initialSize!.width !== 0) {\n            info.elementRef!.nativeElement.parentElement.style.width = info.initialSize!.width + 'px';\n        }\n    }\n\n    private closeDone(info: OverlayInfo) {\n        info.visible = false;\n        if (info.wrapperElement) {\n            // to eliminate flickering show the element just before animation start\n            info.wrapperElement.style.visibility = 'hidden';\n            // Hide from popover top layer if element is connected, showing, and API is available\n            if (info.wrapperElement.isConnected &&\n                typeof info.wrapperElement.hidePopover === 'function' &&\n                info.wrapperElement.matches(':popover-open')) {\n                try {\n                    info.wrapperElement.hidePopover();\n                } catch (_) {\n                    // Hide failed, element may not be in popover state\n                }\n            }\n        }\n        if (!info.closeAnimationDetaching) {\n            this.closed.emit({ id: info.id!, componentRef: info.componentRef, event: info.event });\n        }\n        delete info.event;\n    }\n\n    private cleanUp(info: OverlayInfo) {\n        this.hideDynamicComponent(info);\n        this.removeWrapper(info);\n        this.restoreHook(info);\n        this.destroyComponent(info);\n        this.unregisterOverlay(info);\n        this.releaseResources(info);\n    }\n\n    /**\n     * Hides a dynamically created component before unwrapping it, as Angular may remove its host after `destroyComponent`.\n     */\n    private hideDynamicComponent(info: OverlayInfo) {\n        if (info.componentRef) {\n            info.elementRef!.nativeElement.style.display = 'none';\n        }\n    }\n\n    /**\n     * Reverses the wrapper insertion performed by `insertWrapper`, restoring the element to its original DOM position.\n     */\n    private removeWrapper(info: OverlayInfo) {\n        const child: HTMLElement = info.elementRef!.nativeElement;\n        if (!info.hook) {\n            // No hook means element had no parent and was appended to body.\n            // Just remove the wrapper; the dynamic component will be destroyed in cleanUp.\n            info.wrapperElement?.parentElement?.removeChild(info.wrapperElement);\n        } else if (info.settings!.positionStrategy instanceof ContainerPositionStrategy) {\n            // Unwrap from container: move element back, then remove both wrapper and container div\n            const container = info.wrapperElement?.parentElement;\n            if (container) {\n                container.insertBefore(child, info.wrapperElement!);\n                container.removeChild(info.wrapperElement!);\n                container.remove();\n            }\n        } else if (info.settings!.outlet) {\n            const outlet = info.settings!.outlet?.nativeElement || info.settings!.outlet;\n            // if same element is shown in other overlay outlet will not contain\n            // the element and we should not remove it from outlet\n            if (outlet.contains(child)) {\n                outlet.removeChild(child.parentNode!.parentNode);\n            }\n        } else {\n            // Unwrap in-place: move element back to wrapper's position, then remove wrapper\n            if (info.wrapperElement?.parentElement) {\n                info.wrapperElement.parentElement.insertBefore(child, info.wrapperElement);\n                info.wrapperElement.parentElement.removeChild(info.wrapperElement);\n            }\n        }\n    }\n\n    /**\n     * Restores the element to its original position via the hook, then removes the hook. Must run\n     * before `destroyComponent`.\n     */\n    private restoreHook(info: OverlayInfo) {\n        if (info.hook) {\n            info.hook.parentElement!.insertBefore(info.elementRef!.nativeElement, info.hook);\n            info.hook.parentElement!.removeChild(info.hook);\n            delete info.hook;\n        }\n    }\n\n    /**\n     * Destroys the dynamically created component, if any.\n     */\n    private destroyComponent(info: OverlayInfo) {\n        if (info.componentRef) {\n            this._appRef.detachView(info.componentRef.hostView);\n            if (!info.componentRef.hostView.destroyed) {\n                info.componentRef.destroy();\n            }\n            delete info.componentRef;\n        }\n    }\n\n    /**\n     * Removes the overlay from the tracked list and cleans up global listeners when none remain.\n     */\n    private unregisterOverlay(info: OverlayInfo) {\n        const index = this._overlayInfos.indexOf(info);\n        this._overlayInfos.splice(index, 1);\n\n        if (this._overlayInfos.length === 0) {\n            this.removeCloseOnEscapeListener();\n        }\n    }\n\n    /** Releases all resources attached to the overlay info. */\n    private releaseResources(info: OverlayInfo) {\n        delete info.elementRef;\n        delete info.settings;\n        delete info.initialSize;\n        info.openAnimationDetaching = true;\n        info.openAnimationPlayer?.destroy();\n        delete info.openAnimationPlayer;\n        info.closeAnimationDetaching = true;\n        info.closeAnimationPlayer?.destroy();\n        delete info.closeAnimationPlayer;\n        delete (info as any).ngZone;\n        delete info.wrapperElement;\n    }\n\n    private playOpenAnimation(info: OverlayInfo) {\n        //  if there is opening animation already started do nothing\n        if (info.openAnimationPlayer?.hasStarted()) {\n            return;\n        }\n        if (info.closeAnimationPlayer?.hasStarted()) {\n            const position = info.closeAnimationPlayer.position;\n            info.closeAnimationPlayer.reset();\n            info.openAnimationPlayer!.init();\n            info.openAnimationPlayer!.position = 1 - position;\n        }\n        this.animationStarting.emit({ id: info.id!, animationPlayer: info.openAnimationPlayer!, animationType: 'open' });\n\n        //  to eliminate flickering show the element just before animation start\n        info.wrapperElement!.style.visibility = '';\n        info.visible = true;\n        info.openAnimationPlayer!.play();\n    }\n\n    private playCloseAnimation(info: OverlayInfo, event?: Event) {\n        //  if there is closing animation already started do nothing\n        if (info.closeAnimationPlayer?.hasStarted()) {\n            return;\n        }\n        if (info.openAnimationPlayer?.hasStarted()) {\n            const position = info.openAnimationPlayer.position;\n            info.openAnimationPlayer.reset();\n            info.closeAnimationPlayer!.init();\n            info.closeAnimationPlayer!.position = 1 - position;\n        }\n        this.animationStarting.emit({ id: info.id!, animationPlayer: info.closeAnimationPlayer!, animationType: 'close' });\n        info.event = event;\n        info.closeAnimationPlayer!.play();\n    }\n\n    //  TODO: check if applyAnimationParams will work with complex animations\n    private applyAnimationParams(wrapperElement: HTMLElement, animationOptions: AnimationReferenceMetadata | undefined) {\n        if (!animationOptions) {\n            wrapperElement.style.transitionDuration = '0ms';\n            return;\n        }\n        if (!animationOptions.options || !animationOptions.options.params) {\n            return;\n        }\n        const params = animationOptions.options.params as IAnimationParams;\n        if (params.duration) {\n            wrapperElement.style.transitionDuration = params.duration;\n        }\n        if (params.easing) {\n            wrapperElement.style.transitionTimingFunction = params.easing;\n        }\n    }\n\n    private documentClicked = (ev: MouseEvent) => {\n        //  if we get to modal overlay just return - we should not close anything under it\n        //  if we get to non-modal overlay do the next:\n        //   1. Check it has close on outside click. If not go on to next overlay;\n        //   2. If true check if click is on the element. If it is on the element we have closed\n        //  already all previous non-modal with close on outside click elements, so we return. If\n        //  not close the overlay and check next\n        for (let i = this._overlayInfos.length; i--;) {\n            const info = this._overlayInfos[i];\n            if (info.settings!.modal) {\n                return;\n            }\n            if (info.settings!.closeOnOutsideClick) {\n                const target = ev.composed ? ev.composedPath()[0] : ev.target;\n                const overlayElement = info.elementRef!.nativeElement;\n                // check if the click is on the overlay element or on an element from the exclusion list, and if so do not close the overlay\n                const excludeElements = info.settings!.excludeFromOutsideClick ?\n                    [...info.settings!.excludeFromOutsideClick, overlayElement] : [overlayElement];\n                const isInsideClick: boolean = excludeElements.some(e => e.contains(target as Node));\n                if (isInsideClick) {\n                    return;\n                    //  if the click is outside click, but close animation has started do nothing\n                } else if (!(info.closeAnimationPlayer?.hasStarted())) {\n                    this._hide(info.id!, ev);\n                }\n            }\n        }\n    };\n\n    private addOutsideClickListener(info: OverlayInfo) {\n        if (info.settings!.closeOnOutsideClick) {\n            if (info.settings!.modal) {\n                fromEvent<Event>(info.elementRef!.nativeElement.parentElement.parentElement, 'click')\n                    .pipe(takeUntil(this.destroy$))\n                    .subscribe((e: Event) => this._hide(info.id!, e));\n            } else if (\n                //  if all overlays minus closing overlays equals one add the handler\n                this._overlayInfos.filter(x => x.settings!.closeOnOutsideClick && !x.settings!.modal).length -\n                this._overlayInfos.filter(x => x.settings!.closeOnOutsideClick && !x.settings!.modal &&\n                    x.closeAnimationPlayer?.hasStarted()).length === 1) {\n\n                // click event is not fired on iOS. To make element \"clickable\" we are\n                // setting the cursor to pointer\n                if (this.platformUtil.isIOS && !this._cursorStyleIsSet) {\n                    this._cursorOriginalValue = this._document.body.style.cursor;\n                    this._document.body.style.cursor = 'pointer';\n                    this._cursorStyleIsSet = true;\n                }\n                this._document.addEventListener('click', this.documentClicked, true);\n            }\n        }\n    }\n\n    private removeOutsideClickListener(info: OverlayInfo) {\n        if (info.settings!.modal === false) {\n            let shouldRemoveClickEventListener = true;\n            this._overlayInfos.forEach(o => {\n                if (o.settings!.modal === false && o.id !== info.id) {\n                    shouldRemoveClickEventListener = false;\n                }\n            });\n            if (shouldRemoveClickEventListener) {\n                if (this._cursorStyleIsSet) {\n                    this._document.body.style.cursor = this._cursorOriginalValue;\n                    this._cursorOriginalValue = '';\n                    this._cursorStyleIsSet = false;\n                }\n                this._document.removeEventListener('click', this.documentClicked, true);\n            }\n        }\n    }\n\n    private addResizeHandler() {\n        const closingOverlaysCount =\n            this._overlayInfos\n                .filter(o => o.closeAnimationPlayer?.hasStarted())\n                .length;\n        if (this._overlayInfos.length - closingOverlaysCount === 1) {\n            this._document.defaultView!.addEventListener('resize', this.repositionAll);\n        }\n    }\n\n    private removeResizeHandler() {\n        const closingOverlaysCount =\n            this._overlayInfos\n                .filter(o => o.closeAnimationPlayer?.hasStarted())\n                .length;\n        if (this._overlayInfos.length - closingOverlaysCount === 1) {\n            this._document.defaultView!.removeEventListener('resize', this.repositionAll);\n        }\n    }\n\n    private addCloseOnEscapeListener(info: OverlayInfo) {\n        if (info.settings!.closeOnEscape && !this._keyPressEventListener) {\n            this._keyPressEventListener = fromEvent<KeyboardEvent>(this._document, 'keydown').pipe(\n                filter((ev: KeyboardEvent) => ev.key === 'Escape' || ev.key === 'Esc')\n            ).subscribe((ev) => {\n                const visibleOverlays = this._overlayInfos.filter(o => o.visible);\n                if (visibleOverlays.length < 1) {\n                    return;\n                }\n                const targetOverlayInfo = visibleOverlays[visibleOverlays.length - 1];\n                if (targetOverlayInfo.visible && targetOverlayInfo.settings!.closeOnEscape) {\n                    this.hide(targetOverlayInfo.id!, ev);\n                }\n            });\n        }\n    }\n\n    private removeCloseOnEscapeListener() {\n        if (this._keyPressEventListener) {\n            this._keyPressEventListener.unsubscribe();\n            this._keyPressEventListener = null!;\n        }\n    }\n\n    private addModalClasses(info: OverlayInfo) {\n        if (info.settings!.modal) {\n            const wrapperElement = info.elementRef!.nativeElement.parentElement.parentElement;\n            wrapperElement.classList.remove('igx-overlay__wrapper');\n            this.applyAnimationParams(wrapperElement, info.settings!.positionStrategy!.settings.openAnimation);\n            requestAnimationFrame(() => {\n                wrapperElement.classList.add('igx-overlay__wrapper--modal');\n            });\n        }\n    }\n\n    private removeModalClasses(info: OverlayInfo) {\n        if (info.settings!.modal) {\n            const wrapperElement = info.elementRef!.nativeElement.parentElement.parentElement;\n            this.applyAnimationParams(wrapperElement, info.settings!.positionStrategy!.settings.closeAnimation);\n            wrapperElement.classList.remove('igx-overlay__wrapper--modal');\n            wrapperElement.classList.add('igx-overlay__wrapper');\n        }\n    }\n\n    private buildAnimationPlayers(info: OverlayInfo) {\n        if (info.settings!.positionStrategy!.settings.openAnimation) {\n            info.openAnimationPlayer = this.animationService\n                .buildAnimation(info.settings!.positionStrategy!.settings.openAnimation, info.elementRef!.nativeElement);\n            info.openAnimationPlayer.animationEnd\n                .pipe(takeUntil(this.destroy$))\n                .subscribe(() => this.openAnimationDone(info));\n        }\n        if (info.settings!.positionStrategy!.settings.closeAnimation) {\n            info.closeAnimationPlayer = this.animationService\n                .buildAnimation(info.settings!.positionStrategy!.settings.closeAnimation, info.elementRef!.nativeElement);\n            info.closeAnimationPlayer.animationEnd\n                .pipe(takeUntil(this.destroy$))\n                .subscribe(() => this.closeAnimationDone(info));\n        }\n    }\n\n    private openAnimationDone(info: OverlayInfo) {\n        if (!info.openAnimationDetaching) {\n            this.opened.emit({ id: info.id!, componentRef: info.componentRef });\n        }\n        if (info.openAnimationPlayer) {\n            info.openAnimationPlayer.reset();\n        }\n        if (info.closeAnimationPlayer?.hasStarted()) {\n            info.closeAnimationPlayer.reset();\n        }\n    }\n\n    private closeAnimationDone(info: OverlayInfo) {\n        if (info.closeAnimationPlayer) {\n            info.closeAnimationPlayer.reset();\n        }\n        if (info.openAnimationPlayer?.hasStarted()) {\n            info.openAnimationPlayer.reset();\n        }\n        this.closeDone(info);\n    }\n\n    private finishAnimations(info: OverlayInfo) {\n        // // TODO: should we emit here opened or closed events\n        if (info.openAnimationPlayer?.hasStarted()) {\n            info.openAnimationPlayer.finish();\n        }\n        if (info.closeAnimationPlayer?.hasStarted()) {\n            info.closeAnimationPlayer.finish();\n        }\n    }\n\n    private getComponentSize(info: OverlayInfo) {\n        if (info.elementRef?.nativeElement instanceof Element) {\n            const styles = this._document.defaultView!.getComputedStyle(info.elementRef.nativeElement);\n            const componentSize = styles.getPropertyValue('--component-size');\n            const globalSize = styles.getPropertyValue('--ig-size');\n            const size = componentSize || globalSize;\n            info.size = size;\n        }\n    }\n}\n","import { NgZone } from '@angular/core';\nimport { IgxOverlayService } from '../overlay';\nimport { ScrollStrategy } from './scroll-strategy';\n\n/**\n * On scroll reposition the overlay content.\n */\nexport class AbsoluteScrollStrategy extends ScrollStrategy {\n    private _initialized = false;\n    private _document!: Document;\n    private _overlayService!: IgxOverlayService;\n    private _id!: string;\n    private _scrollContainer: HTMLElement;\n    private _zone!: NgZone;\n\n    constructor(scrollContainer?: HTMLElement) {\n        super();\n        this._scrollContainer = scrollContainer!;\n    }\n\n    /**\n     * Initializes the strategy. Should be called once\n     *\n     * @param document reference to Document object.\n     * @param overlayService IgxOverlay service to use in this strategy.\n     * @param id Unique id for this strategy.\n     * ```typescript\n     * settings.scrollStrategy.initialize(document, overlay, id);\n     * ```\n     */\n    public initialize(document: Document, overlayService: IgxOverlayService, id: string) {\n        if (this._initialized) {\n            return;\n        }\n        this._overlayService = overlayService;\n        this._id = id;\n        this._document = document;\n        this._zone = overlayService.getOverlayById(id).ngZone;\n        this._initialized = true;\n    }\n\n    /**\n     * Attaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.attach();\n     * ```\n     */\n    public attach(): void {\n        if (this._zone) {\n            this._zone.runOutsideAngular(() => {\n                this.addScrollEventListener();\n            });\n        } else {\n            this.addScrollEventListener();\n        }\n    }\n\n    /**\n     * Detaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.detach();\n     * ```\n     */\n    public detach(): void {\n        if (this._scrollContainer) {\n            this._scrollContainer.removeEventListener('scroll', this.onScroll, true);\n        } else {\n            // Tired of this thing throwing every other time. Fix it ffs!\n            this._document?.removeEventListener('scroll', this.onScroll, true);\n        }\n\n        this._initialized = false;\n    }\n\n    private addScrollEventListener() {\n        if (this._scrollContainer) {\n            this._scrollContainer.addEventListener('scroll', this.onScroll, true);\n        } else {\n            this._document.addEventListener('scroll', this.onScroll, true);\n        }\n    }\n\n    private onScroll = (e: Event) => {\n        const overlayInfo = this._overlayService.getOverlayById(this._id);\n        if (!overlayInfo) {\n            return;\n        }\n        if (!overlayInfo.elementRef!.nativeElement.contains(e.target)) {\n            this._overlayService.reposition(this._id);\n        }\n    };\n}\n","import { ScrollStrategy } from './scroll-strategy';\n\n/**\n * Prevents scrolling while the overlay content is shown.\n */\nexport class BlockScrollStrategy extends ScrollStrategy {\n    private _initialized = false;\n    private _document!: Document;\n    private _initialScrollTop!: number;\n    private _initialScrollLeft!: number;\n    private _sourceElement!: Element;\n\n    constructor() {\n        super();\n    }\n\n    /**\n     * Initializes the strategy. Should be called once\n     *\n     */\n    public initialize(document: Document) {\n        if (this._initialized) {\n            return;\n        }\n\n        this._document = document;\n        this._initialized = true;\n    }\n\n    /**\n     * Attaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.attach();\n     * ```\n     */\n    public attach(): void {\n        // Prevent scroll from mouse/trackpad/touch before it occurs.\n        // `{ passive: false }` is required — without it, browsers ignore preventDefault() on these events.\n        // This also fixes Safari bug #17217 where the scroll event fires after the compositor has already\n        // scrolled, making scroll-position reset ineffective for wheel/touch input.\n        this._document.addEventListener('wheel', this.preventDefault, { passive: false });\n        this._document.addEventListener('touchmove', this.preventDefault, { passive: false });\n        // Handles keyboard-driven scrolling (arrow keys, spacebar, Page Up/Down) as a fallback,\n        // since keyboard input cannot be intercepted via wheel/touchmove.\n        this._document.addEventListener('scroll', this.onScroll, true);\n    }\n\n    /**\n     * Detaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.detach();\n     * ```\n     */\n    public detach(): void {\n        this._document.removeEventListener('wheel', this.preventDefault);\n        this._document.removeEventListener('touchmove', this.preventDefault);\n        this._document.removeEventListener('scroll', this.onScroll, true);\n        this._sourceElement = null!;\n        this._initialScrollTop = 0;\n        this._initialScrollLeft = 0;\n        this._initialized = false;\n    }\n\n    private onScroll = (ev: Event) => {\n        ev.preventDefault();\n        if (!this._sourceElement || this._sourceElement !== ev.target) {\n            this._sourceElement = ev.target as Element;\n            this._initialScrollTop = this._sourceElement.scrollTop;\n            this._initialScrollLeft = this._sourceElement.scrollLeft;\n        }\n\n        this._sourceElement.scrollTop = this._initialScrollTop;\n        this._sourceElement.scrollLeft = this._initialScrollLeft;\n    };\n\n    private preventDefault = (ev: Event) => {\n        ev.preventDefault();\n    };\n}\n","import { IgxOverlayService } from '../overlay';\nimport { OverlayInfo } from '../utilities';\nimport { ScrollStrategy } from './scroll-strategy';\n\n/**\n * Uses a tolerance and closes the shown component upon scrolling if the tolerance is exceeded\n */\nexport class CloseScrollStrategy extends ScrollStrategy {\n    private _document!: Document;\n    private _overlayService!: IgxOverlayService;\n    private _id!: string;\n    private initialScrollTop!: number;\n    private initialScrollLeft!: number;\n    private _threshold: number;\n    private _initialized = false;\n    private _sourceElement!: Element;\n    private _scrollContainer: HTMLElement;\n    private _overlayInfo!: OverlayInfo;\n\n    constructor(scrollContainer?: HTMLElement) {\n        super();\n        this._scrollContainer = scrollContainer!;\n        this._threshold = 10;\n    }\n\n    /**\n     * Initializes the strategy. Should be called once\n     *\n     * @param document reference to Document object.\n     * @param overlayService IgxOverlay service to use in this strategy.\n     * @param id Unique id for this strategy.\n     * ```typescript\n     * settings.scrollStrategy.initialize(document, overlay, id);\n     * ```\n     */\n    public initialize(document: Document, overlayService: IgxOverlayService, id: string) {\n        if (this._initialized) {\n            return;\n        }\n        this._overlayService = overlayService;\n        this._id = id;\n        this._document = document;\n        this._initialized = true;\n        this._overlayInfo = overlayService.getOverlayById(id);\n    }\n\n    /**\n     * Attaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.attach();\n     * ```\n     */\n    public attach(): void {\n        if (this._scrollContainer) {\n            this._scrollContainer.addEventListener('scroll', this.onScroll);\n            this._sourceElement = this._scrollContainer;\n        } else {\n            this._document.addEventListener('scroll', this.onScroll, true);\n        }\n    }\n\n    /**\n     * Detaches the strategy\n     * ```typescript\n     * settings.scrollStrategy.detach();\n     * ```\n     */\n    public detach(): void {\n        // TODO: check why event listener removes only on first call and remains on each next!!!\n        if (this._scrollContainer) {\n            this._scrollContainer.removeEventListener('scroll', this.onScroll);\n        } else {\n            this._document.removeEventListener('scroll', this.onScroll, true);\n        }\n        this._sourceElement = null!;\n        this._initialized = false;\n    }\n\n    private onScroll = (ev: Event) => {\n        if (!this._sourceElement) {\n            this._sourceElement = ev.target as any;\n            this.initialScrollTop = this._sourceElement.scrollTop;\n            this.initialScrollLeft = this._sourceElement.scrollLeft;\n        }\n\n        if (this._overlayInfo.elementRef!.nativeElement.contains(this._sourceElement)) {\n            return;\n        }\n        if (Math.abs(this._sourceElement.scrollTop - this.initialScrollTop) > this._threshold ||\n            Math.abs(this._sourceElement.scrollLeft - this.initialScrollLeft) > this._threshold) {\n            this._overlayService.hide(this._id);\n        }\n    };\n}\n","import { TransactionService, Transaction, State, StateUpdateEvent, TransactionType } from './transaction';\nimport { EventEmitter } from '@angular/core';\nimport { isObject, mergeObjects } from '../../core/utils';\nimport { DefaultDataCloneStrategy, IDataCloneStrategy } from '../../data-operations/data-clone-strategy';\n\nexport class IgxBaseTransactionService<T extends Transaction, S extends State> implements TransactionService<T, S> {\n    /**\n     * Gets/Sets the data clone strategy used to clone data\n     */\n    public get cloneStrategy(): IDataCloneStrategy {\n        return this._cloneStrategy;\n    }\n\n    public set cloneStrategy(strategy: IDataCloneStrategy) {\n        if (strategy) {\n            this._cloneStrategy = strategy;\n        }\n    }\n\n    /**\n     * @returns if there are any transactions in the Redo stack\n     */\n    public get canRedo(): boolean {\n        return false;\n    }\n\n    /**\n     * @returns if there are any transactions in the Undo stack\n     */\n    public get canUndo(): boolean {\n        return false;\n    }\n\n    /**\n     * Returns whether transaction is enabled for this service\n     */\n    public get enabled(): boolean {\n        return this._isPending;\n    }\n\n    /**\n     * Event fired when transaction state has changed - add transaction, commit all transactions, undo and redo\n     */\n    public onStateUpdate = new EventEmitter<StateUpdateEvent>();\n\n    protected _isPending = false;\n    protected _pendingTransactions: T[] = [];\n    protected _pendingStates: Map<any, S> = new Map();\n    private _cloneStrategy: IDataCloneStrategy = new DefaultDataCloneStrategy();\n\n    /**\n     * Adds provided  transaction with recordRef if any\n     *\n     * @param transaction Transaction to be added\n     * @param recordRef Reference to the value of the record in the data source related to the changed item\n     */\n    public add(transaction: T, recordRef?: any): void {\n        if (this._isPending) {\n            this.updateState(this._pendingStates, transaction, recordRef);\n            this._pendingTransactions.push(transaction);\n        }\n    }\n\n    /**\n     * Returns all recorded transactions in chronological order\n     *\n     * @param id Optional record id to get transactions for\n     * @returns All transaction in the service or for the specified record\n     */\n    public getTransactionLog(_id?: any): T[] {\n        return [];\n    }\n\n    /**\n     * Remove the last transaction if any\n     */\n    public undo(): void { }\n\n     /**\n      * Applies the last undone transaction if any\n      */\n    public redo(): void { }\n\n    /**\n     * Returns aggregated changes from all transactions\n     *\n     * @param mergeChanges If set to true will merge each state's value over relate recordRef\n     * and will record resulting value in the related transaction\n     * @returns Collection of aggregated transactions for each changed record\n     */\n    public getAggregatedChanges(mergeChanges: boolean): T[] {\n        const result: T[] = [];\n        this._pendingStates.forEach((state: S, key: any) => {\n            const value = mergeChanges ? this.getAggregatedValue(key, mergeChanges) : state.value;\n            result.push({ id: key, newValue: value, type: state.type } as T);\n        });\n        return result;\n    }\n\n    /**\n     * Returns the state of the record with provided id\n     *\n     * @param id The id of the record\n     * @param pending Should get pending state\n     * @returns State of the record if any\n     */\n    public getState(id: any): S {\n        return this._pendingStates.get(id)!;\n    }\n\n    /**\n     * Returns value of the required id including all uncommitted changes\n     *\n     * @param id The id of the record to return value for\n     * @param mergeChanges If set to true will merge state's value over relate recordRef\n     * and will return merged value\n     * @returns Value with changes or **null**\n     */\n    public getAggregatedValue(id: any, mergeChanges: boolean): any {\n        const state = this._pendingStates.get(id);\n        if (!state) {\n            return null;\n        }\n        if (mergeChanges && state.recordRef) {\n            return this.updateValue(state);\n        }\n        return state.value;\n    }\n\n    /**\n     * Applies all transactions over the provided data\n     *\n     * @param data Data source to update\n     * @param id Optional record id to commit transactions for\n     */\n    public commit(_data: any[], _id?: any): void { }\n\n    /**\n     * Clears all transactions\n     *\n     * @param id Optional record id to clear transactions for\n     */\n    public clear(_id?: any): void {\n        this._pendingStates.clear();\n        this._pendingTransactions = [];\n    }\n\n    /**\n     * Starts pending transactions. All transactions passed after call to startPending\n     * will not be added to transaction log\n     */\n    public startPending(): void {\n        this._isPending = true;\n    }\n\n    /**\n     * Clears all pending transactions and aggregated pending state. If commit is set to true\n     * commits pending states as single transaction\n     *\n     * @param commit Should commit the pending states\n     */\n    public endPending(_commit: boolean): void {\n        this._isPending = false;\n        this._pendingStates.clear();\n        this._pendingTransactions = [];\n    }\n\n\n    /**\n     * Updates the provided states collection according to passed transaction and recordRef\n     *\n     * @param states States collection to apply the update to\n     * @param transaction Transaction to apply to the current state\n     * @param recordRef Reference to the value of the record in data source, if any, where transaction should be applied\n     */\n    protected updateState(states: Map<any, S>, transaction: T, recordRef?: any): void {\n        let state = states.get(transaction.id);\n        if (state) {\n            if (isObject(state.value)) {\n                mergeObjects(state.value, transaction.newValue);\n            } else {\n                state.value = transaction.newValue;\n            }\n        } else {\n            state = { value: this.cloneStrategy.clone(transaction.newValue), recordRef, type: transaction.type } as S;\n            states.set(transaction.id, state);\n        }\n\n        this.cleanState(transaction.id, states);\n    }\n\n    /**\n     * Updates the recordRef of the provided state with all the changes in the state. Accepts primitive and object value types\n     *\n     * @param state State to update value for\n     * @returns updated value including all the changes in provided state\n     */\n    protected updateValue(state: S) {\n        return this.mergeValues(state.recordRef, state.value);\n    }\n\n    /**\n     * Merges second values in first value and the result in empty object. If values are primitive type\n     * returns second value if exists, or first value.\n     *\n     * @param first Value to merge into\n     * @param second Value to merge\n     */\n    protected mergeValues<U>(first: U, second: U): U {\n        if (isObject(first) || isObject(second)) {\n            return mergeObjects(this.cloneStrategy.clone(first), second);\n        } else {\n            return second ? second : first;\n        }\n    }\n\n    /**\n     * Compares the state with recordRef and clears all duplicated values. If any state ends as\n     * empty object removes it from states.\n     *\n     * @param state State to clean\n     */\n    protected cleanState(id: any, states: Map<any, S>): void {\n        const state = states.get(id);\n        //  do nothing if\n        //  there is no state, or\n        //  there is no state value (e.g. DELETED transaction), or\n        //  there is no recordRef (e.g. ADDED transaction)\n        if (state && state.value && state.recordRef) {\n            //  if state's value is object compare each key with the ones in recordRef\n            //  if values in any key are the same delete it from state's value\n            //  if state's value is not object, simply compare with recordRef and remove\n            //  the state if they are equal\n            if (isObject(state.recordRef)) {\n                for (const key of Object.keys(state.value)) {\n                    if (JSON.stringify(state.recordRef[key]) === JSON.stringify(state.value[key])) {\n                        delete state.value[key];\n                    }\n                }\n\n                //  if state's value is empty remove the state from the states, only if state is not DELETE type\n                if (state.type !== TransactionType.DELETE && Object.keys(state.value).length === 0) {\n                    states.delete(id);\n                }\n            } else {\n                if (state.recordRef === state.value) {\n                    states.delete(id);\n                }\n            }\n        }\n    }\n}\n","import { Transaction, State, TransactionType, TransactionEventOrigin, Action } from './transaction';\nimport { IgxBaseTransactionService } from './base-transaction';\nimport { isObject, mergeObjects } from '../../core/utils';\n\nexport class IgxTransactionService<T extends Transaction, S extends State> extends IgxBaseTransactionService<T, S> {\n\n    protected _transactions: T[] = [];\n    protected _redoStack: Action<T>[][] = [];\n    protected _undoStack: Action<T>[][] = [];\n    protected _states: Map<any, S> = new Map();\n\n    /**\n     * @returns if there are any transactions in the Undo stack\n     */\n    public override get canUndo(): boolean {\n        return this._undoStack.length > 0;\n    }\n\n    /**\n     * @returns if there are any transactions in the Redo stack\n     */\n    public override get canRedo(): boolean {\n        return this._redoStack.length > 0;\n    }\n\n    /**\n     * Adds provided  transaction with recordRef if any\n     *\n     * @param transaction Transaction to be added\n     * @param recordRef Reference to the value of the record in the data source related to the changed item\n     */\n    public override add(transaction: T, recordRef?: any): void {\n        const states = this._isPending ? this._pendingStates : this._states;\n        this.verifyAddedTransaction(states, transaction, recordRef);\n        this.addTransaction(transaction, states, recordRef);\n    }\n\n    /**\n     * Returns all recorded transactions in chronological order\n     *\n     * @param id Optional record id to get transactions for\n     * @returns All transaction in the service or for the specified record\n     */\n    public override getTransactionLog(id?: any): T[] {\n        if (id !== undefined) {\n            return this._transactions.filter(t => t.id === id);\n        }\n        return [...this._transactions];\n    }\n\n    /**\n     * Returns aggregated changes from all transactions\n     *\n     * @param mergeChanges If set to true will merge each state's value over relate recordRef\n     * and will record resulting value in the related transaction\n     * @returns Collection of aggregated transactions for each changed record\n     */\n    public override getAggregatedChanges(mergeChanges: boolean): T[] {\n        const result: T[] = [];\n        this._states.forEach((state: S, key: any) => {\n            const value = mergeChanges ? this.mergeValues(state.recordRef, state.value) : state.value;\n            result.push({ id: key, newValue: value, type: state.type } as T);\n        });\n        return result;\n    }\n\n    /**\n     * Returns the state of the record with provided id\n     *\n     * @param id The id of the record\n     * @param pending Should get pending state\n     * @returns State of the record if any\n     */\n    public override getState(id: any, pending = false): S {\n        return pending ? this._pendingStates.get(id)! : this._states.get(id)!;\n    }\n\n    /**\n     * Returns whether transaction is enabled for this service\n     */\n    public override get enabled(): boolean {\n        return true;\n    }\n\n    /**\n     * Returns value of the required id including all uncommitted changes\n     *\n     * @param id The id of the record to return value for\n     * @param mergeChanges If set to true will merge state's value over relate recordRef\n     * and will return merged value\n     * @returns Value with changes or **null**\n     */\n    public override getAggregatedValue(id: any, mergeChanges: boolean): any {\n        const state = this._states.get(id);\n        const pendingState = super.getState(id);\n\n        //  if there is no state and there is no pending state return null\n        if (!state && !pendingState) {\n            return null;\n        }\n\n        const pendingChange = super.getAggregatedValue(id, false);\n        const change = state && state.value;\n        let aggregatedValue = this.mergeValues(change, pendingChange);\n        if (mergeChanges) {\n            const originalValue = state ? state.recordRef : pendingState.recordRef;\n            aggregatedValue = this.mergeValues(originalValue, aggregatedValue);\n        }\n        return aggregatedValue;\n    }\n\n    /**\n     * Clears all pending transactions and aggregated pending state. If commit is set to true\n     * commits pending states as single transaction\n     *\n     * @param commit Should commit the pending states\n     */\n    public override endPending(commit: boolean): void {\n        this._isPending = false;\n        if (commit) {\n            const actions: Action<T>[] = [];\n            // don't use addTransaction due to custom undo handling\n            for (const transaction of this._pendingTransactions) {\n                const pendingState = this._pendingStates.get(transaction.id);\n                this._transactions.push(transaction);\n                this.updateState(this._states, transaction, pendingState!.recordRef);\n                actions.push({ transaction, recordRef: pendingState!.recordRef });\n            }\n\n            this._undoStack.push(actions);\n            this._redoStack = [];\n\n            this.onStateUpdate.emit({ origin: TransactionEventOrigin.END, actions });\n        }\n        super.endPending(commit);\n    }\n\n    /**\n     * Applies all transactions over the provided data\n     *\n     * @param data Data source to update\n     * @param id Optional record id to commit transactions for\n     */\n    public override commit(data: any[], id?: any): void {\n        if (id !== undefined) {\n            const state = this.getState(id);\n            if (state) {\n                this.updateRecord(data, state);\n            }\n        } else {\n            this._states.forEach((s: S) => {\n                this.updateRecord(data, s);\n            });\n        }\n        this.clear(id);\n    }\n\n    /**\n     * Clears all transactions\n     *\n     * @param id Optional record id to clear transactions for\n     */\n    public override clear(id?: any): void {\n        if (id !== undefined) {\n            this._transactions = this._transactions.filter(t => t.id !== id);\n            this._states.delete(id);\n            //  Undo stack is an array of actions. Each action is array of transaction like objects\n            //  We are going trough all the actions. For each action we are filtering out transactions\n            //  with provided id. Finally if any action ends up as empty array we are removing it from\n            //  undo stack\n            this._undoStack = this._undoStack.map(a => a.filter(t => t.transaction.id !== id)).filter(a => a.length > 0);\n        } else {\n            this._transactions = [];\n            this._states.clear();\n            this._undoStack = [];\n        }\n        this._redoStack = [];\n        this.onStateUpdate.emit({ origin: TransactionEventOrigin.CLEAR, actions: [] });\n    }\n\n    /**\n     * Remove the last transaction if any\n     */\n    public override undo(): void {\n        if (this._undoStack.length <= 0) {\n            return;\n        }\n\n        const lastActions: Action<T>[] = this._undoStack.pop()!;\n        this._transactions.splice(this._transactions.length - lastActions.length);\n        this._redoStack.push(lastActions);\n\n        this._states.clear();\n        for (const currentActions of this._undoStack) {\n            for (const transaction of currentActions) {\n                this.updateState(this._states, transaction.transaction, transaction.recordRef);\n            }\n        }\n\n        this.onStateUpdate.emit({ origin: TransactionEventOrigin.UNDO, actions: lastActions });\n    }\n\n    /**\n     * Applies the last undone transaction if any\n     */\n    public override redo(): void {\n        if (this._redoStack.length > 0) {\n            const actions: Action<T>[] = this._redoStack.pop()!;\n            for (const action of actions) {\n                this.updateState(this._states, action.transaction, action.recordRef);\n                this._transactions.push(action.transaction);\n            }\n\n            this._undoStack.push(actions);\n            this.onStateUpdate.emit({ origin: TransactionEventOrigin.REDO, actions });\n        }\n    }\n\n    protected addTransaction(transaction: T, states: Map<any, S>, recordRef?: any) {\n        this.updateState(states, transaction, recordRef);\n\n        const transactions = this._isPending ? this._pendingTransactions : this._transactions;\n        transactions.push(transaction);\n\n        if (!this._isPending) {\n            const actions = [{ transaction, recordRef }];\n            this._undoStack.push(actions);\n            this._redoStack = [];\n            this.onStateUpdate.emit({ origin: TransactionEventOrigin.ADD, actions });\n        }\n    }\n\n    /**\n     * Verifies if the passed transaction is correct. If not throws an exception.\n     *\n     * @param transaction Transaction to be verified\n     */\n    protected verifyAddedTransaction(states: Map<any, S>, transaction: T, recordRef?: any): void {\n        const state = states.get(transaction.id);\n        switch (transaction.type) {\n            case TransactionType.ADD:\n                if (state) {\n                    //  cannot add same item twice\n                    throw new Error(`Cannot add this transaction. Transaction with id: ${transaction.id} has been already added.`);\n                }\n                break;\n            case TransactionType.DELETE:\n            case TransactionType.UPDATE:\n                if (state && state.type === TransactionType.DELETE) {\n                    //  cannot delete or update deleted items\n                    throw new Error(`Cannot add this transaction. Transaction with id: ${transaction.id} has been already deleted.`);\n                }\n                if (!state && !recordRef && !this._isPending) {\n                    //  cannot initially add transaction or delete item with no recordRef\n                    throw new Error(`Cannot add this transaction. This is first transaction of type ${transaction.type} ` +\n                        `for id ${transaction.id}. For first transaction of this type recordRef is mandatory.`);\n                }\n                break;\n        }\n    }\n\n    /**\n     * Updates the provided states collection according to passed transaction and recordRef\n     *\n     * @param states States collection to apply the update to\n     * @param transaction Transaction to apply to the current state\n     * @param recordRef Reference to the value of the record in data source, if any, where transaction should be applied\n     */\n    protected override updateState(states: Map<any, S>, transaction: T, recordRef?: any): void {\n        let state = states.get(transaction.id);\n        //  if TransactionType is ADD simply add transaction to states;\n        //  if TransactionType is DELETE:\n        //    - if there is state with this id of type ADD remove it from the states;\n        //    - if there is state with this id of type UPDATE change its type to DELETE;\n        //    - if there is no state with this id add transaction to states;\n        //  if TransactionType is UPDATE:\n        //    - if there is state with this id of type ADD merge new value and state recordRef into state new value\n        //    - if there is state with this id of type UPDATE merge new value into state new value\n        //    - if there is state with this id and state type is DELETE change its type to UPDATE\n        //    - if there is no state with this id add transaction to states;\n        if (state) {\n            switch (transaction.type) {\n                case TransactionType.DELETE:\n                    if (state.type === TransactionType.ADD) {\n                        states.delete(transaction.id);\n                    } else if (state.type === TransactionType.UPDATE) {\n                        state.value = transaction.newValue;\n                        state.type = TransactionType.DELETE;\n                    }\n                    break;\n                case TransactionType.UPDATE:\n                    if (isObject(state.value)) {\n                        if (state.type === TransactionType.ADD) {\n                            state.value = this.mergeValues(state.value, transaction.newValue);\n                        }\n                        if (state.type === TransactionType.UPDATE) {\n                            mergeObjects(state.value, transaction.newValue);\n                        }\n                    } else {\n                        state.value = transaction.newValue;\n                    }\n            }\n        } else {\n            state = { value: this.cloneStrategy.clone(transaction.newValue), recordRef, type: transaction.type } as S;\n            states.set(transaction.id, state);\n        }\n\n        this.cleanState(transaction.id, states);\n    }\n\n    /**\n     * Updates state related record in the provided data\n     *\n     * @param data Data source to update\n     * @param state State to update data from\n     */\n    protected updateRecord(data: any[], state: S) {\n        const index = data.findIndex(i => JSON.stringify(i) === JSON.stringify(state.recordRef || {}));\n        switch (state.type) {\n            case TransactionType.ADD:\n                data.push(state.value);\n                break;\n            case TransactionType.DELETE:\n                if (0 <= index && index < data.length) {\n                    data.splice(index, 1);\n                }\n                break;\n            case TransactionType.UPDATE:\n                if (0 <= index && index < data.length) {\n                    data[index] = this.updateValue(state);\n                }\n                break;\n        }\n    }\n}\n","import { HierarchicalTransaction, HierarchicalState, TransactionType } from './transaction';\nimport { IgxTransactionService } from './igx-transaction';\nimport { DataUtil } from '../../data-operations/data-util';\nimport { HierarchicalTransactionService } from './hierarchical-transaction';\n\n/** @experimental @hidden */\nexport class IgxHierarchicalTransactionService<T extends HierarchicalTransaction, S extends HierarchicalState>\n    extends IgxTransactionService<T, S> implements HierarchicalTransactionService<T, S> {\n\n    public override getAggregatedChanges(mergeChanges: boolean): T[] {\n        const result: T[] = [];\n        this._states.forEach((state: S, key: any) => {\n            const value = mergeChanges ? this.mergeValues(state.recordRef, state.value) : this.cloneStrategy.clone(state.value);\n            this.clearArraysFromObject(value);\n            result.push({ id: key, path: state.path, newValue: value, type: state.type } as T);\n        });\n        return result;\n    }\n\n    public override commit(data: any[], primaryKeyOrId?: any, childDataKey?: any, id?: any): void {\n        if (childDataKey !== undefined) {\n            let transactions = this.getAggregatedChanges(true);\n            if (id !== undefined) {\n                transactions = transactions.filter(t => t.id === id);\n            }\n            DataUtil.mergeHierarchicalTransactions(data, transactions, childDataKey, primaryKeyOrId, this.cloneStrategy, true);\n            this.clear(id);\n        } else {\n            super.commit(data, primaryKeyOrId);\n        }\n    }\n\n    protected override updateState(states: Map<any, S>, transaction: T, recordRef?: any): void {\n        super.updateState(states, transaction, recordRef);\n\n        //  if transaction has no path, e.g. flat data source, get out\n        if (!transaction.path) {\n            return;\n        }\n\n        const currentState = states.get(transaction.id);\n        if (currentState) {\n            currentState.path = transaction.path;\n        }\n\n        //  if transaction has path, Hierarchical data source, and it is DELETE\n        //  type transaction for all child rows remove ADD states and update\n        //  transaction type and value of UPDATE states\n        if (transaction.type === TransactionType.DELETE) {\n            states.forEach((v: S, k: any) => {\n                if (v.path && v.path.indexOf(transaction.id) !== -1) {\n                    switch (v.type) {\n                        case TransactionType.ADD:\n                            states.delete(k);\n                            break;\n                        case TransactionType.UPDATE:\n                            states.get(k)!.type = TransactionType.DELETE;\n                            states.get(k)!.value = null;\n                    }\n                }\n            });\n        }\n    }\n\n    //  TODO: remove this method. Force cloning to strip child arrays when needed instead\n    private clearArraysFromObject(obj: any) {\n        if (obj) {\n            for (const prop of Object.keys(obj)) {\n                if (Array.isArray(obj[prop])) {\n                    delete obj[prop];\n                }\n            }\n        }\n    }\n}\n\n","import { Injectable } from '@angular/core';\nimport { IgxBaseTransactionService } from './base-transaction';\nimport { HierarchicalTransactionService } from './hierarchical-transaction';\nimport { IgxHierarchicalTransactionService } from './igx-hierarchical-transaction';\nimport { IgxTransactionService } from './igx-transaction';\nimport { HierarchicalState, HierarchicalTransaction, State, Transaction, TransactionService } from './transaction';\n\n/**\n * The type of the transaction that should be provided.\n * When batchEditing is disabled, `None` is provided.\n * When enabled - `Base` is provided.\n * An enum instead of a boolean value leaves room for extra scenarios in the future.\n */\nexport const enum TRANSACTION_TYPE {\n    'None' = 'None',\n    'Base' = 'Base'\n}\n\n/**\n * Factory service for instantiating TransactionServices\n */\n@Injectable({\n    providedIn: 'root'\n})\nexport class IgxFlatTransactionFactory {\n\n    /**\n     * Creates a new Transaction service instance depending on the specified type.\n     *\n     * @param type The type of the transaction\n     * @returns a new instance of TransactionService<Transaction, State>\n     */\n    public create(type: TRANSACTION_TYPE): TransactionService<Transaction, State> {\n        switch (type) {\n            case (TRANSACTION_TYPE.Base):\n                return new IgxTransactionService();\n            default:\n                return new IgxBaseTransactionService();\n        }\n    }\n}\n\n/**\n * Factory service for instantiating HierarchicalTransactionServices\n */\n@Injectable({\n    providedIn: 'root'\n})\nexport class IgxHierarchicalTransactionFactory extends IgxFlatTransactionFactory {\n\n    /**\n     * Creates a new HierarchialTransaction service instance depending on the specified type.\n     *\n     * @param type The type of the transaction\n     * @returns a new instance of HierarchialTransaction<HierarchialTransaction, HierarchialState>\n     */\n    public override create(type: TRANSACTION_TYPE): HierarchicalTransactionService<HierarchicalTransaction, HierarchicalState> {\n        switch (type) {\n            case (TRANSACTION_TYPE.Base):\n                return new IgxHierarchicalTransactionService();\n            default:\n                return new IgxBaseTransactionService();\n        }\n    }\n}\n","import { ApplicationRef, ComponentRef, createComponent, EnvironmentInjector, inject, Injectable, Type } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { PlatformUtil } from '../../core/utils';\n\n/**\n * A shared service that registers component stylesheets exactly once per Angular injector,\n * using `document.adoptedStyleSheets` in the browser and a `<style>` tag injection in SSR.\n *\n * @example\n * ```typescript\n * // 1. Declare a unique symbol and import the generated CSS string at module level.\n * const STYLES_ID = Symbol('igx-my-component');\n *\n * // 2. Call register() in the component/directive constructor.\n * export class IgxMyComponent {\n *     constructor() {\n *         inject(IgxStylesRegistrar).register(STYLES_ID, MY_COMPONENT_CSS);\n *     }\n * }\n * ```\n */\n/**\n * Tracks registered stylesheet ids per `Document`. Registered stylesheets live on\n * the document, which can be shared by multiple injectors, so the registry is keyed\n * by document rather than per service instance to avoid registering a stylesheet\n * more than once.\n */\nconst _registries = new WeakMap<Document, Map<symbol, CSSStyleSheet | null>>();\n\n/** Keyed by application, as Angular shares component styles per application. */\nconst _retained = new WeakMap<ApplicationRef, Map<Type<unknown>, ComponentRef<unknown>>>();\n\n@Injectable({ providedIn: 'root' })\nexport class IgxStylesRegistrar {\n    private readonly _document = inject(DOCUMENT);\n    private readonly _platform = inject(PlatformUtil);\n    private readonly _injector = inject(EnvironmentInjector);\n\n    /**\n     * Registers a stylesheet identified by `id`. Subsequent calls with the same\n     * `id` (against the same document) are no-ops, so it is safe to call from every\n     * component instance.\n     *\n     * @param id    - A module-level `Symbol` that uniquely identifies the stylesheet.\n     * @param css   - The CSS string to register (typically a generated `*.styles.ts` export).\n     */\n    public register(id: symbol, css: string): void {\n        let registry = _registries.get(this._document);\n\n        if (!registry) {\n            registry = new Map<symbol, CSSStyleSheet | null>();\n            _registries.set(this._document, registry);\n        }\n\n        if (registry.has(id)) return;\n\n        if (this._platform.isBrowser) {\n            const sheet = new CSSStyleSheet();\n            sheet.replaceSync(css);\n            registry.set(id, sheet);\n            this._document.adoptedStyleSheets = [...this._document.adoptedStyleSheets, sheet];\n        } else {\n            registry.set(id, null);\n            const style = this._document.createElement('style');\n            style.textContent = css;\n            this._document.head?.appendChild(style);\n        }\n    }\n\n    /**\n     * Keeps the components' styles in the document for the application's lifetime, through a\n     * detached instance of each. Otherwise Angular removes them with the last instance and\n     * re-inserts them with the next one, restyling the page each time.\n     *\n     * @param components - The components whose styles to retain.\n     *\n     * @example\n     * ```typescript\n     * inject(IgxStylesRegistrar).retain(IgxBadgeComponent, IgxChipComponent);\n     * ```\n     */\n    public retain(...components: Type<unknown>[]): void {\n        const appRef = this._injector.get(ApplicationRef);\n        let refs = _retained.get(appRef);\n\n        if (!refs) {\n            refs = new Map();\n            _retained.set(appRef, refs);\n            appRef.onDestroy(() => {\n                _retained.get(appRef)?.forEach(ref => ref.destroy());\n                _retained.delete(appRef);\n            });\n        }\n\n        for (const type of components) {\n            if (!refs.has(type)) {\n                refs.set(type, createComponent(type, { environmentInjector: this._injector }));\n            }\n        }\n    }\n}\n","import { inject, InjectionToken, DOCUMENT } from \"@angular/core\";\nimport { BehaviorSubject } from \"rxjs\";\n\nexport class ThemeToken {\n    private document = inject(DOCUMENT);\n    public subject: BehaviorSubject<IgxTheme>;\n\n    constructor(private t?: IgxTheme) {\n        const globalTheme = globalThis.window\n            ?.getComputedStyle(this.document.body)\n            .getPropertyValue(\"--ig-theme\")\n            .trim() || 'material' as IgxTheme;\n\n        const _theme = t ?? globalTheme as IgxTheme;\n\n        this.subject = new BehaviorSubject(_theme);\n    }\n\n    public onChange(callback: (theme: IgxTheme) => void) {\n        return this.subject.subscribe(callback);\n    }\n\n    public set(theme: IgxTheme) {\n        this.subject.next(theme);\n    }\n\n    public get theme() {\n        return this.subject.getValue();\n    }\n\n    public get preferToken() {\n        return !!this.t;\n    }\n}\n\nexport const THEME_TOKEN = new InjectionToken<ThemeToken>('ThemeToken', {\n    providedIn: 'root',\n    factory: () => new ThemeToken()\n});\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst Theme = {\n    Material: \"material\",\n    Fluent: \"fluent\",\n    Bootstrap: \"bootstrap\",\n    IndigoDesign: \"indigo\",\n} as const;\n\n/**\n * Determines the component theme.\n */\nexport type IgxTheme = (typeof Theme)[keyof typeof Theme];\n","import { IDatePickerResourceStrings } from './date-picker-resources';\nimport { IDateRangePickerResourceStrings } from './date-range-picker-resources';\nimport { IGridResourceStrings } from './grid-resources';\nimport { ITimePickerResourceStrings } from './time-picker-resources';\nimport { IPaginatorResourceStrings } from './paginator-resources';\nimport { ICarouselResourceStrings } from './carousel-resources';\nimport { IChipResourceStrings } from './chip-resources';\nimport { IListResourceStrings } from './list-resources';\nimport { ICalendarResourceStrings } from './calendar-resources';\nimport { IInputResourceStrings } from './input-resources';\nimport { ITreeResourceStrings } from './tree-resources';\nimport { IActionStripResourceStrings } from './action-strip-resources';\nimport { IQueryBuilderResourceStrings } from './query-builder-resources';\nimport { IComboResourceStrings } from './combo-resources';\nimport { IBannerResourceStrings } from './banner-resources';\nimport {\n    IResourceChangeEventArgs,\n    IResourceStrings as IResourceStringsCore,\n    getI18nManager\n} from 'igniteui-i18n-core';\nimport { Subject } from 'rxjs/internal/Subject';\nimport { DestroyRef, ɵR3Injector as R3Injector } from '@angular/core';\n\nexport const DEFAULT_LOCALE = 'en-US';\n\nexport interface IResourceStrings extends IGridResourceStrings, ITimePickerResourceStrings, ICalendarResourceStrings,\n    ICarouselResourceStrings, IChipResourceStrings, IComboResourceStrings, IInputResourceStrings, IDatePickerResourceStrings,\n    IDateRangePickerResourceStrings, IListResourceStrings, IPaginatorResourceStrings, ITreeResourceStrings,\n    IActionStripResourceStrings, IQueryBuilderResourceStrings, IBannerResourceStrings { }\n\n\nfunction igxRegisterI18n(resourceStrings: IResourceStrings, locale: string) {\n    // Remove `igx_` prefix for compatibility with older versions.\n    const genericResourceStrings: IResourceStringsCore = {};\n    for (const key of Object.keys(resourceStrings)) {\n        let stringKey = key;\n        if (stringKey.startsWith(\"igx_\")) {\n            stringKey = stringKey.replace(\"igx_\", \"\");\n        }\n        (genericResourceStrings as any)[stringKey] = (resourceStrings as any)[key];\n    }\n    getI18nManager().registerI18n(genericResourceStrings, locale);\n}\n\n/** Get current resource strings based on default. Result is truncated result, containing only relevant locale strings. */\nexport function getCurrentResourceStrings<T>(defaultEN: T, init = true, locale?: string) {\n    const resourceStrings = getI18nManager().getCurrentResourceStrings(locale);\n    const resourceStringsKeys = Object.keys(resourceStrings);\n    const normalizedResourceStrings: T = {} as T;\n    const newResourceStrings: T = {} as T;\n\n    // Append back `igx_` prefix for compatibility with older versions.\n    const igxResourceStringKeys = Object.keys(defaultEN as object);\n    for (const igxKey of igxResourceStringKeys) {\n        let coreKey = igxKey;\n        if (coreKey.startsWith(\"igx_\")) {\n            coreKey = coreKey.replace(\"igx_\", \"\");\n        }\n        if (resourceStringsKeys.includes(coreKey)) {\n            (normalizedResourceStrings as any)[igxKey] = (resourceStrings as any)[coreKey];\n        } else {\n            (normalizedResourceStrings as any)[igxKey] = (defaultEN as any)[igxKey];\n            (newResourceStrings as any)[coreKey] = (defaultEN as any)[igxKey];\n        }\n    }\n\n    if (init) {\n        // Register only new resources. We don't want to accidentally override any default set by user.\n        getI18nManager().registerI18n(newResourceStrings as IResourceStringsCore, getI18nManager().defaultLocale);\n    }\n\n    return normalizedResourceStrings;\n}\n\n/**\n * Bind to the i18n manager's onResourceChange event\n * @param destroyObj Object responsible for signaling destruction of the handling object\n * @param context Reference to the object's this context\n */\nexport function onResourceChangeHandle(destroyObj: Subject<any> | DestroyRef, callback: (event?: CustomEvent<IResourceChangeEventArgs>) => void, context: any) {\n    const onResourceChangeHandler = callback.bind(context);\n    getI18nManager().addEventListener(\"onResourceChange\", onResourceChangeHandler);\n\n    // Handle removal of listener on context destroy\n    const removeHandler = () => {\n        getI18nManager().removeEventListener(\"onResourceChange\", onResourceChangeHandler);\n    }\n    if (destroyObj instanceof DestroyRef || destroyObj instanceof R3Injector) {\n        // R3Injector is for tests only\n        destroyObj.onDestroy(() => removeHandler());\n    } else if (destroyObj) {\n        destroyObj.subscribe({\n            complete: () => removeHandler()\n        });\n    }\n}\n\n/**\n * Change resource strings for all components globally. The locale is not taken into account and this method should be called when the locale is changed.\n * Note: Legacy method. We suggest using the new `registerI18n` and `setCurrentI18n` methods exposed.\n */\nexport function changei18n(resourceStrings: IResourceStrings) {\n    // Register to current locale, since the user might have already set `lang` tag on root html.\n    igxRegisterI18n(resourceStrings, getI18nManager().currentLocale);\n}\n\n/**\n * Set the current locale of all Ignite UI components.\n * @param locale The name of the locale. A string based on the BCP 47 language tag, that Intl supports.\n */\nexport function registerI18n(resourceStrings: IResourceStrings, locale: string) {\n    igxRegisterI18n(resourceStrings, locale);\n}\n","import {\n    getNumberFormatter,\n    getDateFormatter\n} from 'igniteui-i18n-core';\nimport { BaseFormatter, I18N_FORMATTER } from './formatter-base';\nimport { Provider } from '@angular/core';\n\n/** Set up provider for Ignite UI components to use Intl formatting, replacing the default Angular's one. */\nexport function provideIgniteIntl() {\n    const providers: Provider[] = [{provide: I18N_FORMATTER, useValue: new IntlFormatter()}];\n    return providers;\n}\n\nexport class IntlFormatter extends BaseFormatter {\n    public override verifyLocale(locale: string): string {\n        try {\n            // Any angular method should work.\n            return Intl.getCanonicalLocales(locale)[0];\n        } catch {\n            return undefined!;\n        }\n    }\n\n    public override formatDate(value: Date | string | number | null | undefined, format: string, locale: string, timezone?: string): string {\n        if (value === null || value === undefined || value === '') {\n            return '';\n        }\n        if (typeof value === \"string\" || typeof value === \"number\") {\n            value = getDateFormatter().createDateFromValue(value);\n        }\n        const formatOptions = this.getFormatOptions(format);\n        if (!formatOptions && format) {\n            return getDateFormatter().formatDateCustomFormat(value, format, { locale, timezone });\n        }\n\n        const options: Intl.DateTimeFormatOptions = {\n            ...formatOptions,\n            timeZone: timezone\n        };\n        return getDateFormatter().formatDateTime(value, locale, options);\n    }\n\n    public override formatNumber(value: number | string | null | undefined, locale?: string, digitsInfo?: string): string {\n        return this.formatNumberGeneric(value, \"decimal\", locale, digitsInfo);\n    }\n\n    public override formatPercent(value: number | string | null | undefined, locale?: string, digitsInfo?: string) {\n        return this.formatNumberGeneric(value, \"percent\", locale, digitsInfo);\n    }\n\n    public override formatCurrency(value: number | string | null | undefined, locale?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string, currencyCode?: string, digitsInfo?: string): string {\n        return this.formatNumberGeneric(value, \"currency\", locale, digitsInfo, currencyCode, display);\n    }\n\n    public override getCurrencyCode(_locale: string, overrideCode?: string): string {\n        return overrideCode ?? 'USD';\n    }\n\n    public override getCurrencySymbol(currencyCode: string, locale?: string, currencyDisplay: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry = \"symbol\"): string {\n        return getNumberFormatter().getCurrencySymbol(currencyCode, locale, currencyDisplay)!;\n    }\n\n    public override getLocaleFirstDayOfWeek(locale?: string): number {\n        return getDateFormatter().getFirstDayOfWeek(locale);\n    }\n\n    private parseDigitsInfo(value?: string) {\n        let minIntegerDigits = undefined, minFractionDigits = undefined, maxFractionDigits = undefined;\n        if (value) {\n            const parts = value.split(\"-\");\n            const innerParts = parts[0].split(\".\");\n            if (innerParts.length > 0) {\n                minIntegerDigits = parseInt(innerParts[0]);\n            }\n            if (innerParts.length == 2) {\n                minFractionDigits = parseInt(innerParts[1]);\n            }\n            if (parts.length == 2) {\n                maxFractionDigits = parseInt(parts[1]);\n            }\n        }\n        return { minIntegerDigits, minFractionDigits, maxFractionDigits };\n    }\n\n    private formatNumberGeneric(value: number | string | null | undefined, style?: 'decimal' | 'percent' | 'currency', locale?: string, digitsInfo?: string, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string): string {\n        if (value === null || value === undefined || value === '') {\n            return '';\n        }\n        if (typeof value === \"string\") {\n            value = parseFloat(value);\n        }\n        const parsedDigitsInfo = this.parseDigitsInfo(digitsInfo);\n        let currencyDisplay: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry;\n        if (display !== 'code' && display !== 'symbol' && display !== 'symbol-narrow' && display !== 'narrowSymbol' && display !== \"name\") {\n            currencyDisplay = 'symbol';\n        } else if (display === 'symbol-narrow') {\n            currencyDisplay = 'narrowSymbol';\n        } else {\n            currencyDisplay = display || undefined;\n        }\n        const options: Intl.NumberFormatOptions = {\n            style: style,\n            currency: currencyCode,\n            currencyDisplay: currencyDisplay,\n            minimumIntegerDigits: parsedDigitsInfo.minIntegerDigits,\n            minimumFractionDigits: parsedDigitsInfo.minFractionDigits,\n            maximumFractionDigits: parsedDigitsInfo.maxFractionDigits\n        };\n        return getNumberFormatter().formatNumber(value, locale, options);\n    }\n}\n","import {\n    type IActionStripResourceStrings as IAActionStripResourceStrings,\n    type PrefixedResourceStrings,\n    ActionStripResourceStringsEN as AActionStripResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type IActionStripResourceStrings = PrefixedResourceStrings<IAActionStripResourceStrings, typeof IGX_PREFIX>;\n\nexport const ActionStripResourceStringsEN: IActionStripResourceStrings = prefixResource(IGX_PREFIX, AActionStripResourceStrings);\n","import {\n    type IBannerResourceStrings as IABannerResourceStrings,\n    type PrefixedResourceStrings,\n    BannerResourceStringsEN as ABannerResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type IBannerResourceStrings = PrefixedResourceStrings<IABannerResourceStrings, typeof IGX_PREFIX>;\n\nexport const BannerResourceStringsEN: IBannerResourceStrings = prefixResource(IGX_PREFIX, ABannerResourceStrings);\n","import {\n    type ICalendarResourceStrings as IACalendarResourceStrings,\n    CalendarResourceStringsEN as ACalendarResourceStrings,\n    type PrefixedResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type ICalendarResourceStrings = PrefixedResourceStrings<IACalendarResourceStrings, typeof IGX_PREFIX>;\n\nexport const CalendarResourceStringsEN: ICalendarResourceStrings = prefixResource(IGX_PREFIX, ACalendarResourceStrings);\n","import {\n    type ICarouselResourceStrings as IACarouselResourceStrings,\n    CarouselResourceStringsEN as ACarouselResourceStrings,\n    type PrefixedResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type ICarouselResourceStrings = PrefixedResourceStrings<IACarouselResourceStrings, typeof IGX_PREFIX>;\n\nexport const CarouselResourceStringsEN: ICarouselResourceStrings = prefixResource(IGX_PREFIX, ACarouselResourceStrings);\n","import {\n    type IChipResourceStrings as IAChipResourceStrings,\n    type PrefixedResourceStrings,\n    ChipResourceStringsEN as AChipResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type IChipResourceStrings = PrefixedResourceStrings<IAChipResourceStrings, typeof IGX_PREFIX>;\n\nexport const ChipResourceStringsEN: IChipResourceStrings = prefixResource(IGX_PREFIX, AChipResourceStrings);\n","import {\n    type IComboResourceStrings as IAComboResourceStrings,\n    type PrefixedResourceStrings,\n    ComboResourceStringsEN as AComboResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type IComboResourceStrings = PrefixedResourceStrings<IAComboResourceStrings, typeof IGX_PREFIX>;\n\nexport const ComboResourceStringsEN: IComboResourceStrings = prefixResource(IGX_PREFIX, AComboResourceStrings);\n","import {\n    type IDatePickerResourceStrings as IADatePickerResourceStrings,\n    type PrefixedResourceStrings,\n    DatePickerResourceStringsEN as ADatePickerResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type IDatePickerResourceStrings = PrefixedResourceStrings<IADatePickerResourceStrings, typeof IGX_PREFIX>;\n\nexport const DatePickerResourceStringsEN: IDatePickerResourceStrings = prefixResource(IGX_PREFIX, ADatePickerResourceStrings);\n","import {\n    type IDateRangePickerResourceStrings as IADateRangePickerResourceStrings,\n    type PrefixedResourceStrings,\n    DateRangePickerResourceStringsEN as ADateRangePickerResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type IDateRangePickerResourceStrings = PrefixedResourceStrings<IADateRangePickerResourceStrings, typeof IGX_PREFIX>;\n\nexport const DateRangePickerResourceStringsEN: IDateRangePickerResourceStrings = prefixResource(IGX_PREFIX, ADateRangePickerResourceStrings);\n","import {\n    type IGridResourceStrings as IAGridResourceStrings,\n    type PrefixedResourceStrings,\n    GridResourceStringsEN as AGridResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\n/* blazorPlainObject */\nexport type IGridResourceStrings = PrefixedResourceStrings<IAGridResourceStrings, typeof IGX_PREFIX>;\n\nexport const GridResourceStringsEN: IGridResourceStrings = prefixResource(IGX_PREFIX, AGridResourceStrings);\n","import { FileInputResourceStringsEN } from 'igniteui-i18n-core';\n\nexport interface IInputResourceStrings {\n    igx_input_upload_button?: string;\n    igx_input_file_placeholder?: string;\n};\n\nexport const InputResourceStringsEN: IInputResourceStrings = {\n    igx_input_upload_button: FileInputResourceStringsEN.file_input_upload_button,\n    igx_input_file_placeholder: FileInputResourceStringsEN.file_input_placeholder\n};\n","import {\n    type IListResourceStrings as IAListResourceStrings,\n    type PrefixedResourceStrings,\n    ListResourceStringsEN as AListResourceStrings,\n    IGX_PREFIX,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type IListResourceStrings = PrefixedResourceStrings<IAListResourceStrings, typeof IGX_PREFIX>;\n\nexport const ListResourceStringsEN: IListResourceStrings = prefixResource(IGX_PREFIX, AListResourceStrings);\n","import {\n    type IPaginatorResourceStrings as IAPaginatorResourceStrings,\n    type PrefixedResourceStrings,\n    IGX_PREFIX,\n    PaginatorResourceStringsEN as APaginatorResourceStrings,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type IPaginatorResourceStrings = PrefixedResourceStrings<IAPaginatorResourceStrings, typeof IGX_PREFIX>;\n\nexport const PaginatorResourceStringsEN: IPaginatorResourceStrings = prefixResource(IGX_PREFIX, APaginatorResourceStrings);\n","import {\n    type IQueryBuilderResourceStrings as IAQueryBuilderResourceStrings,\n    type PrefixedResourceStrings,\n    IGX_PREFIX,\n    QueryBuilderResourceStringsEN as AQueryBuilderResourceStrings,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type IQueryBuilderResourceStrings = PrefixedResourceStrings<IAQueryBuilderResourceStrings, typeof IGX_PREFIX>;\n\nexport const QueryBuilderResourceStringsEN: IQueryBuilderResourceStrings = prefixResource(IGX_PREFIX, AQueryBuilderResourceStrings);\n","import {\n    type ITimePickerResourceStrings as IATimePickerResourceStrings,\n    type PrefixedResourceStrings,\n    IGX_PREFIX,\n    TimePickerResourceStringsEN as ATimePickerResourceStrings,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type ITimePickerResourceStrings = PrefixedResourceStrings<IATimePickerResourceStrings, typeof IGX_PREFIX>;\n\nexport const TimePickerResourceStringsEN: ITimePickerResourceStrings = prefixResource(IGX_PREFIX, ATimePickerResourceStrings);\n","import {\n    type ITreeResourceStrings as IATreeResourceStrings,\n    type PrefixedResourceStrings,\n    IGX_PREFIX,\n    TreeResourceStringsEN as ATreeResourceStrings,\n    prefixResource\n} from 'igniteui-i18n-core';\n\nexport type ITreeResourceStrings = PrefixedResourceStrings<IATreeResourceStrings, typeof IGX_PREFIX>;\n\nexport const TreeResourceStringsEN: ITreeResourceStrings = prefixResource(IGX_PREFIX, ATreeResourceStrings);\n"],"mappings":";;;;;;;;;;AASA,IAAa,uBAAb,MAAa,qBAAoB;CAG7B,cAAA;EACI,KAAK,OAAO,CAAA;CAChB;CAEO,IAAI,IAAY,SAAoB;EACvC,KAAK,KAAK,MAAM;CACpB;CAEO,OAAO,IAAU;EACpB,OAAO,KAAK,KAAK;CACrB;CAEO,IAAI,IAAU;EACjB,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