[mythtv] Update to latest fixes/32
by Andrew Bauer
commit 4a3fa3ec6725849bd725b0aab7353bfa921b2474
Author: Andrew Bauer <zonexpertconsulting(a)outlook.com>
Date: Fri May 13 07:55:50 2022 -0500
Update to latest fixes/32
Add python setuptools, soundtouch, libzip, and expat build dependencies
.gitignore | 1 +
mythtv.spec | 46 +-
sources | 3 +-
v31.0..4f7953f6ee.patch | 34831 ----------------------------------------------
v32.0..26079f815a.patch | 2159 +++
5 files changed, 2184 insertions(+), 34856 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c484456..261e46a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@ mythtv-0.27.5.tar.gz
/v31.0..016630a35c.patch
/v31.0..05c16580e1.patch
/v31.0..0680b37c68.patch
+/mythtv-32.0.tar.gz
diff --git a/mythtv.spec b/mythtv.spec
index 0e43b8b..9351c2c 100644
--- a/mythtv.spec
+++ b/mythtv.spec
@@ -1,9 +1,9 @@
# The full MythTV Version string is computed from the output of git describe.
-%global vers_string v31.0-173-g4f7953f6ee
+%global vers_string v32.0-30-g26079f815a
# The git date of last commit on mythtv repo
# git_date=$(git log -1 --format=%cd --date=format:"%Y%m%d")
-%global git_date 20220120
+%global git_date 20220510
# Specfile for building MythTV and MythPlugins RPMs from a git checkout.
#
@@ -74,8 +74,8 @@
# Basic descriptive tags for this package:
#
Name: mythtv
-Version: 31.0
-Release: 26%{rel_string}%{?dist}
+Version: 32.0
+Release: 1%{rel_string}%{?dist}
Summary: A digital video recorder (DVR) application
# The primary license is GPLv2+, but bits are borrowed from a number of
@@ -294,6 +294,7 @@ BuildRequires: perl(IO::Socket::INET6)
%endif
%if %{with python}
+BuildRequires: %{py_prefix}-setuptools
BuildRequires: %{py_prefix}-devel
BuildRequires: %{py_prefix}-simplejson
%if 0%{?fedora} || 0%{?rhel} >= 8
@@ -317,7 +318,9 @@ BuildRequires: zlib-devel
%endif
BuildRequires: ncurses-devel
-
+BuildRequires: soundtouch-devel
+BuildRequires: libzip-devel
+BuildRequires: expat-devel
%if %{with mythweather}
Requires: mythweather >= %{version}
@@ -1175,11 +1178,9 @@ exit 0
%files docs
%doc mythtv/README*
-%doc mythtv/UPGRADING
%doc mythtv/AUTHORS
-%license mythtv/COPYING
-%doc mythtv/FAQ
-%doc mythtv/database mythtv/keys.txt
+%doc mythtv/database
+%doc mythtv/keybindings.txt
%doc mythtv/contrib
%files common
@@ -1251,15 +1252,16 @@ exit 0
%{_datadir}/mythtv/themes/
%files libs
-%{_libdir}/libmyth-31.so.*
-%{_libdir}/libmythbase-31.so.*
-%{_libdir}/libmythfreemheg-31.so.*
-%{_libdir}/libmythmetadata-31.so.*
-%{_libdir}/libmythprotoserver-31.so.*
-%{_libdir}/libmythservicecontracts-31.so.*
-%{_libdir}/libmythtv-31.so.*
-%{_libdir}/libmythui-31.so.*
-%{_libdir}/libmythupnp-31.so.*
+%{_libdir}/libmyth-32.so.*
+%{_libdir}/libmythbase-32.so.*
+%{_libdir}/libmythfreemheg-32.so.*
+%{_libdir}/libmythmetadata-32.so.*
+%{_libdir}/libmythprotoserver-32.so.*
+%{_libdir}/libmythservicecontracts-32.so.*
+%{_libdir}/libmythtv-32.so.*
+%{_libdir}/libmythui-32.so.*
+%{_libdir}/libmythupnp-32.so.*
+%{_libdir}/libmythexiv2-*.so.32*
%files devel
%{_includedir}/*
@@ -1304,7 +1306,6 @@ exit 0
%if %{with plugins}
%files -n mythplugins
-%doc mythplugins/COPYING
%if %{with mytharchive}
%files -n mytharchive
@@ -1323,7 +1324,6 @@ exit 0
%if %{with mythbrowser}
%files -n mythbrowser
%doc mythplugins/mythbrowser/AUTHORS
-%doc mythplugins/mythbrowser/COPYING
%doc mythplugins/mythbrowser/README
%{_libdir}/mythtv/plugins/libmythbrowser.so
%{_datadir}/mythtv/i18n/mythbrowser_*.qm
@@ -1357,7 +1357,6 @@ exit 0
%if %{with mythnews}
%files -n mythnews
%doc mythplugins/mythnews/AUTHORS
-%doc mythplugins/mythnews/COPYING
%doc mythplugins/mythnews/README
%{_libdir}/mythtv/plugins/libmythnews.so
%{_datadir}/mythtv/mythnews
@@ -1401,8 +1400,9 @@ exit 0
################################################################################
%changelog
-* Wed Feb 09 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 31.0-26.173.20220120git4f7953f6ee
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+* Thu May 12 2022 Andrew Bauer <zonexpertconsulting(a)outlook.com> - 32.0-1.30.20220120gitg26079f815
+- Update to latest fixes/32
+- Add python setuptools, soundtouch, libzip, and expat build dependencies
* Sat Jan 22 2022 Andrew Bauer <zonexpertconsulting(a)outlook.com> - 31.0-25.167.20220120gitg4f7953f6e
- Update to latest fixes/31
diff --git a/sources b/sources
index a5bbf3d..66a8de8 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-SHA512 (mythtv-31.0.tar.gz) = d53817231409934ef37d12739c38cf6936f04f816b0ba1c9738ce99b5b4ff387c70b683ccd84f649ff2f74992b2158829f5f1d1ffe06c8768da1922b90439f6e
-SHA512 (v31.0..0680b37c68.patch) = 9bbeb1c1211dae2d696f7d7cf3d2838c3e0eb579a573a3e789a149f3fa918d7e46ee37d5fc68f29312e575adaae5db191bef54a4e16b51d42edd86bed55b0130
+SHA512 (mythtv-32.0.tar.gz) = 6a1472c954b929319a570d76769ababad43d086d53b6679c9d6da91446677f04b71918b326bb4ff0fc16fbaf7d9a447a86f623a6f1399f9ed29ca86a9782396c
diff --git a/v32.0..26079f815a.patch b/v32.0..26079f815a.patch
new file mode 100644
index 0000000..cf838d0
--- /dev/null
+++ b/v32.0..26079f815a.patch
@@ -0,0 +1,2159 @@
+From 28d360e98916ae065292fa29675c48faff742923 Mon Sep 17 00:00:00 2001
+From: Paul Harrison <paul(a)mythqml.net>
+Date: Thu, 24 Feb 2022 11:40:20 +0000
+Subject: [PATCH 01/29] Revert "NuppelVideoRecorder.cpp: convert to QtEndian"
+
+This commit is causing problems with the Ubuntu s390x builds and
+possibly other big endian builds.
+
+This reverts commit 9ad661568042ec1d36645105bbd9a50ece23659d.
+
+(cherry picked from commit dd3dcfbb7b308c53be1b48bafc3410d0e0bf4e08)
+---
+ .../recorders/NuppelVideoRecorder.cpp | 102 ++++++++++++------
+ 1 file changed, 67 insertions(+), 35 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp b/mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp
+index d880ff574bf..81ac26cc4ff 100644
+--- a/mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp
++++ b/mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp
+@@ -15,8 +15,6 @@
+ #include <cerrno>
+ #include <cmath>
+
+-#include <QtGlobal>
+-#include <QtEndian>
+ #include <QStringList>
+
+ #include <iostream>
+@@ -35,6 +33,41 @@
+ #include "mythavutil.h"
+ #include "fourcc.h"
+
++#if HAVE_BIGENDIAN
++extern "C" {
++#ifndef MYTHTV_BSWAP_H
++#define MYTHTV_BSWAP_H
++
++#include <cstdint> /* uint32_t */
++
++#define bswap_dbl(x) bswap_64(x)
++
++#if HAVE_BYTESWAP_H
++# include <byteswap.h> /* bswap_16|32|64 */
++#elif HAVE_SYS_ENDIAN_H
++# include <sys/endian.h>
++# if !defined(bswap_16) && defined(bswap16)
++# define bswap_16(x) bswap16(x)
++# endif
++# if !defined(bswap_32) && defined(bswap32)
++# define bswap_32(x) bswap32(x)
++# endif
++# if !defined(bswap_64) && defined(bswap64)
++# define bswap_64(x) bswap64(x)
++# endif
++#elif CONFIG_DARWIN
++# include <libkern/OSByteOrder.h>
++# define bswap_16(x) OSSwapInt16(x)
++# define bswap_32(x) OSSwapInt32(x)
++# define bswap_64(x) OSSwapInt64(x)
++#elif HAVE_BIGENDIAN
++# error Byte swapping functions not defined for this platform
++#endif
++
++#endif /* ndef MYTHTV_BSWAP_H */
++}
++#endif
++
+ extern "C" {
+ #include "libswscale/swscale.h"
+ #include "libavutil/imgutils.h"
+@@ -1441,9 +1474,9 @@ void NuppelVideoRecorder::BufferIt(unsigned char *buf, int len, bool forcekey)
+
+ inline void NuppelVideoRecorder::WriteFrameheader(rtframeheader *fh)
+ {
+-#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
+- fh->timecode = qToLittleEndian<qint32>(fh->timecode);
+- fh->packetlength = qToLittleEndian<qint32>(fh->packetlength);
++#if HAVE_BIGENDIAN
++ fh->timecode = bswap_32(fh->timecode);
++ fh->packetlength = bswap_32(fh->packetlength);
+ #endif
+ m_ringBuffer->Write(fh, FRAMEHEADERSIZE);
+ }
+@@ -1487,17 +1520,17 @@ void NuppelVideoRecorder::WriteFileHeader(void)
+ fileheader.textsblocks = -1; // TODO: make only -1 if VBI support active?
+ fileheader.keyframedist = KEYFRAMEDIST;
+
+-#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
+- fileheader.width = qToLittleEndian<qint32>(fileheader.width);
+- fileheader.height = qToLittleEndian<qint32>(fileheader.height);
+- fileheader.desiredwidth = qToLittleEndian<qint32>(fileheader.desiredwidth);
+- fileheader.desiredheight = qToLittleEndian<qint32>(fileheader.desiredheight);
+- fileheader.aspect = reinterpret_cast<double>(qToLittleEndian<quint64>(reinterpret_cast<quint64>(fileheader.aspect)));
+- fileheader.fps = reinterpret_cast<double>(qToLittleEndian<quint64>(reinterpret_cast<quint64>(fileheader.fps)));
+- fileheader.videoblocks = qToLittleEndian<qint32>(fileheader.videoblocks);
+- fileheader.audioblocks = qToLittleEndian<qint32>(fileheader.audioblocks);
+- fileheader.textsblocks = qToLittleEndian<qint32>(fileheader.textsblocks);
+- fileheader.keyframedist = qToLittleEndian<qint32>(fileheader.keyframedist);
++#if HAVE_BIGENDIAN
++ fileheader.width = bswap_32(fileheader.width);
++ fileheader.height = bswap_32(fileheader.height);
++ fileheader.desiredwidth = bswap_32(fileheader.desiredwidth);
++ fileheader.desiredheight = bswap_32(fileheader.desiredheight);
++ fileheader.aspect = bswap_dbl(fileheader.aspect);
++ fileheader.fps = bswap_dbl(fileheader.fps);
++ fileheader.videoblocks = bswap_32(fileheader.videoblocks);
++ fileheader.audioblocks = bswap_32(fileheader.audioblocks);
++ fileheader.textsblocks = bswap_32(fileheader.textsblocks);
++ fileheader.keyframedist = bswap_32(fileheader.keyframedist);
+ #endif
+ m_ringBuffer->Write(&fileheader, FILEHEADERSIZE);
+ }
+@@ -1591,24 +1624,24 @@ void NuppelVideoRecorder::WriteHeader(void)
+
+ m_extendedDataOffset = m_ringBuffer->GetWritePosition();
+
+-#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
+- moredata.version = qToLittleEndian<qint32>(moredata.version);
+- moredata.video_fourcc = qToLittleEndian<qint32>(moredata.video_fourcc);
+- moredata.audio_fourcc = qToLittleEndian<qint32>(moredata.audio_fourcc);
+- moredata.audio_sample_rate = qToLittleEndian<qint32>(moredata.audio_sample_rate);
+- moredata.audio_bits_per_sample = qToLittleEndian<qint32>(moredata.audio_bits_per_sample);
+- moredata.audio_channels = qToLittleEndian<qint32>(moredata.audio_channels);
+- moredata.audio_compression_ratio = qToLittleEndian<qint32>(moredata.audio_compression_ratio);
+- moredata.audio_quality = qToLittleEndian<qint32>(moredata.audio_quality);
+- moredata.rtjpeg_quality = qToLittleEndian<qint32>(moredata.rtjpeg_quality);
+- moredata.rtjpeg_luma_filter = qToLittleEndian<qint32>(moredata.rtjpeg_luma_filter);
+- moredata.rtjpeg_chroma_filter = qToLittleEndian<qint32>(moredata.rtjpeg_chroma_filter);
+- moredata.lavc_bitrate = qToLittleEndian<qint32>(moredata.lavc_bitrate);
+- moredata.lavc_qmin = qToLittleEndian<qint32>(moredata.lavc_qmin);
+- moredata.lavc_qmax = qToLittleEndian<qint32>(moredata.lavc_qmax);
+- moredata.lavc_maxqdiff = qToLittleEndian<qint32>(moredata.lavc_maxqdiff);
+- moredata.seektable_offset = qToLittleEndian<qint64>(moredata.seektable_offset);
+- moredata.keyframeadjust_offset = qToLittleEndian<qint64>(moredata.keyframeadjust_offset);
++#if HAVE_BIGENDIAN
++ moredata.version = bswap_32(moredata.version);
++ moredata.video_fourcc = bswap_32(moredata.video_fourcc);
++ moredata.audio_fourcc = bswap_32(moredata.audio_fourcc);
++ moredata.audio_sample_rate = bswap_32(moredata.audio_sample_rate);
++ moredata.audio_bits_per_sample = bswap_32(moredata.audio_bits_per_sample);
++ moredata.audio_channels = bswap_32(moredata.audio_channels);
++ moredata.audio_compression_ratio = bswap_32(moredata.audio_compression_ratio);
++ moredata.audio_quality = bswap_32(moredata.audio_quality);
++ moredata.rtjpeg_quality = bswap_32(moredata.rtjpeg_quality);
++ moredata.rtjpeg_luma_filter = bswap_32(moredata.rtjpeg_luma_filter);
++ moredata.rtjpeg_chroma_filter = bswap_32(moredata.rtjpeg_chroma_filter);
++ moredata.lavc_bitrate = bswap_32(moredata.lavc_bitrate);
++ moredata.lavc_qmin = bswap_32(moredata.lavc_qmin);
++ moredata.lavc_qmax = bswap_32(moredata.lavc_qmax);
++ moredata.lavc_maxqdiff = bswap_32(moredata.lavc_maxqdiff);
++ moredata.seektable_offset = bswap_64(moredata.seektable_offset);
++ moredata.keyframeadjust_offset = bswap_64(moredata.keyframeadjust_offset);
+ #endif
+ m_ringBuffer->Write(&moredata, sizeof(moredata));
+
+@@ -2527,7 +2560,6 @@ void NuppelVideoRecorder::WriteAudio(unsigned char *buf, int fnum, std::chrono::
+ for (int i = 0; i < m_audioChannels * sample_cnt; i++)
+ buf16[i] = qToLittleEndian<uint16_t>(buf16[i]);
+ #endif
+-
+ if (m_audioChannels == 2)
+ {
+ lameret = lame_encode_buffer_interleaved(
+
+From 56275b303bf7c7fec99993d1fff568708d0b985b Mon Sep 17 00:00:00 2001
+From: Anton Khirnov <anton(a)khirnov.net>
+Date: Thu, 24 Feb 2022 11:11:28 -0500
+Subject: [PATCH 02/29] configure: link to libatomic when it's present
+
+C11 atomics in some configurations (e.g. 64bit operations on ppc64 with
+GCC) require linking to libatomic.
+
+Fixes #499
+
+Signed-off-by: Peter Bennett <pbennett(a)mythtv.org>
+(cherry picked from commit 85d37a59152f4606fa729b694b50d955f7f28de4)
+---
+ mythtv/external/FFmpeg/configure | 25 ++++++++++++++++---------
+ 1 file changed, 16 insertions(+), 9 deletions(-)
+
+diff --git a/mythtv/external/FFmpeg/configure b/mythtv/external/FFmpeg/configure
+index c9fc6dc1ba4..19cae20bab6 100755
+--- a/mythtv/external/FFmpeg/configure
++++ b/mythtv/external/FFmpeg/configure
+@@ -3707,23 +3707,23 @@ cws2fws_extralibs="zlib_extralibs"
+
+ # libraries, in any order
+ avcodec_deps="avutil"
+-avcodec_suggest="libm"
++avcodec_suggest="libm stdatomic"
+ avcodec_select="null_bsf"
+ avdevice_deps="avformat avcodec avutil"
+-avdevice_suggest="libm"
++avdevice_suggest="libm stdatomic"
+ avfilter_deps="avutil"
+-avfilter_suggest="libm"
++avfilter_suggest="libm stdatomic"
+ avformat_deps="avcodec avutil"
+-avformat_suggest="libm network zlib"
++avformat_suggest="libm network zlib stdatomic"
+ avresample_deps="avutil"
+ avresample_suggest="libm"
+-avutil_suggest="clock_gettime ffnvcodec libm libdrm libmfx opencl user32 vaapi vulkan videotoolbox corefoundation corevideo coremedia bcrypt"
++avutil_suggest="clock_gettime ffnvcodec libm libdrm libmfx opencl user32 vaapi vulkan videotoolbox corefoundation corevideo coremedia bcrypt stdatomic"
+ postproc_deps="avutil gpl"
+-postproc_suggest="libm"
++postproc_suggest="libm stdatomic"
+ swresample_deps="avutil"
+-swresample_suggest="libm libsoxr"
++swresample_suggest="libm libsoxr stdatomic"
+ swscale_deps="avutil"
+-swscale_suggest="libm"
++swscale_suggest="libm stdatomic"
+
+ avcodec_extralibs="pthreads_extralibs iconv_extralibs dxva2_extralibs"
+ avfilter_extralibs="pthreads_extralibs"
+@@ -6188,7 +6188,14 @@ check_headers asm/types.h
+ # it seems there are versions of clang in some distros that try to use the
+ # gcc headers, which explodes for stdatomic
+ # so we also check that atomics actually work here
+-check_builtin stdatomic stdatomic.h "atomic_int foo, bar = ATOMIC_VAR_INIT(-1); atomic_store(&foo, 0); foo += bar"
++#
++# some configurations also require linking to libatomic, so try
++# both with -latomic and without
++for LATOMIC in "-latomic" ""; do
++ check_builtin stdatomic stdatomic.h \
++ "atomic_int foo, bar = ATOMIC_VAR_INIT(-1); atomic_store(&foo, 0); foo += bar" \
++ $LATOMIC && eval stdatomic_extralibs="\$LATOMIC" && break
++done
+
+ check_lib advapi32 "windows.h" RegCloseKey -ladvapi32
+ check_lib bcrypt "windows.h bcrypt.h" BCryptGenRandom -lbcrypt &&
+
+From 75cf5040eff2aa6b7dc075462311de7c277b9375 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin(a)martin.st>
+Date: Thu, 24 Feb 2022 20:00:00 -0500
+Subject: [PATCH 03/29] configure: arm: Don't add -march= to the compiler if no
+ preference was passed
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+If no --cpu= option was passed to configure, we detect what the
+compiler defaults to. This detected value was then fed back to the
+rest of the configure logic, as if it was an explicit choice.
+
+This breaks on Ubuntu 21.10 with GCC 11.1.
+
+Since GCC 8, it's possible to add configure extra features via the
+-march option, like e.g. -march=armv7-a+neon. If the -mfpu= option
+is configured to default to 'auto', the fpu setting gets taken
+from the -march option.
+
+GCC 11.1 in Ubuntu seems to be configured to use -mfpu=auto. This
+has the effect of breaking any compilation command that specifies
+-march=armv7-a, because the driver implicitly also adds -mfloat-abi=hard,
+and that combination results in this error:
+
+ cc1: error: ‘-mfloat-abi=hard’: selected processor lacks an FPU
+
+One can compile successfully by passing e.g. -march=armv7-a+fp.
+
+Therefore, restructure configure. If no specific preference was set
+(and the 'cpu' configure variable was set as the output of
+probe_arm_arch), the value we tried to set via -march= was the same
+value that we just tried to detect as the compiler default.
+
+So instead, just try to detect what the compiler defaults to, with
+to allow setting other configure settings (such as 'fast_unaligned'),
+but don't try to spell out the compiler's default via the -march flag.
+
+Signed-off-by: Peter Bennett <pbennett(a)mythtv.org>
+(cherry picked from commit 6a79086179f0ffc6572285bfae4875a4db9a8610)
+---
+ mythtv/external/FFmpeg/configure | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/mythtv/external/FFmpeg/configure b/mythtv/external/FFmpeg/configure
+index 19cae20bab6..a270a5a9fcf 100755
+--- a/mythtv/external/FFmpeg/configure
++++ b/mythtv/external/FFmpeg/configure
+@@ -4986,9 +4986,11 @@ elif enabled arm; then
+ fi
+ }
+
+- [ "$cpu" = generic ] && cpu=$(probe_arm_arch)
+
+ case $cpu in
++ generic)
++ subarch=$(probe_arm_arch | sed 's/[^a-z0-9]//g')
++ ;;
+ armv*)
+ cpuflags="-march=$cpu"
+ subarch=$(echo $cpu | sed 's/[^a-z0-9]//g')
+
+From 75b942fd8cdf6979463c72c75e2919e18552c644 Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Sat, 26 Feb 2022 11:13:47 -0500
+Subject: [PATCH 04/29] Fix CPU detection for armhf
+
+This applies the same fix in MythTV as was applied in 75cf504 to FFmpeg.
+The same code is in MythTV and needs the same fix.
+
+Fixes #505
+
+(cherry picked from commit 13e75f1e900ae923bdfa61cda56f33f7a5521c17)
+---
+ mythtv/configure | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/mythtv/configure b/mythtv/configure
+index d7349a91cd4..fda2057a282 100755
+--- a/mythtv/configure
++++ b/mythtv/configure
+@@ -4308,9 +4308,10 @@ elif enabled arm; then
+ fi
+ }
+
+- [ "$cpu" = generic ] && cpu=$(probe_arm_arch)
+-
+ case $cpu in
++ generic)
++ subarch=$(probe_arm_arch | sed 's/[^a-z0-9]//g')
++ ;;
+ armv*)
+ cpuflags="-march=$cpu"
+ subarch=$(echo $cpu | sed 's/[^a-z0-9]//g')
+
+From 44a45272517a8122369d74f149dc86432afe3ac0 Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Mon, 28 Feb 2022 21:23:06 +0100
+Subject: [PATCH 05/29] Remove extraneous ? character in Sat>IP OPTIONS message
+
+The extraneous ? character occurs when the QUrl query is initialized to an empty string "".
+Fixed by replacing the "" by a QString() in the OPTIONS and the PLAY query composition.
+Thanks to Mike Bibbings for reporting and fixing this for the TEARDOWN command,
+see https://code.mythtv.org/trac/ticket/13121#comment:20
+
+Refs #13121
+
+(cherry picked from commit 26cc38423e2e4ede89dfabd9971196b83e17aadd)
+---
+ mythtv/libs/libmythtv/recorders/satiprtsp.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/recorders/satiprtsp.cpp b/mythtv/libs/libmythtv/recorders/satiprtsp.cpp
+index 502b49f8d12..531eb64b009 100644
+--- a/mythtv/libs/libmythtv/recorders/satiprtsp.cpp
++++ b/mythtv/libs/libmythtv/recorders/satiprtsp.cpp
+@@ -188,7 +188,7 @@ bool SatIPRTSP::Play(QStringList &pids)
+ LOG(VB_RECORD, LOG_DEBUG, LOC2 + "PLAY");
+
+ QUrl url = QUrl(m_requestUrl);
+- url.setQuery("");
++ url.setQuery(QString());
+ url.setPath(QString("/stream=%1").arg(m_streamid));
+
+ QString pids_str = QString("pids=%1").arg(!pids.empty() ? pids.join(",") : "none");
+@@ -417,7 +417,7 @@ void SatIPRTSP::timerEvent(QTimerEvent* timerEvent)
+
+ QUrl url = QUrl(m_requestUrl);
+ url.setPath("/");
+- url.setQuery("");
++ url.setQuery(QString());
+
+ sendMessage(url, "OPTIONS");
+ }
+
+From e78a0c0042ea20240adef7566676ddeec4c2fb88 Mon Sep 17 00:00:00 2001
+From: David Engel <dengel(a)mythtv.org>
+Date: Fri, 4 Mar 2022 10:44:01 -0600
+Subject: [PATCH 06/29] Fix playback hangs at end of file.
+
+Refs #511
+
+(cherry picked from commit 4e35b3f712bd5dc79a99c9566e96103b88e9648d)
+---
+ mythtv/libs/libmythtv/mythplayer.cpp | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
+index 8f7ac450c67..6a9f0738ebd 100644
+--- a/mythtv/libs/libmythtv/mythplayer.cpp
++++ b/mythtv/libs/libmythtv/mythplayer.cpp
+@@ -833,15 +833,10 @@ bool MythPlayer::PrebufferEnoughFrames(int min_buffers)
+ return false;
+ }
+
+- // Make sure we have at least one frame available. The EOF case
+- // can get here without one.
+- if (!m_videoOutput->ValidVideoFrames())
+- return false;
+-
+ if (!m_avSync.GetAVSyncAudioPause())
+ m_audio.Pause(false);
+ SetBuffering(false);
+- return true;
++ return m_videoOutput->ValidVideoFrames();
+ }
+
+ void MythPlayer::VideoEnd(void)
+
+From 043507cd6f638af4033ae7faca00dec4edc8deb2 Mon Sep 17 00:00:00 2001
+From: Scott Theisen <scott.the.elm(a)gmail.com>
+Date: Wed, 9 Mar 2022 20:53:30 -0600
+Subject: [PATCH 07/29] Fig logic bug in std::chrono conversion commit
+ c71a8672.
+
+Signed-off-by: David Engel <dengel(a)mythtv.org>
+(cherry picked from commit acf5188a1f799c774ed21735305391c6532e072b)
+---
+ mythtv/libs/libmythtv/mythplayer.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
+index 6a9f0738ebd..ebd060fd4d5 100644
+--- a/mythtv/libs/libmythtv/mythplayer.cpp
++++ b/mythtv/libs/libmythtv/mythplayer.cpp
+@@ -253,7 +253,7 @@ bool MythPlayer::IsPlaying(std::chrono::milliseconds wait_in_msec, bool wait_for
+ {
+ QMutexLocker locker(&m_playingLock);
+
+- if (wait_in_msec != 0ms)
++ if (wait_in_msec == 0ms)
+ return m_playing;
+
+ MythTimer t;
+
+From ae60e8302fab769dd0aacb091d195b1cef08ad9c Mon Sep 17 00:00:00 2001
+From: Scott Theisen <scott.the.elm(a)gmail.com>
+Date: Thu, 10 Mar 2022 20:30:13 -0600
+Subject: [PATCH 08/29] Use separate end-of-playback checks for
+ audio-only/mostly content and normal/video-only content.
+
+Refs #511
+
+Signed-off-by: David Engel <dengel(a)mythtv.org>
+(cherry picked from commit 367539575cc43b0a7ef5ce3f40d8e50fcb144ec8)
+---
+ mythtv/libs/libmythtv/mythplayerui.cpp | 24 +++++++++++++++++-------
+ 1 file changed, 17 insertions(+), 7 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/mythplayerui.cpp b/mythtv/libs/libmythtv/mythplayerui.cpp
+index 7041fa996fe..bb50f71d8cc 100644
+--- a/mythtv/libs/libmythtv/mythplayerui.cpp
++++ b/mythtv/libs/libmythtv/mythplayerui.cpp
+@@ -239,13 +239,23 @@ void MythPlayerUI::EventLoop()
+ return;
+ }
+
+- bool videoDrained =
+- m_videoOutput && m_videoOutput->ValidVideoFrames() < 1;
+- bool audioDrained =
+- !m_audio.GetAudioOutput() ||
+- m_audio.IsPaused() ||
+- m_audio.GetAudioOutput()->GetAudioBufferedTime() < 100ms;
+- if (eof != kEofStateDelayed || (videoDrained && audioDrained))
++ bool drained = false;
++ if (FlagIsSet(kVideoIsNull) || FlagIsSet(kMusicChoice))
++ {
++ // We have audio only or mostly audio content. Exit when
++ // the audio is drained.
++ drained =
++ !m_audio.GetAudioOutput() ||
++ m_audio.IsPaused() ||
++ m_audio.GetAudioOutput()->GetAudioBufferedTime() < 100ms;
++ }
++ else
++ {
++ // We have normal or video only content. Exit when the
++ // video is drained.
++ drained = m_videoOutput && !m_videoOutput->ValidVideoFrames();
++ }
++ if (eof != kEofStateDelayed || drained)
+ {
+ if (eof == kEofStateDelayed)
+ {
+
+From 36c5630035864fa5d8efdaec8b0ef6c98067bc67 Mon Sep 17 00:00:00 2001
+From: David Hampton <mythtv(a)love2code.net>
+Date: Mon, 14 Mar 2022 11:57:26 -0400
+Subject: [PATCH 09/29] Fix MythDate::formatTime to handle times greater than
+ 24 hours.
+
+(cherry picked from commit 2d7a09e40f55c13e203994aa4031f7de111fc97f)
+---
+ mythtv/libs/libmythbase/mythdate.cpp | 30 ++++++++++++++++++++++++++++
+ mythtv/libs/libmythbase/mythdate.h | 20 ++-----------------
+ 2 files changed, 32 insertions(+), 18 deletions(-)
+
+diff --git a/mythtv/libs/libmythbase/mythdate.cpp b/mythtv/libs/libmythbase/mythdate.cpp
+index 69d12c65574..f367af3c205 100644
+--- a/mythtv/libs/libmythbase/mythdate.cpp
++++ b/mythtv/libs/libmythbase/mythdate.cpp
+@@ -206,4 +206,34 @@ std::chrono::seconds secsInFuture (const QDateTime& future)
+ return std::chrono::seconds(MythDate::current().secsTo(future));
+ }
+
++/**
++ * \brief Format a milliseconds time value
++ *
++ * Convert a millisecond time value into a textual representation of the value.
++ *
++ * \param msecs The time value in milliseconds. Since the type of this
++ * field is std::chrono::duration, any duration of a larger
++ * interval can be passed to this function and the compiler will
++ * convert it to milliseconds.
++ *
++ * \param fmt A formatting string specifying how to output the time.
++ * See QTime::toString for the definition of valid formatting
++ * characters.
++ */
++QString formatTime(std::chrono::milliseconds msecs, QString fmt)
++{
++ int count = 0;
++
++ // QTime can't handle times of more than 24 hours. Do that part
++ // of the formatting manually, and then let QTime::toString handle
++ // the rest of the formatting.
++ while (fmt[count] == QLatin1Char('H'))
++ count++;
++ fmt.remove(0, count);
++
++ QString result = QString("%1").arg(msecs / 1h, count,10,QLatin1Char('0'));
++ msecs = msecs % 1h;
++ return result + QTime::fromMSecsSinceStartOfDay(msecs.count()).toString(fmt);
++}
++
+ }; // namespace MythDate
+diff --git a/mythtv/libs/libmythbase/mythdate.h b/mythtv/libs/libmythbase/mythdate.h
+index 17722debbec..e84e536e3ec 100644
+--- a/mythtv/libs/libmythbase/mythdate.h
++++ b/mythtv/libs/libmythbase/mythdate.h
+@@ -60,24 +60,8 @@ MBASE_PUBLIC std::chrono::milliseconds currentMSecsSinceEpochAsDuration(void);
+ MBASE_PUBLIC std::chrono::seconds secsInPast (const QDateTime& past);
+ MBASE_PUBLIC std::chrono::seconds secsInFuture (const QDateTime& future);
+
+-/**
+- * \brief Format a milliseconds time value
+- *
+- * Convert a millisecond time value into a textual representation of the value.
+- *
+- * \param msecs The time value in milliseconds. Since the type of this
+- * field is std::chrono::duration, any duration of a larger
+- * interval can be passed to this function and the compiler will
+- * convert it to milliseconds.
+- *
+- * \param fmt A formatting string specifying how to output the time.
+- * See QTime::toString for the a definition fo valid formatting
+- * characters.
+- */
+-inline QString formatTime(std::chrono::milliseconds msecs, const QString& fmt)
+-{
+- return QTime::fromMSecsSinceStartOfDay(msecs.count()).toString(fmt);
+-}
++MBASE_PUBLIC QString formatTime(std::chrono::milliseconds msecs,
++ QString fmt = "HH:mm:ss");
+
+ } // namespace MythDate
+
+
+From d5fe42fc6b994c716c70901173d876c53200b50c Mon Sep 17 00:00:00 2001
+From: David Hampton <mythtv(a)love2code.net>
+Date: Tue, 15 Mar 2022 17:41:48 -0400
+Subject: [PATCH 10/29] Better fix for MythDate::formatTime to handle
+ overflows.
+
+Fixes #520.
+
+(cherry picked from commit 65b9c73adacabe38877c3e18af5d4a0545799c16)
+---
+ mythtv/libs/libmythbase/mythdate.cpp | 60 +++++++++++++++----
+ mythtv/libs/libmythbase/mythdate.h | 4 +-
+ .../libmythbase/test/test_mythdate/.gitignore | 1 +
+ .../test/test_mythdate/test_mythdate.cpp | 59 ++++++++++++++++++
+ .../test/test_mythdate/test_mythdate.h | 33 ++++++++++
+ .../test/test_mythdate/test_mythdate.pro | 20 +++++++
+ mythtv/libs/libmythmetadata/lyricsdata.h | 3 +-
+ mythtv/libs/libmythtv/Bluray/mythbdbuffer.cpp | 3 +-
+ 8 files changed, 163 insertions(+), 20 deletions(-)
+ create mode 100644 mythtv/libs/libmythbase/test/test_mythdate/.gitignore
+ create mode 100644 mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.cpp
+ create mode 100644 mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.h
+ create mode 100644 mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.pro
+
+diff --git a/mythtv/libs/libmythbase/mythdate.cpp b/mythtv/libs/libmythbase/mythdate.cpp
+index f367af3c205..57eaceecd78 100644
+--- a/mythtv/libs/libmythbase/mythdate.cpp
++++ b/mythtv/libs/libmythbase/mythdate.cpp
+@@ -1,5 +1,6 @@
+ #include <QtGlobal>
+ #include <QCoreApplication>
++#include <QRegularExpression>
+
+ #include "mythcorecontext.h"
+ #include "mythdate.h"
+@@ -209,7 +210,11 @@ std::chrono::seconds secsInFuture (const QDateTime& future)
+ /**
+ * \brief Format a milliseconds time value
+ *
+- * Convert a millisecond time value into a textual representation of the value.
++ * Convert a millisecond time value into a textual representation of
++ * the value. QTime can't handle overflow of any of the fields, so the
++ * formatting needs to be done manually. Think a music playlist of
++ * more than 24 hours, or a single song of more than 60 minutes
++ * (e.g. a podcast or something like that).
+ *
+ * \param msecs The time value in milliseconds. Since the type of this
+ * field is std::chrono::duration, any duration of a larger
+@@ -222,18 +227,47 @@ std::chrono::seconds secsInFuture (const QDateTime& future)
+ */
+ QString formatTime(std::chrono::milliseconds msecs, QString fmt)
+ {
+- int count = 0;
+-
+- // QTime can't handle times of more than 24 hours. Do that part
+- // of the formatting manually, and then let QTime::toString handle
+- // the rest of the formatting.
+- while (fmt[count] == QLatin1Char('H'))
+- count++;
+- fmt.remove(0, count);
+-
+- QString result = QString("%1").arg(msecs / 1h, count,10,QLatin1Char('0'));
+- msecs = msecs % 1h;
+- return result + QTime::fromMSecsSinceStartOfDay(msecs.count()).toString(fmt);
++ static const QRegularExpression hRe("H+");
++ static const QRegularExpression mRe("m+");
++ static const QRegularExpression sRe("s+");
++ static const QRegularExpression zRe("z+");
++
++ QRegularExpressionMatch match = hRe.match(fmt);
++ if (match.hasMatch())
++ {
++ int width = match.capturedLength();
++ QString text = QString("%1").arg(msecs / 1h, width,10,QLatin1Char('0'));
++ fmt.replace(match.capturedStart(), width, text);
++ msecs = msecs % 1h;
++ }
++
++ match = mRe.match(fmt);
++ if (match.hasMatch())
++ {
++ int width = match.capturedLength();
++ QString text = QString("%1").arg(msecs / 1min, width,10,QLatin1Char('0'));
++ fmt.replace(match.capturedStart(), width, text);
++ msecs = msecs % 1min;
++ }
++
++ match = sRe.match(fmt);
++ if (match.hasMatch())
++ {
++ int width = match.capturedLength();
++ QString text = QString("%1").arg(msecs / 1s, width,10,QLatin1Char('0'));
++ fmt.replace(match.capturedStart(), width, text);
++ }
++
++ match = zRe.match(fmt);
++ if (match.hasMatch())
++ {
++ static constexpr std::array<int,4> divisor = {1000, 100, 10, 1};
++ int width = std::min(3, static_cast<int>(match.capturedLength()));
++ int value = (msecs % 1s).count() / divisor[width];
++ QString text = QString("%1").arg(value, width,10,QLatin1Char('0'));
++ fmt.replace(match.capturedStart(), match.capturedLength(), text);
++ }
++ return fmt;
+ }
+
+ }; // namespace MythDate
+diff --git a/mythtv/libs/libmythbase/mythdate.h b/mythtv/libs/libmythbase/mythdate.h
+index e84e536e3ec..338ae246671 100644
+--- a/mythtv/libs/libmythbase/mythdate.h
++++ b/mythtv/libs/libmythbase/mythdate.h
+@@ -1,13 +1,11 @@
+ #ifndef MYTH_DATE_H
+ #define MYTH_DATE_H
+
+-#include <chrono>
+-using namespace std::chrono_literals;
+-
+ #include <QDateTime>
+ #include <QString>
+
+ #include "mythbaseexp.h"
++#include "mythchrono.h"
+
+ namespace MythDate
+ {
+diff --git a/mythtv/libs/libmythbase/test/test_mythdate/.gitignore b/mythtv/libs/libmythbase/test/test_mythdate/.gitignore
+new file mode 100644
+index 00000000000..eb29467486c
+--- /dev/null
++++ b/mythtv/libs/libmythbase/test/test_mythdate/.gitignore
+@@ -0,0 +1 @@
++test_mythdate
+diff --git a/mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.cpp b/mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.cpp
+new file mode 100644
+index 00000000000..3e85e724d15
+--- /dev/null
++++ b/mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.cpp
+@@ -0,0 +1,59 @@
++/*
++ * Class TestMythDate
++ *
++ * Copyright (c) David Hampton 2022
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License as published by
++ * the Free Software Foundation; either version 2 of the License, or
++ * (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
++ */
++#include "test_mythdate.h"
++
++void TestMythDate::formatting_data(void)
++{
++ QTest::addColumn<std::chrono::milliseconds>("msecs");
++ QTest::addColumn<QString>("fmt");
++ QTest::addColumn<QString>("expected");
++
++ QTest::newRow( "m:ss") << 192876ms << "m:ss" << "3:12";
++ QTest::newRow( "mm:ss") << 192876ms << "mm:ss" << "03:12";
++ QTest::newRow( "mm:ss oflow") << 17112876ms << "mm:ss" << "285:12";
++ QTest::newRow(" H:mm:ss") << 17112876ms << "H:mm:ss" << "4:45:12";
++ QTest::newRow("HH:mm:ss") << 17112876ms << "HH:mm:ss" << "04:45:12";
++ QTest::newRow(" H:mm:ss oflow") << 1169112876ms << "H:mm:ss" << "324:45:12";
++ QTest::newRow("HH:mm:ss oflow") << 1169112876ms << "HH:mm:ss" << "324:45:12";
++
++ QTest::newRow("HH:mm:ss.") << 17112876ms << "HH:mm:ss." << "04:45:12.";
++ QTest::newRow("HH:mm:ss.z") << 17112876ms << "HH:mm:ss.z" << "04:45:12.8";
++ QTest::newRow("HH:mm:ss.zz") << 17112876ms << "HH:mm:ss.zz" << "04:45:12.87";
++ QTest::newRow("HH:mm:ss.zzz") << 17112876ms << "HH:mm:ss.zzz" << "04:45:12.876";
++ QTest::newRow("HH:mm:ss.000") << 17112000ms << "HH:mm:ss.zzz" << "04:45:12.000";
++ QTest::newRow("HH:mm:ss.05") << 17112050ms << "HH:mm:ss.zz" << "04:45:12.05";
++
++ // Precison maxes out at 3. This is a millisecond function.
++ QTest::newRow("HH:mm:ss.zzzzzz")<< 17112876ms << "HH:mm:ss.zzzzzz" << "04:45:12.876";
++ QTest::newRow("silly overflow") << 1169112876ms << "HHHHHHHH:mm:ss.z" << "00000324:45:12.8";
++ QTest::newRow("random chars") << 1169112876ms << "!HH@mm#ss%zzzzzz" << "!324@45#12%876";
++}
++
++void TestMythDate::formatting(void)
++{
++ QFETCH(std::chrono::milliseconds, msecs);
++ QFETCH(QString, fmt);
++ QFETCH(QString, expected);
++
++ QString actual = MythDate::formatTime(std::chrono::milliseconds(msecs), fmt);
++ QCOMPARE(actual, expected);
++}
++
++QTEST_APPLESS_MAIN(TestMythDate)
+diff --git a/mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.h b/mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.h
+new file mode 100644
+index 00000000000..fd3bc648d02
+--- /dev/null
++++ b/mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.h
+@@ -0,0 +1,33 @@
++/*
++ * Class TestMythDate
++ *
++ * Copyright (c) David Hampton 2022
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License as published by
++ * the Free Software Foundation; either version 2 of the License, or
++ * (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
++ */
++
++#include <QtTest/QtTest>
++#include <iostream>
++
++#include "mythdate.h"
++
++class TestMythDate : public QObject
++{
++ Q_OBJECT
++
++ private slots:
++ static void formatting_data(void);
++ static void formatting(void);
++};
+diff --git a/mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.pro b/mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.pro
+new file mode 100644
+index 00000000000..f7949f7cb83
+--- /dev/null
++++ b/mythtv/libs/libmythbase/test/test_mythdate/test_mythdate.pro
+@@ -0,0 +1,20 @@
++include ( ../../../../settings.pro )
++include ( ../../../../test.pro )
++
++QT += testlib
++
++TEMPLATE = app
++TARGET = test_mythdate
++DEPENDPATH += . ../..
++INCLUDEPATH += . ../..
++LIBS += -L../.. -lmythbase-$$LIBVERSION
++LIBS += -Wl,$$_RPATH_$${PWD}/../..
++
++# Input
++HEADERS += test_mythdate.h
++SOURCES += test_mythdate.cpp
++
++QMAKE_CLEAN += $(TARGET)
++QMAKE_CLEAN += ; ( cd $(OBJECTS_DIR) && rm -f *.gcov *.gcda *.gcno )
++
++LIBS += $$EXTRA_LIBS $$LATE_LIBS
+diff --git a/mythtv/libs/libmythmetadata/lyricsdata.h b/mythtv/libs/libmythmetadata/lyricsdata.h
+index a790b2564bf..78bb4212afc 100644
+--- a/mythtv/libs/libmythmetadata/lyricsdata.h
++++ b/mythtv/libs/libmythmetadata/lyricsdata.h
+@@ -38,8 +38,7 @@ class META_PUBLIC LyricsLine
+ private:
+ QString formatTime(void) const
+ {
+- QString timestr = MythDate::formatTime(m_time,"mm:ss.zzz");
+- timestr.chop(1); // Chop 1 to return hundredths
++ QString timestr = MythDate::formatTime(m_time,"mm:ss.zz");
+ return QString("[%1]").arg(timestr);
+ }
+ };
+diff --git a/mythtv/libs/libmythtv/Bluray/mythbdbuffer.cpp b/mythtv/libs/libmythtv/Bluray/mythbdbuffer.cpp
+index 85aaaadd14f..9b0e604bb1c 100644
+--- a/mythtv/libs/libmythtv/Bluray/mythbdbuffer.cpp
++++ b/mythtv/libs/libmythtv/Bluray/mythbdbuffer.cpp
+@@ -719,8 +719,7 @@ bool MythBDBuffer::UpdateTitleInfo(void)
+ m_titlesize = bd_get_title_size(m_bdnav);
+ uint32_t chapter_count = GetNumChapters();
+ auto total_msecs = duration_cast<std::chrono::milliseconds>(m_currentTitleLength);
+- auto duration = MythDate::formatTime(total_msecs, "HH:mm:ss.zzz");
+- duration.chop(2); // Chop 2 to show tenths
++ auto duration = MythDate::formatTime(total_msecs, "HH:mm:ss.z");
+ LOG(VB_GENERAL, LOG_INFO, LOC + QString("New title info: Index %1 Playlist: %2 Duration: %3 ""Chapters: %5")
+ .arg(m_currentTitle).arg(m_currentTitleInfo->playlist).arg(duration).arg(chapter_count));
+ LOG(VB_GENERAL, LOG_INFO, LOC + QString("New title info: Clips: %1 Angles: %2 Title Size: %3 Frame Rate %4")
+
+From 9dcf2bb01eba126d304c323503c78ce36bbf595b Mon Sep 17 00:00:00 2001
+From: Scott Theisen <scott.the.elm(a)gmail.com>
+Date: Wed, 16 Mar 2022 12:42:28 -0400
+Subject: [PATCH 11/29] mythcommflag/CommDetector2.cpp: fix missed
+ MythDate::fortmatTime() uses
+
+hh should be HH; missed chop not replaced.
+
+(cherry picked from commit 19b0a7b2184a730f6e55c0cd2f41e26fb71ae2cf)
+---
+ mythtv/programs/mythcommflag/CommDetector2.cpp | 9 +++------
+ 1 file changed, 3 insertions(+), 6 deletions(-)
+
+diff --git a/mythtv/programs/mythcommflag/CommDetector2.cpp b/mythtv/programs/mythcommflag/CommDetector2.cpp
+index 244e8693602..aef37a8c1cf 100644
+--- a/mythtv/programs/mythcommflag/CommDetector2.cpp
++++ b/mythtv/programs/mythcommflag/CommDetector2.cpp
+@@ -252,23 +252,20 @@ QString frameToTimestamp(long long frameno, float fps)
+ {
+ auto ms = millisecondsFromFloat(frameno / fps * 1000);
+ auto secs = std::chrono::ceil<std::chrono::seconds>(ms);
+- return MythDate::formatTime(secs, "hh:mm:ss");
++ return MythDate::formatTime(secs, "HH:mm:ss");
+ }
+
+ QString frameToTimestampms(long long frameno, float fps)
+ {
+ auto ms = millisecondsFromFloat(frameno / fps * 1000);
+- QString timestr = MythDate::formatTime(ms, "mm:ss.zzz");
+- timestr.chop(1); // Chop 1 to return hundredths
++ QString timestr = MythDate::formatTime(ms, "mm:ss.zz");
+ return timestr;
+ }
+
+ QString strftimeval(std::chrono::microseconds usecs)
+ {
+ auto msecs = duration_cast<std::chrono::milliseconds>(usecs);
+- return QString("%1.%2")
+- .arg(duration_cast<std::chrono::seconds>(usecs).count())
+- .arg((msecs % 1s).count(), 3, 10, QChar(QChar('0')));
++ return MythDate::formatTime(msecs, "s.zzz");
+ }
+
+ }; /* namespace */
+
+From 5432d11672605878a7ab1964996edc7b0103087d Mon Sep 17 00:00:00 2001
+From: Scott Theisen <scott.the.elm(a)gmail.com>
+Date: Wed, 16 Mar 2022 14:09:35 -0400
+Subject: [PATCH 12/29] MythDate::formatTime(): update doxygen comment
+
+(cherry picked from commit 259a7fbe911da2ca229a513786172fcefeb8af07)
+---
+ mythtv/libs/libmythbase/mythdate.cpp | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/mythtv/libs/libmythbase/mythdate.cpp b/mythtv/libs/libmythbase/mythdate.cpp
+index 57eaceecd78..65c2b168e63 100644
+--- a/mythtv/libs/libmythbase/mythdate.cpp
++++ b/mythtv/libs/libmythbase/mythdate.cpp
+@@ -222,8 +222,10 @@ std::chrono::seconds secsInFuture (const QDateTime& future)
+ * convert it to milliseconds.
+ *
+ * \param fmt A formatting string specifying how to output the time.
+- * See QTime::toString for the definition of valid formatting
+- * characters.
++ * Valid formatting characters are <tt>"Hmsz"</tt> for hours, minutes, seconds,
++ * and milliseconds, respectively. Consecutive runs of these characters will
++ * be replaced by at least as many characters as the run length, zero padding
++ * if necessary.
+ */
+ QString formatTime(std::chrono::milliseconds msecs, QString fmt)
+ {
+
+From f69ce764b78a15989455957eda235d5b1993a08a Mon Sep 17 00:00:00 2001
+From: David Hampton <mythtv(a)love2code.net>
+Date: Thu, 24 Mar 2022 17:44:32 -0400
+Subject: [PATCH 13/29] Validate AV stream index before accessing stream.
+
+Fixes #528.
+
+(cherry picked from commit d47928088bc0cd3ab5b16fa183a865b0911da584)
+---
+ mythtv/libs/libmythtv/decoders/avformatdecoder.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp b/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp
+index 95a0a8d9489..8af5cc853e8 100644
+--- a/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp
++++ b/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp
+@@ -4133,7 +4133,9 @@ QString AvFormatDecoder::GetTrackDesc(uint type, uint TrackNo)
+ QString forcedString = forced ? QObject::tr(" (forced)") : "";
+
+ int av_index = m_tracks[type][TrackNo].m_av_stream_index;
+- AVStream *stream = m_ic->streams[av_index];
++ AVStream *stream { nullptr };
++ if (av_index >= 0 && av_index < m_ic->nb_streams)
++ stream = m_ic->streams[av_index];
+ AVDictionaryEntry *entry =
+ stream ? av_dict_get(stream->metadata, "title", NULL, 0) : nullptr;
+ QString user_title = entry ? QString(R"( "%1")").arg(entry->value) : "";
+
+From dcf7e13cce89f363d20a9cdd3922a7741cc214a9 Mon Sep 17 00:00:00 2001
+From: John Hoyt <john.hoyt(a)gmail.com>
+Date: Sun, 3 Apr 2022 07:35:20 -0400
+Subject: [PATCH 14/29] Add missing include <array> to mythdate
+
+---
+ mythtv/libs/libmythbase/mythdate.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/mythtv/libs/libmythbase/mythdate.cpp b/mythtv/libs/libmythbase/mythdate.cpp
+index 65c2b168e63..e7d2a99188a 100644
+--- a/mythtv/libs/libmythbase/mythdate.cpp
++++ b/mythtv/libs/libmythbase/mythdate.cpp
+@@ -1,6 +1,7 @@
+ #include <QtGlobal>
+ #include <QCoreApplication>
+ #include <QRegularExpression>
++#include <array>
+
+ #include "mythcorecontext.h"
+ #include "mythdate.h"
+
+From 5b54d3bf89a6278c01169287ace4a0fd02cc2233 Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Tue, 29 Mar 2022 22:26:45 +0200
+Subject: [PATCH 15/29] Add symbolrate to transport list in mythtv-setup log
+
+The symbolrate is added to the transport list
+that is logged by mythtv-setup.
+The symbolrate is needed for tuning DVB-C/S/S2 transports
+so there is now enough information in the log
+to tune a specific transport.
+
+(cherry picked from commit 3e52fe15cf711623addd8cc4944e40744c6610de)
+---
+ mythtv/libs/libmythtv/dtvmultiplex.cpp | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/dtvmultiplex.cpp b/mythtv/libs/libmythtv/dtvmultiplex.cpp
+index c7bc185f6d7..303c2c28f4e 100644
+--- a/mythtv/libs/libmythtv/dtvmultiplex.cpp
++++ b/mythtv/libs/libmythtv/dtvmultiplex.cpp
+@@ -33,11 +33,11 @@ bool DTVMultiplex::operator==(const DTVMultiplex &m) const
+
+ QString DTVMultiplex::toString() const
+ {
+- QString ret = QString("%1 %2 %3 ")
++ QString ret = QString("%1 %2 %3 %4")
+ .arg(QString::number(m_frequency), m_modulation.toString(),
+- m_inversion.toString());
++ m_inversion.toString(), QString::number(m_symbolRate));
+
+- ret += QString("%1 %2 %3 %4 %5 %6 %7")
++ ret += QString(" %1 %2 %3 %4 %5 %6 %7")
+ .arg(m_hpCodeRate.toString(), m_lpCodeRate.toString(),
+ m_bandwidth.toString(), m_transMode.toString(),
+ m_guardInterval.toString(), m_hierarchy.toString(),
+
+From 560b425776dfced77ceb9a83b13f32cf00ff2d94 Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Thu, 7 Apr 2022 19:51:20 -0400
+Subject: [PATCH 16/29] Service API V2: Last Play Position APIs
+
+This adds 4 APIs:
+V2Dvr::GetLastPlayPos
+V2Dvr::SetLastPlayPos
+V2Video::GetLastPlayPos
+V2Video::SetLastPlayPos
+
+(cherry picked from commit 68bb24a31aca5d94b389a2909e329997f2793901)
+---
+ .../programs/mythbackend/servicesv2/v2dvr.cpp | 84 ++++++++++++++++
+ .../programs/mythbackend/servicesv2/v2dvr.h | 14 +++
+ .../mythbackend/servicesv2/v2video.cpp | 95 +++++++++++++++++++
+ .../programs/mythbackend/servicesv2/v2video.h | 5 +
+ 4 files changed, 198 insertions(+)
+
+diff --git a/mythtv/programs/mythbackend/servicesv2/v2dvr.cpp b/mythtv/programs/mythbackend/servicesv2/v2dvr.cpp
+index d64e4b94e2b..2595ebb3f6e 100644
+--- a/mythtv/programs/mythbackend/servicesv2/v2dvr.cpp
++++ b/mythtv/programs/mythbackend/servicesv2/v2dvr.cpp
+@@ -771,6 +771,51 @@ long V2Dvr::GetSavedBookmark( int RecordedId,
+ return position;
+ }
+
++/////////////////////////////////////////////////////////////////////////////
++// Get last play position
++// Providing -1 for the RecordedId will return response of -1.
++// This is a way to check if this api, and the other LastPlayPos APIs,
++// are supported
++/////////////////////////////////////////////////////////////////////////////
++
++long V2Dvr::GetLastPlayPos( int RecordedId,
++ int chanid,
++ const QDateTime &StartTime,
++ const QString &offsettype )
++{
++ if (RecordedId == -1)
++ return -1;
++
++ if ((RecordedId <= 0) &&
++ (chanid <= 0 || !StartTime.isValid()))
++ throw QString("Recorded ID or Channel ID and StartTime appears invalid.");
++
++ RecordingInfo ri;
++ if (RecordedId > 0)
++ ri = RecordingInfo(RecordedId);
++ else
++ ri = RecordingInfo(chanid, StartTime.toUTC());
++ uint64_t offset = 0;
++ bool isend=true;
++ uint64_t position = ri.QueryLastPlayPos();
++ // if no bookmark return 0
++ if (position == 0)
++ return 0;
++ if (offsettype.toLower() == "position"){
++ // if bookmark cannot be converted to a keyframe we will
++ // just return the actual frame saved as the bookmark
++ if (ri.QueryKeyFramePosition(&offset, position, isend))
++ return offset;
++ }
++ if (offsettype.toLower() == "duration"){
++ if (ri.QueryKeyFrameDuration(&offset, position, isend))
++ return offset;
++ // If bookmark cannot be converted to a duration return -1
++ return -1;
++ }
++ return position;
++}
++
+ /////////////////////////////////////////////////////////////////////////////
+ //
+ /////////////////////////////////////////////////////////////////////////////
+@@ -809,6 +854,45 @@ bool V2Dvr::SetSavedBookmark( int RecordedId,
+ return true;
+ }
+
++/////////////////////////////////////////////////////////////////////////////
++// Set last Play Position. Check if this is supported by first calling
++// Get Last Play Position with -1.
++/////////////////////////////////////////////////////////////////////////////
++
++bool V2Dvr::SetLastPlayPos( int RecordedId,
++ int chanid,
++ const QDateTime &StartTime,
++ const QString &offsettype,
++ long Offset )
++{
++ if ((RecordedId <= 0) &&
++ (chanid <= 0 || !StartTime.isValid()))
++ throw QString("Recorded ID or Channel ID and StartTime appears invalid.");
++
++ if (Offset < 0)
++ throw QString("Offset must be >= 0.");
++
++ RecordingInfo ri;
++ if (RecordedId > 0)
++ ri = RecordingInfo(RecordedId);
++ else
++ ri = RecordingInfo(chanid, StartTime.toUTC());
++ uint64_t position = 0;
++ bool isend=true;
++ if (offsettype.toLower() == "position"){
++ if (!ri.QueryPositionKeyFrame(&position, Offset, isend))
++ return false;
++ }
++ else if (offsettype.toLower() == "duration"){
++ if (!ri.QueryDurationKeyFrame(&position, Offset, isend))
++ return false;
++ }
++ else
++ position = Offset;
++ ri.SaveLastPlayPos(position);
++ return true;
++}
++
+ V2CutList* V2Dvr::GetRecordedCutList ( int RecordedId,
+ int chanid,
+ const QDateTime &StartTime,
+diff --git a/mythtv/programs/mythbackend/servicesv2/v2dvr.h b/mythtv/programs/mythbackend/servicesv2/v2dvr.h
+index f7ec005a298..7460f46901a 100644
+--- a/mythtv/programs/mythbackend/servicesv2/v2dvr.h
++++ b/mythtv/programs/mythbackend/servicesv2/v2dvr.h
+@@ -54,7 +54,9 @@ class V2Dvr : public MythHTTPService
+ Q_CLASSINFO("AllowReRecord", "methods=POST;name=bool")
+ Q_CLASSINFO("UpdateRecordedWatchedStatus","methods=POST;name=bool")
+ Q_CLASSINFO("GetSavedBookmark", "name=long")
++ Q_CLASSINFO("GetLastPlayPos", "name=long")
+ Q_CLASSINFO("SetSavedBookmark", "name=bool")
++ Q_CLASSINFO("SetLastPlayPos", "name=bool")
+ Q_CLASSINFO("SetRecordedMarkup", "name=bool")
+ Q_CLASSINFO("AddRecordSchedule", "methods=POST;name=uint")
+ Q_CLASSINFO("UpdateRecordSchedule","methods=POST;name=bool")
+@@ -150,6 +152,11 @@ class V2Dvr : public MythHTTPService
+ const QDateTime &StartTime,
+ const QString &OffsetType );
+
++ static long GetLastPlayPos ( int RecordedId,
++ int ChanId,
++ const QDateTime &StartTime,
++ const QString &OffsetType );
++
+ static bool SetSavedBookmark ( int RecordedId,
+ int ChanId,
+ const QDateTime &StartTime,
+@@ -157,6 +164,13 @@ class V2Dvr : public MythHTTPService
+ long Offset
+ );
+
++ static bool SetLastPlayPos ( int RecordedId,
++ int ChanId,
++ const QDateTime &StartTime,
++ const QString &OffsetType,
++ long Offset
++ );
++
+ static V2CutList* GetRecordedCutList ( int RecordedId,
+ int ChanId,
+ const QDateTime &StartTime,
+diff --git a/mythtv/programs/mythbackend/servicesv2/v2video.cpp b/mythtv/programs/mythbackend/servicesv2/v2video.cpp
+index 86ea5a14d47..a872aacf20a 100644
+--- a/mythtv/programs/mythbackend/servicesv2/v2video.cpp
++++ b/mythtv/programs/mythbackend/servicesv2/v2video.cpp
+@@ -130,6 +130,54 @@ long V2Video::GetSavedBookmark( int Id )
+ return ret;
+ }
+
++/////////////////////////////////////////////////////////////////////////////
++// Get last play pos of a video as a frame number.
++/////////////////////////////////////////////////////////////////////////////
++
++long V2Video::GetLastPlayPos( int Id )
++{
++ MSqlQuery query(MSqlQuery::InitCon());
++
++ query.prepare("SELECT filename "
++ "FROM videometadata "
++ "WHERE intid = :ID ");
++ query.bindValue(":ID", Id);
++
++ if (!query.exec())
++ {
++ MythDB::DBError("V2Video::GetLastPlayPos", query);
++ return 0;
++ }
++
++ QString fileName;
++
++ if (query.next())
++ fileName = query.value(0).toString();
++ else
++ {
++ LOG(VB_GENERAL, LOG_ERR, QString("V2Video/GetLastPlayPos Video id %1 Not found.").arg(Id));
++ return -1;
++ }
++
++ ProgramInfo pi(fileName,
++ nullptr, // _plot,
++ nullptr, // _title,
++ nullptr, // const QString &_sortTitle,
++ nullptr, // const QString &_subtitle,
++ nullptr, // const QString &_sortSubtitle,
++ nullptr, // const QString &_director,
++ 0, // int _season,
++ 0, // int _episode,
++ nullptr, // const QString &_inetref,
++ 0min, // uint _length_in_minutes,
++ 0, // uint _year,
++ nullptr); //const QString &_programid);
++
++ long ret = pi.QueryLastPlayPos();
++ return ret;
++}
++
++
+ V2VideoMetadataInfoList* V2Video::GetVideoList( const QString &Folder,
+ const QString &Sort,
+ bool bDescending,
+@@ -802,6 +850,53 @@ bool V2Video::SetSavedBookmark( int Id, long Offset )
+ return true;
+ }
+
++/////////////////////////////////////////////////////////////////////////////
++// Set bookmark of a video as a frame number.
++/////////////////////////////////////////////////////////////////////////////
++
++bool V2Video::SetLastPlayPos( int Id, long Offset )
++{
++ MSqlQuery query(MSqlQuery::InitCon());
++
++ query.prepare("SELECT filename "
++ "FROM videometadata "
++ "WHERE intid = :ID ");
++ query.bindValue(":ID", Id);
++
++ if (!query.exec())
++ {
++ MythDB::DBError("Video::SetLastPlayPos", query);
++ return false;
++ }
++
++ QString fileName;
++
++ if (query.next())
++ fileName = query.value(0).toString();
++ else
++ {
++ LOG(VB_GENERAL, LOG_ERR, QString("Video/SetLastPlayPos Video id %1 Not found.").arg(Id));
++ return false;
++ }
++
++ ProgramInfo pi(fileName,
++ nullptr, // _plot,
++ nullptr, // _title,
++ nullptr, // const QString &_sortTitle,
++ nullptr, // const QString &_subtitle,
++ nullptr, // const QString &_sortSubtitle,
++ nullptr, // const QString &_director,
++ 0, // int _season,
++ 0, // int _episode,
++ nullptr, // const QString &_inetref,
++ 0min, // uint _length_in_minutes,
++ 0, // uint _year,
++ nullptr); //const QString &_programid);
++
++ pi.SaveLastPlayPos(Offset);
++ return true;
++}
++
+
+ V2BlurayInfo* V2Video::GetBluray( const QString &sPath )
+ {
+diff --git a/mythtv/programs/mythbackend/servicesv2/v2video.h b/mythtv/programs/mythbackend/servicesv2/v2video.h
+index 8e339bef1dd..639236a044a 100644
+--- a/mythtv/programs/mythbackend/servicesv2/v2video.h
++++ b/mythtv/programs/mythbackend/servicesv2/v2video.h
+@@ -18,6 +18,7 @@ class V2Video : public MythHTTPService
+ Q_CLASSINFO("description", "Methods to access and update Video metadata and related topics")
+ Q_CLASSINFO("LookupVideo", "methods=GET,POST,HEAD")
+ Q_CLASSINFO("GetSavedBookmark", "name=long")
++ Q_CLASSINFO("GetLastPlayPos", "name=long")
+ Q_CLASSINFO("RemoveVideoFromDB", "methods=POST;name=bool")
+ Q_CLASSINFO("AddVideo", "methods=POST;name=bool")
+ Q_CLASSINFO("UpdateVideoWatchedStatus", "methods=POST;name=bool")
+@@ -33,6 +34,7 @@ class V2Video : public MythHTTPService
+ static V2VideoMetadataInfo* GetVideo (int Id);
+ static V2VideoMetadataInfo* GetVideoByFileName ( const QString &FileName );
+ static long GetSavedBookmark (int Id );
++ static long GetLastPlayPos (int Id );
+ static V2VideoMetadataInfoList* GetVideoList ( const QString &Folder,
+ const QString &Sort,
+ bool Descending,
+@@ -94,6 +96,9 @@ class V2Video : public MythHTTPService
+ static bool SetSavedBookmark ( int Id,
+ long Offset );
+
++ static bool SetLastPlayPos ( int Id,
++ long Offset );
++
+ static V2BlurayInfo* GetBluray ( const QString &Path );
+
+ static V2VideoStreamInfoList* GetStreamInfo ( const QString &StorageGroup,
+
+From 1eacadd5f413197746cb61ea036c522c65f95936 Mon Sep 17 00:00:00 2001
+From: acediac <git.zon(a)dfgh.net>
+Date: Sat, 9 Apr 2022 22:49:25 +1000
+Subject: [PATCH 17/29] mythfrontend audio fixes for macOS
+
+- Fixed audio device detection
+- Fixed Surround Sound channel capability detection (5.1+ speakers)
+- Fixed memory corruption and leaks
+
+(cherry picked from commit 10df426eae3809cd896fae340f1c5dafbb628e34)
+---
+ mythtv/libs/libmyth/audio/audiooutputca.cpp | 94 +++++++++++--------
+ .../libmyth/audio/audiooutputsettings.cpp | 1 +
+ 2 files changed, 58 insertions(+), 37 deletions(-)
+
+diff --git a/mythtv/libs/libmyth/audio/audiooutputca.cpp b/mythtv/libs/libmyth/audio/audiooutputca.cpp
+index 6852335cb1d..86fc0c1b4c7 100644
+--- a/mythtv/libs/libmyth/audio/audiooutputca.cpp
++++ b/mythtv/libs/libmyth/audio/audiooutputca.cpp
+@@ -59,25 +59,28 @@ QString StreamDescriptionToString(AudioStreamBasicDescription desc)
+ switch (desc.mFormatID)
+ {
+ case kAudioFormatLinearPCM:
+- str = QString("[%1] %2%3 Channel %4-bit %5 %6 (%7Hz)")
++ str = QString("[%1] %2%3 Channel %4-bit %5 %6 (%7Hz) %8 Channels")
+ .arg(fourCC)
+ .arg((desc.mFormatFlags & kAudioFormatFlagIsNonMixable) ? "" : "Mixable ")
+ .arg(desc.mChannelsPerFrame)
+ .arg(desc.mBitsPerChannel)
+ .arg((desc.mFormatFlags & kAudioFormatFlagIsFloat) ? "Floating Point" : "Signed Integer")
+ .arg((desc.mFormatFlags & kAudioFormatFlagIsBigEndian) ? "BE" : "LE")
+- .arg((UInt32)desc.mSampleRate);
++ .arg((UInt32)desc.mSampleRate)
++ .arg(desc.mChannelsPerFrame);
+ break;
+ case kAudioFormatAC3:
+- str = QString("[%1] AC-3/DTS (%2Hz)")
++ str = QString("[%1] AC-3/DTS (%2Hz) %3 Channels")
+ .arg(fourCC)
+- .arg((UInt32)desc.mSampleRate);
++ .arg((UInt32)desc.mSampleRate)
++ .arg(desc.mChannelsPerFrame);
+ break;
+ case kAudioFormat60958AC3:
+- str = QString("[%1] AC-3/DTS for S/PDIF %2 (%3Hz)")
++ str = QString("[%1] AC-3/DTS for S/PDIF %2 (%3Hz) %4 Channels")
+ .arg(fourCC)
+ .arg((desc.mFormatFlags & kAudioFormatFlagIsBigEndian) ? "BE" : "LE")
+- .arg((UInt32)desc.mSampleRate);
++ .arg((UInt32)desc.mSampleRate)
++ .arg(desc.mChannelsPerFrame);
+ break;
+ default:
+ str = QString("[%1]").arg(fourCC);
+@@ -123,7 +126,7 @@ class CoreAudioData {
+ static AudioStreamIDVec StreamsList(AudioDeviceID d);
+ static AudioStreamRangedVec FormatsList(AudioStreamID s);
+
+- static int AudioStreamChangeFormat(AudioStreamID s,
++ static int AudioStreamChangeFormat(AudioStreamID s,
+ AudioStreamBasicDescription format);
+
+ // TODO: Convert these to macros!
+@@ -213,11 +216,11 @@ AudioOutputSettings* AudioOutputCA::GetOutputSettings(bool digital)
+ {
+ while (int rate = settings->GetNextRate())
+ {
+- for (auto entry : rates)
+- {
+- if (entry != rate)
+- continue;
+- settings->AddSupportedRate(entry);
++ for (auto entry : rates)
++ {
++ if (entry != rate)
++ continue;
++ settings->AddSupportedRate(entry);
+ }
+ }
+ }
+@@ -236,11 +239,11 @@ AudioOutputSettings* AudioOutputCA::GetOutputSettings(bool digital)
+ {
+ for (int i = CHANNELS_MIN; i <= CHANNELS_MAX; i++)
+ {
+- if (channels[i])
++ if (channels[i-1])
+ {
+ Debug(QString("Support %1 channels").arg(i));
+ // In case 8 channels are supported but not 6, fake 6
+- if (i == 8 && !channels[6])
++ if (i == 8 && !channels[6-1])
+ settings->AddSupportedChannels(6);
+ settings->AddSupportedChannels(i);
+ }
+@@ -557,10 +560,11 @@ AudioDeviceID CoreAudioData::GetDeviceWithName(const QString &deviceName)
+ }
+
+ UInt32 deviceCount = size / sizeof(AudioDeviceID);
+- auto* pDevices = new AudioDeviceID[deviceCount];
++ std::vector<AudioDeviceID> devices = {};
++ devices.resize(deviceCount);
+
+ err = AudioObjectGetPropertyData(kAudioObjectSystemObject, &pa,
+- 0, nullptr, &size, pDevices);
++ 0, nullptr, &size, devices.data());
+ if (err)
+ {
+ Warn(QString("GetDeviceWithName: Unable to retrieve the list of available devices. "
+@@ -569,23 +573,22 @@ AudioDeviceID CoreAudioData::GetDeviceWithName(const QString &deviceName)
+ }
+ else
+ {
+- for (UInt32 dev = 0; dev < deviceCount; dev++)
++ for (const auto & dev : devices)
+ {
+- CoreAudioData device(nullptr, pDevices[dev]);
++ CoreAudioData device(nullptr, dev);
+ if (device.GetTotalOutputChannels() == 0)
+ continue;
+ QString *name = device.GetName();
+ if (name && *name == deviceName)
+ {
+ Debug(QString("GetDeviceWithName: Found: %1").arg(*name));
+- deviceID = pDevices[dev];
++ deviceID = dev;
+ delete name;
+ }
+ if (deviceID)
+ break;
+ }
+ }
+- delete[] pDevices;
+ return deviceID;
+ }
+
+@@ -624,7 +627,7 @@ int CoreAudioData::GetTotalOutputChannels()
+ AudioObjectPropertyAddress pa
+ {
+ kAudioDevicePropertyStreamConfiguration,
+- kAudioObjectPropertyScopeGlobal,
++ kAudioDevicePropertyScopeOutput, // Scope needs to be set to output to find output streams
+ kAudioObjectPropertyElementMaster
+ };
+
+@@ -882,10 +885,11 @@ AudioStreamIDVec CoreAudioData::StreamsList(AudioDeviceID d)
+ .arg(OSS_STATUS(err)));
+ return {};
+ }
+-
+ try
+ {
+- vec.reserve(listSize / sizeof(AudioStreamID));
++ // Bugfix: vec.reserve will not change size of vector since contents are updated directly via memory copy
++ // In general all std::vector arrays have been changed from reserve to resize.
++ vec.resize(listSize / sizeof(AudioStreamID));
+ }
+ catch (...)
+ {
+@@ -913,9 +917,10 @@ AudioStreamRangedVec CoreAudioData::FormatsList(AudioStreamID s)
+
+ AudioObjectPropertyAddress pa
+ {
+- kAudioStreamPropertyPhysicalFormats,
+- kAudioObjectPropertyScopeGlobal,
+- kAudioObjectPropertyElementMaster
++ // Bugfix: kAudioStreamPropertyPhysicalFormats, is meant to only give array of AudioStreamBasicDescription
++ kAudioStreamPropertyAvailablePhysicalFormats, // gives array of AudioStreamRangedDescription
++ kAudioObjectPropertyScopeGlobal,
++ kAudioObjectPropertyElementMaster
+ };
+
+ // Retrieve all the stream formats supported by this output stream
+@@ -929,7 +934,7 @@ AudioStreamRangedVec CoreAudioData::FormatsList(AudioStreamID s)
+
+ try
+ {
+- vec.reserve(listSize / sizeof(AudioStreamRangedDescription));
++ vec.resize(listSize / sizeof(AudioStreamRangedDescription));
+ }
+ catch (...)
+ {
+@@ -991,7 +996,7 @@ RatesVec CoreAudioData::RatesList(AudioDeviceID d)
+
+ try
+ {
+- ranges.reserve(listSize / sizeof(AudioValueRange));
++ ranges.resize(listSize / sizeof(AudioValueRange));
+ finalvec.reserve(listSize / sizeof(AudioValueRange));
+ }
+ catch (...)
+@@ -1060,10 +1065,19 @@ bool CoreAudioData::ChannelsList(AudioDeviceID /*d*/, bool passthru, ChannelsArr
+ // Find a stream with a cac3 stream
+ for (auto format : formats)
+ {
++ Debug(QString("ChannelsList: (passthru) found format: %1")
++ .arg(StreamDescriptionToString(format.mFormat)));
++ // Add supported number of channels
++ if (format.mFormat.mChannelsPerFrame <= CHANNELS_MAX)
++ chans[format.mFormat.mChannelsPerFrame-1] = true;
++
+ if (format.mFormat.mFormatID == 'IAC3' ||
+ format.mFormat.mFormatID == kAudioFormat60958AC3)
+ {
+- chans[format.mFormat.mChannelsPerFrame] = true;
++ // By default AC3 has 6 (5.1) channels but CoreAudio seems to set mChannelsPerFrame to 2
++ // and considers it a "2 channel Encoded Digital Audio"
++ chans[6-1] = true;
++ // chans[format.mFormat.mChannelsPerFrame-1] = true;
+ founddigital = true;
+ }
+ }
+@@ -1078,8 +1092,12 @@ bool CoreAudioData::ChannelsList(AudioDeviceID /*d*/, bool passthru, ChannelsArr
+ if (formats.empty())
+ continue;
+ for (auto format : formats)
++ {
++ Debug(QString("ChannelsList: (!founddigital) found format: %1")
++ .arg(StreamDescriptionToString(format.mFormat)));
+ if (format.mFormat.mChannelsPerFrame <= CHANNELS_MAX)
+- chans[format.mFormat.mChannelsPerFrame] = true;
++ chans[format.mFormat.mChannelsPerFrame-1] = true;
++ }
+ }
+ }
+ return true;
+@@ -1642,7 +1660,7 @@ bool CoreAudioData::FindAC3Stream()
+ Debug("FindAC3Stream: found digital format");
+ return true;
+ }
+- }
++ }
+ }
+
+ return false;
+@@ -1727,6 +1745,7 @@ void CoreAudioData::ResetStream(AudioStreamID s)
+ for (auto format : formats) {
+ if (format.mFormat.mFormatID == kAudioFormatLinearPCM)
+ {
++ Debug(QString("ResetStream: Resetting stream %1 to %2").arg(s).arg(StreamDescriptionToString(format.mFormat)));
+ err = AudioObjectSetPropertyData(s, &pa, 0, nullptr,
+ sizeof(format), &(format.mFormat));
+ if (err != noErr)
+@@ -1736,9 +1755,9 @@ void CoreAudioData::ResetStream(AudioStreamID s)
+ continue;
+ }
+
+- sleep(1); // For the change to take effect
++ sleep(1); // For the change to take effect
+ }
+- }
++ }
+ }
+ }
+
+@@ -1767,9 +1786,10 @@ QMap<QString, QString> *AudioOutputCA::GetDevices(const char */*type*/)
+ }
+
+ UInt32 deviceCount = size / sizeof(AudioDeviceID);
+- auto* pDevices = new AudioDeviceID[deviceCount];
++ std::vector<AudioDeviceID> devices = {};
++ devices.resize(deviceCount);
+ err = AudioObjectGetPropertyData(kAudioObjectSystemObject, &pa,
+- 0, nullptr, &size, pDevices);
++ 0, nullptr, &size, devices.data());
+ if (err)
+ {
+ VBAUDIO(QString("AudioOutputCA::GetDevices: Unable to retrieve the list of "
+@@ -1780,9 +1800,9 @@ QMap<QString, QString> *AudioOutputCA::GetDevices(const char */*type*/)
+ {
+ VBAUDIO(QString("GetDevices: Number of devices: %1").arg(deviceCount));
+
+- for (UInt32 dev = 0; dev < deviceCount; dev++)
++ for (const auto & dev : devices)
+ {
+- CoreAudioData device(nullptr, pDevices[dev]);
++ CoreAudioData device(nullptr, dev);
+ if (device.GetTotalOutputChannels() == 0)
+ continue;
+ QString *name = device.GetName();
+diff --git a/mythtv/libs/libmyth/audio/audiooutputsettings.cpp b/mythtv/libs/libmyth/audio/audiooutputsettings.cpp
+index ef5cacc2913..7e18a10a62c 100644
+--- a/mythtv/libs/libmyth/audio/audiooutputsettings.cpp
++++ b/mythtv/libs/libmyth/audio/audiooutputsettings.cpp
+@@ -254,6 +254,7 @@ int AudioOutputSettings::BestSupportedChannels()
+ {
+ if (m_channels.empty())
+ return 2;
++ SortSupportedChannels(); // ensure last element is the best supported channel
+ return m_channels.back();
+ }
+
+
+From cd109ec6c08f578e1b0965e4726e6046d75af8e8 Mon Sep 17 00:00:00 2001
+From: acediac <git.zon(a)dfgh.net>
+Date: Sat, 9 Apr 2022 22:57:38 +1000
+Subject: [PATCH 18/29] Potential memory corruption problems in audiooutputbase
+
+(cherry picked from commit 81aeb49c456ff4ecab82c2297b22c38bd70d706d)
+---
+ mythtv/libs/libmyth/audio/audiooutputbase.cpp | 19 ++++++++++++-------
+ 1 file changed, 12 insertions(+), 7 deletions(-)
+
+diff --git a/mythtv/libs/libmyth/audio/audiooutputbase.cpp b/mythtv/libs/libmyth/audio/audiooutputbase.cpp
+index 69c28f2cc3d..d920d14dd0c 100644
+--- a/mythtv/libs/libmyth/audio/audiooutputbase.cpp
++++ b/mythtv/libs/libmyth/audio/audiooutputbase.cpp
+@@ -90,13 +90,18 @@ AudioOutputBase::~AudioOutputBase()
+ "~AudioOutputBase called, but KillAudio has not been called!");
+
+ // We got this from a subclass, delete it
+- delete m_outputSettings;
+- delete m_outputSettingsRaw;
+- if (m_outputSettings != m_outputSettingsDigital)
++ // These all seem to be the same pointer, avoid freeing multiple times
++ VBAUDIO(QString("m_outputSettings != m_outputSettingsDigital : %1").arg(m_outputSettings != m_outputSettingsDigital));
++ if (m_outputSettingsDigital != m_outputSettings)
+ {
++ if (m_outputSettingsDigitalRaw != m_outputSettingsDigital && m_outputSettingsDigitalRaw != m_outputSettings)
++ delete m_outputSettingsDigitalRaw;
+ delete m_outputSettingsDigital;
+- delete m_outputSettingsDigitalRaw;
+ }
++ VBAUDIO(QString("m_outputSettingsRaw != m_outputSettings %1").arg(m_outputSettingsRaw != m_outputSettings));
++ if (m_outputSettingsRaw != m_outputSettings)
++ delete m_outputSettingsRaw;
++ delete m_outputSettings;
+
+ if (m_kAudioSRCOutputSize > 0)
+ delete[] m_srcOut;
+@@ -190,9 +195,9 @@ AudioOutputSettings* AudioOutputBase::GetOutputSettingsUsers(bool digital)
+ else if (m_outputSettingsDigital)
+ return m_outputSettingsDigital;
+
+- auto* aosettings = new AudioOutputSettings;
+-
+- *aosettings = *GetOutputSettingsCleaned(digital);
++ //bugfix: don't allocate as GetOutputSettings will do it
++ //auto* aosettings = new AudioOutputSettings;
++ AudioOutputSettings* aosettings = GetOutputSettingsCleaned(digital);
+ aosettings->GetUsers();
+
+ if (digital)
+
+From 9070e9e65b42b19b3a54c21117a07f627418999f Mon Sep 17 00:00:00 2001
+From: David Hampton <mythtv(a)love2code.net>
+Date: Fri, 8 Apr 2022 13:10:03 -0400
+Subject: [PATCH 19/29] Fix zmserver compilation on rawhide.
+
+(cherry picked from commit 9d2c68fdf4512be7aac95310d0bc69d54be63ac3)
+---
+ mythplugins/mythzoneminder/mythzmserver/zmserver.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp b/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp
+index 5e13cb48e0b..f6ac052867a 100644
+--- a/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp
++++ b/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp
+@@ -15,6 +15,7 @@
+
+
+ #include <algorithm>
++#include <array>
+ #include <fstream>
+ #include <iostream>
+ #include <cstdlib>
+
+From bbd8355d8dbb5ef78080312c2d632232ea03b504 Mon Sep 17 00:00:00 2001
+From: Stuart Auchterlonie <stuarta(a)mythtv.org>
+Date: Mon, 11 Apr 2022 22:20:23 +0100
+Subject: [PATCH 20/29] [webapp] fix encoder status when recording
+
+(cherry picked from commit 3da1ca7bc3c72a41cf7a910680cfb8e5ead4b49e)
+---
+ mythtv/html/apps/backend/main.js | 2 +-
+ .../src/app/services/interfaces/encoder.interface.ts | 4 +++-
+ .../status/components/encoders/encoders.component.html | 8 +++++++-
+ .../app/status/components/encoders/encoders.component.ts | 2 ++
+ 4 files changed, 13 insertions(+), 3 deletions(-)
+
+diff --git a/mythtv/html/apps/backend/main.js b/mythtv/html/apps/backend/main.js
+index 7c658906fa8..846907ccc92 100644
+--- a/mythtv/html/apps/backend/main.js
++++ b/mythtv/html/apps/backend/main.js
+@@ -1 +1 @@
+-"use strict";(self.webpackChunkbackend=self.webpackChunkbackend||[]).push([[179],{863:()=>{function Li(t){return"function"==typeof t}let eo=!1;const mn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else eo&&console.log("RxJS: Back to a better error behavior. Thank you. <3");eo=t},get useDeprecatedSynchronousErrorHandling(){return eo}};function Ni(t){setTimeout(()=>{throw t},0)}const Ia={closed:!0,next(t){},error(t){if(mn.useDeprecatedSynchronousErrorHandling)throw t;Ni(t)},complete(){}},Fr=Array.isArray||(t=>t&&"number"==typeof t.length);function yu(t){return null!==t&&"object"==typeof t}const ka=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.pro
totype=Object.create(Error.prototype),t})();class Ge{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof Ge)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(Li(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){n=o instanceof ka?rg(o.errors):[o]}}if(Fr(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(yu(l))try{l.unsubscribe()}catch(c){n=n||[],c instanceof ka?n=n.concat(rg(c.errors)):n.push(c)}}}if(n)throw new ka(n)}add(n){let e=n;if(!n)return Ge.EMPTY;switch(typeof n){case"function":e=new Ge(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof Ge)){const s=e;e=new Ge,e._subsc
riptions=[s]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof Ge){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function rg(t){return t.reduce((n,e)=>n.concat(e instanceof ka?e.errors:e),[])}Ge.EMPTY=((t=new Ge).closed=!0,t);const Ma="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class je extends Ge{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ia;break;case 1:if(!n){this.destination=Ia;break}if("object"==typeof n){n instanceof je?(this.syncErrorThrowable=n.syncErrorThrowable,this.destin
ation=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new sg(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new sg(this,n,e,i)}}[Ma](){return this}static create(n,e,i){const r=new je(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class sg extends je{constructor(n,e,i,r){super(),this._parentSubscriber=n;let s,o=this;Li(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==Ia&&(o=Object.create(e),Li(o.unsubscribe)&&this.add(o.un
subscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;mn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=mn;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):Ni(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;Ni(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);mn.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__t
ryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),mn.useDeprecatedSynchronousErrorHandling)throw i;Ni(i)}}__tryOrSetError(n,e,i){if(!mn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return mn.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(Ni(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const to="function"==typeof Symbol&&Symbol.observable||"@@observable";function Oa(t){return t}let Ee=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function zD(t,n,e){if(t){if(t instanceof je)return t;if(t[Ma])return t[Ma]()}return t||n||e?new je(t,n,e):new je(Ia)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||mn.useD
eprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),mn.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){mn.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function HD(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof je?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=ag(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[to](){return this}pipe(...e){return 0===e.length?this:function og(t){return 0===t.length?Oa:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=ag(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return t.create=n=>new t(n),t}
)();function ag(t){if(t||(t=mn.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const cr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class lg extends Ge{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class cg extends je{constructor(n){super(n),this.destination=n}}let Oe=(()=>{class t extends Ee{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ma](){return new cg(this)}lift(e){const i=new ug(this,this);return i.operator=e,i}next(e){if(this.closed)throw new cr;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;
o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new cr;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new cr;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new cr;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new cr;return this.hasError?(e.error(this.thrownError),Ge.EMPTY):this.isStopped?(e.complete(),Ge.EMPTY):(this.observers.push(e),new lg(this,e))}asObservable(){const e=new Ee;return e.source=this,e}}return t.create=(n,e)=>new ug(n,e),t})();class ug extends Oe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.er
ror(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):Ge.EMPTY}}function Lr(t){return t&&"function"==typeof t.schedule}function ke(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new jD(t,n))}}class jD{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new UD(n,this.project,this.thisArg))}}class UD extends je{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const dg=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},Ra=function GD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),hg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;funct
ion pg(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const vu=t=>{if(t&&"function"==typeof t[to])return(t=>n=>{const e=t[to]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(hg(t))return dg(t);if(pg(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Ni),n))(t);if(t&&"function"==typeof t[Ra])return(t=>n=>{const e=t[Ra]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${yu(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function bu(t,n){return new Ee(e=>{const i=new Ge;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.
add(this.schedule())):e.complete()})),i})}function Ft(t,n){return n?function XD(t,n){if(null!=t){if(function ZD(t){return t&&"function"==typeof t[to]}(t))return function KD(t,n){return new Ee(e=>{const i=new Ge;return i.add(n.schedule(()=>{const r=t[to]();i.add(r.subscribe({next(s){i.add(n.schedule(()=>e.next(s)))},error(s){i.add(n.schedule(()=>e.error(s)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(pg(t))return function YD(t,n){return new Ee(e=>{const i=new Ge;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(hg(t))return bu(t,n);if(function JD(t){return t&&"function"==typeof t[Ra]}(t)||"string"==typeof t)return function QD(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ee(e=>{const i=new Ge;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Ra](),i.add(n.schedule(function(){if(e.cl
osed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof Ee?t:new Ee(vu(t))}class no extends je{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class io extends je{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function ro(t,n){if(n.closed)return;if(t instanceof Ee)return t.subscribe(n);let e;try{e=vu(t)(n)}catch(i){n.error(i)}return e}function It(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(It((r,s)=>Ft(t(r,s)).pipe(ke((o,a)=>n(r,o,s,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new eS(t,e)))}class eS{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.conc
urrent=e}call(n,e){return e.subscribe(new tS(n,this.project,this.concurrent))}}class tS extends io{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(n){const e=new no(this),i=this.destination;i.add(e);const r=ro(n,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function so(t=Number.POSITIVE_INFINITY){return It(Oa,t)}function wu(t,n){return n?bu(t,n):new Ee(dg(t))}function Cu(){return funct
ion(n){return n.lift(new iS(n))}}class iS{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new rS(n,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class rS extends je{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class fg extends Ee{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new Ge,n.add(this.source.subscribe(new o
S(this.getSubject(),this))),n.closed&&(this._connection=null,n=Ge.EMPTY)),n}refCount(){return Cu()(this)}}const sS=(()=>{const t=fg.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class oS extends cg{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class cS{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(n);return s.add(e.subscribe(r)),s}}function uS(){return new Oe}
function Ne(t){for(let n in t)if(t[n]===Ne)return n;throw Error("Could not find renamed property on target object.")}function Du(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function we(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(we).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Su(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const hS=Ne({__forward_ref__:Ne});function xe(t){return t.__forward_ref__=xe,t.toString=function(){return we(this())},t}function ce(t){return gg(t)?t():t}function gg(t){return"function"==typeof t&&t.hasOwnProperty(hS)&&t.__forward_ref__===xe}class en extends Error{constructor(n,e){super(function Tu(t,n){return`${t?`NG0${t}: `:""}${n}`}(n,e)),this.code=n}}function se(t){return"string"==typeof t?t:null==t?"":Str
ing(t)}function Ut(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():se(t)}function Aa(t,n){const e=n?` in ${n}`:"";throw new en("201",`No provider for ${Ut(t)} found${e}`)}function nn(t,n){null==t&&function We(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function j(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Eu(t){return mg(t,Pa)||mg(t,yg)}function mg(t,n){return t.hasOwnProperty(n)?t[n]:null}function _g(t){return t&&(t.hasOwnProperty(xu)||t.hasOwnProperty(vS))?t[xu]:null}const Pa=Ne({\u0275prov:Ne}),xu=Ne({\u0275inj:Ne}),yg=Ne({ngInjectableDef:Ne}),vS=Ne({ngInjectorDef:Ne});var ae=(()=>((ae=ae||{})[ae.Default=0]="Default",ae[ae.Host=1]="Host",ae[ae.Self=2]="Self",ae[ae.SkipSelf=4]="SkipSelf",ae[ae.Option
al=8]="Optional",ae))();let Iu;function Vi(t){const n=Iu;return Iu=t,n}function vg(t,n,e){const i=Eu(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ae.Optional?null:void 0!==n?n:void Aa(we(t),"Injector")}function Bi(t){return{toString:t}.toString()}var Fn=(()=>((Fn=Fn||{})[Fn.OnPush=0]="OnPush",Fn[Fn.Default=1]="Default",Fn))(),Ln=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Ln||(Ln={})),Ln))();const wS="undefined"!=typeof globalThis&&globalThis,CS="undefined"!=typeof window&&window,DS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Fe=wS||"undefined"!=typeof global&&global||CS||DS,Nr={},Ve=[],Fa=Ne({\u0275cmp:Ne}),ku=Ne({\u0275dir:Ne}),Mu=Ne({\u0275pipe:Ne}),bg=Ne({\u0275mod:Ne}),gi=Ne({\u0275fac:Ne}),oo=Ne({__NG_ELEMENT_ID__:Ne});let SS=0;function Q(t){return Bi(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,fa
ctory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Fn.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ve,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ln.Emulated,id:"c",styles:t.styles||Ve,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,o=t.pipes;return i.id+=SS++,i.inputs=Sg(t.inputs,e),i.outputs=Sg(t.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(wg):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Cg):null,i})}function wg(t){return Lt(t)||function Hi(t){return t[ku]||null}(t)}function Cg(t){return function ur(t){return t[Mu]||null}(t)}const Dg={};function X(t){return B
i(()=>{const n={type:t.type,bootstrap:t.bootstrap||Ve,declarations:t.declarations||Ve,imports:t.imports||Ve,exports:t.exports||Ve,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Dg[t.id]=t.type),n})}function Sg(t,n){if(null==t)return Nr;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,n&&(n[r]=s)}return e}const U=Q;function Zt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Lt(t){return t[Fa]||null}function _n(t,n){const e=t[bg]||null;if(!e&&!0===n)throw new Error(`Type ${we(t)} does not have '\u0275mod' property.`);return e}function Zn(t){return Array.isArray(t)&&"object"==typeof t[1]}function Vn(t){return Array.isArray(t)&&!0===t[1]}function Au(t){return 0!=(8&t.flags)}function Ba(t){return 2==(2&t.flags)}function Ha(t){return 1==(1&t.flags)}function Bn(t){return null!==t.template}function MS(t){return 0!=(512&t[2
])}function fr(t,n){return t.hasOwnProperty(gi)?t[gi]:null}class AS{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function gt(){return Eg}function Eg(t){return t.type.prototype.ngOnChanges&&(t.setInput=FS),PS}function PS(){const t=Ig(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===Nr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function FS(t,n,e,i){const r=Ig(t)||function LS(t,n){return t[xg]=n}(t,{previous:Nr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new AS(l&&l.currentValue,n,o===Nr),t[i]=n}gt.ngInherit=!0;const xg="__ngSimpleChanges__";function Ig(t){return t[xg]||null}const kg="http://www.w3.org/2000/svg";let Lu;function Nu(){return void 0!==Lu?Lu:"undefined"!=typeof document?document:void 0}function et(t){return!!t.listen}const Og={createRenderer:(t,n)=>Nu()};function ct(t){for(;Array.isArray(t);)t=t[0];r
eturn t}function za(t,n){return ct(n[t])}function bn(t,n){return ct(n[t.index])}function Vu(t,n){return t.data[n]}function jr(t,n){return t[n]}function sn(t,n){const e=n[t];return Zn(e)?e:e[0]}function Rg(t){return 4==(4&t[2])}function Bu(t){return 128==(128&t[2])}function zi(t,n){return null==n?null:t[n]}function Ag(t){t[18]=0}function Hu(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const ne={lFrame:zg(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Pg(){return ne.bindingsEnabled}function O(){return ne.lFrame.lView}function Ce(){return ne.lFrame.tView}function C(t){return ne.lFrame.contextLView=t,t[8]}function mt(){let t=Fg();for(;null!==t&&64===t.type;)t=t.parent;return t}function Fg(){return ne.lFrame.currentTNode}function Jn(t,n){const e=ne.lFrame;e.currentTNode=t,e.isParent=n}function zu(){return ne.lFrame.isParent}function ju(){ne.lFrame.isParent=!1}function ja(){return ne.isInCheckNoChangesMode}function Ua(t){
ne.isInCheckNoChangesMode=t}function $t(){const t=ne.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function mi(){return ne.lFrame.bindingIndex}function Ur(){return ne.lFrame.bindingIndex++}function _i(t){const n=ne.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function QS(t,n){const e=ne.lFrame;e.bindingIndex=e.bindingRootIndex=t,Uu(n)}function Uu(t){ne.lFrame.currentDirectiveIndex=t}function Vg(){return ne.lFrame.currentQueryIndex}function Gu(t){ne.lFrame.currentQueryIndex=t}function JS(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Bg(t,n,e){if(e&ae.SkipSelf){let r=n,s=t;for(;!(r=r.parent,null!==r||e&ae.Host||(r=JS(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;n=r,t=s}const i=ne.lFrame=Hg();return i.currentTNode=n,i.lView=t,!0}function $a(t){const n=Hg(),e=t[1];ne.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,
n.inI18n=!1}function Hg(){const t=ne.lFrame,n=null===t?null:t.child;return null===n?zg(t):n}function zg(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function jg(){const t=ne.lFrame;return ne.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ug=jg;function Ga(){const t=jg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Gt(){return ne.lFrame.selectedIndex}function ji(t){ne.lFrame.selectedIndex=t}function tt(){const t=ne.lFrame;return Vu(t.tView,t.selectedIndex)}function Wa(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const s=t.data[e].type.prototype,{ngAfterContentInit:
o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function qa(t,n,e){Gg(t,n,3,e)}function Ka(t,n,e,i){(3&t[2])===e&&Gg(t,n,e,i)}function Wu(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Gg(t,n,e,i){const s=null!=i?i:-1,o=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<s||-1==s)&&(oT(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function oT(t,n,e,i){const r=e[i]<0,s=e[i+1],a=t[r?-e[i]:e[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{s.call(a)}finally{}}}else try{s.call
(a)}finally{}}class ho{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ya(t,n,e){const i=et(t);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?t.setAttribute(n,a,l,o):n.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];Ku(o)?i&&t.setProperty(n,o,a):i?t.setAttribute(n,o,a):n.setAttribute(o,a),r++}}return r}function Wg(t){return 3===t||4===t||6===t}function Ku(t){return 64===t.charCodeAt(0)}function Qa(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?e=r:0===e||qg(t,e,r,null,-1===e||2===e?n[++i]:null)}}return t}function qg(t,n,e,i,r){let s=0,o=t.length;if(-1===n)o=-1;else for(;s<t.length;){const a=t[s++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=s-1;break}}}for(;s<t.length;){const a=t[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(
t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,n),s=o+1),t.splice(s++,0,e),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function Kg(t){return-1!==t}function $r(t){return 32767&t}function Gr(t,n){let e=function dT(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Yu=!0;function Za(t){const n=Yu;return Yu=t,n}let hT=0;function fo(t,n){const e=Zu(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Qu(i.data,t),Qu(n,null),Qu(i.blueprint,null));const r=Ja(t,n),s=t.injectorIndex;if(Kg(r)){const o=$r(r),a=Gr(r,n),l=a[1].data;for(let c=0;c<8;c++)n[s+c]=a[o+c]|l[o+c]}return n[s+8]=r,s}function Qu(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Zu(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Ja(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){
const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Xa(t,n,e){!function pT(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(oo)&&(i=e[oo]),null==i&&(i=e[oo]=hT++);const r=255&i;n.data[t+(r>>5)]|=1<<r}(t,n,e)}function Zg(t,n,e){if(e&ae.Optional)return t;Aa(n,"NodeInjector")}function Jg(t,n,e,i){if(e&ae.Optional&&void 0===i&&(i=null),0==(e&(ae.Self|ae.Host))){const r=t[9],s=Vi(void 0);try{return r?r.get(n,i,e&ae.Optional):vg(n,i,e&ae.Optional)}finally{Vi(s)}}return Zg(i,n,e)}function Xg(t,n,e,i=ae.Default,r){if(null!==t){const s=function _T(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(oo)?t[oo]:void 0;return"number"==typeof n?n>=0?255&n:gT:n}(e);if("function"==typeof s){if(!Bg(n,t,i))return i&ae.Host?Zg(r,e,i):Jg(n,e,i,r);try{const o=s(i);if(null!=o||i&ae.Optional)return o;Aa(e)}finally{Ug()}}else if("number"==typeof s){let o
=null,a=Zu(t,n),l=-1,c=i&ae.Host?n[16][6]:null;for((-1===a||i&ae.SkipSelf)&&(l=-1===a?Ja(t,n):n[a+8],-1!==l&&nm(i,!1)?(o=n[1],a=$r(l),n=Gr(l,n)):a=-1);-1!==a;){const u=n[1];if(tm(s,a,u.data)){const d=mT(a,n,e,o,i,c);if(d!==em)return d}l=n[a+8],-1!==l&&nm(i,n[1].data[a+8]===c)&&tm(s,a,n)?(o=u,a=$r(l),n=Gr(l,n)):a=-1}}}return Jg(n,e,i,r)}const em={};function gT(){return new Wr(mt(),O())}function mT(t,n,e,i,r,s){const o=n[1],a=o.data[t+8],u=el(a,o,e,null==i?Ba(a)&&Yu:i!=o&&0!=(3&a.type),r&ae.Host&&s===a);return null!==u?go(n,o,u,a):em}function el(t,n,e,i,r){const s=t.providerIndexes,o=n.data,a=1048575&s,l=t.directiveStart,u=s>>20,_=r?a+u:t.directiveEnd;for(let y=i?a:a+u;y<_;y++){const b=o[y];if(y<l&&e===b||y>=l&&b.type===e)return y}if(r){const y=o[l];if(y&&Bn(y)&&y.type===e)return l}return null}function go(t,n,e,i){let r=t[e];const s=n.data;if(function aT(t){return t instanceof ho}(r)){const o=r;o.resolving&&function pS(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";thr
ow new en("200",`Circular dependency in DI detected for ${t}${e}`)}(Ut(s[e]));const a=Za(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Vi(o.injectImpl):null;Bg(t,i,ae.Default);try{r=t[e]=o.factory(void 0,s,t,i),n.firstCreatePass&&e>=i.directiveStart&&function sT(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=n.type.prototype;if(i){const o=Eg(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s))}(e,s[e],n)}finally{null!==l&&Vi(l),Za(a),o.resolving=!1,Ug()}}return r}function tm(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function nm(t,n){return!(t&ae.Self||t&ae.Host&&n)}class Wr{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return Xg(this._tNode,this._lView,n,i,e)}}function on(t){return Bi(()=>{const n=t.prototype.constructor,e=n[gi]||Ju(n),i=
Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const s=r[gi]||Ju(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ju(t){return gg(t)?()=>{const n=Ju(ce(t));return n&&n()}:fr(t)}function mo(t){return function fT(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(Wg(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===n)return e[r+1];r+=2}}}return null}(mt(),t)}const Kr="__parameters__";function Qr(t,n,e){return Bi(()=>{const i=function Xu(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Kr)?l[Kr]:Object.defineProperty(l,Kr,{value:[]})[Kr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(
o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ie{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=j({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const vT=new ie("AnalyzeForEntryComponents");function wn(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),wn(i,n)):n!==t&&n.push(i)}return n}function Xn(t,n){t.forEach(e=>Array.isArray(e)?Xn(e,n):n(e))}function rm(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function tl(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function vo(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function an(t,n,e){let i=Zr(t,n);return i>=0?t[1|i]=e:(i=~i,function CT(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{
for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function td(t,n){const e=Zr(t,n);if(e>=0)return t[1|e]}function Zr(t,n){return function am(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=t[s<<e];if(n===o)return s<<e;o>n?r=s:i=s+1}return~(r<<e)}(t,n,1)}const bo={},id="__NG_DI_FLAG__",il="ngTempTokenPath",kT=/\n/gm,cm="__source",OT=Ne({provide:String,useValue:Ne});let wo;function um(t){const n=wo;return wo=t,n}function RT(t,n=ae.Default){if(void 0===wo)throw new Error("inject() must be called from an injection context");return null===wo?vg(t,void 0,n):wo.get(t,n&ae.Optional?null:void 0,n)}function P(t,n=ae.Default){return(function bS(){return Iu}()||RT)(ce(t),n)}const AT=P;function rd(t){const n=[];for(let e=0;e<t.length;e++){const i=ce(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,s=ae.Default;for(let o=0;o<i.length;o++){const a=i[o],l=PT(a);"number"==typeof l?-1===l?r=a.token:s|=
l:r=a}n.push(P(r,s))}else n.push(P(i))}return n}function Co(t,n){return t[id]=n,t.prototype[id]=n,t}function PT(t){return t[id]}const Do=Co(Qr("Inject",t=>({token:t})),-1),ei=Co(Qr("Optional"),8),Jr=Co(Qr("SkipSelf"),4);let sl,ol;function es(t){var n;return(null===(n=function od(){if(void 0===sl&&(sl=null,Fe.trustedTypes))try{sl=Fe.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return sl}())||void 0===n?void 0:n.createHTML(t))||t}function mm(t){var n;return(null===(n=function ad(){if(void 0===ol&&(ol=null,Fe.trustedTypes))try{ol=Fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return ol}())||void 0===n?void 0:n.createHTML(t))||t}class vm{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function $i(t){return
t instanceof vm?t.changingThisBreaksApplicationSecurity:t}function To(t,n){const e=function JT(t){return t instanceof vm&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}class XT{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(es(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class eE{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template"
);if("content"in e)return e.innerHTML=es(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=es(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const nE=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,iE=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function al(t){return(t=String(t)).match(nE)||t.match(iE)?t:"unsafe:"+t}function wm(t){return(t=String(t)).split(",").map(n=>al(n.trim())).join(", ")}function ti(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Eo(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Cm=ti("area,b
r,col,hr,img,wbr"),Dm=ti("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sm=ti("rp,rt"),ld=Eo(Cm,Eo(Dm,ti("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Eo(Sm,ti("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Eo(Sm,Dm)),cd=ti("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ud=ti("srcset"),Tm=Eo(cd,ud,ti("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,st
art,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ti("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),rE=ti("script,style,template");class sE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_
NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!ld.hasOwnProperty(e))return this.sanitizedSomething=!0,!rE.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Tm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;cd[a]&&(l=al(l)),ud[a]&&(l=wm(l)),this.buf.push(" ",o,'="',Em(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();ld.hasOwnProperty(e)&&!Cm.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Em(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINE
D_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const oE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,aE=/([^\#-~ |!])/g;function Em(t){return t.replace(/&/g,"&").replace(oE,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(aE,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ll;function dd(t){return"content"in t&&function cE(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ut=(()=>((ut=ut||{})[ut.NONE=0]="NONE",ut[ut.HTML=1]="HTML",ut[ut.STYLE=2]="STYLE",ut[ut.SCRIPT=3]="SCRIPT",ut[ut.URL=4]="URL",ut[ut.RESOURCE_URL=5]="RESOURCE_URL",ut))();function cl(t){const n=xo();return n?mm(n.sanitize(ut.HTML,t)||""):To(t,"HTML")?mm($i(t)):function lE(t,n){let e=null;try{ll=ll||function bm(t){const n=new eE(t);return function tE(){try{return!!(new window.DOMParser).parseFromSt
ring(es(""),"text/html")}catch(t){return!1}}()?new XT(n):n}(t);let i=n?String(n):"";e=ll.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=ll.getInertBodyElement(i)}while(i!==s);return es((new sE).sanitizeChildren(dd(e)||e))}finally{if(e){const i=dd(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}(Nu(),se(t))}function yi(t){const n=xo();return n?n.sanitize(ut.URL,t)||"":To(t,"URL")?$i(t):al(se(t))}function xo(){const t=O();return t&&t[12]}const km="__ngContext__";function Vt(t,n){t[km]=n}function pd(t){const n=function Io(t){return t[km]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function gd(t){return t.ngOriginalError}function EE(t,...n){t.error(...n)}class ts{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function TE(t){return t&&t.ngErrorLogger||EE}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalEr
ror(n){let e=n&&gd(n);for(;e&&gd(e);)e=gd(e);return e||null}}const Pm=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Fe))();function ni(t){return t instanceof Function?t():t}var ln=(()=>((ln=ln||{})[ln.Important=1]="Important",ln[ln.DashCase=2]="DashCase",ln))();function _d(t,n){return undefined(t,n)}function ko(t){const n=t[3];return Vn(n)?n[3]:n}function yd(t){return Bm(t[13])}function vd(t){return Bm(t[4])}function Bm(t){for(;null!==t&&!Vn(t);)t=t[4];return t}function is(t,n,e,i,r){if(null!=i){let s,o=!1;Vn(i)?s=i:Zn(i)&&(o=!0,i=i[0]);const a=ct(i);0===t&&null!==e?null==r?Gm(n,e,a):gr(n,e,a,r||null,!0):1===t&&null!==e?gr(n,e,a,r||null,!0):2===t?function Jm(t,n,e){const i=ul(t,n);i&&function YE(t,n,e,i){et(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=s&&function JE(t,n,e,i,r){const s=e[7];s!==ct(e)&&is(n,t,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];Mo(l[1],l,t,n,i,s)}}(n,t,s,e,r)}}function
wd(t,n,e){return et(t)?t.createElement(n,e):null===e?t.createElement(n):t.createElementNS(e,n)}function zm(t,n){const e=t[9],i=e.indexOf(n),r=n[3];1024&n[2]&&(n[2]&=-1025,Hu(r,-1)),e.splice(i,1)}function Cd(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const r=i[17];null!==r&&r!==t&&zm(r,i),n>0&&(t[e-1][4]=i[4]);const s=tl(t,10+n);!function zE(t,n){Mo(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function jm(t,n){if(!(256&n[2])){const e=n[11];et(e)&&e.destroyNode&&Mo(t,n,e,3,null,null),function $E(t){let n=t[13];if(!n)return Dd(t[1],t);for(;n;){let e=null;if(Zn(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Zn(n)&&Dd(n[1],n),n=n[3];null===n&&(n=t),Zn(n)&&Dd(n[1],n),e=n&&n[4]}n=e}}(n)}}function Dd(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function KE(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const r=n[e[i]];if(!(r instanceof ho)){con
st s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(t,n),function qE(t,n){const e=t.cleanup,i=n[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(n):ct(n[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();n[7]=null}}(t,n),1===n[1].type&&et(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&Vn(n[3])){e!==n[3]&&zm(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function Um(t,n,e){return function $m(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const r=t.data[i.directiveStart].encapsulation;if(r===Ln.None||r===Ln.Emulated)return null}return bn(i,e)}(t,n.parent,e)}function gr(t,n,e,i,r){et(t)?t.insertBefore(n,e,i,r):n.insertBefore
(e,i,r)}function Gm(t,n,e){et(t)?t.appendChild(n,e):n.appendChild(e)}function Wm(t,n,e,i,r){null!==i?gr(t,n,e,i,r):Gm(t,n,e)}function ul(t,n){return et(t)?t.parentNode(n):n.parentNode}function qm(t,n,e){return Ym(t,n,e)}let Ym=function Km(t,n,e){return 40&t.type?bn(t,e):null};function dl(t,n,e,i){const r=Um(t,i,n),s=n[11],a=qm(i.parent||n[6],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)Wm(s,r,e[l],a,!1);else Wm(s,r,e,a,!1)}function hl(t,n){if(null!==n){const e=n.type;if(3&e)return bn(n,t);if(4&e)return Td(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return hl(t,i);{const r=t[n.index];return Vn(r)?Td(-1,r):ct(r)}}if(32&e)return _d(n,t)()||ct(t[n.index]);{const i=Zm(t,n);return null!==i?Array.isArray(i)?i[0]:hl(ko(t[16]),i):hl(t,n.next)}}return null}function Zm(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Td(t,n){const e=10+t+1;if(e<n.length){const i=n[e],r=i[1].firstChild;if(null!==r)return hl(i,r)}return n[7]}function Ed(t,n,e,i,r,s,o)
{for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===n&&(a&&Vt(ct(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Ed(t,n,e.child,i,r,s,!1),is(n,t,r,a,s);else if(32&l){const c=_d(e,i);let u;for(;u=c();)is(n,t,r,u,s);is(n,t,r,a,s)}else 16&l?Xm(t,n,i,e,r,s):is(n,t,r,a,s);e=o?e.projectionNext:e.next}}function Mo(t,n,e,i,r,s){Ed(e,i,t.firstChild,n,r,s,!1)}function Xm(t,n,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)is(n,t,r,l[c],s);else Ed(t,n,l,o[3],r,s,!0)}function e_(t,n,e){et(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function xd(t,n,e){et(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function t_(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const s=n.length;if(r+s===i||t.charCodeAt(r+s)<=32)return r}e=r+1}}const n_="ng-template";function ex(t,n,e){let i=0;for(;i<t.length;){let r=t[i++];if(e&&"class"===r){if(r=t[i],-1!==t_(r.toLowerCa
se(),n,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===n)return!0;return!1}}return!1}function i_(t){return 4===t.type&&t.value!==n_}function tx(t,n,e){return n===(4!==t.type||e?t.value:n_)}function nx(t,n,e){let i=4;const r=t.attrs||[],s=function sx(t){for(let n=0;n<t.length;n++)if(Wg(t[n]))return n;return t.length}(r);let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!tx(t,l,e)||""===l&&1===n.length){if(Hn(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!ex(t.attrs,c,e)){if(Hn(i))return!1;o=!0}continue}const d=ix(8&i?"class":l,r,i_(t),e);if(-1===d){if(Hn(i))return!1;o=!0;continue}if(""!==c){let _;_=d>s?"":r[d+1].toLowerCase();const y=8&i?_:null;if(y&&-1!==t_(y,c,0)||2&i&&c!==_){if(Hn(i))return!1;o=!0}}}}else{if(!o&&!Hn(i)&&!Hn(l))return!1;if(o&&Hn(l))continue;o=!1,i=l|1&i}}return Hn(i)||o}function Hn(t){return 0==(1&t)}function ix(t,n,e,i){if(null===n)return-1
;let r=0;if(i||!e){let s=!1;for(;r<n.length;){const o=n[r];if(o===t)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=n[++r];for(;"string"==typeof a;)a=n[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function ox(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function r_(t,n,e=!1){for(let i=0;i<n.length;i++)if(nx(t,n[i],e))return!0;return!1}function ax(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function s_(t,n){return t?":not("+n.trim()+")":n}function lx(t){let n=t[0],e=1,i=2,r="",s=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const a=t[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Hn(o)&&(n+=s_(s,r),r=""),i=o,s=s||!Hn(i);e++}return""!==r&&(n+=s_(s,r)),n}const oe={};function g(t){o_(Ce(),O(),Gt()+
t,ja())}function o_(t,n,e,i){if(!i)if(3==(3&n[2])){const s=t.preOrderCheckHooks;null!==s&&qa(n,s,e)}else{const s=t.preOrderHooks;null!==s&&Ka(n,s,0,e)}ji(e)}function pl(t,n){return t<<17|n<<2}function zn(t){return t>>17&32767}function Id(t){return 2|t}function vi(t){return(131068&t)>>2}function kd(t,n){return-131069&t|n<<2}function Md(t){return 1|t}function __(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=t.data[s];Gu(r),o.contentQueries(2,n[s],s)}}}function Oo(t,n,e,i,r,s,o,a,l,c){const u=n.blueprint.slice();return u[0]=r,u[2]=140|i,Ag(u),u[3]=u[15]=t,u[8]=e,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=s,u[16]=2==n.type?t[16]:u,u}function rs(t,n,e,i,r){let s=t.data[n];if(null===s)s=function Bd(t,n,e,i,r){const s=Fg(),o=zu(),l=t.data[n]=function Ex(t,n,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,dir
ectiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,n,i,r);return null===t.firstChild&&(t.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(t,n,e,i,r),function YS(){return ne.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function uo(){const t=ne.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Jn(s,!0),s}function ss(t,n,e,i){if(0===e)return-1;const r=n.length;for(let s=0;s<e;s++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function Ro(t,n,e){$a(n);try{const i=t.viewQue
ry;null!==i&&Kd(1,i,e);const r=t.template;null!==r&&y_(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&__(t,n),t.staticViewQueries&&Kd(2,t.viewQuery,e);const s=t.components;null!==s&&function Dx(t,n){for(let e=0;e<n.length;e++)$x(t,n[e])}(n,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,Ga()}}function os(t,n,e,i){const r=n[2];if(256==(256&r))return;$a(n);const s=ja();try{Ag(n),function Lg(t){return ne.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&y_(t,n,e,2,i);const o=3==(3&r);if(!s)if(o){const c=t.preOrderCheckHooks;null!==c&&qa(n,c,null)}else{const c=t.preOrderHooks;null!==c&&Ka(n,c,0,null),Wu(n,0)}if(function jx(t){for(let n=yd(t);null!==n;n=vd(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&Hu(s,1),r[2]|=1024}}}(n),function zx(t){for(let n=yd(t);null!==n;n=vd(n))for(let e=10;e<n.length;e++){const i=n[e],r=i[1];Bu(i)&&os(r,i,r.template,i
[8])}}(n),null!==t.contentQueries&&__(t,n),!s)if(o){const c=t.contentCheckHooks;null!==c&&qa(n,c)}else{const c=t.contentHooks;null!==c&&Ka(n,c,1),Wu(n,1)}!function wx(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)ji(~r);else{const s=r,o=e[++i],a=e[++i];QS(o,s),a(2,n[s])}}}finally{ji(-1)}}(t,n);const a=t.components;null!==a&&function Cx(t,n){for(let e=0;e<n.length;e++)Ux(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&Kd(2,l,i),!s)if(o){const c=t.viewCheckHooks;null!==c&&qa(n,c)}else{const c=t.viewHooks;null!==c&&Ka(n,c,2),Wu(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(n[2]&=-73),1024&n[2]&&(n[2]&=-1025,Hu(n[3],-1))}finally{Ga()}}function Sx(t,n,e,i){const r=n[10],s=!ja(),o=Rg(n);try{s&&!o&&r.begin&&r.begin(),o&&Ro(t,n,i),os(t,n,e,i)}finally{s&&!o&&r.end&&r.end()}}function y_(t,n,e,i,r){const s=Gt(),o=2&i;try{ji(-1),o&&n.length>20&&o_(t,n,20,ja()),e(i,r)}finally{ji(s)}}function v_(t,n,e){if(Au(n)){const r=n.directiveEnd;f
or(let s=n.directiveStart;s<r;s++){const o=t.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function Hd(t,n,e){!Pg()||(function Ax(t,n,e,i){const r=e.directiveStart,s=e.directiveEnd;t.firstCreatePass||fo(e,n),Vt(i,n);const o=e.initialInputs;for(let a=r;a<s;a++){const l=t.data[a],c=Bn(l);c&&Vx(n,e,l);const u=go(n,t,a,e);Vt(u,n),null!==o&&Bx(0,a-r,u,l,0,o),c&&(sn(e.index,n)[8]=u)}}(t,n,e,bn(e,n)),128==(128&e.flags)&&function Px(t,n,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function ZS(){return ne.lFrame.currentDirectiveIndex}();try{ji(o);for(let l=i;l<r;l++){const c=t.data[l],u=n[l];Uu(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&x_(c,u)}}finally{ji(-1),Uu(a)}}(t,n,e))}function zd(t,n,e=bn){const i=n.localNames;if(null!==i){let r=n.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(n,t):t[o];t[r++]=a}}}function b_(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=ml(1,null,t.template,t.decls,t.vars,t.directiveDefs,t
.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function ml(t,n,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,_=function Tx(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:oe);return e}(u,d),y="function"==typeof c?c():c;return _[1]={type:t,blueprint:_,template:e,queries:null,viewQuery:a,declTNode:n,data:_.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:y,incompleteFirstPass:!1}}function D_(t,n,e,i){const r=A_(n);null===e?r.push(i):(r.push(e),t.firstCreatePass&&P_(t).push(i,r.length-1))}function S_(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(e=null===e?{}:e).has
OwnProperty(i)?e[i].push(n,r):e[i]=[n,r]}return e}function cn(t,n,e,i,r,s,o,a){const l=bn(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(N_(t,e,u,i,r),Ba(n)&&function kx(t,n){const e=sn(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function Ix(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=o?o(r,n.value||"",i):r,et(s)?s.setProperty(l,i,r):Ku(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function jd(t,n,e,i){let r=!1;if(Pg()){const s=function Fx(t,n,e){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];r_(e,o.selectors,!1)&&(r||(r=[]),Xa(fo(e,n),t,o.type),Bn(o)?(I_(t,e),r.unshift(o)):r.push(o))}return r}(t,n,e),o=null===i?null:{"":-1};if(null!==s){r=!0,k_(e,t.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=ss(t,n,s.length,null);for(let u=0;u<s.l
ength;u++){const d=s[u];e.mergedAttrs=Qa(e.mergedAttrs,d.hostAttrs),M_(t,e,n,c,d),Nx(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const _=d.type.prototype;!a&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(_.ngOnChanges||_.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function xx(t,n){const i=n.directiveEnd,r=t.data,s=n.attrs,o=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=r[c],d=u.inputs,_=null===s||i_(n)?null:Hx(d,s);o.push(_),a=S_(d,c,a),l=S_(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=a,n.outputs=l}(t,e)}o&&function Lx(t,n,e){if(n){const i=t.localNames=[];for(let r=0;r<n.length;r+=2){const s=e[n[r+1]];if(null==s)throw new en("301",`Export of name '${n[r+1]}' not found!`);i.push(n[r],s)}}}(e,i,o
)}return e.mergedAttrs=Qa(e.mergedAttrs,e.attrs),r}function E_(t,n,e,i,r,s){const o=s.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function Rx(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function x_(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function I_(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function Nx(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Bn(n)&&(e[""]=t)}}function k_(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function M_(t,n,e,i,r){t.data[i]=r;const s=r.factory||(r.factory=fr(r.type)),o=new ho(s,Bn(r),null);t.blueprint[i]=o,e[i]=o,E_(t,n,0,i,ss(t,e,r.hostVars,oe),r)}function Vx(t,n,e){const i=bn(n,t),r=b_(e),s=t[10],o=_l(t,Oo(t,r,null,e.onPush?64:16,i,n,s,s.createRenderer(i,e),null,null));t[n.index]=o}function ii(t,n,e,i,r,s){const o=bn(t,n)
;!function Ud(t,n,e,i,r,s,o){if(null==s)et(t)?t.removeAttribute(n,r,e):n.removeAttribute(r);else{const a=null==o?se(s):o(s,i||"",r);et(t)?t.setAttribute(n,r,a,e):e?n.setAttributeNS(e,r,a):n.setAttribute(r,a)}}(n[11],o,s,t.value,e,i,r)}function Bx(t,n,e,i,r,s){const o=s[n];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function Hx(t,n){let e=null,i=0;for(;i<n.length;){const r=n[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,t[r],n[i+1])),i+=2}else i+=2;else i+=4}return e}function O_(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function Ux(t,n){const e=sn(n,t);if(Bu(e)){const i=e[1];80&e[2]?os(i,e,i.template,e[8]):e[5]>0&&$d(e)}}function $d(t){for(let i=yd(t);null!==i;i=vd(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];os(o,s,o.template,s[8])}else s[5]>0&&$d(s)}const e=t[1].components;if(null!==e)for(let i=0;i<e.lengt
h;i++){const r=sn(e[i],t);Bu(r)&&r[5]>0&&$d(r)}}function $x(t,n){const e=sn(n,t),i=e[1];(function Gx(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Ro(i,e,e[8])}function _l(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function Gd(t){for(;t;){t[2]|=64;const n=ko(t);if(MS(t)&&!n)return t;t=n}return null}function qd(t,n,e){const i=n[10];i.begin&&i.begin();try{os(t,n,t.template,e)}catch(r){throw L_(n,r),r}finally{i.end&&i.end()}}function R_(t){!function Wd(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=pd(e),r=i[1];Sx(r,i,r.template,e)}}(t[8])}function Kd(t,n,e){Gu(0),n(t,e)}const Yx=(()=>Promise.resolve(null))();function A_(t){return t[7]||(t[7]=[])}function P_(t){return t.cleanup||(t.cleanup=[])}function L_(t,n){const e=t[9],i=e?e.get(ts,null):null;i&&i.handleError(n)}function N_(t,n,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=n[o],c=t.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function bi(t,n,e){const i=z
a(n,t);!function Hm(t,n,e){et(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function yl(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,s=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?s=a:1==s?r=Su(r,a):2==s&&(i=Su(i,a+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}const Yd=new ie("INJECTOR",-1);class V_{get(n,e=bo){if(e===bo){const i=new Error(`NullInjectorError: No provider for ${we(n)}!`);throw i.name="NullInjectorError",i}return e}}const Qd=new ie("Set Injector scope."),Ao={},Jx={};let Zd;function B_(){return void 0===Zd&&(Zd=new V_),Zd}function H_(t,n=null,e=null,i){const r=z_(t,n,e,i);return r._resolveInjectorDefTypes(),r}function z_(t,n=null,e=null,i){return new Xx(t,e,n||B_(),i)}class Xx{constructor(n,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Xn(e,a=>this.processProvider(a,n,e)),Xn([n],a=>this.processInjectorType(a
,[],s)),this.records.set(Yd,as(void 0,this));const o=this.records.get(Qd);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof n?null:we(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=bo,i=ae.Default){this.assertNotDestroyed();const r=um(this),s=Vi(void 0);try{if(!(i&ae.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function aI(t){return"function"==typeof t||"object"==typeof t&&t instanceof ie}(n)&&Eu(n);a=l&&this.injectableDefInScope(l)?as(Jd(n),Ao):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ae.Self?B_():this.parent).get(n,e=i&ae.Optional&&e===bo?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[il]=o[il]||[]).unshift(we(n)),r)throw o;return function FT(t,n,e,i){const r=t[il];throw n[cm]&&r.unshift(n[cm]),t.message=function LT(t,n,e,i=nu
ll){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=we(n);if(Array.isArray(n))r=n.map(we).join(" -> ");else if("object"==typeof n){let s=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):we(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(kT,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[il]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{Vi(s),um(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,r)=>n.push(we(r))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(n,e,i){if(!(n=ce(n)))return!1;let r=_g(n);const s=null==r&&n.ngModule||void 0,o=void 0===s?n:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=_g(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Xn(r.imports,d=>{this.processInjector
Type(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:_,providers:y}=u[d];Xn(y,b=>this.processProvider(b,_,y||Ve))}}this.injectorDefTypes.add(o);const l=fr(o)||(()=>new o);this.records.set(o,as(l,Ao));const c=r.providers;if(null!=c&&!a){const u=n;Xn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==n.providers}processProvider(n,e,i){let r=ls(n=ce(n))?n:ce(n&&n.provide);const s=function tI(t,n,e){return U_(t)?as(void 0,t.useValue):as(j_(t),Ao)}(n);if(ls(n)||!0!==n.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=as(void 0,Ao,!0),o.factory=()=>rd(o.multi),this.records.set(r,o)),r=n,o.multi.push(n)}this.records.set(r,s)}hydrate(n,e){return e.value===Ao&&(e.value=Jx,e.value=e.factory()),"object"==typeof e.value&&e.value&&function oI(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;cons
t e=ce(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Jd(t){const n=Eu(t),e=null!==n?n.factory:fr(t);if(null!==e)return e;if(t instanceof ie)throw new Error(`Token ${we(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function eI(t){const n=t.length;if(n>0){const i=vo(n,"?");throw new Error(`Can't resolve all parameters for ${we(t)}: (${i.join(", ")}).`)}const e=function _S(t){const n=t&&(t[Pa]||t[yg]);if(n){const e=function yS(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Error("unreachable")}function j_(t,n,e){l
et i;if(ls(t)){const r=ce(t);return fr(r)||Jd(r)}if(U_(t))i=()=>ce(t.useValue);else if(function iI(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...rd(t.deps||[]));else if(function nI(t){return!(!t||!t.useExisting)}(t))i=()=>P(ce(t.useExisting));else{const r=ce(t&&(t.useClass||t.provide));if(!function sI(t){return!!t.deps}(t))return fr(r)||Jd(r);i=()=>new r(...rd(t.deps))}return i}function as(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function U_(t){return null!==t&&"object"==typeof t&&OT in t}function ls(t){return"function"==typeof t}let kt=(()=>{class t{static create(e,i){var r;if(Array.isArray(e))return H_({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return H_({name:s},e.parent,e.providers,s)}}}return t.THROW_IF_NOT_FOUND=bo,t.NULL=new V_,t.\u0275prov=j({token:t,providedIn:"any",factory:()=>P(Yd)}),t.__NG_ELEMENT_ID__=-1,t})();function gI(t,n){Wa(pd(t)[1],mt())}function Be(t){let n=function ty(t){return Object.getPrototypeOf(t.prototype).constru
ctor}(t.type),e=!0;const i=[t];for(;n;){let r;if(Bn(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Error("Directives cannot inherit Components");r=n.\u0275dir}if(r){if(e){i.push(r);const o=t;o.inputs=th(t.inputs),o.declaredInputs=th(t.declaredInputs),o.outputs=th(t.outputs);const a=r.hostBindings;a&&vI(t,a);const l=r.viewQuery,c=r.contentQueries;if(l&&_I(t,l),c&&yI(t,c),Du(t.inputs,r.inputs),Du(t.declaredInputs,r.declaredInputs),Du(t.outputs,r.outputs),Bn(r)&&r.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(t),a===Be&&(e=!1)}}n=Object.getPrototypeOf(n)}!function mI(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Qa(r.hostAttrs,e=Qa(e,r.hostAttrs))}}(i)}function th(t){return t===Nr?{}:t===Ve?[]:t}function _I(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function yI(t,n){const e=t.co
ntentQueries;t.contentQueries=e?(i,r,s)=>{n(i,r,s),e(i,r,s)}:n}function vI(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}let vl=null;function cs(){if(!vl){const t=Fe.Symbol;if(t&&t.iterator)vl=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(vl=i)}}}return vl}function Po(t){return!!nh(t)&&(Array.isArray(t)||!(t instanceof Map)&&cs()in t)}function nh(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ri(t,n,e){return t[n]=e}function Fo(t,n){return t[n]}function Bt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function mr(t,n,e,i){const r=Bt(t,n,e);return Bt(t,n+1,i)||r}function bl(t,n,e,i,r){const s=mr(t,n,e,i);return Bt(t,n+2,r)||s}function Cn(t,n,e,i,r,s){const o=mr(t,n,e,i);return mr(t,n+2,r,s)||o}function q(t,n,e,i){const r=O();return Bt(r,Ur(),n)&&(Ce(),ii(tt(),r,t,n,e,i)),q}function ds(t,n,e,i){return Bt(t,Ur
(),e)?n+se(e)+i:oe}function v(t,n,e,i,r,s,o,a){const l=O(),c=Ce(),u=t+20,d=c.firstCreatePass?function EI(t,n,e,i,r,s,o,a,l){const c=n.consts,u=rs(n,t,4,o||null,zi(c,a));jd(n,e,u,zi(c,l)),Wa(n,u);const d=u.tViews=ml(2,u,i,r,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,s,o):c.data[u];Jn(d,!1);const _=l[11].createComment("");dl(c,l,_,d),Vt(_,l),_l(l,l[u]=O_(_,l,_,d)),Ha(d)&&Hd(c,l,d),null!=o&&zd(l,d,a)}function he(t){return jr(function KS(){return ne.lFrame.contextLView}(),20+t)}function w(t,n=ae.Default){const e=O();return null===e?P(t,n):Xg(mt(),e,ce(t),n)}function ah(){throw new Error("invalid")}function m(t,n,e){const i=O();return Bt(i,Ur(),n)&&cn(Ce(),tt(),i,t,n,i[11],e,!1),m}function lh(t,n,e,i,r){const o=r?"class":"style";N_(t,e,n.inputs[o],o,i)}function h(t,n,e,i){const r=O(),s=Ce(),o=20+t,a=r[11],l=r[o]=wd(a,n,function rT(){return ne.lFrame.currentNamespace}()),c=
s.firstCreatePass?function qI(t,n,e,i,r,s,o){const a=n.consts,c=rs(n,t,2,r,zi(a,s));return jd(n,e,c,zi(a,o)),null!==c.attrs&&yl(c,c.attrs,!1),null!==c.mergedAttrs&&yl(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,s,r,0,n,e,i):s.data[o];Jn(c,!0);const u=c.mergedAttrs;null!==u&&Ya(a,l,u);const d=c.classes;null!==d&&xd(a,l,d);const _=c.styles;null!==_&&e_(a,l,_),64!=(64&c.flags)&&dl(s,r,l,c),0===function US(){return ne.lFrame.elementDepthCount}()&&Vt(l,r),function $S(){ne.lFrame.elementDepthCount++}(),Ha(c)&&(Hd(s,r,c),v_(s,c,r)),null!==i&&zd(r,c)}function p(){let t=mt();zu()?ju():(t=t.parent,Jn(t,!1));const n=t;!function GS(){ne.lFrame.elementDepthCount--}();const e=Ce();e.firstCreatePass&&(Wa(e,t),Au(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function cT(t){return 0!=(16&t.flags)}(n)&&lh(e,n,O(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function uT(t){return 0!=(32&t.flags)}(n)&&lh(e,n,O(),n.stylesWithoutHost,!1)}function I(t,n,e,i){h(
t,n,e,i),p()}function pe(t,n,e){const i=O(),r=Ce(),s=t+20,o=r.firstCreatePass?function KI(t,n,e,i,r){const s=n.consts,o=zi(s,i),a=rs(n,t,8,"ng-container",o);return null!==o&&yl(a,o,!0),jd(n,e,a,zi(s,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(s,r,i,n,e):r.data[s];Jn(o,!0);const a=i[s]=i[11].createComment("");dl(r,i,a,o),Vt(a,i),Ha(o)&&(Hd(r,i,o),v_(r,o,i)),null!=e&&zd(i,o)}function fe(){let t=mt();const n=Ce();zu()?ju():(t=t.parent,Jn(t,!1)),n.firstCreatePass&&(Wa(n,t),Au(t)&&n.queries.elementEnd(t))}function H(t,n,e){pe(t,n,e),fe()}function z(){return O()}function Lo(t){return!!t&&"function"==typeof t.then}function wy(t){return!!t&&"function"==typeof t.subscribe}const ch=wy;function M(t,n,e,i){const r=O(),s=Ce(),o=mt();return function Dy(t,n,e,i,r,s,o,a){const l=Ha(i),u=t.firstCreatePass&&P_(t),d=n[8],_=A_(n);let y=!0;if(3&i.type||a){const T=bn(i,n),k=a?a(T):T,x=_.length,A=a?F=>a(ct(F[i.index])):i.index;if(et(e)){let F=null;if(!a&&l&&(F=function YI(t,n,e,i){const r=t.clean
up;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=n[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(t,n,r,i.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=s,F.__ngLastListenerFn__=s,y=!1;else{s=uh(i,n,d,s,!1);const te=e.listen(k,r,s);_.push(s,te),u&&u.push(r,A,x,x+1)}}else s=uh(i,n,d,s,!0),k.addEventListener(r,s,o),_.push(s),u&&u.push(r,A,x,o)}else s=uh(i,n,d,s,!1);const b=i.outputs;let D;if(y&&null!==b&&(D=b[r])){const T=D.length;if(T)for(let k=0;k<T;k+=2){const Ae=n[D[k]][D[k+1]].subscribe(s),Le=_.length;_.push(s,Ae),u&&u.push(r,i.index,Le,-(Le+1))}}}(s,r,r[11],o,t,n,!!e,i),M}function Sy(t,n,e,i){try{return!1!==e(i)}catch(r){return L_(t,r),!1}}function uh(t,n,e,i,r){return function s(o){if(o===Function)return i;const a=2&t.flags?sn(t.index,n):n;0==(32&n[2])&&Gd(a);let l=Sy(n,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Sy(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),
o.returnValue=!1),l}}function f(t=1){return function XS(t){return(ne.lFrame.contextLView=function eT(t,n){for(;t>0;)n=n[15],t--;return n}(t,ne.lFrame.contextLView))[8]}(t)}function QI(t,n){let e=null;const i=function rx(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let r=0;r<n.length;r++){const s=n[r];if("*"!==s){if(null===i?r_(t,s,!0):ax(i,s))return r}else e=r}return e}function Dn(t){const n=O()[16][6];if(!n.projection){const i=n.projection=vo(t?t.length:1,null),r=i.slice();let s=n.child;for(;null!==s;){const o=t?QI(s,t):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function ot(t,n=0,e){const i=O(),r=Ce(),s=rs(r,20+t,16,null,e||null);null===s.projection&&(s.projection=n),ju(),64!=(64&s.flags)&&function ZE(t,n,e){Xm(n[11],0,n,e,Um(t,e,n),qm(e.parent||n[6],e,n))}(r,i,s)}function Cl(t,n,e){return un(t,"",n,"",e),Cl}function un(t,n,e,i,r){const s=O(),o=ds(s,n,e,i);return o!==oe&&cn(Ce(),tt(),s,t,o,s[11],r,!1),un}fu
nction Ay(t,n,e,i,r){const s=t[e+1],o=null===n;let a=i?zn(s):vi(s),l=!1;for(;0!==a&&(!1===l||o);){const u=t[a+1];XI(t[a],n)&&(l=!0,t[a+1]=i?Md(u):Id(u)),a=i?zn(u):vi(u)}l&&(t[e+1]=i?Id(s):Md(s))}function XI(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Zr(t,n)>=0}const yt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Py(t){return t.substring(yt.key,yt.keyEnd)}function ek(t){return t.substring(yt.value,yt.valueEnd)}function Fy(t,n){const e=yt.textEnd;return e===n?-1:(n=yt.keyEnd=function ik(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,yt.key=n,e),bs(t,n,e))}function Ly(t,n){const e=yt.textEnd;let i=yt.key=bs(t,n,e);return e===i?-1:(i=yt.keyEnd=function rk(t,n,e){let i;for(;n<e&&(45===(i=t.charCodeAt(n))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=Vy(t,i,e),i=yt.value=bs(t,i,e),i=yt.valueEnd=function sk(t,n,e){let i=-1,r=-1,s=-1,o=n,a=o;for(;o<e;){const l=t.charCodeAt(o++);if(59===l
)return a;34===l||39===l?a=o=By(t,l,o,e):n===o-4&&85===s&&82===r&&76===i&&40===l?a=o=By(t,41,o,e):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(t,i,e),Vy(t,i,e))}function Ny(t){yt.key=0,yt.keyEnd=0,yt.value=0,yt.valueEnd=0,yt.textEnd=t.length}function bs(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Vy(t,n,e,i){return(n=bs(t,n,e))<e&&n++,n}function By(t,n,e,i){let r=-1,s=e;for(;s<i;){const o=t.charCodeAt(s++);if(o==n&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function wi(t,n,e){return Un(t,n,e,!1),wi}function si(t,n){return Un(t,n,null,!0),si}function Sn(t){$n(jy,ok,t,!1)}function ok(t,n){for(let e=function nk(t){return Ny(t),Ly(t,bs(t,0,yt.textEnd))}(n);e>=0;e=Ly(n,e))jy(t,Py(n),ek(n))}function ge(t){$n(an,oi,t,!0)}function oi(t,n){for(let e=function tk(t){return Ny(t),Fy(t,bs(t,0,yt.textEnd))}(n);e>=0;e=Fy(n,e))an(t,Py(n),!0)}function Un(t,n,e,i){const r=O(),s=Ce(),o=_i(2);s.firstUpdatePass&&zy(s,t,o,i),n!==oe&&Bt(r,o,n)&&Uy(s,s.data[Gt()],r,r[11],t,r[o+1]=function
pk(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=we($i(t)))),t}(n,e),i,o)}function $n(t,n,e,i){const r=Ce(),s=_i(2);r.firstUpdatePass&&zy(r,null,s,i);const o=O();if(e!==oe&&Bt(o,s,e)){const a=r.data[Gt()];if(Gy(a,i)&&!Hy(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Su(l,e||"")),lh(r,a,o,e,i)}else!function hk(t,n,e,i,r,s,o,a){r===oe&&(r=Ve);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const _=l<r.length?r[l+1]:void 0,y=c<s.length?s[c+1]:void 0;let D,b=null;u===d?(l+=2,c+=2,_!==y&&(b=d,D=y)):null===d||null!==u&&u<d?(l+=2,b=u):(c+=2,b=d,D=y),null!==b&&Uy(t,n,e,i,b,D,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function dk(t,n,e){if(null==e||""===e)return Ve;const i=[],r=$i(e);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&n(i,r);return i}(t,n,e),i,s)}}func
tion Hy(t,n){return n>=t.expandoStartIndex}function zy(t,n,e,i){const r=t.data;if(null===r[e+1]){const s=r[Gt()],o=Hy(t,e);Gy(s,i)&&null===n&&!o&&(n=!1),n=function ak(t,n,e,i){const r=function $u(t){const n=ne.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let s=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=No(e=dh(null,t,n,e,i),n.attrs,i),s=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==r)if(e=dh(r,t,n,e,i),null===s){let l=function lk(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==vi(i))return t[zn(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=dh(null,t,n,l[1],i),l=No(l,n.attrs,i),function ck(t,n,e,i){t[zn(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else s=function uk(t,n,e){let i;const r=n.directiveEnd;for(let s=1+n.directiveStylingLast;s<r;s++)i=No(i,t[s].hostAttrs,e);return No(i,n.attrs,e)}(t,n,i)}return void 0!==s&&(i?n.residualClasses=s:n.residualStyles=s),e}(r,s,n,i),function ZI(t,n,e,i,r,s){let
o=s?n.classBindings:n.styleBindings,a=zn(o),l=vi(o);t[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Zr(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const _=zn(t[a+1]);t[i+1]=pl(_,a),0!==_&&(t[_+1]=kd(t[_+1],i)),t[a+1]=function dx(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=pl(a,0),0!==a&&(t[a+1]=kd(t[a+1],i)),a=i;else t[i+1]=pl(l,0),0===a?a=i:t[l+1]=kd(t[l+1],i),l=i;c&&(t[i+1]=Id(t[i+1])),Ay(t,u,i,!0),Ay(t,u,i,!1),function JI(t,n,e,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof n&&Zr(s,n)>=0&&(e[i+1]=Md(e[i+1]))}(n,u,t,i,s),o=pl(a,l),s?n.classBindings=o:n.styleBindings=o}(r,s,n,e,o,i)}}function dh(t,n,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=n[a],i=No(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function No(t,n,e){const i=e?1:2;let r=-1;if(null!==n)for(let s=0;s<n.length;s++){const o=n[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t
)||(t=void 0===t?[]:["",t]),an(t,o,!!e||n[++s]))}return void 0===t?null:t}function jy(t,n,e){an(t,n,$i(e))}function Uy(t,n,e,i,r,s,o,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];Dl(function c_(t){return 1==(1&t)}(c)?$y(l,n,e,r,vi(c),o):void 0)||(Dl(s)||function l_(t){return 2==(2&t)}(c)&&(s=$y(l,null,e,r,a,o)),function XE(t,n,e,i,r){const s=et(t);if(n)r?s?t.addClass(e,i):e.classList.add(i):s?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:ln.DashCase;if(null==r)s?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=ln.Important),s?t.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,za(Gt(),e),r,s))}function $y(t,n,e,i,r,s){const o=null===n;let a;for(;r>0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let _=e[r+1];_===oe&&(_=d?Ve:void 0);let y=d?td(_,i):u===i?_:void 0;if(c&&!Dl(y)&&(y=td(l,i)),Dl(y)&&(a=y,o))return a;const b=t[r+1];r=o?zn(b):vi(b)}i
f(null!==n){let l=s?n.residualClasses:n.residualStyles;null!=l&&(a=td(l,i))}return a}function Dl(t){return void 0!==t}function Gy(t,n){return 0!=(t.flags&(n?16:32))}function E(t,n=""){const e=O(),i=Ce(),r=t+20,s=i.firstCreatePass?rs(i,r,1,n,null):i.data[r],o=e[r]=function bd(t,n){return et(t)?t.createText(n):t.createTextNode(n)}(e[11],n);dl(i,e,o,s),Jn(s,!1)}function le(t){return De("",t,""),le}function De(t,n,e){const i=O(),r=ds(i,t,n,e);return r!==oe&&bi(i,Gt(),r),De}function hh(t,n,e,i,r){const s=O(),o=function hs(t,n,e,i,r,s){const a=mr(t,mi(),e,r);return _i(2),a?n+se(e)+i+se(r)+s:oe}(s,t,n,e,i,r);return o!==oe&&bi(s,Gt(),o),hh}function qi(t,n,e,i,r,s,o){const a=O(),l=function ps(t,n,e,i,r,s,o,a){const c=bl(t,mi(),e,r,o);return _i(3),c?n+se(e)+i+se(r)+s+se(o)+a:oe}(a,t,n,e,i,r,s,o);return l!==oe&&bi(a,Gt(),l),qi}function ws(t,n,e,i,r,s,o,a,l){const c=O(),u=function fs(t,n,e,i,r,s,o,a,l,c){const d=Cn(t,mi(),e,r,o,l);return _i(4),d?n+se(e)+i+se(r)+s+se(o)+a+se(l)+c:oe}(c,t,n,e,i,r
,s,o,a,l);return u!==oe&&bi(c,Gt(),u),ws}const _r=void 0;var Ak=["en",[["a","p"],["AM","PM"],_r],[["AM","PM"],_r,_r],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],_r,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],_r,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_r,"{1} 'at' {0}",_r],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Rk(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&
&0===i?1:5}];let Cs={};function cv(t){return t in Cs||(Cs[t]=Fe.ng&&Fe.ng.common&&Fe.ng.common.locales&&Fe.ng.common.locales[t]),Cs[t]}var N=(()=>((N=N||{})[N.LocaleId=0]="LocaleId",N[N.DayPeriodsFormat=1]="DayPeriodsFormat",N[N.DayPeriodsStandalone=2]="DayPeriodsStandalone",N[N.DaysFormat=3]="DaysFormat",N[N.DaysStandalone=4]="DaysStandalone",N[N.MonthsFormat=5]="MonthsFormat",N[N.MonthsStandalone=6]="MonthsStandalone",N[N.Eras=7]="Eras",N[N.FirstDayOfWeek=8]="FirstDayOfWeek",N[N.WeekendRange=9]="WeekendRange",N[N.DateFormat=10]="DateFormat",N[N.TimeFormat=11]="TimeFormat",N[N.DateTimeFormat=12]="DateTimeFormat",N[N.NumberSymbols=13]="NumberSymbols",N[N.NumberFormats=14]="NumberFormats",N[N.CurrencyCode=15]="CurrencyCode",N[N.CurrencySymbol=16]="CurrencySymbol",N[N.CurrencyName=17]="CurrencyName",N[N.Currencies=18]="Currencies",N[N.Directionality=19]="Directionality",N[N.PluralCase=20]="PluralCase",N[N.ExtraData=21]="ExtraData",N))();const Sl="en-US";let uv=Sl;function gh(t,n,e,i,r
){if(t=ce(t),Array.isArray(t))for(let s=0;s<t.length;s++)gh(t[s],n,e,i,r);else{const s=Ce(),o=O();let a=ls(t)?t:ce(t.provide),l=j_(t);const c=mt(),u=1048575&c.providerIndexes,d=c.directiveStart,_=c.providerIndexes>>20;if(ls(t)||!t.multi){const y=new ho(l,r,w),b=_h(a,n,r?u:u+_,d);-1===b?(Xa(fo(c,o),s,a),mh(s,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(y),o.push(y)):(e[b]=y,o[b]=y)}else{const y=_h(a,n,u+_,d),b=_h(a,n,u,u+_),D=y>=0&&e[y],T=b>=0&&e[b];if(r&&!T||!r&&!D){Xa(fo(c,o),s,a);const k=function RM(t,n,e,i,r){const s=new ho(t,e,w);return s.multi=[],s.index=n,s.componentProviders=0,Pv(s,r,i&&!e),s}(r?OM:MM,e.length,r,i,l);!r&&T&&(e[b].providerFactory=k),mh(s,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(k),o.push(k)}else mh(s,t,y>-1?y:b,Pv(e[r?b:y],l,!r&&i));!r&&i&&T&&e[b].componentProviders++}}}function mh(t,n,e,i){const r=ls(n),s=function rI(t){return!!t.useClass}(n);if(r||s)
{const l=(s?ce(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function Pv(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function _h(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function MM(t,n,e,i){return yh(this.multi,[])}function OM(t,n,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=go(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),yh(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],yh(r,s);return s}function yh(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function be(t,n=[]){return e=>{e.providersResolver=(i,r)=>function kM(t,n,e){const i=Ce();if(i.firstCreatePass){const r=Bn(t);gh(e,i.data,i.blueprint,r,!0),gh(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class Fv{}class FM{resolveComponentFactory(n){throw function PM(t){const n=Error(`No c
omponent factory found for ${we(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Ss=(()=>{class t{}return t.NULL=new FM,t})();function LM(){return Ts(mt(),O())}function Ts(t,n){return new Se(bn(t,n))}let Se=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LM,t})();function NM(t){return t instanceof Se?t.nativeElement:t}class jo{}let dn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function BM(){const t=O(),e=sn(mt().index,t);return function VM(t){return t[11]}(Zn(e)?e:t)}(),t})(),HM=(()=>{class t{}return t.\u0275prov=j({token:t,providedIn:"root",factory:()=>null}),t})();class Uo{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const zM=new Uo("13.0.3"),vh={};function kl(t,n,e,i,r=!1){for(;null!==e;){const s=n[e.index];if(null!==s&&i.push(ct(s)),Vn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&kl(l[1],l,c,i)}const o=e
.type;if(8&o)kl(t,n,e.child,i);else if(32&o){const a=_d(e,n);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Zm(n,e);if(Array.isArray(a))i.push(...a);else{const l=ko(n[16]);kl(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class $o{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return kl(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Vn(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Cd(n,i),tl(e,i))}this._attachedToViewContainer=!1}jm(this._lView[1],this._lView)}onDestroy(n){D_(this._lView[1],this._lView,null,n)}markForCheck(){Gd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){qd(this._lView[1],th
is._lView,this.context)}checkNoChanges(){!function qx(t,n,e){Ua(!0);try{qd(t,n,e)}finally{Ua(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function UE(t,n){Mo(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=n}}class jM extends $o{constructor(n){super(n),this._view=n}detectChanges(){R_(this._view)}checkNoChanges(){!function Kx(t){Ua(!0);try{R_(t)}finally{Ua(!1)}}(this._view)}get context(){return null}}class Nv extends Ss{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Lt(n);return new bh(e,this.ngModule)}}function Vv(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}const $M=new ie("SC
HEDULER_TOKEN",{providedIn:"root",factory:()=>Pm});class bh extends Fv{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function cx(t){return t.map(lx).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Vv(this.componentDef.inputs)}get outputs(){return Vv(this.componentDef.outputs)}create(n,e,i,r){const s=(r=r||this.ngModule)?function GM(t,n){return{get:(e,i,r)=>{const s=t.get(e,vh,r);return s!==vh||i===vh?s:n.get(e,i,r)}}}(n,r.injector):n,o=s.get(jo,Og),a=s.get(HM,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function C_(t,n,e){if(et(t))return t.selectRootElement(n,e===Ln.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):wd(o.createRenderer(null,this.componentDef),c,function UM(t){const n=t.toLowerCase();return"svg"===n?kg:"ma
th"===n?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,_=function ey(t,n){return{components:[],scheduler:t||Pm,clean:Yx,playerHandler:n||null,flags:0}}(),y=ml(0,null,null,1,0,null,null,null,null,null),b=Oo(null,y,_,d,null,null,o,l,a,s);let D,T;$a(b);try{const k=function J_(t,n,e,i,r,s){const o=e[1];e[20]=t;const l=rs(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(yl(l,c,!0),null!==t&&(Ya(r,t,c),null!==l.classes&&xd(r,t,l.classes),null!==l.styles&&e_(r,t,l.styles)));const u=i.createRenderer(t,n),d=Oo(e,b_(n),null,n.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(Xa(fo(l,e),o,n.type),I_(o,l),k_(l,e.length,1)),_l(e,d),e[20]=d}(u,this.componentDef,b,o,l);if(u)if(i)Ya(l,u,["ng-version",zM.full]);else{const{attrs:x,classes:A}=function ux(t){const n=[],e=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&n.push(s,t[++i]):8===r&&e.push(s);else{if(!Hn(r))break;r=s}i++}return{attrs:n,classes:e}}(this.co
mponentDef.selectors[0]);x&&Ya(l,u,x),A&&A.length>0&&xd(l,u,A.join(" "))}if(T=Vu(y,20),void 0!==e){const x=T.projection=[];for(let A=0;A<this.ngContentSelectors.length;A++){const F=e[A];x.push(null!=F?Array.from(F):null)}}D=function X_(t,n,e,i,r){const s=e[1],o=function Ox(t,n,e){const i=mt();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),M_(t,i,n,ss(t,n,1,null),e));const r=go(n,t,i.directiveStart,i);Vt(r,n);const s=bn(i,n);return s&&Vt(s,n),r}(s,e,n);if(i.components.push(o),t[8]=o,r&&r.forEach(l=>l(o,n)),n.contentQueries){const l=mt();n.contentQueries(1,o,l.directiveStart)}const a=mt();return!s.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(ji(a.index),E_(e[1],a,0,a.directiveStart,a.directiveEnd,n),x_(n,o)),o}(k,this.componentDef,b,_,[gI]),Ro(y,b,null)}finally{Ga()}return new qM(this.componentType,D,Ts(T,b),b,T)}}class qM extends class AM{}{constructor(n,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=thi
s.changeDetectorRef=new jM(r),this.componentType=n}get injector(){return new Wr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class Ci{}class Bv{}const Es=new Map;class jv extends Ci{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Nv(this);const i=_n(n);this._bootstrapComponents=ni(i.bootstrap),this._r3Injector=z_(n,e,[{provide:Ci,useValue:this},{provide:Ss,useValue:this.componentFactoryResolver}],we(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=kt.THROW_IF_NOT_FOUND,i=ae.Default){return n===kt||n===Ci||n===Yd?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class wh extends Bv{constructor(n){super(),this.moduleType=n,null!==_n(n)&&function YM(t){const n=new Set;!fu
nction e(i){const r=_n(i,!0),s=r.id;null!==s&&(function Hv(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${we(n)} vs ${we(n.name)}`)}(s,Es.get(s),i),Es.set(s,i));const o=ni(r.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new jv(this.moduleType,n)}}function Tn(t,n,e){const i=$t()+t,r=O();return r[i]===oe?ri(r,i,e?n.call(e):n()):Fo(r,i)}function G(t,n,e,i){return $v(O(),$t(),t,n,e,i)}function it(t,n,e,i,r){return function Gv(t,n,e,i,r,s,o){const a=n+e;return mr(t,a,r,s)?ri(t,a+2,o?i.call(o,r,s):i(r,s)):Go(t,a+2)}(O(),$t(),t,n,e,i,r)}function xs(t,n,e,i,r,s){return Wv(O(),$t(),t,n,e,i,r,s)}function Di(t,n,e,i,r,s,o){return function qv(t,n,e,i,r,s,o,a,l){const c=n+e;return Cn(t,c,r,s,o,a)?ri(t,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):Go(t,c+4)}(O(),$t(),t,n,e,i,r,s,o)}function yr(t,n,e,i,r,s,o,a){const l=$t()+t,c=O(),u=Cn(c,l,e,i,r,s);return Bt(c,l+4,o)||u?ri(c,l+5,a?n.call(a,e,i,r,s,o):n(e,i,r,s,o)):Fo(c,l+5)}function Is(t,n,e,i,r,
s,o,a,l){const c=$t()+t,u=O(),d=Cn(u,c,e,i,r,s);return mr(u,c+4,o,a)||d?ri(u,c+6,l?n.call(l,e,i,r,s,o,a):n(e,i,r,s,o,a)):Fo(u,c+6)}function Ch(t,n,e,i){return function Kv(t,n,e,i,r,s){let o=n+e,a=!1;for(let l=0;l<r.length;l++)Bt(t,o++,r[l])&&(a=!0);return a?ri(t,o,i.apply(s,r)):Go(t,o)}(O(),$t(),t,n,e,i)}function Go(t,n){const e=t[n];return e===oe?void 0:e}function $v(t,n,e,i,r,s){const o=n+e;return Bt(t,o,r)?ri(t,o+1,s?i.call(s,r):i(r)):Go(t,o+1)}function Wv(t,n,e,i,r,s,o,a){const l=n+e;return bl(t,l,r,s,o)?ri(t,l+3,a?i.call(a,r,s,o):i(r,s,o)):Go(t,l+3)}function Si(t,n){const e=Ce();let i;const r=t+20;e.firstCreatePass?(i=function ZM(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=fr(i.type)),o=Vi(w);try{const a=Za(!1),l=s();return Za(a),function xI(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=nul
l),n[e]=i}(e,O(),r,l),l}finally{Vi(o)}}function Ki(t,n,e){const i=t+20,r=O(),s=jr(r,i);return Wo(r,i)?$v(r,$t(),n,s.transform,e,s):s.transform(e)}function Wo(t,n){return t[1].data[n].pure}function Dh(t){return n=>{setTimeout(t,void 0,n)}}const R=class tO extends Oe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var r,s,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const d=n;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Dh(l),a&&(a=Dh(a)),c&&(c=Dh(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof Ge&&n.add(u),u}};function nO(){return this._results[cs()]()}class Sh{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=cs(),i=Sh.prototype;i[e]||(i[e]=nO)}get changes
(){return this._changes||(this._changes=new R)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=wn(n);(this._changesDetected=!function bT(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],s=n[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let En=(()=>{class t{}return t.__NG_ELEMENT_ID__=sO,t})();const iO=En,rO=class extends iO{co
nstructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Oo(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),Ro(e,i,n),new $o(i)}};function sO(){return Ml(mt(),O())}function Ml(t,n){return 4&t.type?new rO(n,t,Ts(t,n)):null}let xn=(()=>{class t{}return t.__NG_ELEMENT_ID__=oO,t})();function oO(){return Jv(mt(),O())}const aO=xn,Qv=class extends aO{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ts(this._hostTNode,this._hostLView)}get injector(){return new Wr(this._hostTNode,this._hostLView)}get parentInjector(){const n=Ja(this._hostTNode,this._hostLView);if(Kg(n)){const e=Gr(n,this._hostLView),i=$r(n);return new Wr(e[1].data[i+8],e)}return new Wr(null,this._host
LView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=Zv(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const r=n.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(n,e,i,r,s){const o=n&&!function yo(t){return"function"==typeof t}(n);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?n:new bh(Lt(n)),c=i||this.parentInjector;if(!s&&null==l.ngModule&&c){const d=c.get(Ci,null);d&&(s=d)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[1];if(function jS(t){return Vn(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],_=new Qv(d,d[6],d[3]);_.detach(_.indexOf(n))}}const s=this._adjustIndex(e),o=this._lContainer;!function GE(t,n,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=n),i<s-10?(n[4]=e[r],rm(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null
!==o&&e!==o&&function WE(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=128}(r,i,o,s);const a=Td(s,o),l=i[11],c=ul(l,o[7]);return null!==c&&function jE(t,n,e,i,r,s){i[0]=r,i[6]=n,Mo(t,i,e,1,r,s)}(r,o[6],l,i,c,a),n.attachToViewContainerRef(),rm(Th(o),s,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=Zv(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Cd(this._lContainer,e);i&&(tl(Th(this._lContainer),e),jm(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Cd(this._lContainer,e);return i&&null!=tl(Th(this._lContainer),e)?new $o(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function Zv(t){return t[8]}function Th(t){return t[8]||(t[8]=[])}function Jv(t,n){let e;const i=n[t.index];if(Vn(i))e=i;else{let r;if(8&t.type)r=ct(i);else{const s=n[11];r=s.createComment("");const o=bn(t,n);gr(s,ul(s,o),r,function QE(t,n){return et(t)?t.nextSibli
ng(n):n.nextSibling}(s,o),!1)}n[t.index]=e=O_(i,n,r,t),_l(n,e)}return new Qv(e,t,n)}class Eh{constructor(n){this.queryList=n,this.matches=null}clone(){return new Eh(this.queryList)}setDirty(){this.queryList.setDirty()}}class xh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new xh(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==ib(n,e).matches&&this.queries[e].setDirty()}}class Xv{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class Ih{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].ele
mentEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(n,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new Ih(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class kh{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new kh(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._
declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(n,e,uO(e,s)),this.matchTNodeWithReadOption(n,e,el(e,n,s,!1,!1))}else i===En?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,el(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Se||r===xn||r===En&&4&e.type)this.addMatch(e.index,-2);else{const s=el(e,n,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function uO(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function hO(t,n,e,i){return-1===e?function dO(t,n){return 11&t.type?Ts(t,n):4&t.type?Ml(t,n):null}(n
,t):-2===e?function pO(t,n,e){return e===Se?Ts(n,t):e===En?Ml(n,t):e===xn?Jv(n,t):void 0}(t,n,i):go(t,t[1],e,n)}function eb(t,n,e,i){const r=n[19].queries[i];if(null===r.matches){const s=t.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:hO(n,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function Mh(t,n,e,i){const r=t.queries.getByIndex(e),s=r.matches;if(null!==s){const o=eb(t,n,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=n[-l];for(let d=10;d<u.length;d++){const _=u[d];_[17]===_[3]&&Mh(_[1],_,c,i)}if(null!==u[9]){const d=u[9];for(let _=0;_<d.length;_++){const y=d[_];Mh(y[1],y,c,i)}}}}}return i}function K(t){const n=O(),e=Ce(),i=Vg();Gu(i+1);const r=ib(e,i);if(t.dirty&&Rg(n)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?Mh(e,n,i,[]):eb(e,n,r,i);t.reset(s,NM),t.notifyOnChanges()}return!0}return!1}function He(t,n,e){const i=Ce();i.firstCreatePass&&(
nb(i,new Xv(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),tb(i,O(),n)}function Ye(t,n,e,i){const r=Ce();if(r.firstCreatePass){const s=mt();nb(r,new Xv(n,e,i),s.index),function gO(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(r,t),2==(2&e)&&(r.staticContentQueries=!0)}tb(r,O(),e)}function Y(){return function fO(t,n){return t[19].queries[n].queryList}(O(),Vg())}function tb(t,n,e){const i=new Sh(4==(4&e));D_(t,n,i,i.destroy),null===n[19]&&(n[19]=new xh),n[19].queries.push(new Eh(i))}function nb(t,n,e){null===t.queries&&(t.queries=new Ih),t.queries.track(new kh(n,e))}function ib(t,n){return t.queries.getByIndex(n)}function ze(t,n){return Ml(t,n)}function Al(...t){}const Pl=new ie("Application Initializer");let Ms=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Al,this.reject=Al,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.init
ialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Lo(s))e.push(s);else if(ch(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(P(Pl,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Ko=new ie("AppId"),AO={provide:Ko,useFactory:function RO(){return`${Lh()}${Lh()}${Lh()}`},deps:[]};function Lh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const bb=new ie("Platform Initializer"),Yo=new ie("Platform ID"),wb=new ie("appBootstrapListener");let Cb=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Yi=new ie("LocaleId"),Db=new ie("DefaultCurrencyCode");class PO{constructor(n,e){t
his.ngModuleFactory=n,this.componentFactories=e}}let Fl=(()=>{class t{compileModuleSync(e){return new wh(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),s=ni(_n(e).declarations).reduce((o,a)=>{const l=Lt(a);return l&&o.push(new bh(l)),o},[]);return new PO(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const LO=(()=>Promise.resolve(0))();function Nh(t){"undefined"==typeof Zone?LO.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Te{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnst
able=new R(!1),this.onMicrotaskEmpty=new R(!1),this.onStable=new R(!1),this.onError=new R(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function NO(){let t=Fe.requestAnimationFrame,n=Fe.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function HO(t){const n=()=>{!function BO(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId
||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Fe,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Bh(t),t.isCheckStableRunning=!0,Vh(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Bh(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return Sb(t),e.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&n(),Tb(t)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return Sb(t),e.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Tb(t)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Bh(t),Vh(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAng
ularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Te.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Te.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,n,VO,Al,Al);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const VO={};function Vh(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Bh(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestA
nimationFrameId)}function Sb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Tb(t){t._nesting--,Vh(t)}class zO{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new R,this.onMicrotaskEmpty=new R,this.onStable=new R,this.onError=new R}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}let Hh=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Te.assertNotInAngularZone(),Nh(()=>{this._isZoneStable=!0,this._ru
nCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Nh(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.t
imeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(P(Te))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),Eb=(()=>{class t{constructor(){this._applications=new Map,zh.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInT
ree(e,i=!0){return zh.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class jO{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Gn,zh=new jO;const xb=new ie("AllowMultipleToken");class Ib{constructor(n,e){this.name=n,this.token=e}}function kb(t,n,e=[]){const i=`Platform: ${n}`,r=new ie(i);return(s=[])=>{let o=Mb();if(!o||o.injector.get(xb,!1))if(t)t(e.concat(s).concat({provide:r,useValue:!0}));else{const a=e.concat(s).concat({provide:r,useValue:!0},{provide:Qd,useValue:"platform"});!function WO(t){if(Gn&&!Gn.destroyed&&!Gn.injector.get(xb,!1))throw new en("400","");Gn=t.get(Ob);const n=t.get(bb,null);n&&n.forEach(e=>e())}(kt.create({providers:a,name:i}))}return function qO(t){const n=Mb();if(!n)throw new en("401","");return n}()}}function Mb(){return Gn&&!Gn.destroyed?Gn:null}let Ob=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed
=!1}bootstrapModuleFactory(e,i){const a=function KO(t,n){let e;return e="noop"===t?new zO:("zone.js"===t?void 0:t)||new Te({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Te,useValue:a}];return a.run(()=>{const c=kt.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(ts,null);if(!d)throw new en("402","");return a.runOutsideAngular(()=>{const _=a.onError.subscribe({next:y=>{d.handleError(y)}});u.onDestroy(()=>{jh(this._modules,u),_.unsubscribe()})}),function YO(t,n,e){try{const i=e();return Lo(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(d,a,()=>{const _=u.injector.get(Ms);return _.runInitial
izers(),_.donePromise.then(()=>(function Vk(t){nn(t,"Expected localeId to be defined"),"string"==typeof t&&(uv=t.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Yi,Sl)||Sl),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=Rb({},i);return function $O(t,n,e){const i=new wh(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Qo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new en("403","");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new en("404","");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(P(kt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();f
unction Rb(t,n){return Array.isArray(n)?n.reduce(Rb,t):Object.assign(Object.assign({},t),n)}let Qo=(()=>{class t{constructor(e,i,r,s,o){this._zone=e,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Ee(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new Ee(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Te.assertNotInAngularZone(),Nh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Te.assertInAngularZone(),this.
_stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),d.unsubscribe()}});this.isStable=function nS(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return Lr(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof Ee?t[0]:so(n)(wu(t,e))}(a,l.pipe(function dS(){return t=>Cu()(function lS(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new cS(r,n));const s=Object.create(i,sS);return s.source=i,s.subjectFactory=r,s}}(uS)(t))}()))}bootstrap(e,i){if(!this._initStatus.done)throw new en("405","");let r;r=e instanceof Fv?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function GO(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Ci),a=r.create(kt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get
(Hh,null),u=c&&a.injector.get(Eb);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),jh(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new en("101","");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;jh(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(wb,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(P(Te),P(kt),P(ts),P(Ss),P(Ms))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})()
;function jh(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Pb=!0,vt=(()=>{class t{}return t.__NG_ELEMENT_ID__=JO,t})();function JO(t){return function XO(t,n,e){if(Ba(t)&&!e){const i=sn(t.index,n);return new $o(i,i)}return 47&t.type?new $o(n[16],n):null}(mt(),O(),16==(16&t))}class zb{constructor(){}supports(n){return Po(n)}create(n){return new sR(n)}}const rR=(t,n)=>n;class sR{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||rR}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<Ub(i,r,s)?e:i,a=Ub(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemov
ed;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let _=0;_<c;_++){const y=_<s.length?s[_]:s[_]=0,b=y+_;u<=b&&b<c&&(s[_]=y+1)}s[o.previousIndex]=u-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!Po(n))throw new Error(`Error trying to diff '${we(n)}'. Only arrays and iterables are allowed`);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)s=n[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o
)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function TI(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[cs()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n
.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let s;return null===n?s=this._itTail:(s=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,s,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,s,r)):n=this._addAfter(new oR(e,i),s,r),n}_verifyReinsertion(n,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?n=this._reinsertAfter(s,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded
=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,s=n._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new jb),this.
_linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new jb),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class oR{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this
.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class aR{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class jb{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new aR,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get is
Empty(){return 0===this.map.size}clear(){this.map.clear()}}function Ub(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}class $b{constructor(){}supports(n){return n instanceof Map||nh(n)}create(){return new lR}}class lR{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e
;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||nh(n)))throw new Error(`Error trying to diff '${we(n)}'. Only maps and objects are allowed`)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e
),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new cR(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){nul
l===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class cR{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Gb(){return new Os([new zb])}let Os=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Gb()),deps:[[t,new Jr,new ei]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function uR(t){return t.name|
|typeof t}(e)}'`)}}return t.\u0275prov=j({token:t,providedIn:"root",factory:Gb}),t})();function Wb(){return new Rs([new $b])}let Rs=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Wb()),deps:[[t,new Jr,new ei]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return t.\u0275prov=j({token:t,providedIn:"root",factory:Wb}),t})();const dR=[new $b],pR=new Os([new zb]),fR=new Rs(dR),gR=kb(null,"core",[{provide:Yo,useValue:"unknown"},{provide:Ob,deps:[kt]},{provide:Eb,deps:[]},{provide:Cb,deps:[]}]),bR=[{provide:Qo,useClass:Qo,deps:[Te,kt,ts,Ss,Ms]},{provide:$M,deps:[Te],useFactory:function wR(t){let n=[];return t.onStable.subscribe(()=>{for(;n.length;)n.pop()()}),function(e){n.push(e)}}},{provide:Ms,useClass:Ms,deps:[[new ei,Pl]]},{provide:Fl,useClass:Fl,deps:[]},
AO,{provide:Os,useFactory:function mR(){return pR},deps:[]},{provide:Rs,useFactory:function _R(){return fR},deps:[]},{provide:Yi,useFactory:function yR(t){return t||function vR(){return"undefined"!=typeof $localize&&$localize.locale||Sl}()},deps:[[new Do(Yi),new ei,new Jr]]},{provide:Db,useValue:"USD"}];let CR=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(P(Qo))},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:bR}),t})(),Nl=null;function ai(){return Nl}const bt=new ie("DocumentToken");let br=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:function(){return function ER(){return P(qb)}()},providedIn:"platform"}),t})();const xR=new ie("Location Initialized");let qb=(()=>{class t extends br{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ai().getBaseHref(this._doc)}
onPopState(e){const i=ai().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ai().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){Kb()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){Kb()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(P(bt))},t.\u0275prov=j(
{token:t,factory:function(){return function IR(){return new qb(P(bt))}()},providedIn:"platform"}),t})();function Kb(){return!!window.history.pushState}function qh(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Yb(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ti(t){return t&&"?"!==t[0]?"?"+t:t}let As=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:function(){return function kR(t){const n=P(bt).location;return new Qb(P(br),n&&n.origin||"")}()},providedIn:"root"}),t})();const Kh=new ie("appBaseHref");let Qb=(()=>{class t extends As{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please p
rovide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return qh(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ti(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+Ti(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+Ti(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(P(br),P(Kh,8))},t.\u0275prov=j({toke
n:t,factory:t.\u0275fac}),t})(),MR=(()=>{class t extends As{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=qh(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+Ti(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+Ti(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,
r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(P(br),P(Kh,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),Yh=(()=>{class t{constructor(e,i){this._subject=new R,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Yb(Zb(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ti(i))}normalize(e){return t.stripTrailingSlash(function RR(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,Zb(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._no
tifyUrlChangeListeners(this.prepareExternalUrl(e+Ti(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ti(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Ti,t.joinWithSlash=qh,t.stripTrailingSlash=Yb,t.\u0275fac=function(e){return new(e||t)(P(As),P(br))},t.\u0275prov=j({token:t,factory:function(){return function OR(){return new Yh(P(As),P(br))}()},providedIn:"root"}),t})();function Zb(t){return t.replace(/\/inde
x.html$/,"")}var dt=(()=>((dt=dt||{})[dt.Zero=0]="Zero",dt[dt.One=1]="One",dt[dt.Two=2]="Two",dt[dt.Few=3]="Few",dt[dt.Many=4]="Many",dt[dt.Other=5]="Other",dt))();const BR=function lv(t){return function qt(t){const n=function Pk(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=cv(n);if(e)return e;const i=n.split("-")[0];if(e=cv(i),e)return e;if("en"===i)return Ak;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[N.PluralCase]};class ql{}let fA=(()=>{class t extends ql{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(BR(i||this.locale)(e)){case dt.Zero:return"zero";case dt.One:return"one";case dt.Two:return"two";case dt.Few:return"few";case dt.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(P(Yi))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function ow(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)
return decodeURIComponent(s)}return null}let Je=(()=>{class t{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Po(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueD
iffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${we(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeE
lement,r)})}}return t.\u0275fac=function(e){return new(e||t)(w(Os),w(Rs),w(Se),w(dn))},t.\u0275dir=U({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class mA{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Mt=(()=>{class t{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of ty
pe '${function _A(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((r,s,o)=>{if(null==r.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new mA(null,this._ngForOf,-1,-1),null===o?void 0:o),l=new aw(r,a);i.push(l)}else if(null==o)this._viewContainer.remove(null===s?void 0:s);else if(null!==s){const a=this._viewContainer.get(s);this._viewContainer.move(a,o);const l=new aw(r,a);i.push(l)}});for(let r=0;r<i.length;r++)this._perViewChange(i[r].view,i[r].record);for(let r=0,s=this._viewContainer.length;r<s;r++){const o=this._viewContainer.get(r);o.context.index=r,o.context.count=s,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{this._viewContainer.get(r.currentIndex).context.$implicit=r.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){re
turn!0}}return t.\u0275fac=function(e){return new(e||t)(w(xn),w(En),w(Os))},t.\u0275dir=U({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class aw{constructor(n,e){this.record=n,this.view=e}}let Me=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new yA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){lw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){lw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this
._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(xn),w(En))},t.\u0275dir=U({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class yA{constructor(){this.$implicit=null,this.ngIf=null}}function lw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${we(n)}'.`)}let lt=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyl
e(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(Rs),w(dn))},t.\u0275dir=U({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Ot=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(w(xn))},t.\u02
75dir=U({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[gt]}),t})();function qn(t,n){return Error(`InvalidPipeArgument: '${n}' for pipe '${we(t)}'`)}class CA{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class DA{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const SA=new DA,TA=new CA;let Kl=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e
){if(Lo(e))return SA;if(wy(e))return TA;throw qn(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(w(vt,16))},t.\u0275pipe=Zt({name:"async",type:t,pure:!1}),t})(),dw=(()=>{class t{transform(e,i,r){if(null==e)return null;if(!this.supports(e))throw qn(t,e);return e.slice(i,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Zt({name:"slice",type:t,pure:!1}),t})(),Pe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:[{provide:ql,useClass:fA}]}),t})();const hw="browser";let GA=(()=>{class t{}return t.\u0275prov=j({token:t,providedIn:"root",factory:()=>new WA(P(bt),window)}),t})();class WA{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0
]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function qA(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(n)||s.querySelector(`[name="${n}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOff
set,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}attemptFocus(n){return n.focus(),this.document.activeElement===n}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=pw(this.window.history)||pw(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function pw(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class fw{}class lp extends class KA extends class TR{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function SR(t){Nl||(Nl=t)}(new lp)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){
return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function YA(){return Xo=Xo||document.querySelector("base"),Xo?Xo.getAttribute("href"):null}();return null==e?null:function QA(t){Yl=Yl||document.createElement("a"),Yl.setAttribute("href",t);const n=Yl.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Xo=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ow(document.cookie,n)}}let Yl,Xo=null;const gw=new ie("TRANSITION_ID"),JA=[{provide:Pl,useFactory:function ZA(t,n,e){return()=>{e.get(Ms).donePromise.then(()=>{const i=ai(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[gw,bt,kt],multi:!0}];class cp{static init(){!function
UO(t){zh=t}(new cp)}addToWindow(n){Fe.getAngularTestability=(i,r=!0)=>{const s=n.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},Fe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Fe.getAllAngularRootElements=()=>n.getAllRootElements(),Fe.frameworkStabilizers||(Fe.frameworkStabilizers=[]),Fe.frameworkStabilizers.push(i=>{const r=Fe.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const r=n.getTestability(e);return null!=r?r:i?ai().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let XA=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Ql=new ie("EventManagerPlugins");let Zl=(()=>{class t{constructor(e,i){this._zone=i,
this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(P(Ql),P(Te))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class mw{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const r=ai().getGlobalEventTarget(this._doc,n);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let _w=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._styles
Set.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),ea=(()=>{class t extends _w{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(yw),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(yw))}}return t.\u0275fac=function(e){return new(e||t)(P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function yw(t){ai().remove(t)}const up={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.
org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},dp=/%COMP%/g;function Jl(t,n,e){for(let i=0;i<n.length;i++){let r=n[i];Array.isArray(r)?Jl(t,r,e):(r=r.replace(dp,t),e.push(r))}return e}function ww(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Xl=(()=>{class t{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new hp(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ln.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new sP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ln.ShadowDom:return new oP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Jl(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),t
his.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(P(Zl),P(ea),P(Ko))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class hp{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(up[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const s=up[r];s?n.setAttributeNS(s,e,i):n.setAttribute(e,i)}else n.setAttribute(e,
i)}removeAttribute(n,e,i){if(i){const r=up[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(ln.DashCase|ln.Important)?n.style.setProperty(e,i,r&ln.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&ln.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,ww(i)):this.eventManager.addEventListener(n,e,ww(i))}}class sP extends hp{constructor(n,e,i,r){super(n),this.component=i;const s=Jl(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function nP(t){return"_ngcontent-%COMP%".replace(dp,t)}(r+"-"+i.id),this.hostAttr=function iP(t){return"_nghost-%COMP%".replace(dp,t)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,
this.contentAttr,""),i}}class oP extends hp{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Jl(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let aP=(()=>{class t extends mw{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventL
istener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Dw=["alt","control","meta","shift"],cP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Sw={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},uP={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let dP=(()=>{class t extends mw{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ai().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=t
._normalizeKey(i.pop());let o="";if(Dw.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function hP(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Sw.hasOwnProperty(n)&&(n=Sw[n]))}return cP[n]||n}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Dw.forEach(s=>{s!=r&&uP[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const mP=kb(gR,"browser",[{provide:Yo,useValue:hw},{provide:bb,useValue:function pP(){lp.makeCurrent(),cp.init()},multi:!0},{provide:bt,useFactory:function gP(){return fun
ction VS(t){Lu=t}(document),document},deps:[]}]),_P=[{provide:Qd,useValue:"root"},{provide:ts,useFactory:function fP(){return new ts},deps:[]},{provide:Ql,useClass:aP,multi:!0,deps:[bt,Te,Yo]},{provide:Ql,useClass:dP,multi:!0,deps:[bt]},{provide:Xl,useClass:Xl,deps:[Zl,ea,Ko]},{provide:jo,useExisting:Xl},{provide:_w,useExisting:ea},{provide:ea,useClass:ea,deps:[bt]},{provide:Hh,useClass:Hh,deps:[Te]},{provide:Zl,useClass:Zl,deps:[Ql,Te]},{provide:fw,useClass:XA,deps:[]}];let Tw=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ko,useValue:e.appId},{provide:gw,useExisting:Ko},JA]}}}return t.\u0275fac=function(e){return new(e||t)(P(t,12))},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:_P,imports:[Pe,CR]}),t})();function ee(...t){let n=t[t.length-1];return
Lr(n)?(t.pop(),bu(t,n)):wu(t)}function Ps(t,n){return It(t,n,1)}function Zi(t,n){return function(i){return i.lift(new IP(t,n))}}"undefined"!=typeof window&&window;class IP{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new kP(n,this.predicate,this.thisArg))}}class kP extends je{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}class Iw{}class kw{}class xi{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase(
);"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof xi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.norm
alizedNames.get(e))})}clone(n){const e=new xi;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof xi?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=n.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class MP{encodeKey(n){return Mw(n)}encodeValue(n){return Mw(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const RP=/%(\d[a-f0-9])
/gi,AP={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Mw(t){return encodeURIComponent(t).replace(RP,(n,e)=>{var i;return null!==(i=AP[e])&&void 0!==i?i:n})}function Ow(t){return`${t}`}class Ii{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new MP,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function OP(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,s)),n.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.ma
p.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Ii({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param
):void 0)||[];e.push(Ow(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Ow(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class PP{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}keys(){return this.map.keys()}}function Rw(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Aw(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Pw(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ta{constructor(n,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function FP(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":ca
se"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new xi),this.context||(this.context=new PP),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new Ii,this.urlWithParams=e}serializeBody(){return null===this.body?null:Rw(this.body)||Aw(this.body)||Pw(this.body)||function LP(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ii?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):t
his.body.toString()}detectContentTypeHeader(){return null===this.body||Pw(this.body)?null:Aw(this.body)?this.body.type||null:Rw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ii?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){var e;const i=n.method||this.method,r=n.url||this.url,s=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,a=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let c=n.headers||this.headers,u=n.params||this.params;const d=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((_,y)=>_.set(y,n.setHeaders[y]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((_,y)=>_.set(y,n.setParams[y]),u)),new ta(i,r,o,{params:u,headers:c,context:d,reportProgress:l,respon
seType:s,withCredentials:a})}}var pt=(()=>((pt=pt||{})[pt.Sent=0]="Sent",pt[pt.UploadProgress=1]="UploadProgress",pt[pt.ResponseHeader=2]="ResponseHeader",pt[pt.DownloadProgress=3]="DownloadProgress",pt[pt.Response=4]="Response",pt[pt.User=5]="User",pt))();class fp{constructor(n,e=200,i="OK"){this.headers=n.headers||new xi,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class gp extends fp{constructor(n={}){super(n),this.type=pt.ResponseHeader}clone(n={}){return new gp({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ec extends fp{constructor(n={}){super(n),this.type=pt.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ec({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.sta
tusText,url:n.url||this.url||void 0})}}class Fw extends fp{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function mp(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Fs=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof ta)s=e;else{let l,c;l=r.headers instanceof xi?r.headers:new xi(r.headers),r.params&&(c=r.params instanceof Ii?r.params:new Ii({fromObject:r.params})),s=new ta(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=ee(s).pipe(
Ps(l=>this.handler.handle(l)));if(e instanceof ta||"events"===r.observe)return o;const a=o.pipe(Zi(l=>l instanceof ec));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(ke(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ke(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ke(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ke(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Ii).append(i,"JSONP_CALLBACK"),observe:"body",responseTyp
e:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,mp(r,i))}post(e,i,r={}){return this.request("POST",e,mp(r,i))}put(e,i,r={}){return this.request("PUT",e,mp(r,i))}}return t.\u0275fac=function(e){return new(e||t)(P(Iw))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class Lw{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const Nw=new ie("HTTP_INTERCEPTORS");let NP=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const VP=/^\)\]\}',?\n/;let Vw=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ee(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((y,b)
=>r.setRequestHeader(y,b.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const y=e.detectContentTypeHeader();null!==y&&r.setRequestHeader("Content-Type",y)}if(e.responseType){const y=e.responseType.toLowerCase();r.responseType="json"!==y?y:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const y=1223===r.status?204:r.status,b=r.statusText||"OK",D=new xi(r.getAllResponseHeaders()),T=function BP(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new gp({headers:D,status:y,statusText:b,url:T}),o},l=()=>{let{headers:y,status:b,statusText:D,url:T}=a(),k=null;204!==b&&(k=void 0===r.response?r.responseText:r.response),0===b&&(b=k?200:0);let x=b>=200&&b<300;if("json"===e.responseType&&"string"==typeof k){const A=k;k=k.replace(VP,"");try{k=""!==k?JSON.parse(k):nu
ll}catch(F){k=A,x&&(x=!1,k={error:F,text:k})}}x?(i.next(new ec({body:k,headers:y,status:b,statusText:D,url:T||void 0})),i.complete()):i.error(new Fw({error:k,headers:y,status:b,statusText:D,url:T||void 0}))},c=y=>{const{url:b}=a(),D=new Fw({error:y,status:r.status||0,statusText:r.statusText||"Unknown Error",url:b||void 0});i.error(D)};let u=!1;const d=y=>{u||(i.next(a()),u=!0);let b={type:pt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(b.total=y.total),"text"===e.responseType&&!!r.responseText&&(b.partialText=r.responseText),i.next(b)},_=y=>{let b={type:pt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(b.total=y.total),i.next(b)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==s&&r.upload&&r.upload.addEventListener("progress",_)),r.send(s),i.next({type:pt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c
),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==s&&r.upload&&r.upload.removeEventListener("progress",_)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(P(fw))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const _p=new ie("XSRF_COOKIE_NAME"),yp=new ie("XSRF_HEADER_NAME");class Bw{}let HP=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ow(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(P(bt),P(Yo),P(_p))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),vp=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCa
se();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(P(Bw),P(yp))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),zP=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(Nw,[]);this.chain=i.reduceRight((r,s)=>new Lw(r,s),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(P(kw),P(kt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),jP=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:vp,useClass:NP}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:_p,useValue:e.cookieName}:[],e.headerName?{provide:yp,useValue:e.headerName}:[]]}}}return t.\u0275fa
c=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:[vp,{provide:Nw,useExisting:vp,multi:!0},{provide:Bw,useClass:HP},{provide:_p,useValue:"XSRF-TOKEN"},{provide:yp,useValue:"X-XSRF-TOKEN"}]}),t})(),UP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:[Fs,{provide:Iw,useClass:zP},Vw,{provide:kw,useExisting:Vw}],imports:[[jP.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function tc(t,n){return new Ee(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Ft(t[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(n?n.reduce((u,d,_)=>(u[d]=r[_],u),{}):r),e.complete())}}))}})}let Hw=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(
this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(w(dn),w(Se))},t.\u0275dir=U({type:t}),t})(),wr=(()=>{class t extends Hw{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=on(t)))(i||t)}}(),t.\u0275dir=U({type:t,features:[Be]}),t})();const Ht=new ie("NgValueAccessor"),WP={provide:Ht,useExisting:xe(()=>nc),multi:!0},KP=new ie("CompositionEventMode");let nc=(()=>{class t extends Hw{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function qP(){const t=ai()?ai().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){
this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(w(dn),w(Se),w(KP,8))},t.\u0275dir=U({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&M("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[be([WP]),Be]}),t})();function Ji(t){return null==t||0===t.length}const zt=new ie("NgValidators"),Xi=new ie("NgAsyncValidators");function na(t){return null}function Zw(t){return null!=t}function Jw(t){const n=Lo(t)?Ft(t):t;return ch(n),n}function Xw(t){let n={};return t.forEach(e=>{n=null!=e?Obje
ct.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function eC(t,n){return n.map(e=>e(t))}function tC(t){return t.map(n=>function QP(t){return!t.validate}(n)?n:e=>n.validate(e))}function bp(t){return null!=t?function nC(t){if(!t)return null;const n=t.filter(Zw);return 0==n.length?null:function(e){return Xw(eC(e,n))}}(tC(t)):null}function wp(t){return null!=t?function iC(t){if(!t)return null;const n=t.filter(Zw);return 0==n.length?null:function(e){return function $P(...t){if(1===t.length){const n=t[0];if(Fr(n))return tc(n,null);if(yu(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return tc(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return tc(t=1===t.length&&Fr(t[0])?t[0]:t,null).pipe(ke(e=>n(...e)))}return tc(t,null)}(eC(e,n).map(Jw)).pipe(ke(Xw))}}(tC(t)):null}function rC(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Cp(t){return t?Array.isArray(t)?t:[t]:[]}function ic(t,n){return Array.isAr
ray(t)?t.includes(n):t===n}function aC(t,n){const e=Cp(n);return Cp(t).forEach(r=>{ic(e,r)||e.push(r)}),e}function lC(t,n){return Cp(n).filter(e=>!ic(t,e))}class cC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return
this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=bp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=wp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class er extends cC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yt extends cC{get formDirective(){return null}get path(){return null}}class uC{constru
ctor(n){this._cd=n}is(n){var e,i,r;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[n])}}let rc=(()=>{class t extends uC{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(w(er,2))},t.\u0275dir=U({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&si("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[Be]}),t})(),dC=(()=>{class t extends uC{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(w(Yt,10))},t.\u0275dir=U({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings
:function(e,i){2&e&&si("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[Be]}),t})();function ia(t,n){Tp(t,n),n.valueAccessor.writeValue(t.value),function tF(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&hC(t,n)})}(t,n),function iF(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function nF(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&hC(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function eF(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(
()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function lc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Tp(t,n){const e=function sC(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(rC(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function oC(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(rC(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();lc(n._rawValidators,r),lc(n._rawAsyncValidators,r)}function hC(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function uc(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const ra="VALID",dc="INVALID",Ls="PENDING",sa="DISABLED";function Ip(t){return(Mp(t)?t.validators:t)||null}function gC(t){return Array.isArray(t)?bp(t):t||null}function kp(t,n){return(Mp(n)?n.asyncValidators:t
)||null}function mC(t){return Array.isArray(t)?wp(t):t||null}function Mp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Op{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=gC(this._rawValidators),this._composedAsyncValidatorFn=mC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===ra}get invalid(){return this.status===dc}get pending(){return this.status==Ls}get disabled(){return this.status===sa}get enabled(){return this.status!==sa}get dirty(){retu
rn!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=gC(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=mC(n)}addValidators(n){this.setValidators(aC(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(aC(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(lC(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(lC(n,this._rawAsyncValidators))}hasValidator(n){return ic(this._rawValidators,n)}hasAsyncValidator(n){return ic(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={})
{this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Ls,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=sa,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const
e=this._parentMarkedDirty(n.onlySelf);this.status=ra,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ra||this.status===Ls)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEa
chChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?sa:ra}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ls,this._hasOwnPendingAsyncValidator=!0;const e=Jw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function aF(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(e)),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(r=>{i=i instanceof oa?i.controls.hasOwnProperty(r)?i.controls[r]:null:i instanceof Rp&&i.at(r)||null}),i}(this,n,".")}getError(n,e
){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new R,this.statusChanges=new R}_calculateStatus(){return this._allControlsDisabled()?sa:this.errors?dc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ls)?Ls:this._anyControlsHaveStatus(dc)?dc:ra}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBo
xedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Mp(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ns extends Op{constructor(n=null,e,i){super(Ip(e),kp(i,e)),this._onChange=[],this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=null,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1
}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){uc(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){uc(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class oa extends Op{constructor(n,e,i){super(Ip(e),kp(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.control
s[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){this._checkAllValuesPresent(n),Object.keys(n).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.c
ontrols[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e instanceof Ns?e.value:e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_throwIfControlMissing(n){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[n])throw new Error(`Cannot find form control with name: ${n}.`)}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChi
ld(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(n){this._forEachChild((e,i)=>{if(void 0===n[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Rp extends Op{constructor(n,e,i){super(Ip(e),kp(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[
n]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){this._checkAllValuesPresent(n),n.forEach((i,r)=>{this._throwIfControlMissing(r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchVal
ue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n instanceof Ns?n.value:n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_throwIfControlMissing(n){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(n))throw new Error(`Cannot find form control at index ${n}`)}_forEachChild(n){this.controls.fo
rEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_checkAllValuesPresent(n){this._forEachChild((e,i)=>{if(void 0===n[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const lF={provide:Yt,useExisting:xe(()=>hc)},aa=(()=>Promise.resolve(null))();let hc=(()=>{class t extends Yt{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new R,this.form=new oa({},bp(e),wp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}add
Control(e){aa.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),ia(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){aa.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),uc(this._directives,e)})}addFormGroup(e){aa.then(()=>{const i=this._findContainer(e.path),r=new oa({});(function pC(t,n){Tp(t,n)})(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){aa.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){aa.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,function fC(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)}
)}(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(w(zt,10),w(Xi,10))},t.\u0275dir=U({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&M("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[be([lF]),Be]}),t})();const uF={provide:er,useExisting:xe(()=>Vs)},vC=(()=>Promise.resolve(null))();let Vs=(()=>{class t extends er{constructor(e,i,r,s){super(),this.control=new Ns,this._registered=!1,this.update=new R,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.
valueAccessor=function xp(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(s=>{s.constructor===nc?e=s:function oF(t){return Object.getPrototypeOf(t.constructor)===wr}(s)?i=s:r=s}),r||i||e||null}(0,s)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function Ep(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function oc(t,n){return[...n.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_se
tUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ia(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){vC.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;vC.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(w(Yt,9),w(zt,10),w(Xi,10),w(Ht,10))},t.\u0275dir=U({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:
["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[be([uF]),Be,gt]}),t})(),bC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=U({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const dF={provide:Ht,useExisting:xe(()=>Ap),multi:!0};let Ap=(()=>{class t extends wr{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=on(t)))(i||t)}}(),t.\u0275dir=U({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&M("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[be([dF]),Be]}),t})(),wC=(()=>{class t{}return t.\u0275fac=function(
e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})();const Pp=new ie("NgModelWithFormControlWarning");function MC(t){return"number"==typeof t?t:parseFloat(t)}let pc=(()=>{class t{constructor(){this._validator=na}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(i):na,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(){return null!=this[this.inputName]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=U({type:t,features:[gt]}),t})();const EF={provide:zt,useExisting:xe(()=>Hp),multi:!0};let Hp=(()=>{class t extends pc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>MC(e),this.createValidator=e=>function $w(t){return n=>{if(Ji(n.value)||Ji(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(e)}}return t.\u02
75fac=function(){let n;return function(i){return(n||(n=on(t)))(i||t)}}(),t.\u0275dir=U({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&q("max",i.enabled()?i.max:null)},inputs:{max:"max"},features:[be([EF]),Be]}),t})();const xF={provide:zt,useExisting:xe(()=>zp),multi:!0};let zp=(()=>{class t extends pc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>MC(e),this.createValidator=e=>function Uw(t){return n=>{if(Ji(n.value)||Ji(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=on(t)))(i||t)}}(),t.\u0275dir=U({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngM
odel",""]],hostVars:1,hostBindings:function(e,i){2&e&&q("min",i.enabled()?i.min:null)},inputs:{min:"min"},features:[be([xF]),Be]}),t})();const IF={provide:zt,useExisting:xe(()=>fc),multi:!0};let fc=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?function Gw(t){return Ji(t.value)?{required:!0}:null}(e):null}registerOnValidatorChange(e){this._onChange=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=U({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&q("required",i.required?"":null)},inputs:{required:"required"},features:[be([IF])]}),t})(),LC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t
.\u0275inj=J({imports:[[wC]]}),t})(),gc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[LC]}),t})(),NC=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Pp,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[LC]}),t})(),FF=(()=>{class t{group(e,i=null){const r=this._reduceControls(e);let a,s=null,o=null;return null!=i&&(function PF(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(i)?(s=null!=i.validators?i.validators:null,o=null!=i.asyncValidators?i.asyncValidators:null,a=null!=i.updateOn?i.updateOn:void 0):(s=null!=i.validator?i.validator:null,o=null!=i.asyncValidator?i.asyncValidator:null)),new oa(r,{asyncValidators:o,updateOn:a,validators:s})}control(e,i,r){return new Ns(e,i,r)}array(e,i,r){const s=e.map(o=>this._createControl(o));return new Rp(s,i,r)}_reduceControls(e){cons
t i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Ns||e instanceof oa||e instanceof Rp?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:NC}),t})();class Kn extends Oe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new cr;return this._value}next(n){super.next(this._value=n)}}class LF extends je{notifyNext(n,e,i,r,s){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class NF extends je{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.ou
terIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function VF(t,n,e,i,r=new NF(t,e,i)){if(!r.closed)return n instanceof Ee?n.subscribe(r):vu(n)(r)}const VC={};class HF{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new zF(n,this.resultSelector))}}class zF extends LF{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(VC),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(VF(this,n[i],void 0,i))}}notifyComplete(n){0==(this.active-=1)&&this.destination.complete()}notifyNext(n,e,i){const r=this.values,o=this.toRespond?r[i]===VC?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector
(n){let e;try{e=this.resultSelector.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const mc=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function jp(...t){return function jF(){return so(1)}()(ee(...t))}const Bs=new Ee(t=>t.complete());function _c(t){return t?function UF(t){return new Ee(n=>t.schedule(()=>n.complete()))}(t):Bs}function BC(t){return new Ee(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?Ft(e):_c()).subscribe(n)})}function ki(t,n){return"function"==typeof n?e=>e.pipe(ki((i,r)=>Ft(t(i,r)).pipe(ke((s,o)=>n(i,s,r,o))))):e=>e.lift(new $F(t))}class $F{constructor(n){this.project=n}call(n,e){return e.subscribe(new GF(n,this.project))}}class GF extends io{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.
error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new no(this),r=this.destination;r.add(i),this.innerSubscription=ro(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const HC=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Up(t){return n=>0===t?_c():n.lift(new WF(t))}class WF{constructor(n){if(this.total=n,this.total<0)throw new HC}call(n,e){return e.subscribe(new qF(n,this.total))}}class qF extends je{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i
===e&&(this.destination.complete(),this.unsubscribe()))}}function $p(...t){const n=t[t.length-1];return Lr(n)?(t.pop(),e=>jp(t,e,n)):e=>jp(t,e)}function zC(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new KF(t,n,e))}}class KF{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new YF(n,this.accumulator,this.seed,this.hasSeed))}}class YF extends je{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function Mi(t){return function(e){const i=new QF(t),r=e.lift(i);return i.caught=r}}class QF{constructor(n){this.selector=n}call(n,e){return e.subscribe(new ZF(n,this.selector,t
his.caught))}}class ZF extends io{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new no(this);this.add(i);const r=ro(e,i);r!==i&&this.add(r)}}}function Gp(t){return function(e){return 0===t?_c():e.lift(new JF(t))}}class JF{constructor(n){if(this.total=n,this.total<0)throw new HC}call(n,e){return e.subscribe(new XF(n,this.total))}}class XF extends je{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length<i?e.push(n):e[r%i]=n}_complete(){const n=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<i;s++){const o=e++%i;n.next(r[o])}}n.complete()}}function jC(t=n2){return n=>n.lift(new e2(t))}class e2{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new t2(n,this.errorFacto
ry))}}class t2 extends je{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function n2(){return new mc}function UC(t=null){return n=>n.lift(new r2(t))}class r2{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new s2(n,this.defaultValue))}}class s2 extends je{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Hs(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Zi((r,s)=>t(r,s,i)):Oa,Up(1),e?UC(n):jC(()=>new mc))}function tr(){}function Re(t,n,e){return function(r){return r.lift(new a2(t,n,e))}}class a2{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new
l2(n,this.nextOrObserver,this.error,this.complete))}}class l2 extends je{constructor(n,e,i,r){super(n),this._tapNext=tr,this._tapError=tr,this._tapComplete=tr,this._tapError=i||tr,this._tapComplete=r||tr,Li(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||tr,this._tapError=e.error||tr,this._tapComplete=e.complete||tr)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}class u2{constructor(n){this.callback=n}call(n,e){return e.subscribe(new d2(n,this.callback))}}class d2 extends je{constructor(n,e){super(n),this.add(new Ge(e))}}class Oi{constructor(n,e){this.id=n,this.url=e}}class Wp extends Oi{constructor(n,e,i="imperative",r
=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class la extends Oi{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $C extends Oi{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class h2 extends Oi{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class p2 extends Oi{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class f2 extends Oi{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id},
url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class g2 extends Oi{constructor(n,e,i,r,s){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class m2 extends Oi{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _2 extends Oi{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class GC{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class WC{constructor(n){this.route=n}toString(){re
turn`RouteConfigLoadEnd(path: ${this.route.path})`}}class y2{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class v2{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class b2{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class w2{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qC{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const _e="primary";class C2{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(
n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function zs(t){return new C2(t)}const KC="ngNavigationCancelingError";function qp(t){const n=Error("NavigationCancelingError: "+t);return n[KC]=!0,n}function S2(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const r={};for(let s=0;s<i.length;s++){const o=i[s],a=t[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function li(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let s=0;s<e.length;s++)if(r=e[s],!YC(t[r],n[r]))return!1;return!0}function YC(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort
();return e.every((r,s)=>i[s]===r)}return t===n}function QC(t){return Array.prototype.concat.apply([],t)}function ZC(t){return t.length>0?t[t.length-1]:null}function Rt(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function ci(t){return ch(t)?t:Lo(t)?Ft(Promise.resolve(t)):ee(t)}const x2={exact:function e0(t,n,e){if(!Dr(t.segments,n.segments)||!yc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!e0(t.children[i],n.children[i],e))return!1;return!0},subset:t0},JC={exact:function I2(t,n){return li(t,n)},subset:function k2(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>YC(t[e],n[e]))},ignored:()=>!0};function XC(t,n,e){return x2[e.paths](t.root,n.root,e.matrixParams)&&JC[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function t0(t,n,e){return n0(t,n,n.segments,e)}function n0(t,n,e,i){if(t.segments.length>e.length){const r=t.segm
ents.slice(0,e.length);return!(!Dr(r,e)||n.hasChildren()||!yc(r,e,i))}if(t.segments.length===e.length){if(!Dr(t.segments,e)||!yc(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!t0(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(Dr(t.segments,r)&&yc(t.segments,r,i)&&t.children[_e])&&n0(t.children[_e],n,s,i)}}function yc(t,n,e){return n.every((i,r)=>JC[e](t[r].parameters,i.parameters))}class Cr{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zs(this.queryParams)),this._queryParamMap}toString(){return R2.serialize(this)}}class ve{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Rt(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vc(this)}}class ca{constructor(n,e){this.path=n,this.para
meters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=zs(this.parameters)),this._parameterMap}toString(){return l0(this)}}function Dr(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class r0{}class s0{parse(n){const e=new z2(n);return new Cr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${ua(n.root,!0)}`,i=function F2(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${bc(e)}=${bc(r)}`).join("&"):`${bc(e)}=${bc(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function A2(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const R2=new s0;function vc(t){return t.segments.map(n=>l0(n)).join("/")}function ua(t,n){if(!t.hasChildren())return vc(t);if(n){const e=t.children[_e]?ua(t.children[_e],!1):"",i=[];return Rt(t.children,(r,s)=>{s!==_e&&i.push(`${s}:${ua(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{co
nst e=function O2(t,n){let e=[];return Rt(t.children,(i,r)=>{r===_e&&(e=e.concat(n(i,r)))}),Rt(t.children,(i,r)=>{r!==_e&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===_e?[ua(t.children[_e],!1)]:[`${r}:${ua(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[_e]?`${vc(t)}/${e[0]}`:`${vc(t)}/(${e.join("//")})`}}function o0(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function bc(t){return o0(t).replace(/%3B/gi,";")}function Kp(t){return o0(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wc(t){return decodeURIComponent(t)}function a0(t){return wc(t.replace(/\+/g,"%20"))}function l0(t){return`${Kp(t.path)}${function P2(t){return Object.keys(t).map(n=>`;${Kp(n)}=${Kp(t[n])}`).join("")}(t.parameters)}`}const L2=/^[^\/()?;=#]+/;function Cc(t){const n=t.match(L2);return n?n[0]:""}const N2=/^[^=?&#]+/,B2=/^[^&#]+/;class z2{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){r
eturn this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ve([],{}):new ve([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[_e]=new ve(n,e)),i}parseSegment(){const n=Cc(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.re
maining}'.`);return this.capture(n),new ca(wc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Cc(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Cc(this.remaining);r&&(i=r,this.capture(i))}n[wc(e)]=wc(i)}parseQueryParam(n){const e=function V2(t){const n=t.match(N2);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function H2(t){const n=t.match(B2);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=a0(e),s=a0(i);if(n.hasOwnProperty(r)){let o=n[r];Array.isArray(o)||(o=[o],n[r]=o),o.push(s)}else n[r]=s}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Cc(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.in
dexOf(":")),this.capture(s),this.capture(":")):n&&(s=_e);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[_e]:new ve([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class c0{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=Yp(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=Yp(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=Qp(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Qp(n,this._root).map(e=>e.value)}}function Yp(t,n){if(t===n.value)return n;for(const e of n.children){const i=Yp(t,e);if(i)return i}re
turn null}function Qp(t,n){if(t===n.value)return[n];for(const e of n.children){const i=Qp(t,e);if(i.length)return i.unshift(n),i}return[]}class Ri{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function js(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class u0 extends c0{constructor(n,e){super(n),this.snapshot=e,Zp(this,n)}toString(){return this.snapshot.toString()}}function d0(t,n){const e=function j2(t,n){const o=new Dc([],{},{},"",{},_e,n,null,t.root,-1,{});return new p0("",new Ri(o,[]))}(t,n),i=new Kn([new ca("",{})]),r=new Kn({}),s=new Kn({}),o=new Kn({}),a=new Kn(""),l=new Sr(i,r,o,a,s,_e,n,e.root);return l.snapshot=e.root,new u0(new Ri(l,[]),e)}class Sr{constructor(n,e,i,r,s,o,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get pare
nt(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(ke(n=>zs(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ke(n=>zs(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function h0(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function U2(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(
e.slice(i))}class Dc{constructor(n,e,i,r,s,o,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=zs(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zs(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class p0 extends c0{constructor(n,e){super(e),this.url=n,Zp(this,e)}toString(){return f0(this._root)}}function Zp(t,n){n.value._routerState=t,n.children.forEach(e=>Zp(
t,e))}function f0(t){const n=t.children.length>0?` { ${t.children.map(f0).join(", ")} } `:"";return`${t.value}${n}`}function Jp(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,li(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),li(n.params,e.params)||t.params.next(e.params),function T2(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!li(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),li(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Xp(t,n){const e=li(t.params,n.params)&&function M2(t,n){return Dr(t,n)&&t.every((e,i)=>li(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Xp(t.parent,n.parent))}function da(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function G2(t,n,e){return n.children.map(i=
>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return da(t,i,r);return da(t,i)})}(t,n,e);return new Ri(i,r)}{if(t.shouldAttach(n.value)){const s=t.retrieve(n.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(a=>da(t,a)),o}}const i=function W2(t){return new Sr(new Kn(t.url),new Kn(t.params),new Kn(t.queryParams),new Kn(t.fragment),new Kn(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(s=>da(t,s));return new Ri(i,r)}}function Sc(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ha(t){return"object"==typeof t&&null!=t&&t.outlets}function ef(t,n,e,i,r){let s={};return i&&Rt(i,(o,a)=>{s[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new Cr(e.root===t?n:g0(e.root,t,n),s,r)}function g0(t,n,e){const i={};return Rt(t.children,(r,s)=>{i[s]=r===n?e:g0(r,n,e)}),new ve(t.segments,i)}class m0{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length
>0&&Sc(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(ha);if(r&&r!==ZC(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class tf{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function _0(t,n,e){if(t||(t=new ve([],{})),0===t.segments.length&&t.hasChildren())return Tc(t,n,e);const i=function J2(t,n,e){let i=0,r=n;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return s;const o=t.segments[r],a=e[i];if(ha(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!v0(l,c,o))return s;i+=2}else{if(!v0(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const s=new ve(t.segments.slice(0,i.pathIndex),{});return s.children[_e]=new ve(
t.segments.slice(i.pathIndex),t.children),Tc(s,0,r)}return i.match&&0===r.length?new ve(t.segments,{}):i.match&&!t.hasChildren()?nf(t,n,e):i.match?Tc(t,0,r):nf(t,n,e)}function Tc(t,n,e){if(0===e.length)return new ve(t.segments,{});{const i=function Z2(t){return ha(t[0])?t[0].outlets:{[_e]:t}}(e),r={};return Rt(i,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=_0(t.children[o],n,s))}),Rt(t.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new ve(t.segments,r)}}function nf(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r<e.length;){const s=e[r];if(ha(s)){const l=X2(s.outlets);return new ve(i,l)}if(0===r&&Sc(e[0])){i.push(new ca(t.segments[n].path,y0(e[0]))),r++;continue}const o=ha(s)?s.outlets[_e]:`${s}`,a=r<e.length-1?e[r+1]:null;o&&a&&Sc(a)?(i.push(new ca(o,y0(a))),r+=2):(i.push(new ca(o,{})),r++)}return new ve(i,{})}function X2(t){const n={};return Rt(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=nf(new ve([],{}),0,e))}),n}function y0(t){const n={};return Rt(t,(e,i)=>n[i]=`
${e}`),n}function v0(t,n,e){return t==e.path&&li(n,e.parameters)}class tL{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Jp(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=js(e);n.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),Rt(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(n,e,i){const r=n.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtre
e(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,s=js(n);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(i&&i.outlet){const o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,s=js(n);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=js(e);n.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new w2(s.value.snapshot))}),n.children.length&&this.forwardEvent(new v2(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,s=e?e.value:null;if(Jp(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,o.ch
ildren)}else this.activateChildRoutes(n,e,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Jp(a.route.value),this.activateChildRoutes(n,null,o.children)}else{const a=function nL(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}class rf{constructor(n,e){this.routes=n,this.module=e}}function nr(t){return"function"==typeof t}function Tr(t){return t instanceof Cr}const
pa=Symbol("INITIAL_VALUE");function fa(){return ki(t=>function BF(...t){let n,e;return Lr(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Fr(t[0])&&(t=t[0]),wu(t,e).lift(new HF(n))}(t.map(n=>n.pipe(Up(1),$p(pa)))).pipe(zC((n,e)=>{let i=!1;return e.reduce((r,s,o)=>r!==pa?r:(s===pa&&(i=!0),i||!1!==s&&o!==e.length-1&&!Tr(s)?r:s),n)},pa),Zi(n=>n!==pa),ke(n=>Tr(n)?n:!0===n),Up(1)))}class lL{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ga,this.attachRef=null}}class ga{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new lL,this.contexts.set(n,e)),e}getContext(n){return this
.contexts.get(n)||null}}let Ec=(()=>{class t{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new R,this.deactivateEvents=new R,this.attachEvents=new R,this.detachEvents=new R,this.name=s||_e,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("
Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new cL(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(w(ga),w(xn),w(Ss),mo("name"),w(vt))},
t.\u0275dir=U({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class cL{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Sr?this.route:n===ga?this.childContexts:this.parent.get(n,e)}}let b0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&I(0,"router-outlet")},directives:[Ec],encapsulation:2}),t})();function w0(t,n=""){for(let e=0;e<t.length;e++){const i=t[e];uL(i,dL(n,i))}}function uL(t,n){t.children&&w0(t.children,n)}function dL(t,n){return n?t||n.path?t&&!n.path?`${t}/`:!t&&n.path?n.path:`${t}/${n.path}`:"":t}function sf(t){const n=t.children&&t.children.map(sf),e=n?Object.assign(Object.assign({},t),{children:n}):Object.assign({},t);return!e.component&&(n||e.loadChildren)&&e.outlet&&e.outlet!==_e&&(e.component=
b0),e}function Mn(t){return t.outlet||_e}function C0(t,n){const e=t.filter(i=>Mn(i)===n);return e.push(...t.filter(i=>Mn(i)!==n)),e}const D0={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function xc(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},D0):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(n.matcher||S2)(e,t,n);if(!s)return Object.assign({},D0);const o={};Rt(s.posParams,(l,c)=>{o[c]=l.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Ic(t,n,e,i,r="corrected"){if(e.length>0&&function fL(t,n,e){return e.some(i=>kc(t,n,i)&&Mn(i)!==_e)}(t,e,i)){const o=new ve(n,function pL(t,n,e,i){const r={};r[_e]=i,i._sourceSegment=
t,i._segmentIndexShift=n.length;for(const s of e)if(""===s.path&&Mn(s)!==_e){const o=new ve([],{});o._sourceSegment=t,o._segmentIndexShift=n.length,r[Mn(s)]=o}return r}(t,n,i,new ve(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function gL(t,n,e){return e.some(i=>kc(t,n,i))}(t,e,i)){const o=new ve(t.segments,function hL(t,n,e,i,r,s){const o={};for(const a of i)if(kc(t,e,a)&&!r[Mn(a)]){const l=new ve([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===s?t.segments.length:n.length,o[Mn(a)]=l}return Object.assign(Object.assign({},r),o)}(t,n,e,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const s=new ve(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}function kc(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function S0(t,n,e,i){return!!(Mn(t)===i
||i!==_e&&kc(n,e,t))&&("**"===t.path||xc(n,t,e).matched)}function T0(t,n,e){return 0===n.length&&!t.children[e]}class ma{constructor(n){this.segmentGroup=n||null}}class E0{constructor(n){this.urlTree=n}}function Mc(t){return new Ee(n=>n.error(new ma(t)))}function x0(t){return new Ee(n=>n.error(new E0(t)))}function mL(t){return new Ee(n=>n.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class vL{constructor(n,e,i,r,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=n.get(Ci)}apply(){const n=Ic(this.urlTree.root,[],[],this.config).segmentGroup,e=new ve(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,_e).pipe(ke(s=>this.createUrlTree(of(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Mi(s=>{if(s instanceof E0)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof ma?this.noMatchError(s):s}))}match(n){return this.expandSegmentGrou
p(this.ngModule,this.config,n.root,_e).pipe(ke(r=>this.createUrlTree(of(r),n.queryParams,n.fragment))).pipe(Mi(r=>{throw r instanceof ma?this.noMatchError(r):r}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=n.segments.length>0?new ve([],{[_e]:n}):n;return new Cr(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(ke(s=>new ve([],s))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return Ft(r).pipe(Ps(s=>{const o=i.children[s],a=C0(e,s);return this.expandSegmentGroup(n,a,o,s).pipe(ke(l=>({segment:l,outlet:s})))}),zC((s,o)=>(s[o.outlet]=o.segment,s),{}),function o2(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Zi((r,s)=>t(r,s,i)):Oa,Gp(1),e?UC(n):jC(()=>new mc))}())}expandSegment(n,e,i,r,s,o){return Ft(i).pipe(Ps(a=>this.expandSegmentAgain
stRoute(n,e,i,a,r,s,o).pipe(Mi(c=>{if(c instanceof ma)return ee(null);throw c}))),Hs(a=>!!a),Mi((a,l)=>{if(a instanceof mc||"EmptyError"===a.name){if(T0(e,r,s))return ee(new ve([],{}));throw new ma(e)}throw a}))}expandSegmentAgainstRoute(n,e,i,r,s,o,a){return S0(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o):Mc(e):Mc(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?x0(s):this.lineralizeSegments(i,s).pipe(It(o=>{const a=new ve(o,{});return this.expandSegment(n,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o){const{matched:a,consumedSegments:l,lastChild:c,pos
itionalParamSegments:u}=xc(e,r,s);if(!a)return Mc(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?x0(d):this.lineralizeSegments(r,d).pipe(It(_=>this.expandSegment(n,e,i,_.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(n,e,i,r,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?ee(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(ke(_=>(i._loadedConfig=_,new ve(r,{})))):ee(new ve(r,{}));const{matched:o,consumedSegments:a,lastChild:l}=xc(e,i,r);if(!o)return Mc(e);const c=r.slice(l);return this.getChildConfig(n,i,r).pipe(It(d=>{const _=d.module,y=d.routes,{segmentGroup:b,slicedSegments:D}=Ic(e,a,c,y),T=new ve(b.segments,b.children);if(0===D.length&&T.hasChildren())return this.expandChildren(_,y,T).pipe(ke(F=>new ve(a,F)));if(0===y.length&&0===D.length)return ee(new ve(a,{}));const k=Mn(i)===s;return this.expandSegment(_,T,y,D,k?_e:s,!0).pipe(ke(A=>new ve(a.concat(A.segments),A.children)))}))}getChildConfig(n,e,i){return
e.children?ee(new rf(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?ee(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(It(r=>r?this.configLoader.load(n.injector,e).pipe(ke(s=>(e._loadedConfig=s,s))):function _L(t){return new Ee(n=>n.error(qp(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):ee(new rf([],n))}runCanLoadGuards(n,e,i){const r=e.canLoad;if(!r||0===r.length)return ee(!0);const s=r.map(o=>{const a=n.get(o);let l;if(function rL(t){return t&&nr(t.canLoad)}(a))l=a.canLoad(e,i);else{if(!nr(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return ci(l)});return ee(s).pipe(fa(),Re(o=>{if(!Tr(o))return;const a=qp(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),ke(o=>!0===o))}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return ee(i);if(r.numberOfChildren>1||!r.children[_e])return mL(n.redirectTo);r=r.children[_e]}}applyRedirectComman
ds(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,r){const s=this.createSegmentGroup(n,e.root,i,r);return new Cr(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Rt(n,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(n,e,i,r){const s=this.createSegments(n,e.segments,i,r);let o={};return Rt(e.children,(a,l)=>{o[l]=this.createSegmentGroup(n,a,i,r)}),new ve(s,o)}createSegments(n,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(n,s,r):this.findOrReturn(s,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}function of(t){const n={};for(const i of Object.keys(t.children)){const s=of(t.chi
ldren[i]);(s.segments.length>0||s.hasChildren())&&(n[i]=s)}return function bL(t){if(1===t.numberOfChildren&&t.children[_e]){const n=t.children[_e];return new ve(t.segments.concat(n.segments),n.children)}return t}(new ve(t.segments,n))}class I0{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Oc{constructor(n,e){this.component=n,this.route=e}}function CL(t,n,e){const i=t._root;return _a(i,n?n._root:null,e,[i.value])}function Rc(t,n,e){const i=function SL(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function _a(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=js(n);return t.children.forEach(o=>{(function TL(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function EL(t,n,e){if("function"==typeof
e)return e(t,n);switch(e){case"pathParamsChange":return!Dr(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Dr(t.url,n.url)||!li(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xp(t,n)||!li(t.queryParams,n.queryParams);default:return!Xp(t,n)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new I0(i)):(s.data=o.data,s._resolvedData=o._resolvedData),_a(t,n,s.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Oc(a.outlet.component,o))}else o&&ya(n,a,r),r.canActivateChecks.push(new I0(i)),_a(t,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),Rt(s,(o,a)=>ya(o,e.getContext(a),r)),r}function ya(t,n,e){const i=js(t),r=t.value;Rt(i,(s,o)=>{ya(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new Oc(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}cl
ass FL{}function k0(t){return new Ee(n=>n.error(t))}class NL{constructor(n,e,i,r,s,o){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const n=Ic(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,_e);if(null===e)return null;const i=new Dc([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},_e,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ri(i,e),s=new p0(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(n){const e=n.value,i=h0(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments
,i)}processChildren(n,e){const i=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=C0(n,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;i.push(...l)}const r=M0(i);return function VL(t){t.sort((n,e)=>n.value.outlet===_e?-1:e.value.outlet===_e?1:n.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(n,e,i,r){for(const s of n){const o=this.processSegmentAgainstRoute(s,e,i,r);if(null!==o)return o}return T0(e,i,r)?[]:null}processSegmentAgainstRoute(n,e,i,r){if(n.redirectTo||!S0(n,e,i,r))return null;let s,o=[],a=[];if("**"===n.path){const y=i.length>0?ZC(i).parameters:{};s=new Dc(i,y,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,A0(n),Mn(n),n.component,n,O0(e),R0(e)+i.length,P0(n))}else{const y=xc(e,n,i);if(!y.matched)return null;o=y.consumedSegments,a=i.slice(y.lastChild),s=new Dc(o,y.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,A0(n),Mn(n),n.component,n,O0(e),R0(e)+o
.length,P0(n))}const l=function BL(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:c,slicedSegments:u}=Ic(e,o,a,l.filter(y=>void 0===y.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const y=this.processChildren(l,c);return null===y?null:[new Ri(s,y)]}if(0===l.length&&0===u.length)return[new Ri(s,[])];const d=Mn(n)===r,_=this.processSegment(l,c,u,d?_e:r);return null===_?null:[new Ri(s,_)]}}function HL(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function M0(t){const n=[],e=new Set;for(const i of t){if(!HL(i)){n.push(i);continue}const r=n.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=M0(i.children);n.push(new Ri(i.value,r))}return n.filter(i=>!e.has(i))}function O0(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function R0(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:
0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function A0(t){return t.data||{}}function P0(t){return t.resolve||{}}function af(t){return ki(n=>{const e=t(n);return e?Ft(e).pipe(ke(()=>n)):ee(n)})}class KL extends class qL{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const lf=new ie("ROUTES");class F0{constructor(n,e,i,r){this.injector=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(ke(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=s.create(n);return new rf(QC(o.injector.get(lf,void 0,ae.Self|ae.Optional)).map(sf),o)}),Mi(s=>{throw e._loader$=void 0,s}));return e._loader$=new fg(r,()=>new Oe).pipe(Cu()),e._loader$}loadModuleFactory(n){return ci(n
()).pipe(It(e=>e instanceof Bv?ee(e):Ft(this.compiler.compileModuleAsync(e))))}}class QL{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function ZL(t){throw t}function JL(t,n,e){return n.parse("/")}function L0(t,n){return ee(null)}const XL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eN={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ft=(()=>{class t{constructor(e,i,r,s,o,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Oe,this.errorHandler=ZL,this.malformedUriErrorHandler=JL,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:L0,afterPreactivation:L0},this.urlHandlingStrategy=new QL,this.routeReuseStrategy=new KL,this.onSameUrlNavigation="ignore",this.paramsIn
heritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Ci),this.console=o.get(Cb);const d=o.get(Te);this.isNgZoneEnabled=d instanceof Te&&Te.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function E2(){return new Cr(new ve([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new F0(o,a,_=>this.triggerEvent(new GC(_)),_=>this.triggerEvent(new WC(_))),this.routerState=d0(this.currentUrlTree,this.rootComponentType),this.transitions=new Kn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot
:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Zi(r=>0!==r.id),ke(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),ki(r=>{let s=!1,o=!1;return ee(r).pipe(Re(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ki(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"=
==this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Ac(a.source)&&(this.browserUrlTree=a.extractedUrl),ee(a).pipe(ki(d=>{const _=this.transitions.getValue();return i.next(new Wp(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),_!==this.transitions.getValue()?Bs:Promise.resolve(d)}),function wL(t,n,e,i){return ki(r=>function yL(t,n,e,i,r){return new vL(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(ke(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Re(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function zL(t,n,e,i,r){return It(s=>function LL(t,n,e,i,r="emptyOnly",s="legacy"){try{const o=new NL(t,n,e,i,r,s).recognize();return null===o?k0(new FL):ee(o)}catch(o){return k0(o)}}(t,n,s.urlAfterRedirects,e(s.urlAfterRedirects),i,r).pipe(ke(o=>Object.assign(Object.assign({},s)
,{targetSnapshot:o}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Re(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const y=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(y,d)}this.browserUrlTree=d.urlAfterRedirects}const _=new p2(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(_)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:_,extractedUrl:y,source:b,restoredState:D,extras:T}=a,k=new Wp(_,this.serializeUrl(y),b,D);i.next(k);const x=d0(y,this.rootComponentType).snapshot;return ee(Object.assign(Object.assign({},a),{targetSnapshot:x,urlAfterRedirects:y,extras:Object.assign(Object.assign({},T),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Bs}),af(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,ext
ras:{skipLocationChange:_,replaceUrl:y}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!_,replaceUrl:!!y})}),Re(a=>{const l=new f2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ke(a=>Object.assign(Object.assign({},a),{guards:CL(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function xL(t,n){return It(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?ee(Object.assign(Object.assign({},e),{guardsResult:!0})):function IL(t,n,e,i){return Ft(t).pipe(It(r=>function PL(t,n,e,i,r){const s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return s&&0!==s.length?ee(s.map(a=>{const l=Rc(a,n,r);let c;if(function aL(t){return t&&nr(t.canDeactivate)}(l))c=ci(l.canDeactivate(t,n,e,i));else{if(!nr(l))throw new Error("Invalid CanDeactivate guard");c=ci(l(t,n,e,i))}return c.pip
e(Hs())})).pipe(fa()):ee(!0)}(r.component,r.route,e,n,i)),Hs(r=>!0!==r,!0))}(o,i,r,t).pipe(It(a=>a&&function iL(t){return"boolean"==typeof t}(a)?function kL(t,n,e,i){return Ft(n).pipe(Ps(r=>jp(function OL(t,n){return null!==t&&n&&n(new y2(t)),ee(!0)}(r.route.parent,i),function ML(t,n){return null!==t&&n&&n(new b2(t)),ee(!0)}(r.route,i),function AL(t,n,e){const i=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>function DL(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(o)).filter(o=>null!==o).map(o=>BC(()=>ee(o.guards.map(l=>{const c=Rc(l,o.node,e);let u;if(function oL(t){return t&&nr(t.canActivateChild)}(c))u=ci(c.canActivateChild(i,t));else{if(!nr(c))throw new Error("Invalid CanActivateChild guard");u=ci(c(i,t))}return u.pipe(Hs())})).pipe(fa())));return ee(s).pipe(fa())}(t,r.path,e),function RL(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return ee(!0);const r=i.map(s=>BC(()=>{con
st o=Rc(s,n,e);let a;if(function sL(t){return t&&nr(t.canActivate)}(o))a=ci(o.canActivate(n,t));else{if(!nr(o))throw new Error("Invalid CanActivate guard");a=ci(o(n,t))}return a.pipe(Hs())}));return ee(r).pipe(fa())}(t,r.route,e))),Hs(r=>!0!==r,!0))}(i,s,t,n):ee(a)),ke(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Re(a=>{if(Tr(a.guardsResult)){const c=qp(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new g2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Zi(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),af(a=>{if(a.guards.canActivateChecks.length)return ee(a).pipe(Re(l=>{const c=new m2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),ki(l=>{let c=!1;return ee(l).pipe(function jL(t
,n){return It(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return ee(e);let s=0;return Ft(r).pipe(Ps(o=>function UL(t,n,e,i){return function $L(t,n,e,i){const r=Object.keys(t);if(0===r.length)return ee({});const s={};return Ft(r).pipe(It(o=>function GL(t,n,e,i){const r=Rc(t,n,i);return ci(r.resolve?r.resolve(n,e):r(n,e))}(t[o],n,e,i).pipe(Re(a=>{s[o]=a}))),Gp(1),It(()=>Object.keys(s).length===r.length?ee(s):Bs))}(t._resolve,t,n,i).pipe(ke(s=>(t._resolvedData=s,t.data=Object.assign(Object.assign({},t.data),h0(t,e).resolve),null)))}(o.route,i,t,n)),Re(()=>s++),Gp(1),It(o=>s===r.length?ee(e):Bs))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Re({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Re(l=>{const c=new _2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),af(a=>{const{
targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:_,replaceUrl:y}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!_,replaceUrl:!!y})}),ke(a=>{const l=function $2(t,n,e){const i=da(t,n._root,e?e._root:void 0);return new u0(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Re(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>ke(i=>(new tL(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Re({next(){s=!0},complete(){s=!0}}),function c2(t){return n=>n.lift(new u2(t))}(()=>{var a;s|
|o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),Mi(a=>{if(o=!0,function D2(t){return t&&t[KC]}(a)){const l=Tr(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const c=new $C(r.id,this.serializeUrl(r.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ac(r.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new h2(r.id,this.serializeUrl(r.extractedUrl),a);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Bs}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootCompon
entType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const s={replaceUrl:!0},o=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(o){const l=Object.assign({},o);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){w0(e),this.config=e.map(sf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispos
e(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function q2(t,n,e,i,r){if(0===e.length)return ef(n.root,n.root,n,i,r);const s=function K2(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new m0(!0,0,t);let n=0,e=!1;const i=t.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Rt(s.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/"
).forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new m0(e,n,i)}(e);if(s.toRoot())return ef(n.root,new ve([],{}),n,i,r);const o=function Y2(t,n,e){if(t.isAbsolute)return new tf(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new tf(s,s===n.root,0)}const i=Sc(t.commands[0])?0:1;return function Q2(t,n,e){let i=t,r=n,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new tf(i,!1,r-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,n,t),a=o.processChildren?Tc(o.segmentGroup,o.index,s.commands):_0(o.segmentGroup,o.index,s.commands);return ef(o.segmentGroup,a,n,i,r)}(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Tr(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocat
ionChange:!1}){return function tN(t){for(let n=0;n<t.length;n++){const e=t[n];if(null==e)throw new Error(`The requested path contains ${e} segment at index ${n}`)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?Object.assign({},XL):!1===i?Object.assign({},eN):i,Tr(e))return XC(this.currentUrlTree,e,r);const s=this.parseUrl(e);return XC(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new la(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.cons
ole.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){var a,l,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,d=Ac(i)&&u&&!Ac(u.source),_=u.rawUrl.toString()===e.toString(),y=u.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(d&&_&&y)return Promise.resolve(!0);let D,T,k;o?(D=o.resolve,T=o.reject,k=o.promise):k=new Promise((F,te)=>{D=F,T=te});const x=++this.navigationId;let A;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),A=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):A=0,this.setTransition({id:x,targetPageId:A,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:D,reject:T,promise:k,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),k
.catch(F=>Promise.reject(F))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.ra
wUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new $C(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){ah()},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function Ac(t){return"imperative"!==t}let Pc=(()=>{class t{constructor(e,i,r,s,o){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=o,this.commands=null,this.onChanges=new Oe,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,r=this.el.nativeElement;null!==e?i.setAttribute(r,"tabindex",e):i.removeAttr
ibute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:Us(this.skipLocationChange),replaceUrl:Us(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Us(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(Sr),mo("tabindex"),w(dn),w(Se))},t.\u0275dir=U({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&M("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"frag
ment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[gt]}),t})(),Fc=(()=>{class t{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Oe,this.subscription=e.events.subscribe(s=>{s instanceof la&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,s,o){if(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:Us(this.skipLocationChange),replaceUrl:Us(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locatio
nStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Us(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(Sr),w(As))},t.\u0275dir=U({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&M("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&q("target",i.target)("href",i.href,yi)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[gt]}),t})();func
tion Us(t){return""===t||!!t}let N0=(()=>{class t{constructor(e,i,r,s,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=s,this.link=o,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new R,this.routerEventsSubscription=e.events.subscribe(l=>{l instanceof la&&this.update()})}ngAfterContentInit(){ee(this.links.changes,this.linksWithHrefs.changes,ee(null)).pipe(so()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const i=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ft(i).pipe(so()).subscribe(r=>{this.isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.upda
te()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function nN(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(Se),w(dn),w(vt),w(Pc,8),w(Fc,8))},t.\u0275dir=U({type:t,selector
s:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Pc,5),Ye(r,Fc,5)),2&e){let s;K(s=Y())&&(i.links=s),K(s=Y())&&(i.linksWithHrefs=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[gt]}),t})();class V0{}class B0{preload(n,e){return ee(null)}}let H0=(()=>{class t{constructor(e,i,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new F0(r,i,l=>e.triggerEvent(new GC(l)),l=>e.triggerEvent(new WC(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(Zi(e=>e instanceof la),Ps(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Ci);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const s of i)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;r.push(this.processRou
tes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(e,s)):s.children&&r.push(this.processRoutes(e,s.children));return Ft(r).pipe(so(),ke(s=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?ee(i._loadedConfig):this.loader.load(e.injector,i)).pipe(It(s=>(i._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(P(ft),P(Fl),P(kt),P(V0))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),cf=(()=>{class t{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=t
his.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Wp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof la&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof qC&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new qC(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i)
)}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){ah()},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Er=new ie("ROUTER_CONFIGURATION"),z0=new ie("ROUTER_FORROOT_GUARD"),rN=[Yh,{provide:r0,useClass:s0},{provide:ft,useFactory:function cN(t,n,e,i,r,s,o={},a,l){const c=new ft(null,t,n,e,i,r,QC(s));return a&&(c.urlHandlingStrategy=a),l&&(c.routeReuseStrategy=l),function uN(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&
&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(o,c),o.enableTracing&&c.events.subscribe(u=>{var d,_;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(_=console.groupEnd)||void 0===_||_.call(console)}),c},deps:[r0,ga,Yh,kt,Fl,lf,Er,[class YL{},new ei],[class WL{},new ei]]},ga,{provide:Sr,useFactory:function dN(t){return t.routerState.root},deps:[ft]},H0,B0,class iN{preload(n,e){return e().pipe(Mi(()=>ee(null)))}},{provide:Er,useValue:{enableTracing:!1}}];function sN(){return new Ib("Router",ft)}let ir=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[rN,j0(e),{provide:z0,useFactory:lN,deps:[[ft,new ei,new Jr]]},{provide:Er,useValue:i||{}},{provide:As,useFactory:aN,deps:[br,[new Do(Kh),new ei],Er]},{provide:cf,useFactory:oN,deps:[ft,GA,Er]},{provide:V0,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:B0},{provide:Ib,multi:!0,useFactory:sN
},[uf,{provide:Pl,multi:!0,useFactory:hN,deps:[uf]},{provide:U0,useFactory:pN,deps:[uf]},{provide:wb,multi:!0,useExisting:U0}]]}}static forChild(e){return{ngModule:t,providers:[j0(e)]}}}return t.\u0275fac=function(e){return new(e||t)(P(z0,8),P(ft,8))},t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})();function oN(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new cf(t,n,e)}function aN(t,n,e={}){return e.useHash?new MR(t,n):new Qb(t,n)}function lN(t){return"guarded"}function j0(t){return[{provide:vT,multi:!0,useValue:t},{provide:lf,multi:!0,useValue:t}]}let uf=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Oe}appInitializer(){return this.injector.get(xR,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(a=>i=a),s=this.injector.get(ft),o=this.injector.get(Er);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),i(!0)):"enabled"=
==o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?ee(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),s.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get(Er),r=this.injector.get(H0),s=this.injector.get(cf),o=this.injector.get(ft),a=this.injector.get(Qo);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(P(kt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function hN(t){return t.appInitializer.bind(t)}function pN(t){return t.bootstrapListener.bind(t)}const U0=new ie("Router Initializer");let xr=(()=>{class t{constructor(e){this.httpClient=e}GetDatabaseStatus(){r
eturn this.httpClient.get("/Config/GetDatabaseStatus")}SetDatabaseCredentials(e){return this.httpClient.post("/Config/SetDatabaseCredentials",e)}GetCountries(){return this.httpClient.get("/Config/GetCountries")}GetLanguages(){return this.httpClient.get("/Config/GetLanguages")}}return t.\u0275fac=function(e){return new(e||t)(P(Fs))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{static addClass(e,i){e.classList?e.classList.add(i):e.className+=" "+i}static addMultipleClasses(e,i){if(e.classList){let r=i.trim().split(" ");for(let s=0;s<r.length;s++)e.classList.add(r[s])}else{let r=i.split(" ");for(let s=0;s<r.length;s++)e.className+=" "+r[s]}}static removeClass(e,i){e.classList?e.classList.remove(i):e.className=e.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," ")}static hasClass(e,i){return e.classList?e.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(e.className)}static siblings(e){return Array.protot
ype.filter.call(e.parentNode.children,function(i){return i!==e})}static find(e,i){return Array.from(e.querySelectorAll(i))}static findSingle(e,i){return e?e.querySelector(i):null}static index(e){let i=e.parentNode.childNodes,r=0;for(var s=0;s<i.length;s++){if(i[s]==e)return r;1==i[s].nodeType&&r++}return-1}static indexWithinGroup(e,i){let r=e.parentNode?e.parentNode.childNodes:[],s=0;for(var o=0;o<r.length;o++){if(r[o]==e)return s;r[o].attributes&&r[o].attributes[i]&&1==r[o].nodeType&&s++}return-1}static relativePosition(e,i){let r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const s=i.offsetHeight,o=i.getBoundingClientRect(),a=this.getViewport();let l,c;o.top+s+r.height>a.height?(l=-1*r.height,e.style.transformOrigin="bottom",o.top+l<0&&(l=-1*o.top)):(l=s,e.style.transformOrigin="top"),c=r.width>a.width?-1*o.left:o.left+r.width>a.width?-1*(o.left+r.width-a.width):0,e.style.top=l+"px",e.style.left=c+"px"}static absolutePosition(e,i){l
et y,b,r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=r.height,o=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),_=this.getViewport();c.top+a+s>_.height?(y=c.top+u-s,e.style.transformOrigin="bottom",y<0&&(y=u)):(y=a+c.top+u,e.style.transformOrigin="top"),b=c.left+o>_.width?Math.max(0,c.left+d+l-o):c.left+d,e.style.top=y+"px",e.style.left=b+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const s=/(auto|scroll)/,o=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&o(d)&&i.
push(d)}}9!==a.nodeType&&o(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=r?parseFloat(r):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),a=o?parseFloat(o):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,d=e.scrollTop,_=e.clientHeight,y=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+y>_&&(e.scrollTop=d+u-
_+y)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,s=0,o=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=s,r=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let s=getComputedStyle(e);r+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return r}static getHorizontalPadding(e){let i
=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let s=getComputedStyle(e);r+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.pa
ddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,s=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||s.clientWidth,height:e.innerHeight||r.clientHeight||s.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.tes
t(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",do
cument.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]
=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return null===e.offsetParent}static getFocusableElements(e){let i=t.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([h
idden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let s of i)"none"!=getComputedStyle(s).display&&"hidden"!=getComputedStyle(s).visibility&&r.push(s);return r}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class Lc{constructor(n,e=(()=>{})){this.element=n,this.listener=e}bindScrollListener(){this.scrollableParents=S.getScrollableParents(this.element);for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}unbindScrollL
istener(){if(this.scrollableParents)for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}class V{static equals(n,e,i){return i?this.resolveFieldData(n,i)===this.resolveFieldData(e,i):this.equalsByValue(n,e)}static equalsByValue(n,e){if(n===e)return!0;if(n&&e&&"object"==typeof n&&"object"==typeof e){var s,o,a,i=Array.isArray(n),r=Array.isArray(e);if(i&&r){if((o=n.length)!=e.length)return!1;for(s=o;0!=s--;)if(!this.equalsByValue(n[s],e[s]))return!1;return!0}if(i!=r)return!1;var l=n instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var u=n instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==e.toString();var _=Object.keys(n);if((o=_.length)!==Object.keys(e).length)return!1;for(s=o;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,_[s]))return!1
;for(s=o;0!=s--;)if(!this.equalsByValue(n[a=_[s]],e[a]))return!1;return!0}return n!=n&&e!=e}static resolveFieldData(n,e){if(n&&e){if(this.isFunction(e))return e(n);if(-1==e.indexOf("."))return n[e];{let i=e.split("."),r=n;for(let s=0,o=i.length;s<o;++s){if(null==r)return null;r=r[i[s]]}return r}}return null}static isFunction(n){return!!(n&&n.constructor&&n.call&&n.apply)}static reorderArray(n,e,i){n&&e!==i&&(i>=n.length&&(i%=n.length,e%=n.length),n.splice(i,0,n.splice(e,1)[0]))}static insertIntoOrderedArray(n,e,i,r){if(i.length>0){let s=!1;for(let o=0;o<i.length;o++)if(this.findIndexInList(i[o],r)>e){i.splice(o,0,n),s=!0;break}s||i.push(n)}else i.push(n)}static findIndexInList(n,e){let i=-1;if(e)for(let r=0;r<e.length;r++)if(e[r]==n){i=r;break}return i}static contains(n,e){if(null!=n&&e&&e.length)for(let i of e)if(this.equals(n,i))return!0;return!1}static removeAccents(n){return n&&n.search(/[\xC0-\xFF]/g)>-1&&(n=n.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/
g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),n}}var $0=0;function va(){return"pr_id_"+ ++$0}var Tt=function gN(){let t=[];const r=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:r,set:(s,o,a)=>{o&&(o.style.zIndex=String(((s,o)=>{let a=t.length>0?t[t.length-1]:{key:s,value:o},l=a.value+(a.key===s?0:o)+1;return t.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{t=t.filter(o=>o.value!==s)})(r(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const G0=["*"];let At=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contai
ns",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.IN="in",t.LESS_THAN="lt",t.LESS_THAN_OR_EQUAL_TO="lte",t.GREATER_THAN="gt",t.GREATER_THAN_OR_EQUAL_TO="gte",t.BETWEEN="between",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.DATE_IS="dateIs",t.DATE_IS_NOT="dateIsNot",t.DATE_BEFORE="dateBefore",t.DATE_AFTER="dateAfter",t})(),Ai=(()=>{class t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[At.STARTS_WITH,At.CONTAINS,At.NOT_CONTAINS,At.ENDS_WITH,At.EQUALS,At.NOT_EQUALS],numeric:[At.EQUALS,At.NOT_EQUALS,At.LESS_THAN,At.LESS_THAN_OR_EQUAL_TO,At.GREATER_THAN,At.GREATER_THAN_OR_EQUAL_TO],date:[At.DATE_IS,At.DATE_IS_NOT,At.DATE_BEFORE,At.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",
is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1
e3,tooltip:1100},this.translationSource=new Oe,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation=Object.assign(Object.assign({},this.translation),e),this.translationSource.next(this.translation)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Qt=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.NO_FILTER="noFilter",t.LT="lt",t.LTE="lte",t.GT="gt",t.GTE="gte",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.CLEAR="clear",t.APPLY="apply",t.MATCH_ALL="matchAll",t.MATCH_ANY="matchAny",t.ADD_RULE="addRule",t.REMOVE_RULE="removeRule",t.ACCEPT="accept",t.REJECT="reject",t.CHOOSE="choose",t.UPLOAD="upload",t.CANCEL="cancel",t.DAY_NAMES="dayNames",t.DAY_NAMES_SHORT="dayNamesShort",t.DAY_NAMES_MIN="da
yNamesMin",t.MONTH_NAMES="monthNames",t.MONTH_NAMES_SHORT="monthNamesShort",t.FIRST_DAY_OF_WEEK="firstDayOfWeek",t.TODAY="today",t.WEEK_HEADER="weekHeader",t.WEAK="weak",t.MEDIUM="medium",t.STRONG="strong",t.PASSWORD_PROMPT="passwordPrompt",t.EMPTY_MESSAGE="emptyMessage",t.EMPTY_FILTER_MESSAGE="emptyFilterMessage",t})(),Nc=(()=>{class t{constructor(){this.filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let s=V.removeAccents(i.toString()).toLocaleLowerCase(r);return V.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,s.length)===s},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let s=V.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==V.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(s)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let s=V.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===V.removeAccents(e.toString
()).toLocaleLowerCase(r).indexOf(s)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let s=V.removeAccents(i.toString()).toLocaleLowerCase(r),o=V.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==o.indexOf(s,o.length-s.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():V.removeAccents(e.toString()).toLocaleLowerCase(r)==V.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():V.removeAccents(e.toString()).toLocaleLowerCase(r)==V.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;r<i.length;r++)if(V.equals(e,i[r]))return!0;return!1},between:(e,i)=>null==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(
e.getTime&&i.getTime?e.getTime()<i.getTime():e<i),lte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()<i.getTime(),dateAfter:(e,i)=>null==i||null!=e&&e.getTime()>i.getTime()}}filter(e,i,r,s,o){let a=[];if(e)for(let l of e)for(let c of i){let u=V.resolveFieldData(l,c);if(this.filters[s](u,r,o)){a.push(l);break}}return a}register(e,i){this.filters[e]=i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac,provid
edIn:"root"}),t})(),df=(()=>{class t{constructor(){this.messageSource=new Oe,this.clearSource=new Oe,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),Vc=(()=>{class t{constructor(){this.clickSource=new Oe,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),W0=(()=>{class t{}return t.AND="and",t.OR="or",t})(),Bc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-header"]],ngContentSelectors:G0,decls:1,vars:0,template:function(e,i){1&e&&(Dn(),ot(0))},encapsulation:2}),t})(),ba=(()=>{class t{}return t.\
u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-footer"]],ngContentSelectors:G0,decls:1,vars:0,template:function(e,i){1&e&&(Dn(),ot(0))},encapsulation:2}),t})(),Ct=(()=>{class t{constructor(e){this.template=e}getType(){return this.name}}return t.\u0275fac=function(e){return new(e||t)(w(En))},t.\u0275dir=U({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})(),Hc=(()=>{class t{constructor(e,i,r){this.el=e,this.zone=i,this.config=r,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!1,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{"hover"===this.getOption("tooltipEvent")?(this.mouseEnterListener=th
is.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener)):"focus"===this.getOption("tooltipEvent")&&(this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this),this.el.nativeElement.addEventListener("focus",this.focusListener),this.el.nativeElement.addEventListener("blur",this.blurListener))})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.
currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.text&&(this.setOption({tooltipLabel:e.text.currentValue}),this.active&&(e.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.tooltipOptions&&(this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.al
ign()):this.show():this.hide()))}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onClick(e){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.cre
ateElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?S.appendChild(this.container,this.el.nativeElement):S.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),S.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Tt.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Tt.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",th
is.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+S.getWindowSc
rollLeft(),top:e.top+S.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+S.getOuterWidth(this.el.nativeElement),r=e.top+(S.getOuterHeight(this.el.nativeElement)-S.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-S.getOuterWidth(this.container),r=e.top+(S.getOuterHeight(this.el.nativeElement)-S.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(S.getOuterWidth(this.el.nativeElement)-S.getOuterWidth(this.container))/2,r=e.top-S.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("posit
ionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(S.getOuterWidth(this.el.nativeElement)-S.getOuterWidth(this.container))/2,r=e.top+S.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,s=S.getOuterWidth(this.container),o=S.getOuterHeight(this.container),a=S.getViewport();return r+s>a.width||r<0||i<0||i+o>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()
=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Lc(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){"hover"===this.getOption("tooltipEvent")?(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)):"focus"===this.getOption("tooltipEvent")&&(this.el.nativeElement.removeEventListener("focus",this.focusListener),this.el.nativeElement.removeEventListener("blur",this.blurListener)),this.unbindDocumentResizeListe
ner()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):S.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Tt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(Te),w(Ai))},t.\u0275dir=U({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPositio
n:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[gt]}),t})(),$s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();function mN(t,n){if(1&t&&(h(0,"span",11),E(1),p()),2&t){const e=f(2).$implicit;g(1),le(e.label)}}function _N(t,n){1&t&&I(0,"span",12),2&t&&m("innerHTML",f(2).$implicit.label,cl)}const yN=function(){return{exact:!1}};function vN(t,n){if(1&t){const e=z();h(0,"a",7),M("click",function(r){C(e);const s=f(),o=s.$implicit,a=s.index;return f().itemClick(r,o,a)})("keydown.enter",function(r){C(e);const s=f(),o=s.$implicit,a=s.index;return f().itemClick(r,o,a)}),
h(1,"span",8),E(2),p(),v(3,mN,2,1,"span",9),v(4,_N,1,1,"ng-template",null,10,ze),p()}if(2&t){const e=he(5),i=f(),r=i.$implicit,s=i.index,o=f();m("routerLink",r.routerLink)("queryParams",r.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",r.routerLinkActiveOptions||Tn(16,yN))("fragment",r.fragment)("queryParamsHandling",r.queryParamsHandling)("preserveFragment",r.preserveFragment)("skipLocationChange",r.skipLocationChange)("replaceUrl",r.replaceUrl)("state",r.state),q("target",r.target)("id",r.id)("tabindex",r.disabled||o.readonly?null:r.tabindex?r.tabindex:"0"),g(2),le(s+1),g(1),m("ngIf",!1!==r.escape)("ngIfElse",e)}}function bN(t,n){if(1&t&&(h(0,"span",11),E(1),p()),2&t){const e=f(2).$implicit;g(1),le(e.label)}}function wN(t,n){1&t&&I(0,"span",12),2&t&&m("innerHTML",f(2).$implicit.label,cl)}function CN(t,n){if(1&t){const e=z();h(0,"a",13),M("click",function(r){C(e);const s=f(),o=s.$implicit,a=s.index;return f().itemClick(r,o,a)})("keydown.enter",fu
nction(r){C(e);const s=f(),o=s.$implicit,a=s.index;return f().itemClick(r,o,a)}),h(1,"span",8),E(2),p(),v(3,bN,2,1,"span",9),v(4,wN,1,1,"ng-template",null,14,ze),p()}if(2&t){const e=he(5),i=f(),r=i.$implicit,s=i.index,o=f();q("href",r.url,yi)("target",r.target)("id",r.id)("tabindex",r.disabled||s!==o.activeIndex&&o.readonly?null:r.tabindex?r.tabindex:"0"),g(2),le(s+1),g(1),m("ngIf",!1!==r.escape)("ngIfElse",e)}}const DN=function(t,n){return{"p-highlight p-steps-current":t,"p-disabled":n}};function SN(t,n){if(1&t&&(h(0,"li",3,4),v(2,vN,6,17,"a",5),v(3,CN,6,7,"ng-template",null,6,ze),p()),2&t){const e=n.$implicit,i=n.index,r=he(4),s=f();ge(e.styleClass),m("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)("ngClass",it(9,DN,s.isActive(e,i),e.disabled||s.readonly&&!s.isActive(e,i))),q("aria-selected",i===s.activeIndex)("aria-expanded",i===s.activeIndex),g(2),m("ngIf",s.isClickableRouterLink(e))("ngIfElse",r)}}const TN=function(t){return{"p-steps p-component":!0,"p-readonly":t}};let E
N=(()=>{class t{constructor(e,i,r){this.router=e,this.route=i,this.cd=r,this.activeIndex=0,this.readonly=!0,this.activeIndexChange=new R}ngOnInit(){this.subscription=this.router.events.subscribe(()=>this.cd.markForCheck())}itemClick(e,i,r){this.readonly||i.disabled?e.preventDefault():(this.activeIndexChange.emit(r),i.url||e.preventDefault(),i.command&&i.command({originalEvent:e,item:i,index:r}))}isClickableRouterLink(e){return e.routerLink&&!this.readonly&&!e.disabled}isActive(e,i){return e.routerLink?this.router.isActive(e.routerLink,!1)||this.router.isActive(this.router.createUrlTree([e.routerLink],{relativeTo:this.route}).toString(),!1):i===this.activeIndex}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(Sr),w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-steps"]],hostAttrs:[1,"p-element"],inputs:{activeIndex:"activeIndex",model:"model",readonly:"readonly",style:"style",styleClass:"styleClass"},outputs:{active
IndexChange:"activeIndexChange"},decls:3,vars:7,consts:[[3,"ngClass","ngStyle"],["role","tablist"],["class","p-steps-item","role","tab","pTooltip","",3,"ngStyle","class","tooltipOptions","ngClass",4,"ngFor","ngForOf"],["role","tab","pTooltip","",1,"p-steps-item",3,"ngStyle","tooltipOptions","ngClass"],["menuitem",""],["role","presentation","class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter",4,"ngIf","ngIfElse"],["elseBlock",""],["role","presentation",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter"],[1,"p-steps-number"],["class","p-steps-title",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-steps-title"],[1,"p-steps-title",3,"innerHTML"],["role","presentation",1,
"p-menuitem-link",3,"click","keydown.enter"],["htmlRouteLabel",""]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"ul",1),v(2,SN,5,12,"li",2),p(),p()),2&e&&(ge(i.styleClass),m("ngClass",G(5,TN,i.readonly))("ngStyle",i.style),g(2),m("ngForOf",i.model))},directives:[Je,lt,Mt,Hc,Me,Fc,N0],styles:[".p-steps{position:relative}.p-steps ul{padding:0;margin:0;list-style-type:none;display:flex}.p-steps-item{position:relative;display:flex;justify-content:center;flex:1 1 auto}.p-steps-item .p-menuitem-link{display:inline-flex;flex-direction:column;align-items:center;overflow:hidden;text-decoration:none}.p-steps.p-steps-readonly .p-steps-item{cursor:auto}.p-steps-item.p-steps-current .p-menuitem-link{cursor:default}.p-steps-title{white-space:nowrap}.p-steps-number{display:flex;align-items:center;justify-content:center}.p-steps-title{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),xN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=
J({imports:[[Pe,ir,$s],ir,$s]}),t})(),q0=(()=>{class t{constructor(e,i){this.router=e,this.configService=i,this.wizardItems=[]}ngOnInit(){this.wizardItems=[{label:"Choose Language",routerLink:"selectlanguage"},{label:"Database Setup",routerLink:"dbsetup"},{label:"Backend Network",routerLink:"backendnetwork"},{label:"Storage Groups",routerLink:"sgsetup"},{label:"Done",routerLink:"restart"}],this.router.navigate(["settings/selectlanguage"])}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(xr))},t.\u0275cmp=Q({type:t,selectors:[["app-settings"]],decls:6,vars:2,consts:[[1,"content-section","implementation"],[1,"card"],[3,"model","readonly"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"div",1),h(2,"h1"),E(3,"Initial Setup Wizard"),p(),I(4,"p-steps",2),p(),I(5,"router-outlet"),p()),2&e&&(g(4),m("model",i.wizardItems)("readonly",!0))},directives:[EN,Ec],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;backgro
und-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']}),t})();function hf(t,n){return new Ee(n?e=>n.schedule(IN,0,{error:t,subscriber:e}):e=>e.error(t))}function IN({error:t,subscriber:n}){n.error(t)}let pf=(()=>{class t{constructor(e){this.httpClient=e}GetHostName(){return this.httpClient.get("/Myth/GetHostName")}GetTimeZone(){return this.httpClient.get("/Myth/GetTimeZone")}GetConnectionInfo(){return this.httpClient.get("/Myth/GetConnectionInfo")}GetSetting(e){let i=(new Ii).set("HostName",e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return this.httpClient.get("/Myth/GetSetting",{params:i})}PutSetting(e){return console.log(e),this.httpClient.post("/Myth/PutSetting",e)}SetConnectionInfo(e){return console.log("SetConnectionInfo :-"+e.Name),this.httpClient.post("/Myth/SetConnectionInfo",e)}}return t.\u0275fac=function(e){return new(e||t)(P(Fs))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function kN(t,n){1&t&&H(0)}function M
N(t,n){if(1&t&&(h(0,"div",8),ot(1,1),v(2,kN,1,0,"ng-container",6),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.headerTemplate)}}function ON(t,n){1&t&&H(0)}function RN(t,n){if(1&t&&(h(0,"div",9),E(1),v(2,ON,1,0,"ng-container",6),p()),2&t){const e=f();g(1),De(" ",e.header," "),g(1),m("ngTemplateOutlet",e.titleTemplate)}}function AN(t,n){1&t&&H(0)}function PN(t,n){if(1&t&&(h(0,"div",10),E(1),v(2,AN,1,0,"ng-container",6),p()),2&t){const e=f();g(1),De(" ",e.subheader," "),g(1),m("ngTemplateOutlet",e.subtitleTemplate)}}function FN(t,n){1&t&&H(0)}function LN(t,n){1&t&&H(0)}function NN(t,n){if(1&t&&(h(0,"div",11),ot(1,2),v(2,LN,1,0,"ng-container",6),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.footerTemplate)}}const VN=["*",[["p-header"]],[["p-footer"]]],BN=["*","p-header","p-footer"];let Gs=(()=>{class t{constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.te
mplate;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return t.\u0275fac=function(e){return new(e||t)(w(Se))},t.\u0275cmp=Q({type:t,selectors:[["p-card"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Bc,5),Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.headerFacet=s.first),K(s=Y())&&(i.footerFacet=s.first),K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:BN,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:fun
ction(e,i){1&e&&(Dn(VN),h(0,"div",0),v(1,MN,3,1,"div",1),h(2,"div",2),v(3,RN,3,2,"div",3),v(4,PN,3,2,"div",4),h(5,"div",5),ot(6),v(7,FN,1,0,"ng-container",6),p(),v(8,NN,3,1,"div",7),p(),p()),2&e&&(ge(i.styleClass),m("ngClass","p-card p-component")("ngStyle",i.style),g(1),m("ngIf",i.headerFacet||i.headerTemplate),g(2),m("ngIf",i.header||i.titleTemplate),g(1),m("ngIf",i.subheader||i.subtitleTemplate),g(3),m("ngTemplateOutlet",i.contentTemplate),g(1),m("ngIf",i.footerFacet||i.footerTemplate))},directives:[Je,lt,Me,Ot],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),K0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe],Et]}),t})();function HN(t,n){1&t&&I(0,"span",6),2&t&&m("innerHTML",f(3).text,cl)}function zN(t,n){if(1&t&&(h(0,"div"),v(1,HN,1,1,"span",5),p()),2&t){const e=f(2);g(1),m("ngIf",!e.escape)}}function jN(t,n){if(1&t&&(h(0,"span",8),E(1),p()),2&t){const e=f(3);g(1),le(e.text
)}}function UN(t,n){1&t&&v(0,jN,2,1,"span",7),2&t&&m("ngIf",f(2).escape)}const $N=function(t,n,e,i,r){return{"p-inline-message-info":t,"p-inline-message-warn":n,"p-inline-message-error":e,"p-inline-message-success":i,"p-inline-message-icon-only":r}};function GN(t,n){if(1&t&&(h(0,"div",1),I(1,"span",2),v(2,zN,2,1,"div",3),v(3,UN,1,1,"ng-template",null,4,ze),p()),2&t){const e=he(4),i=f();ge(i.styleClass),m("ngStyle",i.style)("ngClass",yr(7,$N,"info"===i.severity,"warn"===i.severity,"error"===i.severity,"success"===i.severity,null==i.text)),g(1),m("ngClass",i.icon),g(1),m("ngIf",!i.escape)("ngIfElse",e)}}let ff=(()=>{class t{constructor(){this.escape=!0}get icon(){let e=null;if(this.severity)switch(this.severity){case"success":e="pi pi-check";break;case"info":default:e="pi pi-info-circle";break;case"error":e="pi pi-times-circle";break;case"warn":e="pi pi-exclamation-triangle"}return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-message"]],host
Attrs:[1,"p-element"],inputs:{severity:"severity",text:"text",escape:"escape",style:"style",styleClass:"styleClass"},decls:1,vars:1,consts:[["aria-live","polite","class","p-inline-message p-component p-inline-message",3,"ngStyle","class","ngClass",4,"ngIf"],["aria-live","polite",1,"p-inline-message","p-component","p-inline-message",3,"ngStyle","ngClass"],[1,"p-inline-message-icon",3,"ngClass"],[4,"ngIf","ngIfElse"],["escapeOut",""],["class","p-inline-message-text",3,"innerHTML",4,"ngIf"],[1,"p-inline-message-text",3,"innerHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(e,i){1&e&&v(0,GN,5,13,"div",0),2&e&&m("ngIf",i.severity)},directives:[Me,lt,Je],styles:[".p-inline-message{display:inline-flex;align-items:center;justify-content:center;vertical-align:top}.p-inline-message-icon-only .p-inline-message-text{visibility:hidden;width:0}.p-fluid .p-inline-message{display:flex}\n"],encapsulation:2,changeDetection:0}),t})(),WN=(()=>{class t{}re
turn t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})(),ui=(()=>{class t{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(S.removeClass(i,"p-ink-active"),!S.getHeight(i)&&!S.getWidth(i)){let a=Math.max(S.getOuterWidth(this.el.nativeElement),S.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=S.getOffset(this.el.nativeElement),s=e.pageX-r.left+document.body.scrollTop-S.getWidth(i)/2,o=e.pageY-r.top+document.body.scrollLeft-S.getHeight(i)/2;i.style.top=o+"px",i.style.left=s+"px",S.addClass(i,"p-ink-active")}getInk(){for(let e=0;e<this.el.nativeElement.children.length;e++)if(-
1!==this.el.nativeElement.children[e].className.indexOf("p-ink"))return this.el.nativeElement.children[e];return null}resetInk(){let e=this.getInk();e&&S.removeClass(e,"p-ink-active")}onAnimationEnd(e){S.removeClass(e.currentTarget,"p-ink-active")}create(){let e=document.createElement("span");e.className="p-ink",this.el.nativeElement.appendChild(e),this.animationListener=this.onAnimationEnd.bind(this),e.addEventListener("animationend",this.animationListener)}remove(){let e=this.getInk();e&&(this.el.nativeElement.removeEventListener("mousedown",this.mouseDownListener),e.removeEventListener("animationend",this.animationListener),S.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(Te),w(Ai,8))},t.\u0275dir=U({type:t,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),t})(),hn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports
:[[Pe]]}),t})();class Y0{}const Pi="*";function Ir(t,n){return{type:7,name:t,definitions:n,options:{}}}function Pt(t,n=null){return{type:4,styles:n,timings:t}}function Q0(t,n=null){return{type:2,steps:t,options:n}}function Qe(t){return{type:6,styles:t,offset:null}}function rr(t,n,e){return{type:0,name:t,styles:n,options:e}}function jt(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function zc(t,n=null){return{type:8,animation:t,options:n}}function KN(t=null){return{type:9,options:t}}function Z0(t,n=null){return{type:10,animation:t,options:n}}function YN(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function J0(t){Promise.resolve(null).then(t)}class Ws{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._on
StartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){J0(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class X0{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;con
st s=this.players.length;0==s?J0(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(
),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function QN(t,n){if(1&t&&(h(0,"span",10),E(1),p()),2&t){const e=f(2);q("id",e.id+"_header"),g(1),le(e.header)}}function ZN(t,n){1&t&&H(0)}function JN(t,n){}function XN(t,n){1&t&&v(0,JN,0,0,"ng-template")}function eV(t,n){if(1&t){const e=z();h(0,"button",11),M("click",function(r){return C(e),f(2).onIconClick(r)})("keydown.enter",function(r){return C(e),f(2).onIconC
lick(r)}),I(1,"span"),p()}if(2&t){const e=f(2);q("id",e.id+"-label")("aria-controls",e.id+"-content")("aria-expanded",!e.collapsed),g(1),ge(e.collapsed?e.expandIcon:e.collapseIcon)}}function tV(t,n){if(1&t){const e=z();h(0,"div",6),M("click",function(r){return C(e),f().onHeaderClick(r)}),v(1,QN,2,2,"span",7),ot(2,1),v(3,ZN,1,0,"ng-container",4),h(4,"div",8),v(5,XN,1,0,void 0,4),v(6,eV,2,5,"button",9),p(),p()}if(2&t){const e=f();q("id",e.id+"-titlebar"),g(1),m("ngIf",e.header),g(2),m("ngTemplateOutlet",e.headerTemplate),g(2),m("ngTemplateOutlet",e.iconTemplate),g(1),m("ngIf",e.toggleable)}}function nV(t,n){1&t&&H(0)}function iV(t,n){1&t&&H(0)}function rV(t,n){if(1&t&&(h(0,"div",12),ot(1,2),v(2,iV,1,0,"ng-container",4),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.footerTemplate)}}const sV=["*",[["p-header"]],[["p-footer"]]],oV=function(t){return{"p-panel p-component":!0,"p-panel-toggleable":t}},aV=function(t){return{transitionParams:t,height:"0",opacity:"0"}},lV=function(t){retur
n{value:"hidden",params:t}},cV=function(t){return{transitionParams:t,height:"*",opacity:"1"}},uV=function(t){return{value:"visible",params:t}},dV=["*","p-header","p-footer"];let hV=0,pV=(()=>{class t{constructor(e){this.el=e,this.collapsed=!1,this.expandIcon="pi pi-plus",this.collapseIcon="pi pi-minus",this.showHeader=!0,this.toggler="icon",this.collapsedChange=new R,this.onBeforeToggle=new R,this.onAfterToggle=new R,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)",this.id="p-panel-"+hV++}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"icons":this.iconTemplate=e.template}})}onHeaderClick(e){"header"===this.toggler&&this.toggle(e)}onIconClick(e){"icon"===this.toggler&&this.toggle(e)}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:t
his.collapsed}),this.toggleable&&(this.collapsed?this.expand(e):this.collapse(e)),e.preventDefault()}expand(e){this.collapsed=!1,this.collapsedChange.emit(this.collapsed)}collapse(e){this.collapsed=!0,this.collapsedChange.emit(this.collapsed)}getBlockableElement(){return this.el.nativeElement.children[0]}onToggleDone(e){this.animating=!1,this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed})}}return t.\u0275fac=function(e){return new(e||t)(w(Se))},t.\u0275cmp=Q({type:t,selectors:[["p-panel"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.footerFacet=s.first),K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{toggleable:"toggleable",header:"header",collapsed:"collapsed",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",showHeader:"showHeader",toggler:"toggler",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterT
oggle:"onAfterToggle"},ngContentSelectors:dV,decls:7,vars:22,consts:[[3,"ngClass","ngStyle"],["class","p-panel-header",3,"click",4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-panel-content"],[4,"ngTemplateOutlet"],["class","p-panel-footer",4,"ngIf"],[1,"p-panel-header",3,"click"],["class","p-panel-title",4,"ngIf"],[1,"p-panel-icons"],["type","button","class","p-panel-header-icon p-panel-toggler p-link","pRipple","","role","tab",3,"click","keydown.enter",4,"ngIf"],[1,"p-panel-title"],["type","button","pRipple","","role","tab",1,"p-panel-header-icon","p-panel-toggler","p-link",3,"click","keydown.enter"],[1,"p-panel-footer"]],template:function(e,i){1&e&&(Dn(sV),h(0,"div",0),v(1,tV,7,5,"div",1),h(2,"div",2),M("@panelContent.done",function(s){return i.onToggleDone(s)}),h(3,"div",3),ot(4),v(5,nV,1,0,"ng-container",4),p(),v(6,rV,3,1,"div",5),p(),p()),2&e&&(ge(i.styleClass),m("ngClass",G(12,oV,i.toggleable))("ngStyle",i.style),q("id",i.id),g(1),m("ngIf",i.showHeader),g(1),m("@p
anelContent",i.collapsed?G(16,lV,G(14,aV,i.animating?i.transitionOptions:"0ms")):G(20,uV,G(18,cV,i.animating?i.transitionOptions:"0ms"))),q("id",i.id+"-content")("aria-hidden",i.collapsed)("aria-labelledby",i.id+"-titlebar"),g(3),m("ngTemplateOutlet",i.contentTemplate),g(1),m("ngIf",i.footerFacet||i.footerTemplate))},directives:[Je,lt,Me,Ot,ui],styles:[".p-panel-header{display:flex;justify-content:space-between;align-items:center}.p-panel-title{line-height:1}.p-panel-header-icon{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}\n"],encapsulation:2,data:{animation:[Ir("panelContent",[rr("hidden",Qe({height:"0",overflow:"hidden"})),rr("void",Qe({height:"{{height}}"}),{params:{height:"0"}}),rr("visible",Qe({height:"*"})),jt("visible <=> hidden",[Qe({overflow:"hidden"}),Pt("{{transitionParams}}")]),jt("void => hidden",Pt("{{transitionParams}}")),jt("void => visible",Pt("{{transitionParams}}"))])]},changeD
etection:0}),t})(),fV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Et,hn],Et]}),t})(),gV=(()=>{class t{constructor(){this.shape="rectangle",this.animation="wave",this.borderRadius=null,this.size=null,this.width="100%",this.height="1rem"}containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-none":"none"===this.animation}}containerStyle(){return Object.assign(Object.assign({},this.style),this.size?{width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-skeleton"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},decls:1,vars:4,consts:[[3,"ngClass","ngStyle"]],template:func
tion(e,i){1&e&&I(0,"div",0),2&e&&(ge(i.styleClass),m("ngClass",i.containerClass())("ngStyle",i.containerStyle()))},directives:[Je,lt],styles:['.p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:"";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n'],encapsulation:2,changeDetection:0}),t})(),mV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})(),_V=(()=>{class t{constructor(e,i){this.mythService=e,this.configService=i}ngOnInit(){this.m_hostname$=this.mythService.GetHostName().pipe(Re(e=>console.log(e))),this.m_timezone$=this.mythService.GetTimeZone().pipe(Re(e=>console.log(e))),this.m_connectionInfo$=this.mythService.GetConnectionIn
fo().pipe(Mi(e=>(console.error("error getting connection info",e),this.errorRes=e,hf(e)))),this.m_setting$=this.mythService.GetSetting({HostName:"localhost",Key:"TestSetting"}).pipe(Re(e=>console.log(e))),this.m_databaseStatus$=this.configService.GetDatabaseStatus().pipe(Re(e=>console.log("Database Status: "+e)))}}return t.\u0275fac=function(e){return new(e||t)(w(pf),w(xr))},t.\u0275cmp=Q({type:t,selectors:[["app-dashboard"]],decls:78,vars:0,consts:[[1,"p2"],["severity","warn","text","Please note this is a work in progress and some features are not fully working!"],[1,"grid","m-2"],[1,"col-12","md:col-6","lg:col-3"],["header","Server Status","styleClass","dark-panel",1,"showHeader"],[1,"pt-2"],["styleClass","mb-2"],["width","10rem","styleClass","mb-2"],["width","5rem","styleClass","mb-2"],["height","2rem","styleClass","mb-2"],["width","10rem","height","4rem"],["header","Current Tuner Status","styleClass","dark-panel"],["header","EPG Status","styleClass","dark-panel"],["header","Stor
age Group Status","styleClass","dark-panel"],["header","Job Queue","styleClass","dark-panel"],["header","Frontends","styleClass","dark-panel"],["header","Recent Recordings","styleClass","dark-panel"],["header","Dashboard Title 8","styleClass","dark-panel"],["header","Dashboard Title 9","styleClass","dark-panel"]],template:function(e,i){1&e&&(h(0,"h1"),E(1,"Dashboard"),p(),h(2,"p-card",0),h(3,"div"),I(4,"p-message",1),p(),p(),h(5,"div",2),h(6,"div",3),h(7,"p-panel",4),h(8,"div",5),I(9,"p-skeleton",6),I(10,"p-skeleton",7),I(11,"p-skeleton",8),I(12,"p-skeleton",9),I(13,"p-skeleton",10),p(),p(),p(),h(14,"div",3),h(15,"p-panel",11),h(16,"div",5),I(17,"p-skeleton",6),I(18,"p-skeleton",7),I(19,"p-skeleton",8),I(20,"p-skeleton",9),I(21,"p-skeleton",10),p(),p(),p(),h(22,"div",3),h(23,"p-panel",12),h(24,"div",5),I(25,"p-skeleton",6),I(26,"p-skeleton",7),I(27,"p-skeleton",8),I(28,"p-skeleton",9),I(29,"p-skeleton",10),p(),p(),p(),h(30,"div",3),h(31,"p-panel",13),h(32,"div",5),I(33,"p-skeleton",
6),I(34,"p-skeleton",7),I(35,"p-skeleton",8),I(36,"p-skeleton",9),I(37,"p-skeleton",10),p(),p(),p(),h(38,"div",3),h(39,"p-panel",14),h(40,"div",5),I(41,"p-skeleton",6),I(42,"p-skeleton",7),I(43,"p-skeleton",8),I(44,"p-skeleton",9),I(45,"p-skeleton",10),p(),p(),p(),h(46,"div",3),h(47,"p-panel",15),h(48,"div",5),I(49,"p-skeleton",6),I(50,"p-skeleton",7),I(51,"p-skeleton",8),I(52,"p-skeleton",9),I(53,"p-skeleton",10),p(),p(),p(),h(54,"div",3),h(55,"p-panel",16),h(56,"div",5),I(57,"p-skeleton",6),I(58,"p-skeleton",7),I(59,"p-skeleton",8),I(60,"p-skeleton",9),I(61,"p-skeleton",10),p(),p(),p(),h(62,"div",3),h(63,"p-panel",17),h(64,"div",5),I(65,"p-skeleton",6),I(66,"p-skeleton",7),I(67,"p-skeleton",8),I(68,"p-skeleton",9),I(69,"p-skeleton",10),p(),p(),p(),h(70,"div",3),h(71,"p-panel",18),h(72,"div",5),I(73,"p-skeleton",6),I(74,"p-skeleton",7),I(75,"p-skeleton",8),I(76,"p-skeleton",9),I(77,"p-skeleton",10),p(),p(),p(),p())},directives:[Gs,ff,pV,gV],styles:["[_nghost-%COMP%] .dark-panel
.p-panel .p-panel-header{background:#c0c0c0}"]}),t})(),yV=(()=>{class t{constructor(e){this.httpClient=e,this.startDate=Date.now()}toTime(e){return new Date(e).toISOString()}toStartTime(e){return this.toTime(e)}toEndTime(e){let i=new Date(e),r=new Date(i.getTime()+72e5);return this.toTime(r.toISOString())}toHalfHour(e){let i=new Date(e);return i.setMinutes(i.getMinutes()<30?0:30),i.setSeconds(0),i}GetProgramGuide(){let e=this.toHalfHour(this.startDate).toISOString(),i={StartTime:this.toStartTime(e),EndTime:this.toEndTime(e),Details:"true"};return this.httpClient.post("/Guide/GetProgramGuide",i)}}return t.\u0275fac=function(e){return new(e||t)(P(Fs))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function jc(t,n=0){return function bV(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function mf(t,n,e,i){return Li(e)&&(i=e,e=void 0),i?mf(t,n,e).pipe(ke(r=>Fr(r)?i(...r):i(r))):new Ee(r=>{e1(t,n,function s(o){r.next(arguments.length>1?Array.protot
ype.slice.call(arguments):o)},r,e)})}function e1(t,n,e,i,r){let s;if(function SV(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,r),s=()=>o.removeEventListener(n,e,r)}else if(function DV(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),s=()=>o.off(n,e)}else if(function CV(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),s=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e1(t[o],n,e,i,r)}i.add(s)}class TV extends Ge{constructor(n,e){super()}schedule(n,e=0){return this}}class Uc extends TV{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.dela
y=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let t1=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Yn extends
t1{constructor(n,e=t1.now){super(n,()=>Yn.delegate&&Yn.delegate!==this?Yn.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Yn.delegate&&Yn.delegate!==this?Yn.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const IV=new class xV extends Yn{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r<s&&(n=e.shift()));if(this.active=!1,i){for(;++r<s&&(n=e.shift());)n.unsubscribe();throw i}}}(class EV extends Uc{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycl
eAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let kV=1;const MV=Promise.resolve(),$c={};function n1(t){return t in $c&&(delete $c[t],!0)}const r1={setImmediate(t){const n=kV++;return $c[n]=!0,MV.then(()=>n1(n)&&t()),n},clearImmediate(t){n1(t)}},AV=new class RV extends Yn{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r<s&&(n=e.shift()));if(this.active=!1,i){for(;++r<s&&(n=e.shift());)n.unsubscribe();throw i}}}(class OV extends Uc{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=r1.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length
&&(r1.clearImmediate(e),n.scheduled=void 0)}});function s1(t){return!!t&&(t instanceof Ee||"function"==typeof t.lift&&"function"==typeof t.subscribe)}class FV{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new LV(n,this.compare,this.keySelector))}}class LV extends je{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}const o1=new Yn(Uc);class VV{constructor(n){this.durationSelector=n}call(n,e){return e.subscribe(new BV(n,this.durationSelector))}}class BV extends io{constructor(n,e){super(n),this.durationSelector=e,this.hasValue=!1}_next(n){if(this.value=n,this.hasValue=!0,!this.throttled){let e;try{const{duration
Selector:r}=this;e=r(n)}catch(r){return this.destination.error(r)}const i=ro(e,new no(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:n,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function a1(t){return!Fr(t)&&t-parseFloat(t)+1>=0}function zV(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function _f(t,n=o1){return function NV(t){return function(e){return e.lift(new VV(t))}}(()=>function HV(t=0,n,e){let i=-1;return a1(n)?i=Number(n)<1?1:Number(n):Lr(n)&&(e=n),Lr(e)||(e=o1),new Ee(r=>{const s=a1(t)?t:+t-e.now();return e.schedule(zV,s,{index:0,period:i,subscriber:r})})}(t,n))}function yf(t){return n=>n.lift(new jV(t))}class jV{constructor(n){this.notifier=n}call(n,e){const i=new U
V(n),r=ro(this.notifier,new no(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class UV extends io{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}class GV{call(n,e){return e.subscribe(new WV(n))}}class WV extends je{constructor(n){super(n),this.hasPrev=!1}_next(n){let e;this.hasPrev?e=[this.prev,n]:this.hasPrev=!0,this.prev=n,e&&this.destination.next(e)}}const YV=new class KV extends Yn{}(class qV extends Uc{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}});class On{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case
"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return ee(this.value);case"E":return hf(this.error);case"C":return _c()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new On("N",n):On.undefinedValueNotification}static createError(n){return new On("E",void 0,n)}static createComplete(){return On.completeNotification}}On.completeNotification=new On("C"),On.undefinedValueNotification=new On("N",void 0);class Gc extends je{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(Gc.dispatch,this.delay,new ZV(n,this.destinati
on)))}_next(n){this.scheduleMessage(On.createNext(n))}_error(n){this.scheduleMessage(On.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(On.createComplete()),this.unsubscribe()}}class ZV{constructor(n,e){this.notification=n,this.destination=e}}class JV extends Oe{constructor(n=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=n<1?1:n,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(n){if(!this.isStopped){const e=this._events;e.push(n),e.length>this._bufferSize&&e.shift()}super.next(n)}nextTimeWindow(n){this.isStopped||(this._events.push(new XV(this._getNow(),n)),this._trimBufferThenGetEvents()),super.next(n)}_subscribe(n){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)
throw new cr;if(this.isStopped||this.hasError?o=Ge.EMPTY:(this.observers.push(n),o=new lg(this,n)),r&&n.add(n=new Gc(n,r)),e)for(let a=0;a<s&&!n.closed;a++)n.next(i[a]);else for(let a=0;a<s&&!n.closed;a++)n.next(i[a].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),o}_getNow(){return(this.scheduler||YV).now()}_trimBufferThenGetEvents(){const n=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(n-r[o].time<i);)o++;return s>e&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class XV{constructor(n,e){this.time=n,this.value=e}}let vf;try{vf="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){vf=!1}let Wc,kr,l1=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function $A(t){return t===hw}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),th
is.BLINK=this.isBrowser&&!(!window.chrome&&!vf)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(P(Yo))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),n3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})();function Ca(){if("object"!=typeof document||!document)return 0;if(null==Wc){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.p
osition="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Wc=0,0===t.scrollLeft&&(t.scrollLeft=1,Wc=0===t.scrollLeft?1:2),t.remove()}return Wc}const a3=new ie("cdk-dir-doc",{providedIn:"root",factory:function l3(){return AT(bt)}}),c3=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let u1=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new R,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function u3(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?c3.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(P(a3,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),d1
=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})();class p3 extends class d3{}{constructor(n){super(),this._data=n}connect(){return s1(this._data)?this._data:ee(this._data)}disconnect(){}}class f3{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(n,e,i,r,s){n.forEachOperation((o,a,l)=>{let c,u;null==o.previousIndex?(c=this._insertView(()=>i(o,a,l),l,e,r(o)),u=c?1:0):null==l?(this._detachAndCacheView(a,e),u=3):(c=this._moveView(a,l,e,r(o)),u=2),s&&s({context:null==c?void 0:c.context,operation:u,record:o})})}detach(){for(const n of this._viewCache)n.destroy();this._viewCache=[]}_insertView(n,e,i,r){const s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=r);const o=n();return i.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheView(n,e){const i=e.detach(n);this._maybeCacheView(i,e)}_moveView(n,e,i,r){const s=i.get(n);return i.move(s,e),s.context.$implicit=r,s}_maybeCache
View(n,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(n);else{const i=e.indexOf(n);-1===i?n.destroy():e.remove(i)}}_insertViewFromCache(n,e){const i=this._viewCache.pop();return i&&e.insert(i,n),i||null}}const h1=new ie("_ViewRepeater"),g3=["contentWrapper"],m3=["*"],p1=new ie("VIRTUAL_SCROLL_STRATEGY");class _3{constructor(n,e,i){this._scrolledIndexChange=new Oe,this.scrolledIndexChange=this._scrolledIndexChange.pipe(function PV(t,n){return e=>e.lift(new FV(t,n))}()),this._viewport=null,this._itemSize=n,this._minBufferPx=e,this._maxBufferPx=i}attach(n){this._viewport=n,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(n,e,i){this._itemSize=n,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange
()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(n,e){this._viewport&&this._viewport.scrollToOffset(n*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const n=this._viewport.getRenderedRange(),e={start:n.start,end:n.end},i=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let s=this._viewport.measureScrollOffset(),o=this._itemSize>0?s/this._itemSize:0;if(e.end>r){const l=Math.ceil(i/this._itemSize),c=Math.max(0,Math.min(o,r-l));o!=c&&(o=c,s=c*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(r,e.start+l))}const a=s-e.start*this._itemSize;if(a<this._minBufferPx&&0!=e.start){const l=Math.ceil((this._maxBufferPx-a)/this._itemSize);e.start=Math.max(0,e.start-l),e.end=Math.min(r,Math.ceil(o+(i+this._minBufferPx)/this._itemSize))}else{const l=e.end*this._itemSize-(s+i);if(l<this._minBufferPx&&e.end!=r){
const c=Math.ceil((this._maxBufferPx-l)/this._itemSize);c>0&&(e.end=Math.min(r,e.end+c),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}function y3(t){return t._scrollStrategy}let f1=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new _3(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=jc(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=jc(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=jc(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=U({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize","
"]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[be([{provide:p1,useFactory:y3,deps:[xe(()=>t)]}]),gt]}),t})(),g1=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Oe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ee(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(_f(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ee()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)
),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Zi(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=function wV(t){return t instanceof Se?t.nativeElement:t}(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>mf(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(P(Te),P(l1),P(bt,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m1=(()=>{class t{constructor(e,i,r,s){this.el
ementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new Oe,this._elementScrolled=new Ee(o=>this.ngZone.runOutsideAngular(()=>mf(this.elementRef.nativeElement,"scroll").pipe(yf(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Ca()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Ca()?e.left=e.right:1==Ca()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;!function
s3(){if(null==kr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return kr=!1,kr;if("scrollBehavior"in document.documentElement.style)kr=!0;else{const t=Element.prototype.scrollTo;kr=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return kr}()?(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left)):i.scrollTo(e)}measureScrollOffset(e){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==e)return s.scrollTop;if("bottom"==e)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?r:i:"end"==e&&(e=o?i:r),o&&2==Ca()?e==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==Ca()?e==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(g1),w(Te),w(u1,8))},t.\u0275dir=U({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),w3
=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new Oe,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._pla
tform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(_f(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(P(l1),P(Te),P(bt,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const D3="undefined"!=typeof requestAnimationFrame?IV:AV;let Da=(()=>{class t extends m1{constructor(e,i,r,s,o,a,l){super(e,a,r,o),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=s,this._detachedSubject=new Oe,this._renderedRangeSubject=new Oe,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange
=new Ee(c=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>c.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Ge.EMPTY,this._viewportChanges=l.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=function vV(t){return null!=t&&"false"!=`${t}`}(e)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),thi
s.elementScrolled().pipe($p(null),_f(0,D3)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(yf(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function C3(t,n){return t.start==n.start&&t.end==n.end})(this._rende
redRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){const s="horizontal"==this.orientation,o=s?"X":"Y";let l=`translate${o}(${Number((s&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(l+=` translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=l&&(this._renderedContentTransform=l,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToO
ffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){return super.measureScrollOffset(e||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const e=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?e.clientWidth:e.clientHeight}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this.
_isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(vt),w(Te),w(p1,8),w(u1,8),w(g1),w(w3))},t.\u0275cmp=Q({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&He(g3,7),2&e){let r;K(r=Y())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&si("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",append
Only:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[be([{provide:m1,useExisting:t}]),Be],ngContentSelectors:m3,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(Dn(),h(0,"div",0,1),ot(2),p(),I(3,"div",2)),2&e&&(g(3),wi("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scr
oll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scro
ll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function _1(t,n,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===t?"start"===n?r.left:r.right:"start"===n?r.top:r.bottom}let y1=(()=>{class t{constructor(e,i,r,s,o,a){this._viewContainerRef=e,this._template=i,this._differs=r,this._viewRepeater=s,this._viewport=o,this.viewChange=new Oe,this._dataSourceChanges=new Oe,this.dataStream=this._dataSourceChanges.pipe($p(null),function $V(){return t=>t.lift(new GV)}(),ki(([l,c])=>this._changeDataSource(l,c)),function e3(t,n,e){let i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:n,refCount:!1,scheduler:e},r=>r.lift(function t3({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:n=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,o,s=0,a=!1,l=!1;return function(u){let d;s++,!r|
|a?(a=!1,r=new JV(t,n,i),d=r.subscribe(this),o=u.subscribe({next(_){r.next(_)},error(_){a=!0,r.error(_)},complete(){l=!0,o=void 0,r.complete()}}),l&&(o=void 0)):d=r.subscribe(this),this.add(()=>{s--,d.unsubscribe(),d=void 0,o&&!l&&e&&0===s&&(o.unsubscribe(),o=void 0,r=void 0)})}}(i))}(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Oe,this.dataStream.subscribe(l=>{this._data=l,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(yf(this._destroyed)).subscribe(l=>{this._renderedRange=l,a.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function h3(t){return t&&"function"==typeof t.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new p3(s1(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,
this._cdkVirtualForTrackBy=e?(i,r)=>e(i+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=jc(e)}measureRangeSize(e,i){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,s=e.end-e.start;let o,a;for(let l=0;l<s;l++){const c=this._viewContainerRef.get(l+r);if(c&&c.rootNodes.length){o=a=c.rootNodes[0];break}}for(let l=s-1;l>-1;l--){const c=this._viewContainerRef.get(l+r);if(c&&c.rootNodes.length){a=c.rootNodes[c.rootNodes.length-1];break}}return o&&a?_1(i,"end",a)-_1(i,"start",o):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.comp
lete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,i):i)),this._needsUpdate=!0)}_changeDataSource(e,i){return e&&e.disconnect(this),this._needsUpdate=!0,i?i.connect(this):ee()}_updateContext(){const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const r=this._viewContainerRef.get(i);r.context.index=this._renderedRange.start+i,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(s,o,a)=>this._getEmbeddedViewArgs(s,a),s=>s.item),e.forEachIdentityChange(s=>{this._viewContainerRef.get(s.currentIndex).context.$implicit=s.item});const i=
this._data.length;let r=this._viewContainerRef.length;for(;r--;){const s=this._viewContainerRef.get(r);s.context.index=this._renderedRange.start+r,s.context.count=i,this._updateComputedContextProperties(s.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,i){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:i}}}return t.\u0275fac=function(e){return new(e||t)(w(xn),w(En),w(Os),w(h1),w(Da,4),w(Te))},t.\u0275dir=U({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[be([{provide:h1,useClass:f3}])]}),t})(),v1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)}
,t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})(),qc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[d1,n3,v1],d1,v1]}),t})();function S3(t,n){if(1&t&&(h(0,"span"),E(1),p()),2&t){const e=f();g(1),le(e.label||"empty")}}function T3(t,n){1&t&&H(0)}const b1=function(t){return{height:t}},E3=function(t,n){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":n}},wf=function(t){return{$implicit:t}},x3=["container"],I3=["filter"],k3=["in"],M3=["editableInput"];function O3(t,n){if(1&t&&(pe(0),E(1),fe()),2&t){const e=f(2);g(1),le(e.label||"empty")}}function R3(t,n){1&t&&H(0)}const A3=function(t){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":t}};function P3(t,n){if(1&t&&(h(0,"span",12),v(1,O3,2,1,"ng-container",13),v(2,R3,1,0,"ng-container",14),p()),2&t){const e=f();m("ngClass",G(9,A3,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPosit
ionStyle)("tooltipStyleClass",e.tooltipStyleClass),q("id",e.labelId),g(1),m("ngIf",!e.selectedItemTemplate),g(1),m("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",G(11,wf,e.selectedOption))}}const F3=function(t){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":t}};function L3(t,n){if(1&t&&(h(0,"span",15),E(1),p()),2&t){const e=f();m("ngClass",G(2,F3,null==e.placeholder||0===e.placeholder.length)),g(1),le(e.placeholder||"empty")}}function N3(t,n){if(1&t){const e=z();h(0,"input",16,17),M("click",function(){return C(e),f().onEditableInputClick()})("input",function(r){return C(e),f().onEditableInputChange(r)})("focus",function(r){return C(e),f().onEditableInputFocus(r)})("blur",function(r){return C(e),f().onInputBlur(r)}),p()}if(2&t){const e=f();m("disabled",e.disabled),q("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function V3(t,n){if(1&t){const e=z();h(0,"i",18),M("click",function(r){return
C(e),f().clear(r)}),p()}}function B3(t,n){1&t&&H(0)}function H3(t,n){if(1&t){const e=z();h(0,"div",26),h(1,"div",27),M("click",function(r){return r.stopPropagation()}),h(2,"input",28,29),M("keydown.enter",function(r){return r.preventDefault()})("keydown",function(r){return C(e),f(2).onKeydown(r,!1)})("input",function(r){return C(e),f(2).onFilterInputChange(r)}),p(),I(4,"span",30),p(),p()}if(2&t){const e=f(2);g(2),m("value",e.filterValue||""),q("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function z3(t,n){if(1&t&&(h(0,"span"),E(1),p()),2&t){const e=f().$implicit,i=f(3);g(1),le(i.getOptionGroupLabel(e)||"empty")}}function j3(t,n){1&t&&H(0)}function U3(t,n){1&t&&H(0)}const w1=function(t,n){return{$implicit:t,selectedOption:n}};function $3(t,n){if(1&t&&(h(0,"li",32),v(1,z3,2,1,"span",13),v(2,j3,1,0,"ng-container",14),p(),v(3,U3,1,0,"ng-container",14)),2&t){const e=n.$implicit;f(2);const i=
he(8),r=f();g(1),m("ngIf",!r.groupTemplate),g(1),m("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",G(5,wf,e)),g(1),m("ngTemplateOutlet",i)("ngTemplateOutletContext",it(7,w1,r.getOptionGroupChildren(e),r.selectedOption))}}function G3(t,n){if(1&t&&(pe(0),v(1,$3,4,10,"ng-template",31),fe()),2&t){const e=f(2);g(1),m("ngForOf",e.optionsToDisplay)}}function W3(t,n){1&t&&H(0)}function q3(t,n){if(1&t&&(pe(0),v(1,W3,1,0,"ng-container",14),fe()),2&t){f();const e=he(8),i=f();g(1),m("ngTemplateOutlet",e)("ngTemplateOutletContext",it(2,w1,i.optionsToDisplay,i.selectedOption))}}function K3(t,n){if(1&t){const e=z();h(0,"p-dropdownItem",35),M("onClick",function(r){return C(e),f(4).onItemClick(r)}),p()}if(2&t){const e=n.$implicit,i=f(2).selectedOption,r=f(2);m("option",e)("selected",i==e)("label",r.getOptionLabel(e))("disabled",r.isOptionDisabled(e))("template",r.itemTemplate)}}function Y3(t,n){if(1&t&&(pe(0),v(1,K3,1,5,"ng-template",31),fe()),2&t){const e=f().$implicit;g(1),m("ngForOf
",e)}}function Q3(t,n){if(1&t){const e=z();pe(0),h(1,"p-dropdownItem",35),M("onClick",function(r){return C(e),f(5).onItemClick(r)}),p(),fe()}if(2&t){const e=n.$implicit,i=f(3).selectedOption,r=f(2);g(1),m("option",e)("selected",i==e)("label",r.getOptionLabel(e))("disabled",r.isOptionDisabled(e))("template",r.itemTemplate)}}function Z3(t,n){if(1&t){const e=z();h(0,"cdk-virtual-scroll-viewport",37,38),M("scrolledIndexChange",function(){return C(e),f(4).scrollToSelectedVirtualScrollElement()}),v(2,Q3,2,5,"ng-container",39),p()}if(2&t){const e=f(2).$implicit,i=f(2);m("ngStyle",G(3,b1,i.scrollHeight))("itemSize",i.itemSize),g(2),m("cdkVirtualForOf",e)}}function J3(t,n){if(1&t&&v(0,Z3,3,5,"cdk-virtual-scroll-viewport",36),2&t){const e=f(3);m("ngIf",e.virtualScroll&&e.optionsToDisplay&&e.optionsToDisplay.length)}}function X3(t,n){if(1&t&&(v(0,Y3,2,1,"ng-container",33),v(1,J3,1,1,"ng-template",null,34,ze)),2&t){const e=he(2);m("ngIf",!f(2).virtualScroll)("ngIfElse",e)}}function eB(t,n){if(1
&t&&(pe(0),E(1),fe()),2&t){const e=f(3);g(1),De(" ",e.emptyFilterMessageLabel," ")}}function tB(t,n){1&t&&H(0,null,41)}function nB(t,n){if(1&t&&(h(0,"li",40),v(1,eB,2,1,"ng-container",33),v(2,tB,2,0,"ng-container",20),p()),2&t){const e=f(2);g(1),m("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),g(1),m("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function iB(t,n){if(1&t&&(pe(0),E(1),fe()),2&t){const e=f(3);g(1),De(" ",e.emptyMessageLabel," ")}}function rB(t,n){1&t&&H(0,null,42)}function sB(t,n){if(1&t&&(h(0,"li",40),v(1,iB,2,1,"ng-container",33),v(2,rB,2,0,"ng-container",20),p()),2&t){const e=f(2);g(1),m("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),g(1),m("ngTemplateOutlet",e.emptyTemplate)}}function oB(t,n){1&t&&H(0)}const aB=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},lB=function(t){return{value:"visible",params:t}},cB=function(t){return{"p-dropdown-virtualscroll":t}};function uB(t,n){if(1&t){const e=z();h(0,"div",1
9),M("click",function(r){return C(e),f().onOverlayClick(r)})("@overlayAnimation.start",function(r){return C(e),f().onOverlayAnimationStart(r)})("@overlayAnimation.start",function(r){return C(e),f().onOverlayAnimationEnd(r)}),v(1,B3,1,0,"ng-container",20),v(2,H3,5,4,"div",21),h(3,"div",22),h(4,"ul",23),v(5,G3,2,1,"ng-container",13),v(6,q3,2,5,"ng-container",13),v(7,X3,3,2,"ng-template",null,24,ze),v(9,nB,3,3,"li",25),v(10,sB,3,3,"li",25),p(),p(),v(11,oB,1,0,"ng-container",20),p()}if(2&t){const e=f();ge(e.panelStyleClass),m("ngClass","p-dropdown-panel p-component")("@overlayAnimation",G(19,lB,it(16,aB,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),g(1),m("ngTemplateOutlet",e.headerTemplate),g(1),m("ngIf",e.filter),g(1),wi("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),g(1),m("ngClass",G(21,cB,e.virtualScroll)),q("id",e.listId),g(1),m("ngIf",e.group),g(1),m("ngIf",!e.group),g(3),m("ngIf",e.filterValue&&e.isEmpty()),g(1),m("ngIf",!e.filterValue&&
e.isEmpty()),g(1),m("ngTemplateOutlet",e.footerTemplate)}}const dB=function(t,n,e,i){return{"p-dropdown p-component":!0,"p-disabled":t,"p-dropdown-open":n,"p-focus":e,"p-dropdown-clearable":i}},hB={provide:Ht,useExisting:xe(()=>C1),multi:!0};let pB=(()=>{class t{constructor(){this.onClick=new R}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(h(0,"li",0),M("click",function(s){return i.onOptionClick(s)}),v(1,S3,2,1,"span",1),v(2,T3,1,0,"ng-container",2),p()),2&e&&(m("ngStyle",G(8,b1,i.itemSize+"
px"))("id",i.selected?"p-highlighted-option":"")("ngClass",it(10,E3,i.selected,i.disabled)),q("aria-label",i.label)("aria-selected",i.selected),g(1),m("ngIf",!i.template),g(1),m("ngTemplateOutlet",i.template)("ngTemplateOutletContext",G(13,wf,i.option)))},directives:[ui,lt,Je,Me,Ot],encapsulation:2}),t})(),C1=(()=>{class t{constructor(e,i,r,s,o,a,l){this.el=e,this.renderer=i,this.cd=r,this.zone=s,this.filterService=o,this.config=a,this.overlayService=l,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.onChange=new R,this.onFilter=new R,this.onFocus=new R,this.onB
lur=new R,this.onClick=new R,this.onShow=new R,this.onHide=new R,this.onClear=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=va()}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list"}get options(){return this._options}set options(e){this._options=e,this.optionsToDi
splay=this._options,this.updateSelectedOption(this.value),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Qt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Qt.EMPTY_FILTER_MESSAGE)}get filled(){return this.value||null!=this.value||null!=this.value}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e
}getOptionValue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?V.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?V.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const i=e.option;this.isOptionDisabled(i)||(this.selectItem(e.originalEvent,i),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(e,i){this.selectedOption!=i&&(this.selectedOption=i,this.value=this.getOptionValue(i),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}),this.virtualScroll&&setTimeout(()=>{this.viewPortOffsetTop=this.viewPort?this.viewPort.measureScrollOffset():0},1))}ngAfterViewChe
cked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.virtualScroll&&this.updateVirtualScrollSelectedIndex(!0),this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){if(this.virtualScroll&&this.viewPort){let i=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(i.start>this.virtualScrollSelectedIndex||i.end<this.virtualScrollSelectedIndex)&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)}S.findSingle(this.overlay,"li.p-highlight")&&S.scrollInView(this.itemsWrapper,S.findSingle(this.overlay,"li.p-highlight")),this.selectedOptionUpdated=!1}}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.updateSelectedOption(e),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}update
SelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onMouseclick(e){this.disabled||this.readonly||this.isInputClick(e)||(this.onClick.emit(e),this.accessibleViewChild.nativeElement.focus(),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}isInputClick(e){return S.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.ed
itableInputViewChild.nativeElement)}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputClick(){this.bindDocumentClickListener()}onEditableInputFocus(e){this.focused=!0,this.hide(),this.onFocus.emit(e)}onEditableInputChange(e){this.value=e.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}show(){this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.overlay=e.element,this.itemsWrapper=S.findSingle(this.overlay,this.virtualScroll?".cdk-virtual-scroll-viewport":".p-dropdown-items-wrapper"),this.appendOverlay(),this.autoZIndex&&Tt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overl
ay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options&&this.options.length&&!this.virtualScroll){let r=S.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");r&&r.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e);break;case"void":this.onOverlayHide(),this.onHide.emit(e)}}onOverlayAnimationEnd(e){"void"===e.toState&&Tt.clear(e.element)}scrollToSelectedVirtualScrollElement(){this.virtualAutoScrolled||(this.viewPortOffsetTop?this.viewPort.scrollToOffset(this.viewPortOffsetTop):this.virtualScrollSelectedIndex>-1&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)),this.virtualAutoScrolled=!0}updateVirtualScrollSelectedIndex(e){this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&(e&&(this.viewPortOffsetT
op=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):S.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=S.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.virtualScroll&&(this.virtualAutoScrolled=!1),this.cd.markForCheck()}alignOverlay(){this.overlay&&(this.appendTo?S.absolutePosition(this.overlay,this.containerViewChild.nativeElement):S.relativePosition(this.overlay,this.containerViewChild.nativeElement))}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouche
d=!1}findPrevEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e-1;0<=r;r--){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}if(!i)for(let r=this.optionsToDisplay.length-1;r>=e;r--){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}}return i}findNextEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e+1;r<this.optionsToDisplay.length;r++){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}if(!i)for(let r=0;r<e;r++){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}}return i}onKeydown(e,i){if(!this.readonly&&this.optionsToDisplay&&null!==this.optionsToDisplay.length)switch(e.which){case 40:if(!this.overlayVisible&&e.altKey)this.show();else if(this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==r){let s=r.itemIndex+1;s<this.getOptionGro
upChildren(this.optionsToDisplay[r.groupIndex]).length?(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex])[s]),this.selectedOptionUpdated=!0):this.optionsToDisplay[r.groupIndex+1]&&(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,s=this.findNextEnabledOption(r);s&&(this.selectItem(e,s),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 38:if(this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==r){let s=r.itemIndex-1;if(s>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex])[s]),this.selectedOptionUpdated=
!0;else if(s<0){let o=this.optionsToDisplay[r.groupIndex-1];o&&(this.selectItem(e,this.getOptionGroupChildren(o)[this.getOptionGroupChildren(o).length-1]),this.selectedOptionUpdated=!0)}}}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,s=this.findPrevEnabledOption(r);s&&(this.selectItem(e,s),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 32:i&&(this.overlayVisible?this.hide():this.show(),e.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),e.preventDefault();break;case 27:case 9:this.hide();break;default:i&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const i=e.key;let r;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=i,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.se
archValue?this.searchValue+i:i,this.group){let s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};r=this.searchOptionWithinGroup(s)}else{let s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;r=this.searchOption(++s)}r&&!this.isOptionDisabled(r)&&(this.selectItem(e,r),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let i;return this.searchValue&&(i=this.searchOptionInRange(e,this.optionsToDisplay.length),i||(i=this.searchOptionInRange(0,e))),i}searchOptionInRange(e,i){for(let r=e;r<i;r++){let s=this.optionsToDisplay[r];if(this.getOptionLabel(s).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(s))return s}return null}searchOptionWithinGroup(e){if(this.searchValue){for(let r=e.groupIndex;r<this.optionsT
oDisplay.length;r++)for(let s=e.groupIndex===r?e.itemIndex+1:0;s<this.getOptionGroupChildren(this.optionsToDisplay[r]).length;s++){let o=this.getOptionGroupChildren(this.optionsToDisplay[r])[s];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return o}for(let r=0;r<=e.groupIndex;r++)for(let s=0;s<(e.groupIndex===r?e.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[r]).length);s++){let o=this.getOptionGroupChildren(this.optionsToDisplay[r])[s];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return o}}return null}findOptionIndex(e,i){let r=-1;if(i)for(let s=0;s<i.length;s++)if(null==e&&null==this.getOptionValue(i[s])||V.equals(e,this.getOptionValue(i[s]),this.dataKey)){r=s;break}return r}findOptionGroupIndex(e,i){let r,s;if(i)for(let o=0;o<i.length&&(r=o,s=this.f
indOptionIndex(e,this.getOptionGroupChildren(i[o])),-1===s);o++);return-1!==s?{groupIndex:r,itemIndex:s}:-1}findOption(e,i,r){if(this.group&&!r){let s;if(i&&i.length)for(let o of i)if(s=this.findOption(e,this.getOptionGroupChildren(o),!0),s)break;return s}{let s=this.findOptionIndex(e,i);return-1!=s?i[s]:null}}onFilterInputChange(e){let i=e.target.value;i&&i.length?(this._filterValue=i,this.activateFilter()):(this._filterValue=null,this.optionsToDisplay=this.options),this.optionsChanged=!0,this.onFilter.emit({originalEvent:e,filter:this._filterValue})}activateFilter(){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.options&&this.options.length){if(this.group){let i=[];for(let r of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(r),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&i.push(Object.assign(Object.assign({},r),{[this.optionGroupChildren]:s}))}this.optionsToDisplay=i}else this.optionsToDisplay=this.filterSe
rvice.filter(this.options,e,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.editable?S.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():S.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",i=>{!this.preventDocumentDefault&&this.isOutsideClicked(i)&&(this.hide(),this.unbindDocumentClickListener()),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResiz
eListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!S.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Lc(this.containerViewChild.nativeElement,e=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}clear(e){this.value=null,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.updateSelectedOption(this.value),this.updateEditableLabel(),this.onClear.emit(e)}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.itemsWrapper=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&Tt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(dn),
w(vt),w(Te),w(Nc),w(Ai),w(Vc))},t.\u0275cmp=Q({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(He(x3,5),He(I3,5),He(k3,5),He(Da,5),He(M3,5)),2&e){let r;K(r=Y())&&(i.containerViewChild=r.first),K(r=Y())&&(i.filterViewChild=r.first),K(r=Y())&&(i.accessibleViewChild=r.first),K(r=Y())&&(i.viewPort=r.first),K(r=Y())&&(i.editableInputViewChild=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,i){2&e&&si("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focused||i.overlayVisible)},inputs:{scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"i
nputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",virtualScroll:"virtualScroll",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValu
e"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear"},features:[be([hB])],decls:12,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","text","class","p-dropdown-label p-inputtext","aria-haspopup","listbox",3,"disabled","click","input","focus","blur",4,"ngIf"],["class","p-dropdown-clear-icon pi pi-times",3,"click",4,"ngIf"],["role","button","aria-haspopup","listbox",1,"p-dropdown-trigger"],[1,"p-dropdown-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],
[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["type","text","aria-haspopup","listbox",1,"p-dropdown-label","p-inputtext",3,"disabled","click","input","focus","blur"],["editableInput",""],[1,"p-dropdown-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","click"],[4,"ngTemplateOutlet"],["class","p-dropdown-header",4,"ngIf"],[1,"p-dropdown-items-wrapper"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["itemslist",""],["class","p-dropdown-empty-message",4,"ngIf"],[1,"p-dropdown-header"],[1,"p-dropdown-filter-container",3,"click"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","keydown.enter","keydown","input"],["filter",""],[1,"p-dropdown-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-dropdown-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],[3,"option","selected","label","disabled","template","onClick"],[3,"ngStyle","itemSize","scrolledInde
xChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(e,i){1&e&&(h(0,"div",0,1),M("click",function(s){return i.onMouseclick(s)}),h(2,"div",2),h(3,"input",3,4),M("focus",function(s){return i.onInputFocus(s)})("blur",function(s){return i.onInputBlur(s)})("keydown",function(s){return i.onKeydown(s,!0)}),p(),p(),v(5,P3,3,13,"span",5),v(6,L3,2,4,"span",6),v(7,N3,2,4,"input",7),v(8,V3,1,0,"i",8),h(9,"div",9),I(10,"span",10),p(),v(11,uB,12,23,"div",11),p()),2&e&&(ge(i.styleClass),m("ngClass",Di(19,dB,i.disabled,i.overlayVisible,i.focused,i.showClear&&!i.disabled))("ngStyle",i.style),g(3),m("disabled",i.disabled),q("id",i.inputId)("placeholder",i.placeholder)("aria-expanded",i.overlayVisible)("aria-labelledby",i.ariaLabelledBy)("tabindex",i.tabindex)("autofocus",i.autofocus)("aria-activedescendant",i.overlayVisible?"p-highlighted-option":i.label
Id),g(2),m("ngIf",!i.editable&&null!=i.label),g(1),m("ngIf",!i.editable&&null==i.label),g(1),m("ngIf",i.editable),g(1),m("ngIf",null!=i.value&&i.showClear&&!i.disabled),g(1),q("aria-expanded",i.overlayVisible),g(1),m("ngClass",i.dropdownIcon),g(1),m("ngIf",i.overlayVisible))},directives:[Je,lt,Me,Hc,Ot,Mt,pB,Da,f1,y1],styles:[".p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400
;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}\n"],encapsulation:2,data:{animation:[Ir("overlayAnimation",[jt(":enter",[Qe({opacity:0,transform:"scaleY(0.8)"}),Pt("{{showTransitionParams}}")]),jt(":leave",[Pt("{{hideTransitionParams}}",Qe({opacity:0}))])])]},changeDetection:0}),t})(),Cf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Et,qc,$s,hn],Et,qc]}),t})(),fB=(()=>{class t{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&
this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(Vs,8),w(vt))},t.\u0275dir=U({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&M("input",function(s){return i.onInput(s)}),2&e&&si("p-filled",i.filled)}}),t})(),D1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();function gB(t,n){1&t&&H(0)}const mB=function(t,n,e,i){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":n,"p-button-icon-top":e,"p-button-icon-bottom":i}};function _B(t,n){if(1&t&&I(0,"span",4),2&t){const e=f();ge(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),m("ngClass",Di(4,mB,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),q("aria-hidden",!0)}}function yB(t,n){if(1&t&&(h(0,"span",5),E(1),
p()),2&t){const e=f();q("aria-hidden",e.icon&&!e.label),g(1),le(e.label||"\xa0")}}function vB(t,n){if(1&t&&(h(0,"span",4),E(1),p()),2&t){const e=f();ge(e.badgeClass),m("ngClass",e.badgeStyleClass()),g(1),le(e.badge)}}const bB=function(t,n,e,i,r){return{"p-button p-component":!0,"p-button-icon-only":t,"p-button-vertical":n,"p-disabled":e,"p-button-loading":i,"p-button-loading-label-only":r}},wB=["*"];let Df=(()=>{class t{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,S.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),(this.icon||this.loading)&&this.createIconEl();let e=document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",this.label?e.appendChild(document.createTextNode(this.label)):e.innerHTML=" ",this.el.nativeElement.appendChild(e),this.initialized=!0}getStyleClass(){l
et e="p-button p-component";return this.icon&&!this.label&&(e+=" p-button-icon-only"),this.loading&&(e+=" p-disabled p-button-loading",!this.icon&&this.label&&(e+=" p-button-loading-label-only")),e}setStyleClass(){let e=this.getStyleClass();this.el.nativeElement.className=e+" "+this._initialStyleClass}createIconEl(){let e=document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&S.addClass(e,i);let r=this.getIconClass();r&&S.addMultipleClasses(e,r);let s=S.findSingle(this.el.nativeElement,".p-button-label");s?this.el.nativeElement.insertBefore(e,s):this.el.nativeElement.appendChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}setIconClass(){let e=S.findSingle(this.el.nativeElement,".p-button-icon");e?e.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIconEl(
)}removeIconElement(){let e=S.findSingle(this.el.nativeElement,".p-button-icon");this.el.nativeElement.removeChild(e)}get label(){return this._label}set label(e){this._label=e,this.initialized&&(S.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.setIconClass(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.loading||this.icon?this.setIconClass():this.removeIconElement(),this.setStyleClass())}ngOnDestroy(){this.initialized=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Se))},t.\u0275dir=U({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),Ks=(()=>{class t{constructor(){this.type="button",this.iconPos="left",this.loadi
ng=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new R,this.onFocus=new R,this.onBlur=new R}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-button"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:wB,decls:6,vars:16,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[
3,"ngClass"],[1,"p-button-label"]],template:function(e,i){1&e&&(Dn(),h(0,"button",0),M("click",function(s){return i.onClick.emit(s)})("focus",function(s){return i.onFocus.emit(s)})("blur",function(s){return i.onBlur.emit(s)}),ot(1),v(2,gB,1,0,"ng-container",1),v(3,_B,1,9,"span",2),v(4,yB,2,2,"span",3),v(5,vB,2,4,"span",2),p()),2&e&&(ge(i.styleClass),m("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",yr(10,bB,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),q("type",i.type),g(2),m("ngTemplateOutlet",i.contentTemplate),g(1),m("ngIf",!i.contentTemplate&&(i.icon||i.loading)),g(1),m("ngIf",!i.contentTemplate),g(1),m("ngIf",!i.contentTemplate&&i.badge))},directives:[ui,lt,Je,Ot,Me],encapsulation:2,changeDetection:0}),t})(),Sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn]]}),t})();const CB=["input"],S1=function(){return{"p-
inputnumber-button p-inputnumber-button-up":!0}},T1=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function DB(t,n){if(1&t){const e=z();h(0,"span",5),h(1,"button",6),M("mousedown",function(r){return C(e),f().onUpButtonMouseDown(r)})("mouseup",function(){return C(e),f().onUpButtonMouseUp()})("mouseleave",function(){return C(e),f().onUpButtonMouseLeave()})("keydown",function(r){return C(e),f().onUpButtonKeyDown(r)})("keyup",function(){return C(e),f().onUpButtonKeyUp()}),p(),h(2,"button",6),M("mousedown",function(r){return C(e),f().onDownButtonMouseDown(r)})("mouseup",function(){return C(e),f().onDownButtonMouseUp()})("mouseleave",function(){return C(e),f().onDownButtonMouseLeave()})("keydown",function(r){return C(e),f().onDownButtonKeyDown(r)})("keyup",function(){return C(e),f().onDownButtonKeyUp()}),p(),p()}if(2&t){const e=f();g(1),ge(e.incrementButtonClass),m("ngClass",Tn(10,S1))("icon",e.incrementButtonIcon)("disabled",e.disabled),g(1),ge(e.decrementButtonC
lass),m("ngClass",Tn(11,T1))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function SB(t,n){if(1&t){const e=z();h(0,"button",6),M("mousedown",function(r){return C(e),f().onUpButtonMouseDown(r)})("mouseup",function(){return C(e),f().onUpButtonMouseUp()})("mouseleave",function(){return C(e),f().onUpButtonMouseLeave()})("keydown",function(r){return C(e),f().onUpButtonKeyDown(r)})("keyup",function(){return C(e),f().onUpButtonKeyUp()}),p()}if(2&t){const e=f();ge(e.incrementButtonClass),m("ngClass",Tn(5,S1))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function TB(t,n){if(1&t){const e=z();h(0,"button",6),M("mousedown",function(r){return C(e),f().onDownButtonMouseDown(r)})("mouseup",function(){return C(e),f().onDownButtonMouseUp()})("mouseleave",function(){return C(e),f().onDownButtonMouseLeave()})("keydown",function(r){return C(e),f().onDownButtonKeyDown(r)})("keyup",function(){return C(e),f().onDownButtonKeyUp()}),p()}if(2&t){const e=f();ge(e.decrementButtonClass),m("ngC
lass",Tn(5,T1))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const EB=function(t,n,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":n,"p-inputnumber-buttons-vertical":e}},xB={provide:Ht,useExisting:xe(()=>E1),multi:!0};let E1=(()=>{class t{constructor(e,i){this.el=e,this.cd=i,this.showButtons=!1,this.format=!0,this.buttonLayout="stacked",this.incrementButtonIcon="pi pi-angle-up",this.decrementButtonIcon="pi pi-angle-down",this.readonly=!1,this.step=1,this.allowEmpty=!0,this.mode="decimal",this.useGrouping=!0,this.onInput=new R,this.onFocus=new R,this.onBlur=new R,this.onKeyDown=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.groupChar="",this.prefixChar="",this.suffixChar=""}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDig
its","maxFractionDigits","prefix","suffix"].some(r=>!!e[r])&&this.updateConstructParser()}ngOnInit(){this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(e.map((r,s)=>[r,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=r=>i.get(r)}updateConstructParser(){this.initialized&&this.constructParser()}
escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,Object.assign(Object.assign({},this.getOptions()),{useGrouping:!1}));return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return
new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(r=this.prefix+r),this.suffix&&(r+=this.suffix),r}return e.toString()}return""}parseValue(e){let i=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").
replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(i){if("-"===i)return i;let r=+i;return isNaN(r)?null:r}return null}repeat(e,i,r){if(this.readonly)return;let s=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,r)},s),this.spin(e,r)}spin(e,i){let r=this.step*i,s=this.parseValue(this.input.nativeElement.value)||0,o=this.validateValue(s+r);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,s,o))}onUpButtonMouseDown(e){this.input.nativeElement.focus(),this.repeat(e,null,1),e.preventDefault()}onUpButtonMouseUp(){this.clearTimer()}onUpButtonMouseLeave(){this.clearTimer()}onUpButtonKeyDown(e){(32===e.keyCode||13===e.keyCode)&&this.repeat(e,null,1)}onUpButtonKeyUp(){this.clearTimer()}onDownButtonMouseDown(e){this.input.nativeElement.focus(),this.repeat(e,null,-1),e.preventDefault()}onDownBu
ttonMouseUp(){this.clearTimer()}onDownButtonMouseLeave(){this.clearTimer()}onDownButtonKeyUp(){this.clearTimer()}onDownButtonKeyDown(e){(32===e.keyCode||13===e.keyCode)&&this.repeat(e,null,-1)}onUserInput(e){this.readonly||(this.isSpecialChar&&(e.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(e){if(this.readonly)return;if(this.lastValue=e.target.value,e.shiftKey||e.altKey)return void(this.isSpecialChar=!0);let i=e.target.selectionStart,r=e.target.selectionEnd,s=e.target.value,o=null;switch(e.altKey&&e.preventDefault(),e.which){case 38:this.spin(e,1),e.preventDefault();break;case 40:this.spin(e,-1),e.preventDefault();break;case 37:this.isNumeralChar(s.charAt(i-1))||e.preventDefault();break;case 39:this.isNumeralChar(s.charAt(i))||e.preventDefault();break;case 13:o=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(o),this.input.nativeElement.setAttribute("aria-valuenow",o),this.updateModel(e,o);break
;case 8:if(e.preventDefault(),i===r){const a=s.charAt(i-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,o=s.slice(0,i-2)+s.slice(i-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input.nativeElement.setSelectionRange(i-1,i-1):o=s.slice(0,i-1)+s.slice(i);else if(l>0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)<u?"":"0";o=s.slice(0,i-1)+d+s.slice(i)}else 1===c?(o=s.slice(0,i-1)+"0"+s.slice(i),o=this.parseValue(o)>0?o:""):o=s.slice(0,i-1)+s.slice(i)}this.updateValue(e,o,null,"delete-single")}else o=this.deleteRange(s,i,r),this.updateValue(e,o,null,"delete-range");break;case 46:if(e.preventDefault(),i===r){const a=s.charAt(i),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex
=0,o=s.slice(0,i)+s.slice(i+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input.nativeElement.setSelectionRange(i+1,i+1):o=s.slice(0,i)+s.slice(i+1);else if(l>0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)<u?"":"0";o=s.slice(0,i)+d+s.slice(i+1)}else 1===c?(o=s.slice(0,i)+"0"+s.slice(i+1),o=this.parseValue(o)>0?o:""):o=s.slice(0,i)+s.slice(i+1)}this.updateValue(e,o,null,"delete-back-single")}else o=this.deleteRange(s,i,r),this.updateValue(e,o,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let i=e.which||e.keyCode,r=String.fromCharCode(i);const s=this.isDecimalSign(r),o=this.isMinusSign(r);(48<=i&&i<=57||o||s)&&this.insert(e,r,{isDecimalSign:s,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let i=(e.clipboardData||window.clipboardData).getData("Text");if(i){let r=this.parseValue(i);null!=r&&this.insert(e,r.toString())}}}allowMinusSign(){return null==this.m
in||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const i=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const o=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:r,suffixCharIndex:s,currencyCharIndex:o}}insert(e,i,r={isDecimalSign:!1,isMinusSign:!1}){const s=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let
o=this.input.nativeElement.selectionStart,a=this.input.nativeElement.selectionEnd,l=this.input.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:d,currencyCharIndex:_}=this.getCharIndexes(l);let y;if(r.isMinusSign)0===o&&(y=l,(-1===u||0!==a)&&(y=this.insertText(l,i,0,a)),this.updateValue(e,y,i,"insert"));else if(r.isDecimalSign)c>0&&o===c?this.updateValue(e,l,i,"insert"):(c>o&&c<a||-1===c&&this.maxFractionDigits)&&(y=this.insertText(l,i,o,a),this.updateValue(e,y,i,"insert"));else{const b=this.numberFormat.resolvedOptions().maximumFractionDigits,D=o!==a?"range-insert":"insert";if(c>0&&o>c){if(o+i.length-(c+1)<=b){const T=_>=o?_-1:d>=o?d:l.length;y=l.slice(0,o)+i+l.slice(o+i.length,T)+l.slice(T),this.updateValue(e,y,i,D)}}else y=this.insertText(l,i,o,a),this.updateValue(e,y,i,D)}}insertText(e,i,r,s){if(2===("."===i?i:i.split(".")).length){const a=e.slice(r,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,r)+this.formatValue(i)+
e.slice(s):e||this.formatValue(i)}return s-r===e.length?this.formatValue(i):0===r?i+e.slice(s):s===e.length?e.slice(0,r)+i:e.slice(0,r)+i+e.slice(s)}deleteRange(e,i,r){let s;return s=r-i===e.length?"":0===i?e.slice(r):r===e.length?e.slice(0,i):e.slice(0,i)+e.slice(r),s}initCursor(){let e=this.input.nativeElement.selectionStart,i=this.input.nativeElement.value,r=i.length,s=null,o=(this.prefixChar||"").length;i=i.replace(this._prefix,""),e-=o;let a=i.charAt(e);if(this.isNumeralChar(a))return e+o;let l=e-1;for(;l>=0;){if(a=i.charAt(l),this.isNumeralChar(a)){s=l+o;break}l--}if(null!==s)this.input.nativeElement.setSelectionRange(s+1,s+1);else{for(l=e;l<r;){if(a=i.charAt(l),this.isNumeralChar(a)){s=l+o;break}l++}null!==s&&this.input.nativeElement.setSelectionRange(s,s)}return s||0}onInputClick(){this.readonly||this.initCursor()}isNumeralChar(e){return!(1!==e.length||!(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))||(this.resetRegex(),0))}resetR
egex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,i,r,s){let o=this.input.nativeElement.value,a=null;null!=i&&(a=this.parseValue(i),a=a||this.allowEmpty?a:0,this.updateInput(a,r,s,i),this.handleOnInput(e,o,a))}handleOnInput(e,i,r){this.isValueChanged(i,r)&&this.onInput.emit({originalEvent:e,value:r})}isValueChanged(e,i){return null===i&&null!==e||null!=i&&i!==("string"==typeof e?this.parseValue(e):e)}validateValue(e){return"-"===e||null==e?null:null!=this.min&&e<this.min?this.min:null!=this.max&&e>this.max?this.max:e}updateInput(e,i,r,s){i=i||"";let o=this.input.nativeElement.value,a=this.formatValue(e),l=o.length;if(a!==s&&(a=this.concatValues(a,s)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;i
f(this.maxlength&&this.maxlength<a.length)return;this.input.nativeElement.value=a;let d=a.length;if("range-insert"===r){const _=this.parseValue((o||"").slice(0,c)),b=(null!==_?_.toString():"").split("").join(`(${this.groupChar})?`),D=new RegExp(b,"g");D.test(a);const T=i.split("").join(`(${this.groupChar})?`),k=new RegExp(T,"g");k.test(a.slice(D.lastIndex)),u=D.lastIndex+k.lastIndex,this.input.nativeElement.setSelectionRange(u,u)}else if(d===l)"insert"===r||"delete-back-single"===r?this.input.nativeElement.setSelectionRange(u+1,u+1):"delete-single"===r?this.input.nativeElement.setSelectionRange(u-1,u-1):("delete-range"===r||"spin"===r)&&this.input.nativeElement.setSelectionRange(u,u);else if("delete-back-single"===r){let _=o.charAt(u-1),y=o.charAt(u),b=l-d,D=this._group.test(y);D&&1===b?u+=1:!D&&this.isNumeralChar(_)&&(u+=-1*b+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(u,u)}else if("-"===o&&"insert"===r){this.input.nativeElement.setSelectionRange(0,0);cons
t y=this.initCursor()+i.length+1;this.input.nativeElement.setSelectionRange(y,y)}else u+=d-l,this.input.nativeElement.setSelectionRange(u,u)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,i){if(e&&i){let r=i.search(this._decimal);return this._decimal.lastIndex=0,-1!==r?e.split(this._decimal)[0]+i.slice(r):e}return e}getDecimalLength(e){if(e){const i=e.split(this._decimal);if(2===i.length)return i[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1;let i=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(i),this.input.nativeElement.setAttribute("aria-valuenow",i),this.updateModel(e,i),this.onBlur.emit(e)}formattedValue(){return this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,i){this.value!==i&&(this.value=i,this.onModelChange(i)),this.onModelTou
ched()}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get filled(){return null!=this.value&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,i){if(1&e&&He(CB,5),2&e){let r;K(r=Y())&&(i.input=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,i){2&e&&si("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focused)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name
:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown"},features:[be([xB]),gt],decls:6,vars:31,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-button-group",4,"ngIf"],
["type","button","pButton","",3,"ngClass","class","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,i){1&e&&(h(0,"span",0),h(1,"input",1,2),M("input",function(s){return i.onUserInput(s)})("keydown",function(s){return i.onInputKeyDown(s)})("keypress",function(s){return i.onInputKeyPress(s)})("paste",function(s){return i.onPaste(s)})("click",function(){return i.onInputClick()})("focus",function(s){return i.onInputFocus(s)})("blur",function(s){return i.onInputBlur(s)}),p(),v(3,DB,3,12,"span",3),v(4,SB,1,6,"button",4),v(5,TB,1,6,"button",4),p()),2&e&&(ge(i.styleClass),m("ngClass",xs(27,EB,i.showButtons&&"stacked"===i.buttonLayout,i.showButtons&&"horizontal"===i.buttonLayout,i.showButtons&&"vertical"===i.buttonLayout))("ngStyle",i.style),g(1),ge(i.inputStyleClass),m("ngClass","p-inputnumber-i
nput")("ngStyle",i.inputStyle)("value",i.formattedValue())("disabled",i.disabled)("readonly",i.readonly),q("placeholder",i.placeholder)("title",i.title)("id",i.inputId)("size",i.size)("name",i.name)("autocomplete",i.autocomplete)("maxlength",i.maxlength)("tabindex",i.tabindex)("aria-label",i.ariaLabel)("aria-required",i.ariaRequired)("required",i.required)("aria-valuemin",i.min)("aria-valuemax",i.max),g(2),m("ngIf",i.showButtons&&"stacked"===i.buttonLayout),g(1),m("ngIf",i.showButtons&&"stacked"!==i.buttonLayout),g(1),m("ngIf",i.showButtons&&"stacked"!==i.buttonLayout))},directives:[Je,lt,fB,Me,Df],styles:["p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{borde
r-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumbe
r-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),Sf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,D1,Sa]]}),t})();function IB(t,n){1&t&&H(0)}const Tf=function(t){return{$implicit:t}};function kB(t,n){if(1&t&&(h(0,"div",15),v(1,IB,1,0,"ng-container",16),p()),2&t){const e=f(2);g(1),m("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",G(2,Tf,e.paginatorState))}}function MB(t,n){
if(1&t&&(h(0,"span",17),E(1),p()),2&t){const e=f(2);g(1),le(e.currentPageReport)}}const Kc=function(t){return{"p-disabled":t}};function OB(t,n){if(1&t){const e=z();h(0,"button",18),M("click",function(r){return C(e),f(2).changePageToFirst(r)}),I(1,"span",19),p()}if(2&t){const e=f(2);m("disabled",e.isFirstPage()||e.empty())("ngClass",G(2,Kc,e.isFirstPage()||e.empty()))}}const RB=function(t){return{"p-highlight":t}};function AB(t,n){if(1&t){const e=z();h(0,"button",22),M("click",function(r){const o=C(e).$implicit;return f(3).onPageLinkClick(r,o-1)}),E(1),p()}if(2&t){const e=n.$implicit,i=f(3);m("ngClass",G(2,RB,e-1==i.getPage())),g(1),le(e)}}function PB(t,n){if(1&t&&(h(0,"span",20),v(1,AB,2,4,"button",21),p()),2&t){const e=f(2);g(1),m("ngForOf",e.pageLinks)}}function FB(t,n){1&t&&E(0),2&t&&le(f(3).currentPageReport)}function LB(t,n){if(1&t){const e=z();h(0,"p-dropdown",23),M("onChange",function(r){return C(e),f(2).onPageDropdownChange(r)}),v(1,FB,1,1,"ng-template",24),p()}if(2&t){const
e=f(2);m("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function NB(t,n){if(1&t){const e=z();h(0,"button",25),M("click",function(r){return C(e),f(2).changePageToLast(r)}),I(1,"span",26),p()}if(2&t){const e=f(2);m("disabled",e.isLastPage()||e.empty())("ngClass",G(2,Kc,e.isLastPage()||e.empty()))}}function VB(t,n){if(1&t){const e=z();h(0,"p-inputNumber",27),M("ngModelChange",function(r){return C(e),f(2).changePage(r-1)}),p()}if(2&t){const e=f(2);m("ngModel",e.currentPage())("disabled",e.empty())}}function BB(t,n){1&t&&H(0)}function HB(t,n){if(1&t&&v(0,BB,1,0,"ng-container",16),2&t){const e=n.$implicit;m("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",G(2,Tf,e))}}function zB(t,n){1&t&&(pe(0),v(1,HB,1,4,"ng-template",30),fe())}function jB(t,n){if(1&t){const e=z();h(0,"p-dropdown",28),M("ngModelChange",function(r){return C(e),f(2).rows=r})("onChange",function(r){return C(e
),f(2).onRppChange(r)}),v(1,zB,2,0,"ng-container",29),p()}if(2&t){const e=f(2);m("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),g(1),m("ngIf",e.dropdownItemTemplate)}}function UB(t,n){1&t&&H(0)}function $B(t,n){if(1&t&&(h(0,"div",31),v(1,UB,1,0,"ng-container",16),p()),2&t){const e=f(2);g(1),m("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",G(2,Tf,e.paginatorState))}}function GB(t,n){if(1&t){const e=z();h(0,"div",1),v(1,kB,2,4,"div",2),v(2,MB,2,1,"span",3),v(3,OB,2,4,"button",4),h(4,"button",5),M("click",function(r){return C(e),f().changePageToPrev(r)}),I(5,"span",6),p(),v(6,PB,2,1,"span",7),v(7,LB,2,5,"p-dropdown",8),h(8,"button",9),M("click",function(r){return C(e),f().changePageToNext(r)}),I(9,"span",10),p(),v(10,NB,2,4,"button",11),v(11,VB,1,2,"p-inputNumber",12),v(12,jB,2,6,"p-dropdown",13),v(13,$B,2,4,"div",14),p()}if(2&t){const e=f();ge(e.styleClass),m("ngStyle",e.style)(
"ngClass","p-paginator p-component"),g(1),m("ngIf",e.templateLeft),g(1),m("ngIf",e.showCurrentPageReport),g(1),m("ngIf",e.showFirstLastIcon),g(1),m("disabled",e.isFirstPage()||e.empty())("ngClass",G(17,Kc,e.isFirstPage()||e.empty())),g(2),m("ngIf",e.showPageLinks),g(1),m("ngIf",e.showJumpToPageDropdown),g(1),m("disabled",e.isLastPage()||e.empty())("ngClass",G(19,Kc,e.isLastPage()||e.empty())),g(2),m("ngIf",e.showFirstLastIcon),g(1),m("ngIf",e.showJumpToPageInput),g(1),m("ngIf",e.rowsPerPageOptions),g(1),m("ngIf",e.templateRight)}}let x1=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new R,this.alwaysShow=!0,this.dropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.totalRecords=0,this.rows=0,this.showPageLinks=!0,this._first=0,this._page=0}ngOnInit(){this.updatePaginatorState()}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.up
dateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}get first(){return this._first}set first(e){this._first=e}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(e),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),i=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.getPage()-i/2)),s=Math.min(e-1,r+i-1);return r=Math.max(0,r-(this.pageLinkSize-(s-r+1))),[r,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculateP
ageLinkBoundaries(),r=e[1];for(let s=e[0];s<=r;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s<this.getPageCount();s++)this.pageItems.push({label:String(s+1),value:s})}}changePage(e){var i=this.getPageCount();if(e>=0&&e<i){this._first=this.rows*e;var r={page:e,first:this.first,rows:this.rows,pageCount:i};this.updatePageLinks(),this.onPageChange.emit(r),this.updatePaginatorState()}}updateFirst(){const e=this.getPage();e>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,i){this.changePage(i),e.preventDe
fault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}}return t.\u0275fac=function(e){return new(e||t)(w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLe
ft:"templateLeft",templateRight:"templateRight",dropdownAppendTo:"dropdownAppendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[gt],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p
-paginator-icon","pi","pi-angle-left"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-right"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi",
"pi-angle-double-left"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-right"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(e,i){1&e&&v(0,GB,14,21,"div",0),2&e&&m("ngIf",!!i.alwaysShow||i.pageLinks&&i.pageLinks.length>1)},directives:[Me,lt,Je,ui,Ot,Mt,C1,rc,Vs
,Ct,E1],styles:[".p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),I1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Cf,Sf,gc,Et,hn],Cf,Sf,gc,Et]}),t})();function WB(t,n){if(1&t&&(h(0,"div",10),h(1,"div",11),I(2,"i"),p(),p()),2&t){const e=f();g(2),ge("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function qB(t,n){1&t&&H(0)}function KB(t,n){if(1&t&&(h(0,"div",12),ot(1),v(2,qB,1,0,"ng-container",13),p()),2&t){const e=f()
;g(2),m("ngTemplateOutlet",e.headerTemplate)}}function YB(t,n){if(1&t){const e=z();h(0,"p-paginator",14),M("onPageChange",function(r){return C(e),f().paginate(r)}),p()}if(2&t){const e=f();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)}}function QB(t,n){1&t&&H(0)}const ZB=function(t,n){return{$implicit:t,rowIndex:n}};function JB(t,n){if(1&t&&v(0,QB,1,0,"ng-container",15),2&t){const e=n.$implicit,i
=n.index;m("ngTemplateOutlet",f().itemTemplate)("ngTemplateOutletContext",it(2,ZB,e,i))}}function XB(t,n){if(1&t&&(pe(0),E(1),fe()),2&t){const e=f(2);g(1),De(" ",e.emptyMessageLabel," ")}}function eH(t,n){1&t&&H(0,null,19)}function tH(t,n){if(1&t&&(h(0,"div",16),h(1,"div",17),v(2,XB,2,1,"ng-container",18),v(3,eH,2,0,"ng-container",13),p(),p()),2&t){const e=f();g(2),m("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),g(1),m("ngTemplateOutlet",e.emptyMessageTemplate)}}function nH(t,n){if(1&t){const e=z();h(0,"p-paginator",20),M("onPageChange",function(r){return C(e),f().paginate(r)}),p()}if(2&t){const e=f();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReport
Template",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)}}function iH(t,n){1&t&&H(0)}function rH(t,n){if(1&t&&(h(0,"div",21),ot(1,1),v(2,iH,1,0,"ng-container",13),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.footerTemplate)}}const sH=[[["p-header"]],[["p-footer"]]],oH=function(t,n){return{"p-dataview p-component":!0,"p-dataview-list":t,"p-dataview-grid":n}},aH=["p-header","p-footer"];let lH=(()=>{class t{constructor(e,i,r,s){this.el=e,this.cd=i,this.filterService=r,this.config=s,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new R,this.trackBy=(o,a)=>a,
this.loadingIcon="pi pi-spinner",this.first=0,this.onPage=new R,this.onSort=new R,this.onChangeLayout=new R,this._layout="list"}get layout(){return this._layout}set layout(e){this._layout=e,this.initialized&&this.changeLayout(e)}ngOnInit(){this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}ngOnChanges(e){e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"listItem":this.listItemTemplate=e.template;break;case"gridItem":this.gridItemTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdown
ItemTemplate=e.template;break;case"empty":this.emptyMessageTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}}),this.updateItemTemplate()}updateItemTemplate(){switch(this.layout){case"list":this.itemTemplate=this.listItemTemplate;break;case"grid":this.itemTemplate=this.gridItemTemplate}}changeLayout(e){this._layout=e,this.onChangeLayout.emit({layout:this.layout}),this.updateItemTemplate(),this.cd.markForCheck()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,i)=>{let r=V.resolveFieldData(e,this.sortField),s=V.resolveFieldData(i,this.sortField),o=null;return o=null==r&&null!=s?-1:null!=r&&nul
l==s?1:null==r&&null==s?0:"string"==typeof r&&"string"==typeof s?r.localeCompare(s):r<s?-1:r>s?1:0,this.sortOrder*o}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Qt.EMPTY_MESSAGE)}filter(e,i="contains"){if(this.filterValue=e,this.value&&this.value.length){let r=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,r,e,i,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}ha
sFilter(){return this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(vt),w(Nc),w(Ai))},t.\u0275cmp=Q({type:t,selectors:[["p-dataView"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Bc,5),Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.header=s.first),K(s=Y())&&(i.footer=s.first),K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{paginator:"paginator",rows:"rows",totalRecords:"totalRecords",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",alwaysShowPaginator:"alwaysShowPaginator",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPag
eLinks:"showPageLinks",lazy:"lazy",emptyMessage:"emptyMessage",style:"style",styleClass:"styleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:"loading",loadingIcon:"loadingIcon",first:"first",sortField:"sortField",sortOrder:"sortOrder",value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[gt],ngContentSelectors:aH,decls:11,vars:19,consts:[[3,"ngClass","ngStyle"],["class","p-dataview-loading",4,"ngIf"],["class","p-dataview-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange",4,"ngIf"],[1,"p-dataview-content"],[1,"p-grid","p-nogutter","grid","grid-nogutter"],["ngFor","",3,
"ngForOf","ngForTrackBy"],["class","p-col col",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange",4,"ngIf"],["class","p-dataview-footer",4,"ngIf"],[1,"p-dataview-loading"],[1,"p-dataview-loading-overlay","p-component-overlay"],[1,"p-dataview-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-col","col"],[1,"p-dataview-empt
ymessage"],[4,"ngIf","ngIfElse"],["emptyFilter",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange"],[1,"p-dataview-footer"]],template:function(e,i){1&e&&(Dn(sH),h(0,"div",0),v(1,WB,3,2,"div",1),v(2,KB,3,1,"div",2),v(3,YB,1,16,"p-paginator",3),h(4,"div",4),h(5,"div",5),v(6,JB,1,5,"ng-template",6),Si(7,"slice"),v(8,tH,4,3,"div",7),p(),p(),v(9,nH,1,16,"p-paginator",8),v(10,rH,3,1,"div",9),p()),2&e&&(ge(i.styleClass),m("ngClass",it(16,oH,"list"===i.layout,"grid"===i.layout))("ngStyle",i.style),g(1),m("ngIf",i.loading),g(1),m("ngIf",i.header||i.headerTemplate),g(1),m("ngIf",i.paginator&&("top"===i.paginatorPosition||"both"==i.paginatorPosition)),g(3),m("ngForOf",i.paginator?function Yv(t,n,e,i,r){con
st s=t+20,o=O(),a=jr(o,s);return Wo(o,s)?Wv(o,$t(),n,a.transform,e,i,r,a):a.transform(e,i,r)}(7,12,i.filteredValue||i.value,i.lazy?0:i.first,(i.lazy?0:i.first)+i.rows):i.filteredValue||i.value)("ngForTrackBy",i.trackBy),g(2),m("ngIf",i.isEmpty()),g(1),m("ngIf",i.paginator&&("bottom"===i.paginatorPosition||"both"==i.paginatorPosition)),g(1),m("ngIf",i.footer||i.footerTemplate))},directives:[Je,lt,Me,Mt,Ot,x1],pipes:[dw],styles:[".p-dataview{position:relative}.p-dataview .p-dataview-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}\n"],encapsulation:2,changeDetection:0}),t})(),cH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Et,I1],Et]}),t})(),uH=(()=>{class t{constructor(){}ngOnInit(){}toLocalShortTime(e){let s,i=new Date(e),r="AM",o=i.getMinutes().toString().padStart(2,"0"),a=i.getHours();return s=0==a?12:a>12?a-12:a,a>=12&&(r="PM"),s+":"+o+" "+r}segmentToStartTime
(e){let i=new Date(this.startTime);const r=18e5*e,s=new Date(i.getTime()+r);return this.toLocalShortTime(s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-guide-timebar"]],inputs:{startTime:"startTime"},decls:11,vars:4,consts:[[1,"flex","flex-row","timebarbox"],[1,"col-1","datebox"],[1,"col","segmentbox"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"div",1),E(2,"Today"),p(),h(3,"div",2),E(4),p(),h(5,"div",2),E(6),p(),h(7,"div",2),E(8),p(),h(9,"div",2),E(10),p(),p()),2&e&&(g(4),le(i.segmentToStartTime(0)),g(2),le(i.segmentToStartTime(1)),g(2),le(i.segmentToStartTime(2)),g(2),le(i.segmentToStartTime(3)))},styles:[".timebarbox[_ngcontent-%COMP%]{display:block;grid-template-columns:90px auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{float:left;padding:5px 8px 4px 7px;color:#fdf6e3;background:linear-gradient(to bottom,#777777 1%,#555555 20%,#222222 99%);border-radius:10px 10px 0 0/10px 10px 0px 0px}.segmentsbox[_ngcontent-
%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100% - 91px)}.segmentbox[_ngcontent-%COMP%]{float:left;width:25%;padding:5px 8px 4px 7px;color:#fdf6e3;height:auto;background:linear-gradient(to bottom,#777777 1%,#555555 20%,#222222 99%);border-radius:10px 10px 0 0/10px 10px 0px 0px}"]}),t})(),dH=(()=>{class t{constructor(){}ngOnInit(){}IconUrl(e){return null==e||0==e.length?"/images/tv/channel_icon.svg":e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel"},decls:6,vars:3,consts:[[1,"flex","flex-column"],[1,"channelIcon"],["height","57",3,"alt","src"],[1,"channelText"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"div",1),I(2,"img",2),p(),h(3,"div",3),h(4,"span"),E(5),p(),p(),p()),2&e&&(g(2),un("alt","",i.channel.IconURL," Icon"),Cl("src",i.IconUrl(i.channel.IconURL),yi),g(3),le(i.channel.CallSign))},styles:[".channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin
-left:4px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 3px}"]}),t})();function hH(t,n){if(1&t&&(h(0,"div"),h(1,"div",5),E(2),p(),p()),2&t){const e=f();g(2),le(e.program.SubTitle)}}let pH=(()=>{class t{constructor(){}ngOnInit(){}durationToWidth(){let e=new Date(this.program.StartTime),i=new Date(this.program.EndTime),r=new Date(this.guideStartTime),s=new Date(this.guideEndTime),l=e<r?r:e,c=i>s?s:i,u=s.getTime()-r.getTime();return(c.getTime()-l.getTime())/u*100}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",guideStartTime:"guideStartTime",guideEndTime:"guideEndTime"},decls:7,vars:5,consts:[[1,"programBox"],[1,"programTitle"],[1,"programBody"],[4,"ngIf"],[1,"programDescription"],[1,"programSubtitle"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"div",1),
E(2),p(),h(3,"div",2),v(4,hH,3,1,"div",3),h(5,"div",4),E(6),p(),p(),p()),2&e&&(wi("width",i.durationToWidth(),"%"),g(2),le(i.program.Title),g(2),m("ngIf",0!=i.program.SubTitle.length),g(2),le(i.program.Description))},directives:[Me],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:80px;padding:0 0 0 2px;background-color:#586e75;border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-%COMP%]{padding:5px 8px 4px 7px;color:#fdf6e3;width:100%;height:28px;background:linear-gradient(to bottom,#777777 1%,#555555 20%,#222222 99%);border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;z-index:4;position:relative;float:left;font-size:1.1em;white-space:nowrap;font-weight:700;overflow:hidden;text-overflow:ellipsis}.programBody[_ngcontent-%COMP%]{margin:3px 5px 4px;padding:0 0 0 2px;color:#eee8d5;height:45px;z-index:5}.programSubtitle[_ngcontent-%COMP%]{color:#268bd2;position:relative;font-weight:700;margin-right:5px;z-index:1px;line-he
ight:15px}.programDescription[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]}),t})(),fH=(()=>{class t{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-progressSpinner"]],hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration"},decls:3,vars:6,consts:[["role","alert","aria-busy","true",1,"p-progress-spinner",3,"ngStyle","ngClass"],["viewBox","25 25 50 50",1,"p-progress-spinner-svg"],["cx","50","cy","50","r","20","stroke-miterlimit","10",1,"p-progress-spinner-circle"]],template:function(e,i){1&e&&(h(0,"div",0),function $g(){ne.lFrame.currentNamespace=kg}(),h(1,"svg",1),I(2,"circle",2),p(),p()),2&e&&(m("ngStyle",i.style)("ngClass",i.styleClass),g(1),wi("animation-duration",i.animationDuration),g(1),q("fill",i.fill)("stroke-width",i.strokeWidth))},directives:[lt
,Je],styles:['.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n'],encapsulation:2,changeDetection
:0}),t})(),gH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();function mH(t,n){if(1&t&&(h(0,"div",5),E(1," Time Selector goes here "),p(),I(2,"app-guide-timebar",6)),2&t){const e=f().ngIf;g(2),m("startTime",e.StartTime)}}function _H(t,n){if(1&t&&(h(0,"div"),I(1,"app-guide-programentry",13),p()),2&t){const e=f().$implicit,i=f(2).ngIf;g(1),m("program",e)("guideStartTime",i.StartTime)("guideEndTime",i.EndTime)}}function yH(t,n){if(1&t&&(pe(0),v(1,_H,2,3,"div",12),fe()),2&t){const e=n.$implicit,i=f(2).ngIf,r=f();g(1),m("ngIf",r.inDisplayWindow(e.StartTime,i.EndTime))}}function vH(t,n){if(1&t&&(h(0,"div",7),h(1,"div",8),I(2,"app-guide-channelicon",9),p(),h(3,"div",10),v(4,yH,2,1,"ng-container",11),p(),p()),2&t){const e=n.$implicit;g(2),m("channel",e),g(2),m("ngForOf",e.Programs)}}function bH(t,n){if(1&t&&(h(0,"div"),h(1,"p-dataView",2),v(2,mH,3,1,"ng-template",3),v(3,vH,5,2,"ng-template",4),p(),p()),2&t){const
e=n.ngIf;g(1),m("value",e.Channels)("totalRecords",e.TotalAvailable)}}const wH=function(){return{width:"30px",height:"30px"}};function CH(t,n){1&t&&I(0,"p-progressSpinner"),2&t&&Sn(Tn(2,wH))}let DH=(()=>{class t{constructor(e){this.guideService=e,this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10}ngOnInit(){this.m_guideData$=this.guideService.GetProgramGuide().pipe(Re(e=>console.log(e)),Re(e=>this.m_channelData=e.ProgramGuide.Channels),Re(e=>this.m_channelTotal=e.ProgramGuide.TotalAvailable))}loadData(e){console.log(e),this.m_guideData$=this.guideService.GetProgramGuide().pipe(Re(i=>console.log(i)),Re(i=>this.m_channelData=i.ProgramGuide.Channels),Re(i=>this.m_channelTotal=i.ProgramGuide.TotalAvailable))}inDisplayWindow(e,i){return new Date(e)<new Date(i)}}return t.\u0275fac=function(e){return new(e||t)(w(yV))},t.\u0275cmp=Q({type:t,selectors:[["app-guide"]],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"value","totalRecords"],["pTemplate","header"],["pTemp
late","listItem"],[1,"col-12","right-align"],[3,"startTime"],[1,"flex","flex-row","col-12"],[1,"col-1"],[3,"channel"],[1,"flex-auto"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"program","guideStartTime","guideEndTime"]],template:function(e,i){if(1&e&&(v(0,bH,4,2,"div",0),Si(1,"async"),v(2,CH,1,3,"ng-template",null,1,ze)),2&e){const r=he(3);let s;m("ngIf",null==(s=Ki(1,2,i.m_guideData$))?null:s.ProgramGuide)("ngIfElse",r)}},directives:[Me,lH,Ct,uH,dH,Mt,pH,fH],pipes:[Kl],styles:[".channelRow[_ngcontent-%COMP%]{display:block;grid-template-columns:90px auto;width:100%;height:82px;padding-bottom:2px}"]}),t})(),SH=(()=>{class t{constructor(e){this.httpClient=e}GetBackendStatus(){return this.httpClient.get("/Status/GetBackendStatus")}}return t.\u0275fac=function(e){return new(e||t)(P(Fs))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Rn=(()=>(function(t){t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_Watchin
gLiveTV",t[t.kState_WatchingPreRecorded=2]="kState_WatchingPreRecorded",t[t.kState_WatchingVideo=3]="kState_WatchingVideo",t[t.kState_WatchingDVD=4]="kState_WatchingDVD",t[t.kState_WatchingBD=5]="kState_WatchingBD",t[t.kState_WatchingRecording=6]="kState_WatchingRecording",t[t.kState_RecordingOnly=7]="kState_RecordingOnly",t[t.kState_ChangingState=8]="kState_ChangingState"}(Rn||(Rn={})),Rn))();function TH(t,n){if(1&t&&(h(0,"div"),h(1,"ul"),h(2,"li"),E(3),p(),p(),p()),2&t){const e=n.$implicit;g(3),ws("Card: ",e.CardId,", Input: ",e.Id," is ",e.InputName,", displayname: ",e.DisplayName," ")}}function EH(t,n){if(1&t&&(h(0,"div"),h(1,"ul"),h(2,"li"),E(3),p(),v(4,TH,4,4,"div",3),p(),p()),2&t){const e=n.$implicit,i=f(2);g(3),qi("Encoder ",e.Id," is on host ",e.HostName,", State: ",i.EncoderStatusText(e.State)," "),g(1),m("ngForOf",e.Inputs)}}function xH(t,n){if(1&t&&(h(0,"div"),v(1,EH,5,4,"div",3),p()),2&t){const e=f();g(1),m("ngForOf",e.encoders)}}function IH(t,n){1&t&&(h(0,"div"),E(1,"B
ackend has no encoders"),p())}let kH=(()=>{class t{constructor(){}ngOnInit(){}EncoderStatusText(e){switch(e){case Rn.kState_Error:return"Error";case Rn.kState_None:return"Idle";case Rn.kState_WatchingLiveTV:return"Watching Live TV";case Rn.kState_WatchingPreRecorded:return"Watching Pre Recorded";case Rn.kState_WatchingVideo:return"Watching Video";case Rn.kState_WatchingDVD:return"Watching DVD";case Rn.kState_WatchingBD:return"Watching BD";case Rn.kState_WatchingRecording:return"Recording";case Rn.kState_ChangingState:return"Changing State";default:return"unknown"}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-encoders"]],inputs:{encoders:"encoders"},decls:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncoders",""],[4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"h2"),E(2,"Encoder Status"),p(),v(3,xH,2,1,"div",1),p(),v(4,IH,2,0,"ng-template",null,2,ze)),2&e){const r=he(5);g(3),m("ngIf",0!=(null==i.
encoders?null:i.encoders.length))("ngIfElse",r)}},directives:[Me,Mt],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function MH(t,n){if(1&t&&(h(0,"li",4),E(1),p()),2&t){const e=n.$implicit;Cl("pTooltip",e.Description),g(1),ws(" ",e.StartTime," - ",e.Recording.EncoderId," - ",e.Channel.CallSign," - ",e.Title," ")}}function OH(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),h(3,"ul"),v(4,MH,2,5,"li",3),p(),p()),2&t){const e=f();g(2),De("The next ",null==e.scheduled?null:e.scheduled.length," show(s) that are scheduled for recording."),g(2),m("ngForOf",e.scheduled)}}function RH(t,n){1&t&&(h(0,"p"),E(1,"Nothing scheduled to record"),p())}let AH=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["a
pp-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["pTooltipPosition","below",3,"pTooltip",4,"ngFor","ngForOf"],["pTooltipPosition","below",3,"pTooltip"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"h2"),E(2,"Schedule"),p(),v(3,OH,5,2,"div",1),p(),v(4,RH,2,0,"ng-template",null,2,ze)),2&e){const r=he(5);g(3),m("ngIf",0!=(null==i.scheduled?null:i.scheduled.length))("ngIfElse",r)}},directives:[Me,Mt,Hc],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function PH(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.$implicit,i=f(2);g(2),ws("",e.StatusTime," - ",e.Program.Title," - ",i.JobTypeText(e.Type)," - Status: ",i.JobStatusText(e.Status)," ")}}function FH(t,n){i
f(1&t&&(h(0,"div"),h(1,"p"),E(2,"Jobs currently in Queue or recently ended:"),p(),h(3,"ul"),v(4,PH,3,4,"div",3),p(),p()),2&t){const e=f();g(4),m("ngForOf",e.jobqueue)}}function LH(t,n){1&t&&(h(0,"p"),E(1,"Job queue is currently empty"),p())}let NH=(()=>{class t{constructor(){}ngOnInit(){}JobStatusText(e){switch(e){case 1:return"Queued";case 2:return"Pending";case 3:return"Starting";case 4:return"Running";case 5:return"Stopping";case 6:return"Paused";case 7:return"Retry";case 8:return"Erroring";case 9:return"Aborting";case 256:return"Done (Invalid Status!)";case 272:return"Finished";case 288:return"Aborted";case 304:return"Errored";case 320:return"Cancelled";default:return"Unknown"}}JobTypeText(e){switch(e){case 1:return"Transcode";case 2:return"Commflag";case 4:return"Lookup Metadata";case 8:return"Preview Generation";default:return"Unknown"}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls
:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"h2"),E(2,"Job queue"),p(),v(3,FH,5,1,"div",1),p(),v(4,LH,2,0,"ng-template",null,2,ze)),2&e){const r=he(5);g(3),m("ngIf",0!=(null==i.jobqueue?null:i.jobqueue.length))("ngIfElse",r)}},directives:[Me,Mt],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function VH(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2,"Disk Usage Summary:"),p(),h(3,"ul"),h(4,"li"),E(5,"Total Disk Space:"),p(),h(6,"ul"),h(7,"li"),E(8),p(),h(9,"li"),E(10),p(),h(11,"li"),E(12),p(),h(13,"li"),E(14),p(),h(15,"ul"),h(16,"li"),E(17),p(),h(18,"li"),E(19),p(),h(20,"li"),E(21),p(),p(),p(),p(),p()),2&t){const e=n.ngIf;g(8),De("Total Space: ",e.Total,""),g(2),De("Space
Used: ",e.Used,""),g(2),De("Space Free: ",e.Free,""),g(2),De("Space Available after Auto-expire: ",e.Free+e.Expirable,""),g(3),De("Space Used by LiveTV: ",e.LiveTV,""),g(2),De("Space Used by Deleted Recordings: ",e.Deleted,""),g(2),De("Space Used by Auto-expirable Recordings: ",e.Expirable,"")}}function BH(t,n){1&t&&H(0)}function HH(t,n){if(1&t&&(h(0,"div"),v(1,BH,1,0,"ng-container",6),p()),2&t){const e=n.$implicit;f(2);const i=he(9);g(1),m("ngTemplateOutlet",i)("ngTemplateOutletContext",e)}}function zH(t,n){if(1&t&&(h(0,"div"),h(1,"div"),h(2,"p"),E(3,"This machine's load average"),p(),h(4,"ul"),h(5,"li"),E(6),p(),h(7,"li"),E(8),p(),h(9,"li"),E(10),p(),p(),p(),v(11,VH,22,7,"div",1),h(12,"div"),h(13,"p"),E(14,"Disk Usage Details:"),p(),v(15,HH,2,2,"div",5),p(),p()),2&t){const e=f(),i=he(7);g(6),De("1 Minute: ",e.machineinfo.LoadAvg1,""),g(2),De("5 Minutes: ",e.machineinfo.LoadAvg2,""),g(2),De("15 Minutes: ",e.machineinfo.LoadAvg3,""),g(1),m("ngIf",e.getStorageGroupTotal(e.machineinfo
.StorageGroups))("ngIfElse",i),g(4),m("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups))}}function jH(t,n){1&t&&(h(0,"p"),E(1,"No Machine Info available"),p())}function UH(t,n){1&t&&(h(0,"p"),E(1,"No Disk Info available"),p())}function $H(t,n){if(1&t&&(h(0,"ul"),h(1,"li"),E(2),p(),h(3,"ul"),h(4,"li"),E(5),p(),h(6,"li"),E(7),p(),h(8,"li"),E(9),p(),h(10,"li"),E(11),p(),p(),p()),2&t){const e=n.Id,i=n.Directory,r=n.Total,s=n.Used,o=n.Free;g(2),De("MythTV Drive #",e,""),g(3),De("Directories: ",i,""),g(2),De("Total Space: ",r,""),g(2),De("Space Used: ",s,""),g(2),De("Space Free: ",o,"")}}let GH=(()=>{class t{constructor(){}ngOnInit(){}getStorageGroupTotal(e){return e.filter(i=>"total"==i.Id)[0]}getStorageGroupDetails(e){return e.filter(i=>"total"!=i.Id)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"machineinfo"},decls:10,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",
""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"h2"),E(2,"Machine Info"),p(),v(3,zH,16,6,"div",1),p(),v(4,jH,2,0,"ng-template",null,2,ze),v(6,UH,2,0,"ng-template",null,3,ze),v(8,$H,12,5,"ng-template",null,4,ze)),2&e){const r=he(5);g(3),m("ngIf",i.machineinfo)("ngIfElse",r)}},directives:[Me,Mt,Ot],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function WH(t,n){if(1&t&&(h(0,"div"),h(1,"li"),E(2),p(),p()),2&t){const e=n.$implicit;g(2),qi("Backend: ",e.Name," is a ",e.Type," on IP ",e.IP," ")}}function qH(t,n){if(1&t&&(h(0,"div"),h(1,"ul"),v(2,WH,3,3,"div",3),p(),p()),2&t){const e=f();g(2),m("ngForOf",e.backends)}}function KH(t,n){1&t&&(h(0,"p")
,E(1,"No Backends"),p())}let YH=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"p"),E(2,"Backends:"),p(),v(3,qH,3,1,"div",1),p(),v(4,KH,2,0,"ng-template",null,2,ze)),2&e){const r=he(5);g(3),m("ngIf",0!=(null==i.backends?null:i.backends.length))("ngIfElse",r)}},directives:[Me,Mt],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function QH(t,n){if(1&t&&(h(0,"div"),h(1,"li"),E(2),p(),p()),2&t){const e=n.$implicit;g(2),ws("Frontend: ",e.Name,", IP-Port: ",e.IP,":",e.Port,", Online: ",e.On
Line," ")}}function ZH(t,n){if(1&t&&(h(0,"div"),h(1,"ul"),v(2,QH,3,4,"div",3),p(),p()),2&t){const e=f();g(2),m("ngForOf",e.frontends)}}function JH(t,n){1&t&&(h(0,"p"),E(1,"No Frontends"),p())}let XH=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends"},decls:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"p"),E(2,"Frontends:"),p(),v(3,ZH,3,1,"div",1),p(),v(4,JH,2,0,"ng-template",null,2,ze)),2&e){const r=he(5);g(3),m("ngIf",0!=(null==i.frontends?null:i.frontends.length))("ngIfElse",r)}},directives:[Me,Mt],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#ff
f}"]}),t})();function e4(t,n){if(1&t&&(h(0,"div"),I(1,"app-status-encoders",2),I(2,"app-status-scheduled",3),I(3,"app-status-jobqueue",4),I(4,"app-status-machineinfo",5),I(5,"app-status-backends",6),I(6,"app-status-frontends",7),p()),2&t){const e=n.ngIf;g(1),m("encoders",e.Encoders),g(1),m("scheduled",e.Scheduled),g(1),m("jobqueue",e.JobQueue),g(1),m("machineinfo",e.MachineInfo),g(1),m("backends",e.Backends),g(1),m("frontends",e.Frontends)}}function t4(t,n){1&t&&(h(0,"div"),E(1,"Loading..."),p())}let n4=(()=>{class t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus().pipe(Re(e=>console.log("Fetched BackendStatus as of "+e.BackendStatus.AsOf)),Re(e=>console.log(e)))}}return t.\u0275fac=function(e){return new(e||t)(w(SH))},t.\u0275cmp=Q({type:t,selectors:[["app-status"]],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"]],template:fun
ction(e,i){if(1&e&&(v(0,e4,7,6,"div",0),Si(1,"async"),v(2,t4,2,0,"ng-template",null,1,ze)),2&e){const r=he(3);let s;m("ngIf",null==(s=Ki(1,2,i.m_status$))?null:s.BackendStatus)("ngIfElse",r)}},directives:[Me,kH,AH,NH,GH,YH,XH],pipes:[Kl],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function r4(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.ngIf;g(2),De("Welcome to MythTV Backend running on host ",e,"")}}function s4(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.ngIf;g(2),qi("It is currently ",e.CurrentDateTime," in timezone ",e.TimeZoneID,", UTC offset ",e.UTCOffset," hours")}}function o4(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.ngIf;g(2),qi("MythTV version is ",e.Version.Version," from branch ",e.Version.Br
anch," using protocol ",e.Version.Protocol,"")}}function a4(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.ngIf;g(2),De('Setting "SecurityPin" is currently set to "',e,'"')}}function l4(t,n){1&t&&I(0,"div")}function c4(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=f(2);g(2),De("Failed to get connection info: ",e.errorRes.message,"")}}function u4(t,n){1&t&&(h(0,"p"),E(1,"Loading ConnectionInfo..."),p())}function d4(t,n){if(1&t&&(v(0,c4,3,1,"div",0),v(1,u4,2,0,"ng-template",null,2,ze)),2&t){const e=he(2);m("ngIf",f().errorRes)("ngIfElse",e)}}function h4(t,n){1&t&&(h(0,"p"),E(1,"Loading ..."),p())}const p4=[{path:"",component:_V},{path:"status",component:n4},{path:"settings",component:q0},{path:"testbed",component:(()=>{class t{constructor(e,i){this.mythService=e,this.configService=i,this.m_hostName="",this.m_securityPin=""}ngOnInit(){this.m_hostname$=this.mythService.GetHostName().pipe(Re(e=>{console.log(e),this.m_hostName=e.String})),this.m_timezone$=th
is.mythService.GetTimeZone().pipe(Re(e=>console.log(e))),this.m_connectionInfo$=this.mythService.GetConnectionInfo().pipe(Mi(e=>(console.error("error getting connection info",e),this.errorRes=e,hf(e)))),this.m_setting$=this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin"}).pipe(Re(e=>console.log(e))),this.m_databaseStatus$=this.configService.GetDatabaseStatus().pipe(Re(e=>console.log("Database Status: "+e)))}getSecurityPin(){this.m_setting$=this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin"}).pipe(Re(e=>{console.log(e),this.m_securityPin=e.String}))}setSecurityPin(e){this.mythService.PutSetting({HostName:this.m_hostName,Key:"SecurityPin",Value:e}).subscribe(i=>{console.log(i),this.getSecurityPin()})}}return t.\u0275fac=function(e){return new(e||t)(w(pf),w(xr))},t.\u0275cmp=Q({type:t,selectors:[["app-testbed"]],decls:21,vars:20,consts:[[4,"ngIf","ngIfElse"],["loadingOrError",""],["loading",""],[1,"p-2",3,"click"],[3,"click"]],template:function(
e,i){if(1&e&&(h(0,"h1"),E(1,"This screen is a testbed area"),p(),I(2,"hr"),v(3,r4,3,1,"div",0),Si(4,"async"),v(5,s4,3,3,"div",0),Si(6,"async"),v(7,o4,3,3,"div",0),Si(8,"async"),v(9,a4,3,1,"div",0),Si(10,"async"),v(11,l4,1,0,"div",0),Si(12,"async"),v(13,d4,3,2,"ng-template",null,1,ze),v(15,h4,2,0,"ng-template",null,2,ze),h(17,"p-button",3),M("click",function(){return i.setSecurityPin("1234")}),E(18,"Set PIN to 1234"),p(),h(19,"p-button",4),M("click",function(){return i.setSecurityPin("0000")}),E(20,"Set PIN to 0000"),p()),2&e){const r=he(14),s=he(16);let o,a,l,c,u;g(3),m("ngIf",null==(o=Ki(4,10,i.m_hostname$))?null:o.String)("ngIfElse",s),g(2),m("ngIf",null==(a=Ki(6,12,i.m_timezone$))?null:a.TimeZoneInfo)("ngIfElse",s),g(2),m("ngIf",null==(l=Ki(8,14,i.m_connectionInfo$))?null:l.ConnectionInfo)("ngIfElse",r),g(2),m("ngIf",null==(c=Ki(10,16,i.m_setting$))?null:c.String)("ngIfElse",s),g(2),m("ngIf",null==(u=Ki(12,18,i.m_databaseStatus$))?null:u.DatabaseStatus)("ngIfElse",s)}},directives
:[Me,Ks],pipes:[Kl],styles:[""]}),t})()},{path:"guide",component:DH}];let f4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[ir.forRoot(p4)],ir]}),t})();function k1(){return"undefined"!=typeof window&&void 0!==window.document}function Ef(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function sr(t){switch(t.length){case 0:return new Ws;case 1:return t[0];default:return new X0(t)}}function M1(t,n,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,_=d==l,y=_&&c||{};Object.keys(u).forEach(b=>{let D=b,T=u[b];if("offset"!==b)switch(D=n.normalizePropertyName(D,o),T){case"!":T=r[b];break;case Pi:T=s[b];break;default:T=n.normalizeStyleValue(b,D,T,o)}y[D]=T}),_||a.push(y),c=y,l=d}),o.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${o.join(u)}`)}return a}function xf(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&If(e
,"start",t)));break;case"done":t.onDone(()=>i(e&&If(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&If(e,"destroy",t)))}}function If(t,n,e){const i=e.totalTime,s=kf(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(s._data=o),s}function kf(t,n,e,i,r="",s=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function pn(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function O1(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let Mf=(t,n)=>!1,Of=(t,n)=>!1,R1=(t,n,e)=>[];const A1=Ef();(A1||"undefined"!=typeof Element)&&(Mf=k1()?(t,n)=>{for(;n&&n!==document.documentElement;){if(n===t)return!0;n=n.parentNode||n.host}return!1}:(t,n)=>t.contains(n),Of=(()=>{if(A1||Element.prototype.matches)return(t,n)=>t.matches(n);{const t=Element.prototype,n=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oM
atchesSelector||t.webkitMatchesSelector;return n?(e,i)=>n.apply(e,[i]):Of}})(),R1=(t,n,e)=>{let i=[];if(e){const r=t.querySelectorAll(n);for(let s=0;s<r.length;s++)i.push(r[s])}else{const r=t.querySelector(n);r&&i.push(r)}return i});let Mr=null,P1=!1;function Rf(t){Mr||(Mr=function m4(){return"undefined"!=typeof document?document.body:null}()||{},P1=!!Mr.style&&"WebkitAppearance"in Mr.style);let n=!0;return Mr.style&&!function g4(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Mr.style,!n&&P1&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Mr.style)),n}const Af=Of,Pf=Mf,Ff=R1;function F1(t){const n={};return Object.keys(t).forEach(e=>{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");n[i]=t[e]}),n}let L1=(()=>{class t{validateStyleProperty(e){return Rf(e)}matchesElement(e,i){return Af(e,i)}containsElement(e,i){return Pf(e,i)}query(e,i,r){return Ff(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new Ws(r,s)}}return t.\u0275fac=function(e){return new(e||t)},t.
\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),Lf=(()=>{class t{}return t.NOOP=new L1,t})();const Nf="ng-enter",Yc="ng-leave",Qc="ng-trigger",Zc=".ng-trigger",V1="ng-animating",Vf=".ng-animating";function Or(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Bf(parseFloat(n[1]),n[2])}function Bf(t,n){return"s"===n?1e3*t:t}function Jc(t,n,e){return t.hasOwnProperty("duration")?t:function v4(t,n,e){let r,s=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=Bf(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Bf(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push("Duration values below 0 are not allowed for this animation step."),a=!0),s<0&&(n.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&n.splic
e(l,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:s,easing:o}}(t,n,e)}function Ys(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function or(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else Ys(t,e);return e}function H1(t,n,e){return e?n+":"+e+";":""}function z1(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=H1(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=H1(0,C4(e),t.style[e]));t.setAttribute("style",n)}function di(t,n,e){t.style&&(Object.keys(n).forEach(i=>{const r=zf(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[r]),t.style[r]=n[i]}),Ef()&&z1(t))}function Rr(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=zf(e);t.style[i]=""}),Ef()&&z1(t))}function Ta(t){return Array.isArray(t)?1==t.length?t[0]:Q0(t):t}const Hf=new RegExp("{{\\s*(.+?)\\s*}}","g");function j1(t){let n=[];if("string"==typeof t){let e;for(;e=Hf.exec(t);)n.push(e[1]);Hf.lastIndex=0}return n}function X
c(t,n,e){const i=t.toString(),r=i.replace(Hf,(s,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return r==i?t:r}function eu(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const w4=/-+([a-z0-9])/g;function zf(t){return t.replace(w4,(...n)=>n[1].toUpperCase())}function C4(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function U1(t,n){return 0===t||0===n}function $1(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let s=n[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<n.length;r++){let a=n[r];o.forEach(function(l){a[l]=jf(t,l)})}}return n}function fn(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6
:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw new Error(`Unable to resolve animation metadata node #${n.type}`)}}function jf(t,n){return window.getComputedStyle(t)[n]}function D4(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function S4(t,n,e){if(":"==t[0]){const l=function T4(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${t}" is not supported`),n;const r=i[1],s=i[2],o=i[
3];n.push(G1(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&n.push(G1(o,r))}(i,e,n)):e.push(t),e}const nu=new Set(["true","1"]),iu=new Set(["false","0"]);function G1(t,n){const e=nu.has(t)||iu.has(t),i=nu.has(n)||iu.has(n);return(r,s)=>{let o="*"==t||t==r,a="*"==n||n==s;return!o&&e&&"boolean"==typeof r&&(o=r?nu.has(t):iu.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?nu.has(n):iu.has(n)),o&&a}}const E4=new RegExp("s*:selfs*,?","g");function Uf(t,n,e){return new x4(t).build(n,e)}class x4{constructor(n){this._driver=n}build(n,e){const i=new M4(e);return this._resetContextStyleTimingState(i),fn(this,Ta(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){c
onst l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:n.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};if(i.styles.forEach(a=>{if(ru(a)){const l=a;Object.keys(l).forEach(c=>{j1(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size){const a=eu(s.values());e.errors.push(`state("${n.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=fn(this,Ta(n.animation),e);return{type:1,matchers:D4(n.expr,e.errors),an
imation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ar(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>fn(this,i,e)),options:Ar(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const s=n.steps.map(o=>{e.currentTime=i;const a=fn(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Ar(n.options)}}visitAnimate(n,e){const i=function R4(t,n){let e=null;if(t.hasOwnProperty("duration"))e=t;else if("number"==typeof t)return $f(Jc(t,n).duration,0,"");const i=t;if(i.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=$f(0,0,"");return s.dynamic=!0,s.strValue=i,s}return e=e||Jc(i,n),$f(e.duration,e.delay,e.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,s=n.styles?n.styles:Qe({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Qe(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}ret
urn e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==Pi?i.push(o):e.errors.push(`The provided style string value ${o} is not allowed.`):i.push(o)}):i.push(n.styles);let r=!1,s=null;return i.forEach(o=>{if(ru(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQ
uerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function b4(t,n,e){const i=n.params||{},r=j1(t);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(`Unable to resolve the local animation param ${s} in the given list of values`)})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=n.steps.map(k=>{const x=this._makeStyleAst(k,e);let A=null!=x.offset?x.offset:function O4(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(ru(e)&&e.hasOwnProperty("offset")){const i=e;n=parseF
loat(i.offset),delete i.offset}});else if(ru(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(x.styles),F=0;return null!=A&&(s++,F=x.offset=A),l=l||F<0||F>1,a=a||F<c,c=F,o.push(F),x});l&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");const d=n.steps.length;let _=0;s>0&&s<d?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(_=1/(d-1));const y=d-1,b=e.currentTime,D=e.currentAnimateTimings,T=D.duration;return u.forEach((k,x)=>{const A=_>0?x==y?1:_*x:o[x],F=A*T;e.currentTime=b+D.delay+F,D.duration=F,this._validateStyleAst(k,e),k.offset=A,i.styles.push(k)}),i}visitReference(n,e){return{type:8,animation:fn(this,Ta(n.animation),e),options:Ar(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Ar(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e)
,options:Ar(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[s,o]=function I4(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(E4,"")),t=t.replace(/@\*/g,Zc).replace(/(a)\w+/g,e=>Zc+"-"+e.substr(1)).replace(/:animating/g,Vf),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+s:s,pn(e.collectedStyles,e.currentQuerySelector,{});const a=fn(this,Ta(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:Ar(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Jc(n.timings,e.errors,!0);return{type:12,animation:fn(this,Ta(n.animation),e),timings:i,options:null}}}class M4{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransit
ion=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ru(t){return!Array.isArray(t)&&"object"==typeof t}function Ar(t){return t?(t=Ys(t)).params&&(t.params=function k4(t){return t?Ys(t):null}(t.params)):t={},t}function $f(t,n,e){return{duration:t,delay:n,easing:e}}function Gf(t,n,e,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class su{constructor(){this._map=new Map}consume(n){let e=this._map.get(n);return e?this._map.delete(n):e=[],e}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const F4=new RegExp(":enter","g"),N4=new RegExp(":leave","g");function Wf(t,n,e,i,r,s={},o={},a,l,c=[]){return(new V4).buildKeyframes(t,n,e,i,r,s,o,a,l,c)}class V4{buildKeyframes(n,e,i,r,s,o,a,l,c,u=[]){c=c||new su;
const d=new qf(n,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),fn(this,i,d);const _=d.timelines.filter(y=>y.containsAnimation());if(_.length&&Object.keys(a).length){const y=_[_.length-1];y.allowOnlyTimelineStyles()||y.setStyles([a],null,d.errors,l)}return _.length?_.map(y=>y.buildKeyframes()):[Gf(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.consume(e.element);if(i){const r=e.createSubContext(n.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Or(i.duration):null,a=null!=i.delay?Or(i.delay):null;return
0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(n,e){e.updateOptions(n.options,!0),fn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const s=n.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ou);const o=Or(s.delay);r.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>fn(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const s=n.options&&n.options.delay?Or(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);s&&a.delayNextStep(s),fn(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.
transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Jc(e.params?Xc(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=n.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(s):i.setStyles(n.styles,s,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*
s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},s=r.delay?Or(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ou);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),fn(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.pre
viousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,s=n.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;fn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const ou={};class qf{constructor(n,e,i,r,s,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ou,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new au(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this
.options;null!=i.duration&&(r.duration=Or(i.duration)),null!=i.delay&&(r.delay=Or(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Xc(s[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,s=new qf(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(n),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(n){return this.previousNode=ou,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timel
ines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},s=new B4(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,s,o){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(F4,"."+this._enterClassName)).replace(N4,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class au{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelin
eStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&thi
s.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new au(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Pi,this._currentKeyframe[e]=Pi}),thi
s._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function H4(t,n){const e={};let i;return t.forEach(r=>{"*"===r?(i=i||Object.keys(n),i.forEach(s=>{e[s]=Pi})):or(r,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Xc(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Pi),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getF
inalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=n._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=or(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?n.add(u):d==Pi&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=n.size?eu(n.values()):[],o=e.size?eu(e.values()):[];if(i){const a=r[0],l=Ys(a);a.offset=0,l.offset=1,r=[a,l]}return Gf(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class B4 extends au{constructor(n,e,i,r,s,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,del
ay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=or(n[0],!1);l.offset=0,s.push(l);const c=or(n[0],!1);c.offset=K1(a),s.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let _=or(n[d],!1);_.offset=K1((e+_.offset*i)/o),s.push(_)}i=o,e=0,r="",n=s}return Gf(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function K1(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Kf{}class z4 extends Kf{normalizePropertyName(n,e){return zf(n)}normalizeStyleValue(n,e,i,r){let s="";const o=i.toString().trim();if(j4[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(`Please provide a CSS unit value for ${n}:${i}`)}return o+s}}const j4=(()=>function U4(t){const n={};return t.forEach(e=>n[e]=!0),n}("width,height,minWidth,minHeight,maxWidth
,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Y1(t,n,e,i,r,s,o,a,l,c,u,d,_){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:_}}const Yf={};class Q1{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function $4(t,n,e,i,r){return t.some(s=>s(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){const r=this._stateStyles["*"],s=this._stateStyles[n],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(n,e,i,r,s,o,a,l,c,u){const d=[],_=this.ast.options&&this.ast.options.params||Yf,b=this.buildStyles(i,a&&a.params||Yf,d),D=l&&l.params||Yf,T=this
.buildStyles(r,D,d),k=new Set,x=new Map,A=new Map,F="void"===r,te={params:Object.assign(Object.assign({},_),D)},Ae=u?[]:Wf(n,e,this.ast.animation,s,o,b,T,te,c,d);let Le=0;if(Ae.forEach(qe=>{Le=Math.max(qe.duration+qe.delay,Le)}),d.length)return Y1(e,this._triggerName,i,r,F,b,T,[],[],x,A,Le,d);Ae.forEach(qe=>{const Dt=qe.element,Zs=pn(x,Dt,{});qe.preStyleProps.forEach(Qn=>Zs[Qn]=!0);const Fi=pn(A,Dt,{});qe.postStyleProps.forEach(Qn=>Fi[Qn]=!0),Dt!==e&&k.add(Dt)});const Xe=eu(k.values());return Y1(e,this._triggerName,i,r,F,b,T,Ae,Xe,x,A,Le)}}class G4{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},r=Ys(this.defaultParams);return Object.keys(n).forEach(s=>{const o=n[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Xc(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class q4{
constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new G4(r.style,r.options&&r.options.params||{},i)}),Z1(this.states,"true","1"),Z1(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Q1(n,r,this.states))}),this.fallbackTransition=function K4(t,n,e){return new Q1(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(o=>o.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function Z1(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const Y4=new su;class Q4{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n
,e){const i=[],r=Uf(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[n]=r}_buildPlayer(n,e,i){const r=n.element,s=M1(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,s,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],s=this._animations[n];let o;const a=new Map;if(s?(o=Wf(this._driver,e,s,Nf,Yc,{},{},i,Y4,r),o.forEach(u=>{const d=pn(a,u.element,{});u.postStyleProps.forEach(_=>d[_]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);a.forEach((u,d)=>{Object.keys(u).forEach(_=>{u[_]=this._driver.computeStyle(d,_,Pi)})});const c=sr(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(
n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw new Error(`Unable to find the timeline player referenced by ${n}`);return e}listen(n,e,i,r){const s=kf(e,"","","");return xf(this._getPlayer(n),i,s,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const s=this._getPlayer(n);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const J1="ng-animate-queued",X1="ng-animate-disabled",eD=".ng-animate-disabled",ez=[],tD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},tz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQuerie
d:!0},An="__ng_removed";class Qf{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function sz(t){return null!=t?t:null}(i?n.value:n),i){const s=Ys(n);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Ea="void",Zf=new Qf(Ea);class nz{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Pn(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefin
ed!`);if(!function oz(t){return"start"==t||"done"==t}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const s=pn(this._elementListeners,n,[]),o={name:e,phase:i,callback:r};s.push(o);const a=pn(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(Pn(n,Qc),Pn(n,Qc+"-"+e),a[e]=Zf),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw new Error(`The provided animation trigger "${n}" has not been registered!`);return e}trigger(n,e,i,r=!0){const s=this._getTrigger(e),o=new Jf(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Pn(n,Qc),Pn(n,Qc+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new Qf(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Zf),c.value!==Ea&&l.value===
c.value){if(!function cz(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!n.hasOwnProperty(s)||t[s]!==n[s])return!1}return!0}(l.params,c.params)){const D=[],T=s.matchStyles(l.value,l.params,D),k=s.matchStyles(c.value,c.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{Rr(n,T),di(n,k)})}return}const _=pn(this._engine.playersByElement,n,[]);_.forEach(D=>{D.namespaceId==this.id&&D.triggerName==e&&D.queued&&D.destroy()});let y=s.matchTransition(l.value,c.value,n,c.params),b=!1;if(!y){if(!r)return;y=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:b}),b||(Pn(n,J1),o.onStart(()=>{Qs(n,J1)})),o.onDone(()=>{let D=this.players.indexOf(o);D>=0&&this.players.splice(D,1);const T=this._engine.playersByElement.get(n);if(T){let k=T.indexOf(o);k>=0&&T.splice(k,1)}}),this.players.
push(o),_.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Zc,!0);i.forEach(r=>{if(r[An])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const s=this._engine.statesByElement.get(n);if(s){const o=[];if(Object.keys(s).forEach(a=>{if(this._triggers[a]){const l=this.trigger(n,a,Ea,r);l&&o.push(l)}}),o.length)return this._engine.markElementAsRemoved(this.id,n,
!0,e),i&&sr(o).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Zf,u=new Qf(Ea),d=new Jf(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(n):[];if(s&&s.length)r=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const s=n[An];(!s||s===tD)&&(i.afterFlush(()=>this.clearElementCache(n)),
i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Pn(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=kf(s,i.triggerName,i.fromState.value,i.toState.value);l._data=n,xf(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class iz{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElement
s=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new nz(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList.length-1;if(i>=0){let r=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.
splice(s+1,0,n),r=!0;break}r||this._namespaceList.splice(0,0,n)}else this._namespaceList.push(n);return this.namespacesByHostElement.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(n,e,i,r){if(lu(e)){const s=this._fetchNamespace(n);if(s)return s.trigger(e,i,r),!0}return!1}insertNod
e(n,e,i,r){if(!lu(e))return;const s=e[An];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Pn(n,X1)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Qs(n,X1))}removeNode(n,e,i,r){if(lu(e)){const s=n?this._fetchNamespace(n):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r){this.collectedLeaveElements.push(e),e[An]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1}}listen(n,e,i,r,s){return lu(e)?this._fetchNamespace(n).listen(e,i,r,s):()=>{}}_buildInstruction(n,e,i,r,s){retu
rn n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,s)}destroyInnerAnimations(n){let e=this.driver.query(n,Zc,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Vf,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return sr(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[An];if(e&&e.setForRemoval){if(n[An]=tD,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}this.driver.matchesElement(n,eD)&&this.
markElementAsDisabled(n,!1),this.driver.query(n,eD,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Pn(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?sr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=
>r())}}reportError(n){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${n.join("\n")}`)}_flushAnimations(n,e){const i=new su,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(B=>{u.add(B);const $=this.driver.query(B,".ng-animate-queued",!0);for(let re=0;re<$.length;re++)u.add($[re])});const d=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=rD(_,this.collectedEnterElements),b=new Map;let D=0;y.forEach((B,$)=>{const re=Nf+D++;b.set($,re),B.forEach(Ie=>Pn(Ie,re))});const T=[],k=new Set,x=new Set;for(let B=0;B<this.collectedLeaveElements.length;B++){const $=this.collectedLeaveElements[B],re=$[An];re&&re.setForRemoval&&(T.push($),k.add($),re.hasAnimation?this.driver.query($,".ng-star-inserted",!0).forEach(Ie=>k.add(Ie)):x.add($))}const A=new Map,F=rD(_,Array.from(k));F.forEach((B,$)=>{const re=Yc+D++;A.set($,re),B.forEach(Ie=>Pn(Ie,re))}),n.push(()=>{y.forEach((B,$)=>{const re=b.get($);B.forEac
h(Ie=>Qs(Ie,re))}),F.forEach((B,$)=>{const re=A.get($);B.forEach(Ie=>Qs(Ie,re))}),T.forEach(B=>{this.processLeaveNode(B)})});const te=[],Ae=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(e).forEach(re=>{const Ie=re.player,xt=re.element;if(te.push(Ie),this.collectedEnterElements.length){const pi=xt[An];if(pi&&pi.setForMove)return void Ie.destroy()}const hi=!d||!this.driver.containsElement(d,xt),gn=A.get(xt),lr=b.get(xt),rt=this._buildInstruction(re,i,lr,gn,hi);if(rt.errors&&rt.errors.length)Ae.push(rt);else{if(hi)return Ie.onStart(()=>Rr(xt,rt.fromStyles)),Ie.onDestroy(()=>di(xt,rt.toStyles)),void r.push(Ie);if(re.isFallbackTransition)return Ie.onStart(()=>Rr(xt,rt.fromStyles)),Ie.onDestroy(()=>di(xt,rt.toStyles)),void r.push(Ie);rt.timelines.forEach(pi=>pi.stretchStartingKeyframe=!0),i.append(xt,rt.timelines),o.push({instruction:rt,player:Ie,element:xt}),rt.queriedElements.forEach(pi=>pn(a,pi,[]).push(Ie)),rt.preStyleProps.forEach((p
i,xa)=>{const _u=Object.keys(pi);if(_u.length){let Pr=l.get(xa);Pr||l.set(xa,Pr=new Set),_u.forEach(ig=>Pr.add(ig))}}),rt.postStyleProps.forEach((pi,xa)=>{const _u=Object.keys(pi);let Pr=c.get(xa);Pr||c.set(xa,Pr=new Set),_u.forEach(ig=>Pr.add(ig))})}});if(Ae.length){const B=[];Ae.forEach($=>{B.push(`(a)${$.triggerName} has failed due to:\n`),$.errors.forEach(re=>B.push(`- ${re}\n`))}),te.forEach($=>$.destroy()),this.reportError(B)}const Le=new Map,Xe=new Map;o.forEach(B=>{const $=B.element;i.has($)&&(Xe.set($,$),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,Le))}),r.forEach(B=>{const $=B.element;this._getPreviousPlayers($,!1,B.namespaceId,B.triggerName,null).forEach(Ie=>{pn(Le,$,[]).push(Ie),Ie.destroy()})});const qe=T.filter(B=>oD(B,l,c)),Dt=new Map;iD(Dt,this.driver,x,c,Pi).forEach(B=>{oD(B,l,c)&&qe.push(B)});const Fi=new Map;y.forEach((B,$)=>{iD(Fi,this.driver,new Set(B),l,"!")}),qe.forEach(B=>{const $=Dt.get(B),re=Fi.get(B);Dt.set(B,Object.assign(Object.assign({},
$),re))});const Qn=[],Js=[],Xs={};o.forEach(B=>{const{element:$,player:re,instruction:Ie}=B;if(i.has($)){if(u.has($))return re.onDestroy(()=>di($,Ie.toStyles)),re.disabled=!0,re.overrideTotalTime(Ie.totalTime),void r.push(re);let xt=Xs;if(Xe.size>1){let gn=$;const lr=[];for(;gn=gn.parentNode;){const rt=Xe.get(gn);if(rt){xt=rt;break}lr.push(gn)}lr.forEach(rt=>Xe.set(rt,xt))}const hi=this._buildAnimation(re.namespaceId,Ie,Le,s,Fi,Dt);if(re.setRealPlayer(hi),xt===Xs)Qn.push(re);else{const gn=this.playersByElement.get(xt);gn&&gn.length&&(re.parentPlayer=sr(gn)),r.push(re)}}else Rr($,Ie.fromStyles),re.onDestroy(()=>di($,Ie.toStyles)),Js.push(re),u.has($)&&r.push(re)}),Js.forEach(B=>{const $=s.get(B.element);if($&&$.length){const re=sr($);B.setRealPlayer(re)}}),r.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B<T.length;B++){const $=T[B],re=$[An];if(Qs($,Yc),re&&re.hasAnimation)continue;let Ie=[];if(a.size){let hi=a.get($);hi&&hi.length&&Ie.push(..
.hi);let gn=this.driver.query($,Vf,!0);for(let lr=0;lr<gn.length;lr++){let rt=a.get(gn[lr]);rt&&rt.length&&Ie.push(...rt)}}const xt=Ie.filter(hi=>!hi.destroyed);xt.length?az(this,$,xt):this.processLeaveNode($)}return T.length=0,Qn.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();const $=this.players.indexOf(B);this.players.splice($,1)}),B.play()}),Qn}elementContainsData(n,e){let i=!1;const r=e[An];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!s||s==Ea;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerNa
me))),o}_beforeAnimationBuild(n,e,i){const s=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=pn(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(y=>{const b=y.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),y.destroy(),d.push(y)})}Rr(s,e.fromStyles)}_buildAnimation(n,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,_=e.timelines.map(b=>{const D=b.element;u.add(D);const T=D[An];if(T&&T.removedBeforeQueried)return new Ws(b.duration,b.delay);const k=D!==l,x=function lz(t){const n=[];return sD(t,n),n}((i.get(D)||ez).map(Le=>Le.getRealPlayer())).filter(Le=>!!Le.element&&Le.element===D),A=s.get(D),F=o.get(D),te=M1(0,this._normalizer,0,b.keyframes,A,F),Ae=this._buildPlayer(b,te,x);if(b.subTimeline&&r&&d.add(D),k){const Le=new Jf(n,a,D);Le.setRealPlayer(Ae),c.push(Le)}return Ae});c.forEach(b=>{pn(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>fu
nction rz(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>Pn(b,V1));const y=sr(_);return y.onDestroy(()=>{u.forEach(b=>Qs(b,V1)),di(l,e.toStyles)}),d.forEach(b=>{pn(r,b,[]).push(y)}),y}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Ws(n.duration,n.delay)}}class Jf{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Ws,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>xf(n,e,void 0,i))}),this._queuedCallbacks={},this._contains
RealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){pn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPositio
n(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function lu(t){return t&&1===t.nodeType}function nD(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function iD(t,n,e,i,r){const s=[];e.forEach(l=>s.push(nD(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const _=u[d]=n.computeStyle(c,d,r);(!_||0==_.length)&&(c[An]=tz,o.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>nD(l,s[a++])),o}function rD(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}const cu="$$classes";function Pn(t,n){if(t.classList)t.classList.add(n);else{let e=t[cu];e||(e=t[cu]={}),e[n]=!0}}function Qs(t,n){if(t.classList)t.classList.remove(n);else{let e=t[cu];e&&d
elete e[n]}}function az(t,n,e){sr(e).onDone(()=>t.processLeaveNode(n))}function sD(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof X0?sD(i.players,n):n.push(i)}}function oD(t,n,e){const i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(s=>r.add(s)):n.set(t,i),e.delete(t),!0}class uu{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new iz(n,e,i),this._timelineEngine=new Q4(n,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(n,e,i,r,s){const o=n+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],c=Uf(this._driver,s,l);if(l.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function W4(t,n,e){return new q4(t,n,e)}(r,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.regi
ster(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[s,o]=O1(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=O1(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(n,e,i,r,s)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function aD(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Xf(n[0]),n.length>1&&(i=Xf(n[n.length-1]))):n&&(e=Xf(n)),e||i?new uz(t,e,i):null}let uz=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,th
is._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&di(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(di(this._element,this._initialStyles),this._endStyles&&(di(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Rr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Rr(this._element,this._endStyles),this._endStyles=null),di(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Xf(t){let n=null;const e=Object.keys(t);for(let i=0;i<e.length;i++){const r=e[i];dz(r)&&(n=n||{},n[r]=t[r])}return n}function dz(t){return"display"===t||"position"===t}const lD="animation",cD="animationend";class fz{constructor(n,e,i,r,s,o,a){this._eleme
nt=n,this._name=e,this._duration=i,this._delay=r,this._easing=s,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=l=>this._handleCallback(l)}apply(){(function gz(t,n){const e=tg(t,"").trim();let i=0;e.length&&(i=function _z(t,n){let e=0;for(let i=0;i<t.length;i++)t.charAt(i)===n&&e++;return e}(e,",")+1,n=`${e}, ${n}`),du(t,"",n)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),hD(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){uD(this._element,this._name,"paused")}resume(){uD(this._element,this._name,"running")}setPosition(n){const e=dD(this._element,this._name);this._position=n*this._duration,du(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(n){const e=n._ngTestManualTimestamp||Date.now(),i=1e3*parseFloat(n.elapsedTime.toFixed(3));n.animationName==this._name&&Math.max(e-this._sta
rtTime,0)>=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),hD(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function mz(t,n){const i=tg(t,"").split(","),r=eg(i,n);r>=0&&(i.splice(r,1),du(t,"",i.join(",")))}(this._element,this._name))}}function uD(t,n,e){du(t,"PlayState",e,dD(t,n))}function dD(t,n){const e=tg(t,"");return e.indexOf(",")>0?eg(e.split(","),n):eg([e],n)}function eg(t,n){for(let e=0;e<t.length;e++)if(t[e].indexOf(n)>=0)return e;return-1}function hD(t,n,e){e?t.removeEventListener(cD,n):t.addEventListener(cD,n)}function du(t,n,e,i){const r=lD+n;if(null!=i){const s=t.style[r];if(s.length){const o=s.split(",");o[i]=e,e=o.join(",")}}t.style[r]=e}function tg(t,n){return t.style[lD+n]||""}class pD{constructor(n,e,i,r,s,o,a,l){this.element=n,this.keyframes=e,this.animationName=i,this._duration=r,this._delay=s,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this
._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+s,this._buildStyler()}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(n=>n()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(n){this._styler.setPosition(n)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._style
r.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new fz(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const n={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(n[i]=e?this._finalStyles[i]:jf(this.element,i))})}this.currentSnapshot=n}}class bz extends Ws{constructor(n,e){super(),this.element=n,this._startingStyles={},this.__initialized=!1,this._styles=F1(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).fo
rEach(n=>{this._startingStyles[n]=this.element.style[n]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(n=>this.element.style.setProperty(n,this._styles[n])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(n=>{const e=this._startingStyles[n];e?this.element.style.setProperty(n,e):this.element.style.removeProperty(n)}),this._startingStyles=null,super.destroy())}}class gD{constructor(){this._count=0}validateStyleProperty(n){return Rf(n)}matchesElement(n,e){return Af(n,e)}containsElement(n,e){return Pf(n,e)}query(n,e,i){return Ff(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}buildKeyframeElement(n,e,i){i=i.map(a=>F1(a));let r=`@keyframes ${e} {\n`,s="";i.forEach(a=>{s=" ";const l=parseFloat(a.offset);r+=`${s}${100*l}% {\n`,s+=" ",Object.keys(a).forEach(c=>{const u=a[c];switch(c){case"offset":return;case"easing":return void(u&&(r+=`${s}animation-timing-function: ${u};\n`));default:ret
urn void(r+=`${s}${c}: ${u};\n`)}}),r+=`${s}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(n,e,i,r,s,o=[],a){const l=o.filter(T=>T instanceof pD),c={};U1(i,r)&&l.forEach(T=>{let k=T.currentSnapshot;Object.keys(k).forEach(x=>c[x]=k[x])});const u=function Dz(t){let n={};return t&&(Array.isArray(t)?t:[t]).forEach(i=>{Object.keys(i).forEach(r=>{"offset"==r||"easing"==r||(n[r]=i[r])})}),n}(e=$1(n,e,c));if(0==i)return new bz(n,u);const d="gen_css_kf_"+this._count++,_=this.buildKeyframeElement(n,d,e);(function Cz(t){var n;const e=null===(n=t.getRootNode)||void 0===n?void 0:n.call(t);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(n).appendChild(_);const b=aD(n,e),D=new pD(n,e,d,i,r,s,u,b);return D.onDestroy(()=>function Sz(t){t.parentNode.removeChild(t)}(_)),D}}class _D{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[
],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[]
,this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(n[e]=this._finished?this.
_finalKeyframe[e]:jf(this.element,e))}),this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Tz{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(yD().toString()),this._cssKeyframesDriver=new gD}validateStyleProperty(n){return Rf(n)}matchesElement(n,e){return Af(n,e)}containsElement(n,e){return Pf(n,e)}query(n,e,i){return Ff(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}overrideWebAnimationsSupport(n){this._isNativeImpl=n}animate(n,e,i,r,s,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(n,e,i,r,s,o);const u={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(u.easing=s);const d={},_=o.filter(b=>b instanceof _D);U1(i,r)&&_.forEach(b=>{let D=b.currentSnapshot;Object.keys(D).forEach(T=>d[T]=D[T])});const y=aD(n,e=$1(n,e=e.map(b=>or(b,!1)),d));return new _D(n,e,u,y)}}function yD(){return k1()&&Element.prototype.animate||{}}let xz=(()=>{class t exte
nds Y0{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ln.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?Q0(e):e;return vD(this._renderer,null,i,"register",[r]),new Iz(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(P(jo),P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class Iz extends class qN{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new kz(this._id,n,e||{},this._renderer)}}class kz{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return vD(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy"
,n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function vD(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const bD="@.disabled";let Mz=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){le
t u=this._rendererCache.get(s);return u||(u=new wD("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new Oz(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderin
gDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(P(jo),P(uu),P(Te))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class wD{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibl
ing(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==bD?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class Oz extends wD{constructor(n,e,i,r){super(e,i,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==bD?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function Rz(t){switch(t){case"body":return document.body;case"docu
ment":return document;case"window":return window;default:return t}}(n);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function Az(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let Pz=(()=>{class t extends uu{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(P(bt),P(Lf),P(Kf))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const CD=new ie("AnimationModuleType"),DD=[{provide:Y0,useClass:xz},{provide:Kf,useFactory:function Lz(){return new z4}},{provide:uu,useClass:Pz},{provide:jo,useFactory:function Nz(t,n,e){return new Mz(t,n,e)},deps:[Xl,uu,Te]}],SD=[{provide:Lf,useFactory:function Fz(){return function Ez(){return"function"==typeof yD()}()?new Tz:new gD}},{provide:CD,useValue:"BrowserAnimations"},...DD],Vz=[{provide:Lf,useClass:L1},{provide:CD,useVa
lue:"NoopAnimations"},...DD];let Bz=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Vz:SD}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:SD,imports:[Tw]}),t})();zc([Qe({transform:"{{transform}}",opacity:0}),Pt("{{transition}}")]),zc([Pt("{{transition}}",Qe({transform:"{{transform}}",opacity:0}))]);let Gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn]]}),t})(),uj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,ir,hn,$s],ir,$s]}),t})(),pj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();const xD=["container"],fj=function(t,n,e,i){return{"pi-info-circle":t,"pi-exclamation-triangle":n,"pi-times-circle":e,"pi-check":i}};function gj(t,n){if(1&t&&(pe(0),I(1,"span",6),h(2,"div",7),h(3,"div"
,8),E(4),p(),h(5,"div",9),E(6),p(),p(),fe()),2&t){const e=f();g(1),ge("p-toast-message-icon pi"+(e.message.icon?" "+e.message.icon:"")),m("ngClass",Di(5,fj,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),g(3),le(e.message.summary),g(2),le(e.message.detail)}}function mj(t,n){1&t&&H(0)}function _j(t,n){if(1&t){const e=z();h(0,"button",10),M("click",function(r){return C(e),f().onCloseIconClick(r)})("keydown.enter",function(r){return C(e),f().onCloseIconClick(r)}),I(1,"span",11),p()}}const yj=function(t){return[t,"p-toast-message"]},vj=function(t,n,e,i){return{showTransformParams:t,hideTransformParams:n,showTransitionParams:e,hideTransitionParams:i}},bj=function(t){return{value:"visible",params:t}},wj=function(t){return{$implicit:t}};function Cj(t,n){if(1&t){const e=z();h(0,"p-toastItem",3),M("onClose",function(r){return C(e),f().onMessageClose(r)})("@toastAnimation.start",function(r){return C(e),f().onAnimationStart(r)})
("@toastAnimation.done",function(r){return C(e),f().onAnimationEnd(r)}),p()}if(2&t){const e=n.$implicit,i=n.index,r=f();m("message",e)("index",i)("template",r.template)("@toastAnimation",void 0)("showTransformOptions",r.showTransformOptions)("hideTransformOptions",r.hideTransformOptions)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}}let Dj=(()=>{class t{constructor(e){this.zone=e,this.onClose=new R}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(e){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),e.preventDefault()}ngOnDestroy(){this.clearTimeout()}}return t.\u0275fac=funct
ion(e){return new(e||t)(w(Te))},t.\u0275cmp=Q({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,i){if(1&e&&He(xD,5),2&e){let r;K(r=Y())&&(i.containerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:"index",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:21,consts:[[3,"ngClass","mouseenter","mouseleave"],["container",""],["role","alert","aria-live","assertive","aria-atomic","true",1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"ngClass"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[1,"p-t
oast-icon-close-icon","pi","pi-times"]],template:function(e,i){1&e&&(h(0,"div",0,1),M("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()}),h(2,"div",2),v(3,gj,7,10,"ng-container",3),v(4,mj,1,0,"ng-container",4),v(5,_j,2,0,"button",5),p(),p()),2&e&&(ge(i.message.styleClass),m("ngClass",G(10,yj,"p-toast-message-"+i.message.severity))("@messageState",G(17,bj,Di(12,vj,i.showTransformOptions,i.hideTransformOptions,i.showTransitionOptions,i.hideTransitionOptions))),q("id",i.message.id),g(2),m("ngClass",i.message.contentStyleClass),g(1),m("ngIf",!i.template),g(1),m("ngTemplateOutlet",i.template)("ngTemplateOutletContext",G(19,wj,i.message)),g(1),m("ngIf",!1!==i.message.closable))},directives:[Je,Me,Ot,ui],encapsulation:2,data:{animation:[Ir("messageState",[rr("visible",Qe({transform:"translateY(0)",opacity:1})),jt("void => *",[Qe({transform:"{{showTransformParams}}",opacity:0}),Pt("{{showTransitionParams}}")]),jt("* => void",[Pt("{{hideTransit
ionParams}}",Qe({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),Sj=(()=>{class t{constructor(e,i,r){this.messageService=e,this.cd=i,this.config=r,this.autoZIndex=!0,this.baseZIndex=0,this.position="top-right",this.preventOpenDuplicates=!1,this.preventDuplicates=!1,this.showTransformOptions="translateY(100%)",this.hideTransformOptions="translateY(-100%)",this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="250ms ease-in",this.onClose=new R,this.id=va()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e instanceof Array){const i=e.filter(r=>this.canAdd(r));this.add(i)}else this.canAdd(e)&&this.add([e])}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(e){this.messages=this.messages?[...this.messages,...e]:[...e],this.pr
eventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...e]:[...e]),this.cd.markForCheck()}canAdd(e){let i=this.key===e.key;return i&&this.preventOpenDuplicates&&(i=!this.containsMessage(this.messages,e)),i&&this.preventDuplicates&&(i=!this.containsMessage(this.messagesArchieve,e)),i}containsMessage(e,i){return!!e&&null!=e.find(r=>r.summary===i.summary&&r.detail==i.detail&&r.severity===i.severity)}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.template=e.template})}onMessageClose(e){this.messages.splice(e.index,1),this.onClose.emit({message:e.message}),this.cd.detectChanges()}onAnimationStart(e){"void"===e.fromState&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&Tt.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Tt.clear(this.containerViewChild.nativeElement)}createStyle(){if(!this.styleElement){th
is.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e="";for(let i in this.breakpoints){let r="";for(let s in this.breakpoints[i])r+=s+":"+this.breakpoints[i][s]+" !important;";e+=`\n @media screen and (max-width: ${i}) {\n .p-toast[${this.id}] {\n ${r}\n }\n }\n `}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&Tt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return t.\u0275fac=function(e){return new(e||t)(w(df),w(vt),w(Ai))},t.\u0275cmp=Q({type:t,selectors:[["p-toast"]],contentQueries:function(e,i
,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&He(xD,5),2&e){let r;K(r=Y())&&(i.containerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:fun
ction(e,i){1&e&&(h(0,"div",0,1),v(2,Cj,1,8,"p-toastItem",2),p()),2&e&&(ge(i.styleClass),m("ngClass","p-toast p-component p-toast-"+i.position)("ngStyle",i.style),g(2),m("ngForOf",i.messages))},directives:[Je,lt,Mt,Dj],styles:[".p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}\n"],encapsulation:2,data:{animation:[Ir("toastAnimation",[jt(":enter, :leav
e",[YN("@*",KN())])])]},changeDetection:0}),t})(),Tj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn],Et]}),t})(),Vj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn]]}),t})();const Bj=["headerchkbox"];function Hj(t,n){1&t&&H(0)}function zj(t,n){if(1&t&&(h(0,"div",6),ot(1),v(2,Hj,1,0,"ng-container",7),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.headerTemplate)}}const ID=function(t){return{"p-checkbox-disabled":t}},jj=function(t,n,e){return{"p-highlight":t,"p-focus":n,"p-disabled":e}},kD=function(t){return{"pi pi-check":t}};function Uj(t,n){if(1&t){const e=z();h(0,"div",10),h(1,"div",11),h(2,"input",12),M("focus",function(){return C(e),f(2).onHeaderCheckboxFocus()})("blur",function(){return C(e),f(2).onHeaderCheckboxBlur()})("keydown.space",function(r){return C(e),f(2).toggleAll(r)}),p(),p(),h(3,"div",13,14),M("click",function(r){return C(
e),f(2).toggleAll(r)}),I(5,"span",15),p(),p()}if(2&t){const e=f(2);m("ngClass",G(5,ID,e.disabled||e.toggleAllDisabled)),g(2),m("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),g(1),m("ngClass",xs(7,jj,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),g(2),m("ngClass",G(11,kD,e.allChecked))}}function $j(t,n){if(1&t){const e=z();h(0,"div",16),h(1,"input",17),M("input",function(r){return C(e),f(2).onFilter(r)}),p(),I(2,"span",18),p()}if(2&t){const e=f(2);g(1),m("value",e.filterValue||"")("disabled",e.disabled),q("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function Gj(t,n){if(1&t&&(h(0,"div",6),v(1,Uj,6,13,"div",8),v(2,$j,3,4,"div",9),p()),2&t){const e=f();g(1),m("ngIf",e.checkbox&&e.multiple&&e.showToggleAll),g(1),m("ngIf",e.filter)}}function Wj(t,n){if(1&t&&(h(0,"span"),E(1),p()),2&t){const e=f().$implicit,i=f(2);g(1),le(i.getOptionGroupLabel(e)||"empty")}}function qj(t,n){1&t&&H(0)}function Kj(t,n){1&t&&H(0)}const ng=funct
ion(t){return{$implicit:t}};function Yj(t,n){if(1&t&&(h(0,"li",20),v(1,Wj,2,1,"span",3),v(2,qj,1,0,"ng-container",21),p(),v(3,Kj,1,0,"ng-container",21)),2&t){const e=n.$implicit,i=f(2),r=he(8);g(1),m("ngIf",!i.groupTemplate),g(1),m("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",G(5,ng,e)),g(1),m("ngTemplateOutlet",r)("ngTemplateOutletContext",G(7,ng,i.getOptionGroupChildren(e)))}}function Qj(t,n){if(1&t&&(pe(0),v(1,Yj,4,9,"ng-template",19),fe()),2&t){const e=f();g(1),m("ngForOf",e.optionsToRender)}}function Zj(t,n){1&t&&H(0)}function Jj(t,n){if(1&t&&(pe(0),v(1,Zj,1,0,"ng-container",21),fe()),2&t){const e=f(),i=he(8);g(1),m("ngTemplateOutlet",i)("ngTemplateOutletContext",G(2,ng,e.optionsToRender))}}const Xj=function(t){return{"p-highlight":t}};function eU(t,n){if(1&t&&(h(0,"div",10),h(1,"div",25),I(2,"span",15),p(),p()),2&t){const e=f().$implicit,i=f(2);m("ngClass",G(3,ID,i.disabled||i.isOptionDisabled(e))),g(1),m("ngClass",G(5,Xj,i.isSelected(e))),g(1),m("ngClass",G(7
,kD,i.isSelected(e)))}}function tU(t,n){if(1&t&&(h(0,"span"),E(1),p()),2&t){const e=f().$implicit,i=f(2);g(1),le(i.getOptionLabel(e))}}function nU(t,n){1&t&&H(0)}const iU=function(t,n){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":n}},rU=function(t,n){return{$implicit:t,index:n}};function sU(t,n){if(1&t){const e=z();h(0,"li",24),M("click",function(r){const o=C(e).$implicit;return f(2).onOptionClick(r,o)})("dblclick",function(r){const o=C(e).$implicit;return f(2).onOptionDoubleClick(r,o)})("touchend",function(){const s=C(e).$implicit;return f(2).onOptionTouchEnd(s)})("keydown",function(r){const o=C(e).$implicit;return f(2).onOptionKeyDown(r,o)}),v(1,eU,3,9,"div",8),v(2,tU,2,1,"span",3),v(3,nU,1,0,"ng-container",21),p()}if(2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngClass",it(8,iU,r.isSelected(e),r.isOptionDisabled(e))),q("tabindex",r.disabled||r.isOptionDisabled(e)?null:"0")("aria-label",r.getOptionLabel(e))("aria-selected",r.isSelected(e)),g(1),m("ngIf",r.checkbox&&r.mu
ltiple),g(1),m("ngIf",!r.itemTemplate),g(1),m("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",it(11,rU,e,i))}}function oU(t,n){if(1&t&&(pe(0),E(1),fe()),2&t){const e=f(3);g(1),De(" ",e.emptyFilterMessageLabel," ")}}function aU(t,n){1&t&&H(0,null,28)}function lU(t,n){if(1&t&&(h(0,"li",26),v(1,oU,2,1,"ng-container",27),v(2,aU,2,0,"ng-container",7),p()),2&t){const e=f(2);g(1),m("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),g(1),m("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function cU(t,n){if(1&t&&(pe(0),E(1),fe()),2&t){const e=f(3);g(1),De(" ",e.emptyMessageLabel," ")}}function uU(t,n){1&t&&H(0,null,29)}function dU(t,n){if(1&t&&(h(0,"li",26),v(1,cU,2,1,"ng-container",27),v(2,uU,2,0,"ng-container",7),p()),2&t){const e=f(2);g(1),m("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),g(1),m("ngTemplateOutlet",e.emptyTemplate)}}function hU(t,n){if(1&t&&(v(0,sU,4,14,"li",22),v(1,lU,3,3,"li",23),v(2,dU,3,3,"li",23)),2&t){const e=n.$implicit,
i=f();m("ngForOf",e),g(1),m("ngIf",i.hasFilter()&&i.isEmpty(e)),g(1),m("ngIf",!i.hasFilter()&&i.isEmpty(e))}}function pU(t,n){1&t&&H(0)}function fU(t,n){if(1&t&&(h(0,"div",30),ot(1,1),v(2,pU,1,0,"ng-container",7),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.footerTemplate)}}const gU=[[["p-header"]],[["p-footer"]]],mU=function(t){return{"p-listbox p-component":!0,"p-disabled":t}},_U=["p-header","p-footer"],yU={provide:Ht,useExisting:xe(()=>MD),multi:!0};let MD=(()=>{class t{constructor(e,i,r,s){this.el=e,this.cd=i,this.filterService=r,this.config=s,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onChange=new R,this.onClick=new R,this.onDblClick=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{}}get options(){return this._options}set options(e){this._options=e,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filter
Value=e,this.activateFilter()}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template}})}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?V.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?V.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled
(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,i):this.onOptionClickMultiple(e,i):this.onOptionClickSingle(e,i),this.onClick.emit({originalEvent:e,option:i,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||this.onDblClick.emit({originalEvent:e,option:i,value:this.value})}onOptionClickSingle(e,i){let r=this.isSelected(i),s=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?a&&(this.value=null,s=!0):(this.value
=this.getOptionValue(i),s=!0)}else this.value=r?null:this.getOptionValue(i),s=!0;s&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,i){let r=this.isSelected(i),s=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?(a?this.removeOption(i):this.value=[this.getOptionValue(i)],s=!0):(this.value=a&&this.value||[],this.value=[...this.value,this.getOptionValue(i)],s=!0)}else r?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],s=!0;s&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,i){this.disabled||this.readonly||(this.isSelected(i)?this.removeOption(i):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(i)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(i=>!V.equals(i,this.getOptionValue(e),this.d
ataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value)for(let s of this.value)if(V.equals(s,r,this.dataKey)){i=!0;break}}else i=V.equals(this.value,r,this.dataKey);return i}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{let i=0,r=0,s=0,o=this.group?0:this.optionsToRender.length;for(let a of e)if(this.group)for(let l of this.getOptionGroupChildren(a)){let c=this.isOptionDisabled(l),u=this.isSelected(l);if(c)u?i++:r++;else{if(!u)return!1;s++}o++}else{let l=this.isOptionDisabled(a),c=this.isSelected(a);if(l)c?i++:r++;else{if(!c)return!1;s++}}return o===i||o===s||s&&o===s+r+i}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Qt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Qt.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(e
){return!e||e&&0===e.length}onFilter(e){this._filterValue=e.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=(this.optionLabel||"label").split(","),i=[];for(let r of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(r),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&i.push(Object.assign(Object.assign({},r),{[this.optionGroupChildren]:s}))}this._filteredOptions=i}else this._filteredOptions=this._options.filter(e=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(e),this._filterValue,this.filterLocale));else this._filteredOptions=null}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let i of e)if(!this.isOptionDisabled(i))return!1;return!0}toggleAll(e){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value
:this.value}),e.preventDefault())}checkAll(){let i=[];this.optionsToRender.forEach(r=>{if(this.group){let s=this.getOptionGroupChildren(r);s&&s.forEach(o=>{let a=this.isOptionDisabled(o);(!a||a&&this.isSelected(o))&&i.push(this.getOptionValue(o))})}else{let s=this.isOptionDisabled(r);(!s||s&&this.isSelected(r))&&i.push(this.getOptionValue(r))}}),this.value=i}uncheckAll(){let i=[];this.optionsToRender.forEach(r=>{this.group?r.items&&r.items.forEach(s=>{this.isOptionDisabled(s)&&this.isSelected(s)&&i.push(this.getOptionValue(s))}):this.isOptionDisabled(r)&&this.isSelected(r)&&i.push(this.getOptionValue(r))}),this.value=i}onOptionKeyDown(e,i){if(this.readonly)return;let r=e.currentTarget;switch(e.which){case 40:var s=this.findNextItem(r);s&&s.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(r);o&&o.focus(),e.preventDefault();break;case 13:this.onOptionClick(e,i),e.preventDefault()}}findNextItem(e){let i=e.nextElementSibling;return i?S.hasClass(i,"p-disabled")||S.isHidde
n(i)||S.hasClass(i,"p-listbox-item-group")?this.findNextItem(i):i:null}findPrevItem(e){let i=e.previousElementSibling;return i?S.hasClass(i,"p-disabled")||S.isHidden(i)||S.hasClass(i,"p-listbox-item-group")?this.findPrevItem(i):i:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(vt),w(Nc),w(Ai))},t.\u0275cmp=Q({type:t,selectors:[["p-listbox"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Bc,5),Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.headerFacet=s.first),K(s=Y())&&(i.footerFacet=s.first),K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&He(Bj,5),2&e){let r;K(r=Y())&&(i.headerCheckboxViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",di
sabled:"disabled",checkbox:"checkbox",filter:"filter",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[be([yU])],ngContentSelectors:_U,decls:10,vars:15,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox","aria-multiselectable","multiple",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ng
If"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],[1,"p-listbox-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown",4,"ngFor","ngForOf"],["class","p-listbox-empty-message",4,"ngIf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],[4,"ngIf","ngIfElse"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(e,i){1&e&&(Dn(gU),h(0
,"div",0),v(1,zj,3,1,"div",1),v(2,Gj,3,2,"div",1),h(3,"div",0),h(4,"ul",2),v(5,Qj,2,1,"ng-container",3),v(6,Jj,2,4,"ng-container",3),v(7,hU,3,3,"ng-template",null,4,ze),p(),p(),v(9,fU,3,1,"div",5),p()),2&e&&(ge(i.styleClass),m("ngClass",G(13,mU,i.disabled))("ngStyle",i.style),g(1),m("ngIf",i.headerFacet||i.headerTemplate),g(1),m("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),g(1),ge(i.listStyleClass),m("ngClass","p-listbox-list-wrapper")("ngStyle",i.listStyle),g(2),m("ngIf",i.group),g(1),m("ngIf",!i.group),g(3),m("ngIf",i.footerFacet||i.footerTemplate))},directives:[Je,lt,Me,Ot,Mt,ui],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;t
op:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),vU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Et,hn],Et]}),t})(),bU=(()=>{class t{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();let i=S.getFocusableElements(this.el.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);e.shiftKey?-1==r||0===r?i[i.length-1].focus():i[r-1].focus():-1==r||r===i.length-1?i[0].focus():i[r+1].focus()}else i[0].focus()}}}return t.\u0275fac=function(e){return new(e||t)(w(Se))},t.\u0275dir=U({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,i){1&e&&M("keydown.tab",function(s){return i.onkeydown(s)})("keydown.shift.tab",function(s){return i.onkeydown(s)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),t})(),wU=(()=>{class t{}return t.\u
0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();const CU=["titlebar"],DU=["content"],SU=["footer"];function TU(t,n){if(1&t&&(h(0,"span",17),E(1),p()),2&t){const e=f(4);q("id",e.id+"-label"),g(1),le(e.header)}}function EU(t,n){1&t&&(h(0,"span",17),ot(1,1),p()),2&t&&q("id",f(4).id+"-label")}function xU(t,n){1&t&&H(0)}const IU=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function kU(t,n){if(1&t){const e=z();h(0,"button",18),M("click",function(){return C(e),f(4).maximize()})("keydown.enter",function(){return C(e),f(4).maximize()}),I(1,"span",19),p()}if(2&t){const e=f(4);m("ngClass",Tn(2,IU)),g(1),m("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const MU=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function OU(t,n){if(1&t){const e=z();h(0,"button",20),M("click",function(r){return C(e),f(4).close(r)})("keydown.enter",function(r){return C(e),f(4).close(r)}),I(1,"span",2
1),p()}if(2&t){const e=f(4);m("ngClass",Tn(4,MU)),q("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),g(1),m("ngClass",e.closeIcon)}}function RU(t,n){if(1&t){const e=z();h(0,"div",11,12),M("mousedown",function(r){return C(e),f(3).initDrag(r)}),v(2,TU,2,2,"span",13),v(3,EU,2,1,"span",13),v(4,xU,1,0,"ng-container",8),h(5,"div",14),v(6,kU,2,3,"button",15),v(7,OU,2,5,"button",16),p(),p()}if(2&t){const e=f(3);g(2),m("ngIf",!e.headerFacet&&!e.headerTemplate),g(1),m("ngIf",e.headerFacet),g(1),m("ngTemplateOutlet",e.headerTemplate),g(2),m("ngIf",e.maximizable),g(1),m("ngIf",e.closable)}}function AU(t,n){1&t&&H(0)}function PU(t,n){1&t&&H(0)}function FU(t,n){if(1&t&&(h(0,"div",22,23),ot(2,2),v(3,PU,1,0,"ng-container",8),p()),2&t){const e=f(3);g(3),m("ngTemplateOutlet",e.footerTemplate)}}function LU(t,n){if(1&t){const e=z();h(0,"div",24),M("mousedown",function(r){return C(e),f(3).initResize(r)}),p()}}const NU=function(t,n,e,i){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialo
g-draggable":n,"p-dialog-resizable":e,"p-dialog-maximized":i}},VU=function(t,n){return{transform:t,transition:n}},BU=function(t){return{value:"visible",params:t}};function HU(t,n){if(1&t){const e=z();h(0,"div",3,4),M("@animation.start",function(r){return C(e),f(2).onAnimationStart(r)})("@animation.done",function(r){return C(e),f(2).onAnimationEnd(r)}),v(2,RU,8,5,"div",5),h(3,"div",6,7),ot(5),v(6,AU,1,0,"ng-container",8),p(),v(7,FU,4,1,"div",9),v(8,LU,1,0,"div",10),p()}if(2&t){const e=f(2);ge(e.styleClass),m("ngClass",Di(15,NU,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",G(23,BU,it(20,VU,e.transformOptions,e.transitionOptions))),q("aria-labelledby",e.id+"-label"),g(2),m("ngIf",e.showHeader),g(1),ge(e.contentStyleClass),m("ngClass","p-dialog-content")("ngStyle",e.contentStyle),g(3),m("ngTemplateOutlet",e.contentTemplate),g(1),m("ngIf",e.footerFacet||e.footerTemplate),g(1),m("ngIf",e.resizable)}}const zU=function(t,n
,e,i,r,s,o,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":n,"p-dialog-left":e,"p-dialog-right":i,"p-dialog-top":r,"p-dialog-top-left":s,"p-dialog-top-right":o,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function jU(t,n){if(1&t&&(h(0,"div",1),v(1,HU,9,25,"div",2),p()),2&t){const e=f();ge(e.maskStyleClass),m("ngClass",Ch(4,zU,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),g(1),m("ngIf",e.visible)}}const UU=["*",[["p-header"]],[["p-footer"]]],$U=["*","p-header","p-footer"],GU=zc([Qe({transform:"{{transform}}",opacity:0}),Pt("{{transition}}")]),WU=zc([Pt("{{transition}}",Qe({transform:"{{transform}}",opacity:0}))]);let O
D=(()=>{class t{constructor(e,i,r,s,o){this.el=e,this.renderer=i,this.zone=r,this.cd=s,this.config=o,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.closeTabindex="-1",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new R,this.onHide=new R,this.visibleChange=new R,this.onResizeInit=new R,this.onResizeEnd=new R,this.onDragEnd=new R,this.onMaximize=new R,this.id=va(),this._style={},this._position="center",this.transformOptions="scale(0.7)"}get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}get responsive(){return!1}set
responsive(e){console.log("Responsive property is deprecated.")}get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style=Object.assign({},e),this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)"
;break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}focus(){let e=S.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&S.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&S.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?S.addClass(document.body,"p-overflow-hidden"):S.removeClass(document.body,"p-overflow-hidden")
),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Tt.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e="";for(let i in this.breakpoints)e+=`\n @media screen and (max-width: ${i}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[i]} !important;\n }\n }\n `;this.styleElement.innerHTML=e}}initDrag(e){S.hasClass(e.target,"p-dialog-header-icon")||S.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX
,this.lastPageY=e.pageY,this.container.style.margin="0",S.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let i=S.getFocusableElements(this.container);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);e.shiftKey?-1==r||0===r?i[i.length-1].focus():i[r-1].focus():-1==r||r===i.length-1?i[0].focus():i[r+1].focus()}else i[0].focus()}}onDrag(e){if(this.dragging){let i=S.getOuterWidth(this.container),r=S.getOuterHeight(this.container),s=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,a=S.getOffset(this.container),l=a.left+s,c=a.top+o,u=S.getViewport();this.container.style.position="fixed",this.keepInViewport?(l>=this.minX&&l+i<u.width&&(this._style.left=l+"px",this.lastPageX=e.pageX,this.container.style.left=l+"px"),c>=this.minY&&c+r<u.height&&(this._style.top=c+"px",this.lastPageY=e.pageY,this.container.style.top=c+"px")):(this.lastPageX=e.pageX,this.container.style.left=l+
"px",this.lastPageY=e.pageY,this.container.style.top=c+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,S.removeClass(document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,S.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let i=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,s=S.getOuterWidth(this.container),o=S.getOuterHeight(this.container),a=S.getOuterHeight(this.contentViewChild.nativeElement),l=s+i,c=o+r,u=this.container.style.minWidth,d=this.container.style.minHeight,_=S.getOffset(this.container),y=S.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=i,c+=r),(!u||l>parseInt(u))&&_.left+l<y.w
idth&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!d||c>parseInt(d))&&_.top+c<y.height&&(this.contentViewChild.nativeElement.style.height=a+c-o+"px",this._style.height&&(this._style.height=c+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,S.removeClass(document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.zone.runOutsideAngular(()=>{this.documentDragListener=this.onDrag.bind(this),window.document.addEventListener("mousemove",this
.documentDragListener)})}unbindDocumentDragListener(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)}bindDocumentDragEndListener(){this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.endDrag.bind(this),window.document.addEventListener("mouseup",this.documentDragEndListener)})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}bindDocumentResizeListeners(){this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.onResize.bind(this),this.documentResizeEndListener=this.resizeEnd.bind(this),window.document.addEventListener("mousemove",this.documentResizeListener),window.document.addEventListener("mouseup",this.documentResizeEndListener)})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEve
ntListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",i=>{27==i.which&&this.close(i)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):S.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container.setAttribute(this.id,""),this.modal&&this.enableModality(),!
this.modal&&this.blockScroll&&S.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&S.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({});break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(S.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&S.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Tt.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?Object.assign({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}}return t.\u0
275fac=function(e){return new(e||t)(w(Se),w(dn),w(Te),w(vt),w(Ai))},t.\u0275cmp=Q({type:t,selectors:[["p-dialog"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Bc,5),Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.headerFacet=s.first),K(s=Y())&&(i.footerFacet=s.first),K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(He(CU,5),He(DU,5),He(SU,5)),2&e){let r;K(r=Y())&&(i.headerViewChild=r.first),K(r=Y())&&(i.contentViewChild=r.first),K(r=Y())&&(i.footerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blo
ckScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:$U,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dia
log-footer",4,"ngIf"],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"]],template:function(e,i){1&e&&(Dn(UU),v(0,jU,2,15,"div",0)),2&e&&m("ngIf",i.maskVisible)},directives:[Me,Je,bU,lt,Ot,ui],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-
events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translate(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0px!important;left:0px!important;max-height:100
%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[Ir("animation",[jt("void => visible",[Z0(GU)]),jt("visible => void",[Z0(WU)])])]},changeDetection:0}),t})(),qU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,wU,hn],Et]}),t})();function
KU(t,n){1&t&&H(0)}function YU(t,n){if(1&t){const e=z();h(0,"button",5),M("click",function(r){return C(e),f(2).onCloseClick(r)})("keydown.enter",function(){return C(e),f(2).hide()}),I(1,"span",6),p()}2&t&&q("aria-label",f(2).ariaCloseLabel)}const QU=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},ZU=function(t,n){return{value:t,params:n}};function JU(t,n){if(1&t){const e=z();h(0,"div",1),M("click",function(r){return C(e),f().onOverlayClick(r)})("@animation.start",function(r){return C(e),f().onAnimationStart(r)})("@animation.done",function(r){return C(e),f().onAnimationEnd(r)}),h(1,"div",2),M("click",function(){return C(e),f().onContentClick()})("mousedown",function(){return C(e),f().onContentClick()}),ot(2),v(3,KU,1,0,"ng-container",3),p(),v(4,YU,2,1,"button",4),p()}if(2&t){const e=f();ge(e.styleClass),m("ngClass","p-overlaypanel p-component")("ngStyle",e.style)("@animation",it(10,ZU,e.overlayVisible?"open":"close",it(7,QU,e.showTransitionOptions,e.hideTransition
Options))),g(3),m("ngTemplateOutlet",e.contentTemplate),g(1),m("ngIf",e.showCloseIcon)}}const XU=["*"];let e$=(()=>{class t{constructor(e,i,r,s,o,a){this.el=e,this.renderer=i,this.cd=r,this.zone=s,this.config=o,this.overlayService=a,this.dismissable=!0,this.appendTo="body",this.autoZIndex=!0,this.baseZIndex=0,this.focusOnShow=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new R,this.onHide=new R,this.overlayVisible=!1,this.render=!1,this.selfClick=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template,this.cd.markForCheck()})}bindDocumentClickListener(){!this.documentClickListener&&this.dismissable&&this.zone.runOutsideAngular(()=>{let e=S.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",e,r=>{!this.container.contains(r.target)&&this.target!==r.target&&!this.target.contains(r.target)&&!this.sel
fClick&&this.zone.run(()=>{this.hide()}),this.selfClick=!1,this.cd.markForCheck()})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,i){this.overlayVisible?(this.hasTargetChanged(e,i)&&(this.destroyCallback=()=>{this.show(null,i||e.currentTarget||e.target)}),this.hide()):this.show(e,i)}show(e,i){this.target=i||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(){this.selfClick=!0}hasTargetChanged(e,i){return null!=this.target&&this.target!==(i||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):S.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIn
dex&&Tt.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),S.absolutePosition(this.container,this.target);const e=S.getOffset(this.container),i=S.getOffset(this.target);let r=0;e.left<i.left&&(r=i.left-e.left),this.container.style.setProperty("--overlayArrowLeft",`${r}px`),e.top<i.top&&S.addClass(this.container,"p-overlaypanel-flipped")}onAnimationStart(e){"open"===e.toState&&(this.container=e.element,this.onShow.emit(null),this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=i=>{this.container&&this.container.contains(i.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener))}onAnimationEnd(e){switch(e.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();b
reak;case"close":this.autoZIndex&&Tt.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}}focus(){let e=S.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Lc(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}o
nContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Tt.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(dn),w(vt),w(Te),w(Ai),w(Vc))},t.\u0275cmp=Q({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{dismissable:"dismissable",showCloseIcon:"showCloseIcon",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",ariaCloseLabel:"ariaCloseLabel",baseZIndex:"baseZIndex",focusOnShow:"focusOnShow",showTransitionOp
tions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},ngContentSelectors:XU,decls:1,vars:1,consts:[[3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],[1,"p-overlaypanel-content",3,"click","mousedown"],[4,"ngTemplateOutlet"],["type","button","class","p-overlaypanel-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],["type","button","pRipple","",1,"p-overlaypanel-close","p-link",3,"click","keydown.enter"],[1,"p-overlaypanel-close-icon","pi","pi-times"]],template:function(e,i){1&e&&(Dn(),v(0,JU,5,13,"div",0)),2&e&&m("ngIf",i.render)},directives:[Me,Je,lt,Ot,ui],styles:['.p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel:before{bottom:100%;left:calc(var(--overlayArrowL
eft, 0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.p-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after{border-bottom-color:transparent}.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}\n'],encapsulation:2,data:{animation:[Ir("animation",[rr("void",Qe({transform:"scaleY(0.8)",opacity:0})),rr("close",Qe({opacity:0})),rr("open",Qe({transform:"translateY(0)",opacity:1})),jt("void => open",Pt("{{showTransitionParams}}")),jt("open => close",Pt("{{hideTransitionParams}}"))])]},changeDetection:0}),t})(),t$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn,Et],Et]}),t})();fun
ction n$(t,n){1&t&&I(0,"span",8),2&t&&(ge(f(2).$implicit.icon),m("ngClass","p-button-icon p-button-icon-left"))}function i$(t,n){if(1&t&&(pe(0),v(1,n$,1,3,"span",6),h(2,"span",7),E(3),p(),fe()),2&t){const e=f().$implicit,i=f();g(1),m("ngIf",e.icon),g(2),le(i.getOptionLabel(e))}}function r$(t,n){1&t&&H(0)}const s$=function(t,n){return{$implicit:t,index:n}};function o$(t,n){if(1&t&&v(0,r$,1,0,"ng-container",9),2&t){const e=f(),i=e.$implicit,r=e.index;m("ngTemplateOutlet",f().itemTemplate)("ngTemplateOutletContext",it(2,s$,i,r))}}const a$=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-button-icon-only":e}};function l$(t,n){if(1&t){const e=z();h(0,"div",2,3),M("click",function(r){const s=C(e),o=s.$implicit,a=s.index;return f().onItemClick(r,o,a)})("keydown.enter",function(r){const s=C(e),o=s.$implicit,a=s.index;return f().onItemClick(r,o,a)})("blur",function(){return C(e),f().onBlur()}),v(2,i$,4,2,"ng-container",4),v(3,o$,1,5,"ng-template",null,5,ze),p()}if(2&t){const e=n.$imp
licit,i=he(4),r=f();ge(e.styleClass),m("ngClass",xs(10,a$,r.isSelected(e),r.disabled||r.isOptionDisabled(e),e.icon&&!r.getOptionLabel(e))),q("aria-pressed",r.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",r.disabled?null:r.tabindex)("aria-labelledby",r.getOptionLabel(e)),g(2),m("ngIf",!r.itemTemplate)("ngIfElse",i)}}const c$={provide:Ht,useExisting:xe(()=>u$),multi:!0};let u$=(()=>{class t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new R,this.onChange=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{}}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}regi
sterOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onItemClick(e,i,r){this.disabled||this.isOptionDisabled(i)||(this.multiple?this.isSelected(i)?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)]:this.value=this.getOptionValue(i),this.onOptionClick.emit({originalEvent:e,option:i,index:r}),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!V.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value)for(let s of this.value)if(V.equals(s,r,this.dataKey)){i=!0;break}}else i=V.equals(this.getOptionValue(e),this.value,this.dataKey);return i}}return t.\u0275fac=function(e){return new(e||t)(w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,En,5),2&e){let s;K(s=Y())&&(i.itemTemplate=s.f
irst)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[be([c$])],decls:2,vars:5,consts:[["role","group",3,"ngClass","ngStyle"],["class","p-button p-component","role","button","pRipple","",3,"class","ngClass","click","keydown.enter","blur",4,"ngFor","ngForOf"],["role","button","pRipple","",1,"p-button","p-component",3,"ngClass","click","keydown.enter","blur"],["btn",""],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(h(0,"div",0),v(1,l$,5,14,"div",1),p()),2&e&&(ge(i.styleClass),m("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",i.s
tyle),g(1),m("ngForOf",i.options))},directives:[Je,lt,Mt,ui,Me,Ot],styles:[".p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only .p-button-label{visibility:hidden;width:0;flex:0 0 auto}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}.p-button-label{transition:all .2s}\n"],e
ncapsulation:2,changeDetection:0}),t})(),d$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn]]}),t})();const h$=function(t,n,e){return{"p-checkbox-label-active":t,"p-disabled":n,"p-checkbox-label-focus":e}};function p$(t,n){if(1&t){const e=z();h(0,"label",7),M("click",function(r){C(e);const s=f(),o=he(3);return s.onClick(r,o)}),E(1),p()}if(2&t){const e=f();m("ngClass",xs(3,h$,null!=e.value,e.disabled,e.focused)),q("for",e.inputId),g(1),le(e.label)}}const f$=function(t,n){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":n}},g$=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-focus":e}},m$={provide:Ht,useExisting:xe(()=>_$),multi:!0};let _$=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,i){!this.disabled&&!this.readonly&&(this.toggl
e(e),this.focused=!0,i.focus())}onKeydown(e){32==e.keyCode&&e.preventDefault()}onKeyup(e){32==e.keyCode&&!this.readonly&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-triStateCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFa
lseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[be([m$])],decls:7,vars:21,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","text","inputmode","none",3,"name","readonly","disabled","keyup","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(e,i){if(1&e){const r=z();h(0,"div",0),h(1,"div",1),h(2,"input",2,3),M("keyup",function(o){return i.onKeyup(o)})("keydown",function(o){return i.onKeydown(o)})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),p(),p(),h(4,"div",4),M("click",function(o){C(r);const a=he(3);return i.onClick(o,a)}),I(5,"span",5),p(),p(),v(6,p$,2,7,"label",6)}2&e&&(ge(i.styleClass),m("ngStyle",i.style)("ngClass",it(14,f$,i.disabled,i.focused)),g(2),m("name",i.name)("readonly",i.readonly)("disabled",i.disabled)
,q("id",i.inputId)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy),g(2),m("ngClass",xs(17,g$,null!=i.value,i.disabled,i.focused)),q("aria-checked",!0===i.value),g(1),m("ngClass",!0===i.value?i.checkboxTrueIcon:!1===i.value?i.checkboxFalseIcon:""),g(1),m("ngIf",i.label))},directives:[lt,Je,Me],encapsulation:2,changeDetection:0}),t})(),y$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();const v$=["container"],b$=["inputfield"],w$=["contentWrapper"];function C$(t,n){if(1&t){const e=z();h(0,"button",7),M("click",function(r){C(e),f();const s=he(1);return f().onButtonClick(r,s)}),p()}if(2&t){const e=f(2);m("icon",e.icon)("disabled",e.disabled),q("aria-label",e.iconAriaLabel)}}function D$(t,n){if(1&t){const e=z();h(0,"input",4,5),M("focus",function(r){return C(e),f().onInputFocus(r)})("keydown",function(r){return C(e),f().onInputKeydown(r)})("click",function(){return C(e),f().onInputClick()})("blur",fun
ction(r){return C(e),f().onInputBlur(r)})("input",function(r){return C(e),f().onUserInput(r)}),p(),v(2,C$,1,3,"button",6)}if(2&t){const e=f();ge(e.inputStyleClass),m("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),q("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null)("aria-labelledby",e.ariaLabelledBy),g(2),m("ngIf",e.showIcon)}}function S$(t,n){1&t&&H(0)}function T$(t,n){if(1&t){const e=z();h(0,"button",28),M("keydown",function(r){return C(e),f(4).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(4).onPrevButtonClick(r)}),I(1,"span",29),p()}}function E$(t,n){if(1&t){const e=z();h(0,"button",30),M("click",function(r){return C(e),f(4).switchToMonthView(r)})("keydown",function(r){return C(e),f(4).onContainerButtonKeydown(r)}),E(1),p()}if(2&t){const e=f().$implicit
,i=f(3);m("disabled",i.switchViewButtonDisabled()),g(1),De(" ",i.getMonthName(e.month)," ")}}function x$(t,n){if(1&t){const e=z();h(0,"button",31),M("click",function(r){return C(e),f(4).switchToYearView(r)})("keydown",function(r){return C(e),f(4).onContainerButtonKeydown(r)}),E(1),p()}if(2&t){const e=f().$implicit;m("disabled",f(3).switchViewButtonDisabled()),g(1),De(" ",e.year," ")}}function I$(t,n){if(1&t&&(pe(0),E(1),fe()),2&t){const e=f(5);g(1),hh("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function k$(t,n){1&t&&H(0)}const RD=function(t){return{$implicit:t}};function M$(t,n){if(1&t&&(h(0,"span",32),v(1,I$,2,2,"ng-container",11),v(2,k$,1,0,"ng-container",33),p()),2&t){const e=f(4);g(1),m("ngIf",!e.decadeTemplate),g(1),m("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",G(3,RD,e.yearPickerValues))}}function O$(t,n){if(1&t&&(h(0,"th",39),h(1,"span"),E(2),p(),p()),2&t){const e=f(5);g(2),le(e.getTranslation("weekHeader"))}}fu
nction R$(t,n){if(1&t&&(h(0,"th",40),h(1,"span"),E(2),p(),p()),2&t){const e=n.$implicit;g(2),le(e)}}function A$(t,n){if(1&t&&(h(0,"td",43),h(1,"span",44),E(2),p(),p()),2&t){const e=f().index,i=f(2).$implicit;g(2),De(" ",i.weekNumbers[e]," ")}}function P$(t,n){if(1&t&&(pe(0),E(1),fe()),2&t){const e=f(2).$implicit;g(1),le(e.day)}}function F$(t,n){1&t&&H(0)}const AD=function(t,n){return{"p-highlight":t,"p-disabled":n}};function L$(t,n){if(1&t){const e=z();pe(0),h(1,"span",46),M("click",function(r){C(e);const s=f().$implicit;return f(6).onDateSelect(r,s)})("keydown",function(r){C(e);const s=f().$implicit,o=f(3).index;return f(3).onDateCellKeydown(r,s,o)}),v(2,P$,2,1,"ng-container",11),v(3,F$,1,0,"ng-container",33),p(),fe()}if(2&t){const e=f().$implicit,i=f(6);g(1),m("ngClass",it(4,AD,i.isSelected(e),!e.selectable)),g(1),m("ngIf",!i.dateTemplate),g(1),m("ngTemplateOutlet",i.dateTemplate)("ngTemplateOutletContext",G(7,RD,e))}}const N$=function(t,n){return{"p-datepicker-other-month":t,"p-d
atepicker-today":n}};function V$(t,n){if(1&t&&(h(0,"td",45),v(1,L$,4,9,"ng-container",11),p()),2&t){const e=n.$implicit,i=f(6);m("ngClass",it(2,N$,e.otherMonth,e.today)),g(1),m("ngIf",!e.otherMonth||i.showOtherMonths)}}function B$(t,n){if(1&t&&(h(0,"tr"),v(1,A$,3,1,"td",41),v(2,V$,2,5,"td",42),p()),2&t){const e=n.$implicit,i=f(5);g(1),m("ngIf",i.showWeek),g(1),m("ngForOf",e)}}function H$(t,n){if(1&t&&(h(0,"div",34),h(1,"table",35),h(2,"thead"),h(3,"tr"),v(4,O$,3,1,"th",36),v(5,R$,3,1,"th",37),p(),p(),h(6,"tbody"),v(7,B$,3,2,"tr",38),p(),p(),p()),2&t){const e=f().$implicit,i=f(3);g(4),m("ngIf",i.showWeek),g(1),m("ngForOf",i.weekDays),g(2),m("ngForOf",e.dates)}}function z$(t,n){if(1&t){const e=z();h(0,"div",18),h(1,"div",19),v(2,T$,2,0,"button",20),h(3,"div",21),v(4,E$,2,2,"button",22),v(5,x$,2,2,"button",23),v(6,M$,3,5,"span",24),p(),h(7,"button",25),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(3).onNextButtonClick(r)}),I(8,
"span",26),p(),p(),v(9,H$,8,3,"div",27),p()}if(2&t){const e=n.index,i=f(3);g(2),m("ngIf",0===e),g(2),m("ngIf","date"===i.currentView),g(1),m("ngIf","year"!==i.currentView),g(1),m("ngIf","year"===i.currentView),g(1),wi("display",1===i.numberOfMonths||e===i.numberOfMonths-1?"inline-flex":"none"),g(2),m("ngIf","date"===i.currentView)}}function j$(t,n){if(1&t){const e=z();h(0,"span",49),M("click",function(r){const o=C(e).index;return f(4).onMonthSelect(r,o)})("keydown",function(r){const o=C(e).index;return f(4).onMonthCellKeydown(r,o)}),E(1),p()}if(2&t){const e=n.$implicit,i=n.index,r=f(4);m("ngClass",it(2,AD,r.isMonthSelected(i),!r.isSelectable(1,i,r.currentYear,!1))),g(1),De(" ",e," ")}}function U$(t,n){if(1&t&&(h(0,"div",47),v(1,j$,2,5,"span",48),p()),2&t){const e=f(3);g(1),m("ngForOf",e.monthPickerValues())}}const $$=function(t){return{"p-highlight":t}};function G$(t,n){if(1&t){const e=z();h(0,"span",52),M("click",function(r){const o=C(e).$implicit;return f(4).onYearSelect(r,o)})("k
eydown",function(r){const o=C(e).$implicit;return f(4).onYearCellKeydown(r,o)}),E(1),p()}if(2&t){const e=n.$implicit,i=f(4);m("ngClass",G(2,$$,i.isYearSelected(e))),g(1),De(" ",e," ")}}function W$(t,n){if(1&t&&(h(0,"div",50),v(1,G$,2,4,"span",51),p()),2&t){const e=f(3);g(1),m("ngForOf",e.yearPickerValues())}}function q$(t,n){if(1&t&&(pe(0),h(1,"div",14),v(2,z$,10,7,"div",15),p(),v(3,U$,2,1,"div",16),v(4,W$,2,1,"div",17),fe()),2&t){const e=f(2);g(2),m("ngForOf",e.months),g(1),m("ngIf","month"===e.currentView),g(1),m("ngIf","year"===e.currentView)}}function K$(t,n){1&t&&(pe(0),E(1,"0"),fe())}function Y$(t,n){1&t&&(pe(0),E(1,"0"),fe())}function Q$(t,n){if(1&t&&(h(0,"div",58),h(1,"span"),E(2),p(),p()),2&t){const e=f(3);g(2),le(e.timeSeparator)}}function Z$(t,n){1&t&&(pe(0),E(1,"0"),fe())}function J$(t,n){if(1&t){const e=z();h(0,"div",63),h(1,"button",55),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(3).incrementSecond(r)
})("keydown.space",function(r){return C(e),f(3).incrementSecond(r)})("mousedown",function(r){return C(e),f(3).onTimePickerElementMouseDown(r,2,1)})("mouseup",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(3).onTimePickerElementMouseLeave()}),I(2,"span",56),p(),h(3,"span"),v(4,Z$,2,0,"ng-container",11),E(5),p(),h(6,"button",55),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(3).decrementSecond(r)})("keydown.space",function(r){return C(e),f(3).decrementSecond(r)})("mousedown",function(r){return C(e),f(3).onTimePickerElementMouseDown(r,2,-1)})("mouseup",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e)
,f(3).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(3).onTimePickerElementMouseLeave()}),I(7,"span",57),p(),p()}if(2&t){const e=f(3);g(4),m("ngIf",e.currentSecond<10),g(1),le(e.currentSecond)}}function X$(t,n){if(1&t){const e=z();h(0,"div",64),h(1,"button",65),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(3).toggleAMPM(r)})("keydown.enter",function(r){return C(e),f(3).toggleAMPM(r)}),I(2,"span",56),p(),h(3,"span"),E(4),p(),h(5,"button",65),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(3).toggleAMPM(r)})("keydown.enter",function(r){return C(e),f(3).toggleAMPM(r)}),I(6,"span",57),p(),p()}if(2&t){const e=f(3);g(4),le(e.pm?"PM":"AM")}}function e5(t,n){if(1&t){const e=z();h(0,"div",53),h(1,"div",54),h(2,"button",55),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(2).incrementHour(r)})
("keydown.space",function(r){return C(e),f(2).incrementHour(r)})("mousedown",function(r){return C(e),f(2).onTimePickerElementMouseDown(r,0,1)})("mouseup",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(2).onTimePickerElementMouseLeave()}),I(3,"span",56),p(),h(4,"span"),v(5,K$,2,0,"ng-container",11),E(6),p(),h(7,"button",55),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(2).decrementHour(r)})("keydown.space",function(r){return C(e),f(2).decrementHour(r)})("mousedown",function(r){return C(e),f(2).onTimePickerElementMouseDown(r,0,-1)})("mouseup",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(2).on
TimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(2).onTimePickerElementMouseLeave()}),I(8,"span",57),p(),p(),h(9,"div",58),h(10,"span"),E(11),p(),p(),h(12,"div",59),h(13,"button",55),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(2).incrementMinute(r)})("keydown.space",function(r){return C(e),f(2).incrementMinute(r)})("mousedown",function(r){return C(e),f(2).onTimePickerElementMouseDown(r,1,1)})("mouseup",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(2).onTimePickerElementMouseLeave()}),I(14,"span",56),p(),h(15,"span"),v(16,Y$,2,0,"ng-container",11),E(17),p(),h(18,"button",55),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(2).decrement
Minute(r)})("keydown.space",function(r){return C(e),f(2).decrementMinute(r)})("mousedown",function(r){return C(e),f(2).onTimePickerElementMouseDown(r,1,-1)})("mouseup",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(2).onTimePickerElementMouseLeave()}),I(19,"span",57),p(),p(),v(20,Q$,3,1,"div",60),v(21,J$,8,2,"div",61),v(22,X$,7,1,"div",62),p()}if(2&t){const e=f(2);g(5),m("ngIf",e.currentHour<10),g(1),le(e.currentHour),g(5),le(e.timeSeparator),g(5),m("ngIf",e.currentMinute<10),g(1),le(e.currentMinute),g(3),m("ngIf",e.showSeconds),g(1),m("ngIf",e.showSeconds),g(1),m("ngIf","12"==e.hourFormat)}}const PD=function(t){return[t]};function t5(t,n){if(1&t){const e=z();h(0,"div",66),h(1,"button",67),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("click",function(r){retur
n C(e),f(2).onTodayButtonClick(r)}),p(),h(2,"button",67),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(2).onClearButtonClick(r)}),p(),p()}if(2&t){const e=f(2);g(1),m("label",e.getTranslation("today"))("ngClass",G(4,PD,e.todayButtonStyleClass)),g(1),m("label",e.getTranslation("clear"))("ngClass",G(6,PD,e.clearButtonStyleClass))}}function n5(t,n){1&t&&H(0)}const r5=function(t,n,e,i,r,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":n,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":i,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":s}},FD=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},s5=function(t){return{value:"visibleTouchUI",params:t}},o5=function(t){return{value:"visible",params:t}};function a5(t,n){if(1&t){const e=z();h(0,"div",8,9),M("@overlayAnimation.start",function(r){return C(e),f().onOverlayAnimationStart(r)})("@overlayAnimation.done",function(r){return C
(e),f().onOverlayAnimationDone(r)})("click",function(r){return C(e),f().onOverlayClick(r)}),ot(2),v(3,S$,1,0,"ng-container",10),v(4,q$,5,3,"ng-container",11),v(5,e5,23,8,"div",12),v(6,t5,3,8,"div",13),ot(7,1),v(8,n5,1,0,"ng-container",10),p()}if(2&t){const e=f();ge(e.panelStyleClass),m("ngStyle",e.panelStyle)("ngClass",Is(11,r5,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?G(21,s5,it(18,FD,e.showTransitionOptions,e.hideTransitionOptions)):G(26,o5,it(23,FD,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),g(3),m("ngTemplateOutlet",e.headerTemplate),g(1),m("ngIf",!e.timeOnly),g(1),m("ngIf",e.showTime||e.timeOnly),g(1),m("ngIf",e.showButtonBar),g(2),m("ngTemplateOutlet",e.footerTemplate)}}const l5=[[["p-header"]],[["p-footer"]]],c5=function(t,n,e,i){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":n,"p-calendar-disabled":e,"p-focus":i}},u5=["p-header","p-footer"],d5={provide:Ht,
useExisting:xe(()=>h5),multi:!0};let h5=(()=>{class t{constructor(e,i,r,s,o,a){this.el=e,this.renderer=i,this.cd=r,this.zone=s,this.config=o,this.overlayService=a,this.multipleSeparator=",",this.rangeSeparator="-",this.inline=!1,this.showOtherMonths=!0,this.icon="pi pi-calendar",this.shortYearCutoff="+10",this.hourFormat="24",this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.showOnFocus=!0,this.showWeek=!1,this.dataType="date",this.selectionMode="single",this.todayButtonStyleClass="p-button-text",this.clearButtonStyleClass="p-button-text",this.autoZIndex=!0,this.baseZIndex=0,this.keepInvalid=!1,this.hideOnDateTimeSelect=!0,this.timeSeparator=":",this.focusTrap=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onFocus=new R,this.onBlur=new R,this.onClose=new R,this.onSelect=new R,this.onInput=new R,this.onTodayClick=new R,this.onClearClick=new R,this.onMonthChange=new R,this.onYearChange=new R,this.
onClickOutside=new R,this.onShow=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(l,c){return"12"==this.hourFormat?12===l?c?12:0:c?l+12:l:l}}set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentY
ear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const i=e.split(":"),r=parseInt(i[0]),s=parseInt(i[1]);this.populateYearOptions(r,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get locale(){return this._locale}get responsiveOptions(){retu
rn this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._numberOfMonths}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}ngOnInit(){this.attributeSelector=va();const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWe
ekDays()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=S.getOuterWidth(this.containerViewChild.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let r=e;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(Qt.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[e]),e=6==e?0:++e}monthPickerValue
s(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let r=0;r<10;r++)e.push(i+r);return e}createMonths(e,i){this.months=this.months=[];for(let r=0;r<this.numberOfMonths;r++){let s=e+r,o=i;s>11&&(s=s%11-1,o=i+1),this.months.push(this.createMonth(s,o))}}getWeekNumber(e){let i=new Date(e.getTime());i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(e,i){let r=[],s=this.getFirstDayOfMonthIndex(e,i),o=this.getDaysCountInMonth(e,i),a=this.getDaysCountInPrevMonth(e,i),l=1,c=new Date,u=[],d=Math.ceil((o+s)/7);for(let _=0;_<d;_++){let y=[];if(0==_){for(let D=a-s+1;D<=a;D++){let T=this.getPreviousMonthAndYear(e,i);y.push({day:D,month:T.month,year:T.year,otherMonth:!0,today:this.isToday(c,D,T.month,T.year),selectable:this.isSelectable(D,T.month,T.year,!0)})}let b=7-y.length
;for(let D=0;D<b;D++)y.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)}),l++}else for(let b=0;b<7;b++){if(l>o){let D=this.getNextMonthAndYear(e,i);y.push({day:l-o,month:D.month,year:D.year,otherMonth:!0,today:this.isToday(c,l-o,D.month,D.year),selectable:this.isSelectable(l-o,D.month,D.year,!0)})}else y.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(y[0].year,y[0].month,y[0].day))),r.push(y)}return{month:e,year:i,dates:r,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===thi
s.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){if(this.currentYear--,this.yearNavigator&&this.currentYear<this.yearOptions[0]){let e=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]-e,this.yearOptions[th
is.yearOptions.length-1]-e)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){if(this.currentYear++,this.yearNavigator&&this.currentYear>this.yearOptions[this.yearOptions.length-1]){let e=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]+e,this.yearOptions[this.yearOptions.length-1]+e)}}switchToMonthView(e){this.currentView="month",e.preventDefault()}switchToYearView(e){this.currentView="year",e.preventDefault()}onDateSelect(e,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((r,s)=>!this.isDateEquals(r,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),th
is.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,i){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.currentView="date",this.createMonths(this.currentMonth,this.currentYear),this.cd.markForCheck(),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){"year"===this.view?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.currentView="month",this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i<this.value.length;i++)e+=this.formatDateTime(this.value[i]),i!==this.value.length-1&&(e+=this.multipleSeparator+" ");else if(th
is.isRangeSelection()&&this.value&&this.value.length){let r=this.value[1];e=this.formatDateTime(this.value[0]),r&&(e+=" "+this.rangeSeparator+" "+this.formatDateTime(r))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let i=null;return e&&(this.timeOnly?i=this.formatTime(e):(i=this.formatDate(e,this.getDateFormat()),this.showTime&&(i+=" "+this.formatTime(e)))),i}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}selectDate(e){let i=new Date(e.year,e.month,e.day);if(this.showTime&&(i.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.cu
rrentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate<i&&(i=this.maxDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.isSingleSelection())this.updateModel(i);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,i]:[i]);else if(this.isRangeSelection())if(this.value&&this.value.length){let r=this.value[0],s=this.value[1];!s&&i.getTime()>=r.getTime()?s=i:(r=i,s=null),this.updateModel([r,s])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;this.value&&(i=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let r=new Date;r.setDate(1),r.setMonth(e),r.setFullYear(i);let s=r.getDay()+this.getSundayIndex();return
s>=7?s-7:s}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let r=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(e,i){let r,s;return 0===e?(r=11,s=i-1):(r=e-1,s=i),{month:r,year:s}}getNextMonthAndYear(e,i){let r,s;return 11===e?(r=0,s=i+1):(r=e+1,s=i),{month:r,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let r of this.value)if(i=this.isDateEquals(r,e),i)break;return i}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()){
let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getMonth()===e&&i.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getFullYear()===e}return!1}isDateEquals(e,i){return!!e&&e.getDate()===i.day&&e.getMonth()===i.month&&e.getFullYear()===i.year}isDateBetween(e,i,r){if(e&&i){let o=new Date(r.year,r.month,r.day);return e.getTime()<=o.getTime()&&i.getTime()>=o.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,i,r,s){return e.getDate()===i&&e.getMonth()===r&&e.getFullYear()===s}isSelectable(e,i,r,s){let o=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&(this.minDate.getMonth()>i||this.minDate.
getMonth()===i&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<r||this.maxDate.getFullYear()===r&&(this.maxDate.getMonth()<i||this.maxDate.getMonth()===i&&this.maxDate.getDate()<e))&&(a=!1),this.disabledDates&&(l=!this.isDateDisabled(e,i,r)),this.disabledDays&&(c=!this.isDayDisabled(e,i,r)),o&&a&&l&&c)}isDateDisabled(e,i,r){if(this.disabledDates)for(let s of this.disabledDates)if(s.getFullYear()===r&&s.getMonth()===i&&s.getDate()===e)return!0;return!1}isDayDisabled(e,i,r){if(this.disabledDays){let o=new Date(r,i,e).getDay();return-1!==this.disabledDays.indexOf(o)}return!1}onInputFocus(e){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(e)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(e){this.focus=!1,this.onBlur.emit(e),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(e,i){this.overlayVisible?this.hideOverlay():(i.focus(),this.showOverlay())}onOverlayClick(e){this.o
verlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return this.config.getTranslation("monthNames")[e]}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode||13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(S.getFocusableElements(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,r){const s=e.currentTarget,o=s.parentElement;switch(e.which){case 40:{s.tabIndex="-1";let a=S.index
(o),l=o.parentElement.nextElementSibling;l?S.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let a=S.index(o),l=o.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];S.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let a=o.previousElementSibling;if(a){let l=a.children[0];S.hasClass(l,"p-disabled")||S.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,r);e.preventDefault();break}case 39:{s.tabIndex="-1";let a=o.nextElementSibling;if(a){let l=a.children[0];S.hasClass(l,"p-disab
led")?this.navigateToMonth(!1,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,r);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=S.index(r);let a=s[40===e.which?o+3:o-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:this.onMonthSelect(e,i),e.preventDefault();break;case 13:case 32:case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)
}}onYearCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=S.index(r);let a=s[40===e.which?o+2:o-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,i){if(e)if(1===this.numberOfMonths||0===i)this.navigationState={backward:!0},this.navBackward(event);else{let s=S.find(this.contentViewChild.nativeElement.children[i-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),o=s[s.length-1];o.tabIndex="0",o.focus()}else
if(1===this.numberOfMonths||i===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=S.findSingle(this.contentViewChild.nativeElement.children[i+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?S.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():S.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;i=S.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else e=S.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p
-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){let e;if("month"===this.currentView){let i=S.find(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),r=S.findSingle(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month.p-highlight");i.forEach(s=>s.tabIndex=-1),e=r||i[0],0===i.length&&S.find(this.contentViewChild.nativeElement,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(o=>o.tabIndex=-1)}else if("year"===this.currentView){let i=S.find(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),r=S.findSingle(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year.p-highlight");i.forEach(s=>s.tabIndex=-1),e=r
||i[0],0===i.length&&S.find(this.contentViewChild.nativeElement,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(o=>o.tabIndex=-1)}else if(e=S.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let i=S.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");e=i||S.findSingle(this.contentViewChild.nativeElement,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}e&&(e.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{e.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=S.getFocusableElements(this.contentViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==r||0===r)if(this.focusTrap)i[i.length-1].focus();else{if(-1===r)return this.hideOverlay();if(0===r)return}else i[r-1].focus();else if(-1==r||r===i.length-1){if(!this.focusTrap&&-1!
=r)return this.hideOverlay();i[0].focus()}else i[r+1].focus()}else i[0].focus();e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}validateTime(e,i,r,s){let o=this.value;const a=this.convertTo24Hour(e,s);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const l=o?o.toDateString():null;return!(this.minDate&&l&&this.minDate.toDateString()===l&&(this.minDate.getHours()>a||this.minDate.getHours()===a&&(this.minDate.getMinutes()>i||this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()<a||this.maxDate.getHours
()===a&&(this.maxDate.getMinutes()<i||this.maxDate.getMinutes()===i&&this.maxDate.getSeconds()<r)))}incrementHour(e){let r=this.currentHour+this.stepHour,s=this.pm;"24"==this.hourFormat?r=r>=24?r-24:r:"12"==this.hourFormat&&(this.currentHour<12&&r>11&&(s=!this.pm),r=r>=13?r-12:r),this.validateTime(r,this.currentMinute,this.currentSecond,s)&&(this.currentHour=r,this.pm=s),e.preventDefault()}onTimePickerElementMouseDown(e,i,r){this.disabled||(this.repeat(e,null,i,r),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,i,r,s){let o=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,r,s),this.cd.markForCheck()},o),r){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?
this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=this.currentHour-this.stepHour,r=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(r=!this.pm),i=i<=0?12+i:i),this.validateTime(i,this.currentMinute,this.currentSecond,r)&&(this.currentHour=i,this.pm=r),e.preventDefault()}incrementMinute(e){let i=this.currentMinute+this.stepMinute;i=i>59?i-60:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}decrementMinute(e){let i=this.currentMinute-this.stepMinute;i=i<0?60+i:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.pre
ventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const i=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,i)&&(this.pm=i,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let
i=e.target.value;try{let r=this.parseValueFromString(i);this.isValidSelection(r)&&(this.updateModel(r),this.updateUI())}catch(r){this.updateModel(null)}this.filled=null!=i&&i.length,this.onInput.emit(e)}isValidSelection(e){let i=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(i=!1):e.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1))&&this.isRangeSelection()&&(i=e.length>1&&e[1]>e[0]),i}parseValueFromString(e){if(!e||0===e.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let r=e.split(this.multipleSeparator);i=[];for(let s of r)i.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let r=e.split(" "+this.rangeSeparator+" ");i=[];for(let s=0;s<r.length;s++)i[s]=this.parseDateTime(r[s].trim())}return i}parseDateTime(e){let i,r=e.split(" ");if(this.timeOnly)i=new Date,this.populateTime(i,r[0],r[1]);else{const s=this.getDateForma
t();if(this.showTime){let o="12"==this.hourFormat?r.pop():null,a=r.pop();i=this.parseDate(r.join(" "),s),this.populateTime(i,a,o)}else i=this.parseDate(e,s)}return i}populateTime(e,i,r){if("12"==this.hourFormat&&!r)throw"Invalid Time";this.pm="PM"===r||"pm"===r;let s=this.parseTime(i);e.setHours(s.hour),e.setMinutes(s.minute),e.setSeconds(s.second)}updateUI(){let e=this.value||this.defaultDate||new Date;Array.isArray(e)&&(e=e[0]),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(e.getHours()),this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.s
howOverlay(),this.inputfieldViewChild.nativeElement.focus()))}onOverlayAnimationStart(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=e.element,this.overlay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?Tt.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):Tt.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(e));break;case"void":this.onOverlayHide(),this.onClose.emit(e)}}onOverlayAnimationDone(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&Tt.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):S.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.native
Element.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width=S.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=S.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=S.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",S.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):S.relativePosition(this.overlay,this.inputfieldViewChild.nativeElement))}enableModality(e){this.mask||(this.mask=document.createElement("div"),this.mask.style.zIndex=String(parseInt(e.style.zIndex)-1),S.addMultipleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.disableModality()}),document.body.appendChild(this.mask),S.addClass(document.body,"p-overflow-hidden"))}disableModality(
){this.mask&&(S.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.destroyMask.bind(this),this.mask.addEventListener("animationend",this.animationEndListener))}destroyMask(){document.body.removeChild(this.mask);let i,e=document.body.children;for(let r=0;r<e.length;r++)if(S.hasClass(e[r],"p-datepicker-mask-scrollblocker")){i=!0;break}i||S.removeClass(document.body,"p-overflow-hidden"),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.mask.removeEventListener("animationend",this.animationEndListener),this.animationEndListener=null)}writeValue(e){this.value=e,this.value&&"string"==typeof this.value&&(this.value=this.parseValueFromString(this.value)),this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}re
gisterOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(Qt.FIRST_DAY_OF_WEEK)}formatDate(e,i){if(!e)return"";let r;const s=u=>{const d=r+1<i.length&&i.charAt(r+1)===u;return d&&r++,d},o=(u,d,_)=>{let y=""+d;if(s(u))for(;y.length<_;)y="0"+y;return y},a=(u,d,_,y)=>s(u)?y[d]:_[d];let l="",c=!1;if(e)for(r=0;r<i.length;r++)if(c)"'"!==i.charAt(r)||s("'")?l+=i.charAt(r):c=!1;else switch(i.charAt(r)){case"d":l+=o("d",e.getDate(),2);break;case"D":l+=a("D",e.getDay(),this.getTranslation(Qt.DAY_NAMES_SHORT),this.getTranslation(Qt.DAY_NAMES));break;case"o":l+=o("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=o("m",e.getMonth()+1,2);break;case"M":l+=a("M",e.getMonth(),this.getTranslation(Qt.MONTH_NAMES_SHORT),this.g
etTranslation(Qt.MONTH_NAMES));break;case"y":l+=s("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":l+=e.getTime();break;case"!":l+=1e4*e.getTime()+this.ticksTo1970;break;case"'":s("'")?l+="'":c=!0;break;default:l+=i.charAt(r)}return l}formatTime(e){if(!e)return"";let i="",r=e.getHours(),s=e.getMinutes(),o=e.getSeconds();return"12"==this.hourFormat&&r>11&&12!=r&&(r-=12),i+="12"==this.hourFormat&&0===r?12:r<10?"0"+r:r,i+=":",i+=s<10?"0"+s:s,this.showSeconds&&(i+=":",i+=o<10?"0"+o:o),"12"==this.hourFormat&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(i[0]),o=parseInt(i[1]),a=this.showSeconds?parseInt(i[2]):null;if(isNaN(s)||isNaN(o)||s>23||o>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:o,second:a}}parseDate(e,i){if(null==
i||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let r,s,o,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,d=-1,_=-1,y=!1,D=A=>{let F=r+1<i.length&&i.charAt(r+1)===A;return F&&r++,F},T=A=>{let F=D(A),te="@"===A?14:"!"===A?20:"y"===A&&F?4:"o"===A?3:2,Le=new RegExp("^\\d{"+("y"===A?te:1)+","+te+"}"),Xe=e.substring(a).match(Le);if(!Xe)throw"Missing number at position "+a;return a+=Xe[0].length,parseInt(Xe[0],10)},k=(A,F,te)=>{let Ae=-1,Le=D(A)?te:F,Xe=[];for(let qe=0;qe<Le.length;qe++)Xe.push([qe,Le[qe]]);Xe.sort((qe,Dt)=>-(qe[1].length-Dt[1].length));for(let qe=0;qe<Xe.length;qe++){let Dt=Xe[qe][1];if(e.substr(a,Dt.length).toLowerCase()===Dt.toLowerCase()){Ae=Xe[qe][0],a+=Dt.length;break}}if(-1!==Ae)return Ae+1;throw"Unknown name at position "+a},x=()=>{if(e.charAt(a)!==i.charAt(r))throw"Unexpected literal at position "+a;a++};for("month"===this.v
iew&&(d=1),r=0;r<i.length;r++)if(y)"'"!==i.charAt(r)||D("'")?x():y=!1;else switch(i.charAt(r)){case"d":d=T("d");break;case"D":k("D",this.getTranslation(Qt.DAY_NAMES_SHORT),this.getTranslation(Qt.DAY_NAMES));break;case"o":_=T("o");break;case"m":u=T("m");break;case"M":u=k("M",this.getTranslation(Qt.MONTH_NAMES_SHORT),this.getTranslation(Qt.MONTH_NAMES));break;case"y":c=T("y");break;case"@":b=new Date(T("@")),c=b.getFullYear(),u=b.getMonth()+1,d=b.getDate();break;case"!":b=new Date((T("!")-this.ticksTo1970)/1e4),c=b.getFullYear(),u=b.getMonth()+1,d=b.getDate();break;case"'":D("'")?x():y=!0;break;default:x()}if(a<e.length&&(o=e.substr(a),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===c?c=(new Date).getFullYear():c<100&&(c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=l?0:-100)),_>-1)for(u=1,d=_;s=this.getDaysCountInMonth(c,u-1),!(d<=s);)u++,d-=s;if(b=this.daylightSavingAdjust(new Date(c,u-1,d)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate(
)!==d)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let i=new Date,r={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,r),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.body.appendChild(this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(r=>!(!r.breakpoint||!r.numMonths)).sort((r,s)=>-1*r.breakpoint.localeCompare(s.breakpoint,vo
id 0,{numeric:!0}));for(let r=0;r<i.length;r++){let{breakpoint:s,numMonths:o}=i[r],a=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n display: inline-flex !important;\n }\n `;for(let l=o;l<this.numberOfMonths;l++)a+=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${l+1}) {\n display: none !important;\n }\n `;e+=`\n @media screen and (max-width: ${s}) {\n ${a}\n }\n `}}this.responsiveStyleElement.innerHTML=e}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAn
gular(()=>{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener))}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Lc(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrol
lHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return S.hasClass(e.target,"p-datepicker-prev")||S.hasClass(e.target,"p-datepicker-prev-icon")||S.hasClass(e.target,"p-datepicker-next")||S.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!S.isAndroid()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Tt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),th
is.onOverlayHide()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(dn),w(vt),w(Te),w(Ai),w(Vc))},t.\u0275cmp=Q({type:t,selectors:[["p-calendar"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(He(v$,5),He(b$,5),He(w$,5)),2&e){let r;K(r=Y())&&(i.containerViewChild=r.first),K(r=Y())&&(i.inputfieldViewChild=r.first),K(r=Y())&&(i.content=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,i){2&e&&si("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focus)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selec
tOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",view:"view",defaultDate:"defaultDate",minDa
te:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[be([d5])],ngContentSelectors:u5,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],["type","button","pButton",""
,"pRipple","","tabindex","0",1,"p-datepicker-trigger",3,"icon","disabled","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[1,"p-datepicker-next-icon","pi","pi-chevron-right"],["class","p-datepicker-calendar-container",4,"ngIf"],["type
","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],[1,"p-datepicker-prev-icon","pi","pi-chevron-left"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],[3,"ngClass"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p
-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"pi","pi-chevron-up"],[1,"pi","pi-chevron-down"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(e,i){1&e&&(Dn(l5),h(0,"span",0,1),v(2,D$,3,16,"ng-template",2),v(3,a5,9,28,"div",3),p()),2&e&&(ge(i.styleClass),m("ngClass",Di(6,c5,i.showIcon,i.timeOnly,i.disabled,i.focus))("ngStyle",i.s
tyle),g(2),m("ngIf",!i.inline),g(1),m("ngIf",i.inline||i.overlayVisible))},directives:[Je,lt,Me,Df,ui,Ot,Mt],styles:[".p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-con
tainer .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-i
tems:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}\n"],encapsulation:2,data:{animation:[Ir("overlayAnimation",[rr("visibleTouchUI",Qe({transform:"translate(-50%,-50%)",opacity:1})),jt("void => visible",[Qe({opacity:0,transform:"scaleY(0.8)"}),Pt("{{showTransitionParams}}",Qe({opacity:1,transform:"*"}))]),jt("visible => void",[Pt("{{hideTransitionParams}}",Qe({opacity:0}))]),jt("void => visibleTouchUI",[Qe({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),Pt("{{showTransitionParams}}")]),jt("visibleTouchUI => void",[Pt("{{hideTransitionParams}}",Qe({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0}),t})(),p5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Sa,Et,hn],Sa,Et]}),t})();const f5=["container"],g5=["resizeHelper"],m5=["reorderIndicatorUp"],_5=["reorderIndicatorDown"],y5=["wrapper"],v5=["table"],b5=["tableHeader"];function w5(
t,n){if(1&t&&(h(0,"div",14),I(1,"i"),p()),2&t){const e=f();g(1),ge("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function C5(t,n){1&t&&H(0)}function D5(t,n){if(1&t&&(h(0,"div",15),v(1,C5,1,0,"ng-container",16),p()),2&t){const e=f();g(1),m("ngTemplateOutlet",e.captionTemplate)}}function S5(t,n){if(1&t){const e=z();h(0,"p-paginator",17),M("onPageChange",function(r){return C(e),f().onPageChange(r)}),p()}if(2&t){const e=f();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJ
umpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function T5(t,n){1&t&&H(0)}function E5(t,n){1&t&&H(0)}function x5(t,n){if(1&t&&I(0,"tbody",25),2&t){const e=f(2);m("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.frozenBodyTemplate)("frozen",!0)}}function I5(t,n){1&t&&H(0)}const ar=function(t){return{$implicit:t}};function k5(t,n){if(1&t&&(h(0,"tfoot",26),v(1,I5,1,0,"ng-container",20),p()),2&t){const e=f(2);g(1),m("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",G(2,ar,e.columns))}}function M5(t,n){if(1&t&&(h(0,"table",18,19),v(2,T5,1,0,"ng-container",20),h(3,"thead",21),v(4,E5,1,0,"ng-container",20),p(),v(5,x5,1,5,"tbody",22),I(6,"tbody",23),v(7,k5,2,4,"tfoot",24),p()),2&t){const e=f();m("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),q("id",e.id+"-table"),g(2),m("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",
G(12,ar,e.columns)),g(2),m("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",G(14,ar,e.columns)),g(1),m("ngIf",e.frozenValue||e.frozenBodyTemplate),g(1),m("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),g(1),m("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function O5(t,n){1&t&&H(0)}function R5(t,n){1&t&&H(0)}function A5(t,n){if(1&t&&I(0,"tbody",25),2&t){const e=f(2);m("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate)("frozen",!0)}}function P5(t,n){1&t&&H(0)}function F5(t,n){if(1&t&&(h(0,"tfoot",26),v(1,P5,1,0,"ng-container",20),p()),2&t){const e=f(2);g(1),m("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",G(2,ar,e.columns))}}function L5(t,n){if(1&t){const e=z();h(0,"cdk-virtual-scroll-viewport",27),M("scrolledIndexChange",function(r){return C(e),f().onScrollIndexChange(r)}),h(1,"table",18,19),v(3,O5,1,0,"ng-containe
r",20),h(4,"thead",21,28),v(6,R5,1,0,"ng-container",20),p(),v(7,A5,1,5,"tbody",22),I(8,"tbody",23),v(9,F5,2,4,"tfoot",24),p(),p()}if(2&t){const e=f();wi("height","flex"!==e.scrollHeight?e.scrollHeight:void 0),m("itemSize",e.virtualRowHeight)("minBufferPx",e.minBufferPx)("maxBufferPx",e.maxBufferPx),g(1),m("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),q("id",e.id+"-table"),g(2),m("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",G(17,ar,e.columns)),g(3),m("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",G(19,ar,e.columns)),g(1),m("ngIf",e.frozenValue||e.frozenBodyTemplate),g(1),m("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),g(1),m("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function N5(t,n){if(1&t){const e=z();h(0,"p-paginator",29),M("onPageChange",function(r){return C(e),f().onPageChange(r)}),p()}if(2&t){const e=f();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecor
ds)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function V5(t,n){1&t&&H(0)}function B5(t,n){if(1&t&&(h(0,"div",30),v(1,V5,1,0,"ng-container",16),p()),2&t){const e=f();g(1),m("ngTemplateOutlet",e.summaryTemplate)}}function H5(t,n){1&t&&I(0,"div",31,32)}function z5(t,n){1&t&&I(0,"span",33,34)}function j5(t,n){1&t&&I(0,"span",35,36)}const U5=function(t,n,e,i,r,s,o,a,l,c,u,d,_,y){return{"p-datatable p-component":!0,
"p-datatable-hoverable-rows":t,"p-datatable-auto-layout":n,"p-datatable-resizable":e,"p-datatable-resizable-fit":i,"p-datatable-scrollable":r,"p-datatable-scrollable-vertical":s,"p-datatable-scrollable-horizontal":o,"p-datatable-scrollable-both":a,"p-datatable-flex-scrollable":l,"p-datatable-responsive-stack":c,"p-datatable-responsive-scroll":u,"p-datatable-responsive":d,"p-datatable-grouped-header":_,"p-datatable-grouped-footer":y}},$5=function(t){return{height:t}},G5=["pTableBody",""];function W5(t,n){1&t&&H(0)}const pu=function(t,n,e,i,r){return{$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r}};function q5(t,n){if(1&t&&(pe(0,3),v(1,W5,1,0,"ng-container",4),fe()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",yr(2,pu,i,s.dt.paginator?s.dt.first+r:r,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function K5(t,n){1&t&&H(0)}function Y5(t,n){if(1&t&&(pe(0),v(1,K5,1,0,"ng-container",4)
,fe()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.template)("ngTemplateOutletContext",yr(2,pu,i,s.dt.paginator?s.dt.first+r:r,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function Q5(t,n){1&t&&H(0)}const Z5=function(t,n,e,i,r,s,o){return{$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r,rowgroup:s,rowspan:o}};function J5(t,n){if(1&t&&(pe(0),v(1,Q5,1,0,"ng-container",4),fe()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.template)("ngTemplateOutletContext",function Uv(t,n,e,i,r,s,o,a,l,c){const u=$t()+t,d=O();let _=Cn(d,u,e,i,r,s);return bl(d,u+4,o,a,l)||_?ri(d,u+7,c?n.call(c,e,i,r,s,o,a,l):n(e,i,r,s,o,a,l)):Fo(d,u+7)}(2,Z5,i,s.dt.paginator?s.dt.first+r:r,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen,s.shouldRenderRowspan(s.value,i,r),s.calculateRowGroupSize(s.value,i,r)))}}function X5(t,n){1&t&&H(0)}function e8(t,n){if(1&t&&(pe(0,3),v(1,X5,1,0,"ng-container",4),fe()),2&t){const e=f
(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",yr(2,pu,i,s.dt.paginator?s.dt.first+r:r,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function t8(t,n){if(1&t&&(v(0,q5,2,8,"ng-container",2),v(1,Y5,2,8,"ng-container",0),v(2,J5,2,10,"ng-container",0),v(3,e8,2,8,"ng-container",2)),2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngIf",r.dt.groupHeaderTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,i)),g(1),m("ngIf","rowspan"!==r.dt.rowGroupMode),g(1),m("ngIf","rowspan"===r.dt.rowGroupMode),g(1),m("ngIf",r.dt.groupFooterTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,e,i))}}function n8(t,n){if(1&t&&(pe(0),v(1,t8,4,4,"ng-template",1),fe()),2&t){const e=f();g(1),m("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function r8(t,n){1&t&&H(0)}function s8(t,n){if(1&t&&v(0,r8,1,0,"ng-container",4),2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngTempl
ateOutlet",e?r.template:r.dt.loadingBodyTemplate)("ngTemplateOutletContext",yr(2,pu,e,r.dt.paginator?r.dt.first+i:i,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(e),r.frozen))}}function o8(t,n){if(1&t&&(pe(0),v(1,s8,1,8,"ng-template",5),fe()),2&t){const e=f();g(1),m("cdkVirtualForOf",e.dt.filteredValue||e.dt.value)("cdkVirtualForTrackBy",e.dt.rowTrackBy)("cdkVirtualForTemplateCacheSize",0)}}function a8(t,n){1&t&&H(0)}const fu=function(t,n,e,i,r,s){return{$implicit:t,rowIndex:n,columns:e,expanded:i,editing:r,frozen:s}};function l8(t,n){if(1&t&&(pe(0),v(1,a8,1,0,"ng-container",4),fe()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.template)("ngTemplateOutletContext",Is(2,fu,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function c8(t,n){1&t&&H(0)}function u8(t,n){if(1&t&&(pe(0,3),v(1,c8,1,0,"ng-container",4),fe()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplat
eOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Is(2,fu,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function d8(t,n){1&t&&H(0)}function h8(t,n){1&t&&H(0)}function p8(t,n){if(1&t&&(pe(0,3),v(1,h8,1,0,"ng-container",4),fe()),2&t){const e=f(2),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Is(2,fu,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}const LD=function(t,n,e,i){return{$implicit:t,rowIndex:n,columns:e,frozen:i}};function f8(t,n){if(1&t&&(pe(0),v(1,d8,1,0,"ng-container",4),v(2,p8,2,9,"ng-container",2),fe()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",Di(3,LD,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.frozen)),g(1),m("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMo
de&&s.shouldRenderRowGroupFooter(s.value,i,r))}}function g8(t,n){if(1&t&&(v(0,l8,2,9,"ng-container",0),v(1,u8,2,9,"ng-container",2),v(2,f8,3,8,"ng-container",0)),2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngIf",!r.dt.groupHeaderTemplate),g(1),m("ngIf",r.dt.groupHeaderTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,i)),g(1),m("ngIf",r.dt.isRowExpanded(e))}}function m8(t,n){if(1&t&&(pe(0),v(1,g8,3,3,"ng-template",1),fe()),2&t){const e=f();g(1),m("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function _8(t,n){1&t&&H(0)}function y8(t,n){1&t&&H(0)}function v8(t,n){if(1&t&&(pe(0),v(1,y8,1,0,"ng-container",4),fe()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",Di(2,LD,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.frozen))}}function b8(t,n){if(1&t&&(v(0,_8,1,0,"ng-container",4),v(1,v8,2,7,"ng-container",0)),2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngTemplateOutlet
",r.template)("ngTemplateOutletContext",Is(3,fu,e,r.dt.paginator?r.dt.first+i:i,r.columns,r.dt.isRowExpanded(e),"row"===r.dt.editMode&&r.dt.isRowEditing(e),r.frozen)),g(1),m("ngIf",r.dt.isRowExpanded(e))}}function w8(t,n){if(1&t&&(pe(0),v(1,b8,2,10,"ng-template",1),fe()),2&t){const e=f();g(1),m("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function C8(t,n){1&t&&H(0)}const ND=function(t,n){return{$implicit:t,frozen:n}};function D8(t,n){if(1&t&&(pe(0),v(1,C8,1,0,"ng-container",4),fe()),2&t){const e=f();g(1),m("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",it(2,ND,e.columns,e.frozen))}}function S8(t,n){1&t&&H(0)}function T8(t,n){if(1&t&&(pe(0),v(1,S8,1,0,"ng-container",4),fe()),2&t){const e=f();g(1),m("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",it(2,ND,e.columns,e.frozen))}}let gu=(()=>{class t{constructor(){this.sortSource=new Oe,this.selectionSource=new Oe,this.contextMenuSource=new Oe,this.valueSource=new Oe,this.totalRecords
Source=new Oe,this.columnsSource=new Oe,this.resetSource=new Oe,this.sortSource$=this.sortSource.asObservable(),this.selectionSource$=this.selectionSource.asObservable(),this.contextMenuSource$=this.contextMenuSource.asObservable(),this.valueSource$=this.valueSource.asObservable(),this.totalRecordsSource$=this.totalRecordsSource.asObservable(),this.columnsSource$=this.columnsSource.asObservable(),this.resetSource$=this.resetSource.asObservable()}onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onResetChange(){this.resetSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),mu=(()=>{class t{constructor(e,i,r,s,o,a){this.el=e,this.zone=i,this.tableService=r,this.cd=s,this.filterService=o,this.ove
rlayService=a,this.pageLinks=5,this.alwaysShowPaginator=!0,this.paginatorPosition="bottom",this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.defaultSortOrder=1,this.sortMode="single",this.resetPageOnSort=!0,this.selectAllChange=new R,this.selectionChange=new R,this.contextMenuSelectionChange=new R,this.contextMenuSelectionMode="separate",this.rowTrackBy=(l,c)=>c,this.lazy=!1,this.lazyLoadOnInit=!0,this.compareSelectionBy="deepEquals",this.csvSeparator=",",this.exportFilename="download",this.filters={},this.filterDelay=300,this.expandedRowKeys={},this.editingRowKeys={},this.rowExpandMode="multiple",this.scrollDirection="vertical",this.virtualScrollDelay=250,this.virtualRowHeight=28,this.columnResizeMode="fit",this.loadingIcon="pi pi-spinner",this.showLoader=!0,this.showInitialSortBadge=!0,this.stateStorage="session",this.editMode="cell",this.groupRowsByOrder=1,this.responsiveL
ayout="stack",this.breakpoint="960px",this.onRowSelect=new R,this.onRowUnselect=new R,this.onPage=new R,this.onSort=new R,this.onFilter=new R,this.onLazyLoad=new R,this.onRowExpand=new R,this.onRowCollapse=new R,this.onContextMenuSelect=new R,this.onColResize=new R,this.onColReorder=new R,this.onRowReorder=new R,this.onEditInit=new R,this.onEditComplete=new R,this.onEditCancel=new R,this.onHeaderCheckboxToggle=new R,this.sortFunction=new R,this.firstChange=new R,this.rowsChange=new R,this.onStateSave=new R,this.onStateRestore=new R,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=va()}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterConten
tInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"rowspan":this.rowspanTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenrows":this.frozenRowsTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTem
plate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths(),this.scrollable&&this.virtualScroll&&(this.virtualScrollSubscription=this.virtualScrollBody.renderedRangeStream.subscribe(e=>{this.tableHeaderViewChild.nativeElement.style.top=e.start*this.virtualRowHeight*-1+"px"}))}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"mu
ltiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&t
his.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}ge
t multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}get dataToRender(){let e=this.filteredValue||this.value;return e?this.paginator&&!this.lazy?e.slice(this.first,this.first+this.rows):e:[]}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(V.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(V.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows}),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=n
ull,this.scrollable&&this.resetScrollTop()}sort(e){let i=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let r=i.metaKey||i.ctrlKey,s=this.getSortMeta(e.field);s?r?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!r||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,i=this.sortField?this.sortOrder:this.groupRowsByOrder
;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&i){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:i}):(this.value.sort((s,o)=>{let a=V.resolveFieldData(s,e),l=V.resolveFieldData(o,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):a<l?-1:a>l?1:0,i*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let r={field:e,order:i};this.onSort.emit(r),this.tableService.onSort(r)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsM
eta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,i)=>this.multisortField(e,i,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,i,r,s){let o=V.resolveFieldData(e,r[s].field),a=V.resolveFieldData(i,r[s].field),l=null;if(null==o&&null!=a)l=-1;else if(null!=o&&null==a)l=1;else if(null==o&&null==a)l=0;else if("string"==typeof o||o instanceof String){if(o.localeCompare&&o!=a)return r[s].order*o.localeCompare(a)}else l=o<a?-1:1;return o==a?r.length-1>s?this.multisortField(e,i,r,s+1):0:r[s].order*l}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field===e)return this.multiSort
Meta[i];return null}isSorted(e){if("single"===this.sortMode)return this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let i=!1;if(this.multiSortMeta)for(let r=0;r<this.multiSortMeta.length;r++)if(this.multiSortMeta[r].field==e){i=!0;break}return i}}handleRowClick(e){let i=e.originalEvent.target,r=i.nodeName,s=i.parentElement&&i.parentElement.nodeName;if("INPUT"!=r&&"BUTTON"!=r&&"A"!=r&&"INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&!S.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let o=e.rowData,a=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowIndex)S.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=a,this.selectRange(e.originalEvent,a);else{let l=this.isSelected(o);if(!l&&!this.isRowSelectable(o,a))return;let c=!this.rowTouched&&this.metaKeySelection,u=this.dataKey?String(V.resolveFieldData(o,this.dataKey)):null;if(t
his.anchorRowIndex=a,this.rangeRowIndex=a,c){let d=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(l&&d){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let _=this.findIndexInSelection(o);this._selection=this.selection.filter((y,b)=>b!=_),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(d?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChang
e.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let d=this.findIndexInSelection(o);this._selection=this.selection.filter((_,y)=>y!=d),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,o]:[o],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const i=e.rowDa
ta,r=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:i,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(i);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(i),o=this.dataKey?String(V.resolveFieldData(i,this.dataKey)):null;if(!s){if(!this.isRowSelectable(i,r))return;this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:i,index:e.rowIndex})}}}selectRange(e,i){let r,s;this.anchorRowIn
dex>i?(r=i,s=this.anchorRowIndex):this.anchorRowIndex<i?(r=this.anchorRowIndex,s=i):(r=i,s=i),this.lazy&&this.paginator&&(r-=this.first,s-=this.first);let o=[];for(let a=r;a<=s;a++){let l=this.filteredValue?this.filteredValue[a]:this.value[a];if(!this.isSelected(l)){if(!this.isRowSelectable(l,i))continue;o.push(l),this._selection=[...this.selection,l];let c=this.dataKey?String(V.resolveFieldData(l,this.dataKey)):null;c&&(this.selectionKeys[c]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:o,type:"row"})}clearSelectionRange(e){let i,r;this.rangeRowIndex>this.anchorRowIndex?(i=this.anchorRowIndex,r=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(i=this.rangeRowIndex,r=this.anchorRowIndex):(i=this.rangeRowIndex,r=this.rangeRowIndex);for(let s=i;s<=r;s++){let o=this.value[s],a=this.findIndexInSelection(o);this._selection=this.selection.filter((c,u)=>u!=a);let l=this.dataKey?String(V.resolveFieldData(o,this.dataKey)):null;l&&delete t
his.selectionKeys[l],this.onRowUnselect.emit({originalEvent:e,data:o,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[V.resolveFieldData(e,this.dataKey)]:this.selection instanceof Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let i=-1;if(this.selection&&this.selection.length)for(let r=0;r<this.selection.length;r++)if(this.equals(e,this.selection[r])){i=r;break}return i}isRowSelectable(e,i){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:i}))}toggleRowWithRadio(e,i){if(this.preventSelectionSetterPropagation=!0,this.selection!=i){if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=i,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(V.resolveFieldData(i,this.dataKey))]=1)}else this._selection=null,this.selectionChan
ge.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,i){this.selection=this.selection||[];let r=this.isSelected(i),s=this.dataKey?String(V.resolveFieldData(i,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,r){let o=this.findIndexInSelection(i);this._selection=this.selection.filter((a,l)=>l!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState
()}toggleRowsWithCheckbox(e,i){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:i});else{const r=this.selectionPageOnly?this.dataToRender:this.filteredValue||this.value||[];let s=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!r.some(a=>this.equals(o,a))):[];i&&(s=this.frozenValue?[...s,...this.frozenValue,...r]:[...s,...r],s=this.rowSelectable?s.filter((o,a)=>this.rowSelectable({data:o,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:i}),this.isStateful()&&this.saveState()}}equals(e,i){return"equals"===this.compareSelectionBy?e===i:V.equals(e,i,this.dataKey)}filter(e,i,r){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:e,matchMode:r},this.filterTimeout=setTime
out(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,i){this.filter(e,"global",i)}isFilterBlank(e){return null==e||"string"==typeof e&&0==e.trim().length||e instanceof Array&&0==e.length}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let i=0;i<this.value.length;i++){let a,r=!0,s=!1,o=!1;for(let l in this.filters)if(this.filters.hasOwnProperty(l)&&"global"!==l){o=!0;let c=l,u=this.filters[c];if(Array.isArray(u)){for(let d of u)if(r=this.executeLocalFilter(c,this.value[i],d),d.operator===W0.OR&&r||d.operator===W0.AND&&!r)break}else r=this.executeLocalFilt
er(c,this.value[i],u);if(!r)break}if(this.filters.global&&!s&&e)for(let l=0;l<e.length&&(s=this.filterService.filters[this.filters.global.matchMode](V.resolveFieldData(this.value[i],e[l].field||e[l]),this.filters.global.value,this.filterLocale),!s);l++);a=this.filters.global?o?o&&r&&s:s:o&&r,a&&this.filteredValue.push(this.value[i])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}else this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0)}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(e,i,r){let s=r.value,o=r.matchMode||At.STARTS_WITH,a=V.resolv
eFieldData(i,e);return this.filterService.filters[o](a,s,this.filterLocale)}hasFilter(){let e=!0;for(let i in this.filters)if(this.filters.hasOwnProperty(i)){e=!1;break}return!e}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.filters.global&&(this.filters.global.value=null),this.filteredValue=null,this.tableService.onResetChange(),this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}reset(){this.clear()}exportCSV(e){let i,r="",s=this.columns;e&&e.selectionOnly?i=this.selection||[]:(i=this.filteredValue||this.value,this.frozenValue&&(i=i?[...this.frozenValue
,...i]:this.frozenValue));for(let l=0;l<s.length;l++){let c=s[l];!1!==c.exportable&&c.field&&(r+='"'+(c.header||c.field)+'"',l<s.length-1&&(r+=this.csvSeparator))}i.forEach((l,c)=>{r+="\n";for(let u=0;u<s.length;u++){let d=s[u];if(!1!==d.exportable&&d.field){let _=V.resolveFieldData(l,d.field);_=null!=_?this.exportFunction?this.exportFunction({data:_,field:d.field}):String(_).replace(/"/g,'""'):"",r+='"'+_+'"',u<s.length-1&&(r+=this.csvSeparator)}}});let o=new Blob([r],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.style.display="none",document.body.appendChild(a),void 0!==a.download?(a.setAttribute("href",URL.createObjectURL(o)),a.setAttribute("download",this.exportFilename+".csv"),a.click()):(r="data:text/csv;charset=utf-8,"+r,window.open(encodeURI(r))),document.body.removeChild(a)}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.virtualScrollBody&&this.virtualScrollBody.scrollToIndex(e)}onScrol
lIndexChange(e){this.lazy&&(this.virtualScrollTimeout&&clearTimeout(this.virtualScrollTimeout),this.virtualScrollTimeout=setTimeout(()=>{let i=Math.floor(e/this.rows),r=0===i?0:(i-1)*this.rows,s=0===i?2*this.rows:3*this.rows;i!==this.virtualPage&&(this.virtualPage=i,this.onLazyLoad.emit({first:r,rows:s,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}))},this.virtualScrollDelay))}scrollTo(e){this.virtualScrollBody?this.virtualScrollBody.scrollTo(e):this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top)}updateEditingCell(e,i,r,s){this.editingCell=e,this.editingCellData=i,this.editingCellField=r,this.editingCellRowIndex=s,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===S.find(t
his.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(S.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1},document.addEventListener("click",this.documentEditListener))}unbindDocumentEditListener(){this.documentEditListener&&(document.removeEventListener("click",this.documentEditListener),this.documentEditListener=null)}initRowEdit(e){let i=String(V.resolveFieldData(e,this.dataKey));this.editingRowKeys[i]=!0}saveRowEdit(e,i){if(0===S.find(i,".ng-invalid.ng-dirty").length){let r=S
tring(V.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[r]}}cancelRowEdit(e){let i=String(V.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}toggleRow(e,i){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let r=String(V.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[r]?(delete this.expandedRowKeys[r],this.onRowCollapse.emit({originalEvent:i,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[r]=!0,this.onRowExpand.emit({originalEvent:i,data:e})),i&&i.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(V.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(V.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let i=S.getOffset(this.containerViewChild.nativ
eElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-i+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let i=S.getOffset(this.containerViewChild.nativeElement).left;S.addClass(this.containerViewChild.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-i+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,r=this.resizeColumnElement.offsetWidth+e;if(r>=(this.resizeColumnElement.style.minWidth||15)){if("fit"===this.columnResizeMode){let o=this.resizeColumnElement.nextElementSibling,a=o.offs
etWidth-e;r>15&&a>15&&(this.scrollable?this.resizeTableCells(r,a):(this.resizeColumnElement.style.width=r+"px",o&&(o.style.width=a+"px")))}else if("expand"===this.columnResizeMode){let o=this.tableViewChild.nativeElement.offsetWidth+e;this.tableViewChild.nativeElement.style.minWidth=o+"px",this.resizeColumnElement.style.width=r+"px",this.scrollable?this.resizeTableCells(r,null):this.tableViewChild.nativeElement.style.width=o+"px"}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",S.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(e,i){let r=S.index(this.resizeColumnElement),s=[];const o=S.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");S.find(o,"tr > th").forEach(c=>s.push(S.getOuterWidth(c))),this.destroyStyleElement(),this.createStyleElement();let l="";s.forEach((c,u)=>{let d=u===r?e:i&&u===r+1?i:c;l+=`\n
#${this.id}-table > .p-datatable-thead > tr > th:nth-child(${u+1}) {\n flex: 0 0 ${d}px !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${u+1}) {\n flex: 0 0 ${d}px !important;\n }\n `}),this.styleElement.innerHTML=l}onColumnDragStart(e,i){this.reorderIconWidth=S.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=S.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=i,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,i){if(this.reorderableColumns&&this.draggedColumn&&i){e.preventDefault();let r=S.getOffset(this.containerViewChild.nativeElement),s=S.getOffset(i);if(this.draggedColumn!=i){let o=S.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),a=S.indexWithinGroup(i,"preorderablecolumn"),l=s.left-r.left,u=s.left+i.offsetWidth/2;this.reorderInd
icatorUpViewChild.nativeElement.style.top=s.top-r.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-r.top+i.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),a-o==1&&-1===this.dropPosition||a-o==-1&&1===this.dropPosition?(this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none"):(this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.displ
ay="block")}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&(e.preventDefault(),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none")}onColumnDrop(e,i){if(e.preventDefault(),this.draggedColumn){let r=S.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=S.indexWithinGroup(i,"preorderablecolumn"),o=r!=s;o&&(s-r==1&&-1===this.dropPosition||r-s==1&&1===this.dropPosition)&&(o=!1),o&&s<r&&1===this.dropPosition&&(s+=1),o&&s>r&&-1===this.dropPosition&&(s-=1),o&&(V.reorderArray(this.columns,r,s),this.onColReorder.emit({dragIndex:r,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null
,this.dropPosition=null}}onRowDragStart(e,i){this.rowDragging=!0,this.draggedRowIndex=i,e.dataTransfer.setData("text","b")}onRowDragOver(e,i,r){if(this.rowDragging&&this.draggedRowIndex!==i){let s=S.getOffset(r).top+S.getWindowScrollTop(),o=e.pageY,a=s+S.getOuterHeight(r)/2,l=r.previousElementSibling;o<a?(S.removeClass(r,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=i,l?S.addClass(l,"p-datatable-dragpoint-bottom"):S.addClass(r,"p-datatable-dragpoint-top")):(l?S.removeClass(l,"p-datatable-dragpoint-bottom"):S.addClass(r,"p-datatable-dragpoint-top"),this.droppedRowIndex=i+1,S.addClass(r,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,i){let r=i.previousElementSibling;r&&S.removeClass(r,"p-datatable-dragpoint-bottom"),S.removeClass(i,"p-datatable-dragpoint-bottom"),S.removeClass(i,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,i){if(null!=this.droppedRowIndex){let r=this.draggedRowIndex>this.dro
ppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;V.reorderArray(this.value,this.draggedRowIndex,r),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:r})}this.onRowDragLeave(e,i),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let i={};this.paginator&&(i.first=this.first,i.rows=this.rows),this.sortField&&(i.sortField=this.sortField,i.sortOrder=this.sortOrder),this.multiSortMeta&&(i.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(i.filters=this.filters),this.resizableColumns&&this.saveColumnWid
ths(i),this.reorderableColumns&&this.saveColumnOrder(i),this.selection&&(i.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(i.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(i)),this.onStateSave.emit(i)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const i=this.getStorage().getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(i){let o=JSON.parse(i,function(o,a){return"string"==typeof a&&r.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=o.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=o.rows,this.rowsChange.emit(this.rows))),o.sortField&&(this.restoringSort=!0,this._sortField=o.sortField,this._sortOrder=o.sortOrder),o.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=o.multiSortMeta),o.filters&&(this.restoringFilter=!0,this.filters=o.filters),this.resizableColumns&&(this.columnWidthsState=o.columnWidths,this
.tableWidthState=o.tableWidth),o.expandedRowKeys&&(this.expandedRowKeys=o.expandedRowKeys),o.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(o.selection)),this.stateRestored=!0,this.onStateRestore.emit(o)}}saveColumnWidths(e){let i=[];S.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr > th").forEach(s=>i.push(S.getOuterWidth(s))),e.columnWidths=i.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=S.getOuterWidth(this.tableViewChild.nativeElement)+"px")}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&(this.tableViewChild.nativeElement.style.width=this.tableWidthState,this.tableViewChild.nativeElement.style.minWidth=this.tableWidthState,this.containerViewChild.nativeElement.style.width=this.tableWidthState),this.createStyleElement(),this.scrollable&&e&&e.length>0){let i="";e.forEach((r,s)=>{i+=`\n #${this.id}-table
> .p-datatable-thead > tr > th:nth-child(${s+1}) {\n flex: 0 0 ${r}px;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}) {\n flex: 0 0 ${r}px;\n }\n `}),this.styleElement.innerHTML=i}else S.find(this.tableViewChild.nativeElement,".p-datatable-thead > tr > th").forEach((i,r)=>{i.style.width=e[r]+"px"})}}saveColumnOrder(e){if(this.columns){let i=[];this.columns.map(r=>{i.push(r.field||r.key)}),e.columnOrder=i}}restoreColumnOrder(){const i=this.getStorage().getItem(this.stateKey);if(i){let s=JSON.parse(i).columnOrder;if(s){let o=[];s.map(a=>{let l=this.findColumnByKey(a);l&&o.push(l)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(!this.columns)return null;for(let i of this.columns)if(i.key===e||i.field===e)return i}createStyleElement(){this.styleElement=document.createEl
ement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.head.appendChild(this.responsiveStyleElement),this.responsiveStyleElement.innerHTML=`\n@media screen and (max-width: ${this.breakpoint}) {\n #${this.id} .p-datatable-thead > tr > th,\n #${this.id} .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id} .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id} .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\n border
-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id} .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n`)}destroyResponsiveStyle(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.virtualScrollSubscription&&this.virtualScrollSubscription.unsubscribe(),this.destroyStyleElement(),this.destroyResponsiveStyle()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(Te),w(gu),w(vt),w(Nc),w(Vc))},t.\u0275cmp=Q({type:t,selectors:[["p-table"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(He(f5,5),He(g5,5),He(m5,5),He(_5,5),He(y5,5),He(v5,5),He(b5,5),He(Da,5)),2&e){let r;K(r
=Y())&&(i.containerViewChild=r.first),K(r=Y())&&(i.resizeHelperViewChild=r.first),K(r=Y())&&(i.reorderIndicatorUpViewChild=r.first),K(r=Y())&&(i.reorderIndicatorDownViewChild=r.first),K(r=Y())&&(i.wrapperViewChild=r.first),K(r=Y())&&(i.tableViewChild=r.first),K(r=Y())&&(i.tableHeaderViewChild=r.first),K(r=Y())&&(i.virtualScrollBody=r.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInp
ut",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollDelay:"virtualScrollDelay",virtualRowHeight:"virtualRo
wHeight",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll"},outputs:{selectAllChange:"selectAllChange",selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onRowSel
ect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[be([gu]),gt],decls:14,vars:33,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLa
stIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],["role","table","class","p-datatable-table",3,"ngClass","ngStyle",4,"ngIf"],["tabindex","0","class","p-datatable-virtual-scrollable-body",3,"itemSize","height","minBufferPx","maxBufferPx","scrolledIndexChange",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","pi pi-arrow-down p-datatable-reorder-indicator-up","style","display:none",4,"ngIf"],["class
","pi pi-arrow-up p-datatable-reorder-indicator-down","style","display:none",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[1,"p-datatable-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],["role","table",1,"p-datatable-table",3,"ngClass","ngStyle"],["table",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datatable-thead"],["class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],[1,"p-datatable-tbody",3,"value","pTableBody","pTableBodyTemplate"],["class","p-datatable-tfoot",4,"ngIf"],[1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","f
rozenRows","pTableBody","pTableBodyTemplate","frozen"],[1,"p-datatable-tfoot"],["tabindex","0",1,"p-datatable-virtual-scrollable-body",3,"itemSize","minBufferPx","maxBufferPx","scrolledIndexChange"],["tableHeader",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"pi","pi-arrow-down","p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"pi","pi-arrow-up","p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(e,i){1&e&&(h(0,"div",0,1),v(2,w5,2,2,"div",2),v(3,D5,2,1,"div",3),v(4,S5,1,17,"p-paginator"
,4),h(5,"div",5,6),v(7,M5,8,16,"table",7),v(8,L5,10,21,"cdk-virtual-scroll-viewport",8),p(),v(9,N5,1,17,"p-paginator",9),v(10,B5,2,1,"div",10),v(11,H5,2,0,"div",11),v(12,z5,2,0,"span",12),v(13,j5,2,0,"span",13),p()),2&e&&(ge(i.styleClass),m("ngStyle",i.style)("ngClass",Ch(16,U5,[i.rowHover||i.selectionMode,i.autoLayout,i.resizableColumns,i.resizableColumns&&"fit"===i.columnResizeMode,i.scrollable,i.scrollable&&"vertical"===i.scrollDirection,i.scrollable&&"horizontal"===i.scrollDirection,i.scrollable&&"both"===i.scrollDirection,i.scrollable&&"flex"===i.scrollHeight,"stack"===i.responsiveLayout,"scroll"===i.responsiveLayout,i.responsive,null!=i.headerGroupedTemplate,null!=i.footerGroupedTemplate])),q("id",i.id),g(2),m("ngIf",i.loading&&i.showLoader),g(1),m("ngIf",i.captionTemplate),g(1),m("ngIf",i.paginator&&("top"===i.paginatorPosition||"both"==i.paginatorPosition)),g(1),m("ngStyle",G(31,$5,i.scrollHeight)),g(2),m("ngIf",!i.virtualScroll),g(1),m("ngIf",i.virtualScroll),g(1),m("ngIf",
i.paginator&&("bottom"===i.paginatorPosition||"both"==i.paginatorPosition)),g(1),m("ngIf",i.summaryTemplate),g(1),m("ngIf",i.resizableColumns),g(1),m("ngIf",i.reorderableColumns),g(1),m("ngIf",i.reorderableColumns))},directives:function(){return[lt,Je,Me,Ot,x1,Q8,Da,f1]},styles:[".p-datatable{position:relative}.p-datatable table{border-collapse:collapse;min-width:100%;table-layout:fixed}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-auto-layout>.p-datatable-wrapper{overflow-x:auto}.p-datatable-auto-layout>.p-datatable-wrapper>table{table-layout:auto}.p-datatable-responsive-scroll>.p-datatable-wrapper{overflow-x:auto}.p-datatable-res
ponsive-scroll>.p-datatable-wrapper>table,.p-datatable-auto-layout>.p-datatable-wrapper>table{table-layout:auto}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable .p-datatable-wrapper{position:relative;overflow:auto}.p-datatable-scrollable .p-datatable-thead,.p-datatable-scrollable .p-datatable-tbody,.p-datatable-scrollable .p-datatable-tfoot{display:block}.p-datatable-scrollable .p-datatable-thead>tr,.p-datatable-scrollable .p-datatable-tbody>tr,.p-datatable-scrollable .p-datatable-tfoot>tr{display:flex;flex-wrap:nowrap;width:100%}.p-datatable-scrollable .p-datatable-thead>tr>th,.p-datatable-scrollable .p-datatable-tbody>tr>td,.p-datatable-scrollable .p-datatable-tfoot>tr>td{display:flex;flex:1 1 0;align-items:center}.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-table>.p-datatable-thead,.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-virtual-scrollable-body>.cdk-virtual-scroll-content-wrapper>.p-datatable-table>.p-datatable-th
ead{position:sticky;top:0;z-index:1}.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-scrollable-both .p-datatable-thead>tr>th,.p-datatable-scrollable-both .p-datatable-tbody>tr>td,.p-datatable-scrollable-both .p-datatable-tfoot>tr>td,.p-datatable-scrollable-horizontal .p-datatable-thead>tr>th .p-datatable-scrollable-horizontal .p-datatable-tbody>tr>td,.p-datatable-scrollable-horizontal .p-datatable-tfoot>tr>td{flex:0 0 auto}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable .p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable .p-rowgroup-header{position:sticky;z-i
ndex:1}.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead,.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot{display:table;border-collapse:collapse;width:100%;table-layout:fixed}.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead>tr,.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot>tr{display:table-row}.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead>tr>th,.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot>tr>td{display:table-cell}.p-datatable-flex-scrollable{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-flex-scrollable .p-datatable-virtual-scrollable-body{flex:1}.p-datatable-resizable>.p-datatable-wrapper{overflow-x:auto}.p-datatable-resizable .p-datatable-thead>tr>th,.p-datatable-resizable .p-datatable-tfoot>tr>td,.p-datatable-resizable .p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable .p-resizable-column{backgrou
nd-clip:padding-box;position:relative}.p-datatable-resizable-fit .p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute;display:none}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{d
isplay:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable .p-datatable-tbody>tr>td>.p-column-title{display:none}cdk-virtual-scroll-viewport{outline:0 none}\n"],encapsulation:2}),t})(),Q8=(()=>{class t{constructor(e,i,r,s){this.dt=e,this.tableService=i,this.cd=r,this.el=s,this.subs
cription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}shouldRenderRowGroupHeader(e,i,r){let s=V.resolveFieldData(i,this.dt.groupRowsBy),o=e[r-1];return!o||s!==V.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,i,r){let s=V.resolveFieldData(i,this.dt.groupRowsBy),o=e[r+1];return!o||s!==V.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowspan(e,i,r){let s=V.resolveFieldData(i,this.dt.groupRowsBy),o=e[r-1];return!o||s!==V.resolveFieldData(o,this.dt.groupRowsBy)}calculateRowGroupSize(e,i,r){let s=V.resolveFieldData(i,this.dt.
groupRowsBy),o=s,a=0;for(;s===o;){a++;let l=e[++r];if(!l)break;o=V.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=S.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=S.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}}return t.\u0275fac=function(e){return new(e||t)(w(mu),w(gu),w(vt),w(Se))},t.\u0275cmp=Q({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows"},attrs:G5,decls:6,vars:6,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],
["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"]],template:function(e,i){1&e&&(v(0,n8,2,2,"ng-container",0),v(1,o8,2,3,"ng-container",0),v(2,m8,2,2,"ng-container",0),v(3,w8,2,2,"ng-container",0),v(4,D8,2,5,"ng-container",0),v(5,T8,2,5,"ng-container",0)),2&e&&(m("ngIf",!i.dt.expandedRowTemplate&&!i.dt.virtualScroll),g(1),m("ngIf",!i.dt.expandedRowTemplate&&i.dt.virtualScroll),g(1),m("ngIf",i.dt.expandedRowTemplate&&!(i.frozen&&i.dt.frozenExpandedRowTemplate)),g(1),m("ngIf",i.dt.frozenExpandedRowTemplate&&i.frozen),g(1),m("ngIf",i.dt.loading),g(1),m("ngIf",i.dt.isEmpty()&&!i.dt.loading))},directives:[Me,Mt,Ot,y1],encapsulation:2}),t})(),Z8=(()=>{class t{constructor(e){this.dt=e}get getFrozenRowGroupHeaderStickyPosition(){return this.dt.rowGroupHeaderStyleObject?this.dt.rowGroupHeaderStyleObject.top:""}}return t.\u0275fac=function(e){return new(e||t)(w(mu))},t.\u0275dir=U({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgr
oup-header","p-element"],hostVars:2,hostBindings:function(e,i){2&e&&wi("top",i.getFrozenRowGroupHeaderStickyPosition)}}),t})(),J8=(()=>{class t{constructor(e,i){this.dt=e,this.tableService=i,this.isEnabled()&&(this.subscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.selected=this.dt.isSelected(this.data)}))}ngOnInit(){this.isEnabled()&&(this.selected=this.dt.isSelected(this.data))}onClick(e){this.isEnabled()&&this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onTouchEnd(e){this.isEnabled()&&this.dt.handleRowTouchEnd(e)}onArrowDownKeyDown(e){if(!this.isEnabled())return;const r=this.findNextSelectableRow(e.currentTarget);r&&r.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const r=this.findPrevSelectableRow(e.currentTarget);r&&r.focus(),e.preventDefault()}onEnterKeyDown(e){!this.isEnabled()||this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onPageDownKeyDown(){this.dt.virtualScroll
&&this.dt.virtualScrollBody.elementRef.nativeElement.focus()}onSpaceKeydown(){this.dt.virtualScroll&&!this.dt.editingCell&&this.dt.virtualScrollBody.elementRef.nativeElement.focus()}findNextSelectableRow(e){let i=e.nextElementSibling;return i?S.hasClass(i,"p-selectable-row")?i:this.findNextSelectableRow(i):null}findPrevSelectableRow(e){let i=e.previousElementSibling;return i?S.hasClass(i,"p-selectable-row")?i:this.findPrevSelectableRow(i):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(mu),w(gu))},t.\u0275dir=U({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(e,i){1&e&&M("click",function(s){return i.onClick(s)})("touchend",function(s){return i.onTouchEnd(s)})("keydown.arrowdown",function(s){return i.onArrowDownKeyDown(s)})("keydown.arrowup",function(s){return i.onArrowUpKeyDown(s)})("keydown.enter",function
(s){return i.onEnterKeyDown(s)})("keydown.shift.enter",function(s){return i.onEnterKeyDown(s)})("keydown.meta.enter",function(s){return i.onEnterKeyDown(s)})("keydown.pagedown",function(){return i.onPageDownKeyDown()})("keydown.pageup",function(){return i.onPageDownKeyDown()})("keydown.home",function(){return i.onPageDownKeyDown()})("keydown.end",function(){return i.onPageDownKeyDown()})("keydown.space",function(){return i.onSpaceKeydown()}),2&e&&(q("tabindex",i.isEnabled()?0:void 0),si("p-selectable-row",i.isEnabled())("p-highlight",i.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectableRowDisabled"}}),t})(),X8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,I1,D1,Cf,qc,gc,Sa,d$,p5,Sf,y$],Et,qc]}),t})(),e6=(()=>{class t{constructor(e,i){this.http=e,this.document=i}switchTheme(e){let i=this.document.getElementById("app-theme");i&&(i.href="assets/
themes/"+e)}getThemes(){return this.http.get("assets/themes/themes.json").toPromise().then(e=>e.data).then(e=>e)}}return t.\u0275fac=function(e){return new(e||t)(P(Fs),P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function t6(t,n){if(1&t&&(h(0,"tr",48),h(1,"td",49),h(2,"span",50),E(3),p(),p(),p()),2&t){const e=n.$implicit;g(3),le(e.Category)}}function n6(t,n){if(1&t){const e=z();h(0,"tr",51),M("click",function(){const s=C(e).$implicit;return f(2).changeTheme(s)}),h(1,"td",52),I(2,"img",53),p(),h(3,"td"),E(4),p(),p()}if(2&t){const i=n.$implicit;m("pSelectableRow",n.$implicit),g(2),un("src","images/themes/",i.Image,"",yi),m("alt",i.image),g(2),le(i.Name)}}function r6(t,n){1&t&&(h(0,"p-table",45),v(1,t6,4,1,"ng-template",46),v(2,n6,5,4,"ng-template",47),p()),2&t&&m("value",f().m_themes$)("paginator",!1)("scrollable",!0)}const s6=function(){return{width:"350px"}};let o6=(()=>{class t{constructor(e){this.themeService=e,this.themeService.getThemes().then(i=
>{this.m_themes$=i,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Indigo Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)})}ngOnInit(){}findThemeByName(e){for(var i=0;i<this.m_themes$.length;i++)if(this.m_themes$[i].Name===e)return this.m_themes$[i];return this.m_themes$[0]}changeTheme(e){this.m_selectedTheme=e,this.themeService.switchTheme(e.CSS),localStorage.setItem("Theme",this.m_selectedTheme.Name)}}return t.\u0275fac=function(e){return new(e||t)(w(e6))},t.\u0275cmp=Q({type:t,selectors:[["app-navbar"]],decls:87,vars:10,consts:[[1,"block-content"],[1,"ng-star-inserted",2,"overflow","hidden"],[1,"min-h-screen","flex","relative","lg:static","surface-ground"],["id","app-sidebar-4",1,"bg-gray-900","hidden","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-1","border-gray-800","w-18rem","lg:w-5rem","select-none"],[1,"flex","flex-column","h-full"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["sr
c","images/mythtv.png","alt","Image","height","80",1,"p-2"],[1,"mt-3","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],["pTooltip","Dashboard",3,"routerLink"],["pripple","",1,"p-ripple","p-element","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-gray-300","hover:text-white","transition-duration-150","transition-colors"],[1,"pi","pi-home","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"font-medium","inline","lg:hidden"],[1,"p-ink"],["pTooltip","Backend Status",3,"routerLink"],[1,"pi","pi-info-circle","mr-2","lg:mr-0","text-base","lg:text-xl"],["pTooltip","Backend Setup",3,"routerLink"],[1,"pi","pi-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],["pTooltip","TV Guide",3,"routerLink"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],["pTooltip","Testbed",3,"routerLink"],[1,"pi","pi-pencil","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"mt-auto"],[1,"mb-3","mx-2","border-top-1","border-none",
"border-gray-800"],["pripple","","pTooltip","Switch Server",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],[1,"pi","pi-server","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"min-h-screen","flex","flex-column","relative","flex-auto"],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","border-bottom-1","surface-border",2,"height","80px"],[2,"padding","7rem"],[1,"pr-3"],[1,"toolbar","list-none","p-0","m-0","hidden","lg:flex","lg:align-items-center","select-none","lg:flex-row","surface-section","border-1","lg:border-none","surface-border","right-0","top-100","z-1","shadow-2","lg:shadow-none","absolute","lg:static"],["pripple","",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","ho
ver:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],[1,"pi","pi-ellipsis-v","mr-2","lg:mr-0","text-base","lg:text-xl","hidden"],["pripple","","tooltipPosition","bottom","pTooltip","Switch Server",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],["pripple","","tooltipPosition","bottom","pTooltip","Switch Theme",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"mr-3","lg:mr-0",2,"width","32px","height","32px",3,"src"],["pripple","","tooltipPosition","bottom","pTooltip","Change Language",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-
3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],[1,"pi","pi-flag","mr-2","lg:mr-0","text-base","lg:text-xl"],["pripple","","tooltipPosition","bottom","pTooltip","Log In",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],[1,"pi","pi-sign-in","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"bg-gray-100","p-1","flex","flex-column","flex-auto"],[1,"bg-gray-100","border-none","surface-border","border-round","surface-section","flex-auto"],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["selectionMode","single","sortField","Name","sortMode","single","scrollHeight","500px","rowGroupMode","subheader","groupRowsBy","Category","responsiveLayout","scroll",3,"value","paginator","scrollable"],["pTemplate","groupheader"],["pTempl
ate","body"],["pRowGroupHeader",""],["colspan","2"],[1,"font-bold","ml-2"],[3,"pSelectableRow","click"],[2,"max-width","80px"],[1,"theme-image",3,"src","alt"]],template:function(e,i){if(1&e){const r=z();h(0,"div",0),h(1,"div",1),h(2,"div",2),h(3,"div",3),h(4,"div",4),h(5,"div",5),I(6,"img",6),p(),h(7,"div",7),h(8,"ul",8),h(9,"li",9),h(10,"a",10),I(11,"i",11),h(12,"span",12),E(13,"Dashboard"),p(),I(14,"span",13),p(),p(),h(15,"li",14),h(16,"a",10),I(17,"i",15),h(18,"span",12),E(19,"Status"),p(),I(20,"span",13),p(),p(),h(21,"li",16),h(22,"a",10),I(23,"i",17),h(24,"span",12),E(25,"Settings "),p(),I(26,"span",13),p(),p(),h(27,"li",18),h(28,"a",10),I(29,"i",19),h(30,"span",12),E(31,"TV Guide "),p(),I(32,"span",13),p(),p(),h(33,"li",20),h(34,"a",10),I(35,"i",21),h(36,"span",12),E(37,"Testbed "),p(),I(38,"span",13),p(),p(),p(),p(),h(39,"div",22),I(40,"hr",23),h(41,"a",24),I(42,"i",25),h(43,"span",12),E(44,"Switch Server"),p(),I(45,"span",13),p(),p(),p(),p(),h(46,"div",26),h(47,"div",27),h(4
8,"div",28),h(49,"h1"),E(50,"MythTV Backend"),p(),p(),h(51,"div",29),h(52,"ul",30),h(53,"li"),h(54,"a",31),I(55,"i",32),I(56,"span",13),p(),p(),h(57,"li"),h(58,"a",33),I(59,"i",25),h(60,"span",12),E(61,"Switch Server"),p(),I(62,"span",13),p(),p(),h(63,"li"),h(64,"a",34),M("click",function(o){return C(r),he(85).toggle(o)}),I(65,"img",35),h(66,"span",12),E(67,"Switch Theme"),p(),I(68,"span",13),p(),p(),h(69,"li"),h(70,"a",36),I(71,"i",37),h(72,"span",12),E(73,"Language"),p(),I(74,"span",13),p(),p(),h(75,"li"),h(76,"a",38),I(77,"i",39),h(78,"span",12),E(79,"Login"),p(),I(80,"span",13),p(),p(),p(),p(),p(),h(81,"div",40),h(82,"div",41),I(83,"router-outlet"),p(),p(),p(),p(),p(),p(),h(84,"p-overlayPanel",42,43),v(86,r6,3,3,"ng-template",44),p()}2&e&&(g(9),m("routerLink",""),g(6),m("routerLink","status"),g(6),m("routerLink","settings"),g(6),m("routerLink","guide"),g(6),m("routerLink","testbed"),g(32),un("src","images/themes/",i.m_selectedTheme.Image,"",yi),g(19),Sn(Tn(9,s6)),m("showCloseIco
n",!0))},directives:[Hc,Pc,Ec,e$,Ct,mu,Z8,J8],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}ul.debug1[_ngcontent-%COMP%]{border-style:solid;border-color:#00f}div.debug1[_ngcontent-%COMP%]{border-style:solid;border-color:red;background-color:#000}div.debug2[_ngcontent-%COMP%]{border-style:solid;border-color:#ff0}div.debug3[_ngcontent-%COMP%]{border-style:solid;border-color:green}.theme-image[_ngcontent-%COMP%]{width:50px;height:50px}"]}),t})(),a6=(()=>{class t{constructor(){this.title="MythTV Backend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&I(0,"app-navbar")},directives:[o6],styles:[""]}),t})(),VD=(()=>{class t{constructor(e){this.configService=e,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"mythtv",Password:"mythtv",Ping:!1,Nam
e:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0}}},console.log("SetupWizardService: constructor called"),this.initDatabaseStatus()}ngOnInit(){console.log("SetupWizardService: ngOnInit called"),this.initDatabaseStatus()}setWizardData(e){this.m_wizardData=e}getWizardData(){return this.m_wizardData}initDatabaseStatus(){console.log("SetupWizardService: initDatabase called"),this.configService.GetDatabaseStatus().subscribe(e=>{console.log("SetupWizardService: initDatabaseStatus() called",e),this.m_wizardData.DatabaseStatus=e,this.m_wizardData.Database.Host=e.DatabaseStatus.Host,this.m_wizardData.Database.Port=e.DatabaseStatus.Port,this.m_wizardData.Database.UserName=e.DatabaseStatus.UserName,this.m_wizardData.Database.Password=e.DatabaseStatus.Password,this.m_wiz
ardData.Database.Name=e.DatabaseStatus.Name},e=>{console.log("Failed to get database status",e.statusText)})}updateDatabaseStatus(){console.log("SetupWizardService: updateDatabase called"),this.configService.GetDatabaseStatus().subscribe(e=>{this.m_wizardData.DatabaseStatus=e},e=>{console.log("Failed to get database status",e.statusText)})}}return t.\u0275fac=function(e){return new(e||t)(P(xr))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const l6=["countryrow"],c6=["languagerow"];function u6(t,n){1&t&&E(0," Locale Setup ")}function d6(t,n){1&t&&E(0," Enter your Country and Language ")}function h6(t,n){1&t&&(h(0,"h2"),E(1,"Select Country"),p())}function p6(t,n){if(1&t&&(h(0,"div",16,17),I(2,"img",18),I(3,"span",19),E(4),p()),2&t){const e=n.$implicit;q("id",e.Code),g(2),un("src","images/locale/",e.Image,"",yi),g(2),qi("",e.Code," ",e.Country," ",e.NativeCountry," ")}}function f6(t,n){if(1&t&&(h(0,"div",20),I(1,"p-message",21),p()),2&t){const e=f(2);g(1),un("
text","Selected Country is: ",e.m_wizardData.Country.Country,"")}}function g6(t,n){1&t&&(h(0,"div",20),I(1,"p-message",22),p())}function m6(t,n){1&t&&(h(0,"h2"),E(1,"Select Language"),p())}function _6(t,n){if(1&t&&(h(0,"div",23,24),I(2,"img",18),h(3,"span",25),E(4),p(),p()),2&t){const e=n.$implicit;q("id",e.Code),g(2),un("src","images/locale/",e.Image,"",yi),g(2),qi("",e.Language," - ",e.NativeLanguage," (",e.Code,")")}}function y6(t,n){if(1&t&&(h(0,"div",20),I(1,"p-message",21),p()),2&t){const e=f(2);g(1),un("text","Selected Language is: ",e.m_wizardData.Language.NativeLanguage,"")}}function v6(t,n){1&t&&(h(0,"div",20),I(1,"p-message",26),p())}const BD=function(){return{"max-height":"460px","min-height":"460px"}};function b6(t,n){if(1&t){const e=z();h(0,"div",6),h(1,"div",7),h(2,"p-listbox",8),M("ngModelChange",function(r){return C(e),f().m_wizardData.Country=r})("onChange",function(r){return C(e),f().countrySelected(r)}),v(3,h6,2,0,"ng-template",9),v(4,p6,5,5,"ng-template",10),p()
,v(5,f6,2,1,"div",11),v(6,g6,2,0,"ng-template",null,12,ze),p(),h(8,"div",13),h(9,"p-listbox",14),M("ngModelChange",function(r){return C(e),f().m_wizardData.Language=r})("onChange",function(r){return C(e),f().languageSelected(r)}),v(10,m6,2,0,"ng-template",9),v(11,_6,5,5,"ng-template",10),p(),v(12,y6,2,1,"div",11),v(13,v6,2,0,"ng-template",null,15,ze),p(),p()}if(2&t){const e=he(7),i=he(14),r=f();g(2),m("options",r.m_countries)("ngModel",r.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",Tn(14,BD)),g(3),m("ngIf",""!=r.m_wizardData.Country.Code)("ngIfElse",e),g(4),m("options",r.m_languages)("ngModel",r.m_wizardData.Language)("multiple",!1)("filter",!0)("listStyle",Tn(15,BD)),g(3),m("ngIf",""!=r.m_wizardData.Language.Code)("ngIfElse",i)}}function w6(t,n){if(1&t){const e=z();h(0,"div",27),h(1,"p-button",28),M("onClick",function(){return C(e),f().nextPage()}),p(),h(2,"p-button",29),M("onClick",function(){return C(e),f().showHelp()}),p(),p()}if(2&t){const e=f();g(1),m("disable
d",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let C6=(()=>{class t{constructor(e,i,r){this.router=e,this.configService=i,this.wizardService=r,this.m_countries=[],this.m_languages=[],this.m_showHelp=!1}ngOnInit(){this.configService.GetLanguages().subscribe(e=>this.m_languages=e.LanguageList.Languages),this.configService.GetCountries().subscribe(e=>this.m_countries=e.CountryList.Countries),this.m_wizardData=this.wizardService.getWizardData()}ngAfterViewInit(){if(console.log("After view init called"),console.log("Country Code: ",this.m_wizardData.Country.Code),console.log("Language Code: ",this.m_wizardData.Language.Code),console.log(this.countryRowElement),console.log(this.languageRowElement),""!=this.m_wizardData.Country.Code){const e=this.countryRowElement.find(i=>i.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"smooth",inline:"start",block:"start"}):console.log("Failed to find element by ID")}i
f(""!=this.m_wizardData.Language.Code){const e=this.languageRowElement.find(i=>i.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"smooth",inline:"start",block:"start"})}}nextPage(){this.router.navigate(["settings/dbsetup"])}showHelp(){this.m_showHelp=!0}countrySelected(e){console.log("event: ",e),console.log("Country changed event: ",e.value)}languageSelected(e){console.log("event: ",e),console.log("Language changed event: ",e.value)}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(xr),w(VD))},t.\u0275cmp=Q({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(e,i){if(1&e&&(He(l6,5,Se),He(c6,5,Se)),2&e){let r;K(r=Y())&&(i.countryRowElement=r),K(r=Y())&&(i.languageRowElement=r)}},decls:11,vars:1,consts:[["header","Country and Language Setup - Help",3,"visible","visibleChange"],[1,"wizard-content","m-3"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"
,"m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country",3,"options","ngModel","multiple","filter","listStyle","ngModelChange","onChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language",3,"options","ngModel","multiple","filter","listStyle","ngModelChange","onChange"],["noLanguage",""],[1,"country-item",2,"align-items","center"],["countryrow",""],[2,"width","50px","height","30px",3,"src"],[1,"badge","pl-2"],[1,"pt-5"],["severity","success",3,"text"],["severity","error","text","No Country is selected"],[1,"language-item"],["languagerow",""],[1,"pl-2"],["severity","error","text","No Language is selected",1,"pt-2"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Next","icon","pi pi-angle-right","iconPos","right",3,"disabled","onClick"],["label","Help","icon","pi pi-info-circle","styleClass","p-button-info",2,"float","right",3,"onClick"]],template:function(e,i){1&e&&(h(0,"p-dia
log",0),M("visibleChange",function(s){return i.m_showHelp=s}),h(1,"h4"),E(2,"Some very helpful help text goes here"),p(),h(3,"p"),E(4,"Some more very very helpful text goes here!"),p(),p(),h(5,"div",1),h(6,"p-card"),v(7,u6,1,0,"ng-template",2),v(8,d6,1,0,"ng-template",3),v(9,b6,15,16,"ng-template",4),v(10,w6,3,1,"ng-template",5),p(),p()),2&e&&m("visible",i.m_showHelp)},directives:[OD,Gs,Ct,MD,rc,Vs,Me,ff,Ks],styles:[""]}),t})();function D6(t,n){1&t&&E(0," Database Setup ")}function S6(t,n){1&t&&E(0," Enter the database login details ")}function T6(t,n){1&t&&(h(0,"div"),h(1,"small",32),E(2,"Ip Address or Hostname is required"),p(),p())}function E6(t,n){1&t&&(h(0,"div"),h(1,"small",33),E(2,"Port is required and must be a number between 0 and 65536"),p(),p())}function x6(t,n){1&t&&(h(0,"div"),h(1,"small",34),E(2,"User is required"),p(),p())}function I6(t,n){1&t&&(h(0,"div"),h(1,"small",35),E(2,"Password is required"),p(),p())}function k6(t,n){1&t&&(h(0,"div"),h(1,"small",36),E(2,"Datab
ase Name is required"),p(),p())}function M6(t,n){1&t&&(h(0,"div"),I(1,"p-message",37),p())}function O6(t,n){1&t&&(h(0,"div",38,29),I(2,"p-message",39),p())}function R6(t,n){if(1&t&&(h(0,"div"),I(1,"p-message",40),p()),2&t){const e=f(2);g(1),un("text","Have '",e.m_wizardData.Database.Name,"' database")}}function A6(t,n){if(1&t&&(h(0,"div",41,30),I(2,"p-message",42),p()),2&t){const e=f(2);g(2),un("text","Do not have '",e.m_wizardData.Database.Name,"' database")}}function P6(t,n){if(1&t&&(h(0,"div"),I(1,"p-message",43),p()),2&t){const e=f(2);g(1),un("text","Database schema version is ",e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion,"")}}function F6(t,n){1&t&&(h(0,"div",44,30),I(2,"p-message",45),p())}const L6=function(t){return{"is-invalid":t}};function N6(t,n){if(1&t){const e=z();h(0,"div",8),h(1,"div",9),h(2,"label",10),E(3,"MySQL Server IP"),p(),h(4,"input",11,12),M("ngModelChange",function(r){return C(e),f().m_wizardData.Database.Host=r}),p(),v(6,T6,3,0,"div",13),p(),h(
7,"div",9),h(8,"label",14),E(9,"MySQL Server Port"),p(),h(10,"input",15,16),M("ngModelChange",function(r){return C(e),f().m_wizardData.Database.Port=r}),p(),v(12,E6,3,0,"div",13),p(),h(13,"div",9),h(14,"label",17),E(15,"MySQL User"),p(),h(16,"input",18,19),M("ngModelChange",function(r){return C(e),f().m_wizardData.Database.UserName=r}),p(),v(18,x6,3,0,"div",13),p(),h(19,"div",9),h(20,"label",20),E(21,"MySQL Password"),p(),h(22,"input",21,22),M("ngModelChange",function(r){return C(e),f().m_wizardData.Database.Password=r}),p(),v(24,I6,3,0,"div",13),p(),h(25,"div",9),h(26,"label",23),E(27,"MySQL Database Name"),p(),h(28,"input",24,25),M("ngModelChange",function(r){return C(e),f().m_wizardData.Database.Name=r}),p(),v(30,k6,3,0,"div",13),p(),p(),h(31,"div"),h(32,"button",26),M("click",function(){return C(e),f().testConnection()}),E(33,"Test Connection"),p(),p(),h(34,"div",27),v(35,M6,2,0,"div",28),v(36,O6,3,0,"ng-template",null,29,ze),v(38,R6,2,1,"div",28),v(39,A6,3,1,"ng-template",null,
30,ze),v(41,P6,2,1,"div",28),v(42,F6,3,0,"ng-template",null,31,ze),p()}if(2&t){const e=he(5),i=he(11),r=he(17),s=he(23),o=he(29),a=he(37),l=he(40),c=he(43),u=f(),d=he(7);g(4),m("ngModel",u.m_wizardData.Database.Host)("ngClass",G(18,L6,e.invalid)),g(2),m("ngIf",e.invalid&&(e.dirty||e.touched)),g(4),m("ngModel",u.m_wizardData.Database.Port),g(2),m("ngIf",i.invalid&&(i.dirty||i.touched)),g(4),m("ngModel",u.m_wizardData.Database.UserName),g(2),m("ngIf",r.invalid&&(r.dirty||r.touched)),g(4),m("ngModel",u.m_wizardData.Database.Password),g(2),m("ngIf",s.invalid&&(s.dirty||s.touched)),g(4),m("ngModel",u.m_wizardData.Database.Name),g(2),m("ngIf",o.invalid&&(o.dirty||o.touched)),g(2),m("disabled",d.invalid),g(3),m("ngIf",u.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",a),g(3),m("ngIf",u.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",l),g(3),m("ngIf",u.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&u.m_wizardData.DatabaseStatus.DatabaseStatus.Have
Database)("ngIfElse",c)}}function V6(t,n){if(1&t){const e=z();h(0,"div",46),h(1,"p-button",47),M("onClick",function(){return C(e),f().previousPage()}),p(),h(2,"p-button",48),M("onClick",function(){return C(e),f().nextPage()}),p(),h(3,"p-button",49),M("onClick",function(){return C(e),f().showHelp()}),p(),p()}if(2&t){const e=f(),i=he(7);g(2),m("disabled",i.invalid||!e.m_wizardData.DatabaseStatus.DatabaseStatus.Connected||!e.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)}}let B6=(()=>{class t{constructor(e,i,r,s,o,a){this.router=e,this.configService=i,this.mythService=r,this.wizardService=s,this.formBuilder=o,this.messageService=a,this.m_showHelp=!1}ngOnInit(){this.m_wizardData=this.wizardService.getWizardData()}previousPage(){this.router.navigate(["settings/selectlanguage"])}nextPage(){this.router.navigate(["settings/backendnetwork"])}showHelp(){this.m_showHelp=!0}saveForm(){console.log("save form clicked")}testConnection(){console.log(this.m_wizardData.Database),this.config
Service.SetDatabaseCredentials(this.m_wizardData.Database).subscribe(e=>{console.log(e),this.messageService.add({severity:"success",life:5e3,summary:"Test Database Connection",detail:"Connection to database was successful"}),this.wizardService.updateDatabaseStatus()},e=>{console.log("Failed to set creditals",e.statusText),this.m_wizardData.DatabaseStatus.DatabaseStatus.Connected=!1,this.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase=!1,this.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion=0,this.messageService.add({severity:"error",life:5e3,summary:"Test Database Connection",detail:"Connection to database failed"})})}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(xr),w(pf),w(VD),w(FF),w(df))},t.\u0275cmp=Q({type:t,selectors:[["app-dbsetup"]],features:[be([df])],decls:13,vars:1,consts:[["header","Database Setup - Help",3,"visible","visibleChange"],["name","databaseForm",1,"ml-3","mr-3",3,"ngSubmit"],["databaseForm","ngForm"],[1,"m-5"],["pTemplate","title"],
["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"formgrid","grid","form-group"],[1,"field","col-12","md:col-6"],["for","ipaddress",1,"block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex. 127.0.0.1 or localhost","required","",1,"form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],[4,"ngIf"],["for","port",1,"block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex. 3306","min","0","max","65536",1,"form-control",3,"ngModel","ngModelChange"],["port","ngModel"],["for","user",1,"block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex. mythtv","required","",1,"form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["for","password",1,"block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name"
,"password","placeholder","Ex. mythtv","required","",1,"form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["for","dbname",1,"block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex. mythconverg","required","",1,"form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["pButton","","type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],["id","port-help",1,"p-error","block"],["id","user-help",1,"p-error","block"],["id","password-help",1,"p-error","block"],["id","dbname-help",1,"p-error","block"],["severity","success","text","Connected to database",1,"pr-2"],[1,"pr-2","notconnected"],["severity","error","text","Not connected to database",1,""],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","nodatabase"
],["severity","error",3,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info","text","Database schema version is unknown"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Back","icon","pi pi-angle-left","iconPos","left",1,"pr-1",3,"onClick"],["label","Next","icon","pi pi-angle-right","iconPos","right",3,"disabled","onClick"],["label","Help","icon","pi pi-info-circle","styleClass","p-button-info",2,"float","right",3,"onClick"]],template:function(e,i){1&e&&(I(0,"p-toast"),h(1,"p-dialog",0),M("visibleChange",function(s){return i.m_showHelp=s}),h(2,"h4"),E(3,"Some very helpful help text goes here"),p(),h(4,"p"),E(5,"Some more very very helpful text goes here!"),p(),p(),h(6,"form",1,2),M("ngSubmit",function(){return i.saveForm()}),h(8,"p-card",3),v(9,D6,1,0,"ng-template",4),v(10,S6,1,0,"ng-template",5),v(11,N6,44,20,"ng-template",6),v(12,V6,4,1,"ng-template",7),p(),p()),2&e&&(g(1),m("visible",i.m_showHelp))},directives:[Sj,OD,bC,dC,hc,Gs,Ct,nc,fc,rc,V
s,Je,Me,zp,Hp,Ap,Df,ff,Ks],styles:[".is-invalid[_ngcontent-%COMP%]{border-color:red}"]}),t})();function H6(t,n){1&t&&E(0," Backend Network Setup ")}function z6(t,n){1&t&&E(0," Enter the network details for this backend ")}function j6(t,n){1&t&&(h(0,"div",5),h(1,"p"),E(2,"TODO add backend server network details."),p(),p())}function U6(t,n){if(1&t){const e=z();h(0,"div",6),h(1,"p-button",7),M("onClick",function(){return C(e),f().previousPage()}),p(),h(2,"p-button",8),M("onClick",function(){return C(e),f().nextPage()}),p(),p()}}let $6=(()=>{class t{constructor(e,i){this.router=e,this.configService=i}ngOnInit(){}previousPage(){this.router.navigate(["settings/dbsetup"])}nextPage(){this.router.navigate(["settings/sgsetup"])}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(xr))},t.\u0275cmp=Q({type:t,selectors:[["app-backendnetwork"]],decls:6,vars:0,consts:[[1,"wizard-content"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"p-fluid
"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Back","icon","pi pi-angle-left","iconPos","left",1,"pr-1",3,"onClick"],["label","Next","icon","pi pi-angle-right","iconPos","right",3,"onClick"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"p-card"),v(2,H6,1,0,"ng-template",1),v(3,z6,1,0,"ng-template",2),v(4,j6,3,0,"ng-template",3),v(5,U6,3,0,"ng-template",4),p(),p())},directives:[Gs,Ct,Ks],styles:[""]}),t})();function G6(t,n){1&t&&E(0," Storage Group Setup ")}function W6(t,n){1&t&&E(0," Enter the storage group paths for this backend ")}function q6(t,n){1&t&&(h(0,"div",5),h(1,"p"),E(2,"TODO add storage group details."),p(),p())}function K6(t,n){if(1&t){const e=z();h(0,"div",6),h(1,"p-button",7),M("onClick",function(){return C(e),f().previousPage()}),p(),h(2,"p-button",8),M("onClick",function(){return C(e),f().nextPage()}),p(),p()}}let Y6=(()=>{class t{constructor(e){this.router=e}ngOnInit(){}previousPage(){this.router.navigate(["settings/backendnetwork"])}nextPage(){this.rout
er.navigate(["settings/restart"])}}return t.\u0275fac=function(e){return new(e||t)(w(ft))},t.\u0275cmp=Q({type:t,selectors:[["app-sgsetup"]],decls:6,vars:0,consts:[[1,"wizard-content"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"p-fluid"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Back","icon","pi pi-angle-left","iconPos","left",1,"pr-1",3,"onClick"],["label","Next","icon","pi pi-angle-right","iconPos","right",3,"onClick"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"p-card"),v(2,G6,1,0,"ng-template",1),v(3,W6,1,0,"ng-template",2),v(4,q6,3,0,"ng-template",3),v(5,K6,3,0,"ng-template",4),p(),p())},directives:[Gs,Ct,Ks],styles:[""]}),t})();function Q6(t,n){1&t&&E(0," Done ")}function Z6(t,n){1&t&&E(0," Restart the backend ")}function J6(t,n){1&t&&(h(0,"div",5),h(1,"p"),E(2,"Show summary here?"),p(),p())}function X6(t,n){if(1&t){const e=z();h(0,"div",6),h(1,"p-button",7),M("onClick",function(){return C(e),f().previousPage
()}),p(),h(2,"p-button",8),M("onClick",function(){return C(e),f().restartBackend()}),p(),p()}}let eG=(()=>{class t{constructor(e){this.router=e}ngOnInit(){}previousPage(){this.router.navigate(["settings/sgsetup"])}restartBackend(){console.log("Restart backend clicked")}}return t.\u0275fac=function(e){return new(e||t)(w(ft))},t.\u0275cmp=Q({type:t,selectors:[["app-restart"]],decls:6,vars:0,consts:[[1,"wizard-content"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"p-fluid"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Back","icon","pi pi-angle-left","iconPos","left",1,"pr-1",3,"onClick"],["label","Done","icon","pi pi-save","iconPos","right",3,"onClick"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"p-card"),v(2,Q6,1,0,"ng-template",1),v(3,Z6,1,0,"ng-template",2),v(4,J6,3,0,"ng-template",3),v(5,X6,3,0,"ng-template",4),p(),p())},directives:[Gs,Ct,Ks],styles:[""]}),t})(),tG=(()=>{class t{}return t.\u0275fac=function(e){return n
ew(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[ir.forChild([{path:"settings",component:q0,children:[{path:"",redirectTo:"selectlanguage",pathMatch:"full"},{path:"selectlanguage",component:C6},{path:"dbsetup",component:B6},{path:"backendnetwork",component:$6},{path:"sgsetup",component:Y6},{path:"restart",component:eG}]}])],ir]}),t})(),nG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t,bootstrap:[a6]}),t.\u0275inj=J({providers:[],imports:[[Tw,UP,f4,Bz,gc,NC,tG,Gz,Sa,uj,pj,K0,xN,$s,Tj,Vj,WN,fV,mV,vU,qU,K0,cH,gH,t$,X8]]}),t})();(function ZO(){Pb=!1})(),mP().bootstrapModule(nG).catch(t=>console.error(t))}},Li=>{Li(Li.s=863)}]);
+\ No newline at end of file
++"use strict";(self.webpackChunkbackend=self.webpackChunkbackend||[]).push([[179],{863:()=>{function Ni(t){return"function"==typeof t}let eo=!1;const _n={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else eo&&console.log("RxJS: Back to a better error behavior. Thank you. <3");eo=t},get useDeprecatedSynchronousErrorHandling(){return eo}};function Vi(t){setTimeout(()=>{throw t},0)}const Ia={closed:!0,next(t){},error(t){if(_n.useDeprecatedSynchronousErrorHandling)throw t;Vi(t)},complete(){}},Fr=Array.isArray||(t=>t&&"number"==typeof t.length);function yu(t){return null!==t&&"object"==typeof t}const ka=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.pro
totype=Object.create(Error.prototype),t})();class Ge{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof Ge)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(Ni(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){n=o instanceof ka?rg(o.errors):[o]}}if(Fr(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(yu(l))try{l.unsubscribe()}catch(c){n=n||[],c instanceof ka?n=n.concat(rg(c.errors)):n.push(c)}}}if(n)throw new ka(n)}add(n){let e=n;if(!n)return Ge.EMPTY;switch(typeof n){case"function":e=new Ge(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof Ge)){const s=e;e=new Ge,e._subsc
riptions=[s]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof Ge){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function rg(t){return t.reduce((n,e)=>n.concat(e instanceof ka?e.errors:e),[])}Ge.EMPTY=((t=new Ge).closed=!0,t);const Ma="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class je extends Ge{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ia;break;case 1:if(!n){this.destination=Ia;break}if("object"==typeof n){n instanceof je?(this.syncErrorThrowable=n.syncErrorThrowable,this.destin
ation=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new sg(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new sg(this,n,e,i)}}[Ma](){return this}static create(n,e,i){const r=new je(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class sg extends je{constructor(n,e,i,r){super(),this._parentSubscriber=n;let s,o=this;Ni(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==Ia&&(o=Object.create(e),Ni(o.unsubscribe)&&this.add(o.un
subscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;_n.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=_n;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):Vi(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;Vi(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);_n.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__t
ryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),_n.useDeprecatedSynchronousErrorHandling)throw i;Vi(i)}}__tryOrSetError(n,e,i){if(!_n.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return _n.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(Vi(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const to="function"==typeof Symbol&&Symbol.observable||"@@observable";function Oa(t){return t}let Ee=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function zD(t,n,e){if(t){if(t instanceof je)return t;if(t[Ma])return t[Ma]()}return t||n||e?new je(t,n,e):new je(Ia)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||_n.useD
eprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),_n.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){_n.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function HD(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof je?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=ag(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[to](){return this}pipe(...e){return 0===e.length?this:function og(t){return 0===t.length?Oa:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=ag(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return t.create=n=>new t(n),t}
)();function ag(t){if(t||(t=_n.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const cr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class lg extends Ge{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class cg extends je{constructor(n){super(n),this.destination=n}}let Oe=(()=>{class t extends Ee{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ma](){return new cg(this)}lift(e){const i=new ug(this,this);return i.operator=e,i}next(e){if(this.closed)throw new cr;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;
o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new cr;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new cr;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new cr;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new cr;return this.hasError?(e.error(this.thrownError),Ge.EMPTY):this.isStopped?(e.complete(),Ge.EMPTY):(this.observers.push(e),new lg(this,e))}asObservable(){const e=new Ee;return e.source=this,e}}return t.create=(n,e)=>new ug(n,e),t})();class ug extends Oe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.er
ror(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):Ge.EMPTY}}function Lr(t){return t&&"function"==typeof t.schedule}function ke(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new jD(t,n))}}class jD{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new UD(n,this.project,this.thisArg))}}class UD extends je{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const dg=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},Ra=function GD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),hg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;funct
ion pg(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const vu=t=>{if(t&&"function"==typeof t[to])return(t=>n=>{const e=t[to]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(hg(t))return dg(t);if(pg(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Vi),n))(t);if(t&&"function"==typeof t[Ra])return(t=>n=>{const e=t[Ra]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${yu(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function bu(t,n){return new Ee(e=>{const i=new Ge;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.
add(this.schedule())):e.complete()})),i})}function Ft(t,n){return n?function XD(t,n){if(null!=t){if(function ZD(t){return t&&"function"==typeof t[to]}(t))return function KD(t,n){return new Ee(e=>{const i=new Ge;return i.add(n.schedule(()=>{const r=t[to]();i.add(r.subscribe({next(s){i.add(n.schedule(()=>e.next(s)))},error(s){i.add(n.schedule(()=>e.error(s)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(pg(t))return function YD(t,n){return new Ee(e=>{const i=new Ge;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(hg(t))return bu(t,n);if(function JD(t){return t&&"function"==typeof t[Ra]}(t)||"string"==typeof t)return function QD(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ee(e=>{const i=new Ge;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Ra](),i.add(n.schedule(function(){if(e.cl
osed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof Ee?t:new Ee(vu(t))}class no extends je{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class io extends je{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function ro(t,n){if(n.closed)return;if(t instanceof Ee)return t.subscribe(n);let e;try{e=vu(t)(n)}catch(i){n.error(i)}return e}function It(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(It((r,s)=>Ft(t(r,s)).pipe(ke((o,a)=>n(r,o,s,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new eS(t,e)))}class eS{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.conc
urrent=e}call(n,e){return e.subscribe(new tS(n,this.project,this.concurrent))}}class tS extends io{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(n){const e=new no(this),i=this.destination;i.add(e);const r=ro(n,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function so(t=Number.POSITIVE_INFINITY){return It(Oa,t)}function wu(t,n){return n?bu(t,n):new Ee(dg(t))}function Cu(){return funct
ion(n){return n.lift(new iS(n))}}class iS{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new rS(n,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class rS extends je{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class fg extends Ee{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new Ge,n.add(this.source.subscribe(new o
S(this.getSubject(),this))),n.closed&&(this._connection=null,n=Ge.EMPTY)),n}refCount(){return Cu()(this)}}const sS=(()=>{const t=fg.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class oS extends cg{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class cS{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(n);return s.add(e.subscribe(r)),s}}function uS(){return new Oe}
function Ne(t){for(let n in t)if(t[n]===Ne)return n;throw Error("Could not find renamed property on target object.")}function Du(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function we(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(we).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Su(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const hS=Ne({__forward_ref__:Ne});function xe(t){return t.__forward_ref__=xe,t.toString=function(){return we(this())},t}function ce(t){return gg(t)?t():t}function gg(t){return"function"==typeof t&&t.hasOwnProperty(hS)&&t.__forward_ref__===xe}class en extends Error{constructor(n,e){super(function Tu(t,n){return`${t?`NG0${t}: `:""}${n}`}(n,e)),this.code=n}}function se(t){return"string"==typeof t?t:null==t?"":Str
ing(t)}function Ut(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():se(t)}function Aa(t,n){const e=n?` in ${n}`:"";throw new en("201",`No provider for ${Ut(t)} found${e}`)}function nn(t,n){null==t&&function We(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function j(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Eu(t){return mg(t,Pa)||mg(t,yg)}function mg(t,n){return t.hasOwnProperty(n)?t[n]:null}function _g(t){return t&&(t.hasOwnProperty(xu)||t.hasOwnProperty(vS))?t[xu]:null}const Pa=Ne({\u0275prov:Ne}),xu=Ne({\u0275inj:Ne}),yg=Ne({ngInjectableDef:Ne}),vS=Ne({ngInjectorDef:Ne});var ae=(()=>((ae=ae||{})[ae.Default=0]="Default",ae[ae.Host=1]="Host",ae[ae.Self=2]="Self",ae[ae.SkipSelf=4]="SkipSelf",ae[ae.Option
al=8]="Optional",ae))();let Iu;function Bi(t){const n=Iu;return Iu=t,n}function vg(t,n,e){const i=Eu(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ae.Optional?null:void 0!==n?n:void Aa(we(t),"Injector")}function Hi(t){return{toString:t}.toString()}var Fn=(()=>((Fn=Fn||{})[Fn.OnPush=0]="OnPush",Fn[Fn.Default=1]="Default",Fn))(),Ln=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Ln||(Ln={})),Ln))();const wS="undefined"!=typeof globalThis&&globalThis,CS="undefined"!=typeof window&&window,DS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Fe=wS||"undefined"!=typeof global&&global||CS||DS,Nr={},Ve=[],Fa=Ne({\u0275cmp:Ne}),ku=Ne({\u0275dir:Ne}),Mu=Ne({\u0275pipe:Ne}),bg=Ne({\u0275mod:Ne}),gi=Ne({\u0275fac:Ne}),oo=Ne({__NG_ELEMENT_ID__:Ne});let SS=0;function Q(t){return Hi(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,fa
ctory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Fn.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ve,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ln.Emulated,id:"c",styles:t.styles||Ve,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,o=t.pipes;return i.id+=SS++,i.inputs=Sg(t.inputs,e),i.outputs=Sg(t.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(wg):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Cg):null,i})}function wg(t){return Lt(t)||function zi(t){return t[ku]||null}(t)}function Cg(t){return function ur(t){return t[Mu]||null}(t)}const Dg={};function X(t){return H
i(()=>{const n={type:t.type,bootstrap:t.bootstrap||Ve,declarations:t.declarations||Ve,imports:t.imports||Ve,exports:t.exports||Ve,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Dg[t.id]=t.type),n})}function Sg(t,n){if(null==t)return Nr;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,n&&(n[r]=s)}return e}const U=Q;function Zt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Lt(t){return t[Fa]||null}function yn(t,n){const e=t[bg]||null;if(!e&&!0===n)throw new Error(`Type ${we(t)} does not have '\u0275mod' property.`);return e}function Zn(t){return Array.isArray(t)&&"object"==typeof t[1]}function Vn(t){return Array.isArray(t)&&!0===t[1]}function Au(t){return 0!=(8&t.flags)}function Ba(t){return 2==(2&t.flags)}function Ha(t){return 1==(1&t.flags)}function Bn(t){return null!==t.template}function MS(t){return 0!=(512&t[2
])}function fr(t,n){return t.hasOwnProperty(gi)?t[gi]:null}class AS{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function gt(){return Eg}function Eg(t){return t.type.prototype.ngOnChanges&&(t.setInput=FS),PS}function PS(){const t=Ig(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===Nr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function FS(t,n,e,i){const r=Ig(t)||function LS(t,n){return t[xg]=n}(t,{previous:Nr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new AS(l&&l.currentValue,n,o===Nr),t[i]=n}gt.ngInherit=!0;const xg="__ngSimpleChanges__";function Ig(t){return t[xg]||null}const kg="http://www.w3.org/2000/svg";let Lu;function Nu(){return void 0!==Lu?Lu:"undefined"!=typeof document?document:void 0}function et(t){return!!t.listen}const Og={createRenderer:(t,n)=>Nu()};function ct(t){for(;Array.isArray(t);)t=t[0];r
eturn t}function za(t,n){return ct(n[t])}function wn(t,n){return ct(n[t.index])}function Vu(t,n){return t.data[n]}function jr(t,n){return t[n]}function sn(t,n){const e=n[t];return Zn(e)?e:e[0]}function Rg(t){return 4==(4&t[2])}function Bu(t){return 128==(128&t[2])}function ji(t,n){return null==n?null:t[n]}function Ag(t){t[18]=0}function Hu(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const ne={lFrame:zg(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Pg(){return ne.bindingsEnabled}function O(){return ne.lFrame.lView}function Ce(){return ne.lFrame.tView}function C(t){return ne.lFrame.contextLView=t,t[8]}function mt(){let t=Fg();for(;null!==t&&64===t.type;)t=t.parent;return t}function Fg(){return ne.lFrame.currentTNode}function Jn(t,n){const e=ne.lFrame;e.currentTNode=t,e.isParent=n}function zu(){return ne.lFrame.isParent}function ju(){ne.lFrame.isParent=!1}function ja(){return ne.isInCheckNoChangesMode}function Ua(t){
ne.isInCheckNoChangesMode=t}function $t(){const t=ne.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function mi(){return ne.lFrame.bindingIndex}function Ur(){return ne.lFrame.bindingIndex++}function _i(t){const n=ne.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function QS(t,n){const e=ne.lFrame;e.bindingIndex=e.bindingRootIndex=t,Uu(n)}function Uu(t){ne.lFrame.currentDirectiveIndex=t}function Vg(){return ne.lFrame.currentQueryIndex}function Gu(t){ne.lFrame.currentQueryIndex=t}function JS(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Bg(t,n,e){if(e&ae.SkipSelf){let r=n,s=t;for(;!(r=r.parent,null!==r||e&ae.Host||(r=JS(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;n=r,t=s}const i=ne.lFrame=Hg();return i.currentTNode=n,i.lView=t,!0}function $a(t){const n=Hg(),e=t[1];ne.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,
n.inI18n=!1}function Hg(){const t=ne.lFrame,n=null===t?null:t.child;return null===n?zg(t):n}function zg(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function jg(){const t=ne.lFrame;return ne.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ug=jg;function Ga(){const t=jg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Gt(){return ne.lFrame.selectedIndex}function Ui(t){ne.lFrame.selectedIndex=t}function tt(){const t=ne.lFrame;return Vu(t.tView,t.selectedIndex)}function Wa(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const s=t.data[e].type.prototype,{ngAfterContentInit:
o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function qa(t,n,e){Gg(t,n,3,e)}function Ka(t,n,e,i){(3&t[2])===e&&Gg(t,n,e,i)}function Wu(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Gg(t,n,e,i){const s=null!=i?i:-1,o=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<s||-1==s)&&(oT(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function oT(t,n,e,i){const r=e[i]<0,s=e[i+1],a=t[r?-e[i]:e[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{s.call(a)}finally{}}}else try{s.call
(a)}finally{}}class ho{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ya(t,n,e){const i=et(t);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?t.setAttribute(n,a,l,o):n.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];Ku(o)?i&&t.setProperty(n,o,a):i?t.setAttribute(n,o,a):n.setAttribute(o,a),r++}}return r}function Wg(t){return 3===t||4===t||6===t}function Ku(t){return 64===t.charCodeAt(0)}function Qa(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?e=r:0===e||qg(t,e,r,null,-1===e||2===e?n[++i]:null)}}return t}function qg(t,n,e,i,r){let s=0,o=t.length;if(-1===n)o=-1;else for(;s<t.length;){const a=t[s++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=s-1;break}}}for(;s<t.length;){const a=t[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(
t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,n),s=o+1),t.splice(s++,0,e),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function Kg(t){return-1!==t}function $r(t){return 32767&t}function Gr(t,n){let e=function dT(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Yu=!0;function Za(t){const n=Yu;return Yu=t,n}let hT=0;function fo(t,n){const e=Zu(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Qu(i.data,t),Qu(n,null),Qu(i.blueprint,null));const r=Ja(t,n),s=t.injectorIndex;if(Kg(r)){const o=$r(r),a=Gr(r,n),l=a[1].data;for(let c=0;c<8;c++)n[s+c]=a[o+c]|l[o+c]}return n[s+8]=r,s}function Qu(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Zu(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Ja(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){
const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Xa(t,n,e){!function pT(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(oo)&&(i=e[oo]),null==i&&(i=e[oo]=hT++);const r=255&i;n.data[t+(r>>5)]|=1<<r}(t,n,e)}function Zg(t,n,e){if(e&ae.Optional)return t;Aa(n,"NodeInjector")}function Jg(t,n,e,i){if(e&ae.Optional&&void 0===i&&(i=null),0==(e&(ae.Self|ae.Host))){const r=t[9],s=Bi(void 0);try{return r?r.get(n,i,e&ae.Optional):vg(n,i,e&ae.Optional)}finally{Bi(s)}}return Zg(i,n,e)}function Xg(t,n,e,i=ae.Default,r){if(null!==t){const s=function _T(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(oo)?t[oo]:void 0;return"number"==typeof n?n>=0?255&n:gT:n}(e);if("function"==typeof s){if(!Bg(n,t,i))return i&ae.Host?Zg(r,e,i):Jg(n,e,i,r);try{const o=s(i);if(null!=o||i&ae.Optional)return o;Aa(e)}finally{Ug()}}else if("number"==typeof s){let o
=null,a=Zu(t,n),l=-1,c=i&ae.Host?n[16][6]:null;for((-1===a||i&ae.SkipSelf)&&(l=-1===a?Ja(t,n):n[a+8],-1!==l&&nm(i,!1)?(o=n[1],a=$r(l),n=Gr(l,n)):a=-1);-1!==a;){const u=n[1];if(tm(s,a,u.data)){const d=mT(a,n,e,o,i,c);if(d!==em)return d}l=n[a+8],-1!==l&&nm(i,n[1].data[a+8]===c)&&tm(s,a,n)?(o=u,a=$r(l),n=Gr(l,n)):a=-1}}}return Jg(n,e,i,r)}const em={};function gT(){return new Wr(mt(),O())}function mT(t,n,e,i,r,s){const o=n[1],a=o.data[t+8],u=el(a,o,e,null==i?Ba(a)&&Yu:i!=o&&0!=(3&a.type),r&ae.Host&&s===a);return null!==u?go(n,o,u,a):em}function el(t,n,e,i,r){const s=t.providerIndexes,o=n.data,a=1048575&s,l=t.directiveStart,u=s>>20,_=r?a+u:t.directiveEnd;for(let y=i?a:a+u;y<_;y++){const b=o[y];if(y<l&&e===b||y>=l&&b.type===e)return y}if(r){const y=o[l];if(y&&Bn(y)&&y.type===e)return l}return null}function go(t,n,e,i){let r=t[e];const s=n.data;if(function aT(t){return t instanceof ho}(r)){const o=r;o.resolving&&function pS(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";thr
ow new en("200",`Circular dependency in DI detected for ${t}${e}`)}(Ut(s[e]));const a=Za(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Bi(o.injectImpl):null;Bg(t,i,ae.Default);try{r=t[e]=o.factory(void 0,s,t,i),n.firstCreatePass&&e>=i.directiveStart&&function sT(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=n.type.prototype;if(i){const o=Eg(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s))}(e,s[e],n)}finally{null!==l&&Bi(l),Za(a),o.resolving=!1,Ug()}}return r}function tm(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function nm(t,n){return!(t&ae.Self||t&ae.Host&&n)}class Wr{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return Xg(this._tNode,this._lView,n,i,e)}}function on(t){return Hi(()=>{const n=t.prototype.constructor,e=n[gi]||Ju(n),i=
Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const s=r[gi]||Ju(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ju(t){return gg(t)?()=>{const n=Ju(ce(t));return n&&n()}:fr(t)}function mo(t){return function fT(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(Wg(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===n)return e[r+1];r+=2}}}return null}(mt(),t)}const Kr="__parameters__";function Qr(t,n,e){return Hi(()=>{const i=function Xu(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Kr)?l[Kr]:Object.defineProperty(l,Kr,{value:[]})[Kr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(
o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ie{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=j({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const vT=new ie("AnalyzeForEntryComponents");function Cn(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),Cn(i,n)):n!==t&&n.push(i)}return n}function Xn(t,n){t.forEach(e=>Array.isArray(e)?Xn(e,n):n(e))}function rm(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function tl(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function vo(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function an(t,n,e){let i=Zr(t,n);return i>=0?t[1|i]=e:(i=~i,function CT(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{
for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function td(t,n){const e=Zr(t,n);if(e>=0)return t[1|e]}function Zr(t,n){return function am(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=t[s<<e];if(n===o)return s<<e;o>n?r=s:i=s+1}return~(r<<e)}(t,n,1)}const bo={},id="__NG_DI_FLAG__",il="ngTempTokenPath",kT=/\n/gm,cm="__source",OT=Ne({provide:String,useValue:Ne});let wo;function um(t){const n=wo;return wo=t,n}function RT(t,n=ae.Default){if(void 0===wo)throw new Error("inject() must be called from an injection context");return null===wo?vg(t,void 0,n):wo.get(t,n&ae.Optional?null:void 0,n)}function P(t,n=ae.Default){return(function bS(){return Iu}()||RT)(ce(t),n)}const AT=P;function rd(t){const n=[];for(let e=0;e<t.length;e++){const i=ce(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,s=ae.Default;for(let o=0;o<i.length;o++){const a=i[o],l=PT(a);"number"==typeof l?-1===l?r=a.token:s|=
l:r=a}n.push(P(r,s))}else n.push(P(i))}return n}function Co(t,n){return t[id]=n,t.prototype[id]=n,t}function PT(t){return t[id]}const Do=Co(Qr("Inject",t=>({token:t})),-1),ei=Co(Qr("Optional"),8),Jr=Co(Qr("SkipSelf"),4);let sl,ol;function es(t){var n;return(null===(n=function od(){if(void 0===sl&&(sl=null,Fe.trustedTypes))try{sl=Fe.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return sl}())||void 0===n?void 0:n.createHTML(t))||t}function mm(t){var n;return(null===(n=function ad(){if(void 0===ol&&(ol=null,Fe.trustedTypes))try{ol=Fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return ol}())||void 0===n?void 0:n.createHTML(t))||t}class vm{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Gi(t){return
t instanceof vm?t.changingThisBreaksApplicationSecurity:t}function To(t,n){const e=function JT(t){return t instanceof vm&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}class XT{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(es(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class eE{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template"
);if("content"in e)return e.innerHTML=es(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=es(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const nE=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,iE=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function al(t){return(t=String(t)).match(nE)||t.match(iE)?t:"unsafe:"+t}function wm(t){return(t=String(t)).split(",").map(n=>al(n.trim())).join(", ")}function ti(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Eo(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Cm=ti("area,b
r,col,hr,img,wbr"),Dm=ti("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sm=ti("rp,rt"),ld=Eo(Cm,Eo(Dm,ti("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Eo(Sm,ti("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Eo(Sm,Dm)),cd=ti("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ud=ti("srcset"),Tm=Eo(cd,ud,ti("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,st
art,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ti("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),rE=ti("script,style,template");class sE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_
NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!ld.hasOwnProperty(e))return this.sanitizedSomething=!0,!rE.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Tm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;cd[a]&&(l=al(l)),ud[a]&&(l=wm(l)),this.buf.push(" ",o,'="',Em(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();ld.hasOwnProperty(e)&&!Cm.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Em(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINE
D_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const oE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,aE=/([^\#-~ |!])/g;function Em(t){return t.replace(/&/g,"&").replace(oE,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(aE,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ll;function dd(t){return"content"in t&&function cE(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ut=(()=>((ut=ut||{})[ut.NONE=0]="NONE",ut[ut.HTML=1]="HTML",ut[ut.STYLE=2]="STYLE",ut[ut.SCRIPT=3]="SCRIPT",ut[ut.URL=4]="URL",ut[ut.RESOURCE_URL=5]="RESOURCE_URL",ut))();function cl(t){const n=xo();return n?mm(n.sanitize(ut.HTML,t)||""):To(t,"HTML")?mm(Gi(t)):function lE(t,n){let e=null;try{ll=ll||function bm(t){const n=new eE(t);return function tE(){try{return!!(new window.DOMParser).parseFromSt
ring(es(""),"text/html")}catch(t){return!1}}()?new XT(n):n}(t);let i=n?String(n):"";e=ll.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=ll.getInertBodyElement(i)}while(i!==s);return es((new sE).sanitizeChildren(dd(e)||e))}finally{if(e){const i=dd(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}(Nu(),se(t))}function yi(t){const n=xo();return n?n.sanitize(ut.URL,t)||"":To(t,"URL")?Gi(t):al(se(t))}function xo(){const t=O();return t&&t[12]}const km="__ngContext__";function Vt(t,n){t[km]=n}function pd(t){const n=function Io(t){return t[km]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function gd(t){return t.ngOriginalError}function EE(t,...n){t.error(...n)}class ts{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function TE(t){return t&&t.ngErrorLogger||EE}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalEr
ror(n){let e=n&&gd(n);for(;e&&gd(e);)e=gd(e);return e||null}}const Pm=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Fe))();function ni(t){return t instanceof Function?t():t}var ln=(()=>((ln=ln||{})[ln.Important=1]="Important",ln[ln.DashCase=2]="DashCase",ln))();function _d(t,n){return undefined(t,n)}function ko(t){const n=t[3];return Vn(n)?n[3]:n}function yd(t){return Bm(t[13])}function vd(t){return Bm(t[4])}function Bm(t){for(;null!==t&&!Vn(t);)t=t[4];return t}function is(t,n,e,i,r){if(null!=i){let s,o=!1;Vn(i)?s=i:Zn(i)&&(o=!0,i=i[0]);const a=ct(i);0===t&&null!==e?null==r?Gm(n,e,a):gr(n,e,a,r||null,!0):1===t&&null!==e?gr(n,e,a,r||null,!0):2===t?function Jm(t,n,e){const i=ul(t,n);i&&function YE(t,n,e,i){et(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=s&&function JE(t,n,e,i,r){const s=e[7];s!==ct(e)&&is(n,t,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];Mo(l[1],l,t,n,i,s)}}(n,t,s,e,r)}}function
wd(t,n,e){return et(t)?t.createElement(n,e):null===e?t.createElement(n):t.createElementNS(e,n)}function zm(t,n){const e=t[9],i=e.indexOf(n),r=n[3];1024&n[2]&&(n[2]&=-1025,Hu(r,-1)),e.splice(i,1)}function Cd(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const r=i[17];null!==r&&r!==t&&zm(r,i),n>0&&(t[e-1][4]=i[4]);const s=tl(t,10+n);!function zE(t,n){Mo(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function jm(t,n){if(!(256&n[2])){const e=n[11];et(e)&&e.destroyNode&&Mo(t,n,e,3,null,null),function $E(t){let n=t[13];if(!n)return Dd(t[1],t);for(;n;){let e=null;if(Zn(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Zn(n)&&Dd(n[1],n),n=n[3];null===n&&(n=t),Zn(n)&&Dd(n[1],n),e=n&&n[4]}n=e}}(n)}}function Dd(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function KE(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const r=n[e[i]];if(!(r instanceof ho)){con
st s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(t,n),function qE(t,n){const e=t.cleanup,i=n[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(n):ct(n[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();n[7]=null}}(t,n),1===n[1].type&&et(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&Vn(n[3])){e!==n[3]&&zm(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function Um(t,n,e){return function $m(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const r=t.data[i.directiveStart].encapsulation;if(r===Ln.None||r===Ln.Emulated)return null}return wn(i,e)}(t,n.parent,e)}function gr(t,n,e,i,r){et(t)?t.insertBefore(n,e,i,r):n.insertBefore
(e,i,r)}function Gm(t,n,e){et(t)?t.appendChild(n,e):n.appendChild(e)}function Wm(t,n,e,i,r){null!==i?gr(t,n,e,i,r):Gm(t,n,e)}function ul(t,n){return et(t)?t.parentNode(n):n.parentNode}function qm(t,n,e){return Ym(t,n,e)}let Ym=function Km(t,n,e){return 40&t.type?wn(t,e):null};function dl(t,n,e,i){const r=Um(t,i,n),s=n[11],a=qm(i.parent||n[6],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)Wm(s,r,e[l],a,!1);else Wm(s,r,e,a,!1)}function hl(t,n){if(null!==n){const e=n.type;if(3&e)return wn(n,t);if(4&e)return Td(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return hl(t,i);{const r=t[n.index];return Vn(r)?Td(-1,r):ct(r)}}if(32&e)return _d(n,t)()||ct(t[n.index]);{const i=Zm(t,n);return null!==i?Array.isArray(i)?i[0]:hl(ko(t[16]),i):hl(t,n.next)}}return null}function Zm(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Td(t,n){const e=10+t+1;if(e<n.length){const i=n[e],r=i[1].firstChild;if(null!==r)return hl(i,r)}return n[7]}function Ed(t,n,e,i,r,s,o)
{for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===n&&(a&&Vt(ct(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Ed(t,n,e.child,i,r,s,!1),is(n,t,r,a,s);else if(32&l){const c=_d(e,i);let u;for(;u=c();)is(n,t,r,u,s);is(n,t,r,a,s)}else 16&l?Xm(t,n,i,e,r,s):is(n,t,r,a,s);e=o?e.projectionNext:e.next}}function Mo(t,n,e,i,r,s){Ed(e,i,t.firstChild,n,r,s,!1)}function Xm(t,n,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)is(n,t,r,l[c],s);else Ed(t,n,l,o[3],r,s,!0)}function e_(t,n,e){et(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function xd(t,n,e){et(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function t_(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const s=n.length;if(r+s===i||t.charCodeAt(r+s)<=32)return r}e=r+1}}const n_="ng-template";function ex(t,n,e){let i=0;for(;i<t.length;){let r=t[i++];if(e&&"class"===r){if(r=t[i],-1!==t_(r.toLowerCa
se(),n,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===n)return!0;return!1}}return!1}function i_(t){return 4===t.type&&t.value!==n_}function tx(t,n,e){return n===(4!==t.type||e?t.value:n_)}function nx(t,n,e){let i=4;const r=t.attrs||[],s=function sx(t){for(let n=0;n<t.length;n++)if(Wg(t[n]))return n;return t.length}(r);let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!tx(t,l,e)||""===l&&1===n.length){if(Hn(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!ex(t.attrs,c,e)){if(Hn(i))return!1;o=!0}continue}const d=ix(8&i?"class":l,r,i_(t),e);if(-1===d){if(Hn(i))return!1;o=!0;continue}if(""!==c){let _;_=d>s?"":r[d+1].toLowerCase();const y=8&i?_:null;if(y&&-1!==t_(y,c,0)||2&i&&c!==_){if(Hn(i))return!1;o=!0}}}}else{if(!o&&!Hn(i)&&!Hn(l))return!1;if(o&&Hn(l))continue;o=!1,i=l|1&i}}return Hn(i)||o}function Hn(t){return 0==(1&t)}function ix(t,n,e,i){if(null===n)return-1
;let r=0;if(i||!e){let s=!1;for(;r<n.length;){const o=n[r];if(o===t)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=n[++r];for(;"string"==typeof a;)a=n[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function ox(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function r_(t,n,e=!1){for(let i=0;i<n.length;i++)if(nx(t,n[i],e))return!0;return!1}function ax(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function s_(t,n){return t?":not("+n.trim()+")":n}function lx(t){let n=t[0],e=1,i=2,r="",s=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const a=t[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Hn(o)&&(n+=s_(s,r),r=""),i=o,s=s||!Hn(i);e++}return""!==r&&(n+=s_(s,r)),n}const oe={};function g(t){o_(Ce(),O(),Gt()+
t,ja())}function o_(t,n,e,i){if(!i)if(3==(3&n[2])){const s=t.preOrderCheckHooks;null!==s&&qa(n,s,e)}else{const s=t.preOrderHooks;null!==s&&Ka(n,s,0,e)}Ui(e)}function pl(t,n){return t<<17|n<<2}function zn(t){return t>>17&32767}function Id(t){return 2|t}function vi(t){return(131068&t)>>2}function kd(t,n){return-131069&t|n<<2}function Md(t){return 1|t}function __(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=t.data[s];Gu(r),o.contentQueries(2,n[s],s)}}}function Oo(t,n,e,i,r,s,o,a,l,c){const u=n.blueprint.slice();return u[0]=r,u[2]=140|i,Ag(u),u[3]=u[15]=t,u[8]=e,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=s,u[16]=2==n.type?t[16]:u,u}function rs(t,n,e,i,r){let s=t.data[n];if(null===s)s=function Bd(t,n,e,i,r){const s=Fg(),o=zu(),l=t.data[n]=function Ex(t,n,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,dir
ectiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,n,i,r);return null===t.firstChild&&(t.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(t,n,e,i,r),function YS(){return ne.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function uo(){const t=ne.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Jn(s,!0),s}function ss(t,n,e,i){if(0===e)return-1;const r=n.length;for(let s=0;s<e;s++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function Ro(t,n,e){$a(n);try{const i=t.viewQue
ry;null!==i&&Kd(1,i,e);const r=t.template;null!==r&&y_(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&__(t,n),t.staticViewQueries&&Kd(2,t.viewQuery,e);const s=t.components;null!==s&&function Dx(t,n){for(let e=0;e<n.length;e++)$x(t,n[e])}(n,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,Ga()}}function os(t,n,e,i){const r=n[2];if(256==(256&r))return;$a(n);const s=ja();try{Ag(n),function Lg(t){return ne.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&y_(t,n,e,2,i);const o=3==(3&r);if(!s)if(o){const c=t.preOrderCheckHooks;null!==c&&qa(n,c,null)}else{const c=t.preOrderHooks;null!==c&&Ka(n,c,0,null),Wu(n,0)}if(function jx(t){for(let n=yd(t);null!==n;n=vd(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&Hu(s,1),r[2]|=1024}}}(n),function zx(t){for(let n=yd(t);null!==n;n=vd(n))for(let e=10;e<n.length;e++){const i=n[e],r=i[1];Bu(i)&&os(r,i,r.template,i
[8])}}(n),null!==t.contentQueries&&__(t,n),!s)if(o){const c=t.contentCheckHooks;null!==c&&qa(n,c)}else{const c=t.contentHooks;null!==c&&Ka(n,c,1),Wu(n,1)}!function wx(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Ui(~r);else{const s=r,o=e[++i],a=e[++i];QS(o,s),a(2,n[s])}}}finally{Ui(-1)}}(t,n);const a=t.components;null!==a&&function Cx(t,n){for(let e=0;e<n.length;e++)Ux(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&Kd(2,l,i),!s)if(o){const c=t.viewCheckHooks;null!==c&&qa(n,c)}else{const c=t.viewHooks;null!==c&&Ka(n,c,2),Wu(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(n[2]&=-73),1024&n[2]&&(n[2]&=-1025,Hu(n[3],-1))}finally{Ga()}}function Sx(t,n,e,i){const r=n[10],s=!ja(),o=Rg(n);try{s&&!o&&r.begin&&r.begin(),o&&Ro(t,n,i),os(t,n,e,i)}finally{s&&!o&&r.end&&r.end()}}function y_(t,n,e,i,r){const s=Gt(),o=2&i;try{Ui(-1),o&&n.length>20&&o_(t,n,20,ja()),e(i,r)}finally{Ui(s)}}function v_(t,n,e){if(Au(n)){const r=n.directiveEnd;f
or(let s=n.directiveStart;s<r;s++){const o=t.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function Hd(t,n,e){!Pg()||(function Ax(t,n,e,i){const r=e.directiveStart,s=e.directiveEnd;t.firstCreatePass||fo(e,n),Vt(i,n);const o=e.initialInputs;for(let a=r;a<s;a++){const l=t.data[a],c=Bn(l);c&&Vx(n,e,l);const u=go(n,t,a,e);Vt(u,n),null!==o&&Bx(0,a-r,u,l,0,o),c&&(sn(e.index,n)[8]=u)}}(t,n,e,wn(e,n)),128==(128&e.flags)&&function Px(t,n,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function ZS(){return ne.lFrame.currentDirectiveIndex}();try{Ui(o);for(let l=i;l<r;l++){const c=t.data[l],u=n[l];Uu(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&x_(c,u)}}finally{Ui(-1),Uu(a)}}(t,n,e))}function zd(t,n,e=wn){const i=n.localNames;if(null!==i){let r=n.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(n,t):t[o];t[r++]=a}}}function b_(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=ml(1,null,t.template,t.decls,t.vars,t.directiveDefs,t
.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function ml(t,n,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,_=function Tx(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:oe);return e}(u,d),y="function"==typeof c?c():c;return _[1]={type:t,blueprint:_,template:e,queries:null,viewQuery:a,declTNode:n,data:_.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:y,incompleteFirstPass:!1}}function D_(t,n,e,i){const r=A_(n);null===e?r.push(i):(r.push(e),t.firstCreatePass&&P_(t).push(i,r.length-1))}function S_(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(e=null===e?{}:e).has
OwnProperty(i)?e[i].push(n,r):e[i]=[n,r]}return e}function cn(t,n,e,i,r,s,o,a){const l=wn(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(N_(t,e,u,i,r),Ba(n)&&function kx(t,n){const e=sn(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function Ix(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=o?o(r,n.value||"",i):r,et(s)?s.setProperty(l,i,r):Ku(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function jd(t,n,e,i){let r=!1;if(Pg()){const s=function Fx(t,n,e){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];r_(e,o.selectors,!1)&&(r||(r=[]),Xa(fo(e,n),t,o.type),Bn(o)?(I_(t,e),r.unshift(o)):r.push(o))}return r}(t,n,e),o=null===i?null:{"":-1};if(null!==s){r=!0,k_(e,t.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=ss(t,n,s.length,null);for(let u=0;u<s.l
ength;u++){const d=s[u];e.mergedAttrs=Qa(e.mergedAttrs,d.hostAttrs),M_(t,e,n,c,d),Nx(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const _=d.type.prototype;!a&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(_.ngOnChanges||_.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function xx(t,n){const i=n.directiveEnd,r=t.data,s=n.attrs,o=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=r[c],d=u.inputs,_=null===s||i_(n)?null:Hx(d,s);o.push(_),a=S_(d,c,a),l=S_(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=a,n.outputs=l}(t,e)}o&&function Lx(t,n,e){if(n){const i=t.localNames=[];for(let r=0;r<n.length;r+=2){const s=e[n[r+1]];if(null==s)throw new en("301",`Export of name '${n[r+1]}' not found!`);i.push(n[r],s)}}}(e,i,o
)}return e.mergedAttrs=Qa(e.mergedAttrs,e.attrs),r}function E_(t,n,e,i,r,s){const o=s.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function Rx(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function x_(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function I_(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function Nx(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Bn(n)&&(e[""]=t)}}function k_(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function M_(t,n,e,i,r){t.data[i]=r;const s=r.factory||(r.factory=fr(r.type)),o=new ho(s,Bn(r),null);t.blueprint[i]=o,e[i]=o,E_(t,n,0,i,ss(t,e,r.hostVars,oe),r)}function Vx(t,n,e){const i=wn(n,t),r=b_(e),s=t[10],o=_l(t,Oo(t,r,null,e.onPush?64:16,i,n,s,s.createRenderer(i,e),null,null));t[n.index]=o}function ii(t,n,e,i,r,s){const o=wn(t,n)
;!function Ud(t,n,e,i,r,s,o){if(null==s)et(t)?t.removeAttribute(n,r,e):n.removeAttribute(r);else{const a=null==o?se(s):o(s,i||"",r);et(t)?t.setAttribute(n,r,a,e):e?n.setAttributeNS(e,r,a):n.setAttribute(r,a)}}(n[11],o,s,t.value,e,i,r)}function Bx(t,n,e,i,r,s){const o=s[n];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function Hx(t,n){let e=null,i=0;for(;i<n.length;){const r=n[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,t[r],n[i+1])),i+=2}else i+=2;else i+=4}return e}function O_(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function Ux(t,n){const e=sn(n,t);if(Bu(e)){const i=e[1];80&e[2]?os(i,e,i.template,e[8]):e[5]>0&&$d(e)}}function $d(t){for(let i=yd(t);null!==i;i=vd(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];os(o,s,o.template,s[8])}else s[5]>0&&$d(s)}const e=t[1].components;if(null!==e)for(let i=0;i<e.lengt
h;i++){const r=sn(e[i],t);Bu(r)&&r[5]>0&&$d(r)}}function $x(t,n){const e=sn(n,t),i=e[1];(function Gx(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Ro(i,e,e[8])}function _l(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function Gd(t){for(;t;){t[2]|=64;const n=ko(t);if(MS(t)&&!n)return t;t=n}return null}function qd(t,n,e){const i=n[10];i.begin&&i.begin();try{os(t,n,t.template,e)}catch(r){throw L_(n,r),r}finally{i.end&&i.end()}}function R_(t){!function Wd(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=pd(e),r=i[1];Sx(r,i,r.template,e)}}(t[8])}function Kd(t,n,e){Gu(0),n(t,e)}const Yx=(()=>Promise.resolve(null))();function A_(t){return t[7]||(t[7]=[])}function P_(t){return t.cleanup||(t.cleanup=[])}function L_(t,n){const e=t[9],i=e?e.get(ts,null):null;i&&i.handleError(n)}function N_(t,n,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=n[o],c=t.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function bi(t,n,e){const i=z
a(n,t);!function Hm(t,n,e){et(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function yl(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,s=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?s=a:1==s?r=Su(r,a):2==s&&(i=Su(i,a+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}const Yd=new ie("INJECTOR",-1);class V_{get(n,e=bo){if(e===bo){const i=new Error(`NullInjectorError: No provider for ${we(n)}!`);throw i.name="NullInjectorError",i}return e}}const Qd=new ie("Set Injector scope."),Ao={},Jx={};let Zd;function B_(){return void 0===Zd&&(Zd=new V_),Zd}function H_(t,n=null,e=null,i){const r=z_(t,n,e,i);return r._resolveInjectorDefTypes(),r}function z_(t,n=null,e=null,i){return new Xx(t,e,n||B_(),i)}class Xx{constructor(n,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Xn(e,a=>this.processProvider(a,n,e)),Xn([n],a=>this.processInjectorType(a
,[],s)),this.records.set(Yd,as(void 0,this));const o=this.records.get(Qd);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof n?null:we(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=bo,i=ae.Default){this.assertNotDestroyed();const r=um(this),s=Bi(void 0);try{if(!(i&ae.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function aI(t){return"function"==typeof t||"object"==typeof t&&t instanceof ie}(n)&&Eu(n);a=l&&this.injectableDefInScope(l)?as(Jd(n),Ao):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ae.Self?B_():this.parent).get(n,e=i&ae.Optional&&e===bo?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[il]=o[il]||[]).unshift(we(n)),r)throw o;return function FT(t,n,e,i){const r=t[il];throw n[cm]&&r.unshift(n[cm]),t.message=function LT(t,n,e,i=nu
ll){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=we(n);if(Array.isArray(n))r=n.map(we).join(" -> ");else if("object"==typeof n){let s=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):we(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(kT,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[il]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{Bi(s),um(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,r)=>n.push(we(r))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(n,e,i){if(!(n=ce(n)))return!1;let r=_g(n);const s=null==r&&n.ngModule||void 0,o=void 0===s?n:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=_g(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Xn(r.imports,d=>{this.processInjector
Type(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:_,providers:y}=u[d];Xn(y,b=>this.processProvider(b,_,y||Ve))}}this.injectorDefTypes.add(o);const l=fr(o)||(()=>new o);this.records.set(o,as(l,Ao));const c=r.providers;if(null!=c&&!a){const u=n;Xn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==n.providers}processProvider(n,e,i){let r=ls(n=ce(n))?n:ce(n&&n.provide);const s=function tI(t,n,e){return U_(t)?as(void 0,t.useValue):as(j_(t),Ao)}(n);if(ls(n)||!0!==n.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=as(void 0,Ao,!0),o.factory=()=>rd(o.multi),this.records.set(r,o)),r=n,o.multi.push(n)}this.records.set(r,s)}hydrate(n,e){return e.value===Ao&&(e.value=Jx,e.value=e.factory()),"object"==typeof e.value&&e.value&&function oI(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;cons
t e=ce(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Jd(t){const n=Eu(t),e=null!==n?n.factory:fr(t);if(null!==e)return e;if(t instanceof ie)throw new Error(`Token ${we(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function eI(t){const n=t.length;if(n>0){const i=vo(n,"?");throw new Error(`Can't resolve all parameters for ${we(t)}: (${i.join(", ")}).`)}const e=function _S(t){const n=t&&(t[Pa]||t[yg]);if(n){const e=function yS(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Error("unreachable")}function j_(t,n,e){l
et i;if(ls(t)){const r=ce(t);return fr(r)||Jd(r)}if(U_(t))i=()=>ce(t.useValue);else if(function iI(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...rd(t.deps||[]));else if(function nI(t){return!(!t||!t.useExisting)}(t))i=()=>P(ce(t.useExisting));else{const r=ce(t&&(t.useClass||t.provide));if(!function sI(t){return!!t.deps}(t))return fr(r)||Jd(r);i=()=>new r(...rd(t.deps))}return i}function as(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function U_(t){return null!==t&&"object"==typeof t&&OT in t}function ls(t){return"function"==typeof t}let kt=(()=>{class t{static create(e,i){var r;if(Array.isArray(e))return H_({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return H_({name:s},e.parent,e.providers,s)}}}return t.THROW_IF_NOT_FOUND=bo,t.NULL=new V_,t.\u0275prov=j({token:t,providedIn:"any",factory:()=>P(Yd)}),t.__NG_ELEMENT_ID__=-1,t})();function gI(t,n){Wa(pd(t)[1],mt())}function Be(t){let n=function ty(t){return Object.getPrototypeOf(t.prototype).constru
ctor}(t.type),e=!0;const i=[t];for(;n;){let r;if(Bn(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Error("Directives cannot inherit Components");r=n.\u0275dir}if(r){if(e){i.push(r);const o=t;o.inputs=th(t.inputs),o.declaredInputs=th(t.declaredInputs),o.outputs=th(t.outputs);const a=r.hostBindings;a&&vI(t,a);const l=r.viewQuery,c=r.contentQueries;if(l&&_I(t,l),c&&yI(t,c),Du(t.inputs,r.inputs),Du(t.declaredInputs,r.declaredInputs),Du(t.outputs,r.outputs),Bn(r)&&r.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(t),a===Be&&(e=!1)}}n=Object.getPrototypeOf(n)}!function mI(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Qa(r.hostAttrs,e=Qa(e,r.hostAttrs))}}(i)}function th(t){return t===Nr?{}:t===Ve?[]:t}function _I(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function yI(t,n){const e=t.co
ntentQueries;t.contentQueries=e?(i,r,s)=>{n(i,r,s),e(i,r,s)}:n}function vI(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}let vl=null;function cs(){if(!vl){const t=Fe.Symbol;if(t&&t.iterator)vl=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(vl=i)}}}return vl}function Po(t){return!!nh(t)&&(Array.isArray(t)||!(t instanceof Map)&&cs()in t)}function nh(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ri(t,n,e){return t[n]=e}function Fo(t,n){return t[n]}function Bt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function mr(t,n,e,i){const r=Bt(t,n,e);return Bt(t,n+1,i)||r}function bl(t,n,e,i,r){const s=mr(t,n,e,i);return Bt(t,n+2,r)||s}function Dn(t,n,e,i,r,s){const o=mr(t,n,e,i);return mr(t,n+2,r,s)||o}function q(t,n,e,i){const r=O();return Bt(r,Ur(),n)&&(Ce(),ii(tt(),r,t,n,e,i)),q}function ds(t,n,e,i){return Bt(t,Ur
(),e)?n+se(e)+i:oe}function v(t,n,e,i,r,s,o,a){const l=O(),c=Ce(),u=t+20,d=c.firstCreatePass?function EI(t,n,e,i,r,s,o,a,l){const c=n.consts,u=rs(n,t,4,o||null,ji(c,a));jd(n,e,u,ji(c,l)),Wa(n,u);const d=u.tViews=ml(2,u,i,r,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,s,o):c.data[u];Jn(d,!1);const _=l[11].createComment("");dl(c,l,_,d),Vt(_,l),_l(l,l[u]=O_(_,l,_,d)),Ha(d)&&Hd(c,l,d),null!=o&&zd(l,d,a)}function fe(t){return jr(function KS(){return ne.lFrame.contextLView}(),20+t)}function w(t,n=ae.Default){const e=O();return null===e?P(t,n):Xg(mt(),e,ce(t),n)}function ah(){throw new Error("invalid")}function m(t,n,e){const i=O();return Bt(i,Ur(),n)&&cn(Ce(),tt(),i,t,n,i[11],e,!1),m}function lh(t,n,e,i,r){const o=r?"class":"style";N_(t,e,n.inputs[o],o,i)}function h(t,n,e,i){const r=O(),s=Ce(),o=20+t,a=r[11],l=r[o]=wd(a,n,function rT(){return ne.lFrame.currentNamespace}()),c=
s.firstCreatePass?function qI(t,n,e,i,r,s,o){const a=n.consts,c=rs(n,t,2,r,ji(a,s));return jd(n,e,c,ji(a,o)),null!==c.attrs&&yl(c,c.attrs,!1),null!==c.mergedAttrs&&yl(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,s,r,0,n,e,i):s.data[o];Jn(c,!0);const u=c.mergedAttrs;null!==u&&Ya(a,l,u);const d=c.classes;null!==d&&xd(a,l,d);const _=c.styles;null!==_&&e_(a,l,_),64!=(64&c.flags)&&dl(s,r,l,c),0===function US(){return ne.lFrame.elementDepthCount}()&&Vt(l,r),function $S(){ne.lFrame.elementDepthCount++}(),Ha(c)&&(Hd(s,r,c),v_(s,c,r)),null!==i&&zd(r,c)}function p(){let t=mt();zu()?ju():(t=t.parent,Jn(t,!1));const n=t;!function GS(){ne.lFrame.elementDepthCount--}();const e=Ce();e.firstCreatePass&&(Wa(e,t),Au(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function cT(t){return 0!=(16&t.flags)}(n)&&lh(e,n,O(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function uT(t){return 0!=(32&t.flags)}(n)&&lh(e,n,O(),n.stylesWithoutHost,!1)}function I(t,n,e,i){h(
t,n,e,i),p()}function de(t,n,e){const i=O(),r=Ce(),s=t+20,o=r.firstCreatePass?function KI(t,n,e,i,r){const s=n.consts,o=ji(s,i),a=rs(n,t,8,"ng-container",o);return null!==o&&yl(a,o,!0),jd(n,e,a,ji(s,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(s,r,i,n,e):r.data[s];Jn(o,!0);const a=i[s]=i[11].createComment("");dl(r,i,a,o),Vt(a,i),Ha(o)&&(Hd(r,i,o),v_(r,o,i)),null!=e&&zd(i,o)}function he(){let t=mt();const n=Ce();zu()?ju():(t=t.parent,Jn(t,!1)),n.firstCreatePass&&(Wa(n,t),Au(t)&&n.queries.elementEnd(t))}function H(t,n,e){de(t,n,e),he()}function z(){return O()}function Lo(t){return!!t&&"function"==typeof t.then}function wy(t){return!!t&&"function"==typeof t.subscribe}const ch=wy;function M(t,n,e,i){const r=O(),s=Ce(),o=mt();return function Dy(t,n,e,i,r,s,o,a){const l=Ha(i),u=t.firstCreatePass&&P_(t),d=n[8],_=A_(n);let y=!0;if(3&i.type||a){const T=wn(i,n),k=a?a(T):T,x=_.length,A=a?F=>a(ct(F[i.index])):i.index;if(et(e)){let F=null;if(!a&&l&&(F=function YI(t,n,e,i){const r=t.clean
up;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=n[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(t,n,r,i.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=s,F.__ngLastListenerFn__=s,y=!1;else{s=uh(i,n,d,s,!1);const te=e.listen(k,r,s);_.push(s,te),u&&u.push(r,A,x,x+1)}}else s=uh(i,n,d,s,!0),k.addEventListener(r,s,o),_.push(s),u&&u.push(r,A,x,o)}else s=uh(i,n,d,s,!1);const b=i.outputs;let D;if(y&&null!==b&&(D=b[r])){const T=D.length;if(T)for(let k=0;k<T;k+=2){const Ae=n[D[k]][D[k+1]].subscribe(s),Le=_.length;_.push(s,Ae),u&&u.push(r,i.index,Le,-(Le+1))}}}(s,r,r[11],o,t,n,!!e,i),M}function Sy(t,n,e,i){try{return!1!==e(i)}catch(r){return L_(t,r),!1}}function uh(t,n,e,i,r){return function s(o){if(o===Function)return i;const a=2&t.flags?sn(t.index,n):n;0==(32&n[2])&&Gd(a);let l=Sy(n,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Sy(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),
o.returnValue=!1),l}}function f(t=1){return function XS(t){return(ne.lFrame.contextLView=function eT(t,n){for(;t>0;)n=n[15],t--;return n}(t,ne.lFrame.contextLView))[8]}(t)}function QI(t,n){let e=null;const i=function rx(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let r=0;r<n.length;r++){const s=n[r];if("*"!==s){if(null===i?r_(t,s,!0):ax(i,s))return r}else e=r}return e}function Sn(t){const n=O()[16][6];if(!n.projection){const i=n.projection=vo(t?t.length:1,null),r=i.slice();let s=n.child;for(;null!==s;){const o=t?QI(s,t):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function ot(t,n=0,e){const i=O(),r=Ce(),s=rs(r,20+t,16,null,e||null);null===s.projection&&(s.projection=n),ju(),64!=(64&s.flags)&&function ZE(t,n,e){Xm(n[11],0,n,e,Um(t,e,n),qm(e.parent||n[6],e,n))}(r,i,s)}function Cl(t,n,e){return un(t,"",n,"",e),Cl}function un(t,n,e,i,r){const s=O(),o=ds(s,n,e,i);return o!==oe&&cn(Ce(),tt(),s,t,o,s[11],r,!1),un}fu
nction Ay(t,n,e,i,r){const s=t[e+1],o=null===n;let a=i?zn(s):vi(s),l=!1;for(;0!==a&&(!1===l||o);){const u=t[a+1];XI(t[a],n)&&(l=!0,t[a+1]=i?Md(u):Id(u)),a=i?zn(u):vi(u)}l&&(t[e+1]=i?Id(s):Md(s))}function XI(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Zr(t,n)>=0}const yt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Py(t){return t.substring(yt.key,yt.keyEnd)}function ek(t){return t.substring(yt.value,yt.valueEnd)}function Fy(t,n){const e=yt.textEnd;return e===n?-1:(n=yt.keyEnd=function ik(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,yt.key=n,e),bs(t,n,e))}function Ly(t,n){const e=yt.textEnd;let i=yt.key=bs(t,n,e);return e===i?-1:(i=yt.keyEnd=function rk(t,n,e){let i;for(;n<e&&(45===(i=t.charCodeAt(n))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=Vy(t,i,e),i=yt.value=bs(t,i,e),i=yt.valueEnd=function sk(t,n,e){let i=-1,r=-1,s=-1,o=n,a=o;for(;o<e;){const l=t.charCodeAt(o++);if(59===l
)return a;34===l||39===l?a=o=By(t,l,o,e):n===o-4&&85===s&&82===r&&76===i&&40===l?a=o=By(t,41,o,e):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(t,i,e),Vy(t,i,e))}function Ny(t){yt.key=0,yt.keyEnd=0,yt.value=0,yt.valueEnd=0,yt.textEnd=t.length}function bs(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Vy(t,n,e,i){return(n=bs(t,n,e))<e&&n++,n}function By(t,n,e,i){let r=-1,s=e;for(;s<i;){const o=t.charCodeAt(s++);if(o==n&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function wi(t,n,e){return Un(t,n,e,!1),wi}function si(t,n){return Un(t,n,null,!0),si}function Tn(t){$n(jy,ok,t,!1)}function ok(t,n){for(let e=function nk(t){return Ny(t),Ly(t,bs(t,0,yt.textEnd))}(n);e>=0;e=Ly(n,e))jy(t,Py(n),ek(n))}function ge(t){$n(an,oi,t,!0)}function oi(t,n){for(let e=function tk(t){return Ny(t),Fy(t,bs(t,0,yt.textEnd))}(n);e>=0;e=Fy(n,e))an(t,Py(n),!0)}function Un(t,n,e,i){const r=O(),s=Ce(),o=_i(2);s.firstUpdatePass&&zy(s,t,o,i),n!==oe&&Bt(r,o,n)&&Uy(s,s.data[Gt()],r,r[11],t,r[o+1]=function
pk(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=we(Gi(t)))),t}(n,e),i,o)}function $n(t,n,e,i){const r=Ce(),s=_i(2);r.firstUpdatePass&&zy(r,null,s,i);const o=O();if(e!==oe&&Bt(o,s,e)){const a=r.data[Gt()];if(Gy(a,i)&&!Hy(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Su(l,e||"")),lh(r,a,o,e,i)}else!function hk(t,n,e,i,r,s,o,a){r===oe&&(r=Ve);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const _=l<r.length?r[l+1]:void 0,y=c<s.length?s[c+1]:void 0;let D,b=null;u===d?(l+=2,c+=2,_!==y&&(b=d,D=y)):null===d||null!==u&&u<d?(l+=2,b=u):(c+=2,b=d,D=y),null!==b&&Uy(t,n,e,i,b,D,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function dk(t,n,e){if(null==e||""===e)return Ve;const i=[],r=Gi(e);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&n(i,r);return i}(t,n,e),i,s)}}func
tion Hy(t,n){return n>=t.expandoStartIndex}function zy(t,n,e,i){const r=t.data;if(null===r[e+1]){const s=r[Gt()],o=Hy(t,e);Gy(s,i)&&null===n&&!o&&(n=!1),n=function ak(t,n,e,i){const r=function $u(t){const n=ne.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let s=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=No(e=dh(null,t,n,e,i),n.attrs,i),s=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==r)if(e=dh(r,t,n,e,i),null===s){let l=function lk(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==vi(i))return t[zn(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=dh(null,t,n,l[1],i),l=No(l,n.attrs,i),function ck(t,n,e,i){t[zn(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else s=function uk(t,n,e){let i;const r=n.directiveEnd;for(let s=1+n.directiveStylingLast;s<r;s++)i=No(i,t[s].hostAttrs,e);return No(i,n.attrs,e)}(t,n,i)}return void 0!==s&&(i?n.residualClasses=s:n.residualStyles=s),e}(r,s,n,i),function ZI(t,n,e,i,r,s){let
o=s?n.classBindings:n.styleBindings,a=zn(o),l=vi(o);t[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Zr(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const _=zn(t[a+1]);t[i+1]=pl(_,a),0!==_&&(t[_+1]=kd(t[_+1],i)),t[a+1]=function dx(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=pl(a,0),0!==a&&(t[a+1]=kd(t[a+1],i)),a=i;else t[i+1]=pl(l,0),0===a?a=i:t[l+1]=kd(t[l+1],i),l=i;c&&(t[i+1]=Id(t[i+1])),Ay(t,u,i,!0),Ay(t,u,i,!1),function JI(t,n,e,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof n&&Zr(s,n)>=0&&(e[i+1]=Md(e[i+1]))}(n,u,t,i,s),o=pl(a,l),s?n.classBindings=o:n.styleBindings=o}(r,s,n,e,o,i)}}function dh(t,n,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=n[a],i=No(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function No(t,n,e){const i=e?1:2;let r=-1;if(null!==n)for(let s=0;s<n.length;s++){const o=n[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t
)||(t=void 0===t?[]:["",t]),an(t,o,!!e||n[++s]))}return void 0===t?null:t}function jy(t,n,e){an(t,n,Gi(e))}function Uy(t,n,e,i,r,s,o,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];Dl(function c_(t){return 1==(1&t)}(c)?$y(l,n,e,r,vi(c),o):void 0)||(Dl(s)||function l_(t){return 2==(2&t)}(c)&&(s=$y(l,null,e,r,a,o)),function XE(t,n,e,i,r){const s=et(t);if(n)r?s?t.addClass(e,i):e.classList.add(i):s?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:ln.DashCase;if(null==r)s?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=ln.Important),s?t.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,za(Gt(),e),r,s))}function $y(t,n,e,i,r,s){const o=null===n;let a;for(;r>0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let _=e[r+1];_===oe&&(_=d?Ve:void 0);let y=d?td(_,i):u===i?_:void 0;if(c&&!Dl(y)&&(y=td(l,i)),Dl(y)&&(a=y,o))return a;const b=t[r+1];r=o?zn(b):vi(b)}i
f(null!==n){let l=s?n.residualClasses:n.residualStyles;null!=l&&(a=td(l,i))}return a}function Dl(t){return void 0!==t}function Gy(t,n){return 0!=(t.flags&(n?16:32))}function E(t,n=""){const e=O(),i=Ce(),r=t+20,s=i.firstCreatePass?rs(i,r,1,n,null):i.data[r],o=e[r]=function bd(t,n){return et(t)?t.createText(n):t.createTextNode(n)}(e[11],n);dl(i,e,o,s),Jn(s,!1)}function le(t){return De("",t,""),le}function De(t,n,e){const i=O(),r=ds(i,t,n,e);return r!==oe&&bi(i,Gt(),r),De}function hh(t,n,e,i,r){const s=O(),o=function hs(t,n,e,i,r,s){const a=mr(t,mi(),e,r);return _i(2),a?n+se(e)+i+se(r)+s:oe}(s,t,n,e,i,r);return o!==oe&&bi(s,Gt(),o),hh}function Ci(t,n,e,i,r,s,o){const a=O(),l=function ps(t,n,e,i,r,s,o,a){const c=bl(t,mi(),e,r,o);return _i(3),c?n+se(e)+i+se(r)+s+se(o)+a:oe}(a,t,n,e,i,r,s,o);return l!==oe&&bi(a,Gt(),l),Ci}function ws(t,n,e,i,r,s,o,a,l){const c=O(),u=function fs(t,n,e,i,r,s,o,a,l,c){const d=Dn(t,mi(),e,r,o,l);return _i(4),d?n+se(e)+i+se(r)+s+se(o)+a+se(l)+c:oe}(c,t,n,e,i,r
,s,o,a,l);return u!==oe&&bi(c,Gt(),u),ws}const _r=void 0;var Ak=["en",[["a","p"],["AM","PM"],_r],[["AM","PM"],_r,_r],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],_r,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],_r,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_r,"{1} 'at' {0}",_r],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Rk(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&
&0===i?1:5}];let Cs={};function cv(t){return t in Cs||(Cs[t]=Fe.ng&&Fe.ng.common&&Fe.ng.common.locales&&Fe.ng.common.locales[t]),Cs[t]}var N=(()=>((N=N||{})[N.LocaleId=0]="LocaleId",N[N.DayPeriodsFormat=1]="DayPeriodsFormat",N[N.DayPeriodsStandalone=2]="DayPeriodsStandalone",N[N.DaysFormat=3]="DaysFormat",N[N.DaysStandalone=4]="DaysStandalone",N[N.MonthsFormat=5]="MonthsFormat",N[N.MonthsStandalone=6]="MonthsStandalone",N[N.Eras=7]="Eras",N[N.FirstDayOfWeek=8]="FirstDayOfWeek",N[N.WeekendRange=9]="WeekendRange",N[N.DateFormat=10]="DateFormat",N[N.TimeFormat=11]="TimeFormat",N[N.DateTimeFormat=12]="DateTimeFormat",N[N.NumberSymbols=13]="NumberSymbols",N[N.NumberFormats=14]="NumberFormats",N[N.CurrencyCode=15]="CurrencyCode",N[N.CurrencySymbol=16]="CurrencySymbol",N[N.CurrencyName=17]="CurrencyName",N[N.Currencies=18]="Currencies",N[N.Directionality=19]="Directionality",N[N.PluralCase=20]="PluralCase",N[N.ExtraData=21]="ExtraData",N))();const Sl="en-US";let uv=Sl;function gh(t,n,e,i,r
){if(t=ce(t),Array.isArray(t))for(let s=0;s<t.length;s++)gh(t[s],n,e,i,r);else{const s=Ce(),o=O();let a=ls(t)?t:ce(t.provide),l=j_(t);const c=mt(),u=1048575&c.providerIndexes,d=c.directiveStart,_=c.providerIndexes>>20;if(ls(t)||!t.multi){const y=new ho(l,r,w),b=_h(a,n,r?u:u+_,d);-1===b?(Xa(fo(c,o),s,a),mh(s,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(y),o.push(y)):(e[b]=y,o[b]=y)}else{const y=_h(a,n,u+_,d),b=_h(a,n,u,u+_),D=y>=0&&e[y],T=b>=0&&e[b];if(r&&!T||!r&&!D){Xa(fo(c,o),s,a);const k=function RM(t,n,e,i,r){const s=new ho(t,e,w);return s.multi=[],s.index=n,s.componentProviders=0,Pv(s,r,i&&!e),s}(r?OM:MM,e.length,r,i,l);!r&&T&&(e[b].providerFactory=k),mh(s,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(k),o.push(k)}else mh(s,t,y>-1?y:b,Pv(e[r?b:y],l,!r&&i));!r&&i&&T&&e[b].componentProviders++}}}function mh(t,n,e,i){const r=ls(n),s=function rI(t){return!!t.useClass}(n);if(r||s)
{const l=(s?ce(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function Pv(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function _h(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function MM(t,n,e,i){return yh(this.multi,[])}function OM(t,n,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=go(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),yh(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],yh(r,s);return s}function yh(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function be(t,n=[]){return e=>{e.providersResolver=(i,r)=>function kM(t,n,e){const i=Ce();if(i.firstCreatePass){const r=Bn(t);gh(e,i.data,i.blueprint,r,!0),gh(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class Fv{}class FM{resolveComponentFactory(n){throw function PM(t){const n=Error(`No c
omponent factory found for ${we(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Ss=(()=>{class t{}return t.NULL=new FM,t})();function LM(){return Ts(mt(),O())}function Ts(t,n){return new Se(wn(t,n))}let Se=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LM,t})();function NM(t){return t instanceof Se?t.nativeElement:t}class jo{}let dn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function BM(){const t=O(),e=sn(mt().index,t);return function VM(t){return t[11]}(Zn(e)?e:t)}(),t})(),HM=(()=>{class t{}return t.\u0275prov=j({token:t,providedIn:"root",factory:()=>null}),t})();class Uo{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const zM=new Uo("13.0.3"),vh={};function kl(t,n,e,i,r=!1){for(;null!==e;){const s=n[e.index];if(null!==s&&i.push(ct(s)),Vn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&kl(l[1],l,c,i)}const o=e
.type;if(8&o)kl(t,n,e.child,i);else if(32&o){const a=_d(e,n);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Zm(n,e);if(Array.isArray(a))i.push(...a);else{const l=ko(n[16]);kl(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class $o{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return kl(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Vn(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Cd(n,i),tl(e,i))}this._attachedToViewContainer=!1}jm(this._lView[1],this._lView)}onDestroy(n){D_(this._lView[1],this._lView,null,n)}markForCheck(){Gd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){qd(this._lView[1],th
is._lView,this.context)}checkNoChanges(){!function qx(t,n,e){Ua(!0);try{qd(t,n,e)}finally{Ua(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function UE(t,n){Mo(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=n}}class jM extends $o{constructor(n){super(n),this._view=n}detectChanges(){R_(this._view)}checkNoChanges(){!function Kx(t){Ua(!0);try{R_(t)}finally{Ua(!1)}}(this._view)}get context(){return null}}class Nv extends Ss{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Lt(n);return new bh(e,this.ngModule)}}function Vv(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}const $M=new ie("SC
HEDULER_TOKEN",{providedIn:"root",factory:()=>Pm});class bh extends Fv{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function cx(t){return t.map(lx).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Vv(this.componentDef.inputs)}get outputs(){return Vv(this.componentDef.outputs)}create(n,e,i,r){const s=(r=r||this.ngModule)?function GM(t,n){return{get:(e,i,r)=>{const s=t.get(e,vh,r);return s!==vh||i===vh?s:n.get(e,i,r)}}}(n,r.injector):n,o=s.get(jo,Og),a=s.get(HM,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function C_(t,n,e){if(et(t))return t.selectRootElement(n,e===Ln.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):wd(o.createRenderer(null,this.componentDef),c,function UM(t){const n=t.toLowerCase();return"svg"===n?kg:"ma
th"===n?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,_=function ey(t,n){return{components:[],scheduler:t||Pm,clean:Yx,playerHandler:n||null,flags:0}}(),y=ml(0,null,null,1,0,null,null,null,null,null),b=Oo(null,y,_,d,null,null,o,l,a,s);let D,T;$a(b);try{const k=function J_(t,n,e,i,r,s){const o=e[1];e[20]=t;const l=rs(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(yl(l,c,!0),null!==t&&(Ya(r,t,c),null!==l.classes&&xd(r,t,l.classes),null!==l.styles&&e_(r,t,l.styles)));const u=i.createRenderer(t,n),d=Oo(e,b_(n),null,n.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(Xa(fo(l,e),o,n.type),I_(o,l),k_(l,e.length,1)),_l(e,d),e[20]=d}(u,this.componentDef,b,o,l);if(u)if(i)Ya(l,u,["ng-version",zM.full]);else{const{attrs:x,classes:A}=function ux(t){const n=[],e=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&n.push(s,t[++i]):8===r&&e.push(s);else{if(!Hn(r))break;r=s}i++}return{attrs:n,classes:e}}(this.co
mponentDef.selectors[0]);x&&Ya(l,u,x),A&&A.length>0&&xd(l,u,A.join(" "))}if(T=Vu(y,20),void 0!==e){const x=T.projection=[];for(let A=0;A<this.ngContentSelectors.length;A++){const F=e[A];x.push(null!=F?Array.from(F):null)}}D=function X_(t,n,e,i,r){const s=e[1],o=function Ox(t,n,e){const i=mt();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),M_(t,i,n,ss(t,n,1,null),e));const r=go(n,t,i.directiveStart,i);Vt(r,n);const s=wn(i,n);return s&&Vt(s,n),r}(s,e,n);if(i.components.push(o),t[8]=o,r&&r.forEach(l=>l(o,n)),n.contentQueries){const l=mt();n.contentQueries(1,o,l.directiveStart)}const a=mt();return!s.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Ui(a.index),E_(e[1],a,0,a.directiveStart,a.directiveEnd,n),x_(n,o)),o}(k,this.componentDef,b,_,[gI]),Ro(y,b,null)}finally{Ga()}return new qM(this.componentType,D,Ts(T,b),b,T)}}class qM extends class AM{}{constructor(n,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=thi
s.changeDetectorRef=new jM(r),this.componentType=n}get injector(){return new Wr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class Di{}class Bv{}const Es=new Map;class jv extends Di{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Nv(this);const i=yn(n);this._bootstrapComponents=ni(i.bootstrap),this._r3Injector=z_(n,e,[{provide:Di,useValue:this},{provide:Ss,useValue:this.componentFactoryResolver}],we(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=kt.THROW_IF_NOT_FOUND,i=ae.Default){return n===kt||n===Di||n===Yd?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class wh extends Bv{constructor(n){super(),this.moduleType=n,null!==yn(n)&&function YM(t){const n=new Set;!fu
nction e(i){const r=yn(i,!0),s=r.id;null!==s&&(function Hv(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${we(n)} vs ${we(n.name)}`)}(s,Es.get(s),i),Es.set(s,i));const o=ni(r.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new jv(this.moduleType,n)}}function En(t,n,e){const i=$t()+t,r=O();return r[i]===oe?ri(r,i,e?n.call(e):n()):Fo(r,i)}function G(t,n,e,i){return $v(O(),$t(),t,n,e,i)}function it(t,n,e,i,r){return function Gv(t,n,e,i,r,s,o){const a=n+e;return mr(t,a,r,s)?ri(t,a+2,o?i.call(o,r,s):i(r,s)):Go(t,a+2)}(O(),$t(),t,n,e,i,r)}function xs(t,n,e,i,r,s){return Wv(O(),$t(),t,n,e,i,r,s)}function Si(t,n,e,i,r,s,o){return function qv(t,n,e,i,r,s,o,a,l){const c=n+e;return Dn(t,c,r,s,o,a)?ri(t,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):Go(t,c+4)}(O(),$t(),t,n,e,i,r,s,o)}function yr(t,n,e,i,r,s,o,a){const l=$t()+t,c=O(),u=Dn(c,l,e,i,r,s);return Bt(c,l+4,o)||u?ri(c,l+5,a?n.call(a,e,i,r,s,o):n(e,i,r,s,o)):Fo(c,l+5)}function Is(t,n,e,i,r,
s,o,a,l){const c=$t()+t,u=O(),d=Dn(u,c,e,i,r,s);return mr(u,c+4,o,a)||d?ri(u,c+6,l?n.call(l,e,i,r,s,o,a):n(e,i,r,s,o,a)):Fo(u,c+6)}function Ch(t,n,e,i){return function Kv(t,n,e,i,r,s){let o=n+e,a=!1;for(let l=0;l<r.length;l++)Bt(t,o++,r[l])&&(a=!0);return a?ri(t,o,i.apply(s,r)):Go(t,o)}(O(),$t(),t,n,e,i)}function Go(t,n){const e=t[n];return e===oe?void 0:e}function $v(t,n,e,i,r,s){const o=n+e;return Bt(t,o,r)?ri(t,o+1,s?i.call(s,r):i(r)):Go(t,o+1)}function Wv(t,n,e,i,r,s,o,a){const l=n+e;return bl(t,l,r,s,o)?ri(t,l+3,a?i.call(a,r,s,o):i(r,s,o)):Go(t,l+3)}function Ti(t,n){const e=Ce();let i;const r=t+20;e.firstCreatePass?(i=function ZM(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=fr(i.type)),o=Bi(w);try{const a=Za(!1),l=s();return Za(a),function xI(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=nul
l),n[e]=i}(e,O(),r,l),l}finally{Bi(o)}}function Ki(t,n,e){const i=t+20,r=O(),s=jr(r,i);return Wo(r,i)?$v(r,$t(),n,s.transform,e,s):s.transform(e)}function Wo(t,n){return t[1].data[n].pure}function Dh(t){return n=>{setTimeout(t,void 0,n)}}const R=class tO extends Oe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var r,s,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const d=n;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Dh(l),a&&(a=Dh(a)),c&&(c=Dh(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof Ge&&n.add(u),u}};function nO(){return this._results[cs()]()}class Sh{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=cs(),i=Sh.prototype;i[e]||(i[e]=nO)}get changes
(){return this._changes||(this._changes=new R)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=Cn(n);(this._changesDetected=!function bT(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],s=n[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let xn=(()=>{class t{}return t.__NG_ELEMENT_ID__=sO,t})();const iO=xn,rO=class extends iO{co
nstructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Oo(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),Ro(e,i,n),new $o(i)}};function sO(){return Ml(mt(),O())}function Ml(t,n){return 4&t.type?new rO(n,t,Ts(t,n)):null}let In=(()=>{class t{}return t.__NG_ELEMENT_ID__=oO,t})();function oO(){return Jv(mt(),O())}const aO=In,Qv=class extends aO{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ts(this._hostTNode,this._hostLView)}get injector(){return new Wr(this._hostTNode,this._hostLView)}get parentInjector(){const n=Ja(this._hostTNode,this._hostLView);if(Kg(n)){const e=Gr(n,this._hostLView),i=$r(n);return new Wr(e[1].data[i+8],e)}return new Wr(null,this._host
LView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=Zv(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const r=n.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(n,e,i,r,s){const o=n&&!function yo(t){return"function"==typeof t}(n);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?n:new bh(Lt(n)),c=i||this.parentInjector;if(!s&&null==l.ngModule&&c){const d=c.get(Di,null);d&&(s=d)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[1];if(function jS(t){return Vn(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],_=new Qv(d,d[6],d[3]);_.detach(_.indexOf(n))}}const s=this._adjustIndex(e),o=this._lContainer;!function GE(t,n,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=n),i<s-10?(n[4]=e[r],rm(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null
!==o&&e!==o&&function WE(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=128}(r,i,o,s);const a=Td(s,o),l=i[11],c=ul(l,o[7]);return null!==c&&function jE(t,n,e,i,r,s){i[0]=r,i[6]=n,Mo(t,i,e,1,r,s)}(r,o[6],l,i,c,a),n.attachToViewContainerRef(),rm(Th(o),s,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=Zv(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Cd(this._lContainer,e);i&&(tl(Th(this._lContainer),e),jm(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Cd(this._lContainer,e);return i&&null!=tl(Th(this._lContainer),e)?new $o(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function Zv(t){return t[8]}function Th(t){return t[8]||(t[8]=[])}function Jv(t,n){let e;const i=n[t.index];if(Vn(i))e=i;else{let r;if(8&t.type)r=ct(i);else{const s=n[11];r=s.createComment("");const o=wn(t,n);gr(s,ul(s,o),r,function QE(t,n){return et(t)?t.nextSibli
ng(n):n.nextSibling}(s,o),!1)}n[t.index]=e=O_(i,n,r,t),_l(n,e)}return new Qv(e,t,n)}class Eh{constructor(n){this.queryList=n,this.matches=null}clone(){return new Eh(this.queryList)}setDirty(){this.queryList.setDirty()}}class xh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new xh(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==ib(n,e).matches&&this.queries[e].setDirty()}}class Xv{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class Ih{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].ele
mentEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(n,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new Ih(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class kh{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new kh(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._
declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(n,e,uO(e,s)),this.matchTNodeWithReadOption(n,e,el(e,n,s,!1,!1))}else i===xn?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,el(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Se||r===In||r===xn&&4&e.type)this.addMatch(e.index,-2);else{const s=el(e,n,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function uO(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function hO(t,n,e,i){return-1===e?function dO(t,n){return 11&t.type?Ts(t,n):4&t.type?Ml(t,n):null}(n
,t):-2===e?function pO(t,n,e){return e===Se?Ts(n,t):e===xn?Ml(n,t):e===In?Jv(n,t):void 0}(t,n,i):go(t,t[1],e,n)}function eb(t,n,e,i){const r=n[19].queries[i];if(null===r.matches){const s=t.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:hO(n,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function Mh(t,n,e,i){const r=t.queries.getByIndex(e),s=r.matches;if(null!==s){const o=eb(t,n,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=n[-l];for(let d=10;d<u.length;d++){const _=u[d];_[17]===_[3]&&Mh(_[1],_,c,i)}if(null!==u[9]){const d=u[9];for(let _=0;_<d.length;_++){const y=d[_];Mh(y[1],y,c,i)}}}}}return i}function K(t){const n=O(),e=Ce(),i=Vg();Gu(i+1);const r=ib(e,i);if(t.dirty&&Rg(n)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?Mh(e,n,i,[]):eb(e,n,r,i);t.reset(s,NM),t.notifyOnChanges()}return!0}return!1}function He(t,n,e){const i=Ce();i.firstCreatePass&&(
nb(i,new Xv(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),tb(i,O(),n)}function Ye(t,n,e,i){const r=Ce();if(r.firstCreatePass){const s=mt();nb(r,new Xv(n,e,i),s.index),function gO(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(r,t),2==(2&e)&&(r.staticContentQueries=!0)}tb(r,O(),e)}function Y(){return function fO(t,n){return t[19].queries[n].queryList}(O(),Vg())}function tb(t,n,e){const i=new Sh(4==(4&e));D_(t,n,i,i.destroy),null===n[19]&&(n[19]=new xh),n[19].queries.push(new Eh(i))}function nb(t,n,e){null===t.queries&&(t.queries=new Ih),t.queries.track(new kh(n,e))}function ib(t,n){return t.queries.getByIndex(n)}function ze(t,n){return Ml(t,n)}function Al(...t){}const Pl=new ie("Application Initializer");let Ms=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Al,this.reject=Al,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.init
ialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Lo(s))e.push(s);else if(ch(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(P(Pl,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Ko=new ie("AppId"),AO={provide:Ko,useFactory:function RO(){return`${Lh()}${Lh()}${Lh()}`},deps:[]};function Lh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const bb=new ie("Platform Initializer"),Yo=new ie("Platform ID"),wb=new ie("appBootstrapListener");let Cb=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Yi=new ie("LocaleId"),Db=new ie("DefaultCurrencyCode");class PO{constructor(n,e){t
his.ngModuleFactory=n,this.componentFactories=e}}let Fl=(()=>{class t{compileModuleSync(e){return new wh(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),s=ni(yn(e).declarations).reduce((o,a)=>{const l=Lt(a);return l&&o.push(new bh(l)),o},[]);return new PO(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const LO=(()=>Promise.resolve(0))();function Nh(t){"undefined"==typeof Zone?LO.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Te{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnst
able=new R(!1),this.onMicrotaskEmpty=new R(!1),this.onStable=new R(!1),this.onError=new R(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function NO(){let t=Fe.requestAnimationFrame,n=Fe.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function HO(t){const n=()=>{!function BO(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId
||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Fe,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Bh(t),t.isCheckStableRunning=!0,Vh(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Bh(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return Sb(t),e.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&n(),Tb(t)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return Sb(t),e.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Tb(t)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Bh(t),Vh(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAng
ularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Te.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Te.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,n,VO,Al,Al);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const VO={};function Vh(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Bh(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestA
nimationFrameId)}function Sb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Tb(t){t._nesting--,Vh(t)}class zO{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new R,this.onMicrotaskEmpty=new R,this.onStable=new R,this.onError=new R}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}let Hh=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Te.assertNotInAngularZone(),Nh(()=>{this._isZoneStable=!0,this._ru
nCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Nh(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.t
imeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(P(Te))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),Eb=(()=>{class t{constructor(){this._applications=new Map,zh.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInT
ree(e,i=!0){return zh.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class jO{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Gn,zh=new jO;const xb=new ie("AllowMultipleToken");class Ib{constructor(n,e){this.name=n,this.token=e}}function kb(t,n,e=[]){const i=`Platform: ${n}`,r=new ie(i);return(s=[])=>{let o=Mb();if(!o||o.injector.get(xb,!1))if(t)t(e.concat(s).concat({provide:r,useValue:!0}));else{const a=e.concat(s).concat({provide:r,useValue:!0},{provide:Qd,useValue:"platform"});!function WO(t){if(Gn&&!Gn.destroyed&&!Gn.injector.get(xb,!1))throw new en("400","");Gn=t.get(Ob);const n=t.get(bb,null);n&&n.forEach(e=>e())}(kt.create({providers:a,name:i}))}return function qO(t){const n=Mb();if(!n)throw new en("401","");return n}()}}function Mb(){return Gn&&!Gn.destroyed?Gn:null}let Ob=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed
=!1}bootstrapModuleFactory(e,i){const a=function KO(t,n){let e;return e="noop"===t?new zO:("zone.js"===t?void 0:t)||new Te({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Te,useValue:a}];return a.run(()=>{const c=kt.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(ts,null);if(!d)throw new en("402","");return a.runOutsideAngular(()=>{const _=a.onError.subscribe({next:y=>{d.handleError(y)}});u.onDestroy(()=>{jh(this._modules,u),_.unsubscribe()})}),function YO(t,n,e){try{const i=e();return Lo(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(d,a,()=>{const _=u.injector.get(Ms);return _.runInitial
izers(),_.donePromise.then(()=>(function Vk(t){nn(t,"Expected localeId to be defined"),"string"==typeof t&&(uv=t.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Yi,Sl)||Sl),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=Rb({},i);return function $O(t,n,e){const i=new wh(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Qo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new en("403","");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new en("404","");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(P(kt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();f
unction Rb(t,n){return Array.isArray(n)?n.reduce(Rb,t):Object.assign(Object.assign({},t),n)}let Qo=(()=>{class t{constructor(e,i,r,s,o){this._zone=e,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Ee(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new Ee(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Te.assertNotInAngularZone(),Nh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Te.assertInAngularZone(),this.
_stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),d.unsubscribe()}});this.isStable=function nS(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return Lr(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof Ee?t[0]:so(n)(wu(t,e))}(a,l.pipe(function dS(){return t=>Cu()(function lS(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new cS(r,n));const s=Object.create(i,sS);return s.source=i,s.subjectFactory=r,s}}(uS)(t))}()))}bootstrap(e,i){if(!this._initStatus.done)throw new en("405","");let r;r=e instanceof Fv?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function GO(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Di),a=r.create(kt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get
(Hh,null),u=c&&a.injector.get(Eb);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),jh(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new en("101","");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;jh(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(wb,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(P(Te),P(kt),P(ts),P(Ss),P(Ms))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})()
;function jh(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Pb=!0,vt=(()=>{class t{}return t.__NG_ELEMENT_ID__=JO,t})();function JO(t){return function XO(t,n,e){if(Ba(t)&&!e){const i=sn(t.index,n);return new $o(i,i)}return 47&t.type?new $o(n[16],n):null}(mt(),O(),16==(16&t))}class zb{constructor(){}supports(n){return Po(n)}create(n){return new sR(n)}}const rR=(t,n)=>n;class sR{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||rR}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<Ub(i,r,s)?e:i,a=Ub(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemov
ed;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let _=0;_<c;_++){const y=_<s.length?s[_]:s[_]=0,b=y+_;u<=b&&b<c&&(s[_]=y+1)}s[o.previousIndex]=u-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!Po(n))throw new Error(`Error trying to diff '${we(n)}'. Only arrays and iterables are allowed`);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)s=n[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o
)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function TI(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[cs()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n
.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let s;return null===n?s=this._itTail:(s=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,s,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,s,r)):n=this._addAfter(new oR(e,i),s,r),n}_verifyReinsertion(n,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?n=this._reinsertAfter(s,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded
=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,s=n._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new jb),this.
_linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new jb),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class oR{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this
.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class aR{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class jb{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new aR,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get is
Empty(){return 0===this.map.size}clear(){this.map.clear()}}function Ub(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}class $b{constructor(){}supports(n){return n instanceof Map||nh(n)}create(){return new lR}}class lR{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e
;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||nh(n)))throw new Error(`Error trying to diff '${we(n)}'. Only maps and objects are allowed`)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e
),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new cR(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){nul
l===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class cR{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Gb(){return new Os([new zb])}let Os=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Gb()),deps:[[t,new Jr,new ei]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function uR(t){return t.name|
|typeof t}(e)}'`)}}return t.\u0275prov=j({token:t,providedIn:"root",factory:Gb}),t})();function Wb(){return new Rs([new $b])}let Rs=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Wb()),deps:[[t,new Jr,new ei]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return t.\u0275prov=j({token:t,providedIn:"root",factory:Wb}),t})();const dR=[new $b],pR=new Os([new zb]),fR=new Rs(dR),gR=kb(null,"core",[{provide:Yo,useValue:"unknown"},{provide:Ob,deps:[kt]},{provide:Eb,deps:[]},{provide:Cb,deps:[]}]),bR=[{provide:Qo,useClass:Qo,deps:[Te,kt,ts,Ss,Ms]},{provide:$M,deps:[Te],useFactory:function wR(t){let n=[];return t.onStable.subscribe(()=>{for(;n.length;)n.pop()()}),function(e){n.push(e)}}},{provide:Ms,useClass:Ms,deps:[[new ei,Pl]]},{provide:Fl,useClass:Fl,deps:[]},
AO,{provide:Os,useFactory:function mR(){return pR},deps:[]},{provide:Rs,useFactory:function _R(){return fR},deps:[]},{provide:Yi,useFactory:function yR(t){return t||function vR(){return"undefined"!=typeof $localize&&$localize.locale||Sl}()},deps:[[new Do(Yi),new ei,new Jr]]},{provide:Db,useValue:"USD"}];let CR=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(P(Qo))},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:bR}),t})(),Nl=null;function ai(){return Nl}const bt=new ie("DocumentToken");let br=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:function(){return function ER(){return P(qb)}()},providedIn:"platform"}),t})();const xR=new ie("Location Initialized");let qb=(()=>{class t extends br{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ai().getBaseHref(this._doc)}
onPopState(e){const i=ai().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ai().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){Kb()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){Kb()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(P(bt))},t.\u0275prov=j(
{token:t,factory:function(){return function IR(){return new qb(P(bt))}()},providedIn:"platform"}),t})();function Kb(){return!!window.history.pushState}function qh(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Yb(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ei(t){return t&&"?"!==t[0]?"?"+t:t}let As=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:function(){return function kR(t){const n=P(bt).location;return new Qb(P(br),n&&n.origin||"")}()},providedIn:"root"}),t})();const Kh=new ie("appBaseHref");let Qb=(()=>{class t extends As{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please p
rovide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return qh(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ei(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+Ei(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+Ei(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(P(br),P(Kh,8))},t.\u0275prov=j({toke
n:t,factory:t.\u0275fac}),t})(),MR=(()=>{class t extends As{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=qh(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+Ei(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+Ei(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,
r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(P(br),P(Kh,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),Yh=(()=>{class t{constructor(e,i){this._subject=new R,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Yb(Zb(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ei(i))}normalize(e){return t.stripTrailingSlash(function RR(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,Zb(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._no
tifyUrlChangeListeners(this.prepareExternalUrl(e+Ei(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ei(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Ei,t.joinWithSlash=qh,t.stripTrailingSlash=Yb,t.\u0275fac=function(e){return new(e||t)(P(As),P(br))},t.\u0275prov=j({token:t,factory:function(){return function OR(){return new Yh(P(As),P(br))}()},providedIn:"root"}),t})();function Zb(t){return t.replace(/\/inde
x.html$/,"")}var dt=(()=>((dt=dt||{})[dt.Zero=0]="Zero",dt[dt.One=1]="One",dt[dt.Two=2]="Two",dt[dt.Few=3]="Few",dt[dt.Many=4]="Many",dt[dt.Other=5]="Other",dt))();const BR=function lv(t){return function qt(t){const n=function Pk(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=cv(n);if(e)return e;const i=n.split("-")[0];if(e=cv(i),e)return e;if("en"===i)return Ak;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[N.PluralCase]};class ql{}let fA=(()=>{class t extends ql{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(BR(i||this.locale)(e)){case dt.Zero:return"zero";case dt.One:return"one";case dt.Two:return"two";case dt.Few:return"few";case dt.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(P(Yi))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function ow(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)
return decodeURIComponent(s)}return null}let Je=(()=>{class t{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Po(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueD
iffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${we(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeE
lement,r)})}}return t.\u0275fac=function(e){return new(e||t)(w(Os),w(Rs),w(Se),w(dn))},t.\u0275dir=U({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class mA{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Mt=(()=>{class t{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of ty
pe '${function _A(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((r,s,o)=>{if(null==r.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new mA(null,this._ngForOf,-1,-1),null===o?void 0:o),l=new aw(r,a);i.push(l)}else if(null==o)this._viewContainer.remove(null===s?void 0:s);else if(null!==s){const a=this._viewContainer.get(s);this._viewContainer.move(a,o);const l=new aw(r,a);i.push(l)}});for(let r=0;r<i.length;r++)this._perViewChange(i[r].view,i[r].record);for(let r=0,s=this._viewContainer.length;r<s;r++){const o=this._viewContainer.get(r);o.context.index=r,o.context.count=s,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{this._viewContainer.get(r.currentIndex).context.$implicit=r.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){re
turn!0}}return t.\u0275fac=function(e){return new(e||t)(w(In),w(xn),w(Os))},t.\u0275dir=U({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class aw{constructor(n,e){this.record=n,this.view=e}}let Me=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new yA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){lw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){lw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this
._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(In),w(xn))},t.\u0275dir=U({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class yA{constructor(){this.$implicit=null,this.ngIf=null}}function lw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${we(n)}'.`)}let lt=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyl
e(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(Rs),w(dn))},t.\u0275dir=U({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Ot=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(w(In))},t.\u02
75dir=U({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[gt]}),t})();function qn(t,n){return Error(`InvalidPipeArgument: '${n}' for pipe '${we(t)}'`)}class CA{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class DA{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const SA=new DA,TA=new CA;let Kl=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e
){if(Lo(e))return SA;if(wy(e))return TA;throw qn(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(w(vt,16))},t.\u0275pipe=Zt({name:"async",type:t,pure:!1}),t})(),dw=(()=>{class t{transform(e,i,r){if(null==e)return null;if(!this.supports(e))throw qn(t,e);return e.slice(i,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Zt({name:"slice",type:t,pure:!1}),t})(),Pe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:[{provide:ql,useClass:fA}]}),t})();const hw="browser";let GA=(()=>{class t{}return t.\u0275prov=j({token:t,providedIn:"root",factory:()=>new WA(P(bt),window)}),t})();class WA{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0
]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function qA(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(n)||s.querySelector(`[name="${n}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOff
set,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}attemptFocus(n){return n.focus(),this.document.activeElement===n}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=pw(this.window.history)||pw(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function pw(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class fw{}class lp extends class KA extends class TR{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function SR(t){Nl||(Nl=t)}(new lp)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){
return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function YA(){return Xo=Xo||document.querySelector("base"),Xo?Xo.getAttribute("href"):null}();return null==e?null:function QA(t){Yl=Yl||document.createElement("a"),Yl.setAttribute("href",t);const n=Yl.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Xo=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ow(document.cookie,n)}}let Yl,Xo=null;const gw=new ie("TRANSITION_ID"),JA=[{provide:Pl,useFactory:function ZA(t,n,e){return()=>{e.get(Ms).donePromise.then(()=>{const i=ai(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[gw,bt,kt],multi:!0}];class cp{static init(){!function
UO(t){zh=t}(new cp)}addToWindow(n){Fe.getAngularTestability=(i,r=!0)=>{const s=n.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},Fe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Fe.getAllAngularRootElements=()=>n.getAllRootElements(),Fe.frameworkStabilizers||(Fe.frameworkStabilizers=[]),Fe.frameworkStabilizers.push(i=>{const r=Fe.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const r=n.getTestability(e);return null!=r?r:i?ai().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let XA=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Ql=new ie("EventManagerPlugins");let Zl=(()=>{class t{constructor(e,i){this._zone=i,
this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(P(Ql),P(Te))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class mw{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const r=ai().getGlobalEventTarget(this._doc,n);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let _w=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._styles
Set.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),ea=(()=>{class t extends _w{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(yw),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(yw))}}return t.\u0275fac=function(e){return new(e||t)(P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function yw(t){ai().remove(t)}const up={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.
org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},dp=/%COMP%/g;function Jl(t,n,e){for(let i=0;i<n.length;i++){let r=n[i];Array.isArray(r)?Jl(t,r,e):(r=r.replace(dp,t),e.push(r))}return e}function ww(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Xl=(()=>{class t{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new hp(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ln.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new sP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ln.ShadowDom:return new oP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Jl(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),t
his.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(P(Zl),P(ea),P(Ko))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class hp{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(up[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const s=up[r];s?n.setAttributeNS(s,e,i):n.setAttribute(e,i)}else n.setAttribute(e,
i)}removeAttribute(n,e,i){if(i){const r=up[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(ln.DashCase|ln.Important)?n.style.setProperty(e,i,r&ln.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&ln.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,ww(i)):this.eventManager.addEventListener(n,e,ww(i))}}class sP extends hp{constructor(n,e,i,r){super(n),this.component=i;const s=Jl(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function nP(t){return"_ngcontent-%COMP%".replace(dp,t)}(r+"-"+i.id),this.hostAttr=function iP(t){return"_nghost-%COMP%".replace(dp,t)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,
this.contentAttr,""),i}}class oP extends hp{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Jl(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let aP=(()=>{class t extends mw{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventL
istener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Dw=["alt","control","meta","shift"],cP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Sw={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},uP={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let dP=(()=>{class t extends mw{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ai().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=t
._normalizeKey(i.pop());let o="";if(Dw.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function hP(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Sw.hasOwnProperty(n)&&(n=Sw[n]))}return cP[n]||n}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Dw.forEach(s=>{s!=r&&uP[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const mP=kb(gR,"browser",[{provide:Yo,useValue:hw},{provide:bb,useValue:function pP(){lp.makeCurrent(),cp.init()},multi:!0},{provide:bt,useFactory:function gP(){return fun
ction VS(t){Lu=t}(document),document},deps:[]}]),_P=[{provide:Qd,useValue:"root"},{provide:ts,useFactory:function fP(){return new ts},deps:[]},{provide:Ql,useClass:aP,multi:!0,deps:[bt,Te,Yo]},{provide:Ql,useClass:dP,multi:!0,deps:[bt]},{provide:Xl,useClass:Xl,deps:[Zl,ea,Ko]},{provide:jo,useExisting:Xl},{provide:_w,useExisting:ea},{provide:ea,useClass:ea,deps:[bt]},{provide:Hh,useClass:Hh,deps:[Te]},{provide:Zl,useClass:Zl,deps:[Ql,Te]},{provide:fw,useClass:XA,deps:[]}];let Tw=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ko,useValue:e.appId},{provide:gw,useExisting:Ko},JA]}}}return t.\u0275fac=function(e){return new(e||t)(P(t,12))},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:_P,imports:[Pe,CR]}),t})();function ee(...t){let n=t[t.length-1];return
Lr(n)?(t.pop(),bu(t,n)):wu(t)}function Ps(t,n){return It(t,n,1)}function Zi(t,n){return function(i){return i.lift(new IP(t,n))}}"undefined"!=typeof window&&window;class IP{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new kP(n,this.predicate,this.thisArg))}}class kP extends je{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}class Iw{}class kw{}class Ii{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase(
);"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Ii?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.norm
alizedNames.get(e))})}clone(n){const e=new Ii;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ii?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=n.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class MP{encodeKey(n){return Mw(n)}encodeValue(n){return Mw(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const RP=/%(\d[a-f0-9])
/gi,AP={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Mw(t){return encodeURIComponent(t).replace(RP,(n,e)=>{var i;return null!==(i=AP[e])&&void 0!==i?i:n})}function Ow(t){return`${t}`}class ki{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new MP,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function OP(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,s)),n.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.ma
p.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new ki({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param
):void 0)||[];e.push(Ow(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Ow(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class PP{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}keys(){return this.map.keys()}}function Rw(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Aw(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Pw(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ta{constructor(n,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function FP(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":ca
se"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Ii),this.context||(this.context=new PP),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new ki,this.urlWithParams=e}serializeBody(){return null===this.body?null:Rw(this.body)||Aw(this.body)||Pw(this.body)||function LP(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ki?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):t
his.body.toString()}detectContentTypeHeader(){return null===this.body||Pw(this.body)?null:Aw(this.body)?this.body.type||null:Rw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ki?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){var e;const i=n.method||this.method,r=n.url||this.url,s=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,a=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let c=n.headers||this.headers,u=n.params||this.params;const d=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((_,y)=>_.set(y,n.setHeaders[y]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((_,y)=>_.set(y,n.setParams[y]),u)),new ta(i,r,o,{params:u,headers:c,context:d,reportProgress:l,respon
seType:s,withCredentials:a})}}var pt=(()=>((pt=pt||{})[pt.Sent=0]="Sent",pt[pt.UploadProgress=1]="UploadProgress",pt[pt.ResponseHeader=2]="ResponseHeader",pt[pt.DownloadProgress=3]="DownloadProgress",pt[pt.Response=4]="Response",pt[pt.User=5]="User",pt))();class fp{constructor(n,e=200,i="OK"){this.headers=n.headers||new Ii,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class gp extends fp{constructor(n={}){super(n),this.type=pt.ResponseHeader}clone(n={}){return new gp({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ec extends fp{constructor(n={}){super(n),this.type=pt.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ec({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.sta
tusText,url:n.url||this.url||void 0})}}class Fw extends fp{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function mp(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Fs=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof ta)s=e;else{let l,c;l=r.headers instanceof Ii?r.headers:new Ii(r.headers),r.params&&(c=r.params instanceof ki?r.params:new ki({fromObject:r.params})),s=new ta(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=ee(s).pipe(
Ps(l=>this.handler.handle(l)));if(e instanceof ta||"events"===r.observe)return o;const a=o.pipe(Zi(l=>l instanceof ec));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(ke(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ke(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ke(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ke(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ki).append(i,"JSONP_CALLBACK"),observe:"body",responseTyp
e:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,mp(r,i))}post(e,i,r={}){return this.request("POST",e,mp(r,i))}put(e,i,r={}){return this.request("PUT",e,mp(r,i))}}return t.\u0275fac=function(e){return new(e||t)(P(Iw))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class Lw{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const Nw=new ie("HTTP_INTERCEPTORS");let NP=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const VP=/^\)\]\}',?\n/;let Vw=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ee(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((y,b)
=>r.setRequestHeader(y,b.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const y=e.detectContentTypeHeader();null!==y&&r.setRequestHeader("Content-Type",y)}if(e.responseType){const y=e.responseType.toLowerCase();r.responseType="json"!==y?y:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const y=1223===r.status?204:r.status,b=r.statusText||"OK",D=new Ii(r.getAllResponseHeaders()),T=function BP(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new gp({headers:D,status:y,statusText:b,url:T}),o},l=()=>{let{headers:y,status:b,statusText:D,url:T}=a(),k=null;204!==b&&(k=void 0===r.response?r.responseText:r.response),0===b&&(b=k?200:0);let x=b>=200&&b<300;if("json"===e.responseType&&"string"==typeof k){const A=k;k=k.replace(VP,"");try{k=""!==k?JSON.parse(k):nu
ll}catch(F){k=A,x&&(x=!1,k={error:F,text:k})}}x?(i.next(new ec({body:k,headers:y,status:b,statusText:D,url:T||void 0})),i.complete()):i.error(new Fw({error:k,headers:y,status:b,statusText:D,url:T||void 0}))},c=y=>{const{url:b}=a(),D=new Fw({error:y,status:r.status||0,statusText:r.statusText||"Unknown Error",url:b||void 0});i.error(D)};let u=!1;const d=y=>{u||(i.next(a()),u=!0);let b={type:pt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(b.total=y.total),"text"===e.responseType&&!!r.responseText&&(b.partialText=r.responseText),i.next(b)},_=y=>{let b={type:pt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(b.total=y.total),i.next(b)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==s&&r.upload&&r.upload.addEventListener("progress",_)),r.send(s),i.next({type:pt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c
),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==s&&r.upload&&r.upload.removeEventListener("progress",_)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(P(fw))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const _p=new ie("XSRF_COOKIE_NAME"),yp=new ie("XSRF_HEADER_NAME");class Bw{}let HP=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ow(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(P(bt),P(Yo),P(_p))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),vp=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCa
se();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(P(Bw),P(yp))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),zP=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(Nw,[]);this.chain=i.reduceRight((r,s)=>new Lw(r,s),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(P(kw),P(kt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),jP=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:vp,useClass:NP}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:_p,useValue:e.cookieName}:[],e.headerName?{provide:yp,useValue:e.headerName}:[]]}}}return t.\u0275fa
c=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:[vp,{provide:Nw,useExisting:vp,multi:!0},{provide:Bw,useClass:HP},{provide:_p,useValue:"XSRF-TOKEN"},{provide:yp,useValue:"X-XSRF-TOKEN"}]}),t})(),UP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:[Fs,{provide:Iw,useClass:zP},Vw,{provide:kw,useExisting:Vw}],imports:[[jP.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function tc(t,n){return new Ee(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Ft(t[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(n?n.reduce((u,d,_)=>(u[d]=r[_],u),{}):r),e.complete())}}))}})}let Hw=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(
this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(w(dn),w(Se))},t.\u0275dir=U({type:t}),t})(),wr=(()=>{class t extends Hw{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=on(t)))(i||t)}}(),t.\u0275dir=U({type:t,features:[Be]}),t})();const Ht=new ie("NgValueAccessor"),WP={provide:Ht,useExisting:xe(()=>nc),multi:!0},KP=new ie("CompositionEventMode");let nc=(()=>{class t extends Hw{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function qP(){const t=ai()?ai().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){
this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(w(dn),w(Se),w(KP,8))},t.\u0275dir=U({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&M("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[be([WP]),Be]}),t})();function Ji(t){return null==t||0===t.length}const zt=new ie("NgValidators"),Xi=new ie("NgAsyncValidators");function na(t){return null}function Zw(t){return null!=t}function Jw(t){const n=Lo(t)?Ft(t):t;return ch(n),n}function Xw(t){let n={};return t.forEach(e=>{n=null!=e?Obje
ct.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function eC(t,n){return n.map(e=>e(t))}function tC(t){return t.map(n=>function QP(t){return!t.validate}(n)?n:e=>n.validate(e))}function bp(t){return null!=t?function nC(t){if(!t)return null;const n=t.filter(Zw);return 0==n.length?null:function(e){return Xw(eC(e,n))}}(tC(t)):null}function wp(t){return null!=t?function iC(t){if(!t)return null;const n=t.filter(Zw);return 0==n.length?null:function(e){return function $P(...t){if(1===t.length){const n=t[0];if(Fr(n))return tc(n,null);if(yu(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return tc(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return tc(t=1===t.length&&Fr(t[0])?t[0]:t,null).pipe(ke(e=>n(...e)))}return tc(t,null)}(eC(e,n).map(Jw)).pipe(ke(Xw))}}(tC(t)):null}function rC(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Cp(t){return t?Array.isArray(t)?t:[t]:[]}function ic(t,n){return Array.isAr
ray(t)?t.includes(n):t===n}function aC(t,n){const e=Cp(n);return Cp(t).forEach(r=>{ic(e,r)||e.push(r)}),e}function lC(t,n){return Cp(n).filter(e=>!ic(t,e))}class cC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return
this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=bp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=wp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class er extends cC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yt extends cC{get formDirective(){return null}get path(){return null}}class uC{constru
ctor(n){this._cd=n}is(n){var e,i,r;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[n])}}let rc=(()=>{class t extends uC{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(w(er,2))},t.\u0275dir=U({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&si("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[Be]}),t})(),dC=(()=>{class t extends uC{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(w(Yt,10))},t.\u0275dir=U({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings
:function(e,i){2&e&&si("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[Be]}),t})();function ia(t,n){Tp(t,n),n.valueAccessor.writeValue(t.value),function tF(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&hC(t,n)})}(t,n),function iF(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function nF(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&hC(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function eF(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(
()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function lc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Tp(t,n){const e=function sC(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(rC(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function oC(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(rC(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();lc(n._rawValidators,r),lc(n._rawAsyncValidators,r)}function hC(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function uc(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const ra="VALID",dc="INVALID",Ls="PENDING",sa="DISABLED";function Ip(t){return(Mp(t)?t.validators:t)||null}function gC(t){return Array.isArray(t)?bp(t):t||null}function kp(t,n){return(Mp(n)?n.asyncValidators:t
)||null}function mC(t){return Array.isArray(t)?wp(t):t||null}function Mp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Op{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=gC(this._rawValidators),this._composedAsyncValidatorFn=mC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===ra}get invalid(){return this.status===dc}get pending(){return this.status==Ls}get disabled(){return this.status===sa}get enabled(){return this.status!==sa}get dirty(){retu
rn!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=gC(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=mC(n)}addValidators(n){this.setValidators(aC(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(aC(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(lC(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(lC(n,this._rawAsyncValidators))}hasValidator(n){return ic(this._rawValidators,n)}hasAsyncValidator(n){return ic(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={})
{this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Ls,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=sa,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const
e=this._parentMarkedDirty(n.onlySelf);this.status=ra,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ra||this.status===Ls)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEa
chChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?sa:ra}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ls,this._hasOwnPendingAsyncValidator=!0;const e=Jw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function aF(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(e)),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(r=>{i=i instanceof oa?i.controls.hasOwnProperty(r)?i.controls[r]:null:i instanceof Rp&&i.at(r)||null}),i}(this,n,".")}getError(n,e
){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new R,this.statusChanges=new R}_calculateStatus(){return this._allControlsDisabled()?sa:this.errors?dc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ls)?Ls:this._anyControlsHaveStatus(dc)?dc:ra}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBo
xedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Mp(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ns extends Op{constructor(n=null,e,i){super(Ip(e),kp(i,e)),this._onChange=[],this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=null,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1
}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){uc(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){uc(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class oa extends Op{constructor(n,e,i){super(Ip(e),kp(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.control
s[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){this._checkAllValuesPresent(n),Object.keys(n).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.c
ontrols[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e instanceof Ns?e.value:e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_throwIfControlMissing(n){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[n])throw new Error(`Cannot find form control with name: ${n}.`)}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChi
ld(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(n){this._forEachChild((e,i)=>{if(void 0===n[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Rp extends Op{constructor(n,e,i){super(Ip(e),kp(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[
n]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){this._checkAllValuesPresent(n),n.forEach((i,r)=>{this._throwIfControlMissing(r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchVal
ue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n instanceof Ns?n.value:n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_throwIfControlMissing(n){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(n))throw new Error(`Cannot find form control at index ${n}`)}_forEachChild(n){this.controls.fo
rEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_checkAllValuesPresent(n){this._forEachChild((e,i)=>{if(void 0===n[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const lF={provide:Yt,useExisting:xe(()=>hc)},aa=(()=>Promise.resolve(null))();let hc=(()=>{class t extends Yt{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new R,this.form=new oa({},bp(e),wp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}add
Control(e){aa.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),ia(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){aa.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),uc(this._directives,e)})}addFormGroup(e){aa.then(()=>{const i=this._findContainer(e.path),r=new oa({});(function pC(t,n){Tp(t,n)})(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){aa.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){aa.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,function fC(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)}
)}(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(w(zt,10),w(Xi,10))},t.\u0275dir=U({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&M("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[be([lF]),Be]}),t})();const uF={provide:er,useExisting:xe(()=>Vs)},vC=(()=>Promise.resolve(null))();let Vs=(()=>{class t extends er{constructor(e,i,r,s){super(),this.control=new Ns,this._registered=!1,this.update=new R,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.
valueAccessor=function xp(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(s=>{s.constructor===nc?e=s:function oF(t){return Object.getPrototypeOf(t.constructor)===wr}(s)?i=s:r=s}),r||i||e||null}(0,s)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function Ep(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function oc(t,n){return[...n.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_se
tUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ia(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){vC.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;vC.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(w(Yt,9),w(zt,10),w(Xi,10),w(Ht,10))},t.\u0275dir=U({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:
["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[be([uF]),Be,gt]}),t})(),bC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=U({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const dF={provide:Ht,useExisting:xe(()=>Ap),multi:!0};let Ap=(()=>{class t extends wr{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=on(t)))(i||t)}}(),t.\u0275dir=U({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&M("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[be([dF]),Be]}),t})(),wC=(()=>{class t{}return t.\u0275fac=function(
e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})();const Pp=new ie("NgModelWithFormControlWarning");function MC(t){return"number"==typeof t?t:parseFloat(t)}let pc=(()=>{class t{constructor(){this._validator=na}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(i):na,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(){return null!=this[this.inputName]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=U({type:t,features:[gt]}),t})();const EF={provide:zt,useExisting:xe(()=>Hp),multi:!0};let Hp=(()=>{class t extends pc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>MC(e),this.createValidator=e=>function $w(t){return n=>{if(Ji(n.value)||Ji(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(e)}}return t.\u02
75fac=function(){let n;return function(i){return(n||(n=on(t)))(i||t)}}(),t.\u0275dir=U({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&q("max",i.enabled()?i.max:null)},inputs:{max:"max"},features:[be([EF]),Be]}),t})();const xF={provide:zt,useExisting:xe(()=>zp),multi:!0};let zp=(()=>{class t extends pc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>MC(e),this.createValidator=e=>function Uw(t){return n=>{if(Ji(n.value)||Ji(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=on(t)))(i||t)}}(),t.\u0275dir=U({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngM
odel",""]],hostVars:1,hostBindings:function(e,i){2&e&&q("min",i.enabled()?i.min:null)},inputs:{min:"min"},features:[be([xF]),Be]}),t})();const IF={provide:zt,useExisting:xe(()=>fc),multi:!0};let fc=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?function Gw(t){return Ji(t.value)?{required:!0}:null}(e):null}registerOnValidatorChange(e){this._onChange=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=U({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&q("required",i.required?"":null)},inputs:{required:"required"},features:[be([IF])]}),t})(),LC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t
.\u0275inj=J({imports:[[wC]]}),t})(),gc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[LC]}),t})(),NC=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Pp,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[LC]}),t})(),FF=(()=>{class t{group(e,i=null){const r=this._reduceControls(e);let a,s=null,o=null;return null!=i&&(function PF(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(i)?(s=null!=i.validators?i.validators:null,o=null!=i.asyncValidators?i.asyncValidators:null,a=null!=i.updateOn?i.updateOn:void 0):(s=null!=i.validator?i.validator:null,o=null!=i.asyncValidator?i.asyncValidator:null)),new oa(r,{asyncValidators:o,updateOn:a,validators:s})}control(e,i,r){return new Ns(e,i,r)}array(e,i,r){const s=e.map(o=>this._createControl(o));return new Rp(s,i,r)}_reduceControls(e){cons
t i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Ns||e instanceof oa||e instanceof Rp?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:NC}),t})();class Kn extends Oe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new cr;return this._value}next(n){super.next(this._value=n)}}class LF extends je{notifyNext(n,e,i,r,s){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class NF extends je{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.ou
terIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function VF(t,n,e,i,r=new NF(t,e,i)){if(!r.closed)return n instanceof Ee?n.subscribe(r):vu(n)(r)}const VC={};class HF{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new zF(n,this.resultSelector))}}class zF extends LF{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(VC),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(VF(this,n[i],void 0,i))}}notifyComplete(n){0==(this.active-=1)&&this.destination.complete()}notifyNext(n,e,i){const r=this.values,o=this.toRespond?r[i]===VC?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector
(n){let e;try{e=this.resultSelector.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const mc=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function jp(...t){return function jF(){return so(1)}()(ee(...t))}const Bs=new Ee(t=>t.complete());function _c(t){return t?function UF(t){return new Ee(n=>t.schedule(()=>n.complete()))}(t):Bs}function BC(t){return new Ee(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?Ft(e):_c()).subscribe(n)})}function Mi(t,n){return"function"==typeof n?e=>e.pipe(Mi((i,r)=>Ft(t(i,r)).pipe(ke((s,o)=>n(i,s,r,o))))):e=>e.lift(new $F(t))}class $F{constructor(n){this.project=n}call(n,e){return e.subscribe(new GF(n,this.project))}}class GF extends io{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.
error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new no(this),r=this.destination;r.add(i),this.innerSubscription=ro(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const HC=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Up(t){return n=>0===t?_c():n.lift(new WF(t))}class WF{constructor(n){if(this.total=n,this.total<0)throw new HC}call(n,e){return e.subscribe(new qF(n,this.total))}}class qF extends je{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i
===e&&(this.destination.complete(),this.unsubscribe()))}}function $p(...t){const n=t[t.length-1];return Lr(n)?(t.pop(),e=>jp(t,e,n)):e=>jp(t,e)}function zC(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new KF(t,n,e))}}class KF{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new YF(n,this.accumulator,this.seed,this.hasSeed))}}class YF extends je{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function Oi(t){return function(e){const i=new QF(t),r=e.lift(i);return i.caught=r}}class QF{constructor(n){this.selector=n}call(n,e){return e.subscribe(new ZF(n,this.selector,t
his.caught))}}class ZF extends io{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new no(this);this.add(i);const r=ro(e,i);r!==i&&this.add(r)}}}function Gp(t){return function(e){return 0===t?_c():e.lift(new JF(t))}}class JF{constructor(n){if(this.total=n,this.total<0)throw new HC}call(n,e){return e.subscribe(new XF(n,this.total))}}class XF extends je{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length<i?e.push(n):e[r%i]=n}_complete(){const n=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<i;s++){const o=e++%i;n.next(r[o])}}n.complete()}}function jC(t=n2){return n=>n.lift(new e2(t))}class e2{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new t2(n,this.errorFacto
ry))}}class t2 extends je{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function n2(){return new mc}function UC(t=null){return n=>n.lift(new r2(t))}class r2{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new s2(n,this.defaultValue))}}class s2 extends je{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Hs(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Zi((r,s)=>t(r,s,i)):Oa,Up(1),e?UC(n):jC(()=>new mc))}function tr(){}function Re(t,n,e){return function(r){return r.lift(new a2(t,n,e))}}class a2{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new
l2(n,this.nextOrObserver,this.error,this.complete))}}class l2 extends je{constructor(n,e,i,r){super(n),this._tapNext=tr,this._tapError=tr,this._tapComplete=tr,this._tapError=i||tr,this._tapComplete=r||tr,Ni(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||tr,this._tapError=e.error||tr,this._tapComplete=e.complete||tr)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}class u2{constructor(n){this.callback=n}call(n,e){return e.subscribe(new d2(n,this.callback))}}class d2 extends je{constructor(n,e){super(n),this.add(new Ge(e))}}class Ri{constructor(n,e){this.id=n,this.url=e}}class Wp extends Ri{constructor(n,e,i="imperative",r
=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class la extends Ri{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $C extends Ri{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class h2 extends Ri{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class p2 extends Ri{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class f2 extends Ri{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id},
url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class g2 extends Ri{constructor(n,e,i,r,s){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class m2 extends Ri{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _2 extends Ri{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class GC{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class WC{constructor(n){this.route=n}toString(){re
turn`RouteConfigLoadEnd(path: ${this.route.path})`}}class y2{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class v2{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class b2{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class w2{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qC{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const _e="primary";class C2{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(
n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function zs(t){return new C2(t)}const KC="ngNavigationCancelingError";function qp(t){const n=Error("NavigationCancelingError: "+t);return n[KC]=!0,n}function S2(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const r={};for(let s=0;s<i.length;s++){const o=i[s],a=t[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function li(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let s=0;s<e.length;s++)if(r=e[s],!YC(t[r],n[r]))return!1;return!0}function YC(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort
();return e.every((r,s)=>i[s]===r)}return t===n}function QC(t){return Array.prototype.concat.apply([],t)}function ZC(t){return t.length>0?t[t.length-1]:null}function Rt(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function ci(t){return ch(t)?t:Lo(t)?Ft(Promise.resolve(t)):ee(t)}const x2={exact:function e0(t,n,e){if(!Dr(t.segments,n.segments)||!yc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!e0(t.children[i],n.children[i],e))return!1;return!0},subset:t0},JC={exact:function I2(t,n){return li(t,n)},subset:function k2(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>YC(t[e],n[e]))},ignored:()=>!0};function XC(t,n,e){return x2[e.paths](t.root,n.root,e.matrixParams)&&JC[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function t0(t,n,e){return n0(t,n,n.segments,e)}function n0(t,n,e,i){if(t.segments.length>e.length){const r=t.segm
ents.slice(0,e.length);return!(!Dr(r,e)||n.hasChildren()||!yc(r,e,i))}if(t.segments.length===e.length){if(!Dr(t.segments,e)||!yc(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!t0(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(Dr(t.segments,r)&&yc(t.segments,r,i)&&t.children[_e])&&n0(t.children[_e],n,s,i)}}function yc(t,n,e){return n.every((i,r)=>JC[e](t[r].parameters,i.parameters))}class Cr{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zs(this.queryParams)),this._queryParamMap}toString(){return R2.serialize(this)}}class ve{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Rt(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vc(this)}}class ca{constructor(n,e){this.path=n,this.para
meters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=zs(this.parameters)),this._parameterMap}toString(){return l0(this)}}function Dr(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class r0{}class s0{parse(n){const e=new z2(n);return new Cr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${ua(n.root,!0)}`,i=function F2(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${bc(e)}=${bc(r)}`).join("&"):`${bc(e)}=${bc(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function A2(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const R2=new s0;function vc(t){return t.segments.map(n=>l0(n)).join("/")}function ua(t,n){if(!t.hasChildren())return vc(t);if(n){const e=t.children[_e]?ua(t.children[_e],!1):"",i=[];return Rt(t.children,(r,s)=>{s!==_e&&i.push(`${s}:${ua(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{co
nst e=function O2(t,n){let e=[];return Rt(t.children,(i,r)=>{r===_e&&(e=e.concat(n(i,r)))}),Rt(t.children,(i,r)=>{r!==_e&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===_e?[ua(t.children[_e],!1)]:[`${r}:${ua(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[_e]?`${vc(t)}/${e[0]}`:`${vc(t)}/(${e.join("//")})`}}function o0(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function bc(t){return o0(t).replace(/%3B/gi,";")}function Kp(t){return o0(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wc(t){return decodeURIComponent(t)}function a0(t){return wc(t.replace(/\+/g,"%20"))}function l0(t){return`${Kp(t.path)}${function P2(t){return Object.keys(t).map(n=>`;${Kp(n)}=${Kp(t[n])}`).join("")}(t.parameters)}`}const L2=/^[^\/()?;=#]+/;function Cc(t){const n=t.match(L2);return n?n[0]:""}const N2=/^[^=?&#]+/,B2=/^[^&#]+/;class z2{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){r
eturn this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ve([],{}):new ve([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[_e]=new ve(n,e)),i}parseSegment(){const n=Cc(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.re
maining}'.`);return this.capture(n),new ca(wc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Cc(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Cc(this.remaining);r&&(i=r,this.capture(i))}n[wc(e)]=wc(i)}parseQueryParam(n){const e=function V2(t){const n=t.match(N2);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function H2(t){const n=t.match(B2);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=a0(e),s=a0(i);if(n.hasOwnProperty(r)){let o=n[r];Array.isArray(o)||(o=[o],n[r]=o),o.push(s)}else n[r]=s}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Cc(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.in
dexOf(":")),this.capture(s),this.capture(":")):n&&(s=_e);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[_e]:new ve([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class c0{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=Yp(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=Yp(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=Qp(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Qp(n,this._root).map(e=>e.value)}}function Yp(t,n){if(t===n.value)return n;for(const e of n.children){const i=Yp(t,e);if(i)return i}re
turn null}function Qp(t,n){if(t===n.value)return[n];for(const e of n.children){const i=Qp(t,e);if(i.length)return i.unshift(n),i}return[]}class Ai{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function js(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class u0 extends c0{constructor(n,e){super(n),this.snapshot=e,Zp(this,n)}toString(){return this.snapshot.toString()}}function d0(t,n){const e=function j2(t,n){const o=new Dc([],{},{},"",{},_e,n,null,t.root,-1,{});return new p0("",new Ai(o,[]))}(t,n),i=new Kn([new ca("",{})]),r=new Kn({}),s=new Kn({}),o=new Kn({}),a=new Kn(""),l=new Sr(i,r,o,a,s,_e,n,e.root);return l.snapshot=e.root,new u0(new Ai(l,[]),e)}class Sr{constructor(n,e,i,r,s,o,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get pare
nt(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(ke(n=>zs(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ke(n=>zs(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function h0(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function U2(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(
e.slice(i))}class Dc{constructor(n,e,i,r,s,o,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=zs(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zs(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class p0 extends c0{constructor(n,e){super(e),this.url=n,Zp(this,e)}toString(){return f0(this._root)}}function Zp(t,n){n.value._routerState=t,n.children.forEach(e=>Zp(
t,e))}function f0(t){const n=t.children.length>0?` { ${t.children.map(f0).join(", ")} } `:"";return`${t.value}${n}`}function Jp(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,li(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),li(n.params,e.params)||t.params.next(e.params),function T2(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!li(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),li(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Xp(t,n){const e=li(t.params,n.params)&&function M2(t,n){return Dr(t,n)&&t.every((e,i)=>li(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Xp(t.parent,n.parent))}function da(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function G2(t,n,e){return n.children.map(i=
>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return da(t,i,r);return da(t,i)})}(t,n,e);return new Ai(i,r)}{if(t.shouldAttach(n.value)){const s=t.retrieve(n.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(a=>da(t,a)),o}}const i=function W2(t){return new Sr(new Kn(t.url),new Kn(t.params),new Kn(t.queryParams),new Kn(t.fragment),new Kn(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(s=>da(t,s));return new Ai(i,r)}}function Sc(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ha(t){return"object"==typeof t&&null!=t&&t.outlets}function ef(t,n,e,i,r){let s={};return i&&Rt(i,(o,a)=>{s[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new Cr(e.root===t?n:g0(e.root,t,n),s,r)}function g0(t,n,e){const i={};return Rt(t.children,(r,s)=>{i[s]=r===n?e:g0(r,n,e)}),new ve(t.segments,i)}class m0{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length
>0&&Sc(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(ha);if(r&&r!==ZC(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class tf{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function _0(t,n,e){if(t||(t=new ve([],{})),0===t.segments.length&&t.hasChildren())return Tc(t,n,e);const i=function J2(t,n,e){let i=0,r=n;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return s;const o=t.segments[r],a=e[i];if(ha(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!v0(l,c,o))return s;i+=2}else{if(!v0(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const s=new ve(t.segments.slice(0,i.pathIndex),{});return s.children[_e]=new ve(
t.segments.slice(i.pathIndex),t.children),Tc(s,0,r)}return i.match&&0===r.length?new ve(t.segments,{}):i.match&&!t.hasChildren()?nf(t,n,e):i.match?Tc(t,0,r):nf(t,n,e)}function Tc(t,n,e){if(0===e.length)return new ve(t.segments,{});{const i=function Z2(t){return ha(t[0])?t[0].outlets:{[_e]:t}}(e),r={};return Rt(i,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=_0(t.children[o],n,s))}),Rt(t.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new ve(t.segments,r)}}function nf(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r<e.length;){const s=e[r];if(ha(s)){const l=X2(s.outlets);return new ve(i,l)}if(0===r&&Sc(e[0])){i.push(new ca(t.segments[n].path,y0(e[0]))),r++;continue}const o=ha(s)?s.outlets[_e]:`${s}`,a=r<e.length-1?e[r+1]:null;o&&a&&Sc(a)?(i.push(new ca(o,y0(a))),r+=2):(i.push(new ca(o,{})),r++)}return new ve(i,{})}function X2(t){const n={};return Rt(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=nf(new ve([],{}),0,e))}),n}function y0(t){const n={};return Rt(t,(e,i)=>n[i]=`
${e}`),n}function v0(t,n,e){return t==e.path&&li(n,e.parameters)}class tL{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Jp(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=js(e);n.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),Rt(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(n,e,i){const r=n.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtre
e(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,s=js(n);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(i&&i.outlet){const o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,s=js(n);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=js(e);n.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new w2(s.value.snapshot))}),n.children.length&&this.forwardEvent(new v2(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,s=e?e.value:null;if(Jp(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,o.ch
ildren)}else this.activateChildRoutes(n,e,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Jp(a.route.value),this.activateChildRoutes(n,null,o.children)}else{const a=function nL(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}class rf{constructor(n,e){this.routes=n,this.module=e}}function nr(t){return"function"==typeof t}function Tr(t){return t instanceof Cr}const
pa=Symbol("INITIAL_VALUE");function fa(){return Mi(t=>function BF(...t){let n,e;return Lr(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Fr(t[0])&&(t=t[0]),wu(t,e).lift(new HF(n))}(t.map(n=>n.pipe(Up(1),$p(pa)))).pipe(zC((n,e)=>{let i=!1;return e.reduce((r,s,o)=>r!==pa?r:(s===pa&&(i=!0),i||!1!==s&&o!==e.length-1&&!Tr(s)?r:s),n)},pa),Zi(n=>n!==pa),ke(n=>Tr(n)?n:!0===n),Up(1)))}class lL{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ga,this.attachRef=null}}class ga{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new lL,this.contexts.set(n,e)),e}getContext(n){return this
.contexts.get(n)||null}}let Ec=(()=>{class t{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new R,this.deactivateEvents=new R,this.attachEvents=new R,this.detachEvents=new R,this.name=s||_e,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("
Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new cL(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(w(ga),w(In),w(Ss),mo("name"),w(vt))},
t.\u0275dir=U({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class cL{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Sr?this.route:n===ga?this.childContexts:this.parent.get(n,e)}}let b0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&I(0,"router-outlet")},directives:[Ec],encapsulation:2}),t})();function w0(t,n=""){for(let e=0;e<t.length;e++){const i=t[e];uL(i,dL(n,i))}}function uL(t,n){t.children&&w0(t.children,n)}function dL(t,n){return n?t||n.path?t&&!n.path?`${t}/`:!t&&n.path?n.path:`${t}/${n.path}`:"":t}function sf(t){const n=t.children&&t.children.map(sf),e=n?Object.assign(Object.assign({},t),{children:n}):Object.assign({},t);return!e.component&&(n||e.loadChildren)&&e.outlet&&e.outlet!==_e&&(e.component=
b0),e}function On(t){return t.outlet||_e}function C0(t,n){const e=t.filter(i=>On(i)===n);return e.push(...t.filter(i=>On(i)!==n)),e}const D0={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function xc(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},D0):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(n.matcher||S2)(e,t,n);if(!s)return Object.assign({},D0);const o={};Rt(s.posParams,(l,c)=>{o[c]=l.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Ic(t,n,e,i,r="corrected"){if(e.length>0&&function fL(t,n,e){return e.some(i=>kc(t,n,i)&&On(i)!==_e)}(t,e,i)){const o=new ve(n,function pL(t,n,e,i){const r={};r[_e]=i,i._sourceSegment=
t,i._segmentIndexShift=n.length;for(const s of e)if(""===s.path&&On(s)!==_e){const o=new ve([],{});o._sourceSegment=t,o._segmentIndexShift=n.length,r[On(s)]=o}return r}(t,n,i,new ve(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function gL(t,n,e){return e.some(i=>kc(t,n,i))}(t,e,i)){const o=new ve(t.segments,function hL(t,n,e,i,r,s){const o={};for(const a of i)if(kc(t,e,a)&&!r[On(a)]){const l=new ve([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===s?t.segments.length:n.length,o[On(a)]=l}return Object.assign(Object.assign({},r),o)}(t,n,e,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const s=new ve(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}function kc(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function S0(t,n,e,i){return!!(On(t)===i
||i!==_e&&kc(n,e,t))&&("**"===t.path||xc(n,t,e).matched)}function T0(t,n,e){return 0===n.length&&!t.children[e]}class ma{constructor(n){this.segmentGroup=n||null}}class E0{constructor(n){this.urlTree=n}}function Mc(t){return new Ee(n=>n.error(new ma(t)))}function x0(t){return new Ee(n=>n.error(new E0(t)))}function mL(t){return new Ee(n=>n.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class vL{constructor(n,e,i,r,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=n.get(Di)}apply(){const n=Ic(this.urlTree.root,[],[],this.config).segmentGroup,e=new ve(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,_e).pipe(ke(s=>this.createUrlTree(of(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Oi(s=>{if(s instanceof E0)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof ma?this.noMatchError(s):s}))}match(n){return this.expandSegmentGrou
p(this.ngModule,this.config,n.root,_e).pipe(ke(r=>this.createUrlTree(of(r),n.queryParams,n.fragment))).pipe(Oi(r=>{throw r instanceof ma?this.noMatchError(r):r}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=n.segments.length>0?new ve([],{[_e]:n}):n;return new Cr(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(ke(s=>new ve([],s))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return Ft(r).pipe(Ps(s=>{const o=i.children[s],a=C0(e,s);return this.expandSegmentGroup(n,a,o,s).pipe(ke(l=>({segment:l,outlet:s})))}),zC((s,o)=>(s[o.outlet]=o.segment,s),{}),function o2(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Zi((r,s)=>t(r,s,i)):Oa,Gp(1),e?UC(n):jC(()=>new mc))}())}expandSegment(n,e,i,r,s,o){return Ft(i).pipe(Ps(a=>this.expandSegmentAgain
stRoute(n,e,i,a,r,s,o).pipe(Oi(c=>{if(c instanceof ma)return ee(null);throw c}))),Hs(a=>!!a),Oi((a,l)=>{if(a instanceof mc||"EmptyError"===a.name){if(T0(e,r,s))return ee(new ve([],{}));throw new ma(e)}throw a}))}expandSegmentAgainstRoute(n,e,i,r,s,o,a){return S0(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o):Mc(e):Mc(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?x0(s):this.lineralizeSegments(i,s).pipe(It(o=>{const a=new ve(o,{});return this.expandSegment(n,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o){const{matched:a,consumedSegments:l,lastChild:c,pos
itionalParamSegments:u}=xc(e,r,s);if(!a)return Mc(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?x0(d):this.lineralizeSegments(r,d).pipe(It(_=>this.expandSegment(n,e,i,_.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(n,e,i,r,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?ee(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(ke(_=>(i._loadedConfig=_,new ve(r,{})))):ee(new ve(r,{}));const{matched:o,consumedSegments:a,lastChild:l}=xc(e,i,r);if(!o)return Mc(e);const c=r.slice(l);return this.getChildConfig(n,i,r).pipe(It(d=>{const _=d.module,y=d.routes,{segmentGroup:b,slicedSegments:D}=Ic(e,a,c,y),T=new ve(b.segments,b.children);if(0===D.length&&T.hasChildren())return this.expandChildren(_,y,T).pipe(ke(F=>new ve(a,F)));if(0===y.length&&0===D.length)return ee(new ve(a,{}));const k=On(i)===s;return this.expandSegment(_,T,y,D,k?_e:s,!0).pipe(ke(A=>new ve(a.concat(A.segments),A.children)))}))}getChildConfig(n,e,i){return
e.children?ee(new rf(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?ee(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(It(r=>r?this.configLoader.load(n.injector,e).pipe(ke(s=>(e._loadedConfig=s,s))):function _L(t){return new Ee(n=>n.error(qp(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):ee(new rf([],n))}runCanLoadGuards(n,e,i){const r=e.canLoad;if(!r||0===r.length)return ee(!0);const s=r.map(o=>{const a=n.get(o);let l;if(function rL(t){return t&&nr(t.canLoad)}(a))l=a.canLoad(e,i);else{if(!nr(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return ci(l)});return ee(s).pipe(fa(),Re(o=>{if(!Tr(o))return;const a=qp(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),ke(o=>!0===o))}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return ee(i);if(r.numberOfChildren>1||!r.children[_e])return mL(n.redirectTo);r=r.children[_e]}}applyRedirectComman
ds(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,r){const s=this.createSegmentGroup(n,e.root,i,r);return new Cr(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Rt(n,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(n,e,i,r){const s=this.createSegments(n,e.segments,i,r);let o={};return Rt(e.children,(a,l)=>{o[l]=this.createSegmentGroup(n,a,i,r)}),new ve(s,o)}createSegments(n,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(n,s,r):this.findOrReturn(s,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}function of(t){const n={};for(const i of Object.keys(t.children)){const s=of(t.chi
ldren[i]);(s.segments.length>0||s.hasChildren())&&(n[i]=s)}return function bL(t){if(1===t.numberOfChildren&&t.children[_e]){const n=t.children[_e];return new ve(t.segments.concat(n.segments),n.children)}return t}(new ve(t.segments,n))}class I0{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Oc{constructor(n,e){this.component=n,this.route=e}}function CL(t,n,e){const i=t._root;return _a(i,n?n._root:null,e,[i.value])}function Rc(t,n,e){const i=function SL(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function _a(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=js(n);return t.children.forEach(o=>{(function TL(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function EL(t,n,e){if("function"==typeof
e)return e(t,n);switch(e){case"pathParamsChange":return!Dr(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Dr(t.url,n.url)||!li(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xp(t,n)||!li(t.queryParams,n.queryParams);default:return!Xp(t,n)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new I0(i)):(s.data=o.data,s._resolvedData=o._resolvedData),_a(t,n,s.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Oc(a.outlet.component,o))}else o&&ya(n,a,r),r.canActivateChecks.push(new I0(i)),_a(t,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),Rt(s,(o,a)=>ya(o,e.getContext(a),r)),r}function ya(t,n,e){const i=js(t),r=t.value;Rt(i,(s,o)=>{ya(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new Oc(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}cl
ass FL{}function k0(t){return new Ee(n=>n.error(t))}class NL{constructor(n,e,i,r,s,o){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const n=Ic(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,_e);if(null===e)return null;const i=new Dc([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},_e,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ai(i,e),s=new p0(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(n){const e=n.value,i=h0(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments
,i)}processChildren(n,e){const i=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=C0(n,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;i.push(...l)}const r=M0(i);return function VL(t){t.sort((n,e)=>n.value.outlet===_e?-1:e.value.outlet===_e?1:n.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(n,e,i,r){for(const s of n){const o=this.processSegmentAgainstRoute(s,e,i,r);if(null!==o)return o}return T0(e,i,r)?[]:null}processSegmentAgainstRoute(n,e,i,r){if(n.redirectTo||!S0(n,e,i,r))return null;let s,o=[],a=[];if("**"===n.path){const y=i.length>0?ZC(i).parameters:{};s=new Dc(i,y,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,A0(n),On(n),n.component,n,O0(e),R0(e)+i.length,P0(n))}else{const y=xc(e,n,i);if(!y.matched)return null;o=y.consumedSegments,a=i.slice(y.lastChild),s=new Dc(o,y.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,A0(n),On(n),n.component,n,O0(e),R0(e)+o
.length,P0(n))}const l=function BL(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:c,slicedSegments:u}=Ic(e,o,a,l.filter(y=>void 0===y.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const y=this.processChildren(l,c);return null===y?null:[new Ai(s,y)]}if(0===l.length&&0===u.length)return[new Ai(s,[])];const d=On(n)===r,_=this.processSegment(l,c,u,d?_e:r);return null===_?null:[new Ai(s,_)]}}function HL(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function M0(t){const n=[],e=new Set;for(const i of t){if(!HL(i)){n.push(i);continue}const r=n.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=M0(i.children);n.push(new Ai(i.value,r))}return n.filter(i=>!e.has(i))}function O0(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function R0(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:
0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function A0(t){return t.data||{}}function P0(t){return t.resolve||{}}function af(t){return Mi(n=>{const e=t(n);return e?Ft(e).pipe(ke(()=>n)):ee(n)})}class KL extends class qL{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const lf=new ie("ROUTES");class F0{constructor(n,e,i,r){this.injector=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(ke(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=s.create(n);return new rf(QC(o.injector.get(lf,void 0,ae.Self|ae.Optional)).map(sf),o)}),Oi(s=>{throw e._loader$=void 0,s}));return e._loader$=new fg(r,()=>new Oe).pipe(Cu()),e._loader$}loadModuleFactory(n){return ci(n
()).pipe(It(e=>e instanceof Bv?ee(e):Ft(this.compiler.compileModuleAsync(e))))}}class QL{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function ZL(t){throw t}function JL(t,n,e){return n.parse("/")}function L0(t,n){return ee(null)}const XL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eN={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ft=(()=>{class t{constructor(e,i,r,s,o,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Oe,this.errorHandler=ZL,this.malformedUriErrorHandler=JL,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:L0,afterPreactivation:L0},this.urlHandlingStrategy=new QL,this.routeReuseStrategy=new KL,this.onSameUrlNavigation="ignore",this.paramsIn
heritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Di),this.console=o.get(Cb);const d=o.get(Te);this.isNgZoneEnabled=d instanceof Te&&Te.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function E2(){return new Cr(new ve([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new F0(o,a,_=>this.triggerEvent(new GC(_)),_=>this.triggerEvent(new WC(_))),this.routerState=d0(this.currentUrlTree,this.rootComponentType),this.transitions=new Kn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot
:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Zi(r=>0!==r.id),ke(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Mi(r=>{let s=!1,o=!1;return ee(r).pipe(Re(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Mi(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"=
==this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Ac(a.source)&&(this.browserUrlTree=a.extractedUrl),ee(a).pipe(Mi(d=>{const _=this.transitions.getValue();return i.next(new Wp(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),_!==this.transitions.getValue()?Bs:Promise.resolve(d)}),function wL(t,n,e,i){return Mi(r=>function yL(t,n,e,i,r){return new vL(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(ke(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Re(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function zL(t,n,e,i,r){return It(s=>function LL(t,n,e,i,r="emptyOnly",s="legacy"){try{const o=new NL(t,n,e,i,r,s).recognize();return null===o?k0(new FL):ee(o)}catch(o){return k0(o)}}(t,n,s.urlAfterRedirects,e(s.urlAfterRedirects),i,r).pipe(ke(o=>Object.assign(Object.assign({},s)
,{targetSnapshot:o}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Re(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const y=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(y,d)}this.browserUrlTree=d.urlAfterRedirects}const _=new p2(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(_)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:_,extractedUrl:y,source:b,restoredState:D,extras:T}=a,k=new Wp(_,this.serializeUrl(y),b,D);i.next(k);const x=d0(y,this.rootComponentType).snapshot;return ee(Object.assign(Object.assign({},a),{targetSnapshot:x,urlAfterRedirects:y,extras:Object.assign(Object.assign({},T),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Bs}),af(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,ext
ras:{skipLocationChange:_,replaceUrl:y}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!_,replaceUrl:!!y})}),Re(a=>{const l=new f2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ke(a=>Object.assign(Object.assign({},a),{guards:CL(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function xL(t,n){return It(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?ee(Object.assign(Object.assign({},e),{guardsResult:!0})):function IL(t,n,e,i){return Ft(t).pipe(It(r=>function PL(t,n,e,i,r){const s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return s&&0!==s.length?ee(s.map(a=>{const l=Rc(a,n,r);let c;if(function aL(t){return t&&nr(t.canDeactivate)}(l))c=ci(l.canDeactivate(t,n,e,i));else{if(!nr(l))throw new Error("Invalid CanDeactivate guard");c=ci(l(t,n,e,i))}return c.pip
e(Hs())})).pipe(fa()):ee(!0)}(r.component,r.route,e,n,i)),Hs(r=>!0!==r,!0))}(o,i,r,t).pipe(It(a=>a&&function iL(t){return"boolean"==typeof t}(a)?function kL(t,n,e,i){return Ft(n).pipe(Ps(r=>jp(function OL(t,n){return null!==t&&n&&n(new y2(t)),ee(!0)}(r.route.parent,i),function ML(t,n){return null!==t&&n&&n(new b2(t)),ee(!0)}(r.route,i),function AL(t,n,e){const i=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>function DL(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(o)).filter(o=>null!==o).map(o=>BC(()=>ee(o.guards.map(l=>{const c=Rc(l,o.node,e);let u;if(function oL(t){return t&&nr(t.canActivateChild)}(c))u=ci(c.canActivateChild(i,t));else{if(!nr(c))throw new Error("Invalid CanActivateChild guard");u=ci(c(i,t))}return u.pipe(Hs())})).pipe(fa())));return ee(s).pipe(fa())}(t,r.path,e),function RL(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return ee(!0);const r=i.map(s=>BC(()=>{con
st o=Rc(s,n,e);let a;if(function sL(t){return t&&nr(t.canActivate)}(o))a=ci(o.canActivate(n,t));else{if(!nr(o))throw new Error("Invalid CanActivate guard");a=ci(o(n,t))}return a.pipe(Hs())}));return ee(r).pipe(fa())}(t,r.route,e))),Hs(r=>!0!==r,!0))}(i,s,t,n):ee(a)),ke(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Re(a=>{if(Tr(a.guardsResult)){const c=qp(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new g2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Zi(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),af(a=>{if(a.guards.canActivateChecks.length)return ee(a).pipe(Re(l=>{const c=new m2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Mi(l=>{let c=!1;return ee(l).pipe(function jL(t
,n){return It(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return ee(e);let s=0;return Ft(r).pipe(Ps(o=>function UL(t,n,e,i){return function $L(t,n,e,i){const r=Object.keys(t);if(0===r.length)return ee({});const s={};return Ft(r).pipe(It(o=>function GL(t,n,e,i){const r=Rc(t,n,i);return ci(r.resolve?r.resolve(n,e):r(n,e))}(t[o],n,e,i).pipe(Re(a=>{s[o]=a}))),Gp(1),It(()=>Object.keys(s).length===r.length?ee(s):Bs))}(t._resolve,t,n,i).pipe(ke(s=>(t._resolvedData=s,t.data=Object.assign(Object.assign({},t.data),h0(t,e).resolve),null)))}(o.route,i,t,n)),Re(()=>s++),Gp(1),It(o=>s===r.length?ee(e):Bs))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Re({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Re(l=>{const c=new _2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),af(a=>{const{
targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:_,replaceUrl:y}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!_,replaceUrl:!!y})}),ke(a=>{const l=function $2(t,n,e){const i=da(t,n._root,e?e._root:void 0);return new u0(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Re(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>ke(i=>(new tL(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Re({next(){s=!0},complete(){s=!0}}),function c2(t){return n=>n.lift(new u2(t))}(()=>{var a;s|
|o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),Oi(a=>{if(o=!0,function D2(t){return t&&t[KC]}(a)){const l=Tr(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const c=new $C(r.id,this.serializeUrl(r.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ac(r.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new h2(r.id,this.serializeUrl(r.extractedUrl),a);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Bs}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootCompon
entType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const s={replaceUrl:!0},o=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(o){const l=Object.assign({},o);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){w0(e),this.config=e.map(sf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispos
e(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function q2(t,n,e,i,r){if(0===e.length)return ef(n.root,n.root,n,i,r);const s=function K2(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new m0(!0,0,t);let n=0,e=!1;const i=t.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Rt(s.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/"
).forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new m0(e,n,i)}(e);if(s.toRoot())return ef(n.root,new ve([],{}),n,i,r);const o=function Y2(t,n,e){if(t.isAbsolute)return new tf(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new tf(s,s===n.root,0)}const i=Sc(t.commands[0])?0:1;return function Q2(t,n,e){let i=t,r=n,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new tf(i,!1,r-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,n,t),a=o.processChildren?Tc(o.segmentGroup,o.index,s.commands):_0(o.segmentGroup,o.index,s.commands);return ef(o.segmentGroup,a,n,i,r)}(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Tr(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocat
ionChange:!1}){return function tN(t){for(let n=0;n<t.length;n++){const e=t[n];if(null==e)throw new Error(`The requested path contains ${e} segment at index ${n}`)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?Object.assign({},XL):!1===i?Object.assign({},eN):i,Tr(e))return XC(this.currentUrlTree,e,r);const s=this.parseUrl(e);return XC(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new la(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.cons
ole.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){var a,l,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,d=Ac(i)&&u&&!Ac(u.source),_=u.rawUrl.toString()===e.toString(),y=u.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(d&&_&&y)return Promise.resolve(!0);let D,T,k;o?(D=o.resolve,T=o.reject,k=o.promise):k=new Promise((F,te)=>{D=F,T=te});const x=++this.navigationId;let A;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),A=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):A=0,this.setTransition({id:x,targetPageId:A,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:D,reject:T,promise:k,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),k
.catch(F=>Promise.reject(F))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.ra
wUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new $C(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){ah()},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function Ac(t){return"imperative"!==t}let Pc=(()=>{class t{constructor(e,i,r,s,o){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=o,this.commands=null,this.onChanges=new Oe,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,r=this.el.nativeElement;null!==e?i.setAttribute(r,"tabindex",e):i.removeAttr
ibute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:Us(this.skipLocationChange),replaceUrl:Us(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Us(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(Sr),mo("tabindex"),w(dn),w(Se))},t.\u0275dir=U({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&M("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"frag
ment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[gt]}),t})(),Fc=(()=>{class t{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Oe,this.subscription=e.events.subscribe(s=>{s instanceof la&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,s,o){if(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:Us(this.skipLocationChange),replaceUrl:Us(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locatio
nStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Us(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(Sr),w(As))},t.\u0275dir=U({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&M("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&q("target",i.target)("href",i.href,yi)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[gt]}),t})();func
tion Us(t){return""===t||!!t}let N0=(()=>{class t{constructor(e,i,r,s,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=s,this.link=o,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new R,this.routerEventsSubscription=e.events.subscribe(l=>{l instanceof la&&this.update()})}ngAfterContentInit(){ee(this.links.changes,this.linksWithHrefs.changes,ee(null)).pipe(so()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const i=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ft(i).pipe(so()).subscribe(r=>{this.isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.upda
te()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function nN(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(Se),w(dn),w(vt),w(Pc,8),w(Fc,8))},t.\u0275dir=U({type:t,selector
s:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Pc,5),Ye(r,Fc,5)),2&e){let s;K(s=Y())&&(i.links=s),K(s=Y())&&(i.linksWithHrefs=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[gt]}),t})();class V0{}class B0{preload(n,e){return ee(null)}}let H0=(()=>{class t{constructor(e,i,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new F0(r,i,l=>e.triggerEvent(new GC(l)),l=>e.triggerEvent(new WC(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(Zi(e=>e instanceof la),Ps(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Di);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const s of i)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;r.push(this.processRou
tes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(e,s)):s.children&&r.push(this.processRoutes(e,s.children));return Ft(r).pipe(so(),ke(s=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?ee(i._loadedConfig):this.loader.load(e.injector,i)).pipe(It(s=>(i._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(P(ft),P(Fl),P(kt),P(V0))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),cf=(()=>{class t{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=t
his.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Wp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof la&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof qC&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new qC(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i)
)}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){ah()},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Er=new ie("ROUTER_CONFIGURATION"),z0=new ie("ROUTER_FORROOT_GUARD"),rN=[Yh,{provide:r0,useClass:s0},{provide:ft,useFactory:function cN(t,n,e,i,r,s,o={},a,l){const c=new ft(null,t,n,e,i,r,QC(s));return a&&(c.urlHandlingStrategy=a),l&&(c.routeReuseStrategy=l),function uN(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&
&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(o,c),o.enableTracing&&c.events.subscribe(u=>{var d,_;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(_=console.groupEnd)||void 0===_||_.call(console)}),c},deps:[r0,ga,Yh,kt,Fl,lf,Er,[class YL{},new ei],[class WL{},new ei]]},ga,{provide:Sr,useFactory:function dN(t){return t.routerState.root},deps:[ft]},H0,B0,class iN{preload(n,e){return e().pipe(Oi(()=>ee(null)))}},{provide:Er,useValue:{enableTracing:!1}}];function sN(){return new Ib("Router",ft)}let ir=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[rN,j0(e),{provide:z0,useFactory:lN,deps:[[ft,new ei,new Jr]]},{provide:Er,useValue:i||{}},{provide:As,useFactory:aN,deps:[br,[new Do(Kh),new ei],Er]},{provide:cf,useFactory:oN,deps:[ft,GA,Er]},{provide:V0,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:B0},{provide:Ib,multi:!0,useFactory:sN
},[uf,{provide:Pl,multi:!0,useFactory:hN,deps:[uf]},{provide:U0,useFactory:pN,deps:[uf]},{provide:wb,multi:!0,useExisting:U0}]]}}static forChild(e){return{ngModule:t,providers:[j0(e)]}}}return t.\u0275fac=function(e){return new(e||t)(P(z0,8),P(ft,8))},t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})();function oN(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new cf(t,n,e)}function aN(t,n,e={}){return e.useHash?new MR(t,n):new Qb(t,n)}function lN(t){return"guarded"}function j0(t){return[{provide:vT,multi:!0,useValue:t},{provide:lf,multi:!0,useValue:t}]}let uf=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Oe}appInitializer(){return this.injector.get(xR,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(a=>i=a),s=this.injector.get(ft),o=this.injector.get(Er);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),i(!0)):"enabled"=
==o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?ee(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),s.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get(Er),r=this.injector.get(H0),s=this.injector.get(cf),o=this.injector.get(ft),a=this.injector.get(Qo);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(P(kt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function hN(t){return t.appInitializer.bind(t)}function pN(t){return t.bootstrapListener.bind(t)}const U0=new ie("Router Initializer");let xr=(()=>{class t{constructor(e){this.httpClient=e}GetDatabaseStatus(){r
eturn this.httpClient.get("/Config/GetDatabaseStatus")}SetDatabaseCredentials(e){return this.httpClient.post("/Config/SetDatabaseCredentials",e)}GetCountries(){return this.httpClient.get("/Config/GetCountries")}GetLanguages(){return this.httpClient.get("/Config/GetLanguages")}}return t.\u0275fac=function(e){return new(e||t)(P(Fs))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{static addClass(e,i){e.classList?e.classList.add(i):e.className+=" "+i}static addMultipleClasses(e,i){if(e.classList){let r=i.trim().split(" ");for(let s=0;s<r.length;s++)e.classList.add(r[s])}else{let r=i.split(" ");for(let s=0;s<r.length;s++)e.className+=" "+r[s]}}static removeClass(e,i){e.classList?e.classList.remove(i):e.className=e.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," ")}static hasClass(e,i){return e.classList?e.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(e.className)}static siblings(e){return Array.protot
ype.filter.call(e.parentNode.children,function(i){return i!==e})}static find(e,i){return Array.from(e.querySelectorAll(i))}static findSingle(e,i){return e?e.querySelector(i):null}static index(e){let i=e.parentNode.childNodes,r=0;for(var s=0;s<i.length;s++){if(i[s]==e)return r;1==i[s].nodeType&&r++}return-1}static indexWithinGroup(e,i){let r=e.parentNode?e.parentNode.childNodes:[],s=0;for(var o=0;o<r.length;o++){if(r[o]==e)return s;r[o].attributes&&r[o].attributes[i]&&1==r[o].nodeType&&s++}return-1}static relativePosition(e,i){let r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const s=i.offsetHeight,o=i.getBoundingClientRect(),a=this.getViewport();let l,c;o.top+s+r.height>a.height?(l=-1*r.height,e.style.transformOrigin="bottom",o.top+l<0&&(l=-1*o.top)):(l=s,e.style.transformOrigin="top"),c=r.width>a.width?-1*o.left:o.left+r.width>a.width?-1*(o.left+r.width-a.width):0,e.style.top=l+"px",e.style.left=c+"px"}static absolutePosition(e,i){l
et y,b,r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=r.height,o=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),_=this.getViewport();c.top+a+s>_.height?(y=c.top+u-s,e.style.transformOrigin="bottom",y<0&&(y=u)):(y=a+c.top+u,e.style.transformOrigin="top"),b=c.left+o>_.width?Math.max(0,c.left+d+l-o):c.left+d,e.style.top=y+"px",e.style.left=b+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const s=/(auto|scroll)/,o=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&o(d)&&i.
push(d)}}9!==a.nodeType&&o(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=r?parseFloat(r):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),a=o?parseFloat(o):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,d=e.scrollTop,_=e.clientHeight,y=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+y>_&&(e.scrollTop=d+u-
_+y)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,s=0,o=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=s,r=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let s=getComputedStyle(e);r+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return r}static getHorizontalPadding(e){let i
=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let s=getComputedStyle(e);r+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.pa
ddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,s=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||s.clientWidth,height:e.innerHeight||r.clientHeight||s.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.tes
t(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",do
cument.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]
=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return null===e.offsetParent}static getFocusableElements(e){let i=t.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([h
idden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let s of i)"none"!=getComputedStyle(s).display&&"hidden"!=getComputedStyle(s).visibility&&r.push(s);return r}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class Lc{constructor(n,e=(()=>{})){this.element=n,this.listener=e}bindScrollListener(){this.scrollableParents=S.getScrollableParents(this.element);for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}unbindScrollL
istener(){if(this.scrollableParents)for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}class V{static equals(n,e,i){return i?this.resolveFieldData(n,i)===this.resolveFieldData(e,i):this.equalsByValue(n,e)}static equalsByValue(n,e){if(n===e)return!0;if(n&&e&&"object"==typeof n&&"object"==typeof e){var s,o,a,i=Array.isArray(n),r=Array.isArray(e);if(i&&r){if((o=n.length)!=e.length)return!1;for(s=o;0!=s--;)if(!this.equalsByValue(n[s],e[s]))return!1;return!0}if(i!=r)return!1;var l=n instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var u=n instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==e.toString();var _=Object.keys(n);if((o=_.length)!==Object.keys(e).length)return!1;for(s=o;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,_[s]))return!1
;for(s=o;0!=s--;)if(!this.equalsByValue(n[a=_[s]],e[a]))return!1;return!0}return n!=n&&e!=e}static resolveFieldData(n,e){if(n&&e){if(this.isFunction(e))return e(n);if(-1==e.indexOf("."))return n[e];{let i=e.split("."),r=n;for(let s=0,o=i.length;s<o;++s){if(null==r)return null;r=r[i[s]]}return r}}return null}static isFunction(n){return!!(n&&n.constructor&&n.call&&n.apply)}static reorderArray(n,e,i){n&&e!==i&&(i>=n.length&&(i%=n.length,e%=n.length),n.splice(i,0,n.splice(e,1)[0]))}static insertIntoOrderedArray(n,e,i,r){if(i.length>0){let s=!1;for(let o=0;o<i.length;o++)if(this.findIndexInList(i[o],r)>e){i.splice(o,0,n),s=!0;break}s||i.push(n)}else i.push(n)}static findIndexInList(n,e){let i=-1;if(e)for(let r=0;r<e.length;r++)if(e[r]==n){i=r;break}return i}static contains(n,e){if(null!=n&&e&&e.length)for(let i of e)if(this.equals(n,i))return!0;return!1}static removeAccents(n){return n&&n.search(/[\xC0-\xFF]/g)>-1&&(n=n.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/
g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),n}}var $0=0;function va(){return"pr_id_"+ ++$0}var Tt=function gN(){let t=[];const r=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:r,set:(s,o,a)=>{o&&(o.style.zIndex=String(((s,o)=>{let a=t.length>0?t[t.length-1]:{key:s,value:o},l=a.value+(a.key===s?0:o)+1;return t.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{t=t.filter(o=>o.value!==s)})(r(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const G0=["*"];let At=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contai
ns",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.IN="in",t.LESS_THAN="lt",t.LESS_THAN_OR_EQUAL_TO="lte",t.GREATER_THAN="gt",t.GREATER_THAN_OR_EQUAL_TO="gte",t.BETWEEN="between",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.DATE_IS="dateIs",t.DATE_IS_NOT="dateIsNot",t.DATE_BEFORE="dateBefore",t.DATE_AFTER="dateAfter",t})(),Pi=(()=>{class t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[At.STARTS_WITH,At.CONTAINS,At.NOT_CONTAINS,At.ENDS_WITH,At.EQUALS,At.NOT_EQUALS],numeric:[At.EQUALS,At.NOT_EQUALS,At.LESS_THAN,At.LESS_THAN_OR_EQUAL_TO,At.GREATER_THAN,At.GREATER_THAN_OR_EQUAL_TO],date:[At.DATE_IS,At.DATE_IS_NOT,At.DATE_BEFORE,At.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",
is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1
e3,tooltip:1100},this.translationSource=new Oe,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation=Object.assign(Object.assign({},this.translation),e),this.translationSource.next(this.translation)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Qt=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.NO_FILTER="noFilter",t.LT="lt",t.LTE="lte",t.GT="gt",t.GTE="gte",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.CLEAR="clear",t.APPLY="apply",t.MATCH_ALL="matchAll",t.MATCH_ANY="matchAny",t.ADD_RULE="addRule",t.REMOVE_RULE="removeRule",t.ACCEPT="accept",t.REJECT="reject",t.CHOOSE="choose",t.UPLOAD="upload",t.CANCEL="cancel",t.DAY_NAMES="dayNames",t.DAY_NAMES_SHORT="dayNamesShort",t.DAY_NAMES_MIN="da
yNamesMin",t.MONTH_NAMES="monthNames",t.MONTH_NAMES_SHORT="monthNamesShort",t.FIRST_DAY_OF_WEEK="firstDayOfWeek",t.TODAY="today",t.WEEK_HEADER="weekHeader",t.WEAK="weak",t.MEDIUM="medium",t.STRONG="strong",t.PASSWORD_PROMPT="passwordPrompt",t.EMPTY_MESSAGE="emptyMessage",t.EMPTY_FILTER_MESSAGE="emptyFilterMessage",t})(),Nc=(()=>{class t{constructor(){this.filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let s=V.removeAccents(i.toString()).toLocaleLowerCase(r);return V.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,s.length)===s},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let s=V.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==V.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(s)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let s=V.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===V.removeAccents(e.toString
()).toLocaleLowerCase(r).indexOf(s)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let s=V.removeAccents(i.toString()).toLocaleLowerCase(r),o=V.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==o.indexOf(s,o.length-s.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():V.removeAccents(e.toString()).toLocaleLowerCase(r)==V.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():V.removeAccents(e.toString()).toLocaleLowerCase(r)==V.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;r<i.length;r++)if(V.equals(e,i[r]))return!0;return!1},between:(e,i)=>null==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(
e.getTime&&i.getTime?e.getTime()<i.getTime():e<i),lte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()<i.getTime(),dateAfter:(e,i)=>null==i||null!=e&&e.getTime()>i.getTime()}}filter(e,i,r,s,o){let a=[];if(e)for(let l of e)for(let c of i){let u=V.resolveFieldData(l,c);if(this.filters[s](u,r,o)){a.push(l);break}}return a}register(e,i){this.filters[e]=i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac,provid
edIn:"root"}),t})(),df=(()=>{class t{constructor(){this.messageSource=new Oe,this.clearSource=new Oe,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),Vc=(()=>{class t{constructor(){this.clickSource=new Oe,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),W0=(()=>{class t{}return t.AND="and",t.OR="or",t})(),Bc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-header"]],ngContentSelectors:G0,decls:1,vars:0,template:function(e,i){1&e&&(Sn(),ot(0))},encapsulation:2}),t})(),ba=(()=>{class t{}return t.\
u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-footer"]],ngContentSelectors:G0,decls:1,vars:0,template:function(e,i){1&e&&(Sn(),ot(0))},encapsulation:2}),t})(),Ct=(()=>{class t{constructor(e){this.template=e}getType(){return this.name}}return t.\u0275fac=function(e){return new(e||t)(w(xn))},t.\u0275dir=U({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})(),Hc=(()=>{class t{constructor(e,i,r){this.el=e,this.zone=i,this.config=r,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!1,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{"hover"===this.getOption("tooltipEvent")?(this.mouseEnterListener=th
is.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener)):"focus"===this.getOption("tooltipEvent")&&(this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this),this.el.nativeElement.addEventListener("focus",this.focusListener),this.el.nativeElement.addEventListener("blur",this.blurListener))})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.
currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.text&&(this.setOption({tooltipLabel:e.text.currentValue}),this.active&&(e.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.tooltipOptions&&(this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.al
ign()):this.show():this.hide()))}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onClick(e){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.cre
ateElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?S.appendChild(this.container,this.el.nativeElement):S.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),S.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Tt.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Tt.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",th
is.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+S.getWindowSc
rollLeft(),top:e.top+S.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+S.getOuterWidth(this.el.nativeElement),r=e.top+(S.getOuterHeight(this.el.nativeElement)-S.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-S.getOuterWidth(this.container),r=e.top+(S.getOuterHeight(this.el.nativeElement)-S.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(S.getOuterWidth(this.el.nativeElement)-S.getOuterWidth(this.container))/2,r=e.top-S.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("posit
ionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(S.getOuterWidth(this.el.nativeElement)-S.getOuterWidth(this.container))/2,r=e.top+S.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,s=S.getOuterWidth(this.container),o=S.getOuterHeight(this.container),a=S.getViewport();return r+s>a.width||r<0||i<0||i+o>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()
=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Lc(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){"hover"===this.getOption("tooltipEvent")?(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)):"focus"===this.getOption("tooltipEvent")&&(this.el.nativeElement.removeEventListener("focus",this.focusListener),this.el.nativeElement.removeEventListener("blur",this.blurListener)),this.unbindDocumentResizeListe
ner()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):S.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Tt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(Te),w(Pi))},t.\u0275dir=U({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPositio
n:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[gt]}),t})(),$s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();function mN(t,n){if(1&t&&(h(0,"span",11),E(1),p()),2&t){const e=f(2).$implicit;g(1),le(e.label)}}function _N(t,n){1&t&&I(0,"span",12),2&t&&m("innerHTML",f(2).$implicit.label,cl)}const yN=function(){return{exact:!1}};function vN(t,n){if(1&t){const e=z();h(0,"a",7),M("click",function(r){C(e);const s=f(),o=s.$implicit,a=s.index;return f().itemClick(r,o,a)})("keydown.enter",function(r){C(e);const s=f(),o=s.$implicit,a=s.index;return f().itemClick(r,o,a)}),
h(1,"span",8),E(2),p(),v(3,mN,2,1,"span",9),v(4,_N,1,1,"ng-template",null,10,ze),p()}if(2&t){const e=fe(5),i=f(),r=i.$implicit,s=i.index,o=f();m("routerLink",r.routerLink)("queryParams",r.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",r.routerLinkActiveOptions||En(16,yN))("fragment",r.fragment)("queryParamsHandling",r.queryParamsHandling)("preserveFragment",r.preserveFragment)("skipLocationChange",r.skipLocationChange)("replaceUrl",r.replaceUrl)("state",r.state),q("target",r.target)("id",r.id)("tabindex",r.disabled||o.readonly?null:r.tabindex?r.tabindex:"0"),g(2),le(s+1),g(1),m("ngIf",!1!==r.escape)("ngIfElse",e)}}function bN(t,n){if(1&t&&(h(0,"span",11),E(1),p()),2&t){const e=f(2).$implicit;g(1),le(e.label)}}function wN(t,n){1&t&&I(0,"span",12),2&t&&m("innerHTML",f(2).$implicit.label,cl)}function CN(t,n){if(1&t){const e=z();h(0,"a",13),M("click",function(r){C(e);const s=f(),o=s.$implicit,a=s.index;return f().itemClick(r,o,a)})("keydown.enter",fu
nction(r){C(e);const s=f(),o=s.$implicit,a=s.index;return f().itemClick(r,o,a)}),h(1,"span",8),E(2),p(),v(3,bN,2,1,"span",9),v(4,wN,1,1,"ng-template",null,14,ze),p()}if(2&t){const e=fe(5),i=f(),r=i.$implicit,s=i.index,o=f();q("href",r.url,yi)("target",r.target)("id",r.id)("tabindex",r.disabled||s!==o.activeIndex&&o.readonly?null:r.tabindex?r.tabindex:"0"),g(2),le(s+1),g(1),m("ngIf",!1!==r.escape)("ngIfElse",e)}}const DN=function(t,n){return{"p-highlight p-steps-current":t,"p-disabled":n}};function SN(t,n){if(1&t&&(h(0,"li",3,4),v(2,vN,6,17,"a",5),v(3,CN,6,7,"ng-template",null,6,ze),p()),2&t){const e=n.$implicit,i=n.index,r=fe(4),s=f();ge(e.styleClass),m("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)("ngClass",it(9,DN,s.isActive(e,i),e.disabled||s.readonly&&!s.isActive(e,i))),q("aria-selected",i===s.activeIndex)("aria-expanded",i===s.activeIndex),g(2),m("ngIf",s.isClickableRouterLink(e))("ngIfElse",r)}}const TN=function(t){return{"p-steps p-component":!0,"p-readonly":t}};let E
N=(()=>{class t{constructor(e,i,r){this.router=e,this.route=i,this.cd=r,this.activeIndex=0,this.readonly=!0,this.activeIndexChange=new R}ngOnInit(){this.subscription=this.router.events.subscribe(()=>this.cd.markForCheck())}itemClick(e,i,r){this.readonly||i.disabled?e.preventDefault():(this.activeIndexChange.emit(r),i.url||e.preventDefault(),i.command&&i.command({originalEvent:e,item:i,index:r}))}isClickableRouterLink(e){return e.routerLink&&!this.readonly&&!e.disabled}isActive(e,i){return e.routerLink?this.router.isActive(e.routerLink,!1)||this.router.isActive(this.router.createUrlTree([e.routerLink],{relativeTo:this.route}).toString(),!1):i===this.activeIndex}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(Sr),w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-steps"]],hostAttrs:[1,"p-element"],inputs:{activeIndex:"activeIndex",model:"model",readonly:"readonly",style:"style",styleClass:"styleClass"},outputs:{active
IndexChange:"activeIndexChange"},decls:3,vars:7,consts:[[3,"ngClass","ngStyle"],["role","tablist"],["class","p-steps-item","role","tab","pTooltip","",3,"ngStyle","class","tooltipOptions","ngClass",4,"ngFor","ngForOf"],["role","tab","pTooltip","",1,"p-steps-item",3,"ngStyle","tooltipOptions","ngClass"],["menuitem",""],["role","presentation","class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter",4,"ngIf","ngIfElse"],["elseBlock",""],["role","presentation",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter"],[1,"p-steps-number"],["class","p-steps-title",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-steps-title"],[1,"p-steps-title",3,"innerHTML"],["role","presentation",1,
"p-menuitem-link",3,"click","keydown.enter"],["htmlRouteLabel",""]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"ul",1),v(2,SN,5,12,"li",2),p(),p()),2&e&&(ge(i.styleClass),m("ngClass",G(5,TN,i.readonly))("ngStyle",i.style),g(2),m("ngForOf",i.model))},directives:[Je,lt,Mt,Hc,Me,Fc,N0],styles:[".p-steps{position:relative}.p-steps ul{padding:0;margin:0;list-style-type:none;display:flex}.p-steps-item{position:relative;display:flex;justify-content:center;flex:1 1 auto}.p-steps-item .p-menuitem-link{display:inline-flex;flex-direction:column;align-items:center;overflow:hidden;text-decoration:none}.p-steps.p-steps-readonly .p-steps-item{cursor:auto}.p-steps-item.p-steps-current .p-menuitem-link{cursor:default}.p-steps-title{white-space:nowrap}.p-steps-number{display:flex;align-items:center;justify-content:center}.p-steps-title{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),xN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=
J({imports:[[Pe,ir,$s],ir,$s]}),t})(),q0=(()=>{class t{constructor(e,i){this.router=e,this.configService=i,this.wizardItems=[]}ngOnInit(){this.wizardItems=[{label:"Choose Language",routerLink:"selectlanguage"},{label:"Database Setup",routerLink:"dbsetup"},{label:"Backend Network",routerLink:"backendnetwork"},{label:"Storage Groups",routerLink:"sgsetup"},{label:"Done",routerLink:"restart"}],this.router.navigate(["settings/selectlanguage"])}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(xr))},t.\u0275cmp=Q({type:t,selectors:[["app-settings"]],decls:6,vars:2,consts:[[1,"content-section","implementation"],[1,"card"],[3,"model","readonly"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"div",1),h(2,"h1"),E(3,"Initial Setup Wizard"),p(),I(4,"p-steps",2),p(),I(5,"router-outlet"),p()),2&e&&(g(4),m("model",i.wizardItems)("readonly",!0))},directives:[EN,Ec],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;backgro
und-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']}),t})();function hf(t,n){return new Ee(n?e=>n.schedule(IN,0,{error:t,subscriber:e}):e=>e.error(t))}function IN({error:t,subscriber:n}){n.error(t)}let pf=(()=>{class t{constructor(e){this.httpClient=e}GetHostName(){return this.httpClient.get("/Myth/GetHostName")}GetTimeZone(){return this.httpClient.get("/Myth/GetTimeZone")}GetConnectionInfo(){return this.httpClient.get("/Myth/GetConnectionInfo")}GetSetting(e){let i=(new ki).set("HostName",e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return this.httpClient.get("/Myth/GetSetting",{params:i})}PutSetting(e){return console.log(e),this.httpClient.post("/Myth/PutSetting",e)}SetConnectionInfo(e){return console.log("SetConnectionInfo :-"+e.Name),this.httpClient.post("/Myth/SetConnectionInfo",e)}}return t.\u0275fac=function(e){return new(e||t)(P(Fs))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function kN(t,n){1&t&&H(0)}function M
N(t,n){if(1&t&&(h(0,"div",8),ot(1,1),v(2,kN,1,0,"ng-container",6),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.headerTemplate)}}function ON(t,n){1&t&&H(0)}function RN(t,n){if(1&t&&(h(0,"div",9),E(1),v(2,ON,1,0,"ng-container",6),p()),2&t){const e=f();g(1),De(" ",e.header," "),g(1),m("ngTemplateOutlet",e.titleTemplate)}}function AN(t,n){1&t&&H(0)}function PN(t,n){if(1&t&&(h(0,"div",10),E(1),v(2,AN,1,0,"ng-container",6),p()),2&t){const e=f();g(1),De(" ",e.subheader," "),g(1),m("ngTemplateOutlet",e.subtitleTemplate)}}function FN(t,n){1&t&&H(0)}function LN(t,n){1&t&&H(0)}function NN(t,n){if(1&t&&(h(0,"div",11),ot(1,2),v(2,LN,1,0,"ng-container",6),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.footerTemplate)}}const VN=["*",[["p-header"]],[["p-footer"]]],BN=["*","p-header","p-footer"];let Gs=(()=>{class t{constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.te
mplate;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return t.\u0275fac=function(e){return new(e||t)(w(Se))},t.\u0275cmp=Q({type:t,selectors:[["p-card"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Bc,5),Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.headerFacet=s.first),K(s=Y())&&(i.footerFacet=s.first),K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:BN,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:fun
ction(e,i){1&e&&(Sn(VN),h(0,"div",0),v(1,MN,3,1,"div",1),h(2,"div",2),v(3,RN,3,2,"div",3),v(4,PN,3,2,"div",4),h(5,"div",5),ot(6),v(7,FN,1,0,"ng-container",6),p(),v(8,NN,3,1,"div",7),p(),p()),2&e&&(ge(i.styleClass),m("ngClass","p-card p-component")("ngStyle",i.style),g(1),m("ngIf",i.headerFacet||i.headerTemplate),g(2),m("ngIf",i.header||i.titleTemplate),g(1),m("ngIf",i.subheader||i.subtitleTemplate),g(3),m("ngTemplateOutlet",i.contentTemplate),g(1),m("ngIf",i.footerFacet||i.footerTemplate))},directives:[Je,lt,Me,Ot],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),K0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe],Et]}),t})();function HN(t,n){1&t&&I(0,"span",6),2&t&&m("innerHTML",f(3).text,cl)}function zN(t,n){if(1&t&&(h(0,"div"),v(1,HN,1,1,"span",5),p()),2&t){const e=f(2);g(1),m("ngIf",!e.escape)}}function jN(t,n){if(1&t&&(h(0,"span",8),E(1),p()),2&t){const e=f(3);g(1),le(e.text
)}}function UN(t,n){1&t&&v(0,jN,2,1,"span",7),2&t&&m("ngIf",f(2).escape)}const $N=function(t,n,e,i,r){return{"p-inline-message-info":t,"p-inline-message-warn":n,"p-inline-message-error":e,"p-inline-message-success":i,"p-inline-message-icon-only":r}};function GN(t,n){if(1&t&&(h(0,"div",1),I(1,"span",2),v(2,zN,2,1,"div",3),v(3,UN,1,1,"ng-template",null,4,ze),p()),2&t){const e=fe(4),i=f();ge(i.styleClass),m("ngStyle",i.style)("ngClass",yr(7,$N,"info"===i.severity,"warn"===i.severity,"error"===i.severity,"success"===i.severity,null==i.text)),g(1),m("ngClass",i.icon),g(1),m("ngIf",!i.escape)("ngIfElse",e)}}let ff=(()=>{class t{constructor(){this.escape=!0}get icon(){let e=null;if(this.severity)switch(this.severity){case"success":e="pi pi-check";break;case"info":default:e="pi pi-info-circle";break;case"error":e="pi pi-times-circle";break;case"warn":e="pi pi-exclamation-triangle"}return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-message"]],host
Attrs:[1,"p-element"],inputs:{severity:"severity",text:"text",escape:"escape",style:"style",styleClass:"styleClass"},decls:1,vars:1,consts:[["aria-live","polite","class","p-inline-message p-component p-inline-message",3,"ngStyle","class","ngClass",4,"ngIf"],["aria-live","polite",1,"p-inline-message","p-component","p-inline-message",3,"ngStyle","ngClass"],[1,"p-inline-message-icon",3,"ngClass"],[4,"ngIf","ngIfElse"],["escapeOut",""],["class","p-inline-message-text",3,"innerHTML",4,"ngIf"],[1,"p-inline-message-text",3,"innerHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(e,i){1&e&&v(0,GN,5,13,"div",0),2&e&&m("ngIf",i.severity)},directives:[Me,lt,Je],styles:[".p-inline-message{display:inline-flex;align-items:center;justify-content:center;vertical-align:top}.p-inline-message-icon-only .p-inline-message-text{visibility:hidden;width:0}.p-fluid .p-inline-message{display:flex}\n"],encapsulation:2,changeDetection:0}),t})(),WN=(()=>{class t{}re
turn t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})(),ui=(()=>{class t{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(S.removeClass(i,"p-ink-active"),!S.getHeight(i)&&!S.getWidth(i)){let a=Math.max(S.getOuterWidth(this.el.nativeElement),S.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=S.getOffset(this.el.nativeElement),s=e.pageX-r.left+document.body.scrollTop-S.getWidth(i)/2,o=e.pageY-r.top+document.body.scrollLeft-S.getHeight(i)/2;i.style.top=o+"px",i.style.left=s+"px",S.addClass(i,"p-ink-active")}getInk(){for(let e=0;e<this.el.nativeElement.children.length;e++)if(-
1!==this.el.nativeElement.children[e].className.indexOf("p-ink"))return this.el.nativeElement.children[e];return null}resetInk(){let e=this.getInk();e&&S.removeClass(e,"p-ink-active")}onAnimationEnd(e){S.removeClass(e.currentTarget,"p-ink-active")}create(){let e=document.createElement("span");e.className="p-ink",this.el.nativeElement.appendChild(e),this.animationListener=this.onAnimationEnd.bind(this),e.addEventListener("animationend",this.animationListener)}remove(){let e=this.getInk();e&&(this.el.nativeElement.removeEventListener("mousedown",this.mouseDownListener),e.removeEventListener("animationend",this.animationListener),S.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(Te),w(Pi,8))},t.\u0275dir=U({type:t,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),t})(),hn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports
:[[Pe]]}),t})();class Y0{}const Fi="*";function Ir(t,n){return{type:7,name:t,definitions:n,options:{}}}function Pt(t,n=null){return{type:4,styles:n,timings:t}}function Q0(t,n=null){return{type:2,steps:t,options:n}}function Qe(t){return{type:6,styles:t,offset:null}}function rr(t,n,e){return{type:0,name:t,styles:n,options:e}}function jt(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function zc(t,n=null){return{type:8,animation:t,options:n}}function KN(t=null){return{type:9,options:t}}function Z0(t,n=null){return{type:10,animation:t,options:n}}function YN(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function J0(t){Promise.resolve(null).then(t)}class Ws{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._on
StartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){J0(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class X0{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;con
st s=this.players.length;0==s?J0(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(
),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function QN(t,n){if(1&t&&(h(0,"span",10),E(1),p()),2&t){const e=f(2);q("id",e.id+"_header"),g(1),le(e.header)}}function ZN(t,n){1&t&&H(0)}function JN(t,n){}function XN(t,n){1&t&&v(0,JN,0,0,"ng-template")}function eV(t,n){if(1&t){const e=z();h(0,"button",11),M("click",function(r){return C(e),f(2).onIconClick(r)})("keydown.enter",function(r){return C(e),f(2).onIconC
lick(r)}),I(1,"span"),p()}if(2&t){const e=f(2);q("id",e.id+"-label")("aria-controls",e.id+"-content")("aria-expanded",!e.collapsed),g(1),ge(e.collapsed?e.expandIcon:e.collapseIcon)}}function tV(t,n){if(1&t){const e=z();h(0,"div",6),M("click",function(r){return C(e),f().onHeaderClick(r)}),v(1,QN,2,2,"span",7),ot(2,1),v(3,ZN,1,0,"ng-container",4),h(4,"div",8),v(5,XN,1,0,void 0,4),v(6,eV,2,5,"button",9),p(),p()}if(2&t){const e=f();q("id",e.id+"-titlebar"),g(1),m("ngIf",e.header),g(2),m("ngTemplateOutlet",e.headerTemplate),g(2),m("ngTemplateOutlet",e.iconTemplate),g(1),m("ngIf",e.toggleable)}}function nV(t,n){1&t&&H(0)}function iV(t,n){1&t&&H(0)}function rV(t,n){if(1&t&&(h(0,"div",12),ot(1,2),v(2,iV,1,0,"ng-container",4),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.footerTemplate)}}const sV=["*",[["p-header"]],[["p-footer"]]],oV=function(t){return{"p-panel p-component":!0,"p-panel-toggleable":t}},aV=function(t){return{transitionParams:t,height:"0",opacity:"0"}},lV=function(t){retur
n{value:"hidden",params:t}},cV=function(t){return{transitionParams:t,height:"*",opacity:"1"}},uV=function(t){return{value:"visible",params:t}},dV=["*","p-header","p-footer"];let hV=0,pV=(()=>{class t{constructor(e){this.el=e,this.collapsed=!1,this.expandIcon="pi pi-plus",this.collapseIcon="pi pi-minus",this.showHeader=!0,this.toggler="icon",this.collapsedChange=new R,this.onBeforeToggle=new R,this.onAfterToggle=new R,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)",this.id="p-panel-"+hV++}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"icons":this.iconTemplate=e.template}})}onHeaderClick(e){"header"===this.toggler&&this.toggle(e)}onIconClick(e){"icon"===this.toggler&&this.toggle(e)}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:t
his.collapsed}),this.toggleable&&(this.collapsed?this.expand(e):this.collapse(e)),e.preventDefault()}expand(e){this.collapsed=!1,this.collapsedChange.emit(this.collapsed)}collapse(e){this.collapsed=!0,this.collapsedChange.emit(this.collapsed)}getBlockableElement(){return this.el.nativeElement.children[0]}onToggleDone(e){this.animating=!1,this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed})}}return t.\u0275fac=function(e){return new(e||t)(w(Se))},t.\u0275cmp=Q({type:t,selectors:[["p-panel"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.footerFacet=s.first),K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{toggleable:"toggleable",header:"header",collapsed:"collapsed",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",showHeader:"showHeader",toggler:"toggler",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterT
oggle:"onAfterToggle"},ngContentSelectors:dV,decls:7,vars:22,consts:[[3,"ngClass","ngStyle"],["class","p-panel-header",3,"click",4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-panel-content"],[4,"ngTemplateOutlet"],["class","p-panel-footer",4,"ngIf"],[1,"p-panel-header",3,"click"],["class","p-panel-title",4,"ngIf"],[1,"p-panel-icons"],["type","button","class","p-panel-header-icon p-panel-toggler p-link","pRipple","","role","tab",3,"click","keydown.enter",4,"ngIf"],[1,"p-panel-title"],["type","button","pRipple","","role","tab",1,"p-panel-header-icon","p-panel-toggler","p-link",3,"click","keydown.enter"],[1,"p-panel-footer"]],template:function(e,i){1&e&&(Sn(sV),h(0,"div",0),v(1,tV,7,5,"div",1),h(2,"div",2),M("@panelContent.done",function(s){return i.onToggleDone(s)}),h(3,"div",3),ot(4),v(5,nV,1,0,"ng-container",4),p(),v(6,rV,3,1,"div",5),p(),p()),2&e&&(ge(i.styleClass),m("ngClass",G(12,oV,i.toggleable))("ngStyle",i.style),q("id",i.id),g(1),m("ngIf",i.showHeader),g(1),m("@p
anelContent",i.collapsed?G(16,lV,G(14,aV,i.animating?i.transitionOptions:"0ms")):G(20,uV,G(18,cV,i.animating?i.transitionOptions:"0ms"))),q("id",i.id+"-content")("aria-hidden",i.collapsed)("aria-labelledby",i.id+"-titlebar"),g(3),m("ngTemplateOutlet",i.contentTemplate),g(1),m("ngIf",i.footerFacet||i.footerTemplate))},directives:[Je,lt,Me,Ot,ui],styles:[".p-panel-header{display:flex;justify-content:space-between;align-items:center}.p-panel-title{line-height:1}.p-panel-header-icon{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}\n"],encapsulation:2,data:{animation:[Ir("panelContent",[rr("hidden",Qe({height:"0",overflow:"hidden"})),rr("void",Qe({height:"{{height}}"}),{params:{height:"0"}}),rr("visible",Qe({height:"*"})),jt("visible <=> hidden",[Qe({overflow:"hidden"}),Pt("{{transitionParams}}")]),jt("void => hidden",Pt("{{transitionParams}}")),jt("void => visible",Pt("{{transitionParams}}"))])]},changeD
etection:0}),t})(),fV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Et,hn],Et]}),t})(),gV=(()=>{class t{constructor(){this.shape="rectangle",this.animation="wave",this.borderRadius=null,this.size=null,this.width="100%",this.height="1rem"}containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-none":"none"===this.animation}}containerStyle(){return Object.assign(Object.assign({},this.style),this.size?{width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-skeleton"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},decls:1,vars:4,consts:[[3,"ngClass","ngStyle"]],template:func
tion(e,i){1&e&&I(0,"div",0),2&e&&(ge(i.styleClass),m("ngClass",i.containerClass())("ngStyle",i.containerStyle()))},directives:[Je,lt],styles:['.p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:"";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n'],encapsulation:2,changeDetection:0}),t})(),mV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})(),_V=(()=>{class t{constructor(e,i){this.mythService=e,this.configService=i}ngOnInit(){this.m_hostname$=this.mythService.GetHostName().pipe(Re(e=>console.log(e))),this.m_timezone$=this.mythService.GetTimeZone().pipe(Re(e=>console.log(e))),this.m_connectionInfo$=this.mythService.GetConnectionIn
fo().pipe(Oi(e=>(console.error("error getting connection info",e),this.errorRes=e,hf(e)))),this.m_setting$=this.mythService.GetSetting({HostName:"localhost",Key:"TestSetting"}).pipe(Re(e=>console.log(e))),this.m_databaseStatus$=this.configService.GetDatabaseStatus().pipe(Re(e=>console.log("Database Status: "+e)))}}return t.\u0275fac=function(e){return new(e||t)(w(pf),w(xr))},t.\u0275cmp=Q({type:t,selectors:[["app-dashboard"]],decls:78,vars:0,consts:[[1,"p2"],["severity","warn","text","Please note this is a work in progress and some features are not fully working!"],[1,"grid","m-2"],[1,"col-12","md:col-6","lg:col-3"],["header","Server Status","styleClass","dark-panel",1,"showHeader"],[1,"pt-2"],["styleClass","mb-2"],["width","10rem","styleClass","mb-2"],["width","5rem","styleClass","mb-2"],["height","2rem","styleClass","mb-2"],["width","10rem","height","4rem"],["header","Current Tuner Status","styleClass","dark-panel"],["header","EPG Status","styleClass","dark-panel"],["header","Stor
age Group Status","styleClass","dark-panel"],["header","Job Queue","styleClass","dark-panel"],["header","Frontends","styleClass","dark-panel"],["header","Recent Recordings","styleClass","dark-panel"],["header","Dashboard Title 8","styleClass","dark-panel"],["header","Dashboard Title 9","styleClass","dark-panel"]],template:function(e,i){1&e&&(h(0,"h1"),E(1,"Dashboard"),p(),h(2,"p-card",0),h(3,"div"),I(4,"p-message",1),p(),p(),h(5,"div",2),h(6,"div",3),h(7,"p-panel",4),h(8,"div",5),I(9,"p-skeleton",6),I(10,"p-skeleton",7),I(11,"p-skeleton",8),I(12,"p-skeleton",9),I(13,"p-skeleton",10),p(),p(),p(),h(14,"div",3),h(15,"p-panel",11),h(16,"div",5),I(17,"p-skeleton",6),I(18,"p-skeleton",7),I(19,"p-skeleton",8),I(20,"p-skeleton",9),I(21,"p-skeleton",10),p(),p(),p(),h(22,"div",3),h(23,"p-panel",12),h(24,"div",5),I(25,"p-skeleton",6),I(26,"p-skeleton",7),I(27,"p-skeleton",8),I(28,"p-skeleton",9),I(29,"p-skeleton",10),p(),p(),p(),h(30,"div",3),h(31,"p-panel",13),h(32,"div",5),I(33,"p-skeleton",
6),I(34,"p-skeleton",7),I(35,"p-skeleton",8),I(36,"p-skeleton",9),I(37,"p-skeleton",10),p(),p(),p(),h(38,"div",3),h(39,"p-panel",14),h(40,"div",5),I(41,"p-skeleton",6),I(42,"p-skeleton",7),I(43,"p-skeleton",8),I(44,"p-skeleton",9),I(45,"p-skeleton",10),p(),p(),p(),h(46,"div",3),h(47,"p-panel",15),h(48,"div",5),I(49,"p-skeleton",6),I(50,"p-skeleton",7),I(51,"p-skeleton",8),I(52,"p-skeleton",9),I(53,"p-skeleton",10),p(),p(),p(),h(54,"div",3),h(55,"p-panel",16),h(56,"div",5),I(57,"p-skeleton",6),I(58,"p-skeleton",7),I(59,"p-skeleton",8),I(60,"p-skeleton",9),I(61,"p-skeleton",10),p(),p(),p(),h(62,"div",3),h(63,"p-panel",17),h(64,"div",5),I(65,"p-skeleton",6),I(66,"p-skeleton",7),I(67,"p-skeleton",8),I(68,"p-skeleton",9),I(69,"p-skeleton",10),p(),p(),p(),h(70,"div",3),h(71,"p-panel",18),h(72,"div",5),I(73,"p-skeleton",6),I(74,"p-skeleton",7),I(75,"p-skeleton",8),I(76,"p-skeleton",9),I(77,"p-skeleton",10),p(),p(),p(),p())},directives:[Gs,ff,pV,gV],styles:["[_nghost-%COMP%] .dark-panel
.p-panel .p-panel-header{background:#c0c0c0}"]}),t})(),yV=(()=>{class t{constructor(e){this.httpClient=e,this.startDate=Date.now()}toTime(e){return new Date(e).toISOString()}toStartTime(e){return this.toTime(e)}toEndTime(e){let i=new Date(e),r=new Date(i.getTime()+72e5);return this.toTime(r.toISOString())}toHalfHour(e){let i=new Date(e);return i.setMinutes(i.getMinutes()<30?0:30),i.setSeconds(0),i}GetProgramGuide(){let e=this.toHalfHour(this.startDate).toISOString(),i={StartTime:this.toStartTime(e),EndTime:this.toEndTime(e),Details:"true"};return this.httpClient.post("/Guide/GetProgramGuide",i)}}return t.\u0275fac=function(e){return new(e||t)(P(Fs))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function jc(t,n=0){return function bV(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function mf(t,n,e,i){return Ni(e)&&(i=e,e=void 0),i?mf(t,n,e).pipe(ke(r=>Fr(r)?i(...r):i(r))):new Ee(r=>{e1(t,n,function s(o){r.next(arguments.length>1?Array.protot
ype.slice.call(arguments):o)},r,e)})}function e1(t,n,e,i,r){let s;if(function SV(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,r),s=()=>o.removeEventListener(n,e,r)}else if(function DV(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),s=()=>o.off(n,e)}else if(function CV(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),s=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e1(t[o],n,e,i,r)}i.add(s)}class TV extends Ge{constructor(n,e){super()}schedule(n,e=0){return this}}class Uc extends TV{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.dela
y=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let t1=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Yn extends
t1{constructor(n,e=t1.now){super(n,()=>Yn.delegate&&Yn.delegate!==this?Yn.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Yn.delegate&&Yn.delegate!==this?Yn.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const IV=new class xV extends Yn{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r<s&&(n=e.shift()));if(this.active=!1,i){for(;++r<s&&(n=e.shift());)n.unsubscribe();throw i}}}(class EV extends Uc{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycl
eAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let kV=1;const MV=Promise.resolve(),$c={};function n1(t){return t in $c&&(delete $c[t],!0)}const r1={setImmediate(t){const n=kV++;return $c[n]=!0,MV.then(()=>n1(n)&&t()),n},clearImmediate(t){n1(t)}},AV=new class RV extends Yn{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r<s&&(n=e.shift()));if(this.active=!1,i){for(;++r<s&&(n=e.shift());)n.unsubscribe();throw i}}}(class OV extends Uc{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=r1.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length
&&(r1.clearImmediate(e),n.scheduled=void 0)}});function s1(t){return!!t&&(t instanceof Ee||"function"==typeof t.lift&&"function"==typeof t.subscribe)}class FV{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new LV(n,this.compare,this.keySelector))}}class LV extends je{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}const o1=new Yn(Uc);class VV{constructor(n){this.durationSelector=n}call(n,e){return e.subscribe(new BV(n,this.durationSelector))}}class BV extends io{constructor(n,e){super(n),this.durationSelector=e,this.hasValue=!1}_next(n){if(this.value=n,this.hasValue=!0,!this.throttled){let e;try{const{duration
Selector:r}=this;e=r(n)}catch(r){return this.destination.error(r)}const i=ro(e,new no(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:n,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function a1(t){return!Fr(t)&&t-parseFloat(t)+1>=0}function zV(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function _f(t,n=o1){return function NV(t){return function(e){return e.lift(new VV(t))}}(()=>function HV(t=0,n,e){let i=-1;return a1(n)?i=Number(n)<1?1:Number(n):Lr(n)&&(e=n),Lr(e)||(e=o1),new Ee(r=>{const s=a1(t)?t:+t-e.now();return e.schedule(zV,s,{index:0,period:i,subscriber:r})})}(t,n))}function yf(t){return n=>n.lift(new jV(t))}class jV{constructor(n){this.notifier=n}call(n,e){const i=new U
V(n),r=ro(this.notifier,new no(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class UV extends io{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}class GV{call(n,e){return e.subscribe(new WV(n))}}class WV extends je{constructor(n){super(n),this.hasPrev=!1}_next(n){let e;this.hasPrev?e=[this.prev,n]:this.hasPrev=!0,this.prev=n,e&&this.destination.next(e)}}const YV=new class KV extends Yn{}(class qV extends Uc{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}});class Rn{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case
"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return ee(this.value);case"E":return hf(this.error);case"C":return _c()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new Rn("N",n):Rn.undefinedValueNotification}static createError(n){return new Rn("E",void 0,n)}static createComplete(){return Rn.completeNotification}}Rn.completeNotification=new Rn("C"),Rn.undefinedValueNotification=new Rn("N",void 0);class Gc extends je{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(Gc.dispatch,this.delay,new ZV(n,this.destinati
on)))}_next(n){this.scheduleMessage(Rn.createNext(n))}_error(n){this.scheduleMessage(Rn.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(Rn.createComplete()),this.unsubscribe()}}class ZV{constructor(n,e){this.notification=n,this.destination=e}}class JV extends Oe{constructor(n=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=n<1?1:n,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(n){if(!this.isStopped){const e=this._events;e.push(n),e.length>this._bufferSize&&e.shift()}super.next(n)}nextTimeWindow(n){this.isStopped||(this._events.push(new XV(this._getNow(),n)),this._trimBufferThenGetEvents()),super.next(n)}_subscribe(n){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)
throw new cr;if(this.isStopped||this.hasError?o=Ge.EMPTY:(this.observers.push(n),o=new lg(this,n)),r&&n.add(n=new Gc(n,r)),e)for(let a=0;a<s&&!n.closed;a++)n.next(i[a]);else for(let a=0;a<s&&!n.closed;a++)n.next(i[a].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),o}_getNow(){return(this.scheduler||YV).now()}_trimBufferThenGetEvents(){const n=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(n-r[o].time<i);)o++;return s>e&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class XV{constructor(n,e){this.time=n,this.value=e}}let vf;try{vf="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){vf=!1}let Wc,kr,l1=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function $A(t){return t===hw}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),th
is.BLINK=this.isBrowser&&!(!window.chrome&&!vf)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(P(Yo))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),n3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})();function Ca(){if("object"!=typeof document||!document)return 0;if(null==Wc){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.p
osition="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Wc=0,0===t.scrollLeft&&(t.scrollLeft=1,Wc=0===t.scrollLeft?1:2),t.remove()}return Wc}const a3=new ie("cdk-dir-doc",{providedIn:"root",factory:function l3(){return AT(bt)}}),c3=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let u1=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new R,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function u3(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?c3.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(P(a3,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),d1
=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})();class p3 extends class d3{}{constructor(n){super(),this._data=n}connect(){return s1(this._data)?this._data:ee(this._data)}disconnect(){}}class f3{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(n,e,i,r,s){n.forEachOperation((o,a,l)=>{let c,u;null==o.previousIndex?(c=this._insertView(()=>i(o,a,l),l,e,r(o)),u=c?1:0):null==l?(this._detachAndCacheView(a,e),u=3):(c=this._moveView(a,l,e,r(o)),u=2),s&&s({context:null==c?void 0:c.context,operation:u,record:o})})}detach(){for(const n of this._viewCache)n.destroy();this._viewCache=[]}_insertView(n,e,i,r){const s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=r);const o=n();return i.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheView(n,e){const i=e.detach(n);this._maybeCacheView(i,e)}_moveView(n,e,i,r){const s=i.get(n);return i.move(s,e),s.context.$implicit=r,s}_maybeCache
View(n,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(n);else{const i=e.indexOf(n);-1===i?n.destroy():e.remove(i)}}_insertViewFromCache(n,e){const i=this._viewCache.pop();return i&&e.insert(i,n),i||null}}const h1=new ie("_ViewRepeater"),g3=["contentWrapper"],m3=["*"],p1=new ie("VIRTUAL_SCROLL_STRATEGY");class _3{constructor(n,e,i){this._scrolledIndexChange=new Oe,this.scrolledIndexChange=this._scrolledIndexChange.pipe(function PV(t,n){return e=>e.lift(new FV(t,n))}()),this._viewport=null,this._itemSize=n,this._minBufferPx=e,this._maxBufferPx=i}attach(n){this._viewport=n,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(n,e,i){this._itemSize=n,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange
()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(n,e){this._viewport&&this._viewport.scrollToOffset(n*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const n=this._viewport.getRenderedRange(),e={start:n.start,end:n.end},i=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let s=this._viewport.measureScrollOffset(),o=this._itemSize>0?s/this._itemSize:0;if(e.end>r){const l=Math.ceil(i/this._itemSize),c=Math.max(0,Math.min(o,r-l));o!=c&&(o=c,s=c*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(r,e.start+l))}const a=s-e.start*this._itemSize;if(a<this._minBufferPx&&0!=e.start){const l=Math.ceil((this._maxBufferPx-a)/this._itemSize);e.start=Math.max(0,e.start-l),e.end=Math.min(r,Math.ceil(o+(i+this._minBufferPx)/this._itemSize))}else{const l=e.end*this._itemSize-(s+i);if(l<this._minBufferPx&&e.end!=r){
const c=Math.ceil((this._maxBufferPx-l)/this._itemSize);c>0&&(e.end=Math.min(r,e.end+c),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}function y3(t){return t._scrollStrategy}let f1=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new _3(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=jc(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=jc(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=jc(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=U({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize","
"]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[be([{provide:p1,useFactory:y3,deps:[xe(()=>t)]}]),gt]}),t})(),g1=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Oe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ee(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(_f(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ee()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)
),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Zi(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=function wV(t){return t instanceof Se?t.nativeElement:t}(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>mf(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(P(Te),P(l1),P(bt,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m1=(()=>{class t{constructor(e,i,r,s){this.el
ementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new Oe,this._elementScrolled=new Ee(o=>this.ngZone.runOutsideAngular(()=>mf(this.elementRef.nativeElement,"scroll").pipe(yf(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Ca()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Ca()?e.left=e.right:1==Ca()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;!function
s3(){if(null==kr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return kr=!1,kr;if("scrollBehavior"in document.documentElement.style)kr=!0;else{const t=Element.prototype.scrollTo;kr=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return kr}()?(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left)):i.scrollTo(e)}measureScrollOffset(e){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==e)return s.scrollTop;if("bottom"==e)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?r:i:"end"==e&&(e=o?i:r),o&&2==Ca()?e==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==Ca()?e==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(g1),w(Te),w(u1,8))},t.\u0275dir=U({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),w3
=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new Oe,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._pla
tform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(_f(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(P(l1),P(Te),P(bt,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const D3="undefined"!=typeof requestAnimationFrame?IV:AV;let Da=(()=>{class t extends m1{constructor(e,i,r,s,o,a,l){super(e,a,r,o),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=s,this._detachedSubject=new Oe,this._renderedRangeSubject=new Oe,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange
=new Ee(c=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>c.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Ge.EMPTY,this._viewportChanges=l.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=function vV(t){return null!=t&&"false"!=`${t}`}(e)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),thi
s.elementScrolled().pipe($p(null),_f(0,D3)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(yf(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function C3(t,n){return t.start==n.start&&t.end==n.end})(this._rende
redRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){const s="horizontal"==this.orientation,o=s?"X":"Y";let l=`translate${o}(${Number((s&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(l+=` translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=l&&(this._renderedContentTransform=l,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToO
ffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){return super.measureScrollOffset(e||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const e=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?e.clientWidth:e.clientHeight}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this.
_isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(vt),w(Te),w(p1,8),w(u1,8),w(g1),w(w3))},t.\u0275cmp=Q({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&He(g3,7),2&e){let r;K(r=Y())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&si("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",append
Only:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[be([{provide:m1,useExisting:t}]),Be],ngContentSelectors:m3,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(Sn(),h(0,"div",0,1),ot(2),p(),I(3,"div",2)),2&e&&(g(3),wi("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scr
oll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scro
ll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function _1(t,n,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===t?"start"===n?r.left:r.right:"start"===n?r.top:r.bottom}let y1=(()=>{class t{constructor(e,i,r,s,o,a){this._viewContainerRef=e,this._template=i,this._differs=r,this._viewRepeater=s,this._viewport=o,this.viewChange=new Oe,this._dataSourceChanges=new Oe,this.dataStream=this._dataSourceChanges.pipe($p(null),function $V(){return t=>t.lift(new GV)}(),Mi(([l,c])=>this._changeDataSource(l,c)),function e3(t,n,e){let i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:n,refCount:!1,scheduler:e},r=>r.lift(function t3({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:n=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,o,s=0,a=!1,l=!1;return function(u){let d;s++,!r|
|a?(a=!1,r=new JV(t,n,i),d=r.subscribe(this),o=u.subscribe({next(_){r.next(_)},error(_){a=!0,r.error(_)},complete(){l=!0,o=void 0,r.complete()}}),l&&(o=void 0)):d=r.subscribe(this),this.add(()=>{s--,d.unsubscribe(),d=void 0,o&&!l&&e&&0===s&&(o.unsubscribe(),o=void 0,r=void 0)})}}(i))}(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Oe,this.dataStream.subscribe(l=>{this._data=l,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(yf(this._destroyed)).subscribe(l=>{this._renderedRange=l,a.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function h3(t){return t&&"function"==typeof t.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new p3(s1(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,
this._cdkVirtualForTrackBy=e?(i,r)=>e(i+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=jc(e)}measureRangeSize(e,i){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,s=e.end-e.start;let o,a;for(let l=0;l<s;l++){const c=this._viewContainerRef.get(l+r);if(c&&c.rootNodes.length){o=a=c.rootNodes[0];break}}for(let l=s-1;l>-1;l--){const c=this._viewContainerRef.get(l+r);if(c&&c.rootNodes.length){a=c.rootNodes[c.rootNodes.length-1];break}}return o&&a?_1(i,"end",a)-_1(i,"start",o):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.comp
lete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,i):i)),this._needsUpdate=!0)}_changeDataSource(e,i){return e&&e.disconnect(this),this._needsUpdate=!0,i?i.connect(this):ee()}_updateContext(){const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const r=this._viewContainerRef.get(i);r.context.index=this._renderedRange.start+i,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(s,o,a)=>this._getEmbeddedViewArgs(s,a),s=>s.item),e.forEachIdentityChange(s=>{this._viewContainerRef.get(s.currentIndex).context.$implicit=s.item});const i=
this._data.length;let r=this._viewContainerRef.length;for(;r--;){const s=this._viewContainerRef.get(r);s.context.index=this._renderedRange.start+r,s.context.count=i,this._updateComputedContextProperties(s.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,i){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:i}}}return t.\u0275fac=function(e){return new(e||t)(w(In),w(xn),w(Os),w(h1),w(Da,4),w(Te))},t.\u0275dir=U({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[be([{provide:h1,useClass:f3}])]}),t})(),v1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)}
,t.\u0275mod=X({type:t}),t.\u0275inj=J({}),t})(),qc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[d1,n3,v1],d1,v1]}),t})();function S3(t,n){if(1&t&&(h(0,"span"),E(1),p()),2&t){const e=f();g(1),le(e.label||"empty")}}function T3(t,n){1&t&&H(0)}const b1=function(t){return{height:t}},E3=function(t,n){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":n}},wf=function(t){return{$implicit:t}},x3=["container"],I3=["filter"],k3=["in"],M3=["editableInput"];function O3(t,n){if(1&t&&(de(0),E(1),he()),2&t){const e=f(2);g(1),le(e.label||"empty")}}function R3(t,n){1&t&&H(0)}const A3=function(t){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":t}};function P3(t,n){if(1&t&&(h(0,"span",12),v(1,O3,2,1,"ng-container",13),v(2,R3,1,0,"ng-container",14),p()),2&t){const e=f();m("ngClass",G(9,A3,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPosit
ionStyle)("tooltipStyleClass",e.tooltipStyleClass),q("id",e.labelId),g(1),m("ngIf",!e.selectedItemTemplate),g(1),m("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",G(11,wf,e.selectedOption))}}const F3=function(t){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":t}};function L3(t,n){if(1&t&&(h(0,"span",15),E(1),p()),2&t){const e=f();m("ngClass",G(2,F3,null==e.placeholder||0===e.placeholder.length)),g(1),le(e.placeholder||"empty")}}function N3(t,n){if(1&t){const e=z();h(0,"input",16,17),M("click",function(){return C(e),f().onEditableInputClick()})("input",function(r){return C(e),f().onEditableInputChange(r)})("focus",function(r){return C(e),f().onEditableInputFocus(r)})("blur",function(r){return C(e),f().onInputBlur(r)}),p()}if(2&t){const e=f();m("disabled",e.disabled),q("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function V3(t,n){if(1&t){const e=z();h(0,"i",18),M("click",function(r){return
C(e),f().clear(r)}),p()}}function B3(t,n){1&t&&H(0)}function H3(t,n){if(1&t){const e=z();h(0,"div",26),h(1,"div",27),M("click",function(r){return r.stopPropagation()}),h(2,"input",28,29),M("keydown.enter",function(r){return r.preventDefault()})("keydown",function(r){return C(e),f(2).onKeydown(r,!1)})("input",function(r){return C(e),f(2).onFilterInputChange(r)}),p(),I(4,"span",30),p(),p()}if(2&t){const e=f(2);g(2),m("value",e.filterValue||""),q("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function z3(t,n){if(1&t&&(h(0,"span"),E(1),p()),2&t){const e=f().$implicit,i=f(3);g(1),le(i.getOptionGroupLabel(e)||"empty")}}function j3(t,n){1&t&&H(0)}function U3(t,n){1&t&&H(0)}const w1=function(t,n){return{$implicit:t,selectedOption:n}};function $3(t,n){if(1&t&&(h(0,"li",32),v(1,z3,2,1,"span",13),v(2,j3,1,0,"ng-container",14),p(),v(3,U3,1,0,"ng-container",14)),2&t){const e=n.$implicit;f(2);const i=
fe(8),r=f();g(1),m("ngIf",!r.groupTemplate),g(1),m("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",G(5,wf,e)),g(1),m("ngTemplateOutlet",i)("ngTemplateOutletContext",it(7,w1,r.getOptionGroupChildren(e),r.selectedOption))}}function G3(t,n){if(1&t&&(de(0),v(1,$3,4,10,"ng-template",31),he()),2&t){const e=f(2);g(1),m("ngForOf",e.optionsToDisplay)}}function W3(t,n){1&t&&H(0)}function q3(t,n){if(1&t&&(de(0),v(1,W3,1,0,"ng-container",14),he()),2&t){f();const e=fe(8),i=f();g(1),m("ngTemplateOutlet",e)("ngTemplateOutletContext",it(2,w1,i.optionsToDisplay,i.selectedOption))}}function K3(t,n){if(1&t){const e=z();h(0,"p-dropdownItem",35),M("onClick",function(r){return C(e),f(4).onItemClick(r)}),p()}if(2&t){const e=n.$implicit,i=f(2).selectedOption,r=f(2);m("option",e)("selected",i==e)("label",r.getOptionLabel(e))("disabled",r.isOptionDisabled(e))("template",r.itemTemplate)}}function Y3(t,n){if(1&t&&(de(0),v(1,K3,1,5,"ng-template",31),he()),2&t){const e=f().$implicit;g(1),m("ngForOf
",e)}}function Q3(t,n){if(1&t){const e=z();de(0),h(1,"p-dropdownItem",35),M("onClick",function(r){return C(e),f(5).onItemClick(r)}),p(),he()}if(2&t){const e=n.$implicit,i=f(3).selectedOption,r=f(2);g(1),m("option",e)("selected",i==e)("label",r.getOptionLabel(e))("disabled",r.isOptionDisabled(e))("template",r.itemTemplate)}}function Z3(t,n){if(1&t){const e=z();h(0,"cdk-virtual-scroll-viewport",37,38),M("scrolledIndexChange",function(){return C(e),f(4).scrollToSelectedVirtualScrollElement()}),v(2,Q3,2,5,"ng-container",39),p()}if(2&t){const e=f(2).$implicit,i=f(2);m("ngStyle",G(3,b1,i.scrollHeight))("itemSize",i.itemSize),g(2),m("cdkVirtualForOf",e)}}function J3(t,n){if(1&t&&v(0,Z3,3,5,"cdk-virtual-scroll-viewport",36),2&t){const e=f(3);m("ngIf",e.virtualScroll&&e.optionsToDisplay&&e.optionsToDisplay.length)}}function X3(t,n){if(1&t&&(v(0,Y3,2,1,"ng-container",33),v(1,J3,1,1,"ng-template",null,34,ze)),2&t){const e=fe(2);m("ngIf",!f(2).virtualScroll)("ngIfElse",e)}}function eB(t,n){if(1
&t&&(de(0),E(1),he()),2&t){const e=f(3);g(1),De(" ",e.emptyFilterMessageLabel," ")}}function tB(t,n){1&t&&H(0,null,41)}function nB(t,n){if(1&t&&(h(0,"li",40),v(1,eB,2,1,"ng-container",33),v(2,tB,2,0,"ng-container",20),p()),2&t){const e=f(2);g(1),m("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),g(1),m("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function iB(t,n){if(1&t&&(de(0),E(1),he()),2&t){const e=f(3);g(1),De(" ",e.emptyMessageLabel," ")}}function rB(t,n){1&t&&H(0,null,42)}function sB(t,n){if(1&t&&(h(0,"li",40),v(1,iB,2,1,"ng-container",33),v(2,rB,2,0,"ng-container",20),p()),2&t){const e=f(2);g(1),m("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),g(1),m("ngTemplateOutlet",e.emptyTemplate)}}function oB(t,n){1&t&&H(0)}const aB=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},lB=function(t){return{value:"visible",params:t}},cB=function(t){return{"p-dropdown-virtualscroll":t}};function uB(t,n){if(1&t){const e=z();h(0,"div",1
9),M("click",function(r){return C(e),f().onOverlayClick(r)})("@overlayAnimation.start",function(r){return C(e),f().onOverlayAnimationStart(r)})("@overlayAnimation.start",function(r){return C(e),f().onOverlayAnimationEnd(r)}),v(1,B3,1,0,"ng-container",20),v(2,H3,5,4,"div",21),h(3,"div",22),h(4,"ul",23),v(5,G3,2,1,"ng-container",13),v(6,q3,2,5,"ng-container",13),v(7,X3,3,2,"ng-template",null,24,ze),v(9,nB,3,3,"li",25),v(10,sB,3,3,"li",25),p(),p(),v(11,oB,1,0,"ng-container",20),p()}if(2&t){const e=f();ge(e.panelStyleClass),m("ngClass","p-dropdown-panel p-component")("@overlayAnimation",G(19,lB,it(16,aB,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),g(1),m("ngTemplateOutlet",e.headerTemplate),g(1),m("ngIf",e.filter),g(1),wi("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),g(1),m("ngClass",G(21,cB,e.virtualScroll)),q("id",e.listId),g(1),m("ngIf",e.group),g(1),m("ngIf",!e.group),g(3),m("ngIf",e.filterValue&&e.isEmpty()),g(1),m("ngIf",!e.filterValue&&
e.isEmpty()),g(1),m("ngTemplateOutlet",e.footerTemplate)}}const dB=function(t,n,e,i){return{"p-dropdown p-component":!0,"p-disabled":t,"p-dropdown-open":n,"p-focus":e,"p-dropdown-clearable":i}},hB={provide:Ht,useExisting:xe(()=>C1),multi:!0};let pB=(()=>{class t{constructor(){this.onClick=new R}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(h(0,"li",0),M("click",function(s){return i.onOptionClick(s)}),v(1,S3,2,1,"span",1),v(2,T3,1,0,"ng-container",2),p()),2&e&&(m("ngStyle",G(8,b1,i.itemSize+"
px"))("id",i.selected?"p-highlighted-option":"")("ngClass",it(10,E3,i.selected,i.disabled)),q("aria-label",i.label)("aria-selected",i.selected),g(1),m("ngIf",!i.template),g(1),m("ngTemplateOutlet",i.template)("ngTemplateOutletContext",G(13,wf,i.option)))},directives:[ui,lt,Je,Me,Ot],encapsulation:2}),t})(),C1=(()=>{class t{constructor(e,i,r,s,o,a,l){this.el=e,this.renderer=i,this.cd=r,this.zone=s,this.filterService=o,this.config=a,this.overlayService=l,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.onChange=new R,this.onFilter=new R,this.onFocus=new R,this.onB
lur=new R,this.onClick=new R,this.onShow=new R,this.onHide=new R,this.onClear=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=va()}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list"}get options(){return this._options}set options(e){this._options=e,this.optionsToDi
splay=this._options,this.updateSelectedOption(this.value),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Qt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Qt.EMPTY_FILTER_MESSAGE)}get filled(){return this.value||null!=this.value||null!=this.value}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e
}getOptionValue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?V.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?V.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const i=e.option;this.isOptionDisabled(i)||(this.selectItem(e.originalEvent,i),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(e,i){this.selectedOption!=i&&(this.selectedOption=i,this.value=this.getOptionValue(i),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}),this.virtualScroll&&setTimeout(()=>{this.viewPortOffsetTop=this.viewPort?this.viewPort.measureScrollOffset():0},1))}ngAfterViewChe
cked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.virtualScroll&&this.updateVirtualScrollSelectedIndex(!0),this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){if(this.virtualScroll&&this.viewPort){let i=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(i.start>this.virtualScrollSelectedIndex||i.end<this.virtualScrollSelectedIndex)&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)}S.findSingle(this.overlay,"li.p-highlight")&&S.scrollInView(this.itemsWrapper,S.findSingle(this.overlay,"li.p-highlight")),this.selectedOptionUpdated=!1}}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.updateSelectedOption(e),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}update
SelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onMouseclick(e){this.disabled||this.readonly||this.isInputClick(e)||(this.onClick.emit(e),this.accessibleViewChild.nativeElement.focus(),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}isInputClick(e){return S.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.ed
itableInputViewChild.nativeElement)}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputClick(){this.bindDocumentClickListener()}onEditableInputFocus(e){this.focused=!0,this.hide(),this.onFocus.emit(e)}onEditableInputChange(e){this.value=e.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}show(){this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.overlay=e.element,this.itemsWrapper=S.findSingle(this.overlay,this.virtualScroll?".cdk-virtual-scroll-viewport":".p-dropdown-items-wrapper"),this.appendOverlay(),this.autoZIndex&&Tt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overl
ay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options&&this.options.length&&!this.virtualScroll){let r=S.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");r&&r.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e);break;case"void":this.onOverlayHide(),this.onHide.emit(e)}}onOverlayAnimationEnd(e){"void"===e.toState&&Tt.clear(e.element)}scrollToSelectedVirtualScrollElement(){this.virtualAutoScrolled||(this.viewPortOffsetTop?this.viewPort.scrollToOffset(this.viewPortOffsetTop):this.virtualScrollSelectedIndex>-1&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)),this.virtualAutoScrolled=!0}updateVirtualScrollSelectedIndex(e){this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&(e&&(this.viewPortOffsetT
op=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):S.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=S.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.virtualScroll&&(this.virtualAutoScrolled=!1),this.cd.markForCheck()}alignOverlay(){this.overlay&&(this.appendTo?S.absolutePosition(this.overlay,this.containerViewChild.nativeElement):S.relativePosition(this.overlay,this.containerViewChild.nativeElement))}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouche
d=!1}findPrevEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e-1;0<=r;r--){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}if(!i)for(let r=this.optionsToDisplay.length-1;r>=e;r--){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}}return i}findNextEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e+1;r<this.optionsToDisplay.length;r++){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}if(!i)for(let r=0;r<e;r++){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}}return i}onKeydown(e,i){if(!this.readonly&&this.optionsToDisplay&&null!==this.optionsToDisplay.length)switch(e.which){case 40:if(!this.overlayVisible&&e.altKey)this.show();else if(this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==r){let s=r.itemIndex+1;s<this.getOptionGro
upChildren(this.optionsToDisplay[r.groupIndex]).length?(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex])[s]),this.selectedOptionUpdated=!0):this.optionsToDisplay[r.groupIndex+1]&&(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,s=this.findNextEnabledOption(r);s&&(this.selectItem(e,s),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 38:if(this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==r){let s=r.itemIndex-1;if(s>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex])[s]),this.selectedOptionUpdated=
!0;else if(s<0){let o=this.optionsToDisplay[r.groupIndex-1];o&&(this.selectItem(e,this.getOptionGroupChildren(o)[this.getOptionGroupChildren(o).length-1]),this.selectedOptionUpdated=!0)}}}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,s=this.findPrevEnabledOption(r);s&&(this.selectItem(e,s),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 32:i&&(this.overlayVisible?this.hide():this.show(),e.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),e.preventDefault();break;case 27:case 9:this.hide();break;default:i&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const i=e.key;let r;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=i,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.se
archValue?this.searchValue+i:i,this.group){let s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};r=this.searchOptionWithinGroup(s)}else{let s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;r=this.searchOption(++s)}r&&!this.isOptionDisabled(r)&&(this.selectItem(e,r),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let i;return this.searchValue&&(i=this.searchOptionInRange(e,this.optionsToDisplay.length),i||(i=this.searchOptionInRange(0,e))),i}searchOptionInRange(e,i){for(let r=e;r<i;r++){let s=this.optionsToDisplay[r];if(this.getOptionLabel(s).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(s))return s}return null}searchOptionWithinGroup(e){if(this.searchValue){for(let r=e.groupIndex;r<this.optionsT
oDisplay.length;r++)for(let s=e.groupIndex===r?e.itemIndex+1:0;s<this.getOptionGroupChildren(this.optionsToDisplay[r]).length;s++){let o=this.getOptionGroupChildren(this.optionsToDisplay[r])[s];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return o}for(let r=0;r<=e.groupIndex;r++)for(let s=0;s<(e.groupIndex===r?e.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[r]).length);s++){let o=this.getOptionGroupChildren(this.optionsToDisplay[r])[s];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return o}}return null}findOptionIndex(e,i){let r=-1;if(i)for(let s=0;s<i.length;s++)if(null==e&&null==this.getOptionValue(i[s])||V.equals(e,this.getOptionValue(i[s]),this.dataKey)){r=s;break}return r}findOptionGroupIndex(e,i){let r,s;if(i)for(let o=0;o<i.length&&(r=o,s=this.f
indOptionIndex(e,this.getOptionGroupChildren(i[o])),-1===s);o++);return-1!==s?{groupIndex:r,itemIndex:s}:-1}findOption(e,i,r){if(this.group&&!r){let s;if(i&&i.length)for(let o of i)if(s=this.findOption(e,this.getOptionGroupChildren(o),!0),s)break;return s}{let s=this.findOptionIndex(e,i);return-1!=s?i[s]:null}}onFilterInputChange(e){let i=e.target.value;i&&i.length?(this._filterValue=i,this.activateFilter()):(this._filterValue=null,this.optionsToDisplay=this.options),this.optionsChanged=!0,this.onFilter.emit({originalEvent:e,filter:this._filterValue})}activateFilter(){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.options&&this.options.length){if(this.group){let i=[];for(let r of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(r),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&i.push(Object.assign(Object.assign({},r),{[this.optionGroupChildren]:s}))}this.optionsToDisplay=i}else this.optionsToDisplay=this.filterSe
rvice.filter(this.options,e,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.editable?S.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():S.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",i=>{!this.preventDocumentDefault&&this.isOutsideClicked(i)&&(this.hide(),this.unbindDocumentClickListener()),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResiz
eListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!S.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Lc(this.containerViewChild.nativeElement,e=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}clear(e){this.value=null,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.updateSelectedOption(this.value),this.updateEditableLabel(),this.onClear.emit(e)}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.itemsWrapper=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&Tt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(dn),
w(vt),w(Te),w(Nc),w(Pi),w(Vc))},t.\u0275cmp=Q({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(He(x3,5),He(I3,5),He(k3,5),He(Da,5),He(M3,5)),2&e){let r;K(r=Y())&&(i.containerViewChild=r.first),K(r=Y())&&(i.filterViewChild=r.first),K(r=Y())&&(i.accessibleViewChild=r.first),K(r=Y())&&(i.viewPort=r.first),K(r=Y())&&(i.editableInputViewChild=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,i){2&e&&si("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focused||i.overlayVisible)},inputs:{scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"i
nputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",virtualScroll:"virtualScroll",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValu
e"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear"},features:[be([hB])],decls:12,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","text","class","p-dropdown-label p-inputtext","aria-haspopup","listbox",3,"disabled","click","input","focus","blur",4,"ngIf"],["class","p-dropdown-clear-icon pi pi-times",3,"click",4,"ngIf"],["role","button","aria-haspopup","listbox",1,"p-dropdown-trigger"],[1,"p-dropdown-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],
[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["type","text","aria-haspopup","listbox",1,"p-dropdown-label","p-inputtext",3,"disabled","click","input","focus","blur"],["editableInput",""],[1,"p-dropdown-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","click"],[4,"ngTemplateOutlet"],["class","p-dropdown-header",4,"ngIf"],[1,"p-dropdown-items-wrapper"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["itemslist",""],["class","p-dropdown-empty-message",4,"ngIf"],[1,"p-dropdown-header"],[1,"p-dropdown-filter-container",3,"click"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","keydown.enter","keydown","input"],["filter",""],[1,"p-dropdown-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-dropdown-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],[3,"option","selected","label","disabled","template","onClick"],[3,"ngStyle","itemSize","scrolledInde
xChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(e,i){1&e&&(h(0,"div",0,1),M("click",function(s){return i.onMouseclick(s)}),h(2,"div",2),h(3,"input",3,4),M("focus",function(s){return i.onInputFocus(s)})("blur",function(s){return i.onInputBlur(s)})("keydown",function(s){return i.onKeydown(s,!0)}),p(),p(),v(5,P3,3,13,"span",5),v(6,L3,2,4,"span",6),v(7,N3,2,4,"input",7),v(8,V3,1,0,"i",8),h(9,"div",9),I(10,"span",10),p(),v(11,uB,12,23,"div",11),p()),2&e&&(ge(i.styleClass),m("ngClass",Si(19,dB,i.disabled,i.overlayVisible,i.focused,i.showClear&&!i.disabled))("ngStyle",i.style),g(3),m("disabled",i.disabled),q("id",i.inputId)("placeholder",i.placeholder)("aria-expanded",i.overlayVisible)("aria-labelledby",i.ariaLabelledBy)("tabindex",i.tabindex)("autofocus",i.autofocus)("aria-activedescendant",i.overlayVisible?"p-highlighted-option":i.label
Id),g(2),m("ngIf",!i.editable&&null!=i.label),g(1),m("ngIf",!i.editable&&null==i.label),g(1),m("ngIf",i.editable),g(1),m("ngIf",null!=i.value&&i.showClear&&!i.disabled),g(1),q("aria-expanded",i.overlayVisible),g(1),m("ngClass",i.dropdownIcon),g(1),m("ngIf",i.overlayVisible))},directives:[Je,lt,Me,Hc,Ot,Mt,pB,Da,f1,y1],styles:[".p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400
;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}\n"],encapsulation:2,data:{animation:[Ir("overlayAnimation",[jt(":enter",[Qe({opacity:0,transform:"scaleY(0.8)"}),Pt("{{showTransitionParams}}")]),jt(":leave",[Pt("{{hideTransitionParams}}",Qe({opacity:0}))])])]},changeDetection:0}),t})(),Cf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Et,qc,$s,hn],Et,qc]}),t})(),fB=(()=>{class t{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&
this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(Vs,8),w(vt))},t.\u0275dir=U({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&M("input",function(s){return i.onInput(s)}),2&e&&si("p-filled",i.filled)}}),t})(),D1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();function gB(t,n){1&t&&H(0)}const mB=function(t,n,e,i){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":n,"p-button-icon-top":e,"p-button-icon-bottom":i}};function _B(t,n){if(1&t&&I(0,"span",4),2&t){const e=f();ge(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),m("ngClass",Si(4,mB,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),q("aria-hidden",!0)}}function yB(t,n){if(1&t&&(h(0,"span",5),E(1),
p()),2&t){const e=f();q("aria-hidden",e.icon&&!e.label),g(1),le(e.label||"\xa0")}}function vB(t,n){if(1&t&&(h(0,"span",4),E(1),p()),2&t){const e=f();ge(e.badgeClass),m("ngClass",e.badgeStyleClass()),g(1),le(e.badge)}}const bB=function(t,n,e,i,r){return{"p-button p-component":!0,"p-button-icon-only":t,"p-button-vertical":n,"p-disabled":e,"p-button-loading":i,"p-button-loading-label-only":r}},wB=["*"];let Df=(()=>{class t{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,S.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),(this.icon||this.loading)&&this.createIconEl();let e=document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",this.label?e.appendChild(document.createTextNode(this.label)):e.innerHTML=" ",this.el.nativeElement.appendChild(e),this.initialized=!0}getStyleClass(){l
et e="p-button p-component";return this.icon&&!this.label&&(e+=" p-button-icon-only"),this.loading&&(e+=" p-disabled p-button-loading",!this.icon&&this.label&&(e+=" p-button-loading-label-only")),e}setStyleClass(){let e=this.getStyleClass();this.el.nativeElement.className=e+" "+this._initialStyleClass}createIconEl(){let e=document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&S.addClass(e,i);let r=this.getIconClass();r&&S.addMultipleClasses(e,r);let s=S.findSingle(this.el.nativeElement,".p-button-label");s?this.el.nativeElement.insertBefore(e,s):this.el.nativeElement.appendChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}setIconClass(){let e=S.findSingle(this.el.nativeElement,".p-button-icon");e?e.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIconEl(
)}removeIconElement(){let e=S.findSingle(this.el.nativeElement,".p-button-icon");this.el.nativeElement.removeChild(e)}get label(){return this._label}set label(e){this._label=e,this.initialized&&(S.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.setIconClass(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.loading||this.icon?this.setIconClass():this.removeIconElement(),this.setStyleClass())}ngOnDestroy(){this.initialized=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Se))},t.\u0275dir=U({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),Ks=(()=>{class t{constructor(){this.type="button",this.iconPos="left",this.loadi
ng=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new R,this.onFocus=new R,this.onBlur=new R}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-button"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:wB,decls:6,vars:16,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[
3,"ngClass"],[1,"p-button-label"]],template:function(e,i){1&e&&(Sn(),h(0,"button",0),M("click",function(s){return i.onClick.emit(s)})("focus",function(s){return i.onFocus.emit(s)})("blur",function(s){return i.onBlur.emit(s)}),ot(1),v(2,gB,1,0,"ng-container",1),v(3,_B,1,9,"span",2),v(4,yB,2,2,"span",3),v(5,vB,2,4,"span",2),p()),2&e&&(ge(i.styleClass),m("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",yr(10,bB,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),q("type",i.type),g(2),m("ngTemplateOutlet",i.contentTemplate),g(1),m("ngIf",!i.contentTemplate&&(i.icon||i.loading)),g(1),m("ngIf",!i.contentTemplate),g(1),m("ngIf",!i.contentTemplate&&i.badge))},directives:[ui,lt,Je,Ot,Me],encapsulation:2,changeDetection:0}),t})(),Sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn]]}),t})();const CB=["input"],S1=function(){return{"p-
inputnumber-button p-inputnumber-button-up":!0}},T1=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function DB(t,n){if(1&t){const e=z();h(0,"span",5),h(1,"button",6),M("mousedown",function(r){return C(e),f().onUpButtonMouseDown(r)})("mouseup",function(){return C(e),f().onUpButtonMouseUp()})("mouseleave",function(){return C(e),f().onUpButtonMouseLeave()})("keydown",function(r){return C(e),f().onUpButtonKeyDown(r)})("keyup",function(){return C(e),f().onUpButtonKeyUp()}),p(),h(2,"button",6),M("mousedown",function(r){return C(e),f().onDownButtonMouseDown(r)})("mouseup",function(){return C(e),f().onDownButtonMouseUp()})("mouseleave",function(){return C(e),f().onDownButtonMouseLeave()})("keydown",function(r){return C(e),f().onDownButtonKeyDown(r)})("keyup",function(){return C(e),f().onDownButtonKeyUp()}),p(),p()}if(2&t){const e=f();g(1),ge(e.incrementButtonClass),m("ngClass",En(10,S1))("icon",e.incrementButtonIcon)("disabled",e.disabled),g(1),ge(e.decrementButtonC
lass),m("ngClass",En(11,T1))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function SB(t,n){if(1&t){const e=z();h(0,"button",6),M("mousedown",function(r){return C(e),f().onUpButtonMouseDown(r)})("mouseup",function(){return C(e),f().onUpButtonMouseUp()})("mouseleave",function(){return C(e),f().onUpButtonMouseLeave()})("keydown",function(r){return C(e),f().onUpButtonKeyDown(r)})("keyup",function(){return C(e),f().onUpButtonKeyUp()}),p()}if(2&t){const e=f();ge(e.incrementButtonClass),m("ngClass",En(5,S1))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function TB(t,n){if(1&t){const e=z();h(0,"button",6),M("mousedown",function(r){return C(e),f().onDownButtonMouseDown(r)})("mouseup",function(){return C(e),f().onDownButtonMouseUp()})("mouseleave",function(){return C(e),f().onDownButtonMouseLeave()})("keydown",function(r){return C(e),f().onDownButtonKeyDown(r)})("keyup",function(){return C(e),f().onDownButtonKeyUp()}),p()}if(2&t){const e=f();ge(e.decrementButtonClass),m("ngC
lass",En(5,T1))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const EB=function(t,n,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":n,"p-inputnumber-buttons-vertical":e}},xB={provide:Ht,useExisting:xe(()=>E1),multi:!0};let E1=(()=>{class t{constructor(e,i){this.el=e,this.cd=i,this.showButtons=!1,this.format=!0,this.buttonLayout="stacked",this.incrementButtonIcon="pi pi-angle-up",this.decrementButtonIcon="pi pi-angle-down",this.readonly=!1,this.step=1,this.allowEmpty=!0,this.mode="decimal",this.useGrouping=!0,this.onInput=new R,this.onFocus=new R,this.onBlur=new R,this.onKeyDown=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.groupChar="",this.prefixChar="",this.suffixChar=""}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDig
its","maxFractionDigits","prefix","suffix"].some(r=>!!e[r])&&this.updateConstructParser()}ngOnInit(){this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(e.map((r,s)=>[r,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=r=>i.get(r)}updateConstructParser(){this.initialized&&this.constructParser()}
escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,Object.assign(Object.assign({},this.getOptions()),{useGrouping:!1}));return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return
new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(r=this.prefix+r),this.suffix&&(r+=this.suffix),r}return e.toString()}return""}parseValue(e){let i=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").
replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(i){if("-"===i)return i;let r=+i;return isNaN(r)?null:r}return null}repeat(e,i,r){if(this.readonly)return;let s=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,r)},s),this.spin(e,r)}spin(e,i){let r=this.step*i,s=this.parseValue(this.input.nativeElement.value)||0,o=this.validateValue(s+r);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,s,o))}onUpButtonMouseDown(e){this.input.nativeElement.focus(),this.repeat(e,null,1),e.preventDefault()}onUpButtonMouseUp(){this.clearTimer()}onUpButtonMouseLeave(){this.clearTimer()}onUpButtonKeyDown(e){(32===e.keyCode||13===e.keyCode)&&this.repeat(e,null,1)}onUpButtonKeyUp(){this.clearTimer()}onDownButtonMouseDown(e){this.input.nativeElement.focus(),this.repeat(e,null,-1),e.preventDefault()}onDownBu
ttonMouseUp(){this.clearTimer()}onDownButtonMouseLeave(){this.clearTimer()}onDownButtonKeyUp(){this.clearTimer()}onDownButtonKeyDown(e){(32===e.keyCode||13===e.keyCode)&&this.repeat(e,null,-1)}onUserInput(e){this.readonly||(this.isSpecialChar&&(e.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(e){if(this.readonly)return;if(this.lastValue=e.target.value,e.shiftKey||e.altKey)return void(this.isSpecialChar=!0);let i=e.target.selectionStart,r=e.target.selectionEnd,s=e.target.value,o=null;switch(e.altKey&&e.preventDefault(),e.which){case 38:this.spin(e,1),e.preventDefault();break;case 40:this.spin(e,-1),e.preventDefault();break;case 37:this.isNumeralChar(s.charAt(i-1))||e.preventDefault();break;case 39:this.isNumeralChar(s.charAt(i))||e.preventDefault();break;case 13:o=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(o),this.input.nativeElement.setAttribute("aria-valuenow",o),this.updateModel(e,o);break
;case 8:if(e.preventDefault(),i===r){const a=s.charAt(i-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,o=s.slice(0,i-2)+s.slice(i-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input.nativeElement.setSelectionRange(i-1,i-1):o=s.slice(0,i-1)+s.slice(i);else if(l>0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)<u?"":"0";o=s.slice(0,i-1)+d+s.slice(i)}else 1===c?(o=s.slice(0,i-1)+"0"+s.slice(i),o=this.parseValue(o)>0?o:""):o=s.slice(0,i-1)+s.slice(i)}this.updateValue(e,o,null,"delete-single")}else o=this.deleteRange(s,i,r),this.updateValue(e,o,null,"delete-range");break;case 46:if(e.preventDefault(),i===r){const a=s.charAt(i),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex
=0,o=s.slice(0,i)+s.slice(i+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input.nativeElement.setSelectionRange(i+1,i+1):o=s.slice(0,i)+s.slice(i+1);else if(l>0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)<u?"":"0";o=s.slice(0,i)+d+s.slice(i+1)}else 1===c?(o=s.slice(0,i)+"0"+s.slice(i+1),o=this.parseValue(o)>0?o:""):o=s.slice(0,i)+s.slice(i+1)}this.updateValue(e,o,null,"delete-back-single")}else o=this.deleteRange(s,i,r),this.updateValue(e,o,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let i=e.which||e.keyCode,r=String.fromCharCode(i);const s=this.isDecimalSign(r),o=this.isMinusSign(r);(48<=i&&i<=57||o||s)&&this.insert(e,r,{isDecimalSign:s,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let i=(e.clipboardData||window.clipboardData).getData("Text");if(i){let r=this.parseValue(i);null!=r&&this.insert(e,r.toString())}}}allowMinusSign(){return null==this.m
in||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const i=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const o=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:r,suffixCharIndex:s,currencyCharIndex:o}}insert(e,i,r={isDecimalSign:!1,isMinusSign:!1}){const s=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let
o=this.input.nativeElement.selectionStart,a=this.input.nativeElement.selectionEnd,l=this.input.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:d,currencyCharIndex:_}=this.getCharIndexes(l);let y;if(r.isMinusSign)0===o&&(y=l,(-1===u||0!==a)&&(y=this.insertText(l,i,0,a)),this.updateValue(e,y,i,"insert"));else if(r.isDecimalSign)c>0&&o===c?this.updateValue(e,l,i,"insert"):(c>o&&c<a||-1===c&&this.maxFractionDigits)&&(y=this.insertText(l,i,o,a),this.updateValue(e,y,i,"insert"));else{const b=this.numberFormat.resolvedOptions().maximumFractionDigits,D=o!==a?"range-insert":"insert";if(c>0&&o>c){if(o+i.length-(c+1)<=b){const T=_>=o?_-1:d>=o?d:l.length;y=l.slice(0,o)+i+l.slice(o+i.length,T)+l.slice(T),this.updateValue(e,y,i,D)}}else y=this.insertText(l,i,o,a),this.updateValue(e,y,i,D)}}insertText(e,i,r,s){if(2===("."===i?i:i.split(".")).length){const a=e.slice(r,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,r)+this.formatValue(i)+
e.slice(s):e||this.formatValue(i)}return s-r===e.length?this.formatValue(i):0===r?i+e.slice(s):s===e.length?e.slice(0,r)+i:e.slice(0,r)+i+e.slice(s)}deleteRange(e,i,r){let s;return s=r-i===e.length?"":0===i?e.slice(r):r===e.length?e.slice(0,i):e.slice(0,i)+e.slice(r),s}initCursor(){let e=this.input.nativeElement.selectionStart,i=this.input.nativeElement.value,r=i.length,s=null,o=(this.prefixChar||"").length;i=i.replace(this._prefix,""),e-=o;let a=i.charAt(e);if(this.isNumeralChar(a))return e+o;let l=e-1;for(;l>=0;){if(a=i.charAt(l),this.isNumeralChar(a)){s=l+o;break}l--}if(null!==s)this.input.nativeElement.setSelectionRange(s+1,s+1);else{for(l=e;l<r;){if(a=i.charAt(l),this.isNumeralChar(a)){s=l+o;break}l++}null!==s&&this.input.nativeElement.setSelectionRange(s,s)}return s||0}onInputClick(){this.readonly||this.initCursor()}isNumeralChar(e){return!(1!==e.length||!(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))||(this.resetRegex(),0))}resetR
egex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,i,r,s){let o=this.input.nativeElement.value,a=null;null!=i&&(a=this.parseValue(i),a=a||this.allowEmpty?a:0,this.updateInput(a,r,s,i),this.handleOnInput(e,o,a))}handleOnInput(e,i,r){this.isValueChanged(i,r)&&this.onInput.emit({originalEvent:e,value:r})}isValueChanged(e,i){return null===i&&null!==e||null!=i&&i!==("string"==typeof e?this.parseValue(e):e)}validateValue(e){return"-"===e||null==e?null:null!=this.min&&e<this.min?this.min:null!=this.max&&e>this.max?this.max:e}updateInput(e,i,r,s){i=i||"";let o=this.input.nativeElement.value,a=this.formatValue(e),l=o.length;if(a!==s&&(a=this.concatValues(a,s)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;i
f(this.maxlength&&this.maxlength<a.length)return;this.input.nativeElement.value=a;let d=a.length;if("range-insert"===r){const _=this.parseValue((o||"").slice(0,c)),b=(null!==_?_.toString():"").split("").join(`(${this.groupChar})?`),D=new RegExp(b,"g");D.test(a);const T=i.split("").join(`(${this.groupChar})?`),k=new RegExp(T,"g");k.test(a.slice(D.lastIndex)),u=D.lastIndex+k.lastIndex,this.input.nativeElement.setSelectionRange(u,u)}else if(d===l)"insert"===r||"delete-back-single"===r?this.input.nativeElement.setSelectionRange(u+1,u+1):"delete-single"===r?this.input.nativeElement.setSelectionRange(u-1,u-1):("delete-range"===r||"spin"===r)&&this.input.nativeElement.setSelectionRange(u,u);else if("delete-back-single"===r){let _=o.charAt(u-1),y=o.charAt(u),b=l-d,D=this._group.test(y);D&&1===b?u+=1:!D&&this.isNumeralChar(_)&&(u+=-1*b+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(u,u)}else if("-"===o&&"insert"===r){this.input.nativeElement.setSelectionRange(0,0);cons
t y=this.initCursor()+i.length+1;this.input.nativeElement.setSelectionRange(y,y)}else u+=d-l,this.input.nativeElement.setSelectionRange(u,u)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,i){if(e&&i){let r=i.search(this._decimal);return this._decimal.lastIndex=0,-1!==r?e.split(this._decimal)[0]+i.slice(r):e}return e}getDecimalLength(e){if(e){const i=e.split(this._decimal);if(2===i.length)return i[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1;let i=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(i),this.input.nativeElement.setAttribute("aria-valuenow",i),this.updateModel(e,i),this.onBlur.emit(e)}formattedValue(){return this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,i){this.value!==i&&(this.value=i,this.onModelChange(i)),this.onModelTou
ched()}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get filled(){return null!=this.value&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,i){if(1&e&&He(CB,5),2&e){let r;K(r=Y())&&(i.input=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,i){2&e&&si("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focused)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name
:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown"},features:[be([xB]),gt],decls:6,vars:31,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-button-group",4,"ngIf"],
["type","button","pButton","",3,"ngClass","class","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,i){1&e&&(h(0,"span",0),h(1,"input",1,2),M("input",function(s){return i.onUserInput(s)})("keydown",function(s){return i.onInputKeyDown(s)})("keypress",function(s){return i.onInputKeyPress(s)})("paste",function(s){return i.onPaste(s)})("click",function(){return i.onInputClick()})("focus",function(s){return i.onInputFocus(s)})("blur",function(s){return i.onInputBlur(s)}),p(),v(3,DB,3,12,"span",3),v(4,SB,1,6,"button",4),v(5,TB,1,6,"button",4),p()),2&e&&(ge(i.styleClass),m("ngClass",xs(27,EB,i.showButtons&&"stacked"===i.buttonLayout,i.showButtons&&"horizontal"===i.buttonLayout,i.showButtons&&"vertical"===i.buttonLayout))("ngStyle",i.style),g(1),ge(i.inputStyleClass),m("ngClass","p-inputnumber-i
nput")("ngStyle",i.inputStyle)("value",i.formattedValue())("disabled",i.disabled)("readonly",i.readonly),q("placeholder",i.placeholder)("title",i.title)("id",i.inputId)("size",i.size)("name",i.name)("autocomplete",i.autocomplete)("maxlength",i.maxlength)("tabindex",i.tabindex)("aria-label",i.ariaLabel)("aria-required",i.ariaRequired)("required",i.required)("aria-valuemin",i.min)("aria-valuemax",i.max),g(2),m("ngIf",i.showButtons&&"stacked"===i.buttonLayout),g(1),m("ngIf",i.showButtons&&"stacked"!==i.buttonLayout),g(1),m("ngIf",i.showButtons&&"stacked"!==i.buttonLayout))},directives:[Je,lt,fB,Me,Df],styles:["p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{borde
r-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumbe
r-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),Sf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,D1,Sa]]}),t})();function IB(t,n){1&t&&H(0)}const Tf=function(t){return{$implicit:t}};function kB(t,n){if(1&t&&(h(0,"div",15),v(1,IB,1,0,"ng-container",16),p()),2&t){const e=f(2);g(1),m("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",G(2,Tf,e.paginatorState))}}function MB(t,n){
if(1&t&&(h(0,"span",17),E(1),p()),2&t){const e=f(2);g(1),le(e.currentPageReport)}}const Kc=function(t){return{"p-disabled":t}};function OB(t,n){if(1&t){const e=z();h(0,"button",18),M("click",function(r){return C(e),f(2).changePageToFirst(r)}),I(1,"span",19),p()}if(2&t){const e=f(2);m("disabled",e.isFirstPage()||e.empty())("ngClass",G(2,Kc,e.isFirstPage()||e.empty()))}}const RB=function(t){return{"p-highlight":t}};function AB(t,n){if(1&t){const e=z();h(0,"button",22),M("click",function(r){const o=C(e).$implicit;return f(3).onPageLinkClick(r,o-1)}),E(1),p()}if(2&t){const e=n.$implicit,i=f(3);m("ngClass",G(2,RB,e-1==i.getPage())),g(1),le(e)}}function PB(t,n){if(1&t&&(h(0,"span",20),v(1,AB,2,4,"button",21),p()),2&t){const e=f(2);g(1),m("ngForOf",e.pageLinks)}}function FB(t,n){1&t&&E(0),2&t&&le(f(3).currentPageReport)}function LB(t,n){if(1&t){const e=z();h(0,"p-dropdown",23),M("onChange",function(r){return C(e),f(2).onPageDropdownChange(r)}),v(1,FB,1,1,"ng-template",24),p()}if(2&t){const
e=f(2);m("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function NB(t,n){if(1&t){const e=z();h(0,"button",25),M("click",function(r){return C(e),f(2).changePageToLast(r)}),I(1,"span",26),p()}if(2&t){const e=f(2);m("disabled",e.isLastPage()||e.empty())("ngClass",G(2,Kc,e.isLastPage()||e.empty()))}}function VB(t,n){if(1&t){const e=z();h(0,"p-inputNumber",27),M("ngModelChange",function(r){return C(e),f(2).changePage(r-1)}),p()}if(2&t){const e=f(2);m("ngModel",e.currentPage())("disabled",e.empty())}}function BB(t,n){1&t&&H(0)}function HB(t,n){if(1&t&&v(0,BB,1,0,"ng-container",16),2&t){const e=n.$implicit;m("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",G(2,Tf,e))}}function zB(t,n){1&t&&(de(0),v(1,HB,1,4,"ng-template",30),he())}function jB(t,n){if(1&t){const e=z();h(0,"p-dropdown",28),M("ngModelChange",function(r){return C(e),f(2).rows=r})("onChange",function(r){return C(e
),f(2).onRppChange(r)}),v(1,zB,2,0,"ng-container",29),p()}if(2&t){const e=f(2);m("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),g(1),m("ngIf",e.dropdownItemTemplate)}}function UB(t,n){1&t&&H(0)}function $B(t,n){if(1&t&&(h(0,"div",31),v(1,UB,1,0,"ng-container",16),p()),2&t){const e=f(2);g(1),m("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",G(2,Tf,e.paginatorState))}}function GB(t,n){if(1&t){const e=z();h(0,"div",1),v(1,kB,2,4,"div",2),v(2,MB,2,1,"span",3),v(3,OB,2,4,"button",4),h(4,"button",5),M("click",function(r){return C(e),f().changePageToPrev(r)}),I(5,"span",6),p(),v(6,PB,2,1,"span",7),v(7,LB,2,5,"p-dropdown",8),h(8,"button",9),M("click",function(r){return C(e),f().changePageToNext(r)}),I(9,"span",10),p(),v(10,NB,2,4,"button",11),v(11,VB,1,2,"p-inputNumber",12),v(12,jB,2,6,"p-dropdown",13),v(13,$B,2,4,"div",14),p()}if(2&t){const e=f();ge(e.styleClass),m("ngStyle",e.style)(
"ngClass","p-paginator p-component"),g(1),m("ngIf",e.templateLeft),g(1),m("ngIf",e.showCurrentPageReport),g(1),m("ngIf",e.showFirstLastIcon),g(1),m("disabled",e.isFirstPage()||e.empty())("ngClass",G(17,Kc,e.isFirstPage()||e.empty())),g(2),m("ngIf",e.showPageLinks),g(1),m("ngIf",e.showJumpToPageDropdown),g(1),m("disabled",e.isLastPage()||e.empty())("ngClass",G(19,Kc,e.isLastPage()||e.empty())),g(2),m("ngIf",e.showFirstLastIcon),g(1),m("ngIf",e.showJumpToPageInput),g(1),m("ngIf",e.rowsPerPageOptions),g(1),m("ngIf",e.templateRight)}}let x1=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new R,this.alwaysShow=!0,this.dropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.totalRecords=0,this.rows=0,this.showPageLinks=!0,this._first=0,this._page=0}ngOnInit(){this.updatePaginatorState()}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.up
dateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}get first(){return this._first}set first(e){this._first=e}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(e),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),i=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.getPage()-i/2)),s=Math.min(e-1,r+i-1);return r=Math.max(0,r-(this.pageLinkSize-(s-r+1))),[r,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculateP
ageLinkBoundaries(),r=e[1];for(let s=e[0];s<=r;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s<this.getPageCount();s++)this.pageItems.push({label:String(s+1),value:s})}}changePage(e){var i=this.getPageCount();if(e>=0&&e<i){this._first=this.rows*e;var r={page:e,first:this.first,rows:this.rows,pageCount:i};this.updatePageLinks(),this.onPageChange.emit(r),this.updatePaginatorState()}}updateFirst(){const e=this.getPage();e>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,i){this.changePage(i),e.preventDe
fault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}}return t.\u0275fac=function(e){return new(e||t)(w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLe
ft:"templateLeft",templateRight:"templateRight",dropdownAppendTo:"dropdownAppendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[gt],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p
-paginator-icon","pi","pi-angle-left"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-right"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi",
"pi-angle-double-left"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-right"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(e,i){1&e&&v(0,GB,14,21,"div",0),2&e&&m("ngIf",!!i.alwaysShow||i.pageLinks&&i.pageLinks.length>1)},directives:[Me,lt,Je,ui,Ot,Mt,C1,rc,Vs
,Ct,E1],styles:[".p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),I1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Cf,Sf,gc,Et,hn],Cf,Sf,gc,Et]}),t})();function WB(t,n){if(1&t&&(h(0,"div",10),h(1,"div",11),I(2,"i"),p(),p()),2&t){const e=f();g(2),ge("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function qB(t,n){1&t&&H(0)}function KB(t,n){if(1&t&&(h(0,"div",12),ot(1),v(2,qB,1,0,"ng-container",13),p()),2&t){const e=f()
;g(2),m("ngTemplateOutlet",e.headerTemplate)}}function YB(t,n){if(1&t){const e=z();h(0,"p-paginator",14),M("onPageChange",function(r){return C(e),f().paginate(r)}),p()}if(2&t){const e=f();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)}}function QB(t,n){1&t&&H(0)}const ZB=function(t,n){return{$implicit:t,rowIndex:n}};function JB(t,n){if(1&t&&v(0,QB,1,0,"ng-container",15),2&t){const e=n.$implicit,i
=n.index;m("ngTemplateOutlet",f().itemTemplate)("ngTemplateOutletContext",it(2,ZB,e,i))}}function XB(t,n){if(1&t&&(de(0),E(1),he()),2&t){const e=f(2);g(1),De(" ",e.emptyMessageLabel," ")}}function eH(t,n){1&t&&H(0,null,19)}function tH(t,n){if(1&t&&(h(0,"div",16),h(1,"div",17),v(2,XB,2,1,"ng-container",18),v(3,eH,2,0,"ng-container",13),p(),p()),2&t){const e=f();g(2),m("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),g(1),m("ngTemplateOutlet",e.emptyMessageTemplate)}}function nH(t,n){if(1&t){const e=z();h(0,"p-paginator",20),M("onPageChange",function(r){return C(e),f().paginate(r)}),p()}if(2&t){const e=f();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReport
Template",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)}}function iH(t,n){1&t&&H(0)}function rH(t,n){if(1&t&&(h(0,"div",21),ot(1,1),v(2,iH,1,0,"ng-container",13),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.footerTemplate)}}const sH=[[["p-header"]],[["p-footer"]]],oH=function(t,n){return{"p-dataview p-component":!0,"p-dataview-list":t,"p-dataview-grid":n}},aH=["p-header","p-footer"];let lH=(()=>{class t{constructor(e,i,r,s){this.el=e,this.cd=i,this.filterService=r,this.config=s,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new R,this.trackBy=(o,a)=>a,
this.loadingIcon="pi pi-spinner",this.first=0,this.onPage=new R,this.onSort=new R,this.onChangeLayout=new R,this._layout="list"}get layout(){return this._layout}set layout(e){this._layout=e,this.initialized&&this.changeLayout(e)}ngOnInit(){this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}ngOnChanges(e){e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"listItem":this.listItemTemplate=e.template;break;case"gridItem":this.gridItemTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdown
ItemTemplate=e.template;break;case"empty":this.emptyMessageTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}}),this.updateItemTemplate()}updateItemTemplate(){switch(this.layout){case"list":this.itemTemplate=this.listItemTemplate;break;case"grid":this.itemTemplate=this.gridItemTemplate}}changeLayout(e){this._layout=e,this.onChangeLayout.emit({layout:this.layout}),this.updateItemTemplate(),this.cd.markForCheck()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,i)=>{let r=V.resolveFieldData(e,this.sortField),s=V.resolveFieldData(i,this.sortField),o=null;return o=null==r&&null!=s?-1:null!=r&&nul
l==s?1:null==r&&null==s?0:"string"==typeof r&&"string"==typeof s?r.localeCompare(s):r<s?-1:r>s?1:0,this.sortOrder*o}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Qt.EMPTY_MESSAGE)}filter(e,i="contains"){if(this.filterValue=e,this.value&&this.value.length){let r=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,r,e,i,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}ha
sFilter(){return this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(vt),w(Nc),w(Pi))},t.\u0275cmp=Q({type:t,selectors:[["p-dataView"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Bc,5),Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.header=s.first),K(s=Y())&&(i.footer=s.first),K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{paginator:"paginator",rows:"rows",totalRecords:"totalRecords",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",alwaysShowPaginator:"alwaysShowPaginator",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPag
eLinks:"showPageLinks",lazy:"lazy",emptyMessage:"emptyMessage",style:"style",styleClass:"styleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:"loading",loadingIcon:"loadingIcon",first:"first",sortField:"sortField",sortOrder:"sortOrder",value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[gt],ngContentSelectors:aH,decls:11,vars:19,consts:[[3,"ngClass","ngStyle"],["class","p-dataview-loading",4,"ngIf"],["class","p-dataview-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange",4,"ngIf"],[1,"p-dataview-content"],[1,"p-grid","p-nogutter","grid","grid-nogutter"],["ngFor","",3,
"ngForOf","ngForTrackBy"],["class","p-col col",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange",4,"ngIf"],["class","p-dataview-footer",4,"ngIf"],[1,"p-dataview-loading"],[1,"p-dataview-loading-overlay","p-component-overlay"],[1,"p-dataview-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-col","col"],[1,"p-dataview-empt
ymessage"],[4,"ngIf","ngIfElse"],["emptyFilter",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange"],[1,"p-dataview-footer"]],template:function(e,i){1&e&&(Sn(sH),h(0,"div",0),v(1,WB,3,2,"div",1),v(2,KB,3,1,"div",2),v(3,YB,1,16,"p-paginator",3),h(4,"div",4),h(5,"div",5),v(6,JB,1,5,"ng-template",6),Ti(7,"slice"),v(8,tH,4,3,"div",7),p(),p(),v(9,nH,1,16,"p-paginator",8),v(10,rH,3,1,"div",9),p()),2&e&&(ge(i.styleClass),m("ngClass",it(16,oH,"list"===i.layout,"grid"===i.layout))("ngStyle",i.style),g(1),m("ngIf",i.loading),g(1),m("ngIf",i.header||i.headerTemplate),g(1),m("ngIf",i.paginator&&("top"===i.paginatorPosition||"both"==i.paginatorPosition)),g(3),m("ngForOf",i.paginator?function Yv(t,n,e,i,r){con
st s=t+20,o=O(),a=jr(o,s);return Wo(o,s)?Wv(o,$t(),n,a.transform,e,i,r,a):a.transform(e,i,r)}(7,12,i.filteredValue||i.value,i.lazy?0:i.first,(i.lazy?0:i.first)+i.rows):i.filteredValue||i.value)("ngForTrackBy",i.trackBy),g(2),m("ngIf",i.isEmpty()),g(1),m("ngIf",i.paginator&&("bottom"===i.paginatorPosition||"both"==i.paginatorPosition)),g(1),m("ngIf",i.footer||i.footerTemplate))},directives:[Je,lt,Me,Mt,Ot,x1],pipes:[dw],styles:[".p-dataview{position:relative}.p-dataview .p-dataview-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}\n"],encapsulation:2,changeDetection:0}),t})(),cH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Et,I1],Et]}),t})(),uH=(()=>{class t{constructor(){}ngOnInit(){}toLocalShortTime(e){let s,i=new Date(e),r="AM",o=i.getMinutes().toString().padStart(2,"0"),a=i.getHours();return s=0==a?12:a>12?a-12:a,a>=12&&(r="PM"),s+":"+o+" "+r}segmentToStartTime
(e){let i=new Date(this.startTime);const r=18e5*e,s=new Date(i.getTime()+r);return this.toLocalShortTime(s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-guide-timebar"]],inputs:{startTime:"startTime"},decls:11,vars:4,consts:[[1,"flex","flex-row","timebarbox"],[1,"col-1","datebox"],[1,"col","segmentbox"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"div",1),E(2,"Today"),p(),h(3,"div",2),E(4),p(),h(5,"div",2),E(6),p(),h(7,"div",2),E(8),p(),h(9,"div",2),E(10),p(),p()),2&e&&(g(4),le(i.segmentToStartTime(0)),g(2),le(i.segmentToStartTime(1)),g(2),le(i.segmentToStartTime(2)),g(2),le(i.segmentToStartTime(3)))},styles:[".timebarbox[_ngcontent-%COMP%]{display:block;grid-template-columns:90px auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{float:left;padding:5px 8px 4px 7px;color:#fdf6e3;background:linear-gradient(to bottom,#777777 1%,#555555 20%,#222222 99%);border-radius:10px 10px 0 0/10px 10px 0px 0px}.segmentsbox[_ngcontent-
%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100% - 91px)}.segmentbox[_ngcontent-%COMP%]{float:left;width:25%;padding:5px 8px 4px 7px;color:#fdf6e3;height:auto;background:linear-gradient(to bottom,#777777 1%,#555555 20%,#222222 99%);border-radius:10px 10px 0 0/10px 10px 0px 0px}"]}),t})(),dH=(()=>{class t{constructor(){}ngOnInit(){}IconUrl(e){return null==e||0==e.length?"/images/tv/channel_icon.svg":e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel"},decls:6,vars:3,consts:[[1,"flex","flex-column"],[1,"channelIcon"],["height","57",3,"alt","src"],[1,"channelText"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"div",1),I(2,"img",2),p(),h(3,"div",3),h(4,"span"),E(5),p(),p(),p()),2&e&&(g(2),un("alt","",i.channel.IconURL," Icon"),Cl("src",i.IconUrl(i.channel.IconURL),yi),g(3),le(i.channel.CallSign))},styles:[".channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin
-left:4px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 3px}"]}),t})();function hH(t,n){if(1&t&&(h(0,"div"),h(1,"div",5),E(2),p(),p()),2&t){const e=f();g(2),le(e.program.SubTitle)}}let pH=(()=>{class t{constructor(){}ngOnInit(){}durationToWidth(){let e=new Date(this.program.StartTime),i=new Date(this.program.EndTime),r=new Date(this.guideStartTime),s=new Date(this.guideEndTime),l=e<r?r:e,c=i>s?s:i,u=s.getTime()-r.getTime();return(c.getTime()-l.getTime())/u*100}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",guideStartTime:"guideStartTime",guideEndTime:"guideEndTime"},decls:7,vars:5,consts:[[1,"programBox"],[1,"programTitle"],[1,"programBody"],[4,"ngIf"],[1,"programDescription"],[1,"programSubtitle"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"div",1),
E(2),p(),h(3,"div",2),v(4,hH,3,1,"div",3),h(5,"div",4),E(6),p(),p(),p()),2&e&&(wi("width",i.durationToWidth(),"%"),g(2),le(i.program.Title),g(2),m("ngIf",0!=i.program.SubTitle.length),g(2),le(i.program.Description))},directives:[Me],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:80px;padding:0 0 0 2px;background-color:#586e75;border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-%COMP%]{padding:5px 8px 4px 7px;color:#fdf6e3;width:100%;height:28px;background:linear-gradient(to bottom,#777777 1%,#555555 20%,#222222 99%);border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;z-index:4;position:relative;float:left;font-size:1.1em;white-space:nowrap;font-weight:700;overflow:hidden;text-overflow:ellipsis}.programBody[_ngcontent-%COMP%]{margin:3px 5px 4px;padding:0 0 0 2px;color:#eee8d5;height:45px;z-index:5}.programSubtitle[_ngcontent-%COMP%]{color:#268bd2;position:relative;font-weight:700;margin-right:5px;z-index:1px;line-he
ight:15px}.programDescription[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]}),t})(),fH=(()=>{class t{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["p-progressSpinner"]],hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration"},decls:3,vars:6,consts:[["role","alert","aria-busy","true",1,"p-progress-spinner",3,"ngStyle","ngClass"],["viewBox","25 25 50 50",1,"p-progress-spinner-svg"],["cx","50","cy","50","r","20","stroke-miterlimit","10",1,"p-progress-spinner-circle"]],template:function(e,i){1&e&&(h(0,"div",0),function $g(){ne.lFrame.currentNamespace=kg}(),h(1,"svg",1),I(2,"circle",2),p(),p()),2&e&&(m("ngStyle",i.style)("ngClass",i.styleClass),g(1),wi("animation-duration",i.animationDuration),g(1),q("fill",i.fill)("stroke-width",i.strokeWidth))},directives:[lt
,Je],styles:['.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n'],encapsulation:2,changeDetection
:0}),t})(),gH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();function mH(t,n){if(1&t&&(h(0,"div",5),E(1," Time Selector goes here "),p(),I(2,"app-guide-timebar",6)),2&t){const e=f().ngIf;g(2),m("startTime",e.StartTime)}}function _H(t,n){if(1&t&&(h(0,"div"),I(1,"app-guide-programentry",13),p()),2&t){const e=f().$implicit,i=f(2).ngIf;g(1),m("program",e)("guideStartTime",i.StartTime)("guideEndTime",i.EndTime)}}function yH(t,n){if(1&t&&(de(0),v(1,_H,2,3,"div",12),he()),2&t){const e=n.$implicit,i=f(2).ngIf,r=f();g(1),m("ngIf",r.inDisplayWindow(e.StartTime,i.EndTime))}}function vH(t,n){if(1&t&&(h(0,"div",7),h(1,"div",8),I(2,"app-guide-channelicon",9),p(),h(3,"div",10),v(4,yH,2,1,"ng-container",11),p(),p()),2&t){const e=n.$implicit;g(2),m("channel",e),g(2),m("ngForOf",e.Programs)}}function bH(t,n){if(1&t&&(h(0,"div"),h(1,"p-dataView",2),v(2,mH,3,1,"ng-template",3),v(3,vH,5,2,"ng-template",4),p(),p()),2&t){const
e=n.ngIf;g(1),m("value",e.Channels)("totalRecords",e.TotalAvailable)}}const wH=function(){return{width:"30px",height:"30px"}};function CH(t,n){1&t&&I(0,"p-progressSpinner"),2&t&&Tn(En(2,wH))}let DH=(()=>{class t{constructor(e){this.guideService=e,this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10}ngOnInit(){this.m_guideData$=this.guideService.GetProgramGuide().pipe(Re(e=>console.log(e)),Re(e=>this.m_channelData=e.ProgramGuide.Channels),Re(e=>this.m_channelTotal=e.ProgramGuide.TotalAvailable))}loadData(e){console.log(e),this.m_guideData$=this.guideService.GetProgramGuide().pipe(Re(i=>console.log(i)),Re(i=>this.m_channelData=i.ProgramGuide.Channels),Re(i=>this.m_channelTotal=i.ProgramGuide.TotalAvailable))}inDisplayWindow(e,i){return new Date(e)<new Date(i)}}return t.\u0275fac=function(e){return new(e||t)(w(yV))},t.\u0275cmp=Q({type:t,selectors:[["app-guide"]],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"value","totalRecords"],["pTemplate","header"],["pTemp
late","listItem"],[1,"col-12","right-align"],[3,"startTime"],[1,"flex","flex-row","col-12"],[1,"col-1"],[3,"channel"],[1,"flex-auto"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"program","guideStartTime","guideEndTime"]],template:function(e,i){if(1&e&&(v(0,bH,4,2,"div",0),Ti(1,"async"),v(2,CH,1,3,"ng-template",null,1,ze)),2&e){const r=fe(3);let s;m("ngIf",null==(s=Ki(1,2,i.m_guideData$))?null:s.ProgramGuide)("ngIfElse",r)}},directives:[Me,lH,Ct,uH,dH,Mt,pH,fH],pipes:[Kl],styles:[".channelRow[_ngcontent-%COMP%]{display:block;grid-template-columns:90px auto;width:100%;height:82px;padding-bottom:2px}"]}),t})(),SH=(()=>{class t{constructor(e){this.httpClient=e}GetBackendStatus(){return this.httpClient.get("/Status/GetBackendStatus")}}return t.\u0275fac=function(e){return new(e||t)(P(Fs))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var pn=(()=>(function(t){t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_Watchin
gLiveTV",t[t.kState_WatchingPreRecorded=2]="kState_WatchingPreRecorded",t[t.kState_WatchingVideo=3]="kState_WatchingVideo",t[t.kState_WatchingDVD=4]="kState_WatchingDVD",t[t.kState_WatchingBD=5]="kState_WatchingBD",t[t.kState_WatchingRecording=6]="kState_WatchingRecording",t[t.kState_RecordingOnly=7]="kState_RecordingOnly",t[t.kState_ChangingState=8]="kState_ChangingState"}(pn||(pn={})),pn))();function TH(t,n){if(1&t&&(de(0),E(1),he()),2&t){const e=f().$implicit;g(1),Ci(" '",e.Recording.Title,"' on ",e.Recording.Channel.CallSign,". This recording is scheduled to end at ",e.Recording.EndTime,". ")}}function EH(t,n){if(1&t&&(h(0,"div"),h(1,"ul"),h(2,"li"),E(3),p(),p(),p()),2&t){const e=n.$implicit;g(3),ws("Card: ",e.CardId,", Input: ",e.Id," is ",e.InputName,", displayname: ",e.DisplayName," ")}}function xH(t,n){if(1&t&&(h(0,"div"),h(1,"ul"),h(2,"li"),E(3),v(4,TH,2,3,"ng-container",4),p(),v(5,EH,4,4,"div",3),p(),p()),2&t){const e=n.$implicit,i=f(2);g(3),Ci(" Encoder ",e.Id," is on hos
t ",e.HostName,", State: ",i.EncoderStatusText(e.State)," "),g(1),m("ngIf",7==e.State),g(1),m("ngForOf",e.Inputs)}}function IH(t,n){if(1&t&&(h(0,"div"),v(1,xH,6,5,"div",3),p()),2&t){const e=f();g(1),m("ngForOf",e.encoders)}}function kH(t,n){1&t&&(h(0,"div"),E(1,"Backend has no encoders"),p())}let MH=(()=>{class t{constructor(){}ngOnInit(){}EncoderStatusText(e){switch(e){case pn.kState_Error:return"Error";case pn.kState_None:return"Idle";case pn.kState_WatchingLiveTV:return"Watching Live TV";case pn.kState_WatchingPreRecorded:return"Watching Pre Recorded";case pn.kState_WatchingVideo:return"Watching Video";case pn.kState_WatchingDVD:return"Watching DVD";case pn.kState_WatchingBD:return"Watching BD";case pn.kState_WatchingRecording:return"Watching Recording";case pn.kState_RecordingOnly:return"Recording";case pn.kState_ChangingState:return"Changing State";default:return"unknown"}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-encoders"]
],inputs:{encoders:"encoders"},decls:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncoders",""],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"h2"),E(2,"Encoder Status"),p(),v(3,IH,2,1,"div",1),p(),v(4,kH,2,0,"ng-template",null,2,ze)),2&e){const r=fe(5);g(3),m("ngIf",0!=(null==i.encoders?null:i.encoders.length))("ngIfElse",r)}},directives:[Me,Mt],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function OH(t,n){if(1&t&&(h(0,"li",4),E(1),p()),2&t){const e=n.$implicit;Cl("pTooltip",e.Description),g(1),ws(" ",e.StartTime," - ",e.Recording.EncoderId," - ",e.Channel.CallSign," - ",e.Title," ")}}function RH(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),h(3,"ul"),v(4,OH,2,5,"li",3),p(),p()),2&t){const e=f();g(2),De("The n
ext ",null==e.scheduled?null:e.scheduled.length," show(s) that are scheduled for recording."),g(2),m("ngForOf",e.scheduled)}}function AH(t,n){1&t&&(h(0,"p"),E(1,"Nothing scheduled to record"),p())}let PH=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["pTooltipPosition","below",3,"pTooltip",4,"ngFor","ngForOf"],["pTooltipPosition","below",3,"pTooltip"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"h2"),E(2,"Schedule"),p(),v(3,RH,5,2,"div",1),p(),v(4,AH,2,0,"ng-template",null,2,ze)),2&e){const r=fe(5);g(3),m("ngIf",0!=(null==i.scheduled?null:i.scheduled.length))("ngIfElse",r)}},directives:[Me,Mt,Hc],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #0
00000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function FH(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.$implicit,i=f(2);g(2),ws("",e.StatusTime," - ",e.Program.Title," - ",i.JobTypeText(e.Type)," - Status: ",i.JobStatusText(e.Status)," ")}}function LH(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2,"Jobs currently in Queue or recently ended:"),p(),h(3,"ul"),v(4,FH,3,4,"div",3),p(),p()),2&t){const e=f();g(4),m("ngForOf",e.jobqueue)}}function NH(t,n){1&t&&(h(0,"p"),E(1,"Job queue is currently empty"),p())}let VH=(()=>{class t{constructor(){}ngOnInit(){}JobStatusText(e){switch(e){case 1:return"Queued";case 2:return"Pending";case 3:return"Starting";case 4:return"Running";case 5:return"Stopping";case 6:return"Paused";case 7:return"Retry";case 8:return"Erroring";case 9:return"Aborting";case 256:return"Done (Invalid Status!)";case 272:return"Finished";case 288:return"Aborted";case 304:return"Errored";case 320:return"Cancelled";
default:return"Unknown"}}JobTypeText(e){switch(e){case 1:return"Transcode";case 2:return"Commflag";case 4:return"Lookup Metadata";case 8:return"Preview Generation";default:return"Unknown"}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"h2"),E(2,"Job queue"),p(),v(3,LH,5,1,"div",1),p(),v(4,NH,2,0,"ng-template",null,2,ze)),2&e){const r=fe(5);g(3),m("ngIf",0!=(null==i.jobqueue?null:i.jobqueue.length))("ngIfElse",r)}},directives:[Me,Mt],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function BH(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(
2,"Disk Usage Summary:"),p(),h(3,"ul"),h(4,"li"),E(5,"Total Disk Space:"),p(),h(6,"ul"),h(7,"li"),E(8),p(),h(9,"li"),E(10),p(),h(11,"li"),E(12),p(),h(13,"li"),E(14),p(),h(15,"ul"),h(16,"li"),E(17),p(),h(18,"li"),E(19),p(),h(20,"li"),E(21),p(),p(),p(),p(),p()),2&t){const e=n.ngIf;g(8),De("Total Space: ",e.Total,""),g(2),De("Space Used: ",e.Used,""),g(2),De("Space Free: ",e.Free,""),g(2),De("Space Available after Auto-expire: ",e.Free+e.Expirable,""),g(3),De("Space Used by LiveTV: ",e.LiveTV,""),g(2),De("Space Used by Deleted Recordings: ",e.Deleted,""),g(2),De("Space Used by Auto-expirable Recordings: ",e.Expirable,"")}}function HH(t,n){1&t&&H(0)}function zH(t,n){if(1&t&&(h(0,"div"),v(1,HH,1,0,"ng-container",6),p()),2&t){const e=n.$implicit;f(2);const i=fe(9);g(1),m("ngTemplateOutlet",i)("ngTemplateOutletContext",e)}}function jH(t,n){if(1&t&&(h(0,"div"),h(1,"div"),h(2,"p"),E(3,"This machine's load average"),p(),h(4,"ul"),h(5,"li"),E(6),p(),h(7,"li"),E(8),p(),h(9,"li"),E(10),p(),p(),p
(),v(11,BH,22,7,"div",1),h(12,"div"),h(13,"p"),E(14,"Disk Usage Details:"),p(),v(15,zH,2,2,"div",5),p(),p()),2&t){const e=f(),i=fe(7);g(6),De("1 Minute: ",e.machineinfo.LoadAvg1,""),g(2),De("5 Minutes: ",e.machineinfo.LoadAvg2,""),g(2),De("15 Minutes: ",e.machineinfo.LoadAvg3,""),g(1),m("ngIf",e.getStorageGroupTotal(e.machineinfo.StorageGroups))("ngIfElse",i),g(4),m("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups))}}function UH(t,n){1&t&&(h(0,"p"),E(1,"No Machine Info available"),p())}function $H(t,n){1&t&&(h(0,"p"),E(1,"No Disk Info available"),p())}function GH(t,n){if(1&t&&(h(0,"ul"),h(1,"li"),E(2),p(),h(3,"ul"),h(4,"li"),E(5),p(),h(6,"li"),E(7),p(),h(8,"li"),E(9),p(),h(10,"li"),E(11),p(),p(),p()),2&t){const e=n.Id,i=n.Directory,r=n.Total,s=n.Used,o=n.Free;g(2),De("MythTV Drive #",e,""),g(3),De("Directories: ",i,""),g(2),De("Total Space: ",r,""),g(2),De("Space Used: ",s,""),g(2),De("Space Free: ",o,"")}}let WH=(()=>{class t{constructor(){}ngOnInit(){}getStorageGroup
Total(e){return e.filter(i=>"total"==i.Id)[0]}getStorageGroupDetails(e){return e.filter(i=>"total"!=i.Id)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"machineinfo"},decls:10,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"h2"),E(2,"Machine Info"),p(),v(3,jH,16,6,"div",1),p(),v(4,UH,2,0,"ng-template",null,2,ze),v(6,$H,2,0,"ng-template",null,3,ze),v(8,GH,12,5,"ng-template",null,4,ze)),2&e){const r=fe(5);g(3),m("ngIf",i.machineinfo)("ngIfElse",r)}},directives:[Me,Mt,Ot],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;backgr
ound-color:#fff}"]}),t})();function qH(t,n){if(1&t&&(h(0,"div"),h(1,"li"),E(2),p(),p()),2&t){const e=n.$implicit;g(2),Ci("Backend: ",e.Name," is a ",e.Type," on IP ",e.IP," ")}}function KH(t,n){if(1&t&&(h(0,"div"),h(1,"ul"),v(2,qH,3,3,"div",3),p(),p()),2&t){const e=f();g(2),m("ngForOf",e.backends)}}function YH(t,n){1&t&&(h(0,"p"),E(1,"No Backends"),p())}let QH=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"p"),E(2,"Backends:"),p(),v(3,KH,3,1,"div",1),p(),v(4,YH,2,0,"ng-template",null,2,ze)),2&e){const r=fe(5);g(3),m("ngIf",0!=(null==i.backends?null:i.backends.length))("ngIfElse",r)}},directives:[Me,Mt],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px so
lid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function ZH(t,n){if(1&t&&(h(0,"div"),h(1,"li"),E(2),p(),p()),2&t){const e=n.$implicit;g(2),ws("Frontend: ",e.Name,", IP-Port: ",e.IP,":",e.Port,", Online: ",e.OnLine," ")}}function JH(t,n){if(1&t&&(h(0,"div"),h(1,"ul"),v(2,ZH,3,4,"div",3),p(),p()),2&t){const e=f();g(2),m("ngForOf",e.frontends)}}function XH(t,n){1&t&&(h(0,"p"),E(1,"No Frontends"),p())}let e4=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends"},decls:6,vars:2,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(h(0,"div",0),h(1,"p"),E(2,"Frontends:"),p(),v(3,JH,3,1,"div",1),p(),v(4,XH,2,0,"ng-template",null,2,ze)),2&e){const r=fe(5);g(3),m("ngIf",0!=(null==i.f
rontends?null:i.frontends.length))("ngIfElse",r)}},directives:[Me,Mt],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function t4(t,n){if(1&t&&(h(0,"div"),I(1,"app-status-encoders",2),I(2,"app-status-scheduled",3),I(3,"app-status-jobqueue",4),I(4,"app-status-machineinfo",5),I(5,"app-status-backends",6),I(6,"app-status-frontends",7),p()),2&t){const e=n.ngIf;g(1),m("encoders",e.Encoders),g(1),m("scheduled",e.Scheduled),g(1),m("jobqueue",e.JobQueue),g(1),m("machineinfo",e.MachineInfo),g(1),m("backends",e.Backends),g(1),m("frontends",e.Frontends)}}function n4(t,n){1&t&&(h(0,"div"),E(1,"Loading..."),p())}let r4=(()=>{class t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus().pipe(Re(e=>console.log("Fetched BackendStat
us as of "+e.BackendStatus.AsOf)),Re(e=>console.log(e)))}}return t.\u0275fac=function(e){return new(e||t)(w(SH))},t.\u0275cmp=Q({type:t,selectors:[["app-status"]],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"]],template:function(e,i){if(1&e&&(v(0,t4,7,6,"div",0),Ti(1,"async"),v(2,n4,2,0,"ng-template",null,1,ze)),2&e){const r=fe(3);let s;m("ngIf",null==(s=Ki(1,2,i.m_status$))?null:s.BackendStatus)("ngIfElse",r)}},directives:[Me,MH,PH,VH,WH,QH,e4],pipes:[Kl],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid #000000;border-right:1px solid #000000;border-bottom:1px solid #000000;border-left:10px solid #000000;padding:10px;border-radius:8px 0 0 8px;margin:20px;color:#000;background-color:#fff}"]}),t})();function s4(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.ngIf;g(2),De("Welcome to MythTV Backend running on host ",e,"")}}function o4(t,n){
if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.ngIf;g(2),Ci("It is currently ",e.CurrentDateTime," in timezone ",e.TimeZoneID,", UTC offset ",e.UTCOffset," hours")}}function a4(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.ngIf;g(2),Ci("MythTV version is ",e.Version.Version," from branch ",e.Version.Branch," using protocol ",e.Version.Protocol,"")}}function l4(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=n.ngIf;g(2),De('Setting "SecurityPin" is currently set to "',e,'"')}}function c4(t,n){1&t&&I(0,"div")}function u4(t,n){if(1&t&&(h(0,"div"),h(1,"p"),E(2),p(),p()),2&t){const e=f(2);g(2),De("Failed to get connection info: ",e.errorRes.message,"")}}function d4(t,n){1&t&&(h(0,"p"),E(1,"Loading ConnectionInfo..."),p())}function h4(t,n){if(1&t&&(v(0,u4,3,1,"div",0),v(1,d4,2,0,"ng-template",null,2,ze)),2&t){const e=fe(2);m("ngIf",f().errorRes)("ngIfElse",e)}}function p4(t,n){1&t&&(h(0,"p"),E(1,"Loading ..."),p())}const f4=[{path:"",component:_V},
{path:"status",component:r4},{path:"settings",component:q0},{path:"testbed",component:(()=>{class t{constructor(e,i){this.mythService=e,this.configService=i,this.m_hostName="",this.m_securityPin=""}ngOnInit(){this.m_hostname$=this.mythService.GetHostName().pipe(Re(e=>{console.log(e),this.m_hostName=e.String})),this.m_timezone$=this.mythService.GetTimeZone().pipe(Re(e=>console.log(e))),this.m_connectionInfo$=this.mythService.GetConnectionInfo().pipe(Oi(e=>(console.error("error getting connection info",e),this.errorRes=e,hf(e)))),this.m_setting$=this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin"}).pipe(Re(e=>console.log(e))),this.m_databaseStatus$=this.configService.GetDatabaseStatus().pipe(Re(e=>console.log("Database Status: "+e)))}getSecurityPin(){this.m_setting$=this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin"}).pipe(Re(e=>{console.log(e),this.m_securityPin=e.String}))}setSecurityPin(e){this.mythService.PutSetting({HostName:this.m_hostNam
e,Key:"SecurityPin",Value:e}).subscribe(i=>{console.log(i),this.getSecurityPin()})}}return t.\u0275fac=function(e){return new(e||t)(w(pf),w(xr))},t.\u0275cmp=Q({type:t,selectors:[["app-testbed"]],decls:21,vars:20,consts:[[4,"ngIf","ngIfElse"],["loadingOrError",""],["loading",""],[1,"p-2",3,"click"],[3,"click"]],template:function(e,i){if(1&e&&(h(0,"h1"),E(1,"This screen is a testbed area"),p(),I(2,"hr"),v(3,s4,3,1,"div",0),Ti(4,"async"),v(5,o4,3,3,"div",0),Ti(6,"async"),v(7,a4,3,3,"div",0),Ti(8,"async"),v(9,l4,3,1,"div",0),Ti(10,"async"),v(11,c4,1,0,"div",0),Ti(12,"async"),v(13,h4,3,2,"ng-template",null,1,ze),v(15,p4,2,0,"ng-template",null,2,ze),h(17,"p-button",3),M("click",function(){return i.setSecurityPin("1234")}),E(18,"Set PIN to 1234"),p(),h(19,"p-button",4),M("click",function(){return i.setSecurityPin("0000")}),E(20,"Set PIN to 0000"),p()),2&e){const r=fe(14),s=fe(16);let o,a,l,c,u;g(3),m("ngIf",null==(o=Ki(4,10,i.m_hostname$))?null:o.String)("ngIfElse",s),g(2),m("ngIf",null==
(a=Ki(6,12,i.m_timezone$))?null:a.TimeZoneInfo)("ngIfElse",s),g(2),m("ngIf",null==(l=Ki(8,14,i.m_connectionInfo$))?null:l.ConnectionInfo)("ngIfElse",r),g(2),m("ngIf",null==(c=Ki(10,16,i.m_setting$))?null:c.String)("ngIfElse",s),g(2),m("ngIf",null==(u=Ki(12,18,i.m_databaseStatus$))?null:u.DatabaseStatus)("ngIfElse",s)}},directives:[Me,Ks],pipes:[Kl],styles:[""]}),t})()},{path:"guide",component:DH}];let g4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[ir.forRoot(f4)],ir]}),t})();function k1(){return"undefined"!=typeof window&&void 0!==window.document}function Ef(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function sr(t){switch(t.length){case 0:return new Ws;case 1:return t[0];default:return new X0(t)}}function M1(t,n,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,_=d==l,y=_&&c||{};Object.keys(u).forEach(b=>{let D=b,T=u[b];if("offset"!==b)switch(D
=n.normalizePropertyName(D,o),T){case"!":T=r[b];break;case Fi:T=s[b];break;default:T=n.normalizeStyleValue(b,D,T,o)}y[D]=T}),_||a.push(y),c=y,l=d}),o.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${o.join(u)}`)}return a}function xf(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&If(e,"start",t)));break;case"done":t.onDone(()=>i(e&&If(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&If(e,"destroy",t)))}}function If(t,n,e){const i=e.totalTime,s=kf(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(s._data=o),s}function kf(t,n,e,i,r="",s=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function fn(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function O1(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let Mf=(t,n)=>!1,Of=(t,n)=>!1,R1=(t,n,e)=>[];const A1=
Ef();(A1||"undefined"!=typeof Element)&&(Mf=k1()?(t,n)=>{for(;n&&n!==document.documentElement;){if(n===t)return!0;n=n.parentNode||n.host}return!1}:(t,n)=>t.contains(n),Of=(()=>{if(A1||Element.prototype.matches)return(t,n)=>t.matches(n);{const t=Element.prototype,n=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return n?(e,i)=>n.apply(e,[i]):Of}})(),R1=(t,n,e)=>{let i=[];if(e){const r=t.querySelectorAll(n);for(let s=0;s<r.length;s++)i.push(r[s])}else{const r=t.querySelector(n);r&&i.push(r)}return i});let Mr=null,P1=!1;function Rf(t){Mr||(Mr=function _4(){return"undefined"!=typeof document?document.body:null}()||{},P1=!!Mr.style&&"WebkitAppearance"in Mr.style);let n=!0;return Mr.style&&!function m4(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Mr.style,!n&&P1&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Mr.style)),n}const Af=Of,Pf=Mf,Ff=R1;function F1(t){const n={};return Object.keys(t).forEach(e=>{const i=e.replace(
/([a-z])([A-Z])/g,"$1-$2");n[i]=t[e]}),n}let L1=(()=>{class t{validateStyleProperty(e){return Rf(e)}matchesElement(e,i){return Af(e,i)}containsElement(e,i){return Pf(e,i)}query(e,i,r){return Ff(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new Ws(r,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),Lf=(()=>{class t{}return t.NOOP=new L1,t})();const Nf="ng-enter",Yc="ng-leave",Qc="ng-trigger",Zc=".ng-trigger",V1="ng-animating",Vf=".ng-animating";function Or(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Bf(parseFloat(n[1]),n[2])}function Bf(t,n){return"s"===n?1e3*t:t}function Jc(t,n,e){return t.hasOwnProperty("duration")?t:function b4(t,n,e){let r,s=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(`The provided timing value "${t}" is invalid.`),{duration:0,dela
y:0,easing:""};r=Bf(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Bf(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push("Duration values below 0 are not allowed for this animation step."),a=!0),s<0&&(n.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&n.splice(l,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:s,easing:o}}(t,n,e)}function Ys(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function or(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else Ys(t,e);return e}function H1(t,n,e){return e?n+":"+e+";":""}function z1(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=H1(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=H1(0,D4(e),t.style[e]));t.setAttribute("style",n)}function di(t,n,e){t.style&&(Object.keys(n).forEach(i=>{const r=zf(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[r]),t.style[r]=n[i]}),Ef()&&z
1(t))}function Rr(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=zf(e);t.style[i]=""}),Ef()&&z1(t))}function Ta(t){return Array.isArray(t)?1==t.length?t[0]:Q0(t):t}const Hf=new RegExp("{{\\s*(.+?)\\s*}}","g");function j1(t){let n=[];if("string"==typeof t){let e;for(;e=Hf.exec(t);)n.push(e[1]);Hf.lastIndex=0}return n}function Xc(t,n,e){const i=t.toString(),r=i.replace(Hf,(s,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return r==i?t:r}function eu(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const C4=/-+([a-z0-9])/g;function zf(t){return t.replace(C4,(...n)=>n[1].toUpperCase())}function D4(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function U1(t,n){return 0===t||0===n}function $1(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let s=n[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<n.length;r++){let a=n
[r];o.forEach(function(l){a[l]=jf(t,l)})}}return n}function gn(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw new Error(`Unable to resolve animation metadata node #${n.type}`)}}function jf(t,n){return window.getComputedStyle(t)[n]}function S4(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function T4(t,n,e){if(":"==t[0]){const l=function E4(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloa
t(e);default:return n.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${t}" is not supported`),n;const r=i[1],s=i[2],o=i[3];n.push(G1(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&n.push(G1(o,r))}(i,e,n)):e.push(t),e}const nu=new Set(["true","1"]),iu=new Set(["false","0"]);function G1(t,n){const e=nu.has(t)||iu.has(t),i=nu.has(n)||iu.has(n);return(r,s)=>{let o="*"==t||t==r,a="*"==n||n==s;return!o&&e&&"boolean"==typeof r&&(o=r?nu.has(t):iu.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?nu.has(n):iu.has(n)),o&&a}}const x4=new RegExp("s*:selfs*,?","g");function Uf(t,n,e){return new I4(t).build(n,e)}class I4{constructor(n){this._driver=n}build(n,e){const i=new O4(e);return this._resetContextStyleTimingState(i),gn(this,Ta(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collected
Styles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:n.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};if(i.styles.forEach(a=>{if(ru(a)){const l=a;Object.keys(l).forEach(c=>{j1(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size){const a=eu
(s.values());e.errors.push(`state("${n.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=gn(this,Ta(n.animation),e);return{type:1,matchers:S4(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ar(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>gn(this,i,e)),options:Ar(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const s=n.steps.map(o=>{e.currentTime=i;const a=gn(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Ar(n.options)}}visitAnimate(n,e){const i=function A4(t,n){let e=null;if(t.hasOwnProperty("duration"))e=t;else if("number"==typeof t)return $f(Jc(t,n).duration,0,"");const i=t;if(i.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=$f(0,0,"");return s.dynamic=!0,s.strValue=i,s}return e=e||J
c(i,n),$f(e.duration,e.delay,e.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,s=n.styles?n.styles:Qe({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Qe(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==Fi?i.push(o):e.errors.push(`The provided style string value ${o} is not allowed.`):i.push(o)}):i.push(n.styles);let r=!1,s=null;return i.forEach(o=>{if(ru(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTiming
s;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function w4(t,n,e){const i=n.params||{},r=j1(t);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(`Unable to resolve the local animation param ${s} in the given list of values`)})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("key
frames() must be placed inside of a call to animate()"),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=n.steps.map(k=>{const x=this._makeStyleAst(k,e);let A=null!=x.offset?x.offset:function R4(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(ru(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(ru(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(x.styles),F=0;return null!=A&&(s++,F=x.offset=A),l=l||F<0||F>1,a=a||F<c,c=F,o.push(F),x});l&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");const d=n.steps.length;let _=0;s>0&&s<d?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(_=1/(d-1));const y=d-1,b=e.currentTime,D=e.currentAnimateTimings,T=D.duration;return u.forEach((k,x)=>{const A=_>0?x==y?1:_*x:o[x],F=A*T;e.currentTime=b+
D.delay+F,D.duration=F,this._validateStyleAst(k,e),k.offset=A,i.styles.push(k)}),i}visitReference(n,e){return{type:8,animation:gn(this,Ta(n.animation),e),options:Ar(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Ar(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Ar(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[s,o]=function k4(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(x4,"")),t=t.replace(/@\*/g,Zc).replace(/(a)\w+/g,e=>Zc+"-"+e.substr(1)).replace(/:animating/g,Vf),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+s:s,fn(e.collectedStyles,e.currentQuerySelector,{});const a=gn(this,Ta(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:Ar(n.options)}}visitStagger(n,e){e.c
urrentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Jc(n.timings,e.errors,!0);return{type:12,animation:gn(this,Ta(n.animation),e),timings:i,options:null}}}class O4{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ru(t){return!Array.isArray(t)&&"object"==typeof t}function Ar(t){return t?(t=Ys(t)).params&&(t.params=function M4(t){return t?Ys(t):null}(t.params)):t={},t}function $f(t,n,e){return{duration:t,delay:n,easing:e}}function Gf(t,n,e,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class su{constructor(){this._map=new Map}consume(n){let e=this._map.get(n);return e?this._map.delete(n):e=[],e}append(n,e){let
i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const L4=new RegExp(":enter","g"),V4=new RegExp(":leave","g");function Wf(t,n,e,i,r,s={},o={},a,l,c=[]){return(new B4).buildKeyframes(t,n,e,i,r,s,o,a,l,c)}class B4{buildKeyframes(n,e,i,r,s,o,a,l,c,u=[]){c=c||new su;const d=new qf(n,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),gn(this,i,d);const _=d.timelines.filter(y=>y.containsAnimation());if(_.length&&Object.keys(a).length){const y=_[_.length-1];y.allowOnlyTimelineStyles()||y.setStyles([a],null,d.errors,l)}return _.length?_.map(y=>y.buildKeyframes()):[Gf(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.consume(e.element);if(i){const r=e.createSubContext(n.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n
,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Or(i.duration):null,a=null!=i.delay?Or(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(n,e){e.updateOptions(n.options,!0),gn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const s=n.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ou);const o=Or(s.delay);r.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>gn(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){cons
t i=[];let r=e.currentTimeline.currentTime;const s=n.options&&n.options.delay?Or(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);s&&a.delayNextStep(s),gn(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Jc(e.params?Xc(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=n.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardF
rame();const s=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(s):i.setStyles(n.styles,s,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},s=r.delay?Or(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ou);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);s&&d.delayNextS
tep(s),c===e.element&&(l=d.currentTimeline),gn(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,s=n.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;gn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const ou={};class qf{constructor(n,e,i,r,s,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.cu
rrentAnimateTimings=null,this.previousNode=ou,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new au(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Or(i.duration)),null!=i.delay&&(r.delay=Or(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Xc(s[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,s=new qf(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.c
urrentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(n),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(n){return this.previousNode=ou,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},s=new H4(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,s,o){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(L4,"."+this._enterClassName)).replace(V4,"."+this._leaveClassName);let c=this._driver.query(this.e
lement,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class au{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this
.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new au(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,thi
s._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Fi,this._currentKeyframe[e]=Fi}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function z4(t,n){const e={};let i;return t.forEach(r=>{"*"===r?(i=i||Object.keys(n),i.forEach(s=>{e[s]=Fi})):or(r,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Xc(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Fi),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyfr
ame[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=n._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=or(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?n.add(u):d==Fi&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=n.size?eu(n.values()):[],o=e.size?eu(e.values()):[]
;if(i){const a=r[0],l=Ys(a);a.offset=0,l.offset=1,r=[a,l]}return Gf(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class H4 extends au{constructor(n,e,i,r,s,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=or(n[0],!1);l.offset=0,s.push(l);const c=or(n[0],!1);c.offset=K1(a),s.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let _=or(n[d],!1);_.offset=K1((e+_.offset*i)/o),s.push(_)}i=o,e=0,r="",n=s}return Gf(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function K1(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Kf{}class j4 extends Kf{normalizePropertyName(n,e){return zf(n)}normalizeStyleValue(n,e,i,r){let s="
";const o=i.toString().trim();if(U4[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(`Please provide a CSS unit value for ${n}:${i}`)}return o+s}}const U4=(()=>function $4(t){const n={};return t.forEach(e=>n[e]=!0),n}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Y1(t,n,e,i,r,s,o,a,l,c,u,d,_){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:_}}const Yf={};class Q1{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function G4(t,n,e,i,r){retur
n t.some(s=>s(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){const r=this._stateStyles["*"],s=this._stateStyles[n],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(n,e,i,r,s,o,a,l,c,u){const d=[],_=this.ast.options&&this.ast.options.params||Yf,b=this.buildStyles(i,a&&a.params||Yf,d),D=l&&l.params||Yf,T=this.buildStyles(r,D,d),k=new Set,x=new Map,A=new Map,F="void"===r,te={params:Object.assign(Object.assign({},_),D)},Ae=u?[]:Wf(n,e,this.ast.animation,s,o,b,T,te,c,d);let Le=0;if(Ae.forEach(qe=>{Le=Math.max(qe.duration+qe.delay,Le)}),d.length)return Y1(e,this._triggerName,i,r,F,b,T,[],[],x,A,Le,d);Ae.forEach(qe=>{const Dt=qe.element,Zs=fn(x,Dt,{});qe.preStyleProps.forEach(Qn=>Zs[Qn]=!0);const Li=fn(A,Dt,{});qe.postStyleProps.forEach(Qn=>Li[Qn]=!0),Dt!==e&&k.add(Dt)});const Xe=eu(k.values());return Y1(e,this._triggerName,i,r,F,b,T,Ae,Xe,x,A,Le)}}class W4{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},r=Ys(this.d
efaultParams);return Object.keys(n).forEach(s=>{const o=n[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Xc(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class K4{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new W4(r.style,r.options&&r.options.params||{},i)}),Z1(this.states,"true","1"),Z1(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Q1(n,r,this.states))}),this.fallbackTransition=function Y4(t,n,e){return new Q1(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(o=>o.match(n,e,i,r))||null}match
Styles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function Z1(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const Q4=new su;class Z4{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=Uf(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[n]=r}_buildPlayer(n,e,i){const r=n.element,s=M1(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,s,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],s=this._animations[n];let o;const a=new Map;if(s?(o=Wf(this._driver,e,s,Nf,Yc,{},{},i,Q4,r),o.forEach(u=>{const d=fn(a,u.element,{});u.postStyleProps.forEach(_=>d[_]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to
the following errors: ${r.join("\n")}`);a.forEach((u,d)=>{Object.keys(u).forEach(_=>{u[_]=this._driver.computeStyle(d,_,Fi)})});const c=sr(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw new Error(`Unable to find the timeline player referenced by ${n}`);return e}listen(n,e,i,r){const s=kf(e,"","","");return xf(this._getPlayer(n),i,s,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const s=this._getPlayer(n);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s
.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const J1="ng-animate-queued",X1="ng-animate-disabled",eD=".ng-animate-disabled",tz=[],tD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},An="__ng_removed";class Qf{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function oz(t){return null!=t?t:null}(i?n.value:n),i){const s=Ys(n);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Ea="void",Zf=new Qf(Ea);class iz{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,P
n(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function az(t){return"start"==t||"done"==t}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const s=fn(this._elementListeners,n,[]),o={name:e,phase:i,callback:r};s.push(o);const a=fn(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(Pn(n,Qc),Pn(n,Qc+"-"+e),a[e]=Zf),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw new Error(`The provided animation trigger "${n}" has not been registered!`);retu
rn e}trigger(n,e,i,r=!0){const s=this._getTrigger(e),o=new Jf(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Pn(n,Qc),Pn(n,Qc+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new Qf(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Zf),c.value!==Ea&&l.value===c.value){if(!function uz(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!n.hasOwnProperty(s)||t[s]!==n[s])return!1}return!0}(l.params,c.params)){const D=[],T=s.matchStyles(l.value,l.params,D),k=s.matchStyles(c.value,c.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{Rr(n,T),di(n,k)})}return}const _=fn(this._engine.playersByElement,n,[]);_.forEach(D=>{D.namespaceId==this.id&&D.triggerName==e&&D.queued&&D.destroy()});let y=s.matchTransition(l.value,c.value,n,c.params),b=!1;if(!y){if(!r)return;y=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,t
his._queue.push({element:n,triggerName:e,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:b}),b||(Pn(n,J1),o.onStart(()=>{Qs(n,J1)})),o.onDone(()=>{let D=this.players.indexOf(o);D>=0&&this.players.splice(D,1);const T=this._engine.playersByElement.get(n);if(T){let k=T.indexOf(o);k>=0&&T.splice(k,1)}}),this.players.push(o),_.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Zc,!0);i.forEach(r=>{if(r[An])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),thi
s._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const s=this._engine.statesByElement.get(n);if(s){const o=[];if(Object.keys(s).forEach(a=>{if(this._triggers[a]){const l=this.trigger(n,a,Ea,r);l&&o.push(l)}}),o.length)return this._engine.markElementAsRemoved(this.id,n,!0,e),i&&sr(o).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Zf,u=new Qf(Ea),d=new Jf(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.tota
lAnimations){const s=i.players.length?i.playersByQueriedElement.get(n):[];if(s&&s.length)r=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const s=n[An];(!s||s===tD)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Pn(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=kf(s,i.triggerName,i.fromState.value,i.toState.value);l._data=n,xf(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy
(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class rz{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new iz(n,e,this);return this.bodyNode&&this.driver.containsElemen
t(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList.length-1;if(i>=0){let r=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,n),r=!0;break}r||this._namespaceList.splice(0,0,n)}else this._namespaceList.push(n);return this.namespacesByHostElement.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n
]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(n,e,i,r){if(lu(e)){const s=this._fetchNamespace(n);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!lu(e))return;const s=e[An];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Pn(n,X1)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Qs(n,X1))}removeNode(n,e,i,r){if(lu(e)){const s=n?this._fetchNamespace(n):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const o=this.namespacesByHostElem
ent.get(e);o&&o.id!==n&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r){this.collectedLeaveElements.push(e),e[An]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1}}listen(n,e,i,r,s){return lu(e)?this._fetchNamespace(n).listen(e,i,r,s):()=>{}}_buildInstruction(n,e,i,r,s){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,s)}destroyInnerAnimations(n){let e=this.driver.query(n,Zc,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Vf,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(th
is.players.length)return sr(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[An];if(e&&e.setForRemoval){if(n[An]=tD,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}this.driver.matchesElement(n,eD)&&this.markElementAsDisabled(n,!1),this.driver.query(n,eD,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Pn(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.proce
ssLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?sr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${n.join("\n")}`)}_flushAnimations(n,e){const i=new su,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(B=>{u.add(B);const $=this.driver.query(B,".ng-animate-queued",!0);for(let re=0;re<$.length;re++)u.add($[re])});const d=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=rD(_,this.collectedEnterElements),b=new Map;let D=0;y.forEach((B,$)=>{const re=Nf+D++;b.set($,re),B.forEach(Ie=>Pn(Ie,re))});const T=[],k=new Set,x=new Set;for(let B=0;B<this.collectedLeaveElements.length;B++){const $=this.collec
tedLeaveElements[B],re=$[An];re&&re.setForRemoval&&(T.push($),k.add($),re.hasAnimation?this.driver.query($,".ng-star-inserted",!0).forEach(Ie=>k.add(Ie)):x.add($))}const A=new Map,F=rD(_,Array.from(k));F.forEach((B,$)=>{const re=Yc+D++;A.set($,re),B.forEach(Ie=>Pn(Ie,re))}),n.push(()=>{y.forEach((B,$)=>{const re=b.get($);B.forEach(Ie=>Qs(Ie,re))}),F.forEach((B,$)=>{const re=A.get($);B.forEach(Ie=>Qs(Ie,re))}),T.forEach(B=>{this.processLeaveNode(B)})});const te=[],Ae=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(e).forEach(re=>{const Ie=re.player,xt=re.element;if(te.push(Ie),this.collectedEnterElements.length){const pi=xt[An];if(pi&&pi.setForMove)return void Ie.destroy()}const hi=!d||!this.driver.containsElement(d,xt),mn=A.get(xt),lr=b.get(xt),rt=this._buildInstruction(re,i,lr,mn,hi);if(rt.errors&&rt.errors.length)Ae.push(rt);else{if(hi)return Ie.onStart(()=>Rr(xt,rt.fromStyles)),Ie.onDestroy(()=>di(xt,rt.toStyles)),void r.push(Ie);i
f(re.isFallbackTransition)return Ie.onStart(()=>Rr(xt,rt.fromStyles)),Ie.onDestroy(()=>di(xt,rt.toStyles)),void r.push(Ie);rt.timelines.forEach(pi=>pi.stretchStartingKeyframe=!0),i.append(xt,rt.timelines),o.push({instruction:rt,player:Ie,element:xt}),rt.queriedElements.forEach(pi=>fn(a,pi,[]).push(Ie)),rt.preStyleProps.forEach((pi,xa)=>{const _u=Object.keys(pi);if(_u.length){let Pr=l.get(xa);Pr||l.set(xa,Pr=new Set),_u.forEach(ig=>Pr.add(ig))}}),rt.postStyleProps.forEach((pi,xa)=>{const _u=Object.keys(pi);let Pr=c.get(xa);Pr||c.set(xa,Pr=new Set),_u.forEach(ig=>Pr.add(ig))})}});if(Ae.length){const B=[];Ae.forEach($=>{B.push(`(a)${$.triggerName} has failed due to:\n`),$.errors.forEach(re=>B.push(`- ${re}\n`))}),te.forEach($=>$.destroy()),this.reportError(B)}const Le=new Map,Xe=new Map;o.forEach(B=>{const $=B.element;i.has($)&&(Xe.set($,$),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,Le))}),r.forEach(B=>{const $=B.element;this._getPreviousPlayers($,!1,B.namespaceId,B.tr
iggerName,null).forEach(Ie=>{fn(Le,$,[]).push(Ie),Ie.destroy()})});const qe=T.filter(B=>oD(B,l,c)),Dt=new Map;iD(Dt,this.driver,x,c,Fi).forEach(B=>{oD(B,l,c)&&qe.push(B)});const Li=new Map;y.forEach((B,$)=>{iD(Li,this.driver,new Set(B),l,"!")}),qe.forEach(B=>{const $=Dt.get(B),re=Li.get(B);Dt.set(B,Object.assign(Object.assign({},$),re))});const Qn=[],Js=[],Xs={};o.forEach(B=>{const{element:$,player:re,instruction:Ie}=B;if(i.has($)){if(u.has($))return re.onDestroy(()=>di($,Ie.toStyles)),re.disabled=!0,re.overrideTotalTime(Ie.totalTime),void r.push(re);let xt=Xs;if(Xe.size>1){let mn=$;const lr=[];for(;mn=mn.parentNode;){const rt=Xe.get(mn);if(rt){xt=rt;break}lr.push(mn)}lr.forEach(rt=>Xe.set(rt,xt))}const hi=this._buildAnimation(re.namespaceId,Ie,Le,s,Li,Dt);if(re.setRealPlayer(hi),xt===Xs)Qn.push(re);else{const mn=this.playersByElement.get(xt);mn&&mn.length&&(re.parentPlayer=sr(mn)),r.push(re)}}else Rr($,Ie.fromStyles),re.onDestroy(()=>di($,Ie.toStyles)),Js.push(re),u.has($)&&r.push(
re)}),Js.forEach(B=>{const $=s.get(B.element);if($&&$.length){const re=sr($);B.setRealPlayer(re)}}),r.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B<T.length;B++){const $=T[B],re=$[An];if(Qs($,Yc),re&&re.hasAnimation)continue;let Ie=[];if(a.size){let hi=a.get($);hi&&hi.length&&Ie.push(...hi);let mn=this.driver.query($,Vf,!0);for(let lr=0;lr<mn.length;lr++){let rt=a.get(mn[lr]);rt&&rt.length&&Ie.push(...rt)}}const xt=Ie.filter(hi=>!hi.destroyed);xt.length?lz(this,$,xt):this.processLeaveNode($)}return T.length=0,Qn.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();const $=this.players.indexOf(B);this.players.splice($,1)}),B.play()}),Qn}elementContainsData(n,e){let i=!1;const r=e[An];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimati
onsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!s||s==Ea;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const s=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=fn(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(y=>{const b=y.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),y.destroy(),d.push(y)})}Rr(s,e.fromStyles)}_buildAnimation(n,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,_=e.timelines.map(b=>{const D=b.element;u.add(D);const T=D[An];if(T&&T.removedBeforeQueried)return new Ws(b.duration,b.delay);const k=D!==l,x=function cz(t){const n=[];return sD(t,n),n}((i.get(D)||tz).map(Le=>Le.getRea
lPlayer())).filter(Le=>!!Le.element&&Le.element===D),A=s.get(D),F=o.get(D),te=M1(0,this._normalizer,0,b.keyframes,A,F),Ae=this._buildPlayer(b,te,x);if(b.subTimeline&&r&&d.add(D),k){const Le=new Jf(n,a,D);Le.setRealPlayer(Ae),c.push(Le)}return Ae});c.forEach(b=>{fn(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function sz(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>Pn(b,V1));const y=sr(_);return y.onDestroy(()=>{u.forEach(b=>Qs(b,V1)),di(l,e.toStyles)}),d.forEach(b=>{fn(r,b,[]).push(y)}),y}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Ws(n.duration,n.delay)}}class Jf{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Ws,this._containsR
ealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>xf(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){fn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasS
tarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function lu(t){return t&&1===t.nodeType}function nD(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function iD(t,n,e,i,r){const s=[];e.forEach(l=>s.push(nD(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const _=u[d]=n.computeStyle(c,d,r);(!_||0==_.length)&&(c[An]=nz,o.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>nD(l,s[a++])),o}function rD(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l
)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}const cu="$$classes";function Pn(t,n){if(t.classList)t.classList.add(n);else{let e=t[cu];e||(e=t[cu]={}),e[n]=!0}}function Qs(t,n){if(t.classList)t.classList.remove(n);else{let e=t[cu];e&&delete e[n]}}function lz(t,n,e){sr(e).onDone(()=>t.processLeaveNode(n))}function sD(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof X0?sD(i.players,n):n.push(i)}}function oD(t,n,e){const i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(s=>r.add(s)):n.set(t,i),e.delete(t),!0}class uu{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new rz(n,e,i),this._timelineEngine=new Z4(n,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(n,e,i,r,s){const o=n+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],
c=Uf(this._driver,s,l);if(l.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function q4(t,n,e){return new K4(t,n,e)}(r,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[s,o]=O1(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=O1(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(n,e,i,r,s)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngin
e.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function aD(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Xf(n[0]),n.length>1&&(i=Xf(n[n.length-1]))):n&&(e=Xf(n)),e||i?new dz(t,e,i):null}let dz=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&di(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(di(this._element,this._initialStyles),this._endStyles&&(di(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Rr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Rr(this._element,this._endStyles),this._endStyles=null),di(this._element,this._initialStyles
),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Xf(t){let n=null;const e=Object.keys(t);for(let i=0;i<e.length;i++){const r=e[i];hz(r)&&(n=n||{},n[r]=t[r])}return n}function hz(t){return"display"===t||"position"===t}const lD="animation",cD="animationend";class gz{constructor(n,e,i,r,s,o,a){this._element=n,this._name=e,this._duration=i,this._delay=r,this._easing=s,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=l=>this._handleCallback(l)}apply(){(function mz(t,n){const e=tg(t,"").trim();let i=0;e.length&&(i=function yz(t,n){let e=0;for(let i=0;i<t.length;i++)t.charAt(i)===n&&e++;return e}(e,",")+1,n=`${e}, ${n}`),du(t,"",n)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),hD(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){uD(this._element,this._name,"paused")}resume(){uD(this._element,this._name,"runnin
g")}setPosition(n){const e=dD(this._element,this._name);this._position=n*this._duration,du(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(n){const e=n._ngTestManualTimestamp||Date.now(),i=1e3*parseFloat(n.elapsedTime.toFixed(3));n.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),hD(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function _z(t,n){const i=tg(t,"").split(","),r=eg(i,n);r>=0&&(i.splice(r,1),du(t,"",i.join(",")))}(this._element,this._name))}}function uD(t,n,e){du(t,"PlayState",e,dD(t,n))}function dD(t,n){const e=tg(t,"");return e.indexOf(",")>0?eg(e.split(","),n):eg([e],n)}function eg(t,n){for(let e=0;e<t.length;e++)if(t[e].indexOf(n)>=0)return e;return-1}function hD(t,n,e){e?t.removeEventListener(cD,n):t.addEventListener(cD,n)}function du(t,n,e,i){const r=lD+
n;if(null!=i){const s=t.style[r];if(s.length){const o=s.split(",");o[i]=e,e=o.join(",")}}t.style[r]=e}function tg(t,n){return t.style[lD+n]||""}class pD{constructor(n,e,i,r,s,o,a,l){this.element=n,this.keyframes=e,this.animationName=i,this._duration=r,this._delay=s,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+s,this._buildStyler()}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(n=>n()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._st
ate=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(n){this._styler.setPosition(n)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new gz(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const n={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalSty
les).forEach(i=>{"offset"!=i&&(n[i]=e?this._finalStyles[i]:jf(this.element,i))})}this.currentSnapshot=n}}class wz extends Ws{constructor(n,e){super(),this.element=n,this._startingStyles={},this.__initialized=!1,this._styles=F1(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(n=>{this._startingStyles[n]=this.element.style[n]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(n=>this.element.style.setProperty(n,this._styles[n])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(n=>{const e=this._startingStyles[n];e?this.element.style.setProperty(n,e):this.element.style.removeProperty(n)}),this._startingStyles=null,super.destroy())}}class gD{constructor(){this._count=0}validateStyleProperty(n){return Rf(n)}matchesElement(n,e){return Af(n,e)}containsElement(n,e){return Pf(n,e)}query(n,e,i){return Ff(n,e,i)}computeStyle(n,e,i){return window.getCom
putedStyle(n)[e]}buildKeyframeElement(n,e,i){i=i.map(a=>F1(a));let r=`@keyframes ${e} {\n`,s="";i.forEach(a=>{s=" ";const l=parseFloat(a.offset);r+=`${s}${100*l}% {\n`,s+=" ",Object.keys(a).forEach(c=>{const u=a[c];switch(c){case"offset":return;case"easing":return void(u&&(r+=`${s}animation-timing-function: ${u};\n`));default:return void(r+=`${s}${c}: ${u};\n`)}}),r+=`${s}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(n,e,i,r,s,o=[],a){const l=o.filter(T=>T instanceof pD),c={};U1(i,r)&&l.forEach(T=>{let k=T.currentSnapshot;Object.keys(k).forEach(x=>c[x]=k[x])});const u=function Sz(t){let n={};return t&&(Array.isArray(t)?t:[t]).forEach(i=>{Object.keys(i).forEach(r=>{"offset"==r||"easing"==r||(n[r]=i[r])})}),n}(e=$1(n,e,c));if(0==i)return new wz(n,u);const d="gen_css_kf_"+this._count++,_=this.buildKeyframeElement(n,d,e);(function Dz(t){var n;const e=null===(n=t.getRootNode)||void 0===n?void 0:n.call(t);return"undefined"!=typeof ShadowRoot&&e i
nstanceof ShadowRoot?e:document.head})(n).appendChild(_);const b=aD(n,e),D=new pD(n,e,d,i,r,s,u,b);return D.onDestroy(()=>function Tz(t){t.parentNode.removeChild(t)}(_)),D}}class _D{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBefor
eStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[]
)}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(n[e]=this._finished?this._finalKeyframe[e]:jf(this.element,e))}),this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Ez{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(yD().toString()),this._cssKeyframesDriver=new gD}validateStyleProperty(n){return Rf(n)}matchesElement(n,e){return Af(n,e)}containsElement(n,e){return Pf(n,e)}query(n,e,i){return Ff(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}overrideWebAnimationsSupport(n){this._isNativeImpl=n}animate(n,e,i,r,s,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(n,e,i,r,s,o);const u={duration:i,d
elay:r,fill:0==r?"both":"forwards"};s&&(u.easing=s);const d={},_=o.filter(b=>b instanceof _D);U1(i,r)&&_.forEach(b=>{let D=b.currentSnapshot;Object.keys(D).forEach(T=>d[T]=D[T])});const y=aD(n,e=$1(n,e=e.map(b=>or(b,!1)),d));return new _D(n,e,u,y)}}function yD(){return k1()&&Element.prototype.animate||{}}let Iz=(()=>{class t extends Y0{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ln.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?Q0(e):e;return vD(this._renderer,null,i,"register",[r]),new kz(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(P(jo),P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class kz extends class qN{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new Mz(this._id,n,e||{},this._renderer)}}class Mz{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,t
his.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return vD(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function vD(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const bD="@.disabled";let Oz=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentI
d=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new wD("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new Rz(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animatio
nCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(P(jo),P(uu),P(Te))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class wD{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInser
t(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==bD?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class Rz extends wD{constructor(n,e,i,r){super(e,i,r),thi
s.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==bD?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function Az(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function Pz(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let Fz=(()=>{class t extends uu{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(P(bt),P(Lf),P(Kf))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const CD=new ie("AnimationModuleType"),DD=[{provide:Y0,useClass:Iz},{provide:Kf,useFactory:function Nz(
){return new j4}},{provide:uu,useClass:Fz},{provide:jo,useFactory:function Vz(t,n,e){return new Oz(t,n,e)},deps:[Xl,uu,Te]}],SD=[{provide:Lf,useFactory:function Lz(){return function xz(){return"function"==typeof yD()}()?new Ez:new gD}},{provide:CD,useValue:"BrowserAnimations"},...DD],Bz=[{provide:Lf,useClass:L1},{provide:CD,useValue:"NoopAnimations"},...DD];let Hz=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Bz:SD}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({providers:SD,imports:[Tw]}),t})();zc([Qe({transform:"{{transform}}",opacity:0}),Pt("{{transition}}")]),zc([Pt("{{transition}}",Qe({transform:"{{transform}}",opacity:0}))]);let Wz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn]]}),t})(),dj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,ir,hn,$s],ir,$s]}),t})()
,fj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();const xD=["container"],gj=function(t,n,e,i){return{"pi-info-circle":t,"pi-exclamation-triangle":n,"pi-times-circle":e,"pi-check":i}};function mj(t,n){if(1&t&&(de(0),I(1,"span",6),h(2,"div",7),h(3,"div",8),E(4),p(),h(5,"div",9),E(6),p(),p(),he()),2&t){const e=f();g(1),ge("p-toast-message-icon pi"+(e.message.icon?" "+e.message.icon:"")),m("ngClass",Si(5,gj,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),g(3),le(e.message.summary),g(2),le(e.message.detail)}}function _j(t,n){1&t&&H(0)}function yj(t,n){if(1&t){const e=z();h(0,"button",10),M("click",function(r){return C(e),f().onCloseIconClick(r)})("keydown.enter",function(r){return C(e),f().onCloseIconClick(r)}),I(1,"span",11),p()}}const vj=function(t){return[t,"p-toast-message"]},bj=function(t,n,e,i){return{showTransformParams:t,hideTransformPa
rams:n,showTransitionParams:e,hideTransitionParams:i}},wj=function(t){return{value:"visible",params:t}},Cj=function(t){return{$implicit:t}};function Dj(t,n){if(1&t){const e=z();h(0,"p-toastItem",3),M("onClose",function(r){return C(e),f().onMessageClose(r)})("@toastAnimation.start",function(r){return C(e),f().onAnimationStart(r)})("@toastAnimation.done",function(r){return C(e),f().onAnimationEnd(r)}),p()}if(2&t){const e=n.$implicit,i=n.index,r=f();m("message",e)("index",i)("template",r.template)("@toastAnimation",void 0)("showTransformOptions",r.showTransformOptions)("hideTransformOptions",r.hideTransformOptions)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}}let Sj=(()=>{class t{constructor(e){this.zone=e,this.onClose=new R}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message.life
||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(e){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),e.preventDefault()}ngOnDestroy(){this.clearTimeout()}}return t.\u0275fac=function(e){return new(e||t)(w(Te))},t.\u0275cmp=Q({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,i){if(1&e&&He(xD,5),2&e){let r;K(r=Y())&&(i.containerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:"index",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:21,consts:[[3,"ngClass","mouseenter","mouseleave"],["container",""],["role","alert","aria-live","assertive","aria-atomic","true",1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],
[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"ngClass"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[1,"p-toast-icon-close-icon","pi","pi-times"]],template:function(e,i){1&e&&(h(0,"div",0,1),M("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()}),h(2,"div",2),v(3,mj,7,10,"ng-container",3),v(4,_j,1,0,"ng-container",4),v(5,yj,2,0,"button",5),p(),p()),2&e&&(ge(i.message.styleClass),m("ngClass",G(10,vj,"p-toast-message-"+i.message.severity))("@messageState",G(17,wj,Si(12,bj,i.showTransformOptions,i.hideTransformOptions,i.showTransitionOptions,i.hideTransitionOptions))),q("id",i.message.id),g(2),m("ngClass",i.message.contentStyleClass),g(1),m("ngIf",!i.template),g(1),m("ngTemplateOutlet",i.template)("ngTemplateOutletContex
t",G(19,Cj,i.message)),g(1),m("ngIf",!1!==i.message.closable))},directives:[Je,Me,Ot,ui],encapsulation:2,data:{animation:[Ir("messageState",[rr("visible",Qe({transform:"translateY(0)",opacity:1})),jt("void => *",[Qe({transform:"{{showTransformParams}}",opacity:0}),Pt("{{showTransitionParams}}")]),jt("* => void",[Pt("{{hideTransitionParams}}",Qe({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),Tj=(()=>{class t{constructor(e,i,r){this.messageService=e,this.cd=i,this.config=r,this.autoZIndex=!0,this.baseZIndex=0,this.position="top-right",this.preventOpenDuplicates=!1,this.preventDuplicates=!1,this.showTransformOptions="translateY(100%)",this.hideTransformOptions="translateY(-100%)",this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="250ms ease-in",this.onClose=new R,this.id=va()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e instanceof Array){const i=e.filter(r=>this.canAdd(r)
);this.add(i)}else this.canAdd(e)&&this.add([e])}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(e){this.messages=this.messages?[...this.messages,...e]:[...e],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...e]:[...e]),this.cd.markForCheck()}canAdd(e){let i=this.key===e.key;return i&&this.preventOpenDuplicates&&(i=!this.containsMessage(this.messages,e)),i&&this.preventDuplicates&&(i=!this.containsMessage(this.messagesArchieve,e)),i}containsMessage(e,i){return!!e&&null!=e.find(r=>r.summary===i.summary&&r.detail==i.detail&&r.severity===i.severity)}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.template=e.template})}onMessageClose(e){this.messages.splice(e.index,1),this.onClose.emit({message:e.message}),this.cd.detectChanges()}onAnimationStart(e){"void"===e.
fromState&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&Tt.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Tt.clear(this.containerViewChild.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e="";for(let i in this.breakpoints){let r="";for(let s in this.breakpoints[i])r+=s+":"+this.breakpoints[i][s]+" !important;";e+=`\n @media screen and (max-width: ${i}) {\n .p-toast[${this.id}] {\n ${r}\n }\n }\n `}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscript
ion.unsubscribe(),this.containerViewChild&&this.autoZIndex&&Tt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return t.\u0275fac=function(e){return new(e||t)(w(df),w(vt),w(Pi))},t.\u0275cmp=Q({type:t,selectors:[["p-toast"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&He(xD,5),2&e){let r;K(r=Y())&&(i.containerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngS
tyle"],["container",""],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function(e,i){1&e&&(h(0,"div",0,1),v(2,Dj,1,8,"p-toastItem",2),p()),2&e&&(ge(i.styleClass),m("ngClass","p-toast p-component p-toast-"+i.position)("ngStyle",i.style),g(2),m("ngForOf",i.messages))},directives:[Je,lt,Mt,Sj],styles:[".p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;t
ransform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}\n"],encapsulation:2,data:{animation:[Ir("toastAnimation",[jt(":enter, :leave",[YN("@*",KN())])])]},changeDetection:0}),t})(),Ej=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn],Et]}),t})(),Bj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn]]}),t})();const Hj=["headerchkbox"];function zj(t,n){1&t&&H(0)}function jj(t,n){if(1&t&&(h(0,"div",6),ot(1),v(2,zj,1,0,"ng-container",7),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.headerTemplate)}}const ID=function(t){return{"p-checkbox-disabled":t}},Uj=function(t,n,e){return{"p-highlight":t,"p-focus":n,"p-disabled":e}},kD=function(t){return{"pi pi-c
heck":t}};function $j(t,n){if(1&t){const e=z();h(0,"div",10),h(1,"div",11),h(2,"input",12),M("focus",function(){return C(e),f(2).onHeaderCheckboxFocus()})("blur",function(){return C(e),f(2).onHeaderCheckboxBlur()})("keydown.space",function(r){return C(e),f(2).toggleAll(r)}),p(),p(),h(3,"div",13,14),M("click",function(r){return C(e),f(2).toggleAll(r)}),I(5,"span",15),p(),p()}if(2&t){const e=f(2);m("ngClass",G(5,ID,e.disabled||e.toggleAllDisabled)),g(2),m("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),g(1),m("ngClass",xs(7,Uj,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),g(2),m("ngClass",G(11,kD,e.allChecked))}}function Gj(t,n){if(1&t){const e=z();h(0,"div",16),h(1,"input",17),M("input",function(r){return C(e),f(2).onFilter(r)}),p(),I(2,"span",18),p()}if(2&t){const e=f(2);g(1),m("value",e.filterValue||"")("disabled",e.disabled),q("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function Wj(t,n){if(1&t&&(h(0,"div",6),v(1,$j
,6,13,"div",8),v(2,Gj,3,4,"div",9),p()),2&t){const e=f();g(1),m("ngIf",e.checkbox&&e.multiple&&e.showToggleAll),g(1),m("ngIf",e.filter)}}function qj(t,n){if(1&t&&(h(0,"span"),E(1),p()),2&t){const e=f().$implicit,i=f(2);g(1),le(i.getOptionGroupLabel(e)||"empty")}}function Kj(t,n){1&t&&H(0)}function Yj(t,n){1&t&&H(0)}const ng=function(t){return{$implicit:t}};function Qj(t,n){if(1&t&&(h(0,"li",20),v(1,qj,2,1,"span",3),v(2,Kj,1,0,"ng-container",21),p(),v(3,Yj,1,0,"ng-container",21)),2&t){const e=n.$implicit,i=f(2),r=fe(8);g(1),m("ngIf",!i.groupTemplate),g(1),m("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",G(5,ng,e)),g(1),m("ngTemplateOutlet",r)("ngTemplateOutletContext",G(7,ng,i.getOptionGroupChildren(e)))}}function Zj(t,n){if(1&t&&(de(0),v(1,Qj,4,9,"ng-template",19),he()),2&t){const e=f();g(1),m("ngForOf",e.optionsToRender)}}function Jj(t,n){1&t&&H(0)}function Xj(t,n){if(1&t&&(de(0),v(1,Jj,1,0,"ng-container",21),he()),2&t){const e=f(),i=fe(8);g(1),m("ngTemplateOutlet",i
)("ngTemplateOutletContext",G(2,ng,e.optionsToRender))}}const eU=function(t){return{"p-highlight":t}};function tU(t,n){if(1&t&&(h(0,"div",10),h(1,"div",25),I(2,"span",15),p(),p()),2&t){const e=f().$implicit,i=f(2);m("ngClass",G(3,ID,i.disabled||i.isOptionDisabled(e))),g(1),m("ngClass",G(5,eU,i.isSelected(e))),g(1),m("ngClass",G(7,kD,i.isSelected(e)))}}function nU(t,n){if(1&t&&(h(0,"span"),E(1),p()),2&t){const e=f().$implicit,i=f(2);g(1),le(i.getOptionLabel(e))}}function iU(t,n){1&t&&H(0)}const rU=function(t,n){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":n}},sU=function(t,n){return{$implicit:t,index:n}};function oU(t,n){if(1&t){const e=z();h(0,"li",24),M("click",function(r){const o=C(e).$implicit;return f(2).onOptionClick(r,o)})("dblclick",function(r){const o=C(e).$implicit;return f(2).onOptionDoubleClick(r,o)})("touchend",function(){const s=C(e).$implicit;return f(2).onOptionTouchEnd(s)})("keydown",function(r){const o=C(e).$implicit;return f(2).onOptionKeyDown(r,o)}),v(1
,tU,3,9,"div",8),v(2,nU,2,1,"span",3),v(3,iU,1,0,"ng-container",21),p()}if(2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngClass",it(8,rU,r.isSelected(e),r.isOptionDisabled(e))),q("tabindex",r.disabled||r.isOptionDisabled(e)?null:"0")("aria-label",r.getOptionLabel(e))("aria-selected",r.isSelected(e)),g(1),m("ngIf",r.checkbox&&r.multiple),g(1),m("ngIf",!r.itemTemplate),g(1),m("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",it(11,sU,e,i))}}function aU(t,n){if(1&t&&(de(0),E(1),he()),2&t){const e=f(3);g(1),De(" ",e.emptyFilterMessageLabel," ")}}function lU(t,n){1&t&&H(0,null,28)}function cU(t,n){if(1&t&&(h(0,"li",26),v(1,aU,2,1,"ng-container",27),v(2,lU,2,0,"ng-container",7),p()),2&t){const e=f(2);g(1),m("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),g(1),m("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function uU(t,n){if(1&t&&(de(0),E(1),he()),2&t){const e=f(3);g(1),De(" ",e.emptyMessageLabel," ")}}function dU(t,n){1&t&&H(0,null,29)
}function hU(t,n){if(1&t&&(h(0,"li",26),v(1,uU,2,1,"ng-container",27),v(2,dU,2,0,"ng-container",7),p()),2&t){const e=f(2);g(1),m("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),g(1),m("ngTemplateOutlet",e.emptyTemplate)}}function pU(t,n){if(1&t&&(v(0,oU,4,14,"li",22),v(1,cU,3,3,"li",23),v(2,hU,3,3,"li",23)),2&t){const e=n.$implicit,i=f();m("ngForOf",e),g(1),m("ngIf",i.hasFilter()&&i.isEmpty(e)),g(1),m("ngIf",!i.hasFilter()&&i.isEmpty(e))}}function fU(t,n){1&t&&H(0)}function gU(t,n){if(1&t&&(h(0,"div",30),ot(1,1),v(2,fU,1,0,"ng-container",7),p()),2&t){const e=f();g(2),m("ngTemplateOutlet",e.footerTemplate)}}const mU=[[["p-header"]],[["p-footer"]]],_U=function(t){return{"p-listbox p-component":!0,"p-disabled":t}},yU=["p-header","p-footer"],vU={provide:Ht,useExisting:xe(()=>MD),multi:!0};let MD=(()=>{class t{constructor(e,i,r,s){this.el=e,this.cd=i,this.filterService=r,this.config=s,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll
=!0,this.optionGroupChildren="items",this.onChange=new R,this.onClick=new R,this.onDblClick=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{}}get options(){return this._options}set options(e){this._options=e,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template}})}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.option
GroupChildren?V.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?V.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,i):this.onOptionClickMultiple(e,i):this.onOptionClickSingle(e,i),this.onClick.emit({originalEvent:e,option:i,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.op
tionTouched=!0)}onOptionDoubleClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||this.onDblClick.emit({originalEvent:e,option:i,value:this.value})}onOptionClickSingle(e,i){let r=this.isSelected(i),s=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?a&&(this.value=null,s=!0):(this.value=this.getOptionValue(i),s=!0)}else this.value=r?null:this.getOptionValue(i),s=!0;s&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,i){let r=this.isSelected(i),s=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?(a?this.removeOption(i):this.value=[this.getOptionValue(i)],s=!0):(this.value=a&&this.value||[],this.value=[...this.value,this.getOptionValue(i)],s=!0)}else r?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],s=!0;s&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,i){this
.disabled||this.readonly||(this.isSelected(i)?this.removeOption(i):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(i)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(i=>!V.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value)for(let s of this.value)if(V.equals(s,r,this.dataKey)){i=!0;break}}else i=V.equals(this.value,r,this.dataKey);return i}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{let i=0,r=0,s=0,o=this.group?0:this.optionsToRender.length;for(let a of e)if(this.group)for(let l of this.getOptionGroupChildren(a)){let c=this.isOptionDisabled(l),u=this.isSelected(l);if(c)u?i++:r++;else{if(!u)return!1;s++}o++}else{let l=this.isOptionDisabled(a),c=this.isSelected(a);if(l)c?i++:r++;else{if(!c)return!1;s++}}return o===i||o===s||s&&o===s+r+i}}get optionsToRender(){re
turn this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Qt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Qt.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(e){return!e||e&&0===e.length}onFilter(e){this._filterValue=e.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=(this.optionLabel||"label").split(","),i=[];for(let r of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(r),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&i.push(Object.assign(Object.assign({},r),{[this.optionGroupChildren]:s}))}this._filteredOptions=i}else this._filteredOptions=this._options.filter(e=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(e),this._filterValue,this.filterLocale));else this._filteredOptions=null}g
et toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let i of e)if(!this.isOptionDisabled(i))return!1;return!0}toggleAll(e){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),e.preventDefault())}checkAll(){let i=[];this.optionsToRender.forEach(r=>{if(this.group){let s=this.getOptionGroupChildren(r);s&&s.forEach(o=>{let a=this.isOptionDisabled(o);(!a||a&&this.isSelected(o))&&i.push(this.getOptionValue(o))})}else{let s=this.isOptionDisabled(r);(!s||s&&this.isSelected(r))&&i.push(this.getOptionValue(r))}}),this.value=i}uncheckAll(){let i=[];this.optionsToRender.forEach(r=>{this.group?r.items&&r.items.forEach(s=>{this.isOptionDisabled(s)&&this.isSelected(s)&&i.push(this.getOptionValue(s))}):this.isOptionDisabled(r)&&this.isSelected(r)&&i.push(this.getOptionValue(r))}),this.value=i}onOptionKeyDown(e,i){if(this.readonly)r
eturn;let r=e.currentTarget;switch(e.which){case 40:var s=this.findNextItem(r);s&&s.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(r);o&&o.focus(),e.preventDefault();break;case 13:this.onOptionClick(e,i),e.preventDefault()}}findNextItem(e){let i=e.nextElementSibling;return i?S.hasClass(i,"p-disabled")||S.isHidden(i)||S.hasClass(i,"p-listbox-item-group")?this.findNextItem(i):i:null}findPrevItem(e){let i=e.previousElementSibling;return i?S.hasClass(i,"p-disabled")||S.isHidden(i)||S.hasClass(i,"p-listbox-item-group")?this.findPrevItem(i):i:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(vt),w(Nc),w(Pi))},t.\u0275cmp=Q({type:t,selectors:[["p-listbox"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Bc,5),Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.headerFacet=s.first)
,K(s=Y())&&(i.footerFacet=s.first),K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&He(Hj,5),2&e){let r;K(r=Y())&&(i.headerCheckboxViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[be([vU])],ngContentSele
ctors:yU,decls:10,vars:15,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox","aria-multiselectable","multiple",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],[1,"p-listbox-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown
",4,"ngFor","ngForOf"],["class","p-listbox-empty-message",4,"ngIf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],[4,"ngIf","ngIfElse"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(e,i){1&e&&(Sn(mU),h(0,"div",0),v(1,jj,3,1,"div",1),v(2,Wj,3,2,"div",1),h(3,"div",0),h(4,"ul",2),v(5,Zj,2,1,"ng-container",3),v(6,Xj,2,4,"ng-container",3),v(7,pU,3,3,"ng-template",null,4,ze),p(),p(),v(9,gU,3,1,"div",5),p()),2&e&&(ge(i.styleClass),m("ngClass",G(13,_U,i.disabled))("ngStyle",i.style),g(1),m("ngIf",i.headerFacet||i.headerTemplate),g(1),m("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),g(1),ge(i.listStyleClass),m("ngClass","p-listbox-list-wrapper")("ngStyle",i.listStyle),g(2),m("ngIf",i.group),g(1),m("ngIf",!i.group),g(3),m("ngIf",i.footerFacet||i.footerTemplate))},directives:[Je,lt,Me,Ot,Mt,ui],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{
list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),bU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Et,hn],Et]}),t})(),wU=(()=>{class t{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();let i=S.getFocusableElements(this.el.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);e.shiftKey?-1==r||0===r?i[i.length-1].focus():i[r-1].focus():-1==r||r===i.length-1?i[0].focus():i[r+1].focus()}else i[0].focus()}}}return t.\u0275fac=function(e){re
turn new(e||t)(w(Se))},t.\u0275dir=U({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,i){1&e&&M("keydown.tab",function(s){return i.onkeydown(s)})("keydown.shift.tab",function(s){return i.onkeydown(s)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),t})(),CU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();const DU=["titlebar"],SU=["content"],TU=["footer"];function EU(t,n){if(1&t&&(h(0,"span",17),E(1),p()),2&t){const e=f(4);q("id",e.id+"-label"),g(1),le(e.header)}}function xU(t,n){1&t&&(h(0,"span",17),ot(1,1),p()),2&t&&q("id",f(4).id+"-label")}function IU(t,n){1&t&&H(0)}const kU=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function MU(t,n){if(1&t){const e=z();h(0,"button",18),M("click",function(){return C(e),f(4).maximize()})("keydown.enter",function(){return C(e),f(4).maximize()}),I(1,"span",19),p()}if(2&t){const e=f(4);m("ngCla
ss",En(2,kU)),g(1),m("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const OU=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function RU(t,n){if(1&t){const e=z();h(0,"button",20),M("click",function(r){return C(e),f(4).close(r)})("keydown.enter",function(r){return C(e),f(4).close(r)}),I(1,"span",21),p()}if(2&t){const e=f(4);m("ngClass",En(4,OU)),q("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),g(1),m("ngClass",e.closeIcon)}}function AU(t,n){if(1&t){const e=z();h(0,"div",11,12),M("mousedown",function(r){return C(e),f(3).initDrag(r)}),v(2,EU,2,2,"span",13),v(3,xU,2,1,"span",13),v(4,IU,1,0,"ng-container",8),h(5,"div",14),v(6,MU,2,3,"button",15),v(7,RU,2,5,"button",16),p(),p()}if(2&t){const e=f(3);g(2),m("ngIf",!e.headerFacet&&!e.headerTemplate),g(1),m("ngIf",e.headerFacet),g(1),m("ngTemplateOutlet",e.headerTemplate),g(2),m("ngIf",e.maximizable),g(1),m("ngIf",e.closable)}}function PU(t,n){1&t&&H(0)}function FU(t,n){1&t&&H(0)}function LU(t,n){
if(1&t&&(h(0,"div",22,23),ot(2,2),v(3,FU,1,0,"ng-container",8),p()),2&t){const e=f(3);g(3),m("ngTemplateOutlet",e.footerTemplate)}}function NU(t,n){if(1&t){const e=z();h(0,"div",24),M("mousedown",function(r){return C(e),f(3).initResize(r)}),p()}}const VU=function(t,n,e,i){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":n,"p-dialog-resizable":e,"p-dialog-maximized":i}},BU=function(t,n){return{transform:t,transition:n}},HU=function(t){return{value:"visible",params:t}};function zU(t,n){if(1&t){const e=z();h(0,"div",3,4),M("@animation.start",function(r){return C(e),f(2).onAnimationStart(r)})("@animation.done",function(r){return C(e),f(2).onAnimationEnd(r)}),v(2,AU,8,5,"div",5),h(3,"div",6,7),ot(5),v(6,PU,1,0,"ng-container",8),p(),v(7,LU,4,1,"div",9),v(8,NU,1,0,"div",10),p()}if(2&t){const e=f(2);ge(e.styleClass),m("ngClass",Si(15,VU,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",G(23,HU,it(20,BU,e.
transformOptions,e.transitionOptions))),q("aria-labelledby",e.id+"-label"),g(2),m("ngIf",e.showHeader),g(1),ge(e.contentStyleClass),m("ngClass","p-dialog-content")("ngStyle",e.contentStyle),g(3),m("ngTemplateOutlet",e.contentTemplate),g(1),m("ngIf",e.footerFacet||e.footerTemplate),g(1),m("ngIf",e.resizable)}}const jU=function(t,n,e,i,r,s,o,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":n,"p-dialog-left":e,"p-dialog-right":i,"p-dialog-top":r,"p-dialog-top-left":s,"p-dialog-top-right":o,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function UU(t,n){if(1&t&&(h(0,"div",1),v(1,zU,9,25,"div",2),p()),2&t){const e=f();ge(e.maskStyleClass),m("ngClass",Ch(4,jU,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"botto
m-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),g(1),m("ngIf",e.visible)}}const $U=["*",[["p-header"]],[["p-footer"]]],GU=["*","p-header","p-footer"],WU=zc([Qe({transform:"{{transform}}",opacity:0}),Pt("{{transition}}")]),qU=zc([Pt("{{transition}}",Qe({transform:"{{transform}}",opacity:0}))]);let OD=(()=>{class t{constructor(e,i,r,s,o){this.el=e,this.renderer=i,this.zone=r,this.cd=s,this.config=o,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.closeTabindex="-1",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new R,this.onHide=new R,this.visibleChange=new R,this.onResizeInit=new R,this.onResizeEnd=new R,this.onDragEnd=new R,this.
onMaximize=new R,this.id=va(),this._style={},this._position="center",this.transformOptions="scale(0.7)"}get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(
this._style=Object.assign({},e),this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}focus(){let e=S.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&S.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismis
sableMask&&this.unbindMaskClickListener(),this.modal&&S.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?S.addClass(document.body,"p-overflow-hidden"):S.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Tt.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e="";for(let i in this.breakpoints)e+=`\n @media screen and (max-width: ${i}) {\n .p-dialog[${this.id}] {\n
width: ${this.breakpoints[i]} !important;\n }\n }\n `;this.styleElement.innerHTML=e}}initDrag(e){S.hasClass(e.target,"p-dialog-header-icon")||S.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",S.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let i=S.getFocusableElements(this.container);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);e.shiftKey?-1==r||0===r?i[i.length-1].focus():i[r-1].focus():-1==r||r===i.length-1?i[0].focus():i[r+1].focus()}else i[0].focus()}}onDrag(e){if(this.dragging){let i=S.getOuterWidth(this.container),r=S.getOuterHeight(this.container),s=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,a=S.getOffset(this.container),l=a.left+s,c=a.top+o,u=S.getViewport(
);this.container.style.position="fixed",this.keepInViewport?(l>=this.minX&&l+i<u.width&&(this._style.left=l+"px",this.lastPageX=e.pageX,this.container.style.left=l+"px"),c>=this.minY&&c+r<u.height&&(this._style.top=c+"px",this.lastPageY=e.pageY,this.container.style.top=c+"px")):(this.lastPageX=e.pageX,this.container.style.left=l+"px",this.lastPageY=e.pageY,this.container.style.top=c+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,S.removeClass(document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,S.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let i=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,s=S.getOuterWidth(this.container),o=S.get
OuterHeight(this.container),a=S.getOuterHeight(this.contentViewChild.nativeElement),l=s+i,c=o+r,u=this.container.style.minWidth,d=this.container.style.minHeight,_=S.getOffset(this.container),y=S.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=i,c+=r),(!u||l>parseInt(u))&&_.left+l<y.width&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!d||c>parseInt(d))&&_.top+c<y.height&&(this.contentViewChild.nativeElement.style.height=a+c-o+"px",this._style.height&&(this._style.height=c+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,S.removeClass(document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListen
er()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.zone.runOutsideAngular(()=>{this.documentDragListener=this.onDrag.bind(this),window.document.addEventListener("mousemove",this.documentDragListener)})}unbindDocumentDragListener(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)}bindDocumentDragEndListener(){this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.endDrag.bind(this),window.document.addEventListener("mouseup",this.documentDragEndListener)})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}bindDocumentResizeListeners(){this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.onResize.bind(th
is),this.documentResizeEndListener=this.resizeEnd.bind(this),window.document.addEventListener("mousemove",this.documentResizeListener),window.document.addEventListener("mouseup",this.documentResizeEndListener)})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",i=>{27==i.which&&this.close(i)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):S.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.cont
ainer&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&S.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&S.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({});break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(S.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&S.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Tt.clear(this.conta
iner),this.container=null,this.wrapper=null,this._style=this.originalStyle?Object.assign({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(dn),w(Te),w(vt),w(Pi))},t.\u0275cmp=Q({type:t,selectors:[["p-dialog"]],contentQueries:function(e,i,r){if(1&e&&(Ye(r,Bc,5),Ye(r,ba,5),Ye(r,Ct,4)),2&e){let s;K(s=Y())&&(i.headerFacet=s.first),K(s=Y())&&(i.footerFacet=s.first),K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(He(DU,5),He(SU,5),He(TU,5)),2&e){let r;K(r=Y())&&(i.headerViewChild=r.first),K(r=Y())&&(i.contentViewChild=r.first),K(r=Y())&&(i.footerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",conte
ntStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:GU,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"]
,[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer
"],["footer",""],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"]],template:function(e,i){1&e&&(Sn($U),v(0,UU,2,15,"div",0)),2&e&&m("ngIf",i.maskVisible)},directives:[Me,Je,wU,lt,Ot,ui],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-
dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translate(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0px!important;left:0px!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-co
ntent{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[Ir("animation",[jt("void => visible",[Z0(WU)]),jt("visible => void",[Z0(qU)])])]},changeDetection:0}),t})(),KU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,CU,hn],Et]}),t})();function YU(t,n){1&t&&H(0)}function QU(t,n){if(1&t){const e=z();h(0,"button",5),M("click",function(r){return C(e),f(2).onCloseClick(r)})("keydown.enter",function(){return C(e),f(2).hide()}),I(1,"span",6),p()}2&t&&q("aria-label",f(2).ariaCloseLabel)}const ZU=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},JU=function(t,n){return{value:t,params:n}};function XU(t,n){if(1&t){const e=z();h(0,"div",1),M("click",function(r){return C(e),f().onOverlayClick(r)})("@animation.start",function(r){return C(e),f().onAnimationStart(r)})("@animation.done",function(r){return C(e),f().onAnimationEnd(r)}),h(1,"div",2),M("click",function(){return C(e),f().onContentCli
ck()})("mousedown",function(){return C(e),f().onContentClick()}),ot(2),v(3,YU,1,0,"ng-container",3),p(),v(4,QU,2,1,"button",4),p()}if(2&t){const e=f();ge(e.styleClass),m("ngClass","p-overlaypanel p-component")("ngStyle",e.style)("@animation",it(10,JU,e.overlayVisible?"open":"close",it(7,ZU,e.showTransitionOptions,e.hideTransitionOptions))),g(3),m("ngTemplateOutlet",e.contentTemplate),g(1),m("ngIf",e.showCloseIcon)}}const e$=["*"];let t$=(()=>{class t{constructor(e,i,r,s,o,a){this.el=e,this.renderer=i,this.cd=r,this.zone=s,this.config=o,this.overlayService=a,this.dismissable=!0,this.appendTo="body",this.autoZIndex=!0,this.baseZIndex=0,this.focusOnShow=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new R,this.onHide=new R,this.overlayVisible=!1,this.render=!1,this.selfClick=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template,this.cd.markForCheck()})}bindDocumentClickListener
(){!this.documentClickListener&&this.dismissable&&this.zone.runOutsideAngular(()=>{let e=S.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",e,r=>{!this.container.contains(r.target)&&this.target!==r.target&&!this.target.contains(r.target)&&!this.selfClick&&this.zone.run(()=>{this.hide()}),this.selfClick=!1,this.cd.markForCheck()})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,i){this.overlayVisible?(this.hasTargetChanged(e,i)&&(this.destroyCallback=()=>{this.show(null,i||e.currentTarget||e.target)}),this.hide()):this.show(e,i)}show(e,i){this.target=i||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(){this.selfClick=!0}hasTargetChanged(e,i){r
eturn null!=this.target&&this.target!==(i||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):S.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIndex&&Tt.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),S.absolutePosition(this.container,this.target);const e=S.getOffset(this.container),i=S.getOffset(this.target);let r=0;e.left<i.left&&(r=i.left-e.left),this.container.style.setProperty("--overlayArrowLeft",`${r}px`),e.top<i.top&&S.addClass(this.container,"p-overlaypanel-flipped")}onAnimationStart(e){"open"===e.toState&&(this.container=e.element,this.onShow.emit(null),this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=i=>{this.container&&this.conta
iner.contains(i.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener))}onAnimationEnd(e){switch(e.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&Tt.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}}focus(){let e=S.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEv
entListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Lc(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Tt.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(dn),w(vt),w(Te),w(Pi),w(Vc))},t.\u0275cmp=Q({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(e,i,
r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{dismissable:"dismissable",showCloseIcon:"showCloseIcon",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",ariaCloseLabel:"ariaCloseLabel",baseZIndex:"baseZIndex",focusOnShow:"focusOnShow",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},ngContentSelectors:e$,decls:1,vars:1,consts:[[3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],[1,"p-overlaypanel-content",3,"click","mousedown"],[4,"ngTemplateOutlet"],["type","button","class","p-overlaypanel-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],["type","button","pRipple","",1,"p-overlaypanel-close","p-link",3,"click","keydown.enter"],[1,"p-overlaypanel-close-icon","pi","pi-times"]],template:function(e,i){1&e&&(Sn(),v(0,XU,5,13,"div",0)),2&e&&m("ngIf",i.render)},directives:[Me,Je,lt,O
t,ui],styles:['.p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.p-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after{border-bottom-color:transparent}.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}\n'],encapsulation:2,data:{animation:[Ir("animation",[rr("void",Qe({transform:"scaleY(0.8)",opacity:0})),rr("close",Qe({opacity
:0})),rr("open",Qe({transform:"translateY(0)",opacity:1})),jt("void => open",Pt("{{showTransitionParams}}")),jt("open => close",Pt("{{hideTransitionParams}}"))])]},changeDetection:0}),t})(),n$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn,Et],Et]}),t})();function i$(t,n){1&t&&I(0,"span",8),2&t&&(ge(f(2).$implicit.icon),m("ngClass","p-button-icon p-button-icon-left"))}function r$(t,n){if(1&t&&(de(0),v(1,i$,1,3,"span",6),h(2,"span",7),E(3),p(),he()),2&t){const e=f().$implicit,i=f();g(1),m("ngIf",e.icon),g(2),le(i.getOptionLabel(e))}}function s$(t,n){1&t&&H(0)}const o$=function(t,n){return{$implicit:t,index:n}};function a$(t,n){if(1&t&&v(0,s$,1,0,"ng-container",9),2&t){const e=f(),i=e.$implicit,r=e.index;m("ngTemplateOutlet",f().itemTemplate)("ngTemplateOutletContext",it(2,o$,i,r))}}const l$=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-button-icon-only":e}};function c$(t,n){if(1&t){const e=z();h(0,"div
",2,3),M("click",function(r){const s=C(e),o=s.$implicit,a=s.index;return f().onItemClick(r,o,a)})("keydown.enter",function(r){const s=C(e),o=s.$implicit,a=s.index;return f().onItemClick(r,o,a)})("blur",function(){return C(e),f().onBlur()}),v(2,r$,4,2,"ng-container",4),v(3,a$,1,5,"ng-template",null,5,ze),p()}if(2&t){const e=n.$implicit,i=fe(4),r=f();ge(e.styleClass),m("ngClass",xs(10,l$,r.isSelected(e),r.disabled||r.isOptionDisabled(e),e.icon&&!r.getOptionLabel(e))),q("aria-pressed",r.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",r.disabled?null:r.tabindex)("aria-labelledby",r.getOptionLabel(e)),g(2),m("ngIf",!r.itemTemplate)("ngIfElse",i)}}const u$={provide:Ht,useExisting:xe(()=>d$),multi:!0};let d$=(()=>{class t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new R,this.onChange=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{}}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionVa
lue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onItemClick(e,i,r){this.disabled||this.isOptionDisabled(i)||(this.multiple?this.isSelected(i)?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)]:this.value=this.getOptionValue(i),this.onOptionClick.emit({originalEvent:e,option:i,index:r}),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!V.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value)for(let s
of this.value)if(V.equals(s,r,this.dataKey)){i=!0;break}}else i=V.equals(this.getOptionValue(e),this.value,this.dataKey);return i}}return t.\u0275fac=function(e){return new(e||t)(w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,xn,5),2&e){let s;K(s=Y())&&(i.itemTemplate=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[be([u$])],decls:2,vars:5,consts:[["role","group",3,"ngClass","ngStyle"],["class","p-button p-component","role","button","pRipple","",3,"class","ngClass","click","keydown.enter","blur",4,"ngFor","ngForOf"],["role","button","pRipple","",1,"p-button","p-component",3,"ngClass","click","keydown.enter","blur
"],["btn",""],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(h(0,"div",0),v(1,c$,5,14,"div",1),p()),2&e&&(ge(i.styleClass),m("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",i.style),g(1),m("ngForOf",i.options))},directives:[Je,lt,Mt,ui,Me,Ot],styles:[".p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only .p-button-label{visibility:hidden;width:0;flex:0 0 auto}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not
(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}.p-button-label{transition:all .2s}\n"],encapsulation:2,changeDetection:0}),t})(),h$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,hn]]}),t})();const p$=function(t,n,e){return{"p-checkbox-label-active":t,"p-disabled":n,"p-checkbox-label-focus":e}};function f$(t,n){if(1&t){const e=z();h(0,"label",7),M("click",function(r){C(e);const s=f(),o=fe(3);return s.onClick(r,o)}),E(1),p()}if(2&t){const e=f();m("ngClass",xs(3,p$,null!=e.value,e.disabled,e.focused)),q("for",e.inputId),g(1),le(e.label)}}const g$=function(t,n){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":n}},m$=function(t,n,e){return{"p-highlig
ht":t,"p-disabled":n,"p-focus":e}},_$={provide:Ht,useExisting:xe(()=>y$),multi:!0};let y$=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,i){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,i.focus())}onKeydown(e){32==e.keyCode&&e.preventDefault()}onKeyup(e){32==e.keyCode&&!this.readonly&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}}return t.\u0275fac=function(e){retur
n new(e||t)(w(vt))},t.\u0275cmp=Q({type:t,selectors:[["p-triStateCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[be([_$])],decls:7,vars:21,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","text","inputmode","none",3,"name","readonly","disabled","keyup","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(e,i){if(1&e){const r=z();h(0,"div",0),h(1,"div",1),h(2,"input",2,3),M("keyup",function(o){return i.onKeyup(o)})("keydown",function(o){return i.onKeydown(o)})("focus",function(){return i.on
Focus()})("blur",function(){return i.onBlur()}),p(),p(),h(4,"div",4),M("click",function(o){C(r);const a=fe(3);return i.onClick(o,a)}),I(5,"span",5),p(),p(),v(6,f$,2,7,"label",6)}2&e&&(ge(i.styleClass),m("ngStyle",i.style)("ngClass",it(14,g$,i.disabled,i.focused)),g(2),m("name",i.name)("readonly",i.readonly)("disabled",i.disabled),q("id",i.inputId)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy),g(2),m("ngClass",xs(17,m$,null!=i.value,i.disabled,i.focused)),q("aria-checked",!0===i.value),g(1),m("ngClass",!0===i.value?i.checkboxTrueIcon:!1===i.value?i.checkboxFalseIcon:""),g(1),m("ngIf",i.label))},directives:[lt,Je,Me],encapsulation:2,changeDetection:0}),t})(),v$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe]]}),t})();const b$=["container"],w$=["inputfield"],C$=["contentWrapper"];function D$(t,n){if(1&t){const e=z();h(0,"button",7),M("click",function(r){C(e),f();const s=fe(1);return f().onButtonClick(r,s)
}),p()}if(2&t){const e=f(2);m("icon",e.icon)("disabled",e.disabled),q("aria-label",e.iconAriaLabel)}}function S$(t,n){if(1&t){const e=z();h(0,"input",4,5),M("focus",function(r){return C(e),f().onInputFocus(r)})("keydown",function(r){return C(e),f().onInputKeydown(r)})("click",function(){return C(e),f().onInputClick()})("blur",function(r){return C(e),f().onInputBlur(r)})("input",function(r){return C(e),f().onUserInput(r)}),p(),v(2,D$,1,3,"button",6)}if(2&t){const e=f();ge(e.inputStyleClass),m("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),q("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null)("aria-labelledby",e.ariaLabelledBy),g(2),m("ngIf",e.showIcon)}}function T$(t,n){1&t&&H(0)}function E$(t,n){if(1&t){const e=z();h(0,"button",28),M("keydown",function(r){return C(e),f(4).on
ContainerButtonKeydown(r)})("click",function(r){return C(e),f(4).onPrevButtonClick(r)}),I(1,"span",29),p()}}function x$(t,n){if(1&t){const e=z();h(0,"button",30),M("click",function(r){return C(e),f(4).switchToMonthView(r)})("keydown",function(r){return C(e),f(4).onContainerButtonKeydown(r)}),E(1),p()}if(2&t){const e=f().$implicit,i=f(3);m("disabled",i.switchViewButtonDisabled()),g(1),De(" ",i.getMonthName(e.month)," ")}}function I$(t,n){if(1&t){const e=z();h(0,"button",31),M("click",function(r){return C(e),f(4).switchToYearView(r)})("keydown",function(r){return C(e),f(4).onContainerButtonKeydown(r)}),E(1),p()}if(2&t){const e=f().$implicit;m("disabled",f(3).switchViewButtonDisabled()),g(1),De(" ",e.year," ")}}function k$(t,n){if(1&t&&(de(0),E(1),he()),2&t){const e=f(5);g(1),hh("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function M$(t,n){1&t&&H(0)}const RD=function(t){return{$implicit:t}};function O$(t,n){if(1&t&&(h(0,"span",32),v(1,k$,2,2
,"ng-container",11),v(2,M$,1,0,"ng-container",33),p()),2&t){const e=f(4);g(1),m("ngIf",!e.decadeTemplate),g(1),m("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",G(3,RD,e.yearPickerValues))}}function R$(t,n){if(1&t&&(h(0,"th",39),h(1,"span"),E(2),p(),p()),2&t){const e=f(5);g(2),le(e.getTranslation("weekHeader"))}}function A$(t,n){if(1&t&&(h(0,"th",40),h(1,"span"),E(2),p(),p()),2&t){const e=n.$implicit;g(2),le(e)}}function P$(t,n){if(1&t&&(h(0,"td",43),h(1,"span",44),E(2),p(),p()),2&t){const e=f().index,i=f(2).$implicit;g(2),De(" ",i.weekNumbers[e]," ")}}function F$(t,n){if(1&t&&(de(0),E(1),he()),2&t){const e=f(2).$implicit;g(1),le(e.day)}}function L$(t,n){1&t&&H(0)}const AD=function(t,n){return{"p-highlight":t,"p-disabled":n}};function N$(t,n){if(1&t){const e=z();de(0),h(1,"span",46),M("click",function(r){C(e);const s=f().$implicit;return f(6).onDateSelect(r,s)})("keydown",function(r){C(e);const s=f().$implicit,o=f(3).index;return f(3).onDateCellKeydown(r,s,o)}),v(2,F$
,2,1,"ng-container",11),v(3,L$,1,0,"ng-container",33),p(),he()}if(2&t){const e=f().$implicit,i=f(6);g(1),m("ngClass",it(4,AD,i.isSelected(e),!e.selectable)),g(1),m("ngIf",!i.dateTemplate),g(1),m("ngTemplateOutlet",i.dateTemplate)("ngTemplateOutletContext",G(7,RD,e))}}const V$=function(t,n){return{"p-datepicker-other-month":t,"p-datepicker-today":n}};function B$(t,n){if(1&t&&(h(0,"td",45),v(1,N$,4,9,"ng-container",11),p()),2&t){const e=n.$implicit,i=f(6);m("ngClass",it(2,V$,e.otherMonth,e.today)),g(1),m("ngIf",!e.otherMonth||i.showOtherMonths)}}function H$(t,n){if(1&t&&(h(0,"tr"),v(1,P$,3,1,"td",41),v(2,B$,2,5,"td",42),p()),2&t){const e=n.$implicit,i=f(5);g(1),m("ngIf",i.showWeek),g(1),m("ngForOf",e)}}function z$(t,n){if(1&t&&(h(0,"div",34),h(1,"table",35),h(2,"thead"),h(3,"tr"),v(4,R$,3,1,"th",36),v(5,A$,3,1,"th",37),p(),p(),h(6,"tbody"),v(7,H$,3,2,"tr",38),p(),p(),p()),2&t){const e=f().$implicit,i=f(3);g(4),m("ngIf",i.showWeek),g(1),m("ngForOf",i.weekDays),g(2),m("ngForOf",e.dates)
}}function j$(t,n){if(1&t){const e=z();h(0,"div",18),h(1,"div",19),v(2,E$,2,0,"button",20),h(3,"div",21),v(4,x$,2,2,"button",22),v(5,I$,2,2,"button",23),v(6,O$,3,5,"span",24),p(),h(7,"button",25),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(3).onNextButtonClick(r)}),I(8,"span",26),p(),p(),v(9,z$,8,3,"div",27),p()}if(2&t){const e=n.index,i=f(3);g(2),m("ngIf",0===e),g(2),m("ngIf","date"===i.currentView),g(1),m("ngIf","year"!==i.currentView),g(1),m("ngIf","year"===i.currentView),g(1),wi("display",1===i.numberOfMonths||e===i.numberOfMonths-1?"inline-flex":"none"),g(2),m("ngIf","date"===i.currentView)}}function U$(t,n){if(1&t){const e=z();h(0,"span",49),M("click",function(r){const o=C(e).index;return f(4).onMonthSelect(r,o)})("keydown",function(r){const o=C(e).index;return f(4).onMonthCellKeydown(r,o)}),E(1),p()}if(2&t){const e=n.$implicit,i=n.index,r=f(4);m("ngClass",it(2,AD,r.isMonthSelected(i),!r.isSelectable(1,i,r.currentYea
r,!1))),g(1),De(" ",e," ")}}function $$(t,n){if(1&t&&(h(0,"div",47),v(1,U$,2,5,"span",48),p()),2&t){const e=f(3);g(1),m("ngForOf",e.monthPickerValues())}}const G$=function(t){return{"p-highlight":t}};function W$(t,n){if(1&t){const e=z();h(0,"span",52),M("click",function(r){const o=C(e).$implicit;return f(4).onYearSelect(r,o)})("keydown",function(r){const o=C(e).$implicit;return f(4).onYearCellKeydown(r,o)}),E(1),p()}if(2&t){const e=n.$implicit,i=f(4);m("ngClass",G(2,G$,i.isYearSelected(e))),g(1),De(" ",e," ")}}function q$(t,n){if(1&t&&(h(0,"div",50),v(1,W$,2,4,"span",51),p()),2&t){const e=f(3);g(1),m("ngForOf",e.yearPickerValues())}}function K$(t,n){if(1&t&&(de(0),h(1,"div",14),v(2,j$,10,7,"div",15),p(),v(3,$$,2,1,"div",16),v(4,q$,2,1,"div",17),he()),2&t){const e=f(2);g(2),m("ngForOf",e.months),g(1),m("ngIf","month"===e.currentView),g(1),m("ngIf","year"===e.currentView)}}function Y$(t,n){1&t&&(de(0),E(1,"0"),he())}function Q$(t,n){1&t&&(de(0),E(1,"0"),he())}function Z$(t,n){if(1&t&&
(h(0,"div",58),h(1,"span"),E(2),p(),p()),2&t){const e=f(3);g(2),le(e.timeSeparator)}}function J$(t,n){1&t&&(de(0),E(1,"0"),he())}function X$(t,n){if(1&t){const e=z();h(0,"div",63),h(1,"button",55),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(3).incrementSecond(r)})("keydown.space",function(r){return C(e),f(3).incrementSecond(r)})("mousedown",function(r){return C(e),f(3).onTimePickerElementMouseDown(r,2,1)})("mouseup",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(3).onTimePickerElementMouseLeave()}),I(2,"span",56),p(),h(3,"span"),v(4,J$,2,0,"ng-container",11),E(5),p(),h(6,"button",55),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(3).decrementSecond(r)}
)("keydown.space",function(r){return C(e),f(3).decrementSecond(r)})("mousedown",function(r){return C(e),f(3).onTimePickerElementMouseDown(r,2,-1)})("mouseup",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(3).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(3).onTimePickerElementMouseLeave()}),I(7,"span",57),p(),p()}if(2&t){const e=f(3);g(4),m("ngIf",e.currentSecond<10),g(1),le(e.currentSecond)}}function e5(t,n){if(1&t){const e=z();h(0,"div",64),h(1,"button",65),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(3).toggleAMPM(r)})("keydown.enter",function(r){return C(e),f(3).toggleAMPM(r)}),I(2,"span",56),p(),h(3,"span"),E(4),p(),h(5,"button",65),M("keydown",function(r){return C(e),f(3).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(3).toggleAMPM(r)})("keydown.enter"
,function(r){return C(e),f(3).toggleAMPM(r)}),I(6,"span",57),p(),p()}if(2&t){const e=f(3);g(4),le(e.pm?"PM":"AM")}}function t5(t,n){if(1&t){const e=z();h(0,"div",53),h(1,"div",54),h(2,"button",55),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(2).incrementHour(r)})("keydown.space",function(r){return C(e),f(2).incrementHour(r)})("mousedown",function(r){return C(e),f(2).onTimePickerElementMouseDown(r,0,1)})("mouseup",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(2).onTimePickerElementMouseLeave()}),I(3,"span",56),p(),h(4,"span"),v(5,Y$,2,0,"ng-container",11),E(6),p(),h(7,"button",55),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(2).decrementHour(r)})("key
down.space",function(r){return C(e),f(2).decrementHour(r)})("mousedown",function(r){return C(e),f(2).onTimePickerElementMouseDown(r,0,-1)})("mouseup",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(2).onTimePickerElementMouseLeave()}),I(8,"span",57),p(),p(),h(9,"div",58),h(10,"span"),E(11),p(),p(),h(12,"div",59),h(13,"button",55),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(2).incrementMinute(r)})("keydown.space",function(r){return C(e),f(2).incrementMinute(r)})("mousedown",function(r){return C(e),f(2).onTimePickerElementMouseDown(r,1,1)})("mouseup",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e
),f(2).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(2).onTimePickerElementMouseLeave()}),I(14,"span",56),p(),h(15,"span"),v(16,Q$,2,0,"ng-container",11),E(17),p(),h(18,"button",55),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("keydown.enter",function(r){return C(e),f(2).decrementMinute(r)})("keydown.space",function(r){return C(e),f(2).decrementMinute(r)})("mousedown",function(r){return C(e),f(2).onTimePickerElementMouseDown(r,1,-1)})("mouseup",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.enter",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("keyup.space",function(r){return C(e),f(2).onTimePickerElementMouseUp(r)})("mouseleave",function(){return C(e),f(2).onTimePickerElementMouseLeave()}),I(19,"span",57),p(),p(),v(20,Z$,3,1,"div",60),v(21,X$,8,2,"div",61),v(22,e5,7,1,"div",62),p()}if(2&t){const e=f(2);g(5),m("ngIf",e.currentHour<10),g(1),le(e.currentHour),g(5),le(e.timeSeparator),g(5),m("ngIf",e.c
urrentMinute<10),g(1),le(e.currentMinute),g(3),m("ngIf",e.showSeconds),g(1),m("ngIf",e.showSeconds),g(1),m("ngIf","12"==e.hourFormat)}}const PD=function(t){return[t]};function n5(t,n){if(1&t){const e=z();h(0,"div",66),h(1,"button",67),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(2).onTodayButtonClick(r)}),p(),h(2,"button",67),M("keydown",function(r){return C(e),f(2).onContainerButtonKeydown(r)})("click",function(r){return C(e),f(2).onClearButtonClick(r)}),p(),p()}if(2&t){const e=f(2);g(1),m("label",e.getTranslation("today"))("ngClass",G(4,PD,e.todayButtonStyleClass)),g(1),m("label",e.getTranslation("clear"))("ngClass",G(6,PD,e.clearButtonStyleClass))}}function r5(t,n){1&t&&H(0)}const s5=function(t,n,e,i,r,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":n,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":i,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":s}},FD=function(t,n){return{show
TransitionParams:t,hideTransitionParams:n}},o5=function(t){return{value:"visibleTouchUI",params:t}},a5=function(t){return{value:"visible",params:t}};function l5(t,n){if(1&t){const e=z();h(0,"div",8,9),M("@overlayAnimation.start",function(r){return C(e),f().onOverlayAnimationStart(r)})("@overlayAnimation.done",function(r){return C(e),f().onOverlayAnimationDone(r)})("click",function(r){return C(e),f().onOverlayClick(r)}),ot(2),v(3,T$,1,0,"ng-container",10),v(4,K$,5,3,"ng-container",11),v(5,t5,23,8,"div",12),v(6,n5,3,8,"div",13),ot(7,1),v(8,r5,1,0,"ng-container",10),p()}if(2&t){const e=f();ge(e.panelStyleClass),m("ngStyle",e.panelStyle)("ngClass",Is(11,s5,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?G(21,o5,it(18,FD,e.showTransitionOptions,e.hideTransitionOptions)):G(26,a5,it(23,FD,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),g(3),m("ngTemplateOutlet",e.headerTemplate),g(1),m("ngIf",!e.tim
eOnly),g(1),m("ngIf",e.showTime||e.timeOnly),g(1),m("ngIf",e.showButtonBar),g(2),m("ngTemplateOutlet",e.footerTemplate)}}const c5=[[["p-header"]],[["p-footer"]]],u5=function(t,n,e,i){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":n,"p-calendar-disabled":e,"p-focus":i}},d5=["p-header","p-footer"],h5={provide:Ht,useExisting:xe(()=>p5),multi:!0};let p5=(()=>{class t{constructor(e,i,r,s,o,a){this.el=e,this.renderer=i,this.cd=r,this.zone=s,this.config=o,this.overlayService=a,this.multipleSeparator=",",this.rangeSeparator="-",this.inline=!1,this.showOtherMonths=!0,this.icon="pi pi-calendar",this.shortYearCutoff="+10",this.hourFormat="24",this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.showOnFocus=!0,this.showWeek=!1,this.dataType="date",this.selectionMode="single",this.todayButtonStyleClass="p-button-text",this.clearButtonStyleClass="p-button-text",this.autoZIndex=!0,this.baseZIndex=0,this.keepInvalid=!1,this.hideOnDateTimeSelect=!0,this.tim
eSeparator=":",this.focusTrap=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onFocus=new R,this.onBlur=new R,this.onClose=new R,this.onSelect=new R,this.onInput=new R,this.onTodayClick=new R,this.onClearClick=new R,this.onMonthChange=new R,this.onYearChange=new R,this.onClickOutside=new R,this.onShow=new R,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(l,c){return"12"==this.hourFormat?12===l?c?12:0:c?l+12:l:l}}set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const i=
e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(
e){if(this._yearRange=e,e){const i=e.split(":"),r=parseInt(i[0]),s=parseInt(i[1]);this.populateYearOptions(r,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get locale(){return this._locale}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._numberOfMonths}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}ngOnInit(){this.attributeSelector=va();const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFul
lYear(),this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=S.getOuterWidth(this.containerViewChild.nativeElement)+"px
")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let r=e;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(Qt.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let r=0;r<10;r++)e.push(i+r);return e}createMonths(e,i){this.months=this.months=[];for(let r=0;r<this.numberOfMonths;r++){let s=e+r,o=i;s>11&&(s=s%11-1,o=i+1),this.months.push(this.createMonth(s,o))}}getWeekNumber(e){let i=new Date(e.getTime());i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(e,i){let r=[],s=this.getFirstDayOfMonthIndex(e,i),o=this.getDaysCountInMonth(e,i),a=this.getDa
ysCountInPrevMonth(e,i),l=1,c=new Date,u=[],d=Math.ceil((o+s)/7);for(let _=0;_<d;_++){let y=[];if(0==_){for(let D=a-s+1;D<=a;D++){let T=this.getPreviousMonthAndYear(e,i);y.push({day:D,month:T.month,year:T.year,otherMonth:!0,today:this.isToday(c,D,T.month,T.year),selectable:this.isSelectable(D,T.month,T.year,!0)})}let b=7-y.length;for(let D=0;D<b;D++)y.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)}),l++}else for(let b=0;b<7;b++){if(l>o){let D=this.getNextMonthAndYear(e,i);y.push({day:l-o,month:D.month,year:D.year,otherMonth:!0,today:this.isToday(c,l-o,D.month,D.year),selectable:this.isSelectable(l-o,D.month,D.year,!0)})}else y.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(y[0].year,y[0].month,y[0].day))),r.push(y)}return{month:e,year:i,dates:r,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMi
nutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:t
his.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){if(this.currentYear--,this.yearNavigator&&this.currentYear<this.yearOptions[0]){let e=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]-e,this.yearOptions[this.yearOptions.length-1]-e)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){if(this.currentYear++,this.yearNavigator&&this.currentYear>this.yearOptions[this.yearOptions.length-1]){let e=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]+e,this.yearOptions[this.yearOptions.length-1]+e)}}switchToMonthView(e){this.currentView="month",e.preventDefault()}switchToYearView(e){this.currentView="year",e.preventDefault()}onDateSelect(e,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.va
lue.filter((r,s)=>!this.isDateEquals(r,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,i){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.currentView="date",this.createMonths(this.currentMonth,this.currentYear),this.cd.markForCheck(),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){"year"===this.view?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.currentView="month",this.onYearChange.emit({
month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i<this.value.length;i++)e+=this.formatDateTime(this.value[i]),i!==this.value.length-1&&(e+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let r=this.value[1];e=this.formatDateTime(this.value[0]),r&&(e+=" "+this.rangeSeparator+" "+this.formatDateTime(r))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let i=null;return e&&(this.timeOnly?i=this.formatTime(e):(i=this.formatDate(e,this.getDateFormat()),this.showTime&&(i+=" "+this.formatTime(e)))),i}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}selectDate(e){let i=new Da
te(e.year,e.month,e.day);if(this.showTime&&(i.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate<i&&(i=this.maxDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.isSingleSelection())this.updateModel(i);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,i]:[i]);else if(this.isRangeSelection())if(this.value&&this.value.length){let r=this.value[0],s=this.value[1];!s&&i.getTime()>=r.getTime()?s=i:(r=i,s=null),this.updateModel([r,s])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("str
ing"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;this.value&&(i=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let r=new Date;r.setDate(1),r.setMonth(e),r.setFullYear(i);let s=r.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let r=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(e,i){let r,s;return 0===e?(r=11,s=i-1):(r=e-1,s=i),{month:r,year:s}}getNextMonthAndYear(e,i){let r,s;return 11===e?(r=0,s=i+1):(r=e+1,s=i),{month:r,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let r of this.value)if(i=this.isDateEquals(r,e),i)brea
k;return i}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getMonth()===e&&i.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getFullYear()===e}return!1}isDateEquals(e,i){return!!e&&e.getDate()===i.day&&e.getMonth()===i.month&&e.getFullYear()===i.year}isDateBetween(e,i,r){if(e&&i){let o=new Date(r.year,r.month,r.day);return e.getTime()<=o.getTime()&&i.getTime()>=o.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultiple
Selection(){return"multiple"===this.selectionMode}isToday(e,i,r,s){return e.getDate()===i&&e.getMonth()===r&&e.getFullYear()===s}isSelectable(e,i,r,s){let o=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<r||this.maxDate.getFullYear()===r&&(this.maxDate.getMonth()<i||this.maxDate.getMonth()===i&&this.maxDate.getDate()<e))&&(a=!1),this.disabledDates&&(l=!this.isDateDisabled(e,i,r)),this.disabledDays&&(c=!this.isDayDisabled(e,i,r)),o&&a&&l&&c)}isDateDisabled(e,i,r){if(this.disabledDates)for(let s of this.disabledDates)if(s.getFullYear()===r&&s.getMonth()===i&&s.getDate()===e)return!0;return!1}isDayDisabled(e,i,r){if(this.disabledDays){let o=new Date(r,i,e).getDay();return-1!==this.disabledDays.indexOf(o)}return!1}onInputFocus(e){this.focus=!0,this.showOnFocus&&this.show
Overlay(),this.onFocus.emit(e)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(e){this.focus=!1,this.onBlur.emit(e),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(e,i){this.overlayVisible?this.hideOverlay():(i.focus(),this.showOverlay())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return this.config.getTranslation("monthNames")[e]}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode||13===e.keyCode?this.overlayVisible&&(this.ov
erlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(S.getFocusableElements(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,r){const s=e.currentTarget,o=s.parentElement;switch(e.which){case 40:{s.tabIndex="-1";let a=S.index(o),l=o.parentElement.nextElementSibling;l?S.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let a=S.index(o),l=o.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];S.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let a=o.previousEl
ementSibling;if(a){let l=a.children[0];S.hasClass(l,"p-disabled")||S.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,r);e.preventDefault();break}case 39:{s.tabIndex="-1";let a=o.nextElementSibling;if(a){let l=a.children[0];S.hasClass(l,"p-disabled")?this.navigateToMonth(!1,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,r);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=S.index(r);let a=s[40===e.which?o+3:o-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();bre
ak}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:this.onMonthSelect(e,i),e.preventDefault();break;case 13:case 32:case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=S.index(r);let a=s[40===e.which?o+2:o-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefaul
t();break;case 9:this.trapFocus(e)}}navigateToMonth(e,i){if(e)if(1===this.numberOfMonths||0===i)this.navigationState={backward:!0},this.navBackward(event);else{let s=S.find(this.contentViewChild.nativeElement.children[i-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),o=s[s.length-1];o.tabIndex="0",o.focus()}else if(1===this.numberOfMonths||i===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=S.findSingle(this.contentViewChild.nativeElement.children[i+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?S.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():S.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;i=S.find(this.contentViewChild.nativeElement,"month"===t
his.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else e=S.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){let e;if("month"===this.currentView){let i=S.find(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),r=S.findSingle(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month.p-highlight");i.forEach(s=>s.tabIndex=-1),e=r||i[0],0===i.length&&S.find(this.contentViewChild.nativeElement,'.p-monthpicker .p-monthpick
er-month.p-disabled[tabindex = "0"]').forEach(o=>o.tabIndex=-1)}else if("year"===this.currentView){let i=S.find(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),r=S.findSingle(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year.p-highlight");i.forEach(s=>s.tabIndex=-1),e=r||i[0],0===i.length&&S.find(this.contentViewChild.nativeElement,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(o=>o.tabIndex=-1)}else if(e=S.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let i=S.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");e=i||S.findSingle(this.contentViewChild.nativeElement,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}e&&(e.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{e.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=S.getFocusableElements(this.conten
tViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==r||0===r)if(this.focusTrap)i[i.length-1].focus();else{if(-1===r)return this.hideOverlay();if(0===r)return}else i[r-1].focus();else if(-1==r||r===i.length-1){if(!this.focusTrap&&-1!=r)return this.hideOverlay();i[0].focus()}else i[r+1].focus()}else i[0].focus();e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}validateTime(e,i,r,s){let o=this.value;const a=this.convertTo24Hour(e,s);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const l
=o?o.toDateString():null;return!(this.minDate&&l&&this.minDate.toDateString()===l&&(this.minDate.getHours()>a||this.minDate.getHours()===a&&(this.minDate.getMinutes()>i||this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()<a||this.maxDate.getHours()===a&&(this.maxDate.getMinutes()<i||this.maxDate.getMinutes()===i&&this.maxDate.getSeconds()<r)))}incrementHour(e){let r=this.currentHour+this.stepHour,s=this.pm;"24"==this.hourFormat?r=r>=24?r-24:r:"12"==this.hourFormat&&(this.currentHour<12&&r>11&&(s=!this.pm),r=r>=13?r-12:r),this.validateTime(r,this.currentMinute,this.currentSecond,s)&&(this.currentHour=r,this.pm=s),e.preventDefault()}onTimePickerElementMouseDown(e,i,r){this.disabled||(this.repeat(e,null,i,r),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTim
ePickerTimer(),this.updateTime())}repeat(e,i,r,s){let o=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,r,s),this.cd.markForCheck()},o),r){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=this.currentHour-this.stepHour,r=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(r=!this.pm),i=i<=0?12+i:i),this.validateTime(i,this.currentMinute,this.currentSecond,r)&&(this.currentHour=i,this.pm=r),e.preventDefault()}incrementMinute(e){let i=this.currentMinute+this.stepMinute;i=i>59?i-60:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}decrementMinute(e)
{let i=this.currentMinute-this.stepMinute;i=i<0?60+i:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSe
lection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const i=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,i)&&(this.pm=i,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let i=e.target.value;try{let r=this.parseValueFromString(i);this.isValidSelection(r)&&(this.updateModel(r),this.updateUI())}catch(r){this.updateModel(null)}this.filled=null!=i&&i.length,this.onInput.emit(e)}isValidSelection(e){let i=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(i=!1):e.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1))&&this.isRangeSelection()&&(i=e.length>1&&e[1]>e[0]),i}parseValueFromString(e){if(!e||0===e.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let r=e.split(this.multipleSeparator);i=[];fo
r(let s of r)i.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let r=e.split(" "+this.rangeSeparator+" ");i=[];for(let s=0;s<r.length;s++)i[s]=this.parseDateTime(r[s].trim())}return i}parseDateTime(e){let i,r=e.split(" ");if(this.timeOnly)i=new Date,this.populateTime(i,r[0],r[1]);else{const s=this.getDateFormat();if(this.showTime){let o="12"==this.hourFormat?r.pop():null,a=r.pop();i=this.parseDate(r.join(" "),s),this.populateTime(i,a,o)}else i=this.parseDate(e,s)}return i}populateTime(e,i,r){if("12"==this.hourFormat&&!r)throw"Invalid Time";this.pm="PM"===r||"pm"===r;let s=this.parseTime(i);e.setHours(s.hour),e.setMinutes(s.minute),e.setSeconds(s.second)}updateUI(){let e=this.value||this.defaultDate||new Date;Array.isArray(e)&&(e=e[0]),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(e.getHours()),this.currentMinute=e.getMinutes(),this.curren
tSecond=e.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild.nativeElement.focus()))}onOverlayAnimationStart(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=e.element,this.overlay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?Tt.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):Tt.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(e));break;case"void":this.onOverlayHide(),this.onClose.emit(e)}}onOverlayAnimationDone(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClick
Listener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&Tt.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):S.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width=S.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=S.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=S.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",S.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):S.relativePosition(this.overlay,this.inputfieldViewChild.nativeElement))}enableModality(e){this.mask||(this.mask=document.createElement("div"),this.mask.style.zIndex=String(parseInt(e.style.zIndex)-1),S.addMulti
pleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.disableModality()}),document.body.appendChild(this.mask),S.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(S.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.destroyMask.bind(this),this.mask.addEventListener("animationend",this.animationEndListener))}destroyMask(){document.body.removeChild(this.mask);let i,e=document.body.children;for(let r=0;r<e.length;r++)if(S.hasClass(e[r],"p-datepicker-mask-scrollblocker")){i=!0;break}i||S.removeClass(document.body,"p-overflow-hidden"),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&
&(this.mask.removeEventListener("animationend",this.animationEndListener),this.animationEndListener=null)}writeValue(e){this.value=e,this.value&&"string"==typeof this.value&&(this.value=this.parseValueFromString(this.value)),this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(Qt.FIRST_DAY_OF_WEEK)}formatDate(e,i){if(!e)return"";let r;const s=u=>{const d=r+1<i.length&&i.charAt(r+1)===u;return d&&r++,d},o=(u,d,_)=>{let y=""+d;if(s(u))for(;y.length<_;)y="0"+y;return y},a=(u,d,_,y)=>s(u)?y[d]:_[d];let l="",c=!1;if(e)for(r=0;r<i.length;r++)if(c)"'"!==i.charAt(r)||s("'")?l+=i.charAt(r):c=!1;else switch(i.charAt(r)){case"d":l+=o("d",e.getDate(),2);break;case"D":l+=a("D",e.getDay(),this.getTranslat
ion(Qt.DAY_NAMES_SHORT),this.getTranslation(Qt.DAY_NAMES));break;case"o":l+=o("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=o("m",e.getMonth()+1,2);break;case"M":l+=a("M",e.getMonth(),this.getTranslation(Qt.MONTH_NAMES_SHORT),this.getTranslation(Qt.MONTH_NAMES));break;case"y":l+=s("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":l+=e.getTime();break;case"!":l+=1e4*e.getTime()+this.ticksTo1970;break;case"'":s("'")?l+="'":c=!0;break;default:l+=i.charAt(r)}return l}formatTime(e){if(!e)return"";let i="",r=e.getHours(),s=e.getMinutes(),o=e.getSeconds();return"12"==this.hourFormat&&r>11&&12!=r&&(r-=12),i+="12"==this.hourFormat&&0===r?12:r<10?"0"+r:r,i+=":",i+=s<10?"0"+s:s,this.showSeconds&&(i+=":",i+=o<10?"0"+o:o),"12"==this.hourFormat&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid t
ime";let s=parseInt(i[0]),o=parseInt(i[1]),a=this.showSeconds?parseInt(i[2]):null;if(isNaN(s)||isNaN(o)||s>23||o>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:o,second:a}}parseDate(e,i){if(null==i||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let r,s,o,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,d=-1,_=-1,y=!1,D=A=>{let F=r+1<i.length&&i.charAt(r+1)===A;return F&&r++,F},T=A=>{let F=D(A),te="@"===A?14:"!"===A?20:"y"===A&&F?4:"o"===A?3:2,Le=new RegExp("^\\d{"+("y"===A?te:1)+","+te+"}"),Xe=e.substring(a).match(Le);if(!Xe)throw"Missing number at position "+a;return a+=Xe[0].length,parseInt(Xe[0],10)},k=(A,F,te)=>{let Ae=-1,Le=D(A)?te:F,Xe=[];for(let qe=0;qe<Le.length;qe++)Xe.push([qe,Le[qe]]);Xe.sort((qe,Dt)=>-
(qe[1].length-Dt[1].length));for(let qe=0;qe<Xe.length;qe++){let Dt=Xe[qe][1];if(e.substr(a,Dt.length).toLowerCase()===Dt.toLowerCase()){Ae=Xe[qe][0],a+=Dt.length;break}}if(-1!==Ae)return Ae+1;throw"Unknown name at position "+a},x=()=>{if(e.charAt(a)!==i.charAt(r))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(d=1),r=0;r<i.length;r++)if(y)"'"!==i.charAt(r)||D("'")?x():y=!1;else switch(i.charAt(r)){case"d":d=T("d");break;case"D":k("D",this.getTranslation(Qt.DAY_NAMES_SHORT),this.getTranslation(Qt.DAY_NAMES));break;case"o":_=T("o");break;case"m":u=T("m");break;case"M":u=k("M",this.getTranslation(Qt.MONTH_NAMES_SHORT),this.getTranslation(Qt.MONTH_NAMES));break;case"y":c=T("y");break;case"@":b=new Date(T("@")),c=b.getFullYear(),u=b.getMonth()+1,d=b.getDate();break;case"!":b=new Date((T("!")-this.ticksTo1970)/1e4),c=b.getFullYear(),u=b.getMonth()+1,d=b.getDate();break;case"'":D("'")?x():y=!0;break;default:x()}if(a<e.length&&(o=e.substr(a),!/^\s+/.test(o)))throw"E
xtra/unparsed characters found in date: "+o;if(-1===c?c=(new Date).getFullYear():c<100&&(c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=l?0:-100)),_>-1)for(u=1,d=_;s=this.getDaysCountInMonth(c,u-1),!(d<=s);)u++,d-=s;if(b=this.daylightSavingAdjust(new Date(c,u-1,d)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate()!==d)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let i=new Date,r={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,r),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement|
|(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.body.appendChild(this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(r=>!(!r.breakpoint||!r.numMonths)).sort((r,s)=>-1*r.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let r=0;r<i.length;r++){let{breakpoint:s,numMonths:o}=i[r],a=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n display: inline-flex !important;\n }\n `;for(let l=o;l<this.numberOfMonths;l++)a+=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${l+1}) {\n display: none !important;\n }\n `;e+=`\n @media screen and (max-width: ${s}) {\n
${a}\n }\n `}}this.responsiveStyleElement.innerHTML=e}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener))}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEv
entListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Lc(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return S.hasClass(e.target,"p-datepicker-prev")||S.hasClass(e.target,"p-datepicker-prev-icon")||S.hasClass(e.target,"p-datepicker-next")||S.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!S.isAndroid()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(
),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Tt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return t.\u0275fac=function(e){return new(e||t)(w(Se),w(dn),w(vt),w(Te),w(Pi),w(Vc))},t.\u0275cmp=Q({type:t,selectors:[["p-calendar"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(He(b$,5),He(w$,5),He(C$,5)),2&e){let r;K(r=Y())&&(i.containerViewChild=r.first),K(r=Y())&&(i.inputfieldViewChild=r.first),K(r=Y())&&(i.content=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,i){2&e&&si("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focus)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"
inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panel
StyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",view:"view",defaultDate:"defaultDate",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[be([h5])],ngContentSelectors:d5,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","clic
k",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],["type","button","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger",3,"icon","disabled","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf
"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[1,"p-datepicker-next-icon","pi","pi-chevron-right"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],[1,"p-datepicker-prev-icon","pi","pi-chevron-left"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ng
For","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],[3,"ngClass"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"pi","pi-chevron-up"],[1,"pi","pi-chevron-down"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","key
down.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(e,i){1&e&&(Sn(c5),h(0,"span",0,1),v(2,S$,3,16,"ng-template",2),v(3,l5,9,28,"div",3),p()),2&e&&(ge(i.styleClass),m("ngClass",Si(6,u5,i.showIcon,i.timeOnly,i.disabled,i.focus))("ngStyle",i.style),g(2),m("ngIf",!i.inline),g(1),m("ngIf",i.inline||i.overlayVisible))},directives:[Je,lt,Me,Df,ui,Ot,Mt],styles:[".p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datep
icker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justi
fy-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}\n"],encapsulation:2,data:{animation:[Ir("overlayAnimation",[rr("visibleTouchUI",Qe({transform:"translate(-50%,-50%)",opacity:1})),jt("void => visible",[Qe({opacity:0,transform:"scaleY(0.8)"}),Pt("{{showTransitionParams}}",Qe({opacity:1,transform:"*"}))]),jt("visible => void",[Pt("{{hideTransitionParams}}",Qe({opacity:0}))]),jt("void => visibleTouchUI",[Qe({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),Pt("{{showTransitionParams}}")]),jt("visibleTouchUI => void",[Pt("{{hideTransitionParams}}",Qe({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])
])]},changeDetection:0}),t})(),f5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,Sa,Et,hn],Sa,Et]}),t})();const g5=["container"],m5=["resizeHelper"],_5=["reorderIndicatorUp"],y5=["reorderIndicatorDown"],v5=["wrapper"],b5=["table"],w5=["tableHeader"];function C5(t,n){if(1&t&&(h(0,"div",14),I(1,"i"),p()),2&t){const e=f();g(1),ge("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function D5(t,n){1&t&&H(0)}function S5(t,n){if(1&t&&(h(0,"div",15),v(1,D5,1,0,"ng-container",16),p()),2&t){const e=f();g(1),m("ngTemplateOutlet",e.captionTemplate)}}function T5(t,n){if(1&t){const e=z();h(0,"p-paginator",17),M("onPageChange",function(r){return C(e),f().onPageChange(r)}),p()}if(2&t){const e=f();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.pagina
torRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function E5(t,n){1&t&&H(0)}function x5(t,n){1&t&&H(0)}function I5(t,n){if(1&t&&I(0,"tbody",25),2&t){const e=f(2);m("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.frozenBodyTemplate)("frozen",!0)}}function k5(t,n){1&t&&H(0)}const ar=function(t){return{$implicit:t}};function M5(t,n){if(1&t&&(h(0,"tfoot",26),v(1,k5,1,0,"ng-container",20),p()),2&t){const e=f(2);g(1),m("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",G(2,ar,e.columns))}}function O5(t,n){if(1&t&&(h
(0,"table",18,19),v(2,E5,1,0,"ng-container",20),h(3,"thead",21),v(4,x5,1,0,"ng-container",20),p(),v(5,I5,1,5,"tbody",22),I(6,"tbody",23),v(7,M5,2,4,"tfoot",24),p()),2&t){const e=f();m("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),q("id",e.id+"-table"),g(2),m("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",G(12,ar,e.columns)),g(2),m("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",G(14,ar,e.columns)),g(1),m("ngIf",e.frozenValue||e.frozenBodyTemplate),g(1),m("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),g(1),m("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function R5(t,n){1&t&&H(0)}function A5(t,n){1&t&&H(0)}function P5(t,n){if(1&t&&I(0,"tbody",25),2&t){const e=f(2);m("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate)("frozen",!0)}}function F5(t,n){1&t&&H(0)}function L5(t,n){if(1&t&&(h(0,"tfoot",26),v(1,F5,1,0,"ng-container",20),p
()),2&t){const e=f(2);g(1),m("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",G(2,ar,e.columns))}}function N5(t,n){if(1&t){const e=z();h(0,"cdk-virtual-scroll-viewport",27),M("scrolledIndexChange",function(r){return C(e),f().onScrollIndexChange(r)}),h(1,"table",18,19),v(3,R5,1,0,"ng-container",20),h(4,"thead",21,28),v(6,A5,1,0,"ng-container",20),p(),v(7,P5,1,5,"tbody",22),I(8,"tbody",23),v(9,L5,2,4,"tfoot",24),p(),p()}if(2&t){const e=f();wi("height","flex"!==e.scrollHeight?e.scrollHeight:void 0),m("itemSize",e.virtualRowHeight)("minBufferPx",e.minBufferPx)("maxBufferPx",e.maxBufferPx),g(1),m("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),q("id",e.id+"-table"),g(2),m("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",G(17,ar,e.columns)),g(3),m("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",G(19,ar,e.columns)),g(1),m("ngIf",e.frozenValue||e.frozenBodyTemplate),g(1),m("value",e.dataToRen
der)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),g(1),m("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function V5(t,n){if(1&t){const e=z();h(0,"p-paginator",29),M("onPageChange",function(r){return C(e),f().onPageChange(r)}),p()}if(2&t){const e=f();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function B5(t,n){1&t&&H(0)}function
H5(t,n){if(1&t&&(h(0,"div",30),v(1,B5,1,0,"ng-container",16),p()),2&t){const e=f();g(1),m("ngTemplateOutlet",e.summaryTemplate)}}function z5(t,n){1&t&&I(0,"div",31,32)}function j5(t,n){1&t&&I(0,"span",33,34)}function U5(t,n){1&t&&I(0,"span",35,36)}const $5=function(t,n,e,i,r,s,o,a,l,c,u,d,_,y){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-auto-layout":n,"p-datatable-resizable":e,"p-datatable-resizable-fit":i,"p-datatable-scrollable":r,"p-datatable-scrollable-vertical":s,"p-datatable-scrollable-horizontal":o,"p-datatable-scrollable-both":a,"p-datatable-flex-scrollable":l,"p-datatable-responsive-stack":c,"p-datatable-responsive-scroll":u,"p-datatable-responsive":d,"p-datatable-grouped-header":_,"p-datatable-grouped-footer":y}},G5=function(t){return{height:t}},W5=["pTableBody",""];function q5(t,n){1&t&&H(0)}const pu=function(t,n,e,i,r){return{$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r}};function K5(t,n){if(1&t&&(de(0,3),v(1,q5,1,0,"ng-containe
r",4),he()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",yr(2,pu,i,s.dt.paginator?s.dt.first+r:r,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function Y5(t,n){1&t&&H(0)}function Q5(t,n){if(1&t&&(de(0),v(1,Y5,1,0,"ng-container",4),he()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.template)("ngTemplateOutletContext",yr(2,pu,i,s.dt.paginator?s.dt.first+r:r,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function Z5(t,n){1&t&&H(0)}const J5=function(t,n,e,i,r,s,o){return{$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r,rowgroup:s,rowspan:o}};function X5(t,n){if(1&t&&(de(0),v(1,Z5,1,0,"ng-container",4),he()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.template)("ngTemplateOutletContext",function Uv(t,n,e,i,r,s,o,a,l,c){const u=$t()+t,d=O();let _=Dn(d,u,e,i,r,s);return bl(d,u+4,o,a,l)||_?ri(d,u+7,c?n.call(
c,e,i,r,s,o,a,l):n(e,i,r,s,o,a,l)):Fo(d,u+7)}(2,J5,i,s.dt.paginator?s.dt.first+r:r,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen,s.shouldRenderRowspan(s.value,i,r),s.calculateRowGroupSize(s.value,i,r)))}}function e8(t,n){1&t&&H(0)}function t8(t,n){if(1&t&&(de(0,3),v(1,e8,1,0,"ng-container",4),he()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",yr(2,pu,i,s.dt.paginator?s.dt.first+r:r,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function n8(t,n){if(1&t&&(v(0,K5,2,8,"ng-container",2),v(1,Q5,2,8,"ng-container",0),v(2,X5,2,10,"ng-container",0),v(3,t8,2,8,"ng-container",2)),2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngIf",r.dt.groupHeaderTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,i)),g(1),m("ngIf","rowspan"!==r.dt.rowGroupMode),g(1),m("ngIf","rowspan"===r.dt.rowGroupMode),g(1),m("ngIf",r.dt.groupFooterTemplate&&"subheader"===r.dt.ro
wGroupMode&&r.shouldRenderRowGroupFooter(r.value,e,i))}}function r8(t,n){if(1&t&&(de(0),v(1,n8,4,4,"ng-template",1),he()),2&t){const e=f();g(1),m("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function s8(t,n){1&t&&H(0)}function o8(t,n){if(1&t&&v(0,s8,1,0,"ng-container",4),2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngTemplateOutlet",e?r.template:r.dt.loadingBodyTemplate)("ngTemplateOutletContext",yr(2,pu,e,r.dt.paginator?r.dt.first+i:i,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(e),r.frozen))}}function a8(t,n){if(1&t&&(de(0),v(1,o8,1,8,"ng-template",5),he()),2&t){const e=f();g(1),m("cdkVirtualForOf",e.dt.filteredValue||e.dt.value)("cdkVirtualForTrackBy",e.dt.rowTrackBy)("cdkVirtualForTemplateCacheSize",0)}}function l8(t,n){1&t&&H(0)}const fu=function(t,n,e,i,r,s){return{$implicit:t,rowIndex:n,columns:e,expanded:i,editing:r,frozen:s}};function c8(t,n){if(1&t&&(de(0),v(1,l8,1,0,"ng-container",4),he()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutl
et",s.template)("ngTemplateOutletContext",Is(2,fu,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function u8(t,n){1&t&&H(0)}function d8(t,n){if(1&t&&(de(0,3),v(1,u8,1,0,"ng-container",4),he()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Is(2,fu,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function h8(t,n){1&t&&H(0)}function p8(t,n){1&t&&H(0)}function f8(t,n){if(1&t&&(de(0,3),v(1,p8,1,0,"ng-container",4),he()),2&t){const e=f(2),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Is(2,fu,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}const LD=function(t,n,e,i){return{$implicit:t,rowIndex:n,columns:e,frozen:i}};function g8(t,n){if(1
&t&&(de(0),v(1,h8,1,0,"ng-container",4),v(2,f8,2,9,"ng-container",2),he()),2&t){const e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",Si(3,LD,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.frozen)),g(1),m("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,i,r))}}function m8(t,n){if(1&t&&(v(0,c8,2,9,"ng-container",0),v(1,d8,2,9,"ng-container",2),v(2,g8,3,8,"ng-container",0)),2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngIf",!r.dt.groupHeaderTemplate),g(1),m("ngIf",r.dt.groupHeaderTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,i)),g(1),m("ngIf",r.dt.isRowExpanded(e))}}function _8(t,n){if(1&t&&(de(0),v(1,m8,3,3,"ng-template",1),he()),2&t){const e=f();g(1),m("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function y8(t,n){1&t&&H(0)}function v8(t,n){1&t&&H(0)}function b8(t,n){if(1&t&&(de(0),v(1,v8,1,0,"ng-container",4),he()),2&t){cons
t e=f(),i=e.$implicit,r=e.index,s=f(2);g(1),m("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",Si(2,LD,i,s.dt.paginator?s.dt.first+r:r,s.columns,s.frozen))}}function w8(t,n){if(1&t&&(v(0,y8,1,0,"ng-container",4),v(1,b8,2,7,"ng-container",0)),2&t){const e=n.$implicit,i=n.index,r=f(2);m("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Is(3,fu,e,r.dt.paginator?r.dt.first+i:i,r.columns,r.dt.isRowExpanded(e),"row"===r.dt.editMode&&r.dt.isRowEditing(e),r.frozen)),g(1),m("ngIf",r.dt.isRowExpanded(e))}}function C8(t,n){if(1&t&&(de(0),v(1,w8,2,10,"ng-template",1),he()),2&t){const e=f();g(1),m("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function D8(t,n){1&t&&H(0)}const ND=function(t,n){return{$implicit:t,frozen:n}};function S8(t,n){if(1&t&&(de(0),v(1,D8,1,0,"ng-container",4),he()),2&t){const e=f();g(1),m("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",it(2,ND,e.columns,e.frozen))}}function T8(t,n){1&t&&H(0)}function E8(t,n){if
(1&t&&(de(0),v(1,T8,1,0,"ng-container",4),he()),2&t){const e=f();g(1),m("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",it(2,ND,e.columns,e.frozen))}}let gu=(()=>{class t{constructor(){this.sortSource=new Oe,this.selectionSource=new Oe,this.contextMenuSource=new Oe,this.valueSource=new Oe,this.totalRecordsSource=new Oe,this.columnsSource=new Oe,this.resetSource=new Oe,this.sortSource$=this.sortSource.asObservable(),this.selectionSource$=this.selectionSource.asObservable(),this.contextMenuSource$=this.contextMenuSource.asObservable(),this.valueSource$=this.valueSource.asObservable(),this.totalRecordsSource$=this.totalRecordsSource.asObservable(),this.columnsSource$=this.columnsSource.asObservable(),this.resetSource$=this.resetSource.asObservable()}onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onResetChange(){this.resetSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next
(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),mu=(()=>{class t{constructor(e,i,r,s,o,a){this.el=e,this.zone=i,this.tableService=r,this.cd=s,this.filterService=o,this.overlayService=a,this.pageLinks=5,this.alwaysShowPaginator=!0,this.paginatorPosition="bottom",this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.defaultSortOrder=1,this.sortMode="single",this.resetPageOnSort=!0,this.selectAllChange=new R,this.selectionChange=new R,this.contextMenuSelectionChange=new R,this.contextMenuSelectionMode="separate",this.rowTrackBy=(l,c)=>c,this.lazy=!1,this.lazyLoadOnInit=!0,this.compareSelectionBy="deepEquals",this.csvSeparator=",",this.exportFilename="download",this.filters={},this.filterDelay=300,this.expandedRowKeys={},this.
editingRowKeys={},this.rowExpandMode="multiple",this.scrollDirection="vertical",this.virtualScrollDelay=250,this.virtualRowHeight=28,this.columnResizeMode="fit",this.loadingIcon="pi pi-spinner",this.showLoader=!0,this.showInitialSortBadge=!0,this.stateStorage="session",this.editMode="cell",this.groupRowsByOrder=1,this.responsiveLayout="stack",this.breakpoint="960px",this.onRowSelect=new R,this.onRowUnselect=new R,this.onPage=new R,this.onSort=new R,this.onFilter=new R,this.onLazyLoad=new R,this.onRowExpand=new R,this.onRowCollapse=new R,this.onContextMenuSelect=new R,this.onColResize=new R,this.onColReorder=new R,this.onRowReorder=new R,this.onEditInit=new R,this.onEditComplete=new R,this.onEditCancel=new R,this.onHeaderCheckboxToggle=new R,this.sortFunction=new R,this.firstChange=new R,this.rowsChange=new R,this.onStateSave=new R,this.onStateRestore=new R,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizi
ng=!1,this.rowGroupHeaderStyleObject={},this.id=va()}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;brea
k;case"rowspan":this.rowspanTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenrows":this.frozenRowsTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths(),this.scrollable&&this.virtualScroll&&(this.virtualScrollSubscription=this.virtualScrollBody.renderedRangeStream.subscribe(e=>{this.tableHeaderViewCh
ild.nativeElement.style.top=e.start*this.virtualRowHeight*-1+"px"}))}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.curr
entValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return
this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}get dataToRender(){let e=this.filteredValue||this.value;return e?this.paginator&&!this.lazy?e.slice(this.first,this.first+this.rows):e:[]}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(V.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(V.resolveFieldData(this._selection,this.dataKey))]=1}onP
ageChange(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows}),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let i=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let r=i.metaKey||i.ctrlKey,s=this.getSortMeta(e.field);s?r?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!r||!this.multiSortMeta)&&(this._multiSortMeta=[],
this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,i=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&i){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:i}):(this.value.sort((s,o)=>{let a=V.resolveFieldData(s,e),l=V.resolveFieldData(o,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):a<l?-1:a>l?1:0,i*c}),this._value=[...t
his.value]),this.hasFilter()&&this._filter());let r={field:e,order:i};this.onSort.emit(r),this.tableService.onSort(r)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,i)=>this.multisortField(e,i,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,i,r,s){let o=V.resolveFieldData(e,r[s].field),a=V.resolveFieldData(i,r[s].field),l=null;if(null==o&&null!=a)l=-1;else if(null!=o&&null==a)l=1;else if(null==o&&null==a)l=0;else if("string"==typeof o||o i
nstanceof String){if(o.localeCompare&&o!=a)return r[s].order*o.localeCompare(a)}else l=o<a?-1:1;return o==a?r.length-1>s?this.multisortField(e,i,r,s+1):0:r[s].order*l}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field===e)return this.multiSortMeta[i];return null}isSorted(e){if("single"===this.sortMode)return this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let i=!1;if(this.multiSortMeta)for(let r=0;r<this.multiSortMeta.length;r++)if(this.multiSortMeta[r].field==e){i=!0;break}return i}}handleRowClick(e){let i=e.originalEvent.target,r=i.nodeName,s=i.parentElement&&i.parentElement.nodeName;if("INPUT"!=r&&"BUTTON"!=r&&"A"!=r&&"INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&!S.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let o=e.rowData,a=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowInd
ex)S.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=a,this.selectRange(e.originalEvent,a);else{let l=this.isSelected(o);if(!l&&!this.isRowSelectable(o,a))return;let c=!this.rowTouched&&this.metaKeySelection,u=this.dataKey?String(V.resolveFieldData(o,this.dataKey)):null;if(this.anchorRowIndex=a,this.rangeRowIndex=a,c){let d=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(l&&d){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let _=this.findIndexInSelection(o);this._selection=this.selection.filter((y,b)=>b!=_),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(d?this._selection=this.selection||[]:(this.
_selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let d=this.findIndexInSelection(o);this._selection=this.selection.filter((_,y)=>y!=d),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,o]:[o],this.selection
Change.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const i=e.rowData,r=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:i,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(i);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(i),o=this.dataKey?String(V.resolveFieldData(i,this.dataKey)):null;if(!s){if(!this.isRowSelectable(i,r))return;this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelection
Mode()&&(this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:i,index:e.rowIndex})}}}selectRange(e,i){let r,s;this.anchorRowIndex>i?(r=i,s=this.anchorRowIndex):this.anchorRowIndex<i?(r=this.anchorRowIndex,s=i):(r=i,s=i),this.lazy&&this.paginator&&(r-=this.first,s-=this.first);let o=[];for(let a=r;a<=s;a++){let l=this.filteredValue?this.filteredValue[a]:this.value[a];if(!this.isSelected(l)){if(!this.isRowSelectable(l,i))continue;o.push(l),this._selection=[...this.selection,l];let c=this.dataKey?String(V.resolveFieldData(l,this.dataKey)):null;c&&(this.selectionKeys[c]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:o,type:"row"})}clearSelectionRange(e){let i,r;this.rangeRowIndex>this.anchorRowIndex?(i=this.anchorRowIndex,r=this.rangeRowIndex)
:this.rangeRowIndex<this.anchorRowIndex?(i=this.rangeRowIndex,r=this.anchorRowIndex):(i=this.rangeRowIndex,r=this.rangeRowIndex);for(let s=i;s<=r;s++){let o=this.value[s],a=this.findIndexInSelection(o);this._selection=this.selection.filter((c,u)=>u!=a);let l=this.dataKey?String(V.resolveFieldData(o,this.dataKey)):null;l&&delete this.selectionKeys[l],this.onRowUnselect.emit({originalEvent:e,data:o,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[V.resolveFieldData(e,this.dataKey)]:this.selection instanceof Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let i=-1;if(this.selection&&this.selection.length)for(let r=0;r<this.selection.length;r++)if(this.equals(e,this.selection[r])){i=r;break}return i}isRowSelectable(e,i){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:i}))}toggleRowWithRadio(e,i){if(this.preventSelectionSetterPropagation=!0,this.selection!=i){if(!this.isRowSelect
able(i,e.rowIndex))return;this._selection=i,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(V.resolveFieldData(i,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,i){this.selection=this.selection||[];let r=this.isSelected(i),s=this.dataKey?String(V.resolveFieldData(i,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,r){let o=this.findIndexInSelection(i);this._selection=this.selection.filter((a,l)=>l!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.
isRowSelectable(i,e.rowIndex))return;this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,i){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:i});else{const r=this.selectionPageOnly?this.dataToRender:this.filteredValue||this.value||[];let s=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!r.some(a=>this.equals(o,a))):[];i&&(s=this.frozenValue?[...s,...this.frozenValue,...r]:[...s,...r],s=this.rowSelectable?s.filter((o,a)=>this.rowSelectable({data:o,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent
:e,checked:i}),this.isStateful()&&this.saveState()}}equals(e,i){return"equals"===this.compareSelectionBy?e===i:V.equals(e,i,this.dataKey)}filter(e,i,r){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:e,matchMode:r},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,i){this.filter(e,"global",i)}isFilterBlank(e){return null==e||"string"==typeof e&&0==e.trim().length||e instanceof Array&&0==e.length}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[
];for(let i=0;i<this.value.length;i++){let a,r=!0,s=!1,o=!1;for(let l in this.filters)if(this.filters.hasOwnProperty(l)&&"global"!==l){o=!0;let c=l,u=this.filters[c];if(Array.isArray(u)){for(let d of u)if(r=this.executeLocalFilter(c,this.value[i],d),d.operator===W0.OR&&r||d.operator===W0.AND&&!r)break}else r=this.executeLocalFilter(c,this.value[i],u);if(!r)break}if(this.filters.global&&!s&&e)for(let l=0;l<e.length&&(s=this.filterService.filters[this.filters.global.matchMode](V.resolveFieldData(this.value[i],e[l].field||e[l]),this.filters.global.value,this.filterLocale),!s);l++);a=this.filters.global?o?o&&r&&s:s:o&&r,a&&this.filteredValue.push(this.value[i])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}else this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0)}this.onFilter.emit({filters:this.filters,filteredV
alue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(e,i,r){let s=r.value,o=r.matchMode||At.STARTS_WITH,a=V.resolveFieldData(i,e);return this.filterService.filters[o](a,s,this.filterLocale)}hasFilter(){let e=!0;for(let i in this.filters)if(this.filters.hasOwnProperty(i)){e=!1;break}return!e}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.filters.global&&(this.filters.global.value=null),this.filteredValue=null,this.tableService.onResetChange(),this.f
irst=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}reset(){this.clear()}exportCSV(e){let i,r="",s=this.columns;e&&e.selectionOnly?i=this.selection||[]:(i=this.filteredValue||this.value,this.frozenValue&&(i=i?[...this.frozenValue,...i]:this.frozenValue));for(let l=0;l<s.length;l++){let c=s[l];!1!==c.exportable&&c.field&&(r+='"'+(c.header||c.field)+'"',l<s.length-1&&(r+=this.csvSeparator))}i.forEach((l,c)=>{r+="\n";for(let u=0;u<s.length;u++){let d=s[u];if(!1!==d.exportable&&d.field){let _=V.resolveFieldData(l,d.field);_=null!=_?this.exportFunction?this.exportFunction({data:_,field:d.field}):String(_).replace(/"/g,'""'):"",r+='"'+_+'"',u<s.length-1&&(r+=this.csvSeparator)}}});let o=new Blob([r],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.style.display="none",document.body.appendChild(a),void 0!==a.download?(a.setAttribute("href",URL.createObjectURL(o)),a.setAttr
ibute("download",this.exportFilename+".csv"),a.click()):(r="data:text/csv;charset=utf-8,"+r,window.open(encodeURI(r))),document.body.removeChild(a)}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.virtualScrollBody&&this.virtualScrollBody.scrollToIndex(e)}onScrollIndexChange(e){this.lazy&&(this.virtualScrollTimeout&&clearTimeout(this.virtualScrollTimeout),this.virtualScrollTimeout=setTimeout(()=>{let i=Math.floor(e/this.rows),r=0===i?0:(i-1)*this.rows,s=0===i?2*this.rows:3*this.rows;i!==this.virtualPage&&(this.virtualPage=i,this.onLazyLoad.emit({first:r,rows:s,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}))},this.virtualScrollDelay))}scrollTo(e){this.virtualScrollBody?this.virtualScrollBody.scrollTo(e):this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement
.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top)}updateEditingCell(e,i,r,s){this.editingCell=e,this.editingCellData=i,this.editingCellField=r,this.editingCellRowIndex=s,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===S.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(S.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1},document.addEventListener("click",this.documen
tEditListener))}unbindDocumentEditListener(){this.documentEditListener&&(document.removeEventListener("click",this.documentEditListener),this.documentEditListener=null)}initRowEdit(e){let i=String(V.resolveFieldData(e,this.dataKey));this.editingRowKeys[i]=!0}saveRowEdit(e,i){if(0===S.find(i,".ng-invalid.ng-dirty").length){let r=String(V.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[r]}}cancelRowEdit(e){let i=String(V.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}toggleRow(e,i){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let r=String(V.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[r]?(delete this.expandedRowKeys[r],this.onRowCollapse.emit({originalEvent:i,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[r]=!0,this.onRowExpand.emit({originalEvent:i,data:e})),i&&i.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKey
s[String(V.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(V.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let i=S.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-i+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let i=S.getOffset(this.containerViewChild.nativeElement).left;S.addClass(this.containerViewChild.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-i+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperVie
wChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,r=this.resizeColumnElement.offsetWidth+e;if(r>=(this.resizeColumnElement.style.minWidth||15)){if("fit"===this.columnResizeMode){let o=this.resizeColumnElement.nextElementSibling,a=o.offsetWidth-e;r>15&&a>15&&(this.scrollable?this.resizeTableCells(r,a):(this.resizeColumnElement.style.width=r+"px",o&&(o.style.width=a+"px")))}else if("expand"===this.columnResizeMode){let o=this.tableViewChild.nativeElement.offsetWidth+e;this.tableViewChild.nativeElement.style.minWidth=o+"px",this.resizeColumnElement.style.width=r+"px",this.scrollable?this.resizeTableCells(r,null):this.tableViewChild.nativeElement.style.width=o+"px"}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",S.removeClass(this.containerViewChild.nativeElement,"p-unselectable-
text")}resizeTableCells(e,i){let r=S.index(this.resizeColumnElement),s=[];const o=S.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");S.find(o,"tr > th").forEach(c=>s.push(S.getOuterWidth(c))),this.destroyStyleElement(),this.createStyleElement();let l="";s.forEach((c,u)=>{let d=u===r?e:i&&u===r+1?i:c;l+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${u+1}) {\n flex: 0 0 ${d}px !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${u+1}) {\n flex: 0 0 ${d}px !important;\n }\n `}),this.styleElement.innerHTML=l}onColumnDragStart(e,i){this.reorderIconWidth=S.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=S.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=i,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,i){if(thi
s.reorderableColumns&&this.draggedColumn&&i){e.preventDefault();let r=S.getOffset(this.containerViewChild.nativeElement),s=S.getOffset(i);if(this.draggedColumn!=i){let o=S.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),a=S.indexWithinGroup(i,"preorderablecolumn"),l=s.left-r.left,u=s.left+i.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-r.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-r.top+i.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),a-
o==1&&-1===this.dropPosition||a-o==-1&&1===this.dropPosition?(this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none"):(this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block")}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&(e.preventDefault(),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none")}onColumnDrop(e,i){if(e.preventDefault(),this.draggedColumn){let r=S.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=S.indexWithinGroup(i,"preorderablecolumn"),o=r!=s;o&&(s-r==1&&-1===this.dropPosition||r-s==1&&1===this.dropPosition)&&(o=!1),o&&s<r&&1===this.dropPosition&&(s+=1),o&&s>r&&-1===this.dropPosition&&(s-=1),o&&(V.reorderArray(this.columns,r,s),this.onColReorder.emit(
{dragIndex:r,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,i){this.rowDragging=!0,this.draggedRowIndex=i,e.dataTransfer.setData("text","b")}onRowDragOver(e,i,r){if(this.rowDragging&&this.draggedRowIndex!==i){let s=S.getOffset(r).top+S.getWindowScrollTop(),o=e.pageY,a=s+S.getOuterHeight(r)/2,l=r.previousElementSibling;o<a?(S.removeClass(r,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=i,l?S.addClass(l,"p-datatable-dragpoint-bottom"):S.addClass(r,"p-datatable-dragpoint-top")):(l?S.removeClass(l,"p-datatable-dragpoint-bottom"):S.addClass(r,"p-datatable-dragpoint-top"),this.droppedRowIndex=i+1,S.addClass(r,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,i){let r=i.previ
ousElementSibling;r&&S.removeClass(r,"p-datatable-dragpoint-bottom"),S.removeClass(i,"p-datatable-dragpoint-bottom"),S.removeClass(i,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,i){if(null!=this.droppedRowIndex){let r=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;V.reorderArray(this.value,this.draggedRowIndex,r),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:r})}this.onRowDragLeave(e,i),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return nul
l!=this.stateKey}saveState(){const e=this.getStorage();let i={};this.paginator&&(i.first=this.first,i.rows=this.rows),this.sortField&&(i.sortField=this.sortField,i.sortOrder=this.sortOrder),this.multiSortMeta&&(i.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(i.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(i),this.reorderableColumns&&this.saveColumnOrder(i),this.selection&&(i.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(i.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(i)),this.onStateSave.emit(i)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const i=this.getStorage().getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(i){let o=JSON.parse(i,function(o,a){return"string"==typeof a&&r.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=o.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=o.rows
,this.rowsChange.emit(this.rows))),o.sortField&&(this.restoringSort=!0,this._sortField=o.sortField,this._sortOrder=o.sortOrder),o.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=o.multiSortMeta),o.filters&&(this.restoringFilter=!0,this.filters=o.filters),this.resizableColumns&&(this.columnWidthsState=o.columnWidths,this.tableWidthState=o.tableWidth),o.expandedRowKeys&&(this.expandedRowKeys=o.expandedRowKeys),o.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(o.selection)),this.stateRestored=!0,this.onStateRestore.emit(o)}}saveColumnWidths(e){let i=[];S.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr > th").forEach(s=>i.push(S.getOuterWidth(s))),e.columnWidths=i.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=S.getOuterWidth(this.tableViewChild.nativeElement)+"px")}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&(this.tableView
Child.nativeElement.style.width=this.tableWidthState,this.tableViewChild.nativeElement.style.minWidth=this.tableWidthState,this.containerViewChild.nativeElement.style.width=this.tableWidthState),this.createStyleElement(),this.scrollable&&e&&e.length>0){let i="";e.forEach((r,s)=>{i+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}) {\n flex: 0 0 ${r}px;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}) {\n flex: 0 0 ${r}px;\n }\n `}),this.styleElement.innerHTML=i}else S.find(this.tableViewChild.nativeElement,".p-datatable-thead > tr > th").forEach((i,r)=>{i.style.width=e[r]+"px"})}}saveColumnOrder(e){if(this.columns){let i=[];this.columns.map(r=>{i.push(r.field||r.key)}),e.columnOrder=i}}restoreColumnOrder(){const i=this.getStorage().getItem(this.st
ateKey);if(i){let s=JSON.parse(i).columnOrder;if(s){let o=[];s.map(a=>{let l=this.findColumnByKey(a);l&&o.push(l)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(!this.columns)return null;for(let i of this.columns)if(i.key===e||i.field===e)return i}createStyleElement(){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.head.appendChild(this.responsiveStyleElement),this.responsiveStyleElement.innerHTML=`\n@media screen and (max-width: ${this.breakpoint}) {\n #${this.id} .p-datatable-thead > tr > th,\n #${this.id} .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id} .p-datatable-tbody > tr > td {\n
display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id} .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id} .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n`)}destroyResponsiveStyle(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.virtualScrollSubscription&&this.virtualScrollSubscription.unsubscribe(),this.destroyStyleElement(),this.destroyResponsiveStyle()}}return t.\
u0275fac=function(e){return new(e||t)(w(Se),w(Te),w(gu),w(vt),w(Nc),w(Vc))},t.\u0275cmp=Q({type:t,selectors:[["p-table"]],contentQueries:function(e,i,r){if(1&e&&Ye(r,Ct,4),2&e){let s;K(s=Y())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(He(g5,5),He(m5,5),He(_5,5),He(y5,5),He(v5,5),He(b5,5),He(w5,5),He(Da,5)),2&e){let r;K(r=Y())&&(i.containerViewChild=r.first),K(r=Y())&&(i.resizeHelperViewChild=r.first),K(r=Y())&&(i.reorderIndicatorUpViewChild=r.first),K(r=Y())&&(i.reorderIndicatorDownViewChild=r.first),K(r=Y())&&(i.wrapperViewChild=r.first),K(r=Y())&&(i.tableViewChild=r.first),K(r=Y())&&(i.tableHeaderViewChild=r.first),K(r=Y())&&(i.virtualScrollBody=r.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginator
Position:"paginatorPosition",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filt
erLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollDelay:"virtualScrollDelay",virtualRowHeight:"virtualRowHeight",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",value:"value",c
olumns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll"},outputs:{selectAllChange:"selectAllChange",selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[be([gu]),gt],decls:14,vars:33,consts:[[3,"ngStyle","ngClass"],["container",""],["cl
ass","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],["role","table","class","p-datatable-table",3,"ngClass","ngStyle",4,"ngIf"],["tabindex","0","class","p-datatable-virtual-scrollable-body",3,"itemSize","height","minBufferPx","maxBufferPx","scrolledIndexChange",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItem
Template","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","pi pi-arrow-down p-datatable-reorder-indicator-up","style","display:none",4,"ngIf"],["class","pi pi-arrow-up p-datatable-reorder-indicator-down","style","display:none",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[1,"p-datatable-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],["role","table",1,"p-datatable-table",3,"ngClass","ngStyle"],["table",""],[4,"ngTemplateOutlet","ngTemplateOutletCo
ntext"],[1,"p-datatable-thead"],["class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],[1,"p-datatable-tbody",3,"value","pTableBody","pTableBodyTemplate"],["class","p-datatable-tfoot",4,"ngIf"],[1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],[1,"p-datatable-tfoot"],["tabindex","0",1,"p-datatable-virtual-scrollable-body",3,"itemSize","minBufferPx","maxBufferPx","scrolledIndexChange"],["tableHeader",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHel
per",""],[1,"pi","pi-arrow-down","p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"pi","pi-arrow-up","p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(e,i){1&e&&(h(0,"div",0,1),v(2,C5,2,2,"div",2),v(3,S5,2,1,"div",3),v(4,T5,1,17,"p-paginator",4),h(5,"div",5,6),v(7,O5,8,16,"table",7),v(8,N5,10,21,"cdk-virtual-scroll-viewport",8),p(),v(9,V5,1,17,"p-paginator",9),v(10,H5,2,1,"div",10),v(11,z5,2,0,"div",11),v(12,j5,2,0,"span",12),v(13,U5,2,0,"span",13),p()),2&e&&(ge(i.styleClass),m("ngStyle",i.style)("ngClass",Ch(16,$5,[i.rowHover||i.selectionMode,i.autoLayout,i.resizableColumns,i.resizableColumns&&"fit"===i.columnResizeMode,i.scrollable,i.scrollable&&"vertical"===i.scrollDirection,i.scrollable&&"horizontal"===i.scrollDirection,i.scrollable&&"both"===i.scrollDirection,i.scrollable&&"flex"===i.scrollHeight,"stack"===i.responsiveLayout,"scroll"===i.responsiveLayout,i.responsive,null!=i.headerGroupedTe
mplate,null!=i.footerGroupedTemplate])),q("id",i.id),g(2),m("ngIf",i.loading&&i.showLoader),g(1),m("ngIf",i.captionTemplate),g(1),m("ngIf",i.paginator&&("top"===i.paginatorPosition||"both"==i.paginatorPosition)),g(1),m("ngStyle",G(31,G5,i.scrollHeight)),g(2),m("ngIf",!i.virtualScroll),g(1),m("ngIf",i.virtualScroll),g(1),m("ngIf",i.paginator&&("bottom"===i.paginatorPosition||"both"==i.paginatorPosition)),g(1),m("ngIf",i.summaryTemplate),g(1),m("ngIf",i.resizableColumns),g(1),m("ngIf",i.reorderableColumns),g(1),m("ngIf",i.reorderableColumns))},directives:function(){return[lt,Je,Me,Ot,x1,Z8,Da,f1]},styles:[".p-datatable{position:relative}.p-datatable table{border-collapse:collapse;min-width:100%;table-layout:fixed}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-d
atatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-auto-layout>.p-datatable-wrapper{overflow-x:auto}.p-datatable-auto-layout>.p-datatable-wrapper>table{table-layout:auto}.p-datatable-responsive-scroll>.p-datatable-wrapper{overflow-x:auto}.p-datatable-responsive-scroll>.p-datatable-wrapper>table,.p-datatable-auto-layout>.p-datatable-wrapper>table{table-layout:auto}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable .p-datatable-wrapper{position:relative;overflow:auto}.p-datatable-scrollable .p-datatable-thead,.p-datatable-scrollable .p-datatable-tbody,.p-datatable-scrollable .p-datatable-tfoot{display:block}.p-datatable-scrollable .p-datatable-thead>tr,.p-datatable-scrollable .p-datatable-tbody>tr,.p-datatable-scrollable .p-datatable-tfoot>tr{display:flex;flex-wrap:nowrap;width:100%}.p-datatable-scrollable .p-datatable-thead>tr>th,.p-datatable-scrollable .p-datatable-tbody>tr
>td,.p-datatable-scrollable .p-datatable-tfoot>tr>td{display:flex;flex:1 1 0;align-items:center}.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-table>.p-datatable-thead,.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-virtual-scrollable-body>.cdk-virtual-scroll-content-wrapper>.p-datatable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-scrollable-both .p-datatable-thead>tr>th,.p-datatable-scrollable-both .p-datatable-tbody>tr>td,.p-datatable-scrollable-both .p-datatable-tfoot>tr>td,.p-datatable-scrollable-horizontal .p-datatable-thead>tr>th .p-datatable-scrollable-horizontal .p-datatab
le-tbody>tr>td,.p-datatable-scrollable-horizontal .p-datatable-tfoot>tr>td{flex:0 0 auto}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable .p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable .p-rowgroup-header{position:sticky;z-index:1}.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead,.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot{display:table;border-collapse:collapse;width:100%;table-layout:fixed}.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead>tr,.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot>tr{display:table-row}.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead>tr>th,.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot>tr>td{display:table-cell}.p-datatable-flex-scrollable{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-flex-scrollable .p-
datatable-virtual-scrollable-body{flex:1}.p-datatable-resizable>.p-datatable-wrapper{overflow-x:auto}.p-datatable-resizable .p-datatable-thead>tr>th,.p-datatable-resizable .p-datatable-tfoot>tr>td,.p-datatable-resizable .p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable .p-resizable-column{background-clip:padding-box;position:relative}.p-datatable-resizable-fit .p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reo
rder-indicator-down{position:absolute;display:none}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;al
ign-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable .p-datatable-tbody>tr>td>.p-column-title{display:none}cdk-virtual-scroll-viewport{outline:0 none}\n"],encapsulation:2}),t})(),Z8=(()=>{class t{constructor(e,i,r,s){this.dt=e,this.tableService=i,this.cd=r,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}shouldRenderRowGroupHeader(e,i,r){let s=V.resolveFieldData(i,this.dt.groupRowsBy),o=e[r-1];return!o||s!==V.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowGroup
Footer(e,i,r){let s=V.resolveFieldData(i,this.dt.groupRowsBy),o=e[r+1];return!o||s!==V.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowspan(e,i,r){let s=V.resolveFieldData(i,this.dt.groupRowsBy),o=e[r-1];return!o||s!==V.resolveFieldData(o,this.dt.groupRowsBy)}calculateRowGroupSize(e,i,r){let s=V.resolveFieldData(i,this.dt.groupRowsBy),o=s,a=0;for(;s===o;){a++;let l=e[++r];if(!l)break;o=V.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=S.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=S.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}}return t.\u0275fac=function(e){return new(e||t)(w(mu),w(gu),w(vt),w(Se))},t.\u0275cmp=Q({type:t,selectors:[["","pTableBody",""]],hostA
ttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows"},attrs:W5,decls:6,vars:6,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"]],template:function(e,i){1&e&&(v(0,r8,2,2,"ng-container",0),v(1,a8,2,3,"ng-container",0),v(2,_8,2,2,"ng-container",0),v(3,C8,2,2,"ng-container",0),v(4,S8,2,5,"ng-container",0),v(5,E8,2,5,"ng-container",0)),2&e&&(m("ngIf",!i.dt.expandedRowTemplate&&!i.dt.virtualScroll),g(1),m("ngIf",!i.dt.expandedRowTemplate&&i.dt.virtualScroll),g(1),m("ngIf",i.dt.expandedRowTemplate&&!(i.frozen&&i.dt.frozenExpandedRowTemplate)),g(1),m("ngIf",i.dt.frozenExpandedRowTemplate&&i.frozen),g(1),m("ngIf",i.dt.loading),g(1),m("ngIf",i.dt.isEmpty()&&!i.dt.loading))},directives:[Me,Mt,Ot,y1]
,encapsulation:2}),t})(),J8=(()=>{class t{constructor(e){this.dt=e}get getFrozenRowGroupHeaderStickyPosition(){return this.dt.rowGroupHeaderStyleObject?this.dt.rowGroupHeaderStyleObject.top:""}}return t.\u0275fac=function(e){return new(e||t)(w(mu))},t.\u0275dir=U({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgroup-header","p-element"],hostVars:2,hostBindings:function(e,i){2&e&&wi("top",i.getFrozenRowGroupHeaderStickyPosition)}}),t})(),X8=(()=>{class t{constructor(e,i){this.dt=e,this.tableService=i,this.isEnabled()&&(this.subscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.selected=this.dt.isSelected(this.data)}))}ngOnInit(){this.isEnabled()&&(this.selected=this.dt.isSelected(this.data))}onClick(e){this.isEnabled()&&this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onTouchEnd(e){this.isEnabled()&&this.dt.handleRowTouchEnd(e)}onArrowDownKeyDown(e){if(!this.isEnabled())return;const r=this.findNextSelectableRow(e.curren
tTarget);r&&r.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const r=this.findPrevSelectableRow(e.currentTarget);r&&r.focus(),e.preventDefault()}onEnterKeyDown(e){!this.isEnabled()||this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onPageDownKeyDown(){this.dt.virtualScroll&&this.dt.virtualScrollBody.elementRef.nativeElement.focus()}onSpaceKeydown(){this.dt.virtualScroll&&!this.dt.editingCell&&this.dt.virtualScrollBody.elementRef.nativeElement.focus()}findNextSelectableRow(e){let i=e.nextElementSibling;return i?S.hasClass(i,"p-selectable-row")?i:this.findNextSelectableRow(i):null}findPrevSelectableRow(e){let i=e.previousElementSibling;return i?S.hasClass(i,"p-selectable-row")?i:this.findPrevSelectableRow(i):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(w(mu),w(gu))},t.\u0275dir=U({type:t,selectors:[["","p
SelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(e,i){1&e&&M("click",function(s){return i.onClick(s)})("touchend",function(s){return i.onTouchEnd(s)})("keydown.arrowdown",function(s){return i.onArrowDownKeyDown(s)})("keydown.arrowup",function(s){return i.onArrowUpKeyDown(s)})("keydown.enter",function(s){return i.onEnterKeyDown(s)})("keydown.shift.enter",function(s){return i.onEnterKeyDown(s)})("keydown.meta.enter",function(s){return i.onEnterKeyDown(s)})("keydown.pagedown",function(){return i.onPageDownKeyDown()})("keydown.pageup",function(){return i.onPageDownKeyDown()})("keydown.home",function(){return i.onPageDownKeyDown()})("keydown.end",function(){return i.onPageDownKeyDown()})("keydown.space",function(){return i.onSpaceKeydown()}),2&e&&(q("tabindex",i.isEnabled()?0:void 0),si("p-selectable-row",i.isEnabled())("p-highlight",i.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectable
RowDisabled"}}),t})(),e6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[Pe,I1,D1,Cf,qc,gc,Sa,h$,f5,Sf,v$],Et,qc]}),t})(),t6=(()=>{class t{constructor(e,i){this.http=e,this.document=i}switchTheme(e){let i=this.document.getElementById("app-theme");i&&(i.href="assets/themes/"+e)}getThemes(){return this.http.get("assets/themes/themes.json").toPromise().then(e=>e.data).then(e=>e)}}return t.\u0275fac=function(e){return new(e||t)(P(Fs),P(bt))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function n6(t,n){if(1&t&&(h(0,"tr",48),h(1,"td",49),h(2,"span",50),E(3),p(),p(),p()),2&t){const e=n.$implicit;g(3),le(e.Category)}}function r6(t,n){if(1&t){const e=z();h(0,"tr",51),M("click",function(){const s=C(e).$implicit;return f(2).changeTheme(s)}),h(1,"td",52),I(2,"img",53),p(),h(3,"td"),E(4),p(),p()}if(2&t){const i=n.$implicit;m("pSelectableRow",n.$implicit),g(2),un("src","images/themes/",i.Image,"",yi),m("alt
",i.image),g(2),le(i.Name)}}function s6(t,n){1&t&&(h(0,"p-table",45),v(1,n6,4,1,"ng-template",46),v(2,r6,5,4,"ng-template",47),p()),2&t&&m("value",f().m_themes$)("paginator",!1)("scrollable",!0)}const o6=function(){return{width:"350px"}};let a6=(()=>{class t{constructor(e){this.themeService=e,this.themeService.getThemes().then(i=>{this.m_themes$=i,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Indigo Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)})}ngOnInit(){}findThemeByName(e){for(var i=0;i<this.m_themes$.length;i++)if(this.m_themes$[i].Name===e)return this.m_themes$[i];return this.m_themes$[0]}changeTheme(e){this.m_selectedTheme=e,this.themeService.switchTheme(e.CSS),localStorage.setItem("Theme",this.m_selectedTheme.Name)}}return t.\u0275fac=function(e){return new(e||t)(w(t6))},t.\u0275cmp=Q({type:t,selectors:[["app-navbar"]],decls:87,vars:10,consts:[[1,"block-content"],[1,"ng-star-inserted",2,"overflow","hidden"],[1,"min-h-screen","fle
x","relative","lg:static","surface-ground"],["id","app-sidebar-4",1,"bg-gray-900","hidden","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-1","border-gray-800","w-18rem","lg:w-5rem","select-none"],[1,"flex","flex-column","h-full"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["src","images/mythtv.png","alt","Image","height","80",1,"p-2"],[1,"mt-3","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],["pTooltip","Dashboard",3,"routerLink"],["pripple","",1,"p-ripple","p-element","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-gray-300","hover:text-white","transition-duration-150","transition-colors"],[1,"pi","pi-home","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"font-medium","inline","lg:hidden"],[1,"p-ink"],["pTooltip","Backend Status",3,"routerLink"],[1,"pi","pi-info-circle","mr-2","lg:mr-0","text-base","lg:text-xl"],["pTooltip","Backend Setup",3,"ro
uterLink"],[1,"pi","pi-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],["pTooltip","TV Guide",3,"routerLink"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],["pTooltip","Testbed",3,"routerLink"],[1,"pi","pi-pencil","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"mt-auto"],[1,"mb-3","mx-2","border-top-1","border-none","border-gray-800"],["pripple","","pTooltip","Switch Server",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],[1,"pi","pi-server","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"min-h-screen","flex","flex-column","relative","flex-auto"],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","border-bottom-1","surface-border",2,"height","80px"],[2,"padding","7rem"],[1,"pr-3"],[1,"toolbar","list-none","p-0","m-0","hidden","lg:fle
x","lg:align-items-center","select-none","lg:flex-row","surface-section","border-1","lg:border-none","surface-border","right-0","top-100","z-1","shadow-2","lg:shadow-none","absolute","lg:static"],["pripple","",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],[1,"pi","pi-ellipsis-v","mr-2","lg:mr-0","text-base","lg:text-xl","hidden"],["pripple","","tooltipPosition","bottom","pTooltip","Switch Server",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],["pripple","","tooltipPosition","bottom","pTooltip","Switch Theme",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover
:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"mr-3","lg:mr-0",2,"width","32px","height","32px",3,"src"],["pripple","","tooltipPosition","bottom","pTooltip","Change Language",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],[1,"pi","pi-flag","mr-2","lg:mr-0","text-base","lg:text-xl"],["pripple","","tooltipPosition","bottom","pTooltip","Log In",1,"p-ripple","p-element","my-3","mx-2","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors"],[1,"pi","pi-sign-in","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"bg-gray-100","p-1","flex","flex-column","flex-auto"],[1,"bg-gray-100","border-none","surface-border","border-ro
und","surface-section","flex-auto"],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["selectionMode","single","sortField","Name","sortMode","single","scrollHeight","500px","rowGroupMode","subheader","groupRowsBy","Category","responsiveLayout","scroll",3,"value","paginator","scrollable"],["pTemplate","groupheader"],["pTemplate","body"],["pRowGroupHeader",""],["colspan","2"],[1,"font-bold","ml-2"],[3,"pSelectableRow","click"],[2,"max-width","80px"],[1,"theme-image",3,"src","alt"]],template:function(e,i){if(1&e){const r=z();h(0,"div",0),h(1,"div",1),h(2,"div",2),h(3,"div",3),h(4,"div",4),h(5,"div",5),I(6,"img",6),p(),h(7,"div",7),h(8,"ul",8),h(9,"li",9),h(10,"a",10),I(11,"i",11),h(12,"span",12),E(13,"Dashboard"),p(),I(14,"span",13),p(),p(),h(15,"li",14),h(16,"a",10),I(17,"i",15),h(18,"span",12),E(19,"Status"),p(),I(20,"span",13),p(),p(),h(21,"li",16),h(22,"a",10),I(23,"i",17),h(24,"span",12),E(25,"Settings "),p(),I(26,"span",13),p(),p(),h(27,"li",18),h(28,"a",10),I(29,"i",19),h(
30,"span",12),E(31,"TV Guide "),p(),I(32,"span",13),p(),p(),h(33,"li",20),h(34,"a",10),I(35,"i",21),h(36,"span",12),E(37,"Testbed "),p(),I(38,"span",13),p(),p(),p(),p(),h(39,"div",22),I(40,"hr",23),h(41,"a",24),I(42,"i",25),h(43,"span",12),E(44,"Switch Server"),p(),I(45,"span",13),p(),p(),p(),p(),h(46,"div",26),h(47,"div",27),h(48,"div",28),h(49,"h1"),E(50,"MythTV Backend"),p(),p(),h(51,"div",29),h(52,"ul",30),h(53,"li"),h(54,"a",31),I(55,"i",32),I(56,"span",13),p(),p(),h(57,"li"),h(58,"a",33),I(59,"i",25),h(60,"span",12),E(61,"Switch Server"),p(),I(62,"span",13),p(),p(),h(63,"li"),h(64,"a",34),M("click",function(o){return C(r),fe(85).toggle(o)}),I(65,"img",35),h(66,"span",12),E(67,"Switch Theme"),p(),I(68,"span",13),p(),p(),h(69,"li"),h(70,"a",36),I(71,"i",37),h(72,"span",12),E(73,"Language"),p(),I(74,"span",13),p(),p(),h(75,"li"),h(76,"a",38),I(77,"i",39),h(78,"span",12),E(79,"Login"),p(),I(80,"span",13),p(),p(),p(),p(),p(),h(81,"div",40),h(82,"div",41),I(83,"router-outlet"),p(),p
(),p(),p(),p(),p(),h(84,"p-overlayPanel",42,43),v(86,s6,3,3,"ng-template",44),p()}2&e&&(g(9),m("routerLink",""),g(6),m("routerLink","status"),g(6),m("routerLink","settings"),g(6),m("routerLink","guide"),g(6),m("routerLink","testbed"),g(32),un("src","images/themes/",i.m_selectedTheme.Image,"",yi),g(19),Tn(En(9,o6)),m("showCloseIcon",!0))},directives:[Hc,Pc,Ec,t$,Ct,mu,J8,X8],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}ul.debug1[_ngcontent-%COMP%]{border-style:solid;border-color:#00f}div.debug1[_ngcontent-%COMP%]{border-style:solid;border-color:red;background-color:#000}div.debug2[_ngcontent-%COMP%]{border-style:solid;border-color:#ff0}div.debug3[_ngcontent-%COMP%]{border-style:solid;border-color:green}.theme-image[_ngcontent-%COMP%]{width:50px;height:50px}"]}),t})(),l6=(()=>{class t{constructor(){this.title="MythTV Backend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i
){1&e&&I(0,"app-navbar")},directives:[a6],styles:[""]}),t})(),VD=(()=>{class t{constructor(e){this.configService=e,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"mythtv",Password:"mythtv",Ping:!1,Name:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0}}},console.log("SetupWizardService: constructor called"),this.initDatabaseStatus()}ngOnInit(){console.log("SetupWizardService: ngOnInit called"),this.initDatabaseStatus()}setWizardData(e){this.m_wizardData=e}getWizardData(){return this.m_wizardData}initDatabaseStatus(){console.log("SetupWizardService: initDatabase called"),this.configService.GetDatabaseStatus().subscribe(e=>{console.log
("SetupWizardService: initDatabaseStatus() called",e),this.m_wizardData.DatabaseStatus=e,this.m_wizardData.Database.Host=e.DatabaseStatus.Host,this.m_wizardData.Database.Port=e.DatabaseStatus.Port,this.m_wizardData.Database.UserName=e.DatabaseStatus.UserName,this.m_wizardData.Database.Password=e.DatabaseStatus.Password,this.m_wizardData.Database.Name=e.DatabaseStatus.Name},e=>{console.log("Failed to get database status",e.statusText)})}updateDatabaseStatus(){console.log("SetupWizardService: updateDatabase called"),this.configService.GetDatabaseStatus().subscribe(e=>{this.m_wizardData.DatabaseStatus=e},e=>{console.log("Failed to get database status",e.statusText)})}}return t.\u0275fac=function(e){return new(e||t)(P(xr))},t.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const c6=["countryrow"],u6=["languagerow"];function d6(t,n){1&t&&E(0," Locale Setup ")}function h6(t,n){1&t&&E(0," Enter your Country and Language ")}function p6(t,n){1&t&&(h(0,"h2"),E(1,"Select Co
untry"),p())}function f6(t,n){if(1&t&&(h(0,"div",16,17),I(2,"img",18),I(3,"span",19),E(4),p()),2&t){const e=n.$implicit;q("id",e.Code),g(2),un("src","images/locale/",e.Image,"",yi),g(2),Ci("",e.Code," ",e.Country," ",e.NativeCountry," ")}}function g6(t,n){if(1&t&&(h(0,"div",20),I(1,"p-message",21),p()),2&t){const e=f(2);g(1),un("text","Selected Country is: ",e.m_wizardData.Country.Country,"")}}function m6(t,n){1&t&&(h(0,"div",20),I(1,"p-message",22),p())}function _6(t,n){1&t&&(h(0,"h2"),E(1,"Select Language"),p())}function y6(t,n){if(1&t&&(h(0,"div",23,24),I(2,"img",18),h(3,"span",25),E(4),p(),p()),2&t){const e=n.$implicit;q("id",e.Code),g(2),un("src","images/locale/",e.Image,"",yi),g(2),Ci("",e.Language," - ",e.NativeLanguage," (",e.Code,")")}}function v6(t,n){if(1&t&&(h(0,"div",20),I(1,"p-message",21),p()),2&t){const e=f(2);g(1),un("text","Selected Language is: ",e.m_wizardData.Language.NativeLanguage,"")}}function b6(t,n){1&t&&(h(0,"div",20),I(1,"p-message",26),p())}const BD=func
tion(){return{"max-height":"460px","min-height":"460px"}};function w6(t,n){if(1&t){const e=z();h(0,"div",6),h(1,"div",7),h(2,"p-listbox",8),M("ngModelChange",function(r){return C(e),f().m_wizardData.Country=r})("onChange",function(r){return C(e),f().countrySelected(r)}),v(3,p6,2,0,"ng-template",9),v(4,f6,5,5,"ng-template",10),p(),v(5,g6,2,1,"div",11),v(6,m6,2,0,"ng-template",null,12,ze),p(),h(8,"div",13),h(9,"p-listbox",14),M("ngModelChange",function(r){return C(e),f().m_wizardData.Language=r})("onChange",function(r){return C(e),f().languageSelected(r)}),v(10,_6,2,0,"ng-template",9),v(11,y6,5,5,"ng-template",10),p(),v(12,v6,2,1,"div",11),v(13,b6,2,0,"ng-template",null,15,ze),p(),p()}if(2&t){const e=fe(7),i=fe(14),r=f();g(2),m("options",r.m_countries)("ngModel",r.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",En(14,BD)),g(3),m("ngIf",""!=r.m_wizardData.Country.Code)("ngIfElse",e),g(4),m("options",r.m_languages)("ngModel",r.m_wizardData.Language)("multiple",!1)("filter"
,!0)("listStyle",En(15,BD)),g(3),m("ngIf",""!=r.m_wizardData.Language.Code)("ngIfElse",i)}}function C6(t,n){if(1&t){const e=z();h(0,"div",27),h(1,"p-button",28),M("onClick",function(){return C(e),f().nextPage()}),p(),h(2,"p-button",29),M("onClick",function(){return C(e),f().showHelp()}),p(),p()}if(2&t){const e=f();g(1),m("disabled",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let D6=(()=>{class t{constructor(e,i,r){this.router=e,this.configService=i,this.wizardService=r,this.m_countries=[],this.m_languages=[],this.m_showHelp=!1}ngOnInit(){this.configService.GetLanguages().subscribe(e=>this.m_languages=e.LanguageList.Languages),this.configService.GetCountries().subscribe(e=>this.m_countries=e.CountryList.Countries),this.m_wizardData=this.wizardService.getWizardData()}ngAfterViewInit(){if(console.log("After view init called"),console.log("Country Code: ",this.m_wizardData.Country.Code),console.log("Language Code: ",this.m_wizardData.Language.Code),console.log(th
is.countryRowElement),console.log(this.languageRowElement),""!=this.m_wizardData.Country.Code){const e=this.countryRowElement.find(i=>i.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"smooth",inline:"start",block:"start"}):console.log("Failed to find element by ID")}if(""!=this.m_wizardData.Language.Code){const e=this.languageRowElement.find(i=>i.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"smooth",inline:"start",block:"start"})}}nextPage(){this.router.navigate(["settings/dbsetup"])}showHelp(){this.m_showHelp=!0}countrySelected(e){console.log("event: ",e),console.log("Country changed event: ",e.value)}languageSelected(e){console.log("event: ",e),console.log("Language changed event: ",e.value)}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(xr),w(VD))},t.\u0275cmp=Q({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(e,i){if(1&e&&(He(c6
,5,Se),He(u6,5,Se)),2&e){let r;K(r=Y())&&(i.countryRowElement=r),K(r=Y())&&(i.languageRowElement=r)}},decls:11,vars:1,consts:[["header","Country and Language Setup - Help",3,"visible","visibleChange"],[1,"wizard-content","m-3"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid","m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country",3,"options","ngModel","multiple","filter","listStyle","ngModelChange","onChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language",3,"options","ngModel","multiple","filter","listStyle","ngModelChange","onChange"],["noLanguage",""],[1,"country-item",2,"align-items","center"],["countryrow",""],[2,"width","50px","height","30px",3,"src"],[1,"badge","pl-2"],[1,"pt-5"],["severity","success",3,"text"],["severity","error","text","No Country is selected"],[1,"language-item"],["languagerow",""],[1,"pl-2"],["
severity","error","text","No Language is selected",1,"pt-2"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Next","icon","pi pi-angle-right","iconPos","right",3,"disabled","onClick"],["label","Help","icon","pi pi-info-circle","styleClass","p-button-info",2,"float","right",3,"onClick"]],template:function(e,i){1&e&&(h(0,"p-dialog",0),M("visibleChange",function(s){return i.m_showHelp=s}),h(1,"h4"),E(2,"Some very helpful help text goes here"),p(),h(3,"p"),E(4,"Some more very very helpful text goes here!"),p(),p(),h(5,"div",1),h(6,"p-card"),v(7,d6,1,0,"ng-template",2),v(8,h6,1,0,"ng-template",3),v(9,w6,15,16,"ng-template",4),v(10,C6,3,1,"ng-template",5),p(),p()),2&e&&m("visible",i.m_showHelp)},directives:[OD,Gs,Ct,MD,rc,Vs,Me,ff,Ks],styles:[""]}),t})();function S6(t,n){1&t&&E(0," Database Setup ")}function T6(t,n){1&t&&E(0," Enter the database login details ")}function E6(t,n){1&t&&(h(0,"div"),h(1,"small",32),E(2,"Ip Address or Hostname is required"),p(),p())}function x6(t,n){1&t&&(
h(0,"div"),h(1,"small",33),E(2,"Port is required and must be a number between 0 and 65536"),p(),p())}function I6(t,n){1&t&&(h(0,"div"),h(1,"small",34),E(2,"User is required"),p(),p())}function k6(t,n){1&t&&(h(0,"div"),h(1,"small",35),E(2,"Password is required"),p(),p())}function M6(t,n){1&t&&(h(0,"div"),h(1,"small",36),E(2,"Database Name is required"),p(),p())}function O6(t,n){1&t&&(h(0,"div"),I(1,"p-message",37),p())}function R6(t,n){1&t&&(h(0,"div",38,29),I(2,"p-message",39),p())}function A6(t,n){if(1&t&&(h(0,"div"),I(1,"p-message",40),p()),2&t){const e=f(2);g(1),un("text","Have '",e.m_wizardData.Database.Name,"' database")}}function P6(t,n){if(1&t&&(h(0,"div",41,30),I(2,"p-message",42),p()),2&t){const e=f(2);g(2),un("text","Do not have '",e.m_wizardData.Database.Name,"' database")}}function F6(t,n){if(1&t&&(h(0,"div"),I(1,"p-message",43),p()),2&t){const e=f(2);g(1),un("text","Database schema version is ",e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion,"")}}function L6(
t,n){1&t&&(h(0,"div",44,30),I(2,"p-message",45),p())}const N6=function(t){return{"is-invalid":t}};function V6(t,n){if(1&t){const e=z();h(0,"div",8),h(1,"div",9),h(2,"label",10),E(3,"MySQL Server IP"),p(),h(4,"input",11,12),M("ngModelChange",function(r){return C(e),f().m_wizardData.Database.Host=r}),p(),v(6,E6,3,0,"div",13),p(),h(7,"div",9),h(8,"label",14),E(9,"MySQL Server Port"),p(),h(10,"input",15,16),M("ngModelChange",function(r){return C(e),f().m_wizardData.Database.Port=r}),p(),v(12,x6,3,0,"div",13),p(),h(13,"div",9),h(14,"label",17),E(15,"MySQL User"),p(),h(16,"input",18,19),M("ngModelChange",function(r){return C(e),f().m_wizardData.Database.UserName=r}),p(),v(18,I6,3,0,"div",13),p(),h(19,"div",9),h(20,"label",20),E(21,"MySQL Password"),p(),h(22,"input",21,22),M("ngModelChange",function(r){return C(e),f().m_wizardData.Database.Password=r}),p(),v(24,k6,3,0,"div",13),p(),h(25,"div",9),h(26,"label",23),E(27,"MySQL Database Name"),p(),h(28,"input",24,25),M("ngModelChange",function
(r){return C(e),f().m_wizardData.Database.Name=r}),p(),v(30,M6,3,0,"div",13),p(),p(),h(31,"div"),h(32,"button",26),M("click",function(){return C(e),f().testConnection()}),E(33,"Test Connection"),p(),p(),h(34,"div",27),v(35,O6,2,0,"div",28),v(36,R6,3,0,"ng-template",null,29,ze),v(38,A6,2,1,"div",28),v(39,P6,3,1,"ng-template",null,30,ze),v(41,F6,2,1,"div",28),v(42,L6,3,0,"ng-template",null,31,ze),p()}if(2&t){const e=fe(5),i=fe(11),r=fe(17),s=fe(23),o=fe(29),a=fe(37),l=fe(40),c=fe(43),u=f(),d=fe(7);g(4),m("ngModel",u.m_wizardData.Database.Host)("ngClass",G(18,N6,e.invalid)),g(2),m("ngIf",e.invalid&&(e.dirty||e.touched)),g(4),m("ngModel",u.m_wizardData.Database.Port),g(2),m("ngIf",i.invalid&&(i.dirty||i.touched)),g(4),m("ngModel",u.m_wizardData.Database.UserName),g(2),m("ngIf",r.invalid&&(r.dirty||r.touched)),g(4),m("ngModel",u.m_wizardData.Database.Password),g(2),m("ngIf",s.invalid&&(s.dirty||s.touched)),g(4),m("ngModel",u.m_wizardData.Database.Name),g(2),m("ngIf",o.invalid&&(o.dirty||
o.touched)),g(2),m("disabled",d.invalid),g(3),m("ngIf",u.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",a),g(3),m("ngIf",u.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",l),g(3),m("ngIf",u.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&u.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",c)}}function B6(t,n){if(1&t){const e=z();h(0,"div",46),h(1,"p-button",47),M("onClick",function(){return C(e),f().previousPage()}),p(),h(2,"p-button",48),M("onClick",function(){return C(e),f().nextPage()}),p(),h(3,"p-button",49),M("onClick",function(){return C(e),f().showHelp()}),p(),p()}if(2&t){const e=f(),i=fe(7);g(2),m("disabled",i.invalid||!e.m_wizardData.DatabaseStatus.DatabaseStatus.Connected||!e.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)}}let H6=(()=>{class t{constructor(e,i,r,s,o,a){this.router=e,this.configService=i,this.mythService=r,this.wizardService=s,this.formBuilder=o,this.messageService=a,this.m_showHelp=!1}n
gOnInit(){this.m_wizardData=this.wizardService.getWizardData()}previousPage(){this.router.navigate(["settings/selectlanguage"])}nextPage(){this.router.navigate(["settings/backendnetwork"])}showHelp(){this.m_showHelp=!0}saveForm(){console.log("save form clicked")}testConnection(){console.log(this.m_wizardData.Database),this.configService.SetDatabaseCredentials(this.m_wizardData.Database).subscribe(e=>{console.log(e),this.messageService.add({severity:"success",life:5e3,summary:"Test Database Connection",detail:"Connection to database was successful"}),this.wizardService.updateDatabaseStatus()},e=>{console.log("Failed to set creditals",e.statusText),this.m_wizardData.DatabaseStatus.DatabaseStatus.Connected=!1,this.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase=!1,this.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion=0,this.messageService.add({severity:"error",life:5e3,summary:"Test Database Connection",detail:"Connection to database failed"})})}}return t.\u0275fac=func
tion(e){return new(e||t)(w(ft),w(xr),w(pf),w(VD),w(FF),w(df))},t.\u0275cmp=Q({type:t,selectors:[["app-dbsetup"]],features:[be([df])],decls:13,vars:1,consts:[["header","Database Setup - Help",3,"visible","visibleChange"],["name","databaseForm",1,"ml-3","mr-3",3,"ngSubmit"],["databaseForm","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"formgrid","grid","form-group"],[1,"field","col-12","md:col-6"],["for","ipaddress",1,"block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex. 127.0.0.1 or localhost","required","",1,"form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],[4,"ngIf"],["for","port",1,"block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex. 3306","min","0","max","65536",1,"form-control",3,"ngModel","ngModelChange"],["port","ngModel"],["for","user",
1,"block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex. mythtv","required","",1,"form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["for","password",1,"block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name","password","placeholder","Ex. mythtv","required","",1,"form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["for","dbname",1,"block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex. mythconverg","required","",1,"form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["pButton","","type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],["id","port-help",1,"p-error","block"],["id"
,"user-help",1,"p-error","block"],["id","password-help",1,"p-error","block"],["id","dbname-help",1,"p-error","block"],["severity","success","text","Connected to database",1,"pr-2"],[1,"pr-2","notconnected"],["severity","error","text","Not connected to database",1,""],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","nodatabase"],["severity","error",3,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info","text","Database schema version is unknown"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Back","icon","pi pi-angle-left","iconPos","left",1,"pr-1",3,"onClick"],["label","Next","icon","pi pi-angle-right","iconPos","right",3,"disabled","onClick"],["label","Help","icon","pi pi-info-circle","styleClass","p-button-info",2,"float","right",3,"onClick"]],template:function(e,i){1&e&&(I(0,"p-toast"),h(1,"p-dialog",0),M("visibleChange",function(s){return i.m_showHelp=s}),h(2,"h4"),E(3,"Some very helpful help text goes here"),p(),h(4,"p"),E(5,"Some more
very very helpful text goes here!"),p(),p(),h(6,"form",1,2),M("ngSubmit",function(){return i.saveForm()}),h(8,"p-card",3),v(9,S6,1,0,"ng-template",4),v(10,T6,1,0,"ng-template",5),v(11,V6,44,20,"ng-template",6),v(12,B6,4,1,"ng-template",7),p(),p()),2&e&&(g(1),m("visible",i.m_showHelp))},directives:[Tj,OD,bC,dC,hc,Gs,Ct,nc,fc,rc,Vs,Je,Me,zp,Hp,Ap,Df,ff,Ks],styles:[".is-invalid[_ngcontent-%COMP%]{border-color:red}"]}),t})();function z6(t,n){1&t&&E(0," Backend Network Setup ")}function j6(t,n){1&t&&E(0," Enter the network details for this backend ")}function U6(t,n){1&t&&(h(0,"div",5),h(1,"p"),E(2,"TODO add backend server network details."),p(),p())}function $6(t,n){if(1&t){const e=z();h(0,"div",6),h(1,"p-button",7),M("onClick",function(){return C(e),f().previousPage()}),p(),h(2,"p-button",8),M("onClick",function(){return C(e),f().nextPage()}),p(),p()}}let G6=(()=>{class t{constructor(e,i){this.router=e,this.configService=i}ngOnInit(){}previousPage(){this.router.navigate(["settings/dbs
etup"])}nextPage(){this.router.navigate(["settings/sgsetup"])}}return t.\u0275fac=function(e){return new(e||t)(w(ft),w(xr))},t.\u0275cmp=Q({type:t,selectors:[["app-backendnetwork"]],decls:6,vars:0,consts:[[1,"wizard-content"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"p-fluid"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Back","icon","pi pi-angle-left","iconPos","left",1,"pr-1",3,"onClick"],["label","Next","icon","pi pi-angle-right","iconPos","right",3,"onClick"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"p-card"),v(2,z6,1,0,"ng-template",1),v(3,j6,1,0,"ng-template",2),v(4,U6,3,0,"ng-template",3),v(5,$6,3,0,"ng-template",4),p(),p())},directives:[Gs,Ct,Ks],styles:[""]}),t})();function W6(t,n){1&t&&E(0," Storage Group Setup ")}function q6(t,n){1&t&&E(0," Enter the storage group paths for this backend ")}function K6(t,n){1&t&&(h(0,"div",5),h(1,"p"),E(2,"TODO add storage group details."),p(),p())}function Y6(t,n){if(1&t
){const e=z();h(0,"div",6),h(1,"p-button",7),M("onClick",function(){return C(e),f().previousPage()}),p(),h(2,"p-button",8),M("onClick",function(){return C(e),f().nextPage()}),p(),p()}}let Q6=(()=>{class t{constructor(e){this.router=e}ngOnInit(){}previousPage(){this.router.navigate(["settings/backendnetwork"])}nextPage(){this.router.navigate(["settings/restart"])}}return t.\u0275fac=function(e){return new(e||t)(w(ft))},t.\u0275cmp=Q({type:t,selectors:[["app-sgsetup"]],decls:6,vars:0,consts:[[1,"wizard-content"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"p-fluid"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Back","icon","pi pi-angle-left","iconPos","left",1,"pr-1",3,"onClick"],["label","Next","icon","pi pi-angle-right","iconPos","right",3,"onClick"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"p-card"),v(2,W6,1,0,"ng-template",1),v(3,q6,1,0,"ng-template",2),v(4,K6,3,0,"ng-template",3),v(5,Y6,3,0,"ng-template",4),p(),p()
)},directives:[Gs,Ct,Ks],styles:[""]}),t})();function Z6(t,n){1&t&&E(0," Done ")}function J6(t,n){1&t&&E(0," Restart the backend ")}function X6(t,n){1&t&&(h(0,"div",5),h(1,"p"),E(2,"Show summary here?"),p(),p())}function eG(t,n){if(1&t){const e=z();h(0,"div",6),h(1,"p-button",7),M("onClick",function(){return C(e),f().previousPage()}),p(),h(2,"p-button",8),M("onClick",function(){return C(e),f().restartBackend()}),p(),p()}}let tG=(()=>{class t{constructor(e){this.router=e}ngOnInit(){}previousPage(){this.router.navigate(["settings/sgsetup"])}restartBackend(){console.log("Restart backend clicked")}}return t.\u0275fac=function(e){return new(e||t)(w(ft))},t.\u0275cmp=Q({type:t,selectors:[["app-restart"]],decls:6,vars:0,consts:[[1,"wizard-content"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"p-fluid"],[1,"p-grid","p-nogutter","p-justify-end"],["label","Back","icon","pi pi-angle-left","iconPos","left",1,"pr-1",3,"onClick"],["label","Done
","icon","pi pi-save","iconPos","right",3,"onClick"]],template:function(e,i){1&e&&(h(0,"div",0),h(1,"p-card"),v(2,Z6,1,0,"ng-template",1),v(3,J6,1,0,"ng-template",2),v(4,X6,3,0,"ng-template",3),v(5,eG,3,0,"ng-template",4),p(),p())},directives:[Gs,Ct,Ks],styles:[""]}),t})(),nG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t}),t.\u0275inj=J({imports:[[ir.forChild([{path:"settings",component:q0,children:[{path:"",redirectTo:"selectlanguage",pathMatch:"full"},{path:"selectlanguage",component:D6},{path:"dbsetup",component:H6},{path:"backendnetwork",component:G6},{path:"sgsetup",component:Q6},{path:"restart",component:tG}]}])],ir]}),t})(),iG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=X({type:t,bootstrap:[l6]}),t.\u0275inj=J({providers:[],imports:[[Tw,UP,g4,Hz,gc,NC,nG,Wz,Sa,dj,fj,K0,xN,$s,Ej,Bj,WN,fV,mV,bU,KU,K0,cH,gH,n$,e6]]}),t})();(function ZO(){Pb=!1})(),mP().bootstrapModule(iG).catch(t=>console.error(t))}},Ni=>{Ni
(Ni.s=863)}]);
+\ No newline at end of file
+diff --git a/mythtv/html/backend/src/app/services/interfaces/encoder.interface.ts b/mythtv/html/backend/src/app/services/interfaces/encoder.interface.ts
+index 04c96f8cc17..69e2f9167dd 100644
+--- a/mythtv/html/backend/src/app/services/interfaces/encoder.interface.ts
++++ b/mythtv/html/backend/src/app/services/interfaces/encoder.interface.ts
+@@ -1,3 +1,5 @@
++import { ScheduleOrProgram } from "./program.interface";
++
+ // Definitions from libs/libmythtv/tv.h
+ export enum TVState {
+ kState_Error = -1,
+@@ -30,7 +32,7 @@ export interface Encoder {
+ Inputs: EncoderInput[];
+ Local: boolean;
+ LowOnFreeSpace: boolean;
+- Recording: number;
++ Recording: ScheduleOrProgram;
+ SleepStatus: number;
+ State: number;
+ }
+diff --git a/mythtv/html/backend/src/app/status/components/encoders/encoders.component.html b/mythtv/html/backend/src/app/status/components/encoders/encoders.component.html
+index cdfc0f2e178..0fb49da31d0 100644
+--- a/mythtv/html/backend/src/app/status/components/encoders/encoders.component.html
++++ b/mythtv/html/backend/src/app/status/components/encoders/encoders.component.html
+@@ -4,7 +4,13 @@ <h2>Encoder Status</h2>
+ <div *ngFor="let encoder of encoders">
+ <ul>
+ <!-- TODO: The details of the Capture Card need to be pulled from the /Capture API -->
+- <li>Encoder {{ encoder.Id }} is on host {{ encoder.HostName }}, State: {{ EncoderStatusText(encoder.State) }} </li>
++ <li>
++ Encoder {{ encoder.Id }} is on host {{ encoder.HostName }}, State: {{ EncoderStatusText(encoder.State) }}
++ <!-- TVState.kState_RecordingOnly = 7 -->
++ <ng-container *ngIf="encoder.State == 7"> '{{ encoder.Recording.Title }}' on {{ encoder.Recording.Channel.CallSign }}.
++ This recording is scheduled to end at {{ encoder.Recording.EndTime }}.
++ </ng-container>
++ </li>
+ <div *ngFor="let input of encoder.Inputs">
+ <ul>
+ <li>Card: {{ input.CardId }}, Input: {{ input.Id }} is {{ input.InputName }}, displayname: {{ input.DisplayName }} </li>
+diff --git a/mythtv/html/backend/src/app/status/components/encoders/encoders.component.ts b/mythtv/html/backend/src/app/status/components/encoders/encoders.component.ts
+index 554b0193b17..312ccafcf63 100644
+--- a/mythtv/html/backend/src/app/status/components/encoders/encoders.component.ts
++++ b/mythtv/html/backend/src/app/status/components/encoders/encoders.component.ts
+@@ -31,6 +31,8 @@ export class EncodersComponent implements OnInit {
+ case TVState.kState_WatchingBD:
+ return "Watching BD";
+ case TVState.kState_WatchingRecording:
++ return "Watching Recording";
++ case TVState.kState_RecordingOnly:
+ return "Recording";
+ case TVState.kState_ChangingState:
+ return "Changing State";
+
+From bfae001d5cbb6e6012c3971e605d961e639e1eb7 Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Sun, 3 Apr 2022 18:39:20 +0200
+Subject: [PATCH 21/29] Determine tuner type in ChannelScanSM constructor
+
+Initialize the m_scanDTVTunerType with the tuner type as found
+in the card already in the ChannelScanSM constructor.
+The need for this was indicated by a chanscan:debug log showing
+tuner type UNKNOWN when doing a "Scan of existing transports".
+
+(cherry picked from commit ba7caf2bbaf7d6d82f2879bd6a2133d34838c371)
+---
+ mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp b/mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
+index d7de02b7fd9..12411eb9196 100644
+--- a/mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
++++ b/mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
+@@ -162,6 +162,7 @@ ChannelScanSM::ChannelScanSM(ScanMonitor *scan_monitor,
+ m_analogSignalHandler(new AnalogSignalHandler(this))
+ {
+ m_current = m_scanTransports.end();
++ m_scanDTVTunerType = GuessDTVTunerType(DTVTunerType(DTVTunerType::kTunerTypeUnknown));
+
+ // Create a stream data for digital signal monitors
+ DTVSignalMonitor* dtvSigMon = GetDTVSignalMonitor();
+@@ -1825,7 +1826,7 @@ ScanDTVTransportList ChannelScanSM::GetChannelList(bool addFullTS) const
+
+ uint cardid = m_channel->GetInputID();
+
+- DTVTunerType tuner_type(DTVTunerType::kTunerTypeATSC);
++ DTVTunerType tuner_type;
+ tuner_type = GuessDTVTunerType(tuner_type);
+
+ for (const auto & it : qAsConst(m_channelList))
+
+From ec4558f3e1bbc021d771276a288039924f181a8b Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Wed, 20 Apr 2022 21:39:32 +0200
+Subject: [PATCH 22/29] Update preview picture after record playback exit
+
+When exiting a record playback, the preview thumbnail picture that is shown
+at the right/bottom corner of the MythCenter-wide theme, is updated to show
+a still image of the recording at the last played position.
+Since commit 241d26d42ed625b069d9f8412030679429b14ca5, the 'Add percentage
+finished to "View Recordings" and "Upcoming Recordings"', issue #331, the
+preview picture is sometimes updated and sometimes not.
+This is now fixed by using a new field m_previewUpdate to store a copy of
+m_bookmarkUpdate when preview picture generation has been requested.
+This field is then used to compare against m_bookmarkUpdate
+to flag if the preview picture has to be updated.
+
+Fixes #547
+
+(cherry picked from commit 1064ffc03a920bf97132e558816c7299e130ced7)
+---
+ mythtv/libs/libmyth/programinfo.h | 4 ++++
+ mythtv/programs/mythfrontend/programinfocache.cpp | 8 ++++++--
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/mythtv/libs/libmyth/programinfo.h b/mythtv/libs/libmyth/programinfo.h
+index 6788035d103..e26650025d5 100644
+--- a/mythtv/libs/libmyth/programinfo.h
++++ b/mythtv/libs/libmyth/programinfo.h
+@@ -837,6 +837,7 @@ class MPUBLIC ProgramInfo
+ uint8_t m_availableStatus {asAvailable}; // only used for playbackbox.cpp
+ int8_t m_recordedPercent {-1}; // only used by UI
+ int8_t m_watchedPercent {-1}; // only used by UI
++
+ public:
+ void SetAvailableStatus(AvailableStatusType status, const QString &where);
+ AvailableStatusType GetAvailableStatus(void) const
+@@ -853,6 +854,9 @@ class MPUBLIC ProgramInfo
+ static QMutex s_staticDataLock;
+ static ProgramInfoUpdater *s_updater;
+ static bool s_usingProgIDAuth;
++
++ public:
++ QDateTime m_previewUpdate;
+ };
+
+ MPUBLIC bool LoadFromProgram(
+diff --git a/mythtv/programs/mythfrontend/programinfocache.cpp b/mythtv/programs/mythfrontend/programinfocache.cpp
+index 653b37c344b..40f5cda7e75 100644
+--- a/mythtv/programs/mythfrontend/programinfocache.cpp
++++ b/mythtv/programs/mythfrontend/programinfocache.cpp
+@@ -199,7 +199,7 @@ ProgramInfoCache::UpdateStates ProgramInfoCache::Update(const ProgramInfo &pginf
+ ProgramInfo& pg = **it;
+ UpdateStates flags { PIC_NONE };
+
+- if (pginfo.GetBookmarkUpdate() != pg.GetBookmarkUpdate())
++ if (pginfo.GetBookmarkUpdate() != pg.m_previewUpdate)
+ flags |= PIC_MARK_CHANGED;
+
+ if (pginfo.GetRecordingGroup() != pg.GetRecordingGroup())
+@@ -223,7 +223,7 @@ ProgramInfoCache::UpdateStates ProgramInfoCache::Update(const ProgramInfo &pginf
+ }
+
+ /** \brief Updates a ProgramInfo in the cache.
+- * \note This spawns a background thread as it contains multiple Db
++ * \note This runs in a background thread as it contains multiple Db
+ * queries.
+ */
+ void ProgramInfoCache::UpdateFileSize(uint recordingID, uint64_t filesize,
+@@ -251,6 +251,10 @@ void ProgramInfoCache::UpdateFileSize(uint recordingID, uint64_t filesize,
+ flags &= ~PIC_MARK_CHANGED;
+ }
+
++ // Time of preview picture generation request for next comparison
++ if (flags & PIC_MARK_CHANGED)
++ pg->m_previewUpdate = pg->GetBookmarkUpdate();
++
+ QString mesg = QString("UPDATE_UI_ITEM %1 %2").arg(recordingID).arg(flags);
+ QCoreApplication::postEvent(m_listener, new MythEvent(mesg));
+
+
+From daa4e7e4474c019714d21674ee7e18f3bc89624d Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Fri, 22 Apr 2022 21:04:59 +0200
+Subject: [PATCH 23/29] Animation update interval lower bound
+
+Add a lower bound of 10ms for the animation update interval.
+The animation is used in the MythBuntu theme and there it can cause a stall of
+the GUI when the "Manage Recordings" / "Previously Recorded" screen is selected.
+This seems to happen only when there is a small number of recordings.
+The animation update draw interval was previously fixed at 16 milliseconds
+as computed by the function GetDrawInterval.
+This function has been removed in commit 34dfa31bc717628bc20a88dd396d54a3ef56b824
+and the update interval has since been dynamically computed with an upper
+bound of 50ms but without a lower bound.
+There is now a lower bound of 10ms added so that the computed interval time
+is clamped between 10ms and 50ms.
+
+(cherry picked from commit 43702fa5aa75acd8d2fbe54c00064bbab1cb3154)
+---
+ mythtv/libs/libmythui/mythuianimation.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mythtv/libs/libmythui/mythuianimation.cpp b/mythtv/libs/libmythui/mythuianimation.cpp
+index bfdc30710ff..69f9da7e655 100644
+--- a/mythtv/libs/libmythui/mythuianimation.cpp
++++ b/mythtv/libs/libmythui/mythuianimation.cpp
+@@ -100,7 +100,7 @@ void MythUIAnimation::IncrementCurrentTime(void)
+ return;
+
+ std::chrono::milliseconds current = MythDate::currentMSecsSinceEpochAsDuration();
+- std::chrono::milliseconds interval = std::min(current - m_lastUpdate, 50ms);
++ std::chrono::milliseconds interval = std::clamp(current - m_lastUpdate, 10ms, 50ms);
+ m_lastUpdate = current;
+
+ int offset = (direction() == Forward) ? interval.count() : -interval.count();
+
+From 130f7054da73f8a23d04aacf683d743a449a4ec5 Mon Sep 17 00:00:00 2001
+From: David Engel <dengel(a)mythtv.org>
+Date: Tue, 26 Apr 2022 16:03:25 -0500
+Subject: [PATCH 24/29] Fix wakeup calculations in HLS.
+
+The std::chrono changes in commit 41225f80 inadvertently contained
+bugs that caused the wakeup times to be too low, often 0 (aka no
+deley). This resulted in the recorder requesting the palylist way too
+often and putting excessive load on mythbackend and the HLS server.
+
+(cherry picked from commit 0fdd0186ed858cf9c1cac5999ee6ef42a6a067f9)
+---
+ mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp | 7 ++++---
+ mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp | 8 ++++----
+ 2 files changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp b/mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
+index bb9d78ed258..f6024e3b5e1 100644
+--- a/mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
++++ b/mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
+@@ -688,7 +688,7 @@ class HLSStream
+ #endif
+ segment->Unlock();
+
+- downloadduration = std::min(1us, downloadduration);
++ downloadduration = std::max(1us, downloadduration);
+ bandwidth = segment->Size() * 8 * 1000000ULL / downloadduration.count(); /* bits / s */
+ LOG(VB_PLAYBACK, LOG_DEBUG, LOC +
+ QString("downloaded segment %1 [id:%2] took %3ms for %4 bytes: bandwidth:%5kiB/s")
+@@ -1317,7 +1317,7 @@ class PlaylistWorker : public MThread
+ Lock();
+ if (!m_wokenup)
+ {
+- std::chrono::milliseconds waittime = std::min(100ms, m_wakeup);
++ std::chrono::milliseconds waittime = std::max(100ms, m_wakeup);
+ LOG(VB_PLAYBACK, LOG_DEBUG, LOC +
+ QString("PlayListWorker refreshing in %1s")
+ .arg(duration_cast<std::chrono::seconds>(waittime).count()));
+@@ -1373,7 +1373,8 @@ class PlaylistWorker : public MThread
+ }
+
+ /* determine next time to update playlist */
+- m_wakeup = duration_cast<std::chrono::seconds>(hls->TargetDuration() * wait * factor);
++ m_wakeup = duration_cast<std::chrono::milliseconds>(
++ hls->TargetDuration() * wait * factor);
+ }
+
+ RunEpilog();
+diff --git a/mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp b/mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp
+index 2294f107a8a..22d1f377b72 100644
+--- a/mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp
++++ b/mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp
+@@ -30,7 +30,7 @@ void HLSPlaylistWorker::Cancel(void)
+
+ void HLSPlaylistWorker::run(void)
+ {
+- std::chrono::seconds wakeup = 1s;
++ std::chrono::milliseconds wakeup = 1s;
+ double delay = 0;
+
+ LOG(VB_RECORD, LOG_INFO, LOC + "run -- begin");
+@@ -44,11 +44,11 @@ void HLSPlaylistWorker::run(void)
+ m_lock.lock();
+ if (!m_wokenup)
+ {
+- std::chrono::seconds waittime = std::min(1s, wakeup);
++ std::chrono::milliseconds waittime = std::max(1000ms, wakeup);
+ LOG(VB_RECORD, (waittime > 12s ? LOG_INFO : LOG_DEBUG), LOC +
+- QString("refreshing in %2s")
++ QString("refreshing in %2ms")
+ .arg(waittime.count()));
+- m_waitcond.wait(&m_lock, duration_cast<std::chrono::milliseconds>(waittime).count());
++ m_waitcond.wait(&m_lock, waittime);
+ }
+ m_wokenup = false;
+ m_lock.unlock();
+
+From 839d0f9ab6c7ced958bb5372376ab862461ae6d8 Mon Sep 17 00:00:00 2001
+From: David Engel <dengel(a)mythtv.org>
+Date: Tue, 26 Apr 2022 17:12:08 -0500
+Subject: [PATCH 25/29] Add cast needed by some compilers to last previous
+ commit.
+
+(cherry picked from commit e2877111bec395c6baa0468fc41adbb3526e2d69)
+---
+ mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp b/mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp
+index 22d1f377b72..4db927faac7 100644
+--- a/mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp
++++ b/mythtv/libs/libmythtv/recorders/HLS/HLSPlaylistWorker.cpp
+@@ -48,7 +48,8 @@ void HLSPlaylistWorker::run(void)
+ LOG(VB_RECORD, (waittime > 12s ? LOG_INFO : LOG_DEBUG), LOC +
+ QString("refreshing in %2ms")
+ .arg(waittime.count()));
+- m_waitcond.wait(&m_lock, waittime);
++ m_waitcond.wait(&m_lock, duration_cast<std::chrono::milliseconds>(
++ waittime).count());
+ }
+ m_wokenup = false;
+ m_lock.unlock();
+
+From ea669e1f825896355ebc3f428553d887b4d5b4c1 Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Wed, 27 Apr 2022 23:42:50 +0200
+Subject: [PATCH 26/29] Jump back in live TV
+
+When jumping back in live TV and the jump time interval is larger than the
+current play position then a jump is done to the end of the recording instead
+of to the start of the recording.
+Fixed by restoring a cast that was accidentally removed in
+commit 7949b0d20b5dc1b63c88ef511ccbef18c71ec8bf.
+
+(cherry picked from commit cbcffc474df6f79779ac5af5f0a9a91e34cfad39)
+---
+ mythtv/libs/libmythtv/mythplayer.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
+index ebd060fd4d5..b68254f31bd 100644
+--- a/mythtv/libs/libmythtv/mythplayer.cpp
++++ b/mythtv/libs/libmythtv/mythplayer.cpp
+@@ -1448,7 +1448,7 @@ long long MythPlayer::CalcRWTime(long long rw) const
+ return rw;
+ }
+
+- auto seconds = secondsFromFloat((m_framesPlayed - rw) / m_videoFrameRate);
++ auto seconds = secondsFromFloat(((int64_t)m_framesPlayed - rw) / m_videoFrameRate);
+ m_playerCtx->m_tvchain->JumpToNext(false, seconds);
+
+ return -1;
+
+From d80a8da3f0163e6020ce2b6c76b5b31571fae2df Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Fri, 29 Apr 2022 23:35:08 +0200
+Subject: [PATCH 27/29] Jump forward to next live TV segment
+
+If playback is at the end of an earlier program in the live TV chain,
+skipping forward jumps to the end of the next program
+instead of to the beginning of the next program.
+Fixed by restoring two casts that were accidentally removed in
+commit 7949b0d20b5dc1b63c88ef511ccbef18c71ec8bf.
+
+(cherry picked from commit cc5c777fd0872449f915517757a4ebc652181d06)
+---
+ mythtv/libs/libmythtv/mythplayer.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
+index b68254f31bd..c8c742725c2 100644
+--- a/mythtv/libs/libmythtv/mythplayer.cpp
++++ b/mythtv/libs/libmythtv/mythplayer.cpp
+@@ -1481,8 +1481,8 @@ long long MythPlayer::CalcMaxFFTime(long long ffframes, bool setjump) const
+ {
+ ret = -1;
+ // Number of frames to be skipped is from the end of the current segment
+- auto seconds = secondsFromFloat((m_totalFrames - m_framesPlayed - ffframes)
+- / m_videoFrameRate);
++ int64_t frames = (int64_t)m_totalFrames - (int64_t)m_framesPlayed - ffframes;
++ auto seconds = secondsFromFloat(frames / m_videoFrameRate);
+ m_playerCtx->m_tvchain->JumpToNext(true, seconds);
+ }
+ }
+
+From c4fc53c651edbcf695694ee12807b9bc1b4f79ca Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Sat, 7 May 2022 17:43:11 -0400
+Subject: [PATCH 28/29] Services V2: Fix content length when length > 2 GB
+
+Third parameter of std::accumulate determines the return type, so it has
+to be explicitly cast to a uint64 to support 64 bit return.
+
+Fixes #555
+
+(cherry picked from commit d364c8b29db8e7c669bb3be90a6b8c4bc3021e4b)
+---
+ mythtv/libs/libmythbase/http/mythhttpranges.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mythtv/libs/libmythbase/http/mythhttpranges.cpp b/mythtv/libs/libmythbase/http/mythhttpranges.cpp
+index 5e685632130..c4611197857 100644
+--- a/mythtv/libs/libmythbase/http/mythhttpranges.cpp
++++ b/mythtv/libs/libmythbase/http/mythhttpranges.cpp
+@@ -281,7 +281,7 @@ MythHTTPStatus MythHTTPRanges::ParseRanges(const QString& Request, int64_t Total
+ }
+
+ // Sum the expected number of bytes to be sent
+- PartialSize = std::accumulate(ranges.cbegin(), ranges.cend(), 0, sumrange);
++ PartialSize = std::accumulate(ranges.cbegin(), ranges.cend(), static_cast<uint64_t>(0), sumrange);
+ Ranges = ranges;
+
+ if (VERBOSE_LEVEL_CHECK(VB_HTTP, LOG_INFO))
+
+From 26079f815a1723021dbe6a13eca0e66018f71e7b Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Fri, 6 May 2022 20:47:05 +0200
+Subject: [PATCH 29/29] Free AVPacket with av_packet_free
+
+Free AVPacket allocated with av_packet_alloc with av_packet_free
+instead of with av_packet_unref followed by a delete statement.
+
+Valgrind reports the "Mismatched ..." message here:
+==1671692== Mismatched free() / delete / delete []
+==1671692== at 0x48478DD: operator delete(void*, unsigned long) (vg_replace_malloc.c:935)
+==1671692== by 0x4E34300: AvFormatDecoder::~AvFormatDecoder() (avformatdecoder.cpp:376)
+and here:
+==1684358== Mismatched free() / delete / delete []
+==1684358== at 0x48478DD: operator delete(void*, unsigned long) (vg_replace_malloc.c:935)
+==1684358== by 0x4E19A03: AvFormatDecoder::SeekReset(long long, unsigned int, bool, bool) (avformatdecoder.cpp:763)
+This is caused by using a delete statement to free a packet
+previously allocated by av_packet_alloc.
+According to the comment in packet.h where av_packet_alloc is declared:
+/**
+ * Allocate an AVPacket and set its fields to default values. The resulting
+ * struct must be freed using av_packet_free().
+ *
+This is now implemented.
+
+(cherry picked from commit 969235ed8abea04a3a39607bf6b699c743394bc5)
+---
+ mythtv/libs/libmythtv/decoders/avformatdecoder.cpp | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp b/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp
+index 8af5cc853e8..4e3f9691a1b 100644
+--- a/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp
++++ b/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp
+@@ -372,8 +372,7 @@ AvFormatDecoder::~AvFormatDecoder()
+ while (!m_storedPackets.isEmpty())
+ {
+ AVPacket *pkt = m_storedPackets.takeFirst();
+- av_packet_unref(pkt);
+- delete pkt;
++ av_packet_free(&pkt);
+ }
+
+ CloseContext();
+@@ -758,8 +757,7 @@ void AvFormatDecoder::SeekReset(long long newKey, uint skipFrames,
+ while (!m_storedPackets.isEmpty())
+ {
+ AVPacket *pkt = m_storedPackets.takeFirst();
+- av_packet_unref(pkt);
+- delete pkt;
++ av_packet_free(&pkt);
+ }
+
+ m_prevGopPos = 0;
2 years, 6 months
[zoneminder/el7: 3/3] Merge branch 'master' into el7
by Andrew Bauer
commit 0f35898fbe5fdebe303930fe5aeca7503dfb0f89
Merge: e983f5b ec1bdec
Author: Andrew Bauer <zonexpertconsulting(a)outlook.com>
Date: Thu May 12 16:50:05 2022 -0500
Merge branch 'master' into el7
.gitignore | 1 +
sources | 2 +-
zoneminder.spec | 12 +++++++++---
3 files changed, 11 insertions(+), 4 deletions(-)
---
2 years, 6 months
[zoneminder/f36] 1.36.15 release
by Andrew Bauer
Summary of changes:
ec1bdec... 1.36.15 release (*)
(*) This commit already existed in another branch; no separate mail sent
2 years, 6 months
[zoneminder] 1.36.15 release
by Andrew Bauer
commit ec1bdecc71ddff70412cb0f4285667d93d0bcd38
Author: Andrew Bauer <zonexpertconsulting(a)outlook.com>
Date: Thu May 12 16:47:54 2022 -0500
1.36.15 release
call cmake macro without specifying a folder
.gitignore | 1 +
sources | 2 +-
zoneminder.spec | 15 +++++++++------
3 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4a27bb4..4a2b88e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,3 +37,4 @@
/zoneminder-1.36.10.tar.gz
/zoneminder-1.36.11.tar.gz
/zoneminder-1.36.12.tar.gz
+/zoneminder-1.36.15.tar.gz
diff --git a/sources b/sources
index 81ddc46..e91e3fc 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
SHA512 (cakephp-enum-behavior-1.0-zm.tar.gz) = 26b4fa4e4b53b6add69df506d68cee06c7c153ddb6facb76ff1156c5f558b9a7704e99b54361771195092ae7ab4f493c24135fa5a3f59fae84b6dc33ff3e0bd1
SHA512 (crud-3.2.0.tar.gz) = 57e80ced18ab0810941bae43790ba67e399e1299e3c56d3785247195883640ef4e89d1cf0c67f1886cd3ed8f858e88f6af8632b181ce0912dd92c78c53757748
SHA512 (RtspServer-cd7fd49becad6010a1b8466bfebbd93999a39878.tar.gz) = 33409d1c5ddf506210e14f35ed59135368cf8ebf7d53b47fd86779d6225d27fa09e1a0a02898d651fecaac103891efb4ad35d4dee3081deb07e2e7a944a70560
-SHA512 (zoneminder-1.36.12.tar.gz) = 1ca9dba49c4ec129cdc4bcd24ff99196bb9178d8d15d6512b4ee33765ebceafa9d9d3725e6b521c2a59fd8f0e8540c284be03d758b8b039ed20516dd36a145f9
+SHA512 (zoneminder-1.36.15.tar.gz) = 1e93d5a23baa42fc17c2a6c4b12c42fac446b02eff83578d142fc2acbf5c345cd1144e27f3555d96092c5e2f272933e4d8eb48962b83ff6bb42fdb49288c206d
diff --git a/zoneminder.spec b/zoneminder.spec
index 5c30f8a..ffdad75 100644
--- a/zoneminder.spec
+++ b/zoneminder.spec
@@ -36,8 +36,8 @@
%global _hardened_build 1
Name: zoneminder
-Version: 1.36.12
-Release: 2%{?dist}
+Version: 1.36.15
+Release: 1%{?dist}
Summary: A camera monitoring and analysis tool
Group: System Environment/Daemons
# jQuery is under the MIT license: https://jquery.org/license/
@@ -224,8 +224,7 @@ mv -f RtspServer-%{rtspserver_commit} ./dep/RtspServer
%cmake \
-DZM_WEB_USER="%{zmuid_final}" \
-DZM_WEB_GROUP="%{zmgid_final}" \
- -DZM_TARGET_DISTRO="%{zmtargetdistro}" \
- .
+ -DZM_TARGET_DISTRO="%{zmtargetdistro}"
%cmake_build
@@ -430,8 +429,12 @@ ln -sf %{_sysconfdir}/zm/www/zoneminder.nginx.conf %{_sysconfdir}/zm/www/zonemin
%dir %attr(755,nginx,nginx) %{_localstatedir}/log/zoneminder
%changelog
-* Wed Feb 09 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 1.36.12-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+* Thu May 12 2022 Andrew Bauer <zonexpertconsulting(a)outlook.com> - 1.36.15-1
+- 1.36.15 release
+- call cmake macro without specifying a folder
+
+* Tue Apr 05 2022 Andrew Bauer <zonexpertconsulting(a)outlook.com> - 1.36.14-1
+- 1.36.14 release
* Sat Dec 11 2021 Andrew Bauer <zonexpertconsulting(a)outlook.com> - 1.36.12-1
- 1.36.12 release
2 years, 6 months