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xB,KAAK4vB,KAAKoB,G,6IClFvF,SAAgB,2BAAmC5xB,YAEnD,QAAiB,oI","sources":["webpack://pg-service-order-tracking/webpack/universalModuleDefinition","webpack://pg-service-order-tracking/webpack/runtime/load script","webpack://pg-service-order-tracking/./node_modules/@estee/elc-base-theme/src/Breakpoints.ts","webpack://pg-service-order-tracking/./node_modules/@estee/elc-universal-utils/src/UniversalUtils.ts","webpack://pg-service-order-tracking/./node_modules/@estee/elc-universal-utils/src/BrowserStorage.ts","webpack://pg-service-order-tracking/./src/internal/domain/entities/Config.ts","webpack://pg-service-order-tracking/./src/internal/utils/Constants.ts","webpack://pg-service-order-tracking/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://pg-service-order-tracking/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://pg-service-order-tracking/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://pg-service-order-tracking/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://pg-service-order-tracking/./node_modules/@loadable/component/dist/loadable.esm.js","webpack://pg-service-order-tracking/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://pg-service-order-tracking/./node_modules/@estee/elc-service/src/Service/utils/index.ts","webpack://pg-service-order-tracking/./node_modules/@estee/elc-service/src/Service/Service.ts","webpack://pg-service-order-tracking/./src/internal/use-cases/OrderTrackingServiceStartedUseCase.ts","webpack://pg-service-order-tracking/./src/service-setup/OrderTrackingService.ts","webpack://pg-service-order-tracking/./node_modules/@estee/elc-service-view-names/src/index.ts","webpack://pg-service-order-tracking/./src/service-setup/ServiceBusController.ts","webpack://pg-service-order-tracking/./src/api/OrderTrackingApiSdk.ts","webpack://pg-service-order-tracking/./src/internal/use-cases/OrderTrackingSubmittedUseCase.ts","webpack://pg-service-order-tracking/./src/internal/controllers/OrderTrackingViewController.ts","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/toInteger/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/requiredArgs/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/parseISO/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/toDate/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/en-US/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/subMilliseconds/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/addMilliseconds/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/getUTCWeek/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/format/formatters/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/format/longFormatters/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/protectedTokens/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/format/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/isValid/index.js","webpack://pg-service-order-tracking/./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js","webpack://pg-service-order-tracking/./src/internal/utils/DateUtils.ts","webpack://pg-service-order-tracking/./src/internal/domain/entities/OrderStatus.ts","webpack://pg-service-order-tracking/./src/internal/utils/StringUtils.ts","webpack://pg-service-order-tracking/./src/internal/domain/entities/ShippingInfo.ts","webpack://pg-service-order-tracking/./src/internal/domain/entities/OrderInfo.ts","webpack://pg-service-order-tracking/./src/internal/domain/entities/OrderTracking.ts","webpack://pg-service-order-tracking/./src/internal/repositories/OrderRepository.ts","webpack://pg-service-order-tracking/./src/internal/repositories/ConfigRepository.ts","webpack://pg-service-order-tracking/./src/internal/controllers/OrderTrackingInformationViewController.ts","webpack://pg-service-order-tracking/./src/internal/controllers/OrderStatusViewController.ts","webpack://pg-service-order-tracking/./src/service-setup/diContainer.ts","webpack://pg-service-order-tracking/./node_modules/@estee/elc-service/src/decorators/Decorators.ts","webpack://pg-service-order-tracking/./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://pg-service-order-tracking/./node_modules/react-is/cjs/react-is.production.min.js","webpack://pg-service-order-tracking/./node_modules/react-is/index.js","webpack://pg-service-order-tracking/external umd \"ElcServiceBus\"","webpack://pg-service-order-tracking/external umd {\"root\":[\"ElcRuntime\",\"ELCLogger\"],\"commonjs2\":\"ELCLogger\",\"commonjs\":\"ELCLogger\",\"amd\":\"ELCLogger\"}","webpack://pg-service-order-tracking/external umd {\"root\":[\"ElcRuntime\",\"HttpTransport\"],\"commonjs2\":\"HttpTransport\",\"commonjs\":\"HttpTransport\",\"amd\":\"HttpTransport\"}","webpack://pg-service-order-tracking/external umd {\"root\":[\"ElcRuntime\",\"HypoContainer\"],\"commonjs2\":\"HypoContainer\",\"commonjs\":\"HypoContainer\",\"amd\":\"HypoContainer\"}","webpack://pg-service-order-tracking/external umd {\"root\":[\"ElcRuntime\",\"React\"],\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack://pg-service-order-tracking/external umd {\"root\":[\"ElcRuntime\",\"ReactDom\"],\"commonjs2\":\"react-dom\",\"commonjs\":\"react-dom\",\"amd\":\"react-dom\"}","webpack://pg-service-order-tracking/external umd {\"root\":[\"ElcRuntime\",\"mobx\"],\"commonjs2\":\"mobx\",\"commonjs\":\"mobx\",\"amd\":\"mobx\"}","webpack://pg-service-order-tracking/external umd {\"root\":[\"ElcRuntime\",\"mobxReact\"],\"commonjs2\":\"mobx-react\",\"commonjs\":\"mobx-react\",\"amd\":\"mobx-react\"}","webpack://pg-service-order-tracking/external umd {\"root\":[\"ElcRuntime\",\"styled5\"],\"commonjs2\":\"styled-components\",\"commonjs\":\"styled-components\",\"amd\":\"styled-components\"}","webpack://pg-service-order-tracking/webpack/bootstrap","webpack://pg-service-order-tracking/webpack/runtime/compat get default export","webpack://pg-service-order-tracking/webpack/runtime/define property getters","webpack://pg-service-order-tracking/webpack/runtime/ensure chunk","webpack://pg-service-order-tracking/webpack/runtime/get javascript chunk filename","webpack://pg-service-order-tracking/webpack/runtime/global","webpack://pg-service-order-tracking/webpack/runtime/hasOwnProperty shorthand","webpack://pg-service-order-tracking/webpack/runtime/make namespace object","webpack://pg-service-order-tracking/webpack/runtime/publicPath","webpack://pg-service-order-tracking/webpack/runtime/jsonp chunk loading","webpack://pg-service-order-tracking/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"HypoContainer\"), require(\"react\"), require(\"ELCLogger\"), require(\"mobx\"), require(\"ElcServiceBus\"), require(\"HttpTransport\"), require(\"mobx-react\"), require(\"styled-components\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"HypoContainer\", \"react\", \"ELCLogger\", \"mobx\", \"ElcServiceBus\", \"HttpTransport\", \"mobx-react\", \"styled-components\", \"react-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"pg-service-order-tracking\"] = factory(require(\"HypoContainer\"), require(\"react\"), require(\"ELCLogger\"), require(\"mobx\"), require(\"ElcServiceBus\"), require(\"HttpTransport\"), require(\"mobx-react\"), require(\"styled-components\"), require(\"react-dom\"));\n\telse\n\t\troot[\"pg-service-order-tracking\"] = factory(root[\"ElcRuntime\"][\"HypoContainer\"], root[\"ElcRuntime\"][\"React\"], root[\"ElcRuntime\"][\"ELCLogger\"], root[\"ElcRuntime\"][\"mobx\"], root[\"ElcServiceBus\"], root[\"ElcRuntime\"][\"HttpTransport\"], root[\"ElcRuntime\"][\"mobxReact\"], root[\"ElcRuntime\"][\"styled5\"], root[\"ElcRuntime\"][\"ReactDom\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE_hypo_container__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE__estee_elc_logging__, __WEBPACK_EXTERNAL_MODULE_mobx__, __WEBPACK_EXTERNAL_MODULE_elc_service_bus__, __WEBPACK_EXTERNAL_MODULE__estee_elc_http_transport__, __WEBPACK_EXTERNAL_MODULE_mobx_react__, __WEBPACK_EXTERNAL_MODULE_styled_components__, __WEBPACK_EXTERNAL_MODULE_react_dom__) => {\nreturn ","var inProgress = {};\nvar dataWebpackPrefix = \"pg-service-order-tracking:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t};\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","export interface IBreakpoints {\n    [key: string]: number;\n}\n\nexport const layoutPageContentWidth: number = 1260;\n\nexport const Breakpoints: IBreakpoints = {\n    desktop: 768,\n    largeScreen: 1024,\n    extraLargeScreen: 1200\n};\n\nexport const breakpoint = (brp: string) => (\n    code: TemplateStringsArray,\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    ...placeholders: any[]\n) => {\n    // interleave the code with the placeholders\n    let result = placeholders.reduce((acc, holder, idx) => `${acc}${code[idx]}${holder}`, '');\n\n    // add the code literal\n    result = `${result}${code[code.length - 1]}`;\n\n    return `@media(min-width: ${Breakpoints[brp]}px) {${result}}`;\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ServiceBus } from '@estee/elc-service-bus';\nimport {\n    IServiceRegistry,\n    IComponentViewController,\n    IEcommApp,\n    AllServicesTypes\n} from './Service/ServiceUtils';\n\nexport const MOBILE_VERSION_SELECTOR = 'js-mobile-version';\nexport const DESKTOP_VERSION_SELECTOR = 'js-desktop-version';\n\nexport interface ISingleServiceInfo {\n    [key: string]: string;\n}\n\nexport interface IServiceInfo {\n    [name: string]: ISingleServiceInfo;\n}\n\nexport type ArrayMinOne<T> = {\n    0: T;\n} & T[];\n\ninterface IObjectOfStrings {\n    [key: string]: string;\n}\n\ninterface IServiceBusTopics {\n    commands: IObjectOfStrings;\n    events: IObjectOfStrings;\n    queries: IObjectOfStrings;\n}\n\nexport interface IPayload {\n    url: string;\n    body?: {};\n    options?: {};\n    headers?: {};\n}\n\nexport interface IGetPayload {\n    url: string;\n    options?: {};\n    headers?: {};\n    params?: {};\n}\n\nexport interface IRequestOptions {\n    debounceInterval?: number;\n}\n\nexport type HeaderType = 'Business-Unit' | 'Authorization' | 'AuthorizationToken' | 'ClientId';\nexport type HeaderObject = { [key in HeaderType]?: string };\nexport type IHeaderSetter = () => Promise<HeaderObject>;\nexport type IRequestTransformerConfig = { url: string } & RequestInit;\nexport type IRequestTransformer = (config: IRequestTransformerConfig) => Promise<void>;\n\nexport interface IHttpTransport {\n    getStaticGlobalHeaders(): HeaderObject;\n    setBaseUrl(baseUrl: string): void;\n    addGlobalHeaders(headers: HeaderObject): void;\n    removeGlobalHeader(headerName: string): void;\n    addGlobalHeaderSetter(setter: IHeaderSetter): void;\n    removeGlobalHeaderSetter(setter: IHeaderSetter): void;\n    addRequestTransformer(transformer: IRequestTransformer): void;\n    removeRequestTransformer(transformer: IRequestTransformer): void;\n    delete(payload: string | IPayload): Promise<any>;\n    post(payload: IPayload): Promise<any>;\n    patch(payload: IPayload): Promise<any>;\n    put(payload: IPayload): Promise<any>;\n    get(payload: string | IGetPayload, IRequestOptions?: IRequestOptions): Promise<any>;\n    readonly isAuthFailureHandlingEnabled: boolean;\n    setAuthFailureHandlingEnabled(enabled: boolean): void;\n}\n\nexport interface IUtagData {\n    [key: string]: string | string[] | undefined | boolean | number | null | number[];\n}\nexport interface IUtagCfgOvrd {\n    noview: boolean;\n    dom_complete?: boolean;\n    lowerqp?: boolean;\n    noload?: boolean | number;\n    nocookie?: boolean;\n    readywait?: boolean | number;\n    waittimer?: number;\n}\nexport interface IUtag {\n    link(data: IUtagData, cb?: Function): void;\n    view(data: IUtagData, cb?: Function): void;\n}\n\nexport interface IFrontendLogger {\n    isEnabled?: boolean;\n    loggedServices?: {\n        [key: string]: {\n            isEnabled?: boolean;\n        };\n    };\n}\n\ninterface ILoggerApiSDK {\n    sendLog: Function;\n}\ninterface IDrupalSite {\n    translations?: any;\n    trackingDataLayer?: any;\n    client?: {\n        subdomain?: string;\n        isMobile?: number;\n    };\n    frontendLogger?: IFrontendLogger;\n}\nexport type AnyObject = { [key: string]: any };\ntype ITranslationsCollection = { [key: string]: string | IObjectOfStrings };\ntype ViewDataPreloader = {\n    addConfigs(configs: AnyObject): void;\n    addTranslations(translations: ITranslationsCollection): void;\n    getPreloadedConfigs(arg: string[]): AnyObject | null;\n    getPreloadedTranslations(arg: string[]): ITranslationsCollection | null;\n    preload(): Promise<void>;\n    registerTranslationFieldsToPreload(fields?: string[]): void;\n    registerConfigFieldsToPreload(fields?: string[]): void;\n};\ninterface IComponentRenderer {\n    init(): Promise<void>;\n    getDataPreloader(): ViewDataPreloader | null;\n    setDataPreloader(arg: ViewDataPreloader): void;\n}\n\ntype IObjectLike = { [key: string]: any } | null;\nexport interface IViewManager {\n    loadComponent(): Promise<void>;\n    module: React.ComponentType<any> | null;\n    controllerFromView: IComponentViewController | null;\n}\nexport interface IViewsManager {\n    lazyServicesStarted: boolean;\n    getViewManager(viewName: string): IViewManager;\n    startService(service: AllServicesTypes): Promise<void>;\n    startLazyServices(): Promise<void>;\n}\ndeclare global {\n    // Augment Node.js `global`\n    namespace NodeJS {\n        interface Global {\n            ServiceBusTopics: IServiceBusTopics;\n            ServiceRegistry: IServiceRegistry;\n            GlobalServiceBus: ServiceBus<any, any, any, any, any>;\n            HttpTransport: IHttpTransport;\n            __translationsCache__: { [key: string]: string };\n            __configsCache__: { [key: string]: any };\n            getPreloadedConfigs(fields?: string[]): IObjectLike;\n            addConfigs(configs: object): void;\n            getPreloadedTranslations(fields?: string[]): IObjectLike;\n            addTranslations(translations: object): void;\n            replaceSrc(originalSrc: string): string;\n            utag_data: IUtagData;\n            utag_cfg_ovrd: IUtagCfgOvrd;\n            utag: IUtag;\n            site?: IDrupalSite;\n            location: Location;\n            navigator: Navigator;\n            ComponentRenderer: IComponentRenderer;\n            ViewsManager: IViewsManager;\n            registerTranslationFieldsToPreload: Function;\n            registerConfigFieldsToPreload: Function;\n            serviceInfo: IServiceInfo;\n            getServiceVersions(): void;\n            __ssr: boolean;\n            onerror(\n                message: string,\n                url: string,\n                line: number,\n                column: number,\n                error: Error\n            ): boolean;\n            env: string;\n            buid: string;\n            loggerApiSDK: ILoggerApiSDK;\n            requestIdleCallback: Function;\n            cancelIdleCallback: Function;\n        }\n    }\n\n    // Augment Browser `window`\n    interface Window {\n        EcommApp?: IEcommApp;\n        ServiceBusTopics: IServiceBusTopics;\n        __translationsCache__: { [key: string]: string };\n        __configsCache__: { [key: string]: any };\n        getPreloadedConfigs(fields?: string[]): IObjectLike;\n        addConfigs(configs: object): void;\n        getPreloadedTranslations(fields?: string[]): IObjectLike;\n        addTranslations(translations: object): void;\n        ServiceRegistry: IServiceRegistry;\n        GlobalServiceBus: ServiceBus<any, any, any, any, any>;\n        HttpTransport: IHttpTransport;\n        replaceSrc(originalSrc: string): string;\n        utag_data: any;\n        utag_cfg_ovrd: IUtagCfgOvrd;\n        utag: IUtag;\n        location: Location;\n        site?: IDrupalSite;\n        addEventListener(a: string, b: Function): void;\n        ComponentRenderer: IComponentRenderer;\n        ViewsManager: IViewsManager;\n        registerTranslationFieldsToPreload: Function;\n        registerConfigFieldsToPreload: Function;\n        getServiceVersions(): void;\n        __ssr: boolean;\n        onerror(message: string, url: string, line: number, column: number, error: Error): boolean;\n        env: string;\n        buid: string;\n        serviceInfo: IServiceInfo;\n        loggerApiSDK: ILoggerApiSDK;\n        requestIdleCallback: Function;\n        cancelIdleCallback: Function;\n    }\n\n    // Augment Web Worker `self`\n    interface WorkerGlobalScope {\n        ServiceBusTopics: IServiceBusTopics;\n        ServiceRegistry: IServiceRegistry;\n        GlobalServiceBus: ServiceBus<any, any, any, any, any>;\n        HttpTransport: IHttpTransport;\n        __translationsCache__: { [key: string]: string };\n        __configsCache__: { [key: string]: any };\n        getPreloadedConfigs(fields?: string[]): IObjectLike;\n        addConfigs(configs: object): void;\n        getPreloadedTranslations(fields?: string[]): IObjectLike;\n        addTranslations(translations: object): void;\n        replaceSrc(originalSrc: string): string;\n        utag_data: IUtagData;\n        utag_cfg_ovrd: IUtagCfgOvrd;\n        utag: IUtag;\n        location: Location;\n        addEventListener(a: string, b: Function): void;\n        ComponentRenderer: IComponentRenderer;\n        ViewsManager: IViewsManager;\n        registerTranslationFieldsToPreload: Function;\n        registerConfigFieldsToPreload: Function;\n    }\n}\n\nexport const isWebRendered = typeof self === 'object' && self.self === self;\n\nexport const root: NodeJS.Global | Window = typeof window === 'undefined' ? global : window;\n\nexport const setupServiceInfo = (serviceInfo: ISingleServiceInfo) => {\n    const { name, ...rest } = serviceInfo;\n\n    root.serviceInfo = root.serviceInfo || {};\n    root.serviceInfo[name] = rest;\n};\n\nexport enum ISandboxEnvironment {\n    LIVE = 'live',\n    FEATURE = 'feature',\n    DEV = 'dev',\n    STAGE = 'stage',\n    CMS = 'cms',\n    PERSONAL = 'personal',\n    PRODUCTION = 'production'\n}\n\nexport const getSandboxEnvironment: () => string = () => {\n    let urlParts = root.location.hostname.split('.');\n    const { LIVE, FEATURE, DEV, STAGE, CMS, PERSONAL } = ISandboxEnvironment;\n\n    urlParts = urlParts.filter(part => !['www', 'm'].includes(part));\n    const isLive = !(urlParts[0] === 'c') && !(urlParts[0] === 'e');\n\n    return isLive\n        ? LIVE\n        : urlParts.includes(FEATURE)\n        ? FEATURE\n        : urlParts.includes(DEV)\n        ? DEV\n        : urlParts.includes(STAGE)\n        ? STAGE\n        : urlParts.includes(CMS)\n        ? CMS\n        : PERSONAL;\n};\n","export type storageKeyType = 'localStorage' | 'sessionStorage';\nexport namespace BrowserStorage {\n    export function eraseCookie(name: string) {\n        document.cookie = `${name}=; Max-Age=-99999999;`;\n    }\n\n    export function setCookie(name: string, value: string, daysOrDate: number | Date) {\n        let expires = '';\n        if (daysOrDate) {\n            const expirationDate =\n                typeof daysOrDate === 'number'\n                    ? new Date(Date.now() + daysOrDate * 24 * 60 * 60 * 1000)\n                    : daysOrDate;\n            expires = `; expires=${expirationDate.toUTCString()}`;\n        }\n        document.cookie = `${name}=${value || ''}${expires};path=/`;\n    }\n\n    export function getCookie(name: string) {\n        const nameEQ = `${name}=`;\n        const ca = document.cookie.split(';');\n        // eslint-disable-next-line @typescript-eslint/prefer-for-of\n        for (let i = 0; i < ca.length; i++) {\n            let c = ca[i];\n            while (c.charAt(0) === ' ') {\n                c = c.substring(1, c.length);\n            }\n            if (c.indexOf(nameEQ) === 0) {\n                return c.substring(nameEQ.length, c.length);\n            }\n        }\n\n        return null;\n    }\n\n    export function getItem(key: string, storageKey: storageKeyType = 'localStorage') {\n        try {\n            if (window[storageKey].getItem(key) !== null) {\n                return window[storageKey].getItem(key);\n            }\n        } catch (e) {\n            console.error(e);\n\n            return getCookie(key);\n        }\n    }\n\n    export function setItem(\n        key: string,\n        value: string,\n        storageKey: storageKeyType = 'localStorage'\n    ) {\n        try {\n            window[storageKey].setItem(key, value);\n        } catch (e) {\n            console.error(e);\n            setCookie(key, value, 20);\n        }\n    }\n\n    export function removeItem(key: string, storageKey: storageKeyType = 'localStorage') {\n        try {\n            window[storageKey].removeItem(key);\n        } catch (e) {\n            console.error(e);\n            eraseCookie(key);\n        }\n    }\n\n    export function storagePolling(key: string, callBack: Function) {\n        let storageValue = getItem(key);\n\n        const checkForKeyChange = () => {\n            const latestValue = getItem(key);\n\n            if (storageValue !== latestValue) {\n                storageValue = latestValue;\n                callBack(latestValue);\n            }\n        };\n\n        return setInterval(checkForKeyChange, 2000);\n    }\n}\n","import { ITranslationsCollection } from '@estee/elc-service';\nimport { IAppConfig } from '@estee/elc-universal-utils';\nimport { action, observable } from 'mobx';\nimport { INarvarOrderData, IShipmentItem } from 'src/api/OrderTrackingApiSdk';\n\nexport interface IDeliveryMethod {\n    methodCode: string;\n    methodName: string;\n    defaultCarrierCode?: string;\n}\n\nexport interface ICarrierCode {\n    carrierCode: string;\n    carrierName: string;\n    carrierTrackingUrl: string;\n    cutOffTime?: string;\n}\n\n// Order status, it should match the keys configured in BUID config\nexport enum OrderStatusType {\n    ORDER_PROCESSING = 'orderProcessing',\n    AT_WAREHOUSE = 'atWarehouse',\n    SHIPPED = 'shipped',\n    DELIVERED = 'delivered',\n    RETURN_IN_PROGRESS = 'returnInProgress',\n    CANCELLED = 'cancelled',\n    DELAYED = 'delayed',\n    UNDELIVERABLE = 'Undeliverable'\n}\n\nexport interface IOrderStatusCode {\n    orderStatusMappedType: OrderStatusType;\n    showInProgress: boolean;\n    indexOfProgress: number;\n    orderStatusCodes: string[];\n}\n\nexport enum OrderNumberType {\n    TOID = 'toid',\n    TID = 'tid'\n}\n\nexport interface IOrderStatusLabelMap {\n    orderStatusLabel: string;\n    orderStatusCode: string[];\n}\n\nexport interface IOrderTrackingConfig {\n    formattedDeliveredDate: string;\n    formattedOrderDate: string;\n    orderNumberType: OrderNumberType;\n    dateFormatPattern: string;\n    orderStatusCodeMap: IOrderStatusCode[];\n    deliveryMethods: IDeliveryMethod[];\n    carrierCodes: ICarrierCode[];\n    orderNumberValidationRegex: string;\n    orderNumberValidationMaxLength: number;\n    isVerticalTMOProgressBarDisplay: boolean;\n    orderStatusLabelMap: IOrderStatusLabelMap[];\n    breadCrumbDelimiter: IBreadCrumbsDelimiter;\n    datetimeFormatPattern?: string;\n    narvar_data: string | INarvarOrderData;\n    SetReturnInitiatedStatusCode?: string;\n    dateTimeStampFormatPattern: string;\n    partialShipmentStatusCode: string;\n}\n\nexport interface IBreadCrumbsList {\n    label: string;\n    href?: string;\n}\n\nexport interface IOrderDetailStep {\n    heading: string;\n    description: string;\n    statusTimestamp?: string;\n}\n\nexport interface IConfig extends IAppConfig {\n    orderTracking: IOrderTrackingConfig;\n    region: { id: string };\n    brand: { id: string };\n    pgApiTokens: { orderTracking: string };\n}\n\nexport class Config {\n    @observable public config: Partial<IConfig> = {};\n\n    constructor(config: IAppConfig) {\n        this.updateConfig(config);\n    }\n\n    @action\n    updateConfig(config: Partial<IConfig>): void {\n        this.config = { ...this.config, ...config };\n    }\n}\n\nexport interface IValidationMessageObject {\n    [key: string]: IProgressBarView;\n}\n\nexport interface IProgressBarView {\n    progressBar: string;\n    progressBarHeader: string;\n    progressBarDesc: string;\n    progressBarTimestamp: string;\n}\n\nexport interface IBreadCrumbsDelimiter {\n    forward: string;\n    backward: string;\n}\n\nexport interface IShipmentOrder {\n    carrierCode: string;\n    shippedDate: string;\n    trackingNumber: string;\n    trackingUrl: string;\n    cutOffTime: string;\n    carrierName: string;\n    shippedDateFormattedString: string;\n    orderStatusType: OrderStatusType;\n    status?: string;\n    explanation?: string;\n    description?: string;\n    subDescription?: string;\n    progressLabels: string[];\n    isVerticalTMOProgressBarDisplay: boolean;\n    breadCrumbDelimiter?: IBreadCrumbsDelimiter;\n    statusHeader?: string;\n    progressStep: number;\n    progressItems: { completed: boolean }[];\n    isShipped: boolean;\n    formattedDeliveredDate: string;\n    formatStatusTimestamp: string;\n    isPartialShipment: boolean;\n    orderStatusCode?: string;\n    translations?: ITranslationsCollection;\n    orderStatusCodeMap?: IOrderStatusCode[];\n    orderStatusLabelMap?: IOrderStatusLabelMap[];\n    isReturn?: boolean;\n    inProgressOrder?: boolean;\n    orderItems: IShipmentItem[];\n    hasMoreSlideHeaderOrderItems: boolean;\n    slideHeaderOrderItems: IShipmentItem[];\n    itemToSlice: string;\n    stepsDetails: IOrderDetailStep[];\n}\n","import { Breakpoints } from '@estee/elc-base-theme';\nimport { OrderStatusType } from '../domain/entities/Config';\n\nconst KEY_PRESS_ENTER = 'Enter';\n\n// Drupal translation key.\nconst REG_TRANSLATION_PLACEHOLDER = '^::[a-z_]+.[a-z_]+::$';\n\nconst REG_SIGN_IN_PLACEHOLDER = '::SIGN_IN::';\n\nconst REG_SPACE = /\\s/g;\n\nconst REG_TRACKING_NUMBER = /::tracking_number::/g;\n\nconst REG_PLACEHOLDER = /::\\s*([a-z0-9_]+)\\s*::/g;\n\nconst DEFAULT_DATE_FORMAT = 'dd/MM/yyyy';\n\nconst SCROLL_BLOCK = 'start';\n\nconst SCROLL_BEHAVIOR = 'smooth';\n\nconst SCROLL_QUERY = `(min-width: ${Breakpoints.desktop}px)`;\n\nconst INVALID_DATE = 'Invalid Date';\n\nconst DEFAULT_DATETIME_FORMAT = 'LLL d';\n\nconst DEFAULT_DATETIME_STAMP_FORMAT = 'LLL d p';\n\nconst SAMPLE_ITEM = 'Samples';\n\nexport {\n    KEY_PRESS_ENTER,\n    REG_TRANSLATION_PLACEHOLDER,\n    REG_SIGN_IN_PLACEHOLDER,\n    REG_SPACE,\n    REG_PLACEHOLDER,\n    DEFAULT_DATE_FORMAT,\n    REG_TRACKING_NUMBER,\n    SCROLL_BLOCK,\n    SCROLL_BEHAVIOR,\n    SCROLL_QUERY,\n    INVALID_DATE,\n    DEFAULT_DATETIME_FORMAT,\n    DEFAULT_DATETIME_STAMP_FORMAT,\n    SAMPLE_ITEM\n};\n\nexport enum ErrorMessageType {\n    ORDER_NOT_FOUND,\n    ORDER_NUMBER_INVALID,\n    GENERIC\n}\n\nexport enum OrderTrackingSearchParam {\n    // Search params from tracking link in order confirmation email\n    DATA = 'DATA',\n    TOKEN = 'TOKEN',\n\n    // Search params used in API endpoint\n    REGION = 'region',\n    BRAND = 'brand'\n}\n\n// To avoid getting the wrong brand/region value due to DeepSearchResolver behavior in configuration manager\nexport const brandIdValPath = 'brand.id';\nexport const regionIdValPath = 'region.id';\n\n// This mapping is used for filtering which status label appear on the progress bar when order is (orderProcessing, atWarehouse, shipped, delivered, returnInProgress, delayed)\nexport const PROGRESS_MILESTONES_BY_STATUS = {\n    [OrderStatusType.ORDER_PROCESSING]: [\n        OrderStatusType.ORDER_PROCESSING,\n        OrderStatusType.SHIPPED,\n        OrderStatusType.DELIVERED\n    ],\n    [OrderStatusType.AT_WAREHOUSE]: [\n        OrderStatusType.AT_WAREHOUSE,\n        OrderStatusType.SHIPPED,\n        OrderStatusType.DELIVERED\n    ],\n    [OrderStatusType.SHIPPED]: [\n        OrderStatusType.ORDER_PROCESSING,\n        OrderStatusType.SHIPPED,\n        OrderStatusType.DELIVERED\n    ],\n    [OrderStatusType.CANCELLED]: [OrderStatusType.CANCELLED],\n    [OrderStatusType.DELAYED]: [\n        OrderStatusType.ORDER_PROCESSING,\n        OrderStatusType.DELAYED,\n        OrderStatusType.DELIVERED\n    ],\n    [OrderStatusType.DELIVERED]: [\n        OrderStatusType.ORDER_PROCESSING,\n        OrderStatusType.SHIPPED,\n        OrderStatusType.DELIVERED\n    ],\n    [OrderStatusType.UNDELIVERABLE]: [OrderStatusType.UNDELIVERABLE]\n};\n\nexport const DEFAULT_ITEM_TO_SLICE = 2;\n\nexport const DEFAULT_ORDER_PATH = '/rest/api/v1/transaction/tracking';\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}","export default function _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}","export default function _assertThisInitialized(self) {\n  if (self === void 0) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n\n  return self;\n}","export default function _setPrototypeOf(o, p) {\n  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n    o.__proto__ = p;\n    return o;\n  };\n\n  return _setPrototypeOf(o, p);\n}","import React from 'react';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport { isValidElementType } from 'react-is';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\n\n/* eslint-disable import/prefer-default-export */\nfunction invariant(condition, message) {\n  if (condition) return;\n  var error = new Error(\"loadable: \" + message);\n  error.framesToPop = 1;\n  error.name = 'Invariant Violation';\n  throw error;\n}\nfunction warn(message) {\n  // eslint-disable-next-line no-console\n  console.warn(\"loadable: \" + message);\n}\n\nvar Context = /*#__PURE__*/\nReact.createContext();\n\nvar LOADABLE_REQUIRED_CHUNKS_KEY = '__LOADABLE_REQUIRED_CHUNKS__';\nfunction getRequiredChunkKey(namespace) {\n  return \"\" + namespace + LOADABLE_REQUIRED_CHUNKS_KEY;\n}\n\nvar sharedInternals = /*#__PURE__*/Object.freeze({\n  __proto__: null,\n  getRequiredChunkKey: getRequiredChunkKey,\n  invariant: invariant,\n  Context: Context\n});\n\nvar LOADABLE_SHARED = {\n  initialChunks: {}\n};\n\nvar STATUS_PENDING = 'PENDING';\nvar STATUS_RESOLVED = 'RESOLVED';\nvar STATUS_REJECTED = 'REJECTED';\n\nfunction resolveConstructor(ctor) {\n  if (typeof ctor === 'function') {\n    return {\n      requireAsync: ctor,\n      resolve: function resolve() {\n        return undefined;\n      },\n      chunkName: function chunkName() {\n        return undefined;\n      }\n    };\n  }\n\n  return ctor;\n}\n\nvar withChunkExtractor = function withChunkExtractor(Component) {\n  return function (props) {\n    return React.createElement(Context.Consumer, null, function (extractor) {\n      return React.createElement(Component, Object.assign({\n        __chunkExtractor: extractor\n      }, props));\n    });\n  };\n};\n\nvar identity = function identity(v) {\n  return v;\n};\n\nfunction createLoadable(_ref) {\n  var _ref$defaultResolveCo = _ref.defaultResolveComponent,\n      defaultResolveComponent = _ref$defaultResolveCo === void 0 ? identity : _ref$defaultResolveCo,\n      _render = _ref.render,\n      onLoad = _ref.onLoad;\n\n  function loadable(loadableConstructor, options) {\n    if (options === void 0) {\n      options = {};\n    }\n\n    var ctor = resolveConstructor(loadableConstructor);\n    var cache = {};\n    /**\n     * Cachekey represents the component to be loaded\n     * if key changes - component has to be reloaded\n     * @param props\n     * @returns {null|Component}\n     */\n\n    function _getCacheKey(props) {\n      if (options.cacheKey) {\n        return options.cacheKey(props);\n      }\n\n      if (ctor.resolve) {\n        return ctor.resolve(props);\n      }\n\n      return 'static';\n    }\n    /**\n     * Resolves loaded `module` to a specific `Component\n     * @param module\n     * @param props\n     * @param Loadable\n     * @returns Component\n     */\n\n\n    function resolve(module, props, Loadable) {\n      var Component = options.resolveComponent ? options.resolveComponent(module, props) : defaultResolveComponent(module);\n\n      if (options.resolveComponent && !isValidElementType(Component)) {\n        throw new Error(\"resolveComponent returned something that is not a React component!\");\n      }\n\n      hoistNonReactStatics(Loadable, Component, {\n        preload: true\n      });\n      return Component;\n    }\n\n    var InnerLoadable =\n    /*#__PURE__*/\n    function (_React$Component) {\n      _inheritsLoose(InnerLoadable, _React$Component);\n\n      InnerLoadable.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n        var cacheKey = _getCacheKey(props);\n\n        return _extends({}, state, {\n          cacheKey: cacheKey,\n          // change of a key triggers loading state automatically\n          loading: state.loading || state.cacheKey !== cacheKey\n        });\n      };\n\n      function InnerLoadable(props) {\n        var _this;\n\n        _this = _React$Component.call(this, props) || this;\n        _this.state = {\n          result: null,\n          error: null,\n          loading: true,\n          cacheKey: _getCacheKey(props)\n        };\n        invariant(!props.__chunkExtractor || ctor.requireSync, 'SSR requires `@loadable/babel-plugin`, please install it'); // Server-side\n\n        if (props.__chunkExtractor) {\n          // This module has been marked with no SSR\n          if (options.ssr === false) {\n            return _assertThisInitialized(_this);\n          } // We run load function, we assume that it won't fail and that it\n          // triggers a synchronous loading of the module\n\n\n          ctor.requireAsync(props)[\"catch\"](function () {\n            return null;\n          }); // So we can require now the module synchronously\n\n          _this.loadSync();\n\n          props.__chunkExtractor.addChunk(ctor.chunkName(props));\n\n          return _assertThisInitialized(_this);\n        } // Client-side with `isReady` method present (SSR probably)\n        // If module is already loaded, we use a synchronous loading\n        // Only perform this synchronous loading if the component has not\n        // been marked with no SSR, else we risk hydration mismatches\n\n\n        if (options.ssr !== false && ( // is ready - was loaded in this session\n        ctor.isReady && ctor.isReady(props) || // is ready - was loaded during SSR process\n        ctor.chunkName && LOADABLE_SHARED.initialChunks[ctor.chunkName(props)])) {\n          _this.loadSync();\n        }\n\n        return _this;\n      }\n\n      var _proto = InnerLoadable.prototype;\n\n      _proto.componentDidMount = function componentDidMount() {\n        this.mounted = true; // retrieve loading promise from a global cache\n\n        var cachedPromise = this.getCache(); // if promise exists, but rejected - clear cache\n\n        if (cachedPromise && cachedPromise.status === STATUS_REJECTED) {\n          this.setCache();\n        } // component might be resolved synchronously in the constructor\n\n\n        if (this.state.loading) {\n          this.loadAsync();\n        }\n      };\n\n      _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n        // Component has to be reloaded on cacheKey change\n        if (prevState.cacheKey !== this.state.cacheKey) {\n          this.loadAsync();\n        }\n      };\n\n      _proto.componentWillUnmount = function componentWillUnmount() {\n        this.mounted = false;\n      };\n\n      _proto.safeSetState = function safeSetState(nextState, callback) {\n        if (this.mounted) {\n          this.setState(nextState, callback);\n        }\n      }\n      /**\n       * returns a cache key for the current props\n       * @returns {Component|string}\n       */\n      ;\n\n      _proto.getCacheKey = function getCacheKey() {\n        return _getCacheKey(this.props);\n      }\n      /**\n       * access the persistent cache\n       */\n      ;\n\n      _proto.getCache = function getCache() {\n        return cache[this.getCacheKey()];\n      }\n      /**\n       * sets the cache value. If called without value sets it as undefined\n       */\n      ;\n\n      _proto.setCache = function setCache(value) {\n        if (value === void 0) {\n          value = undefined;\n        }\n\n        cache[this.getCacheKey()] = value;\n      };\n\n      _proto.triggerOnLoad = function triggerOnLoad() {\n        var _this2 = this;\n\n        if (onLoad) {\n          setTimeout(function () {\n            onLoad(_this2.state.result, _this2.props);\n          });\n        }\n      }\n      /**\n       * Synchronously loads component\n       * target module is expected to already exists in the module cache\n       * or be capable to resolve synchronously (webpack target=node)\n       */\n      ;\n\n      _proto.loadSync = function loadSync() {\n        // load sync is expecting component to be in the \"loading\" state already\n        // sounds weird, but loading=true is the initial state of InnerLoadable\n        if (!this.state.loading) return;\n\n        try {\n          var loadedModule = ctor.requireSync(this.props);\n          var result = resolve(loadedModule, this.props, Loadable);\n          this.state.result = result;\n          this.state.loading = false;\n        } catch (error) {\n          console.error('loadable-components: failed to synchronously load component, which expected to be available', {\n            fileName: ctor.resolve(this.props),\n            chunkName: ctor.chunkName(this.props),\n            error: error ? error.message : error\n          });\n          this.state.error = error;\n        }\n      }\n      /**\n       * Asynchronously loads a component.\n       */\n      ;\n\n      _proto.loadAsync = function loadAsync() {\n        var _this3 = this;\n\n        var promise = this.resolveAsync();\n        promise.then(function (loadedModule) {\n          var result = resolve(loadedModule, _this3.props, {\n            Loadable: Loadable\n          });\n\n          _this3.safeSetState({\n            result: result,\n            loading: false\n          }, function () {\n            return _this3.triggerOnLoad();\n          });\n        })[\"catch\"](function (error) {\n          return _this3.safeSetState({\n            error: error,\n            loading: false\n          });\n        });\n        return promise;\n      }\n      /**\n       * Asynchronously resolves(not loads) a component.\n       * Note - this function does not change the state\n       */\n      ;\n\n      _proto.resolveAsync = function resolveAsync() {\n        var _this4 = this;\n\n        var _this$props = this.props,\n            __chunkExtractor = _this$props.__chunkExtractor,\n            forwardedRef = _this$props.forwardedRef,\n            props = _objectWithoutPropertiesLoose(_this$props, [\"__chunkExtractor\", \"forwardedRef\"]);\n\n        var promise = this.getCache();\n\n        if (!promise) {\n          promise = ctor.requireAsync(props);\n          promise.status = STATUS_PENDING;\n          this.setCache(promise);\n          promise.then(function () {\n            promise.status = STATUS_RESOLVED;\n          }, function (error) {\n            console.error('loadable-components: failed to asynchronously load component', {\n              fileName: ctor.resolve(_this4.props),\n              chunkName: ctor.chunkName(_this4.props),\n              error: error ? error.message : error\n            });\n            promise.status = STATUS_REJECTED;\n          });\n        }\n\n        return promise;\n      };\n\n      _proto.render = function render() {\n        var _this$props2 = this.props,\n            forwardedRef = _this$props2.forwardedRef,\n            propFallback = _this$props2.fallback,\n            __chunkExtractor = _this$props2.__chunkExtractor,\n            props = _objectWithoutPropertiesLoose(_this$props2, [\"forwardedRef\", \"fallback\", \"__chunkExtractor\"]);\n\n        var _this$state = this.state,\n            error = _this$state.error,\n            loading = _this$state.loading,\n            result = _this$state.result;\n\n        if (options.suspense) {\n          var cachedPromise = this.getCache() || this.loadAsync();\n\n          if (cachedPromise.status === STATUS_PENDING) {\n            throw this.loadAsync();\n          }\n        }\n\n        if (error) {\n          throw error;\n        }\n\n        var fallback = propFallback || options.fallback || null;\n\n        if (loading) {\n          return fallback;\n        }\n\n        return _render({\n          fallback: fallback,\n          result: result,\n          options: options,\n          props: _extends({}, props, {\n            ref: forwardedRef\n          })\n        });\n      };\n\n      return InnerLoadable;\n    }(React.Component);\n\n    var EnhancedInnerLoadable = withChunkExtractor(InnerLoadable);\n    var Loadable = React.forwardRef(function (props, ref) {\n      return React.createElement(EnhancedInnerLoadable, Object.assign({\n        forwardedRef: ref\n      }, props));\n    }); // In future, preload could use `<link rel=\"preload\">`\n\n    Loadable.preload = function (props) {\n      ctor.requireAsync(props);\n    };\n\n    Loadable.load = function (props) {\n      return ctor.requireAsync(props);\n    };\n\n    return Loadable;\n  }\n\n  function lazy(ctor, options) {\n    return loadable(ctor, _extends({}, options, {\n      suspense: true\n    }));\n  }\n\n  return {\n    loadable: loadable,\n    lazy: lazy\n  };\n}\n\nfunction defaultResolveComponent(loadedModule) {\n  // eslint-disable-next-line no-underscore-dangle\n  return loadedModule.__esModule ? loadedModule[\"default\"] : loadedModule[\"default\"] || loadedModule;\n}\n\n/* eslint-disable no-use-before-define, react/no-multi-comp */\n\nvar _createLoadable =\n/*#__PURE__*/\ncreateLoadable({\n  defaultResolveComponent: defaultResolveComponent,\n  render: function render(_ref) {\n    var Component = _ref.result,\n        props = _ref.props;\n    return React.createElement(Component, props);\n  }\n}),\n    loadable = _createLoadable.loadable,\n    lazy = _createLoadable.lazy;\n\n/* eslint-disable no-use-before-define, react/no-multi-comp */\n\nvar _createLoadable$1 =\n/*#__PURE__*/\ncreateLoadable({\n  onLoad: function onLoad(result, props) {\n    if (result && props.forwardedRef) {\n      if (typeof props.forwardedRef === 'function') {\n        props.forwardedRef(result);\n      } else {\n        props.forwardedRef.current = result;\n      }\n    }\n  },\n  render: function render(_ref) {\n    var result = _ref.result,\n        props = _ref.props;\n\n    if (props.children) {\n      return props.children(result);\n    }\n\n    return null;\n  }\n}),\n    loadable$1 = _createLoadable$1.loadable,\n    lazy$1 = _createLoadable$1.lazy;\n\n/* eslint-disable no-underscore-dangle, camelcase */\nvar BROWSER = typeof window !== 'undefined';\nfunction loadableReady(done, _temp) {\n  if (done === void 0) {\n    done = function done() {};\n  }\n\n  var _ref = _temp === void 0 ? {} : _temp,\n      _ref$namespace = _ref.namespace,\n      namespace = _ref$namespace === void 0 ? '' : _ref$namespace;\n\n  if (!BROWSER) {\n    warn('`loadableReady()` must be called in browser only');\n    done();\n    return Promise.resolve();\n  }\n\n  var requiredChunks = null;\n\n  if (BROWSER) {\n    var id = getRequiredChunkKey(namespace);\n    var dataElement = document.getElementById(id);\n\n    if (dataElement) {\n      requiredChunks = JSON.parse(dataElement.textContent);\n      var extElement = document.getElementById(id + \"_ext\");\n\n      if (extElement) {\n        var _JSON$parse = JSON.parse(extElement.textContent),\n            namedChunks = _JSON$parse.namedChunks;\n\n        namedChunks.forEach(function (chunkName) {\n          LOADABLE_SHARED.initialChunks[chunkName] = true;\n        });\n      } else {\n        // version mismatch\n        throw new Error('loadable-component: @loadable/server does not match @loadable/component');\n      }\n    }\n  }\n\n  if (!requiredChunks) {\n    warn('`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side');\n    done();\n    return Promise.resolve();\n  }\n\n  var resolved = false;\n  return new Promise(function (resolve) {\n    window.__LOADABLE_LOADED_CHUNKS__ = window.__LOADABLE_LOADED_CHUNKS__ || [];\n    var loadedChunks = window.__LOADABLE_LOADED_CHUNKS__;\n    var originalPush = loadedChunks.push.bind(loadedChunks);\n\n    function checkReadyState() {\n      if (requiredChunks.every(function (chunk) {\n        return loadedChunks.some(function (_ref2) {\n          var chunks = _ref2[0];\n          return chunks.indexOf(chunk) > -1;\n        });\n      })) {\n        if (!resolved) {\n          resolved = true;\n          resolve();\n        }\n      }\n    }\n\n    loadedChunks.push = function () {\n      originalPush.apply(void 0, arguments);\n      checkReadyState();\n    };\n\n    checkReadyState();\n  }).then(done);\n}\n\n/* eslint-disable no-underscore-dangle */\nvar loadable$2 = loadable;\nloadable$2.lib = loadable$1;\nvar lazy$2 = lazy;\nlazy$2.lib = lazy$1;\nvar __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sharedInternals;\n\nexport default loadable$2;\nexport { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, lazy$2 as lazy, loadableReady };\n","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n  setPrototypeOf(subClass, superClass);\n}","import {\n    root,\n    AllServicesTypes,\n    AllUpdatedServicesTypes,\n    IComponentViewController,\n    IFederatedService,\n    IOlderServiceRegistryComponent,\n    IServiceRegistryComponent\n} from '@estee/elc-universal-utils';\n\nexport function getServices() {\n    return root.ServiceRegistry || {};\n}\n\nexport function hasServiceStarted(service: AllServicesTypes) {\n    return service.isStarted;\n}\n// isLazy is true for exported services by createServiceManifest\nexport function isServiceLazy(service: AllUpdatedServicesTypes) {\n    return Boolean(service.isLazy);\n}\n// createServiceManifest exports an object with fewer keys\nexport function isServiceFromManifest(service: AllServicesTypes) {\n    // @ts-ignore\n    return Boolean(service.getView) && isServiceLazy(service);\n}\n// To be removed after SDFEFND-1853\nexport function isServiceUpdated(service: AllServicesTypes) {\n    return Boolean(service.views); // key added in elc-service v7.x\n}\n\nfunction isViewInService(viewName: string) {\n    return (service: AllServicesTypes) => {\n        if (isServiceUpdated(service)) {\n            return (service as IServiceRegistryComponent).views.includes(viewName);\n        }\n\n        return (service as IOlderServiceRegistryComponent).getView(viewName);\n    };\n}\n\n// Refactor after SDFEFND-1853 to only search in views[]\nexport function findServiceByViewName(viewName: string): AllServicesTypes {\n    const services = Object.values(getServices());\n    const service: AllServicesTypes | undefined = services.find(isViewInService(viewName));\n\n    if (!service) {\n        throw new Error(`Service wasn't found for view ${viewName}`);\n    }\n\n    return service;\n}\n\n/* SSR */\nexport interface IComponentDataState {\n    [key: string]: object | number | string;\n}\nexport interface IComponentState extends IComponentDataState {\n    children: string[];\n}\n\nexport function setStateInController(state: object, controller: IComponentViewController) {\n    const viewState = Object.values(state)[0]; // { [VIEW_NAME]: { ...state } }\n    if (viewState && controller.setSSRState) {\n        controller.setSSRState(viewState);\n    }\n}\n\nexport function setControllerId(config: string | null, controller: IComponentViewController) {\n    if (config && controller.setId) {\n        controller.setId(config);\n    }\n}\n\nexport function parseState(state: string | null) {\n    let parsedState: IComponentState | undefined;\n    try {\n        if (state) {\n            parsedState = JSON.parse(state);\n        }\n    } finally {\n        parsedState = parsedState ? parsedState : { children: [] };\n    }\n\n    return parsedState;\n}\n\nexport function initializeControllerForSSR(\n    viewController: IComponentViewController | null,\n    state: IComponentDataState,\n    config: string | null\n) {\n    if (viewController) {\n        setStateInController(state, viewController);\n        setControllerId(config, viewController);\n    }\n}\n\n/* Module Federation */\nexport async function getModule<T>(child: string, router: string): Promise<T> {\n    // @ts-ignore\n    const module = await (root[child] as unknown).get(`./${router}`);\n\n    return module() as T;\n}\n\nexport async function importComponent<T>(componentName: string): Promise<T> {\n    const srv = (Object.entries(getServices()).find(([_, value]) =>\n        value.views?.includes(componentName)\n    ) as unknown) as [string, IFederatedService];\n\n    const { name } = srv[1];\n\n    return getModule(name, componentName);\n}\n","import loadable from '@loadable/component';\nimport {\n    root,\n    IAppConfig,\n    ICachedComponentsRegistry,\n    IComponentRegistry,\n    IComponentViewController,\n    IManifestServiceRegistryComp,\n    IServiceRegistryComponent,\n    RegisteredComponent,\n    ServiceInitializer\n} from '@estee/elc-universal-utils';\nimport { ELCLogger, TriggerType } from '@estee/elc-logging';\nimport { ServiceBusController } from './ServiceBusController';\nimport { getServices } from './utils';\n\nroot.ServiceRegistry = root.ServiceRegistry || {};\n\nexport abstract class Service implements IServiceRegistryComponent {\n    protected logger: ELCLogger;\n\n    public serviceBusController: ServiceBusController;\n    public componentsRegistry: IComponentRegistry = {};\n    public cachedComponentsRegistry: ICachedComponentsRegistry = {};\n    public isLazy: boolean = false;\n    public isStarted: boolean = false;\n    public views: string[] = [];\n    public startPromise: Promise<void>;\n\n    constructor(\n        public name: string,\n        public version: string,\n        public serviceInitializer: ServiceInitializer\n    ) {}\n\n    public async initializeService(appConfig: IAppConfig): Promise<void> {\n        try {\n            await this.serviceInitializer(appConfig);\n            this.isStarted = true;\n        } catch (error) {\n            this.logger.error({\n                message: `Could not start service ${this.name}`,\n                triggerType: TriggerType.render,\n                payload: {\n                    error,\n                    context: {\n                        serviceRegistry: root.ServiceRegistry\n                    }\n                }\n            });\n        }\n    }\n\n    public start(appConfig: IAppConfig): Promise<void> {\n        if (!this.startPromise && !this.isStarted) {\n            this.logger = new ELCLogger({\n                serviceName: this.name,\n                environment: appConfig.env || root.env,\n                buid: appConfig.businessUnitId || root.buid,\n                serviceVersion: this.version\n            });\n\n            this.startPromise = this.initializeService(appConfig);\n        }\n\n        return this.startPromise as Promise<void>;\n    }\n\n    public register = (overrideValues?: Omit<IManifestServiceRegistryComp, 'start'>) => {\n        root.ServiceRegistry = getServices();\n\n        root.ServiceRegistry[this.name] = Object.assign(\n            root.ServiceRegistry[this.name] || {},\n            {\n                start: this.start,\n                startPromise: this.startPromise,\n                name: this.name,\n                version: this.version,\n                views: this.views,\n                getView: this.getView,\n                registerView: this.registerView,\n                initializeService: this.initializeService,\n                setViewInCache: this.setViewInCache,\n                getViewFromCache: this.getViewFromCache,\n                serviceInitializer: this.serviceInitializer,\n                componentsRegistry: this.componentsRegistry,\n                cachedComponentsRegistry: this.cachedComponentsRegistry,\n                isStarted: this.isStarted,\n                isLazy: this.isLazy\n            },\n            overrideValues || {}\n        );\n    };\n\n    public getView = (componentName: string) => {\n        return this.componentsRegistry[componentName] || null;\n    };\n\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    public setViewInCache = (componentName: string, component: React.ComponentType<any>) => {\n        this.cachedComponentsRegistry[componentName] = component;\n    };\n\n    public getViewFromCache = (componentName: string) => {\n        return this.cachedComponentsRegistry[componentName] || null;\n    };\n\n    public registerView = (\n        componentName: string,\n        component: RegisteredComponent,\n        viewController?: () => IComponentViewController\n    ) => {\n        this.views.push(componentName);\n\n        this.componentsRegistry[componentName] = {\n            componentName,\n            component: loadable(component),\n            viewController\n        };\n    };\n}\n","import { diContainer, serviceNames } from '../../service-setup/diContainer';\nimport { ConfigRepository } from '../../../src/internal/repositories/ConfigRepository';\nimport { OrderTrackingApiSdk } from '../../../src/api/OrderTrackingApiSdk';\nimport { IConfig } from '../domain/entities/Config';\n\nexport class OrderTrackingServiceStartedUseCase {\n    private configRepository: ConfigRepository;\n    private orderTrackingApiSdk: OrderTrackingApiSdk;\n\n    constructor() {\n        this.configRepository = diContainer.get(serviceNames.configRepository);\n        this.orderTrackingApiSdk = diContainer.get(serviceNames.orderTrackingApiSdk);\n    }\n\n    public execute = async () => {\n        await this.configRepository.getDefaultConfigs();\n        const { region, brand, pgApiTokens, orderTracking } = this.configRepository.config\n            .config as IConfig;\n        const baseUrl = window.location.origin;\n        this.orderTrackingApiSdk.setup({\n            regionId: region.id,\n            brandId: brand.id,\n            token: pgApiTokens.orderTracking,\n            baseUrl,\n            orderNumberType: orderTracking.orderNumberType\n        });\n    };\n}\n","import { Service } from '@estee/elc-service';\nimport {\n    ORDER_TRACKING,\n    ORDER_TRACKING_INFORMATION,\n    ORDER_TRACKING_STATUS\n} from '@estee/elc-service-view-names';\nimport { OrderTrackingServiceStartedUseCase } from '../internal/use-cases/OrderTrackingServiceStartedUseCase';\nimport { IAppConfig, ServiceInitializer } from '@estee/elc-universal-utils';\nimport { diContainer, serviceNames } from './diContainer';\n\nconst { name, version } = __serviceInfo__;\n\nexport class OrderTrackingService extends Service {\n    constructor(serviceInitializer: ServiceInitializer) {\n        super(name, version, serviceInitializer);\n        this.registerView(\n            ORDER_TRACKING,\n            () =>\n                import(\n                    /* webpackChunkName: 'OrderTracking'*/\n                    '../exported/OrderTracking'\n                )\n        );\n\n        this.registerView(\n            ORDER_TRACKING_INFORMATION,\n            () =>\n                import(\n                    /* webpackChunkName: 'OrderTrackingInformation'*/\n                    '../exported/OrderTrackingInformation'\n                ),\n            () => diContainer.get(serviceNames.orderTrackingInformationViewController)\n        );\n\n        this.registerView(\n            ORDER_TRACKING_STATUS,\n            () =>\n                import(\n                    /* webpackChunkName: 'OrderStatusInfo'*/\n                    '../exported/order-status/OrderStatusInfo'\n                ),\n            () => diContainer.get(serviceNames.orderStatusViewController)\n        );\n    }\n\n    public async start(config: IAppConfig) {\n        await super.start(config);\n        const orderTrackingServiceUseCase = new OrderTrackingServiceStartedUseCase();\n        await orderTrackingServiceUseCase.execute();\n    }\n}\n","export const OFFERS_TO_DISPLAY = 'offers-to-display';\nexport const ORDER_ERROR_MESSAGE = 'order-error-message';\nexport const PAYMENT_METHODS = 'payment-methods';\nexport const PAYMENT_INFORMATION = 'payment-information';\nexport const FORGOT_PASSWORD = 'forgot-password';\nexport const RESET_PASSWORD = 'reset-password';\nexport const AUTOMATIC_OFFERS = 'automatic-offers';\nexport const THRESHOLD_MESSAGES = 'threshold-messages';\nexport const MANUAL_OFFER = 'manual-offer';\nexport const ORDER_CONFIRMATION_COMPONENT = 'order-confirmation-component';\nexport const PASSWORD_STRENGTH = 'password-strength';\nexport const SAVE_FOR_LATER_LIST = 'save-for-later-list';\nexport const SIGN_IN_FORM = 'sign-in-form';\n\nexport const SIGN_UP_FORM = 'sign-up-form';\nexport const CHANGE_PASSWORD = 'change-password';\nexport const CHANGE_EMAIL = 'change-email';\nexport const EMAIL_VERIFICATION = 'email-verification';\nexport const CONFIRM_REGISTRATION = 'confirm-registration';\n\nexport const ACCOUNT_DASHBOARD = 'account-dashboard';\nexport const ACCOUNT_LANDING_SCREEN = 'account-landing-screen';\nexport const ACCOUNT_LATEST_ORDER = 'account-latest-order';\nexport const ACCOUNT_ORDER_INFORMATION = 'account-order-information';\nexport const ACCOUNT_OVERLAY = 'account-overlay';\nexport const ACCOUNT_PAST_ORDER_STATUS_MENU = 'account-past-order-status-menu';\nexport const ACCOUNT_SIDEBAR = 'account-sidebar';\nexport const ACCOUNT_SIDEBAR_LOYALTY = 'account-sidebar-loyalty';\nexport const ACCOUNT_ORDERS = 'account-orders';\nexport const ACCOUNT_ORDERS_HEADER = 'account-orders-header';\nexport const ACCOUNT_ORDERS_LIST = 'account-orders-list';\n\nexport const USER_PROFILE = 'user-profile';\nexport const USER_PROFILE_WELCOME = 'user-profile-welcome';\nexport const USER_PROFILE_CARD = 'user-profile-card';\n\nexport const ADDRESS_FORM = 'address-form';\nexport const ADDRESS_LIST = 'address-list';\nexport const FORMATTED_ADDRESS = 'formatted-address';\nexport const RETURN_USER_EMAIL = 'return-user-email';\nexport const USER_EMAIL = 'user-email';\nexport const USER_EMAIL_WITH_OPT_IN = 'user-email-with-opt-in';\nexport const SIGN_OUT_LINK = 'sign-out-link';\nexport const CART_ITEMS = 'cart-items';\nexport const CART_ORDER_SUMMARY = 'cart-order-summary';\nexport const CART_MERGE = 'cart-merge';\nexport const ACCOUNT_INFO = 'account-info';\nexport const PRODUCT_GRID = 'product-grid';\nexport const PRODUCT_FULL = 'product-full';\nexport const CART_OVERLAY = 'cart-overlay';\nexport const CART_ICON_BUTTON = 'cart-icon-button';\nexport const ORDER_HISTORY = 'order-history';\nexport const ORDER_DETAILS = 'order-details';\nexport const ORDER_HISTORY_COUNTER_BUTTONS = 'order-history-counter-buttons';\nexport const ORDER_HISTORY_TEMPORARY_MODULE = 'order-history-temporary-module';\nexport const ACCOUNT_INFO_LINK = 'account-info-link';\nexport const SIGN_IN_NAV_LINK = 'sign-in-nav-link';\n\nexport const CART_SIDEBAR = 'cart-sidebar';\nexport const CART_SIDEBAR_OFFERS_TAB = 'cart-sidebar-offers-tab';\nexport const CART_SIDEBAR_CART_OFFERS = 'cart-sidebar-cart-offers';\nexport const CART_SIDEBAR_OFFER_CODE_MODULE = 'cart-sidebar-offer-code-module';\n\nexport const EMAIL_OPT_IN = 'email-opt-in';\nexport const VIEW_EMAIL_OPT_IN = 'view-email-opt-in';\nexport const HELPFUL_LINKS = 'helpful-links';\n\nexport const SIGN_UP_SCREEN = 'sign-up-screen';\nexport const SIGN_IN_SCREEN = 'sign-in-screen';\nexport const ORDER_CONFIRMATION_SCREEN = 'order-confirmation-screen';\nexport const ORDER_ASSOCIATION_SCREEN = 'order-association-screen';\nexport const EXTERNAL_PAYMENT_ERROR_SCREEN = 'external-payment-error-screen';\nexport const PAYMENT_SCREEN = 'payment-screen';\nexport const PAYMENT_NAME = 'payment-name';\nexport const PAYMENT_ICON = 'payment-icon';\nexport const CHECKOUT_HEADER = 'checkout-header';\nexport const CHECKOUT_FOOTER = 'checkout-footer';\nexport const SHIPPING_SCREEN = 'shipping-screen';\nexport const SHOPPING_BAG_PAGE = 'shopping-bag-page';\nexport const PRODUCT_BRIEF = 'product-brief';\nexport const PRODUCT_QUICKVIEW = 'product-quickview';\nexport const SHIPPING_METHODS = 'shipping-methods';\nexport const HOME_DELIVERY_OPTIONS = 'home-delivery-options';\nexport const DELIVERY_TOUT = 'delivery-tout';\nexport const ELC_CHECKOUT = 'elc-checkout';\nexport const ELC_ACCOUNT = 'elc-account';\nexport const STYLEGUIDE = 'style-guide';\nexport const PRODUCT_NOTIFY_ME = 'product-notify-me';\nexport const CHOICE_OF_SKUS_LIST = 'choice-of-skus-list';\nexport const PRODUCT_CROSS_SELL = 'product-cross-sell';\nexport const PRODUCT_ADD_TO_BAG = 'product-add-to-bag';\nexport const PRODUCT_SHADESVIEW = 'product-shadesview';\nexport const PRODUCT_SIZE_PICKER = 'product-size-picker';\nexport const PRODUCT_QUANTITY_SELECTOR = 'product-quantity-selector';\nexport const PRODUCT_SHADE_PICKER = 'product-shade-picker';\nexport const PRODUCT_MEDIA_CAROUSEL_NAV = 'product-media-carousel-nav';\nexport const PRODUCT_SHADE_PICKER_BUTTON = 'product-shade-picker-button';\nexport const PRODUCT_RATING = 'product-rating';\nexport const PRODUCT_REVIEWS = 'product-reviews';\nexport const REVIEW_DETAILS = 'review-details';\nexport const PRODUCT_CTA = 'product-cta';\nexport const PRODUCT_SHADES_SIDEBAR = 'product-shades-sidebar';\nexport const PRODUCT_BASIC_INFO = 'product-basic-info';\nexport const PRODUCT_BASIC_CTA = 'product-basic-cta';\nexport const PRODUCT_COMPARISON_MODULE = 'product-comparison-module';\nexport const LOYALTY_POINTS_INFO = 'loyalty-points-info';\nexport const LOYALTY_DASHBOARD = 'loyalty-dashboard';\nexport const LOYALTY_TIER_INFO = 'loyalty-tier-info';\n\nexport const CONTENT_BLOCK = 'content-block';\nexport const BASIC_TOUT = 'elc-basic-tout-v1';\nexport const VIDEO_TOUT = 'elc-video-tout-v1';\nexport const VIDEO_TOUT_YOUTUBE = 'elc-video-tout-youtube-v1';\nexport const VIDEO_TOUT_MP4_FILE = 'elc-video-tout-mp4-file-v1';\nexport const THIRD_PARTY_TOUT = 'elc-third-party-tout-v1';\nexport const VTO_FOUNDATION_OVERLAY = 'elc-vto-foundation-overlay-v1';\nexport const VTO_FOUNDATION_QR_CODE_OVERLAY = 'elc-vto-foundation-qr-code-overlay-v1';\n\nexport const OLAPIC_WIDGET = 'ugc-olapic-widget';\n\nexport const VTO = 'vto';\nexport const VTO_CTA_BUTTON = 'vto-cta-button';\nexport const VTO_SKIN_CARE = 'vto-skin-care';\n\nexport const SMARTGIFT = 'smartgift';\n\nexport const STORES = 'stores';\nexport const STORES_DIRECTORY = 'stores-directory';\nexport const SEARCH_RESULTS = 'search-results';\nexport const SEARCH_GNAV_INPUT_FIELD = 'search-gnav-input-field';\nexport const VOICE_SEARCH = 'voice-search';\nexport const STORE_DETAILS = 'store-details';\nexport const FIND_IN_STORE_BUTTON = 'find-in-store-button';\nexport const FIND_IN_STORE_MODAL = 'find-in-store-modal';\nexport const PICK_UP_IN_STORE = 'pick-up-in-store';\n\nexport const STYLEGUIDE_TYPOGRAPHY = 'styleguide-typography';\nexport const STYLEGUIDE_BUTTONS = 'styleguide-buttons';\nexport const STYLEGUIDE_INPUTS = 'styleguide-inputs';\nexport const STYLEGUIDE_COMPONENTS = 'styleguide-components';\n\nexport const ELC_RAMP = 'elc-ramp';\nexport const RAMP_SOCIAL_PROFILE = 'ramp-social-profile';\n\nexport const CARE_LANDING = 'elc-care-landing';\nexport const ORDER_TRACKING = 'order-tracking';\nexport const ORDER_TRACKING_INFORMATION = 'order-tracking-information';\nexport const ORDER_TRACKING_STATUS = 'order-tracking-status';\nexport const AUTO_REPLENISH = 'auto-replenish';\n\nexport const GIFTING_TIER_PICK = 'gifting-tier-pick';\nexport const GIFTING_PRODUCTS_TRAY = 'gifting-products-tray';\nexport const GIFT_WRAP_SIDEBAR = 'gift-wrap-sidebar';\n\nexport const DISCOVERY = 'discovery';\nexport const DISCOVERY_GNAV = 'discovery-gnav';\n","// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nexport class ServiceBusController {\n    constructor() {}\n}\n","import { HttpTransport } from '@estee/elc-http-transport';\nimport { IGetPayload, IPayload } from '@estee/elc-universal-utils';\nimport { ELCLogger, TriggerType } from '@estee/elc-logging';\nimport { OrderNumberType } from '../internal/domain/entities/Config';\nimport { DEFAULT_ORDER_PATH, OrderTrackingSearchParam } from '../internal/utils/Constants';\nimport { PickupStoreInfo } from 'src/internal/domain/entities/OrderInfo';\n\nexport interface IEstmimatedDate {\n    estimated_date: string;\n    guaranteed_date: string;\n}\n\nexport interface IItemInfo {\n    item_id: string;\n    sku: string;\n}\n\nexport interface IOrderNarvarItem {\n    item_id: string;\n    sku: string;\n    name: string;\n    quantity: string;\n    sku_image: string;\n    sku_url: string;\n    fulfillment_status: string;\n    size: string;\n}\n\nexport interface IOrderNarvarShipment {\n    carrier_moniker: string;\n    tracking_number: string;\n    status: string;\n    status_code?: string;\n    delivery: IEstmimatedDate;\n    items_info: IItemInfo[];\n    status_timestamp: string;\n}\n\nexport interface IOrderNarvarReturn {\n    return_creation_date: string;\n    return_tracking_url: string;\n    return_items: IItemInfo[];\n    shipments: IOrderNarvarShipment[];\n}\n\nexport interface INarvarOrderInfo {\n    order_number: string;\n    order_date: string;\n    order_items: IOrderNarvarItem[];\n    shipments: IOrderNarvarShipment[];\n    returns?: IOrderNarvarReturn[];\n}\n\nexport interface INarvarOrderData {\n    order_info: INarvarOrderInfo;\n}\n\nexport interface IOrderApiResponse {\n    trans_id: number;\n    trans_order_id: number;\n    order_date: string;\n    order_status: number;\n    delivery_method: number;\n    delivered_date: string;\n    carrier: string;\n    shipped_date: string;\n    tracking_number: string;\n    narvar_data: string | INarvarOrderData;\n    // As the BE API has used narvar_ship_method as the service parameter consumed in tracking url\n    // in future if more services added e.g. fedex_ship_method, another_company_ship_method\n    // we need to refactor this parameter name to a generic one\n    narvar_ship_method?: string;\n    shipments?: IShipment[];\n    pickup_store_data?: PickupStoreInfo;\n    final_sale: string;\n}\n\nexport interface IShipment {\n    is_complete: boolean;\n    is_return: boolean;\n    carrier: string;\n    shipment_tracking_number: string;\n    shipment_status: string;\n    last_updated_date: string;\n    shipped_date: string;\n    estimated_delivery_date: string;\n    delivered_date: string;\n    items: IShipmentItem[];\n    return_tracking_url?: string;\n}\n\nexport interface IShipmentItem {\n    name: string;\n    subheading: string;\n    quantity: string;\n    sku_id: string;\n    sku_image: string;\n    sku_url: string | null;\n    size: string | null | undefined;\n    hex_value: string | null;\n    shade_name: string | null;\n    sku_type: string | null;\n}\n\nexport enum OrderApiResponseCode {\n    SUCCESS = 'success',\n    NOT_FOUND = 'notFound',\n    INVALID_ORDER_NUMBER = 'invalidOrderNumber',\n    GENERIC_ERROR = 'genericError'\n}\n\nexport interface IOrderApiSdkResponse {\n    data?: IOrderApiResponse;\n    code: OrderApiResponseCode;\n}\n\nexport interface IGlobalHeaders {\n    Authorization: string;\n    AuthorizationCredentials: string;\n}\n\nexport type EncryptedOrderNumberDataType = { data: string; token: string };\n\nexport interface IOrderTrackingApiConfig {\n    regionId: string;\n    brandId: string;\n    token: string;\n    baseUrl: string;\n    orderNumberType: OrderNumberType | undefined;\n}\n\nexport class OrderTrackingApiSdk {\n    httpTransport: HttpTransport;\n    logger: ELCLogger;\n    brandRegionQuery: string = '';\n    orderNumberType: OrderNumberType | undefined;\n    orderPath = DEFAULT_ORDER_PATH;\n\n    constructor(logger: ELCLogger, httpTransport: HttpTransport) {\n        this.httpTransport = httpTransport;\n        this.logger = logger;\n    }\n\n    private getGlobalHeaders = (token: string): IGlobalHeaders => {\n        const AuthorizationCredentials = `Basic ${token}`;\n        const Authorization = AuthorizationCredentials;\n\n        // add the header authorization twice for ios support: APACFTRS1-210\n        return {\n            Authorization,\n            AuthorizationCredentials\n        };\n    };\n\n    public setup(config: IOrderTrackingApiConfig): void {\n        const { baseUrl, token, regionId, brandId, orderNumberType } = config;\n        const query = new URLSearchParams();\n        query.set(OrderTrackingSearchParam.REGION, regionId);\n        query.set(OrderTrackingSearchParam.BRAND, brandId);\n        this.brandRegionQuery = query.toString();\n        this.orderNumberType = orderNumberType;\n        this.httpTransport.setBaseUrl(baseUrl);\n        this.httpTransport.addGlobalHeaders(this.getGlobalHeaders(token));\n    }\n\n    public getOrderTracking = async (\n        query: string | EncryptedOrderNumberDataType\n    ): Promise<IOrderApiSdkResponse> => {\n        let url;\n        try {\n            let response;\n            const options = {\n                credentials: 'include'\n            };\n            if (typeof query === 'string') {\n                url = `${this.orderPath}/${this.orderNumberType}/${query}?${this.brandRegionQuery}`;\n                response = await this.httpTransport.get({\n                    options,\n                    url\n                } as IGetPayload);\n            } else {\n                url = `${this.orderPath}/e${this.orderNumberType}?${this.brandRegionQuery}`;\n                response = await this.httpTransport.post({\n                    options,\n                    url,\n                    body: query\n                } as IPayload);\n            }\n\n            return response?.data\n                ? { data: response.data, code: OrderApiResponseCode.SUCCESS }\n                : { code: OrderApiResponseCode.GENERIC_ERROR };\n        } catch (e) {\n            this.logger.error({\n                message: `Unable to get order tracking info from ${url}`,\n                triggerType: TriggerType.api\n            });\n\n            const code =\n                e.errorResponse?.data?.status === 404\n                    ? OrderApiResponseCode.NOT_FOUND\n                    : OrderApiResponseCode.GENERIC_ERROR;\n\n            return { code };\n        }\n    };\n}\n","import { OrderRepository } from '../../../src/internal/repositories/OrderRepository';\nimport { EncryptedOrderNumberDataType, OrderApiResponseCode } from '../../api/OrderTrackingApiSdk';\nimport { emit, events } from '@estee/elc-service-bus';\nimport { diContainer, serviceNames } from '../../service-setup/diContainer';\nimport { ErrorMessageType } from '../utils/Constants';\n\nexport class OrderTrackingSubmittedUseCase {\n    private orderRepository: OrderRepository;\n    private encryptedOrderNumberData: EncryptedOrderNumberDataType | undefined;\n\n    constructor(encryptedOrderNumberData?: EncryptedOrderNumberDataType) {\n        this.orderRepository = diContainer.get(serviceNames.orderRepository);\n        this.encryptedOrderNumberData = encryptedOrderNumberData;\n    }\n\n    public execute = async () => {\n        const {\n            queryOrderNumber,\n            setIsLoading,\n            setErrorMessageType,\n            setQueryOrderNumber\n        } = this.orderRepository.orderTracking;\n\n        queryOrderNumber &&\n            emit(events.ORDER_TRACKING_SUBMITTED, {\n                orderNumber: queryOrderNumber\n            });\n\n        setIsLoading(true);\n        const { responseCode, orderInfo } = await this.orderRepository.getOrderTrackingData(\n            this.encryptedOrderNumberData || queryOrderNumber\n        );\n        setIsLoading(false);\n\n        switch (responseCode) {\n            case OrderApiResponseCode.NOT_FOUND:\n                setErrorMessageType(ErrorMessageType.ORDER_NOT_FOUND);\n                queryOrderNumber &&\n                    emit(events.ORDER_TRACKING_INVALID_NUMBER, {\n                        orderNumber: queryOrderNumber\n                    });\n                break;\n            case OrderApiResponseCode.INVALID_ORDER_NUMBER:\n                setErrorMessageType(ErrorMessageType.ORDER_NUMBER_INVALID);\n                queryOrderNumber &&\n                    emit(events.ORDER_TRACKING_INVALID_NUMBER, {\n                        orderNumber: queryOrderNumber\n                    });\n                break;\n            case OrderApiResponseCode.GENERIC_ERROR:\n                setErrorMessageType(ErrorMessageType.GENERIC);\n                break;\n            default:\n                setQueryOrderNumber('');\n                queryOrderNumber && emit(events.ORDER_TRACKING_SUCCESSFUL);\n        }\n\n        return orderInfo;\n    };\n}\n","import { computed, observable, action } from 'mobx';\nimport { OrderRepository } from '../repositories/OrderRepository';\nimport { FormattedTextValues } from '@estee/elc-formatters';\nimport { ITranslationsCollection } from '@estee/elc-service';\nimport { OrderTrackingSubmittedUseCase } from '../use-cases/OrderTrackingSubmittedUseCase';\nimport { ConfigRepository } from '../repositories/ConfigRepository';\nimport { ErrorMessageType } from '../utils/Constants';\nimport { emit, events } from 'elc-service-bus';\nimport { EncryptedOrderNumberDataType } from '../../api/OrderTrackingApiSdk';\n\nexport default class OrderTrackingViewController {\n    @observable public isScrolled: boolean = true;\n    @observable public isTrackOrderShow: boolean = true;\n    @observable public isVerticalTMOProgressBar: boolean;\n    // This value is populated after view is loaded\n    @observable private translations?: ITranslationsCollection;\n\n    private orderRepository: OrderRepository;\n    private configRepository: ConfigRepository;\n\n    constructor(orderRepository: OrderRepository, configRepository: ConfigRepository) {\n        this.orderRepository = orderRepository;\n        this.configRepository = configRepository;\n    }\n\n    @action\n    public loaded = (translations: ITranslationsCollection) => {\n        this.translations = translations;\n        this.orderRepository.loadTranslations(translations);\n    };\n\n    @computed get errorMessage(): string {\n        const { errorMessageType } = this.orderRepository.orderTracking;\n\n        if (!this.translations) {\n            return '';\n        }\n        const {\n            noOrderFoundErrorMessage,\n            orderNumberInvalidErrorMessage,\n            orderTrackingGenericErrorMessage\n        } = this.translations;\n        switch (errorMessageType) {\n            case ErrorMessageType.ORDER_NOT_FOUND:\n                return noOrderFoundErrorMessage;\n            case ErrorMessageType.ORDER_NUMBER_INVALID:\n                return orderNumberInvalidErrorMessage;\n            case ErrorMessageType.GENERIC:\n                return orderTrackingGenericErrorMessage;\n            default:\n                return '';\n        }\n    }\n\n    @computed\n    public get data() {\n        const { orderInfo, orderTracking } = this.orderRepository;\n        const { queryOrderNumber, isLoading } = orderTracking;\n        const { orderNumberValidationMaxLength, isVerticalTMOProgressBarDisplay } =\n            this.configRepository.orderTrackingConfig;\n        this.isVerticalTMOProgressBar = isVerticalTMOProgressBarDisplay;\n\n        return {\n            orderInfo,\n            queryOrderNumber,\n            errorMessage: this.errorMessage,\n            orderNumberValidationMaxLength,\n            isVerticalTMOProgressBarDisplay,\n            isLoading\n        };\n    }\n\n    @computed\n    public get orderExplainPlaceholderValues(): FormattedTextValues {\n        const { orderInfo } = this.orderRepository;\n        let orderDateValue = '';\n        let shippedDateValue = '';\n        let deliveredDateValue = '';\n        let cutOffTimeValue = '';\n        let carrierNameValue = '';\n\n        if (orderInfo) {\n            const { orderDateFormattedString, orderDate, shippingInfo, deliveredDate } = orderInfo;\n            orderDateValue = orderDateFormattedString || orderDate;\n            deliveredDateValue = deliveredDate;\n\n            if (shippingInfo) {\n                const { shippedDateFormattedString, shippedDate, cutOffTime, carrierName } =\n                    shippingInfo;\n\n                shippedDateValue = shippedDateFormattedString || shippedDate;\n                cutOffTimeValue = cutOffTime;\n                carrierNameValue = carrierName;\n            }\n        }\n\n        return {\n            ORDER_DATE: orderDateValue,\n            SHIPPED_DATE: shippedDateValue,\n            DELIVERED_DATE: deliveredDateValue,\n            CUTOFF_TIME: cutOffTimeValue,\n            CARRIER_NAME: carrierNameValue\n        };\n    }\n\n    @computed\n    public get shouldScroll(): boolean {\n        return !this.isScrolled && !!this.orderRepository.orderInfo;\n    }\n\n    @action\n    public onChangeQueryOrderNumber = (orderNumber: string) => {\n        this.orderRepository.orderTracking.setQueryOrderNumber(orderNumber);\n    };\n\n    @action\n    public onQueryOrder = async (encryptedOrderNumberData?: EncryptedOrderNumberDataType) => {\n        // Should mark isScrolled to false before changing other view state because this flag won't trigger view re-render itself.\n        this.isScrolled = false;\n        const submitUseCase = new OrderTrackingSubmittedUseCase(encryptedOrderNumberData);\n        await submitUseCase.execute();\n    };\n\n    @action\n    public scrollComplete = () => {\n        this.isScrolled = true;\n    };\n\n    @action\n    public hideTrackMyOrderDisplay = () => {\n        this.isTrackOrderShow = false;\n    };\n\n    public onSignInLinkClick = () => {\n        emit(events.SIGN_IN_LINK_CLICKED);\n    };\n}\n","export default function toInteger(dirtyNumber) {\n  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {\n    return NaN;\n  }\n\n  var number = Number(dirtyNumber);\n\n  if (isNaN(number)) {\n    return number;\n  }\n\n  return number < 0 ? Math.ceil(number) : Math.floor(number);\n}","export default function requiredArgs(required, args) {\n  if (args.length < required) {\n    throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n  }\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_HOUR = 3600000;\nvar MILLISECONDS_IN_MINUTE = 60000;\nvar DEFAULT_ADDITIONAL_DIGITS = 2;\nvar patterns = {\n  dateTimeDelimiter: /[T ]/,\n  timeZoneDelimiter: /[Z ]/i,\n  timezone: /([Z+-].*)$/\n};\nvar dateRegex = /^-?(?:(\\d{3})|(\\d{2})(?:-?(\\d{2}))?|W(\\d{2})(?:-?(\\d{1}))?|)$/;\nvar timeRegex = /^(\\d{2}(?:[.,]\\d*)?)(?::?(\\d{2}(?:[.,]\\d*)?))?(?::?(\\d{2}(?:[.,]\\d*)?))?$/;\nvar timezoneRegex = /^([+-])(\\d{2})(?::?(\\d{2}))?$/;\n/**\n * @name parseISO\n * @category Common Helpers\n * @summary Parse ISO string\n *\n * @description\n * Parse the given string in ISO 8601 format and return an instance of Date.\n *\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n *\n * If the argument isn't a string, the function cannot parse the string or\n * the values are invalid, it returns Invalid Date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The previous `parse` implementation was renamed to `parseISO`.\n *\n *   ```javascript\n *   // Before v2.0.0\n *   parse('2016-01-01')\n *\n *   // v2.0.0 onward\n *   parseISO('2016-01-01')\n *   ```\n *\n * - `parseISO` now validates separate date and time values in ISO-8601 strings\n *   and returns `Invalid Date` if the date is invalid.\n *\n *   ```javascript\n *   parseISO('2018-13-32')\n *   //=> Invalid Date\n *   ```\n *\n * - `parseISO` now doesn't fall back to `new Date` constructor\n *   if it fails to parse a string argument. Instead, it returns `Invalid Date`.\n *\n * @param {String} argument - the value to convert\n * @param {Object} [options] - an object with options.\n * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * var result = parseISO('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert string '+02014101' to date,\n * // if the additional number of digits in the extended year format is 1:\n * var result = parseISO('+02014101', { additionalDigits: 1 })\n * //=> Fri Apr 11 2014 00:00:00\n */\n\nexport default function parseISO(argument, dirtyOptions) {\n  requiredArgs(1, arguments);\n  var options = dirtyOptions || {};\n  var additionalDigits = options.additionalDigits == null ? DEFAULT_ADDITIONAL_DIGITS : toInteger(options.additionalDigits);\n\n  if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {\n    throw new RangeError('additionalDigits must be 0, 1 or 2');\n  }\n\n  if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) {\n    return new Date(NaN);\n  }\n\n  var dateStrings = splitDateString(argument);\n  var date;\n\n  if (dateStrings.date) {\n    var parseYearResult = parseYear(dateStrings.date, additionalDigits);\n    date = parseDate(parseYearResult.restDateString, parseYearResult.year);\n  }\n\n  if (isNaN(date) || !date) {\n    return new Date(NaN);\n  }\n\n  var timestamp = date.getTime();\n  var time = 0;\n  var offset;\n\n  if (dateStrings.time) {\n    time = parseTime(dateStrings.time);\n\n    if (isNaN(time) || time === null) {\n      return new Date(NaN);\n    }\n  }\n\n  if (dateStrings.timezone) {\n    offset = parseTimezone(dateStrings.timezone);\n\n    if (isNaN(offset)) {\n      return new Date(NaN);\n    }\n  } else {\n    var dirtyDate = new Date(timestamp + time); // js parsed string assuming it's in UTC timezone\n    // but we need it to be parsed in our timezone\n    // so we use utc values to build date in our timezone.\n    // Year values from 0 to 99 map to the years 1900 to 1999\n    // so set year explicitly with setFullYear.\n\n    var result = new Date(0);\n    result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate());\n    result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds());\n    return result;\n  }\n\n  return new Date(timestamp + time + offset);\n}\n\nfunction splitDateString(dateString) {\n  var dateStrings = {};\n  var array = dateString.split(patterns.dateTimeDelimiter);\n  var timeString; // The regex match should only return at maximum two array elements.\n  // [date], [time], or [date, time].\n\n  if (array.length > 2) {\n    return dateStrings;\n  }\n\n  if (/:/.test(array[0])) {\n    dateStrings.date = null;\n    timeString = array[0];\n  } else {\n    dateStrings.date = array[0];\n    timeString = array[1];\n\n    if (patterns.timeZoneDelimiter.test(dateStrings.date)) {\n      dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0];\n      timeString = dateString.substr(dateStrings.date.length, dateString.length);\n    }\n  }\n\n  if (timeString) {\n    var token = patterns.timezone.exec(timeString);\n\n    if (token) {\n      dateStrings.time = timeString.replace(token[1], '');\n      dateStrings.timezone = token[1];\n    } else {\n      dateStrings.time = timeString;\n    }\n  }\n\n  return dateStrings;\n}\n\nfunction parseYear(dateString, additionalDigits) {\n  var regex = new RegExp('^(?:(\\\\d{4}|[+-]\\\\d{' + (4 + additionalDigits) + '})|(\\\\d{2}|[+-]\\\\d{' + (2 + additionalDigits) + '})$)');\n  var captures = dateString.match(regex); // Invalid ISO-formatted year\n\n  if (!captures) return {\n    year: null\n  };\n  var year = captures[1] && parseInt(captures[1]);\n  var century = captures[2] && parseInt(captures[2]);\n  return {\n    year: century == null ? year : century * 100,\n    restDateString: dateString.slice((captures[1] || captures[2]).length)\n  };\n}\n\nfunction parseDate(dateString, year) {\n  // Invalid ISO-formatted year\n  if (year === null) return null;\n  var captures = dateString.match(dateRegex); // Invalid ISO-formatted string\n\n  if (!captures) return null;\n  var isWeekDate = !!captures[4];\n  var dayOfYear = parseDateUnit(captures[1]);\n  var month = parseDateUnit(captures[2]) - 1;\n  var day = parseDateUnit(captures[3]);\n  var week = parseDateUnit(captures[4]);\n  var dayOfWeek = parseDateUnit(captures[5]) - 1;\n\n  if (isWeekDate) {\n    if (!validateWeekDate(year, week, dayOfWeek)) {\n      return new Date(NaN);\n    }\n\n    return dayOfISOWeekYear(year, week, dayOfWeek);\n  } else {\n    var date = new Date(0);\n\n    if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) {\n      return new Date(NaN);\n    }\n\n    date.setUTCFullYear(year, month, Math.max(dayOfYear, day));\n    return date;\n  }\n}\n\nfunction parseDateUnit(value) {\n  return value ? parseInt(value) : 1;\n}\n\nfunction parseTime(timeString) {\n  var captures = timeString.match(timeRegex);\n  if (!captures) return null; // Invalid ISO-formatted time\n\n  var hours = parseTimeUnit(captures[1]);\n  var minutes = parseTimeUnit(captures[2]);\n  var seconds = parseTimeUnit(captures[3]);\n\n  if (!validateTime(hours, minutes, seconds)) {\n    return NaN;\n  }\n\n  return hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * 1000;\n}\n\nfunction parseTimeUnit(value) {\n  return value && parseFloat(value.replace(',', '.')) || 0;\n}\n\nfunction parseTimezone(timezoneString) {\n  if (timezoneString === 'Z') return 0;\n  var captures = timezoneString.match(timezoneRegex);\n  if (!captures) return 0;\n  var sign = captures[1] === '+' ? -1 : 1;\n  var hours = parseInt(captures[2]);\n  var minutes = captures[3] && parseInt(captures[3]) || 0;\n\n  if (!validateTimezone(hours, minutes)) {\n    return NaN;\n  }\n\n  return sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE);\n}\n\nfunction dayOfISOWeekYear(isoWeekYear, week, day) {\n  var date = new Date(0);\n  date.setUTCFullYear(isoWeekYear, 0, 4);\n  var fourthOfJanuaryDay = date.getUTCDay() || 7;\n  var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay;\n  date.setUTCDate(date.getUTCDate() + diff);\n  return date;\n} // Validation functions\n// February is null to handle the leap year (using ||)\n\n\nvar daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\nfunction isLeapYearIndex(year) {\n  return year % 400 === 0 || year % 4 === 0 && year % 100;\n}\n\nfunction validateDate(year, month, date) {\n  return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28));\n}\n\nfunction validateDayOfYearDate(year, dayOfYear) {\n  return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365);\n}\n\nfunction validateWeekDate(_year, week, day) {\n  return week >= 1 && week <= 53 && day >= 0 && day <= 6;\n}\n\nfunction validateTime(hours, minutes, seconds) {\n  if (hours === 24) {\n    return minutes === 0 && seconds === 0;\n  }\n\n  return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25;\n}\n\nfunction validateTimezone(_hours, minutes) {\n  return minutes >= 0 && minutes <= 59;\n}","import requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\n\nexport default function toDate(argument) {\n  requiredArgs(1, arguments);\n  var argStr = Object.prototype.toString.call(argument); // Clone the date\n\n  if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {\n    // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n    return new Date(argument.getTime());\n  } else if (typeof argument === 'number' || argStr === '[object Number]') {\n    return new Date(argument);\n  } else {\n    if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n      // eslint-disable-next-line no-console\n      console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule\"); // eslint-disable-next-line no-console\n\n      console.warn(new Error().stack);\n    }\n\n    return new Date(NaN);\n  }\n}","var formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: 'less than a second',\n    other: 'less than {{count}} seconds'\n  },\n  xSeconds: {\n    one: '1 second',\n    other: '{{count}} seconds'\n  },\n  halfAMinute: 'half a minute',\n  lessThanXMinutes: {\n    one: 'less than a minute',\n    other: 'less than {{count}} minutes'\n  },\n  xMinutes: {\n    one: '1 minute',\n    other: '{{count}} minutes'\n  },\n  aboutXHours: {\n    one: 'about 1 hour',\n    other: 'about {{count}} hours'\n  },\n  xHours: {\n    one: '1 hour',\n    other: '{{count}} hours'\n  },\n  xDays: {\n    one: '1 day',\n    other: '{{count}} days'\n  },\n  aboutXWeeks: {\n    one: 'about 1 week',\n    other: 'about {{count}} weeks'\n  },\n  xWeeks: {\n    one: '1 week',\n    other: '{{count}} weeks'\n  },\n  aboutXMonths: {\n    one: 'about 1 month',\n    other: 'about {{count}} months'\n  },\n  xMonths: {\n    one: '1 month',\n    other: '{{count}} months'\n  },\n  aboutXYears: {\n    one: 'about 1 year',\n    other: 'about {{count}} years'\n  },\n  xYears: {\n    one: '1 year',\n    other: '{{count}} years'\n  },\n  overXYears: {\n    one: 'over 1 year',\n    other: 'over {{count}} years'\n  },\n  almostXYears: {\n    one: 'almost 1 year',\n    other: 'almost {{count}} years'\n  }\n};\nexport default function formatDistance(token, count, options) {\n  options = options || {};\n  var result;\n\n  if (typeof formatDistanceLocale[token] === 'string') {\n    result = formatDistanceLocale[token];\n  } else if (count === 1) {\n    result = formatDistanceLocale[token].one;\n  } else {\n    result = formatDistanceLocale[token].other.replace('{{count}}', count);\n  }\n\n  if (options.addSuffix) {\n    if (options.comparison > 0) {\n      return 'in ' + result;\n    } else {\n      return result + ' ago';\n    }\n  }\n\n  return result;\n}","export default function buildFormatLongFn(args) {\n  return function (dirtyOptions) {\n    var options = dirtyOptions || {};\n    var width = options.width ? String(options.width) : args.defaultWidth;\n    var format = args.formats[width] || args.formats[args.defaultWidth];\n    return format;\n  };\n}","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n  full: 'EEEE, MMMM do, y',\n  long: 'MMMM do, y',\n  medium: 'MMM d, y',\n  short: 'MM/dd/yyyy'\n};\nvar timeFormats = {\n  full: 'h:mm:ss a zzzz',\n  long: 'h:mm:ss a z',\n  medium: 'h:mm:ss a',\n  short: 'h:mm a'\n};\nvar dateTimeFormats = {\n  full: \"{{date}} 'at' {{time}}\",\n  long: \"{{date}} 'at' {{time}}\",\n  medium: '{{date}}, {{time}}',\n  short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: 'full'\n  }),\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: 'full'\n  }),\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: 'full'\n  })\n};\nexport default formatLong;","var formatRelativeLocale = {\n  lastWeek: \"'last' eeee 'at' p\",\n  yesterday: \"'yesterday at' p\",\n  today: \"'today at' p\",\n  tomorrow: \"'tomorrow at' p\",\n  nextWeek: \"eeee 'at' p\",\n  other: 'P'\n};\nexport default function formatRelative(token, _date, _baseDate, _options) {\n  return formatRelativeLocale[token];\n}","export default function buildLocalizeFn(args) {\n  return function (dirtyIndex, dirtyOptions) {\n    var options = dirtyOptions || {};\n    var context = options.context ? String(options.context) : 'standalone';\n    var valuesArray;\n\n    if (context === 'formatting' && args.formattingValues) {\n      var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n      var width = options.width ? String(options.width) : defaultWidth;\n      valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];\n    } else {\n      var _defaultWidth = args.defaultWidth;\n\n      var _width = options.width ? String(options.width) : args.defaultWidth;\n\n      valuesArray = args.values[_width] || args.values[_defaultWidth];\n    }\n\n    var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;\n    return valuesArray[index];\n  };\n}","export default function buildMatchFn(args) {\n  return function (dirtyString, dirtyOptions) {\n    var string = String(dirtyString);\n    var options = dirtyOptions || {};\n    var width = options.width;\n    var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];\n    var matchResult = string.match(matchPattern);\n\n    if (!matchResult) {\n      return null;\n    }\n\n    var matchedString = matchResult[0];\n    var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];\n    var value;\n\n    if (Object.prototype.toString.call(parsePatterns) === '[object Array]') {\n      value = findIndex(parsePatterns, function (pattern) {\n        return pattern.test(matchedString);\n      });\n    } else {\n      value = findKey(parsePatterns, function (pattern) {\n        return pattern.test(matchedString);\n      });\n    }\n\n    value = args.valueCallback ? args.valueCallback(value) : value;\n    value = options.valueCallback ? options.valueCallback(value) : value;\n    return {\n      value: value,\n      rest: string.slice(matchedString.length)\n    };\n  };\n}\n\nfunction findKey(object, predicate) {\n  for (var key in object) {\n    if (object.hasOwnProperty(key) && predicate(object[key])) {\n      return key;\n    }\n  }\n}\n\nfunction findIndex(array, predicate) {\n  for (var key = 0; key < array.length; key++) {\n    if (predicate(array[key])) {\n      return key;\n    }\n  }\n}","import buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nimport buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n  narrow: /^(b|a)/i,\n  abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n  wide: /^(before christ|before common era|anno domini|common era)/i\n};\nvar parseEraPatterns = {\n  any: [/^b/i, /^(a|c)/i]\n};\nvar matchQuarterPatterns = {\n  narrow: /^[1234]/i,\n  abbreviated: /^q[1234]/i,\n  wide: /^[1234](th|st|nd|rd)? quarter/i\n};\nvar parseQuarterPatterns = {\n  any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n  narrow: /^[jfmasond]/i,\n  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i\n};\nvar parseMonthPatterns = {\n  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n  any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n  narrow: /^[smtwf]/i,\n  short: /^(su|mo|tu|we|th|fr|sa)/i,\n  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i\n};\nvar parseDayPatterns = {\n  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n  any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i\n};\nvar parseDayPeriodPatterns = {\n  any: {\n    am: /^a/i,\n    pm: /^p/i,\n    midnight: /^mi/i,\n    noon: /^no/i,\n    morning: /morning/i,\n    afternoon: /afternoon/i,\n    evening: /evening/i,\n    night: /night/i\n  }\n};\nvar match = {\n  ordinalNumber: buildMatchPatternFn({\n    matchPattern: matchOrdinalNumberPattern,\n    parsePattern: parseOrdinalNumberPattern,\n    valueCallback: function (value) {\n      return parseInt(value, 10);\n    }\n  }),\n  era: buildMatchFn({\n    matchPatterns: matchEraPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseEraPatterns,\n    defaultParseWidth: 'any'\n  }),\n  quarter: buildMatchFn({\n    matchPatterns: matchQuarterPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseQuarterPatterns,\n    defaultParseWidth: 'any',\n    valueCallback: function (index) {\n      return index + 1;\n    }\n  }),\n  month: buildMatchFn({\n    matchPatterns: matchMonthPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseMonthPatterns,\n    defaultParseWidth: 'any'\n  }),\n  day: buildMatchFn({\n    matchPatterns: matchDayPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseDayPatterns,\n    defaultParseWidth: 'any'\n  }),\n  dayPeriod: buildMatchFn({\n    matchPatterns: matchDayPeriodPatterns,\n    defaultMatchWidth: 'any',\n    parsePatterns: parseDayPeriodPatterns,\n    defaultParseWidth: 'any'\n  })\n};\nexport default match;","export default function buildMatchPatternFn(args) {\n  return function (dirtyString, dirtyOptions) {\n    var string = String(dirtyString);\n    var options = dirtyOptions || {};\n    var matchResult = string.match(args.matchPattern);\n\n    if (!matchResult) {\n      return null;\n    }\n\n    var matchedString = matchResult[0];\n    var parseResult = string.match(args.parsePattern);\n\n    if (!parseResult) {\n      return null;\n    }\n\n    var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];\n    value = options.valueCallback ? options.valueCallback(value) : value;\n    return {\n      value: value,\n      rest: string.slice(matchedString.length)\n    };\n  };\n}","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}\n * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}\n */\n\nvar locale = {\n  code: 'en-US',\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 0\n    /* Sunday */\n    ,\n    firstWeekContainsDate: 1\n  }\n};\nexport default locale;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n  narrow: ['B', 'A'],\n  abbreviated: ['BC', 'AD'],\n  wide: ['Before Christ', 'Anno Domini']\n};\nvar quarterValues = {\n  narrow: ['1', '2', '3', '4'],\n  abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],\n  wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] // Note: in English, the names of days of the week and months are capitalized.\n  // If you are making a new locale based on this one, check if the same is true for the language you're working on.\n  // Generally, formatted dates should look like they are in the middle of a sentence,\n  // e.g. in Spanish language the weekdays and months should be in the lowercase.\n\n};\nvar monthValues = {\n  narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n  abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n  wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n};\nvar dayValues = {\n  narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n  short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n  abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n  wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n};\nvar dayPeriodValues = {\n  narrow: {\n    am: 'a',\n    pm: 'p',\n    midnight: 'mi',\n    noon: 'n',\n    morning: 'morning',\n    afternoon: 'afternoon',\n    evening: 'evening',\n    night: 'night'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'midnight',\n    noon: 'noon',\n    morning: 'morning',\n    afternoon: 'afternoon',\n    evening: 'evening',\n    night: 'night'\n  },\n  wide: {\n    am: 'a.m.',\n    pm: 'p.m.',\n    midnight: 'midnight',\n    noon: 'noon',\n    morning: 'morning',\n    afternoon: 'afternoon',\n    evening: 'evening',\n    night: 'night'\n  }\n};\nvar formattingDayPeriodValues = {\n  narrow: {\n    am: 'a',\n    pm: 'p',\n    midnight: 'mi',\n    noon: 'n',\n    morning: 'in the morning',\n    afternoon: 'in the afternoon',\n    evening: 'in the evening',\n    night: 'at night'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'midnight',\n    noon: 'noon',\n    morning: 'in the morning',\n    afternoon: 'in the afternoon',\n    evening: 'in the evening',\n    night: 'at night'\n  },\n  wide: {\n    am: 'a.m.',\n    pm: 'p.m.',\n    midnight: 'midnight',\n    noon: 'noon',\n    morning: 'in the morning',\n    afternoon: 'in the afternoon',\n    evening: 'in the evening',\n    night: 'at night'\n  }\n};\n\nfunction ordinalNumber(dirtyNumber, _dirtyOptions) {\n  var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,\n  // if they are different for different grammatical genders,\n  // use `options.unit`:\n  //\n  //   var options = dirtyOptions || {}\n  //   var unit = String(options.unit)\n  //\n  // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n  // 'day', 'hour', 'minute', 'second'\n\n  var rem100 = number % 100;\n\n  if (rem100 > 20 || rem100 < 10) {\n    switch (rem100 % 10) {\n      case 1:\n        return number + 'st';\n\n      case 2:\n        return number + 'nd';\n\n      case 3:\n        return number + 'rd';\n    }\n  }\n\n  return number + 'th';\n}\n\nvar localize = {\n  ordinalNumber: ordinalNumber,\n  era: buildLocalizeFn({\n    values: eraValues,\n    defaultWidth: 'wide'\n  }),\n  quarter: buildLocalizeFn({\n    values: quarterValues,\n    defaultWidth: 'wide',\n    argumentCallback: function (quarter) {\n      return Number(quarter) - 1;\n    }\n  }),\n  month: buildLocalizeFn({\n    values: monthValues,\n    defaultWidth: 'wide'\n  }),\n  day: buildLocalizeFn({\n    values: dayValues,\n    defaultWidth: 'wide'\n  }),\n  dayPeriod: buildLocalizeFn({\n    values: dayPeriodValues,\n    defaultWidth: 'wide',\n    formattingValues: formattingDayPeriodValues,\n    defaultFormattingWidth: 'wide'\n  })\n};\nexport default localize;","import toInteger from \"../_lib/toInteger/index.js\";\nimport addMilliseconds from \"../addMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name subMilliseconds\n * @category Millisecond Helpers\n * @summary Subtract the specified number of milliseconds from the given date.\n *\n * @description\n * Subtract the specified number of milliseconds from the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the milliseconds subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:\n * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:29.250\n */\n\nexport default function subMilliseconds(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var amount = toInteger(dirtyAmount);\n  return addMilliseconds(dirtyDate, -amount);\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the milliseconds added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\n\nexport default function addMilliseconds(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var timestamp = toDate(dirtyDate).getTime();\n  var amount = toInteger(dirtyAmount);\n  return new Date(timestamp + amount);\n}","export default function addLeadingZeros(number, targetLength) {\n  var sign = number < 0 ? '-' : '';\n  var output = Math.abs(number).toString();\n\n  while (output.length < targetLength) {\n    output = '0' + output;\n  }\n\n  return sign + output;\n}","import addLeadingZeros from \"../../addLeadingZeros/index.js\";\n/*\n * |     | Unit                           |     | Unit                           |\n * |-----|--------------------------------|-----|--------------------------------|\n * |  a  | AM, PM                         |  A* |                                |\n * |  d  | Day of month                   |  D  |                                |\n * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |\n * |  m  | Minute                         |  M  | Month                          |\n * |  s  | Second                         |  S  | Fraction of second             |\n * |  y  | Year (abs)                     |  Y  |                                |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\n\nvar formatters = {\n  // Year\n  y: function (date, token) {\n    // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n    // | Year     |     y | yy |   yyy |  yyyy | yyyyy |\n    // |----------|-------|----|-------|-------|-------|\n    // | AD 1     |     1 | 01 |   001 |  0001 | 00001 |\n    // | AD 12    |    12 | 12 |   012 |  0012 | 00012 |\n    // | AD 123   |   123 | 23 |   123 |  0123 | 00123 |\n    // | AD 1234  |  1234 | 34 |  1234 |  1234 | 01234 |\n    // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n    var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)\n\n    var year = signedYear > 0 ? signedYear : 1 - signedYear;\n    return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);\n  },\n  // Month\n  M: function (date, token) {\n    var month = date.getUTCMonth();\n    return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);\n  },\n  // Day of the month\n  d: function (date, token) {\n    return addLeadingZeros(date.getUTCDate(), token.length);\n  },\n  // AM or PM\n  a: function (date, token) {\n    var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';\n\n    switch (token) {\n      case 'a':\n      case 'aa':\n        return dayPeriodEnumValue.toUpperCase();\n\n      case 'aaa':\n        return dayPeriodEnumValue;\n\n      case 'aaaaa':\n        return dayPeriodEnumValue[0];\n\n      case 'aaaa':\n      default:\n        return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';\n    }\n  },\n  // Hour [1-12]\n  h: function (date, token) {\n    return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);\n  },\n  // Hour [0-23]\n  H: function (date, token) {\n    return addLeadingZeros(date.getUTCHours(), token.length);\n  },\n  // Minute\n  m: function (date, token) {\n    return addLeadingZeros(date.getUTCMinutes(), token.length);\n  },\n  // Second\n  s: function (date, token) {\n    return addLeadingZeros(date.getUTCSeconds(), token.length);\n  },\n  // Fraction of second\n  S: function (date, token) {\n    var numberOfDigits = token.length;\n    var milliseconds = date.getUTCMilliseconds();\n    var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));\n    return addLeadingZeros(fractionalSeconds, token.length);\n  }\n};\nexport default formatters;","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function startOfUTCISOWeek(dirtyDate) {\n  requiredArgs(1, arguments);\n  var weekStartsOn = 1;\n  var date = toDate(dirtyDate);\n  var day = date.getUTCDay();\n  var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n  date.setUTCDate(date.getUTCDate() - diff);\n  date.setUTCHours(0, 0, 0, 0);\n  return date;\n}","import toDate from \"../../toDate/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function getUTCISOWeekYear(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var year = date.getUTCFullYear();\n  var fourthOfJanuaryOfNextYear = new Date(0);\n  fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);\n  fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);\n  var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);\n  var fourthOfJanuaryOfThisYear = new Date(0);\n  fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);\n  fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);\n  var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);\n\n  if (date.getTime() >= startOfNextYear.getTime()) {\n    return year + 1;\n  } else if (date.getTime() >= startOfThisYear.getTime()) {\n    return year;\n  } else {\n    return year - 1;\n  }\n}","import toDate from \"../../toDate/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nimport startOfUTCISOWeekYear from \"../startOfUTCISOWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function getUTCISOWeek(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer\n  // because the number of milliseconds in a week is not constant\n  // (e.g. it's different in the week of the daylight saving time clock shift)\n\n  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","import getUTCISOWeekYear from \"../getUTCISOWeekYear/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function startOfUTCISOWeekYear(dirtyDate) {\n  requiredArgs(1, arguments);\n  var year = getUTCISOWeekYear(dirtyDate);\n  var fourthOfJanuary = new Date(0);\n  fourthOfJanuary.setUTCFullYear(year, 0, 4);\n  fourthOfJanuary.setUTCHours(0, 0, 0, 0);\n  var date = startOfUTCISOWeek(fourthOfJanuary);\n  return date;\n}","import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function startOfUTCWeek(dirtyDate, dirtyOptions) {\n  requiredArgs(1, arguments);\n  var options = dirtyOptions || {};\n  var locale = options.locale;\n  var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;\n  var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);\n  var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n\n  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n    throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n  }\n\n  var date = toDate(dirtyDate);\n  var day = date.getUTCDay();\n  var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n  date.setUTCDate(date.getUTCDate() - diff);\n  date.setUTCHours(0, 0, 0, 0);\n  return date;\n}","import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function getUTCWeekYear(dirtyDate, dirtyOptions) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate, dirtyOptions);\n  var year = date.getUTCFullYear();\n  var options = dirtyOptions || {};\n  var locale = options.locale;\n  var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;\n  var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);\n  var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n\n  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n    throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n  }\n\n  var firstWeekOfNextYear = new Date(0);\n  firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);\n  firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);\n  var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, dirtyOptions);\n  var firstWeekOfThisYear = new Date(0);\n  firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);\n  firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);\n  var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, dirtyOptions);\n\n  if (date.getTime() >= startOfNextYear.getTime()) {\n    return year + 1;\n  } else if (date.getTime() >= startOfThisYear.getTime()) {\n    return year;\n  } else {\n    return year - 1;\n  }\n}","import toDate from \"../../toDate/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport startOfUTCWeekYear from \"../startOfUTCWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function getUTCWeek(dirtyDate, options) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer\n  // because the number of milliseconds in a week is not constant\n  // (e.g. it's different in the week of the daylight saving time clock shift)\n\n  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","import toInteger from \"../toInteger/index.js\";\nimport getUTCWeekYear from \"../getUTCWeekYear/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function startOfUTCWeekYear(dirtyDate, dirtyOptions) {\n  requiredArgs(1, arguments);\n  var options = dirtyOptions || {};\n  var locale = options.locale;\n  var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;\n  var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);\n  var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);\n  var year = getUTCWeekYear(dirtyDate, dirtyOptions);\n  var firstWeek = new Date(0);\n  firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);\n  firstWeek.setUTCHours(0, 0, 0, 0);\n  var date = startOfUTCWeek(firstWeek, dirtyOptions);\n  return date;\n}","import lightFormatters from \"../lightFormatters/index.js\";\nimport getUTCDayOfYear from \"../../../_lib/getUTCDayOfYear/index.js\";\nimport getUTCISOWeek from \"../../../_lib/getUTCISOWeek/index.js\";\nimport getUTCISOWeekYear from \"../../../_lib/getUTCISOWeekYear/index.js\";\nimport getUTCWeek from \"../../../_lib/getUTCWeek/index.js\";\nimport getUTCWeekYear from \"../../../_lib/getUTCWeekYear/index.js\";\nimport addLeadingZeros from \"../../addLeadingZeros/index.js\";\nvar dayPeriodEnum = {\n  am: 'am',\n  pm: 'pm',\n  midnight: 'midnight',\n  noon: 'noon',\n  morning: 'morning',\n  afternoon: 'afternoon',\n  evening: 'evening',\n  night: 'night'\n  /*\n   * |     | Unit                           |     | Unit                           |\n   * |-----|--------------------------------|-----|--------------------------------|\n   * |  a  | AM, PM                         |  A* | Milliseconds in day            |\n   * |  b  | AM, PM, noon, midnight         |  B  | Flexible day period            |\n   * |  c  | Stand-alone local day of week  |  C* | Localized hour w/ day period   |\n   * |  d  | Day of month                   |  D  | Day of year                    |\n   * |  e  | Local day of week              |  E  | Day of week                    |\n   * |  f  |                                |  F* | Day of week in month           |\n   * |  g* | Modified Julian day            |  G  | Era                            |\n   * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |\n   * |  i! | ISO day of week                |  I! | ISO week of year               |\n   * |  j* | Localized hour w/ day period   |  J* | Localized hour w/o day period  |\n   * |  k  | Hour [1-24]                    |  K  | Hour [0-11]                    |\n   * |  l* | (deprecated)                   |  L  | Stand-alone month              |\n   * |  m  | Minute                         |  M  | Month                          |\n   * |  n  |                                |  N  |                                |\n   * |  o! | Ordinal number modifier        |  O  | Timezone (GMT)                 |\n   * |  p! | Long localized time            |  P! | Long localized date            |\n   * |  q  | Stand-alone quarter            |  Q  | Quarter                        |\n   * |  r* | Related Gregorian year         |  R! | ISO week-numbering year        |\n   * |  s  | Second                         |  S  | Fraction of second             |\n   * |  t! | Seconds timestamp              |  T! | Milliseconds timestamp         |\n   * |  u  | Extended year                  |  U* | Cyclic year                    |\n   * |  v* | Timezone (generic non-locat.)  |  V* | Timezone (location)            |\n   * |  w  | Local week of year             |  W* | Week of month                  |\n   * |  x  | Timezone (ISO-8601 w/o Z)      |  X  | Timezone (ISO-8601)            |\n   * |  y  | Year (abs)                     |  Y  | Local week-numbering year      |\n   * |  z  | Timezone (specific non-locat.) |  Z* | Timezone (aliases)             |\n   *\n   * Letters marked by * are not implemented but reserved by Unicode standard.\n   *\n   * Letters marked by ! are non-standard, but implemented by date-fns:\n   * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n   * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n   *   i.e. 7 for Sunday, 1 for Monday, etc.\n   * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n   * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n   *   `R` is supposed to be used in conjunction with `I` and `i`\n   *   for universal ISO week-numbering date, whereas\n   *   `Y` is supposed to be used in conjunction with `w` and `e`\n   *   for week-numbering date specific to the locale.\n   * - `P` is long localized date format\n   * - `p` is long localized time format\n   */\n\n};\nvar formatters = {\n  // Era\n  G: function (date, token, localize) {\n    var era = date.getUTCFullYear() > 0 ? 1 : 0;\n\n    switch (token) {\n      // AD, BC\n      case 'G':\n      case 'GG':\n      case 'GGG':\n        return localize.era(era, {\n          width: 'abbreviated'\n        });\n      // A, B\n\n      case 'GGGGG':\n        return localize.era(era, {\n          width: 'narrow'\n        });\n      // Anno Domini, Before Christ\n\n      case 'GGGG':\n      default:\n        return localize.era(era, {\n          width: 'wide'\n        });\n    }\n  },\n  // Year\n  y: function (date, token, localize) {\n    // Ordinal number\n    if (token === 'yo') {\n      var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)\n\n      var year = signedYear > 0 ? signedYear : 1 - signedYear;\n      return localize.ordinalNumber(year, {\n        unit: 'year'\n      });\n    }\n\n    return lightFormatters.y(date, token);\n  },\n  // Local week-numbering year\n  Y: function (date, token, localize, options) {\n    var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)\n\n    var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year\n\n    if (token === 'YY') {\n      var twoDigitYear = weekYear % 100;\n      return addLeadingZeros(twoDigitYear, 2);\n    } // Ordinal number\n\n\n    if (token === 'Yo') {\n      return localize.ordinalNumber(weekYear, {\n        unit: 'year'\n      });\n    } // Padding\n\n\n    return addLeadingZeros(weekYear, token.length);\n  },\n  // ISO week-numbering year\n  R: function (date, token) {\n    var isoWeekYear = getUTCISOWeekYear(date); // Padding\n\n    return addLeadingZeros(isoWeekYear, token.length);\n  },\n  // Extended year. This is a single number designating the year of this calendar system.\n  // The main difference between `y` and `u` localizers are B.C. years:\n  // | Year | `y` | `u` |\n  // |------|-----|-----|\n  // | AC 1 |   1 |   1 |\n  // | BC 1 |   1 |   0 |\n  // | BC 2 |   2 |  -1 |\n  // Also `yy` always returns the last two digits of a year,\n  // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n  u: function (date, token) {\n    var year = date.getUTCFullYear();\n    return addLeadingZeros(year, token.length);\n  },\n  // Quarter\n  Q: function (date, token, localize) {\n    var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\n\n    switch (token) {\n      // 1, 2, 3, 4\n      case 'Q':\n        return String(quarter);\n      // 01, 02, 03, 04\n\n      case 'QQ':\n        return addLeadingZeros(quarter, 2);\n      // 1st, 2nd, 3rd, 4th\n\n      case 'Qo':\n        return localize.ordinalNumber(quarter, {\n          unit: 'quarter'\n        });\n      // Q1, Q2, Q3, Q4\n\n      case 'QQQ':\n        return localize.quarter(quarter, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n\n      case 'QQQQQ':\n        return localize.quarter(quarter, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // 1st quarter, 2nd quarter, ...\n\n      case 'QQQQ':\n      default:\n        return localize.quarter(quarter, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Stand-alone quarter\n  q: function (date, token, localize) {\n    var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\n\n    switch (token) {\n      // 1, 2, 3, 4\n      case 'q':\n        return String(quarter);\n      // 01, 02, 03, 04\n\n      case 'qq':\n        return addLeadingZeros(quarter, 2);\n      // 1st, 2nd, 3rd, 4th\n\n      case 'qo':\n        return localize.ordinalNumber(quarter, {\n          unit: 'quarter'\n        });\n      // Q1, Q2, Q3, Q4\n\n      case 'qqq':\n        return localize.quarter(quarter, {\n          width: 'abbreviated',\n          context: 'standalone'\n        });\n      // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n\n      case 'qqqqq':\n        return localize.quarter(quarter, {\n          width: 'narrow',\n          context: 'standalone'\n        });\n      // 1st quarter, 2nd quarter, ...\n\n      case 'qqqq':\n      default:\n        return localize.quarter(quarter, {\n          width: 'wide',\n          context: 'standalone'\n        });\n    }\n  },\n  // Month\n  M: function (date, token, localize) {\n    var month = date.getUTCMonth();\n\n    switch (token) {\n      case 'M':\n      case 'MM':\n        return lightFormatters.M(date, token);\n      // 1st, 2nd, ..., 12th\n\n      case 'Mo':\n        return localize.ordinalNumber(month + 1, {\n          unit: 'month'\n        });\n      // Jan, Feb, ..., Dec\n\n      case 'MMM':\n        return localize.month(month, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // J, F, ..., D\n\n      case 'MMMMM':\n        return localize.month(month, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // January, February, ..., December\n\n      case 'MMMM':\n      default:\n        return localize.month(month, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Stand-alone month\n  L: function (date, token, localize) {\n    var month = date.getUTCMonth();\n\n    switch (token) {\n      // 1, 2, ..., 12\n      case 'L':\n        return String(month + 1);\n      // 01, 02, ..., 12\n\n      case 'LL':\n        return addLeadingZeros(month + 1, 2);\n      // 1st, 2nd, ..., 12th\n\n      case 'Lo':\n        return localize.ordinalNumber(month + 1, {\n          unit: 'month'\n        });\n      // Jan, Feb, ..., Dec\n\n      case 'LLL':\n        return localize.month(month, {\n          width: 'abbreviated',\n          context: 'standalone'\n        });\n      // J, F, ..., D\n\n      case 'LLLLL':\n        return localize.month(month, {\n          width: 'narrow',\n          context: 'standalone'\n        });\n      // January, February, ..., December\n\n      case 'LLLL':\n      default:\n        return localize.month(month, {\n          width: 'wide',\n          context: 'standalone'\n        });\n    }\n  },\n  // Local week of year\n  w: function (date, token, localize, options) {\n    var week = getUTCWeek(date, options);\n\n    if (token === 'wo') {\n      return localize.ordinalNumber(week, {\n        unit: 'week'\n      });\n    }\n\n    return addLeadingZeros(week, token.length);\n  },\n  // ISO week of year\n  I: function (date, token, localize) {\n    var isoWeek = getUTCISOWeek(date);\n\n    if (token === 'Io') {\n      return localize.ordinalNumber(isoWeek, {\n        unit: 'week'\n      });\n    }\n\n    return addLeadingZeros(isoWeek, token.length);\n  },\n  // Day of the month\n  d: function (date, token, localize) {\n    if (token === 'do') {\n      return localize.ordinalNumber(date.getUTCDate(), {\n        unit: 'date'\n      });\n    }\n\n    return lightFormatters.d(date, token);\n  },\n  // Day of year\n  D: function (date, token, localize) {\n    var dayOfYear = getUTCDayOfYear(date);\n\n    if (token === 'Do') {\n      return localize.ordinalNumber(dayOfYear, {\n        unit: 'dayOfYear'\n      });\n    }\n\n    return addLeadingZeros(dayOfYear, token.length);\n  },\n  // Day of week\n  E: function (date, token, localize) {\n    var dayOfWeek = date.getUTCDay();\n\n    switch (token) {\n      // Tue\n      case 'E':\n      case 'EE':\n      case 'EEE':\n        return localize.day(dayOfWeek, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // T\n\n      case 'EEEEE':\n        return localize.day(dayOfWeek, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // Tu\n\n      case 'EEEEEE':\n        return localize.day(dayOfWeek, {\n          width: 'short',\n          context: 'formatting'\n        });\n      // Tuesday\n\n      case 'EEEE':\n      default:\n        return localize.day(dayOfWeek, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Local day of week\n  e: function (date, token, localize, options) {\n    var dayOfWeek = date.getUTCDay();\n    var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n\n    switch (token) {\n      // Numerical value (Nth day of week with current locale or weekStartsOn)\n      case 'e':\n        return String(localDayOfWeek);\n      // Padded numerical value\n\n      case 'ee':\n        return addLeadingZeros(localDayOfWeek, 2);\n      // 1st, 2nd, ..., 7th\n\n      case 'eo':\n        return localize.ordinalNumber(localDayOfWeek, {\n          unit: 'day'\n        });\n\n      case 'eee':\n        return localize.day(dayOfWeek, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // T\n\n      case 'eeeee':\n        return localize.day(dayOfWeek, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // Tu\n\n      case 'eeeeee':\n        return localize.day(dayOfWeek, {\n          width: 'short',\n          context: 'formatting'\n        });\n      // Tuesday\n\n      case 'eeee':\n      default:\n        return localize.day(dayOfWeek, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Stand-alone local day of week\n  c: function (date, token, localize, options) {\n    var dayOfWeek = date.getUTCDay();\n    var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n\n    switch (token) {\n      // Numerical value (same as in `e`)\n      case 'c':\n        return String(localDayOfWeek);\n      // Padded numerical value\n\n      case 'cc':\n        return addLeadingZeros(localDayOfWeek, token.length);\n      // 1st, 2nd, ..., 7th\n\n      case 'co':\n        return localize.ordinalNumber(localDayOfWeek, {\n          unit: 'day'\n        });\n\n      case 'ccc':\n        return localize.day(dayOfWeek, {\n          width: 'abbreviated',\n          context: 'standalone'\n        });\n      // T\n\n      case 'ccccc':\n        return localize.day(dayOfWeek, {\n          width: 'narrow',\n          context: 'standalone'\n        });\n      // Tu\n\n      case 'cccccc':\n        return localize.day(dayOfWeek, {\n          width: 'short',\n          context: 'standalone'\n        });\n      // Tuesday\n\n      case 'cccc':\n      default:\n        return localize.day(dayOfWeek, {\n          width: 'wide',\n          context: 'standalone'\n        });\n    }\n  },\n  // ISO day of week\n  i: function (date, token, localize) {\n    var dayOfWeek = date.getUTCDay();\n    var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n\n    switch (token) {\n      // 2\n      case 'i':\n        return String(isoDayOfWeek);\n      // 02\n\n      case 'ii':\n        return addLeadingZeros(isoDayOfWeek, token.length);\n      // 2nd\n\n      case 'io':\n        return localize.ordinalNumber(isoDayOfWeek, {\n          unit: 'day'\n        });\n      // Tue\n\n      case 'iii':\n        return localize.day(dayOfWeek, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // T\n\n      case 'iiiii':\n        return localize.day(dayOfWeek, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // Tu\n\n      case 'iiiiii':\n        return localize.day(dayOfWeek, {\n          width: 'short',\n          context: 'formatting'\n        });\n      // Tuesday\n\n      case 'iiii':\n      default:\n        return localize.day(dayOfWeek, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // AM or PM\n  a: function (date, token, localize) {\n    var hours = date.getUTCHours();\n    var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\n\n    switch (token) {\n      case 'a':\n      case 'aa':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n\n      case 'aaa':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        }).toLowerCase();\n\n      case 'aaaaa':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n\n      case 'aaaa':\n      default:\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // AM, PM, midnight, noon\n  b: function (date, token, localize) {\n    var hours = date.getUTCHours();\n    var dayPeriodEnumValue;\n\n    if (hours === 12) {\n      dayPeriodEnumValue = dayPeriodEnum.noon;\n    } else if (hours === 0) {\n      dayPeriodEnumValue = dayPeriodEnum.midnight;\n    } else {\n      dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\n    }\n\n    switch (token) {\n      case 'b':\n      case 'bb':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n\n      case 'bbb':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        }).toLowerCase();\n\n      case 'bbbbb':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n\n      case 'bbbb':\n      default:\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // in the morning, in the afternoon, in the evening, at night\n  B: function (date, token, localize) {\n    var hours = date.getUTCHours();\n    var dayPeriodEnumValue;\n\n    if (hours >= 17) {\n      dayPeriodEnumValue = dayPeriodEnum.evening;\n    } else if (hours >= 12) {\n      dayPeriodEnumValue = dayPeriodEnum.afternoon;\n    } else if (hours >= 4) {\n      dayPeriodEnumValue = dayPeriodEnum.morning;\n    } else {\n      dayPeriodEnumValue = dayPeriodEnum.night;\n    }\n\n    switch (token) {\n      case 'B':\n      case 'BB':\n      case 'BBB':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n\n      case 'BBBBB':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n\n      case 'BBBB':\n      default:\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Hour [1-12]\n  h: function (date, token, localize) {\n    if (token === 'ho') {\n      var hours = date.getUTCHours() % 12;\n      if (hours === 0) hours = 12;\n      return localize.ordinalNumber(hours, {\n        unit: 'hour'\n      });\n    }\n\n    return lightFormatters.h(date, token);\n  },\n  // Hour [0-23]\n  H: function (date, token, localize) {\n    if (token === 'Ho') {\n      return localize.ordinalNumber(date.getUTCHours(), {\n        unit: 'hour'\n      });\n    }\n\n    return lightFormatters.H(date, token);\n  },\n  // Hour [0-11]\n  K: function (date, token, localize) {\n    var hours = date.getUTCHours() % 12;\n\n    if (token === 'Ko') {\n      return localize.ordinalNumber(hours, {\n        unit: 'hour'\n      });\n    }\n\n    return addLeadingZeros(hours, token.length);\n  },\n  // Hour [1-24]\n  k: function (date, token, localize) {\n    var hours = date.getUTCHours();\n    if (hours === 0) hours = 24;\n\n    if (token === 'ko') {\n      return localize.ordinalNumber(hours, {\n        unit: 'hour'\n      });\n    }\n\n    return addLeadingZeros(hours, token.length);\n  },\n  // Minute\n  m: function (date, token, localize) {\n    if (token === 'mo') {\n      return localize.ordinalNumber(date.getUTCMinutes(), {\n        unit: 'minute'\n      });\n    }\n\n    return lightFormatters.m(date, token);\n  },\n  // Second\n  s: function (date, token, localize) {\n    if (token === 'so') {\n      return localize.ordinalNumber(date.getUTCSeconds(), {\n        unit: 'second'\n      });\n    }\n\n    return lightFormatters.s(date, token);\n  },\n  // Fraction of second\n  S: function (date, token) {\n    return lightFormatters.S(date, token);\n  },\n  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n  X: function (date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timezoneOffset = originalDate.getTimezoneOffset();\n\n    if (timezoneOffset === 0) {\n      return 'Z';\n    }\n\n    switch (token) {\n      // Hours and optional minutes\n      case 'X':\n        return formatTimezoneWithOptionalMinutes(timezoneOffset);\n      // Hours, minutes and optional seconds without `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `XX`\n\n      case 'XXXX':\n      case 'XX':\n        // Hours and minutes without `:` delimiter\n        return formatTimezone(timezoneOffset);\n      // Hours, minutes and optional seconds with `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `XXX`\n\n      case 'XXXXX':\n      case 'XXX': // Hours and minutes with `:` delimiter\n\n      default:\n        return formatTimezone(timezoneOffset, ':');\n    }\n  },\n  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n  x: function (date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timezoneOffset = originalDate.getTimezoneOffset();\n\n    switch (token) {\n      // Hours and optional minutes\n      case 'x':\n        return formatTimezoneWithOptionalMinutes(timezoneOffset);\n      // Hours, minutes and optional seconds without `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `xx`\n\n      case 'xxxx':\n      case 'xx':\n        // Hours and minutes without `:` delimiter\n        return formatTimezone(timezoneOffset);\n      // Hours, minutes and optional seconds with `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `xxx`\n\n      case 'xxxxx':\n      case 'xxx': // Hours and minutes with `:` delimiter\n\n      default:\n        return formatTimezone(timezoneOffset, ':');\n    }\n  },\n  // Timezone (GMT)\n  O: function (date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timezoneOffset = originalDate.getTimezoneOffset();\n\n    switch (token) {\n      // Short\n      case 'O':\n      case 'OO':\n      case 'OOO':\n        return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n      // Long\n\n      case 'OOOO':\n      default:\n        return 'GMT' + formatTimezone(timezoneOffset, ':');\n    }\n  },\n  // Timezone (specific non-location)\n  z: function (date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timezoneOffset = originalDate.getTimezoneOffset();\n\n    switch (token) {\n      // Short\n      case 'z':\n      case 'zz':\n      case 'zzz':\n        return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n      // Long\n\n      case 'zzzz':\n      default:\n        return 'GMT' + formatTimezone(timezoneOffset, ':');\n    }\n  },\n  // Seconds timestamp\n  t: function (date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timestamp = Math.floor(originalDate.getTime() / 1000);\n    return addLeadingZeros(timestamp, token.length);\n  },\n  // Milliseconds timestamp\n  T: function (date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timestamp = originalDate.getTime();\n    return addLeadingZeros(timestamp, token.length);\n  }\n};\n\nfunction formatTimezoneShort(offset, dirtyDelimiter) {\n  var sign = offset > 0 ? '-' : '+';\n  var absOffset = Math.abs(offset);\n  var hours = Math.floor(absOffset / 60);\n  var minutes = absOffset % 60;\n\n  if (minutes === 0) {\n    return sign + String(hours);\n  }\n\n  var delimiter = dirtyDelimiter || '';\n  return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\n\nfunction formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {\n  if (offset % 60 === 0) {\n    var sign = offset > 0 ? '-' : '+';\n    return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n  }\n\n  return formatTimezone(offset, dirtyDelimiter);\n}\n\nfunction formatTimezone(offset, dirtyDelimiter) {\n  var delimiter = dirtyDelimiter || '';\n  var sign = offset > 0 ? '-' : '+';\n  var absOffset = Math.abs(offset);\n  var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);\n  var minutes = addLeadingZeros(absOffset % 60, 2);\n  return sign + hours + delimiter + minutes;\n}\n\nexport default formatters;","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function getUTCDayOfYear(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var timestamp = date.getTime();\n  date.setUTCMonth(0, 1);\n  date.setUTCHours(0, 0, 0, 0);\n  var startOfYearTimestamp = date.getTime();\n  var difference = timestamp - startOfYearTimestamp;\n  return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;\n}","function dateLongFormatter(pattern, formatLong) {\n  switch (pattern) {\n    case 'P':\n      return formatLong.date({\n        width: 'short'\n      });\n\n    case 'PP':\n      return formatLong.date({\n        width: 'medium'\n      });\n\n    case 'PPP':\n      return formatLong.date({\n        width: 'long'\n      });\n\n    case 'PPPP':\n    default:\n      return formatLong.date({\n        width: 'full'\n      });\n  }\n}\n\nfunction timeLongFormatter(pattern, formatLong) {\n  switch (pattern) {\n    case 'p':\n      return formatLong.time({\n        width: 'short'\n      });\n\n    case 'pp':\n      return formatLong.time({\n        width: 'medium'\n      });\n\n    case 'ppp':\n      return formatLong.time({\n        width: 'long'\n      });\n\n    case 'pppp':\n    default:\n      return formatLong.time({\n        width: 'full'\n      });\n  }\n}\n\nfunction dateTimeLongFormatter(pattern, formatLong) {\n  var matchResult = pattern.match(/(P+)(p+)?/);\n  var datePattern = matchResult[1];\n  var timePattern = matchResult[2];\n\n  if (!timePattern) {\n    return dateLongFormatter(pattern, formatLong);\n  }\n\n  var dateTimeFormat;\n\n  switch (datePattern) {\n    case 'P':\n      dateTimeFormat = formatLong.dateTime({\n        width: 'short'\n      });\n      break;\n\n    case 'PP':\n      dateTimeFormat = formatLong.dateTime({\n        width: 'medium'\n      });\n      break;\n\n    case 'PPP':\n      dateTimeFormat = formatLong.dateTime({\n        width: 'long'\n      });\n      break;\n\n    case 'PPPP':\n    default:\n      dateTimeFormat = formatLong.dateTime({\n        width: 'full'\n      });\n      break;\n  }\n\n  return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));\n}\n\nvar longFormatters = {\n  p: timeLongFormatter,\n  P: dateTimeLongFormatter\n};\nexport default longFormatters;","var protectedDayOfYearTokens = ['D', 'DD'];\nvar protectedWeekYearTokens = ['YY', 'YYYY'];\nexport function isProtectedDayOfYearToken(token) {\n  return protectedDayOfYearTokens.indexOf(token) !== -1;\n}\nexport function isProtectedWeekYearToken(token) {\n  return protectedWeekYearTokens.indexOf(token) !== -1;\n}\nexport function throwProtectedError(token, format, input) {\n  if (token === 'YYYY') {\n    throw new RangeError(\"Use `yyyy` instead of `YYYY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://git.io/fxCyr\"));\n  } else if (token === 'YY') {\n    throw new RangeError(\"Use `yy` instead of `YY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://git.io/fxCyr\"));\n  } else if (token === 'D') {\n    throw new RangeError(\"Use `d` instead of `D` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://git.io/fxCyr\"));\n  } else if (token === 'DD') {\n    throw new RangeError(\"Use `dd` instead of `DD` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://git.io/fxCyr\"));\n  }\n}","import isValid from \"../isValid/index.js\";\nimport defaultLocale from \"../locale/en-US/index.js\";\nimport subMilliseconds from \"../subMilliseconds/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport formatters from \"../_lib/format/formatters/index.js\";\nimport longFormatters from \"../_lib/format/longFormatters/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from \"../_lib/protectedTokens/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\"; // This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n//   (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n//   except a single quote symbol, which ends the sequence.\n//   Two quote characters do not end the sequence.\n//   If there is no matching single quote\n//   then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\n\nvar formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\n\nvar longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\nvar escapedStringRegExp = /^'([^]*?)'?$/;\nvar doubleQuoteRegExp = /''/g;\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n/**\n * @name format\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://git.io/fxCyr\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit                            | Pattern | Result examples                   | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era                             | G..GGG  | AD, BC                            |       |\n * |                                 | GGGG    | Anno Domini, Before Christ        | 2     |\n * |                                 | GGGGG   | A, B                              |       |\n * | Calendar year                   | y       | 44, 1, 1900, 2017                 | 5     |\n * |                                 | yo      | 44th, 1st, 0th, 17th              | 5,7   |\n * |                                 | yy      | 44, 01, 00, 17                    | 5     |\n * |                                 | yyy     | 044, 001, 1900, 2017              | 5     |\n * |                                 | yyyy    | 0044, 0001, 1900, 2017            | 5     |\n * |                                 | yyyyy   | ...                               | 3,5   |\n * | Local week-numbering year       | Y       | 44, 1, 1900, 2017                 | 5     |\n * |                                 | Yo      | 44th, 1st, 1900th, 2017th         | 5,7   |\n * |                                 | YY      | 44, 01, 00, 17                    | 5,8   |\n * |                                 | YYY     | 044, 001, 1900, 2017              | 5     |\n * |                                 | YYYY    | 0044, 0001, 1900, 2017            | 5,8   |\n * |                                 | YYYYY   | ...                               | 3,5   |\n * | ISO week-numbering year         | R       | -43, 0, 1, 1900, 2017             | 5,7   |\n * |                                 | RR      | -43, 00, 01, 1900, 2017           | 5,7   |\n * |                                 | RRR     | -043, 000, 001, 1900, 2017        | 5,7   |\n * |                                 | RRRR    | -0043, 0000, 0001, 1900, 2017     | 5,7   |\n * |                                 | RRRRR   | ...                               | 3,5,7 |\n * | Extended year                   | u       | -43, 0, 1, 1900, 2017             | 5     |\n * |                                 | uu      | -43, 01, 1900, 2017               | 5     |\n * |                                 | uuu     | -043, 001, 1900, 2017             | 5     |\n * |                                 | uuuu    | -0043, 0001, 1900, 2017           | 5     |\n * |                                 | uuuuu   | ...                               | 3,5   |\n * | Quarter (formatting)            | Q       | 1, 2, 3, 4                        |       |\n * |                                 | Qo      | 1st, 2nd, 3rd, 4th                | 7     |\n * |                                 | QQ      | 01, 02, 03, 04                    |       |\n * |                                 | QQQ     | Q1, Q2, Q3, Q4                    |       |\n * |                                 | QQQQ    | 1st quarter, 2nd quarter, ...     | 2     |\n * |                                 | QQQQQ   | 1, 2, 3, 4                        | 4     |\n * | Quarter (stand-alone)           | q       | 1, 2, 3, 4                        |       |\n * |                                 | qo      | 1st, 2nd, 3rd, 4th                | 7     |\n * |                                 | qq      | 01, 02, 03, 04                    |       |\n * |                                 | qqq     | Q1, Q2, Q3, Q4                    |       |\n * |                                 | qqqq    | 1st quarter, 2nd quarter, ...     | 2     |\n * |                                 | qqqqq   | 1, 2, 3, 4                        | 4     |\n * | Month (formatting)              | M       | 1, 2, ..., 12                     |       |\n * |                                 | Mo      | 1st, 2nd, ..., 12th               | 7     |\n * |                                 | MM      | 01, 02, ..., 12                   |       |\n * |                                 | MMM     | Jan, Feb, ..., Dec                |       |\n * |                                 | MMMM    | January, February, ..., December  | 2     |\n * |                                 | MMMMM   | J, F, ..., D                      |       |\n * | Month (stand-alone)             | L       | 1, 2, ..., 12                     |       |\n * |                                 | Lo      | 1st, 2nd, ..., 12th               | 7     |\n * |                                 | LL      | 01, 02, ..., 12                   |       |\n * |                                 | LLL     | Jan, Feb, ..., Dec                |       |\n * |                                 | LLLL    | January, February, ..., December  | 2     |\n * |                                 | LLLLL   | J, F, ..., D                      |       |\n * | Local week of year              | w       | 1, 2, ..., 53                     |       |\n * |                                 | wo      | 1st, 2nd, ..., 53th               | 7     |\n * |                                 | ww      | 01, 02, ..., 53                   |       |\n * | ISO week of year                | I       | 1, 2, ..., 53                     | 7     |\n * |                                 | Io      | 1st, 2nd, ..., 53th               | 7     |\n * |                                 | II      | 01, 02, ..., 53                   | 7     |\n * | Day of month                    | d       | 1, 2, ..., 31                     |       |\n * |                                 | do      | 1st, 2nd, ..., 31st               | 7     |\n * |                                 | dd      | 01, 02, ..., 31                   |       |\n * | Day of year                     | D       | 1, 2, ..., 365, 366               | 9     |\n * |                                 | Do      | 1st, 2nd, ..., 365th, 366th       | 7     |\n * |                                 | DD      | 01, 02, ..., 365, 366             | 9     |\n * |                                 | DDD     | 001, 002, ..., 365, 366           |       |\n * |                                 | DDDD    | ...                               | 3     |\n * | Day of week (formatting)        | E..EEE  | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 | EEEE    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 | EEEEE   | M, T, W, T, F, S, S               |       |\n * |                                 | EEEEEE  | Mo, Tu, We, Th, Fr, Su, Sa        |       |\n * | ISO day of week (formatting)    | i       | 1, 2, 3, ..., 7                   | 7     |\n * |                                 | io      | 1st, 2nd, ..., 7th                | 7     |\n * |                                 | ii      | 01, 02, ..., 07                   | 7     |\n * |                                 | iii     | Mon, Tue, Wed, ..., Sun           | 7     |\n * |                                 | iiii    | Monday, Tuesday, ..., Sunday      | 2,7   |\n * |                                 | iiiii   | M, T, W, T, F, S, S               | 7     |\n * |                                 | iiiiii  | Mo, Tu, We, Th, Fr, Su, Sa        | 7     |\n * | Local day of week (formatting)  | e       | 2, 3, 4, ..., 1                   |       |\n * |                                 | eo      | 2nd, 3rd, ..., 1st                | 7     |\n * |                                 | ee      | 02, 03, ..., 01                   |       |\n * |                                 | eee     | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 | eeee    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 | eeeee   | M, T, W, T, F, S, S               |       |\n * |                                 | eeeeee  | Mo, Tu, We, Th, Fr, Su, Sa        |       |\n * | Local day of week (stand-alone) | c       | 2, 3, 4, ..., 1                   |       |\n * |                                 | co      | 2nd, 3rd, ..., 1st                | 7     |\n * |                                 | cc      | 02, 03, ..., 01                   |       |\n * |                                 | ccc     | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 | cccc    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 | ccccc   | M, T, W, T, F, S, S               |       |\n * |                                 | cccccc  | Mo, Tu, We, Th, Fr, Su, Sa        |       |\n * | AM, PM                          | a..aa   | AM, PM                            |       |\n * |                                 | aaa     | am, pm                            |       |\n * |                                 | aaaa    | a.m., p.m.                        | 2     |\n * |                                 | aaaaa   | a, p                              |       |\n * | AM, PM, noon, midnight          | b..bb   | AM, PM, noon, midnight            |       |\n * |                                 | bbb     | am, pm, noon, midnight            |       |\n * |                                 | bbbb    | a.m., p.m., noon, midnight        | 2     |\n * |                                 | bbbbb   | a, p, n, mi                       |       |\n * | Flexible day period             | B..BBB  | at night, in the morning, ...     |       |\n * |                                 | BBBB    | at night, in the morning, ...     | 2     |\n * |                                 | BBBBB   | at night, in the morning, ...     |       |\n * | Hour [1-12]                     | h       | 1, 2, ..., 11, 12                 |       |\n * |                                 | ho      | 1st, 2nd, ..., 11th, 12th         | 7     |\n * |                                 | hh      | 01, 02, ..., 11, 12               |       |\n * | Hour [0-23]                     | H       | 0, 1, 2, ..., 23                  |       |\n * |                                 | Ho      | 0th, 1st, 2nd, ..., 23rd          | 7     |\n * |                                 | HH      | 00, 01, 02, ..., 23               |       |\n * | Hour [0-11]                     | K       | 1, 2, ..., 11, 0                  |       |\n * |                                 | Ko      | 1st, 2nd, ..., 11th, 0th          | 7     |\n * |                                 | KK      | 01, 02, ..., 11, 00               |       |\n * | Hour [1-24]                     | k       | 24, 1, 2, ..., 23                 |       |\n * |                                 | ko      | 24th, 1st, 2nd, ..., 23rd         | 7     |\n * |                                 | kk      | 24, 01, 02, ..., 23               |       |\n * | Minute                          | m       | 0, 1, ..., 59                     |       |\n * |                                 | mo      | 0th, 1st, ..., 59th               | 7     |\n * |                                 | mm      | 00, 01, ..., 59                   |       |\n * | Second                          | s       | 0, 1, ..., 59                     |       |\n * |                                 | so      | 0th, 1st, ..., 59th               | 7     |\n * |                                 | ss      | 00, 01, ..., 59                   |       |\n * | Fraction of second              | S       | 0, 1, ..., 9                      |       |\n * |                                 | SS      | 00, 01, ..., 99                   |       |\n * |                                 | SSS     | 000, 001, ..., 999                |       |\n * |                                 | SSSS    | ...                               | 3     |\n * | Timezone (ISO-8601 w/ Z)        | X       | -08, +0530, Z                     |       |\n * |                                 | XX      | -0800, +0530, Z                   |       |\n * |                                 | XXX     | -08:00, +05:30, Z                 |       |\n * |                                 | XXXX    | -0800, +0530, Z, +123456          | 2     |\n * |                                 | XXXXX   | -08:00, +05:30, Z, +12:34:56      |       |\n * | Timezone (ISO-8601 w/o Z)       | x       | -08, +0530, +00                   |       |\n * |                                 | xx      | -0800, +0530, +0000               |       |\n * |                                 | xxx     | -08:00, +05:30, +00:00            | 2     |\n * |                                 | xxxx    | -0800, +0530, +0000, +123456      |       |\n * |                                 | xxxxx   | -08:00, +05:30, +00:00, +12:34:56 |       |\n * | Timezone (GMT)                  | O...OOO | GMT-8, GMT+5:30, GMT+0            |       |\n * |                                 | OOOO    | GMT-08:00, GMT+05:30, GMT+00:00   | 2     |\n * | Timezone (specific non-locat.)  | z...zzz | GMT-8, GMT+5:30, GMT+0            | 6     |\n * |                                 | zzzz    | GMT-08:00, GMT+05:30, GMT+00:00   | 2,6   |\n * | Seconds timestamp               | t       | 512969520                         | 7     |\n * |                                 | tt      | ...                               | 3,7   |\n * | Milliseconds timestamp          | T       | 512969520900                      | 7     |\n * |                                 | TT      | ...                               | 3,7   |\n * | Long localized date             | P       | 04/29/1453                        | 7     |\n * |                                 | PP      | Apr 29, 1453                      | 7     |\n * |                                 | PPP     | April 29th, 1453                  | 7     |\n * |                                 | PPPP    | Friday, April 29th, 1453          | 2,7   |\n * | Long localized time             | p       | 12:00 AM                          | 7     |\n * |                                 | pp      | 12:00:00 AM                       | 7     |\n * |                                 | ppp     | 12:00:00 AM GMT+2                 | 7     |\n * |                                 | pppp    | 12:00:00 AM GMT+02:00             | 2,7   |\n * | Combination of date and time    | Pp      | 04/29/1453, 12:00 AM              | 7     |\n * |                                 | PPpp    | Apr 29, 1453, 12:00:00 AM         | 7     |\n * |                                 | PPPppp  | April 29th, 1453 at ...           | 7     |\n * |                                 | PPPPpppp| Friday, April 29th, 1453 at ...   | 2,7   |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n *    are the same as \"stand-alone\" units, but are different in some languages.\n *    \"Formatting\" units are declined according to the rules of the language\n *    in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n *    `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n *    `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n *    the single quote characters (see below).\n *    If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n *    the output will be the same as default pattern for this unit, usually\n *    the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n *    are marked with \"2\" in the last column of the table.\n *\n *    `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n *    The output will be padded with zeros to match the length of the pattern.\n *\n *    `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n *    These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n *    | Year | `y` | `u` |\n *    |------|-----|-----|\n *    | AC 1 |   1 |   1 |\n *    | BC 1 |   1 |   0 |\n *    | BC 2 |   2 |  -1 |\n *\n *    Also `yy` always returns the last two digits of a year,\n *    while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n *    | Year | `yy` | `uu` |\n *    |------|------|------|\n *    | 1    |   01 |   01 |\n *    | 14   |   14 |   14 |\n *    | 376  |   76 |  376 |\n *    | 1453 |   53 | 1453 |\n *\n *    The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n *    except local week-numbering years are dependent on `options.weekStartsOn`\n *    and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}\n *    and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n *    so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n *    - `i`: ISO day of week\n *    - `I`: ISO week of year\n *    - `R`: ISO week-numbering year\n *    - `t`: seconds timestamp\n *    - `T`: milliseconds timestamp\n *    - `o`: ordinal number modifier\n *    - `P`: long localized date\n *    - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n *    You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr\n *\n * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n *    You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The second argument is now required for the sake of explicitness.\n *\n *   ```javascript\n *   // Before v2.0.0\n *   format(new Date(2016, 0, 1))\n *\n *   // v2.0.0 onward\n *   format(new Date(2016, 0, 1), \"yyyy-MM-dd'T'HH:mm:ss.SSSxxx\")\n *   ```\n *\n * - New format string API for `format` function\n *   which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).\n *   See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.\n *\n * - Characters are now escaped using single quote symbols (`'`) instead of square brackets.\n *\n * @param {Date|Number} date - the original date\n * @param {String} format - the string of tokens\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\n *   see: https://git.io/fxCyr\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\n *   see: https://git.io/fxCyr\n * @returns {String} the formatted date string\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `localize` property\n * @throws {RangeError} `options.locale` must contain `formatLong` property\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * var result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * var result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n *   locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * var result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\n\nexport default function format(dirtyDate, dirtyFormatStr, dirtyOptions) {\n  requiredArgs(2, arguments);\n  var formatStr = String(dirtyFormatStr);\n  var options = dirtyOptions || {};\n  var locale = options.locale || defaultLocale;\n  var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;\n  var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);\n  var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n\n  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n    throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n  }\n\n  var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;\n  var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);\n  var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n\n  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n    throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n  }\n\n  if (!locale.localize) {\n    throw new RangeError('locale must contain localize property');\n  }\n\n  if (!locale.formatLong) {\n    throw new RangeError('locale must contain formatLong property');\n  }\n\n  var originalDate = toDate(dirtyDate);\n\n  if (!isValid(originalDate)) {\n    throw new RangeError('Invalid time value');\n  } // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n  // This ensures that when UTC functions will be implemented, locales will be compatible with them.\n  // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376\n\n\n  var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);\n  var utcDate = subMilliseconds(originalDate, timezoneOffset);\n  var formatterOptions = {\n    firstWeekContainsDate: firstWeekContainsDate,\n    weekStartsOn: weekStartsOn,\n    locale: locale,\n    _originalDate: originalDate\n  };\n  var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {\n    var firstCharacter = substring[0];\n\n    if (firstCharacter === 'p' || firstCharacter === 'P') {\n      var longFormatter = longFormatters[firstCharacter];\n      return longFormatter(substring, locale.formatLong, formatterOptions);\n    }\n\n    return substring;\n  }).join('').match(formattingTokensRegExp).map(function (substring) {\n    // Replace two single quote characters with one single quote character\n    if (substring === \"''\") {\n      return \"'\";\n    }\n\n    var firstCharacter = substring[0];\n\n    if (firstCharacter === \"'\") {\n      return cleanEscapedString(substring);\n    }\n\n    var formatter = formatters[firstCharacter];\n\n    if (formatter) {\n      if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(substring)) {\n        throwProtectedError(substring, dirtyFormatStr, dirtyDate);\n      }\n\n      if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(substring)) {\n        throwProtectedError(substring, dirtyFormatStr, dirtyDate);\n      }\n\n      return formatter(utcDate, substring, locale.localize, formatterOptions);\n    }\n\n    if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n      throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\n    }\n\n    return substring;\n  }).join('');\n  return result;\n}\n\nfunction cleanEscapedString(input) {\n  return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - Now `isValid` doesn't throw an exception\n *   if the first argument is not an instance of Date.\n *   Instead, argument is converted beforehand using `toDate`.\n *\n *   Examples:\n *\n *   | `isValid` argument        | Before v2.0.0 | v2.0.0 onward |\n *   |---------------------------|---------------|---------------|\n *   | `new Date()`              | `true`        | `true`        |\n *   | `new Date('2016-01-01')`  | `true`        | `true`        |\n *   | `new Date('')`            | `false`       | `false`       |\n *   | `new Date(1488370835081)` | `true`        | `true`        |\n *   | `new Date(NaN)`           | `false`       | `false`       |\n *   | `'2016-01-01'`            | `TypeError`   | `false`       |\n *   | `''`                      | `TypeError`   | `false`       |\n *   | `1488370835081`           | `TypeError`   | `true`        |\n *   | `NaN`                     | `TypeError`   | `false`       |\n *\n *   We introduce this change to make *date-fns* consistent with ECMAScript behavior\n *   that try to coerce arguments to the expected type\n *   (which is also the case with other *date-fns* functions).\n *\n * @param {*} date - the date to check\n * @returns {Boolean} the date is valid\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // For the valid date:\n * var result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertable into a date:\n * var result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * var result = isValid(new Date(''))\n * //=> false\n */\n\nexport default function isValid(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  return !isNaN(date);\n}","/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport default function getTimezoneOffsetInMilliseconds(date) {\n  var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));\n  utcDate.setUTCFullYear(date.getFullYear());\n  return date.getTime() - utcDate.getTime();\n}","import { parseISO, format } from 'date-fns';\nimport { IOrderNarvarShipment } from 'src/api/OrderTrackingApiSdk';\nimport { INVALID_DATE } from './Constants';\n\nexport const formatDate = (originalDate: string, dateFormatPattern: string) => {\n    const date = parseISO(originalDate);\n    let dateStr = '';\n    if (date.toString() !== INVALID_DATE) {\n        try {\n            dateStr = format(date, dateFormatPattern);\n        } catch {\n            dateStr = '';\n        }\n    }\n\n    return dateStr;\n};\n\nexport const formatOrderDate = (formatedDate: string, datetimeFormatPattern: string) => {\n    if (formatedDate) {\n        const dateStr = format(new Date(formatedDate), datetimeFormatPattern);\n\n        return dateStr;\n    }\n};\n\nexport const getUpdatedOrder = (inputArray: IOrderNarvarShipment[]) => {\n    const today = new Date().getTime();\n    const result = inputArray.sort((a, b) => {\n        const diffA = new Date(a.status_timestamp).getTime() - today;\n        const diffB = new Date(b.status_timestamp).getTime() - today;\n\n        return diffB - diffA;\n    })[0];\n\n    return result;\n};\n","import { computed, observable } from 'mobx';\nimport { ITranslationsCollection } from '@estee/elc-service';\nimport {\n    IBreadCrumbsDelimiter,\n    IOrderDetailStep,\n    IOrderStatusCode,\n    IOrderStatusLabelMap,\n    OrderStatusType\n} from './Config';\nimport { PROGRESS_MILESTONES_BY_STATUS } from '../../utils/Constants';\nimport { IShipmentItem } from '../../../api/OrderTrackingApiSdk';\n\ninterface IGetOrderStatusInfoMap {\n    deliveryMethodName?: string;\n    trackingUrl?: string;\n    shippedDateFormattedString?: string;\n}\n\n// Handle order status related mapping & calculation basing on order status code from api\nexport class OrderStatus {\n    @observable public orderStatusType: OrderStatusType;\n    @observable public status?: string;\n    @observable public explanation?: string;\n    @observable public description?: string;\n    @observable public subDescription?: string;\n    @observable public progressLabels: string[] = [];\n    @observable public isVerticalTMOProgressBarDisplay: boolean;\n    @observable public breadCrumbDelimiter?: IBreadCrumbsDelimiter;\n    @observable public statusHeader?: string;\n\n    // Setting current step to -1 means no step is active/completed\n    @observable public progressStep: number = -1;\n    @observable public progressItems: { completed: boolean }[] = [];\n    @observable public isShipped: boolean = false;\n    @observable public formattedDeliveredDate: string;\n    @observable public formatStatusTimestamp: string;\n    @observable public isPartialShipment: boolean;\n    @observable public productDetails: IShipmentItem[];\n    @observable public stepsDetails: IOrderDetailStep[] = [];\n\n    @observable private orderStatusCode: string;\n    @observable private translations: ITranslationsCollection;\n    // Order status codes from configuration\n    @observable private orderStatusCodeMap: IOrderStatusCode[];\n    @observable private orderStatusLabelMap: IOrderStatusLabelMap[];\n    @observable private isReturn: boolean;\n\n    constructor(\n        orderStatusCode: string,\n        orderStatuses: IOrderStatusCode[] = [],\n        translations: ITranslationsCollection,\n        isVerticalTMOProgressBarDisplay: boolean,\n        formattedDeliveredDate: string,\n        orderStatusLabelMap: IOrderStatusLabelMap[],\n        breadCrumbDelimiter: IBreadCrumbsDelimiter,\n        isReturn: boolean,\n        formatStatusTimestamp: string,\n        isPartialShipment: boolean,\n        productDetails?: IShipmentItem[]\n    ) {\n        this.translations = translations;\n        this.orderStatusCodeMap = orderStatuses;\n        this.orderStatusCode = orderStatusCode;\n        this.isVerticalTMOProgressBarDisplay = isVerticalTMOProgressBarDisplay;\n        this.orderStatusLabelMap = orderStatusLabelMap;\n        this.formattedDeliveredDate = formattedDeliveredDate;\n        this.breadCrumbDelimiter = breadCrumbDelimiter;\n        this.isReturn = isReturn;\n        this.isPartialShipment = isPartialShipment;\n        if (productDetails) {\n            this.productDetails = productDetails;\n        }\n        const orderStatus =\n            this.orderStatusCodeMap.find((item) => item.orderStatusCodes.includes(orderStatusCode))\n                ?.orderStatusMappedType || OrderStatusType.ORDER_PROCESSING;\n        const { status, explanation, description, subDescription, statusHeader } =\n            this.getOrderStatusInfoMap()[orderStatus];\n\n        this.orderStatusType = orderStatus;\n        this.status = status;\n        this.description = description;\n        this.explanation = explanation;\n        this.subDescription = subDescription;\n        this.statusHeader = statusHeader;\n        this.formatStatusTimestamp = formatStatusTimestamp;\n\n        // The following scenarios are considered as order shipped according to:\n        // https://confluence.esteeonline.com/display/AM/Build+Stardust+React+service+bundle\n        this.isShipped =\n            [\n                OrderStatusType.SHIPPED,\n                OrderStatusType.DELIVERED,\n                OrderStatusType.DELAYED,\n                OrderStatusType.UNDELIVERABLE,\n                OrderStatusType.RETURN_IN_PROGRESS\n            ].indexOf(orderStatus) >= 0;\n\n        // Steps to be displayed\n        const stepCount = this.displayStatuses.length;\n        if (stepCount) {\n            this.progressLabels = this.displayStatuses.map((item) => {\n                return this.getOrderStatusInfoMap()[item.orderStatusMappedType]?.status || '';\n            });\n\n            // completed || currentIndex > index -> show check mark\n            this.progressItems = Array(stepCount).fill({\n                completed: false\n            });\n\n            let progressStep =\n                this.orderStatusCodeMap.find((i) => i.orderStatusMappedType === orderStatus)\n                    ?.indexOfProgress ?? -1;\n            if (progressStep >= stepCount - 1) {\n                // If current step is after last progress step displayed, then show at the last progress step\n                progressStep = stepCount - 1;\n                this.progressItems[stepCount - 1].completed = true;\n            }\n            this.progressStep = progressStep;\n\n            this.stepsDetails = this.progressLabels.map((item, index) => {\n                return {\n                    heading: item,\n                    statusTimestamp:\n                        progressStep === index ||\n                        this.orderStatusType === OrderStatusType.CANCELLED ||\n                        this.orderStatusType === OrderStatusType.UNDELIVERABLE\n                            ? formatStatusTimestamp\n                            : '',\n                    description:\n                        progressStep === index ||\n                        this.orderStatusType === OrderStatusType.CANCELLED ||\n                        this.orderStatusType === OrderStatusType.UNDELIVERABLE\n                            ? explanation || ''\n                            : ''\n                };\n            });\n        }\n    }\n\n    private getOrderStatusInfoMap({\n        deliveryMethodName,\n        trackingUrl,\n        shippedDateFormattedString\n    }: IGetOrderStatusInfoMap = {}) {\n        const {\n            orderProcessing,\n            orderStatusProcessingMessage,\n            yourOrderIsProcessing,\n            orderStatusProcessingInstruction,\n            atWarehouse,\n            orderStatusAtWarehouseMessage,\n            yourOrderIsAtWarehouse,\n            orderStatusAtWarehouseInstruction,\n            shipped,\n            orderStatusShippedMessage,\n            yourOrderIsShipped,\n            orderStatusShippedInstruction,\n            delivered,\n            orderStatusDeliveredMessage,\n            yourOrderIsDelivered,\n            orderStatusDeliveredInstruction,\n            returnInProgress,\n            orderStatusReturnInProgressMessage,\n            yourOrderIsReturnInProgress,\n            orderStatusReturnInProgressInstruction,\n            returnInitiated,\n            yourOrderIsReturnInitiated,\n            orderHasBeenReturnInitiated,\n            returnShipped,\n            yourOrderIsReturnToShipped,\n            orderHasBeenReturnToShipped,\n            returnReceived,\n            yourOrderIsReturnReceived,\n            orderHasBeenReturnReceived,\n            cancelled,\n            orderStatusCancelledMessage,\n            yourOrderIsCancelled,\n            orderStatusCancelledInstruction,\n            delayed,\n            yourOrderIsDelayed,\n            orderStatusDelayedInstruction,\n            orderStatusDelayedMessage,\n            orderStatus,\n            estimatedDelivery,\n            deliveredOn,\n            unableToDeliver,\n            yourOrderIsUnableToDeliver,\n            orderStatusUnableToDeliverInstruction,\n            orderHasBeenUnableToDeliver\n        } = this.translations;\n\n        const hasReturnOrNotReturnText = (textForNotReturn: string, textForReturn: string) => {\n            return this.isReturn ? textForReturn : textForNotReturn;\n        };\n\n        const getDescriptionMessage = (textForNotReturn: string, textForReturn?: string) => {\n            if (this.isVerticalTMOProgressBarDisplay && this.isReturn && textForReturn) {\n                return textForReturn;\n            }\n\n            return textForNotReturn;\n        };\n\n        const getExplanationMessage = (textForNotReturn: string, textForReturn?: string) => {\n            if (this.isReturn && textForReturn) {\n                return textForReturn;\n            }\n            const orderStatusText = this.orderStatusLabelMap\n                ? this.orderStatusLabelMap.find((item) =>\n                      item.orderStatusCode.includes(this.orderStatusCode)\n                  )\n                : undefined;\n            const explanationMessage = orderStatusText\n                ? this.translations[orderStatusText.orderStatusLabel]\n                : textForNotReturn;\n\n            return explanationMessage;\n        };\n\n        return {\n            [OrderStatusType.ORDER_PROCESSING]: {\n                status: hasReturnOrNotReturnText(orderProcessing, returnInitiated),\n                explanation: getExplanationMessage(orderStatusProcessingMessage),\n                description: yourOrderIsProcessing,\n                subDescription: orderStatusProcessingInstruction,\n                deliveryMethod: deliveryMethodName,\n                statusHeader: orderStatus,\n                statusClassName: 'processing'\n            },\n            [OrderStatusType.AT_WAREHOUSE]: {\n                status: hasReturnOrNotReturnText(atWarehouse, returnInitiated),\n                explanation: getExplanationMessage(\n                    orderStatusAtWarehouseMessage,\n                    orderHasBeenReturnInitiated\n                ),\n                description: getDescriptionMessage(\n                    yourOrderIsAtWarehouse,\n                    yourOrderIsReturnInitiated\n                ),\n                subDescription: orderStatusAtWarehouseInstruction,\n                deliveryMethod: deliveryMethodName,\n                trackingUrl,\n                statusHeader: orderStatus,\n                statusClassName: 'warehouse'\n            },\n            [OrderStatusType.SHIPPED]: {\n                status: hasReturnOrNotReturnText(shipped, returnShipped),\n                explanation: getExplanationMessage(\n                    orderStatusShippedMessage,\n                    orderHasBeenReturnToShipped\n                ),\n                description: getDescriptionMessage(yourOrderIsShipped, yourOrderIsReturnToShipped),\n                subDescription: orderStatusShippedInstruction,\n                shippedDate: shippedDateFormattedString,\n                trackingUrl,\n                statusHeader: estimatedDelivery,\n                statusClassName: 'shipped'\n            },\n            [OrderStatusType.DELAYED]: {\n                status: delayed,\n                explanation: orderStatusDelayedMessage,\n                description: getDescriptionMessage(yourOrderIsDelayed),\n                subDescription: orderStatusDelayedInstruction,\n                statusHeader: estimatedDelivery,\n                statusClassName: 'delayed'\n            },\n            [OrderStatusType.DELIVERED]: {\n                status: hasReturnOrNotReturnText(delivered, returnReceived),\n                explanation: getExplanationMessage(\n                    orderStatusDeliveredMessage,\n                    orderHasBeenReturnReceived\n                ),\n                description: getDescriptionMessage(yourOrderIsDelivered, yourOrderIsReturnReceived),\n                subDescription: orderStatusDeliveredInstruction,\n                trackingUrl,\n                statusHeader: hasReturnOrNotReturnText(deliveredOn, orderStatus),\n                statusClassName: 'delivered'\n            },\n            [OrderStatusType.RETURN_IN_PROGRESS]: {\n                status: returnInProgress,\n                explanation: orderStatusReturnInProgressMessage,\n                description: yourOrderIsReturnInProgress,\n                subDescription: orderStatusReturnInProgressInstruction,\n                trackingUrl,\n                statusHeader: orderStatus,\n                statusClassName: 'return'\n            },\n            [OrderStatusType.CANCELLED]: {\n                status: cancelled,\n                explanation: getExplanationMessage(orderStatusCancelledMessage),\n                description: yourOrderIsCancelled,\n                subDescription: orderStatusCancelledInstruction,\n                statusHeader: orderStatus,\n                statusClassName: 'cancelled'\n            },\n            [OrderStatusType.UNDELIVERABLE]: {\n                status: unableToDeliver,\n                explanation: orderHasBeenUnableToDeliver,\n                description: yourOrderIsUnableToDeliver,\n                subDescription: orderStatusUnableToDeliverInstruction,\n                statusHeader: orderStatus,\n                statusClassName: 'undeliverable'\n            }\n        };\n    }\n\n    public getOrderStatusInfo(params: IGetOrderStatusInfoMap) {\n        return this.getOrderStatusInfoMap(params)[this.orderStatusType];\n    }\n\n    @computed\n    private get displayStatuses(): IOrderStatusCode[] {\n        const filterList =\n            this.orderStatusType !== OrderStatusType.RETURN_IN_PROGRESS\n                ? PROGRESS_MILESTONES_BY_STATUS[this.orderStatusType]\n                : false;\n        if (filterList && this.isVerticalTMOProgressBarDisplay) {\n            return this.orderStatusCodeMap.filter((item) =>\n                filterList.includes(item.orderStatusMappedType)\n            );\n        } else {\n            return this.orderStatusCodeMap.filter((item) => item.showInProgress);\n        }\n    }\n}\n","import { REG_PLACEHOLDER } from './Constants';\n\nexport interface IDataMap {\n    [key: string]: string | number;\n}\n\nexport const getPlaceholders = (template: string): RegExpMatchArray | null =>\n    template.match(REG_PLACEHOLDER);\n\nexport const getFormattedText = (template: string, values: IDataMap): string => {\n    const placeholders: string[] = getPlaceholders(template) || [];\n\n    return placeholders.reduce((acc: string, curr: string) => {\n        const key = curr.replace(/:/g, '');\n        const replacedValue = values[key] || '';\n        const replacedUrl = acc.replace(curr, replacedValue.toString());\n\n        return replacedUrl;\n    }, template);\n};\n","import { observable } from 'mobx';\nimport { getFormattedText } from '../../utils/StringUtils';\nimport { DEFAULT_DATE_FORMAT } from '../../utils/Constants';\nimport { formatDate } from '../../utils/DateUtils';\nimport { IOrderTrackingConfig } from './Config';\n\nexport class ShippingInfo {\n    @observable public carrierCode: string;\n    @observable public shippedDate: string;\n    @observable public trackingNumber: string;\n\n    @observable public trackingUrl: string;\n    @observable public cutOffTime: string;\n    @observable public carrierName: string;\n    @observable public shippedDateFormattedString: string;\n\n    constructor(\n        data: {\n            carrier: string;\n            order_date: string;\n            service: string;\n            ship_date: string;\n            tracking_number: string;\n            trans_id: number;\n            trans_order_id: number;\n        },\n        {\n            dateFormatPattern = DEFAULT_DATE_FORMAT,\n            carrierCodes\n        }: Pick<IOrderTrackingConfig, 'dateFormatPattern' | 'carrierCodes'>,\n        defaultCarrierCode?: string,\n        is_return?: boolean,\n        return_tracking_url?: string\n    ) {\n        this.trackingNumber = data.tracking_number;\n        const carrierCode = data.carrier || defaultCarrierCode || '';\n        this.carrierCode = carrierCode;\n        if (carrierCode && carrierCodes) {\n            const carrierInfo = carrierCodes.find(\n                (item) => item.carrierCode.toLowerCase() === carrierCode.toLowerCase()\n            );\n            if (carrierInfo) {\n                const { carrierName, cutOffTime = '', carrierTrackingUrl } = carrierInfo;\n                this.carrierName = carrierName;\n                this.cutOffTime = cutOffTime;\n                this.trackingUrl = is_return\n                    ? return_tracking_url || ''\n                    : getFormattedText(carrierTrackingUrl || '', data);\n            }\n        }\n        this.shippedDate = data.ship_date;\n        this.shippedDateFormattedString = formatDate(this.shippedDate, dateFormatPattern);\n    }\n}\n","import { ITranslationsCollection } from '@estee/elc-service';\nimport { observable } from 'mobx';\nimport {\n    INarvarOrderInfo,\n    IOrderApiResponse,\n    IOrderNarvarItem,\n    IOrderNarvarShipment,\n    IShipment\n} from '../../../api/OrderTrackingApiSdk';\nimport {\n    DEFAULT_DATETIME_FORMAT,\n    DEFAULT_DATETIME_STAMP_FORMAT,\n    DEFAULT_DATE_FORMAT,\n    DEFAULT_ITEM_TO_SLICE\n} from '../../utils/Constants';\nimport { formatDate, formatOrderDate, getUpdatedOrder } from '../../utils/DateUtils';\nimport { IOrderTrackingConfig, IShipmentOrder, OrderNumberType } from './Config';\nimport { OrderStatus } from './OrderStatus';\nimport { ShippingInfo } from './ShippingInfo';\n\nexport type PickupStoreInfo = {\n    pickup_store_name: string;\n    pickup_chain_code: string;\n    pickup_chain_name: string;\n    pickup_tracking_url: string;\n    pickup_tracking_number: string;\n};\n\nexport class OrderInfo {\n    @observable public orderNumber: string = '';\n    @observable public orderDate: string;\n    @observable public deliveryMethodCode: string = '';\n    @observable public deliveryMethodName: string = '';\n    @observable public orderStatusCode: string = '';\n    @observable public orderDateFormattedString: string;\n\n    @observable public shippingInfo?: ShippingInfo;\n    @observable public orderStatus?: OrderStatus;\n    @observable public shipmentOrders?: IShipmentOrder[];\n    @observable public orderItems: IOrderNarvarItem[];\n    @observable public pickupStoreInfo?: PickupStoreInfo;\n\n    @observable public deliveredDate: string = '';\n    @observable public finalSale: boolean;\n\n    private checkPartialMultipleShipment = (shipments: IShipment[]) => {\n        const ongoingShipmentsLength = shipments.filter((x) => !x.is_complete).length;\n        const completedShipmentsLength = shipments.filter((x) => x.is_complete).length;\n\n        return (\n            (ongoingShipmentsLength >= 1 && completedShipmentsLength >= 1) ||\n            ongoingShipmentsLength > 1\n        );\n    };\n\n    private checkPartialShipment = (\n        isVerticalTMOProgressBarDisplay: boolean,\n        currentOrderStatusCode: string,\n        partialOrderStatusCode: string,\n        shipmentList?: IOrderNarvarShipment[]\n    ) => {\n        return (\n            isVerticalTMOProgressBarDisplay &&\n            ((shipmentList && shipmentList.length > 1) ||\n                partialOrderStatusCode === currentOrderStatusCode)\n        );\n    };\n\n    private setNarvarData = (\n        data: IOrderApiResponse,\n        orderTrackingConfig: IOrderTrackingConfig,\n        orderInfo: OrderInfo,\n        translations: ITranslationsCollection,\n        defaultCarrierCode?: string\n    ) => {\n        const {\n            order_status,\n            narvar_data,\n            carrier,\n            order_date,\n            shipped_date,\n            tracking_number,\n            narvar_ship_method,\n            trans_id,\n            trans_order_id\n        } = data;\n        const narvarData: INarvarOrderInfo | undefined =\n            typeof narvar_data === 'string' ? undefined : narvar_data?.order_info;\n\n        const {\n            isVerticalTMOProgressBarDisplay,\n            SetReturnInitiatedStatusCode,\n            dateTimeStampFormatPattern,\n            partialShipmentStatusCode,\n            datetimeFormatPattern = DEFAULT_DATETIME_FORMAT,\n            orderStatusCodeMap,\n            orderStatusLabelMap,\n            breadCrumbDelimiter,\n            dateFormatPattern,\n            carrierCodes\n        } = orderTrackingConfig;\n        let narvarCodeStatus;\n        let isNarvarReturn = false;\n        let isNarvarPartialShipment = false;\n        let narvarStatusTimestamp;\n        let narvarEddDate;\n\n        if (narvarData?.returns) {\n            isNarvarReturn = true;\n            narvarData.returns.forEach((item) => {\n                const status = item.shipments.find((i) => i.status)?.status_code;\n                const timestamp = item.shipments.find((i) => i.status)?.status_timestamp;\n                narvarCodeStatus = status ? status : SetReturnInitiatedStatusCode;\n                narvarStatusTimestamp = timestamp\n                    ? formatOrderDate(timestamp, dateTimeStampFormatPattern)\n                    : '';\n            });\n        } else if (narvarData?.shipments) {\n            isNarvarReturn = false;\n            isNarvarPartialShipment = orderInfo.checkPartialShipment(\n                isVerticalTMOProgressBarDisplay,\n                partialShipmentStatusCode,\n                `${order_status}`,\n                narvarData.shipments\n            );\n            const filterData = getUpdatedOrder(narvarData.shipments);\n            if (filterData) {\n                if (filterData.delivery?.guaranteed_date) {\n                    narvarEddDate = formatOrderDate(\n                        filterData.delivery.guaranteed_date,\n                        datetimeFormatPattern\n                    );\n                } else {\n                    narvarEddDate = filterData.delivery?.estimated_date\n                        ? formatOrderDate(filterData.delivery.estimated_date, datetimeFormatPattern)\n                        : '';\n                }\n                narvarCodeStatus = filterData?.status_code ? filterData.status_code : undefined;\n                narvarStatusTimestamp = filterData?.status_timestamp\n                    ? formatOrderDate(filterData.status_timestamp, dateTimeStampFormatPattern)\n                    : '';\n            }\n        }\n        const statusCode = narvarCodeStatus || `${order_status}`;\n        orderInfo.orderStatusCode = statusCode;\n        orderInfo.orderStatus = new OrderStatus(\n            statusCode,\n            orderStatusCodeMap,\n            translations,\n            isVerticalTMOProgressBarDisplay,\n            narvarEddDate || '',\n            orderStatusLabelMap,\n            breadCrumbDelimiter,\n            isNarvarReturn,\n            narvarStatusTimestamp || '',\n            isNarvarPartialShipment\n        );\n        orderInfo.orderDateFormattedString = formatDate(order_date, dateFormatPattern);\n        if (orderInfo.orderStatus.isShipped) {\n            const shippingInfoData = {\n                carrier,\n                order_date,\n                ship_date: shipped_date,\n                tracking_number,\n                service: narvar_ship_method || '',\n                trans_id,\n                trans_order_id\n            };\n            orderInfo.shippingInfo = new ShippingInfo(\n                shippingInfoData,\n                { dateFormatPattern, carrierCodes },\n                defaultCarrierCode\n            );\n        }\n    };\n\n    private setShipments = (\n        data: IOrderApiResponse,\n        orderTrackingConfig: IOrderTrackingConfig,\n        translations: ITranslationsCollection,\n        defaultCarrierCode: string | undefined,\n        orderInfo: OrderInfo\n    ) => {\n        const {\n            order_date,\n            narvar_ship_method,\n            trans_id,\n            trans_order_id,\n            shipments,\n            carrier,\n            tracking_number\n        } = data;\n        const {\n            dateFormatPattern = DEFAULT_DATE_FORMAT,\n            carrierCodes,\n            orderStatusCodeMap,\n            isVerticalTMOProgressBarDisplay,\n            datetimeFormatPattern = DEFAULT_DATETIME_FORMAT,\n            orderStatusLabelMap,\n            breadCrumbDelimiter,\n            dateTimeStampFormatPattern = DEFAULT_DATETIME_STAMP_FORMAT\n        } = orderTrackingConfig;\n        if (shipments) {\n            const isPartialShipment = orderInfo.checkPartialMultipleShipment(shipments);\n            orderInfo.shipmentOrders = shipments?.map((item) => {\n                const formatStatusTimestamp =\n                    formatOrderDate(item.last_updated_date, dateTimeStampFormatPattern) || '';\n\n                const formattedDeliveredDate = item.delivered_date\n                    ? formatOrderDate(item.delivered_date, datetimeFormatPattern)\n                    : formatOrderDate(item.estimated_delivery_date, datetimeFormatPattern);\n                const shipmentData = new OrderStatus(\n                    `${item.shipment_status}`,\n                    orderStatusCodeMap,\n                    translations,\n                    isVerticalTMOProgressBarDisplay,\n                    formattedDeliveredDate || '',\n                    orderStatusLabelMap,\n                    breadCrumbDelimiter,\n                    item.is_return,\n                    formatStatusTimestamp,\n                    isPartialShipment,\n                    item.items\n                );\n\n                const partialShippedData = {\n                    carrier: item.carrier ?? carrier,\n                    order_date,\n                    ship_date: item.shipped_date,\n                    tracking_number: item.shipment_tracking_number ?? tracking_number,\n                    service: narvar_ship_method || '',\n                    trans_id,\n                    trans_order_id\n                };\n                const shipInfo = new ShippingInfo(\n                    partialShippedData,\n                    { dateFormatPattern, carrierCodes },\n                    defaultCarrierCode,\n                    item.is_return,\n                    item.return_tracking_url\n                );\n                const progressOrder = {\n                    inProgressOrder: item.is_complete\n                };\n\n                const orderItems = item.items;\n                const hasMoreSlideHeaderOrderItems = orderItems.length > 3;\n                const slideHeaderOrderItems = hasMoreSlideHeaderOrderItems\n                    ? orderItems.slice(0, 2)\n                    : orderItems;\n                const itemToSlice = hasMoreSlideHeaderOrderItems\n                    ? `${orderItems.length - DEFAULT_ITEM_TO_SLICE}`\n                    : '';\n\n                return {\n                    ...shipmentData,\n                    ...shipInfo,\n                    ...progressOrder,\n                    orderItems,\n                    hasMoreSlideHeaderOrderItems,\n                    slideHeaderOrderItems,\n                    itemToSlice\n                };\n            });\n        }\n    };\n\n    public static fromJSON(\n        data: IOrderApiResponse,\n        orderTrackingConfig: IOrderTrackingConfig,\n        translations: ITranslationsCollection\n    ): OrderInfo {\n        const orderInfo = new OrderInfo();\n        const {\n            trans_order_id,\n            order_date,\n            delivery_method,\n            delivered_date,\n            order_status,\n            trans_id,\n            carrier,\n            shipped_date,\n            tracking_number,\n            narvar_ship_method,\n            narvar_data,\n            shipments,\n            pickup_store_data,\n            final_sale\n        } = data;\n\n        const orderIdOptions = {\n            [OrderNumberType.TOID]: trans_order_id,\n            [OrderNumberType.TID]: trans_id\n        };\n        const {\n            deliveryMethods,\n            isVerticalTMOProgressBarDisplay,\n            partialShipmentStatusCode,\n            orderStatusLabelMap,\n            breadCrumbDelimiter,\n            orderStatusCodeMap,\n            dateFormatPattern,\n            carrierCodes,\n            orderNumberType\n        } = orderTrackingConfig;\n        const orderId = orderIdOptions[orderNumberType];\n        const narvarData = typeof narvar_data === 'string' ? undefined : narvar_data?.order_info;\n\n        orderInfo.orderItems = narvarData?.order_items ?? [];\n\n        let defaultCarrierCode: string | undefined;\n        let isPartialShipment = false;\n\n        if (orderId) {\n            orderInfo.orderNumber = `${orderId}`;\n        }\n        orderInfo.orderDate = order_date;\n        orderInfo.deliveredDate = delivered_date;\n        if (delivery_method) {\n            const deliveryMethodCode = `${delivery_method}`;\n            orderInfo.deliveryMethodCode = deliveryMethodCode;\n            const deliveryMethod = deliveryMethods.find(\n                (item) => item.methodCode === deliveryMethodCode\n            );\n            if (deliveryMethod) {\n                defaultCarrierCode = deliveryMethod.defaultCarrierCode;\n                orderInfo.deliveryMethodName = deliveryMethod.methodName || '';\n            }\n        }\n        isPartialShipment = shipments\n            ? orderInfo.checkPartialMultipleShipment(shipments)\n            : orderInfo.checkPartialShipment(\n                  isVerticalTMOProgressBarDisplay,\n                  partialShipmentStatusCode,\n                  `${order_status}`\n              );\n        if (tracking_number && narvarData && isVerticalTMOProgressBarDisplay && !shipments) {\n            orderInfo.setNarvarData(\n                data,\n                orderTrackingConfig,\n                orderInfo,\n                translations,\n                defaultCarrierCode\n            );\n        } else {\n            const formattedDeliveredDate = '';\n            const formatStatusTimestamp = '';\n            const statusCode = `${order_status}`;\n            orderInfo.orderStatusCode = statusCode;\n            orderInfo.orderStatus = new OrderStatus(\n                statusCode,\n                orderStatusCodeMap,\n                translations,\n                isVerticalTMOProgressBarDisplay,\n                formattedDeliveredDate,\n                orderStatusLabelMap,\n                breadCrumbDelimiter,\n                false,\n                formatStatusTimestamp,\n                isPartialShipment\n            );\n            orderInfo.orderDateFormattedString = formatDate(order_date, dateFormatPattern);\n\n            if (orderInfo.orderStatus.isShipped) {\n                const shippingInfoData = {\n                    carrier,\n                    order_date,\n                    ship_date: shipped_date,\n                    tracking_number,\n                    service: narvar_ship_method || '',\n                    trans_id,\n                    trans_order_id\n                };\n                orderInfo.shippingInfo = new ShippingInfo(\n                    shippingInfoData,\n                    { dateFormatPattern, carrierCodes },\n                    defaultCarrierCode\n                );\n            }\n        }\n        //For the shipment keys to show the partial shipment or multi shipment orders\n        orderInfo.setShipments(\n            data,\n            orderTrackingConfig,\n            translations,\n            defaultCarrierCode,\n            orderInfo\n        );\n\n        if (pickup_store_data) {\n            orderInfo.pickupStoreInfo = pickup_store_data;\n        }\n\n        orderInfo.finalSale = final_sale === '1';\n\n        return orderInfo;\n    }\n}\n","import { observable, action } from 'mobx';\nimport { ErrorMessageType, REG_SPACE } from '../../utils/Constants';\n\n/**\n * This holds some UI states and logic for the order tracking form view.\n */\nexport class OrderTracking {\n    @observable public isLoading: boolean = false;\n    @observable public queryOrderNumber: string = '';\n    @observable public errorMessageType: ErrorMessageType | undefined;\n\n    private orderNumberValidationRegex: RegExp;\n\n    constructor(orderNumberValidationRegex: string) {\n        if (orderNumberValidationRegex) {\n            this.orderNumberValidationRegex = new RegExp(orderNumberValidationRegex);\n        }\n    }\n\n    @action\n    public setIsLoading = (isLoading: boolean) => {\n        this.isLoading = isLoading;\n    };\n\n    @action\n    public setQueryOrderNumber = (orderNumber: string) => {\n        if (!this.orderNumberValidationRegex) {\n            return;\n        }\n\n        this.queryOrderNumber = orderNumber?.replace(REG_SPACE, '');\n\n        if (!this.queryOrderNumber || this.orderNumberValidationRegex.test(this.queryOrderNumber)) {\n            this.setErrorMessageType();\n        } else {\n            this.setErrorMessageType(ErrorMessageType.ORDER_NUMBER_INVALID);\n        }\n    };\n\n    @action\n    public setErrorMessageType = (errorMessageType?: ErrorMessageType) => {\n        this.errorMessageType = errorMessageType;\n    };\n}\n","import { ITranslationsCollection } from '@estee/elc-service';\nimport { action, observable } from 'mobx';\nimport {\n    OrderApiResponseCode,\n    OrderTrackingApiSdk,\n    EncryptedOrderNumberDataType\n} from '../../api/OrderTrackingApiSdk';\nimport { diContainer, serviceNames } from '../../service-setup/diContainer';\nimport { IOrderTrackingConfig } from '../domain/entities/Config';\nimport { OrderInfo } from '../domain/entities/OrderInfo';\nimport { OrderTracking } from '../domain/entities/OrderTracking';\nimport { ConfigRepository } from './ConfigRepository';\n\ninterface IOrderTrackingData {\n    responseCode: OrderApiResponseCode;\n    orderInfo: OrderInfo;\n}\n\nexport class OrderRepository {\n    @observable public orderInfo?: OrderInfo;\n    @observable public translations: ITranslationsCollection;\n    @observable public orderTracking: OrderTracking;\n\n    private orderTrackingApiSdk: OrderTrackingApiSdk;\n    @observable private orderTrackingConfig: IOrderTrackingConfig;\n\n    constructor(orderTrackingApiSdk: OrderTrackingApiSdk) {\n        this.orderTrackingApiSdk = orderTrackingApiSdk;\n        const configRepository: ConfigRepository = diContainer.get(serviceNames.configRepository);\n        this.orderTrackingConfig = configRepository.orderTrackingConfig;\n        this.orderTracking = new OrderTracking(\n            this.orderTrackingConfig?.orderNumberValidationRegex\n        );\n    }\n\n    @action\n    public loadTranslations(translations: ITranslationsCollection) {\n        this.translations = translations;\n    }\n\n    @action\n    public async getOrderTrackingData(\n        query: string | EncryptedOrderNumberDataType\n    ): Promise<IOrderTrackingData> {\n        const { data, code } = await this.orderTrackingApiSdk.getOrderTracking(query);\n\n        if (data) {\n            this.orderInfo = OrderInfo.fromJSON(data, this.orderTrackingConfig, this.translations);\n        }\n\n        return { responseCode: code, orderInfo: this.orderInfo as OrderInfo };\n    }\n}\n","import { query, serviceQueries } from '@estee/elc-service-bus';\nimport { IAppConfig } from '@estee/elc-universal-utils';\nimport { computed } from 'mobx';\nimport { Config, IOrderTrackingConfig } from '../domain/entities/Config';\nimport { brandIdValPath, regionIdValPath } from '../utils/Constants';\n\nexport class ConfigRepository {\n    public config: Config;\n\n    constructor(config: IAppConfig) {\n        this.config = new Config(config);\n    }\n\n    public getDefaultConfigs = async () => {\n        const config = await query(serviceQueries.GET_CONFIG, [\n            'orderTracking',\n            brandIdValPath,\n            regionIdValPath\n        ]);\n        config.brand = { id: config[brandIdValPath] };\n        config.region = { id: config[regionIdValPath] };\n        delete config[brandIdValPath];\n        delete config[regionIdValPath];\n        this.config.updateConfig(config);\n    };\n\n    @computed\n    public get orderTrackingConfig() {\n        return this.config.config?.orderTracking as IOrderTrackingConfig;\n    }\n}\n","import { computed, action } from 'mobx';\nimport { ITranslationsCollection } from '@estee/elc-service';\nimport { OrderRepository } from '../repositories/OrderRepository';\nimport { OrderTrackingSubmittedUseCase } from '../use-cases/OrderTrackingSubmittedUseCase';\n\nexport class OrderTrackingInformationViewController {\n    private orderRepository: OrderRepository;\n\n    constructor(orderRepository: OrderRepository) {\n        this.orderRepository = orderRepository;\n    }\n\n    @action\n    public loaded = (translations: ITranslationsCollection) => {\n        this.orderRepository.loadTranslations(translations);\n    };\n\n    @computed\n    public get data() {\n        const { orderInfo, orderTracking } = this.orderRepository;\n        const { isLoading } = orderTracking;\n\n        return {\n            orderInfo,\n            isLoading\n        };\n    }\n\n    @action\n    public onQueryOrder = async (orderId: string) => {\n        this.orderRepository.orderTracking.setQueryOrderNumber(orderId);\n        const submitUseCase = new OrderTrackingSubmittedUseCase();\n        await submitUseCase.execute();\n    };\n}\n","import { action, computed, observable } from 'mobx';\n\nimport { ITranslationsCollection } from '@estee/elc-service';\n\nimport { OrderInfo } from '../domain/entities/OrderInfo';\nimport { OrderRepository } from '../repositories/OrderRepository';\nimport { OrderTrackingSubmittedUseCase } from '../use-cases/OrderTrackingSubmittedUseCase';\n\ninterface IOrderStatusInfo {\n    status: string;\n    explanation: string;\n    description: string;\n    subDescription: string;\n    deliveryMethod?: string;\n    shippedDate?: string;\n    trackingUrl?: string;\n    statusClassName: string;\n    statusHeader?: string;\n}\n\nexport class OrderStatusViewController {\n    private orderRepository: OrderRepository;\n    @observable private orderInfo: OrderInfo;\n\n    constructor(orderRepository: OrderRepository) {\n        this.orderRepository = orderRepository;\n    }\n\n    @action\n    public loaded = (translations: ITranslationsCollection) => {\n        this.orderRepository.loadTranslations(translations);\n    };\n\n    @computed\n    public get data() {\n        return {\n            orderInfo: this.orderInfo,\n            isLoading: this.orderRepository.orderTracking.isLoading\n        };\n    }\n\n    @computed\n    public get orderStatusInfo() {\n        const { orderStatus, deliveryMethodName, shippingInfo } = this.orderInfo;\n        const { trackingUrl, shippedDateFormattedString } = shippingInfo ?? {};\n\n        return orderStatus?.getOrderStatusInfo({\n            deliveryMethodName,\n            trackingUrl,\n            shippedDateFormattedString\n        }) as IOrderStatusInfo;\n    }\n\n    @action\n    public onQueryOrder = async (orderId: string) => {\n        this.orderRepository.orderTracking.setQueryOrderNumber(orderId);\n        const submitUseCase = new OrderTrackingSubmittedUseCase();\n        const orderInfo = await submitUseCase.execute();\n\n        this.orderInfo = orderInfo;\n    };\n}\n","import { Container } from 'hypo-container';\nimport { getDecorators } from '@estee/elc-service';\nimport { OrderTrackingService } from './OrderTrackingService';\nimport { ServiceBusController } from './ServiceBusController';\nimport OrderTrackingViewController from '../internal/controllers/OrderTrackingViewController';\nimport { OrderRepository } from '../internal/repositories/OrderRepository';\nimport { OrderTrackingApiSdk } from '../api/OrderTrackingApiSdk';\nimport { ConfigRepository } from '../internal/repositories/ConfigRepository';\nimport { ELCLogger } from '@estee/elc-logging';\nimport { HttpTransport } from '@estee/elc-http-transport';\nimport { IAppConfig } from '@estee/elc-universal-utils';\nimport { OrderTrackingInformationViewController } from '../internal/controllers/OrderTrackingInformationViewController';\nimport { OrderStatusViewController } from '../internal/controllers/OrderStatusViewController';\n\nexport const serviceNames = {\n    orderTrackingService: 'ORDER_TRACKING_SERVICE',\n    serviceBusController: 'SERVICE_BUS_CONTROLLER',\n    orderRepository: 'ORDER_TRACKING_ORDER_REPOSITORY',\n    orderTrackingViewController: 'ORDER_TRACKING_VIEW_CONTROLLER',\n    orderTrackingInformationViewController: 'ORDER_TRACKING_INFORMATION_VIEW_CONTROLLER',\n    orderStatusViewController: 'ORDER_STATUS_VIEW_CONTROLLER',\n    orderTrackingApiSdk: 'ORDER_TRACKING_API_SDK',\n    configRepository: 'CONFIG_REPOSITORY',\n    httpTransport: 'HTTP_TRANSPORT',\n    logger: 'LOGGER'\n};\n\nconst { name } = __serviceInfo__;\n\nexport const diContainer = new Container();\n\nexport const setConfig = (config: IAppConfig) => {\n    diContainer.config = config;\n};\n\ndiContainer\n    .register(serviceNames.httpTransport, () => new HttpTransport())\n    .register(serviceNames.configRepository, (c) => new ConfigRepository(c.config))\n    .register(serviceNames.logger, () => new ELCLogger({ serviceName: name }))\n    .register(serviceNames.serviceBusController, () => new ServiceBusController())\n    .register(serviceNames.orderTrackingApiSdk, (c) => {\n        return new OrderTrackingApiSdk(\n            c.get(serviceNames.logger),\n            c.get(serviceNames.httpTransport)\n        );\n    })\n    .register(\n        serviceNames.orderRepository,\n        (c) => new OrderRepository(c.get(serviceNames.orderTrackingApiSdk))\n    )\n    .register(serviceNames.orderTrackingViewController, (c) => {\n        return new OrderTrackingViewController(\n            c.get(serviceNames.orderRepository),\n            c.get(serviceNames.configRepository)\n        );\n    })\n    .register(serviceNames.orderTrackingInformationViewController, (c) => {\n        return new OrderTrackingInformationViewController(c.get(serviceNames.orderRepository));\n    })\n    .register(\n        serviceNames.orderStatusViewController,\n        diContainer.factory(\n            (c) => new OrderStatusViewController(c.get(serviceNames.orderRepository))\n        )\n    )\n    .register(\n        serviceNames.orderTrackingService,\n        (c) =>\n            new OrderTrackingService((config: IAppConfig) => {\n                setConfig(config);\n\n                return c.get(serviceNames.serviceBusController);\n            })\n    );\n\nexport const { lazyInject } = getDecorators(diContainer);\n","import { Container } from 'hypo-container';\nexport const getDecorators = (container: Container) => ({\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    lazyInject: (name?: string) => (\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        target: any,\n        key: string,\n        descriptor?: PropertyDescriptor\n    ) => {\n        const resourceName = name || key;\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        const sbGetter = function (this: any) {\n            const resource = container.get(resourceName);\n            if (!resource) {\n                throw new Error(`The requested ${resourceName} does not exists`);\n            }\n\n            return resource;\n        };\n        let propertyDescriptor = descriptor || {};\n        if (!descriptor) {\n            propertyDescriptor = {\n                get: sbGetter\n            };\n            Object.defineProperty(target, key, propertyDescriptor);\n        } else {\n            propertyDescriptor.get = sbGetter;\n        }\n    }\n});\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n  childContextTypes: true,\n  contextType: true,\n  contextTypes: true,\n  defaultProps: true,\n  displayName: true,\n  getDefaultProps: true,\n  getDerivedStateFromError: true,\n  getDerivedStateFromProps: true,\n  mixins: true,\n  propTypes: true,\n  type: true\n};\nvar KNOWN_STATICS = {\n  name: true,\n  length: true,\n  prototype: true,\n  caller: true,\n  callee: true,\n  arguments: true,\n  arity: true\n};\nvar FORWARD_REF_STATICS = {\n  '$$typeof': true,\n  render: true,\n  defaultProps: true,\n  displayName: true,\n  propTypes: true\n};\nvar MEMO_STATICS = {\n  '$$typeof': true,\n  compare: true,\n  defaultProps: true,\n  displayName: true,\n  propTypes: true,\n  type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n  // React v16.11 and below\n  if (reactIs.isMemo(component)) {\n    return MEMO_STATICS;\n  } // React v16.12 and above\n\n\n  return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n  if (typeof sourceComponent !== 'string') {\n    // don't hoist over string (html) components\n    if (objectPrototype) {\n      var inheritedComponent = getPrototypeOf(sourceComponent);\n\n      if (inheritedComponent && inheritedComponent !== objectPrototype) {\n        hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n      }\n    }\n\n    var keys = getOwnPropertyNames(sourceComponent);\n\n    if (getOwnPropertySymbols) {\n      keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n    }\n\n    var targetStatics = getStatics(targetComponent);\n    var sourceStatics = getStatics(sourceComponent);\n\n    for (var i = 0; i < keys.length; ++i) {\n      var key = keys[i];\n\n      if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n        var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n        try {\n          // Avoid failures from read-only properties\n          defineProperty(targetComponent, key, descriptor);\n        } catch (e) {}\n      }\n    }\n  }\n\n  return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-is.production.min.js');\n} else {\n  module.exports = require('./cjs/react-is.development.js');\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE_elc_service_bus__;","module.exports = __WEBPACK_EXTERNAL_MODULE__estee_elc_logging__;","module.exports = __WEBPACK_EXTERNAL_MODULE__estee_elc_http_transport__;","module.exports = __WEBPACK_EXTERNAL_MODULE_hypo_container__;","module.exports = __WEBPACK_EXTERNAL_MODULE_react__;","module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__;","module.exports = __WEBPACK_EXTERNAL_MODULE_mobx__;","module.exports = __WEBPACK_EXTERNAL_MODULE_mobx_react__;","module.exports = __WEBPACK_EXTERNAL_MODULE_styled_components__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".\" + {\"pg-service-order-tracking-common\":\"3f67a59dc4e8b82b8f57\",\"OrderTracking\":\"8119cff87c68328fa188\",\"OrderTrackingInformation\":\"c3eb8b752afbd4e32425\",\"OrderStatusInfo\":\"af8625f72441f5901542\"}[chunkId] + \".bundle.js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"bundle\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkpg_service_order_tracking\"] = self[\"webpackChunkpg_service_order_tracking\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","import { diContainer, serviceNames } from './service-setup/diContainer';\nimport { setupServiceInfo } from '@estee/elc-universal-utils';\n\ndiContainer.get(serviceNames.orderTrackingService).register();\n\nsetupServiceInfo(__serviceInfo__);\n"],"names":["root","factory","exports","module","require","define","amd","self","__WEBPACK_EXTERNAL_MODULE_hypo_container__","__WEBPACK_EXTERNAL_MODULE_react__","__WEBPACK_EXTERNAL_MODULE__estee_elc_logging__","__WEBPACK_EXTERNAL_MODULE_mobx__","__WEBPACK_EXTERNAL_MODULE_elc_service_bus__","__WEBPACK_EXTERNAL_MODULE__estee_elc_http_transport__","__WEBPACK_EXTERNAL_MODULE_mobx_react__","__WEBPACK_EXTERNAL_MODULE_styled_components__","__WEBPACK_EXTERNAL_MODULE_react_dom__","inProgress","dataWebpackPrefix","Breakpoints","desktop","largeScreen","extraLargeScreen","breakpoint","brp","code","placeholders","result","reduce","acc","holder","idx","length","window","g","setupServiceInfo","serviceInfo","name","rest","BrowserStorage","eraseCookie","document","cookie","setCookie","value","daysOrDate","expires","Date","now","toUTCString","getCookie","nameEQ","ca","split","i","c","charAt","substring","indexOf","getItem","key","storageKey","e","console","error","setItem","removeItem","storagePolling","callBack","storageValue","setInterval","latestValue","OrderStatusType","OrderNumberType","Config","constructor","config","this","updateConfig","KEY_PRESS_ENTER","REG_TRANSLATION_PLACEHOLDER","REG_SIGN_IN_PLACEHOLDER","REG_SPACE","REG_PLACEHOLDER","DEFAULT_DATE_FORMAT","SCROLL_BLOCK","SCROLL_BEHAVIOR","SCROLL_QUERY","INVALID_DATE","DEFAULT_DATETIME_FORMAT","DEFAULT_DATETIME_STAMP_FORMAT","SAMPLE_ITEM","ErrorMessageType","OrderTrackingSearchParam","brandIdValPath","regionIdValPath","PROGRESS_MILESTONES_BY_STATUS","DEFAULT_ITEM_TO_SLICE","DEFAULT_ORDER_PATH","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","Object","keys","_extends","assign","arguments","prototype","hasOwnProperty","call","apply","_assertThisInitialized","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","invariant","condition","message","Error","framesToPop","Context","LOADABLE_SHARED","initialChunks","STATUS_PENDING","STATUS_REJECTED","identity","v","createLoadable","_ref","_ref$defaultResolveCo","defaultResolveComponent","_render","render","onLoad","loadable","loadableConstructor","options","ctor","requireAsync","resolve","chunkName","resolveConstructor","cache","_getCacheKey","props","cacheKey","Loadable","Component","resolveComponent","isValidElementType","preload","InnerLoadable","_React$Component","subClass","superClass","_this","state","loading","__chunkExtractor","requireSync","ssr","loadSync","addChunk","isReady","create","getDerivedStateFromProps","_proto","componentDidMount","mounted","cachedPromise","getCache","status","setCache","loadAsync","componentDidUpdate","prevProps","prevState","componentWillUnmount","safeSetState","nextState","callback","setState","getCacheKey","undefined","triggerOnLoad","_this2","setTimeout","fileName","_this3","promise","resolveAsync","then","loadedModule","_this4","_this$props","forwardedRef","_this$props2","propFallback","fallback","_this$state","suspense","ref","EnhancedInnerLoadable","Consumer","extractor","load","lazy","_createLoadable","__esModule","_createLoadable$1","current","children","loadable$1","lazy$1","loadable$2","lib","getServices","Service","version","serviceInitializer","componentsRegistry","cachedComponentsRegistry","isLazy","isStarted","views","register","overrideValues","start","startPromise","getView","registerView","initializeService","setViewInCache","getViewFromCache","componentName","component","viewController","push","appConfig","logger","triggerType","TriggerType","payload","context","serviceRegistry","ELCLogger","serviceName","environment","env","buid","businessUnitId","serviceVersion","OrderTrackingServiceStartedUseCase","execute","configRepository","getDefaultConfigs","region","brand","pgApiTokens","orderTracking","baseUrl","location","origin","orderTrackingApiSdk","setup","regionId","id","brandId","token","orderNumberType","diContainer","get","serviceNames","OrderTrackingService","super","orderTrackingInformationViewController","orderStatusViewController","orderTrackingServiceUseCase","ServiceBusController","OrderApiResponseCode","OrderTrackingApiSdk","httpTransport","brandRegionQuery","orderPath","getGlobalHeaders","AuthorizationCredentials","Authorization","getOrderTracking","query","url","response","credentials","post","body","data","errorResponse","URLSearchParams","set","toString","setBaseUrl","addGlobalHeaders","OrderTrackingSubmittedUseCase","encryptedOrderNumberData","queryOrderNumber","setIsLoading","setErrorMessageType","setQueryOrderNumber","orderRepository","emit","events","orderNumber","responseCode","orderInfo","getOrderTrackingData","NOT_FOUND","INVALID_ORDER_NUMBER","GENERIC_ERROR","OrderTrackingViewController","isScrolled","isTrackOrderShow","loaded","translations","loadTranslations","onChangeQueryOrderNumber","onQueryOrder","submitUseCase","scrollComplete","hideTrackMyOrderDisplay","onSignInLinkClick","errorMessage","errorMessageType","noOrderFoundErrorMessage","orderNumberInvalidErrorMessage","orderTrackingGenericErrorMessage","isLoading","orderNumberValidationMaxLength","isVerticalTMOProgressBarDisplay","orderTrackingConfig","isVerticalTMOProgressBar","orderExplainPlaceholderValues","orderDateValue","shippedDateValue","deliveredDateValue","cutOffTimeValue","carrierNameValue","orderDateFormattedString","orderDate","shippingInfo","deliveredDate","shippedDateFormattedString","shippedDate","cutOffTime","carrierName","ORDER_DATE","SHIPPED_DATE","DELIVERED_DATE","CUTOFF_TIME","CARRIER_NAME","shouldScroll","toInteger","dirtyNumber","NaN","number","Number","isNaN","Math","ceil","floor","requiredArgs","required","args","TypeError","MILLISECONDS_IN_HOUR","MILLISECONDS_IN_MINUTE","patterns","dateTimeDelimiter","timeZoneDelimiter","timezone","dateRegex","timeRegex","timezoneRegex","parseISO","argument","dirtyOptions","additionalDigits","RangeError","date","dateStrings","dateString","timeString","array","test","substr","exec","time","replace","splitDateString","parseYearResult","regex","RegExp","captures","match","year","parseInt","century","restDateString","slice","parseYear","isWeekDate","dayOfYear","parseDateUnit","month","day","week","dayOfWeek","_year","validateWeekDate","isoWeekYear","setUTCFullYear","fourthOfJanuaryDay","getUTCDay","diff","setUTCDate","getUTCDate","dayOfISOWeekYear","daysInMonths","isLeapYearIndex","validateDate","validateDayOfYearDate","max","parseDate","offset","timestamp","getTime","hours","parseTimeUnit","minutes","seconds","validateTime","parseTime","dirtyDate","setFullYear","getUTCFullYear","getUTCMonth","setHours","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","timezoneString","sign","_hours","validateTimezone","parseTimezone","parseFloat","toDate","argStr","warn","stack","formatDistanceLocale","lessThanXSeconds","one","other","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","buildFormatLongFn","width","String","defaultWidth","formats","formatLong","full","long","medium","short","dateTime","formatRelativeLocale","lastWeek","yesterday","today","tomorrow","nextWeek","buildLocalizeFn","dirtyIndex","valuesArray","formattingValues","defaultFormattingWidth","_defaultWidth","_width","values","argumentCallback","buildMatchFn","dirtyString","string","matchPattern","matchPatterns","defaultMatchWidth","matchResult","matchedString","parsePatterns","defaultParseWidth","predicate","findIndex","pattern","object","findKey","valueCallback","formatDistance","count","addSuffix","comparison","formatRelative","_date","_baseDate","_options","localize","ordinalNumber","_dirtyOptions","rem100","era","narrow","abbreviated","wide","quarter","dayPeriod","am","pm","midnight","noon","morning","afternoon","evening","night","parsePattern","parseResult","any","index","weekStartsOn","firstWeekContainsDate","subMilliseconds","dirtyAmount","amount","addMilliseconds","addLeadingZeros","targetLength","output","abs","y","signedYear","M","d","a","dayPeriodEnumValue","toUpperCase","h","H","m","s","S","numberOfDigits","milliseconds","pow","startOfUTCISOWeek","setUTCHours","getUTCISOWeekYear","fourthOfJanuaryOfNextYear","startOfNextYear","fourthOfJanuaryOfThisYear","startOfThisYear","getUTCISOWeek","fourthOfJanuary","startOfUTCISOWeekYear","round","startOfUTCWeek","locale","localeWeekStartsOn","defaultWeekStartsOn","getUTCWeekYear","localeFirstWeekContainsDate","defaultFirstWeekContainsDate","firstWeekOfNextYear","firstWeekOfThisYear","getUTCWeek","firstWeek","startOfUTCWeekYear","dayPeriodEnum","G","unit","lightFormatters","Y","signedWeekYear","weekYear","R","u","Q","q","L","w","I","isoWeek","D","setUTCMonth","difference","getUTCDayOfYear","E","localDayOfWeek","isoDayOfWeek","toLowerCase","b","B","K","k","X","_localize","timezoneOffset","_originalDate","getTimezoneOffset","formatTimezoneWithOptionalMinutes","formatTimezone","x","O","formatTimezoneShort","z","t","originalDate","T","dirtyDelimiter","absOffset","delimiter","dateLongFormatter","timeLongFormatter","longFormatters","P","dateTimeFormat","datePattern","timePattern","protectedDayOfYearTokens","protectedWeekYearTokens","throwProtectedError","format","input","concat","formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","dirtyFormatStr","formatStr","isValid","utcDate","UTC","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","getTimezoneOffsetInMilliseconds","formatterOptions","map","firstCharacter","longFormatter","join","formatter","useAdditionalWeekYearTokens","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","formatDate","dateFormatPattern","dateStr","formatOrderDate","formatedDate","datetimeFormatPattern","OrderStatus","orderStatusCode","orderStatuses","formattedDeliveredDate","orderStatusLabelMap","breadCrumbDelimiter","isReturn","formatStatusTimestamp","isPartialShipment","productDetails","progressLabels","progressStep","progressItems","isShipped","stepsDetails","orderStatusCodeMap","orderStatus","find","item","orderStatusCodes","includes","orderStatusMappedType","explanation","description","subDescription","statusHeader","getOrderStatusInfoMap","orderStatusType","stepCount","displayStatuses","_a","Array","fill","completed","indexOfProgress","heading","statusTimestamp","deliveryMethodName","trackingUrl","orderProcessing","orderStatusProcessingMessage","yourOrderIsProcessing","orderStatusProcessingInstruction","atWarehouse","orderStatusAtWarehouseMessage","yourOrderIsAtWarehouse","orderStatusAtWarehouseInstruction","shipped","orderStatusShippedMessage","yourOrderIsShipped","orderStatusShippedInstruction","delivered","orderStatusDeliveredMessage","yourOrderIsDelivered","orderStatusDeliveredInstruction","returnInProgress","orderStatusReturnInProgressMessage","yourOrderIsReturnInProgress","orderStatusReturnInProgressInstruction","returnInitiated","yourOrderIsReturnInitiated","orderHasBeenReturnInitiated","returnShipped","yourOrderIsReturnToShipped","orderHasBeenReturnToShipped","returnReceived","yourOrderIsReturnReceived","orderHasBeenReturnReceived","cancelled","orderStatusCancelledMessage","yourOrderIsCancelled","orderStatusCancelledInstruction","delayed","yourOrderIsDelayed","orderStatusDelayedInstruction","orderStatusDelayedMessage","estimatedDelivery","deliveredOn","unableToDeliver","yourOrderIsUnableToDeliver","orderStatusUnableToDeliverInstruction","orderHasBeenUnableToDeliver","hasReturnOrNotReturnText","textForNotReturn","textForReturn","getDescriptionMessage","getExplanationMessage","orderStatusText","orderStatusLabel","deliveryMethod","statusClassName","getOrderStatusInfo","params","filterList","filter","showInProgress","getFormattedText","template","getPlaceholders","curr","replacedValue","ShippingInfo","carrierCodes","defaultCarrierCode","is_return","return_tracking_url","trackingNumber","tracking_number","carrierCode","carrier","carrierInfo","carrierTrackingUrl","ship_date","deliveryMethodCode","checkPartialMultipleShipment","shipments","ongoingShipmentsLength","is_complete","completedShipmentsLength","checkPartialShipment","currentOrderStatusCode","partialOrderStatusCode","shipmentList","setNarvarData","order_status","narvar_data","order_date","shipped_date","narvar_ship_method","trans_id","trans_order_id","narvarData","order_info","SetReturnInitiatedStatusCode","dateTimeStampFormatPattern","partialShipmentStatusCode","narvarCodeStatus","narvarStatusTimestamp","narvarEddDate","isNarvarReturn","isNarvarPartialShipment","returns","forEach","_b","status_code","status_timestamp","filterData","inputArray","sort","diffA","getUpdatedOrder","delivery","guaranteed_date","estimated_date","statusCode","shippingInfoData","service","setShipments","shipmentOrders","last_updated_date","delivered_date","estimated_delivery_date","shipmentData","shipment_status","items","partialShippedData","shipment_tracking_number","shipInfo","progressOrder","inProgressOrder","orderItems","hasMoreSlideHeaderOrderItems","slideHeaderOrderItems","itemToSlice","fromJSON","delivery_method","pickup_store_data","final_sale","orderIdOptions","deliveryMethods","orderId","order_items","methodCode","methodName","pickupStoreInfo","finalSale","OrderInfo","OrderTracking","orderNumberValidationRegex","OrderRepository","ConfigRepository","serviceQueries","OrderTrackingInformationViewController","OrderStatusViewController","orderStatusInfo","orderTrackingService","serviceBusController","orderTrackingViewController","Container","HttpTransport","setConfig","lazyInject","container","descriptor","resourceName","sbGetter","resource","propertyDescriptor","defineProperty","reactIs","REACT_STATICS","childContextTypes","contextType","contextTypes","defaultProps","displayName","getDefaultProps","getDerivedStateFromError","mixins","propTypes","type","KNOWN_STATICS","caller","callee","arity","MEMO_STATICS","compare","TYPE_STATICS","getStatics","isMemo","ForwardRef","Memo","getOwnPropertyNames","getOwnPropertySymbols","getOwnPropertyDescriptor","getPrototypeOf","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","targetStatics","sourceStatics","Symbol","for","f","l","n","r","$$typeof","A","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isPortal","isProfiler","isStrictMode","isSuspense","typeOf","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","definition","enumerable","chunkId","Promise","all","promises","globalThis","Function","obj","prop","done","script","needAttach","scripts","getElementsByTagName","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","fn","bind","head","appendChild","toStringTag","scriptUrl","importScripts","currentScript","installedChunks","j","installedChunkData","reject","errorType","realSrc","request","webpackJsonpCallback","parentChunkLoadingFunction","chunkIds","moreModules","runtime","some","chunkLoadingGlobal"],"sourceRoot":""}